@workday/canvas-kit-docs 11.0.0-alpha.778-next.0 → 11.0.0-alpha.781-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
CHANGED
|
@@ -37125,17 +37125,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
37125
37125
|
"name": "variant",
|
|
37126
37126
|
"required": false,
|
|
37127
37127
|
"type": {
|
|
37128
|
-
"kind": "
|
|
37129
|
-
"value":
|
|
37130
|
-
{
|
|
37131
|
-
"kind": "string",
|
|
37132
|
-
"value": "default"
|
|
37133
|
-
},
|
|
37134
|
-
{
|
|
37135
|
-
"kind": "string",
|
|
37136
|
-
"value": "inverse"
|
|
37137
|
-
}
|
|
37138
|
-
]
|
|
37128
|
+
"kind": "string",
|
|
37129
|
+
"value": "inverse"
|
|
37139
37130
|
},
|
|
37140
37131
|
"description": "Sets the variant of the Count Badge",
|
|
37141
37132
|
"declarations": [
|
|
@@ -37144,13 +37135,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
37144
37135
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/badge/lib/CountBadge.tsx"
|
|
37145
37136
|
}
|
|
37146
37137
|
],
|
|
37147
|
-
"tags": {
|
|
37148
|
-
"default": "'default'"
|
|
37149
|
-
},
|
|
37150
|
-
"defaultValue": {
|
|
37151
|
-
"kind": "string",
|
|
37152
|
-
"value": "default"
|
|
37153
|
-
}
|
|
37138
|
+
"tags": {}
|
|
37154
37139
|
},
|
|
37155
37140
|
{
|
|
37156
37141
|
"kind": "property",
|
|
@@ -229,7 +229,9 @@ instead.
|
|
|
229
229
|
|
|
230
230
|
**PR:** [#2472](https://github.com/Workday/canvas-kit/pull/2700)
|
|
231
231
|
|
|
232
|
-
As part of the refactor, we've removed the following exports that were primarily used to style the
|
|
232
|
+
As part of the refactor, we've removed the following exports that were primarily used to style the
|
|
233
|
+
component:
|
|
234
|
+
|
|
233
235
|
- `useStatusIndicatorModel`
|
|
234
236
|
- `useStatusIndicator`
|
|
235
237
|
- `statusIndicatorColors`
|
|
@@ -505,6 +507,19 @@ our new
|
|
|
505
507
|
The component API has not been changed, and it should behave identically as it did in previous
|
|
506
508
|
versions.
|
|
507
509
|
|
|
510
|
+
We also removed the `default` variant and consolidated those styles into the badge's base styles.
|
|
511
|
+
This will not be a breaking change for most users. However, if you have a `CountBadge` with an
|
|
512
|
+
explicit `default` variant, you'll see a TypeScript error. To resolve this, simply remove the
|
|
513
|
+
variant prop.
|
|
514
|
+
|
|
515
|
+
```tsx
|
|
516
|
+
// Before (v10)
|
|
517
|
+
<CountBadge variant="default" count={10} />
|
|
518
|
+
|
|
519
|
+
// After (v11)
|
|
520
|
+
<CountBadge count={10} />
|
|
521
|
+
```
|
|
522
|
+
|
|
508
523
|
### Form Field (Preview)
|
|
509
524
|
|
|
510
525
|
**PR:** [#2472](https://github.com/Workday/canvas-kit/pull/2472)
|
|
@@ -765,6 +780,7 @@ our
|
|
|
765
780
|
The component now supports the `cs` prop, but otherwise the API has not been changed.
|
|
766
781
|
|
|
767
782
|
> #### Visual Breaking Change
|
|
783
|
+
>
|
|
768
784
|
> Opacity applied to the whole container has been removed for transparent variant and replace by
|
|
769
785
|
> translucent color. By this change opacity has been changed from `0.85` to `0.84`, so there is
|
|
770
786
|
> possibility of the small visual change.
|
|
@@ -4,16 +4,19 @@ import {createStyles} from '@workday/canvas-kit-styling';
|
|
|
4
4
|
import {base, system} from '@workday/canvas-tokens-web';
|
|
5
5
|
|
|
6
6
|
const containerStyles = createStyles({
|
|
7
|
+
boxSizing: 'border-box',
|
|
7
8
|
display: 'flex',
|
|
8
9
|
flexDirection: 'column',
|
|
9
10
|
});
|
|
10
11
|
|
|
11
12
|
const defaultBackground = createStyles({
|
|
13
|
+
boxSizing: 'border-box',
|
|
12
14
|
backgroundColor: base.frenchVanilla100,
|
|
13
15
|
padding: system.space.x4,
|
|
14
16
|
});
|
|
15
17
|
|
|
16
18
|
const inverseBackground = createStyles({
|
|
19
|
+
boxSizing: 'border-box',
|
|
17
20
|
backgroundColor: base.blueberry400,
|
|
18
21
|
padding: system.space.x4,
|
|
19
22
|
});
|
|
@@ -6,12 +6,14 @@ import {createStyles, cssVar} from '@workday/canvas-kit-styling';
|
|
|
6
6
|
import {base, system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const columnStyles = createStyles({
|
|
9
|
+
boxSizing: 'border-box',
|
|
9
10
|
display: 'flex',
|
|
10
11
|
flexDirection: 'column',
|
|
11
12
|
gap: system.space.x4,
|
|
12
13
|
});
|
|
13
14
|
|
|
14
15
|
const controls = createStyles({
|
|
16
|
+
boxSizing: 'border-box',
|
|
15
17
|
borderBottom: `solid 1px ${cssVar(base.soap400)}`,
|
|
16
18
|
display: 'flex',
|
|
17
19
|
gap: system.space.x1,
|
|
@@ -19,11 +21,13 @@ const controls = createStyles({
|
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
const defaultBackground = createStyles({
|
|
24
|
+
boxSizing: 'border-box',
|
|
22
25
|
backgroundColor: base.frenchVanilla100,
|
|
23
26
|
padding: system.space.x4,
|
|
24
27
|
});
|
|
25
28
|
|
|
26
29
|
const inverseBackground = createStyles({
|
|
30
|
+
boxSizing: 'border-box',
|
|
27
31
|
backgroundColor: base.blueberry400,
|
|
28
32
|
padding: system.space.x4,
|
|
29
33
|
});
|
|
@@ -11,12 +11,14 @@ function negate(value: string, fallback?: string) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const container = createStyles({
|
|
14
|
+
boxSizing: 'border-box',
|
|
14
15
|
display: 'flex',
|
|
15
16
|
flexDirection: 'column',
|
|
16
17
|
gap: system.space.x4,
|
|
17
18
|
});
|
|
18
19
|
|
|
19
20
|
const controls = createStyles({
|
|
21
|
+
boxSizing: 'border-box',
|
|
20
22
|
borderBottom: `solid 1px ${cssVar(base.soap400)}`,
|
|
21
23
|
display: 'flex',
|
|
22
24
|
gap: system.space.x1,
|
|
@@ -24,10 +26,12 @@ const controls = createStyles({
|
|
|
24
26
|
});
|
|
25
27
|
|
|
26
28
|
const notificationContainerStyles = createStyles({
|
|
29
|
+
boxSizing: 'border-box',
|
|
27
30
|
position: 'relative',
|
|
28
31
|
});
|
|
29
32
|
|
|
30
33
|
const countBadgeStyles = createStyles({
|
|
34
|
+
boxSizing: 'border-box',
|
|
31
35
|
position: 'absolute',
|
|
32
36
|
top: negate(system.space.x4),
|
|
33
37
|
insetInlineEnd: negate(system.space.x1),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.781-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",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@storybook/csf": "0.0.1",
|
|
47
|
-
"@workday/canvas-kit-labs-react": "^11.0.0-alpha.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-react": "^11.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-styling": "^11.0.0-alpha.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^11.0.0-alpha.781-next.0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.781-next.0",
|
|
49
|
+
"@workday/canvas-kit-react": "^11.0.0-alpha.781-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^11.0.0-alpha.781-next.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^1.3.1",
|
|
53
53
|
"markdown-to-jsx": "^6.10.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"mkdirp": "^1.0.3",
|
|
60
60
|
"typescript": "4.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d6f6fb3561eb04c34f1a6b43531f4c717140618d"
|
|
63
63
|
}
|