@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,80 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const numberFieldVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "number-field",
|
|
8
|
+
group: "number-field__group",
|
|
9
|
+
input: "number-field__input",
|
|
10
|
+
incrementButton: "number-field__increment-button",
|
|
11
|
+
decrementButton: "number-field__decrement-button",
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "flat",
|
|
15
|
+
size: "md",
|
|
16
|
+
color: "default",
|
|
17
|
+
fullWidth: false,
|
|
18
|
+
isInvalid: false,
|
|
19
|
+
isDisabled: false,
|
|
20
|
+
isReadonly: false,
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
flat: { base: "number-field--flat" },
|
|
25
|
+
bordered: { base: "number-field--bordered" },
|
|
26
|
+
faded: { base: "number-field--faded" },
|
|
27
|
+
underlined: { base: "number-field--underlined" },
|
|
28
|
+
raised: { base: "number-field--raised" },
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
sm: {
|
|
32
|
+
base: "number-field--sm",
|
|
33
|
+
group: "number-field__group--sm",
|
|
34
|
+
incrementButton: "number-field__increment-button--sm",
|
|
35
|
+
decrementButton: "number-field__decrement-button--sm",
|
|
36
|
+
},
|
|
37
|
+
md: {
|
|
38
|
+
base: "",
|
|
39
|
+
group: "",
|
|
40
|
+
incrementButton: "",
|
|
41
|
+
decrementButton: "",
|
|
42
|
+
},
|
|
43
|
+
lg: {
|
|
44
|
+
base: "number-field--lg",
|
|
45
|
+
group: "number-field__group--lg",
|
|
46
|
+
incrementButton: "number-field__increment-button--lg",
|
|
47
|
+
decrementButton: "number-field__decrement-button--lg",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
color: {
|
|
51
|
+
default: { base: "number-field--default" },
|
|
52
|
+
primary: { base: "number-field--primary" },
|
|
53
|
+
secondary: { base: "number-field--secondary" },
|
|
54
|
+
success: { base: "number-field--success" },
|
|
55
|
+
warning: { base: "number-field--warning" },
|
|
56
|
+
danger: { base: "number-field--danger" },
|
|
57
|
+
},
|
|
58
|
+
fullWidth: {
|
|
59
|
+
false: {},
|
|
60
|
+
true: {
|
|
61
|
+
base: "number-field--full-width",
|
|
62
|
+
group: "number-field__group--full-width",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
isInvalid: {
|
|
66
|
+
false: {},
|
|
67
|
+
true: { base: "number-field--invalid" },
|
|
68
|
+
},
|
|
69
|
+
isDisabled: {
|
|
70
|
+
false: {},
|
|
71
|
+
true: { base: "number-field--disabled" },
|
|
72
|
+
},
|
|
73
|
+
isReadonly: {
|
|
74
|
+
false: {},
|
|
75
|
+
true: { base: "number-field--readonly" },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export type NumberFieldVariants = VariantProps<typeof numberFieldVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./pagination.styles";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const paginationVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
size: "md",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "pagination",
|
|
11
|
+
content: "pagination__content",
|
|
12
|
+
ellipsis: "pagination__ellipsis",
|
|
13
|
+
item: "pagination__item",
|
|
14
|
+
link: "pagination__link",
|
|
15
|
+
summary: "pagination__summary",
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
size: {
|
|
19
|
+
lg: {
|
|
20
|
+
base: "pagination--lg",
|
|
21
|
+
},
|
|
22
|
+
md: {
|
|
23
|
+
base: "pagination--md",
|
|
24
|
+
},
|
|
25
|
+
sm: {
|
|
26
|
+
base: "pagination--sm",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export type PaginationVariants = VariantProps<typeof paginationVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./popover.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const popoverVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "popover",
|
|
8
|
+
dialog: "popover__dialog",
|
|
9
|
+
heading: "popover__heading",
|
|
10
|
+
trigger: "popover__trigger",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type PopoverVariants = VariantProps<typeof popoverVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./progress-bar.styles";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const progressBarVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
color: "default",
|
|
8
|
+
size: "md",
|
|
9
|
+
radius: "full",
|
|
10
|
+
isStriped: false,
|
|
11
|
+
isIndeterminate: false,
|
|
12
|
+
isDisabled: false,
|
|
13
|
+
},
|
|
14
|
+
slots: {
|
|
15
|
+
base: "progress-bar",
|
|
16
|
+
labelWrapper: "progress-bar__label-wrapper flex justify-between",
|
|
17
|
+
label: "progress-bar__label text-sm font-medium text-foreground",
|
|
18
|
+
value: "progress-bar__value text-sm font-medium text-foreground",
|
|
19
|
+
track: "progress-bar__track",
|
|
20
|
+
indicator: "progress-bar__indicator transition-transform duration-300 ease-out",
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
color: {
|
|
24
|
+
default: {
|
|
25
|
+
indicator: "bg-default-400 progress-bar--default",
|
|
26
|
+
},
|
|
27
|
+
primary: {
|
|
28
|
+
indicator: "bg-primary progress-bar--primary",
|
|
29
|
+
},
|
|
30
|
+
secondary: {
|
|
31
|
+
indicator: "bg-secondary progress-bar--secondary",
|
|
32
|
+
},
|
|
33
|
+
success: {
|
|
34
|
+
indicator: "bg-success progress-bar--success",
|
|
35
|
+
},
|
|
36
|
+
warning: {
|
|
37
|
+
indicator: "bg-warning progress-bar--warning",
|
|
38
|
+
},
|
|
39
|
+
danger: {
|
|
40
|
+
indicator: "bg-danger progress-bar--danger",
|
|
41
|
+
},
|
|
42
|
+
accent: {
|
|
43
|
+
indicator: "bg-primary progress-bar--accent",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
sm: {
|
|
48
|
+
track: "h-1 rounded-full progress-bar--sm",
|
|
49
|
+
},
|
|
50
|
+
md: {
|
|
51
|
+
track: "h-2 rounded-full progress-bar--md",
|
|
52
|
+
},
|
|
53
|
+
lg: {
|
|
54
|
+
track: "h-3 rounded-full progress-bar--lg",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
radius: {
|
|
58
|
+
none: {
|
|
59
|
+
track: "rounded-none",
|
|
60
|
+
indicator: "rounded-none",
|
|
61
|
+
},
|
|
62
|
+
sm: {
|
|
63
|
+
track: "rounded-sm",
|
|
64
|
+
indicator: "rounded-sm",
|
|
65
|
+
},
|
|
66
|
+
md: {
|
|
67
|
+
track: "rounded-md",
|
|
68
|
+
indicator: "rounded-md",
|
|
69
|
+
},
|
|
70
|
+
lg: {
|
|
71
|
+
track: "rounded-lg",
|
|
72
|
+
indicator: "rounded-lg",
|
|
73
|
+
},
|
|
74
|
+
full: {
|
|
75
|
+
track: "rounded-full",
|
|
76
|
+
indicator: "rounded-full",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
isStriped: {
|
|
80
|
+
true: {
|
|
81
|
+
indicator: "progress-bar__indicator--striped",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
isIndeterminate: {
|
|
85
|
+
true: {
|
|
86
|
+
indicator: "progress-bar__indicator--indeterminate animate-indeterminate",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
isDisabled: {
|
|
90
|
+
true: {
|
|
91
|
+
base: "opacity-50 cursor-not-allowed",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
export type ProgressBarVariants = VariantProps<typeof progressBarVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./progress-circle.styles";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const progressCircleVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
color: "default",
|
|
8
|
+
size: "md",
|
|
9
|
+
isIndeterminate: false,
|
|
10
|
+
isDisabled: false,
|
|
11
|
+
},
|
|
12
|
+
slots: {
|
|
13
|
+
base: "progress-circle relative inline-flex items-center justify-center",
|
|
14
|
+
svg: "progress-circle__svg",
|
|
15
|
+
track: "progress-circle__track stroke-default-200",
|
|
16
|
+
indicator: "progress-circle__indicator",
|
|
17
|
+
label: "progress-circle__label absolute flex items-center justify-center",
|
|
18
|
+
value: "progress-circle__value text-sm font-medium text-foreground",
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
color: {
|
|
22
|
+
default: {
|
|
23
|
+
indicator: "stroke-default-foreground progress-circle--default",
|
|
24
|
+
},
|
|
25
|
+
primary: {
|
|
26
|
+
indicator: "stroke-accent progress-circle--primary",
|
|
27
|
+
},
|
|
28
|
+
secondary: {
|
|
29
|
+
indicator: "stroke-default-foreground progress-circle--secondary",
|
|
30
|
+
},
|
|
31
|
+
success: {
|
|
32
|
+
indicator: "stroke-success progress-circle--success",
|
|
33
|
+
},
|
|
34
|
+
warning: {
|
|
35
|
+
indicator: "stroke-warning progress-circle--warning",
|
|
36
|
+
},
|
|
37
|
+
danger: {
|
|
38
|
+
indicator: "stroke-danger progress-circle--danger",
|
|
39
|
+
},
|
|
40
|
+
accent: {
|
|
41
|
+
indicator: "stroke-accent progress-circle--accent",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
size: {
|
|
45
|
+
sm: {
|
|
46
|
+
base: "h-12 w-12 progress-circle--sm",
|
|
47
|
+
svg: "h-12 w-12",
|
|
48
|
+
value: "text-xs",
|
|
49
|
+
},
|
|
50
|
+
md: {
|
|
51
|
+
base: "h-16 w-16 progress-circle--md",
|
|
52
|
+
svg: "h-16 w-16",
|
|
53
|
+
value: "text-sm",
|
|
54
|
+
},
|
|
55
|
+
lg: {
|
|
56
|
+
base: "h-24 w-24 progress-circle--lg",
|
|
57
|
+
svg: "h-24 w-24",
|
|
58
|
+
value: "text-base",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
isIndeterminate: {
|
|
62
|
+
true: {
|
|
63
|
+
svg: "animate-spin",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
isDisabled: {
|
|
67
|
+
true: {
|
|
68
|
+
base: "opacity-50 cursor-not-allowed",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export type ProgressCircleVariants = VariantProps<typeof progressCircleVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./radio.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const radioVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "radio",
|
|
8
|
+
content: "radio__content",
|
|
9
|
+
control: "radio__control",
|
|
10
|
+
indicator: "radio__indicator",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type RadioVariants = VariantProps<typeof radioVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./radio-group.styles";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const radioGroupVariants = tv({
|
|
6
|
+
base: "radio-group",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "primary",
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
primary: "radio-group--primary",
|
|
13
|
+
secondary: "radio-group--secondary",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type RadioGroupVariants = VariantProps<typeof radioGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./range-calendar.styles";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const rangeCalendarVariants = tv({
|
|
6
|
+
defaultVariants: {},
|
|
7
|
+
slots: {
|
|
8
|
+
/** Root range calendar container */
|
|
9
|
+
base: "range-calendar",
|
|
10
|
+
/** Calendar cell (td) */
|
|
11
|
+
cell: "range-calendar__cell",
|
|
12
|
+
/** Inner cell trigger button (renders the day number, hover + cap circle) */
|
|
13
|
+
cellButton: "range-calendar__cell-button",
|
|
14
|
+
/** Cell indicator (small dot at bottom of cell) */
|
|
15
|
+
cellIndicator: "range-calendar__cell-indicator",
|
|
16
|
+
/** Calendar grid (table) */
|
|
17
|
+
grid: "range-calendar__grid",
|
|
18
|
+
/** Grid body (tbody) */
|
|
19
|
+
gridBody: "range-calendar__grid-body",
|
|
20
|
+
/** Grid header (thead) */
|
|
21
|
+
gridHeader: "range-calendar__grid-header",
|
|
22
|
+
/** Grid row (tr) */
|
|
23
|
+
gridRow: "range-calendar__grid-row",
|
|
24
|
+
/** Calendar header containing heading and navigation */
|
|
25
|
+
header: "range-calendar__header",
|
|
26
|
+
/** Header cell (th - day names) */
|
|
27
|
+
headerCell: "range-calendar__header-cell",
|
|
28
|
+
/** Month/year heading text */
|
|
29
|
+
heading: "range-calendar__heading",
|
|
30
|
+
/** Clickable heading button that cycles date/month/year views */
|
|
31
|
+
headingButton: "range-calendar__heading-button px-4 py-2",
|
|
32
|
+
/** Month-view grid (3 cols x 4 rows of month cells) */
|
|
33
|
+
monthGrid: "range-calendar__month-grid",
|
|
34
|
+
/** Month-view grid body (tbody) */
|
|
35
|
+
monthGridBody: "range-calendar__month-grid-body",
|
|
36
|
+
/** Month-view grid row (tr) */
|
|
37
|
+
monthGridRow: "range-calendar__month-grid-row",
|
|
38
|
+
/** Month cell (button per month) */
|
|
39
|
+
monthCell: "range-calendar__month-cell px-4 py-2",
|
|
40
|
+
/** Month cell label */
|
|
41
|
+
monthCellLabel: "range-calendar__month-cell-label",
|
|
42
|
+
/** Year-view grid (3 cols x 4 rows of year cells) */
|
|
43
|
+
yearGrid: "range-calendar__year-grid",
|
|
44
|
+
/** Year-view grid body (tbody) */
|
|
45
|
+
yearGridBody: "range-calendar__year-grid-body",
|
|
46
|
+
/** Year-view grid row (tr) */
|
|
47
|
+
yearGridRow: "range-calendar__year-grid-row",
|
|
48
|
+
/** Year cell (button per year) */
|
|
49
|
+
yearCell: "range-calendar__year-cell px-4 py-2",
|
|
50
|
+
/** Year cell label */
|
|
51
|
+
yearCellLabel: "range-calendar__year-cell-label",
|
|
52
|
+
/** Previous/Next navigation button */
|
|
53
|
+
navButton: "range-calendar__nav-button",
|
|
54
|
+
/** Navigation button icon */
|
|
55
|
+
navButtonIcon: "range-calendar__nav-button-icon",
|
|
56
|
+
},
|
|
57
|
+
variants: {},
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export type RangeCalendarVariants = VariantProps<typeof rangeCalendarVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./scroll-shadow.styles";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const scrollShadowVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
hideScrollBar: false,
|
|
8
|
+
orientation: "vertical",
|
|
9
|
+
variant: "fade",
|
|
10
|
+
},
|
|
11
|
+
slots: {
|
|
12
|
+
base: "scroll-shadow",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
hideScrollBar: {
|
|
16
|
+
false: {},
|
|
17
|
+
true: {
|
|
18
|
+
base: "scroll-shadow--hide-scrollbar",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
orientation: {
|
|
22
|
+
horizontal: {
|
|
23
|
+
base: "scroll-shadow--horizontal",
|
|
24
|
+
},
|
|
25
|
+
vertical: {
|
|
26
|
+
base: "scroll-shadow--vertical",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
variant: {
|
|
30
|
+
fade: {
|
|
31
|
+
base: "scroll-shadow--fade",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export type ScrollShadowVariants = VariantProps<typeof scrollShadowVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./select.styles";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const selectVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "select-root",
|
|
8
|
+
mainWrapper: "select__main-wrapper",
|
|
9
|
+
trigger: "select__trigger",
|
|
10
|
+
value: "select__value",
|
|
11
|
+
startContent: "select__start-content",
|
|
12
|
+
indicator: "select__indicator",
|
|
13
|
+
label: "select__label",
|
|
14
|
+
helperWrapper: "select__helper-wrapper",
|
|
15
|
+
description: "select__description",
|
|
16
|
+
errorMessage: "select__error-message",
|
|
17
|
+
popover: "select__popover",
|
|
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: { trigger: "select__trigger--flat" },
|
|
33
|
+
bordered: { trigger: "select__trigger--bordered" },
|
|
34
|
+
faded: { trigger: "select__trigger--faded" },
|
|
35
|
+
underlined: { trigger: "select__trigger--underlined" },
|
|
36
|
+
raised: { trigger: "select__trigger--raised" },
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
sm: { trigger: "select__trigger--sm" },
|
|
40
|
+
md: {},
|
|
41
|
+
lg: { trigger: "select__trigger--lg" },
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
default: { trigger: "select__trigger--default" },
|
|
45
|
+
primary: { trigger: "select__trigger--primary" },
|
|
46
|
+
secondary: { trigger: "select__trigger--secondary" },
|
|
47
|
+
success: { trigger: "select__trigger--success" },
|
|
48
|
+
warning: { trigger: "select__trigger--warning" },
|
|
49
|
+
danger: { trigger: "select__trigger--danger" },
|
|
50
|
+
},
|
|
51
|
+
fullWidth: {
|
|
52
|
+
false: {},
|
|
53
|
+
true: { base: "select-root--full-width", trigger: "select__trigger--full-width" },
|
|
54
|
+
},
|
|
55
|
+
isInvalid: {
|
|
56
|
+
false: {},
|
|
57
|
+
true: { base: "select-root--invalid", trigger: "select__trigger--invalid" },
|
|
58
|
+
},
|
|
59
|
+
isDisabled: {
|
|
60
|
+
false: {},
|
|
61
|
+
true: { base: "select-root--disabled", trigger: "select__trigger--disabled" },
|
|
62
|
+
},
|
|
63
|
+
isReadonly: {
|
|
64
|
+
false: {},
|
|
65
|
+
true: { trigger: "select__trigger--readonly" },
|
|
66
|
+
},
|
|
67
|
+
hasLabel: {
|
|
68
|
+
false: {},
|
|
69
|
+
true: {},
|
|
70
|
+
},
|
|
71
|
+
labelPlacement: {
|
|
72
|
+
inside: { base: "select-root--label-inside" },
|
|
73
|
+
outside: { base: "select-root--label-outside" },
|
|
74
|
+
"outside-left": { base: "select-root--label-outside-left" },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
compoundVariants: [
|
|
78
|
+
{
|
|
79
|
+
hasLabel: true,
|
|
80
|
+
labelPlacement: "inside",
|
|
81
|
+
class: { trigger: "select__trigger--label-inside" },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export type SelectVariants = VariantProps<typeof selectVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./separator.styles";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
const separatorVariants = tv({
|
|
6
|
+
base: "separator",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
orientation: "horizontal",
|
|
9
|
+
variant: "default",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
orientation: {
|
|
13
|
+
horizontal: "separator--horizontal",
|
|
14
|
+
vertical: "separator--vertical",
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
default: "separator--default",
|
|
18
|
+
secondary: "separator--secondary",
|
|
19
|
+
tertiary: "separator--tertiary",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export {separatorVariants};
|
|
25
|
+
export type SeparatorVariants = VariantProps<typeof separatorVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./skeleton.styles";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const skeletonVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
animationType: "shimmer",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "skeleton",
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
animationType: {
|
|
14
|
+
none: "skeleton--none",
|
|
15
|
+
pulse: "skeleton--pulse",
|
|
16
|
+
shimmer: "skeleton--shimmer",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export type SkeletonVariants = VariantProps<typeof skeletonVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./slider.styles";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const sliderVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "slider",
|
|
8
|
+
fill: "slider__fill",
|
|
9
|
+
marks: "slider__marks",
|
|
10
|
+
output: "slider__output",
|
|
11
|
+
thumb: "slider__thumb",
|
|
12
|
+
track: "slider__track",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
sm: { track: "slider--size-sm", thumb: "slider--size-sm" },
|
|
17
|
+
md: { track: "slider--size-md", thumb: "slider--size-md" },
|
|
18
|
+
lg: { track: "slider--size-lg", thumb: "slider--size-lg" },
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
primary: { fill: "slider--primary", thumb: "slider--primary" },
|
|
22
|
+
secondary: { fill: "slider--secondary", thumb: "slider--secondary" },
|
|
23
|
+
success: { fill: "slider--success", thumb: "slider--success" },
|
|
24
|
+
warning: { fill: "slider--warning", thumb: "slider--warning" },
|
|
25
|
+
danger: { fill: "slider--danger", thumb: "slider--danger" },
|
|
26
|
+
},
|
|
27
|
+
radius: {
|
|
28
|
+
none: { track: "slider--radius-none", thumb: "slider--radius-none" },
|
|
29
|
+
sm: { track: "slider--radius-sm", thumb: "slider--radius-sm" },
|
|
30
|
+
md: { track: "slider--radius-md", thumb: "slider--radius-md" },
|
|
31
|
+
lg: { track: "slider--radius-lg", thumb: "slider--radius-lg" },
|
|
32
|
+
full: { track: "slider--radius-full", thumb: "slider--radius-full" },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
color: "primary",
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export type SliderVariants = VariantProps<typeof sliderVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./spinner.styles";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const spinnerVariants = tv({
|
|
6
|
+
base: "spinner",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
color: "accent",
|
|
9
|
+
size: "md",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
color: {
|
|
13
|
+
accent: "spinner--accent",
|
|
14
|
+
current: "spinner--current",
|
|
15
|
+
danger: "spinner--danger",
|
|
16
|
+
success: "spinner--success",
|
|
17
|
+
warning: "spinner--warning",
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
lg: "spinner--lg",
|
|
21
|
+
md: "spinner--md",
|
|
22
|
+
sm: "spinner--sm",
|
|
23
|
+
xl: "spinner--xl",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type SpinnerVariants = VariantProps<typeof spinnerVariants>;
|