@workday/canvas-kit-preview-react 14.0.0-alpha.1125-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
|
@@ -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,19 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { createStencil, handleCsProp, px2rem } from '@workday/canvas-kit-styling';
|
|
3
|
+
import { createSubcomponent } from '@workday/canvas-kit-react/common';
|
|
4
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
5
5
|
import { useSegmentedControlModel } from './hooks/useSegmentedControlModel';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
6
|
+
import { useListRenderItems } from '@workday/canvas-kit-react/collection';
|
|
7
|
+
export const segmentedControlListStencil = createStencil({
|
|
8
|
+
vars: {
|
|
9
|
+
items: '',
|
|
10
|
+
},
|
|
11
|
+
base: { name: "zeju30", 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);" },
|
|
12
|
+
modifiers: {
|
|
13
|
+
disabled: {
|
|
14
|
+
true: { name: "zeju31", styles: "opacity:var(--cnvs-sys-opacity-disabled);" }
|
|
15
|
+
},
|
|
16
|
+
orientation: {
|
|
17
|
+
vertical: { name: "zeju32", styles: "grid-template-rows:repeat(var(--items-segmented-control-list-0a747c), 1fr);" },
|
|
18
|
+
horizontal: { name: "zeju33", styles: "grid-template-columns:repeat(var(--items-segmented-control-list-0a747c), 1fr);" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}, "segmented-control-list-0a747c");
|
|
13
22
|
export const SegmentedControlList = createSubcomponent('div')({
|
|
14
23
|
displayName: 'SegmentedControl.List',
|
|
15
24
|
modelHook: useSegmentedControlModel,
|
|
16
|
-
elemPropsHook: useSegmentedControlList,
|
|
17
25
|
})(({ children, ...elemProps }, Element, model) => {
|
|
18
|
-
return (_jsx(
|
|
26
|
+
return (_jsx(Element, { role: "group", ...handleCsProp(elemProps, segmentedControlListStencil({
|
|
27
|
+
disabled: model.state.disabled,
|
|
28
|
+
items: `${model.state.items.length}`,
|
|
29
|
+
orientation: model.state.orientation,
|
|
30
|
+
})), children: useListRenderItems(model, children) }));
|
|
19
31
|
});
|
|
@@ -10,19 +10,19 @@ export const panelStencil = createStencil({
|
|
|
10
10
|
expandedWidth: '',
|
|
11
11
|
collapsedWidth: '',
|
|
12
12
|
},
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "zeju4g", 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;" },
|
|
14
14
|
modifiers: {
|
|
15
15
|
variant: {
|
|
16
|
-
alternate: { name: "
|
|
17
|
-
standard: { name: "
|
|
16
|
+
alternate: { name: "zeju4h", styles: "background-color:var(--cnvs-sys-color-bg-default);box-shadow:var(--cnvs-sys-depth-5);" },
|
|
17
|
+
standard: { name: "zeju4i", styles: "background-color:var(--cnvs-sys-color-bg-alt-softer);" }
|
|
18
18
|
},
|
|
19
19
|
expanded: {
|
|
20
|
-
true: { name: "
|
|
21
|
-
false: { name: "
|
|
20
|
+
true: { name: "zeju4j", styles: "width:var(--expandedWidth-panel-bd9477);max-width:var(--expandedWidth-panel-bd9477);" },
|
|
21
|
+
false: { name: "zeju4k", styles: "width:var(--collapsedWidth-panel-bd9477);max-width:var(--collapsedWidth-panel-bd9477);" }
|
|
22
22
|
},
|
|
23
23
|
touched: {
|
|
24
|
-
true: { name: "
|
|
25
|
-
false: { name: "
|
|
24
|
+
true: { name: "zeju4l", styles: "" },
|
|
25
|
+
false: { name: "zeju4m", styles: "animation:none;" }
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}, "panel-bd9477");
|
|
@@ -8,35 +8,35 @@ import { SidePanelContext } from './hooks';
|
|
|
8
8
|
import { createStencil, handleCsProp } from '@workday/canvas-kit-styling';
|
|
9
9
|
import { system } from '@workday/canvas-tokens-web';
|
|
10
10
|
export const sidePanelToggleButtonStencil = createStencil({
|
|
11
|
-
base: { name: "
|
|
11
|
+
base: { name: "zeju45", 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);" },
|
|
12
12
|
modifiers: {
|
|
13
13
|
state: {
|
|
14
|
-
collapsing: { name: "
|
|
15
|
-
collapsed: { name: "
|
|
16
|
-
expanded: { name: "
|
|
17
|
-
expanding: { name: "
|
|
14
|
+
collapsing: { name: "zeju46", styles: "margin:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
15
|
+
collapsed: { name: "zeju47", styles: "margin:auto;inset-inline-start:0;inset-inline-end:0;transform:scaleX(1);:dir(rtl){transform:scaleX(-1);}" },
|
|
16
|
+
expanded: { name: "zeju48", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" },
|
|
17
|
+
expanding: { name: "zeju49", styles: "margin:0;transform:scaleX(-1);:dir(rtl){transform:scaleX(1);}" }
|
|
18
18
|
},
|
|
19
19
|
origin: {
|
|
20
|
-
left: { name: "
|
|
21
|
-
right: { name: "
|
|
20
|
+
left: { name: "zeju4a", styles: "" },
|
|
21
|
+
right: { name: "zeju4b", styles: "" }
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
compound: [
|
|
25
25
|
{
|
|
26
26
|
modifiers: { state: 'collapsed', origin: 'right' },
|
|
27
|
-
styles: { name: "
|
|
27
|
+
styles: { name: "zeju4c", styles: "transform:scaleX(-1);" }
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
modifiers: { state: 'collapsing', origin: 'right' },
|
|
31
|
-
styles: { name: "
|
|
31
|
+
styles: { name: "zeju4d", styles: "transform:scaleX(-1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
modifiers: { state: 'expanded', origin: 'right' },
|
|
35
|
-
styles: { name: "
|
|
35
|
+
styles: { name: "zeju4e", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
modifiers: { state: 'expanding', origin: 'right' },
|
|
39
|
-
styles: { name: "
|
|
39
|
+
styles: { name: "zeju4f", styles: "transform:scaleX(1);inset-inline-start:var(--cnvs-sys-space-x4);" }
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
}, "side-panel-toggle-button-da8098");
|
|
@@ -7,31 +7,31 @@ import { systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
|
7
7
|
import { StatusIndicatorIcon } from './StatusIndicatorIcon';
|
|
8
8
|
import { StatusIndicatorLabel } from './StatusIndicatorLabel';
|
|
9
9
|
const statusIndicatorStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "zeju54", 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;" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
gray: {
|
|
13
|
-
high: { name: "
|
|
14
|
-
low: { name: "
|
|
13
|
+
high: { name: "zeju55", 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);" },
|
|
14
|
+
low: { name: "zeju56", 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);" }
|
|
15
15
|
},
|
|
16
16
|
orange: {
|
|
17
|
-
high: { name: "
|
|
18
|
-
low: { name: "
|
|
17
|
+
high: { name: "zeju57", 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);" },
|
|
18
|
+
low: { name: "zeju58", 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);" }
|
|
19
19
|
},
|
|
20
20
|
blue: {
|
|
21
|
-
high: { name: "
|
|
22
|
-
low: { name: "
|
|
21
|
+
high: { name: "zeju59", 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);" },
|
|
22
|
+
low: { name: "zeju5a", 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);" }
|
|
23
23
|
},
|
|
24
24
|
green: {
|
|
25
|
-
high: { name: "
|
|
26
|
-
low: { name: "
|
|
25
|
+
high: { name: "zeju5b", 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);" },
|
|
26
|
+
low: { name: "zeju5c", 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);" }
|
|
27
27
|
},
|
|
28
28
|
red: {
|
|
29
|
-
high: { name: "
|
|
30
|
-
low: { name: "
|
|
29
|
+
high: { name: "zeju5d", 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);" },
|
|
30
|
+
low: { name: "zeju5e", 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);" }
|
|
31
31
|
},
|
|
32
32
|
transparent: {
|
|
33
|
-
high: { name: "
|
|
34
|
-
low: { name: "
|
|
33
|
+
high: { name: "zeju5f", 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);" },
|
|
34
|
+
low: { name: "zeju5g", 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);" }
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}, "status-indicator-1a565e");
|
|
@@ -6,7 +6,7 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
const statusIndicatorLabelStencil = createStencil({
|
|
8
8
|
extends: textStencil,
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "zeju53", 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;" },
|
|
10
10
|
defaultModifiers: { typeLevel: 'subtext.large' }
|
|
11
11
|
}, "status-indicator-label-63258e");
|
|
12
12
|
export const StatusIndicatorLabel = createComponent('span')({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1126-next.0",
|
|
4
4
|
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
48
48
|
"@emotion/styled": "^11.6.0",
|
|
49
|
-
"@workday/canvas-kit-react": "^14.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-styling": "^14.0.0-alpha.
|
|
49
|
+
"@workday/canvas-kit-react": "^14.0.0-alpha.1126-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^14.0.0-alpha.1126-next.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^2.1.1",
|
|
53
53
|
"@workday/design-assets-types": "^0.2.8"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"react-hook-form": "7.36.1",
|
|
59
59
|
"yup": "^0.32.11"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "5420bd738ba9800e4443d4ec6103df51634529e9"
|
|
62
62
|
}
|