@skeletonlabs/skeleton-react 4.0.1 → 4.1.0
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/components/accordion/anatomy/item-content.d.ts +2 -2
- package/dist/components/accordion/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/accordion/anatomy/item-trigger.d.ts +2 -2
- package/dist/components/accordion/anatomy/item.d.ts +2 -2
- package/dist/components/accordion/anatomy/root-provider.d.ts +2 -2
- package/dist/components/accordion/anatomy/root.d.ts +2 -2
- package/dist/components/accordion/modules/provider.js +2 -3
- package/dist/components/app-bar/anatomy/headline.d.ts +2 -2
- package/dist/components/app-bar/anatomy/lead.d.ts +2 -2
- package/dist/components/app-bar/anatomy/root.d.ts +2 -2
- package/dist/components/app-bar/anatomy/toolbar.d.ts +2 -2
- package/dist/components/app-bar/anatomy/trail.d.ts +2 -2
- package/dist/components/avatar/anatomy/fallback.d.ts +2 -2
- package/dist/components/avatar/anatomy/image.d.ts +2 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/avatar/modules/provider.js +2 -3
- package/dist/components/collapsible/anatomy/content.d.ts +2 -2
- package/dist/components/collapsible/anatomy/indicator.d.ts +2 -2
- package/dist/components/collapsible/anatomy/root-provider.d.ts +2 -2
- package/dist/components/collapsible/anatomy/root.d.ts +2 -2
- package/dist/components/collapsible/anatomy/trigger.d.ts +2 -2
- package/dist/components/collapsible/modules/provider.js +2 -3
- package/dist/components/combobox/anatomy/content.d.ts +2 -2
- package/dist/components/combobox/anatomy/control.d.ts +2 -2
- package/dist/components/combobox/anatomy/input.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group-label.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-group-label.js +1 -2
- package/dist/components/combobox/anatomy/item-group.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/combobox/anatomy/item-text.d.ts +2 -2
- package/dist/components/combobox/anatomy/item.d.ts +2 -2
- package/dist/components/combobox/anatomy/label.d.ts +2 -2
- package/dist/components/combobox/anatomy/positioner.d.ts +2 -2
- package/dist/components/combobox/anatomy/root-provider.d.ts +2 -2
- package/dist/components/combobox/anatomy/root.d.ts +2 -2
- package/dist/components/combobox/anatomy/trigger.d.ts +2 -2
- package/dist/components/combobox/modules/provider.js +2 -3
- package/dist/components/date-picker/anatomy/content.d.ts +2 -2
- package/dist/components/date-picker/anatomy/control.d.ts +2 -2
- package/dist/components/date-picker/anatomy/input.d.ts +2 -2
- package/dist/components/date-picker/anatomy/label.d.ts +2 -2
- package/dist/components/date-picker/anatomy/month-select.d.ts +2 -2
- package/dist/components/date-picker/anatomy/next-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/positioner.d.ts +2 -2
- package/dist/components/date-picker/anatomy/preset-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/prev-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/range-text.d.ts +2 -2
- package/dist/components/date-picker/anatomy/root-provider.d.ts +2 -2
- package/dist/components/date-picker/anatomy/root.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-body.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-cell-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-cell.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-head.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-header.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table-row.d.ts +2 -2
- package/dist/components/date-picker/anatomy/table.d.ts +2 -2
- package/dist/components/date-picker/anatomy/trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/view-control.d.ts +2 -2
- package/dist/components/date-picker/anatomy/view-trigger.d.ts +2 -2
- package/dist/components/date-picker/anatomy/view.d.ts +2 -2
- package/dist/components/date-picker/anatomy/year-select.d.ts +2 -2
- package/dist/components/date-picker/modules/provider.js +2 -3
- package/dist/components/dialog/anatomy/backdrop.d.ts +2 -2
- package/dist/components/dialog/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/dialog/anatomy/content.d.ts +2 -2
- package/dist/components/dialog/anatomy/description.d.ts +2 -2
- package/dist/components/dialog/anatomy/positioner.d.ts +2 -2
- package/dist/components/dialog/anatomy/root-provider.d.ts +2 -2
- package/dist/components/dialog/anatomy/root.d.ts +2 -2
- package/dist/components/dialog/anatomy/title.d.ts +2 -2
- package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
- package/dist/components/dialog/modules/provider.js +2 -3
- package/dist/components/file-upload/anatomy/dropzone.d.ts +2 -2
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-group.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-name.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +2 -2
- package/dist/components/file-upload/anatomy/item.d.ts +2 -2
- package/dist/components/file-upload/anatomy/label.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
- package/dist/components/file-upload/anatomy/root.d.ts +2 -2
- package/dist/components/file-upload/anatomy/trigger.d.ts +2 -2
- package/dist/components/file-upload/modules/provider.js +2 -3
- package/dist/components/listbox/anatomy/content.d.ts +2 -2
- package/dist/components/listbox/anatomy/input.d.ts +2 -2
- package/dist/components/listbox/anatomy/item-group-label.d.ts +2 -2
- package/dist/components/listbox/anatomy/item-group-label.js +1 -2
- package/dist/components/listbox/anatomy/item-group.d.ts +2 -2
- package/dist/components/listbox/anatomy/item-indicator.d.ts +2 -2
- package/dist/components/listbox/anatomy/item-text.d.ts +2 -2
- package/dist/components/listbox/anatomy/item.d.ts +2 -2
- package/dist/components/listbox/anatomy/label.d.ts +2 -2
- package/dist/components/listbox/anatomy/root-provider.d.ts +2 -2
- package/dist/components/listbox/anatomy/root.d.ts +2 -2
- package/dist/components/listbox/modules/provider.js +2 -3
- package/dist/components/navigation/anatomy/content.d.ts +2 -2
- package/dist/components/navigation/anatomy/footer.d.ts +2 -2
- package/dist/components/navigation/anatomy/group.d.ts +2 -2
- package/dist/components/navigation/anatomy/header.d.ts +2 -2
- package/dist/components/navigation/anatomy/label.d.ts +2 -2
- package/dist/components/navigation/anatomy/menu.d.ts +2 -2
- package/dist/components/navigation/anatomy/root.d.ts +2 -2
- package/dist/components/pagination/anatomy/ellipsis.d.ts +2 -2
- package/dist/components/pagination/anatomy/item.d.ts +2 -2
- package/dist/components/pagination/anatomy/next-trigger.d.ts +2 -2
- package/dist/components/pagination/anatomy/prev-trigger.d.ts +2 -2
- package/dist/components/pagination/anatomy/root-provider.d.ts +2 -2
- package/dist/components/pagination/anatomy/root.d.ts +2 -2
- package/dist/components/pagination/modules/provider.js +2 -3
- package/dist/components/popover/anatomy/arrow-tip.d.ts +2 -2
- package/dist/components/popover/anatomy/arrow.d.ts +2 -2
- package/dist/components/popover/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/popover/anatomy/content.d.ts +2 -2
- package/dist/components/popover/anatomy/description.d.ts +2 -2
- package/dist/components/popover/anatomy/positioner.d.ts +2 -2
- package/dist/components/popover/anatomy/root-provider.d.ts +2 -2
- package/dist/components/popover/anatomy/root.d.ts +2 -2
- package/dist/components/popover/anatomy/title.d.ts +2 -2
- package/dist/components/popover/anatomy/trigger.d.ts +2 -2
- package/dist/components/popover/modules/provider.js +2 -3
- package/dist/components/portal/anatomy/root.d.ts +2 -2
- package/dist/components/progress/anatomy/circle-range.d.ts +2 -2
- package/dist/components/progress/anatomy/circle-track.d.ts +2 -2
- package/dist/components/progress/anatomy/circle.d.ts +2 -2
- package/dist/components/progress/anatomy/label.d.ts +2 -2
- package/dist/components/progress/anatomy/range.d.ts +2 -2
- package/dist/components/progress/anatomy/root-provider.d.ts +2 -2
- package/dist/components/progress/anatomy/root.d.ts +2 -2
- package/dist/components/progress/anatomy/track.d.ts +2 -2
- package/dist/components/progress/anatomy/value-text.d.ts +2 -2
- package/dist/components/progress/modules/provider.js +2 -3
- package/dist/components/rating-group/anatomy/control.d.ts +2 -2
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/rating-group/anatomy/item.d.ts +2 -2
- package/dist/components/rating-group/anatomy/label.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root-provider.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root.d.ts +2 -2
- package/dist/components/rating-group/modules/provider.js +2 -3
- package/dist/components/segmented-control/anatomy/control.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/indicator.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item-text.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/item.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/label.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +2 -2
- package/dist/components/segmented-control/anatomy/root.d.ts +2 -2
- package/dist/components/segmented-control/modules/provider.js +2 -3
- package/dist/components/slider/anatomy/control.d.ts +2 -2
- package/dist/components/slider/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/slider/anatomy/label.d.ts +2 -2
- package/dist/components/slider/anatomy/marker-group.d.ts +2 -2
- package/dist/components/slider/anatomy/marker.d.ts +2 -2
- package/dist/components/slider/anatomy/range.d.ts +2 -2
- package/dist/components/slider/anatomy/root-provider.d.ts +2 -2
- package/dist/components/slider/anatomy/root.d.ts +2 -2
- package/dist/components/slider/anatomy/thumb.d.ts +2 -2
- package/dist/components/slider/anatomy/track.d.ts +2 -2
- package/dist/components/slider/anatomy/value-text.d.ts +2 -2
- package/dist/components/slider/modules/provider.js +2 -3
- package/dist/components/switch/anatomy/control.d.ts +2 -2
- package/dist/components/switch/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/switch/anatomy/label.d.ts +2 -2
- package/dist/components/switch/anatomy/root-provider.d.ts +2 -2
- package/dist/components/switch/anatomy/root.d.ts +2 -2
- package/dist/components/switch/anatomy/thumb.d.ts +2 -2
- package/dist/components/switch/modules/provider.js +2 -3
- package/dist/components/tabs/anatomy/content.d.ts +2 -2
- package/dist/components/tabs/anatomy/indicator.d.ts +2 -2
- package/dist/components/tabs/anatomy/list.d.ts +2 -2
- package/dist/components/tabs/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tabs/anatomy/root.d.ts +2 -2
- package/dist/components/tabs/anatomy/trigger.d.ts +2 -2
- package/dist/components/tabs/modules/provider.js +2 -3
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/control.d.ts +2 -2
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-input.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-preview.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item-text.d.ts +2 -2
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/label.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tags-input/anatomy/root.d.ts +2 -2
- package/dist/components/tags-input/modules/provider.js +2 -3
- package/dist/components/toast/anatomy/action-trigger.d.ts +2 -2
- package/dist/components/toast/anatomy/close-trigger.d.ts +2 -2
- package/dist/components/toast/anatomy/description.d.ts +2 -2
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/message.d.ts +2 -2
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/root.js +2 -3
- package/dist/components/toast/anatomy/title.d.ts +2 -2
- package/dist/components/toggle-group/anatomy/item.d.ts +11 -0
- package/dist/components/toggle-group/anatomy/item.js +22 -0
- package/dist/components/toggle-group/anatomy/root-context.d.ts +11 -0
- package/dist/components/toggle-group/anatomy/root-context.js +13 -0
- package/dist/components/toggle-group/anatomy/root-provider.d.ts +13 -0
- package/dist/components/toggle-group/anatomy/root-provider.js +21 -0
- package/dist/components/toggle-group/anatomy/root.d.ts +11 -0
- package/dist/components/toggle-group/anatomy/root.js +25 -0
- package/dist/components/toggle-group/modules/anatomy.d.ts +14 -0
- package/dist/components/toggle-group/modules/anatomy.js +15 -0
- package/dist/components/toggle-group/modules/provider.d.ts +8 -0
- package/dist/components/toggle-group/modules/provider.js +15 -0
- package/dist/components/toggle-group/modules/root-context.js +8 -0
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +2 -2
- package/dist/components/tooltip/anatomy/arrow.d.ts +2 -2
- package/dist/components/tooltip/anatomy/content.d.ts +2 -2
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tooltip/anatomy/root.d.ts +2 -2
- package/dist/components/tooltip/anatomy/trigger.d.ts +2 -2
- package/dist/components/tooltip/modules/provider.js +2 -3
- package/dist/components/tree-view/anatomy/branch-content.d.ts +2 -2
- package/dist/components/tree-view/anatomy/branch-control.d.ts +2 -2
- package/dist/components/tree-view/anatomy/branch-indent-guide.d.ts +2 -2
- package/dist/components/tree-view/anatomy/branch-indicator.d.ts +2 -2
- package/dist/components/tree-view/anatomy/branch-text.d.ts +2 -2
- package/dist/components/tree-view/anatomy/branch.d.ts +2 -2
- package/dist/components/tree-view/anatomy/item.d.ts +2 -2
- package/dist/components/tree-view/anatomy/label.d.ts +2 -2
- package/dist/components/tree-view/anatomy/node-provider.d.ts +2 -2
- package/dist/components/tree-view/anatomy/root-provider.d.ts +2 -2
- package/dist/components/tree-view/anatomy/root.d.ts +2 -2
- package/dist/components/tree-view/anatomy/tree.d.ts +2 -2
- package/dist/components/tree-view/modules/provider.js +2 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +3 -1
- package/dist/internal/components/calendar.js +11 -12
- package/dist/internal/components/check.js +11 -12
- package/dist/internal/components/chevron-down.js +11 -12
- package/dist/internal/components/chevron-left.js +11 -12
- package/dist/internal/components/chevron-right.js +11 -12
- package/dist/internal/components/star-empty.js +9 -10
- package/dist/internal/components/star-full.js +7 -8
- package/dist/internal/components/star-half.js +9 -10
- package/dist/internal/components/x.js +11 -12
- package/package.json +4 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useSwitch } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/root-provider.d.ts
|
|
7
7
|
interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {
|
|
8
8
|
value: ReturnType<typeof useSwitch>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: SwitchRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: SwitchRootProviderProps): react_jsx_runtime41.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RootProvider, SwitchRootProviderProps };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/switch";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/root.d.ts
|
|
7
7
|
interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
|
|
8
|
-
declare function Root(props: SwitchRootProps):
|
|
8
|
+
declare function Root(props: SwitchRootProps): react_jsx_runtime42.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root, SwitchRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react111 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/switch/anatomy/thumb.d.ts
|
|
6
6
|
interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function Thumb(props: SwitchThumbProps):
|
|
7
|
+
declare function Thumb(props: SwitchThumbProps): react111.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { SwitchThumbProps, Thumb };
|
|
10
10
|
//# sourceMappingURL=thumb.d.ts.map
|
|
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/switch";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/switch/modules/provider.ts
|
|
6
6
|
function useSwitch(props = {}) {
|
|
7
|
-
|
|
7
|
+
return connect(useMachine(machine, {
|
|
8
8
|
id: useId(),
|
|
9
9
|
...props
|
|
10
|
-
});
|
|
11
|
-
return connect(service, normalizeProps);
|
|
10
|
+
}), normalizeProps);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react104 from "react";
|
|
4
4
|
import { ContentProps } from "@zag-js/tabs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/content.d.ts
|
|
7
7
|
interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Content(props: TabsContentProps):
|
|
8
|
+
declare function Content(props: TabsContentProps): react104.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Content, TabsContentProps };
|
|
11
11
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react105 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tabs/anatomy/indicator.d.ts
|
|
6
6
|
interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
7
|
-
declare function Indicator(props: TabsIndicatorProps):
|
|
7
|
+
declare function Indicator(props: TabsIndicatorProps): react105.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Indicator, TabsIndicatorProps };
|
|
10
10
|
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react106 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tabs/anatomy/list.d.ts
|
|
6
6
|
interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
7
|
-
declare function List(props: TabsListProps):
|
|
7
|
+
declare function List(props: TabsListProps): react106.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { List, TabsListProps };
|
|
10
10
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useTabs } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/root-provider.d.ts
|
|
7
7
|
interface TabsRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useTabs>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: TabsRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: TabsRootProviderProps): react_jsx_runtime40.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RootProvider, TabsRootProviderProps };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/tabs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/root.d.ts
|
|
7
7
|
interface TabsRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: TabsRootProps):
|
|
8
|
+
declare function Root(props: TabsRootProps): react_jsx_runtime39.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root, TabsRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react107 from "react";
|
|
4
4
|
import { TriggerProps } from "@zag-js/tabs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/trigger.d.ts
|
|
7
7
|
interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}
|
|
8
|
-
declare function Trigger(props: TabsTriggerProps):
|
|
8
|
+
declare function Trigger(props: TabsTriggerProps): react107.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { TabsTriggerProps, Trigger };
|
|
11
11
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tabs";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/tabs/modules/provider.ts
|
|
6
6
|
function useTabs(props = {}) {
|
|
7
|
-
|
|
7
|
+
return connect(useMachine(machine, {
|
|
8
8
|
id: useId(),
|
|
9
9
|
...props
|
|
10
|
-
});
|
|
11
|
-
return connect(service, normalizeProps);
|
|
10
|
+
}), normalizeProps);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react112 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/clear-trigger.d.ts
|
|
6
6
|
interface TagsInputClearTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function ClearTrigger(props: TagsInputClearTriggerProps):
|
|
7
|
+
declare function ClearTrigger(props: TagsInputClearTriggerProps): react112.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ClearTrigger, TagsInputClearTriggerProps };
|
|
10
10
|
//# sourceMappingURL=clear-trigger.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react113 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/control.d.ts
|
|
6
6
|
interface TagsInputControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Control(props: TagsInputControlProps):
|
|
7
|
+
declare function Control(props: TagsInputControlProps): react113.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Control, TagsInputControlProps };
|
|
10
10
|
//# sourceMappingURL=control.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react114 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/hidden-input.d.ts
|
|
6
6
|
interface TagsInputHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
7
|
-
declare function HiddenInput(props: TagsInputHiddenInputProps):
|
|
7
|
+
declare function HiddenInput(props: TagsInputHiddenInputProps): react114.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HiddenInput, TagsInputHiddenInputProps };
|
|
10
10
|
//# sourceMappingURL=hidden-input.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react115 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/input.d.ts
|
|
6
6
|
interface TagsInputInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
7
|
-
declare function Input(props: TagsInputInputProps):
|
|
7
|
+
declare function Input(props: TagsInputInputProps): react115.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Input, TagsInputInputProps };
|
|
10
10
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react116 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/item-delete-trigger.d.ts
|
|
6
6
|
interface TagsInputItemDeleteTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function ItemDeleteTrigger(props: TagsInputItemDeleteTriggerProps):
|
|
7
|
+
declare function ItemDeleteTrigger(props: TagsInputItemDeleteTriggerProps): react116.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemDeleteTrigger, TagsInputItemDeleteTriggerProps };
|
|
10
10
|
//# sourceMappingURL=item-delete-trigger.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react117 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/item-input.d.ts
|
|
6
6
|
interface TagsInputItemInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
7
|
-
declare function ItemInput(props: TagsInputItemInputProps):
|
|
7
|
+
declare function ItemInput(props: TagsInputItemInputProps): react117.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemInput, TagsInputItemInputProps };
|
|
10
10
|
//# sourceMappingURL=item-input.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react118 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/item-preview.d.ts
|
|
6
6
|
interface TagsInputItemPreviewProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function ItemPreview(props: TagsInputItemPreviewProps):
|
|
7
|
+
declare function ItemPreview(props: TagsInputItemPreviewProps): react118.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemPreview, TagsInputItemPreviewProps };
|
|
10
10
|
//# sourceMappingURL=item-preview.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react119 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/item-text.d.ts
|
|
6
6
|
interface TagsInputItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function ItemText(props: TagsInputItemTextProps):
|
|
7
|
+
declare function ItemText(props: TagsInputItemTextProps): react119.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemText, TagsInputItemTextProps };
|
|
10
10
|
//# sourceMappingURL=item-text.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
4
4
|
import { ItemProps } from "@zag-js/tags-input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/item.d.ts
|
|
7
7
|
interface TagsInputItemProps extends ItemProps, PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function Item(props: TagsInputItemProps):
|
|
8
|
+
declare function Item(props: TagsInputItemProps): react_jsx_runtime43.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Item, TagsInputItemProps };
|
|
11
11
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react120 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/anatomy/label.d.ts
|
|
6
6
|
interface TagsInputLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
7
|
-
declare function Label(props: TagsInputLabelProps):
|
|
7
|
+
declare function Label(props: TagsInputLabelProps): react120.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Label, TagsInputLabelProps };
|
|
10
10
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { useTagsInput } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/root-provider.d.ts
|
|
7
7
|
interface TagsInputRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
8
|
value: ReturnType<typeof useTagsInput>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: TagsInputRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: TagsInputRootProviderProps): react_jsx_runtime45.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RootProvider, TagsInputRootProviderProps };
|
|
13
13
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/tags-input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/root.d.ts
|
|
7
7
|
interface TagsInputRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: TagsInputRootProps):
|
|
8
|
+
declare function Root(props: TagsInputRootProps): react_jsx_runtime44.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root, TagsInputRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tags-input";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/tags-input/modules/provider.ts
|
|
6
6
|
function useTagsInput(props = {}) {
|
|
7
|
-
|
|
7
|
+
return connect(useMachine(machine, {
|
|
8
8
|
id: useId(),
|
|
9
9
|
...props
|
|
10
|
-
});
|
|
11
|
-
return connect(service, normalizeProps);
|
|
10
|
+
}), normalizeProps);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react125 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/action-trigger.d.ts
|
|
6
6
|
interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function ActionTrigger(props: ToastActionTriggerProps):
|
|
7
|
+
declare function ActionTrigger(props: ToastActionTriggerProps): react125.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ActionTrigger, ToastActionTriggerProps };
|
|
10
10
|
//# sourceMappingURL=action-trigger.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react121 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/close-trigger.d.ts
|
|
6
6
|
interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function CloseTrigger(props: ToastCloseTriggerProps):
|
|
7
|
+
declare function CloseTrigger(props: ToastCloseTriggerProps): react121.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CloseTrigger, ToastCloseTriggerProps };
|
|
10
10
|
//# sourceMappingURL=close-trigger.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react122 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/description.d.ts
|
|
6
6
|
interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Description(props: ToastDescriptionProps):
|
|
7
|
+
declare function Description(props: ToastDescriptionProps): react122.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Description, ToastDescriptionProps };
|
|
10
10
|
//# sourceMappingURL=description.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
3
|
import { JSX } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
5
5
|
import { Props, Store } from "@zag-js/toast";
|
|
6
6
|
|
|
7
7
|
//#region src/components/toast/anatomy/group.d.ts
|
|
@@ -9,7 +9,7 @@ interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div',
|
|
|
9
9
|
toaster: Store;
|
|
10
10
|
children?: (toast: Props) => JSX.Element | null;
|
|
11
11
|
}
|
|
12
|
-
declare function Group(props: ToastGroupProps):
|
|
12
|
+
declare function Group(props: ToastGroupProps): react_jsx_runtime46.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Group, ToastGroupProps };
|
|
15
15
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react123 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/message.d.ts
|
|
6
6
|
interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Message(props: ToastMessageProps):
|
|
7
|
+
declare function Message(props: ToastMessageProps): react123.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Message, ToastMessageProps };
|
|
10
10
|
//# sourceMappingURL=message.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
4
4
|
import { Options } from "@zag-js/toast";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toast/anatomy/root.d.ts
|
|
7
7
|
interface ToastRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
8
|
toast: Omit<Options, 'id' | 'parent'>;
|
|
9
9
|
}
|
|
10
|
-
declare function Root(props: ToastRootProps):
|
|
10
|
+
declare function Root(props: ToastRootProps): react_jsx_runtime47.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Root, ToastRootProps };
|
|
13
13
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -10,12 +10,11 @@ import { connect, machine } from "@zag-js/toast";
|
|
|
10
10
|
function Root(props) {
|
|
11
11
|
const group$1 = use(GroupContext);
|
|
12
12
|
const { element, children, toast: toastProps,...rest } = props;
|
|
13
|
-
const
|
|
13
|
+
const toast = connect(useMachine(machine, {
|
|
14
14
|
...toastProps,
|
|
15
15
|
id: useId(),
|
|
16
16
|
parent: group$1
|
|
17
|
-
});
|
|
18
|
-
const toast = connect(service, normalizeProps);
|
|
17
|
+
}), normalizeProps);
|
|
19
18
|
const attributes = mergeProps(toast.getRootProps(), { className: classesToast.root }, rest);
|
|
20
19
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(RootContext.Provider, {
|
|
21
20
|
value: toast,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react124 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toast/anatomy/title.d.ts
|
|
6
6
|
interface ToastTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Title(props: ToastTitleProps):
|
|
7
|
+
declare function Title(props: ToastTitleProps): react124.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Title, ToastTitleProps };
|
|
10
10
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react126 from "react";
|
|
4
|
+
import { ItemProps } from "@zag-js/toggle-group";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toggle-group/anatomy/item.d.ts
|
|
7
|
+
interface ToggleGroupItemProps extends ItemProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value' | 'disabled'> {}
|
|
8
|
+
declare function Item(props: ToggleGroupItemProps): react126.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Item, ToggleGroupItemProps };
|
|
11
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesToggleGroup } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitItemProps } from "@zag-js/toggle-group";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toggle-group/anatomy/item.tsx
|
|
9
|
+
function Item(props) {
|
|
10
|
+
const toggleGroup = use(RootContext);
|
|
11
|
+
const [itemProps, componentProps] = splitItemProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(toggleGroup.getItemProps(itemProps), { className: classesToggleGroup.item }, rest);
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
15
|
+
...attributes,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Item as default };
|
|
22
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useToggleGroup } from "../modules/provider.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toggle-group/anatomy/root-context.d.ts
|
|
5
|
+
interface ToggleGroupRootContextProps {
|
|
6
|
+
children: (togglegroup: ReturnType<typeof useToggleGroup>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: ToggleGroupRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RootContext, ToggleGroupRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toggle-group/anatomy/root-context.tsx
|
|
5
|
+
function RootContext$1(props) {
|
|
6
|
+
const toggleGroup = use(RootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(toggleGroup);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootContext$1 as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useToggleGroup } from "../modules/provider.js";
|
|
4
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toggle-group/anatomy/root-provider.d.ts
|
|
7
|
+
interface ToggleGroupRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
|
+
value: ReturnType<typeof useToggleGroup>;
|
|
9
|
+
}
|
|
10
|
+
declare function ToggleGroupRootProvider(props: ToggleGroupRootProviderProps): react_jsx_runtime49.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ToggleGroupRootProvider, ToggleGroupRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesToggleGroup } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toggle-group/anatomy/root-provider.tsx
|
|
7
|
+
function ToggleGroupRootProvider(props) {
|
|
8
|
+
const { element, children, value: toggleGroup,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classesToggleGroup.root }, rest);
|
|
10
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
11
|
+
value: toggleGroup,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ToggleGroupRootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/toggle-group";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toggle-group/anatomy/root.d.ts
|
|
7
|
+
interface ToggleGroupRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function ToggleGroupRoot(props: ToggleGroupRootProps): react_jsx_runtime48.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToggleGroupRoot, ToggleGroupRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|