@yamada-ui/react 2.1.8-dev-20260408054356 → 2.1.8-dev-20260408063728
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/motion/transition.cjs +2 -2
- package/dist/cjs/components/motion/transition.cjs.map +1 -1
- package/dist/cjs/core/components/create-component.cjs.map +1 -1
- package/dist/cjs/core/components/props.cjs +1 -0
- package/dist/cjs/core/components/props.cjs.map +1 -1
- package/dist/esm/components/motion/transition.js +2 -2
- package/dist/esm/components/motion/transition.js.map +1 -1
- package/dist/esm/core/components/create-component.js.map +1 -1
- package/dist/esm/core/components/props.js +1 -0
- package/dist/esm/core/components/props.js.map +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -4
- 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/airy/airy.d.ts +2 -3
- package/dist/types/components/alert/alert.d.ts +2 -5
- package/dist/types/components/alert/alert.style.d.ts +1 -1
- package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -3
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.d.ts +2 -4
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -7
- 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 +0 -1
- package/dist/types/components/button/button.d.ts +2 -3
- package/dist/types/components/button/icon-button.d.ts +2 -2
- package/dist/types/components/calendar/calendar.d.ts +2 -3
- package/dist/types/components/calendar/calendar.style.d.ts +2 -2
- package/dist/types/components/calendar/use-calendar.d.ts +8 -9
- package/dist/types/components/card/card.d.ts +2 -2
- package/dist/types/components/carousel/carousel.d.ts +2 -3
- 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/area-chart.d.ts +2 -2
- package/dist/types/components/chart/bar-chart.d.ts +2 -2
- package/dist/types/components/chart/chart.d.ts +5 -5
- package/dist/types/components/chart/composed-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/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 +0 -2
- package/dist/types/components/checkbox/checkbox.d.ts +4 -5
- package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -3
- package/dist/types/components/checkbox/use-checkbox.d.ts +0 -1
- package/dist/types/components/checkbox-card/checkbox-card-group.d.ts +0 -3
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +4 -6
- package/dist/types/components/circle-progress/circle-progress.d.ts +2 -3
- package/dist/types/components/close-button/close-button.d.ts +2 -3
- package/dist/types/components/code/code.d.ts +2 -2
- package/dist/types/components/collapse/collapse.d.ts +2 -3
- package/dist/types/components/color-picker/color-picker.d.ts +2 -6
- 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 -5
- package/dist/types/components/color-selector/color-selector.d.ts +2 -6
- package/dist/types/components/color-selector/use-color-selector.d.ts +3 -5
- 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 -5
- package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
- package/dist/types/components/date-picker/use-date-picker.d.ts +4 -7
- package/dist/types/components/drawer/drawer.d.ts +2 -5
- package/dist/types/components/drawer/use-drawer.d.ts +0 -2
- package/dist/types/components/dropzone/dropzone.d.ts +5 -8
- package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
- package/dist/types/components/dropzone/use-dropzone.d.ts +0 -1
- package/dist/types/components/editable/editable.d.ts +4 -5
- package/dist/types/components/editable/use-editable.d.ts +2 -3
- 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 -3
- package/dist/types/components/fade-scale/fade-scale.d.ts +0 -1
- package/dist/types/components/field/field.d.ts +3 -3
- package/dist/types/components/field/use-field-props.d.ts +8 -8
- package/dist/types/components/fieldset/fieldset.d.ts +3 -4
- package/dist/types/components/file-button/file-button.d.ts +2 -4
- package/dist/types/components/file-button/use-file-button.d.ts +18 -20
- package/dist/types/components/file-input/file-input.d.ts +2 -4
- package/dist/types/components/file-input/use-file-input.d.ts +17 -18
- package/dist/types/components/flex/flex.d.ts +2 -2
- package/dist/types/components/flip/flip.d.ts +4 -5
- 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 -4
- 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/format/use-format-byte.d.ts +0 -1
- package/dist/types/components/format/use-format-date-time.d.ts +0 -1
- package/dist/types/components/format/use-format-number.d.ts +0 -1
- 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 -3
- 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 +0 -2
- package/dist/types/components/hue-slider/hue-slider.d.ts +3 -4
- 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 -5
- 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 +0 -2
- package/dist/types/components/input/input.d.ts +2 -3
- 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 -4
- package/dist/types/components/loading/use-loading-component.d.ts +0 -1
- package/dist/types/components/mark/mark.d.ts +2 -2
- package/dist/types/components/menu/menu.d.ts +2 -3
- 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 -6
- 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 -4
- package/dist/types/components/native-select/use-native-select.d.ts +0 -1
- 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/notice/use-notice.d.ts +0 -3
- package/dist/types/components/number-input/number-input.d.ts +2 -3
- package/dist/types/components/number-input/number-input.style.d.ts +1 -1
- package/dist/types/components/number-input/use-number-input.d.ts +0 -1
- package/dist/types/components/pagination/pagination.d.ts +2 -3
- 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 -3
- package/dist/types/components/password-input/strength-meter.d.ts +2 -2
- package/dist/types/components/password-input/use-password-input.d.ts +2 -3
- package/dist/types/components/picture/picture.d.ts +0 -1
- package/dist/types/components/pin-input/pin-input.d.ts +2 -4
- package/dist/types/components/pin-input/use-pin-input.d.ts +7 -8
- package/dist/types/components/popover/popover.d.ts +2 -3
- 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 +0 -2
- package/dist/types/components/radio/radio.d.ts +4 -5
- package/dist/types/components/radio/use-radio-group.d.ts +2 -3
- package/dist/types/components/radio/use-radio.d.ts +0 -1
- package/dist/types/components/radio-card/radio-card-group.d.ts +0 -3
- package/dist/types/components/radio-card/radio-card.d.ts +4 -6
- package/dist/types/components/rating/rating.style.d.ts +2 -2
- package/dist/types/components/rating/use-rating.d.ts +11 -12
- package/dist/types/components/reorder/reorder.d.ts +2 -3
- 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 -3
- package/dist/types/components/ripple/use-ripple.d.ts +2 -2
- package/dist/types/components/rotate/rotate.d.ts +2 -3
- package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
- package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -3
- package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/types/components/segmented-control/segmented-control.d.ts +2 -3
- 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 -10
- package/dist/types/components/select/select.d.ts +2 -4
- package/dist/types/components/select/select.style.d.ts +1 -1
- package/dist/types/components/select/use-select.d.ts +4 -6
- package/dist/types/components/separator/separator.d.ts +2 -2
- package/dist/types/components/simple-grid/simple-grid.d.ts +2 -3
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/slide/slide.d.ts +2 -3
- package/dist/types/components/slide-fade/slide-fade.d.ts +2 -3
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/slider/use-slider.d.ts +2 -3
- package/dist/types/components/snacks/snacks.d.ts +0 -2
- package/dist/types/components/snacks/use-snacks.d.ts +0 -1
- 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/switch/use-switch.d.ts +0 -1
- package/dist/types/components/table/table.d.ts +2 -4
- 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/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 -4
- 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 +0 -2
- package/dist/types/components/toggle/toggle-group.d.ts +1 -1
- package/dist/types/components/toggle/toggle.d.ts +5 -7
- package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
- package/dist/types/components/toggle/use-toggle.d.ts +2 -3
- package/dist/types/components/tooltip/tooltip.d.ts +2 -4
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/types/components/wrap/wrap.d.ts +2 -3
- package/dist/types/core/components/create-component.d.ts +11 -9
- package/dist/types/core/components/index.types.d.ts +1 -0
- package/dist/types/core/components/props.d.ts +6 -10
- package/dist/types/core/components/use-component-style.d.ts +2 -0
- package/dist/types/core/components/utils.d.ts +1 -0
- package/dist/types/core/constant.d.ts +1 -0
- package/dist/types/core/css/calc.d.ts +1 -0
- package/dist/types/core/css/config.d.ts +1 -0
- package/dist/types/core/css/css.d.ts +1 -0
- package/dist/types/core/css/index.types.d.ts +1 -0
- package/dist/types/core/css/styles.d.ts +1 -0
- package/dist/types/core/css/token.d.ts +1 -0
- package/dist/types/core/css/use-css.d.ts +1 -0
- package/dist/types/core/css/utils.d.ts +2 -0
- package/dist/types/core/generated-theme-tokens.types.d.ts +1 -0
- package/dist/types/core/index.d.ts +2 -0
- package/dist/types/core/system/color-mode-provider.d.ts +2 -2
- package/dist/types/core/system/config.d.ts +1 -0
- package/dist/types/core/system/create-system.d.ts +1 -0
- package/dist/types/core/system/factory.d.ts +1 -0
- package/dist/types/core/system/index.types.d.ts +1 -0
- package/dist/types/core/system/storage-script.d.ts +3 -3
- package/dist/types/core/system/styled.d.ts +3 -2
- package/dist/types/core/system/system-provider.d.ts +2 -2
- package/dist/types/core/system/var.d.ts +2 -0
- package/dist/types/hooks/use-async-callback/index.d.ts +0 -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 -13
- 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/index.d.ts +0 -103
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
- package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -3
- package/dist/types/utils/children.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
|
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { Descendant } from "../../hooks/use-descendants/index.js";
|
|
5
5
|
import "../../index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react815 from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/use-tabs.d.ts
|
|
9
|
-
declare const TabDescendantsContext:
|
|
9
|
+
declare const TabDescendantsContext: react815.Context<{
|
|
10
10
|
active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
11
11
|
count: (props?: Partial<{}> | undefined) => number;
|
|
12
12
|
destroy: () => void;
|
|
@@ -25,7 +25,7 @@ declare const TabDescendantsContext: react929.Context<{
|
|
|
25
25
|
prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
26
26
|
register: (props?: {
|
|
27
27
|
disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
|
|
28
|
-
} | undefined) =>
|
|
28
|
+
} | undefined) => react815.RefCallback<HTMLButtonElement>;
|
|
29
29
|
unregister: (node?: HTMLButtonElement | null | undefined) => void;
|
|
30
30
|
value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
31
31
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
|
|
@@ -51,12 +51,12 @@ declare const TabDescendantsContext: react929.Context<{
|
|
|
51
51
|
prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
52
52
|
register: (props?: {
|
|
53
53
|
disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
|
|
54
|
-
} | undefined) =>
|
|
54
|
+
} | undefined) => react815.RefCallback<HTMLButtonElement>;
|
|
55
55
|
unregister: (node?: HTMLButtonElement | null | undefined) => void;
|
|
56
56
|
value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
57
57
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
|
|
58
58
|
};
|
|
59
|
-
register:
|
|
59
|
+
register: react815.RefCallback<HTMLButtonElement>;
|
|
60
60
|
}, useTabDescendants: () => {
|
|
61
61
|
active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
62
62
|
count: (props?: Partial<{}> | undefined) => number;
|
|
@@ -76,12 +76,12 @@ declare const TabDescendantsContext: react929.Context<{
|
|
|
76
76
|
prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
77
77
|
register: (props?: {
|
|
78
78
|
disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
|
|
79
|
-
} | undefined) =>
|
|
79
|
+
} | undefined) => react815.RefCallback<HTMLButtonElement>;
|
|
80
80
|
unregister: (node?: HTMLButtonElement | null | undefined) => void;
|
|
81
81
|
value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
82
82
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
|
|
83
83
|
};
|
|
84
|
-
declare const TabPanelDescendantsContext:
|
|
84
|
+
declare const TabPanelDescendantsContext: react815.Context<{
|
|
85
85
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
86
86
|
count: (props?: Partial<{}> | undefined) => number;
|
|
87
87
|
destroy: () => void;
|
|
@@ -100,7 +100,7 @@ declare const TabPanelDescendantsContext: react929.Context<{
|
|
|
100
100
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}> | undefined;
|
|
101
101
|
register: (props?: {
|
|
102
102
|
disabled?: boolean | ((node: HTMLDivElement) => boolean) | undefined;
|
|
103
|
-
} | undefined) =>
|
|
103
|
+
} | undefined) => react815.RefCallback<HTMLDivElement>;
|
|
104
104
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
105
105
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, {}> | undefined;
|
|
106
106
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}>[];
|
|
@@ -126,12 +126,12 @@ declare const TabPanelDescendantsContext: react929.Context<{
|
|
|
126
126
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}> | undefined;
|
|
127
127
|
register: (props?: {
|
|
128
128
|
disabled?: boolean | ((node: HTMLDivElement) => boolean) | undefined;
|
|
129
|
-
} | undefined) =>
|
|
129
|
+
} | undefined) => react815.RefCallback<HTMLDivElement>;
|
|
130
130
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
131
131
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, {}> | undefined;
|
|
132
132
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}>[];
|
|
133
133
|
};
|
|
134
|
-
register:
|
|
134
|
+
register: react815.RefCallback<HTMLDivElement>;
|
|
135
135
|
}, useTabPanelDescendants: () => {
|
|
136
136
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
137
137
|
count: (props?: Partial<{}> | undefined) => number;
|
|
@@ -151,13 +151,13 @@ declare const TabPanelDescendantsContext: react929.Context<{
|
|
|
151
151
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}> | undefined;
|
|
152
152
|
register: (props?: {
|
|
153
153
|
disabled?: boolean | ((node: HTMLDivElement) => boolean) | undefined;
|
|
154
|
-
} | undefined) =>
|
|
154
|
+
} | undefined) => react815.RefCallback<HTMLDivElement>;
|
|
155
155
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
156
156
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, {}> | undefined;
|
|
157
157
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}>[];
|
|
158
158
|
};
|
|
159
159
|
interface TabsContext extends Omit<UseTabsReturn, "getRootProps" | "tabDescendants" | "tabPanelDescendants"> {}
|
|
160
|
-
declare const TabsContext:
|
|
160
|
+
declare const TabsContext: react815.Context<TabsContext>, useTabsContext: () => TabsContext;
|
|
161
161
|
interface UseTabsProps extends Omit<HTMLProps, "onChange"> {
|
|
162
162
|
/**
|
|
163
163
|
* The index of the selected tab.
|
|
@@ -200,8 +200,8 @@ declare const useTabs: ({
|
|
|
200
200
|
index: number;
|
|
201
201
|
manual: boolean;
|
|
202
202
|
orientation: Orientation;
|
|
203
|
-
setFocusedIndex:
|
|
204
|
-
setIndex:
|
|
203
|
+
setFocusedIndex: react815.Dispatch<react815.SetStateAction<number>>;
|
|
204
|
+
setIndex: react815.Dispatch<react815.SetStateAction<number>>;
|
|
205
205
|
tabDescendants: {
|
|
206
206
|
active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
207
207
|
count: (props?: Partial<{}> | undefined) => number;
|
|
@@ -221,7 +221,7 @@ declare const useTabs: ({
|
|
|
221
221
|
prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
222
222
|
register: (props?: {
|
|
223
223
|
disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
|
|
224
|
-
} | undefined) =>
|
|
224
|
+
} | undefined) => react815.RefCallback<HTMLButtonElement>;
|
|
225
225
|
unregister: (node?: HTMLButtonElement | null | undefined) => void;
|
|
226
226
|
value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
|
|
227
227
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLButtonElement, {}>[];
|
|
@@ -245,7 +245,7 @@ declare const useTabs: ({
|
|
|
245
245
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}> | undefined;
|
|
246
246
|
register: (props?: {
|
|
247
247
|
disabled?: boolean | ((node: HTMLDivElement) => boolean) | undefined;
|
|
248
|
-
} | undefined) =>
|
|
248
|
+
} | undefined) => react815.RefCallback<HTMLDivElement>;
|
|
249
249
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
250
250
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, {}> | undefined;
|
|
251
251
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLDivElement, {}>[];
|
|
@@ -3,7 +3,7 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
|
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { TagStyle } from "./tag.style.js";
|
|
5
5
|
import "../../index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react812 from "react";
|
|
7
7
|
import { MouseEventHandler, ReactNode } from "react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/tag/tag.d.ts
|
|
@@ -39,7 +39,7 @@ interface TagProps extends HTMLStyledProps<"span">, ThemeProps<TagStyle> {
|
|
|
39
39
|
*/
|
|
40
40
|
onClose?: MouseEventHandler<HTMLElement>;
|
|
41
41
|
}
|
|
42
|
-
declare const TagPropsContext:
|
|
42
|
+
declare const TagPropsContext: react812.Context<Partial<TagProps> | undefined>, useTagPropsContext: () => Partial<TagProps> | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* `Tag` is a component used to categorize or organize items using keywords that describe them.
|
|
45
45
|
*
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
|
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tag/tag.style.d.ts
|
|
5
|
-
declare const tagStyle: ComponentSlotStyle<"content" | "icon" | "root" | "
|
|
5
|
+
declare const tagStyle: ComponentSlotStyle<"content" | "icon" | "root" | "endIcon" | "startIcon" | "closeButton", {
|
|
6
6
|
/**
|
|
7
7
|
* If `true`, the tag is full rounded. Else, it'll be slightly round.
|
|
8
8
|
*
|
|
@@ -4,7 +4,7 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
|
|
|
4
4
|
import "../../core/index.js";
|
|
5
5
|
import { TextStyle } from "./text.style.js";
|
|
6
6
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react809 from "react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/text/text.d.ts
|
|
10
10
|
interface TextProps extends HTMLStyledProps<"p">, ThemeProps<TextStyle> {
|
|
@@ -21,7 +21,7 @@ interface TextProps extends HTMLStyledProps<"p">, ThemeProps<TextStyle> {
|
|
|
21
21
|
*/
|
|
22
22
|
decoration?: CSSProps["textDecoration"];
|
|
23
23
|
}
|
|
24
|
-
declare const TextPropsContext:
|
|
24
|
+
declare const TextPropsContext: react809.Context<Partial<TextProps> | undefined>, useTextPropsContext: () => Partial<TextProps> | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* `Text` is a component that represents a paragraph of text. By default, it renders a `p` element.
|
|
27
27
|
*
|
|
@@ -2,17 +2,15 @@ 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";
|
|
6
5
|
import { UseInputBorderProps } from "../input/use-input-border.js";
|
|
7
|
-
import "../input/index.js";
|
|
8
6
|
import { TextareaStyle } from "./textarea.style.js";
|
|
9
7
|
import { UseTextareaProps } from "./use-textarea.js";
|
|
10
8
|
import "../../index.js";
|
|
11
|
-
import * as
|
|
9
|
+
import * as react810 from "react";
|
|
12
10
|
|
|
13
11
|
//#region src/components/textarea/textarea.d.ts
|
|
14
12
|
interface TextareaProps extends HTMLStyledProps<"textarea">, ThemeProps<TextareaStyle>, UseInputBorderProps, FieldProps, UseTextareaProps {}
|
|
15
|
-
declare const TextareaPropsContext:
|
|
13
|
+
declare const TextareaPropsContext: react810.Context<Partial<TextareaProps> | undefined>, useTextareaPropsContext: () => Partial<TextareaProps> | undefined;
|
|
16
14
|
/**
|
|
17
15
|
* `Textarea` is a component used to obtain multi-line text input.
|
|
18
16
|
*
|
|
@@ -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 react811 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: react811.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_runtime2 from "react/jsx-runtime";
|
|
8
|
+
import * as react808 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: react808.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" | "item" | "root" | "description" | "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" | "item" | "root" | "description" | "indicator" | "connector">>>, keyof TimelineRootProps>) => react_jsx_runtime2.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" | "item" | "root" | "description" | "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" | "item" | "root" | "description" | "indicator" | "connector">>>;
|
|
173
173
|
type TimelineStyle = typeof timelineStyle;
|
|
174
174
|
//#endregion
|
|
175
175
|
export { TimelineStyle, timelineStyle };
|
|
@@ -1,9 +1,7 @@
|
|
|
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";
|
|
5
4
|
import { IconButtonProps } from "../button/icon-button.js";
|
|
6
|
-
import "../button/index.js";
|
|
7
5
|
import { TooltipStyle } from "../tooltip/tooltip.style.js";
|
|
8
6
|
import { TooltipProps } from "../tooltip/tooltip.js";
|
|
9
7
|
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";
|
|
6
5
|
import { ToggleStyle } from "./toggle.style.js";
|
|
7
6
|
import { UseToggleGroupProps } from "./use-toggle-group.js";
|
|
8
7
|
import { ReactElement } from "react";
|
|
9
8
|
|
|
10
9
|
//#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,19 +4,17 @@ 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";
|
|
8
7
|
import { IconButtonProps } from "../button/icon-button.js";
|
|
9
|
-
import "../button/index.js";
|
|
10
8
|
import { ToggleStyle } from "./toggle.style.js";
|
|
11
9
|
import { UseToggleProps } from "./use-toggle.js";
|
|
12
10
|
import "../../index.js";
|
|
13
|
-
import * as
|
|
11
|
+
import * as react67 from "react";
|
|
14
12
|
import { ReactElement } from "react";
|
|
15
|
-
import * as
|
|
13
|
+
import * as _yamada_ui_utils0 from "@yamada-ui/utils";
|
|
16
14
|
|
|
17
15
|
//#region src/components/toggle/toggle.d.ts
|
|
18
16
|
interface ToggleProps<Y extends string = string> extends Omit<WithoutThemeProps<IconButtonProps, ToggleStyle>, "aria-label" | "onChange" | "ref" | "value">, UseToggleProps<Y>, Pick<UseInputBorderProps, "errorBorderColor">, ThemeProps<ToggleStyle> {}
|
|
19
|
-
declare const component: <H extends "fragment" | As = "div", R extends
|
|
17
|
+
declare const component: <H extends "fragment" | As = "div", R extends _yamada_ui_utils0.Dict = _yamada_ui_utils0.Dict<any>>(el: H | react67.FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root", {
|
|
20
18
|
fullRounded: {
|
|
21
19
|
true: {
|
|
22
20
|
root: {
|
|
@@ -175,7 +173,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
|
|
|
175
173
|
name,
|
|
176
174
|
className,
|
|
177
175
|
...options
|
|
178
|
-
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ?
|
|
176
|
+
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? react67.FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, TogglePropsContext: react67.Context<Partial<ToggleProps<string>> | undefined>, useTogglePropsContext: () => Partial<ToggleProps<string>> | undefined, useRootComponentProps: <Y extends _yamada_ui_utils0.Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root", {
|
|
179
177
|
fullRounded: {
|
|
180
178
|
true: {
|
|
181
179
|
root: {
|
|
@@ -334,7 +332,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
|
|
|
334
332
|
className,
|
|
335
333
|
withContext,
|
|
336
334
|
transferProps
|
|
337
|
-
}?: UseComponentPropsOptions<R>) => [CSSSlotObject,
|
|
335
|
+
}?: UseComponentPropsOptions<R>) => [CSSSlotObject, _yamada_ui_utils0.Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root", {
|
|
338
336
|
fullRounded: {
|
|
339
337
|
true: {
|
|
340
338
|
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 react66 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: react66.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,8 +2,7 @@ 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 "
|
|
6
|
-
import * as react949 from "react";
|
|
5
|
+
import * as react70 from "react";
|
|
7
6
|
|
|
8
7
|
//#region src/components/toggle/use-toggle.d.ts
|
|
9
8
|
interface UseToggleProps<Y extends string = string> extends FieldProps, HTMLRefAttributes<"input">, Omit<HTMLProps<"button">, "onChange" | "ref" | "value"> {
|
|
@@ -34,7 +33,7 @@ interface UseToggleProps<Y extends string = string> extends FieldProps, HTMLRefA
|
|
|
34
33
|
}
|
|
35
34
|
declare const useToggle: <Y extends string = string>(props?: UseToggleProps<Y>) => {
|
|
36
35
|
checked: boolean;
|
|
37
|
-
setChecked:
|
|
36
|
+
setChecked: react70.Dispatch<react70.SetStateAction<boolean>>;
|
|
38
37
|
getButtonProps: PropGetter<"button", undefined, Merge<HTMLProps<"button">, {
|
|
39
38
|
"aria-label": string;
|
|
40
39
|
}>>;
|
|
@@ -1,13 +1,11 @@
|
|
|
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";
|
|
5
4
|
import { PortalProps } from "../portal/portal.js";
|
|
6
5
|
import { PopupAnimationProps } from "../popover/popover.js";
|
|
7
|
-
import "../popover/index.js";
|
|
8
6
|
import { TooltipStyle } from "./tooltip.style.js";
|
|
9
7
|
import { UseTooltipProps } from "./use-tooltip.js";
|
|
10
|
-
import * as
|
|
8
|
+
import * as react807 from "react";
|
|
11
9
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
12
10
|
|
|
13
11
|
//#region src/components/tooltip/tooltip.d.ts
|
|
@@ -31,7 +29,7 @@ interface TooltipProps extends UseTooltipProps, PropsWithChildren, PopupAnimatio
|
|
|
31
29
|
*/
|
|
32
30
|
portalProps?: Omit<PortalProps, "children">;
|
|
33
31
|
}
|
|
34
|
-
declare const TooltipPropsContext:
|
|
32
|
+
declare const TooltipPropsContext: react807.Context<Partial<TooltipProps> | undefined>, useTooltipPropsContext: () => Partial<TooltipProps> | undefined;
|
|
35
33
|
/**
|
|
36
34
|
* `Tooltip` is a component that displays short information, such as supplementary details for an element.
|
|
37
35
|
*
|
|
@@ -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 react805 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: react805.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,14 +2,13 @@ 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";
|
|
6
5
|
import { WrapStyle } from "./wrap.style.js";
|
|
7
6
|
import "../../index.js";
|
|
8
|
-
import * as
|
|
7
|
+
import * as react806 from "react";
|
|
9
8
|
|
|
10
9
|
//#region src/components/wrap/wrap.d.ts
|
|
11
10
|
interface WrapProps extends WithoutThemeProps<FlexProps, WrapStyle>, ThemeProps<WrapStyle> {}
|
|
12
|
-
declare const WrapPropsContext:
|
|
11
|
+
declare const WrapPropsContext: react806.Context<Partial<WrapProps> | undefined>, useWrapPropsContext: () => Partial<WrapProps> | undefined;
|
|
13
12
|
/**
|
|
14
13
|
* `Wrap` is a component that has `wrap` set on `Flex`. It inherits convenient style shorthand from `Flex`.
|
|
15
14
|
*
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AnyString, Dict, Merge } from "../../utils/index.js";
|
|
2
2
|
import { ComponentSlotStyle, ComponentStyle, System, WithoutThemeProps } from "../system/index.types.js";
|
|
3
3
|
import { StyledOptions } from "../system/styled.js";
|
|
4
|
+
import "../system/index.js";
|
|
4
5
|
import { CSSObject, CSSSlotObject } from "../css/index.types.js";
|
|
6
|
+
import "../css/index.js";
|
|
5
7
|
import { As, Component as Component$1, HTMLStyledProps } from "./index.types.js";
|
|
6
|
-
import * as
|
|
8
|
+
import * as react1037 from "react";
|
|
7
9
|
import { FC, FunctionComponent } from "react";
|
|
8
10
|
|
|
9
11
|
//#region src/core/components/create-component.d.ts
|
|
@@ -34,8 +36,8 @@ declare function createComponent<Y extends object = {}, M extends ComponentStyle
|
|
|
34
36
|
className,
|
|
35
37
|
...options
|
|
36
38
|
}?: ComponentOptions) => (initialProps?: InitialProps<H>, ...superProps: SuperProps<H>[]) => Component<D_1, H>;
|
|
37
|
-
ComponentContext:
|
|
38
|
-
PropsContext:
|
|
39
|
+
ComponentContext: react1037.Context<D>;
|
|
40
|
+
PropsContext: react1037.Context<Partial<Y> | undefined>;
|
|
39
41
|
useComponentContext: () => D;
|
|
40
42
|
usePropsContext: () => Partial<Y> | undefined;
|
|
41
43
|
withContext: <D_1 extends AsWithFragment = "div", H extends Y = Y, R extends keyof H = keyof H>(el: D_1 | FC<WithoutThemeProps<H, M, R>>, {
|
|
@@ -57,16 +59,16 @@ declare function createSlotComponent<Y extends object = {}, M extends ComponentS
|
|
|
57
59
|
className,
|
|
58
60
|
...options
|
|
59
61
|
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => Component<H, R>;
|
|
60
|
-
ComponentContext:
|
|
61
|
-
PropsContext:
|
|
62
|
-
StyleContext:
|
|
62
|
+
ComponentContext: react1037.Context<D>;
|
|
63
|
+
PropsContext: react1037.Context<Partial<Y> | undefined>;
|
|
64
|
+
StyleContext: react1037.Context<CSSSlotObject<ComponentSlotName<M>>>;
|
|
63
65
|
useClassNames: () => {
|
|
64
66
|
[key: string]: string;
|
|
65
67
|
};
|
|
66
68
|
useComponentContext: () => D;
|
|
67
69
|
usePropsContext: () => Partial<Y> | undefined;
|
|
68
70
|
useStyleContext: () => CSSSlotObject<ComponentSlotName<M>>;
|
|
69
|
-
withContext: <H extends AsWithFragment = "div", R extends Dict = (H extends keyof
|
|
71
|
+
withContext: <H extends AsWithFragment = "div", R extends Dict = (H extends keyof react1037.JSX.IntrinsicElements ? HTMLStyledProps<H> : Dict<any>)>(el: FC<R> | H, slot?: ComponentSlot<ComponentSlotName<M>>, {
|
|
70
72
|
name,
|
|
71
73
|
className,
|
|
72
74
|
withContext,
|
|
@@ -79,14 +81,14 @@ declare function createSlotComponent<Y extends object = {}, M extends ComponentS
|
|
|
79
81
|
transferProps,
|
|
80
82
|
...options
|
|
81
83
|
}?: ComponentWithContextOptions<T>) => (initialProps?: InitialProps<R>, ...superProps: SuperWithoutThemeProps<R, M, T>[]) => Component<H, R>;
|
|
82
|
-
useRootComponentProps: <Y_1 extends Dict =
|
|
84
|
+
useRootComponentProps: <Y_1 extends Dict = {}, R extends keyof Y_1 = keyof Y_1>(props: Y_1, slot?: ComponentSlot<ComponentSlotName<M>>, {
|
|
83
85
|
className,
|
|
84
86
|
withContext,
|
|
85
87
|
transferProps
|
|
86
88
|
}?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y_1, M, R>, {
|
|
87
89
|
css?: CSSObject | CSSObject[];
|
|
88
90
|
}>];
|
|
89
|
-
useSlotComponentProps: <Y_1 extends Dict =
|
|
91
|
+
useSlotComponentProps: <Y_1 extends Dict = {}>(props: Y_1, slot?: ComponentSlot<ComponentSlotName<M>>, {
|
|
90
92
|
className
|
|
91
93
|
}?: Omit<UseComponentPropsOptions, "transferProps">) => Y_1 & {
|
|
92
94
|
className: string | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Dict, Merge } from "../../utils/index.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/components/props.d.ts
|
|
4
|
-
type
|
|
4
|
+
type Optionalize<Y> = [Extract<Y, undefined>] extends [never] ? Y : Partial<Exclude<Y, undefined>>;
|
|
5
|
+
type MergeAll<Y extends (Dict | undefined)[]> = Y extends [infer M] ? Optionalize<M> : Y extends [infer D, ...infer H] ? H extends (Dict | undefined)[] ? Merge<Optionalize<D>, MergeAll<H>> : Optionalize<D> : never;
|
|
5
6
|
declare const cssProps: Set<string>;
|
|
6
7
|
type ShouldForwardProp = (prop: string) => boolean;
|
|
7
8
|
declare function createShouldForwardProp(forwardProps?: string[]): ShouldForwardProp;
|
|
@@ -12,18 +13,13 @@ interface MergePropsOptions {
|
|
|
12
13
|
mergeRef?: boolean;
|
|
13
14
|
mergeStyle?: boolean;
|
|
14
15
|
}
|
|
15
|
-
declare function mergeProps<Y extends Dict
|
|
16
|
-
|
|
17
|
-
mergeCSS,
|
|
18
|
-
mergeEvent,
|
|
19
|
-
mergeRef,
|
|
20
|
-
mergeStyle
|
|
21
|
-
}?: MergePropsOptions) => MergeAll<Y>;
|
|
16
|
+
declare function mergeProps<Y extends Dict>(...args: Y[]): (options?: MergePropsOptions) => Y;
|
|
17
|
+
declare function mergeProps<Y extends (Dict | undefined)[]>(...args: Y): (options?: MergePropsOptions) => MergeAll<Y>;
|
|
22
18
|
type CallbackProps<Y extends Dict = Dict> = (props: Y) => Y;
|
|
23
19
|
type PropsOrCallback<Y extends Dict = Dict> = CallbackProps<Y> | Y;
|
|
24
20
|
declare function chainProps<Y extends Dict = Dict>(...props: PropsOrCallback<Y>[]): (options?: MergePropsOptions) => (a: Y) => Y;
|
|
25
|
-
declare function isEqualProps<Y extends Dict, M extends Dict, D$1 extends keyof M | keyof Y>(a: Y, b: M, omitKeys?: D$1[]): boolean;
|
|
26
|
-
declare function useSplitProps<Y extends Dict, M extends keyof Y>(props: Y, keys: M[] | readonly M[]): [{ [D in M]: Y[D] }, Omit<Y, M>];
|
|
21
|
+
declare function isEqualProps<Y extends Dict, M$1 extends Dict, D$1 extends keyof M$1 | keyof Y>(a: Y, b: M$1, omitKeys?: D$1[]): boolean;
|
|
22
|
+
declare function useSplitProps<Y extends Dict, M$1 extends keyof Y>(props: Y, keys: M$1[] | readonly M$1[]): [{ [D in M$1]: Y[D] }, Omit<Y, M$1>];
|
|
27
23
|
declare function extractProps(props: Dict, keys: readonly string[] | string[]): Dict<any>;
|
|
28
24
|
declare function useExtractProps(props: Dict, keys: readonly string[] | string[]): Dict<any>;
|
|
29
25
|
//#endregion
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Dict } from "../../utils/index.js";
|
|
2
2
|
import { ComponentSlotStyle, ComponentStyle, WithoutThemeProps } from "../system/index.types.js";
|
|
3
|
+
import "../system/index.js";
|
|
3
4
|
import { CSSObject, CSSSlotObject } from "../css/index.types.js";
|
|
5
|
+
import "../css/index.js";
|
|
4
6
|
import { ComponentSlot, ComponentSlotName } from "./create-component.js";
|
|
5
7
|
|
|
6
8
|
//#region src/core/components/use-component-style.d.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyString, Dict } from "../../utils/index.js";
|
|
2
2
|
import { Breakpoint, KeyframeIdent, System, ThemePath, ThemeTokens, UsageTheme } from "../system/index.types.js";
|
|
3
|
+
import "../system/index.js";
|
|
3
4
|
import { AnySelector, ConditionProperty, ConditionProps } from "./conditions.js";
|
|
4
5
|
import { StyleProps } from "./styles.js";
|
|
5
6
|
import * as CSS from "csstype";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyString } from "../../utils/index.js";
|
|
2
2
|
import { ColorScheme } from "../system/index.types.js";
|
|
3
|
+
import "../system/index.js";
|
|
3
4
|
import { display } from "./display.js";
|
|
4
5
|
import { colorScheme } from "./color-scheme.js";
|
|
5
6
|
import { CSSContainerObject, CSSMediaObject, CSSObject, StyleValueWithCondition } from "./index.types.js";
|