@omni-design/components 0.7.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 +26 -0
- package/.claude/commands/ShareComponent.md +128 -0
- package/.cursorrules +21 -0
- package/CLAUDE.md +1046 -0
- package/README.md +70 -0
- package/dist/OmniDesignProvider.esm.js +2 -0
- package/dist/OmniDesignProvider.esm.js.map +1 -0
- package/dist/OmniDesignProvider.js +2 -0
- package/dist/OmniDesignProvider.js.map +1 -0
- package/dist/index.esm.js +42 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/types/OmniDesignProvider.d.ts +158 -0
- package/dist/types/components/Accordion/Accordion.d.ts +42 -0
- package/dist/types/components/Accordion/AccordionShowcase.d.ts +2 -0
- package/dist/types/components/Accordion/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +14 -0
- package/dist/types/components/Alert/AlertShowcase.d.ts +2 -0
- package/dist/types/components/Alert/index.d.ts +2 -0
- package/dist/types/components/AppBar/AppBar.d.ts +43 -0
- package/dist/types/components/AppBar/AppBarShowcase.d.ts +2 -0
- package/dist/types/components/AppBar/index.d.ts +2 -0
- package/dist/types/components/Autocomplete/Autocomplete.d.ts +26 -0
- package/dist/types/components/Autocomplete/AutocompleteShowcase.d.ts +2 -0
- package/dist/types/components/Autocomplete/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +29 -0
- package/dist/types/components/Avatar/AvatarShowcase.d.ts +2 -0
- package/dist/types/components/Avatar/defaultAvatar.d.ts +2 -0
- package/dist/types/components/Avatar/index.d.ts +3 -0
- package/dist/types/components/BackgroundPicker.d.ts +12 -0
- package/dist/types/components/Badge/Badge.d.ts +43 -0
- package/dist/types/components/Badge/BadgeShowcase.d.ts +1 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/BevelText/BevelText.d.ts +15 -0
- package/dist/types/components/BevelText/BevelTextShowcase.d.ts +2 -0
- package/dist/types/components/BevelText/index.d.ts +2 -0
- package/dist/types/components/BottomNavigation/BottomNavigation.d.ts +15 -0
- package/dist/types/components/BottomNavigation/BottomNavigationShowcase.d.ts +2 -0
- package/dist/types/components/BottomNavigation/index.d.ts +2 -0
- package/dist/types/components/Box/Box.d.ts +36 -0
- package/dist/types/components/Box/BoxShowcase.d.ts +2 -0
- package/dist/types/components/Box/index.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +22 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsShowcase.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +66 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +41 -0
- package/dist/types/components/ButtonGroup/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +54 -0
- package/dist/types/components/Card/CardShowcase.d.ts +2 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +51 -0
- package/dist/types/components/Checkbox/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +42 -0
- package/dist/types/components/Chip/ChipShowcase.d.ts +2 -0
- package/dist/types/components/Chip/index.d.ts +2 -0
- package/dist/types/components/CircularProgress/CircularProgress.d.ts +12 -0
- package/dist/types/components/CircularProgress/CircularProgressShowcase.d.ts +2 -0
- package/dist/types/components/CircularProgress/index.d.ts +2 -0
- package/dist/types/components/CodeBlock/CodeBlock.d.ts +35 -0
- package/dist/types/components/Colors/Colors.d.ts +7 -0
- package/dist/types/components/Colors/index.d.ts +1 -0
- package/dist/types/components/Container/Container.d.ts +70 -0
- package/dist/types/components/Container/index.d.ts +1 -0
- package/dist/types/components/Copyright/Copyright.d.ts +11 -0
- package/dist/types/components/Copyright/CopyrightShowcase.d.ts +2 -0
- package/dist/types/components/Copyright/index.d.ts +2 -0
- package/dist/types/components/CurvedText/CurvedText.d.ts +23 -0
- package/dist/types/components/CurvedText/CurvedTextShowcase.d.ts +2 -0
- package/dist/types/components/CurvedText/index.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +82 -0
- package/dist/types/components/Dialog/DialogShowcase.d.ts +2 -0
- package/dist/types/components/Dialog/index.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +22 -0
- package/dist/types/components/Divider/DividerShowcase.d.ts +2 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Drawer/Drawer.d.ts +30 -0
- package/dist/types/components/Drawer/DrawerShowcase.d.ts +2 -0
- package/dist/types/components/Drawer/index.d.ts +2 -0
- package/dist/types/components/DropZone/DropZone.d.ts +15 -0
- package/dist/types/components/DropZone/index.d.ts +2 -0
- package/dist/types/components/Fab/Fab.d.ts +17 -0
- package/dist/types/components/Fab/FabShowcase.d.ts +2 -0
- package/dist/types/components/Fab/index.d.ts +2 -0
- package/dist/types/components/Footer/Footer.d.ts +14 -0
- package/dist/types/components/Footer/FooterShowcase.d.ts +2 -0
- package/dist/types/components/Footer/index.d.ts +2 -0
- package/dist/types/components/Gradient/Gradient.d.ts +38 -0
- package/dist/types/components/Gradient/GradientShowcase.d.ts +2 -0
- package/dist/types/components/Gradient/gradientUtils.d.ts +185 -0
- package/dist/types/components/Gradient/index.d.ts +3 -0
- package/dist/types/components/Grid/Grid.d.ts +112 -0
- package/dist/types/components/Grid/index.d.ts +1 -0
- package/dist/types/components/Header/Header.d.ts +53 -0
- package/dist/types/components/Header/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +19 -0
- package/dist/types/components/Icon/IconShowcase.d.ts +2 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/IconBadge/IconBadge.d.ts +10 -0
- package/dist/types/components/IconBadge/IconBadgeShowcase.d.ts +2 -0
- package/dist/types/components/IconBadge/index.d.ts +2 -0
- package/dist/types/components/Input/Input.d.ts +47 -0
- package/dist/types/components/Input/index.d.ts +2 -0
- package/dist/types/components/LinearProgress/LinearProgress.d.ts +9 -0
- package/dist/types/components/LinearProgress/LinearProgressShowcase.d.ts +2 -0
- package/dist/types/components/LinearProgress/index.d.ts +2 -0
- package/dist/types/components/Link/Link.d.ts +16 -0
- package/dist/types/components/Link/LinkShowcase.d.ts +2 -0
- package/dist/types/components/Link/index.d.ts +2 -0
- package/dist/types/components/List/List.d.ts +55 -0
- package/dist/types/components/List/ListShowcase.d.ts +2 -0
- package/dist/types/components/List/index.d.ts +2 -0
- package/dist/types/components/MainLayout/MainLayout.d.ts +28 -0
- package/dist/types/components/MainLayout/index.d.ts +1 -0
- package/dist/types/components/Menu/Menu.d.ts +37 -0
- package/dist/types/components/Menu/MenuShowcase.d.ts +2 -0
- package/dist/types/components/Menu/index.d.ts +2 -0
- package/dist/types/components/Modal/Modal.d.ts +18 -0
- package/dist/types/components/Modal/ModalShowcase.d.ts +2 -0
- package/dist/types/components/Modal/index.d.ts +2 -0
- package/dist/types/components/NumberField/NumberField.d.ts +22 -0
- package/dist/types/components/NumberField/NumberFieldShowcase.d.ts +2 -0
- package/dist/types/components/NumberField/index.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination.d.ts +17 -0
- package/dist/types/components/Pagination/PaginationShowcase.d.ts +2 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/Paper/Paper.d.ts +111 -0
- package/dist/types/components/Paper/index.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +31 -0
- package/dist/types/components/Popover/index.d.ts +1 -0
- package/dist/types/components/PreviewSurface.d.ts +18 -0
- package/dist/types/components/Radio/Radio.d.ts +55 -0
- package/dist/types/components/Radio/RadioShowcase.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +2 -0
- package/dist/types/components/Rail/Rail.d.ts +15 -0
- package/dist/types/components/Rail/RailShowcase.d.ts +2 -0
- package/dist/types/components/Rail/index.d.ts +2 -0
- package/dist/types/components/Rating/Rating.d.ts +16 -0
- package/dist/types/components/Rating/RatingShowcase.d.ts +2 -0
- package/dist/types/components/Rating/index.d.ts +2 -0
- package/dist/types/components/Ratio/Ratio.d.ts +20 -0
- package/dist/types/components/Ratio/RatioShowcase.d.ts +2 -0
- package/dist/types/components/Ratio/index.d.ts +2 -0
- package/dist/types/components/SearchField/SearchField.d.ts +19 -0
- package/dist/types/components/SearchField/SearchFieldShowcase.d.ts +2 -0
- package/dist/types/components/SearchField/index.d.ts +2 -0
- package/dist/types/components/Section/Section.d.ts +44 -0
- package/dist/types/components/Section/SectionShowcase.d.ts +2 -0
- package/dist/types/components/Section/index.d.ts +2 -0
- package/dist/types/components/Select/Select.d.ts +23 -0
- package/dist/types/components/Select/SelectShowcase.d.ts +2 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/SettingsPanel.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +53 -0
- package/dist/types/components/Sidebar/index.d.ts +1 -0
- package/dist/types/components/Slider/Slider.d.ts +79 -0
- package/dist/types/components/Slider/SliderShowcase.d.ts +2 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Snackbar/Snackbar.d.ts +17 -0
- package/dist/types/components/Snackbar/SnackbarShowcase.d.ts +2 -0
- package/dist/types/components/Snackbar/index.d.ts +2 -0
- package/dist/types/components/Spacing/Spacing.d.ts +16 -0
- package/dist/types/components/Spacing/index.d.ts +1 -0
- package/dist/types/components/SpeedDial/SpeedDial.d.ts +17 -0
- package/dist/types/components/SpeedDial/SpeedDialShowcase.d.ts +2 -0
- package/dist/types/components/SpeedDial/index.d.ts +2 -0
- package/dist/types/components/Stack/Stack.d.ts +52 -0
- package/dist/types/components/Stack/StackShowcase.d.ts +2 -0
- package/dist/types/components/Stack/index.d.ts +2 -0
- package/dist/types/components/Stepper/Stepper.d.ts +33 -0
- package/dist/types/components/Stepper/StepperShowcase.d.ts +2 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +65 -0
- package/dist/types/components/Switch/SwitchShowcase.d.ts +2 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/Table/Table.d.ts +20 -0
- package/dist/types/components/Table/TableShowcase.d.ts +2 -0
- package/dist/types/components/Table/index.d.ts +2 -0
- package/dist/types/components/Tabs/Tabs.d.ts +51 -0
- package/dist/types/components/Tabs/TabsShowcase.d.ts +2 -0
- package/dist/types/components/Tabs/index.d.ts +2 -0
- package/dist/types/components/Tag/Tag.d.ts +57 -0
- package/dist/types/components/Tag/TagShowcase.d.ts +2 -0
- package/dist/types/components/Tag/index.d.ts +2 -0
- package/dist/types/components/TextField/TextField.d.ts +105 -0
- package/dist/types/components/TextField/index.d.ts +1 -0
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +94 -0
- package/dist/types/components/ToggleButton/index.d.ts +1 -0
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +48 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +14 -0
- package/dist/types/components/Toolbar/ToolbarShowcase.d.ts +2 -0
- package/dist/types/components/Toolbar/index.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +20 -0
- package/dist/types/components/Tooltip/TooltipShowcase.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +2 -0
- package/dist/types/components/TreeView/TreeBranch.d.ts +14 -0
- package/dist/types/components/TreeView/TreeView.d.ts +82 -0
- package/dist/types/components/TreeView/TreeViewShowcase.d.ts +2 -0
- package/dist/types/components/TreeView/index.d.ts +3 -0
- package/dist/types/components/Typography/Typography.d.ts +492 -0
- package/dist/types/components/Typography/TypographyShowcase.d.ts +2 -0
- package/dist/types/components/Typography/index.d.ts +2 -0
- package/dist/types/components/_a11y/ContrastCheck.d.ts +15 -0
- package/dist/types/components/_bevelPresets.d.ts +92 -0
- package/dist/types/components/_shadows.d.ts +32 -0
- package/dist/types/components/index.d.ts +74 -0
- package/dist/types/theme/useThemeMode.d.ts +4 -0
- package/docs/components.md +797 -0
- package/docs/getting-started.md +409 -0
- package/docs/token-system.md +468 -0
- package/package.json +126 -0
- package/public/styles/Dark-Mode.css +13867 -0
- package/public/styles/Light-Mode.css +14091 -0
- package/public/styles/README.md +93 -0
- package/public/styles/base.css +261 -0
- package/public/styles/core.css +378 -0
- package/public/styles/foundation.css +72 -0
- package/public/styles/styles.css +6 -0
- package/public/styles/theme.js +234 -0
- package/public/styles/theme.json +12 -0
- package/public/styles/typography-tokens.css +720 -0
|
@@ -0,0 +1,79 @@
|
|
|
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 }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
variant?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
value: any;
|
|
6
|
+
defaultValue: any;
|
|
7
|
+
onChange: any;
|
|
8
|
+
onChangeCommitted: any;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
marks?: boolean;
|
|
13
|
+
valueLabelDisplay?: string;
|
|
14
|
+
orientation?: string;
|
|
15
|
+
track?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
label: any;
|
|
18
|
+
name: any;
|
|
19
|
+
className?: string;
|
|
20
|
+
sx?: {};
|
|
21
|
+
"aria-label": any;
|
|
22
|
+
"aria-labelledby": any;
|
|
23
|
+
}): JSX.Element;
|
|
24
|
+
export function DefaultSlider(p: any): JSX.Element;
|
|
25
|
+
export function PrimarySlider(p: any): JSX.Element;
|
|
26
|
+
export function SecondarySlider(p: any): JSX.Element;
|
|
27
|
+
export function TertiarySlider(p: any): JSX.Element;
|
|
28
|
+
export function NeutralSlider(p: any): JSX.Element;
|
|
29
|
+
export function InfoSlider(p: any): JSX.Element;
|
|
30
|
+
export function SuccessSlider(p: any): JSX.Element;
|
|
31
|
+
export function WarningSlider(p: any): JSX.Element;
|
|
32
|
+
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 }: {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
variant?: string;
|
|
36
|
+
size?: string;
|
|
37
|
+
value: any;
|
|
38
|
+
defaultValue: any;
|
|
39
|
+
onChange: any;
|
|
40
|
+
onChangeCommitted: any;
|
|
41
|
+
min?: number;
|
|
42
|
+
max?: number;
|
|
43
|
+
step?: number;
|
|
44
|
+
marks?: boolean;
|
|
45
|
+
valueLabelDisplay?: string;
|
|
46
|
+
orientation?: string;
|
|
47
|
+
track?: string;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
label: any;
|
|
50
|
+
name: any;
|
|
51
|
+
className?: string;
|
|
52
|
+
sx?: {};
|
|
53
|
+
"aria-label": any;
|
|
54
|
+
"aria-labelledby": any;
|
|
55
|
+
}): 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 }: {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
variant?: string;
|
|
59
|
+
size?: string;
|
|
60
|
+
value: any;
|
|
61
|
+
defaultValue: any;
|
|
62
|
+
onChange: any;
|
|
63
|
+
onChangeCommitted: any;
|
|
64
|
+
min?: number;
|
|
65
|
+
max?: number;
|
|
66
|
+
step?: number;
|
|
67
|
+
marks?: boolean;
|
|
68
|
+
valueLabelDisplay?: string;
|
|
69
|
+
orientation?: string;
|
|
70
|
+
track?: string;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
label: any;
|
|
73
|
+
name: any;
|
|
74
|
+
className?: string;
|
|
75
|
+
sx?: {};
|
|
76
|
+
"aria-label": any;
|
|
77
|
+
"aria-labelledby": any;
|
|
78
|
+
}): JSX.Element;
|
|
79
|
+
export default Slider;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function Snackbar({ children, open, onClose, variant, color, size, anchor, autoHideDuration, startDecorator, endDecorator, action, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onClose: any;
|
|
6
|
+
variant?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: string;
|
|
9
|
+
anchor?: string;
|
|
10
|
+
autoHideDuration: any;
|
|
11
|
+
startDecorator: any;
|
|
12
|
+
endDecorator: any;
|
|
13
|
+
action: any;
|
|
14
|
+
className?: string;
|
|
15
|
+
sx?: {};
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export default Snackbar;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spacing Component - Design System Documentation
|
|
3
|
+
*
|
|
4
|
+
* Displays the design system spacing and sizing scales
|
|
5
|
+
*
|
|
6
|
+
* WCAG 2.1 Accessibility Best Practices:
|
|
7
|
+
* - Visual demos use aria-hidden="true" to hide from screen readers
|
|
8
|
+
* - No empty decorative <div> elements in DOM
|
|
9
|
+
* - Semantic HTML for all content
|
|
10
|
+
* - CSS-based spacing (margin/padding) for actual layout
|
|
11
|
+
* - aria-hidden only on non-focusable, decorative elements
|
|
12
|
+
*
|
|
13
|
+
* @returns {React.ReactNode} Spacing scale documentation
|
|
14
|
+
*/
|
|
15
|
+
export function Spacing(): React.ReactNode;
|
|
16
|
+
export default Spacing;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spacing, default } from "./Spacing";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function SpeedDial({ actions, variant, color, direction, speed, showTooltips, open: controlledOpen, onOpen, onClose, icon, ariaLabel, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
actions?: any[];
|
|
4
|
+
variant?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
direction?: string;
|
|
7
|
+
speed?: number;
|
|
8
|
+
showTooltips?: boolean;
|
|
9
|
+
open: any;
|
|
10
|
+
onOpen: any;
|
|
11
|
+
onClose: any;
|
|
12
|
+
icon: any;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
sx?: {};
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export default SpeedDial;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export function OmniStack({ children, gap, spacing, direction, enforceMinGap, minGapToken, divider, flexWrap, useFlexGap, alignItems, justifyContent, sx, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
gap: any;
|
|
5
|
+
spacing: any;
|
|
6
|
+
direction?: string;
|
|
7
|
+
enforceMinGap?: boolean;
|
|
8
|
+
minGapToken?: string;
|
|
9
|
+
divider: any;
|
|
10
|
+
flexWrap: any;
|
|
11
|
+
useFlexGap?: boolean;
|
|
12
|
+
alignItems: any;
|
|
13
|
+
justifyContent: any;
|
|
14
|
+
sx?: {};
|
|
15
|
+
className?: string;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export function HStack(p: any): JSX.Element;
|
|
18
|
+
export function VStack(p: any): JSX.Element;
|
|
19
|
+
export function CenteredStack(p: any): JSX.Element;
|
|
20
|
+
export function SpaceBetweenStack(p: any): JSX.Element;
|
|
21
|
+
export function WrapStack(p: any): JSX.Element;
|
|
22
|
+
export function ResponsiveStack({ breakpoint, ...p }: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
breakpoint?: string;
|
|
25
|
+
}): JSX.Element;
|
|
26
|
+
export function Stack({ children, gap, spacing, direction, enforceMinGap, minGapToken, divider, flexWrap, useFlexGap, alignItems, justifyContent, sx, className, ...props }: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
children: any;
|
|
29
|
+
gap: any;
|
|
30
|
+
spacing: any;
|
|
31
|
+
direction?: string;
|
|
32
|
+
enforceMinGap?: boolean;
|
|
33
|
+
minGapToken?: string;
|
|
34
|
+
divider: any;
|
|
35
|
+
flexWrap: any;
|
|
36
|
+
useFlexGap?: boolean;
|
|
37
|
+
alignItems: any;
|
|
38
|
+
justifyContent: any;
|
|
39
|
+
sx?: {};
|
|
40
|
+
className?: string;
|
|
41
|
+
}): JSX.Element;
|
|
42
|
+
export function GridStack(p: any): JSX.Element;
|
|
43
|
+
export function StackDivider(p: any): JSX.Element;
|
|
44
|
+
export function InsetStack({ sx: sxProp, ...p }: {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
sx: any;
|
|
47
|
+
}): JSX.Element;
|
|
48
|
+
export function ScrollStack({ sx: sxProp, ...p }: {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
sx: any;
|
|
51
|
+
}): JSX.Element;
|
|
52
|
+
export default OmniStack;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function Stepper({ children, orientation, size, color, activeStep, clickable, onStepClick, dashedIncomplete, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
orientation?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
activeStep?: number;
|
|
8
|
+
clickable?: boolean;
|
|
9
|
+
onStepClick: any;
|
|
10
|
+
dashedIncomplete?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
sx?: {};
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
export function Step({ children, icon, label, _index, className, sx, ...props }: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
children: any;
|
|
17
|
+
icon: any;
|
|
18
|
+
label: any;
|
|
19
|
+
_index?: number;
|
|
20
|
+
className?: string;
|
|
21
|
+
sx?: {};
|
|
22
|
+
}): JSX.Element;
|
|
23
|
+
export function useStepperContext(): {
|
|
24
|
+
orientation: string;
|
|
25
|
+
size: string;
|
|
26
|
+
color: string;
|
|
27
|
+
activeStep: number;
|
|
28
|
+
clickable: boolean;
|
|
29
|
+
onStepClick: any;
|
|
30
|
+
dashedIncomplete: boolean;
|
|
31
|
+
totalSteps: number;
|
|
32
|
+
};
|
|
33
|
+
export default Stepper;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
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
|
+
[x: string]: any;
|
|
3
|
+
variant?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
checked: any;
|
|
6
|
+
defaultChecked: any;
|
|
7
|
+
onChange: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label: any;
|
|
10
|
+
labelPlacement?: string;
|
|
11
|
+
name: any;
|
|
12
|
+
value: any;
|
|
13
|
+
icon: any;
|
|
14
|
+
iconOn: any;
|
|
15
|
+
iconOff: any;
|
|
16
|
+
className?: string;
|
|
17
|
+
sx?: {};
|
|
18
|
+
"aria-label": any;
|
|
19
|
+
"aria-labelledby": any;
|
|
20
|
+
}): JSX.Element;
|
|
21
|
+
export function PrimarySwitch(p: any): JSX.Element;
|
|
22
|
+
export function SecondarySwitch(p: any): JSX.Element;
|
|
23
|
+
export function TertiarySwitch(p: any): JSX.Element;
|
|
24
|
+
export function NeutralSwitch(p: any): JSX.Element;
|
|
25
|
+
export function InfoSwitch(p: any): JSX.Element;
|
|
26
|
+
export function SuccessSwitch(p: any): JSX.Element;
|
|
27
|
+
export function WarningSwitch(p: any): JSX.Element;
|
|
28
|
+
export function ErrorSwitch(p: any): JSX.Element;
|
|
29
|
+
export function PrimaryOutlineSwitch(p: any): JSX.Element;
|
|
30
|
+
export function SecondaryOutlineSwitch(p: any): JSX.Element;
|
|
31
|
+
export function TertiaryOutlineSwitch(p: any): JSX.Element;
|
|
32
|
+
export function NeutralOutlineSwitch(p: any): JSX.Element;
|
|
33
|
+
export function InfoOutlineSwitch(p: any): JSX.Element;
|
|
34
|
+
export function SuccessOutlineSwitch(p: any): JSX.Element;
|
|
35
|
+
export function WarningOutlineSwitch(p: any): JSX.Element;
|
|
36
|
+
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
|
+
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
|
+
[x: string]: any;
|
|
47
|
+
variant?: string;
|
|
48
|
+
size?: string;
|
|
49
|
+
checked: any;
|
|
50
|
+
defaultChecked: any;
|
|
51
|
+
onChange: any;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
label: any;
|
|
54
|
+
labelPlacement?: string;
|
|
55
|
+
name: any;
|
|
56
|
+
value: any;
|
|
57
|
+
icon: any;
|
|
58
|
+
iconOn: any;
|
|
59
|
+
iconOff: any;
|
|
60
|
+
className?: string;
|
|
61
|
+
sx?: {};
|
|
62
|
+
"aria-label": any;
|
|
63
|
+
"aria-labelledby": any;
|
|
64
|
+
}): JSX.Element;
|
|
65
|
+
export default Switch;
|
|
@@ -0,0 +1,2 @@
|
|
|
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, PrimaryLightSwitch, SecondaryLightSwitch, TertiaryLightSwitch, NeutralLightSwitch, InfoLightSwitch, SuccessLightSwitch, WarningLightSwitch, ErrorLightSwitch, default } from "./Switch";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function Table({ children, columns, rows, footerRows, variant, color, size, stripe, stickyHeader, stickyFooter, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
columns: any;
|
|
5
|
+
rows: any;
|
|
6
|
+
footerRows: any;
|
|
7
|
+
variant?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: string;
|
|
10
|
+
stripe?: string;
|
|
11
|
+
stickyHeader?: boolean;
|
|
12
|
+
stickyFooter?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
sx?: {};
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
export function DefaultTable(p: any): JSX.Element;
|
|
17
|
+
export function OutlinedTable(p: any): JSX.Element;
|
|
18
|
+
export function LightTable(p: any): JSX.Element;
|
|
19
|
+
export function SolidTable(p: any): JSX.Element;
|
|
20
|
+
export default Table;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export function Tabs({ children, defaultValue, value: controlledValue, onChange, variant, color, size, orientation, scrollable, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
value: any;
|
|
6
|
+
onChange: any;
|
|
7
|
+
variant?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: string;
|
|
10
|
+
orientation?: string;
|
|
11
|
+
scrollable?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
sx?: {};
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
export function TabList({ children, rounded, className, sx, ...props }: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
children: any;
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
sx?: {};
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
export function Tab({ children, value: tabValue, _index, disabled, startDecorator, endDecorator, iconOnly, className, sx, ...props }: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
children: any;
|
|
25
|
+
value: any;
|
|
26
|
+
_index?: number;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
startDecorator: any;
|
|
29
|
+
endDecorator: any;
|
|
30
|
+
iconOnly?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
sx?: {};
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
export function TabPanel({ children, value: panelValue, className, sx, ...props }: {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
children: any;
|
|
37
|
+
value: any;
|
|
38
|
+
className?: string;
|
|
39
|
+
sx?: {};
|
|
40
|
+
}): JSX.Element;
|
|
41
|
+
export function useTabsContext(): {
|
|
42
|
+
value: number;
|
|
43
|
+
setValue: () => void;
|
|
44
|
+
variant: string;
|
|
45
|
+
color: string;
|
|
46
|
+
size: string;
|
|
47
|
+
orientation: string;
|
|
48
|
+
scrollable: boolean;
|
|
49
|
+
tabsId: string;
|
|
50
|
+
};
|
|
51
|
+
export default Tabs;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export function Tag({ color, width, allCaps, children, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
color?: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
allCaps?: boolean;
|
|
6
|
+
children: any;
|
|
7
|
+
className?: string;
|
|
8
|
+
sx?: {};
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
export function PrimaryTag(p: any): JSX.Element;
|
|
11
|
+
export function SecondaryTag(p: any): JSX.Element;
|
|
12
|
+
export function TertiaryTag(p: any): JSX.Element;
|
|
13
|
+
export function NeutralTag(p: any): JSX.Element;
|
|
14
|
+
export function InfoTag(p: any): JSX.Element;
|
|
15
|
+
export function SuccessTag(p: any): JSX.Element;
|
|
16
|
+
export function WarningTag(p: any): JSX.Element;
|
|
17
|
+
export function ErrorTag(p: any): JSX.Element;
|
|
18
|
+
export default Tag;
|
|
19
|
+
/**
|
|
20
|
+
* Tag Component
|
|
21
|
+
*
|
|
22
|
+
* A compact label used for status, categorization, and metadata.
|
|
23
|
+
*
|
|
24
|
+
* SPECS:
|
|
25
|
+
* Height: 24px
|
|
26
|
+
* Padding: 0 8px (left/right only)
|
|
27
|
+
* Border-radius: 0 (sharp corners)
|
|
28
|
+
* Typography: BodySmall, line-height 24px, weight 600
|
|
29
|
+
* Background: var(--Tag-{Theme}-BG)
|
|
30
|
+
* Text: var(--Tag-{Theme}-Text)
|
|
31
|
+
*
|
|
32
|
+
* COLORS:
|
|
33
|
+
* primary | secondary | tertiary | neutral
|
|
34
|
+
* info | success | warning | error
|
|
35
|
+
*
|
|
36
|
+
* PROPS:
|
|
37
|
+
* color string One of the above colors (default: 'primary')
|
|
38
|
+
* width string 'hug' (default) fits content, 'fill' stretches to container
|
|
39
|
+
* allCaps boolean Transforms text to uppercase (default: false)
|
|
40
|
+
* children node Tag label text
|
|
41
|
+
* className string
|
|
42
|
+
* sx object MUI sx overrides
|
|
43
|
+
*/
|
|
44
|
+
declare const COLORS: string[];
|
|
45
|
+
declare namespace COLOR_TOKEN_MAP {
|
|
46
|
+
let _default: string;
|
|
47
|
+
export { _default as default };
|
|
48
|
+
export let primary: string;
|
|
49
|
+
export let secondary: string;
|
|
50
|
+
export let tertiary: string;
|
|
51
|
+
export let neutral: string;
|
|
52
|
+
export let info: string;
|
|
53
|
+
export let success: string;
|
|
54
|
+
export let warning: string;
|
|
55
|
+
export let error: string;
|
|
56
|
+
}
|
|
57
|
+
export { COLORS as TAG_COLORS, COLOR_TOKEN_MAP as TAG_COLOR_TOKEN_MAP };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TextField Component - Design System Implementation
|
|
3
|
+
*
|
|
4
|
+
* Uses Material-UI TextField with custom design system styling
|
|
5
|
+
* Implements WCAG 2.1 AA accessibility standards with color contrast requirements:
|
|
6
|
+
* - Border: 3.1:1 contrast ratio against background
|
|
7
|
+
* - Text: 4.5:1 contrast ratio against background
|
|
8
|
+
* - Error state uses error colors
|
|
9
|
+
*
|
|
10
|
+
* @param {string} label - Field label text
|
|
11
|
+
* @param {string} value - Input value
|
|
12
|
+
* @param {function} onChange - Change handler
|
|
13
|
+
* @param {string} placeholder - Placeholder text
|
|
14
|
+
* @param {string} error - Error message (empty = no error)
|
|
15
|
+
* @param {boolean} disabled - Disabled state
|
|
16
|
+
* @param {string} helperText - Helper text below field
|
|
17
|
+
* @param {string} variant - Variant: outlined, filled, standard (default: outlined)
|
|
18
|
+
* @param {string} size - Size: small, medium (default: medium)
|
|
19
|
+
* @param {string} type - Input type: text, email, password, number, etc
|
|
20
|
+
* @param {boolean} required - Required field
|
|
21
|
+
* @param {object} sx - Additional MUI sx props
|
|
22
|
+
* @param {object} ...props - Other MUI TextField props
|
|
23
|
+
*/
|
|
24
|
+
export function TextField({ label, value, onChange, placeholder, error, errorMessage, disabled, helperText, variant, size, type, required, fullWidth, startAdornment, endAdornment, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: string): JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* Email TextField
|
|
27
|
+
* Pre-configured for email input with validation
|
|
28
|
+
*/
|
|
29
|
+
export function EmailTextField({ label, ...props }: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
label?: string;
|
|
32
|
+
}): JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Password TextField
|
|
35
|
+
* Pre-configured for password input
|
|
36
|
+
*/
|
|
37
|
+
export function PasswordTextField({ label, ...props }: {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
label?: string;
|
|
40
|
+
}): JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Search TextField
|
|
43
|
+
* Pre-configured for search input
|
|
44
|
+
*/
|
|
45
|
+
export function SearchTextField({ label, placeholder, ...props }: {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
label?: string;
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
}): JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Number TextField
|
|
52
|
+
* Pre-configured for numeric input
|
|
53
|
+
*/
|
|
54
|
+
export function NumberTextField({ label, ...props }: {
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
label?: string;
|
|
57
|
+
}): JSX.Element;
|
|
58
|
+
/**
|
|
59
|
+
* Phone TextField
|
|
60
|
+
* Pre-configured for phone number input
|
|
61
|
+
*/
|
|
62
|
+
export function PhoneTextField({ label, placeholder, ...props }: {
|
|
63
|
+
[x: string]: any;
|
|
64
|
+
label?: string;
|
|
65
|
+
placeholder?: string;
|
|
66
|
+
}): JSX.Element;
|
|
67
|
+
/**
|
|
68
|
+
* URL TextField
|
|
69
|
+
* Pre-configured for URL input
|
|
70
|
+
*/
|
|
71
|
+
export function URLTextField({ label, placeholder, ...props }: {
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
label?: string;
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
}): JSX.Element;
|
|
76
|
+
/**
|
|
77
|
+
* Textarea Component
|
|
78
|
+
* Multi-line text input
|
|
79
|
+
*/
|
|
80
|
+
export function TextArea({ label, value, onChange, placeholder, error, errorMessage, disabled, helperText, rows, required, fullWidth, sx, ...props }: {
|
|
81
|
+
[x: string]: any;
|
|
82
|
+
label: any;
|
|
83
|
+
value?: string;
|
|
84
|
+
onChange: any;
|
|
85
|
+
placeholder: any;
|
|
86
|
+
error?: boolean;
|
|
87
|
+
errorMessage?: string;
|
|
88
|
+
disabled?: boolean;
|
|
89
|
+
helperText?: string;
|
|
90
|
+
rows?: number;
|
|
91
|
+
required?: boolean;
|
|
92
|
+
fullWidth?: boolean;
|
|
93
|
+
sx?: {};
|
|
94
|
+
}): JSX.Element;
|
|
95
|
+
/**
|
|
96
|
+
* TextFieldGroup Component
|
|
97
|
+
* Multiple text fields grouped together
|
|
98
|
+
*/
|
|
99
|
+
export function TextFieldGroup({ fields, spacing, sx, ...props }: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
fields?: any[];
|
|
102
|
+
spacing?: number;
|
|
103
|
+
sx?: {};
|
|
104
|
+
}): JSX.Element;
|
|
105
|
+
export default TextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextField, EmailTextField, PasswordTextField, SearchTextField, NumberTextField, PhoneTextField, URLTextField, TextArea, TextFieldGroup, default } from "./TextField";
|