@workday/canvas-kit-react 12.4.2 → 12.4.4
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/common/lib/utils/elements.ts +32 -10
- 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/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 +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.js +1 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts +11 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/elements.js +30 -11
- 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 +6 -6
- 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 +2 -2
- package/dist/commonjs/menu/lib/MenuCard.js +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +1 -1
- 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/useReturnFocus.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/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.js +5 -5
- package/dist/commonjs/text-input/lib/InputGroup.js +6 -6
- 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/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/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 +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/utils/elements.d.ts +11 -1
- package/dist/es6/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/elements.js +28 -9
- 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 +6 -6
- 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 +2 -2
- package/dist/es6/menu/lib/MenuCard.js +1 -1
- package/dist/es6/menu/lib/MenuItem.js +1 -1
- 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/useReturnFocus.js +2 -2
- 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/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.js +5 -5
- package/dist/es6/text-input/lib/InputGroup.js +6 -6
- 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/package.json +4 -4
- package/popup/lib/hooks/useReturnFocus.tsx +2 -2
|
@@ -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: "icvb5p", 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: "icvb5n", 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',
|
|
@@ -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 tableFooterStencil = createStencil({
|
|
6
|
-
base: { name: "
|
|
6
|
+
base: { name: "icvb5o", styles: "box-sizing:border-box;display:grid;" }
|
|
7
7
|
}, "table-footer-9bbb07");
|
|
8
8
|
export const TableFooter = createComponent('tfoot')({
|
|
9
9
|
displayName: 'Table.Footer',
|
|
@@ -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
|
const tableHeadStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "icvb5j", styles: "box-sizing:border-box;display:grid;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
|
}, "table-head-c91e37");
|
|
9
9
|
export const TableHead = 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
|
const tableHeaderStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "icvb5m", 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);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
|
}, "table-header-8f0b37");
|
|
9
9
|
export const TableHeader = createComponent('th')({
|
|
10
10
|
displayName: 'Table.Header',
|
|
@@ -5,7 +5,7 @@ import { createStencil, createVars } from '@workday/canvas-kit-styling';
|
|
|
5
5
|
const childrenVars = createVars({ id: "4d9bf5", 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: "icvb5l", styles: "box-sizing:border-box;display:grid;grid-auto-flow:column;grid-template-columns:repeat(var(--cellNumber-4d9bf5), minmax(10rem, 1fr));" }
|
|
9
9
|
}, "table-row-a6e914");
|
|
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: "icvbo", 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: "icvbp", 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: "icvbq", styles: "color:var(--cnvs-sys-color-text-inverse);" },
|
|
16
|
+
error: { name: "icvbr", styles: "color:var(--cnvs-sys-color-text-critical-default);" },
|
|
17
|
+
hint: { name: "icvbs", 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: "icvbt", 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: "icvb4", 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: "icvb5", 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: "icvb6", 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: "icvb7", 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: "icvb8", 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: "icvb9", 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: "icvba", 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: "icvbb", 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: "icvbc", 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: "icvbd", 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: "icvbe", 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: "icvbf", 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: "icvbg", 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: "icvbh", styles: "color:var(--cnvs-sys-color-text-critical-default);" },
|
|
29
|
+
hint: { name: "icvbi", styles: "color:var(--cnvs-sys-color-text-hint);" },
|
|
30
|
+
inverse: { name: "icvbj", 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: "icvbk", 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: "icvbl", 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: "icvbm", 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: "icvbn", styles: "box-sizing:border-box;" }
|
|
114
114
|
}, "title-2c12c2");
|
|
115
115
|
/**
|
|
116
116
|
* This component is intended to be used large page titles.
|
|
@@ -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: "icvb5r", 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: "icvb5s", styles: "resize:both;" },
|
|
18
|
+
horizontal: { name: "icvb5t", styles: "resize:horizontal;" },
|
|
19
|
+
vertical: { name: "icvb5u", styles: "resize:vertical;" },
|
|
20
|
+
none: { name: "icvb5v", styles: "resize:none;" }
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
defaultModifiers: {
|
|
@@ -34,10 +34,10 @@ export const inputGroupInnerStencil = createStencil({
|
|
|
34
34
|
*/
|
|
35
35
|
pointerEvents: '',
|
|
36
36
|
},
|
|
37
|
-
base: { name: "
|
|
37
|
+
base: { name: "icvb42", 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: "icvb43", 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: "icvb44", styles: "box-sizing:border-box;display:flex;width:100%;" },
|
|
79
79
|
modifiers: {
|
|
80
80
|
paddingInlineStart: {
|
|
81
|
-
_: { name: "
|
|
81
|
+
_: { name: "icvb45", styles: "padding-inline-start:var(--paddingInlineStart-input-group-input-9155da);" }
|
|
82
82
|
},
|
|
83
83
|
paddingInlineEnd: {
|
|
84
|
-
_: { name: "
|
|
84
|
+
_: { name: "icvb46", 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: "icvb47", styles: "box-sizing:border-box;display:flex;position:relative;& :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
|
|
@@ -7,15 +7,15 @@ export const textInputStencil = createStencil({
|
|
|
7
7
|
vars: {
|
|
8
8
|
width: '',
|
|
9
9
|
},
|
|
10
|
-
base: { name: "
|
|
10
|
+
base: { name: "icvb3x", 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:none;}&: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: "icvb3y", styles: "width:100%;resize:vertical;" },
|
|
14
|
+
false: { name: "icvb3z", styles: "width:initial;" }
|
|
15
15
|
},
|
|
16
16
|
error: {
|
|
17
|
-
error: { name: "
|
|
18
|
-
alert: { name: "
|
|
17
|
+
error: { name: "icvb40", 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);}" },
|
|
18
|
+
alert: { name: "icvb41", 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);}" }
|
|
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: "icvb60", 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: "icvb5z", 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: "icvb5w", 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: "icvb5x", 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: "icvb5y", 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "12.4.
|
|
3
|
+
"version": "12.4.4",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit React components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@emotion/styled": "^11.6.0",
|
|
50
50
|
"@popperjs/core": "^2.5.4",
|
|
51
51
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
52
|
-
"@workday/canvas-kit-popup-stack": "^12.4.
|
|
53
|
-
"@workday/canvas-kit-styling": "^12.4.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^12.4.4",
|
|
53
|
+
"@workday/canvas-kit-styling": "^12.4.4",
|
|
54
54
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
55
55
|
"@workday/canvas-tokens-web": "^2.1.1",
|
|
56
56
|
"@workday/design-assets-types": "^0.2.8",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
67
67
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "921fb688382b24c47999ab26d6045b0e182e3064"
|
|
70
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {changeFocus, createElemPropsHook,
|
|
3
|
+
import {changeFocus, createElemPropsHook, isMouseFocusable} from '@workday/canvas-kit-react/common';
|
|
4
4
|
|
|
5
5
|
import {usePopupModel} from './usePopupModel';
|
|
6
6
|
import {PopupStack} from '@workday/canvas-kit-popup-stack';
|
|
@@ -24,7 +24,7 @@ function getScrollParent(element: HTMLElement): HTMLElement {
|
|
|
24
24
|
function getFocusableElement(element: Element | null): Element | null {
|
|
25
25
|
if (element === null || element === document.body || !element.parentElement) {
|
|
26
26
|
return null;
|
|
27
|
-
} else if (
|
|
27
|
+
} else if (isMouseFocusable(element)) {
|
|
28
28
|
return element;
|
|
29
29
|
}
|
|
30
30
|
|