@arobo/styles 1.0.1
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/README.md +3 -0
- package/dist/aroboui.min.css +2 -0
- package/dist/base/base.css +8 -0
- package/dist/components/button/button.styles.d.ts +70 -0
- package/dist/components/button/button.styles.d.ts.map +1 -0
- package/dist/components/button/button.styles.js +36 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/button-group.styles.d.ts +19 -0
- package/dist/components/button-group/button-group.styles.d.ts.map +1 -0
- package/dist/components/button-group/button-group.styles.js +16 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/button-group.css +78 -0
- package/dist/components/button.css +158 -0
- package/dist/components/calendar/calendar.styles.d.ts +40 -0
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -0
- package/dist/components/calendar/calendar.styles.js +25 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/calendar.css +35 -0
- package/dist/components/card/card.styles.d.ts +71 -0
- package/dist/components/card/card.styles.d.ts.map +1 -0
- package/dist/components/card/card.styles.js +33 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card.css +50 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +46 -0
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.styles.js +25 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +34 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +22 -0
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/checkbox-group/index.d.ts.map +1 -0
- package/dist/components/checkbox-group/index.js +1 -0
- package/dist/components/checkbox-group.css +7 -0
- package/dist/components/checkbox.css +269 -0
- package/dist/components/close-button/close-button.styles.d.ts +16 -0
- package/dist/components/close-button/close-button.styles.d.ts.map +1 -0
- package/dist/components/close-button/close-button.styles.js +15 -0
- package/dist/components/close-button/index.d.ts +2 -0
- package/dist/components/close-button/index.d.ts.map +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/close-button.css +65 -0
- package/dist/components/combobox/combobox.styles.d.ts +43 -0
- package/dist/components/combobox/combobox.styles.d.ts.map +1 -0
- package/dist/components/combobox/combobox.styles.js +24 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox.css +169 -0
- package/dist/components/date-field/date-field.styles.d.ts +19 -0
- package/dist/components/date-field/date-field.styles.d.ts.map +1 -0
- package/dist/components/date-field/date-field.styles.js +16 -0
- package/dist/components/date-field/index.d.ts +2 -0
- package/dist/components/date-field/index.d.ts.map +1 -0
- package/dist/components/date-field/index.js +1 -0
- package/dist/components/date-field.css +24 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts +43 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -0
- package/dist/components/date-input-group/date-input-group.styles.js +24 -0
- package/dist/components/date-input-group/index.d.ts +2 -0
- package/dist/components/date-input-group/index.d.ts.map +1 -0
- package/dist/components/date-input-group/index.js +1 -0
- package/dist/components/date-input-group.css +116 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +37 -0
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.styles.js +11 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker.css +32 -0
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts +49 -0
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -0
- package/dist/components/date-range-picker/date-range-picker.styles.js +28 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/components/date-range-picker/index.js +1 -0
- package/dist/components/date-range-picker.css +28 -0
- package/dist/components/description/description.styles.d.ts +4 -0
- package/dist/components/description/description.styles.d.ts.map +1 -0
- package/dist/components/description/description.styles.js +7 -0
- package/dist/components/description/index.d.ts +2 -0
- package/dist/components/description/index.d.ts.map +1 -0
- package/dist/components/description/index.js +1 -0
- package/dist/components/description.css +4 -0
- package/dist/components/error-message/error-message.styles.d.ts +4 -0
- package/dist/components/error-message/error-message.styles.d.ts.map +1 -0
- package/dist/components/error-message/error-message.styles.js +7 -0
- package/dist/components/error-message/index.d.ts +2 -0
- package/dist/components/error-message/index.d.ts.map +1 -0
- package/dist/components/error-message/index.js +1 -0
- package/dist/components/error-message.css +13 -0
- package/dist/components/field-error/field-error.styles.d.ts +4 -0
- package/dist/components/field-error/field-error.styles.d.ts.map +1 -0
- package/dist/components/field-error/field-error.styles.js +7 -0
- package/dist/components/field-error/index.d.ts +2 -0
- package/dist/components/field-error/index.d.ts.map +1 -0
- package/dist/components/field-error/index.js +1 -0
- package/dist/components/field-error.css +13 -0
- package/dist/components/field-group/field-group.styles.d.ts +69 -0
- package/dist/components/field-group/field-group.styles.d.ts.map +1 -0
- package/dist/components/field-group/field-group.styles.js +25 -0
- package/dist/components/field-group/index.d.ts +2 -0
- package/dist/components/field-group/index.d.ts.map +1 -0
- package/dist/components/field-group/index.js +1 -0
- package/dist/components/field-group.css +7 -0
- package/dist/components/index.css +23 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input.styles.d.ts +31 -0
- package/dist/components/input/input.styles.d.ts.map +1 -0
- package/dist/components/input/input.styles.js +21 -0
- package/dist/components/input.css +72 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/index.js +1 -0
- package/dist/components/label/label.styles.d.ts +34 -0
- package/dist/components/label/label.styles.d.ts.map +1 -0
- package/dist/components/label/label.styles.js +23 -0
- package/dist/components/label.css +31 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.styles.d.ts +46 -0
- package/dist/components/popover/popover.styles.d.ts.map +1 -0
- package/dist/components/popover/popover.styles.js +12 -0
- package/dist/components/popover.css +91 -0
- package/dist/components/range-calendar/index.d.ts +2 -0
- package/dist/components/range-calendar/index.d.ts.map +1 -0
- package/dist/components/range-calendar/index.js +1 -0
- package/dist/components/range-calendar/range-calendar.styles.d.ts +43 -0
- package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -0
- package/dist/components/range-calendar/range-calendar.styles.js +26 -0
- package/dist/components/range-calendar.css +83 -0
- package/dist/components/surface/index.d.ts +2 -0
- package/dist/components/surface/index.d.ts.map +1 -0
- package/dist/components/surface/index.js +1 -0
- package/dist/components/surface/surface.styles.d.ts +37 -0
- package/dist/components/surface/surface.styles.d.ts.map +1 -0
- package/dist/components/surface/surface.styles.js +35 -0
- package/dist/components/surface.css +36 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/index.d.ts.map +1 -0
- package/dist/components/text-field/index.js +1 -0
- package/dist/components/text-field/text-field.styles.d.ts +19 -0
- package/dist/components/text-field/text-field.styles.d.ts.map +1 -0
- package/dist/components/text-field/text-field.styles.js +16 -0
- package/dist/components/text-field.css +26 -0
- package/dist/index.css +17 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/themes/default/index.css +4 -0
- package/dist/themes/default/variables.css +157 -0
- package/dist/themes/shared/theme.css +338 -0
- package/dist/utilities/index.css +45 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/state.d.ts +17 -0
- package/dist/utils/state.d.ts.map +1 -0
- package/dist/utils/state.js +13 -0
- package/package.json +53 -0
- package/src/components/button/button.styles.ts +38 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/button-group.styles.ts +18 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/calendar/calendar.styles.ts +27 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/card/card.styles.ts +36 -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 +24 -0
- package/src/components/checkbox-group/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/combobox/combobox.styles.ts +26 -0
- package/src/components/combobox/index.ts +1 -0
- package/src/components/date-field/date-field.styles.ts +18 -0
- package/src/components/date-field/index.ts +1 -0
- package/src/components/date-input-group/date-input-group.styles.ts +28 -0
- package/src/components/date-input-group/index.ts +1 -0
- package/src/components/date-picker/date-picker.styles.ts +13 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/date-range-picker/date-range-picker.styles.ts +32 -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/error-message/error-message.styles.ts +9 -0
- package/src/components/error-message/index.ts +1 -0
- package/src/components/field-error/field-error.styles.ts +9 -0
- package/src/components/field-error/index.ts +1 -0
- package/src/components/field-group/field-group.styles.ts +29 -0
- package/src/components/field-group/index.ts +1 -0
- package/src/components/index.ts +23 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.styles.ts +23 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.styles.ts +25 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.styles.ts +14 -0
- package/src/components/range-calendar/index.ts +1 -0
- package/src/components/range-calendar/range-calendar.styles.ts +28 -0
- package/src/components/surface/index.ts +1 -0
- package/src/components/surface/surface.styles.ts +37 -0
- package/src/components/text-field/index.ts +1 -0
- package/src/components/text-field/text-field.styles.ts +18 -0
- package/src/index.ts +4 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/state.ts +11 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const calendarVariants = tv({
|
|
6
|
+
base: "calendar",
|
|
7
|
+
slots: {
|
|
8
|
+
cell: "calendar__cell",
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
variant: "primary",
|
|
12
|
+
size: "md",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
primary: "calendar--primary",
|
|
17
|
+
secondary: "calendar--secondary",
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
sm: "calendar--sm",
|
|
21
|
+
md: "calendar--md",
|
|
22
|
+
lg: "calendar--lg",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export type CalendarVariants = VariantProps<typeof calendarVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./calendar.styles";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {VariantProps} from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
const cardVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "default",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "card",
|
|
11
|
+
content: "card__content",
|
|
12
|
+
description: "card__description",
|
|
13
|
+
footer: "card__footer",
|
|
14
|
+
header: "card__header",
|
|
15
|
+
title: "card__title",
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
default: {
|
|
20
|
+
base: "card--default",
|
|
21
|
+
},
|
|
22
|
+
secondary: {
|
|
23
|
+
base: "card--secondary",
|
|
24
|
+
},
|
|
25
|
+
tertiary: {
|
|
26
|
+
base: "card--tertiary",
|
|
27
|
+
},
|
|
28
|
+
transparent: {
|
|
29
|
+
base: "card--transparent",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export {cardVariants};
|
|
36
|
+
export type CardVariants = VariantProps<typeof cardVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./card.styles";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const checkboxVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
variant: "primary",
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "checkbox",
|
|
11
|
+
content: "checkbox__content",
|
|
12
|
+
control: "checkbox__control",
|
|
13
|
+
indicator: "checkbox__indicator",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
primary: {
|
|
18
|
+
base: "checkbox--primary",
|
|
19
|
+
},
|
|
20
|
+
secondary: {
|
|
21
|
+
base: "checkbox--secondary",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export type CheckboxVariants = VariantProps<typeof checkboxVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./checkbox.styles";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const checkboxGroupVariants = tv({
|
|
6
|
+
base: "checkbox-group",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "primary",
|
|
9
|
+
size: "md",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
primary: "checkbox-group--primary",
|
|
14
|
+
secondary: "checkbox-group--secondary",
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
sm: "checkbox-group--sm",
|
|
18
|
+
md: "checkbox-group--md",
|
|
19
|
+
lg: "checkbox-group--lg",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export type CheckboxGroupVariants = VariantProps<typeof checkboxGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./checkbox-group.styles";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
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,26 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const comboboxVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
fullWidth: false,
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "combobox",
|
|
11
|
+
inputGroup: "combobox__input-group",
|
|
12
|
+
popover: "combobox__popover",
|
|
13
|
+
trigger: "combobox__trigger",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
fullWidth: {
|
|
17
|
+
false: {},
|
|
18
|
+
true: {
|
|
19
|
+
base: "combobox--full-width",
|
|
20
|
+
inputGroup: "combobox__input-group--full-width",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type ComboBoxVariants = VariantProps<typeof comboboxVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./combobox.styles";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dateFieldVariants = tv({
|
|
6
|
+
base: "date-field",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
fullWidth: false,
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
fullWidth: {
|
|
12
|
+
false: "",
|
|
13
|
+
true: "date-field--full-width",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type DateFieldVariants = VariantProps<typeof dateFieldVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-field.styles";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dateInputGroupVariants = tv({
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
fullWidth: false,
|
|
8
|
+
},
|
|
9
|
+
slots: {
|
|
10
|
+
base: "date-input-group",
|
|
11
|
+
input: "date-input-group__input",
|
|
12
|
+
prefix: "date-input-group__prefix",
|
|
13
|
+
segment: "date-input-group__segment",
|
|
14
|
+
suffix: "date-input-group__suffix",
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
fullWidth: {
|
|
18
|
+
false: {},
|
|
19
|
+
true: {
|
|
20
|
+
base: "date-input-group--full-width",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type DateInputGroupVariants = VariantProps<
|
|
27
|
+
typeof dateInputGroupVariants
|
|
28
|
+
>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-input-group.styles";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const datePickerVariants = tv({
|
|
6
|
+
base: "date-picker",
|
|
7
|
+
slots: {
|
|
8
|
+
trigger: "date-picker__trigger",
|
|
9
|
+
input: "date-picker__input",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type DatePickerVariants = VariantProps<typeof datePickerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-picker.styles";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const dateRangePickerVariants = tv({
|
|
6
|
+
base: "date-range-picker",
|
|
7
|
+
slots: {
|
|
8
|
+
trigger: "date-range-picker__trigger",
|
|
9
|
+
inputGroup: "date-range-picker__input-group",
|
|
10
|
+
input: "date-range-picker__input",
|
|
11
|
+
separator: "date-range-picker__separator",
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "primary",
|
|
15
|
+
size: "md",
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
primary: "date-range-picker--primary",
|
|
20
|
+
secondary: "date-range-picker--secondary",
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
sm: "date-range-picker--sm",
|
|
24
|
+
md: "date-range-picker--md",
|
|
25
|
+
lg: "date-range-picker--lg",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type DateRangePickerVariants = VariantProps<
|
|
31
|
+
typeof dateRangePickerVariants
|
|
32
|
+
>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./date-range-picker.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./description.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./error-message.styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./field-error.styles";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { focusRing } from "../../utils";
|
|
2
|
+
import type { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
import { tv } from "tailwind-variants";
|
|
5
|
+
|
|
6
|
+
export const fieldBorderStyles = tv({
|
|
7
|
+
base: "transition",
|
|
8
|
+
variants: {
|
|
9
|
+
isFocusWithin: {
|
|
10
|
+
false:
|
|
11
|
+
"border-neutral-300 hover:border-neutral-400 dark:border-neutral-600 dark:hover:border-neutral-500 forced-colors:border-[ButtonBorder]",
|
|
12
|
+
true: "border-neutral-600 dark:border-neutral-300 forced-colors:border-[Highlight]",
|
|
13
|
+
},
|
|
14
|
+
isInvalid: {
|
|
15
|
+
true: "border-red-600 dark:border-red-600 forced-colors:border-[Mark]",
|
|
16
|
+
},
|
|
17
|
+
isDisabled: {
|
|
18
|
+
true: "border-neutral-200 dark:border-neutral-700 forced-colors:border-[GrayText]",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const fieldGroupVariants = tv({
|
|
24
|
+
extend: focusRing,
|
|
25
|
+
base: "field-group",
|
|
26
|
+
variants: fieldBorderStyles.variants,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export type FieldGroupVariants = VariantProps<typeof fieldGroupVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./field-group.styles";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./button";
|
|
2
|
+
export * from "./button-group";
|
|
3
|
+
export * from "./calendar";
|
|
4
|
+
export * from "./card";
|
|
5
|
+
export * from "./checkbox";
|
|
6
|
+
export * from "./checkbox-group";
|
|
7
|
+
export * from "./close-button";
|
|
8
|
+
export * from "./combobox";
|
|
9
|
+
export * from "./date-field";
|
|
10
|
+
export * from "./date-input-group";
|
|
11
|
+
export * from "./date-picker";
|
|
12
|
+
export * from "./date-range-picker";
|
|
13
|
+
export * from "./description";
|
|
14
|
+
export * from "./error-message";
|
|
15
|
+
export * from "./field-error";
|
|
16
|
+
export * from "./field-group";
|
|
17
|
+
export * from "./input";
|
|
18
|
+
export * from "./label";
|
|
19
|
+
export * from "./popover";
|
|
20
|
+
export * from "./range-calendar";
|
|
21
|
+
export * from "./surface";
|
|
22
|
+
|
|
23
|
+
export * from "./text-field";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./input.styles";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const inputVariants = tv({
|
|
6
|
+
base: "input",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
fullWidth: false,
|
|
9
|
+
variant: "primary",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
fullWidth: {
|
|
13
|
+
false: "",
|
|
14
|
+
true: "input--full-width",
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
primary: "input--primary",
|
|
18
|
+
secondary: "input--secondary",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export type InputVariants = VariantProps<typeof inputVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./label.styles";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
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 "./popover.styles";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
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 "./range-calendar.styles";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const rangeCalendarVariants = tv({
|
|
6
|
+
base: "range-calendar",
|
|
7
|
+
slots: {
|
|
8
|
+
cell: "range-calendar__cell",
|
|
9
|
+
grid: "range-calendar__grid",
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
variant: "primary",
|
|
13
|
+
size: "md",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
primary: "range-calendar--primary",
|
|
18
|
+
secondary: "range-calendar--secondary",
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
sm: "range-calendar--sm",
|
|
22
|
+
md: "range-calendar--md",
|
|
23
|
+
lg: "range-calendar--lg",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type RangeCalendarVariants = VariantProps<typeof rangeCalendarVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./surface.styles";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const surfaceVariants = tv({
|
|
6
|
+
base: "surface",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
variant: "default",
|
|
9
|
+
effect: "none",
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
effect: {
|
|
13
|
+
none: "",
|
|
14
|
+
liquid: "surface--liquid",
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
default: "surface--default",
|
|
18
|
+
secondary: "surface--secondary",
|
|
19
|
+
tertiary: "surface--tertiary",
|
|
20
|
+
transparent: "surface--transparent",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
compoundVariants: [
|
|
24
|
+
{
|
|
25
|
+
effect: "liquid",
|
|
26
|
+
variant: "transparent",
|
|
27
|
+
class: "surface--liquid-transparent",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
effect: "liquid",
|
|
31
|
+
variant: "default",
|
|
32
|
+
class: "surface--liquid-default",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export type SurfaceVariants = VariantProps<typeof surfaceVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./text-field.styles";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const textFieldVariants = tv({
|
|
6
|
+
base: "text-field",
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
fullWidth: false,
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
fullWidth: {
|
|
12
|
+
false: "",
|
|
13
|
+
true: "text-field--full-width",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type TextFieldVariants = VariantProps<typeof textFieldVariants>;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./state";
|