@yamada-ui/react 2.1.5 → 2.1.6
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/README.md +3 -20
- package/dist/cjs/core/css/utils.cjs +4 -0
- package/dist/cjs/core/css/utils.cjs.map +1 -1
- package/dist/cjs/core/system/var.cjs +2 -1
- package/dist/cjs/core/system/var.cjs.map +1 -1
- package/dist/esm/core/css/utils.js +4 -1
- package/dist/esm/core/css/utils.js.map +1 -1
- package/dist/esm/core/system/var.js +3 -2
- package/dist/esm/core/system/var.js.map +1 -1
- package/dist/types/components/accordion/accordion.d.ts +4 -2
- package/dist/types/components/accordion/use-accordion.d.ts +11 -11
- package/dist/types/components/airy/airy.d.ts +3 -2
- package/dist/types/components/alert/alert.d.ts +5 -2
- package/dist/types/components/alert/alert.style.d.ts +1 -1
- package/dist/types/components/alpha-slider/alpha-slider.d.ts +3 -2
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.d.ts +4 -2
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/autocomplete/use-autocomplete.d.ts +7 -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-group.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +3 -2
- package/dist/types/components/button/icon-button.d.ts +2 -2
- package/dist/types/components/calendar/calendar.d.ts +3 -2
- package/dist/types/components/calendar/calendar.style.d.ts +2 -2
- package/dist/types/components/calendar/use-calendar.d.ts +9 -8
- package/dist/types/components/card/card.d.ts +2 -2
- package/dist/types/components/carousel/carousel.d.ts +3 -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/cartesian-chart.style.d.ts +1 -1
- package/dist/types/components/chart/chart.d.ts +5 -5
- package/dist/types/components/chart/pie-chart.d.ts +2 -2
- package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
- package/dist/types/components/chart/radar-chart.d.ts +2 -2
- package/dist/types/components/chart/use-chart.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox-group.d.ts +2 -0
- package/dist/types/components/checkbox/checkbox.d.ts +5 -4
- package/dist/types/components/checkbox/use-checkbox-group.d.ts +3 -2
- package/dist/types/components/checkbox/use-checkbox.d.ts +1 -0
- package/dist/types/components/checkbox-card/checkbox-card-group.d.ts +3 -0
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +7 -5
- package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
- package/dist/types/components/circle-progress/circle-progress.d.ts +3 -2
- package/dist/types/components/close-button/close-button.d.ts +3 -2
- package/dist/types/components/code/code.d.ts +2 -2
- package/dist/types/components/collapse/collapse.d.ts +3 -2
- package/dist/types/components/color-picker/color-picker.d.ts +6 -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 +5 -2
- package/dist/types/components/color-selector/color-selector.d.ts +6 -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 +5 -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 +5 -2
- package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
- package/dist/types/components/date-picker/use-date-picker.d.ts +7 -4
- package/dist/types/components/drawer/drawer.d.ts +5 -2
- package/dist/types/components/drawer/use-drawer.d.ts +2 -0
- package/dist/types/components/dropzone/dropzone.d.ts +8 -5
- package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
- package/dist/types/components/dropzone/use-dropzone.d.ts +1 -0
- package/dist/types/components/editable/editable.d.ts +5 -4
- package/dist/types/components/editable/use-editable.d.ts +3 -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/empty-state/empty-state.style.d.ts +2 -2
- package/dist/types/components/fade/fade.d.ts +3 -2
- package/dist/types/components/fade-scale/fade-scale.d.ts +1 -0
- package/dist/types/components/field/field.d.ts +3 -3
- package/dist/types/components/field/use-field-props.d.ts +3 -3
- package/dist/types/components/fieldset/fieldset.d.ts +4 -3
- package/dist/types/components/file-button/file-button.d.ts +4 -2
- package/dist/types/components/file-button/use-file-button.d.ts +20 -18
- package/dist/types/components/file-input/file-input.d.ts +4 -2
- package/dist/types/components/file-input/use-file-input.d.ts +18 -17
- package/dist/types/components/flex/flex.d.ts +2 -2
- package/dist/types/components/flip/flip.d.ts +5 -4
- package/dist/types/components/float/float.d.ts +2 -2
- package/dist/types/components/form/form.d.ts +4 -3
- package/dist/types/components/form/form.style.d.ts +1 -1
- package/dist/types/components/format/format-byte.d.ts +2 -2
- 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/format/use-format-byte.d.ts +1 -0
- package/dist/types/components/format/use-format-date-time.d.ts +1 -0
- package/dist/types/components/format/use-format-number.d.ts +1 -0
- 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 +3 -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/highlight/highlight.d.ts +2 -0
- package/dist/types/components/hue-slider/hue-slider.d.ts +4 -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 +5 -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-group.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +3 -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/loading/loading-provider.d.ts +2 -2
- package/dist/types/components/loading/loading.d.ts +4 -3
- package/dist/types/components/loading/use-loading-component.d.ts +1 -0
- package/dist/types/components/mark/mark.d.ts +2 -2
- package/dist/types/components/menu/menu.d.ts +3 -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 +6 -2
- package/dist/types/components/native-accordion/native-accordion.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 +4 -2
- package/dist/types/components/native-select/use-native-select.d.ts +1 -0
- package/dist/types/components/native-table/native-table.d.ts +4 -4
- package/dist/types/components/notice/use-notice.d.ts +3 -0
- package/dist/types/components/number-input/number-input.d.ts +3 -2
- package/dist/types/components/number-input/number-input.style.d.ts +1 -1
- package/dist/types/components/number-input/use-number-input.d.ts +1 -0
- package/dist/types/components/pagination/pagination.d.ts +3 -2
- package/dist/types/components/pagination/use-pagination.d.ts +2 -2
- package/dist/types/components/password-input/password-input.d.ts +3 -2
- package/dist/types/components/password-input/strength-meter.d.ts +2 -2
- package/dist/types/components/password-input/use-password-input.d.ts +3 -2
- package/dist/types/components/picture/picture.d.ts +1 -0
- package/dist/types/components/pin-input/pin-input.d.ts +4 -2
- package/dist/types/components/pin-input/use-pin-input.d.ts +8 -7
- package/dist/types/components/popover/popover.d.ts +3 -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-group.d.ts +2 -0
- package/dist/types/components/radio/radio.d.ts +5 -4
- package/dist/types/components/radio/use-radio-group.d.ts +3 -2
- package/dist/types/components/radio/use-radio.d.ts +1 -0
- package/dist/types/components/radio-card/radio-card-group.d.ts +3 -0
- package/dist/types/components/radio-card/radio-card.d.ts +7 -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 +8 -7
- package/dist/types/components/reorder/reorder.d.ts +3 -2
- package/dist/types/components/reorder/use-reorder.d.ts +3 -3
- package/dist/types/components/resizable/resizable.d.ts +2 -2
- package/dist/types/components/resizable/use-resizable.d.ts +2 -2
- package/dist/types/components/ripple/ripple.d.ts +3 -2
- package/dist/types/components/ripple/use-ripple.d.ts +2 -2
- package/dist/types/components/rotate/rotate.d.ts +3 -2
- package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
- package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +3 -2
- package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/types/components/segmented-control/segmented-control.d.ts +3 -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 +10 -9
- package/dist/types/components/select/select.d.ts +4 -2
- package/dist/types/components/select/select.style.d.ts +1 -1
- package/dist/types/components/select/use-select.d.ts +6 -4
- package/dist/types/components/separator/separator.d.ts +2 -2
- package/dist/types/components/simple-grid/simple-grid.d.ts +3 -2
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/slide/slide.d.ts +3 -2
- package/dist/types/components/slide-fade/slide-fade.d.ts +3 -2
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/slider/use-slider.d.ts +3 -2
- package/dist/types/components/snacks/snacks.d.ts +2 -0
- package/dist/types/components/snacks/use-snacks.d.ts +1 -0
- 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/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/switch/use-switch.d.ts +1 -0
- package/dist/types/components/table/table.d.ts +4 -2
- package/dist/types/components/tabs/tabs.d.ts +2 -2
- package/dist/types/components/tabs/tabs.style.d.ts +1 -1
- 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/text/text.d.ts +2 -2
- package/dist/types/components/textarea/textarea.d.ts +4 -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 +2 -2
- package/dist/types/components/tip/tip.d.ts +2 -0
- package/dist/types/components/toggle/toggle-group.d.ts +1 -1
- package/dist/types/components/toggle/toggle.d.ts +7 -5
- package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
- package/dist/types/components/toggle/use-toggle.d.ts +3 -2
- package/dist/types/components/tooltip/tooltip.d.ts +4 -2
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/types/components/wrap/wrap.d.ts +3 -2
- package/dist/types/core/components/create-component.d.ts +7 -8
- package/dist/types/core/components/index.types.d.ts +0 -1
- package/dist/types/core/components/use-component-style.d.ts +0 -1
- package/dist/types/core/css/utils.d.ts +0 -1
- package/dist/types/core/index.d.ts +0 -1
- package/dist/types/core/system/color-mode-provider.d.ts +2 -2
- package/dist/types/core/system/config.d.ts +0 -1
- package/dist/types/core/system/create-system.d.ts +0 -1
- package/dist/types/core/system/factory.d.ts +0 -1
- package/dist/types/core/system/index.types.d.ts +0 -1
- package/dist/types/core/system/storage-script.d.ts +3 -3
- package/dist/types/core/system/styled.d.ts +2 -3
- package/dist/types/core/system/system-provider.d.ts +2 -2
- package/dist/types/core/system/var.d.ts +0 -1
- package/dist/types/hooks/use-async-callback/index.d.ts +1 -0
- 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-combobox/index.d.ts +1 -0
- 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/index.d.ts +103 -0
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
- package/dist/types/providers/ui-provider/ui-provider.d.ts +3 -2
- package/package.json +25 -6
|
@@ -2,15 +2,17 @@ import { ThemeProps } from "../../core/system/index.types.js";
|
|
|
2
2
|
import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { FieldProps } from "../field/field.js";
|
|
5
|
+
import "../field/index.js";
|
|
5
6
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
7
|
+
import "../input/index.js";
|
|
6
8
|
import { TextareaStyle } from "./textarea.style.js";
|
|
7
9
|
import { UseTextareaProps } from "./use-textarea.js";
|
|
8
10
|
import "../../index.js";
|
|
9
|
-
import * as
|
|
11
|
+
import * as react198 from "react";
|
|
10
12
|
|
|
11
13
|
//#region src/components/textarea/textarea.d.ts
|
|
12
14
|
interface TextareaProps extends HTMLStyledProps<"textarea">, ThemeProps<TextareaStyle>, UseInputBorderProps, FieldProps, UseTextareaProps {}
|
|
13
|
-
declare const TextareaPropsContext:
|
|
15
|
+
declare const TextareaPropsContext: react198.Context<Partial<TextareaProps> | undefined>, useTextareaPropsContext: () => Partial<TextareaProps> | undefined;
|
|
14
16
|
/**
|
|
15
17
|
* `Textarea` is a component used to obtain multi-line text input.
|
|
16
18
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropGetter } from "../../core/components/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react197 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/textarea/use-autosize.d.ts
|
|
6
6
|
interface UseAutosizeProps {
|
|
@@ -28,7 +28,7 @@ declare const useAutosize: ({
|
|
|
28
28
|
maxRows,
|
|
29
29
|
minRows
|
|
30
30
|
}?: UseAutosizeProps) => {
|
|
31
|
-
ref:
|
|
31
|
+
ref: react197.RefObject<HTMLTextAreaElement | null>;
|
|
32
32
|
getTextareaProps: PropGetter<"textarea", undefined, undefined>;
|
|
33
33
|
onResizeTextarea: () => void;
|
|
34
34
|
};
|
|
@@ -4,8 +4,8 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
|
|
|
4
4
|
import "../../core/index.js";
|
|
5
5
|
import { TimelineStyle } from "./timeline.style.js";
|
|
6
6
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
8
|
+
import * as react196 from "react";
|
|
9
9
|
import { ReactNode } from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/components/timeline/timeline.d.ts
|
|
@@ -59,7 +59,7 @@ interface TimelineRootProps extends HTMLStyledProps<"ul">, ThemeProps<TimelineSt
|
|
|
59
59
|
*/
|
|
60
60
|
separatorWidth?: CSSProps["width"];
|
|
61
61
|
}
|
|
62
|
-
declare const TimelinePropsContext:
|
|
62
|
+
declare const TimelinePropsContext: react196.Context<Partial<TimelineRootProps> | undefined>, useTimelinePropsContext: () => Partial<TimelineRootProps> | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* `Timeline` is a component that is used to display a list of events in chronological order.
|
|
65
65
|
*
|
|
@@ -70,7 +70,7 @@ declare const TimelineRoot: Component<({
|
|
|
70
70
|
index,
|
|
71
71
|
items,
|
|
72
72
|
...rest
|
|
73
|
-
}: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "
|
|
73
|
+
}: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "description" | "root" | "item" | "indicator" | "connector", {
|
|
74
74
|
align: {
|
|
75
75
|
center: {
|
|
76
76
|
content: {
|
|
@@ -221,7 +221,7 @@ declare const TimelineRoot: Component<({
|
|
|
221
221
|
fontSize: "lg";
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "
|
|
224
|
+
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "description" | "root" | "item" | "indicator" | "connector">>>, keyof TimelineRootProps>) => react_jsx_runtime11.JSX.Element, TimelineRootProps>;
|
|
225
225
|
interface TimelineItemProps extends HTMLStyledProps<"li"> {
|
|
226
226
|
/**
|
|
227
227
|
* The index of the timeline item.
|
|
@@ -3,7 +3,7 @@ import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.types.js"
|
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/timeline/timeline.style.d.ts
|
|
6
|
-
declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "
|
|
6
|
+
declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "description" | "root" | "item" | "indicator" | "connector", {
|
|
7
7
|
/**
|
|
8
8
|
* The alignment of the timeline.
|
|
9
9
|
*
|
|
@@ -169,7 +169,7 @@ declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "
|
|
|
169
169
|
fontSize: "lg";
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "
|
|
172
|
+
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "description" | "root" | "item" | "indicator" | "connector">>>;
|
|
173
173
|
type TimelineStyle = typeof timelineStyle;
|
|
174
174
|
//#endregion
|
|
175
175
|
export { TimelineStyle, timelineStyle };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { WithoutThemeProps } from "../../core/system/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
3
|
import { StatusScheme } from "../status/status.js";
|
|
4
|
+
import "../status/index.js";
|
|
4
5
|
import { IconButtonProps } from "../button/icon-button.js";
|
|
6
|
+
import "../button/index.js";
|
|
5
7
|
import { TooltipStyle } from "../tooltip/tooltip.style.js";
|
|
6
8
|
import { TooltipProps } from "../tooltip/tooltip.js";
|
|
7
9
|
import "../tooltip/index.js";
|
|
@@ -2,12 +2,12 @@ import { ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js"
|
|
|
2
2
|
import { GenericsComponent } from "../../core/components/index.types.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { GroupProps } from "../group/group.js";
|
|
5
|
+
import "../group/index.js";
|
|
5
6
|
import { ToggleStyle } from "./toggle.style.js";
|
|
6
7
|
import { UseToggleGroupProps } from "./use-toggle-group.js";
|
|
7
8
|
import { ReactElement } from "react";
|
|
8
9
|
|
|
9
10
|
//#region src/components/toggle/toggle-group.d.ts
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* `ToggleGroup` is a set of two-state buttons that can be toggled on or off.
|
|
13
13
|
*
|
|
@@ -4,17 +4,19 @@ import { As, Component, GenericsComponent } from "../../core/components/index.ty
|
|
|
4
4
|
import { ComponentOptions, ComponentSlot, ComponentSlotName, InitialProps, SuperProps, UseComponentPropsOptions } from "../../core/components/create-component.js";
|
|
5
5
|
import "../../core/index.js";
|
|
6
6
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
7
|
+
import "../input/index.js";
|
|
7
8
|
import { IconButtonProps } from "../button/icon-button.js";
|
|
9
|
+
import "../button/index.js";
|
|
8
10
|
import { ToggleStyle } from "./toggle.style.js";
|
|
9
11
|
import { UseToggleProps } from "./use-toggle.js";
|
|
10
12
|
import "../../index.js";
|
|
11
|
-
import * as
|
|
13
|
+
import * as react191 from "react";
|
|
12
14
|
import { ReactElement } from "react";
|
|
13
|
-
import * as
|
|
15
|
+
import * as _yamada_ui_utils16 from "@yamada-ui/utils";
|
|
14
16
|
|
|
15
17
|
//#region src/components/toggle/toggle.d.ts
|
|
16
18
|
interface ToggleProps<Y extends string = string> extends Omit<WithoutThemeProps<IconButtonProps, ToggleStyle>, "aria-label" | "onChange" | "ref" | "value">, UseToggleProps<Y>, Pick<UseInputBorderProps, "errorBorderColor">, ThemeProps<ToggleStyle> {}
|
|
17
|
-
declare const component: <H extends "fragment" | As = "div", R extends
|
|
19
|
+
declare const component: <H extends "fragment" | As = "div", R extends _yamada_ui_utils16.Dict = _yamada_ui_utils16.Dict<any>>(el: H | react191.FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root", {
|
|
18
20
|
fullRounded: {
|
|
19
21
|
true: {
|
|
20
22
|
root: {
|
|
@@ -173,7 +175,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
|
|
|
173
175
|
name,
|
|
174
176
|
className,
|
|
175
177
|
...options
|
|
176
|
-
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ?
|
|
178
|
+
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? react191.FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, TogglePropsContext: react191.Context<Partial<ToggleProps<string>> | undefined>, useTogglePropsContext: () => Partial<ToggleProps<string>> | undefined, useRootComponentProps: <Y extends _yamada_ui_utils16.Dict = _yamada_ui_utils16.Dict<any>, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root", {
|
|
177
179
|
fullRounded: {
|
|
178
180
|
true: {
|
|
179
181
|
root: {
|
|
@@ -332,7 +334,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
|
|
|
332
334
|
className,
|
|
333
335
|
withContext,
|
|
334
336
|
transferProps
|
|
335
|
-
}?: UseComponentPropsOptions<R>) => [CSSSlotObject,
|
|
337
|
+
}?: UseComponentPropsOptions<R>) => [CSSSlotObject, _yamada_ui_utils16.Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root", {
|
|
336
338
|
fullRounded: {
|
|
337
339
|
true: {
|
|
338
340
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react190 from "react";
|
|
4
4
|
import { RefObject } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toggle/use-toggle-group.d.ts
|
|
@@ -11,7 +11,7 @@ interface ToggleGroupContext {
|
|
|
11
11
|
value?: string | string[];
|
|
12
12
|
onChange?: <Y extends string = string>(value: undefined | Y) => void;
|
|
13
13
|
}
|
|
14
|
-
declare const ToggleGroupContext:
|
|
14
|
+
declare const ToggleGroupContext: react190.Context<ToggleGroupContext | undefined>, useToggleGroupContext: () => ToggleGroupContext | undefined;
|
|
15
15
|
interface UseToggleGroupProps<Y extends string | string[] = string> extends Omit<HTMLProps, "defaultValue" | "onChange" | "value"> {
|
|
16
16
|
/**
|
|
17
17
|
* The initial value of the toggle button group.
|
|
@@ -2,7 +2,8 @@ import { Merge } from "../../utils/index.js";
|
|
|
2
2
|
import { HTMLProps, HTMLRefAttributes, PropGetter } from "../../core/components/index.types.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { FieldProps } from "../field/field.js";
|
|
5
|
-
import
|
|
5
|
+
import "../field/index.js";
|
|
6
|
+
import * as react194 from "react";
|
|
6
7
|
|
|
7
8
|
//#region src/components/toggle/use-toggle.d.ts
|
|
8
9
|
interface UseToggleProps<Y extends string = string> extends FieldProps, HTMLRefAttributes<"input">, Omit<HTMLProps<"button">, "onChange" | "ref" | "value"> {
|
|
@@ -33,7 +34,7 @@ interface UseToggleProps<Y extends string = string> extends FieldProps, HTMLRefA
|
|
|
33
34
|
}
|
|
34
35
|
declare const useToggle: <Y extends string = string>(props?: UseToggleProps<Y>) => {
|
|
35
36
|
checked: boolean;
|
|
36
|
-
setChecked:
|
|
37
|
+
setChecked: react194.Dispatch<react194.SetStateAction<boolean>>;
|
|
37
38
|
getButtonProps: PropGetter<"button", undefined, Merge<HTMLProps<"button">, {
|
|
38
39
|
"aria-label": string;
|
|
39
40
|
}>>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ThemeProps } from "../../core/system/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
3
|
import { HTMLMotionProps } from "../motion/index.types.js";
|
|
4
|
+
import "../motion/index.js";
|
|
4
5
|
import { PortalProps } from "../portal/portal.js";
|
|
5
6
|
import { PopupAnimationProps } from "../popover/popover.js";
|
|
7
|
+
import "../popover/index.js";
|
|
6
8
|
import { TooltipStyle } from "./tooltip.style.js";
|
|
7
9
|
import { UseTooltipProps } from "./use-tooltip.js";
|
|
8
|
-
import * as
|
|
10
|
+
import * as react200 from "react";
|
|
9
11
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
10
12
|
|
|
11
13
|
//#region src/components/tooltip/tooltip.d.ts
|
|
@@ -29,7 +31,7 @@ interface TooltipProps extends UseTooltipProps, PropsWithChildren, PopupAnimatio
|
|
|
29
31
|
*/
|
|
30
32
|
portalProps?: Omit<PortalProps, "children">;
|
|
31
33
|
}
|
|
32
|
-
declare const TooltipPropsContext:
|
|
34
|
+
declare const TooltipPropsContext: react200.Context<Partial<TooltipProps> | undefined>, useTooltipPropsContext: () => Partial<TooltipProps> | undefined;
|
|
33
35
|
/**
|
|
34
36
|
* `Tooltip` is a component that displays short information, such as supplementary details for an element.
|
|
35
37
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react189 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/visually-hidden/visually-hidden.d.ts
|
|
7
7
|
interface VisuallyHiddenProps extends HTMLStyledProps<"span"> {}
|
|
8
|
-
declare const VisuallyHiddenPropsContext:
|
|
8
|
+
declare const VisuallyHiddenPropsContext: react189.Context<Partial<VisuallyHiddenProps> | undefined>, useVisuallyHiddenPropsContext: () => Partial<VisuallyHiddenProps> | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* `VisuallyHidden` is a common technique used in web accessibility to hide content from the visual client, but keep it readable for screen readers.
|
|
11
11
|
*
|
|
@@ -2,13 +2,14 @@ import { ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js"
|
|
|
2
2
|
import { Component } from "../../core/components/index.types.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { FlexProps } from "../flex/flex.js";
|
|
5
|
+
import "../flex/index.js";
|
|
5
6
|
import { WrapStyle } from "./wrap.style.js";
|
|
6
7
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
8
|
+
import * as react188 from "react";
|
|
8
9
|
|
|
9
10
|
//#region src/components/wrap/wrap.d.ts
|
|
10
11
|
interface WrapProps extends WithoutThemeProps<FlexProps, WrapStyle>, ThemeProps<WrapStyle> {}
|
|
11
|
-
declare const WrapPropsContext:
|
|
12
|
+
declare const WrapPropsContext: react188.Context<Partial<WrapProps> | undefined>, useWrapPropsContext: () => Partial<WrapProps> | undefined;
|
|
12
13
|
/**
|
|
13
14
|
* `Wrap` is a component that has `wrap` set on `Flex`. It inherits convenient style shorthand from `Flex`.
|
|
14
15
|
*
|
|
@@ -3,9 +3,8 @@ import { ComponentSlotStyle, ComponentStyle, System, WithoutThemeProps } from ".
|
|
|
3
3
|
import { StyledOptions } from "../system/styled.js";
|
|
4
4
|
import "../system/index.js";
|
|
5
5
|
import { CSSObject, CSSSlotObject } from "../css/index.types.js";
|
|
6
|
-
import "../css/index.js";
|
|
7
6
|
import { As, Component as Component$1, HTMLStyledProps } from "./index.types.js";
|
|
8
|
-
import * as
|
|
7
|
+
import * as react156 from "react";
|
|
9
8
|
import { FC, FunctionComponent } from "react";
|
|
10
9
|
|
|
11
10
|
//#region src/core/components/create-component.d.ts
|
|
@@ -36,8 +35,8 @@ declare function createComponent<Y extends object = {}, M extends ComponentStyle
|
|
|
36
35
|
className,
|
|
37
36
|
...options
|
|
38
37
|
}?: ComponentOptions) => (initialProps?: InitialProps<H>, ...superProps: SuperProps<H>[]) => Component<D_1, H>;
|
|
39
|
-
ComponentContext:
|
|
40
|
-
PropsContext:
|
|
38
|
+
ComponentContext: react156.Context<D>;
|
|
39
|
+
PropsContext: react156.Context<Partial<Y> | undefined>;
|
|
41
40
|
useComponentContext: () => D;
|
|
42
41
|
usePropsContext: () => Partial<Y> | undefined;
|
|
43
42
|
withContext: <D_1 extends AsWithFragment = "div", H extends Y = Y, R extends keyof H = keyof H>(el: D_1 | FC<WithoutThemeProps<H, M, R>>, {
|
|
@@ -59,16 +58,16 @@ declare function createSlotComponent<Y extends object = {}, M extends ComponentS
|
|
|
59
58
|
className,
|
|
60
59
|
...options
|
|
61
60
|
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => Component<H, R>;
|
|
62
|
-
ComponentContext:
|
|
63
|
-
PropsContext:
|
|
64
|
-
StyleContext:
|
|
61
|
+
ComponentContext: react156.Context<D>;
|
|
62
|
+
PropsContext: react156.Context<Partial<Y> | undefined>;
|
|
63
|
+
StyleContext: react156.Context<CSSSlotObject<ComponentSlotName<M>>>;
|
|
65
64
|
useClassNames: () => {
|
|
66
65
|
[key: string]: string;
|
|
67
66
|
};
|
|
68
67
|
useComponentContext: () => D;
|
|
69
68
|
usePropsContext: () => Partial<Y> | undefined;
|
|
70
69
|
useStyleContext: () => CSSSlotObject<ComponentSlotName<M>>;
|
|
71
|
-
withContext: <H extends AsWithFragment = "div", R extends Dict = (H extends keyof
|
|
70
|
+
withContext: <H extends AsWithFragment = "div", R extends Dict = (H extends keyof react156.JSX.IntrinsicElements ? HTMLStyledProps<H> : Dict<any>)>(el: FC<R> | H, slot?: ComponentSlot<ComponentSlotName<M>>, {
|
|
72
71
|
name,
|
|
73
72
|
className,
|
|
74
73
|
withContext,
|
|
@@ -2,7 +2,6 @@ import { Dict } from "../../utils/index.js";
|
|
|
2
2
|
import { ComponentSlotStyle, ComponentStyle, WithoutThemeProps } from "../system/index.types.js";
|
|
3
3
|
import "../system/index.js";
|
|
4
4
|
import { CSSObject, CSSSlotObject } from "../css/index.types.js";
|
|
5
|
-
import "../css/index.js";
|
|
6
5
|
import { ComponentSlot, ComponentSlotName } from "./create-component.js";
|
|
7
6
|
|
|
8
7
|
//#region src/core/components/use-component-style.d.ts
|
|
@@ -3,7 +3,6 @@ import { System, UsageTheme } from "../system/index.types.js";
|
|
|
3
3
|
import { ThemeToken } from "../system/create-system.js";
|
|
4
4
|
import "../system/index.js";
|
|
5
5
|
import { CSSFunction, CSSProperties } from "./index.types.js";
|
|
6
|
-
import "./config.js";
|
|
7
6
|
|
|
8
7
|
//#region src/core/css/utils.d.ts
|
|
9
8
|
interface TransformOptions {
|
|
@@ -30,7 +30,6 @@ import { css, getStyle, transformConditionalValue } from "./css/css.js";
|
|
|
30
30
|
import { mergeCSS } from "./css/merge-css.js";
|
|
31
31
|
import { getCSS, useCSS } from "./css/use-css.js";
|
|
32
32
|
import { useInjectVarsIntoCss, useInjectVarsIntoProps } from "./css/use-inject-vars.js";
|
|
33
|
-
import "./css/index.js";
|
|
34
33
|
import { As, Component, ComponentArgs, DOMElement, GenericsComponent, HTMLElementProps, HTMLProps, HTMLRefAttributes, HTMLStyledProps, HTMLStyledPropsWithoutAs, HTMLStyledPropsWithoutRef, OmitProps, PropGetter, RequiredPropGetter, StyledComponent, StyledProps, WithoutAs, WithoutRef } from "./components/index.types.js";
|
|
35
34
|
import { ComponentOptions, ComponentSlot, ComponentSlotName, ComponentWithContextOptions, InitialProps, SuperProps, SuperWithoutThemeProps, UseComponentPropsOptions, createComponent, createSlotComponent } from "./components/create-component.js";
|
|
36
35
|
import { UseComponentSlotStyleOptions, UseComponentStyleOptions, getSlotClassName, mergeSlotCSS, useComponentSlotStyle, useComponentStyle } from "./components/use-component-style.js";
|
|
@@ -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 react29 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: react29.Context<ColorModeContext>;
|
|
15
15
|
interface ColorModeProviderProps extends PropsWithChildren {
|
|
16
16
|
/**
|
|
17
17
|
* The forced color mode.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentSlotStyle, ComponentStyle, DefineThemeAnimationTokens, DefineThemeBreakpointTokens, DefineThemeColorSchemeSemanticTokens, DefineThemeColorSemanticTokens, DefineThemeKeyframeTokens, DefineThemeSchemeTokens, DefineThemeTokens, ThemeConfig, UsageTheme } from "./index.types.js";
|
|
2
2
|
import { CSSAnimationObject, CSSModifierObject, CSSObject, CSSPropObject, CSSSlotObject } from "../css/index.types.js";
|
|
3
|
-
import "../css/index.js";
|
|
4
3
|
|
|
5
4
|
//#region src/core/system/config.d.ts
|
|
6
5
|
interface DefineConfig {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Dict } from "../../utils/index.js";
|
|
2
2
|
import { DefineThemeValue, System, ThemeConfig, UsageTheme } from "./index.types.js";
|
|
3
3
|
import { CSSAnimationObject, CSSModifierObject } from "../css/index.types.js";
|
|
4
|
-
import "../css/index.js";
|
|
5
4
|
|
|
6
5
|
//#region src/core/system/create-system.d.ts
|
|
7
6
|
type VariableResponsiveValue = Dict<[DefineThemeValue, DefineThemeValue] | DefineThemeValue>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentStyle, ThemeProps } from "./index.types.js";
|
|
2
2
|
import { StyledOptions } from "./styled.js";
|
|
3
3
|
import { CSSModifierObject, CSSPropObject } from "../css/index.types.js";
|
|
4
|
-
import "../css/index.js";
|
|
5
4
|
import { As, DOMElement, StyledComponent } from "../components/index.types.js";
|
|
6
5
|
import "../components/index.js";
|
|
7
6
|
import { FC } from "react";
|
|
@@ -4,7 +4,6 @@ import { GeneratedThemeTokens } from "../generated-theme-tokens.types.js";
|
|
|
4
4
|
import { Layers } from "./layer.js";
|
|
5
5
|
import { Breakpoints } from "./breakpoint.js";
|
|
6
6
|
import { CSSAnimationObject, CSSModifierObject, CSSObject, CSSPropObject, CSSSlotObject, StyleValue, StyleValueWithCondition } from "../css/index.types.js";
|
|
7
|
-
import "../css/index.js";
|
|
8
7
|
import { RefObject } from "react";
|
|
9
8
|
|
|
10
9
|
//#region src/core/system/index.types.d.ts
|
|
@@ -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_runtime2 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_runtime2.JSX.Element;
|
|
21
21
|
declare function ThemeSchemeScript({
|
|
22
22
|
nonce,
|
|
23
23
|
...rest
|
|
24
|
-
}: StorageScriptProps<ThemeScheme>):
|
|
24
|
+
}: StorageScriptProps<ThemeScheme>): react_jsx_runtime2.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ColorModeScript, StorageScriptProps, ThemeSchemeScript, getStorageScript };
|
|
27
27
|
//# sourceMappingURL=storage-script.d.ts.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ColorScheme, ComponentStyle, System } from "./index.types.js";
|
|
2
2
|
import { CSSModifierObject, CSSPropObject } from "../css/index.types.js";
|
|
3
|
-
import "../css/index.js";
|
|
4
3
|
import { As, StyledComponent } from "../components/index.types.js";
|
|
5
4
|
import { ShouldForwardProp } from "../components/props.js";
|
|
6
5
|
import "../components/index.js";
|
|
7
|
-
import * as
|
|
6
|
+
import * as react30 from "react";
|
|
8
7
|
|
|
9
8
|
//#region src/core/system/styled.d.ts
|
|
10
|
-
declare const ColorSchemeContext:
|
|
9
|
+
declare const ColorSchemeContext: react30.Context<ColorScheme | undefined>, useColorSchemeContext: () => ColorScheme | undefined;
|
|
11
10
|
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
11
|
className?: ((system: System) => string) | string;
|
|
13
12
|
displayName?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { System, ThemeConfig, UsageTheme } from "./index.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react31 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: react31.Context<SystemContext>;
|
|
8
8
|
interface SystemProviderProps extends PropsWithChildren {
|
|
9
9
|
/**
|
|
10
10
|
* The config of the yamada ui.
|
|
@@ -4,7 +4,6 @@ import { Breakpoints } from "./breakpoint.js";
|
|
|
4
4
|
import { ThemeToken, VariableTokens } from "./create-system.js";
|
|
5
5
|
import "./index.js";
|
|
6
6
|
import { CSSProperties, StyleValueWithCondition } from "../css/index.types.js";
|
|
7
|
-
import "../css/index.js";
|
|
8
7
|
|
|
9
8
|
//#region src/core/system/var.d.ts
|
|
10
9
|
declare function transformInterpolation(value: any, callback: (value: string, fallbackValue?: string) => string): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LoadingMethod } from "../../core/system/index.types.js";
|
|
2
2
|
import { LoadingOptions } from "../../components/loading/loading-provider.js";
|
|
3
|
+
import "../../components/loading/index.js";
|
|
3
4
|
import { DependencyList } from "react";
|
|
4
5
|
|
|
5
6
|
//#region src/hooks/use-async-callback/index.d.ts
|
|
@@ -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 react26 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/use-breakpoint/use-breakpoint-state.d.ts
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ import * as react39 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, react26.Dispatch<react26.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 react15 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>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "
|
|
68
|
+
}?: UseClickableProps<Y, M>) => (Omit<UseClickableProps<Y, M>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "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>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "
|
|
74
|
+
onKeyDown: react15.KeyboardEventHandler<Y> | undefined;
|
|
75
|
+
onKeyUp: react15.KeyboardEventHandler<Y> | undefined;
|
|
76
|
+
onMouseDown: react15.MouseEventHandler<Y> | undefined;
|
|
77
|
+
onMouseLeave: react15.MouseEventHandler<Y> | undefined;
|
|
78
|
+
onMouseOver: react15.MouseEventHandler<Y> | undefined;
|
|
79
|
+
onMouseUp: react15.MouseEventHandler<Y> | undefined;
|
|
80
|
+
}) | (Omit<UseClickableProps<Y, M>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
81
81
|
ref: (node: any) => void;
|
|
82
82
|
"aria-disabled": "true" | undefined;
|
|
83
83
|
"data-active": string | undefined;
|
|
@@ -4,6 +4,7 @@ import "../../core/index.js";
|
|
|
4
4
|
import { Descendant, DescendantProps } from "../use-descendants/index.js";
|
|
5
5
|
import { UseDisclosureProps } from "../use-disclosure/use-disclosure.js";
|
|
6
6
|
import { UsePopoverProps } from "../../components/popover/use-popover.js";
|
|
7
|
+
import "../../components/popover/index.js";
|
|
7
8
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
9
|
import * as react1 from "react";
|
|
9
10
|
import { JSXElementConstructor, ReactNode, RefObject } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react14 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: react14.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 react21 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: react21.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 react22 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/use-hover/index.d.ts
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import * as react15 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: react22.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 react23 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: react23.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 react24 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 [react24.RefObject<Y | null>, ObserverRect];
|
|
11
11
|
declare const useElementSize: <Y extends HTMLElement = any>() => {
|
|
12
|
-
ref:
|
|
12
|
+
ref: react24.RefObject<Y | null>;
|
|
13
13
|
height: number;
|
|
14
14
|
width: number;
|
|
15
15
|
};
|