@omni-design/components 0.10.0 → 0.12.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/commands/ScanComponents.md +1 -1
- package/.claude/commands/ShareComponent.md +1 -1
- package/CLAUDE.md +5 -3
- 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/Button/Button.d.ts +3 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -2
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +4 -0
- package/dist/types/components/IconBadge/IconBadge.d.ts +1 -1
- package/dist/types/components/Loader/Loader.d.ts +66 -0
- package/dist/types/components/Loader/index.d.ts +1 -0
- package/dist/types/components/MiniSwatch/MiniSwatch.d.ts +7 -0
- package/dist/types/components/MiniSwatch/index.d.ts +1 -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/Swatch/Swatch.d.ts +14 -0
- package/dist/types/components/Swatch/index.d.ts +1 -0
- package/dist/types/components/Switch/Switch.d.ts +24 -8
- package/dist/types/components/Switch/index.d.ts +1 -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/dist/types/components/index.d.ts +5 -0
- package/dist/types/docs/DocPanels.d.ts +39 -0
- package/dist/types/docs/components.d.ts +212 -0
- package/dist/types/docs/componentsData.d.ts +587 -0
- package/dist/types/docs/componentsForms.d.ts +597 -0
- package/dist/types/docs/componentsNav.d.ts +420 -0
- package/dist/types/docs/componentsOverlays.d.ts +379 -0
- package/dist/types/docs/componentsRest.d.ts +158 -0
- package/dist/types/docs/componentsSurfaces.d.ts +339 -0
- package/dist/types/docs/docsLink.d.ts +32 -0
- package/dist/types/docs/examples.d.ts +37 -0
- package/dist/types/docs/foundations.d.ts +28 -0
- package/dist/types/docs/index.d.ts +5 -0
- package/docs/components.md +71 -55
- package/package.json +1 -1
- package/public/styles/Dark-Mode.css +12056 -13009
- package/public/styles/Light-Mode.css +11240 -12370
- package/public/styles/base.css +364 -182
- package/public/styles/core.css +480 -123
- package/public/styles/foundation.css +124 -53
- package/public/styles/styles.css +5 -5
- package/public/styles/theme.json +2 -2
- package/public/styles/typography-tokens.css +686 -158
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function normalizeButtonVariant(variant: any): string;
|
|
2
|
-
export function Button({ variant, size, elevated, selected, fullWidth, disabled, iconOnly, letterNumber, avatar, swatch, swatchColor, startIcon, endIcon, startDecorator, endDecorator, badge, badgeContent, badgeVariant, badgeSize, badgeDot, badgeMax, badgeAnchorOrigin, children, className, sx, ...props }: {
|
|
2
|
+
export function Button({ variant, size, elevated, selected, fullWidth, disabled, contentType, iconOnly, letterNumber, avatar, swatch, swatchColor, startIcon, endIcon, startDecorator, endDecorator, badge, badgeContent, badgeVariant, badgeSize, badgeDot, badgeMax, badgeAnchorOrigin, children, className, sx, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
variant?: string;
|
|
5
5
|
size?: string;
|
|
@@ -7,6 +7,7 @@ export function Button({ variant, size, elevated, selected, fullWidth, disabled,
|
|
|
7
7
|
selected?: boolean;
|
|
8
8
|
fullWidth?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
contentType: any;
|
|
10
11
|
iconOnly?: boolean;
|
|
11
12
|
letterNumber?: boolean;
|
|
12
13
|
avatar?: boolean;
|
|
@@ -30,6 +31,7 @@ export function Button({ variant, size, elevated, selected, fullWidth, disabled,
|
|
|
30
31
|
className?: string;
|
|
31
32
|
sx?: {};
|
|
32
33
|
}): JSX.Element;
|
|
34
|
+
export const BUTTON_CONTENT_TYPES: string[];
|
|
33
35
|
export function DefaultButton(p: any): JSX.Element;
|
|
34
36
|
export function DefaultOutlineButton(p: any): JSX.Element;
|
|
35
37
|
export function PrimaryButton(p: any): JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export function ButtonGroup({ variant, color, size, disabled, orientation, spacing, fit, fullWidth, equalWidth, multiple, value: controlledValue, defaultValue, onChange, children, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
1
|
+
export function ButtonGroup({ variant, color, size, disabled, orientation, separated, spacing, fit, fullWidth, equalWidth, multiple, value: controlledValue, defaultValue, onChange, children, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
variant?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
size?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
orientation?: string;
|
|
8
|
-
|
|
8
|
+
separated?: boolean;
|
|
9
|
+
spacing: any;
|
|
9
10
|
fit: any;
|
|
10
11
|
fullWidth?: boolean;
|
|
11
12
|
equalWidth?: boolean;
|
|
@@ -2,7 +2,7 @@ export function normalizeChipVariant(variant: any): string;
|
|
|
2
2
|
export function Chip({ variant, size: sizeProp, label, clickable, disabled, selected, selectionMode, onDelete, onClick, startDecorator, endDecorator, children, className, sx, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
variant?: string;
|
|
5
|
-
size
|
|
5
|
+
size: any;
|
|
6
6
|
label: any;
|
|
7
7
|
clickable?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
@@ -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;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export function Loader({ theme, surface, size, color, message, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
message?: string;
|
|
8
|
+
sx?: {};
|
|
9
|
+
"aria-label"?: string;
|
|
10
|
+
"aria-labelledby": any;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* LinearLoader Component
|
|
14
|
+
* Linear progress bar
|
|
15
|
+
*
|
|
16
|
+
* @param {number} value - Progress value 0-100
|
|
17
|
+
* @param {string} label - Optional label
|
|
18
|
+
* @param {object} props - Additional props
|
|
19
|
+
*/
|
|
20
|
+
export function LinearLoader({ value, label, sx, ...props }: number): JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* SkeletonLoader Component
|
|
23
|
+
* Skeleton placeholder for loading content
|
|
24
|
+
*
|
|
25
|
+
* @param {number} rows - Number of skeleton rows
|
|
26
|
+
* @param {number} height - Height of each skeleton
|
|
27
|
+
* @param {object} props - Additional props
|
|
28
|
+
*/
|
|
29
|
+
export function SkeletonLoader({ rows, height, spacing, sx, ...props }: number): JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* DotsLoader Component
|
|
32
|
+
* Animated dots loader
|
|
33
|
+
*
|
|
34
|
+
* @param {string} message - Loading message
|
|
35
|
+
* @param {object} props - Additional props
|
|
36
|
+
*/
|
|
37
|
+
export function DotsLoader({ message, sx, ...props }: string): JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* PageLoader Component
|
|
40
|
+
* Full page loader overlay
|
|
41
|
+
*
|
|
42
|
+
* @param {string} message - Loading message
|
|
43
|
+
* @param {number} size - Loader size
|
|
44
|
+
* @param {object} props - Additional props
|
|
45
|
+
*/
|
|
46
|
+
export function PageLoader({ message, size, sx, ...props }: string): JSX.Element;
|
|
47
|
+
/**
|
|
48
|
+
* SkeletonCard Component
|
|
49
|
+
* Skeleton loading state for cards
|
|
50
|
+
*
|
|
51
|
+
* @param {number} lines - Number of text lines
|
|
52
|
+
* @param {boolean} showImage - Show image skeleton
|
|
53
|
+
* @param {object} props - Additional props
|
|
54
|
+
*/
|
|
55
|
+
export function SkeletonCard({ lines, showImage, sx, ...props }: number): JSX.Element;
|
|
56
|
+
/**
|
|
57
|
+
* OverlayLoader Component
|
|
58
|
+
* Loader overlay for async operations
|
|
59
|
+
*
|
|
60
|
+
* @param {boolean} isLoading - Show loader
|
|
61
|
+
* @param {string} message - Loading message
|
|
62
|
+
* @param {ReactNode} children - Content to overlay
|
|
63
|
+
* @param {object} props - Additional props
|
|
64
|
+
*/
|
|
65
|
+
export function OverlayLoader({ isLoading, message, children, sx, ...props }: boolean): JSX.Element;
|
|
66
|
+
export default Loader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Loader, LinearLoader, SkeletonLoader, DotsLoader, PageLoader, SkeletonCard, OverlayLoader, default } from "./Loader";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MiniSwatch, default } from "./MiniSwatch";
|
|
@@ -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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function Swatch({ color, label, size, selected, disabled, radio, onClick, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
color: any;
|
|
4
|
+
label: any;
|
|
5
|
+
size?: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
radio?: boolean;
|
|
9
|
+
onClick: any;
|
|
10
|
+
className?: string;
|
|
11
|
+
sx?: {};
|
|
12
|
+
"aria-label": any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
export default Swatch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Swatch, default } from "./Swatch";
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
export function themedStyles(): {
|
|
2
|
+
type: string;
|
|
3
|
+
trackOff: string;
|
|
4
|
+
trackOffBorder: string;
|
|
5
|
+
trackOn: string;
|
|
6
|
+
trackOnBorder: string;
|
|
7
|
+
dotOff: string;
|
|
8
|
+
dotOn: string;
|
|
9
|
+
iconOff: string;
|
|
10
|
+
iconOn: string;
|
|
11
|
+
};
|
|
12
|
+
export function outlineStyles(color: any): {
|
|
13
|
+
type: string;
|
|
14
|
+
color: any;
|
|
15
|
+
trackOff: string;
|
|
16
|
+
trackOffBorder: string;
|
|
17
|
+
trackOn: string;
|
|
18
|
+
trackOnBorder: string;
|
|
19
|
+
dotOff: string;
|
|
20
|
+
dotOn: string;
|
|
21
|
+
iconOff: string;
|
|
22
|
+
iconOn: string;
|
|
23
|
+
};
|
|
24
|
+
export function normalizeSwitchVariant(variant: any): string;
|
|
1
25
|
export function Switch({ variant, size, checked, defaultChecked, onChange, disabled, label, labelPlacement, name, value, icon, iconOn, iconOff, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
2
26
|
[x: string]: any;
|
|
3
27
|
variant?: string;
|
|
@@ -34,14 +58,6 @@ export function InfoOutlineSwitch(p: any): JSX.Element;
|
|
|
34
58
|
export function SuccessOutlineSwitch(p: any): JSX.Element;
|
|
35
59
|
export function WarningOutlineSwitch(p: any): JSX.Element;
|
|
36
60
|
export function ErrorOutlineSwitch(p: any): JSX.Element;
|
|
37
|
-
export function PrimaryLightSwitch(p: any): JSX.Element;
|
|
38
|
-
export function SecondaryLightSwitch(p: any): JSX.Element;
|
|
39
|
-
export function TertiaryLightSwitch(p: any): JSX.Element;
|
|
40
|
-
export function NeutralLightSwitch(p: any): JSX.Element;
|
|
41
|
-
export function InfoLightSwitch(p: any): JSX.Element;
|
|
42
|
-
export function SuccessLightSwitch(p: any): JSX.Element;
|
|
43
|
-
export function WarningLightSwitch(p: any): JSX.Element;
|
|
44
|
-
export function ErrorLightSwitch(p: any): JSX.Element;
|
|
45
61
|
export function SwitchInput({ variant, size, checked, defaultChecked, onChange, disabled, label, labelPlacement, name, value, icon, iconOn, iconOff, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
|
|
46
62
|
[x: string]: any;
|
|
47
63
|
variant?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SwitchShowcase } from "./SwitchShowcase";
|
|
2
|
-
export { Switch, SwitchInput, PrimarySwitch, SecondarySwitch, TertiarySwitch, NeutralSwitch, InfoSwitch, SuccessSwitch, WarningSwitch, ErrorSwitch, PrimaryOutlineSwitch, SecondaryOutlineSwitch, TertiaryOutlineSwitch, NeutralOutlineSwitch, InfoOutlineSwitch, SuccessOutlineSwitch, WarningOutlineSwitch, ErrorOutlineSwitch,
|
|
2
|
+
export { Switch, SwitchInput, PrimarySwitch, SecondarySwitch, TertiarySwitch, NeutralSwitch, InfoSwitch, SuccessSwitch, WarningSwitch, ErrorSwitch, PrimaryOutlineSwitch, SecondaryOutlineSwitch, TertiaryOutlineSwitch, NeutralOutlineSwitch, InfoOutlineSwitch, SuccessOutlineSwitch, WarningOutlineSwitch, ErrorOutlineSwitch, default } from "./Switch";
|
|
@@ -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;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Colors } from "./Colors";
|
|
2
2
|
export { Spacing } from "./Spacing";
|
|
3
|
+
export { Swatch } from "./Swatch";
|
|
4
|
+
export { MiniSwatch } from "./MiniSwatch";
|
|
3
5
|
export { IconBadge } from "./IconBadge";
|
|
4
6
|
export { IconBadgeShowcase } from "./IconBadge/IconBadgeShowcase";
|
|
5
7
|
export { Button } from "./Button";
|
|
@@ -42,6 +44,7 @@ export { SwitchInput, SwitchInput as Switch } from "./Switch";
|
|
|
42
44
|
export { SliderInput, RangeSlider, SliderInput as Slider } from "./Slider";
|
|
43
45
|
export { RatingInput, RatingInput as Rating } from "./Rating";
|
|
44
46
|
export { SearchField, SearchFieldShowcase } from "./SearchField";
|
|
47
|
+
export { Tag, TAG_COLORS, TAG_COLOR_TOKEN_MAP, PrimaryTag, SecondaryTag, TertiaryTag, NeutralTag, InfoTag, SuccessTag, WarningTag, ErrorTag, TagShowcase } from "./Tag";
|
|
45
48
|
export { OmniStack, Stack, HStack, VStack, CenteredStack, SpaceBetweenStack, WrapStack, ResponsiveStack, GridStack, StackDivider, InsetStack, ScrollStack, StackShowcase } from "./Stack";
|
|
46
49
|
export { Box, BoxShowcase } from "./Box";
|
|
47
50
|
export { Section, SectionShowcase } from "./Section";
|
|
@@ -61,6 +64,7 @@ export { Alert, AlertShowcase } from "./Alert";
|
|
|
61
64
|
export { Snackbar, SnackbarShowcase } from "./Snackbar";
|
|
62
65
|
export { CircularProgress, CircularProgressShowcase } from "./CircularProgress";
|
|
63
66
|
export { LinearProgress, LinearProgressShowcase } from "./LinearProgress";
|
|
67
|
+
export { Loader, LinearLoader, SkeletonLoader, DotsLoader, PageLoader, SkeletonCard, OverlayLoader } from "./Loader";
|
|
64
68
|
export { Avatar, AvatarGroup, AvatarShowcase, DEFAULT_AVATAR_SRC } from "./Avatar";
|
|
65
69
|
export { Badge, BadgeShowcase } from "./Badge";
|
|
66
70
|
export { List, ListItem, ListItemDecorator } from "./List";
|
|
@@ -75,3 +79,4 @@ export { OmniDesignProvider, useOmniDesign, ThemedZone, Surfaced } from "../Omni
|
|
|
75
79
|
export { CodeBlock, CopyButton } from "./CodeBlock/CodeBlock";
|
|
76
80
|
export { BarChart, LineChart, PieChart, CHART_TOKENS, CHART_LABEL_TYPE } from "./Charts";
|
|
77
81
|
export { Ghost, useGhost, ghostBlockSx } from "./_ghost";
|
|
82
|
+
export { COMPONENT_DOCS, FOUNDATIONS, renderFoundations, renderColourSystem, renderComponentDoc, COLOUR_COLLECTIONS, docsSlug, componentDocsUrl, componentDocsIndexUrl, DOCS_ORIGIN, EXAMPLES, hasExample } from "../docs";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function docFor(component: any): {
|
|
2
|
+
name: any;
|
|
3
|
+
summary: any;
|
|
4
|
+
insteadUse: any;
|
|
5
|
+
props: any;
|
|
6
|
+
states: any;
|
|
7
|
+
theming: {
|
|
8
|
+
collection: string;
|
|
9
|
+
inCode: string;
|
|
10
|
+
inFigma: string;
|
|
11
|
+
}[];
|
|
12
|
+
tokens: any;
|
|
13
|
+
composition: any;
|
|
14
|
+
accessibility: any;
|
|
15
|
+
gotchas: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Everything written about the component, in reading order — led by ONE live
|
|
19
|
+
* example.
|
|
20
|
+
*
|
|
21
|
+
* The example is here because a page of prose gives no recognition: you cannot
|
|
22
|
+
* tell what a component IS from its prop table. It renders in the theme and
|
|
23
|
+
* surface currently selected, so the picture matches the pickers rather than
|
|
24
|
+
* showing some other configuration. It is the default instance and is not
|
|
25
|
+
* interactive — the Playground tab is where you change things.
|
|
26
|
+
*
|
|
27
|
+
* Components that need state or a portal to be shown honestly (Modal, Drawer,
|
|
28
|
+
* Snackbar) have no example, and simply lead with the summary instead of
|
|
29
|
+
* rendering a half-working one.
|
|
30
|
+
*/
|
|
31
|
+
export function DocSummary({ component, theme, surface }: {
|
|
32
|
+
component: any;
|
|
33
|
+
theme?: any;
|
|
34
|
+
surface?: string;
|
|
35
|
+
}): JSX.Element;
|
|
36
|
+
/** Breaking and silent changes, newest first, plus a way to report one. */
|
|
37
|
+
export function DocChanges({ component }: {
|
|
38
|
+
component: any;
|
|
39
|
+
}): JSX.Element;
|