brd-ui-kit 0.1.73 → 0.1.75

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 (223) hide show
  1. package/dist/brd-ui-kit.css +1 -1
  2. package/dist/calendar-C0DXP3T-.js +3118 -0
  3. package/dist/calendar-C0DXP3T-.js.map +1 -0
  4. package/dist/calendar-DReGV_22.cjs +2 -0
  5. package/dist/calendar-DReGV_22.cjs.map +1 -0
  6. package/dist/calendar-locale-CP2pxhFK.cjs +2 -0
  7. package/dist/calendar-locale-CP2pxhFK.cjs.map +1 -0
  8. package/dist/calendar-locale-DJf03PI9.js +592 -0
  9. package/dist/calendar-locale-DJf03PI9.js.map +1 -0
  10. package/dist/{chart-CgVfpT_X.cjs → chart-C69jBlXa.cjs} +2 -2
  11. package/dist/{chart-CgVfpT_X.cjs.map → chart-C69jBlXa.cjs.map} +1 -1
  12. package/dist/{chart-D15EtNmb.js → chart-CAPCe8o5.js} +3 -3
  13. package/dist/{chart-D15EtNmb.js.map → chart-CAPCe8o5.js.map} +1 -1
  14. package/dist/components/basic-table/basic-table.d.ts +33 -2
  15. package/dist/components/basic-table/index.d.ts +1 -1
  16. package/dist/components/data-table/data-table-actions-column.d.ts +23 -0
  17. package/dist/components/data-table/data-table-bulk-actions.d.ts +20 -0
  18. package/dist/components/data-table/data-table-column-visibility.d.ts +17 -0
  19. package/dist/components/data-table/data-table-editable-column.d.ts +12 -0
  20. package/dist/components/data-table/data-table-filter.d.ts +12 -0
  21. package/dist/components/data-table/data-table-row-actions-column.d.ts +53 -0
  22. package/dist/components/data-table/data-table-select-column.d.ts +2 -0
  23. package/dist/components/data-table/data-table.d.ts +2 -0
  24. package/dist/components/data-table/data-table.styles.d.ts +8 -0
  25. package/dist/components/data-table/index.d.ts +17 -0
  26. package/dist/components/data-table/use-data-table-editable-rows.d.ts +60 -0
  27. package/dist/components/data-table.d.ts +2 -0
  28. package/dist/components/textarea-field/index.d.ts +1 -1
  29. package/dist/components/ui/button/button.styles.d.ts +2 -2
  30. package/dist/components/ui/calendar/calendar.d.ts +14 -10
  31. package/dist/components/ui/calendar/calendar.styles.d.ts +60 -2
  32. package/dist/components/ui/calendar/index.d.ts +3 -2
  33. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +102 -0
  34. package/dist/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +9 -0
  35. package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
  36. package/dist/components/ui/dropdown-menu.d.ts +2 -0
  37. package/dist/components/ui/icon/icon-presets.d.ts +5 -5
  38. package/dist/components/ui/icon/icon.d.ts +2 -1
  39. package/dist/components/ui/pagination/pagination.d.ts +6 -5
  40. package/dist/components/ui/select/select.styles.d.ts +2 -2
  41. package/dist/components/ui/select-calendar-menu/index.d.ts +1 -0
  42. package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +33 -0
  43. package/dist/components/ui/select-calendar-menu.d.ts +2 -0
  44. package/dist/components/ui/toggle/toggle.styles.d.ts +1 -0
  45. package/dist/components/ui/toggle-group/toggle-group.d.ts +4 -3
  46. package/dist/components/ui/toggle-group/toggle-group.styles.d.ts +8 -2
  47. package/dist/components-app-pagination-app-pagination.cjs +1 -1
  48. package/dist/components-app-pagination-app-pagination.cjs.map +1 -1
  49. package/dist/components-app-pagination-app-pagination.js +46 -30
  50. package/dist/components-app-pagination-app-pagination.js.map +1 -1
  51. package/dist/components-app-pagination-app-pagination.styles.cjs +2 -2
  52. package/dist/components-app-pagination-app-pagination.styles.cjs.map +1 -1
  53. package/dist/components-app-pagination-app-pagination.styles.js +12 -12
  54. package/dist/components-app-pagination-app-pagination.styles.js.map +1 -1
  55. package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
  56. package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
  57. package/dist/components-avatar-uploader-avatar-uploader.js +6 -4
  58. package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
  59. package/dist/components-basic-avatar-basic-avatar.cjs +2 -2
  60. package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
  61. package/dist/components-basic-avatar-basic-avatar.js +6 -4
  62. package/dist/components-basic-avatar-basic-avatar.js.map +1 -1
  63. package/dist/components-basic-chart-basic-chart.cjs +1 -1
  64. package/dist/components-basic-chart-basic-chart.js +1 -1
  65. package/dist/components-basic-drawer-basic-drawer.cjs +1 -1
  66. package/dist/components-basic-drawer-basic-drawer.cjs.map +1 -1
  67. package/dist/components-basic-drawer-basic-drawer.js +13 -14
  68. package/dist/components-basic-drawer-basic-drawer.js.map +1 -1
  69. package/dist/components-basic-table-basic-table.cjs +2 -2
  70. package/dist/components-basic-table-basic-table.cjs.map +1 -1
  71. package/dist/components-basic-table-basic-table.js +874 -757
  72. package/dist/components-basic-table-basic-table.js.map +1 -1
  73. package/dist/components-data-table-data-table-actions-column.cjs +2 -0
  74. package/dist/components-data-table-data-table-actions-column.cjs.map +1 -0
  75. package/dist/components-data-table-data-table-actions-column.js +72 -0
  76. package/dist/components-data-table-data-table-actions-column.js.map +1 -0
  77. package/dist/components-data-table-data-table-bulk-actions.cjs +2 -0
  78. package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -0
  79. package/dist/components-data-table-data-table-bulk-actions.js +60 -0
  80. package/dist/components-data-table-data-table-bulk-actions.js.map +1 -0
  81. package/dist/components-data-table-data-table-column-visibility.cjs +3 -0
  82. package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -0
  83. package/dist/components-data-table-data-table-column-visibility.js +100 -0
  84. package/dist/components-data-table-data-table-column-visibility.js.map +1 -0
  85. package/dist/components-data-table-data-table-editable-column.cjs +2 -0
  86. package/dist/components-data-table-data-table-editable-column.cjs.map +1 -0
  87. package/dist/components-data-table-data-table-editable-column.js +15 -0
  88. package/dist/components-data-table-data-table-editable-column.js.map +1 -0
  89. package/dist/components-data-table-data-table-filter.cjs +2 -0
  90. package/dist/components-data-table-data-table-filter.cjs.map +1 -0
  91. package/dist/components-data-table-data-table-filter.js +39 -0
  92. package/dist/components-data-table-data-table-filter.js.map +1 -0
  93. package/dist/components-data-table-data-table-row-actions-column.cjs +2 -0
  94. package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -0
  95. package/dist/components-data-table-data-table-row-actions-column.js +174 -0
  96. package/dist/components-data-table-data-table-row-actions-column.js.map +1 -0
  97. package/dist/components-data-table-data-table-select-column.cjs +2 -0
  98. package/dist/components-data-table-data-table-select-column.cjs.map +1 -0
  99. package/dist/components-data-table-data-table-select-column.js +44 -0
  100. package/dist/components-data-table-data-table-select-column.js.map +1 -0
  101. package/dist/components-data-table-data-table.cjs +2 -0
  102. package/dist/components-data-table-data-table.cjs.map +1 -0
  103. package/dist/components-data-table-data-table.js +37 -0
  104. package/dist/components-data-table-data-table.js.map +1 -0
  105. package/dist/components-data-table-data-table.styles.cjs +4 -0
  106. package/dist/components-data-table-data-table.styles.cjs.map +1 -0
  107. package/dist/components-data-table-data-table.styles.js +22 -0
  108. package/dist/components-data-table-data-table.styles.js.map +1 -0
  109. package/dist/components-data-table-use-data-table-editable-rows.cjs +2 -0
  110. package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -0
  111. package/dist/components-data-table-use-data-table-editable-rows.js +156 -0
  112. package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -0
  113. package/dist/components-data-table.cjs +2 -0
  114. package/dist/components-data-table.cjs.map +1 -0
  115. package/dist/components-data-table.js +21 -0
  116. package/dist/components-data-table.js.map +1 -0
  117. package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
  118. package/dist/components-files-uploader-files-uploader.js.map +1 -1
  119. package/dist/components-input-contact-input-contact.cjs +1 -1
  120. package/dist/components-input-contact-input-contact.cjs.map +1 -1
  121. package/dist/components-input-contact-input-contact.js +6 -4
  122. package/dist/components-input-contact-input-contact.js.map +1 -1
  123. package/dist/components-input-password-input-password.cjs +1 -1
  124. package/dist/components-input-password-input-password.cjs.map +1 -1
  125. package/dist/components-input-password-input-password.js +6 -4
  126. package/dist/components-input-password-input-password.js.map +1 -1
  127. package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
  128. package/dist/components-popover-modal-popover-modal.js +27 -20
  129. package/dist/components-popover-modal-popover-modal.js.map +1 -1
  130. package/dist/components-textarea-field-textarea-field.cjs.map +1 -1
  131. package/dist/components-textarea-field-textarea-field.js.map +1 -1
  132. package/dist/components-ui-button-button.styles.cjs +18 -8
  133. package/dist/components-ui-button-button.styles.cjs.map +1 -1
  134. package/dist/components-ui-button-button.styles.js +49 -33
  135. package/dist/components-ui-button-button.styles.js.map +1 -1
  136. package/dist/components-ui-calendar-calendar.cjs +1 -12
  137. package/dist/components-ui-calendar-calendar.cjs.map +1 -1
  138. package/dist/components-ui-calendar-calendar.js +12 -3757
  139. package/dist/components-ui-calendar-calendar.js.map +1 -1
  140. package/dist/components-ui-calendar-calendar.styles.cjs +17 -13
  141. package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
  142. package/dist/components-ui-calendar-calendar.styles.js +193 -24
  143. package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
  144. package/dist/components-ui-calendar.cjs +1 -1
  145. package/dist/components-ui-calendar.js +3 -2
  146. package/dist/components-ui-calendar.js.map +1 -1
  147. package/dist/components-ui-card-card.styles.cjs +2 -2
  148. package/dist/components-ui-card-card.styles.cjs.map +1 -1
  149. package/dist/components-ui-card-card.styles.js +2 -2
  150. package/dist/components-ui-card-card.styles.js.map +1 -1
  151. package/dist/components-ui-chart-chart.cjs +1 -1
  152. package/dist/components-ui-chart-chart.js +1 -1
  153. package/dist/components-ui-chart.cjs +1 -1
  154. package/dist/components-ui-chart.js +1 -1
  155. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +3 -0
  156. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -0
  157. package/dist/components-ui-dropdown-menu-dropdown-menu.js +293 -0
  158. package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -0
  159. package/dist/components-ui-dropdown-menu-dropdown-menu.styles.cjs +29 -0
  160. package/dist/components-ui-dropdown-menu-dropdown-menu.styles.cjs.map +1 -0
  161. package/dist/components-ui-dropdown-menu-dropdown-menu.styles.js +43 -0
  162. package/dist/components-ui-dropdown-menu-dropdown-menu.styles.js.map +1 -0
  163. package/dist/components-ui-dropdown-menu.cjs +2 -0
  164. package/dist/components-ui-dropdown-menu.cjs.map +1 -0
  165. package/dist/components-ui-dropdown-menu.js +17 -0
  166. package/dist/components-ui-dropdown-menu.js.map +1 -0
  167. package/dist/components-ui-field-field.cjs +1 -1
  168. package/dist/components-ui-field-field.cjs.map +1 -1
  169. package/dist/components-ui-field-field.js +14 -14
  170. package/dist/components-ui-field-field.js.map +1 -1
  171. package/dist/components-ui-icon-icon-presets.cjs +1 -1
  172. package/dist/components-ui-icon-icon-presets.cjs.map +1 -1
  173. package/dist/components-ui-icon-icon-presets.js +3 -3
  174. package/dist/components-ui-icon-icon-presets.js.map +1 -1
  175. package/dist/components-ui-icon-icon.cjs +1 -1
  176. package/dist/components-ui-icon-icon.cjs.map +1 -1
  177. package/dist/components-ui-icon-icon.js +2621 -3595
  178. package/dist/components-ui-icon-icon.js.map +1 -1
  179. package/dist/components-ui-input-group-input-group.cjs.map +1 -1
  180. package/dist/components-ui-input-group-input-group.js.map +1 -1
  181. package/dist/components-ui-pagination-pagination.cjs +2 -1
  182. package/dist/components-ui-pagination-pagination.cjs.map +1 -1
  183. package/dist/components-ui-pagination-pagination.js +93 -62
  184. package/dist/components-ui-pagination-pagination.js.map +1 -1
  185. package/dist/components-ui-popover-popover.cjs.map +1 -1
  186. package/dist/components-ui-popover-popover.js +24 -14
  187. package/dist/components-ui-popover-popover.js.map +1 -1
  188. package/dist/components-ui-popover-popover.styles.cjs.map +1 -1
  189. package/dist/components-ui-popover-popover.styles.js.map +1 -1
  190. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +2 -0
  191. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -0
  192. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +138 -0
  193. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -0
  194. package/dist/components-ui-select-calendar-menu.cjs +2 -0
  195. package/dist/components-ui-select-calendar-menu.cjs.map +1 -0
  196. package/dist/components-ui-select-calendar-menu.js +5 -0
  197. package/dist/components-ui-select-calendar-menu.js.map +1 -0
  198. package/dist/components-ui-select-select.cjs.map +1 -1
  199. package/dist/components-ui-select-select.js.map +1 -1
  200. package/dist/components-ui-select-select.styles.cjs +2 -2
  201. package/dist/components-ui-select-select.styles.cjs.map +1 -1
  202. package/dist/components-ui-select-select.styles.js +5 -5
  203. package/dist/components-ui-select-select.styles.js.map +1 -1
  204. package/dist/components-ui-sonner-sonner.styles.cjs.map +1 -1
  205. package/dist/components-ui-sonner-sonner.styles.js.map +1 -1
  206. package/dist/components-ui-toggle-group-toggle-group.cjs +1 -1
  207. package/dist/components-ui-toggle-group-toggle-group.cjs.map +1 -1
  208. package/dist/components-ui-toggle-group-toggle-group.js +52 -42
  209. package/dist/components-ui-toggle-group-toggle-group.js.map +1 -1
  210. package/dist/components-ui-toggle-group-toggle-group.styles.cjs +1 -17
  211. package/dist/components-ui-toggle-group-toggle-group.styles.cjs.map +1 -1
  212. package/dist/components-ui-toggle-group-toggle-group.styles.js +53 -30
  213. package/dist/components-ui-toggle-group-toggle-group.styles.js.map +1 -1
  214. package/dist/components-ui-toggle-toggle.styles.cjs +6 -11
  215. package/dist/components-ui-toggle-toggle.styles.cjs.map +1 -1
  216. package/dist/components-ui-toggle-toggle.styles.js +16 -18
  217. package/dist/components-ui-toggle-toggle.styles.js.map +1 -1
  218. package/dist/constants/calendar-locale.d.ts +5 -0
  219. package/dist/index.cjs +1 -1
  220. package/dist/index.d.ts +9 -2
  221. package/dist/index.js +223 -188
  222. package/dist/index.js.map +1 -1
  223. package/package.json +44 -17
@@ -0,0 +1,293 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import "@radix-ui/react-accessible-icon";
4
+ import "@radix-ui/react-accordion";
5
+ import "@radix-ui/react-alert-dialog";
6
+ import "@radix-ui/react-aspect-ratio";
7
+ import "@radix-ui/react-avatar";
8
+ import "@radix-ui/react-checkbox";
9
+ import "@radix-ui/react-collapsible";
10
+ import "@radix-ui/react-context-menu";
11
+ import "@radix-ui/react-dialog";
12
+ import "@radix-ui/react-direction";
13
+ import * as a from "@radix-ui/react-dropdown-menu";
14
+ import "@radix-ui/react-form";
15
+ import "@radix-ui/react-hover-card";
16
+ import "@radix-ui/react-label";
17
+ import "@radix-ui/react-menubar";
18
+ import "@radix-ui/react-navigation-menu";
19
+ import "@radix-ui/react-one-time-password-field";
20
+ import "@radix-ui/react-password-toggle-field";
21
+ import "@radix-ui/react-popover";
22
+ import "@radix-ui/react-portal";
23
+ import "@radix-ui/react-progress";
24
+ import "@radix-ui/react-radio-group";
25
+ import "@radix-ui/react-scroll-area";
26
+ import "@radix-ui/react-select";
27
+ import "@radix-ui/react-separator";
28
+ import "@radix-ui/react-slider";
29
+ import "@radix-ui/react-slot";
30
+ import "@radix-ui/react-switch";
31
+ import "@radix-ui/react-tabs";
32
+ import "@radix-ui/react-toast";
33
+ import "@radix-ui/react-toggle";
34
+ import "@radix-ui/react-toggle-group";
35
+ import "@radix-ui/react-toolbar";
36
+ import "@radix-ui/react-tooltip";
37
+ import "@radix-ui/react-visually-hidden";
38
+ import { Icon as m } from "./components-ui-icon-icon.js";
39
+ import { cn as d } from "./lib-utils.js";
40
+ import { dropdownMenuIconClassName as p, dropdownMenuItemClassName as h, dropdownMenuContentClassName as f, dropdownMenuLabelClassName as M, dropdownMenuSeparatorClassName as y, dropdownMenuSubTriggerClassName as x, dropdownMenuReadonlyItemTextClassName as k, dropdownMenuItemTextClassName as D, dropdownMenuShortcutClassName as I } from "./components-ui-dropdown-menu-dropdown-menu.styles.js";
41
+ function b({ ...e }) {
42
+ return /* @__PURE__ */ r(
43
+ a.Root,
44
+ {
45
+ "data-slot": "dropdown-menu",
46
+ ...e
47
+ }
48
+ );
49
+ }
50
+ function w({ ...e }) {
51
+ return /* @__PURE__ */ r(
52
+ a.Trigger,
53
+ {
54
+ "data-slot": "dropdown-menu-trigger",
55
+ ...e
56
+ }
57
+ );
58
+ }
59
+ function N({
60
+ className: e,
61
+ sideOffset: n = 4,
62
+ align: t = "end",
63
+ ...l
64
+ }) {
65
+ return /* @__PURE__ */ r(a.Portal, { children: /* @__PURE__ */ r(
66
+ a.Content,
67
+ {
68
+ "data-slot": "dropdown-menu-content",
69
+ sideOffset: n,
70
+ align: t,
71
+ className: d(f, e),
72
+ ...l
73
+ }
74
+ ) });
75
+ }
76
+ function S({ className: e, ...n }) {
77
+ return /* @__PURE__ */ r(
78
+ a.Item,
79
+ {
80
+ "data-slot": "dropdown-menu-item",
81
+ className: d(h, e),
82
+ ...n
83
+ }
84
+ );
85
+ }
86
+ function T({
87
+ className: e,
88
+ children: n,
89
+ checked: t,
90
+ itemIndicator: l,
91
+ closeOnSelect: c = !0,
92
+ onSelect: o,
93
+ ...u
94
+ }) {
95
+ const C = l !== null;
96
+ return /* @__PURE__ */ s(
97
+ a.CheckboxItem,
98
+ {
99
+ "data-slot": "dropdown-menu-checkbox-item",
100
+ className: d(h, "border-none", e),
101
+ checked: t,
102
+ onSelect: (i) => {
103
+ o?.(i), !c && !i.defaultPrevented && i.preventDefault();
104
+ },
105
+ ...u,
106
+ children: [
107
+ C && /* @__PURE__ */ r(a.ItemIndicator, { children: l ?? /* @__PURE__ */ r(
108
+ m,
109
+ {
110
+ type: "check",
111
+ size: "small",
112
+ className: p
113
+ }
114
+ ) }),
115
+ n
116
+ ]
117
+ }
118
+ );
119
+ }
120
+ function ge({
121
+ trigger: e,
122
+ items: n,
123
+ onItemCheckedChange: t,
124
+ contentProps: l,
125
+ keepOpenOnItemSelect: c = !0
126
+ }) {
127
+ return /* @__PURE__ */ s(b, { children: [
128
+ /* @__PURE__ */ r(w, { asChild: !0, children: e }),
129
+ /* @__PURE__ */ r(N, { ...l, children: n.map((o) => /* @__PURE__ */ r(
130
+ T,
131
+ {
132
+ checked: o.checked,
133
+ disabled: o.disabled,
134
+ className: d(o.className, o.checked && o.checkedClassName),
135
+ textValue: o.textValue,
136
+ itemIndicator: o.itemIndicator,
137
+ closeOnSelect: !c,
138
+ onCheckedChange: (u) => t(o.key, u === !0),
139
+ children: /* @__PURE__ */ s(
140
+ "div",
141
+ {
142
+ className: d(
143
+ "flex w-full items-center gap-2",
144
+ (o.endAdornment || o.checkedEndAdornment) && "justify-between"
145
+ ),
146
+ children: [
147
+ /* @__PURE__ */ r("span", { children: o.label }),
148
+ o.checked ? o.checkedEndAdornment ?? o.endAdornment : o.endAdornment
149
+ ]
150
+ }
151
+ )
152
+ },
153
+ o.key
154
+ )) })
155
+ ] });
156
+ }
157
+ function O({ className: e, ...n }) {
158
+ return /* @__PURE__ */ r(
159
+ a.Label,
160
+ {
161
+ "data-slot": "dropdown-menu-label",
162
+ className: d(M, e),
163
+ ...n
164
+ }
165
+ );
166
+ }
167
+ function j({ className: e, ...n }) {
168
+ return /* @__PURE__ */ r(
169
+ a.Separator,
170
+ {
171
+ "data-slot": "dropdown-menu-separator",
172
+ className: d(y, e),
173
+ ...n
174
+ }
175
+ );
176
+ }
177
+ function v({ className: e, ...n }) {
178
+ return /* @__PURE__ */ r(
179
+ a.SubTrigger,
180
+ {
181
+ "data-slot": "dropdown-menu-sub-trigger",
182
+ className: d(x, e),
183
+ ...n
184
+ }
185
+ );
186
+ }
187
+ function A({
188
+ className: e,
189
+ sideOffset: n = 4,
190
+ ...t
191
+ }) {
192
+ return /* @__PURE__ */ r(a.Portal, { children: /* @__PURE__ */ r(
193
+ a.SubContent,
194
+ {
195
+ "data-slot": "dropdown-menu-sub-content",
196
+ sideOffset: n,
197
+ className: d(f, e),
198
+ ...t
199
+ }
200
+ ) });
201
+ }
202
+ function L(e) {
203
+ return e.icon ? /* @__PURE__ */ r("span", { className: p, children: e.icon }) : e.iconType ? /* @__PURE__ */ r(
204
+ m,
205
+ {
206
+ type: e.iconType,
207
+ className: d(p, e.alert && "text-error-text")
208
+ }
209
+ ) : null;
210
+ }
211
+ function g(e, n) {
212
+ const t = e.id ?? e.type + ("label" in e ? e.label : "");
213
+ if (e.type === "separator")
214
+ return /* @__PURE__ */ r(j, {}, t);
215
+ if (e.type === "label")
216
+ return /* @__PURE__ */ r(O, { children: e.label }, t);
217
+ const l = e.readOnly ? null : L(e);
218
+ return e.children?.length ? /* @__PURE__ */ s(a.Sub, { children: [
219
+ /* @__PURE__ */ s(v, { disabled: e.disabled, children: [
220
+ /* @__PURE__ */ s("span", { className: "flex items-center gap-2", children: [
221
+ l,
222
+ /* @__PURE__ */ r("span", { children: e.label })
223
+ ] }),
224
+ /* @__PURE__ */ r(
225
+ m,
226
+ {
227
+ type: "caret-right",
228
+ size: "small",
229
+ className: p
230
+ }
231
+ )
232
+ ] }),
233
+ /* @__PURE__ */ r(A, { children: e.children.map((c) => g(c, n)) })
234
+ ] }, t) : /* @__PURE__ */ s(
235
+ S,
236
+ {
237
+ disabled: e.disabled,
238
+ className: d(
239
+ e.readOnly && `pointer-events-none cursor-default justify-center
240
+ data-[highlighted]:bg-transparent`,
241
+ e.alert && "text-error-text"
242
+ ),
243
+ onSelect: (c) => {
244
+ if (e.readOnly) {
245
+ c.preventDefault();
246
+ return;
247
+ }
248
+ e.onSelect?.(), n?.(e);
249
+ },
250
+ children: [
251
+ l,
252
+ /* @__PURE__ */ r(
253
+ "span",
254
+ {
255
+ className: d(
256
+ D,
257
+ e.readOnly && k
258
+ ),
259
+ children: e.label
260
+ }
261
+ ),
262
+ e.shortcut && !e.readOnly ? /* @__PURE__ */ r("span", { className: I, children: e.shortcut }) : null
263
+ ]
264
+ },
265
+ t
266
+ );
267
+ }
268
+ function Ce({
269
+ trigger: e,
270
+ items: n,
271
+ onAction: t,
272
+ contentProps: l
273
+ }) {
274
+ return /* @__PURE__ */ s(b, { children: [
275
+ /* @__PURE__ */ r(w, { asChild: !0, children: e }),
276
+ /* @__PURE__ */ r(N, { ...l, children: n.map((c) => g(c, t)) })
277
+ ] });
278
+ }
279
+ export {
280
+ ge as CheckboxDropdownMenu,
281
+ Ce as ConfigurableDropdownMenu,
282
+ b as DropdownMenu,
283
+ T as DropdownMenuCheckboxItem,
284
+ N as DropdownMenuContent,
285
+ S as DropdownMenuItem,
286
+ O as DropdownMenuLabel,
287
+ a as DropdownMenuPrimitive,
288
+ j as DropdownMenuSeparator,
289
+ A as DropdownMenuSubContent,
290
+ v as DropdownMenuSubTrigger,
291
+ w as DropdownMenuTrigger
292
+ };
293
+ //# sourceMappingURL=components-ui-dropdown-menu-dropdown-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-ui-dropdown-menu-dropdown-menu.js","sources":["../src/components/ui/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { DropdownMenu as DropdownMenuPrimitive } from \"radix-ui\";\nimport type { IconName } from \"phosphor-strokes-icons/by-name\";\n\nimport { Icon } from \"@/components/ui/icon\";\nimport { cn } from \"@/lib/utils\";\nimport {\n dropdownMenuContentClassName,\n dropdownMenuIconClassName,\n dropdownMenuItemClassName,\n dropdownMenuLabelClassName,\n dropdownMenuSeparatorClassName,\n dropdownMenuShortcutClassName,\n dropdownMenuSubTriggerClassName,\n dropdownMenuItemTextClassName,\n dropdownMenuReadonlyItemTextClassName,\n} from \"./dropdown-menu.styles\";\n\ntype DropdownMenuRef = React.ComponentRef<typeof DropdownMenuPrimitive.Root>;\ntype DropdownMenuProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Root\n> & {\n ref?: React.Ref<DropdownMenuRef>;\n};\n\ntype DropdownMenuTriggerRef = React.ComponentRef<typeof DropdownMenuPrimitive.Trigger>;\ntype DropdownMenuTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Trigger\n> & {\n ref?: React.Ref<DropdownMenuTriggerRef>;\n};\n\ntype DropdownMenuContentRef = React.ComponentRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n ref?: React.Ref<DropdownMenuContentRef>;\n};\n\ntype DropdownMenuItemRef = React.ComponentRef<typeof DropdownMenuPrimitive.Item>;\ntype DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n ref?: React.Ref<DropdownMenuItemRef>;\n};\n\ntype DropdownMenuCheckboxItemRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n>;\ntype DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n ref?: React.Ref<DropdownMenuCheckboxItemRef>;\n itemIndicator?: React.ReactNode;\n closeOnSelect?: boolean;\n};\n\ntype DropdownMenuLabelRef = React.ComponentRef<typeof DropdownMenuPrimitive.Label>;\ntype DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n ref?: React.Ref<DropdownMenuLabelRef>;\n};\n\ntype DropdownMenuSeparatorRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.Separator\n>;\ntype DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n ref?: React.Ref<DropdownMenuSeparatorRef>;\n};\n\ntype DropdownMenuSubTriggerRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.SubTrigger\n>;\ntype DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n ref?: React.Ref<DropdownMenuSubTriggerRef>;\n};\n\ntype DropdownMenuSubContentRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.SubContent\n>;\ntype DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n ref?: React.Ref<DropdownMenuSubContentRef>;\n};\n\ntype DropdownMenuCheckboxOption = {\n key: string;\n label: React.ReactNode;\n checked: boolean;\n disabled?: boolean;\n className?: string;\n checkedClassName?: string;\n textValue?: string;\n itemIndicator?: React.ReactNode;\n endAdornment?: React.ReactNode;\n checkedEndAdornment?: React.ReactNode;\n};\n\ntype CheckboxDropdownMenuProps = {\n trigger: React.ReactNode;\n items: DropdownMenuCheckboxOption[];\n onItemCheckedChange: (key: string, checked: boolean) => void;\n contentProps?: Omit<DropdownMenuContentProps, \"children\">;\n keepOpenOnItemSelect?: boolean;\n};\n\nfunction DropdownMenu({ ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root\n data-slot=\"dropdown-menu\"\n {...props}\n />\n );\n}\n\nfunction DropdownMenuTrigger({ ...props }: DropdownMenuTriggerProps) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n );\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n align = \"end\",\n ...props\n}: DropdownMenuContentProps) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n align={align}\n className={cn(dropdownMenuContentClassName, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuItem({ className, ...props }: DropdownMenuItemProps) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n className={cn(dropdownMenuItemClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n itemIndicator,\n closeOnSelect = true,\n onSelect,\n ...props\n}: DropdownMenuCheckboxItemProps) {\n const shouldRenderIndicator = itemIndicator !== null;\n\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(dropdownMenuItemClassName, \"border-none\", className)}\n checked={checked}\n onSelect={(event) => {\n onSelect?.(event);\n\n if (!closeOnSelect && !event.defaultPrevented) {\n event.preventDefault();\n }\n }}\n {...props}\n >\n {shouldRenderIndicator && (\n <DropdownMenuPrimitive.ItemIndicator>\n {itemIndicator ?? (\n <Icon\n type=\"check\"\n size=\"small\"\n className={dropdownMenuIconClassName}\n />\n )}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction CheckboxDropdownMenu({\n trigger,\n items,\n onItemCheckedChange,\n contentProps,\n keepOpenOnItemSelect = true,\n}: CheckboxDropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent {...contentProps}>\n {items.map((item) => (\n <DropdownMenuCheckboxItem\n key={item.key}\n checked={item.checked}\n disabled={item.disabled}\n className={cn(item.className, item.checked && item.checkedClassName)}\n textValue={item.textValue}\n itemIndicator={item.itemIndicator}\n closeOnSelect={!keepOpenOnItemSelect}\n onCheckedChange={(checked) => onItemCheckedChange(item.key, checked === true)}\n >\n <div\n className={cn(\n \"flex w-full items-center gap-2\",\n (item.endAdornment || item.checkedEndAdornment) && \"justify-between\",\n )}\n >\n <span>{item.label}</span>\n {item.checked\n ? (item.checkedEndAdornment ?? item.endAdornment)\n : item.endAdornment}\n </div>\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nfunction DropdownMenuLabel({ className, ...props }: DropdownMenuLabelProps) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n className={cn(dropdownMenuLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(dropdownMenuSeparatorClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSubTrigger({ className, ...props }: DropdownMenuSubTriggerProps) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n className={cn(dropdownMenuSubTriggerClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n sideOffset = 4,\n ...props\n}: DropdownMenuSubContentProps) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n sideOffset={sideOffset}\n className={cn(dropdownMenuContentClassName, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\ntype DropdownMenuConfigBase = {\n id?: string;\n disabled?: boolean;\n readOnly?: boolean;\n};\n\ntype DropdownMenuConfigLabel = DropdownMenuConfigBase & {\n type: \"label\";\n label: string;\n};\n\ntype DropdownMenuConfigSeparator = DropdownMenuConfigBase & {\n type: \"separator\";\n};\n\ntype DropdownMenuConfigItem = DropdownMenuConfigBase & {\n type?: \"item\";\n label: string;\n icon?: React.ReactNode;\n iconType?: IconName;\n shortcut?: string;\n alert?: boolean;\n children?: DropdownMenuConfigNode[];\n onSelect?: () => void;\n};\n\ntype DropdownMenuConfigNode =\n | DropdownMenuConfigLabel\n | DropdownMenuConfigSeparator\n | DropdownMenuConfigItem;\n\ntype ConfigurableDropdownMenuProps = {\n trigger: React.ReactNode;\n items: DropdownMenuConfigNode[];\n onAction?: (item: DropdownMenuConfigItem) => void;\n contentProps?: Omit<DropdownMenuContentProps, \"children\">;\n};\n\nfunction renderLeadingIcon(item: DropdownMenuConfigItem) {\n if (item.icon) {\n return <span className={dropdownMenuIconClassName}>{item.icon}</span>;\n }\n\n if (item.iconType) {\n return (\n <Icon\n type={item.iconType}\n className={cn(dropdownMenuIconClassName, item.alert && \"text-error-text\")}\n />\n );\n }\n\n return null;\n}\n\nfunction renderConfigNode(\n item: DropdownMenuConfigNode,\n onAction?: (item: DropdownMenuConfigItem) => void,\n) {\n const key = item.id ?? item.type + (\"label\" in item ? item.label : \"\");\n\n if (item.type === \"separator\") {\n return <DropdownMenuSeparator key={key} />;\n }\n\n if (item.type === \"label\") {\n return <DropdownMenuLabel key={key}>{item.label}</DropdownMenuLabel>;\n }\n\n const iconNode = item.readOnly ? null : renderLeadingIcon(item);\n\n if (item.children?.length) {\n return (\n <DropdownMenuPrimitive.Sub key={key}>\n <DropdownMenuSubTrigger disabled={item.disabled}>\n <span className=\"flex items-center gap-2\">\n {iconNode}\n <span>{item.label}</span>\n </span>\n <Icon\n type=\"caret-right\"\n size=\"small\"\n className={dropdownMenuIconClassName}\n />\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n {item.children.map((child) => renderConfigNode(child, onAction))}\n </DropdownMenuSubContent>\n </DropdownMenuPrimitive.Sub>\n );\n }\n\n return (\n <DropdownMenuItem\n key={key}\n disabled={item.disabled}\n className={cn(\n item.readOnly &&\n `pointer-events-none cursor-default justify-center\n data-[highlighted]:bg-transparent`,\n item.alert && \"text-error-text\",\n )}\n onSelect={(event) => {\n if (item.readOnly) {\n event.preventDefault();\n return;\n }\n\n item.onSelect?.();\n onAction?.(item);\n }}\n >\n {iconNode}\n <span\n className={cn(\n dropdownMenuItemTextClassName,\n item.readOnly && dropdownMenuReadonlyItemTextClassName,\n )}\n >\n {item.label}\n </span>\n {item.shortcut && !item.readOnly ? (\n <span className={dropdownMenuShortcutClassName}>{item.shortcut}</span>\n ) : null}\n </DropdownMenuItem>\n );\n}\n\nfunction ConfigurableDropdownMenu({\n trigger,\n items,\n onAction,\n contentProps,\n}: ConfigurableDropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent {...contentProps}>\n {items.map((item) => renderConfigNode(item, onAction))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuCheckboxItem,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPrimitive,\n DropdownMenuSeparator,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n ConfigurableDropdownMenu,\n CheckboxDropdownMenu,\n};\n\nexport type {\n ConfigurableDropdownMenuProps,\n DropdownMenuConfigItem,\n DropdownMenuConfigLabel,\n DropdownMenuConfigNode,\n DropdownMenuConfigSeparator,\n DropdownMenuContentProps,\n DropdownMenuCheckboxItemProps,\n DropdownMenuCheckboxOption,\n DropdownMenuItemProps,\n DropdownMenuLabelProps,\n DropdownMenuProps,\n DropdownMenuSeparatorProps,\n DropdownMenuSubContentProps,\n DropdownMenuSubTriggerProps,\n DropdownMenuTriggerProps,\n CheckboxDropdownMenuProps,\n};\n"],"names":["DropdownMenu","props","jsx","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","cn","dropdownMenuContentClassName","DropdownMenuItem","dropdownMenuItemClassName","DropdownMenuCheckboxItem","children","checked","itemIndicator","closeOnSelect","onSelect","shouldRenderIndicator","jsxs","event","Icon","dropdownMenuIconClassName","CheckboxDropdownMenu","trigger","items","onItemCheckedChange","contentProps","keepOpenOnItemSelect","item","DropdownMenuLabel","dropdownMenuLabelClassName","DropdownMenuSeparator","dropdownMenuSeparatorClassName","DropdownMenuSubTrigger","dropdownMenuSubTriggerClassName","DropdownMenuSubContent","renderLeadingIcon","renderConfigNode","onAction","key","iconNode","child","dropdownMenuItemTextClassName","dropdownMenuReadonlyItemTextClassName","dropdownMenuShortcutClassName","ConfigurableDropdownMenu"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHA,SAASA,EAAa,EAAE,GAAGC,KAA4B;AACrD,SACE,gBAAAC;AAAA,IAACC,EAAsB;AAAA,IAAtB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,EAAoB,EAAE,GAAGH,KAAmC;AACnE,SACE,gBAAAC;AAAA,IAACC,EAAsB;AAAA,IAAtB;AAAA,MACC,aAAU;A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AAA,cACAd,EAAK,YAAYe;AAAA,YAAA;AAAA,YAGlB,UAAAf,EAAK;AAAA,UAAA;AAAA,QAAA;AAAA,QAEPA,EAAK,YAAY,CAACA,EAAK,WACtB,gBAAA5B,EAAC,QAAA,EAAK,WAAW4C,GAAgC,UAAAhB,EAAK,SAAA,CAAS,IAC7D;AAAA,MAAA;AAAA,IAAA;AAAA,IA7BCW;AAAA,EAAA;AAgCX;AAEA,SAASM,GAAyB;AAAA,EAChC,SAAAtB;AAAA,EACA,OAAAC;AAAA,EACA,UAAAc;AAAA,EACA,cAAAZ;AACF,GAAkC;AAChC,2BACG5B,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAE,EAACE,GAAA,EAAoB,SAAO,IAAE,UAAAqB,GAAQ;AAAA,IACtC,gBAAAvB,EAACG,GAAA,EAAqB,GAAGuB,GACtB,UAAAF,EAAM,IAAI,CAACI,MAASS,EAAiBT,GAAMU,CAAQ,CAAC,EAAA,CACvD;AAAA,EAAA,GACF;AAEJ;"}
@@ -0,0 +1,29 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");require("./lib-utils.cjs");const e=require("./components-ui-typography-typography.styles.cjs"),a=`
2
+ z-50 min-w-fit overflow-hidden rounded-sm bg-primary-bg py-2
3
+ text-primary-text shadow-[0_0.25rem_1.125rem_0_rgb(0_0_0_/_15%)]
4
+ data-[state=open]:animate-in data-[state=closed]:animate-out
5
+ data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0
6
+ data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
7
+ data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2
8
+ data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
9
+ `+e.getTypographyClassName("body-xs-medium"),t=`
10
+ relative flex cursor-pointer select-none rounded-sm items-center gap-4 px-3 py-1.5
11
+ text-sm outline-none transition-colors
12
+ data-[disabled]:pointer-events-none data-[disabled]:bg-disabled-bg data-[disabled]:text-disabled-text
13
+ data-[highlighted]:bg-primary-hover-bg data-[state=open]:bg-negotiation-bg"
14
+ `,o=`
15
+ ${t}
16
+ justify-between
17
+ data-[state=open]:bg-negotiation-bg
18
+ `,n=`
19
+ text-center pr-0
20
+ `,s=`
21
+ px-3 py-1.5 text-secondary-text
22
+ `+e.getTypographyClassName("body-xs-medium"),d="pr-5",r=`
23
+ my-1 h-[0.125rem] bg-delicate-border transform scale-y-50
24
+ `,i=`
25
+ ml-auto text-secondary-text
26
+ `,m=`
27
+ shrink-0 text-secondary-text
28
+ `;exports.dropdownMenuContentClassName=a;exports.dropdownMenuIconClassName=m;exports.dropdownMenuItemClassName=t;exports.dropdownMenuItemTextClassName=d;exports.dropdownMenuLabelClassName=s;exports.dropdownMenuReadonlyItemTextClassName=n;exports.dropdownMenuSeparatorClassName=r;exports.dropdownMenuShortcutClassName=i;exports.dropdownMenuSubTriggerClassName=o;
29
+ //# sourceMappingURL=components-ui-dropdown-menu-dropdown-menu.styles.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-ui-dropdown-menu-dropdown-menu.styles.cjs","sources":["../src/components/ui/dropdown-menu/dropdown-menu.styles.ts"],"sourcesContent":["import { getTypographyClassName } from \"../typography\";\n\nexport const dropdownMenuContentClassName =\n `\n z-50 min-w-fit overflow-hidden rounded-sm bg-primary-bg py-2\n text-primary-text shadow-[0_0.25rem_1.125rem_0_rgb(0_0_0_/_15%)]\n data-[state=open]:animate-in data-[state=closed]:animate-out\n data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\n data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\n data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\n` + getTypographyClassName(\"body-xs-medium\");\n\nexport const dropdownMenuItemClassName = `\n relative flex cursor-pointer select-none rounded-sm items-center gap-4 px-3 py-1.5\n text-sm outline-none transition-colors\n data-[disabled]:pointer-events-none data-[disabled]:bg-disabled-bg data-[disabled]:text-disabled-text\n data-[highlighted]:bg-primary-hover-bg data-[state=open]:bg-negotiation-bg\"\n`;\n\nexport const dropdownMenuSubTriggerClassName = `\n ${dropdownMenuItemClassName}\n justify-between\n data-[state=open]:bg-negotiation-bg\n`;\n\nexport const dropdownMenuReadonlyItemTextClassName = `\n text-center pr-0\n`;\n\nexport const dropdownMenuLabelClassName =\n `\n px-3 py-1.5 text-secondary-text\n` + getTypographyClassName(\"body-xs-medium\");\n\nexport const dropdownMenuItemTextClassName = `pr-5`;\n\nexport const dropdownMenuSeparatorClassName = `\n my-1 h-[0.125rem] bg-delicate-border transform scale-y-50\n`; // элемент стоит не на целых координатах (x/y = 0.5), и 1px размазывается. Scale фиксит\n\nexport const dropdownMenuShortcutClassName = `\n ml-auto text-secondary-text\n`;\n\nexport const dropdownMenuIconClassName = `\n shrink-0 text-secondary-text\n`;\n"],"names":["dropdownMenuContentClassName","getTypographyClassName","dropdownMenuItemClassName","dropdownMenuSubTriggerClassName","dropdownMenuReadonlyItemTextClassName","dropdownMenuLabelClassName","dropdownMenuItemTextClassName","dropdownMenuSeparatorClassName","dropdownMenuShortcutClassName","dropdownMenuIconClassName"],"mappings":"gMAEaA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQEC,EAAAA,uBAAuB,gBAAgB,EAE9BC,EAA4B;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5BC,EAAkC;AAAA,IAC3CD,CAAyB;AAAA;AAAA;AAAA,EAKhBE,EAAwC;AAAA;AAAA,EAIxCC,EACX;AAAA;AAAA,EAEEJ,EAAAA,uBAAuB,gBAAgB,EAE9BK,EAAgC,OAEhCC,EAAiC;AAAA;AAAA,EAIjCC,EAAgC;AAAA;AAAA,EAIhCC,EAA4B;AAAA;AAAA"}
@@ -0,0 +1,43 @@
1
+ import "react";
2
+ import "./lib-utils.js";
3
+ import { getTypographyClassName as e } from "./components-ui-typography-typography.styles.js";
4
+ const n = `
5
+ z-50 min-w-fit overflow-hidden rounded-sm bg-primary-bg py-2
6
+ text-primary-text shadow-[0_0.25rem_1.125rem_0_rgb(0_0_0_/_15%)]
7
+ data-[state=open]:animate-in data-[state=closed]:animate-out
8
+ data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0
9
+ data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
10
+ data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2
11
+ data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2
12
+ ` + e("body-xs-medium"), t = `
13
+ relative flex cursor-pointer select-none rounded-sm items-center gap-4 px-3 py-1.5
14
+ text-sm outline-none transition-colors
15
+ data-[disabled]:pointer-events-none data-[disabled]:bg-disabled-bg data-[disabled]:text-disabled-text
16
+ data-[highlighted]:bg-primary-hover-bg data-[state=open]:bg-negotiation-bg"
17
+ `, s = `
18
+ ${t}
19
+ justify-between
20
+ data-[state=open]:bg-negotiation-bg
21
+ `, r = `
22
+ text-center pr-0
23
+ `, i = `
24
+ px-3 py-1.5 text-secondary-text
25
+ ` + e("body-xs-medium"), m = "pr-5", l = `
26
+ my-1 h-[0.125rem] bg-delicate-border transform scale-y-50
27
+ `, p = `
28
+ ml-auto text-secondary-text
29
+ `, b = `
30
+ shrink-0 text-secondary-text
31
+ `;
32
+ export {
33
+ n as dropdownMenuContentClassName,
34
+ b as dropdownMenuIconClassName,
35
+ t as dropdownMenuItemClassName,
36
+ m as dropdownMenuItemTextClassName,
37
+ i as dropdownMenuLabelClassName,
38
+ r as dropdownMenuReadonlyItemTextClassName,
39
+ l as dropdownMenuSeparatorClassName,
40
+ p as dropdownMenuShortcutClassName,
41
+ s as dropdownMenuSubTriggerClassName
42
+ };
43
+ //# sourceMappingURL=components-ui-dropdown-menu-dropdown-menu.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-ui-dropdown-menu-dropdown-menu.styles.js","sources":["../src/components/ui/dropdown-menu/dropdown-menu.styles.ts"],"sourcesContent":["import { getTypographyClassName } from \"../typography\";\n\nexport const dropdownMenuContentClassName =\n `\n z-50 min-w-fit overflow-hidden rounded-sm bg-primary-bg py-2\n text-primary-text shadow-[0_0.25rem_1.125rem_0_rgb(0_0_0_/_15%)]\n data-[state=open]:animate-in data-[state=closed]:animate-out\n data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\n data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\n data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\n` + getTypographyClassName(\"body-xs-medium\");\n\nexport const dropdownMenuItemClassName = `\n relative flex cursor-pointer select-none rounded-sm items-center gap-4 px-3 py-1.5\n text-sm outline-none transition-colors\n data-[disabled]:pointer-events-none data-[disabled]:bg-disabled-bg data-[disabled]:text-disabled-text\n data-[highlighted]:bg-primary-hover-bg data-[state=open]:bg-negotiation-bg\"\n`;\n\nexport const dropdownMenuSubTriggerClassName = `\n ${dropdownMenuItemClassName}\n justify-between\n data-[state=open]:bg-negotiation-bg\n`;\n\nexport const dropdownMenuReadonlyItemTextClassName = `\n text-center pr-0\n`;\n\nexport const dropdownMenuLabelClassName =\n `\n px-3 py-1.5 text-secondary-text\n` + getTypographyClassName(\"body-xs-medium\");\n\nexport const dropdownMenuItemTextClassName = `pr-5`;\n\nexport const dropdownMenuSeparatorClassName = `\n my-1 h-[0.125rem] bg-delicate-border transform scale-y-50\n`; // элемент стоит не на целых координатах (x/y = 0.5), и 1px размазывается. Scale фиксит\n\nexport const dropdownMenuShortcutClassName = `\n ml-auto text-secondary-text\n`;\n\nexport const dropdownMenuIconClassName = `\n shrink-0 text-secondary-text\n`;\n"],"names":["dropdownMenuContentClassName","getTypographyClassName","dropdownMenuItemClassName","dropdownMenuSubTriggerClassName","dropdownMenuReadonlyItemTextClassName","dropdownMenuLabelClassName","dropdownMenuItemTextClassName","dropdownMenuSeparatorClassName","dropdownMenuShortcutClassName","dropdownMenuIconClassName"],"mappings":";;;AAEO,MAAMA,IACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQEC,EAAuB,gBAAgB,GAE9BC,IAA4B;AAAA;AAAA;AAAA;AAAA;AAAA,GAO5BC,IAAkC;AAAA,IAC3CD,CAAyB;AAAA;AAAA;AAAA,GAKhBE,IAAwC;AAAA;AAAA,GAIxCC,IACX;AAAA;AAAA,IAEEJ,EAAuB,gBAAgB,GAE9BK,IAAgC,QAEhCC,IAAiC;AAAA;AAAA,GAIjCC,IAAgC;AAAA;AAAA,GAIhCC,IAA4B;AAAA;AAAA;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components-ui-dropdown-menu-dropdown-menu.cjs"),u=require("@radix-ui/react-dropdown-menu");function p(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:()=>o[n]})}}return r.default=o,Object.freeze(r)}const d=p(u);exports.CheckboxDropdownMenu=e.CheckboxDropdownMenu;exports.ConfigurableDropdownMenu=e.ConfigurableDropdownMenu;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.DropdownMenuPrimitive=d;
2
+ //# sourceMappingURL=components-ui-dropdown-menu.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-ui-dropdown-menu.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { CheckboxDropdownMenu as r, ConfigurableDropdownMenu as p, DropdownMenu as u, DropdownMenuCheckboxItem as d, DropdownMenuContent as w, DropdownMenuItem as D, DropdownMenuLabel as M, DropdownMenuSeparator as t, DropdownMenuSubContent as i, DropdownMenuSubTrigger as b, DropdownMenuTrigger as m } from "./components-ui-dropdown-menu-dropdown-menu.js";
2
+ import * as o from "@radix-ui/react-dropdown-menu";
3
+ export {
4
+ r as CheckboxDropdownMenu,
5
+ p as ConfigurableDropdownMenu,
6
+ u as DropdownMenu,
7
+ d as DropdownMenuCheckboxItem,
8
+ w as DropdownMenuContent,
9
+ D as DropdownMenuItem,
10
+ M as DropdownMenuLabel,
11
+ o as DropdownMenuPrimitive,
12
+ t as DropdownMenuSeparator,
13
+ i as DropdownMenuSubContent,
14
+ b as DropdownMenuSubTrigger,
15
+ m as DropdownMenuTrigger
16
+ };
17
+ //# sourceMappingURL=components-ui-dropdown-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-ui-dropdown-menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime");require("class-variance-authority");const o=require("react"),i=require("./lib-utils.cjs"),c=require("./components-ui-label-label.cjs"),u=require("./components-ui-separator-separator.cjs"),t=require("./components-ui-field-field.styles.cjs");function f({className:l,...e}){return a.jsx("fieldset",{"data-slot":"field-set",className:i.cn(t.fieldSetClassName,l,"min-w-0 flex-1 w-full"),...e})}function m({className:l,variant:e="legend",...s}){return a.jsx("legend",{"data-slot":"field-legend","data-variant":e,className:i.cn(t.fieldLegendClassName,l),...s})}function p({className:l,...e}){return a.jsx("div",{"data-slot":"field-group",className:i.cn(t.fieldGroupClassName,l),...e})}function N({className:l,orientation:e="vertical",...s}){return a.jsx("div",{role:"group","data-slot":"field","data-orientation":e,className:i.cn(t.fieldVariants({orientation:e}),l),...s})}function F({className:l,...e}){return a.jsx("div",{"data-slot":"field-content",className:i.cn(t.fieldContentClassName,l),...e})}function g({className:l,...e}){return a.jsx(c.Label,{"data-slot":"field-label",className:i.cn(t.fieldLabelClassName,l),...e})}function j({className:l,...e}){return a.jsx("div",{"data-slot":"field-label",className:i.cn(t.fieldTitleClassName,l),...e})}function x({className:l,...e}){return a.jsx("p",{"data-slot":"field-description",className:i.cn(t.fieldDescriptionClassName,l),...e})}function C({children:l,className:e,...s}){return a.jsxs("div",{"data-slot":"field-separator","data-content":!!l,className:i.cn(t.fieldSeparatorClassName,e),...s,children:[a.jsx(u.Separator,{className:t.fieldSeparatorLineClassName}),l&&a.jsx("span",{className:t.fieldSeparatorContentClassName,"data-slot":"field-separator-content",children:l})]})}function b({className:l,children:e,errors:s,...d}){const r=o.useMemo(()=>e||(s?s.length===1&&s[0]?.message?s[0].message:a.jsx("ul",{className:t.fieldErrorsListClassName,children:s.map(n=>n?.message?a.jsx("li",{children:n.message},n.message):null)}):null),[e,s]);return r?a.jsx("div",{role:"alert","data-slot":"field-error",className:i.cn(t.fieldErrorClassName,l),...d,children:r}):null}exports.Field=N;exports.FieldContent=F;exports.FieldDescription=x;exports.FieldError=b;exports.FieldGroup=p;exports.FieldLabel=g;exports.FieldLegend=m;exports.FieldSeparator=C;exports.FieldSet=f;exports.FieldTitle=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime");require("class-variance-authority");const o=require("react"),i=require("./lib-utils.cjs"),c=require("./components-ui-label-label.cjs"),u=require("./components-ui-separator-separator.cjs"),t=require("./components-ui-field-field.styles.cjs");function f({className:l,...e}){return a.jsx("fieldset",{"data-slot":"field-set",className:i.cn(t.fieldSetClassName,l,"w-full min-w-0 flex-1"),...e})}function m({className:l,variant:e="legend",...s}){return a.jsx("legend",{"data-slot":"field-legend","data-variant":e,className:i.cn(t.fieldLegendClassName,l),...s})}function p({className:l,...e}){return a.jsx("div",{"data-slot":"field-group",className:i.cn(t.fieldGroupClassName,l),...e})}function N({className:l,orientation:e="vertical",...s}){return a.jsx("div",{role:"group","data-slot":"field","data-orientation":e,className:i.cn(t.fieldVariants({orientation:e}),l),...s})}function F({className:l,...e}){return a.jsx("div",{"data-slot":"field-content",className:i.cn(t.fieldContentClassName,l),...e})}function g({className:l,...e}){return a.jsx(c.Label,{"data-slot":"field-label",className:i.cn(t.fieldLabelClassName,l),...e})}function j({className:l,...e}){return a.jsx("div",{"data-slot":"field-label",className:i.cn(t.fieldTitleClassName,l),...e})}function x({className:l,...e}){return a.jsx("p",{"data-slot":"field-description",className:i.cn(t.fieldDescriptionClassName,l),...e})}function C({children:l,className:e,...s}){return a.jsxs("div",{"data-slot":"field-separator","data-content":!!l,className:i.cn(t.fieldSeparatorClassName,e),...s,children:[a.jsx(u.Separator,{className:t.fieldSeparatorLineClassName}),l&&a.jsx("span",{className:t.fieldSeparatorContentClassName,"data-slot":"field-separator-content",children:l})]})}function b({className:l,children:e,errors:s,...d}){const r=o.useMemo(()=>e||(s?s.length===1&&s[0]?.message?s[0].message:a.jsx("ul",{className:t.fieldErrorsListClassName,children:s.map(n=>n?.message?a.jsx("li",{children:n.message},n.message):null)}):null),[e,s]);return r?a.jsx("div",{role:"alert","data-slot":"field-error",className:i.cn(t.fieldErrorClassName,l),...d,children:r}):null}exports.Field=N;exports.FieldContent=F;exports.FieldDescription=x;exports.FieldError=b;exports.FieldGroup=p;exports.FieldLabel=g;exports.FieldLegend=m;exports.FieldSeparator=C;exports.FieldSet=f;exports.FieldTitle=j;
2
2
  //# sourceMappingURL=components-ui-field-field.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-ui-field-field.cjs","sources":["../src/components/ui/field/field.tsx"],"sourcesContent":["import { type VariantProps } from \"class-variance-authority\";\nimport { useMemo } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Label } from \"../label\";\nimport { Separator } from \"../separator\";\nimport {\n fieldContentClassName,\n fieldDescriptionClassName,\n fieldErrorClassName,\n fieldErrorsListClassName,\n fieldGroupClassName,\n fieldLabelClassName,\n fieldLegendClassName,\n fieldSeparatorClassName,\n fieldSeparatorContentClassName,\n fieldSeparatorLineClassName,\n fieldSetClassName,\n fieldTitleClassName,\n fieldVariants,\n} from \"./field.styles\";\n\nfunction FieldSet({ className, ...props }: React.ComponentProps<\"fieldset\">) {\n return (\n <fieldset\n data-slot=\"field-set\"\n className={cn(fieldSetClassName, className, \"min-w-0 flex-1 w-full\")}\n {...props}\n />\n );\n}\n\nfunction FieldLegend({\n className,\n variant = \"legend\",\n ...props\n}: React.ComponentProps<\"legend\"> & { variant?: \"legend\" | \"label\" }) {\n return (\n <legend\n data-slot=\"field-legend\"\n data-variant={variant}\n className={cn(fieldLegendClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-group\"\n className={cn(fieldGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction Field({\n className,\n orientation = \"vertical\" as \"vertical\" | \"horizontal\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof fieldVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"field\"\n data-orientation={orientation}\n className={cn(fieldVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction FieldContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-content\"\n className={cn(fieldContentClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return (\n <Label\n data-slot=\"field-label\"\n className={cn(fieldLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-label\"\n className={cn(fieldTitleClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"field-description\"\n className={cn(fieldDescriptionClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\"> & {\n children?: React.ReactNode;\n}) {\n return (\n <div\n data-slot=\"field-separator\"\n data-content={!!children}\n className={cn(fieldSeparatorClassName, className)}\n {...props}\n >\n <Separator className={fieldSeparatorLineClassName} />\n {children && (\n <span\n className={fieldSeparatorContentClassName}\n data-slot=\"field-separator-content\"\n >\n {children}\n </span>\n )}\n </div>\n );\n}\n\nfunction FieldError({\n className,\n children,\n errors,\n ...props\n}: React.ComponentProps<\"div\"> & {\n errors?: Array<{ message?: string } | undefined>;\n}) {\n const content = useMemo(() => {\n if (children) {\n return children;\n }\n\n if (!errors) {\n return null;\n }\n\n if (errors.length === 1 && errors[0]?.message) {\n return errors[0].message;\n }\n\n return (\n <ul className={fieldErrorsListClassName}>\n {errors.map((error) => {\n if (!error?.message) {\n return null;\n }\n\n return <li key={error.message}>{error.message}</li>;\n })}\n </ul>\n );\n }, [children, errors]);\n\n if (!content) {\n return null;\n }\n\n return (\n <div\n role=\"alert\"\n data-slot=\"field-error\"\n className={cn(fieldErrorClassName, className)}\n {...props}\n >\n {content}\n </div>\n );\n}\n\nexport {\n Field,\n FieldContent,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n FieldTitle,\n};\n"],"names":["FieldSet","className","props","jsx","cn","fieldSetClassName","FieldLegend","variant","fieldLegendClassName","FieldGroup","fieldGroupClassName","Field","orientation","fieldVariants","FieldContent","fieldContentClassName","FieldLabel","Label","fieldLabelClassName","FieldTitle","fieldTitleClassName","FieldDescription","fieldDescriptionClassName","FieldSeparator","children","jsxs","fieldSeparatorClassName","Separator","fieldSeparatorLineClassName","fieldSeparatorContentClassName","FieldError","errors","content","useMemo","fieldErrorsListClassName","error","fieldErrorClassName"],"mappings":"qWAsBA,SAASA,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GAAGC,EAEH,SAAA8B,CAAA,CAAA,EAVI,IAaX"}
1
+ {"version":3,"file":"components-ui-field-field.cjs","sources":["../src/components/ui/field/field.tsx"],"sourcesContent":["import { type VariantProps } from \"class-variance-authority\";\nimport { useMemo } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Label } from \"../label\";\nimport { Separator } from \"../separator\";\nimport {\n fieldContentClassName,\n fieldDescriptionClassName,\n fieldErrorClassName,\n fieldErrorsListClassName,\n fieldGroupClassName,\n fieldLabelClassName,\n fieldLegendClassName,\n fieldSeparatorClassName,\n fieldSeparatorContentClassName,\n fieldSeparatorLineClassName,\n fieldSetClassName,\n fieldTitleClassName,\n fieldVariants,\n} from \"./field.styles\";\n\nfunction FieldSet({ className, ...props }: React.ComponentProps<\"fieldset\">) {\n return (\n <fieldset\n data-slot=\"field-set\"\n className={cn(fieldSetClassName, className, \"w-full min-w-0 flex-1\")}\n {...props}\n />\n );\n}\n\nfunction FieldLegend({\n className,\n variant = \"legend\",\n ...props\n}: React.ComponentProps<\"legend\"> & { variant?: \"legend\" | \"label\" }) {\n return (\n <legend\n data-slot=\"field-legend\"\n data-variant={variant}\n className={cn(fieldLegendClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-group\"\n className={cn(fieldGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction Field({\n className,\n orientation = \"vertical\" as \"vertical\" | \"horizontal\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof fieldVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"field\"\n data-orientation={orientation}\n className={cn(fieldVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction FieldContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-content\"\n className={cn(fieldContentClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return (\n <Label\n data-slot=\"field-label\"\n className={cn(fieldLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"field-label\"\n className={cn(fieldTitleClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"field-description\"\n className={cn(fieldDescriptionClassName, className)}\n {...props}\n />\n );\n}\n\nfunction FieldSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\"> & {\n children?: React.ReactNode;\n}) {\n return (\n <div\n data-slot=\"field-separator\"\n data-content={!!children}\n className={cn(fieldSeparatorClassName, className)}\n {...props}\n >\n <Separator className={fieldSeparatorLineClassName} />\n {children && (\n <span\n className={fieldSeparatorContentClassName}\n data-slot=\"field-separator-content\"\n >\n {children}\n </span>\n )}\n </div>\n );\n}\n\nfunction FieldError({\n className,\n children,\n errors,\n ...props\n}: React.ComponentProps<\"div\"> & {\n errors?: Array<{ message?: string } | undefined>;\n}) {\n const content = useMemo(() => {\n if (children) {\n return children;\n }\n\n if (!errors) {\n return null;\n }\n\n if (errors.length === 1 && errors[0]?.message) {\n return errors[0].message;\n }\n\n return (\n <ul className={fieldErrorsListClassName}>\n {errors.map((error) => {\n if (!error?.message) {\n return null;\n }\n\n return <li key={error.message}>{error.message}</li>;\n })}\n </ul>\n );\n }, [children, errors]);\n\n if (!content) {\n return null;\n }\n\n return (\n <div\n role=\"alert\"\n data-slot=\"field-error\"\n className={cn(fieldErrorClassName, className)}\n {...props}\n >\n {content}\n </div>\n );\n}\n\nexport {\n Field,\n FieldContent,\n FieldDescription,\n FieldError,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n FieldTitle,\n};\n"],"names":["FieldSet","className","props","jsx","cn","fieldSetClassName","FieldLegend","variant","fieldLegendClassName","FieldGroup","fieldGroupClassName","Field","orientation","fieldVariants","FieldContent","fieldContentClassName","FieldLabel","Label","fieldLabelClassName","FieldTitle","fieldTitleClassName","FieldDescription","fieldDescriptionClassName","FieldSeparator","children","jsxs","fieldSeparatorClassName","Separator","fieldSeparatorLineClassName","fieldSeparatorContentClassName","FieldError","errors","content","useMemo","fieldErrorsListClassName","error","fieldErrorClassName"],"mappings":"qWAsBA,SAASA,EAAS,CAAE,UAAAC,EAAW,GAAGC,GAA2C,CAC3E,OACEC,EAAAA,IAAC,WAAA,CACC,YAAU,YACV,UAAWC,EAAAA,GAAGC,oBAAmBJ,EAAW,uBAAuB,EAClE,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASI,EAAY,CACnB,UAAAL,EACA,QAAAM,EAAU,SACV,GAAGL,CACL,EAAsE,CACpE,OACEC,EAAAA,IAAC,SAAA,CACC,YAAU,eACV,eAAcI,EACd,UAAWH,EAAAA,GAAGI,EAAAA,qBAAsBP,CAAS,EAC5C,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASO,EAAW,CAAE,UAAAR,EAAW,GAAGC,GAAsC,CACxE,OACEC,EAAAA,IAAC,MAAA,CACC,YAAU,cACV,UAAWC,EAAAA,GAAGM,EAAAA,oBAAqBT,CAAS,EAC3C,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASS,EAAM,CACb,UAAAV,EACA,YAAAW,EAAc,WACd,GAAGV,CACL,EAAqE,CACnE,OACEC,EAAAA,IAAC,MAAA,CACC,KAAK,QACL,YAAU,QACV,mBAAkBS,EAClB,UAAWR,EAAAA,GAAGS,EAAAA,cAAc,CAAE,YAAAD,CAAA,CAAa,EAAGX,CAAS,EACtD,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASY,EAAa,CAAE,UAAAb,EAAW,GAAGC,GAAsC,CAC1E,OACEC,EAAAA,IAAC,MAAA,CACC,YAAU,gBACV,UAAWC,EAAAA,GAAGW,EAAAA,sBAAuBd,CAAS,EAC7C,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASc,EAAW,CAAE,UAAAf,E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,EAAM,OAAA,EAAtBA,EAAM,OAAwB,EAHrC,IAIV,CAAA,CACH,EAhBO,MAkBR,CAACX,EAAUO,CAAM,CAAC,EAErB,OAAKC,EAKH7B,EAAAA,IAAC,MAAA,CACC,KAAK,QACL,YAAU,cACV,UAAWC,EAAAA,GAAGgC,EAAAA,oBAAqBnC,CAAS,EAC3C,GAAGC,EAEH,SAAA8B,CAAA,CAAA,EAVI,IAaX"}
@@ -4,13 +4,13 @@ import { useMemo as o } from "react";
4
4
  import { cn as s } from "./lib-utils.js";
5
5
  import { Label as f } from "./components-ui-label-label.js";
6
6
  import { Separator as m } from "./components-ui-separator-separator.js";
7
- import { fieldVariants as u, fieldContentClassName as c, fieldLegendClassName as p, fieldErrorsListClassName as N, fieldErrorClassName as C, fieldSeparatorLineClassName as g, fieldSeparatorContentClassName as F, fieldSeparatorClassName as v, fieldTitleClassName as L, fieldSetClassName as S, fieldGroupClassName as b, fieldLabelClassName as x, fieldDescriptionClassName as E } from "./components-ui-field-field.styles.js";
7
+ import { fieldSetClassName as u, fieldGroupClassName as c, fieldVariants as p, fieldLabelClassName as N, fieldDescriptionClassName as C, fieldContentClassName as g, fieldLegendClassName as F, fieldErrorsListClassName as v, fieldErrorClassName as L, fieldSeparatorLineClassName as S, fieldSeparatorContentClassName as b, fieldSeparatorClassName as x, fieldTitleClassName as E } from "./components-ui-field-field.styles.js";
8
8
  function V({ className: a, ...e }) {
9
9
  return /* @__PURE__ */ l(
10
10
  "fieldset",
11
11
  {
12
12
  "data-slot": "field-set",
13
- className: s(S, a, "min-w-0 flex-1 w-full"),
13
+ className: s(u, a, "w-full min-w-0 flex-1"),
14
14
  ...e
15
15
  }
16
16
  );
@@ -25,7 +25,7 @@ function k({
25
25
  {
26
26
  "data-slot": "field-legend",
27
27
  "data-variant": e,
28
- className: s(p, a),
28
+ className: s(F, a),
29
29
  ...t
30
30
  }
31
31
  );
@@ -35,7 +35,7 @@ function q({ className: a, ...e }) {
35
35
  "div",
36
36
  {
37
37
  "data-slot": "field-group",
38
- className: s(b, a),
38
+ className: s(c, a),
39
39
  ...e
40
40
  }
41
41
  );
@@ -51,7 +51,7 @@ function y({
51
51
  role: "group",
52
52
  "data-slot": "field",
53
53
  "data-orientation": e,
54
- className: s(u({ orientation: e }), a),
54
+ className: s(p({ orientation: e }), a),
55
55
  ...t
56
56
  }
57
57
  );
@@ -61,7 +61,7 @@ function z({ className: a, ...e }) {
61
61
  "div",
62
62
  {
63
63
  "data-slot": "field-content",
64
- className: s(c, a),
64
+ className: s(g, a),
65
65
  ...e
66
66
  }
67
67
  );
@@ -71,7 +71,7 @@ function A({ className: a, ...e }) {
71
71
  f,
72
72
  {
73
73
  "data-slot": "field-label",
74
- className: s(x, a),
74
+ className: s(N, a),
75
75
  ...e
76
76
  }
77
77
  );
@@ -81,7 +81,7 @@ function B({ className: a, ...e }) {
81
81
  "div",
82
82
  {
83
83
  "data-slot": "field-label",
84
- className: s(L, a),
84
+ className: s(E, a),
85
85
  ...e
86
86
  }
87
87
  );
@@ -91,7 +91,7 @@ function H({ className: a, ...e }) {
91
91
  "p",
92
92
  {
93
93
  "data-slot": "field-description",
94
- className: s(E, a),
94
+ className: s(C, a),
95
95
  ...e
96
96
  }
97
97
  );
@@ -106,14 +106,14 @@ function I({
106
106
  {
107
107
  "data-slot": "field-separator",
108
108
  "data-content": !!a,
109
- className: s(v, e),
109
+ className: s(x, e),
110
110
  ...t,
111
111
  children: [
112
- /* @__PURE__ */ l(m, { className: g }),
112
+ /* @__PURE__ */ l(m, { className: S }),
113
113
  a && /* @__PURE__ */ l(
114
114
  "span",
115
115
  {
116
- className: F,
116
+ className: b,
117
117
  "data-slot": "field-separator-content",
118
118
  children: a
119
119
  }
@@ -128,13 +128,13 @@ function J({
128
128
  errors: t,
129
129
  ...r
130
130
  }) {
131
- const n = o(() => e || (t ? t.length === 1 && t[0]?.message ? t[0].message : /* @__PURE__ */ l("ul", { className: N, children: t.map((i) => i?.message ? /* @__PURE__ */ l("li", { children: i.message }, i.message) : null) }) : null), [e, t]);
131
+ const n = o(() => e || (t ? t.length === 1 && t[0]?.message ? t[0].message : /* @__PURE__ */ l("ul", { className: v, children: t.map((i) => i?.message ? /* @__PURE__ */ l("li", { children: i.message }, i.message) : null) }) : null), [e, t]);
132
132
  return n ? /* @__PURE__ */ l(
133
133
  "div",
134
134
  {
135
135
  role: "alert",
136
136
  "data-slot": "field-error",
137
- className: s(C, a),
137
+ className: s(L, a),
138
138
  ...r,
139
139
  children: n
140
140
  }