@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,2 @@
1
+ export * from "./close-button.styles";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/close-button/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ export { closeButtonVariants } from './close-button.styles.js';
@@ -0,0 +1,65 @@
1
+ /* Close Button component styles */
2
+
3
+ /* Base close button styles */
4
+ .close-button {
5
+ @apply relative isolate inline-flex h-6 w-6 shrink-0 origin-center items-center justify-center rounded-xl p-1 will-change-transform select-none no-highlight;
6
+
7
+ /* Cursor */
8
+ cursor: var(--cursor-interactive);
9
+
10
+ /**
11
+ * Transitions
12
+ * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
13
+ */
14
+ transition:
15
+ transform 250ms var(--ease-out-quart),
16
+ color 150ms var(--ease-out),
17
+ background-color 100ms var(--ease-out),
18
+ box-shadow 150ms var(--ease-out);
19
+ @apply transform-gpu motion-reduce:transition-none;
20
+
21
+ /* Focus visible state */
22
+ &:focus-visible:not(:focus),
23
+ &[data-focus-visible="true"] {
24
+ @apply status-focused;
25
+ }
26
+
27
+ /* Disabled state */
28
+ &:disabled,
29
+ &[aria-disabled="true"] {
30
+ @apply status-disabled;
31
+ }
32
+
33
+ /* Pending state */
34
+ &[data-pending="true"] {
35
+ @apply status-pending;
36
+ }
37
+
38
+ /* SVG icon styling*/
39
+ & svg {
40
+ @apply pointer-events-none;
41
+ @apply size-4 shrink-0 self-center;
42
+ @apply -mx-0.5 my-0.5;
43
+ }
44
+ }
45
+
46
+ /* Variants */
47
+ .close-button--default {
48
+ @apply bg-default text-muted;
49
+
50
+ &:active,
51
+ &[data-pressed="true"] {
52
+ }
53
+
54
+ @media (hover: hover) {
55
+ &:hover,
56
+ &[data-hovered="true"] {
57
+ @apply bg-default-hover;
58
+ }
59
+ }
60
+
61
+ &:active,
62
+ &[data-pressed="true"] {
63
+ transform: scale(0.93);
64
+ }
65
+ }
@@ -0,0 +1,43 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ export declare const comboboxVariants: import("tailwind-variants").TVReturnType<{
3
+ fullWidth: {
4
+ false: {};
5
+ true: {
6
+ base: string;
7
+ inputGroup: string;
8
+ };
9
+ };
10
+ }, {
11
+ base: string;
12
+ inputGroup: string;
13
+ popover: string;
14
+ trigger: string;
15
+ }, undefined, {
16
+ fullWidth: {
17
+ false: {};
18
+ true: {
19
+ base: string;
20
+ inputGroup: string;
21
+ };
22
+ };
23
+ }, {
24
+ base: string;
25
+ inputGroup: string;
26
+ popover: string;
27
+ trigger: string;
28
+ }, import("tailwind-variants").TVReturnType<{
29
+ fullWidth: {
30
+ false: {};
31
+ true: {
32
+ base: string;
33
+ inputGroup: string;
34
+ };
35
+ };
36
+ }, {
37
+ base: string;
38
+ inputGroup: string;
39
+ popover: string;
40
+ trigger: string;
41
+ }, undefined, unknown, unknown, undefined>>;
42
+ export type ComboBoxVariants = VariantProps<typeof comboboxVariants>;
43
+ //# sourceMappingURL=combobox.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/combobox/combobox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAmB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const comboboxVariants = tv({
4
+ defaultVariants: {
5
+ fullWidth: false,
6
+ },
7
+ slots: {
8
+ base: "combobox",
9
+ inputGroup: "combobox__input-group",
10
+ popover: "combobox__popover",
11
+ trigger: "combobox__trigger",
12
+ },
13
+ variants: {
14
+ fullWidth: {
15
+ false: {},
16
+ true: {
17
+ base: "combobox--full-width",
18
+ inputGroup: "combobox__input-group--full-width",
19
+ },
20
+ },
21
+ },
22
+ });
23
+
24
+ export { comboboxVariants };
@@ -0,0 +1,2 @@
1
+ export * from "./combobox.styles";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ export { comboboxVariants } from './combobox.styles.js';
@@ -0,0 +1,169 @@
1
+ /* ComboBox styles */
2
+ .combobox {
3
+ @apply flex flex-col gap-1;
4
+
5
+ &[data-invalid="true"],
6
+ &[aria-invalid="true"] {
7
+ [data-slot="description"] {
8
+ @apply hidden;
9
+ }
10
+ }
11
+
12
+ [data-slot="label"] {
13
+ @apply w-fit;
14
+ }
15
+
16
+ [data-slot="description"] {
17
+ @apply px-1;
18
+ }
19
+
20
+ [data-slot="input"] {
21
+ @apply min-w-0 flex-1;
22
+
23
+ /* Add padding-right when trigger is present */
24
+ &:has(+ .combobox__trigger) {
25
+ @apply pr-7;
26
+ }
27
+
28
+ /* Focus state (input.css only has focus-visible, but combobox also needs focus) */
29
+ &:focus,
30
+ &[data-focus] {
31
+ @apply status-focused-field;
32
+ border-color: var(--color-field-border-focus);
33
+ background-color: var(--color-field-focus);
34
+ }
35
+
36
+ /* Disabled state */
37
+ &:disabled,
38
+ &[data-disabled],
39
+ &[aria-disabled="true"] {
40
+ @apply status-disabled;
41
+ }
42
+ }
43
+ }
44
+
45
+ .combobox__input-group {
46
+ @apply relative isolate inline-flex items-center;
47
+ }
48
+
49
+ .combobox__trigger {
50
+ @apply absolute top-1/2 right-0 flex h-full shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center pr-2 text-field-placeholder transition duration-150 no-highlight;
51
+
52
+ /* Remove default button styles */
53
+ @apply border-none bg-transparent outline-none;
54
+
55
+ /* Hover state */
56
+ @media (hover: hover) {
57
+ &:hover,
58
+ &[data-hovered="true"] {
59
+ @apply text-field-foreground;
60
+ }
61
+ }
62
+
63
+ /* Focus visible state */
64
+ &:focus-visible:not(:focus),
65
+ &[data-focus-visible="true"] {
66
+ @apply rounded ring-2 ring-focus ring-offset-2 ring-offset-background outline-none;
67
+ }
68
+
69
+ /* Pressed state */
70
+ &[data-pressed="true"] {
71
+ @apply opacity-70;
72
+ }
73
+
74
+ /* Disabled state */
75
+ &:disabled,
76
+ &[data-disabled],
77
+ &[aria-disabled="true"] {
78
+ @apply cursor-not-allowed opacity-50;
79
+ }
80
+
81
+ [data-slot="combobox-trigger-default-icon"] {
82
+ @apply size-4 transition-transform duration-150 motion-reduce:transition-none;
83
+ }
84
+
85
+ /* Rotate icon when trigger is open */
86
+ &[data-open="true"] [data-slot="combobox-trigger-default-icon"] {
87
+ @apply rotate-180;
88
+ }
89
+ }
90
+
91
+ /* Similar to popover content styles */
92
+ .combobox__popover {
93
+ @apply min-w-(--trigger-width) origin-(--trigger-anchor-point) scroll-py-1 overflow-y-auto overscroll-contain rounded-3xl bg-overlay p-0 text-sm will-change-[opacity,transform];
94
+ box-shadow: var(--shadow-overlay);
95
+
96
+ /* Focus state */
97
+ &:focus-visible:not(:focus),
98
+ &[data-focus-visible="true"] {
99
+ @apply outline-none;
100
+ }
101
+
102
+ /* Entering animations */
103
+ &[data-entering="true"] {
104
+ @apply animate-in duration-150 ease-smooth fade-in-0 zoom-in-95;
105
+
106
+ /* Placement-specific translations */
107
+ &[data-placement="top"] {
108
+ @apply slide-in-from-bottom-1;
109
+ }
110
+
111
+ &[data-placement="bottom"] {
112
+ @apply slide-in-from-top-1;
113
+ }
114
+
115
+ &[data-placement="left"] {
116
+ @apply slide-in-from-right-1;
117
+ }
118
+
119
+ &[data-placement="right"] {
120
+ @apply slide-in-from-left-1;
121
+ }
122
+ }
123
+
124
+ /* Exiting animations */
125
+ &[data-exiting="true"] {
126
+ @apply animate-out duration-100 ease-smooth zoom-out-95 fade-out;
127
+ }
128
+
129
+ /* Arrow styling */
130
+ & [data-slot="popover-overlay-arrow"] {
131
+ fill: var(--overlay);
132
+ }
133
+
134
+ /* Arrow rotation based on placement */
135
+ &[data-placement="bottom"] [data-slot="popover-overlay-arrow"] {
136
+ rotate: 180deg;
137
+ }
138
+
139
+ &[data-placement="left"] [data-slot="popover-overlay-arrow"] {
140
+ rotate: -90deg;
141
+ }
142
+
143
+ &[data-placement="right"] [data-slot="popover-overlay-arrow"] {
144
+ rotate: 90deg;
145
+ }
146
+
147
+ /* Listbox styles */
148
+ [data-slot="listbox"] {
149
+ @apply p-1.5 outline-none;
150
+ }
151
+
152
+ [data-slot="listbox-item"] {
153
+ @apply px-2.5;
154
+
155
+ /* As the combobox is single-select, we don't need to animate the checkmark */
156
+ [data-slot="listbox-item-indicator--checkmark"] {
157
+ @apply transition-none;
158
+ }
159
+ }
160
+ }
161
+
162
+ /* Full width modifier */
163
+ .combobox--full-width {
164
+ @apply w-full;
165
+ }
166
+
167
+ .combobox__input-group--full-width {
168
+ @apply w-full;
169
+ }
@@ -0,0 +1,19 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ export declare const dateFieldVariants: import("tailwind-variants").TVReturnType<{
3
+ fullWidth: {
4
+ false: string;
5
+ true: string;
6
+ };
7
+ }, undefined, "date-field", {
8
+ fullWidth: {
9
+ false: string;
10
+ true: string;
11
+ };
12
+ }, undefined, import("tailwind-variants").TVReturnType<{
13
+ fullWidth: {
14
+ false: string;
15
+ true: string;
16
+ };
17
+ }, undefined, "date-field", unknown, unknown, undefined>>;
18
+ export type DateFieldVariants = VariantProps<typeof dateFieldVariants>;
19
+ //# sourceMappingURL=date-field.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-field.styles.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;yDAW5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const dateFieldVariants = tv({
4
+ base: "date-field",
5
+ defaultVariants: {
6
+ fullWidth: false,
7
+ },
8
+ variants: {
9
+ fullWidth: {
10
+ false: "",
11
+ true: "date-field--full-width",
12
+ },
13
+ },
14
+ });
15
+
16
+ export { dateFieldVariants };
@@ -0,0 +1,2 @@
1
+ export * from "./date-field.styles";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ export { dateFieldVariants } from './date-field.styles.js';
@@ -0,0 +1,24 @@
1
+ /* Date field styles */
2
+ .date-field {
3
+ @apply flex flex-col gap-1;
4
+
5
+ &[data-invalid="true"],
6
+ &[aria-invalid="true"] {
7
+ [data-slot="description"] {
8
+ @apply hidden;
9
+ }
10
+ }
11
+
12
+ [data-slot="label"] {
13
+ @apply w-fit;
14
+ }
15
+
16
+ [data-slot="description"] {
17
+ @apply px-1;
18
+ }
19
+ }
20
+
21
+ /* Full width modifier */
22
+ .date-field--full-width {
23
+ @apply w-full;
24
+ }
@@ -0,0 +1,43 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ export declare const dateInputGroupVariants: import("tailwind-variants").TVReturnType<{
3
+ fullWidth: {
4
+ false: {};
5
+ true: {
6
+ base: string;
7
+ };
8
+ };
9
+ }, {
10
+ base: string;
11
+ input: string;
12
+ prefix: string;
13
+ segment: string;
14
+ suffix: string;
15
+ }, undefined, {
16
+ fullWidth: {
17
+ false: {};
18
+ true: {
19
+ base: string;
20
+ };
21
+ };
22
+ }, {
23
+ base: string;
24
+ input: string;
25
+ prefix: string;
26
+ segment: string;
27
+ suffix: string;
28
+ }, import("tailwind-variants").TVReturnType<{
29
+ fullWidth: {
30
+ false: {};
31
+ true: {
32
+ base: string;
33
+ };
34
+ };
35
+ }, {
36
+ base: string;
37
+ input: string;
38
+ prefix: string;
39
+ segment: string;
40
+ suffix: string;
41
+ }, undefined, unknown, unknown, undefined>>;
42
+ export type DateInputGroupVariants = VariantProps<typeof dateInputGroupVariants>;
43
+ //# sourceMappingURL=date-input-group.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-input-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/date-input-group/date-input-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAmBjC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAC/C,OAAO,sBAAsB,CAC9B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const dateInputGroupVariants = tv({
4
+ defaultVariants: {
5
+ fullWidth: false,
6
+ },
7
+ slots: {
8
+ base: "date-input-group",
9
+ input: "date-input-group__input",
10
+ prefix: "date-input-group__prefix",
11
+ segment: "date-input-group__segment",
12
+ suffix: "date-input-group__suffix",
13
+ },
14
+ variants: {
15
+ fullWidth: {
16
+ false: {},
17
+ true: {
18
+ base: "date-input-group--full-width",
19
+ },
20
+ },
21
+ },
22
+ });
23
+
24
+ export { dateInputGroupVariants };
@@ -0,0 +1,2 @@
1
+ export * from "./date-input-group.styles";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-input-group/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1 @@
1
+ export { dateInputGroupVariants } from './date-input-group.styles.js';
@@ -0,0 +1,116 @@
1
+ /* Date input group styles */
2
+ .date-input-group {
3
+ @apply inline-flex h-9 items-center overflow-hidden rounded-field border bg-field text-sm text-field-foreground outline-none;
4
+ @apply ring ring-borderColor-default;
5
+ border-width: var(--border-width-field);
6
+ border-color: var(--color-field-border);
7
+
8
+ /**
9
+ * Transitions
10
+ * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
11
+ */
12
+ transition:
13
+ background-color 150ms var(--ease-smooth),
14
+ border-color 150ms var(--ease-smooth),
15
+ box-shadow 150ms var(--ease-out);
16
+ @apply motion-reduce:transition-none;
17
+
18
+ /* Hover state */
19
+ @media (hover: hover) {
20
+ &:hover:not(:focus-within),
21
+ &[data-hovered="true"]:not([data-focus-within="true"]) {
22
+ @apply bg-field-hover;
23
+ border-color: var(--color-field-border-hover);
24
+ }
25
+ }
26
+
27
+ /* Focus within state */
28
+ &[data-focus-within="true"],
29
+ &:focus-within {
30
+ @apply status-focused-field;
31
+ }
32
+
33
+ /* Invalid state */
34
+ &[data-invalid="true"] {
35
+ @apply status-invalid-field;
36
+ background-color: var(--color-field-focus);
37
+ border-color: var(--color-field-border-invalid);
38
+ }
39
+
40
+ /* Disabled state */
41
+ &[data-disabled="true"],
42
+ &[aria-disabled="true"] {
43
+ @apply status-disabled;
44
+ }
45
+ }
46
+
47
+ .date-input-group__input {
48
+ @apply flex flex-1 cursor-text items-center gap-px rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none sm:text-sm;
49
+
50
+ /* Remove border radius on left side when prefix is present */
51
+ .date-input-group:has([data-slot="date-input-group-prefix"]) & {
52
+ @apply rounded-l-none pl-2;
53
+ }
54
+
55
+ /* Remove border radius on right side when suffix is present */
56
+ .date-input-group:has([data-slot="date-input-group-suffix"]) & {
57
+ @apply rounded-r-none pr-2;
58
+ }
59
+
60
+ /* Focus state - handled by group */
61
+ &:focus,
62
+ &:focus-visible {
63
+ @apply outline-none;
64
+ }
65
+ }
66
+
67
+ .date-input-group__segment {
68
+ @apply inline-block rounded-md px-0.5 text-end tabular-nums outline-none;
69
+
70
+ /* Segment separators styling "/" */
71
+ &[data-type="literal"] {
72
+ @apply p-0 text-muted;
73
+ }
74
+
75
+ /* Placeholder styling */
76
+ &[data-placeholder="true"] {
77
+ @apply text-field-placeholder;
78
+ }
79
+
80
+ /* Focused segment */
81
+ &:focus,
82
+ &[data-focused="true"] {
83
+ @apply bg-accent-soft text-accent-soft-foreground;
84
+ }
85
+
86
+ /* Disabled segment */
87
+ &[data-disabled="true"] {
88
+ @apply opacity-50;
89
+ }
90
+
91
+ /* Invalid segment */
92
+ &[data-invalid="true"] {
93
+ @apply text-danger;
94
+
95
+ /* Focused segment */
96
+ &:focus,
97
+ &[data-focused="true"] {
98
+ @apply bg-danger-soft text-danger-soft-foreground;
99
+ }
100
+ }
101
+ }
102
+
103
+ .date-input-group__prefix {
104
+ @apply pointer-events-none shrink-0 text-field-placeholder;
105
+ @apply mr-0 ml-3 flex items-center;
106
+ }
107
+
108
+ .date-input-group__suffix {
109
+ @apply pointer-events-none shrink-0 text-field-placeholder;
110
+ @apply mr-3 flex items-center;
111
+ }
112
+
113
+ /* Full width modifier */
114
+ .date-input-group--full-width {
115
+ @apply w-full;
116
+ }
@@ -0,0 +1,37 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ export declare const datePickerVariants: import("tailwind-variants").TVReturnType<{
3
+ [key: string]: {
4
+ [key: string]: import("tailwind-variants").ClassValue | {
5
+ base?: import("tailwind-variants").ClassValue;
6
+ trigger?: import("tailwind-variants").ClassValue;
7
+ input?: import("tailwind-variants").ClassValue;
8
+ };
9
+ };
10
+ } | {
11
+ [x: string]: {
12
+ [x: string]: import("tailwind-variants").ClassValue | {
13
+ base?: import("tailwind-variants").ClassValue;
14
+ trigger?: import("tailwind-variants").ClassValue;
15
+ input?: import("tailwind-variants").ClassValue;
16
+ };
17
+ };
18
+ } | {}, {
19
+ trigger: string;
20
+ input: string;
21
+ }, "date-picker", {
22
+ [key: string]: {
23
+ [key: string]: import("tailwind-variants").ClassValue | {
24
+ base?: import("tailwind-variants").ClassValue;
25
+ trigger?: import("tailwind-variants").ClassValue;
26
+ input?: import("tailwind-variants").ClassValue;
27
+ };
28
+ };
29
+ } | {}, {
30
+ trigger: string;
31
+ input: string;
32
+ }, import("tailwind-variants").TVReturnType<unknown, {
33
+ trigger: string;
34
+ input: string;
35
+ }, "date-picker", unknown, unknown, undefined>>;
36
+ export type DatePickerVariants = VariantProps<typeof datePickerVariants>;
37
+ //# sourceMappingURL=date-picker.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.styles.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAM7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const datePickerVariants = tv({
4
+ base: "date-picker",
5
+ slots: {
6
+ trigger: "date-picker__trigger",
7
+ input: "date-picker__input",
8
+ },
9
+ });
10
+
11
+ export { datePickerVariants };
@@ -0,0 +1,2 @@
1
+ export * from "./date-picker.styles";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ export { datePickerVariants } from './date-picker.styles.js';