Merge branch 'master' of https://github.com/primefaces/primevue
commit
811a792341
|
@ -10,7 +10,7 @@
|
||||||
<Button label="Warn" severity="warn" text raised />
|
<Button label="Warn" severity="warn" text raised />
|
||||||
<Button label="Help" severity="help" text raised />
|
<Button label="Help" severity="help" text raised />
|
||||||
<Button label="Danger" severity="danger" text raised />
|
<Button label="Danger" severity="danger" text raised />
|
||||||
<Button label="Plain" plain text raised />
|
<Button label="Contrast" severity="contrast" text raised />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
||||||
<Button label="Warn" severity="warn" text raised />
|
<Button label="Warn" severity="warn" text raised />
|
||||||
<Button label="Help" severity="help" text raised />
|
<Button label="Help" severity="help" text raised />
|
||||||
<Button label="Danger" severity="danger" text raised />
|
<Button label="Danger" severity="danger" text raised />
|
||||||
<Button label="Plain" plain text raised />
|
<Button label="Contrast" severity="contrast" text raised />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
|
@ -40,7 +40,7 @@ export default {
|
||||||
<Button label="Warn" severity="warn" text raised />
|
<Button label="Warn" severity="warn" text raised />
|
||||||
<Button label="Help" severity="help" text raised />
|
<Button label="Help" severity="help" text raised />
|
||||||
<Button label="Danger" severity="danger" text raised />
|
<Button label="Danger" severity="danger" text raised />
|
||||||
<Button label="Plain" plain text raised />
|
<Button label="Contrast" severity="contrast" text raised />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ export default {
|
||||||
<Button label="Warn" severity="warn" text raised />
|
<Button label="Warn" severity="warn" text raised />
|
||||||
<Button label="Help" severity="help" text raised />
|
<Button label="Help" severity="help" text raised />
|
||||||
<Button label="Danger" severity="danger" text raised />
|
<Button label="Danger" severity="danger" text raised />
|
||||||
<Button label="Plain" plain text raised />
|
<Button label="Contrast" severity="contrast" text raised />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<Button label="Warn" severity="warn" text />
|
<Button label="Warn" severity="warn" text />
|
||||||
<Button label="Help" severity="help" text />
|
<Button label="Help" severity="help" text />
|
||||||
<Button label="Danger" severity="danger" text />
|
<Button label="Danger" severity="danger" text />
|
||||||
<Button label="Plain" plain text />
|
<Button label="Contrast" severity="contrast" text />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
||||||
<Button label="Warn" severity="warn" text />
|
<Button label="Warn" severity="warn" text />
|
||||||
<Button label="Help" severity="help" text />
|
<Button label="Help" severity="help" text />
|
||||||
<Button label="Danger" severity="danger" text />
|
<Button label="Danger" severity="danger" text />
|
||||||
<Button label="Plain" plain text />
|
<Button label="Contrast" severity="contrast" text />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
|
@ -40,7 +40,7 @@ export default {
|
||||||
<Button label="Warn" severity="warn" text />
|
<Button label="Warn" severity="warn" text />
|
||||||
<Button label="Help" severity="help" text />
|
<Button label="Help" severity="help" text />
|
||||||
<Button label="Danger" severity="danger" text />
|
<Button label="Danger" severity="danger" text />
|
||||||
<Button label="Plain" plain text />
|
<Button label="Contrast" severity="contrast" text />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ export default {
|
||||||
<Button label="Warn" severity="warn" text />
|
<Button label="Warn" severity="warn" text />
|
||||||
<Button label="Help" severity="help" text />
|
<Button label="Help" severity="help" text />
|
||||||
<Button label="Danger" severity="danger" text />
|
<Button label="Danger" severity="danger" text />
|
||||||
<Button label="Plain" plain text />
|
<Button label="Contrast" severity="contrast" text />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -76868,6 +76868,33 @@
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "Danger color of text"
|
"description": "Danger color of text"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "contrast.hoverBackground",
|
||||||
|
"token": "button.text.contrast.hover.background",
|
||||||
|
"optional": true,
|
||||||
|
"readonly": false,
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"description": "Contrast hover background of text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "contrast.activeBackground",
|
||||||
|
"token": "button.text.contrast.active.background",
|
||||||
|
"optional": true,
|
||||||
|
"readonly": false,
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"description": "Contrast active background of text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "contrast.color",
|
||||||
|
"token": "button.text.contrast.color",
|
||||||
|
"optional": true,
|
||||||
|
"readonly": false,
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"description": "Contrast color of text"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "plain.hoverBackground",
|
"name": "plain.hoverBackground",
|
||||||
"token": "button.text.plain.hover.background",
|
"token": "button.text.plain.hover.background",
|
||||||
|
@ -98643,6 +98670,14 @@
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "Used to pass tokens of the tree section"
|
"description": "Used to pass tokens of the tree section"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "clearIcon",
|
||||||
|
"optional": true,
|
||||||
|
"readonly": false,
|
||||||
|
"type": "Object",
|
||||||
|
"default": "",
|
||||||
|
"description": "Used to pass tokens of the clear icon section"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "emptyMessage",
|
"name": "emptyMessage",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
|
@ -98994,6 +99029,15 @@
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "Padding of tree"
|
"description": "Padding of tree"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "clearIcon.color",
|
||||||
|
"token": "treeselect.clear.icon.color",
|
||||||
|
"optional": true,
|
||||||
|
"readonly": false,
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"description": "Color of clear icon"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "emptyMessage.padding",
|
"name": "emptyMessage.padding",
|
||||||
"token": "treeselect.empty.message.padding",
|
"token": "treeselect.empty.message.padding",
|
||||||
|
|
|
@ -559,6 +559,24 @@ const theme = ({ dt }) => `
|
||||||
color: ${dt('button.text.danger.color')};
|
color: ${dt('button.text.danger.color')};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.p-button-text.p-button-contrast {
|
||||||
|
background: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
color: ${dt('button.text.contrast.color')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-button-text.p-button-contrast:not(:disabled):hover {
|
||||||
|
background: ${dt('button.text.contrast.hover.background')};
|
||||||
|
border-color: transparent;
|
||||||
|
color: ${dt('button.text.contrast.color')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-button-text.p-button-contrast:not(:disabled):active {
|
||||||
|
background: ${dt('button.text.contrast.active.background')};
|
||||||
|
border-color: transparent;
|
||||||
|
color: ${dt('button.text.contrast.color')};
|
||||||
|
}
|
||||||
|
|
||||||
.p-button-text.p-button-plain {
|
.p-button-text.p-button-plain {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
|
|
|
@ -244,6 +244,11 @@ export default {
|
||||||
activeBackground: '{red.100}',
|
activeBackground: '{red.100}',
|
||||||
color: '{red.500}'
|
color: '{red.500}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.50}',
|
||||||
|
activeBackground: '{surface.100}',
|
||||||
|
color: '{surface.950}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.50}',
|
hoverBackground: '{surface.50}',
|
||||||
activeBackground: '{surface.100}',
|
activeBackground: '{surface.100}',
|
||||||
|
@ -471,6 +476,11 @@ export default {
|
||||||
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
||||||
color: '{red.400}'
|
color: '{red.400}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.800}',
|
||||||
|
activeBackground: '{surface.700}',
|
||||||
|
color: '{surface.0}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.800}',
|
hoverBackground: '{surface.800}',
|
||||||
activeBackground: '{surface.700}',
|
activeBackground: '{surface.700}',
|
||||||
|
|
|
@ -244,6 +244,11 @@ export default {
|
||||||
activeBackground: '{red.100}',
|
activeBackground: '{red.100}',
|
||||||
color: '{red.500}'
|
color: '{red.500}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.50}',
|
||||||
|
activeBackground: '{surface.100}',
|
||||||
|
color: '{surface.950}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.50}',
|
hoverBackground: '{surface.50}',
|
||||||
activeBackground: '{surface.100}',
|
activeBackground: '{surface.100}',
|
||||||
|
@ -471,6 +476,11 @@ export default {
|
||||||
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
||||||
color: '{red.400}'
|
color: '{red.400}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.800}',
|
||||||
|
activeBackground: '{surface.700}',
|
||||||
|
color: '{surface.0}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.800}',
|
hoverBackground: '{surface.800}',
|
||||||
activeBackground: '{surface.700}',
|
activeBackground: '{surface.700}',
|
||||||
|
|
|
@ -244,6 +244,11 @@ export default {
|
||||||
activeBackground: '{red.100}',
|
activeBackground: '{red.100}',
|
||||||
color: '{red.500}'
|
color: '{red.500}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.50}',
|
||||||
|
activeBackground: '{surface.100}',
|
||||||
|
color: '{surface.950}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.50}',
|
hoverBackground: '{surface.50}',
|
||||||
activeBackground: '{surface.100}',
|
activeBackground: '{surface.100}',
|
||||||
|
@ -471,6 +476,11 @@ export default {
|
||||||
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
||||||
color: '{red.400}'
|
color: '{red.400}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.800}',
|
||||||
|
activeBackground: '{surface.700}',
|
||||||
|
color: '{surface.0}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.800}',
|
hoverBackground: '{surface.800}',
|
||||||
activeBackground: '{surface.700}',
|
activeBackground: '{surface.700}',
|
||||||
|
|
|
@ -244,6 +244,11 @@ export default {
|
||||||
activeBackground: '{red.100}',
|
activeBackground: '{red.100}',
|
||||||
color: '{red.600}'
|
color: '{red.600}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.50}',
|
||||||
|
activeBackground: '{surface.100}',
|
||||||
|
color: '{surface.950}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.50}',
|
hoverBackground: '{surface.50}',
|
||||||
activeBackground: '{surface.100}',
|
activeBackground: '{surface.100}',
|
||||||
|
@ -471,6 +476,11 @@ export default {
|
||||||
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
|
||||||
color: '{red.500}'
|
color: '{red.500}'
|
||||||
},
|
},
|
||||||
|
contrast: {
|
||||||
|
hoverBackground: '{surface.800}',
|
||||||
|
activeBackground: '{surface.700}',
|
||||||
|
color: '{surface.0}'
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
hoverBackground: '{surface.800}',
|
hoverBackground: '{surface.800}',
|
||||||
activeBackground: '{surface.700}',
|
activeBackground: '{surface.700}',
|
||||||
|
|
|
@ -1189,6 +1189,29 @@ export interface ButtonDesignTokens extends ColorSchemeDesignToken<ButtonDesignT
|
||||||
*/
|
*/
|
||||||
color?: string;
|
color?: string;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Contrast of text
|
||||||
|
*/
|
||||||
|
contrast?: {
|
||||||
|
/**
|
||||||
|
* Contrast hover background of text
|
||||||
|
*
|
||||||
|
* @designToken button.text.contrast.hover.background
|
||||||
|
*/
|
||||||
|
hoverBackground?: string;
|
||||||
|
/**
|
||||||
|
* Contrast active background of text
|
||||||
|
*
|
||||||
|
* @designToken button.text.contrast.active.background
|
||||||
|
*/
|
||||||
|
activeBackground?: string;
|
||||||
|
/**
|
||||||
|
* Contrast color of text
|
||||||
|
*
|
||||||
|
* @designToken button.text.contrast.color
|
||||||
|
*/
|
||||||
|
color?: string;
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Plain of text
|
* Plain of text
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -262,6 +262,17 @@ export interface TreeSelectDesignTokens extends ColorSchemeDesignToken<TreeSelec
|
||||||
*/
|
*/
|
||||||
padding?: string;
|
padding?: string;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Used to pass tokens of the clear icon section
|
||||||
|
*/
|
||||||
|
clearIcon?: {
|
||||||
|
/**
|
||||||
|
* Color of clear icon
|
||||||
|
*
|
||||||
|
* @designToken treeselect.clear.icon.color
|
||||||
|
*/
|
||||||
|
color?: string;
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Used to pass tokens of the empty message section
|
* Used to pass tokens of the empty message section
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue