@codefast/ui 0.0.34 → 0.0.36

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 (200) hide show
  1. package/animate.plugin.ts +68 -42
  2. package/base.plugin.ts +4 -0
  3. package/dist/accordion.js +1 -1
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/accordion.mjs +1 -1
  6. package/dist/accordion.mjs.map +1 -1
  7. package/dist/alert-dialog.js +1 -1
  8. package/dist/alert-dialog.js.map +1 -1
  9. package/dist/alert-dialog.mjs +1 -1
  10. package/dist/alert-dialog.mjs.map +1 -1
  11. package/dist/alert.js +1 -1
  12. package/dist/alert.js.map +1 -1
  13. package/dist/alert.mjs +1 -1
  14. package/dist/alert.mjs.map +1 -1
  15. package/dist/animate.plugin.js +1 -1
  16. package/dist/animate.plugin.mjs +1 -1
  17. package/dist/base.plugin.js +1 -1
  18. package/dist/base.plugin.mjs +1 -1
  19. package/dist/button.js +1 -1
  20. package/dist/button.mjs +1 -1
  21. package/dist/calendar.js +1 -1
  22. package/dist/calendar.mjs +1 -1
  23. package/dist/card.js +1 -1
  24. package/dist/card.js.map +1 -1
  25. package/dist/card.mjs +1 -1
  26. package/dist/card.mjs.map +1 -1
  27. package/dist/carousel.js +1 -1
  28. package/dist/carousel.js.map +1 -1
  29. package/dist/carousel.mjs +1 -1
  30. package/dist/carousel.mjs.map +1 -1
  31. package/dist/checkbox-cards.js +1 -1
  32. package/dist/checkbox-cards.js.map +1 -1
  33. package/dist/checkbox-cards.mjs +1 -1
  34. package/dist/checkbox-cards.mjs.map +1 -1
  35. package/dist/{chunk-MZK6NKEQ.mjs → chunk-4UVLRXTB.mjs} +2 -2
  36. package/dist/chunk-55N7YRUU.js +2 -0
  37. package/dist/chunk-55N7YRUU.js.map +1 -0
  38. package/dist/chunk-5M27PLCC.js +2 -0
  39. package/dist/chunk-5M27PLCC.js.map +1 -0
  40. package/dist/chunk-7XGQAAYA.mjs +2 -0
  41. package/dist/chunk-7XGQAAYA.mjs.map +1 -0
  42. package/dist/chunk-AGQAQPG4.mjs +2 -0
  43. package/dist/chunk-AGQAQPG4.mjs.map +1 -0
  44. package/dist/chunk-F573R6SD.mjs +2 -0
  45. package/dist/chunk-F573R6SD.mjs.map +1 -0
  46. package/dist/chunk-FEHY6EXQ.js +2 -0
  47. package/dist/chunk-FEHY6EXQ.js.map +1 -0
  48. package/dist/chunk-FMUUVBVI.mjs +2 -0
  49. package/dist/chunk-FMUUVBVI.mjs.map +1 -0
  50. package/dist/chunk-ICHQEE5Q.js +2 -0
  51. package/dist/chunk-ICHQEE5Q.js.map +1 -0
  52. package/dist/chunk-K7TLHY6G.js +2 -0
  53. package/dist/chunk-K7TLHY6G.js.map +1 -0
  54. package/dist/chunk-KXTYKCZX.js +2 -0
  55. package/dist/chunk-KXTYKCZX.js.map +1 -0
  56. package/dist/{chunk-HL4LYB74.js → chunk-MUVQMEAI.js} +2 -2
  57. package/dist/chunk-OJNMIA22.mjs +2 -0
  58. package/dist/chunk-OJNMIA22.mjs.map +1 -0
  59. package/dist/chunk-YZ5BKYGH.mjs +2 -0
  60. package/dist/chunk-YZ5BKYGH.mjs.map +1 -0
  61. package/dist/collapsible.d.mts +1 -1
  62. package/dist/collapsible.d.ts +1 -1
  63. package/dist/collapsible.js +1 -1
  64. package/dist/collapsible.js.map +1 -1
  65. package/dist/collapsible.mjs +1 -1
  66. package/dist/collapsible.mjs.map +1 -1
  67. package/dist/command.js +1 -1
  68. package/dist/command.js.map +1 -1
  69. package/dist/command.mjs +1 -1
  70. package/dist/command.mjs.map +1 -1
  71. package/dist/context-menu.js +1 -1
  72. package/dist/context-menu.js.map +1 -1
  73. package/dist/context-menu.mjs +1 -1
  74. package/dist/context-menu.mjs.map +1 -1
  75. package/dist/data-table.js +1 -1
  76. package/dist/data-table.mjs +1 -1
  77. package/dist/dialog.js +1 -1
  78. package/dist/dialog.mjs +1 -1
  79. package/dist/drawer.js +1 -1
  80. package/dist/drawer.js.map +1 -1
  81. package/dist/drawer.mjs +1 -1
  82. package/dist/drawer.mjs.map +1 -1
  83. package/dist/dropdown-menu.js +1 -1
  84. package/dist/dropdown-menu.mjs +1 -1
  85. package/dist/form.js +1 -1
  86. package/dist/form.js.map +1 -1
  87. package/dist/form.mjs +1 -1
  88. package/dist/form.mjs.map +1 -1
  89. package/dist/hover-card.js +1 -1
  90. package/dist/hover-card.js.map +1 -1
  91. package/dist/hover-card.mjs +1 -1
  92. package/dist/hover-card.mjs.map +1 -1
  93. package/dist/input-otp.js +1 -1
  94. package/dist/input-otp.js.map +1 -1
  95. package/dist/input-otp.mjs +1 -1
  96. package/dist/input-otp.mjs.map +1 -1
  97. package/dist/menubar.js +1 -1
  98. package/dist/menubar.js.map +1 -1
  99. package/dist/menubar.mjs +1 -1
  100. package/dist/menubar.mjs.map +1 -1
  101. package/dist/navigation-menu.d.mts +1 -5
  102. package/dist/navigation-menu.d.ts +1 -5
  103. package/dist/navigation-menu.js +1 -1
  104. package/dist/navigation-menu.js.map +1 -1
  105. package/dist/navigation-menu.mjs +1 -1
  106. package/dist/navigation-menu.mjs.map +1 -1
  107. package/dist/pagination.js +1 -1
  108. package/dist/pagination.mjs +1 -1
  109. package/dist/popover.js +1 -1
  110. package/dist/popover.js.map +1 -1
  111. package/dist/popover.mjs +1 -1
  112. package/dist/popover.mjs.map +1 -1
  113. package/dist/radio-cards.js +1 -1
  114. package/dist/radio-cards.js.map +1 -1
  115. package/dist/radio-cards.mjs +1 -1
  116. package/dist/radio-cards.mjs.map +1 -1
  117. package/dist/scroll-area.js +1 -1
  118. package/dist/scroll-area.js.map +1 -1
  119. package/dist/scroll-area.mjs +1 -1
  120. package/dist/scroll-area.mjs.map +1 -1
  121. package/dist/select.js +1 -1
  122. package/dist/select.mjs +1 -1
  123. package/dist/sheet.js +1 -1
  124. package/dist/sheet.js.map +1 -1
  125. package/dist/sheet.mjs +1 -1
  126. package/dist/sheet.mjs.map +1 -1
  127. package/dist/skeleton.js +1 -1
  128. package/dist/skeleton.js.map +1 -1
  129. package/dist/skeleton.mjs +1 -1
  130. package/dist/skeleton.mjs.map +1 -1
  131. package/dist/spinner.js +1 -1
  132. package/dist/spinner.mjs +1 -1
  133. package/dist/styles.css +1 -1
  134. package/dist/styles.css.map +1 -1
  135. package/dist/tailwind.config.js +1 -1
  136. package/dist/tailwind.config.js.map +1 -1
  137. package/dist/tailwind.config.mjs +1 -1
  138. package/dist/tailwind.config.mjs.map +1 -1
  139. package/dist/toggle-group.js +1 -1
  140. package/dist/toggle-group.js.map +1 -1
  141. package/dist/toggle-group.mjs +1 -1
  142. package/dist/toggle-group.mjs.map +1 -1
  143. package/dist/tooltip.js +1 -1
  144. package/dist/tooltip.js.map +1 -1
  145. package/dist/tooltip.mjs +1 -1
  146. package/dist/tooltip.mjs.map +1 -1
  147. package/package.json +1 -1
  148. package/src/accordion.tsx +5 -8
  149. package/src/alert-dialog.tsx +2 -2
  150. package/src/alert.tsx +1 -1
  151. package/src/card.tsx +1 -1
  152. package/src/carousel.tsx +1 -1
  153. package/src/checkbox-cards.tsx +2 -7
  154. package/src/collapsible.tsx +18 -2
  155. package/src/command.tsx +1 -1
  156. package/src/context-menu.tsx +9 -9
  157. package/src/dialog.tsx +3 -3
  158. package/src/drawer.tsx +1 -1
  159. package/src/dropdown-menu.tsx +9 -9
  160. package/src/form.tsx +1 -1
  161. package/src/hover-card.tsx +1 -1
  162. package/src/input-otp.tsx +1 -1
  163. package/src/menubar.tsx +10 -10
  164. package/src/navigation-menu.tsx +12 -13
  165. package/src/popover.tsx +1 -1
  166. package/src/radio-cards.tsx +1 -1
  167. package/src/scroll-area.tsx +1 -1
  168. package/src/select.tsx +5 -5
  169. package/src/sheet.tsx +3 -3
  170. package/src/skeleton.tsx +1 -1
  171. package/src/spinner.tsx +2 -2
  172. package/src/toggle-group.tsx +2 -2
  173. package/src/tooltip.tsx +1 -1
  174. package/tailwind.config.ts +7 -7
  175. package/dist/chunk-2RQCRE7N.js +0 -2
  176. package/dist/chunk-2RQCRE7N.js.map +0 -1
  177. package/dist/chunk-4O6ITKSR.mjs +0 -2
  178. package/dist/chunk-4O6ITKSR.mjs.map +0 -1
  179. package/dist/chunk-4PLFXJV7.js +0 -2
  180. package/dist/chunk-4PLFXJV7.js.map +0 -1
  181. package/dist/chunk-HJ4U5JJA.mjs +0 -2
  182. package/dist/chunk-HJ4U5JJA.mjs.map +0 -1
  183. package/dist/chunk-JVGHOCS7.js +0 -2
  184. package/dist/chunk-JVGHOCS7.js.map +0 -1
  185. package/dist/chunk-K2R52EI6.js +0 -2
  186. package/dist/chunk-K2R52EI6.js.map +0 -1
  187. package/dist/chunk-KEXJH5MC.js +0 -2
  188. package/dist/chunk-KEXJH5MC.js.map +0 -1
  189. package/dist/chunk-OFYFDUZA.mjs +0 -2
  190. package/dist/chunk-OFYFDUZA.mjs.map +0 -1
  191. package/dist/chunk-OMKKUHYT.mjs +0 -2
  192. package/dist/chunk-OMKKUHYT.mjs.map +0 -1
  193. package/dist/chunk-TMXZMQRK.mjs +0 -2
  194. package/dist/chunk-TMXZMQRK.mjs.map +0 -1
  195. package/dist/chunk-Y3CNKB2A.js +0 -2
  196. package/dist/chunk-Y3CNKB2A.js.map +0 -1
  197. package/dist/chunk-Y4C6DTPN.mjs +0 -2
  198. package/dist/chunk-Y4C6DTPN.mjs.map +0 -1
  199. /package/dist/{chunk-MZK6NKEQ.mjs.map → chunk-4UVLRXTB.mjs.map} +0 -0
  200. /package/dist/{chunk-HL4LYB74.js.map → chunk-MUVQMEAI.js.map} +0 -0
package/animate.plugin.ts CHANGED
@@ -5,50 +5,76 @@ type Theme = <TDefaultValue = Config["theme"]>(path?: string, defaultValue?: TDe
5
5
 
6
6
  const animate = plugin(
7
7
  ({ addUtilities, matchUtilities, theme }) => {
8
+ // Keyframes
8
9
  addUtilities({
9
- "@keyframes enter": {
10
+ "@keyframes in": {
10
11
  from: {
11
- opacity: "var(--animate-enter-opacity, 1)",
12
+ opacity: "var(--animate-in-opacity, 1)",
12
13
  transform: [
13
- "translate3d(var(--animate-enter-translate-x, 0), var(--animate-enter-translate-y, 0), 0)",
14
- "scale3d(var(--animate-enter-scale, 1), var(--animate-enter-scale, 1), var(--animate-enter-scale, 1))",
15
- "rotate(var(--animate-enter-rotate, 0))",
14
+ "translate3d(var(--animate-in-translate-x, 0), var(--animate-in-translate-y, 0), 0)",
15
+ "scale3d(var(--animate-in-scale, 1), var(--animate-in-scale, 1), var(--animate-in-scale, 1))",
16
+ "rotate(var(--animate-in-rotate, 0))",
16
17
  ].join(" "),
17
18
  },
18
19
  },
19
20
 
20
- "@keyframes exit": {
21
+ "@keyframes out": {
21
22
  to: {
22
- opacity: "var(--animate-exit-opacity, 1)",
23
+ opacity: "var(--animate-out-opacity, 1)",
23
24
  transform: [
24
- "translate3d(var(--animate-exit-translate-x, 0), var(--animate-exit-translate-y, 0), 0)",
25
- "scale3d(var(--animate-exit-scale, 1), var(--animate-exit-scale, 1), var(--animate-exit-scale, 1))",
26
- "rotate(var(--animate-exit-rotate, 0))",
25
+ "translate3d(var(--animate-out-translate-x, 0), var(--animate-out-translate-y, 0), 0)",
26
+ "scale3d(var(--animate-out-scale, 1), var(--animate-out-scale, 1), var(--animate-out-scale, 1))",
27
+ "rotate(var(--animate-out-rotate, 0))",
27
28
  ].join(" "),
28
29
  },
29
30
  },
30
31
 
32
+ "@keyframes fade-in": {
33
+ from: {
34
+ opacity: "var(--animate-in-opacity, 0)",
35
+ },
36
+ },
37
+
38
+ "@keyframes fade-out": {
39
+ to: {
40
+ opacity: "var(--animate-out-opacity, 0)",
41
+ },
42
+ },
43
+
31
44
  ".animate-in": {
32
- animationName: "enter",
45
+ animationName: "in",
33
46
  animationDuration: theme("animationDuration.DEFAULT"),
34
- "--animate-enter-opacity": "initial",
35
- "--animate-enter-scale": "initial",
36
- "--animate-enter-rotate": "initial",
37
- "--animate-enter-translate-x": "initial",
38
- "--animate-enter-translate-y": "initial",
47
+ "--animate-in-opacity": "initial",
48
+ "--animate-in-scale": "initial",
49
+ "--animate-in-rotate": "initial",
50
+ "--animate-in-translate-x": "initial",
51
+ "--animate-in-translate-y": "initial",
39
52
  },
40
53
 
41
54
  ".animate-out": {
42
- animationName: "exit",
55
+ animationName: "out",
56
+ animationDuration: theme("animationDuration.DEFAULT"),
57
+ "--animate-out-opacity": "initial",
58
+ "--animate-out-scale": "initial",
59
+ "--animate-out-rotate": "initial",
60
+ "--animate-out-translate-x": "initial",
61
+ "--animate-out-translate-y": "initial",
62
+ },
63
+
64
+ ".animate-fade-in": {
65
+ animationName: "fade-in",
66
+ animationDuration: theme("animationDuration.DEFAULT"),
67
+ "--animate-in-opacity": "initial",
68
+ },
69
+
70
+ ".animate-fade-out": {
71
+ animationName: "fade-out",
43
72
  animationDuration: theme("animationDuration.DEFAULT"),
44
- "--animate-exit-opacity": "initial",
45
- "--animate-exit-scale": "initial",
46
- "--animate-exit-rotate": "initial",
47
- "--animate-exit-translate-x": "initial",
48
- "--animate-exit-translate-y": "initial",
73
+ "--animate-out-opacity": "initial",
49
74
  },
50
75
  });
51
76
 
77
+ // Play state
52
78
  addUtilities({
53
79
  ".animation-running": {
54
80
  animationPlayState: "running",
@@ -61,7 +87,7 @@ const animate = plugin(
61
87
  // Delay
62
88
  matchUtilities(
63
89
  {
64
- "animation-delay": (value) => ({
90
+ "animate-delay": (value) => ({
65
91
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
66
92
  animationDelay: value,
67
93
  }),
@@ -74,7 +100,7 @@ const animate = plugin(
74
100
  // Direction
75
101
  matchUtilities(
76
102
  {
77
- "animation-direction": (value) => ({
103
+ "animate-direction": (value) => ({
78
104
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
79
105
  animationDirection: value,
80
106
  }),
@@ -87,7 +113,7 @@ const animate = plugin(
87
113
  // Duration
88
114
  matchUtilities(
89
115
  {
90
- "animation-duration": (value) => ({
116
+ "animate-duration": (value) => ({
91
117
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
92
118
  animationDuration: value,
93
119
  }),
@@ -100,7 +126,7 @@ const animate = plugin(
100
126
  // Fill mode
101
127
  matchUtilities(
102
128
  {
103
- "animation-fill-mode": (value) => ({
129
+ "animate-fill-mode": (value) => ({
104
130
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
105
131
  animationFillMode: value,
106
132
  }),
@@ -115,11 +141,11 @@ const animate = plugin(
115
141
  {
116
142
  "fade-in": (value) => ({
117
143
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
118
- "--animate-enter-opacity": value,
144
+ "--animate-in-opacity": value,
119
145
  }),
120
146
  "fade-out": (value) => ({
121
147
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
122
- "--animate-exit-opacity": value,
148
+ "--animate-out-opacity": value,
123
149
  }),
124
150
  },
125
151
  {
@@ -130,7 +156,7 @@ const animate = plugin(
130
156
  // Repeat
131
157
  matchUtilities(
132
158
  {
133
- "animation-repeat": (value) => ({
159
+ "animate-repeat": (value) => ({
134
160
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
135
161
  animationIterationCount: value,
136
162
  }),
@@ -145,11 +171,11 @@ const animate = plugin(
145
171
  {
146
172
  "spin-in": (value) => ({
147
173
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
148
- "--animate-enter-rotate": value,
174
+ "--animate-in-rotate": value,
149
175
  }),
150
176
  "spin-out": (value) => ({
151
177
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
152
- "--animate-exit-rotate": value,
178
+ "--animate-out-rotate": value,
153
179
  }),
154
180
  },
155
181
  {
@@ -162,11 +188,11 @@ const animate = plugin(
162
188
  {
163
189
  "zoom-in": (value) => ({
164
190
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
165
- "--animate-enter-scale": value,
191
+ "--animate-in-scale": value,
166
192
  }),
167
193
  "zoom-out": (value) => ({
168
194
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
169
- "--animate-exit-scale": value,
195
+ "--animate-out-scale": value,
170
196
  }),
171
197
  },
172
198
  {
@@ -177,7 +203,7 @@ const animate = plugin(
177
203
  // Timing function
178
204
  matchUtilities(
179
205
  {
180
- "animation-ease": (value) => ({
206
+ "animate-ease": (value) => ({
181
207
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
182
208
  animationTimingFunction: value,
183
209
  }),
@@ -191,39 +217,39 @@ const animate = plugin(
191
217
  matchUtilities(
192
218
  {
193
219
  "slide-in-from-top": (value) => ({
194
- "--animate-enter-translate-y": `-${value}`,
220
+ "--animate-in-translate-y": `-${value}`,
195
221
  }),
196
222
 
197
223
  "slide-in-from-bottom": (value) => ({
198
224
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
199
- "--animate-enter-translate-y": value,
225
+ "--animate-in-translate-y": value,
200
226
  }),
201
227
 
202
228
  "slide-in-from-left": (value) => ({
203
- "--animate-enter-translate-x": `-${value}`,
229
+ "--animate-in-translate-x": `-${value}`,
204
230
  }),
205
231
 
206
232
  "slide-in-from-right": (value) => ({
207
233
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
208
- "--animate-enter-translate-x": value,
234
+ "--animate-in-translate-x": value,
209
235
  }),
210
236
 
211
237
  "slide-out-to-top": (value) => ({
212
- "--animate-exit-translate-y": `-${value}`,
238
+ "--animate-out-translate-y": `-${value}`,
213
239
  }),
214
240
 
215
241
  "slide-out-to-bottom": (value) => ({
216
242
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
217
- "--animate-exit-translate-y": value,
243
+ "--animate-out-translate-y": value,
218
244
  }),
219
245
 
220
246
  "slide-out-to-left": (value) => ({
221
- "--animate-exit-translate-x": `-${value}`,
247
+ "--animate-out-translate-x": `-${value}`,
222
248
  }),
223
249
 
224
250
  "slide-out-to-right": (value) => ({
225
251
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
226
- "--animate-exit-translate-x": value,
252
+ "--animate-out-translate-x": value,
227
253
  }),
228
254
  },
229
255
  {
package/base.plugin.ts CHANGED
@@ -11,6 +11,10 @@ const base = plugin(({ addBase }) => {
11
11
  ":focus-visible": {
12
12
  "@apply outline-ring": "",
13
13
  },
14
+ "button, [role='button'], input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":
15
+ {
16
+ "@apply outline-transparent": "",
17
+ },
14
18
  });
15
19
  });
16
20
 
package/dist/accordion.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _react = require('react'); var n = _interopRequireWildcard(_react);var _reactaccordion = require('@radix-ui/react-accordion'); var o = _interopRequireWildcard(_reactaccordion);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var l=o.Root,a= exports.AccordionItem =n.forwardRef(({className:e,...t},i)=>_jsxruntime.jsx.call(void 0, o.Item,{ref:i,className:_chunkQZCQ42BPjs.b.call(void 0, "border-b",e),...t}));a.displayName=o.Item.displayName;var p=n.forwardRef(({className:e,children:t,...i},m)=>_jsxruntime.jsx.call(void 0, o.Header,{className:"flex",children:_jsxruntime.jsxs.call(void 0, o.Trigger,{ref:m,className:_chunkQZCQ42BPjs.b.call(void 0, "group flex flex-1 items-center justify-between py-4 text-sm font-medium transition hover:underline",e),...i,children:[t,_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{className:"text-muted-foreground size-4 shrink-0 transition duration-200 group-data-[state=open]:rotate-180"})]})}));p.displayName=o.Trigger.displayName;var s=n.forwardRef(({className:e,children:t,...i},m)=>_jsxruntime.jsx.call(void 0, o.Content,{ref:m,className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm",...i,children:_jsxruntime.jsx.call(void 0, "div",{className:_chunkQZCQ42BPjs.b.call(void 0, "pb-4 pt-0",e),children:t})}));s.displayName=o.Content.displayName;exports.Accordion = l; exports.AccordionContent = s; exports.AccordionItem = a; exports.AccordionTrigger = p;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _react = require('react'); var n = _interopRequireWildcard(_react);var _reactaccordion = require('@radix-ui/react-accordion'); var e = _interopRequireWildcard(_reactaccordion);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var P=e.Root,a= exports.AccordionItem =n.forwardRef(({className:o,...t},i)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:i,className:_chunkQZCQ42BPjs.b.call(void 0, "border-b",o),...t}));a.displayName=e.Item.displayName;var p=n.forwardRef(({children:o,className:t,...i},m)=>_jsxruntime.jsx.call(void 0, e.Header,{className:"flex",children:_jsxruntime.jsxs.call(void 0, e.Trigger,{ref:m,className:_chunkQZCQ42BPjs.b.call(void 0, "group flex flex-1 items-center justify-between py-4 text-sm font-medium",t),...i,children:[o,_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{className:"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180"})]})}));p.displayName=e.Trigger.displayName;var s=n.forwardRef(({children:o,className:t,...i},m)=>_jsxruntime.jsx.call(void 0, e.Content,{ref:m,className:"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm",...i,children:_jsxruntime.jsx.call(void 0, "div",{className:_chunkQZCQ42BPjs.b.call(void 0, "pb-4 pt-0",t),children:o})}));s.displayName=e.Content.displayName;exports.Accordion = P; exports.AccordionContent = s; exports.AccordionItem = a; exports.AccordionTrigger = p;
2
2
  //# sourceMappingURL=accordion.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/accordion.tsx"],"names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","ref","cn","AccordionTrigger","children","AccordionContent"],"mappings":"qDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAkB9B,cAAAC,EAeI,QAAAC,MAfJ,oBAVF,IAAMC,EAA+B,OAS/BC,EAAsB,aAAqD,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzGN,EAAoB,OAAnB,CAAwB,IAAKM,EAAK,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CACrF,EAEDF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAJ,EAAW,SAAAK,EAAU,GAAGJ,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EACT,qGACAH,CACF,EACC,GAAGC,EAEH,UAAAI,EACDT,EAACD,EAAA,CAAgB,UAAU,mGAAmG,GAChI,EACF,CAEJ,EAEAS,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAyB,aAC7B,CAAC,CAAE,UAAAN,EAAW,SAAAK,EAAU,GAAGJ,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,4GACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAC,EAAiB,YAAiC,UAAQ","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n));\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"group flex flex-1 items-center justify-between py-4 text-sm font-medium transition hover:underline\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition duration-200 group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"]}
1
+ {"version":3,"sources":["../src/accordion.tsx"],"names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","ref","cn","AccordionTrigger","children","AccordionContent"],"mappings":"qDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAkB9B,cAAAC,EAeI,QAAAC,MAfJ,oBAVF,IAAMC,EAA+B,OAS/BC,EAAsB,aAAqD,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzGN,EAAoB,OAAnB,CAAwB,IAAKM,EAAK,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CACrF,EAEDF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EAAG,0EAA2EH,CAAS,EACjG,GAAGC,EAEH,UAAAI,EACDT,EAACD,EAAA,CAAgB,UAAU,sFAAsF,GACnH,EACF,CAEJ,EAEAS,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAyB,aAC7B,CAAC,CAAE,SAAAD,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,oHACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAC,EAAiB,YAAiC,UAAQ","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n));\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\"group flex flex-1 items-center justify-between py-4 text-sm font-medium\", className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{b as c}from"./chunk-JTI7KCLO.mjs";import*as n from"react";import*as o from"@radix-ui/react-accordion";import{ChevronDownIcon as d}from"@radix-ui/react-icons";import{jsx as r,jsxs as A}from"react/jsx-runtime";var l=o.Root,a=n.forwardRef(({className:e,...t},i)=>r(o.Item,{ref:i,className:c("border-b",e),...t}));a.displayName=o.Item.displayName;var p=n.forwardRef(({className:e,children:t,...i},m)=>r(o.Header,{className:"flex",children:A(o.Trigger,{ref:m,className:c("group flex flex-1 items-center justify-between py-4 text-sm font-medium transition hover:underline",e),...i,children:[t,r(d,{className:"text-muted-foreground size-4 shrink-0 transition duration-200 group-data-[state=open]:rotate-180"})]})}));p.displayName=o.Trigger.displayName;var s=n.forwardRef(({className:e,children:t,...i},m)=>r(o.Content,{ref:m,className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm",...i,children:r("div",{className:c("pb-4 pt-0",e),children:t})}));s.displayName=o.Content.displayName;export{l as Accordion,s as AccordionContent,a as AccordionItem,p as AccordionTrigger};
1
+ "use client";import{b as c}from"./chunk-JTI7KCLO.mjs";import*as n from"react";import*as e from"@radix-ui/react-accordion";import{ChevronDownIcon as d}from"@radix-ui/react-icons";import{jsx as r,jsxs as A}from"react/jsx-runtime";var P=e.Root,a=n.forwardRef(({className:o,...t},i)=>r(e.Item,{ref:i,className:c("border-b",o),...t}));a.displayName=e.Item.displayName;var p=n.forwardRef(({children:o,className:t,...i},m)=>r(e.Header,{className:"flex",children:A(e.Trigger,{ref:m,className:c("group flex flex-1 items-center justify-between py-4 text-sm font-medium",t),...i,children:[o,r(d,{className:"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180"})]})}));p.displayName=e.Trigger.displayName;var s=n.forwardRef(({children:o,className:t,...i},m)=>r(e.Content,{ref:m,className:"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm",...i,children:r("div",{className:c("pb-4 pt-0",t),children:o})}));s.displayName=e.Content.displayName;export{P as Accordion,s as AccordionContent,a as AccordionItem,p as AccordionTrigger};
2
2
  //# sourceMappingURL=accordion.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/accordion.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n));\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"group flex flex-1 items-center justify-between py-4 text-sm font-medium transition hover:underline\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition duration-200 group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAkB9B,cAAAC,EAeI,QAAAC,MAfJ,oBAVF,IAAMC,EAA+B,OAS/BC,EAAsB,aAAqD,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzGN,EAAoB,OAAnB,CAAwB,IAAKM,EAAK,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CACrF,EAEDF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAJ,EAAW,SAAAK,EAAU,GAAGJ,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EACT,qGACAH,CACF,EACC,GAAGC,EAEH,UAAAI,EACDT,EAACU,EAAA,CAAgB,UAAU,mGAAmG,GAChI,EACF,CAEJ,EAEAF,EAAiB,YAAiC,UAAQ,YAS1D,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,SAAAK,EAAU,GAAGJ,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,4GACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAE,EAAiB,YAAiC,UAAQ","names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","ref","cn","AccordionTrigger","children","ChevronDownIcon","AccordionContent"]}
1
+ {"version":3,"sources":["../src/accordion.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemElement = React.ElementRef<typeof AccordionPrimitive.Item>;\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\n\nconst AccordionItem = React.forwardRef<AccordionItemElement, AccordionItemProps>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n));\n\nAccordionItem.displayName = AccordionPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\"group flex flex-1 items-center justify-between py-4 text-sm font-medium\", className)}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-180\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,mBAAAC,MAAuB,wBAkB9B,cAAAC,EAeI,QAAAC,MAfJ,oBAVF,IAAMC,EAA+B,OAS/BC,EAAsB,aAAqD,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzGN,EAAoB,OAAnB,CAAwB,IAAKM,EAAK,UAAWC,EAAG,WAAYH,CAAS,EAAI,GAAGC,EAAO,CACrF,EAEDF,EAAc,YAAiC,OAAK,YASpD,IAAMK,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAC,EAAoB,UAAnB,CACC,IAAKK,EACL,UAAWC,EAAG,0EAA2EH,CAAS,EACjG,GAAGC,EAEH,UAAAI,EACDT,EAACU,EAAA,CAAgB,UAAU,sFAAsF,GACnH,EACF,CAEJ,EAEAF,EAAiB,YAAiC,UAAQ,YAS1D,IAAMG,EAAyB,aAC7B,CAAC,CAAE,SAAAF,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAClCN,EAAoB,UAAnB,CACC,IAAKM,EACL,UAAU,oHACT,GAAGD,EAEJ,SAAAL,EAAC,OAAI,UAAWO,EAAG,YAAaH,CAAS,EAAI,SAAAK,EAAS,EACxD,CAEJ,EAEAE,EAAiB,YAAiC,UAAQ","names":["React","AccordionPrimitive","ChevronDownIcon","jsx","jsxs","Accordion","AccordionItem","className","props","ref","cn","AccordionTrigger","children","ChevronDownIcon","AccordionContent"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkHL4LYB74js = require('./chunk-HL4LYB74.js');require('./chunk-JVGHOCS7.js');var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var d=e.Root,P= exports.AlertDialogTrigger =e.Trigger,s= exports.AlertDialogContent =r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80"}),_jsxruntime.jsx.call(void 0, e.Content,{ref:o,className:_chunkQZCQ42BPjs.b.call(void 0, "bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/3 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/3 animation-duration-200 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t),...i})]}));s.displayName=e.Content.displayName;function y({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkQZCQ42BPjs.b.call(void 0, "flex flex-col space-y-2 text-center","sm:text-left",t),...i})}function R({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkQZCQ42BPjs.b.call(void 0, "flex flex-col-reverse gap-2","sm:flex-row sm:justify-end",t),...i})}var p=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:o,className:_chunkQZCQ42BPjs.b.call(void 0, "text-lg font-semibold",t),...i}));p.displayName=e.Title.displayName;var m=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:o,className:_chunkQZCQ42BPjs.b.call(void 0, "text-muted-foreground text-sm",t),...i}));m.displayName=e.Description.displayName;var g=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Action,{ref:o,className:_chunkHL4LYB74js.a.call(void 0, {className:t}),...i}));g.displayName=e.Action.displayName;var A=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Cancel,{ref:o,className:_chunkHL4LYB74js.a.call(void 0, {variant:"outline",className:t}),...i}));A.displayName=e.Cancel.displayName;exports.AlertDialog = d; exports.AlertDialogAction = g; exports.AlertDialogCancel = A; exports.AlertDialogContent = s; exports.AlertDialogDescription = m; exports.AlertDialogFooter = R; exports.AlertDialogHeader = y; exports.AlertDialogTitle = p; exports.AlertDialogTrigger = P;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkMUVQMEAIjs = require('./chunk-MUVQMEAI.js');require('./chunk-KXTYKCZX.js');var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var d=e.Root,P= exports.AlertDialogTrigger =e.Trigger,s= exports.AlertDialogContent =r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80"}),_jsxruntime.jsx.call(void 0, e.Content,{ref:o,className:_chunkQZCQ42BPjs.b.call(void 0, "bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t),...i})]}));s.displayName=e.Content.displayName;function y({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkQZCQ42BPjs.b.call(void 0, "flex flex-col space-y-2 text-center","sm:text-left",t),...i})}function R({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkQZCQ42BPjs.b.call(void 0, "flex flex-col-reverse gap-2","sm:flex-row sm:justify-end",t),...i})}var p=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:o,className:_chunkQZCQ42BPjs.b.call(void 0, "text-lg font-semibold",t),...i}));p.displayName=e.Title.displayName;var m=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:o,className:_chunkQZCQ42BPjs.b.call(void 0, "text-muted-foreground text-sm",t),...i}));m.displayName=e.Description.displayName;var g=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Action,{ref:o,className:_chunkMUVQMEAIjs.a.call(void 0, {className:t}),...i}));g.displayName=e.Action.displayName;var A=r.forwardRef(({className:t,...i},o)=>_jsxruntime.jsx.call(void 0, e.Cancel,{ref:o,className:_chunkMUVQMEAIjs.a.call(void 0, {variant:"outline",className:t}),...i}));A.displayName=e.Cancel.displayName;exports.AlertDialog = d; exports.AlertDialogAction = g; exports.AlertDialogCancel = A; exports.AlertDialogContent = s; exports.AlertDialogDescription = m; exports.AlertDialogFooter = R; exports.AlertDialogHeader = y; exports.AlertDialogTitle = p; exports.AlertDialogTrigger = P;
2
2
  //# sourceMappingURL=alert-dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"yHAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA2BlC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAlBJ,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,yJAAyJ,EACjMA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,ygBACAH,CACF,EACC,GAAGC,EACN,GACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,sCAAuC,eAAgBH,CAAS,EAAI,GAAGC,EAAO,CAC1G,CAQA,SAASI,EAAkB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,8BAA+B,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAChH,CASA,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,QAArB,CAA2B,IAAKO,EAAK,UAAWC,EAAG,wBAAyBH,CAAS,EAAI,GAAGC,EAAO,CAExG,EAEAK,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,cAArB,CAAiC,IAAKO,EAAK,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,CAEtH,EAEAM,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEhG,EAEAO,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEpH,EACAS,EAAkB,YAAmC,SAAO","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { buttonVariants } from \"./button\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/3 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/3 animation-duration-200 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col space-y-2 text-center\", \"sm:text-left\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col-reverse gap-2\", \"sm:flex-row sm:justify-end\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn(\"text-lg font-semibold\", className)} {...props} />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn(\"text-muted-foreground text-sm\", className)} {...props} />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel ref={ref} className={buttonVariants({ variant: \"outline\", className })} {...props} />\n ),\n);\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
1
+ {"version":3,"sources":["../src/alert-dialog.tsx"],"names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"yHAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA2BlC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAlBJ,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,+IAA+I,EACvLA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,yhBACAH,CACF,EACC,GAAGC,EACN,GACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,sCAAuC,eAAgBH,CAAS,EAAI,GAAGC,EAAO,CAC1G,CAQA,SAASI,EAAkB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,8BAA+B,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAChH,CASA,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,QAArB,CAA2B,IAAKO,EAAK,UAAWC,EAAG,wBAAyBH,CAAS,EAAI,GAAGC,EAAO,CAExG,EAEAK,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,cAArB,CAAiC,IAAKO,EAAK,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,CAEtH,EAEAM,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEhG,EAEAO,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEpH,EACAS,EAAkB,YAAmC,SAAO","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { buttonVariants } from \"./button\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col space-y-2 text-center\", \"sm:text-left\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col-reverse gap-2\", \"sm:flex-row sm:justify-end\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn(\"text-lg font-semibold\", className)} {...props} />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn(\"text-muted-foreground text-sm\", className)} {...props} />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel ref={ref} className={buttonVariants({ variant: \"outline\", className })} {...props} />\n ),\n);\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a as n}from"./chunk-MZK6NKEQ.mjs";import"./chunk-TMXZMQRK.mjs";import{b as a}from"./chunk-JTI7KCLO.mjs";import*as r from"react";import*as e from"@radix-ui/react-alert-dialog";import{jsx as l,jsxs as D}from"react/jsx-runtime";var d=e.Root,P=e.Trigger,s=r.forwardRef(({className:t,...i},o)=>D(e.Portal,{children:[l(e.Overlay,{className:"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80"}),l(e.Content,{ref:o,className:a("bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/3 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/3 animation-duration-200 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t),...i})]}));s.displayName=e.Content.displayName;function y({className:t,...i}){return l("div",{className:a("flex flex-col space-y-2 text-center","sm:text-left",t),...i})}function R({className:t,...i}){return l("div",{className:a("flex flex-col-reverse gap-2","sm:flex-row sm:justify-end",t),...i})}var p=r.forwardRef(({className:t,...i},o)=>l(e.Title,{ref:o,className:a("text-lg font-semibold",t),...i}));p.displayName=e.Title.displayName;var m=r.forwardRef(({className:t,...i},o)=>l(e.Description,{ref:o,className:a("text-muted-foreground text-sm",t),...i}));m.displayName=e.Description.displayName;var g=r.forwardRef(({className:t,...i},o)=>l(e.Action,{ref:o,className:n({className:t}),...i}));g.displayName=e.Action.displayName;var A=r.forwardRef(({className:t,...i},o)=>l(e.Cancel,{ref:o,className:n({variant:"outline",className:t}),...i}));A.displayName=e.Cancel.displayName;export{d as AlertDialog,g as AlertDialogAction,A as AlertDialogCancel,s as AlertDialogContent,m as AlertDialogDescription,R as AlertDialogFooter,y as AlertDialogHeader,p as AlertDialogTitle,P as AlertDialogTrigger};
1
+ "use client";import{a as n}from"./chunk-4UVLRXTB.mjs";import"./chunk-7XGQAAYA.mjs";import{b as a}from"./chunk-JTI7KCLO.mjs";import*as r from"react";import*as e from"@radix-ui/react-alert-dialog";import{jsx as l,jsxs as D}from"react/jsx-runtime";var d=e.Root,P=e.Trigger,s=r.forwardRef(({className:t,...i},o)=>D(e.Portal,{children:[l(e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80"}),l(e.Content,{ref:o,className:a("bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t),...i})]}));s.displayName=e.Content.displayName;function y({className:t,...i}){return l("div",{className:a("flex flex-col space-y-2 text-center","sm:text-left",t),...i})}function R({className:t,...i}){return l("div",{className:a("flex flex-col-reverse gap-2","sm:flex-row sm:justify-end",t),...i})}var p=r.forwardRef(({className:t,...i},o)=>l(e.Title,{ref:o,className:a("text-lg font-semibold",t),...i}));p.displayName=e.Title.displayName;var m=r.forwardRef(({className:t,...i},o)=>l(e.Description,{ref:o,className:a("text-muted-foreground text-sm",t),...i}));m.displayName=e.Description.displayName;var g=r.forwardRef(({className:t,...i},o)=>l(e.Action,{ref:o,className:n({className:t}),...i}));g.displayName=e.Action.displayName;var A=r.forwardRef(({className:t,...i},o)=>l(e.Cancel,{ref:o,className:n({variant:"outline",className:t}),...i}));A.displayName=e.Cancel.displayName;export{d as AlertDialog,g as AlertDialogAction,A as AlertDialogCancel,s as AlertDialogContent,m as AlertDialogDescription,R as AlertDialogFooter,y as AlertDialogHeader,p as AlertDialogTitle,P as AlertDialogTrigger};
2
2
  //# sourceMappingURL=alert-dialog.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { buttonVariants } from \"./button\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/3 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/3 animation-duration-200 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col space-y-2 text-center\", \"sm:text-left\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col-reverse gap-2\", \"sm:flex-row sm:justify-end\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn(\"text-lg font-semibold\", className)} {...props} />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn(\"text-muted-foreground text-sm\", className)} {...props} />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel ref={ref} className={buttonVariants({ variant: \"outline\", className })} {...props} />\n ),\n);\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA2BlC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAlBJ,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,yJAAyJ,EACjMA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,ygBACAH,CACF,EACC,GAAGC,EACN,GACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,sCAAuC,eAAgBH,CAAS,EAAI,GAAGC,EAAO,CAC1G,CAQA,SAASI,EAAkB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,8BAA+B,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAChH,CASA,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,QAArB,CAA2B,IAAKO,EAAK,UAAWC,EAAG,wBAAyBH,CAAS,EAAI,GAAGC,EAAO,CAExG,EAEAK,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,cAArB,CAAiC,IAAKO,EAAK,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,CAEtH,EAEAM,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEhG,EAEAO,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEpH,EACAS,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"]}
1
+ {"version":3,"sources":["../src/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport { buttonVariants } from \"./button\";\nimport { cn } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=open]:animate-duration-200 data-[state=open]:fade-in data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col space-y-2 text-center\", \"sm:text-left\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return <div className={cn(\"flex flex-col-reverse gap-2\", \"sm:flex-row sm:justify-end\", className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn(\"text-lg font-semibold\", className)} {...props} />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn(\"text-muted-foreground text-sm\", className)} {...props} />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel ref={ref} className={buttonVariants({ variant: \"outline\", className })} {...props} />\n ),\n);\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA2BlC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAlBJ,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CAA6B,UAAU,+IAA+I,EACvLA,EAAsB,UAArB,CACC,IAAKO,EACL,UAAWC,EACT,yhBACAH,CACF,EACC,GAAGC,EACN,GACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,sCAAuC,eAAgBH,CAAS,EAAI,GAAGC,EAAO,CAC1G,CAQA,SAASI,EAAkB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OAAON,EAAC,OAAI,UAAWQ,EAAG,8BAA+B,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAChH,CASA,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,QAArB,CAA2B,IAAKO,EAAK,UAAWC,EAAG,wBAAyBH,CAAS,EAAI,GAAGC,EAAO,CAExG,EAEAK,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,cAArB,CAAiC,IAAKO,EAAK,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,CAEtH,EAEAM,EAAuB,YAAmC,cAAY,YAStE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEhG,EAEAO,EAAkB,YAAmC,SAAO,YAS5D,IAAME,EAA0B,aAC9B,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBP,EAAsB,SAArB,CAA4B,IAAKO,EAAK,UAAWO,EAAe,CAAE,QAAS,UAAW,UAAAT,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEpH,EACAS,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","jsxs","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","ref","cn","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"]}
package/dist/alert.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _react = require('react'); var l = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var n=_chunkQZCQ42BPjs.a.call(void 0, {base:"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",variants:{variant:{default:"bg-background text-foreground [&>svg]:text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),p= exports.Alert =l.forwardRef(({className:e,variant:t,...r},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,role:"alert",className:n({variant:t,className:e}),...r}));p.displayName="Alert";var d=l.forwardRef(({className:e,children:t,...r},a)=>_jsxruntime.jsx.call(void 0, "h5",{ref:a,className:_chunkQZCQ42BPjs.b.call(void 0, "mb-1 font-medium leading-none tracking-tight",e),...r,children:t}));d.displayName="AlertTitle";var c=l.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkQZCQ42BPjs.b.call(void 0, "text-sm [&_p]:leading-relaxed",e),...t}));c.displayName="AlertDescription";exports.Alert = p; exports.AlertDescription = c; exports.AlertTitle = d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _react = require('react'); var l = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var n=_chunkQZCQ42BPjs.a.call(void 0, {base:"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",variants:{variant:{default:"bg-background text-foreground [&>svg]:text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),p= exports.Alert =l.forwardRef(({className:e,variant:t,...r},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,role:"alert",className:n({variant:t,className:e}),...r}));p.displayName="Alert";var d=l.forwardRef(({children:e,className:t,...r},a)=>_jsxruntime.jsx.call(void 0, "h5",{ref:a,className:_chunkQZCQ42BPjs.b.call(void 0, "mb-1 font-medium leading-none tracking-tight",t),...r,children:e}));d.displayName="AlertTitle";var c=l.forwardRef(({className:e,...t},r)=>_jsxruntime.jsx.call(void 0, "div",{ref:r,className:_chunkQZCQ42BPjs.b.call(void 0, "text-sm [&_p]:leading-relaxed",e),...t}));c.displayName="AlertDescription";exports.Alert = p; exports.AlertDescription = c; exports.AlertTitle = d;
2
2
  //# sourceMappingURL=alert.js.map
package/dist/alert.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/alert.tsx"],"names":["React","jsx","alertVariants","cva","Alert","className","variant","props","ref","AlertTitle","children","cn","AlertDescription"],"mappings":"+CAAA,UAAYA,MAAW,QA+BrB,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBC,EAAI,CACxB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FP,EAAC,OAAI,IAAKO,EAAK,KAAK,QAAQ,UAAWN,EAAc,CAAE,QAAAI,EAAS,UAAAD,CAAU,CAAC,EAAI,GAAGE,EAAO,CAC1F,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aAA+C,CAAC,CAAE,UAAAJ,EAAW,SAAAK,EAAU,GAAGH,CAAM,EAAGC,IAC1GP,EAAC,MAAG,IAAKO,EAAK,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EACzF,SAAAG,EACH,CACD,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBP,EAAC,OAAI,IAAKO,EAAK,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAEzF,EAEAK,EAAiB,YAAc","sourcesContent":["import * as React from \"react\";\nimport { type VariantProps } from \"cva\";\nimport { cn, cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = cva({\n base: \"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7\",\n variants: {\n variant: {\n default: \"bg-background text-foreground [&>svg]:text-foreground\",\n destructive: \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, ref) => (\n <div ref={ref} role=\"alert\" className={alertVariants({ variant, className })} {...props} />\n));\n\nAlert.displayName = \"Alert\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(({ className, children, ...props }, ref) => (\n <h5 ref={ref} className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)} {...props}>\n {children}\n </h5>\n));\n\nAlertTitle.displayName = \"AlertTitle\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"text-sm [&_p]:leading-relaxed\", className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = \"AlertDescription\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"]}
1
+ {"version":3,"sources":["../src/alert.tsx"],"names":["React","jsx","alertVariants","cva","Alert","className","variant","props","ref","AlertTitle","children","cn","AlertDescription"],"mappings":"+CAAA,UAAYA,MAAW,QA+BrB,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBC,EAAI,CACxB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FP,EAAC,OAAI,IAAKO,EAAK,KAAK,QAAQ,UAAWN,EAAc,CAAE,QAAAI,EAAS,UAAAD,CAAU,CAAC,EAAI,GAAGE,EAAO,CAC1F,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aAA+C,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IAC1GP,EAAC,MAAG,IAAKO,EAAK,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EACzF,SAAAG,EACH,CACD,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBP,EAAC,OAAI,IAAKO,EAAK,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAEzF,EAEAK,EAAiB,YAAc","sourcesContent":["import * as React from \"react\";\nimport { type VariantProps } from \"cva\";\nimport { cn, cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = cva({\n base: \"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7\",\n variants: {\n variant: {\n default: \"bg-background text-foreground [&>svg]:text-foreground\",\n destructive: \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, ref) => (\n <div ref={ref} role=\"alert\" className={alertVariants({ variant, className })} {...props} />\n));\n\nAlert.displayName = \"Alert\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(({ children, className, ...props }, ref) => (\n <h5 ref={ref} className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)} {...props}>\n {children}\n </h5>\n));\n\nAlertTitle.displayName = \"AlertTitle\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"text-sm [&_p]:leading-relaxed\", className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = \"AlertDescription\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"]}
package/dist/alert.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as o,b as i}from"./chunk-JTI7KCLO.mjs";import*as l from"react";import{jsx as s}from"react/jsx-runtime";var n=o({base:"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",variants:{variant:{default:"bg-background text-foreground [&>svg]:text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),p=l.forwardRef(({className:e,variant:t,...r},a)=>s("div",{ref:a,role:"alert",className:n({variant:t,className:e}),...r}));p.displayName="Alert";var d=l.forwardRef(({className:e,children:t,...r},a)=>s("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...r,children:t}));d.displayName="AlertTitle";var c=l.forwardRef(({className:e,...t},r)=>s("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));c.displayName="AlertDescription";export{p as Alert,c as AlertDescription,d as AlertTitle};
1
+ import{a as o,b as i}from"./chunk-JTI7KCLO.mjs";import*as l from"react";import{jsx as s}from"react/jsx-runtime";var n=o({base:"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",variants:{variant:{default:"bg-background text-foreground [&>svg]:text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),p=l.forwardRef(({className:e,variant:t,...r},a)=>s("div",{ref:a,role:"alert",className:n({variant:t,className:e}),...r}));p.displayName="Alert";var d=l.forwardRef(({children:e,className:t,...r},a)=>s("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",t),...r,children:e}));d.displayName="AlertTitle";var c=l.forwardRef(({className:e,...t},r)=>s("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));c.displayName="AlertDescription";export{p as Alert,c as AlertDescription,d as AlertTitle};
2
2
  //# sourceMappingURL=alert.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/alert.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { type VariantProps } from \"cva\";\nimport { cn, cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = cva({\n base: \"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7\",\n variants: {\n variant: {\n default: \"bg-background text-foreground [&>svg]:text-foreground\",\n destructive: \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, ref) => (\n <div ref={ref} role=\"alert\" className={alertVariants({ variant, className })} {...props} />\n));\n\nAlert.displayName = \"Alert\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(({ className, children, ...props }, ref) => (\n <h5 ref={ref} className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)} {...props}>\n {children}\n </h5>\n));\n\nAlertTitle.displayName = \"AlertTitle\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"text-sm [&_p]:leading-relaxed\", className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = \"AlertDescription\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"],"mappings":"gDAAA,UAAYA,MAAW,QA+BrB,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBC,EAAI,CACxB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FP,EAAC,OAAI,IAAKO,EAAK,KAAK,QAAQ,UAAWN,EAAc,CAAE,QAAAI,EAAS,UAAAD,CAAU,CAAC,EAAI,GAAGE,EAAO,CAC1F,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aAA+C,CAAC,CAAE,UAAAJ,EAAW,SAAAK,EAAU,GAAGH,CAAM,EAAGC,IAC1GP,EAAC,MAAG,IAAKO,EAAK,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EACzF,SAAAG,EACH,CACD,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBP,EAAC,OAAI,IAAKO,EAAK,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAEzF,EAEAK,EAAiB,YAAc","names":["React","jsx","alertVariants","cva","Alert","className","variant","props","ref","AlertTitle","children","cn","AlertDescription"]}
1
+ {"version":3,"sources":["../src/alert.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { type VariantProps } from \"cva\";\nimport { cn, cva } from \"./utils\";\n\n/* -----------------------------------------------------------------------------\n * Variant: Alert\n * -------------------------------------------------------------------------- */\n\nconst alertVariants = cva({\n base: \"[&>svg+div]:-translate-y-0.75 relative w-full rounded-lg border p-4 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7\",\n variants: {\n variant: {\n default: \"bg-background text-foreground [&>svg]:text-foreground\",\n destructive: \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\ntype AlertVariantsProps = VariantProps<typeof alertVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Alert\n * -------------------------------------------------------------------------- */\n\ntype AlertElement = HTMLDivElement;\ntype AlertProps = React.HTMLAttributes<HTMLDivElement> & AlertVariantsProps;\n\nconst Alert = React.forwardRef<AlertElement, AlertProps>(({ className, variant, ...props }, ref) => (\n <div ref={ref} role=\"alert\" className={alertVariants({ variant, className })} {...props} />\n));\n\nAlert.displayName = \"Alert\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertTitleElement = HTMLHeadingElement;\ntype AlertTitleProps = React.HTMLAttributes<HTMLHeadingElement>;\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>(({ children, className, ...props }, ref) => (\n <h5 ref={ref} className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)} {...props}>\n {children}\n </h5>\n));\n\nAlertTitle.displayName = \"AlertTitle\";\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDescriptionElement = HTMLDivElement;\ntype AlertDescriptionProps = React.HTMLAttributes<HTMLDivElement>;\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"text-sm [&_p]:leading-relaxed\", className)} {...props} />\n ),\n);\n\nAlertDescription.displayName = \"AlertDescription\";\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Alert, AlertTitle, AlertDescription, type AlertProps, type AlertTitleProps, type AlertDescriptionProps };\n"],"mappings":"gDAAA,UAAYA,MAAW,QA+BrB,cAAAC,MAAA,oBAvBF,IAAMC,EAAgBC,EAAI,CACxB,KAAM,2IACN,SAAU,CACR,QAAS,CACP,QAAS,wDACT,YAAa,yFACf,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAWKC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAC1FP,EAAC,OAAI,IAAKO,EAAK,KAAK,QAAQ,UAAWN,EAAc,CAAE,QAAAI,EAAS,UAAAD,CAAU,CAAC,EAAI,GAAGE,EAAO,CAC1F,EAEDH,EAAM,YAAc,QASpB,IAAMK,EAAmB,aAA+C,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IAC1GP,EAAC,MAAG,IAAKO,EAAK,UAAWG,EAAG,+CAAgDN,CAAS,EAAI,GAAGE,EACzF,SAAAG,EACH,CACD,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGE,CAAM,EAAGC,IACxBP,EAAC,OAAI,IAAKO,EAAK,UAAWG,EAAG,gCAAiCN,CAAS,EAAI,GAAGE,EAAO,CAEzF,EAEAK,EAAiB,YAAc","names":["React","jsx","alertVariants","cva","Alert","className","variant","props","ref","AlertTitle","children","cn","AlertDescription"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2RQCRE7Njs = require('./chunk-2RQCRE7N.js');exports.default = _chunk2RQCRE7Njs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk55N7YRUUjs = require('./chunk-55N7YRUU.js');exports.default = _chunk55N7YRUUjs.a;
2
2
  //# sourceMappingURL=animate.plugin.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-HJ4U5JJA.mjs";export{a as default};
1
+ import{a}from"./chunk-FMUUVBVI.mjs";export{a as default};
2
2
  //# sourceMappingURL=animate.plugin.mjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKEXJH5MCjs = require('./chunk-KEXJH5MC.js');exports.default = _chunkKEXJH5MCjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK7TLHY6Gjs = require('./chunk-K7TLHY6G.js');exports.default = _chunkK7TLHY6Gjs.a;
2
2
  //# sourceMappingURL=base.plugin.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-4O6ITKSR.mjs";export{a as default};
1
+ import{a}from"./chunk-OJNMIA22.mjs";export{a as default};
2
2
  //# sourceMappingURL=base.plugin.mjs.map
package/dist/button.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHL4LYB74js = require('./chunk-HL4LYB74.js');require('./chunk-JVGHOCS7.js');require('./chunk-QZCQ42BP.js');exports.Button = _chunkHL4LYB74js.b; exports.buttonVariants = _chunkHL4LYB74js.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMUVQMEAIjs = require('./chunk-MUVQMEAI.js');require('./chunk-KXTYKCZX.js');require('./chunk-QZCQ42BP.js');exports.Button = _chunkMUVQMEAIjs.b; exports.buttonVariants = _chunkMUVQMEAIjs.a;
2
2
  //# sourceMappingURL=button.js.map
package/dist/button.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a,b}from"./chunk-MZK6NKEQ.mjs";import"./chunk-TMXZMQRK.mjs";import"./chunk-JTI7KCLO.mjs";export{b as Button,a as buttonVariants};
1
+ import{a,b}from"./chunk-4UVLRXTB.mjs";import"./chunk-7XGQAAYA.mjs";import"./chunk-JTI7KCLO.mjs";export{b as Button,a as buttonVariants};
2
2
  //# sourceMappingURL=button.mjs.map
package/dist/calendar.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkHL4LYB74js = require('./chunk-HL4LYB74.js');require('./chunk-JVGHOCS7.js');var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _reactdaypicker = require('react-day-picker');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');function l({children:t,...e}){return _jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4",...e})}function m({children:t,...e}){return _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-4",...e})}function g({className:t,classNames:e,showOutsideDays:d=!0,...o}){return _jsxruntime.jsx.call(void 0, _reactdaypicker.DayPicker,{showOutsideDays:d,className:_chunkQZCQ42BPjs.b.call(void 0, "p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:_chunkHL4LYB74js.a.call(void 0, {variant:"outline",className:"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"}),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-xs",row:"flex w-full mt-2",cell:_chunkQZCQ42BPjs.b.call(void 0, "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-start)]:rounded-l-md [&:has(>.day-range-end)]:rounded-r-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:_chunkHL4LYB74js.a.call(void 0, {variant:"ghost",className:"size-9 p-0 font-normal aria-selected:opacity-100"}),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...e},components:{IconLeft:l,IconRight:m},...o})}exports.Calendar = g;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkMUVQMEAIjs = require('./chunk-MUVQMEAI.js');require('./chunk-KXTYKCZX.js');var _chunkQZCQ42BPjs = require('./chunk-QZCQ42BP.js');var _reactdaypicker = require('react-day-picker');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');function l({children:t,...e}){return _jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4",...e})}function m({children:t,...e}){return _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-4",...e})}function g({className:t,classNames:e,showOutsideDays:d=!0,...o}){return _jsxruntime.jsx.call(void 0, _reactdaypicker.DayPicker,{showOutsideDays:d,className:_chunkQZCQ42BPjs.b.call(void 0, "p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:_chunkMUVQMEAIjs.a.call(void 0, {variant:"outline",className:"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"}),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-xs",row:"flex w-full mt-2",cell:_chunkQZCQ42BPjs.b.call(void 0, "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-start)]:rounded-l-md [&:has(>.day-range-end)]:rounded-r-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:_chunkMUVQMEAIjs.a.call(void 0, {variant:"ghost",className:"size-9 p-0 font-normal aria-selected:opacity-100"}),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...e},components:{IconLeft:l,IconRight:m},...o})}exports.Calendar = g;
2
2
  //# sourceMappingURL=calendar.js.map
package/dist/calendar.mjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";import{a as r}from"./chunk-MZK6NKEQ.mjs";import"./chunk-TMXZMQRK.mjs";import{b as a}from"./chunk-JTI7KCLO.mjs";import{DayPicker as s}from"react-day-picker";import{ChevronLeftIcon as c,ChevronRightIcon as i}from"@radix-ui/react-icons";import{jsx as n}from"react/jsx-runtime";function l({children:t,...e}){return n(c,{className:"size-4",...e})}function m({children:t,...e}){return n(i,{className:"size-4",...e})}function g({className:t,classNames:e,showOutsideDays:d=!0,...o}){return n(s,{showOutsideDays:d,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r({variant:"outline",className:"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"}),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-xs",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-start)]:rounded-l-md [&:has(>.day-range-end)]:rounded-r-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:r({variant:"ghost",className:"size-9 p-0 font-normal aria-selected:opacity-100"}),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...e},components:{IconLeft:l,IconRight:m},...o})}export{g as Calendar};
1
+ "use client";import{a as r}from"./chunk-4UVLRXTB.mjs";import"./chunk-7XGQAAYA.mjs";import{b as a}from"./chunk-JTI7KCLO.mjs";import{DayPicker as s}from"react-day-picker";import{ChevronLeftIcon as c,ChevronRightIcon as i}from"@radix-ui/react-icons";import{jsx as n}from"react/jsx-runtime";function l({children:t,...e}){return n(c,{className:"size-4",...e})}function m({children:t,...e}){return n(i,{className:"size-4",...e})}function g({className:t,classNames:e,showOutsideDays:d=!0,...o}){return n(s,{showOutsideDays:d,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r({variant:"outline",className:"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"}),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-xs",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-start)]:rounded-l-md [&:has(>.day-range-end)]:rounded-r-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:r({variant:"ghost",className:"size-9 p-0 font-normal aria-selected:opacity-100"}),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...e},components:{IconLeft:l,IconRight:m},...o})}export{g as Calendar};
2
2
  //# sourceMappingURL=calendar.mjs.map