@colorffy/ui 1.0.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/README.md +634 -0
- package/dist/components/layout/HeaderContent.vue.d.ts +71 -0
- package/dist/components/layout/HeaderContent.vue.d.ts.map +1 -0
- package/dist/components/layout/PaneContent.vue.d.ts +42 -0
- package/dist/components/layout/PaneContent.vue.d.ts.map +1 -0
- package/dist/components/state/BaseSkeleton.vue.d.ts +30 -0
- package/dist/components/state/BaseSkeleton.vue.d.ts.map +1 -0
- package/dist/components/state/Empty.vue.d.ts +37 -0
- package/dist/components/state/Empty.vue.d.ts.map +1 -0
- package/dist/components/state/ExpressiveLoading.vue.d.ts +24 -0
- package/dist/components/state/ExpressiveLoading.vue.d.ts.map +1 -0
- package/dist/components/state/GridSkeleton.vue.d.ts +21 -0
- package/dist/components/state/GridSkeleton.vue.d.ts.map +1 -0
- package/dist/components/state/Loading.vue.d.ts +26 -0
- package/dist/components/state/Loading.vue.d.ts.map +1 -0
- package/dist/components/state/ShapeLoading.vue.d.ts +22 -0
- package/dist/components/state/ShapeLoading.vue.d.ts.map +1 -0
- package/dist/components/state/TableSkeleton.vue.d.ts +26 -0
- package/dist/components/state/TableSkeleton.vue.d.ts.map +1 -0
- package/dist/components/ui/accordion/Accordion.stories.d.ts +86 -0
- package/dist/components/ui/accordion/Accordion.stories.d.ts.map +1 -0
- package/dist/components/ui/accordion/Accordion.vue.d.ts +37 -0
- package/dist/components/ui/accordion/Accordion.vue.d.ts.map +1 -0
- package/dist/components/ui/accordion/AccordionGroup.vue.d.ts +22 -0
- package/dist/components/ui/accordion/AccordionGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/alert/Alert.stories.d.ts +70 -0
- package/dist/components/ui/alert/Alert.stories.d.ts.map +1 -0
- package/dist/components/ui/alert/Alert.vue.d.ts +26 -0
- package/dist/components/ui/alert/Alert.vue.d.ts.map +1 -0
- package/dist/components/ui/alert/AlertToast.vue.d.ts +21 -0
- package/dist/components/ui/alert/AlertToast.vue.d.ts.map +1 -0
- package/dist/components/ui/badge/Badge.stories.d.ts +45 -0
- package/dist/components/ui/badge/Badge.stories.d.ts.map +1 -0
- package/dist/components/ui/badge/Badge.vue.d.ts +13 -0
- package/dist/components/ui/badge/Badge.vue.d.ts.map +1 -0
- package/dist/components/ui/badge/BadgeGroup.vue.d.ts +18 -0
- package/dist/components/ui/badge/BadgeGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/button/Button.stories.d.ts +110 -0
- package/dist/components/ui/button/Button.stories.d.ts.map +1 -0
- package/dist/components/ui/button/Button.vue.d.ts +37 -0
- package/dist/components/ui/button/Button.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonFabGroup.vue.d.ts +23 -0
- package/dist/components/ui/button/ButtonFabGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonGroup.vue.d.ts +24 -0
- package/dist/components/ui/button/ButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonMenu.vue.d.ts +46 -0
- package/dist/components/ui/button/ButtonMenu.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonMenuDivider.vue.d.ts +3 -0
- package/dist/components/ui/button/ButtonMenuDivider.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonMenuItem.vue.d.ts +26 -0
- package/dist/components/ui/button/ButtonMenuItem.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonMenuText.vue.d.ts +9 -0
- package/dist/components/ui/button/ButtonMenuText.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonToggleGroup.vue.d.ts +30 -0
- package/dist/components/ui/button/ButtonToggleGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/button/ButtonTooltip.vue.d.ts +42 -0
- package/dist/components/ui/button/ButtonTooltip.vue.d.ts.map +1 -0
- package/dist/components/ui/card/Card.stories.d.ts +57 -0
- package/dist/components/ui/card/Card.stories.d.ts.map +1 -0
- package/dist/components/ui/card/Card.vue.d.ts +28 -0
- package/dist/components/ui/card/Card.vue.d.ts.map +1 -0
- package/dist/components/ui/datatable/Datatable.stories.d.ts +13 -0
- package/dist/components/ui/datatable/Datatable.stories.d.ts.map +1 -0
- package/dist/components/ui/datatable/Datatable.vue.d.ts +48 -0
- package/dist/components/ui/datatable/Datatable.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/ConfirmModal.vue.d.ts +49 -0
- package/dist/components/ui/dialog/ConfirmModal.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/Modal.stories.d.ts +79 -0
- package/dist/components/ui/dialog/Modal.stories.d.ts.map +1 -0
- package/dist/components/ui/dialog/Modal.vue.d.ts +41 -0
- package/dist/components/ui/dialog/Modal.vue.d.ts.map +1 -0
- package/dist/components/ui/icon/App.vue.d.ts +16 -0
- package/dist/components/ui/icon/App.vue.d.ts.map +1 -0
- package/dist/components/ui/icon/Material.stories.d.ts +36 -0
- package/dist/components/ui/icon/Material.stories.d.ts.map +1 -0
- package/dist/components/ui/icon/Material.vue.d.ts +7 -0
- package/dist/components/ui/icon/Material.vue.d.ts.map +1 -0
- package/dist/components/ui/icon/Shapes.vue.d.ts +10 -0
- package/dist/components/ui/icon/Shapes.vue.d.ts.map +1 -0
- package/dist/components/ui/icon/Tool.vue.d.ts +9 -0
- package/dist/components/ui/icon/Tool.vue.d.ts.map +1 -0
- package/dist/components/ui/image/Avatar.stories.d.ts +12 -0
- package/dist/components/ui/image/Avatar.stories.d.ts.map +1 -0
- package/dist/components/ui/image/Avatar.vue.d.ts +10 -0
- package/dist/components/ui/image/Avatar.vue.d.ts.map +1 -0
- package/dist/components/ui/input/Check.stories.d.ts +10 -0
- package/dist/components/ui/input/Check.stories.d.ts.map +1 -0
- package/dist/components/ui/input/Check.vue.d.ts +25 -0
- package/dist/components/ui/input/Check.vue.d.ts.map +1 -0
- package/dist/components/ui/input/ColorPicker.stories.d.ts +10 -0
- package/dist/components/ui/input/ColorPicker.stories.d.ts.map +1 -0
- package/dist/components/ui/input/ColorPicker.vue.d.ts +26 -0
- package/dist/components/ui/input/ColorPicker.vue.d.ts.map +1 -0
- package/dist/components/ui/input/File.vue.d.ts +30 -0
- package/dist/components/ui/input/File.vue.d.ts.map +1 -0
- package/dist/components/ui/input/PhoneNumber.vue.d.ts +40 -0
- package/dist/components/ui/input/PhoneNumber.vue.d.ts.map +1 -0
- package/dist/components/ui/input/Radio.vue.d.ts +28 -0
- package/dist/components/ui/input/Radio.vue.d.ts.map +1 -0
- package/dist/components/ui/input/Range.stories.d.ts +13 -0
- package/dist/components/ui/input/Range.stories.d.ts.map +1 -0
- package/dist/components/ui/input/Range.vue.d.ts +36 -0
- package/dist/components/ui/input/Range.vue.d.ts.map +1 -0
- package/dist/components/ui/input/Select.stories.d.ts +14 -0
- package/dist/components/ui/input/Select.stories.d.ts.map +1 -0
- package/dist/components/ui/input/Select.vue.d.ts +42 -0
- package/dist/components/ui/input/Select.vue.d.ts.map +1 -0
- package/dist/components/ui/input/Text.stories.d.ts +12 -0
- package/dist/components/ui/input/Text.stories.d.ts.map +1 -0
- package/dist/components/ui/input/Text.vue.d.ts +48 -0
- package/dist/components/ui/input/Text.vue.d.ts.map +1 -0
- package/dist/components/ui/input/TextArea.stories.d.ts +18 -0
- package/dist/components/ui/input/TextArea.stories.d.ts.map +1 -0
- package/dist/components/ui/input/Textarea.vue.d.ts +48 -0
- package/dist/components/ui/input/Textarea.vue.d.ts.map +1 -0
- package/dist/components/ui/link/LinkTooltip.vue.d.ts +40 -0
- package/dist/components/ui/link/LinkTooltip.vue.d.ts.map +1 -0
- package/dist/components/ui/list/List.stories.d.ts +62 -0
- package/dist/components/ui/list/List.stories.d.ts.map +1 -0
- package/dist/components/ui/list/ListGroup.vue.d.ts +24 -0
- package/dist/components/ui/list/ListGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/list/ListItem.vue.d.ts +11 -0
- package/dist/components/ui/list/ListItem.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/Navbar.stories.d.ts +56 -0
- package/dist/components/ui/navbar/Navbar.stories.d.ts.map +1 -0
- package/dist/components/ui/navbar/Navbar.vue.d.ts +24 -0
- package/dist/components/ui/navbar/Navbar.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarAvatar.vue.d.ts +13 -0
- package/dist/components/ui/navbar/NavbarAvatar.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarBrand.vue.d.ts +29 -0
- package/dist/components/ui/navbar/NavbarBrand.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarCollapse.vue.d.ts +22 -0
- package/dist/components/ui/navbar/NavbarCollapse.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarItem.vue.d.ts +21 -0
- package/dist/components/ui/navbar/NavbarItem.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarLink.vue.d.ts +31 -0
- package/dist/components/ui/navbar/NavbarLink.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarMobileMenu.vue.d.ts +21 -0
- package/dist/components/ui/navbar/NavbarMobileMenu.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarNav.vue.d.ts +22 -0
- package/dist/components/ui/navbar/NavbarNav.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarTitle.vue.d.ts +23 -0
- package/dist/components/ui/navbar/NavbarTitle.vue.d.ts.map +1 -0
- package/dist/components/ui/navbar/NavbarToggle.vue.d.ts +13 -0
- package/dist/components/ui/navbar/NavbarToggle.vue.d.ts.map +1 -0
- package/dist/components/ui/navigation/NavigationBar.vue.d.ts +16 -0
- package/dist/components/ui/navigation/NavigationBar.vue.d.ts.map +1 -0
- package/dist/components/ui/navigation/PopoverMenu.vue.d.ts +50 -0
- package/dist/components/ui/navigation/PopoverMenu.vue.d.ts.map +1 -0
- package/dist/components/ui/navigation/SegmentedControls.vue.d.ts +16 -0
- package/dist/components/ui/navigation/SegmentedControls.vue.d.ts.map +1 -0
- package/dist/components/ui/navigation/Tabs.vue.d.ts +16 -0
- package/dist/components/ui/navigation/Tabs.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/Sidebar.stories.d.ts +64 -0
- package/dist/components/ui/sidebar/Sidebar.stories.d.ts.map +1 -0
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +27 -0
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarBody.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarBody.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarDropdown.vue.d.ts +25 -0
- package/dist/components/ui/sidebar/SidebarDropdown.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +25 -0
- package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarLink.vue.d.ts +47 -0
- package/dist/components/ui/sidebar/SidebarLink.vue.d.ts.map +1 -0
- package/dist/components/ui/sidebar/SidebarText.vue.d.ts +11 -0
- package/dist/components/ui/sidebar/SidebarText.vue.d.ts.map +1 -0
- package/dist/components-CPV7PsCp.cjs +10 -0
- package/dist/components-CPV7PsCp.cjs.map +1 -0
- package/dist/components-DUB9BBm_.js +4210 -0
- package/dist/components-DUB9BBm_.js.map +1 -0
- package/dist/components.d.ts +68 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/composables/useDateUtils.d.ts +4 -0
- package/dist/composables/useDateUtils.d.ts.map +1 -0
- package/dist/composables/useTextUtils.d.ts +6 -0
- package/dist/composables/useTextUtils.d.ts.map +1 -0
- package/dist/composables/useToast.d.ts +14 -0
- package/dist/composables/useToast.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +102 -0
- package/dist/index.js.map +1 -0
- package/dist/nuxt.cjs +2 -0
- package/dist/nuxt.cjs.map +1 -0
- package/dist/nuxt.d.ts +1 -0
- package/dist/nuxt.js +21 -0
- package/dist/nuxt.js.map +1 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/accordion.d.ts +56 -0
- package/dist/types/accordion.d.ts.map +1 -0
- package/dist/types/alert.d.ts +46 -0
- package/dist/types/alert.d.ts.map +1 -0
- package/dist/types/avatar.d.ts +16 -0
- package/dist/types/avatar.d.ts.map +1 -0
- package/dist/types/badge.d.ts +47 -0
- package/dist/types/badge.d.ts.map +1 -0
- package/dist/types/button.d.ts +115 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/card.d.ts +37 -0
- package/dist/types/card.d.ts.map +1 -0
- package/dist/types/dialog.d.ts +89 -0
- package/dist/types/dialog.d.ts.map +1 -0
- package/dist/types/icon.d.ts +142 -0
- package/dist/types/icon.d.ts.map +1 -0
- package/dist/types/list.d.ts +70 -0
- package/dist/types/list.d.ts.map +1 -0
- package/dist/types/navbar.d.ts +184 -0
- package/dist/types/navbar.d.ts.map +1 -0
- package/dist/types/sidebar.d.ts +146 -0
- package/dist/types/sidebar.d.ts.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type AlertType = 'banner' | 'tonal' | 'snackbar';
|
|
2
|
+
export type AlertVariant = 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'danger' | 'transparent' | 'default';
|
|
3
|
+
export type AlertSize = 'sm';
|
|
4
|
+
export type AlertClassName = string | string[] | Record<string, boolean>;
|
|
5
|
+
export interface IToastOptions {
|
|
6
|
+
message?: string;
|
|
7
|
+
variant?: AlertVariant;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Interface props for the Alert component.
|
|
11
|
+
* Notes:
|
|
12
|
+
* - Prefer optional props over explicit null unions.
|
|
13
|
+
* - `type` controls surface (banner | tonal | snackbar), `variant` controls intent (primary | success | warning | danger | etc.).
|
|
14
|
+
* - Use `size` for scalable sizing ('sm').
|
|
15
|
+
*/
|
|
16
|
+
export interface IAlertProps {
|
|
17
|
+
/**
|
|
18
|
+
* Optional title of the alert.
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional message of the alert.
|
|
23
|
+
*/
|
|
24
|
+
message?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Surface style of the alert.
|
|
27
|
+
*/
|
|
28
|
+
type?: AlertType;
|
|
29
|
+
/**
|
|
30
|
+
* Variant color of the alert.
|
|
31
|
+
*/
|
|
32
|
+
variant?: AlertVariant;
|
|
33
|
+
/**
|
|
34
|
+
* Scalable size of the alert. Only 'sm' is supported.
|
|
35
|
+
*/
|
|
36
|
+
size?: AlertSize | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Marks the alert as critical.
|
|
39
|
+
*/
|
|
40
|
+
critical?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Custom classes to apply to the root element.
|
|
43
|
+
*/
|
|
44
|
+
customClass?: AlertClassName;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/types/alert.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;AACvD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAA;AACxI,MAAM,MAAM,SAAS,GAAG,IAAI,CAAA;AAC5B,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAA;CAC7B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type AvatarMaskShape = 'arch' | 'pill' | 'sunny' | 'gem' | 'cookie-6' | 'cookie-9' | 'cookie-12' | 'clover-4' | 'clover-8' | 'bum';
|
|
2
|
+
export interface IAvatarProps {
|
|
3
|
+
src?: string;
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'navbar' | 'menu';
|
|
5
|
+
initials?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Apply a mask shape to the avatar
|
|
8
|
+
*/
|
|
9
|
+
maskShape?: AvatarMaskShape | null;
|
|
10
|
+
/**
|
|
11
|
+
* Stretch the mask size to 115%
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
maskStretch?: boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/types/avatar.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACrB,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,KAAK,CAAA;AAEX,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC7C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type BadgeClassName = string | string[] | Record<string, boolean>;
|
|
2
|
+
export type BadgeVariant = 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'danger' | 'gradient' | 'default' | 'outline' | `tonal tonal-${'primary' | 'secondary' | 'accent' | 'success' | 'warning' | 'danger'}` | string;
|
|
3
|
+
export type BadgeSize = 'sm';
|
|
4
|
+
/**
|
|
5
|
+
* Interface props for the Badge component.
|
|
6
|
+
* Notes:
|
|
7
|
+
* - Prefer intent-like variants; legacy strings stay supported.
|
|
8
|
+
* - Use `size` for scalable sizing ('sm').
|
|
9
|
+
* - Use `pill` to enable fully rounded capsule style.
|
|
10
|
+
*/
|
|
11
|
+
export interface IBadgeProps {
|
|
12
|
+
/**
|
|
13
|
+
* Optional text of the badge. Can be a string or null.
|
|
14
|
+
*/
|
|
15
|
+
text?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Variant/style preset.
|
|
18
|
+
* Prefer intent names (primary/secondary/accent/neutral/success/warning/danger)
|
|
19
|
+
* or documented tonal forms. Legacy strings still supported.
|
|
20
|
+
*/
|
|
21
|
+
variant?: BadgeVariant | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional icon of the badge. Can be a string or null.
|
|
24
|
+
*/
|
|
25
|
+
iconCode?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Optional custom class for the icon within the badge. Accepts string, array, or object map.
|
|
28
|
+
*/
|
|
29
|
+
iconClass?: BadgeClassName | null;
|
|
30
|
+
/**
|
|
31
|
+
* Optional inline styles for the icon within the badge.
|
|
32
|
+
*/
|
|
33
|
+
iconStyle?: string | Record<string, any> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Scalable size of the badge. Only 'sm' is supported.
|
|
36
|
+
*/
|
|
37
|
+
size?: BadgeSize | string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Fully rounded capsule style.
|
|
40
|
+
*/
|
|
41
|
+
pill?: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
* Optional custom class for the badge. Accepts string, array, or object map.
|
|
44
|
+
*/
|
|
45
|
+
customClass?: BadgeClassName | null;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/types/badge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,eAAe,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAA;AACnP,MAAM,MAAM,SAAS,GAAG,IAAI,CAAA;AAE5B;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IAE/C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACpC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export type ButtonClassName = string | string[] | Record<string, boolean>;
|
|
2
|
+
export type ButtonVariant = 'filled' | 'tonal' | 'outline' | 'text' | 'link' | 'chip' | 'cta' | 'gradient' | 'frosted';
|
|
3
|
+
export type ButtonColor = 'primary' | 'secondary' | 'accent' | 'neutral' | 'success' | 'warning' | 'danger' | 'transparent';
|
|
4
|
+
export type ButtonSizeLevel = 'sm' | 'md' | 'lg';
|
|
5
|
+
/**
|
|
6
|
+
* Interface props for the Button component.
|
|
7
|
+
* Notes:
|
|
8
|
+
* - Use `variant` (filled | tonal | outline | text | link | chip | cta | gradient | frosted) for style and `color` (primary | warning | etc.) for intent.
|
|
9
|
+
* - Preferred size prop: `size` ('sm' | 'md' | 'lg').
|
|
10
|
+
* - Legacy composite `variant` strings remain accepted as a fallback; `sizeLevel` is kept for backward compatibility.
|
|
11
|
+
*/
|
|
12
|
+
export interface IButtonProps {
|
|
13
|
+
/**
|
|
14
|
+
* Optional ID of the button. Can be a string or null.
|
|
15
|
+
*/
|
|
16
|
+
id?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Optional text of the button. Can be a string or null.
|
|
19
|
+
*/
|
|
20
|
+
text?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Optional title of the button. Can be a string or null.
|
|
23
|
+
*/
|
|
24
|
+
title?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Visual style. Prefer simple values like 'filled' | 'tonal' | 'outline'.
|
|
27
|
+
* Legacy composite strings are still accepted for backward compatibility.
|
|
28
|
+
*/
|
|
29
|
+
variant: ButtonVariant | string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Semantic color used with certain variants (e.g., 'filled' or 'tonal').
|
|
32
|
+
*/
|
|
33
|
+
color?: ButtonColor | string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Preferred size alias.
|
|
36
|
+
* Accepts logical sizes ('sm' | 'md' | 'lg'). Legacy class strings are also accepted for compatibility.
|
|
37
|
+
*/
|
|
38
|
+
size?: ButtonSizeLevel | string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Optional icon variant of the button. Can be 'shape-sm', 'shape-md', 'compact-sm', 'compact', or undefined.
|
|
41
|
+
*/
|
|
42
|
+
iconVariant?: 'shape-sm' | 'shape-md' | 'compact-sm' | 'compact' | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Icon-only mode toggle. When true, renders the button with icon styles (no label required).
|
|
45
|
+
*/
|
|
46
|
+
icon?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Places the icon on the trailing side when true. Defaults to leading when false.
|
|
49
|
+
*/
|
|
50
|
+
iconTrailing?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Optional disabled state of the button. Can be a boolean.
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Optional loading state of the button. Can be a boolean. When true, shows a loading spinner.
|
|
57
|
+
*/
|
|
58
|
+
loading?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Optional tooltip text of the button. Can be a string or null.
|
|
61
|
+
*/
|
|
62
|
+
tooltipText?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Optional custom class for the button. Can be an array or null.
|
|
65
|
+
*/
|
|
66
|
+
customClass?: ButtonClassName | null;
|
|
67
|
+
/**
|
|
68
|
+
* Optional rounded style. When true, applies a fully rounded button style.
|
|
69
|
+
*/
|
|
70
|
+
rounded?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Interface props for the ButtonGroup component.
|
|
74
|
+
*/
|
|
75
|
+
export interface IButtonGroupProps {
|
|
76
|
+
/**
|
|
77
|
+
* Applies connected button styling with rounded outer corners.
|
|
78
|
+
* When true, buttons will have reduced gap and only first/last buttons have rounded corners.
|
|
79
|
+
*/
|
|
80
|
+
connected?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Removes gap completely between buttons. Only works when `connected` is also true.
|
|
83
|
+
* Creates a seamless joined button group with no spacing.
|
|
84
|
+
*/
|
|
85
|
+
joined?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Arranges buttons vertically instead of horizontally.
|
|
88
|
+
* Changes which corners are rounded (top corners for first, bottom for last).
|
|
89
|
+
*/
|
|
90
|
+
vertical?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Optional custom CSS classes to apply to the button group container.
|
|
93
|
+
*/
|
|
94
|
+
customClass?: string | null;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Interface props for the ButtonFabGroup component (Floating Action Button Group).
|
|
98
|
+
*/
|
|
99
|
+
export interface IButtonFabGroupProps {
|
|
100
|
+
/**
|
|
101
|
+
* Positions the FAB group at the top of the viewport instead of bottom.
|
|
102
|
+
* Default position is bottom-right. Combine with `start` for top-left.
|
|
103
|
+
*/
|
|
104
|
+
top?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Positions the FAB group at the start (left) of the viewport instead of end (right).
|
|
107
|
+
* Default position is bottom-right. Combine with `top` for top-left.
|
|
108
|
+
*/
|
|
109
|
+
start?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Optional custom CSS classes to apply to the FAB group container.
|
|
112
|
+
*/
|
|
113
|
+
customClass?: string |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;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type CardClassName = string | string[] | Record<string, boolean>;
|
|
2
|
+
export type CardVariant = 'outline' | 'elevated' | 'pane';
|
|
3
|
+
export type CardSize = 'xs' | 'sm' | 'md';
|
|
4
|
+
/**
|
|
5
|
+
* Interface props for the Card component.
|
|
6
|
+
* Notes:
|
|
7
|
+
* - Use `variant` to control surface (outline | elevated | pane).
|
|
8
|
+
* - Use `size` for scalable sizing ('xs' | 'sm' | 'md').
|
|
9
|
+
* - Use `selectable` to enable interactive/selectable affordances (adds `card-selectable`).
|
|
10
|
+
*/
|
|
11
|
+
export interface ICardProps {
|
|
12
|
+
/**
|
|
13
|
+
* Optional ID of the card. Can be a string or null.
|
|
14
|
+
*/
|
|
15
|
+
id?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Optional title of the card. Can be a string or null.
|
|
18
|
+
*/
|
|
19
|
+
title?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Optional variant of the card. Can be 'outline', 'elevated', any other string, or undefined.
|
|
22
|
+
*/
|
|
23
|
+
variant?: CardVariant | string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Scalable size of the card. Prefer 'sm' | 'md'.
|
|
26
|
+
*/
|
|
27
|
+
size?: CardSize | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Optional custom class for the card.
|
|
30
|
+
*/
|
|
31
|
+
customClass?: CardClassName | null;
|
|
32
|
+
/**
|
|
33
|
+
* When true, adds the `card-selectable` class to enable selectable styles.
|
|
34
|
+
*/
|
|
35
|
+
selectable?: boolean | undefined;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/types/card.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACvE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;AACzD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAAA;IAE1C;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAElC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACjC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export type DialogClassName = string | string[] | Record<string, boolean>;
|
|
2
|
+
export type DialogMode = 'modal' | 'side-sheet' | 'headless';
|
|
3
|
+
export type DialogSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type DialogVariant = 'danger' | 'warning' | 'success' | 'primary';
|
|
5
|
+
/**
|
|
6
|
+
* Interface props for the Dialog component
|
|
7
|
+
* Notes:
|
|
8
|
+
* - Keep existing flags for backward compatibility.
|
|
9
|
+
* - New additive prop `mode` is preferred going forward.
|
|
10
|
+
*/
|
|
11
|
+
export interface IDialogProps {
|
|
12
|
+
/**
|
|
13
|
+
* Optional dialogModal property of the Dialog component.
|
|
14
|
+
* Can be a boolean indicating if the dialog is modal or not, or null.
|
|
15
|
+
*/
|
|
16
|
+
showAsModal?: boolean | null;
|
|
17
|
+
/**
|
|
18
|
+
* Legacy flag: when true, treat as a modal dialog.
|
|
19
|
+
* Only applied when `mode` is not provided.
|
|
20
|
+
*/
|
|
21
|
+
isModal?: boolean | null;
|
|
22
|
+
/**
|
|
23
|
+
* Legacy flag: when true, render dialog as a side sheet.
|
|
24
|
+
* Only applied when `mode` is not provided.
|
|
25
|
+
*/
|
|
26
|
+
isSideSheet?: boolean | null;
|
|
27
|
+
/**
|
|
28
|
+
* Optional isHeadless property of the Dialog component.
|
|
29
|
+
* Can be a boolean indicating if the dialog is customizable or not, or null.
|
|
30
|
+
*/
|
|
31
|
+
isHeadless?: boolean | null;
|
|
32
|
+
/**
|
|
33
|
+
* Preferred way to describe the dialog shape.
|
|
34
|
+
* When provided, it takes precedence over `isModal`, `isSideSheet`, and `isHeadless`.
|
|
35
|
+
*/
|
|
36
|
+
mode?: DialogMode;
|
|
37
|
+
/**
|
|
38
|
+
* Preferred size for the Dialog component.
|
|
39
|
+
* When provided, it takes precedence over legacy `isSmall` and `isLarge` flags.
|
|
40
|
+
*/
|
|
41
|
+
size?: DialogSize | null;
|
|
42
|
+
/**
|
|
43
|
+
* Deprecated: use `size` instead.
|
|
44
|
+
* Optional isSmall property of the Dialog component.
|
|
45
|
+
* Can be a boolean indicating if the dialog is small or not, or null.
|
|
46
|
+
*/
|
|
47
|
+
isSmall?: boolean | null;
|
|
48
|
+
/**
|
|
49
|
+
* Deprecated: use `size` instead.
|
|
50
|
+
* Optional isLarge property of the Dialog component.
|
|
51
|
+
* Can be a boolean indicating if the dialog is large or not, or null.
|
|
52
|
+
*/
|
|
53
|
+
isLarge?: boolean | null;
|
|
54
|
+
/**
|
|
55
|
+
* Optional title text shown in the dialog header (if used by the template).
|
|
56
|
+
*/
|
|
57
|
+
title?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Optional message text shown in the dialog body.
|
|
60
|
+
*/
|
|
61
|
+
message?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Optional label for the primary confirm action (used by confirm-style dialogs).
|
|
64
|
+
*/
|
|
65
|
+
confirmLabel?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Visual intent of the dialog; may affect colors and icons in specific implementations.
|
|
68
|
+
*/
|
|
69
|
+
variant?: DialogVariant | null;
|
|
70
|
+
/**
|
|
71
|
+
* Optional custom class for the dialog root.
|
|
72
|
+
*/
|
|
73
|
+
customClass?: DialogClassName | null;
|
|
74
|
+
/**
|
|
75
|
+
* Optional custom class for the dialog body element.
|
|
76
|
+
*/
|
|
77
|
+
bodyDialogClass?: DialogClassName | null;
|
|
78
|
+
}
|
|
79
|
+
export interface IDialogDisplay {
|
|
80
|
+
/**
|
|
81
|
+
* Open the dialog function
|
|
82
|
+
*/
|
|
83
|
+
showDialog: () => void;
|
|
84
|
+
/**
|
|
85
|
+
* Close the dialog function
|
|
86
|
+
*/
|
|
87
|
+
closeDialog: () => void;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;CACzC;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported visual sets for the icon wrapper component.
|
|
3
|
+
* Used by the icon wrapper to select the icon family.
|
|
4
|
+
*/
|
|
5
|
+
export type IconSet = 'material' | 'shapes' | 'tool' | 'brand';
|
|
6
|
+
/**
|
|
7
|
+
* Semantic size tokens that map to CSS utility classes.
|
|
8
|
+
* Used for scalable icon sizing.
|
|
9
|
+
*/
|
|
10
|
+
export type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
/**
|
|
12
|
+
* Base props shared by all icon families.
|
|
13
|
+
* Notes:
|
|
14
|
+
* - `size` accepts a size token or a numeric value in px/em.
|
|
15
|
+
* - `color` overrides the default (currentColor).
|
|
16
|
+
* - `decorative` marks the icon as decorative (default true).
|
|
17
|
+
* - `ariaLabel` is required if not decorative.
|
|
18
|
+
*/
|
|
19
|
+
export interface IIconBaseProps {
|
|
20
|
+
/**
|
|
21
|
+
* Size token or numeric value in pixels/em remapped in the components.
|
|
22
|
+
* Can be a string token or a number, or null.
|
|
23
|
+
*/
|
|
24
|
+
size?: IconSize | number | null;
|
|
25
|
+
/**
|
|
26
|
+
* Optional override color; defaults to inheriting `currentColor`.
|
|
27
|
+
* Can be a string or null.
|
|
28
|
+
*/
|
|
29
|
+
color?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Marks the icon as purely decorative, defaulting to `true`.
|
|
32
|
+
*/
|
|
33
|
+
decorative?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Required when `decorative` is false so screen readers can announce it.
|
|
36
|
+
* Can be a string or null.
|
|
37
|
+
*/
|
|
38
|
+
ariaLabel?: string | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Literal names available in the UiIconShapes component.
|
|
42
|
+
* Expanded to match the concrete variants implemented in Shapes.vue.
|
|
43
|
+
* Used for shape-based SVGs.
|
|
44
|
+
*/
|
|
45
|
+
export type IconShape = 'lighting-1' | 'shape-1' | 'shape-2' | 'shape-3' | 'shape-4' | 'circle-1' | 'circle-2' | 'circle-3' | 'circle-4' | 'blob-1' | 'blob-2' | 'blob-3' | 'blob-4' | 'blob-5' | 'blob-6' | 'blob-7' | 'star-1' | 'star-2' | 'star-3' | 'star-4' | 'star-5' | 'star-6' | 'star-7' | 'star-8';
|
|
46
|
+
/**
|
|
47
|
+
* Literal tool names rendered in UiIconTool.
|
|
48
|
+
* Used for tool glyphs.
|
|
49
|
+
*/
|
|
50
|
+
export type IconToolName = 'Stripe' | 'Buy Sell Ads' | 'Firebase Console' | 'Search Console' | 'Hotjar Insights' | 'Plausible Analytics' | 'Google Ads' | 'Google Analytics';
|
|
51
|
+
/**
|
|
52
|
+
* Literal brand icons rendered in UiIconBrand.
|
|
53
|
+
* Used for brand glyphs.
|
|
54
|
+
*/
|
|
55
|
+
export type IconBrandName = 'youtube' | 'github' | 'codepen' | 'twitter' | 'instagram' | 'discord' | 'coffee' | 'stripe' | 'buy-coffee' | 'apple' | 'google';
|
|
56
|
+
/**
|
|
57
|
+
* Interface props for the Material Symbol implementation.
|
|
58
|
+
* Notes:
|
|
59
|
+
* - `iconCode` expects a Material Symbols HTML entity (e.g., ``).
|
|
60
|
+
* - Inherits base icon props.
|
|
61
|
+
*/
|
|
62
|
+
export interface IMaterialIconProps extends IIconBaseProps {
|
|
63
|
+
/**
|
|
64
|
+
* The symbol entity code (e.g. `''`).
|
|
65
|
+
*/
|
|
66
|
+
iconCode: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Interface props for shape-based SVGs.
|
|
70
|
+
* Notes:
|
|
71
|
+
* - `shape` is required and must match a literal in IconShape.
|
|
72
|
+
* - `title` is optional and exposed when informative.
|
|
73
|
+
* - Inherits base icon props.
|
|
74
|
+
*/
|
|
75
|
+
export interface IShapeIconProps extends IIconBaseProps {
|
|
76
|
+
/**
|
|
77
|
+
* The shape literal to render.
|
|
78
|
+
* Must match a value in IconShape.
|
|
79
|
+
*/
|
|
80
|
+
shape: IconShape;
|
|
81
|
+
/**
|
|
82
|
+
* Optional `title` element exposed when informative.
|
|
83
|
+
* Can be a string or null.
|
|
84
|
+
*/
|
|
85
|
+
title?: string | null;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Interface props for tool glyphs.
|
|
89
|
+
* Notes:
|
|
90
|
+
* - `tool` is required and must match a literal in IconToolName.
|
|
91
|
+
* - Inherits base icon props.
|
|
92
|
+
*/
|
|
93
|
+
export interface IToolIconProps extends IIconBaseProps {
|
|
94
|
+
/**
|
|
95
|
+
* The tool literal to render.
|
|
96
|
+
* Must match a value in IconToolName.
|
|
97
|
+
*/
|
|
98
|
+
tool: IconToolName;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Interface props for brand glyphs.
|
|
102
|
+
* Notes:
|
|
103
|
+
* - `brand` is required and must match a literal in IconBrandName.
|
|
104
|
+
* - Inherits base icon props.
|
|
105
|
+
*/
|
|
106
|
+
export interface IBrandIconProps extends IIconBaseProps {
|
|
107
|
+
/**
|
|
108
|
+
* The brand literal to render.
|
|
109
|
+
* Must match a value in IconBrandName.
|
|
110
|
+
*/
|
|
111
|
+
brand: IconBrandName;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Discriminated union used by the icon wrapper.
|
|
115
|
+
* Notes:
|
|
116
|
+
* - `set` selects the icon family.
|
|
117
|
+
* - Only one of `iconCode`, `shape`, `tool`, or `brand` should be provided.
|
|
118
|
+
* - Inherits base icon props.
|
|
119
|
+
*/
|
|
120
|
+
export interface IUiIconProps extends IIconBaseProps {
|
|
121
|
+
/**
|
|
122
|
+
* Icon set to use (material, shapes, tool, brand).
|
|
123
|
+
*/
|
|
124
|
+
set?: IconSet;
|
|
125
|
+
/**
|
|
126
|
+
* Material Symbols entity code (if set = 'material').
|
|
127
|
+
*/
|
|
128
|
+
iconCode?: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Shape literal (if set = 'shapes').
|
|
131
|
+
*/
|
|
132
|
+
shape?: IconShape | null;
|
|
133
|
+
/**
|
|
134
|
+
* Tool literal (if set = 'tool').
|
|
135
|
+
*/
|
|
136
|
+
tool?: IconToolName | null;
|
|
137
|
+
/**
|
|
138
|
+
* Brand literal (if set = 'brand').
|
|
139
|
+
*/
|
|
140
|
+
brand?: IconBrandName | null;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/types/icon.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,OAAO,GACb,UAAU,GACV,QAAQ,GACR,MAAM,GACN,OAAO,CAAA;AAEb;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAA;IAE/B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,GACf,YAAY,GACZ,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,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C,EAAE,aAAa,GAAG,IAAI,CAAA;CAC7B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export type ListClassName = string | string[] | Record<string, boolean>;
|
|
2
|
+
export type ListVariant = 'flush' | 'low-contrast';
|
|
3
|
+
export type ListSize = 'sm' | 'md';
|
|
4
|
+
/**
|
|
5
|
+
* Interface props for the List group component.
|
|
6
|
+
* Notes:
|
|
7
|
+
* - Use `variant` to switch surface style ('flush' | 'low-contrast').
|
|
8
|
+
* - Use `size` for scalable sizing ('sm' | 'md').
|
|
9
|
+
* - `isInteractive` enables hover/active styles provided by the design system.
|
|
10
|
+
* - Prefer optional props over explicit null checks; `customClass` supports string, array, or object maps.
|
|
11
|
+
*/
|
|
12
|
+
export interface IListGroupProps {
|
|
13
|
+
/**
|
|
14
|
+
* Surface variant for the list group.
|
|
15
|
+
* Accepts documented variants or a custom string. Can be null.
|
|
16
|
+
*/
|
|
17
|
+
variant?: ListVariant | string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Scalable size for list items.
|
|
20
|
+
* Accepts documented sizes ('sm' | 'md') or a custom string. Can be null.
|
|
21
|
+
*/
|
|
22
|
+
size?: ListSize | string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Enables interactive styles like hover/active.
|
|
25
|
+
*/
|
|
26
|
+
isInteractive?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Optional custom classes for the root element.
|
|
29
|
+
* Accepts a string, an array of strings, or a map of class names to booleans.
|
|
30
|
+
*/
|
|
31
|
+
customClass?: ListClassName | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Interface props for the List item component.
|
|
35
|
+
* Notes:
|
|
36
|
+
* - Prefer slots for custom content; `title` and `text` are convenience props.
|
|
37
|
+
* - `icon` expects a Material Symbols HTML entity (e.g., ``).
|
|
38
|
+
* - Use `active` and `disabled` to reflect item state; styling is handled by the design system.
|
|
39
|
+
*/
|
|
40
|
+
export interface IListItemProps {
|
|
41
|
+
/**
|
|
42
|
+
* Optional title text displayed prominently.
|
|
43
|
+
* Can be a string or null.
|
|
44
|
+
*/
|
|
45
|
+
title?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Optional supporting text.
|
|
48
|
+
* Can be a string or null.
|
|
49
|
+
*/
|
|
50
|
+
text?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Optional Material Symbols icon code (HTML entity).
|
|
53
|
+
* Can be a string or null.
|
|
54
|
+
*/
|
|
55
|
+
icon?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Marks the item as active.
|
|
58
|
+
*/
|
|
59
|
+
active?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Disables the item.
|
|
62
|
+
*/
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Optional custom classes for the li element.
|
|
66
|
+
* Accepts a string, an array of strings, or a map of class names to booleans.
|
|
67
|
+
*/
|
|
68
|
+
customClass?: ListClassName | null;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/types/list.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,cAAc,CAAA;AAClD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAA;AAElC;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;IAErC;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAA;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;CACnC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;CACnC"}
|