@yamada-ui/react 2.1.4-dev-20260324185108 → 2.2.0-next-20260324183323
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/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs.map +1 -1
- package/dist/cjs/components/tree/index.cjs +25 -0
- package/dist/cjs/components/tree/tree.cjs +289 -0
- package/dist/cjs/components/tree/tree.cjs.map +1 -0
- package/dist/cjs/components/tree/tree.namespace.cjs +26 -0
- package/dist/cjs/components/tree/tree.namespace.cjs.map +1 -0
- package/dist/cjs/components/tree/tree.style.cjs +181 -0
- package/dist/cjs/components/tree/tree.style.cjs.map +1 -0
- package/dist/cjs/components/tree/use-tree.cjs +556 -0
- package/dist/cjs/components/tree/use-tree.cjs.map +1 -0
- package/dist/cjs/hooks/use-descendants/index.cjs +19 -9
- package/dist/cjs/hooks/use-descendants/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +42 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/modal/modal.js.map +1 -1
- package/dist/esm/components/tree/index.js +6 -0
- package/dist/esm/components/tree/tree.js +285 -0
- package/dist/esm/components/tree/tree.js.map +1 -0
- package/dist/esm/components/tree/tree.namespace.js +21 -0
- package/dist/esm/components/tree/tree.namespace.js.map +1 -0
- package/dist/esm/components/tree/tree.style.js +181 -0
- package/dist/esm/components/tree/tree.style.js.map +1 -0
- package/dist/esm/components/tree/use-tree.js +547 -0
- package/dist/esm/components/tree/use-tree.js.map +1 -0
- package/dist/esm/hooks/use-descendants/index.js +19 -9
- package/dist/esm/hooks/use-descendants/index.js.map +1 -1
- package/dist/esm/index.js +23 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/accordion.style.d.ts +1 -1
- package/dist/types/components/accordion/use-accordion.d.ts +11 -11
- package/dist/types/components/airy/airy.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +2 -2
- package/dist/types/components/alert/alert.style.d.ts +1 -1
- package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
- package/dist/types/components/avatar/avatar.d.ts +5 -5
- package/dist/types/components/avatar/avatar.style.d.ts +1 -1
- package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
- package/dist/types/components/badge/badge.d.ts +2 -2
- package/dist/types/components/bleed/bleed.d.ts +2 -2
- package/dist/types/components/blockquote/blockquote.d.ts +2 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
- package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/button/icon-button.d.ts +2 -2
- package/dist/types/components/calendar/calendar.d.ts +2 -2
- package/dist/types/components/calendar/calendar.style.d.ts +2 -2
- package/dist/types/components/calendar/use-calendar.d.ts +8 -8
- package/dist/types/components/card/card.d.ts +2 -2
- package/dist/types/components/carousel/carousel.d.ts +2 -2
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/carousel/use-carousel.d.ts +3 -3
- package/dist/types/components/center/center.d.ts +2 -2
- package/dist/types/components/chart/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/pie-chart.d.ts +2 -2
- package/dist/types/components/chart/radar-chart.d.ts +2 -2
- package/dist/types/components/chart/radial-chart.d.ts +2 -2
- package/dist/types/components/chart/use-chart.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +5 -5
- package/dist/types/components/checkbox/checkbox.style.d.ts +1 -1
- package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +5 -5
- package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
- package/dist/types/components/circle-progress/circle-progress.d.ts +2 -2
- package/dist/types/components/close-button/close-button.d.ts +2 -2
- package/dist/types/components/code/code.d.ts +2 -2
- package/dist/types/components/collapse/collapse.d.ts +2 -2
- package/dist/types/components/color-picker/color-picker.d.ts +2 -2
- package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
- package/dist/types/components/color-picker/use-color-picker.d.ts +2 -2
- package/dist/types/components/color-selector/color-selector.d.ts +2 -2
- package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
- package/dist/types/components/color-selector/use-color-selector.d.ts +3 -3
- package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
- package/dist/types/components/container/container.d.ts +2 -2
- package/dist/types/components/data-list/data-list.d.ts +2 -2
- package/dist/types/components/data-list/data-list.style.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +2 -2
- package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
- package/dist/types/components/drawer/drawer.d.ts +2 -2
- package/dist/types/components/drawer/drawer.style.d.ts +2 -2
- package/dist/types/components/dropzone/dropzone.d.ts +5 -5
- package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
- package/dist/types/components/editable/editable.d.ts +4 -4
- package/dist/types/components/editable/use-editable.d.ts +2 -2
- package/dist/types/components/em/em.d.ts +2 -2
- package/dist/types/components/empty-state/empty-state.d.ts +2 -2
- package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
- package/dist/types/components/fade/fade.d.ts +2 -2
- package/dist/types/components/field/field.d.ts +3 -3
- package/dist/types/components/field/use-field-props.d.ts +4 -4
- package/dist/types/components/fieldset/fieldset.d.ts +3 -3
- package/dist/types/components/file-button/file-button.d.ts +2 -2
- package/dist/types/components/file-button/use-file-button.d.ts +18 -18
- package/dist/types/components/file-input/file-input.d.ts +2 -2
- package/dist/types/components/file-input/file-input.style.d.ts +1 -1
- package/dist/types/components/file-input/use-file-input.d.ts +15 -15
- package/dist/types/components/flex/flex.d.ts +2 -2
- package/dist/types/components/flip/flip.d.ts +4 -4
- package/dist/types/components/flip/flip.style.d.ts +1 -1
- package/dist/types/components/float/float.d.ts +2 -2
- package/dist/types/components/form/form.d.ts +3 -3
- package/dist/types/components/form/form.style.d.ts +1 -1
- package/dist/types/components/format/format-byte.d.ts +4 -4
- package/dist/types/components/format/format-date-time.d.ts +4 -4
- package/dist/types/components/format/format-number.d.ts +2 -2
- package/dist/types/components/grid/grid-item.d.ts +2 -2
- package/dist/types/components/grid/grid.d.ts +2 -2
- package/dist/types/components/group/group.d.ts +2 -2
- package/dist/types/components/group/use-group.d.ts +2 -2
- package/dist/types/components/heading/heading.d.ts +2 -2
- package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
- package/dist/types/components/icon/icon.d.ts +5 -5
- package/dist/types/components/image/image.d.ts +2 -2
- package/dist/types/components/indicator/indicator.d.ts +4 -4
- package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
- package/dist/types/components/input/input-addon.d.ts +2 -2
- package/dist/types/components/input/input-element.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/kbd/kbd.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/link-box/link-box.d.ts +2 -2
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/list/list.style.d.ts +2 -2
- package/dist/types/components/loading/loading-provider.d.ts +2 -2
- package/dist/types/components/loading/loading.d.ts +3 -3
- package/dist/types/components/mark/mark.d.ts +2 -2
- package/dist/types/components/menu/menu.d.ts +2 -2
- package/dist/types/components/menu/menu.style.d.ts +2 -2
- package/dist/types/components/menu/use-menu.d.ts +11 -11
- package/dist/types/components/modal/modal.d.ts +3 -3
- package/dist/types/components/modal/modal.style.d.ts +2 -2
- package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
- package/dist/types/components/native-accordion/native-accordion.style.d.ts +2 -2
- package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
- package/dist/types/components/native-popover/native-popover.d.ts +2 -2
- package/dist/types/components/native-select/native-select.d.ts +2 -2
- package/dist/types/components/native-table/native-table.d.ts +4 -4
- package/dist/types/components/notice/notice.style.d.ts +1 -1
- package/dist/types/components/number-input/number-input.d.ts +2 -2
- package/dist/types/components/number-input/number-input.style.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +2 -2
- package/dist/types/components/pagination/pagination.style.d.ts +1 -1
- package/dist/types/components/pagination/use-pagination.d.ts +2 -2
- package/dist/types/components/password-input/password-input.d.ts +2 -2
- package/dist/types/components/password-input/strength-meter.d.ts +2 -2
- package/dist/types/components/password-input/strength-meter.style.d.ts +1 -1
- package/dist/types/components/password-input/use-password-input.d.ts +2 -2
- package/dist/types/components/pin-input/pin-input.d.ts +2 -2
- package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
- package/dist/types/components/popover/popover.d.ts +2 -2
- package/dist/types/components/progress/progress.d.ts +4 -4
- package/dist/types/components/progress/use-progress.d.ts +706 -706
- package/dist/types/components/qr-code/qr-code.d.ts +2 -2
- package/dist/types/components/radio/radio.d.ts +5 -5
- package/dist/types/components/radio/radio.style.d.ts +1 -1
- package/dist/types/components/radio/use-radio-group.d.ts +2 -2
- package/dist/types/components/radio-card/radio-card.d.ts +5 -5
- package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
- package/dist/types/components/rating/rating.style.d.ts +2 -2
- package/dist/types/components/rating/use-rating.d.ts +7 -7
- package/dist/types/components/reorder/reorder.d.ts +2 -2
- package/dist/types/components/reorder/reorder.style.d.ts +1 -1
- package/dist/types/components/reorder/use-reorder.d.ts +3 -3
- package/dist/types/components/resizable/resizable.d.ts +2 -2
- package/dist/types/components/resizable/resizable.style.d.ts +2 -2
- package/dist/types/components/resizable/use-resizable.d.ts +2 -2
- package/dist/types/components/ripple/ripple.d.ts +2 -2
- package/dist/types/components/ripple/use-ripple.d.ts +2 -2
- package/dist/types/components/rotate/rotate.d.ts +2 -2
- package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
- package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -2
- package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/types/components/segmented-control/segmented-control.d.ts +2 -2
- package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
- package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -9
- package/dist/types/components/select/select.d.ts +2 -2
- package/dist/types/components/select/select.style.d.ts +1 -1
- package/dist/types/components/select/use-select.d.ts +4 -4
- package/dist/types/components/separator/separator.d.ts +2 -2
- package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/slide/slide.d.ts +2 -2
- package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/slider/use-slider.d.ts +2 -2
- package/dist/types/components/stack/h-stack.d.ts +2 -2
- package/dist/types/components/stack/stack.d.ts +2 -2
- package/dist/types/components/stack/v-stack.d.ts +2 -2
- package/dist/types/components/stack/z-stack.d.ts +2 -2
- package/dist/types/components/stat/stat.d.ts +2 -2
- package/dist/types/components/stat/stat.style.d.ts +2 -2
- package/dist/types/components/status/status.d.ts +2 -2
- package/dist/types/components/status/status.style.d.ts +2 -2
- package/dist/types/components/steps/steps.d.ts +2 -2
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/steps/use-steps.d.ts +10 -10
- package/dist/types/components/switch/switch.d.ts +2 -2
- package/dist/types/components/table/table.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +2 -2
- package/dist/types/components/tabs/use-tabs.d.ts +16 -16
- package/dist/types/components/tag/tag.d.ts +2 -2
- package/dist/types/components/tag/tag.style.d.ts +1 -1
- package/dist/types/components/text/text.d.ts +2 -2
- package/dist/types/components/textarea/textarea.d.ts +2 -2
- package/dist/types/components/textarea/use-autosize.d.ts +2 -2
- package/dist/types/components/timeline/timeline.d.ts +5 -5
- package/dist/types/components/timeline/timeline.style.d.ts +2 -2
- package/dist/types/components/toggle/toggle.d.ts +5 -5
- package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
- package/dist/types/components/toggle/use-toggle.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tree/index.d.ts +5 -0
- package/dist/types/components/tree/tree.d.ts +131 -0
- package/dist/types/components/tree/tree.namespace.d.ts +10 -0
- package/dist/types/components/tree/tree.style.d.ts +173 -0
- package/dist/types/components/tree/use-tree.d.ts +253 -0
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/types/components/wrap/wrap.d.ts +2 -2
- package/dist/types/core/components/create-component.d.ts +7 -7
- package/dist/types/core/system/color-mode-provider.d.ts +2 -2
- package/dist/types/core/system/storage-script.d.ts +3 -3
- package/dist/types/core/system/styled.d.ts +2 -2
- package/dist/types/core/system/system-provider.d.ts +2 -2
- package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
- package/dist/types/hooks/use-clickable/index.d.ts +7 -7
- package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
- package/dist/types/hooks/use-combobox/index.d.ts +12 -12
- package/dist/types/hooks/use-counter/index.d.ts +2 -2
- package/dist/types/hooks/use-descendants/index.d.ts +2 -2
- package/dist/types/hooks/use-field-sizing/index.d.ts +2 -2
- package/dist/types/hooks/use-hover/index.d.ts +2 -2
- package/dist/types/hooks/use-popper/index.d.ts +2 -2
- package/dist/types/index.d.ts +7 -2
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
- package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -2
- package/dist/types/utils/children.d.ts +2 -2
- package/package.json +2 -2
|
@@ -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_runtime13 from "react/jsx-runtime";
|
|
8
|
+
import * as react294 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: react294.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" | "indicator" | "root" | "item" | "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" | "indicator" | "root" | "item" | "connector">>>, keyof TimelineRootProps>) => react_jsx_runtime13.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" | "indicator" | "root" | "item" | "connector", {
|
|
7
7
|
/**
|
|
8
8
|
* The alignment of the timeline.
|
|
9
9
|
*
|
|
@@ -169,7 +169,7 @@ declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "item" | "
|
|
|
169
169
|
fontSize: "lg";
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "
|
|
172
|
+
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "description" | "indicator" | "root" | "item" | "connector">>>;
|
|
173
173
|
type TimelineStyle = typeof timelineStyle;
|
|
174
174
|
//#endregion
|
|
175
175
|
export { TimelineStyle, timelineStyle };
|
|
@@ -10,13 +10,13 @@ import "../button/index.js";
|
|
|
10
10
|
import { ToggleStyle } from "./toggle.style.js";
|
|
11
11
|
import { UseToggleProps } from "./use-toggle.js";
|
|
12
12
|
import "../../index.js";
|
|
13
|
-
import * as
|
|
13
|
+
import * as react236 from "react";
|
|
14
14
|
import { ReactElement } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as _yamada_ui_utils20 from "@yamada-ui/utils";
|
|
16
16
|
|
|
17
17
|
//#region src/components/toggle/toggle.d.ts
|
|
18
18
|
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
|
|
19
|
+
declare const component: <H extends "fragment" | As = "div", R extends _yamada_ui_utils20.Dict = _yamada_ui_utils20.Dict<any>>(el: H | react236.FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root", {
|
|
20
20
|
fullRounded: {
|
|
21
21
|
true: {
|
|
22
22
|
root: {
|
|
@@ -175,7 +175,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
|
|
|
175
175
|
name,
|
|
176
176
|
className,
|
|
177
177
|
...options
|
|
178
|
-
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ?
|
|
178
|
+
}?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? react236.FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, TogglePropsContext: react236.Context<Partial<ToggleProps<string>> | undefined>, useTogglePropsContext: () => Partial<ToggleProps<string>> | undefined, useRootComponentProps: <Y extends _yamada_ui_utils20.Dict = _yamada_ui_utils20.Dict<any>, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root", {
|
|
179
179
|
fullRounded: {
|
|
180
180
|
true: {
|
|
181
181
|
root: {
|
|
@@ -334,7 +334,7 @@ declare const component: <H extends "fragment" | As = "div", R extends _yamada_u
|
|
|
334
334
|
className,
|
|
335
335
|
withContext,
|
|
336
336
|
transferProps
|
|
337
|
-
}?: UseComponentPropsOptions<R>) => [CSSSlotObject,
|
|
337
|
+
}?: UseComponentPropsOptions<R>) => [CSSSlotObject, _yamada_ui_utils20.Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root", {
|
|
338
338
|
fullRounded: {
|
|
339
339
|
true: {
|
|
340
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 react241 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: react241.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.
|
|
@@ -3,7 +3,7 @@ import { HTMLProps, HTMLRefAttributes, PropGetter } from "../../core/components/
|
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { FieldProps } from "../field/field.js";
|
|
5
5
|
import "../field/index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react239 from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/toggle/use-toggle.d.ts
|
|
9
9
|
interface UseToggleProps<Y extends string = string> extends FieldProps, HTMLRefAttributes<"input">, Omit<HTMLProps<"button">, "onChange" | "ref" | "value"> {
|
|
@@ -34,7 +34,7 @@ interface UseToggleProps<Y extends string = string> extends FieldProps, HTMLRefA
|
|
|
34
34
|
}
|
|
35
35
|
declare const useToggle: <Y extends string = string>(props?: UseToggleProps<Y>) => {
|
|
36
36
|
checked: boolean;
|
|
37
|
-
setChecked:
|
|
37
|
+
setChecked: react239.Dispatch<react239.SetStateAction<boolean>>;
|
|
38
38
|
getButtonProps: PropGetter<"button", undefined, Merge<HTMLProps<"button">, {
|
|
39
39
|
"aria-label": string;
|
|
40
40
|
}>>;
|
|
@@ -7,7 +7,7 @@ import { PopupAnimationProps } from "../popover/popover.js";
|
|
|
7
7
|
import "../popover/index.js";
|
|
8
8
|
import { TooltipStyle } from "./tooltip.style.js";
|
|
9
9
|
import { UseTooltipProps } from "./use-tooltip.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as react286 from "react";
|
|
11
11
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
12
12
|
|
|
13
13
|
//#region src/components/tooltip/tooltip.d.ts
|
|
@@ -31,7 +31,7 @@ interface TooltipProps extends UseTooltipProps, PropsWithChildren, PopupAnimatio
|
|
|
31
31
|
*/
|
|
32
32
|
portalProps?: Omit<PortalProps, "children">;
|
|
33
33
|
}
|
|
34
|
-
declare const TooltipPropsContext:
|
|
34
|
+
declare const TooltipPropsContext: react286.Context<Partial<TooltipProps> | undefined>, useTooltipPropsContext: () => Partial<TooltipProps> | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* `Tooltip` is a component that displays short information, such as supplementary details for an element.
|
|
37
37
|
*
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TreeStyle, treeStyle } from "./tree.style.js";
|
|
2
|
+
import { TreeContext, TreeControl, TreeDescendantsContext, TreeItemContext, UseTreeItemProps, UseTreeItemReturn, UseTreeProps, UseTreeReturn, useTree, useTreeContext, useTreeDescendant, useTreeDescendants, useTreeItem, useTreeItemContext } from "./use-tree.js";
|
|
3
|
+
import { TreeItem, TreeItemProps, TreePropsContext, TreeRoot, TreeRootProps, useTreePropsContext } from "./tree.js";
|
|
4
|
+
import { tree_namespace_d_exports } from "./tree.namespace.js";
|
|
5
|
+
export { tree_namespace_d_exports as Tree, TreeContext, TreeControl, TreeDescendantsContext, TreeItem, TreeItemContext, type TreeItemProps, TreePropsContext, TreeRoot, type TreeRootProps, TreeStyle, UseTreeItemProps, UseTreeItemReturn, UseTreeProps, UseTreeReturn, treeStyle, useTree, useTreeContext, useTreeDescendant, useTreeDescendants, useTreeItem, useTreeItemContext, useTreePropsContext };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ReactNodeOrFunction } from "../../utils/index.types.js";
|
|
2
|
+
import { LoadingScheme, ThemeProps } from "../../core/system/index.types.js";
|
|
3
|
+
import { Component, GenericsComponent, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
4
|
+
import "../../core/index.js";
|
|
5
|
+
import { WithTransitionProps } from "../motion/index.types.js";
|
|
6
|
+
import "../motion/index.js";
|
|
7
|
+
import "../loading/index.js";
|
|
8
|
+
import { CheckboxProps } from "../checkbox/checkbox.js";
|
|
9
|
+
import "../checkbox/index.js";
|
|
10
|
+
import { CollapseProps } from "../collapse/collapse.js";
|
|
11
|
+
import "../collapse/index.js";
|
|
12
|
+
import { TreeStyle } from "./tree.style.js";
|
|
13
|
+
import { UseTreeItemProps, UseTreeProps } from "./use-tree.js";
|
|
14
|
+
import "../../index.js";
|
|
15
|
+
import * as react269 from "react";
|
|
16
|
+
import { ReactElement, ReactNode } from "react";
|
|
17
|
+
|
|
18
|
+
//#region src/components/tree/tree.d.ts
|
|
19
|
+
interface TreeCallBackProps {
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
expanded?: boolean;
|
|
22
|
+
}
|
|
23
|
+
type TreeItemReactNode = ReactNodeOrFunction<TreeCallBackProps> | {
|
|
24
|
+
group: ReactNodeOrFunction<TreeCallBackProps>;
|
|
25
|
+
item?: ReactNodeOrFunction<TreeCallBackProps>;
|
|
26
|
+
} | {
|
|
27
|
+
item: ReactNodeOrFunction<TreeCallBackProps>;
|
|
28
|
+
group?: ReactNodeOrFunction<TreeCallBackProps>;
|
|
29
|
+
};
|
|
30
|
+
interface TreeItemWithValue extends Omit<TreeItemProps, "children"> {}
|
|
31
|
+
interface TreeItemWithChildren extends TreeItemWithValue {
|
|
32
|
+
children: TreeItem[];
|
|
33
|
+
}
|
|
34
|
+
type TreeItem = TreeItemWithChildren | TreeItemWithValue;
|
|
35
|
+
interface TreeRootProps<Multiple extends boolean = false> extends HTMLStyledProps<"ul">, ThemeProps<TreeStyle>, UseTreeProps<Multiple>, Pick<TreeItemProps, "animated" | "checkboxProps" | "endElement" | "endElementProps" | "groupProps" | "indicator" | "indicatorProps" | "labelProps" | "loadingScheme" | "startElement" | "startElementProps" | "triggerProps"> {
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, hide the tree indicator icon for all items.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
indicatorHidden?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* If provided, generate elements based on items.
|
|
44
|
+
*/
|
|
45
|
+
items?: TreeItem[];
|
|
46
|
+
/**
|
|
47
|
+
* Props for the item component.
|
|
48
|
+
*/
|
|
49
|
+
itemProps?: Omit<TreeItemProps, "label" | "open" | "value">;
|
|
50
|
+
}
|
|
51
|
+
declare const TreePropsContext: react269.Context<Partial<TreeRootProps<false>> | undefined>, useTreePropsContext: () => Partial<TreeRootProps<false>> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* `Tree` is a component used to display hierarchical data structures in an expandable tree format.
|
|
54
|
+
*
|
|
55
|
+
* @see https://yamada-ui.com/docs/components/tree
|
|
56
|
+
*/
|
|
57
|
+
declare const TreeRoot: GenericsComponent<{
|
|
58
|
+
<Multiple extends boolean = false>(props: TreeRootProps<Multiple>): ReactElement;
|
|
59
|
+
}>;
|
|
60
|
+
interface TreeItemProps extends Omit<HTMLStyledProps<"li">, "value">, Omit<UseTreeItemProps, "asyncChildren"> {
|
|
61
|
+
/**
|
|
62
|
+
* The label to display in the item.
|
|
63
|
+
*/
|
|
64
|
+
label: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* If `true`, the tree item will be animated.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
animated?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The element to display at the end of the item.
|
|
73
|
+
*/
|
|
74
|
+
endElement?: TreeItemReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* The tree indicator icon to use.
|
|
77
|
+
*/
|
|
78
|
+
indicator?: ReactNodeOrFunction<TreeCallBackProps>;
|
|
79
|
+
/**
|
|
80
|
+
* The loading scheme.
|
|
81
|
+
*
|
|
82
|
+
* @default 'oval'
|
|
83
|
+
*/
|
|
84
|
+
loadingScheme?: LoadingScheme;
|
|
85
|
+
/**
|
|
86
|
+
* The element to display at the start of the item.
|
|
87
|
+
*/
|
|
88
|
+
startElement?: TreeItemReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* Props for the checkbox component.
|
|
91
|
+
*/
|
|
92
|
+
checkboxProps?: Omit<CheckboxProps, "checked" | "defaultChecked" | "value">;
|
|
93
|
+
/**
|
|
94
|
+
* Props for the end component.
|
|
95
|
+
*/
|
|
96
|
+
endElementProps?: TreeEndElementProps;
|
|
97
|
+
/**
|
|
98
|
+
* Props for the group component.
|
|
99
|
+
*/
|
|
100
|
+
groupProps?: Omit<TreeGroupProps, "children">;
|
|
101
|
+
/**
|
|
102
|
+
* Props for the indicator component.
|
|
103
|
+
*/
|
|
104
|
+
indicatorProps?: TreeIndicatorProps;
|
|
105
|
+
/**
|
|
106
|
+
* Props for the label component.
|
|
107
|
+
*/
|
|
108
|
+
labelProps?: TreeLabelProps;
|
|
109
|
+
/**
|
|
110
|
+
* Props for the start component.
|
|
111
|
+
*/
|
|
112
|
+
startElementProps?: TreeStartElementProps;
|
|
113
|
+
/**
|
|
114
|
+
* Props for the trigger component.
|
|
115
|
+
*/
|
|
116
|
+
triggerProps?: TreeTriggerProps;
|
|
117
|
+
/**
|
|
118
|
+
* If provided, the tree item will be rendered as an async tree item.
|
|
119
|
+
*/
|
|
120
|
+
asyncChildren?: () => Promise<TreeItem[]>;
|
|
121
|
+
}
|
|
122
|
+
declare const TreeItem: Component<"li", TreeItemProps>;
|
|
123
|
+
interface TreeTriggerProps extends HTMLStyledProps {}
|
|
124
|
+
interface TreeGroupProps extends Omit<HTMLStyledProps<"ul">, "transition">, Pick<CollapseProps, "animationOpacity" | keyof WithTransitionProps> {}
|
|
125
|
+
interface TreeIndicatorProps extends HTMLStyledProps<"svg"> {}
|
|
126
|
+
interface TreeStartElementProps extends HTMLStyledProps {}
|
|
127
|
+
interface TreeEndElementProps extends HTMLStyledProps {}
|
|
128
|
+
interface TreeLabelProps extends HTMLStyledProps<"span"> {}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { TreeItem, TreeItemProps, TreePropsContext, TreeRoot, TreeRootProps, useTreePropsContext };
|
|
131
|
+
//# sourceMappingURL=tree.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TreeContext, TreeControl, TreeDescendantsContext, useTreeContext, useTreeDescendant, useTreeDescendants, useTreeItemContext } from "./use-tree.js";
|
|
2
|
+
import { TreeItem, TreeItemProps, TreePropsContext, TreeRoot, TreeRootProps, useTreePropsContext } from "./tree.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tree/tree.namespace.d.ts
|
|
5
|
+
declare namespace tree_namespace_d_exports {
|
|
6
|
+
export { TreeContext as Context, TreeControl as Control, TreeDescendantsContext as DescendantsContext, TreeItem as Item, TreeItemProps as ItemProps, TreeItem as ItemType, TreePropsContext as PropsContext, TreeRoot as Root, TreeRootProps as RootProps, useTreeContext as useContext, useTreeDescendant as useDescendant, useTreeDescendants as useDescendants, useTreeItemContext as useItemContext, useTreePropsContext as usePropsContext };
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { tree_namespace_d_exports };
|
|
10
|
+
//# sourceMappingURL=tree.namespace.d.ts.map
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ComponentSlotStyle } from "../../core/system/index.types.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tree/tree.style.d.ts
|
|
5
|
+
declare const treeStyle: ComponentSlotStyle<"label" | "end" | "start" | "checkbox" | "group" | "element" | "indicator" | "root" | "item" | "trigger", {
|
|
6
|
+
/**
|
|
7
|
+
* The shape of the component
|
|
8
|
+
*
|
|
9
|
+
* @default 'rounded'
|
|
10
|
+
*/
|
|
11
|
+
shape: {
|
|
12
|
+
circle: {
|
|
13
|
+
item: {
|
|
14
|
+
"--rounded": "radii.full";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
rounded: {
|
|
18
|
+
item: {
|
|
19
|
+
"--rounded": "radii.l1";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
square: {
|
|
23
|
+
item: {
|
|
24
|
+
"--rounded": "0";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, display guide lines.
|
|
30
|
+
*
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
withGuideLine: {
|
|
34
|
+
true: {
|
|
35
|
+
group: {
|
|
36
|
+
position: "relative";
|
|
37
|
+
_before: {
|
|
38
|
+
bg: "border";
|
|
39
|
+
display: "block";
|
|
40
|
+
h: "full";
|
|
41
|
+
left: "calc({space-guide-line} + {depth-space})";
|
|
42
|
+
position: "absolute";
|
|
43
|
+
transform: "translateX(-50%)";
|
|
44
|
+
w: "px";
|
|
45
|
+
zIndex: "yamcha";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
item: {
|
|
49
|
+
"--space-guide-line": "calc(({space-start} * 2) + {space})";
|
|
50
|
+
ps: "{space-guide-line}";
|
|
51
|
+
_hasGroup: {
|
|
52
|
+
ps: "0";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
trigger: {
|
|
56
|
+
ps: "{space-guide-line}";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
sm: {
|
|
62
|
+
item: {
|
|
63
|
+
"--depth-space": "spaces.1.5";
|
|
64
|
+
"--gap": "spaces.1.5";
|
|
65
|
+
};
|
|
66
|
+
root: {
|
|
67
|
+
fontSize: "sm";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
md: {
|
|
71
|
+
item: {
|
|
72
|
+
"--depth-space": "spaces.2";
|
|
73
|
+
"--gap": "spaces.2";
|
|
74
|
+
};
|
|
75
|
+
root: {
|
|
76
|
+
fontSize: "md";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
lg: {
|
|
80
|
+
item: {
|
|
81
|
+
"--depth-space": "spaces.2";
|
|
82
|
+
"--gap": "spaces.2";
|
|
83
|
+
};
|
|
84
|
+
root: {
|
|
85
|
+
fontSize: "lg";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, {
|
|
89
|
+
solid: {
|
|
90
|
+
checkbox: {
|
|
91
|
+
_indicator: {
|
|
92
|
+
color: "colorScheme.contrast";
|
|
93
|
+
_checked: {
|
|
94
|
+
bg: "colorScheme.solid";
|
|
95
|
+
};
|
|
96
|
+
_indeterminate: {
|
|
97
|
+
bg: "colorScheme.solid";
|
|
98
|
+
};
|
|
99
|
+
} | undefined;
|
|
100
|
+
_selected: {
|
|
101
|
+
_checked: {
|
|
102
|
+
"--indicator-border-color": "colorScheme.contrast";
|
|
103
|
+
};
|
|
104
|
+
_indicator: {
|
|
105
|
+
color: "colorScheme.solid";
|
|
106
|
+
_checked: {
|
|
107
|
+
bg: "colorScheme.contrast";
|
|
108
|
+
};
|
|
109
|
+
_indeterminate: {
|
|
110
|
+
bg: "colorScheme.contrast";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
_checked?: {
|
|
115
|
+
"--indicator-border-color": "colorScheme.solid";
|
|
116
|
+
} | undefined;
|
|
117
|
+
_indeterminate?: {
|
|
118
|
+
"--indicator-border-color": "colorScheme.solid";
|
|
119
|
+
} | undefined;
|
|
120
|
+
};
|
|
121
|
+
item: {
|
|
122
|
+
_notHasGroup: {
|
|
123
|
+
_selected: {
|
|
124
|
+
layerStyle: "solid";
|
|
125
|
+
"--element-color": "colorScheme.contrast";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
trigger: {
|
|
130
|
+
_selected: {
|
|
131
|
+
layerStyle: "solid";
|
|
132
|
+
"--element-color": "colorScheme.contrast";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
subtle: {
|
|
137
|
+
checkbox: {
|
|
138
|
+
_indicator: {
|
|
139
|
+
color: "colorScheme.contrast";
|
|
140
|
+
_checked: {
|
|
141
|
+
bg: "colorScheme.solid";
|
|
142
|
+
};
|
|
143
|
+
_indeterminate: {
|
|
144
|
+
bg: "colorScheme.solid";
|
|
145
|
+
};
|
|
146
|
+
} | undefined;
|
|
147
|
+
_checked?: {
|
|
148
|
+
"--indicator-border-color": "colorScheme.solid";
|
|
149
|
+
} | undefined;
|
|
150
|
+
_indeterminate?: {
|
|
151
|
+
"--indicator-border-color": "colorScheme.solid";
|
|
152
|
+
} | undefined;
|
|
153
|
+
};
|
|
154
|
+
item: {
|
|
155
|
+
_notHasGroup: {
|
|
156
|
+
_selected: {
|
|
157
|
+
layerStyle: "subtle";
|
|
158
|
+
"--element-color": "colorScheme.fg";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
trigger: {
|
|
163
|
+
_selected: {
|
|
164
|
+
layerStyle: "subtle";
|
|
165
|
+
"--element-color": "colorScheme.fg";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
170
|
+
type TreeStyle = typeof treeStyle;
|
|
171
|
+
//#endregion
|
|
172
|
+
export { TreeStyle, treeStyle };
|
|
173
|
+
//# sourceMappingURL=tree.style.d.ts.map
|