@quantinuum/quantinuum-ui 4.0.0 → 4.0.1-fix-update-radix.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 (241) hide show
  1. package/dist/_virtual/index.js +4 -0
  2. package/dist/_virtual/index.js.map +1 -0
  3. package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
  4. package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  5. package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
  6. package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  7. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js +4 -3
  8. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js.map +1 -1
  9. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js +9 -6
  10. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -1
  11. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +279 -267
  12. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js.map +1 -1
  13. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +26 -0
  14. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +1 -0
  15. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js +114 -92
  16. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js.map +1 -1
  17. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js +255 -138
  18. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js.map +1 -1
  19. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +135 -130
  20. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js.map +1 -1
  21. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js +66 -88
  22. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js.map +1 -1
  23. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js +81 -73
  24. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  25. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +34 -21
  26. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -1
  27. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js +72 -93
  28. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -1
  29. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +297 -254
  30. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js.map +1 -1
  31. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js +81 -73
  32. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  33. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js +8 -6
  34. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +1 -1
  35. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +190 -217
  36. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -1
  37. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +243 -217
  38. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js.map +1 -1
  39. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +26 -25
  40. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js.map +1 -1
  41. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +191 -259
  42. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js.map +1 -1
  43. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js +224 -205
  44. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js.map +1 -1
  45. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js +11 -14
  46. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -1
  47. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js +22 -14
  48. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js.map +1 -1
  49. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js +765 -820
  50. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js.map +1 -1
  51. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js +81 -73
  52. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  53. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js +717 -730
  54. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js.map +1 -1
  55. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js +268 -199
  56. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js.map +1 -1
  57. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js +81 -73
  58. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  59. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js +267 -223
  60. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -1
  61. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js +14 -10
  62. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -1
  63. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js +122 -121
  64. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -1
  65. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +39 -83
  66. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -1
  67. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js +81 -73
  68. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  69. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js +77 -78
  70. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js.map +1 -1
  71. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js +264 -217
  72. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
  73. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +204 -216
  74. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js.map +1 -1
  75. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js +9 -9
  76. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js +1080 -1079
  77. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js.map +1 -1
  78. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js +81 -73
  79. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  80. package/dist/node_modules/@radix-ui/react-separator/dist/index.mjs.js +26 -43
  81. package/dist/node_modules/@radix-ui/react-separator/dist/index.mjs.js.map +1 -1
  82. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  83. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js +140 -112
  84. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js.map +1 -1
  85. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +173 -141
  86. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js.map +1 -1
  87. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js +34 -25
  88. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js.map +1 -1
  89. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js +154 -145
  90. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js.map +1 -1
  91. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +462 -491
  92. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -1
  93. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js +13 -78
  94. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  95. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +9 -15
  96. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -1
  97. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +66 -43
  98. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -1
  99. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +15 -18
  100. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -1
  101. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs.js +18 -0
  102. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs.js.map +1 -0
  103. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +5 -9
  104. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -1
  105. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +12 -18
  106. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js.map +1 -1
  107. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +37 -48
  108. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -1
  109. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +32 -23
  110. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -1
  111. package/dist/node_modules/aria-hidden/dist/es2015/index.js +22 -16
  112. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
  113. package/dist/node_modules/class-variance-authority/dist/index.mjs.js +7 -9
  114. package/dist/node_modules/class-variance-authority/dist/index.mjs.js.map +1 -1
  115. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs.js +4 -0
  116. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs.js.map +1 -0
  117. package/dist/node_modules/cmdk/dist/index.mjs.js +8 -4
  118. package/dist/node_modules/cmdk/dist/index.mjs.js.map +1 -1
  119. package/dist/node_modules/{@radix-ui/react-scroll-area → cmdk}/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +1 -1
  120. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  121. package/dist/node_modules/input-otp/dist/index.mjs.js +1 -1
  122. package/dist/node_modules/input-otp/dist/index.mjs.js.map +1 -1
  123. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +23 -5
  124. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  125. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -2
  126. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  127. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +18 -6
  128. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  129. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +25 -5
  130. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  131. package/dist/node_modules/sonner/dist/index.mjs.js +46 -26
  132. package/dist/node_modules/sonner/dist/index.mjs.js.map +1 -1
  133. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -1
  134. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  135. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +107 -0
  136. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  137. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +78 -0
  138. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  139. package/dist/node_modules/use-sync-external-store/shim/index.js +13 -0
  140. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  141. package/dist/src/index.js +1 -1
  142. package/dist/src/shadcn/ui/accordion.js +7 -7
  143. package/dist/src/shadcn/ui/avatar.js +7 -7
  144. package/dist/src/shadcn/ui/checkbox.js +3 -3
  145. package/dist/src/shadcn/ui/command.js +15 -15
  146. package/dist/src/shadcn/ui/dialog.js +14 -14
  147. package/dist/src/shadcn/ui/dropdown-menu.js +23 -23
  148. package/dist/src/shadcn/ui/hover-card.js +5 -5
  149. package/dist/src/shadcn/ui/label.js +3 -3
  150. package/dist/src/shadcn/ui/navigation-menu.js +15 -15
  151. package/dist/src/shadcn/ui/navigation-menu.js.map +1 -1
  152. package/dist/src/shadcn/ui/popover.js +32 -6
  153. package/dist/src/shadcn/ui/popover.js.map +1 -1
  154. package/dist/src/shadcn/ui/progress.js +3 -3
  155. package/dist/src/shadcn/ui/radio-group.js +5 -5
  156. package/dist/src/shadcn/ui/select.js +19 -19
  157. package/dist/src/shadcn/ui/separator.js +3 -3
  158. package/dist/src/shadcn/ui/sheet.js +14 -14
  159. package/dist/src/shadcn/ui/switch.js +3 -3
  160. package/dist/src/shadcn/ui/tabs.js +8 -8
  161. package/dist/src/shadcn/ui/toggle-group.js +5 -5
  162. package/dist/src/shadcn/ui/toggle.js +3 -3
  163. package/dist/src/shadcn/ui/tooltip.js +7 -7
  164. package/dist/tailwind-manifest.js +12595 -14091
  165. package/dist/types/src/shadcn/ui/command.d.ts +44 -8
  166. package/dist/types/src/shadcn/ui/popover.d.ts +8 -4
  167. package/dist/types/src/shadcn/ui/sheet.d.ts +1 -1
  168. package/package.json +10 -31
  169. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
  170. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  171. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number/dist/index.mjs.js +0 -7
  172. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number/dist/index.mjs.js.map +0 -1
  173. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs.js +0 -12
  174. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +0 -1
  175. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +0 -40
  176. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +0 -1
  177. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.js +0 -64
  178. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +0 -1
  179. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs.js +0 -12
  180. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +0 -1
  181. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.js +0 -132
  182. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +0 -1
  183. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +0 -1
  184. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs.js +0 -90
  185. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +0 -1
  186. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +0 -13
  187. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +0 -1
  188. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +0 -8
  189. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +0 -1
  190. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +0 -37
  191. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +0 -1
  192. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +0 -4
  193. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js.map +0 -1
  194. package/dist/node_modules/cmdk/node_modules/@radix-ui/primitive/dist/index.module.js +0 -9
  195. package/dist/node_modules/cmdk/node_modules/@radix-ui/primitive/dist/index.module.js.map +0 -1
  196. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.module.js +0 -27
  197. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.module.js.map +0 -1
  198. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-context/dist/index.module.js +0 -101
  199. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-context/dist/index.module.js.map +0 -1
  200. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.module.js +0 -214
  201. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.module.js.map +0 -1
  202. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js +0 -233
  203. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js.map +0 -1
  204. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-guards/dist/index.module.js +0 -30
  205. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-guards/dist/index.module.js.map +0 -1
  206. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.module.js +0 -252
  207. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.module.js.map +0 -1
  208. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.module.js +0 -19
  209. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.module.js.map +0 -1
  210. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.module.js +0 -15
  211. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.module.js.map +0 -1
  212. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-presence/dist/index.module.js +0 -131
  213. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-presence/dist/index.module.js.map +0 -1
  214. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.module.js +0 -85
  215. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.module.js.map +0 -1
  216. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.module.js +0 -79
  217. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.module.js.map +0 -1
  218. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js +0 -19
  219. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js.map +0 -1
  220. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js +0 -48
  221. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js.map +0 -1
  222. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js +0 -21
  223. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js.map +0 -1
  224. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js +0 -12
  225. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js.map +0 -1
  226. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
  227. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  228. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -146
  229. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  230. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  231. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  232. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  233. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  234. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -97
  235. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  236. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -9
  237. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  238. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -10
  239. package/dist/node_modules/cmdk/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  240. package/dist/node_modules/command-score/index.js +0 -138
  241. package/dist/node_modules/command-score/index.js.map +0 -1
@@ -1,82 +1,90 @@
1
- import _extends from '../../../../../../@babel/runtime/helpers/esm/extends.js';
2
- import { forwardRef, Children, isValidElement, createElement, cloneElement, Fragment } from 'react';
3
- import { composeRefs as $6ed0406888f73fc4$export$43e446d32b3d21af } from '../../../../../react-compose-refs/dist/index.mjs.js';
1
+ import * as React from 'react';
2
+ import { composeRefs } from '../../../../../react-compose-refs/dist/index.mjs.js';
3
+ import { jsx } from 'react/jsx-runtime';
4
4
 
5
- /* -------------------------------------------------------------------------------------------------
6
- * Slot
7
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
8
- const { children: children , ...slotProps } = props;
9
- const childrenArray = Children.toArray(children);
10
- const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
5
+ // src/slot.tsx
6
+ // @__NO_SIDE_EFFECTS__
7
+ function createSlot(ownerName) {
8
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
9
+ const Slot2 = React.forwardRef((props, forwardedRef) => {
10
+ const { children, ...slotProps } = props;
11
+ const childrenArray = React.Children.toArray(children);
12
+ const slottable = childrenArray.find(isSlottable);
11
13
  if (slottable) {
12
- // the new element to render is the one passed as a child of `Slottable`
13
- const newElement = slottable.props.children;
14
- const newChildren = childrenArray.map((child)=>{
15
- if (child === slottable) {
16
- // because the new element will be the one rendered, we are only interested
17
- // in grabbing its children (`newElement.props.children`)
18
- if (Children.count(newElement) > 1) return Children.only(null);
19
- return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
20
- } else return child;
21
- });
22
- return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
23
- ref: forwardedRef
24
- }), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
14
+ const newElement = slottable.props.children;
15
+ const newChildren = childrenArray.map((child) => {
16
+ if (child === slottable) {
17
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
18
+ return React.isValidElement(newElement) ? newElement.props.children : null;
19
+ } else {
20
+ return child;
21
+ }
22
+ });
23
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
25
24
  }
26
- return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
27
- ref: forwardedRef
28
- }), children);
29
- });
30
- $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
31
- /* -------------------------------------------------------------------------------------------------
32
- * SlotClone
33
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
34
- const { children: children , ...slotProps } = props;
35
- if (/*#__PURE__*/ isValidElement(children)) return /*#__PURE__*/ cloneElement(children, {
36
- ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
37
- ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
38
- });
39
- return Children.count(children) > 1 ? Children.only(null) : null;
40
- });
41
- $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
42
- /* -------------------------------------------------------------------------------------------------
43
- * Slottable
44
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
45
- return /*#__PURE__*/ createElement(Fragment, null, children);
46
- };
47
- /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
48
- return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
25
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
26
+ });
27
+ Slot2.displayName = `${ownerName}.Slot`;
28
+ return Slot2;
49
29
  }
50
- function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
51
- // all child props should override
52
- const overrideProps = {
53
- ...childProps
54
- };
55
- for(const propName in childProps){
56
- const slotPropValue = slotProps[propName];
57
- const childPropValue = childProps[propName];
58
- const isHandler = /^on[A-Z]/.test(propName);
59
- if (isHandler) {
60
- // if the handler exists on both, we compose them
61
- if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{
62
- childPropValue(...args);
63
- slotPropValue(...args);
64
- };
65
- else if (slotPropValue) overrideProps[propName] = slotPropValue;
66
- } else if (propName === 'style') overrideProps[propName] = {
67
- ...slotPropValue,
68
- ...childPropValue
30
+ // @__NO_SIDE_EFFECTS__
31
+ function createSlotClone(ownerName) {
32
+ const SlotClone = React.forwardRef((props, forwardedRef) => {
33
+ const { children, ...slotProps } = props;
34
+ if (React.isValidElement(children)) {
35
+ const childrenRef = getElementRef(children);
36
+ const props2 = mergeProps(slotProps, children.props);
37
+ if (children.type !== React.Fragment) {
38
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
39
+ }
40
+ return React.cloneElement(children, props2);
41
+ }
42
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
43
+ });
44
+ SlotClone.displayName = `${ownerName}.SlotClone`;
45
+ return SlotClone;
46
+ }
47
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
48
+ function isSlottable(child) {
49
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
50
+ }
51
+ function mergeProps(slotProps, childProps) {
52
+ const overrideProps = { ...childProps };
53
+ for (const propName in childProps) {
54
+ const slotPropValue = slotProps[propName];
55
+ const childPropValue = childProps[propName];
56
+ const isHandler = /^on[A-Z]/.test(propName);
57
+ if (isHandler) {
58
+ if (slotPropValue && childPropValue) {
59
+ overrideProps[propName] = (...args) => {
60
+ const result = childPropValue(...args);
61
+ slotPropValue(...args);
62
+ return result;
69
63
  };
70
- else if (propName === 'className') overrideProps[propName] = [
71
- slotPropValue,
72
- childPropValue
73
- ].filter(Boolean).join(' ');
64
+ } else if (slotPropValue) {
65
+ overrideProps[propName] = slotPropValue;
66
+ }
67
+ } else if (propName === "style") {
68
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
69
+ } else if (propName === "className") {
70
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
74
71
  }
75
- return {
76
- ...slotProps,
77
- ...overrideProps
78
- };
72
+ }
73
+ return { ...slotProps, ...overrideProps };
74
+ }
75
+ function getElementRef(element) {
76
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
77
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
78
+ if (mayWarn) {
79
+ return element.ref;
80
+ }
81
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
82
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
83
+ if (mayWarn) {
84
+ return element.props.ref;
85
+ }
86
+ return element.props.ref || element.ref;
79
87
  }
80
88
 
81
- export { $5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable };
89
+ export { createSlot };
82
90
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$9IrjX$forwardRef","$9IrjX$Children","$9IrjX$isValidElement","$9IrjX$createElement","$9IrjX$babelruntimehelpersesmextends","$9IrjX$cloneElement","$9IrjX$composeRefs","$9IrjX$Fragment"],"mappings":";;;;AAOA;AACA;AACA,qGAA0G,MAAC,yCAAyC,iBAAiBA,UAAiB,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG;AAC9M,IAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AACxD,IAAI,MAAM,aAAa,GAAGC,QAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAC5E,IAAI,IAAI,SAAS,EAAE;AACnB;AACA,QAAQ,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,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AAc,CAAC,GAAG,IAAI,CAAC,CAAC;AACxC,gBAAgB,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC;AACvC,aAAa,CAAC;AACd,iBAAiB,IAAI,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;AAC5E,SAAS,MAAM,IAAI,QAAQ,KAAK,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACnE,YAAY,GAAG,aAAa;AAC5B,YAAY,GAAG,cAAc;AAC7B,SAAS,CAAC;AACV,aAAa,IAAI,QAAQ,KAAK,WAAW,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACrE,YAAY,aAAa;AACzB,YAAY,cAAc;AAC1B,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,OAAO;AACX,QAAQ,GAAG,SAAS;AACpB,QAAQ,GAAG,aAAa;AACxB,KAAK,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;AAAA;AAIA;AACA,SAAS,UAAU,CAAC,SAAS,EAAE;AAC/B,EAAE,MAAM,SAAS,mBAAmB,eAAe,CAAC,SAAS,CAAC,CAAC;AAC/D,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AAC1D,IAAI,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AAC7C,IAAI,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AACtD,IAAI,IAAI,SAAS,EAAE;AACnB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;AAClD,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AACvD,QAAQ,IAAI,KAAK,KAAK,SAAS,EAAE;AACjC,UAAU,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI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E,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;AAC7B,GAAG;AACH,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;AAC1C;;;;"}
@@ -1,96 +1,95 @@
1
- import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
- import { forwardRef, createElement } from 'react';
3
- import { createContextScope as $c512c27ab02ef895$export$50c7b4e9d9f19c1 } from '../../react-context/dist/index.mjs.js';
4
- import { Primitive as $8927f6f2acc4f386$export$250ffa63cdc0d034 } from '../../react-primitive/dist/index.mjs.js';
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { createContextScope } from '../../react-context/dist/index.mjs.js';
4
+ import { Primitive } from '../../react-primitive/dist/index.mjs.js';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
- /* -------------------------------------------------------------------------------------------------
7
- * Progress
8
- * -----------------------------------------------------------------------------------------------*/ const $67824d98245208a0$var$PROGRESS_NAME = 'Progress';
9
- const $67824d98245208a0$var$DEFAULT_MAX = 100;
10
- const [$67824d98245208a0$var$createProgressContext, $67824d98245208a0$export$388eb2d8f6d3261f] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($67824d98245208a0$var$PROGRESS_NAME);
11
- const [$67824d98245208a0$var$ProgressProvider, $67824d98245208a0$var$useProgressContext] = $67824d98245208a0$var$createProgressContext($67824d98245208a0$var$PROGRESS_NAME);
12
- const $67824d98245208a0$export$b25a304ec7d746bb = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13
- const { __scopeProgress: __scopeProgress , value: valueProp , max: maxProp , getValueLabel: getValueLabel = $67824d98245208a0$var$defaultGetValueLabel , ...progressProps } = props;
14
- const max = $67824d98245208a0$var$isValidMaxNumber(maxProp) ? maxProp : $67824d98245208a0$var$DEFAULT_MAX;
15
- const value = $67824d98245208a0$var$isValidValueNumber(valueProp, max) ? valueProp : null;
16
- const valueLabel = $67824d98245208a0$var$isNumber(value) ? getValueLabel(value, max) : undefined;
17
- return /*#__PURE__*/ createElement($67824d98245208a0$var$ProgressProvider, {
18
- scope: __scopeProgress,
19
- value: value,
20
- max: max
21
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
7
+ var PROGRESS_NAME = "Progress";
8
+ var DEFAULT_MAX = 100;
9
+ var [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
10
+ var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
11
+ var Progress = React.forwardRef(
12
+ (props, forwardedRef) => {
13
+ const {
14
+ __scopeProgress,
15
+ value: valueProp = null,
16
+ max: maxProp,
17
+ getValueLabel = defaultGetValueLabel,
18
+ ...progressProps
19
+ } = props;
20
+ if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {
21
+ console.error(getInvalidMaxError(`${maxProp}`, "Progress"));
22
+ }
23
+ const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
24
+ if (valueProp !== null && !isValidValueNumber(valueProp, max)) {
25
+ console.error(getInvalidValueError(`${valueProp}`, "Progress"));
26
+ }
27
+ const value = isValidValueNumber(valueProp, max) ? valueProp : null;
28
+ const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
29
+ return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(
30
+ Primitive.div,
31
+ {
22
32
  "aria-valuemax": max,
23
33
  "aria-valuemin": 0,
24
- "aria-valuenow": $67824d98245208a0$var$isNumber(value) ? value : undefined,
34
+ "aria-valuenow": isNumber(value) ? value : void 0,
25
35
  "aria-valuetext": valueLabel,
26
36
  role: "progressbar",
27
- "data-state": $67824d98245208a0$var$getProgressState(value, max),
28
- "data-value": value !== null && value !== void 0 ? value : undefined,
29
- "data-max": max
30
- }, progressProps, {
37
+ "data-state": getProgressState(value, max),
38
+ "data-value": value ?? void 0,
39
+ "data-max": max,
40
+ ...progressProps,
31
41
  ref: forwardedRef
32
- })));
33
- });
34
- $67824d98245208a0$export$b25a304ec7d746bb.propTypes = {
35
- max (props, propName, componentName) {
36
- const propValue = props[propName];
37
- const strVal = String(propValue);
38
- if (propValue && !$67824d98245208a0$var$isValidMaxNumber(propValue)) return new Error($67824d98245208a0$var$getInvalidMaxError(strVal, componentName));
39
- return null;
40
- },
41
- value (props, propName, componentName) {
42
- const valueProp = props[propName];
43
- const strVal = String(valueProp);
44
- const max = $67824d98245208a0$var$isValidMaxNumber(props.max) ? props.max : $67824d98245208a0$var$DEFAULT_MAX;
45
- if (valueProp != null && !$67824d98245208a0$var$isValidValueNumber(valueProp, max)) return new Error($67824d98245208a0$var$getInvalidValueError(strVal, componentName));
46
- return null;
47
- }
48
- };
49
- /* -------------------------------------------------------------------------------------------------
50
- * ProgressIndicator
51
- * -----------------------------------------------------------------------------------------------*/ const $67824d98245208a0$var$INDICATOR_NAME = 'ProgressIndicator';
52
- const $67824d98245208a0$export$2b776f7e7ee60dbd = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
53
- var _context$value;
54
- const { __scopeProgress: __scopeProgress , ...indicatorProps } = props;
55
- const context = $67824d98245208a0$var$useProgressContext($67824d98245208a0$var$INDICATOR_NAME, __scopeProgress);
56
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
57
- "data-state": $67824d98245208a0$var$getProgressState(context.value, context.max),
58
- "data-value": (_context$value = context.value) !== null && _context$value !== void 0 ? _context$value : undefined,
59
- "data-max": context.max
60
- }, indicatorProps, {
42
+ }
43
+ ) });
44
+ }
45
+ );
46
+ Progress.displayName = PROGRESS_NAME;
47
+ var INDICATOR_NAME = "ProgressIndicator";
48
+ var ProgressIndicator = React.forwardRef(
49
+ (props, forwardedRef) => {
50
+ const { __scopeProgress, ...indicatorProps } = props;
51
+ const context = useProgressContext(INDICATOR_NAME, __scopeProgress);
52
+ return /* @__PURE__ */ jsx(
53
+ Primitive.div,
54
+ {
55
+ "data-state": getProgressState(context.value, context.max),
56
+ "data-value": context.value ?? void 0,
57
+ "data-max": context.max,
58
+ ...indicatorProps,
61
59
  ref: forwardedRef
62
- }));
63
- });
64
- /* ---------------------------------------------------------------------------------------------- */ function $67824d98245208a0$var$defaultGetValueLabel(value, max) {
65
- return `${Math.round(value / max * 100)}%`;
60
+ }
61
+ );
62
+ }
63
+ );
64
+ ProgressIndicator.displayName = INDICATOR_NAME;
65
+ function defaultGetValueLabel(value, max) {
66
+ return `${Math.round(value / max * 100)}%`;
67
+ }
68
+ function getProgressState(value, maxValue) {
69
+ return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
66
70
  }
67
- function $67824d98245208a0$var$getProgressState(value, maxValue) {
68
- return value == null ? 'indeterminate' : value === maxValue ? 'complete' : 'loading';
71
+ function isNumber(value) {
72
+ return typeof value === "number";
69
73
  }
70
- function $67824d98245208a0$var$isNumber(value) {
71
- return typeof value === 'number';
74
+ function isValidMaxNumber(max) {
75
+ return isNumber(max) && !isNaN(max) && max > 0;
72
76
  }
73
- function $67824d98245208a0$var$isValidMaxNumber(max) {
74
- // prettier-ignore
75
- return $67824d98245208a0$var$isNumber(max) && !isNaN(max) && max > 0;
77
+ function isValidValueNumber(value, max) {
78
+ return isNumber(value) && !isNaN(value) && value <= max && value >= 0;
76
79
  }
77
- function $67824d98245208a0$var$isValidValueNumber(value, max) {
78
- // prettier-ignore
79
- return $67824d98245208a0$var$isNumber(value) && !isNaN(value) && value <= max && value >= 0;
80
- } // Split this out for clearer readability of the error message.
81
- function $67824d98245208a0$var$getInvalidMaxError(propValue, componentName) {
82
- return `Invalid prop \`max\` of value \`${propValue}\` supplied to \`${componentName}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${$67824d98245208a0$var$DEFAULT_MAX}\`.`;
80
+ function getInvalidMaxError(propValue, componentName) {
81
+ return `Invalid prop \`max\` of value \`${propValue}\` supplied to \`${componentName}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
83
82
  }
84
- function $67824d98245208a0$var$getInvalidValueError(propValue, componentName) {
85
- return `Invalid prop \`value\` of value \`${propValue}\` supplied to \`${componentName}\`. The \`value\` prop must be:
83
+ function getInvalidValueError(propValue, componentName) {
84
+ return `Invalid prop \`value\` of value \`${propValue}\` supplied to \`${componentName}\`. The \`value\` prop must be:
86
85
  - a positive number
87
- - less than the value passed to \`max\` (or ${$67824d98245208a0$var$DEFAULT_MAX} if no \`max\` prop is set)
88
- - \`null\` if the progress is indeterminate.
86
+ - less than the value passed to \`max\` (or ${DEFAULT_MAX} if no \`max\` prop is set)
87
+ - \`null\` or \`undefined\` if the progress is indeterminate.
89
88
 
90
89
  Defaulting to \`null\`.`;
91
90
  }
92
- const $67824d98245208a0$export$be92b6f5f03c0fe9 = $67824d98245208a0$export$b25a304ec7d746bb;
93
- const $67824d98245208a0$export$adb584737d712b70 = $67824d98245208a0$export$2b776f7e7ee60dbd;
91
+ var Root = Progress;
92
+ var Indicator = ProgressIndicator;
94
93
 
95
- export { $67824d98245208a0$export$adb584737d712b70 as Indicator, $67824d98245208a0$export$b25a304ec7d746bb as Progress, $67824d98245208a0$export$2b776f7e7ee60dbd as ProgressIndicator, $67824d98245208a0$export$be92b6f5f03c0fe9 as Root, $67824d98245208a0$export$388eb2d8f6d3261f as createProgressScope };
94
+ export { Indicator, Progress, ProgressIndicator, Root, createProgressScope };
96
95
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-progress/dist/index.mjs"],"sourcesContent":["import $k03wI$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $k03wI$forwardRef, createElement as $k03wI$createElement} from \"react\";\nimport {createContextScope as $k03wI$createContextScope} from \"@radix-ui/react-context\";\nimport {Primitive as $k03wI$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Progress\n * -----------------------------------------------------------------------------------------------*/ const $67824d98245208a0$var$PROGRESS_NAME = 'Progress';\nconst $67824d98245208a0$var$DEFAULT_MAX = 100;\nconst [$67824d98245208a0$var$createProgressContext, $67824d98245208a0$export$388eb2d8f6d3261f] = $k03wI$createContextScope($67824d98245208a0$var$PROGRESS_NAME);\nconst [$67824d98245208a0$var$ProgressProvider, $67824d98245208a0$var$useProgressContext] = $67824d98245208a0$var$createProgressContext($67824d98245208a0$var$PROGRESS_NAME);\nconst $67824d98245208a0$export$b25a304ec7d746bb = /*#__PURE__*/ $k03wI$forwardRef((props, forwardedRef)=>{\n const { __scopeProgress: __scopeProgress , value: valueProp , max: maxProp , getValueLabel: getValueLabel = $67824d98245208a0$var$defaultGetValueLabel , ...progressProps } = props;\n const max = $67824d98245208a0$var$isValidMaxNumber(maxProp) ? maxProp : $67824d98245208a0$var$DEFAULT_MAX;\n const value = $67824d98245208a0$var$isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = $67824d98245208a0$var$isNumber(value) ? getValueLabel(value, max) : undefined;\n return /*#__PURE__*/ $k03wI$createElement($67824d98245208a0$var$ProgressProvider, {\n scope: __scopeProgress,\n value: value,\n max: max\n }, /*#__PURE__*/ $k03wI$createElement($k03wI$Primitive.div, $k03wI$babelruntimehelpersesmextends({\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": $67824d98245208a0$var$isNumber(value) ? value : undefined,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": $67824d98245208a0$var$getProgressState(value, max),\n \"data-value\": value !== null && value !== void 0 ? value : undefined,\n \"data-max\": max\n }, progressProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($67824d98245208a0$export$b25a304ec7d746bb, {\n displayName: $67824d98245208a0$var$PROGRESS_NAME\n});\n$67824d98245208a0$export$b25a304ec7d746bb.propTypes = {\n max (props, propName, componentName) {\n const propValue = props[propName];\n const strVal = String(propValue);\n if (propValue && !$67824d98245208a0$var$isValidMaxNumber(propValue)) return new Error($67824d98245208a0$var$getInvalidMaxError(strVal, componentName));\n return null;\n },\n value (props, propName, componentName) {\n const valueProp = props[propName];\n const strVal = String(valueProp);\n const max = $67824d98245208a0$var$isValidMaxNumber(props.max) ? props.max : $67824d98245208a0$var$DEFAULT_MAX;\n if (valueProp != null && !$67824d98245208a0$var$isValidValueNumber(valueProp, max)) return new Error($67824d98245208a0$var$getInvalidValueError(strVal, componentName));\n return null;\n }\n};\n/* -------------------------------------------------------------------------------------------------\n * ProgressIndicator\n * -----------------------------------------------------------------------------------------------*/ const $67824d98245208a0$var$INDICATOR_NAME = 'ProgressIndicator';\nconst $67824d98245208a0$export$2b776f7e7ee60dbd = /*#__PURE__*/ $k03wI$forwardRef((props, forwardedRef)=>{\n var _context$value;\n const { __scopeProgress: __scopeProgress , ...indicatorProps } = props;\n const context = $67824d98245208a0$var$useProgressContext($67824d98245208a0$var$INDICATOR_NAME, __scopeProgress);\n return /*#__PURE__*/ $k03wI$createElement($k03wI$Primitive.div, $k03wI$babelruntimehelpersesmextends({\n \"data-state\": $67824d98245208a0$var$getProgressState(context.value, context.max),\n \"data-value\": (_context$value = context.value) !== null && _context$value !== void 0 ? _context$value : undefined,\n \"data-max\": context.max\n }, indicatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($67824d98245208a0$export$2b776f7e7ee60dbd, {\n displayName: $67824d98245208a0$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ function $67824d98245208a0$var$defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction $67824d98245208a0$var$getProgressState(value, maxValue) {\n return value == null ? 'indeterminate' : value === maxValue ? 'complete' : 'loading';\n}\nfunction $67824d98245208a0$var$isNumber(value) {\n return typeof value === 'number';\n}\nfunction $67824d98245208a0$var$isValidMaxNumber(max) {\n // prettier-ignore\n return $67824d98245208a0$var$isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction $67824d98245208a0$var$isValidValueNumber(value, max) {\n // prettier-ignore\n return $67824d98245208a0$var$isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n} // Split this out for clearer readability of the error message.\nfunction $67824d98245208a0$var$getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${$67824d98245208a0$var$DEFAULT_MAX}\\`.`;\n}\nfunction $67824d98245208a0$var$getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${$67824d98245208a0$var$DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nconst $67824d98245208a0$export$be92b6f5f03c0fe9 = $67824d98245208a0$export$b25a304ec7d746bb;\nconst $67824d98245208a0$export$adb584737d712b70 = $67824d98245208a0$export$2b776f7e7ee60dbd;\n\n\n\n\nexport {$67824d98245208a0$export$388eb2d8f6d3261f as createProgressScope, $67824d98245208a0$export$b25a304ec7d746bb as Progress, $67824d98245208a0$export$2b776f7e7ee60dbd as ProgressIndicator, $67824d98245208a0$export$be92b6f5f03c0fe9 as Root, $67824d98245208a0$export$adb584737d712b70 as Indicator};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$k03wI$createContextScope","$k03wI$forwardRef","$k03wI$createElement","$k03wI$Primitive","$k03wI$babelruntimehelpersesmextends"],"mappings":";;;;;AASA;AACA;AACA,qGAAqG,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAC5J,MAAM,iCAAiC,GAAG,GAAG,CAAC;AACzC,MAAC,CAAC,2CAA2C,EAAE,yCAAyC,CAAC,GAAGA,wCAAyB,CAAC,mCAAmC,EAAE;AAChK,MAAM,CAAC,sCAAsC,EAAE,wCAAwC,CAAC,GAAG,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G,EAAE;AAC9D;AACA,IAAI,OAAO,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;AAChG,CAAC;AACD,SAAS,wCAAwC,CAAC,SAAS,EAAE,aAAa,EAAE;AAC5E,IAAI,OAAO,CAAC,gCAAgC,EAAE,SAAS,CAAC,iBAAiB,EAAE,aAAa,CAAC,sEAAsE,EAAE,iCAAiC,CAAC,GAAG,CAAC,CAAC;AACxM,CAAC;AACD,SAAS,0CAA0C,CAAC,SAAS,EAAE,aAAa,EAAE;AAC9E,IAAI,OAAO,CAAC,kCAAkC,EAAE,SAAS,CAAC,iBAAiB,EAAE,aAAa,CAAC;AAC3F;AACA,8CAA8C,EAAE,iCAAiC,CAAC;AAClF;AACA;AACA,uBAAuB,CAAC,CAAC;AACzB,CAAC;AACI,MAAC,yCAAyC,GAAG,0CAA0C;AACvF,MAAC,yCAAyC,GAAG;;;;"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-progress/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;;;AAOA;AACA;AACG;AACH;AACG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG;AACA;;"}