@workday/canvas-kit-preview-react 14.0.0-alpha.1123-next.0 → 14.0.0-alpha.1126-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/divider/lib/Divider.js +1 -1
- package/dist/commonjs/information-highlight/lib/InformationHighlight.js +7 -7
- 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/Link.js +1 -1
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/commonjs/multi-select/lib/MultiSelectInput.js +1 -1
- 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/index.d.ts +0 -1
- package/dist/commonjs/segmented-control/index.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/index.js +0 -3
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +95 -19
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +68 -85
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +17 -135
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +24 -12
- 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/lib/StatusIndicator.js +13 -13
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/es6/divider/lib/Divider.js +1 -1
- package/dist/es6/information-highlight/lib/InformationHighlight.js +7 -7
- 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/Link.js +1 -1
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelectInput.js +1 -1
- 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/index.d.ts +0 -1
- package/dist/es6/segmented-control/index.d.ts.map +1 -1
- package/dist/es6/segmented-control/index.js +0 -1
- package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +95 -19
- package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlItem.js +68 -85
- package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +17 -135
- package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControlList.js +24 -12
- 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/lib/StatusIndicator.js +13 -13
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/package.json +4 -4
- package/segmented-control/index.ts +0 -1
- package/segmented-control/lib/SegmentedControlItem.tsx +153 -122
- package/segmented-control/lib/SegmentedControlList.tsx +42 -27
|
@@ -23,109 +23,92 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SegmentedControlItem = void 0;
|
|
26
|
+
exports.SegmentedControlItem = exports.segmentedControlItemStencil = void 0;
|
|
27
27
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
const React = __importStar(require("react"));
|
|
29
|
-
const
|
|
29
|
+
const button_1 = require("@workday/canvas-kit-react/button");
|
|
30
30
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
31
|
+
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
32
|
+
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
33
|
+
const icon_1 = require("@workday/canvas-kit-react/icon");
|
|
31
34
|
const tooltip_1 = require("@workday/canvas-kit-react/tooltip");
|
|
32
|
-
const button_1 = require("@workday/canvas-kit-react/button");
|
|
33
|
-
const useSegmentedControlModel_1 = require("./hooks/useSegmentedControlModel");
|
|
34
35
|
const text_1 = require("@workday/canvas-kit-react/text");
|
|
36
|
+
const useSegmentedControlModel_1 = require("./hooks/useSegmentedControlModel");
|
|
35
37
|
const useSegmentedControlItem_1 = require("./hooks/useSegmentedControlItem");
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return 'small';
|
|
56
|
-
case 'small':
|
|
57
|
-
return 'extraSmall';
|
|
58
|
-
default:
|
|
59
|
-
return 'medium';
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const getIconButtonColors = (toggled) => {
|
|
63
|
-
return {
|
|
64
|
-
default: {
|
|
65
|
-
background: toggled ? tokens_1.colors.frenchVanilla100 : tokens_1.colors.soap200,
|
|
66
|
-
border: toggled ? tokens_1.colors.licorice200 : 'transparent',
|
|
67
|
-
icon: toggled ? tokens_1.colors.blackPepper400 : tokens_1.colors.licorice400,
|
|
68
|
-
label: toggled ? tokens_1.colors.blackPepper400 : tokens_1.colors.licorice400,
|
|
38
|
+
exports.segmentedControlItemStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
39
|
+
extends: button_1.buttonStencil,
|
|
40
|
+
base: { name: "bhnw3p", styles: "box-sizing:border-box;font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);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);text-align:start;padding-inline:var(--cnvs-sys-space-zero);gap:var(--cnvs-sys-space-x1);--borderRadius-button-65cb05:var(--cnvs-sys-shape-x1);--label-button-65cb05:var(--cnvs-sys-color-fg-muted-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-muted-strong);&:hover, &.hover{--background-button-65cb05:var(--cnvs-sys-color-bg-alt-strong);--label-button-65cb05:var(--cnvs-sys-color-fg-muted-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-muted-strong);}&:active, &.active{--background-button-65cb05:var(--cnvs-sys-color-bg-alt-strong);--label-button-65cb05:var(--cnvs-sys-color-fg-muted-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-muted-strong);}&:focus-visible, &.focus{--label-button-65cb05:var(--cnvs-sys-color-fg-muted-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-muted-strong);}&:disabled, &.disabled{--background-button-65cb05:var(--cnvs-sys-color-bg-alt-soft);}&[aria-pressed='true']{--background-button-65cb05:var(--cnvs-sys-color-bg-default);--border-button-65cb05:var(--cnvs-sys-color-border-input-default);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-strong);--label-button-65cb05:var(--cnvs-sys-color-fg-strong);&:hover, &.hover{--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-strong);--label-button-65cb05:var(--cnvs-sys-color-fg-strong);}&:disabled, &.disabled{--border-button-65cb05:var(--cnvs-sys-color-border-input-default);--label-button-65cb05:var(--cnvs-sys-color-fg-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-strong);}}:dir(rtl){svg{transform:scaleX(-1);}}" },
|
|
41
|
+
modifiers: {
|
|
42
|
+
size: {
|
|
43
|
+
large: { name: "bhnw3q", styles: "height:var(--cnvs-sys-space-x10);gap:var(--cnvs-sys-space-x2);" },
|
|
44
|
+
medium: { name: "bhnw3r", styles: "height:var(--cnvs-sys-space-x8);" },
|
|
45
|
+
small: { name: "bhnw3s", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-subtext-medium);font-size:var(--cnvs-sys-font-size-subtext-medium);letter-spacing:var(--cnvs-base-letter-spacing-100);height:var(--cnvs-sys-space-x6);" }
|
|
46
|
+
},
|
|
47
|
+
variant: {
|
|
48
|
+
iconOnly: { name: "bhnw3t", styles: "" },
|
|
49
|
+
textOnly: { name: "bhnw3u", styles: "" },
|
|
50
|
+
iconWithText: { name: "bhnw3v", styles: "" }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
compound: [
|
|
54
|
+
{
|
|
55
|
+
modifiers: { size: 'large', variant: 'iconOnly' },
|
|
56
|
+
styles: { name: "bhnw3w", styles: "min-width:var(--cnvs-sys-space-x10);" }
|
|
69
57
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
icon: tokens_1.colors.licorice400,
|
|
74
|
-
label: tokens_1.colors.licorice400,
|
|
58
|
+
{
|
|
59
|
+
modifiers: { size: 'large', variant: 'iconWithText' },
|
|
60
|
+
styles: { name: "bhnw3x", styles: "padding-inline:1.25rem var(--cnvs-sys-space-x6);" }
|
|
75
61
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
icon: tokens_1.colors.licorice400,
|
|
80
|
-
label: tokens_1.colors.licorice400,
|
|
62
|
+
{
|
|
63
|
+
modifiers: { size: 'large', variant: 'textOnly' },
|
|
64
|
+
styles: { name: "bhnw3y", styles: "padding-inline:var(--cnvs-sys-space-x6);" }
|
|
81
65
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
icon: toggled ? tokens_1.colors.blackPepper400 : tokens_1.colors.licorice400,
|
|
86
|
-
label: toggled ? tokens_1.colors.blackPepper400 : tokens_1.colors.licorice400,
|
|
66
|
+
{
|
|
67
|
+
modifiers: { size: 'medium', variant: 'iconOnly' },
|
|
68
|
+
styles: { name: "bhnw3z", styles: "min-width:var(--cnvs-sys-space-x8);" }
|
|
87
69
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
icon: tokens_1.colors.licorice400,
|
|
92
|
-
border: toggled ? tokens_1.colors.licorice200 : 'transparent',
|
|
93
|
-
label: tokens_1.colors.blackPepper400,
|
|
70
|
+
{
|
|
71
|
+
modifiers: { size: 'medium', variant: 'iconWithText' },
|
|
72
|
+
styles: { name: "bhnw40", styles: "padding-inline:var(--cnvs-sys-space-x4) 1.25rem;" }
|
|
94
73
|
},
|
|
95
|
-
|
|
74
|
+
{
|
|
75
|
+
modifiers: { size: 'medium', variant: 'textOnly' },
|
|
76
|
+
styles: { name: "bhnw41", styles: "padding-inline:1.25rem;" }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
modifiers: { size: 'small', variant: 'iconOnly' },
|
|
80
|
+
styles: { name: "bhnw42", styles: "min-width:var(--cnvs-sys-space-x6);" }
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
modifiers: { size: 'small', variant: 'iconWithText' },
|
|
84
|
+
styles: { name: "bhnw43", styles: "padding-inline:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x3);" }
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
modifiers: { size: 'small', variant: 'textOnly' },
|
|
88
|
+
styles: { name: "bhnw44", styles: "padding-inline:var(--cnvs-sys-space-x3);" }
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}, "segmented-control-item-bc271f");
|
|
92
|
+
const Container = ({ tooltipProps, children }) => {
|
|
93
|
+
return tooltipProps ? ((0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { ...tooltipProps, children: children })) : ((0, jsx_runtime_1.jsx)(React.Fragment, { children: children }));
|
|
96
94
|
};
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
95
|
+
const getVariant = (icon, children) => {
|
|
96
|
+
if (icon && children) {
|
|
97
|
+
return 'iconWithText';
|
|
100
98
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
case 'small':
|
|
107
|
-
return icon ? `0 ${tokens_1.space.xs} 0 ${tokens_1.space.xxs}` : `0 ${tokens_1.space.xs}`;
|
|
108
|
-
default:
|
|
109
|
-
return icon ? `0 20px 0 ${tokens_1.space.s}` : `0 ${tokens_1.space.s}`;
|
|
99
|
+
else if (!icon && children) {
|
|
100
|
+
return 'textOnly';
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return 'iconOnly';
|
|
110
104
|
}
|
|
111
|
-
};
|
|
112
|
-
const geButtonStyles = (size, children, icon) => {
|
|
113
|
-
const buttonSize = getButtonSize(size);
|
|
114
|
-
const minWidthValue = getMinWidthStyles(children, children ? size : buttonSize);
|
|
115
|
-
return {
|
|
116
|
-
height: getMinWidthStyles(false, buttonSize),
|
|
117
|
-
minWidth: minWidthValue,
|
|
118
|
-
padding: getPaddingStyles(children, size, icon),
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
const Container = ({ tooltipProps, children, }) => {
|
|
122
|
-
return tooltipProps ? ((0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { ...tooltipProps, children: children })) : ((0, jsx_runtime_1.jsx)(React.Fragment, { children: children }));
|
|
123
105
|
};
|
|
124
106
|
exports.SegmentedControlItem = (0, common_1.createSubcomponent)('button')({
|
|
125
107
|
displayName: 'SegmentedControl.Item',
|
|
126
108
|
modelHook: useSegmentedControlModel_1.useSegmentedControlModel,
|
|
127
109
|
elemPropsHook: useSegmentedControlItem_1.useSegmentedControlItem,
|
|
128
110
|
})(({ children, icon, tooltipProps, ...elemProps }, Element, { state: { size } }) => {
|
|
129
|
-
const
|
|
130
|
-
|
|
111
|
+
const variant = getVariant(icon, children);
|
|
112
|
+
const iconSize = size === 'small' ? 'extraSmall' : 'small';
|
|
113
|
+
return ((0, jsx_runtime_1.jsx)(Container, { tooltipProps: tooltipProps, children: (0, jsx_runtime_1.jsxs)(button_1.BaseButton, { as: Element, ...(0, canvas_kit_styling_1.handleCsProp)(elemProps, (0, exports.segmentedControlItemStencil)({ size, variant })), children: [icon && (0, jsx_runtime_1.jsx)(button_1.BaseButton.Icon, { icon: icon, size: iconSize }), children && (0, jsx_runtime_1.jsx)(text_1.Text, { children: children })] }) }));
|
|
131
114
|
});
|
|
@@ -5,145 +5,27 @@ export interface SegmentedControlListProps<T = any> extends Omit<Partial<Extract
|
|
|
5
5
|
'aria-label': string;
|
|
6
6
|
children: ((item: T) => React.ReactNode) | React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
selectedIds: string[] | "all";
|
|
13
|
-
unselectedIds: string[];
|
|
14
|
-
cursorId: string | string[];
|
|
15
|
-
columnCount: number;
|
|
16
|
-
pageSizeRef: React.MutableRefObject<number>;
|
|
17
|
-
cursorIndexRef: {
|
|
18
|
-
readonly current: number;
|
|
19
|
-
};
|
|
20
|
-
UNSTABLE_virtual: {
|
|
21
|
-
virtualItems: import("@workday/canvas-kit-react/collection").VirtualItem[];
|
|
22
|
-
totalSize: number;
|
|
23
|
-
scrollToOffset: (index: number, options?: import("@workday/canvas-kit-react/collection").ScrollToOffsetOptions | undefined) => void;
|
|
24
|
-
scrollToIndex: (index: number, options?: import("@workday/canvas-kit-react/collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
|
|
25
|
-
measure: () => void;
|
|
8
|
+
export declare const segmentedControlListStencil: import("@workday/canvas-kit-styling").Stencil<{
|
|
9
|
+
disabled: {
|
|
10
|
+
true: {
|
|
11
|
+
opacity: "--cnvs-sys-opacity-disabled";
|
|
26
12
|
};
|
|
27
|
-
UNSTABLE_defaultItemHeight: number;
|
|
28
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
29
|
-
id: string;
|
|
30
|
-
orientation: "horizontal" | "vertical";
|
|
31
|
-
indexRef: React.MutableRefObject<number>;
|
|
32
|
-
nonInteractiveIds: string[];
|
|
33
|
-
isVirtualized: boolean;
|
|
34
|
-
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
35
|
-
};
|
|
36
|
-
events: {
|
|
37
|
-
select(data: {
|
|
38
|
-
id: string;
|
|
39
|
-
}): void;
|
|
40
|
-
selectAll(): void;
|
|
41
|
-
unselectAll(): void;
|
|
42
|
-
setSelectedIds(ids: string[] | "all"): void;
|
|
43
|
-
remove(data: {
|
|
44
|
-
id: string;
|
|
45
|
-
nextId?: string | undefined;
|
|
46
|
-
event?: Event | React.SyntheticEvent<Element, Event> | undefined;
|
|
47
|
-
}): void;
|
|
48
|
-
goTo(data: {
|
|
49
|
-
id: string;
|
|
50
|
-
}): void;
|
|
51
|
-
goToNext(): void;
|
|
52
|
-
goToPrevious(): void;
|
|
53
|
-
goToPreviousRow(): void;
|
|
54
|
-
goToNextRow(): void;
|
|
55
|
-
goToFirst(): void;
|
|
56
|
-
goToLast(): void;
|
|
57
|
-
goToFirstOfRow(): void;
|
|
58
|
-
goToLastOfRow(): void;
|
|
59
|
-
goToNextPage(): void;
|
|
60
|
-
goToPreviousPage(): void;
|
|
61
|
-
registerItem(data: {
|
|
62
|
-
id: string;
|
|
63
|
-
textValue: string;
|
|
64
|
-
}): void;
|
|
65
|
-
unregisterItem(data: {
|
|
66
|
-
id: string;
|
|
67
|
-
}): void;
|
|
68
|
-
updateItemHeight(data: {
|
|
69
|
-
value: number;
|
|
70
|
-
}): void;
|
|
71
13
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
state: {
|
|
78
|
-
selectedIds: string[] | "all";
|
|
79
|
-
unselectedIds: string[];
|
|
80
|
-
cursorId: string | string[];
|
|
81
|
-
columnCount: number;
|
|
82
|
-
pageSizeRef: React.MutableRefObject<number>;
|
|
83
|
-
cursorIndexRef: {
|
|
84
|
-
readonly current: number;
|
|
85
|
-
};
|
|
86
|
-
UNSTABLE_virtual: {
|
|
87
|
-
virtualItems: import("@workday/canvas-kit-react/collection").VirtualItem[];
|
|
88
|
-
totalSize: number;
|
|
89
|
-
scrollToOffset: (index: number, options?: import("@workday/canvas-kit-react/collection").ScrollToOffsetOptions | undefined) => void;
|
|
90
|
-
scrollToIndex: (index: number, options?: import("@workday/canvas-kit-react/collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
|
|
91
|
-
measure: () => void;
|
|
92
|
-
};
|
|
93
|
-
UNSTABLE_defaultItemHeight: number;
|
|
94
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
95
|
-
id: string;
|
|
96
|
-
orientation: "horizontal" | "vertical";
|
|
97
|
-
indexRef: React.MutableRefObject<number>;
|
|
98
|
-
nonInteractiveIds: string[];
|
|
99
|
-
isVirtualized: boolean;
|
|
100
|
-
items: import("@workday/canvas-kit-react/collection").Item<any>[];
|
|
14
|
+
orientation: {
|
|
15
|
+
vertical: ({ items }: {
|
|
16
|
+
items: string;
|
|
17
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
18
|
+
gridTemplateRows: string;
|
|
101
19
|
};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
selectAll(): void;
|
|
107
|
-
unselectAll(): void;
|
|
108
|
-
setSelectedIds(ids: string[] | "all"): void;
|
|
109
|
-
remove(data: {
|
|
110
|
-
id: string;
|
|
111
|
-
nextId?: string | undefined;
|
|
112
|
-
event?: Event | React.SyntheticEvent<Element, Event> | undefined;
|
|
113
|
-
}): void;
|
|
114
|
-
goTo(data: {
|
|
115
|
-
id: string;
|
|
116
|
-
}): void;
|
|
117
|
-
goToNext(): void;
|
|
118
|
-
goToPrevious(): void;
|
|
119
|
-
goToPreviousRow(): void;
|
|
120
|
-
goToNextRow(): void;
|
|
121
|
-
goToFirst(): void;
|
|
122
|
-
goToLast(): void;
|
|
123
|
-
goToFirstOfRow(): void;
|
|
124
|
-
goToLastOfRow(): void;
|
|
125
|
-
goToNextPage(): void;
|
|
126
|
-
goToPreviousPage(): void;
|
|
127
|
-
registerItem(data: {
|
|
128
|
-
id: string;
|
|
129
|
-
textValue: string;
|
|
130
|
-
}): void;
|
|
131
|
-
unregisterItem(data: {
|
|
132
|
-
id: string;
|
|
133
|
-
}): void;
|
|
134
|
-
updateItemHeight(data: {
|
|
135
|
-
value: number;
|
|
136
|
-
}): void;
|
|
20
|
+
horizontal: ({ items }: {
|
|
21
|
+
items: string;
|
|
22
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
23
|
+
gridTemplateColumns: string;
|
|
137
24
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
} | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
readonly [x: string]: `repeat(${number}, 1fr)` | 0.4 | undefined;
|
|
145
|
-
readonly opacity: 0.4 | undefined;
|
|
146
|
-
}>;
|
|
25
|
+
};
|
|
26
|
+
}, {}, {
|
|
27
|
+
items: string;
|
|
28
|
+
}, never, never>;
|
|
147
29
|
export declare const SegmentedControlList: import("@workday/canvas-kit-react/common").ElementComponentM<"div", SegmentedControlListProps<any>, {
|
|
148
30
|
state: {
|
|
149
31
|
disabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControlList.d.ts","sourceRoot":"","sources":["../../../../segmented-control/lib/SegmentedControlList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SegmentedControlList.d.ts","sourceRoot":"","sources":["../../../../segmented-control/lib/SegmentedControlList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAqB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AAKtD,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,GAAG,CAChD,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;gBA2BtC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB/B,CAAC"}
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SegmentedControlList = exports.
|
|
3
|
+
exports.SegmentedControlList = exports.segmentedControlListStencil = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
5
6
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
6
|
-
const
|
|
7
|
-
const collection_1 = require("@workday/canvas-kit-react/collection");
|
|
7
|
+
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
8
8
|
const useSegmentedControlModel_1 = require("./hooks/useSegmentedControlModel");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
9
|
+
const collection_1 = require("@workday/canvas-kit-react/collection");
|
|
10
|
+
exports.segmentedControlListStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
11
|
+
vars: {
|
|
12
|
+
items: '',
|
|
13
|
+
},
|
|
14
|
+
base: { name: "bhnw30", styles: "box-sizing:border-box;display:inline-grid;background-color:var(--cnvs-sys-color-bg-alt-soft);border:0.0625rem solid var(--cnvs-sys-color-border-input-default);border-radius:var(--cnvs-sys-shape-x2);padding:0.1875rem;grid-gap:var(--cnvs-sys-space-x2);" },
|
|
15
|
+
modifiers: {
|
|
16
|
+
disabled: {
|
|
17
|
+
true: { name: "bhnw31", styles: "opacity:var(--cnvs-sys-opacity-disabled);" }
|
|
18
|
+
},
|
|
19
|
+
orientation: {
|
|
20
|
+
vertical: { name: "bhnw32", styles: "grid-template-rows:repeat(var(--items-segmented-control-list-0a747c), 1fr);" },
|
|
21
|
+
horizontal: { name: "bhnw33", styles: "grid-template-columns:repeat(var(--items-segmented-control-list-0a747c), 1fr);" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, "segmented-control-list-0a747c");
|
|
16
25
|
exports.SegmentedControlList = (0, common_1.createSubcomponent)('div')({
|
|
17
26
|
displayName: 'SegmentedControl.List',
|
|
18
27
|
modelHook: useSegmentedControlModel_1.useSegmentedControlModel,
|
|
19
|
-
elemPropsHook: exports.useSegmentedControlList,
|
|
20
28
|
})(({ children, ...elemProps }, Element, model) => {
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(Element, { role: "group", ...(0, canvas_kit_styling_1.handleCsProp)(elemProps, (0, exports.segmentedControlListStencil)({
|
|
30
|
+
disabled: model.state.disabled,
|
|
31
|
+
items: `${model.state.items.length}`,
|
|
32
|
+
orientation: model.state.orientation,
|
|
33
|
+
})), children: (0, collection_1.useListRenderItems)(model, children) }));
|
|
22
34
|
});
|
|
@@ -36,19 +36,19 @@ exports.panelStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
|
36
36
|
expandedWidth: '',
|
|
37
37
|
collapsedWidth: '',
|
|
38
38
|
},
|
|
39
|
-
base: { name: "
|
|
39
|
+
base: { name: "bhnw4g", styles: "box-sizing:border-box;overflow:hidden;position:relative;height:100%;outline:0.0625rem solid transparent;transition:width ease-out 200ms, max-width ease-out 200ms;" },
|
|
40
40
|
modifiers: {
|
|
41
41
|
variant: {
|
|
42
|
-
alternate: { name: "
|
|
43
|
-
standard: { name: "
|
|
42
|
+
alternate: { name: "bhnw4h", styles: "background-color:var(--cnvs-sys-color-bg-default);box-shadow:var(--cnvs-sys-depth-5);" },
|
|
43
|
+
standard: { name: "bhnw4i", styles: "background-color:var(--cnvs-sys-color-bg-alt-softer);" }
|
|
44
44
|
},
|
|
45
45
|
expanded: {
|
|
46
|
-
true: { name: "
|
|
47
|
-
false: { name: "
|
|
46
|
+
true: { name: "bhnw4j", styles: "width:var(--expandedWidth-panel-bd9477);max-width:var(--expandedWidth-panel-bd9477);" },
|
|
47
|
+
false: { name: "bhnw4k", styles: "width:var(--collapsedWidth-panel-bd9477);max-width:var(--collapsedWidth-panel-bd9477);" }
|
|
48
48
|
},
|
|
49
49
|
touched: {
|
|
50
|
-
true: { name: "
|
|
51
|
-
false: { name: "
|
|
50
|
+
true: { name: "bhnw4l", styles: "" },
|
|
51
|
+
false: { name: "bhnw4m", styles: "animation:none;" }
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}, "panel-bd9477");
|
|
@@ -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: "bhnw45", 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: "bhnw46", styles: "margin:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
41
|
+
collapsed: { name: "bhnw47", styles: "margin:auto;inset-inline-start:0;inset-inline-end:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
42
|
+
expanded: { name: "bhnw48", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" },
|
|
43
|
+
expanding: { name: "bhnw49", 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: "bhnw4a", styles: "" },
|
|
47
|
+
right: { name: "bhnw4b", styles: "" }
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
compound: [
|
|
51
51
|
{
|
|
52
52
|
modifiers: { state: 'collapsed', origin: 'right' },
|
|
53
|
-
styles: { name: "
|
|
53
|
+
styles: { name: "bhnw4c", styles: "transform:scaleX(-1);" }
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
modifiers: { state: 'collapsing', origin: 'right' },
|
|
57
|
-
styles: { name: "
|
|
57
|
+
styles: { name: "bhnw4d", 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: "bhnw4e", 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: "bhnw4f", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
}, "side-panel-toggle-button-da8098");
|
|
@@ -10,31 +10,31 @@ const icon_1 = require("@workday/canvas-kit-react/icon");
|
|
|
10
10
|
const StatusIndicatorIcon_1 = require("./StatusIndicatorIcon");
|
|
11
11
|
const StatusIndicatorLabel_1 = require("./StatusIndicatorLabel");
|
|
12
12
|
const statusIndicatorStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "bhnw54", 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-half);height:1.25rem;padding:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x1);outline:0.0625rem solid transparent;" },
|
|
14
14
|
modifiers: {
|
|
15
15
|
gray: {
|
|
16
|
-
high: { name: "
|
|
17
|
-
low: { name: "
|
|
16
|
+
high: { name: "bhnw55", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-gray-default);" },
|
|
17
|
+
low: { name: "bhnw56", styles: "color:var(--cnvs-sys-color-static-gray-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-gray-strong);background:var(--cnvs-sys-color-static-gray-soft);" }
|
|
18
18
|
},
|
|
19
19
|
orange: {
|
|
20
|
-
high: { name: "
|
|
21
|
-
low: { name: "
|
|
20
|
+
high: { name: "bhnw57", styles: "color:var(--cnvs-sys-color-static-gray-stronger);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-gray-stronger);background:var(--cnvs-sys-color-static-orange-default);" },
|
|
21
|
+
low: { name: "bhnw58", styles: "color:var(--cnvs-sys-color-static-gold-stronger);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-gold-stronger);background:var(--cnvs-sys-color-static-orange-soft);" }
|
|
22
22
|
},
|
|
23
23
|
blue: {
|
|
24
|
-
high: { name: "
|
|
25
|
-
low: { name: "
|
|
24
|
+
high: { name: "bhnw59", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-blue-default);" },
|
|
25
|
+
low: { name: "bhnw5a", styles: "color:var(--cnvs-sys-color-static-blue-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-blue-strong);background:var(--cnvs-sys-color-static-blue-soft);" }
|
|
26
26
|
},
|
|
27
27
|
green: {
|
|
28
|
-
high: { name: "
|
|
29
|
-
low: { name: "
|
|
28
|
+
high: { name: "bhnw5b", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-green-strong);" },
|
|
29
|
+
low: { name: "bhnw5c", styles: "color:var(--cnvs-sys-color-static-green-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-green-strong);background:var(--cnvs-sys-color-static-green-soft);" }
|
|
30
30
|
},
|
|
31
31
|
red: {
|
|
32
|
-
high: { name: "
|
|
33
|
-
low: { name: "
|
|
32
|
+
high: { name: "bhnw5d", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-static-red-default);" },
|
|
33
|
+
low: { name: "bhnw5e", styles: "color:var(--cnvs-sys-color-static-red-strong);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-red-strong);background:var(--cnvs-sys-color-static-red-soft);" }
|
|
34
34
|
},
|
|
35
35
|
transparent: {
|
|
36
|
-
high: { name: "
|
|
37
|
-
low: { name: "
|
|
36
|
+
high: { name: "bhnw5f", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" },
|
|
37
|
+
low: { name: "bhnw5g", styles: "color:var(--cnvs-sys-color-static-white);--color-system-icon-99ce3e:var(--cnvs-sys-color-static-white);background:var(--cnvs-sys-color-bg-translucent);" }
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}, "status-indicator-1a565e");
|
|
@@ -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: "bhnw53", 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')({
|
|
@@ -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: "zeju2", 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
|
|
@@ -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: "zeju5k", 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: "zeju5l", 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-99ce3e:var(--cnvs-sys-color-bg-primary-default);--color-system-icon-99ce3e:var(--cnvs-sys-color-bg-primary-default);--backgroundColor-system-icon-99ce3e:none;}" },
|
|
16
|
+
high: { name: "zeju5m", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-bg-primary-default);background-color:var(--cnvs-base-palette-blueberry-100);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-99ce3e:var(--cnvs-sys-color-icon-inverse);--color-system-icon-99ce3e:var(--cnvs-sys-color-bg-primary-default);--backgroundColor-system-icon-99ce3e:var(--cnvs-sys-color-bg-primary-default);}" }
|
|
17
17
|
},
|
|
18
18
|
caution: {
|
|
19
|
-
low: { name: "
|
|
20
|
-
high: { name: "
|
|
19
|
+
low: { name: "zeju5n", 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-99ce3e:var(--cnvs-sys-color-fg-contrast-default);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-contrast-default);--backgroundColor-system-icon-99ce3e:none;}" },
|
|
20
|
+
high: { name: "zeju5o", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-border-caution-default);background-color:var(--cnvs-base-palette-sour-lemon-100);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-99ce3e:var(--cnvs-sys-color-icon-inverse);--color-system-icon-99ce3e:var(--cnvs-sys-color-fg-contrast-default);--backgroundColor-system-icon-99ce3e:var(--cnvs-sys-color-fg-contrast-default);}" }
|
|
21
21
|
},
|
|
22
22
|
critical: {
|
|
23
|
-
low: { name: "
|
|
24
|
-
high: { name: "
|
|
23
|
+
low: { name: "zeju5p", 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-99ce3e:var(--cnvs-sys-color-bg-critical-default);--color-system-icon-99ce3e:var(--cnvs-sys-color-bg-critical-default);--backgroundColor-system-icon-99ce3e:none;}" },
|
|
24
|
+
high: { name: "zeju5q", styles: "border-inline-start:solid var(--cnvs-sys-space-x1) var(--cnvs-sys-color-border-critical-default);background-color:var(--cnvs-base-palette-peach-100);& [data-part=\"information-highlight-icon\"]{--accentColor-system-icon-99ce3e:var(--cnvs-sys-color-icon-inverse);--color-system-icon-99ce3e:var(--cnvs-sys-color-bg-critical-default);--backgroundColor-system-icon-99ce3e:var(--cnvs-sys-color-bg-critical-default);}" }
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}, "information-highlight-8bd64c");
|
|
@@ -4,7 +4,7 @@ import { createStencil, handleCsProp } from '@workday/canvas-kit-styling';
|
|
|
4
4
|
import { system } from '@workday/canvas-tokens-web';
|
|
5
5
|
import { Text } from '@workday/canvas-kit-react/text';
|
|
6
6
|
const informationHighlightBodyStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "zeju5i", 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);color:var(--cnvs-sys-color-text-strong);grid-column:2;margin-block-end:var(--cnvs-sys-space-x2);" }
|
|
8
8
|
}, "information-highlight-body-0931ed");
|
|
9
9
|
export const Body = createComponent('div')({
|
|
10
10
|
displayName: 'Body',
|
|
@@ -4,7 +4,7 @@ import { createStencil, handleCsProp } from '@workday/canvas-kit-styling';
|
|
|
4
4
|
import { system } from '@workday/canvas-tokens-web';
|
|
5
5
|
import { Heading } from '@workday/canvas-kit-react/text';
|
|
6
6
|
const informationHighlightHeadingStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "zeju5h", styles: "box-sizing:border-box;font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-body-small);font-size:var(--cnvs-sys-font-size-body-small);letter-spacing:var(--cnvs-base-letter-spacing-200);color:var(--cnvs-sys-color-text-strong);grid-column:2;margin-top:var(--cnvs-sys-space-zero);margin-bottom:var(--cnvs-sys-space-zero);" }
|
|
8
8
|
}, "information-highlight-heading-1080eb");
|
|
9
9
|
export const InformationHighlightHeading = createComponent('h3')({
|
|
10
10
|
displayName: 'Heading',
|