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