iryx-ui 0.15.0 → 0.17.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.
Files changed (102) hide show
  1. package/README.md +3 -1
  2. package/dist/component-names.d.ts +1 -1
  3. package/dist/component-names.js +1 -1
  4. package/dist/components/BarChart.vue.d.ts +8 -0
  5. package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +169 -151
  6. package/dist/components/Calendar.js +5 -0
  7. package/dist/components/Calendar.vue.d.ts +69 -0
  8. package/dist/components/Calendar.vue_vue_type_script_setup_true_lang.js +168 -0
  9. package/dist/components/Combobox.vue.d.ts +9 -9
  10. package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +180 -144
  11. package/dist/components/DateField.js +5 -0
  12. package/dist/components/DateField.vue.d.ts +38 -0
  13. package/dist/components/DateField.vue_vue_type_script_setup_true_lang.js +94 -0
  14. package/dist/components/DatePicker.vue.d.ts +7 -2
  15. package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +73 -124
  16. package/dist/components/DateRangePicker.vue.d.ts +2 -2
  17. package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +81 -78
  18. package/dist/components/DonutChart.js +5 -0
  19. package/dist/components/DonutChart.vue.d.ts +96 -0
  20. package/dist/components/DonutChart.vue_vue_type_script_setup_true_lang.js +234 -0
  21. package/dist/components/DropdownMenu.vue.d.ts +13 -6
  22. package/dist/components/DropdownMenu.vue_vue_type_script_setup_true_lang.js +28 -22
  23. package/dist/components/Editable.js +5 -0
  24. package/dist/components/Editable.vue.d.ts +81 -0
  25. package/dist/components/Editable.vue_vue_type_script_setup_true_lang.js +140 -0
  26. package/dist/components/HoverCard.js +5 -0
  27. package/dist/components/HoverCard.vue.d.ts +68 -0
  28. package/dist/components/HoverCard.vue_vue_type_script_setup_true_lang.js +79 -0
  29. package/dist/components/LineChart.vue.d.ts +8 -0
  30. package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +160 -141
  31. package/dist/components/Sparkline.vue.d.ts +9 -0
  32. package/dist/components/Sparkline.vue_vue_type_script_setup_true_lang.js +90 -53
  33. package/dist/components/TagsInput.vue.d.ts +2 -2
  34. package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +17 -14
  35. package/dist/components/index.d.ts +5 -0
  36. package/dist/components/index.js +124 -114
  37. package/dist/composables/cartesian.d.ts +10 -2
  38. package/dist/composables/chart-reveal.d.ts +45 -0
  39. package/dist/composables/chart-reveal.js +93 -0
  40. package/dist/index.d.ts +6 -0
  41. package/dist/index.js +142 -131
  42. package/dist/theme/accordion.d.ts +0 -15
  43. package/dist/theme/alert.d.ts +0 -3
  44. package/dist/theme/avatar.d.ts +0 -3
  45. package/dist/theme/banner.d.ts +0 -6
  46. package/dist/theme/bar-chart.d.ts +0 -18
  47. package/dist/theme/breadcrumb.d.ts +0 -3
  48. package/dist/theme/calendar.d.ts +62 -0
  49. package/dist/theme/calendar.js +29 -0
  50. package/dist/theme/card.d.ts +0 -6
  51. package/dist/theme/chart-legend.d.ts +0 -3
  52. package/dist/theme/checkbox.d.ts +0 -6
  53. package/dist/theme/color-picker.d.ts +0 -6
  54. package/dist/theme/combobox.js +4 -4
  55. package/dist/theme/command-palette.d.ts +0 -6
  56. package/dist/theme/container.d.ts +0 -3
  57. package/dist/theme/container.js +3 -3
  58. package/dist/theme/date-field.d.ts +65 -0
  59. package/dist/theme/date-field.js +21 -0
  60. package/dist/theme/date-picker.d.ts +0 -195
  61. package/dist/theme/date-picker.js +2 -24
  62. package/dist/theme/donut-chart.d.ts +86 -0
  63. package/dist/theme/donut-chart.js +17 -0
  64. package/dist/theme/dropdown-menu.d.ts +3 -0
  65. package/dist/theme/dropdown-menu.js +1 -0
  66. package/dist/theme/editable.d.ts +77 -0
  67. package/dist/theme/editable.js +26 -0
  68. package/dist/theme/empty-state.d.ts +0 -3
  69. package/dist/theme/file-upload.d.ts +0 -39
  70. package/dist/theme/hover-card.d.ts +92 -0
  71. package/dist/theme/hover-card.js +28 -0
  72. package/dist/theme/index.d.ts +5 -0
  73. package/dist/theme/input.d.ts +0 -18
  74. package/dist/theme/kbd.d.ts +0 -3
  75. package/dist/theme/line-chart.d.ts +0 -18
  76. package/dist/theme/navigation-menu.d.ts +0 -48
  77. package/dist/theme/number-input.d.ts +0 -3
  78. package/dist/theme/page-header.d.ts +0 -3
  79. package/dist/theme/password-input.d.ts +0 -23
  80. package/dist/theme/pin-input.d.ts +0 -3
  81. package/dist/theme/popover.d.ts +0 -6
  82. package/dist/theme/progress.d.ts +0 -51
  83. package/dist/theme/scroll-area.d.ts +0 -3
  84. package/dist/theme/separator.d.ts +0 -3
  85. package/dist/theme/sidebar.d.ts +0 -54
  86. package/dist/theme/skeleton.d.ts +0 -3
  87. package/dist/theme/skeleton.js +1 -1
  88. package/dist/theme/slider.d.ts +0 -6
  89. package/dist/theme/sparkline.d.ts +0 -11
  90. package/dist/theme/sparkline.js +1 -1
  91. package/dist/theme/splitter.d.ts +0 -3
  92. package/dist/theme/stat.d.ts +0 -12
  93. package/dist/theme/stat.js +2 -2
  94. package/dist/theme/switch.d.ts +0 -6
  95. package/dist/theme/table.d.ts +0 -39
  96. package/dist/theme/tabs.d.ts +0 -12
  97. package/dist/theme/time-field.d.ts +0 -3
  98. package/dist/theme/timeline.d.ts +0 -18
  99. package/dist/theme/toast.d.ts +0 -3
  100. package/dist/theme/toggle.d.ts +0 -23
  101. package/dist/theme/tree.d.ts +0 -3
  102. package/package.json +1 -1
@@ -25,7 +25,6 @@ export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
25
25
  list: string;
26
26
  item: string;
27
27
  link: string;
28
- /** The last crumb: current page, so not a link. */
29
28
  current: string;
30
29
  separator: string;
31
30
  }, undefined, {
@@ -44,7 +43,6 @@ export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
44
43
  list: string;
45
44
  item: string;
46
45
  link: string;
47
- /** The last crumb: current page, so not a link. */
48
46
  current: string;
49
47
  separator: string;
50
48
  }, import("tailwind-variants").TVReturnType<unknown, {
@@ -52,7 +50,6 @@ export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
52
50
  list: string;
53
51
  item: string;
54
52
  link: string;
55
- /** The last crumb: current page, so not a link. */
56
53
  current: string;
57
54
  separator: string;
58
55
  }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,62 @@
1
+ export declare const calendarTheme: import("tailwind-variants").TVReturnType<{
2
+ range: {
3
+ false: {
4
+ cellTrigger: string;
5
+ };
6
+ true: {
7
+ cell: string;
8
+ cellTrigger: string;
9
+ };
10
+ };
11
+ }, {
12
+ root: string;
13
+ header: string;
14
+ heading: string;
15
+ nav: string;
16
+ months: string;
17
+ grid: string;
18
+ headCell: string;
19
+ cell: string;
20
+ cellTrigger: string;
21
+ }, undefined, {
22
+ range: {
23
+ false: {
24
+ cellTrigger: string;
25
+ };
26
+ true: {
27
+ cell: string;
28
+ cellTrigger: string;
29
+ };
30
+ };
31
+ }, {
32
+ root: string;
33
+ header: string;
34
+ heading: string;
35
+ nav: string;
36
+ months: string;
37
+ grid: string;
38
+ headCell: string;
39
+ cell: string;
40
+ cellTrigger: string;
41
+ }, import("tailwind-variants").TVReturnType<{
42
+ range: {
43
+ false: {
44
+ cellTrigger: string;
45
+ };
46
+ true: {
47
+ cell: string;
48
+ cellTrigger: string;
49
+ };
50
+ };
51
+ }, {
52
+ root: string;
53
+ header: string;
54
+ heading: string;
55
+ nav: string;
56
+ months: string;
57
+ grid: string;
58
+ headCell: string;
59
+ cell: string;
60
+ cellTrigger: string;
61
+ }, undefined, unknown, unknown, undefined>>;
62
+ export type CalendarSlots = keyof ReturnType<typeof calendarTheme>;
@@ -0,0 +1,29 @@
1
+ import { tv as e } from "tailwind-variants";
2
+ //#region src/theme/calendar.ts
3
+ var t = e({
4
+ slots: {
5
+ root: "w-fit text-foreground",
6
+ header: "flex items-center justify-between gap-2 pb-3",
7
+ heading: "text-sm font-medium",
8
+ nav: "flex size-7 items-center justify-center rounded-lg text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4",
9
+ months: "flex items-start gap-4",
10
+ grid: "w-full border-collapse select-none",
11
+ headCell: "pb-1 text-xs font-normal text-muted-foreground",
12
+ cell: "p-0 transition-colors",
13
+ cellTrigger: "flex h-8 w-full min-w-8 items-center justify-center rounded-lg text-sm tabular-nums transition-colors outline-none not-data-[selected]:hover:bg-accent not-data-[selected]:hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 data-[disabled]:pointer-events-none data-[disabled]:opacity-30 data-[outside-view]:text-muted-foreground/50 data-[today]:font-semibold data-[today]:text-primary data-[unavailable]:pointer-events-none data-[unavailable]:line-through data-[unavailable]:opacity-40"
14
+ },
15
+ variants: { range: {
16
+ false: { cellTrigger: "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary data-[selected]:data-[today]:text-primary-foreground" },
17
+ true: {
18
+ cell: [
19
+ "has-data-[selected]:bg-primary/15",
20
+ "has-data-[selection-start]:rounded-s-lg",
21
+ "has-data-[selection-end]:rounded-e-lg"
22
+ ].join(" "),
23
+ cellTrigger: ["data-[selection-start]:bg-primary data-[selection-start]:text-primary-foreground data-[selection-start]:hover:bg-primary", "data-[selection-end]:bg-primary data-[selection-end]:text-primary-foreground data-[selection-end]:hover:bg-primary"].join(" ")
24
+ }
25
+ } },
26
+ defaultVariants: { range: !1 }
27
+ });
28
+ //#endregion
29
+ export { t as calendarTheme };
@@ -27,12 +27,10 @@ export declare const cardTheme: import("tailwind-variants").TVReturnType<{
27
27
  };
28
28
  }, {
29
29
  root: string;
30
- /** Only rendered when a title, description or header slot is provided. */
31
30
  header: string;
32
31
  title: string;
33
32
  description: string;
34
33
  body: string;
35
- /** Only rendered when a footer slot is provided. */
36
34
  footer: string;
37
35
  }, undefined, {
38
36
  variant: {
@@ -63,12 +61,10 @@ export declare const cardTheme: import("tailwind-variants").TVReturnType<{
63
61
  };
64
62
  }, {
65
63
  root: string;
66
- /** Only rendered when a title, description or header slot is provided. */
67
64
  header: string;
68
65
  title: string;
69
66
  description: string;
70
67
  body: string;
71
- /** Only rendered when a footer slot is provided. */
72
68
  footer: string;
73
69
  }, import("tailwind-variants").TVReturnType<{
74
70
  variant: {
@@ -99,12 +95,10 @@ export declare const cardTheme: import("tailwind-variants").TVReturnType<{
99
95
  };
100
96
  }, {
101
97
  root: string;
102
- /** Only rendered when a title, description or header slot is provided. */
103
98
  header: string;
104
99
  title: string;
105
100
  description: string;
106
101
  body: string;
107
- /** Only rendered when a footer slot is provided. */
108
102
  footer: string;
109
103
  }, undefined, unknown, unknown, undefined>>;
110
104
  export type CardSlots = keyof ReturnType<typeof cardTheme>;
@@ -20,7 +20,6 @@ export declare const chartLegendTheme: import("tailwind-variants").TVReturnType<
20
20
  root: string;
21
21
  item: string;
22
22
  swatch: string;
23
- /** The text never does — a light hue is illegible as type on the surface. */
24
23
  name: string;
25
24
  }, undefined, {
26
25
  [key: string]: {
@@ -35,13 +34,11 @@ export declare const chartLegendTheme: import("tailwind-variants").TVReturnType<
35
34
  root: string;
36
35
  item: string;
37
36
  swatch: string;
38
- /** The text never does — a light hue is illegible as type on the surface. */
39
37
  name: string;
40
38
  }, import("tailwind-variants").TVReturnType<unknown, {
41
39
  root: string;
42
40
  item: string;
43
41
  swatch: string;
44
- /** The text never does — a light hue is illegible as type on the surface. */
45
42
  name: string;
46
43
  }, undefined, unknown, unknown, undefined>>;
47
44
  export type ChartLegendSlots = keyof ReturnType<typeof chartLegendTheme>;
@@ -13,14 +13,12 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
13
13
  indicator: string;
14
14
  };
15
15
  };
16
- /** Nudges the box down so it centres against the label's first line. */
17
16
  withText: {
18
17
  true: {
19
18
  root: string;
20
19
  };
21
20
  };
22
21
  }, {
23
- /** Only rendered when a `label` or `description` is provided. */
24
22
  wrapper: string;
25
23
  root: string;
26
24
  indicator: string;
@@ -42,14 +40,12 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
42
40
  indicator: string;
43
41
  };
44
42
  };
45
- /** Nudges the box down so it centres against the label's first line. */
46
43
  withText: {
47
44
  true: {
48
45
  root: string;
49
46
  };
50
47
  };
51
48
  }, {
52
- /** Only rendered when a `label` or `description` is provided. */
53
49
  wrapper: string;
54
50
  root: string;
55
51
  indicator: string;
@@ -71,14 +67,12 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
71
67
  indicator: string;
72
68
  };
73
69
  };
74
- /** Nudges the box down so it centres against the label's first line. */
75
70
  withText: {
76
71
  true: {
77
72
  root: string;
78
73
  };
79
74
  };
80
75
  }, {
81
- /** Only rendered when a `label` or `description` is provided. */
82
76
  wrapper: string;
83
77
  root: string;
84
78
  indicator: string;
@@ -34,7 +34,6 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
34
34
  };
35
35
  } | {}, {
36
36
  root: string;
37
- /** Saturation/brightness plane. Height is fixed; width follows the root. */
38
37
  area: string;
39
38
  thumb: string;
40
39
  sliderThumb: string;
@@ -43,7 +42,6 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
43
42
  track: string;
44
43
  field: string;
45
44
  input: string;
46
- /** Current colour, shown beside the hex field. Also needs the chequerboard. */
47
45
  preview: string;
48
46
  swatches: string;
49
47
  swatch: string;
@@ -66,7 +64,6 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
66
64
  };
67
65
  } | {}, {
68
66
  root: string;
69
- /** Saturation/brightness plane. Height is fixed; width follows the root. */
70
67
  area: string;
71
68
  thumb: string;
72
69
  sliderThumb: string;
@@ -75,13 +72,11 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
75
72
  track: string;
76
73
  field: string;
77
74
  input: string;
78
- /** Current colour, shown beside the hex field. Also needs the chequerboard. */
79
75
  preview: string;
80
76
  swatches: string;
81
77
  swatch: string;
82
78
  }, import("tailwind-variants").TVReturnType<unknown, {
83
79
  root: string;
84
- /** Saturation/brightness plane. Height is fixed; width follows the root. */
85
80
  area: string;
86
81
  thumb: string;
87
82
  sliderThumb: string;
@@ -90,7 +85,6 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
90
85
  track: string;
91
86
  field: string;
92
87
  input: string;
93
- /** Current colour, shown beside the hex field. Also needs the chequerboard. */
94
88
  preview: string;
95
89
  swatches: string;
96
90
  swatch: string;
@@ -7,7 +7,7 @@ var n = t({
7
7
  input: "min-w-0 grow bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
8
8
  trigger: "flex shrink-0 cursor-pointer items-center text-muted-foreground disabled:cursor-not-allowed [&_svg]:size-4",
9
9
  clear: "flex shrink-0 cursor-pointer items-center rounded-md text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-primary/50 [&_svg]:size-3.5",
10
- tag: "inline-flex shrink-0 items-center rounded-md border border-border bg-background font-medium whitespace-nowrap text-foreground",
10
+ tag: "inline-flex shrink-0 items-center rounded-md border border-border bg-background font-medium whitespace-nowrap text-foreground data-[state=active]:border-primary data-[state=active]:bg-accent",
11
11
  tagText: "truncate",
12
12
  tagDelete: "flex shrink-0 cursor-pointer items-center rounded-sm text-muted-foreground transition-colors outline-none hover:text-danger focus-visible:ring-2 focus-visible:ring-primary/50",
13
13
  content: "z-50 max-h-64 w-(--reka-combobox-trigger-width) min-w-32 overflow-hidden rounded-xl border border-border bg-background text-foreground shadow-md",
@@ -21,17 +21,17 @@ var n = t({
21
21
  variants: {
22
22
  size: {
23
23
  sm: {
24
- anchor: "h-8 px-2.5 text-sm",
24
+ anchor: "h-8 min-h-8 px-2.5 text-sm",
25
25
  tag: "h-5 gap-1 px-1.5 text-xs",
26
26
  tagDelete: "[&_svg]:size-3"
27
27
  },
28
28
  md: {
29
- anchor: "h-9 px-3 text-sm",
29
+ anchor: "h-9 min-h-9 px-3 text-sm",
30
30
  tag: "h-6 gap-1 px-2 text-xs",
31
31
  tagDelete: "[&_svg]:size-3"
32
32
  },
33
33
  lg: {
34
- anchor: "h-10 px-4 text-base",
34
+ anchor: "h-10 min-h-10 px-4 text-base",
35
35
  tag: "h-7 gap-1.5 px-2.5 text-sm",
36
36
  tagDelete: "[&_svg]:size-3.5"
37
37
  }
@@ -46,7 +46,6 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
46
46
  list: string;
47
47
  header: string;
48
48
  icon: string;
49
- /** No border of its own: the header carries the rule. */
50
49
  input: string;
51
50
  viewport: string;
52
51
  group: string;
@@ -54,7 +53,6 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
54
53
  item: string;
55
54
  itemIcon: string;
56
55
  itemLabel: string;
57
- /** A hint, not a control — it never takes the pointer. */
58
56
  shortcut: string;
59
57
  key: string;
60
58
  empty: string;
@@ -86,7 +84,6 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
86
84
  list: string;
87
85
  header: string;
88
86
  icon: string;
89
- /** No border of its own: the header carries the rule. */
90
87
  input: string;
91
88
  viewport: string;
92
89
  group: string;
@@ -94,7 +91,6 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
94
91
  item: string;
95
92
  itemIcon: string;
96
93
  itemLabel: string;
97
- /** A hint, not a control — it never takes the pointer. */
98
94
  shortcut: string;
99
95
  key: string;
100
96
  empty: string;
@@ -105,7 +101,6 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
105
101
  list: string;
106
102
  header: string;
107
103
  icon: string;
108
- /** No border of its own: the header carries the rule. */
109
104
  input: string;
110
105
  viewport: string;
111
106
  group: string;
@@ -113,7 +108,6 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
113
108
  item: string;
114
109
  itemIcon: string;
115
110
  itemLabel: string;
116
- /** A hint, not a control — it never takes the pointer. */
117
111
  shortcut: string;
118
112
  key: string;
119
113
  empty: string;
@@ -12,7 +12,6 @@ export declare const containerTheme: import("tailwind-variants").TVReturnType<{
12
12
  xl: {
13
13
  root: string;
14
14
  };
15
- /** Full bleed. Still centres and still takes the gutter. */
16
15
  full: {
17
16
  root: string;
18
17
  };
@@ -45,7 +44,6 @@ export declare const containerTheme: import("tailwind-variants").TVReturnType<{
45
44
  xl: {
46
45
  root: string;
47
46
  };
48
- /** Full bleed. Still centres and still takes the gutter. */
49
47
  full: {
50
48
  root: string;
51
49
  };
@@ -78,7 +76,6 @@ export declare const containerTheme: import("tailwind-variants").TVReturnType<{
78
76
  xl: {
79
77
  root: string;
80
78
  };
81
- /** Full bleed. Still centres and still takes the gutter. */
82
79
  full: {
83
80
  root: string;
84
81
  };
@@ -12,9 +12,9 @@ var t = e({
12
12
  },
13
13
  gutter: {
14
14
  none: {},
15
- sm: { root: "px-4" },
16
- md: { root: "px-6" },
17
- lg: { root: "px-8" }
15
+ sm: { root: "px-3 sm:px-4" },
16
+ md: { root: "px-4 sm:px-6 lg:px-8" },
17
+ lg: { root: "px-6 sm:px-8 lg:px-12" }
18
18
  }
19
19
  },
20
20
  defaultVariants: {
@@ -0,0 +1,65 @@
1
+ export declare const dateFieldTheme: import("tailwind-variants").TVReturnType<{
2
+ size: {
3
+ sm: {
4
+ root: string;
5
+ };
6
+ md: {
7
+ root: string;
8
+ };
9
+ lg: {
10
+ root: string;
11
+ };
12
+ };
13
+ invalid: {
14
+ true: {
15
+ root: string;
16
+ };
17
+ };
18
+ }, {
19
+ root: string;
20
+ segment: string;
21
+ literal: string;
22
+ }, undefined, {
23
+ size: {
24
+ sm: {
25
+ root: string;
26
+ };
27
+ md: {
28
+ root: string;
29
+ };
30
+ lg: {
31
+ root: string;
32
+ };
33
+ };
34
+ invalid: {
35
+ true: {
36
+ root: string;
37
+ };
38
+ };
39
+ }, {
40
+ root: string;
41
+ segment: string;
42
+ literal: string;
43
+ }, import("tailwind-variants").TVReturnType<{
44
+ size: {
45
+ sm: {
46
+ root: string;
47
+ };
48
+ md: {
49
+ root: string;
50
+ };
51
+ lg: {
52
+ root: string;
53
+ };
54
+ };
55
+ invalid: {
56
+ true: {
57
+ root: string;
58
+ };
59
+ };
60
+ }, {
61
+ root: string;
62
+ segment: string;
63
+ literal: string;
64
+ }, undefined, unknown, unknown, undefined>>;
65
+ export type DateFieldSlots = keyof ReturnType<typeof dateFieldTheme>;
@@ -0,0 +1,21 @@
1
+ import { fieldBase as e } from "./input.js";
2
+ import { tv as t } from "tailwind-variants";
3
+ //#region src/theme/date-field.ts
4
+ var n = t({
5
+ slots: {
6
+ root: `inline-flex items-center gap-0.5 ${e} w-auto focus-within:ring-2 focus-within:ring-primary/50`,
7
+ segment: "rounded px-0.5 text-foreground tabular-nums outline-none focus:bg-primary focus:text-primary-foreground data-[disabled]:cursor-not-allowed",
8
+ literal: "text-muted-foreground"
9
+ },
10
+ variants: {
11
+ size: {
12
+ sm: { root: "h-8 px-2.5 text-sm" },
13
+ md: { root: "h-9 px-3 text-sm" },
14
+ lg: { root: "h-10 px-4 text-base" }
15
+ },
16
+ invalid: { true: { root: "border-red-500 focus-within:ring-red-500/40" } }
17
+ },
18
+ defaultVariants: { size: "md" }
19
+ });
20
+ //#endregion
21
+ export { n as dateFieldTheme };