@rimelight/ui 0.0.30 → 0.0.31
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/package.json +1 -1
- package/src/components/astro/RLAAlert.astro +60 -0
- package/src/components/astro/RLAAlertDialog.astro +86 -0
- package/src/components/astro/RLAAspectRatio.astro +23 -0
- package/src/components/astro/RLAAvatar.astro +56 -0
- package/src/components/astro/RLAAvatarGroup.astro +19 -0
- package/src/components/astro/RLABadge.astro +31 -0
- package/src/components/astro/RLABreadcrumb.astro +44 -0
- package/src/components/astro/RLACard.astro +74 -0
- package/src/components/astro/RLACarousel.astro +71 -0
- package/src/components/astro/RLAChart.astro +215 -0
- package/src/components/astro/RLACheckbox.astro +51 -0
- package/src/components/astro/RLACollapsible.astro +38 -0
- package/src/components/astro/RLACombobox.astro +131 -0
- package/src/components/astro/RLADialog.astro +95 -0
- package/src/components/astro/RLADrawer.astro +74 -0
- package/src/components/astro/RLADropdownMenu.astro +82 -0
- package/src/components/astro/RLADropzone.astro +134 -0
- package/src/components/astro/RLAField.astro +43 -0
- package/src/components/{Head.astro → astro/RLAHead.astro} +181 -199
- package/src/components/astro/RLAHoverCard.astro +31 -0
- package/src/components/astro/RLAInput.astro +60 -0
- package/src/components/astro/RLAInputGroup.astro +35 -0
- package/src/components/astro/RLAKbd.astro +22 -0
- package/src/components/astro/RLALabel.astro +23 -0
- package/src/components/astro/RLALocaleSelector.astro +110 -0
- package/src/components/astro/RLAMarquee.astro +32 -0
- package/src/components/astro/RLANativeSelect.astro +51 -0
- package/src/components/astro/RLANavigationMenu.astro +136 -0
- package/src/components/astro/RLAPagination.astro +94 -0
- package/src/components/astro/RLAPopover.astro +31 -0
- package/src/components/astro/RLAProgress.astro +43 -0
- package/src/components/astro/RLAResizable.astro +177 -0
- package/src/components/astro/RLAScrollArea.astro +157 -0
- package/src/components/astro/RLASelect.astro +109 -0
- package/src/components/astro/RLASeparator.astro +27 -0
- package/src/components/astro/RLASheet.astro +72 -0
- package/src/components/astro/RLASidebar.astro +135 -0
- package/src/components/astro/RLASkeleton.astro +20 -0
- package/src/components/astro/RLASlider.astro +53 -0
- package/src/components/astro/RLASpinner.astro +25 -0
- package/src/components/astro/RLAStickySurface.astro +27 -0
- package/src/components/astro/RLASwitch.astro +49 -0
- package/src/components/astro/RLATable.astro +60 -0
- package/src/components/astro/RLATabs.astro +92 -0
- package/src/components/astro/RLATextarea.astro +42 -0
- package/src/components/astro/RLAThemeSelector.astro +73 -0
- package/src/components/astro/RLAToast.astro +107 -0
- package/src/components/astro/RLAToggle.astro +38 -0
- package/src/components/astro/RLAToggleGroup.astro +30 -0
- package/src/components/astro/RLATooltip.astro +31 -0
- package/src/integrations/ui.ts +1 -0
- package/src/themes/alert.theme.ts +51 -0
- package/src/themes/alertDialog.theme.ts +33 -0
- package/src/themes/aspectRatio.theme.ts +11 -0
- package/src/themes/avatar.theme.ts +28 -0
- package/src/themes/avatarGroup.theme.ts +10 -0
- package/src/themes/badge.theme.ts +61 -0
- package/src/themes/breadcrumb.theme.ts +15 -0
- package/src/themes/card.theme.ts +34 -0
- package/src/themes/carousel.theme.ts +32 -0
- package/src/themes/chart.theme.ts +21 -0
- package/src/themes/checkbox.theme.ts +42 -0
- package/src/themes/collapsible.theme.ts +22 -0
- package/src/themes/combobox.theme.ts +28 -0
- package/src/themes/dialog.theme.ts +37 -0
- package/src/themes/drawer.theme.ts +44 -0
- package/src/themes/dropdownMenu.theme.ts +27 -0
- package/src/themes/dropzone.theme.ts +24 -0
- package/src/themes/field.theme.ts +24 -0
- package/src/themes/hoverCard.theme.ts +27 -0
- package/src/themes/input.theme.ts +36 -0
- package/src/themes/inputGroup.theme.ts +23 -0
- package/src/themes/kbd.theme.ts +24 -0
- package/src/themes/label.theme.ts +20 -0
- package/src/themes/localeSelector.theme.ts +50 -0
- package/src/themes/marquee.theme.ts +27 -0
- package/src/themes/nativeSelect.theme.ts +24 -0
- package/src/themes/navigationMenu.theme.ts +19 -0
- package/src/themes/pagination.theme.ts +26 -0
- package/src/themes/popover.theme.ts +28 -0
- package/src/themes/progress.theme.ts +26 -0
- package/src/themes/resizable.theme.ts +22 -0
- package/src/themes/scrollArea.theme.ts +24 -0
- package/src/themes/section.theme.ts +1 -2
- package/src/themes/select.theme.ts +27 -0
- package/src/themes/separator.theme.ts +19 -0
- package/src/themes/sheet.theme.ts +43 -0
- package/src/themes/sidebar.theme.ts +33 -0
- package/src/themes/skeleton.theme.ts +20 -0
- package/src/themes/slider.theme.ts +28 -0
- package/src/themes/spinner.theme.ts +30 -0
- package/src/themes/stickySurface.theme.ts +10 -0
- package/src/themes/switch.theme.ts +59 -0
- package/src/themes/table.theme.ts +36 -0
- package/src/themes/tabs.theme.ts +44 -0
- package/src/themes/textarea.theme.ts +26 -0
- package/src/themes/themeSelector.theme.ts +16 -0
- package/src/themes/toast.theme.ts +25 -0
- package/src/themes/toggle.theme.ts +42 -0
- package/src/themes/toggleGroup.theme.ts +21 -0
- package/src/themes/tooltip.theme.ts +27 -0
- package/src/types/components/alert-dialog.ts +35 -0
- package/src/types/components/alert.ts +31 -0
- package/src/types/components/aspect-ratio.ts +15 -0
- package/src/types/components/avatar.ts +47 -0
- package/src/types/components/badge.ts +27 -0
- package/src/types/components/breadcrumb.ts +24 -0
- package/src/types/components/card.ts +31 -0
- package/src/types/components/carousel.ts +25 -0
- package/src/types/components/chart.ts +38 -0
- package/src/types/components/checkbox.ts +35 -0
- package/src/types/components/collapsible.ts +31 -0
- package/src/types/components/combobox.ts +43 -0
- package/src/types/components/dialog.ts +39 -0
- package/src/types/components/drawer.ts +31 -0
- package/src/types/components/dropdown-menu.ts +42 -0
- package/src/types/components/dropzone.ts +39 -0
- package/src/types/components/field.ts +31 -0
- package/src/types/components/hover-card.ts +19 -0
- package/src/types/components/index.ts +47 -0
- package/src/types/components/input-group.ts +23 -0
- package/src/types/components/input.ts +59 -0
- package/src/types/components/kbd.ts +15 -0
- package/src/types/components/label.ts +19 -0
- package/src/types/components/localeSelector.ts +33 -0
- package/src/types/components/marquee.ts +23 -0
- package/src/types/components/native-select.ts +39 -0
- package/src/types/components/navigation-menu.ts +27 -0
- package/src/types/components/pagination.ts +23 -0
- package/src/types/components/popover.ts +23 -0
- package/src/types/components/progress.ts +27 -0
- package/src/types/components/resizable.ts +19 -0
- package/src/types/components/scroll-area.ts +23 -0
- package/src/types/components/select.ts +43 -0
- package/src/types/components/separator.ts +19 -0
- package/src/types/components/sheet.ts +31 -0
- package/src/types/components/sidebar.ts +36 -0
- package/src/types/components/skeleton.ts +15 -0
- package/src/types/components/slider.ts +35 -0
- package/src/types/components/spinner.ts +19 -0
- package/src/types/components/sticky-surface.ts +19 -0
- package/src/types/components/switch.ts +35 -0
- package/src/types/components/table.ts +31 -0
- package/src/types/components/tabs.ts +43 -0
- package/src/types/components/textarea.ts +51 -0
- package/src/types/components/themeSelector.ts +15 -0
- package/src/types/components/toast.ts +35 -0
- package/src/types/components/toggle-group.ts +23 -0
- package/src/types/components/toggle.ts +27 -0
- package/src/types/components/tooltip.ts +23 -0
- package/src/components/ThemeToggle.astro +0 -57
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface AlertDialogProps {
|
|
2
|
+
/**
|
|
3
|
+
* Title of the alert confirmation dialog.
|
|
4
|
+
*/
|
|
5
|
+
title?: string
|
|
6
|
+
/**
|
|
7
|
+
* Explanatory description.
|
|
8
|
+
*/
|
|
9
|
+
description?: string
|
|
10
|
+
/**
|
|
11
|
+
* Label for the confirmation action button.
|
|
12
|
+
*/
|
|
13
|
+
actionLabel?: string
|
|
14
|
+
/**
|
|
15
|
+
* Label for the cancellation/close button.
|
|
16
|
+
*/
|
|
17
|
+
cancelLabel?: string
|
|
18
|
+
/**
|
|
19
|
+
* Trigger label to automatically open the dialog.
|
|
20
|
+
*/
|
|
21
|
+
triggerLabel?: string
|
|
22
|
+
/**
|
|
23
|
+
* Controlled open state.
|
|
24
|
+
*/
|
|
25
|
+
open?: boolean
|
|
26
|
+
/**
|
|
27
|
+
* Slot-specific CSS class overrides.
|
|
28
|
+
*/
|
|
29
|
+
ui?: any
|
|
30
|
+
/**
|
|
31
|
+
* Additional CSS classes to apply to the root.
|
|
32
|
+
*/
|
|
33
|
+
class?: any
|
|
34
|
+
[key: string]: unknown
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface AlertProps {
|
|
2
|
+
/**
|
|
3
|
+
* The visual variant of the alert.
|
|
4
|
+
*/
|
|
5
|
+
variant?: "default" | "destructive" | "outline" | "solid"
|
|
6
|
+
/**
|
|
7
|
+
* The color scheme of the alert.
|
|
8
|
+
*/
|
|
9
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
10
|
+
/**
|
|
11
|
+
* The main title text of the alert.
|
|
12
|
+
*/
|
|
13
|
+
title?: string
|
|
14
|
+
/**
|
|
15
|
+
* The secondary description text of the alert.
|
|
16
|
+
*/
|
|
17
|
+
description?: string
|
|
18
|
+
/**
|
|
19
|
+
* An optional leading icon.
|
|
20
|
+
*/
|
|
21
|
+
icon?: string
|
|
22
|
+
/**
|
|
23
|
+
* Slot-specific CSS class overrides.
|
|
24
|
+
*/
|
|
25
|
+
ui?: any
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS classes to apply to the root component.
|
|
28
|
+
*/
|
|
29
|
+
class?: any
|
|
30
|
+
[key: string]: unknown
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AspectRatioProps {
|
|
2
|
+
/**
|
|
3
|
+
* The aspect ratio fraction/decimal (e.g. 16/9, 4/3, 1).
|
|
4
|
+
*/
|
|
5
|
+
ratio?: number
|
|
6
|
+
/**
|
|
7
|
+
* UI class override map.
|
|
8
|
+
*/
|
|
9
|
+
ui?: any
|
|
10
|
+
/**
|
|
11
|
+
* Root CSS class overrides.
|
|
12
|
+
*/
|
|
13
|
+
class?: any
|
|
14
|
+
[key: string]: unknown
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface AvatarProps {
|
|
2
|
+
/**
|
|
3
|
+
* The source URL of the avatar image.
|
|
4
|
+
*/
|
|
5
|
+
src?: string
|
|
6
|
+
/**
|
|
7
|
+
* Alt description for screen readers.
|
|
8
|
+
*/
|
|
9
|
+
alt?: string
|
|
10
|
+
/**
|
|
11
|
+
* Two-letter fallback initials when src fails to load.
|
|
12
|
+
*/
|
|
13
|
+
fallback?: string
|
|
14
|
+
/**
|
|
15
|
+
* The avatar dimensions scale.
|
|
16
|
+
*/
|
|
17
|
+
size?: "sm" | "md" | "lg"
|
|
18
|
+
/**
|
|
19
|
+
* Displays a status badge circle on the avatar.
|
|
20
|
+
*/
|
|
21
|
+
badge?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* The color of the status badge.
|
|
24
|
+
*/
|
|
25
|
+
badgeColor?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
26
|
+
/**
|
|
27
|
+
* UI style slot mapping overrides.
|
|
28
|
+
*/
|
|
29
|
+
ui?: any
|
|
30
|
+
/**
|
|
31
|
+
* Custom CSS root class.
|
|
32
|
+
*/
|
|
33
|
+
class?: any
|
|
34
|
+
[key: string]: unknown
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface AvatarGroupProps {
|
|
38
|
+
/**
|
|
39
|
+
* UI class overrides.
|
|
40
|
+
*/
|
|
41
|
+
ui?: any
|
|
42
|
+
/**
|
|
43
|
+
* Root CSS class override.
|
|
44
|
+
*/
|
|
45
|
+
class?: any
|
|
46
|
+
[key: string]: unknown
|
|
47
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface BadgeProps {
|
|
2
|
+
/**
|
|
3
|
+
* Visual style variant.
|
|
4
|
+
*/
|
|
5
|
+
variant?: "solid" | "outline" | "soft" | "ghost"
|
|
6
|
+
/**
|
|
7
|
+
* Color scheme applied.
|
|
8
|
+
*/
|
|
9
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
10
|
+
/**
|
|
11
|
+
* The size scale of the badge.
|
|
12
|
+
*/
|
|
13
|
+
size?: "sm" | "md" | "lg"
|
|
14
|
+
/**
|
|
15
|
+
* The shape corner rounding.
|
|
16
|
+
*/
|
|
17
|
+
shape?: "square" | "rounded" | "pill"
|
|
18
|
+
/**
|
|
19
|
+
* Custom UI overrides.
|
|
20
|
+
*/
|
|
21
|
+
ui?: any
|
|
22
|
+
/**
|
|
23
|
+
* Root CSS class name.
|
|
24
|
+
*/
|
|
25
|
+
class?: any
|
|
26
|
+
[key: string]: unknown
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string
|
|
3
|
+
href?: string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface BreadcrumbProps {
|
|
7
|
+
/**
|
|
8
|
+
* Quick-prop array to render breadcrumb items automatically.
|
|
9
|
+
*/
|
|
10
|
+
items?: BreadcrumbItem[]
|
|
11
|
+
/**
|
|
12
|
+
* The icon separating the breadcrumbs.
|
|
13
|
+
*/
|
|
14
|
+
separatorIcon?: string
|
|
15
|
+
/**
|
|
16
|
+
* UI style slot overrides.
|
|
17
|
+
*/
|
|
18
|
+
ui?: any
|
|
19
|
+
/**
|
|
20
|
+
* Root CSS class override.
|
|
21
|
+
*/
|
|
22
|
+
class?: any
|
|
23
|
+
[key: string]: unknown
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CardProps {
|
|
2
|
+
/**
|
|
3
|
+
* Card heading title.
|
|
4
|
+
*/
|
|
5
|
+
title?: string
|
|
6
|
+
/**
|
|
7
|
+
* Subtitle description text.
|
|
8
|
+
*/
|
|
9
|
+
description?: string
|
|
10
|
+
/**
|
|
11
|
+
* Media source (e.g. image url) displayed at top.
|
|
12
|
+
*/
|
|
13
|
+
mediaSrc?: string
|
|
14
|
+
/**
|
|
15
|
+
* Link reference makes the entire card interactive.
|
|
16
|
+
*/
|
|
17
|
+
href?: string
|
|
18
|
+
/**
|
|
19
|
+
* Glassmorphism or overlay style.
|
|
20
|
+
*/
|
|
21
|
+
overlay?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* UI mapping override.
|
|
24
|
+
*/
|
|
25
|
+
ui?: any
|
|
26
|
+
/**
|
|
27
|
+
* Root CSS class override.
|
|
28
|
+
*/
|
|
29
|
+
class?: any
|
|
30
|
+
[key: string]: unknown
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface CarouselSlide {
|
|
2
|
+
imageSrc?: string
|
|
3
|
+
title?: string
|
|
4
|
+
description?: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface CarouselProps {
|
|
8
|
+
/**
|
|
9
|
+
* The list of slide items to render.
|
|
10
|
+
*/
|
|
11
|
+
slides?: CarouselSlide[]
|
|
12
|
+
/**
|
|
13
|
+
* Controlled autoplay.
|
|
14
|
+
*/
|
|
15
|
+
autoplay?: boolean
|
|
16
|
+
/**
|
|
17
|
+
* UI class override map.
|
|
18
|
+
*/
|
|
19
|
+
ui?: any
|
|
20
|
+
/**
|
|
21
|
+
* Root CSS class override.
|
|
22
|
+
*/
|
|
23
|
+
class?: any
|
|
24
|
+
[key: string]: unknown
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface ChartDataPoint {
|
|
2
|
+
label: string
|
|
3
|
+
value: number
|
|
4
|
+
color?: string
|
|
5
|
+
[key: string]: any
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ChartProps {
|
|
9
|
+
/**
|
|
10
|
+
* Type of chart.
|
|
11
|
+
*/
|
|
12
|
+
type?: "bar" | "line" | "pie" | "area" | "donut"
|
|
13
|
+
/**
|
|
14
|
+
* Data points array.
|
|
15
|
+
*/
|
|
16
|
+
data?: ChartDataPoint[]
|
|
17
|
+
/**
|
|
18
|
+
* Title of the chart.
|
|
19
|
+
*/
|
|
20
|
+
title?: string
|
|
21
|
+
/**
|
|
22
|
+
* Height of the chart in pixels.
|
|
23
|
+
*/
|
|
24
|
+
height?: number
|
|
25
|
+
/**
|
|
26
|
+
* Color theme.
|
|
27
|
+
*/
|
|
28
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
29
|
+
/**
|
|
30
|
+
* UI class override map.
|
|
31
|
+
*/
|
|
32
|
+
ui?: any
|
|
33
|
+
/**
|
|
34
|
+
* Root CSS class override.
|
|
35
|
+
*/
|
|
36
|
+
class?: any
|
|
37
|
+
[key: string]: unknown
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
/**
|
|
3
|
+
* Controlled checked state.
|
|
4
|
+
*/
|
|
5
|
+
checked?: boolean
|
|
6
|
+
/**
|
|
7
|
+
* Disabled input interaction state.
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean
|
|
10
|
+
/**
|
|
11
|
+
* Input name for forms.
|
|
12
|
+
*/
|
|
13
|
+
name?: string
|
|
14
|
+
/**
|
|
15
|
+
* Form label.
|
|
16
|
+
*/
|
|
17
|
+
label?: string
|
|
18
|
+
/**
|
|
19
|
+
* Size scale.
|
|
20
|
+
*/
|
|
21
|
+
size?: "sm" | "md" | "lg"
|
|
22
|
+
/**
|
|
23
|
+
* Color theme.
|
|
24
|
+
*/
|
|
25
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
26
|
+
/**
|
|
27
|
+
* UI class override map.
|
|
28
|
+
*/
|
|
29
|
+
ui?: any
|
|
30
|
+
/**
|
|
31
|
+
* Root CSS class override.
|
|
32
|
+
*/
|
|
33
|
+
class?: any
|
|
34
|
+
[key: string]: unknown
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CollapsibleProps {
|
|
2
|
+
/**
|
|
3
|
+
* Controlled open state.
|
|
4
|
+
*/
|
|
5
|
+
open?: boolean
|
|
6
|
+
/**
|
|
7
|
+
* The trigger button label (or use 'trigger' slot)
|
|
8
|
+
*/
|
|
9
|
+
label?: string
|
|
10
|
+
/**
|
|
11
|
+
* An optional leading icon for the trigger button
|
|
12
|
+
*/
|
|
13
|
+
icon?: string
|
|
14
|
+
/**
|
|
15
|
+
* Size scale of the trigger.
|
|
16
|
+
*/
|
|
17
|
+
size?: "sm" | "md" | "lg"
|
|
18
|
+
/**
|
|
19
|
+
* Color theme of the trigger.
|
|
20
|
+
*/
|
|
21
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
22
|
+
/**
|
|
23
|
+
* UI class override map.
|
|
24
|
+
*/
|
|
25
|
+
ui?: any
|
|
26
|
+
/**
|
|
27
|
+
* Root CSS class override.
|
|
28
|
+
*/
|
|
29
|
+
class?: any
|
|
30
|
+
[key: string]: unknown
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface ComboboxProps {
|
|
2
|
+
/**
|
|
3
|
+
* The list of items in the combobox.
|
|
4
|
+
*/
|
|
5
|
+
items?: Array<{ label: string; value: string; [key: string]: any } | string>
|
|
6
|
+
/**
|
|
7
|
+
* Selected value(s).
|
|
8
|
+
*/
|
|
9
|
+
value?: string | string[]
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder text.
|
|
12
|
+
*/
|
|
13
|
+
placeholder?: string
|
|
14
|
+
/**
|
|
15
|
+
* Disabled state.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean
|
|
18
|
+
/**
|
|
19
|
+
* Form control name.
|
|
20
|
+
*/
|
|
21
|
+
name?: string
|
|
22
|
+
/**
|
|
23
|
+
* Form label.
|
|
24
|
+
*/
|
|
25
|
+
label?: string
|
|
26
|
+
/**
|
|
27
|
+
* Size scale.
|
|
28
|
+
*/
|
|
29
|
+
size?: "sm" | "md" | "lg"
|
|
30
|
+
/**
|
|
31
|
+
* Color theme.
|
|
32
|
+
*/
|
|
33
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
34
|
+
/**
|
|
35
|
+
* UI class override map.
|
|
36
|
+
*/
|
|
37
|
+
ui?: any
|
|
38
|
+
/**
|
|
39
|
+
* Root CSS class override.
|
|
40
|
+
*/
|
|
41
|
+
class?: any
|
|
42
|
+
[key: string]: unknown
|
|
43
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface DialogProps {
|
|
2
|
+
/**
|
|
3
|
+
* Controlled open state.
|
|
4
|
+
*/
|
|
5
|
+
open?: boolean
|
|
6
|
+
/**
|
|
7
|
+
* The trigger label to render a default button.
|
|
8
|
+
*/
|
|
9
|
+
triggerLabel?: string
|
|
10
|
+
/**
|
|
11
|
+
* Whether to close the dialog when clicking the backdrop.
|
|
12
|
+
*/
|
|
13
|
+
closeOnClickOutside?: boolean
|
|
14
|
+
/**
|
|
15
|
+
* Whether to close on pressing the Escape key.
|
|
16
|
+
*/
|
|
17
|
+
closeOnEscape?: boolean
|
|
18
|
+
/**
|
|
19
|
+
* Prevents body scrolling when open.
|
|
20
|
+
*/
|
|
21
|
+
lockScroll?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* Main heading of the dialog.
|
|
24
|
+
*/
|
|
25
|
+
title?: string
|
|
26
|
+
/**
|
|
27
|
+
* Description of the dialog purpose.
|
|
28
|
+
*/
|
|
29
|
+
description?: string
|
|
30
|
+
/**
|
|
31
|
+
* Slot-specific CSS class overrides.
|
|
32
|
+
*/
|
|
33
|
+
ui?: any
|
|
34
|
+
/**
|
|
35
|
+
* Additional CSS classes to apply to the root component.
|
|
36
|
+
*/
|
|
37
|
+
class?: any
|
|
38
|
+
[key: string]: unknown
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DrawerProps {
|
|
2
|
+
/**
|
|
3
|
+
* Controlled open state.
|
|
4
|
+
*/
|
|
5
|
+
open?: boolean
|
|
6
|
+
/**
|
|
7
|
+
* The orientation/side where the drawer anchors.
|
|
8
|
+
*/
|
|
9
|
+
direction?: "bottom" | "top" | "left" | "right"
|
|
10
|
+
/**
|
|
11
|
+
* Main text title.
|
|
12
|
+
*/
|
|
13
|
+
title?: string
|
|
14
|
+
/**
|
|
15
|
+
* Explanation subtitle.
|
|
16
|
+
*/
|
|
17
|
+
description?: string
|
|
18
|
+
/**
|
|
19
|
+
* Trigger button content.
|
|
20
|
+
*/
|
|
21
|
+
triggerLabel?: string
|
|
22
|
+
/**
|
|
23
|
+
* UI mapping override.
|
|
24
|
+
*/
|
|
25
|
+
ui?: any
|
|
26
|
+
/**
|
|
27
|
+
* Root CSS class override.
|
|
28
|
+
*/
|
|
29
|
+
class?: any
|
|
30
|
+
[key: string]: unknown
|
|
31
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface DropdownMenuItem {
|
|
2
|
+
label: string
|
|
3
|
+
value?: string
|
|
4
|
+
icon?: string
|
|
5
|
+
shortcut?: string
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
type?: "item" | "checkbox" | "radio" | "separator" | "label"
|
|
8
|
+
checked?: boolean
|
|
9
|
+
group?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface DropdownMenuProps {
|
|
13
|
+
/**
|
|
14
|
+
* The menu items array.
|
|
15
|
+
*/
|
|
16
|
+
items?: DropdownMenuItem[]
|
|
17
|
+
/**
|
|
18
|
+
* The trigger button label.
|
|
19
|
+
*/
|
|
20
|
+
label?: string
|
|
21
|
+
/**
|
|
22
|
+
* Trigger button icon.
|
|
23
|
+
*/
|
|
24
|
+
icon?: string
|
|
25
|
+
/**
|
|
26
|
+
* Size scale.
|
|
27
|
+
*/
|
|
28
|
+
size?: "sm" | "md" | "lg"
|
|
29
|
+
/**
|
|
30
|
+
* Color theme of the trigger.
|
|
31
|
+
*/
|
|
32
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
33
|
+
/**
|
|
34
|
+
* UI class override map.
|
|
35
|
+
*/
|
|
36
|
+
ui?: any
|
|
37
|
+
/**
|
|
38
|
+
* Root CSS class override.
|
|
39
|
+
*/
|
|
40
|
+
class?: any
|
|
41
|
+
[key: string]: unknown
|
|
42
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface DropzoneProps {
|
|
2
|
+
/**
|
|
3
|
+
* Accepted file types (e.g. 'image/*', 'application/pdf').
|
|
4
|
+
*/
|
|
5
|
+
accept?: string
|
|
6
|
+
/**
|
|
7
|
+
* Allow multiple file selection.
|
|
8
|
+
*/
|
|
9
|
+
multiple?: boolean
|
|
10
|
+
/**
|
|
11
|
+
* Disabled state.
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean
|
|
14
|
+
/**
|
|
15
|
+
* Title text shown inside the dropzone.
|
|
16
|
+
*/
|
|
17
|
+
title?: string
|
|
18
|
+
/**
|
|
19
|
+
* Description text shown inside.
|
|
20
|
+
*/
|
|
21
|
+
description?: string
|
|
22
|
+
/**
|
|
23
|
+
* Icon shown inside.
|
|
24
|
+
*/
|
|
25
|
+
icon?: string
|
|
26
|
+
/**
|
|
27
|
+
* Color theme.
|
|
28
|
+
*/
|
|
29
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | "info"
|
|
30
|
+
/**
|
|
31
|
+
* UI class override map.
|
|
32
|
+
*/
|
|
33
|
+
ui?: any
|
|
34
|
+
/**
|
|
35
|
+
* Root CSS class override.
|
|
36
|
+
*/
|
|
37
|
+
class?: any
|
|
38
|
+
[key: string]: unknown
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface FieldProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label for the field.
|
|
4
|
+
*/
|
|
5
|
+
label?: string
|
|
6
|
+
/**
|
|
7
|
+
* Description text.
|
|
8
|
+
*/
|
|
9
|
+
description?: string
|
|
10
|
+
/**
|
|
11
|
+
* Error message.
|
|
12
|
+
*/
|
|
13
|
+
error?: string
|
|
14
|
+
/**
|
|
15
|
+
* Required field state.
|
|
16
|
+
*/
|
|
17
|
+
required?: boolean
|
|
18
|
+
/**
|
|
19
|
+
* Size scale.
|
|
20
|
+
*/
|
|
21
|
+
size?: "sm" | "md" | "lg"
|
|
22
|
+
/**
|
|
23
|
+
* UI class override map.
|
|
24
|
+
*/
|
|
25
|
+
ui?: any
|
|
26
|
+
/**
|
|
27
|
+
* Root CSS class override.
|
|
28
|
+
*/
|
|
29
|
+
class?: any
|
|
30
|
+
[key: string]: unknown
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface HoverCardProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label of the trigger.
|
|
4
|
+
*/
|
|
5
|
+
triggerLabel?: string
|
|
6
|
+
/**
|
|
7
|
+
* Placement relative to trigger.
|
|
8
|
+
*/
|
|
9
|
+
placement?: "top" | "bottom" | "left" | "right"
|
|
10
|
+
/**
|
|
11
|
+
* UI slot override map.
|
|
12
|
+
*/
|
|
13
|
+
ui?: any
|
|
14
|
+
/**
|
|
15
|
+
* Root CSS class override.
|
|
16
|
+
*/
|
|
17
|
+
class?: any
|
|
18
|
+
[key: string]: unknown
|
|
19
|
+
}
|
|
@@ -2,6 +2,8 @@ export * from "./main"
|
|
|
2
2
|
export * from "./logo"
|
|
3
3
|
export * from "./header"
|
|
4
4
|
export * from "./footer"
|
|
5
|
+
export * from "./localeSelector"
|
|
6
|
+
export * from "./themeSelector"
|
|
5
7
|
export * from "./navigation"
|
|
6
8
|
export * from "./link"
|
|
7
9
|
export * from "./button"
|
|
@@ -11,3 +13,48 @@ export * from "./placeholder"
|
|
|
11
13
|
export * from "./scroll-to-top"
|
|
12
14
|
export * from "./embed-youtube"
|
|
13
15
|
export * from "./accordion"
|
|
16
|
+
export * from "./alert"
|
|
17
|
+
export * from "./alert-dialog"
|
|
18
|
+
export * from "./aspect-ratio"
|
|
19
|
+
export * from "./avatar"
|
|
20
|
+
export * from "./badge"
|
|
21
|
+
export * from "./breadcrumb"
|
|
22
|
+
export * from "./card"
|
|
23
|
+
export * from "./carousel"
|
|
24
|
+
export * from "./checkbox"
|
|
25
|
+
export * from "./dialog"
|
|
26
|
+
export * from "./drawer"
|
|
27
|
+
export * from "./hover-card"
|
|
28
|
+
export * from "./kbd"
|
|
29
|
+
export * from "./label"
|
|
30
|
+
export * from "./marquee"
|
|
31
|
+
export * from "./pagination"
|
|
32
|
+
export * from "./popover"
|
|
33
|
+
export * from "./progress"
|
|
34
|
+
export * from "./separator"
|
|
35
|
+
export * from "./sheet"
|
|
36
|
+
export * from "./skeleton"
|
|
37
|
+
export * from "./slider"
|
|
38
|
+
export * from "./spinner"
|
|
39
|
+
export * from "./sticky-surface"
|
|
40
|
+
export * from "./switch"
|
|
41
|
+
export * from "./toggle"
|
|
42
|
+
export * from "./toggle-group"
|
|
43
|
+
export * from "./collapsible"
|
|
44
|
+
export * from "./combobox"
|
|
45
|
+
export * from "./select"
|
|
46
|
+
export * from "./native-select"
|
|
47
|
+
export * from "./dropdown-menu"
|
|
48
|
+
export * from "./input"
|
|
49
|
+
export * from "./input-group"
|
|
50
|
+
export * from "./textarea"
|
|
51
|
+
export * from "./field"
|
|
52
|
+
export * from "./table"
|
|
53
|
+
export * from "./tabs"
|
|
54
|
+
export * from "./navigation-menu"
|
|
55
|
+
export * from "./sidebar"
|
|
56
|
+
export * from "./chart"
|
|
57
|
+
export * from "./dropzone"
|
|
58
|
+
export * from "./toast"
|
|
59
|
+
export * from "./scroll-area"
|
|
60
|
+
export * from "./resizable"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface InputGroupProps {
|
|
2
|
+
/**
|
|
3
|
+
* Text/icon to prepend.
|
|
4
|
+
*/
|
|
5
|
+
prepend?: string
|
|
6
|
+
/**
|
|
7
|
+
* Text/icon to append.
|
|
8
|
+
*/
|
|
9
|
+
append?: string
|
|
10
|
+
/**
|
|
11
|
+
* Size scale.
|
|
12
|
+
*/
|
|
13
|
+
size?: "sm" | "md" | "lg"
|
|
14
|
+
/**
|
|
15
|
+
* UI class override map.
|
|
16
|
+
*/
|
|
17
|
+
ui?: any
|
|
18
|
+
/**
|
|
19
|
+
* Root CSS class override.
|
|
20
|
+
*/
|
|
21
|
+
class?: any
|
|
22
|
+
[key: string]: unknown
|
|
23
|
+
}
|