@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,185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.describeDialogKeyboard = exports.describeRovingKeyboard = exports.describeRadioGroupKeyboard = exports.describeToggleKeyboard = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = require("@testing-library/react");
6
+ var focusLock_1 = require("./focusLock");
7
+ var press_1 = require("./press");
8
+ function describeToggleKeyboard(options) {
9
+ var role = options.role, renderEnabled = options.renderEnabled, renderDisabled = options.renderDisabled;
10
+ test('Tab moves focus onto the control', function () {
11
+ renderEnabled();
12
+ var control = react_1.screen.getByRole(role);
13
+ (0, press_1.tab)();
14
+ expect(control).toHaveFocus();
15
+ });
16
+ test('Space checks the control', function () {
17
+ renderEnabled();
18
+ var control = react_1.screen.getByRole(role);
19
+ (0, press_1.tab)();
20
+ (0, press_1.press)('Space');
21
+ expect(control).toBeChecked();
22
+ });
23
+ test('Enter does not check the control', function () {
24
+ renderEnabled();
25
+ var control = react_1.screen.getByRole(role);
26
+ (0, press_1.tab)();
27
+ (0, press_1.press)('Enter');
28
+ expect(control).not.toBeChecked();
29
+ });
30
+ test('Space does not check a disabled control', function () {
31
+ renderDisabled();
32
+ var control = react_1.screen.getByRole(role);
33
+ (0, react_1.act)(function () {
34
+ control.focus();
35
+ });
36
+ (0, press_1.press)('Space');
37
+ expect(control).not.toBeChecked();
38
+ });
39
+ }
40
+ exports.describeToggleKeyboard = describeToggleKeyboard;
41
+ function describeRadioGroupKeyboard(options) {
42
+ test('Tab focuses the first radio when none is selected', function () {
43
+ options.renderGroup();
44
+ var _a = tslib_1.__read(react_1.screen.getAllByRole('radio'), 2), first = _a[0], second = _a[1];
45
+ (0, press_1.tab)();
46
+ expect(first).toHaveFocus();
47
+ expect(second).toHaveAttribute('tabindex', '-1');
48
+ });
49
+ test('Tab focuses the selected radio', function () {
50
+ options.renderGroup({ value: 'pear' });
51
+ var _a = tslib_1.__read(react_1.screen.getAllByRole('radio'), 2), first = _a[0], second = _a[1];
52
+ (0, press_1.tab)();
53
+ expect(second).toHaveFocus();
54
+ expect(first).toHaveAttribute('tabindex', '-1');
55
+ });
56
+ test('Tab leaves the group from the active radio', function () {
57
+ options.renderGroup({ value: 'pear' });
58
+ var second = react_1.screen.getAllByRole('radio')[1];
59
+ (0, press_1.tab)();
60
+ expect(second).toHaveFocus();
61
+ (0, press_1.tab)();
62
+ expect(react_1.screen.getByRole('button', { name: 'After' })).toHaveFocus();
63
+ });
64
+ test('Space selects the active radio', function () {
65
+ options.renderGroup();
66
+ var first = react_1.screen.getAllByRole('radio')[0];
67
+ (0, press_1.tab)();
68
+ (0, press_1.press)('Space');
69
+ expect(first).toBeChecked();
70
+ });
71
+ test('Space does not select a radio in a disabled group', function () {
72
+ options.renderGroup({ disabled: true });
73
+ var first = react_1.screen.getAllByRole('radio')[0];
74
+ (0, react_1.act)(function () {
75
+ first.focus();
76
+ });
77
+ (0, press_1.press)('Space');
78
+ expect(first).not.toBeChecked();
79
+ });
80
+ }
81
+ exports.describeRadioGroupKeyboard = describeRadioGroupKeyboard;
82
+ /**
83
+ * Roving focus across `setup()` stops. The first stop is the tab entry.
84
+ * `setup` must return at least three stops in keyboard order.
85
+ */
86
+ function describeRovingKeyboard(options) {
87
+ var name = options.name, setup = options.setup, nextKey = options.nextKey, previousKey = options.previousKey, _a = options.ignoredKeys, ignoredKeys = _a === void 0 ? [] : _a;
88
+ describe(name, function () {
89
+ test("".concat(nextKey, " moves to the next stop and wraps to the first"), function () {
90
+ var stops = setup();
91
+ (0, press_1.tab)();
92
+ expect(stops[0]).toHaveFocus();
93
+ (0, press_1.press)(nextKey);
94
+ expect(stops[1]).toHaveFocus();
95
+ (0, press_1.press)(nextKey);
96
+ expect(stops[2]).toHaveFocus();
97
+ (0, press_1.press)(nextKey);
98
+ expect(stops[0]).toHaveFocus();
99
+ });
100
+ test("".concat(previousKey, " wraps from the first stop to the last"), function () {
101
+ var stops = setup();
102
+ (0, press_1.tab)();
103
+ (0, press_1.press)(previousKey);
104
+ expect(stops[stops.length - 1]).toHaveFocus();
105
+ });
106
+ test('Home moves to the first stop and End moves to the last', function () {
107
+ var stops = setup();
108
+ (0, press_1.tab)();
109
+ (0, press_1.press)('End');
110
+ expect(stops[stops.length - 1]).toHaveFocus();
111
+ (0, press_1.press)('Home');
112
+ expect(stops[0]).toHaveFocus();
113
+ });
114
+ if (ignoredKeys.length > 0) {
115
+ test("".concat(ignoredKeys.join(', '), " do not move focus"), function () {
116
+ var stops = setup();
117
+ (0, press_1.tab)();
118
+ ignoredKeys.forEach(function (key) {
119
+ (0, press_1.press)(key);
120
+ expect(stops[0]).toHaveFocus();
121
+ });
122
+ });
123
+ }
124
+ });
125
+ }
126
+ exports.describeRovingKeyboard = describeRovingKeyboard;
127
+ function describeDialogKeyboard(options) {
128
+ var _this = this;
129
+ test('Escape closes a closeable dialog', function () {
130
+ options.mount();
131
+ (0, press_1.press)('Escape');
132
+ expect(react_1.screen.queryByRole('dialog')).toBeNull();
133
+ });
134
+ test('Escape does not close a dialog that is not closeable', function () {
135
+ options.mount({ closeable: false });
136
+ (0, press_1.press)('Escape');
137
+ react_1.screen.getByRole('dialog');
138
+ });
139
+ test('autoFocus moves focus to the first control inside the dialog', function () {
140
+ var first = options.mount().first;
141
+ expect(first).toHaveFocus();
142
+ });
143
+ test('autoFocus false leaves the first control unfocused', function () {
144
+ var first = options.mount({ autoFocus: false }).first;
145
+ expect(first).not.toHaveFocus();
146
+ });
147
+ test('Tab moves through the dialog controls', function () {
148
+ var _a = options.mount(), first = _a.first, last = _a.last;
149
+ expect(first).toHaveFocus();
150
+ (0, press_1.tab)();
151
+ expect(react_1.screen.getByRole('button', { name: 'Second' })).toHaveFocus();
152
+ (0, press_1.tab)();
153
+ expect(last).toHaveFocus();
154
+ });
155
+ test('focus stays locked inside the dialog', function () {
156
+ var _a = options.mount(), first = _a.first, last = _a.last;
157
+ expect((0, focusLock_1.isFocusLocked)({ first: first, last: last })).toBe(true);
158
+ });
159
+ test('Tab does not wrap inside the dialog when focus is not locked', function () {
160
+ var _a = options.mount({ focusLock: false }), first = _a.first, last = _a.last;
161
+ expect((0, focusLock_1.isFocusLocked)({ first: first, last: last })).toBe(false);
162
+ });
163
+ test('Escape returns focus to the trigger', function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
164
+ var trigger;
165
+ return tslib_1.__generator(this, function (_a) {
166
+ switch (_a.label) {
167
+ case 0:
168
+ trigger = options.openFromTrigger();
169
+ (0, press_1.tab)();
170
+ expect(trigger).toHaveFocus();
171
+ (0, press_1.press)('Enter');
172
+ expect(react_1.screen.getByRole('dialog')).toBeTruthy();
173
+ (0, press_1.press)('Escape');
174
+ return [4 /*yield*/, (0, react_1.waitFor)(function () {
175
+ expect(react_1.screen.queryByRole('dialog')).toBeNull();
176
+ expect(trigger).toHaveFocus();
177
+ })];
178
+ case 1:
179
+ _a.sent();
180
+ return [2 /*return*/];
181
+ }
182
+ });
183
+ }); });
184
+ }
185
+ exports.describeDialogKeyboard = describeDialogKeyboard;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Keys the keyboard harness can press. Add a key here when a new pattern needs it.
3
+ * Tab uses `userEvent.tab()` — `{Tab}` is not a substitute.
4
+ */
5
+ export type KeyboardKey = 'Enter' | 'Space' | 'Escape' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'Home' | 'End';
6
+ export declare function press(key: KeyboardKey, modifiers?: {
7
+ shift?: boolean;
8
+ }): void;
9
+ /** Types into the focused element. Does not click or move focus. */
10
+ export declare function type(text: string): void;
11
+ export declare function tab(): void;
12
+ export declare function shiftTab(): void;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shiftTab = exports.tab = exports.type = exports.press = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var user_event_1 = tslib_1.__importDefault(require("@testing-library/user-event"));
6
+ function keyToken(key) {
7
+ return key === 'Space' ? '{space}' : "{".concat(key, "}");
8
+ }
9
+ function press(key, modifiers) {
10
+ var token = keyToken(key);
11
+ if (modifiers === null || modifiers === void 0 ? void 0 : modifiers.shift) {
12
+ user_event_1.default.keyboard("{Shift>}".concat(token, "{/Shift}"));
13
+ return;
14
+ }
15
+ user_event_1.default.keyboard(token);
16
+ }
17
+ exports.press = press;
18
+ /** Types into the focused element. Does not click or move focus. */
19
+ function type(text) {
20
+ user_event_1.default.keyboard(text);
21
+ }
22
+ exports.type = type;
23
+ function tab() {
24
+ user_event_1.default.tab();
25
+ }
26
+ exports.tab = tab;
27
+ function shiftTab() {
28
+ user_event_1.default.tab({ shift: true });
29
+ }
30
+ exports.shiftTab = shiftTab;
@@ -1,13 +1,17 @@
1
1
  import type { Ref } from 'react';
2
- import type { InputVariant, FocusPosition, BaseInputProps, StatefulContainerProps, ENHANCER_POSITION, Adjoined, InputSize } from '../input';
2
+ import type { FocusPosition, BaseInputProps, StatefulContainerProps, ENHANCER_POSITION, Adjoined } from '../input';
3
3
  import type { Intent, SpacewebComponentProps } from '../types';
4
4
  import type { Override } from '../overrides';
5
5
  import type { Properties } from 'csstype';
6
6
  export type BaseTextareaProps = BaseInputProps<HTMLTextAreaElement>;
7
- export type TextareaProps = SpacewebComponentProps<Omit<BaseTextareaProps, 'size' | 'overrides' | 'autoFocus' | 'inputRef'>> & {
7
+ /** @deprecated Use 'medium' instead. */
8
+ type DeprecatedTextareaSize = 'xxxs' | 'xs' | 'sm' | 'md' | 'lg';
9
+ type TextareaSize = DeprecatedTextareaSize | 'medium';
10
+ type TextareaVariant = 'default' | 'line';
11
+ export type TextareaProps = SpacewebComponentProps<Omit<BaseTextareaProps, 'size' | 'overrides' | 'autoFocus' | 'inputRef' | 'variant'>> & {
8
12
  resize?: Properties['resize'];
9
- size?: InputSize;
10
- variant?: InputVariant;
13
+ size?: TextareaSize;
14
+ variant?: TextareaVariant;
11
15
  rows?: number;
12
16
  overrides?: {
13
17
  [key in keyof Required<BaseTextareaProps>['overrides']]?: Override<any>;
@@ -34,7 +38,7 @@ export type SharedProps = {
34
38
  /** Defines styles for inputs that are grouped with other controls. */
35
39
  $adjoined: Adjoined;
36
40
  /** Renders UI in provided size. */
37
- $size: InputSize;
41
+ $size: TextareaSize;
38
42
  /** Renders UI in 'required' state */
39
43
  $required?: boolean;
40
44
  $resize?: Properties['resize'];
@@ -42,3 +46,4 @@ export type SharedProps = {
42
46
  /** Defines if has a clearable or MaskToggleButton at the end */
43
47
  $hasIconTrailing?: boolean;
44
48
  };
49
+ export {};
@@ -41,7 +41,7 @@ declare const DisabledTooltipContainer: {
41
41
  }) => React.ReactNode);
42
42
  targetElement?: HTMLElement | null | undefined;
43
43
  triggerType?: import("./types").TriggerType | undefined;
44
- placement?: "auto" | "bottom" | "left" | "right" | "top" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
44
+ placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
45
45
  viewportAsBoundary?: boolean | undefined;
46
46
  autoFocus?: boolean | undefined;
47
47
  returnFocus?: boolean | FocusOptions | ((returnTo: Element) => boolean | FocusOptions) | undefined;
@@ -41,7 +41,7 @@ declare const StatefulContainer: {
41
41
  }) => React.ReactNode);
42
42
  targetElement?: HTMLElement | null | undefined;
43
43
  triggerType?: import("./types").TriggerType | undefined;
44
- placement?: "auto" | "bottom" | "left" | "right" | "top" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
44
+ placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
45
45
  viewportAsBoundary?: boolean | undefined;
46
46
  autoFocus?: boolean | undefined;
47
47
  returnFocus?: boolean | FocusOptions | ((returnTo: Element) => boolean | FocusOptions) | undefined;
@@ -44,7 +44,7 @@ declare const StatefulTooltip: {
44
44
  }) => React.ReactNode);
45
45
  targetElement?: HTMLElement | null | undefined;
46
46
  triggerType?: import("./types").TriggerType | undefined;
47
- placement?: "auto" | "bottom" | "left" | "right" | "top" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
47
+ placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
48
48
  viewportAsBoundary?: boolean | undefined;
49
49
  autoFocus?: boolean | undefined;
50
50
  size?: import("./types").Size | undefined;
@@ -5,39 +5,27 @@ import type { Override } from '../overrides';
5
5
  import type { TriggerType } from '../popover';
6
6
  import type { Action, Intent } from '../types';
7
7
  type SpacewebSharedProps = {
8
- /** @deprecated */
8
+ /** @deprecated Not supported in Hyperspace. Defaults to 'sm'. */
9
9
  $size: Size;
10
- /** @deprecated */
10
+ /** @deprecated Not supported in Hyperspace. */
11
11
  $label: boolean;
12
- /** @deprecated */
12
+ /** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
13
13
  $intent: Intent;
14
14
  };
15
15
  export type Size = 'sm' | 'md' | 'lg' | '50vw';
16
16
  export type SharedProps = SharedStylePropsArg & SpacewebSharedProps;
17
17
  interface DeprecatedProps {
18
- /**
19
- * @deprecated
20
- */
18
+ /** @deprecated Not supported in Hyperspace. */
21
19
  autoFocus?: BaseTooltipProps['autoFocus'];
22
- /**
23
- * @deprecated
24
- */
20
+ /** @deprecated Not supported in Hyperspace. */
25
21
  returnFocus?: BaseTooltipProps['returnFocus'];
26
- /**
27
- * @deprecated
28
- */
22
+ /** @deprecated Not supported in Hyperspace. */
29
23
  focusLock?: BaseTooltipProps['focusLock'];
30
- /**
31
- * @deprecated
32
- */
24
+ /** @deprecated Not supported in Hyperspace. Defaults to 'sm'. */
33
25
  size?: Size;
34
- /**
35
- * @deprecated
36
- */
26
+ /** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
37
27
  intent?: Intent;
38
- /**
39
- * @deprecated
40
- */
28
+ /** @deprecated Not supported in Hyperspace. */
41
29
  label?: React.ReactNode;
42
30
  }
43
31
  export type StatefulTooltipProps = Omit<BaseStatefulTooltipProps, 'overrides' | 'children' | 'autoFocus' | 'focusLock' | 'returnFocus' | 'dismissOnEsc' | 'dismissOnClickOutside' | 'triggerType' | 'placement'> & {