@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
@@ -1 +1,226 @@
1
- "use client";const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./CommandOptionList.cjs`);let n=require(`@pixpilot/shadcn`);n=e.__toESM(n);let r=require(`react`);r=e.__toESM(r);let i=require(`react/jsx-runtime`);i=e.__toESM(i);const a=[],o=[];function s({value:e=a,onChange:s,options:c=o,freeSolo:l=!0,placeholder:u=`Add tags...`,emptyText:d=`No options found.`,className:f,disabled:p=!1,readOnly:m=!1,maxTags:h,allowDuplicates:g=!1,editable:_=!1,label:v,delimiter:y=`,`,addOnPaste:b=!0,addOnTab:x=!0,onValidate:S}){let[C,w]=(0,r.useState)(!1),[T,E]=(0,r.useState)(``),D=(0,r.useRef)(null),O=c.length>0;(0,r.useEffect)(()=>{if(C&&D.current){let e=setTimeout(()=>{D.current?.focus()},0);return()=>{clearTimeout(e)}}},[C]);let k=(0,r.useMemo)(()=>e.map(e=>String(e)),[e]),A=(0,r.useCallback)(e=>O?c.find(t=>String(t.value)===String(e))?.label??String(e):String(e),[c,O]),j=(0,r.useMemo)(()=>O?c.filter(e=>T?e.label.toLowerCase().includes(T.toLowerCase()):!0):[],[c,T,O]),M=(0,r.useCallback)(e=>{if(E(``),O){let t=e.map(e=>c.find(t=>String(t.value)===e)?.value??e);s?.(t)}else s?.(e)},[s,c,O]),N=(0,r.useCallback)(t=>h!==void 0&&e.length>=h||!g&&k.includes(t)||O&&!l&&!c.some(e=>String(e.value)===t)?!1:S?S(t):!0,[e,h,g,S,k,O,l,c]),P=(0,r.useCallback)(t=>{let n=e.some(e=>String(e)===String(t)),r;r=n?e.filter(e=>String(e)!==String(t)):[...e,t],s?.(r),E(``)},[e,s]);return O?(0,i.jsxs)(`div`,{className:(0,n.cn)(`relative`,f),children:[v!==void 0&&v!==``?(0,i.jsx)(n.TagsInputInLineLabel,{children:v}):null,(0,i.jsxs)(n.Popover,{open:C&&!p&&!m,onOpenChange:w,children:[(0,i.jsx)(n.PopoverTrigger,{asChild:!0,children:(0,i.jsx)(`div`,{className:`w-full`,children:(0,i.jsxs)(n.TagsInputInLineRoot,{disabled:p,editable:_,max:h,onValueChange:M,onValidate:N,readOnly:m,value:k,delimiter:l?y:void 0,addOnPaste:l?b:!1,addOnTab:l?x:!1,children:[(0,i.jsxs)(n.TagsInputInLineList,{onClick:e=>{!p&&!m&&(e.stopPropagation(),w(!0))},children:[e.map(e=>{let t=A(e);return(0,i.jsx)(n.TagsInputInLineItem,{value:String(e),children:t},String(e))}),(0,i.jsx)(n.TagsInputInLineInput,{ref:D,placeholder:u,onFocus:e=>{e.stopPropagation(),w(!0)},onChange:e=>{e.stopPropagation(),E(e.target.value)},onKeyDown:e=>{if(C&&(e.key===`ArrowDown`||e.key===`ArrowUp`)){e.preventDefault(),e.stopPropagation();let t=document.querySelector(`[cmdk-root]`);if(t){let n=new KeyboardEvent(`keydown`,{key:e.key,bubbles:!0,cancelable:!0});t.dispatchEvent(n)}return}if(C&&e.key===`Enter`){let t=document.querySelector(`[cmdk-item][data-selected="true"]`);if(t){e.preventDefault(),e.stopPropagation(),t.click();return}}e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()}})]}),e.length>0&&!p&&!m&&(0,i.jsx)(n.TagsInputInLineClear,{})]})})}),(0,i.jsx)(n.PopoverContent,{className:`p-0`,align:`start`,style:{width:`var(--radix-popover-trigger-width)`},onOpenAutoFocus:e=>{e.preventDefault()},children:(0,i.jsx)(n.Command,{shouldFilter:!1,value:T,loop:!0,children:(0,i.jsx)(t.CommandOptionList,{options:j,value:e,onChange:P,emptyText:d})})})]})]}):(0,i.jsxs)(n.TagsInputInLineRoot,{className:f,disabled:p,editable:_,max:h,onValueChange:M,onValidate:N,readOnly:m,value:k,delimiter:y,addOnPaste:b,addOnTab:x,children:[v!==void 0&&v!==``?(0,i.jsx)(n.TagsInputInLineLabel,{children:v}):null,(0,i.jsxs)(n.TagsInputInLineList,{children:[k.map(e=>(0,i.jsx)(n.TagsInputInLineItem,{value:e,children:e},e)),(0,i.jsx)(n.TagsInputInLineInput,{placeholder:u})]}),e.length>0&&!p&&!m&&(0,i.jsx)(n.TagsInputInLineClear,{})]})}exports.TagsInput=s;
1
+ 'use client';
2
+
3
+
4
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
5
+ const require_CommandOptionList = require('./CommandOptionList.cjs');
6
+ let __pixpilot_shadcn = require("@pixpilot/shadcn");
7
+ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
8
+ let react = require("react");
9
+ react = require_rolldown_runtime.__toESM(react);
10
+ let react_jsx_runtime = require("react/jsx-runtime");
11
+ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
12
+
13
+ //#region src/tags-input.tsx
14
+ const EMPTY_ARRAY = [];
15
+ const EMPTY_OPTIONS = [];
16
+ /**
17
+ * TagsInput component - Inline tags input based on DiceUI
18
+ *
19
+ * This is a different implementation than TagsInput, using the DiceUI library
20
+ * for a more streamlined inline editing experience.
21
+ *
22
+ * Features:
23
+ * - Inline tag display and editing
24
+ * - Keyboard navigation (Arrow keys, Home, End, Delete, Backspace)
25
+ * - Optional tag editing (editable prop)
26
+ * - Validation support
27
+ * - Paste support with delimiter parsing
28
+ * - Max tags limit
29
+ * - Options support with dropdown (like Select)
30
+ * - freeSolo mode for custom tags (like MUI Autocomplete)
31
+ */
32
+ function TagsInput({ value = EMPTY_ARRAY, onChange, options = EMPTY_OPTIONS, freeSolo = true, placeholder = "Add tags...", emptyText = "No options found.", className, disabled = false, readOnly = false, maxTags, allowDuplicates = false, editable = false, label, delimiter = ",", addOnPaste = true, addOnTab = true, onValidate }) {
33
+ const [open, setOpen] = (0, react.useState)(false);
34
+ const [searchValue, setSearchValue] = (0, react.useState)("");
35
+ const inputRef = (0, react.useRef)(null);
36
+ const hasOptions = options.length > 0;
37
+ (0, react.useEffect)(() => {
38
+ if (open && inputRef.current) {
39
+ const timer = setTimeout(() => {
40
+ inputRef.current?.focus();
41
+ }, 0);
42
+ return () => {
43
+ clearTimeout(timer);
44
+ };
45
+ }
46
+ }, [open]);
47
+ const stringValues = (0, react.useMemo)(() => {
48
+ return value.map((v) => String(v));
49
+ }, [value]);
50
+ const getLabel = (0, react.useCallback)((val) => {
51
+ if (!hasOptions) return String(val);
52
+ return options.find((opt) => String(opt.value) === String(val))?.label ?? String(val);
53
+ }, [options, hasOptions]);
54
+ const filteredOptions = (0, react.useMemo)(() => {
55
+ if (!hasOptions) return [];
56
+ return options.filter((option) => {
57
+ if (searchValue) return option.label.toLowerCase().includes(searchValue.toLowerCase());
58
+ return true;
59
+ });
60
+ }, [
61
+ options,
62
+ searchValue,
63
+ hasOptions
64
+ ]);
65
+ const handleValueChange = (0, react.useCallback)((newTags) => {
66
+ setSearchValue("");
67
+ if (hasOptions) {
68
+ const convertedValues = newTags.map((tag) => {
69
+ return options.find((opt) => String(opt.value) === tag)?.value ?? tag;
70
+ });
71
+ onChange?.(convertedValues);
72
+ } else onChange?.(newTags);
73
+ }, [
74
+ onChange,
75
+ options,
76
+ hasOptions
77
+ ]);
78
+ const handleValidate = (0, react.useCallback)((tag) => {
79
+ if (maxTags !== void 0 && value.length >= maxTags) return false;
80
+ if (!allowDuplicates && stringValues.includes(tag)) return false;
81
+ if (hasOptions && !freeSolo) {
82
+ if (!options.some((opt) => String(opt.value) === tag)) return false;
83
+ }
84
+ if (onValidate) return onValidate(tag);
85
+ return true;
86
+ }, [
87
+ value,
88
+ maxTags,
89
+ allowDuplicates,
90
+ onValidate,
91
+ stringValues,
92
+ hasOptions,
93
+ freeSolo,
94
+ options
95
+ ]);
96
+ const handleSelectOption = (0, react.useCallback)((optionValue) => {
97
+ const isSelected = value.some((v) => String(v) === String(optionValue));
98
+ let newValues;
99
+ if (isSelected) newValues = value.filter((v) => String(v) !== String(optionValue));
100
+ else newValues = [...value, optionValue];
101
+ onChange?.(newValues);
102
+ setSearchValue("");
103
+ }, [value, onChange]);
104
+ if (!hasOptions) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.TagsInputInLineRoot, {
105
+ className,
106
+ disabled,
107
+ editable,
108
+ max: maxTags,
109
+ onValueChange: handleValueChange,
110
+ onValidate: handleValidate,
111
+ readOnly,
112
+ value: stringValues,
113
+ delimiter,
114
+ addOnPaste,
115
+ addOnTab,
116
+ children: [
117
+ label !== void 0 && label !== "" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineLabel, { children: label }) : null,
118
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.TagsInputInLineList, { children: [stringValues.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineItem, {
119
+ value: tag,
120
+ children: tag
121
+ }, tag)), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineInput, { placeholder })] }),
122
+ value.length > 0 && !disabled && !readOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineClear, {})
123
+ ]
124
+ });
125
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
126
+ className: (0, __pixpilot_shadcn.cn)("relative", className),
127
+ children: [label !== void 0 && label !== "" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineLabel, { children: label }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Popover, {
128
+ open: open && !disabled && !readOnly,
129
+ onOpenChange: setOpen,
130
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.PopoverTrigger, {
131
+ asChild: true,
132
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
133
+ className: "w-full",
134
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.TagsInputInLineRoot, {
135
+ disabled,
136
+ editable,
137
+ max: maxTags,
138
+ onValueChange: handleValueChange,
139
+ onValidate: handleValidate,
140
+ readOnly,
141
+ value: stringValues,
142
+ delimiter: freeSolo ? delimiter : void 0,
143
+ addOnPaste: freeSolo ? addOnPaste : false,
144
+ addOnTab: freeSolo ? addOnTab : false,
145
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.TagsInputInLineList, {
146
+ onClick: (e) => {
147
+ if (!disabled && !readOnly) {
148
+ e.stopPropagation();
149
+ setOpen(true);
150
+ }
151
+ },
152
+ children: [value.map((val) => {
153
+ const displayLabel = getLabel(val);
154
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineItem, {
155
+ value: String(val),
156
+ children: displayLabel
157
+ }, String(val));
158
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineInput, {
159
+ ref: inputRef,
160
+ placeholder,
161
+ onFocus: (e) => {
162
+ e.stopPropagation();
163
+ setOpen(true);
164
+ },
165
+ onChange: (e) => {
166
+ e.stopPropagation();
167
+ setSearchValue(e.target.value);
168
+ },
169
+ onKeyDown: (e) => {
170
+ if (open && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
171
+ e.preventDefault();
172
+ e.stopPropagation();
173
+ const command = document.querySelector("[cmdk-root]");
174
+ if (command) {
175
+ const event = new KeyboardEvent("keydown", {
176
+ key: e.key,
177
+ bubbles: true,
178
+ cancelable: true
179
+ });
180
+ command.dispatchEvent(event);
181
+ }
182
+ return;
183
+ }
184
+ if (open && e.key === "Enter") {
185
+ const selectedItem = document.querySelector("[cmdk-item][data-selected=\"true\"]");
186
+ if (selectedItem) {
187
+ e.preventDefault();
188
+ e.stopPropagation();
189
+ selectedItem.click();
190
+ return;
191
+ }
192
+ }
193
+ e.stopPropagation();
194
+ },
195
+ onMouseDown: (e) => {
196
+ e.stopPropagation();
197
+ }
198
+ })]
199
+ }), value.length > 0 && !disabled && !readOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.TagsInputInLineClear, {})]
200
+ })
201
+ })
202
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.PopoverContent, {
203
+ className: "p-0",
204
+ align: "start",
205
+ style: { width: "var(--radix-popover-trigger-width)" },
206
+ onOpenAutoFocus: (e) => {
207
+ e.preventDefault();
208
+ },
209
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.Command, {
210
+ shouldFilter: false,
211
+ value: searchValue,
212
+ loop: true,
213
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CommandOptionList.CommandOptionList, {
214
+ options: filteredOptions,
215
+ value,
216
+ onChange: handleSelectOption,
217
+ emptyText
218
+ })
219
+ })
220
+ })]
221
+ })]
222
+ });
223
+ }
224
+
225
+ //#endregion
226
+ exports.TagsInput = TagsInput;
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "./CommandOptionList.cjs";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input.d.ts
5
5
  interface TagsInputProps {
@@ -55,6 +55,6 @@ declare function TagsInput({
55
55
  addOnPaste,
56
56
  addOnTab,
57
57
  onValidate
58
- }: TagsInputProps): react_jsx_runtime5.JSX.Element;
58
+ }: TagsInputProps): react_jsx_runtime4.JSX.Element;
59
59
  //#endregion
60
60
  export { TagsInput, TagsInputProps };
@@ -1,5 +1,5 @@
1
1
  import { CommandOptionListItem } from "./CommandOptionList.js";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/tags-input.d.ts
5
5
  interface TagsInputProps {
@@ -55,6 +55,6 @@ declare function TagsInput({
55
55
  addOnPaste,
56
56
  addOnTab,
57
57
  onValidate
58
- }: TagsInputProps): react_jsx_runtime5.JSX.Element;
58
+ }: TagsInputProps): react_jsx_runtime4.JSX.Element;
59
59
  //#endregion
60
60
  export { TagsInput, TagsInputProps };
@@ -1 +1,222 @@
1
- "use client";import{CommandOptionList as e}from"./CommandOptionList.js";import{Command as t,Popover as n,PopoverContent as r,PopoverTrigger as i,TagsInputInLineClear as a,TagsInputInLineInput as o,TagsInputInLineItem as s,TagsInputInLineLabel as c,TagsInputInLineList as l,TagsInputInLineRoot as u,cn as d}from"@pixpilot/shadcn";import{useCallback as f,useEffect as p,useMemo as m,useRef as h,useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";const y=[],b=[];function x({value:x=y,onChange:S,options:C=b,freeSolo:w=!0,placeholder:T=`Add tags...`,emptyText:E=`No options found.`,className:D,disabled:O=!1,readOnly:k=!1,maxTags:A,allowDuplicates:j=!1,editable:M=!1,label:N,delimiter:P=`,`,addOnPaste:F=!0,addOnTab:I=!0,onValidate:L}){let[R,z]=g(!1),[B,V]=g(``),H=h(null),U=C.length>0;p(()=>{if(R&&H.current){let e=setTimeout(()=>{H.current?.focus()},0);return()=>{clearTimeout(e)}}},[R]);let W=m(()=>x.map(e=>String(e)),[x]),G=f(e=>U?C.find(t=>String(t.value)===String(e))?.label??String(e):String(e),[C,U]),K=m(()=>U?C.filter(e=>B?e.label.toLowerCase().includes(B.toLowerCase()):!0):[],[C,B,U]),q=f(e=>{if(V(``),U){let t=e.map(e=>C.find(t=>String(t.value)===e)?.value??e);S?.(t)}else S?.(e)},[S,C,U]),J=f(e=>A!==void 0&&x.length>=A||!j&&W.includes(e)||U&&!w&&!C.some(t=>String(t.value)===e)?!1:L?L(e):!0,[x,A,j,L,W,U,w,C]),Y=f(e=>{let t=x.some(t=>String(t)===String(e)),n;n=t?x.filter(t=>String(t)!==String(e)):[...x,e],S?.(n),V(``)},[x,S]);return U?v(`div`,{className:d(`relative`,D),children:[N!==void 0&&N!==``?_(c,{children:N}):null,v(n,{open:R&&!O&&!k,onOpenChange:z,children:[_(i,{asChild:!0,children:_(`div`,{className:`w-full`,children:v(u,{disabled:O,editable:M,max:A,onValueChange:q,onValidate:J,readOnly:k,value:W,delimiter:w?P:void 0,addOnPaste:w?F:!1,addOnTab:w?I:!1,children:[v(l,{onClick:e=>{!O&&!k&&(e.stopPropagation(),z(!0))},children:[x.map(e=>{let t=G(e);return _(s,{value:String(e),children:t},String(e))}),_(o,{ref:H,placeholder:T,onFocus:e=>{e.stopPropagation(),z(!0)},onChange:e=>{e.stopPropagation(),V(e.target.value)},onKeyDown:e=>{if(R&&(e.key===`ArrowDown`||e.key===`ArrowUp`)){e.preventDefault(),e.stopPropagation();let t=document.querySelector(`[cmdk-root]`);if(t){let n=new KeyboardEvent(`keydown`,{key:e.key,bubbles:!0,cancelable:!0});t.dispatchEvent(n)}return}if(R&&e.key===`Enter`){let t=document.querySelector(`[cmdk-item][data-selected="true"]`);if(t){e.preventDefault(),e.stopPropagation(),t.click();return}}e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()}})]}),x.length>0&&!O&&!k&&_(a,{})]})})}),_(r,{className:`p-0`,align:`start`,style:{width:`var(--radix-popover-trigger-width)`},onOpenAutoFocus:e=>{e.preventDefault()},children:_(t,{shouldFilter:!1,value:B,loop:!0,children:_(e,{options:K,value:x,onChange:Y,emptyText:E})})})]})]}):v(u,{className:D,disabled:O,editable:M,max:A,onValueChange:q,onValidate:J,readOnly:k,value:W,delimiter:P,addOnPaste:F,addOnTab:I,children:[N!==void 0&&N!==``?_(c,{children:N}):null,v(l,{children:[W.map(e=>_(s,{value:e,children:e},e)),_(o,{placeholder:T})]}),x.length>0&&!O&&!k&&_(a,{})]})}export{x as TagsInput};
1
+ 'use client';
2
+
3
+
4
+ import { CommandOptionList } from "./CommandOptionList.js";
5
+ import { Command, Popover, PopoverContent, PopoverTrigger, TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot, cn } from "@pixpilot/shadcn";
6
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+
9
+ //#region src/tags-input.tsx
10
+ const EMPTY_ARRAY = [];
11
+ const EMPTY_OPTIONS = [];
12
+ /**
13
+ * TagsInput component - Inline tags input based on DiceUI
14
+ *
15
+ * This is a different implementation than TagsInput, using the DiceUI library
16
+ * for a more streamlined inline editing experience.
17
+ *
18
+ * Features:
19
+ * - Inline tag display and editing
20
+ * - Keyboard navigation (Arrow keys, Home, End, Delete, Backspace)
21
+ * - Optional tag editing (editable prop)
22
+ * - Validation support
23
+ * - Paste support with delimiter parsing
24
+ * - Max tags limit
25
+ * - Options support with dropdown (like Select)
26
+ * - freeSolo mode for custom tags (like MUI Autocomplete)
27
+ */
28
+ function TagsInput({ value = EMPTY_ARRAY, onChange, options = EMPTY_OPTIONS, freeSolo = true, placeholder = "Add tags...", emptyText = "No options found.", className, disabled = false, readOnly = false, maxTags, allowDuplicates = false, editable = false, label, delimiter = ",", addOnPaste = true, addOnTab = true, onValidate }) {
29
+ const [open, setOpen] = useState(false);
30
+ const [searchValue, setSearchValue] = useState("");
31
+ const inputRef = useRef(null);
32
+ const hasOptions = options.length > 0;
33
+ useEffect(() => {
34
+ if (open && inputRef.current) {
35
+ const timer = setTimeout(() => {
36
+ inputRef.current?.focus();
37
+ }, 0);
38
+ return () => {
39
+ clearTimeout(timer);
40
+ };
41
+ }
42
+ }, [open]);
43
+ const stringValues = useMemo(() => {
44
+ return value.map((v) => String(v));
45
+ }, [value]);
46
+ const getLabel = useCallback((val) => {
47
+ if (!hasOptions) return String(val);
48
+ return options.find((opt) => String(opt.value) === String(val))?.label ?? String(val);
49
+ }, [options, hasOptions]);
50
+ const filteredOptions = useMemo(() => {
51
+ if (!hasOptions) return [];
52
+ return options.filter((option) => {
53
+ if (searchValue) return option.label.toLowerCase().includes(searchValue.toLowerCase());
54
+ return true;
55
+ });
56
+ }, [
57
+ options,
58
+ searchValue,
59
+ hasOptions
60
+ ]);
61
+ const handleValueChange = useCallback((newTags) => {
62
+ setSearchValue("");
63
+ if (hasOptions) {
64
+ const convertedValues = newTags.map((tag) => {
65
+ return options.find((opt) => String(opt.value) === tag)?.value ?? tag;
66
+ });
67
+ onChange?.(convertedValues);
68
+ } else onChange?.(newTags);
69
+ }, [
70
+ onChange,
71
+ options,
72
+ hasOptions
73
+ ]);
74
+ const handleValidate = useCallback((tag) => {
75
+ if (maxTags !== void 0 && value.length >= maxTags) return false;
76
+ if (!allowDuplicates && stringValues.includes(tag)) return false;
77
+ if (hasOptions && !freeSolo) {
78
+ if (!options.some((opt) => String(opt.value) === tag)) return false;
79
+ }
80
+ if (onValidate) return onValidate(tag);
81
+ return true;
82
+ }, [
83
+ value,
84
+ maxTags,
85
+ allowDuplicates,
86
+ onValidate,
87
+ stringValues,
88
+ hasOptions,
89
+ freeSolo,
90
+ options
91
+ ]);
92
+ const handleSelectOption = useCallback((optionValue) => {
93
+ const isSelected = value.some((v) => String(v) === String(optionValue));
94
+ let newValues;
95
+ if (isSelected) newValues = value.filter((v) => String(v) !== String(optionValue));
96
+ else newValues = [...value, optionValue];
97
+ onChange?.(newValues);
98
+ setSearchValue("");
99
+ }, [value, onChange]);
100
+ if (!hasOptions) return /* @__PURE__ */ jsxs(TagsInputInLineRoot, {
101
+ className,
102
+ disabled,
103
+ editable,
104
+ max: maxTags,
105
+ onValueChange: handleValueChange,
106
+ onValidate: handleValidate,
107
+ readOnly,
108
+ value: stringValues,
109
+ delimiter,
110
+ addOnPaste,
111
+ addOnTab,
112
+ children: [
113
+ label !== void 0 && label !== "" ? /* @__PURE__ */ jsx(TagsInputInLineLabel, { children: label }) : null,
114
+ /* @__PURE__ */ jsxs(TagsInputInLineList, { children: [stringValues.map((tag) => /* @__PURE__ */ jsx(TagsInputInLineItem, {
115
+ value: tag,
116
+ children: tag
117
+ }, tag)), /* @__PURE__ */ jsx(TagsInputInLineInput, { placeholder })] }),
118
+ value.length > 0 && !disabled && !readOnly && /* @__PURE__ */ jsx(TagsInputInLineClear, {})
119
+ ]
120
+ });
121
+ return /* @__PURE__ */ jsxs("div", {
122
+ className: cn("relative", className),
123
+ children: [label !== void 0 && label !== "" ? /* @__PURE__ */ jsx(TagsInputInLineLabel, { children: label }) : null, /* @__PURE__ */ jsxs(Popover, {
124
+ open: open && !disabled && !readOnly,
125
+ onOpenChange: setOpen,
126
+ children: [/* @__PURE__ */ jsx(PopoverTrigger, {
127
+ asChild: true,
128
+ children: /* @__PURE__ */ jsx("div", {
129
+ className: "w-full",
130
+ children: /* @__PURE__ */ jsxs(TagsInputInLineRoot, {
131
+ disabled,
132
+ editable,
133
+ max: maxTags,
134
+ onValueChange: handleValueChange,
135
+ onValidate: handleValidate,
136
+ readOnly,
137
+ value: stringValues,
138
+ delimiter: freeSolo ? delimiter : void 0,
139
+ addOnPaste: freeSolo ? addOnPaste : false,
140
+ addOnTab: freeSolo ? addOnTab : false,
141
+ children: [/* @__PURE__ */ jsxs(TagsInputInLineList, {
142
+ onClick: (e) => {
143
+ if (!disabled && !readOnly) {
144
+ e.stopPropagation();
145
+ setOpen(true);
146
+ }
147
+ },
148
+ children: [value.map((val) => {
149
+ const displayLabel = getLabel(val);
150
+ return /* @__PURE__ */ jsx(TagsInputInLineItem, {
151
+ value: String(val),
152
+ children: displayLabel
153
+ }, String(val));
154
+ }), /* @__PURE__ */ jsx(TagsInputInLineInput, {
155
+ ref: inputRef,
156
+ placeholder,
157
+ onFocus: (e) => {
158
+ e.stopPropagation();
159
+ setOpen(true);
160
+ },
161
+ onChange: (e) => {
162
+ e.stopPropagation();
163
+ setSearchValue(e.target.value);
164
+ },
165
+ onKeyDown: (e) => {
166
+ if (open && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
167
+ e.preventDefault();
168
+ e.stopPropagation();
169
+ const command = document.querySelector("[cmdk-root]");
170
+ if (command) {
171
+ const event = new KeyboardEvent("keydown", {
172
+ key: e.key,
173
+ bubbles: true,
174
+ cancelable: true
175
+ });
176
+ command.dispatchEvent(event);
177
+ }
178
+ return;
179
+ }
180
+ if (open && e.key === "Enter") {
181
+ const selectedItem = document.querySelector("[cmdk-item][data-selected=\"true\"]");
182
+ if (selectedItem) {
183
+ e.preventDefault();
184
+ e.stopPropagation();
185
+ selectedItem.click();
186
+ return;
187
+ }
188
+ }
189
+ e.stopPropagation();
190
+ },
191
+ onMouseDown: (e) => {
192
+ e.stopPropagation();
193
+ }
194
+ })]
195
+ }), value.length > 0 && !disabled && !readOnly && /* @__PURE__ */ jsx(TagsInputInLineClear, {})]
196
+ })
197
+ })
198
+ }), /* @__PURE__ */ jsx(PopoverContent, {
199
+ className: "p-0",
200
+ align: "start",
201
+ style: { width: "var(--radix-popover-trigger-width)" },
202
+ onOpenAutoFocus: (e) => {
203
+ e.preventDefault();
204
+ },
205
+ children: /* @__PURE__ */ jsx(Command, {
206
+ shouldFilter: false,
207
+ value: searchValue,
208
+ loop: true,
209
+ children: /* @__PURE__ */ jsx(CommandOptionList, {
210
+ options: filteredOptions,
211
+ value,
212
+ onChange: handleSelectOption,
213
+ emptyText
214
+ })
215
+ })
216
+ })]
217
+ })]
218
+ });
219
+ }
220
+
221
+ //#endregion
222
+ export { TagsInput };
@@ -1 +1,27 @@
1
- "use client";const e=require(`../_virtual/rolldown_runtime.cjs`);let t=require(`react`);t=e.__toESM(t);let n=require(`react/jsx-runtime`);n=e.__toESM(n);let r=require(`next-themes`);r=e.__toESM(r);const i=e=>{let{children:t}=e;return(0,n.jsx)(r.ThemeProvider,{attribute:`class`,defaultTheme:`system`,enableSystem:!0,disableTransitionOnChange:!1,...e,children:t})};i.displayName=`ThemeProvider`,exports.ThemeProvider=i;
1
+ 'use client';
2
+
3
+
4
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
5
+ let react = require("react");
6
+ react = require_rolldown_runtime.__toESM(react);
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
9
+ let next_themes = require("next-themes");
10
+ next_themes = require_rolldown_runtime.__toESM(next_themes);
11
+
12
+ //#region src/theme-provider/ThemeProvider.tsx
13
+ const ThemeProvider = (props) => {
14
+ const { children } = props;
15
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_themes.ThemeProvider, {
16
+ attribute: "class",
17
+ defaultTheme: "system",
18
+ enableSystem: true,
19
+ disableTransitionOnChange: false,
20
+ ...props,
21
+ children
22
+ });
23
+ };
24
+ ThemeProvider.displayName = "ThemeProvider";
25
+
26
+ //#endregion
27
+ exports.ThemeProvider = ThemeProvider;
@@ -1 +1,23 @@
1
- "use client";import e from"react";import{jsx as t}from"react/jsx-runtime";import{ThemeProvider as n}from"next-themes";const r=e=>{let{children:r}=e;return t(n,{attribute:`class`,defaultTheme:`system`,enableSystem:!0,disableTransitionOnChange:!1,...e,children:r})};r.displayName=`ThemeProvider`;export{r as ThemeProvider};
1
+ 'use client';
2
+
3
+
4
+ import React from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { ThemeProvider } from "next-themes";
7
+
8
+ //#region src/theme-provider/ThemeProvider.tsx
9
+ const ThemeProvider$1 = (props) => {
10
+ const { children } = props;
11
+ return /* @__PURE__ */ jsx(ThemeProvider, {
12
+ attribute: "class",
13
+ defaultTheme: "system",
14
+ enableSystem: true,
15
+ disableTransitionOnChange: false,
16
+ ...props,
17
+ children
18
+ });
19
+ };
20
+ ThemeProvider$1.displayName = "ThemeProvider";
21
+
22
+ //#endregion
23
+ export { ThemeProvider$1 as ThemeProvider };
@@ -1 +1,4 @@
1
- const e=require(`../_virtual/rolldown_runtime.cjs`),t=require(`./ThemeProvider.cjs`);let n=require(`next-themes`);n=e.__toESM(n);
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_ThemeProvider = require('./ThemeProvider.cjs');
3
+ let next_themes = require("next-themes");
4
+ next_themes = require_rolldown_runtime.__toESM(next_themes);
@@ -1 +1,4 @@
1
- import{ThemeProvider as e}from"./ThemeProvider.js";import{useTheme as t}from"next-themes";export{t as useTheme};
1
+ import { ThemeProvider as ThemeProvider$1 } from "./ThemeProvider.js";
2
+ import { useTheme as useTheme$1 } from "next-themes";
3
+
4
+ export { useTheme$1 as useTheme };
@@ -1 +1,36 @@
1
- const e=require(`../_virtual/rolldown_runtime.cjs`),t=require(`../Alert.cjs`);let n=require(`@pixpilot/shadcn`);n=e.__toESM(n);let r=require(`react`);r=e.__toESM(r);let i=require(`react/jsx-runtime`);i=e.__toESM(i);let a=require(`lucide-react`);a=e.__toESM(a);const o=e=>{let{duration:r,onClose:o,...s}=e;return(0,i.jsx)(t.Alert,{icon:!0,...s,className:(0,n.cn)(`shadow-md`,e.className,{"pr-3":o}),children:o&&(0,i.jsx)(`div`,{className:`flex items-start pt-0.5 pl-1`,children:(0,i.jsxs)(`button`,{type:`button`,className:`cursor-pointer opacity-80 transition-opacity hover:opacity-100`,onClick:o,children:[(0,i.jsx)(a.XIcon,{className:`size-4.5`}),(0,i.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})})};o.displayName=`AlertToast`,exports.AlertToast=o;
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_Alert = require('../Alert.cjs');
3
+ let __pixpilot_shadcn = require("@pixpilot/shadcn");
4
+ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
5
+ let lucide_react = require("lucide-react");
6
+ lucide_react = require_rolldown_runtime.__toESM(lucide_react);
7
+ let react = require("react");
8
+ react = require_rolldown_runtime.__toESM(react);
9
+ let react_jsx_runtime = require("react/jsx-runtime");
10
+ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
11
+
12
+ //#region src/toast/AlertToast.tsx
13
+ const AlertToast = (props) => {
14
+ const { duration, onClose,...rest } = props;
15
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Alert.Alert, {
16
+ icon: true,
17
+ ...rest,
18
+ className: (0, __pixpilot_shadcn.cn)("shadow-md", props.className, { "pr-3": onClose }),
19
+ children: onClose && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
20
+ className: "flex items-start pt-0.5 pl-1",
21
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
22
+ type: "button",
23
+ className: "cursor-pointer opacity-80 transition-opacity hover:opacity-100",
24
+ onClick: onClose,
25
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.XIcon, { className: "size-4.5" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
26
+ className: "sr-only",
27
+ children: "Close"
28
+ })]
29
+ })
30
+ })
31
+ });
32
+ };
33
+ AlertToast.displayName = "AlertToast";
34
+
35
+ //#endregion
36
+ exports.AlertToast = AlertToast;
@@ -1 +1,31 @@
1
- import{Alert as e}from"../Alert.js";import{cn as t}from"@pixpilot/shadcn";import n from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{XIcon as a}from"lucide-react";const o=n=>{let{duration:o,onClose:s,...c}=n;return r(e,{icon:!0,...c,className:t(`shadow-md`,n.className,{"pr-3":s}),children:s&&r(`div`,{className:`flex items-start pt-0.5 pl-1`,children:i(`button`,{type:`button`,className:`cursor-pointer opacity-80 transition-opacity hover:opacity-100`,onClick:s,children:[r(a,{className:`size-4.5`}),r(`span`,{className:`sr-only`,children:`Close`})]})})})};o.displayName=`AlertToast`;export{o as AlertToast};
1
+ import { Alert } from "../Alert.js";
2
+ import { cn } from "@pixpilot/shadcn";
3
+ import { XIcon } from "lucide-react";
4
+ import React from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/toast/AlertToast.tsx
8
+ const AlertToast = (props) => {
9
+ const { duration, onClose,...rest } = props;
10
+ return /* @__PURE__ */ jsx(Alert, {
11
+ icon: true,
12
+ ...rest,
13
+ className: cn("shadow-md", props.className, { "pr-3": onClose }),
14
+ children: onClose && /* @__PURE__ */ jsx("div", {
15
+ className: "flex items-start pt-0.5 pl-1",
16
+ children: /* @__PURE__ */ jsxs("button", {
17
+ type: "button",
18
+ className: "cursor-pointer opacity-80 transition-opacity hover:opacity-100",
19
+ onClick: onClose,
20
+ children: [/* @__PURE__ */ jsx(XIcon, { className: "size-4.5" }), /* @__PURE__ */ jsx("span", {
21
+ className: "sr-only",
22
+ children: "Close"
23
+ })]
24
+ })
25
+ })
26
+ });
27
+ };
28
+ AlertToast.displayName = "AlertToast";
29
+
30
+ //#endregion
31
+ export { AlertToast };
@@ -1 +1,2 @@
1
- const e=require(`./toast.cjs`);
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_toast = require('./toast.cjs');
@@ -1 +1 @@
1
- import{DEFAULT_ALERT_DURATION as e,toast as t,toastError as n,toastInfo as r,toastSuccess as i,toastWarning as a}from"./toast.js";
1
+ import { DEFAULT_ALERT_DURATION, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast.js";