@workday/canvas-kit-docs 14.0.0-alpha.1140-next.0 → 14.0.0-alpha.1144-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/es6/lib/docs.js +7 -7
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/es6/mdx/installBlock.d.ts.map +1 -1
- package/dist/es6/mdx/installBlock.js +3 -2
- package/dist/es6/mdx/welcomePage.js +4 -4
- package/dist/mdx/11.0-UPGRADE-GUIDE.mdx +36 -60
- package/dist/mdx/14.0-UPGRADE-GUIDE.mdx +4 -2
- package/dist/mdx/preview-react/pill/examples/CustomStyles.tsx +25 -17
- package/dist/mdx/preview-react/radio/examples/Custom.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/AlwaysOpen.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/ExternalControl.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/Variant.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/AriaLiveRegions/FilterListWithLiveStatus.tsx +4 -4
- package/dist/mdx/react/_examples/mdx/examples/GlobalHeader.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/SidePanelWithNavigation.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/SidePanelWithOverlay.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/Table/WithSelectableRows.tsx +3 -3
- package/dist/mdx/react/_examples/mdx/examples/common/FilterListWithLiveStatus.tsx +3 -3
- package/dist/mdx/react/_examples/mdx/examples/common/VisibleLiveRegion.tsx +3 -3
- package/dist/mdx/react/avatar/avatar/examples/CustomStyles.tsx +7 -7
- package/dist/mdx/react/badge/examples/Basic.tsx +3 -3
- package/dist/mdx/react/badge/examples/CustomLimit.tsx +5 -5
- package/dist/mdx/react/badge/examples/NotificationBadge.tsx +1 -1
- package/dist/mdx/react/button/button/examples/CustomStyles.tsx +8 -8
- package/dist/mdx/react/icon/examples/Overview.tsx +2 -2
- package/dist/mdx/react/table/examples/RightToLeft.tsx +1 -1
- package/dist/mdx/react/text/examples/LabelText/Disabled.tsx +2 -2
- package/package.json +7 -7
package/dist/es6/lib/docs.js
CHANGED
|
@@ -216353,7 +216353,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
216353
216353
|
}
|
|
216354
216354
|
],
|
|
216355
216355
|
"tags": {
|
|
216356
|
-
"deprecated": "Interface `AccentIconStyles` will be removed in a future version. All props will be moved inside `AccentIconProps`. Consider
|
|
216356
|
+
"deprecated": "Interface `AccentIconStyles` will be removed in a future version. All props will be moved inside `AccentIconProps`. Consider use the new tokens set to set `color` prop: `color={system.color.bg.primary.strong}`."
|
|
216357
216357
|
},
|
|
216358
216358
|
"type": {
|
|
216359
216359
|
"kind": "object",
|
|
@@ -216374,7 +216374,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
216374
216374
|
}
|
|
216375
216375
|
],
|
|
216376
216376
|
"tags": {
|
|
216377
|
-
"default": "
|
|
216377
|
+
"default": "system.color.bg.primary.strong"
|
|
216378
216378
|
}
|
|
216379
216379
|
},
|
|
216380
216380
|
{
|
|
@@ -216385,7 +216385,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
216385
216385
|
"kind": "primitive",
|
|
216386
216386
|
"value": "boolean"
|
|
216387
216387
|
},
|
|
216388
|
-
"description": "If true, set the background fill of the AccentIcon to `transparent`.\nIf false, set the background fill of the AccentIcon to `
|
|
216388
|
+
"description": "If true, set the background fill of the AccentIcon to `transparent`.\nIf false, set the background fill of the AccentIcon to `system.color.bg.alt.soft`.",
|
|
216389
216389
|
"declarations": [
|
|
216390
216390
|
{
|
|
216391
216391
|
"name": "transparent",
|
|
@@ -217221,12 +217221,12 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
217221
217221
|
}
|
|
217222
217222
|
],
|
|
217223
217223
|
"tags": {
|
|
217224
|
-
"default": "
|
|
217224
|
+
"default": "system.color.bg.primary.strong"
|
|
217225
217225
|
},
|
|
217226
217226
|
"defaultValue": {
|
|
217227
217227
|
"kind": "symbol",
|
|
217228
|
-
"name": "
|
|
217229
|
-
"value": "
|
|
217228
|
+
"name": "system.color.bg.primary.strong",
|
|
217229
|
+
"value": "system.color.bg.primary.strong"
|
|
217230
217230
|
}
|
|
217231
217231
|
},
|
|
217232
217232
|
{
|
|
@@ -217237,7 +217237,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
217237
217237
|
"kind": "primitive",
|
|
217238
217238
|
"value": "boolean"
|
|
217239
217239
|
},
|
|
217240
|
-
"description": "If true, set the background fill of the AccentIcon to `transparent`.\nIf false, set the background fill of the AccentIcon to `
|
|
217240
|
+
"description": "If true, set the background fill of the AccentIcon to `transparent`.\nIf false, set the background fill of the AccentIcon to `system.color.bg.alt.soft`.",
|
|
217241
217241
|
"declarations": [
|
|
217242
217242
|
{
|
|
217243
217243
|
"name": "transparent",
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "13.1.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.1.
|
|
23
|
-
"@workday/canvas-kit-react": "13.1.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.1.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.1.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.1.3",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.1.3",
|
|
23
|
+
"@workday/canvas-kit-react": "13.1.3",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.1.3",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.1.3",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "13.1.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.1.
|
|
23
|
-
"@workday/canvas-kit-react": "13.1.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.1.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.1.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.1.3",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.1.3",
|
|
23
|
+
"@workday/canvas-kit-react": "13.1.3",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.1.3",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.1.3",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installBlock.d.ts","sourceRoot":"","sources":["../../../mdx/installBlock.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"installBlock.d.ts","sourceRoot":"","sources":["../../../mdx/installBlock.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,6BAA4B,iBAAiB,4CA8BrE,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Flex } from '@workday/canvas-kit-react/layout';
|
|
4
|
-
import {
|
|
4
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
5
5
|
import { PrimaryButton } from '@workday/canvas-kit-react/button';
|
|
6
|
+
import { cssVar } from '@workday/canvas-kit-styling';
|
|
6
7
|
export const InstallBlock = ({ command, packageName }) => {
|
|
7
8
|
const commandRef = React.useRef(null);
|
|
8
9
|
const [copied, setCopied] = React.useState(false);
|
|
@@ -15,5 +16,5 @@ export const InstallBlock = ({ command, packageName }) => {
|
|
|
15
16
|
navigator.clipboard.writeText(commandRef.current.innerText);
|
|
16
17
|
}
|
|
17
18
|
};
|
|
18
|
-
return (_jsxs(Flex, { padding: "xs", backgroundColor:
|
|
19
|
+
return (_jsxs(Flex, { padding: "xs", backgroundColor: system.color.bg.contrast.default, borderRadius: "m", justifyContent: "space-between", alignItems: "center", flexWrap: "wrap", children: [_jsxs("pre", { ref: commandRef, children: [_jsx("span", { style: { color: cssVar(system.color.fg.primary.soft) }, children: command }), ' ', _jsx("span", { style: { color: cssVar(system.color.fg.inverse) }, children: packageName })] }), _jsx(PrimaryButton, { variant: "inverse", onClick: handleCopy, size: "small", children: copied ? 'Copied' : 'Copy' })] }));
|
|
19
20
|
};
|
|
@@ -8,7 +8,7 @@ import { Card } from '@workday/canvas-kit-react/card';
|
|
|
8
8
|
import { ExternalHyperlink, Hyperlink } from '@workday/canvas-kit-react/button';
|
|
9
9
|
import { rocketIcon, tokensIcon, shapesIcon } from '@workday/canvas-system-icons-web';
|
|
10
10
|
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
11
|
-
import { system
|
|
11
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
12
12
|
import { createStyles } from '@workday/canvas-kit-styling';
|
|
13
13
|
// @ts-ignore: Cannot find module error
|
|
14
14
|
import { version } from '../../../lerna.json';
|
|
@@ -24,7 +24,7 @@ const textStyles = createStyles({
|
|
|
24
24
|
lineHeight: '5vmin',
|
|
25
25
|
});
|
|
26
26
|
const versionStyles = createStyles({
|
|
27
|
-
|
|
27
|
+
...system.type.body.medium,
|
|
28
28
|
marginInlineStart: system.space.x4,
|
|
29
29
|
});
|
|
30
30
|
const imageStyles = createStyles({
|
|
@@ -32,7 +32,7 @@ const imageStyles = createStyles({
|
|
|
32
32
|
height: 'auto',
|
|
33
33
|
});
|
|
34
34
|
const borderStyles = createStyles({
|
|
35
|
-
borderBottom: `1px solid ${
|
|
35
|
+
borderBottom: `1px solid ${system.color.border.primary.default}`,
|
|
36
36
|
marginBottom: system.space.x2,
|
|
37
37
|
});
|
|
38
38
|
const gridStyles = createStyles({
|
|
@@ -45,5 +45,5 @@ const linkStyles = createStyles({
|
|
|
45
45
|
marginTop: system.space.x3,
|
|
46
46
|
});
|
|
47
47
|
export const WelcomePage = () => {
|
|
48
|
-
return (_jsx("div", { className: "sb-unstyled", children: _jsxs("div", { className: parentFlexStyles, children: [_jsxs(Box, { cs: { overflow: 'hidden', position: 'relative' }, children: [_jsxs(Flex, { cs: { flexDirection: 'row', position: 'absolute', top: '45%', left: '10%' }, children: [_jsx(Text, { typeLevel: "title.medium", cs: textStyles, children: "Canvas Kit" }), _jsxs(Text, { typeLevel: "title.medium", cs: [textStyles, versionStyles], children: ["v", version] })] }), _jsx("img", { src: headerImage, alt: "banner with canvas kit logo and version", className: imageStyles })] }), _jsxs(Text, { typeLevel: "body.medium", children: ["This project provides a set of components for the Workday Canvas Design System that can be used to implement user experiences consistent with", _jsx(ExternalHyperlink, { href: "https://canvas.workdaydesign.com/", iconLabel: "Open docs in new window", children: "Workday Design Principles." })] }), _jsx(Heading, { size: "medium", className: borderStyles, children: "Quick Links" }), _jsxs(Grid, { gridAutoColumns: "auto", gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))", gridGap: "s", children: [_jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color:
|
|
48
|
+
return (_jsx("div", { className: "sb-unstyled", children: _jsxs("div", { className: parentFlexStyles, children: [_jsxs(Box, { cs: { overflow: 'hidden', position: 'relative' }, children: [_jsxs(Flex, { cs: { flexDirection: 'row', position: 'absolute', top: '45%', left: '10%' }, children: [_jsx(Text, { typeLevel: "title.medium", cs: textStyles, children: "Canvas Kit" }), _jsxs(Text, { typeLevel: "title.medium", cs: [textStyles, versionStyles], children: ["v", version] })] }), _jsx("img", { src: headerImage, alt: "banner with canvas kit logo and version", className: imageStyles })] }), _jsxs(Text, { typeLevel: "body.medium", children: ["This project provides a set of components for the Workday Canvas Design System that can be used to implement user experiences consistent with", _jsx(ExternalHyperlink, { href: "https://canvas.workdaydesign.com/", iconLabel: "Open docs in new window", children: "Workday Design Principles." })] }), _jsx(Heading, { size: "medium", className: borderStyles, children: "Quick Links" }), _jsxs(Grid, { gridAutoColumns: "auto", gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))", gridGap: "s", children: [_jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: system.color.static.amber.default, colorHover: system.color.static.amber.default, icon: rocketIcon, size: 60 }), _jsx(Card.Heading, { children: "Getting Started" }), _jsx(Card.Body, { children: _jsx(Text, { children: "For all things getting started including helpful guides and docs." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/guides-getting-started--docs", children: "Getting Started Guide" })] }), _jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: system.color.fg.primary.default, icon: tokensIcon, colorHover: system.color.fg.primary.default, size: 60 }), _jsx(Card.Heading, { children: "Tokens" }), _jsx(Card.Body, { children: _jsx(Text, { children: "Tokens are the smallest pieces of our Design System with the primary function of storing UI information." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/tokens--overview", children: "View Our Tokens" })] }), _jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: system.color.static.green.default, icon: shapesIcon, size: 60, colorHover: system.color.static.green.default }), _jsx(Card.Heading, { children: "Assets" }), _jsx(Card.Body, { children: _jsx(Text, { children: "Assets are graphics which help communicate meaning or highlight areas of interaction to our users." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/assets-icons--overview", children: "View Assets" })] })] }), _jsx(Heading, { size: "medium", className: borderStyles, children: "Installation" }), _jsx(Text, { children: "To get started using Canvas Kit React first add or install the module to your existing React project" }), _jsx(InstallBlock, { command: "yarn add", packageName: "@workday/canvas-kit-react @workday/canvas-tokens-web" }), "or", _jsx(InstallBlock, { command: "npm install", packageName: "@workday/canvas-kit-react @workday/canvas-tokens-web" })] }) }));
|
|
49
49
|
};
|
|
@@ -262,8 +262,8 @@ Components affected:
|
|
|
262
262
|
<Table.Cell />
|
|
263
263
|
<Table.Cell>disabled</Table.Cell>
|
|
264
264
|
<Table.Cell>borderColor</Table.Cell>
|
|
265
|
-
<Table.Cell
|
|
266
|
-
<Table.Cell
|
|
265
|
+
<Table.Cell>soap600</Table.Cell>
|
|
266
|
+
<Table.Cell >
|
|
267
267
|
licorice100
|
|
268
268
|
</Table.Cell>
|
|
269
269
|
</Table.Row>
|
|
@@ -272,8 +272,8 @@ Components affected:
|
|
|
272
272
|
<Table.Cell>Inverse</Table.Cell>
|
|
273
273
|
<Table.Cell>disabled</Table.Cell>
|
|
274
274
|
<Table.Cell>borderColor</Table.Cell>
|
|
275
|
-
<Table.Cell
|
|
276
|
-
<Table.Cell
|
|
275
|
+
<Table.Cell>soap600</Table.Cell>
|
|
276
|
+
<Table.Cell>
|
|
277
277
|
licorice100
|
|
278
278
|
</Table.Cell>
|
|
279
279
|
</Table.Row>
|
|
@@ -282,8 +282,8 @@ Components affected:
|
|
|
282
282
|
<Table.Cell />
|
|
283
283
|
<Table.Cell>disabled</Table.Cell>
|
|
284
284
|
<Table.Cell>backgroundColor</Table.Cell>
|
|
285
|
-
<Table.Cell
|
|
286
|
-
<Table.Cell
|
|
285
|
+
<Table.Cell>error.light</Table.Cell>
|
|
286
|
+
<Table.Cell>error.base</Table.Cell>
|
|
287
287
|
</Table.Row>
|
|
288
288
|
<Table.Row>
|
|
289
289
|
<Table.Cell>DeleteButton</Table.Cell>
|
|
@@ -298,8 +298,8 @@ Components affected:
|
|
|
298
298
|
<Table.Cell />
|
|
299
299
|
<Table.Cell>disabled</Table.Cell>
|
|
300
300
|
<Table.Cell>borderColor</Table.Cell>
|
|
301
|
-
<Table.Cell
|
|
302
|
-
<Table.Cell
|
|
301
|
+
<Table.Cell>soap600</Table.Cell>
|
|
302
|
+
<Table.Cell>
|
|
303
303
|
licorice100
|
|
304
304
|
</Table.Cell>
|
|
305
305
|
</Table.Row>
|
|
@@ -308,10 +308,8 @@ Components affected:
|
|
|
308
308
|
<Table.Cell>Inverse</Table.Cell>
|
|
309
309
|
<Table.Cell>focus</Table.Cell>
|
|
310
310
|
<Table.Cell>border</Table.Cell>
|
|
311
|
-
<Table.Cell
|
|
312
|
-
|
|
313
|
-
</Table.Cell>
|
|
314
|
-
<Table.Cell cs={{color: cssVar(base.blackPepper400), backgroundColor: 'transparent'}}>
|
|
311
|
+
<Table.Cell>soap400</Table.Cell>
|
|
312
|
+
<Table.Cell>
|
|
315
313
|
transparent
|
|
316
314
|
</Table.Cell>
|
|
317
315
|
</Table.Row>
|
|
@@ -320,10 +318,8 @@ Components affected:
|
|
|
320
318
|
<Table.Cell>Inverse</Table.Cell>
|
|
321
319
|
<Table.Cell>focus</Table.Cell>
|
|
322
320
|
<Table.Cell>boxShdaow (Inner Color)</Table.Cell>
|
|
323
|
-
<Table.Cell
|
|
324
|
-
|
|
325
|
-
</Table.Cell>
|
|
326
|
-
<Table.Cell cs={{color: cssVar(base.frenchVanilla100), backgroundColor: cssVar(base.blackPepper400)}}>
|
|
321
|
+
<Table.Cell>blackPepper500</Table.Cell>
|
|
322
|
+
<Table.Cell>
|
|
327
323
|
blackPepper400
|
|
328
324
|
</Table.Cell>
|
|
329
325
|
</Table.Row>
|
|
@@ -332,10 +328,8 @@ Components affected:
|
|
|
332
328
|
<Table.Cell>Inverse</Table.Cell>
|
|
333
329
|
<Table.Cell>focus</Table.Cell>
|
|
334
330
|
<Table.Cell>color</Table.Cell>
|
|
335
|
-
<Table.Cell
|
|
336
|
-
|
|
337
|
-
</Table.Cell>
|
|
338
|
-
<Table.Cell cs={{color: cssVar(base.frenchVanilla100), backgroundColor: cssVar(base.blackPepper400)}}>
|
|
331
|
+
<Table.Cell>blackPepper500</Table.Cell>
|
|
332
|
+
<Table.Cell>
|
|
339
333
|
blackPepper400
|
|
340
334
|
</Table.Cell>
|
|
341
335
|
</Table.Row>
|
|
@@ -344,10 +338,8 @@ Components affected:
|
|
|
344
338
|
<Table.Cell>Inverse</Table.Cell>
|
|
345
339
|
<Table.Cell>focus</Table.Cell>
|
|
346
340
|
<Table.Cell>fill</Table.Cell>
|
|
347
|
-
<Table.Cell
|
|
348
|
-
|
|
349
|
-
</Table.Cell>
|
|
350
|
-
<Table.Cell cs={{color: cssVar(base.frenchVanilla100), backgroundColor: cssVar(base.blackPepper400)}}>
|
|
341
|
+
<Table.Cell>blackPepper500</Table.Cell>
|
|
342
|
+
<Table.Cell>
|
|
351
343
|
blackPepper400
|
|
352
344
|
</Table.Cell>
|
|
353
345
|
</Table.Row>
|
|
@@ -356,10 +348,8 @@ Components affected:
|
|
|
356
348
|
<Table.Cell>transparent</Table.Cell>
|
|
357
349
|
<Table.Cell/>
|
|
358
350
|
<Table.Cell>backgroundColor</Table.Cell>
|
|
359
|
-
<Table.Cell
|
|
360
|
-
|
|
361
|
-
</Table.Cell>
|
|
362
|
-
<Table.Cell cs={{backgroundColor: cssVar(system.color.bg.translucent), color: cssVar(base.frenchVanilla100)}}>
|
|
351
|
+
<Table.Cell>blackPepper600</Table.Cell>
|
|
352
|
+
<Table.Cell>
|
|
363
353
|
rgba(0,0,0,.84)
|
|
364
354
|
</Table.Cell>
|
|
365
355
|
</Table.Row>
|
|
@@ -378,8 +368,8 @@ Components affected:
|
|
|
378
368
|
<Table.Cell>Checked and Disabled</Table.Cell>
|
|
379
369
|
<Table.Cell/>
|
|
380
370
|
<Table.Cell>backgroundColor, opacity</Table.Cell>
|
|
381
|
-
<Table.Cell
|
|
382
|
-
<Table.Cell
|
|
371
|
+
<Table.Cell>blueberry200</Table.Cell>
|
|
372
|
+
<Table.Cell>
|
|
383
373
|
backgroundColor: brand.primary.base
|
|
384
374
|
opacity: system.opacity.disabled
|
|
385
375
|
</Table.Cell>
|
|
@@ -389,36 +379,32 @@ Components affected:
|
|
|
389
379
|
<Table.Cell />
|
|
390
380
|
<Table.Cell />
|
|
391
381
|
<Table.Cell>borderColor</Table.Cell>
|
|
392
|
-
<Table.Cell
|
|
393
|
-
<Table.Cell
|
|
382
|
+
<Table.Cell>soap400</Table.Cell>
|
|
383
|
+
<Table.Cell>soap500</Table.Cell>
|
|
394
384
|
</Table.Row>
|
|
395
385
|
<Table.Row>
|
|
396
386
|
<Table.Cell>TertiaryButton</Table.Cell>
|
|
397
387
|
<Table.Cell />
|
|
398
388
|
<Table.Cell>hover</Table.Cell>
|
|
399
389
|
<Table.Cell>backgroundColor</Table.Cell>
|
|
400
|
-
<Table.Cell
|
|
401
|
-
<Table.Cell
|
|
390
|
+
<Table.Cell>soap200</Table.Cell>
|
|
391
|
+
<Table.Cell>soap300</Table.Cell>
|
|
402
392
|
</Table.Row>
|
|
403
393
|
<Table.Row>
|
|
404
394
|
<Table.Cell>TertiaryButton</Table.Cell>
|
|
405
395
|
<Table.Cell />
|
|
406
396
|
<Table.Cell>active</Table.Cell>
|
|
407
397
|
<Table.Cell>backgroundColor</Table.Cell>
|
|
408
|
-
<Table.Cell
|
|
409
|
-
<Table.Cell
|
|
398
|
+
<Table.Cell>soap300</Table.Cell>
|
|
399
|
+
<Table.Cell>soap400</Table.Cell>
|
|
410
400
|
</Table.Row>
|
|
411
401
|
<Table.Row>
|
|
412
402
|
<Table.Cell>TertiaryButton</Table.Cell>
|
|
413
403
|
<Table.Cell />
|
|
414
404
|
<Table.Cell>active</Table.Cell>
|
|
415
405
|
<Table.Cell>color</Table.Cell>
|
|
416
|
-
<Table.Cell
|
|
417
|
-
|
|
418
|
-
</Table.Cell>
|
|
419
|
-
<Table.Cell cs={{color: cssVar(base.frenchVanilla100), backgroundColor: cssVar(brand.primary.darkest)}}>
|
|
420
|
-
primary.darkest
|
|
421
|
-
</Table.Cell>
|
|
406
|
+
<Table.Cell>primary.dark</Table.Cell>
|
|
407
|
+
<Table.Cell>primary.darkest</Table.Cell>
|
|
422
408
|
</Table.Row>
|
|
423
409
|
<Table.Row>
|
|
424
410
|
<Table.Cell>TertiaryButton</Table.Cell>
|
|
@@ -433,42 +419,32 @@ Components affected:
|
|
|
433
419
|
<Table.Cell />
|
|
434
420
|
<Table.Cell>focus</Table.Cell>
|
|
435
421
|
<Table.Cell>fill</Table.Cell>
|
|
436
|
-
<Table.Cell
|
|
437
|
-
|
|
438
|
-
</Table.Cell>
|
|
439
|
-
<Table.Cell cs={{color: cssVar(base.frenchVanilla100), backgroundColor: cssVar(base.blackPepper400)}}>
|
|
440
|
-
blackPepper400
|
|
441
|
-
</Table.Cell>
|
|
422
|
+
<Table.Cell>blackPepper500</Table.Cell>
|
|
423
|
+
<Table.Cell>blackPepper400</Table.Cell>
|
|
442
424
|
</Table.Row>
|
|
443
425
|
<Table.Row>
|
|
444
426
|
<Table.Cell>TertiaryButton (Icon Only)</Table.Cell>
|
|
445
427
|
<Table.Cell />
|
|
446
428
|
<Table.Cell>hover</Table.Cell>
|
|
447
429
|
<Table.Cell>fill</Table.Cell>
|
|
448
|
-
<Table.Cell
|
|
449
|
-
|
|
450
|
-
</Table.Cell>
|
|
451
|
-
<Table.Cell cs={{color: cssVar(base.frenchVanilla100), backgroundColor: cssVar(base.blackPepper400)}}>
|
|
452
|
-
blackPepper400
|
|
453
|
-
</Table.Cell>
|
|
430
|
+
<Table.Cell>blackPepper500</Table.Cell>
|
|
431
|
+
<Table.Cell>blackPepper400</Table.Cell>
|
|
454
432
|
</Table.Row>
|
|
455
433
|
<Table.Row>
|
|
456
434
|
<Table.Cell>TextArea</Table.Cell>
|
|
457
435
|
<Table.Cell />
|
|
458
436
|
<Table.Cell>disabled</Table.Cell>
|
|
459
437
|
<Table.Cell>borderColor</Table.Cell>
|
|
460
|
-
<Table.Cell
|
|
461
|
-
<Table.Cell
|
|
462
|
-
licorice100
|
|
463
|
-
</Table.Cell>
|
|
438
|
+
<Table.Cell>soap600</Table.Cell>
|
|
439
|
+
<Table.Cell>licorice100</Table.Cell>
|
|
464
440
|
</Table.Row>
|
|
465
441
|
<Table.Row>
|
|
466
442
|
<Table.Cell>TextInput</Table.Cell>
|
|
467
443
|
<Table.Cell />
|
|
468
444
|
<Table.Cell>disabled</Table.Cell>
|
|
469
445
|
<Table.Cell>borderColor</Table.Cell>
|
|
470
|
-
<Table.Cell
|
|
471
|
-
<Table.Cell
|
|
446
|
+
<Table.Cell>soap600</Table.Cell>
|
|
447
|
+
<Table.Cell>
|
|
472
448
|
licorice100
|
|
473
449
|
</Table.Cell>
|
|
474
450
|
</Table.Row>
|
|
@@ -10,7 +10,7 @@ any questions.
|
|
|
10
10
|
- [Instructions](#instructions)
|
|
11
11
|
- [Component Updates](#component-updates)
|
|
12
12
|
- [Styling API and CSS Tokens](#styling-api-and-css-tokens)
|
|
13
|
-
|
|
13
|
+
- [SearchForm](#search-form)
|
|
14
14
|
- [Troubleshooting](#troubleshooting)
|
|
15
15
|
- [Glossary](#glossary)
|
|
16
16
|
- [Main](#main)
|
|
@@ -78,6 +78,8 @@ yarn remove @workday/canvas-kit-codemod
|
|
|
78
78
|
> after executing the codemod, as its resulting formatting (spacing, quotes, etc.) may not match
|
|
79
79
|
> your project conventions.
|
|
80
80
|
|
|
81
|
+
|
|
82
|
+
|
|
81
83
|
## Styling API and Canvas Tokens 💅
|
|
82
84
|
|
|
83
85
|
Several components have been refactored to use our Canvas tokens and styling API. The React
|
|
@@ -96,7 +98,7 @@ The following components have been updated:
|
|
|
96
98
|
- `ToolbarDropdownButton` [#3293](https://github.com/Workday/canvas-kit/pull/3293)
|
|
97
99
|
- `ToolbarIconButton` [#3293](https://github.com/Workday/canvas-kit/pull/3293)
|
|
98
100
|
|
|
99
|
-
|
|
101
|
+
## Search Form 🚨
|
|
100
102
|
|
|
101
103
|
**PR:** [#3303](https://github.com/Workday/canvas-kit/pull/3303)
|
|
102
104
|
|
|
@@ -1,33 +1,41 @@
|
|
|
1
1
|
import {Pill, pillCountStencil, pillStencil} from '@workday/canvas-kit-preview-react/pill';
|
|
2
2
|
|
|
3
3
|
import {createStencil} from '@workday/canvas-kit-styling';
|
|
4
|
-
import {
|
|
4
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
5
5
|
import {systemIconStencil} from '@workday/canvas-kit-react/icon';
|
|
6
6
|
|
|
7
7
|
const customPillStencil = createStencil({
|
|
8
8
|
base: {
|
|
9
|
-
[pillStencil.vars.background]:
|
|
10
|
-
[pillStencil.vars.border]:
|
|
11
|
-
[pillStencil.vars.label]:
|
|
12
|
-
[systemIconStencil.vars.color]:
|
|
13
|
-
[pillCountStencil.vars.backgroundColor]:
|
|
9
|
+
[pillStencil.vars.background]: system.color.static.green.default,
|
|
10
|
+
[pillStencil.vars.border]: system.color.static.green.stronger,
|
|
11
|
+
[pillStencil.vars.label]: system.color.static.white,
|
|
12
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
13
|
+
[pillCountStencil.vars.backgroundColor]: system.color.static.green.default,
|
|
14
|
+
[pillCountStencil.vars.borderColor]: system.color.static.green.default,
|
|
14
15
|
|
|
15
16
|
'&:hover, &.hover': {
|
|
16
|
-
[pillStencil.vars.background]:
|
|
17
|
-
[pillStencil.vars.label]:
|
|
18
|
-
[pillCountStencil.vars.backgroundColor]:
|
|
19
|
-
[systemIconStencil.vars.color]:
|
|
17
|
+
[pillStencil.vars.background]: system.color.static.green.stronger,
|
|
18
|
+
[pillStencil.vars.label]: system.color.static.white,
|
|
19
|
+
[pillCountStencil.vars.backgroundColor]: system.color.static.green.stronger,
|
|
20
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
21
|
+
[pillCountStencil.vars.borderColor]: system.color.static.green.stronger,
|
|
20
22
|
},
|
|
21
23
|
'&:active, &.active': {
|
|
22
|
-
[pillStencil.vars.background]:
|
|
23
|
-
[pillStencil.vars.label]:
|
|
24
|
-
[systemIconStencil.vars.color]:
|
|
25
|
-
[pillCountStencil.vars.backgroundColor]:
|
|
24
|
+
[pillStencil.vars.background]: system.color.static.green.stronger,
|
|
25
|
+
[pillStencil.vars.label]: system.color.static.white,
|
|
26
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
27
|
+
[pillCountStencil.vars.backgroundColor]: system.color.static.green.stronger,
|
|
28
|
+
},
|
|
29
|
+
'&:focus, &.focus, &:focus-visible': {
|
|
30
|
+
[pillStencil.vars.background]: system.color.static.green.stronger,
|
|
31
|
+
[pillStencil.vars.label]: system.color.static.white,
|
|
32
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
33
|
+
[pillCountStencil.vars.backgroundColor]: system.color.static.green.stronger,
|
|
26
34
|
},
|
|
27
35
|
'&:disabled, &.disabled': {
|
|
28
|
-
[pillStencil.vars.background]:
|
|
29
|
-
[pillStencil.vars.label]:
|
|
30
|
-
[systemIconStencil.vars.color]:
|
|
36
|
+
[pillStencil.vars.background]: system.color.static.green.default,
|
|
37
|
+
[pillStencil.vars.label]: system.color.static.white,
|
|
38
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
31
39
|
},
|
|
32
40
|
},
|
|
33
41
|
});
|
|
@@ -3,14 +3,14 @@ import {FormFieldGroup} from '@workday/canvas-kit-react/form-field';
|
|
|
3
3
|
import {RadioGroup} from '@workday/canvas-kit-preview-react/radio';
|
|
4
4
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
5
5
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
6
|
-
import {
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const styleOverrides = {
|
|
9
9
|
formfieldInputStyles: createStyles({
|
|
10
10
|
width: px2rem(200),
|
|
11
11
|
}),
|
|
12
12
|
radioGroupLabelTextStyles: createStyles({
|
|
13
|
-
color:
|
|
13
|
+
color: system.color.fg.default,
|
|
14
14
|
}),
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -4,7 +4,7 @@ import {rocketIcon} from '@workday/canvas-accent-icons-web';
|
|
|
4
4
|
import {SidePanel, useSidePanel} from '@workday/canvas-kit-preview-react/side-panel';
|
|
5
5
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
import {Heading, Text} from '@workday/canvas-kit-react/text';
|
|
7
|
-
import {
|
|
7
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
8
8
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
9
9
|
|
|
10
10
|
const stylesOverride = {
|
|
@@ -21,7 +21,7 @@ const stylesOverride = {
|
|
|
21
21
|
paddingX: system.space.x4,
|
|
22
22
|
}),
|
|
23
23
|
panelHeading: createStyles({
|
|
24
|
-
color:
|
|
24
|
+
color: system.color.fg.default,
|
|
25
25
|
}),
|
|
26
26
|
mainContent: createStyles({
|
|
27
27
|
alignItems: 'center',
|
|
@@ -8,7 +8,7 @@ import {Flex} from '@workday/canvas-kit-react/layout';
|
|
|
8
8
|
import {Heading, Text} from '@workday/canvas-kit-react/text';
|
|
9
9
|
import {SecondaryButton} from '@workday/canvas-kit-react/button';
|
|
10
10
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
11
|
-
import {
|
|
11
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
12
12
|
|
|
13
13
|
const stylesOverride = {
|
|
14
14
|
viewport: createStyles({
|
|
@@ -20,7 +20,7 @@ const stylesOverride = {
|
|
|
20
20
|
paddingX: system.space.x4,
|
|
21
21
|
}),
|
|
22
22
|
panelHeading: createStyles({
|
|
23
|
-
color:
|
|
23
|
+
color: system.color.fg.muted.stronger,
|
|
24
24
|
}),
|
|
25
25
|
main: createStyles({
|
|
26
26
|
alignItems: 'center',
|
|
@@ -5,7 +5,7 @@ import {Flex} from '@workday/canvas-kit-react/layout';
|
|
|
5
5
|
import {Heading, Text} from '@workday/canvas-kit-react/text';
|
|
6
6
|
import {CanvasProvider} from '@workday/canvas-kit-react/common';
|
|
7
7
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
8
|
-
import {
|
|
8
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
9
9
|
|
|
10
10
|
// local helper hook for setting content direction;
|
|
11
11
|
import {useDirection} from './useDirection';
|
|
@@ -13,7 +13,7 @@ import {useDirection} from './useDirection';
|
|
|
13
13
|
const stylesOverride = {
|
|
14
14
|
viewport: createStyles({
|
|
15
15
|
height: px2rem(320),
|
|
16
|
-
backgroundColor:
|
|
16
|
+
backgroundColor: system.color.bg.alt.default,
|
|
17
17
|
}),
|
|
18
18
|
panel: createStyles({
|
|
19
19
|
alignItems: 'center',
|
|
@@ -5,8 +5,8 @@ import {BodyText, Heading} from '@workday/canvas-kit-react/text';
|
|
|
5
5
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
import {FormField} from '@workday/canvas-kit-react/form-field';
|
|
7
7
|
import {TextInput} from '@workday/canvas-kit-react/text-input';
|
|
8
|
-
import {system
|
|
9
|
-
import {createStyles,
|
|
8
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
9
|
+
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
10
10
|
|
|
11
11
|
const fruits = [
|
|
12
12
|
'Apples',
|
|
@@ -20,8 +20,8 @@ const fruits = [
|
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
const liveRegionStyle = createStyles({
|
|
23
|
-
border: `${px2rem(1)} solid ${
|
|
24
|
-
backgroundColor:
|
|
23
|
+
border: `${px2rem(1)} solid ${system.color.bg.caution.stronger}`,
|
|
24
|
+
backgroundColor: system.color.bg.caution.default,
|
|
25
25
|
padding: system.space.x2,
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ExtractProps,
|
|
10
10
|
useUniqueId,
|
|
11
11
|
} from '@workday/canvas-kit-react/common';
|
|
12
|
-
import {
|
|
12
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
13
13
|
import {calc, createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
14
14
|
import {
|
|
15
15
|
notificationsIcon,
|
|
@@ -73,7 +73,7 @@ const styleOverrides = {
|
|
|
73
73
|
}),
|
|
74
74
|
menuButtonStyles: createStyles({
|
|
75
75
|
textDecoration: 'none',
|
|
76
|
-
color:
|
|
76
|
+
color: system.color.fg.strong,
|
|
77
77
|
}),
|
|
78
78
|
notificationContainerStyles: createStyles({
|
|
79
79
|
boxSizing: 'border-box',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
3
3
|
import {SidePanel, useSidePanel} from '@workday/canvas-kit-preview-react/side-panel';
|
|
4
4
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
5
5
|
import {Heading, Subtext, Text} from '@workday/canvas-kit-react/text';
|
|
@@ -30,7 +30,7 @@ const stylesOverride = {
|
|
|
30
30
|
navContainer: createStyles({
|
|
31
31
|
height: px2rem(800),
|
|
32
32
|
positio: 'relative',
|
|
33
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: system.color.bg.alt.default,
|
|
34
34
|
}),
|
|
35
35
|
accordionContainer: createStyles({
|
|
36
36
|
flexDirection: 'column',
|
|
@@ -3,12 +3,12 @@ import {SidePanel, useSidePanel} from '@workday/canvas-kit-preview-react/side-pa
|
|
|
3
3
|
import {Flex, Box} from '@workday/canvas-kit-react/layout';
|
|
4
4
|
import {Heading} from '@workday/canvas-kit-react/text';
|
|
5
5
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
6
|
-
import {system
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const stylesOverride = {
|
|
9
9
|
panelContainer: createStyles({
|
|
10
10
|
height: px2rem(320),
|
|
11
|
-
backgroundColor:
|
|
11
|
+
backgroundColor: system.color.bg.alt.soft,
|
|
12
12
|
position: 'relative',
|
|
13
13
|
}),
|
|
14
14
|
panelContent: createStyles({
|
|
@@ -6,7 +6,7 @@ import {Checkbox} from '@workday/canvas-kit-react/checkbox';
|
|
|
6
6
|
import {createComponent, generateUniqueId} from '@workday/canvas-kit-react/common';
|
|
7
7
|
import {Tooltip} from '@workday/canvas-kit-react/tooltip';
|
|
8
8
|
import {createStencil, createStyles} from '@workday/canvas-kit-styling';
|
|
9
|
-
import {
|
|
9
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
10
10
|
|
|
11
11
|
const selectableRowStencil = createStencil({
|
|
12
12
|
base: {
|
|
@@ -16,14 +16,14 @@ const selectableRowStencil = createStencil({
|
|
|
16
16
|
modifiers: {
|
|
17
17
|
isSelected: {
|
|
18
18
|
true: {
|
|
19
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: system.color.bg.primary.soft,
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
const tableHeaderStyles = createStyles({
|
|
26
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: system.color.bg.alt.soft,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
const tableCellStyles = createStyles({
|
|
@@ -3,7 +3,7 @@ import {TextInput} from '@workday/canvas-kit-preview-react/text-input';
|
|
|
3
3
|
import {BodyText, Heading} from '@workday/canvas-kit-react/text';
|
|
4
4
|
import {AriaLiveRegion} from '@workday/canvas-kit-react/common';
|
|
5
5
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
6
|
-
import {system
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
8
8
|
|
|
9
9
|
const fruits = [
|
|
@@ -18,8 +18,8 @@ const fruits = [
|
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
const liveRegionStyle = createStyles({
|
|
21
|
-
border: `${px2rem(1)} solid ${
|
|
22
|
-
backgroundColor:
|
|
21
|
+
border: `${px2rem(1)} solid ${system.color.border.caution.strong}`,
|
|
22
|
+
backgroundColor: system.color.bg.caution.default,
|
|
23
23
|
padding: system.space.x2,
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -4,12 +4,12 @@ import {PrimaryButton} from '@workday/canvas-kit-react/button';
|
|
|
4
4
|
import {TextInput} from '@workday/canvas-kit-preview-react/text-input';
|
|
5
5
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
6
6
|
import {Text} from '@workday/canvas-kit-react/text';
|
|
7
|
-
import {system
|
|
7
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
8
8
|
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
9
9
|
|
|
10
10
|
const liveRegionStyle = createStyles({
|
|
11
|
-
border: `${px2rem(1)} solid ${
|
|
12
|
-
backgroundColor:
|
|
11
|
+
border: `${px2rem(1)} solid ${system.color.bg.caution.stronger}`,
|
|
12
|
+
backgroundColor: system.color.bg.caution.default,
|
|
13
13
|
padding: system.space.x4,
|
|
14
14
|
display: 'block',
|
|
15
15
|
margin: system.space.x4 + ' 0',
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {Avatar} from '@workday/canvas-kit-react/avatar';
|
|
2
2
|
import {createStencil, createStyles} from '@workday/canvas-kit-styling';
|
|
3
|
-
import {
|
|
3
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
4
4
|
import {systemIconStencil} from '../../../../icon';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const customOrangeAvatar = createStencil({
|
|
7
7
|
base: {
|
|
8
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: system.color.static.amber.default,
|
|
9
9
|
['[data-part="avatar-icon"]']: {
|
|
10
|
-
[systemIconStencil.vars.color]:
|
|
10
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const customGreenAvatarStencil = createStencil({
|
|
16
16
|
base: {
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: system.color.static.green.default,
|
|
18
18
|
['[data-part="avatar-icon"]']: {
|
|
19
|
-
[systemIconStencil.vars.color]:
|
|
19
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
});
|
|
@@ -28,7 +28,7 @@ const containerStyles = createStyles({
|
|
|
28
28
|
|
|
29
29
|
export default () => (
|
|
30
30
|
<div className={containerStyles}>
|
|
31
|
-
<Avatar altText="Avatar" as="div" {...
|
|
31
|
+
<Avatar altText="Avatar" as="div" {...customOrangeAvatar()} />
|
|
32
32
|
<Avatar altText="Avatar" as="div" {...customGreenAvatarStencil()} />
|
|
33
33
|
</div>
|
|
34
34
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {CountBadge} from '@workday/canvas-kit-react/badge';
|
|
3
3
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
4
|
-
import {
|
|
4
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
5
5
|
|
|
6
6
|
const containerStyles = createStyles({
|
|
7
7
|
boxSizing: 'border-box',
|
|
@@ -11,13 +11,13 @@ const containerStyles = createStyles({
|
|
|
11
11
|
|
|
12
12
|
const defaultBackground = createStyles({
|
|
13
13
|
boxSizing: 'border-box',
|
|
14
|
-
backgroundColor:
|
|
14
|
+
backgroundColor: system.color.bg.alt.soft,
|
|
15
15
|
padding: system.space.x4,
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const inverseBackground = createStyles({
|
|
19
19
|
boxSizing: 'border-box',
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: system.color.bg.primary.default,
|
|
21
21
|
padding: system.space.x4,
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import {CountBadge} from '@workday/canvas-kit-react/badge';
|
|
3
3
|
import {TertiaryButton} from '@workday/canvas-kit-react/button';
|
|
4
4
|
|
|
5
|
-
import {createStyles
|
|
6
|
-
import {
|
|
5
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const columnStyles = createStyles({
|
|
9
9
|
boxSizing: 'border-box',
|
|
@@ -14,7 +14,7 @@ const columnStyles = createStyles({
|
|
|
14
14
|
|
|
15
15
|
const controls = createStyles({
|
|
16
16
|
boxSizing: 'border-box',
|
|
17
|
-
borderBottom: `solid 1px ${
|
|
17
|
+
borderBottom: `solid 1px ${system.color.border.divider}`,
|
|
18
18
|
display: 'flex',
|
|
19
19
|
gap: system.space.x1,
|
|
20
20
|
padding: system.space.x1,
|
|
@@ -22,13 +22,13 @@ const controls = createStyles({
|
|
|
22
22
|
|
|
23
23
|
const defaultBackground = createStyles({
|
|
24
24
|
boxSizing: 'border-box',
|
|
25
|
-
backgroundColor:
|
|
25
|
+
backgroundColor: system.color.bg.alt.soft,
|
|
26
26
|
padding: system.space.x4,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
const inverseBackground = createStyles({
|
|
30
30
|
boxSizing: 'border-box',
|
|
31
|
-
backgroundColor:
|
|
31
|
+
backgroundColor: system.color.bg.primary.default,
|
|
32
32
|
padding: system.space.x4,
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -4,7 +4,7 @@ import {SecondaryButton, TertiaryButton} from '@workday/canvas-kit-react/button'
|
|
|
4
4
|
import {AriaLiveRegion, useUniqueId} from '@workday/canvas-kit-react/common';
|
|
5
5
|
import {createStyles, cssVar} from '@workday/canvas-kit-styling';
|
|
6
6
|
import {notificationsIcon} from '@workday/canvas-system-icons-web';
|
|
7
|
-
import {
|
|
7
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
8
8
|
import {Tooltip} from '@workday/canvas-kit-react/tooltip';
|
|
9
9
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
10
10
|
|
|
@@ -76,21 +76,21 @@ const myCustomStyles = createStyles({
|
|
|
76
76
|
|
|
77
77
|
const customColors = {
|
|
78
78
|
default: {
|
|
79
|
-
background: system.color.static.
|
|
80
|
-
icon: system.color.static.
|
|
81
|
-
label: system.color.static.
|
|
79
|
+
background: system.color.static.amber.soft,
|
|
80
|
+
icon: system.color.static.amber.strong,
|
|
81
|
+
label: system.color.static.amber.strong,
|
|
82
82
|
},
|
|
83
83
|
focus: {
|
|
84
|
-
background: system.color.static.
|
|
85
|
-
boxShadowInner: system.color.static.
|
|
86
|
-
boxShadowOuter: system.color.static.
|
|
84
|
+
background: system.color.static.amber.strong,
|
|
85
|
+
boxShadowInner: system.color.static.amber.soft,
|
|
86
|
+
boxShadowOuter: system.color.static.amber.strong,
|
|
87
87
|
},
|
|
88
88
|
hover: {
|
|
89
|
-
background: system.color.static.
|
|
89
|
+
background: system.color.static.amber.default,
|
|
90
90
|
icon: system.color.icon.inverse,
|
|
91
91
|
},
|
|
92
92
|
active: {
|
|
93
|
-
background: system.color.static.
|
|
93
|
+
background: system.color.static.amber.strong,
|
|
94
94
|
},
|
|
95
95
|
disabled: {},
|
|
96
96
|
};
|
|
@@ -9,7 +9,7 @@ import {CanvasGraphic, CanvasIconTypes} from '@workday/design-assets-types';
|
|
|
9
9
|
import {AccentIcon, AppletIcon, SystemIcon, SystemIconCircle, Graphic} from '../../index';
|
|
10
10
|
import {activityStreamIcon} from '@workday/canvas-system-icons-web';
|
|
11
11
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
12
|
-
import {
|
|
12
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
13
13
|
|
|
14
14
|
const graphicExample: CanvasGraphic = {
|
|
15
15
|
name: 'badgeAchievement',
|
|
@@ -27,7 +27,7 @@ const styleOverrides = {
|
|
|
27
27
|
gap: system.space.x4,
|
|
28
28
|
}),
|
|
29
29
|
systemIconStyles: createStyles({
|
|
30
|
-
background:
|
|
30
|
+
background: system.color.static.red.softer,
|
|
31
31
|
}),
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {Table} from '@workday/canvas-kit-react/table';
|
|
4
4
|
import {CanvasProvider, ContentDirection} from '@workday/canvas-kit-react/common';
|
|
5
5
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
6
|
-
import {
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const tableHeaderStyles = createStyles({
|
|
9
9
|
backgroundColor: system.color.bg.alt.softer,
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import {LabelText} from '@workday/canvas-kit-react/text';
|
|
3
3
|
|
|
4
4
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
5
|
-
import {
|
|
5
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
6
6
|
|
|
7
7
|
const inverseBackground = createStyles({
|
|
8
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: system.color.bg.primary.default,
|
|
9
9
|
padding: system.space.x4,
|
|
10
10
|
marginTop: system.space.x4,
|
|
11
11
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1144-next.0",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@stackblitz/sdk": "^1.11.0",
|
|
47
47
|
"@storybook/csf": "0.0.1",
|
|
48
|
-
"@workday/canvas-kit-labs-react": "^14.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^14.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-react": "^14.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-styling": "^14.0.0-alpha.
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^14.0.0-alpha.1144-next.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^14.0.0-alpha.1144-next.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^14.0.0-alpha.1144-next.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^14.0.0-alpha.1144-next.0",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
53
|
-
"@workday/canvas-tokens-web": "
|
|
53
|
+
"@workday/canvas-tokens-web": "3.0.0-alpha.0",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
55
55
|
"react-syntax-highlighter": "^15.5.0",
|
|
56
56
|
"ts-node": "^10.9.1"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "8c2a2215d9a0b96f98e4b768781d3a5061a61f9c"
|
|
65
65
|
}
|