@sprinklrjs/spaceweb 14.16.1 → 14.16.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.
- package/_hds_internal_deprecations.d.ts +863 -0
- package/_hds_internal_deprecations.js +345 -0
- package/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
- package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
- package/avatar/avatar.js +3 -3
- package/avatar/types.d.ts +1 -1
- package/banner/types.d.ts +1 -1
- package/baseui/datepicker/day.js +21 -8
- package/baseui/select/dropdown.d.ts +1 -1
- package/baseui/select/select-component.d.ts +1 -1
- package/button-group/ButtonGroup.d.ts +2 -2
- package/button-group/StatefulButtonGroup.d.ts +2 -2
- package/button-group/styled-components.d.ts +2 -2
- package/button-group/types.d.ts +6 -4
- package/checkbox/types.d.ts +4 -4
- package/date-input/DateInput.js +3 -0
- package/date-picker/types.d.ts +2 -6
- package/esm/_hds_internal_deprecations.d.ts +863 -0
- package/esm/_hds_internal_deprecations.js +342 -0
- package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
- package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
- package/esm/avatar/avatar.js +3 -3
- package/esm/avatar/types.d.ts +1 -1
- package/esm/banner/types.d.ts +1 -1
- package/esm/baseui/datepicker/day.js +21 -8
- package/esm/baseui/select/dropdown.d.ts +1 -1
- package/esm/baseui/select/select-component.d.ts +1 -1
- package/esm/button-group/ButtonGroup.d.ts +2 -2
- package/esm/button-group/StatefulButtonGroup.d.ts +2 -2
- package/esm/button-group/styled-components.d.ts +2 -2
- package/esm/button-group/types.d.ts +6 -4
- package/esm/checkbox/types.d.ts +4 -4
- package/esm/date-input/DateInput.js +3 -0
- package/esm/date-picker/types.d.ts +2 -6
- package/esm/form-control/types.d.ts +1 -1
- package/esm/image/types.d.ts +1 -1
- package/esm/input/number/base-input.d.ts +1 -1
- package/esm/input/types.d.ts +6 -13
- package/esm/menu/StatefulSubMenu.d.ts +1 -1
- package/esm/menu/SubMenu.d.ts +1 -1
- package/esm/menu/menu-item.d.ts +1 -1
- package/esm/menu/types.d.ts +1 -3
- package/esm/modal/types.d.ts +1 -6
- package/esm/popover/popover.d.ts +1 -1
- package/esm/progressSteps/types.d.ts +2 -0
- package/esm/radio/types.d.ts +8 -8
- package/esm/search/types.d.ts +6 -6
- package/esm/select/base-select.d.ts +1 -1
- package/esm/select/default-props.d.ts +1 -1
- package/esm/select/nested-select.d.ts +2 -2
- package/esm/select/select.d.ts +1 -1
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
- package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +1 -1
- package/esm/select/stateful-select.d.ts +1 -1
- package/esm/select/types.d.ts +1 -1
- package/esm/slider/types.d.ts +2 -2
- package/esm/stack/stack.d.ts +5 -5
- package/esm/tabs/hooks/useScrollableTabs.d.ts +1 -1
- package/esm/tabs/types.d.ts +8 -9
- package/esm/tag/types.d.ts +7 -10
- package/esm/test-utils/keyboard/focusLock.d.ts +19 -0
- package/esm/test-utils/keyboard/focusLock.js +31 -0
- package/esm/test-utils/keyboard/index.d.ts +15 -0
- package/esm/test-utils/keyboard/index.js +15 -0
- package/esm/test-utils/keyboard/patterns.d.ts +63 -0
- package/esm/test-utils/keyboard/patterns.js +178 -0
- package/esm/test-utils/keyboard/press.d.ts +12 -0
- package/esm/test-utils/keyboard/press.js +22 -0
- package/esm/textarea/types.d.ts +10 -5
- package/esm/tooltip/disabled-tooltip-container.d.ts +1 -1
- package/esm/tooltip/stateful-tooltip-container.d.ts +1 -1
- package/esm/tooltip/stateful-tooltip.d.ts +1 -1
- package/esm/tooltip/types.d.ts +9 -21
- package/esm/types.d.ts +4 -1
- package/esm/typography/types.d.ts +63 -4
- package/form-control/types.d.ts +1 -1
- package/image/types.d.ts +1 -1
- package/input/number/base-input.d.ts +1 -1
- package/input/types.d.ts +6 -13
- package/menu/StatefulSubMenu.d.ts +1 -1
- package/menu/SubMenu.d.ts +1 -1
- package/menu/menu-item.d.ts +1 -1
- package/menu/types.d.ts +1 -3
- package/modal/types.d.ts +1 -6
- package/package.json +12 -2
- package/popover/popover.d.ts +1 -1
- package/progressSteps/types.d.ts +2 -0
- package/radio/types.d.ts +8 -8
- package/search/types.d.ts +6 -6
- package/select/base-select.d.ts +1 -1
- package/select/default-props.d.ts +1 -1
- package/select/nested-select.d.ts +2 -2
- package/select/select.d.ts +1 -1
- package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
- package/select/selectMenuAdapter/SelectMenuItem.d.ts +1 -1
- package/select/stateful-select.d.ts +1 -1
- package/select/types.d.ts +1 -1
- package/slider/types.d.ts +2 -2
- package/stack/stack.d.ts +5 -5
- package/tabs/hooks/useScrollableTabs.d.ts +1 -1
- package/tabs/types.d.ts +8 -9
- package/tag/types.d.ts +7 -10
- package/test-utils/keyboard/focusLock.d.ts +19 -0
- package/test-utils/keyboard/focusLock.js +35 -0
- package/test-utils/keyboard/index.d.ts +15 -0
- package/test-utils/keyboard/index.js +27 -0
- package/test-utils/keyboard/patterns.d.ts +63 -0
- package/test-utils/keyboard/patterns.js +185 -0
- package/test-utils/keyboard/press.d.ts +12 -0
- package/test-utils/keyboard/press.js +30 -0
- package/textarea/types.d.ts +10 -5
- package/tooltip/disabled-tooltip-container.d.ts +1 -1
- package/tooltip/stateful-tooltip-container.d.ts +1 -1
- package/tooltip/stateful-tooltip.d.ts +1 -1
- package/tooltip/types.d.ts +9 -21
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types.d.ts +4 -1
- package/typography/types.d.ts +63 -4
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Internal map of Spaceweb props and prop values deprecated in Hyperspace (HDS-1096).
|
|
4
|
+
*
|
|
5
|
+
* - Consumed by the ui-hub ESLint rule `hds-no-deprecated-props`. Manually maintained.
|
|
6
|
+
* - Do NOT import anything at runtime from this file, do NOT export it from the package index,
|
|
7
|
+
* and do NOT import it from app code.
|
|
8
|
+
* - Plain data only: no types, no messages. The consumer builds all wording itself.
|
|
9
|
+
* - Guidelines below are not enforced by tooling.
|
|
10
|
+
*
|
|
11
|
+
* How to add an entry:
|
|
12
|
+
* 1. Find the package entry (`@sprinklrjs/spaceweb/<entry>`) and the exported component name.
|
|
13
|
+
* 2. Add the prop under that component.
|
|
14
|
+
* 3. Whole prop deprecated -> `status: STATUS.FULL_DEPRECATED`. Optional: `defaultValue` if the component has one,
|
|
15
|
+
* `replacementProp` if the prop is replaced by another prop (name only).
|
|
16
|
+
* Only some values deprecated -> `status: STATUS.PARTIAL_DEPRECATED`.
|
|
17
|
+
* 4. List every component that accepts the prop (including `Stateful*` variants), or point to a shared const.
|
|
18
|
+
* 5. `replacementMap` keys are the deprecated values only. `allReplacements` holds only valid, non-deprecated values.
|
|
19
|
+
* 6. Use `null` in `replacementMap` when a deprecated value has no exact replacement.
|
|
20
|
+
* 7. Only main props are mapped (not `$`-prefixed props).
|
|
21
|
+
* 8. Keep values as plain strings.
|
|
22
|
+
*/
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.HDS_DEPRECATIONS = void 0;
|
|
25
|
+
var STATUS = {
|
|
26
|
+
FULL_DEPRECATED: 'full_deprecated',
|
|
27
|
+
PARTIAL_DEPRECATED: 'partial_deprecated',
|
|
28
|
+
};
|
|
29
|
+
// Shared shapes (identical deprecations across components).
|
|
30
|
+
var TAG_SIZE = {
|
|
31
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
32
|
+
replacementMap: { xxxs: null, sm: null, lg: null },
|
|
33
|
+
allReplacements: ['small', 'medium', 'large'],
|
|
34
|
+
};
|
|
35
|
+
var BUTTON_SIZE = {
|
|
36
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
37
|
+
replacementMap: { xxxxs: null, xxxs: null, xxs: null, xs: null, sm: null, md: null, lg: null, xl: null },
|
|
38
|
+
allReplacements: ['small', 'medium', 'large', 'x-large'],
|
|
39
|
+
};
|
|
40
|
+
var BUTTON_GROUP_SIZE = {
|
|
41
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
42
|
+
replacementMap: { xxxxs: null, xxxs: null, xxs: null, xs: null, sm: null, md: null, lg: null, xl: null },
|
|
43
|
+
allReplacements: ['medium'],
|
|
44
|
+
};
|
|
45
|
+
var AVATAR_SIZE = {
|
|
46
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
47
|
+
replacementMap: { sm: null, md: null, lg: null, xl: null, xxl: null, xxxl: null },
|
|
48
|
+
allReplacements: ['x-small', 'small', 'medium', 'large', 'x-large'],
|
|
49
|
+
};
|
|
50
|
+
var CHECKBOX_RADIO_SIZE = {
|
|
51
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
52
|
+
replacementMap: { sm: null, md: null, lg: null },
|
|
53
|
+
allReplacements: ['medium', 'large'],
|
|
54
|
+
};
|
|
55
|
+
var CHECKBOX_RADIO_INTENT = {
|
|
56
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
57
|
+
replacementMap: { success: null, warning: null, ai: null },
|
|
58
|
+
allReplacements: ['default', 'error'],
|
|
59
|
+
};
|
|
60
|
+
var INPUT_SIZE = {
|
|
61
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
62
|
+
replacementMap: { xxxs: null, xs: null, sm: null, md: null, lg: null },
|
|
63
|
+
allReplacements: ['small', 'medium'],
|
|
64
|
+
};
|
|
65
|
+
var INPUT_VARIANT = {
|
|
66
|
+
status: STATUS.FULL_DEPRECATED,
|
|
67
|
+
defaultValue: 'default',
|
|
68
|
+
};
|
|
69
|
+
var TEXTAREA_SIZE = {
|
|
70
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
71
|
+
replacementMap: { xxxs: null, xs: null, sm: null, md: null, lg: null },
|
|
72
|
+
allReplacements: ['medium'],
|
|
73
|
+
};
|
|
74
|
+
var SEARCH_SIZE = {
|
|
75
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
76
|
+
replacementMap: { xxxs: null, xxs: null, xs: null, sm: null, md: null, lg: null },
|
|
77
|
+
allReplacements: ['small', 'medium', 'large', 'x-large'],
|
|
78
|
+
};
|
|
79
|
+
var SELECT_SIZE = {
|
|
80
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
81
|
+
replacementMap: { xxxs: null, xs: null, sm: null, md: null, lg: null },
|
|
82
|
+
allReplacements: ['small', 'medium'],
|
|
83
|
+
};
|
|
84
|
+
var DEFAULT_VALUE = {
|
|
85
|
+
status: STATUS.FULL_DEPRECATED,
|
|
86
|
+
defaultValue: 'default',
|
|
87
|
+
};
|
|
88
|
+
exports.HDS_DEPRECATIONS = {
|
|
89
|
+
tag: {
|
|
90
|
+
Tag: {
|
|
91
|
+
size: TAG_SIZE,
|
|
92
|
+
variant: { status: STATUS.FULL_DEPRECATED, defaultValue: 'light' },
|
|
93
|
+
},
|
|
94
|
+
AvatarTag: {
|
|
95
|
+
size: TAG_SIZE,
|
|
96
|
+
variant: { status: STATUS.FULL_DEPRECATED, defaultValue: 'light' },
|
|
97
|
+
},
|
|
98
|
+
StatusTag: {
|
|
99
|
+
size: TAG_SIZE,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
button: {
|
|
103
|
+
Button: { size: BUTTON_SIZE },
|
|
104
|
+
IconButton: { size: BUTTON_SIZE },
|
|
105
|
+
IconTextButton: { size: BUTTON_SIZE },
|
|
106
|
+
},
|
|
107
|
+
'button-group': {
|
|
108
|
+
ButtonGroup: { size: BUTTON_GROUP_SIZE, intent: DEFAULT_VALUE },
|
|
109
|
+
StatefulButtonGroup: { size: BUTTON_GROUP_SIZE, intent: DEFAULT_VALUE },
|
|
110
|
+
},
|
|
111
|
+
avatar: {
|
|
112
|
+
Avatar: { size: AVATAR_SIZE },
|
|
113
|
+
AvatarGroup: { size: AVATAR_SIZE },
|
|
114
|
+
},
|
|
115
|
+
checkbox: {
|
|
116
|
+
Checkbox: {
|
|
117
|
+
size: CHECKBOX_RADIO_SIZE,
|
|
118
|
+
intent: CHECKBOX_RADIO_INTENT,
|
|
119
|
+
labelPlacement: { status: STATUS.FULL_DEPRECATED, defaultValue: 'right' },
|
|
120
|
+
},
|
|
121
|
+
StatefulCheckbox: {
|
|
122
|
+
size: CHECKBOX_RADIO_SIZE,
|
|
123
|
+
intent: CHECKBOX_RADIO_INTENT,
|
|
124
|
+
labelPlacement: { status: STATUS.FULL_DEPRECATED, defaultValue: 'right' },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
radio: {
|
|
128
|
+
Radio: {
|
|
129
|
+
size: CHECKBOX_RADIO_SIZE,
|
|
130
|
+
intent: CHECKBOX_RADIO_INTENT,
|
|
131
|
+
align: { status: STATUS.FULL_DEPRECATED, defaultValue: 'vertical' },
|
|
132
|
+
labelPlacement: { status: STATUS.FULL_DEPRECATED, defaultValue: 'right' },
|
|
133
|
+
},
|
|
134
|
+
RadioGroup: {
|
|
135
|
+
size: CHECKBOX_RADIO_SIZE,
|
|
136
|
+
intent: CHECKBOX_RADIO_INTENT,
|
|
137
|
+
align: { status: STATUS.FULL_DEPRECATED, defaultValue: 'vertical' },
|
|
138
|
+
labelPlacement: { status: STATUS.FULL_DEPRECATED, defaultValue: 'right' },
|
|
139
|
+
},
|
|
140
|
+
StatefulRadioGroup: {
|
|
141
|
+
size: CHECKBOX_RADIO_SIZE,
|
|
142
|
+
intent: CHECKBOX_RADIO_INTENT,
|
|
143
|
+
align: { status: STATUS.FULL_DEPRECATED, defaultValue: 'vertical' },
|
|
144
|
+
labelPlacement: { status: STATUS.FULL_DEPRECATED, defaultValue: 'right' },
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
input: {
|
|
148
|
+
Input: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
149
|
+
StatefulInput: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
150
|
+
MaskedInput: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
151
|
+
NumberInput: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
152
|
+
StatefulNumberInput: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
153
|
+
},
|
|
154
|
+
'phone-input': {
|
|
155
|
+
PhoneInput: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
156
|
+
StatefulPhoneInput: { size: INPUT_SIZE, variant: INPUT_VARIANT },
|
|
157
|
+
},
|
|
158
|
+
textarea: {
|
|
159
|
+
Textarea: { size: TEXTAREA_SIZE },
|
|
160
|
+
StatefulTextarea: { size: TEXTAREA_SIZE },
|
|
161
|
+
},
|
|
162
|
+
select: {
|
|
163
|
+
Select: { size: SELECT_SIZE },
|
|
164
|
+
StatefulSelect: { size: SELECT_SIZE },
|
|
165
|
+
MultiSelect: { size: SELECT_SIZE },
|
|
166
|
+
SingleSelect: { size: SELECT_SIZE },
|
|
167
|
+
GroupedSelect: { size: SELECT_SIZE },
|
|
168
|
+
NestedSelect: { size: SELECT_SIZE },
|
|
169
|
+
},
|
|
170
|
+
asyncSelect: {
|
|
171
|
+
AsyncSelect: { size: SELECT_SIZE },
|
|
172
|
+
GroupedAsyncSelect: { size: SELECT_SIZE },
|
|
173
|
+
},
|
|
174
|
+
search: {
|
|
175
|
+
Search: {
|
|
176
|
+
size: SEARCH_SIZE,
|
|
177
|
+
variant: {
|
|
178
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
179
|
+
replacementMap: { default: 'light' },
|
|
180
|
+
allReplacements: ['light'],
|
|
181
|
+
},
|
|
182
|
+
intent: DEFAULT_VALUE,
|
|
183
|
+
},
|
|
184
|
+
StatefulSearch: {
|
|
185
|
+
size: SEARCH_SIZE,
|
|
186
|
+
variant: {
|
|
187
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
188
|
+
replacementMap: { default: 'light' },
|
|
189
|
+
allReplacements: ['light'],
|
|
190
|
+
},
|
|
191
|
+
intent: DEFAULT_VALUE,
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
tabs: {
|
|
195
|
+
TabList: {
|
|
196
|
+
position: { status: STATUS.FULL_DEPRECATED, defaultValue: 'top' },
|
|
197
|
+
variant: DEFAULT_VALUE,
|
|
198
|
+
},
|
|
199
|
+
Tab: {
|
|
200
|
+
position: { status: STATUS.FULL_DEPRECATED, defaultValue: 'top' },
|
|
201
|
+
variant: DEFAULT_VALUE,
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
tooltip: {
|
|
205
|
+
Tooltip: {
|
|
206
|
+
size: { status: STATUS.FULL_DEPRECATED, defaultValue: 'sm' },
|
|
207
|
+
intent: DEFAULT_VALUE,
|
|
208
|
+
label: { status: STATUS.FULL_DEPRECATED },
|
|
209
|
+
autoFocus: { status: STATUS.FULL_DEPRECATED },
|
|
210
|
+
returnFocus: { status: STATUS.FULL_DEPRECATED },
|
|
211
|
+
focusLock: { status: STATUS.FULL_DEPRECATED },
|
|
212
|
+
},
|
|
213
|
+
StatefulTooltip: {
|
|
214
|
+
size: { status: STATUS.FULL_DEPRECATED, defaultValue: 'sm' },
|
|
215
|
+
intent: DEFAULT_VALUE,
|
|
216
|
+
label: { status: STATUS.FULL_DEPRECATED },
|
|
217
|
+
autoFocus: { status: STATUS.FULL_DEPRECATED },
|
|
218
|
+
returnFocus: { status: STATUS.FULL_DEPRECATED },
|
|
219
|
+
focusLock: { status: STATUS.FULL_DEPRECATED },
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
'date-picker': {
|
|
223
|
+
DatePicker: {
|
|
224
|
+
peekNextMonth: { status: STATUS.FULL_DEPRECATED },
|
|
225
|
+
fixedHeight: { status: STATUS.FULL_DEPRECATED },
|
|
226
|
+
},
|
|
227
|
+
StatelessDatePicker: {
|
|
228
|
+
peekNextMonth: { status: STATUS.FULL_DEPRECATED },
|
|
229
|
+
fixedHeight: { status: STATUS.FULL_DEPRECATED },
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
'time-range-picker': {
|
|
233
|
+
TimeRangePicker: {
|
|
234
|
+
peekNextMonth: { status: STATUS.FULL_DEPRECATED },
|
|
235
|
+
fixedHeight: { status: STATUS.FULL_DEPRECATED },
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
menu: {
|
|
239
|
+
Menu: {
|
|
240
|
+
resetMenuOnMouseLeave: {
|
|
241
|
+
status: STATUS.FULL_DEPRECATED,
|
|
242
|
+
replacementProp: 'resetMenuHighlightOnMouseLeave',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
SubMenu: {
|
|
246
|
+
resetMenuOnMouseLeave: {
|
|
247
|
+
status: STATUS.FULL_DEPRECATED,
|
|
248
|
+
replacementProp: 'resetMenuHighlightOnMouseLeave',
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
StatefulSubMenu: {
|
|
252
|
+
resetMenuOnMouseLeave: {
|
|
253
|
+
status: STATUS.FULL_DEPRECATED,
|
|
254
|
+
replacementProp: 'resetMenuHighlightOnMouseLeave',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
image: {
|
|
259
|
+
DefaultFallbackImg: {
|
|
260
|
+
iconSize: { status: STATUS.FULL_DEPRECATED },
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
typography: {
|
|
264
|
+
Typography: {
|
|
265
|
+
weight: {
|
|
266
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
267
|
+
replacementMap: { medium: null },
|
|
268
|
+
allReplacements: ['regular', 'semibold'],
|
|
269
|
+
},
|
|
270
|
+
variant: {
|
|
271
|
+
status: STATUS.PARTIAL_DEPRECATED,
|
|
272
|
+
replacementMap: {
|
|
273
|
+
h2: 'heading-4',
|
|
274
|
+
'display-24': 'heading-4',
|
|
275
|
+
h3: 'heading-5',
|
|
276
|
+
'display-20': 'heading-5',
|
|
277
|
+
h4: 'heading-7',
|
|
278
|
+
h5: 'heading-7',
|
|
279
|
+
'display-18': 'heading-6',
|
|
280
|
+
'display-28': 'heading-3',
|
|
281
|
+
'display-32': 'heading-2',
|
|
282
|
+
'display-40': 'heading-1',
|
|
283
|
+
bl1: 'body-sm',
|
|
284
|
+
bs1: 'body-sm',
|
|
285
|
+
'body-14': 'body-sm',
|
|
286
|
+
bl3: 'body-xs',
|
|
287
|
+
bs3: 'body-xs',
|
|
288
|
+
l2: 'body-xs',
|
|
289
|
+
'body-12': 'body-xs',
|
|
290
|
+
'body-16': 'body-md',
|
|
291
|
+
h1: null,
|
|
292
|
+
h6: null,
|
|
293
|
+
h7: null,
|
|
294
|
+
'display-42': null,
|
|
295
|
+
bl2: null,
|
|
296
|
+
bs2: null,
|
|
297
|
+
l1: null,
|
|
298
|
+
l3: null,
|
|
299
|
+
l4: null,
|
|
300
|
+
'body-8': null,
|
|
301
|
+
'body-10': null,
|
|
302
|
+
'body-13': null,
|
|
303
|
+
},
|
|
304
|
+
allReplacements: [
|
|
305
|
+
'display',
|
|
306
|
+
'heading-1',
|
|
307
|
+
'heading-2',
|
|
308
|
+
'heading-3',
|
|
309
|
+
'heading-4',
|
|
310
|
+
'heading-5',
|
|
311
|
+
'heading-6',
|
|
312
|
+
'heading-7',
|
|
313
|
+
'body-lg',
|
|
314
|
+
'body-md',
|
|
315
|
+
'body-sm',
|
|
316
|
+
'body-xs',
|
|
317
|
+
],
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
modal: {
|
|
322
|
+
Modal: {
|
|
323
|
+
size: { status: STATUS.FULL_DEPRECATED, defaultValue: 'medium' },
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
progressSteps: {
|
|
327
|
+
ProgressSteps: { variant: DEFAULT_VALUE },
|
|
328
|
+
Step: { variant: DEFAULT_VALUE },
|
|
329
|
+
},
|
|
330
|
+
slider: {
|
|
331
|
+
Slider: { intent: DEFAULT_VALUE },
|
|
332
|
+
StatefulSlider: { intent: DEFAULT_VALUE },
|
|
333
|
+
StatefulSliderContainer: { intent: DEFAULT_VALUE },
|
|
334
|
+
},
|
|
335
|
+
banner: {
|
|
336
|
+
Banner: {
|
|
337
|
+
collapsible: { status: STATUS.FULL_DEPRECATED, defaultValue: 'false' },
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
'form-control': {
|
|
341
|
+
FormControl: {
|
|
342
|
+
layout: { status: STATUS.FULL_DEPRECATED, defaultValue: 'vertical' },
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
};
|
|
@@ -59,7 +59,7 @@ export declare const useAsyncSelect: ({ loadOptions, initialOptions, resolveSele
|
|
|
59
59
|
} | undefined;
|
|
60
60
|
mountNode?: HTMLElement | null | undefined;
|
|
61
61
|
options?: import("../../select").Options;
|
|
62
|
-
placement?: "
|
|
62
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
63
63
|
noResultsMsg?: import("react").ReactNode;
|
|
64
64
|
ownerDocument?: Document | undefined;
|
|
65
65
|
intent?: import("../..").Intent | undefined;
|
|
@@ -255,7 +255,7 @@ export declare const useAsyncSelect: ({ loadOptions, initialOptions, resolveSele
|
|
|
255
255
|
} | undefined;
|
|
256
256
|
mountNode?: HTMLElement | null | undefined;
|
|
257
257
|
options?: import("../../select").Options;
|
|
258
|
-
placement?: "
|
|
258
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
259
259
|
noResultsMsg?: import("react").ReactNode;
|
|
260
260
|
ownerDocument?: Document | undefined;
|
|
261
261
|
intent?: import("../..").Intent | undefined;
|
|
@@ -454,7 +454,7 @@ export declare const useAsyncSelect: ({ loadOptions, initialOptions, resolveSele
|
|
|
454
454
|
} | undefined;
|
|
455
455
|
mountNode?: HTMLElement | null | undefined;
|
|
456
456
|
options?: import("../../select").Options;
|
|
457
|
-
placement?: "
|
|
457
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
458
458
|
noResultsMsg?: import("react").ReactNode;
|
|
459
459
|
ownerDocument?: Document | undefined;
|
|
460
460
|
intent?: import("../..").Intent | undefined;
|
|
@@ -29,7 +29,7 @@ export declare const useGroupedAsyncSelect: ({ onChange, showSelectAll, selectAl
|
|
|
29
29
|
$as?: import("react").ElementType | undefined;
|
|
30
30
|
mountNode?: HTMLElement | null | undefined;
|
|
31
31
|
options?: import("../../select").Options;
|
|
32
|
-
placement?: "
|
|
32
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
33
33
|
noResultsMsg?: import("react").ReactNode;
|
|
34
34
|
ownerDocument?: Document | undefined;
|
|
35
35
|
intent?: import("../..").Intent | undefined;
|
|
@@ -193,7 +193,7 @@ export declare const useGroupedAsyncSelect: ({ onChange, showSelectAll, selectAl
|
|
|
193
193
|
$as?: import("react").ElementType | undefined;
|
|
194
194
|
mountNode?: HTMLElement | null | undefined;
|
|
195
195
|
options?: import("../../select").Options;
|
|
196
|
-
placement?: "
|
|
196
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
197
197
|
noResultsMsg?: import("react").ReactNode;
|
|
198
198
|
ownerDocument?: Document | undefined;
|
|
199
199
|
intent?: import("../..").Intent | undefined;
|
|
@@ -359,7 +359,7 @@ export declare const useGroupedAsyncSelect: ({ onChange, showSelectAll, selectAl
|
|
|
359
359
|
$as?: import("react").ElementType | undefined;
|
|
360
360
|
mountNode?: HTMLElement | null | undefined;
|
|
361
361
|
options?: import("../../select").Options;
|
|
362
|
-
placement?: "
|
|
362
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
363
363
|
noResultsMsg?: import("react").ReactNode;
|
|
364
364
|
ownerDocument?: Document | undefined;
|
|
365
365
|
intent?: import("../..").Intent | undefined;
|
package/avatar/avatar.js
CHANGED
|
@@ -31,9 +31,9 @@ var getIsImageLoaded = function (src) {
|
|
|
31
31
|
return imageEl.complete;
|
|
32
32
|
};
|
|
33
33
|
var Icon = function (_a) {
|
|
34
|
-
var overrides = _a.overrides, className = _a.className, props = tslib_1.__rest(_a, ["overrides", "className"]);
|
|
34
|
+
var overrides = _a.overrides, className = _a.className, title = _a.title, props = tslib_1.__rest(_a, ["overrides", "className", "title"]);
|
|
35
35
|
var _b = tslib_1.__read((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.UserIcon, user_1.default), 2), UserIcon = _b[0], iconProps = _b[1];
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ className: ['h-full w-full flex items-center justify-center', className] }, props, { children: (0, jsx_runtime_1.jsx)(UserIcon, tslib_1.__assign({ "data-testid": "user-icon", className: "w-1/2 h-1/2" }, iconProps)) })));
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ className: ['h-full w-full flex items-center justify-center', className] }, props, { children: (0, jsx_runtime_1.jsx)(UserIcon, tslib_1.__assign({ "data-testid": "user-icon", className: "w-1/2 h-1/2" }, iconProps, { title: title })) })));
|
|
37
37
|
};
|
|
38
38
|
var Avatar = function (props) {
|
|
39
39
|
var _a = tslib_1.__read((0, react_1.useState)(null), 2), imageEl = _a[0], setImageEl = _a[1];
|
|
@@ -92,7 +92,7 @@ var Avatar = function (props) {
|
|
|
92
92
|
style,
|
|
93
93
|
rootProps === null || rootProps === void 0 ? void 0 : rootProps.style,
|
|
94
94
|
] }, { children: [!imageLoaded &&
|
|
95
|
-
(isPhoneNumber && !allowPhoneInitials ? ((0, jsx_runtime_1.jsx)(Icon, tslib_1.__assign({ overrides: overrides }, sharedProps, initialsProps))) : ((0, jsx_runtime_1.jsx)(Initials, tslib_1.__assign({}, sharedProps, initialsProps, { children: _initials })))), (0, jsx_runtime_1.jsx)(AvatarImage, tslib_1.__assign({ ref: setImageEl, src: src, alt: name }, sharedProps, avatarImageProps))] })));
|
|
95
|
+
(isPhoneNumber && !allowPhoneInitials ? ((0, jsx_runtime_1.jsx)(Icon, tslib_1.__assign({ overrides: overrides, title: name }, sharedProps, initialsProps))) : ((0, jsx_runtime_1.jsx)(Initials, tslib_1.__assign({}, sharedProps, initialsProps, { children: _initials })))), (0, jsx_runtime_1.jsx)(AvatarImage, tslib_1.__assign({ ref: setImageEl, src: src, alt: name }, sharedProps, avatarImageProps))] })));
|
|
96
96
|
};
|
|
97
97
|
exports.Avatar = Avatar;
|
|
98
98
|
Avatar.__standard = 'Component';
|
package/avatar/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Override } from '../overrides';
|
|
|
3
3
|
import type { SpacewebComponentProps } from '../types';
|
|
4
4
|
export type Shape = 'circle' | 'rectangle';
|
|
5
5
|
export type Spacing = 'sm' | 'md' | 'none' | 'lg';
|
|
6
|
-
/** @deprecated */
|
|
6
|
+
/** @deprecated Use 'x-small', 'small', 'medium', 'large' or 'x-large' instead. */
|
|
7
7
|
type DeprecatedSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
8
8
|
export type Size = 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | DeprecatedSize;
|
|
9
9
|
export type AvatarGroupOverrides = {
|
package/banner/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type BannerIntent = 'error' | 'warning' | 'success' | 'info';
|
|
|
5
5
|
export type BannerProps = Omit<SpacewebComponentProps, 'title'> & {
|
|
6
6
|
intent?: BannerIntent;
|
|
7
7
|
$as?: string;
|
|
8
|
-
/** @deprecated */
|
|
8
|
+
/** @deprecated Not supported by Hyperspace. Defaults to 'false'. */
|
|
9
9
|
collapsible?: boolean;
|
|
10
10
|
titleEndEnhancer?: ReactNode;
|
|
11
11
|
children?: ReactNode;
|
package/baseui/datepicker/day.js
CHANGED
|
@@ -16,6 +16,15 @@ var date_helpers_1 = tslib_1.__importDefault(require("./utils/date-helpers"));
|
|
|
16
16
|
var overrides_1 = require("../../overrides");
|
|
17
17
|
var focusVisible_1 = require("../utils/focusVisible");
|
|
18
18
|
var constants_1 = require("./constants");
|
|
19
|
+
// Month/year menu keeps focus while open. dayElm.focus() fights Menu blur and Popover focusLock.
|
|
20
|
+
function shouldSkipCalendarDayFocus(dayElm) {
|
|
21
|
+
var activeElement = document.activeElement;
|
|
22
|
+
if (!(activeElement instanceof Element))
|
|
23
|
+
return false;
|
|
24
|
+
if (activeElement === dayElm)
|
|
25
|
+
return true;
|
|
26
|
+
return !!activeElement.closest('[role="menu"], [role="listbox"]');
|
|
27
|
+
}
|
|
19
28
|
var Day = /** @class */ (function (_super) {
|
|
20
29
|
tslib_1.__extends(Day, _super);
|
|
21
30
|
function Day(props) {
|
|
@@ -43,15 +52,15 @@ var Day = /** @class */ (function (_super) {
|
|
|
43
52
|
var nextStartDate = null;
|
|
44
53
|
var nextEndDate = null;
|
|
45
54
|
if (_this.props.selectedInput === constants_1.INPUT_ROLE.startDate) {
|
|
46
|
-
// @ts-ignore
|
|
55
|
+
// @ts-ignore -- range start accepts the selected date value
|
|
47
56
|
nextStartDate = selectedDate;
|
|
48
|
-
// @ts-ignore
|
|
57
|
+
// @ts-ignore -- range end copies the current end date
|
|
49
58
|
nextEndDate = Array.isArray(currentDate) && currentDate[1] ? currentDate[1] : null;
|
|
50
59
|
}
|
|
51
60
|
else if (_this.props.selectedInput === constants_1.INPUT_ROLE.endDate) {
|
|
52
|
-
// @ts-ignore
|
|
61
|
+
// @ts-ignore -- range start copies the current start date
|
|
53
62
|
nextStartDate = Array.isArray(currentDate) && currentDate[0] ? currentDate[0] : null;
|
|
54
|
-
// @ts-ignore
|
|
63
|
+
// @ts-ignore -- range end accepts the selected date value
|
|
55
64
|
nextEndDate = selectedDate;
|
|
56
65
|
}
|
|
57
66
|
nextDate = [nextStartDate];
|
|
@@ -171,14 +180,18 @@ var Day = /** @class */ (function (_super) {
|
|
|
171
180
|
Day.prototype.componentDidMount = function () {
|
|
172
181
|
if (this.dayElm && this.props.focusedCalendar) {
|
|
173
182
|
if (this.props.highlighted || (!this.props.highlightedDate && this.isSelected())) {
|
|
174
|
-
this.dayElm
|
|
183
|
+
if (!shouldSkipCalendarDayFocus(this.dayElm)) {
|
|
184
|
+
this.dayElm.focus();
|
|
185
|
+
}
|
|
175
186
|
}
|
|
176
187
|
}
|
|
177
188
|
};
|
|
178
189
|
Day.prototype.componentDidUpdate = function (_prevProps) {
|
|
179
190
|
if (this.dayElm && this.props.focusedCalendar) {
|
|
180
191
|
if (this.props.highlighted || (!this.props.highlightedDate && this.isSelected())) {
|
|
181
|
-
this.dayElm
|
|
192
|
+
if (!shouldSkipCalendarDayFocus(this.dayElm)) {
|
|
193
|
+
this.dayElm.focus();
|
|
194
|
+
}
|
|
182
195
|
}
|
|
183
196
|
}
|
|
184
197
|
};
|
|
@@ -320,7 +333,7 @@ var Day = /** @class */ (function (_super) {
|
|
|
320
333
|
(!this.props.highlightedDate && this.isSelected()) ||
|
|
321
334
|
hasFallbackTabIndex;
|
|
322
335
|
return !peekNextMonth && sharedProps.$outsideMonth ? ((0, jsx_runtime_1.jsx)(DayComp, tslib_1.__assign({ role: "gridcell" }, sharedProps, dayProps, { onFocus: this.onFocus, onBlur: this.onBlur }))) : ((0, jsx_runtime_1.jsxs)(DayComp, tslib_1.__assign({ "aria-label": this.getAriaLabel(sharedProps),
|
|
323
|
-
// @ts-ignore
|
|
336
|
+
// @ts-ignore -- styled day ref callback is untyped
|
|
324
337
|
ref: function (dayElm) {
|
|
325
338
|
_this.dayElm = dayElm;
|
|
326
339
|
}, role: "gridcell", "aria-roledescription": "button", tabIndex: isTabbable ? 0 : -1 }, sharedProps, dayProps, {
|
|
@@ -344,7 +357,7 @@ var Day = /** @class */ (function (_super) {
|
|
|
344
357
|
onMouseLeave: noop_1.default,
|
|
345
358
|
overrides: {},
|
|
346
359
|
peekNextMonth: true,
|
|
347
|
-
// @ts-ignore
|
|
360
|
+
// @ts-ignore -- default value is null before a date is selected
|
|
348
361
|
value: null,
|
|
349
362
|
};
|
|
350
363
|
return Day;
|
|
@@ -8,7 +8,7 @@ export default class SelectDropdown extends Component<DropdownProps> {
|
|
|
8
8
|
$multi: boolean;
|
|
9
9
|
$required: boolean;
|
|
10
10
|
$searchable: boolean;
|
|
11
|
-
$size: "
|
|
11
|
+
$size: "large" | "default" | "compact" | "mini";
|
|
12
12
|
$type: "search" | "select";
|
|
13
13
|
$width: number | null | undefined;
|
|
14
14
|
};
|
|
@@ -170,7 +170,7 @@ declare class Select extends Component<SelectProps, SelectState> {
|
|
|
170
170
|
$multi: boolean | undefined;
|
|
171
171
|
$required: boolean | undefined;
|
|
172
172
|
$searchable: boolean | undefined;
|
|
173
|
-
$size: "
|
|
173
|
+
$size: "large" | "default" | "compact" | "mini";
|
|
174
174
|
$type: "search" | "select" | undefined;
|
|
175
175
|
$isEmpty: boolean;
|
|
176
176
|
$limitTags: number | undefined;
|
|
@@ -10,9 +10,9 @@ declare const ButtonGroup: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
10
10
|
} | undefined;
|
|
11
11
|
selected?: number | number[] | undefined;
|
|
12
12
|
shape?: import("../button").Shape | undefined;
|
|
13
|
-
size?: ("medium" | "
|
|
13
|
+
size?: ("medium" | ("sm" | "xxxxs" | "xxxs" | "xxs" | "xs" | "md" | "lg" | "xl")) | undefined;
|
|
14
14
|
bordered?: boolean | undefined;
|
|
15
|
-
layout?: ("
|
|
15
|
+
layout?: ("vertical" | "horizontal") | undefined;
|
|
16
16
|
intent?: import("..").Intent | undefined;
|
|
17
17
|
variant?: import("..").Variant | import("../button/IconTextButton").Variant | undefined;
|
|
18
18
|
activateOnFocus?: boolean | undefined;
|
|
@@ -10,9 +10,9 @@ declare const StatefulButtonGroup: import("react").ForwardRefExoticComponent<Omi
|
|
|
10
10
|
} | undefined;
|
|
11
11
|
selected?: number | number[] | undefined;
|
|
12
12
|
shape?: import("../button").Shape | undefined;
|
|
13
|
-
size?: ("medium" | "
|
|
13
|
+
size?: ("medium" | ("sm" | "xxxxs" | "xxxs" | "xxs" | "xs" | "md" | "lg" | "xl")) | undefined;
|
|
14
14
|
bordered?: boolean | undefined;
|
|
15
|
-
layout?: ("
|
|
15
|
+
layout?: ("vertical" | "horizontal") | undefined;
|
|
16
16
|
intent?: import("..").Intent | undefined;
|
|
17
17
|
variant?: import("..").Variant | import("../button/IconTextButton").Variant | undefined;
|
|
18
18
|
activateOnFocus?: boolean | undefined;
|
|
@@ -15,9 +15,9 @@ export declare const renderButtonGroupChild: (buttonGroupProps: Omit<{
|
|
|
15
15
|
} | undefined;
|
|
16
16
|
selected?: number | number[] | undefined;
|
|
17
17
|
shape?: import("../button").Shape | undefined;
|
|
18
|
-
size?: ("medium" | "
|
|
18
|
+
size?: ("medium" | ("sm" | "xxxxs" | "xxxs" | "xxs" | "xs" | "md" | "lg" | "xl")) | undefined;
|
|
19
19
|
bordered?: boolean | undefined;
|
|
20
|
-
layout?: ("
|
|
20
|
+
layout?: ("vertical" | "horizontal") | undefined;
|
|
21
21
|
intent?: import("../types").Intent | undefined;
|
|
22
22
|
variant?: import("../types").Variant | import("../button/IconTextButton").Variant | undefined;
|
|
23
23
|
activateOnFocus?: boolean | undefined;
|
package/button-group/types.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ type ButtonGroupOverrides = {
|
|
|
7
7
|
Root?: Override<any>;
|
|
8
8
|
};
|
|
9
9
|
type Mode = 'checkbox' | 'radio';
|
|
10
|
-
|
|
10
|
+
/** @deprecated Use 'medium' instead. */
|
|
11
|
+
type DeprecatedButtonGroupSize = Exclude<Size, 'small' | 'medium' | 'large' | 'x-large'>;
|
|
12
|
+
type ButtonGroupSize = DeprecatedButtonGroupSize | 'medium';
|
|
11
13
|
type Layout = 'horizontal' | 'vertical';
|
|
12
14
|
export type ButtonGroupProps = SpacewebComponentProps<{
|
|
13
15
|
children?: React.ReactNode;
|
|
@@ -21,7 +23,7 @@ export type ButtonGroupProps = SpacewebComponentProps<{
|
|
|
21
23
|
size?: ButtonGroupSize;
|
|
22
24
|
bordered?: boolean;
|
|
23
25
|
layout?: Layout;
|
|
24
|
-
/** @deprecated */
|
|
26
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
25
27
|
intent?: Intent;
|
|
26
28
|
variant?: Variant | IconTextButtonVariant;
|
|
27
29
|
activateOnFocus?: boolean;
|
|
@@ -38,7 +40,7 @@ export type ButtonGroupChildProps = {
|
|
|
38
40
|
shape?: Shape;
|
|
39
41
|
bordered?: boolean;
|
|
40
42
|
layout?: Layout;
|
|
41
|
-
/** @deprecated */
|
|
43
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
42
44
|
intent?: Intent;
|
|
43
45
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
44
46
|
overrides?: Overrides<ButtonSharedProps>;
|
|
@@ -51,7 +53,7 @@ export type StatefulButtonGroupProps = ButtonGroupProps & {
|
|
|
51
53
|
initialState?: number[];
|
|
52
54
|
};
|
|
53
55
|
export type ButtonGroupSharedProps = {
|
|
54
|
-
/** @deprecated */
|
|
56
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
55
57
|
$intent?: Intent;
|
|
56
58
|
$variant?: Variant | IconTextButtonVariant;
|
|
57
59
|
$shape?: Shape;
|
package/checkbox/types.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import type { Intent, SpacewebComponentProps } from '../types';
|
|
|
6
6
|
import type { STYLE_TYPE } from './constants';
|
|
7
7
|
export type StyleType = keyof typeof STYLE_TYPE;
|
|
8
8
|
export type LabelPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
9
|
-
/** @deprecated */
|
|
9
|
+
/** @deprecated Use 'medium' or 'large' instead. */
|
|
10
10
|
type DeprecatedCheckboxSize = 'sm' | 'md' | 'lg';
|
|
11
11
|
export type CheckboxSize = 'medium' | 'large' | DeprecatedCheckboxSize;
|
|
12
|
-
/** @deprecated */
|
|
12
|
+
/** @deprecated Use 'default' or 'error' instead. */
|
|
13
13
|
type DeprecatedIntent = 'success' | 'warning' | 'ai';
|
|
14
14
|
export type CheckboxIntent = Exclude<Intent, DeprecatedIntent> | DeprecatedIntent;
|
|
15
15
|
export type CheckboxReducerState = {
|
|
@@ -24,7 +24,7 @@ export type SharedProps = Omit<BaseSharedProps, '$size' | '$adjoined'> & {
|
|
|
24
24
|
$isHovered: boolean;
|
|
25
25
|
$isIndeterminate: boolean;
|
|
26
26
|
$size: CheckboxSize;
|
|
27
|
-
/** @deprecated */
|
|
27
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'right'. */
|
|
28
28
|
$labelPlacement: LabelPlacement;
|
|
29
29
|
};
|
|
30
30
|
export type CheckboxOverrides = {
|
|
@@ -59,7 +59,7 @@ type BaseCheckboxProps = {
|
|
|
59
59
|
name?: string;
|
|
60
60
|
value?: string;
|
|
61
61
|
isIndeterminate?: boolean;
|
|
62
|
-
/** @deprecated */
|
|
62
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'right'. */
|
|
63
63
|
labelPlacement?: LabelPlacement;
|
|
64
64
|
title?: string | null;
|
|
65
65
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
package/date-input/DateInput.js
CHANGED