@nuee/ui 0.3.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 (180) hide show
  1. package/LICENSE +201 -0
  2. package/dist/Icon.d.ts +43 -0
  3. package/dist/Icon.js +85 -0
  4. package/dist/Icon.js.map +7 -0
  5. package/dist/accordion.d.ts +6 -0
  6. package/dist/accordion.js +419 -0
  7. package/dist/accordion.js.map +7 -0
  8. package/dist/alert-dialog.d.ts +22 -0
  9. package/dist/alert-dialog.js +712 -0
  10. package/dist/alert-dialog.js.map +7 -0
  11. package/dist/aspect-ratio.d.ts +7 -0
  12. package/dist/aspect-ratio.js +95 -0
  13. package/dist/aspect-ratio.js.map +7 -0
  14. package/dist/attachment.d.ts +24 -0
  15. package/dist/attachment.js +830 -0
  16. package/dist/attachment.js.map +7 -0
  17. package/dist/avatar.d.ts +14 -0
  18. package/dist/avatar.js +451 -0
  19. package/dist/avatar.js.map +7 -0
  20. package/dist/badge.d.ts +9 -0
  21. package/dist/badge.js +130 -0
  22. package/dist/badge.js.map +7 -0
  23. package/dist/banner.d.ts +22 -0
  24. package/dist/banner.js +427 -0
  25. package/dist/banner.js.map +7 -0
  26. package/dist/breadcrumb.d.ts +10 -0
  27. package/dist/breadcrumb.js +419 -0
  28. package/dist/breadcrumb.js.map +7 -0
  29. package/dist/bubble.d.ts +8 -0
  30. package/dist/bubble.js +124 -0
  31. package/dist/bubble.js.map +7 -0
  32. package/dist/button-group.d.ts +14 -0
  33. package/dist/button-group.js +428 -0
  34. package/dist/button-group.js.map +7 -0
  35. package/dist/button.d.ts +13 -0
  36. package/dist/button.js +267 -0
  37. package/dist/button.js.map +7 -0
  38. package/dist/card.d.ts +15 -0
  39. package/dist/card.js +469 -0
  40. package/dist/card.js.map +7 -0
  41. package/dist/checkbox.d.ts +7 -0
  42. package/dist/checkbox.js +204 -0
  43. package/dist/checkbox.js.map +7 -0
  44. package/dist/cli.js +6 -0
  45. package/dist/cli.js.map +7 -0
  46. package/dist/collapsible.d.ts +5 -0
  47. package/dist/collapsible.js +345 -0
  48. package/dist/collapsible.js.map +7 -0
  49. package/dist/combobox.d.ts +15 -0
  50. package/dist/combobox.js +553 -0
  51. package/dist/combobox.js.map +7 -0
  52. package/dist/content-row.d.ts +19 -0
  53. package/dist/content-row.js +446 -0
  54. package/dist/content-row.js.map +7 -0
  55. package/dist/context-menu.d.ts +4 -0
  56. package/dist/context-menu.js +889 -0
  57. package/dist/context-menu.js.map +7 -0
  58. package/dist/dialog.d.ts +23 -0
  59. package/dist/dialog.js +486 -0
  60. package/dist/dialog.js.map +7 -0
  61. package/dist/drawer.d.ts +36 -0
  62. package/dist/drawer.js +735 -0
  63. package/dist/drawer.js.map +7 -0
  64. package/dist/dropdown-menu.d.ts +28 -0
  65. package/dist/dropdown-menu.js +882 -0
  66. package/dist/dropdown-menu.js.map +7 -0
  67. package/dist/empty.d.ts +12 -0
  68. package/dist/empty.js +361 -0
  69. package/dist/empty.js.map +7 -0
  70. package/dist/field.d.ts +20 -0
  71. package/dist/field.js +636 -0
  72. package/dist/field.js.map +7 -0
  73. package/dist/global.css +4 -0
  74. package/dist/hover-card.d.ts +12 -0
  75. package/dist/hover-card.js +159 -0
  76. package/dist/hover-card.js.map +7 -0
  77. package/dist/index.d.ts +89 -0
  78. package/dist/index.js +15427 -0
  79. package/dist/index.js.map +7 -0
  80. package/dist/input-group.d.ts +21 -0
  81. package/dist/input-group.js +966 -0
  82. package/dist/input-group.js.map +7 -0
  83. package/dist/input-otp.d.ts +10 -0
  84. package/dist/input-otp.js +246 -0
  85. package/dist/input-otp.js.map +7 -0
  86. package/dist/input.d.ts +7 -0
  87. package/dist/input.js +121 -0
  88. package/dist/input.js.map +7 -0
  89. package/dist/kbd.d.ts +8 -0
  90. package/dist/kbd.js +170 -0
  91. package/dist/kbd.js.map +7 -0
  92. package/dist/label.d.ts +6 -0
  93. package/dist/label.js +89 -0
  94. package/dist/label.js.map +7 -0
  95. package/dist/link.d.ts +14 -0
  96. package/dist/link.js +244 -0
  97. package/dist/link.js.map +7 -0
  98. package/dist/marker.d.ts +9 -0
  99. package/dist/marker.js +206 -0
  100. package/dist/marker.js.map +7 -0
  101. package/dist/menubar.d.ts +19 -0
  102. package/dist/menubar.js +1008 -0
  103. package/dist/menubar.js.map +7 -0
  104. package/dist/message-scroller.d.ts +10 -0
  105. package/dist/message-scroller.js +526 -0
  106. package/dist/message-scroller.js.map +7 -0
  107. package/dist/message.d.ts +10 -0
  108. package/dist/message.js +237 -0
  109. package/dist/message.js.map +7 -0
  110. package/dist/native-select.d.ts +9 -0
  111. package/dist/native-select.js +274 -0
  112. package/dist/native-select.js.map +7 -0
  113. package/dist/navigation-menu.d.ts +11 -0
  114. package/dist/navigation-menu.js +590 -0
  115. package/dist/navigation-menu.js.map +7 -0
  116. package/dist/pagination.d.ts +12 -0
  117. package/dist/pagination.js +481 -0
  118. package/dist/pagination.js.map +7 -0
  119. package/dist/popover.d.ts +14 -0
  120. package/dist/popover.js +293 -0
  121. package/dist/popover.js.map +7 -0
  122. package/dist/primitives.d.ts +1 -0
  123. package/dist/primitives.js +3 -0
  124. package/dist/primitives.js.map +7 -0
  125. package/dist/progress.d.ts +7 -0
  126. package/dist/progress.js +92 -0
  127. package/dist/progress.js.map +7 -0
  128. package/dist/radio-group.d.ts +12 -0
  129. package/dist/radio-group.js +184 -0
  130. package/dist/radio-group.js.map +7 -0
  131. package/dist/reset.css +73 -0
  132. package/dist/scroll-area.d.ts +10 -0
  133. package/dist/scroll-area.js +266 -0
  134. package/dist/scroll-area.js.map +7 -0
  135. package/dist/select.d.ts +14 -0
  136. package/dist/select.js +505 -0
  137. package/dist/select.js.map +7 -0
  138. package/dist/separator.d.ts +8 -0
  139. package/dist/separator.js +110 -0
  140. package/dist/separator.js.map +7 -0
  141. package/dist/skeleton.d.ts +6 -0
  142. package/dist/skeleton.js +87 -0
  143. package/dist/skeleton.js.map +7 -0
  144. package/dist/slider.d.ts +9 -0
  145. package/dist/slider.js +146 -0
  146. package/dist/slider.js.map +7 -0
  147. package/dist/spinner.d.ts +7 -0
  148. package/dist/spinner.js +99 -0
  149. package/dist/spinner.js.map +7 -0
  150. package/dist/stylex-props.d.ts +3 -0
  151. package/dist/stylex.css +2144 -0
  152. package/dist/switch.d.ts +8 -0
  153. package/dist/switch.js +159 -0
  154. package/dist/switch.js.map +7 -0
  155. package/dist/table.d.ts +14 -0
  156. package/dist/table.js +406 -0
  157. package/dist/table.js.map +7 -0
  158. package/dist/tabs.d.ts +10 -0
  159. package/dist/tabs.js +455 -0
  160. package/dist/tabs.js.map +7 -0
  161. package/dist/textarea.d.ts +6 -0
  162. package/dist/textarea.js +121 -0
  163. package/dist/textarea.js.map +7 -0
  164. package/dist/toast.d.ts +9 -0
  165. package/dist/toast.js +670 -0
  166. package/dist/toast.js.map +7 -0
  167. package/dist/toast.stylex.d.ts +6 -0
  168. package/dist/toggle-group.d.ts +18 -0
  169. package/dist/toggle-group.js +302 -0
  170. package/dist/toggle-group.js.map +7 -0
  171. package/dist/toggle.d.ts +11 -0
  172. package/dist/toggle.js +153 -0
  173. package/dist/toggle.js.map +7 -0
  174. package/dist/tooltip.d.ts +11 -0
  175. package/dist/tooltip.js +154 -0
  176. package/dist/tooltip.js.map +7 -0
  177. package/dist/typography.d.ts +292 -0
  178. package/dist/typography.js +92 -0
  179. package/dist/typography.js.map +7 -0
  180. package/package.json +110 -0
package/dist/drawer.js ADDED
@@ -0,0 +1,735 @@
1
+ // src/drawer.tsx
2
+ import { c as _c } from "react/compiler-runtime";
3
+ import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
4
+ import * as stylex from "@stylexjs/stylex";
5
+ import { createContext, useContext } from "react";
6
+
7
+ // src/stylex-props.ts
8
+ function getNativeStyleProps(stylexProps, className, style) {
9
+ return {
10
+ className: [stylexProps.className, className].filter(Boolean).join(" "),
11
+ style: {
12
+ ...stylexProps.style,
13
+ ...style
14
+ }
15
+ };
16
+ }
17
+
18
+ // src/drawer.tsx
19
+ import { jsx, jsxs } from "react/jsx-runtime";
20
+ var styles = {
21
+ overlay: {
22
+ k6WDB: "xpivpjv",
23
+ kWkggS: "x1unu5m3",
24
+ kpwlN0: "x10a8y8t",
25
+ kVAEAm: "xixxii4",
26
+ kIyJzY: "xrqf7vh",
27
+ k1ekBW: "x19991ni",
28
+ kAMwcw: "xctuv9u",
29
+ kY2c9j: "xa9119d",
30
+ kJcGZN: "x1llxi74",
31
+ kMqVnt: "x1gqblgl",
32
+ kQuUWH: "x6rr8qh",
33
+ kRVfsM: "x1wueb8x",
34
+ $$css: true
35
+ },
36
+ overlayTransparent: {
37
+ k6WDB: "x1t853zo",
38
+ kWkggS: "xjbqb8w",
39
+ $$css: true
40
+ },
41
+ popup: {
42
+ kWkggS: "x1sgh50o",
43
+ kVAM5u: "x13xm7is",
44
+ ksu8eU: "x1y0btm7",
45
+ kMzoRj: "xzgztj1",
46
+ kGVxlE: "x1juquzk",
47
+ kMwMTN: "x1alews2",
48
+ k1xSpc: "x78zum5",
49
+ kXwgrk: "xdt5ytf",
50
+ kAzted: "x2lwn1j",
51
+ kI3sdo: "x1a2a7pz",
52
+ kVQacm: "xb3r6kr",
53
+ kVAEAm: "xixxii4",
54
+ kIyJzY: "xrqf7vh",
55
+ k1ekBW: "x6o7n8i",
56
+ kAMwcw: "xctuv9u",
57
+ k6sLGO: "x1so62im",
58
+ kQuUWH: "x6rr8qh",
59
+ kRVfsM: "x1wueb8x",
60
+ k6CgDc: "x1yjfzay",
61
+ $$css: true
62
+ },
63
+ verticalPopup: {
64
+ kbCHJM: "xu96u03",
65
+ kUOVxO: "xvueqy4",
66
+ kskxy: "x18bvk7g",
67
+ kCIrl2: "x3m8u43",
68
+ kzqmXN: "xh8yej3",
69
+ $$css: true
70
+ },
71
+ downPopup: {
72
+ kaIpWk: "x6hl4wd",
73
+ krVfgx: "x1ey2m1c",
74
+ kAzted: "xafkwjd",
75
+ k3aq6I: "x1y5dkz8",
76
+ kdD3Bq: "x1i2unn7",
77
+ koVVf4: "x1ait54v",
78
+ kTOR3a: "x1b19agx",
79
+ $$css: true
80
+ },
81
+ upPopup: {
82
+ kaIpWk: "x1nk6e8i",
83
+ kAzted: "xafkwjd",
84
+ k87sOh: "x13vifvy",
85
+ k3aq6I: "x1y5dkz8",
86
+ kdD3Bq: "x1i2unn7",
87
+ koVVf4: "xoejiej",
88
+ kTOR3a: "x10orviz",
89
+ $$css: true
90
+ },
91
+ horizontalPopup: {
92
+ krVfgx: "x1ey2m1c",
93
+ ks0D6T: "xowlazn",
94
+ k87sOh: "x13vifvy",
95
+ kzqmXN: "xdlckem",
96
+ $$css: true
97
+ },
98
+ leftPopup: {
99
+ kaIpWk: "x10g0tjl",
100
+ kbCHJM: "xu96u03",
101
+ k3aq6I: "x1xq5odm",
102
+ kdD3Bq: "x1i2unn7",
103
+ koVVf4: "xuw5tg6",
104
+ kTOR3a: "x445yqt",
105
+ $$css: true
106
+ },
107
+ rightPopup: {
108
+ kaIpWk: "x1cxjlwu",
109
+ kCIrl2: "x3m8u43",
110
+ k3aq6I: "x1xq5odm",
111
+ kdD3Bq: "x1i2unn7",
112
+ koVVf4: "x1ouavn2",
113
+ kTOR3a: "x1df8nr5",
114
+ $$css: true
115
+ },
116
+ swipeHandle: {
117
+ kSGwAc: "xamitd3",
118
+ kWkggS: "xoec9bc",
119
+ kaIpWk: "x9gkxt8",
120
+ kmuXW: "x2lah0s",
121
+ kZKoxP: "x16wp3ig",
122
+ kqGvvJ: "xt1anyw",
123
+ kzqmXN: "xvm51jw",
124
+ $$css: true
125
+ },
126
+ horizontalSwipeHandle: {
127
+ kZKoxP: "xwaiz5r",
128
+ kqGvvJ: "x10im51j",
129
+ kVAEAm: "x10l6tqk",
130
+ k87sOh: "xwa60dl",
131
+ k3aq6I: "x1cb1t30",
132
+ kzqmXN: "xttl3oo",
133
+ $$css: true
134
+ },
135
+ upSwipeHandle: {
136
+ krVfgx: "x19wovr1",
137
+ kbCHJM: "xu96u03",
138
+ kqGvvJ: "x10im51j",
139
+ kUOVxO: "xvueqy4",
140
+ kVAEAm: "x10l6tqk",
141
+ kCIrl2: "x3m8u43",
142
+ $$css: true
143
+ },
144
+ leftSwipeHandle: {
145
+ kCIrl2: "xd2chmc",
146
+ $$css: true
147
+ },
148
+ rightSwipeHandle: {
149
+ kbCHJM: "xyxdpqi",
150
+ $$css: true
151
+ },
152
+ header: {
153
+ k1xSpc: "x78zum5",
154
+ kXwgrk: "xdt5ytf",
155
+ kOIVth: "x1uj7ll3",
156
+ k8WAf4: "x5kd9k0",
157
+ kGO01o: "x16115zj",
158
+ kg3NbH: "x1td9pdb",
159
+ $$css: true
160
+ },
161
+ footer: {
162
+ kGNEyG: "x6s0dn4",
163
+ k1xSpc: "x78zum5",
164
+ kwnvtZ: "x1a02dak",
165
+ kOIVth: "x1uj7ll3",
166
+ kjj79g: "x1nhvcw1",
167
+ k8WAf4: "x5kd9k0",
168
+ kLKAdn: "xnsauvp",
169
+ kg3NbH: "x1td9pdb",
170
+ $$css: true
171
+ },
172
+ sideFooter: {
173
+ kbsgHX: "xrezwjf",
174
+ $$css: true
175
+ }
176
+ };
177
+ var DrawerContext = createContext({
178
+ overlay: "visible",
179
+ showSwipeHandle: false,
180
+ swipeDirection: "down"
181
+ });
182
+ function Drawer(t0) {
183
+ const $ = _c(15);
184
+ let props2;
185
+ let t1;
186
+ let t2;
187
+ let t3;
188
+ if ($[0] !== t0) {
189
+ ({
190
+ overlay: t1,
191
+ showSwipeHandle: t2,
192
+ swipeDirection: t3,
193
+ ...props2
194
+ } = t0);
195
+ $[0] = t0;
196
+ $[1] = props2;
197
+ $[2] = t1;
198
+ $[3] = t2;
199
+ $[4] = t3;
200
+ } else {
201
+ props2 = $[1];
202
+ t1 = $[2];
203
+ t2 = $[3];
204
+ t3 = $[4];
205
+ }
206
+ const overlay = t1 === void 0 ? "visible" : t1;
207
+ const showSwipeHandle = t2 === void 0 ? false : t2;
208
+ const swipeDirection = t3 === void 0 ? "down" : t3;
209
+ let t4;
210
+ if ($[5] !== overlay || $[6] !== showSwipeHandle || $[7] !== swipeDirection) {
211
+ t4 = {
212
+ overlay,
213
+ showSwipeHandle,
214
+ swipeDirection
215
+ };
216
+ $[5] = overlay;
217
+ $[6] = showSwipeHandle;
218
+ $[7] = swipeDirection;
219
+ $[8] = t4;
220
+ } else {
221
+ t4 = $[8];
222
+ }
223
+ let t5;
224
+ if ($[9] !== props2 || $[10] !== swipeDirection) {
225
+ t5 = /* @__PURE__ */ jsx(DrawerPrimitive.Root, { ...props2, swipeDirection });
226
+ $[9] = props2;
227
+ $[10] = swipeDirection;
228
+ $[11] = t5;
229
+ } else {
230
+ t5 = $[11];
231
+ }
232
+ let t6;
233
+ if ($[12] !== t4 || $[13] !== t5) {
234
+ t6 = /* @__PURE__ */ jsx(DrawerContext.Provider, { value: t4, children: t5 });
235
+ $[12] = t4;
236
+ $[13] = t5;
237
+ $[14] = t6;
238
+ } else {
239
+ t6 = $[14];
240
+ }
241
+ return t6;
242
+ }
243
+ var DrawerTrigger = DrawerPrimitive.Trigger;
244
+ var DrawerClose = DrawerPrimitive.Close;
245
+ var DrawerPortal = DrawerPrimitive.Portal;
246
+ function DrawerOverlay(t0) {
247
+ const $ = _c(15);
248
+ let className;
249
+ let props2;
250
+ let style;
251
+ let xstyle;
252
+ if ($[0] !== t0) {
253
+ ({
254
+ className,
255
+ style,
256
+ xstyle,
257
+ ...props2
258
+ } = t0);
259
+ $[0] = t0;
260
+ $[1] = className;
261
+ $[2] = props2;
262
+ $[3] = style;
263
+ $[4] = xstyle;
264
+ } else {
265
+ className = $[1];
266
+ props2 = $[2];
267
+ style = $[3];
268
+ xstyle = $[4];
269
+ }
270
+ let t1;
271
+ if ($[5] !== className || $[6] !== xstyle) {
272
+ t1 = (state) => {
273
+ const stylexProps = stylex.props(styles.overlay, xstyle);
274
+ return [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
275
+ };
276
+ $[5] = className;
277
+ $[6] = xstyle;
278
+ $[7] = t1;
279
+ } else {
280
+ t1 = $[7];
281
+ }
282
+ let t2;
283
+ if ($[8] !== style || $[9] !== xstyle) {
284
+ t2 = (state_0) => {
285
+ const stylexProps_0 = stylex.props(styles.overlay, xstyle);
286
+ return {
287
+ ...stylexProps_0.style,
288
+ ...typeof style === "function" ? style(state_0) : style
289
+ };
290
+ };
291
+ $[8] = style;
292
+ $[9] = xstyle;
293
+ $[10] = t2;
294
+ } else {
295
+ t2 = $[10];
296
+ }
297
+ let t3;
298
+ if ($[11] !== props2 || $[12] !== t1 || $[13] !== t2) {
299
+ t3 = /* @__PURE__ */ jsx(DrawerPrimitive.Backdrop, { ...props2, "data-slot": "drawer-overlay", className: t1, style: t2 });
300
+ $[11] = props2;
301
+ $[12] = t1;
302
+ $[13] = t2;
303
+ $[14] = t3;
304
+ } else {
305
+ t3 = $[14];
306
+ }
307
+ return t3;
308
+ }
309
+ function DrawerSwipeHandle(t0) {
310
+ const $ = _c(14);
311
+ let className;
312
+ let props2;
313
+ let style;
314
+ let xstyle;
315
+ if ($[0] !== t0) {
316
+ ({
317
+ className,
318
+ style,
319
+ xstyle,
320
+ ...props2
321
+ } = t0);
322
+ $[0] = t0;
323
+ $[1] = className;
324
+ $[2] = props2;
325
+ $[3] = style;
326
+ $[4] = xstyle;
327
+ } else {
328
+ className = $[1];
329
+ props2 = $[2];
330
+ style = $[3];
331
+ xstyle = $[4];
332
+ }
333
+ const {
334
+ swipeDirection
335
+ } = useContext(DrawerContext);
336
+ const isHorizontal = swipeDirection === "left" || swipeDirection === "right";
337
+ let t1;
338
+ if ($[5] !== className || $[6] !== isHorizontal || $[7] !== style || $[8] !== swipeDirection || $[9] !== xstyle) {
339
+ t1 = getNativeStyleProps(stylex.props(styles.swipeHandle, isHorizontal && styles.horizontalSwipeHandle, swipeDirection === "up" && styles.upSwipeHandle, swipeDirection === "left" && styles.leftSwipeHandle, swipeDirection === "right" && styles.rightSwipeHandle, xstyle), className, style);
340
+ $[5] = className;
341
+ $[6] = isHorizontal;
342
+ $[7] = style;
343
+ $[8] = swipeDirection;
344
+ $[9] = xstyle;
345
+ $[10] = t1;
346
+ } else {
347
+ t1 = $[10];
348
+ }
349
+ let t2;
350
+ if ($[11] !== props2 || $[12] !== t1) {
351
+ t2 = /* @__PURE__ */ jsx("div", { "aria-hidden": "true", "data-slot": "drawer-swipe-handle", ...props2, ...t1 });
352
+ $[11] = props2;
353
+ $[12] = t1;
354
+ $[13] = t2;
355
+ } else {
356
+ t2 = $[13];
357
+ }
358
+ return t2;
359
+ }
360
+ function getDrawerPopupStylexProps(swipeDirection, xstyle) {
361
+ if (swipeDirection === "right") {
362
+ return stylex.props(styles.popup, styles.horizontalPopup, styles.rightPopup, xstyle);
363
+ }
364
+ if (swipeDirection === "left") {
365
+ return stylex.props(styles.popup, styles.horizontalPopup, styles.leftPopup, xstyle);
366
+ }
367
+ if (swipeDirection === "up") {
368
+ return stylex.props(styles.popup, styles.verticalPopup, styles.upPopup, xstyle);
369
+ }
370
+ return stylex.props(styles.popup, styles.verticalPopup, styles.downPopup, xstyle);
371
+ }
372
+ function DrawerContent(t0) {
373
+ const $ = _c(31);
374
+ let children;
375
+ let className;
376
+ let props2;
377
+ let style;
378
+ let xstyle;
379
+ if ($[0] !== t0) {
380
+ ({
381
+ children,
382
+ className,
383
+ style,
384
+ xstyle,
385
+ ...props2
386
+ } = t0);
387
+ $[0] = t0;
388
+ $[1] = children;
389
+ $[2] = className;
390
+ $[3] = props2;
391
+ $[4] = style;
392
+ $[5] = xstyle;
393
+ } else {
394
+ children = $[1];
395
+ className = $[2];
396
+ props2 = $[3];
397
+ style = $[4];
398
+ xstyle = $[5];
399
+ }
400
+ const {
401
+ overlay,
402
+ showSwipeHandle,
403
+ swipeDirection
404
+ } = useContext(DrawerContext);
405
+ let t1;
406
+ if ($[6] !== overlay) {
407
+ t1 = overlay === "none" ? null : /* @__PURE__ */ jsx(DrawerOverlay, { xstyle: overlay === "transparent" ? styles.overlayTransparent : void 0 });
408
+ $[6] = overlay;
409
+ $[7] = t1;
410
+ } else {
411
+ t1 = $[7];
412
+ }
413
+ let t2;
414
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
415
+ t2 = {
416
+ className: "x10a8y8t xixxii4 xfa8aoj"
417
+ };
418
+ $[8] = t2;
419
+ } else {
420
+ t2 = $[8];
421
+ }
422
+ let t3;
423
+ if ($[9] !== className || $[10] !== swipeDirection || $[11] !== xstyle) {
424
+ t3 = (state) => {
425
+ const stylexProps = getDrawerPopupStylexProps(swipeDirection, xstyle);
426
+ return [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
427
+ };
428
+ $[9] = className;
429
+ $[10] = swipeDirection;
430
+ $[11] = xstyle;
431
+ $[12] = t3;
432
+ } else {
433
+ t3 = $[12];
434
+ }
435
+ let t4;
436
+ if ($[13] !== style || $[14] !== swipeDirection || $[15] !== xstyle) {
437
+ t4 = (state_0) => {
438
+ const stylexProps_0 = getDrawerPopupStylexProps(swipeDirection, xstyle);
439
+ return {
440
+ ...stylexProps_0.style,
441
+ ...typeof style === "function" ? style(state_0) : style
442
+ };
443
+ };
444
+ $[13] = style;
445
+ $[14] = swipeDirection;
446
+ $[15] = xstyle;
447
+ $[16] = t4;
448
+ } else {
449
+ t4 = $[16];
450
+ }
451
+ let t5;
452
+ if ($[17] !== showSwipeHandle) {
453
+ t5 = showSwipeHandle ? /* @__PURE__ */ jsx(DrawerSwipeHandle, {}) : null;
454
+ $[17] = showSwipeHandle;
455
+ $[18] = t5;
456
+ } else {
457
+ t5 = $[18];
458
+ }
459
+ let t6;
460
+ if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
461
+ t6 = {
462
+ className: "x78zum5 x98rzlu xdt5ytf x2lwn1j"
463
+ };
464
+ $[19] = t6;
465
+ } else {
466
+ t6 = $[19];
467
+ }
468
+ let t7;
469
+ if ($[20] !== children) {
470
+ t7 = /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...t6, children });
471
+ $[20] = children;
472
+ $[21] = t7;
473
+ } else {
474
+ t7 = $[21];
475
+ }
476
+ let t8;
477
+ if ($[22] !== props2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 || $[26] !== t7) {
478
+ t8 = /* @__PURE__ */ jsx(DrawerPrimitive.Viewport, { ...t2, children: /* @__PURE__ */ jsxs(DrawerPrimitive.Popup, { ...props2, "data-slot": "drawer-popup", className: t3, style: t4, children: [
479
+ t5,
480
+ t7
481
+ ] }) });
482
+ $[22] = props2;
483
+ $[23] = t3;
484
+ $[24] = t4;
485
+ $[25] = t5;
486
+ $[26] = t7;
487
+ $[27] = t8;
488
+ } else {
489
+ t8 = $[27];
490
+ }
491
+ let t9;
492
+ if ($[28] !== t1 || $[29] !== t8) {
493
+ t9 = /* @__PURE__ */ jsxs(DrawerPortal, { children: [
494
+ t1,
495
+ t8
496
+ ] });
497
+ $[28] = t1;
498
+ $[29] = t8;
499
+ $[30] = t9;
500
+ } else {
501
+ t9 = $[30];
502
+ }
503
+ return t9;
504
+ }
505
+ function DrawerHeader(t0) {
506
+ const $ = _c(12);
507
+ let className;
508
+ let props2;
509
+ let style;
510
+ let xstyle;
511
+ if ($[0] !== t0) {
512
+ ({
513
+ className,
514
+ style,
515
+ xstyle,
516
+ ...props2
517
+ } = t0);
518
+ $[0] = t0;
519
+ $[1] = className;
520
+ $[2] = props2;
521
+ $[3] = style;
522
+ $[4] = xstyle;
523
+ } else {
524
+ className = $[1];
525
+ props2 = $[2];
526
+ style = $[3];
527
+ xstyle = $[4];
528
+ }
529
+ let t1;
530
+ if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
531
+ t1 = getNativeStyleProps(stylex.props(styles.header, xstyle), className, style);
532
+ $[5] = className;
533
+ $[6] = style;
534
+ $[7] = xstyle;
535
+ $[8] = t1;
536
+ } else {
537
+ t1 = $[8];
538
+ }
539
+ let t2;
540
+ if ($[9] !== props2 || $[10] !== t1) {
541
+ t2 = /* @__PURE__ */ jsx("div", { ...props2, ...t1 });
542
+ $[9] = props2;
543
+ $[10] = t1;
544
+ $[11] = t2;
545
+ } else {
546
+ t2 = $[11];
547
+ }
548
+ return t2;
549
+ }
550
+ function DrawerFooter(t0) {
551
+ const $ = _c(13);
552
+ let className;
553
+ let props2;
554
+ let style;
555
+ let xstyle;
556
+ if ($[0] !== t0) {
557
+ ({
558
+ className,
559
+ style,
560
+ xstyle,
561
+ ...props2
562
+ } = t0);
563
+ $[0] = t0;
564
+ $[1] = className;
565
+ $[2] = props2;
566
+ $[3] = style;
567
+ $[4] = xstyle;
568
+ } else {
569
+ className = $[1];
570
+ props2 = $[2];
571
+ style = $[3];
572
+ xstyle = $[4];
573
+ }
574
+ const {
575
+ swipeDirection
576
+ } = useContext(DrawerContext);
577
+ const isSideDrawer = swipeDirection === "left" || swipeDirection === "right";
578
+ let t1;
579
+ if ($[5] !== className || $[6] !== isSideDrawer || $[7] !== style || $[8] !== xstyle) {
580
+ t1 = getNativeStyleProps(stylex.props(styles.footer, isSideDrawer && styles.sideFooter, xstyle), className, style);
581
+ $[5] = className;
582
+ $[6] = isSideDrawer;
583
+ $[7] = style;
584
+ $[8] = xstyle;
585
+ $[9] = t1;
586
+ } else {
587
+ t1 = $[9];
588
+ }
589
+ let t2;
590
+ if ($[10] !== props2 || $[11] !== t1) {
591
+ t2 = /* @__PURE__ */ jsx("div", { ...props2, ...t1 });
592
+ $[10] = props2;
593
+ $[11] = t1;
594
+ $[12] = t2;
595
+ } else {
596
+ t2 = $[12];
597
+ }
598
+ return t2;
599
+ }
600
+ function DrawerTitle(t0) {
601
+ const $ = _c(13);
602
+ let className;
603
+ let props2;
604
+ let style;
605
+ if ($[0] !== t0) {
606
+ ({
607
+ className,
608
+ style,
609
+ ...props2
610
+ } = t0);
611
+ $[0] = t0;
612
+ $[1] = className;
613
+ $[2] = props2;
614
+ $[3] = style;
615
+ } else {
616
+ className = $[1];
617
+ props2 = $[2];
618
+ style = $[3];
619
+ }
620
+ let t1;
621
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
622
+ t1 = {
623
+ className: "x1alews2 x1owaoya xq1ytqg x1hfsx4t x1ghz6dp"
624
+ };
625
+ $[4] = t1;
626
+ } else {
627
+ t1 = $[4];
628
+ }
629
+ const stylexProps = t1;
630
+ let t2;
631
+ if ($[5] !== className) {
632
+ t2 = (state) => [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
633
+ $[5] = className;
634
+ $[6] = t2;
635
+ } else {
636
+ t2 = $[6];
637
+ }
638
+ let t3;
639
+ if ($[7] !== style) {
640
+ t3 = (state_0) => ({
641
+ ...stylexProps.style,
642
+ ...typeof style === "function" ? style(state_0) : style
643
+ });
644
+ $[7] = style;
645
+ $[8] = t3;
646
+ } else {
647
+ t3 = $[8];
648
+ }
649
+ let t4;
650
+ if ($[9] !== props2 || $[10] !== t2 || $[11] !== t3) {
651
+ t4 = /* @__PURE__ */ jsx(DrawerPrimitive.Title, { ...props2, className: t2, style: t3 });
652
+ $[9] = props2;
653
+ $[10] = t2;
654
+ $[11] = t3;
655
+ $[12] = t4;
656
+ } else {
657
+ t4 = $[12];
658
+ }
659
+ return t4;
660
+ }
661
+ function DrawerDescription(t0) {
662
+ const $ = _c(13);
663
+ let className;
664
+ let props2;
665
+ let style;
666
+ if ($[0] !== t0) {
667
+ ({
668
+ className,
669
+ style,
670
+ ...props2
671
+ } = t0);
672
+ $[0] = t0;
673
+ $[1] = className;
674
+ $[2] = props2;
675
+ $[3] = style;
676
+ } else {
677
+ className = $[1];
678
+ props2 = $[2];
679
+ style = $[3];
680
+ }
681
+ let t1;
682
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
683
+ t1 = {
684
+ className: "x1ry1pnm x99mhxu xi1fz51 x1ghz6dp"
685
+ };
686
+ $[4] = t1;
687
+ } else {
688
+ t1 = $[4];
689
+ }
690
+ const stylexProps = t1;
691
+ let t2;
692
+ if ($[5] !== className) {
693
+ t2 = (state) => [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
694
+ $[5] = className;
695
+ $[6] = t2;
696
+ } else {
697
+ t2 = $[6];
698
+ }
699
+ let t3;
700
+ if ($[7] !== style) {
701
+ t3 = (state_0) => ({
702
+ ...stylexProps.style,
703
+ ...typeof style === "function" ? style(state_0) : style
704
+ });
705
+ $[7] = style;
706
+ $[8] = t3;
707
+ } else {
708
+ t3 = $[8];
709
+ }
710
+ let t4;
711
+ if ($[9] !== props2 || $[10] !== t2 || $[11] !== t3) {
712
+ t4 = /* @__PURE__ */ jsx(DrawerPrimitive.Description, { ...props2, className: t2, style: t3 });
713
+ $[9] = props2;
714
+ $[10] = t2;
715
+ $[11] = t3;
716
+ $[12] = t4;
717
+ } else {
718
+ t4 = $[12];
719
+ }
720
+ return t4;
721
+ }
722
+ export {
723
+ Drawer,
724
+ DrawerClose,
725
+ DrawerContent,
726
+ DrawerDescription,
727
+ DrawerFooter,
728
+ DrawerHeader,
729
+ DrawerOverlay,
730
+ DrawerPortal,
731
+ DrawerSwipeHandle,
732
+ DrawerTitle,
733
+ DrawerTrigger
734
+ };
735
+ //# sourceMappingURL=drawer.js.map