@workday/canvas-kit-react 12.6.23 → 12.6.25
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/button/lib/parts/ButtonLabelIcon.tsx +0 -1
- package/common/lib/styles/focusRing.ts +2 -2
- package/common/lib/utils/components.ts +5 -1
- package/common/lib/utils/insights.ts +29 -0
- package/dist/commonjs/avatar/lib/Avatar.d.ts +30 -30
- 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/Hyperlink.js +2 -2
- 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/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +0 -1
- 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.d.ts +4 -4
- 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 +3 -3
- package/dist/commonjs/combobox/lib/ComboboxMenuList.js +1 -1
- package/dist/commonjs/common/lib/AccessibleHide.js +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.d.ts +22 -22
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/common/lib/styles/focusRing.d.ts +2 -2
- package/dist/commonjs/common/lib/styles/focusRing.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/components.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/components.js +5 -1
- package/dist/commonjs/common/lib/utils/insights.d.ts +12 -0
- package/dist/commonjs/common/lib/utils/insights.d.ts.map +1 -0
- package/dist/commonjs/common/lib/utils/insights.js +28 -0
- 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.d.ts +29 -1
- package/dist/commonjs/form-field/lib/FormFieldGroupLabel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormFieldGroupLabel.js +5 -6
- 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.d.ts +45 -1
- package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +6 -7
- package/dist/commonjs/form-field/lib/formFieldStencil.d.ts +4 -4
- package/dist/commonjs/form-field/lib/formFieldStencil.js +8 -8
- package/dist/commonjs/icon/lib/AccentIcon.d.ts +2 -2
- package/dist/commonjs/icon/lib/AccentIcon.js +2 -2
- package/dist/commonjs/icon/lib/AppletIcon.d.ts +1 -1
- package/dist/commonjs/icon/lib/AppletIcon.js +1 -1
- package/dist/commonjs/icon/lib/Graphic.d.ts +1 -1
- package/dist/commonjs/icon/lib/Graphic.js +4 -4
- package/dist/commonjs/icon/lib/Svg.d.ts +1 -1
- package/dist/commonjs/icon/lib/Svg.js +2 -2
- package/dist/commonjs/icon/lib/SystemIcon.d.ts +1 -1
- 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 +2 -2
- package/dist/commonjs/menu/lib/MenuCard.js +1 -1
- package/dist/commonjs/menu/lib/MenuGroup.js +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +1 -1
- package/dist/commonjs/menu/lib/MenuList.d.ts +2 -2
- package/dist/commonjs/menu/lib/MenuList.js +3 -3
- package/dist/commonjs/menu/lib/MenuOption.js +1 -1
- 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/popup/lib/hooks/useDisableBodyScroll.js +1 -1
- package/dist/commonjs/select/lib/SelectCard.js +1 -1
- package/dist/commonjs/select/lib/SelectInput.js +3 -3
- package/dist/commonjs/switch/lib/Switch.js +7 -7
- package/dist/commonjs/table/lib/BaseTable.js +1 -1
- package/dist/commonjs/table/lib/Table.js +7 -7
- package/dist/commonjs/table/lib/parts/BaseTableBody.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableCaption.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableCell.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableHead.js +1 -1
- package/dist/commonjs/table/lib/parts/BaseTableHeader.js +1 -1
- package/dist/commonjs/table/lib/parts/css-grid-table/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 +9 -9
- package/dist/commonjs/text-area/lib/TextArea.js +5 -5
- package/dist/commonjs/text-input/lib/InputGroup.d.ts +12 -12
- package/dist/commonjs/text-input/lib/InputGroup.js +6 -6
- package/dist/commonjs/text-input/lib/TextInput.d.ts +5 -5
- package/dist/commonjs/text-input/lib/TextInput.js +5 -5
- 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/commonjs/version.js +1 -1
- package/dist/es6/avatar/lib/Avatar.d.ts +30 -30
- 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/Hyperlink.js +2 -2
- 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/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/ButtonLabelIcon.js +0 -1
- 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.d.ts +4 -4
- 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 +3 -3
- 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/common/lib/styles/focusRing.d.ts +2 -2
- package/dist/es6/common/lib/styles/focusRing.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/components.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/components.js +5 -1
- package/dist/es6/common/lib/utils/insights.d.ts +12 -0
- package/dist/es6/common/lib/utils/insights.d.ts.map +1 -0
- package/dist/es6/common/lib/utils/insights.js +24 -0
- 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.d.ts +29 -1
- package/dist/es6/form-field/lib/FormFieldGroupLabel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormFieldGroupLabel.js +5 -6
- 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.d.ts +45 -1
- package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
- package/dist/es6/form-field/lib/FormFieldLabel.js +6 -7
- package/dist/es6/form-field/lib/formFieldStencil.d.ts +4 -4
- package/dist/es6/form-field/lib/formFieldStencil.js +8 -8
- package/dist/es6/icon/lib/AccentIcon.d.ts +2 -2
- package/dist/es6/icon/lib/AccentIcon.js +2 -2
- package/dist/es6/icon/lib/AppletIcon.d.ts +1 -1
- package/dist/es6/icon/lib/AppletIcon.js +1 -1
- package/dist/es6/icon/lib/Graphic.d.ts +1 -1
- package/dist/es6/icon/lib/Graphic.js +4 -4
- package/dist/es6/icon/lib/Svg.d.ts +1 -1
- package/dist/es6/icon/lib/Svg.js +2 -2
- package/dist/es6/icon/lib/SystemIcon.d.ts +1 -1
- 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 +2 -2
- package/dist/es6/menu/lib/MenuCard.js +1 -1
- package/dist/es6/menu/lib/MenuGroup.js +1 -1
- package/dist/es6/menu/lib/MenuItem.js +1 -1
- package/dist/es6/menu/lib/MenuList.d.ts +2 -2
- package/dist/es6/menu/lib/MenuList.js +3 -3
- package/dist/es6/menu/lib/MenuOption.js +1 -1
- 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/popup/lib/hooks/useDisableBodyScroll.js +1 -1
- package/dist/es6/select/lib/SelectCard.js +1 -1
- package/dist/es6/select/lib/SelectInput.js +3 -3
- package/dist/es6/switch/lib/Switch.js +7 -7
- package/dist/es6/table/lib/BaseTable.js +1 -1
- package/dist/es6/table/lib/Table.js +7 -7
- package/dist/es6/table/lib/parts/BaseTableBody.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableCaption.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableCell.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableHead.js +1 -1
- package/dist/es6/table/lib/parts/BaseTableHeader.js +1 -1
- package/dist/es6/table/lib/parts/css-grid-table/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 +9 -9
- package/dist/es6/text-area/lib/TextArea.js +5 -5
- package/dist/es6/text-input/lib/InputGroup.d.ts +12 -12
- package/dist/es6/text-input/lib/InputGroup.js +6 -6
- package/dist/es6/text-input/lib/TextInput.d.ts +5 -5
- package/dist/es6/text-input/lib/TextInput.js +5 -5
- 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/dist/es6/version.js +1 -1
- package/form-field/lib/FormFieldGroupLabel.tsx +0 -2
- package/form-field/lib/FormFieldLabel.tsx +0 -2
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ import { calc, 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: "lgz65g", styles: "box-sizing:border-box;position:relative;height:var(--cnvs-sys-space-x6);width:var(--cnvs-sys-space-x8);" }
|
|
8
8
|
}, "switch-container-debbb0");
|
|
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: "lgz65h", 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: "lgz65i", 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: "lgz65j", 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-7f69d7");
|
|
@@ -28,7 +28,7 @@ const SwitchInput = createComponent('input')({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
const switchBackgroundStencil = createStencil({
|
|
31
|
-
base: { name: "
|
|
31
|
+
base: { name: "lgz65k", 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-0e2846");
|
|
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: "lgz65l", 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: "lgz65m", styles: "transform:translateX(var(--cnvs-sys-space-x4));:dir(rtl){transform:translateX(calc(var(--cnvs-sys-space-x4) * -1));}" }
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}, "switch-circle-780885");
|
|
@@ -11,7 +11,7 @@ import { BaseTableCaption } from './parts/BaseTableCaption';
|
|
|
11
11
|
import { createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
12
12
|
import { system } from '@workday/canvas-tokens-web';
|
|
13
13
|
export const baseTableStencil = createStencil({
|
|
14
|
-
base: { name: "
|
|
14
|
+
base: { name: "lgz65s", 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);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
|
}, "base-table-3d1e0c");
|
|
16
16
|
/**
|
|
17
17
|
* `BaseTable` is a simple styled compound component that renders a [table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) element.
|
|
@@ -12,30 +12,30 @@ import { baseTableHeaderStencil } from './parts/BaseTableHeader';
|
|
|
12
12
|
import { system } from '@workday/canvas-tokens-web';
|
|
13
13
|
export const tableStencil = createStencil({
|
|
14
14
|
extends: baseTableStencil,
|
|
15
|
-
base: { name: "
|
|
15
|
+
base: { name: "lgz65u", styles: "box-sizing:border-box;display:grid;" }
|
|
16
16
|
}, "table-829a9e");
|
|
17
17
|
export const tableBodyStencil = createStencil({
|
|
18
18
|
extends: baseTableBodyStencil,
|
|
19
|
-
base: { name: "
|
|
19
|
+
base: { name: "lgz65v", styles: "box-sizing:border-box;display:grid;" }
|
|
20
20
|
}, "table-body-32e7d0");
|
|
21
21
|
export const tableCaptionStencil = createStencil({
|
|
22
22
|
extends: baseTableCaptionStencil,
|
|
23
|
-
base: { name: "
|
|
23
|
+
base: { name: "lgz65w", styles: "box-sizing:border-box;display:flex;border-bottom:0.0625rem solid var(--cnvs-sys-color-border-container);" }
|
|
24
24
|
}, "table-caption-e31a96");
|
|
25
25
|
export const tableCellStencil = createStencil({
|
|
26
26
|
extends: baseTableCellStencil,
|
|
27
|
-
base: { name: "
|
|
27
|
+
base: { name: "lgz65x", styles: "box-sizing:border-box;display:grid;" }
|
|
28
28
|
}, "table-cell-c4c6f7");
|
|
29
29
|
export const tableFooterStencil = createStencil({
|
|
30
|
-
base: { name: "
|
|
30
|
+
base: { name: "lgz65y", styles: "box-sizing:border-box;display:grid;" }
|
|
31
31
|
}, "table-footer-a8fb62");
|
|
32
32
|
export const tableHeadStencil = createStencil({
|
|
33
33
|
extends: baseTableHeadStencil,
|
|
34
|
-
base: { name: "
|
|
34
|
+
base: { name: "lgz65z", styles: "box-sizing:border-box;display:grid;" }
|
|
35
35
|
}, "table-head-4d134d");
|
|
36
36
|
export const tableHeaderStencil = createStencil({
|
|
37
37
|
extends: baseTableHeaderStencil,
|
|
38
|
-
base: { name: "
|
|
38
|
+
base: { name: "lgz660", styles: "box-sizing:border-box;display:grid;align-items:center;" }
|
|
39
39
|
}, "table-header-15022a");
|
|
40
40
|
export const TableBody = createComponent('tbody')({
|
|
41
41
|
displayName: 'Table.Body',
|
|
@@ -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
|
export const baseTableBodyStencil = createStencil({
|
|
6
|
-
base: { name: "
|
|
6
|
+
base: { name: "lgz65o", styles: "box-sizing:border-box;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
|
}, "base-table-body-130b94");
|
|
8
8
|
export const BaseTableBody = createComponent('tbody')({
|
|
9
9
|
displayName: 'Table.Body',
|
|
@@ -4,7 +4,7 @@ import { createComponent } from '@workday/canvas-kit-react/common';
|
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
export const baseTableCaptionStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz65r", styles: "box-sizing:border-box;padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);" }
|
|
8
8
|
}, "base-table-caption-6381da");
|
|
9
9
|
export const BaseTableCaption = 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
|
export const baseTableCellStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz65q", styles: "box-sizing:border-box;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
|
}, "base-table-cell-f79a78");
|
|
9
9
|
export const BaseTableCell = createComponent('td')({
|
|
10
10
|
displayName: 'Table.Cell',
|
|
@@ -4,7 +4,7 @@ import { createComponent } from '@workday/canvas-kit-react/common';
|
|
|
4
4
|
import { calc, createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
export const baseTableHeadStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz65n", styles: "box-sizing:border-box;background-color:var(--cnvs-sys-color-bg-alt-softer);min-height:calc(var(--cnvs-sys-space-x16) - var(--cnvs-sys-space-x4));th {&:first-of-type{border-inline-start:none;}&:last-of-type{border-inline-end:none;}}" }
|
|
8
8
|
}, "base-table-head-8f0b37");
|
|
9
9
|
export const BaseTableHead = createComponent('thead')({
|
|
10
10
|
displayName: 'Table.Head',
|
|
@@ -4,7 +4,7 @@ import { createComponent } from '@workday/canvas-kit-react/common';
|
|
|
4
4
|
import { calc, createStencil, px2rem } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
export const baseTableHeaderStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz65p", styles: "box-sizing:border-box;background-color:var(--cnvs-sys-color-bg-default);border-bottom:0.0625rem solid var(--cnvs-sys-color-border-divider);justify-content:start;min-height:calc(var(--cnvs-sys-space-x16) - var(--cnvs-sys-space-x2));padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);word-break:break-word;font-weight:var(--cnvs-sys-font-weight-medium);" }
|
|
8
8
|
}, "base-table-header-39289d");
|
|
9
9
|
export const BaseTableHeader = createComponent('th')({
|
|
10
10
|
displayName: 'Table.Header',
|
|
@@ -5,7 +5,7 @@ import { createStencil, createVars } from '@workday/canvas-kit-styling';
|
|
|
5
5
|
const tableRowChildrenVars = createVars({ id: "afe05d", args: ["cellNumber"] });
|
|
6
6
|
// Styles for rows including dynamic sizing for amount of cells within a row
|
|
7
7
|
const tableRowStencil = createStencil({
|
|
8
|
-
base: { name: "
|
|
8
|
+
base: { name: "lgz65t", styles: "box-sizing:border-box;display:grid;grid-auto-flow:column;grid-template-columns:repeat(var(--cellNumber-afe05d), minmax(10rem, 1fr));" }
|
|
9
9
|
}, "table-row-787c4d");
|
|
10
10
|
export const TableRow = createComponent('tr')({
|
|
11
11
|
displayName: 'Table.Row',
|
|
@@ -6,21 +6,21 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
6
6
|
import { textStencil } from './Text';
|
|
7
7
|
const labelTextStencil = createStencil({
|
|
8
8
|
extends: textStencil,
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "lgz6p", 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-default);" },
|
|
10
10
|
modifiers: {
|
|
11
11
|
disabled: {
|
|
12
|
-
true: { name: "
|
|
12
|
+
true: { name: "lgz6q", styles: "cursor:default;color:var(--cnvs-sys-color-text-disabled);" }
|
|
13
13
|
},
|
|
14
14
|
variant: {
|
|
15
|
-
inverse: { name: "
|
|
16
|
-
error: { name: "
|
|
17
|
-
hint: { name: "
|
|
15
|
+
inverse: { name: "lgz6r", styles: "color:var(--cnvs-sys-color-text-inverse);" },
|
|
16
|
+
error: { name: "lgz6s", styles: "color:var(--cnvs-sys-color-text-critical-default);" },
|
|
17
|
+
hint: { name: "lgz6t", styles: "color:var(--cnvs-sys-color-text-hint);" }
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
compound: [
|
|
21
21
|
{
|
|
22
22
|
modifiers: { variant: 'inverse', disabled: true },
|
|
23
|
-
styles: { name: "
|
|
23
|
+
styles: { name: "lgz6u", styles: "opacity:var(--cnvs-sys-opacity-disabled);color:var(--cnvs-sys-color-text-inverse);" }
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
26
|
}, "label-text-047ddd");
|
|
@@ -4,30 +4,30 @@ import { createComponent } from '@workday/canvas-kit-react/common';
|
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
6
6
|
export const textStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz65", styles: "box-sizing:border-box;" },
|
|
8
8
|
modifiers: {
|
|
9
9
|
typeLevel: {
|
|
10
10
|
// Title level styles
|
|
11
|
-
'title.large': { name: "
|
|
12
|
-
'title.medium': { name: "
|
|
13
|
-
'title.small': { name: "
|
|
11
|
+
'title.large': { name: "lgz66", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-title-large);font-size:var(--cnvs-sys-font-size-title-large);color:var(--cnvs-sys-color-text-strong);" },
|
|
12
|
+
'title.medium': { name: "lgz67", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-title-medium);font-size:var(--cnvs-sys-font-size-title-medium);color:var(--cnvs-sys-color-text-strong);" },
|
|
13
|
+
'title.small': { name: "lgz68", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-title-small);font-size:var(--cnvs-sys-font-size-title-small);color:var(--cnvs-sys-color-text-strong);" },
|
|
14
14
|
// Heading level styles
|
|
15
|
-
'heading.large': { name: "
|
|
16
|
-
'heading.medium': { name: "
|
|
17
|
-
'heading.small': { name: "
|
|
15
|
+
'heading.large': { name: "lgz69", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-heading-large);font-size:var(--cnvs-sys-font-size-heading-large);color:var(--cnvs-sys-color-text-strong);" },
|
|
16
|
+
'heading.medium': { name: "lgz6a", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-heading-medium);font-size:var(--cnvs-sys-font-size-heading-medium);color:var(--cnvs-sys-color-text-strong);" },
|
|
17
|
+
'heading.small': { name: "lgz6b", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-bold);line-height:var(--cnvs-sys-line-height-heading-small);font-size:var(--cnvs-sys-font-size-heading-small);color:var(--cnvs-sys-color-text-strong);" },
|
|
18
18
|
// Body level styles
|
|
19
|
-
'body.large': { name: "
|
|
20
|
-
'body.medium': { name: "
|
|
21
|
-
'body.small': { name: "
|
|
19
|
+
'body.large': { name: "lgz6c", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-body-large);font-size:var(--cnvs-sys-font-size-body-large);color:var(--cnvs-sys-color-text-default);" },
|
|
20
|
+
'body.medium': { name: "lgz6d", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-body-medium);font-size:var(--cnvs-sys-font-size-body-medium);color:var(--cnvs-sys-color-text-default);" },
|
|
21
|
+
'body.small': { name: "lgz6e", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);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-default);" },
|
|
22
22
|
// Subtext level styles
|
|
23
|
-
'subtext.large': { name: "
|
|
24
|
-
'subtext.medium': { name: "
|
|
25
|
-
'subtext.small': { name: "
|
|
23
|
+
'subtext.large': { name: "lgz6f", styles: "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-default);" },
|
|
24
|
+
'subtext.medium': { name: "lgz6g", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);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);color:var(--cnvs-sys-color-text-default);" },
|
|
25
|
+
'subtext.small': { name: "lgz6h", styles: "font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-subtext-small);font-size:var(--cnvs-sys-font-size-subtext-small);letter-spacing:var(--cnvs-base-letter-spacing-50);color:var(--cnvs-sys-color-text-default);" }
|
|
26
26
|
},
|
|
27
27
|
variant: {
|
|
28
|
-
error: { name: "
|
|
29
|
-
hint: { name: "
|
|
30
|
-
inverse: { name: "
|
|
28
|
+
error: { name: "lgz6i", styles: "color:var(--cnvs-sys-color-text-critical-default);" },
|
|
29
|
+
hint: { name: "lgz6j", styles: "color:var(--cnvs-sys-color-text-hint);" },
|
|
30
|
+
inverse: { name: "lgz6k", styles: "color:var(--cnvs-sys-color-text-inverse);" }
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}, "text-e3da06");
|
|
@@ -5,7 +5,7 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
5
5
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
6
6
|
const subtextStencil = createStencil({
|
|
7
7
|
extends: textStencil,
|
|
8
|
-
base: { name: "
|
|
8
|
+
base: { name: "lgz6l", styles: "box-sizing:border-box;" }
|
|
9
9
|
}, "subtext-4e8604");
|
|
10
10
|
/**
|
|
11
11
|
* This component is intended to be used for small subtext content or in tight spaces.
|
|
@@ -40,7 +40,7 @@ export const Subtext = createComponent('p')({
|
|
|
40
40
|
});
|
|
41
41
|
const bodyTextStencil = createStencil({
|
|
42
42
|
extends: textStencil,
|
|
43
|
-
base: { name: "
|
|
43
|
+
base: { name: "lgz6m", styles: "box-sizing:border-box;" }
|
|
44
44
|
}, "body-text-44de3e");
|
|
45
45
|
/**
|
|
46
46
|
* This component is intended to be used for standard body text.
|
|
@@ -75,7 +75,7 @@ export const BodyText = createComponent('p')({
|
|
|
75
75
|
});
|
|
76
76
|
const headingStencil = createStencil({
|
|
77
77
|
extends: textStencil,
|
|
78
|
-
base: { name: "
|
|
78
|
+
base: { name: "lgz6n", styles: "box-sizing:border-box;" }
|
|
79
79
|
}, "heading-5a3efc");
|
|
80
80
|
/**
|
|
81
81
|
* This component is intended to be used for headings and large text.
|
|
@@ -110,7 +110,7 @@ export const Heading = createComponent('h2')({
|
|
|
110
110
|
});
|
|
111
111
|
const titleStencil = createStencil({
|
|
112
112
|
extends: textStencil,
|
|
113
|
-
base: { name: "
|
|
113
|
+
base: { name: "lgz6o", styles: "box-sizing:border-box;" }
|
|
114
114
|
}, "title-2c12c2");
|
|
115
115
|
/**
|
|
116
116
|
* This component is intended to be used large page titles.
|
|
@@ -20,23 +20,23 @@ export declare const TextAreaResizeDirection: {
|
|
|
20
20
|
export declare const textAreaStencil: import("@workday/canvas-kit-styling").Stencil<{
|
|
21
21
|
resize: {
|
|
22
22
|
both: {
|
|
23
|
-
resize:
|
|
23
|
+
resize: string;
|
|
24
24
|
};
|
|
25
25
|
horizontal: {
|
|
26
|
-
resize:
|
|
26
|
+
resize: string;
|
|
27
27
|
};
|
|
28
28
|
vertical: {
|
|
29
|
-
resize:
|
|
29
|
+
resize: string;
|
|
30
30
|
};
|
|
31
31
|
none: {
|
|
32
|
-
resize:
|
|
32
|
+
resize: string;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
}, {}, {}, import("@workday/canvas-kit-styling").Stencil<{
|
|
36
36
|
grow: {
|
|
37
37
|
true: {
|
|
38
38
|
width: string;
|
|
39
|
-
resize:
|
|
39
|
+
resize: string;
|
|
40
40
|
};
|
|
41
41
|
false: {
|
|
42
42
|
width: string;
|
|
@@ -45,23 +45,23 @@ export declare const textAreaStencil: import("@workday/canvas-kit-styling").Sten
|
|
|
45
45
|
error: {
|
|
46
46
|
error: {
|
|
47
47
|
borderColor: "--cnvs-brand-error-base";
|
|
48
|
-
boxShadow:
|
|
48
|
+
boxShadow: string;
|
|
49
49
|
'&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))': {
|
|
50
50
|
borderColor: "--cnvs-brand-error-base";
|
|
51
51
|
};
|
|
52
52
|
'&:is(:focus-visible, .focus):not([disabled])': {
|
|
53
|
-
boxShadow:
|
|
53
|
+
boxShadow: string;
|
|
54
54
|
outlineOffset: string;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
alert: {
|
|
58
58
|
borderColor: "--cnvs-brand-alert-darkest";
|
|
59
|
-
boxShadow:
|
|
59
|
+
boxShadow: string;
|
|
60
60
|
'&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))': {
|
|
61
61
|
borderColor: "--cnvs-brand-alert-darkest";
|
|
62
62
|
};
|
|
63
63
|
'&:is(:focus-visible, .focus):not([disabled])': {
|
|
64
|
-
boxShadow:
|
|
64
|
+
boxShadow: string;
|
|
65
65
|
};
|
|
66
66
|
outlineOffset: string;
|
|
67
67
|
};
|
|
@@ -11,13 +11,13 @@ export const TextAreaResizeDirection = {
|
|
|
11
11
|
};
|
|
12
12
|
export const textAreaStencil = createStencil({
|
|
13
13
|
extends: textInputStencil,
|
|
14
|
-
base: { name: "
|
|
14
|
+
base: { name: "lgz661", styles: "box-sizing:border-box;min-height:var(--cnvs-sys-space-x16);min-width:calc(calc(var(--cnvs-sys-space-x20) * 3) + var(--cnvs-sys-space-x10));&::webkit-resizer{display:none;}" },
|
|
15
15
|
modifiers: {
|
|
16
16
|
resize: {
|
|
17
|
-
both: { name: "
|
|
18
|
-
horizontal: { name: "
|
|
19
|
-
vertical: { name: "
|
|
20
|
-
none: { name: "
|
|
17
|
+
both: { name: "lgz662", styles: "resize:both;" },
|
|
18
|
+
horizontal: { name: "lgz663", styles: "resize:horizontal;" },
|
|
19
|
+
vertical: { name: "lgz664", styles: "resize:vertical;" },
|
|
20
|
+
none: { name: "lgz665", styles: "resize:none;" }
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
defaultModifiers: {
|
|
@@ -15,13 +15,13 @@ export declare const useInputGroupModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
15
15
|
export declare const inputGroupInnerStencil: import("@workday/canvas-kit-styling").Stencil<{
|
|
16
16
|
pointerEvents: {
|
|
17
17
|
_: ({ pointerEvents }: {
|
|
18
|
-
insetInlineStart: string
|
|
19
|
-
insetInlineEnd: string
|
|
20
|
-
width: string
|
|
21
|
-
height: string
|
|
22
|
-
pointerEvents: string
|
|
18
|
+
insetInlineStart: `--${string}`;
|
|
19
|
+
insetInlineEnd: `--${string}`;
|
|
20
|
+
width: `--${string}`;
|
|
21
|
+
height: `--${string}`;
|
|
22
|
+
pointerEvents: `--${string}`;
|
|
23
23
|
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
24
|
-
pointerEvents: string
|
|
24
|
+
pointerEvents: `--${string}`;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
}, {}, {
|
|
@@ -54,18 +54,18 @@ export declare const useInputGroupInput: import("@workday/canvas-kit-react/commo
|
|
|
54
54
|
export declare const inputGroupInputStencil: import("@workday/canvas-kit-styling").Stencil<{
|
|
55
55
|
paddingInlineStart: {
|
|
56
56
|
_: ({ paddingInlineStart }: {
|
|
57
|
-
paddingInlineStart: string
|
|
58
|
-
paddingInlineEnd: string
|
|
57
|
+
paddingInlineStart: `--${string}`;
|
|
58
|
+
paddingInlineEnd: `--${string}`;
|
|
59
59
|
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
60
|
-
paddingInlineStart: string
|
|
60
|
+
paddingInlineStart: `--${string}`;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
paddingInlineEnd: {
|
|
64
64
|
_: ({ paddingInlineEnd }: {
|
|
65
|
-
paddingInlineStart: string
|
|
66
|
-
paddingInlineEnd: string
|
|
65
|
+
paddingInlineStart: `--${string}`;
|
|
66
|
+
paddingInlineEnd: `--${string}`;
|
|
67
67
|
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
68
|
-
paddingInlineEnd: string
|
|
68
|
+
paddingInlineEnd: `--${string}`;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
}, {}, {
|
|
@@ -34,10 +34,10 @@ export const inputGroupInnerStencil = createStencil({
|
|
|
34
34
|
*/
|
|
35
35
|
pointerEvents: '',
|
|
36
36
|
},
|
|
37
|
-
base: { name: "
|
|
37
|
+
base: { name: "lgz646", styles: "--insetInlineStart-input-group-inner-42c96b:initial;--insetInlineEnd-input-group-inner-42c96b:initial;--width-input-group-inner-42c96b:var(--cnvs-sys-space-x10);--height-input-group-inner-42c96b:var(--cnvs-sys-space-x10);box-sizing:border-box;display:flex;position:absolute;align-items:center;justify-content:center;width:var(--width-input-group-inner-42c96b);height:var(--height-input-group-inner-42c96b);inset-inline-start:var(--insetInlineStart-input-group-inner-42c96b);inset-inline-end:var(--insetInlineEnd-input-group-inner-42c96b);" },
|
|
38
38
|
modifiers: {
|
|
39
39
|
pointerEvents: {
|
|
40
|
-
_: { name: "
|
|
40
|
+
_: { name: "lgz647", styles: "pointer-events:var(--pointerEvents-input-group-inner-42c96b);" }
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}, "input-group-inner-42c96b");
|
|
@@ -75,13 +75,13 @@ export const inputGroupInputStencil = createStencil({
|
|
|
75
75
|
paddingInlineStart: '',
|
|
76
76
|
paddingInlineEnd: '',
|
|
77
77
|
},
|
|
78
|
-
base: { name: "
|
|
78
|
+
base: { name: "lgz648", styles: "box-sizing:border-box;display:flex;width:100%;" },
|
|
79
79
|
modifiers: {
|
|
80
80
|
paddingInlineStart: {
|
|
81
|
-
_: { name: "
|
|
81
|
+
_: { name: "lgz649", styles: "padding-inline-start:var(--paddingInlineStart-input-group-input-9155da);" }
|
|
82
82
|
},
|
|
83
83
|
paddingInlineEnd: {
|
|
84
|
-
_: { name: "
|
|
84
|
+
_: { name: "lgz64a", styles: "padding-inline-end:var(--paddingInlineEnd-input-group-input-9155da);" }
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}, "input-group-input-9155da");
|
|
@@ -139,7 +139,7 @@ const wrapInCalc = (values) => {
|
|
|
139
139
|
return `calc(${values.map(toPx).join(' + ')})`;
|
|
140
140
|
};
|
|
141
141
|
export const inputGroupStencil = createStencil({
|
|
142
|
-
base: { name: "
|
|
142
|
+
base: { name: "lgz64b", styles: "box-sizing:border-box;display:flex;position:relative;align-items:center;& :has([data-part=\"input-group-clear-button\"]){transition:opacity 300ms ease;}&:where(:has(input:placeholder-shown)) :has([data-part=\"input-group-clear-button\"]){opacity:0;pointer-events:none;}" }
|
|
143
143
|
}, "input-group-27e30b");
|
|
144
144
|
/**
|
|
145
145
|
* An `InputGroup` is a container around a {@link TextInput} with optional inner start and end
|
|
@@ -14,7 +14,7 @@ export declare const textInputStencil: import("@workday/canvas-kit-styling").Ste
|
|
|
14
14
|
grow: {
|
|
15
15
|
true: {
|
|
16
16
|
width: string;
|
|
17
|
-
resize:
|
|
17
|
+
resize: string;
|
|
18
18
|
};
|
|
19
19
|
false: {
|
|
20
20
|
width: string;
|
|
@@ -23,23 +23,23 @@ export declare const textInputStencil: import("@workday/canvas-kit-styling").Ste
|
|
|
23
23
|
error: {
|
|
24
24
|
error: {
|
|
25
25
|
borderColor: "--cnvs-brand-error-base";
|
|
26
|
-
boxShadow:
|
|
26
|
+
boxShadow: string;
|
|
27
27
|
'&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))': {
|
|
28
28
|
borderColor: "--cnvs-brand-error-base";
|
|
29
29
|
};
|
|
30
30
|
'&:is(:focus-visible, .focus):not([disabled])': {
|
|
31
|
-
boxShadow:
|
|
31
|
+
boxShadow: string;
|
|
32
32
|
outlineOffset: string;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
alert: {
|
|
36
36
|
borderColor: "--cnvs-brand-alert-darkest";
|
|
37
|
-
boxShadow:
|
|
37
|
+
boxShadow: string;
|
|
38
38
|
'&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))': {
|
|
39
39
|
borderColor: "--cnvs-brand-alert-darkest";
|
|
40
40
|
};
|
|
41
41
|
'&:is(:focus-visible, .focus):not([disabled])': {
|
|
42
|
-
boxShadow:
|
|
42
|
+
boxShadow: string;
|
|
43
43
|
};
|
|
44
44
|
outlineOffset: string;
|
|
45
45
|
};
|
|
@@ -7,15 +7,15 @@ export const textInputStencil = createStencil({
|
|
|
7
7
|
vars: {
|
|
8
8
|
width: '',
|
|
9
9
|
},
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "lgz641", 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);display:block;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-x1);height:var(--cnvs-sys-space-x10);transition:0.2s box-shadow, 0.2s border-color;padding:var(--cnvs-sys-space-x2);margin:0rem;width:var(--width-text-input-d81f49);min-width:var(--width-text-input-d81f49, calc(calc(var(--cnvs-sys-space-x20) * 3) + var(--cnvs-sys-space-x10)));color:var(--cnvs-sys-color-text-default);text-overflow:ellipsis;::-ms-clear{display:none;}&::placeholder{color:var(--cnvs-sys-color-text-hint);}&:is(:hover, .hover){border-color:var(--cnvs-sys-color-border-input-strong);}&:is(:focus-visible, .focus):where(:not([disabled])){border-color:var(--cnvs-brand-common-focus-outline);box-shadow:inset 0 0 0 1px var(--cnvs-brand-common-focus-outline);outline:0.125rem solid transparent;}&:is(:disabled, .disabled){background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-disabled);color:var(--cnvs-sys-color-text-disabled);&::placeholder{color:var(--cnvs-sys-color-text-disabled);}}" },
|
|
11
11
|
modifiers: {
|
|
12
12
|
grow: {
|
|
13
|
-
true: { name: "
|
|
14
|
-
false: { name: "
|
|
13
|
+
true: { name: "lgz642", styles: "width:100%;resize:vertical;" },
|
|
14
|
+
false: { name: "lgz643", styles: "width:initial;" }
|
|
15
15
|
},
|
|
16
16
|
error: {
|
|
17
|
-
error: { name: "
|
|
18
|
-
alert: { name: "
|
|
17
|
+
error: { name: "lgz644", styles: "border-color:var(--cnvs-brand-error-base);box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-error-base);&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])){border-color:var(--cnvs-brand-error-base);}&:is(:focus-visible, .focus):not([disabled]){box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-error-base), 0 0 0 2px var(--cnvs-sys-color-border-inverse), 0 0 0 4px var(--cnvs-brand-common-focus-outline);outline-offset:0.125rem;}" },
|
|
18
|
+
alert: { name: "lgz645", styles: "border-color:var(--cnvs-brand-alert-darkest);box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-alert-base);&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])){border-color:var(--cnvs-brand-alert-darkest);}&:is(:focus-visible, .focus):not([disabled]){box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-alert-base),\n 0 0 0 2px var(--cnvs-sys-color-border-inverse),\n 0 0 0 4px var(--cnvs-brand-common-focus-outline);}outline-offset:0.125rem;" }
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
defaultModifiers: {
|
|
@@ -42,7 +42,7 @@ const getAriaAttributes = (mode, id) => {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
const toastStencil = createStencil({
|
|
45
|
-
base: { name: "
|
|
45
|
+
base: { name: "lgz66a", styles: "box-sizing:border-box;display:flex;flex-direction:row;width:calc(calc(var(--cnvs-sys-space-x20) * 4) + var(--cnvs-sys-space-x10));padding:var(--cnvs-sys-space-zero);gap:var(--cnvs-sys-space-x1);" }
|
|
46
46
|
}, "toast-55513d");
|
|
47
47
|
/**
|
|
48
48
|
* Toast is a compound component that has different modes based on its contents. The modes add the proper aria attributes for accessibility
|
|
@@ -4,7 +4,7 @@ import { Flex, mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
export const toastBodyStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz669", styles: "box-sizing:border-box;align-items:flex-start;flex-direction:column;justify-content:center;padding-top:var(--cnvs-sys-space-x4);padding-bottom:var(--cnvs-sys-space-x4);flex-grow:1;gap:var(--cnvs-sys-space-x1);" }
|
|
8
8
|
}, "toast-body-7d81ac");
|
|
9
9
|
export const ToastBody = createComponent('div')({
|
|
10
10
|
displayName: 'Toast.Body',
|
|
@@ -4,7 +4,7 @@ import { Popup } from '@workday/canvas-kit-react/popup';
|
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
6
6
|
export const toastCloseIconStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz666", styles: "box-sizing:border-box;position:relative;" }
|
|
8
8
|
}, "toast-close-icon-be7e9f");
|
|
9
9
|
export const ToastCloseIcon = createComponent('button')({
|
|
10
10
|
displayName: 'Toast.CloseIcon',
|
|
@@ -4,7 +4,7 @@ import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
|
4
4
|
import { createStencil, handleCsProp } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { system } from '@workday/canvas-tokens-web';
|
|
6
6
|
export const toastIconStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "lgz667", styles: "box-sizing:border-box;align-self:start;margin:var(--cnvs-sys-space-x4) var(--cnvs-sys-space-x3);" }
|
|
8
8
|
}, "toast-icon-4b0701");
|
|
9
9
|
export const ToastIcon = createComponent('div')({
|
|
10
10
|
displayName: 'Toast.Icon',
|
|
@@ -6,7 +6,7 @@ import { createStencil } from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
7
7
|
import { system } from '@workday/canvas-tokens-web';
|
|
8
8
|
export const toastMessageStencil = createStencil({
|
|
9
|
-
base: { name: "
|
|
9
|
+
base: { name: "lgz668", styles: "box-sizing:border-box;word-break:break-word;margin-block-start:var(--cnvs-sys-space-zero);margin-block-end:var(--cnvs-sys-space-zero);" }
|
|
10
10
|
}, "toast-message-759382");
|
|
11
11
|
export const ToastMessage = createSubcomponent('p')({
|
|
12
12
|
modelHook: useToastModel,
|
package/dist/es6/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '12.6.
|
|
1
|
+
export const version = '12.6.25';
|
|
@@ -18,7 +18,6 @@ export interface FormFieldGroupLabelProps
|
|
|
18
18
|
|
|
19
19
|
export const formFieldGroupLabelStencil = createStencil({
|
|
20
20
|
extends: textStencil,
|
|
21
|
-
// @ts-ignore Still weird about CSS font variables
|
|
22
21
|
base: {
|
|
23
22
|
fontWeight: system.fontWeight.medium,
|
|
24
23
|
color: system.color.text.default,
|
|
@@ -30,7 +29,6 @@ export const formFieldGroupLabelStencil = createStencil({
|
|
|
30
29
|
modifiers: {
|
|
31
30
|
isRequired: {
|
|
32
31
|
true: {
|
|
33
|
-
// @ts-ignore fonts
|
|
34
32
|
'&::after': {
|
|
35
33
|
content: '"*"',
|
|
36
34
|
fontSize: system.fontSize.body.large,
|