@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,557 @@
1
+ const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
4
+ var tslib_es6_exports = /* @__PURE__ */ require_rolldown_runtime.__export({
5
+ __addDisposableResource: () => __addDisposableResource,
6
+ __assign: () => __assign,
7
+ __asyncDelegator: () => __asyncDelegator,
8
+ __asyncGenerator: () => __asyncGenerator,
9
+ __asyncValues: () => __asyncValues,
10
+ __await: () => __await,
11
+ __awaiter: () => __awaiter,
12
+ __classPrivateFieldGet: () => __classPrivateFieldGet,
13
+ __classPrivateFieldIn: () => __classPrivateFieldIn,
14
+ __classPrivateFieldSet: () => __classPrivateFieldSet,
15
+ __createBinding: () => __createBinding,
16
+ __decorate: () => __decorate,
17
+ __disposeResources: () => __disposeResources,
18
+ __esDecorate: () => __esDecorate,
19
+ __exportStar: () => __exportStar,
20
+ __extends: () => __extends,
21
+ __generator: () => __generator,
22
+ __importDefault: () => __importDefault,
23
+ __importStar: () => __importStar,
24
+ __makeTemplateObject: () => __makeTemplateObject,
25
+ __metadata: () => __metadata,
26
+ __param: () => __param,
27
+ __propKey: () => __propKey,
28
+ __read: () => __read,
29
+ __rest: () => __rest,
30
+ __rewriteRelativeImportExtension: () => __rewriteRelativeImportExtension,
31
+ __runInitializers: () => __runInitializers,
32
+ __setFunctionName: () => __setFunctionName,
33
+ __spread: () => __spread,
34
+ __spreadArray: () => __spreadArray,
35
+ __spreadArrays: () => __spreadArrays,
36
+ __values: () => __values,
37
+ default: () => tslib_es6_default
38
+ });
39
+ function __extends(d, b) {
40
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
41
+ extendStatics(d, b);
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
46
+ }
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
50
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") {
51
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
52
+ }
53
+ return t;
54
+ }
55
+ function __decorate(decorators, target, key, desc) {
56
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
57
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
58
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+ }
61
+ function __param(paramIndex, decorator) {
62
+ return function(target, key) {
63
+ decorator(target, key, paramIndex);
64
+ };
65
+ }
66
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
67
+ function accept(f) {
68
+ if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
69
+ return f;
70
+ }
71
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
72
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
73
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
74
+ var _, done = false;
75
+ for (var i = decorators.length - 1; i >= 0; i--) {
76
+ var context = {};
77
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
78
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
79
+ context.addInitializer = function(f) {
80
+ if (done) throw new TypeError("Cannot add initializers after decoration has completed");
81
+ extraInitializers.push(accept(f || null));
82
+ };
83
+ var result = (0, decorators[i])(kind === "accessor" ? {
84
+ get: descriptor.get,
85
+ set: descriptor.set
86
+ } : descriptor[key], context);
87
+ if (kind === "accessor") {
88
+ if (result === void 0) continue;
89
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
90
+ if (_ = accept(result.get)) descriptor.get = _;
91
+ if (_ = accept(result.set)) descriptor.set = _;
92
+ if (_ = accept(result.init)) initializers.unshift(_);
93
+ } else if (_ = accept(result)) if (kind === "field") initializers.unshift(_);
94
+ else descriptor[key] = _;
95
+ }
96
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
97
+ done = true;
98
+ }
99
+ function __runInitializers(thisArg, initializers, value) {
100
+ var useValue = arguments.length > 2;
101
+ for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
102
+ return useValue ? value : void 0;
103
+ }
104
+ function __propKey(x) {
105
+ return typeof x === "symbol" ? x : "".concat(x);
106
+ }
107
+ function __setFunctionName(f, name, prefix) {
108
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
109
+ return Object.defineProperty(f, "name", {
110
+ configurable: true,
111
+ value: prefix ? "".concat(prefix, " ", name) : name
112
+ });
113
+ }
114
+ function __metadata(metadataKey, metadataValue) {
115
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
116
+ }
117
+ function __awaiter(thisArg, _arguments, P, generator) {
118
+ function adopt(value) {
119
+ return value instanceof P ? value : new P(function(resolve) {
120
+ resolve(value);
121
+ });
122
+ }
123
+ return new (P || (P = Promise))(function(resolve, reject) {
124
+ function fulfilled(value) {
125
+ try {
126
+ step(generator.next(value));
127
+ } catch (e) {
128
+ reject(e);
129
+ }
130
+ }
131
+ function rejected(value) {
132
+ try {
133
+ step(generator["throw"](value));
134
+ } catch (e) {
135
+ reject(e);
136
+ }
137
+ }
138
+ function step(result) {
139
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
140
+ }
141
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
142
+ });
143
+ }
144
+ function __generator(thisArg, body) {
145
+ var _ = {
146
+ label: 0,
147
+ sent: function() {
148
+ if (t[0] & 1) throw t[1];
149
+ return t[1];
150
+ },
151
+ trys: [],
152
+ ops: []
153
+ }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
154
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
155
+ return this;
156
+ }), g;
157
+ function verb(n) {
158
+ return function(v) {
159
+ return step([n, v]);
160
+ };
161
+ }
162
+ function step(op) {
163
+ if (f) throw new TypeError("Generator is already executing.");
164
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
165
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
166
+ if (y = 0, t) op = [op[0] & 2, t.value];
167
+ switch (op[0]) {
168
+ case 0:
169
+ case 1:
170
+ t = op;
171
+ break;
172
+ case 4:
173
+ _.label++;
174
+ return {
175
+ value: op[1],
176
+ done: false
177
+ };
178
+ case 5:
179
+ _.label++;
180
+ y = op[1];
181
+ op = [0];
182
+ continue;
183
+ case 7:
184
+ op = _.ops.pop();
185
+ _.trys.pop();
186
+ continue;
187
+ default:
188
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
189
+ _ = 0;
190
+ continue;
191
+ }
192
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
193
+ _.label = op[1];
194
+ break;
195
+ }
196
+ if (op[0] === 6 && _.label < t[1]) {
197
+ _.label = t[1];
198
+ t = op;
199
+ break;
200
+ }
201
+ if (t && _.label < t[2]) {
202
+ _.label = t[2];
203
+ _.ops.push(op);
204
+ break;
205
+ }
206
+ if (t[2]) _.ops.pop();
207
+ _.trys.pop();
208
+ continue;
209
+ }
210
+ op = body.call(thisArg, _);
211
+ } catch (e) {
212
+ op = [6, e];
213
+ y = 0;
214
+ } finally {
215
+ f = t = 0;
216
+ }
217
+ if (op[0] & 5) throw op[1];
218
+ return {
219
+ value: op[0] ? op[1] : void 0,
220
+ done: true
221
+ };
222
+ }
223
+ }
224
+ function __exportStar(m, o) {
225
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
226
+ }
227
+ function __values(o) {
228
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
229
+ if (m) return m.call(o);
230
+ if (o && typeof o.length === "number") return { next: function() {
231
+ if (o && i >= o.length) o = void 0;
232
+ return {
233
+ value: o && o[i++],
234
+ done: !o
235
+ };
236
+ } };
237
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
238
+ }
239
+ function __read(o, n) {
240
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
241
+ if (!m) return o;
242
+ var i = m.call(o), r, ar = [], e;
243
+ try {
244
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
245
+ } catch (error) {
246
+ e = { error };
247
+ } finally {
248
+ try {
249
+ if (r && !r.done && (m = i["return"])) m.call(i);
250
+ } finally {
251
+ if (e) throw e.error;
252
+ }
253
+ }
254
+ return ar;
255
+ }
256
+ /** @deprecated */
257
+ function __spread() {
258
+ for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
259
+ return ar;
260
+ }
261
+ /** @deprecated */
262
+ function __spreadArrays() {
263
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
264
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
265
+ return r;
266
+ }
267
+ function __spreadArray(to, from, pack) {
268
+ if (pack || arguments.length === 2) {
269
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
270
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
271
+ ar[i] = from[i];
272
+ }
273
+ }
274
+ return to.concat(ar || Array.prototype.slice.call(from));
275
+ }
276
+ function __await(v) {
277
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
278
+ }
279
+ function __asyncGenerator(thisArg, _arguments, generator) {
280
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
281
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
282
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
283
+ return this;
284
+ }, i;
285
+ function awaitReturn(f) {
286
+ return function(v) {
287
+ return Promise.resolve(v).then(f, reject);
288
+ };
289
+ }
290
+ function verb(n, f) {
291
+ if (g[n]) {
292
+ i[n] = function(v) {
293
+ return new Promise(function(a, b) {
294
+ q.push([
295
+ n,
296
+ v,
297
+ a,
298
+ b
299
+ ]) > 1 || resume(n, v);
300
+ });
301
+ };
302
+ if (f) i[n] = f(i[n]);
303
+ }
304
+ }
305
+ function resume(n, v) {
306
+ try {
307
+ step(g[n](v));
308
+ } catch (e) {
309
+ settle(q[0][3], e);
310
+ }
311
+ }
312
+ function step(r) {
313
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
314
+ }
315
+ function fulfill(value) {
316
+ resume("next", value);
317
+ }
318
+ function reject(value) {
319
+ resume("throw", value);
320
+ }
321
+ function settle(f, v) {
322
+ if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
323
+ }
324
+ }
325
+ function __asyncDelegator(o) {
326
+ var i, p;
327
+ return i = {}, verb("next"), verb("throw", function(e) {
328
+ throw e;
329
+ }), verb("return"), i[Symbol.iterator] = function() {
330
+ return this;
331
+ }, i;
332
+ function verb(n, f) {
333
+ i[n] = o[n] ? function(v) {
334
+ return (p = !p) ? {
335
+ value: __await(o[n](v)),
336
+ done: false
337
+ } : f ? f(v) : v;
338
+ } : f;
339
+ }
340
+ }
341
+ function __asyncValues(o) {
342
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
343
+ var m = o[Symbol.asyncIterator], i;
344
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
345
+ return this;
346
+ }, i);
347
+ function verb(n) {
348
+ i[n] = o[n] && function(v) {
349
+ return new Promise(function(resolve, reject) {
350
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
351
+ });
352
+ };
353
+ }
354
+ function settle(resolve, reject, d, v) {
355
+ Promise.resolve(v).then(function(v$1) {
356
+ resolve({
357
+ value: v$1,
358
+ done: d
359
+ });
360
+ }, reject);
361
+ }
362
+ }
363
+ function __makeTemplateObject(cooked, raw) {
364
+ if (Object.defineProperty) Object.defineProperty(cooked, "raw", { value: raw });
365
+ else cooked.raw = raw;
366
+ return cooked;
367
+ }
368
+ function __importStar(mod) {
369
+ if (mod && mod.__esModule) return mod;
370
+ var result = {};
371
+ if (mod != null) {
372
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
373
+ }
374
+ __setModuleDefault(result, mod);
375
+ return result;
376
+ }
377
+ function __importDefault(mod) {
378
+ return mod && mod.__esModule ? mod : { default: mod };
379
+ }
380
+ function __classPrivateFieldGet(receiver, state, kind, f) {
381
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
382
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
383
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
384
+ }
385
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
386
+ if (kind === "m") throw new TypeError("Private method is not writable");
387
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
388
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
389
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
390
+ }
391
+ function __classPrivateFieldIn(state, receiver) {
392
+ if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
393
+ return typeof state === "function" ? receiver === state : state.has(receiver);
394
+ }
395
+ function __addDisposableResource(env, value, async) {
396
+ if (value !== null && value !== void 0) {
397
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
398
+ var dispose, inner;
399
+ if (async) {
400
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
401
+ dispose = value[Symbol.asyncDispose];
402
+ }
403
+ if (dispose === void 0) {
404
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
405
+ dispose = value[Symbol.dispose];
406
+ if (async) inner = dispose;
407
+ }
408
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
409
+ if (inner) dispose = function() {
410
+ try {
411
+ inner.call(this);
412
+ } catch (e) {
413
+ return Promise.reject(e);
414
+ }
415
+ };
416
+ env.stack.push({
417
+ value,
418
+ dispose,
419
+ async
420
+ });
421
+ } else if (async) env.stack.push({ async: true });
422
+ return value;
423
+ }
424
+ function __disposeResources(env) {
425
+ function fail(e) {
426
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
427
+ env.hasError = true;
428
+ }
429
+ var r, s = 0;
430
+ function next() {
431
+ while (r = env.stack.pop()) try {
432
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
433
+ if (r.dispose) {
434
+ var result = r.dispose.call(r.value);
435
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
436
+ fail(e);
437
+ return next();
438
+ });
439
+ } else s |= 1;
440
+ } catch (e) {
441
+ fail(e);
442
+ }
443
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
444
+ if (env.hasError) throw env.error;
445
+ }
446
+ return next();
447
+ }
448
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
449
+ if (typeof path === "string" && /^\.\.?\//.test(path)) return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
450
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
451
+ });
452
+ return path;
453
+ }
454
+ var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
455
+ var init_tslib_es6 = require_rolldown_runtime.__esm({ "../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs": (() => {
456
+ extendStatics = function(d, b) {
457
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d$1, b$1) {
458
+ d$1.__proto__ = b$1;
459
+ } || function(d$1, b$1) {
460
+ for (var p in b$1) if (Object.prototype.hasOwnProperty.call(b$1, p)) d$1[p] = b$1[p];
461
+ };
462
+ return extendStatics(d, b);
463
+ };
464
+ __assign = function() {
465
+ __assign = Object.assign || function __assign$1(t) {
466
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
467
+ s = arguments[i];
468
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
469
+ }
470
+ return t;
471
+ };
472
+ return __assign.apply(this, arguments);
473
+ };
474
+ __createBinding = Object.create ? (function(o, m, k, k2) {
475
+ if (k2 === void 0) k2 = k;
476
+ var desc = Object.getOwnPropertyDescriptor(m, k);
477
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
478
+ enumerable: true,
479
+ get: function() {
480
+ return m[k];
481
+ }
482
+ };
483
+ Object.defineProperty(o, k2, desc);
484
+ }) : (function(o, m, k, k2) {
485
+ if (k2 === void 0) k2 = k;
486
+ o[k2] = m[k];
487
+ });
488
+ __setModuleDefault = Object.create ? (function(o, v) {
489
+ Object.defineProperty(o, "default", {
490
+ enumerable: true,
491
+ value: v
492
+ });
493
+ }) : function(o, v) {
494
+ o["default"] = v;
495
+ };
496
+ ownKeys = function(o) {
497
+ ownKeys = Object.getOwnPropertyNames || function(o$1) {
498
+ var ar = [];
499
+ for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
500
+ return ar;
501
+ };
502
+ return ownKeys(o);
503
+ };
504
+ _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
505
+ var e = new Error(message);
506
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
507
+ };
508
+ tslib_es6_default = {
509
+ __extends,
510
+ __assign,
511
+ __rest,
512
+ __decorate,
513
+ __param,
514
+ __esDecorate,
515
+ __runInitializers,
516
+ __propKey,
517
+ __setFunctionName,
518
+ __metadata,
519
+ __awaiter,
520
+ __generator,
521
+ __createBinding,
522
+ __exportStar,
523
+ __values,
524
+ __read,
525
+ __spread,
526
+ __spreadArrays,
527
+ __spreadArray,
528
+ __await,
529
+ __asyncGenerator,
530
+ __asyncDelegator,
531
+ __asyncValues,
532
+ __makeTemplateObject,
533
+ __importStar,
534
+ __importDefault,
535
+ __classPrivateFieldGet,
536
+ __classPrivateFieldSet,
537
+ __classPrivateFieldIn,
538
+ __addDisposableResource,
539
+ __disposeResources,
540
+ __rewriteRelativeImportExtension
541
+ };
542
+ }) });
543
+
544
+ //#endregion
545
+ init_tslib_es6();
546
+ Object.defineProperty(exports, 'init_tslib_es6', {
547
+ enumerable: true,
548
+ get: function () {
549
+ return init_tslib_es6;
550
+ }
551
+ });
552
+ Object.defineProperty(exports, 'tslib_es6_exports', {
553
+ enumerable: true,
554
+ get: function () {
555
+ return tslib_es6_exports;
556
+ }
557
+ });
@@ -0,0 +1,31 @@
1
+ //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
2
+ var __assign = function() {
3
+ __assign = Object.assign || function __assign$1(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ function __rest(s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") {
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
17
+ }
18
+ return t;
19
+ }
20
+ function __spreadArray(to, from, pack) {
21
+ if (pack || arguments.length === 2) {
22
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
23
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
24
+ ar[i] = from[i];
25
+ }
26
+ }
27
+ return to.concat(ar || Array.prototype.slice.call(from));
28
+ }
29
+
30
+ //#endregion
31
+ export { __assign, __rest, __spreadArray };
@@ -0,0 +1,22 @@
1
+ //#region ../../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
2
+ /**
3
+ * Assigns a value for a given ref, no matter of the ref format
4
+ * @param {RefObject} ref - a callback function or ref object
5
+ * @param value - a new value
6
+ *
7
+ * @see https://github.com/theKashey/use-callback-ref#assignref
8
+ * @example
9
+ * const refObject = useRef();
10
+ * const refFn = (ref) => {....}
11
+ *
12
+ * assignRef(refObject, "refValue");
13
+ * assignRef(refFn, "refValue");
14
+ */
15
+ function assignRef(ref, value) {
16
+ if (typeof ref === "function") ref(value);
17
+ else if (ref) ref.current = value;
18
+ return ref;
19
+ }
20
+
21
+ //#endregion
22
+ export { assignRef };
@@ -0,0 +1,47 @@
1
+ import { assignRef } from "./assignRef.js";
2
+ import { useCallbackRef } from "./useRef.js";
3
+ import * as React$1 from "react";
4
+
5
+ //#region ../../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
6
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
7
+ var currentValues = /* @__PURE__ */ new WeakMap();
8
+ /**
9
+ * Merges two or more refs together providing a single interface to set their value
10
+ * @param {RefObject|Ref} refs
11
+ * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
12
+ *
13
+ * @see {@link mergeRefs} a version without buit-in memoization
14
+ * @see https://github.com/theKashey/use-callback-ref#usemergerefs
15
+ * @example
16
+ * const Component = React.forwardRef((props, ref) => {
17
+ * const ownRef = useRef();
18
+ * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
19
+ * return <div ref={domRef}>...</div>
20
+ * }
21
+ */
22
+ function useMergeRefs(refs, defaultValue) {
23
+ var callbackRef = useCallbackRef(defaultValue || null, function(newValue) {
24
+ return refs.forEach(function(ref) {
25
+ return assignRef(ref, newValue);
26
+ });
27
+ });
28
+ useIsomorphicLayoutEffect(function() {
29
+ var oldValue = currentValues.get(callbackRef);
30
+ if (oldValue) {
31
+ var prevRefs_1 = new Set(oldValue);
32
+ var nextRefs_1 = new Set(refs);
33
+ var current_1 = callbackRef.current;
34
+ prevRefs_1.forEach(function(ref) {
35
+ if (!nextRefs_1.has(ref)) assignRef(ref, null);
36
+ });
37
+ nextRefs_1.forEach(function(ref) {
38
+ if (!prevRefs_1.has(ref)) assignRef(ref, current_1);
39
+ });
40
+ }
41
+ currentValues.set(callbackRef, refs);
42
+ }, [refs]);
43
+ return callbackRef;
44
+ }
45
+
46
+ //#endregion
47
+ export { useMergeRefs };
@@ -0,0 +1,42 @@
1
+ import { useState } from "react";
2
+
3
+ //#region ../../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
4
+ /**
5
+ * creates a MutableRef with ref change callback
6
+ * @param initialValue - initial ref value
7
+ * @param {Function} callback - a callback to run when value changes
8
+ *
9
+ * @example
10
+ * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
11
+ * ref.current = 1;
12
+ * // prints 0 -> 1
13
+ *
14
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
15
+ * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
16
+ * @returns {MutableRefObject}
17
+ */
18
+ function useCallbackRef(initialValue, callback) {
19
+ var ref = useState(function() {
20
+ return {
21
+ value: initialValue,
22
+ callback,
23
+ facade: {
24
+ get current() {
25
+ return ref.value;
26
+ },
27
+ set current(value) {
28
+ var last = ref.value;
29
+ if (last !== value) {
30
+ ref.value = value;
31
+ ref.callback(value, last);
32
+ }
33
+ }
34
+ }
35
+ };
36
+ })[0];
37
+ ref.callback = callback;
38
+ return ref.facade;
39
+ }
40
+
41
+ //#endregion
42
+ export { useCallbackRef };