@workday/canvas-kit-docs 14.0.0-alpha.1168-next.0 → 14.0.0-alpha.1169-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.
@@ -194018,6 +194018,57 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
194018
194018
  }
194019
194019
  ],
194020
194020
  "tags": {}
194021
+ },
194022
+ {
194023
+ "kind": "property",
194024
+ "name": "alertInner",
194025
+ "required": true,
194026
+ "type": {
194027
+ "kind": "primitive",
194028
+ "value": "string"
194029
+ },
194030
+ "description": "",
194031
+ "declarations": [
194032
+ {
194033
+ "name": "alertInner",
194034
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/types.ts"
194035
+ }
194036
+ ],
194037
+ "tags": {}
194038
+ },
194039
+ {
194040
+ "kind": "property",
194041
+ "name": "alertOuter",
194042
+ "required": true,
194043
+ "type": {
194044
+ "kind": "primitive",
194045
+ "value": "string"
194046
+ },
194047
+ "description": "",
194048
+ "declarations": [
194049
+ {
194050
+ "name": "alertOuter",
194051
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/types.ts"
194052
+ }
194053
+ ],
194054
+ "tags": {}
194055
+ },
194056
+ {
194057
+ "kind": "property",
194058
+ "name": "errorInner",
194059
+ "required": true,
194060
+ "type": {
194061
+ "kind": "primitive",
194062
+ "value": "string"
194063
+ },
194064
+ "description": "",
194065
+ "declarations": [
194066
+ {
194067
+ "name": "errorInner",
194068
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/types.ts"
194069
+ }
194070
+ ],
194071
+ "tags": {}
194021
194072
  }
194022
194073
  ]
194023
194074
  },
@@ -18,6 +18,7 @@ import Placeholder from './examples/Placeholder';
18
18
  import RefForwarding from './examples/RefForwarding';
19
19
  import Required from './examples/Required';
20
20
  import ResizeConstraints from './examples/ResizeConstraints';
21
+ import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';
21
22
 
22
23
 
23
24
  # Canvas Kit Text Area <StorybookStatusIndicator type="deprecated" />
@@ -1,3 +1,4 @@
1
+ import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';
1
2
  import {
2
3
  ExampleCodeBlock,
3
4
  StorybookStatusIndicator,
@@ -5,18 +5,20 @@ import {
5
5
  PartialEmotionCanvasTheme,
6
6
  useThemedRing,
7
7
  } from '@workday/canvas-kit-react/common';
8
- import {colors, space} from '@workday/canvas-kit-react/tokens';
8
+ import {base, system} from '@workday/canvas-tokens-web';
9
+ import {cssVar} from '@workday/canvas-kit-styling';
9
10
 
10
11
  export default () => {
11
12
  const theme: PartialEmotionCanvasTheme = {
12
13
  canvas: {
13
14
  palette: {
14
- common: {
15
- focusOutline: colors.grapeSoda300,
16
- },
17
15
  alert: {
18
- main: colors.kiwi200,
19
- darkest: colors.kiwi600,
16
+ lightest: cssVar(system.color.static.green.softer),
17
+ },
18
+ common: {
19
+ focusOutline: cssVar(base.purple500),
20
+ alertInner: cssVar(base.green400),
21
+ alertOuter: cssVar(base.green500),
20
22
  },
21
23
  },
22
24
  },
@@ -38,10 +40,12 @@ const AlertInput = () => {
38
40
  const alertStyles = useThemedRing('alert');
39
41
 
40
42
  return (
41
- <TextInput orientation="vertical">
43
+ <TextInput error="alert" orientation="vertical">
42
44
  <TextInput.Label>Email</TextInput.Label>
43
45
  <TextInput.Field cs={alertStyles} onChange={handleChange} value={value} />
44
- <TextInput.Hint paddingTop={space.xxs}>Please enter a valid email.</TextInput.Hint>
46
+ <TextInput.Hint cs={{paddingTop: cssVar(system.space.x2)}}>
47
+ Please enter a valid email.
48
+ </TextInput.Hint>
45
49
  </TextInput>
46
50
  );
47
51
  };
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import {TextInput} from '@workday/canvas-kit-preview-react/text-input';
3
3
  import {CanvasProvider, PartialEmotionCanvasTheme} from '@workday/canvas-kit-react/common';
4
- import {colors, space} from '@workday/canvas-kit-react/tokens';
4
+ import {system} from '@workday/canvas-tokens-web';
5
+ import {cssVar} from '@workday/canvas-kit-styling';
5
6
 
6
7
  export default () => {
7
8
  const [value, setValue] = React.useState('');
@@ -13,11 +14,12 @@ export default () => {
13
14
  const theme: PartialEmotionCanvasTheme = {
14
15
  canvas: {
15
16
  palette: {
16
- common: {
17
- focusOutline: colors.grapeSoda300,
18
- },
19
17
  error: {
20
- main: colors.islandPunch400,
18
+ lightest: cssVar(system.color.static.amber.softer),
19
+ },
20
+ common: {
21
+ focusOutline: cssVar(system.color.static.green.default),
22
+ errorInner: cssVar(system.color.static.amber.stronger),
21
23
  },
22
24
  },
23
25
  },
@@ -28,7 +30,9 @@ export default () => {
28
30
  <TextInput error={!value ? 'error' : undefined} isRequired={true} orientation="vertical">
29
31
  <TextInput.Label>Email</TextInput.Label>
30
32
  <TextInput.Field onChange={handleChange} value={value} />
31
- <TextInput.Hint paddingTop={space.xxs}>{!value && 'Please enter an email.'}</TextInput.Hint>
33
+ <TextInput.Hint cs={{paddingTop: cssVar(system.space.x2)}}>
34
+ {!value && 'Please enter an email.'}
35
+ </TextInput.Hint>
32
36
  </TextInput>
33
37
  </CanvasProvider>
34
38
  );
@@ -4,6 +4,7 @@ import {
4
4
  SymbolDoc,
5
5
  Specifications,
6
6
  } from '@workday/canvas-kit-docs';
7
+ import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';
7
8
  import Alert from './examples/Alert';
8
9
  import Basic from './examples/Basic';
9
10
  import Disabled from './examples/Disabled';
@@ -17,6 +18,10 @@ import Required from './examples/Required';
17
18
 
18
19
  # Canvas Kit Radio
19
20
 
21
+ <StatusIndicator variant="red">
22
+ <StatusIndicator.Label>Deprecated</StatusIndicator.Label>
23
+ </StatusIndicator>
24
+
20
25
  Radio Buttons allow a user to select one value from a predefined list of 7 or fewer options.
21
26
 
22
27
  [> Workday Design Reference](https://design.workday.com/components/inputs/radio-buttons)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "14.0.0-alpha.1168-next.0",
3
+ "version": "14.0.0-alpha.1169-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.1168-next.0",
49
- "@workday/canvas-kit-preview-react": "^14.0.0-alpha.1168-next.0",
50
- "@workday/canvas-kit-react": "^14.0.0-alpha.1168-next.0",
51
- "@workday/canvas-kit-styling": "^14.0.0-alpha.1168-next.0",
48
+ "@workday/canvas-kit-labs-react": "^14.0.0-alpha.1169-next.0",
49
+ "@workday/canvas-kit-preview-react": "^14.0.0-alpha.1169-next.0",
50
+ "@workday/canvas-kit-react": "^14.0.0-alpha.1169-next.0",
51
+ "@workday/canvas-kit-styling": "^14.0.0-alpha.1169-next.0",
52
52
  "@workday/canvas-system-icons-web": "^3.0.35",
53
53
  "@workday/canvas-tokens-web": "3.0.0-alpha.5",
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": "c7f43dc689c7377f48786bc8d99b0bace1431c86"
64
+ "gitHead": "87a80034e7358532f3cb787312f2aba55497c352"
65
65
  }