@yamada-ui/react 2.2.0 → 2.3.0-next-20260411064049
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/accordion/accordion.cjs +15 -5
- package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
- package/dist/cjs/components/avatar/avatar-group.cjs +6 -3
- package/dist/cjs/components/avatar/avatar-group.cjs.map +1 -1
- package/dist/cjs/components/checkbox/checkbox-group.cjs +6 -4
- package/dist/cjs/components/checkbox/checkbox-group.cjs.map +1 -1
- package/dist/cjs/components/checkbox-card/checkbox-card-group.cjs +5 -3
- package/dist/cjs/components/checkbox-card/checkbox-card-group.cjs.map +1 -1
- package/dist/cjs/components/menu/menu.cjs +45 -42
- package/dist/cjs/components/menu/menu.cjs.map +1 -1
- package/dist/cjs/components/native-popover/native-popover.cjs +26 -23
- package/dist/cjs/components/native-popover/native-popover.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +34 -31
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/radio/radio-group.cjs +6 -4
- package/dist/cjs/components/radio/radio-group.cjs.map +1 -1
- package/dist/cjs/components/radio-card/radio-card-group.cjs +5 -3
- package/dist/cjs/components/radio-card/radio-card-group.cjs.map +1 -1
- package/dist/cjs/components/toggle/toggle-group.cjs +6 -4
- package/dist/cjs/components/toggle/toggle-group.cjs.map +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +23 -18
- package/dist/cjs/components/tooltip/tooltip.cjs.map +1 -1
- package/dist/cjs/core/components/create-component.cjs +31 -6
- package/dist/cjs/core/components/create-component.cjs.map +1 -1
- package/dist/esm/components/accordion/accordion.js +15 -5
- package/dist/esm/components/accordion/accordion.js.map +1 -1
- package/dist/esm/components/avatar/avatar-group.js +6 -3
- package/dist/esm/components/avatar/avatar-group.js.map +1 -1
- package/dist/esm/components/checkbox/checkbox-group.js +6 -4
- package/dist/esm/components/checkbox/checkbox-group.js.map +1 -1
- package/dist/esm/components/checkbox-card/checkbox-card-group.js +5 -3
- package/dist/esm/components/checkbox-card/checkbox-card-group.js.map +1 -1
- package/dist/esm/components/menu/menu.js +45 -42
- package/dist/esm/components/menu/menu.js.map +1 -1
- package/dist/esm/components/native-popover/native-popover.js +26 -23
- package/dist/esm/components/native-popover/native-popover.js.map +1 -1
- package/dist/esm/components/popover/popover.js +34 -31
- package/dist/esm/components/popover/popover.js.map +1 -1
- package/dist/esm/components/radio/radio-group.js +6 -4
- package/dist/esm/components/radio/radio-group.js.map +1 -1
- package/dist/esm/components/radio-card/radio-card-group.js +5 -3
- package/dist/esm/components/radio-card/radio-card-group.js.map +1 -1
- package/dist/esm/components/toggle/toggle-group.js +6 -4
- package/dist/esm/components/toggle/toggle-group.js.map +1 -1
- package/dist/esm/components/tooltip/tooltip.js +23 -18
- package/dist/esm/components/tooltip/tooltip.js.map +1 -1
- package/dist/esm/core/components/create-component.js +31 -6
- package/dist/esm/core/components/create-component.js.map +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/use-accordion.d.ts +11 -11
- package/dist/types/components/action-bar/action-bar.d.ts +2 -2
- package/dist/types/components/airy/airy.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +2 -2
- package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
- package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
- package/dist/types/components/avatar/avatar.d.ts +5 -5
- package/dist/types/components/avatar/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/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/pie-chart.d.ts +2 -2
- package/dist/types/components/chart/radar-chart.d.ts +2 -2
- package/dist/types/components/chart/radial-chart.d.ts +2 -2
- package/dist/types/components/chart/use-chart.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +4 -4
- package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +4 -4
- 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/date-picker/date-picker.d.ts +2 -2
- package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
- package/dist/types/components/drawer/drawer.d.ts +2 -2
- package/dist/types/components/drawer/drawer.style.d.ts +2 -2
- package/dist/types/components/dropzone/dropzone.d.ts +4 -4
- package/dist/types/components/editable/editable.d.ts +4 -4
- package/dist/types/components/editable/use-editable.d.ts +2 -2
- package/dist/types/components/em/em.d.ts +2 -2
- package/dist/types/components/empty-state/empty-state.d.ts +2 -2
- package/dist/types/components/fade/fade.d.ts +2 -2
- package/dist/types/components/field/field.d.ts +3 -3
- package/dist/types/components/field/use-field-props.d.ts +3 -3
- 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/float/float.d.ts +2 -2
- package/dist/types/components/form/form.d.ts +3 -3
- package/dist/types/components/format/format-byte.d.ts +4 -4
- package/dist/types/components/format/format-date-time.d.ts +4 -4
- package/dist/types/components/format/format-number.d.ts +2 -2
- package/dist/types/components/grid/grid-item.d.ts +2 -2
- package/dist/types/components/grid/grid.d.ts +2 -2
- package/dist/types/components/group/group.d.ts +2 -2
- package/dist/types/components/group/use-group.d.ts +2 -2
- package/dist/types/components/heading/heading.d.ts +2 -2
- package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
- package/dist/types/components/icon/icon.d.ts +5 -5
- package/dist/types/components/image/image.d.ts +2 -2
- package/dist/types/components/indicator/indicator.d.ts +4 -4
- package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
- package/dist/types/components/input/input-addon.d.ts +2 -2
- package/dist/types/components/input/input-element.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/kbd/kbd.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/link-box/link-box.d.ts +2 -2
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/loading/loading-provider.d.ts +2 -2
- package/dist/types/components/loading/loading.d.ts +3 -3
- package/dist/types/components/mark/mark.d.ts +2 -2
- package/dist/types/components/menu/menu.d.ts +2 -2
- package/dist/types/components/menu/menu.style.d.ts +2 -2
- package/dist/types/components/menu/use-menu.d.ts +11 -11
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal/modal.style.d.ts +2 -2
- package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
- package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
- package/dist/types/components/native-popover/native-popover.d.ts +4 -4
- 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/use-pagination.d.ts +2 -2
- package/dist/types/components/password-input/password-input.d.ts +2 -2
- package/dist/types/components/password-input/strength-meter.d.ts +2 -2
- package/dist/types/components/password-input/use-password-input.d.ts +2 -2
- package/dist/types/components/pin-input/pin-input.d.ts +2 -2
- package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
- package/dist/types/components/popover/popover.d.ts +4 -4
- package/dist/types/components/progress/progress.d.ts +4 -4
- package/dist/types/components/progress/use-progress.d.ts +706 -706
- package/dist/types/components/qr-code/qr-code.d.ts +2 -2
- package/dist/types/components/radio/radio.d.ts +4 -4
- package/dist/types/components/radio/use-radio-group.d.ts +2 -2
- package/dist/types/components/radio-card/radio-card.d.ts +4 -4
- 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/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 +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/use-segmented-control.d.ts +9 -9
- package/dist/types/components/select/select.d.ts +2 -2
- package/dist/types/components/select/use-select.d.ts +4 -4
- package/dist/types/components/separator/separator.d.ts +2 -2
- package/dist/types/components/sidebar/sidebar.d.ts +2 -2
- package/dist/types/components/sidebar/use-sidebar.d.ts +9 -9
- package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/slide/slide.d.ts +2 -2
- package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/slider/use-slider.d.ts +2 -2
- package/dist/types/components/stack/h-stack.d.ts +2 -2
- package/dist/types/components/stack/stack.d.ts +2 -2
- package/dist/types/components/stack/v-stack.d.ts +2 -2
- package/dist/types/components/stack/z-stack.d.ts +2 -2
- package/dist/types/components/stat/stat.d.ts +2 -2
- package/dist/types/components/status/status.d.ts +2 -2
- package/dist/types/components/steps/steps.d.ts +2 -2
- 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 +4 -4
- 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 +4 -3
- package/dist/types/components/tree/tree.d.ts +2 -2
- package/dist/types/components/tree/use-tree.d.ts +182 -182
- 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 +19 -10
- package/dist/types/core/components/index.d.ts +2 -2
- package/dist/types/core/index.d.ts +2 -2
- 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-counter/index.d.ts +2 -2
- package/dist/types/hooks/use-descendants/index.d.ts +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
- package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -2
- package/dist/types/utils/children.d.ts +2 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import "../popover/index.js";
|
|
|
6
6
|
import { MenuStyle } from "./menu.style.js";
|
|
7
7
|
import { MenuOptionGroupType, MenuOptionGroupValue, UseMenuGroupProps, UseMenuItemProps, UseMenuOptionGroupProps, UseMenuOptionItemProps, UseMenuProps } from "./use-menu.js";
|
|
8
8
|
import "../../index.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as react835 from "react";
|
|
10
10
|
import { FC, ReactElement, ReactNode } from "react";
|
|
11
11
|
|
|
12
12
|
//#region src/components/menu/menu.d.ts
|
|
@@ -42,7 +42,7 @@ interface MenuRootProps extends UseMenuProps, Omit<WithoutThemeProps<PopoverRoot
|
|
|
42
42
|
*/
|
|
43
43
|
placement?: PopoverRootProps["placement"];
|
|
44
44
|
}
|
|
45
|
-
declare const MenuPropsContext:
|
|
45
|
+
declare const MenuPropsContext: react835.Context<Partial<MenuRootProps> | undefined>, useMenuPropsContext: () => Partial<MenuRootProps> | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* `Menu` is a component that displays a common dropdown menu.
|
|
48
48
|
*
|
|
@@ -3,7 +3,7 @@ import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/
|
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/menu/menu.style.d.ts
|
|
6
|
-
declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "content" | "group" | "separator" | "indicator" | "
|
|
6
|
+
declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "content" | "group" | "separator" | "indicator" | "command" | "item", CSSPropObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "group" | "separator" | "indicator" | "command" | "item">>, {
|
|
7
7
|
sm: {
|
|
8
8
|
command: {
|
|
9
9
|
fontSize: "2xs";
|
|
@@ -88,7 +88,7 @@ declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "con
|
|
|
88
88
|
px: "2";
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
}, CSSModifierObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "group" | "separator" | "indicator" | "
|
|
91
|
+
}, CSSModifierObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "group" | "separator" | "indicator" | "command" | "item">>>;
|
|
92
92
|
type MenuStyle = typeof menuStyle;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { MenuStyle, menuStyle };
|
|
@@ -3,7 +3,7 @@ import "../../core/index.js";
|
|
|
3
3
|
import { UseDisclosureProps } from "../../hooks/use-disclosure/use-disclosure.js";
|
|
4
4
|
import { Descendant, DescendantProps, Descendants } from "../../hooks/use-descendants/index.js";
|
|
5
5
|
import "../../index.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react825 from "react";
|
|
7
7
|
import { RefObject } from "react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/menu/use-menu.d.ts
|
|
@@ -12,7 +12,7 @@ interface MenuDescendantProps {
|
|
|
12
12
|
id: string;
|
|
13
13
|
}
|
|
14
14
|
type MenuDescendant = Descendant<HTMLDivElement, MenuDescendantProps>;
|
|
15
|
-
declare const MenuDescendantsContext:
|
|
15
|
+
declare const MenuDescendantsContext: react825.Context<{
|
|
16
16
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null | undefined, options?: FocusOptions) => void;
|
|
17
17
|
count: (props?: Partial<MenuDescendantProps> | undefined) => number;
|
|
18
18
|
destroy: () => void;
|
|
@@ -29,7 +29,7 @@ declare const MenuDescendantsContext: react1128.Context<{
|
|
|
29
29
|
lastValue: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
30
30
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
31
31
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
32
|
-
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) =>
|
|
32
|
+
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) => react825.RefCallback<HTMLDivElement>;
|
|
33
33
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
34
34
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
35
35
|
values: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps>[];
|
|
@@ -51,12 +51,12 @@ declare const MenuDescendantsContext: react1128.Context<{
|
|
|
51
51
|
lastValue: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
52
52
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
53
53
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
54
|
-
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) =>
|
|
54
|
+
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) => react825.RefCallback<HTMLDivElement>;
|
|
55
55
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
56
56
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
57
57
|
values: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps>[];
|
|
58
58
|
};
|
|
59
|
-
register:
|
|
59
|
+
register: react825.RefCallback<HTMLDivElement>;
|
|
60
60
|
}, useMenuDescendants: () => {
|
|
61
61
|
active: (target?: HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null | undefined, options?: FocusOptions) => void;
|
|
62
62
|
count: (props?: Partial<MenuDescendantProps> | undefined) => number;
|
|
@@ -74,15 +74,15 @@ declare const MenuDescendantsContext: react1128.Context<{
|
|
|
74
74
|
lastValue: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
75
75
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
76
76
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
77
|
-
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) =>
|
|
77
|
+
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) => react825.RefCallback<HTMLDivElement>;
|
|
78
78
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
79
79
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
80
80
|
values: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps>[];
|
|
81
81
|
};
|
|
82
82
|
interface MenuContext extends Pick<UseMenuReturn, "onActiveDescendant" | "onClose" | "onCloseSubMenu" | "onOpen" | "onSelect" | "subMenu" | "subMenuDirection"> {}
|
|
83
|
-
declare const MenuContext:
|
|
83
|
+
declare const MenuContext: react825.Context<MenuContext>, useMenuContext: () => MenuContext;
|
|
84
84
|
interface MenuGroupContext extends Pick<UseMenuGroupReturn, "getLabelProps"> {}
|
|
85
|
-
declare const MenuGroupContext:
|
|
85
|
+
declare const MenuGroupContext: react825.Context<MenuGroupContext>, useMenuGroupContext: () => MenuGroupContext;
|
|
86
86
|
interface MainMenuContext {
|
|
87
87
|
descendants: Descendants<HTMLDivElement, MenuDescendantProps>;
|
|
88
88
|
onActiveDescendant: (descendant?: MenuDescendant) => void;
|
|
@@ -90,13 +90,13 @@ interface MainMenuContext {
|
|
|
90
90
|
onSelect: (value?: string, closeOnSelect?: boolean) => void;
|
|
91
91
|
closeOnSelect?: boolean;
|
|
92
92
|
}
|
|
93
|
-
declare const MainMenuContext:
|
|
93
|
+
declare const MainMenuContext: react825.Context<MainMenuContext | undefined>, useMainMenuContext: () => MainMenuContext | undefined;
|
|
94
94
|
interface MenuOptionGroupContext {
|
|
95
95
|
type: "checkbox" | "radio";
|
|
96
96
|
value: string | string[];
|
|
97
97
|
onChange?: (value: string) => void;
|
|
98
98
|
}
|
|
99
|
-
declare const MenuOptionGroupContext:
|
|
99
|
+
declare const MenuOptionGroupContext: react825.Context<MenuOptionGroupContext>, useMenuOptionGroupContext: () => MenuOptionGroupContext;
|
|
100
100
|
interface UseMenuProps extends Omit<UseDisclosureProps, "timing"> {
|
|
101
101
|
/**
|
|
102
102
|
* If `true`, the menu item will be closed when selected.
|
|
@@ -149,7 +149,7 @@ declare const useMenu: ({
|
|
|
149
149
|
lastValue: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
150
150
|
nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
151
151
|
prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, MenuDescendantProps> | null, loop?: boolean, props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
152
|
-
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) =>
|
|
152
|
+
register: (props?: DescendantProps<HTMLDivElement, MenuDescendantProps> | undefined) => react825.RefCallback<HTMLDivElement>;
|
|
153
153
|
unregister: (node?: HTMLDivElement | null | undefined) => void;
|
|
154
154
|
value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, MenuDescendantProps> | undefined;
|
|
155
155
|
values: (props?: Partial<MenuDescendantProps> | undefined) => Descendant<HTMLDivElement, MenuDescendantProps>[];
|
|
@@ -14,7 +14,7 @@ import { FocusLockProps } from "../focus-lock/focus-lock.js";
|
|
|
14
14
|
import { ModalStyle } from "./modal.style.js";
|
|
15
15
|
import { UseModalProps } from "./use-modal.js";
|
|
16
16
|
import "../../index.js";
|
|
17
|
-
import * as
|
|
17
|
+
import * as react824 from "react";
|
|
18
18
|
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
19
19
|
|
|
20
20
|
//#region src/components/modal/modal.d.ts
|
|
@@ -56,7 +56,7 @@ interface ModalRootProps extends ThemeProps<ModalStyle>, Omit<UseModalProps, "ti
|
|
|
56
56
|
*/
|
|
57
57
|
onCloseComplete?: () => void;
|
|
58
58
|
}
|
|
59
|
-
declare const ModalPropsContext:
|
|
59
|
+
declare const ModalPropsContext: react824.Context<Partial<ModalRootProps> | undefined>, useModalPropsContext: () => Partial<ModalRootProps> | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* `Modal` is a component that is displayed over the main content to focus the user's attention solely on the information.
|
|
62
62
|
*
|
|
@@ -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/modal/modal.style.d.ts
|
|
6
|
-
declare const modalStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "content" | "overlay" | "
|
|
6
|
+
declare const modalStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "content" | "overlay" | "root" | "closeButton", {
|
|
7
7
|
/**
|
|
8
8
|
* The placement of the modal.
|
|
9
9
|
*
|
|
@@ -157,7 +157,7 @@ declare const modalStyle: ComponentSlotStyle<"body" | "footer" | "header" | "tit
|
|
|
157
157
|
p: "0";
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
-
}, CSSModifierObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "content" | "overlay" | "
|
|
160
|
+
}, CSSModifierObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "content" | "overlay" | "root" | "closeButton">>>;
|
|
161
161
|
type ModalStyle = typeof modalStyle;
|
|
162
162
|
//#endregion
|
|
163
163
|
export { ModalStyle, modalStyle };
|
|
@@ -4,7 +4,7 @@ import "../../core/index.js";
|
|
|
4
4
|
import { NativeAccordionStyle } from "./native-accordion.style.js";
|
|
5
5
|
import { UseNativeAccordionItemProps, UseNativeAccordionProps } from "./use-native-accordion.js";
|
|
6
6
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react823 from "react";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/native-accordion/native-accordion.d.ts
|
|
@@ -25,7 +25,7 @@ interface NativeAccordionRootProps extends Omit<HTMLStyledProps, "onChange">, Th
|
|
|
25
25
|
*/
|
|
26
26
|
items?: NativeAccordionItem[];
|
|
27
27
|
}
|
|
28
|
-
declare const NativeAccordionPropsContext:
|
|
28
|
+
declare const NativeAccordionPropsContext: react823.Context<Partial<NativeAccordionRootProps> | undefined>, useNativeAccordionPropsContext: () => Partial<NativeAccordionRootProps> | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* `NativeAccordion` is a component for a list that displays information in an expandable or collapsible manner using the native HTML details element.
|
|
31
31
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react822 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/native-accordion/use-native-accordion.d.ts
|
|
6
6
|
interface NativeAccordionContext extends Pick<UseNativeAccordionReturn, "name"> {}
|
|
7
|
-
declare const NativeAccordionContext:
|
|
7
|
+
declare const NativeAccordionContext: react822.Context<NativeAccordionContext>, useNativeAccordionContext: () => NativeAccordionContext;
|
|
8
8
|
interface UseNativeAccordionProps extends HTMLProps {
|
|
9
9
|
/**
|
|
10
10
|
* If `true`, multiple accordion items can be expanded at once.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ThemeProps } from "../../core/system/index.types.js";
|
|
2
|
-
import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
2
|
+
import { Component, HTMLProps, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
3
3
|
import "../../core/index.js";
|
|
4
4
|
import { NativePopoverStyle } from "./native-popover.style.js";
|
|
5
5
|
import { UseNativePopoverProps } from "./use-native-popover.js";
|
|
6
6
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react819 from "react";
|
|
8
8
|
import { FC, PropsWithChildren } from "react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/native-popover/native-popover.d.ts
|
|
11
|
-
interface NativePopoverRootProps extends UseNativePopoverProps, ThemeProps<NativePopoverStyle>, PropsWithChildren {}
|
|
12
|
-
declare const NativePopoverPropsContext:
|
|
11
|
+
interface NativePopoverRootProps extends UseNativePopoverProps, ThemeProps<NativePopoverStyle>, PropsWithChildren, Pick<HTMLProps, "suppressHydrationWarning"> {}
|
|
12
|
+
declare const NativePopoverPropsContext: react819.Context<Partial<NativePopoverRootProps> | undefined>, useNativePopoverPropsContext: () => Partial<NativePopoverRootProps> | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* `NativePopover` is a component that floats around an element to display information using the native HTML Popover API.
|
|
15
15
|
*
|
|
@@ -10,7 +10,7 @@ import "../input/index.js";
|
|
|
10
10
|
import { NativeSelectStyle } from "./native-select.style.js";
|
|
11
11
|
import { UseNativeSelectProps } from "./use-native-select.js";
|
|
12
12
|
import "../../index.js";
|
|
13
|
-
import * as
|
|
13
|
+
import * as react821 from "react";
|
|
14
14
|
import { ReactNode } from "react";
|
|
15
15
|
|
|
16
16
|
//#region src/components/native-select/native-select.d.ts
|
|
@@ -32,7 +32,7 @@ interface NativeSelectRootProps extends Omit<HTMLStyledProps<"select">, "size">,
|
|
|
32
32
|
*/
|
|
33
33
|
rootProps?: InputGroupRootProps;
|
|
34
34
|
}
|
|
35
|
-
declare const NativeSelectPropsContext:
|
|
35
|
+
declare const NativeSelectPropsContext: react821.Context<Partial<NativeSelectRootProps> | undefined>, useNativeSelectPropsContext: () => Partial<NativeSelectRootProps> | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* `NativeSelect` is a component used for allowing users to select one option from a list. It displays a native dropdown list provided by the browser (user agent).
|
|
38
38
|
*
|
|
@@ -4,8 +4,8 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
|
|
|
4
4
|
import "../../core/index.js";
|
|
5
5
|
import { NativeTableStyle } from "./native-table.style.js";
|
|
6
6
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
8
|
+
import * as react875 from "react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/native-table/native-table.d.ts
|
|
11
11
|
interface NativeTableRootProps extends HTMLStyledProps<"table">, ThemeProps<NativeTableStyle> {
|
|
@@ -24,7 +24,7 @@ interface NativeTableRootProps extends HTMLStyledProps<"table">, ThemeProps<Nati
|
|
|
24
24
|
*/
|
|
25
25
|
scrollAreaProps?: NativeTableAreaProps;
|
|
26
26
|
}
|
|
27
|
-
declare const NativeTablePropsContext:
|
|
27
|
+
declare const NativeTablePropsContext: react875.Context<Partial<NativeTableRootProps> | undefined>, useNativeTablePropsContext: () => Partial<NativeTableRootProps> | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* `NativeTable` is a component for efficiently organizing and displaying data.
|
|
30
30
|
*
|
|
@@ -211,7 +211,7 @@ declare const NativeTableRoot: Component<({
|
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
}>, keyof NativeTableRootProps>) =>
|
|
214
|
+
}>, keyof NativeTableRootProps>) => react_jsx_runtime9.JSX.Element, NativeTableRootProps>;
|
|
215
215
|
interface NativeTableAreaProps extends HTMLStyledProps, ThemeProps<NativeTableStyle> {}
|
|
216
216
|
interface CaptionProps extends HTMLStyledProps<"caption"> {
|
|
217
217
|
/**
|
|
@@ -3,7 +3,7 @@ import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/
|
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/notice/notice.style.d.ts
|
|
6
|
-
declare const noticeStyle: ComponentSlotStyle<"content" | "
|
|
6
|
+
declare const noticeStyle: ComponentSlotStyle<"content" | "root" | "item" | "closeButton", CSSPropObject<CSSSlotObject<"content" | "root" | "item" | "closeButton">>, CSSModifierObject<CSSSlotObject<"content" | "root" | "item" | "closeButton">>, CSSModifierObject<CSSSlotObject<"content" | "root" | "item" | "closeButton">>>;
|
|
7
7
|
type NoticeStyle = typeof noticeStyle;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NoticeStyle };
|
|
@@ -9,7 +9,7 @@ import "../input/index.js";
|
|
|
9
9
|
import { NumberInputStyle } from "./number-input.style.js";
|
|
10
10
|
import { UseNumberInputProps } from "./use-number-input.js";
|
|
11
11
|
import "../../index.js";
|
|
12
|
-
import * as
|
|
12
|
+
import * as react874 from "react";
|
|
13
13
|
|
|
14
14
|
//#region src/components/number-input/number-input.d.ts
|
|
15
15
|
interface NumberInputProps extends Omit<WithoutThemeProps<InputProps, NumberInputStyle>, keyof UseNumberInputProps>, ThemeProps<NumberInputStyle>, UseNumberInputProps {
|
|
@@ -34,7 +34,7 @@ interface NumberInputProps extends Omit<WithoutThemeProps<InputProps, NumberInpu
|
|
|
34
34
|
*/
|
|
35
35
|
rootProps?: InputGroupRootProps;
|
|
36
36
|
}
|
|
37
|
-
declare const NumberInputPropsContext:
|
|
37
|
+
declare const NumberInputPropsContext: react874.Context<Partial<NumberInputProps> | undefined>, useNumberInputPropsContext: () => Partial<NumberInputProps> | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* `NumberInput` is a component used to obtain numeric input from the user.
|
|
40
40
|
*
|
|
@@ -3,7 +3,7 @@ import { CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
|
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/number-input/number-input.style.d.ts
|
|
6
|
-
declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "field" | "
|
|
6
|
+
declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "field" | "decrement" | "increment" | "control", CSSPropObject<CSSSlotObject<"button" | "root" | "field" | "decrement" | "increment" | "control">>, {
|
|
7
7
|
xs: {
|
|
8
8
|
control: {
|
|
9
9
|
boxSize: "calc({--height} - {spaces.2})";
|
|
@@ -8,7 +8,7 @@ import "../button/index.js";
|
|
|
8
8
|
import { PaginationStyle } from "./pagination.style.js";
|
|
9
9
|
import { Page, UsePaginationProps } from "./use-pagination.js";
|
|
10
10
|
import "../../index.js";
|
|
11
|
-
import * as
|
|
11
|
+
import * as react873 from "react";
|
|
12
12
|
import { FC, ReactNode } from "react";
|
|
13
13
|
|
|
14
14
|
//#region src/components/pagination/pagination.d.ts
|
|
@@ -69,7 +69,7 @@ interface PaginationRootProps extends WithoutThemeProps<Omit<ButtonGroupRootProp
|
|
|
69
69
|
*/
|
|
70
70
|
itemProps?: PaginationItemProps;
|
|
71
71
|
}
|
|
72
|
-
declare const PaginationPropsContext:
|
|
72
|
+
declare const PaginationPropsContext: react873.Context<Partial<PaginationRootProps> | undefined>, usePaginationPropsContext: () => Partial<PaginationRootProps> | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* `Pagination` is a component for managing the pagination and navigation of content.
|
|
75
75
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
|
|
2
2
|
import "../../core/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react872 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/pagination/use-pagination.d.ts
|
|
6
6
|
type Page = "ellipsis" | number;
|
|
7
7
|
interface PaginationContext extends Omit<UsePaginationReturn, "getRootProps"> {}
|
|
8
|
-
declare const PaginationContext:
|
|
8
|
+
declare const PaginationContext: react872.Context<PaginationContext>, usePaginationContext: () => PaginationContext;
|
|
9
9
|
interface UsePaginationProps extends Omit<HTMLProps, "onChange" | "page"> {
|
|
10
10
|
/**
|
|
11
11
|
* The total number of pages in pagination.
|
|
@@ -8,7 +8,7 @@ import "../input/index.js";
|
|
|
8
8
|
import { PasswordInputStyle } from "./password-input.style.js";
|
|
9
9
|
import { UsePasswordInputProps } from "./use-password-input.js";
|
|
10
10
|
import "../../index.js";
|
|
11
|
-
import * as
|
|
11
|
+
import * as react815 from "react";
|
|
12
12
|
import { ReactNode } from "react";
|
|
13
13
|
|
|
14
14
|
//#region src/components/password-input/password-input.d.ts
|
|
@@ -33,7 +33,7 @@ interface PasswordInputProps extends WithoutThemeProps<InputProps, PasswordInput
|
|
|
33
33
|
*/
|
|
34
34
|
rootProps?: InputGroupRootProps;
|
|
35
35
|
}
|
|
36
|
-
declare const PasswordInputPropsContext:
|
|
36
|
+
declare const PasswordInputPropsContext: react815.Context<Partial<PasswordInputProps> | undefined>, usePasswordInputPropsContext: () => Partial<PasswordInputProps> | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* `PasswordInput` is a component that allows users to input passwords with a visibility toggle.
|
|
39
39
|
*
|
|
@@ -2,7 +2,7 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
|
|
|
2
2
|
import "../../core/index.js";
|
|
3
3
|
import { UseStrengthMeterProps } from "./use-strength-meter.js";
|
|
4
4
|
import "../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react816 from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/password-input/strength-meter.d.ts
|
|
@@ -21,7 +21,7 @@ interface StrengthMeterProps extends HTMLStyledProps, UseStrengthMeterProps {
|
|
|
21
21
|
*/
|
|
22
22
|
getIndicatorProps?: (percent: number) => IndicatorProps;
|
|
23
23
|
}
|
|
24
|
-
declare const StrengthMeterPropsContext:
|
|
24
|
+
declare const StrengthMeterPropsContext: react816.Context<Partial<StrengthMeterProps> | undefined>, useStrengthMeterPropsContext: () => Partial<StrengthMeterProps> | undefined;
|
|
25
25
|
declare const StrengthMeter: Component<"div", StrengthMeterProps>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { StrengthMeter, StrengthMeterProps, StrengthMeterPropsContext, useStrengthMeterPropsContext };
|
|
@@ -2,7 +2,7 @@ import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
|
|
|
2
2
|
import "../../core/index.js";
|
|
3
3
|
import { FieldProps } from "../field/field.js";
|
|
4
4
|
import "../field/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react817 from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/password-input/use-password-input.d.ts
|
|
8
8
|
interface UsePasswordInputProps extends HTMLProps<"input">, FieldProps {
|
|
@@ -24,7 +24,7 @@ interface UsePasswordInputProps extends HTMLProps<"input">, FieldProps {
|
|
|
24
24
|
onVisibleChange?: (visible: boolean) => void;
|
|
25
25
|
}
|
|
26
26
|
declare const usePasswordInput: (props?: UsePasswordInputProps) => {
|
|
27
|
-
setVisible:
|
|
27
|
+
setVisible: react817.Dispatch<react817.SetStateAction<boolean>>;
|
|
28
28
|
visible: boolean;
|
|
29
29
|
getButtonProps: PropGetter<"button", undefined, undefined>;
|
|
30
30
|
getInputProps: PropGetter<"input", undefined, undefined>;
|
|
@@ -9,11 +9,11 @@ import "../input/index.js";
|
|
|
9
9
|
import { PinInputStyle } from "./pin-input.style.js";
|
|
10
10
|
import { UsePinInputProps } from "./use-pin-input.js";
|
|
11
11
|
import "../../index.js";
|
|
12
|
-
import * as
|
|
12
|
+
import * as react799 from "react";
|
|
13
13
|
|
|
14
14
|
//#region src/components/pin-input/pin-input.d.ts
|
|
15
15
|
interface PinInputRootProps extends Omit<WithoutThemeProps<GroupProps, PinInputStyle>, "defaultValue" | "mask" | "onChange">, ThemeProps<PinInputStyle>, UseInputBorderProps, UsePinInputProps {}
|
|
16
|
-
declare const PinInputPropsContext:
|
|
16
|
+
declare const PinInputPropsContext: react799.Context<Partial<PinInputRootProps> | undefined>, usePinInputPropsContext: () => Partial<PinInputRootProps> | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* `PinInput` is a component used to capture pin codes or OTP (One-Time Password) inputs.
|
|
19
19
|
*
|
|
@@ -4,10 +4,10 @@ import { FieldProps } from "../field/field.js";
|
|
|
4
4
|
import "../field/index.js";
|
|
5
5
|
import { Descendant } from "../../hooks/use-descendants/index.js";
|
|
6
6
|
import "../../index.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react793 from "react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/pin-input/use-pin-input.d.ts
|
|
10
|
-
declare const PinInputDescendantsContext:
|
|
10
|
+
declare const PinInputDescendantsContext: react793.Context<{
|
|
11
11
|
active: (target?: HTMLInputElement | Descendant<HTMLInputElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
12
12
|
count: (props?: Partial<{}> | undefined) => number;
|
|
13
13
|
destroy: () => void;
|
|
@@ -26,7 +26,7 @@ declare const PinInputDescendantsContext: react1233.Context<{
|
|
|
26
26
|
prevValue: (indexOrNode: number | HTMLInputElement | Descendant<HTMLInputElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}> | undefined;
|
|
27
27
|
register: (props?: {
|
|
28
28
|
disabled?: boolean | ((node: HTMLInputElement) => boolean) | undefined;
|
|
29
|
-
} | undefined) =>
|
|
29
|
+
} | undefined) => react793.RefCallback<HTMLInputElement>;
|
|
30
30
|
unregister: (node?: HTMLInputElement | null | undefined) => void;
|
|
31
31
|
value: (indexOrNode: number | HTMLInputElement | null) => Descendant<HTMLInputElement, {}> | undefined;
|
|
32
32
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}>[];
|
|
@@ -52,12 +52,12 @@ declare const PinInputDescendantsContext: react1233.Context<{
|
|
|
52
52
|
prevValue: (indexOrNode: number | HTMLInputElement | Descendant<HTMLInputElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}> | undefined;
|
|
53
53
|
register: (props?: {
|
|
54
54
|
disabled?: boolean | ((node: HTMLInputElement) => boolean) | undefined;
|
|
55
|
-
} | undefined) =>
|
|
55
|
+
} | undefined) => react793.RefCallback<HTMLInputElement>;
|
|
56
56
|
unregister: (node?: HTMLInputElement | null | undefined) => void;
|
|
57
57
|
value: (indexOrNode: number | HTMLInputElement | null) => Descendant<HTMLInputElement, {}> | undefined;
|
|
58
58
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}>[];
|
|
59
59
|
};
|
|
60
|
-
register:
|
|
60
|
+
register: react793.RefCallback<HTMLInputElement>;
|
|
61
61
|
}, usePinInputDescendants: () => {
|
|
62
62
|
active: (target?: HTMLInputElement | Descendant<HTMLInputElement, {}> | null | undefined, options?: FocusOptions) => void;
|
|
63
63
|
count: (props?: Partial<{}> | undefined) => number;
|
|
@@ -77,7 +77,7 @@ declare const PinInputDescendantsContext: react1233.Context<{
|
|
|
77
77
|
prevValue: (indexOrNode: number | HTMLInputElement | Descendant<HTMLInputElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}> | undefined;
|
|
78
78
|
register: (props?: {
|
|
79
79
|
disabled?: boolean | ((node: HTMLInputElement) => boolean) | undefined;
|
|
80
|
-
} | undefined) =>
|
|
80
|
+
} | undefined) => react793.RefCallback<HTMLInputElement>;
|
|
81
81
|
unregister: (node?: HTMLInputElement | null | undefined) => void;
|
|
82
82
|
value: (indexOrNode: number | HTMLInputElement | null) => Descendant<HTMLInputElement, {}> | undefined;
|
|
83
83
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}>[];
|
|
@@ -163,7 +163,7 @@ declare const usePinInput: (props?: UsePinInputProps) => {
|
|
|
163
163
|
prevValue: (indexOrNode: number | HTMLInputElement | Descendant<HTMLInputElement, {}> | null, loop?: boolean, props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}> | undefined;
|
|
164
164
|
register: (props?: {
|
|
165
165
|
disabled?: boolean | ((node: HTMLInputElement) => boolean) | undefined;
|
|
166
|
-
} | undefined) =>
|
|
166
|
+
} | undefined) => react793.RefCallback<HTMLInputElement>;
|
|
167
167
|
unregister: (node?: HTMLInputElement | null | undefined) => void;
|
|
168
168
|
value: (indexOrNode: number | HTMLInputElement | null) => Descendant<HTMLInputElement, {}> | undefined;
|
|
169
169
|
values: (props?: Partial<{}> | undefined) => Descendant<HTMLInputElement, {}>[];
|
|
@@ -2,7 +2,7 @@ import { ReactNodeOrFunction } from "../../utils/index.types.js";
|
|
|
2
2
|
import { Merge } from "../../utils/index.js";
|
|
3
3
|
import { Direction, SimplePlacement, ThemeProps } from "../../core/system/index.types.js";
|
|
4
4
|
import { StyleValue } from "../../core/css/index.types.js";
|
|
5
|
-
import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
5
|
+
import { Component, HTMLProps, HTMLStyledProps } from "../../core/components/index.types.js";
|
|
6
6
|
import "../../core/index.js";
|
|
7
7
|
import { PopoverStyle } from "./popover.style.js";
|
|
8
8
|
import { HTMLMotionProps, MotionTransitionProps } from "../motion/index.types.js";
|
|
@@ -10,7 +10,7 @@ import "../motion/index.js";
|
|
|
10
10
|
import { PortalProps } from "../portal/portal.js";
|
|
11
11
|
import { UsePopoverProps } from "./use-popover.js";
|
|
12
12
|
import "../../index.js";
|
|
13
|
-
import * as
|
|
13
|
+
import * as react788 from "react";
|
|
14
14
|
import { FC, PropsWithChildren } from "react";
|
|
15
15
|
import * as _floating_ui_react_dom0 from "@floating-ui/react-dom";
|
|
16
16
|
|
|
@@ -71,7 +71,7 @@ declare const usePopoverStyleProps: (props?: UsePopoverStyleProps) => {
|
|
|
71
71
|
placement: Direction | undefined;
|
|
72
72
|
strategy: _floating_ui_react_dom0.Strategy | undefined;
|
|
73
73
|
};
|
|
74
|
-
interface PopoverRootProps extends Merge<UsePopoverProps, UsePopoverStyleProps>, UsePopupAnimationProps, ThemeProps<PopoverStyle> {
|
|
74
|
+
interface PopoverRootProps extends Merge<UsePopoverProps, UsePopoverStyleProps>, UsePopupAnimationProps, ThemeProps<PopoverStyle>, Pick<HTMLProps, "suppressHydrationWarning"> {
|
|
75
75
|
/**
|
|
76
76
|
* The children of the popover.
|
|
77
77
|
*/
|
|
@@ -80,7 +80,7 @@ interface PopoverRootProps extends Merge<UsePopoverProps, UsePopoverStyleProps>,
|
|
|
80
80
|
onClose: () => void;
|
|
81
81
|
}>;
|
|
82
82
|
}
|
|
83
|
-
declare const PopoverPropsContext:
|
|
83
|
+
declare const PopoverPropsContext: react788.Context<Partial<PopoverRootProps> | undefined>, usePopoverPropsContext: () => Partial<PopoverRootProps> | undefined;
|
|
84
84
|
/**
|
|
85
85
|
* `Popover` is a component that floats around an element to display information.
|
|
86
86
|
*
|
|
@@ -5,8 +5,8 @@ import "../../core/index.js";
|
|
|
5
5
|
import { ProgressStyle } from "./progress.style.js";
|
|
6
6
|
import { UseProgressProps } from "./use-progress.js";
|
|
7
7
|
import "../../index.js";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
9
|
+
import * as react787 from "react";
|
|
10
10
|
|
|
11
11
|
//#region src/components/progress/progress.d.ts
|
|
12
12
|
interface ProgressProps extends HTMLStyledProps, UseProgressProps, ThemeProps<ProgressStyle> {
|
|
@@ -27,7 +27,7 @@ interface ProgressProps extends HTMLStyledProps, UseProgressProps, ThemeProps<Pr
|
|
|
27
27
|
*/
|
|
28
28
|
rangeProps?: ProgressRangeProps;
|
|
29
29
|
}
|
|
30
|
-
declare const ProgressPropsContext:
|
|
30
|
+
declare const ProgressPropsContext: react787.Context<Partial<ProgressProps> | undefined>, useProgressPropsContext: () => Partial<ProgressProps> | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* `Progress` is a component for visually indicating progress.
|
|
33
33
|
*
|
|
@@ -125,7 +125,7 @@ declare const Progress: Component<({
|
|
|
125
125
|
bg: ["colorScheme.muted", "colorScheme.subtle"];
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
}>, keyof ProgressProps>) =>
|
|
128
|
+
}>, keyof ProgressProps>) => react_jsx_runtime4.JSX.Element, ProgressProps>;
|
|
129
129
|
interface ProgressRangeProps extends HTMLStyledProps {}
|
|
130
130
|
//#endregion
|
|
131
131
|
export { Progress, ProgressProps, ProgressPropsContext, useProgressPropsContext };
|