@yamada-ui/react 2.0.10-dev-20260301101758 → 2.1.0-dev-20260302125757

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 (683) hide show
  1. package/dist/cjs/components/accordion/accordion.cjs +8 -9
  2. package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
  3. package/dist/cjs/components/accordion/accordion.style.cjs +11 -37
  4. package/dist/cjs/components/accordion/accordion.style.cjs.map +1 -1
  5. package/dist/cjs/components/accordion/use-accordion.cjs +7 -2
  6. package/dist/cjs/components/accordion/use-accordion.cjs.map +1 -1
  7. package/dist/cjs/components/autocomplete/autocomplete.cjs +2 -2
  8. package/dist/cjs/components/button/button-group.cjs +1 -1
  9. package/dist/cjs/components/chart/area-chart.cjs +41 -0
  10. package/dist/cjs/components/chart/area-chart.cjs.map +1 -0
  11. package/dist/cjs/components/chart/area-chart.namespace.cjs +31 -0
  12. package/dist/cjs/components/chart/area-chart.namespace.cjs.map +1 -0
  13. package/dist/cjs/components/chart/area-chart.style.cjs +12 -0
  14. package/dist/cjs/components/chart/area-chart.style.cjs.map +1 -0
  15. package/dist/cjs/components/chart/bar-chart.cjs +41 -0
  16. package/dist/cjs/components/chart/bar-chart.cjs.map +1 -0
  17. package/dist/cjs/components/chart/bar-chart.namespace.cjs +30 -0
  18. package/dist/cjs/components/chart/bar-chart.namespace.cjs.map +1 -0
  19. package/dist/cjs/components/chart/bar-chart.style.cjs +14 -0
  20. package/dist/cjs/components/chart/bar-chart.style.cjs.map +1 -0
  21. package/dist/cjs/components/chart/cartesian-chart.cjs +637 -0
  22. package/dist/cjs/components/chart/cartesian-chart.cjs.map +1 -0
  23. package/dist/cjs/components/chart/cartesian-chart.style.cjs +123 -0
  24. package/dist/cjs/components/chart/cartesian-chart.style.cjs.map +1 -0
  25. package/dist/cjs/components/chart/chart.cjs +233 -0
  26. package/dist/cjs/components/chart/chart.cjs.map +1 -0
  27. package/dist/cjs/components/chart/chart.style.cjs +119 -0
  28. package/dist/cjs/components/chart/chart.style.cjs.map +1 -0
  29. package/dist/cjs/components/chart/donut-chart.cjs +45 -0
  30. package/dist/cjs/components/chart/donut-chart.cjs.map +1 -0
  31. package/dist/cjs/components/chart/donut-chart.namespace.cjs +27 -0
  32. package/dist/cjs/components/chart/donut-chart.namespace.cjs.map +1 -0
  33. package/dist/cjs/components/chart/donut-chart.style.cjs +10 -0
  34. package/dist/cjs/components/chart/donut-chart.style.cjs.map +1 -0
  35. package/dist/cjs/components/chart/index.cjs +134 -0
  36. package/dist/cjs/components/chart/line-chart.cjs +41 -0
  37. package/dist/cjs/components/chart/line-chart.cjs.map +1 -0
  38. package/dist/cjs/components/chart/line-chart.namespace.cjs +30 -0
  39. package/dist/cjs/components/chart/line-chart.namespace.cjs.map +1 -0
  40. package/dist/cjs/components/chart/line-chart.style.cjs +12 -0
  41. package/dist/cjs/components/chart/line-chart.style.cjs.map +1 -0
  42. package/dist/cjs/components/chart/pie-chart.cjs +45 -0
  43. package/dist/cjs/components/chart/pie-chart.cjs.map +1 -0
  44. package/dist/cjs/components/chart/pie-chart.namespace.cjs +27 -0
  45. package/dist/cjs/components/chart/pie-chart.namespace.cjs.map +1 -0
  46. package/dist/cjs/components/chart/pie-chart.style.cjs +12 -0
  47. package/dist/cjs/components/chart/pie-chart.style.cjs.map +1 -0
  48. package/dist/cjs/components/chart/polar-chart.cjs +659 -0
  49. package/dist/cjs/components/chart/polar-chart.cjs.map +1 -0
  50. package/dist/cjs/components/chart/polar-chart.style.cjs +150 -0
  51. package/dist/cjs/components/chart/polar-chart.style.cjs.map +1 -0
  52. package/dist/cjs/components/chart/radar-chart.cjs +44 -0
  53. package/dist/cjs/components/chart/radar-chart.cjs.map +1 -0
  54. package/dist/cjs/components/chart/radar-chart.namespace.cjs +30 -0
  55. package/dist/cjs/components/chart/radar-chart.namespace.cjs.map +1 -0
  56. package/dist/cjs/components/chart/radar-chart.style.cjs +12 -0
  57. package/dist/cjs/components/chart/radar-chart.style.cjs.map +1 -0
  58. package/dist/cjs/components/chart/radial-chart.cjs +57 -0
  59. package/dist/cjs/components/chart/radial-chart.cjs.map +1 -0
  60. package/dist/cjs/components/chart/radial-chart.namespace.cjs +30 -0
  61. package/dist/cjs/components/chart/radial-chart.namespace.cjs.map +1 -0
  62. package/dist/cjs/components/chart/radial-chart.style.cjs +15 -0
  63. package/dist/cjs/components/chart/radial-chart.style.cjs.map +1 -0
  64. package/dist/cjs/components/chart/use-area-chart.cjs +41 -0
  65. package/dist/cjs/components/chart/use-area-chart.cjs.map +1 -0
  66. package/dist/cjs/components/chart/use-bar-chart.cjs +41 -0
  67. package/dist/cjs/components/chart/use-bar-chart.cjs.map +1 -0
  68. package/dist/cjs/components/chart/use-cartesian-chart.cjs +592 -0
  69. package/dist/cjs/components/chart/use-cartesian-chart.cjs.map +1 -0
  70. package/dist/cjs/components/chart/use-chart.cjs +253 -0
  71. package/dist/cjs/components/chart/use-chart.cjs.map +1 -0
  72. package/dist/cjs/components/chart/use-line-chart.cjs +41 -0
  73. package/dist/cjs/components/chart/use-line-chart.cjs.map +1 -0
  74. package/dist/cjs/components/chart/use-pie-chart.cjs +43 -0
  75. package/dist/cjs/components/chart/use-pie-chart.cjs.map +1 -0
  76. package/dist/cjs/components/chart/use-polar-chart.cjs +716 -0
  77. package/dist/cjs/components/chart/use-polar-chart.cjs.map +1 -0
  78. package/dist/cjs/components/chart/use-radar-chart.cjs +45 -0
  79. package/dist/cjs/components/chart/use-radar-chart.cjs.map +1 -0
  80. package/dist/cjs/components/chart/use-radial-chart.cjs +63 -0
  81. package/dist/cjs/components/chart/use-radial-chart.cjs.map +1 -0
  82. package/dist/cjs/components/checkbox/checkbox.style.cjs +18 -0
  83. package/dist/cjs/components/checkbox/checkbox.style.cjs.map +1 -1
  84. package/dist/cjs/components/checkbox-card/checkbox-card.style.cjs +18 -0
  85. package/dist/cjs/components/checkbox-card/checkbox-card.style.cjs.map +1 -1
  86. package/dist/cjs/components/color-picker/color-picker.cjs +2 -2
  87. package/dist/cjs/components/date-picker/date-picker.cjs +2 -2
  88. package/dist/cjs/components/dropzone/dropzone.style.cjs +18 -0
  89. package/dist/cjs/components/dropzone/dropzone.style.cjs.map +1 -1
  90. package/dist/cjs/components/editable/editable.style.cjs +36 -0
  91. package/dist/cjs/components/editable/editable.style.cjs.map +1 -1
  92. package/dist/cjs/components/field/field.cjs +28 -15
  93. package/dist/cjs/components/field/field.cjs.map +1 -1
  94. package/dist/cjs/components/field/use-field-props.cjs +12 -1
  95. package/dist/cjs/components/field/use-field-props.cjs.map +1 -1
  96. package/dist/cjs/components/fieldset/fieldset.cjs +12 -2
  97. package/dist/cjs/components/fieldset/fieldset.cjs.map +1 -1
  98. package/dist/cjs/components/fieldset/fieldset.style.cjs +1 -1
  99. package/dist/cjs/components/fieldset/fieldset.style.cjs.map +1 -1
  100. package/dist/cjs/components/file-button/file-button.cjs +2 -2
  101. package/dist/cjs/components/file-button/use-file-button.cjs +2 -5
  102. package/dist/cjs/components/file-button/use-file-button.cjs.map +1 -1
  103. package/dist/cjs/components/file-input/use-file-input.cjs +7 -2
  104. package/dist/cjs/components/file-input/use-file-input.cjs.map +1 -1
  105. package/dist/cjs/components/form/form.cjs +136 -0
  106. package/dist/cjs/components/form/form.cjs.map +1 -0
  107. package/dist/cjs/components/form/form.style.cjs +108 -0
  108. package/dist/cjs/components/form/form.style.cjs.map +1 -0
  109. package/dist/cjs/components/form/index.cjs +23 -0
  110. package/dist/cjs/components/form/namespace.cjs +25 -0
  111. package/dist/cjs/components/form/namespace.cjs.map +1 -0
  112. package/dist/cjs/components/input/input-group.cjs +2 -2
  113. package/dist/cjs/components/input/input.style.cjs +36 -0
  114. package/dist/cjs/components/input/input.style.cjs.map +1 -1
  115. package/dist/cjs/components/loading/oval.cjs +2 -3
  116. package/dist/cjs/components/loading/oval.cjs.map +1 -1
  117. package/dist/cjs/components/modal/modal.cjs +2 -2
  118. package/dist/cjs/components/native-accordion/index.cjs +23 -0
  119. package/dist/cjs/components/native-accordion/namespace.cjs +22 -0
  120. package/dist/cjs/components/native-accordion/namespace.cjs.map +1 -0
  121. package/dist/cjs/components/native-accordion/native-accordion.cjs +102 -0
  122. package/dist/cjs/components/native-accordion/native-accordion.cjs.map +1 -0
  123. package/dist/cjs/components/native-accordion/native-accordion.style.cjs +69 -0
  124. package/dist/cjs/components/native-accordion/native-accordion.style.cjs.map +1 -0
  125. package/dist/cjs/components/native-accordion/use-native-accordion.cjs +61 -0
  126. package/dist/cjs/components/native-accordion/use-native-accordion.cjs.map +1 -0
  127. package/dist/cjs/components/native-popover/index.cjs +23 -0
  128. package/dist/cjs/components/native-popover/namespace.cjs +25 -0
  129. package/dist/cjs/components/native-popover/namespace.cjs.map +1 -0
  130. package/dist/cjs/components/native-popover/native-popover.cjs +99 -0
  131. package/dist/cjs/components/native-popover/native-popover.cjs.map +1 -0
  132. package/dist/cjs/components/native-popover/native-popover.style.cjs +67 -0
  133. package/dist/cjs/components/native-popover/native-popover.style.cjs.map +1 -0
  134. package/dist/cjs/components/native-popover/use-native-popover.cjs +119 -0
  135. package/dist/cjs/components/native-popover/use-native-popover.cjs.map +1 -0
  136. package/dist/cjs/components/native-select/native-select.cjs +2 -2
  137. package/dist/cjs/components/number-input/number-input.cjs +2 -2
  138. package/dist/cjs/components/number-input/number-input.style.cjs +2 -2
  139. package/dist/cjs/components/password-input/password-input.cjs +2 -2
  140. package/dist/cjs/components/password-input/password-input.style.cjs +2 -2
  141. package/dist/cjs/components/pin-input/pin-input.cjs +2 -2
  142. package/dist/cjs/components/popover/index.cjs +1 -0
  143. package/dist/cjs/components/popover/namespace.cjs +1 -0
  144. package/dist/cjs/components/popover/namespace.cjs.map +1 -1
  145. package/dist/cjs/components/popover/popover.cjs +12 -4
  146. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  147. package/dist/cjs/components/popover/popover.style.cjs +4 -54
  148. package/dist/cjs/components/popover/popover.style.cjs.map +1 -1
  149. package/dist/cjs/components/popover/use-popover.cjs +16 -9
  150. package/dist/cjs/components/popover/use-popover.cjs.map +1 -1
  151. package/dist/cjs/components/qr-code/index.cjs +19 -0
  152. package/dist/cjs/components/qr-code/namespace.cjs +21 -0
  153. package/dist/cjs/components/qr-code/namespace.cjs.map +1 -0
  154. package/dist/cjs/components/qr-code/qr-code.cjs +66 -0
  155. package/dist/cjs/components/qr-code/qr-code.cjs.map +1 -0
  156. package/dist/cjs/components/qr-code/qr-code.style.cjs +48 -0
  157. package/dist/cjs/components/qr-code/qr-code.style.cjs.map +1 -0
  158. package/dist/cjs/components/qr-code/use-qr-code.cjs +67 -0
  159. package/dist/cjs/components/qr-code/use-qr-code.cjs.map +1 -0
  160. package/dist/cjs/components/radio/radio.style.cjs +18 -0
  161. package/dist/cjs/components/radio/radio.style.cjs.map +1 -1
  162. package/dist/cjs/components/radio-card/radio-card.style.cjs +21 -1
  163. package/dist/cjs/components/radio-card/radio-card.style.cjs.map +1 -1
  164. package/dist/cjs/components/rating/rating.style.cjs +19 -1
  165. package/dist/cjs/components/rating/rating.style.cjs.map +1 -1
  166. package/dist/cjs/components/resizable/index.cjs +3 -0
  167. package/dist/cjs/components/resizable/namespace.cjs +2 -0
  168. package/dist/cjs/components/resizable/namespace.cjs.map +1 -1
  169. package/dist/cjs/components/resizable/resizable.cjs +12 -12
  170. package/dist/cjs/components/resizable/resizable.cjs.map +1 -1
  171. package/dist/cjs/components/resizable/resizable.style.cjs +1 -2
  172. package/dist/cjs/components/resizable/resizable.style.cjs.map +1 -1
  173. package/dist/cjs/components/resizable/use-resizable.cjs +56 -89
  174. package/dist/cjs/components/resizable/use-resizable.cjs.map +1 -1
  175. package/dist/cjs/components/select/select.cjs +2 -2
  176. package/dist/cjs/components/slider/slider.style.cjs +18 -0
  177. package/dist/cjs/components/slider/slider.style.cjs.map +1 -1
  178. package/dist/cjs/components/tip/index.cjs +3 -0
  179. package/dist/cjs/components/tip/tip.cjs +53 -0
  180. package/dist/cjs/components/tip/tip.cjs.map +1 -0
  181. package/dist/cjs/components/toggle/toggle.cjs +2 -2
  182. package/dist/cjs/components/tooltip/index.cjs +2 -0
  183. package/dist/cjs/components/tooltip/use-tooltip.cjs +23 -3
  184. package/dist/cjs/components/tooltip/use-tooltip.cjs.map +1 -1
  185. package/dist/cjs/core/components/create-component.cjs +8 -4
  186. package/dist/cjs/core/components/create-component.cjs.map +1 -1
  187. package/dist/cjs/core/components/use-component-style.cjs +54 -14
  188. package/dist/cjs/core/components/use-component-style.cjs.map +1 -1
  189. package/dist/cjs/core/css/at-rule.cjs +3 -2
  190. package/dist/cjs/core/css/at-rule.cjs.map +1 -1
  191. package/dist/cjs/core/css/color-mix.cjs +5 -2
  192. package/dist/cjs/core/css/color-mix.cjs.map +1 -1
  193. package/dist/cjs/core/css/conditions.cjs +6 -0
  194. package/dist/cjs/core/css/conditions.cjs.map +1 -1
  195. package/dist/cjs/core/css/styles.cjs +13 -3
  196. package/dist/cjs/core/css/styles.cjs.map +1 -1
  197. package/dist/cjs/core/css/use-css.cjs +5 -4
  198. package/dist/cjs/core/css/use-css.cjs.map +1 -1
  199. package/dist/cjs/core/system/styled.cjs +4 -3
  200. package/dist/cjs/core/system/styled.cjs.map +1 -1
  201. package/dist/cjs/core/system/var.cjs +2 -1
  202. package/dist/cjs/core/system/var.cjs.map +1 -1
  203. package/dist/cjs/index.cjs +524 -171
  204. package/dist/cjs/index.cjs.map +1 -1
  205. package/dist/cjs/theme/styles/reset-style.cjs +1 -0
  206. package/dist/cjs/theme/styles/reset-style.cjs.map +1 -1
  207. package/dist/cjs/utils/children.cjs +9 -1
  208. package/dist/cjs/utils/children.cjs.map +1 -1
  209. package/dist/esm/components/accordion/accordion.js +8 -9
  210. package/dist/esm/components/accordion/accordion.js.map +1 -1
  211. package/dist/esm/components/accordion/accordion.style.js +11 -37
  212. package/dist/esm/components/accordion/accordion.style.js.map +1 -1
  213. package/dist/esm/components/accordion/use-accordion.js +7 -2
  214. package/dist/esm/components/accordion/use-accordion.js.map +1 -1
  215. package/dist/esm/components/autocomplete/autocomplete.js +2 -2
  216. package/dist/esm/components/button/button-group.js +1 -1
  217. package/dist/esm/components/chart/area-chart.js +38 -0
  218. package/dist/esm/components/chart/area-chart.js.map +1 -0
  219. package/dist/esm/components/chart/area-chart.namespace.js +26 -0
  220. package/dist/esm/components/chart/area-chart.namespace.js.map +1 -0
  221. package/dist/esm/components/chart/area-chart.style.js +12 -0
  222. package/dist/esm/components/chart/area-chart.style.js.map +1 -0
  223. package/dist/esm/components/chart/bar-chart.js +38 -0
  224. package/dist/esm/components/chart/bar-chart.js.map +1 -0
  225. package/dist/esm/components/chart/bar-chart.namespace.js +25 -0
  226. package/dist/esm/components/chart/bar-chart.namespace.js.map +1 -0
  227. package/dist/esm/components/chart/bar-chart.style.js +14 -0
  228. package/dist/esm/components/chart/bar-chart.style.js.map +1 -0
  229. package/dist/esm/components/chart/cartesian-chart.js +629 -0
  230. package/dist/esm/components/chart/cartesian-chart.js.map +1 -0
  231. package/dist/esm/components/chart/cartesian-chart.style.js +123 -0
  232. package/dist/esm/components/chart/cartesian-chart.style.js.map +1 -0
  233. package/dist/esm/components/chart/chart.js +222 -0
  234. package/dist/esm/components/chart/chart.js.map +1 -0
  235. package/dist/esm/components/chart/chart.style.js +119 -0
  236. package/dist/esm/components/chart/chart.style.js.map +1 -0
  237. package/dist/esm/components/chart/donut-chart.js +42 -0
  238. package/dist/esm/components/chart/donut-chart.js.map +1 -0
  239. package/dist/esm/components/chart/donut-chart.namespace.js +22 -0
  240. package/dist/esm/components/chart/donut-chart.namespace.js.map +1 -0
  241. package/dist/esm/components/chart/donut-chart.style.js +10 -0
  242. package/dist/esm/components/chart/donut-chart.style.js.map +1 -0
  243. package/dist/esm/components/chart/index.js +31 -0
  244. package/dist/esm/components/chart/line-chart.js +38 -0
  245. package/dist/esm/components/chart/line-chart.js.map +1 -0
  246. package/dist/esm/components/chart/line-chart.namespace.js +25 -0
  247. package/dist/esm/components/chart/line-chart.namespace.js.map +1 -0
  248. package/dist/esm/components/chart/line-chart.style.js +12 -0
  249. package/dist/esm/components/chart/line-chart.style.js.map +1 -0
  250. package/dist/esm/components/chart/pie-chart.js +42 -0
  251. package/dist/esm/components/chart/pie-chart.js.map +1 -0
  252. package/dist/esm/components/chart/pie-chart.namespace.js +22 -0
  253. package/dist/esm/components/chart/pie-chart.namespace.js.map +1 -0
  254. package/dist/esm/components/chart/pie-chart.style.js +12 -0
  255. package/dist/esm/components/chart/pie-chart.style.js.map +1 -0
  256. package/dist/esm/components/chart/polar-chart.js +651 -0
  257. package/dist/esm/components/chart/polar-chart.js.map +1 -0
  258. package/dist/esm/components/chart/polar-chart.style.js +150 -0
  259. package/dist/esm/components/chart/polar-chart.style.js.map +1 -0
  260. package/dist/esm/components/chart/radar-chart.js +41 -0
  261. package/dist/esm/components/chart/radar-chart.js.map +1 -0
  262. package/dist/esm/components/chart/radar-chart.namespace.js +25 -0
  263. package/dist/esm/components/chart/radar-chart.namespace.js.map +1 -0
  264. package/dist/esm/components/chart/radar-chart.style.js +12 -0
  265. package/dist/esm/components/chart/radar-chart.style.js.map +1 -0
  266. package/dist/esm/components/chart/radial-chart.js +54 -0
  267. package/dist/esm/components/chart/radial-chart.js.map +1 -0
  268. package/dist/esm/components/chart/radial-chart.namespace.js +25 -0
  269. package/dist/esm/components/chart/radial-chart.namespace.js.map +1 -0
  270. package/dist/esm/components/chart/radial-chart.style.js +15 -0
  271. package/dist/esm/components/chart/radial-chart.style.js.map +1 -0
  272. package/dist/esm/components/chart/use-area-chart.js +40 -0
  273. package/dist/esm/components/chart/use-area-chart.js.map +1 -0
  274. package/dist/esm/components/chart/use-bar-chart.js +40 -0
  275. package/dist/esm/components/chart/use-bar-chart.js.map +1 -0
  276. package/dist/esm/components/chart/use-cartesian-chart.js +585 -0
  277. package/dist/esm/components/chart/use-cartesian-chart.js.map +1 -0
  278. package/dist/esm/components/chart/use-chart.js +246 -0
  279. package/dist/esm/components/chart/use-chart.js.map +1 -0
  280. package/dist/esm/components/chart/use-line-chart.js +40 -0
  281. package/dist/esm/components/chart/use-line-chart.js.map +1 -0
  282. package/dist/esm/components/chart/use-pie-chart.js +42 -0
  283. package/dist/esm/components/chart/use-pie-chart.js.map +1 -0
  284. package/dist/esm/components/chart/use-polar-chart.js +707 -0
  285. package/dist/esm/components/chart/use-polar-chart.js.map +1 -0
  286. package/dist/esm/components/chart/use-radar-chart.js +44 -0
  287. package/dist/esm/components/chart/use-radar-chart.js.map +1 -0
  288. package/dist/esm/components/chart/use-radial-chart.js +62 -0
  289. package/dist/esm/components/chart/use-radial-chart.js.map +1 -0
  290. package/dist/esm/components/checkbox/checkbox.style.js +18 -0
  291. package/dist/esm/components/checkbox/checkbox.style.js.map +1 -1
  292. package/dist/esm/components/checkbox-card/checkbox-card.style.js +18 -0
  293. package/dist/esm/components/checkbox-card/checkbox-card.style.js.map +1 -1
  294. package/dist/esm/components/color-picker/color-picker.js +2 -2
  295. package/dist/esm/components/date-picker/date-picker.js +2 -2
  296. package/dist/esm/components/dropzone/dropzone.style.js +18 -0
  297. package/dist/esm/components/dropzone/dropzone.style.js.map +1 -1
  298. package/dist/esm/components/editable/editable.style.js +36 -0
  299. package/dist/esm/components/editable/editable.style.js.map +1 -1
  300. package/dist/esm/components/field/field.js +28 -15
  301. package/dist/esm/components/field/field.js.map +1 -1
  302. package/dist/esm/components/field/use-field-props.js +12 -1
  303. package/dist/esm/components/field/use-field-props.js.map +1 -1
  304. package/dist/esm/components/fieldset/fieldset.js +12 -2
  305. package/dist/esm/components/fieldset/fieldset.js.map +1 -1
  306. package/dist/esm/components/fieldset/fieldset.style.js +1 -1
  307. package/dist/esm/components/fieldset/fieldset.style.js.map +1 -1
  308. package/dist/esm/components/file-button/file-button.js +2 -2
  309. package/dist/esm/components/file-button/use-file-button.js +2 -5
  310. package/dist/esm/components/file-button/use-file-button.js.map +1 -1
  311. package/dist/esm/components/file-input/use-file-input.js +7 -2
  312. package/dist/esm/components/file-input/use-file-input.js.map +1 -1
  313. package/dist/esm/components/form/form.js +124 -0
  314. package/dist/esm/components/form/form.js.map +1 -0
  315. package/dist/esm/components/form/form.style.js +108 -0
  316. package/dist/esm/components/form/form.style.js.map +1 -0
  317. package/dist/esm/components/form/index.js +5 -0
  318. package/dist/esm/components/form/namespace.js +20 -0
  319. package/dist/esm/components/form/namespace.js.map +1 -0
  320. package/dist/esm/components/input/input-group.js +2 -2
  321. package/dist/esm/components/input/input.style.js +36 -0
  322. package/dist/esm/components/input/input.style.js.map +1 -1
  323. package/dist/esm/components/loading/oval.js +2 -3
  324. package/dist/esm/components/loading/oval.js.map +1 -1
  325. package/dist/esm/components/modal/modal.js +2 -2
  326. package/dist/esm/components/native-accordion/index.js +6 -0
  327. package/dist/esm/components/native-accordion/namespace.js +17 -0
  328. package/dist/esm/components/native-accordion/namespace.js.map +1 -0
  329. package/dist/esm/components/native-accordion/native-accordion.js +95 -0
  330. package/dist/esm/components/native-accordion/native-accordion.js.map +1 -0
  331. package/dist/esm/components/native-accordion/native-accordion.style.js +69 -0
  332. package/dist/esm/components/native-accordion/native-accordion.style.js.map +1 -0
  333. package/dist/esm/components/native-accordion/use-native-accordion.js +57 -0
  334. package/dist/esm/components/native-accordion/use-native-accordion.js.map +1 -0
  335. package/dist/esm/components/native-popover/index.js +6 -0
  336. package/dist/esm/components/native-popover/namespace.js +20 -0
  337. package/dist/esm/components/native-popover/namespace.js.map +1 -0
  338. package/dist/esm/components/native-popover/native-popover.js +89 -0
  339. package/dist/esm/components/native-popover/native-popover.js.map +1 -0
  340. package/dist/esm/components/native-popover/native-popover.style.js +67 -0
  341. package/dist/esm/components/native-popover/native-popover.style.js.map +1 -0
  342. package/dist/esm/components/native-popover/use-native-popover.js +118 -0
  343. package/dist/esm/components/native-popover/use-native-popover.js.map +1 -0
  344. package/dist/esm/components/native-select/native-select.js +2 -2
  345. package/dist/esm/components/number-input/number-input.js +2 -2
  346. package/dist/esm/components/number-input/number-input.style.js +2 -2
  347. package/dist/esm/components/password-input/password-input.js +2 -2
  348. package/dist/esm/components/password-input/password-input.style.js +2 -2
  349. package/dist/esm/components/pin-input/pin-input.js +2 -2
  350. package/dist/esm/components/popover/index.js +2 -2
  351. package/dist/esm/components/popover/namespace.js +2 -1
  352. package/dist/esm/components/popover/namespace.js.map +1 -1
  353. package/dist/esm/components/popover/popover.js +12 -5
  354. package/dist/esm/components/popover/popover.js.map +1 -1
  355. package/dist/esm/components/popover/popover.style.js +4 -54
  356. package/dist/esm/components/popover/popover.style.js.map +1 -1
  357. package/dist/esm/components/popover/use-popover.js +16 -9
  358. package/dist/esm/components/popover/use-popover.js.map +1 -1
  359. package/dist/esm/components/qr-code/index.js +6 -0
  360. package/dist/esm/components/qr-code/namespace.js +16 -0
  361. package/dist/esm/components/qr-code/namespace.js.map +1 -0
  362. package/dist/esm/components/qr-code/qr-code.js +60 -0
  363. package/dist/esm/components/qr-code/qr-code.js.map +1 -0
  364. package/dist/esm/components/qr-code/qr-code.style.js +48 -0
  365. package/dist/esm/components/qr-code/qr-code.style.js.map +1 -0
  366. package/dist/esm/components/qr-code/use-qr-code.js +66 -0
  367. package/dist/esm/components/qr-code/use-qr-code.js.map +1 -0
  368. package/dist/esm/components/radio/radio.style.js +18 -0
  369. package/dist/esm/components/radio/radio.style.js.map +1 -1
  370. package/dist/esm/components/radio-card/radio-card.style.js +21 -1
  371. package/dist/esm/components/radio-card/radio-card.style.js.map +1 -1
  372. package/dist/esm/components/rating/rating.style.js +19 -1
  373. package/dist/esm/components/rating/rating.style.js.map +1 -1
  374. package/dist/esm/components/resizable/index.js +2 -2
  375. package/dist/esm/components/resizable/namespace.js +2 -1
  376. package/dist/esm/components/resizable/namespace.js.map +1 -1
  377. package/dist/esm/components/resizable/resizable.js +13 -13
  378. package/dist/esm/components/resizable/resizable.js.map +1 -1
  379. package/dist/esm/components/resizable/resizable.style.js +1 -2
  380. package/dist/esm/components/resizable/resizable.style.js.map +1 -1
  381. package/dist/esm/components/resizable/use-resizable.js +60 -93
  382. package/dist/esm/components/resizable/use-resizable.js.map +1 -1
  383. package/dist/esm/components/select/select.js +2 -2
  384. package/dist/esm/components/slider/slider.style.js +18 -0
  385. package/dist/esm/components/slider/slider.style.js.map +1 -1
  386. package/dist/esm/components/tip/index.js +3 -0
  387. package/dist/esm/components/tip/tip.js +52 -0
  388. package/dist/esm/components/tip/tip.js.map +1 -0
  389. package/dist/esm/components/toggle/toggle.js +2 -2
  390. package/dist/esm/components/tooltip/index.js +2 -2
  391. package/dist/esm/components/tooltip/use-tooltip.js +22 -4
  392. package/dist/esm/components/tooltip/use-tooltip.js.map +1 -1
  393. package/dist/esm/core/components/create-component.js +8 -4
  394. package/dist/esm/core/components/create-component.js.map +1 -1
  395. package/dist/esm/core/components/use-component-style.js +54 -14
  396. package/dist/esm/core/components/use-component-style.js.map +1 -1
  397. package/dist/esm/core/css/at-rule.js +3 -2
  398. package/dist/esm/core/css/at-rule.js.map +1 -1
  399. package/dist/esm/core/css/color-mix.js +5 -2
  400. package/dist/esm/core/css/color-mix.js.map +1 -1
  401. package/dist/esm/core/css/conditions.js +6 -0
  402. package/dist/esm/core/css/conditions.js.map +1 -1
  403. package/dist/esm/core/css/styles.js +13 -3
  404. package/dist/esm/core/css/styles.js.map +1 -1
  405. package/dist/esm/core/css/use-css.js +5 -4
  406. package/dist/esm/core/css/use-css.js.map +1 -1
  407. package/dist/esm/core/system/styled.js +4 -3
  408. package/dist/esm/core/system/styled.js.map +1 -1
  409. package/dist/esm/core/system/var.js +2 -1
  410. package/dist/esm/core/system/var.js.map +1 -1
  411. package/dist/esm/index.js +258 -84
  412. package/dist/esm/index.js.map +1 -1
  413. package/dist/esm/theme/styles/reset-style.js +1 -0
  414. package/dist/esm/theme/styles/reset-style.js.map +1 -1
  415. package/dist/esm/utils/children.js +9 -1
  416. package/dist/esm/utils/children.js.map +1 -1
  417. package/dist/types/components/accordion/accordion.d.ts +3 -6
  418. package/dist/types/components/accordion/use-accordion.d.ts +11 -11
  419. package/dist/types/components/airy/airy.d.ts +2 -2
  420. package/dist/types/components/alert/alert.d.ts +2 -2
  421. package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
  422. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
  423. package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
  424. package/dist/types/components/autocomplete/autocomplete.style.d.ts +13 -1
  425. package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
  426. package/dist/types/components/avatar/avatar.d.ts +6 -6
  427. package/dist/types/components/avatar/avatar.style.d.ts +1 -1
  428. package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
  429. package/dist/types/components/badge/badge.d.ts +2 -2
  430. package/dist/types/components/bleed/bleed.d.ts +2 -2
  431. package/dist/types/components/blockquote/blockquote.d.ts +2 -2
  432. package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
  433. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  434. package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
  435. package/dist/types/components/button/button.d.ts +2 -2
  436. package/dist/types/components/button/icon-button.d.ts +2 -2
  437. package/dist/types/components/calendar/calendar.d.ts +2 -2
  438. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  439. package/dist/types/components/calendar/use-calendar.d.ts +8 -8
  440. package/dist/types/components/card/card.d.ts +2 -2
  441. package/dist/types/components/carousel/carousel.d.ts +2 -2
  442. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  443. package/dist/types/components/carousel/use-carousel.d.ts +3 -3
  444. package/dist/types/components/center/center.d.ts +2 -2
  445. package/dist/types/components/chart/area-chart.d.ts +34 -0
  446. package/dist/types/components/chart/area-chart.namespace.d.ts +11 -0
  447. package/dist/types/components/chart/area-chart.style.d.ts +10 -0
  448. package/dist/types/components/chart/bar-chart.d.ts +34 -0
  449. package/dist/types/components/chart/bar-chart.namespace.d.ts +11 -0
  450. package/dist/types/components/chart/bar-chart.style.d.ts +10 -0
  451. package/dist/types/components/chart/cartesian-chart.d.ts +311 -0
  452. package/dist/types/components/chart/cartesian-chart.style.d.ts +10 -0
  453. package/dist/types/components/chart/chart.d.ts +148 -0
  454. package/dist/types/components/chart/chart.style.d.ts +36 -0
  455. package/dist/types/components/chart/donut-chart.d.ts +34 -0
  456. package/dist/types/components/chart/donut-chart.namespace.d.ts +11 -0
  457. package/dist/types/components/chart/donut-chart.style.d.ts +10 -0
  458. package/dist/types/components/chart/index.d.ts +30 -0
  459. package/dist/types/components/chart/line-chart.d.ts +34 -0
  460. package/dist/types/components/chart/line-chart.namespace.d.ts +11 -0
  461. package/dist/types/components/chart/line-chart.style.d.ts +10 -0
  462. package/dist/types/components/chart/pie-chart.d.ts +34 -0
  463. package/dist/types/components/chart/pie-chart.namespace.d.ts +11 -0
  464. package/dist/types/components/chart/pie-chart.style.d.ts +10 -0
  465. package/dist/types/components/chart/polar-chart.d.ts +401 -0
  466. package/dist/types/components/chart/polar-chart.style.d.ts +10 -0
  467. package/dist/types/components/chart/radar-chart.d.ts +34 -0
  468. package/dist/types/components/chart/radar-chart.namespace.d.ts +11 -0
  469. package/dist/types/components/chart/radar-chart.style.d.ts +10 -0
  470. package/dist/types/components/chart/radial-chart.d.ts +34 -0
  471. package/dist/types/components/chart/radial-chart.namespace.d.ts +11 -0
  472. package/dist/types/components/chart/radial-chart.style.d.ts +10 -0
  473. package/dist/types/components/chart/use-area-chart.d.ts +29 -0
  474. package/dist/types/components/chart/use-bar-chart.d.ts +29 -0
  475. package/dist/types/components/chart/use-cartesian-chart.d.ts +238 -0
  476. package/dist/types/components/chart/use-chart.d.ts +117 -0
  477. package/dist/types/components/chart/use-line-chart.d.ts +29 -0
  478. package/dist/types/components/chart/use-pie-chart.d.ts +30 -0
  479. package/dist/types/components/chart/use-polar-chart.d.ts +330 -0
  480. package/dist/types/components/chart/use-radar-chart.d.ts +31 -0
  481. package/dist/types/components/chart/use-radial-chart.d.ts +40 -0
  482. package/dist/types/components/checkbox/checkbox.d.ts +5 -5
  483. package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
  484. package/dist/types/components/checkbox-card/checkbox-card.d.ts +23 -5
  485. package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +6 -0
  486. package/dist/types/components/circle-progress/circle-progress.d.ts +2 -2
  487. package/dist/types/components/close-button/close-button.d.ts +2 -2
  488. package/dist/types/components/code/code.d.ts +2 -2
  489. package/dist/types/components/collapse/collapse.d.ts +2 -2
  490. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  491. package/dist/types/components/color-picker/color-picker.style.d.ts +12 -0
  492. package/dist/types/components/color-picker/use-color-picker.d.ts +2 -2
  493. package/dist/types/components/color-selector/color-selector.d.ts +2 -2
  494. package/dist/types/components/color-selector/use-color-selector.d.ts +3 -3
  495. package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
  496. package/dist/types/components/container/container.d.ts +2 -2
  497. package/dist/types/components/data-list/data-list.d.ts +2 -2
  498. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  499. package/dist/types/components/date-picker/date-picker.style.d.ts +13 -1
  500. package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
  501. package/dist/types/components/drawer/drawer.d.ts +2 -2
  502. package/dist/types/components/drawer/drawer.style.d.ts +2 -2
  503. package/dist/types/components/dropzone/dropzone.d.ts +8 -2
  504. package/dist/types/components/dropzone/dropzone.style.d.ts +6 -0
  505. package/dist/types/components/editable/editable.d.ts +2 -2
  506. package/dist/types/components/editable/use-editable.d.ts +2 -2
  507. package/dist/types/components/em/em.d.ts +2 -2
  508. package/dist/types/components/empty-state/empty-state.d.ts +2 -2
  509. package/dist/types/components/fade/fade.d.ts +2 -2
  510. package/dist/types/components/field/field.d.ts +7 -3
  511. package/dist/types/components/field/field.style.d.ts +2 -2
  512. package/dist/types/components/field/use-field-props.d.ts +7 -4
  513. package/dist/types/components/fieldset/fieldset.d.ts +3 -3
  514. package/dist/types/components/fieldset/fieldset.style.d.ts +4 -2
  515. package/dist/types/components/file-button/file-button.d.ts +2 -2
  516. package/dist/types/components/file-button/use-file-button.d.ts +17 -17
  517. package/dist/types/components/file-input/file-input.d.ts +2 -2
  518. package/dist/types/components/file-input/file-input.style.d.ts +12 -0
  519. package/dist/types/components/file-input/use-file-input.d.ts +17 -17
  520. package/dist/types/components/flex/flex.d.ts +2 -2
  521. package/dist/types/components/flip/flip.d.ts +2 -2
  522. package/dist/types/components/float/float.d.ts +2 -2
  523. package/dist/types/components/form/form.d.ts +129 -0
  524. package/dist/types/components/form/form.style.d.ts +107 -0
  525. package/dist/types/components/form/index.d.ts +4 -0
  526. package/dist/types/components/form/namespace.d.ts +9 -0
  527. package/dist/types/components/format/format-byte.d.ts +2 -2
  528. package/dist/types/components/format/format-date-time.d.ts +2 -2
  529. package/dist/types/components/format/format-number.d.ts +2 -2
  530. package/dist/types/components/grid/grid-item.d.ts +2 -2
  531. package/dist/types/components/grid/grid.d.ts +2 -2
  532. package/dist/types/components/group/group.d.ts +2 -2
  533. package/dist/types/components/group/use-group.d.ts +2 -2
  534. package/dist/types/components/heading/heading.d.ts +2 -2
  535. package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
  536. package/dist/types/components/icon/icon.d.ts +4 -4
  537. package/dist/types/components/image/image.d.ts +2 -2
  538. package/dist/types/components/indicator/indicator.d.ts +2 -2
  539. package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
  540. package/dist/types/components/input/input-addon.d.ts +2 -2
  541. package/dist/types/components/input/input-element.d.ts +2 -2
  542. package/dist/types/components/input/input.d.ts +2 -2
  543. package/dist/types/components/input/input.style.d.ts +12 -0
  544. package/dist/types/components/kbd/kbd.d.ts +2 -2
  545. package/dist/types/components/link/link.d.ts +2 -2
  546. package/dist/types/components/link-box/link-box.d.ts +2 -2
  547. package/dist/types/components/list/list.d.ts +2 -2
  548. package/dist/types/components/loading/loading-provider.d.ts +2 -2
  549. package/dist/types/components/loading/loading.d.ts +3 -3
  550. package/dist/types/components/mark/mark.d.ts +2 -2
  551. package/dist/types/components/menu/menu.d.ts +2 -2
  552. package/dist/types/components/menu/menu.style.d.ts +2 -2
  553. package/dist/types/components/menu/use-menu.d.ts +11 -11
  554. package/dist/types/components/modal/modal.d.ts +2 -2
  555. package/dist/types/components/modal/modal.style.d.ts +2 -2
  556. package/dist/types/components/native-accordion/index.d.ts +5 -0
  557. package/dist/types/components/native-accordion/namespace.d.ts +9 -0
  558. package/dist/types/components/native-accordion/native-accordion.d.ts +59 -0
  559. package/dist/types/components/native-accordion/native-accordion.style.d.ts +58 -0
  560. package/dist/types/components/native-accordion/use-native-accordion.d.ts +50 -0
  561. package/dist/types/components/native-popover/index.d.ts +5 -0
  562. package/dist/types/components/native-popover/namespace.d.ts +9 -0
  563. package/dist/types/components/native-popover/native-popover.d.ts +35 -0
  564. package/dist/types/components/native-popover/native-popover.style.d.ts +39 -0
  565. package/dist/types/components/native-popover/use-native-popover.d.ts +75 -0
  566. package/dist/types/components/native-select/native-select.d.ts +2 -2
  567. package/dist/types/components/native-select/native-select.style.d.ts +12 -0
  568. package/dist/types/components/native-table/native-table.d.ts +2 -2
  569. package/dist/types/components/notice/notice.style.d.ts +1 -1
  570. package/dist/types/components/number-input/number-input.d.ts +2 -2
  571. package/dist/types/components/number-input/number-input.style.d.ts +12 -0
  572. package/dist/types/components/pagination/pagination.d.ts +2 -2
  573. package/dist/types/components/pagination/use-pagination.d.ts +2 -2
  574. package/dist/types/components/password-input/password-input.d.ts +2 -2
  575. package/dist/types/components/password-input/password-input.style.d.ts +12 -0
  576. package/dist/types/components/password-input/strength-meter.d.ts +2 -2
  577. package/dist/types/components/password-input/use-password-input.d.ts +2 -2
  578. package/dist/types/components/pin-input/pin-input.d.ts +2 -2
  579. package/dist/types/components/pin-input/pin-input.style.d.ts +12 -0
  580. package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
  581. package/dist/types/components/popover/index.d.ts +2 -2
  582. package/dist/types/components/popover/namespace.d.ts +2 -2
  583. package/dist/types/components/popover/popover.d.ts +5 -9
  584. package/dist/types/components/popover/use-popover.d.ts +1 -0
  585. package/dist/types/components/progress/progress.d.ts +2 -2
  586. package/dist/types/components/progress/use-progress.d.ts +706 -706
  587. package/dist/types/components/qr-code/index.d.ts +5 -0
  588. package/dist/types/components/qr-code/namespace.d.ts +9 -0
  589. package/dist/types/components/qr-code/qr-code.d.ts +35 -0
  590. package/dist/types/components/qr-code/qr-code.style.d.ts +56 -0
  591. package/dist/types/components/qr-code/use-qr-code.d.ts +94 -0
  592. package/dist/types/components/radio/radio.d.ts +5 -5
  593. package/dist/types/components/radio/use-radio-group.d.ts +2 -2
  594. package/dist/types/components/radio-card/radio-card.d.ts +29 -5
  595. package/dist/types/components/radio-card/radio-card.style.d.ts +8 -0
  596. package/dist/types/components/rating/rating.style.d.ts +2 -2
  597. package/dist/types/components/rating/use-rating.d.ts +7 -7
  598. package/dist/types/components/reorder/reorder.d.ts +2 -2
  599. package/dist/types/components/reorder/use-reorder.d.ts +3 -3
  600. package/dist/types/components/resizable/index.d.ts +2 -2
  601. package/dist/types/components/resizable/namespace.d.ts +2 -2
  602. package/dist/types/components/resizable/resizable.d.ts +5 -10
  603. package/dist/types/components/resizable/resizable.style.d.ts +0 -3
  604. package/dist/types/components/resizable/use-resizable.d.ts +20 -146
  605. package/dist/types/components/ripple/ripple.d.ts +2 -2
  606. package/dist/types/components/ripple/use-ripple.d.ts +2 -2
  607. package/dist/types/components/rotate/rotate.d.ts +2 -2
  608. package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
  609. package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -2
  610. package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
  611. package/dist/types/components/segmented-control/segmented-control.d.ts +2 -2
  612. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  613. package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -9
  614. package/dist/types/components/select/select.d.ts +2 -2
  615. package/dist/types/components/select/select.style.d.ts +13 -1
  616. package/dist/types/components/select/use-select.d.ts +4 -4
  617. package/dist/types/components/separator/separator.d.ts +2 -2
  618. package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
  619. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  620. package/dist/types/components/slide/slide.d.ts +2 -2
  621. package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
  622. package/dist/types/components/slider/slider.d.ts +2 -2
  623. package/dist/types/components/slider/slider.style.d.ts +10 -0
  624. package/dist/types/components/slider/use-slider.d.ts +2 -2
  625. package/dist/types/components/stack/h-stack.d.ts +2 -2
  626. package/dist/types/components/stack/stack.d.ts +2 -2
  627. package/dist/types/components/stack/v-stack.d.ts +2 -2
  628. package/dist/types/components/stack/z-stack.d.ts +2 -2
  629. package/dist/types/components/stat/stat.d.ts +2 -2
  630. package/dist/types/components/stat/stat.style.d.ts +2 -2
  631. package/dist/types/components/status/status.d.ts +2 -2
  632. package/dist/types/components/steps/steps.d.ts +2 -2
  633. package/dist/types/components/steps/steps.style.d.ts +1 -1
  634. package/dist/types/components/steps/use-steps.d.ts +10 -10
  635. package/dist/types/components/switch/switch.d.ts +2 -2
  636. package/dist/types/components/table/table.d.ts +2 -2
  637. package/dist/types/components/tabs/tabs.d.ts +2 -2
  638. package/dist/types/components/tabs/tabs.style.d.ts +1 -1
  639. package/dist/types/components/tabs/use-tabs.d.ts +16 -16
  640. package/dist/types/components/tag/tag.d.ts +2 -2
  641. package/dist/types/components/tag/tag.style.d.ts +1 -1
  642. package/dist/types/components/text/text.d.ts +2 -2
  643. package/dist/types/components/textarea/textarea.d.ts +2 -2
  644. package/dist/types/components/textarea/textarea.style.d.ts +12 -0
  645. package/dist/types/components/textarea/use-autosize.d.ts +2 -2
  646. package/dist/types/components/timeline/timeline.d.ts +5 -5
  647. package/dist/types/components/timeline/timeline.style.d.ts +2 -2
  648. package/dist/types/components/tip/index.d.ts +2 -0
  649. package/dist/types/components/tip/tip.d.ts +30 -0
  650. package/dist/types/components/toggle/toggle.d.ts +6 -6
  651. package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
  652. package/dist/types/components/toggle/use-toggle.d.ts +2 -2
  653. package/dist/types/components/tooltip/index.d.ts +2 -2
  654. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  655. package/dist/types/components/tooltip/use-tooltip.d.ts +4 -1
  656. package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
  657. package/dist/types/components/wrap/wrap.d.ts +2 -2
  658. package/dist/types/core/components/create-component.d.ts +9 -9
  659. package/dist/types/core/components/use-component-style.d.ts +1 -0
  660. package/dist/types/core/css/conditions.d.ts +53 -5
  661. package/dist/types/core/css/index.d.ts +2 -2
  662. package/dist/types/core/css/index.types.d.ts +78 -1
  663. package/dist/types/core/css/styles.d.ts +44 -111
  664. package/dist/types/core/css/use-css.d.ts +2 -2
  665. package/dist/types/core/index.d.ts +2 -2
  666. package/dist/types/core/system/color-mode-provider.d.ts +2 -2
  667. package/dist/types/core/system/styled.d.ts +3 -2
  668. package/dist/types/core/system/system-provider.d.ts +2 -2
  669. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
  670. package/dist/types/hooks/use-clickable/index.d.ts +9 -9
  671. package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
  672. package/dist/types/hooks/use-combobox/index.d.ts +12 -12
  673. package/dist/types/hooks/use-counter/index.d.ts +2 -2
  674. package/dist/types/hooks/use-descendants/index.d.ts +2 -2
  675. package/dist/types/hooks/use-field-sizing/index.d.ts +2 -2
  676. package/dist/types/hooks/use-hover/index.d.ts +2 -2
  677. package/dist/types/hooks/use-popper/index.d.ts +2 -2
  678. package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
  679. package/dist/types/index.d.ts +85 -34
  680. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
  681. package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -2
  682. package/dist/types/utils/children.d.ts +4 -4
  683. package/package.json +5 -3
@@ -1 +1 @@
1
- {"version":3,"file":"rating.style.cjs","names":["defineComponentSlotStyle","focusRingStyle"],"sources":["../../../../src/components/rating/rating.style.ts"],"sourcesContent":["import { defineComponentSlotStyle, focusRingStyle } from \"../../core\"\n\nexport const ratingStyle = defineComponentSlotStyle({\n base: {\n group: { position: \"relative\" },\n icon: {\n alignItems: \"center\",\n clipPath: \"{clip-path}\",\n display: \"inline-flex\",\n fill: \"currentColor\",\n justifyContent: \"center\",\n },\n item: {\n \"&:has(input:focus-visible)\": { ...focusRingStyle.outside },\n color: { base: \"{empty-color}\", _filled: \"{filled-color}\" },\n cursor: \"pointer\",\n display: \"block\",\n lineHeight: \"0\",\n rounded: \"l1\",\n _notLast: { inset: 0, position: \"absolute\" },\n _readOnly: { layerStyle: \"readOnly\" },\n _disabled: { layerStyle: \"disabled\" },\n },\n root: {\n \"--empty-color\": \"colors.bg.muted\",\n \"--filled-color\": \"colorScheme.solid\",\n display: \"flex\",\n w: \"max-content\",\n },\n },\n\n sizes: {\n xs: { icon: { fontSize: \"md\" } },\n sm: { icon: { fontSize: \"lg\" } },\n md: { icon: { fontSize: \"xl\" } },\n lg: { icon: { fontSize: \"2xl\" } },\n xl: { icon: { fontSize: \"3xl\" } },\n },\n\n defaultProps: {\n size: \"md\",\n },\n})\n\nexport type RatingStyle = typeof ratingStyle\n"],"mappings":";;;;;AAEA,MAAa,cAAcA,wCAAyB;CAClD,MAAM;EACJ,OAAO,EAAE,UAAU,YAAY;EAC/B,MAAM;GACJ,YAAY;GACZ,UAAU;GACV,SAAS;GACT,MAAM;GACN,gBAAgB;GACjB;EACD,MAAM;GACJ,8BAA8B,EAAE,GAAGC,kCAAe,SAAS;GAC3D,OAAO;IAAE,MAAM;IAAiB,SAAS;IAAkB;GAC3D,QAAQ;GACR,SAAS;GACT,YAAY;GACZ,SAAS;GACT,UAAU;IAAE,OAAO;IAAG,UAAU;IAAY;GAC5C,WAAW,EAAE,YAAY,YAAY;GACrC,WAAW,EAAE,YAAY,YAAY;GACtC;EACD,MAAM;GACJ,iBAAiB;GACjB,kBAAkB;GAClB,SAAS;GACT,GAAG;GACJ;EACF;CAED,OAAO;EACL,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,OAAO,EAAE;EACjC,IAAI,EAAE,MAAM,EAAE,UAAU,OAAO,EAAE;EAClC;CAED,cAAc,EACZ,MAAM,MACP;CACF,CAAC"}
1
+ {"version":3,"file":"rating.style.cjs","names":["defineComponentSlotStyle","focusRingStyle"],"sources":["../../../../src/components/rating/rating.style.ts"],"sourcesContent":["import { defineComponentSlotStyle, focusRingStyle } from \"../../core\"\n\nexport const ratingStyle = defineComponentSlotStyle({\n base: {\n group: { position: \"relative\" },\n icon: {\n alignItems: \"center\",\n clipPath: \"{clip-path}\",\n display: \"inline-flex\",\n fill: \"currentColor\",\n justifyContent: \"center\",\n },\n item: {\n \"&:has(input:focus-visible)\": { ...focusRingStyle.outside },\n color: { base: \"{empty-color}\", _filled: \"{filled-color}\" },\n cursor: \"pointer\",\n display: \"block\",\n lineHeight: \"0\",\n rounded: \"l1\",\n _notLast: { inset: 0, position: \"absolute\" },\n _readOnly: { layerStyle: \"readOnly\" },\n _disabled: { layerStyle: \"disabled\" },\n },\n root: {\n \"--empty-color\": \"colors.bg.muted\",\n \"--filled-color\": \"colorScheme.solid\",\n display: \"flex\",\n w: \"max-content\",\n _container: [\n {\n css: { \"--empty-color\": \"colors.bg\" },\n style: '--form-group-variant: \"panel\"',\n },\n {\n css: { \"--empty-color\": \"colors.bg\" },\n style: '--fieldset-root-variant: \"panel\"',\n },\n {\n css: { \"--empty-color\": \"colors.bg\" },\n style: '--form-group-variant: \"elevated\"',\n },\n {\n css: { \"--empty-color\": \"colors.bg\" },\n style: '--fieldset-root-variant: \"elevated\"',\n },\n ],\n },\n },\n\n sizes: {\n xs: { icon: { fontSize: \"md\" } },\n sm: { icon: { fontSize: \"lg\" } },\n md: { icon: { fontSize: \"xl\" } },\n lg: { icon: { fontSize: \"2xl\" } },\n xl: { icon: { fontSize: \"3xl\" } },\n },\n\n defaultProps: {\n size: \"md\",\n },\n})\n\nexport type RatingStyle = typeof ratingStyle\n"],"mappings":";;;;;AAEA,MAAa,cAAcA,wCAAyB;CAClD,MAAM;EACJ,OAAO,EAAE,UAAU,YAAY;EAC/B,MAAM;GACJ,YAAY;GACZ,UAAU;GACV,SAAS;GACT,MAAM;GACN,gBAAgB;GACjB;EACD,MAAM;GACJ,8BAA8B,EAAE,GAAGC,kCAAe,SAAS;GAC3D,OAAO;IAAE,MAAM;IAAiB,SAAS;IAAkB;GAC3D,QAAQ;GACR,SAAS;GACT,YAAY;GACZ,SAAS;GACT,UAAU;IAAE,OAAO;IAAG,UAAU;IAAY;GAC5C,WAAW,EAAE,YAAY,YAAY;GACrC,WAAW,EAAE,YAAY,YAAY;GACtC;EACD,MAAM;GACJ,iBAAiB;GACjB,kBAAkB;GAClB,SAAS;GACT,GAAG;GACH,YAAY;IACV;KACE,KAAK,EAAE,iBAAiB,aAAa;KACrC,OAAO;KACR;IACD;KACE,KAAK,EAAE,iBAAiB,aAAa;KACrC,OAAO;KACR;IACD;KACE,KAAK,EAAE,iBAAiB,aAAa;KACrC,OAAO;KACR;IACD;KACE,KAAK,EAAE,iBAAiB,aAAa;KACrC,OAAO;KACR;IACF;GACF;EACF;CAED,OAAO;EACL,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,OAAO,EAAE;EACjC,IAAI,EAAE,MAAM,EAAE,UAAU,OAAO,EAAE;EAClC;CAED,cAAc,EACZ,MAAM,MACP;CACF,CAAC"}
@@ -1,7 +1,9 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
1
2
  const require_resizable_style = require('./resizable.style.cjs');
2
3
  const require_use_resizable = require('./use-resizable.cjs');
3
4
  const require_resizable = require('./resizable.cjs');
4
5
  const require_namespace = require('./namespace.cjs');
6
+ let react_resizable_panels = require("react-resizable-panels");
5
7
 
6
8
  Object.defineProperty(exports, 'Resizable', {
7
9
  enumerable: true,
@@ -18,5 +20,6 @@ exports.resizableStyle = require_resizable_style.resizableStyle;
18
20
  exports.useResizable = require_use_resizable.useResizable;
19
21
  exports.useResizableContext = require_use_resizable.useResizableContext;
20
22
  exports.useResizableItem = require_use_resizable.useResizableItem;
23
+ exports.useResizableLayout = react_resizable_panels.useDefaultLayout;
21
24
  exports.useResizablePropsContext = require_resizable.useResizablePropsContext;
22
25
  exports.useResizableTrigger = require_use_resizable.useResizableTrigger;
@@ -1,6 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_use_resizable = require('./use-resizable.cjs');
3
3
  const require_resizable = require('./resizable.cjs');
4
+ let react_resizable_panels = require("react-resizable-panels");
4
5
 
5
6
  //#region src/components/resizable/namespace.ts
6
7
  var namespace_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
@@ -10,6 +11,7 @@ var namespace_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
10
11
  Root: () => require_resizable.ResizableRoot,
11
12
  Trigger: () => require_resizable.ResizableTrigger,
12
13
  useContext: () => require_use_resizable.useResizableContext,
14
+ useLayout: () => react_resizable_panels.useDefaultLayout,
13
15
  usePropsContext: () => require_resizable.useResizablePropsContext
14
16
  });
15
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.cjs","names":[],"sources":["../../../../src/components/resizable/namespace.ts"],"sourcesContent":["export {\n ResizableItem as Item,\n ResizablePropsContext as PropsContext,\n ResizableRoot as Root,\n ResizableTrigger as Trigger,\n useResizablePropsContext as usePropsContext,\n} from \"./resizable\"\nexport type {\n ResizableItemProps as ItemProps,\n ResizableRootProps as RootProps,\n ResizableTriggerProps as TriggerProps,\n} from \"./resizable\"\nexport {\n ResizableContext as Context,\n useResizableContext as useContext,\n} from \"./use-resizable\"\nexport type {\n ResizableGroupControl as GroupControl,\n ResizableItemControl as ItemControl,\n ResizableStorage as Storage,\n} from \"./use-resizable\"\n"],"mappings":""}
1
+ {"version":3,"file":"namespace.cjs","names":[],"sources":["../../../../src/components/resizable/namespace.ts"],"sourcesContent":["export {\n ResizableItem as Item,\n ResizablePropsContext as PropsContext,\n ResizableRoot as Root,\n ResizableTrigger as Trigger,\n useResizablePropsContext as usePropsContext,\n} from \"./resizable\"\nexport type {\n ResizableItemProps as ItemProps,\n ResizableRootProps as RootProps,\n ResizableTriggerProps as TriggerProps,\n} from \"./resizable\"\nexport {\n ResizableContext as Context,\n useResizableContext as useContext,\n useResizableLayout as useLayout,\n} from \"./use-resizable\"\nexport type {\n ResizableItemControl as ItemControl,\n ResizableRootControl as RootControl,\n ResizableStorage as Storage,\n} from \"./use-resizable\"\n"],"mappings":""}
@@ -13,39 +13,39 @@ let react_resizable_panels = require("react-resizable-panels");
13
13
 
14
14
  //#region src/components/resizable/resizable.tsx
15
15
  const { PropsContext: ResizablePropsContext, usePropsContext: useResizablePropsContext, withContext, withProvider } = require_create_component.createSlotComponent("resizable", require_resizable_style.resizableStyle);
16
- const ResizableRoot = withProvider(({ children, orientation: orientationProp, rootRef, ...rest }) => {
17
- const { controlRef, disabled, orientation, getGroupProps, getRootProps } = require_use_resizable.useResizable({
16
+ const ResizableRoot = withProvider(({ children, orientation: orientationProp, ...rest }) => {
17
+ const { disabled, groupRef, orientation, getRootProps } = require_use_resizable.useResizable({
18
18
  orientation: require_hooks_use_value_index.useValue(orientationProp),
19
19
  ...rest
20
20
  });
21
21
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_resizable.ResizableContext, {
22
22
  value: (0, react.useMemo)(() => ({
23
- controlRef,
24
23
  disabled,
24
+ groupRef,
25
25
  orientation
26
26
  }), [
27
27
  disabled,
28
28
  orientation,
29
- controlRef
29
+ groupRef
30
30
  ]),
31
31
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.div, {
32
- ...getRootProps({ ref: rootRef }),
33
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_resizable_panels.PanelGroup, {
34
- ...getGroupProps(),
35
- children
36
- })
32
+ as: react_resizable_panels.Group,
33
+ ...getRootProps(),
34
+ children
37
35
  })
38
36
  });
39
37
  }, "root", { transferProps: ["orientation"] })();
40
- const StyledPanel = require_factory.styled(react_resizable_panels.Panel, { forwardProps: ["order"] });
41
38
  const ResizableItem = withContext((props) => {
42
39
  const { getItemProps } = require_use_resizable.useResizableItem(props);
43
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledPanel, { ...getItemProps() });
40
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.div, {
41
+ as: react_resizable_panels.Panel,
42
+ ...getItemProps()
43
+ });
44
44
  }, "item")();
45
45
  const ResizableTrigger = withContext(({ children, icon, iconProps, ...rest }) => {
46
46
  const { getIconProps, getTriggerProps } = require_use_resizable.useResizableTrigger(rest);
47
47
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_factory.styled.div, {
48
- as: react_resizable_panels.PanelResizeHandle,
48
+ as: react_resizable_panels.Separator,
49
49
  ...getTriggerProps(),
50
50
  children: [icon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ResizableIcon, {
51
51
  ...getIconProps(iconProps),
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.cjs","names":["createSlotComponent","resizableStyle","useResizable","useValue","ResizableContext","styled","PanelGroup","Panel","useResizableItem","useResizableTrigger","PanelResizeHandle"],"sources":["../../../../src/components/resizable/resizable.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ForwardedRef, ReactElement } from \"react\"\nimport type {\n HTMLStyledProps,\n HTMLStyledPropsWithoutAs,\n ThemeProps,\n} from \"../../core\"\nimport type { ResizableStyle } from \"./resizable.style\"\nimport type {\n UseResizableItemProps,\n UseResizableProps,\n UseResizableTriggerProps,\n} from \"./use-resizable\"\nimport { useMemo } from \"react\"\nimport { Panel, PanelGroup, PanelResizeHandle } from \"react-resizable-panels\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { resizableStyle } from \"./resizable.style\"\nimport {\n ResizableContext,\n useResizable,\n useResizableItem,\n useResizableTrigger,\n} from \"./use-resizable\"\n\n/**\n * `Resizable` is accessible resizable panel groups and layouts with keyboard support.\n *\n * @see https://yamada-ui.com/docs/components/resizable\n */\nexport interface ResizableRootProps\n extends\n HTMLStyledProps,\n ThemeProps<ResizableStyle>,\n Omit<UseResizableProps, \"orientation\"> {\n /**\n * Ref for resizable root element.\n */\n rootRef?: ForwardedRef<HTMLDivElement>\n}\n\nconst {\n PropsContext: ResizablePropsContext,\n usePropsContext: useResizablePropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ResizableRootProps, ResizableStyle>(\n \"resizable\",\n resizableStyle,\n)\n\nexport { ResizablePropsContext, useResizablePropsContext }\n\nexport const ResizableRoot = withProvider<\n \"div\",\n ResizableRootProps,\n \"orientation\"\n>(\n ({ children, orientation: orientationProp, rootRef, ...rest }) => {\n const computedOrientation = useValue(orientationProp)\n const { controlRef, disabled, orientation, getGroupProps, getRootProps } =\n useResizable({ orientation: computedOrientation, ...rest })\n\n const context = useMemo(\n () => ({ controlRef, disabled, orientation }),\n [disabled, orientation, controlRef],\n )\n\n return (\n <ResizableContext value={context}>\n <styled.div {...getRootProps({ ref: rootRef })}>\n <PanelGroup {...getGroupProps()}>{children}</PanelGroup>\n </styled.div>\n </ResizableContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\nconst StyledPanel = styled(Panel, { forwardProps: [\"order\"] })\n\nexport interface ResizableItemProps\n extends Omit<HTMLStyledPropsWithoutAs, \"order\">, UseResizableItemProps {}\n\nexport const ResizableItem = withContext<\"div\", ResizableItemProps>((props) => {\n const { getItemProps } = useResizableItem(props)\n\n return <StyledPanel {...getItemProps()} />\n}, \"item\")()\n\nexport interface ResizableTriggerProps\n extends HTMLStyledPropsWithoutAs, UseResizableTriggerProps {\n /**\n * The resizable trigger icon to use.\n */\n icon?: ReactElement\n /**\n * Props for resizable trigger icon component.\n */\n iconProps?: HTMLStyledProps\n}\n\nexport const ResizableTrigger = withContext<\"div\", ResizableTriggerProps>(\n ({ children, icon, iconProps, ...rest }) => {\n const { getIconProps, getTriggerProps } = useResizableTrigger(rest)\n\n return (\n <styled.div as={PanelResizeHandle} {...getTriggerProps()}>\n {icon ? (\n <ResizableIcon {...getIconProps(iconProps)}>{icon}</ResizableIcon>\n ) : null}\n\n {children}\n </styled.div>\n )\n },\n \"trigger\",\n)()\n\ninterface ResizableIconProps extends HTMLStyledProps {}\n\nconst ResizableIcon = withContext<\"div\", ResizableIconProps>(\"div\", \"icon\")()\n"],"mappings":";;;;;;;;;;;;;;AA0CA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,aACA,iBACEA,6CACF,aACAC,uCACD;AAID,MAAa,gBAAgB,cAK1B,EAAE,UAAU,aAAa,iBAAiB,SAAS,GAAG,WAAW;CAEhE,MAAM,EAAE,YAAY,UAAU,aAAa,eAAe,iBACxDC,mCAAa;EAAE,aAFWC,uCAAS,gBAAgB;EAEF,GAAG;EAAM,CAAC;AAO7D,QACE,2CAACC;EAAiB,iCALX;GAAE;GAAY;GAAU;GAAa,GAC5C;GAAC;GAAU;GAAa;GAAW,CACpC;YAIG,2CAACC,uBAAO;GAAI,GAAI,aAAa,EAAE,KAAK,SAAS,CAAC;aAC5C,2CAACC;IAAW,GAAI,eAAe;IAAG;KAAsB;IAC7C;GACI;GAGvB,QACA,EAAE,eAAe,CAAC,cAAc,EAAE,CACnC,EAAE;AAEH,MAAM,cAAcD,uBAAOE,8BAAO,EAAE,cAAc,CAAC,QAAQ,EAAE,CAAC;AAK9D,MAAa,gBAAgB,aAAwC,UAAU;CAC7E,MAAM,EAAE,iBAAiBC,uCAAiB,MAAM;AAEhD,QAAO,2CAAC,eAAY,GAAI,cAAc,GAAI;GACzC,OAAO,EAAE;AAcZ,MAAa,mBAAmB,aAC7B,EAAE,UAAU,MAAM,WAAW,GAAG,WAAW;CAC1C,MAAM,EAAE,cAAc,oBAAoBC,0CAAoB,KAAK;AAEnE,QACE,4CAACJ,uBAAO;EAAI,IAAIK;EAAmB,GAAI,iBAAiB;aACrD,OACC,2CAAC;GAAc,GAAI,aAAa,UAAU;aAAG;IAAqB,GAChE,MAEH;GACU;GAGjB,UACD,EAAE;AAIH,MAAM,gBAAgB,YAAuC,OAAO,OAAO,EAAE"}
1
+ {"version":3,"file":"resizable.cjs","names":["createSlotComponent","resizableStyle","useResizable","useValue","ResizableContext","styled","Group","useResizableItem","Panel","useResizableTrigger","Separator"],"sources":["../../../../src/components/resizable/resizable.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type {\n HTMLStyledProps,\n HTMLStyledPropsWithoutAs,\n ThemeProps,\n} from \"../../core\"\nimport type { ResizableStyle } from \"./resizable.style\"\nimport type {\n UseResizableItemProps,\n UseResizableProps,\n UseResizableTriggerProps,\n} from \"./use-resizable\"\nimport { useMemo } from \"react\"\nimport { Group, Panel, Separator } from \"react-resizable-panels\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { resizableStyle } from \"./resizable.style\"\nimport {\n ResizableContext,\n useResizable,\n useResizableItem,\n useResizableTrigger,\n} from \"./use-resizable\"\n\n/**\n * `Resizable` is accessible resizable panel groups and layouts with keyboard support.\n *\n * @see https://yamada-ui.com/docs/components/resizable\n */\nexport interface ResizableRootProps\n extends\n HTMLStyledProps,\n ThemeProps<ResizableStyle>,\n Omit<UseResizableProps, \"orientation\"> {}\n\nconst {\n PropsContext: ResizablePropsContext,\n usePropsContext: useResizablePropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ResizableRootProps, ResizableStyle>(\n \"resizable\",\n resizableStyle,\n)\n\nexport { ResizablePropsContext, useResizablePropsContext }\n\nexport const ResizableRoot = withProvider<\n \"div\",\n ResizableRootProps,\n \"orientation\"\n>(\n ({ children, orientation: orientationProp, ...rest }) => {\n const computedOrientation = useValue(orientationProp)\n const { disabled, groupRef, orientation, getRootProps } = useResizable({\n orientation: computedOrientation,\n ...rest,\n })\n\n const context = useMemo(\n () => ({ disabled, groupRef, orientation }),\n [disabled, orientation, groupRef],\n )\n\n return (\n <ResizableContext value={context}>\n <styled.div as={Group} {...getRootProps()}>\n {children}\n </styled.div>\n </ResizableContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)()\n\nexport interface ResizableItemProps\n extends HTMLStyledPropsWithoutAs, UseResizableItemProps {}\n\nexport const ResizableItem = withContext<\"div\", ResizableItemProps>((props) => {\n const { getItemProps } = useResizableItem(props)\n\n return <styled.div as={Panel} {...getItemProps()} />\n}, \"item\")()\n\nexport interface ResizableTriggerProps\n extends HTMLStyledPropsWithoutAs, UseResizableTriggerProps {\n /**\n * The resizable trigger icon to use.\n */\n icon?: ReactElement\n /**\n * Props for resizable trigger icon component.\n */\n iconProps?: HTMLStyledProps\n}\n\nexport const ResizableTrigger = withContext<\"div\", ResizableTriggerProps>(\n ({ children, icon, iconProps, ...rest }) => {\n const { getIconProps, getTriggerProps } = useResizableTrigger(rest)\n\n return (\n <styled.div as={Separator} {...getTriggerProps()}>\n {icon ? (\n <ResizableIcon {...getIconProps(iconProps)}>{icon}</ResizableIcon>\n ) : null}\n\n {children}\n </styled.div>\n )\n },\n \"trigger\",\n)()\n\ninterface ResizableIconProps extends HTMLStyledProps {}\n\nconst ResizableIcon = withContext<\"div\", ResizableIconProps>(\"div\", \"icon\")()\n"],"mappings":";;;;;;;;;;;;;;AAqCA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,aACA,iBACEA,6CACF,aACAC,uCACD;AAID,MAAa,gBAAgB,cAK1B,EAAE,UAAU,aAAa,iBAAiB,GAAG,WAAW;CAEvD,MAAM,EAAE,UAAU,UAAU,aAAa,iBAAiBC,mCAAa;EACrE,aAF0BC,uCAAS,gBAAgB;EAGnD,GAAG;EACJ,CAAC;AAOF,QACE,2CAACC;EAAiB,iCALX;GAAE;GAAU;GAAU;GAAa,GAC1C;GAAC;GAAU;GAAa;GAAS,CAClC;YAIG,2CAACC,uBAAO;GAAI,IAAIC;GAAO,GAAI,cAAc;GACtC;IACU;GACI;GAGvB,QACA,EAAE,eAAe,CAAC,cAAc,EAAE,CACnC,EAAE;AAKH,MAAa,gBAAgB,aAAwC,UAAU;CAC7E,MAAM,EAAE,iBAAiBC,uCAAiB,MAAM;AAEhD,QAAO,2CAACF,uBAAO;EAAI,IAAIG;EAAO,GAAI,cAAc;GAAI;GACnD,OAAO,EAAE;AAcZ,MAAa,mBAAmB,aAC7B,EAAE,UAAU,MAAM,WAAW,GAAG,WAAW;CAC1C,MAAM,EAAE,cAAc,oBAAoBC,0CAAoB,KAAK;AAEnE,QACE,4CAACJ,uBAAO;EAAI,IAAIK;EAAW,GAAI,iBAAiB;aAC7C,OACC,2CAAC;GAAc,GAAI,aAAa,UAAU;aAAG;IAAqB,GAChE,MAEH;GACU;GAGjB,UACD,EAAE;AAIH,MAAM,gBAAgB,YAAuC,OAAO,OAAO,EAAE"}
@@ -50,8 +50,7 @@ const resizableStyle = require_config.defineComponentSlotStyle({
50
50
  icon: {
51
51
  color: "colorScheme.fg",
52
52
  transitionDuration: "moderate",
53
- transitionProperty: "common",
54
- _active: { color: "transparent" }
53
+ transitionProperty: "common"
55
54
  },
56
55
  trigger: {
57
56
  focusVisibleRing: "none",
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/resizable/resizable.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const resizableStyle = defineComponentSlotStyle({\n base: {\n icon: {\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"center\",\n left: \"50%\",\n position: \"absolute\",\n top: \"50%\",\n translateX: \"-50%\",\n translateY: \"-50%\",\n },\n item: {\n boxSize: \"full\",\n },\n root: {\n boxSize: \"full\",\n },\n trigger: {\n position: \"relative\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _after: {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n },\n },\n },\n\n variants: {\n border: {\n icon: {\n bg: \"colorScheme.muted\",\n color: \"colorScheme.fg\",\n py: \"1\",\n rounded: \"l1\",\n },\n trigger: {\n bg: \"colorScheme.muted\",\n focusVisibleRing: \"none\",\n _after: {\n position: \"absolute\",\n },\n _hover: {\n bg: \"colorScheme.emphasized\",\n },\n _focusVisible: {\n bg: \"colorScheme.emphasized\",\n },\n },\n },\n plain: {\n trigger: {\n focusVisibleRing: \"none\",\n _after: {\n position: \"absolute\",\n },\n },\n },\n spacer: {\n icon: {\n color: \"colorScheme.fg\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _active: {\n color: \"transparent\",\n },\n },\n trigger: {\n focusVisibleRing: \"none\",\n p: \"1\",\n _after: {\n bg: \"transparent\",\n display: \"block\",\n rounded: \"full\",\n },\n _hover: {\n _after: {\n bg: \"colorScheme.bg\",\n },\n _icon: {\n color: \"transparent\",\n },\n },\n _focusVisible: {\n _after: {\n bg: \"colorScheme.bg\",\n },\n _icon: {\n color: \"transparent\",\n },\n },\n },\n },\n },\n\n props: {\n /**\n * The orientation of the resizable.\n *\n * @default 'horizontal'\n */\n orientation: {\n horizontal: {\n icon: {\n transform: \"translate(-50%, -50%) rotate(0deg)\",\n },\n },\n vertical: {\n icon: {\n transform: \"translate(-50%, -50%) rotate(90deg)\",\n },\n },\n },\n },\n\n compounds: [\n {\n css: {\n trigger: {\n h: \"px\",\n _after: {\n h: \"2\",\n left: \"0\",\n right: \"0\",\n transform: \"translateY(-50%)\",\n },\n },\n },\n variant: \"border\",\n orientation: \"vertical\",\n },\n {\n css: {\n trigger: {\n w: \"px\",\n _after: {\n bottom: \"0\",\n top: \"0\",\n transform: \"translateX(-50%)\",\n w: \"2\",\n },\n },\n },\n variant: \"border\",\n orientation: \"horizontal\",\n },\n {\n css: {\n trigger: {\n _after: { h: \"2\", w: \"full\" },\n },\n },\n variant: \"spacer\",\n orientation: \"vertical\",\n },\n {\n css: {\n trigger: {\n _after: { h: \"full\", w: \"2\" },\n },\n },\n variant: \"spacer\",\n orientation: \"horizontal\",\n },\n {\n css: {\n trigger: {\n _after: {\n h: \"2\",\n left: \"0\",\n right: \"0\",\n transform: \"translateY(-50%)\",\n },\n },\n },\n variant: \"plain\",\n orientation: \"vertical\",\n },\n {\n css: {\n trigger: {\n _after: {\n bottom: \"0\",\n top: \"0\",\n transform: \"translateX(-50%)\",\n w: \"2\",\n },\n },\n },\n variant: \"plain\",\n orientation: \"horizontal\",\n },\n ],\n\n defaultProps: {\n variant: \"border\",\n orientation: \"horizontal\",\n },\n})\n\nexport type ResizableStyle = typeof resizableStyle\n"],"mappings":";;;;AAEA,MAAa,iBAAiBA,wCAAyB;CACrD,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,gBAAgB;GAChB,MAAM;GACN,UAAU;GACV,KAAK;GACL,YAAY;GACZ,YAAY;GACb;EACD,MAAM,EACJ,SAAS,QACV;EACD,MAAM,EACJ,SAAS,QACV;EACD,SAAS;GACP,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ;IACN,oBAAoB;IACpB,oBAAoB;IACrB;GACF;EACF;CAED,UAAU;EACR,QAAQ;GACN,MAAM;IACJ,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,SAAS;IACV;GACD,SAAS;IACP,IAAI;IACJ,kBAAkB;IAClB,QAAQ,EACN,UAAU,YACX;IACD,QAAQ,EACN,IAAI,0BACL;IACD,eAAe,EACb,IAAI,0BACL;IACF;GACF;EACD,OAAO,EACL,SAAS;GACP,kBAAkB;G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ACT,aAAa;GACd;EACF;CAED,cAAc;EACZ,SAAS;EACT,aAAa;EACd;CACF,CAAC"}
1
+ {"version":3,"file":"resizable.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/resizable/resizable.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const resizableStyle = defineComponentSlotStyle({\n base: {\n icon: {\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"center\",\n left: \"50%\",\n position: \"absolute\",\n top: \"50%\",\n translateX: \"-50%\",\n translateY: \"-50%\",\n },\n item: {\n boxSize: \"full\",\n },\n root: {\n boxSize: \"full\",\n },\n trigger: {\n position: \"relative\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _after: {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n },\n },\n },\n\n variants: {\n border: {\n icon: {\n bg: \"colorScheme.muted\",\n color: \"colorScheme.fg\",\n py: \"1\",\n rounded: \"l1\",\n },\n trigger: {\n bg: \"colorScheme.muted\",\n focusVisibleRing: \"none\",\n _after: {\n position: \"absolute\",\n },\n _hover: {\n bg: \"colorScheme.emphasized\",\n },\n _focusVisible: {\n bg: \"colorScheme.emphasized\",\n },\n },\n },\n plain: {\n trigger: {\n focusVisibleRing: \"none\",\n _after: {\n position: \"absolute\",\n },\n },\n },\n spacer: {\n icon: {\n color: \"colorScheme.fg\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n },\n trigger: {\n focusVisibleRing: \"none\",\n p: \"1\",\n _after: {\n bg: \"transparent\",\n display: \"block\",\n rounded: \"full\",\n },\n _hover: {\n _after: {\n bg: \"colorScheme.bg\",\n },\n _icon: {\n color: \"transparent\",\n },\n },\n _focusVisible: {\n _after: {\n bg: \"colorScheme.bg\",\n },\n _icon: {\n color: \"transparent\",\n },\n },\n },\n },\n },\n\n props: {\n /**\n * The orientation of the resizable.\n *\n * @default 'horizontal'\n */\n orientation: {\n horizontal: {\n icon: {\n transform: \"translate(-50%, -50%) rotate(0deg)\",\n },\n },\n vertical: {\n icon: {\n transform: \"translate(-50%, -50%) rotate(90deg)\",\n },\n },\n },\n },\n\n compounds: [\n {\n css: {\n trigger: {\n h: \"px\",\n _after: {\n h: \"2\",\n left: \"0\",\n right: \"0\",\n transform: \"translateY(-50%)\",\n },\n },\n },\n variant: \"border\",\n orientation: \"vertical\",\n },\n {\n css: {\n trigger: {\n w: \"px\",\n _after: {\n bottom: \"0\",\n top: \"0\",\n transform: \"translateX(-50%)\",\n w: \"2\",\n },\n },\n },\n variant: \"border\",\n orientation: \"horizontal\",\n },\n {\n css: {\n trigger: {\n _after: { h: \"2\", w: \"full\" },\n },\n },\n variant: \"spacer\",\n orientation: \"vertical\",\n },\n {\n css: {\n trigger: {\n _after: { h: \"full\", w: \"2\" },\n },\n },\n variant: \"spacer\",\n orientation: \"horizontal\",\n },\n {\n css: {\n trigger: {\n _after: {\n h: \"2\",\n left: \"0\",\n right: \"0\",\n transform: \"translateY(-50%)\",\n },\n },\n },\n variant: \"plain\",\n orientation: \"vertical\",\n },\n {\n css: {\n trigger: {\n _after: {\n bottom: \"0\",\n top: \"0\",\n transform: \"translateX(-50%)\",\n w: \"2\",\n },\n },\n },\n variant: \"plain\",\n orientation: \"horizontal\",\n },\n ],\n\n defaultProps: {\n variant: \"border\",\n orientation: \"horizontal\",\n },\n})\n\nexport type ResizableStyle = typeof resizableStyle\n"],"mappings":";;;;AAEA,MAAa,iBAAiBA,wCAAyB;CACrD,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,gBAAgB;GAChB,MAAM;GACN,UAAU;GACV,KAAK;GACL,YAAY;GACZ,YAAY;GACb;EACD,MAAM,EACJ,SAAS,QACV;EACD,MAAM,EACJ,SAAS,QACV;EACD,SAAS;GACP,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ;IACN,oBAAoB;IACpB,oBAAoB;IACrB;GACF;EACF;CAED,UAAU;EACR,QAAQ;GACN,MAAM;IACJ,IAAI;I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AAM;IACN,OAAO;IACP,WAAW;IACZ,EACF,EACF;GACD,SAAS;GACT,aAAa;GACd;EACD;GACE,KAAK,EACH,SAAS,EACP,QAAQ;IACN,QAAQ;IACR,KAAK;IACL,WAAW;IACX,GAAG;IACJ,EACF,EACF;GACD,SAAS;GACT,aAAa;GACd;EACF;CAED,cAAc;EACZ,SAAS;EACT,aAAa;EACd;CACF,CAAC"}
@@ -9,118 +9,85 @@ let react_resizable_panels = require("react-resizable-panels");
9
9
 
10
10
  //#region src/components/resizable/use-resizable.ts
11
11
  const [ResizableContext, useResizableContext] = require_context.createContext({ name: "ResizableContext" });
12
- const useResizable = ({ id, ref, controlRef: controlRefProp, disabled, keyboardStep, orientation = "horizontal", storage, storageKey, groupProps = {}, onLayout, ...rest } = {}) => {
13
- const controlRef = (0, react.useRef)(null);
14
- const uuid = (0, react.useId)();
15
- id ??= uuid;
16
- const getRootProps = (0, react.useCallback)((props = {}) => ({
17
- ...rest,
18
- ...props
19
- }), [rest]);
20
- const getGroupProps = (0, react.useCallback)(({ ref: ref$1, ...props } = {}) => ({
21
- id,
22
- autoSaveId: storageKey,
23
- direction: orientation,
24
- keyboardResizeBy: keyboardStep,
25
- storage,
26
- ...groupProps,
27
- ...props,
28
- ref: require_ref.mergeRefs(ref$1, controlRefProp, controlRef),
29
- tagName: props.as ?? groupProps.as,
30
- onLayout: (0, require_utils_index.utils_exports.fnAll)(props.onLayout, groupProps.onLayout, onLayout)
31
- }), [
32
- id,
33
- orientation,
34
- groupProps,
35
- controlRefProp,
36
- storageKey,
37
- keyboardStep,
38
- onLayout,
39
- storage
40
- ]);
41
- (0, react.useLayoutEffect)(() => {
42
- require_ref.assignRef(ref, (0, react_resizable_panels.getPanelGroupElement)(id));
43
- }, [ref, id]);
12
+ const useResizable = ({ controlRef, disabled, orientation = "horizontal", ...rest } = {}) => {
13
+ const groupRef = (0, react_resizable_panels.useGroupRef)();
44
14
  return {
45
- controlRef,
46
15
  disabled,
16
+ groupRef,
47
17
  orientation,
48
- getGroupProps,
49
- getRootProps
18
+ getRootProps: (0, react.useCallback)((props = {}) => ({
19
+ disabled,
20
+ orientation,
21
+ ...rest,
22
+ ...props,
23
+ style: {
24
+ height: void 0,
25
+ width: void 0,
26
+ ...rest.style,
27
+ ...props.style
28
+ },
29
+ elementRef: require_ref.mergeRefs(props.elementRef, rest.ref),
30
+ groupRef: require_ref.mergeRefs(props.groupRef, groupRef, controlRef),
31
+ onLayoutChange: (0, require_utils_index.utils_exports.fnAll)(props.onLayoutChange, rest.onLayoutChange),
32
+ onLayoutChanged: (0, require_utils_index.utils_exports.fnAll)(props.onLayoutChanged, rest.onLayoutChanged)
33
+ }), [
34
+ disabled,
35
+ orientation,
36
+ groupRef,
37
+ controlRef,
38
+ rest
39
+ ])
50
40
  };
51
41
  };
52
- const useResizableItem = ({ id, ref, as, controlRef, onCollapse, onExpand, onResize, ...rest }) => {
53
- const uuid = (0, react.useId)();
54
- id ??= uuid;
55
- const getItemProps = (0, react.useCallback)(({ ref: ref$1, ...props } = {}) => ({
56
- id,
57
- ref: require_ref.mergeRefs(ref$1, controlRef),
58
- tagName: props.as ?? as,
59
- ...props,
60
- ...rest,
61
- onCollapse: (0, require_utils_index.utils_exports.fnAll)(props.onCollapse, onCollapse),
62
- onExpand: (0, require_utils_index.utils_exports.fnAll)(props.onExpand, onExpand),
63
- onResize: (0, require_utils_index.utils_exports.fnAll)(props.onResize, onResize)
64
- }), [
65
- as,
66
- controlRef,
67
- id,
68
- onCollapse,
69
- onExpand,
70
- onResize,
71
- rest
72
- ]);
73
- (0, react.useLayoutEffect)(() => {
74
- require_ref.assignRef(ref, (0, react_resizable_panels.getPanelElement)(id));
75
- }, [ref, id]);
76
- return { getItemProps };
42
+ const useResizableItem = ({ controlRef, ...rest }) => {
43
+ const panelRef = (0, react_resizable_panels.usePanelRef)();
44
+ return {
45
+ panelRef,
46
+ getItemProps: (0, react.useCallback)((props = {}) => ({
47
+ ...rest,
48
+ ...props,
49
+ elementRef: require_ref.mergeRefs(props.elementRef, rest.ref),
50
+ panelRef: require_ref.mergeRefs(props.panelRef, panelRef, controlRef),
51
+ onResize: (0, require_utils_index.utils_exports.fnAll)(props.onResize, rest.onResize)
52
+ }), [
53
+ panelRef,
54
+ controlRef,
55
+ rest
56
+ ])
57
+ };
77
58
  };
78
- const useResizableTrigger = ({ id, ref, as, disabled, onDragging, ...rest }) => {
79
- const uuid = (0, react.useId)();
80
- const { controlRef, disabled: groupDisabled, orientation } = useResizableContext();
81
- const [active, setActive] = (0, react.useState)(false);
59
+ const useResizableTrigger = ({ disabled, ...rest }) => {
60
+ const { disabled: groupDisabled, groupRef, orientation } = useResizableContext();
82
61
  const trulyDisabled = disabled || groupDisabled;
83
- id ??= uuid;
84
62
  const onDoubleClick = (0, react.useCallback)((ev) => {
85
63
  ev.preventDefault();
86
- const layout = controlRef.current?.getLayout();
64
+ const layout = groupRef.current?.getLayout();
87
65
  if (!layout) return;
88
- const size = 100 / layout.length;
89
- const nextLayout = layout.map(() => size);
90
- controlRef.current?.setLayout(nextLayout);
91
- }, [controlRef]);
66
+ const size = 100 / Object.keys(layout).length;
67
+ const nextLayout = Object.fromEntries(Object.keys(layout).map((key) => [key, size]));
68
+ groupRef.current?.setLayout(nextLayout);
69
+ }, [groupRef]);
92
70
  const getTriggerProps = (0, react.useCallback)((props = {}) => ({
93
- id,
71
+ "aria-disabled": (0, require_utils_index.utils_exports.ariaAttr)(trulyDisabled),
94
72
  "aria-orientation": orientation,
95
- "data-active": (0, require_utils_index.utils_exports.dataAttr)(active),
96
73
  "data-disabled": (0, require_utils_index.utils_exports.dataAttr)(trulyDisabled),
97
74
  disabled: trulyDisabled,
98
75
  tabIndex: trulyDisabled ? -1 : 0,
99
- tagName: props.as ?? as,
100
76
  ...rest,
101
77
  ...props,
102
- onDoubleClick: (0, require_utils_index.utils_exports.handlerAll)(props.onDoubleClick, rest.onDoubleClick, onDoubleClick),
103
- onDragging: (0, require_utils_index.utils_exports.fnAll)(props.onDragging, onDragging, setActive)
78
+ elementRef: require_ref.mergeRefs(props.elementRef, rest.ref),
79
+ onDoubleClick: (0, require_utils_index.utils_exports.handlerAll)(props.onDoubleClick, rest.onDoubleClick, onDoubleClick)
104
80
  }), [
105
- id,
106
- as,
107
81
  orientation,
108
82
  trulyDisabled,
109
83
  rest,
110
- onDoubleClick,
111
- onDragging,
112
- active
84
+ onDoubleClick
113
85
  ]);
114
- const getIconProps = (0, react.useCallback)((props = {}) => ({
115
- "data-active": (0, require_utils_index.utils_exports.dataAttr)(active),
116
- "data-icon": "",
117
- ...props
118
- }), [active]);
119
- (0, react.useLayoutEffect)(() => {
120
- require_ref.assignRef(ref, (0, react_resizable_panels.getResizeHandleElement)(id));
121
- }, [ref, id]);
122
86
  return {
123
- getIconProps,
87
+ getIconProps: (0, react.useCallback)((props = {}) => ({
88
+ "data-icon": "",
89
+ ...props
90
+ }), []),
124
91
  getTriggerProps
125
92
  };
126
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-resizable.cjs","names":["createContext","getRootProps: PropGetter","getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n >","mergeRefs","ref","getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps>","getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n >","getIconProps: PropGetter"],"sources":["../../../../src/components/resizable/use-resizable.ts"],"sourcesContent":["\"use client\"\n\nimport type { MouseEvent, MouseEventHandler, RefObject } from \"react\"\nimport type {\n ImperativePanelGroupHandle,\n ImperativePanelHandle,\n PanelGroupOnLayout,\n PanelGroupProps,\n PanelGroupStorage,\n PanelProps,\n PanelResizeHandleProps,\n} from \"react-resizable-panels\"\nimport type {\n HTMLProps,\n HTMLRefAttributes,\n Orientation,\n PropGetter,\n} from \"../../core\"\nimport { useCallback, useId, useLayoutEffect, useRef, useState } from \"react\"\nimport {\n getPanelElement,\n getPanelGroupElement,\n getResizeHandleElement,\n} from \"react-resizable-panels\"\nimport {\n assignRef,\n createContext,\n dataAttr,\n fnAll,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface ResizableContext extends Omit<\n UseResizableReturn,\n \"getGroupProps\" | \"getRootProps\"\n> {}\n\nconst [ResizableContext, useResizableContext] = createContext<ResizableContext>(\n {\n name: \"ResizableContext\",\n },\n)\n\nexport { ResizableContext, useResizableContext }\n\nexport interface ResizableStorage extends PanelGroupStorage {}\nexport interface ResizableGroupControl extends ImperativePanelGroupHandle {}\nexport interface ResizableItemControl extends ImperativePanelHandle {}\n\ninterface ResizableGroupProps extends Omit<\n Partial<PanelGroupProps>,\n \"tagName\"\n> {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n /**\n * Ref of the resizable group callback.\n */\n ref?: RefObject<ResizableGroupControl>\n}\ninterface ResizableItemProps extends Omit<PanelProps, \"tagName\"> {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n /**\n * Ref of the resizable item callback.\n */\n ref?: RefObject<ResizableItemControl>\n}\ninterface ResizableTriggerProps\n extends Omit<PanelResizeHandleProps, \"tagName\">, HTMLRefAttributes {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\n\nexport interface UseResizableProps extends HTMLProps {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableGroupControl>\n /**\n * If `true`, the resizable trigger will be disabled.\n */\n disabled?: boolean\n /**\n * Unit to resize by keyboard operation.\n *\n * @default 10\n */\n keyboardStep?: number\n /**\n * The orientation of the resizable.\n *\n * @default 'horizontal'\n */\n orientation?: Orientation\n /**\n * A callback that gets and sets a value in custom storage.\n */\n storage?: PanelGroupStorage\n /**\n * Key of value saved in storage.\n * By default, it is saved to `local storage`.\n */\n storageKey?: string\n /**\n * Props for resizable component.\n */\n groupProps?: ResizableGroupProps\n /**\n * The callback invoked when resizable items are resized.\n */\n onLayout?: PanelGroupOnLayout\n}\n\nexport const useResizable = ({\n id,\n ref,\n controlRef: controlRefProp,\n disabled,\n keyboardStep,\n orientation = \"horizontal\",\n storage,\n storageKey,\n groupProps = {},\n onLayout,\n ...rest\n}: UseResizableProps = {}) => {\n const controlRef = useRef<ResizableGroupControl>(null)\n const uuid = useId()\n\n id ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props = {}) => ({ ...rest, ...props }),\n [rest],\n )\n\n const getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n > = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n autoSaveId: storageKey,\n direction: orientation,\n keyboardResizeBy: keyboardStep,\n storage,\n ...groupProps,\n ...props,\n ref: mergeRefs(ref, controlRefProp, controlRef),\n tagName: props.as ?? groupProps.as,\n onLayout: fnAll(props.onLayout, groupProps.onLayout, onLayout),\n }),\n [\n id,\n orientation,\n groupProps,\n controlRefProp,\n storageKey,\n keyboardStep,\n onLayout,\n storage,\n ],\n )\n\n useLayoutEffect(() => {\n const el = getPanelGroupElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n controlRef,\n disabled,\n orientation,\n getGroupProps,\n getRootProps,\n }\n}\n\nexport type UseResizableReturn = ReturnType<typeof useResizable>\n\nexport interface UseResizableItemProps\n extends HTMLProps, Pick<ResizableItemProps, \"as\"> {\n /**\n * The collapsed size of the resizable item.\n */\n collapsedSize?: number\n /**\n * If `true`, the resizable item can be collapsed.\n *\n * @default false\n */\n collapsible?: boolean\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableItemControl>\n /**\n * The initial size of the resizable item.\n */\n defaultSize?: number\n /**\n * The maximum allowed value of the resizable item.\n */\n maxSize?: number\n /**\n * The minimum allowed value of the resizable item.\n */\n minSize?: number\n /**\n * Order for the resizable item.\n */\n order?: number\n /**\n * The callback invoked when resizable item are collapsed.\n */\n onCollapse?: () => void\n /**\n * The callback invoked when resizable item are expanded.\n */\n onExpand?: () => void\n /**\n * The callback invoked when resizable item are resized.\n */\n onResize?: (size: number, prevSize: number | undefined) => void\n}\n\nexport const useResizableItem = ({\n id,\n ref,\n as,\n controlRef,\n onCollapse,\n onExpand,\n onResize,\n ...rest\n}: UseResizableItemProps) => {\n const uuid = useId()\n\n id ??= uuid\n\n const getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps> =\n useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n ref: mergeRefs(ref, controlRef),\n tagName: props.as ?? as,\n ...props,\n ...rest,\n onCollapse: fnAll(props.onCollapse, onCollapse),\n onExpand: fnAll(props.onExpand, onExpand),\n onResize: fnAll(props.onResize, onResize),\n }),\n [as, controlRef, id, onCollapse, onExpand, onResize, rest],\n )\n\n useLayoutEffect(() => {\n const el = getPanelElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getItemProps,\n }\n}\n\nexport type UseResizableItemReturn = ReturnType<typeof useResizableItem>\n\nexport interface UseResizableTriggerProps\n extends HTMLProps, Pick<ResizableTriggerProps, \"as\"> {\n /**\n * If `true`, the resizable trigger will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The callback invoked when resizable trigger are dragged.\n */\n onDragging?: (dragging: boolean) => void\n}\n\nexport const useResizableTrigger = ({\n id,\n ref,\n as,\n disabled,\n onDragging,\n ...rest\n}: UseResizableTriggerProps) => {\n const uuid = useId()\n const {\n controlRef,\n disabled: groupDisabled,\n orientation,\n } = useResizableContext()\n const [active, setActive] = useState<boolean>(false)\n const trulyDisabled = disabled || groupDisabled\n\n id ??= uuid\n\n const onDoubleClick = useCallback(\n (ev: MouseEvent<HTMLDivElement>) => {\n ev.preventDefault()\n\n const layout = controlRef.current?.getLayout()\n\n if (!layout) return\n\n const count = layout.length\n const size = 100 / count\n const nextLayout = layout.map(() => size)\n\n controlRef.current?.setLayout(nextLayout)\n },\n [controlRef],\n )\n\n const getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n > = useCallback(\n (props = {}) =>\n ({\n id,\n \"aria-orientation\": orientation,\n \"data-active\": dataAttr(active),\n \"data-disabled\": dataAttr(trulyDisabled),\n disabled: trulyDisabled,\n tabIndex: trulyDisabled ? -1 : 0,\n tagName: props.as ?? as,\n ...rest,\n ...props,\n onDoubleClick: handlerAll(\n props.onDoubleClick as MouseEventHandler<HTMLDivElement> | undefined,\n rest.onDoubleClick,\n onDoubleClick,\n ),\n onDragging: fnAll(props.onDragging, onDragging, setActive),\n }) as unknown as PanelResizeHandleProps,\n [\n id,\n as,\n orientation,\n trulyDisabled,\n rest,\n onDoubleClick,\n onDragging,\n active,\n ],\n )\n\n const getIconProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-active\": dataAttr(active),\n \"data-icon\": \"\",\n ...props,\n }),\n [active],\n )\n\n useLayoutEffect(() => {\n const el = getResizeHandleElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getIconProps,\n getTriggerProps,\n }\n}\n\nexport type UseResizableTriggerReturn = ReturnType<typeof useResizableTrigger>\n"],"mappings":";;;;;;;;;;AAsCA,MAAM,CAAC,kBAAkB,uBAAuBA,8BAC9C,EACE,MAAM,oBACP,CACF;AA+ED,MAAa,gBAAgB,EAC3B,IACA,KACA,YAAY,gBACZ,UACA,cACA,cAAc,cACd,SACA,YACA,aAAa,EAAE,EACf,UACA,GAAG,SACkB,EAAE,KAAK;CAC5B,MAAM,+BAA2C,KAAK;CACtD,MAAM,yBAAc;AAEpB,QAAO;CAEP,MAAMC,uCACH,QAAQ,EAAE,MAAM;EAAE,GAAG;EAAM,GAAG;EAAO,GACtC,CAAC,KAAK,CACP;CAED,MAAMC,wCAKH,EAAE,YAAK,GAAG,UAAU,EAAE,MAAM;EAC3B;EACA,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB;EACA,GAAG;EACH,GAAG;EACH,KAAKC,sBAAUC,OAAK,gBAAgB,WAAW;EAC/C,SAAS,MAAM,MAAM,WAAW;EAChC,uDAAgB,MAAM,UA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,OAAO;EAC/B,iEAA0B,cAAc;EACxC,UAAU;EACV,UAAU,gBAAgB,KAAK;EAC/B,SAAS,MAAM,MAAM;EACrB,GAAG;EACH,GAAG;EACH,iEACE,MAAM,eACN,KAAK,eACL,cACD;EACD,yDAAkB,MAAM,YAAY,YAAY,UAAU;EAC3D,GACH;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CACF;CAED,MAAMC,uCACH,QAAQ,EAAE,MAAM;EACf,+DAAwB,OAAO;EAC/B,aAAa;EACb,GAAG;EACJ,GACD,CAAC,OAAO,CACT;AAED,kCAAsB;AAGpB,wBAAU,wDAFwB,GAAG,CAEnB;IACjB,CAAC,KAAK,GAAG,CAAC;AAEb,QAAO;EACL;EACA;EACD"}
1
+ {"version":3,"file":"use-resizable.cjs","names":["createContext","mergeRefs","getTriggerProps: PropGetter<SeparatorProps>"],"sources":["../../../../src/components/resizable/use-resizable.ts"],"sourcesContent":["\"use client\"\n\nimport type { MouseEvent, RefObject } from \"react\"\nimport type {\n GroupImperativeHandle,\n GroupProps,\n LayoutStorage,\n PanelImperativeHandle,\n PanelProps,\n SeparatorProps,\n} from \"react-resizable-panels\"\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback } from \"react\"\nimport {\n useGroupRef,\n usePanelRef,\n useDefaultLayout as useResizableLayout,\n} from \"react-resizable-panels\"\nimport {\n ariaAttr,\n createContext,\n dataAttr,\n fnAll,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface ResizableContext extends Omit<UseResizableReturn, \"getRootProps\"> {}\n\nconst [ResizableContext, useResizableContext] = createContext<ResizableContext>(\n {\n name: \"ResizableContext\",\n },\n)\n\nexport { ResizableContext, useResizableContext, useResizableLayout }\n\nexport interface ResizableStorage extends LayoutStorage {}\nexport interface ResizableRootControl extends GroupImperativeHandle {}\nexport interface ResizableItemControl extends PanelImperativeHandle {}\n\nexport interface UseResizableProps\n extends\n HTMLProps,\n Omit<GroupProps, \"color\" | \"content\" | \"elementRef\" | \"groupRef\"> {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableRootControl>\n}\n\nexport const useResizable = ({\n controlRef,\n disabled,\n orientation = \"horizontal\",\n ...rest\n}: UseResizableProps = {}) => {\n const groupRef = useGroupRef()\n\n const getRootProps: PropGetter<GroupProps> = useCallback(\n (props = {}) => ({\n disabled,\n orientation,\n ...rest,\n ...props,\n style: {\n height: undefined,\n width: undefined,\n ...rest.style,\n ...props.style,\n },\n elementRef: mergeRefs(props.elementRef, rest.ref),\n groupRef: mergeRefs(props.groupRef, groupRef, controlRef),\n onLayoutChange: fnAll(props.onLayoutChange, rest.onLayoutChange),\n onLayoutChanged: fnAll(props.onLayoutChanged, rest.onLayoutChanged),\n }),\n [disabled, orientation, groupRef, controlRef, rest],\n )\n\n return {\n disabled,\n groupRef,\n orientation,\n getRootProps,\n }\n}\n\nexport type UseResizableReturn = ReturnType<typeof useResizable>\n\nexport interface UseResizableItemProps\n extends\n HTMLProps,\n Omit<PanelProps, \"color\" | \"content\" | \"elementRef\" | \"panelRef\"> {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableItemControl>\n}\n\nexport const useResizableItem = ({\n controlRef,\n ...rest\n}: UseResizableItemProps) => {\n const panelRef = usePanelRef()\n\n const getItemProps: PropGetter<PanelProps> = useCallback(\n (props = {}) => ({\n ...rest,\n ...props,\n elementRef: mergeRefs(props.elementRef, rest.ref),\n panelRef: mergeRefs(props.panelRef, panelRef, controlRef),\n onResize: fnAll(props.onResize, rest.onResize),\n }),\n [panelRef, controlRef, rest],\n )\n\n return {\n panelRef,\n getItemProps,\n }\n}\n\nexport type UseResizableItemReturn = ReturnType<typeof useResizableItem>\n\nexport interface UseResizableTriggerProps\n extends HTMLProps, Omit<SeparatorProps, \"color\" | \"content\" | \"elementRef\"> {}\n\nexport const useResizableTrigger = ({\n disabled,\n ...rest\n}: UseResizableTriggerProps) => {\n const {\n disabled: groupDisabled,\n groupRef,\n orientation,\n } = useResizableContext()\n const trulyDisabled = disabled || groupDisabled\n\n const onDoubleClick = useCallback(\n (ev: MouseEvent<HTMLDivElement>) => {\n ev.preventDefault()\n\n const layout = groupRef.current?.getLayout()\n\n if (!layout) return\n\n const count = Object.keys(layout).length\n const size = 100 / count\n const nextLayout = Object.fromEntries(\n Object.keys(layout).map((key) => [key, size]),\n )\n\n groupRef.current?.setLayout(nextLayout)\n },\n [groupRef],\n )\n\n const getTriggerProps: PropGetter<SeparatorProps> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(trulyDisabled),\n \"aria-orientation\": orientation,\n \"data-disabled\": dataAttr(trulyDisabled),\n disabled: trulyDisabled,\n tabIndex: trulyDisabled ? -1 : 0,\n ...rest,\n ...props,\n elementRef: mergeRefs(props.elementRef, rest.ref),\n onDoubleClick: handlerAll(\n props.onDoubleClick,\n rest.onDoubleClick,\n onDoubleClick,\n ),\n }),\n [orientation, trulyDisabled, rest, onDoubleClick],\n )\n\n const getIconProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-icon\": \"\",\n ...props,\n }),\n [],\n )\n\n return {\n getIconProps,\n getTriggerProps,\n }\n}\n\nexport type UseResizableTriggerReturn = ReturnType<typeof useResizableTrigger>\n"],"mappings":";;;;;;;;;;AA6BA,MAAM,CAAC,kBAAkB,uBAAuBA,8BAC9C,EACE,MAAM,oBACP,CACF;AAkBD,MAAa,gBAAgB,EAC3B,YACA,UACA,cAAc,cACd,GAAG,SACkB,EAAE,KAAK;CAC5B,MAAM,oDAAwB;AAsB9B,QAAO;EACL;EACA;EACA;EACA,sCAvBC,QAAQ,EAAE,MAAM;GACf;GACA;GACA,GAAG;GACH,GAAG;GACH,OAAO;IACL,QAAQ;IACR,OAAO;IACP,GAAG,KAAK;IACR,GAAG,MAAM;IACV;GACD,YAAYC,sBAAU,MAAM,YAAY,KAAK,IAAI;GACjD,UAAUA,sBAAU,MAAM,UAAU,UAAU,WAAW;GACzD,6DAAsB,MAAM,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EAIC;EACD"}
@@ -9,13 +9,13 @@ const require_check_icon = require('../icon/icons/check-icon.cjs');
9
9
  const require_chevron_down_icon = require('../icon/icons/chevron-down-icon.cjs');
10
10
  const require_x_icon = require('../icon/icons/x-icon.cjs');
11
11
  require('../icon/index.cjs');
12
+ const require_use_group = require('../group/use-group.cjs');
13
+ require('../group/index.cjs');
12
14
  const require_popover = require('../popover/popover.cjs');
13
15
  require('../popover/index.cjs');
14
16
  const require_use_input_border = require('../input/use-input-border.cjs');
15
17
  const require_input = require('../input/input.cjs');
16
18
  const require_input_element = require('../input/input-element.cjs');
17
- const require_use_group = require('../group/use-group.cjs');
18
- require('../group/index.cjs');
19
19
  const require_input_group = require('../input/input-group.cjs');
20
20
  require('../input/index.cjs');
21
21
  const require_select_style = require('./select.style.cjs');
@@ -146,6 +146,24 @@ const sliderStyle = require_config.defineComponentSlotStyle({
146
146
  }
147
147
  },
148
148
  variants: {
149
+ base: { root: { _container: [
150
+ {
151
+ css: { "--track-fill": "colors.bg" },
152
+ style: "--form-group-variant: \"panel\""
153
+ },
154
+ {
155
+ css: { "--track-fill": "colors.bg" },
156
+ style: "--fieldset-root-variant: \"panel\""
157
+ },
158
+ {
159
+ css: { "--track-fill": "colors.bg" },
160
+ style: "--form-group-variant: \"elevated\""
161
+ },
162
+ {
163
+ css: { "--track-fill": "colors.bg" },
164
+ style: "--fieldset-root-variant: \"elevated\""
165
+ }
166
+ ] } },
149
167
  outline: { root: {
150
168
  "--indicator-fill": "colorScheme.solid",
151
169
  "--range-fill": "colorScheme.solid",
@@ -1 +1 @@
1
- {"version":3,"file":"slider.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/slider/slider.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const sliderStyle = defineComponentSlotStyle({\n base: {\n mark: {\n \"&[data-indicator]\": {\n _before: {\n bg: \"{indicator-fill}\",\n boxSize: \"{track-size}\",\n position: \"absolute\",\n rounded: \"{indicator-rounded}\",\n },\n _between: {\n \"--indicator-fill\": \"colorScheme.contrast\",\n },\n },\n color: \"fg.muted\",\n fontSize: \"xs\",\n pointerEvents: \"none\",\n position: \"absolute\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n zIndex: 1,\n },\n range: {\n bg: \"{range-fill}\",\n position: \"absolute\",\n rounded: \"{track-rounded}\",\n },\n root: {\n \"--indicator-rounded\": \"radii.full\",\n \"--track-rounded\": \"radii.full\",\n alignItems: \"center\",\n display: \"inline-flex\",\n isolation: \"isolate\",\n position: \"relative\",\n touchAction: \"none\",\n _readOnly: { layerStyle: \"readOnly\" },\n _disabled: { layerStyle: \"disabled\" },\n },\n thumb: {\n alignItems: \"center\",\n bg: \"{thumb-fill}\",\n borderColor: \"{thumb-stroke}\",\n borderWidth: \"2px\",\n boxSize: \"{thumb-size}\",\n color: \"{thumb-stroke}\",\n display: \"flex\",\n justifyContent: \"center\",\n position: \"absolute\",\n rounded: \"{thumb-rounded}\",\n zIndex: 2,\n },\n track: {\n bg: \"{track-fill}\",\n cursor: {\n base: \"pointer\",\n _readOnly: \"default\",\n _disabled: \"not-allowed\",\n },\n flex: \"1\",\n position: \"relative\",\n rounded: \"{track-rounded}\",\n },\n },\n\n props: {\n /**\n * The orientation of the slider.\n *\n * @default 'horizontal'\n */\n orientation: {\n horizontal: {\n mark: {\n left: \"{mark-position}\",\n pt: \"calc({track-size} + {spaces.2})\",\n top: \"0\",\n translate: \"-50% 0\",\n _before: {\n left: \"50%\",\n top: \"0\",\n translate: \"-50% 0\",\n },\n },\n range: {\n h: \"full\",\n left: \"{range-start}\",\n top: \"50%\",\n translate: \"0 -50%\",\n w: \"calc({range-end} - {range-start} + ({track-size} / 2))\",\n _range: {\n left: \"calc({range-start} - ({track-size} / 2))\",\n w: \"calc({range-end} - {range-start} + {track-size})\",\n },\n },\n root: {\n flexDirection: \"row\",\n minW: \"{thumb-size}\",\n w: \"full\",\n },\n thumb: {\n top: \"50%\",\n translate: \"-50% -50%\",\n _end: { left: \"{range-end}\" },\n _start: { left: \"{range-start}\" },\n },\n track: {\n h: \"{track-size}\",\n },\n },\n vertical: {\n mark: {\n bottom: \"{mark-position}\",\n left: \"0\",\n lineHeight: \"2\",\n ps: \"calc({track-size} + {spaces.3})\",\n translate: \"0 50%\",\n _before: {\n left: \"0\",\n top: \"50%\",\n translate: \"0 -50%\",\n },\n },\n range: {\n bottom: \"{range-start}\",\n h: \"calc({range-end} - {range-start} + ({track-size} / 2))\",\n left: \"50%\",\n translate: \"-50% 0\",\n w: \"full\",\n _range: {\n bottom: \"calc({range-start} - ({track-size} / 2))\",\n h: \"calc({range-end} - {range-start} + {track-size})\",\n },\n },\n root: {\n flexDirection: \"column\",\n h: \"full\",\n minH: \"{thumb-size}\",\n },\n thumb: {\n left: \"50%\",\n translate: \"-50% 50%\",\n _end: { bottom: \"{range-end}\" },\n _start: { bottom: \"{range-start}\" },\n },\n track: {\n w: \"{track-size}\",\n },\n },\n },\n /**\n * The shape of the thumb.\n *\n * @default 'circle'\n */\n shape: {\n circle: {\n root: { \"--thumb-rounded\": \"radii.full\" },\n },\n rounded: {\n root: { \"--thumb-rounded\": \"radii.l2\" },\n },\n square: {\n root: { \"--thumb-rounded\": \"0\" },\n },\n },\n },\n\n variants: {\n outline: {\n root: {\n \"--indicator-fill\": \"colorScheme.solid\",\n \"--range-fill\": \"colorScheme.solid\",\n \"--thumb-fill\": \"colors.bg\",\n \"--thumb-stroke\": \"colorScheme.solid\",\n \"--track-fill\": \"colors.bg.muted\",\n },\n },\n solid: {\n root: {\n \"--indicator-fill\": \"colorScheme.solid\",\n \"--range-fill\": \"colorScheme.solid\",\n \"--thumb-fill\": \"colorScheme.solid\",\n \"--thumb-stroke\": \"colorScheme.solid\",\n \"--track-fill\": \"colors.bg.muted\",\n },\n },\n },\n\n sizes: {\n xs: {\n root: {\n \"--thumb-size\": \"sizes.3\",\n \"--track-size\": \"sizes.1\",\n },\n },\n sm: {\n root: {\n \"--thumb-size\": \"sizes.4\",\n \"--track-size\": \"sizes.1.5\",\n },\n },\n md: {\n root: {\n \"--thumb-size\": \"sizes.5\",\n \"--track-size\": \"sizes.2\",\n },\n },\n lg: {\n root: {\n \"--thumb-size\": \"sizes.6\",\n \"--track-size\": \"sizes.2.5\",\n },\n },\n xl: {\n root: {\n \"--thumb-size\": \"sizes.7\",\n \"--track-size\": \"sizes.3\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"outline\",\n orientation: \"horizontal\",\n shape: \"circle\",\n },\n})\n\nexport type SliderStyle = typeof sliderStyle\n"],"mappings":";;;;AAEA,MAAa,cAAcA,wCAAyB;CAClD,MAAM;EACJ,MAAM;GACJ,qBAAqB;IACnB,SAAS;KACP,IAAI;KACJ,SAAS;KACT,UAAU;KACV,SAAS;KACV;IACD,UAAU,EACR,oBAAoB,wBACrB;IACF;GACD,OAAO;GACP,UAAU;GACV,eAAe;GACf,UAAU;GACV,WAAW;GACX,YAAY;GACZ,QAAQ;GACT;EACD,OAAO;GACL,IAAI;GACJ,UAAU;GACV,SAAS;GACV;EACD,MAAM;GACJ,uBAAuB;GACvB,mBAAmB;GACnB,YAAY;GACZ,SAAS;GACT,WAAW;GACX,UAAU;GACV,aAAa;GACb,WAAW,EAAE,YAAY,YAAY;GACrC,WAAW,EAAE,YAAY,YAAY;GACtC;EACD,OAAO;GACL,YAAY;GACZ,IAAI;GACJ,aAAa;GACb,aAAa;GACb,SAAS;GACT,OAAO;GACP,SAAS;GACT,gBAAgB;GAChB,UAAU;GACV,SAAS;GACT,QAAQ;GACT;EACD,OAAO;GACL,IAAI;GACJ,QAAQ;IACN,MAAM;IACN,WAAW;IACX,WAAW;IACZ;GACD,MAAM;GACN,UAAU;GACV,SAAS;GACV;EACF;CAED,OAAO;EAML,aAAa;GACX,YAAY;IACV,MAAM;KACJ,MAAM;KACN,IAAI;KACJ,KAAK;KACL,WAAW;KACX,SAAS;MACP,MAAM;MACN,KAAK;MACL,WAAW;MACZ;KACF;IACD,OAAO;KACL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AAgB;GACjB,EACF;EACD,IAAI,EACF,MAAM;GACJ,gBAAgB;GAChB,gBAAgB;GACjB,EACF;EACD,IAAI,EACF,MAAM;GACJ,gBAAgB;GAChB,gBAAgB;GACjB,EACF;EACD,IAAI,EACF,MAAM;GACJ,gBAAgB;GAChB,gBAAgB;GACjB,EACF;EACF;CAED,cAAc;EACZ,MAAM;EACN,SAAS;EACT,aAAa;EACb,OAAO;EACR;CACF,CAAC"}
1
+ {"version":3,"file":"slider.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/slider/slider.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const sliderStyle = defineComponentSlotStyle({\n base: {\n mark: {\n \"&[data-indicator]\": {\n _before: {\n bg: \"{indicator-fill}\",\n boxSize: \"{track-size}\",\n position: \"absolute\",\n rounded: \"{indicator-rounded}\",\n },\n _between: {\n \"--indicator-fill\": \"colorScheme.contrast\",\n },\n },\n color: \"fg.muted\",\n fontSize: \"xs\",\n pointerEvents: \"none\",\n position: \"absolute\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n zIndex: 1,\n },\n range: {\n bg: \"{range-fill}\",\n position: \"absolute\",\n rounded: \"{track-rounded}\",\n },\n root: {\n \"--indicator-rounded\": \"radii.full\",\n \"--track-rounded\": \"radii.full\",\n alignItems: \"center\",\n display: \"inline-flex\",\n isolation: \"isolate\",\n position: \"relative\",\n touchAction: \"none\",\n _readOnly: { layerStyle: \"readOnly\" },\n _disabled: { layerStyle: \"disabled\" },\n },\n thumb: {\n alignItems: \"center\",\n bg: \"{thumb-fill}\",\n borderColor: \"{thumb-stroke}\",\n borderWidth: \"2px\",\n boxSize: \"{thumb-size}\",\n color: \"{thumb-stroke}\",\n display: \"flex\",\n justifyContent: \"center\",\n position: \"absolute\",\n rounded: \"{thumb-rounded}\",\n zIndex: 2,\n },\n track: {\n bg: \"{track-fill}\",\n cursor: {\n base: \"pointer\",\n _readOnly: \"default\",\n _disabled: \"not-allowed\",\n },\n flex: \"1\",\n position: \"relative\",\n rounded: \"{track-rounded}\",\n },\n },\n\n props: {\n /**\n * The orientation of the slider.\n *\n * @default 'horizontal'\n */\n orientation: {\n horizontal: {\n mark: {\n left: \"{mark-position}\",\n pt: \"calc({track-size} + {spaces.2})\",\n top: \"0\",\n translate: \"-50% 0\",\n _before: {\n left: \"50%\",\n top: \"0\",\n translate: \"-50% 0\",\n },\n },\n range: {\n h: \"full\",\n left: \"{range-start}\",\n top: \"50%\",\n translate: \"0 -50%\",\n w: \"calc({range-end} - {range-start} + ({track-size} / 2))\",\n _range: {\n left: \"calc({range-start} - ({track-size} / 2))\",\n w: \"calc({range-end} - {range-start} + {track-size})\",\n },\n },\n root: {\n flexDirection: \"row\",\n minW: \"{thumb-size}\",\n w: \"full\",\n },\n thumb: {\n top: \"50%\",\n translate: \"-50% -50%\",\n _end: { left: \"{range-end}\" },\n _start: { left: \"{range-start}\" },\n },\n track: {\n h: \"{track-size}\",\n },\n },\n vertical: {\n mark: {\n bottom: \"{mark-position}\",\n left: \"0\",\n lineHeight: \"2\",\n ps: \"calc({track-size} + {spaces.3})\",\n translate: \"0 50%\",\n _before: {\n left: \"0\",\n top: \"50%\",\n translate: \"0 -50%\",\n },\n },\n range: {\n bottom: \"{range-start}\",\n h: \"calc({range-end} - {range-start} + ({track-size} / 2))\",\n left: \"50%\",\n translate: \"-50% 0\",\n w: \"full\",\n _range: {\n bottom: \"calc({range-start} - ({track-size} / 2))\",\n h: \"calc({range-end} - {range-start} + {track-size})\",\n },\n },\n root: {\n flexDirection: \"column\",\n h: \"full\",\n minH: \"{thumb-size}\",\n },\n thumb: {\n left: \"50%\",\n translate: \"-50% 50%\",\n _end: { bottom: \"{range-end}\" },\n _start: { bottom: \"{range-start}\" },\n },\n track: {\n w: \"{track-size}\",\n },\n },\n },\n /**\n * The shape of the thumb.\n *\n * @default 'circle'\n */\n shape: {\n circle: {\n root: { \"--thumb-rounded\": \"radii.full\" },\n },\n rounded: {\n root: { \"--thumb-rounded\": \"radii.l2\" },\n },\n square: {\n root: { \"--thumb-rounded\": \"0\" },\n },\n },\n },\n\n variants: {\n base: {\n root: {\n _container: [\n {\n css: { \"--track-fill\": \"colors.bg\" },\n style: '--form-group-variant: \"panel\"',\n },\n {\n css: { \"--track-fill\": \"colors.bg\" },\n style: '--fieldset-root-variant: \"panel\"',\n },\n {\n css: { \"--track-fill\": \"colors.bg\" },\n style: '--form-group-variant: \"elevated\"',\n },\n {\n css: { \"--track-fill\": \"colors.bg\" },\n style: '--fieldset-root-variant: \"elevated\"',\n },\n ],\n },\n },\n outline: {\n root: {\n \"--indicator-fill\": \"colorScheme.solid\",\n \"--range-fill\": \"colorScheme.solid\",\n \"--thumb-fill\": \"colors.bg\",\n \"--thumb-stroke\": \"colorScheme.solid\",\n \"--track-fill\": \"colors.bg.muted\",\n },\n },\n solid: {\n root: {\n \"--indicator-fill\": \"colorScheme.solid\",\n \"--range-fill\": \"colorScheme.solid\",\n \"--thumb-fill\": \"colorScheme.solid\",\n \"--thumb-stroke\": \"colorScheme.solid\",\n \"--track-fill\": \"colors.bg.muted\",\n },\n },\n },\n\n sizes: {\n xs: {\n root: {\n \"--thumb-size\": \"sizes.3\",\n \"--track-size\": \"sizes.1\",\n },\n },\n sm: {\n root: {\n \"--thumb-size\": \"sizes.4\",\n \"--track-size\": \"sizes.1.5\",\n },\n },\n md: {\n root: {\n \"--thumb-size\": \"sizes.5\",\n \"--track-size\": \"sizes.2\",\n },\n },\n lg: {\n root: {\n \"--thumb-size\": \"sizes.6\",\n \"--track-size\": \"sizes.2.5\",\n },\n },\n xl: {\n root: {\n \"--thumb-size\": \"sizes.7\",\n \"--track-size\": \"sizes.3\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"outline\",\n orientation: \"horizontal\",\n shape: \"circle\",\n },\n})\n\nexport type SliderStyle = typeof sliderStyle\n"],"mappings":";;;;AAEA,MAAa,cAAcA,wCAAyB;CAClD,MAAM;EACJ,MAAM;G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ACF,MAAM;GACJ,gBAAgB;GAChB,gBAAgB;GACjB,EACF;EACF;CAED,cAAc;EACZ,MAAM;EACN,SAAS;EACT,aAAa;EACb,OAAO;EACR;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ const require_tip = require('./tip.cjs');
2
+
3
+ exports.Tip = require_tip.Tip;
@@ -0,0 +1,53 @@
1
+ "use client";
2
+
3
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
4
+ const require_utils_index = require('../../utils/index.cjs');
5
+ const require_circle_check_big_icon = require('../icon/icons/circle-check-big-icon.cjs');
6
+ const require_circle_question_mark_icon = require('../icon/icons/circle-question-mark-icon.cjs');
7
+ const require_info_icon = require('../icon/icons/info-icon.cjs');
8
+ const require_octagon_alert_icon = require('../icon/icons/octagon-alert-icon.cjs');
9
+ const require_triangle_alert_icon = require('../icon/icons/triangle-alert-icon.cjs');
10
+ require('../icon/index.cjs');
11
+ const require_icon_button = require('../button/icon-button.cjs');
12
+ require('../button/index.cjs');
13
+ const require_use_tooltip = require('../tooltip/use-tooltip.cjs');
14
+ const require_tooltip = require('../tooltip/tooltip.cjs');
15
+ require('../tooltip/index.cjs');
16
+ let react_jsx_runtime = require("react/jsx-runtime");
17
+
18
+ //#region src/components/tip/tip.tsx
19
+ const icons = {
20
+ error: require_octagon_alert_icon.OctagonAlertIcon,
21
+ help: require_circle_question_mark_icon.CircleQuestionMarkIcon,
22
+ info: require_info_icon.InfoIcon,
23
+ success: require_circle_check_big_icon.CircleCheckBigIcon,
24
+ warning: require_triangle_alert_icon.TriangleAlertIcon
25
+ };
26
+ /**
27
+ * `Tip` is a component that displays supplementary information with a built-in icon trigger.
28
+ *
29
+ * @see https://yamada-ui.com/docs/components/tip
30
+ */
31
+ const Tip = (props) => {
32
+ const [tooltipProps, { animationScheme, content, duration, status = "help", contentProps, portalProps, ...rest }] = require_use_tooltip.useTooltipProps(props);
33
+ const Icon = icons[status];
34
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tooltip.Tooltip, {
35
+ animationScheme,
36
+ content,
37
+ duration,
38
+ contentProps,
39
+ portalProps,
40
+ ...tooltipProps,
41
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icon_button.IconButton, {
42
+ size: "2xs",
43
+ variant: "ghost",
44
+ "aria-label": (0, require_utils_index.utils_exports.isString)(content) ? content : void 0,
45
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}),
46
+ ...rest
47
+ })
48
+ });
49
+ };
50
+
51
+ //#endregion
52
+ exports.Tip = Tip;
53
+ //# sourceMappingURL=tip.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tip.cjs","names":["OctagonAlertIcon","CircleQuestionMarkIcon","InfoIcon","CircleCheckBigIcon","TriangleAlertIcon","Tip: FC<TipProps>","useTooltipProps","Tooltip","IconButton"],"sources":["../../../../src/components/tip/tip.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC } from \"react\"\nimport type { WithoutThemeProps } from \"../../core\"\nimport type { IconButtonProps } from \"../button\"\nimport type { StatusScheme } from \"../status\"\nimport type { TooltipProps, TooltipStyle } from \"../tooltip\"\nimport { isString } from \"../../utils\"\nimport { IconButton } from \"../button\"\nimport {\n CircleCheckBigIcon,\n CircleQuestionMarkIcon,\n InfoIcon,\n OctagonAlertIcon,\n TriangleAlertIcon,\n} from \"../icon\"\nimport { Tooltip, useTooltipProps } from \"../tooltip\"\n\nexport type TipStatusScheme = \"help\" | StatusScheme\n\nconst icons = {\n error: OctagonAlertIcon,\n help: CircleQuestionMarkIcon,\n info: InfoIcon,\n success: CircleCheckBigIcon,\n warning: TriangleAlertIcon,\n} as const\n\nexport interface TipProps\n extends\n WithoutThemeProps<TooltipProps, TooltipStyle>,\n Omit<IconButtonProps, \"content\" | \"offset\" | \"transform\"> {\n /**\n * The status of the tip.\n *\n * @default 'help'\n */\n status?: TipStatusScheme\n}\n\n/**\n * `Tip` is a component that displays supplementary information with a built-in icon trigger.\n *\n * @see https://yamada-ui.com/docs/components/tip\n */\nexport const Tip: FC<TipProps> = (props) => {\n const [\n tooltipProps,\n {\n animationScheme,\n content,\n duration,\n status = \"help\",\n contentProps,\n portalProps,\n ...rest\n },\n ] = useTooltipProps(props)\n const Icon = icons[status]\n\n return (\n <Tooltip\n animationScheme={animationScheme}\n content={content}\n duration={duration}\n contentProps={contentProps}\n portalProps={portalProps}\n {...tooltipProps}\n >\n <IconButton\n size=\"2xs\"\n variant=\"ghost\"\n aria-label={isString(content) ? content : undefined}\n icon={<Icon />}\n {...rest}\n />\n </Tooltip>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,MAAM,QAAQ;CACZ,OAAOA;CACP,MAAMC;CACN,MAAMC;CACN,SAASC;CACT,SAASC;CACV;;;;;;AAmBD,MAAaC,OAAqB,UAAU;CAC1C,MAAM,CACJ,cACA,EACE,iBACA,SACA,UACA,SAAS,QACT,cACA,aACA,GAAG,UAEHC,oCAAgB,MAAM;CAC1B,MAAM,OAAO,MAAM;AAEnB,QACE,2CAACC;EACkB;EACR;EACC;EACI;EACD;EACb,GAAI;YAEJ,2CAACC;GACC,MAAK;GACL,SAAQ;GACR,8DAAqB,QAAQ,GAAG,UAAU;GAC1C,MAAM,2CAAC,SAAO;GACd,GAAI;IACJ;GACM"}
@@ -6,10 +6,10 @@ const require_create_component = require('../../core/components/create-component
6
6
  require('../../core/index.cjs');
7
7
  const require_portal = require('../portal/portal.cjs');
8
8
  require('../portal/index.cjs');
9
- const require_use_input_border = require('../input/use-input-border.cjs');
10
- require('../input/index.cjs');
11
9
  const require_icon_button = require('../button/icon-button.cjs');
12
10
  require('../button/index.cjs');
11
+ const require_use_input_border = require('../input/use-input-border.cjs');
12
+ require('../input/index.cjs');
13
13
  const require_toggle_style = require('./toggle.style.cjs');
14
14
  const require_use_toggle = require('./use-toggle.cjs');
15
15
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -4,6 +4,8 @@ const require_tooltip = require('./tooltip.cjs');
4
4
 
5
5
  exports.Tooltip = require_tooltip.Tooltip;
6
6
  exports.TooltipPropsContext = require_tooltip.TooltipPropsContext;
7
+ exports.tooltipProps = require_use_tooltip.tooltipProps;
7
8
  exports.tooltipStyle = require_tooltip_style.tooltipStyle;
8
9
  exports.useTooltip = require_use_tooltip.useTooltip;
10
+ exports.useTooltipProps = require_use_tooltip.useTooltipProps;
9
11
  exports.useTooltipPropsContext = require_tooltip.useTooltipPropsContext;