@yamada-ui/react 2.2.1-dev-20260429111609 → 2.2.1-dev-20260501154625
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.
- package/dist/cjs/components/color-picker/use-color-picker.cjs +1 -0
- package/dist/cjs/components/color-picker/use-color-picker.cjs.map +1 -1
- package/dist/esm/components/color-picker/use-color-picker.js +1 -0
- package/dist/esm/components/color-picker/use-color-picker.js.map +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/accordion.style.d.ts +1 -1
- package/dist/types/components/accordion/use-accordion.d.ts +11 -11
- package/dist/types/components/action-bar/action-bar.d.ts +2 -2
- package/dist/types/components/airy/airy.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +2 -2
- package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
- package/dist/types/components/avatar/avatar.d.ts +5 -5
- package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
- package/dist/types/components/badge/badge.d.ts +2 -2
- package/dist/types/components/bleed/bleed.d.ts +2 -2
- package/dist/types/components/blockquote/blockquote.d.ts +2 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
- package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/button/icon-button.d.ts +2 -2
- package/dist/types/components/calendar/calendar.d.ts +2 -2
- package/dist/types/components/calendar/calendar.style.d.ts +2 -2
- package/dist/types/components/calendar/use-calendar.d.ts +8 -8
- package/dist/types/components/card/card.d.ts +2 -2
- package/dist/types/components/carousel/carousel.d.ts +2 -2
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/carousel/use-carousel.d.ts +3 -3
- package/dist/types/components/center/center.d.ts +2 -2
- package/dist/types/components/chart/chart.d.ts +2 -2
- package/dist/types/components/chart/donut-chart.d.ts +2 -2
- package/dist/types/components/chart/line-chart.d.ts +2 -2
- package/dist/types/components/chart/pie-chart.d.ts +2 -2
- package/dist/types/components/chart/radar-chart.d.ts +2 -2
- package/dist/types/components/chart/radial-chart.d.ts +2 -2
- package/dist/types/components/chart/use-chart.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +4 -4
- package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +5 -5
- package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
- package/dist/types/components/circle-progress/circle-progress.d.ts +2 -2
- package/dist/types/components/close-button/close-button.d.ts +2 -2
- package/dist/types/components/code/code.d.ts +2 -2
- package/dist/types/components/collapse/collapse.d.ts +2 -2
- package/dist/types/components/color-picker/color-picker.d.ts +2 -2
- package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
- package/dist/types/components/color-picker/use-color-picker.d.ts +2 -2
- package/dist/types/components/color-selector/color-selector.d.ts +2 -2
- package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
- package/dist/types/components/color-selector/use-color-selector.d.ts +3 -3
- package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
- package/dist/types/components/container/container.d.ts +2 -2
- package/dist/types/components/data-list/data-list.d.ts +2 -2
- package/dist/types/components/data-list/data-list.style.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +2 -2
- package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
- package/dist/types/components/drawer/drawer.d.ts +2 -2
- package/dist/types/components/drawer/drawer.style.d.ts +2 -2
- package/dist/types/components/dropzone/dropzone.d.ts +4 -4
- package/dist/types/components/editable/editable.d.ts +4 -4
- package/dist/types/components/editable/use-editable.d.ts +2 -2
- package/dist/types/components/em/em.d.ts +2 -2
- package/dist/types/components/empty-state/empty-state.d.ts +2 -2
- package/dist/types/components/fade/fade.d.ts +2 -2
- package/dist/types/components/field/field.d.ts +3 -3
- package/dist/types/components/field/field.style.d.ts +2 -2
- package/dist/types/components/field/use-field-props.d.ts +4 -4
- package/dist/types/components/fieldset/fieldset.d.ts +3 -3
- package/dist/types/components/fieldset/fieldset.style.d.ts +1 -1
- package/dist/types/components/file-button/file-button.d.ts +2 -2
- package/dist/types/components/file-button/use-file-button.d.ts +18 -18
- package/dist/types/components/file-input/file-input.d.ts +2 -2
- package/dist/types/components/file-input/file-input.style.d.ts +1 -1
- package/dist/types/components/file-input/use-file-input.d.ts +17 -17
- package/dist/types/components/flex/flex.d.ts +2 -2
- package/dist/types/components/flip/flip.d.ts +4 -4
- package/dist/types/components/flip/flip.style.d.ts +1 -1
- package/dist/types/components/float/float.d.ts +2 -2
- package/dist/types/components/form/form.d.ts +3 -3
- package/dist/types/components/format/format-byte.d.ts +4 -4
- package/dist/types/components/format/format-date-time.d.ts +4 -4
- package/dist/types/components/format/format-number.d.ts +2 -2
- package/dist/types/components/grid/grid-item.d.ts +2 -2
- package/dist/types/components/grid/grid.d.ts +2 -2
- package/dist/types/components/group/group.d.ts +2 -2
- package/dist/types/components/group/use-group.d.ts +2 -2
- package/dist/types/components/heading/heading.d.ts +2 -2
- package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
- package/dist/types/components/icon/icon.d.ts +5 -5
- package/dist/types/components/image/image.d.ts +2 -2
- package/dist/types/components/indicator/indicator.d.ts +4 -4
- package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
- package/dist/types/components/input/input-addon.d.ts +2 -2
- package/dist/types/components/input/input-element.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/kbd/kbd.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/link-box/link-box.d.ts +2 -2
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/list/list.style.d.ts +2 -2
- package/dist/types/components/loading/loading-provider.d.ts +2 -2
- package/dist/types/components/loading/loading.d.ts +3 -3
- package/dist/types/components/mark/mark.d.ts +2 -2
- package/dist/types/components/menu/menu.d.ts +2 -2
- package/dist/types/components/menu/menu.style.d.ts +2 -2
- package/dist/types/components/menu/use-menu.d.ts +11 -11
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal/modal.style.d.ts +2 -2
- package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
- package/dist/types/components/native-accordion/native-accordion.style.d.ts +2 -2
- package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
- package/dist/types/components/native-popover/native-popover.d.ts +2 -2
- package/dist/types/components/native-select/native-select.d.ts +2 -2
- package/dist/types/components/native-table/native-table.d.ts +4 -4
- package/dist/types/components/notice/notice.style.d.ts +1 -1
- package/dist/types/components/number-input/number-input.d.ts +2 -2
- package/dist/types/components/number-input/number-input.style.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +2 -2
- package/dist/types/components/pagination/pagination.style.d.ts +1 -1
- package/dist/types/components/pagination/use-pagination.d.ts +2 -2
- package/dist/types/components/password-input/password-input.d.ts +2 -2
- package/dist/types/components/password-input/strength-meter.d.ts +2 -2
- package/dist/types/components/password-input/use-password-input.d.ts +2 -2
- package/dist/types/components/pin-input/pin-input.d.ts +2 -2
- package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
- package/dist/types/components/popover/popover.d.ts +2 -2
- package/dist/types/components/progress/progress.d.ts +4 -4
- package/dist/types/components/progress/use-progress.d.ts +706 -706
- package/dist/types/components/qr-code/qr-code.d.ts +2 -2
- package/dist/types/components/radio/radio.d.ts +4 -4
- package/dist/types/components/radio/use-radio-group.d.ts +2 -2
- package/dist/types/components/radio-card/radio-card.d.ts +5 -5
- package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
- package/dist/types/components/rating/rating.style.d.ts +2 -2
- package/dist/types/components/rating/use-rating.d.ts +7 -7
- package/dist/types/components/reorder/reorder.d.ts +2 -2
- package/dist/types/components/reorder/reorder.style.d.ts +1 -1
- package/dist/types/components/reorder/use-reorder.d.ts +4 -4
- package/dist/types/components/resizable/resizable.d.ts +2 -2
- package/dist/types/components/resizable/resizable.style.d.ts +2 -2
- package/dist/types/components/resizable/use-resizable.d.ts +2 -2
- package/dist/types/components/ripple/ripple.d.ts +2 -2
- package/dist/types/components/ripple/use-ripple.d.ts +2 -2
- package/dist/types/components/rotate/rotate.d.ts +2 -2
- package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
- package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -2
- package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/types/components/segmented-control/segmented-control.d.ts +2 -2
- package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
- package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -9
- package/dist/types/components/select/select.d.ts +2 -2
- package/dist/types/components/select/use-select.d.ts +4 -4
- package/dist/types/components/separator/separator.d.ts +2 -2
- package/dist/types/components/sidebar/sidebar.d.ts +2 -2
- package/dist/types/components/sidebar/use-sidebar.d.ts +9 -9
- package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/slide/slide.d.ts +2 -2
- package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/slider/use-slider.d.ts +2 -2
- package/dist/types/components/stack/h-stack.d.ts +2 -2
- package/dist/types/components/stack/stack.d.ts +2 -2
- package/dist/types/components/stack/v-stack.d.ts +2 -2
- package/dist/types/components/stack/z-stack.d.ts +2 -2
- package/dist/types/components/stat/stat.d.ts +2 -2
- package/dist/types/components/stat/stat.style.d.ts +2 -2
- package/dist/types/components/status/status.d.ts +2 -2
- package/dist/types/components/steps/steps.d.ts +2 -2
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/steps/use-steps.d.ts +10 -10
- package/dist/types/components/switch/switch.d.ts +2 -2
- package/dist/types/components/table/table.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +2 -2
- package/dist/types/components/tabs/use-tabs.d.ts +16 -16
- package/dist/types/components/tag/tag.d.ts +2 -2
- package/dist/types/components/tag/tag.style.d.ts +1 -1
- package/dist/types/components/text/text.d.ts +2 -2
- package/dist/types/components/textarea/textarea.d.ts +2 -2
- package/dist/types/components/textarea/use-autosize.d.ts +2 -2
- package/dist/types/components/timeline/timeline.d.ts +5 -5
- package/dist/types/components/timeline/timeline.style.d.ts +1 -1
- package/dist/types/components/toggle/toggle.d.ts +5 -5
- package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
- package/dist/types/components/toggle/use-toggle.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tree/tree.d.ts +2 -2
- package/dist/types/components/tree/tree.style.d.ts +1 -1
- package/dist/types/components/tree/use-tree.d.ts +224 -224
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/types/components/wrap/wrap.d.ts +2 -2
- package/dist/types/core/components/create-component.d.ts +7 -7
- package/dist/types/core/system/color-mode-provider.d.ts +2 -2
- package/dist/types/core/system/storage-script.d.ts +3 -3
- package/dist/types/core/system/styled.d.ts +2 -2
- package/dist/types/core/system/system-provider.d.ts +2 -2
- package/dist/types/core/system/use-system-color-mode.d.ts +1 -1
- package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
- package/dist/types/hooks/use-clickable/index.d.ts +9 -9
- package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
- package/dist/types/hooks/use-combobox/index.d.ts +12 -12
- package/dist/types/hooks/use-counter/index.d.ts +2 -2
- package/dist/types/hooks/use-descendants/index.d.ts +2 -2
- package/dist/types/hooks/use-field-sizing/index.d.ts +2 -2
- package/dist/types/hooks/use-hover/index.d.ts +2 -2
- package/dist/types/hooks/use-popper/index.d.ts +2 -2
- package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
- package/dist/types/providers/ui-provider/ui-provider.d.ts +4 -4
- package/dist/types/utils/children.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColorMode, ColorModeWithSystem, ThemeConfig } from "./index.types.js";
|
|
2
2
|
import { Storage } from "./storage-manager.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react913 from "react";
|
|
4
4
|
import { FC, PropsWithChildren } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/core/system/color-mode-provider.d.ts
|
|
@@ -11,7 +11,7 @@ interface ColorModeContext {
|
|
|
11
11
|
toggleColorMode: () => void;
|
|
12
12
|
forced?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const ColorModeContext:
|
|
14
|
+
declare const ColorModeContext: react913.Context<ColorModeContext>;
|
|
15
15
|
interface ColorModeProviderProps extends PropsWithChildren {
|
|
16
16
|
/**
|
|
17
17
|
* The forced color mode.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColorModeWithSystem, ThemeScheme } from "./index.types.js";
|
|
2
2
|
import { Storage } from "./storage-manager.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/core/system/storage-script.d.ts
|
|
6
6
|
interface StorageScriptProps<Y extends string> {
|
|
@@ -17,11 +17,11 @@ declare function getStorageScript<Y extends string>(type: "colorMode" | "themeSc
|
|
|
17
17
|
declare function ColorModeScript({
|
|
18
18
|
nonce,
|
|
19
19
|
...rest
|
|
20
|
-
}: StorageScriptProps<ColorModeWithSystem>):
|
|
20
|
+
}: StorageScriptProps<ColorModeWithSystem>): react_jsx_runtime3.JSX.Element | null;
|
|
21
21
|
declare function ThemeSchemeScript({
|
|
22
22
|
nonce,
|
|
23
23
|
...rest
|
|
24
|
-
}: StorageScriptProps<ThemeScheme>):
|
|
24
|
+
}: StorageScriptProps<ThemeScheme>): react_jsx_runtime3.JSX.Element | null;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ColorModeScript, StorageScriptProps, ThemeSchemeScript, getStorageScript };
|
|
27
27
|
//# sourceMappingURL=storage-script.d.ts.map
|
|
@@ -4,10 +4,10 @@ import "../css/index.js";
|
|
|
4
4
|
import { As, StyledComponent } from "../components/index.types.js";
|
|
5
5
|
import { ShouldForwardProp } from "../components/props.js";
|
|
6
6
|
import "../components/index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react914 from "react";
|
|
8
8
|
|
|
9
9
|
//#region src/core/system/styled.d.ts
|
|
10
|
-
declare const ColorSchemeContext:
|
|
10
|
+
declare const ColorSchemeContext: react914.Context<ColorScheme | undefined>, useColorSchemeContext: () => ColorScheme | undefined;
|
|
11
11
|
interface StyledOptions<Y extends CSSPropObject = CSSPropObject, M extends CSSModifierObject = CSSModifierObject, D extends CSSModifierObject = CSSModifierObject, H extends number | string | symbol = string> extends Omit<ComponentStyle<Y, M, D>, "className"> {
|
|
12
12
|
className?: ((system: System) => string) | string;
|
|
13
13
|
displayName?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { System, ThemeConfig, UsageTheme } from "./index.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react915 from "react";
|
|
3
3
|
import { FC, PropsWithChildren } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/core/system/system-provider.d.ts
|
|
6
6
|
interface SystemContext extends System {}
|
|
7
|
-
declare const SystemContext:
|
|
7
|
+
declare const SystemContext: react915.Context<SystemContext>;
|
|
8
8
|
interface SystemProviderProps extends PropsWithChildren {
|
|
9
9
|
/**
|
|
10
10
|
* The config of the yamada ui.
|
|
@@ -12,7 +12,7 @@ declare const useSystemColorMode: ({
|
|
|
12
12
|
callback,
|
|
13
13
|
defaultColorMode
|
|
14
14
|
}: UseSystemColorModeProps) => {
|
|
15
|
-
getSystemColorMode: (fallback?: ColorMode) => "
|
|
15
|
+
getSystemColorMode: (fallback?: ColorMode) => "dark" | "light";
|
|
16
16
|
systemColorMode: ColorMode;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResponsiveObject } from "../../core/css/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react911 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/use-breakpoint/use-breakpoint-state.d.ts
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ import * as react974 from "react";
|
|
|
9
9
|
*
|
|
10
10
|
* @see https://yamada-ui.com/docs/hooks/use-breakpoint-state
|
|
11
11
|
*/
|
|
12
|
-
declare const useBreakpointState: <Y>(initialState: ResponsiveObject<Y, false>) => [Y,
|
|
12
|
+
declare const useBreakpointState: <Y>(initialState: ResponsiveObject<Y, false>) => [Y, react911.Dispatch<react911.SetStateAction<Y>>];
|
|
13
13
|
//#endregion
|
|
14
14
|
export { useBreakpointState };
|
|
15
15
|
//# sourceMappingURL=use-breakpoint-state.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyledProps } from "../../core/components/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react2 from "react";
|
|
4
4
|
import { HTMLAttributes, KeyboardEvent, MouseEvent, Ref } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/hooks/use-clickable/index.d.ts
|
|
@@ -65,19 +65,19 @@ declare const useClickable: <Y extends HTMLElement = HTMLElement, M extends Prop
|
|
|
65
65
|
onMouseOver: onMouseOverProp,
|
|
66
66
|
onMouseUp: onMouseUpProp,
|
|
67
67
|
...props
|
|
68
|
-
}?: UseClickableProps<Y, M>) => (Omit<UseClickableProps<Y, M>, "
|
|
68
|
+
}?: UseClickableProps<Y, M>) => (Omit<UseClickableProps<Y, M>, "ref" | "disabled" | "tabIndex" | "focusable" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusOnClick"> & {
|
|
69
69
|
ref: (node: any) => void;
|
|
70
70
|
type: "button";
|
|
71
71
|
"aria-disabled": boolean | undefined;
|
|
72
72
|
disabled: boolean | undefined;
|
|
73
73
|
onClick: (ev: MouseEvent<Y>) => void;
|
|
74
|
-
onKeyDown:
|
|
75
|
-
onKeyUp:
|
|
76
|
-
onMouseDown:
|
|
77
|
-
onMouseLeave:
|
|
78
|
-
onMouseOver:
|
|
79
|
-
onMouseUp:
|
|
80
|
-
}) | (Omit<UseClickableProps<Y, M>, "
|
|
74
|
+
onKeyDown: react2.KeyboardEventHandler<Y> | undefined;
|
|
75
|
+
onKeyUp: react2.KeyboardEventHandler<Y> | undefined;
|
|
76
|
+
onMouseDown: react2.MouseEventHandler<Y> | undefined;
|
|
77
|
+
onMouseLeave: react2.MouseEventHandler<Y> | undefined;
|
|
78
|
+
onMouseOver: react2.MouseEventHandler<Y> | undefined;
|
|
79
|
+
onMouseUp: react2.MouseEventHandler<Y> | undefined;
|
|
80
|
+
}) | (Omit<UseClickableProps<Y, M>, "ref" | "disabled" | "tabIndex" | "focusable" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusOnClick"> & {
|
|
81
81
|
ref: (node: any) => void;
|
|
82
82
|
"aria-disabled": "true" | undefined;
|
|
83
83
|
"data-active": string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react8 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/use-clipboard/index.d.ts
|
|
4
4
|
interface UseClipboardOptions {
|
|
@@ -12,7 +12,7 @@ interface UseClipboardOptions {
|
|
|
12
12
|
*/
|
|
13
13
|
declare const useClipboard: (defaultValue?: string, timeoutOrOptions?: number | UseClipboardOptions) => {
|
|
14
14
|
copied: boolean;
|
|
15
|
-
setValue:
|
|
15
|
+
setValue: react8.Dispatch<react8.SetStateAction<string>>;
|
|
16
16
|
value: string;
|
|
17
17
|
onCopy: (newValue?: any) => void;
|
|
18
18
|
};
|
|
@@ -5,7 +5,7 @@ import { UseDisclosureProps } from "../use-disclosure/use-disclosure.js";
|
|
|
5
5
|
import { UsePopoverProps } from "../../components/popover/use-popover.js";
|
|
6
6
|
import { Descendant, DescendantProps } from "../use-descendants/index.js";
|
|
7
7
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
|
-
import * as
|
|
8
|
+
import * as react10 from "react";
|
|
9
9
|
import { JSXElementConstructor, ReactNode, RefObject } from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/hooks/use-combobox/index.d.ts
|
|
@@ -46,7 +46,7 @@ interface ComboboxDescendantProps {
|
|
|
46
46
|
value?: string;
|
|
47
47
|
}
|
|
48
48
|
type ComboboxDescendant = Descendant<HTMLDivElement, ComboboxDescendantProps>;
|
|
49
|
-
declare const ComboboxDescendantsContext:
|
|
49
|
+
declare const ComboboxDescendantsContext: react10.Context<{
|
|
50
50
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null | undefined, options?: FocusOptions) => void;
|
|
51
51
|
count: (props?: Partial<ComboboxDescendantProps> | undefined) => number;
|
|
52
52
|
destroy: () => void;
|
|
@@ -63,7 +63,7 @@ declare const ComboboxDescendantsContext: react1.Context<{
|
|
|
63
63
|
lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
64
64
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
65
65
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
66
|
-
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) =>
|
|
66
|
+
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react10.RefCallback<HTMLDivElement>;
|
|
67
67
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
68
68
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
69
69
|
values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
|
|
@@ -85,12 +85,12 @@ declare const ComboboxDescendantsContext: react1.Context<{
|
|
|
85
85
|
lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
86
86
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
87
87
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
88
|
-
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) =>
|
|
88
|
+
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react10.RefCallback<HTMLDivElement>;
|
|
89
89
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
90
90
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
91
91
|
values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
|
|
92
92
|
};
|
|
93
|
-
register:
|
|
93
|
+
register: react10.RefCallback<HTMLDivElement>;
|
|
94
94
|
}, useComboboxDescendantRegister: (descendants?: {
|
|
95
95
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null | undefined, options?: FocusOptions) => void;
|
|
96
96
|
count: (props?: Partial<ComboboxDescendantProps> | undefined) => number;
|
|
@@ -108,11 +108,11 @@ declare const ComboboxDescendantsContext: react1.Context<{
|
|
|
108
108
|
lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
109
109
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
110
110
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
111
|
-
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) =>
|
|
111
|
+
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react10.RefCallback<HTMLDivElement>;
|
|
112
112
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
113
113
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
114
114
|
values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
|
|
115
|
-
} | undefined) => (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps>) =>
|
|
115
|
+
} | undefined) => (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps>) => react10.RefCallback<HTMLDivElement>, useComboboxDescendants: () => {
|
|
116
116
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null | undefined, options?: FocusOptions) => void;
|
|
117
117
|
count: (props?: Partial<ComboboxDescendantProps> | undefined) => number;
|
|
118
118
|
destroy: () => void;
|
|
@@ -129,15 +129,15 @@ declare const ComboboxDescendantsContext: react1.Context<{
|
|
|
129
129
|
lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
130
130
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
131
131
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
132
|
-
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) =>
|
|
132
|
+
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react10.RefCallback<HTMLDivElement>;
|
|
133
133
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
134
134
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
135
135
|
values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
|
|
136
136
|
};
|
|
137
137
|
interface ComboboxContext extends Pick<UseComboboxReturn, "onActiveDescendant" | "onClose" | "onSelect"> {}
|
|
138
|
-
declare const ComboboxContext:
|
|
138
|
+
declare const ComboboxContext: react10.Context<ComboboxContext>, useComboboxContext: () => ComboboxContext;
|
|
139
139
|
interface ComboboxGroupContext extends Pick<UseComboboxGroupReturn, "getLabelProps"> {}
|
|
140
|
-
declare const ComboboxGroupContext:
|
|
140
|
+
declare const ComboboxGroupContext: react10.Context<ComboboxGroupContext>, useComboboxGroupContext: () => ComboboxGroupContext;
|
|
141
141
|
interface UseComboboxProps extends Omit<HTMLProps, "onChange">, Omit<UseDisclosureProps, "timing">, Omit<UsePopoverProps, "autoFocus" | "initialFocusRef" | "modal" | "transform" | "updateRef"> {
|
|
142
142
|
/**
|
|
143
143
|
* If `true`, the list element will be closed when value is selected.
|
|
@@ -213,7 +213,7 @@ declare const useCombobox: (props?: UseComboboxProps) => {
|
|
|
213
213
|
lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
214
214
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
215
215
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
216
|
-
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) =>
|
|
216
|
+
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react10.RefCallback<HTMLDivElement>;
|
|
217
217
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
218
218
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
219
219
|
values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
|
|
@@ -288,7 +288,7 @@ declare const useComboboxItem: ({
|
|
|
288
288
|
lastValue: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
289
289
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
290
290
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean, props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
291
|
-
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) =>
|
|
291
|
+
register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react10.RefCallback<HTMLDivElement>;
|
|
292
292
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
293
293
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
|
|
294
294
|
values: (props?: Partial<ComboboxDescendantProps> | undefined) => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react21 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/use-counter/index.d.ts
|
|
4
4
|
interface UseCounterProps {
|
|
@@ -71,7 +71,7 @@ declare const useCounter: ({
|
|
|
71
71
|
out: boolean;
|
|
72
72
|
precision: number;
|
|
73
73
|
reset: () => void;
|
|
74
|
-
setValue:
|
|
74
|
+
setValue: react21.Dispatch<react21.SetStateAction<string | number>>;
|
|
75
75
|
step: number;
|
|
76
76
|
update: (next: number | string) => void;
|
|
77
77
|
value: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react23 from "react";
|
|
2
2
|
import { RefCallback } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/use-descendants/index.d.ts
|
|
@@ -40,7 +40,7 @@ type CreateDescendantRegister<Y extends HTMLElement, M = {}> = (props?: Descenda
|
|
|
40
40
|
* @see https://yamada-ui.com/docs/hooks/use-descendants
|
|
41
41
|
*/
|
|
42
42
|
declare const createDescendants: <Y extends HTMLElement = HTMLElement, M = {}>() => {
|
|
43
|
-
DescendantsContext:
|
|
43
|
+
DescendantsContext: react23.Context<{
|
|
44
44
|
active: (target?: Y | Descendant<Y, M> | null | undefined, options?: FocusOptions) => void;
|
|
45
45
|
count: (props?: Partial<M> | undefined) => number;
|
|
46
46
|
destroy: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react24 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/use-field-sizing/index.d.ts
|
|
5
5
|
interface UseFieldSizingProps {
|
|
@@ -8,7 +8,7 @@ interface UseFieldSizingProps {
|
|
|
8
8
|
declare const useFieldSizing: <Y extends HTMLElement>({
|
|
9
9
|
value
|
|
10
10
|
}: UseFieldSizingProps) => {
|
|
11
|
-
ref:
|
|
11
|
+
ref: react24.RefObject<Y | null>;
|
|
12
12
|
text: react_jsx_runtime0.JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
type UseFieldSizingReturn = ReturnType<typeof useFieldSizing>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react25 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/use-hover/index.d.ts
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import * as react16 from "react";
|
|
|
8
8
|
* @see https://yamada-ui.com/docs/hooks/use-hover
|
|
9
9
|
*/
|
|
10
10
|
declare const useHover: <Y extends HTMLElement = HTMLDivElement>() => {
|
|
11
|
-
ref:
|
|
11
|
+
ref: react25.RefObject<Y | null>;
|
|
12
12
|
hovered: boolean;
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Dict } from "../../utils/index.js";
|
|
|
2
2
|
import { Direction } from "../../core/system/index.types.js";
|
|
3
3
|
import { DOMElement, HTMLElementProps, HTMLProps } from "../../core/components/index.types.js";
|
|
4
4
|
import "../../core/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react1 from "react";
|
|
6
6
|
import { ComponentRef } from "react";
|
|
7
7
|
import * as _floating_ui_react_dom0 from "@floating-ui/react-dom";
|
|
8
8
|
import { Middleware, Placement, Platform, Strategy, VirtualElement } from "@floating-ui/react-dom";
|
|
@@ -111,7 +111,7 @@ declare const usePopper: <Y extends DOMElement | VirtualElement = "div", M exten
|
|
|
111
111
|
whileElementsMounted: whileElementsMountedProp
|
|
112
112
|
}?: UsePopperProps<Y>) => {
|
|
113
113
|
refs: {
|
|
114
|
-
reference:
|
|
114
|
+
reference: react1.MutableRefObject<Reference<Y> | null>;
|
|
115
115
|
floating: React.MutableRefObject<HTMLElement | null>;
|
|
116
116
|
setReference: (node: Reference<Y> | null) => void;
|
|
117
117
|
setFloating: (node: HTMLElement | null) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/use-resize-observer/index.d.ts
|
|
4
4
|
interface ObserverRect extends Omit<DOMRectReadOnly, "toJSON"> {}
|
|
@@ -7,9 +7,9 @@ interface ObserverRect extends Omit<DOMRectReadOnly, "toJSON"> {}
|
|
|
7
7
|
*
|
|
8
8
|
* @see https://yamada-ui.com/docs/hooks/use-resize-observer
|
|
9
9
|
*/
|
|
10
|
-
declare const useResizeObserver: <Y extends HTMLElement = any>() => readonly [
|
|
10
|
+
declare const useResizeObserver: <Y extends HTMLElement = any>() => readonly [react0.RefObject<Y | null>, ObserverRect];
|
|
11
11
|
declare const useElementSize: <Y extends HTMLElement = any>() => {
|
|
12
|
-
ref:
|
|
12
|
+
ref: react0.RefObject<Y | null>;
|
|
13
13
|
height: number;
|
|
14
14
|
width: number;
|
|
15
15
|
};
|
|
@@ -3,7 +3,7 @@ import { TextDirection } from "../../core/system/index.types.js";
|
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { IcuArgs } from "./icu.types.js";
|
|
5
5
|
import _default, { DefaultIntlData } from "./intl/index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react1239 from "react";
|
|
7
7
|
import { FC, ReactNode } from "react";
|
|
8
8
|
import { Formats, Options } from "intl-messageformat";
|
|
9
9
|
|
|
@@ -24,7 +24,7 @@ interface I18nContext<Y extends object = IntlData, M extends string = IntlPath>
|
|
|
24
24
|
changeLanguage: (locale?: string, dir?: TextDirection) => void;
|
|
25
25
|
getTranslation: (key?: IntlKey) => Translation<Y, M>;
|
|
26
26
|
}
|
|
27
|
-
declare const I18nContext:
|
|
27
|
+
declare const I18nContext: react1239.Context<I18nContext<{
|
|
28
28
|
readonly actionBar: {
|
|
29
29
|
readonly "Close action bar": "Close action bar";
|
|
30
30
|
readonly "Open action bar": "Open action bar";
|
|
@@ -135,7 +135,7 @@ declare const I18nContext: react26.Context<I18nContext<{
|
|
|
135
135
|
readonly toggle: {
|
|
136
136
|
readonly "Toggle button": "Toggle button";
|
|
137
137
|
};
|
|
138
|
-
}, "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" | "
|
|
138
|
+
}, "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" | "slider.Slider thumb" | "toggle.Toggle button" | "modal.Close modal" | "modal.Open modal" | "breadcrumb.Breadcrumb" | "breadcrumb.Ellipsis" | "carousel.Go to next slide" | "carousel.Go to previous slide" | "carousel.Go to {page} slide" | "carousel.Slides" | "carousel.{page} of {total}" | "avatar.Avatar Icon" | "calendar.Choose the month" | "calendar.Choose the year" | "calendar.Go to the next month" | "calendar.Go to the previous month" | "calendar.Today" | "actionBar.Close action bar" | "actionBar.Open action bar" | "autocomplete.Clear value" | "autocomplete.No results found" | "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">>;
|
|
139
139
|
interface I18nProviderProps {
|
|
140
140
|
children?: ReactNode;
|
|
141
141
|
/**
|
|
@@ -8,7 +8,7 @@ import "../../core/index.js";
|
|
|
8
8
|
import { I18nProviderProps } from "../i18n-provider/i18n-provider.js";
|
|
9
9
|
import "../../index.js";
|
|
10
10
|
import { FC } from "react";
|
|
11
|
-
import * as
|
|
11
|
+
import * as _yamada_ui_utils21 from "@yamada-ui/utils";
|
|
12
12
|
|
|
13
13
|
//#region src/providers/ui-provider/ui-provider.d.ts
|
|
14
14
|
interface UIProviderProps extends Omit<ThemeProviderProps, "storageKey">, Pick<ColorModeProviderProps, "colorMode">, I18nProviderProps {
|
|
@@ -31,7 +31,7 @@ interface UIProviderProps extends Omit<ThemeProviderProps, "storageKey">, Pick<C
|
|
|
31
31
|
* The global provider that must be added to make all Yamada UI components work correctly.
|
|
32
32
|
*/
|
|
33
33
|
declare const UIProvider: FC<UIProviderProps>;
|
|
34
|
-
declare const extendTheme: <Y extends UsageTheme>(theme: Y) => Y extends object ? { [D in "
|
|
34
|
+
declare const extendTheme: <Y extends UsageTheme>(theme: Y) => Y extends object ? { [D in "breakpoints" | "animations" | "aspectRatios" | "blurs" | "borders" | "colors" | "durations" | "easings" | "fonts" | "fontSizes" | "fontWeights" | "gradients" | "keyframes" | "letterSpacings" | "lineHeights" | "radii" | "shadows" | "sizes" | "spaces" | "zIndices" | "semanticTokens" | "styles" | keyof Y]: D extends keyof Y ? D extends "breakpoints" | "animations" | "aspectRatios" | "blurs" | "borders" | "colors" | "durations" | "easings" | "fonts" | "fontSizes" | "fontWeights" | "gradients" | "keyframes" | "letterSpacings" | "lineHeights" | "radii" | "shadows" | "sizes" | "spaces" | "zIndices" | "semanticTokens" | "styles" ? DeepMerge<{
|
|
35
35
|
semanticTokens: {
|
|
36
36
|
colors: {
|
|
37
37
|
current: "currentColor";
|
|
@@ -1299,7 +1299,7 @@ declare const extendTheme: <Y extends UsageTheme>(theme: Y) => Y extends object
|
|
|
1299
1299
|
};
|
|
1300
1300
|
};
|
|
1301
1301
|
};
|
|
1302
|
-
}[D], Y[D]> : Y[D] : D extends "
|
|
1302
|
+
}[D], Y[D]> : Y[D] : D extends "breakpoints" | "animations" | "aspectRatios" | "blurs" | "borders" | "colors" | "durations" | "easings" | "fonts" | "fontSizes" | "fontWeights" | "gradients" | "keyframes" | "letterSpacings" | "lineHeights" | "radii" | "shadows" | "sizes" | "spaces" | "zIndices" | "semanticTokens" | "styles" ? {
|
|
1303
1303
|
semanticTokens: {
|
|
1304
1304
|
colors: {
|
|
1305
1305
|
current: "currentColor";
|
|
@@ -2568,7 +2568,7 @@ declare const extendTheme: <Y extends UsageTheme>(theme: Y) => Y extends object
|
|
|
2568
2568
|
};
|
|
2569
2569
|
};
|
|
2570
2570
|
}[D] : never } : Y;
|
|
2571
|
-
declare const extendConfig: (config: ThemeConfig) =>
|
|
2571
|
+
declare const extendConfig: (config: ThemeConfig) => _yamada_ui_utils21.Dict<any>;
|
|
2572
2572
|
//#endregion
|
|
2573
2573
|
export { UIProvider, UIProviderProps, extendConfig, extendTheme };
|
|
2574
2574
|
//# sourceMappingURL=ui-provider.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/children.d.ts
|
|
@@ -19,7 +19,7 @@ declare function pickChildren<Y = any>(children: React.ReactElement[], ...types:
|
|
|
19
19
|
declare function usePickChildren<Y = any>(children: React.ReactElement<any>[], ...types: (React.JSXElementConstructor<any> | string)[]): React.ReactElement<Y>[];
|
|
20
20
|
declare function splitChildren<Y = any, M = any>(children: React.ReactNode, ...types: ((React.JSXElementConstructor<any> | string)[] | React.JSXElementConstructor<any> | string)[]): [React.ReactElement<M>[] | React.ReactNode, ...(React.ReactElement<Y>[] | undefined)[]];
|
|
21
21
|
declare function useSplitChildren<Y = any, M = any>(children: React.ReactNode, ...types: ((React.JSXElementConstructor<any> | string)[] | React.JSXElementConstructor<any> | string)[]): [React.ReactElement<M>[] | React.ReactNode, ...(React.ReactElement<Y>[] | undefined)[]];
|
|
22
|
-
declare const wrapOrPassProps: <Y extends React.PropsWithChildren>(Component: React.FC<Y>, nodeOrProps: React.ReactNode | Y, additionalProps?: Y) =>
|
|
22
|
+
declare const wrapOrPassProps: <Y extends React.PropsWithChildren>(Component: React.FC<Y>, nodeOrProps: React.ReactNode | Y, additionalProps?: Y) => react_jsx_runtime6.JSX.Element | null;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { findChild, findChildren, getValidChildren, includesChildren, isSomeDisplayName, isSomeElement, isValidElement, omitChildren, pickChildren, splitChildren, useFindChild, useFindChildren, useIncludesChildren, useOmitChildren, usePickChildren, useSplitChildren, useValidChildren, wrapOrPassProps };
|
|
25
25
|
//# sourceMappingURL=children.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.2.1-dev-
|
|
4
|
+
"version": "2.2.1-dev-20260501154625",
|
|
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",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
148
148
|
"sonner": "^2.0.7",
|
|
149
149
|
"uqr": "^0.1.3",
|
|
150
|
-
"@yamada-ui/utils": "2.1.3-dev-
|
|
150
|
+
"@yamada-ui/utils": "2.1.3-dev-20260501154625"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
153
|
"@babel/parser": "^7.29.2",
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
"@faker-js/faker": "^10.4.0",
|
|
156
156
|
"@lucide/lab": "^0.1.2",
|
|
157
157
|
"@mdn/browser-compat-data": "7.3.11",
|
|
158
|
-
"@testing-library/jest-dom": "^6.9.1",
|
|
159
158
|
"@testing-library/react": "^16.3.2",
|
|
160
159
|
"@testing-library/user-event": "^14.6.1",
|
|
160
|
+
"@types/babel__traverse": "^7.28.0",
|
|
161
161
|
"@types/jsdom": "^28.0.1",
|
|
162
162
|
"@types/yamljs": "^0.2.34",
|
|
163
163
|
"@vitejs/plugin-react": "^6.0.1",
|