@yamada-ui/react 2.3.0-dev-20261024140900 → 2.3.0-dev-20261024181815

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 (85) hide show
  1. package/dist/cjs/components/accordion/accordion.cjs +4 -3
  2. package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
  3. package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +2 -2
  4. package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs.map +1 -1
  5. package/dist/cjs/components/button/button.cjs +11 -8
  6. package/dist/cjs/components/button/button.cjs.map +1 -1
  7. package/dist/cjs/components/code/code.style.cjs +2 -1
  8. package/dist/cjs/components/code/code.style.cjs.map +1 -1
  9. package/dist/cjs/components/field/field.cjs +4 -3
  10. package/dist/cjs/components/field/field.cjs.map +1 -1
  11. package/dist/cjs/components/kbd/kbd.style.cjs +2 -1
  12. package/dist/cjs/components/kbd/kbd.style.cjs.map +1 -1
  13. package/dist/cjs/components/list/list.cjs +5 -3
  14. package/dist/cjs/components/list/list.cjs.map +1 -1
  15. package/dist/cjs/components/native-accordion/native-accordion.cjs +4 -3
  16. package/dist/cjs/components/native-accordion/native-accordion.cjs.map +1 -1
  17. package/dist/cjs/components/sidebar/sidebar.cjs +4 -3
  18. package/dist/cjs/components/sidebar/sidebar.cjs.map +1 -1
  19. package/dist/cjs/components/slot/slot.cjs +10 -9
  20. package/dist/cjs/components/slot/slot.cjs.map +1 -1
  21. package/dist/cjs/components/tree/tree.cjs +5 -3
  22. package/dist/cjs/components/tree/tree.cjs.map +1 -1
  23. package/dist/cjs/index.cjs +4 -0
  24. package/dist/cjs/utils/children.cjs +22 -9
  25. package/dist/cjs/utils/children.cjs.map +1 -1
  26. package/dist/cjs/utils/index.cjs +4 -0
  27. package/dist/esm/components/accordion/accordion.js +5 -4
  28. package/dist/esm/components/accordion/accordion.js.map +1 -1
  29. package/dist/esm/components/aspect-ratio/aspect-ratio.js +2 -2
  30. package/dist/esm/components/aspect-ratio/aspect-ratio.js.map +1 -1
  31. package/dist/esm/components/button/button.js +11 -8
  32. package/dist/esm/components/button/button.js.map +1 -1
  33. package/dist/esm/components/code/code.style.js +2 -1
  34. package/dist/esm/components/code/code.style.js.map +1 -1
  35. package/dist/esm/components/field/field.js +5 -4
  36. package/dist/esm/components/field/field.js.map +1 -1
  37. package/dist/esm/components/kbd/kbd.style.js +2 -1
  38. package/dist/esm/components/kbd/kbd.style.js.map +1 -1
  39. package/dist/esm/components/list/list.js +5 -3
  40. package/dist/esm/components/list/list.js.map +1 -1
  41. package/dist/esm/components/native-accordion/native-accordion.js +5 -4
  42. package/dist/esm/components/native-accordion/native-accordion.js.map +1 -1
  43. package/dist/esm/components/sidebar/sidebar.js +5 -4
  44. package/dist/esm/components/sidebar/sidebar.js.map +1 -1
  45. package/dist/esm/components/slot/slot.js +11 -10
  46. package/dist/esm/components/slot/slot.js.map +1 -1
  47. package/dist/esm/components/tree/tree.js +5 -3
  48. package/dist/esm/components/tree/tree.js.map +1 -1
  49. package/dist/esm/index.js +4 -2
  50. package/dist/esm/utils/children.js +22 -11
  51. package/dist/esm/utils/children.js.map +1 -1
  52. package/dist/esm/utils/index.js +4 -2
  53. package/dist/types/components/accordion/accordion.style.d.ts +1 -1
  54. package/dist/types/components/alert/alert.style.d.ts +1 -1
  55. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  56. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  57. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  58. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  59. package/dist/types/components/chart/cartesian-chart.style.d.ts +1 -1
  60. package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
  61. package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
  62. package/dist/types/components/dropzone/dropzone.d.ts +1 -1
  63. package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
  64. package/dist/types/components/field/use-field-props.d.ts +1 -1
  65. package/dist/types/components/file-button/use-file-button.d.ts +2 -2
  66. package/dist/types/components/file-input/use-file-input.d.ts +2 -2
  67. package/dist/types/components/menu/menu.style.d.ts +2 -2
  68. package/dist/types/components/native-accordion/native-accordion.style.d.ts +2 -2
  69. package/dist/types/components/progress/use-progress.d.ts +6 -6
  70. package/dist/types/components/rating/rating.style.d.ts +2 -2
  71. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  72. package/dist/types/components/select/select.style.d.ts +1 -1
  73. package/dist/types/components/stat/stat.style.d.ts +2 -2
  74. package/dist/types/components/steps/steps.style.d.ts +1 -1
  75. package/dist/types/components/tabs/tabs.style.d.ts +1 -1
  76. package/dist/types/components/timeline/timeline.d.ts +1 -1
  77. package/dist/types/components/timeline/timeline.style.d.ts +1 -1
  78. package/dist/types/components/tree/tree.style.d.ts +1 -1
  79. package/dist/types/components/tree/use-tree.d.ts +4 -4
  80. package/dist/types/hooks/use-clickable/index.d.ts +2 -2
  81. package/dist/types/index.d.ts +3 -3
  82. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +1 -1
  83. package/dist/types/utils/children.d.ts +11 -2
  84. package/dist/types/utils/index.d.ts +3 -3
  85. package/package.json +2 -2
@@ -132,7 +132,7 @@ declare const I18nContext: import("react").Context<I18nContext<{
132
132
  readonly toggle: {
133
133
  readonly "Toggle button": "Toggle button";
134
134
  };
135
- }, "progress" | "select" | "table" | "modal" | "slider" | "toggle" | "actionBar" | "autocomplete" | "avatar" | "breadcrumb" | "calendar" | "carousel" | "closeButton" | "colorPicker" | "colorSelector" | "colorSwatch" | "datePicker" | "hueSlider" | "numberInput" | "pagination" | "passwordInput" | "saturationSlider" | "sidebar" | "stat" | "tag" | "progress.Loading..." | "progress.{value} percent" | "select.Clear value" | "table.Clear sorting" | "table.Page size" | "table.Select all rows" | "table.Select row" | "table.Sort ascending" | "table.Sort descending" | "modal.Close modal" | "modal.Open modal" | "slider.Slider thumb" | "toggle.Toggle button" | "actionBar.Close action bar" | "actionBar.Open action bar" | "autocomplete.Clear value" | "autocomplete.No results found" | "avatar.Avatar Icon" | "breadcrumb.Breadcrumb" | "breadcrumb.Ellipsis" | "calendar.Choose the month" | "calendar.Choose the year" | "calendar.Go to the next month" | "calendar.Go to the previous month" | "calendar.Today" | "carousel.Go to next slide" | "carousel.Go to previous slide" | "carousel.Go to {page} slide" | "carousel.Slides" | "carousel.{page} of {total}" | "closeButton.Close" | "colorPicker.Pick a color" | "colorSelector.Pick a color" | "colorSwatch.Color swatch group" | "datePicker.Clear value" | "hueSlider.Blue" | "hueSlider.Cyan" | "hueSlider.Green" | "hueSlider.Magenta" | "hueSlider.Red" | "hueSlider.Yellow" | "numberInput.Decrease" | "numberInput.Increase" | "pagination.Go to first page" | "pagination.Go to last page" | "pagination.Go to next page" | "pagination.Go to page {value}" | "pagination.Go to previous page" | "pagination.Pagination" | "pagination.{value} / {total}" | "pagination.{value} of {total}" | "passwordInput.Password strength meter" | "passwordInput.Toggle password visibility" | "saturationSlider.Saturation and brightness thumb" | "saturationSlider.Saturation {saturation}%, Brightness {brightness}%" | "sidebar.Close sidebar" | "sidebar.Open sidebar" | "stat.Decreased by" | "stat.Increased by" | "tag.Close tag">>;
135
+ }, "progress" | "select" | "table" | "toggle" | "slider" | "modal" | "actionBar" | "autocomplete" | "avatar" | "breadcrumb" | "calendar" | "carousel" | "closeButton" | "colorPicker" | "colorSelector" | "colorSwatch" | "datePicker" | "hueSlider" | "numberInput" | "pagination" | "passwordInput" | "saturationSlider" | "sidebar" | "stat" | "tag" | "progress.Loading..." | "progress.{value} percent" | "select.Clear value" | "table.Clear sorting" | "table.Page size" | "table.Select all rows" | "table.Select row" | "table.Sort ascending" | "table.Sort descending" | "toggle.Toggle button" | "slider.Slider thumb" | "modal.Close modal" | "modal.Open modal" | "actionBar.Close action bar" | "actionBar.Open action bar" | "autocomplete.Clear value" | "autocomplete.No results found" | "avatar.Avatar Icon" | "breadcrumb.Breadcrumb" | "breadcrumb.Ellipsis" | "calendar.Choose the month" | "calendar.Choose the year" | "calendar.Go to the next month" | "calendar.Go to the previous month" | "calendar.Today" | "carousel.Go to next slide" | "carousel.Go to previous slide" | "carousel.Go to {page} slide" | "carousel.Slides" | "carousel.{page} of {total}" | "closeButton.Close" | "colorPicker.Pick a color" | "colorSelector.Pick a color" | "colorSwatch.Color swatch group" | "datePicker.Clear value" | "hueSlider.Blue" | "hueSlider.Cyan" | "hueSlider.Green" | "hueSlider.Magenta" | "hueSlider.Red" | "hueSlider.Yellow" | "numberInput.Decrease" | "numberInput.Increase" | "pagination.Go to first page" | "pagination.Go to last page" | "pagination.Go to next page" | "pagination.Go to page {value}" | "pagination.Go to previous page" | "pagination.Pagination" | "pagination.{value} / {total}" | "pagination.{value} of {total}" | "passwordInput.Password strength meter" | "passwordInput.Toggle password visibility" | "saturationSlider.Saturation and brightness thumb" | "saturationSlider.Saturation {saturation}%, Brightness {brightness}%" | "sidebar.Close sidebar" | "sidebar.Open sidebar" | "stat.Decreased by" | "stat.Increased by" | "tag.Close tag">>;
136
136
  export interface I18nProviderProps {
137
137
  children?: ReactNode;
138
138
  /**
@@ -1,10 +1,19 @@
1
1
  import * as React from "react";
2
2
  //#region src/utils/children.d.ts
3
- export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any>[];
4
- export declare function useValidChildren(children: React.ReactNode): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
3
+ export declare function isLazy(value: unknown): value is {
4
+ $$typeof: symbol;
5
+ _payload: unknown;
6
+ _init: (payload: unknown) => unknown;
7
+ };
5
8
  export declare function isValidElement(child: any): child is React.ReactNode;
6
9
  export declare function isSomeDisplayName(a: any, b: any): boolean;
7
10
  export declare function isSomeElement(a: any, b: any): boolean;
11
+ export declare function getResolvedChild(value: React.ReactNode): React.ReactNode;
12
+ export declare function getResolvedChild<Y>(value: Y): Y extends {
13
+ $$typeof: symbol;
14
+ } ? unknown : Y;
15
+ export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any>[];
16
+ export declare function useValidChildren(children: React.ReactNode): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
8
17
  export declare function findChild<Y = any>(children: React.ReactElement[], ...types: (React.JSXElementConstructor<any> | string)[]): React.ReactElement<Y> | undefined;
9
18
  export declare function useFindChild<Y = any>(children: React.ReactElement[], ...types: (React.JSXElementConstructor<any> | string)[]): React.ReactElement<Y> | undefined;
10
19
  export declare function findChildren<Y = any, M = any>(children: React.ReactElement[], ...types: (React.JSXElementConstructor<any> | string)[]): [React.ReactElement<Y> | undefined, ...React.ReactElement<M>[]];
@@ -1,4 +1,4 @@
1
- import { findChild, findChildren, getValidChildren, includesChildren, isSomeDisplayName, isSomeElement, isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps } from "./children.js";
1
+ import { findChild, findChildren, getResolvedChild, getValidChildren, includesChildren, isLazy, isSomeDisplayName, isSomeElement, isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps } from "./children.js";
2
2
  import { createContext } from "./context.js";
3
3
  import { getEventRelatedTarget, isComposing, runKeyAction, useAttributeObserver, useIds, visuallyHiddenAttributes } from "./dom.js";
4
4
  import { useSafeLayoutEffect, useUnmountEffect, useUpdateEffect } from "./effect.js";
@@ -9,9 +9,9 @@ import { CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, Store, Store
9
9
  import { AnyPointerEvent, AnyString, Booleanish, ColorFormat, DeepMerge, DeepPartial, Dict, EventType, FlattenObjectOptions, FunctionOf, FunctionOrValue, Length, Merge, MergeOptions, Path, Point, Prettify, Primitive, Value } from "@yamada-ui/utils";
10
10
  export * from "@yamada-ui/utils";
11
11
  declare namespace index_d_exports {
12
- export { AnyPointerEvent, AnyString, Booleanish, ColorFormat, CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, DeepMerge, DeepPartial, Dict, EventType, FlattenObjectOptions, FunctionOf, FunctionOrValue, Length, Merge, MergeOptions, Path, Point, Prettify, Primitive, ReactNodeOrFunction, Store, StoreMethods, StoreSubscribe, TransformProps, UseStore, Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
12
+ export { AnyPointerEvent, AnyString, Booleanish, ColorFormat, CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, DeepMerge, DeepPartial, Dict, EventType, FlattenObjectOptions, FunctionOf, FunctionOrValue, Length, Merge, MergeOptions, Path, Point, Prettify, Primitive, ReactNodeOrFunction, Store, StoreMethods, StoreSubscribe, TransformProps, UseStore, Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getResolvedChild, getValidChildren, includesChildren, isComposing, isLazy, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
13
13
  }
14
14
  import * as import__yamada_ui_utils from "@yamada-ui/utils";
15
15
  //#endregion
16
- export { type AnyPointerEvent, type AnyString, type Booleanish, type ColorFormat, CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, type DeepMerge, type DeepPartial, type Dict, type EventType, type FlattenObjectOptions, type FunctionOf, type FunctionOrValue, type Length, type Merge, type MergeOptions, type Path, type Point, type Prettify, type Primitive, type ReactNodeOrFunction, Store, StoreMethods, StoreSubscribe, type TransformProps, UseStore, type Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, index_d_exports, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
16
+ export { type AnyPointerEvent, type AnyString, type Booleanish, type ColorFormat, CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, type DeepMerge, type DeepPartial, type Dict, type EventType, type FlattenObjectOptions, type FunctionOf, type FunctionOrValue, type Length, type Merge, type MergeOptions, type Path, type Point, type Prettify, type Primitive, type ReactNodeOrFunction, Store, StoreMethods, StoreSubscribe, type TransformProps, UseStore, type Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getResolvedChild, getValidChildren, includesChildren, index_d_exports, isComposing, isLazy, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
17
17
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/react",
3
3
  "type": "module",
4
- "version": "2.3.0-dev-20261024140900",
4
+ "version": "2.3.0-dev-20261024181815",
5
5
  "description": "React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion",
6
6
  "keywords": [
7
7
  "yamada",
@@ -126,7 +126,7 @@
126
126
  "@emotion/utils": "^1.4.2",
127
127
  "@floating-ui/react-dom": "^2.1.9",
128
128
  "@tanstack/react-table": "^8.21.3",
129
- "@yamada-ui/utils": "2.1.8-dev-20261024140900",
129
+ "@yamada-ui/utils": "2.1.8-dev-20261024181815",
130
130
  "copy-to-clipboard": "3.3.3",
131
131
  "csstype": "^3.2.3",
132
132
  "dayjs": "^1.11.23",