@workday/canvas-kit-preview-react 14.0.0-alpha.1206-next.0 → 14.0.0-alpha.1210-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/color-picker/lib/ColorPicker.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/ColorReset.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +1 -1
- package/dist/commonjs/divider/lib/Divider.js +1 -1
- package/dist/commonjs/information-highlight/lib/InformationHighlight.d.ts +4 -4
- package/dist/commonjs/information-highlight/lib/InformationHighlight.js +7 -7
- package/dist/commonjs/information-highlight/lib/hooks/useInformationHighlightModel.d.ts +5 -5
- package/dist/commonjs/information-highlight/lib/parts/Body.js +1 -1
- package/dist/commonjs/information-highlight/lib/parts/Heading.js +1 -1
- package/dist/commonjs/information-highlight/lib/parts/Icon.d.ts +1 -1
- package/dist/commonjs/information-highlight/lib/parts/Link.js +1 -1
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/commonjs/multi-select/lib/MultiSelectInput.js +3 -3
- package/dist/commonjs/pill/lib/Pill.js +3 -3
- package/dist/commonjs/pill/lib/PillAvatar.js +1 -1
- package/dist/commonjs/pill/lib/PillCount.js +1 -1
- package/dist/commonjs/pill/lib/PillIcon.js +1 -1
- package/dist/commonjs/pill/lib/PillIconButton.js +1 -1
- package/dist/commonjs/pill/lib/PillLabel.js +1 -1
- package/dist/commonjs/radio/lib/RadioGroup.js +3 -3
- package/dist/commonjs/radio/lib/RadioLabel.js +1 -1
- package/dist/commonjs/radio/lib/RadioText.js +4 -4
- package/dist/commonjs/radio/lib/StyledRadioButton.js +5 -5
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +16 -16
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +4 -4
- package/dist/commonjs/side-panel/lib/SidePanel.js +7 -7
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/commonjs/status-indicator/index.d.ts +1 -1
- package/dist/commonjs/status-indicator/index.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +83 -15
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +97 -27
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/commonjs/text-area/lib/TextArea.d.ts +2 -2
- package/dist/commonjs/text-area/lib/TextArea.js +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.js +1 -1
- package/dist/commonjs/text-input/lib/TextInput.d.ts +2 -2
- package/dist/commonjs/text-input/lib/TextInput.js +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.d.ts +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.js +4 -4
- package/dist/es6/color-picker/lib/ColorPicker.js +1 -1
- package/dist/es6/color-picker/lib/parts/ColorReset.js +1 -1
- package/dist/es6/color-picker/lib/parts/SwatchBook.js +1 -1
- package/dist/es6/divider/lib/Divider.js +1 -1
- package/dist/es6/information-highlight/lib/InformationHighlight.d.ts +4 -4
- package/dist/es6/information-highlight/lib/InformationHighlight.js +7 -7
- package/dist/es6/information-highlight/lib/hooks/useInformationHighlightModel.d.ts +5 -5
- package/dist/es6/information-highlight/lib/parts/Body.js +1 -1
- package/dist/es6/information-highlight/lib/parts/Heading.js +1 -1
- package/dist/es6/information-highlight/lib/parts/Icon.d.ts +1 -1
- package/dist/es6/information-highlight/lib/parts/Link.js +1 -1
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelectInput.js +3 -3
- package/dist/es6/pill/lib/Pill.js +3 -3
- package/dist/es6/pill/lib/PillAvatar.js +1 -1
- package/dist/es6/pill/lib/PillCount.js +1 -1
- package/dist/es6/pill/lib/PillIcon.js +1 -1
- package/dist/es6/pill/lib/PillIconButton.js +1 -1
- package/dist/es6/pill/lib/PillLabel.js +1 -1
- package/dist/es6/radio/lib/RadioGroup.js +3 -3
- package/dist/es6/radio/lib/RadioLabel.js +1 -1
- package/dist/es6/radio/lib/RadioText.js +4 -4
- package/dist/es6/radio/lib/StyledRadioButton.js +5 -5
- package/dist/es6/segmented-control/lib/SegmentedControlItem.js +16 -16
- package/dist/es6/segmented-control/lib/SegmentedControlList.js +4 -4
- package/dist/es6/side-panel/lib/SidePanel.js +7 -7
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/es6/status-indicator/index.d.ts +1 -1
- package/dist/es6/status-indicator/index.d.ts.map +1 -1
- package/dist/es6/status-indicator/index.js +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +83 -15
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.js +97 -27
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/es6/text-area/lib/TextArea.d.ts +2 -2
- package/dist/es6/text-area/lib/TextArea.js +1 -1
- package/dist/es6/text-area/lib/TextAreaField.d.ts +1 -1
- package/dist/es6/text-area/lib/TextAreaField.js +1 -1
- package/dist/es6/text-input/lib/TextInput.d.ts +2 -2
- package/dist/es6/text-input/lib/TextInput.js +1 -1
- package/dist/es6/text-input/lib/TextInputField.d.ts +1 -1
- package/dist/es6/text-input/lib/TextInputField.js +4 -4
- package/package.json +4 -4
- package/status-indicator/index.ts +5 -1
- package/status-indicator/lib/StatusIndicator.tsx +159 -78
- package/text-area/lib/TextArea.tsx +2 -2
- package/text-area/lib/TextAreaField.tsx +1 -1
- package/text-input/lib/TextInput.tsx +2 -2
- package/text-input/lib/TextInputField.tsx +1 -1
|
@@ -34,35 +34,35 @@ const hooks_1 = require("./hooks");
|
|
|
34
34
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
35
35
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
36
36
|
exports.sidePanelToggleButtonStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
37
|
-
base: { name: "
|
|
37
|
+
base: { name: "2l5puv", styles: "box-sizing:border-box;position:absolute;top:var(--cnvs-sys-space-x6);width:var(--cnvs-sys-space-x8);inset-inline-end:var(--cnvs-sys-space-x4);" },
|
|
38
38
|
modifiers: {
|
|
39
39
|
state: {
|
|
40
|
-
collapsing: { name: "
|
|
41
|
-
collapsed: { name: "
|
|
42
|
-
expanded: { name: "
|
|
43
|
-
expanding: { name: "
|
|
40
|
+
collapsing: { name: "42oadq", styles: "margin:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
41
|
+
collapsed: { name: "4f0s53", styles: "margin:auto;inset-inline-start:0;inset-inline-end:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
42
|
+
expanded: { name: "459tdt", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" },
|
|
43
|
+
expanding: { name: "47y3jt", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" }
|
|
44
44
|
},
|
|
45
45
|
origin: {
|
|
46
|
-
left: { name: "
|
|
47
|
-
right: { name: "
|
|
46
|
+
left: { name: "9m32i", styles: "" },
|
|
47
|
+
right: { name: "1m3qbz", styles: "" }
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
compound: [
|
|
51
51
|
{
|
|
52
52
|
modifiers: { state: 'collapsed', origin: 'right' },
|
|
53
|
-
styles: { name: "
|
|
53
|
+
styles: { name: "3i0lrw", styles: "transform:scaleX(-1);" }
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
modifiers: { state: 'collapsing', origin: 'right' },
|
|
57
|
-
styles: { name: "
|
|
57
|
+
styles: { name: "2ucnx7", styles: "transform:scaleX(-1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
modifiers: { state: 'expanded', origin: 'right' },
|
|
61
|
-
styles: { name: "
|
|
61
|
+
styles: { name: "2o1s85", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
modifiers: { state: 'expanding', origin: 'right' },
|
|
65
|
-
styles: { name: "
|
|
65
|
+
styles: { name: "2yntb0", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
}, "side-panel-toggle-button-da8098");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { StatusIndicator, StatusIndicatorProps, StatusIndicatorVariant } from './lib/StatusIndicator';
|
|
1
|
+
export { StatusIndicator, type StatusIndicatorProps, type StatusIndicatorVariant, } from './lib/StatusIndicator';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../status-indicator/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../status-indicator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { ExtractStencilProps } from '@workday/canvas-kit-styling';
|
|
3
4
|
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @default 'low'
|
|
11
|
-
*/
|
|
12
|
-
emphasis?: 'high' | 'low';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated This is being deprecated and will be removed in a future release. Use
|
|
7
|
+
* `StatusIndicatorProps['variant']` instead.
|
|
8
|
+
*/
|
|
9
|
+
export type StatusIndicatorVariant = 'info' | 'neutral' | 'caution' | 'positive' | 'critical' | 'ai' | 'transparent' | 'blue' | 'green' | 'orange' | 'red' | 'gray';
|
|
10
|
+
export interface StatusIndicatorProps extends ExtractProps<typeof Flex, never>, Omit<ExtractStencilProps<typeof statusIndicatorStencil>, 'variant'> {
|
|
13
11
|
/**
|
|
14
12
|
* Defines the color of the `StatusIndicator`.
|
|
15
|
-
*
|
|
13
|
+
* * `info` | `blue` - Uses the info system color and is used for informational status indications
|
|
14
|
+
* * `positive` | `green` - Uses the positive system color and is used for positive status indications
|
|
15
|
+
* * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions
|
|
16
|
+
* * `critical` | `red` - Uses the error system color and is used for critical or negative status indications
|
|
17
|
+
* * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations
|
|
18
|
+
* * `illuminate` - Uses the AI system color and is used for AI generated content
|
|
19
|
+
* * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos
|
|
20
|
+
*
|
|
21
|
+
* @default 'neutral'
|
|
16
22
|
*/
|
|
17
23
|
variant?: StatusIndicatorVariant;
|
|
18
24
|
/**
|
|
@@ -20,20 +26,81 @@ export interface StatusIndicatorProps extends ExtractProps<typeof Flex, never> {
|
|
|
20
26
|
*/
|
|
21
27
|
children: React.ReactNode;
|
|
22
28
|
}
|
|
29
|
+
declare const statusIndicatorStencil: import("@workday/canvas-kit-styling").Stencil<{
|
|
30
|
+
/**
|
|
31
|
+
* Defines the color of the `StatusIndicator`.
|
|
32
|
+
* * `info` | `blue` - Uses the info system color and is used for informational status indications
|
|
33
|
+
* * `positive` | `green` - Uses the positive system color and is used for positive status indications
|
|
34
|
+
* * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions
|
|
35
|
+
* * `critical` | `red` - Uses the error system color and is used for critical or negative status indications
|
|
36
|
+
* * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations
|
|
37
|
+
* * `illuminate` - Uses the AI system color and is used for AI generated content
|
|
38
|
+
* * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos
|
|
39
|
+
*
|
|
40
|
+
* @default 'neutral'
|
|
41
|
+
*/
|
|
42
|
+
variant: {
|
|
43
|
+
info: {
|
|
44
|
+
color: "--cnvs-sys-color-fg-info-strong";
|
|
45
|
+
backgroundColor: "--cnvs-sys-color-bg-info-softer";
|
|
46
|
+
};
|
|
47
|
+
positive: {
|
|
48
|
+
color: "--cnvs-sys-color-fg-positive-strong";
|
|
49
|
+
backgroundColor: "--cnvs-sys-color-fg-positive-softer";
|
|
50
|
+
};
|
|
51
|
+
caution: {
|
|
52
|
+
color: "--cnvs-sys-color-fg-caution-soft";
|
|
53
|
+
backgroundColor: "--cnvs-sys-color-bg-caution-softer";
|
|
54
|
+
};
|
|
55
|
+
critical: {
|
|
56
|
+
color: "--cnvs-sys-color-fg-critical-strong";
|
|
57
|
+
backgroundColor: "--cnvs-sys-color-bg-critical-softer";
|
|
58
|
+
};
|
|
59
|
+
neutral: {
|
|
60
|
+
color: "--cnvs-sys-color-fg-muted-strong";
|
|
61
|
+
backgroundColor: "--cnvs-sys-color-bg-alt-default";
|
|
62
|
+
};
|
|
63
|
+
ai: {
|
|
64
|
+
color: "--cnvs-sys-color-fg-ai";
|
|
65
|
+
backgroundColor: "--cnvs-sys-color-bg-ai-default";
|
|
66
|
+
};
|
|
67
|
+
transparent: {
|
|
68
|
+
color: "--cnvs-sys-color-fg-inverse";
|
|
69
|
+
backgroundColor: "--cnvs-sys-color-bg-translucent";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Defines the emphasis of the `StatusIndicator`. `low` should be used in almost all cases.
|
|
74
|
+
* `high` is being deprecated and will be removed in a future release.
|
|
75
|
+
* * `low` - Normal emphasis and will visually fit in with other components.
|
|
76
|
+
* * `high` - High emphasis has been used to make the `StatusIndicator` stand out more, but
|
|
77
|
+
* tends to overpower other components. It will be removed and should not be used.
|
|
78
|
+
*
|
|
79
|
+
* @default 'low'
|
|
80
|
+
*
|
|
81
|
+
* @deprecated This is being deprecated and will be removed in a future release. `high` is being removed
|
|
82
|
+
*/
|
|
83
|
+
emphasis: {
|
|
84
|
+
low: {};
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated This is being deprecated and will be removed in a future release.
|
|
87
|
+
*/
|
|
88
|
+
high: {};
|
|
89
|
+
};
|
|
90
|
+
}, {}, {}, never, never>;
|
|
23
91
|
/**
|
|
24
|
-
* `StatusIndicator` is a container component
|
|
25
|
-
* apply spacing evenly between its children. It has a default maximum width of `200px`.
|
|
92
|
+
* `StatusIndicator` is a container component has a default maximum width of `200px`.
|
|
26
93
|
*
|
|
27
94
|
* ```tsx
|
|
28
|
-
* <StatusIndicator
|
|
95
|
+
* <StatusIndicator variant="info">
|
|
29
96
|
* {Child components}
|
|
30
97
|
* </StatusIndicator>
|
|
31
98
|
* ```
|
|
32
99
|
*/
|
|
33
100
|
export declare const StatusIndicator: import("@workday/canvas-kit-react/common").ElementComponent<"div", StatusIndicatorProps> & {
|
|
34
101
|
/**
|
|
35
|
-
* `StatusIndicator.Label`
|
|
36
|
-
*
|
|
102
|
+
* `StatusIndicator.Label` will apply an ellipsis if its contents exceed the component's maximum
|
|
103
|
+
* width.
|
|
37
104
|
*
|
|
38
105
|
* ```tsx
|
|
39
106
|
* <StatusIndicator.Label>{The text to be rendered}</StatusIndicator.Label>
|
|
@@ -50,4 +117,5 @@ export declare const StatusIndicator: import("@workday/canvas-kit-react/common")
|
|
|
50
117
|
*/
|
|
51
118
|
Icon: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("@workday/canvas-kit-react/icon").SystemIconProps>;
|
|
52
119
|
};
|
|
120
|
+
export {};
|
|
53
121
|
//# sourceMappingURL=StatusIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAkB,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAkB,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAC,mBAAmB,EAAwB,MAAM,6BAA6B,CAAC;AAEvF,OAAO,EAAC,IAAI,EAAc,MAAM,kCAAkC,CAAC;AAKnE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,IAAI,GACJ,aAAa,GACb,MAAM,GACN,OAAO,GACP,QAAQ,GACR,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,WAAW,oBACf,SAAQ,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,EACtC,IAAI,CAAC,mBAAmB,CAAC,OAAO,sBAAsB,CAAC,EAAE,SAAS,CAAC;IACrE;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAWD,QAAA,MAAM,sBAAsB;IAaxB;;;;;;;;;;;OAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BH;;;;;;;;;;OAUG;;;QAGD;;WAEG;;;wBA4DP,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;IAGxB;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;CAuBL,CAAC"}
|
|
@@ -9,41 +9,104 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
9
9
|
const icon_1 = require("@workday/canvas-kit-react/icon");
|
|
10
10
|
const StatusIndicatorIcon_1 = require("./StatusIndicatorIcon");
|
|
11
11
|
const StatusIndicatorLabel_1 = require("./StatusIndicatorLabel");
|
|
12
|
+
// TODO: Remove this in a future release
|
|
13
|
+
const deprecatedVariantsMap = {
|
|
14
|
+
blue: 'info',
|
|
15
|
+
green: 'positive',
|
|
16
|
+
orange: 'caution',
|
|
17
|
+
red: 'critical',
|
|
18
|
+
gray: 'neutral',
|
|
19
|
+
};
|
|
12
20
|
const statusIndicatorStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
13
|
-
base: { name: "
|
|
21
|
+
base: { name: "4ar91m", styles: "box-sizing:border-box;display:inline-flex;gap:var(--cnvs-sys-space-x1);max-width:12.5rem;align-items:center;border-radius:var(--cnvs-sys-shape-round);height:1.25rem;padding:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x2);outline:0.0625rem solid transparent;--color-system-icon-3a4847:currentColor;" },
|
|
14
22
|
modifiers: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Defines the color of the `StatusIndicator`.
|
|
25
|
+
* * `info` | `blue` - Uses the info system color and is used for informational status indications
|
|
26
|
+
* * `positive` | `green` - Uses the positive system color and is used for positive status indications
|
|
27
|
+
* * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions
|
|
28
|
+
* * `critical` | `red` - Uses the error system color and is used for critical or negative status indications
|
|
29
|
+
* * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations
|
|
30
|
+
* * `illuminate` - Uses the AI system color and is used for AI generated content
|
|
31
|
+
* * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos
|
|
32
|
+
*
|
|
33
|
+
* @default 'neutral'
|
|
34
|
+
*/
|
|
35
|
+
variant: {
|
|
36
|
+
info: { name: "u566s", styles: "color:var(--cnvs-sys-color-fg-info-strong);background-color:var(--cnvs-sys-color-bg-info-softer);" },
|
|
37
|
+
positive: { name: "1it0c3", styles: "color:var(--cnvs-sys-color-fg-positive-strong);background-color:var(--cnvs-sys-color-fg-positive-softer);" },
|
|
38
|
+
caution: { name: "3lnrys", styles: "color:var(--cnvs-sys-color-fg-caution-soft);background-color:var(--cnvs-sys-color-bg-caution-softer);" },
|
|
39
|
+
critical: { name: "kyqxd", styles: "color:var(--cnvs-sys-color-fg-critical-strong);background-color:var(--cnvs-sys-color-bg-critical-softer);" },
|
|
40
|
+
neutral: { name: "3hiv6f", styles: "color:var(--cnvs-sys-color-fg-muted-strong);background-color:var(--cnvs-sys-color-bg-alt-default);" },
|
|
41
|
+
ai: { name: "4cat41", styles: "color:var(--cnvs-sys-color-fg-ai);background-color:var(--cnvs-sys-color-bg-ai-default);" },
|
|
42
|
+
transparent: { name: "rm6jo", styles: "color:var(--cnvs-sys-color-fg-inverse);background-color:var(--cnvs-sys-color-bg-translucent);" }
|
|
18
43
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Defines the emphasis of the `StatusIndicator`. `low` should be used in almost all cases.
|
|
46
|
+
* `high` is being deprecated and will be removed in a future release.
|
|
47
|
+
* * `low` - Normal emphasis and will visually fit in with other components.
|
|
48
|
+
* * `high` - High emphasis has been used to make the `StatusIndicator` stand out more, but
|
|
49
|
+
* tends to overpower other components. It will be removed and should not be used.
|
|
50
|
+
*
|
|
51
|
+
* @default 'low'
|
|
52
|
+
*
|
|
53
|
+
* @deprecated This is being deprecated and will be removed in a future release. `high` is being removed
|
|
54
|
+
*/
|
|
55
|
+
emphasis: {
|
|
56
|
+
low: { name: "232b15", styles: "" },
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated This is being deprecated and will be removed in a future release.
|
|
59
|
+
*/
|
|
60
|
+
high: { name: "2oxxn1", styles: "" }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
compound: [
|
|
64
|
+
{
|
|
65
|
+
modifiers: {
|
|
66
|
+
variant: 'info',
|
|
67
|
+
emphasis: 'high',
|
|
68
|
+
},
|
|
69
|
+
styles: { name: "4c7ptp", styles: "background-color:var(--cnvs-sys-color-bg-info-default);color:var(--cnvs-sys-color-fg-inverse);" }
|
|
22
70
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
71
|
+
{
|
|
72
|
+
modifiers: {
|
|
73
|
+
variant: 'positive',
|
|
74
|
+
emphasis: 'high',
|
|
75
|
+
},
|
|
76
|
+
styles: { name: "h7oux", styles: "background-color:var(--cnvs-sys-color-bg-positive-default);color:var(--cnvs-sys-color-fg-inverse);" }
|
|
26
77
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
78
|
+
{
|
|
79
|
+
modifiers: {
|
|
80
|
+
variant: 'caution',
|
|
81
|
+
emphasis: 'high',
|
|
82
|
+
},
|
|
83
|
+
styles: { name: "2ya3jf", styles: "background-color:var(--cnvs-sys-color-bg-caution-default);color:var(--cnvs-sys-color-fg-caution-strong);" }
|
|
30
84
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
85
|
+
{
|
|
86
|
+
modifiers: {
|
|
87
|
+
variant: 'critical',
|
|
88
|
+
emphasis: 'high',
|
|
89
|
+
},
|
|
90
|
+
styles: { name: "py0vx", styles: "background-color:var(--cnvs-sys-color-bg-critical-default);color:var(--cnvs-sys-color-fg-inverse);" }
|
|
34
91
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
92
|
+
{
|
|
93
|
+
modifiers: {
|
|
94
|
+
variant: 'neutral',
|
|
95
|
+
emphasis: 'high',
|
|
96
|
+
},
|
|
97
|
+
styles: { name: "20cwyw", styles: "background-color:var(--cnvs-sys-color-bg-muted-default);color:var(--cnvs-sys-color-fg-inverse);" }
|
|
38
98
|
}
|
|
99
|
+
],
|
|
100
|
+
defaultModifiers: {
|
|
101
|
+
variant: 'neutral',
|
|
102
|
+
emphasis: 'low',
|
|
39
103
|
}
|
|
40
|
-
}, "status-indicator-
|
|
104
|
+
}, "status-indicator-c55f02");
|
|
41
105
|
/**
|
|
42
|
-
* `StatusIndicator` is a container component
|
|
43
|
-
* apply spacing evenly between its children. It has a default maximum width of `200px`.
|
|
106
|
+
* `StatusIndicator` is a container component has a default maximum width of `200px`.
|
|
44
107
|
*
|
|
45
108
|
* ```tsx
|
|
46
|
-
* <StatusIndicator
|
|
109
|
+
* <StatusIndicator variant="info">
|
|
47
110
|
* {Child components}
|
|
48
111
|
* </StatusIndicator>
|
|
49
112
|
* ```
|
|
@@ -52,8 +115,8 @@ exports.StatusIndicator = (0, common_1.createComponent)('div')({
|
|
|
52
115
|
displayName: 'StatusIndicator',
|
|
53
116
|
subComponents: {
|
|
54
117
|
/**
|
|
55
|
-
* `StatusIndicator.Label`
|
|
56
|
-
*
|
|
118
|
+
* `StatusIndicator.Label` will apply an ellipsis if its contents exceed the component's maximum
|
|
119
|
+
* width.
|
|
57
120
|
*
|
|
58
121
|
* ```tsx
|
|
59
122
|
* <StatusIndicator.Label>{The text to be rendered}</StatusIndicator.Label>
|
|
@@ -70,7 +133,14 @@ exports.StatusIndicator = (0, common_1.createComponent)('div')({
|
|
|
70
133
|
*/
|
|
71
134
|
Icon: StatusIndicatorIcon_1.StatusIndicatorIcon,
|
|
72
135
|
},
|
|
73
|
-
Component: ({
|
|
74
|
-
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, ...(0, layout_1.mergeStyles)(elemProps, statusIndicatorStencil({
|
|
136
|
+
Component: ({ variant, emphasis, children, ...elemProps }, ref, Element) => {
|
|
137
|
+
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, ...(0, layout_1.mergeStyles)(elemProps, statusIndicatorStencil({
|
|
138
|
+
variant:
|
|
139
|
+
// collapse the type to only the allowed modifiers. Look them up in the map, then
|
|
140
|
+
// fallback to the passed variant.
|
|
141
|
+
deprecatedVariantsMap[variant] ||
|
|
142
|
+
variant,
|
|
143
|
+
emphasis,
|
|
144
|
+
})), children: children }));
|
|
75
145
|
},
|
|
76
146
|
});
|
|
@@ -9,7 +9,7 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
9
9
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
10
10
|
const statusIndicatorLabelStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
11
11
|
extends: text_1.textStencil,
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "2i1xii", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;color:inherit;" },
|
|
13
13
|
defaultModifiers: { typeLevel: 'subtext.large' }
|
|
14
14
|
}, "status-indicator-label-63258e");
|
|
15
15
|
exports.StatusIndicatorLabel = (0, common_1.createComponent)('span')({
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { FormField } from '@workday/canvas-kit-react/form-field';
|
|
4
4
|
/**
|
|
5
|
-
* @deprecated ⚠️ `TextAreaProps` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
5
|
+
* @deprecated ⚠️ `TextAreaProps` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
6
6
|
*/
|
|
7
7
|
export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
|
|
8
8
|
/**
|
|
@@ -12,7 +12,7 @@ export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @stencil formFieldStencil
|
|
15
|
-
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
15
|
+
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
16
16
|
*/
|
|
17
17
|
export declare const TextArea: import("@workday/canvas-kit-react/common").ElementComponentM<"div", TextAreaProps & Partial<{
|
|
18
18
|
error: "error" | "alert" | undefined;
|
|
@@ -9,7 +9,7 @@ const TextAreaField_1 = require("./TextAreaField");
|
|
|
9
9
|
const text_input_1 = require("@workday/canvas-kit-preview-react/text-input");
|
|
10
10
|
/**
|
|
11
11
|
* @stencil formFieldStencil
|
|
12
|
-
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
12
|
+
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
13
13
|
*/
|
|
14
14
|
exports.TextArea = (0, common_1.createContainer)('div')({
|
|
15
15
|
displayName: 'TextArea',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/
|
|
2
|
+
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) in Preview instead.
|
|
3
3
|
*/
|
|
4
4
|
export declare const TextAreaField: import("@workday/canvas-kit-react/common").ElementComponentM<"textarea", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
5
5
|
state: {
|
|
@@ -31,7 +31,7 @@ const baseStyles = {
|
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/
|
|
34
|
+
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) in Preview instead.
|
|
35
35
|
*/
|
|
36
36
|
exports.TextAreaField = (0, common_1.createSubcomponent)('textarea')({
|
|
37
37
|
displayName: 'TextArea.Field',
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { FormField } from '@workday/canvas-kit-react/form-field';
|
|
4
4
|
/**
|
|
5
|
-
* @deprecated ⚠️ `TextInputProps` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
5
|
+
* @deprecated ⚠️ `TextInputProps` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--docs) instead.
|
|
6
6
|
*/
|
|
7
7
|
export interface TextInputProps extends ExtractProps<typeof FormField, never> {
|
|
8
8
|
/**
|
|
@@ -12,7 +12,7 @@ export interface TextInputProps extends ExtractProps<typeof FormField, never> {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @stencil formFieldStencil
|
|
15
|
-
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
15
|
+
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textinput--docs) instead.
|
|
16
16
|
*/
|
|
17
17
|
export declare const TextInput: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("@workday/canvas-kit-react/form-field").FormFieldProps & Partial<{
|
|
18
18
|
error: "error" | "alert" | undefined;
|
|
@@ -8,7 +8,7 @@ const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
|
8
8
|
const TextInputField_1 = require("./TextInputField");
|
|
9
9
|
/**
|
|
10
10
|
* @stencil formFieldStencil
|
|
11
|
-
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
11
|
+
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textinput--docs) instead.
|
|
12
12
|
*/
|
|
13
13
|
exports.TextInput = (0, common_1.createContainer)('div')({
|
|
14
14
|
displayName: 'TextInput',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/
|
|
2
|
+
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) instead.
|
|
3
3
|
*/
|
|
4
4
|
export declare const TextInputField: import("@workday/canvas-kit-react/common").ElementComponentM<"input", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
5
5
|
state: {
|
|
@@ -9,16 +9,16 @@ const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
|
9
9
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
10
10
|
const hooks_1 = require("./hooks");
|
|
11
11
|
const textInputFieldStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "1vx3rt", styles: "box-sizing:border-box;font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-subtext-large);font-size:var(--cnvs-sys-font-size-subtext-large);letter-spacing:var(--cnvs-base-letter-spacing-150);transition:0.2s box-shadow, 0.2s border-color;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);padding:var(--cnvs-sys-space-x2);margin:0;display:block;height:var(--cnvs-sys-space-x10);min-width:17.5rem;border-radius:var(--cnvs-sys-shape-x1);background-color:var(--cnvs-sys-color-bg-default);&::placeholder{color:var(--cnvs-sys-color-text-default);}&:hover{border-color:var(--cnvs-sys-color-border-input-strong);}&:focus:not([disabled]){outline:none;}&:disabled{background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-disabled);color:var(--cnvs-sys-color-fg-disabled);&::placeholder{color:var(--cnvs-sys-color-fg-disabled);}}::-ms-clear{display:none;}" },
|
|
13
13
|
modifiers: {
|
|
14
14
|
error: {
|
|
15
|
-
error: { name: "
|
|
16
|
-
alert: { name: "
|
|
15
|
+
error: { name: "2m2z9v", styles: "background-color:var(--cnvs-brand-error-lightest);" },
|
|
16
|
+
alert: { name: "3oljbn", styles: "background-color:var(--cnvs-brand-alert-lightest);" }
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}, "text-input-field-d4e5d8");
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/
|
|
21
|
+
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) instead.
|
|
22
22
|
*/
|
|
23
23
|
exports.TextInputField = (0, common_1.createSubcomponent)('input')({
|
|
24
24
|
displayName: 'TextInput.Field',
|
|
@@ -73,7 +73,7 @@ export const colorPickerStencil = createStencil({
|
|
|
73
73
|
hexInput: 'color-picker-hex-input',
|
|
74
74
|
inputWrapper: 'color-picker-input-wrapper',
|
|
75
75
|
},
|
|
76
|
-
base: { name: "
|
|
76
|
+
base: { name: "1pfxvp", styles: "box-sizing:border-box;width:13.5rem;[data-part=\"color-picker-form\"]{width:100%;display:flex;flex-direction:row;justify-content:space-between;margin-block-start:var(--cnvs-sys-space-x4);}[data-part=\"color-picker-input-wrapper\"]{display:flex;flex-direction:column;margin:var(--cnvs-sys-space-zero);}[data-part=\"color-picker-button\"]{align-self:flex-end;}[data-part=\"color-picker-hex-input\"]{width:10.5rem;}" }
|
|
77
77
|
}, "color-picker-c9dd1d");
|
|
78
78
|
const isCustomColor = (colors, hexCode) => {
|
|
79
79
|
if (!hexCode) {
|
|
@@ -8,7 +8,7 @@ export const resetButtonStencil = createStencil({
|
|
|
8
8
|
parts: {
|
|
9
9
|
label: 'reset-button-label',
|
|
10
10
|
},
|
|
11
|
-
base: { name: "
|
|
11
|
+
base: { name: "fvi06", styles: "box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:calc(100% + var(--cnvs-sys-space-x8));height:var(--cnvs-sys-space-x8);margin:calc(var(--cnvs-sys-space-x2) * -1) calc(var(--cnvs-sys-space-x4) * -1) var(--cnvs-sys-space-x2);padding:0 var(--cnvs-sys-space-x4);white-space:nowrap;border:none;outline:none;background:none;cursor:pointer;transition:color 120ms ease, background-color 120ms ease;&:hover, &.hover{background-color:var(--cnvs-sys-color-bg-alt-default);}&:active, &.active{background-color:var(--cnvs-sys-color-bg-alt-strong);}&:focus-visible, &.focus{box-shadow:0 0 0 0px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 2px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}[data-part=\"reset-button-label\"]{margin-left:var(--cnvs-sys-space-x2);}" }
|
|
12
12
|
}, "reset-button-af92a8");
|
|
13
13
|
export const ResetButton = ({ onClick, resetColor, label }) => {
|
|
14
14
|
const handleResetColor = () => onClick(resetColor);
|
|
@@ -10,7 +10,7 @@ const colorPickerSwatchBookStencil = createStencil({
|
|
|
10
10
|
parts: {
|
|
11
11
|
tile: 'color-picker-swatch-book-tile',
|
|
12
12
|
},
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "igbvx", styles: "--shadow-color-picker-swatch-book-a4010d:var(--cnvs-sys-color-border-inverse) 0 0 0 0.125rem, var(--cnvs-sys-color-border-input-default) 0 0 0 0.1875rem;box-sizing:border-box;display:flex;flex-wrap:wrap;margin:0 calc(var(--cnvs-sys-space-x2) * -1) calc(var(--cnvs-sys-space-x2) * -1) 0;[data-part=\"color-picker-swatch-book-tile\"]{display:flex;width:1.25rem;height:1.25rem;cursor:pointer;border-radius:var(--cnvs-sys-shape-half);transition:box-shadow 120ms ease;margin:0px var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2) 0px;&:hover{box-shadow:var(--shadow-color-picker-swatch-book-a4010d);}&:focus-visible{outline:none;box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse, rgba(255,255,255,1)), 0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}&[aria-selected=\"true\"]{box-shadow:var(--shadow-color-picker-swatch-book-a4010d);&:focus-visible{animation:none;box-shadow:none;}&:hover{box-shadow:var(--shadow-color-picker-swatch-book-a4010d);}}}" }
|
|
14
14
|
}, "color-picker-swatch-book-a4010d");
|
|
15
15
|
export const SwatchBook = ({ colors, value, onSelect }) => {
|
|
16
16
|
return (_jsx("div", { ...colorPickerSwatchBookStencil(), children: colors.map((color, index) => {
|
|
@@ -6,7 +6,7 @@ export const dividerStencil = createStencil({
|
|
|
6
6
|
vars: {
|
|
7
7
|
space: cssVar(system.space.x4),
|
|
8
8
|
},
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "1jru6q", styles: "--space-divider-a2c50d:var(--cnvs-sys-space-x4);box-sizing:border-box;display:block;height:0.0625rem;border:none;border-top:1px solid var(--cnvs-sys-color-border-divider);margin:calc(var(--space-divider-a2c50d) / 2) 0;" }
|
|
10
10
|
}, "divider-a2c50d");
|
|
11
11
|
/**
|
|
12
12
|
* # Divider
|
|
@@ -46,24 +46,24 @@ export declare const informationHighlightStencil: import("@workday/canvas-kit-st
|
|
|
46
46
|
borderInlineStart: string;
|
|
47
47
|
backgroundColor: "--cnvs-sys-color-bg-critical-softest";
|
|
48
48
|
'& [data-part="information-highlight-icon"]': {
|
|
49
|
-
[x: string]: "--cnvs-sys-color-
|
|
49
|
+
[x: string]: "--cnvs-sys-color-bg-critical-default" | "--cnvs-sys-color-icon-inverse" | "--cnvs-sys-color-fg-critical-default";
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
}, {}, {}, never, never>;
|
|
54
54
|
export declare const InformationHighlight: import("@workday/canvas-kit-react/common").ElementComponentM<"section", InformationHighlightProps & Partial<{
|
|
55
|
-
variant: "
|
|
55
|
+
variant: "caution" | "critical" | "informational";
|
|
56
56
|
emphasis: "high" | "low";
|
|
57
57
|
}> & {} & {}, {
|
|
58
58
|
state: {
|
|
59
|
-
variant: "
|
|
59
|
+
variant: "caution" | "critical" | "informational";
|
|
60
60
|
emphasis: "high" | "low";
|
|
61
61
|
};
|
|
62
62
|
events: {};
|
|
63
63
|
}> & {
|
|
64
64
|
Icon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("./parts/Icon").IconProps, {
|
|
65
65
|
state: {
|
|
66
|
-
variant: "
|
|
66
|
+
variant: "caution" | "critical" | "informational";
|
|
67
67
|
emphasis: "high" | "low";
|
|
68
68
|
};
|
|
69
69
|
events: {};
|
|
@@ -9,19 +9,19 @@ import { Link } from './parts/Link';
|
|
|
9
9
|
import { useInformationHighlightModel } from './hooks/useInformationHighlightModel';
|
|
10
10
|
import { systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
11
11
|
export const informationHighlightStencil = createStencil({
|
|
12
|
-
base: { name: "
|
|
12
|
+
base: { name: "3nha1s", styles: "box-sizing:border-box;display:grid;grid-template-columns:min-content;column-gap:var(--cnvs-sys-space-x4);row-gap:var(--cnvs-sys-space-x2);padding:var(--cnvs-sys-space-x4);border-radius:var(--cnvs-sys-shape-x1);outline:0.0625rem solid transparent;" },
|
|
13
13
|
modifiers: {
|
|
14
14
|
informational: {
|
|
15
|
-
low: { name: "
|
|
16
|
-
high: { name: "
|
|
15
|
+
low: { name: "4aau2l", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-bg-primary-default);background-color:var(--cnvs-sys-color-bg-alt-soft);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-3a4847:var(--cnvs-sys-color-bg-primary-default);--color-system-icon-3a4847:var(--cnvs-sys-color-bg-primary-default);--backgroundColor-system-icon-3a4847:none;}" },
|
|
16
|
+
high: { name: "2n5459", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-bg-primary-default);background-color:var(--cnvs-sys-color-bg-primary-softer);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-3a4847:var(--cnvs-sys-color-icon-inverse);--color-system-icon-3a4847:var(--cnvs-sys-color-bg-primary-default);--backgroundColor-system-icon-3a4847:var(--cnvs-sys-color-bg-primary-default);}" }
|
|
17
17
|
},
|
|
18
18
|
caution: {
|
|
19
|
-
low: { name: "
|
|
20
|
-
high: { name: "
|
|
19
|
+
low: { name: "487vup", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-border-caution-default);background-color:var(--cnvs-sys-color-bg-alt-soft);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-3a4847:var(--cnvs-sys-color-fg-contrast-default);--color-system-icon-3a4847:var(--cnvs-sys-color-fg-contrast-default);--backgroundColor-system-icon-3a4847:none;}" },
|
|
20
|
+
high: { name: "28eqoa", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-border-caution-default);background-color:var(--cnvs-sys-color-bg-caution-softest);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-3a4847:var(--cnvs-sys-color-icon-inverse);--color-system-icon-3a4847:var(--cnvs-sys-color-fg-contrast-default);--backgroundColor-system-icon-3a4847:var(--cnvs-sys-color-fg-contrast-default);}" }
|
|
21
21
|
},
|
|
22
22
|
critical: {
|
|
23
|
-
low: { name: "
|
|
24
|
-
high: { name: "
|
|
23
|
+
low: { name: "ngjn4", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-border-critical-default);background-color:var(--cnvs-sys-color-bg-alt-soft);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-3a4847:var(--cnvs-sys-color-bg-critical-default);--color-system-icon-3a4847:var(--cnvs-sys-color-bg-critical-default);--backgroundColor-system-icon-3a4847:none;}" },
|
|
24
|
+
high: { name: "12n02w", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-border-critical-default);background-color:var(--cnvs-sys-color-bg-critical-softest);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-3a4847:var(--cnvs-sys-color-icon-inverse);--color-system-icon-3a4847:var(--cnvs-sys-color-bg-critical-default);--backgroundColor-system-icon-3a4847:var(--cnvs-sys-color-fg-critical-default);}" }
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}, "information-highlight-520f38");
|