@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.
Files changed (222) hide show
  1. package/README.md +3 -0
  2. package/dist/aroboui.min.css +2 -0
  3. package/dist/base/base.css +8 -0
  4. package/dist/components/button/button.styles.d.ts +70 -0
  5. package/dist/components/button/button.styles.d.ts.map +1 -0
  6. package/dist/components/button/button.styles.js +36 -0
  7. package/dist/components/button/index.d.ts +2 -0
  8. package/dist/components/button/index.d.ts.map +1 -0
  9. package/dist/components/button/index.js +1 -0
  10. package/dist/components/button-group/button-group.styles.d.ts +19 -0
  11. package/dist/components/button-group/button-group.styles.d.ts.map +1 -0
  12. package/dist/components/button-group/button-group.styles.js +16 -0
  13. package/dist/components/button-group/index.d.ts +2 -0
  14. package/dist/components/button-group/index.d.ts.map +1 -0
  15. package/dist/components/button-group/index.js +1 -0
  16. package/dist/components/button-group.css +78 -0
  17. package/dist/components/button.css +158 -0
  18. package/dist/components/calendar/calendar.styles.d.ts +40 -0
  19. package/dist/components/calendar/calendar.styles.d.ts.map +1 -0
  20. package/dist/components/calendar/calendar.styles.js +25 -0
  21. package/dist/components/calendar/index.d.ts +2 -0
  22. package/dist/components/calendar/index.d.ts.map +1 -0
  23. package/dist/components/calendar/index.js +1 -0
  24. package/dist/components/calendar.css +35 -0
  25. package/dist/components/card/card.styles.d.ts +71 -0
  26. package/dist/components/card/card.styles.d.ts.map +1 -0
  27. package/dist/components/card/card.styles.js +33 -0
  28. package/dist/components/card/index.d.ts +2 -0
  29. package/dist/components/card/index.d.ts.map +1 -0
  30. package/dist/components/card/index.js +1 -0
  31. package/dist/components/card.css +50 -0
  32. package/dist/components/checkbox/checkbox.styles.d.ts +46 -0
  33. package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
  34. package/dist/components/checkbox/checkbox.styles.js +25 -0
  35. package/dist/components/checkbox/index.d.ts +2 -0
  36. package/dist/components/checkbox/index.d.ts.map +1 -0
  37. package/dist/components/checkbox/index.js +1 -0
  38. package/dist/components/checkbox-group/checkbox-group.styles.d.ts +34 -0
  39. package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -0
  40. package/dist/components/checkbox-group/checkbox-group.styles.js +22 -0
  41. package/dist/components/checkbox-group/index.d.ts +2 -0
  42. package/dist/components/checkbox-group/index.d.ts.map +1 -0
  43. package/dist/components/checkbox-group/index.js +1 -0
  44. package/dist/components/checkbox-group.css +7 -0
  45. package/dist/components/checkbox.css +269 -0
  46. package/dist/components/close-button/close-button.styles.d.ts +16 -0
  47. package/dist/components/close-button/close-button.styles.d.ts.map +1 -0
  48. package/dist/components/close-button/close-button.styles.js +15 -0
  49. package/dist/components/close-button/index.d.ts +2 -0
  50. package/dist/components/close-button/index.d.ts.map +1 -0
  51. package/dist/components/close-button/index.js +1 -0
  52. package/dist/components/close-button.css +65 -0
  53. package/dist/components/combobox/combobox.styles.d.ts +43 -0
  54. package/dist/components/combobox/combobox.styles.d.ts.map +1 -0
  55. package/dist/components/combobox/combobox.styles.js +24 -0
  56. package/dist/components/combobox/index.d.ts +2 -0
  57. package/dist/components/combobox/index.d.ts.map +1 -0
  58. package/dist/components/combobox/index.js +1 -0
  59. package/dist/components/combobox.css +169 -0
  60. package/dist/components/date-field/date-field.styles.d.ts +19 -0
  61. package/dist/components/date-field/date-field.styles.d.ts.map +1 -0
  62. package/dist/components/date-field/date-field.styles.js +16 -0
  63. package/dist/components/date-field/index.d.ts +2 -0
  64. package/dist/components/date-field/index.d.ts.map +1 -0
  65. package/dist/components/date-field/index.js +1 -0
  66. package/dist/components/date-field.css +24 -0
  67. package/dist/components/date-input-group/date-input-group.styles.d.ts +43 -0
  68. package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -0
  69. package/dist/components/date-input-group/date-input-group.styles.js +24 -0
  70. package/dist/components/date-input-group/index.d.ts +2 -0
  71. package/dist/components/date-input-group/index.d.ts.map +1 -0
  72. package/dist/components/date-input-group/index.js +1 -0
  73. package/dist/components/date-input-group.css +116 -0
  74. package/dist/components/date-picker/date-picker.styles.d.ts +37 -0
  75. package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
  76. package/dist/components/date-picker/date-picker.styles.js +11 -0
  77. package/dist/components/date-picker/index.d.ts +2 -0
  78. package/dist/components/date-picker/index.d.ts.map +1 -0
  79. package/dist/components/date-picker/index.js +1 -0
  80. package/dist/components/date-picker.css +32 -0
  81. package/dist/components/date-range-picker/date-range-picker.styles.d.ts +49 -0
  82. package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -0
  83. package/dist/components/date-range-picker/date-range-picker.styles.js +28 -0
  84. package/dist/components/date-range-picker/index.d.ts +2 -0
  85. package/dist/components/date-range-picker/index.d.ts.map +1 -0
  86. package/dist/components/date-range-picker/index.js +1 -0
  87. package/dist/components/date-range-picker.css +28 -0
  88. package/dist/components/description/description.styles.d.ts +4 -0
  89. package/dist/components/description/description.styles.d.ts.map +1 -0
  90. package/dist/components/description/description.styles.js +7 -0
  91. package/dist/components/description/index.d.ts +2 -0
  92. package/dist/components/description/index.d.ts.map +1 -0
  93. package/dist/components/description/index.js +1 -0
  94. package/dist/components/description.css +4 -0
  95. package/dist/components/error-message/error-message.styles.d.ts +4 -0
  96. package/dist/components/error-message/error-message.styles.d.ts.map +1 -0
  97. package/dist/components/error-message/error-message.styles.js +7 -0
  98. package/dist/components/error-message/index.d.ts +2 -0
  99. package/dist/components/error-message/index.d.ts.map +1 -0
  100. package/dist/components/error-message/index.js +1 -0
  101. package/dist/components/error-message.css +13 -0
  102. package/dist/components/field-error/field-error.styles.d.ts +4 -0
  103. package/dist/components/field-error/field-error.styles.d.ts.map +1 -0
  104. package/dist/components/field-error/field-error.styles.js +7 -0
  105. package/dist/components/field-error/index.d.ts +2 -0
  106. package/dist/components/field-error/index.d.ts.map +1 -0
  107. package/dist/components/field-error/index.js +1 -0
  108. package/dist/components/field-error.css +13 -0
  109. package/dist/components/field-group/field-group.styles.d.ts +69 -0
  110. package/dist/components/field-group/field-group.styles.d.ts.map +1 -0
  111. package/dist/components/field-group/field-group.styles.js +25 -0
  112. package/dist/components/field-group/index.d.ts +2 -0
  113. package/dist/components/field-group/index.d.ts.map +1 -0
  114. package/dist/components/field-group/index.js +1 -0
  115. package/dist/components/field-group.css +7 -0
  116. package/dist/components/index.css +23 -0
  117. package/dist/components/index.d.ts +23 -0
  118. package/dist/components/index.d.ts.map +1 -0
  119. package/dist/components/input/index.d.ts +2 -0
  120. package/dist/components/input/index.d.ts.map +1 -0
  121. package/dist/components/input/index.js +1 -0
  122. package/dist/components/input/input.styles.d.ts +31 -0
  123. package/dist/components/input/input.styles.d.ts.map +1 -0
  124. package/dist/components/input/input.styles.js +21 -0
  125. package/dist/components/input.css +72 -0
  126. package/dist/components/label/index.d.ts +2 -0
  127. package/dist/components/label/index.d.ts.map +1 -0
  128. package/dist/components/label/index.js +1 -0
  129. package/dist/components/label/label.styles.d.ts +34 -0
  130. package/dist/components/label/label.styles.d.ts.map +1 -0
  131. package/dist/components/label/label.styles.js +23 -0
  132. package/dist/components/label.css +31 -0
  133. package/dist/components/popover/index.d.ts +2 -0
  134. package/dist/components/popover/index.d.ts.map +1 -0
  135. package/dist/components/popover/index.js +1 -0
  136. package/dist/components/popover/popover.styles.d.ts +46 -0
  137. package/dist/components/popover/popover.styles.d.ts.map +1 -0
  138. package/dist/components/popover/popover.styles.js +12 -0
  139. package/dist/components/popover.css +91 -0
  140. package/dist/components/range-calendar/index.d.ts +2 -0
  141. package/dist/components/range-calendar/index.d.ts.map +1 -0
  142. package/dist/components/range-calendar/index.js +1 -0
  143. package/dist/components/range-calendar/range-calendar.styles.d.ts +43 -0
  144. package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -0
  145. package/dist/components/range-calendar/range-calendar.styles.js +26 -0
  146. package/dist/components/range-calendar.css +83 -0
  147. package/dist/components/surface/index.d.ts +2 -0
  148. package/dist/components/surface/index.d.ts.map +1 -0
  149. package/dist/components/surface/index.js +1 -0
  150. package/dist/components/surface/surface.styles.d.ts +37 -0
  151. package/dist/components/surface/surface.styles.d.ts.map +1 -0
  152. package/dist/components/surface/surface.styles.js +35 -0
  153. package/dist/components/surface.css +36 -0
  154. package/dist/components/text-field/index.d.ts +2 -0
  155. package/dist/components/text-field/index.d.ts.map +1 -0
  156. package/dist/components/text-field/index.js +1 -0
  157. package/dist/components/text-field/text-field.styles.d.ts +19 -0
  158. package/dist/components/text-field/text-field.styles.d.ts.map +1 -0
  159. package/dist/components/text-field/text-field.styles.js +16 -0
  160. package/dist/components/text-field.css +26 -0
  161. package/dist/index.css +17 -0
  162. package/dist/index.d.ts +4 -0
  163. package/dist/index.d.ts.map +1 -0
  164. package/dist/index.js +24 -0
  165. package/dist/themes/default/index.css +4 -0
  166. package/dist/themes/default/variables.css +157 -0
  167. package/dist/themes/shared/theme.css +338 -0
  168. package/dist/utilities/index.css +45 -0
  169. package/dist/utils/index.d.ts +2 -0
  170. package/dist/utils/index.d.ts.map +1 -0
  171. package/dist/utils/state.d.ts +17 -0
  172. package/dist/utils/state.d.ts.map +1 -0
  173. package/dist/utils/state.js +13 -0
  174. package/package.json +53 -0
  175. package/src/components/button/button.styles.ts +38 -0
  176. package/src/components/button/index.ts +1 -0
  177. package/src/components/button-group/button-group.styles.ts +18 -0
  178. package/src/components/button-group/index.ts +1 -0
  179. package/src/components/calendar/calendar.styles.ts +27 -0
  180. package/src/components/calendar/index.ts +1 -0
  181. package/src/components/card/card.styles.ts +36 -0
  182. package/src/components/card/index.ts +1 -0
  183. package/src/components/checkbox/checkbox.styles.ts +27 -0
  184. package/src/components/checkbox/index.ts +1 -0
  185. package/src/components/checkbox-group/checkbox-group.styles.ts +24 -0
  186. package/src/components/checkbox-group/index.ts +1 -0
  187. package/src/components/close-button/close-button.styles.ts +17 -0
  188. package/src/components/close-button/index.ts +1 -0
  189. package/src/components/combobox/combobox.styles.ts +26 -0
  190. package/src/components/combobox/index.ts +1 -0
  191. package/src/components/date-field/date-field.styles.ts +18 -0
  192. package/src/components/date-field/index.ts +1 -0
  193. package/src/components/date-input-group/date-input-group.styles.ts +28 -0
  194. package/src/components/date-input-group/index.ts +1 -0
  195. package/src/components/date-picker/date-picker.styles.ts +13 -0
  196. package/src/components/date-picker/index.ts +1 -0
  197. package/src/components/date-range-picker/date-range-picker.styles.ts +32 -0
  198. package/src/components/date-range-picker/index.ts +1 -0
  199. package/src/components/description/description.styles.ts +9 -0
  200. package/src/components/description/index.ts +1 -0
  201. package/src/components/error-message/error-message.styles.ts +9 -0
  202. package/src/components/error-message/index.ts +1 -0
  203. package/src/components/field-error/field-error.styles.ts +9 -0
  204. package/src/components/field-error/index.ts +1 -0
  205. package/src/components/field-group/field-group.styles.ts +29 -0
  206. package/src/components/field-group/index.ts +1 -0
  207. package/src/components/index.ts +23 -0
  208. package/src/components/input/index.ts +1 -0
  209. package/src/components/input/input.styles.ts +23 -0
  210. package/src/components/label/index.ts +1 -0
  211. package/src/components/label/label.styles.ts +25 -0
  212. package/src/components/popover/index.ts +1 -0
  213. package/src/components/popover/popover.styles.ts +14 -0
  214. package/src/components/range-calendar/index.ts +1 -0
  215. package/src/components/range-calendar/range-calendar.styles.ts +28 -0
  216. package/src/components/surface/index.ts +1 -0
  217. package/src/components/surface/surface.styles.ts +37 -0
  218. package/src/components/text-field/index.ts +1 -0
  219. package/src/components/text-field/text-field.styles.ts +18 -0
  220. package/src/index.ts +4 -0
  221. package/src/utils/index.ts +1 -0
  222. 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,9 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+
3
+ import { tv } from "tailwind-variants";
4
+
5
+ export const descriptionVariants = tv({
6
+ base: "description",
7
+ });
8
+
9
+ export type DescriptionVariants = VariantProps<typeof descriptionVariants>;
@@ -0,0 +1 @@
1
+ export * from "./description.styles";
@@ -0,0 +1,9 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+
3
+ import { tv } from "tailwind-variants";
4
+
5
+ export const errorMessageVariants = tv({
6
+ base: "error-message",
7
+ });
8
+
9
+ export type ErrorMessageVariants = VariantProps<typeof errorMessageVariants>;
@@ -0,0 +1 @@
1
+ export * from "./error-message.styles";
@@ -0,0 +1,9 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+
3
+ import { tv } from "tailwind-variants";
4
+
5
+ export const fieldErrorVariants = tv({
6
+ base: "field-error",
7
+ });
8
+
9
+ export type FieldErrorVariants = VariantProps<typeof fieldErrorVariants>;
@@ -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,4 @@
1
+ export { tv, cn, type VariantProps } from "tailwind-variants";
2
+
3
+ export * from "./components";
4
+ export * from "./utils";
@@ -0,0 +1 @@
1
+ export * from "./state";
@@ -0,0 +1,11 @@
1
+ import { tv } from "tailwind-variants";
2
+
3
+ export const focusRing = tv({
4
+ base: "focus-ring",
5
+ variants: {
6
+ isFocusVisible: {
7
+ false: "",
8
+ true: "outline-2",
9
+ },
10
+ },
11
+ });