@pixpilot/shadcn-ui 0.1.0 → 0.4.1

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 (380) hide show
  1. package/dist/AbsoluteFill.cjs +24 -1
  2. package/dist/AbsoluteFill.d.ts +2 -2
  3. package/dist/AbsoluteFill.js +21 -1
  4. package/dist/Alert.cjs +81 -1
  5. package/dist/Alert.js +77 -1
  6. package/dist/Button.cjs +84 -1
  7. package/dist/Button.js +79 -1
  8. package/dist/CloseButtonAbsolute.cjs +20 -1
  9. package/dist/CloseButtonAbsolute.js +16 -1
  10. package/dist/CloseButtonRounded.cjs +22 -1
  11. package/dist/CloseButtonRounded.js +17 -1
  12. package/dist/Combobox.cjs +53 -1
  13. package/dist/Combobox.js +48 -1
  14. package/dist/CommandOptionList.cjs +29 -1
  15. package/dist/CommandOptionList.js +25 -1
  16. package/dist/ContentCard.cjs +27 -1
  17. package/dist/ContentCard.js +23 -1
  18. package/dist/DatePicker.cjs +38 -1
  19. package/dist/DatePicker.d.ts +2 -2
  20. package/dist/DatePicker.js +33 -1
  21. package/dist/LoadingOverlay.cjs +65 -1
  22. package/dist/LoadingOverlay.js +60 -1
  23. package/dist/Select.cjs +27 -1
  24. package/dist/Select.d.cts +2 -2
  25. package/dist/Select.d.ts +2 -2
  26. package/dist/Select.js +23 -1
  27. package/dist/Slider.cjs +19 -1
  28. package/dist/Slider.js +15 -1
  29. package/dist/ThemeToggle.cjs +98 -1
  30. package/dist/ThemeToggle.d.cts +2 -2
  31. package/dist/ThemeToggle.d.ts +2 -2
  32. package/dist/ThemeToggle.js +94 -1
  33. package/dist/_virtual/rolldown_runtime.cjs +44 -1
  34. package/dist/_virtual/rolldown_runtime.js +43 -0
  35. package/dist/confirmation-dialog/ConfirmationDialog.cjs +47 -1
  36. package/dist/confirmation-dialog/ConfirmationDialog.d.cts +1 -0
  37. package/dist/confirmation-dialog/ConfirmationDialog.js +43 -1
  38. package/dist/confirmation-dialog/DialogProvider.cjs +16 -1
  39. package/dist/confirmation-dialog/DialogProvider.js +12 -1
  40. package/dist/confirmation-dialog/confirmation-dialogs.cjs +14 -1
  41. package/dist/confirmation-dialog/confirmation-dialogs.js +12 -1
  42. package/dist/confirmation-dialog/index.cjs +7 -1
  43. package/dist/confirmation-dialog/index.js +6 -1
  44. package/dist/file-upload/FileUpload.cjs +68 -0
  45. package/dist/file-upload/FileUpload.d.cts +7 -0
  46. package/dist/file-upload/FileUpload.d.ts +7 -0
  47. package/dist/file-upload/FileUpload.js +63 -0
  48. package/dist/file-upload/FileUploadItems.cjs +36 -0
  49. package/dist/file-upload/FileUploadItems.js +32 -0
  50. package/dist/file-upload/FileUploadListItem.cjs +89 -0
  51. package/dist/file-upload/FileUploadListItem.js +83 -0
  52. package/dist/file-upload/hooks/index.cjs +4 -0
  53. package/dist/file-upload/hooks/index.d.cts +2 -0
  54. package/dist/file-upload/hooks/index.d.ts +2 -0
  55. package/dist/file-upload/hooks/index.js +3 -0
  56. package/dist/file-upload/hooks/use-file-error.cjs +15 -0
  57. package/dist/file-upload/hooks/use-file-error.js +14 -0
  58. package/dist/file-upload/hooks/use-file-upload-progress-callbacks.cjs +34 -0
  59. package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.cts +1 -0
  60. package/dist/file-upload/hooks/use-file-upload-progress-callbacks.d.ts +1 -0
  61. package/dist/file-upload/hooks/use-file-upload-progress-callbacks.js +32 -0
  62. package/dist/file-upload/hooks/use-file-upload-store.cjs +77 -0
  63. package/dist/file-upload/hooks/use-file-upload-store.d.cts +2 -0
  64. package/dist/file-upload/hooks/use-file-upload-store.d.ts +2 -0
  65. package/dist/file-upload/hooks/use-file-upload-store.js +75 -0
  66. package/dist/file-upload/index.cjs +6 -0
  67. package/dist/file-upload/index.d.cts +3 -0
  68. package/dist/file-upload/index.d.ts +3 -0
  69. package/dist/file-upload/index.js +5 -0
  70. package/dist/file-upload/types/index.d.cts +40 -0
  71. package/dist/file-upload/types/index.d.ts +40 -0
  72. package/dist/file-upload/utils/create-placeholder-file.cjs +12 -0
  73. package/dist/file-upload/utils/create-placeholder-file.js +10 -0
  74. package/dist/file-upload/utils/get-file-key.cjs +9 -0
  75. package/dist/file-upload/utils/get-file-key.d.cts +1 -0
  76. package/dist/file-upload/utils/get-file-key.d.ts +1 -0
  77. package/dist/file-upload/utils/get-file-key.js +7 -0
  78. package/dist/file-upload/utils/get-file-meta.cjs +24 -0
  79. package/dist/file-upload/utils/get-file-meta.d.cts +1 -0
  80. package/dist/file-upload/utils/get-file-meta.d.ts +1 -0
  81. package/dist/file-upload/utils/get-file-meta.js +21 -0
  82. package/dist/file-upload/utils/index.d.cts +4 -0
  83. package/dist/file-upload/utils/index.d.ts +4 -0
  84. package/dist/file-upload/utils/is-file-equal.cjs +10 -0
  85. package/dist/file-upload/utils/is-file-equal.d.cts +1 -0
  86. package/dist/file-upload/utils/is-file-equal.d.ts +1 -0
  87. package/dist/file-upload/utils/is-file-equal.js +8 -0
  88. package/dist/file-upload/utils/merge-file-metadata.cjs +27 -0
  89. package/dist/file-upload/utils/merge-file-metadata.d.cts +1 -0
  90. package/dist/file-upload/utils/merge-file-metadata.d.ts +1 -0
  91. package/dist/file-upload/utils/merge-file-metadata.js +26 -0
  92. package/dist/file-upload-inline/FileUploadInline.cjs +71 -0
  93. package/dist/file-upload-inline/FileUploadInline.d.cts +10 -0
  94. package/dist/file-upload-inline/FileUploadInline.d.ts +10 -0
  95. package/dist/file-upload-inline/FileUploadInline.js +66 -0
  96. package/dist/file-upload-inline/FileUploadInlineItem.cjs +96 -0
  97. package/dist/file-upload-inline/FileUploadInlineItem.js +90 -0
  98. package/dist/file-upload-inline/defaults.cjs +12 -0
  99. package/dist/file-upload-inline/defaults.js +10 -0
  100. package/dist/file-upload-inline/index.cjs +2 -0
  101. package/dist/file-upload-inline/index.d.cts +2 -0
  102. package/dist/file-upload-inline/index.d.ts +2 -0
  103. package/dist/file-upload-inline/index.js +1 -0
  104. package/dist/file-upload-inline/types.d.cts +16 -0
  105. package/dist/file-upload-inline/types.d.ts +16 -0
  106. package/dist/file-upload-inline/utils.cjs +37 -0
  107. package/dist/file-upload-inline/utils.js +34 -0
  108. package/dist/hooks/index.cjs +2 -1
  109. package/dist/hooks/index.js +1 -1
  110. package/dist/hooks/use-media-query.cjs +9 -1
  111. package/dist/hooks/use-media-query.js +7 -1
  112. package/dist/icon-selector/IconPicker.cjs +93 -1
  113. package/dist/icon-selector/IconPicker.d.cts +3 -2
  114. package/dist/icon-selector/IconPicker.d.ts +3 -2
  115. package/dist/icon-selector/IconPicker.js +88 -1
  116. package/dist/icon-selector/constants.cjs +7 -1
  117. package/dist/icon-selector/constants.js +5 -0
  118. package/dist/icon-selector/icon-picker-container.cjs +35 -1
  119. package/dist/icon-selector/icon-picker-container.js +32 -1
  120. package/dist/icon-selector/icon-picker-content.cjs +146 -1
  121. package/dist/icon-selector/icon-picker-content.js +141 -1
  122. package/dist/icon-selector/index.cjs +2 -1
  123. package/dist/icon-selector/index.d.cts +1 -2
  124. package/dist/icon-selector/index.d.ts +1 -2
  125. package/dist/icon-selector/index.js +1 -1
  126. package/dist/icon-selector/types.d.cts +4 -2
  127. package/dist/icon-selector/types.d.ts +4 -2
  128. package/dist/icon-selector/use-async-providers.cjs +69 -1
  129. package/dist/icon-selector/use-async-providers.js +67 -1
  130. package/dist/icon-selector/utils/is-valid-provider.cjs +12 -1
  131. package/dist/icon-selector/utils/is-valid-provider.js +10 -1
  132. package/dist/icon-selector/virtualized-icon-grid.cjs +137 -1
  133. package/dist/icon-selector/virtualized-icon-grid.js +132 -1
  134. package/dist/index.cjs +76 -1
  135. package/dist/index.d.cts +12 -7
  136. package/dist/index.d.ts +12 -7
  137. package/dist/index.js +37 -1
  138. package/dist/node_modules/.pnpm/@diceui_shared@0.12.0_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.cjs +558 -0
  139. package/dist/node_modules/.pnpm/@diceui_shared@0.12.0_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.js +555 -0
  140. package/dist/node_modules/.pnpm/@diceui_tags-input@0.7.2_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__reac_e193dc2ff0d426ed009417f8d89778fd/node_modules/@diceui/tags-input/dist/index.cjs +566 -0
  141. package/dist/node_modules/.pnpm/@diceui_tags-input@0.7.2_@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__reac_e193dc2ff0d426ed009417f8d89778fd/node_modules/@diceui/tags-input/dist/index.js +565 -0
  142. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +695 -0
  143. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +679 -0
  144. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +521 -0
  145. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +503 -0
  146. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +282 -0
  147. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +266 -0
  148. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.cjs +3767 -0
  149. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.js +3747 -0
  150. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +426 -0
  151. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +379 -0
  152. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +165 -0
  153. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +175 -0
  154. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +151 -0
  155. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +138 -0
  156. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
  157. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.js +11 -0
  158. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +33 -0
  159. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  160. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +92 -0
  161. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +88 -0
  162. package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_4f1d9653b0e2175502748f45fd432185/node_modules/@radix-ui/react-dialog/dist/index.cjs +310 -0
  163. package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_4f1d9653b0e2175502748f45fd432185/node_modules/@radix-ui/react-dialog/dist/index.js +299 -0
  164. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@_9ee1db7daf927866cf505b31d40047ad/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +190 -0
  165. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@_9ee1db7daf927866cf505b31d40047ad/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +187 -0
  166. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +34 -0
  167. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +32 -0
  168. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_0a31b7f987af9482d13505312e1a1be9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +203 -0
  169. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_0a31b7f987af9482d13505312e1a1be9/node_modules/@radix-ui/react-focus-scope/dist/index.js +200 -0
  170. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +18 -0
  171. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +16 -0
  172. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_1bb4e0f97f86496802d28a2e74e2a8b9/node_modules/@radix-ui/react-portal/dist/index.cjs +29 -0
  173. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_1bb4e0f97f86496802d28a2e74e2a8b9/node_modules/@radix-ui/react-portal/dist/index.js +25 -0
  174. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.cjs +110 -0
  175. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_90f8e5c12233caef3399d5fd66452a13/node_modules/@radix-ui/react-presence/dist/index.js +108 -0
  176. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.cjs +52 -0
  177. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_a92a69cb1cb39305138539e4fa72f596/node_modules/@radix-ui/react-primitive/dist/index.js +47 -0
  178. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +92 -0
  179. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +89 -0
  180. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.4_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +103 -0
  181. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.4_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +100 -0
  182. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +15 -0
  183. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  184. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +64 -0
  185. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +62 -0
  186. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +19 -0
  187. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +17 -0
  188. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +9 -0
  189. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  190. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +108 -0
  191. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es5/index.cjs +155 -0
  192. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +19 -0
  193. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  194. package/dist/node_modules/.pnpm/detect-node-es@1.1.0/node_modules/detect-node-es/es5/node.cjs +14 -0
  195. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +9 -0
  196. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es5/index.cjs +22 -0
  197. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +46 -0
  198. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +12 -0
  199. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
  200. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +37 -0
  201. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/component.cjs +61 -0
  202. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/constants.cjs +23 -0
  203. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/index.cjs +57 -0
  204. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es5/utils.cjs +49 -0
  205. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +17 -0
  206. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -0
  207. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +64 -0
  208. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  209. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -0
  210. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +7 -0
  211. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +9 -0
  212. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/Combination.cjs +29 -0
  213. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/SideEffect.cjs +179 -0
  214. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/UI.cjs +79 -0
  215. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/aggresiveCapture.cjs +27 -0
  216. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/handleScroll.cjs +98 -0
  217. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/index.cjs +19 -0
  218. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/medium.cjs +18 -0
  219. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es5/sidecar.cjs +21 -0
  220. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +21 -0
  221. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +27 -0
  222. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
  223. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +43 -0
  224. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/component.cjs +33 -0
  225. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/hook.cjs +40 -0
  226. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/index.cjs +39 -0
  227. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es5/singleton.cjs +55 -0
  228. package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.cjs +347 -0
  229. package/dist/node_modules/.pnpm/tabbable@6.3.0/node_modules/tabbable/dist/index.esm.js +268 -0
  230. package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1895 -0
  231. package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1893 -0
  232. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +557 -0
  233. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +31 -0
  234. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +22 -0
  235. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +47 -0
  236. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
  237. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/assignRef.cjs +34 -0
  238. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/createRef.cjs +39 -0
  239. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/index.cjs +85 -0
  240. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/mergeRef.cjs +40 -0
  241. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/refToCallback.cjs +59 -0
  242. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/transformRef.cjs +34 -0
  243. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useMergeRef.cjs +61 -0
  244. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useRef.cjs +53 -0
  245. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es5/useTransformRef.cjs +38 -0
  246. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
  247. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +84 -0
  248. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/config.cjs +22 -0
  249. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/env.cjs +21 -0
  250. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/exports.cjs +31 -0
  251. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/hoc.cjs +31 -0
  252. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/hook.cjs +60 -0
  253. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/index.cjs +69 -0
  254. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/medium.cjs +101 -0
  255. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es5/renderProp.cjs +58 -0
  256. package/dist/packages/shadcn/src/components/index.cjs +6 -0
  257. package/dist/packages/shadcn/src/components/index.js +5 -0
  258. package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.cjs +6 -0
  259. package/dist/packages/shadcn/src/components/ui/OrContinueWithSeparator.js +3 -0
  260. package/dist/packages/shadcn/src/components/ui/alert-dialog.cjs +10 -0
  261. package/dist/packages/shadcn/src/components/ui/alert-dialog.js +6 -0
  262. package/dist/packages/shadcn/src/components/ui/alert.cjs +44 -0
  263. package/dist/packages/shadcn/src/components/ui/alert.js +38 -0
  264. package/dist/packages/shadcn/src/components/ui/avatar.cjs +5 -0
  265. package/dist/packages/shadcn/src/components/ui/avatar.js +2 -0
  266. package/dist/packages/shadcn/src/components/ui/badge.cjs +20 -0
  267. package/dist/packages/shadcn/src/components/ui/badge.js +16 -0
  268. package/dist/packages/shadcn/src/components/ui/button.cjs +50 -0
  269. package/dist/packages/shadcn/src/components/ui/button.js +45 -0
  270. package/dist/packages/shadcn/src/components/ui/calendar.cjs +8 -0
  271. package/dist/packages/shadcn/src/components/ui/calendar.js +4 -0
  272. package/dist/packages/shadcn/src/components/ui/card.cjs +5 -0
  273. package/dist/packages/shadcn/src/components/ui/card.js +2 -0
  274. package/dist/packages/shadcn/src/components/ui/checkbox.cjs +10 -0
  275. package/dist/packages/shadcn/src/components/ui/checkbox.js +6 -0
  276. package/dist/packages/shadcn/src/components/ui/command.cjs +11 -0
  277. package/dist/packages/shadcn/src/components/ui/command.js +7 -0
  278. package/dist/packages/shadcn/src/components/ui/dialog.cjs +93 -0
  279. package/dist/packages/shadcn/src/components/ui/dialog.js +81 -0
  280. package/dist/packages/shadcn/src/components/ui/dropdown-menu.cjs +7 -0
  281. package/dist/packages/shadcn/src/components/ui/dropdown-menu.js +3 -0
  282. package/dist/packages/shadcn/src/components/ui/file-upload.cjs +49 -0
  283. package/dist/packages/shadcn/src/components/ui/file-upload.js +45 -0
  284. package/dist/packages/shadcn/src/components/ui/form.cjs +12 -0
  285. package/dist/packages/shadcn/src/components/ui/form.js +9 -0
  286. package/dist/packages/shadcn/src/components/ui/index.cjs +30 -0
  287. package/dist/packages/shadcn/src/components/ui/index.js +29 -0
  288. package/dist/packages/shadcn/src/components/ui/input.cjs +5 -0
  289. package/dist/packages/shadcn/src/components/ui/input.js +2 -0
  290. package/dist/packages/shadcn/src/components/ui/label.cjs +5 -0
  291. package/dist/packages/shadcn/src/components/ui/label.js +2 -0
  292. package/dist/packages/shadcn/src/components/ui/pagination.cjs +9 -0
  293. package/dist/packages/shadcn/src/components/ui/pagination.js +4 -0
  294. package/dist/packages/shadcn/src/components/ui/popover.cjs +5 -0
  295. package/dist/packages/shadcn/src/components/ui/popover.js +2 -0
  296. package/dist/packages/shadcn/src/components/ui/radio-group.cjs +7 -0
  297. package/dist/packages/shadcn/src/components/ui/radio-group.js +3 -0
  298. package/dist/packages/shadcn/src/components/ui/select.cjs +10 -0
  299. package/dist/packages/shadcn/src/components/ui/select.js +6 -0
  300. package/dist/packages/shadcn/src/components/ui/separator.cjs +5 -0
  301. package/dist/packages/shadcn/src/components/ui/separator.js +2 -0
  302. package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.cjs +26 -0
  303. package/dist/packages/shadcn/src/components/ui/shadcn-io/tags/index.js +22 -0
  304. package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.cjs +6 -0
  305. package/dist/packages/shadcn/src/components/ui/shadcn-io/tags-input-inline/index.js +3 -0
  306. package/dist/packages/shadcn/src/components/ui/sheet.cjs +7 -0
  307. package/dist/packages/shadcn/src/components/ui/sheet.js +3 -0
  308. package/dist/packages/shadcn/src/components/ui/slider.cjs +5 -0
  309. package/dist/packages/shadcn/src/components/ui/slider.js +2 -0
  310. package/dist/packages/shadcn/src/components/ui/switch.cjs +8 -0
  311. package/dist/packages/shadcn/src/components/ui/switch.js +5 -0
  312. package/dist/packages/shadcn/src/components/ui/tabs.cjs +5 -0
  313. package/dist/packages/shadcn/src/components/ui/tabs.js +2 -0
  314. package/dist/packages/shadcn/src/components/ui/textarea.cjs +5 -0
  315. package/dist/packages/shadcn/src/components/ui/textarea.js +2 -0
  316. package/dist/packages/shadcn/src/components/ui/tooltip.cjs +5 -0
  317. package/dist/packages/shadcn/src/components/ui/tooltip.js +2 -0
  318. package/dist/packages/shadcn/src/lib/utils.cjs +11 -0
  319. package/dist/packages/shadcn/src/lib/utils.js +10 -0
  320. package/dist/pagination/Pagination.cjs +156 -0
  321. package/dist/{Pagination → pagination}/Pagination.d.cts +1 -1
  322. package/dist/{Pagination → pagination}/Pagination.d.ts +1 -1
  323. package/dist/pagination/Pagination.js +151 -0
  324. package/dist/pagination/index.cjs +2 -0
  325. package/dist/pagination/index.js +1 -0
  326. package/dist/rich-text-editor/RichTextEditor.cjs +132 -0
  327. package/dist/rich-text-editor/RichTextEditor.d.cts +55 -0
  328. package/dist/rich-text-editor/RichTextEditor.d.ts +55 -0
  329. package/dist/rich-text-editor/RichTextEditor.js +126 -0
  330. package/dist/rich-text-editor/index.cjs +2 -0
  331. package/dist/rich-text-editor/index.d.cts +1 -0
  332. package/dist/rich-text-editor/index.d.ts +1 -0
  333. package/dist/rich-text-editor/index.js +1 -0
  334. package/dist/rich-text-editor/predefined-toolbar-options.cjs +84 -0
  335. package/dist/rich-text-editor/predefined-toolbar-options.js +81 -0
  336. package/dist/spinner/index.cjs +2 -1
  337. package/dist/spinner/index.js +1 -1
  338. package/dist/spinner/spinner.cjs +73 -6
  339. package/dist/spinner/spinner.js +70 -6
  340. package/dist/spinner/styles.cjs +25 -12
  341. package/dist/spinner/styles.js +23 -12
  342. package/dist/tags-input.cjs +226 -1
  343. package/dist/tags-input.d.cts +2 -2
  344. package/dist/tags-input.d.ts +2 -2
  345. package/dist/tags-input.js +222 -1
  346. package/dist/theme-provider/ThemeProvider.cjs +27 -1
  347. package/dist/theme-provider/ThemeProvider.js +23 -1
  348. package/dist/theme-provider/index.cjs +4 -1
  349. package/dist/theme-provider/index.js +4 -1
  350. package/dist/toast/AlertToast.cjs +36 -1
  351. package/dist/toast/AlertToast.js +31 -1
  352. package/dist/toast/index.cjs +2 -1
  353. package/dist/toast/index.js +1 -1
  354. package/dist/toast/toast.cjs +75 -1
  355. package/dist/toast/toast.js +66 -1
  356. package/package.json +11 -4
  357. package/dist/FileUploadInline.cjs +0 -1
  358. package/dist/FileUploadInline.d.cts +0 -75
  359. package/dist/FileUploadInline.d.ts +0 -75
  360. package/dist/FileUploadInline.js +0 -1
  361. package/dist/Pagination/Pagination.cjs +0 -1
  362. package/dist/Pagination/Pagination.js +0 -1
  363. package/dist/Pagination/index.cjs +0 -1
  364. package/dist/Pagination/index.js +0 -1
  365. package/dist/PopoverContent.cjs +0 -1
  366. package/dist/PopoverContent.d.cts +0 -8
  367. package/dist/PopoverContent.d.ts +0 -8
  368. package/dist/PopoverContent.js +0 -1
  369. package/dist/icon-selector/use-async-providers.d.cts +0 -14
  370. package/dist/icon-selector/use-async-providers.d.ts +0 -14
  371. package/dist/shadcn/src/components/ui/alert.cjs +0 -1
  372. package/dist/shadcn/src/components/ui/alert.js +0 -1
  373. package/dist/shadcn/src/components/ui/dialog.cjs +0 -1
  374. package/dist/shadcn/src/components/ui/dialog.js +0 -1
  375. package/dist/shadcn/src/lib/index.cjs +0 -1
  376. package/dist/shadcn/src/lib/index.js +0 -1
  377. package/dist/shadcn/src/lib/utils.cjs +0 -1
  378. package/dist/shadcn/src/lib/utils.js +0 -1
  379. /package/dist/{Pagination → pagination}/index.d.cts +0 -0
  380. /package/dist/{Pagination → pagination}/index.d.ts +0 -0
@@ -0,0 +1,555 @@
1
+ import { __commonJS, __require, __toCommonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
2
+ import { floating_ui_react_esm_exports, init_floating_ui_react_esm } from "../../../../../@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.esm.js";
3
+
4
+ //#region ../../node_modules/.pnpm/@diceui+shared@0.12.0_@floating-ui+react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.js
5
+ var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@diceui+shared@0.12.0_@floating-ui+react@0.27.16_react-dom@19.2.0_react@19.2.0__react@1_2c51ffe880f01dd537d5b6a13313daf4/node_modules/@diceui/shared/dist/index.js": ((exports) => {
6
+ var React32 = __require("react");
7
+ var react = (init_floating_ui_react_esm(), __toCommonJS(floating_ui_react_esm_exports));
8
+ var ReactDOM = __require("react-dom");
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) Object.keys(e).forEach(function(k) {
13
+ if (k !== "default") {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function() {
18
+ return e[k];
19
+ }
20
+ });
21
+ }
22
+ });
23
+ n.default = e;
24
+ return Object.freeze(n);
25
+ }
26
+ var React32__namespace = /* @__PURE__ */ _interopNamespace(React32);
27
+ var ReactDOM__namespace = /* @__PURE__ */ _interopNamespace(ReactDOM);
28
+ var DATA_ITEM_ATTR = "data-dice-collection-item";
29
+ var DirectionContext = React32__namespace.createContext(void 0);
30
+ function useDirection(dirProp) {
31
+ const contextDir = React32__namespace.useContext(DirectionContext);
32
+ return dirProp ?? contextDir ?? "ltr";
33
+ }
34
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React32__namespace.useLayoutEffect : React32__namespace.useEffect;
35
+ function useCallbackRef(callback) {
36
+ const callbackRef = React32__namespace.useRef(callback);
37
+ React32__namespace.useEffect(() => {
38
+ callbackRef.current = callback;
39
+ });
40
+ return React32__namespace.useMemo(() => (...args) => callbackRef.current?.(...args), []);
41
+ }
42
+ function compareNodePosition(a, b) {
43
+ const position = a.compareDocumentPosition(b);
44
+ if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) return -1;
45
+ if (position & Node.DOCUMENT_POSITION_PRECEDING || position & Node.DOCUMENT_POSITION_CONTAINS) return 1;
46
+ return 0;
47
+ }
48
+ function useControllableState({ prop, defaultProp, onChange = () => {} }) {
49
+ const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({
50
+ defaultProp,
51
+ onChange
52
+ });
53
+ const isControlled = prop !== void 0;
54
+ const value = isControlled ? prop : uncontrolledProp;
55
+ const handleChange = useCallbackRef(onChange);
56
+ return [value, React32__namespace.useCallback((nextValue) => {
57
+ if (isControlled) {
58
+ const value2 = typeof nextValue === "function" ? nextValue(prop) : nextValue;
59
+ if (value2 !== prop) handleChange(value2);
60
+ } else setUncontrolledProp(nextValue);
61
+ }, [
62
+ isControlled,
63
+ prop,
64
+ setUncontrolledProp,
65
+ handleChange
66
+ ])];
67
+ }
68
+ function useUncontrolledState({ defaultProp, onChange }) {
69
+ const uncontrolledState = React32__namespace.useState(defaultProp);
70
+ const [value] = uncontrolledState;
71
+ const prevValueRef = React32__namespace.useRef(value);
72
+ const handleChange = useCallbackRef(onChange);
73
+ React32__namespace.useEffect(() => {
74
+ if (prevValueRef.current !== value) {
75
+ handleChange(value);
76
+ prevValueRef.current = value;
77
+ }
78
+ }, [value, handleChange]);
79
+ return uncontrolledState;
80
+ }
81
+ var LRUCache = class {
82
+ cache;
83
+ maxSize;
84
+ keyOrder;
85
+ constructor(maxSize) {
86
+ this.cache = /* @__PURE__ */ new Map();
87
+ this.maxSize = maxSize;
88
+ this.keyOrder = [];
89
+ }
90
+ get(key) {
91
+ const value = this.cache.get(key);
92
+ if (value !== void 0) {
93
+ const index = this.keyOrder.indexOf(key);
94
+ if (index > -1) {
95
+ this.keyOrder.splice(index, 1);
96
+ this.keyOrder.push(key);
97
+ }
98
+ }
99
+ return value;
100
+ }
101
+ set(key, value) {
102
+ if (this.cache.has(key)) {
103
+ this.cache.set(key, value);
104
+ const index = this.keyOrder.indexOf(key);
105
+ if (index > -1) this.keyOrder.splice(index, 1);
106
+ } else {
107
+ if (this.keyOrder.length >= this.maxSize) {
108
+ const lruKey = this.keyOrder.shift();
109
+ if (lruKey !== void 0) this.cache.delete(lruKey);
110
+ }
111
+ this.cache.set(key, value);
112
+ }
113
+ this.keyOrder.push(key);
114
+ }
115
+ clear() {
116
+ this.cache.clear();
117
+ this.keyOrder.length = 0;
118
+ }
119
+ get size() {
120
+ return this.cache.size;
121
+ }
122
+ };
123
+ var collatorCache = new LRUCache(10);
124
+ var normalizedCache = new LRUCache(1e3);
125
+ function useFormControl(form) {
126
+ const [trigger, setTrigger] = React32__namespace.useState(null);
127
+ return {
128
+ isFormControl: trigger ? form || !!trigger.closest("form") : true,
129
+ trigger,
130
+ onTriggerChange: setTrigger
131
+ };
132
+ }
133
+ function useFormReset({ form, defaultValue, onReset }) {
134
+ const onResetCallback = useCallbackRef(onReset);
135
+ React32__namespace.useEffect(() => {
136
+ if (!form) return;
137
+ function onFormReset() {
138
+ if (defaultValue !== void 0) onResetCallback?.(defaultValue);
139
+ }
140
+ form.addEventListener("reset", onFormReset);
141
+ return () => form.removeEventListener("reset", onFormReset);
142
+ }, [
143
+ form,
144
+ defaultValue,
145
+ onResetCallback
146
+ ]);
147
+ }
148
+ var useLayoutEffect4 = globalThis?.document ? React32__namespace.useLayoutEffect : () => {};
149
+ var useReactId = React32__namespace[" useId ".trim().toString()] || (() => void 0);
150
+ var count = 0;
151
+ function useId(deterministicId) {
152
+ const [id, setId] = React32__namespace.useState(typeof useReactId === "function" ? useReactId() : void 0);
153
+ useLayoutEffect4(() => {
154
+ if (!deterministicId) setId((reactId) => reactId ?? String(count++));
155
+ }, [deterministicId]);
156
+ return deterministicId || (id ? `dice-${id}` : "");
157
+ }
158
+ function useItemCollection({ ref, attr = DATA_ITEM_ATTR }) {
159
+ const getItems = React32__namespace.useCallback(() => {
160
+ const collectionNode = ref.current;
161
+ if (!collectionNode) return [];
162
+ const items = Array.from(collectionNode.querySelectorAll(`[${attr}]`));
163
+ if (items.length === 0) return [];
164
+ return items.sort(compareNodePosition);
165
+ }, [ref, attr]);
166
+ return {
167
+ getItems,
168
+ getEnabledItems: React32__namespace.useCallback(() => {
169
+ return getItems().filter((item) => item.getAttribute("aria-disabled") !== "true");
170
+ }, [getItems])
171
+ };
172
+ }
173
+ function useMounted() {
174
+ const [mounted, setMounted] = React32__namespace.useState(false);
175
+ useLayoutEffect4(() => {
176
+ setMounted(true);
177
+ }, []);
178
+ return mounted;
179
+ }
180
+ function usePrevious(value) {
181
+ const ref = React32__namespace.useRef({
182
+ value,
183
+ previous: value
184
+ });
185
+ return React32__namespace.useMemo(() => {
186
+ if (ref.current.value !== value) {
187
+ ref.current.previous = ref.current.value;
188
+ ref.current.value = value;
189
+ }
190
+ return ref.current.previous;
191
+ }, [value]);
192
+ }
193
+ function useSize(element) {
194
+ const [size2, setSize] = React32__namespace.useState(void 0);
195
+ useLayoutEffect4(() => {
196
+ if (element) {
197
+ setSize({
198
+ width: element.offsetWidth,
199
+ height: element.offsetHeight
200
+ });
201
+ const resizeObserver = new ResizeObserver((entries) => {
202
+ if (!Array.isArray(entries)) return;
203
+ if (!entries.length) return;
204
+ const entry = entries[0];
205
+ let width;
206
+ let height;
207
+ if (entry && "borderBoxSize" in entry) {
208
+ const borderSizeEntry = entry.borderBoxSize;
209
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
210
+ width = borderSize.inlineSize;
211
+ height = borderSize.blockSize;
212
+ } else {
213
+ width = element.offsetWidth;
214
+ height = element.offsetHeight;
215
+ }
216
+ setSize({
217
+ width,
218
+ height
219
+ });
220
+ });
221
+ resizeObserver.observe(element, { box: "border-box" });
222
+ return () => resizeObserver.unobserve(element);
223
+ }
224
+ setSize(void 0);
225
+ }, [element]);
226
+ return size2;
227
+ }
228
+ function useStateMachine(config) {
229
+ const [state, setState] = React32__namespace.useState(config.initial);
230
+ return [state, React32__namespace.useCallback((event) => {
231
+ setState((currentState) => {
232
+ return config.states[currentState]?.[event] ?? currentState;
233
+ });
234
+ }, [config.states])];
235
+ }
236
+ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
237
+ return function handleEvent(event) {
238
+ originalEventHandler?.(event);
239
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler?.(event);
240
+ };
241
+ }
242
+ function setRef(ref, value) {
243
+ if (typeof ref === "function") return ref(value);
244
+ if (ref !== null && ref !== void 0) ref.current = value;
245
+ }
246
+ function composeRefs(...refs) {
247
+ return (node) => {
248
+ let hasCleanup = false;
249
+ const cleanups = refs.map((ref) => {
250
+ const cleanup = setRef(ref, node);
251
+ if (!hasCleanup && typeof cleanup === "function") hasCleanup = true;
252
+ return cleanup;
253
+ });
254
+ if (hasCleanup) return () => {
255
+ for (let i = 0; i < cleanups.length; i++) {
256
+ const cleanup = cleanups[i];
257
+ if (typeof cleanup === "function") cleanup();
258
+ else setRef(refs[i], null);
259
+ }
260
+ };
261
+ };
262
+ }
263
+ function useComposedRefs(...refs) {
264
+ return React32__namespace.useCallback(composeRefs(...refs), refs);
265
+ }
266
+ var visuallyHidden = {
267
+ border: 0,
268
+ clip: "rect(0 0 0 0)",
269
+ clipPath: "inset(50%)",
270
+ height: "1px",
271
+ margin: "-1px",
272
+ overflow: "hidden",
273
+ padding: 0,
274
+ position: "absolute",
275
+ whiteSpace: "nowrap",
276
+ width: "1px"
277
+ };
278
+ function VisuallyHiddenInput(props) {
279
+ const { control, value, checked, bubbles = true, type = "hidden", onReset, style,...inputProps } = props;
280
+ const isCheckInput = type === "checkbox" || type === "radio" || type === "switch";
281
+ const inputRef = React32__namespace.useRef(null);
282
+ const prevValue = usePrevious(type === "hidden" ? value : checked);
283
+ const controlSize = useSize(control);
284
+ React32__namespace.useEffect(() => {
285
+ const input = inputRef.current;
286
+ if (!input) return;
287
+ const inputProto = window.HTMLInputElement.prototype;
288
+ const propertyKey = isCheckInput ? "checked" : "value";
289
+ const eventType = isCheckInput ? "click" : "input";
290
+ const currentValue = isCheckInput ? checked : JSON.stringify(value);
291
+ const setter = Object.getOwnPropertyDescriptor(inputProto, propertyKey).set;
292
+ if (prevValue !== currentValue && setter) {
293
+ const event = new Event(eventType, { bubbles });
294
+ setter.call(input, currentValue);
295
+ input.dispatchEvent(event);
296
+ }
297
+ }, [
298
+ prevValue,
299
+ value,
300
+ checked,
301
+ bubbles,
302
+ isCheckInput
303
+ ]);
304
+ useFormReset({
305
+ form: inputRef.current?.form ?? null,
306
+ defaultValue: isCheckInput ? checked : value,
307
+ onReset: (resetValue) => {
308
+ onReset?.(resetValue);
309
+ }
310
+ });
311
+ return /* @__PURE__ */ React32__namespace.createElement("input", {
312
+ type,
313
+ ...inputProps,
314
+ ref: inputRef,
315
+ "aria-hidden": isCheckInput,
316
+ tabIndex: -1,
317
+ defaultChecked: isCheckInput ? checked : void 0,
318
+ style: {
319
+ ...props.style,
320
+ ...controlSize,
321
+ ...visuallyHidden
322
+ }
323
+ });
324
+ }
325
+ function createContext3(rootComponentName, defaultValue) {
326
+ const Context = React32__namespace.createContext(defaultValue);
327
+ Context.displayName = rootComponentName;
328
+ function Provider(props) {
329
+ const { children,...contextValue } = props;
330
+ const value = React32__namespace.useMemo(() => contextValue, Object.values(contextValue));
331
+ return /* @__PURE__ */ React32__namespace.createElement(Context.Provider, { value }, children);
332
+ }
333
+ Provider.displayName = `${rootComponentName}Provider`;
334
+ function useContext3(consumerName, optional) {
335
+ const context = React32__namespace.useContext(Context);
336
+ if (!context && !optional) throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
337
+ if (context) return context;
338
+ if (defaultValue !== void 0) return defaultValue;
339
+ }
340
+ return [Provider, useContext3];
341
+ }
342
+ function getElementRef(element) {
343
+ if (!React32__namespace.isValidElement(element)) return void 0;
344
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
345
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
346
+ if (mayWarn) return element.ref;
347
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
348
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
349
+ if (mayWarn) return element.props.ref;
350
+ return element.props.ref || element.ref;
351
+ }
352
+ var isSlottable = function isSlottable2(child) {
353
+ return React32__namespace.isValidElement(child) && child.type === Slottable;
354
+ };
355
+ function mergeProps(slotProps, childProps) {
356
+ const overrideProps = { ...childProps };
357
+ for (const propName in childProps) {
358
+ const slotPropValue = slotProps[propName];
359
+ const childPropValue = childProps[propName];
360
+ if (/^on[A-Z]/.test(propName)) {
361
+ if (typeof slotPropValue === "function" && typeof childPropValue === "function") overrideProps[propName] = (...args) => {
362
+ childPropValue(...args);
363
+ slotPropValue(...args);
364
+ };
365
+ else if (typeof slotPropValue === "function") overrideProps[propName] = slotPropValue;
366
+ } else if (propName === "style" && slotPropValue && childPropValue) overrideProps[propName] = {
367
+ ...slotPropValue,
368
+ ...childPropValue
369
+ };
370
+ else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
371
+ }
372
+ return {
373
+ ...slotProps,
374
+ ...overrideProps
375
+ };
376
+ }
377
+ var SlotClone = React32__namespace.forwardRef((props, forwardedRef) => {
378
+ const { children,...slotProps } = props;
379
+ if (!React32__namespace.isValidElement(children)) return React32__namespace.Children.count(children) > 1 ? React32__namespace.Children.only(null) : null;
380
+ const childrenRef = getElementRef(children);
381
+ const mergedProps = mergeProps(slotProps, children.props);
382
+ if (typeof children.type === "string") return React32__namespace.cloneElement(children, {
383
+ ...mergedProps,
384
+ ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
385
+ });
386
+ return React32__namespace.cloneElement(children, {
387
+ ...mergedProps,
388
+ ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
389
+ });
390
+ });
391
+ SlotClone.displayName = "SlotClone";
392
+ var Slot = React32__namespace.forwardRef((props, forwardedRef) => {
393
+ const { children,...slotProps } = props;
394
+ const childrenArray = React32__namespace.Children.toArray(children);
395
+ const slottable = childrenArray.find(isSlottable);
396
+ if (!slottable) return /* @__PURE__ */ React32__namespace.createElement(SlotClone, {
397
+ ...slotProps,
398
+ ref: forwardedRef
399
+ }, children);
400
+ if (!React32__namespace.isValidElement(slottable)) return null;
401
+ const newElement = slottable.props.children;
402
+ const newChildren = childrenArray.map((child) => {
403
+ if (child === slottable) {
404
+ if (React32__namespace.Children.count(newElement) > 1) return React32__namespace.Children.only(null);
405
+ return React32__namespace.isValidElement(newElement) ? newElement.props.children : null;
406
+ }
407
+ return child;
408
+ });
409
+ return /* @__PURE__ */ React32__namespace.createElement(SlotClone, {
410
+ ...slotProps,
411
+ ref: forwardedRef
412
+ }, React32__namespace.isValidElement(newElement) ? React32__namespace.cloneElement(newElement, void 0, newChildren) : null);
413
+ });
414
+ Slot.displayName = "Slot";
415
+ var Slottable = React32__namespace.memo(function Slottable2({ children }) {
416
+ return /* @__PURE__ */ React32__namespace.createElement(React32__namespace.Fragment, null, children);
417
+ });
418
+ Slottable.displayName = "Slottable";
419
+ function createPrimitive(element) {
420
+ const Primitive2 = React32__namespace.forwardRef((props, forwardedRef) => {
421
+ const { asChild,...primitiveProps } = props;
422
+ if (asChild) return React32__namespace.createElement(Slot, {
423
+ ...primitiveProps,
424
+ ref: forwardedRef
425
+ });
426
+ return React32__namespace.createElement(element, {
427
+ ...primitiveProps,
428
+ ref: forwardedRef
429
+ });
430
+ });
431
+ Primitive2.displayName = `Primitive.${String(element)}`;
432
+ return Primitive2;
433
+ }
434
+ var cache = /* @__PURE__ */ new Map();
435
+ var Primitive = new Proxy({}, { get: (_, element) => {
436
+ const key = element;
437
+ if (!cache.has(key)) cache.set(key, createPrimitive(key));
438
+ return cache.get(key);
439
+ } });
440
+ var Portal = React32__namespace.forwardRef((props, forwardedRef) => {
441
+ const { container: containerProp,...portalProps } = props;
442
+ const mounted = useMounted();
443
+ const container = containerProp ?? (mounted ? globalThis.document?.body : null);
444
+ if (!container) return null;
445
+ return ReactDOM__namespace.createPortal(/* @__PURE__ */ React32__namespace.createElement(Primitive.div, {
446
+ ...portalProps,
447
+ ref: forwardedRef
448
+ }), container);
449
+ });
450
+ Portal.displayName = "Portal";
451
+ var Presence = (props) => {
452
+ const { present, children } = props;
453
+ const presence = usePresence(present);
454
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React32__namespace.Children.only(children);
455
+ const ref = useComposedRefs(presence.ref, getElementRef(child));
456
+ return typeof children === "function" || presence.isPresent ? React32__namespace.cloneElement(child, { ref }) : null;
457
+ };
458
+ Presence.displayName = "Presence";
459
+ function usePresence(present) {
460
+ const [node, setNode] = React32__namespace.useState();
461
+ const stylesRef = React32__namespace.useRef({});
462
+ const prevPresentRef = React32__namespace.useRef(present);
463
+ const prevAnimationNameRef = React32__namespace.useRef("none");
464
+ const [state, send] = useStateMachine({
465
+ initial: present ? "mounted" : "unmounted",
466
+ states: {
467
+ mounted: {
468
+ UNMOUNT: "unmounted",
469
+ ANIMATION_OUT: "unmountSuspended"
470
+ },
471
+ unmountSuspended: {
472
+ MOUNT: "mounted",
473
+ ANIMATION_END: "unmounted"
474
+ },
475
+ unmounted: { MOUNT: "mounted" }
476
+ }
477
+ });
478
+ React32__namespace.useEffect(() => {
479
+ const currentAnimationName = getAnimationName(stylesRef.current);
480
+ prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
481
+ }, [state]);
482
+ useLayoutEffect4(() => {
483
+ const styles = stylesRef.current;
484
+ const wasPresent = prevPresentRef.current;
485
+ if (wasPresent !== present) {
486
+ const prevAnimationName = prevAnimationNameRef.current;
487
+ const currentAnimationName = getAnimationName(styles);
488
+ if (present) send("MOUNT");
489
+ else if (currentAnimationName === "none" || styles?.display === "none") send("UNMOUNT");
490
+ else if (wasPresent && prevAnimationName !== currentAnimationName) send("ANIMATION_OUT");
491
+ else send("UNMOUNT");
492
+ prevPresentRef.current = present;
493
+ }
494
+ }, [present, send]);
495
+ useLayoutEffect4(() => {
496
+ if (node) {
497
+ let onAnimationEnd2 = function(event) {
498
+ const isCurrentAnimation = getAnimationName(stylesRef.current).includes(event.animationName);
499
+ if (event.target === node && isCurrentAnimation) {
500
+ send("ANIMATION_END");
501
+ if (!prevPresentRef.current) {
502
+ const currentFillMode = node.style.animationFillMode;
503
+ node.style.animationFillMode = "forwards";
504
+ timeoutId = ownerWindow.setTimeout(() => {
505
+ if (node.style.animationFillMode === "forwards") node.style.animationFillMode = currentFillMode;
506
+ });
507
+ }
508
+ }
509
+ }, onAnimationStart2 = function(event) {
510
+ if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
511
+ };
512
+ let timeoutId;
513
+ const ownerWindow = node.ownerDocument.defaultView ?? window;
514
+ node.addEventListener("animationstart", onAnimationStart2);
515
+ node.addEventListener("animationcancel", onAnimationEnd2);
516
+ node.addEventListener("animationend", onAnimationEnd2);
517
+ return () => {
518
+ ownerWindow.clearTimeout(timeoutId);
519
+ node.removeEventListener("animationstart", onAnimationStart2);
520
+ node.removeEventListener("animationcancel", onAnimationEnd2);
521
+ node.removeEventListener("animationend", onAnimationEnd2);
522
+ };
523
+ }
524
+ send("ANIMATION_END");
525
+ }, [node, send]);
526
+ return {
527
+ isPresent: ["mounted", "unmountSuspended"].includes(state),
528
+ ref: React32__namespace.useCallback((node2) => {
529
+ if (node2) stylesRef.current = getComputedStyle(node2);
530
+ setNode(node2);
531
+ }, [])
532
+ };
533
+ }
534
+ function getAnimationName(styles) {
535
+ return styles?.animationName || "none";
536
+ }
537
+ exports.DATA_ITEM_ATTR = DATA_ITEM_ATTR;
538
+ exports.Presence = Presence;
539
+ exports.Primitive = Primitive;
540
+ exports.VisuallyHiddenInput = VisuallyHiddenInput;
541
+ exports.composeEventHandlers = composeEventHandlers;
542
+ exports.composeRefs = composeRefs;
543
+ exports.createContext = createContext3;
544
+ exports.useComposedRefs = useComposedRefs;
545
+ exports.useControllableState = useControllableState;
546
+ exports.useDirection = useDirection;
547
+ exports.useFormControl = useFormControl;
548
+ exports.useId = useId;
549
+ exports.useItemCollection = useItemCollection;
550
+ }) });
551
+
552
+ //#endregion
553
+ export default require_dist();
554
+
555
+ export { require_dist };