@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,17 @@
|
|
|
1
|
+
export function Fab({ children, icon, label, variant, color, size, extended, animate, disabled, onClick, ariaLabel, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
icon: any;
|
|
5
|
+
label: any;
|
|
6
|
+
variant?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: string;
|
|
9
|
+
extended?: boolean;
|
|
10
|
+
animate?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onClick: any;
|
|
13
|
+
ariaLabel: any;
|
|
14
|
+
className?: string;
|
|
15
|
+
sx?: {};
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export default Fab;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function Footer({ color, brand, address, columns, socialLinks, subscribe, copyrightName, copyrightYear, className, style, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
color?: string;
|
|
4
|
+
brand: any;
|
|
5
|
+
address: any;
|
|
6
|
+
columns?: any[];
|
|
7
|
+
socialLinks?: any[];
|
|
8
|
+
subscribe: any;
|
|
9
|
+
copyrightName: any;
|
|
10
|
+
copyrightYear: any;
|
|
11
|
+
className: any;
|
|
12
|
+
style: any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
export default Footer;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gradient Component
|
|
3
|
+
*
|
|
4
|
+
* Three variants:
|
|
5
|
+
* linear CSS linear-gradient with configurable angle + stops.
|
|
6
|
+
* mesh Simulated mesh gradient (stacked radial-gradients).
|
|
7
|
+
* meshCard Mesh gradient background with a Card overlay for content.
|
|
8
|
+
*
|
|
9
|
+
* ACCESSIBILITY:
|
|
10
|
+
* linear & mesh enforce an accessibility zone — all tones must be in the
|
|
11
|
+
* same zone (1-5 dark or 6-12 light) so a single text color works across
|
|
12
|
+
* the entire surface. meshCard is exempt because content lives inside the
|
|
13
|
+
* Card, which provides its own themed background.
|
|
14
|
+
*
|
|
15
|
+
* COLORS:
|
|
16
|
+
* Each stop/blob has a `family` (primary, secondary, tertiary, neutral,
|
|
17
|
+
* black, white, info, success, warning, error) and a `tone` (1-12).
|
|
18
|
+
* Cross-family gradients are supported.
|
|
19
|
+
*/
|
|
20
|
+
export function Gradient({ variant, color, angle, stops, position, blobs, cardProps, minHeight, children, className, sx, ...props }: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
variant?: string;
|
|
23
|
+
color?: string;
|
|
24
|
+
angle?: number;
|
|
25
|
+
stops?: any;
|
|
26
|
+
position?: any;
|
|
27
|
+
blobs?: any;
|
|
28
|
+
cardProps?: {};
|
|
29
|
+
minHeight?: number;
|
|
30
|
+
children: any;
|
|
31
|
+
className?: string;
|
|
32
|
+
sx?: {};
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
export function LinearGradient(p: any): JSX.Element;
|
|
35
|
+
export function RadialGradient(p: any): JSX.Element;
|
|
36
|
+
export function MeshGradient(p: any): JSX.Element;
|
|
37
|
+
export function MeshCardGradient(p: any): JSX.Element;
|
|
38
|
+
export default Gradient;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
export namespace FAMILY_PREFIX {
|
|
2
|
+
let primary: string;
|
|
3
|
+
let secondary: string;
|
|
4
|
+
let tertiary: string;
|
|
5
|
+
let neutral: string;
|
|
6
|
+
let black: string;
|
|
7
|
+
let white: string;
|
|
8
|
+
}
|
|
9
|
+
export const FAMILIES: string[];
|
|
10
|
+
export const DARK_TONES: number[];
|
|
11
|
+
export const LIGHT_TONES: number[];
|
|
12
|
+
export const ALL_TONES: number[];
|
|
13
|
+
export namespace COLOR_PRESETS {
|
|
14
|
+
export namespace primary_1 {
|
|
15
|
+
let linear: {
|
|
16
|
+
family: string;
|
|
17
|
+
tone: number;
|
|
18
|
+
position: number;
|
|
19
|
+
}[];
|
|
20
|
+
let radial: {
|
|
21
|
+
family: string;
|
|
22
|
+
tone: number;
|
|
23
|
+
position: number;
|
|
24
|
+
}[];
|
|
25
|
+
let mesh: {
|
|
26
|
+
family: string;
|
|
27
|
+
tone: number;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
spread: number;
|
|
31
|
+
}[];
|
|
32
|
+
let meshCard: {
|
|
33
|
+
family: string;
|
|
34
|
+
tone: number;
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
spread: number;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
export { primary_1 as primary };
|
|
41
|
+
export namespace secondary_1 {
|
|
42
|
+
let linear_1: {
|
|
43
|
+
family: string;
|
|
44
|
+
tone: number;
|
|
45
|
+
position: number;
|
|
46
|
+
}[];
|
|
47
|
+
export { linear_1 as linear };
|
|
48
|
+
let radial_1: {
|
|
49
|
+
family: string;
|
|
50
|
+
tone: number;
|
|
51
|
+
position: number;
|
|
52
|
+
}[];
|
|
53
|
+
export { radial_1 as radial };
|
|
54
|
+
let mesh_1: {
|
|
55
|
+
family: string;
|
|
56
|
+
tone: number;
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
spread: number;
|
|
60
|
+
}[];
|
|
61
|
+
export { mesh_1 as mesh };
|
|
62
|
+
let meshCard_1: {
|
|
63
|
+
family: string;
|
|
64
|
+
tone: number;
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
spread: number;
|
|
68
|
+
}[];
|
|
69
|
+
export { meshCard_1 as meshCard };
|
|
70
|
+
}
|
|
71
|
+
export { secondary_1 as secondary };
|
|
72
|
+
export namespace tertiary_1 {
|
|
73
|
+
let linear_2: {
|
|
74
|
+
family: string;
|
|
75
|
+
tone: number;
|
|
76
|
+
position: number;
|
|
77
|
+
}[];
|
|
78
|
+
export { linear_2 as linear };
|
|
79
|
+
let radial_2: {
|
|
80
|
+
family: string;
|
|
81
|
+
tone: number;
|
|
82
|
+
position: number;
|
|
83
|
+
}[];
|
|
84
|
+
export { radial_2 as radial };
|
|
85
|
+
let mesh_2: {
|
|
86
|
+
family: string;
|
|
87
|
+
tone: number;
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
spread: number;
|
|
91
|
+
}[];
|
|
92
|
+
export { mesh_2 as mesh };
|
|
93
|
+
let meshCard_2: {
|
|
94
|
+
family: string;
|
|
95
|
+
tone: number;
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
spread: number;
|
|
99
|
+
}[];
|
|
100
|
+
export { meshCard_2 as meshCard };
|
|
101
|
+
}
|
|
102
|
+
export { tertiary_1 as tertiary };
|
|
103
|
+
export namespace black_1 {
|
|
104
|
+
let linear_3: {
|
|
105
|
+
family: string;
|
|
106
|
+
tone: number;
|
|
107
|
+
position: number;
|
|
108
|
+
}[];
|
|
109
|
+
export { linear_3 as linear };
|
|
110
|
+
let radial_3: {
|
|
111
|
+
family: string;
|
|
112
|
+
tone: number;
|
|
113
|
+
position: number;
|
|
114
|
+
}[];
|
|
115
|
+
export { radial_3 as radial };
|
|
116
|
+
let mesh_3: {
|
|
117
|
+
family: string;
|
|
118
|
+
tone: number;
|
|
119
|
+
x: number;
|
|
120
|
+
y: number;
|
|
121
|
+
spread: number;
|
|
122
|
+
}[];
|
|
123
|
+
export { mesh_3 as mesh };
|
|
124
|
+
let meshCard_3: {
|
|
125
|
+
family: string;
|
|
126
|
+
tone: number;
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
spread: number;
|
|
130
|
+
}[];
|
|
131
|
+
export { meshCard_3 as meshCard };
|
|
132
|
+
}
|
|
133
|
+
export { black_1 as black };
|
|
134
|
+
export namespace white_1 {
|
|
135
|
+
let linear_4: {
|
|
136
|
+
family: string;
|
|
137
|
+
tone: number;
|
|
138
|
+
position: number;
|
|
139
|
+
}[];
|
|
140
|
+
export { linear_4 as linear };
|
|
141
|
+
let radial_4: {
|
|
142
|
+
family: string;
|
|
143
|
+
tone: number;
|
|
144
|
+
position: number;
|
|
145
|
+
}[];
|
|
146
|
+
export { radial_4 as radial };
|
|
147
|
+
let mesh_4: {
|
|
148
|
+
family: string;
|
|
149
|
+
tone: number;
|
|
150
|
+
x: number;
|
|
151
|
+
y: number;
|
|
152
|
+
spread: number;
|
|
153
|
+
}[];
|
|
154
|
+
export { mesh_4 as mesh };
|
|
155
|
+
let meshCard_4: {
|
|
156
|
+
family: string;
|
|
157
|
+
tone: number;
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
spread: number;
|
|
161
|
+
}[];
|
|
162
|
+
export { meshCard_4 as meshCard };
|
|
163
|
+
}
|
|
164
|
+
export { white_1 as white };
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Get the visual zone for a tone.
|
|
168
|
+
* For most families: tones 1-5 = dark, 6-12 = light.
|
|
169
|
+
* BW is inverted: tones 1-5 = white (light), 6-12 = black (dark).
|
|
170
|
+
*/
|
|
171
|
+
export function getZone(tone: any, family: any): "light" | "dark";
|
|
172
|
+
export function getAllowedTones(heroTone: any, heroFamily: any): number[];
|
|
173
|
+
/**
|
|
174
|
+
* Get allowed tones for a given zone.
|
|
175
|
+
* For brand families: dark = 1-5, light = 6-12.
|
|
176
|
+
* For BW: dark = 6-12, light = 1-5.
|
|
177
|
+
*/
|
|
178
|
+
export function getAllowedTonesForFamily(zone: any, family: any): number[];
|
|
179
|
+
export function getTextColor(zone: any): "var(--BW-Color-1)" | "var(--BW-Color-6)";
|
|
180
|
+
export function validateZone(items: any): any;
|
|
181
|
+
export function getColorVar(family: any, tone: any): string;
|
|
182
|
+
export function buildLinearCSS(stops: any, angle: any): string;
|
|
183
|
+
export function buildRadialCSS(stops: any, position: any): string;
|
|
184
|
+
export function buildMeshCSS(blobs: any): any;
|
|
185
|
+
export function getPreset(color: any, variant: any): any;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GradientShowcase } from "./GradientShowcase";
|
|
2
|
+
export { Gradient, LinearGradient, RadialGradient, MeshGradient, MeshCardGradient, default } from "./Gradient";
|
|
3
|
+
export { buildLinearCSS, buildRadialCSS, buildMeshCSS, getZone, getAllowedTones, getTextColor, getColorVar } from "./gradientUtils";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid Component
|
|
3
|
+
* Responsive grid container and item wrapper
|
|
4
|
+
* Uses MUI Grid system with design system styling
|
|
5
|
+
*
|
|
6
|
+
* @param {boolean} container - Use as grid container (default: false)
|
|
7
|
+
* @param {boolean} item - Use as grid item (default: false)
|
|
8
|
+
* @param {number} xs - Columns on extra small screens (1-12)
|
|
9
|
+
* @param {number} sm - Columns on small screens (1-12)
|
|
10
|
+
* @param {number} md - Columns on medium screens (1-12)
|
|
11
|
+
* @param {number} lg - Columns on large screens (1-12)
|
|
12
|
+
* @param {number} xl - Columns on extra large screens (1-12)
|
|
13
|
+
* @param {string} spacing - Spacing between items: 0-10
|
|
14
|
+
* @param {ReactNode} children - Grid content
|
|
15
|
+
* @param {object} props - Additional MUI Grid props
|
|
16
|
+
*/
|
|
17
|
+
export function Grid({ children, container, item, spacing, sx, ...props }: boolean): JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* GridContainer Component
|
|
20
|
+
* Pre-configured grid container
|
|
21
|
+
*
|
|
22
|
+
* @param {number} spacing - Spacing between items (default: 2)
|
|
23
|
+
* @param {boolean} fullWidth - Take full width
|
|
24
|
+
* @param {ReactNode} children - Grid content
|
|
25
|
+
* @param {object} props - Additional props
|
|
26
|
+
*/
|
|
27
|
+
export function GridContainer({ children, spacing, fullWidth, sx, ...props }: number): JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* GridItem Component
|
|
30
|
+
* Pre-configured grid item
|
|
31
|
+
*
|
|
32
|
+
* @param {number} xs - Columns on extra small screens
|
|
33
|
+
* @param {number} sm - Columns on small screens
|
|
34
|
+
* @param {number} md - Columns on medium screens
|
|
35
|
+
* @param {number} lg - Columns on large screens
|
|
36
|
+
* @param {number} xl - Columns on extra large screens
|
|
37
|
+
* @param {ReactNode} children - Item content
|
|
38
|
+
* @param {object} props - Additional props
|
|
39
|
+
*/
|
|
40
|
+
export function GridItem({ children, xs, sm, md, lg, xl, sx, ...props }: number): JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* FullWidthGrid Component
|
|
43
|
+
* Grid item that spans full width
|
|
44
|
+
*
|
|
45
|
+
* @param {ReactNode} children - Item content
|
|
46
|
+
* @param {object} props - Additional props
|
|
47
|
+
*/
|
|
48
|
+
export function FullWidthGrid({ children, sx, ...props }: ReactNode): JSX.Element;
|
|
49
|
+
/**
|
|
50
|
+
* HalfWidthGrid Component
|
|
51
|
+
* Grid item that spans half width on medium+ screens
|
|
52
|
+
*
|
|
53
|
+
* @param {ReactNode} children - Item content
|
|
54
|
+
* @param {object} props - Additional props
|
|
55
|
+
*/
|
|
56
|
+
export function HalfWidthGrid({ children, sx, ...props }: ReactNode): JSX.Element;
|
|
57
|
+
/**
|
|
58
|
+
* ThirdWidthGrid Component
|
|
59
|
+
* Grid item that spans one-third width on medium+ screens
|
|
60
|
+
*
|
|
61
|
+
* @param {ReactNode} children - Item content
|
|
62
|
+
* @param {object} props - Additional props
|
|
63
|
+
*/
|
|
64
|
+
export function ThirdWidthGrid({ children, sx, ...props }: ReactNode): JSX.Element;
|
|
65
|
+
/**
|
|
66
|
+
* QuarterWidthGrid Component
|
|
67
|
+
* Grid item that spans one-quarter width on medium+ screens
|
|
68
|
+
*
|
|
69
|
+
* @param {ReactNode} children - Item content
|
|
70
|
+
* @param {object} props - Additional props
|
|
71
|
+
*/
|
|
72
|
+
export function QuarterWidthGrid({ children, sx, ...props }: ReactNode): JSX.Element;
|
|
73
|
+
/**
|
|
74
|
+
* ResponsiveGrid Component
|
|
75
|
+
* Grid with responsive column configuration
|
|
76
|
+
*
|
|
77
|
+
* @param {number} columns - Number of columns on desktop
|
|
78
|
+
* @param {number} mobileColumns - Number of columns on mobile
|
|
79
|
+
* @param {number} spacing - Spacing between items
|
|
80
|
+
* @param {ReactNode} children - Grid content
|
|
81
|
+
* @param {object} props - Additional props
|
|
82
|
+
*/
|
|
83
|
+
export function ResponsiveGrid({ children, columns, mobileColumns, spacing, sx, ...props }: number): JSX.Element;
|
|
84
|
+
/**
|
|
85
|
+
* AutoGrid Component
|
|
86
|
+
* Auto-sizing grid items
|
|
87
|
+
*
|
|
88
|
+
* @param {number} minWidth - Minimum item width in pixels
|
|
89
|
+
* @param {number} spacing - Spacing between items
|
|
90
|
+
* @param {ReactNode} children - Grid content
|
|
91
|
+
* @param {object} props - Additional props
|
|
92
|
+
*/
|
|
93
|
+
export function AutoGrid({ children, minWidth, spacing, sx, ...props }: number): JSX.Element;
|
|
94
|
+
/**
|
|
95
|
+
* CenteredGrid Component
|
|
96
|
+
* Grid with centered content
|
|
97
|
+
*
|
|
98
|
+
* @param {number} spacing - Spacing between items
|
|
99
|
+
* @param {ReactNode} children - Grid content
|
|
100
|
+
* @param {object} props - Additional props
|
|
101
|
+
*/
|
|
102
|
+
export function CenteredGrid({ children, spacing, sx, ...props }: number): JSX.Element;
|
|
103
|
+
/**
|
|
104
|
+
* ColumnGrid Component
|
|
105
|
+
* Grid item that takes specific column width
|
|
106
|
+
*
|
|
107
|
+
* @param {number} columns - Column width (1-12)
|
|
108
|
+
* @param {ReactNode} children - Item content
|
|
109
|
+
* @param {object} props - Additional props
|
|
110
|
+
*/
|
|
111
|
+
export function ColumnGrid({ children, columns, sx, ...props }: number): JSX.Element;
|
|
112
|
+
export default Grid;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Grid, GridContainer, GridItem, FullWidthGrid, HalfWidthGrid, ThirdWidthGrid, QuarterWidthGrid, ResponsiveGrid, AutoGrid, CenteredGrid, ColumnGrid, default } from "./Grid";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Header Component
|
|
3
|
+
* App header with navigation and theme toggle
|
|
4
|
+
* Uses design system variables for styling
|
|
5
|
+
*
|
|
6
|
+
* @param {string} title - App title/brand name
|
|
7
|
+
* @param {string} mode - Theme mode: light or dark
|
|
8
|
+
* @param {Array} navItems - Navigation menu items
|
|
9
|
+
* @param {ReactNode} rightContent - Right side content
|
|
10
|
+
* @param {object} props - Additional props
|
|
11
|
+
*/
|
|
12
|
+
export function Header({ title, mode, navItems, rightContent, sx, ...props }: string): JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* SimpleHeader Component
|
|
15
|
+
* Minimal header with just title and theme toggle
|
|
16
|
+
*
|
|
17
|
+
* @param {string} title - App title
|
|
18
|
+
* @param {string} mode - Theme mode
|
|
19
|
+
* @param {function} onModeChange - Theme toggle handler
|
|
20
|
+
* @param {object} props - Additional props
|
|
21
|
+
*/
|
|
22
|
+
export function SimpleHeader({ title, mode, onModeChange, sx, ...props }: string): JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* MinimalHeader Component
|
|
25
|
+
* Very minimal header with just title
|
|
26
|
+
*
|
|
27
|
+
* @param {string} title - App title
|
|
28
|
+
* @param {object} props - Additional props
|
|
29
|
+
*/
|
|
30
|
+
export function MinimalHeader({ title, sx, ...props }: string): JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* CenteredHeader Component
|
|
33
|
+
* Header with centered navigation
|
|
34
|
+
*
|
|
35
|
+
* @param {string} title - App title
|
|
36
|
+
* @param {Array} navItems - Navigation items
|
|
37
|
+
* @param {string} mode - Theme mode
|
|
38
|
+
* @param {function} onModeChange - Theme toggle handler
|
|
39
|
+
* @param {object} props - Additional props
|
|
40
|
+
*/
|
|
41
|
+
export function CenteredHeader({ title, navItems, mode, onModeChange, sx, ...props }: string): JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* StickyHeader Component
|
|
44
|
+
* Header that sticks to top on scroll
|
|
45
|
+
*
|
|
46
|
+
* @param {string} title - App title
|
|
47
|
+
* @param {Array} navItems - Navigation items
|
|
48
|
+
* @param {string} mode - Theme mode
|
|
49
|
+
* @param {function} onModeChange - Theme toggle handler
|
|
50
|
+
* @param {object} props - Additional props
|
|
51
|
+
*/
|
|
52
|
+
export function StickyHeader({ title, navItems, mode, onModeChange, sx, ...props }: string): JSX.Element;
|
|
53
|
+
export default Header;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Header, SimpleHeader, MinimalHeader, CenteredHeader, StickyHeader, default } from "./Header";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function Icon({ children, color, size, fontSize: customFontSize, disabled, twoTone, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
color?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
fontSize: any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
twoTone?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
sx?: {};
|
|
11
|
+
"aria-label": any;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
export namespace ICON_SIZE_MAP {
|
|
14
|
+
let xs: string;
|
|
15
|
+
let small: string;
|
|
16
|
+
let medium: string;
|
|
17
|
+
let large: string;
|
|
18
|
+
}
|
|
19
|
+
export default Icon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function IconBadge({ children, color, variant, size, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
color?: string;
|
|
5
|
+
variant?: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
sx?: {};
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
export default IconBadge;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export function Input({ variant, size, label, labelPosition, placeholder, helperText, validation, validationMessage, disabled, value, defaultValue, onChange, name, type, multiline, rows, maxRows, startAdornment, endAdornment, fullWidth, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-required": ariaRequired, "aria-invalid": ariaInvalid, inputProps: inputPropsProp, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
variant?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
label: any;
|
|
6
|
+
labelPosition?: string;
|
|
7
|
+
placeholder: any;
|
|
8
|
+
helperText: any;
|
|
9
|
+
validation: any;
|
|
10
|
+
validationMessage: any;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
value: any;
|
|
13
|
+
defaultValue: any;
|
|
14
|
+
onChange: any;
|
|
15
|
+
name: any;
|
|
16
|
+
type?: string;
|
|
17
|
+
multiline?: boolean;
|
|
18
|
+
rows: any;
|
|
19
|
+
maxRows: any;
|
|
20
|
+
startAdornment: any;
|
|
21
|
+
endAdornment: any;
|
|
22
|
+
fullWidth?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
sx?: {};
|
|
25
|
+
"aria-label": any;
|
|
26
|
+
"aria-labelledby": any;
|
|
27
|
+
"aria-describedby": any;
|
|
28
|
+
"aria-required": any;
|
|
29
|
+
"aria-invalid": any;
|
|
30
|
+
inputProps?: {};
|
|
31
|
+
}): JSX.Element;
|
|
32
|
+
export function PrimaryOutlineInput(p: any): JSX.Element;
|
|
33
|
+
export function SecondaryOutlineInput(p: any): JSX.Element;
|
|
34
|
+
export function TertiaryOutlineInput(p: any): JSX.Element;
|
|
35
|
+
export function NeutralOutlineInput(p: any): JSX.Element;
|
|
36
|
+
export function InfoOutlineInput(p: any): JSX.Element;
|
|
37
|
+
export function SuccessOutlineInput(p: any): JSX.Element;
|
|
38
|
+
export function WarningOutlineInput(p: any): JSX.Element;
|
|
39
|
+
export function ErrorOutlineInput(p: any): JSX.Element;
|
|
40
|
+
export function PrimaryLightInput(p: any): JSX.Element;
|
|
41
|
+
export function SecondaryLightInput(p: any): JSX.Element;
|
|
42
|
+
export function TertiaryLightInput(p: any): JSX.Element;
|
|
43
|
+
export function NeutralLightInput(p: any): JSX.Element;
|
|
44
|
+
export function OutlineInput(p: any): JSX.Element;
|
|
45
|
+
export function PrimaryInput(p: any): JSX.Element;
|
|
46
|
+
export function LightInput(p: any): JSX.Element;
|
|
47
|
+
export default Input;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function Link({ children, href, target, rel, textStyle, color, disabled, onClick, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
href: any;
|
|
5
|
+
target: any;
|
|
6
|
+
rel: any;
|
|
7
|
+
textStyle?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick: any;
|
|
11
|
+
className?: string;
|
|
12
|
+
sx?: {};
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
export const LINK_STYLES: string[];
|
|
15
|
+
export const LINK_COLORS: string[];
|
|
16
|
+
export default Link;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export function ListItemDecorator({ children, size, isButton, onAction, ariaLabel }: {
|
|
2
|
+
children: any;
|
|
3
|
+
size?: string;
|
|
4
|
+
isButton?: boolean;
|
|
5
|
+
onAction: any;
|
|
6
|
+
ariaLabel: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export function ListItem({ children, startDecorator, endDecorator, startDecoratorIsButton, endDecoratorIsButton, onStartDecoratorAction, onEndDecoratorAction, startDecoratorAriaLabel, endDecoratorAriaLabel, size, variant, color, eyebrow, overline, secondary, clickable, disabled, selected, selectionMode, onSelect, onClick, bottomBorder, rightBorder, sx, ...props }: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
children: any;
|
|
11
|
+
startDecorator: any;
|
|
12
|
+
endDecorator: any;
|
|
13
|
+
startDecoratorIsButton?: boolean;
|
|
14
|
+
endDecoratorIsButton?: boolean;
|
|
15
|
+
onStartDecoratorAction: any;
|
|
16
|
+
onEndDecoratorAction: any;
|
|
17
|
+
startDecoratorAriaLabel: any;
|
|
18
|
+
endDecoratorAriaLabel: any;
|
|
19
|
+
size?: string;
|
|
20
|
+
variant?: string;
|
|
21
|
+
color: any;
|
|
22
|
+
eyebrow: any;
|
|
23
|
+
overline: any;
|
|
24
|
+
secondary: any;
|
|
25
|
+
clickable?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
selectionMode?: string;
|
|
29
|
+
onSelect: any;
|
|
30
|
+
onClick: any;
|
|
31
|
+
bottomBorder?: boolean;
|
|
32
|
+
rightBorder?: boolean;
|
|
33
|
+
sx?: {};
|
|
34
|
+
}): JSX.Element;
|
|
35
|
+
export function List({ children, items, variant, color, size, orientation, dividers, selectionMode, selectedIndices, onSelectionChange, clickable, component, className, sx, ...props }: {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
children: any;
|
|
38
|
+
items: any;
|
|
39
|
+
variant?: string;
|
|
40
|
+
color?: string;
|
|
41
|
+
size?: string;
|
|
42
|
+
orientation?: string;
|
|
43
|
+
dividers?: boolean;
|
|
44
|
+
selectionMode?: string;
|
|
45
|
+
selectedIndices?: any[];
|
|
46
|
+
onSelectionChange: any;
|
|
47
|
+
clickable?: boolean;
|
|
48
|
+
component?: string;
|
|
49
|
+
className?: string;
|
|
50
|
+
sx?: {};
|
|
51
|
+
}): JSX.Element;
|
|
52
|
+
export function DefaultList(p: any): JSX.Element;
|
|
53
|
+
export function SolidList(p: any): JSX.Element;
|
|
54
|
+
export function LightList(p: any): JSX.Element;
|
|
55
|
+
export default List;
|