@auronui/styles 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/DATA_ATTRIBUTES.md +163 -0
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/base/base.css +40 -0
- package/components/accordion.css +201 -0
- package/components/alert-dialog.css +307 -0
- package/components/alert.css +143 -0
- package/components/aspect-ratio.css +8 -0
- package/components/autocomplete.css +685 -0
- package/components/avatar.css +78 -0
- package/components/badge.css +186 -0
- package/components/breadcrumbs.css +76 -0
- package/components/button-group.css +126 -0
- package/components/button.css +282 -0
- package/components/calendar-year-picker.css +193 -0
- package/components/calendar.css +332 -0
- package/components/card.css +225 -0
- package/components/checkbox-group.css +7 -0
- package/components/checkbox.css +268 -0
- package/components/chip.css +227 -0
- package/components/close-button.css +65 -0
- package/components/collapsible-group.css +7 -0
- package/components/collapsible.css +74 -0
- package/components/color-area.css +81 -0
- package/components/color-field.css +99 -0
- package/components/color-input-group.css +153 -0
- package/components/color-picker.css +121 -0
- package/components/color-slider.css +266 -0
- package/components/color-swatch-picker.css +247 -0
- package/components/color-swatch.css +42 -0
- package/components/combo-box.css +203 -0
- package/components/date-input-group.css +125 -0
- package/components/date-input.css +529 -0
- package/components/date-picker.css +86 -0
- package/components/date-range-field.css +538 -0
- package/components/date-range-picker.css +93 -0
- package/components/description.css +4 -0
- package/components/drawer.css +222 -0
- package/components/dropdown.css +67 -0
- package/components/empty-state.css +4 -0
- package/components/error-message.css +13 -0
- package/components/field-error.css +19 -0
- package/components/fieldset.css +39 -0
- package/components/header.css +7 -0
- package/components/index.css +164 -0
- package/components/input-otp.css +124 -0
- package/components/input.css +603 -0
- package/components/kbd.css +27 -0
- package/components/label.css +28 -0
- package/components/link.css +144 -0
- package/components/list-box-item.css +29 -0
- package/components/list-box-section.css +13 -0
- package/components/list-box.css +11 -0
- package/components/menu-item.css +68 -0
- package/components/menu-section.css +18 -0
- package/components/menu.css +7 -0
- package/components/meter.css +104 -0
- package/components/modal.css +335 -0
- package/components/number-field.css +395 -0
- package/components/pagination.css +157 -0
- package/components/popover.css +96 -0
- package/components/progress-bar.css +126 -0
- package/components/progress-circle.css +82 -0
- package/components/radio-group.css +47 -0
- package/components/radio.css +157 -0
- package/components/range-calendar.css +402 -0
- package/components/scroll-area.css +70 -0
- package/components/scroll-shadow.css +77 -0
- package/components/select.css +649 -0
- package/components/separator.css +59 -0
- package/components/skeleton.css +48 -0
- package/components/slider.css +155 -0
- package/components/spinner.css +42 -0
- package/components/splitter.css +74 -0
- package/components/stepper.css +160 -0
- package/components/surface.css +23 -0
- package/components/switch-group.css +17 -0
- package/components/switch.css +194 -0
- package/components/table.css +341 -0
- package/components/tabs.css +262 -0
- package/components/tag-group.css +66 -0
- package/components/tag.css +99 -0
- package/components/textarea.css +536 -0
- package/components/time-field.css +530 -0
- package/components/toast.css +267 -0
- package/components/toggle-button-group.css +174 -0
- package/components/toggle-button.css +149 -0
- package/components/toolbar.css +32 -0
- package/components/tooltip.css +47 -0
- package/components/tree.css +81 -0
- package/index.css +29 -0
- package/package.json +415 -0
- package/src/components/accordion/accordion.styles.ts +46 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.styles.ts +37 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/alert-dialog/alert-dialog.styles.ts +72 -0
- package/src/components/alert-dialog/index.ts +1 -0
- package/src/components/aspect-ratio/aspect-ratio.styles.ts +10 -0
- package/src/components/aspect-ratio/index.ts +1 -0
- package/src/components/autocomplete/autocomplete.styles.ts +86 -0
- package/src/components/autocomplete/index.ts +1 -0
- package/src/components/avatar/avatar.styles.ts +53 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/badge/badge.styles.ts +77 -0
- package/src/components/badge/index.ts +1 -0
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +14 -0
- package/src/components/breadcrumbs/index.ts +1 -0
- package/src/components/button/__tests__/button.styles.test.ts +79 -0
- package/src/components/button/button.styles.ts +65 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/button-group.styles.ts +32 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/calendar/calendar.styles.ts +60 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +15 -0
- package/src/components/calendar-year-picker/index.ts +1 -0
- package/src/components/card/card.styles.ts +65 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/checkbox/checkbox.styles.ts +27 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox-group/checkbox-group.styles.ts +18 -0
- package/src/components/checkbox-group/index.ts +1 -0
- package/src/components/chip/chip.styles.ts +65 -0
- package/src/components/chip/index.ts +1 -0
- package/src/components/close-button/close-button.styles.ts +17 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/collapsible/collapsible.styles.ts +25 -0
- package/src/components/collapsible/index.ts +1 -0
- package/src/components/collapsible-group/collapsible-group.styles.ts +13 -0
- package/src/components/collapsible-group/index.ts +1 -0
- package/src/components/color-area/color-area.styles.ts +23 -0
- package/src/components/color-area/index.ts +1 -0
- package/src/components/color-field/color-field.styles.ts +18 -0
- package/src/components/color-field/index.ts +1 -0
- package/src/components/color-input-group/color-input-group.styles.ts +34 -0
- package/src/components/color-input-group/index.ts +1 -0
- package/src/components/color-picker/color-picker.styles.ts +13 -0
- package/src/components/color-picker/index.ts +1 -0
- package/src/components/color-slider/color-slider.styles.ts +14 -0
- package/src/components/color-slider/index.ts +1 -0
- package/src/components/color-swatch/color-swatch.styles.ts +26 -0
- package/src/components/color-swatch/index.ts +1 -0
- package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +54 -0
- package/src/components/color-swatch-picker/index.ts +1 -0
- package/src/components/combo-box/combo-box.styles.ts +26 -0
- package/src/components/combo-box/index.ts +1 -0
- package/src/components/date-input/date-input.styles.ts +86 -0
- package/src/components/date-input/index.ts +1 -0
- package/src/components/date-picker/date-picker.styles.ts +14 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/date-range-field/date-range-field.styles.ts +87 -0
- package/src/components/date-range-field/index.ts +1 -0
- package/src/components/date-range-picker/date-range-picker.styles.ts +14 -0
- package/src/components/date-range-picker/index.ts +1 -0
- package/src/components/description/description.styles.ts +9 -0
- package/src/components/description/index.ts +1 -0
- package/src/components/drawer/drawer.styles.ts +55 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/dropdown/dropdown.styles.ts +14 -0
- package/src/components/dropdown/index.ts +1 -0
- package/src/components/empty-state/empty-state.styles.ts +9 -0
- package/src/components/empty-state/index.ts +1 -0
- package/src/components/error-message/error-message.styles.ts +9 -0
- package/src/components/error-message/index.ts +1 -0
- package/src/components/fieldset/fieldset.styles.ts +29 -0
- package/src/components/fieldset/index.ts +1 -0
- package/src/components/header/header.styles.ts +5 -0
- package/src/components/header/index.ts +1 -0
- package/src/components/index.ts +84 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.styles.ts +87 -0
- package/src/components/input-otp/index.ts +1 -0
- package/src/components/input-otp/input-otp.styles.ts +30 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.styles.ts +20 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.styles.ts +25 -0
- package/src/components/link/index.ts +1 -0
- package/src/components/link/link.styles.ts +38 -0
- package/src/components/list-box/index.ts +1 -0
- package/src/components/list-box/list-box.styles.ts +18 -0
- package/src/components/list-box-item/index.ts +1 -0
- package/src/components/list-box-item/list-box-item.styles.ts +25 -0
- package/src/components/list-box-section/index.ts +1 -0
- package/src/components/list-box-section/list-box-section.styles.ts +13 -0
- package/src/components/menu/index.ts +1 -0
- package/src/components/menu/menu.styles.ts +9 -0
- package/src/components/menu-item/index.ts +1 -0
- package/src/components/menu-item/menu-item.styles.ts +26 -0
- package/src/components/menu-section/index.ts +1 -0
- package/src/components/menu-section/menu-section.styles.ts +14 -0
- package/src/components/meter/index.ts +1 -0
- package/src/components/meter/meter.styles.ts +48 -0
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/modal.styles.ts +70 -0
- package/src/components/number-field/index.ts +1 -0
- package/src/components/number-field/number-field.styles.ts +80 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/pagination.styles.ts +32 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.styles.ts +14 -0
- package/src/components/progress-bar/index.ts +1 -0
- package/src/components/progress-bar/progress-bar.styles.ts +97 -0
- package/src/components/progress-circle/index.ts +1 -0
- package/src/components/progress-circle/progress-circle.styles.ts +74 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio/radio.styles.ts +14 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/radio-group/radio-group.styles.ts +18 -0
- package/src/components/range-calendar/index.ts +1 -0
- package/src/components/range-calendar/range-calendar.styles.ts +60 -0
- package/src/components/scroll-shadow/index.ts +1 -0
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +37 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select/select.styles.ts +86 -0
- package/src/components/separator/index.ts +1 -0
- package/src/components/separator/separator.styles.ts +25 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.styles.ts +21 -0
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/slider.styles.ts +40 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/spinner/spinner.styles.ts +28 -0
- package/src/components/splitter/index.ts +1 -0
- package/src/components/splitter/splitter.styles.ts +28 -0
- package/src/components/stepper/index.ts +1 -0
- package/src/components/stepper/stepper.styles.ts +57 -0
- package/src/components/surface/index.ts +1 -0
- package/src/components/surface/surface.styles.ts +20 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.styles.ts +31 -0
- package/src/components/switch-group/index.ts +1 -0
- package/src/components/switch-group/switch-group.styles.ts +25 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/table.styles.ts +47 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/tabs.styles.ts +31 -0
- package/src/components/tag/index.ts +1 -0
- package/src/components/tag/tag.styles.ts +37 -0
- package/src/components/tag-group/index.ts +1 -0
- package/src/components/tag-group/tag-group.styles.ts +12 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.styles.ts +29 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/textarea.styles.ts +86 -0
- package/src/components/time-field/index.ts +1 -0
- package/src/components/time-field/time-field.styles.ts +86 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/toast.styles.ts +67 -0
- package/src/components/toggle-button/index.ts +1 -0
- package/src/components/toggle-button/toggle-button.styles.ts +28 -0
- package/src/components/toggle-button-group/index.ts +1 -0
- package/src/components/toggle-button-group/toggle-button-group.styles.ts +39 -0
- package/src/components/toolbar/index.ts +1 -0
- package/src/components/toolbar/toolbar.styles.ts +23 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/tooltip.styles.ts +12 -0
- package/src/components/tree/index.ts +1 -0
- package/src/components/tree/tree.styles.ts +33 -0
- package/src/index.ts +5 -0
- package/src/utils/index.ts +15 -0
- package/themes/default/components/index.css +6 -0
- package/themes/default/index.css +8 -0
- package/themes/default/variables.css +168 -0
- package/themes/shared/theme.css +196 -0
- package/utilities/index.css +244 -0
- package/variants/index.css +106 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./splitter.styles";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
export const splitterVariants = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
group: "splitter-group",
|
|
7
|
+
panel: "splitter-panel",
|
|
8
|
+
handle: "splitter-handle",
|
|
9
|
+
handleBar: "splitter-handle__bar",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
direction: {
|
|
13
|
+
horizontal: {
|
|
14
|
+
group: "splitter-group--horizontal",
|
|
15
|
+
handle: "splitter-handle--horizontal",
|
|
16
|
+
},
|
|
17
|
+
vertical: {
|
|
18
|
+
group: "splitter-group--vertical",
|
|
19
|
+
handle: "splitter-handle--vertical",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
direction: "horizontal",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type SplitterVariants = VariantProps<typeof splitterVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./stepper.styles";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
export const stepperVariants = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
base: "stepper",
|
|
7
|
+
item: "stepper__item",
|
|
8
|
+
indicator: "stepper__indicator",
|
|
9
|
+
indicatorText: "stepper__indicator-text",
|
|
10
|
+
title: "stepper__title",
|
|
11
|
+
description: "stepper__description",
|
|
12
|
+
content: "stepper__content",
|
|
13
|
+
separator: "stepper__separator",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: {
|
|
18
|
+
base: "stepper--horizontal",
|
|
19
|
+
item: "stepper__item--horizontal",
|
|
20
|
+
separator: "stepper__separator--horizontal",
|
|
21
|
+
},
|
|
22
|
+
vertical: {
|
|
23
|
+
base: "stepper--vertical",
|
|
24
|
+
item: "stepper__item--vertical",
|
|
25
|
+
separator: "stepper__separator--vertical",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
sm: {
|
|
30
|
+
indicator: "stepper__indicator--sm",
|
|
31
|
+
title: "stepper__title--sm",
|
|
32
|
+
},
|
|
33
|
+
md: {
|
|
34
|
+
indicator: "stepper__indicator--md",
|
|
35
|
+
title: "stepper__title--md",
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
indicator: "stepper__indicator--lg",
|
|
39
|
+
title: "stepper__title--lg",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
color: {
|
|
43
|
+
default: { indicator: "stepper__indicator--default" },
|
|
44
|
+
accent: { indicator: "stepper__indicator--accent" },
|
|
45
|
+
success: { indicator: "stepper__indicator--success" },
|
|
46
|
+
warning: { indicator: "stepper__indicator--warning" },
|
|
47
|
+
danger: { indicator: "stepper__indicator--danger" },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
defaultVariants: {
|
|
51
|
+
orientation: "horizontal",
|
|
52
|
+
size: "md",
|
|
53
|
+
color: "accent",
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export type StepperVariants = VariantProps<typeof stepperVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./surface.styles";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const surfaceVariants = tv({
|
|
6
|
+
base: "surface",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "default",
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "surface--default",
|
|
13
|
+
secondary: "surface--secondary",
|
|
14
|
+
tertiary: "surface--tertiary",
|
|
15
|
+
transparent: "surface--transparent",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export type SurfaceVariants = VariantProps<typeof surfaceVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./switch.styles";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const switchVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
size: "md",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "switch",
|
|
11
|
+
content: "switch__content",
|
|
12
|
+
control: "switch__control",
|
|
13
|
+
icon: "switch__icon",
|
|
14
|
+
thumb: "switch__thumb",
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
lg: {
|
|
19
|
+
base: "switch--lg",
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
base: "switch--md",
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
base: "switch--sm",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export type SwitchVariants = VariantProps<typeof switchVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./switch-group.styles";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const switchGroupVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
orientation: "vertical",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "switch-group",
|
|
11
|
+
items: "switch-group__items",
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
orientation: {
|
|
15
|
+
horizontal: {
|
|
16
|
+
base: "switch-group--horizontal",
|
|
17
|
+
},
|
|
18
|
+
vertical: {
|
|
19
|
+
base: "switch-group--vertical",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export type SwitchGroupVariants = VariantProps<typeof switchGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./table.styles";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const tableVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "primary",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "table-root",
|
|
11
|
+
body: "table__body",
|
|
12
|
+
cell: "table__cell",
|
|
13
|
+
column: "table__column",
|
|
14
|
+
columnResizer: "table__column-resizer",
|
|
15
|
+
content: "table__content",
|
|
16
|
+
footer: "table__footer",
|
|
17
|
+
header: "table__header",
|
|
18
|
+
loadMore: "table__load-more",
|
|
19
|
+
loadMoreContent: "table__load-more-content",
|
|
20
|
+
resizableContainer: "table__resizable-container",
|
|
21
|
+
row: "table__row",
|
|
22
|
+
scrollContainer: "table__scroll-container",
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
variant: {
|
|
26
|
+
primary: {
|
|
27
|
+
base: "table-root--primary",
|
|
28
|
+
},
|
|
29
|
+
secondary: {
|
|
30
|
+
base: "table-root--secondary",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Exclude React Aria render prop keys from the variant types
|
|
37
|
+
type TableRenderPropsKeys =
|
|
38
|
+
| "isHovered"
|
|
39
|
+
| "isFocused"
|
|
40
|
+
| "isFocusVisible"
|
|
41
|
+
| "isSelected"
|
|
42
|
+
| "isDisabled"
|
|
43
|
+
| "isDragging"
|
|
44
|
+
| "isDropTarget"
|
|
45
|
+
| "state";
|
|
46
|
+
|
|
47
|
+
export type TableVariants = Omit<VariantProps<typeof tableVariants>, TableRenderPropsKeys>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tabs.styles";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const tabsVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "primary",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "tabs",
|
|
11
|
+
separator: "tabs__separator",
|
|
12
|
+
tab: "tabs__tab",
|
|
13
|
+
tabIndicator: "tabs__indicator",
|
|
14
|
+
tabList: "tabs__list",
|
|
15
|
+
tabListContainer: "tabs__list-container",
|
|
16
|
+
tabPanel: "tabs__panel",
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
primary: {},
|
|
21
|
+
secondary: {
|
|
22
|
+
base: "tabs--secondary",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// Render props that should be excluded from TabsVariants (framework-specific)
|
|
29
|
+
type TabsRenderPropsKeys = "selectedKey";
|
|
30
|
+
|
|
31
|
+
export type TabsVariants = Omit<VariantProps<typeof tabsVariants>, TabsRenderPropsKeys>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tag.styles";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const tagVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
size: "md",
|
|
8
|
+
variant: "default",
|
|
9
|
+
},
|
|
10
|
+
slots: {
|
|
11
|
+
base: "tag",
|
|
12
|
+
removeButton: "tag__remove-button",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
lg: {
|
|
17
|
+
base: "tag--lg",
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
base: "tag--md",
|
|
21
|
+
},
|
|
22
|
+
sm: {
|
|
23
|
+
base: "tag--sm",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
default: {
|
|
28
|
+
base: "tag--default",
|
|
29
|
+
},
|
|
30
|
+
surface: {
|
|
31
|
+
base: "tag--surface",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export type TagVariants = VariantProps<typeof tagVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tag-group.styles";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const tagGroupVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "tag-group",
|
|
8
|
+
list: "tag-group__list",
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type TagGroupVariants = VariantProps<typeof tagGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./text.styles";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const textVariants = tv({
|
|
6
|
+
base: ["transition-colors duration-300"],
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
size: "base",
|
|
9
|
+
variant: "default",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
base: "text-base",
|
|
14
|
+
lg: "text-lg",
|
|
15
|
+
sm: "text-sm",
|
|
16
|
+
xl: "text-xl",
|
|
17
|
+
xs: "text-xs",
|
|
18
|
+
},
|
|
19
|
+
variant: {
|
|
20
|
+
danger: "text-danger",
|
|
21
|
+
default: "text-foreground",
|
|
22
|
+
muted: "text-muted",
|
|
23
|
+
success: "text-success",
|
|
24
|
+
warning: "text-warning",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export type TextVariants = VariantProps<typeof textVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./textarea.styles";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const textAreaVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "textarea-root",
|
|
8
|
+
mainWrapper: "textarea__main-wrapper",
|
|
9
|
+
inputWrapper: "textarea",
|
|
10
|
+
input: "textarea__input",
|
|
11
|
+
startContent: "textarea__start-content",
|
|
12
|
+
endContent: "textarea__end-content",
|
|
13
|
+
label: "textarea__label",
|
|
14
|
+
clearButton: "textarea__clear-button",
|
|
15
|
+
helperWrapper: "textarea__helper-wrapper",
|
|
16
|
+
description: "textarea__description",
|
|
17
|
+
errorMessage: "textarea__error-message",
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "flat",
|
|
21
|
+
size: "md",
|
|
22
|
+
color: "default",
|
|
23
|
+
fullWidth: false,
|
|
24
|
+
isInvalid: false,
|
|
25
|
+
isDisabled: false,
|
|
26
|
+
isReadonly: false,
|
|
27
|
+
hasLabel: false,
|
|
28
|
+
labelPlacement: "inside",
|
|
29
|
+
},
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
flat: { inputWrapper: "textarea--flat" },
|
|
33
|
+
bordered: { inputWrapper: "textarea--bordered" },
|
|
34
|
+
faded: { inputWrapper: "textarea--faded" },
|
|
35
|
+
underlined: { inputWrapper: "textarea--underlined" },
|
|
36
|
+
raised: { inputWrapper: "textarea--raised" },
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
sm: { inputWrapper: "textarea--sm" },
|
|
40
|
+
md: {},
|
|
41
|
+
lg: { inputWrapper: "textarea--lg" },
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
default: { inputWrapper: "textarea--default" },
|
|
45
|
+
primary: { inputWrapper: "textarea--primary" },
|
|
46
|
+
secondary: { inputWrapper: "textarea--secondary" },
|
|
47
|
+
success: { inputWrapper: "textarea--success" },
|
|
48
|
+
warning: { inputWrapper: "textarea--warning" },
|
|
49
|
+
danger: { inputWrapper: "textarea--danger" },
|
|
50
|
+
},
|
|
51
|
+
fullWidth: {
|
|
52
|
+
false: {},
|
|
53
|
+
true: { base: "textarea-root--full-width", inputWrapper: "textarea--full-width" },
|
|
54
|
+
},
|
|
55
|
+
isInvalid: {
|
|
56
|
+
false: {},
|
|
57
|
+
true: { base: "textarea-root--invalid", inputWrapper: "textarea--invalid" },
|
|
58
|
+
},
|
|
59
|
+
isDisabled: {
|
|
60
|
+
false: {},
|
|
61
|
+
true: { base: "textarea-root--disabled", inputWrapper: "textarea--disabled" },
|
|
62
|
+
},
|
|
63
|
+
isReadonly: {
|
|
64
|
+
false: {},
|
|
65
|
+
true: { inputWrapper: "textarea--readonly" },
|
|
66
|
+
},
|
|
67
|
+
hasLabel: {
|
|
68
|
+
false: {},
|
|
69
|
+
true: {},
|
|
70
|
+
},
|
|
71
|
+
labelPlacement: {
|
|
72
|
+
inside: { base: "textarea-root--label-inside" },
|
|
73
|
+
outside: { base: "textarea-root--label-outside" },
|
|
74
|
+
"outside-left": { base: "textarea-root--label-outside-left" },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
compoundVariants: [
|
|
78
|
+
{
|
|
79
|
+
hasLabel: true,
|
|
80
|
+
labelPlacement: "inside",
|
|
81
|
+
class: { inputWrapper: "textarea--label-inside" },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export type TextAreaVariants = VariantProps<typeof textAreaVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./time-field.styles";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const timeFieldVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "time-field-root",
|
|
8
|
+
mainWrapper: "time-field__main-wrapper",
|
|
9
|
+
inputWrapper: "time-field",
|
|
10
|
+
segmentList: "time-field__segment-list",
|
|
11
|
+
segment: "time-field__segment",
|
|
12
|
+
startContent: "time-field__start-content",
|
|
13
|
+
endContent: "time-field__end-content",
|
|
14
|
+
label: "time-field__label",
|
|
15
|
+
helperWrapper: "time-field__helper-wrapper",
|
|
16
|
+
description: "time-field__description",
|
|
17
|
+
errorMessage: "time-field__error-message",
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "flat",
|
|
21
|
+
size: "md",
|
|
22
|
+
color: "default",
|
|
23
|
+
fullWidth: false,
|
|
24
|
+
isInvalid: false,
|
|
25
|
+
isDisabled: false,
|
|
26
|
+
isReadonly: false,
|
|
27
|
+
hasLabel: false,
|
|
28
|
+
labelPlacement: "inside",
|
|
29
|
+
},
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
flat: { inputWrapper: "time-field--flat" },
|
|
33
|
+
bordered: { inputWrapper: "time-field--bordered" },
|
|
34
|
+
faded: { inputWrapper: "time-field--faded" },
|
|
35
|
+
underlined: { inputWrapper: "time-field--underlined" },
|
|
36
|
+
raised: { inputWrapper: "time-field--raised" },
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
sm: { inputWrapper: "time-field--sm" },
|
|
40
|
+
md: {},
|
|
41
|
+
lg: { inputWrapper: "time-field--lg" },
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
default: { inputWrapper: "time-field--default" },
|
|
45
|
+
primary: { inputWrapper: "time-field--primary" },
|
|
46
|
+
secondary: { inputWrapper: "time-field--secondary" },
|
|
47
|
+
success: { inputWrapper: "time-field--success" },
|
|
48
|
+
warning: { inputWrapper: "time-field--warning" },
|
|
49
|
+
danger: { inputWrapper: "time-field--danger" },
|
|
50
|
+
},
|
|
51
|
+
fullWidth: {
|
|
52
|
+
false: {},
|
|
53
|
+
true: { base: "time-field-root--full-width", inputWrapper: "time-field--full-width" },
|
|
54
|
+
},
|
|
55
|
+
isInvalid: {
|
|
56
|
+
false: {},
|
|
57
|
+
true: { base: "time-field-root--invalid", inputWrapper: "time-field--invalid" },
|
|
58
|
+
},
|
|
59
|
+
isDisabled: {
|
|
60
|
+
false: {},
|
|
61
|
+
true: { base: "time-field-root--disabled", inputWrapper: "time-field--disabled" },
|
|
62
|
+
},
|
|
63
|
+
isReadonly: {
|
|
64
|
+
false: {},
|
|
65
|
+
true: { inputWrapper: "time-field--readonly" },
|
|
66
|
+
},
|
|
67
|
+
hasLabel: {
|
|
68
|
+
false: {},
|
|
69
|
+
true: {},
|
|
70
|
+
},
|
|
71
|
+
labelPlacement: {
|
|
72
|
+
inside: { base: "time-field-root--label-inside" },
|
|
73
|
+
outside: { base: "time-field-root--label-outside" },
|
|
74
|
+
"outside-left": { base: "time-field-root--label-outside-left" },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
compoundVariants: [
|
|
78
|
+
{
|
|
79
|
+
hasLabel: true,
|
|
80
|
+
labelPlacement: "inside",
|
|
81
|
+
class: { inputWrapper: "time-field--label-inside" },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export type TimeFieldVariants = VariantProps<typeof timeFieldVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toast.styles";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const toastVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
placement: "bottom",
|
|
8
|
+
variant: "default",
|
|
9
|
+
},
|
|
10
|
+
slots: {
|
|
11
|
+
action: "toast__action",
|
|
12
|
+
close: "toast__close-button",
|
|
13
|
+
content: "toast__content",
|
|
14
|
+
description: "toast__description",
|
|
15
|
+
indicator: "toast__indicator",
|
|
16
|
+
region: "toast-region",
|
|
17
|
+
title: "toast__title",
|
|
18
|
+
toast: "toast",
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
placement: {
|
|
22
|
+
bottom: {
|
|
23
|
+
region: "toast-region--bottom",
|
|
24
|
+
toast: "toast--bottom",
|
|
25
|
+
},
|
|
26
|
+
"bottom end": {
|
|
27
|
+
region: "toast-region--bottom-end",
|
|
28
|
+
toast: "toast--bottom-end",
|
|
29
|
+
},
|
|
30
|
+
"bottom start": {
|
|
31
|
+
region: "toast-region--bottom-start",
|
|
32
|
+
toast: "toast--bottom-start",
|
|
33
|
+
},
|
|
34
|
+
top: {
|
|
35
|
+
region: "toast-region--top",
|
|
36
|
+
toast: "toast--top",
|
|
37
|
+
},
|
|
38
|
+
"top end": {
|
|
39
|
+
region: "toast-region--top-end",
|
|
40
|
+
toast: "toast--top-end",
|
|
41
|
+
},
|
|
42
|
+
"top start": {
|
|
43
|
+
region: "toast-region--top-start",
|
|
44
|
+
toast: "toast--top-start",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
variant: {
|
|
48
|
+
accent: {
|
|
49
|
+
toast: "toast--accent",
|
|
50
|
+
},
|
|
51
|
+
danger: {
|
|
52
|
+
toast: "toast--danger",
|
|
53
|
+
},
|
|
54
|
+
default: {
|
|
55
|
+
toast: "toast--default",
|
|
56
|
+
},
|
|
57
|
+
success: {
|
|
58
|
+
toast: "toast--success",
|
|
59
|
+
},
|
|
60
|
+
warning: {
|
|
61
|
+
toast: "toast--warning",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export type ToastVariants = VariantProps<typeof toastVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toggle-button.styles";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const toggleButtonVariants = tv({
|
|
6
|
+
base: "toggle-button",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
isIconOnly: false,
|
|
9
|
+
size: "md",
|
|
10
|
+
variant: "default",
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
isIconOnly: {
|
|
14
|
+
true: "toggle-button--icon-only",
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
lg: "toggle-button--lg",
|
|
18
|
+
md: "toggle-button--md",
|
|
19
|
+
sm: "toggle-button--sm",
|
|
20
|
+
},
|
|
21
|
+
variant: {
|
|
22
|
+
default: "toggle-button--default",
|
|
23
|
+
ghost: "toggle-button--ghost",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type ToggleButtonVariants = VariantProps<typeof toggleButtonVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toggle-button-group.styles";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const toggleButtonGroupVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
fullWidth: false,
|
|
8
|
+
isDetached: false,
|
|
9
|
+
orientation: "horizontal",
|
|
10
|
+
},
|
|
11
|
+
slots: {
|
|
12
|
+
base: "toggle-button-group",
|
|
13
|
+
separator: "toggle-button-group__separator",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
fullWidth: {
|
|
17
|
+
false: {},
|
|
18
|
+
true: {
|
|
19
|
+
base: "toggle-button-group--full-width",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
isDetached: {
|
|
23
|
+
false: {},
|
|
24
|
+
true: {
|
|
25
|
+
base: "toggle-button-group--detached",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
orientation: {
|
|
29
|
+
horizontal: {
|
|
30
|
+
base: "toggle-button-group--horizontal",
|
|
31
|
+
},
|
|
32
|
+
vertical: {
|
|
33
|
+
base: "toggle-button-group--vertical",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export type ToggleButtonGroupVariants = VariantProps<typeof toggleButtonGroupVariants>;
|