@workday/canvas-kit-react 12.0.0-alpha.902-next.0 → 12.0.0-alpha.903-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/avatar/lib/Avatar.js +21 -21
- package/dist/commonjs/badge/lib/CountBadge.js +3 -3
- package/dist/commonjs/button/lib/BaseButton.js +21 -21
- package/dist/commonjs/button/lib/DeleteButton.js +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
- package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.js +18 -18
- package/dist/commonjs/card/lib/Card.js +1 -1
- package/dist/commonjs/card/lib/CardBody.js +1 -1
- package/dist/commonjs/card/lib/CardHeading.js +1 -1
- package/dist/commonjs/checkbox/lib/CheckBackground.js +3 -3
- package/dist/commonjs/checkbox/lib/CheckboxCheck.js +5 -5
- package/dist/commonjs/checkbox/lib/CheckboxContainer.js +1 -1
- package/dist/commonjs/checkbox/lib/CheckboxInput.js +5 -5
- package/dist/commonjs/checkbox/lib/CheckboxRipple.js +1 -1
- package/dist/commonjs/collection/lib/ListBox.js +4 -4
- package/dist/commonjs/combobox/lib/ComboboxMenuItem.js +2 -2
- package/dist/commonjs/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/commonjs/common/lib/AccessibleHide.js +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldContainer.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldField.js +1 -1
- package/dist/commonjs/form-field/lib/FormFieldGroupLabel.js +5 -5
- package/dist/commonjs/form-field/lib/FormFieldGroupList.js +3 -3
- package/dist/commonjs/form-field/lib/FormFieldHint.js +3 -3
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +5 -5
- package/dist/commonjs/form-field/lib/formFieldStencil.js +8 -8
- package/dist/commonjs/icon/lib/AccentIcon.js +2 -2
- package/dist/commonjs/icon/lib/AppletIcon.js +1 -1
- package/dist/commonjs/icon/lib/Graphic.js +2 -2
- package/dist/commonjs/icon/lib/Svg.js +2 -2
- package/dist/commonjs/icon/lib/SystemIcon.js +1 -1
- package/dist/commonjs/icon/lib/SystemIconCircle.js +1 -1
- package/dist/commonjs/loading-dots/lib/LoadingDots.js +3 -3
- package/dist/commonjs/menu/lib/MenuCard.js +1 -1
- package/dist/commonjs/menu/lib/MenuList.js +3 -3
- package/dist/commonjs/modal/lib/ModalBody.js +1 -1
- package/dist/commonjs/modal/lib/ModalCard.js +1 -1
- package/dist/commonjs/modal/lib/ModalHeading.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/commonjs/modal/lib/ModalOverlay.js +2 -2
- package/dist/commonjs/popup/lib/PopupBody.js +1 -1
- package/dist/commonjs/popup/lib/PopupCard.js +2 -2
- package/dist/commonjs/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/commonjs/popup/lib/PopupHeading.js +1 -1
- package/dist/commonjs/select/lib/Select.js +4 -4
- package/dist/commonjs/switch/lib/Switch.js +7 -7
- package/dist/commonjs/table/lib/Table.js +1 -1
- package/dist/commonjs/table/lib/TableBody.js +1 -1
- package/dist/commonjs/table/lib/TableCaption.js +1 -1
- package/dist/commonjs/table/lib/TableCell.js +1 -1
- package/dist/commonjs/table/lib/TableFooter.js +1 -1
- package/dist/commonjs/table/lib/TableHead.js +1 -1
- package/dist/commonjs/table/lib/TableHeader.js +1 -1
- package/dist/commonjs/table/lib/TableRow.js +1 -1
- package/dist/commonjs/text/lib/LabelText.js +6 -6
- package/dist/commonjs/text/lib/Text.js +16 -16
- package/dist/commonjs/text/lib/TypeLevelComponents.js +4 -4
- package/dist/commonjs/text-area/lib/TextArea.d.ts +4 -4
- package/dist/commonjs/text-area/lib/TextArea.js +5 -5
- package/dist/commonjs/text-input/lib/InputGroup.d.ts +58 -31
- package/dist/commonjs/text-input/lib/InputGroup.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/InputGroup.js +92 -49
- package/dist/commonjs/text-input/lib/TextInput.d.ts +4 -4
- package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/TextInput.js +8 -6
- package/dist/commonjs/toast/lib/Toast.js +1 -1
- package/dist/commonjs/toast/lib/ToastBody.js +1 -1
- package/dist/commonjs/toast/lib/ToastCloseIcon.js +1 -1
- package/dist/commonjs/toast/lib/ToastIcon.js +1 -1
- package/dist/commonjs/toast/lib/ToastMessage.js +1 -1
- package/dist/es6/avatar/lib/Avatar.js +21 -21
- package/dist/es6/badge/lib/CountBadge.js +3 -3
- package/dist/es6/button/lib/BaseButton.js +21 -21
- package/dist/es6/button/lib/DeleteButton.js +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +2 -2
- package/dist/es6/button/lib/SecondaryButton.js +2 -2
- package/dist/es6/button/lib/TertiaryButton.js +18 -18
- package/dist/es6/card/lib/Card.js +1 -1
- package/dist/es6/card/lib/CardBody.js +1 -1
- package/dist/es6/card/lib/CardHeading.js +1 -1
- package/dist/es6/checkbox/lib/CheckBackground.js +3 -3
- package/dist/es6/checkbox/lib/CheckboxCheck.js +5 -5
- package/dist/es6/checkbox/lib/CheckboxContainer.js +1 -1
- package/dist/es6/checkbox/lib/CheckboxInput.js +5 -5
- package/dist/es6/checkbox/lib/CheckboxRipple.js +1 -1
- package/dist/es6/collection/lib/ListBox.js +4 -4
- package/dist/es6/combobox/lib/ComboboxMenuItem.js +2 -2
- package/dist/es6/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/es6/common/lib/AccessibleHide.js +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +1 -1
- package/dist/es6/form-field/lib/FormFieldContainer.js +1 -1
- package/dist/es6/form-field/lib/FormFieldField.js +1 -1
- package/dist/es6/form-field/lib/FormFieldGroupLabel.js +5 -5
- package/dist/es6/form-field/lib/FormFieldGroupList.js +3 -3
- package/dist/es6/form-field/lib/FormFieldHint.js +3 -3
- package/dist/es6/form-field/lib/FormFieldLabel.js +5 -5
- package/dist/es6/form-field/lib/formFieldStencil.js +8 -8
- package/dist/es6/icon/lib/AccentIcon.js +2 -2
- package/dist/es6/icon/lib/AppletIcon.js +1 -1
- package/dist/es6/icon/lib/Graphic.js +2 -2
- package/dist/es6/icon/lib/Svg.js +2 -2
- package/dist/es6/icon/lib/SystemIcon.js +1 -1
- package/dist/es6/icon/lib/SystemIconCircle.js +1 -1
- package/dist/es6/loading-dots/lib/LoadingDots.js +3 -3
- package/dist/es6/menu/lib/MenuCard.js +1 -1
- package/dist/es6/menu/lib/MenuList.js +3 -3
- package/dist/es6/modal/lib/ModalBody.js +1 -1
- package/dist/es6/modal/lib/ModalCard.js +1 -1
- package/dist/es6/modal/lib/ModalHeading.js +1 -1
- package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
- package/dist/es6/modal/lib/ModalOverlay.js +2 -2
- package/dist/es6/popup/lib/PopupBody.js +1 -1
- package/dist/es6/popup/lib/PopupCard.js +2 -2
- package/dist/es6/popup/lib/PopupCloseIcon.js +1 -1
- package/dist/es6/popup/lib/PopupHeading.js +1 -1
- package/dist/es6/select/lib/Select.js +4 -4
- package/dist/es6/switch/lib/Switch.js +7 -7
- package/dist/es6/table/lib/Table.js +1 -1
- package/dist/es6/table/lib/TableBody.js +1 -1
- package/dist/es6/table/lib/TableCaption.js +1 -1
- package/dist/es6/table/lib/TableCell.js +1 -1
- package/dist/es6/table/lib/TableFooter.js +1 -1
- package/dist/es6/table/lib/TableHead.js +1 -1
- package/dist/es6/table/lib/TableHeader.js +1 -1
- package/dist/es6/table/lib/TableRow.js +1 -1
- package/dist/es6/text/lib/LabelText.js +6 -6
- package/dist/es6/text/lib/Text.js +16 -16
- package/dist/es6/text/lib/TypeLevelComponents.js +4 -4
- package/dist/es6/text-area/lib/TextArea.d.ts +4 -4
- package/dist/es6/text-area/lib/TextArea.js +5 -5
- package/dist/es6/text-input/lib/InputGroup.d.ts +58 -31
- package/dist/es6/text-input/lib/InputGroup.d.ts.map +1 -1
- package/dist/es6/text-input/lib/InputGroup.js +84 -41
- package/dist/es6/text-input/lib/TextInput.d.ts +4 -4
- package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
- package/dist/es6/text-input/lib/TextInput.js +8 -6
- package/dist/es6/toast/lib/Toast.js +1 -1
- package/dist/es6/toast/lib/ToastBody.js +1 -1
- package/dist/es6/toast/lib/ToastCloseIcon.js +1 -1
- package/dist/es6/toast/lib/ToastIcon.js +1 -1
- package/dist/es6/toast/lib/ToastMessage.js +1 -1
- package/package.json +4 -4
- package/text-input/lib/InputGroup.tsx +147 -72
- package/text-input/lib/TextInput.tsx +20 -17
|
@@ -22,16 +22,16 @@ export const useListBox = createElemPropsHook(useListModel)(model => {
|
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
24
|
const listBoxContainerStencil = createStencil({
|
|
25
|
-
base: { name: "
|
|
25
|
+
base: { name: "p7t92j", styles: "box-sizing:border-box;" },
|
|
26
26
|
modifiers: {
|
|
27
27
|
orientation: {
|
|
28
|
-
vertical: { name: "
|
|
29
|
-
horizontal: { name: "
|
|
28
|
+
vertical: { name: "p7t92k", styles: "overflow-y:auto;" },
|
|
29
|
+
horizontal: { name: "p7t92l", styles: "overflow-y:undefined;" }
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, "list-box-container-625603");
|
|
33
33
|
const listBoxStencil = createStencil({
|
|
34
|
-
base: { name: "
|
|
34
|
+
base: { name: "p7t92m", styles: "box-sizing:border-box;display:flex;flex-direction:column;margin-top:var(--cnvs-sys-space-zero);margin-bottom:var(--cnvs-sys-space-zero);" }
|
|
35
35
|
}, "list-box-9c3639");
|
|
36
36
|
/**
|
|
37
37
|
* The `ListBox` component that offers vertical rendering of a collection in the form of a
|
|
@@ -36,7 +36,7 @@ export const useComboboxMenuItem = composeHooks(createElemPropsHook(useMenuModel
|
|
|
36
36
|
};
|
|
37
37
|
}), useListItemRegister, useListItemAllowChildStrings);
|
|
38
38
|
const comboboxMenuItemIconStencil = createStencil({
|
|
39
|
-
base: { name: "
|
|
39
|
+
base: { name: "p7t946", styles: "box-sizing:border-box;align-self:start;" }
|
|
40
40
|
}, "combobox-menu-item-icon-1886be");
|
|
41
41
|
export const ComboboxMenuItemIcon = createSubcomponent('span')({
|
|
42
42
|
modelHook: useComboboxModel,
|
|
@@ -44,7 +44,7 @@ export const ComboboxMenuItemIcon = createSubcomponent('span')({
|
|
|
44
44
|
return React.createElement(SystemIcon, { as: Element, ...mergeStyles(elemProps, comboboxMenuItemIconStencil()) });
|
|
45
45
|
});
|
|
46
46
|
const comboboxMenuItemStencil = createStencil({
|
|
47
|
-
base: { name: "
|
|
47
|
+
base: { name: "p7t947", styles: "box-sizing:border-box;min-height:var(--cnvs-sys-space-x10);" }
|
|
48
48
|
}, "combobox-menu-item-f6da1d");
|
|
49
49
|
export const ComboboxMenuItem = createSubcomponent('li')({
|
|
50
50
|
modelHook: useComboboxModel,
|
|
@@ -18,7 +18,7 @@ export const useComboboxMenuList = createElemPropsHook(useMenuModel)(model => {
|
|
|
18
18
|
};
|
|
19
19
|
});
|
|
20
20
|
const comboboxMenuListStencil = createStencil({
|
|
21
|
-
base: { name: "
|
|
21
|
+
base: { name: "p7t945", styles: "box-sizing:border-box;" },
|
|
22
22
|
extends: menuListStencil
|
|
23
23
|
}, "combobox-menu-list-04543a");
|
|
24
24
|
export const ComboboxMenuList = createSubcomponent('ul')({
|
|
@@ -17,7 +17,7 @@ export const accessibleHide = {
|
|
|
17
17
|
padding: 0,
|
|
18
18
|
border: 0,
|
|
19
19
|
};
|
|
20
|
-
export const accessibleHideStyles = createStyles({ name: "
|
|
20
|
+
export const accessibleHideStyles = createStyles({ name: "p7t92", styles: "clip:rect(1px, 1px, 1px, 1px);clip-path:polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px);position:absolute;overflow:hidden;white-space:nowrap;height:1px;width:1px;margin:-1px;padding:0;border:0;" });
|
|
21
21
|
/**
|
|
22
22
|
* A convenient component wrapper to visually hide content, while still making it accessible to screen readers
|
|
23
23
|
*/
|
|
@@ -5,7 +5,7 @@ import { defaultCanvasTheme, useTheme } from './theming';
|
|
|
5
5
|
import { brand, base } from '@workday/canvas-tokens-web';
|
|
6
6
|
import { createStyles, getCache } from '@workday/canvas-kit-styling';
|
|
7
7
|
// copied from brand/_variables.css
|
|
8
|
-
const defaultBranding = createStyles({ name: "
|
|
8
|
+
const defaultBranding = createStyles({ name: "p7t93", styles: "--cnvs-brand-error-darkest:rgba(128,22,14,1);--cnvs-brand-common-alert-inner:var(--cnvs-base-palette-cantaloupe-400);--cnvs-brand-common-error-inner:var(--cnvs-base-palette-cinnamon-500);--cnvs-brand-common-focus-outline:var(--cnvs-base-palette-blueberry-400);--cnvs-brand-neutral-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-neutral-darkest:var(--cnvs-base-palette-licorice-400);--cnvs-brand-neutral-dark:var(--cnvs-base-palette-licorice-300);--cnvs-brand-neutral-base:var(--cnvs-base-palette-soap-600);--cnvs-brand-neutral-light:var(--cnvs-base-palette-soap-300);--cnvs-brand-neutral-lightest:var(--cnvs-base-palette-soap-200);--cnvs-brand-success-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-success-darkest:var(--cnvs-base-palette-green-apple-600);--cnvs-brand-success-dark:var(--cnvs-base-palette-green-apple-500);--cnvs-brand-success-base:var(--cnvs-base-palette-green-apple-400);--cnvs-brand-success-light:var(--cnvs-base-palette-green-apple-300);--cnvs-brand-success-lightest:var(--cnvs-base-palette-green-apple-100);--cnvs-brand-error-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-error-dark:var(--cnvs-base-palette-cinnamon-600);--cnvs-brand-error-base:var(--cnvs-base-palette-cinnamon-500);--cnvs-brand-error-light:var(--cnvs-base-palette-cinnamon-200);--cnvs-brand-error-lightest:var(--cnvs-base-palette-cinnamon-100);--cnvs-brand-alert-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-alert-darkest:var(--cnvs-base-palette-cantaloupe-600);--cnvs-brand-alert-dark:var(--cnvs-base-palette-cantaloupe-500);--cnvs-brand-alert-base:var(--cnvs-base-palette-cantaloupe-400);--cnvs-brand-alert-light:var(--cnvs-base-palette-cantaloupe-200);--cnvs-brand-alert-lightest:var(--cnvs-base-palette-cantaloupe-100);--cnvs-brand-primary-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-primary-darkest:var(--cnvs-base-palette-blueberry-600);--cnvs-brand-primary-dark:var(--cnvs-base-palette-blueberry-500);--cnvs-brand-primary-base:var(--cnvs-base-palette-blueberry-400);--cnvs-brand-primary-light:var(--cnvs-base-palette-blueberry-200);--cnvs-brand-primary-lightest:var(--cnvs-base-palette-blueberry-100);--cnvs-brand-gradient-primary:linear-gradient(90deg, var(--cnvs-brand-primary-base) 0%, var(--cnvs-brand-primary-dark) 100%);" });
|
|
9
9
|
const mappedKeys = {
|
|
10
10
|
lightest: 'lightest',
|
|
11
11
|
light: 'light',
|
|
@@ -7,7 +7,7 @@ import { system } from '@workday/canvas-tokens-web';
|
|
|
7
7
|
* @deprecated `formFieldContainerStencil` is deprecated and will be removed in a future major version. Please use `FormField.Field` to always wrap `FormField.Input` and `FormField.Hint` to always ensure correct label and input alignment.
|
|
8
8
|
*/
|
|
9
9
|
export const formFieldContainerStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "p7t94g", styles: "box-sizing:border-box;display:flex;flex-direction:column;gap:var(--cnvs-sys-space-x2);" }
|
|
11
11
|
}, "form-field-container-b7ba71");
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated `FormField.Container` is deprecated and will be removed in a future major version. Please use `FormField.Field` to always wrap `FormField.Input` and `FormField.Hint` to always ensure correct label and input alignment.
|
|
@@ -4,7 +4,7 @@ import { handleCsProp, createStencil } from '@workday/canvas-kit-styling';
|
|
|
4
4
|
import { useFormFieldModel } from './hooks';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
export const formFieldFieldStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "p7t94p", styles: "box-sizing:border-box;display:flex;flex-direction:column;gap:var(--cnvs-sys-space-x2);" }
|
|
8
8
|
}, "form-field-field-fc001f");
|
|
9
9
|
export const FormFieldField = createSubcomponent('div')({
|
|
10
10
|
displayName: 'FormField.Field',
|
|
@@ -8,15 +8,15 @@ import { useFormFieldLabel, useFormFieldModel } from './hooks';
|
|
|
8
8
|
export const formFieldGroupLabelStencil = createStencil({
|
|
9
9
|
extends: textStencil,
|
|
10
10
|
// @ts-ignore Still weird about CSS font variables
|
|
11
|
-
base: { name: "
|
|
11
|
+
base: { name: "p7t94t", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-medium);color:var(--cnvs-sys-color-text-default);padding-inline-start:var(--cnvs-sys-space-zero);display:flex;align-items:center;min-width:11.25rem;" },
|
|
12
12
|
modifiers: {
|
|
13
13
|
isRequired: {
|
|
14
|
-
true: { name: "
|
|
14
|
+
true: { name: "p7t94u", styles: "&::after{content:\"*\";font-size:var(--cnvs-sys-font-size-body-large);font-weight:var(--cnvs-sys-font-weight-normal);color:var(--cnvs-brand-error-base);text-decoration:unset;margin-inline-start:var(--cnvs-sys-space-x1);}" }
|
|
15
15
|
},
|
|
16
16
|
orientation: {
|
|
17
|
-
vertical: { name: "
|
|
18
|
-
horizontalStart: { name: "
|
|
19
|
-
horizontalEnd: { name: "
|
|
17
|
+
vertical: { name: "p7t94v", styles: "width:100%;" },
|
|
18
|
+
horizontalStart: { name: "p7t94w", styles: "justify-content:flex-start;float:left;max-height:var(--cnvs-sys-space-x10);" },
|
|
19
|
+
horizontalEnd: { name: "p7t94x", styles: "max-height:var(--cnvs-sys-space-x10);float:left;justify-content:flex-end;" }
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
defaultModifiers: {
|
|
@@ -4,11 +4,11 @@ import { createStencil, calc, px2rem, handleCsProp } from '@workday/canvas-kit-s
|
|
|
4
4
|
import { brand, system } from '@workday/canvas-tokens-web';
|
|
5
5
|
import { useFormFieldModel } from './hooks';
|
|
6
6
|
const formFieldGroupListStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "p7t94q", styles: "box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--cnvs-sys-shape-x1);gap:var(--cnvs-sys-space-x2);padding:0.625rem var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x2);margin:0 calc(var(--cnvs-sys-space-x3) * -1);transition:100ms box-shadow;width:fit-content;" },
|
|
8
8
|
modifiers: {
|
|
9
9
|
error: {
|
|
10
|
-
error: { name: "
|
|
11
|
-
alert: { name: "
|
|
10
|
+
error: { name: "p7t94r", styles: "box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-error-base);" },
|
|
11
|
+
alert: { name: "p7t94s", styles: "box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-alert-darkest), inset 0 0 0 0.1875rem var(--cnvs-brand-alert-base);" }
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}, "form-field-group-list-ea1ca7");
|
|
@@ -7,11 +7,11 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
7
7
|
import { useFormFieldHint, useFormFieldModel } from './hooks';
|
|
8
8
|
export const formFieldHintStencil = createStencil({
|
|
9
9
|
extends: textStencil,
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "p7t94d", styles: "box-sizing:border-box;margin:var(--cnvs-sys-space-zero);" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
error: {
|
|
13
|
-
error: { name: "
|
|
14
|
-
alert: { name: "
|
|
13
|
+
error: { name: "p7t94e", styles: "color:var(--cnvs-brand-error-base);" },
|
|
14
|
+
alert: { name: "p7t94f", styles: "" }
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
defaultModifiers: {
|
|
@@ -8,15 +8,15 @@ import { useFormFieldLabel, useFormFieldModel } from './hooks';
|
|
|
8
8
|
export const formFieldLabelStencil = createStencil({
|
|
9
9
|
extends: textStencil,
|
|
10
10
|
// @ts-ignore Still weird about CSS font variables
|
|
11
|
-
base: { name: "
|
|
11
|
+
base: { name: "p7t948", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-medium);color:var(--cnvs-sys-color-text-default);padding-inline-start:var(--cnvs-sys-space-zero);display:flex;align-items:center;min-width:11.25rem;" },
|
|
12
12
|
modifiers: {
|
|
13
13
|
isRequired: {
|
|
14
|
-
true: { name: "
|
|
14
|
+
true: { name: "p7t949", styles: "&::after{content:\"*\";font-size:var(--cnvs-sys-font-size-body-large);font-weight:var(--cnvs-sys-font-weight-normal);color:var(--cnvs-brand-error-base);text-decoration:unset;margin-inline-start:var(--cnvs-sys-space-x1);}" }
|
|
15
15
|
},
|
|
16
16
|
orientation: {
|
|
17
|
-
horizontalStart: { name: "
|
|
18
|
-
horizontalEnd: { name: "
|
|
19
|
-
vertical: { name: "
|
|
17
|
+
horizontalStart: { name: "p7t94a", styles: "justify-content:flex-start;float:left;max-height:var(--cnvs-sys-space-x10);" },
|
|
18
|
+
horizontalEnd: { name: "p7t94b", styles: "max-height:var(--cnvs-sys-space-x10);float:left;justify-content:flex-end;" },
|
|
19
|
+
vertical: { name: "p7t94c", styles: "width:100%;" }
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
defaultModifiers: {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
2
2
|
import { system } from '@workday/canvas-tokens-web';
|
|
3
3
|
export const formFieldStencil = createStencil({
|
|
4
|
-
base: { name: "
|
|
4
|
+
base: { name: "p7t94h", styles: "box-sizing:border-box;display:flex;border:none;padding:var(--cnvs-sys-space-zero);margin:var(--cnvs-sys-space-zero) var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x6);" },
|
|
5
5
|
modifiers: {
|
|
6
6
|
grow: {
|
|
7
|
-
true: { name: "
|
|
7
|
+
true: { name: "p7t94i", styles: "width:100%;[data-width=\"ck-formfield-width\"]{width:100%;}&:has(div[data-width=\"ck-formfield-width\"]){width:100%;}" }
|
|
8
8
|
},
|
|
9
9
|
orientation: {
|
|
10
|
-
horizontalStart: { name: "
|
|
11
|
-
horizontalEnd: { name: "
|
|
12
|
-
vertical: { name: "
|
|
10
|
+
horizontalStart: { name: "p7t94j", styles: "flex-direction:row;gap:var(--cnvs-sys-space-x8);" },
|
|
11
|
+
horizontalEnd: { name: "p7t94k", styles: "flex-direction:row;gap:var(--cnvs-sys-space-x8);" },
|
|
12
|
+
vertical: { name: "p7t94l", styles: "flex-direction:column;gap:var(--cnvs-sys-space-x1);align-items:flex-start;" }
|
|
13
13
|
},
|
|
14
14
|
required: {
|
|
15
|
-
true: { name: "
|
|
15
|
+
true: { name: "p7t94m", styles: "" }
|
|
16
16
|
},
|
|
17
17
|
error: {
|
|
18
|
-
error: { name: "
|
|
19
|
-
alert: { name: "
|
|
18
|
+
error: { name: "p7t94n", styles: "" },
|
|
19
|
+
alert: { name: "p7t94o", styles: "" }
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
defaultModifiers: {
|
|
@@ -21,10 +21,10 @@ export const accentIconStencil = createStencil({
|
|
|
21
21
|
vars: {
|
|
22
22
|
color: '',
|
|
23
23
|
},
|
|
24
|
-
base: { name: "
|
|
24
|
+
base: { name: "p7t911", styles: "box-sizing:border-box;--size-svg-a30d66:3.5rem;& .color-500{fill:var(--color-accent-icon-f47b2a, var(--cnvs-base-palette-blueberry-500));}& .french-vanilla-100{fill:var(--cnvs-base-palette-french-vanilla-100);}" },
|
|
25
25
|
modifiers: {
|
|
26
26
|
transparent: {
|
|
27
|
-
true: { name: "
|
|
27
|
+
true: { name: "p7t912", styles: "& .french-vanilla-100{fill:transparent;}" }
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}, "accent-icon-f47b2a");
|
|
@@ -51,7 +51,7 @@ export const appletIconStencil = createStencil({
|
|
|
51
51
|
color400: '',
|
|
52
52
|
color500: '',
|
|
53
53
|
},
|
|
54
|
-
base: { name: "
|
|
54
|
+
base: { name: "p7t913", styles: "box-sizing:border-box;--size-svg-a30d66:5.75rem;& .color-100{fill:var(--cnvs-base-palette-french-vanilla-100);}& .color-200{fill:var(--color200-applet-icon-757179, var(--cnvs-base-palette-blueberry-200));}& .color-300{fill:var(--color300-applet-icon-757179, var(--cnvs-base-palette-blueberry-300));}& .color-400{fill:var(--color400-applet-icon-757179, var(--cnvs-base-palette-blueberry-400));}& .color-400-alpha-20{fill:var(--color400-applet-icon-757179, var(--cnvs-base-palette-blueberry-400));}& .color-500{fill:var(--color500-applet-icon-757179, var(--cnvs-base-palette-blueberry-400));}" }
|
|
55
55
|
}, "applet-icon-757179");
|
|
56
56
|
export const AppletIcon = createComponent('span')({
|
|
57
57
|
displayName: 'AppletIcon',
|
|
@@ -36,10 +36,10 @@ export const graphicStyles = ({ width, height, grow }) => {
|
|
|
36
36
|
};
|
|
37
37
|
export const graphicStencil = createStencil({
|
|
38
38
|
extends: svgStencil,
|
|
39
|
-
base: { name: "
|
|
39
|
+
base: { name: "p7t916", styles: "box-sizing:border-box;" },
|
|
40
40
|
modifiers: {
|
|
41
41
|
grow: {
|
|
42
|
-
true: { name: "
|
|
42
|
+
true: { name: "p7t917", styles: "width:100%;--width-svg-a30d66:100%;" }
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}, "graphic-ee386a");
|
package/dist/es6/icon/lib/Svg.js
CHANGED
|
@@ -13,10 +13,10 @@ export const svgStencil = createStencil({
|
|
|
13
13
|
/** sets width and height of svg element */
|
|
14
14
|
size: '',
|
|
15
15
|
},
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "p7t9z", styles: "box-sizing:border-box;display:inline-block;> svg{display:block;width:var(--width-svg-a30d66, var(--size-svg-a30d66));height:var(--height-svg-a30d66, var(--size-svg-a30d66));}" },
|
|
17
17
|
modifiers: {
|
|
18
18
|
shouldMirror: {
|
|
19
|
-
true: { name: "
|
|
19
|
+
true: { name: "p7t910", styles: "transform:scaleX(-1);" }
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}, "svg-a30d66");
|
|
@@ -55,7 +55,7 @@ export const systemIconStencil = createStencil({
|
|
|
55
55
|
accentColor: '',
|
|
56
56
|
backgroundColor: '',
|
|
57
57
|
},
|
|
58
|
-
base: { name: "
|
|
58
|
+
base: { name: "p7t914", styles: "box-sizing:border-box;--backgroundColor-system-icon-583fae:var(--backgroundColor-system-icon-583fae, transparent);& .wd-icon-fill{fill:var(--color-system-icon-583fae, var(--cnvs-base-palette-licorice-200));}& .wd-icon-accent, & .wd-icon-accent2{fill:var(--accentColor-system-icon-583fae, var(--color-system-icon-583fae, var(--cnvs-base-palette-licorice-200)));}& .wd-icon-background{fill:var(--backgroundColor-system-icon-583fae, transparent);}&:where(:hover, .hover) .wd-icon-fill{fill:var(--fillHover-193ff4, var(--colorHover-193ff4, var(--color-system-icon-583fae, var(--cnvs-base-palette-licorice-200))));}&:where(:hover, .hover) .wd-icon-accent, & .wd-icon-accent2{fill:var(--accentHover-193ff4, var(--colorHover-193ff4, var(--accentColor-system-icon-583fae, var(--color-system-icon-583fae, var(--cnvs-base-palette-licorice-200)))));}&:where(:hover, .hover) .wd-icon-background{fill:var(--backgroundHover-193ff4, var(--backgroundColor-system-icon-583fae, transparent));}" }
|
|
59
59
|
}, "system-icon-583fae");
|
|
60
60
|
export const SystemIcon = createComponent('span')({
|
|
61
61
|
displayName: 'SystemIcon',
|
|
@@ -20,7 +20,7 @@ const systemIconCircleStencil = createStencil({
|
|
|
20
20
|
backgroundColor: '',
|
|
21
21
|
iconColor: '',
|
|
22
22
|
},
|
|
23
|
-
base: { name: "
|
|
23
|
+
base: { name: "p7t915", styles: "box-sizing:border-box;background:var(--backgroundColor-system-icon-circle-554859, var(--cnvs-base-palette-soap-200));display:flex;align-items:center;justify-content:center;padding:var(--cnvs-sys-space-zero);border:none;border-radius:var(--cnvs-sys-shape-round);overflow:hidden;width:var(--containerSize-system-icon-circle-554859, var(--cnvs-sys-space-x10));height:var(--containerSize-system-icon-circle-554859, var(--cnvs-sys-space-x10));--size-svg-a30d66:calc(var(--containerSize-system-icon-circle-554859, var(--cnvs-sys-space-x10)) * 0.625);--color-system-icon-583fae:var(--iconColor-system-icon-circle-554859);& img{width:100%;height:100%;}" }
|
|
24
24
|
}, "system-icon-circle-554859");
|
|
25
25
|
export const SystemIconCircle = createComponent('span')({
|
|
26
26
|
displayName: 'SystemIconCircle',
|
|
@@ -5,12 +5,12 @@ import { handleCsProp, keyframes, createStencil, calc } from '@workday/canvas-ki
|
|
|
5
5
|
/**
|
|
6
6
|
* Keyframe for the dots loading animation.
|
|
7
7
|
*/
|
|
8
|
-
const keyframesLoading = keyframes({ name: "
|
|
8
|
+
const keyframesLoading = keyframes({ name: "p7t94y", styles: "0%, 80%, 100%{transform:scale(0);}40%{transform:scale(1);}" });
|
|
9
9
|
const singleLoadingDotStencil = createStencil({
|
|
10
10
|
vars: {
|
|
11
11
|
animationDurationMs: '40ms',
|
|
12
12
|
},
|
|
13
|
-
base: { name: "
|
|
13
|
+
base: { name: "p7t94z", styles: "--animationDurationMs-single-loading-dot-dec117:40ms;box-sizing:border-box;background-color:var(--cnvs-sys-color-bg-alt-strong);width:var(--cnvs-sys-space-x4);height:var(--cnvs-sys-space-x4);font-size:var(--cnvs-sys-space-zero);border-radius:var(--cnvs-sys-shape-round);transform:scale(0);display:inline-block;animation-name:animation-p7t94y;animation-duration:calc(var(--animationDurationMs-single-loading-dot-dec117) * 35);animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-fill-mode:both;&:nth-child(1){animation-delay:0ms;}&:nth-child(2){animation-delay:calc(var(--animationDurationMs-single-loading-dot-dec117) * 4);}&:nth-child(3){animation-delay:calc(var(--animationDurationMs-single-loading-dot-dec117) * 8);}" }
|
|
14
14
|
}, "single-loading-dot-dec117");
|
|
15
15
|
/**
|
|
16
16
|
* The actual loading dot div.
|
|
@@ -20,7 +20,7 @@ const LoadingAnimationDot = () => React.createElement("div", { ...singleLoadingD
|
|
|
20
20
|
* A simple container for the loading dots.
|
|
21
21
|
*/
|
|
22
22
|
const loadingDotsStencil = createStencil({
|
|
23
|
-
base: { name: "
|
|
23
|
+
base: { name: "p7t950", styles: "box-sizing:border-box;display:inline-flex;gap:var(--cnvs-sys-space-x2);" }
|
|
24
24
|
}, "loading-dots-268f58");
|
|
25
25
|
/**
|
|
26
26
|
* A simple component that displays three horizontal dots, to be used when some data is loading.
|
|
@@ -12,7 +12,7 @@ export const menuCardStencil = createStencil({
|
|
|
12
12
|
transformOriginVertical: 'top',
|
|
13
13
|
transformOriginHorizontal: 'left',
|
|
14
14
|
},
|
|
15
|
-
base: { name: "
|
|
15
|
+
base: { name: "p7t92n", styles: "--minWidth-menu-card-07ca6c:0.0625rem;--transformOriginVertical-menu-card-07ca6c:top;--transformOriginHorizontal-menu-card-07ca6c:left;box-sizing:border-box;font-family:var(--cnvs-base-font-family-50);font-weight:var(--cnvs-base-font-weight-400);line-height:var(--cnvs-base-line-height-100);font-size:var(--cnvs-base-font-size-75);letter-spacing:var(--cnvs-base-letter-spacing-150);color:var(--cnvs-base-palette-black-pepper-300);position:relative;display:flex;flex-direction:column;transition:transform ease-out 150ms;padding:var(--cnvs-sys-space-zero);max-width:calc(100vw - var(--cnvs-sys-space-x8));box-shadow:var(--cnvs-sys-depth-3);min-width:var(--minWidth-menu-card-07ca6c);transform-origin:var(--transformOriginVertical-menu-card-07ca6c) var(--transformOriginHorizontal-menu-card-07ca6c);.wd-no-animation &{animation:none;}" }
|
|
16
16
|
}, "menu-card-07ca6c");
|
|
17
17
|
export const useMenuCard = createElemPropsHook(useMenuModel)(() => {
|
|
18
18
|
return {};
|
|
@@ -12,11 +12,11 @@ export const useMenuList = composeHooks(createElemPropsHook(useMenuModel)(model
|
|
|
12
12
|
};
|
|
13
13
|
}), useReturnFocus, useFocusRedirect);
|
|
14
14
|
export const menuListStencil = createStencil({
|
|
15
|
-
base: { name: "
|
|
15
|
+
base: { name: "p7t92o", styles: "box-sizing:border-box;background:var(--cnvs-base-palette-french-vanilla-100);border-radius:var(--cnvs-sys-shape-zero);padding:var(--cnvs-sys-space-zero);gap:var(--cnvs-sys-space-zero);" },
|
|
16
16
|
modifiers: {
|
|
17
17
|
orientation: {
|
|
18
|
-
vertical: { name: "
|
|
19
|
-
horizontal: { name: "
|
|
18
|
+
vertical: { name: "p7t92p", styles: "flex-direction:column;" },
|
|
19
|
+
horizontal: { name: "p7t92q", styles: "flex-direction:row;" }
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}, "menu-list-b9b420");
|
|
@@ -6,7 +6,7 @@ import { createStencil } from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
8
8
|
export const modalBodyStencil = createStencil({
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "p7t956", styles: "box-sizing:border-box;@media screen and (max-width: 768px){margin-block-end:var(--cnvs-sys-space-zero);padding:var(--cnvs-sys-space-x1) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2);}" }
|
|
10
10
|
}, "modal-body-d624fe");
|
|
11
11
|
export const ModalBody = createSubcomponent('div')({
|
|
12
12
|
displayName: 'Modal.Body',
|
|
@@ -6,7 +6,7 @@ import { calc, createStencil } from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
8
8
|
export const modalCardStencil = createStencil({
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "p7t953", styles: "box-sizing:border-box;margin:var(--cnvs-sys-space-x10);width:calc(calc(var(--cnvs-sys-space-x20) * 5) + var(--cnvs-sys-space-x10));border-width:var(--cnvs-sys-space-zero);box-shadow:var(--cnvs-sys-depth-6);@media screen and (max-width: 768px){margin:var(--cnvs-sys-space-x4);padding:var(--cnvs-sys-space-x4);border-radius:var(--cnvs-sys-space-x6);}" }
|
|
10
10
|
}, "modal-card-9eebe8");
|
|
11
11
|
export const ModalCard = createSubcomponent('div')({
|
|
12
12
|
displayName: 'Modal.Card',
|
|
@@ -6,7 +6,7 @@ import { createStencil } from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
8
8
|
export const modalHeadingStencil = createStencil({
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "p7t954", styles: "box-sizing:border-box;@media screen and (max-width: 768px){margin-block-end:var(--cnvs-sys-space-zero);padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x1);}" }
|
|
10
10
|
}, "modal-heading-52f13d");
|
|
11
11
|
export const ModalHeading = createSubcomponent('h2')({
|
|
12
12
|
displayName: 'Modal.Heading',
|
|
@@ -5,7 +5,7 @@ import { useModalModel } from './hooks';
|
|
|
5
5
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
6
6
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
7
7
|
export const modalOverflowOverlayStencil = createStencil({
|
|
8
|
-
base: { name: "
|
|
8
|
+
base: { name: "p7t955", styles: "box-sizing:border-box;& > div{max-height:inherit;}overflow:hidden auto;" }
|
|
9
9
|
}, "modal-overflow-overlay-2ac342");
|
|
10
10
|
export const ModalOverflowOverlay = createSubcomponent('div')({
|
|
11
11
|
displayName: 'Modal.OverflowOverlay',
|
|
@@ -6,12 +6,12 @@ import { Box, mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
6
6
|
import { useModalModel } from './hooks';
|
|
7
7
|
import { createStencil, cssVar, keyframes } from '@workday/canvas-kit-styling';
|
|
8
8
|
import { system } from '@workday/canvas-tokens-web';
|
|
9
|
-
const fadeIn = keyframes({ name: "
|
|
9
|
+
const fadeIn = keyframes({ name: "p7t951", styles: "0%{background:none;}100%{background:var(--cnvs-sys-color-bg-overlay);}" });
|
|
10
10
|
export const modalOverlayContainerStencil = createStencil({
|
|
11
11
|
vars: {
|
|
12
12
|
containerCenter: '',
|
|
13
13
|
},
|
|
14
|
-
base: { name: "
|
|
14
|
+
base: { name: "p7t952", styles: "box-sizing:border-box;position:fixed;top:var(--cnvs-sys-space-zero);left:var(--cnvs-sys-space-zero);width:100vw;height:100vh;background:var(--cnvs-sys-color-bg-overlay);animation-duration:0.3s;animation-name:animation-p7t951;.wd-no-animation &{animation:none;}& > div{max-height:100%;display:flex;position:absolute;left:var(--cnvs-sys-space-zero);top:var(--cnvs-sys-space-zero);justify-content:center;align-items:center;height:100%;width:var(--containerCenter-modal-overlay-container-8b6518);}@media screen and (max-width: 768px){height:100%;& > div{align-items:end;}}" }
|
|
15
15
|
}, "modal-overlay-container-8b6518");
|
|
16
16
|
export const useModalOverlay = createElemPropsHook(usePopupModel)(({ state }, ref) => {
|
|
17
17
|
const elementRef = useForkRef(ref, state.stackRef);
|
|
@@ -6,7 +6,7 @@ import { createStencil } from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import { mergeStyles } from '../../layout';
|
|
7
7
|
import { system } from '@workday/canvas-tokens-web';
|
|
8
8
|
export const popupBodyStencil = createStencil({
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "p7t92i", styles: "box-sizing:border-box;overflow-y:auto;padding:var(--cnvs-sys-space-x2);" }
|
|
10
10
|
}, "popup-body-1fee86");
|
|
11
11
|
export const PopupBody = createSubcomponent('div')({
|
|
12
12
|
displayName: 'Popup.Body',
|
|
@@ -11,7 +11,7 @@ const translateVars = createVars({ id: "696a04", args: ["positionX", "positionY"
|
|
|
11
11
|
/**
|
|
12
12
|
* Keyframe for the dots loading animation.
|
|
13
13
|
*/
|
|
14
|
-
const fadeIn = keyframes({ name: "
|
|
14
|
+
const fadeIn = keyframes({ name: "p7t9x", styles: "0%{opacity:1;transform:translate(var(--positionX-696a04), var(--positionY-696a04));}100%{opacity:1;transform:translate(0);}" });
|
|
15
15
|
function getSpace(value) {
|
|
16
16
|
if (value && value in space) {
|
|
17
17
|
return space[value];
|
|
@@ -45,7 +45,7 @@ export const popupCardStencil = createStencil({
|
|
|
45
45
|
transformOriginHorizontal: '',
|
|
46
46
|
transformOriginVertical: '',
|
|
47
47
|
},
|
|
48
|
-
base: { name: "
|
|
48
|
+
base: { name: "p7t9y", styles: "box-sizing:border-box;font-family:var(--cnvs-base-font-family-50);font-weight:var(--cnvs-base-font-weight-400);line-height:var(--cnvs-base-line-height-100);font-size:var(--cnvs-base-font-size-75);letter-spacing:var(--cnvs-base-letter-spacing-150);display:flex;position:relative;max-width:calc(100vw - var(--cnvs-sys-space-x8));flex-direction:column;box-shadow:var(--cnvs-sys-depth-5);min-height:var(--cnvs-sys-space-zero);padding:var(--cnvs-sys-space-x6);max-height:var(--maxHeight-popup-card-36628b);overflow-y:auto;animation-name:animation-p7t9x;animation-duration:150ms;animation-timing-function:ease-out;transform-origin:var(--transformOriginVertical-popup-card-36628b) var(--transformOriginHorizontal-popup-card-36628b);.wd-no-animation &{animation:none;}@media screen and (max-width: 768px){transform-origin:bottom center;}" }
|
|
49
49
|
}, "popup-card-36628b");
|
|
50
50
|
export const PopupCard = createSubcomponent('div')({
|
|
51
51
|
displayName: 'Popup.Card',
|
|
@@ -7,7 +7,7 @@ import { createStencil } from '@workday/canvas-kit-styling';
|
|
|
7
7
|
import { system } from '@workday/canvas-tokens-web';
|
|
8
8
|
import { mergeStyles } from '../../layout';
|
|
9
9
|
export const popupCloseIconStencil = createStencil({
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "p7t92h", styles: "box-sizing:border-box;position:absolute;inset-inline-end:var(--cnvs-sys-space-x1);top:var(--cnvs-sys-space-x1);" }
|
|
11
11
|
}, "popup-close-icon-111273");
|
|
12
12
|
export const PopupCloseIcon = createSubcomponent('button')({
|
|
13
13
|
displayName: 'Popup.CloseIcon',
|
|
@@ -6,7 +6,7 @@ import { createStencil } from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import { system } from '@workday/canvas-tokens-web';
|
|
7
7
|
import { mergeStyles } from '../../layout';
|
|
8
8
|
export const popupHeadingStencil = createStencil({
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "p7t92g", styles: "box-sizing:border-box;margin-block-end:var(--cnvs-sys-space-x2);padding:var(--cnvs-sys-space-x2);" }
|
|
10
10
|
}, "popup-heading-3e49bb");
|
|
11
11
|
export const PopupHeading = createSubcomponent('h2')({
|
|
12
12
|
displayName: 'Popup.Heading',
|
|
@@ -11,13 +11,13 @@ import { useSelectModel } from './hooks/useSelectModel';
|
|
|
11
11
|
import { createSubcomponent, createContainer } from '@workday/canvas-kit-react/common';
|
|
12
12
|
import { system } from '@workday/canvas-tokens-web';
|
|
13
13
|
const selectInputStencil = createStencil({
|
|
14
|
-
base: { name: "
|
|
14
|
+
base: { name: "p7t957", styles: "box-sizing:border-box;caret-color:transparent;cursor:default;&::selection{background-color:transparent;}" }
|
|
15
15
|
}, "select-input-ef8a40");
|
|
16
16
|
const selectIconsStencil = createStencil({
|
|
17
|
-
base: { name: "
|
|
17
|
+
base: { name: "p7t958", styles: "box-sizing:border-box;position:absolute;pointer-events:none;" }
|
|
18
18
|
}, "select-icons-20326d");
|
|
19
19
|
const hiddenSelectInputStencil = createStencil({
|
|
20
|
-
base: { name: "
|
|
20
|
+
base: { name: "p7t959", styles: "box-sizing:border-box;position:absolute;top:var(--cnvs-sys-space-zero);bottom:var(--cnvs-sys-space-zero);left:var(--cnvs-sys-space-zero);right:var(--cnvs-sys-space-zero);opacity:var(--cnvs-sys-opacity-zero);cursor:default;pointer-events:none;" }
|
|
21
21
|
}, "hidden-select-input-209e09");
|
|
22
22
|
export const SelectInput = createSubcomponent(TextInput)({
|
|
23
23
|
modelHook: useSelectModel,
|
|
@@ -39,7 +39,7 @@ export const SelectItem = createSubcomponent('li')({
|
|
|
39
39
|
})(({ children, ...elemProps }, Element, _model) => {
|
|
40
40
|
return (React.createElement(Combobox.Menu.Item, { role: "option", as: Element, ...elemProps }, children));
|
|
41
41
|
});
|
|
42
|
-
const selectCardStyles = createStyles({ name: "
|
|
42
|
+
const selectCardStyles = createStyles({ name: "p7t95a", styles: "max-height:18.75rem;" });
|
|
43
43
|
export const SelectCard = createSubcomponent('div')({
|
|
44
44
|
modelHook: useSelectModel,
|
|
45
45
|
elemPropsHook: useSelectCard,
|
|
@@ -4,7 +4,7 @@ import { createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
|
4
4
|
import { brand, system } from '@workday/canvas-tokens-web';
|
|
5
5
|
import { mergeStyles } from '../../layout';
|
|
6
6
|
const switchContainerStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "p7t95b", styles: "box-sizing:border-box;position:relative;height:var(--cnvs-sys-space-x6);width:var(--cnvs-sys-space-x8);" }
|
|
8
8
|
}, "switch-container-e9661f");
|
|
9
9
|
const SwitchContainer = createComponent('div')({
|
|
10
10
|
displayName: 'SwitchContainer',
|
|
@@ -13,11 +13,11 @@ const SwitchContainer = createComponent('div')({
|
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
const switchInputStencil = createStencil({
|
|
16
|
-
base: { name: "
|
|
16
|
+
base: { name: "p7t95c", styles: "box-sizing:border-box;display:flex;position:absolute;height:var(--cnvs-sys-space-x6);width:var(--cnvs-sys-space-x8);margin:var(--cnvs-sys-space-zero);margin-left:var(--cnvs-sys-space-x1);border-radius:var(--cnvs-sys-shape-round);opacity:0;cursor:pointer;&:checked, &.checked{& ~ div:first-of-type{background-color:var(--cnvs-brand-primary-base);}&:disabled, &.disabled{& ~ div:first-of-type{opacity:var(--cnvs-sys-opacity-disabled);}}}&:disabled, &.disabled{cursor:not-allowed;& ~ div:first-of-type{opacity:var(--cnvs-sys-opacity-disabled);}}&:focus-visible, &:focus, &.focus{outline:none;& ~ div:first-of-type{box-shadow:0 0 0 2px var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1)), 0 0 0 4px var(--cnvs-brand-common-focus-outline, rgba(8,117,225,1));}}" },
|
|
17
17
|
modifiers: {
|
|
18
18
|
error: {
|
|
19
|
-
error: { name: "
|
|
20
|
-
alert: { name: "
|
|
19
|
+
error: { name: "p7t95d", styles: "& ~ div:first-of-type{box-shadow:\n 0 0 0 0.125rem var(--cnvs-sys-color-border-inverse),\n 0 0 0 var(--cnvs-sys-space-x1) var(--cnvs-brand-error-base),\n 0 0 0 0.3125rem transparent;}" },
|
|
20
|
+
alert: { name: "p7t95e", styles: "& ~ div:first-of-type{box-shadow:\n 0 0 0 0.125rem var(--cnvs-sys-color-border-inverse),\n 0 0 0 var(--cnvs-sys-space-x1) var(--cnvs-brand-alert-base),\n 0 0 0 0.3125rem var(--cnvs-brand-alert-darkest);}" }
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}, "switch-input-001dec");
|
|
@@ -28,7 +28,7 @@ const SwitchInput = createComponent('input')({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
const switchBackgroundStencil = createStencil({
|
|
31
|
-
base: { name: "
|
|
31
|
+
base: { name: "p7t95f", styles: "box-sizing:border-box;position:absolute;display:flex;align-items:center;pointer-events:none;margin-top:var(--cnvs-sys-space-x1);width:var(--cnvs-sys-space-x8);height:var(--cnvs-sys-space-x4);border-radius:var(--cnvs-sys-shape-round);padding:var(--cnvs-sys-space-zero) 0.125rem;transition:background-color 200ms ease;background-color:var(--cnvs-sys-color-bg-muted-soft);" }
|
|
32
32
|
}, "switch-background-17579c");
|
|
33
33
|
const SwitchBackground = createComponent('div')({
|
|
34
34
|
displayName: 'SwitchBackground',
|
|
@@ -37,10 +37,10 @@ const SwitchBackground = createComponent('div')({
|
|
|
37
37
|
},
|
|
38
38
|
});
|
|
39
39
|
const switchCircleStencil = createStencil({
|
|
40
|
-
base: { name: "
|
|
40
|
+
base: { name: "p7t95g", styles: "box-sizing:border-box;width:var(--cnvs-sys-space-x3);height:var(--cnvs-sys-space-x3);border-radius:var(--cnvs-sys-shape-round);box-shadow:var(--cnvs-sys-depth-1);transition:transform 150ms ease;pointer-events:none;background-color:var(--cnvs-brand-primary-accent);transform:translateX(var(--cnvs-sys-space-zero));" },
|
|
41
41
|
modifiers: {
|
|
42
42
|
checked: {
|
|
43
|
-
true: { name: "
|
|
43
|
+
true: { name: "p7t95h", styles: "transform:translateX(var(--cnvs-sys-space-x4));" }
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}, "switch-circle-2d1f0c");
|
|
@@ -11,7 +11,7 @@ import { TableCaption } from './TableCaption';
|
|
|
11
11
|
import { createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
12
12
|
import { system } from '@workday/canvas-tokens-web';
|
|
13
13
|
const tableStencil = createStencil({
|
|
14
|
-
base: { name: "
|
|
14
|
+
base: { name: "p7t95p", styles: "box-sizing:border-box;font-family:var(--cnvs-base-font-family-50);font-weight:var(--cnvs-base-font-weight-400);line-height:var(--cnvs-base-line-height-100);font-size:var(--cnvs-base-font-size-75);letter-spacing:var(--cnvs-base-letter-spacing-150);display:grid;border:0.0625rem solid var(--cnvs-sys-color-border-container);border-radius:var(--cnvs-sys-shape-x2);overflow:auto;color:var(--cnvs-sys-color-text-default);" }
|
|
15
15
|
}, "table-773355");
|
|
16
16
|
/**
|
|
17
17
|
* `Table` is a simple styled compound component that renders a [table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) element. It is used to present information in a two-dimensional table comprised of rows and columns of cells containing data.
|
|
@@ -3,7 +3,7 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
3
3
|
import { createComponent } from '@workday/canvas-kit-react/common';
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
const tableBodyStencil = createStencil({
|
|
6
|
-
base: { name: "
|
|
6
|
+
base: { name: "p7t95j", styles: "box-sizing:border-box;display:grid;tr {&:last-of-type{td, th{border-bottom:none;}}&:first-of-type{td, th{border-top:none;}}}td {&:last-of-type{border-inline-end:none;}&:first-of-type{border-inline-start:none;}}" }
|
|
7
7
|
}, "table-body-dbe12a");
|
|
8
8
|
export const TableBody = createComponent('tbody')({
|
|
9
9
|
displayName: 'Table.Body',
|
|
@@ -4,7 +4,7 @@ import { createComponent } from '@workday/canvas-kit-react/common';
|
|
|
4
4
|
import { createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
const tableCaptionStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "p7t95o", styles: "box-sizing:border-box;display:flex;border-bottom:0.0625rem solid var(--cnvs-sys-color-border-container);padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);" }
|
|
8
8
|
}, "table-caption-106f16");
|
|
9
9
|
export const TableCaption = createComponent('caption')({
|
|
10
10
|
displayName: 'Table.Caption',
|
|
@@ -4,7 +4,7 @@ import { createComponent } from '@workday/canvas-kit-react/common';
|
|
|
4
4
|
import { createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
const tableCellStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "p7t95m", styles: "box-sizing:border-box;display:grid;align-items:center;background-color:var(--cnvs-sys-color-bg-default);border-bottom:0.0625rem solid var(--cnvs-sys-color-border-divider);grid-template-columns:1fr;justify-content:start;min-height:3.5rem;padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);word-break:break-word;" }
|
|
8
8
|
}, "table-cell-c39aaf");
|
|
9
9
|
export const TableCell = createComponent('td')({
|
|
10
10
|
displayName: 'Table.Cell',
|