@devalok/shilp-sutra 0.17.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/dist/_chunks/avatar.js +21 -19
  2. package/dist/_chunks/button-group.js +27 -0
  3. package/dist/_chunks/button.js +53 -35
  4. package/dist/_chunks/card.js +50 -0
  5. package/dist/_chunks/checkbox.js +11 -9
  6. package/dist/_chunks/date-utils.js +13 -0
  7. package/dist/_chunks/form.js +20 -20
  8. package/dist/_chunks/link-context.js +19 -0
  9. package/dist/_chunks/motion.js +1376 -0
  10. package/dist/_chunks/motion2.js +35 -0
  11. package/dist/_chunks/primitives.js +3499 -3920
  12. package/dist/_chunks/sidebar.js +225 -211
  13. package/dist/_chunks/spinner.js +58 -28
  14. package/dist/_chunks/tiptap.js +1 -1
  15. package/dist/_chunks/tooltip.js +27 -10
  16. package/dist/_chunks/tree-view.js +180 -178
  17. package/dist/_chunks/use-calendar.js +531 -515
  18. package/dist/_chunks/utils.js +3 -3
  19. package/dist/_chunks/vendor-client.js +1792 -1049
  20. package/dist/_chunks/vendor-utils.js +5123 -1169
  21. package/dist/composed/activity-feed.d.ts.map +1 -1
  22. package/dist/composed/activity-feed.js +71 -74
  23. package/dist/composed/avatar-group.js +36 -36
  24. package/dist/composed/command-palette.d.ts +1 -1
  25. package/dist/composed/command-palette.d.ts.map +1 -1
  26. package/dist/composed/command-palette.js +207 -158
  27. package/dist/composed/confirm-dialog.d.ts +3 -5
  28. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  29. package/dist/composed/confirm-dialog.js +46 -41
  30. package/dist/composed/content-card.d.ts +1 -1
  31. package/dist/composed/content-card.js +29 -29
  32. package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
  33. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  34. package/dist/composed/date-picker/date-picker.d.ts +1 -1
  35. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  36. package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
  37. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  38. package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
  39. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  40. package/dist/composed/date-picker/month-picker.d.ts +1 -1
  41. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  42. package/dist/composed/date-picker/presets.d.ts +1 -1
  43. package/dist/composed/date-picker/presets.d.ts.map +1 -1
  44. package/dist/composed/date-picker/time-picker.d.ts +1 -1
  45. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  46. package/dist/composed/date-picker/year-picker.d.ts +1 -1
  47. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  48. package/dist/composed/empty-state.d.ts +1 -0
  49. package/dist/composed/empty-state.d.ts.map +1 -1
  50. package/dist/composed/empty-state.js +51 -47
  51. package/dist/composed/error-boundary.d.ts +1 -1
  52. package/dist/composed/error-boundary.d.ts.map +1 -1
  53. package/dist/composed/error-boundary.js +48 -48
  54. package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
  55. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
  56. package/dist/composed/global-loading.d.ts +1 -1
  57. package/dist/composed/global-loading.d.ts.map +1 -1
  58. package/dist/composed/global-loading.js +23 -20
  59. package/dist/composed/index.d.ts +2 -4
  60. package/dist/composed/index.d.ts.map +1 -1
  61. package/dist/composed/index.js +26 -29
  62. package/dist/composed/loading-skeleton.d.ts +1 -1
  63. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  64. package/dist/composed/loading-skeleton.js +92 -87
  65. package/dist/composed/member-picker.d.ts +1 -1
  66. package/dist/composed/member-picker.d.ts.map +1 -1
  67. package/dist/composed/member-picker.js +47 -43
  68. package/dist/composed/page-header.js +36 -36
  69. package/dist/composed/page-skeletons.d.ts +9 -3
  70. package/dist/composed/page-skeletons.d.ts.map +1 -1
  71. package/dist/composed/page-skeletons.js +58 -58
  72. package/dist/composed/priority-indicator.js +19 -19
  73. package/dist/composed/rich-text-editor.d.ts +3 -3
  74. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  75. package/dist/composed/rich-text-editor.js +316 -309
  76. package/dist/composed/schedule-view.js +88 -88
  77. package/dist/composed/simple-tooltip.d.ts +2 -5
  78. package/dist/composed/simple-tooltip.d.ts.map +1 -1
  79. package/dist/composed/simple-tooltip.js +19 -14
  80. package/dist/composed/status-badge.d.ts +2 -1
  81. package/dist/composed/status-badge.d.ts.map +1 -1
  82. package/dist/composed/status-badge.js +76 -63
  83. package/dist/hooks/index.d.ts +2 -1
  84. package/dist/hooks/index.d.ts.map +1 -1
  85. package/dist/hooks/index.js +3 -4
  86. package/dist/hooks/use-toast.d.ts +15 -45
  87. package/dist/hooks/use-toast.d.ts.map +1 -1
  88. package/dist/hooks/use-toast.js +2 -95
  89. package/dist/motion/index.d.ts +4 -0
  90. package/dist/motion/index.d.ts.map +1 -0
  91. package/dist/motion/index.js +10 -0
  92. package/dist/motion/motion-provider.d.ts +18 -0
  93. package/dist/motion/motion-provider.d.ts.map +1 -0
  94. package/dist/motion/motion-provider.js +24 -0
  95. package/dist/motion/primitives-index.d.ts +3 -0
  96. package/dist/motion/primitives-index.d.ts.map +1 -0
  97. package/dist/motion/primitives-index.js +11 -0
  98. package/dist/motion/primitives.d.ts +38 -0
  99. package/dist/motion/primitives.d.ts.map +1 -0
  100. package/dist/motion/primitives.js +187 -0
  101. package/dist/shell/app-command-palette.d.ts +14 -5
  102. package/dist/shell/app-command-palette.d.ts.map +1 -1
  103. package/dist/shell/app-command-palette.js +152 -130
  104. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  105. package/dist/shell/bottom-navbar.js +90 -92
  106. package/dist/shell/command-registry.d.ts +23 -0
  107. package/dist/shell/command-registry.d.ts.map +1 -0
  108. package/dist/shell/command-registry.js +18 -0
  109. package/dist/shell/index.d.ts +2 -1
  110. package/dist/shell/index.d.ts.map +1 -1
  111. package/dist/shell/index.js +14 -11
  112. package/dist/shell/link-context.d.ts +6 -10
  113. package/dist/shell/link-context.d.ts.map +1 -1
  114. package/dist/shell/link-context.js +3 -16
  115. package/dist/shell/notification-center.d.ts.map +1 -1
  116. package/dist/shell/notification-center.js +137 -132
  117. package/dist/shell/notification-preferences.d.ts +10 -5
  118. package/dist/shell/notification-preferences.d.ts.map +1 -1
  119. package/dist/shell/notification-preferences.js +168 -165
  120. package/dist/shell/sidebar.js +119 -119
  121. package/dist/shell/top-bar.js +65 -65
  122. package/dist/tailwind/index.cjs +118 -297
  123. package/dist/tailwind/preset.d.ts.map +1 -1
  124. package/dist/tailwind/preset.js +118 -297
  125. package/dist/tokens/generate-scale.d.ts +86 -0
  126. package/dist/tokens/generate-scale.d.ts.map +1 -0
  127. package/dist/tokens/primitives.css +415 -187
  128. package/dist/tokens/semantic.css +244 -270
  129. package/dist/tokens/typography.css +6 -6
  130. package/dist/ui/accordion.d.ts.map +1 -1
  131. package/dist/ui/accordion.js +32 -22
  132. package/dist/ui/alert-dialog.d.ts +4 -1
  133. package/dist/ui/alert-dialog.d.ts.map +1 -1
  134. package/dist/ui/alert-dialog.js +114 -73
  135. package/dist/ui/alert.d.ts +6 -1
  136. package/dist/ui/alert.d.ts.map +1 -1
  137. package/dist/ui/alert.js +64 -49
  138. package/dist/ui/aspect-ratio.d.ts +2 -1
  139. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  140. package/dist/ui/aspect-ratio.js +14 -4
  141. package/dist/ui/autocomplete.d.ts +11 -2
  142. package/dist/ui/autocomplete.d.ts.map +1 -1
  143. package/dist/ui/autocomplete.js +82 -57
  144. package/dist/ui/avatar.d.ts.map +1 -1
  145. package/dist/ui/avatar.js +45 -34
  146. package/dist/ui/badge.d.ts +1 -1
  147. package/dist/ui/badge.d.ts.map +1 -1
  148. package/dist/ui/badge.js +70 -65
  149. package/dist/ui/banner.d.ts.map +1 -1
  150. package/dist/ui/banner.js +53 -39
  151. package/dist/ui/breadcrumb.d.ts +2 -0
  152. package/dist/ui/breadcrumb.d.ts.map +1 -1
  153. package/dist/ui/breadcrumb.js +21 -21
  154. package/dist/ui/button.d.ts +10 -1
  155. package/dist/ui/button.d.ts.map +1 -1
  156. package/dist/ui/button.js +103 -67
  157. package/dist/ui/card.d.ts +2 -2
  158. package/dist/ui/card.d.ts.map +1 -1
  159. package/dist/ui/card.js +61 -53
  160. package/dist/ui/charts/_internal/animation.d.ts +1 -1
  161. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  162. package/dist/ui/charts/area-chart.d.ts +3 -5
  163. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  164. package/dist/ui/charts/bar-chart.d.ts +3 -5
  165. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  166. package/dist/ui/charts/chart-container.d.ts +2 -5
  167. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  168. package/dist/ui/charts/gauge-chart.d.ts +3 -5
  169. package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
  170. package/dist/ui/charts/index.js +1204 -1095
  171. package/dist/ui/charts/line-chart.d.ts +3 -5
  172. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  173. package/dist/ui/charts/pie-chart.d.ts +2 -5
  174. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  175. package/dist/ui/charts/radar-chart.d.ts +3 -5
  176. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  177. package/dist/ui/charts/sparkline.d.ts +5 -5
  178. package/dist/ui/charts/sparkline.d.ts.map +1 -1
  179. package/dist/ui/checkbox.d.ts.map +1 -1
  180. package/dist/ui/checkbox.js +31 -19
  181. package/dist/ui/chip.d.ts +3 -2
  182. package/dist/ui/chip.d.ts.map +1 -1
  183. package/dist/ui/chip.js +62 -54
  184. package/dist/ui/code.js +16 -16
  185. package/dist/ui/collapsible.d.ts.map +1 -1
  186. package/dist/ui/collapsible.js +23 -15
  187. package/dist/ui/color-input.d.ts +1 -1
  188. package/dist/ui/color-input.d.ts.map +1 -1
  189. package/dist/ui/color-input.js +27 -27
  190. package/dist/ui/combobox.d.ts +2 -0
  191. package/dist/ui/combobox.d.ts.map +1 -1
  192. package/dist/ui/combobox.js +177 -166
  193. package/dist/ui/context-menu.d.ts +4 -2
  194. package/dist/ui/context-menu.d.ts.map +1 -1
  195. package/dist/ui/context-menu.js +146 -86
  196. package/dist/ui/data-table-toolbar.d.ts +3 -2
  197. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  198. package/dist/ui/data-table-toolbar.js +61 -59
  199. package/dist/ui/data-table.d.ts.map +1 -1
  200. package/dist/ui/data-table.js +289 -254
  201. package/dist/ui/dialog.d.ts +3 -1
  202. package/dist/ui/dialog.d.ts.map +1 -1
  203. package/dist/ui/dialog.js +114 -74
  204. package/dist/ui/dropdown-menu.d.ts +5 -3
  205. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  206. package/dist/ui/dropdown-menu.js +150 -89
  207. package/dist/ui/file-upload.d.ts.map +1 -1
  208. package/dist/ui/file-upload.js +169 -127
  209. package/dist/ui/form.d.ts.map +1 -1
  210. package/dist/ui/form.js +29 -26
  211. package/dist/ui/hover-card.d.ts +1 -1
  212. package/dist/ui/hover-card.d.ts.map +1 -1
  213. package/dist/ui/hover-card.js +53 -21
  214. package/dist/ui/index.d.ts +18 -18
  215. package/dist/ui/index.d.ts.map +1 -1
  216. package/dist/ui/index.js +432 -449
  217. package/dist/ui/input-otp.d.ts +2 -0
  218. package/dist/ui/input-otp.d.ts.map +1 -1
  219. package/dist/ui/input-otp.js +7 -7
  220. package/dist/ui/input.d.ts.map +1 -1
  221. package/dist/ui/input.js +36 -34
  222. package/dist/ui/label.js +12 -12
  223. package/dist/ui/lib/date-utils.d.ts +6 -0
  224. package/dist/ui/lib/date-utils.d.ts.map +1 -0
  225. package/dist/ui/lib/index.d.ts +7 -0
  226. package/dist/ui/lib/index.d.ts.map +1 -0
  227. package/dist/ui/lib/link-context.d.ts +13 -0
  228. package/dist/ui/lib/link-context.d.ts.map +1 -0
  229. package/dist/ui/lib/motion.d.ts +44 -9
  230. package/dist/ui/lib/motion.d.ts.map +1 -1
  231. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  232. package/dist/ui/lib/utils.js +1 -1
  233. package/dist/ui/link.js +11 -11
  234. package/dist/ui/menubar.d.ts +4 -2
  235. package/dist/ui/menubar.d.ts.map +1 -1
  236. package/dist/ui/menubar.js +141 -97
  237. package/dist/ui/navigation-menu.d.ts +2 -0
  238. package/dist/ui/navigation-menu.d.ts.map +1 -1
  239. package/dist/ui/navigation-menu.js +176 -73
  240. package/dist/ui/number-input.d.ts.map +1 -1
  241. package/dist/ui/number-input.js +56 -49
  242. package/dist/ui/pagination.js +22 -22
  243. package/dist/ui/popover.d.ts +2 -1
  244. package/dist/ui/popover.d.ts.map +1 -1
  245. package/dist/ui/popover.js +54 -22
  246. package/dist/ui/progress.d.ts.map +1 -1
  247. package/dist/ui/progress.js +58 -42
  248. package/dist/ui/radio.js +19 -19
  249. package/dist/ui/search-input.d.ts.map +1 -1
  250. package/dist/ui/search-input.js +28 -33
  251. package/dist/ui/segmented-control.d.ts +2 -2
  252. package/dist/ui/segmented-control.d.ts.map +1 -1
  253. package/dist/ui/segmented-control.js +143 -124
  254. package/dist/ui/select.d.ts.map +1 -1
  255. package/dist/ui/select.js +72 -61
  256. package/dist/ui/separator.js +11 -11
  257. package/dist/ui/sheet.d.ts +1 -1
  258. package/dist/ui/sheet.d.ts.map +1 -1
  259. package/dist/ui/sheet.js +111 -75
  260. package/dist/ui/sidebar.d.ts +6 -1
  261. package/dist/ui/sidebar.d.ts.map +1 -1
  262. package/dist/ui/sidebar.js +27 -25
  263. package/dist/ui/skeleton.js +1 -1
  264. package/dist/ui/slider.d.ts +9 -0
  265. package/dist/ui/slider.d.ts.map +1 -1
  266. package/dist/ui/slider.js +33 -27
  267. package/dist/ui/spinner.d.ts +32 -25
  268. package/dist/ui/spinner.d.ts.map +1 -1
  269. package/dist/ui/spinner.js +199 -40
  270. package/dist/ui/stat-card.d.ts.map +1 -1
  271. package/dist/ui/stat-card.js +183 -116
  272. package/dist/ui/stepper.d.ts +22 -1
  273. package/dist/ui/stepper.d.ts.map +1 -1
  274. package/dist/ui/stepper.js +121 -43
  275. package/dist/ui/switch.d.ts.map +1 -1
  276. package/dist/ui/switch.js +39 -26
  277. package/dist/ui/table.d.ts +3 -0
  278. package/dist/ui/table.d.ts.map +1 -1
  279. package/dist/ui/table.js +47 -47
  280. package/dist/ui/tabs.d.ts +4 -1
  281. package/dist/ui/tabs.d.ts.map +1 -1
  282. package/dist/ui/tabs.js +94 -44
  283. package/dist/ui/text.d.ts +3 -3
  284. package/dist/ui/text.js +1 -1
  285. package/dist/ui/textarea.d.ts.map +1 -1
  286. package/dist/ui/textarea.js +29 -27
  287. package/dist/ui/toast-types.d.ts +43 -0
  288. package/dist/ui/toast-types.d.ts.map +1 -0
  289. package/dist/ui/toast-types.js +2 -0
  290. package/dist/ui/toast.d.ts +60 -26
  291. package/dist/ui/toast.d.ts.map +1 -1
  292. package/dist/ui/toast.js +535 -89
  293. package/dist/ui/toaster.d.ts +19 -23
  294. package/dist/ui/toaster.d.ts.map +1 -1
  295. package/dist/ui/toaster.js +31 -21
  296. package/dist/ui/toggle-group.d.ts +2 -2
  297. package/dist/ui/toggle-group.d.ts.map +1 -1
  298. package/dist/ui/toggle-group.js +29 -26
  299. package/dist/ui/toggle.d.ts +2 -2
  300. package/dist/ui/toggle.d.ts.map +1 -1
  301. package/dist/ui/toggle.js +21 -17
  302. package/dist/ui/tooltip.d.ts +2 -1
  303. package/dist/ui/tooltip.d.ts.map +1 -1
  304. package/dist/ui/tooltip.js +58 -21
  305. package/dist/ui/tree-view/tree-view.d.ts +1 -1
  306. package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
  307. package/llms-full.txt +221 -102
  308. package/llms.txt +65 -12
  309. package/package.json +26 -8
  310. package/dist/_chunks/switch.js +0 -10
  311. package/dist/composed/upload-progress.d.ts +0 -33
  312. package/dist/composed/upload-progress.d.ts.map +0 -1
  313. package/dist/composed/upload-progress.js +0 -386
  314. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  315. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  316. package/dist/ui/transitions.d.ts +0 -17
  317. package/dist/ui/transitions.d.ts.map +0 -1
  318. package/dist/ui/transitions.js +0 -111
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devalok/shilp-sutra",
3
- "version": "0.17.2",
3
+ "version": "0.18.0",
4
4
  "description": "Devalok Design System — tokens, components, and patterns for Next.js",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -308,6 +308,11 @@
308
308
  "default": "./dist/ui/toast.js",
309
309
  "types": "./dist/ui/toast.d.ts"
310
310
  },
311
+ "./ui/toast-types": {
312
+ "import": "./dist/ui/toast-types.js",
313
+ "default": "./dist/ui/toast-types.js",
314
+ "types": "./dist/ui/toast-types.d.ts"
315
+ },
311
316
  "./ui/toaster": {
312
317
  "import": "./dist/ui/toaster.js",
313
318
  "default": "./dist/ui/toaster.js",
@@ -328,11 +333,6 @@
328
333
  "default": "./dist/ui/tooltip.js",
329
334
  "types": "./dist/ui/tooltip.d.ts"
330
335
  },
331
- "./ui/transitions": {
332
- "import": "./dist/ui/transitions.js",
333
- "default": "./dist/ui/transitions.js",
334
- "types": "./dist/ui/transitions.d.ts"
335
- },
336
336
  "./ui/visually-hidden": {
337
337
  "import": "./dist/ui/visually-hidden.js",
338
338
  "default": "./dist/ui/visually-hidden.js",
@@ -353,6 +353,11 @@
353
353
  "default": "./dist/composed/index.js",
354
354
  "types": "./dist/composed/index.d.ts"
355
355
  },
356
+ "./composed/activity-feed": {
357
+ "import": "./dist/composed/activity-feed.js",
358
+ "default": "./dist/composed/activity-feed.js",
359
+ "types": "./dist/composed/activity-feed.d.ts"
360
+ },
356
361
  "./composed/avatar-group": {
357
362
  "import": "./dist/composed/avatar-group.js",
358
363
  "default": "./dist/composed/avatar-group.js",
@@ -519,6 +524,16 @@
519
524
  "import": "./dist/composed/lib/string-utils.js",
520
525
  "default": "./dist/composed/lib/string-utils.js",
521
526
  "types": "./dist/composed/lib/string-utils.d.ts"
527
+ },
528
+ "./motion": {
529
+ "import": "./dist/motion/index.js",
530
+ "default": "./dist/motion/index.js",
531
+ "types": "./dist/motion/index.d.ts"
532
+ },
533
+ "./motion/primitives": {
534
+ "import": "./dist/motion/primitives-index.js",
535
+ "default": "./dist/motion/primitives-index.js",
536
+ "types": "./dist/motion/primitives-index.d.ts"
522
537
  }
523
538
  },
524
539
  "files": [
@@ -647,10 +662,13 @@
647
662
  "input-otp": "^1.4.2",
648
663
  "react-markdown": "^10.1.0",
649
664
  "react-remove-scroll": "^2.6.3",
650
- "tailwind-merge": "^3.0.1"
665
+ "tailwind-merge": "^3.0.1",
666
+ "framer-motion": "^12.36.0",
667
+ "sonner": "^2.0.7"
651
668
  },
652
669
  "engines": {
653
670
  "node": ">=20.0.0"
654
671
  },
655
- "packageManager": "pnpm@10.0.0"
672
+ "packageManager": "pnpm@10.0.0",
673
+ "dependencies": {}
656
674
  }
@@ -1,10 +0,0 @@
1
- "use client";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import * as n from "react";
4
- import { al as o, am as d } from "./primitives.js";
5
- import { c as r } from "./utils.js";
6
- const c = n.forwardRef(({ className: a, error: t, ...s }, i) => e(o, { className: r("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong", t && "border-border-error data-[state=checked]:bg-error", a), ...s, ref: i, children: e(d, { className: r("pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-moderate-01 ease-bounce data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) }));
7
- c.displayName = o.displayName;
8
- export {
9
- c as S
10
- };
@@ -1,33 +0,0 @@
1
- "use client";
2
- import * as React from 'react';
3
- export interface UploadFile {
4
- id: string;
5
- name: string;
6
- /** File size in bytes */
7
- size: number;
8
- /** 0-100 progress percentage. undefined = indeterminate */
9
- progress?: number;
10
- /** Upload state */
11
- status: 'pending' | 'uploading' | 'processing' | 'complete' | 'error';
12
- /** Error message if status is 'error' */
13
- error?: string;
14
- /** Optional preview URL (for images) */
15
- previewUrl?: string;
16
- }
17
- export interface UploadProgressProps extends React.HTMLAttributes<HTMLDivElement> {
18
- files: UploadFile[];
19
- /** Called when user cancels/removes a file */
20
- onRemove?: (fileId: string) => void;
21
- /** Called when user retries a failed upload */
22
- onRetry?: (fileId: string) => void;
23
- /** Called when user dismisses all terminal files */
24
- onDismissAll?: () => void;
25
- /** Show compact single-line items vs expanded items */
26
- variant?: 'default' | 'compact';
27
- /** Whether to show file size */
28
- showSize?: boolean;
29
- }
30
- declare function formatFileSize(bytes: number): string;
31
- declare const UploadProgress: React.ForwardRefExoticComponent<UploadProgressProps & React.RefAttributes<HTMLDivElement>>;
32
- export { UploadProgress, formatFileSize };
33
- //# sourceMappingURL=upload-progress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-progress.d.ts","sourceRoot":"","sources":["../../src/composed/upload-progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAiB9B,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mBAAmB;IACnB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,CAAA;IACrE,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,uDAAuD;IACvD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAMD,iBAAS,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO7C;AAgWD,QAAA,MAAM,cAAc,4FA4GnB,CAAA;AAGD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
@@ -1,386 +0,0 @@
1
- "use client";
2
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
3
- import * as $ from "react";
4
- import { IconRefresh as g, IconX as u, IconCheck as C, IconAlertCircle as j, IconLoader2 as z, IconPhoto as F, IconFile as I } from "@tabler/icons-react";
5
- import { c as i } from "../_chunks/utils.js";
6
- import { Progress as y } from "../ui/progress.js";
7
- function P(e) {
8
- return !e || e < 0 || !Number.isFinite(e) ? "0 B" : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : e < 1024 * 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(1)} MB` : `${(e / (1024 * 1024 * 1024)).toFixed(2)} GB`;
9
- }
10
- const U = /* @__PURE__ */ new Set([
11
- "jpg",
12
- "jpeg",
13
- "png",
14
- "gif",
15
- "webp",
16
- "svg",
17
- "bmp",
18
- "ico",
19
- "avif"
20
- ]);
21
- function B(e) {
22
- var n;
23
- if (e.previewUrl) return !0;
24
- const a = ((n = e.name.split(".").pop()) == null ? void 0 : n.toLowerCase()) ?? "";
25
- return U.has(a);
26
- }
27
- function b(e) {
28
- switch (e) {
29
- case "complete":
30
- return "success";
31
- case "error":
32
- return "error";
33
- default:
34
- return "default";
35
- }
36
- }
37
- function v(e) {
38
- switch (e.status) {
39
- case "pending":
40
- return 0;
41
- case "uploading":
42
- return e.progress ?? 0;
43
- case "processing":
44
- return;
45
- case "complete":
46
- return 100;
47
- case "error":
48
- return e.progress ?? 0;
49
- }
50
- }
51
- function N({
52
- file: e,
53
- className: a
54
- }) {
55
- if (e.previewUrl)
56
- return /* @__PURE__ */ t(
57
- "div",
58
- {
59
- className: i(
60
- "h-8 w-8 shrink-0 overflow-hidden rounded-ds-md",
61
- a
62
- ),
63
- children: /* @__PURE__ */ t(
64
- "img",
65
- {
66
- src: e.previewUrl,
67
- alt: "",
68
- className: "h-full w-full object-cover"
69
- }
70
- )
71
- }
72
- );
73
- if (e.status === "complete")
74
- return /* @__PURE__ */ t(
75
- "div",
76
- {
77
- className: i(
78
- "flex h-8 w-8 shrink-0 items-center justify-center rounded-ds-md bg-success-surface animate-scale-in",
79
- a
80
- ),
81
- children: /* @__PURE__ */ t(C, { size: 16, className: "text-text-success animate-check-pop" })
82
- }
83
- );
84
- if (e.status === "error")
85
- return /* @__PURE__ */ t(
86
- "div",
87
- {
88
- className: i(
89
- "flex h-8 w-8 shrink-0 items-center justify-center rounded-ds-md bg-error-surface animate-scale-in",
90
- a
91
- ),
92
- children: /* @__PURE__ */ t(j, { size: 16, className: "text-text-error animate-shake" })
93
- }
94
- );
95
- if (e.status === "processing")
96
- return /* @__PURE__ */ t(
97
- "div",
98
- {
99
- className: i(
100
- "flex h-8 w-8 shrink-0 items-center justify-center rounded-ds-md bg-layer-02 animate-fade-in",
101
- a
102
- ),
103
- children: /* @__PURE__ */ t(
104
- z,
105
- {
106
- size: 16,
107
- className: "animate-spin text-text-secondary"
108
- }
109
- )
110
- }
111
- );
112
- const n = B(e) ? F : I;
113
- return /* @__PURE__ */ t(
114
- "div",
115
- {
116
- className: i(
117
- "flex h-8 w-8 shrink-0 items-center justify-center rounded-ds-md bg-layer-02 transition-opacity duration-fast-02",
118
- e.status === "pending" && "opacity-50",
119
- a
120
- ),
121
- children: /* @__PURE__ */ t(n, { size: 16, className: "text-text-secondary" })
122
- }
123
- );
124
- }
125
- function E({
126
- file: e,
127
- index: a,
128
- showSize: n,
129
- onRemove: o,
130
- onRetry: d
131
- }) {
132
- const c = v(e), m = b(e.status);
133
- return /* @__PURE__ */ s(
134
- "div",
135
- {
136
- className: "animate-slide-up px-ds-04 py-ds-03 transition-colors duration-fast-02 hover:bg-layer-02/50",
137
- style: {
138
- animationDelay: `${a * 30}ms`,
139
- animationFillMode: "both"
140
- },
141
- children: [
142
- /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-03", children: [
143
- /* @__PURE__ */ t(N, { file: e }),
144
- /* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
145
- /* @__PURE__ */ t(
146
- "p",
147
- {
148
- className: i(
149
- "truncate text-ds-sm font-medium text-text-primary",
150
- e.status === "pending" && "text-text-disabled"
151
- ),
152
- children: e.name
153
- }
154
- ),
155
- /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-02", children: [
156
- n && /* @__PURE__ */ t("span", { className: "text-ds-xs text-text-placeholder", children: P(e.size) }),
157
- e.status === "processing" && /* @__PURE__ */ t("span", { className: "text-ds-xs text-text-secondary", children: "Processing..." }),
158
- e.status === "error" && e.error && /* @__PURE__ */ t("span", { className: "text-ds-xs text-text-error", children: e.error })
159
- ] })
160
- ] }),
161
- e.status === "uploading" && e.progress !== void 0 && /* @__PURE__ */ s("span", { className: "shrink-0 text-ds-xs tabular-nums text-text-secondary transition-opacity duration-fast-01", children: [
162
- e.progress,
163
- "%"
164
- ] }),
165
- /* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-ds-01", children: [
166
- e.status === "error" && d && /* @__PURE__ */ t(
167
- "button",
168
- {
169
- type: "button",
170
- onClick: () => d(e.id),
171
- className: "flex h-6 w-6 items-center justify-center rounded-ds-md text-text-secondary transition-colors duration-fast-01 hover:bg-layer-03 hover:text-text-primary",
172
- "aria-label": `Retry upload for ${e.name}`,
173
- children: /* @__PURE__ */ t(g, { size: 14 })
174
- }
175
- ),
176
- (e.status === "error" || e.status === "complete" || e.status === "pending") && o && /* @__PURE__ */ t(
177
- "button",
178
- {
179
- type: "button",
180
- onClick: () => o(e.id),
181
- className: "flex h-6 w-6 items-center justify-center rounded-ds-md text-text-secondary transition-colors duration-fast-01 hover:bg-layer-03 hover:text-text-primary",
182
- "aria-label": `Remove ${e.name}`,
183
- children: /* @__PURE__ */ t(u, { size: 14 })
184
- }
185
- ),
186
- e.status === "uploading" && o && /* @__PURE__ */ t(
187
- "button",
188
- {
189
- type: "button",
190
- onClick: () => o(e.id),
191
- className: "flex h-6 w-6 items-center justify-center rounded-ds-md text-text-secondary transition-colors duration-fast-01 hover:bg-layer-03 hover:text-text-primary",
192
- "aria-label": `Cancel upload for ${e.name}`,
193
- children: /* @__PURE__ */ t(u, { size: 14 })
194
- }
195
- )
196
- ] })
197
- ] }),
198
- /* @__PURE__ */ t("div", { className: "mt-ds-02 pl-11", children: /* @__PURE__ */ t(
199
- y,
200
- {
201
- value: c,
202
- color: m,
203
- size: "sm",
204
- "aria-label": `Upload progress for ${e.name}`
205
- }
206
- ) })
207
- ]
208
- }
209
- );
210
- }
211
- function M({
212
- file: e,
213
- index: a,
214
- onRemove: n,
215
- onRetry: o
216
- }) {
217
- const d = v(e), c = b(e.status);
218
- return /* @__PURE__ */ s(
219
- "div",
220
- {
221
- className: "flex items-center gap-ds-03 px-ds-03 py-ds-02 animate-slide-up transition-colors duration-fast-02 hover:bg-layer-02/50",
222
- style: {
223
- animationDelay: `${a * 30}ms`,
224
- animationFillMode: "both"
225
- },
226
- children: [
227
- /* @__PURE__ */ t(N, { file: e, className: "h-6 w-6" }),
228
- /* @__PURE__ */ t(
229
- "p",
230
- {
231
- className: i(
232
- "min-w-0 shrink truncate text-ds-xs font-medium text-text-primary",
233
- e.status === "pending" && "text-text-disabled"
234
- ),
235
- children: e.name
236
- }
237
- ),
238
- /* @__PURE__ */ t("div", { className: "w-20 shrink-0", children: /* @__PURE__ */ t(
239
- y,
240
- {
241
- value: d,
242
- color: c,
243
- size: "sm",
244
- "aria-label": `Upload progress for ${e.name}`
245
- }
246
- ) }),
247
- e.status === "uploading" && e.progress !== void 0 && /* @__PURE__ */ s("span", { className: "shrink-0 text-ds-xs tabular-nums text-text-secondary", children: [
248
- e.progress,
249
- "%"
250
- ] }),
251
- e.status === "processing" && /* @__PURE__ */ t("span", { className: "shrink-0 text-ds-xs text-text-secondary", children: "Processing..." }),
252
- e.status === "error" && /* @__PURE__ */ t("span", { className: "shrink-0 text-ds-xs text-text-error", children: "Error" }),
253
- /* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-ds-01", children: [
254
- e.status === "error" && o && /* @__PURE__ */ t(
255
- "button",
256
- {
257
- type: "button",
258
- onClick: () => o(e.id),
259
- className: "flex h-5 w-5 items-center justify-center rounded-ds-md text-text-secondary transition-colors duration-fast-01 hover:bg-layer-03 hover:text-text-primary",
260
- "aria-label": `Retry upload for ${e.name}`,
261
- children: /* @__PURE__ */ t(g, { size: 12 })
262
- }
263
- ),
264
- (e.status === "error" || e.status === "complete" || e.status === "pending") && n && /* @__PURE__ */ t(
265
- "button",
266
- {
267
- type: "button",
268
- onClick: () => n(e.id),
269
- className: "flex h-5 w-5 items-center justify-center rounded-ds-md text-text-secondary transition-colors duration-fast-01 hover:bg-layer-03 hover:text-text-primary",
270
- "aria-label": `Remove ${e.name}`,
271
- children: /* @__PURE__ */ t(u, { size: 12 })
272
- }
273
- ),
274
- e.status === "uploading" && n && /* @__PURE__ */ t(
275
- "button",
276
- {
277
- type: "button",
278
- onClick: () => n(e.id),
279
- className: "flex h-5 w-5 items-center justify-center rounded-ds-md text-text-secondary transition-colors duration-fast-01 hover:bg-layer-03 hover:text-text-primary",
280
- "aria-label": `Cancel upload for ${e.name}`,
281
- children: /* @__PURE__ */ t(u, { size: 12 })
282
- }
283
- )
284
- ] })
285
- ]
286
- }
287
- );
288
- }
289
- const S = $.forwardRef(
290
- ({
291
- files: e,
292
- onRemove: a,
293
- onRetry: n,
294
- onDismissAll: o,
295
- variant: d = "default",
296
- showSize: c = !0,
297
- className: m,
298
- ...w
299
- }, f) => {
300
- if (e.length === 0) return null;
301
- const k = e.filter(
302
- (r) => r.status === "complete"
303
- ).length, p = e.filter((r) => r.status === "error").length, x = e.every(
304
- (r) => r.status === "complete" || r.status === "error"
305
- ), l = e.every((r) => r.status === "complete");
306
- return /* @__PURE__ */ s(
307
- "div",
308
- {
309
- ref: f,
310
- className: i(
311
- "rounded-ds-xl border bg-layer-01 shadow-01 overflow-hidden animate-fade-in transition-colors duration-moderate-02",
312
- l ? "border-success/40" : p > 0 && x ? "border-error/30" : "border-border-subtle",
313
- m
314
- ),
315
- role: "region",
316
- "aria-label": "File uploads",
317
- ...w,
318
- children: [
319
- /* @__PURE__ */ s("div", { className: i(
320
- "flex items-center justify-between border-b px-ds-04 py-ds-03 transition-colors duration-moderate-02",
321
- l ? "border-success/20 bg-success-surface/30" : "border-border-subtle"
322
- ), children: [
323
- /* @__PURE__ */ s("span", { className: i(
324
- "text-ds-sm transition-colors duration-fast-02",
325
- l ? "font-medium text-text-success" : "text-text-secondary"
326
- ), children: [
327
- l ? `All ${e.length} files uploaded` : `${k} of ${e.length} uploaded`,
328
- p > 0 && !l && /* @__PURE__ */ s("span", { className: "text-text-error", children: [
329
- " · ",
330
- p,
331
- " failed"
332
- ] })
333
- ] }),
334
- x && o && /* @__PURE__ */ t(
335
- "button",
336
- {
337
- type: "button",
338
- onClick: o,
339
- className: "animate-fade-in text-ds-sm text-interactive hover:text-interactive-hover transition-colors duration-fast-02",
340
- children: "Dismiss all"
341
- }
342
- )
343
- ] }),
344
- /* @__PURE__ */ t("div", { className: "max-h-[360px] overflow-y-auto divide-y divide-border-subtle", children: e.map(
345
- (r, h) => d === "compact" ? /* @__PURE__ */ t(
346
- M,
347
- {
348
- file: r,
349
- index: h,
350
- onRemove: a,
351
- onRetry: n
352
- },
353
- r.id
354
- ) : /* @__PURE__ */ t(
355
- E,
356
- {
357
- file: r,
358
- index: h,
359
- showSize: c,
360
- onRemove: a,
361
- onRetry: n
362
- },
363
- r.id
364
- )
365
- ) }),
366
- /* @__PURE__ */ t("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "false", children: e.map(
367
- (r) => r.status === "complete" ? /* @__PURE__ */ s("span", { children: [
368
- r.name,
369
- " upload complete."
370
- ] }, `sr-${r.id}`) : r.status === "error" ? /* @__PURE__ */ s("span", { children: [
371
- r.name,
372
- " upload failed",
373
- r.error ? `: ${r.error}` : "",
374
- "."
375
- ] }, `sr-${r.id}`) : null
376
- ) })
377
- ]
378
- }
379
- );
380
- }
381
- );
382
- S.displayName = "UploadProgress";
383
- export {
384
- S as UploadProgress,
385
- P as formatFileSize
386
- };
@@ -1,4 +0,0 @@
1
- "use client";
2
- /** Hook to detect prefers-reduced-motion. SSR/test-safe. */
3
- export declare function useReducedMotion(): boolean;
4
- //# sourceMappingURL=use-reduced-motion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-reduced-motion.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-reduced-motion.ts"],"names":[],"mappings":"AAEA,4DAA4D;AAC5D,wBAAgB,gBAAgB,IAAI,OAAO,CAa1C"}
@@ -1,17 +0,0 @@
1
- "use client";
2
- import * as React from 'react';
3
- type TransitionProps = {
4
- open: boolean;
5
- duration?: string;
6
- className?: string;
7
- children: React.ReactNode;
8
- unmountOnClose?: boolean;
9
- };
10
- declare const Fade: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<HTMLDivElement>>;
11
- declare const Collapse: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<HTMLDivElement>>;
12
- declare const Grow: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<HTMLDivElement>>;
13
- declare const Slide: React.ForwardRefExoticComponent<TransitionProps & {
14
- direction?: "up" | "down" | "left" | "right";
15
- } & React.RefAttributes<HTMLDivElement>>;
16
- export { Fade, Collapse, Grow, Slide, type TransitionProps };
17
- //# sourceMappingURL=transitions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../src/ui/transitions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,QAAA,MAAM,IAAI,wFAkBT,CAAA;AAGD,QAAA,MAAM,QAAQ,wFAgCb,CAAA;AAGD,QAAA,MAAM,IAAI,wFAmBT,CAAA;AAGD,QAAA,MAAM,KAAK;gBAEuB,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO;wCAuBhE,CAAA;AAGF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,eAAe,EAAE,CAAA"}
@@ -1,111 +0,0 @@
1
- "use client";
2
- import { jsx as u } from "react/jsx-runtime";
3
- import * as d from "react";
4
- import { useState as v, useEffect as h } from "react";
5
- import { c as f } from "../_chunks/utils.js";
6
- function m() {
7
- const [e, r] = v(!1);
8
- return h(() => {
9
- if (typeof window > "u" || typeof window.matchMedia != "function") return;
10
- const t = window.matchMedia("(prefers-reduced-motion: reduce)");
11
- r(t.matches);
12
- const a = (o) => r(o.matches);
13
- return t.addEventListener("change", a), () => t.removeEventListener("change", a);
14
- }, []), e;
15
- }
16
- const w = d.forwardRef(
17
- ({ open: e, duration: r, className: t, children: a, unmountOnClose: o = !1, ...s }, i) => {
18
- const n = m();
19
- return o && !e ? null : /* @__PURE__ */ u(
20
- "div",
21
- {
22
- ref: i,
23
- className: f("transition-opacity ease-productive-entrance", t),
24
- style: {
25
- opacity: e ? 1 : 0,
26
- transitionDuration: n ? "0ms" : r || "var(--duration-moderate-02)"
27
- },
28
- ...s,
29
- children: a
30
- }
31
- );
32
- }
33
- );
34
- w.displayName = "Fade";
35
- const y = d.forwardRef(
36
- ({ open: e, duration: r, className: t, children: a, ...o }, s) => {
37
- const i = m(), n = d.useRef(null), [l, c] = d.useState(e ? void 0 : 0);
38
- return d.useEffect(() => {
39
- if (n.current)
40
- if (e) {
41
- c(n.current.scrollHeight);
42
- const p = setTimeout(() => c(void 0), 300);
43
- return () => clearTimeout(p);
44
- } else
45
- c(n.current.scrollHeight), requestAnimationFrame(() => c(0));
46
- }, [e]), /* @__PURE__ */ u(
47
- "div",
48
- {
49
- ref: s,
50
- className: f("overflow-hidden transition-[height] ease-productive-standard", t),
51
- style: {
52
- height: l !== void 0 ? `${l}px` : "auto",
53
- transitionDuration: i ? "0ms" : r || "var(--duration-moderate-02)"
54
- },
55
- ...o,
56
- children: /* @__PURE__ */ u("div", { ref: n, children: a })
57
- }
58
- );
59
- }
60
- );
61
- y.displayName = "Collapse";
62
- const g = d.forwardRef(
63
- ({ open: e, duration: r, className: t, children: a, unmountOnClose: o = !1, ...s }, i) => {
64
- const n = m();
65
- return o && !e ? null : /* @__PURE__ */ u(
66
- "div",
67
- {
68
- ref: i,
69
- className: f("transition-[opacity,transform] ease-productive-entrance", t),
70
- style: {
71
- opacity: e ? 1 : 0,
72
- transform: e ? "scale(1)" : "scale(0)",
73
- transitionDuration: n ? "0ms" : r || "var(--duration-moderate-02)"
74
- },
75
- ...s,
76
- children: a
77
- }
78
- );
79
- }
80
- );
81
- g.displayName = "Grow";
82
- const R = d.forwardRef(({ open: e, direction: r = "up", duration: t, className: a, children: o, unmountOnClose: s = !1, ...i }, n) => {
83
- const l = m();
84
- if (s && !e) return null;
85
- const c = {
86
- up: "translateY(100%)",
87
- down: "translateY(-100%)",
88
- left: "translateX(100%)",
89
- right: "translateX(-100%)"
90
- };
91
- return /* @__PURE__ */ u(
92
- "div",
93
- {
94
- ref: n,
95
- className: f("transition-transform ease-productive-entrance", a),
96
- style: {
97
- transform: e ? "translate(0)" : c[r],
98
- transitionDuration: l ? "0ms" : t || "var(--duration-moderate-02)"
99
- },
100
- ...i,
101
- children: o
102
- }
103
- );
104
- });
105
- R.displayName = "Slide";
106
- export {
107
- y as Collapse,
108
- w as Fade,
109
- g as Grow,
110
- R as Slide
111
- };