@workday/canvas-kit-preview-react 14.0.0-alpha.1203-next.0 → 14.0.0-alpha.1210-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/commonjs/color-picker/lib/ColorPicker.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/ColorReset.js +1 -1
- package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +1 -1
- package/dist/commonjs/divider/lib/Divider.js +1 -1
- package/dist/commonjs/information-highlight/lib/InformationHighlight.d.ts +4 -4
- package/dist/commonjs/information-highlight/lib/InformationHighlight.js +7 -7
- package/dist/commonjs/information-highlight/lib/hooks/useInformationHighlightModel.d.ts +5 -5
- package/dist/commonjs/information-highlight/lib/parts/Body.js +1 -1
- package/dist/commonjs/information-highlight/lib/parts/Heading.js +1 -1
- package/dist/commonjs/information-highlight/lib/parts/Icon.d.ts +1 -1
- package/dist/commonjs/information-highlight/lib/parts/Link.js +1 -1
- package/dist/commonjs/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/commonjs/multi-select/lib/MultiSelectInput.js +3 -3
- package/dist/commonjs/pill/lib/Pill.js +3 -3
- package/dist/commonjs/pill/lib/PillAvatar.js +1 -1
- package/dist/commonjs/pill/lib/PillCount.js +1 -1
- package/dist/commonjs/pill/lib/PillIcon.js +1 -1
- package/dist/commonjs/pill/lib/PillIconButton.js +1 -1
- package/dist/commonjs/pill/lib/PillLabel.js +1 -1
- package/dist/commonjs/radio/lib/RadioGroup.js +3 -3
- package/dist/commonjs/radio/lib/RadioLabel.js +1 -1
- package/dist/commonjs/radio/lib/RadioText.js +4 -4
- package/dist/commonjs/radio/lib/StyledRadioButton.js +5 -5
- package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +16 -16
- package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +4 -4
- package/dist/commonjs/side-panel/lib/SidePanel.js +7 -7
- package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/commonjs/status-indicator/index.d.ts +1 -1
- package/dist/commonjs/status-indicator/index.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +83 -15
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +97 -27
- package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/commonjs/text-area/lib/TextArea.d.ts +2 -2
- package/dist/commonjs/text-area/lib/TextArea.js +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts +1 -1
- package/dist/commonjs/text-area/lib/TextAreaField.js +1 -1
- package/dist/commonjs/text-input/lib/TextInput.d.ts +2 -2
- package/dist/commonjs/text-input/lib/TextInput.js +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.d.ts +1 -1
- package/dist/commonjs/text-input/lib/TextInputField.js +4 -4
- package/dist/es6/color-picker/lib/ColorPicker.js +1 -1
- package/dist/es6/color-picker/lib/parts/ColorReset.js +1 -1
- package/dist/es6/color-picker/lib/parts/SwatchBook.js +1 -1
- package/dist/es6/divider/lib/Divider.js +1 -1
- package/dist/es6/information-highlight/lib/InformationHighlight.d.ts +4 -4
- package/dist/es6/information-highlight/lib/InformationHighlight.js +7 -7
- package/dist/es6/information-highlight/lib/hooks/useInformationHighlightModel.d.ts +5 -5
- package/dist/es6/information-highlight/lib/parts/Body.js +1 -1
- package/dist/es6/information-highlight/lib/parts/Heading.js +1 -1
- package/dist/es6/information-highlight/lib/parts/Icon.d.ts +1 -1
- package/dist/es6/information-highlight/lib/parts/Link.js +1 -1
- package/dist/es6/loading-sparkles/lib/LoadingSparkles.js +2 -2
- package/dist/es6/multi-select/lib/MultiSelectInput.js +3 -3
- package/dist/es6/pill/lib/Pill.js +3 -3
- package/dist/es6/pill/lib/PillAvatar.js +1 -1
- package/dist/es6/pill/lib/PillCount.js +1 -1
- package/dist/es6/pill/lib/PillIcon.js +1 -1
- package/dist/es6/pill/lib/PillIconButton.js +1 -1
- package/dist/es6/pill/lib/PillLabel.js +1 -1
- package/dist/es6/radio/lib/RadioGroup.js +3 -3
- package/dist/es6/radio/lib/RadioLabel.js +1 -1
- package/dist/es6/radio/lib/RadioText.js +4 -4
- package/dist/es6/radio/lib/StyledRadioButton.js +5 -5
- package/dist/es6/segmented-control/lib/SegmentedControlItem.js +16 -16
- package/dist/es6/segmented-control/lib/SegmentedControlList.js +4 -4
- package/dist/es6/side-panel/lib/SidePanel.js +7 -7
- package/dist/es6/side-panel/lib/SidePanelToggleButton.js +11 -11
- package/dist/es6/status-indicator/index.d.ts +1 -1
- package/dist/es6/status-indicator/index.d.ts.map +1 -1
- package/dist/es6/status-indicator/index.js +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +83 -15
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.js +97 -27
- package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +1 -1
- package/dist/es6/text-area/lib/TextArea.d.ts +2 -2
- package/dist/es6/text-area/lib/TextArea.js +1 -1
- package/dist/es6/text-area/lib/TextAreaField.d.ts +1 -1
- package/dist/es6/text-area/lib/TextAreaField.js +1 -1
- package/dist/es6/text-input/lib/TextInput.d.ts +2 -2
- package/dist/es6/text-input/lib/TextInput.js +1 -1
- package/dist/es6/text-input/lib/TextInputField.d.ts +1 -1
- package/dist/es6/text-input/lib/TextInputField.js +4 -4
- package/package.json +4 -4
- package/status-indicator/index.ts +5 -1
- package/status-indicator/lib/StatusIndicator.tsx +159 -78
- package/text-area/lib/TextArea.tsx +2 -2
- package/text-area/lib/TextAreaField.tsx +1 -1
- package/text-input/lib/TextInput.tsx +2 -2
- package/text-input/lib/TextInputField.tsx +1 -1
|
@@ -1,26 +1,45 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {ExtractProps, createComponent} from '@workday/canvas-kit-react/common';
|
|
4
|
-
import {createStencil, px2rem} from '@workday/canvas-kit-styling';
|
|
4
|
+
import {ExtractStencilProps, createStencil, px2rem} from '@workday/canvas-kit-styling';
|
|
5
5
|
import {system} from '@workday/canvas-tokens-web';
|
|
6
6
|
import {Flex, mergeStyles} from '@workday/canvas-kit-react/layout';
|
|
7
7
|
import {systemIconStencil} from '@workday/canvas-kit-react/icon';
|
|
8
8
|
import {StatusIndicatorIcon} from './StatusIndicatorIcon';
|
|
9
9
|
import {StatusIndicatorLabel} from './StatusIndicatorLabel';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated This is being deprecated and will be removed in a future release. Use
|
|
13
|
+
* `StatusIndicatorProps['variant']` instead.
|
|
14
|
+
*/
|
|
15
|
+
export type StatusIndicatorVariant =
|
|
16
|
+
| 'info'
|
|
17
|
+
| 'neutral'
|
|
18
|
+
| 'caution'
|
|
19
|
+
| 'positive'
|
|
20
|
+
| 'critical'
|
|
21
|
+
| 'ai'
|
|
22
|
+
| 'transparent'
|
|
23
|
+
| 'blue'
|
|
24
|
+
| 'green'
|
|
25
|
+
| 'orange'
|
|
26
|
+
| 'red'
|
|
27
|
+
| 'gray';
|
|
12
28
|
|
|
13
|
-
export interface StatusIndicatorProps
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* `high` emphasis will create more contrast between the background and text colors.
|
|
17
|
-
* `low` emphasis will create less contrast between the background and text colors.
|
|
18
|
-
* @default 'low'
|
|
19
|
-
*/
|
|
20
|
-
emphasis?: 'high' | 'low';
|
|
29
|
+
export interface StatusIndicatorProps
|
|
30
|
+
extends ExtractProps<typeof Flex, never>,
|
|
31
|
+
Omit<ExtractStencilProps<typeof statusIndicatorStencil>, 'variant'> {
|
|
21
32
|
/**
|
|
22
33
|
* Defines the color of the `StatusIndicator`.
|
|
23
|
-
*
|
|
34
|
+
* * `info` | `blue` - Uses the info system color and is used for informational status indications
|
|
35
|
+
* * `positive` | `green` - Uses the positive system color and is used for positive status indications
|
|
36
|
+
* * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions
|
|
37
|
+
* * `critical` | `red` - Uses the error system color and is used for critical or negative status indications
|
|
38
|
+
* * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations
|
|
39
|
+
* * `illuminate` - Uses the AI system color and is used for AI generated content
|
|
40
|
+
* * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos
|
|
41
|
+
*
|
|
42
|
+
* @default 'neutral'
|
|
24
43
|
*/
|
|
25
44
|
variant?: StatusIndicatorVariant;
|
|
26
45
|
/**
|
|
@@ -29,99 +48,152 @@ export interface StatusIndicatorProps extends ExtractProps<typeof Flex, never> {
|
|
|
29
48
|
children: React.ReactNode;
|
|
30
49
|
}
|
|
31
50
|
|
|
51
|
+
// TODO: Remove this in a future release
|
|
52
|
+
const deprecatedVariantsMap = {
|
|
53
|
+
blue: 'info',
|
|
54
|
+
green: 'positive',
|
|
55
|
+
orange: 'caution',
|
|
56
|
+
red: 'critical',
|
|
57
|
+
gray: 'neutral',
|
|
58
|
+
} as const;
|
|
59
|
+
|
|
32
60
|
const statusIndicatorStencil = createStencil({
|
|
33
61
|
base: {
|
|
34
62
|
display: 'inline-flex',
|
|
35
63
|
gap: system.space.x1,
|
|
36
64
|
maxWidth: px2rem(200),
|
|
37
65
|
alignItems: 'center',
|
|
38
|
-
borderRadius: system.shape.
|
|
66
|
+
borderRadius: system.shape.round,
|
|
39
67
|
height: px2rem(20),
|
|
40
|
-
padding: `${system.space.zero} ${system.space.
|
|
68
|
+
padding: `${system.space.zero} ${system.space.x2}`,
|
|
41
69
|
outline: `${px2rem(1)} solid transparent`,
|
|
70
|
+
[systemIconStencil.vars.color]: 'currentColor',
|
|
42
71
|
},
|
|
43
72
|
modifiers: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Defines the color of the `StatusIndicator`.
|
|
75
|
+
* * `info` | `blue` - Uses the info system color and is used for informational status indications
|
|
76
|
+
* * `positive` | `green` - Uses the positive system color and is used for positive status indications
|
|
77
|
+
* * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions
|
|
78
|
+
* * `critical` | `red` - Uses the error system color and is used for critical or negative status indications
|
|
79
|
+
* * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations
|
|
80
|
+
* * `illuminate` - Uses the AI system color and is used for AI generated content
|
|
81
|
+
* * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos
|
|
82
|
+
*
|
|
83
|
+
* @default 'neutral'
|
|
84
|
+
*/
|
|
85
|
+
variant: {
|
|
86
|
+
info: {
|
|
87
|
+
color: system.color.fg.info.strong,
|
|
88
|
+
backgroundColor: system.color.bg.info.softer,
|
|
89
|
+
},
|
|
90
|
+
positive: {
|
|
91
|
+
color: system.color.fg.positive.strong,
|
|
92
|
+
backgroundColor: system.color.fg.positive.softer,
|
|
93
|
+
},
|
|
94
|
+
caution: {
|
|
95
|
+
color: system.color.fg.caution.soft,
|
|
96
|
+
backgroundColor: system.color.bg.caution.softer,
|
|
49
97
|
},
|
|
50
|
-
|
|
51
|
-
color: system.color.fg.
|
|
52
|
-
|
|
53
|
-
|
|
98
|
+
critical: {
|
|
99
|
+
color: system.color.fg.critical.strong,
|
|
100
|
+
backgroundColor: system.color.bg.critical.softer,
|
|
101
|
+
},
|
|
102
|
+
neutral: {
|
|
103
|
+
color: system.color.fg.muted.strong,
|
|
104
|
+
backgroundColor: system.color.bg.alt.default,
|
|
105
|
+
},
|
|
106
|
+
ai: {
|
|
107
|
+
color: system.color.fg.ai,
|
|
108
|
+
backgroundColor: system.color.bg.ai.default,
|
|
109
|
+
},
|
|
110
|
+
transparent: {
|
|
111
|
+
color: system.color.fg.inverse,
|
|
112
|
+
backgroundColor: system.color.bg.translucent,
|
|
54
113
|
},
|
|
55
114
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
115
|
+
/**
|
|
116
|
+
* Defines the emphasis of the `StatusIndicator`. `low` should be used in almost all cases.
|
|
117
|
+
* `high` is being deprecated and will be removed in a future release.
|
|
118
|
+
* * `low` - Normal emphasis and will visually fit in with other components.
|
|
119
|
+
* * `high` - High emphasis has been used to make the `StatusIndicator` stand out more, but
|
|
120
|
+
* tends to overpower other components. It will be removed and should not be used.
|
|
121
|
+
*
|
|
122
|
+
* @default 'low'
|
|
123
|
+
*
|
|
124
|
+
* @deprecated This is being deprecated and will be removed in a future release. `high` is being removed
|
|
125
|
+
*/
|
|
126
|
+
emphasis: {
|
|
127
|
+
low: {},
|
|
128
|
+
/**
|
|
129
|
+
* @deprecated This is being deprecated and will be removed in a future release.
|
|
130
|
+
*/
|
|
131
|
+
high: {},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
compound: [
|
|
135
|
+
{
|
|
136
|
+
modifiers: {
|
|
137
|
+
variant: 'info',
|
|
138
|
+
emphasis: 'high',
|
|
61
139
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
background: system.color.static.amber.softer,
|
|
140
|
+
styles: {
|
|
141
|
+
backgroundColor: system.color.bg.info.default,
|
|
142
|
+
color: system.color.fg.inverse,
|
|
66
143
|
},
|
|
67
144
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
background: system.color.static.blue.default,
|
|
145
|
+
{
|
|
146
|
+
modifiers: {
|
|
147
|
+
variant: 'positive',
|
|
148
|
+
emphasis: 'high',
|
|
73
149
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
background: system.color.static.blue.softer,
|
|
150
|
+
styles: {
|
|
151
|
+
backgroundColor: system.color.bg.positive.default,
|
|
152
|
+
color: system.color.fg.inverse,
|
|
78
153
|
},
|
|
79
154
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
background: system.color.static.green.strong,
|
|
155
|
+
{
|
|
156
|
+
modifiers: {
|
|
157
|
+
variant: 'caution',
|
|
158
|
+
emphasis: 'high',
|
|
85
159
|
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
background: system.color.static.green.softer,
|
|
160
|
+
styles: {
|
|
161
|
+
backgroundColor: system.color.bg.caution.default,
|
|
162
|
+
color: system.color.fg.caution.strong,
|
|
90
163
|
},
|
|
91
164
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
background: system.color.static.red.default,
|
|
165
|
+
{
|
|
166
|
+
modifiers: {
|
|
167
|
+
variant: 'critical',
|
|
168
|
+
emphasis: 'high',
|
|
97
169
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
background: system.color.static.red.softer,
|
|
170
|
+
styles: {
|
|
171
|
+
backgroundColor: system.color.bg.critical.default,
|
|
172
|
+
color: system.color.fg.inverse,
|
|
102
173
|
},
|
|
103
174
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
background: system.color.bg.translucent,
|
|
175
|
+
{
|
|
176
|
+
modifiers: {
|
|
177
|
+
variant: 'neutral',
|
|
178
|
+
emphasis: 'high',
|
|
109
179
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
background: system.color.bg.translucent,
|
|
180
|
+
styles: {
|
|
181
|
+
backgroundColor: system.color.bg.muted.default,
|
|
182
|
+
color: system.color.fg.inverse,
|
|
114
183
|
},
|
|
115
184
|
},
|
|
185
|
+
],
|
|
186
|
+
defaultModifiers: {
|
|
187
|
+
variant: 'neutral',
|
|
188
|
+
emphasis: 'low',
|
|
116
189
|
},
|
|
117
190
|
});
|
|
118
191
|
|
|
119
192
|
/**
|
|
120
|
-
* `StatusIndicator` is a container component
|
|
121
|
-
* apply spacing evenly between its children. It has a default maximum width of `200px`.
|
|
193
|
+
* `StatusIndicator` is a container component has a default maximum width of `200px`.
|
|
122
194
|
*
|
|
123
195
|
* ```tsx
|
|
124
|
-
* <StatusIndicator
|
|
196
|
+
* <StatusIndicator variant="info">
|
|
125
197
|
* {Child components}
|
|
126
198
|
* </StatusIndicator>
|
|
127
199
|
* ```
|
|
@@ -130,8 +202,8 @@ export const StatusIndicator = createComponent('div')({
|
|
|
130
202
|
displayName: 'StatusIndicator',
|
|
131
203
|
subComponents: {
|
|
132
204
|
/**
|
|
133
|
-
* `StatusIndicator.Label`
|
|
134
|
-
*
|
|
205
|
+
* `StatusIndicator.Label` will apply an ellipsis if its contents exceed the component's maximum
|
|
206
|
+
* width.
|
|
135
207
|
*
|
|
136
208
|
* ```tsx
|
|
137
209
|
* <StatusIndicator.Label>{The text to be rendered}</StatusIndicator.Label>
|
|
@@ -148,13 +220,22 @@ export const StatusIndicator = createComponent('div')({
|
|
|
148
220
|
*/
|
|
149
221
|
Icon: StatusIndicatorIcon,
|
|
150
222
|
},
|
|
151
|
-
Component: (
|
|
152
|
-
{emphasis = 'low', variant = 'gray', children, ...elemProps}: StatusIndicatorProps,
|
|
153
|
-
ref,
|
|
154
|
-
Element
|
|
155
|
-
) => {
|
|
223
|
+
Component: ({variant, emphasis, children, ...elemProps}: StatusIndicatorProps, ref, Element) => {
|
|
156
224
|
return (
|
|
157
|
-
<Element
|
|
225
|
+
<Element
|
|
226
|
+
ref={ref}
|
|
227
|
+
{...mergeStyles(
|
|
228
|
+
elemProps,
|
|
229
|
+
statusIndicatorStencil({
|
|
230
|
+
variant:
|
|
231
|
+
// collapse the type to only the allowed modifiers. Look them up in the map, then
|
|
232
|
+
// fallback to the passed variant.
|
|
233
|
+
deprecatedVariantsMap[variant as keyof typeof deprecatedVariantsMap] ||
|
|
234
|
+
(variant as keyof typeof statusIndicatorStencil.modifiers.variant),
|
|
235
|
+
emphasis,
|
|
236
|
+
})
|
|
237
|
+
)}
|
|
238
|
+
>
|
|
158
239
|
{children}
|
|
159
240
|
</Element>
|
|
160
241
|
);
|
|
@@ -7,7 +7,7 @@ import {mergeStyles} from '@workday/canvas-kit-react/layout';
|
|
|
7
7
|
import {TextAreaField} from './TextAreaField';
|
|
8
8
|
import {useTextInputModel} from '@workday/canvas-kit-preview-react/text-input';
|
|
9
9
|
/**
|
|
10
|
-
* @deprecated ⚠️ `TextAreaProps` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
10
|
+
* @deprecated ⚠️ `TextAreaProps` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
11
11
|
*/
|
|
12
12
|
export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
|
|
13
13
|
/**
|
|
@@ -18,7 +18,7 @@ export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @stencil formFieldStencil
|
|
21
|
-
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
21
|
+
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
22
22
|
*/
|
|
23
23
|
export const TextArea = createContainer('div')({
|
|
24
24
|
displayName: 'TextArea',
|
|
@@ -41,7 +41,7 @@ const baseStyles: CSSProperties = {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/
|
|
44
|
+
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) in Preview instead.
|
|
45
45
|
*/
|
|
46
46
|
export const TextAreaField = createSubcomponent('textarea')({
|
|
47
47
|
displayName: 'TextArea.Field',
|
|
@@ -7,7 +7,7 @@ import {mergeStyles} from '@workday/canvas-kit-react/layout';
|
|
|
7
7
|
import {TextInputField} from './TextInputField';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @deprecated ⚠️ `TextInputProps` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
10
|
+
* @deprecated ⚠️ `TextInputProps` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--docs) instead.
|
|
11
11
|
*/
|
|
12
12
|
export interface TextInputProps extends ExtractProps<typeof FormField, never> {
|
|
13
13
|
/**
|
|
@@ -17,7 +17,7 @@ export interface TextInputProps extends ExtractProps<typeof FormField, never> {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @stencil formFieldStencil
|
|
20
|
-
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`
|
|
20
|
+
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textinput--docs) instead.
|
|
21
21
|
*/
|
|
22
22
|
export const TextInput = createContainer('div')({
|
|
23
23
|
displayName: 'TextInput',
|
|
@@ -57,7 +57,7 @@ const textInputFieldStencil = createStencil({
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/
|
|
60
|
+
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) instead.
|
|
61
61
|
*/
|
|
62
62
|
export const TextInputField = createSubcomponent('input')({
|
|
63
63
|
displayName: 'TextInput.Field',
|