@omni-design/components 0.9.0 → 0.11.0
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/CLAUDE.md +16 -5
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Avatar/AvatarGlyph.d.ts +5 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +4 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -1
- package/dist/types/components/Radio/Radio.d.ts +6 -2
- package/dist/types/components/Rating/Rating.d.ts +3 -1
- package/dist/types/components/Slider/Slider.d.ts +9 -3
- package/dist/types/components/Stepper/Stepper.d.ts +3 -1
- package/dist/types/components/Tabs/Tabs.d.ts +17 -1
- package/dist/types/components/ToggleButton/index.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +26 -42
- package/package.json +1 -1
|
@@ -11,8 +11,12 @@ export function Icon({ children, color, size, fontSize: customFontSize, disabled
|
|
|
11
11
|
"aria-label": any;
|
|
12
12
|
}): JSX.Element;
|
|
13
13
|
export namespace ICON_SIZE_MAP {
|
|
14
|
+
let xxs: string;
|
|
15
|
+
let xs: string;
|
|
14
16
|
let small: string;
|
|
15
17
|
let medium: string;
|
|
16
18
|
let large: string;
|
|
19
|
+
let xl: string;
|
|
20
|
+
let xxl: string;
|
|
17
21
|
}
|
|
18
22
|
export default Icon;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function Pagination({ count, page: controlledPage, defaultPage, onChange, color, size, siblingCount, boundaryCount, disabled, showFirstButton, showLastButton, className, sx, ...props }: {
|
|
1
|
+
export function Pagination({ theme, surface, count, page: controlledPage, defaultPage, onChange, color, size, siblingCount, boundaryCount, disabled, showFirstButton, showLastButton, className, sx, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
3
5
|
count?: number;
|
|
4
6
|
page: any;
|
|
5
7
|
defaultPage?: number;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function Radio({ color, size, label, labelPlacement, checked, disabled, onChange, name, value, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, inputProps: inputPropsProp, ...props }: {
|
|
1
|
+
export function Radio({ theme, surface, color, size, label, labelPlacement, checked, disabled, onChange, name, value, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, inputProps: inputPropsProp, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
3
5
|
color?: string;
|
|
4
6
|
size?: string;
|
|
5
7
|
label: any;
|
|
@@ -34,8 +36,10 @@ export function RadioGroup({ color, size, label, options, value, onChange, orien
|
|
|
34
36
|
"aria-label": any;
|
|
35
37
|
"aria-labelledby": any;
|
|
36
38
|
}): JSX.Element;
|
|
37
|
-
export function RadioInput({ color, size, label, labelPlacement, checked, disabled, onChange, name, value, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, inputProps: inputPropsProp, ...props }: {
|
|
39
|
+
export function RadioInput({ theme, surface, color, size, label, labelPlacement, checked, disabled, onChange, name, value, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, inputProps: inputPropsProp, ...props }: {
|
|
38
40
|
[x: string]: any;
|
|
41
|
+
theme: any;
|
|
42
|
+
surface: any;
|
|
39
43
|
color?: string;
|
|
40
44
|
size?: string;
|
|
41
45
|
label: any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function Rating({ value: controlledValue, defaultValue, onChange, max, precision, color, size, readOnly, disabled, emptyLabel, className, sx, ...props }: {
|
|
1
|
+
export function Rating({ theme, surface, value: controlledValue, defaultValue, onChange, max, precision, color, size, readOnly, disabled, emptyLabel, className, sx, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
3
5
|
value: any;
|
|
4
6
|
defaultValue: any;
|
|
5
7
|
onChange: any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function Slider({ variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
1
|
+
export function Slider({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
3
5
|
variant?: string;
|
|
4
6
|
size?: string;
|
|
5
7
|
value: any;
|
|
@@ -30,8 +32,10 @@ export function InfoSlider(p: any): JSX.Element;
|
|
|
30
32
|
export function SuccessSlider(p: any): JSX.Element;
|
|
31
33
|
export function WarningSlider(p: any): JSX.Element;
|
|
32
34
|
export function ErrorSlider(p: any): JSX.Element;
|
|
33
|
-
export function SliderInput({ variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
35
|
+
export function SliderInput({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
34
36
|
[x: string]: any;
|
|
37
|
+
theme: any;
|
|
38
|
+
surface: any;
|
|
35
39
|
variant?: string;
|
|
36
40
|
size?: string;
|
|
37
41
|
value: any;
|
|
@@ -53,8 +57,10 @@ export function SliderInput({ variant, size, value, defaultValue, onChange, onCh
|
|
|
53
57
|
"aria-label": any;
|
|
54
58
|
"aria-labelledby": any;
|
|
55
59
|
}): JSX.Element;
|
|
56
|
-
export function RangeSlider({ variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
60
|
+
export function RangeSlider({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
57
61
|
[x: string]: any;
|
|
62
|
+
theme: any;
|
|
63
|
+
surface: any;
|
|
58
64
|
variant?: string;
|
|
59
65
|
size?: string;
|
|
60
66
|
value: any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function Stepper({ children, orientation, size, color, activeStep, clickable, onStepClick, dashedIncomplete, variant, className, sx, ...props }: {
|
|
1
|
+
export function Stepper({ theme, surface, children, orientation, size, color, activeStep, clickable, onStepClick, dashedIncomplete, variant, className, sx, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
3
5
|
children: any;
|
|
4
6
|
orientation?: string;
|
|
5
7
|
size?: string;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function baselineStyle(orientation: any, baseline?: boolean): {
|
|
2
|
+
[x: string]: string;
|
|
3
|
+
};
|
|
4
|
+
export function hoverIndicatorStyle(orientation: any, isSelected: any, thickness: any, color: any): {
|
|
5
|
+
[x: string]: string;
|
|
6
|
+
};
|
|
7
|
+
export function indicatorStyle(orientation: any, isSelected: any, thickness: any, color: any): {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
borderBottom: string;
|
|
10
|
+
borderLeft: string;
|
|
11
|
+
borderRight: string;
|
|
12
|
+
};
|
|
13
|
+
export function Tabs({ children, defaultValue, value: controlledValue, onChange, variant, color, size, orientation, scrollable, baseline, className, sx, ...props }: {
|
|
2
14
|
[x: string]: any;
|
|
3
15
|
children: any;
|
|
4
16
|
defaultValue?: number;
|
|
@@ -9,6 +21,7 @@ export function Tabs({ children, defaultValue, value: controlledValue, onChange,
|
|
|
9
21
|
size?: string;
|
|
10
22
|
orientation?: string;
|
|
11
23
|
scrollable?: boolean;
|
|
24
|
+
baseline?: boolean;
|
|
12
25
|
className?: string;
|
|
13
26
|
sx?: {};
|
|
14
27
|
}): JSX.Element;
|
|
@@ -38,6 +51,8 @@ export function TabPanel({ children, value: panelValue, className, sx, ...props
|
|
|
38
51
|
className?: string;
|
|
39
52
|
sx?: {};
|
|
40
53
|
}): JSX.Element;
|
|
54
|
+
export function edgeFor(orientation: any): any;
|
|
55
|
+
export function isHorizontalOrientation(orientation: any): boolean;
|
|
41
56
|
export function useTabsContext(): {
|
|
42
57
|
value: number;
|
|
43
58
|
setValue: () => void;
|
|
@@ -46,6 +61,7 @@ export function useTabsContext(): {
|
|
|
46
61
|
size: string;
|
|
47
62
|
orientation: string;
|
|
48
63
|
scrollable: boolean;
|
|
64
|
+
baseline: boolean;
|
|
49
65
|
tabsId: string;
|
|
50
66
|
};
|
|
51
67
|
export default Tabs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToggleButton,
|
|
1
|
+
export { ToggleButton, ToggleButtonShowcase, DisabledToggleButton, ToggleButton as default } from "./ToggleButton";
|
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* startDecorator / endDecorator mirror Button: a node either side of the
|
|
5
|
-
* label, separated by the same 2px gap. They are DECORATION — the segment's
|
|
6
|
-
* accessible name comes from its text (or from aria-label on an icon-only
|
|
7
|
-
* segment), so a decorator must not add a second one.
|
|
8
|
-
*
|
|
9
|
-
* The group sizes whatever lands in these slots, so an <Icon> or <Avatar>
|
|
10
|
-
* follows the group's size prop without being told twice.
|
|
11
|
-
*/
|
|
12
|
-
export function ToggleButton({ value, children, startDecorator, endDecorator, swatch, disabled, sx, ...props }: {
|
|
13
|
-
[x: string]: any;
|
|
14
|
-
value: any;
|
|
15
|
-
children: any;
|
|
16
|
-
startDecorator: any;
|
|
17
|
-
endDecorator: any;
|
|
18
|
-
swatch: any;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
sx?: {};
|
|
21
|
-
}): JSX.Element;
|
|
22
|
-
export function ToggleButtonGroup({ variant, size, value, defaultValue, onChange, exclusive, orientation, disabled, fullWidth, children, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
1
|
+
/** @deprecated Use ButtonGroup. */
|
|
2
|
+
export function ToggleButtonGroup({ variant, exclusive, onChange, ...props }: {
|
|
23
3
|
[x: string]: any;
|
|
24
4
|
variant?: string;
|
|
25
|
-
size?: string;
|
|
26
|
-
value: any;
|
|
27
|
-
defaultValue: any;
|
|
28
|
-
onChange: any;
|
|
29
5
|
exclusive?: boolean;
|
|
30
|
-
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
fullWidth?: boolean;
|
|
33
|
-
children: any;
|
|
34
|
-
className?: string;
|
|
35
|
-
sx?: {};
|
|
36
|
-
"aria-label": any;
|
|
6
|
+
onChange: any;
|
|
37
7
|
}): JSX.Element;
|
|
8
|
+
/** @deprecated Use Button with a `value` prop as a ButtonGroup segment. */
|
|
9
|
+
export function ToggleButton(props: any): JSX.Element;
|
|
10
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
11
|
+
export namespace DefaultToggleButtonGroup {
|
|
12
|
+
let displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
15
|
+
export namespace DefaultToggleButtonGroup { }
|
|
16
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
17
|
+
export namespace DefaultToggleButtonGroup { }
|
|
18
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
19
|
+
export namespace DefaultToggleButtonGroup { }
|
|
20
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
21
|
+
export namespace DefaultToggleButtonGroup { }
|
|
22
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
23
|
+
export namespace DefaultToggleButtonGroup { }
|
|
24
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
25
|
+
export namespace DefaultToggleButtonGroup { }
|
|
26
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
27
|
+
export namespace DefaultToggleButtonGroup { }
|
|
28
|
+
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
29
|
+
export namespace DefaultToggleButtonGroup { }
|
|
38
30
|
export function DefaultToggleButtonGroup(p: any): JSX.Element;
|
|
39
|
-
export
|
|
40
|
-
export function SecondaryToggleButtonGroup(p: any): JSX.Element;
|
|
41
|
-
export function TertiaryToggleButtonGroup(p: any): JSX.Element;
|
|
42
|
-
export function NeutralToggleButtonGroup(p: any): JSX.Element;
|
|
43
|
-
export function BlackWhiteToggleButtonGroup(p: any): JSX.Element;
|
|
44
|
-
export function InfoToggleButtonGroup(p: any): JSX.Element;
|
|
45
|
-
export function SuccessToggleButtonGroup(p: any): JSX.Element;
|
|
46
|
-
export function WarningToggleButtonGroup(p: any): JSX.Element;
|
|
47
|
-
export function ErrorToggleButtonGroup(p: any): JSX.Element;
|
|
31
|
+
export namespace DefaultToggleButtonGroup { }
|
|
48
32
|
export default ToggleButtonGroup;
|
package/package.json
CHANGED