@pixpilot/shadcn-ui 0.4.1 → 0.4.3

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