@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,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dropdownVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
menu: "dropdown__menu",
|
|
8
|
+
popover: "dropdown__popover",
|
|
9
|
+
root: "dropdown",
|
|
10
|
+
trigger: "dropdown__trigger",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type DropdownVariants = VariantProps<typeof dropdownVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dropdown.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./empty-state.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./error-message.styles";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const fieldsetVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "fieldset",
|
|
8
|
+
legend: "fieldset__legend",
|
|
9
|
+
fieldGroup: "fieldset__field-group",
|
|
10
|
+
description: "fieldset__description",
|
|
11
|
+
actions: "fieldset__actions",
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
orientation: "vertical",
|
|
15
|
+
isDisabled: false,
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
orientation: {
|
|
19
|
+
vertical: { fieldGroup: "fieldset__field-group--vertical" },
|
|
20
|
+
horizontal: { fieldGroup: "fieldset__field-group--horizontal" },
|
|
21
|
+
},
|
|
22
|
+
isDisabled: {
|
|
23
|
+
false: {},
|
|
24
|
+
true: { base: "fieldset--disabled" },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export type FieldsetVariants = VariantProps<typeof fieldsetVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./fieldset.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./header.styles";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Component variant exports
|
|
2
|
+
export * from "./accordion";
|
|
3
|
+
export * from "./alert";
|
|
4
|
+
export * from "./alert-dialog";
|
|
5
|
+
export * from "./autocomplete";
|
|
6
|
+
export * from "./avatar";
|
|
7
|
+
export * from "./badge";
|
|
8
|
+
export * from "./breadcrumbs";
|
|
9
|
+
export * from "./button";
|
|
10
|
+
export * from "./button-group";
|
|
11
|
+
export * from "./calendar";
|
|
12
|
+
export * from "./calendar-year-picker";
|
|
13
|
+
export * from "./range-calendar";
|
|
14
|
+
export * from "./card";
|
|
15
|
+
export * from "./checkbox";
|
|
16
|
+
export * from "./checkbox-group";
|
|
17
|
+
export * from "./chip";
|
|
18
|
+
export * from "./color-area";
|
|
19
|
+
export * from "./color-field";
|
|
20
|
+
export * from "./color-input-group";
|
|
21
|
+
export * from "./color-picker";
|
|
22
|
+
export * from "./color-slider";
|
|
23
|
+
export * from "./color-swatch";
|
|
24
|
+
export * from "./close-button";
|
|
25
|
+
export * from "./color-swatch-picker";
|
|
26
|
+
export * from "./combo-box";
|
|
27
|
+
export * from "./date-input";
|
|
28
|
+
export * from "./date-picker";
|
|
29
|
+
export * from "./date-range-field";
|
|
30
|
+
export * from "./date-range-picker";
|
|
31
|
+
export * from "./description";
|
|
32
|
+
export * from "./drawer";
|
|
33
|
+
export * from "./collapsible";
|
|
34
|
+
export * from "./collapsible-group";
|
|
35
|
+
export * from "./dropdown";
|
|
36
|
+
export * from "./empty-state";
|
|
37
|
+
export * from "./error-message";
|
|
38
|
+
export * from "./fieldset";
|
|
39
|
+
export * from "./header";
|
|
40
|
+
export * from "./input";
|
|
41
|
+
export * from "./input-otp";
|
|
42
|
+
export * from "./kbd";
|
|
43
|
+
export * from "./label";
|
|
44
|
+
export * from "./link";
|
|
45
|
+
export * from "./list-box";
|
|
46
|
+
export * from "./list-box-item";
|
|
47
|
+
export * from "./list-box-section";
|
|
48
|
+
export * from "./menu";
|
|
49
|
+
export * from "./meter";
|
|
50
|
+
export * from "./progress-bar";
|
|
51
|
+
export * from "./progress-circle";
|
|
52
|
+
export * from "./menu-item";
|
|
53
|
+
export * from "./menu-section";
|
|
54
|
+
export * from "./modal";
|
|
55
|
+
export * from "./number-field";
|
|
56
|
+
export * from "./pagination";
|
|
57
|
+
export * from "./popover";
|
|
58
|
+
export * from "./radio";
|
|
59
|
+
export * from "./radio-group";
|
|
60
|
+
export * from "./scroll-shadow";
|
|
61
|
+
export * from "./select";
|
|
62
|
+
export * from "./separator";
|
|
63
|
+
export * from "./skeleton";
|
|
64
|
+
export * from "./slider";
|
|
65
|
+
export * from "./spinner";
|
|
66
|
+
export * from "./surface";
|
|
67
|
+
export * from "./switch";
|
|
68
|
+
export * from "./switch-group";
|
|
69
|
+
export * from "./table";
|
|
70
|
+
export * from "./tabs";
|
|
71
|
+
export * from "./tag";
|
|
72
|
+
export * from "./tag-group";
|
|
73
|
+
export * from "./text";
|
|
74
|
+
export * from "./textarea";
|
|
75
|
+
export * from "./time-field";
|
|
76
|
+
export * from "./toast";
|
|
77
|
+
export * from "./toggle-button";
|
|
78
|
+
export * from "./toggle-button-group";
|
|
79
|
+
export * from "./toolbar";
|
|
80
|
+
export * from "./tooltip";
|
|
81
|
+
export * from "./aspect-ratio";
|
|
82
|
+
export * from "./splitter";
|
|
83
|
+
export * from "./stepper";
|
|
84
|
+
export * from "./tree";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./input.styles";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const inputVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "input-root",
|
|
8
|
+
mainWrapper: "input__main-wrapper",
|
|
9
|
+
inputWrapper: "input",
|
|
10
|
+
input: "input__input",
|
|
11
|
+
startContent: "input__start-content",
|
|
12
|
+
endContent: "input__end-content",
|
|
13
|
+
label: "input__label",
|
|
14
|
+
clearButton: "input__clear-button",
|
|
15
|
+
passwordToggle: "input__password-toggle",
|
|
16
|
+
helperWrapper: "input__helper-wrapper",
|
|
17
|
+
description: "input__description",
|
|
18
|
+
errorMessage: "input__error-message",
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "flat",
|
|
22
|
+
size: "md",
|
|
23
|
+
color: "default",
|
|
24
|
+
fullWidth: false,
|
|
25
|
+
isInvalid: false,
|
|
26
|
+
isDisabled: false,
|
|
27
|
+
isReadonly: false,
|
|
28
|
+
hasLabel: false,
|
|
29
|
+
labelPlacement: "inside",
|
|
30
|
+
},
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
flat: { inputWrapper: "input--flat" },
|
|
34
|
+
bordered: { inputWrapper: "input--bordered" },
|
|
35
|
+
faded: { inputWrapper: "input--faded" },
|
|
36
|
+
underlined: { inputWrapper: "input--underlined" },
|
|
37
|
+
raised: { inputWrapper: "input--raised" },
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
sm: { inputWrapper: "input--sm" },
|
|
41
|
+
md: {},
|
|
42
|
+
lg: { inputWrapper: "input--lg" },
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
default: { inputWrapper: "input--default" },
|
|
46
|
+
primary: { inputWrapper: "input--primary" },
|
|
47
|
+
secondary: { inputWrapper: "input--secondary" },
|
|
48
|
+
success: { inputWrapper: "input--success" },
|
|
49
|
+
warning: { inputWrapper: "input--warning" },
|
|
50
|
+
danger: { inputWrapper: "input--danger" },
|
|
51
|
+
},
|
|
52
|
+
fullWidth: {
|
|
53
|
+
false: {},
|
|
54
|
+
true: { base: "input-root--full-width", inputWrapper: "input--full-width" },
|
|
55
|
+
},
|
|
56
|
+
isInvalid: {
|
|
57
|
+
false: {},
|
|
58
|
+
true: { base: "input-root--invalid", inputWrapper: "input--invalid" },
|
|
59
|
+
},
|
|
60
|
+
isDisabled: {
|
|
61
|
+
false: {},
|
|
62
|
+
true: { base: "input-root--disabled", inputWrapper: "input--disabled" },
|
|
63
|
+
},
|
|
64
|
+
isReadonly: {
|
|
65
|
+
false: {},
|
|
66
|
+
true: { inputWrapper: "input--readonly" },
|
|
67
|
+
},
|
|
68
|
+
hasLabel: {
|
|
69
|
+
false: {},
|
|
70
|
+
true: {},
|
|
71
|
+
},
|
|
72
|
+
labelPlacement: {
|
|
73
|
+
inside: { base: "input-root--label-inside" },
|
|
74
|
+
outside: { base: "input-root--label-outside" },
|
|
75
|
+
"outside-left": { base: "input-root--label-outside-left" },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
compoundVariants: [
|
|
79
|
+
{
|
|
80
|
+
hasLabel: true,
|
|
81
|
+
labelPlacement: "inside",
|
|
82
|
+
class: { inputWrapper: "input--label-inside" },
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export type InputVariants = VariantProps<typeof inputVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./input-otp.styles";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const inputOTPVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "primary",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "input-otp",
|
|
11
|
+
caret: "input-otp__caret",
|
|
12
|
+
group: "input-otp__group",
|
|
13
|
+
input: "input-otp__input",
|
|
14
|
+
separator: "input-otp__separator",
|
|
15
|
+
slot: "input-otp__slot",
|
|
16
|
+
slotValue: "input-otp__slot-value",
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
primary: {
|
|
21
|
+
base: "input-otp--primary",
|
|
22
|
+
},
|
|
23
|
+
secondary: {
|
|
24
|
+
base: "input-otp--secondary",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type InputOTPVariants = VariantProps<typeof inputOTPVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./kbd.styles";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const kbdVariants = tv({
|
|
6
|
+
defaultVariants: {},
|
|
7
|
+
slots: {
|
|
8
|
+
abbr: "kbd__abbr",
|
|
9
|
+
base: "kbd",
|
|
10
|
+
content: "kbd__content",
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: "kbd--default",
|
|
15
|
+
light: "kbd--light",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export type KbdVariants = VariantProps<typeof kbdVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./label.styles";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const labelVariants = tv({
|
|
6
|
+
base: "label",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
isDisabled: false,
|
|
9
|
+
isInvalid: false,
|
|
10
|
+
isRequired: false,
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
isDisabled: {
|
|
14
|
+
true: "label--disabled",
|
|
15
|
+
},
|
|
16
|
+
isInvalid: {
|
|
17
|
+
true: "label--invalid",
|
|
18
|
+
},
|
|
19
|
+
isRequired: {
|
|
20
|
+
true: "label--required",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export type LabelVariants = VariantProps<typeof labelVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./link.styles";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const linkVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "link",
|
|
8
|
+
icon: "link__icon",
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
color: {
|
|
12
|
+
default: {base: "link--color-default"},
|
|
13
|
+
primary: {base: "link--color-primary"},
|
|
14
|
+
success: {base: "link--color-success"},
|
|
15
|
+
warning: {base: "link--color-warning"},
|
|
16
|
+
danger: {base: "link--color-danger"},
|
|
17
|
+
foreground: {base: "link--color-foreground"},
|
|
18
|
+
},
|
|
19
|
+
underline: {
|
|
20
|
+
none: {base: "link--underline-none"},
|
|
21
|
+
hover: {base: "link--underline-hover"},
|
|
22
|
+
always: {base: "link--underline-always"},
|
|
23
|
+
active: {base: "link--underline-active"},
|
|
24
|
+
focus: {base: "link--underline-focus"},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// Render props that should be excluded from LinkVariants (framework-specific)
|
|
30
|
+
type LinkRenderPropsKeys =
|
|
31
|
+
| "isCurrent"
|
|
32
|
+
| "isHovered"
|
|
33
|
+
| "isPressed"
|
|
34
|
+
| "isFocused"
|
|
35
|
+
| "isFocusVisible"
|
|
36
|
+
| "isDisabled";
|
|
37
|
+
|
|
38
|
+
export type LinkVariants = Omit<VariantProps<typeof linkVariants>, LinkRenderPropsKeys>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list-box.styles";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const listboxVariants = tv({
|
|
6
|
+
base: "list-box",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "default",
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
danger: "list-box--danger",
|
|
13
|
+
default: "list-box--default",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type ListBoxVariants = VariantProps<typeof listboxVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list-box-item.styles";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const listboxItemVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "default",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
indicator: "list-box-item__indicator",
|
|
11
|
+
item: "list-box-item",
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
variant: {
|
|
15
|
+
danger: {
|
|
16
|
+
item: "list-box-item--danger",
|
|
17
|
+
},
|
|
18
|
+
default: {
|
|
19
|
+
item: "list-box-item--default",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export type ListBoxItemVariants = VariantProps<typeof listboxItemVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list-box-section.styles";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const listboxSectionVariants = tv({
|
|
6
|
+
base: "list-box-section",
|
|
7
|
+
slots: {
|
|
8
|
+
label: "list-box-section__label",
|
|
9
|
+
separator: "list-box-section__separator"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type ListBoxSectionVariants = VariantProps<typeof listboxSectionVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./menu.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./menu-item.styles";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const menuItemVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "default",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
indicator: "menu-item__indicator",
|
|
11
|
+
item: "menu-item",
|
|
12
|
+
submenuIndicator: "menu-item__indicator menu-item__indicator--submenu",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
danger: {
|
|
17
|
+
item: "menu-item--danger",
|
|
18
|
+
},
|
|
19
|
+
default: {
|
|
20
|
+
item: "menu-item--default",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type MenuItemVariants = VariantProps<typeof menuItemVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./menu-section.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const menuSectionVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "menu-section",
|
|
8
|
+
label: "menu-section__label",
|
|
9
|
+
separator: "menu-section__separator",
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type MenuSectionVariants = VariantProps<typeof menuSectionVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./meter.styles";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const meterVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
color: "accent",
|
|
8
|
+
size: "md",
|
|
9
|
+
},
|
|
10
|
+
slots: {
|
|
11
|
+
base: "meter",
|
|
12
|
+
fill: "meter__fill",
|
|
13
|
+
output: "meter__output",
|
|
14
|
+
track: "meter__track",
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
color: {
|
|
18
|
+
accent: {
|
|
19
|
+
base: "meter--accent",
|
|
20
|
+
},
|
|
21
|
+
danger: {
|
|
22
|
+
base: "meter--danger",
|
|
23
|
+
},
|
|
24
|
+
default: {
|
|
25
|
+
base: "meter--default",
|
|
26
|
+
},
|
|
27
|
+
success: {
|
|
28
|
+
base: "meter--success",
|
|
29
|
+
},
|
|
30
|
+
warning: {
|
|
31
|
+
base: "meter--warning",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
lg: {
|
|
36
|
+
base: "meter--lg",
|
|
37
|
+
},
|
|
38
|
+
md: {
|
|
39
|
+
base: "meter--md",
|
|
40
|
+
},
|
|
41
|
+
sm: {
|
|
42
|
+
base: "meter--sm",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export type MeterVariants = VariantProps<typeof meterVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./modal.styles";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const modalVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
scroll: "inside",
|
|
8
|
+
size: "md",
|
|
9
|
+
variant: "opaque",
|
|
10
|
+
},
|
|
11
|
+
slots: {
|
|
12
|
+
backdrop: "modal__backdrop",
|
|
13
|
+
body: "modal__body",
|
|
14
|
+
closeTrigger: "modal__close-trigger",
|
|
15
|
+
container: "modal__container",
|
|
16
|
+
dialog: "modal__dialog",
|
|
17
|
+
footer: "modal__footer",
|
|
18
|
+
header: "modal__header",
|
|
19
|
+
heading: "modal__heading",
|
|
20
|
+
icon: "modal__icon",
|
|
21
|
+
trigger: "modal__trigger",
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
scroll: {
|
|
25
|
+
inside: {
|
|
26
|
+
body: "modal__body--scroll-inside",
|
|
27
|
+
dialog: "modal__dialog--scroll-inside",
|
|
28
|
+
},
|
|
29
|
+
outside: {
|
|
30
|
+
body: "modal__body--scroll-outside",
|
|
31
|
+
container: "modal__container--scroll-outside",
|
|
32
|
+
dialog: "modal__dialog--scroll-outside",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
cover: {
|
|
37
|
+
dialog: "modal__dialog--cover",
|
|
38
|
+
},
|
|
39
|
+
full: {
|
|
40
|
+
container: "modal__container--full",
|
|
41
|
+
dialog: "modal__dialog--full",
|
|
42
|
+
},
|
|
43
|
+
lg: {
|
|
44
|
+
dialog: "modal__dialog--lg",
|
|
45
|
+
},
|
|
46
|
+
md: {
|
|
47
|
+
dialog: "modal__dialog--md",
|
|
48
|
+
},
|
|
49
|
+
sm: {
|
|
50
|
+
dialog: "modal__dialog--sm",
|
|
51
|
+
},
|
|
52
|
+
xs: {
|
|
53
|
+
dialog: "modal__dialog--xs",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
variant: {
|
|
57
|
+
blur: {
|
|
58
|
+
backdrop: "modal__backdrop--blur",
|
|
59
|
+
},
|
|
60
|
+
opaque: {
|
|
61
|
+
backdrop: "modal__backdrop--opaque",
|
|
62
|
+
},
|
|
63
|
+
transparent: {
|
|
64
|
+
backdrop: "modal__backdrop--transparent",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export type ModalVariants = VariantProps<typeof modalVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./number-field.styles";
|