@yamada-ui/react 2.2.0 → 2.3.0-next-20260411064049

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 (238) hide show
  1. package/dist/cjs/components/accordion/accordion.cjs +15 -5
  2. package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
  3. package/dist/cjs/components/avatar/avatar-group.cjs +6 -3
  4. package/dist/cjs/components/avatar/avatar-group.cjs.map +1 -1
  5. package/dist/cjs/components/checkbox/checkbox-group.cjs +6 -4
  6. package/dist/cjs/components/checkbox/checkbox-group.cjs.map +1 -1
  7. package/dist/cjs/components/checkbox-card/checkbox-card-group.cjs +5 -3
  8. package/dist/cjs/components/checkbox-card/checkbox-card-group.cjs.map +1 -1
  9. package/dist/cjs/components/menu/menu.cjs +45 -42
  10. package/dist/cjs/components/menu/menu.cjs.map +1 -1
  11. package/dist/cjs/components/native-popover/native-popover.cjs +26 -23
  12. package/dist/cjs/components/native-popover/native-popover.cjs.map +1 -1
  13. package/dist/cjs/components/popover/popover.cjs +34 -31
  14. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  15. package/dist/cjs/components/radio/radio-group.cjs +6 -4
  16. package/dist/cjs/components/radio/radio-group.cjs.map +1 -1
  17. package/dist/cjs/components/radio-card/radio-card-group.cjs +5 -3
  18. package/dist/cjs/components/radio-card/radio-card-group.cjs.map +1 -1
  19. package/dist/cjs/components/toggle/toggle-group.cjs +6 -4
  20. package/dist/cjs/components/toggle/toggle-group.cjs.map +1 -1
  21. package/dist/cjs/components/tooltip/tooltip.cjs +23 -18
  22. package/dist/cjs/components/tooltip/tooltip.cjs.map +1 -1
  23. package/dist/cjs/core/components/create-component.cjs +31 -6
  24. package/dist/cjs/core/components/create-component.cjs.map +1 -1
  25. package/dist/esm/components/accordion/accordion.js +15 -5
  26. package/dist/esm/components/accordion/accordion.js.map +1 -1
  27. package/dist/esm/components/avatar/avatar-group.js +6 -3
  28. package/dist/esm/components/avatar/avatar-group.js.map +1 -1
  29. package/dist/esm/components/checkbox/checkbox-group.js +6 -4
  30. package/dist/esm/components/checkbox/checkbox-group.js.map +1 -1
  31. package/dist/esm/components/checkbox-card/checkbox-card-group.js +5 -3
  32. package/dist/esm/components/checkbox-card/checkbox-card-group.js.map +1 -1
  33. package/dist/esm/components/menu/menu.js +45 -42
  34. package/dist/esm/components/menu/menu.js.map +1 -1
  35. package/dist/esm/components/native-popover/native-popover.js +26 -23
  36. package/dist/esm/components/native-popover/native-popover.js.map +1 -1
  37. package/dist/esm/components/popover/popover.js +34 -31
  38. package/dist/esm/components/popover/popover.js.map +1 -1
  39. package/dist/esm/components/radio/radio-group.js +6 -4
  40. package/dist/esm/components/radio/radio-group.js.map +1 -1
  41. package/dist/esm/components/radio-card/radio-card-group.js +5 -3
  42. package/dist/esm/components/radio-card/radio-card-group.js.map +1 -1
  43. package/dist/esm/components/toggle/toggle-group.js +6 -4
  44. package/dist/esm/components/toggle/toggle-group.js.map +1 -1
  45. package/dist/esm/components/tooltip/tooltip.js +23 -18
  46. package/dist/esm/components/tooltip/tooltip.js.map +1 -1
  47. package/dist/esm/core/components/create-component.js +31 -6
  48. package/dist/esm/core/components/create-component.js.map +1 -1
  49. package/dist/types/components/accordion/accordion.d.ts +2 -2
  50. package/dist/types/components/accordion/use-accordion.d.ts +11 -11
  51. package/dist/types/components/action-bar/action-bar.d.ts +2 -2
  52. package/dist/types/components/airy/airy.d.ts +2 -2
  53. package/dist/types/components/alert/alert.d.ts +2 -2
  54. package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
  55. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
  56. package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
  57. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  58. package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
  59. package/dist/types/components/avatar/avatar.d.ts +5 -5
  60. package/dist/types/components/avatar/avatar.style.d.ts +1 -1
  61. package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
  62. package/dist/types/components/badge/badge.d.ts +2 -2
  63. package/dist/types/components/bleed/bleed.d.ts +2 -2
  64. package/dist/types/components/blockquote/blockquote.d.ts +2 -2
  65. package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
  66. package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
  67. package/dist/types/components/button/button.d.ts +2 -2
  68. package/dist/types/components/button/icon-button.d.ts +2 -2
  69. package/dist/types/components/calendar/calendar.d.ts +2 -2
  70. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  71. package/dist/types/components/calendar/use-calendar.d.ts +8 -8
  72. package/dist/types/components/card/card.d.ts +2 -2
  73. package/dist/types/components/carousel/carousel.d.ts +2 -2
  74. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  75. package/dist/types/components/carousel/use-carousel.d.ts +3 -3
  76. package/dist/types/components/center/center.d.ts +2 -2
  77. package/dist/types/components/chart/area-chart.d.ts +2 -2
  78. package/dist/types/components/chart/bar-chart.d.ts +2 -2
  79. package/dist/types/components/chart/chart.d.ts +5 -5
  80. package/dist/types/components/chart/composed-chart.d.ts +2 -2
  81. package/dist/types/components/chart/donut-chart.d.ts +2 -2
  82. package/dist/types/components/chart/pie-chart.d.ts +2 -2
  83. package/dist/types/components/chart/radar-chart.d.ts +2 -2
  84. package/dist/types/components/chart/radial-chart.d.ts +2 -2
  85. package/dist/types/components/chart/use-chart.d.ts +2 -2
  86. package/dist/types/components/checkbox/checkbox.d.ts +4 -4
  87. package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
  88. package/dist/types/components/checkbox-card/checkbox-card.d.ts +4 -4
  89. package/dist/types/components/circle-progress/circle-progress.d.ts +2 -2
  90. package/dist/types/components/close-button/close-button.d.ts +2 -2
  91. package/dist/types/components/code/code.d.ts +2 -2
  92. package/dist/types/components/collapse/collapse.d.ts +2 -2
  93. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  94. package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
  95. package/dist/types/components/color-picker/use-color-picker.d.ts +2 -2
  96. package/dist/types/components/color-selector/color-selector.d.ts +2 -2
  97. package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
  98. package/dist/types/components/color-selector/use-color-selector.d.ts +3 -3
  99. package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
  100. package/dist/types/components/container/container.d.ts +2 -2
  101. package/dist/types/components/data-list/data-list.d.ts +2 -2
  102. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  103. package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
  104. package/dist/types/components/drawer/drawer.d.ts +2 -2
  105. package/dist/types/components/drawer/drawer.style.d.ts +2 -2
  106. package/dist/types/components/dropzone/dropzone.d.ts +4 -4
  107. package/dist/types/components/editable/editable.d.ts +4 -4
  108. package/dist/types/components/editable/use-editable.d.ts +2 -2
  109. package/dist/types/components/em/em.d.ts +2 -2
  110. package/dist/types/components/empty-state/empty-state.d.ts +2 -2
  111. package/dist/types/components/fade/fade.d.ts +2 -2
  112. package/dist/types/components/field/field.d.ts +3 -3
  113. package/dist/types/components/field/use-field-props.d.ts +3 -3
  114. package/dist/types/components/fieldset/fieldset.d.ts +3 -3
  115. package/dist/types/components/file-button/file-button.d.ts +2 -2
  116. package/dist/types/components/file-button/use-file-button.d.ts +18 -18
  117. package/dist/types/components/file-input/file-input.d.ts +2 -2
  118. package/dist/types/components/file-input/file-input.style.d.ts +1 -1
  119. package/dist/types/components/file-input/use-file-input.d.ts +15 -15
  120. package/dist/types/components/flex/flex.d.ts +2 -2
  121. package/dist/types/components/flip/flip.d.ts +4 -4
  122. package/dist/types/components/float/float.d.ts +2 -2
  123. package/dist/types/components/form/form.d.ts +3 -3
  124. package/dist/types/components/format/format-byte.d.ts +4 -4
  125. package/dist/types/components/format/format-date-time.d.ts +4 -4
  126. package/dist/types/components/format/format-number.d.ts +2 -2
  127. package/dist/types/components/grid/grid-item.d.ts +2 -2
  128. package/dist/types/components/grid/grid.d.ts +2 -2
  129. package/dist/types/components/group/group.d.ts +2 -2
  130. package/dist/types/components/group/use-group.d.ts +2 -2
  131. package/dist/types/components/heading/heading.d.ts +2 -2
  132. package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
  133. package/dist/types/components/icon/icon.d.ts +5 -5
  134. package/dist/types/components/image/image.d.ts +2 -2
  135. package/dist/types/components/indicator/indicator.d.ts +4 -4
  136. package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
  137. package/dist/types/components/input/input-addon.d.ts +2 -2
  138. package/dist/types/components/input/input-element.d.ts +2 -2
  139. package/dist/types/components/input/input.d.ts +2 -2
  140. package/dist/types/components/kbd/kbd.d.ts +2 -2
  141. package/dist/types/components/link/link.d.ts +2 -2
  142. package/dist/types/components/link-box/link-box.d.ts +2 -2
  143. package/dist/types/components/list/list.d.ts +2 -2
  144. package/dist/types/components/loading/loading-provider.d.ts +2 -2
  145. package/dist/types/components/loading/loading.d.ts +3 -3
  146. package/dist/types/components/mark/mark.d.ts +2 -2
  147. package/dist/types/components/menu/menu.d.ts +2 -2
  148. package/dist/types/components/menu/menu.style.d.ts +2 -2
  149. package/dist/types/components/menu/use-menu.d.ts +11 -11
  150. package/dist/types/components/modal/modal.d.ts +2 -2
  151. package/dist/types/components/modal/modal.style.d.ts +2 -2
  152. package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
  153. package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
  154. package/dist/types/components/native-popover/native-popover.d.ts +4 -4
  155. package/dist/types/components/native-select/native-select.d.ts +2 -2
  156. package/dist/types/components/native-table/native-table.d.ts +4 -4
  157. package/dist/types/components/notice/notice.style.d.ts +1 -1
  158. package/dist/types/components/number-input/number-input.d.ts +2 -2
  159. package/dist/types/components/number-input/number-input.style.d.ts +1 -1
  160. package/dist/types/components/pagination/pagination.d.ts +2 -2
  161. package/dist/types/components/pagination/use-pagination.d.ts +2 -2
  162. package/dist/types/components/password-input/password-input.d.ts +2 -2
  163. package/dist/types/components/password-input/strength-meter.d.ts +2 -2
  164. package/dist/types/components/password-input/use-password-input.d.ts +2 -2
  165. package/dist/types/components/pin-input/pin-input.d.ts +2 -2
  166. package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
  167. package/dist/types/components/popover/popover.d.ts +4 -4
  168. package/dist/types/components/progress/progress.d.ts +4 -4
  169. package/dist/types/components/progress/use-progress.d.ts +706 -706
  170. package/dist/types/components/qr-code/qr-code.d.ts +2 -2
  171. package/dist/types/components/radio/radio.d.ts +4 -4
  172. package/dist/types/components/radio/use-radio-group.d.ts +2 -2
  173. package/dist/types/components/radio-card/radio-card.d.ts +4 -4
  174. package/dist/types/components/rating/use-rating.d.ts +7 -7
  175. package/dist/types/components/reorder/reorder.d.ts +2 -2
  176. package/dist/types/components/reorder/use-reorder.d.ts +3 -3
  177. package/dist/types/components/resizable/resizable.d.ts +2 -2
  178. package/dist/types/components/resizable/use-resizable.d.ts +2 -2
  179. package/dist/types/components/ripple/ripple.d.ts +2 -2
  180. package/dist/types/components/ripple/use-ripple.d.ts +2 -2
  181. package/dist/types/components/rotate/rotate.d.ts +2 -2
  182. package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
  183. package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -2
  184. package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
  185. package/dist/types/components/segmented-control/segmented-control.d.ts +2 -2
  186. package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -9
  187. package/dist/types/components/select/select.d.ts +2 -2
  188. package/dist/types/components/select/use-select.d.ts +4 -4
  189. package/dist/types/components/separator/separator.d.ts +2 -2
  190. package/dist/types/components/sidebar/sidebar.d.ts +2 -2
  191. package/dist/types/components/sidebar/use-sidebar.d.ts +9 -9
  192. package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
  193. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  194. package/dist/types/components/slide/slide.d.ts +2 -2
  195. package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
  196. package/dist/types/components/slider/slider.d.ts +2 -2
  197. package/dist/types/components/slider/use-slider.d.ts +2 -2
  198. package/dist/types/components/stack/h-stack.d.ts +2 -2
  199. package/dist/types/components/stack/stack.d.ts +2 -2
  200. package/dist/types/components/stack/v-stack.d.ts +2 -2
  201. package/dist/types/components/stack/z-stack.d.ts +2 -2
  202. package/dist/types/components/stat/stat.d.ts +2 -2
  203. package/dist/types/components/status/status.d.ts +2 -2
  204. package/dist/types/components/steps/steps.d.ts +2 -2
  205. package/dist/types/components/steps/use-steps.d.ts +10 -10
  206. package/dist/types/components/switch/switch.d.ts +2 -2
  207. package/dist/types/components/table/table.d.ts +2 -2
  208. package/dist/types/components/tabs/tabs.d.ts +2 -2
  209. package/dist/types/components/tabs/use-tabs.d.ts +16 -16
  210. package/dist/types/components/tag/tag.d.ts +2 -2
  211. package/dist/types/components/tag/tag.style.d.ts +1 -1
  212. package/dist/types/components/text/text.d.ts +2 -2
  213. package/dist/types/components/textarea/textarea.d.ts +2 -2
  214. package/dist/types/components/textarea/use-autosize.d.ts +2 -2
  215. package/dist/types/components/timeline/timeline.d.ts +4 -4
  216. package/dist/types/components/toggle/toggle.d.ts +5 -5
  217. package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
  218. package/dist/types/components/toggle/use-toggle.d.ts +2 -2
  219. package/dist/types/components/tooltip/tooltip.d.ts +4 -3
  220. package/dist/types/components/tree/tree.d.ts +2 -2
  221. package/dist/types/components/tree/use-tree.d.ts +182 -182
  222. package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
  223. package/dist/types/components/wrap/wrap.d.ts +2 -2
  224. package/dist/types/core/components/create-component.d.ts +19 -10
  225. package/dist/types/core/components/index.d.ts +2 -2
  226. package/dist/types/core/index.d.ts +2 -2
  227. package/dist/types/core/system/color-mode-provider.d.ts +2 -2
  228. package/dist/types/core/system/storage-script.d.ts +3 -3
  229. package/dist/types/core/system/styled.d.ts +2 -2
  230. package/dist/types/core/system/system-provider.d.ts +2 -2
  231. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
  232. package/dist/types/hooks/use-counter/index.d.ts +2 -2
  233. package/dist/types/hooks/use-descendants/index.d.ts +2 -2
  234. package/dist/types/index.d.ts +3 -3
  235. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
  236. package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -2
  237. package/dist/types/utils/children.d.ts +2 -2
  238. package/package.json +1 -1
@@ -49,6 +49,10 @@ function createComponent(name, style) {
49
49
  name: `${defaultDisplayName}PropsContext`,
50
50
  strict: false
51
51
  });
52
+ const [HydrationContext, useHydrationContext] = createContext$1({
53
+ name: `${defaultDisplayName}HydrationContext`,
54
+ strict: false
55
+ });
52
56
  function useClassName(name$1, className) {
53
57
  const system = useSystem();
54
58
  className = (0, utils_exports.runIfFn)(className, system);
@@ -75,9 +79,11 @@ function createComponent(name, style) {
75
79
  return function(initialProps, ...superProps) {
76
80
  return withDisplayName((props) => {
77
81
  className = useClassName(name$1, className);
82
+ const hydrationProps = useHydrationContext();
78
83
  const computedProps = (0, utils_exports.isFunction)(initialProps) ? initialProps(props) : mergeProps(initialProps ?? {}, props)();
79
84
  const mergedProps = chainProps(...superProps)()(computedProps);
80
85
  return /* @__PURE__ */ jsx(ProxyComponent, {
86
+ ...hydrationProps,
81
87
  ...mergedProps,
82
88
  className: (0, utils_exports.cx)(className, mergedProps.className)
83
89
  });
@@ -95,15 +101,21 @@ function createComponent(name, style) {
95
101
  withContext: withContext$1,
96
102
  transferProps
97
103
  });
98
- return /* @__PURE__ */ jsx(ProxyComponent, { ...chainProps(...(0, utils_exports.toArray)(superProps))()(mergedProps) });
104
+ const rest = chainProps(...(0, utils_exports.toArray)(superProps))()(mergedProps);
105
+ return /* @__PURE__ */ jsx(HydrationContext, {
106
+ value: rest.suppressHydrationWarning ? { suppressHydrationWarning: true } : {},
107
+ children: /* @__PURE__ */ jsx(ProxyComponent, { ...rest })
108
+ });
99
109
  }, displayName);
100
110
  };
101
111
  }
102
112
  return {
103
113
  component,
104
114
  ComponentContext,
115
+ HydrationContext,
105
116
  PropsContext,
106
117
  useComponentContext,
118
+ useHydrationContext,
107
119
  usePropsContext,
108
120
  withContext,
109
121
  useComponentProps
@@ -119,6 +131,10 @@ function createSlotComponent(rootName, style) {
119
131
  name: `${rootDisplayName}PropsContext`,
120
132
  strict: false
121
133
  });
134
+ const [HydrationContext, useHydrationContext] = createContext$1({
135
+ name: `${rootDisplayName}HydrationContext`,
136
+ strict: false
137
+ });
122
138
  function useClassName(slot, className) {
123
139
  const system = useSystem();
124
140
  className = (0, utils_exports.runIfFn)(className, system);
@@ -137,19 +153,20 @@ function createSlotComponent(rootName, style) {
137
153
  function useRootComponentProps(props, slot, { className, withContext: withContext$1 = true, transferProps } = {}) {
138
154
  className = useClassName(slot, className);
139
155
  const contextProps = usePropsContext() ?? {};
140
- const [css, rest] = useComponentSlotStyle(withContext$1 ? mergeProps(contextProps, props)() : props, {
156
+ const [styleContext, rest] = useComponentSlotStyle(withContext$1 ? mergeProps(contextProps, props)() : props, {
141
157
  name: rootName,
142
158
  className,
143
159
  style,
144
160
  slot,
145
161
  transferProps
146
162
  });
147
- return [css, rest];
163
+ return [styleContext, rest];
148
164
  }
149
165
  function useSlotComponentProps(props, slot, { className } = {}) {
150
166
  className = useClassName(slot, className);
151
167
  const style$1 = useStyleContext();
152
168
  return {
169
+ ...useHydrationContext(),
153
170
  ...props,
154
171
  className: (0, utils_exports.cx)(className, props.className),
155
172
  css: mergeSlotCSS(slot, style$1, props.css)
@@ -166,9 +183,11 @@ function createSlotComponent(rootName, style) {
166
183
  return function(initialProps, ...superProps) {
167
184
  return withDisplayName((props) => {
168
185
  className = useClassName(slot, className);
186
+ const hydrationProps = useHydrationContext();
169
187
  const computedProps = (0, utils_exports.isFunction)(initialProps) ? initialProps(props) : mergeProps(initialProps ?? {}, props)();
170
188
  const mergedProps = chainProps(...superProps)()(computedProps);
171
189
  return /* @__PURE__ */ jsx(ProxyComponent, {
190
+ ...hydrationProps,
172
191
  ...mergedProps,
173
192
  className: (0, utils_exports.cx)(className, mergedProps.className)
174
193
  });
@@ -185,14 +204,18 @@ function createSlotComponent(rootName, style) {
185
204
  });
186
205
  return function(initialProps, ...superProps) {
187
206
  return withDisplayName((props) => {
188
- const [context, mergedProps] = useRootComponentProps((0, utils_exports.isFunction)(initialProps) ? initialProps(props) : mergeProps(initialProps ?? {}, props)(), slot, {
207
+ const [styleContext, mergedProps] = useRootComponentProps((0, utils_exports.isFunction)(initialProps) ? initialProps(props) : mergeProps(initialProps ?? {}, props)(), slot, {
189
208
  className,
190
209
  withContext: withContext$1,
191
210
  transferProps
192
211
  });
212
+ const rest = chainProps(...superProps)()(mergedProps);
193
213
  return /* @__PURE__ */ jsx(StyleContext, {
194
- value: context,
195
- children: /* @__PURE__ */ jsx(ProxyComponent, { ...chainProps(...superProps)()(mergedProps) })
214
+ value: styleContext,
215
+ children: /* @__PURE__ */ jsx(HydrationContext, {
216
+ value: rest.suppressHydrationWarning ? { suppressHydrationWarning: true } : {},
217
+ children: /* @__PURE__ */ jsx(ProxyComponent, { ...rest })
218
+ })
196
219
  });
197
220
  }, displayName);
198
221
  };
@@ -218,10 +241,12 @@ function createSlotComponent(rootName, style) {
218
241
  return {
219
242
  component,
220
243
  ComponentContext,
244
+ HydrationContext,
221
245
  PropsContext,
222
246
  StyleContext,
223
247
  useClassNames,
224
248
  useComponentContext,
249
+ useHydrationContext,
225
250
  usePropsContext,
226
251
  useStyleContext,
227
252
  withContext,
@@ -1 +1 @@
1
- {"version":3,"file":"create-component.js","names":["createContext","name","withContext","style"],"sources":["../../../../src/core/components/create-component.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, FunctionComponent } from \"react\"\nimport type { AnyString, Dict, Merge } from \"../../utils\"\nimport type { CSSObject, CSSSlotObject } from \"../css\"\nimport type {\n ComponentSlotStyle,\n ComponentStyle,\n StyledOptions,\n System,\n WithoutThemeProps,\n} from \"../system\"\nimport type {\n As,\n DOMElement,\n HTMLStyledProps,\n Component as OriginalComponent,\n} from \"./index.types\"\nimport { Fragment } from \"react\"\nimport {\n createContext,\n cx,\n isArray,\n isFunction,\n isObject,\n isString,\n runIfFn,\n toArray,\n toCamelCase,\n toPascalCase,\n} from \"../../utils\"\nimport { styled, useSystem } from \"../system\"\nimport { chainProps, mergeProps } from \"./props\"\nimport {\n getSlotClassName,\n mergeSlotCSS,\n useComponentSlotStyle,\n useComponentStyle,\n} from \"./use-component-style\"\nimport { getClassName, getDisplayName } from \"./utils\"\n\ntype AsWithFragment = \"fragment\" | As\ntype ClassName = ((system: System) => string) | string\n\ntype Component<\n Y extends AsWithFragment = AsWithFragment,\n M extends object = {},\n> = Y extends \"fragment\"\n ? FunctionComponent<M>\n : OriginalComponent<Exclude<Y, \"fragment\">, M>\n\nexport type ComponentSlotName<\n Y extends ComponentSlotStyle | ComponentStyle = ComponentSlotStyle,\n> = AnyString | Extract<keyof NonNullable<Y[\"base\"]>, string>\n\nexport type ComponentSlot<Y extends string> =\n | [Y, Y]\n | Y\n | { name: string; slot: [Y, Y] | Y }\n\nexport type InitialProps<Y extends Dict = Dict> =\n | ((props: Y) => any)\n | Partial<Y>\nexport type SuperProps<Y extends Dict = Dict> = ((props: Y) => any) | Y\n\nexport type SuperWithoutThemeProps<\n Y extends Dict = Dict,\n M extends Dict = Dict,\n D extends keyof Y = keyof Y,\n> = ((props: WithoutThemeProps<Y, M, D>) => any) | WithoutThemeProps<Y, M, D>\n\nexport interface UseComponentPropsOptions<\n Y extends number | string | symbol = string,\n> {\n className?: ClassName\n withContext?: boolean\n transferProps?: Y[]\n}\n\nexport interface ComponentOptions extends Omit<StyledOptions, \"transferProps\"> {\n className?: ClassName\n shouldStyleProps?: boolean\n}\n\ninterface classNameOptions<Y extends string = string> {\n className?: ClassName\n slot?: ComponentSlot<Y>\n}\n\nexport interface ComponentWithContextOptions<\n Y extends number | string | symbol = string,\n>\n extends ComponentOptions, UseComponentPropsOptions<Y> {}\n\nfunction createProxyComponent<\n Y extends AsWithFragment = \"div\",\n M extends Dict = Dict,\n>(el: FC<M> | Y, { shouldStyleProps, ...options }: ComponentOptions = {}) {\n options.shouldForwardProp ??= isFunction(el)\n shouldStyleProps ??= !isFunction(el)\n\n if (el === \"fragment\") el = Fragment\n\n if (shouldStyleProps || isString(el)) {\n const ProxyComponent = styled(el as As, options)\n\n ProxyComponent.displayName = \"ProxyComponent\"\n\n return ProxyComponent\n } else {\n el.displayName ??= \"ProxyComponent\"\n\n return el as FC<M>\n }\n}\n\nfunction withDisplayName<\n Y extends AsWithFragment = AsWithFragment,\n M extends object = {},\n>(Component: FC<M>, displayName: string) {\n Object.defineProperty(Component, \"name\", { value: displayName })\n Object.defineProperty(Component, \"displayName\", { value: displayName })\n\n return Component as Component<Y, M>\n}\n\nfunction getSlotKey<Y extends string>(slot?: ComponentSlot<Y>) {\n if (!slot) return \"unknown\"\n\n if (isArray(slot) || !isObject(slot)) {\n return toCamelCase(toArray(slot).join(\"-\"))\n } else {\n return toCamelCase(slot.name)\n }\n}\n\nfunction getSlotName<Y extends string>(slot?: ComponentSlot<Y>) {\n if (!slot) return \"\"\n\n if (isArray(slot)) {\n return slot.map((value) => toPascalCase(value as string)).join(\"\")\n } else if (isObject(slot)) {\n return toPascalCase(slot.name)\n } else {\n return toPascalCase(slot as string)\n }\n}\n\nexport function createComponent<\n Y extends object = {},\n M extends ComponentStyle = Dict,\n D extends Dict = Dict,\n>(name: string, style?: M) {\n const defaultClassName = style?.className\n const defaultDisplayName = getDisplayName(name)\n const [ComponentContext, useComponentContext] = createContext<D>({\n name: `${defaultDisplayName}Context`,\n })\n const [PropsContext, usePropsContext] = createContext<Partial<Y>>({\n name: `${defaultDisplayName}PropsContext`,\n strict: false,\n })\n\n function useClassName(name?: string, className?: ClassName) {\n const system = useSystem()\n\n className = runIfFn(className, system)\n className ??= getClassName(name, defaultClassName)(system)\n\n return className\n }\n\n function useComponentProps<H extends Y = Y, R extends keyof H = keyof H>(\n props: H,\n {\n className,\n withContext = true,\n transferProps,\n }: UseComponentPropsOptions<R> = {},\n ) {\n const system = useSystem()\n\n className = runIfFn(className, system)\n className ??= defaultClassName\n className ??= getClassName(name)(system)\n\n const contextProps = usePropsContext() ?? {}\n const mergedProps = withContext\n ? (mergeProps(contextProps, props)() as H)\n : props\n const [, rest] = useComponentStyle(mergedProps, {\n name,\n className,\n style,\n transferProps,\n })\n\n return rest\n }\n\n function component<D extends AsWithFragment = \"div\", H extends Dict = Y>(\n el: D | FC<H>,\n { name, className, ...options }: ComponentOptions = {},\n ) {\n const displayName = getDisplayName(name, defaultDisplayName)\n const ProxyComponent = createProxyComponent(el, options)\n\n return function (\n initialProps?: InitialProps<H>,\n ...superProps: SuperProps<H>[]\n ) {\n return withDisplayName<D, H>((props) => {\n className = useClassName(name, className)\n\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = chainProps<any>(...superProps)()(computedProps)\n\n return (\n <ProxyComponent\n {...mergedProps}\n className={cx(className, mergedProps.className)}\n />\n )\n }, displayName)\n }\n }\n\n function withContext<\n D extends AsWithFragment = \"div\",\n H extends Y = Y,\n R extends keyof H = keyof H,\n >(\n el: D | FC<WithoutThemeProps<H, M, R>>,\n {\n name,\n className,\n withContext,\n transferProps,\n ...options\n }: ComponentWithContextOptions<R> = {},\n ) {\n const displayName = getDisplayName(name, defaultDisplayName)\n const ProxyComponent = createProxyComponent(el, options)\n\n return function (\n initialProps?: InitialProps<H>,\n ...superProps: SuperWithoutThemeProps<H, M, R>[]\n ) {\n return withDisplayName<D, H>((props) => {\n className = useClassName(name, className)\n\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = useComponentProps(computedProps, {\n className,\n withContext,\n transferProps,\n })\n const rest = chainProps<any>(...toArray(superProps))()(mergedProps)\n\n return <ProxyComponent {...rest} />\n }, displayName)\n }\n }\n\n return {\n component,\n ComponentContext,\n PropsContext,\n useComponentContext,\n usePropsContext,\n withContext,\n useComponentProps,\n }\n}\n\nexport function createSlotComponent<\n Y extends object = {},\n M extends ComponentSlotStyle = Dict,\n D extends Dict = Dict,\n>(rootName: string, style?: M) {\n const rootClassName = style?.className\n const rootDisplayName = getDisplayName(rootName)\n const classNameMap = new Map<string, classNameOptions>()\n const [StyleContext, useStyleContext] = createContext<\n CSSSlotObject<ComponentSlotName<M>>\n >({\n name: `${rootDisplayName}StyleContext`,\n })\n const [ComponentContext, useComponentContext] = createContext<D>({\n name: `${rootDisplayName}Context`,\n })\n const [PropsContext, usePropsContext] = createContext<Partial<Y>>({\n name: `${rootDisplayName}PropsContext`,\n strict: false,\n })\n\n function useClassName(\n slot?: ComponentSlot<ComponentSlotName<M>>,\n className?: ClassName,\n ) {\n const system = useSystem()\n\n className = runIfFn(className, system)\n className ??= getSlotClassName(\n rootClassName ?? getClassName(rootName)(system),\n slot,\n )\n\n return className\n }\n\n function useClassNames() {\n const system = useSystem()\n const entries = classNameMap.entries().map(([key, { className, slot }]) => {\n className = runIfFn(className, system)\n className ??= getSlotClassName(\n rootClassName ?? getClassName(rootName)(system),\n slot,\n )\n\n return [key, className]\n })\n\n return Object.fromEntries(\n entries.filter(([_, className]) => className),\n ) as { [key: string]: string }\n }\n\n function useRootComponentProps<\n Y extends Dict = {},\n R extends keyof Y = keyof Y,\n >(\n props: Y,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n {\n className,\n withContext = true,\n transferProps,\n }: UseComponentPropsOptions<R> = {},\n ): [\n CSSSlotObject,\n Merge<WithoutThemeProps<Y, M, R>, { css?: CSSObject | CSSObject[] }>,\n ] {\n className = useClassName(slot, className)\n\n const contextProps = usePropsContext() ?? {}\n const mergedProps = withContext\n ? (mergeProps(contextProps, props)() as Y)\n : props\n const [css, rest] = useComponentSlotStyle(mergedProps, {\n name: rootName,\n className,\n style,\n slot,\n transferProps,\n })\n\n return [css, rest]\n }\n\n function useSlotComponentProps<Y extends Dict = {}>(\n props: Y,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n { className }: Omit<UseComponentPropsOptions, \"transferProps\"> = {},\n ) {\n className = useClassName(slot, className)\n\n const style = useStyleContext()\n\n return {\n ...props,\n className: cx(className, props.className),\n css: mergeSlotCSS(slot, style, props.css),\n }\n }\n\n function component<H extends AsWithFragment = \"div\", R extends Dict = Dict>(\n el: FC<R> | H,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n { name, className, ...options }: ComponentOptions = {},\n ) {\n const ProxyComponent = createProxyComponent(el, options)\n const slotKey = getSlotKey(slot)\n const slotName = getSlotName(slot)\n const displayName = getDisplayName(name, `${rootDisplayName}${slotName}`)\n\n classNameMap.set(slotKey, { className, slot })\n\n return function (\n initialProps?: InitialProps<R>,\n ...superProps: SuperProps<R>[]\n ) {\n return withDisplayName<H, R>((props) => {\n className = useClassName(slot, className)\n\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = chainProps(...superProps)()(computedProps)\n\n return (\n <ProxyComponent\n {...mergedProps}\n className={cx(className, mergedProps.className)}\n />\n )\n }, displayName)\n }\n }\n\n function withProvider<\n H extends AsWithFragment = \"div\",\n R extends Y = Y,\n T extends keyof R = keyof R,\n >(\n el: FC<WithoutThemeProps<R, M, T>> | H,\n slot: ComponentSlot<ComponentSlotName<M>> = \"root\" as ComponentSlot<\n ComponentSlotName<M>\n >,\n {\n name,\n className,\n withContext,\n transferProps,\n ...options\n }: ComponentWithContextOptions<T> = {},\n ) {\n const ProxyComponent = createProxyComponent(el, options)\n const slotKey = getSlotKey(slot)\n const slotName = getSlotName(slot)\n const displayName = getDisplayName(name, `${rootDisplayName}${slotName}`)\n\n classNameMap.set(slotKey, { className, slot })\n\n return function (\n initialProps?: InitialProps<R>,\n ...superProps: SuperWithoutThemeProps<R, M, T>[]\n ) {\n return withDisplayName<H, R>((props) => {\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const [context, mergedProps] = useRootComponentProps(\n computedProps,\n slot,\n {\n className,\n withContext,\n transferProps,\n },\n )\n const rest = chainProps<any>(...superProps)()(mergedProps)\n\n return (\n <StyleContext value={context}>\n <ProxyComponent {...rest} />\n </StyleContext>\n )\n }, displayName)\n }\n }\n\n function withContext<\n H extends AsWithFragment = \"div\",\n R extends Dict = H extends DOMElement ? HTMLStyledProps<H> : Dict,\n >(\n el: FC<R> | H,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n {\n name,\n className,\n withContext,\n ...options\n }: Omit<ComponentWithContextOptions, \"transferProps\"> = {},\n ) {\n const ProxyComponent = createProxyComponent(el, options)\n const slotKey = getSlotKey(slot)\n const slotName = getSlotName(slot)\n const displayName = getDisplayName(name, `${rootDisplayName}${slotName}`)\n\n classNameMap.set(slotKey, { className, slot })\n\n return function (\n initialProps?: InitialProps<R>,\n ...superProps: SuperProps<R>[]\n ) {\n return withDisplayName<H, R>((props) => {\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = useSlotComponentProps(computedProps, slot, {\n className,\n withContext,\n })\n const rest = chainProps(...superProps)()(mergedProps)\n\n return <ProxyComponent {...rest} />\n }, displayName)\n }\n }\n\n return {\n component,\n ComponentContext,\n PropsContext,\n StyleContext,\n useClassNames,\n useComponentContext,\n usePropsContext,\n useStyleContext,\n withContext,\n withProvider,\n useRootComponentProps,\n useSlotComponentProps,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AA8FA,SAAS,qBAGP,IAAe,EAAE,kBAAkB,GAAG,YAA8B,EAAE,EAAE;AACxE,SAAQ,oDAAiC,GAAG;AAC5C,sBAAqB,+BAAY,GAAG;AAEpC,KAAI,OAAO,WAAY,MAAK;AAE5B,KAAI,gDAA6B,GAAG,EAAE;EACpC,MAAM,iBAAiB,OAAO,IAAU,QAAQ;AAEhD,iBAAe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EAC1D;EACA,MAAM,iBAAiB,qBAAqB,IAAI,QAAQ;EACxD,MAAM,UAAU,WAAW,KAAK;EAEhC,MAAM,cAAc,eAAe,MAAM,GAAG,kBAD3B,YAAY,KAAK,GACuC;AAEzE,eAAa,IAAI,SAAS;GAAE;GAAW;GAAM,CAAC;AAE9C,SAAO,SACL,cACA,GAAG,YACH;AACA,UAAO,iBAAuB,UAAU;IAItC,MAAM,cAAc,oDAHa,aAAa,GAC1C,aAAa,MAAM,GACnB,WAAW,gBAAgB,EAAE,EAAE,MAAM,EAAE,EACc,MAAM;KAC7D;KACA;KACD,CAAC;AAGF,WAAO,oBAAC,kBAAe,GAFV,WAAW,GAAG,WAAW,EAAE,CAAC,YAAY,GAElB;MAClC,YAAY;;;AAInB,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
1
+ {"version":3,"file":"create-component.js","names":["createContext","name","withContext","style"],"sources":["../../../../src/core/components/create-component.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, FunctionComponent } from \"react\"\nimport type { AnyString, Dict, Merge } from \"../../utils\"\nimport type { CSSObject, CSSSlotObject } from \"../css\"\nimport type {\n ComponentSlotStyle,\n ComponentStyle,\n StyledOptions,\n System,\n WithoutThemeProps,\n} from \"../system\"\nimport type {\n As,\n DOMElement,\n HTMLStyledProps,\n Component as OriginalComponent,\n} from \"./index.types\"\nimport { Fragment } from \"react\"\nimport {\n createContext,\n cx,\n isArray,\n isFunction,\n isObject,\n isString,\n runIfFn,\n toArray,\n toCamelCase,\n toPascalCase,\n} from \"../../utils\"\nimport { styled, useSystem } from \"../system\"\nimport { chainProps, mergeProps } from \"./props\"\nimport {\n getSlotClassName,\n mergeSlotCSS,\n useComponentSlotStyle,\n useComponentStyle,\n} from \"./use-component-style\"\nimport { getClassName, getDisplayName } from \"./utils\"\n\nexport interface HydrationContext {\n suppressHydrationWarning?: boolean\n}\n\ntype AsWithFragment = \"fragment\" | As\ntype ClassName = ((system: System) => string) | string\n\ntype Component<\n Y extends AsWithFragment = AsWithFragment,\n M extends object = {},\n> = Y extends \"fragment\"\n ? FunctionComponent<M>\n : OriginalComponent<Exclude<Y, \"fragment\">, M>\n\nexport type ComponentSlotName<\n Y extends ComponentSlotStyle | ComponentStyle = ComponentSlotStyle,\n> = AnyString | Extract<keyof NonNullable<Y[\"base\"]>, string>\n\nexport type ComponentSlot<Y extends string> =\n | [Y, Y]\n | Y\n | { name: string; slot: [Y, Y] | Y }\n\nexport type InitialProps<Y extends Dict = Dict> =\n | ((props: Y) => any)\n | Partial<Y>\nexport type SuperProps<Y extends Dict = Dict> = ((props: Y) => any) | Y\n\nexport type SuperWithoutThemeProps<\n Y extends Dict = Dict,\n M extends Dict = Dict,\n D extends keyof Y = keyof Y,\n> = ((props: WithoutThemeProps<Y, M, D>) => any) | WithoutThemeProps<Y, M, D>\n\nexport interface UseComponentPropsOptions<\n Y extends number | string | symbol = string,\n> {\n className?: ClassName\n withContext?: boolean\n transferProps?: Y[]\n}\n\nexport interface ComponentOptions extends Omit<StyledOptions, \"transferProps\"> {\n className?: ClassName\n shouldStyleProps?: boolean\n}\n\ninterface classNameOptions<Y extends string = string> {\n className?: ClassName\n slot?: ComponentSlot<Y>\n}\n\nexport interface ComponentWithContextOptions<\n Y extends number | string | symbol = string,\n>\n extends ComponentOptions, UseComponentPropsOptions<Y> {}\n\nfunction createProxyComponent<\n Y extends AsWithFragment = \"div\",\n M extends Dict = Dict,\n>(el: FC<M> | Y, { shouldStyleProps, ...options }: ComponentOptions = {}) {\n options.shouldForwardProp ??= isFunction(el)\n shouldStyleProps ??= !isFunction(el)\n\n if (el === \"fragment\") el = Fragment\n\n if (shouldStyleProps || isString(el)) {\n const ProxyComponent = styled(el as As, options)\n\n ProxyComponent.displayName = \"ProxyComponent\"\n\n return ProxyComponent\n } else {\n el.displayName ??= \"ProxyComponent\"\n\n return el as FC<M>\n }\n}\n\nfunction withDisplayName<\n Y extends AsWithFragment = AsWithFragment,\n M extends object = {},\n>(Component: FC<M>, displayName: string) {\n Object.defineProperty(Component, \"name\", { value: displayName })\n Object.defineProperty(Component, \"displayName\", { value: displayName })\n\n return Component as Component<Y, M>\n}\n\nfunction getSlotKey<Y extends string>(slot?: ComponentSlot<Y>) {\n if (!slot) return \"unknown\"\n\n if (isArray(slot) || !isObject(slot)) {\n return toCamelCase(toArray(slot).join(\"-\"))\n } else {\n return toCamelCase(slot.name)\n }\n}\n\nfunction getSlotName<Y extends string>(slot?: ComponentSlot<Y>) {\n if (!slot) return \"\"\n\n if (isArray(slot)) {\n return slot.map((value) => toPascalCase(value as string)).join(\"\")\n } else if (isObject(slot)) {\n return toPascalCase(slot.name)\n } else {\n return toPascalCase(slot as string)\n }\n}\n\nexport function createComponent<\n Y extends Dict = {},\n M extends ComponentStyle = Dict,\n D extends Dict = Dict,\n>(name: string, style?: M) {\n const defaultClassName = style?.className\n const defaultDisplayName = getDisplayName(name)\n const [ComponentContext, useComponentContext] = createContext<D>({\n name: `${defaultDisplayName}Context`,\n })\n const [PropsContext, usePropsContext] = createContext<Partial<Y>>({\n name: `${defaultDisplayName}PropsContext`,\n strict: false,\n })\n const [HydrationContext, useHydrationContext] =\n createContext<HydrationContext>({\n name: `${defaultDisplayName}HydrationContext`,\n strict: false,\n })\n\n function useClassName(name?: string, className?: ClassName) {\n const system = useSystem()\n\n className = runIfFn(className, system)\n className ??= getClassName(name, defaultClassName)(system)\n\n return className\n }\n\n function useComponentProps<H extends Y = Y, R extends keyof H = keyof H>(\n props: H,\n {\n className,\n withContext = true,\n transferProps,\n }: UseComponentPropsOptions<R> = {},\n ) {\n const system = useSystem()\n\n className = runIfFn(className, system)\n className ??= defaultClassName\n className ??= getClassName(name)(system)\n\n const contextProps = usePropsContext() ?? {}\n const mergedProps = withContext\n ? (mergeProps(contextProps, props)() as H)\n : props\n const [, rest] = useComponentStyle(mergedProps, {\n name,\n className,\n style,\n transferProps,\n })\n\n return rest\n }\n\n function component<D extends AsWithFragment = \"div\", H extends Dict = Y>(\n el: D | FC<H>,\n { name, className, ...options }: ComponentOptions = {},\n ) {\n const displayName = getDisplayName(name, defaultDisplayName)\n const ProxyComponent = createProxyComponent(el, options)\n\n return function (\n initialProps?: InitialProps<H>,\n ...superProps: SuperProps<H>[]\n ) {\n return withDisplayName<D, H>((props) => {\n className = useClassName(name, className)\n\n const hydrationProps = useHydrationContext()\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = chainProps<any>(...superProps)()(computedProps)\n\n return (\n <ProxyComponent\n {...hydrationProps}\n {...mergedProps}\n className={cx(className, mergedProps.className)}\n />\n )\n }, displayName)\n }\n }\n\n function withContext<\n D extends AsWithFragment = \"div\",\n H extends Y = Y,\n R extends keyof H = keyof H,\n >(\n el: D | FC<WithoutThemeProps<H, M, R>>,\n {\n name,\n className,\n withContext,\n transferProps,\n ...options\n }: ComponentWithContextOptions<R> = {},\n ) {\n const displayName = getDisplayName(name, defaultDisplayName)\n const ProxyComponent = createProxyComponent(el, options)\n\n return function (\n initialProps?: InitialProps<H>,\n ...superProps: SuperWithoutThemeProps<H, M, R>[]\n ) {\n return withDisplayName<D, H>((props) => {\n className = useClassName(name, className)\n\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = useComponentProps(computedProps, {\n className,\n withContext,\n transferProps,\n })\n const rest = chainProps<any>(...toArray(superProps))()(mergedProps)\n const hydrationContext = rest.suppressHydrationWarning\n ? { suppressHydrationWarning: true }\n : {}\n\n return (\n <HydrationContext value={hydrationContext}>\n <ProxyComponent {...rest} />\n </HydrationContext>\n )\n }, displayName)\n }\n }\n\n return {\n component,\n ComponentContext,\n HydrationContext,\n PropsContext,\n useComponentContext,\n useHydrationContext,\n usePropsContext,\n withContext,\n useComponentProps,\n }\n}\n\nexport function createSlotComponent<\n Y extends object = {},\n M extends ComponentSlotStyle = Dict,\n D extends Dict = Dict,\n>(rootName: string, style?: M) {\n const rootClassName = style?.className\n const rootDisplayName = getDisplayName(rootName)\n const classNameMap = new Map<string, classNameOptions>()\n const [StyleContext, useStyleContext] = createContext<\n CSSSlotObject<ComponentSlotName<M>>\n >({\n name: `${rootDisplayName}StyleContext`,\n })\n const [ComponentContext, useComponentContext] = createContext<D>({\n name: `${rootDisplayName}Context`,\n })\n const [PropsContext, usePropsContext] = createContext<Partial<Y>>({\n name: `${rootDisplayName}PropsContext`,\n strict: false,\n })\n const [HydrationContext, useHydrationContext] =\n createContext<HydrationContext>({\n name: `${rootDisplayName}HydrationContext`,\n strict: false,\n })\n\n function useClassName(\n slot?: ComponentSlot<ComponentSlotName<M>>,\n className?: ClassName,\n ) {\n const system = useSystem()\n\n className = runIfFn(className, system)\n className ??= getSlotClassName(\n rootClassName ?? getClassName(rootName)(system),\n slot,\n )\n\n return className\n }\n\n function useClassNames() {\n const system = useSystem()\n const entries = classNameMap.entries().map(([key, { className, slot }]) => {\n className = runIfFn(className, system)\n className ??= getSlotClassName(\n rootClassName ?? getClassName(rootName)(system),\n slot,\n )\n\n return [key, className]\n })\n\n return Object.fromEntries(\n entries.filter(([_, className]) => className),\n ) as { [key: string]: string }\n }\n\n function useRootComponentProps<\n Y extends Dict = {},\n R extends keyof Y = keyof Y,\n >(\n props: Y,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n {\n className,\n withContext = true,\n transferProps,\n }: UseComponentPropsOptions<R> = {},\n ): [\n CSSSlotObject,\n Merge<WithoutThemeProps<Y, M, R>, { css?: CSSObject | CSSObject[] }>,\n ] {\n className = useClassName(slot, className)\n\n const contextProps = usePropsContext() ?? {}\n const mergedProps = withContext\n ? (mergeProps(contextProps, props)() as Y)\n : props\n const [styleContext, rest] = useComponentSlotStyle(mergedProps, {\n name: rootName,\n className,\n style,\n slot,\n transferProps,\n })\n\n return [styleContext, rest]\n }\n\n function useSlotComponentProps<Y extends Dict = {}>(\n props: Y,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n { className }: Omit<UseComponentPropsOptions, \"transferProps\"> = {},\n ) {\n className = useClassName(slot, className)\n\n const style = useStyleContext()\n const hydrationProps = useHydrationContext()\n\n return {\n ...hydrationProps,\n ...props,\n className: cx(className, props.className),\n css: mergeSlotCSS(slot, style, props.css),\n }\n }\n\n function component<H extends AsWithFragment = \"div\", R extends Dict = Dict>(\n el: FC<R> | H,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n { name, className, ...options }: ComponentOptions = {},\n ) {\n const ProxyComponent = createProxyComponent(el, options)\n const slotKey = getSlotKey(slot)\n const slotName = getSlotName(slot)\n const displayName = getDisplayName(name, `${rootDisplayName}${slotName}`)\n\n classNameMap.set(slotKey, { className, slot })\n\n return function (\n initialProps?: InitialProps<R>,\n ...superProps: SuperProps<R>[]\n ) {\n return withDisplayName<H, R>((props) => {\n className = useClassName(slot, className)\n\n const hydrationProps = useHydrationContext()\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = chainProps(...superProps)()(computedProps)\n\n return (\n <ProxyComponent\n {...hydrationProps}\n {...mergedProps}\n className={cx(className, mergedProps.className)}\n />\n )\n }, displayName)\n }\n }\n\n function withProvider<\n H extends AsWithFragment = \"div\",\n R extends Y = Y,\n T extends keyof R = keyof R,\n >(\n el: FC<WithoutThemeProps<R, M, T>> | H,\n slot: ComponentSlot<ComponentSlotName<M>> = \"root\" as ComponentSlot<\n ComponentSlotName<M>\n >,\n {\n name,\n className,\n withContext,\n transferProps,\n ...options\n }: ComponentWithContextOptions<T> = {},\n ) {\n const ProxyComponent = createProxyComponent(el, options)\n const slotKey = getSlotKey(slot)\n const slotName = getSlotName(slot)\n const displayName = getDisplayName(name, `${rootDisplayName}${slotName}`)\n\n classNameMap.set(slotKey, { className, slot })\n\n return function (\n initialProps?: InitialProps<R>,\n ...superProps: SuperWithoutThemeProps<R, M, T>[]\n ) {\n return withDisplayName<H, R>((props) => {\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const [styleContext, mergedProps] = useRootComponentProps(\n computedProps,\n slot,\n {\n className,\n withContext,\n transferProps,\n },\n )\n const rest = chainProps<any>(...superProps)()(mergedProps)\n const hydrationContext = rest.suppressHydrationWarning\n ? { suppressHydrationWarning: true }\n : {}\n\n return (\n <StyleContext value={styleContext}>\n <HydrationContext value={hydrationContext}>\n <ProxyComponent {...rest} />\n </HydrationContext>\n </StyleContext>\n )\n }, displayName)\n }\n }\n\n function withContext<\n H extends AsWithFragment = \"div\",\n R extends Dict = H extends DOMElement ? HTMLStyledProps<H> : Dict,\n >(\n el: FC<R> | H,\n slot?: ComponentSlot<ComponentSlotName<M>>,\n {\n name,\n className,\n withContext,\n ...options\n }: Omit<ComponentWithContextOptions, \"transferProps\"> = {},\n ) {\n const ProxyComponent = createProxyComponent(el, options)\n const slotKey = getSlotKey(slot)\n const slotName = getSlotName(slot)\n const displayName = getDisplayName(name, `${rootDisplayName}${slotName}`)\n\n classNameMap.set(slotKey, { className, slot })\n\n return function (\n initialProps?: InitialProps<R>,\n ...superProps: SuperProps<R>[]\n ) {\n return withDisplayName<H, R>((props) => {\n const computedProps = isFunction(initialProps)\n ? initialProps(props)\n : mergeProps(initialProps ?? {}, props)()\n const mergedProps = useSlotComponentProps(computedProps, slot, {\n className,\n withContext,\n })\n const rest = chainProps(...superProps)()(mergedProps)\n\n return <ProxyComponent {...rest} />\n }, displayName)\n }\n }\n\n return {\n component,\n ComponentContext,\n HydrationContext,\n PropsContext,\n StyleContext,\n useClassNames,\n useComponentContext,\n useHydrationContext,\n usePropsContext,\n useStyleContext,\n withContext,\n withProvider,\n useRootComponentProps,\n useSlotComponentProps,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAkGA,SAAS,qBAGP,IAAe,EAAE,kBAAkB,GAAG,YAA8B,EAAE,EAAE;AACxE,SAAQ,oDAAiC,GAAG;AAC5C,sBAAqB,+BAAY,GAAG;AAEpC,KAAI,OAAO,WA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AEhC,MAAM,cAAc,eAAe,MAAM,GAAG,kBAD3B,YAAY,KAAK,GACuC;AAEzE,eAAa,IAAI,SAAS;GAAE;GAAW;GAAM,CAAC;AAE9C,SAAO,SACL,cACA,GAAG,YACH;AACA,UAAO,iBAAuB,UAAU;IAItC,MAAM,CAAC,cAAc,eAAe,oDAHH,aAAa,GAC1C,aAAa,MAAM,GACnB,WAAW,gBAAgB,EAAE,EAAE,MAAM,EAAE,EAGzC,MACA;KACE;KACA;KACA;KACD,CACF;IACD,MAAM,OAAO,WAAgB,GAAG,WAAW,EAAE,CAAC,YAAY;AAK1D,WACE,oBAAC;KAAa,OAAO;eACnB,oBAAC;MAAiB,OANG,KAAK,2BAC1B,EAAE,0BAA0B,MAAM,GAClC,EAAE;gBAKA,oBAAC,kBAAe,GAAI,OAAQ;OACX;MACN;MAEhB,YAAY;;;CAInB,SAAS,YAIP,IACA,MACA,EACE,MACA,WACA,4BACA,GAAG,YACmD,EAAE,EAC1D;EACA,MAAM,iBAAiB,qBAAqB,IAAI,QAAQ;EACxD,MAAM,UAAU,WAAW,KAAK;EAEhC,MAAM,cAAc,eAAe,MAAM,GAAG,kBAD3B,YAAY,KAAK,GACuC;AAEzE,eAAa,IAAI,SAAS;GAAE;GAAW;GAAM,CAAC;AAE9C,SAAO,SACL,cACA,GAAG,YACH;AACA,UAAO,iBAAuB,UAAU;IAItC,MAAM,cAAc,oDAHa,aAAa,GAC1C,aAAa,MAAM,GACnB,WAAW,gBAAgB,EAAE,EAAE,MAAM,EAAE,EACc,MAAM;KAC7D;KACA;KACD,CAAC;AAGF,WAAO,oBAAC,kBAAe,GAFV,WAAW,GAAG,WAAW,EAAE,CAAC,YAAY,GAElB;MAClC,YAAY;;;AAInB,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -9,7 +9,7 @@ import "../collapse/index.js";
9
9
  import "../../index.js";
10
10
  import { AccordionStyle } from "./accordion.style.js";
11
11
  import { UseAccordionItemProps, UseAccordionProps } from "./use-accordion.js";
12
- import * as react1159 from "react";
12
+ import * as react39 from "react";
13
13
 
14
14
  //#region src/components/accordion/accordion.d.ts
15
15
  interface AccordionCallBackProps {
@@ -33,7 +33,7 @@ interface AccordionRootProps extends Omit<HTMLStyledProps, "onChange">, ThemePro
33
33
  */
34
34
  items?: AccordionItem[];
35
35
  }
36
- declare const AccordionPropsContext: react1159.Context<Partial<AccordionRootProps> | undefined>, useAccordionPropsContext: () => Partial<AccordionRootProps> | undefined;
36
+ declare const AccordionPropsContext: react39.Context<Partial<AccordionRootProps> | undefined>, useAccordionPropsContext: () => Partial<AccordionRootProps> | undefined;
37
37
  /**
38
38
  * `Accordion` is a component for a list that displays information in an expandable or collapsible manner.
39
39
  *
@@ -2,10 +2,10 @@ import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
2
2
  import "../../core/index.js";
3
3
  import { Descendant } from "../../hooks/use-descendants/index.js";
4
4
  import "../../index.js";
5
- import * as react1147 from "react";
5
+ import * as react40 from "react";
6
6
 
7
7
  //#region src/components/accordion/use-accordion.d.ts
8
- declare const AccordionDescendantsContext: react1147.Context<{
8
+ declare const AccordionDescendantsContext: react40.Context<{
9
9
  active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
10
10
  count: (props?: Partial<{}> | undefined) => number;
11
11
  destroy: () => void;
@@ -24,7 +24,7 @@ declare const AccordionDescendantsContext: react1147.Context<{
24
24
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
25
25
  register: (props?: {
26
26
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
27
- } | undefined) => react1147.RefCallback<HTMLButtonElement>;
27
+ } | undefined) => react40.RefCallback<HTMLButtonElement>;
28
28
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
29
29
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
30
30
  values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
@@ -50,12 +50,12 @@ declare const AccordionDescendantsContext: react1147.Context<{
50
50
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
51
51
  register: (props?: {
52
52
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
53
- } | undefined) => react1147.RefCallback<HTMLButtonElement>;
53
+ } | undefined) => react40.RefCallback<HTMLButtonElement>;
54
54
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
55
55
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
56
56
  values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
57
57
  };
58
- register: react1147.RefCallback<HTMLButtonElement>;
58
+ register: react40.RefCallback<HTMLButtonElement>;
59
59
  }, useAccordionDescendants: () => {
60
60
  active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
61
61
  count: (props?: Partial<{}> | undefined) => number;
@@ -75,15 +75,15 @@ declare const AccordionDescendantsContext: react1147.Context<{
75
75
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
76
76
  register: (props?: {
77
77
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
78
- } | undefined) => react1147.RefCallback<HTMLButtonElement>;
78
+ } | undefined) => react40.RefCallback<HTMLButtonElement>;
79
79
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
80
80
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
81
81
  values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
82
82
  };
83
83
  interface AccordionContext extends Omit<UseAccordionReturn, "descendants" | "getRootProps"> {}
84
- declare const AccordionContext: react1147.Context<AccordionContext>, useAccordionContext: () => AccordionContext;
84
+ declare const AccordionContext: react40.Context<AccordionContext>, useAccordionContext: () => AccordionContext;
85
85
  interface AccordionItemContext extends Omit<UseAccordionItemReturn, "getItemProps"> {}
86
- declare const AccordionItemContext: react1147.Context<AccordionItemContext>, useAccordionItemContext: () => AccordionItemContext;
86
+ declare const AccordionItemContext: react40.Context<AccordionItemContext>, useAccordionItemContext: () => AccordionItemContext;
87
87
  interface UseAccordionProps extends Omit<HTMLProps, "onChange"> {
88
88
  /**
89
89
  * The initial index(es) of the accordion item to expand.
@@ -137,7 +137,7 @@ declare const useAccordion: ({
137
137
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
138
138
  register: (props?: {
139
139
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
140
- } | undefined) => react1147.RefCallback<HTMLButtonElement>;
140
+ } | undefined) => react40.RefCallback<HTMLButtonElement>;
141
141
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
142
142
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
143
143
  values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
@@ -145,8 +145,8 @@ declare const useAccordion: ({
145
145
  focusedIndex: number;
146
146
  index: number | number[];
147
147
  multiple: boolean | undefined;
148
- setFocusedIndex: react1147.Dispatch<react1147.SetStateAction<number>>;
149
- setIndex: react1147.Dispatch<react1147.SetStateAction<number | number[]>>;
148
+ setFocusedIndex: react40.Dispatch<react40.SetStateAction<number>>;
149
+ setIndex: react40.Dispatch<react40.SetStateAction<number | number[]>>;
150
150
  toggle: boolean | undefined;
151
151
  getRootProps: PropGetter<"div", undefined, undefined>;
152
152
  };
@@ -7,7 +7,7 @@ import { UsePopupAnimationProps } from "../popover/popover.js";
7
7
  import "../popover/index.js";
8
8
  import { UseActionBarProps } from "./use-action-bar.js";
9
9
  import "../../index.js";
10
- import * as react111 from "react";
10
+ import * as react30 from "react";
11
11
  import { PropsWithChildren, ReactNode } from "react";
12
12
 
13
13
  //#region src/components/action-bar/action-bar.d.ts
@@ -29,7 +29,7 @@ interface ActionBarRootProps extends Omit<HTMLStyledProps, "content">, ThemeProp
29
29
  */
30
30
  onCloseComplete?: () => void;
31
31
  }
32
- declare const ActionBarPropsContext: react111.Context<Partial<ActionBarRootProps> | undefined>, useActionBarPropsContext: () => Partial<ActionBarRootProps> | undefined;
32
+ declare const ActionBarPropsContext: react30.Context<Partial<ActionBarRootProps> | undefined>, useActionBarPropsContext: () => Partial<ActionBarRootProps> | undefined;
33
33
  /**
34
34
  * `ActionBar` is a component that is used to display a bottom action bar with a set of actions.
35
35
  *
@@ -5,7 +5,7 @@ import { HTMLMotionProps } from "../motion/index.types.js";
5
5
  import "../motion/index.js";
6
6
  import { AiryStyle } from "./airy.style.js";
7
7
  import "../../index.js";
8
- import * as react1145 from "react";
8
+ import * as react38 from "react";
9
9
  import { ReactNode } from "react";
10
10
 
11
11
  //#region src/components/airy/airy.d.ts
@@ -57,7 +57,7 @@ interface AiryProps extends Omit<HTMLMotionProps<"button">, "onChange">, ThemePr
57
57
  */
58
58
  onChange?: (value: KeyframeIdent) => void;
59
59
  }
60
- declare const AiryPropsContext: react1145.Context<Partial<AiryProps> | undefined>, useAiryPropsContext: () => Partial<AiryProps> | undefined;
60
+ declare const AiryPropsContext: react38.Context<Partial<AiryProps> | undefined>, useAiryPropsContext: () => Partial<AiryProps> | undefined;
61
61
  /**
62
62
  * `Airy` is a component that creates an airy animation, switching between two elements when one is clicked.
63
63
  *
@@ -9,7 +9,7 @@ import "../loading/index.js";
9
9
  import { StatusScheme } from "../status/status.js";
10
10
  import "../status/index.js";
11
11
  import "../../index.js";
12
- import * as react41 from "react";
12
+ import * as react976 from "react";
13
13
 
14
14
  //#region src/components/alert/alert.d.ts
15
15
  interface AlertRootProps extends HTMLStyledProps, ThemeProps<AlertStyle> {
@@ -20,7 +20,7 @@ interface AlertRootProps extends HTMLStyledProps, ThemeProps<AlertStyle> {
20
20
  */
21
21
  status?: StatusScheme;
22
22
  }
23
- declare const AlertPropsContext: react41.Context<Partial<AlertRootProps> | undefined>, useAlertPropsContext: () => Partial<AlertRootProps> | undefined;
23
+ declare const AlertPropsContext: react976.Context<Partial<AlertRootProps> | undefined>, useAlertPropsContext: () => Partial<AlertRootProps> | undefined;
24
24
  /**
25
25
  * `Alert` is a component that conveys information to the user.
26
26
  *
@@ -5,7 +5,7 @@ import { AlphaSliderStyle } from "./alpha-slider.style.js";
5
5
  import { HueSliderOverlayProps, HueSliderRootProps, HueSliderThumbProps, HueSliderTrackProps } from "../hue-slider/hue-slider.js";
6
6
  import "../hue-slider/index.js";
7
7
  import "../../index.js";
8
- import * as react1207 from "react";
8
+ import * as react974 from "react";
9
9
 
10
10
  //#region src/components/alpha-slider/alpha-slider.d.ts
11
11
  interface AlphaSliderRootProps extends WithoutThemeProps<Omit<HueSliderRootProps, "color" | "max" | "step" | "thumbProps" | "trackProps">, AlphaSliderStyle> {
@@ -38,7 +38,7 @@ interface AlphaSliderRootProps extends WithoutThemeProps<Omit<HueSliderRootProps
38
38
  */
39
39
  trackProps?: AlphaSliderTrackProps;
40
40
  }
41
- declare const AlphaSliderPropsContext: react1207.Context<Partial<AlphaSliderRootProps> | undefined>, useAlphaSliderPropsContext: () => Partial<AlphaSliderRootProps> | undefined;
41
+ declare const AlphaSliderPropsContext: react974.Context<Partial<AlphaSliderRootProps> | undefined>, useAlphaSliderPropsContext: () => Partial<AlphaSliderRootProps> | undefined;
42
42
  /**
43
43
  * `AlphaSlider` is a component used to allow the user to select color transparency.
44
44
  *
@@ -2,7 +2,7 @@ import { StyleValue } from "../../core/css/index.types.js";
2
2
  import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
3
3
  import "../../core/index.js";
4
4
  import "../../index.js";
5
- import * as react85 from "react";
5
+ import * as react975 from "react";
6
6
 
7
7
  //#region src/components/aspect-ratio/aspect-ratio.d.ts
8
8
  interface AspectRatioProps extends HTMLStyledProps {
@@ -13,7 +13,7 @@ interface AspectRatioProps extends HTMLStyledProps {
13
13
  */
14
14
  ratio?: StyleValue<number>;
15
15
  }
16
- declare const AspectRatioPropsContext: react85.Context<Partial<AspectRatioProps> | undefined>, useAspectRatioPropsContext: () => Partial<AspectRatioProps> | undefined;
16
+ declare const AspectRatioPropsContext: react975.Context<Partial<AspectRatioProps> | undefined>, useAspectRatioPropsContext: () => Partial<AspectRatioProps> | undefined;
17
17
  /**
18
18
  * `AspectRatio` is a component for embedding things like videos and maps while maintaining the aspect ratio.
19
19
  *
@@ -12,7 +12,7 @@ import { InputGroupRootProps } from "../input/input-group.js";
12
12
  import "../input/index.js";
13
13
  import { UseAutocompleteOptionProps, UseAutocompleteProps } from "./use-autocomplete.js";
14
14
  import "../../index.js";
15
- import * as react1214 from "react";
15
+ import * as react31 from "react";
16
16
  import { ReactElement, ReactNode } from "react";
17
17
 
18
18
  //#region src/components/autocomplete/autocomplete.d.ts
@@ -68,7 +68,7 @@ interface AutocompleteRootProps<Multiple extends boolean = false> extends Omit<H
68
68
  */
69
69
  rootProps?: InputGroupRootProps;
70
70
  }
71
- declare const AutocompletePropsContext: react1214.Context<Partial<AutocompleteRootProps<false>> | undefined>, useAutocompletePropsContext: () => Partial<AutocompleteRootProps<false>> | undefined;
71
+ declare const AutocompletePropsContext: react31.Context<Partial<AutocompleteRootProps<false>> | undefined>, useAutocompletePropsContext: () => Partial<AutocompleteRootProps<false>> | undefined;
72
72
  /**
73
73
  * `Autocomplete` is a component used to display suggestions in response to user text input.
74
74
  *
@@ -3,7 +3,7 @@ import { CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
 
5
5
  //#region src/components/autocomplete/autocomplete.style.d.ts
6
- declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "empty" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "empty" | "valueText">>, {
6
+ declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "empty" | "indicator" | "field" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "empty" | "indicator" | "field" | "valueText">>, {
7
7
  xs: {
8
8
  empty: {
9
9
  gap: "1.5";
@@ -8,7 +8,7 @@ import "../field/index.js";
8
8
  import { Descendant, DescendantProps } from "../../hooks/use-descendants/index.js";
9
9
  import { ComboboxDescendant, ComboboxDescendantProps, ComboboxItem, ComboboxItemWithValue, UseComboboxItemProps, UseComboboxProps } from "../../hooks/use-combobox/index.js";
10
10
  import "../../index.js";
11
- import * as react1208 from "react";
11
+ import * as react32 from "react";
12
12
  import { ChangeEvent, ReactNode } from "react";
13
13
 
14
14
  //#region src/components/autocomplete/use-autocomplete.d.ts
@@ -28,7 +28,7 @@ interface AutocompleteFilter {
28
28
  }
29
29
  type AutocompleteMatcher = typeof index_d_exports.match;
30
30
  interface AutocompleteContext extends Pick<UseAutocompleteReturn, "max" | "value"> {}
31
- declare const AutocompleteContext: react1208.Context<AutocompleteContext>, useAutocompleteContext: () => AutocompleteContext;
31
+ declare const AutocompleteContext: react32.Context<AutocompleteContext>, useAutocompleteContext: () => AutocompleteContext;
32
32
  interface UseAutocompleteProps<Multiple extends boolean = false> extends Omit<HTMLProps, "defaultValue" | "onChange" | "ref" | "value">, Omit<UseComboboxProps, "defaultValue" | "initialFocusValue" | "onChange" | "ref" | "value">, HTMLRefAttributes<"input">, FieldProps {
33
33
  /**
34
34
  * If `true`, the autocomplete will allow custom value.
@@ -156,7 +156,7 @@ declare const useAutocomplete: <Multiple extends boolean = false>(props?: UseAut
156
156
  lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
157
157
  nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
158
158
  prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
159
- register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react1208.RefCallback<HTMLDivElement>;
159
+ register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react32.RefCallback<HTMLDivElement>;
160
160
  unregister: (node?: HTMLDivElement | null | undefined) => void;
161
161
  value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
162
162
  values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
@@ -166,8 +166,8 @@ declare const useAutocomplete: <Multiple extends boolean = false>(props?: UseAut
166
166
  items: ComboboxItem[];
167
167
  max: number | undefined;
168
168
  open: boolean;
169
- setInputValue: react1208.Dispatch<react1208.SetStateAction<string>>;
170
- setValue: react1208.Dispatch<react1208.SetStateAction<Multiple extends true ? string[] : string>>;
169
+ setInputValue: react32.Dispatch<react32.SetStateAction<string>>;
170
+ setValue: react32.Dispatch<react32.SetStateAction<Multiple extends true ? string[] : string>>;
171
171
  value: Multiple extends true ? string[] : string;
172
172
  valueMap: {
173
173
  [key: string]: ComboboxItemWithValue;
@@ -6,9 +6,9 @@ import "../../core/index.js";
6
6
  import { AvatarStyle } from "./avatar.style.js";
7
7
  import { UseAvatarProps } from "./use-avatar.js";
8
8
  import "../../index.js";
9
- import * as react1204 from "react";
9
+ import * as react969 from "react";
10
10
  import { ReactElement } from "react";
11
- import * as _yamada_ui_utils19 from "@yamada-ui/utils";
11
+ import * as _yamada_ui_utils13 from "@yamada-ui/utils";
12
12
 
13
13
  //#region src/components/avatar/avatar.d.ts
14
14
  interface AvatarProps extends HTMLStyledProps, ThemeProps<AvatarStyle>, UseAvatarProps {
@@ -25,7 +25,7 @@ interface AvatarProps extends HTMLStyledProps, ThemeProps<AvatarStyle>, UseAvata
25
25
  */
26
26
  imageProps?: AvatarImageProps;
27
27
  }
28
- declare const component: <H extends "fragment" | As = "div", R extends _yamada_ui_utils19.Dict = _yamada_ui_utils19.Dict<any>>(el: H | react1204.FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
28
+ declare const component: <H extends "fragment" | As = "div", R extends _yamada_ui_utils13.Dict = _yamada_ui_utils13.Dict<any>>(el: H | react969.FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
29
29
  shape: {
30
30
  circle: {
31
31
  root: {
@@ -148,7 +148,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
148
148
  name,
149
149
  className,
150
150
  ...options
151
- }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? react1204.FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, AvatarPropsContext: react1204.Context<Partial<AvatarProps> | undefined>, useAvatarPropsContext: () => Partial<AvatarProps> | undefined, useRootComponentProps: <Y extends _yamada_ui_utils19.Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
151
+ }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? react969.FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, AvatarPropsContext: react969.Context<Partial<AvatarProps> | undefined>, useAvatarPropsContext: () => Partial<AvatarProps> | undefined, useRootComponentProps: <Y extends _yamada_ui_utils13.Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
152
152
  shape: {
153
153
  circle: {
154
154
  root: {
@@ -271,7 +271,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
271
271
  className,
272
272
  withContext,
273
273
  transferProps
274
- }?: UseComponentPropsOptions<R>) => [CSSSlotObject, _yamada_ui_utils19.Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
274
+ }?: UseComponentPropsOptions<R>) => [CSSSlotObject, _yamada_ui_utils13.Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
275
275
  shape: {
276
276
  circle: {
277
277
  root: {
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import "../../index.js";
3
3
 
4
4
  //#region src/components/avatar/avatar.style.d.ts
5
- declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
5
+ declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
6
6
  /**
7
7
  * The shape of the component
8
8
  *
@@ -1,6 +1,6 @@
1
1
  import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
2
2
  import "../../core/index.js";
3
- import * as react1202 from "react";
3
+ import * as react967 from "react";
4
4
 
5
5
  //#region src/components/avatar/use-avatar-group.d.ts
6
6
  interface UseAvatarGroupProps extends HTMLProps {
@@ -19,7 +19,7 @@ declare const useAvatarGroup: ({
19
19
  reverse,
20
20
  ...rest
21
21
  }?: UseAvatarGroupProps) => {
22
- children: react1202.ReactElement<any, string | react1202.JSXElementConstructor<any>>[];
22
+ children: react967.ReactElement<any, string | react967.JSXElementConstructor<any>>[];
23
23
  excess: number;
24
24
  getRootProps: PropGetter<"div", undefined, undefined>;
25
25
  };
@@ -3,11 +3,11 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
3
3
  import "../../core/index.js";
4
4
  import { BadgeStyle } from "./badge.style.js";
5
5
  import "../../index.js";
6
- import * as react1201 from "react";
6
+ import * as react943 from "react";
7
7
 
8
8
  //#region src/components/badge/badge.d.ts
9
9
  interface BadgeProps extends HTMLStyledProps<"span">, ThemeProps<BadgeStyle> {}
10
- declare const BadgePropsContext: react1201.Context<Partial<BadgeProps> | undefined>, useBadgePropsContext: () => Partial<BadgeProps> | undefined;
10
+ declare const BadgePropsContext: react943.Context<Partial<BadgeProps> | undefined>, useBadgePropsContext: () => Partial<BadgeProps> | undefined;
11
11
  /**
12
12
  * `Badge` is a component that emphasizes the status of an item to make it immediately recognizable.
13
13
  *
@@ -2,7 +2,7 @@ import { CSSProps } from "../../core/css/index.types.js";
2
2
  import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
3
3
  import "../../core/index.js";
4
4
  import "../../index.js";
5
- import * as react1200 from "react";
5
+ import * as react972 from "react";
6
6
 
7
7
  //#region src/components/bleed/bleed.d.ts
8
8
  interface BleedProps extends HTMLStyledProps {
@@ -31,7 +31,7 @@ interface BleedProps extends HTMLStyledProps {
31
31
  */
32
32
  inlineStart?: "full" | CSSProps["marginInlineStart"];
33
33
  }
34
- declare const BleedPropsContext: react1200.Context<Partial<BleedProps> | undefined>, useBleedPropsContext: () => Partial<BleedProps> | undefined;
34
+ declare const BleedPropsContext: react972.Context<Partial<BleedProps> | undefined>, useBleedPropsContext: () => Partial<BleedProps> | undefined;
35
35
  /**
36
36
  * `Bleed` is a component used to break an element from the boundaries of its container.
37
37
  *
@@ -3,7 +3,7 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
3
3
  import "../../core/index.js";
4
4
  import { BlockquoteStyle } from "./blockquote.style.js";
5
5
  import "../../index.js";
6
- import * as react1199 from "react";
6
+ import * as react26 from "react";
7
7
  import { ReactNode } from "react";
8
8
 
9
9
  //#region src/components/blockquote/blockquote.d.ts
@@ -29,7 +29,7 @@ interface BlockquoteRootProps extends Omit<HTMLStyledProps<"figure">, "cite">, T
29
29
  */
30
30
  contentProps?: HTMLStyledProps<"blockquote">;
31
31
  }
32
- declare const BlockquotePropsContext: react1199.Context<Partial<BlockquoteRootProps> | undefined>, useBlockquotePropsContext: () => Partial<BlockquoteRootProps> | undefined;
32
+ declare const BlockquotePropsContext: react26.Context<Partial<BlockquoteRootProps> | undefined>, useBlockquotePropsContext: () => Partial<BlockquoteRootProps> | undefined;
33
33
  /**
34
34
  * `Blockquote` is a component that represents a blockquote. By default, it renders a `blockquote` element.
35
35
  *