@yamada-ui/react 2.2.5-dev-20260727050304 → 2.2.5-dev-20260727072934

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 (312) hide show
  1. package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
  2. package/dist/cjs/components/action-bar/action-bar.cjs.map +1 -1
  3. package/dist/cjs/components/airy/airy.cjs.map +1 -1
  4. package/dist/cjs/components/alert/alert.cjs.map +1 -1
  5. package/dist/cjs/components/alpha-slider/alpha-slider.cjs.map +1 -1
  6. package/dist/cjs/components/autocomplete/autocomplete.cjs.map +1 -1
  7. package/dist/cjs/components/autocomplete/use-autocomplete.cjs.map +1 -1
  8. package/dist/cjs/components/avatar/avatar-group.cjs.map +1 -1
  9. package/dist/cjs/components/avatar/avatar.cjs.map +1 -1
  10. package/dist/cjs/components/blockquote/blockquote.cjs.map +1 -1
  11. package/dist/cjs/components/breadcrumb/breadcrumb.cjs.map +1 -1
  12. package/dist/cjs/components/button/button-group.cjs.map +1 -1
  13. package/dist/cjs/components/button/button.cjs.map +1 -1
  14. package/dist/cjs/components/calendar/calendar.cjs.map +1 -1
  15. package/dist/cjs/components/calendar/use-calendar.cjs.map +1 -1
  16. package/dist/cjs/components/carousel/carousel.cjs.map +1 -1
  17. package/dist/cjs/components/chart/cartesian-chart.cjs.map +1 -1
  18. package/dist/cjs/components/chart/chart.cjs.map +1 -1
  19. package/dist/cjs/components/chart/polar-chart.cjs.map +1 -1
  20. package/dist/cjs/components/checkbox/checkbox-group.cjs.map +1 -1
  21. package/dist/cjs/components/checkbox/checkbox.cjs.map +1 -1
  22. package/dist/cjs/components/checkbox-card/checkbox-card-group.cjs.map +1 -1
  23. package/dist/cjs/components/checkbox-card/checkbox-card.cjs.map +1 -1
  24. package/dist/cjs/components/circle-progress/circle-progress.cjs.map +1 -1
  25. package/dist/cjs/components/collapse/collapse.cjs.map +1 -1
  26. package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
  27. package/dist/cjs/components/color-selector/color-selector.cjs.map +1 -1
  28. package/dist/cjs/components/color-swatch/color-swatch-group.cjs.map +1 -1
  29. package/dist/cjs/components/color-swatch/color-swatch.cjs.map +1 -1
  30. package/dist/cjs/components/data-list/data-list.cjs.map +1 -1
  31. package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
  32. package/dist/cjs/components/date-picker/use-date-picker.cjs.map +1 -1
  33. package/dist/cjs/components/drawer/drawer.cjs.map +1 -1
  34. package/dist/cjs/components/dropzone/dropzone.cjs.map +1 -1
  35. package/dist/cjs/components/editable/editable.cjs.map +1 -1
  36. package/dist/cjs/components/empty-state/empty-state.cjs.map +1 -1
  37. package/dist/cjs/components/fade/fade.cjs.map +1 -1
  38. package/dist/cjs/components/fade-scale/fade-scale.cjs.map +1 -1
  39. package/dist/cjs/components/field/field.cjs.map +1 -1
  40. package/dist/cjs/components/fieldset/fieldset.cjs.map +1 -1
  41. package/dist/cjs/components/file-input/file-input.cjs.map +1 -1
  42. package/dist/cjs/components/flip/flip.cjs.map +1 -1
  43. package/dist/cjs/components/focus-lock/focus-lock.cjs.map +1 -1
  44. package/dist/cjs/components/form/form.cjs.map +1 -1
  45. package/dist/cjs/components/format/format-byte.cjs.map +1 -1
  46. package/dist/cjs/components/format/format-date-time.cjs.map +1 -1
  47. package/dist/cjs/components/format/format-number.cjs.map +1 -1
  48. package/dist/cjs/components/highlight/highlight.cjs.map +1 -1
  49. package/dist/cjs/components/hue-slider/hue-slider.cjs.map +1 -1
  50. package/dist/cjs/components/icon/icons/circle-euro-icon.cjs +14 -0
  51. package/dist/cjs/components/icon/icons/circle-euro-icon.cjs.map +1 -0
  52. package/dist/cjs/components/icon/icons/index.cjs +9 -3
  53. package/dist/cjs/components/icon/icons/index.cjs.map +1 -1
  54. package/dist/cjs/components/icon/icons/scan-box-icon.cjs +14 -0
  55. package/dist/cjs/components/icon/icons/scan-box-icon.cjs.map +1 -0
  56. package/dist/cjs/components/icon/icons/server-plus-icon.cjs +14 -0
  57. package/dist/cjs/components/icon/icons/server-plus-icon.cjs.map +1 -0
  58. package/dist/cjs/components/icon/index.cjs +6 -2
  59. package/dist/cjs/components/indicator/indicator.cjs.map +1 -1
  60. package/dist/cjs/components/infinite-scroll-area/infinite-scroll-area.cjs.map +1 -1
  61. package/dist/cjs/components/input/input-group.cjs.map +1 -1
  62. package/dist/cjs/components/link-box/link-box.cjs.map +1 -1
  63. package/dist/cjs/components/list/list.cjs.map +1 -1
  64. package/dist/cjs/components/loading/audio.cjs.map +1 -1
  65. package/dist/cjs/components/loading/background.cjs.map +1 -1
  66. package/dist/cjs/components/loading/circles.cjs.map +1 -1
  67. package/dist/cjs/components/loading/dots.cjs.map +1 -1
  68. package/dist/cjs/components/loading/grid.cjs.map +1 -1
  69. package/dist/cjs/components/loading/loading-provider.cjs.map +1 -1
  70. package/dist/cjs/components/loading/oval.cjs.map +1 -1
  71. package/dist/cjs/components/loading/page.cjs.map +1 -1
  72. package/dist/cjs/components/loading/puff.cjs.map +1 -1
  73. package/dist/cjs/components/loading/rings.cjs.map +1 -1
  74. package/dist/cjs/components/loading/screen.cjs.map +1 -1
  75. package/dist/cjs/components/loading/suspense.cjs.map +1 -1
  76. package/dist/cjs/components/menu/menu.cjs.map +1 -1
  77. package/dist/cjs/components/menu/use-menu.cjs.map +1 -1
  78. package/dist/cjs/components/modal/modal.cjs.map +1 -1
  79. package/dist/cjs/components/native-accordion/native-accordion.cjs.map +1 -1
  80. package/dist/cjs/components/native-popover/native-popover.cjs.map +1 -1
  81. package/dist/cjs/components/native-select/native-select.cjs.map +1 -1
  82. package/dist/cjs/components/native-select/use-native-select.cjs.map +1 -1
  83. package/dist/cjs/components/native-table/native-table.cjs.map +1 -1
  84. package/dist/cjs/components/notice/notice-provider.cjs.map +1 -1
  85. package/dist/cjs/components/notice/notice.cjs.map +1 -1
  86. package/dist/cjs/components/notice/use-notice.cjs.map +1 -1
  87. package/dist/cjs/components/number-input/number-input.cjs.map +1 -1
  88. package/dist/cjs/components/pagination/pagination.cjs.map +1 -1
  89. package/dist/cjs/components/password-input/password-input.cjs.map +1 -1
  90. package/dist/cjs/components/password-input/strength-meter.cjs.map +1 -1
  91. package/dist/cjs/components/picture/picture.cjs.map +1 -1
  92. package/dist/cjs/components/pin-input/pin-input.cjs.map +1 -1
  93. package/dist/cjs/components/popover/popover.cjs +8 -5
  94. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  95. package/dist/cjs/components/progress/progress.cjs.map +1 -1
  96. package/dist/cjs/components/qr-code/qr-code.cjs.map +1 -1
  97. package/dist/cjs/components/radio/radio-group.cjs.map +1 -1
  98. package/dist/cjs/components/radio/radio.cjs.map +1 -1
  99. package/dist/cjs/components/radio-card/radio-card-group.cjs.map +1 -1
  100. package/dist/cjs/components/radio-card/radio-card.cjs.map +1 -1
  101. package/dist/cjs/components/rating/rating.cjs.map +1 -1
  102. package/dist/cjs/components/reorder/reorder.cjs.map +1 -1
  103. package/dist/cjs/components/resizable/resizable.cjs.map +1 -1
  104. package/dist/cjs/components/ripple/ripple.cjs.map +1 -1
  105. package/dist/cjs/components/rotate/rotate.cjs.map +1 -1
  106. package/dist/cjs/components/saturation-slider/saturation-slider.cjs.map +1 -1
  107. package/dist/cjs/components/saturation-slider/use-saturation-slider.cjs.map +1 -1
  108. package/dist/cjs/components/segmented-control/segmented-control.cjs.map +1 -1
  109. package/dist/cjs/components/select/select.cjs.map +1 -1
  110. package/dist/cjs/components/select/use-select.cjs.map +1 -1
  111. package/dist/cjs/components/sidebar/sidebar.cjs.map +1 -1
  112. package/dist/cjs/components/skeleton/skeleton-text.cjs.map +1 -1
  113. package/dist/cjs/components/slide/slide.cjs.map +1 -1
  114. package/dist/cjs/components/slide-fade/slide-fade.cjs.map +1 -1
  115. package/dist/cjs/components/slider/slider.cjs.map +1 -1
  116. package/dist/cjs/components/slot/slot.cjs.map +1 -1
  117. package/dist/cjs/components/snacks/snacks.cjs.map +1 -1
  118. package/dist/cjs/components/stack/stack.cjs.map +1 -1
  119. package/dist/cjs/components/stack/z-stack.cjs.map +1 -1
  120. package/dist/cjs/components/stat/stat.cjs.map +1 -1
  121. package/dist/cjs/components/status/status.cjs.map +1 -1
  122. package/dist/cjs/components/steps/steps.cjs.map +1 -1
  123. package/dist/cjs/components/switch/switch.cjs.map +1 -1
  124. package/dist/cjs/components/table/table.cjs.map +1 -1
  125. package/dist/cjs/components/tabs/tabs.cjs.map +1 -1
  126. package/dist/cjs/components/tag/tag.cjs.map +1 -1
  127. package/dist/cjs/components/timeline/timeline.cjs.map +1 -1
  128. package/dist/cjs/components/tip/tip.cjs.map +1 -1
  129. package/dist/cjs/components/toggle/toggle-group.cjs.map +1 -1
  130. package/dist/cjs/components/tooltip/tooltip.cjs.map +1 -1
  131. package/dist/cjs/components/tree/tree.cjs.map +1 -1
  132. package/dist/cjs/components/tree/use-tree.cjs.map +1 -1
  133. package/dist/cjs/core/components/create-component.cjs.map +1 -1
  134. package/dist/cjs/core/system/breakpoint.cjs.map +1 -1
  135. package/dist/cjs/core/system/environment-provider.cjs.map +1 -1
  136. package/dist/cjs/core/system/styled.cjs.map +1 -1
  137. package/dist/cjs/core/system/theme-provider.cjs.map +1 -1
  138. package/dist/cjs/hooks/use-async-callback/index.cjs.map +1 -1
  139. package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs.map +1 -1
  140. package/dist/cjs/hooks/use-combobox/index.cjs.map +1 -1
  141. package/dist/cjs/hooks/use-field-sizing/index.cjs.map +1 -1
  142. package/dist/cjs/hooks/use-outside-click/index.cjs.map +1 -1
  143. package/dist/cjs/index.cjs +9 -3
  144. package/dist/cjs/providers/ui-provider/ui-provider.cjs.map +1 -1
  145. package/dist/cjs/utils/store.cjs.map +1 -1
  146. package/dist/esm/components/accordion/accordion.js.map +1 -1
  147. package/dist/esm/components/action-bar/action-bar.js.map +1 -1
  148. package/dist/esm/components/airy/airy.js.map +1 -1
  149. package/dist/esm/components/alert/alert.js.map +1 -1
  150. package/dist/esm/components/alpha-slider/alpha-slider.js.map +1 -1
  151. package/dist/esm/components/autocomplete/autocomplete.js.map +1 -1
  152. package/dist/esm/components/autocomplete/use-autocomplete.js.map +1 -1
  153. package/dist/esm/components/avatar/avatar-group.js.map +1 -1
  154. package/dist/esm/components/avatar/avatar.js.map +1 -1
  155. package/dist/esm/components/blockquote/blockquote.js.map +1 -1
  156. package/dist/esm/components/breadcrumb/breadcrumb.js.map +1 -1
  157. package/dist/esm/components/button/button-group.js.map +1 -1
  158. package/dist/esm/components/button/button.js.map +1 -1
  159. package/dist/esm/components/calendar/calendar.js.map +1 -1
  160. package/dist/esm/components/calendar/use-calendar.js.map +1 -1
  161. package/dist/esm/components/carousel/carousel.js.map +1 -1
  162. package/dist/esm/components/chart/cartesian-chart.js.map +1 -1
  163. package/dist/esm/components/chart/chart.js.map +1 -1
  164. package/dist/esm/components/chart/polar-chart.js.map +1 -1
  165. package/dist/esm/components/checkbox/checkbox-group.js.map +1 -1
  166. package/dist/esm/components/checkbox/checkbox.js.map +1 -1
  167. package/dist/esm/components/checkbox-card/checkbox-card-group.js.map +1 -1
  168. package/dist/esm/components/checkbox-card/checkbox-card.js.map +1 -1
  169. package/dist/esm/components/circle-progress/circle-progress.js.map +1 -1
  170. package/dist/esm/components/collapse/collapse.js.map +1 -1
  171. package/dist/esm/components/color-picker/color-picker.js.map +1 -1
  172. package/dist/esm/components/color-selector/color-selector.js.map +1 -1
  173. package/dist/esm/components/color-swatch/color-swatch-group.js.map +1 -1
  174. package/dist/esm/components/color-swatch/color-swatch.js.map +1 -1
  175. package/dist/esm/components/data-list/data-list.js.map +1 -1
  176. package/dist/esm/components/date-picker/date-picker.js.map +1 -1
  177. package/dist/esm/components/date-picker/use-date-picker.js.map +1 -1
  178. package/dist/esm/components/drawer/drawer.js.map +1 -1
  179. package/dist/esm/components/dropzone/dropzone.js.map +1 -1
  180. package/dist/esm/components/editable/editable.js.map +1 -1
  181. package/dist/esm/components/empty-state/empty-state.js.map +1 -1
  182. package/dist/esm/components/fade/fade.js.map +1 -1
  183. package/dist/esm/components/fade-scale/fade-scale.js.map +1 -1
  184. package/dist/esm/components/field/field.js.map +1 -1
  185. package/dist/esm/components/fieldset/fieldset.js.map +1 -1
  186. package/dist/esm/components/file-input/file-input.js.map +1 -1
  187. package/dist/esm/components/flip/flip.js.map +1 -1
  188. package/dist/esm/components/focus-lock/focus-lock.js.map +1 -1
  189. package/dist/esm/components/form/form.js.map +1 -1
  190. package/dist/esm/components/format/format-byte.js.map +1 -1
  191. package/dist/esm/components/format/format-date-time.js.map +1 -1
  192. package/dist/esm/components/format/format-number.js.map +1 -1
  193. package/dist/esm/components/highlight/highlight.js.map +1 -1
  194. package/dist/esm/components/hue-slider/hue-slider.js.map +1 -1
  195. package/dist/esm/components/icon/icons/circle-euro-icon.js +14 -0
  196. package/dist/esm/components/icon/icons/circle-euro-icon.js.map +1 -0
  197. package/dist/esm/components/icon/icons/index.js +7 -3
  198. package/dist/esm/components/icon/icons/index.js.map +1 -1
  199. package/dist/esm/components/icon/icons/scan-box-icon.js +14 -0
  200. package/dist/esm/components/icon/icons/scan-box-icon.js.map +1 -0
  201. package/dist/esm/components/icon/icons/server-plus-icon.js +14 -0
  202. package/dist/esm/components/icon/icons/server-plus-icon.js.map +1 -0
  203. package/dist/esm/components/icon/index.js +4 -2
  204. package/dist/esm/components/indicator/indicator.js.map +1 -1
  205. package/dist/esm/components/infinite-scroll-area/infinite-scroll-area.js.map +1 -1
  206. package/dist/esm/components/input/input-group.js.map +1 -1
  207. package/dist/esm/components/link-box/link-box.js.map +1 -1
  208. package/dist/esm/components/list/list.js.map +1 -1
  209. package/dist/esm/components/loading/audio.js.map +1 -1
  210. package/dist/esm/components/loading/background.js.map +1 -1
  211. package/dist/esm/components/loading/circles.js.map +1 -1
  212. package/dist/esm/components/loading/dots.js.map +1 -1
  213. package/dist/esm/components/loading/grid.js.map +1 -1
  214. package/dist/esm/components/loading/loading-provider.js.map +1 -1
  215. package/dist/esm/components/loading/oval.js.map +1 -1
  216. package/dist/esm/components/loading/page.js.map +1 -1
  217. package/dist/esm/components/loading/puff.js.map +1 -1
  218. package/dist/esm/components/loading/rings.js.map +1 -1
  219. package/dist/esm/components/loading/screen.js.map +1 -1
  220. package/dist/esm/components/loading/suspense.js.map +1 -1
  221. package/dist/esm/components/menu/menu.js.map +1 -1
  222. package/dist/esm/components/menu/use-menu.js.map +1 -1
  223. package/dist/esm/components/modal/modal.js.map +1 -1
  224. package/dist/esm/components/native-accordion/native-accordion.js.map +1 -1
  225. package/dist/esm/components/native-popover/native-popover.js.map +1 -1
  226. package/dist/esm/components/native-select/native-select.js.map +1 -1
  227. package/dist/esm/components/native-select/use-native-select.js.map +1 -1
  228. package/dist/esm/components/native-table/native-table.js.map +1 -1
  229. package/dist/esm/components/notice/notice-provider.js.map +1 -1
  230. package/dist/esm/components/notice/notice.js.map +1 -1
  231. package/dist/esm/components/notice/use-notice.js.map +1 -1
  232. package/dist/esm/components/number-input/number-input.js.map +1 -1
  233. package/dist/esm/components/pagination/pagination.js.map +1 -1
  234. package/dist/esm/components/password-input/password-input.js.map +1 -1
  235. package/dist/esm/components/password-input/strength-meter.js.map +1 -1
  236. package/dist/esm/components/picture/picture.js.map +1 -1
  237. package/dist/esm/components/pin-input/pin-input.js.map +1 -1
  238. package/dist/esm/components/popover/popover.js +8 -5
  239. package/dist/esm/components/popover/popover.js.map +1 -1
  240. package/dist/esm/components/progress/progress.js.map +1 -1
  241. package/dist/esm/components/qr-code/qr-code.js.map +1 -1
  242. package/dist/esm/components/radio/radio-group.js.map +1 -1
  243. package/dist/esm/components/radio/radio.js.map +1 -1
  244. package/dist/esm/components/radio-card/radio-card-group.js.map +1 -1
  245. package/dist/esm/components/radio-card/radio-card.js.map +1 -1
  246. package/dist/esm/components/rating/rating.js.map +1 -1
  247. package/dist/esm/components/reorder/reorder.js.map +1 -1
  248. package/dist/esm/components/resizable/resizable.js.map +1 -1
  249. package/dist/esm/components/ripple/ripple.js.map +1 -1
  250. package/dist/esm/components/rotate/rotate.js.map +1 -1
  251. package/dist/esm/components/saturation-slider/saturation-slider.js.map +1 -1
  252. package/dist/esm/components/saturation-slider/use-saturation-slider.js.map +1 -1
  253. package/dist/esm/components/segmented-control/segmented-control.js.map +1 -1
  254. package/dist/esm/components/select/select.js.map +1 -1
  255. package/dist/esm/components/select/use-select.js.map +1 -1
  256. package/dist/esm/components/sidebar/sidebar.js.map +1 -1
  257. package/dist/esm/components/skeleton/skeleton-text.js.map +1 -1
  258. package/dist/esm/components/slide/slide.js.map +1 -1
  259. package/dist/esm/components/slide-fade/slide-fade.js.map +1 -1
  260. package/dist/esm/components/slider/slider.js.map +1 -1
  261. package/dist/esm/components/slot/slot.js.map +1 -1
  262. package/dist/esm/components/snacks/snacks.js.map +1 -1
  263. package/dist/esm/components/stack/stack.js.map +1 -1
  264. package/dist/esm/components/stack/z-stack.js.map +1 -1
  265. package/dist/esm/components/stat/stat.js.map +1 -1
  266. package/dist/esm/components/status/status.js.map +1 -1
  267. package/dist/esm/components/steps/steps.js.map +1 -1
  268. package/dist/esm/components/switch/switch.js.map +1 -1
  269. package/dist/esm/components/table/table.js.map +1 -1
  270. package/dist/esm/components/tabs/tabs.js.map +1 -1
  271. package/dist/esm/components/tag/tag.js.map +1 -1
  272. package/dist/esm/components/timeline/timeline.js.map +1 -1
  273. package/dist/esm/components/tip/tip.js.map +1 -1
  274. package/dist/esm/components/toggle/toggle-group.js.map +1 -1
  275. package/dist/esm/components/tooltip/tooltip.js.map +1 -1
  276. package/dist/esm/components/tree/tree.js.map +1 -1
  277. package/dist/esm/components/tree/use-tree.js.map +1 -1
  278. package/dist/esm/core/components/create-component.js.map +1 -1
  279. package/dist/esm/core/system/breakpoint.js.map +1 -1
  280. package/dist/esm/core/system/environment-provider.js.map +1 -1
  281. package/dist/esm/core/system/styled.js.map +1 -1
  282. package/dist/esm/core/system/theme-provider.js.map +1 -1
  283. package/dist/esm/hooks/use-breakpoint/use-breakpoint.js.map +1 -1
  284. package/dist/esm/hooks/use-combobox/index.js.map +1 -1
  285. package/dist/esm/hooks/use-field-sizing/index.js.map +1 -1
  286. package/dist/esm/hooks/use-outside-click/index.js.map +1 -1
  287. package/dist/esm/index.js +7 -3
  288. package/dist/esm/providers/ui-provider/ui-provider.js.map +1 -1
  289. package/dist/esm/utils/store.js.map +1 -1
  290. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  291. package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
  292. package/dist/types/components/icon/icons/circle-euro-icon.d.ts +13 -0
  293. package/dist/types/components/icon/icons/index.d.ts +5 -3
  294. package/dist/types/components/icon/icons/index.types.d.ts +1 -1
  295. package/dist/types/components/icon/icons/scan-box-icon.d.ts +13 -0
  296. package/dist/types/components/icon/icons/server-plus-icon.d.ts +13 -0
  297. package/dist/types/components/icon/index.d.ts +4 -2
  298. package/dist/types/components/menu/menu.style.d.ts +2 -2
  299. package/dist/types/components/menu/use-menu.d.ts +1 -1
  300. package/dist/types/components/popover/popover.d.ts +5 -0
  301. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  302. package/dist/types/components/steps/steps.style.d.ts +1 -1
  303. package/dist/types/components/timeline/timeline.d.ts +1 -1
  304. package/dist/types/components/timeline/timeline.style.d.ts +1 -1
  305. package/dist/types/components/tree/tree.style.d.ts +1 -1
  306. package/dist/types/index.d.ts +5 -3
  307. package/package.json +5 -5
  308. package/dist/cjs/components/icon/icons/circle-euro-sign-icon.cjs +0 -14
  309. package/dist/cjs/components/icon/icons/circle-euro-sign-icon.cjs.map +0 -1
  310. package/dist/esm/components/icon/icons/circle-euro-sign-icon.js +0 -14
  311. package/dist/esm/components/icon/icons/circle-euro-sign-icon.js.map +0 -1
  312. package/dist/types/components/icon/icons/circle-euro-sign-icon.d.ts +0 -13
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ const require_icon = require("../icon.cjs");
3
+ let lucide_react = require("lucide-react");
4
+ //#region src/components/icon/icons/server-plus-icon.tsx
5
+ /**
6
+ * `ServerPlusIcon` is [Lucide](https://lucide.dev) SVG icon component.
7
+ *
8
+ * @see https://yamada-ui.com/docs/components/icon
9
+ */
10
+ const ServerPlusIcon = require_icon.component(require_icon.Icon)({ as: lucide_react.ServerPlus });
11
+ //#endregion
12
+ exports.ServerPlusIcon = ServerPlusIcon;
13
+
14
+ //# sourceMappingURL=server-plus-icon.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-plus-icon.cjs","names":["component","Icon","OriginalServerPlusIcon"],"sources":["../../../../../src/components/icon/icons/server-plus-icon.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Component } from \"../../../core\"\nimport type { IconProps } from \"../icon\"\nimport { ServerPlus as OriginalServerPlusIcon } from \"lucide-react\"\nimport { component, Icon } from \"../icon\"\n\n/**\n * `ServerPlusIcon` is [Lucide](https://lucide.dev) SVG icon component.\n *\n * @see https://yamada-ui.com/docs/components/icon\n */\nexport const ServerPlusIcon = component(Icon)({\n as: OriginalServerPlusIcon,\n}) as Component<\"svg\", IconProps>\n"],"mappings":";;;;;;;;;AAYA,MAAa,iBAAiBA,aAAAA,UAAUC,aAAAA,IAAI,CAAC,CAAC,EAC5C,IAAIC,aAAAA,WACN,CAAC"}
@@ -380,7 +380,7 @@ const require_circle_dot_dashed_icon = require("./icons/circle-dot-dashed-icon.c
380
380
  const require_circle_dot_icon = require("./icons/circle-dot-icon.cjs");
381
381
  const require_circle_ellipsis_icon = require("./icons/circle-ellipsis-icon.cjs");
382
382
  const require_circle_equal_icon = require("./icons/circle-equal-icon.cjs");
383
- const require_circle_euro_sign_icon = require("./icons/circle-euro-sign-icon.cjs");
383
+ const require_circle_euro_icon = require("./icons/circle-euro-icon.cjs");
384
384
  const require_circle_fading_arrow_up_icon = require("./icons/circle-fading-arrow-up-icon.cjs");
385
385
  const require_circle_fading_plus_icon = require("./icons/circle-fading-plus-icon.cjs");
386
386
  const require_circle_gauge_icon = require("./icons/circle-gauge-icon.cjs");
@@ -1296,6 +1296,7 @@ const require_scale3d_icon = require("./icons/scale3d-icon.cjs");
1296
1296
  const require_scale_icon = require("./icons/scale-icon.cjs");
1297
1297
  const require_scaling_icon = require("./icons/scaling-icon.cjs");
1298
1298
  const require_scan_barcode_icon = require("./icons/scan-barcode-icon.cjs");
1299
+ const require_scan_box_icon = require("./icons/scan-box-icon.cjs");
1299
1300
  const require_scan_eye_icon = require("./icons/scan-eye-icon.cjs");
1300
1301
  const require_scan_face_icon = require("./icons/scan-face-icon.cjs");
1301
1302
  const require_scan_heart_icon = require("./icons/scan-heart-icon.cjs");
@@ -1328,6 +1329,7 @@ const require_server_cog_icon = require("./icons/server-cog-icon.cjs");
1328
1329
  const require_server_crash_icon = require("./icons/server-crash-icon.cjs");
1329
1330
  const require_server_icon = require("./icons/server-icon.cjs");
1330
1331
  const require_server_off_icon = require("./icons/server-off-icon.cjs");
1332
+ const require_server_plus_icon = require("./icons/server-plus-icon.cjs");
1331
1333
  const require_settings2_icon = require("./icons/settings2-icon.cjs");
1332
1334
  const require_settings_icon = require("./icons/settings-icon.cjs");
1333
1335
  const require_shapes_icon = require("./icons/shapes-icon.cjs");
@@ -2128,7 +2130,7 @@ exports.CircleDotDashedIcon = require_circle_dot_dashed_icon.CircleDotDashedIcon
2128
2130
  exports.CircleDotIcon = require_circle_dot_icon.CircleDotIcon;
2129
2131
  exports.CircleEllipsisIcon = require_circle_ellipsis_icon.CircleEllipsisIcon;
2130
2132
  exports.CircleEqualIcon = require_circle_equal_icon.CircleEqualIcon;
2131
- exports.CircleEuroSignIcon = require_circle_euro_sign_icon.CircleEuroSignIcon;
2133
+ exports.CircleEuroIcon = require_circle_euro_icon.CircleEuroIcon;
2132
2134
  exports.CircleFadingArrowUpIcon = require_circle_fading_arrow_up_icon.CircleFadingArrowUpIcon;
2133
2135
  exports.CircleFadingPlusIcon = require_circle_fading_plus_icon.CircleFadingPlusIcon;
2134
2136
  exports.CircleGaugeIcon = require_circle_gauge_icon.CircleGaugeIcon;
@@ -3047,6 +3049,7 @@ exports.Scale3dIcon = require_scale3d_icon.Scale3dIcon;
3047
3049
  exports.ScaleIcon = require_scale_icon.ScaleIcon;
3048
3050
  exports.ScalingIcon = require_scaling_icon.ScalingIcon;
3049
3051
  exports.ScanBarcodeIcon = require_scan_barcode_icon.ScanBarcodeIcon;
3052
+ exports.ScanBoxIcon = require_scan_box_icon.ScanBoxIcon;
3050
3053
  exports.ScanEyeIcon = require_scan_eye_icon.ScanEyeIcon;
3051
3054
  exports.ScanFaceIcon = require_scan_face_icon.ScanFaceIcon;
3052
3055
  exports.ScanHeartIcon = require_scan_heart_icon.ScanHeartIcon;
@@ -3079,6 +3082,7 @@ exports.ServerCogIcon = require_server_cog_icon.ServerCogIcon;
3079
3082
  exports.ServerCrashIcon = require_server_crash_icon.ServerCrashIcon;
3080
3083
  exports.ServerIcon = require_server_icon.ServerIcon;
3081
3084
  exports.ServerOffIcon = require_server_off_icon.ServerOffIcon;
3085
+ exports.ServerPlusIcon = require_server_plus_icon.ServerPlusIcon;
3082
3086
  exports.Settings2Icon = require_settings2_icon.Settings2Icon;
3083
3087
  exports.SettingsIcon = require_settings_icon.SettingsIcon;
3084
3088
  exports.ShapesIcon = require_shapes_icon.ShapesIcon;
@@ -1 +1 @@
1
- {"version":3,"file":"indicator.cjs","names":["createSlotComponent","indicatorStyle","styled","varAttr","Float"],"sources":["../../../../src/components/indicator/indicator.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FloatProps } from \"../float\"\nimport type { IndicatorStyle } from \"./indicator.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled, varAttr } from \"../../core\"\nimport { dataAttr, isNumber, isObject } from \"../../utils\"\nimport { Float } from \"../float\"\nimport { indicatorStyle } from \"./indicator.style\"\n\ninterface PingOptions {\n /**\n * It is used for the color of the ping animation.\n */\n color?: CSSProps[\"backgroundColor\"]\n /**\n * It is used for the duration of the ping animation.\n */\n duration?: CSSProps[\"animationDuration\"]\n /**\n * It is used for the count of the ping animation.\n */\n iterationCount?: CSSProps[\"animationIterationCount\"]\n /**\n * It is used for the scale of the ping animation.\n */\n scale?: CSSProps[\"scale\"]\n /**\n * It is used for the timing function of the ping animation.\n */\n timingFunction?: CSSProps[\"animationTimingFunction\"]\n}\n\nexport interface IndicatorProps\n extends\n Omit<HTMLStyledProps, \"offset\">,\n Omit<ThemeProps<IndicatorStyle>, \"ping\">,\n Pick<FloatProps, \"offset\" | \"placement\"> {\n /**\n * If `true`, the indicator will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The indicator label to use.\n */\n label?: ReactNode\n /**\n * If `label` is of type number, the maximum number displayed.\n *\n * @default 99\n */\n overflowCount?: number\n /**\n * If `true`, make an element scale and fade like a radar ping or ripple of water.\n *\n * @default false\n */\n ping?: boolean | PingOptions\n /**\n * If `true`, display 0.\n *\n * @default true\n */\n showZero?: boolean\n /**\n * Props for the float element.\n */\n floatProps?: IndicatorFloatProps\n /**\n * Props for the label element.\n */\n labelProps?: IndicatorLabelProps\n}\n\nconst {\n PropsContext: IndicatorPropsContext,\n usePropsContext: useIndicatorPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<IndicatorProps, IndicatorStyle>(\n \"indicator\",\n indicatorStyle,\n)\n\nexport { IndicatorPropsContext, useIndicatorPropsContext }\n\n/**\n * `Indicator` is a component that displays at the corner of elements such as avatars.\n *\n * @see https://yamada-ui.com/docs/components/indicator\n */\nexport const Indicator = withProvider(\n ({\n children,\n disabled,\n label,\n offset,\n overflowCount = 99,\n placement,\n showZero = true,\n floatProps,\n labelProps,\n ...rest\n }) => {\n const numeric = isNumber(label)\n\n disabled ??= numeric && !showZero && label <= 0\n\n const computedLabel = useMemo(() => {\n if (numeric && label > overflowCount)\n return (\n <>\n {overflowCount}\n <styled.span>+</styled.span>\n </>\n )\n else return label\n }, [numeric, label, overflowCount])\n\n return (\n <styled.div {...rest}>\n {children}\n\n {!disabled ? (\n <IndicatorFloat offset={offset} placement={placement} {...floatProps}>\n <IndicatorLabel data-numeric={dataAttr(numeric)} {...labelProps}>\n {computedLabel}\n </IndicatorLabel>\n </IndicatorFloat>\n ) : null}\n </styled.div>\n )\n },\n \"root\",\n)(({ ping, ...rest }) => {\n if (isObject(ping)) {\n const { color, duration, iterationCount, scale, timingFunction } = ping\n\n return {\n ...rest,\n \"--animation-scale\": scale,\n \"--duration\": varAttr(duration, \"durations\"),\n \"--iteration-count\": iterationCount,\n \"--ping-color\": varAttr(color, \"colors\"),\n \"--timing-function\": varAttr(timingFunction, \"easings\"),\n ping: true,\n }\n } else {\n return { ...rest, ping }\n }\n})\n\ninterface IndicatorFloatProps extends FloatProps {}\n\nconst IndicatorFloat = withContext<\"div\", IndicatorFloatProps>(Float, \"float\")()\n\ninterface IndicatorLabelProps extends HTMLStyledProps<\"span\"> {}\n\nconst IndicatorLabel = withContext<\"span\", IndicatorLabelProps>(\n \"span\",\n \"label\",\n)()\n"],"mappings":";;;;;;;;;;AA8EA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,aACA,iBACEA,yBAAAA,oBACF,aACAC,wBAAAA,cACF;;;;;;AASA,MAAa,YAAY,cACtB,EACC,UACA,UACA,OACA,QACA,gBAAgB,IAChB,WACA,WAAW,MACX,YACA,YACA,GAAG,WACC;CACJ,MAAM,WAAA,GAAA,oBAAA,cAAA,SAAA,CAAmB,KAAK;CAE9B,aAAa,WAAW,CAAC,YAAY,SAAS;CAE9C,MAAM,iBAAA,GAAA,MAAA,QAAA,OAA8B;EAClC,IAAI,WAAW,QAAQ,eACrB,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA,CACG,eACD,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,MAAR,EAAA,UAAa,IAAc,CAAA,CAC3B,EAAA,CAAA;OAED,OAAO;CACd,GAAG;EAAC;EAAS;EAAO;CAAa,CAAC;CAElC,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACA,gBAAAA,OAAO,KAAR;EAAY,GAAI;YAAhB,CACG,UAEA,CAAC,WACA,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;GAAwB;GAAmB;GAAW,GAAI;aACxD,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;IAAgB,iBAAA,GAAA,oBAAA,cAAA,SAAA,CAAuB,OAAO;IAAG,GAAI;cAClD;GACa,CAAA;EACF,CAAA,IACd,IACM;;AAEhB,GACA,MACF,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW;CACvB,KAAA,GAAA,oBAAA,cAAA,SAAA,CAAa,IAAI,GAAG;EAClB,MAAM,EAAE,OAAO,UAAU,gBAAgB,OAAO,mBAAmB;EAEnE,OAAO;GACL,GAAG;GACH,qBAAqB;GACrB,cAAcC,YAAAA,QAAQ,UAAU,WAAW;GAC3C,qBAAqB;GACrB,gBAAgBA,YAAAA,QAAQ,OAAO,QAAQ;GACvC,qBAAqBA,YAAAA,QAAQ,gBAAgB,SAAS;GACtD,MAAM;EACR;CACF,OACE,OAAO;EAAE,GAAG;EAAM;CAAK;AAE3B,CAAC;AAID,MAAM,iBAAiB,YAAwCC,cAAAA,OAAO,OAAO,CAAC,CAAC;AAI/E,MAAM,iBAAiB,YACrB,QACA,OACF,CAAC,CAAC"}
1
+ {"version":3,"file":"indicator.cjs","names":["createSlotComponent","indicatorStyle","styled","varAttr","Float"],"sources":["../../../../src/components/indicator/indicator.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { FloatProps } from \"../float\"\nimport type { IndicatorStyle } from \"./indicator.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled, varAttr } from \"../../core\"\nimport { dataAttr, isNumber, isObject } from \"../../utils\"\nimport { Float } from \"../float\"\nimport { indicatorStyle } from \"./indicator.style\"\n\ninterface PingOptions {\n /**\n * It is used for the color of the ping animation.\n */\n color?: CSSProps[\"backgroundColor\"]\n /**\n * It is used for the duration of the ping animation.\n */\n duration?: CSSProps[\"animationDuration\"]\n /**\n * It is used for the count of the ping animation.\n */\n iterationCount?: CSSProps[\"animationIterationCount\"]\n /**\n * It is used for the scale of the ping animation.\n */\n scale?: CSSProps[\"scale\"]\n /**\n * It is used for the timing function of the ping animation.\n */\n timingFunction?: CSSProps[\"animationTimingFunction\"]\n}\n\nexport interface IndicatorProps\n extends\n Omit<HTMLStyledProps, \"offset\">,\n Omit<ThemeProps<IndicatorStyle>, \"ping\">,\n Pick<FloatProps, \"offset\" | \"placement\"> {\n /**\n * If `true`, the indicator will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The indicator label to use.\n */\n label?: ReactNode\n /**\n * If `label` is of type number, the maximum number displayed.\n *\n * @default 99\n */\n overflowCount?: number\n /**\n * If `true`, make an element scale and fade like a radar ping or ripple of water.\n *\n * @default false\n */\n ping?: boolean | PingOptions\n /**\n * If `true`, display 0.\n *\n * @default true\n */\n showZero?: boolean\n /**\n * Props for the float element.\n */\n floatProps?: IndicatorFloatProps\n /**\n * Props for the label element.\n */\n labelProps?: IndicatorLabelProps\n}\n\nconst {\n PropsContext: IndicatorPropsContext,\n usePropsContext: useIndicatorPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<IndicatorProps, IndicatorStyle>(\n \"indicator\",\n indicatorStyle,\n)\n\nexport { IndicatorPropsContext, useIndicatorPropsContext }\n\n/**\n * `Indicator` is a component that displays at the corner of elements such as avatars.\n *\n * @see https://yamada-ui.com/docs/components/indicator\n */\nexport const Indicator = withProvider(\n ({\n children,\n disabled,\n label,\n offset,\n overflowCount = 99,\n placement,\n showZero = true,\n floatProps,\n labelProps,\n ...rest\n }) => {\n const numeric = isNumber(label)\n\n disabled ??= numeric && !showZero && label <= 0\n\n const computedLabel = useMemo(() => {\n if (numeric && label > overflowCount)\n return (\n <>\n {overflowCount}\n <styled.span>+</styled.span>\n </>\n )\n else return label\n }, [numeric, label, overflowCount])\n\n return (\n <styled.div {...rest}>\n {children}\n\n {!disabled ? (\n <IndicatorFloat offset={offset} placement={placement} {...floatProps}>\n <IndicatorLabel data-numeric={dataAttr(numeric)} {...labelProps}>\n {computedLabel}\n </IndicatorLabel>\n </IndicatorFloat>\n ) : null}\n </styled.div>\n )\n },\n \"root\",\n)(({ ping, ...rest }) => {\n if (isObject(ping)) {\n const { color, duration, iterationCount, scale, timingFunction } = ping\n\n return {\n ...rest,\n \"--animation-scale\": scale,\n \"--duration\": varAttr(duration, \"durations\"),\n \"--iteration-count\": iterationCount,\n \"--ping-color\": varAttr(color, \"colors\"),\n \"--timing-function\": varAttr(timingFunction, \"easings\"),\n ping: true,\n }\n } else {\n return { ...rest, ping }\n }\n})\n\ninterface IndicatorFloatProps extends FloatProps {}\n\nconst IndicatorFloat = withContext<\"div\", IndicatorFloatProps>(Float, \"float\")()\n\ninterface IndicatorLabelProps extends HTMLStyledProps<\"span\"> {}\n\nconst IndicatorLabel = withContext<\"span\", IndicatorLabelProps>(\n \"span\",\n \"label\",\n)()\n"],"mappings":";;;;;;;;;;AA8EA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,aACA,iBACEA,yBAAAA,oBACF,aACAC,wBAAAA,cACF;;;;;;AASA,MAAa,YAAY,cACtB,EACC,UACA,UACA,OACA,QACA,gBAAgB,IAChB,WACA,WAAW,MACX,YACA,YACA,GAAG,WACC;CACJ,MAAM,WAAA,GAAA,oBAAA,cAAA,SAAA,CAAmB,KAAK;CAE9B,aAAa,WAAW,CAAC,YAAY,SAAS;CAE9C,MAAM,iBAAA,GAAA,MAAA,QAAA,OAA8B;EAClC,IAAI,WAAW,QAAQ,eACrB,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA,CACG,eACD,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,MAAR,EAAA,UAAa,IAAc,CAAA,CAC3B,EAAA,CAAA;OAED,OAAO;CACd,GAAG;EAAC;EAAS;EAAO;CAAa,CAAC;CAElC,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACA,gBAAAA,OAAO,KAAR;EAAY,GAAI;EAAhB,UAAA,CACG,UAEA,CAAC,WACA,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;GAAwB;GAAmB;GAAW,GAAI;GACxD,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;IAAgB,iBAAA,GAAA,oBAAA,cAAA,SAAA,CAAuB,OAAO;IAAG,GAAI;IAClD,UAAA;GACa,CAAA;EACF,CAAA,IACd,IACM;;AAEhB,GACA,MACF,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW;CACvB,KAAA,GAAA,oBAAA,cAAA,SAAA,CAAa,IAAI,GAAG;EAClB,MAAM,EAAE,OAAO,UAAU,gBAAgB,OAAO,mBAAmB;EAEnE,OAAO;GACL,GAAG;GACH,qBAAqB;GACrB,cAAcC,YAAAA,QAAQ,UAAU,WAAW;GAC3C,qBAAqB;GACrB,gBAAgBA,YAAAA,QAAQ,OAAO,QAAQ;GACvC,qBAAqBA,YAAAA,QAAQ,gBAAgB,SAAS;GACtD,MAAM;EACR;CACF,OACE,OAAO;EAAE,GAAG;EAAM;CAAK;AAE3B,CAAC;AAID,MAAM,iBAAiB,YAAwCC,cAAAA,OAAO,OAAO,CAAC,CAAC;AAI/E,MAAM,iBAAiB,YACrB,QACA,OACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"infinite-scroll-area.cjs","names":["createSlotComponent","infiniteScrollAreaStyle","useInfiniteScroll","useValue","styled","mergeRefs"],"sources":["../../../../src/components/infinite-scroll-area/infinite-scroll-area.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { InfiniteScrollAreaStyle } from \"./infinite-scroll-area.style\"\nimport type { UseInfiniteScrollProps } from \"./use-infinite-scroll\"\nimport { useRef } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { isNull, mergeRefs } from \"../../utils\"\nimport { infiniteScrollAreaStyle } from \"./infinite-scroll-area.style\"\nimport { useInfiniteScroll } from \"./use-infinite-scroll\"\n\nexport interface InfiniteScrollAreaProps\n extends\n Omit<HTMLStyledProps, keyof UseInfiniteScrollProps>,\n Omit<UseInfiniteScrollProps, \"orientation\">,\n ThemeProps<InfiniteScrollAreaStyle> {\n /**\n * The infinite scroll area finish to use.\n */\n finish?: ReactNode\n /**\n * The infinite scroll area loading to use.\n */\n loading?: ReactNode\n /**\n * Props for infinite scroll area trigger component.\n */\n triggerProps?: HTMLStyledProps\n}\n\nconst {\n PropsContext: InfiniteScrollAreaPropsContext,\n usePropsContext: useInfiniteScrollAreaPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<InfiniteScrollAreaProps, InfiniteScrollAreaStyle>(\n \"infinite-scroll-area\",\n infiniteScrollAreaStyle,\n)\n\nexport { InfiniteScrollAreaPropsContext, useInfiniteScrollAreaPropsContext }\n\n/**\n * `InfiniteScrollArea` is for providing infinite scroll functionality.\n * This feature provides a smooth scrolling experience by automatically loading and displaying the next dataset when the user reaches the end of the page.\n *\n * @see https://yamada-ui.com/docs/components/infinite-scroll-area\n */\nexport const InfiniteScrollArea = withProvider<\n \"div\",\n InfiniteScrollAreaProps,\n \"orientation\"\n>(\n ({\n ref,\n children,\n disabled,\n finish: finishProp,\n indexRef,\n initialLoad,\n loading,\n orientation: orientationProp,\n resetRef,\n reverse,\n rootMargin,\n rootRef: rootRefProp,\n startIndex,\n threshold,\n triggerProps,\n onLoad,\n ...rest\n }) => {\n const rootRef = useRef<HTMLDivElement>(null)\n const orientation = useValue(orientationProp)\n const { ref: triggerRef, finish } = useInfiniteScroll({\n disabled,\n indexRef,\n initialLoad,\n orientation,\n resetRef,\n reverse,\n rootMargin,\n rootRef: isNull(rootRefProp) ? null : (rootRefProp ?? rootRef),\n startIndex,\n threshold,\n onLoad,\n })\n const hasFinish = !!finishProp\n const showTrigger = !disabled && (hasFinish || !finish)\n\n return (\n <styled.div\n ref={mergeRefs(rootRef, ref)}\n aria-busy=\"false\"\n role=\"feed\"\n tabIndex={0}\n {...rest}\n >\n {reverse && showTrigger ? (\n <InfiniteScrollTrigger ref={triggerRef} {...triggerProps}>\n {finish ? finishProp : loading}\n </InfiniteScrollTrigger>\n ) : null}\n\n {children}\n\n {!reverse && showTrigger ? (\n <InfiniteScrollTrigger ref={triggerRef} {...triggerProps}>\n {finish ? finishProp : loading}\n </InfiniteScrollTrigger>\n ) : null}\n </styled.div>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\ninterface InfiniteScrollTriggerProps extends HTMLStyledProps {}\n\nconst InfiniteScrollTrigger = withContext<\"div\", InfiniteScrollTriggerProps>(\n \"div\",\n \"trigger\",\n)()\n"],"mappings":";;;;;;;;;;;AAgCA,MAAM,EACJ,cAAc,gCACd,iBAAiB,mCACjB,aACA,iBACEA,yBAAAA,oBACF,wBACAC,mCAAAA,uBACF;;;;;;;AAUA,MAAa,qBAAqB,cAK/B,EACC,KACA,UACA,UACA,QAAQ,YACR,UACA,aACA,SACA,aAAa,iBACb,UACA,SACA,YACA,SAAS,aACT,YACA,WACA,cACA,QACA,GAAG,WACC;CACJ,MAAM,WAAA,GAAA,MAAA,OAAA,CAAiC,IAAI;CAE3C,MAAM,EAAE,KAAK,YAAY,WAAWC,4BAAAA,kBAAkB;EACpD;EACA;EACA;EACA,aALkBC,8BAAAA,SAAS,eAKjB;EACV;EACA;EACA;EACA,UAAA,GAAA,oBAAA,cAAA,OAAA,CAAgB,WAAW,IAAI,OAAQ,eAAe;EACtD;EACA;EACA;CACF,CAAC;CAED,MAAM,cAAc,CAAC,aAAa,CADf,CAAC,cAC2B,CAAC;CAEhD,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,KAAKC,YAAAA,UAAU,SAAS,GAAG;EAC3B,aAAU;EACV,MAAK;EACL,UAAU;EACV,GAAI;YALN;GAOG,WAAW,cACV,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAD;IAAuB,KAAK;IAAY,GAAI;cACzC,SAAS,aAAa;GACF,CAAA,IACrB;GAEH;GAEA,CAAC,WAAW,cACX,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAD;IAAuB,KAAK;IAAY,GAAI;cACzC,SAAS,aAAa;GACF,CAAA,IACrB;EACM;;AAEhB,GACA,QACA,EAAE,eAAe,CAAC,aAAa,EAAE,CACnC,CAAC,CAAC;AAIF,MAAM,wBAAwB,YAC5B,OACA,SACF,CAAC,CAAC"}
1
+ {"version":3,"file":"infinite-scroll-area.cjs","names":["createSlotComponent","infiniteScrollAreaStyle","useInfiniteScroll","useValue","styled","mergeRefs"],"sources":["../../../../src/components/infinite-scroll-area/infinite-scroll-area.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { InfiniteScrollAreaStyle } from \"./infinite-scroll-area.style\"\nimport type { UseInfiniteScrollProps } from \"./use-infinite-scroll\"\nimport { useRef } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { isNull, mergeRefs } from \"../../utils\"\nimport { infiniteScrollAreaStyle } from \"./infinite-scroll-area.style\"\nimport { useInfiniteScroll } from \"./use-infinite-scroll\"\n\nexport interface InfiniteScrollAreaProps\n extends\n Omit<HTMLStyledProps, keyof UseInfiniteScrollProps>,\n Omit<UseInfiniteScrollProps, \"orientation\">,\n ThemeProps<InfiniteScrollAreaStyle> {\n /**\n * The infinite scroll area finish to use.\n */\n finish?: ReactNode\n /**\n * The infinite scroll area loading to use.\n */\n loading?: ReactNode\n /**\n * Props for infinite scroll area trigger component.\n */\n triggerProps?: HTMLStyledProps\n}\n\nconst {\n PropsContext: InfiniteScrollAreaPropsContext,\n usePropsContext: useInfiniteScrollAreaPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<InfiniteScrollAreaProps, InfiniteScrollAreaStyle>(\n \"infinite-scroll-area\",\n infiniteScrollAreaStyle,\n)\n\nexport { InfiniteScrollAreaPropsContext, useInfiniteScrollAreaPropsContext }\n\n/**\n * `InfiniteScrollArea` is for providing infinite scroll functionality.\n * This feature provides a smooth scrolling experience by automatically loading and displaying the next dataset when the user reaches the end of the page.\n *\n * @see https://yamada-ui.com/docs/components/infinite-scroll-area\n */\nexport const InfiniteScrollArea = withProvider<\n \"div\",\n InfiniteScrollAreaProps,\n \"orientation\"\n>(\n ({\n ref,\n children,\n disabled,\n finish: finishProp,\n indexRef,\n initialLoad,\n loading,\n orientation: orientationProp,\n resetRef,\n reverse,\n rootMargin,\n rootRef: rootRefProp,\n startIndex,\n threshold,\n triggerProps,\n onLoad,\n ...rest\n }) => {\n const rootRef = useRef<HTMLDivElement>(null)\n const orientation = useValue(orientationProp)\n const { ref: triggerRef, finish } = useInfiniteScroll({\n disabled,\n indexRef,\n initialLoad,\n orientation,\n resetRef,\n reverse,\n rootMargin,\n rootRef: isNull(rootRefProp) ? null : (rootRefProp ?? rootRef),\n startIndex,\n threshold,\n onLoad,\n })\n const hasFinish = !!finishProp\n const showTrigger = !disabled && (hasFinish || !finish)\n\n return (\n <styled.div\n ref={mergeRefs(rootRef, ref)}\n aria-busy=\"false\"\n role=\"feed\"\n tabIndex={0}\n {...rest}\n >\n {reverse && showTrigger ? (\n <InfiniteScrollTrigger ref={triggerRef} {...triggerProps}>\n {finish ? finishProp : loading}\n </InfiniteScrollTrigger>\n ) : null}\n\n {children}\n\n {!reverse && showTrigger ? (\n <InfiniteScrollTrigger ref={triggerRef} {...triggerProps}>\n {finish ? finishProp : loading}\n </InfiniteScrollTrigger>\n ) : null}\n </styled.div>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\ninterface InfiniteScrollTriggerProps extends HTMLStyledProps {}\n\nconst InfiniteScrollTrigger = withContext<\"div\", InfiniteScrollTriggerProps>(\n \"div\",\n \"trigger\",\n)()\n"],"mappings":";;;;;;;;;;;AAgCA,MAAM,EACJ,cAAc,gCACd,iBAAiB,mCACjB,aACA,iBACEA,yBAAAA,oBACF,wBACAC,mCAAAA,uBACF;;;;;;;AAUA,MAAa,qBAAqB,cAK/B,EACC,KACA,UACA,UACA,QAAQ,YACR,UACA,aACA,SACA,aAAa,iBACb,UACA,SACA,YACA,SAAS,aACT,YACA,WACA,cACA,QACA,GAAG,WACC;CACJ,MAAM,WAAA,GAAA,MAAA,OAAA,CAAiC,IAAI;CAE3C,MAAM,EAAE,KAAK,YAAY,WAAWC,4BAAAA,kBAAkB;EACpD;EACA;EACA;EACA,aALkBC,8BAAAA,SAAS,eAKjB;EACV;EACA;EACA;EACA,UAAA,GAAA,oBAAA,cAAA,OAAA,CAAgB,WAAW,IAAI,OAAQ,eAAe;EACtD;EACA;EACA;CACF,CAAC;CAED,MAAM,cAAc,CAAC,aAAa,CADf,CAAC,cAC2B,CAAC;CAEhD,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,KAAKC,YAAAA,UAAU,SAAS,GAAG;EAC3B,aAAU;EACV,MAAK;EACL,UAAU;EACV,GAAI;EALN,UAAA;GAOG,WAAW,cACV,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAD;IAAuB,KAAK;IAAY,GAAI;IACzC,UAAA,SAAS,aAAa;GACF,CAAA,IACrB;GAEH;GAEA,CAAC,WAAW,cACX,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAD;IAAuB,KAAK;IAAY,GAAI;IACzC,UAAA,SAAS,aAAa;GACF,CAAA,IACrB;EACM;;AAEhB,GACA,QACA,EAAE,eAAe,CAAC,aAAa,EAAE,CACnC,CAAC,CAAC;AAIF,MAAM,wBAAwB,YAC5B,OACA,SACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"input-group.cjs","names":["useFieldProps","useValidChildren","isSomeElement","InputElement","InputPropsContext","InputAddonPropsContext","InputElementPropsContext","Group"],"sources":["../../../../src/components/input/input-group.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Component, ThemeProps, WithoutThemeProps } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport type { GroupProps } from \"../group\"\nimport type { InputProps } from \"./input\"\nimport type { InputStyle } from \"./input.style\"\nimport { cloneElement, useMemo } from \"react\"\nimport { isSomeElement, isTruthyDataAttr, useValidChildren } from \"../../utils\"\nimport { useFieldProps } from \"../field\"\nimport { Group } from \"../group\"\nimport { InputPropsContext } from \"./input\"\nimport { InputAddonPropsContext } from \"./input-addon\"\nimport { InputElement, InputElementPropsContext } from \"./input-element\"\n\nexport interface InputGroupRootProps\n extends\n WithoutThemeProps<GroupProps, InputStyle>,\n ThemeProps<InputStyle>,\n Pick<InputProps, \"errorBorderColor\" | \"focusBorderColor\">,\n FieldProps {}\n\nexport const InputGroupRoot = ((props: InputGroupRootProps) => {\n const {\n props: {\n id: _id,\n size,\n variant,\n children,\n disabled,\n errorBorderColor,\n focusBorderColor,\n readOnly,\n required,\n ...rest\n },\n dataProps,\n } = useFieldProps(props)\n const validChildren = useValidChildren(children)\n const cloneChildren = useMemo(\n () =>\n validChildren.map((child, index) => {\n const first = !index\n\n if (isSomeElement(child.type, InputElement))\n return cloneElement(child, {\n \"data-ungrouped\": \"\",\n placement: first ? \"start\" : \"end\",\n ...child.props,\n })\n else return child\n }),\n [validChildren],\n )\n const sharedContext = useMemo(\n () => ({\n size,\n variant,\n errorBorderColor,\n focusBorderColor,\n ...dataProps,\n }),\n [size, variant, errorBorderColor, focusBorderColor, dataProps],\n )\n const inputContext = useMemo(\n () => ({\n ...sharedContext,\n disabled,\n invalid: isTruthyDataAttr(sharedContext[\"data-invalid\"]),\n readOnly,\n required,\n }),\n [sharedContext, disabled, readOnly, required],\n )\n\n return (\n <InputPropsContext value={inputContext}>\n <InputAddonPropsContext value={sharedContext}>\n <InputElementPropsContext value={sharedContext}>\n <Group attached minW=\"0\" w=\"full\" {...rest}>\n {cloneChildren}\n </Group>\n </InputElementPropsContext>\n </InputAddonPropsContext>\n </InputPropsContext>\n )\n}) as Component<\"div\", InputGroupRootProps>\n"],"mappings":";;;;;;;;;;;AAsBA,MAAa,mBAAmB,UAA+B;CAC7D,MAAM,EACJ,OAAO,EACL,IAAI,KACJ,MACA,SACA,UACA,UACA,kBACA,kBACA,UACA,UACA,GAAG,QAEL,cACEA,wBAAAA,cAAc,KAAK;CACvB,MAAM,gBAAgBC,iBAAAA,iBAAiB,QAAQ;CAC/C,MAAM,iBAAA,GAAA,MAAA,QAAA,OAEF,cAAc,KAAK,OAAO,UAAU;EAClC,MAAM,QAAQ,CAAC;EAEf,IAAIC,iBAAAA,cAAc,MAAM,MAAMC,sBAAAA,YAAY,GACxC,QAAA,GAAA,MAAA,aAAA,CAAoB,OAAO;GACzB,kBAAkB;GAClB,WAAW,QAAQ,UAAU;GAC7B,GAAG,MAAM;EACX,CAAC;OACE,OAAO;CACd,CAAC,GACH,CAAC,aAAa,CAChB;CACA,MAAM,iBAAA,GAAA,MAAA,QAAA,QACG;EACL;EACA;EACA;EACA;EACA,GAAG;CACL,IACA;EAAC;EAAM;EAAS;EAAkB;EAAkB;CAAS,CAC/D;CAYA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAAA,mBAAD;EAAmB,QAAA,GAAA,MAAA,QAAA,QAXZ;GACL,GAAG;GACH;GACA,UAAA,GAAA,oBAAA,cAAA,iBAAA,CAA0B,cAAc,eAAe;GACvD;GACA;EACF,IACA;GAAC;GAAe;GAAU;GAAU;EAAQ,CAIP;YACnC,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,wBAAD;GAAwB,OAAO;aAC7B,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,0BAAD;IAA0B,OAAO;cAC/B,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAAA,OAAD;KAAO,UAAA;KAAS,MAAK;KAAI,GAAE;KAAO,GAAI;eACnC;IACI,CAAA;GACiB,CAAA;EACJ,CAAA;CACP,CAAA;AAEvB"}
1
+ {"version":3,"file":"input-group.cjs","names":["useFieldProps","useValidChildren","isSomeElement","InputElement","InputPropsContext","InputAddonPropsContext","InputElementPropsContext","Group"],"sources":["../../../../src/components/input/input-group.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Component, ThemeProps, WithoutThemeProps } from \"../../core\"\nimport type { FieldProps } from \"../field\"\nimport type { GroupProps } from \"../group\"\nimport type { InputProps } from \"./input\"\nimport type { InputStyle } from \"./input.style\"\nimport { cloneElement, useMemo } from \"react\"\nimport { isSomeElement, isTruthyDataAttr, useValidChildren } from \"../../utils\"\nimport { useFieldProps } from \"../field\"\nimport { Group } from \"../group\"\nimport { InputPropsContext } from \"./input\"\nimport { InputAddonPropsContext } from \"./input-addon\"\nimport { InputElement, InputElementPropsContext } from \"./input-element\"\n\nexport interface InputGroupRootProps\n extends\n WithoutThemeProps<GroupProps, InputStyle>,\n ThemeProps<InputStyle>,\n Pick<InputProps, \"errorBorderColor\" | \"focusBorderColor\">,\n FieldProps {}\n\nexport const InputGroupRoot = ((props: InputGroupRootProps) => {\n const {\n props: {\n id: _id,\n size,\n variant,\n children,\n disabled,\n errorBorderColor,\n focusBorderColor,\n readOnly,\n required,\n ...rest\n },\n dataProps,\n } = useFieldProps(props)\n const validChildren = useValidChildren(children)\n const cloneChildren = useMemo(\n () =>\n validChildren.map((child, index) => {\n const first = !index\n\n if (isSomeElement(child.type, InputElement))\n return cloneElement(child, {\n \"data-ungrouped\": \"\",\n placement: first ? \"start\" : \"end\",\n ...child.props,\n })\n else return child\n }),\n [validChildren],\n )\n const sharedContext = useMemo(\n () => ({\n size,\n variant,\n errorBorderColor,\n focusBorderColor,\n ...dataProps,\n }),\n [size, variant, errorBorderColor, focusBorderColor, dataProps],\n )\n const inputContext = useMemo(\n () => ({\n ...sharedContext,\n disabled,\n invalid: isTruthyDataAttr(sharedContext[\"data-invalid\"]),\n readOnly,\n required,\n }),\n [sharedContext, disabled, readOnly, required],\n )\n\n return (\n <InputPropsContext value={inputContext}>\n <InputAddonPropsContext value={sharedContext}>\n <InputElementPropsContext value={sharedContext}>\n <Group attached minW=\"0\" w=\"full\" {...rest}>\n {cloneChildren}\n </Group>\n </InputElementPropsContext>\n </InputAddonPropsContext>\n </InputPropsContext>\n )\n}) as Component<\"div\", InputGroupRootProps>\n"],"mappings":";;;;;;;;;;;AAsBA,MAAa,mBAAmB,UAA+B;CAC7D,MAAM,EACJ,OAAO,EACL,IAAI,KACJ,MACA,SACA,UACA,UACA,kBACA,kBACA,UACA,UACA,GAAG,QAEL,cACEA,wBAAAA,cAAc,KAAK;CACvB,MAAM,gBAAgBC,iBAAAA,iBAAiB,QAAQ;CAC/C,MAAM,iBAAA,GAAA,MAAA,QAAA,OAEF,cAAc,KAAK,OAAO,UAAU;EAClC,MAAM,QAAQ,CAAC;EAEf,IAAIC,iBAAAA,cAAc,MAAM,MAAMC,sBAAAA,YAAY,GACxC,QAAA,GAAA,MAAA,aAAA,CAAoB,OAAO;GACzB,kBAAkB;GAClB,WAAW,QAAQ,UAAU;GAC7B,GAAG,MAAM;EACX,CAAC;OACE,OAAO;CACd,CAAC,GACH,CAAC,aAAa,CAChB;CACA,MAAM,iBAAA,GAAA,MAAA,QAAA,QACG;EACL;EACA;EACA;EACA;EACA,GAAG;CACL,IACA;EAAC;EAAM;EAAS;EAAkB;EAAkB;CAAS,CAC/D;CAYA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAAA,mBAAD;EAAmB,QAAA,GAAA,MAAA,QAAA,QAXZ;GACL,GAAG;GACH;GACA,UAAA,GAAA,oBAAA,cAAA,iBAAA,CAA0B,cAAc,eAAe;GACvD;GACA;EACF,IACA;GAAC;GAAe;GAAU;GAAU;EAAQ,CAIP;EACnC,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,wBAAD;GAAwB,OAAO;GAC7B,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,0BAAD;IAA0B,OAAO;IAC/B,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAAA,OAAD;KAAO,UAAA;KAAS,MAAK;KAAI,GAAE;KAAO,GAAI;KACnC,UAAA;IACI,CAAA;GACiB,CAAA;EACJ,CAAA;CACP,CAAA;AAEvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"link-box.cjs","names":["createSlotComponent","linkBoxStyle","useExtractProps","radiusProperties","styled"],"sources":["../../../../src/components/link-box/link-box.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { LinkBoxStyle } from \"./link-box.style\"\nimport {\n createSlotComponent,\n radiusProperties,\n styled,\n useExtractProps,\n} from \"../../core\"\nimport { dataAttr } from \"../../utils\"\nimport { linkBoxStyle } from \"./link-box.style\"\n\ninterface ComponentContext extends Dict {}\n\nexport interface LinkBoxRootProps\n extends HTMLStyledProps, ThemeProps<LinkBoxStyle> {}\n\nconst {\n ComponentContext,\n PropsContext: LinkBoxPropsContext,\n useComponentContext,\n usePropsContext: useLinkBoxPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<LinkBoxRootProps, LinkBoxStyle, ComponentContext>(\n \"link-box\",\n linkBoxStyle,\n)\n\nexport { LinkBoxPropsContext, useLinkBoxPropsContext }\n\n/**\n * `LinkBox` is a component that allows elements such as articles or cards to function as a single link.\n *\n * @see https://yamada-ui.com/docs/components/link-box\n */\nexport const LinkBoxRoot = withProvider<\"div\", LinkBoxRootProps>(\n ({ children, ...rest }) => {\n const context = useExtractProps(rest, radiusProperties)\n\n return (\n <ComponentContext value={context}>\n <styled.div {...rest}>{children}</styled.div>\n </ComponentContext>\n )\n },\n \"root\",\n)()\n\nexport interface LinkBoxOverlayProps extends HTMLStyledProps<\"a\"> {\n /**\n * If `true`, the link will open in new tab.\n *\n * @default false\n */\n external?: boolean\n}\n\nexport const LinkBoxOverlay = withContext<\"a\", LinkBoxOverlayProps>(\n \"a\",\n \"overlay\",\n)(undefined, ({ external, _before, ...rest }) => {\n const context = useComponentContext()\n\n return {\n rel: external ? \"noopener\" : undefined,\n target: external ? \"_blank\" : undefined,\n \"data-link-box-overlay\": dataAttr(true),\n _before: { ..._before, ...context },\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;AAmBA,MAAM,EACJ,kBACA,cAAc,qBACd,qBACA,iBAAiB,wBACjB,aACA,iBACEA,yBAAAA,oBACF,YACAC,uBAAAA,YACF;;;;;;AASA,MAAa,cAAc,cACxB,EAAE,UAAU,GAAG,WAAW;CACzB,MAAM,UAAUC,cAAAA,gBAAgB,MAAMC,eAAAA,gBAAgB;CAEtD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,kBAAD;EAAkB,OAAO;YACvB,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;GAAY,GAAI;GAAO;EAAqB,CAAA;CAC5B,CAAA;AAEtB,GACA,MACF,CAAC,CAAC;AAWF,MAAa,iBAAiB,YAC5B,KACA,SACF,CAAC,CAAC,KAAA,IAAY,EAAE,UAAU,SAAS,GAAG,WAAW;CAC/C,MAAM,UAAU,oBAAoB;CAEpC,OAAO;EACL,KAAK,WAAW,aAAa,KAAA;EAC7B,QAAQ,WAAW,WAAW,KAAA;EAC9B,0BAAA,GAAA,oBAAA,cAAA,SAAA,CAAkC,IAAI;EACtC,SAAS;GAAE,GAAG;GAAS,GAAG;EAAQ;EAClC,GAAG;CACL;AACF,CAAC"}
1
+ {"version":3,"file":"link-box.cjs","names":["createSlotComponent","linkBoxStyle","useExtractProps","radiusProperties","styled"],"sources":["../../../../src/components/link-box/link-box.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { LinkBoxStyle } from \"./link-box.style\"\nimport {\n createSlotComponent,\n radiusProperties,\n styled,\n useExtractProps,\n} from \"../../core\"\nimport { dataAttr } from \"../../utils\"\nimport { linkBoxStyle } from \"./link-box.style\"\n\ninterface ComponentContext extends Dict {}\n\nexport interface LinkBoxRootProps\n extends HTMLStyledProps, ThemeProps<LinkBoxStyle> {}\n\nconst {\n ComponentContext,\n PropsContext: LinkBoxPropsContext,\n useComponentContext,\n usePropsContext: useLinkBoxPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<LinkBoxRootProps, LinkBoxStyle, ComponentContext>(\n \"link-box\",\n linkBoxStyle,\n)\n\nexport { LinkBoxPropsContext, useLinkBoxPropsContext }\n\n/**\n * `LinkBox` is a component that allows elements such as articles or cards to function as a single link.\n *\n * @see https://yamada-ui.com/docs/components/link-box\n */\nexport const LinkBoxRoot = withProvider<\"div\", LinkBoxRootProps>(\n ({ children, ...rest }) => {\n const context = useExtractProps(rest, radiusProperties)\n\n return (\n <ComponentContext value={context}>\n <styled.div {...rest}>{children}</styled.div>\n </ComponentContext>\n )\n },\n \"root\",\n)()\n\nexport interface LinkBoxOverlayProps extends HTMLStyledProps<\"a\"> {\n /**\n * If `true`, the link will open in new tab.\n *\n * @default false\n */\n external?: boolean\n}\n\nexport const LinkBoxOverlay = withContext<\"a\", LinkBoxOverlayProps>(\n \"a\",\n \"overlay\",\n)(undefined, ({ external, _before, ...rest }) => {\n const context = useComponentContext()\n\n return {\n rel: external ? \"noopener\" : undefined,\n target: external ? \"_blank\" : undefined,\n \"data-link-box-overlay\": dataAttr(true),\n _before: { ..._before, ...context },\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;AAmBA,MAAM,EACJ,kBACA,cAAc,qBACd,qBACA,iBAAiB,wBACjB,aACA,iBACEA,yBAAAA,oBACF,YACAC,uBAAAA,YACF;;;;;;AASA,MAAa,cAAc,cACxB,EAAE,UAAU,GAAG,WAAW;CACzB,MAAM,UAAUC,cAAAA,gBAAgB,MAAMC,eAAAA,gBAAgB;CAEtD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,kBAAD;EAAkB,OAAO;EACvB,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;GAAY,GAAI;GAAO;EAAqB,CAAA;CAC5B,CAAA;AAEtB,GACA,MACF,CAAC,CAAC;AAWF,MAAa,iBAAiB,YAC5B,KACA,SACF,CAAC,CAAC,KAAA,IAAY,EAAE,UAAU,SAAS,GAAG,WAAW;CAC/C,MAAM,UAAU,oBAAoB;CAEpC,OAAO;EACL,KAAK,WAAW,aAAa,KAAA;EAC7B,QAAQ,WAAW,WAAW,KAAA;EAC9B,0BAAA,GAAA,oBAAA,cAAA,SAAA,CAAkC,IAAI;EACtC,SAAS;GAAE,GAAG;GAAS,GAAG;EAAQ;EAClC,GAAG;CACL;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.cjs","names":["createSlotComponent","listStyle","styled"],"sources":["../../../../src/components/list/list.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type {\n CSSProps,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { ListStyle } from \"./list.style\"\nimport { cloneElement, isValidElement, useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { listStyle } from \"./list.style\"\n\nexport interface ListItem extends ListItemProps {}\n\nexport interface ListRootProps\n extends HTMLStyledProps<\"ul\">, Omit<ThemeProps<ListStyle>, \"styleType\"> {\n /**\n * If provided, generate elements based on items.\n */\n items?: ListItem[]\n /**\n * The CSS `list-style-position` property.\n */\n stylePosition?: CSSProps[\"listStylePosition\"]\n /**\n * The CSS `list-style-position` property.\n */\n styleType?: CSSProps[\"listStyleType\"]\n}\n\nconst {\n PropsContext: ListPropsContext,\n usePropsContext: useListPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ListRootProps, ListStyle>(\"list\", listStyle)\n\nexport { ListPropsContext, useListPropsContext }\n\n/**\n * `List` is a component for displaying lists. By default, it renders a `ul` element.\n *\n * @see https://yamada-ui.com/docs/components/list\n */\nexport const ListRoot = withProvider<\"ul\", ListRootProps, \"styleType\">(\n ({\n as: asProp,\n children,\n items,\n stylePosition: listStylePosition,\n styleType: listStyleType = \"none\",\n ...rest\n }) => {\n const as = asProp ?? (listStyleType == \"decimal\" ? \"ol\" : undefined)\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items?.map((props, index) => <ListItem key={index} {...props} />)\n }, [children, items])\n\n return (\n <styled.ul\n as={as}\n listStylePosition={listStylePosition}\n listStyleType={listStyleType}\n role=\"list\"\n {...rest}\n >\n {computedChildren}\n </styled.ul>\n )\n },\n \"root\",\n { transferProps: [\"styleType\"] },\n)()\n\nexport interface ListItemProps extends HTMLStyledProps<\"li\"> {\n /**\n * The icon to use.\n */\n icon?: ReactElement<any>\n}\n\nexport const ListItem = withContext<\"li\", ListItemProps>(\n ({ children, icon, ...rest }) => (\n <styled.li {...rest}>\n <ListItemIcon>{icon}</ListItemIcon>\n\n {children}\n </styled.li>\n ),\n \"item\",\n)()\n\nexport interface ListIconProps extends HTMLStyledProps<\"svg\"> {}\n\nexport const ListItemIcon = withContext<\"svg\", ListIconProps>(\n ({ children, ...rest }) => {\n if (isValidElement<HTMLProps<\"svg\">>(children))\n return cloneElement(children, {\n ...children.props,\n ...rest,\n role: \"presentation\",\n })\n else return null\n },\n \"icon\",\n)({ \"data-list-icon\": \"\" })\n"],"mappings":";;;;;;;AAgCA,MAAM,EACJ,cAAc,kBACd,iBAAiB,qBACjB,aACA,iBACEA,yBAAAA,oBAA8C,QAAQC,mBAAAA,SAAS;;;;;;AASnE,MAAa,WAAW,cACrB,EACC,IAAI,QACJ,UACA,OACA,eAAe,mBACf,WAAW,gBAAgB,QAC3B,GAAG,WACC;CACJ,MAAM,KAAK,WAAW,iBAAiB,YAAY,OAAO,KAAA;CAC1D,MAAM,oBAAA,GAAA,MAAA,QAAA,OAAiC;EACrC,IAAI,UAAU,OAAO;EAErB,OAAO,OAAO,KAAK,OAAO,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD,EAAsB,GAAI,MAAQ,GAAnB,KAAmB,CAAC;CACzE,GAAG,CAAC,UAAU,KAAK,CAAC;CAEpB,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,IAAR;EACM;EACe;EACJ;EACf,MAAK;EACL,GAAI;YAEH;CACQ,CAAA;AAEf,GACA,QACA,EAAE,eAAe,CAAC,WAAW,EAAE,CACjC,CAAC,CAAC;AASF,MAAa,WAAW,aACrB,EAAE,UAAU,MAAM,GAAG,WACpB,iBAAA,GAAA,kBAAA,KAAA,CAACA,gBAAAA,OAAO,IAAR;CAAW,GAAI;WAAf,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,cAAD,EAAA,UAAe,KAAmB,CAAA,GAEjC,QACQ;IAEb,MACF,CAAC,CAAC;AAIF,MAAa,eAAe,aACzB,EAAE,UAAU,GAAG,WAAW;CACzB,KAAA,GAAA,MAAA,eAAA,CAAqC,QAAQ,GAC3C,QAAA,GAAA,MAAA,aAAA,CAAoB,UAAU;EAC5B,GAAG,SAAS;EACZ,GAAG;EACH,MAAM;CACR,CAAC;MACE,OAAO;AACd,GACA,MACF,CAAC,CAAC,EAAE,kBAAkB,GAAG,CAAC"}
1
+ {"version":3,"file":"list.cjs","names":["createSlotComponent","listStyle","styled"],"sources":["../../../../src/components/list/list.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type {\n CSSProps,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { ListStyle } from \"./list.style\"\nimport { cloneElement, isValidElement, useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { listStyle } from \"./list.style\"\n\nexport interface ListItem extends ListItemProps {}\n\nexport interface ListRootProps\n extends HTMLStyledProps<\"ul\">, Omit<ThemeProps<ListStyle>, \"styleType\"> {\n /**\n * If provided, generate elements based on items.\n */\n items?: ListItem[]\n /**\n * The CSS `list-style-position` property.\n */\n stylePosition?: CSSProps[\"listStylePosition\"]\n /**\n * The CSS `list-style-position` property.\n */\n styleType?: CSSProps[\"listStyleType\"]\n}\n\nconst {\n PropsContext: ListPropsContext,\n usePropsContext: useListPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ListRootProps, ListStyle>(\"list\", listStyle)\n\nexport { ListPropsContext, useListPropsContext }\n\n/**\n * `List` is a component for displaying lists. By default, it renders a `ul` element.\n *\n * @see https://yamada-ui.com/docs/components/list\n */\nexport const ListRoot = withProvider<\"ul\", ListRootProps, \"styleType\">(\n ({\n as: asProp,\n children,\n items,\n stylePosition: listStylePosition,\n styleType: listStyleType = \"none\",\n ...rest\n }) => {\n const as = asProp ?? (listStyleType == \"decimal\" ? \"ol\" : undefined)\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items?.map((props, index) => <ListItem key={index} {...props} />)\n }, [children, items])\n\n return (\n <styled.ul\n as={as}\n listStylePosition={listStylePosition}\n listStyleType={listStyleType}\n role=\"list\"\n {...rest}\n >\n {computedChildren}\n </styled.ul>\n )\n },\n \"root\",\n { transferProps: [\"styleType\"] },\n)()\n\nexport interface ListItemProps extends HTMLStyledProps<\"li\"> {\n /**\n * The icon to use.\n */\n icon?: ReactElement<any>\n}\n\nexport const ListItem = withContext<\"li\", ListItemProps>(\n ({ children, icon, ...rest }) => (\n <styled.li {...rest}>\n <ListItemIcon>{icon}</ListItemIcon>\n\n {children}\n </styled.li>\n ),\n \"item\",\n)()\n\nexport interface ListIconProps extends HTMLStyledProps<\"svg\"> {}\n\nexport const ListItemIcon = withContext<\"svg\", ListIconProps>(\n ({ children, ...rest }) => {\n if (isValidElement<HTMLProps<\"svg\">>(children))\n return cloneElement(children, {\n ...children.props,\n ...rest,\n role: \"presentation\",\n })\n else return null\n },\n \"icon\",\n)({ \"data-list-icon\": \"\" })\n"],"mappings":";;;;;;;AAgCA,MAAM,EACJ,cAAc,kBACd,iBAAiB,qBACjB,aACA,iBACEA,yBAAAA,oBAA8C,QAAQC,mBAAAA,SAAS;;;;;;AASnE,MAAa,WAAW,cACrB,EACC,IAAI,QACJ,UACA,OACA,eAAe,mBACf,WAAW,gBAAgB,QAC3B,GAAG,WACC;CACJ,MAAM,KAAK,WAAW,iBAAiB,YAAY,OAAO,KAAA;CAC1D,MAAM,oBAAA,GAAA,MAAA,QAAA,OAAiC;EACrC,IAAI,UAAU,OAAO;EAErB,OAAO,OAAO,KAAK,OAAO,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD,EAAsB,GAAI,MAAQ,GAAnB,KAAmB,CAAC;CACzE,GAAG,CAAC,UAAU,KAAK,CAAC;CAEpB,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,IAAR;EACM;EACe;EACJ;EACf,MAAK;EACL,GAAI;EAEH,UAAA;CACQ,CAAA;AAEf,GACA,QACA,EAAE,eAAe,CAAC,WAAW,EAAE,CACjC,CAAC,CAAC;AASF,MAAa,WAAW,aACrB,EAAE,UAAU,MAAM,GAAG,WACpB,iBAAA,GAAA,kBAAA,KAAA,CAACA,gBAAAA,OAAO,IAAR;CAAW,GAAI;CAAf,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,cAAD,EAAA,UAAe,KAAmB,CAAA,GAEjC,QACQ;AAEb,CAAA,GAAA,MACF,CAAC,CAAC;AAIF,MAAa,eAAe,aACzB,EAAE,UAAU,GAAG,WAAW;CACzB,KAAA,GAAA,MAAA,eAAA,CAAqC,QAAQ,GAC3C,QAAA,GAAA,MAAA,aAAA,CAAoB,UAAU;EAC5B,GAAG,SAAS;EACZ,GAAG;EACH,MAAM;CACR,CAAC;MACE,OAAO;AACd,GACA,MACF,CAAC,CAAC,EAAE,kBAAkB,GAAG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"audio.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/audio.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Dict } from \"../../utils\"\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface AudioProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Audio = withContext<\"svg\", AudioProps>(\n ({ dur = \"1.4s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon fill=\"currentColor\" viewBox=\"0 0 55 80\" {...rest}>\n <g transform=\"matrix(1 0 0 -1 0 80)\">\n {[\n {\n factor: 3,\n values: [\n 20, 45, 57, 80, 64, 32, 66, 45, 64, 23, 66, 13, 64, 56, 34, 34,\n 2, 23, 76, 79, 20,\n ],\n x: \"0px\",\n },\n {\n factor: 1.4,\n values: [80, 55, 33, 5, 75, 23, 73, 33, 12, 14, 60, 80],\n x: \"15px\",\n },\n {\n factor: 1,\n values: [50, 34, 78, 23, 56, 23, 34, 76, 80, 54, 21, 50],\n x: \"30px\",\n },\n {\n factor: 1.4,\n values: [30, 45, 13, 80, 56, 72, 45, 76, 34, 23, 67, 30],\n x: \"45px\",\n },\n ].map(({ factor, values, ...props }, index) => {\n const length = values.length\n\n const keyframes = values.reduce<Dict>((acc, value, index) => {\n const percent = `${Math.round((index / (length - 1)) * 100)}%`\n\n acc[percent] = { transform: `scaleY(${value / 80})` }\n\n return acc\n }, {})\n\n return (\n <styled.rect\n key={index}\n {...props}\n animationDuration={`${dur * factor}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n h=\"80px\"\n rx=\"3px\"\n w=\"10px\"\n _keyframes={keyframes}\n />\n )\n })}\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,QAAQA,gBAAAA,aAClB,EAAE,MAAM,QAAQ,GAAG,WAAW;CAC7B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,MAAK;EAAe,SAAQ;EAAY,GAAI;YAChD,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GAAG,WAAU;aACV;IACC;KACE,QAAQ;KACR,QAAQ;MACN;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAC5D;MAAG;MAAI;MAAI;MAAI;KACjB;KACA,GAAG;IACL;IACA;KACE,QAAQ;KACR,QAAQ;MAAC;MAAI;MAAI;MAAI;MAAG;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;KAAE;KACtD,GAAG;IACL;IACA;KACE,QAAQ;KACR,QAAQ;MAAC;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;KAAE;KACvD,GAAG;IACL;IACA;KACE,QAAQ;KACR,QAAQ;MAAC;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;KAAE;KACvD,GAAG;IACL;GACF,CAAC,CAAC,KAAK,EAAE,QAAQ,QAAQ,GAAG,SAAS,UAAU;IAC7C,MAAM,SAAS,OAAO;IAEtB,MAAM,YAAY,OAAO,QAAc,KAAK,OAAO,UAAU;KAC3D,MAAM,UAAU,GAAG,KAAK,MAAO,SAAS,SAAS,KAAM,GAAG,EAAE;KAE5D,IAAI,WAAW,EAAE,WAAW,UAAU,QAAQ,GAAG,GAAG;KAEpD,OAAO;IACT,GAAG,CAAC,CAAC;IAEL,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,MAAR;KAEE,GAAI;KACJ,mBAAmB,GAAG,MAAM,OAAO;KACnC,yBAAwB;KACxB,yBAAwB;KACxB,GAAE;KACF,IAAG;KACH,GAAE;KACF,YAAY;IACb,GATM,KASN;GAEL,CAAC;EACA,CAAA;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
1
+ {"version":3,"file":"audio.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/audio.tsx"],"sourcesContent":["\"use client\"\n\nimport type { Dict } from \"../../utils\"\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface AudioProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Audio = withContext<\"svg\", AudioProps>(\n ({ dur = \"1.4s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon fill=\"currentColor\" viewBox=\"0 0 55 80\" {...rest}>\n <g transform=\"matrix(1 0 0 -1 0 80)\">\n {[\n {\n factor: 3,\n values: [\n 20, 45, 57, 80, 64, 32, 66, 45, 64, 23, 66, 13, 64, 56, 34, 34,\n 2, 23, 76, 79, 20,\n ],\n x: \"0px\",\n },\n {\n factor: 1.4,\n values: [80, 55, 33, 5, 75, 23, 73, 33, 12, 14, 60, 80],\n x: \"15px\",\n },\n {\n factor: 1,\n values: [50, 34, 78, 23, 56, 23, 34, 76, 80, 54, 21, 50],\n x: \"30px\",\n },\n {\n factor: 1.4,\n values: [30, 45, 13, 80, 56, 72, 45, 76, 34, 23, 67, 30],\n x: \"45px\",\n },\n ].map(({ factor, values, ...props }, index) => {\n const length = values.length\n\n const keyframes = values.reduce<Dict>((acc, value, index) => {\n const percent = `${Math.round((index / (length - 1)) * 100)}%`\n\n acc[percent] = { transform: `scaleY(${value / 80})` }\n\n return acc\n }, {})\n\n return (\n <styled.rect\n key={index}\n {...props}\n animationDuration={`${dur * factor}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n h=\"80px\"\n rx=\"3px\"\n w=\"10px\"\n _keyframes={keyframes}\n />\n )\n })}\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,QAAQA,gBAAAA,aAClB,EAAE,MAAM,QAAQ,GAAG,WAAW;CAC7B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,MAAK;EAAe,SAAQ;EAAY,GAAI;EAChD,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GAAG,WAAU;GACV,UAAA;IACC;KACE,QAAQ;KACR,QAAQ;MACN;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAC5D;MAAG;MAAI;MAAI;MAAI;KACjB;KACA,GAAG;IACL;IACA;KACE,QAAQ;KACR,QAAQ;MAAC;MAAI;MAAI;MAAI;MAAG;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;KAAE;KACtD,GAAG;IACL;IACA;KACE,QAAQ;KACR,QAAQ;MAAC;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;KAAE;KACvD,GAAG;IACL;IACA;KACE,QAAQ;KACR,QAAQ;MAAC;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;MAAI;KAAE;KACvD,GAAG;IACL;GACF,CAAC,CAAC,KAAK,EAAE,QAAQ,QAAQ,GAAG,SAAS,UAAU;IAC7C,MAAM,SAAS,OAAO;IAEtB,MAAM,YAAY,OAAO,QAAc,KAAK,OAAO,UAAU;KAC3D,MAAM,UAAU,GAAG,KAAK,MAAO,SAAS,SAAS,KAAM,GAAG,EAAE;KAE5D,IAAI,WAAW,EAAE,WAAW,UAAU,QAAQ,GAAG,GAAG;KAEpD,OAAO;IACT,GAAG,CAAC,CAAC;IAEL,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,MAAR;KAEE,GAAI;KACJ,mBAAmB,GAAG,MAAM,OAAO;KACnC,yBAAwB;KACxB,yBAAwB;KACxB,GAAE;KACF,IAAG;KACH,GAAE;KACF,YAAY;IACb,GATM,KASN;GAEL,CAAC;EACA,CAAA;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"background.cjs","names":["useLoadingComponent","motion","isValidElement","Text"],"sources":["../../../../src/components/loading/background.tsx"],"sourcesContent":["import type { Variants } from \"motion/react\"\nimport type { FC } from \"react\"\nimport type { LoadingSharedProps } from \"./loading-provider\"\nimport { memo } from \"react\"\nimport { useTimeout } from \"../../hooks/use-timeout\"\nimport { isValidElement } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { Text } from \"../text\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nconst variants: Variants = {\n animate: {\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n scale: 0.95,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n scale: 0.95,\n },\n}\n\nexport interface BackgroundProps extends LoadingSharedProps {}\n\nexport const Background: FC<BackgroundProps> = memo(\n ({ duration, initial, loadingScheme, message, onFinish }) => {\n const Component = useLoadingComponent(loadingScheme)\n\n useTimeout(onFinish, duration)\n\n return (\n <motion.div\n data-loading\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg.panel\"\n bottom=\"md\"\n boxShadow=\"lg\"\n display=\"flex\"\n exit=\"exit\"\n gap=\"sm\"\n initial={initial}\n justifyContent=\"center\"\n maxW=\"20rem\"\n p=\"sm\"\n position=\"fixed\"\n right=\"md\"\n rounded=\"l2\"\n variants={variants}\n zIndex=\"beerus\"\n >\n <Component fontSize=\"xl\" />\n\n {message ? (\n isValidElement(message) ? (\n message\n ) : (\n <Text fontSize=\"sm\" lineClamp={1}>\n {message}\n </Text>\n )\n ) : null}\n </motion.div>\n )\n },\n)\n\nBackground.displayName = \"Background\"\n"],"mappings":";;;;;;;;AAUA,MAAM,WAAqB;CACzB,SAAS;EACP,SAAS;EACT,OAAO;EACP,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAK;GAAC;EACvB;CACF;CACA,MAAM;EACJ,SAAS;EACT,OAAO;EACP,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAG;GAAC;EACrB;CACF;CACA,SAAS;EACP,SAAS;EACT,OAAO;CACT;AACF;AAIA,MAAa,cAAA,GAAA,MAAA,KAAA,EACV,EAAE,UAAU,SAAS,eAAe,SAAS,eAAe;CAC3D,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,gCAAA,WAAW,UAAU,QAAQ;CAE7B,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,gBAAA;EACA,YAAW;EACX,SAAQ;EACR,IAAG;EACH,QAAO;EACP,WAAU;EACV,SAAQ;EACR,MAAK;EACL,KAAI;EACK;EACT,gBAAe;EACf,MAAK;EACL,GAAE;EACF,UAAS;EACT,OAAM;EACN,SAAQ;EACE;EACV,QAAO;YAlBT,CAoBE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,UAAS,KAAM,CAAA,GAEzB,UACCC,iBAAAA,eAAe,OAAO,IACpB,UAEA,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;GAAM,UAAS;GAAK,WAAW;aAC5B;EACG,CAAA,IAEN,IACM;;AAEhB,CACF;AAEA,WAAW,cAAc"}
1
+ {"version":3,"file":"background.cjs","names":["useLoadingComponent","motion","isValidElement","Text"],"sources":["../../../../src/components/loading/background.tsx"],"sourcesContent":["import type { Variants } from \"motion/react\"\nimport type { FC } from \"react\"\nimport type { LoadingSharedProps } from \"./loading-provider\"\nimport { memo } from \"react\"\nimport { useTimeout } from \"../../hooks/use-timeout\"\nimport { isValidElement } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { Text } from \"../text\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nconst variants: Variants = {\n animate: {\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n scale: 0.95,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n scale: 0.95,\n },\n}\n\nexport interface BackgroundProps extends LoadingSharedProps {}\n\nexport const Background: FC<BackgroundProps> = memo(\n ({ duration, initial, loadingScheme, message, onFinish }) => {\n const Component = useLoadingComponent(loadingScheme)\n\n useTimeout(onFinish, duration)\n\n return (\n <motion.div\n data-loading\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg.panel\"\n bottom=\"md\"\n boxShadow=\"lg\"\n display=\"flex\"\n exit=\"exit\"\n gap=\"sm\"\n initial={initial}\n justifyContent=\"center\"\n maxW=\"20rem\"\n p=\"sm\"\n position=\"fixed\"\n right=\"md\"\n rounded=\"l2\"\n variants={variants}\n zIndex=\"beerus\"\n >\n <Component fontSize=\"xl\" />\n\n {message ? (\n isValidElement(message) ? (\n message\n ) : (\n <Text fontSize=\"sm\" lineClamp={1}>\n {message}\n </Text>\n )\n ) : null}\n </motion.div>\n )\n },\n)\n\nBackground.displayName = \"Background\"\n"],"mappings":";;;;;;;;AAUA,MAAM,WAAqB;CACzB,SAAS;EACP,SAAS;EACT,OAAO;EACP,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAK;GAAC;EACvB;CACF;CACA,MAAM;EACJ,SAAS;EACT,OAAO;EACP,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAG;GAAC;EACrB;CACF;CACA,SAAS;EACP,SAAS;EACT,OAAO;CACT;AACF;AAIA,MAAa,cAAA,GAAA,MAAA,KAAA,EACV,EAAE,UAAU,SAAS,eAAe,SAAS,eAAe;CAC3D,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,gCAAA,WAAW,UAAU,QAAQ;CAE7B,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,gBAAA;EACA,YAAW;EACX,SAAQ;EACR,IAAG;EACH,QAAO;EACP,WAAU;EACV,SAAQ;EACR,MAAK;EACL,KAAI;EACK;EACT,gBAAe;EACf,MAAK;EACL,GAAE;EACF,UAAS;EACT,OAAM;EACN,SAAQ;EACE;EACV,QAAO;EAlBT,UAAA,CAoBE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,UAAS,KAAM,CAAA,GAEzB,UACCC,iBAAAA,eAAe,OAAO,IACpB,UAEA,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;GAAM,UAAS;GAAK,WAAW;GAC5B,UAAA;EACG,CAAA,IAEN,IACM;;AAEhB,CACF;AAEA,WAAW,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"circles.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/circles.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface CirclesProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Circles = withContext<\"svg\", CirclesProps>(\n ({ dur = \"3s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 58 58\" {...rest}>\n <g fill=\"none\" fillRule=\"evenodd\">\n <g stroke=\"currentColor\" strokeWidth=\"1.5\" transform=\"translate(2 1)\">\n {[\n { cx: \"42.601px\", cy: \"11.462px\" },\n { animationDelay: \"0.375s\", cx: \"49.063px\", cy: \"27.063px\" },\n { animationDelay: \"0.75s\", cx: \"42.601px\", cy: \"42.663px\" },\n { animationDelay: \"1.125s\", cx: \"27px\", cy: \"49.125px\" },\n { animationDelay: \"1.5s\", cx: \"11.399px\", cy: \"42.663px\" },\n { animationDelay: \"1.875s\", cx: \"4.938px\", cy: \"27.063px\" },\n { animationDelay: \"2.25s\", cx: \"11.399px\", cy: \"11.462px\" },\n { animationDelay: \"2.625s\", cx: \"27px\", cy: \"5px\" },\n ].map((props, index) => (\n <styled.circle\n key={index}\n {...props}\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n fill=\"currentColor\"\n fillOpacity={!index ? \"1\" : \"0\"}\n r=\"5px\"\n _keyframes={{\n \"0%, 25%, 100%\": { fillOpacity: 0 },\n \"12.5%\": { fillOpacity: 1 },\n }}\n />\n ))}\n </g>\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,UAAUA,gBAAAA,aACpB,EAAE,MAAM,MAAM,GAAG,WAAW;CAC3B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;YAClD,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GAAG,MAAK;GAAO,UAAS;aACtB,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;IAAG,QAAO;IAAe,aAAY;IAAM,WAAU;cAClD;KACC;MAAE,IAAI;MAAY,IAAI;KAAW;KACjC;MAAE,gBAAgB;MAAU,IAAI;MAAY,IAAI;KAAW;KAC3D;MAAE,gBAAgB;MAAS,IAAI;MAAY,IAAI;KAAW;KAC1D;MAAE,gBAAgB;MAAU,IAAI;MAAQ,IAAI;KAAW;KACvD;MAAE,gBAAgB;MAAQ,IAAI;MAAY,IAAI;KAAW;KACzD;MAAE,gBAAgB;MAAU,IAAI;MAAW,IAAI;KAAW;KAC1D;MAAE,gBAAgB;MAAS,IAAI;MAAY,IAAI;KAAW;KAC1D;MAAE,gBAAgB;MAAU,IAAI;MAAQ,IAAI;KAAM;IACpD,CAAC,CAAC,KAAK,OAAO,UACZ,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;KAEE,GAAI;KACJ,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,yBAAwB;KACxB,MAAK;KACL,aAAa,CAAC,QAAQ,MAAM;KAC5B,GAAE;KACF,YAAY;MACV,iBAAiB,EAAE,aAAa,EAAE;MAClC,SAAS,EAAE,aAAa,EAAE;KAC5B;IACD,GAZM,KAYN,CACF;GACA,CAAA;EACF,CAAA;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
1
+ {"version":3,"file":"circles.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/circles.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface CirclesProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Circles = withContext<\"svg\", CirclesProps>(\n ({ dur = \"3s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 58 58\" {...rest}>\n <g fill=\"none\" fillRule=\"evenodd\">\n <g stroke=\"currentColor\" strokeWidth=\"1.5\" transform=\"translate(2 1)\">\n {[\n { cx: \"42.601px\", cy: \"11.462px\" },\n { animationDelay: \"0.375s\", cx: \"49.063px\", cy: \"27.063px\" },\n { animationDelay: \"0.75s\", cx: \"42.601px\", cy: \"42.663px\" },\n { animationDelay: \"1.125s\", cx: \"27px\", cy: \"49.125px\" },\n { animationDelay: \"1.5s\", cx: \"11.399px\", cy: \"42.663px\" },\n { animationDelay: \"1.875s\", cx: \"4.938px\", cy: \"27.063px\" },\n { animationDelay: \"2.25s\", cx: \"11.399px\", cy: \"11.462px\" },\n { animationDelay: \"2.625s\", cx: \"27px\", cy: \"5px\" },\n ].map((props, index) => (\n <styled.circle\n key={index}\n {...props}\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n fill=\"currentColor\"\n fillOpacity={!index ? \"1\" : \"0\"}\n r=\"5px\"\n _keyframes={{\n \"0%, 25%, 100%\": { fillOpacity: 0 },\n \"12.5%\": { fillOpacity: 1 },\n }}\n />\n ))}\n </g>\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,UAAUA,gBAAAA,aACpB,EAAE,MAAM,MAAM,GAAG,WAAW;CAC3B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;EAClD,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GAAG,MAAK;GAAO,UAAS;GACtB,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;IAAG,QAAO;IAAe,aAAY;IAAM,WAAU;IAClD,UAAA;KACC;MAAE,IAAI;MAAY,IAAI;KAAW;KACjC;MAAE,gBAAgB;MAAU,IAAI;MAAY,IAAI;KAAW;KAC3D;MAAE,gBAAgB;MAAS,IAAI;MAAY,IAAI;KAAW;KAC1D;MAAE,gBAAgB;MAAU,IAAI;MAAQ,IAAI;KAAW;KACvD;MAAE,gBAAgB;MAAQ,IAAI;MAAY,IAAI;KAAW;KACzD;MAAE,gBAAgB;MAAU,IAAI;MAAW,IAAI;KAAW;KAC1D;MAAE,gBAAgB;MAAS,IAAI;MAAY,IAAI;KAAW;KAC1D;MAAE,gBAAgB;MAAU,IAAI;MAAQ,IAAI;KAAM;IACpD,CAAC,CAAC,KAAK,OAAO,UACZ,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;KAEE,GAAI;KACJ,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,yBAAwB;KACxB,MAAK;KACL,aAAa,CAAC,QAAQ,MAAM;KAC5B,GAAE;KACF,YAAY;MACV,iBAAiB,EAAE,aAAa,EAAE;MAClC,SAAS,EAAE,aAAa,EAAE;KAC5B;IACD,GAZM,KAYN,CACF;GACA,CAAA;EACF,CAAA;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"dots.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/dots.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface DotsProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Dots = withContext<\"svg\", DotsProps>(({ dur = \"1s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon fill=\"currentColor\" viewBox=\"0 0 120 30\" {...rest}>\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"15px\"\n cy=\"15px\"\n r=\"15px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { opacity: \"1\", transform: \"scale(1)\" },\n \"50%\": { opacity: \"0.5\", transform: `scale(calc(9 / 15))` },\n }}\n />\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"60px\"\n cy=\"15px\"\n fillOpacity=\"1\"\n r=\"9px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { opacity: \"0.5\", transform: \"scale(1)\" },\n \"50%\": { opacity: \"1\", transform: `scale(calc(15 / 9))` },\n }}\n />\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"105px\"\n cy=\"15px\"\n r=\"15px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { opacity: \"1\", transform: \"scale(1)\" },\n \"50%\": { opacity: \"0.5\", transform: `scale(calc(9 / 15))` },\n }}\n />\n </Icon>\n )\n})(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aAA+B,EAAE,MAAM,MAAM,GAAG,WAAW;CAC7E,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,aAAAA,MAAD;EAAM,MAAK;EAAe,SAAQ;EAAa,GAAI;YAAnD;GACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,YAAY;KACV,YAAY;MAAE,SAAS;MAAK,WAAW;KAAW;KAClD,OAAO;MAAE,SAAS;MAAO,WAAW;KAAsB;IAC5D;GACD,CAAA;GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,aAAY;IACZ,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,YAAY;KACV,YAAY;MAAE,SAAS;MAAO,WAAW;KAAW;KACpD,OAAO;MAAE,SAAS;MAAK,WAAW;KAAsB;IAC1D;GACD,CAAA;GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,YAAY;KACV,YAAY;MAAE,SAAS;MAAK,WAAW;KAAW;KAClD,OAAO;MAAE,SAAS;MAAO,WAAW;KAAsB;IAC5D;GACD,CAAA;EACG;;AAEV,CAAC,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
1
+ {"version":3,"file":"dots.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/dots.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface DotsProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Dots = withContext<\"svg\", DotsProps>(({ dur = \"1s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon fill=\"currentColor\" viewBox=\"0 0 120 30\" {...rest}>\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"15px\"\n cy=\"15px\"\n r=\"15px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { opacity: \"1\", transform: \"scale(1)\" },\n \"50%\": { opacity: \"0.5\", transform: `scale(calc(9 / 15))` },\n }}\n />\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"60px\"\n cy=\"15px\"\n fillOpacity=\"1\"\n r=\"9px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { opacity: \"0.5\", transform: \"scale(1)\" },\n \"50%\": { opacity: \"1\", transform: `scale(calc(15 / 9))` },\n }}\n />\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"105px\"\n cy=\"15px\"\n r=\"15px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { opacity: \"1\", transform: \"scale(1)\" },\n \"50%\": { opacity: \"0.5\", transform: `scale(calc(9 / 15))` },\n }}\n />\n </Icon>\n )\n})(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aAA+B,EAAE,MAAM,MAAM,GAAG,WAAW;CAC7E,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,aAAAA,MAAD;EAAM,MAAK;EAAe,SAAQ;EAAa,GAAI;EAAnD,UAAA;GACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,YAAY;KACV,YAAY;MAAE,SAAS;MAAK,WAAW;KAAW;KAClD,OAAO;MAAE,SAAS;MAAO,WAAW;KAAsB;IAC5D;GACD,CAAA;GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,aAAY;IACZ,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,YAAY;KACV,YAAY;MAAE,SAAS;MAAO,WAAW;KAAW;KACpD,OAAO;MAAE,SAAS;MAAK,WAAW;KAAsB;IAC1D;GACD,CAAA;GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,YAAY;KACV,YAAY;MAAE,SAAS;MAAK,WAAW;KAAW;KAClD,OAAO;MAAE,SAAS;MAAO,WAAW;KAAsB;IAC5D;GACD,CAAA;EACG;;AAEV,CAAC,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"grid.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/grid.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface GridProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Grid = withContext<\"svg\", GridProps>(({ dur = \"1s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon fill=\"currentColor\" viewBox=\"0 0 105 105\" {...rest}>\n {[\n { cx: \"12.5px\", cy: \"12.5px\" },\n { animationDelay: \"0.1s\", cx: \"12.5px\", cy: \"52.5px\" },\n { animationDelay: \"0.3s\", cx: \"52.5px\", cy: \"12.5px\" },\n { animationDelay: \"0.6s\", cx: \"52.5px\", cy: \"52.5px\" },\n { animationDelay: \"0.8s\", cx: \"92.5px\", cy: \"12.5px\" },\n { animationDelay: \"0.4s\", cx: \"92.5px\", cy: \"52.5px\" },\n { animationDelay: \"0.7s\", cx: \"12.5px\", cy: \"92.5px\" },\n { animationDelay: \"0.5s\", cx: \"52.5px\", cy: \"92.5px\" },\n { animationDelay: \"0.2s\", cx: \"92.5px\", cy: \"92.5px\" },\n ].map((props, index) => (\n <styled.circle\n key={index}\n {...props}\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n r=\"12.5px\"\n _keyframes={{\n \"0%, 100%\": { fillOpacity: \"1\" },\n \"50%\": { fillOpacity: \"0.2\" },\n }}\n />\n ))}\n </Icon>\n )\n})(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aAA+B,EAAE,MAAM,MAAM,GAAG,WAAW;CAC7E,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,MAAK;EAAe,SAAQ;EAAc,GAAI;YACjD;GACC;IAAE,IAAI;IAAU,IAAI;GAAS;GAC7B;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;EACvD,CAAC,CAAC,KAAK,OAAO,UACZ,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;GAEE,GAAI;GACJ,mBAAmB,GAAG,IAAI;GAC1B,yBAAwB;GACxB,yBAAwB;GACxB,GAAE;GACF,YAAY;IACV,YAAY,EAAE,aAAa,IAAI;IAC/B,OAAO,EAAE,aAAa,MAAM;GAC9B;EACD,GAVM,KAUN,CACF;CACG,CAAA;AAEV,CAAC,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
1
+ {"version":3,"file":"grid.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/grid.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface GridProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Grid = withContext<\"svg\", GridProps>(({ dur = \"1s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon fill=\"currentColor\" viewBox=\"0 0 105 105\" {...rest}>\n {[\n { cx: \"12.5px\", cy: \"12.5px\" },\n { animationDelay: \"0.1s\", cx: \"12.5px\", cy: \"52.5px\" },\n { animationDelay: \"0.3s\", cx: \"52.5px\", cy: \"12.5px\" },\n { animationDelay: \"0.6s\", cx: \"52.5px\", cy: \"52.5px\" },\n { animationDelay: \"0.8s\", cx: \"92.5px\", cy: \"12.5px\" },\n { animationDelay: \"0.4s\", cx: \"92.5px\", cy: \"52.5px\" },\n { animationDelay: \"0.7s\", cx: \"12.5px\", cy: \"92.5px\" },\n { animationDelay: \"0.5s\", cx: \"52.5px\", cy: \"92.5px\" },\n { animationDelay: \"0.2s\", cx: \"92.5px\", cy: \"92.5px\" },\n ].map((props, index) => (\n <styled.circle\n key={index}\n {...props}\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n r=\"12.5px\"\n _keyframes={{\n \"0%, 100%\": { fillOpacity: \"1\" },\n \"50%\": { fillOpacity: \"0.2\" },\n }}\n />\n ))}\n </Icon>\n )\n})(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aAA+B,EAAE,MAAM,MAAM,GAAG,WAAW;CAC7E,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,MAAK;EAAe,SAAQ;EAAc,GAAI;EACjD,UAAA;GACC;IAAE,IAAI;IAAU,IAAI;GAAS;GAC7B;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;GACrD;IAAE,gBAAgB;IAAQ,IAAI;IAAU,IAAI;GAAS;EACvD,CAAC,CAAC,KAAK,OAAO,UACZ,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;GAEE,GAAI;GACJ,mBAAmB,GAAG,IAAI;GAC1B,yBAAwB;GACxB,yBAAwB;GACxB,GAAE;GACF,YAAY;IACV,YAAY,EAAE,aAAa,IAAI;IAC/B,OAAO,EAAE,aAAa,MAAM;GAC9B;EACD,GAVM,KAUN,CACF;CACG,CAAA;AAEV,CAAC,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"loading-provider.cjs","names":["Screen","Page","Background","AnimatePresence","Portal","RemoveScroll"],"sources":["../../../../src/components/loading/loading-provider.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, ReactNode, RefObject } from \"react\"\nimport type { LoadingConfig, LoadingScheme, ThemeConfig } from \"../../core\"\nimport { AnimatePresence } from \"motion/react\"\nimport { createContext, createRef, use, useMemo, useRef, useState } from \"react\"\nimport { RemoveScroll } from \"react-remove-scroll\"\nimport { assignRef, isNumber, useUpdateEffect } from \"../../utils\"\nimport { Portal } from \"../portal\"\nimport { Background } from \"./background\"\nimport { Page } from \"./page\"\nimport { Screen } from \"./screen\"\n\ninterface LoadingMethods {\n /**\n * Function to finish loading.\n */\n finish: () => void\n /**\n * Function to forcefully update the loading state.\n *\n * Please be careful, as it will forcefully overwrite the state of the loading component.\n */\n force: (state: Partial<LoadingState>) => void\n /**\n * Function to start loading.\n *\n * If you specify a `message` etc. as an argument, the loading will change accordingly.\n */\n start: (options?: LoadingOptions) => void\n /**\n * Function to update loading.\n *\n * If you specify a `message` etc. as an argument, the loading will change accordingly.\n */\n update: (options: LoadingOptions) => void\n}\n\nexport interface LoadingOptions {\n duration?: null | number\n loadingScheme?: LoadingScheme\n message?: ReactNode\n}\n\ninterface LoadingState {\n duration: null | number\n loadingCount: number\n loadingScheme: LoadingScheme\n message: ReactNode | undefined\n}\n\ninterface LoadingContext {\n /**\n * The background loading methods.\n */\n background: LoadingMethods\n /**\n * The page loading methods.\n */\n page: LoadingMethods\n /**\n * The screen loading methods.\n */\n screen: LoadingMethods\n}\n\nconst LoadingContext = createContext({} as LoadingContext)\n\nconst createController = () => ({\n finish: createRef<LoadingMethods[\"finish\"]>(),\n force: createRef<LoadingMethods[\"force\"]>(),\n start: createRef<LoadingMethods[\"start\"]>(),\n update: createRef<LoadingMethods[\"update\"]>(),\n})\n\ntype Controller = ReturnType<typeof createController>\n\nconst createMethods = (refs: RefObject<Controller>): LoadingMethods => ({\n finish: () => refs.current.finish.current?.(),\n force: (state) => refs.current.force.current?.(state),\n start: (props) => refs.current.start.current?.(props),\n update: (props) => refs.current.update.current?.(props),\n})\n\nconst incrementCount = (prev: number) => prev + 1\nconst decrementCount = (prev: number) => (prev === 0 ? prev : prev - 1)\n\nexport interface LoadingProviderProps extends PropsWithChildren<\n ThemeConfig[\"loading\"]\n> {}\n\nexport const LoadingProvider: FC<LoadingProviderProps> = ({\n background: backgroundConfig,\n children,\n page: pageConfig,\n screen: screenConfig,\n}) => {\n const screen = useRef(createController())\n const page = useRef(createController())\n const background = useRef(createController())\n\n const value = useMemo(\n () => ({\n background: createMethods(background),\n page: createMethods(page),\n screen: createMethods(screen),\n }),\n [],\n )\n\n return (\n <LoadingContext value={value}>\n {children}\n\n <Controller ref={screen} {...screenConfig} component={Screen} />\n\n <Controller ref={page} {...pageConfig} component={Page} />\n\n <Controller\n ref={background}\n {...backgroundConfig}\n blockScrollOnMount={backgroundConfig?.blockScrollOnMount ?? false}\n component={Background}\n />\n </LoadingContext>\n )\n}\n\nexport interface LoadingSharedProps {\n duration: null | number\n loadingScheme: LoadingScheme\n message: ReactNode | undefined\n onFinish: () => void\n initial?: boolean | string\n}\n\ninterface ControllerProps extends LoadingConfig {\n component: FC<LoadingSharedProps>\n ref: RefObject<Controller>\n}\n\nconst Controller: FC<ControllerProps> = ({\n ref,\n allowPinchZoom = false,\n blockScrollOnMount = true,\n component: Component,\n duration: durationProp = null,\n loadingCount: loadingCountProp = 0,\n loadingScheme: loadingSchemeProp = \"oval\",\n}) => {\n const loading = useRef<boolean>(false)\n const [{ duration, loadingCount, loadingScheme, message }, setState] =\n useState<LoadingState>({\n duration: durationProp,\n loadingCount: loadingCountProp,\n loadingScheme: loadingSchemeProp,\n message: undefined,\n })\n\n const { finish, force, start, update } = useMemo<LoadingMethods>(\n () => ({\n finish: () => {\n loading.current = false\n\n setState(({ loadingCount }) => ({\n duration: durationProp,\n loadingCount: decrementCount(loadingCount),\n loadingScheme: loadingSchemeProp,\n message: undefined,\n }))\n },\n\n force: ({\n duration = durationProp,\n loadingCount = 0,\n loadingScheme = loadingSchemeProp,\n message,\n }) => {\n loading.current = !!loadingCount\n\n setState({\n duration,\n loadingCount,\n loadingScheme,\n message,\n })\n },\n\n start: ({\n duration = durationProp,\n loadingScheme = loadingSchemeProp,\n message,\n } = {}) => {\n loading.current = true\n\n setState(({ loadingCount }) => ({\n duration,\n loadingCount: incrementCount(loadingCount),\n loadingScheme,\n message,\n }))\n },\n\n update: (next) => setState((prev) => ({ ...prev, ...next })),\n }),\n [durationProp, loadingSchemeProp],\n )\n\n assignRef(ref.current.start, start)\n assignRef(ref.current.finish, finish)\n assignRef(ref.current.update, update)\n assignRef(ref.current.force, force)\n\n const props: LoadingSharedProps = {\n duration,\n initial: loadingCountProp > 0 ? false : \"initial\",\n loadingScheme,\n message,\n onFinish: finish,\n }\n\n useUpdateEffect(() => {\n if (loadingCountProp > 0 || isNumber(durationProp))\n setState({\n duration: durationProp,\n loadingCount: loadingCountProp,\n loadingScheme: loadingSchemeProp,\n message: undefined,\n })\n }, [loadingCountProp, durationProp, loadingSchemeProp])\n\n return (\n <AnimatePresence initial={false}>\n {loadingCount ? (\n <Portal>\n <RemoveScroll\n allowPinchZoom={allowPinchZoom}\n enabled={blockScrollOnMount}\n forwardProps\n >\n <Component {...props} />\n </RemoveScroll>\n </Portal>\n ) : null}\n </AnimatePresence>\n )\n}\n\n/**\n * `useLoading` is a custom hook for controlling the loading of the application.\n *\n * @see https://yamada-ui.com/docs/hooks/use-loading\n */\nexport const useLoading = (): LoadingContext => {\n const { background, page, screen } = use(LoadingContext)\n\n const context = useMemo(\n () => ({ background, page, screen }),\n [background, page, screen],\n )\n\n return context\n}\n"],"mappings":";;;;;;;;;;;;;AAkEA,MAAM,kBAAA,GAAA,MAAA,cAAA,CAA+B,CAAC,CAAmB;AAEzD,MAAM,0BAA0B;CAC9B,SAAA,GAAA,MAAA,UAAA,CAA4C;CAC5C,QAAA,GAAA,MAAA,UAAA,CAA0C;CAC1C,QAAA,GAAA,MAAA,UAAA,CAA0C;CAC1C,SAAA,GAAA,MAAA,UAAA,CAA4C;AAC9C;AAIA,MAAM,iBAAiB,UAAiD;CACtE,cAAc,KAAK,QAAQ,OAAO,UAAU;CAC5C,QAAQ,UAAU,KAAK,QAAQ,MAAM,UAAU,KAAK;CACpD,QAAQ,UAAU,KAAK,QAAQ,MAAM,UAAU,KAAK;CACpD,SAAS,UAAU,KAAK,QAAQ,OAAO,UAAU,KAAK;AACxD;AAEA,MAAM,kBAAkB,SAAiB,OAAO;AAChD,MAAM,kBAAkB,SAAkB,SAAS,IAAI,OAAO,OAAO;AAMrE,MAAa,mBAA6C,EACxD,YAAY,kBACZ,UACA,MAAM,YACN,QAAQ,mBACJ;CACJ,MAAM,UAAA,GAAA,MAAA,OAAA,CAAgB,iBAAiB,CAAC;CACxC,MAAM,QAAA,GAAA,MAAA,OAAA,CAAc,iBAAiB,CAAC;CACtC,MAAM,cAAA,GAAA,MAAA,OAAA,CAAoB,iBAAiB,CAAC;CAE5C,MAAM,SAAA,GAAA,MAAA,QAAA,QACG;EACL,YAAY,cAAc,UAAU;EACpC,MAAM,cAAc,IAAI;EACxB,QAAQ,cAAc,MAAM;CAC9B,IACA,CAAC,CACH;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,gBAAD;EAAuB;YAAvB;GACG;GAED,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IAAY,KAAK;IAAQ,GAAI;IAAc,WAAWA,eAAAA;GAAS,CAAA;GAE/D,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IAAY,KAAK;IAAM,GAAI;IAAY,WAAWC,aAAAA;GAAO,CAAA;GAEzD,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IACE,KAAK;IACL,GAAI;IACJ,oBAAoB,kBAAkB,sBAAsB;IAC5D,WAAWC,mBAAAA;GACZ,CAAA;EACa;;AAEpB;AAeA,MAAM,cAAmC,EACvC,KACA,iBAAiB,OACjB,qBAAqB,MACrB,WAAW,WACX,UAAU,eAAe,MACzB,cAAc,mBAAmB,GACjC,eAAe,oBAAoB,aAC/B;CACJ,MAAM,WAAA,GAAA,MAAA,OAAA,CAA0B,KAAK;CACrC,MAAM,CAAC,EAAE,UAAU,cAAc,eAAe,WAAW,aAAA,GAAA,MAAA,SAAA,CAClC;EACrB,UAAU;EACV,cAAc;EACd,eAAe;EACf,SAAS,KAAA;CACX,CAAC;CAEH,MAAM,EAAE,QAAQ,OAAO,OAAO,YAAA,GAAA,MAAA,QAAA,QACrB;EACL,cAAc;GACZ,QAAQ,UAAU;GAElB,UAAU,EAAE,oBAAoB;IAC9B,UAAU;IACV,cAAc,eAAe,YAAY;IACzC,eAAe;IACf,SAAS,KAAA;GACX,EAAE;EACJ;EAEA,QAAQ,EACN,WAAW,cACX,eAAe,GACf,gBAAgB,mBAChB,cACI;GACJ,QAAQ,UAAU,CAAC,CAAC;GAEpB,SAAS;IACP;IACA;IACA;IACA;GACF,CAAC;EACH;EAEA,QAAQ,EACN,WAAW,cACX,gBAAgB,mBAChB,YACE,CAAC,MAAM;GACT,QAAQ,UAAU;GAElB,UAAU,EAAE,oBAAoB;IAC9B;IACA,cAAc,eAAe,YAAY;IACzC;IACA;GACF,EAAE;EACJ;EAEA,SAAS,SAAS,UAAU,UAAU;GAAE,GAAG;GAAM,GAAG;EAAK,EAAE;CAC7D,IACA,CAAC,cAAc,iBAAiB,CAClC;CAEA,YAAA,UAAU,IAAI,QAAQ,OAAO,KAAK;CAClC,YAAA,UAAU,IAAI,QAAQ,QAAQ,MAAM;CACpC,YAAA,UAAU,IAAI,QAAQ,QAAQ,MAAM;CACpC,YAAA,UAAU,IAAI,QAAQ,OAAO,KAAK;CAElC,MAAM,QAA4B;EAChC;EACA,SAAS,mBAAmB,IAAI,QAAQ;EACxC;EACA;EACA,UAAU;CACZ;CAEA,eAAA,sBAAsB;EACpB,IAAI,mBAAmB,MAAA,GAAA,oBAAA,cAAA,SAAA,CAAc,YAAY,GAC/C,SAAS;GACP,UAAU;GACV,cAAc;GACd,eAAe;GACf,SAAS,KAAA;EACX,CAAC;CACL,GAAG;EAAC;EAAkB;EAAc;CAAiB,CAAC;CAEtD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,iBAAD;EAAiB,SAAS;YACvB,eACC,iBAAA,GAAA,kBAAA,IAAA,CAACC,eAAAA,QAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,cAAD;GACkB;GAChB,SAAS;GACT,cAAA;aAEA,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,GAAI,MAAQ,CAAA;EACX,CAAA,EACR,CAAA,IACN;CACW,CAAA;AAErB;;;;;;AAOA,MAAa,mBAAmC;CAC9C,MAAM,EAAE,YAAY,MAAM,YAAA,GAAA,MAAA,IAAA,CAAe,cAAc;CAOvD,QAAA,GAAA,MAAA,QAAA,QAJS;EAAE;EAAY;EAAM;CAAO,IAClC;EAAC;EAAY;EAAM;CAAM,CAGd;AACf"}
1
+ {"version":3,"file":"loading-provider.cjs","names":["Screen","Page","Background","AnimatePresence","Portal","RemoveScroll"],"sources":["../../../../src/components/loading/loading-provider.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, ReactNode, RefObject } from \"react\"\nimport type { LoadingConfig, LoadingScheme, ThemeConfig } from \"../../core\"\nimport { AnimatePresence } from \"motion/react\"\nimport { createContext, createRef, use, useMemo, useRef, useState } from \"react\"\nimport { RemoveScroll } from \"react-remove-scroll\"\nimport { assignRef, isNumber, useUpdateEffect } from \"../../utils\"\nimport { Portal } from \"../portal\"\nimport { Background } from \"./background\"\nimport { Page } from \"./page\"\nimport { Screen } from \"./screen\"\n\ninterface LoadingMethods {\n /**\n * Function to finish loading.\n */\n finish: () => void\n /**\n * Function to forcefully update the loading state.\n *\n * Please be careful, as it will forcefully overwrite the state of the loading component.\n */\n force: (state: Partial<LoadingState>) => void\n /**\n * Function to start loading.\n *\n * If you specify a `message` etc. as an argument, the loading will change accordingly.\n */\n start: (options?: LoadingOptions) => void\n /**\n * Function to update loading.\n *\n * If you specify a `message` etc. as an argument, the loading will change accordingly.\n */\n update: (options: LoadingOptions) => void\n}\n\nexport interface LoadingOptions {\n duration?: null | number\n loadingScheme?: LoadingScheme\n message?: ReactNode\n}\n\ninterface LoadingState {\n duration: null | number\n loadingCount: number\n loadingScheme: LoadingScheme\n message: ReactNode | undefined\n}\n\ninterface LoadingContext {\n /**\n * The background loading methods.\n */\n background: LoadingMethods\n /**\n * The page loading methods.\n */\n page: LoadingMethods\n /**\n * The screen loading methods.\n */\n screen: LoadingMethods\n}\n\nconst LoadingContext = createContext({} as LoadingContext)\n\nconst createController = () => ({\n finish: createRef<LoadingMethods[\"finish\"]>(),\n force: createRef<LoadingMethods[\"force\"]>(),\n start: createRef<LoadingMethods[\"start\"]>(),\n update: createRef<LoadingMethods[\"update\"]>(),\n})\n\ntype Controller = ReturnType<typeof createController>\n\nconst createMethods = (refs: RefObject<Controller>): LoadingMethods => ({\n finish: () => refs.current.finish.current?.(),\n force: (state) => refs.current.force.current?.(state),\n start: (props) => refs.current.start.current?.(props),\n update: (props) => refs.current.update.current?.(props),\n})\n\nconst incrementCount = (prev: number) => prev + 1\nconst decrementCount = (prev: number) => (prev === 0 ? prev : prev - 1)\n\nexport interface LoadingProviderProps extends PropsWithChildren<\n ThemeConfig[\"loading\"]\n> {}\n\nexport const LoadingProvider: FC<LoadingProviderProps> = ({\n background: backgroundConfig,\n children,\n page: pageConfig,\n screen: screenConfig,\n}) => {\n const screen = useRef(createController())\n const page = useRef(createController())\n const background = useRef(createController())\n\n const value = useMemo(\n () => ({\n background: createMethods(background),\n page: createMethods(page),\n screen: createMethods(screen),\n }),\n [],\n )\n\n return (\n <LoadingContext value={value}>\n {children}\n\n <Controller ref={screen} {...screenConfig} component={Screen} />\n\n <Controller ref={page} {...pageConfig} component={Page} />\n\n <Controller\n ref={background}\n {...backgroundConfig}\n blockScrollOnMount={backgroundConfig?.blockScrollOnMount ?? false}\n component={Background}\n />\n </LoadingContext>\n )\n}\n\nexport interface LoadingSharedProps {\n duration: null | number\n loadingScheme: LoadingScheme\n message: ReactNode | undefined\n onFinish: () => void\n initial?: boolean | string\n}\n\ninterface ControllerProps extends LoadingConfig {\n component: FC<LoadingSharedProps>\n ref: RefObject<Controller>\n}\n\nconst Controller: FC<ControllerProps> = ({\n ref,\n allowPinchZoom = false,\n blockScrollOnMount = true,\n component: Component,\n duration: durationProp = null,\n loadingCount: loadingCountProp = 0,\n loadingScheme: loadingSchemeProp = \"oval\",\n}) => {\n const loading = useRef<boolean>(false)\n const [{ duration, loadingCount, loadingScheme, message }, setState] =\n useState<LoadingState>({\n duration: durationProp,\n loadingCount: loadingCountProp,\n loadingScheme: loadingSchemeProp,\n message: undefined,\n })\n\n const { finish, force, start, update } = useMemo<LoadingMethods>(\n () => ({\n finish: () => {\n loading.current = false\n\n setState(({ loadingCount }) => ({\n duration: durationProp,\n loadingCount: decrementCount(loadingCount),\n loadingScheme: loadingSchemeProp,\n message: undefined,\n }))\n },\n\n force: ({\n duration = durationProp,\n loadingCount = 0,\n loadingScheme = loadingSchemeProp,\n message,\n }) => {\n loading.current = !!loadingCount\n\n setState({\n duration,\n loadingCount,\n loadingScheme,\n message,\n })\n },\n\n start: ({\n duration = durationProp,\n loadingScheme = loadingSchemeProp,\n message,\n } = {}) => {\n loading.current = true\n\n setState(({ loadingCount }) => ({\n duration,\n loadingCount: incrementCount(loadingCount),\n loadingScheme,\n message,\n }))\n },\n\n update: (next) => setState((prev) => ({ ...prev, ...next })),\n }),\n [durationProp, loadingSchemeProp],\n )\n\n assignRef(ref.current.start, start)\n assignRef(ref.current.finish, finish)\n assignRef(ref.current.update, update)\n assignRef(ref.current.force, force)\n\n const props: LoadingSharedProps = {\n duration,\n initial: loadingCountProp > 0 ? false : \"initial\",\n loadingScheme,\n message,\n onFinish: finish,\n }\n\n useUpdateEffect(() => {\n if (loadingCountProp > 0 || isNumber(durationProp))\n setState({\n duration: durationProp,\n loadingCount: loadingCountProp,\n loadingScheme: loadingSchemeProp,\n message: undefined,\n })\n }, [loadingCountProp, durationProp, loadingSchemeProp])\n\n return (\n <AnimatePresence initial={false}>\n {loadingCount ? (\n <Portal>\n <RemoveScroll\n allowPinchZoom={allowPinchZoom}\n enabled={blockScrollOnMount}\n forwardProps\n >\n <Component {...props} />\n </RemoveScroll>\n </Portal>\n ) : null}\n </AnimatePresence>\n )\n}\n\n/**\n * `useLoading` is a custom hook for controlling the loading of the application.\n *\n * @see https://yamada-ui.com/docs/hooks/use-loading\n */\nexport const useLoading = (): LoadingContext => {\n const { background, page, screen } = use(LoadingContext)\n\n const context = useMemo(\n () => ({ background, page, screen }),\n [background, page, screen],\n )\n\n return context\n}\n"],"mappings":";;;;;;;;;;;;;AAkEA,MAAM,kBAAA,GAAA,MAAA,cAAA,CAA+B,CAAC,CAAmB;AAEzD,MAAM,0BAA0B;CAC9B,SAAA,GAAA,MAAA,UAAA,CAA4C;CAC5C,QAAA,GAAA,MAAA,UAAA,CAA0C;CAC1C,QAAA,GAAA,MAAA,UAAA,CAA0C;CAC1C,SAAA,GAAA,MAAA,UAAA,CAA4C;AAC9C;AAIA,MAAM,iBAAiB,UAAiD;CACtE,cAAc,KAAK,QAAQ,OAAO,UAAU;CAC5C,QAAQ,UAAU,KAAK,QAAQ,MAAM,UAAU,KAAK;CACpD,QAAQ,UAAU,KAAK,QAAQ,MAAM,UAAU,KAAK;CACpD,SAAS,UAAU,KAAK,QAAQ,OAAO,UAAU,KAAK;AACxD;AAEA,MAAM,kBAAkB,SAAiB,OAAO;AAChD,MAAM,kBAAkB,SAAkB,SAAS,IAAI,OAAO,OAAO;AAMrE,MAAa,mBAA6C,EACxD,YAAY,kBACZ,UACA,MAAM,YACN,QAAQ,mBACJ;CACJ,MAAM,UAAA,GAAA,MAAA,OAAA,CAAgB,iBAAiB,CAAC;CACxC,MAAM,QAAA,GAAA,MAAA,OAAA,CAAc,iBAAiB,CAAC;CACtC,MAAM,cAAA,GAAA,MAAA,OAAA,CAAoB,iBAAiB,CAAC;CAE5C,MAAM,SAAA,GAAA,MAAA,QAAA,QACG;EACL,YAAY,cAAc,UAAU;EACpC,MAAM,cAAc,IAAI;EACxB,QAAQ,cAAc,MAAM;CAC9B,IACA,CAAC,CACH;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,gBAAD;EAAuB;EAAvB,UAAA;GACG;GAED,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IAAY,KAAK;IAAQ,GAAI;IAAc,WAAWA,eAAAA;GAAS,CAAA;GAE/D,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IAAY,KAAK;IAAM,GAAI;IAAY,WAAWC,aAAAA;GAAO,CAAA;GAEzD,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IACE,KAAK;IACL,GAAI;IACJ,oBAAoB,kBAAkB,sBAAsB;IAC5D,WAAWC,mBAAAA;GACZ,CAAA;EACa;;AAEpB;AAeA,MAAM,cAAmC,EACvC,KACA,iBAAiB,OACjB,qBAAqB,MACrB,WAAW,WACX,UAAU,eAAe,MACzB,cAAc,mBAAmB,GACjC,eAAe,oBAAoB,aAC/B;CACJ,MAAM,WAAA,GAAA,MAAA,OAAA,CAA0B,KAAK;CACrC,MAAM,CAAC,EAAE,UAAU,cAAc,eAAe,WAAW,aAAA,GAAA,MAAA,SAAA,CAClC;EACrB,UAAU;EACV,cAAc;EACd,eAAe;EACf,SAAS,KAAA;CACX,CAAC;CAEH,MAAM,EAAE,QAAQ,OAAO,OAAO,YAAA,GAAA,MAAA,QAAA,QACrB;EACL,cAAc;GACZ,QAAQ,UAAU;GAElB,UAAU,EAAE,oBAAoB;IAC9B,UAAU;IACV,cAAc,eAAe,YAAY;IACzC,eAAe;IACf,SAAS,KAAA;GACX,EAAE;EACJ;EAEA,QAAQ,EACN,WAAW,cACX,eAAe,GACf,gBAAgB,mBAChB,cACI;GACJ,QAAQ,UAAU,CAAC,CAAC;GAEpB,SAAS;IACP;IACA;IACA;IACA;GACF,CAAC;EACH;EAEA,QAAQ,EACN,WAAW,cACX,gBAAgB,mBAChB,YACE,CAAC,MAAM;GACT,QAAQ,UAAU;GAElB,UAAU,EAAE,oBAAoB;IAC9B;IACA,cAAc,eAAe,YAAY;IACzC;IACA;GACF,EAAE;EACJ;EAEA,SAAS,SAAS,UAAU,UAAU;GAAE,GAAG;GAAM,GAAG;EAAK,EAAE;CAC7D,IACA,CAAC,cAAc,iBAAiB,CAClC;CAEA,YAAA,UAAU,IAAI,QAAQ,OAAO,KAAK;CAClC,YAAA,UAAU,IAAI,QAAQ,QAAQ,MAAM;CACpC,YAAA,UAAU,IAAI,QAAQ,QAAQ,MAAM;CACpC,YAAA,UAAU,IAAI,QAAQ,OAAO,KAAK;CAElC,MAAM,QAA4B;EAChC;EACA,SAAS,mBAAmB,IAAI,QAAQ;EACxC;EACA;EACA,UAAU;CACZ;CAEA,eAAA,sBAAsB;EACpB,IAAI,mBAAmB,MAAA,GAAA,oBAAA,cAAA,SAAA,CAAc,YAAY,GAC/C,SAAS;GACP,UAAU;GACV,cAAc;GACd,eAAe;GACf,SAAS,KAAA;EACX,CAAC;CACL,GAAG;EAAC;EAAkB;EAAc;CAAiB,CAAC;CAEtD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,iBAAD;EAAiB,SAAS;EACvB,UAAA,eACC,iBAAA,GAAA,kBAAA,IAAA,CAACC,eAAAA,QAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,cAAD;GACkB;GAChB,SAAS;GACT,cAAA;GAEA,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,GAAI,MAAQ,CAAA;EACX,CAAA,EACR,CAAA,IACN;CACW,CAAA;AAErB;;;;;;AAOA,MAAa,mBAAmC;CAC9C,MAAM,EAAE,YAAY,MAAM,YAAA,GAAA,MAAA,IAAA,CAAe,cAAc;CAOvD,QAAA,GAAA,MAAA,QAAA,QAJS;EAAE;EAAY;EAAM;CAAO,IAClC;EAAC;EAAY;EAAM;CAAM,CAGd;AACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"oval.cjs","names":["withContext","Icon","styled","initialProps","superProps","varAttr"],"sources":["../../../../src/components/loading/oval.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled, varAttr } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface OvalProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Oval = withContext<\"svg\", OvalProps>(\n ({ dur = \"1s\", secondaryColor, ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 38 38\" {...rest}>\n <g fill=\"none\" fillRule=\"evenodd\">\n <g strokeWidth=\"2\" transform=\"translate(1 1)\">\n <styled.circle\n {...(secondaryColor\n ? { stroke: \"{secondary-color}\" }\n : { strokeOpacity: \".5\" })}\n cx=\"18px\"\n cy=\"18px\"\n r=\"18px\"\n />\n <styled.path\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationName=\"spin\"\n animationTimingFunction=\"linear\"\n d=\"M36 18c0-9.94-8.06-18-18-18\"\n transformOrigin=\"18px 18px\"\n />\n </g>\n </g>\n </Icon>\n )\n },\n)(initialProps, ({ secondaryColor, ...props }) => {\n const rest = superProps(props)\n\n return {\n \"--secondary-color\": varAttr(secondaryColor, \"colors\"),\n secondaryColor,\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aACjB,EAAE,MAAM,MAAM,gBAAgB,GAAG,WAAW;CAC3C,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;YAClD,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GAAG,MAAK;GAAO,UAAS;aACtB,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;IAAG,aAAY;IAAI,WAAU;cAA7B,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;KACE,GAAK,iBACD,EAAE,QAAQ,oBAAoB,IAC9B,EAAE,eAAe,KAAK;KAC1B,IAAG;KACH,IAAG;KACH,GAAE;IACH,CAAA,GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,MAAR;KACE,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,eAAc;KACd,yBAAwB;KACxB,GAAE;KACF,iBAAgB;IACjB,CAAA,CACA;;EACF,CAAA;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,eAAe,EAAE,gBAAgB,GAAG,YAAY;CAChD,MAAM,OAAOC,gBAAAA,WAAW,KAAK;CAE7B,OAAO;EACL,qBAAqBC,YAAAA,QAAQ,gBAAgB,QAAQ;EACrD;EACA,GAAG;CACL;AACF,CAAC"}
1
+ {"version":3,"file":"oval.cjs","names":["withContext","Icon","styled","initialProps","superProps","varAttr"],"sources":["../../../../src/components/loading/oval.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled, varAttr } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface OvalProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Oval = withContext<\"svg\", OvalProps>(\n ({ dur = \"1s\", secondaryColor, ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 38 38\" {...rest}>\n <g fill=\"none\" fillRule=\"evenodd\">\n <g strokeWidth=\"2\" transform=\"translate(1 1)\">\n <styled.circle\n {...(secondaryColor\n ? { stroke: \"{secondary-color}\" }\n : { strokeOpacity: \".5\" })}\n cx=\"18px\"\n cy=\"18px\"\n r=\"18px\"\n />\n <styled.path\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationName=\"spin\"\n animationTimingFunction=\"linear\"\n d=\"M36 18c0-9.94-8.06-18-18-18\"\n transformOrigin=\"18px 18px\"\n />\n </g>\n </g>\n </Icon>\n )\n },\n)(initialProps, ({ secondaryColor, ...props }) => {\n const rest = superProps(props)\n\n return {\n \"--secondary-color\": varAttr(secondaryColor, \"colors\"),\n secondaryColor,\n ...rest,\n }\n})\n"],"mappings":";;;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aACjB,EAAE,MAAM,MAAM,gBAAgB,GAAG,WAAW;CAC3C,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;EAClD,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GAAG,MAAK;GAAO,UAAS;GACtB,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;IAAG,aAAY;IAAI,WAAU;IAA7B,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;KACE,GAAK,iBACD,EAAE,QAAQ,oBAAoB,IAC9B,EAAE,eAAe,KAAK;KAC1B,IAAG;KACH,IAAG;KACH,GAAE;IACH,CAAA,GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,MAAR;KACE,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,eAAc;KACd,yBAAwB;KACxB,GAAE;KACF,iBAAgB;IACjB,CAAA,CACA;;EACF,CAAA;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,eAAe,EAAE,gBAAgB,GAAG,YAAY;CAChD,MAAM,OAAOC,gBAAAA,WAAW,KAAK;CAE7B,OAAO;EACL,qBAAqBC,YAAAA,QAAQ,gBAAgB,QAAQ;EACrD;EACA,GAAG;CACL;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"page.cjs","names":["useLoadingComponent","motion","isValidElement","Text"],"sources":["../../../../src/components/loading/page.tsx"],"sourcesContent":["import type { Variants } from \"motion/react\"\nimport type { FC } from \"react\"\nimport type { LoadingSharedProps } from \"./loading-provider\"\nimport { memo } from \"react\"\nimport { useTimeout } from \"../../hooks/use-timeout\"\nimport { isValidElement } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { Text } from \"../text\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nconst variants: { [key: string]: Variants } = {\n overlay: {\n animate: {\n opacity: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n },\n },\n panel: {\n animate: {\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n scale: 0.95,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n scale: 0.95,\n },\n },\n}\n\nexport interface PageProps extends LoadingSharedProps {}\n\nexport const Page: FC<PageProps> = memo(\n ({ duration, initial, loadingScheme, message, onFinish }) => {\n const Component = useLoadingComponent(loadingScheme)\n\n useTimeout(onFinish, duration)\n\n return (\n <motion.div\n data-loading\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg.overlay\"\n display=\"flex\"\n exit=\"exit\"\n h=\"100dvh\"\n initial={initial}\n inset={0}\n justifyContent=\"center\"\n p=\"md\"\n position=\"fixed\"\n variants={variants.overlay}\n w=\"100vw\"\n zIndex=\"beerus\"\n >\n <motion.div\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg.panel\"\n boxShadow=\"lg\"\n display=\"flex\"\n exit=\"exit\"\n flexDirection=\"column\"\n gap=\"sm\"\n initial={initial}\n justifyContent=\"center\"\n maxW=\"24rem\"\n p=\"md\"\n rounded=\"l2\"\n variants={variants.panel}\n >\n <Component fontSize=\"6xl\" />\n\n {message ? (\n isValidElement(message) ? (\n message\n ) : (\n <Text lineClamp={3}>{message}</Text>\n )\n ) : null}\n </motion.div>\n </motion.div>\n )\n },\n)\n\nPage.displayName = \"Page\"\n"],"mappings":";;;;;;;;AAUA,MAAM,WAAwC;CAC5C,SAAS;EACP,SAAS;GACP,SAAS;GACT,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAK;IAAC;GACvB;EACF;EACA,MAAM;GACJ,SAAS;GACT,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAG;IAAC;GACrB;EACF;EACA,SAAS,EACP,SAAS,EACX;CACF;CACA,OAAO;EACL,SAAS;GACP,SAAS;GACT,OAAO;GACP,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAK;IAAC;GACvB;EACF;EACA,MAAM;GACJ,SAAS;GACT,OAAO;GACP,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAG;IAAC;GACrB;EACF;EACA,SAAS;GACP,SAAS;GACT,OAAO;EACT;CACF;AACF;AAIA,MAAa,QAAA,GAAA,MAAA,KAAA,EACV,EAAE,UAAU,SAAS,eAAe,SAAS,eAAe;CAC3D,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,gCAAA,WAAW,UAAU,QAAQ;CAE7B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,gBAAA;EACA,YAAW;EACX,SAAQ;EACR,IAAG;EACH,SAAQ;EACR,MAAK;EACL,GAAE;EACO;EACT,OAAO;EACP,gBAAe;EACf,GAAE;EACF,UAAS;EACT,UAAU,SAAS;EACnB,GAAE;EACF,QAAO;YAEP,iBAAA,GAAA,kBAAA,KAAA,CAACA,gBAAAA,OAAO,KAAR;GACE,YAAW;GACX,SAAQ;GACR,IAAG;GACH,WAAU;GACV,SAAQ;GACR,MAAK;GACL,eAAc;GACd,KAAI;GACK;GACT,gBAAe;GACf,MAAK;GACL,GAAE;GACF,SAAQ;GACR,UAAU,SAAS;aAdrB,CAgBE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,UAAS,MAAO,CAAA,GAE1B,UACCC,iBAAAA,eAAe,OAAO,IACpB,UAEA,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;IAAM,WAAW;cAAI;GAAc,CAAA,IAEnC,IACM;;CACF,CAAA;AAEhB,CACF;AAEA,KAAK,cAAc"}
1
+ {"version":3,"file":"page.cjs","names":["useLoadingComponent","motion","isValidElement","Text"],"sources":["../../../../src/components/loading/page.tsx"],"sourcesContent":["import type { Variants } from \"motion/react\"\nimport type { FC } from \"react\"\nimport type { LoadingSharedProps } from \"./loading-provider\"\nimport { memo } from \"react\"\nimport { useTimeout } from \"../../hooks/use-timeout\"\nimport { isValidElement } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { Text } from \"../text\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nconst variants: { [key: string]: Variants } = {\n overlay: {\n animate: {\n opacity: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n },\n },\n panel: {\n animate: {\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n scale: 0.95,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n scale: 0.95,\n },\n },\n}\n\nexport interface PageProps extends LoadingSharedProps {}\n\nexport const Page: FC<PageProps> = memo(\n ({ duration, initial, loadingScheme, message, onFinish }) => {\n const Component = useLoadingComponent(loadingScheme)\n\n useTimeout(onFinish, duration)\n\n return (\n <motion.div\n data-loading\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg.overlay\"\n display=\"flex\"\n exit=\"exit\"\n h=\"100dvh\"\n initial={initial}\n inset={0}\n justifyContent=\"center\"\n p=\"md\"\n position=\"fixed\"\n variants={variants.overlay}\n w=\"100vw\"\n zIndex=\"beerus\"\n >\n <motion.div\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg.panel\"\n boxShadow=\"lg\"\n display=\"flex\"\n exit=\"exit\"\n flexDirection=\"column\"\n gap=\"sm\"\n initial={initial}\n justifyContent=\"center\"\n maxW=\"24rem\"\n p=\"md\"\n rounded=\"l2\"\n variants={variants.panel}\n >\n <Component fontSize=\"6xl\" />\n\n {message ? (\n isValidElement(message) ? (\n message\n ) : (\n <Text lineClamp={3}>{message}</Text>\n )\n ) : null}\n </motion.div>\n </motion.div>\n )\n },\n)\n\nPage.displayName = \"Page\"\n"],"mappings":";;;;;;;;AAUA,MAAM,WAAwC;CAC5C,SAAS;EACP,SAAS;GACP,SAAS;GACT,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAK;IAAC;GACvB;EACF;EACA,MAAM;GACJ,SAAS;GACT,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAG;IAAC;GACrB;EACF;EACA,SAAS,EACP,SAAS,EACX;CACF;CACA,OAAO;EACL,SAAS;GACP,SAAS;GACT,OAAO;GACP,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAK;IAAC;GACvB;EACF;EACA,MAAM;GACJ,SAAS;GACT,OAAO;GACP,YAAY;IACV,UAAU;IACV,MAAM;KAAC;KAAK;KAAG;KAAG;IAAC;GACrB;EACF;EACA,SAAS;GACP,SAAS;GACT,OAAO;EACT;CACF;AACF;AAIA,MAAa,QAAA,GAAA,MAAA,KAAA,EACV,EAAE,UAAU,SAAS,eAAe,SAAS,eAAe;CAC3D,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,gCAAA,WAAW,UAAU,QAAQ;CAE7B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,gBAAA;EACA,YAAW;EACX,SAAQ;EACR,IAAG;EACH,SAAQ;EACR,MAAK;EACL,GAAE;EACO;EACT,OAAO;EACP,gBAAe;EACf,GAAE;EACF,UAAS;EACT,UAAU,SAAS;EACnB,GAAE;EACF,QAAO;EAEP,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAACA,gBAAAA,OAAO,KAAR;GACE,YAAW;GACX,SAAQ;GACR,IAAG;GACH,WAAU;GACV,SAAQ;GACR,MAAK;GACL,eAAc;GACd,KAAI;GACK;GACT,gBAAe;GACf,MAAK;GACL,GAAE;GACF,SAAQ;GACR,UAAU,SAAS;GAdrB,UAAA,CAgBE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,UAAS,MAAO,CAAA,GAE1B,UACCC,iBAAAA,eAAe,OAAO,IACpB,UAEA,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;IAAM,WAAW;IAAI,UAAA;GAAc,CAAA,IAEnC,IACM;;CACF,CAAA;AAEhB,CACF;AAEA,KAAK,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"puff.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/puff.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface PuffProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Puff = withContext<\"svg\", PuffProps>(\n ({ dur = \"1.8s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 44 44\" {...rest}>\n <g fill=\"none\" fillRule=\"evenodd\" strokeWidth=\"2\">\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"cubic-bezier(0.3, 0.61, 0.355, 1)\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"1px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n vectorEffect=\"non-scaling-stroke\"\n _keyframes={{\n \"0%\": { strokeOpacity: 1, transform: \"scale(1)\" },\n \"100%\": { strokeOpacity: 0, transform: \"scale(20)\" },\n }}\n />\n <styled.circle\n animationDelay=\"-0.9s\"\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"cubic-bezier(0.3, 0.61, 0.355, 1)\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"1px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n vectorEffect=\"non-scaling-stroke\"\n _keyframes={{\n \"0%\": { strokeOpacity: 1, transform: \"scale(1)\" },\n \"100%\": { strokeOpacity: 0, transform: \"scale(20)\" },\n }}\n />\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aACjB,EAAE,MAAM,QAAQ,GAAG,WAAW;CAC7B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;YAClD,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;GAAG,MAAK;GAAO,UAAS;GAAU,aAAY;aAA9C,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,cAAa;IACb,YAAY;KACV,MAAM;MAAE,eAAe;MAAG,WAAW;KAAW;KAChD,QAAQ;MAAE,eAAe;MAAG,WAAW;KAAY;IACrD;GACD,CAAA,GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;IACE,gBAAe;IACf,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,cAAa;IACb,YAAY;KACV,MAAM;MAAE,eAAe;MAAG,WAAW;KAAW;KAChD,QAAQ;MAAE,eAAe;MAAG,WAAW;KAAY;IACrD;GACD,CAAA,CACA;;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
1
+ {"version":3,"file":"puff.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/puff.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface PuffProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Puff = withContext<\"svg\", PuffProps>(\n ({ dur = \"1.8s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 44 44\" {...rest}>\n <g fill=\"none\" fillRule=\"evenodd\" strokeWidth=\"2\">\n <styled.circle\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"cubic-bezier(0.3, 0.61, 0.355, 1)\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"1px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n vectorEffect=\"non-scaling-stroke\"\n _keyframes={{\n \"0%\": { strokeOpacity: 1, transform: \"scale(1)\" },\n \"100%\": { strokeOpacity: 0, transform: \"scale(20)\" },\n }}\n />\n <styled.circle\n animationDelay=\"-0.9s\"\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"cubic-bezier(0.3, 0.61, 0.355, 1)\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"1px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n vectorEffect=\"non-scaling-stroke\"\n _keyframes={{\n \"0%\": { strokeOpacity: 1, transform: \"scale(1)\" },\n \"100%\": { strokeOpacity: 0, transform: \"scale(20)\" },\n }}\n />\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,OAAOA,gBAAAA,aACjB,EAAE,MAAM,QAAQ,GAAG,WAAW;CAC7B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;EAClD,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;GAAG,MAAK;GAAO,UAAS;GAAU,aAAY;GAA9C,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;IACE,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,cAAa;IACb,YAAY;KACV,MAAM;MAAE,eAAe;MAAG,WAAW;KAAW;KAChD,QAAQ;MAAE,eAAe;MAAG,WAAW;KAAY;IACrD;GACD,CAAA,GACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;IACE,gBAAe;IACf,mBAAmB,GAAG,IAAI;IAC1B,yBAAwB;IACxB,yBAAwB;IACxB,IAAG;IACH,IAAG;IACH,GAAE;IACF,cAAa;IACb,iBAAgB;IAChB,cAAa;IACb,YAAY;KACV,MAAM;MAAE,eAAe;MAAG,WAAW;KAAW;KAChD,QAAQ;MAAE,eAAe;MAAG,WAAW;KAAY;IACrD;GACD,CAAA,CACA;;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"rings.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/rings.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface RingsProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Rings = withContext<\"svg\", RingsProps>(\n ({ dur = \"3s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 45 45\" {...rest}>\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n strokeWidth=\"2\"\n transform=\"translate(1 1)\"\n >\n <styled.circle\n animationDelay=\"1.5s\"\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"6px\"\n strokeOpacity=\"0\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%\": {\n strokeOpacity: \"1\",\n strokeWidth: \"2\",\n transform: \"scale(1)\",\n },\n \"100%\": {\n strokeOpacity: \"0\",\n strokeWidth: \"0\",\n transform: \"scale(calc(22 / 6))\",\n },\n }}\n />\n <styled.circle\n animationDelay=\"3s\"\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"6px\"\n strokeOpacity=\"0\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%\": {\n strokeOpacity: \"1\",\n strokeWidth: \"2\",\n transform: \"scale(1)\",\n },\n \"100%\": {\n strokeOpacity: \"0\",\n strokeWidth: \"0\",\n transform: \"scale(calc(22 / 6))\",\n },\n }}\n />\n <styled.circle\n animationDuration={`${dur / 2}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"8px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { transform: \"scale(calc(6 / 8))\" },\n \"16.7%\": { transform: \"scale(calc(1 / 8))\" },\n \"33.3%\": { transform: \"scale(calc(2 / 8))\" },\n \"50%\": { transform: \"scale(calc(3 / 8))\" },\n \"66.7%\": { transform: \"scale(calc(4 / 8))\" },\n \"83.3%\": { transform: \"scale(calc(5 / 8))\" },\n }}\n />\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,QAAQA,gBAAAA,aAClB,EAAE,MAAM,MAAM,GAAG,WAAW;CAC3B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;YAClD,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;GACE,MAAK;GACL,UAAS;GACT,aAAY;GACZ,WAAU;aAJZ;IAME,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;KACE,gBAAe;KACf,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,yBAAwB;KACxB,IAAG;KACH,IAAG;KACH,GAAE;KACF,eAAc;KACd,cAAa;KACb,iBAAgB;KAChB,YAAY;MACV,MAAM;OACJ,eAAe;OACf,aAAa;OACb,WAAW;MACb;MACA,QAAQ;OACN,eAAe;OACf,aAAa;OACb,WAAW;MACb;KACF;IACD,CAAA;IACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;KACE,gBAAe;KACf,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,yBAAwB;KACxB,IAAG;KACH,IAAG;KACH,GAAE;KACF,eAAc;KACd,cAAa;KACb,iBAAgB;KAChB,YAAY;MACV,MAAM;OACJ,eAAe;OACf,aAAa;OACb,WAAW;MACb;MACA,QAAQ;OACN,eAAe;OACf,aAAa;OACb,WAAW;MACb;KACF;IACD,CAAA;IACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;KACE,mBAAmB,GAAG,MAAM,EAAE;KAC9B,yBAAwB;KACxB,yBAAwB;KACxB,IAAG;KACH,IAAG;KACH,GAAE;KACF,cAAa;KACb,iBAAgB;KAChB,YAAY;MACV,YAAY,EAAE,WAAW,qBAAqB;MAC9C,SAAS,EAAE,WAAW,qBAAqB;MAC3C,SAAS,EAAE,WAAW,qBAAqB;MAC3C,OAAO,EAAE,WAAW,qBAAqB;MACzC,SAAS,EAAE,WAAW,qBAAqB;MAC3C,SAAS,EAAE,WAAW,qBAAqB;KAC7C;IACD,CAAA;GACA;;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
1
+ {"version":3,"file":"rings.cjs","names":["withContext","Icon","styled","initialProps","superProps"],"sources":["../../../../src/components/loading/rings.tsx"],"sourcesContent":["\"use client\"\n\nimport type { LoadingProps } from \"./loading\"\nimport { styled } from \"../../core\"\nimport { isString } from \"../../utils\"\nimport { Icon } from \"../icon\"\nimport { initialProps, superProps, withContext } from \"./loading\"\n\nexport interface RingsProps extends LoadingProps {}\n\n/**\n * `Loading` is a component displayed during waiting times, such as when data is being loaded.\n *\n * @see https://yamada-ui.com/docs/components/loading\n */\nexport const Rings = withContext<\"svg\", RingsProps>(\n ({ dur = \"3s\", ...rest }) => {\n dur = isString(dur) ? parseFloat(dur) : dur\n\n return (\n <Icon stroke=\"currentColor\" viewBox=\"0 0 45 45\" {...rest}>\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n strokeWidth=\"2\"\n transform=\"translate(1 1)\"\n >\n <styled.circle\n animationDelay=\"1.5s\"\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"6px\"\n strokeOpacity=\"0\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%\": {\n strokeOpacity: \"1\",\n strokeWidth: \"2\",\n transform: \"scale(1)\",\n },\n \"100%\": {\n strokeOpacity: \"0\",\n strokeWidth: \"0\",\n transform: \"scale(calc(22 / 6))\",\n },\n }}\n />\n <styled.circle\n animationDelay=\"3s\"\n animationDuration={`${dur}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"6px\"\n strokeOpacity=\"0\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%\": {\n strokeOpacity: \"1\",\n strokeWidth: \"2\",\n transform: \"scale(1)\",\n },\n \"100%\": {\n strokeOpacity: \"0\",\n strokeWidth: \"0\",\n transform: \"scale(calc(22 / 6))\",\n },\n }}\n />\n <styled.circle\n animationDuration={`${dur / 2}s`}\n animationIterationCount=\"infinite\"\n animationTimingFunction=\"linear\"\n cx=\"22px\"\n cy=\"22px\"\n r=\"8px\"\n transformBox=\"fill-box\"\n transformOrigin=\"center\"\n _keyframes={{\n \"0%, 100%\": { transform: \"scale(calc(6 / 8))\" },\n \"16.7%\": { transform: \"scale(calc(1 / 8))\" },\n \"33.3%\": { transform: \"scale(calc(2 / 8))\" },\n \"50%\": { transform: \"scale(calc(3 / 8))\" },\n \"66.7%\": { transform: \"scale(calc(4 / 8))\" },\n \"83.3%\": { transform: \"scale(calc(5 / 8))\" },\n }}\n />\n </g>\n </Icon>\n )\n },\n)(initialProps, superProps)\n"],"mappings":";;;;;;;;;;;;AAeA,MAAa,QAAQA,gBAAAA,aAClB,EAAE,MAAM,MAAM,GAAG,WAAW;CAC3B,OAAA,GAAA,oBAAA,cAAA,SAAA,CAAe,GAAG,IAAI,WAAW,GAAG,IAAI;CAExC,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;EAAM,QAAO;EAAe,SAAQ;EAAY,GAAI;EAClD,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;GACE,MAAK;GACL,UAAS;GACT,aAAY;GACZ,WAAU;GAJZ,UAAA;IAME,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,QAAR;KACE,gBAAe;KACf,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,yBAAwB;KACxB,IAAG;KACH,IAAG;KACH,GAAE;KACF,eAAc;KACd,cAAa;KACb,iBAAgB;KAChB,YAAY;MACV,MAAM;OACJ,eAAe;OACf,aAAa;OACb,WAAW;MACb;MACA,QAAQ;OACN,eAAe;OACf,aAAa;OACb,WAAW;MACb;KACF;IACD,CAAA;IACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;KACE,gBAAe;KACf,mBAAmB,GAAG,IAAI;KAC1B,yBAAwB;KACxB,yBAAwB;KACxB,IAAG;KACH,IAAG;KACH,GAAE;KACF,eAAc;KACd,cAAa;KACb,iBAAgB;KAChB,YAAY;MACV,MAAM;OACJ,eAAe;OACf,aAAa;OACb,WAAW;MACb;MACA,QAAQ;OACN,eAAe;OACf,aAAa;OACb,WAAW;MACb;KACF;IACD,CAAA;IACD,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,QAAR;KACE,mBAAmB,GAAG,MAAM,EAAE;KAC9B,yBAAwB;KACxB,yBAAwB;KACxB,IAAG;KACH,IAAG;KACH,GAAE;KACF,cAAa;KACb,iBAAgB;KAChB,YAAY;MACV,YAAY,EAAE,WAAW,qBAAqB;MAC9C,SAAS,EAAE,WAAW,qBAAqB;MAC3C,SAAS,EAAE,WAAW,qBAAqB;MAC3C,OAAO,EAAE,WAAW,qBAAqB;MACzC,SAAS,EAAE,WAAW,qBAAqB;MAC3C,SAAS,EAAE,WAAW,qBAAqB;KAC7C;IACD,CAAA;GACA;;CACC,CAAA;AAEV,CACF,CAAC,CAACC,gBAAAA,cAAcC,gBAAAA,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"screen.cjs","names":["useLoadingComponent","motion","Center","isValidElement","Text"],"sources":["../../../../src/components/loading/screen.tsx"],"sourcesContent":["import type { Variants } from \"motion/react\"\nimport type { FC } from \"react\"\nimport type { LoadingSharedProps } from \"./loading-provider\"\nimport { memo } from \"react\"\nimport { useTimeout } from \"../../hooks/use-timeout\"\nimport { isValidElement } from \"../../utils\"\nimport { Center } from \"../center\"\nimport { motion } from \"../motion\"\nimport { Text } from \"../text\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nconst variants: Variants = {\n animate: {\n opacity: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n },\n}\n\nexport interface ScreenProps extends LoadingSharedProps {}\n\nexport const Screen: FC<ScreenProps> = memo(\n ({ duration, initial, loadingScheme, message, onFinish }) => {\n const Component = useLoadingComponent(loadingScheme)\n\n useTimeout(onFinish, duration)\n\n return (\n <motion.div\n data-loading\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg\"\n display=\"flex\"\n exit=\"exit\"\n h=\"100dvh\"\n initial={initial}\n inset={0}\n justifyContent=\"center\"\n p=\"md\"\n position=\"fixed\"\n variants={variants}\n w=\"100vw\"\n zIndex=\"beerus\"\n >\n <Center flexDirection=\"column\" gap=\"sm\" maxW=\"24rem\">\n <Component fontSize=\"6xl\" />\n\n {message ? (\n isValidElement(message) ? (\n message\n ) : (\n <Text lineClamp={3}>{message}</Text>\n )\n ) : null}\n </Center>\n </motion.div>\n )\n },\n)\n\nScreen.displayName = \"Screen\"\n"],"mappings":";;;;;;;;;AAWA,MAAM,WAAqB;CACzB,SAAS;EACP,SAAS;EACT,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAK;GAAC;EACvB;CACF;CACA,MAAM;EACJ,SAAS;EACT,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAG;GAAC;EACrB;CACF;CACA,SAAS,EACP,SAAS,EACX;AACF;AAIA,MAAa,UAAA,GAAA,MAAA,KAAA,EACV,EAAE,UAAU,SAAS,eAAe,SAAS,eAAe;CAC3D,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,gCAAA,WAAW,UAAU,QAAQ;CAE7B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,gBAAA;EACA,YAAW;EACX,SAAQ;EACR,IAAG;EACH,SAAQ;EACR,MAAK;EACL,GAAE;EACO;EACT,OAAO;EACP,gBAAe;EACf,GAAE;EACF,UAAS;EACC;EACV,GAAE;EACF,QAAO;YAEP,iBAAA,GAAA,kBAAA,KAAA,CAACC,eAAAA,QAAD;GAAQ,eAAc;GAAS,KAAI;GAAK,MAAK;aAA7C,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,UAAS,MAAO,CAAA,GAE1B,UACCC,iBAAAA,eAAe,OAAO,IACpB,UAEA,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;IAAM,WAAW;cAAI;GAAc,CAAA,IAEnC,IACE;;CACE,CAAA;AAEhB,CACF;AAEA,OAAO,cAAc"}
1
+ {"version":3,"file":"screen.cjs","names":["useLoadingComponent","motion","Center","isValidElement","Text"],"sources":["../../../../src/components/loading/screen.tsx"],"sourcesContent":["import type { Variants } from \"motion/react\"\nimport type { FC } from \"react\"\nimport type { LoadingSharedProps } from \"./loading-provider\"\nimport { memo } from \"react\"\nimport { useTimeout } from \"../../hooks/use-timeout\"\nimport { isValidElement } from \"../../utils\"\nimport { Center } from \"../center\"\nimport { motion } from \"../motion\"\nimport { Text } from \"../text\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nconst variants: Variants = {\n animate: {\n opacity: 1,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n exit: {\n opacity: 0,\n transition: {\n duration: 0.4,\n ease: [0.4, 0, 1, 1],\n },\n },\n initial: {\n opacity: 0,\n },\n}\n\nexport interface ScreenProps extends LoadingSharedProps {}\n\nexport const Screen: FC<ScreenProps> = memo(\n ({ duration, initial, loadingScheme, message, onFinish }) => {\n const Component = useLoadingComponent(loadingScheme)\n\n useTimeout(onFinish, duration)\n\n return (\n <motion.div\n data-loading\n alignItems=\"center\"\n animate=\"animate\"\n bg=\"bg\"\n display=\"flex\"\n exit=\"exit\"\n h=\"100dvh\"\n initial={initial}\n inset={0}\n justifyContent=\"center\"\n p=\"md\"\n position=\"fixed\"\n variants={variants}\n w=\"100vw\"\n zIndex=\"beerus\"\n >\n <Center flexDirection=\"column\" gap=\"sm\" maxW=\"24rem\">\n <Component fontSize=\"6xl\" />\n\n {message ? (\n isValidElement(message) ? (\n message\n ) : (\n <Text lineClamp={3}>{message}</Text>\n )\n ) : null}\n </Center>\n </motion.div>\n )\n },\n)\n\nScreen.displayName = \"Screen\"\n"],"mappings":";;;;;;;;;AAWA,MAAM,WAAqB;CACzB,SAAS;EACP,SAAS;EACT,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAK;GAAC;EACvB;CACF;CACA,MAAM;EACJ,SAAS;EACT,YAAY;GACV,UAAU;GACV,MAAM;IAAC;IAAK;IAAG;IAAG;GAAC;EACrB;CACF;CACA,SAAS,EACP,SAAS,EACX;AACF;AAIA,MAAa,UAAA,GAAA,MAAA,KAAA,EACV,EAAE,UAAU,SAAS,eAAe,SAAS,eAAe;CAC3D,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,gCAAA,WAAW,UAAU,QAAQ;CAE7B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;EACE,gBAAA;EACA,YAAW;EACX,SAAQ;EACR,IAAG;EACH,SAAQ;EACR,MAAK;EACL,GAAE;EACO;EACT,OAAO;EACP,gBAAe;EACf,GAAE;EACF,UAAS;EACC;EACV,GAAE;EACF,QAAO;EAEP,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAACC,eAAAA,QAAD;GAAQ,eAAc;GAAS,KAAI;GAAK,MAAK;GAA7C,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD,EAAW,UAAS,MAAO,CAAA,GAE1B,UACCC,iBAAAA,eAAe,OAAO,IACpB,UAEA,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;IAAM,WAAW;IAAI,UAAA;GAAc,CAAA,IAEnC,IACE;;CACE,CAAA;AAEhB,CACF;AAEA,OAAO,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"suspense.cjs","names":["useLoadingComponent","OriginalSuspense","styled"],"sources":["../../../../src/components/loading/suspense.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, SuspenseProps as OriginalSuspenseProps } from \"react\"\nimport type { HTMLStyledProps, LoadingScheme } from \"../../core\"\nimport type { LoadingProps } from \"./loading\"\nimport { Suspense as OriginalSuspense } from \"react\"\nimport { styled } from \"../../core\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nexport interface SuspenseProps extends HTMLStyledProps, OriginalSuspenseProps {\n /**\n * The loading scheme.\n */\n loadingScheme?: LoadingScheme\n /**\n * The loading props.\n */\n loadingProps?: LoadingProps\n}\n\nexport const Suspense: FC<SuspenseProps> = ({\n name,\n children,\n fallback,\n loadingScheme = \"oval\",\n loadingProps,\n ...rest\n}) => {\n const Component = useLoadingComponent(loadingScheme)\n\n return (\n <OriginalSuspense\n name={name}\n fallback={\n fallback ?? (\n <styled.div boxSize=\"full\" display=\"center\" fontSize=\"6xl\" {...rest}>\n <Component fontSize=\"1em\" {...loadingProps} />\n </styled.div>\n )\n }\n >\n {children}\n </OriginalSuspense>\n )\n}\n"],"mappings":";;;;;;AAoBA,MAAa,YAA+B,EAC1C,MACA,UACA,UACA,gBAAgB,QAChB,cACA,GAAG,WACC;CACJ,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,MAAAA,UAAD;EACQ;EACN,UACE,YACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;GAAY,SAAQ;GAAO,SAAQ;GAAS,UAAS;GAAM,GAAI;aAC7D,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;IAAW,UAAS;IAAM,GAAI;GAAe,CAAA;EACnC,CAAA;EAIf;CACe,CAAA;AAEtB"}
1
+ {"version":3,"file":"suspense.cjs","names":["useLoadingComponent","OriginalSuspense","styled"],"sources":["../../../../src/components/loading/suspense.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, SuspenseProps as OriginalSuspenseProps } from \"react\"\nimport type { HTMLStyledProps, LoadingScheme } from \"../../core\"\nimport type { LoadingProps } from \"./loading\"\nimport { Suspense as OriginalSuspense } from \"react\"\nimport { styled } from \"../../core\"\nimport { useLoadingComponent } from \"./use-loading-component\"\n\nexport interface SuspenseProps extends HTMLStyledProps, OriginalSuspenseProps {\n /**\n * The loading scheme.\n */\n loadingScheme?: LoadingScheme\n /**\n * The loading props.\n */\n loadingProps?: LoadingProps\n}\n\nexport const Suspense: FC<SuspenseProps> = ({\n name,\n children,\n fallback,\n loadingScheme = \"oval\",\n loadingProps,\n ...rest\n}) => {\n const Component = useLoadingComponent(loadingScheme)\n\n return (\n <OriginalSuspense\n name={name}\n fallback={\n fallback ?? (\n <styled.div boxSize=\"full\" display=\"center\" fontSize=\"6xl\" {...rest}>\n <Component fontSize=\"1em\" {...loadingProps} />\n </styled.div>\n )\n }\n >\n {children}\n </OriginalSuspense>\n )\n}\n"],"mappings":";;;;;;AAoBA,MAAa,YAA+B,EAC1C,MACA,UACA,UACA,gBAAgB,QAChB,cACA,GAAG,WACC;CACJ,MAAM,YAAYA,8BAAAA,oBAAoB,aAAa;CAEnD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,MAAAA,UAAD;EACQ;EACN,UACE,YACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,gBAAAA,OAAO,KAAR;GAAY,SAAQ;GAAO,SAAQ;GAAS,UAAS;GAAM,GAAI;GAC7D,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;IAAW,UAAS;IAAM,GAAI;GAAe,CAAA;EACnC,CAAA;EAIf;CACe,CAAA;AAEtB"}