@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,65 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const chipVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
color: "default",
|
|
8
|
+
variant: "solid",
|
|
9
|
+
size: "md",
|
|
10
|
+
},
|
|
11
|
+
slots: {
|
|
12
|
+
base: "chip",
|
|
13
|
+
label: "chip__label",
|
|
14
|
+
dot: "chip__dot",
|
|
15
|
+
startContent: "chip__start-content",
|
|
16
|
+
endContent: "chip__end-content",
|
|
17
|
+
closeButton: "chip__close-button",
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
color: {
|
|
21
|
+
accent: {
|
|
22
|
+
base: "chip--accent",
|
|
23
|
+
},
|
|
24
|
+
danger: {
|
|
25
|
+
base: "chip--danger",
|
|
26
|
+
},
|
|
27
|
+
default: {
|
|
28
|
+
base: "chip--default",
|
|
29
|
+
},
|
|
30
|
+
success: {
|
|
31
|
+
base: "chip--success",
|
|
32
|
+
},
|
|
33
|
+
warning: {
|
|
34
|
+
base: "chip--warning",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
size: {
|
|
38
|
+
lg: {
|
|
39
|
+
base: "chip--lg",
|
|
40
|
+
},
|
|
41
|
+
md: {
|
|
42
|
+
base: "chip--md",
|
|
43
|
+
},
|
|
44
|
+
sm: {
|
|
45
|
+
base: "chip--sm",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
variant: {
|
|
49
|
+
solid: {
|
|
50
|
+
base: "chip--solid",
|
|
51
|
+
},
|
|
52
|
+
soft: {
|
|
53
|
+
base: "chip--soft",
|
|
54
|
+
},
|
|
55
|
+
outlined: {
|
|
56
|
+
base: "chip--outlined",
|
|
57
|
+
},
|
|
58
|
+
text: {
|
|
59
|
+
base: "chip--text",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export type ChipVariants = VariantProps<typeof chipVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./chip.styles";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const closeButtonVariants = tv({
|
|
6
|
+
base: "close-button",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "default",
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "close-button--default",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export type CloseButtonVariants = VariantProps<typeof closeButtonVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./close-button.styles";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const collapsibleVariants = tv({
|
|
6
|
+
defaultVariants: {},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "collapsible",
|
|
9
|
+
body: "collapsible__body",
|
|
10
|
+
bodyInner: "collapsible__body-inner",
|
|
11
|
+
content: "collapsible__content",
|
|
12
|
+
heading: "collapsible__heading",
|
|
13
|
+
indicator: "collapsible__indicator",
|
|
14
|
+
trigger: "collapsible__trigger",
|
|
15
|
+
},
|
|
16
|
+
variants: {},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// Render props that should be excluded from CollapsibleVariants (framework-specific)
|
|
20
|
+
type CollapsibleRenderPropsKeys = "isExpanded" | "isDisabled" | "state";
|
|
21
|
+
|
|
22
|
+
export type CollapsibleVariants = Omit<
|
|
23
|
+
VariantProps<typeof collapsibleVariants>,
|
|
24
|
+
CollapsibleRenderPropsKeys
|
|
25
|
+
>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./collapsible.styles";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const collapsibleGroupVariants = tv({
|
|
6
|
+
defaultVariants: {},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "collapsible-group",
|
|
9
|
+
},
|
|
10
|
+
variants: {},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type CollapsibleGroupVariants = VariantProps<typeof collapsibleGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./collapsible-group.styles";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorAreaVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
showDots: false,
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "color-area",
|
|
11
|
+
thumb: "color-area__thumb",
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
showDots: {
|
|
15
|
+
false: {},
|
|
16
|
+
true: {
|
|
17
|
+
base: "color-area--show-dots",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export type ColorAreaVariants = VariantProps<typeof colorAreaVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-area.styles";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorFieldVariants = tv({
|
|
6
|
+
base: "color-field",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
fullWidth: false,
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
fullWidth: {
|
|
12
|
+
false: "",
|
|
13
|
+
true: "color-field--full-width",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type ColorFieldVariants = VariantProps<typeof colorFieldVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-field.styles";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorInputGroupVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
fullWidth: false,
|
|
8
|
+
variant: "primary",
|
|
9
|
+
},
|
|
10
|
+
slots: {
|
|
11
|
+
base: "color-input-group",
|
|
12
|
+
input: "color-input-group__input",
|
|
13
|
+
prefix: "color-input-group__prefix",
|
|
14
|
+
suffix: "color-input-group__suffix",
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
fullWidth: {
|
|
18
|
+
false: {},
|
|
19
|
+
true: {
|
|
20
|
+
base: "color-input-group--full-width",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
primary: {
|
|
25
|
+
base: "color-input-group--primary",
|
|
26
|
+
},
|
|
27
|
+
secondary: {
|
|
28
|
+
base: "color-input-group--secondary",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export type ColorInputGroupVariants = VariantProps<typeof colorInputGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-input-group.styles";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorPickerVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "color-picker",
|
|
8
|
+
popover: "color-picker__popover",
|
|
9
|
+
trigger: "color-picker__trigger",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type ColorPickerVariants = VariantProps<typeof colorPickerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-picker.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorSliderVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "color-slider",
|
|
8
|
+
output: "color-slider__output",
|
|
9
|
+
thumb: "color-slider__thumb",
|
|
10
|
+
track: "color-slider__track",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type ColorSliderVariants = VariantProps<typeof colorSliderVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-slider.styles";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorSwatchVariants = tv({
|
|
6
|
+
base: "color-swatch",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
shape: "circle",
|
|
9
|
+
size: "md",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
shape: {
|
|
13
|
+
circle: "color-swatch--circle",
|
|
14
|
+
square: "color-swatch--square",
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
lg: "color-swatch--lg",
|
|
18
|
+
md: "color-swatch--md",
|
|
19
|
+
sm: "color-swatch--sm",
|
|
20
|
+
xl: "color-swatch--xl",
|
|
21
|
+
xs: "color-swatch--xs",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type ColorSwatchVariants = VariantProps<typeof colorSwatchVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-swatch.styles";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const colorSwatchPickerVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
layout: "grid",
|
|
8
|
+
size: "md",
|
|
9
|
+
variant: "circle",
|
|
10
|
+
},
|
|
11
|
+
slots: {
|
|
12
|
+
base: "color-swatch-picker",
|
|
13
|
+
indicator: "color-swatch-picker__indicator",
|
|
14
|
+
item: "color-swatch-picker__item",
|
|
15
|
+
swatch: "color-swatch-picker__swatch",
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
layout: {
|
|
19
|
+
grid: {
|
|
20
|
+
base: "color-swatch-picker--grid",
|
|
21
|
+
},
|
|
22
|
+
stack: {
|
|
23
|
+
base: "color-swatch-picker--stack",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
lg: {
|
|
28
|
+
base: "color-swatch-picker--lg",
|
|
29
|
+
},
|
|
30
|
+
md: {
|
|
31
|
+
base: "color-swatch-picker--md",
|
|
32
|
+
},
|
|
33
|
+
sm: {
|
|
34
|
+
base: "color-swatch-picker--sm",
|
|
35
|
+
},
|
|
36
|
+
xl: {
|
|
37
|
+
base: "color-swatch-picker--xl",
|
|
38
|
+
},
|
|
39
|
+
xs: {
|
|
40
|
+
base: "color-swatch-picker--xs",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
variant: {
|
|
44
|
+
circle: {
|
|
45
|
+
base: "color-swatch-picker--circle",
|
|
46
|
+
},
|
|
47
|
+
square: {
|
|
48
|
+
base: "color-swatch-picker--square",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export type ColorSwatchPickerVariants = VariantProps<typeof colorSwatchPickerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-swatch-picker.styles";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const comboBoxVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
fullWidth: false,
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "combo-box",
|
|
11
|
+
inputGroup: "combo-box__input-group",
|
|
12
|
+
popover: "combo-box__popover",
|
|
13
|
+
trigger: "combo-box__trigger",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
fullWidth: {
|
|
17
|
+
false: {},
|
|
18
|
+
true: {
|
|
19
|
+
base: "combo-box--full-width",
|
|
20
|
+
inputGroup: "combo-box__input-group--full-width",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type ComboBoxVariants = VariantProps<typeof comboBoxVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./combo-box.styles";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dateInputVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "date-input-root",
|
|
8
|
+
mainWrapper: "date-input__main-wrapper",
|
|
9
|
+
inputWrapper: "date-input",
|
|
10
|
+
segmentList: "date-input__segment-list",
|
|
11
|
+
segment: "date-input__segment",
|
|
12
|
+
startContent: "date-input__start-content",
|
|
13
|
+
endContent: "date-input__end-content",
|
|
14
|
+
label: "date-input__label",
|
|
15
|
+
helperWrapper: "date-input__helper-wrapper",
|
|
16
|
+
description: "date-input__description",
|
|
17
|
+
errorMessage: "date-input__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: "date-input--flat" },
|
|
33
|
+
bordered: { inputWrapper: "date-input--bordered" },
|
|
34
|
+
faded: { inputWrapper: "date-input--faded" },
|
|
35
|
+
underlined: { inputWrapper: "date-input--underlined" },
|
|
36
|
+
raised: { inputWrapper: "date-input--raised" },
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
sm: { inputWrapper: "date-input--sm" },
|
|
40
|
+
md: {},
|
|
41
|
+
lg: { inputWrapper: "date-input--lg" },
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
default: { inputWrapper: "date-input--default" },
|
|
45
|
+
primary: { inputWrapper: "date-input--primary" },
|
|
46
|
+
secondary: { inputWrapper: "date-input--secondary" },
|
|
47
|
+
success: { inputWrapper: "date-input--success" },
|
|
48
|
+
warning: { inputWrapper: "date-input--warning" },
|
|
49
|
+
danger: { inputWrapper: "date-input--danger" },
|
|
50
|
+
},
|
|
51
|
+
fullWidth: {
|
|
52
|
+
false: {},
|
|
53
|
+
true: { base: "date-input-root--full-width", inputWrapper: "date-input--full-width" },
|
|
54
|
+
},
|
|
55
|
+
isInvalid: {
|
|
56
|
+
false: {},
|
|
57
|
+
true: { base: "date-input-root--invalid", inputWrapper: "date-input--invalid" },
|
|
58
|
+
},
|
|
59
|
+
isDisabled: {
|
|
60
|
+
false: {},
|
|
61
|
+
true: { base: "date-input-root--disabled", inputWrapper: "date-input--disabled" },
|
|
62
|
+
},
|
|
63
|
+
isReadonly: {
|
|
64
|
+
false: {},
|
|
65
|
+
true: { inputWrapper: "date-input--readonly" },
|
|
66
|
+
},
|
|
67
|
+
hasLabel: {
|
|
68
|
+
false: {},
|
|
69
|
+
true: {},
|
|
70
|
+
},
|
|
71
|
+
labelPlacement: {
|
|
72
|
+
inside: { base: "date-input-root--label-inside" },
|
|
73
|
+
outside: { base: "date-input-root--label-outside" },
|
|
74
|
+
"outside-left": { base: "date-input-root--label-outside-left" },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
compoundVariants: [
|
|
78
|
+
{
|
|
79
|
+
hasLabel: true,
|
|
80
|
+
labelPlacement: "inside",
|
|
81
|
+
class: { inputWrapper: "date-input--label-inside" },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export type DateInputVariants = VariantProps<typeof dateInputVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-input.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const datePickerVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "date-picker",
|
|
8
|
+
popover: "date-picker__popover",
|
|
9
|
+
trigger: "date-picker__trigger",
|
|
10
|
+
triggerIndicator: "date-picker__trigger-indicator",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type DatePickerVariants = VariantProps<typeof datePickerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-picker.styles";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dateRangeFieldVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "date-range-field-root",
|
|
8
|
+
mainWrapper: "date-range-field__main-wrapper",
|
|
9
|
+
inputWrapper: "date-range-field",
|
|
10
|
+
segmentList: "date-range-field__segment-list",
|
|
11
|
+
segment: "date-range-field__segment",
|
|
12
|
+
separator: "date-range-field__separator",
|
|
13
|
+
startContent: "date-range-field__start-content",
|
|
14
|
+
endContent: "date-range-field__end-content",
|
|
15
|
+
label: "date-range-field__label",
|
|
16
|
+
helperWrapper: "date-range-field__helper-wrapper",
|
|
17
|
+
description: "date-range-field__description",
|
|
18
|
+
errorMessage: "date-range-field__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: "date-range-field--flat" },
|
|
34
|
+
bordered: { inputWrapper: "date-range-field--bordered" },
|
|
35
|
+
faded: { inputWrapper: "date-range-field--faded" },
|
|
36
|
+
underlined: { inputWrapper: "date-range-field--underlined" },
|
|
37
|
+
raised: { inputWrapper: "date-range-field--raised" },
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
sm: { inputWrapper: "date-range-field--sm" },
|
|
41
|
+
md: {},
|
|
42
|
+
lg: { inputWrapper: "date-range-field--lg" },
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
default: { inputWrapper: "date-range-field--default" },
|
|
46
|
+
primary: { inputWrapper: "date-range-field--primary" },
|
|
47
|
+
secondary: { inputWrapper: "date-range-field--secondary" },
|
|
48
|
+
success: { inputWrapper: "date-range-field--success" },
|
|
49
|
+
warning: { inputWrapper: "date-range-field--warning" },
|
|
50
|
+
danger: { inputWrapper: "date-range-field--danger" },
|
|
51
|
+
},
|
|
52
|
+
fullWidth: {
|
|
53
|
+
false: {},
|
|
54
|
+
true: { base: "date-range-field-root--full-width", inputWrapper: "date-range-field--full-width" },
|
|
55
|
+
},
|
|
56
|
+
isInvalid: {
|
|
57
|
+
false: {},
|
|
58
|
+
true: { base: "date-range-field-root--invalid", inputWrapper: "date-range-field--invalid" },
|
|
59
|
+
},
|
|
60
|
+
isDisabled: {
|
|
61
|
+
false: {},
|
|
62
|
+
true: { base: "date-range-field-root--disabled", inputWrapper: "date-range-field--disabled" },
|
|
63
|
+
},
|
|
64
|
+
isReadonly: {
|
|
65
|
+
false: {},
|
|
66
|
+
true: { inputWrapper: "date-range-field--readonly" },
|
|
67
|
+
},
|
|
68
|
+
hasLabel: {
|
|
69
|
+
false: {},
|
|
70
|
+
true: {},
|
|
71
|
+
},
|
|
72
|
+
labelPlacement: {
|
|
73
|
+
inside: { base: "date-range-field-root--label-inside" },
|
|
74
|
+
outside: { base: "date-range-field-root--label-outside" },
|
|
75
|
+
"outside-left": { base: "date-range-field-root--label-outside-left" },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
compoundVariants: [
|
|
79
|
+
{
|
|
80
|
+
hasLabel: true,
|
|
81
|
+
labelPlacement: "inside",
|
|
82
|
+
class: { inputWrapper: "date-range-field--label-inside" },
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export type DateRangeFieldVariants = VariantProps<typeof dateRangeFieldVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-range-field.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dateRangePickerVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "date-range-picker",
|
|
8
|
+
popover: "date-range-picker__popover",
|
|
9
|
+
trigger: "date-range-picker__trigger",
|
|
10
|
+
triggerIndicator: "date-range-picker__trigger-indicator",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type DateRangePickerVariants = VariantProps<typeof dateRangePickerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-range-picker.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./description.styles";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const drawerVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
placement: "bottom",
|
|
8
|
+
variant: "opaque",
|
|
9
|
+
},
|
|
10
|
+
slots: {
|
|
11
|
+
backdrop: "drawer__backdrop",
|
|
12
|
+
body: "drawer__body",
|
|
13
|
+
closeTrigger: "drawer__close-trigger",
|
|
14
|
+
content: "drawer__content",
|
|
15
|
+
dialog: "drawer__dialog",
|
|
16
|
+
footer: "drawer__footer",
|
|
17
|
+
handle: "drawer__handle",
|
|
18
|
+
header: "drawer__header",
|
|
19
|
+
heading: "drawer__heading",
|
|
20
|
+
trigger: "drawer__trigger",
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
placement: {
|
|
24
|
+
bottom: {
|
|
25
|
+
content: "drawer__content--bottom",
|
|
26
|
+
dialog: "drawer__dialog--bottom",
|
|
27
|
+
},
|
|
28
|
+
left: {
|
|
29
|
+
content: "drawer__content--left",
|
|
30
|
+
dialog: "drawer__dialog--left",
|
|
31
|
+
},
|
|
32
|
+
right: {
|
|
33
|
+
content: "drawer__content--right",
|
|
34
|
+
dialog: "drawer__dialog--right",
|
|
35
|
+
},
|
|
36
|
+
top: {
|
|
37
|
+
content: "drawer__content--top",
|
|
38
|
+
dialog: "drawer__dialog--top",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
variant: {
|
|
42
|
+
blur: {
|
|
43
|
+
backdrop: "drawer__backdrop--blur",
|
|
44
|
+
},
|
|
45
|
+
opaque: {
|
|
46
|
+
backdrop: "drawer__backdrop--opaque",
|
|
47
|
+
},
|
|
48
|
+
transparent: {
|
|
49
|
+
backdrop: "drawer__backdrop--transparent",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export type DrawerVariants = VariantProps<typeof drawerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./drawer.styles";
|