@workday/canvas-kit-preview-react 7.0.0-alpha.0-next.1 → 7.0.0-alpha.0-next.3

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.
Files changed (89) hide show
  1. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.tsx +2 -5
  2. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.tsx +5 -6
  3. package/breadcrumbs/lib/Breadcrumbs/List/ListItem.tsx +3 -9
  4. package/breadcrumbs/lib/Breadcrumbs/List/index.tsx +22 -20
  5. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  6. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +5 -5
  7. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  8. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  9. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +11 -7
  10. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  11. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  12. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +7 -7
  13. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  14. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  15. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +12 -16
  16. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  17. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  18. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  19. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
  20. package/dist/commonjs/form-field/lib/FormFieldHint.js +6 -3
  21. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  22. package/dist/commonjs/form-field/lib/FormFieldLabel.js +14 -13
  23. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +2 -1
  24. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  25. package/dist/commonjs/side-panel/lib/SidePanel.js +8 -21
  26. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  27. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  28. package/dist/commonjs/text-area/lib/TextAreaField.js +2 -1
  29. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  30. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  31. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  32. package/dist/commonjs/text-input/lib/TextInputField.js +2 -1
  33. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  34. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +1 -1
  35. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +2 -5
  36. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  37. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +1 -1
  38. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +8 -7
  39. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  40. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +1 -1
  41. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +4 -7
  42. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  43. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  44. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +9 -16
  45. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  46. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +1 -1
  47. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  48. package/dist/es6/form-field/lib/FormField.js +1 -1
  49. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  50. package/dist/es6/form-field/lib/FormFieldHint.js +4 -4
  51. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  52. package/dist/es6/form-field/lib/FormFieldLabel.js +12 -14
  53. package/dist/es6/side-panel/lib/SidePanel.d.ts +2 -1
  54. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  55. package/dist/es6/side-panel/lib/SidePanel.js +9 -22
  56. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  57. package/dist/es6/text-area/lib/TextArea.js +1 -1
  58. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  59. package/dist/es6/text-area/lib/TextAreaField.js +3 -2
  60. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +1 -1
  61. package/dist/es6/text-area/lib/hooks/useTextAreaModel.js +1 -1
  62. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  63. package/dist/es6/text-input/lib/TextInput.js +1 -1
  64. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  65. package/dist/es6/text-input/lib/TextInputField.js +3 -2
  66. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  67. package/dist/es6/text-input/lib/hooks/useTextInputModel.js +1 -1
  68. package/form-field/lib/FormField.tsx +7 -5
  69. package/form-field/lib/FormFieldHint.tsx +15 -10
  70. package/form-field/lib/FormFieldLabel.tsx +18 -28
  71. package/form-field/lib/hooks/useFormFieldOrientation.tsx +6 -6
  72. package/package.json +4 -4
  73. package/side-panel/lib/SidePanel.tsx +16 -29
  74. package/text-area/lib/TextArea.tsx +8 -4
  75. package/text-area/lib/TextAreaField.tsx +11 -4
  76. package/text-area/lib/hooks/useTextAreaModel.ts +1 -4
  77. package/text-input/lib/TextInput.tsx +8 -4
  78. package/text-input/lib/TextInputField.tsx +10 -4
  79. package/text-input/lib/hooks/useTextInputModel.ts +1 -4
  80. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  81. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  82. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  83. package/ts3.5/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  84. package/ts3.5/dist/commonjs/side-panel/lib/SidePanel.d.ts +2 -1
  85. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -1
  86. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -1
  87. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +1 -2
  88. package/ts3.5/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +1 -2
  89. package/ts3.5/dist/es6/side-panel/lib/SidePanel.d.ts +2 -1
@@ -1,5 +1,3 @@
1
- /** @jsx jsx */
2
- import {jsx} from '@emotion/core';
3
1
  import React from 'react';
4
2
 
5
3
  import {
@@ -7,8 +5,10 @@ import {
7
5
  ExtractProps,
8
6
  useModelContext,
9
7
  useTheme,
8
+ styled,
9
+ StyledType,
10
10
  } from '@workday/canvas-kit-react/common';
11
- import {ComponentStyles} from '@workday/canvas-kit-labs-react/common';
11
+ import {Box} from '@workday/canvas-kit-labs-react/common';
12
12
  import {type} from '@workday/canvas-kit-react/tokens';
13
13
  import {HStack, StackSpacing} from '@workday/canvas-kit-labs-react/layout';
14
14
 
@@ -28,41 +28,31 @@ export interface FormFieldLabelProps extends Omit<ExtractProps<typeof HStack, ne
28
28
  spacing?: StackSpacing;
29
29
  }
30
30
 
31
- const styles: ComponentStyles = {
32
- label: {
33
- ...type.levels.subtext.large,
34
- fontWeight: type.properties.fontWeights.medium,
35
- },
36
- asterisk: {
37
- fontSize: type.properties.fontSizes[16],
38
- fontWeight: type.properties.fontWeights.regular,
39
- textDecoration: 'unset',
40
- },
41
- };
31
+ const StyledFormFieldLabel = styled('span')({
32
+ ...type.levels.subtext.large,
33
+ fontWeight: type.properties.fontWeights.medium,
34
+ });
35
+
36
+ const StyledAsterisk = styled(Box)<StyledType>({
37
+ fontSize: type.properties.fontSizes[20],
38
+ fontWeight: type.properties.fontWeights.regular,
39
+ textDecoration: 'unset',
40
+ });
42
41
 
43
42
  export const FormFieldLabel = createComponent('label')({
44
43
  displayName: 'FormField.Label',
45
- Component: ({spacing='xxxs', model, children, ...elemProps}: FormFieldLabelProps, ref) => {
44
+ Component: ({spacing = 'xxxs', model, children, ...elemProps}: FormFieldLabelProps, ref) => {
46
45
  const localModel = useModelContext(FormFieldModelContext, model);
47
46
  const props = useFormFieldLabel(localModel, elemProps, ref);
48
47
  const theme = useTheme();
49
48
 
50
49
  return (
51
- <HStack
52
- as="label"
53
- spacing={spacing}
54
- css={styles.label}
55
- minWidth='180px'
56
- {...props}
57
- >
58
- <span>{children}</span>
50
+ <HStack as="label" spacing={spacing} minWidth="180px" {...props}>
51
+ <StyledFormFieldLabel>{children}</StyledFormFieldLabel>
59
52
  {localModel.state.isRequired && (
60
- <span
61
- css={[styles.asterisk, {color: theme.canvas.palette.error.main}]}
62
- aria-hidden="true"
63
- >
53
+ <StyledAsterisk as="span" color={theme.canvas.palette.error.main} aria-hidden="true">
64
54
  *
65
- </span>
55
+ </StyledAsterisk>
66
56
  )}
67
57
  </HStack>
68
58
  );
@@ -6,23 +6,23 @@ import {space} from '@workday/canvas-kit-react/tokens';
6
6
  */
7
7
  export const useFormFieldOrientation = (orientation: 'horizontal' | 'vertical') => {
8
8
  let layoutProps: {
9
- flexDirection: StackProps['flexDirection'],
10
- alignItems: StackProps['alignItems'],
11
- spacing: StackSpacing
12
- }
9
+ flexDirection: StackProps['flexDirection'];
10
+ alignItems: StackProps['alignItems'];
11
+ spacing: StackSpacing;
12
+ };
13
13
 
14
14
  if (orientation === 'horizontal') {
15
15
  layoutProps = {
16
16
  flexDirection: 'row',
17
17
  spacing: space.l,
18
18
  alignItems: 'center',
19
- }
19
+ };
20
20
  } else {
21
21
  layoutProps = {
22
22
  flexDirection: 'column',
23
23
  spacing: space.xxxs,
24
24
  alignItems: 'flex-start',
25
- }
25
+ };
26
26
  }
27
27
 
28
28
  return layoutProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-preview-react",
3
- "version": "7.0.0-alpha.0-next.1+57471fa0",
3
+ "version": "7.0.0-alpha.0-next.3+14a81c7e",
4
4
  "description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -54,15 +54,15 @@
54
54
  "dependencies": {
55
55
  "@emotion/core": "^10.0.28",
56
56
  "@emotion/styled": "^10.0.27",
57
- "@workday/canvas-kit-react": "^7.0.0-alpha.0-next.1+57471fa0",
57
+ "@workday/canvas-kit-react": "^7.0.0-alpha.0-next.3+14a81c7e",
58
58
  "@workday/canvas-system-icons-web": "1.0.41",
59
59
  "@workday/design-assets-types": "^0.2.4"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@workday/canvas-accent-icons-web": "^1.0.0",
63
- "@workday/canvas-kit-labs-react": "^7.0.0-alpha.0-next.1+57471fa0",
63
+ "@workday/canvas-kit-labs-react": "^7.0.0-alpha.0-next.3+14a81c7e",
64
64
  "formik": "^2.2.9",
65
65
  "yup": "^0.31.1"
66
66
  },
67
- "gitHead": "57471fa0c73534126f9ef9a18203d49c5834d21e"
67
+ "gitHead": "14a81c7ef3deb9efaf67fa3ec9cc2d2a3161b00b"
68
68
  }
@@ -1,11 +1,13 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
3
  import * as React from 'react';
3
- import {styled, useIsRTL} from '@workday/canvas-kit-react/common';
4
- import {css, CSSObject, jsx, keyframes} from '@emotion/core';
4
+ import {styled, useIsRTL, StyledType} from '@workday/canvas-kit-react/common';
5
+ import {css, jsx, keyframes} from '@emotion/core';
5
6
  import {IconButton, IconButtonProps} from '@workday/canvas-kit-react/button';
6
- import {space, colors, depth} from '@workday/canvas-kit-react/tokens';
7
+ import {space, colors} from '@workday/canvas-kit-react/tokens';
7
8
  import {transformationImportIcon} from '@workday/canvas-system-icons-web';
8
9
  import {Tooltip} from '@workday/canvas-kit-react/tooltip';
10
+ import {Box} from '@workday/canvas-kit-labs-react/common';
9
11
 
10
12
  export type SidePanelVariant = 'standard' | 'alternate';
11
13
  export type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
@@ -87,17 +89,7 @@ const createKeyframes = (from: number | string, to: number | string) => {
87
89
  `;
88
90
  };
89
91
 
90
- const containerVariantStyle: Record<SidePanelVariant, CSSObject> = {
91
- alternate: {
92
- backgroundColor: colors.frenchVanilla100,
93
- ...depth[3],
94
- },
95
- standard: {
96
- backgroundColor: colors.soap100,
97
- },
98
- };
99
-
100
- const Panel = styled('section')<Pick<SidePanelProps, 'as'>>({
92
+ const StyledPanel = styled(Box)<StyledType & Pick<SidePanelProps, 'as'>>({
101
93
  overflow: 'hidden',
102
94
  position: 'relative',
103
95
  boxSizing: 'border-box',
@@ -120,7 +112,7 @@ const SidePanel = ({
120
112
  onExpandedChange,
121
113
  onStateTransition,
122
114
  origin = 'left',
123
- variant = 'standard',
115
+ // variant = 'standard',
124
116
  touched,
125
117
  ...elemProps
126
118
  }: SidePanelProps) => {
@@ -177,20 +169,15 @@ const SidePanel = ({
177
169
  };
178
170
 
179
171
  return (
180
- <Panel
172
+ <StyledPanel
181
173
  as={as}
182
- css={[
183
- {
184
- width: expanded ? expandedWidth : collapsedWidth,
185
- maxWidth: expanded ? expandedWidth : collapsedWidth,
186
- // mounted.current will be false on the first render, thus you won't get an unwanted animation here
187
- // Will animate again if you force a re-render (like in Storybook)
188
- animation: touched
189
- ? `${expanded ? motion.expand : motion.collapse} 200ms ease-out`
190
- : undefined,
191
- },
192
- containerVariantStyle[variant],
193
- ]}
174
+ width={expanded ? expandedWidth : collapsedWidth}
175
+ maxWidth={expanded ? expandedWidth : collapsedWidth}
176
+ backgroundColor={elemProps.variant === 'alternate' ? colors.frenchVanilla100 : colors.soap100}
177
+ depth={elemProps.variant === 'alternate' ? 3 : undefined}
178
+ animation={
179
+ touched ? `${expanded ? motion.expand : motion.collapse} 200ms ease-out` : undefined
180
+ }
194
181
  onAnimationEnd={handleAnimationEnd}
195
182
  onAnimationStart={handleAnimationStart}
196
183
  {...elemProps}
@@ -203,7 +190,7 @@ const SidePanel = ({
203
190
  >
204
191
  {children}
205
192
  </SidePanelContext.Provider>
206
- </Panel>
193
+ </StyledPanel>
207
194
  );
208
195
  };
209
196
 
@@ -1,10 +1,14 @@
1
1
  import React from 'react';
2
2
 
3
3
  import {createComponent, ExtractProps, useDefaultModel} from '@workday/canvas-kit-react/common';
4
- import {FormField, FormFieldModelContext, useFormFieldOrientation} from '@workday/canvas-kit-preview-react/form-field';
4
+ import {
5
+ FormField,
6
+ FormFieldModelContext,
7
+ useFormFieldOrientation,
8
+ } from '@workday/canvas-kit-preview-react/form-field';
5
9
  import {Stack} from '@workday/canvas-kit-labs-react/layout';
6
10
 
7
- import { TextAreaModel, useTextAreaModel } from './hooks';
11
+ import {TextAreaModel, useTextAreaModel} from './hooks';
8
12
  import {TextAreaField} from './TextAreaField';
9
13
  import {TextAreaLabel} from './TextAreaLabel';
10
14
  import {TextAreaHint} from './TextAreaHint';
@@ -22,10 +26,10 @@ export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
22
26
  export const TextArea = createComponent()({
23
27
  displayName: 'TextArea',
24
28
  Component: ({children, model, orientation, ...props}: TextAreaProps, ref) => {
25
- const {hasError, id, isRequired, ...elemProps} = props
29
+ const {hasError, id, isRequired, ...elemProps} = props;
26
30
  const value = useDefaultModel(model, {hasError, id, isRequired}, useTextAreaModel);
27
31
 
28
- const layoutProps = useFormFieldOrientation(orientation)
32
+ const layoutProps = useFormFieldOrientation(orientation);
29
33
 
30
34
  return (
31
35
  <TextAreaModelContext.Provider value={value}>
@@ -1,3 +1,4 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
3
  import {jsx} from '@emotion/core';
3
4
 
@@ -8,12 +9,17 @@ import {
8
9
  spaceNumbers,
9
10
  type,
10
11
  } from '@workday/canvas-kit-react/tokens';
11
- import {createComponent, ExtractProps, useModelContext, useTheme} from '@workday/canvas-kit-react/common';
12
+ import {
13
+ createComponent,
14
+ ExtractProps,
15
+ useModelContext,
16
+ useTheme,
17
+ } from '@workday/canvas-kit-react/common';
12
18
  import {useThemedRing} from '@workday/canvas-kit-labs-react/common';
13
19
  import {FormField} from '@workday/canvas-kit-preview-react/form-field';
14
20
 
15
21
  import {TextAreaModelContext} from './TextArea';
16
- import { TextAreaModel } from './hooks';
22
+ import {TextAreaModel} from './hooks';
17
23
 
18
24
  export interface TextAreaFieldProps extends ExtractProps<typeof FormField.Input, never> {
19
25
  model?: TextAreaModel;
@@ -66,9 +72,10 @@ export const TextAreaField = createComponent('textarea')({
66
72
  <FormField.Input
67
73
  as="textarea"
68
74
  ref={ref}
69
- css={[baseStyles, focusStyles]} {...elemProps}
75
+ css={[baseStyles, focusStyles]}
76
+ {...elemProps}
70
77
  border={`1px solid ${inputColors.border}`}
71
- display='block'
78
+ display="block"
72
79
  backgroundColor={inputColors.background}
73
80
  borderRadius={borderRadius.m}
74
81
  minHeight={64}
@@ -1,7 +1,4 @@
1
- import {
2
- useFormFieldModel,
3
- FormFieldModel,
4
- } from '@workday/canvas-kit-preview-react/form-field';
1
+ import {useFormFieldModel, FormFieldModel} from '@workday/canvas-kit-preview-react/form-field';
5
2
 
6
3
  export const useTextAreaModel = useFormFieldModel;
7
4
 
@@ -1,7 +1,11 @@
1
1
  import React from 'react';
2
2
 
3
3
  import {createComponent, ExtractProps, useDefaultModel} from '@workday/canvas-kit-react/common';
4
- import {FormField, FormFieldModelContext, useFormFieldOrientation} from '@workday/canvas-kit-preview-react/form-field';
4
+ import {
5
+ FormField,
6
+ FormFieldModelContext,
7
+ useFormFieldOrientation,
8
+ } from '@workday/canvas-kit-preview-react/form-field';
5
9
  import {Stack} from '@workday/canvas-kit-labs-react/layout';
6
10
 
7
11
  import {useTextInputModel, TextInputModel} from './hooks';
@@ -11,7 +15,7 @@ import {TextInputHint} from './TextInputHint';
11
15
 
12
16
  export const TextInputModelContext = FormFieldModelContext;
13
17
 
14
- export interface TextInputProps extends ExtractProps<typeof FormField, never> {
18
+ export interface TextInputProps extends ExtractProps<typeof FormField, never> {
15
19
  model?: TextInputModel;
16
20
  /**
17
21
  * Children of the Text Input. Should contain a `<TextInput.Field>`, a `<TextInput.Label>` and an optional `<TextInput.Hint>`
@@ -22,10 +26,10 @@ export interface TextInputProps extends ExtractProps<typeof FormField, never> {
22
26
  export const TextInput = createComponent()({
23
27
  displayName: 'TextInput',
24
28
  Component: ({children, model, orientation, ...props}: TextInputProps, ref) => {
25
- const {hasError, id, isRequired, ...elemProps} = props
29
+ const {hasError, id, isRequired, ...elemProps} = props;
26
30
  const value = useDefaultModel(model, {hasError, id, isRequired}, useTextInputModel);
27
31
 
28
- const layoutProps = useFormFieldOrientation(orientation)
32
+ const layoutProps = useFormFieldOrientation(orientation);
29
33
 
30
34
  return (
31
35
  <TextInputModelContext.Provider value={value}>
@@ -1,3 +1,4 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
3
  import {jsx} from '@emotion/core';
3
4
 
@@ -8,7 +9,12 @@ import {
8
9
  space,
9
10
  type,
10
11
  } from '@workday/canvas-kit-react/tokens';
11
- import {createComponent, ExtractProps, useModelContext, useTheme} from '@workday/canvas-kit-react/common';
12
+ import {
13
+ createComponent,
14
+ ExtractProps,
15
+ useModelContext,
16
+ useTheme,
17
+ } from '@workday/canvas-kit-react/common';
12
18
  import {useThemedRing} from '@workday/canvas-kit-labs-react/common';
13
19
  import {FormField} from '@workday/canvas-kit-preview-react/form-field';
14
20
 
@@ -68,9 +74,9 @@ export const TextInputField = createComponent('input')({
68
74
  css={[baseStyles, focusStyles]}
69
75
  padding={space.xxs}
70
76
  margin={0}
71
- display='block'
72
- height='40px'
73
- minWidth='280px'
77
+ display="block"
78
+ height="40px"
79
+ minWidth="280px"
74
80
  border={`1px solid ${inputColors.border}`}
75
81
  backgroundColor={inputColors.background}
76
82
  borderRadius={borderRadius.m}
@@ -1,7 +1,4 @@
1
- import {
2
- useFormFieldModel,
3
- FormFieldModel,
4
- } from '@workday/canvas-kit-preview-react/form-field';
1
+ import {useFormFieldModel, FormFieldModel} from '@workday/canvas-kit-preview-react/form-field';
5
2
 
6
3
  export const useTextInputModel = useFormFieldModel;
7
4
 
@@ -1,4 +1,3 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  import { Breadcrumb } from '../types';
4
3
  export interface DropdownMenuProps {
@@ -1,4 +1,3 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  export declare type ListItemProps = React.HTMLAttributes<HTMLLIElement>;
4
3
  export declare const BreadcrumbsListItem: ({ children, ...props }: ListItemProps) => JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  export declare type BreadcrumbsListProps = React.HTMLAttributes<HTMLUListElement>;
4
- export declare const BreadcrumbsList: React.ForwardRefExoticComponent<BreadcrumbsListProps & React.RefAttributes<HTMLUListElement>>;
3
+ export declare const BreadcrumbsList: import("@workday/canvas-kit-react/common").ElementComponent<"ul", BreadcrumbsListProps>;
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,7 @@
1
- /// <reference types="@emotion/core" />
2
1
  export declare const Breadcrumbs: {
3
2
  Nav: ({ "aria-label": ariaLabel, ...elemProps }: import("./Nav").BreadcrumbsNavProps) => JSX.Element;
4
3
  CollapsibleList: ({ children, buttonIcon, buttonAriaLabel, maxWidth, ...props }: import("./List/Collapsible").CollapsibleListProps) => JSX.Element;
5
- List: import("react").ForwardRefExoticComponent<import("./List").BreadcrumbsListProps & import("react").RefAttributes<HTMLUListElement>>;
4
+ List: import("@workday/canvas-kit-react/common").ElementComponent<"ul", import("./List").BreadcrumbsListProps>;
6
5
  ListItem: ({ children, ...props }: import("./List/ListItem").ListItemProps) => JSX.Element;
7
6
  Link: ({ maxWidth, onAction, onClick, href, children, ...props }: import("./List/Link").BreadcrumbLinkProps) => JSX.Element;
8
7
  CurrentItem: ({ children, maxWidth, ...elemProps }: import("./List/CurrentItem").CurrentItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
3
  import * as React from 'react';
3
4
  import { IconButtonProps } from '@workday/canvas-kit-react/button';
@@ -65,7 +66,7 @@ export declare const SidePanelContext: React.Context<{
65
66
  origin: string;
66
67
  }>;
67
68
  declare const SidePanel: {
68
- ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, variant, touched, ...elemProps }: SidePanelProps): JSX.Element;
69
+ ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, touched, ...elemProps }: SidePanelProps): JSX.Element;
69
70
  ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: IconButtonProps & {
70
71
  /**
71
72
  * The tooltip text to expand the side panel
@@ -1,4 +1,3 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  import { Breadcrumb } from '../types';
4
3
  export interface DropdownMenuProps {
@@ -1,4 +1,3 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  export declare type ListItemProps = React.HTMLAttributes<HTMLLIElement>;
4
3
  export declare const BreadcrumbsListItem: ({ children, ...props }: ListItemProps) => JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  export declare type BreadcrumbsListProps = React.HTMLAttributes<HTMLUListElement>;
4
- export declare const BreadcrumbsList: React.ForwardRefExoticComponent<BreadcrumbsListProps & React.RefAttributes<HTMLUListElement>>;
3
+ export declare const BreadcrumbsList: import("@workday/canvas-kit-react/common").ElementComponent<"ul", BreadcrumbsListProps>;
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,7 @@
1
- /// <reference types="@emotion/core" />
2
1
  export declare const Breadcrumbs: {
3
2
  Nav: ({ "aria-label": ariaLabel, ...elemProps }: import("./Nav").BreadcrumbsNavProps) => JSX.Element;
4
3
  CollapsibleList: ({ children, buttonIcon, buttonAriaLabel, maxWidth, ...props }: import("./List/Collapsible").CollapsibleListProps) => JSX.Element;
5
- List: import("react").ForwardRefExoticComponent<import("./List").BreadcrumbsListProps & import("react").RefAttributes<HTMLUListElement>>;
4
+ List: import("@workday/canvas-kit-react/common").ElementComponent<"ul", import("./List").BreadcrumbsListProps>;
6
5
  ListItem: ({ children, ...props }: import("./List/ListItem").ListItemProps) => JSX.Element;
7
6
  Link: ({ maxWidth, onAction, onClick, href, children, ...props }: import("./List/Link").BreadcrumbLinkProps) => JSX.Element;
8
7
  CurrentItem: ({ children, maxWidth, ...elemProps }: import("./List/CurrentItem").CurrentItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx jsx */
2
3
  import * as React from 'react';
3
4
  import { IconButtonProps } from '@workday/canvas-kit-react/button';
@@ -65,7 +66,7 @@ export declare const SidePanelContext: React.Context<{
65
66
  origin: string;
66
67
  }>;
67
68
  declare const SidePanel: {
68
- ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, variant, touched, ...elemProps }: SidePanelProps): JSX.Element;
69
+ ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, touched, ...elemProps }: SidePanelProps): JSX.Element;
69
70
  ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: IconButtonProps & {
70
71
  /**
71
72
  * The tooltip text to expand the side panel