@workday/canvas-kit-preview-react 11.0.0-alpha.682-next.0 → 11.0.0-alpha.696-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/form-field/lib/FormField.js +6 -15
- package/dist/commonjs/form-field/lib/FormFieldContainer.js +2 -5
- package/dist/commonjs/form-field/lib/FormFieldHint.js +7 -11
- package/dist/commonjs/form-field/lib/FormFieldLabel.js +16 -42
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.d.ts.map +1 -1
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +3 -38
- package/dist/commonjs/radio/lib/RadioGroup.js +7 -20
- package/dist/commonjs/radio/lib/RadioLabel.js +2 -7
- package/dist/commonjs/radio/lib/RadioText.js +10 -20
- package/dist/commonjs/radio/lib/StyledRadioButton.js +15 -169
- package/dist/commonjs/table/lib/Table.d.ts.map +1 -1
- package/dist/commonjs/table/lib/Table.js +4 -2
- package/dist/commonjs/table/lib/TableBody.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableBody.js +3 -21
- package/dist/commonjs/table/lib/TableCaption.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableCaption.js +4 -2
- package/dist/commonjs/table/lib/TableCell.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableCell.js +4 -2
- package/dist/commonjs/table/lib/TableFooter.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableFooter.js +3 -1
- package/dist/commonjs/table/lib/TableHead.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableHead.js +4 -9
- package/dist/commonjs/table/lib/TableHeader.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableHeader.js +4 -2
- package/dist/commonjs/table/lib/TableRow.d.ts.map +1 -1
- package/dist/commonjs/table/lib/TableRow.js +9 -1
- package/dist/es6/form-field/lib/FormField.js +6 -15
- package/dist/es6/form-field/lib/FormFieldContainer.js +2 -5
- package/dist/es6/form-field/lib/FormFieldHint.js +7 -11
- package/dist/es6/form-field/lib/FormFieldLabel.js +16 -42
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.d.ts.map +1 -1
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +4 -39
- package/dist/es6/radio/lib/RadioGroup.js +7 -20
- package/dist/es6/radio/lib/RadioLabel.js +2 -7
- package/dist/es6/radio/lib/RadioText.js +10 -20
- package/dist/es6/radio/lib/StyledRadioButton.js +15 -169
- package/dist/es6/table/lib/Table.d.ts.map +1 -1
- package/dist/es6/table/lib/Table.js +5 -3
- package/dist/es6/table/lib/TableBody.d.ts.map +1 -1
- package/dist/es6/table/lib/TableBody.js +5 -23
- package/dist/es6/table/lib/TableCaption.d.ts.map +1 -1
- package/dist/es6/table/lib/TableCaption.js +5 -3
- package/dist/es6/table/lib/TableCell.d.ts.map +1 -1
- package/dist/es6/table/lib/TableCell.js +5 -3
- package/dist/es6/table/lib/TableFooter.d.ts.map +1 -1
- package/dist/es6/table/lib/TableFooter.js +4 -2
- package/dist/es6/table/lib/TableHead.d.ts.map +1 -1
- package/dist/es6/table/lib/TableHead.js +6 -11
- package/dist/es6/table/lib/TableHeader.d.ts.map +1 -1
- package/dist/es6/table/lib/TableHeader.js +5 -3
- package/dist/es6/table/lib/TableRow.d.ts.map +1 -1
- package/dist/es6/table/lib/TableRow.js +10 -2
- package/loading-sparkles/lib/LoadingSparkles.tsx +9 -3
- package/package.json +6 -7
- package/table/lib/Table.tsx +15 -12
- package/table/lib/TableBody.tsx +26 -21
- package/table/lib/TableCaption.tsx +12 -11
- package/table/lib/TableCell.tsx +18 -17
- package/table/lib/TableFooter.tsx +9 -3
- package/table/lib/TableHead.tsx +18 -10
- package/table/lib/TableHeader.tsx +18 -17
- package/table/lib/TableRow.tsx +20 -7
|
@@ -15,22 +15,13 @@ const FormFieldLabel_1 = require("./FormFieldLabel");
|
|
|
15
15
|
const FormFieldHint_1 = require("./FormFieldHint");
|
|
16
16
|
const FormFieldContainer_1 = require("./FormFieldContainer");
|
|
17
17
|
const formFieldStencil = canvas_kit_styling_1.createStencil({
|
|
18
|
-
base: {
|
|
19
|
-
border: 'none',
|
|
20
|
-
padding: 0,
|
|
21
|
-
margin: `0 0 ${canvas_tokens_web_1.system.space.x6}`,
|
|
22
|
-
},
|
|
18
|
+
base: { name: "1xggwa7", styles: "border:none;padding:0px;margin:0 0 var(--cnvs-sys-space-x6, calc(0.25rem * 6));" },
|
|
23
19
|
modifiers: {
|
|
24
|
-
|
|
25
|
-
true: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
});
|
|
20
|
+
modifiers: {
|
|
21
|
+
true: { name: "6316w2", styles: "width:100%;[data-width=\"ck-formfield-width\"]{width:100%;}" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, "form-field");
|
|
34
25
|
/**
|
|
35
26
|
* Use `FormField` to wrap input components to make them accessible. You can customize the field
|
|
36
27
|
* by passing in `TextInput`, `Select`, `RadioGroup` and other form elements to `FormField.Input` through the `as` prop.
|
|
@@ -9,11 +9,8 @@ const common_1 = require("@workday/canvas-kit-react/common");
|
|
|
9
9
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
10
10
|
const hooks_1 = require("./hooks");
|
|
11
11
|
const containerBaseStyles = canvas_kit_styling_1.createStencil({
|
|
12
|
-
base: {
|
|
13
|
-
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
},
|
|
16
|
-
});
|
|
12
|
+
base: { name: "j7qwjs", styles: "display:flex;flex-direction:column;" }
|
|
13
|
+
}, "container-base-styles");
|
|
17
14
|
exports.FormFieldContainer = common_1.createSubcomponent('div')({
|
|
18
15
|
displayName: 'FormField.Container',
|
|
19
16
|
modelHook: hooks_1.useFormFieldModel,
|
|
@@ -12,18 +12,14 @@ const hooks_1 = require("./hooks");
|
|
|
12
12
|
const text_1 = require("@workday/canvas-kit-react/text");
|
|
13
13
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
14
14
|
const formFieldHintStencil = canvas_kit_styling_1.createStencil({
|
|
15
|
-
base: {
|
|
16
|
-
margin: `${canvas_tokens_web_1.system.space.x2} 0 0`,
|
|
17
|
-
},
|
|
15
|
+
base: { name: "1dzfw9d", styles: "margin:var(--cnvs-sys-space-x2, calc(0.25rem * 2)) 0 0;" },
|
|
18
16
|
modifiers: {
|
|
19
|
-
|
|
20
|
-
error: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
});
|
|
17
|
+
modifiers: {
|
|
18
|
+
error: { name: "kze4di", styles: "color:var(--cnvs-brand-error-base, rgba(222,46,33,1));" },
|
|
19
|
+
alert: {}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, "form-field-hint");
|
|
27
23
|
exports.FormFieldHint = common_1.createSubcomponent('p')({
|
|
28
24
|
displayName: 'FormField.Hint',
|
|
29
25
|
modelHook: hooks_1.useFormFieldModel,
|
|
@@ -12,56 +12,30 @@ const hooks_1 = require("./hooks");
|
|
|
12
12
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
13
13
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
14
14
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
15
|
-
const asteriskStyles = canvas_kit_styling_1.createStyles({
|
|
16
|
-
marginInlineStart: canvas_tokens_web_1.system.space.x1,
|
|
17
|
-
fontSize: tokens_1.type.properties.fontSizes[20],
|
|
18
|
-
fontWeight: tokens_1.type.properties.fontWeights.regular,
|
|
19
|
-
textDecoration: 'unset',
|
|
20
|
-
color: canvas_tokens_web_1.brand.error.base,
|
|
21
|
-
});
|
|
15
|
+
const asteriskStyles = canvas_kit_styling_1.createStyles({ name: "crjtcq", styles: "margin-inline-start:var(--cnvs-sys-space-x1, 0.25rem);font-size:1.25rem;font-weight:400px;text-decoration:unset;color:var(--cnvs-brand-error-base, rgba(222,46,33,1));" });
|
|
22
16
|
const labelStencil = canvas_kit_styling_1.createStencil({
|
|
23
|
-
base: {
|
|
24
|
-
...canvas_tokens_web_1.system.type.subtext.large,
|
|
25
|
-
fontWeight: canvas_tokens_web_1.system.fontWeight.medium,
|
|
26
|
-
color: canvas_tokens_web_1.base.blackPepper300,
|
|
27
|
-
paddingInlineStart: 0,
|
|
28
|
-
marginBottom: canvas_tokens_web_1.system.space.x1,
|
|
29
|
-
display: 'flex',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
minWidth: '180px',
|
|
32
|
-
},
|
|
17
|
+
base: { name: "fjkyc4", styles: "font-family:var(--cnvs-base-font-family-50, \"Roboto\");font-weight:var(--cnvs-sys-font-weight-medium, 500);line-height:var(--cnvs-base-line-height-100, 1.25rem);font-size:var(--cnvs-base-font-size-75, 0.875rem);letter-spacing:var(--cnvs-base-letter-spacing-150, 0.015rem);color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));padding-inline-start:0px;margin-bottom:var(--cnvs-sys-space-x1, 0.25rem);display:flex;align-items:center;min-width:180px;" },
|
|
33
18
|
modifiers: {
|
|
34
|
-
|
|
35
|
-
horizontal: {
|
|
36
|
-
|
|
37
|
-
maxHeight: canvas_tokens_web_1.system.space.x10,
|
|
38
|
-
},
|
|
39
|
-
vertical: {
|
|
40
|
-
width: '100%',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
variant: {
|
|
44
|
-
error: { color: canvas_tokens_web_1.base.cinnamon500 },
|
|
45
|
-
hint: { color: canvas_tokens_web_1.base.licorice300 },
|
|
46
|
-
inverse: { color: canvas_tokens_web_1.base.frenchVanilla100 },
|
|
19
|
+
modifiers: {
|
|
20
|
+
horizontal: { name: "1hnsmpu", styles: "float:left;max-height:var(--cnvs-sys-space-x10, calc(0.25rem * 10));" },
|
|
21
|
+
vertical: { name: "8atqhb", styles: "width:100%;" }
|
|
47
22
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
23
|
+
modifiers: {
|
|
24
|
+
error: { name: "11i11uz", styles: "color:var(--cnvs-base-palette-cinnamon-500, rgba(222,46,33,1));" },
|
|
25
|
+
hint: { name: "1g2oxii", styles: "color:var(--cnvs-base-palette-licorice-300, rgba(94,106,117,1));" },
|
|
26
|
+
inverse: { name: "1j116kj", styles: "color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" }
|
|
53
27
|
},
|
|
28
|
+
modifiers: {
|
|
29
|
+
true: { name: "1c1k6kz", styles: "cursor:default;color:var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));" }
|
|
30
|
+
}
|
|
54
31
|
},
|
|
55
32
|
compound: [
|
|
56
33
|
{
|
|
57
34
|
modifiers: { variant: 'inverse', disabled: true },
|
|
58
|
-
styles: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
});
|
|
35
|
+
styles: { name: "rrp7fc", styles: "opacity:var(--cnvs-sys-opacity-disabled, 0.4);color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" }
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}, "label");
|
|
65
39
|
exports.FormFieldLabel = common_1.createSubcomponent('label')({
|
|
66
40
|
displayName: 'FormField.Label',
|
|
67
41
|
modelHook: hooks_1.useFormFieldModel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSparkles.d.ts","sourceRoot":"","sources":["../../../../loading-sparkles/lib/LoadingSparkles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoadingSparkles.d.ts","sourceRoot":"","sources":["../../../../loading-sparkles/lib/LoadingSparkles.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,OAAO,EAKR,MAAM,6BAA6B,CAAC;AA8ErC;;GAEG;AACH,eAAO,MAAM,eAAe,6EAW1B,CAAC"}
|
|
@@ -21,7 +21,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.LoadingSparkles = void 0;
|
|
23
23
|
const React = __importStar(require("react"));
|
|
24
|
-
const css_1 = require("@emotion/css");
|
|
25
24
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
26
25
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
27
26
|
const icon_1 = require("@workday/canvas-kit-react/icon");
|
|
@@ -46,49 +45,15 @@ const AI_COLORS = {
|
|
|
46
45
|
/**
|
|
47
46
|
* The animation for the sparkle.
|
|
48
47
|
*/
|
|
49
|
-
const LOADING_ANIMATION =
|
|
50
|
-
|
|
51
|
-
opacity: 0.2,
|
|
52
|
-
transform: 'scale(0.55)',
|
|
53
|
-
},
|
|
54
|
-
'27%': {
|
|
55
|
-
opacity: 1,
|
|
56
|
-
transform: 'scale(1)',
|
|
57
|
-
},
|
|
58
|
-
'53%': {
|
|
59
|
-
opacity: 0.6,
|
|
60
|
-
transform: 'scale(0.7)',
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
const loadingSparklesIconStyles = canvas_kit_styling_1.createStyles({
|
|
64
|
-
animationDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
65
|
-
animationFillMode: 'both',
|
|
66
|
-
animationIterationCount: 'infinite',
|
|
67
|
-
animationName: LOADING_ANIMATION,
|
|
68
|
-
animationTimingFunction: 'ease-in-out',
|
|
69
|
-
'.wd-sparkle-fill': {
|
|
70
|
-
fill: AI_COLORS.dragonFruit400,
|
|
71
|
-
},
|
|
72
|
-
'&:nth-child(1)': {
|
|
73
|
-
animationDelay: '0ms',
|
|
74
|
-
},
|
|
75
|
-
'&:nth-child(2)': {
|
|
76
|
-
animationDelay: `calc(${ANIMATION_DURATION_MS}ms * (1/3))`,
|
|
77
|
-
},
|
|
78
|
-
'&:nth-child(3)': {
|
|
79
|
-
animationDelay: `calc(${ANIMATION_DURATION_MS}ms * (2/3))`,
|
|
80
|
-
},
|
|
81
|
-
});
|
|
48
|
+
const LOADING_ANIMATION = canvas_kit_styling_1.keyframes({ name: "1lzmfb3", styles: "0%, 79%, 100%{opacity:0.2px;transform:scale(0.55);}27%{opacity:1px;transform:scale(1);}53%{opacity:0.6px;transform:scale(0.7);}" });
|
|
49
|
+
const loadingSparklesIconStyles = canvas_kit_styling_1.createStyles({ name: "5995an", styles: "animation-duration:1230pxms;animation-fill-mode:both;animation-iteration-count:infinite;animation-name:animation-1lzmfb3;animation-timing-function:ease-in-out;.wd-sparkle-fill{fill:#8C17D2;}&:nth-child(1){animation-delay:0ms;}&:nth-child(2){animation-delay:calc(1230pxms * (1/3));}&:nth-child(3){animation-delay:calc(1230pxms * (2/3));}" });
|
|
82
50
|
/**
|
|
83
51
|
* An individual loading sparkle. ✨
|
|
84
52
|
*/
|
|
85
53
|
const Sparkle = () => {
|
|
86
54
|
return (React.createElement(icon_1.SystemIcon, { icon: sparkleIcon_1.sparkleIcon, cs: [loadingSparklesIconStyles], size: canvas_kit_styling_1.cssVar(canvas_tokens_web_1.system.space.x3) }));
|
|
87
55
|
};
|
|
88
|
-
const loadingSparklesStyles = canvas_kit_styling_1.createStyles({
|
|
89
|
-
display: 'inline-flex',
|
|
90
|
-
gap: canvas_kit_styling_1.px2rem(1),
|
|
91
|
-
});
|
|
56
|
+
const loadingSparklesStyles = canvas_kit_styling_1.createStyles({ name: "14l8nwz", styles: "display:inline-flex;gap:0.0625rem;" });
|
|
92
57
|
/**
|
|
93
58
|
* A simple component that displays three horizontal sparkles, to be used when an AI operation is in progress.
|
|
94
59
|
*/
|
|
@@ -16,27 +16,14 @@ const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
|
16
16
|
* Styles for RadioGroup
|
|
17
17
|
*/
|
|
18
18
|
const radioGroupStyles = canvas_kit_styling_1.createStencil({
|
|
19
|
-
base: {
|
|
20
|
-
display: 'flex',
|
|
21
|
-
flexDirection: 'column',
|
|
22
|
-
borderRadius: canvas_tokens_web_1.system.shape.x1,
|
|
23
|
-
gap: canvas_tokens_web_1.system.space.x2,
|
|
24
|
-
padding: `${canvas_kit_styling_1.px2rem(10)} ${canvas_tokens_web_1.system.space.x3} ${canvas_tokens_web_1.system.space.x2}`,
|
|
25
|
-
margin: `${canvas_kit_styling_1.calc.negate(canvas_tokens_web_1.system.space.x1)} ${canvas_kit_styling_1.calc.negate(canvas_tokens_web_1.system.space.x3)}`,
|
|
26
|
-
transition: '100ms box-shadow',
|
|
27
|
-
width: 'fit-content',
|
|
28
|
-
},
|
|
19
|
+
base: { name: "1lnyyji", styles: "display:flex;flex-direction:column;border-radius:var(--cnvs-sys-shape-x1, 0.25rem);gap:var(--cnvs-sys-space-x2, calc(0.25rem * 2));padding:0.625rem var(--cnvs-sys-space-x3, calc(0.25rem * 3)) var(--cnvs-sys-space-x2, calc(0.25rem * 2));margin:calc(var(--cnvs-sys-space-x1) * -1) calc(var(--cnvs-sys-space-x3) * -1);transition:100ms box-shadow;width:fit-content;" },
|
|
29
20
|
modifiers: {
|
|
30
|
-
|
|
31
|
-
error: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
21
|
+
modifiers: {
|
|
22
|
+
error: { name: "1g7vnq3", styles: "box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-error-base, rgba(222,46,33,1));" },
|
|
23
|
+
alert: { name: "qmneoc", styles: "box-shadow:inset 0 0 0 0.0625rem var(--cnvs-brand-alert-darkest, rgba(192,108,0,1)), inset 0 0 0 0.1875rem var(--cnvs-brand-alert-base, rgba(255,161,38,1));" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}, "radio-group-styles");
|
|
40
27
|
/**
|
|
41
28
|
* Use `RadioGroup` to group a collection of `RadioGroup.RadioButton` components under a common `name`.
|
|
42
29
|
*
|
|
@@ -13,13 +13,8 @@ const RadioText_1 = require("./RadioText");
|
|
|
13
13
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
14
14
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
15
15
|
const radioLabelStyles = canvas_kit_styling_1.createStencil({
|
|
16
|
-
base: {
|
|
17
|
-
|
|
18
|
-
minHeight: canvas_tokens_web_1.system.space.x6,
|
|
19
|
-
position: 'relative',
|
|
20
|
-
gap: canvas_tokens_web_1.system.space.x3,
|
|
21
|
-
},
|
|
22
|
-
});
|
|
16
|
+
base: { name: "1ak69fu", styles: "align-items:flex-start;min-height:var(--cnvs-sys-space-x6, calc(0.25rem * 6));position:relative;gap:var(--cnvs-sys-space-x3, calc(0.25rem * 3));" }
|
|
17
|
+
}, "radio-label-styles");
|
|
23
18
|
exports.RadioLabelContext = react_1.default.createContext({});
|
|
24
19
|
exports.RadioLabel = common_1.createSubcomponent('label')({
|
|
25
20
|
displayName: 'Radio.Label',
|
|
@@ -13,32 +13,22 @@ const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
|
13
13
|
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
14
14
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
15
15
|
const radioTextStyles = canvas_kit_styling_1.createStencil({
|
|
16
|
-
base: {
|
|
17
|
-
...canvas_tokens_web_1.system.type.subtext.large,
|
|
18
|
-
cursor: 'pointer',
|
|
19
|
-
opacity: '1',
|
|
20
|
-
color: canvas_tokens_web_1.base.blackPepper300,
|
|
21
|
-
},
|
|
16
|
+
base: { name: "nwt3co", styles: "font-family:var(--cnvs-base-font-family-50, \"Roboto\");font-weight:var(--cnvs-base-font-weight-400, 400);line-height:var(--cnvs-base-line-height-100, 1.25rem);font-size:var(--cnvs-base-font-size-75, 0.875rem);letter-spacing:var(--cnvs-base-letter-spacing-150, 0.015rem);cursor:pointer;opacity:1;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
22
17
|
modifiers: {
|
|
23
|
-
|
|
24
|
-
inverse: {
|
|
25
|
-
color: canvas_tokens_web_1.base.frenchVanilla100,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
disabled: {
|
|
29
|
-
true: {
|
|
30
|
-
cursor: 'none',
|
|
31
|
-
color: canvas_tokens_web_1.base.licorice100,
|
|
32
|
-
},
|
|
18
|
+
modifiers: {
|
|
19
|
+
inverse: { name: "1j116kj", styles: "color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" }
|
|
33
20
|
},
|
|
21
|
+
modifiers: {
|
|
22
|
+
true: { name: "1iqk4gr", styles: "cursor:none;color:var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));" }
|
|
23
|
+
}
|
|
34
24
|
},
|
|
35
25
|
compound: [
|
|
36
26
|
{
|
|
37
27
|
modifiers: { variant: 'inverse', disabled: true },
|
|
38
|
-
styles: { color:
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
});
|
|
28
|
+
styles: { name: "1c0ay3d", styles: "color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));opacity:var(--cnvs-sys-opacity-disabled, 0.4);" }
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}, "radio-text-styles");
|
|
42
32
|
exports.RadioText = common_1.createSubcomponent('span')({
|
|
43
33
|
displayName: 'RadioButton.Text',
|
|
44
34
|
modelHook: useRadioModel_1.useRadioModel,
|
|
@@ -13,140 +13,13 @@ const RadioLabel_1 = require("./RadioLabel");
|
|
|
13
13
|
const radioWidth = 18;
|
|
14
14
|
const radioHeight = 18;
|
|
15
15
|
const radioInputStyles = canvas_kit_styling_1.createStencil({
|
|
16
|
-
base: {
|
|
17
|
-
cursor: 'pointer',
|
|
18
|
-
opacity: '1',
|
|
19
|
-
height: canvas_kit_styling_1.px2rem(radioHeight),
|
|
20
|
-
width: canvas_kit_styling_1.px2rem(radioWidth),
|
|
21
|
-
borderRadius: canvas_tokens_web_1.system.shape.round,
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
margin: '0',
|
|
24
|
-
'&:focus-visible, &.focus, &:active': {
|
|
25
|
-
outline: 'transparent',
|
|
26
|
-
},
|
|
27
|
-
'&:disabled, &.disabled': {
|
|
28
|
-
cursor: 'auto',
|
|
29
|
-
'+ .cnvs-radio-check': {
|
|
30
|
-
borderColor: canvas_tokens_web_1.base.licorice100,
|
|
31
|
-
backgroundColor: canvas_tokens_web_1.base.soap100,
|
|
32
|
-
},
|
|
33
|
-
'&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check': {
|
|
34
|
-
borderColor: canvas_tokens_web_1.base.licorice100,
|
|
35
|
-
},
|
|
36
|
-
// This creates the inner circle when the Radio is checked.
|
|
37
|
-
// The backgroundColor represents the dot in the middle of the radio.
|
|
38
|
-
// The borderColor represents the border around the middle dot of the radio.
|
|
39
|
-
'&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check': {
|
|
40
|
-
backgroundColor: canvas_tokens_web_1.brand.primary.accent,
|
|
41
|
-
border: `5px solid ${canvas_tokens_web_1.brand.primary.base}`, // inner circle border color
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
// Circle element styles the radio as checked or unchecked
|
|
45
|
-
'+ .cnvs-radio-check': {
|
|
46
|
-
display: 'flex',
|
|
47
|
-
flexDirection: 'column',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
backgroundColor: canvas_tokens_web_1.base.frenchVanilla100,
|
|
50
|
-
borderRadius: canvas_tokens_web_1.system.shape.round,
|
|
51
|
-
boxSizing: 'border-box',
|
|
52
|
-
border: `${canvas_kit_styling_1.px2rem(1)} solid ${canvas_tokens_web_1.base.licorice200}`,
|
|
53
|
-
height: canvas_kit_styling_1.px2rem(radioHeight),
|
|
54
|
-
width: canvas_kit_styling_1.px2rem(radioWidth),
|
|
55
|
-
justifyContent: 'center',
|
|
56
|
-
pointerEvents: 'none',
|
|
57
|
-
position: 'absolute',
|
|
58
|
-
transition: 'border 200ms ease, background 200ms',
|
|
59
|
-
opacity: '1',
|
|
60
|
-
},
|
|
61
|
-
'&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check': {
|
|
62
|
-
borderColor: canvas_tokens_web_1.base.licorice500,
|
|
63
|
-
},
|
|
64
|
-
'&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check': {
|
|
65
|
-
borderColor: canvas_tokens_web_1.base.blueberry400,
|
|
66
|
-
...common_1.focusRing({
|
|
67
|
-
width: 1,
|
|
68
|
-
separation: 0,
|
|
69
|
-
animate: false,
|
|
70
|
-
innerColor: canvas_tokens_web_1.base.frenchVanilla100,
|
|
71
|
-
outerColor: canvas_tokens_web_1.brand.common.focusOutline,
|
|
72
|
-
}),
|
|
73
|
-
},
|
|
74
|
-
'&:focus-visible:hover + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check': {
|
|
75
|
-
outline: 'transparent',
|
|
76
|
-
},
|
|
77
|
-
// This creates the inner circle when the Radio is checked.
|
|
78
|
-
// The backgroundColor represents the dot in the middle of the radio.
|
|
79
|
-
// The borderColor represents the border around the middle dot of the radio.
|
|
80
|
-
'&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check': {
|
|
81
|
-
backgroundColor: canvas_tokens_web_1.brand.primary.accent,
|
|
82
|
-
border: `${canvas_kit_styling_1.px2rem(5)} solid ${canvas_tokens_web_1.brand.primary.base}`, // inner circle border color
|
|
83
|
-
},
|
|
84
|
-
'&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check': {
|
|
85
|
-
outline: 'transparent',
|
|
86
|
-
...common_1.focusRing({
|
|
87
|
-
width: 2,
|
|
88
|
-
separation: 2,
|
|
89
|
-
animate: false,
|
|
90
|
-
innerColor: canvas_tokens_web_1.base.frenchVanilla100,
|
|
91
|
-
outerColor: canvas_tokens_web_1.brand.common.focusOutline,
|
|
92
|
-
}),
|
|
93
|
-
},
|
|
94
|
-
},
|
|
16
|
+
base: { name: "17rixmy", styles: "cursor:pointer;opacity:1;height:1.125rem;width:1.125rem;border-radius:var(--cnvs-sys-shape-round, calc(0.25rem * 250));position:absolute;margin:0;&:focus-visible, &.focus, &:active{outline:transparent;}&:disabled, &.disabled{cursor:auto;+ .cnvs-radio-check{border-color:var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));background-color:var(--cnvs-base-palette-soap-100, rgba(246,247,248,1));}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-accent, rgba(255,255,255,1));border:5px solid var(--cnvs-brand-primary-base, rgba(8,117,225,1));}}+ .cnvs-radio-check{display:flex;flex-direction:column;align-items:center;background-color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));border-radius:var(--cnvs-sys-shape-round, calc(0.25rem * 250));box-sizing:border-box;border:0.0625rem solid var(--cnvs-base-palette-licorice-200, rgba(123,133,143,1));height:1.125rem;width:1.125rem;justify-content:center;pointer-events:none;position:absolute;transition:border 200ms ease, background 200ms;opacity:1;}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-base-palette-licorice-500, rgba(51,61,71,1));}&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check{border-color:var(--cnvs-base-palette-blueberry-400, rgba(8,117,225,1));box-shadow:0 0 0 0px var(--cnvs-base-palette-french-vanilla-100), 0 0 0 1px var(--cnvs-brand-common-focus-outline);}&:focus-visible:hover + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check{outline:transparent;}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-accent, rgba(255,255,255,1));border:0.3125rem solid var(--cnvs-brand-primary-base, rgba(8,117,225,1));}&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check{outline:transparent;box-shadow:0 0 0 2px var(--cnvs-base-palette-french-vanilla-100), 0 0 0 4px var(--cnvs-brand-common-focus-outline);}" },
|
|
95
17
|
modifiers: {
|
|
96
|
-
|
|
97
|
-
inverse: {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
'&:disabled, &.disabled': {
|
|
103
|
-
opacity: canvas_tokens_web_1.system.opacity.disabled,
|
|
104
|
-
'+ .cnvs-radio-check': {
|
|
105
|
-
backgroundColor: canvas_tokens_web_1.base.soap100,
|
|
106
|
-
borderColor: canvas_tokens_web_1.base.licorice100,
|
|
107
|
-
opacity: canvas_tokens_web_1.system.opacity.disabled,
|
|
108
|
-
},
|
|
109
|
-
// This creates the inner circle when the Radio is checked.
|
|
110
|
-
// The backgroundColor represents the dot in the middle of the radio.
|
|
111
|
-
// The borderColor represents the border around the middle dot of the radio.
|
|
112
|
-
'&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check': {
|
|
113
|
-
backgroundColor: canvas_tokens_web_1.brand.primary.base,
|
|
114
|
-
borderColor: canvas_tokens_web_1.base.frenchVanilla100, // inner circle border color
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
'&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check': {
|
|
118
|
-
borderColor: canvas_tokens_web_1.base.soap300,
|
|
119
|
-
},
|
|
120
|
-
'&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check': {
|
|
121
|
-
borderColor: canvas_tokens_web_1.base.soap300,
|
|
122
|
-
},
|
|
123
|
-
// This creates the inner circle when the Radio is checked.
|
|
124
|
-
// The backgroundColor represents the dot in the middle of the radio.
|
|
125
|
-
// The borderColor represents the border around the middle dot of the radio.
|
|
126
|
-
'&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check': {
|
|
127
|
-
backgroundColor: canvas_tokens_web_1.brand.primary.base,
|
|
128
|
-
borderColor: canvas_tokens_web_1.base.frenchVanilla100, // inner circle border color
|
|
129
|
-
},
|
|
130
|
-
'&:focus-visible + .cnvs-radio-check, &:focus-visible:hover + .cnvs-radio-check, &.focus + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check': {
|
|
131
|
-
...common_1.focusRing({
|
|
132
|
-
width: 2,
|
|
133
|
-
separation: 0,
|
|
134
|
-
innerColor: canvas_tokens_web_1.base.blackPepper400,
|
|
135
|
-
outerColor: canvas_tokens_web_1.base.frenchVanilla100,
|
|
136
|
-
}),
|
|
137
|
-
},
|
|
138
|
-
'&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check': {
|
|
139
|
-
...common_1.focusRing({
|
|
140
|
-
width: 2,
|
|
141
|
-
separation: 2,
|
|
142
|
-
innerColor: canvas_tokens_web_1.base.blackPepper400,
|
|
143
|
-
outerColor: canvas_tokens_web_1.base.frenchVanilla100,
|
|
144
|
-
}),
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
});
|
|
18
|
+
modifiers: {
|
|
19
|
+
inverse: { name: "1e4i6j2", styles: "+ .cnvs-radio-check{background-color:var(--cnvs-base-palette-soap-100, rgba(246,247,248,1));border-color:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));}&:disabled, &.disabled{opacity:var(--cnvs-sys-opacity-disabled, 0.4);+ .cnvs-radio-check{background-color:var(--cnvs-base-palette-soap-100, rgba(246,247,248,1));border-color:var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));opacity:var(--cnvs-sys-opacity-disabled, 0.4);}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-base, rgba(8,117,225,1));border-color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));}}&:hover + .cnvs-radio-check, &.hover + .cnvs-radio-check{border-color:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));}&:focus-visible + .cnvs-radio-check, &.focus + .cnvs-radio-check{border-color:var(--cnvs-base-palette-soap-300, rgba(232,235,237,1));}&:checked + .cnvs-radio-check, &.checked + .cnvs-radio-check{background-color:var(--cnvs-brand-primary-base, rgba(8,117,225,1));border-color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));}&:focus-visible + .cnvs-radio-check, &:focus-visible:hover + .cnvs-radio-check, &.focus + .cnvs-radio-check, &.focus:hover + .cnvs-radio-check{box-shadow:0 0 0 0px var(--cnvs-base-palette-black-pepper-400), 0 0 0 2px var(--cnvs-base-palette-french-vanilla-100);}&:focus-visible:checked + .cnvs-radio-check, &:focus-visible:hover:checked + .cnvs-radio-check, &.focus:checked + .cnvs-radio-check, &.focus:hover:checked + .cnvs-radio-check{box-shadow:0 0 0 2px var(--cnvs-base-palette-black-pepper-400), 0 0 0 4px var(--cnvs-base-palette-french-vanilla-100);}" }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, "radio-input-styles");
|
|
150
23
|
const StyledRadioInput = common_1.createComponent('input')({
|
|
151
24
|
displayName: 'StyledRadioInput',
|
|
152
25
|
Component: ({ children, variant, ...elemProps }, ref, Element) => {
|
|
@@ -154,43 +27,16 @@ const StyledRadioInput = common_1.createComponent('input')({
|
|
|
154
27
|
},
|
|
155
28
|
});
|
|
156
29
|
const radioInputWrapperStyles = canvas_kit_styling_1.createStencil({
|
|
157
|
-
base: {
|
|
158
|
-
height: canvas_kit_styling_1.px2rem(radioHeight),
|
|
159
|
-
width: canvas_kit_styling_1.px2rem(radioWidth),
|
|
160
|
-
flex: '0 0 auto',
|
|
161
|
-
// Hover Ripple element
|
|
162
|
-
'::before': {
|
|
163
|
-
content: "''",
|
|
164
|
-
position: 'absolute',
|
|
165
|
-
borderRadius: canvas_tokens_web_1.system.shape.round,
|
|
166
|
-
height: canvas_kit_styling_1.px2rem(radioHeight),
|
|
167
|
-
transition: 'box-shadow 150ms ease-out',
|
|
168
|
-
width: canvas_kit_styling_1.px2rem(radioWidth),
|
|
169
|
-
pointerEvents: 'none',
|
|
170
|
-
opacity: '1',
|
|
171
|
-
},
|
|
172
|
-
'&:hover:before, &.hover:before': {
|
|
173
|
-
boxShadow: `0 0 0 ${canvas_kit_styling_1.calc.subtract(canvas_tokens_web_1.system.space.x2, canvas_kit_styling_1.px2rem(1))} ${canvas_tokens_web_1.base.soap200}`,
|
|
174
|
-
},
|
|
175
|
-
},
|
|
30
|
+
base: { name: "1kp9zh5", styles: "height:1.125rem;width:1.125rem;flex:0 0 auto;::before{content:'';position:absolute;border-radius:var(--cnvs-sys-shape-round, calc(0.25rem * 250));height:1.125rem;transition:box-shadow 150ms ease-out;width:1.125rem;pointer-events:none;opacity:1;}&:hover:before, &.hover:before{box-shadow:0 0 0 calc(var(--cnvs-sys-space-x2) - 0.0625rem) var(--cnvs-base-palette-soap-200, rgba(240,241,242,1));}" },
|
|
176
31
|
modifiers: {
|
|
177
|
-
|
|
178
|
-
inverse: {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
true: {
|
|
186
|
-
'&:hover:before, &.hover:before': {
|
|
187
|
-
boxShadow: 'none',
|
|
188
|
-
cursor: 'auto',
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
});
|
|
32
|
+
modifiers: {
|
|
33
|
+
inverse: { name: "15fnpid", styles: "::before{opacity:var(--cnvs-sys-opacity-disabled, 0.4);}" }
|
|
34
|
+
},
|
|
35
|
+
modifiers: {
|
|
36
|
+
true: { name: "1brxgit", styles: "&:hover:before, &.hover:before{box-shadow:none;cursor:auto;}" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, "radio-input-wrapper-styles");
|
|
194
40
|
const RadioInputWrapper = common_1.createComponent(layout_1.Flex)({
|
|
195
41
|
displayName: 'RadioInputWrapper',
|
|
196
42
|
Component: ({ children, variant, ...elemProps }, ref, Element) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../table/lib/Table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../table/lib/Table.tsx"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,KAAK;IAUd;;;;;;;;;;;;;;;;;;;;;MAqBE;;IAEF;;;;;;;;;;;;;;;;;;;;MAoBE;;IAEF;;;;;;;;;;;;;;;;;;;;MAoBE;;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BE;;IAEF;;;;;;;;;;;;;;;;;;;;MAoBE;;IAEF;;;;;;;;;;;;;;;;;;;;MAoBE;;IAEF;;;;;;;;;;;;;;;;;;;;MAoBE;;CAGJ,CAAC"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Table = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
9
|
-
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
10
9
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
11
10
|
const TableHead_1 = require("./TableHead");
|
|
12
11
|
const TableBody_1 = require("./TableBody");
|
|
@@ -15,6 +14,9 @@ const TableHeader_1 = require("./TableHeader");
|
|
|
15
14
|
const TableCell_1 = require("./TableCell");
|
|
16
15
|
const TableFooter_1 = require("./TableFooter");
|
|
17
16
|
const TableCaption_1 = require("./TableCaption");
|
|
17
|
+
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
18
|
+
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
19
|
+
const tableStyles = canvas_kit_styling_1.createStyles({ name: "1jt00fi", styles: "font-family:var(--cnvs-base-font-family-50, \"Roboto\");font-weight:var(--cnvs-base-font-weight-400, 400);line-height:var(--cnvs-base-line-height-100, 1.25rem);font-size:var(--cnvs-base-font-size-75, 0.875rem);letter-spacing:var(--cnvs-base-letter-spacing-150, 0.015rem);display:grid;border:0.0625rem solid var(--cnvs-base-palette-soap-500, rgba(206,211,217,1));border-radius:var(--cnvs-sys-shape-x2, calc(0.25rem * 2));overflow:auto;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));box-sizing:border-box;" });
|
|
18
20
|
/**
|
|
19
21
|
* `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.
|
|
20
22
|
*
|
|
@@ -60,7 +62,7 @@ export default function App() {
|
|
|
60
62
|
exports.Table = common_1.createComponent('table')({
|
|
61
63
|
displayName: 'Table',
|
|
62
64
|
Component: ({ children, ...elemProps }, ref, Element) => {
|
|
63
|
-
return (react_1.default.createElement(
|
|
65
|
+
return (react_1.default.createElement(Element, Object.assign({ ref: ref }, layout_1.mergeStyles(elemProps, tableStyles)), children));
|
|
64
66
|
},
|
|
65
67
|
subComponents: {
|
|
66
68
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableBody.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,SAAS,wMASpB,CAAC"}
|
|
@@ -7,29 +7,11 @@ exports.TableBody = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
9
9
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
borderBottom: 'none',
|
|
13
|
-
},
|
|
14
|
-
'tr:last-of-type th': {
|
|
15
|
-
borderBottom: 'none',
|
|
16
|
-
},
|
|
17
|
-
'tr:first-of-type td': {
|
|
18
|
-
borderTop: 'none',
|
|
19
|
-
},
|
|
20
|
-
'tr:first-of-type th': {
|
|
21
|
-
borderTop: 'none',
|
|
22
|
-
},
|
|
23
|
-
'td:last-of-type': {
|
|
24
|
-
borderRight: 'none',
|
|
25
|
-
},
|
|
26
|
-
'td:first-of-type': {
|
|
27
|
-
borderLeft: 'none',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
10
|
+
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
11
|
+
const bodyStyles = canvas_kit_styling_1.createStyles({ name: "1aq46he", styles: "display:grid;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;}}" });
|
|
30
12
|
exports.TableBody = common_1.createComponent('tbody')({
|
|
31
13
|
displayName: 'Table.Body',
|
|
32
14
|
Component: ({ children, ...elemProps }, ref, Element) => {
|
|
33
|
-
return (react_1.default.createElement(
|
|
15
|
+
return (react_1.default.createElement(Element, Object.assign({ ref: ref }, layout_1.mergeStyles(elemProps, bodyStyles)), children));
|
|
34
16
|
},
|
|
35
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCaption.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableCaption.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableCaption.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableCaption.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,0MASvB,CAAC"}
|
|
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TableCaption = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
9
8
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
10
9
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
10
|
+
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
11
|
+
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
12
|
+
const captionStyles = canvas_kit_styling_1.createStyles({ name: "mnuok4", styles: "display:flex;border-bottom:0.0625rem solid var(--cnvs-base-palette-soap-500, rgba(206,211,217,1));padding:var(--cnvs-sys-space-x2, calc(0.25rem * 2)) var(--cnvs-sys-space-x4, calc(0.25rem * 4));box-sizing:border-box;" });
|
|
11
13
|
exports.TableCaption = common_1.createComponent('caption')({
|
|
12
14
|
displayName: 'Table.Caption',
|
|
13
15
|
Component: ({ children, ...elemProps }, ref, Element) => {
|
|
14
|
-
return (react_1.default.createElement(
|
|
16
|
+
return (react_1.default.createElement(Element, Object.assign({ ref: ref }, layout_1.mergeStyles(elemProps, captionStyles)), children));
|
|
15
17
|
},
|
|
16
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../table/lib/TableCell.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,SAAS,qMASpB,CAAC"}
|
|
@@ -6,11 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TableCell = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
9
|
-
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
10
9
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
10
|
+
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
11
|
+
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
12
|
+
const cellStyles = canvas_kit_styling_1.createStyles({ name: "iww62y", styles: "display:grid;align-items:center;background-color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));border-bottom:0.0625rem solid var(--cnvs-base-palette-soap-400, rgba(223,226,230,1));grid-template-columns:1fr;justify-content:start;min-height:3.5rem;padding:var(--cnvs-sys-space-x2, calc(0.25rem * 2)) var(--cnvs-sys-space-x4, calc(0.25rem * 4));word-break:break-word;box-sizing:border-box;" });
|
|
11
13
|
exports.TableCell = common_1.createComponent('td')({
|
|
12
14
|
displayName: 'Table.Cell',
|
|
13
15
|
Component: ({ children, ...elemProps }, ref, Element) => {
|
|
14
|
-
return (react_1.default.createElement(
|
|
16
|
+
return (react_1.default.createElement(Element, Object.assign({ ref: ref }, layout_1.mergeStyles(elemProps, cellStyles)), children));
|
|
15
17
|
},
|
|
16
18
|
});
|