@workday/canvas-kit-docs 14.0.0-alpha.1219-next.0 → 14.0.0-alpha.1224-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 +1777 -3141
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/mdx/12.0-UPGRADE-GUIDE.mdx +4 -1
- package/dist/mdx/14.0-UPGRADE-GUIDE.mdx +33 -2
- package/dist/mdx/preview-react/pill/Pill.mdx +2 -2
- package/dist/mdx/preview-react/pill/examples/WithReadOnly.tsx +1 -1
- package/package.json +6 -6
|
@@ -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.2.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.2.
|
|
23
|
-
"@workday/canvas-kit-react": "13.2.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.2.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.2.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.2.23",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.2.23",
|
|
23
|
+
"@workday/canvas-kit-react": "13.2.23",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.2.23",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.2.23",
|
|
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.2.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.2.
|
|
23
|
-
"@workday/canvas-kit-react": "13.2.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.2.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.2.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.2.23",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.2.23",
|
|
23
|
+
"@workday/canvas-kit-react": "13.2.23",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.2.23",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.2.23",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -26,6 +26,7 @@ A note to the reader:
|
|
|
26
26
|
- While we still support our old tokens from `@workday/canvas-kit-react/tokens`, **you must**
|
|
27
27
|
install our new tokens from `@workday/canvas-tokens-web`. You can find more info in our
|
|
28
28
|
[docs](https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs).
|
|
29
|
+
- If your application lives within another application that already imports the CSS variables, **you do not need to import these again**.
|
|
29
30
|
|
|
30
31
|
## Table of contents
|
|
31
32
|
|
|
@@ -66,9 +67,11 @@ A note to the reader:
|
|
|
66
67
|
In v12, all the components listed in this guide have started using our new
|
|
67
68
|
[Canvas Tokens Web](https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs).
|
|
68
69
|
**You must** add `@workday/canvas-tokens-web` to ensure our components are properly styled and the
|
|
69
|
-
variables are defined. For more information on installing and using, please reference our tokens
|
|
70
|
+
variables are defined at the root of your application. For more information on installing and using, please reference our tokens
|
|
70
71
|
[docs](https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs).
|
|
71
72
|
|
|
73
|
+
> **Note:** If your application lives within another application that already imports the CSS variables, **you do not need to import these again**. If you need them for local development either add them via a plugin or at the root of the environment, **do not ship code to production duplicating the imports**.
|
|
74
|
+
|
|
72
75
|
## Codemod
|
|
73
76
|
|
|
74
77
|
We've provided a [codemod](https://github.com/Workday/canvas-kit/tree/master/modules/codemod) to
|
|
@@ -29,8 +29,9 @@ any questions.
|
|
|
29
29
|
- [Side Panel (Main)](#side-panel-main)
|
|
30
30
|
- [Tokens](#tokens)
|
|
31
31
|
- [Removals](#removals)
|
|
32
|
-
- [Menu (preview)](#menu-preview)
|
|
33
32
|
- [Deprecated Buttons](#deprecated-buttons)
|
|
33
|
+
- [Menu (preview)](#menu-preview)
|
|
34
|
+
- [readyOnlyPillStencil and removeablePillStencil][readyOnlyPillStencil-and-removeablePillStencil]
|
|
34
35
|
- [Troubleshooting](#troubleshooting)
|
|
35
36
|
- [Glossary](#glossary)
|
|
36
37
|
- [Main](#main)
|
|
@@ -152,6 +153,7 @@ The following components have been updated:
|
|
|
152
153
|
- `InformationHighlight` [#3443](https://github.com/Workday/canvas-kit/pull/3443)
|
|
153
154
|
- `LoadingDots` (Main) [#3393](https://github.com/Workday/canvas-kit/pull/3393)
|
|
154
155
|
- `Pagination` (Preview) [#3300](https://github.com/Workday/canvas-kit/pull/3300)
|
|
156
|
+
- `Pill` [#3446](https://github.com/Workday/canvas-kit/pull/3446)
|
|
155
157
|
- `SearchForm` (Labs) [#3303](https://github.com/Workday/canvas-kit/pull/3303)
|
|
156
158
|
- `SegmentedControl` (Main) [#3278](https://github.com/Workday/canvas-kit/pull/3278)
|
|
157
159
|
- `SegmentedControl` (Preview) [#3278](https://github.com/Workday/canvas-kit/pull/3278)
|
|
@@ -330,13 +332,37 @@ These changes are only **visual** and should not affect the functionality of the
|
|
|
330
332
|
|
|
331
333
|
### Pill
|
|
332
334
|
|
|
333
|
-
**
|
|
335
|
+
**PRs:** [#3430](https://github.com/Workday/canvas-kit/pull/3430), [#3446](https://github.com/Workday/canvas-kit/pull/3446)
|
|
334
336
|
|
|
335
337
|
- `Pill` has been updated to use the `Avatar` component from Preview. This change requires that you
|
|
336
338
|
provide a value for the `name` prop.
|
|
337
339
|
|
|
338
340
|
> 🤖 The codemod will handle the change of `altText` to `name` on `Pill.Avatar`.
|
|
339
341
|
|
|
342
|
+
- The `Pill` component no longer supports `'default'` as a value for the `variant` prop. If the
|
|
343
|
+
`variant` prop is not provided, the component will use its default styling.
|
|
344
|
+
|
|
345
|
+
- `readyOnlyPillStencil` and `removeablePillStencil` have been removed due to some styling clean up. Please use `pillStencil` instead.
|
|
346
|
+
|
|
347
|
+
**Before in v13**
|
|
348
|
+
|
|
349
|
+
```tsx
|
|
350
|
+
<Pill variant="default">
|
|
351
|
+
<Pill.Avatar altText="John Doe" />
|
|
352
|
+
<Pill.Label>John Doe</Pill.Label>
|
|
353
|
+
</Pill>
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
**After in v14**
|
|
357
|
+
|
|
358
|
+
```tsx
|
|
359
|
+
<Pill>
|
|
360
|
+
<Pill.Avatar name="John Doe" />
|
|
361
|
+
<Pill.Label>John Doe</Pill.Label>
|
|
362
|
+
</Pill>
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
|
|
340
366
|
### Search Form 🚨
|
|
341
367
|
|
|
342
368
|
**PR:** [#3303](https://github.com/Workday/canvas-kit/pull/3303)
|
|
@@ -519,6 +545,11 @@ We've removed `Menu` from `@workday/canvas-kit-preview-react` package. Please us
|
|
|
519
545
|
[Menu](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--docs) from
|
|
520
546
|
`@workday/canvas-kit-react` instead.
|
|
521
547
|
|
|
548
|
+
### readyOnlyPillStencil and removeablePillStencil
|
|
549
|
+
|
|
550
|
+
The `readyOnlyPillStencil` and `removeablePillStencil` utilities have been removed from the Pill
|
|
551
|
+
package. Please use `pillStencil` instead.
|
|
552
|
+
|
|
522
553
|
---
|
|
523
554
|
|
|
524
555
|
## Troubleshooting
|
|
@@ -28,7 +28,7 @@ information to help with scanning and organization.
|
|
|
28
28
|
|
|
29
29
|
### Basic Pills
|
|
30
30
|
|
|
31
|
-
By default a Pill is considered interactive
|
|
31
|
+
By default a Pill is considered interactive. All leading
|
|
32
32
|
elements (icons or avatars) are intended to be descriptive, helping support the label. Do not rely
|
|
33
33
|
on the leading element to indicate the interaction behavior.
|
|
34
34
|
|
|
@@ -60,7 +60,7 @@ the count will directly correlate to that category.
|
|
|
60
60
|
|
|
61
61
|
### Read Only
|
|
62
62
|
|
|
63
|
-
The `readOnly` variant is a non-interactive element that is used to display information.
|
|
63
|
+
The `readOnly` variant is a non-interactive element that is used to display information.
|
|
64
64
|
|
|
65
65
|
You can define a read only `Pill` by providing a `variant='readOnly'` prop.
|
|
66
66
|
|
|
@@ -10,7 +10,7 @@ const flexStyles = createStyles({
|
|
|
10
10
|
export default () => (
|
|
11
11
|
<div className={flexStyles} id="read-only-list">
|
|
12
12
|
<Pill variant="readOnly">Read-only</Pill>
|
|
13
|
-
<Pill variant="readOnly" maxWidth={
|
|
13
|
+
<Pill variant="readOnly" maxWidth={150}>
|
|
14
14
|
Read-only but with super long text in case you want to read a paragraph in a Pill which we
|
|
15
15
|
don't recommend
|
|
16
16
|
</Pill>
|
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.1224-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,10 +45,10 @@
|
|
|
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.1224-next.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^14.0.0-alpha.1224-next.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^14.0.0-alpha.1224-next.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^14.0.0-alpha.1224-next.0",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.35",
|
|
53
53
|
"@workday/canvas-tokens-web": "3.0.0-alpha.12",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "55e63c9ec96d3719ef507660f01dd5e8e8b3363e"
|
|
65
65
|
}
|