burne-ui 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionParts.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionTypes.d.ts +4 -3
- package/dist/components/composite/Accordion/index.d.ts +2 -2
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +3 -2
- package/dist/components/composite/AlertDialog/index.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +5 -1
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +3 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/composite/Form/Form.d.ts +1 -1
- package/dist/components/composite/Form/formContext.d.ts +2 -1
- package/dist/components/composite/Form/formParts.d.ts +2 -2
- package/dist/components/composite/Form/formStyles.d.ts +9 -8
- package/dist/components/composite/Form/formTypes.d.ts +4 -3
- package/dist/components/composite/Form/index.d.ts +3 -3
- package/dist/components/composite/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/composite/RadioGroup/index.d.ts +1 -1
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +3 -2
- package/dist/components/composite/utils/optionGroupClassNames.d.ts +2 -1
- package/dist/components/core/Alert/Alert.d.ts +1 -1
- package/dist/components/core/Alert/alertContext.d.ts +2 -1
- package/dist/components/core/Alert/alertTypes.d.ts +2 -1
- package/dist/components/core/Alert/index.d.ts +1 -1
- package/dist/components/core/Avatar/Avatar.d.ts +1 -1
- package/dist/components/core/Avatar/avatarParts.d.ts +1 -1
- package/dist/components/core/Avatar/avatarTypes.d.ts +4 -3
- package/dist/components/core/Avatar/index.d.ts +2 -2
- package/dist/components/core/Badge/Badge.d.ts +1 -1
- package/dist/components/core/Badge/badgeParts.d.ts +1 -1
- package/dist/components/core/Badge/badgeTypes.d.ts +4 -3
- package/dist/components/core/Badge/index.d.ts +2 -2
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +4 -3
- package/dist/components/core/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/core/Button/Button.d.ts +1 -1
- package/dist/components/core/Button/buttonContext.d.ts +2 -1
- package/dist/components/core/Button/buttonTypes.d.ts +2 -1
- package/dist/components/core/Button/index.d.ts +1 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +10 -1
- package/dist/components/core/Calendar/calendarTypes.d.ts +3 -2
- package/dist/components/core/Card/Card.d.ts +1 -1
- package/dist/components/core/Card/cardTypes.d.ts +3 -2
- package/dist/components/core/Card/index.d.ts +1 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +4 -3
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +3 -2
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +5 -1
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +3 -2
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +3 -2
- package/dist/components/core/Dialog/dialogParts.d.ts +1 -1
- package/dist/components/core/Dialog/dialogTypes.d.ts +3 -2
- package/dist/components/core/Dialog/index.d.ts +1 -1
- package/dist/components/core/Disclosure/Disclosure.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureGroup.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +4 -3
- package/dist/components/core/Disclosure/index.d.ts +2 -2
- package/dist/components/core/Drawer/drawerParts.d.ts +1 -1
- package/dist/components/core/Drawer/drawerTypes.d.ts +3 -2
- package/dist/components/core/Drawer/index.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +2 -1
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +4 -3
- package/dist/components/core/Expandable/Expandable.d.ts +1 -1
- package/dist/components/core/Expandable/expandableTypes.d.ts +3 -2
- package/dist/components/core/Expandable/index.d.ts +1 -1
- package/dist/components/core/Field/Field.d.ts +1 -1
- package/dist/components/core/Field/fieldTypes.d.ts +5 -4
- package/dist/components/core/Field/index.d.ts +1 -1
- package/dist/components/core/Input/index.d.ts +1 -1
- package/dist/components/core/Input/inputControlParts.d.ts +1 -1
- package/dist/components/core/Input/inputTypes.d.ts +4 -3
- package/dist/components/core/Kbd/Kbd.d.ts +1 -1
- package/dist/components/core/Kbd/index.d.ts +1 -1
- package/dist/components/core/Kbd/kbdTypes.d.ts +5 -4
- package/dist/components/core/Label/labelTypes.d.ts +3 -2
- package/dist/components/core/Link/linkTypes.d.ts +3 -2
- package/dist/components/core/ListBox/listBoxAPI.d.ts +2 -1
- package/dist/components/core/ListBox/listBoxTypes.d.ts +4 -3
- package/dist/components/core/Loading/Loading.d.ts +1 -1
- package/dist/components/core/Loading/loadingTypes.d.ts +2 -1
- package/dist/components/core/Meter/meterTypes.d.ts +3 -2
- package/dist/components/core/Pagination/Pagination.d.ts +1 -1
- package/dist/components/core/Pagination/index.d.ts +1 -1
- package/dist/components/core/Pagination/paginationTypes.d.ts +3 -2
- package/dist/components/core/Popover/popoverTypes.d.ts +3 -2
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +3 -2
- package/dist/components/core/Radio/Radio.d.ts +1 -1
- package/dist/components/core/Radio/index.d.ts +1 -1
- package/dist/components/core/Radio/radioAPI.d.ts +2 -1
- package/dist/components/core/Radio/radioTypes.d.ts +4 -3
- package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +3 -2
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +7 -1
- package/dist/components/core/Select/selectTypes.d.ts +3 -2
- package/dist/components/core/SelectionIndicator/selectionIndicatorAPI.d.ts +2 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +2 -1
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +3 -2
- package/dist/components/core/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/core/Skeleton/index.d.ts +5 -5
- package/dist/components/core/Skeleton/skeletonParts.d.ts +4 -4
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +6 -5
- package/dist/components/core/Slider/sliderTypes.d.ts +4 -3
- package/dist/components/core/Surface/Surface.d.ts +1 -1
- package/dist/components/core/Surface/surfaceTypes.d.ts +2 -1
- package/dist/components/core/Switch/Switch.d.ts +1 -1
- package/dist/components/core/Switch/index.d.ts +2 -2
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchTypes.d.ts +5 -4
- package/dist/components/core/Switch/useSwitchRootState.d.ts +1 -1
- package/dist/components/core/Table/Table.d.ts +1 -1
- package/dist/components/core/Table/index.d.ts +1 -1
- package/dist/components/core/Table/tableTypes.d.ts +3 -2
- package/dist/components/core/Tabs/Tabs.d.ts +1 -1
- package/dist/components/core/Tabs/index.d.ts +1 -1
- package/dist/components/core/Tabs/tabsTypes.d.ts +3 -2
- package/dist/components/core/TextArea/textAreaTypes.d.ts +3 -2
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +3 -2
- package/dist/components/core/Toast/Toast.d.ts +1 -1
- package/dist/components/core/Toast/index.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +8 -7
- package/dist/components/core/Toast/useToastProviderState.d.ts +13 -1
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/core/ToggleButton/index.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +2 -1
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +8 -1
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +3 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -9
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/{themeRuntimeContext-BGPGJ9Al.cjs → themeRuntimeContext-BOseU2z2.cjs} +6 -6
- package/dist/{themeRuntimeContext-D_BFeuKg.js → themeRuntimeContext-lrK_tOjm.js} +506 -509
- package/dist/ui.css +30 -40
- package/dist/utils/prettify.d.ts +8 -0
- package/package.json +1 -1
|
@@ -3,19 +3,19 @@ export declare function SkeletonWave({ className, style }: SkeletonWaveProps): i
|
|
|
3
3
|
export declare const SkeletonCircle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
animation?: import('./skeletonTypes').SkeletonAnimation;
|
|
5
5
|
size?: string;
|
|
6
|
-
classNames?: import('./skeletonTypes').SkeletonCircleClassNames
|
|
6
|
+
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonCircleClassNames>;
|
|
7
7
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export declare const SkeletonText: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
animation?: import('./skeletonTypes').SkeletonAnimation;
|
|
10
10
|
lines?: number;
|
|
11
11
|
lastShort?: boolean;
|
|
12
|
-
classNames?: import('./skeletonTypes').SkeletonTextClassNames
|
|
12
|
+
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonTextClassNames>;
|
|
13
13
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export declare const SkeletonBlock: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
15
15
|
animation?: import('./skeletonTypes').SkeletonAnimation;
|
|
16
|
-
classNames?: import('./skeletonTypes').SkeletonBlockClassNames
|
|
16
|
+
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonBlockClassNames>;
|
|
17
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
18
|
export declare const SkeletonRegion: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
19
19
|
busy?: boolean;
|
|
20
|
-
classNames?: import('./skeletonTypes').SkeletonRegionClassNames
|
|
20
|
+
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonRegionClassNames>;
|
|
21
21
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
export type SkeletonAnimation = "pulse" | "wave" | "shimmer" | "none";
|
|
3
4
|
export type SkeletonRadius = "none" | "small" | "mid" | "full";
|
|
4
5
|
export type SkeletonClassNames = {
|
|
@@ -24,29 +25,29 @@ export type SkeletonRegionClassNames = {
|
|
|
24
25
|
export type SkeletonProps = HTMLAttributes<HTMLDivElement> & {
|
|
25
26
|
animation?: SkeletonAnimation;
|
|
26
27
|
radius?: SkeletonRadius;
|
|
27
|
-
classNames?: SkeletonClassNames
|
|
28
|
+
classNames?: Prettify<SkeletonClassNames>;
|
|
28
29
|
};
|
|
29
30
|
export type UseSkeletonRootStateProps = Pick<SkeletonProps, "animation" | "radius">;
|
|
30
31
|
export type SkeletonCircleProps = HTMLAttributes<HTMLDivElement> & {
|
|
31
32
|
animation?: SkeletonAnimation;
|
|
32
33
|
size?: string;
|
|
33
|
-
classNames?: SkeletonCircleClassNames
|
|
34
|
+
classNames?: Prettify<SkeletonCircleClassNames>;
|
|
34
35
|
};
|
|
35
36
|
export type SkeletonTextProps = HTMLAttributes<HTMLDivElement> & {
|
|
36
37
|
animation?: SkeletonAnimation;
|
|
37
38
|
lines?: number;
|
|
38
39
|
lastShort?: boolean;
|
|
39
|
-
classNames?: SkeletonTextClassNames
|
|
40
|
+
classNames?: Prettify<SkeletonTextClassNames>;
|
|
40
41
|
};
|
|
41
42
|
export type SkeletonBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
42
43
|
animation?: SkeletonAnimation;
|
|
43
|
-
classNames?: SkeletonBlockClassNames
|
|
44
|
+
classNames?: Prettify<SkeletonBlockClassNames>;
|
|
44
45
|
};
|
|
45
46
|
/** Semantic parent for loading placeholders — sets `aria-busy` / `aria-live`. */
|
|
46
47
|
export type SkeletonRegionProps = HTMLAttributes<HTMLDivElement> & {
|
|
47
48
|
/** When true, region is loading (`aria-busy`). Default `true`. */
|
|
48
49
|
busy?: boolean;
|
|
49
|
-
classNames?: SkeletonRegionClassNames
|
|
50
|
+
classNames?: Prettify<SkeletonRegionClassNames>;
|
|
50
51
|
};
|
|
51
52
|
export type SkeletonWaveProps = {
|
|
52
53
|
className?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, KeyboardEvent, PointerEvent, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
export type SliderOrientation = "horizontal" | "vertical";
|
|
3
4
|
export type SliderSize = "small" | "base" | "mid" | "large";
|
|
4
5
|
export type SliderThickness = number | string;
|
|
@@ -87,7 +88,7 @@ type SliderCommonProps = {
|
|
|
87
88
|
disabled?: boolean;
|
|
88
89
|
className?: string;
|
|
89
90
|
style?: CSSProperties;
|
|
90
|
-
classNames?: Pick<SliderClassNames, "track" | "rail" | "fill" | "thumb" | "thumbShell" | "mark"
|
|
91
|
+
classNames?: Prettify<Pick<SliderClassNames, "track" | "rail" | "fill" | "thumb" | "thumbShell" | "mark">>;
|
|
91
92
|
ariaLabel?: string;
|
|
92
93
|
children?: ReactNode;
|
|
93
94
|
} & Omit<HTMLAttributes<HTMLDivElement>, "children" | "className" | "style" | "defaultValue" | "value" | "dangerouslySetInnerHTML">;
|
|
@@ -113,10 +114,10 @@ export type SliderProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" |
|
|
|
113
114
|
valueText?: ReactNode;
|
|
114
115
|
hint?: ReactNode;
|
|
115
116
|
error?: ReactNode;
|
|
116
|
-
classNames?: SliderClassNames
|
|
117
|
+
classNames?: Prettify<SliderClassNames>;
|
|
117
118
|
} & (Partial<Omit<SliderSingleProps, "orientation" | "className" | "classNames">> | Partial<Omit<SliderRangeProps, "orientation" | "className" | "classNames">>);
|
|
118
119
|
export type SliderClassNamesProviderProps = {
|
|
119
|
-
classNames?: SliderClassNames
|
|
120
|
+
classNames?: Prettify<SliderClassNames>;
|
|
120
121
|
children: ReactNode;
|
|
121
122
|
};
|
|
122
123
|
export type SliderHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -4,5 +4,5 @@ export declare const Surface: import('react').ForwardRefExoticComponent<import('
|
|
|
4
4
|
shadow?: import('./surfaceTypes').SurfaceShadow;
|
|
5
5
|
padding?: import('./surfaceTypes').SurfacePadding;
|
|
6
6
|
radius?: import('./surfaceTypes').SurfaceRadius;
|
|
7
|
-
classNames?: import('./surfaceTypes').SurfaceClassNames
|
|
7
|
+
classNames?: import('../../..').Prettify<import('./surfaceTypes').SurfaceClassNames>;
|
|
8
8
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ShadowSize } from '../../../tokens/shadows';
|
|
3
4
|
export type SurfaceVariant = "default" | "secondary" | "tertiary" | "gloss";
|
|
4
5
|
export type SurfaceShadow = ShadowSize;
|
|
@@ -13,5 +14,5 @@ export type SurfaceProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
13
14
|
shadow?: SurfaceShadow;
|
|
14
15
|
padding?: SurfacePadding;
|
|
15
16
|
radius?: SurfaceRadius;
|
|
16
|
-
classNames?: SurfaceClassNames
|
|
17
|
+
classNames?: Prettify<SurfaceClassNames>;
|
|
17
18
|
};
|
|
@@ -11,7 +11,7 @@ export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<
|
|
|
11
11
|
size?: import('./switchGeometry').SwitchSize;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
className?: string;
|
|
14
|
-
classNames?: import('./switchTypes').SwitchClassNames
|
|
14
|
+
classNames?: import('../../..').Prettify<import('./switchTypes').SwitchClassNames>;
|
|
15
15
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
16
16
|
} & Partial<SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
17
17
|
export { SwitchControl, SwitchTrack, SwitchFill, SwitchThumb, SwitchIcon, SwitchContent, SwitchLabel, SwitchHint, SwitchError, };
|
|
@@ -8,7 +8,7 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
8
8
|
size?: import('./switchGeometry').SwitchSize;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
className?: string;
|
|
11
|
-
classNames?: import('./switchTypes').SwitchClassNames
|
|
11
|
+
classNames?: import('../../..').Prettify<import('./switchTypes').SwitchClassNames>;
|
|
12
12
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
13
13
|
} & Partial<import('./switchTypes').SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
14
14
|
Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "className" | "children"> & {
|
|
@@ -19,7 +19,7 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
19
19
|
color?: string;
|
|
20
20
|
gloss?: boolean;
|
|
21
21
|
className?: string;
|
|
22
|
-
classNames?: Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon"
|
|
22
|
+
classNames?: import('../../..').Prettify<Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
23
23
|
children?: import('react').ReactNode;
|
|
24
24
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
25
25
|
Track: typeof SwitchTrack;
|
|
@@ -7,6 +7,6 @@ export declare const SwitchControl: import('react').ForwardRefExoticComponent<Om
|
|
|
7
7
|
color?: string;
|
|
8
8
|
gloss?: boolean;
|
|
9
9
|
className?: string;
|
|
10
|
-
classNames?: Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon"
|
|
10
|
+
classNames?: import('../../..').Prettify<Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, PointerEvent, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { FieldErrorProps, FieldHintProps } from '../Field';
|
|
3
4
|
import { LabelProps } from '../Label';
|
|
4
5
|
import { SwitchSize } from './switchGeometry';
|
|
@@ -58,7 +59,7 @@ export type SwitchControlProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "ch
|
|
|
58
59
|
color?: string;
|
|
59
60
|
gloss?: boolean;
|
|
60
61
|
className?: string;
|
|
61
|
-
classNames?: Pick<SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon"
|
|
62
|
+
classNames?: Prettify<Pick<SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
62
63
|
children?: ReactNode;
|
|
63
64
|
};
|
|
64
65
|
export type SwitchTrackProps = HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -71,7 +72,7 @@ export type SwitchTrackProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
71
72
|
iconOff?: ReactNode;
|
|
72
73
|
iconOn?: ReactNode;
|
|
73
74
|
gloss?: boolean;
|
|
74
|
-
classNames?: Pick<SwitchClassNames, "track" | "fill" | "thumb" | "thumbShell" | "icon"
|
|
75
|
+
classNames?: Prettify<Pick<SwitchClassNames, "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
75
76
|
};
|
|
76
77
|
export type SwitchFillProps = HTMLAttributes<HTMLSpanElement>;
|
|
77
78
|
export type SwitchThumbProps = HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -91,7 +92,7 @@ export type SwitchProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children"
|
|
|
91
92
|
size?: SwitchSize;
|
|
92
93
|
disabled?: boolean;
|
|
93
94
|
className?: string;
|
|
94
|
-
classNames?: SwitchClassNames
|
|
95
|
+
classNames?: Prettify<SwitchClassNames>;
|
|
95
96
|
onPointerDown?: (e: PointerEvent<HTMLLabelElement>) => void;
|
|
96
97
|
};
|
|
97
98
|
export type SwitchSimpleProps = SwitchProps & SwitchControlProps;
|
|
@@ -102,7 +103,7 @@ export type SwitchLabelProps = Omit<LabelProps, "htmlFor">;
|
|
|
102
103
|
export type SwitchHintProps = Omit<FieldHintProps, "id" | "as">;
|
|
103
104
|
export type SwitchErrorProps = Omit<FieldErrorProps, "id" | "as">;
|
|
104
105
|
export type SwitchClassNamesProviderProps = {
|
|
105
|
-
classNames?: SwitchClassNames
|
|
106
|
+
classNames?: Prettify<SwitchClassNames>;
|
|
106
107
|
children: ReactNode;
|
|
107
108
|
};
|
|
108
109
|
export type UseSwitchRootStateProps = Omit<SwitchProps, "className" | "classNames" | "onPointerDown"> & Partial<SwitchControlProps>;
|
|
@@ -334,6 +334,6 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
334
334
|
iconOff?: import('react').ReactNode;
|
|
335
335
|
iconOn?: import('react').ReactNode;
|
|
336
336
|
gloss?: boolean | undefined;
|
|
337
|
-
classNames?: Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon"
|
|
337
|
+
classNames?: import('../../..').Prettify<Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon">> | undefined;
|
|
338
338
|
};
|
|
339
339
|
};
|
|
@@ -3,6 +3,6 @@ export type { TableProps, TableVariant, TableRowTone, TableScrollContainerProps,
|
|
|
3
3
|
export { TABLE_ROW_TONE_SURFACE } from './tableStyles';
|
|
4
4
|
export declare const TableRoot: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
variant?: import('./tableTypes').TableVariant;
|
|
6
|
-
classNames?: import('./tableTypes').TableClassNames
|
|
6
|
+
classNames?: import('../../..').Prettify<import('./tableTypes').TableClassNames>;
|
|
7
7
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export { TableScrollContainer, TableContent, TableHeader, TableHeaderRow, TableColumn, TableLabel, TableBody, TableRow, TableCell, TableFooter, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Table: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
2
2
|
variant?: import('./tableTypes').TableVariant;
|
|
3
|
-
classNames?: import('./tableTypes').TableClassNames
|
|
3
|
+
classNames?: import('../../..').Prettify<import('./tableTypes').TableClassNames>;
|
|
4
4
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
ScrollContainer: import('react').ForwardRefExoticComponent<import('./tableTypes').TableScrollContainerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
6
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLTableElement> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { TableRowTone } from './tableStyles';
|
|
3
4
|
export type { TableRowTone };
|
|
4
5
|
export type SortDirection = "ascending" | "descending";
|
|
@@ -28,7 +29,7 @@ export type TableClassNames = {
|
|
|
28
29
|
};
|
|
29
30
|
export type TableProps = HTMLAttributes<HTMLDivElement> & {
|
|
30
31
|
variant?: TableVariant;
|
|
31
|
-
classNames?: TableClassNames
|
|
32
|
+
classNames?: Prettify<TableClassNames>;
|
|
32
33
|
};
|
|
33
34
|
export type UseTableRootStateProps = Pick<TableProps, "variant">;
|
|
34
35
|
export type TableScrollContainerProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -103,6 +104,6 @@ export type TableRowContextValue = {
|
|
|
103
104
|
isSelected: boolean;
|
|
104
105
|
};
|
|
105
106
|
export type TableClassNamesProviderProps = {
|
|
106
|
-
classNames?: TableClassNames
|
|
107
|
+
classNames?: Prettify<TableClassNames>;
|
|
107
108
|
children: ReactNode;
|
|
108
109
|
};
|
|
@@ -9,6 +9,6 @@ export declare const TabsRoot: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
9
9
|
size?: import('./tabsTypes').TabsSize;
|
|
10
10
|
variant?: import('./tabsTypes').TabsVariant;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
classNames?: import('./tabsTypes').TabsClassNames
|
|
12
|
+
classNames?: import('../../..').Prettify<import('./tabsTypes').TabsClassNames>;
|
|
13
13
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export { TabsList, TabsTab, TabsPanel };
|
|
@@ -7,7 +7,7 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
7
7
|
size?: import('./tabsTypes').TabsSize;
|
|
8
8
|
variant?: import('./tabsTypes').TabsVariant;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
classNames?: import('./tabsTypes').TabsClassNames
|
|
10
|
+
classNames?: import('../../..').Prettify<import('./tabsTypes').TabsClassNames>;
|
|
11
11
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
12
|
List: import('react').ForwardRefExoticComponent<import('./tabsTypes').TabsListProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
13
|
Tab: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
4
|
export type TabsOrientation = "horizontal" | "vertical";
|
|
4
5
|
export type TabsVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -20,7 +21,7 @@ export type TabsProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & {
|
|
|
20
21
|
size?: TabsSize;
|
|
21
22
|
variant?: TabsVariant;
|
|
22
23
|
disabled?: boolean;
|
|
23
|
-
classNames?: TabsClassNames
|
|
24
|
+
classNames?: Prettify<TabsClassNames>;
|
|
24
25
|
};
|
|
25
26
|
export type UseTabsRootStateProps = Pick<TabsProps, "value" | "defaultValue" | "onValueChange" | "orientation" | "size" | "variant" | "disabled">;
|
|
26
27
|
export type TabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -46,6 +47,6 @@ export type TabsContextValue = {
|
|
|
46
47
|
notifyTabLayout: () => void;
|
|
47
48
|
};
|
|
48
49
|
export type TabsClassNamesProviderProps = {
|
|
49
|
-
classNames?: TabsClassNames
|
|
50
|
+
classNames?: Prettify<TabsClassNames>;
|
|
50
51
|
children: ReactNode;
|
|
51
52
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, PointerEventHandler, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
4
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
4
5
|
export type TextAreaVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -33,7 +34,7 @@ export type TextAreaFieldContextValue = {
|
|
|
33
34
|
size: TextAreaSize;
|
|
34
35
|
};
|
|
35
36
|
export type TextAreaClassNamesProviderProps = {
|
|
36
|
-
classNames?: TextAreaClassNames
|
|
37
|
+
classNames?: Prettify<TextAreaClassNames>;
|
|
37
38
|
children: ReactNode;
|
|
38
39
|
};
|
|
39
40
|
export type TextAreaProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -45,7 +46,7 @@ export type TextAreaProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
45
46
|
required?: boolean;
|
|
46
47
|
status?: TextAreaStatus;
|
|
47
48
|
size?: TextAreaSize;
|
|
48
|
-
classNames?: TextAreaClassNames
|
|
49
|
+
classNames?: Prettify<TextAreaClassNames>;
|
|
49
50
|
};
|
|
50
51
|
export type TextAreaSimpleProps = TextAreaProps & TextAreaControlProps;
|
|
51
52
|
export type TextAreaHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, PointerEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
3
4
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
4
5
|
export type TimeFieldSize = ComponentSize;
|
|
@@ -41,7 +42,7 @@ export type TimeFieldFieldContextValue = {
|
|
|
41
42
|
compact: boolean;
|
|
42
43
|
};
|
|
43
44
|
export type TimeFieldClassNamesProviderProps = {
|
|
44
|
-
classNames?: TimeFieldClassNames
|
|
45
|
+
classNames?: Prettify<TimeFieldClassNames>;
|
|
45
46
|
children: ReactNode;
|
|
46
47
|
};
|
|
47
48
|
export type TimeFieldControlProps = Omit<HTMLAttributes<HTMLFieldSetElement>, "onChange" | "prefix" | "suffix"> & {
|
|
@@ -80,7 +81,7 @@ export type TimeFieldProps = Omit<HTMLAttributes<HTMLDivElement>, "prefix" | "su
|
|
|
80
81
|
suffix?: ReactNode;
|
|
81
82
|
/** Separator between hour/minute/second segments. Default: `":"`. */
|
|
82
83
|
segmentSeparator?: ReactNode;
|
|
83
|
-
classNames?: TimeFieldClassNames
|
|
84
|
+
classNames?: Prettify<TimeFieldClassNames>;
|
|
84
85
|
};
|
|
85
86
|
export type TimeFieldHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
86
87
|
children?: ReactNode;
|
|
@@ -10,6 +10,6 @@ export declare const ToastRoot: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
10
10
|
action?: import('react').ReactNode;
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
onClose?: () => void;
|
|
13
|
-
classNames?: import('./toastTypes').ToastClassNames
|
|
13
|
+
classNames?: import('../../..').Prettify<import('./toastTypes').ToastClassNames>;
|
|
14
14
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export { ToastIndicator, ToastMessage, ToastContent, ToastTitle, ToastDescription, ToastAction, ToastClose, };
|
|
@@ -8,7 +8,7 @@ export declare const Toast: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
8
8
|
action?: import('react').ReactNode;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
onClose?: () => void;
|
|
11
|
-
classNames?: import('./toastTypes').ToastClassNames
|
|
11
|
+
classNames?: import('../../..').Prettify<import('./toastTypes').ToastClassNames>;
|
|
12
12
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
13
13
|
Provider: typeof ToastProviderRoot;
|
|
14
14
|
Message: import('react').ForwardRefExoticComponent<import('./toastTypes').ToastMessageProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
|
|
3
4
|
import { MessageBannerSize, MessageBannerSizePreset } from '../utils/sizeLayout';
|
|
4
5
|
export type ToastSize = MessageBannerSize;
|
|
@@ -30,7 +31,7 @@ export type AddToastOpts = {
|
|
|
30
31
|
placement?: ToastPlacement;
|
|
31
32
|
id?: string;
|
|
32
33
|
loading?: boolean;
|
|
33
|
-
classNames?: ToastClassNames
|
|
34
|
+
classNames?: Prettify<ToastClassNames>;
|
|
34
35
|
};
|
|
35
36
|
export type PromiseToastOpts<T> = {
|
|
36
37
|
loading?: ReactNode;
|
|
@@ -38,7 +39,7 @@ export type PromiseToastOpts<T> = {
|
|
|
38
39
|
error?: ReactNode | ((err: unknown) => ReactNode);
|
|
39
40
|
placement?: ToastPlacement;
|
|
40
41
|
timeout?: number;
|
|
41
|
-
classNames?: ToastClassNames
|
|
42
|
+
classNames?: Prettify<ToastClassNames>;
|
|
42
43
|
};
|
|
43
44
|
export type ToastEntry = {
|
|
44
45
|
id: string;
|
|
@@ -52,7 +53,7 @@ export type ToastEntry = {
|
|
|
52
53
|
placement: ToastPlacement;
|
|
53
54
|
createdAt: number;
|
|
54
55
|
loading: boolean;
|
|
55
|
-
classNames?: ToastClassNames
|
|
56
|
+
classNames?: Prettify<ToastClassNames>;
|
|
56
57
|
};
|
|
57
58
|
export type ToastLiveAnnouncement = {
|
|
58
59
|
text: string;
|
|
@@ -76,7 +77,7 @@ export type ToastItemContextValue = {
|
|
|
76
77
|
gridSlots: MessageBannerGridSlots;
|
|
77
78
|
};
|
|
78
79
|
export type ToastClassNamesProviderProps = {
|
|
79
|
-
classNames?: ToastClassNames
|
|
80
|
+
classNames?: Prettify<ToastClassNames>;
|
|
80
81
|
children: ReactNode;
|
|
81
82
|
};
|
|
82
83
|
export type ToastProviderProps = {
|
|
@@ -86,7 +87,7 @@ export type ToastProviderProps = {
|
|
|
86
87
|
defaultSize?: ToastSize;
|
|
87
88
|
/** DOM node for viewport portals. Default: `document.body`. */
|
|
88
89
|
portalContainer?: HTMLElement | null;
|
|
89
|
-
classNames?: ToastClassNames
|
|
90
|
+
classNames?: Prettify<ToastClassNames>;
|
|
90
91
|
};
|
|
91
92
|
export type ToastProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
92
93
|
status?: ToastStatus;
|
|
@@ -97,7 +98,7 @@ export type ToastProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
|
97
98
|
action?: ReactNode;
|
|
98
99
|
loading?: boolean;
|
|
99
100
|
onClose?: () => void;
|
|
100
|
-
classNames?: ToastClassNames
|
|
101
|
+
classNames?: Prettify<ToastClassNames>;
|
|
101
102
|
};
|
|
102
103
|
export type UseToastRootStateProps = Pick<ToastProps, "status" | "size" | "title" | "description" | "action" | "loading" | "onClose" | "children">;
|
|
103
104
|
export type ToastIndicatorProps = HTMLAttributes<HTMLSpanElement>;
|
|
@@ -133,6 +134,6 @@ export type ToastViewportProps = {
|
|
|
133
134
|
dismissingIds: Set<string>;
|
|
134
135
|
onDismiss: (id: string) => void;
|
|
135
136
|
onRemoveFinal: (id: string) => void;
|
|
136
|
-
classNames?: ToastClassNames
|
|
137
|
+
classNames?: Prettify<ToastClassNames>;
|
|
137
138
|
defaultSize?: ToastSize;
|
|
138
139
|
};
|
|
@@ -12,7 +12,19 @@ export declare function useToastProviderState({ defaultPlacement, defaultVariant
|
|
|
12
12
|
sortedByPlacement: (placement: ToastPlacement) => ToastEntry[];
|
|
13
13
|
dismiss: (id: string) => void;
|
|
14
14
|
removeFinal: (id: string) => void;
|
|
15
|
-
providerClassNames:
|
|
15
|
+
providerClassNames: {
|
|
16
|
+
root?: string | undefined;
|
|
17
|
+
indicator?: string | undefined;
|
|
18
|
+
message?: string | undefined;
|
|
19
|
+
content?: string | undefined;
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
action?: string | undefined;
|
|
23
|
+
close?: string | undefined;
|
|
24
|
+
viewport?: string | undefined;
|
|
25
|
+
scrim?: string | undefined;
|
|
26
|
+
stack?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
16
28
|
defaultSize: import('../utils/sizeLayout').ComponentSize;
|
|
17
29
|
liveAnnouncement: ToastLiveAnnouncement;
|
|
18
30
|
};
|
|
@@ -12,5 +12,5 @@ export declare const ToggleButtonRoot: import('react').ForwardRefExoticComponent
|
|
|
12
12
|
size?: import('./toggleButtonTypes').ToggleButtonSize;
|
|
13
13
|
icon?: import('react').ReactNode;
|
|
14
14
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
15
|
-
classNames?: import('./toggleButtonTypes').ToggleButtonClassNames
|
|
15
|
+
classNames?: import('../../..').Prettify<import('./toggleButtonTypes').ToggleButtonClassNames>;
|
|
16
16
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -12,7 +12,7 @@ export declare const ToggleButton: import('react').ForwardRefExoticComponent<Omi
|
|
|
12
12
|
size?: import('./toggleButtonTypes').ToggleButtonSize;
|
|
13
13
|
icon?: import('react').ReactNode;
|
|
14
14
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
15
|
-
classNames?: import('./toggleButtonTypes').ToggleButtonClassNames
|
|
15
|
+
classNames?: import('../../..').Prettify<import('./toggleButtonTypes').ToggleButtonClassNames>;
|
|
16
16
|
} & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
17
17
|
Content: import('react').ForwardRefExoticComponent<import('./toggleButtonTypes').ToggleButtonContentProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
18
18
|
Fill: import('react').ForwardRefExoticComponent<import('./toggleButtonTypes').ToggleButtonFillProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ToggleButtonClassNames, ToggleButtonContextValue, ToggleButtonGroupContextValue } from './toggleButtonTypes';
|
|
3
4
|
declare const ToggleButtonGroupContext: import('react').Context<ToggleButtonGroupContextValue | null>;
|
|
4
5
|
export declare function ToggleButtonGroupProvider({ value, children, }: {
|
|
@@ -7,7 +8,7 @@ export declare function ToggleButtonGroupProvider({ value, children, }: {
|
|
|
7
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare function useOptionalToggleButtonGroupContext(): ToggleButtonGroupContextValue | null;
|
|
9
10
|
export declare function ToggleButtonClassNamesProvider({ classNames, children, }: {
|
|
10
|
-
classNames?: ToggleButtonClassNames
|
|
11
|
+
classNames?: Prettify<ToggleButtonClassNames>;
|
|
11
12
|
children: ReactNode;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export declare function useToggleButtonClassNames(): ToggleButtonClassNames;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, PointerEventHandler, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
3
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
5
|
import { IconPosition } from '../utils/iconPosition';
|
|
@@ -36,7 +37,7 @@ export type ToggleButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "a
|
|
|
36
37
|
icon?: ReactNode;
|
|
37
38
|
/** @default "start" */
|
|
38
39
|
iconPosition?: IconPosition;
|
|
39
|
-
classNames?: ToggleButtonClassNames
|
|
40
|
+
classNames?: Prettify<ToggleButtonClassNames>;
|
|
40
41
|
};
|
|
41
42
|
export type ToggleButtonFillProps = HTMLAttributes<HTMLSpanElement>;
|
|
42
43
|
export type ToggleButtonContentProps = HTMLAttributes<HTMLSpanElement>;
|
|
@@ -14,7 +14,14 @@ export declare function useToggleButtonRootState({ value: itemValue, groupSegmen
|
|
|
14
14
|
pressed: boolean;
|
|
15
15
|
onFillStart: ((pressed: boolean) => void) | undefined;
|
|
16
16
|
fillColor: string;
|
|
17
|
-
classNames:
|
|
17
|
+
classNames: {
|
|
18
|
+
root?: string | undefined;
|
|
19
|
+
fill?: string | undefined;
|
|
20
|
+
content?: string | undefined;
|
|
21
|
+
label?: string | undefined;
|
|
22
|
+
icon?: string | undefined;
|
|
23
|
+
text?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
18
25
|
roundingClass: string;
|
|
19
26
|
role: "radio" | undefined;
|
|
20
27
|
ariaPressed: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
2
3
|
import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
|
|
3
4
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
4
5
|
import { TooltipSide } from './tooltipPosition';
|
|
@@ -30,7 +31,7 @@ export type TooltipProps = {
|
|
|
30
31
|
showIcon?: boolean;
|
|
31
32
|
/** DOM node for the portal. Default: `document.body`. */
|
|
32
33
|
portalContainer?: HTMLElement | null;
|
|
33
|
-
classNames?: TooltipClassNames
|
|
34
|
+
classNames?: Prettify<TooltipClassNames>;
|
|
34
35
|
};
|
|
35
36
|
export type TooltipTriggerProps = HTMLAttributes<HTMLSpanElement> & {
|
|
36
37
|
/** Merge props onto the single child (Button, etc.) instead of wrapping in `<span>`. */
|
|
@@ -84,6 +85,6 @@ export type TooltipBodyContextValue = {
|
|
|
84
85
|
gridSlots: MessageBannerGridSlots;
|
|
85
86
|
};
|
|
86
87
|
export type TooltipClassNamesProviderProps = {
|
|
87
|
-
classNames?: TooltipClassNames
|
|
88
|
+
classNames?: Prettify<TooltipClassNames>;
|
|
88
89
|
children: ReactNode;
|
|
89
90
|
};
|