@yamada-ui/react 2.2.0-next-20260324222629 → 2.2.0-next-20260324223405

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 (222) hide show
  1. package/dist/cjs/components/timeline/timeline.cjs +10 -4
  2. package/dist/cjs/components/timeline/timeline.cjs.map +1 -1
  3. package/dist/cjs/components/timeline/timeline.style.cjs +8 -1
  4. package/dist/cjs/components/timeline/timeline.style.cjs.map +1 -1
  5. package/dist/esm/components/timeline/timeline.js +10 -4
  6. package/dist/esm/components/timeline/timeline.js.map +1 -1
  7. package/dist/esm/components/timeline/timeline.style.js +8 -1
  8. package/dist/esm/components/timeline/timeline.style.js.map +1 -1
  9. package/dist/types/components/accordion/accordion.d.ts +2 -2
  10. package/dist/types/components/accordion/use-accordion.d.ts +11 -11
  11. package/dist/types/components/action-bar/action-bar.d.ts +2 -2
  12. package/dist/types/components/airy/airy.d.ts +2 -2
  13. package/dist/types/components/alert/alert.d.ts +2 -2
  14. package/dist/types/components/alert/alert.style.d.ts +1 -1
  15. package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
  16. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
  17. package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
  18. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  19. package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
  20. package/dist/types/components/avatar/avatar.d.ts +5 -5
  21. package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
  22. package/dist/types/components/badge/badge.d.ts +2 -2
  23. package/dist/types/components/bleed/bleed.d.ts +2 -2
  24. package/dist/types/components/blockquote/blockquote.d.ts +2 -2
  25. package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
  26. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  27. package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
  28. package/dist/types/components/button/button.d.ts +2 -2
  29. package/dist/types/components/button/icon-button.d.ts +2 -2
  30. package/dist/types/components/calendar/calendar.d.ts +2 -2
  31. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  32. package/dist/types/components/calendar/use-calendar.d.ts +8 -8
  33. package/dist/types/components/card/card.d.ts +2 -2
  34. package/dist/types/components/carousel/carousel.d.ts +2 -2
  35. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  36. package/dist/types/components/carousel/use-carousel.d.ts +3 -3
  37. package/dist/types/components/center/center.d.ts +2 -2
  38. package/dist/types/components/chart/area-chart.d.ts +2 -2
  39. package/dist/types/components/chart/chart.d.ts +5 -5
  40. package/dist/types/components/chart/composed-chart.d.ts +2 -2
  41. package/dist/types/components/chart/donut-chart.d.ts +2 -2
  42. package/dist/types/components/chart/line-chart.d.ts +2 -2
  43. package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
  44. package/dist/types/components/chart/radar-chart.d.ts +2 -2
  45. package/dist/types/components/chart/radial-chart.d.ts +2 -2
  46. package/dist/types/components/chart/use-chart.d.ts +2 -2
  47. package/dist/types/components/checkbox/checkbox.d.ts +5 -5
  48. package/dist/types/components/checkbox/checkbox.style.d.ts +1 -1
  49. package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
  50. package/dist/types/components/checkbox-card/checkbox-card.d.ts +5 -5
  51. package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
  52. package/dist/types/components/circle-progress/circle-progress.d.ts +2 -2
  53. package/dist/types/components/close-button/close-button.d.ts +2 -2
  54. package/dist/types/components/code/code.d.ts +2 -2
  55. package/dist/types/components/collapse/collapse.d.ts +2 -2
  56. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  57. package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
  58. package/dist/types/components/color-picker/use-color-picker.d.ts +2 -2
  59. package/dist/types/components/color-selector/color-selector.d.ts +2 -2
  60. package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
  61. package/dist/types/components/color-selector/use-color-selector.d.ts +3 -3
  62. package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
  63. package/dist/types/components/container/container.d.ts +2 -2
  64. package/dist/types/components/data-list/data-list.d.ts +2 -2
  65. package/dist/types/components/data-list/data-list.style.d.ts +1 -1
  66. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  67. package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
  68. package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
  69. package/dist/types/components/drawer/drawer.d.ts +2 -2
  70. package/dist/types/components/drawer/drawer.style.d.ts +2 -2
  71. package/dist/types/components/dropzone/dropzone.d.ts +5 -5
  72. package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
  73. package/dist/types/components/editable/editable.d.ts +4 -4
  74. package/dist/types/components/editable/use-editable.d.ts +2 -2
  75. package/dist/types/components/em/em.d.ts +2 -2
  76. package/dist/types/components/empty-state/empty-state.d.ts +2 -2
  77. package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
  78. package/dist/types/components/fade/fade.d.ts +2 -2
  79. package/dist/types/components/field/field.d.ts +3 -3
  80. package/dist/types/components/field/field.style.d.ts +2 -2
  81. package/dist/types/components/field/use-field-props.d.ts +4 -4
  82. package/dist/types/components/fieldset/fieldset.d.ts +3 -3
  83. package/dist/types/components/fieldset/fieldset.style.d.ts +1 -1
  84. package/dist/types/components/file-button/file-button.d.ts +2 -2
  85. package/dist/types/components/file-button/use-file-button.d.ts +18 -18
  86. package/dist/types/components/file-input/file-input.d.ts +2 -2
  87. package/dist/types/components/file-input/file-input.style.d.ts +1 -1
  88. package/dist/types/components/file-input/use-file-input.d.ts +17 -17
  89. package/dist/types/components/flex/flex.d.ts +2 -2
  90. package/dist/types/components/flip/flip.d.ts +4 -4
  91. package/dist/types/components/float/float.d.ts +2 -2
  92. package/dist/types/components/form/form.d.ts +3 -3
  93. package/dist/types/components/form/form.style.d.ts +1 -1
  94. package/dist/types/components/format/format-byte.d.ts +4 -4
  95. package/dist/types/components/format/format-date-time.d.ts +4 -4
  96. package/dist/types/components/format/format-number.d.ts +2 -2
  97. package/dist/types/components/grid/grid-item.d.ts +2 -2
  98. package/dist/types/components/grid/grid.d.ts +2 -2
  99. package/dist/types/components/group/group.d.ts +2 -2
  100. package/dist/types/components/group/use-group.d.ts +2 -2
  101. package/dist/types/components/heading/heading.d.ts +2 -2
  102. package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
  103. package/dist/types/components/icon/icon.d.ts +5 -5
  104. package/dist/types/components/image/image.d.ts +2 -2
  105. package/dist/types/components/indicator/indicator.d.ts +4 -4
  106. package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
  107. package/dist/types/components/input/input-addon.d.ts +2 -2
  108. package/dist/types/components/input/input-element.d.ts +2 -2
  109. package/dist/types/components/input/input.d.ts +2 -2
  110. package/dist/types/components/kbd/kbd.d.ts +2 -2
  111. package/dist/types/components/link/link.d.ts +2 -2
  112. package/dist/types/components/link-box/link-box.d.ts +2 -2
  113. package/dist/types/components/list/list.d.ts +2 -2
  114. package/dist/types/components/loading/loading-provider.d.ts +2 -2
  115. package/dist/types/components/loading/loading.d.ts +3 -3
  116. package/dist/types/components/mark/mark.d.ts +2 -2
  117. package/dist/types/components/menu/menu.d.ts +2 -2
  118. package/dist/types/components/menu/menu.style.d.ts +2 -2
  119. package/dist/types/components/menu/use-menu.d.ts +11 -11
  120. package/dist/types/components/modal/modal.d.ts +2 -2
  121. package/dist/types/components/modal/modal.style.d.ts +2 -2
  122. package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
  123. package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
  124. package/dist/types/components/native-popover/native-popover.d.ts +2 -2
  125. package/dist/types/components/native-select/native-select.d.ts +2 -2
  126. package/dist/types/components/native-select/native-select.style.d.ts +1 -1
  127. package/dist/types/components/native-table/native-table.d.ts +4 -4
  128. package/dist/types/components/notice/notice.style.d.ts +1 -1
  129. package/dist/types/components/number-input/number-input.d.ts +2 -2
  130. package/dist/types/components/number-input/number-input.style.d.ts +1 -1
  131. package/dist/types/components/pagination/pagination.d.ts +2 -2
  132. package/dist/types/components/pagination/use-pagination.d.ts +2 -2
  133. package/dist/types/components/password-input/password-input.d.ts +2 -2
  134. package/dist/types/components/password-input/password-input.style.d.ts +1 -1
  135. package/dist/types/components/password-input/strength-meter.d.ts +2 -2
  136. package/dist/types/components/password-input/strength-meter.style.d.ts +1 -1
  137. package/dist/types/components/pin-input/pin-input.d.ts +2 -2
  138. package/dist/types/components/pin-input/pin-input.style.d.ts +1 -1
  139. package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
  140. package/dist/types/components/popover/popover.d.ts +2 -2
  141. package/dist/types/components/progress/progress.d.ts +4 -4
  142. package/dist/types/components/progress/use-progress.d.ts +706 -706
  143. package/dist/types/components/qr-code/qr-code.d.ts +2 -2
  144. package/dist/types/components/radio/radio.d.ts +5 -5
  145. package/dist/types/components/radio/radio.style.d.ts +1 -1
  146. package/dist/types/components/radio/use-radio-group.d.ts +2 -2
  147. package/dist/types/components/radio-card/radio-card.d.ts +5 -5
  148. package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
  149. package/dist/types/components/rating/rating.style.d.ts +2 -2
  150. package/dist/types/components/rating/use-rating.d.ts +7 -7
  151. package/dist/types/components/reorder/reorder.d.ts +2 -2
  152. package/dist/types/components/reorder/use-reorder.d.ts +3 -3
  153. package/dist/types/components/resizable/resizable.d.ts +2 -2
  154. package/dist/types/components/resizable/use-resizable.d.ts +2 -2
  155. package/dist/types/components/ripple/ripple.d.ts +2 -2
  156. package/dist/types/components/ripple/use-ripple.d.ts +2 -2
  157. package/dist/types/components/rotate/rotate.d.ts +2 -2
  158. package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
  159. package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -2
  160. package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
  161. package/dist/types/components/segmented-control/segmented-control.d.ts +2 -2
  162. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  163. package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -9
  164. package/dist/types/components/select/select.d.ts +2 -2
  165. package/dist/types/components/select/select.style.d.ts +1 -1
  166. package/dist/types/components/select/use-select.d.ts +4 -4
  167. package/dist/types/components/separator/separator.d.ts +2 -2
  168. package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
  169. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  170. package/dist/types/components/slide/slide.d.ts +2 -2
  171. package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
  172. package/dist/types/components/slider/slider.d.ts +2 -2
  173. package/dist/types/components/slider/use-slider.d.ts +2 -2
  174. package/dist/types/components/stack/h-stack.d.ts +2 -2
  175. package/dist/types/components/stack/stack.d.ts +2 -2
  176. package/dist/types/components/stack/v-stack.d.ts +2 -2
  177. package/dist/types/components/stack/z-stack.d.ts +2 -2
  178. package/dist/types/components/stat/stat.d.ts +2 -2
  179. package/dist/types/components/stat/stat.style.d.ts +2 -2
  180. package/dist/types/components/status/status.d.ts +2 -2
  181. package/dist/types/components/status/status.style.d.ts +2 -2
  182. package/dist/types/components/steps/steps.d.ts +2 -2
  183. package/dist/types/components/steps/steps.style.d.ts +1 -1
  184. package/dist/types/components/steps/use-steps.d.ts +10 -10
  185. package/dist/types/components/switch/switch.d.ts +2 -2
  186. package/dist/types/components/table/table.d.ts +2 -2
  187. package/dist/types/components/tabs/tabs.d.ts +2 -2
  188. package/dist/types/components/tabs/tabs.style.d.ts +1 -1
  189. package/dist/types/components/tabs/use-tabs.d.ts +16 -16
  190. package/dist/types/components/tag/tag.d.ts +2 -2
  191. package/dist/types/components/tag/tag.style.d.ts +1 -1
  192. package/dist/types/components/text/text.d.ts +2 -2
  193. package/dist/types/components/textarea/textarea.d.ts +2 -2
  194. package/dist/types/components/textarea/use-autosize.d.ts +2 -2
  195. package/dist/types/components/timeline/timeline.d.ts +25 -5
  196. package/dist/types/components/timeline/timeline.style.d.ts +21 -3
  197. package/dist/types/components/toggle/toggle.d.ts +5 -5
  198. package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
  199. package/dist/types/components/toggle/use-toggle.d.ts +2 -2
  200. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  201. package/dist/types/components/tree/tree.d.ts +2 -2
  202. package/dist/types/components/tree/tree.style.d.ts +1 -1
  203. package/dist/types/components/tree/use-tree.d.ts +10 -10
  204. package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
  205. package/dist/types/components/wrap/wrap.d.ts +2 -2
  206. package/dist/types/core/components/create-component.d.ts +7 -7
  207. package/dist/types/core/system/color-mode-provider.d.ts +2 -2
  208. package/dist/types/core/system/styled.d.ts +2 -2
  209. package/dist/types/core/system/system-provider.d.ts +2 -2
  210. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
  211. package/dist/types/hooks/use-clickable/index.d.ts +9 -9
  212. package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
  213. package/dist/types/hooks/use-combobox/index.d.ts +12 -12
  214. package/dist/types/hooks/use-counter/index.d.ts +2 -2
  215. package/dist/types/hooks/use-descendants/index.d.ts +2 -2
  216. package/dist/types/hooks/use-field-sizing/index.d.ts +2 -2
  217. package/dist/types/hooks/use-hover/index.d.ts +2 -2
  218. package/dist/types/hooks/use-popper/index.d.ts +2 -2
  219. package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
  220. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +2 -2
  221. package/dist/types/utils/children.d.ts +2 -2
  222. package/package.json +1 -1
@@ -6,6 +6,7 @@ const require_var = require('../../core/system/var.cjs');
6
6
  const require_factory = require('../../core/system/factory.cjs');
7
7
  const require_create_component = require('../../core/components/create-component.cjs');
8
8
  require('../../core/index.cjs');
9
+ const require_hooks_use_value_index = require('../../hooks/use-value/index.cjs');
9
10
  const require_timeline_style = require('./timeline.style.cjs');
10
11
  let react = require("react");
11
12
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -17,8 +18,9 @@ const { ComponentContext, PropsContext: TimelinePropsContext, useComponentContex
17
18
  *
18
19
  * @see https://yamada-ui.com/docs/components/timeline
19
20
  */
20
- const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }) => {
21
+ const TimelineRoot = withProvider(({ variant: variantProp, children, index = -1, items = [], ...rest }) => {
21
22
  const context = (0, react.useMemo)(() => ({ index }), [index]);
23
+ const variant = require_hooks_use_value_index.useValue(variantProp);
22
24
  const computedChildren = (0, react.useMemo)(() => {
23
25
  if (children) return children;
24
26
  return items.map(({ align = "start", content, description, indicator, title, connectorProps, contentProps, descriptionProps, indicatorProps, titleProps, ...rest$1 }, index$1) => {
@@ -27,7 +29,7 @@ const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }
27
29
  ...connectorProps,
28
30
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TimelineIndicator, {
29
31
  ...indicatorProps,
30
- children: indicator
32
+ children: indicator ?? (variant === "number" ? index$1 + 1 : void 0)
31
33
  })
32
34
  }),
33
35
  content: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TimelineContent, {
@@ -47,7 +49,11 @@ const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }
47
49
  children: [align === "start" ? children$1.connector : children$1.content, align === "start" ? children$1.content : children$1.connector]
48
50
  }, index$1);
49
51
  });
50
- }, [items, children]);
52
+ }, [
53
+ children,
54
+ items,
55
+ variant
56
+ ]);
51
57
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext, {
52
58
  value: context,
53
59
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.ul, {
@@ -55,7 +61,7 @@ const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }
55
61
  children: computedChildren
56
62
  })
57
63
  });
58
- }, "root")(void 0, ({ indicatorFill, indicatorSize, indicatorStroke, separatorColor, separatorGap, separatorStyle, separatorWidth, ...rest }) => ({
64
+ }, "root", { transferProps: ["variant"] })(void 0, ({ indicatorFill, indicatorSize, indicatorStroke, separatorColor, separatorGap, separatorStyle, separatorWidth, ...rest }) => ({
59
65
  "--indicator-fill": require_var.varAttr(indicatorFill, "colors"),
60
66
  "--indicator-size": require_var.varAttr(indicatorSize, "sizes"),
61
67
  "--indicator-stroke": require_var.varAttr(indicatorStroke, "colors"),
@@ -1 +1 @@
1
- {"version":3,"file":"timeline.cjs","names":["createSlotComponent","timelineStyle","rest","children","index","styled","varAttr"],"sources":["../../../../src/components/timeline/timeline.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { TimelineStyle } from \"./timeline.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled, varAttr } from \"../../core\"\nimport { dataAttr, isUndefined } from \"../../utils\"\nimport { timelineStyle } from \"./timeline.style\"\n\nexport interface TimelineItem extends Omit<\n TimelineItemProps,\n \"content\" | \"title\"\n> {\n align?: \"end\" | \"start\"\n content?: ReactNode\n description?: ReactNode\n indicator?: ReactNode\n title?: ReactNode\n connectorProps?: TimelineConnectorProps\n contentProps?: TimelineContentProps\n descriptionProps?: TimelineDescriptionProps\n indicatorProps?: TimelineIndicatorProps\n titleProps?: TimelineTitleProps\n}\n\ninterface ComponentContext extends Pick<TimelineRootProps, \"index\"> {}\n\nexport interface TimelineRootProps\n extends HTMLStyledProps<\"ul\">, ThemeProps<TimelineStyle> {\n /**\n * The index of the active timeline item.\n */\n index?: number\n /**\n * The fill color of the indicator.\n */\n indicatorFill?: CSSProps[\"bg\"]\n /**\n * The size of the indicator.\n */\n indicatorSize?: CSSProps[\"boxSize\"]\n /**\n * The stroke color of the indicator.\n */\n indicatorStroke?: CSSProps[\"color\"]\n /**\n * If provided, generate timeline components based on items.\n */\n items?: TimelineItem[]\n /**\n * The color of the separator.\n */\n separatorColor?: CSSProps[\"color\"]\n /**\n * The gap of the separator.\n */\n separatorGap?: CSSProps[\"gap\"]\n /**\n * The style of the separator.\n */\n separatorStyle?: CSSProps[\"borderStyle\"]\n /**\n * The width of the separator.\n */\n separatorWidth?: CSSProps[\"width\"]\n}\n\nconst {\n ComponentContext,\n PropsContext: TimelinePropsContext,\n useComponentContext,\n usePropsContext: useTimelinePropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TimelineRootProps, TimelineStyle, ComponentContext>(\n \"timeline\",\n timelineStyle,\n)\n\nexport { TimelinePropsContext, useTimelinePropsContext }\n\n/**\n * `Timeline` is a component that is used to display a list of events in chronological order.\n *\n * @see https://yamada-ui.com/docs/components/timeline\n */\nexport const TimelineRoot = withProvider(\n ({ children, index = -1, items = [], ...rest }) => {\n const context = useMemo(() => ({ index }), [index])\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items.map(\n (\n {\n align = \"start\",\n content,\n description,\n indicator,\n title,\n connectorProps,\n contentProps,\n descriptionProps,\n indicatorProps,\n titleProps,\n ...rest\n },\n index,\n ) => {\n const children = {\n connector: (\n <TimelineConnector {...connectorProps}>\n <TimelineIndicator {...indicatorProps}>\n {indicator}\n </TimelineIndicator>\n </TimelineConnector>\n ),\n content: (\n <TimelineContent {...contentProps}>\n {content ?? (\n <>\n <TimelineTitle {...titleProps}>{title}</TimelineTitle>\n <TimelineDescription {...descriptionProps}>\n {description}\n </TimelineDescription>\n </>\n )}\n </TimelineContent>\n ),\n }\n\n return (\n <TimelineItem key={index} index={index} {...rest}>\n {align === \"start\" ? children.connector : children.content}\n {align === \"start\" ? children.content : children.connector}\n </TimelineItem>\n )\n },\n )\n }, [items, children])\n\n return (\n <ComponentContext value={context}>\n <styled.ul {...rest}>{computedChildren}</styled.ul>\n </ComponentContext>\n )\n },\n \"root\",\n)(\n undefined,\n ({\n indicatorFill,\n indicatorSize,\n indicatorStroke,\n separatorColor,\n separatorGap,\n separatorStyle,\n separatorWidth,\n ...rest\n }) => ({\n \"--indicator-fill\": varAttr(indicatorFill, \"colors\"),\n \"--indicator-size\": varAttr(indicatorSize, \"sizes\"),\n \"--indicator-stroke\": varAttr(indicatorStroke, \"colors\"),\n \"--separator-color\": varAttr(separatorColor, \"colors\"),\n \"--separator-gap\": varAttr(separatorGap, \"spaces\"),\n \"--separator-style\": varAttr(separatorStyle),\n \"--separator-width\": varAttr(separatorWidth, \"sizes\"),\n ...rest,\n }),\n)\n\nexport interface TimelineItemProps extends HTMLStyledProps<\"li\"> {\n /**\n * The index of the timeline item.\n */\n index?: number\n}\n\nexport const TimelineItem = withContext<\"li\", TimelineItemProps>(\"li\", \"item\")(\n undefined,\n ({ index, ...rest }) => {\n const { index: currentIndex } = useComponentContext()\n const active =\n !isUndefined(index) && !isUndefined(currentIndex) && index <= currentIndex\n\n return {\n ...rest,\n \"data-active\": dataAttr(active),\n \"data-index\": index,\n }\n },\n)\n\nexport interface TimelineConnectorProps extends HTMLStyledProps {}\n\nexport const TimelineConnector = withContext<\"div\", TimelineConnectorProps>(\n \"div\",\n \"connector\",\n)({ \"data-connector\": \"\" })\n\nexport interface TimelineIndicatorProps extends HTMLStyledProps {}\n\nconst TimelineIcon = styled(\"div\", {\n base: {\n bg: \"{indicator-fill}\",\n borderColor: \"{indicator-stroke}\",\n borderWidth: \"{separator-width}\",\n boxSize: \"full\",\n rounded: \"{indicator-rounded}\",\n },\n})\n\nexport const TimelineIndicator = withContext<\"div\", TimelineIndicatorProps>(\n \"div\",\n \"indicator\",\n)(undefined, ({ children = <TimelineIcon />, ...rest }) => ({\n children,\n ...rest,\n}))\n\nexport interface TimelineContentProps extends HTMLStyledProps {}\n\nexport const TimelineContent = withContext<\"div\", TimelineContentProps>(\n \"div\",\n \"content\",\n)({ \"data-content\": \"\" })\n\nexport interface TimelineTitleProps extends HTMLStyledProps<\"h3\"> {}\n\nexport const TimelineTitle = withContext<\"h3\", TimelineTitleProps>(\n \"h3\",\n \"title\",\n)()\n\nexport interface TimelineDescriptionProps extends HTMLStyledProps<\"p\"> {}\n\nexport const TimelineDescription = withContext<\"p\", Timeline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qBA,oBAAQ,gBAAgB,QAAQ;CACrD,GAAG;CACJ,EACF;AASD,MAAa,eAAe,YAAqC,MAAM,OAAO,CAC5E,SACC,EAAE,OAAO,GAAG,WAAW;CACtB,MAAM,EAAE,OAAO,iBAAiB,qBAAqB;CACrD,MAAM,SACJ,oDAAa,MAAM,IAAI,oDAAa,aAAa,IAAI,SAAS;AAEhE,QAAO;EACL,GAAG;EACH,+DAAwB,OAAO;EAC/B,cAAc;EACf;EAEJ;AAID,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,EAAE,kBAAkB,IAAI,CAAC;AAI3B,MAAM,eAAeD,uBAAO,OAAO,EACjC,MAAM;CACJ,IAAI;CACJ,aAAa;CACb,aAAa;CACb,SAAS;CACT,SAAS;CACV,EACF,CAAC;AAEF,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,SAAY,EAAE,WAAW,2CAAC,iBAAe,EAAE,GAAG,YAAY;CAC1D;CACA,GAAG;CACJ,EAAE;AAIH,MAAa,kBAAkB,YAC7B,OACA,UACD,CAAC,EAAE,gBAAgB,IAAI,CAAC;AAIzB,MAAa,gBAAgB,YAC3B,MACA,QACD,EAAE;AAIH,MAAa,sBAAsB,YACjC,KACA,cACD,EAAE"}
1
+ {"version":3,"file":"timeline.cjs","names":["createSlotComponent","timelineStyle","useValue","rest","children","index","styled","varAttr"],"sources":["../../../../src/components/timeline/timeline.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { TimelineStyle } from \"./timeline.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled, varAttr } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { dataAttr, isUndefined } from \"../../utils\"\nimport { timelineStyle } from \"./timeline.style\"\n\nexport interface TimelineItem extends Omit<\n TimelineItemProps,\n \"content\" | \"title\"\n> {\n align?: \"end\" | \"start\"\n content?: ReactNode\n description?: ReactNode\n indicator?: ReactNode\n title?: ReactNode\n connectorProps?: TimelineConnectorProps\n contentProps?: TimelineContentProps\n descriptionProps?: TimelineDescriptionProps\n indicatorProps?: TimelineIndicatorProps\n titleProps?: TimelineTitleProps\n}\n\ninterface ComponentContext extends Pick<TimelineRootProps, \"index\"> {}\n\nexport interface TimelineRootProps\n extends HTMLStyledProps<\"ul\">, ThemeProps<TimelineStyle> {\n /**\n * The index of the active timeline item.\n */\n index?: number\n /**\n * The fill color of the indicator.\n */\n indicatorFill?: CSSProps[\"bg\"]\n /**\n * The size of the indicator.\n */\n indicatorSize?: CSSProps[\"boxSize\"]\n /**\n * The stroke color of the indicator.\n */\n indicatorStroke?: CSSProps[\"color\"]\n /**\n * If provided, generate timeline components based on items.\n */\n items?: TimelineItem[]\n /**\n * The color of the separator.\n */\n separatorColor?: CSSProps[\"color\"]\n /**\n * The gap of the separator.\n */\n separatorGap?: CSSProps[\"gap\"]\n /**\n * The style of the separator.\n */\n separatorStyle?: CSSProps[\"borderStyle\"]\n /**\n * The width of the separator.\n */\n separatorWidth?: CSSProps[\"width\"]\n}\n\nconst {\n ComponentContext,\n PropsContext: TimelinePropsContext,\n useComponentContext,\n usePropsContext: useTimelinePropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TimelineRootProps, TimelineStyle, ComponentContext>(\n \"timeline\",\n timelineStyle,\n)\n\nexport { TimelinePropsContext, useTimelinePropsContext }\n\n/**\n * `Timeline` is a component that is used to display a list of events in chronological order.\n *\n * @see https://yamada-ui.com/docs/components/timeline\n */\nexport const TimelineRoot = withProvider(\n ({ variant: variantProp, children, index = -1, items = [], ...rest }) => {\n const context = useMemo(() => ({ index }), [index])\n const variant = useValue(variantProp)\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items.map(\n (\n {\n align = \"start\",\n content,\n description,\n indicator,\n title,\n connectorProps,\n contentProps,\n descriptionProps,\n indicatorProps,\n titleProps,\n ...rest\n },\n index,\n ) => {\n const children = {\n connector: (\n <TimelineConnector {...connectorProps}>\n <TimelineIndicator {...indicatorProps}>\n {indicator ?? (variant === \"number\" ? index + 1 : undefined)}\n </TimelineIndicator>\n </TimelineConnector>\n ),\n content: (\n <TimelineContent {...contentProps}>\n {content ?? (\n <>\n <TimelineTitle {...titleProps}>{title}</TimelineTitle>\n <TimelineDescription {...descriptionProps}>\n {description}\n </TimelineDescription>\n </>\n )}\n </TimelineContent>\n ),\n }\n\n return (\n <TimelineItem key={index} index={index} {...rest}>\n {align === \"start\" ? children.connector : children.content}\n {align === \"start\" ? children.content : children.connector}\n </TimelineItem>\n )\n },\n )\n }, [children, items, variant])\n\n return (\n <ComponentContext value={context}>\n <styled.ul {...rest}>{computedChildren}</styled.ul>\n </ComponentContext>\n )\n },\n \"root\",\n { transferProps: [\"variant\"] },\n)(\n undefined,\n ({\n indicatorFill,\n indicatorSize,\n indicatorStroke,\n separatorColor,\n separatorGap,\n separatorStyle,\n separatorWidth,\n ...rest\n }) => ({\n \"--indicator-fill\": varAttr(indicatorFill, \"colors\"),\n \"--indicator-size\": varAttr(indicatorSize, \"sizes\"),\n \"--indicator-stroke\": varAttr(indicatorStroke, \"colors\"),\n \"--separator-color\": varAttr(separatorColor, \"colors\"),\n \"--separator-gap\": varAttr(separatorGap, \"spaces\"),\n \"--separator-style\": varAttr(separatorStyle),\n \"--separator-width\": varAttr(separatorWidth, \"sizes\"),\n ...rest,\n }),\n)\n\nexport interface TimelineItemProps extends HTMLStyledProps<\"li\"> {\n /**\n * The index of the timeline item.\n */\n index?: number\n}\n\nexport const TimelineItem = withContext<\"li\", TimelineItemProps>(\"li\", \"item\")(\n undefined,\n ({ index, ...rest }) => {\n const { index: currentIndex } = useComponentContext()\n const active =\n !isUndefined(index) && !isUndefined(currentIndex) && index <= currentIndex\n\n return {\n ...rest,\n \"data-active\": dataAttr(active),\n \"data-index\": index,\n }\n },\n)\n\nexport interface TimelineConnectorProps extends HTMLStyledProps {}\n\nexport const TimelineConnector = withContext<\"div\", TimelineConnectorProps>(\n \"div\",\n \"connector\",\n)({ \"data-connector\": \"\" })\n\nexport interface TimelineIndicatorProps extends HTMLStyledProps {}\n\nconst TimelineIcon = styled(\"div\", {\n base: {\n bg: \"{indicator-fill}\",\n borderColor: \"{indicator-stroke}\",\n borderWidth: \"{separator-width}\",\n boxSize: \"full\",\n rounded: \"{indicator-rounded}\",\n },\n})\n\nexport const TimelineIndicator = withContext<\"div\", TimelineIndicatorProps>(\n \"div\",\n \"indicator\",\n)(undefined, ({ children = <TimelineIcon />, ...rest }) => ({\n children,\n ...rest,\n}))\n\nexport interface TimelineContentProps extends HTMLStyledProps {}\n\nexport const TimelineContent = withContext<\"div\", TimelineContentProps>(\n \"div\",\n \"content\",\n)({ \"data-content\": \"\" })\n\nexport interface TimelineTitleProps extends HTMLStyledProps<\"h3\"> {}\n\nexport const TimelineTitle = withContext<\"h3\", TimelineTitleProps>(\n \"h3\",\n \"title\",\n)()\n\nexport interface TimelineDescriptionProps extends HTMLStyledProps<\"p\"> {}\n\nexport const TimelineDescription = withContext<\"p\", TimelineDescriptionProps>(\n \"p\",\n \"description\",\n)()\n"],"mappings":";;;;;;;;;;;;;;AAqEA,MAAM,EACJ,kBACA,cAAc,sBACd,qBACA,iBAAiB,yBACjB,aACA,iBACEA,6CACF,YACAC,qCACD;;;;;;AASD,MAAa,eAAe,cACzB,EAAE,SAAS,aAAa,UAAU,QAAQ,IAAI,QAAQ,EAAE,EAAE,GAAG,WAAW;CACvE,MAAM,oCAAyB,EAAE,OAAO,GAAG,CAAC,MAAM,CAAC;CACnD,MAAM,UAAUC,uCAAS,YAAY;CACrC,MAAM,4CAAiC;AACrC,MAAI,SAAU,QAAO;AAErB,SAAO,MAAM,KAET,EACE,QAAQ,SACR,SACA,aACA,WACA,OACA,gBACA,cACA,kBACA,gBACA,YACA,GAAGC,UAEL,YACG;GACH,MAAMC,aAAW;IACf,WACE,2CAAC;KAAkB,GAAI;eACrB,2CAAC;MAAkB,GAAI;gBACpB,cAAc,YAAY,WAAWC,UAAQ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ACV,EACF,CAAC;AAEF,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,SAAY,EAAE,WAAW,2CAAC,iBAAe,EAAE,GAAG,YAAY;CAC1D;CACA,GAAG;CACJ,EAAE;AAIH,MAAa,kBAAkB,YAC7B,OACA,UACD,CAAC,EAAE,gBAAgB,IAAI,CAAC;AAIzB,MAAa,gBAAgB,YAC3B,MACA,QACD,EAAE;AAIH,MAAa,sBAAsB,YACjC,KACA,cACD,EAAE"}
@@ -30,7 +30,6 @@ const timelineStyle = require_config.defineComponentSlotStyle({
30
30
  boxSize: "{indicator-size}",
31
31
  color: "{indicator-stroke}",
32
32
  display: "flex",
33
- fontWeight: "medium",
34
33
  justifyContent: "center",
35
34
  lineHeight: "{indicator-size}",
36
35
  overflow: "hidden",
@@ -86,6 +85,10 @@ const timelineStyle = require_config.defineComponentSlotStyle({
86
85
  square: { item: { "--indicator-rounded": "radii.0" } }
87
86
  }
88
87
  },
88
+ variants: {
89
+ number: { indicator: { layerStyle: "solid" } },
90
+ plain: {}
91
+ },
89
92
  sizes: {
90
93
  base: { item: { _last: { "& [data-content]": { pb: 0 } } } },
91
94
  sm: {
@@ -94,6 +97,7 @@ const timelineStyle = require_config.defineComponentSlotStyle({
94
97
  pb: "8"
95
98
  },
96
99
  description: { fontSize: "xs" },
100
+ indicator: { fontSize: "xs" },
97
101
  item: { gap: "3" },
98
102
  root: {
99
103
  "--indicator-size": "sizes.3",
@@ -108,6 +112,7 @@ const timelineStyle = require_config.defineComponentSlotStyle({
108
112
  pb: "10"
109
113
  },
110
114
  description: { fontSize: "sm" },
115
+ indicator: { fontSize: "sm" },
111
116
  item: { gap: "4" },
112
117
  root: {
113
118
  "--indicator-size": "sizes.5",
@@ -122,6 +127,7 @@ const timelineStyle = require_config.defineComponentSlotStyle({
122
127
  pb: "10"
123
128
  },
124
129
  description: { fontSize: "sm" },
130
+ indicator: { fontSize: "md" },
125
131
  item: { gap: "4" },
126
132
  root: {
127
133
  "--indicator-size": "sizes.7",
@@ -136,6 +142,7 @@ const timelineStyle = require_config.defineComponentSlotStyle({
136
142
  pb: "12"
137
143
  },
138
144
  description: { fontSize: "md" },
145
+ indicator: { fontSize: "md" },
139
146
  item: { gap: "5" },
140
147
  root: {
141
148
  "--indicator-size": "sizes.8",
@@ -1 +1 @@
1
- {"version":3,"file":"timeline.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/timeline/timeline.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const timelineStyle = defineComponentSlotStyle({\n base: {\n connector: {\n alignSelf: \"stretch\",\n position: \"relative\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _after: {\n borderInlineStart:\n \"{separator-width} {separator-style, solid} {separator-color}\",\n display: \"block\",\n h: \"full\",\n insetBlockStart: \"calc({indicator-size} + {separator-gap})\",\n insetInlineStart:\n \"calc(({indicator-size} / 2) - ({separator-width} / 2))\",\n maxH: `calc(full - {indicator-size} - ({separator-gap} * 2))`,\n position: \"absolute\",\n },\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n description: {\n color: \"fg.muted\",\n },\n indicator: {\n alignItems: \"center\",\n boxSize: \"{indicator-size}\",\n color: \"{indicator-stroke}\",\n display: \"flex\",\n fontWeight: \"medium\",\n justifyContent: \"center\",\n lineHeight: \"{indicator-size}\",\n overflow: \"hidden\",\n rounded: \"{indicator-rounded}\",\n },\n item: {\n alignItems: \"flex-start\",\n display: \"flex\",\n flexShrink: \"0\",\n _last: {\n \"& [data-connector]\": {\n _after: { display: \"none\" },\n },\n },\n },\n root: {\n \"--indicator-fill\": \"transparent\",\n \"--indicator-stroke\": \"colorScheme.solid\",\n \"--separator-color\": \"colors.border\",\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n title: {\n alignItems: \"center\",\n display: \"flex\",\n fontWeight: \"medium\",\n gap: \"1\",\n lineHeight: \"{indicator-size}\",\n },\n },\n\n props: {\n /**\n * The alignment of the timeline.\n *\n * @default 'start'\n */\n align: {\n center: {\n content: {\n \"&:first-of-type\": { alignItems: \"flex-end\" },\n flex: \"1\",\n },\n item: {\n \"&:has(> [data-content]:first-of-type)\": {\n \"&:not(:has(> [data-content]:last-of-type))\": {\n _after: { display: \"block\", flex: \"1\" },\n },\n },\n \"&:not(:has(> [data-content]:first-of-type))\": {\n _before: { display: \"block\", flex: \"1\" },\n },\n },\n },\n end: {\n content: { alignItems: \"flex-end\" },\n },\n start: {\n content: { alignItems: \"flex-start\" },\n },\n },\n /**\n * If `true`, the timeline will be attached.\n *\n * @default false\n */\n attached: {\n true: {\n item: {\n \"--separator-gap\": \"0px\",\n },\n },\n },\n /**\n * The shape of the timeline.\n *\n * @default 'circle'\n */\n shape: {\n circle: {\n item: { \"--indicator-rounded\": \"radii.full\" },\n },\n rounded: {\n item: { \"--indicator-rounded\": \"radii.l2\" },\n },\n square: {\n item: { \"--indicator-rounded\": \"radii.0\" },\n },\n },\n },\n\n sizes: {\n base: {\n item: {\n _last: {\n \"& [data-content]\": { pb: 0 },\n },\n },\n },\n sm: {\n content: { gap: \"1\", pb: \"8\" },\n description: { fontSize: \"xs\" },\n item: { gap: \"3\" },\n root: {\n \"--indicator-size\": \"sizes.3\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.0.5\",\n },\n title: { fontSize: \"sm\" },\n },\n md: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.5\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n lg: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.7\",\n \"--separator-gap\": \"spaces.2.5\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n xl: {\n content: { gap: \"2\", pb: \"12\" },\n description: { fontSize: \"md\" },\n item: { gap: \"5\" },\n root: {\n \"--indicator-size\": \"sizes.8\",\n \"--separator-gap\": \"spaces.3\",\n \"--separator-width\": \"sizes.1.5\",\n },\n title: { fontSize: \"lg\" },\n },\n },\n\n defaultProps: {\n size: \"md\",\n align: \"start\",\n shape: \"circle\",\n },\n})\n\nexport type TimelineStyle = typeof timelineStyle\n"],"mappings":";;;;AAEA,MAAa,gBAAgBA,wCAAyB;CACpD,MAAM;EACJ,WAAW;GACT,WAAW;GACX,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ;IACN,mBACE;IACF,SAAS;IACT,GAAG;IACH,iBAAiB;IACjB,kBACE;IACF,MAAM;IACN,UAAU;IACX;GACF;EACD,SAAS;GACP,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,aAAa,EACX,OAAO,YACR;EACD,WAAW;GACT,YAAY;GACZ,SAAS;GACT,OAAO;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,YAAY;GACZ,UAAU;GACV,SAAS;GACV;EACD,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,OAAO,EACL,sBAAsB,EACpB,QAAQ,EAAE,SAAS,QAAQ,EAC5B,EACF;GACF;EACD,MAAM;GACJ,oBAAoB;GACpB,sBAAsB;GACtB,qBAAqB;GACrB,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,OAAO;GACL,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;GACb;EACF;CAED,OAAO;EAML,OAAO;GACL,QAAQ;IACN,SAAS;KACP,mBAAmB,EAAE,YAAY,YAAY;KAC7C,MAAM;KACP;IACD,MAAM;KACJ,yCAAyC,EACvC,8CAA8C,EAC5C,QAAQ;MAAE,SAAS;MAAS,MAAM;MAAK,EACxC,EACF;KACD,+CAA+C,EAC7C,SAAS;MAAE,SAAS;MAAS,MAAM;MAAK,EACzC;KACF;IACF;GACD,KAAK,EACH,S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EAAE,UAAU,MAAM;GAC1B;EACF;CAED,cAAc;EACZ,MAAM;EACN,OAAO;EACP,OAAO;EACR;CACF,CAAC"}
1
+ {"version":3,"file":"timeline.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/timeline/timeline.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const timelineStyle = defineComponentSlotStyle({\n base: {\n connector: {\n alignSelf: \"stretch\",\n position: \"relative\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _after: {\n borderInlineStart:\n \"{separator-width} {separator-style, solid} {separator-color}\",\n display: \"block\",\n h: \"full\",\n insetBlockStart: \"calc({indicator-size} + {separator-gap})\",\n insetInlineStart:\n \"calc(({indicator-size} / 2) - ({separator-width} / 2))\",\n maxH: `calc(full - {indicator-size} - ({separator-gap} * 2))`,\n position: \"absolute\",\n },\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n description: {\n color: \"fg.muted\",\n },\n indicator: {\n alignItems: \"center\",\n boxSize: \"{indicator-size}\",\n color: \"{indicator-stroke}\",\n display: \"flex\",\n justifyContent: \"center\",\n lineHeight: \"{indicator-size}\",\n overflow: \"hidden\",\n rounded: \"{indicator-rounded}\",\n },\n item: {\n alignItems: \"flex-start\",\n display: \"flex\",\n flexShrink: \"0\",\n _last: {\n \"& [data-connector]\": {\n _after: { display: \"none\" },\n },\n },\n },\n root: {\n \"--indicator-fill\": \"transparent\",\n \"--indicator-stroke\": \"colorScheme.solid\",\n \"--separator-color\": \"colors.border\",\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n title: {\n alignItems: \"center\",\n display: \"flex\",\n fontWeight: \"medium\",\n gap: \"1\",\n lineHeight: \"{indicator-size}\",\n },\n },\n\n props: {\n /**\n * The alignment of the timeline.\n *\n * @default 'start'\n */\n align: {\n center: {\n content: {\n \"&:first-of-type\": { alignItems: \"flex-end\" },\n flex: \"1\",\n },\n item: {\n \"&:has(> [data-content]:first-of-type)\": {\n \"&:not(:has(> [data-content]:last-of-type))\": {\n _after: { display: \"block\", flex: \"1\" },\n },\n },\n \"&:not(:has(> [data-content]:first-of-type))\": {\n _before: { display: \"block\", flex: \"1\" },\n },\n },\n },\n end: {\n content: { alignItems: \"flex-end\" },\n },\n start: {\n content: { alignItems: \"flex-start\" },\n },\n },\n /**\n * If `true`, the timeline will be attached.\n *\n * @default false\n */\n attached: {\n true: {\n item: {\n \"--separator-gap\": \"0px\",\n },\n },\n },\n /**\n * The shape of the timeline.\n *\n * @default 'circle'\n */\n shape: {\n circle: {\n item: { \"--indicator-rounded\": \"radii.full\" },\n },\n rounded: {\n item: { \"--indicator-rounded\": \"radii.l2\" },\n },\n square: {\n item: { \"--indicator-rounded\": \"radii.0\" },\n },\n },\n },\n\n variants: {\n number: { indicator: { layerStyle: \"solid\" } },\n plain: {},\n },\n\n sizes: {\n base: {\n item: {\n _last: {\n \"& [data-content]\": { pb: 0 },\n },\n },\n },\n sm: {\n content: { gap: \"1\", pb: \"8\" },\n description: { fontSize: \"xs\" },\n indicator: { fontSize: \"xs\" },\n item: { gap: \"3\" },\n root: {\n \"--indicator-size\": \"sizes.3\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.0.5\",\n },\n title: { fontSize: \"sm\" },\n },\n md: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n indicator: { fontSize: \"sm\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.5\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n lg: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n indicator: { fontSize: \"md\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.7\",\n \"--separator-gap\": \"spaces.2.5\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n xl: {\n content: { gap: \"2\", pb: \"12\" },\n description: { fontSize: \"md\" },\n indicator: { fontSize: \"md\" },\n item: { gap: \"5\" },\n root: {\n \"--indicator-size\": \"sizes.8\",\n \"--separator-gap\": \"spaces.3\",\n \"--separator-width\": \"sizes.1.5\",\n },\n title: { fontSize: \"lg\" },\n },\n },\n\n defaultProps: {\n size: \"md\",\n align: \"start\",\n shape: \"circle\",\n },\n})\n\nexport type TimelineStyle = typeof timelineStyle\n"],"mappings":";;;;AAEA,MAAa,gBAAgBA,wCAAyB;CACpD,MAAM;EACJ,WAAW;GACT,WAAW;GACX,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ;IACN,mBACE;IACF,SAAS;IACT,GAAG;IACH,iBAAiB;IACjB,kBACE;IACF,MAAM;IACN,UAAU;IACX;GACF;EACD,SAAS;GACP,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,aAAa,EACX,OAAO,YACR;EACD,WAAW;GACT,YAAY;GACZ,SAAS;GACT,OAAO;GACP,SAAS;GACT,gBAAgB;GAChB,YAAY;GACZ,UAAU;GACV,SAAS;GACV;EACD,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,OAAO,EACL,sBAAsB,EACpB,QAAQ,EAAE,SAAS,QAAQ,EAC5B,EACF;GACF;EACD,MAAM;GACJ,oBAAoB;GACpB,sBAAsB;GACtB,qBAAqB;GACrB,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,OAAO;GACL,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAAY;GACb;EACF;CAED,OAAO;EAML,OAAO;GACL,QAAQ;IACN,SAAS;KACP,mBAAmB,EAAE,YAAY,YAAY;KAC7C,MAAM;KACP;IACD,MAAM;KACJ,yCAAyC,EACvC,8CAA8C,EAC5C,QAAQ;MAAE,SAAS;MAAS,MAAM;MAAK,EACxC,EACF;KACD,+CAA+C,EAC7C,SAAS;MAAE,SAAS;MAAS,MAAM;MAAK,EACzC;KACF;IACF;GACD,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B;EACD,IAAI;GACF,SAAS;IAAE,KAAK;IAAK,IAAI;IAAM;GAC/B,aAAa,EAAE,UAAU,MAAM;GAC/B,WAAW,EAAE,UAAU,MAAM;GAC7B,MAAM,EAAE,KAAK,KAAK;GAClB,MAAM;IACJ,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACtB;GACD,OAAO,EAAE,UAAU,MAAM;GAC1B;EACF;CAED,cAAc;EACZ,MAAM;EACN,OAAO;EACP,OAAO;EACR;CACF,CAAC"}
@@ -5,6 +5,7 @@ import { varAttr } from "../../core/system/var.js";
5
5
  import { styled } from "../../core/system/factory.js";
6
6
  import { createSlotComponent } from "../../core/components/create-component.js";
7
7
  import "../../core/index.js";
8
+ import { useValue } from "../../hooks/use-value/index.js";
8
9
  import { timelineStyle } from "./timeline.style.js";
9
10
  import { useMemo } from "react";
10
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -16,8 +17,9 @@ const { ComponentContext, PropsContext: TimelinePropsContext, useComponentContex
16
17
  *
17
18
  * @see https://yamada-ui.com/docs/components/timeline
18
19
  */
19
- const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }) => {
20
+ const TimelineRoot = withProvider(({ variant: variantProp, children, index = -1, items = [], ...rest }) => {
20
21
  const context = useMemo(() => ({ index }), [index]);
22
+ const variant = useValue(variantProp);
21
23
  const computedChildren = useMemo(() => {
22
24
  if (children) return children;
23
25
  return items.map(({ align = "start", content, description, indicator, title, connectorProps, contentProps, descriptionProps, indicatorProps, titleProps, ...rest$1 }, index$1) => {
@@ -26,7 +28,7 @@ const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }
26
28
  ...connectorProps,
27
29
  children: /* @__PURE__ */ jsx(TimelineIndicator, {
28
30
  ...indicatorProps,
29
- children: indicator
31
+ children: indicator ?? (variant === "number" ? index$1 + 1 : void 0)
30
32
  })
31
33
  }),
32
34
  content: /* @__PURE__ */ jsx(TimelineContent, {
@@ -46,7 +48,11 @@ const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }
46
48
  children: [align === "start" ? children$1.connector : children$1.content, align === "start" ? children$1.content : children$1.connector]
47
49
  }, index$1);
48
50
  });
49
- }, [items, children]);
51
+ }, [
52
+ children,
53
+ items,
54
+ variant
55
+ ]);
50
56
  return /* @__PURE__ */ jsx(ComponentContext, {
51
57
  value: context,
52
58
  children: /* @__PURE__ */ jsx(styled.ul, {
@@ -54,7 +60,7 @@ const TimelineRoot = withProvider(({ children, index = -1, items = [], ...rest }
54
60
  children: computedChildren
55
61
  })
56
62
  });
57
- }, "root")(void 0, ({ indicatorFill, indicatorSize, indicatorStroke, separatorColor, separatorGap, separatorStyle, separatorWidth, ...rest }) => ({
63
+ }, "root", { transferProps: ["variant"] })(void 0, ({ indicatorFill, indicatorSize, indicatorStroke, separatorColor, separatorGap, separatorStyle, separatorWidth, ...rest }) => ({
58
64
  "--indicator-fill": varAttr(indicatorFill, "colors"),
59
65
  "--indicator-size": varAttr(indicatorSize, "sizes"),
60
66
  "--indicator-stroke": varAttr(indicatorStroke, "colors"),
@@ -1 +1 @@
1
- {"version":3,"file":"timeline.js","names":["rest","children","index"],"sources":["../../../../src/components/timeline/timeline.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { TimelineStyle } from \"./timeline.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled, varAttr } from \"../../core\"\nimport { dataAttr, isUndefined } from \"../../utils\"\nimport { timelineStyle } from \"./timeline.style\"\n\nexport interface TimelineItem extends Omit<\n TimelineItemProps,\n \"content\" | \"title\"\n> {\n align?: \"end\" | \"start\"\n content?: ReactNode\n description?: ReactNode\n indicator?: ReactNode\n title?: ReactNode\n connectorProps?: TimelineConnectorProps\n contentProps?: TimelineContentProps\n descriptionProps?: TimelineDescriptionProps\n indicatorProps?: TimelineIndicatorProps\n titleProps?: TimelineTitleProps\n}\n\ninterface ComponentContext extends Pick<TimelineRootProps, \"index\"> {}\n\nexport interface TimelineRootProps\n extends HTMLStyledProps<\"ul\">, ThemeProps<TimelineStyle> {\n /**\n * The index of the active timeline item.\n */\n index?: number\n /**\n * The fill color of the indicator.\n */\n indicatorFill?: CSSProps[\"bg\"]\n /**\n * The size of the indicator.\n */\n indicatorSize?: CSSProps[\"boxSize\"]\n /**\n * The stroke color of the indicator.\n */\n indicatorStroke?: CSSProps[\"color\"]\n /**\n * If provided, generate timeline components based on items.\n */\n items?: TimelineItem[]\n /**\n * The color of the separator.\n */\n separatorColor?: CSSProps[\"color\"]\n /**\n * The gap of the separator.\n */\n separatorGap?: CSSProps[\"gap\"]\n /**\n * The style of the separator.\n */\n separatorStyle?: CSSProps[\"borderStyle\"]\n /**\n * The width of the separator.\n */\n separatorWidth?: CSSProps[\"width\"]\n}\n\nconst {\n ComponentContext,\n PropsContext: TimelinePropsContext,\n useComponentContext,\n usePropsContext: useTimelinePropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TimelineRootProps, TimelineStyle, ComponentContext>(\n \"timeline\",\n timelineStyle,\n)\n\nexport { TimelinePropsContext, useTimelinePropsContext }\n\n/**\n * `Timeline` is a component that is used to display a list of events in chronological order.\n *\n * @see https://yamada-ui.com/docs/components/timeline\n */\nexport const TimelineRoot = withProvider(\n ({ children, index = -1, items = [], ...rest }) => {\n const context = useMemo(() => ({ index }), [index])\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items.map(\n (\n {\n align = \"start\",\n content,\n description,\n indicator,\n title,\n connectorProps,\n contentProps,\n descriptionProps,\n indicatorProps,\n titleProps,\n ...rest\n },\n index,\n ) => {\n const children = {\n connector: (\n <TimelineConnector {...connectorProps}>\n <TimelineIndicator {...indicatorProps}>\n {indicator}\n </TimelineIndicator>\n </TimelineConnector>\n ),\n content: (\n <TimelineContent {...contentProps}>\n {content ?? (\n <>\n <TimelineTitle {...titleProps}>{title}</TimelineTitle>\n <TimelineDescription {...descriptionProps}>\n {description}\n </TimelineDescription>\n </>\n )}\n </TimelineContent>\n ),\n }\n\n return (\n <TimelineItem key={index} index={index} {...rest}>\n {align === \"start\" ? children.connector : children.content}\n {align === \"start\" ? children.content : children.connector}\n </TimelineItem>\n )\n },\n )\n }, [items, children])\n\n return (\n <ComponentContext value={context}>\n <styled.ul {...rest}>{computedChildren}</styled.ul>\n </ComponentContext>\n )\n },\n \"root\",\n)(\n undefined,\n ({\n indicatorFill,\n indicatorSize,\n indicatorStroke,\n separatorColor,\n separatorGap,\n separatorStyle,\n separatorWidth,\n ...rest\n }) => ({\n \"--indicator-fill\": varAttr(indicatorFill, \"colors\"),\n \"--indicator-size\": varAttr(indicatorSize, \"sizes\"),\n \"--indicator-stroke\": varAttr(indicatorStroke, \"colors\"),\n \"--separator-color\": varAttr(separatorColor, \"colors\"),\n \"--separator-gap\": varAttr(separatorGap, \"spaces\"),\n \"--separator-style\": varAttr(separatorStyle),\n \"--separator-width\": varAttr(separatorWidth, \"sizes\"),\n ...rest,\n }),\n)\n\nexport interface TimelineItemProps extends HTMLStyledProps<\"li\"> {\n /**\n * The index of the timeline item.\n */\n index?: number\n}\n\nexport const TimelineItem = withContext<\"li\", TimelineItemProps>(\"li\", \"item\")(\n undefined,\n ({ index, ...rest }) => {\n const { index: currentIndex } = useComponentContext()\n const active =\n !isUndefined(index) && !isUndefined(currentIndex) && index <= currentIndex\n\n return {\n ...rest,\n \"data-active\": dataAttr(active),\n \"data-index\": index,\n }\n },\n)\n\nexport interface TimelineConnectorProps extends HTMLStyledProps {}\n\nexport const TimelineConnector = withContext<\"div\", TimelineConnectorProps>(\n \"div\",\n \"connector\",\n)({ \"data-connector\": \"\" })\n\nexport interface TimelineIndicatorProps extends HTMLStyledProps {}\n\nconst TimelineIcon = styled(\"div\", {\n base: {\n bg: \"{indicator-fill}\",\n borderColor: \"{indicator-stroke}\",\n borderWidth: \"{separator-width}\",\n boxSize: \"full\",\n rounded: \"{indicator-rounded}\",\n },\n})\n\nexport const TimelineIndicator = withContext<\"div\", TimelineIndicatorProps>(\n \"div\",\n \"indicator\",\n)(undefined, ({ children = <TimelineIcon />, ...rest }) => ({\n children,\n ...rest,\n}))\n\nexport interface TimelineContentProps extends HTMLStyledProps {}\n\nexport const TimelineContent = withContext<\"div\", TimelineContentProps>(\n \"div\",\n \"content\",\n)({ \"data-content\": \"\" })\n\nexport interface TimelineTitleProps extends HTMLStyledProps<\"h3\"> {}\n\nexport const TimelineTitle = withContext<\"h3\", TimelineTitleProps>(\n \"h3\",\n \"title\",\n)()\n\nexport interface TimelineDescriptionProps extends HTMLStyledProps<\"p\"> {}\n\nexport const TimelineDescription = withContext<\"p\", TimelineDescriptionProps>(\n \"p\",\n \"description\",\n)()\n"],"mappings":";;;;;;;;;;;;AAoEA,MAAM,EACJ,kBACA,cAAc,sBACd,qBACA,iBAAiB,yBACjB,aACA,iBACE,oBACF,YACA,cACD;;;;;;AASD,MAAa,eAAe,cACzB,EAAE,UAAU,QAAQ,IAAI,QAAQ,EAAE,EAAE,GAAG,WAAW;CACjD,MAAM,UAAU,eAAe,EAAE,OAAO,GAAG,CAAC,MAAM,CAAC;CACnD,MAAM,mBAAmB,cAAc;AACrC,MAAI,SAAU,QAAO;AAErB,SAAO,MAAM,KAET,EACE,QAAQ,SACR,SACA,aACA,WACA,OACA,gBACA,cACA,kBACA,gBACA,YACA,GAAGA,UAEL,YACG;GACH,MAAMC,aAAW;IACf,WACE,oBAAC;KAAkB,GAAI;eACrB,oBAAC;MAAkB,GAAI;gBACpB;OACiB;MACF;IAEtB,SACE,oBAAC;KAAgB,GAAI;eAClB,WACC,8CACE,oBAAC;MAAc,GAAI;gBAAa;OAAsB,EACtD,oBAAC;MAAoB,GAAI;gBACtB;OACmB,IACrB;MAEW;IAErB;AAED,UACE,qBAAC;IAAyB,OAAOC;IAAO,GAAIF;eACzC,UAAU,UAAUC,WAAS,YAAYA,WAAS,SAClD,UAAU,UAAUA,WAAS,UAAUA,WAAS;MAFhCC,QAGJ;IAGpB;IACA,CAAC,OAAO,SAAS,CAAC;AAErB,QACE,oBAAC;EAAiB,OAAO;YACvB,oBAAC,OAAO;GAAG,GAAI;aAAO;IAA6B;GAClC;GAGvB,OACD,CACC,SACC,EACC,eACA,eACA,iBACA,gBACA,cACA,gBACA,gBACA,GAAG,YACE;CACL,oBAAoB,QAAQ,eAAe,SAAS;CACpD,oBAAoB,QAAQ,eAAe,QAAQ;CACnD,sBAAsB,QAAQ,iBAAiB,SAAS;CACxD,qBAAqB,QAAQ,gBAAgB,SAAS;CACtD,mBAAmB,QAAQ,cAAc,SAAS;CAClD,qBAAqB,QAAQ,eAAe;CAC5C,qBAAqB,QAAQ,gBAAgB,QAAQ;CACrD,GAAG;CACJ,EACF;AASD,MAAa,eAAe,YAAqC,MAAM,OAAO,CAC5E,SACC,EAAE,OAAO,GAAG,WAAW;CACtB,MAAM,EAAE,OAAO,iBAAiB,qBAAqB;CACrD,MAAM,SACJ,gCAAa,MAAM,IAAI,gCAAa,aAAa,IAAI,SAAS;AAEhE,QAAO;EACL,GAAG;EACH,2CAAwB,OAAO;EAC/B,cAAc;EACf;EAEJ;AAID,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,EAAE,kBAAkB,IAAI,CAAC;AAI3B,MAAM,eAAe,OAAO,OAAO,EACjC,MAAM;CACJ,IAAI;CACJ,aAAa;CACb,aAAa;CACb,SAAS;CACT,SAAS;CACV,EACF,CAAC;AAEF,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,SAAY,EAAE,WAAW,oBAAC,iBAAe,EAAE,GAAG,YAAY;CAC1D;CACA,GAAG;CACJ,EAAE;AAIH,MAAa,kBAAkB,YAC7B,OACA,UACD,CAAC,EAAE,gBAAgB,IAAI,CAAC;AAIzB,MAAa,gBAAgB,YAC3B,MACA,QACD,EAAE;AAIH,MAAa,sBAAsB,YACjC,KACA,cACD,EAAE"}
1
+ {"version":3,"file":"timeline.js","names":["rest","children","index"],"sources":["../../../../src/components/timeline/timeline.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { TimelineStyle } from \"./timeline.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled, varAttr } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { dataAttr, isUndefined } from \"../../utils\"\nimport { timelineStyle } from \"./timeline.style\"\n\nexport interface TimelineItem extends Omit<\n TimelineItemProps,\n \"content\" | \"title\"\n> {\n align?: \"end\" | \"start\"\n content?: ReactNode\n description?: ReactNode\n indicator?: ReactNode\n title?: ReactNode\n connectorProps?: TimelineConnectorProps\n contentProps?: TimelineContentProps\n descriptionProps?: TimelineDescriptionProps\n indicatorProps?: TimelineIndicatorProps\n titleProps?: TimelineTitleProps\n}\n\ninterface ComponentContext extends Pick<TimelineRootProps, \"index\"> {}\n\nexport interface TimelineRootProps\n extends HTMLStyledProps<\"ul\">, ThemeProps<TimelineStyle> {\n /**\n * The index of the active timeline item.\n */\n index?: number\n /**\n * The fill color of the indicator.\n */\n indicatorFill?: CSSProps[\"bg\"]\n /**\n * The size of the indicator.\n */\n indicatorSize?: CSSProps[\"boxSize\"]\n /**\n * The stroke color of the indicator.\n */\n indicatorStroke?: CSSProps[\"color\"]\n /**\n * If provided, generate timeline components based on items.\n */\n items?: TimelineItem[]\n /**\n * The color of the separator.\n */\n separatorColor?: CSSProps[\"color\"]\n /**\n * The gap of the separator.\n */\n separatorGap?: CSSProps[\"gap\"]\n /**\n * The style of the separator.\n */\n separatorStyle?: CSSProps[\"borderStyle\"]\n /**\n * The width of the separator.\n */\n separatorWidth?: CSSProps[\"width\"]\n}\n\nconst {\n ComponentContext,\n PropsContext: TimelinePropsContext,\n useComponentContext,\n usePropsContext: useTimelinePropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<TimelineRootProps, TimelineStyle, ComponentContext>(\n \"timeline\",\n timelineStyle,\n)\n\nexport { TimelinePropsContext, useTimelinePropsContext }\n\n/**\n * `Timeline` is a component that is used to display a list of events in chronological order.\n *\n * @see https://yamada-ui.com/docs/components/timeline\n */\nexport const TimelineRoot = withProvider(\n ({ variant: variantProp, children, index = -1, items = [], ...rest }) => {\n const context = useMemo(() => ({ index }), [index])\n const variant = useValue(variantProp)\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items.map(\n (\n {\n align = \"start\",\n content,\n description,\n indicator,\n title,\n connectorProps,\n contentProps,\n descriptionProps,\n indicatorProps,\n titleProps,\n ...rest\n },\n index,\n ) => {\n const children = {\n connector: (\n <TimelineConnector {...connectorProps}>\n <TimelineIndicator {...indicatorProps}>\n {indicator ?? (variant === \"number\" ? index + 1 : undefined)}\n </TimelineIndicator>\n </TimelineConnector>\n ),\n content: (\n <TimelineContent {...contentProps}>\n {content ?? (\n <>\n <TimelineTitle {...titleProps}>{title}</TimelineTitle>\n <TimelineDescription {...descriptionProps}>\n {description}\n </TimelineDescription>\n </>\n )}\n </TimelineContent>\n ),\n }\n\n return (\n <TimelineItem key={index} index={index} {...rest}>\n {align === \"start\" ? children.connector : children.content}\n {align === \"start\" ? children.content : children.connector}\n </TimelineItem>\n )\n },\n )\n }, [children, items, variant])\n\n return (\n <ComponentContext value={context}>\n <styled.ul {...rest}>{computedChildren}</styled.ul>\n </ComponentContext>\n )\n },\n \"root\",\n { transferProps: [\"variant\"] },\n)(\n undefined,\n ({\n indicatorFill,\n indicatorSize,\n indicatorStroke,\n separatorColor,\n separatorGap,\n separatorStyle,\n separatorWidth,\n ...rest\n }) => ({\n \"--indicator-fill\": varAttr(indicatorFill, \"colors\"),\n \"--indicator-size\": varAttr(indicatorSize, \"sizes\"),\n \"--indicator-stroke\": varAttr(indicatorStroke, \"colors\"),\n \"--separator-color\": varAttr(separatorColor, \"colors\"),\n \"--separator-gap\": varAttr(separatorGap, \"spaces\"),\n \"--separator-style\": varAttr(separatorStyle),\n \"--separator-width\": varAttr(separatorWidth, \"sizes\"),\n ...rest,\n }),\n)\n\nexport interface TimelineItemProps extends HTMLStyledProps<\"li\"> {\n /**\n * The index of the timeline item.\n */\n index?: number\n}\n\nexport const TimelineItem = withContext<\"li\", TimelineItemProps>(\"li\", \"item\")(\n undefined,\n ({ index, ...rest }) => {\n const { index: currentIndex } = useComponentContext()\n const active =\n !isUndefined(index) && !isUndefined(currentIndex) && index <= currentIndex\n\n return {\n ...rest,\n \"data-active\": dataAttr(active),\n \"data-index\": index,\n }\n },\n)\n\nexport interface TimelineConnectorProps extends HTMLStyledProps {}\n\nexport const TimelineConnector = withContext<\"div\", TimelineConnectorProps>(\n \"div\",\n \"connector\",\n)({ \"data-connector\": \"\" })\n\nexport interface TimelineIndicatorProps extends HTMLStyledProps {}\n\nconst TimelineIcon = styled(\"div\", {\n base: {\n bg: \"{indicator-fill}\",\n borderColor: \"{indicator-stroke}\",\n borderWidth: \"{separator-width}\",\n boxSize: \"full\",\n rounded: \"{indicator-rounded}\",\n },\n})\n\nexport const TimelineIndicator = withContext<\"div\", TimelineIndicatorProps>(\n \"div\",\n \"indicator\",\n)(undefined, ({ children = <TimelineIcon />, ...rest }) => ({\n children,\n ...rest,\n}))\n\nexport interface TimelineContentProps extends HTMLStyledProps {}\n\nexport const TimelineContent = withContext<\"div\", TimelineContentProps>(\n \"div\",\n \"content\",\n)({ \"data-content\": \"\" })\n\nexport interface TimelineTitleProps extends HTMLStyledProps<\"h3\"> {}\n\nexport const TimelineTitle = withContext<\"h3\", TimelineTitleProps>(\n \"h3\",\n \"title\",\n)()\n\nexport interface TimelineDescriptionProps extends HTMLStyledProps<\"p\"> {}\n\nexport const TimelineDescription = withContext<\"p\", TimelineDescriptionProps>(\n \"p\",\n \"description\",\n)()\n"],"mappings":";;;;;;;;;;;;;AAqEA,MAAM,EACJ,kBACA,cAAc,sBACd,qBACA,iBAAiB,yBACjB,aACA,iBACE,oBACF,YACA,cACD;;;;;;AASD,MAAa,eAAe,cACzB,EAAE,SAAS,aAAa,UAAU,QAAQ,IAAI,QAAQ,EAAE,EAAE,G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;CACtB,MAAM,EAAE,OAAO,iBAAiB,qBAAqB;CACrD,MAAM,SACJ,gCAAa,MAAM,IAAI,gCAAa,aAAa,IAAI,SAAS;AAEhE,QAAO;EACL,GAAG;EACH,2CAAwB,OAAO;EAC/B,cAAc;EACf;EAEJ;AAID,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,EAAE,kBAAkB,IAAI,CAAC;AAI3B,MAAM,eAAe,OAAO,OAAO,EACjC,MAAM;CACJ,IAAI;CACJ,aAAa;CACb,aAAa;CACb,SAAS;CACT,SAAS;CACV,EACF,CAAC;AAEF,MAAa,oBAAoB,YAC/B,OACA,YACD,CAAC,SAAY,EAAE,WAAW,oBAAC,iBAAe,EAAE,GAAG,YAAY;CAC1D;CACA,GAAG;CACJ,EAAE;AAIH,MAAa,kBAAkB,YAC7B,OACA,UACD,CAAC,EAAE,gBAAgB,IAAI,CAAC;AAIzB,MAAa,gBAAgB,YAC3B,MACA,QACD,EAAE;AAIH,MAAa,sBAAsB,YACjC,KACA,cACD,EAAE"}
@@ -30,7 +30,6 @@ const timelineStyle = defineComponentSlotStyle({
30
30
  boxSize: "{indicator-size}",
31
31
  color: "{indicator-stroke}",
32
32
  display: "flex",
33
- fontWeight: "medium",
34
33
  justifyContent: "center",
35
34
  lineHeight: "{indicator-size}",
36
35
  overflow: "hidden",
@@ -86,6 +85,10 @@ const timelineStyle = defineComponentSlotStyle({
86
85
  square: { item: { "--indicator-rounded": "radii.0" } }
87
86
  }
88
87
  },
88
+ variants: {
89
+ number: { indicator: { layerStyle: "solid" } },
90
+ plain: {}
91
+ },
89
92
  sizes: {
90
93
  base: { item: { _last: { "& [data-content]": { pb: 0 } } } },
91
94
  sm: {
@@ -94,6 +97,7 @@ const timelineStyle = defineComponentSlotStyle({
94
97
  pb: "8"
95
98
  },
96
99
  description: { fontSize: "xs" },
100
+ indicator: { fontSize: "xs" },
97
101
  item: { gap: "3" },
98
102
  root: {
99
103
  "--indicator-size": "sizes.3",
@@ -108,6 +112,7 @@ const timelineStyle = defineComponentSlotStyle({
108
112
  pb: "10"
109
113
  },
110
114
  description: { fontSize: "sm" },
115
+ indicator: { fontSize: "sm" },
111
116
  item: { gap: "4" },
112
117
  root: {
113
118
  "--indicator-size": "sizes.5",
@@ -122,6 +127,7 @@ const timelineStyle = defineComponentSlotStyle({
122
127
  pb: "10"
123
128
  },
124
129
  description: { fontSize: "sm" },
130
+ indicator: { fontSize: "md" },
125
131
  item: { gap: "4" },
126
132
  root: {
127
133
  "--indicator-size": "sizes.7",
@@ -136,6 +142,7 @@ const timelineStyle = defineComponentSlotStyle({
136
142
  pb: "12"
137
143
  },
138
144
  description: { fontSize: "md" },
145
+ indicator: { fontSize: "md" },
139
146
  item: { gap: "5" },
140
147
  root: {
141
148
  "--indicator-size": "sizes.8",
@@ -1 +1 @@
1
- {"version":3,"file":"timeline.style.js","names":[],"sources":["../../../../src/components/timeline/timeline.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const timelineStyle = defineComponentSlotStyle({\n base: {\n connector: {\n alignSelf: \"stretch\",\n position: \"relative\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _after: {\n borderInlineStart:\n \"{separator-width} {separator-style, solid} {separator-color}\",\n display: \"block\",\n h: \"full\",\n insetBlockStart: \"calc({indicator-size} + {separator-gap})\",\n insetInlineStart:\n \"calc(({indicator-size} / 2) - ({separator-width} / 2))\",\n maxH: `calc(full - {indicator-size} - ({separator-gap} * 2))`,\n position: \"absolute\",\n },\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n description: {\n color: \"fg.muted\",\n },\n indicator: {\n alignItems: \"center\",\n boxSize: \"{indicator-size}\",\n color: \"{indicator-stroke}\",\n display: \"flex\",\n fontWeight: \"medium\",\n justifyContent: \"center\",\n lineHeight: \"{indicator-size}\",\n overflow: \"hidden\",\n rounded: \"{indicator-rounded}\",\n },\n item: {\n alignItems: \"flex-start\",\n display: \"flex\",\n flexShrink: \"0\",\n _last: {\n \"& [data-connector]\": {\n _after: { display: \"none\" },\n },\n },\n },\n root: {\n \"--indicator-fill\": \"transparent\",\n \"--indicator-stroke\": \"colorScheme.solid\",\n \"--separator-color\": \"colors.border\",\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n title: {\n alignItems: \"center\",\n display: \"flex\",\n fontWeight: \"medium\",\n gap: \"1\",\n lineHeight: \"{indicator-size}\",\n },\n },\n\n props: {\n /**\n * The alignment of the timeline.\n *\n * @default 'start'\n */\n align: {\n center: {\n content: {\n \"&:first-of-type\": { alignItems: \"flex-end\" },\n flex: \"1\",\n },\n item: {\n \"&:has(> [data-content]:first-of-type)\": {\n \"&:not(:has(> [data-content]:last-of-type))\": {\n _after: { display: \"block\", flex: \"1\" },\n },\n },\n \"&:not(:has(> [data-content]:first-of-type))\": {\n _before: { display: \"block\", flex: \"1\" },\n },\n },\n },\n end: {\n content: { alignItems: \"flex-end\" },\n },\n start: {\n content: { alignItems: \"flex-start\" },\n },\n },\n /**\n * If `true`, the timeline will be attached.\n *\n * @default false\n */\n attached: {\n true: {\n item: {\n \"--separator-gap\": \"0px\",\n },\n },\n },\n /**\n * The shape of the timeline.\n *\n * @default 'circle'\n */\n shape: {\n circle: {\n item: { \"--indicator-rounded\": \"radii.full\" },\n },\n rounded: {\n item: { \"--indicator-rounded\": \"radii.l2\" },\n },\n square: {\n item: { \"--indicator-rounded\": \"radii.0\" },\n },\n },\n },\n\n sizes: {\n base: {\n item: {\n _last: {\n \"& [data-content]\": { pb: 0 },\n },\n },\n },\n sm: {\n content: { gap: \"1\", pb: \"8\" },\n description: { fontSize: \"xs\" },\n item: { gap: \"3\" },\n root: {\n \"--indicator-size\": \"sizes.3\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.0.5\",\n },\n title: { fontSize: \"sm\" },\n },\n md: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.5\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n lg: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.7\",\n \"--separator-gap\": \"spaces.2.5\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n xl: {\n content: { gap: \"2\", pb: \"12\" },\n description: { fontSize: \"md\" },\n item: { gap: \"5\" },\n root: {\n \"--indicator-size\": \"sizes.8\",\n \"--separator-gap\": \"spaces.3\",\n \"--separator-width\": \"sizes.1.5\",\n },\n title: { fontSize: \"lg\" },\n },\n },\n\n defaultProps: {\n size: \"md\",\n align: \"start\",\n shape: \"circle\",\n },\n})\n\nexport type TimelineStyle = typeof timelineStyle\n"],"mappings":";;;;AAEA,MAAa,gBAAgB,yBAAyB;CACpD,MAAM;EACJ,WAAW;GACT,WAAW;GACX,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ;IACN,mBACE;IACF,SAAS;IACT,GAAG;IACH,iBAAiB;IACjB,kBACE;IACF,MAAM;IACN,UAAU;IACX;GACF;EACD,SAAS;GACP,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,aAAa,EACX,OAAO,YACR;EACD,WAAW;GACT,YAAY;GACZ,SAAS;GACT,OAAO;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,YAAY;GACZ,UAAU;GACV,SAAS;GACV;EACD,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,OAAO,EACL,sBAAsB,EACpB,QAAQ,EAAE,SAAS,QAAQ,EAC5B,EACF;GACF;EACD,MAAM;GACJ,oBAAoB;GACpB,sBAAsB;GACtB,qBAAqB;GACrB,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,OAAO;GACL,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GAC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KAAK,KAAK;GAClB,MAAM;IACJ,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACtB;GACD,OAAO,EAAE,UAAU,MAAM;GAC1B;EACD,IAAI;GACF,SAAS;IAAE,KAAK;IAAK,IAAI;IAAM;GAC/B,aAAa,EAAE,UAAU,MAAM;GAC/B,MAAM,EAAE,KAAK,KAAK;GAClB,MAAM;IACJ,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACtB;GACD,OAAO,EAAE,UAAU,MAAM;GAC1B;EACF;CAED,cAAc;EACZ,MAAM;EACN,OAAO;EACP,OAAO;EACR;CACF,CAAC"}
1
+ {"version":3,"file":"timeline.style.js","names":[],"sources":["../../../../src/components/timeline/timeline.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const timelineStyle = defineComponentSlotStyle({\n base: {\n connector: {\n alignSelf: \"stretch\",\n position: \"relative\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _after: {\n borderInlineStart:\n \"{separator-width} {separator-style, solid} {separator-color}\",\n display: \"block\",\n h: \"full\",\n insetBlockStart: \"calc({indicator-size} + {separator-gap})\",\n insetInlineStart:\n \"calc(({indicator-size} / 2) - ({separator-width} / 2))\",\n maxH: `calc(full - {indicator-size} - ({separator-gap} * 2))`,\n position: \"absolute\",\n },\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n description: {\n color: \"fg.muted\",\n },\n indicator: {\n alignItems: \"center\",\n boxSize: \"{indicator-size}\",\n color: \"{indicator-stroke}\",\n display: \"flex\",\n justifyContent: \"center\",\n lineHeight: \"{indicator-size}\",\n overflow: \"hidden\",\n rounded: \"{indicator-rounded}\",\n },\n item: {\n alignItems: \"flex-start\",\n display: \"flex\",\n flexShrink: \"0\",\n _last: {\n \"& [data-connector]\": {\n _after: { display: \"none\" },\n },\n },\n },\n root: {\n \"--indicator-fill\": \"transparent\",\n \"--indicator-stroke\": \"colorScheme.solid\",\n \"--separator-color\": \"colors.border\",\n display: \"flex\",\n flexDirection: \"column\",\n w: \"full\",\n },\n title: {\n alignItems: \"center\",\n display: \"flex\",\n fontWeight: \"medium\",\n gap: \"1\",\n lineHeight: \"{indicator-size}\",\n },\n },\n\n props: {\n /**\n * The alignment of the timeline.\n *\n * @default 'start'\n */\n align: {\n center: {\n content: {\n \"&:first-of-type\": { alignItems: \"flex-end\" },\n flex: \"1\",\n },\n item: {\n \"&:has(> [data-content]:first-of-type)\": {\n \"&:not(:has(> [data-content]:last-of-type))\": {\n _after: { display: \"block\", flex: \"1\" },\n },\n },\n \"&:not(:has(> [data-content]:first-of-type))\": {\n _before: { display: \"block\", flex: \"1\" },\n },\n },\n },\n end: {\n content: { alignItems: \"flex-end\" },\n },\n start: {\n content: { alignItems: \"flex-start\" },\n },\n },\n /**\n * If `true`, the timeline will be attached.\n *\n * @default false\n */\n attached: {\n true: {\n item: {\n \"--separator-gap\": \"0px\",\n },\n },\n },\n /**\n * The shape of the timeline.\n *\n * @default 'circle'\n */\n shape: {\n circle: {\n item: { \"--indicator-rounded\": \"radii.full\" },\n },\n rounded: {\n item: { \"--indicator-rounded\": \"radii.l2\" },\n },\n square: {\n item: { \"--indicator-rounded\": \"radii.0\" },\n },\n },\n },\n\n variants: {\n number: { indicator: { layerStyle: \"solid\" } },\n plain: {},\n },\n\n sizes: {\n base: {\n item: {\n _last: {\n \"& [data-content]\": { pb: 0 },\n },\n },\n },\n sm: {\n content: { gap: \"1\", pb: \"8\" },\n description: { fontSize: \"xs\" },\n indicator: { fontSize: \"xs\" },\n item: { gap: \"3\" },\n root: {\n \"--indicator-size\": \"sizes.3\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.0.5\",\n },\n title: { fontSize: \"sm\" },\n },\n md: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n indicator: { fontSize: \"sm\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.5\",\n \"--separator-gap\": \"spaces.2\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n lg: {\n content: { gap: \"2\", pb: \"10\" },\n description: { fontSize: \"sm\" },\n indicator: { fontSize: \"md\" },\n item: { gap: \"4\" },\n root: {\n \"--indicator-size\": \"sizes.7\",\n \"--separator-gap\": \"spaces.2.5\",\n \"--separator-width\": \"sizes.1\",\n },\n title: { fontSize: \"md\" },\n },\n xl: {\n content: { gap: \"2\", pb: \"12\" },\n description: { fontSize: \"md\" },\n indicator: { fontSize: \"md\" },\n item: { gap: \"5\" },\n root: {\n \"--indicator-size\": \"sizes.8\",\n \"--separator-gap\": \"spaces.3\",\n \"--separator-width\": \"sizes.1.5\",\n },\n title: { fontSize: \"lg\" },\n },\n },\n\n defaultProps: {\n size: \"md\",\n align: \"start\",\n shape: \"circle\",\n },\n})\n\nexport type TimelineStyle = typeof timelineStyle\n"],"mappings":";;;;AAEA,MAAa,gBAAgB,yBAAyB;CACpD,MAAM;EACJ,WAAW;GACT,WAAW;GACX,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ;IACN,mBACE;IACF,SAAS;IACT,GAAG;IACH,iBAAiB;IACjB,kBACE;IACF,MAAM;IACN,UAAU;IACX;GACF;EACD,SAAS;GACP,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,aAAa,EACX,OAAO,YACR;EACD,WAAW;GACT,YAAY;GACZ,SAAS;GACT,OAAO;GACP,SAAS;GACT,gBAAgB;GAChB,YAAY;GACZ,UAAU;GACV,SAAS;GACV;EACD,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,OAAO,EACL,sBAAsB,EACpB,QAAQ,EAAE,SAAS,QAAQ,EAC5B,EACF;GACF;EACD,MAAM;GACJ,oBAAoB;GACpB,sBAAsB;GACtB,qBAAqB;GACrB,SAAS;GACT,eAAe;GACf,GAAG;GACJ;EACD,OAAO;GACL,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,YAA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;GACD,OAAO,EAAE,UAAU,MAAM;GAC1B;EACD,IAAI;GACF,SAAS;IAAE,KAAK;IAAK,IAAI;IAAM;GAC/B,aAAa,EAAE,UAAU,MAAM;GAC/B,WAAW,EAAE,UAAU,MAAM;GAC7B,MAAM,EAAE,KAAK,KAAK;GAClB,MAAM;IACJ,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACtB;GACD,OAAO,EAAE,UAAU,MAAM;GAC1B;EACD,IAAI;GACF,SAAS;IAAE,KAAK;IAAK,IAAI;IAAM;GAC/B,aAAa,EAAE,UAAU,MAAM;GAC/B,WAAW,EAAE,UAAU,MAAM;GAC7B,MAAM,EAAE,KAAK,KAAK;GAClB,MAAM;IACJ,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACtB;GACD,OAAO,EAAE,UAAU,MAAM;GAC1B;EACF;CAED,cAAc;EACZ,MAAM;EACN,OAAO;EACP,OAAO;EACR;CACF,CAAC"}
@@ -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 react985 from "react";
12
+ import * as react78 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: react985.Context<Partial<AccordionRootProps> | undefined>, useAccordionPropsContext: () => Partial<AccordionRootProps> | undefined;
36
+ declare const AccordionPropsContext: react78.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 react973 from "react";
5
+ import * as react66 from "react";
6
6
 
7
7
  //#region src/components/accordion/use-accordion.d.ts
8
- declare const AccordionDescendantsContext: react973.Context<{
8
+ declare const AccordionDescendantsContext: react66.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: react973.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) => react973.RefCallback<HTMLButtonElement>;
27
+ } | undefined) => react66.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: react973.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) => react973.RefCallback<HTMLButtonElement>;
53
+ } | undefined) => react66.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: react973.RefCallback<HTMLButtonElement>;
58
+ register: react66.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: react973.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) => react973.RefCallback<HTMLButtonElement>;
78
+ } | undefined) => react66.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: react973.Context<AccordionContext>, useAccordionContext: () => AccordionContext;
84
+ declare const AccordionContext: react66.Context<AccordionContext>, useAccordionContext: () => AccordionContext;
85
85
  interface AccordionItemContext extends Omit<UseAccordionItemReturn, "getItemProps"> {}
86
- declare const AccordionItemContext: react973.Context<AccordionItemContext>, useAccordionItemContext: () => AccordionItemContext;
86
+ declare const AccordionItemContext: react66.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) => react973.RefCallback<HTMLButtonElement>;
140
+ } | undefined) => react66.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: react973.Dispatch<react973.SetStateAction<number>>;
149
- setIndex: react973.Dispatch<react973.SetStateAction<number | number[]>>;
148
+ setFocusedIndex: react66.Dispatch<react66.SetStateAction<number>>;
149
+ setIndex: react66.Dispatch<react66.SetStateAction<number | number[]>>;
150
150
  toggle: boolean | undefined;
151
151
  getRootProps: PropGetter<"div", undefined, undefined>;
152
152
  };
@@ -7,7 +7,7 @@ import { PortalProps } from "../portal/portal.js";
7
7
  import { PopupAnimationProps } from "../popover/popover.js";
8
8
  import "../popover/index.js";
9
9
  import "../../index.js";
10
- import * as react972 from "react";
10
+ import * as react64 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: react972.Context<Partial<ActionBarRootProps> | undefined>, useActionBarPropsContext: () => Partial<ActionBarRootProps> | undefined;
32
+ declare const ActionBarPropsContext: react64.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 react969 from "react";
8
+ import * as react65 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: react969.Context<Partial<AiryProps> | undefined>, useAiryPropsContext: () => Partial<AiryProps> | undefined;
60
+ declare const AiryPropsContext: react65.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 react971 from "react";
12
+ import * as react1050 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: react971.Context<Partial<AlertRootProps> | undefined>, useAlertPropsContext: () => Partial<AlertRootProps> | undefined;
23
+ declare const AlertPropsContext: react1050.Context<Partial<AlertRootProps> | undefined>, useAlertPropsContext: () => Partial<AlertRootProps> | undefined;
24
24
  /**
25
25
  * `Alert` is a component that conveys information to the user.
26
26
  *
@@ -3,7 +3,7 @@ import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/
3
3
  import "../../index.js";
4
4
 
5
5
  //#region src/components/alert/alert.style.d.ts
6
- declare const alertStyle: ComponentSlotStyle<"title" | "loading" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"title" | "loading" | "icon" | "root" | "description">>, CSSModifierObject<CSSSlotObject<"title" | "loading" | "icon" | "root" | "description">>, {
6
+ declare const alertStyle: ComponentSlotStyle<"title" | "loading" | "icon" | "description" | "root", CSSPropObject<CSSSlotObject<"title" | "loading" | "icon" | "description" | "root">>, CSSModifierObject<CSSSlotObject<"title" | "loading" | "icon" | "description" | "root">>, {
7
7
  island: {
8
8
  description: {
9
9
  color: "fg.muted";
@@ -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 react970 from "react";
8
+ import * as react1049 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: react970.Context<Partial<AlphaSliderRootProps> | undefined>, useAlphaSliderPropsContext: () => Partial<AlphaSliderRootProps> | undefined;
41
+ declare const AlphaSliderPropsContext: react1049.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 react1001 from "react";
5
+ import * as react1041 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: react1001.Context<Partial<AspectRatioProps> | undefined>, useAspectRatioPropsContext: () => Partial<AspectRatioProps> | undefined;
16
+ declare const AspectRatioPropsContext: react1041.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
  *
@@ -11,7 +11,7 @@ import { InputGroupRootProps } from "../input/input-group.js";
11
11
  import "../input/index.js";
12
12
  import { UseAutocompleteOptionProps, UseAutocompleteProps } from "./use-autocomplete.js";
13
13
  import "../../index.js";
14
- import * as react967 from "react";
14
+ import * as react1048 from "react";
15
15
  import { ReactElement, ReactNode } from "react";
16
16
 
17
17
  //#region src/components/autocomplete/autocomplete.d.ts
@@ -67,7 +67,7 @@ interface AutocompleteRootProps<Multiple extends boolean = false> extends Omit<H
67
67
  */
68
68
  rootProps?: InputGroupRootProps;
69
69
  }
70
- declare const AutocompletePropsContext: react967.Context<Partial<AutocompleteRootProps<false>> | undefined>, useAutocompletePropsContext: () => Partial<AutocompleteRootProps<false>> | undefined;
70
+ declare const AutocompletePropsContext: react1048.Context<Partial<AutocompleteRootProps<false>> | undefined>, useAutocompletePropsContext: () => Partial<AutocompleteRootProps<false>> | undefined;
71
71
  /**
72
72
  * `Autocomplete` is a component used to display suggestions in response to user text input.
73
73
  *
@@ -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" | "icon" | "separator" | "group" | "root" | "indicator" | "field" | "valueText" | "empty", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "icon" | "separator" | "group" | "root" | "indicator" | "field" | "valueText" | "empty">>, {
6
+ declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "indicator" | "field" | "root" | "valueText" | "empty", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "indicator" | "field" | "root" | "valueText" | "empty">>, {
7
7
  xs: {
8
8
  empty: {
9
9
  gap: "1.5";