@sprinklrjs/spaceweb 14.16.2 → 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/types.d.ts +1 -1
- package/banner/types.d.ts +1 -1
- 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-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/types.d.ts +1 -1
- package/esm/banner/types.d.ts +1 -1
- 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-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/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 +2 -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/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
package/esm/menu/SubMenu.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ declare const SubMenu: import("react").ForwardRefExoticComponent<Omit<MenuProps,
|
|
|
98
98
|
}) => ReactNode);
|
|
99
99
|
targetElement?: HTMLElement | null | undefined;
|
|
100
100
|
triggerType?: import("../popover").TriggerType | undefined;
|
|
101
|
-
placement?: "
|
|
101
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
102
102
|
innerRef?: import("react").Ref<HTMLElement> | undefined;
|
|
103
103
|
viewportAsBoundary?: boolean | undefined;
|
|
104
104
|
} & Record<string, any>> | undefined;
|
package/esm/menu/menu-item.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
|
46
46
|
}) => React.ReactNode);
|
|
47
47
|
targetElement?: HTMLElement | null | undefined;
|
|
48
48
|
triggerType?: import("../popover").TriggerType | undefined;
|
|
49
|
-
placement?: "
|
|
49
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
50
50
|
innerRef?: React.Ref<HTMLElement> | undefined;
|
|
51
51
|
viewportAsBoundary?: boolean | undefined;
|
|
52
52
|
} & Record<string, any>> | undefined;
|
package/esm/menu/types.d.ts
CHANGED
|
@@ -73,9 +73,7 @@ export type MenuProps = Omit<ListProps, 'overrides'> & {
|
|
|
73
73
|
* If true, none of the MenuItem will be highlighted when mouse leaves the Menu.
|
|
74
74
|
*/
|
|
75
75
|
resetMenuHighlightOnMouseLeave?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated This prop will be removed. use resetMenuHighlightOnMouseLeave
|
|
78
|
-
*/
|
|
76
|
+
/** @deprecated Use resetMenuHighlightOnMouseLeave instead. */
|
|
79
77
|
resetMenuOnMouseLeave?: boolean;
|
|
80
78
|
reducer?: Reducer;
|
|
81
79
|
captureScroll?: boolean;
|
package/esm/modal/types.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import type { ModalOverrides, ModalProps as BaseModalProps, SharedStylePropsArg } from '../baseui/modal';
|
|
3
3
|
import type { Override } from '../overrides';
|
|
4
4
|
import type { Intent as BaseIntent, SpacewebComponentProps } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Only 'medium' is supported as a new default size.
|
|
7
|
-
*/
|
|
8
5
|
export type Size = 'medium' | 'sm' | 'md' | 'lg' | 'fullPage';
|
|
9
6
|
export type Role = 'dialog' | 'alertdialog';
|
|
10
7
|
export type SharedProps = Omit<SharedStylePropsArg, '$size'> & {
|
|
@@ -19,9 +16,7 @@ export type ModalProps = Omit<BaseModalProps, 'overrides' | 'size' | 'role'> & {
|
|
|
19
16
|
overrides?: {
|
|
20
17
|
[key in keyof ModalOverrides]?: Override<SharedProps & Record<string, any>>;
|
|
21
18
|
};
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated 'size' is deprecated and the 'md' sizing is the new default.
|
|
24
|
-
*/
|
|
19
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'medium'. */
|
|
25
20
|
size?: Size;
|
|
26
21
|
role?: Role;
|
|
27
22
|
/** Explicit accessible label for the dialog. Defaults to "dialog" when no labelled-by target is available. */
|
package/esm/popover/popover.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare const Popover: React.ForwardRefExoticComponent<Omit<import("../baseui/po
|
|
|
13
13
|
}) => React.ReactNode);
|
|
14
14
|
targetElement?: HTMLElement | null | undefined;
|
|
15
15
|
triggerType?: import("./types").TriggerType | undefined;
|
|
16
|
-
placement?: "
|
|
16
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
17
17
|
innerRef?: React.Ref<HTMLElement> | undefined;
|
|
18
18
|
viewportAsBoundary?: boolean | undefined;
|
|
19
19
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -25,6 +25,7 @@ export type ProgressStepsProps = Omit<SpacewebComponentProps, 'onClick'> & {
|
|
|
25
25
|
alwaysShowDescription?: boolean;
|
|
26
26
|
orientation?: Orientation;
|
|
27
27
|
onClick?: (event: MouseEvent<HTMLElement>, step?: number) => void;
|
|
28
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
28
29
|
variant?: Variants;
|
|
29
30
|
intent?: Intent;
|
|
30
31
|
role?: AriaRole;
|
|
@@ -61,6 +62,7 @@ export type StepProps = Omit<SpacewebComponentProps, 'title'> & {
|
|
|
61
62
|
orientation?: Orientation;
|
|
62
63
|
childrenCount?: number;
|
|
63
64
|
intent?: 'default' | 'error' | 'ai';
|
|
65
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
64
66
|
variant?: Variants;
|
|
65
67
|
role?: AriaRole;
|
|
66
68
|
/** The step number (1-indexed) */
|
package/esm/radio/types.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import type { OutlineProps } from '../helpers/commonStyles';
|
|
|
6
6
|
export type Alignment = 'horizontal' | 'vertical';
|
|
7
7
|
export type LabelPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
8
8
|
export type Align = keyof typeof ALIGN;
|
|
9
|
-
/** @deprecated */
|
|
9
|
+
/** @deprecated Use 'medium' or 'large' instead. */
|
|
10
10
|
type DeprecatedSize = 'sm' | 'md' | 'lg';
|
|
11
11
|
export type Size = 'medium' | 'large' | DeprecatedSize;
|
|
12
|
-
/** @deprecated */
|
|
12
|
+
/** @deprecated Use 'default' or 'error' instead. */
|
|
13
13
|
type DeprecatedRadioIntent = 'success' | 'warning' | 'ai';
|
|
14
14
|
export type RadioIntent = Exclude<Intent, DeprecatedRadioIntent> | DeprecatedRadioIntent;
|
|
15
15
|
export type Variant = 'default' | 'checked';
|
|
@@ -26,7 +26,7 @@ export type StatelessState = {
|
|
|
26
26
|
focusedRadioIndex: number;
|
|
27
27
|
};
|
|
28
28
|
export type SharedProps = {
|
|
29
|
-
/** @deprecated */
|
|
29
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'vertical'. */
|
|
30
30
|
$align?: Alignment;
|
|
31
31
|
$checked?: boolean;
|
|
32
32
|
$disabled?: boolean;
|
|
@@ -36,7 +36,7 @@ export type SharedProps = {
|
|
|
36
36
|
$isFocused?: boolean;
|
|
37
37
|
$isFocusVisible?: boolean;
|
|
38
38
|
$isHovered?: boolean;
|
|
39
|
-
/** @deprecated */
|
|
39
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'right'. */
|
|
40
40
|
$labelPlacement?: string;
|
|
41
41
|
$required?: boolean;
|
|
42
42
|
$value?: string;
|
|
@@ -56,7 +56,7 @@ export type RadioGroupOverrides = {
|
|
|
56
56
|
};
|
|
57
57
|
export type BaseRadioProps = {
|
|
58
58
|
autoFocus?: boolean;
|
|
59
|
-
/** @deprecated */
|
|
59
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'vertical'. */
|
|
60
60
|
align?: Align;
|
|
61
61
|
checked?: boolean;
|
|
62
62
|
children?: React.ReactNode;
|
|
@@ -69,7 +69,7 @@ export type BaseRadioProps = {
|
|
|
69
69
|
error?: boolean;
|
|
70
70
|
isFocused?: boolean;
|
|
71
71
|
isFocusVisible?: boolean;
|
|
72
|
-
/** @deprecated */
|
|
72
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'right'. */
|
|
73
73
|
labelPlacement?: 'top' | 'right' | 'bottom' | 'left';
|
|
74
74
|
name?: string;
|
|
75
75
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
@@ -98,10 +98,10 @@ export type BaseRadioGroupProps = {
|
|
|
98
98
|
required?: boolean;
|
|
99
99
|
error?: boolean;
|
|
100
100
|
autoFocus?: boolean;
|
|
101
|
-
/** @deprecated */
|
|
101
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'vertical'. */
|
|
102
102
|
align?: Align;
|
|
103
103
|
name?: string;
|
|
104
|
-
/** @deprecated */
|
|
104
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'right'. */
|
|
105
105
|
labelPlacement?: LabelPlacement;
|
|
106
106
|
id?: string;
|
|
107
107
|
size?: Size;
|
package/esm/search/types.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { InputOverrides, InputProps, SharedProps as InputSharedProps } from '../input/types';
|
|
2
2
|
import type { Override } from '../overrides';
|
|
3
|
-
/** @deprecated */
|
|
3
|
+
/** @deprecated Use 'small', 'medium', 'large' or 'x-large' instead. */
|
|
4
4
|
type DeprecatedSize = 'xxxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
5
5
|
export type Size = DeprecatedSize | 'small' | 'medium' | 'large' | 'x-large';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
| 'ai';
|
|
6
|
+
export type Variant = 'light'
|
|
7
|
+
/** @deprecated Use 'light' instead. */
|
|
8
|
+
| 'default';
|
|
9
|
+
export type Intent = 'default' | 'ai';
|
|
11
10
|
export type Shape = 'default' | 'pill';
|
|
12
11
|
export type SearchProps = Omit<InputProps, 'size' | 'type' | 'required' | 'variant' | 'intent' | 'startEnhancer' | 'endEnhancer' | 'overrides'> & {
|
|
13
12
|
size?: Size;
|
|
@@ -15,6 +14,7 @@ export type SearchProps = Omit<InputProps, 'size' | 'type' | 'required' | 'varia
|
|
|
15
14
|
debounceInterval?: number;
|
|
16
15
|
debouncedOnChange?: InputProps['onChange'];
|
|
17
16
|
variant?: Variant;
|
|
17
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
18
18
|
intent?: Intent;
|
|
19
19
|
shape?: Shape;
|
|
20
20
|
overrides?: {
|
|
@@ -44,7 +44,7 @@ declare class BaseSelect extends Component<BaseSelectProps & typeof defaultProps
|
|
|
44
44
|
type: "overlay" | import("./types").Type | "mobile";
|
|
45
45
|
value: Value;
|
|
46
46
|
valueKey: string;
|
|
47
|
-
placement: "
|
|
47
|
+
placement: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
48
48
|
virtual: boolean;
|
|
49
49
|
popoverMinWidth: string;
|
|
50
50
|
expandLimitTagsOnFocus: boolean;
|
|
@@ -35,7 +35,7 @@ declare const defaultProps: {
|
|
|
35
35
|
type: "overlay" | Type | "mobile";
|
|
36
36
|
value: Value;
|
|
37
37
|
valueKey: string;
|
|
38
|
-
placement: "
|
|
38
|
+
placement: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
39
39
|
virtual: boolean;
|
|
40
40
|
popoverMinWidth: string;
|
|
41
41
|
expandLimitTagsOnFocus: boolean;
|
|
@@ -39,7 +39,7 @@ declare const NestedSelect: {
|
|
|
39
39
|
type: "overlay" | import("./types").Type | "mobile";
|
|
40
40
|
value: import("./types").Value;
|
|
41
41
|
valueKey: string;
|
|
42
|
-
placement: "
|
|
42
|
+
placement: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
43
43
|
virtual: boolean;
|
|
44
44
|
popoverMinWidth: string;
|
|
45
45
|
expandLimitTagsOnFocus: boolean;
|
|
@@ -83,7 +83,7 @@ declare const NestedSelect: {
|
|
|
83
83
|
type: "overlay" | import("./types").Type | "mobile";
|
|
84
84
|
value: import("./types").Value;
|
|
85
85
|
valueKey: string;
|
|
86
|
-
placement: "
|
|
86
|
+
placement: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
87
87
|
virtual: boolean;
|
|
88
88
|
popoverMinWidth: string;
|
|
89
89
|
expandLimitTagsOnFocus: boolean;
|
package/esm/select/select.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare const Select: {
|
|
|
38
38
|
type: "overlay" | import("./types").Type | "mobile";
|
|
39
39
|
value: import("./types").Value;
|
|
40
40
|
valueKey: string;
|
|
41
|
-
placement: "
|
|
41
|
+
placement: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
42
42
|
virtual: boolean;
|
|
43
43
|
popoverMinWidth: string;
|
|
44
44
|
expandLimitTagsOnFocus: boolean;
|
|
@@ -83,7 +83,7 @@ export declare const CollapsibleSelectMenu: ({ overrides, value, items: groupedI
|
|
|
83
83
|
}) => ReactNode);
|
|
84
84
|
targetElement?: HTMLElement | null | undefined;
|
|
85
85
|
triggerType?: import("../../popover").TriggerType | undefined;
|
|
86
|
-
placement?: "
|
|
86
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
87
87
|
innerRef?: import("react").Ref<HTMLElement> | undefined;
|
|
88
88
|
viewportAsBoundary?: boolean | undefined;
|
|
89
89
|
} & Record<string, any>> | undefined;
|
|
@@ -54,7 +54,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
|
54
54
|
}) => React.ReactNode);
|
|
55
55
|
targetElement?: HTMLElement | null | undefined;
|
|
56
56
|
triggerType?: import("../../tooltip").TriggerType | undefined;
|
|
57
|
-
placement?: "
|
|
57
|
+
placement?: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
58
58
|
innerRef?: React.Ref<HTMLElement> | undefined;
|
|
59
59
|
viewportAsBoundary?: boolean | undefined;
|
|
60
60
|
} & Record<string, any>> | undefined;
|
|
@@ -38,7 +38,7 @@ declare namespace StatefulSelect {
|
|
|
38
38
|
type: "overlay" | import("./types").Type | "mobile";
|
|
39
39
|
value: import("./types").Value;
|
|
40
40
|
valueKey: string;
|
|
41
|
-
placement: "
|
|
41
|
+
placement: "right" | "top" | "auto" | "bottom" | "left" | "topLeft" | "topRight" | "rightTop" | "rightBottom" | "bottomRight" | "bottomLeft" | "leftBottom" | "leftTop" | undefined;
|
|
42
42
|
virtual: boolean;
|
|
43
43
|
popoverMinWidth: string;
|
|
44
44
|
expandLimitTagsOnFocus: boolean;
|
package/esm/select/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { Merge, SimpleUnionOmit } from '../type-utils';
|
|
|
12
12
|
import type { ButtonProps } from '../button';
|
|
13
13
|
import type { SubMenuItem, MenuItemActions } from '../menu/types';
|
|
14
14
|
import type { NoResultsMessageProps } from './no-results-message';
|
|
15
|
-
/** @deprecated */
|
|
15
|
+
/** @deprecated Use 'small' or 'medium' instead. */
|
|
16
16
|
type DeprecatedSize = 'xxxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
17
17
|
export type Size = 'small' | 'medium' | DeprecatedSize;
|
|
18
18
|
export type Type = 'select' | 'search';
|
package/esm/slider/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ type CommonSliderProps = {
|
|
|
17
17
|
'aria-label'?: string;
|
|
18
18
|
'aria-labelledby'?: string;
|
|
19
19
|
'aria-describedby'?: string;
|
|
20
|
-
/** @deprecated */
|
|
20
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
21
21
|
intent?: Intent;
|
|
22
22
|
markLabel?: boolean;
|
|
23
23
|
min?: number;
|
|
@@ -44,7 +44,7 @@ type CommonSliderProps = {
|
|
|
44
44
|
onFinalChange?: (a: Params) => unknown;
|
|
45
45
|
};
|
|
46
46
|
export type SharedProps = {
|
|
47
|
-
/** @deprecated */
|
|
47
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
48
48
|
$intent?: Intent;
|
|
49
49
|
$step: number;
|
|
50
50
|
$disabled?: boolean;
|
package/esm/stack/stack.d.ts
CHANGED
|
@@ -5,23 +5,23 @@ declare const Stack: React.ForwardRefExoticComponent<Omit<React.AllHTMLAttribute
|
|
|
5
5
|
className?: ClassName;
|
|
6
6
|
style?: import("../types").Styles;
|
|
7
7
|
} & {
|
|
8
|
-
direction?: ("
|
|
8
|
+
direction?: ("vertical" | "horizontal") | undefined;
|
|
9
9
|
gap: number;
|
|
10
10
|
} & Partial<{
|
|
11
11
|
sm: {
|
|
12
|
-
direction?: ("
|
|
12
|
+
direction?: ("vertical" | "horizontal") | undefined;
|
|
13
13
|
gap: number;
|
|
14
14
|
};
|
|
15
15
|
md: {
|
|
16
|
-
direction?: ("
|
|
16
|
+
direction?: ("vertical" | "horizontal") | undefined;
|
|
17
17
|
gap: number;
|
|
18
18
|
};
|
|
19
19
|
lg: {
|
|
20
|
-
direction?: ("
|
|
20
|
+
direction?: ("vertical" | "horizontal") | undefined;
|
|
21
21
|
gap: number;
|
|
22
22
|
};
|
|
23
23
|
xl: {
|
|
24
|
-
direction?: ("
|
|
24
|
+
direction?: ("vertical" | "horizontal") | undefined;
|
|
25
25
|
gap: number;
|
|
26
26
|
};
|
|
27
27
|
overrides: {
|
|
@@ -10,5 +10,5 @@ export interface UseScrollableTabsReturn {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const useScrollableTabs: ({ onScroll, layout, }: {
|
|
12
12
|
onScroll?: UIEventHandler<HTMLDivElement> | undefined;
|
|
13
|
-
layout?: "
|
|
13
|
+
layout?: "vertical" | "horizontal" | undefined;
|
|
14
14
|
}) => UseScrollableTabsReturn;
|
package/esm/tabs/types.d.ts
CHANGED
|
@@ -10,18 +10,17 @@ export type ChangEventHandler = (args: {
|
|
|
10
10
|
}) => void;
|
|
11
11
|
export type SharedPropsTab = {
|
|
12
12
|
$selected?: boolean;
|
|
13
|
-
/** @deprecated */
|
|
13
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'top'. */
|
|
14
14
|
$position?: position;
|
|
15
|
-
/** @deprecated */
|
|
15
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
16
16
|
$variant?: variant;
|
|
17
17
|
$disabled?: boolean;
|
|
18
18
|
};
|
|
19
19
|
export type SharedPropsTabs = {
|
|
20
|
-
/** @deprecated */
|
|
20
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'top'. */
|
|
21
21
|
$position?: position;
|
|
22
|
-
/** @deprecated */
|
|
22
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
23
23
|
$variant?: variant;
|
|
24
|
-
/** @deprecated - derived from position */
|
|
25
24
|
$layout?: 'vertical' | 'horizontal';
|
|
26
25
|
};
|
|
27
26
|
export type TabOverrides = {
|
|
@@ -42,9 +41,9 @@ export type TabListProps = Omit<SpacewebComponentProps, 'onChange'> & {
|
|
|
42
41
|
activeTabId?: React.Key;
|
|
43
42
|
children: React.ReactNode;
|
|
44
43
|
onChange?: ChangEventHandler;
|
|
45
|
-
/** @deprecated */
|
|
44
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'top'. */
|
|
46
45
|
position?: position;
|
|
47
|
-
/** @deprecated */
|
|
46
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
48
47
|
variant?: variant;
|
|
49
48
|
activateOnFocus?: boolean;
|
|
50
49
|
overrides?: TabsOverrides;
|
|
@@ -58,9 +57,9 @@ export type TabsPanelProps = SpacewebComponentProps & {
|
|
|
58
57
|
};
|
|
59
58
|
export type TabProps = TabsPanelProps & {
|
|
60
59
|
id?: React.Key;
|
|
61
|
-
/** @deprecated */
|
|
60
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'top'. */
|
|
62
61
|
position?: position;
|
|
63
|
-
/** @deprecated */
|
|
62
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'default'. */
|
|
64
63
|
variant?: variant;
|
|
65
64
|
overrides?: TabOverrides;
|
|
66
65
|
onClick?: (e: React.MouseEvent) => void;
|
package/esm/tag/types.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ import type { ClassName, SpacewebComponentProps } from '../types';
|
|
|
5
5
|
export type Intent = 'success' | 'error' | 'warning' | 'info' | 'default' | 'ai';
|
|
6
6
|
export type Appearance = 'gray' | 'white' | 'outline';
|
|
7
7
|
export type Variant = 'solid' | 'light';
|
|
8
|
-
|
|
8
|
+
/** @deprecated Use 'small', 'medium' or 'large' instead. */
|
|
9
|
+
type DeprecatedSize = 'xxxs' | 'sm' | 'lg';
|
|
10
|
+
export type Size = DeprecatedSize | 'small' | 'medium' | 'large';
|
|
9
11
|
export type Shape = 'default' | 'pill';
|
|
10
12
|
export type TagOverrides = {
|
|
11
13
|
Root?: Override<SharedProps & Record<string, any>>;
|
|
@@ -33,16 +35,12 @@ export type TagProps = SpacewebComponentProps<{
|
|
|
33
35
|
$size: Size;
|
|
34
36
|
$intent: Intent;
|
|
35
37
|
$appearance: Appearance;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated: Check designs for HDS 2.0
|
|
38
|
-
*/
|
|
38
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'light'. */
|
|
39
39
|
$variant: Variant;
|
|
40
40
|
}) => React.ReactNode);
|
|
41
41
|
intent?: Intent;
|
|
42
42
|
appearance?: Appearance;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated: Check designs for HDS 2.0
|
|
45
|
-
*/
|
|
43
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'light'. */
|
|
46
44
|
variant?: Variant;
|
|
47
45
|
size?: Size;
|
|
48
46
|
shape?: Shape;
|
|
@@ -64,11 +62,10 @@ export type SharedProps = {
|
|
|
64
62
|
$withChildren: boolean;
|
|
65
63
|
$intent?: Intent;
|
|
66
64
|
$appearance?: Appearance;
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated: Check designs for HDS 2.0
|
|
69
|
-
*/
|
|
65
|
+
/** @deprecated Not supported in Hyperspace. Defaults to 'light'. */
|
|
70
66
|
$variant?: Variant;
|
|
71
67
|
$size?: Size;
|
|
72
68
|
$shape?: Shape;
|
|
73
69
|
$addHoverStyles?: boolean;
|
|
74
70
|
};
|
|
71
|
+
export {};
|
package/esm/textarea/types.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { Ref } from 'react';
|
|
2
|
-
import type {
|
|
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
|
-
|
|
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?:
|
|
10
|
-
variant?:
|
|
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:
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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;
|
package/esm/tooltip/types.d.ts
CHANGED
|
@@ -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'> & {
|
package/esm/types.d.ts
CHANGED
|
@@ -63,10 +63,12 @@ export type BrowserFeaturesContext = {
|
|
|
63
63
|
* Variant Options
|
|
64
64
|
*/
|
|
65
65
|
export type Variant = 'primary' | 'secondary' | 'tertiary' | 'minimal';
|
|
66
|
+
/** @deprecated Use 'small', 'medium' or 'large' instead. */
|
|
67
|
+
type DeprecatedSize = 'xxxxs' | 'xxxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
66
68
|
/**
|
|
67
69
|
* Size Options
|
|
68
70
|
*/
|
|
69
|
-
export type Size =
|
|
71
|
+
export type Size = DeprecatedSize | 'small' | 'medium' | 'large' | 'x-large';
|
|
70
72
|
/**
|
|
71
73
|
* Intent Options
|
|
72
74
|
*/
|
|
@@ -112,3 +114,4 @@ export type Action = {
|
|
|
112
114
|
onClick: () => void;
|
|
113
115
|
startEnhancer?: ReactNode;
|
|
114
116
|
};
|
|
117
|
+
export {};
|
|
@@ -5,13 +5,72 @@ import type { TruncateWithTooltipProps } from '../truncateWithTooltip';
|
|
|
5
5
|
type TypographyBodyHeaderVariants = 'display' | 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'heading-7' | 'body-lg' | 'body-md' | 'body-sm' | 'body-xs';
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Prefer TypographyBodyHeaderVariants
|
|
8
|
+
* Deprecated variants are mapped to a variant of the same family. Line height and weight are ignored.
|
|
8
9
|
*/
|
|
9
|
-
type DeprecatedTypographyVariant =
|
|
10
|
+
type DeprecatedTypographyVariant =
|
|
11
|
+
/** @deprecated No matching variant exists. Use suitable heading variant. */
|
|
12
|
+
'h1'
|
|
13
|
+
/** @deprecated Use 'heading-4' instead. */
|
|
14
|
+
| 'h2'
|
|
15
|
+
/** @deprecated Use 'heading-5' instead. */
|
|
16
|
+
| 'h3'
|
|
17
|
+
/** @deprecated Use 'heading-7' instead. */
|
|
18
|
+
| 'h4'
|
|
19
|
+
/** @deprecated Use 'heading-7' instead. */
|
|
20
|
+
| 'h5'
|
|
21
|
+
/** @deprecated No matching variant exists. Use suitable heading variant. */
|
|
22
|
+
| 'h6'
|
|
23
|
+
/** @deprecated No matching variant exists. Use suitable heading variant. */
|
|
24
|
+
| 'h7'
|
|
25
|
+
/** @deprecated Use 'body-sm' instead. */
|
|
26
|
+
| 'bl1'
|
|
27
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
28
|
+
| 'bl2'
|
|
29
|
+
/** @deprecated Use 'body-xs' instead. */
|
|
30
|
+
| 'bl3'
|
|
31
|
+
/** @deprecated Use 'body-sm' instead. */
|
|
32
|
+
| 'bs1'
|
|
33
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
34
|
+
| 'bs2'
|
|
35
|
+
/** @deprecated Use 'body-xs' instead. */
|
|
36
|
+
| 'bs3'
|
|
37
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
38
|
+
| 'l1'
|
|
39
|
+
/** @deprecated Use 'body-xs' instead. */
|
|
40
|
+
| 'l2'
|
|
41
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
42
|
+
| 'l3'
|
|
43
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
44
|
+
| 'l4'
|
|
45
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
46
|
+
| 'body-8'
|
|
47
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
48
|
+
| 'body-10'
|
|
49
|
+
/** @deprecated Use 'body-xs' instead. */
|
|
50
|
+
| 'body-12'
|
|
51
|
+
/** @deprecated No matching variant exists. Use suitable body variant. */
|
|
52
|
+
| 'body-13'
|
|
53
|
+
/** @deprecated Use 'body-sm' instead. */
|
|
54
|
+
| 'body-14'
|
|
55
|
+
/** @deprecated Use 'body-md' instead. */
|
|
56
|
+
| 'body-16'
|
|
57
|
+
/** @deprecated Use 'heading-6' instead. */
|
|
58
|
+
| 'display-18'
|
|
59
|
+
/** @deprecated Use 'heading-5' instead. */
|
|
60
|
+
| 'display-20'
|
|
61
|
+
/** @deprecated Use 'heading-4' instead. */
|
|
62
|
+
| 'display-24'
|
|
63
|
+
/** @deprecated Use 'heading-3' instead. */
|
|
64
|
+
| 'display-28'
|
|
65
|
+
/** @deprecated Use 'heading-2' instead. */
|
|
66
|
+
| 'display-32'
|
|
67
|
+
/** @deprecated Use 'heading-1' instead. */
|
|
68
|
+
| 'display-40'
|
|
69
|
+
/** @deprecated No matching variant exists. Use suitable heading variant. */
|
|
70
|
+
| 'display-42';
|
|
10
71
|
export type TypographyVariant = TypographyBodyHeaderVariants | DeprecatedTypographyVariant;
|
|
11
72
|
export type FontWeight = 'regular' | 'semibold' | 'bold'
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Prefer regular or semibold
|
|
14
|
-
*/
|
|
73
|
+
/** @deprecated Use 'regular' or 'semibold' instead. */
|
|
15
74
|
| 'medium';
|
|
16
75
|
export type Intent = 'default' | 'ai';
|
|
17
76
|
export type TypographyProps = PropsWithChildren<SpacewebComponentProps> & {
|