@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useToggleGroup } from "../modules/provider.js";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesToggleGroup } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { splitProps } from "@zag-js/toggle-group";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toggle-group/anatomy/root.tsx
|
|
9
|
+
function ToggleGroupRoot(props) {
|
|
10
|
+
const [toggleGroupProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const toggleGroup = useToggleGroup(toggleGroupProps);
|
|
13
|
+
const attributes = mergeProps(toggleGroup.getRootProps(), { className: classesToggleGroup.root }, rest);
|
|
14
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, {
|
|
15
|
+
value: toggleGroup,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
17
|
+
...attributes,
|
|
18
|
+
children
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ToggleGroupRoot as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Item } from "../anatomy/item.js";
|
|
2
|
+
import { ToggleGroupRoot } from "../anatomy/root.js";
|
|
3
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
4
|
+
import { ToggleGroupRootProvider } from "../anatomy/root-provider.js";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toggle-group/modules/anatomy.d.ts
|
|
7
|
+
declare const ToggleGroup: typeof ToggleGroupRoot & {
|
|
8
|
+
Provider: typeof ToggleGroupRootProvider;
|
|
9
|
+
Context: typeof RootContext;
|
|
10
|
+
Item: typeof Item;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ToggleGroup };
|
|
14
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Item from "../anatomy/item.js";
|
|
2
|
+
import ToggleGroupRoot from "../anatomy/root.js";
|
|
3
|
+
import RootContext from "../anatomy/root-context.js";
|
|
4
|
+
import ToggleGroupRootProvider from "../anatomy/root-provider.js";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toggle-group/modules/anatomy.ts
|
|
7
|
+
const ToggleGroup = Object.assign(ToggleGroupRoot, {
|
|
8
|
+
Provider: ToggleGroupRootProvider,
|
|
9
|
+
Context: RootContext,
|
|
10
|
+
Item
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ToggleGroup };
|
|
15
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
|
+
import { Api, Props } from "@zag-js/toggle-group";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toggle-group/modules/provider.d.ts
|
|
5
|
+
declare function useToggleGroup(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useToggleGroup };
|
|
8
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
3
|
+
import { connect, machine } from "@zag-js/toggle-group";
|
|
4
|
+
|
|
5
|
+
//#region src/components/toggle-group/modules/provider.ts
|
|
6
|
+
function useToggleGroup(props = {}) {
|
|
7
|
+
return connect(useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
}), normalizeProps);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useToggleGroup };
|
|
15
|
+
//# sourceMappingURL=provider.js.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 react128 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/arrow-tip.d.ts
|
|
6
6
|
interface TooltipArrowTipProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function ArrowTip(props: TooltipArrowTipProps):
|
|
7
|
+
declare function ArrowTip(props: TooltipArrowTipProps): react128.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ArrowTip, TooltipArrowTipProps };
|
|
10
10
|
//# sourceMappingURL=arrow-tip.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 react127 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/arrow.d.ts
|
|
6
6
|
interface TooltipArrowProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Arrow(props: TooltipArrowProps):
|
|
7
|
+
declare function Arrow(props: TooltipArrowProps): react127.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Arrow, TooltipArrowProps };
|
|
10
10
|
//# sourceMappingURL=arrow.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 react129 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/content.d.ts
|
|
6
6
|
interface TooltipContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Content(props: TooltipContentProps):
|
|
7
|
+
declare function Content(props: TooltipContentProps): react129.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Content, TooltipContentProps };
|
|
10
10
|
//# 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 react_jsx_runtime50 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/positioner.d.ts
|
|
6
6
|
interface TooltipPositionerProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Positioner(props: TooltipPositionerProps):
|
|
7
|
+
declare function Positioner(props: TooltipPositionerProps): react_jsx_runtime50.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Positioner, TooltipPositionerProps };
|
|
10
10
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useTooltip } from "../modules/provider.js";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/root-provider.d.ts
|
|
6
6
|
interface TooltipRootProviderProps extends PropsWithChildren {
|
|
7
7
|
value: ReturnType<typeof useTooltip>;
|
|
8
8
|
}
|
|
9
|
-
declare function RootProvider(props: TooltipRootProviderProps):
|
|
9
|
+
declare function RootProvider(props: TooltipRootProviderProps): react_jsx_runtime52.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { RootProvider, TooltipRootProviderProps };
|
|
12
12
|
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
3
3
|
import { Props } from "@zag-js/tooltip";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/root.d.ts
|
|
6
6
|
interface TooltipRootProps extends PropsWithChildren, Omit<Props, 'id'> {}
|
|
7
|
-
declare function Root(props: TooltipRootProps):
|
|
7
|
+
declare function Root(props: TooltipRootProps): react_jsx_runtime51.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Root, TooltipRootProps };
|
|
10
10
|
//# 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 react130 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/anatomy/trigger.d.ts
|
|
6
6
|
interface TooltipTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
7
|
-
declare function Trigger(props: TooltipTriggerProps):
|
|
7
|
+
declare function Trigger(props: TooltipTriggerProps): react130.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TooltipTriggerProps, Trigger };
|
|
10
10
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tooltip";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/tooltip/modules/provider.ts
|
|
6
6
|
function useTooltip(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 react137 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/branch-content.d.ts
|
|
6
6
|
interface TreeViewBranchContentProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function BranchContent(props: TreeViewBranchContentProps):
|
|
7
|
+
declare function BranchContent(props: TreeViewBranchContentProps): react137.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BranchContent, TreeViewBranchContentProps };
|
|
10
10
|
//# sourceMappingURL=branch-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 react134 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/branch-control.d.ts
|
|
6
6
|
interface TreeViewBranchControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function BranchControl(props: TreeViewBranchControlProps):
|
|
7
|
+
declare function BranchControl(props: TreeViewBranchControlProps): react134.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BranchControl, TreeViewBranchControlProps };
|
|
10
10
|
//# sourceMappingURL=branch-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 react138 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/branch-indent-guide.d.ts
|
|
6
6
|
interface TreeViewBranchIndentGuideProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function BranchIndentGuide(props: TreeViewBranchIndentGuideProps):
|
|
7
|
+
declare function BranchIndentGuide(props: TreeViewBranchIndentGuideProps): react138.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BranchIndentGuide, TreeViewBranchIndentGuideProps };
|
|
10
10
|
//# sourceMappingURL=branch-indent-guide.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 react136 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/branch-indicator.d.ts
|
|
6
6
|
interface TreeViewBranchIndicatorProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function BranchIndicator(props: TreeViewBranchIndicatorProps):
|
|
7
|
+
declare function BranchIndicator(props: TreeViewBranchIndicatorProps): react136.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BranchIndicator, TreeViewBranchIndicatorProps };
|
|
10
10
|
//# sourceMappingURL=branch-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 react135 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/branch-text.d.ts
|
|
6
6
|
interface TreeViewBranchTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function BranchText(props: TreeViewBranchTextProps):
|
|
7
|
+
declare function BranchText(props: TreeViewBranchTextProps): react135.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BranchText, TreeViewBranchTextProps };
|
|
10
10
|
//# sourceMappingURL=branch-text.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 react133 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/branch.d.ts
|
|
6
6
|
interface TreeViewBranchProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Branch(props: TreeViewBranchProps):
|
|
7
|
+
declare function Branch(props: TreeViewBranchProps): react133.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Branch, TreeViewBranchProps };
|
|
10
10
|
//# sourceMappingURL=branch.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 react132 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/item.d.ts
|
|
6
6
|
interface TreeViewItemProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Item(props: TreeViewItemProps):
|
|
7
|
+
declare function Item(props: TreeViewItemProps): react132.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Item, TreeViewItemProps };
|
|
10
10
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import
|
|
3
|
+
import { JSX } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/label.d.ts
|
|
6
6
|
interface TreeViewLabelProps extends PropsWithElement<'h3'>, HTMLAttributes<'h3'> {
|
|
@@ -11,7 +11,7 @@ interface TreeViewLabelProps extends PropsWithElement<'h3'>, HTMLAttributes<'h3'
|
|
|
11
11
|
*/
|
|
12
12
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
13
13
|
}
|
|
14
|
-
declare function Label(props: TreeViewLabelProps):
|
|
14
|
+
declare function Label(props: TreeViewLabelProps): JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Label, TreeViewLabelProps };
|
|
17
17
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
3
3
|
import { NodeProps } from "@zag-js/tree-view";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/node-provider.d.ts
|
|
6
6
|
interface TreeViewNodeProviderProps extends PropsWithChildren {
|
|
7
7
|
value: NodeProps;
|
|
8
8
|
}
|
|
9
|
-
declare function NodeProvider(props: TreeViewNodeProviderProps):
|
|
9
|
+
declare function NodeProvider(props: TreeViewNodeProviderProps): react_jsx_runtime55.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { NodeProvider, TreeViewNodeProviderProps };
|
|
12
12
|
//# sourceMappingURL=node-provider.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 { useTreeView } from "../modules/provider.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree-view/anatomy/root-provider.d.ts
|
|
7
7
|
interface TreeViewRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
8
|
value: ReturnType<typeof useTreeView>;
|
|
9
9
|
}
|
|
10
|
-
declare function RootProvider(props: TreeViewRootProviderProps):
|
|
10
|
+
declare function RootProvider(props: TreeViewRootProviderProps): react_jsx_runtime54.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { RootProvider, TreeViewRootProviderProps };
|
|
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_runtime53 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/tree-view";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tree-view/anatomy/root.d.ts
|
|
7
7
|
interface TreeViewRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
-
declare function Root(props: TreeViewRootProps):
|
|
8
|
+
declare function Root(props: TreeViewRootProps): react_jsx_runtime53.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root, TreeViewRootProps };
|
|
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 react131 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/anatomy/tree.d.ts
|
|
6
6
|
interface TreeViewTreeProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Tree(props: TreeViewTreeProps):
|
|
7
|
+
declare function Tree(props: TreeViewTreeProps): react131.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Tree, TreeViewTreeProps };
|
|
10
10
|
//# sourceMappingURL=tree.d.ts.map
|
|
@@ -4,11 +4,10 @@ import { connect, machine } from "@zag-js/tree-view";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/tree-view/modules/provider.ts
|
|
6
6
|
function useTreeView(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
|
package/dist/index.d.ts
CHANGED
|
@@ -232,6 +232,12 @@ import { ToastTitleProps } from "./components/toast/anatomy/title.js";
|
|
|
232
232
|
import { ToastActionTriggerProps } from "./components/toast/anatomy/action-trigger.js";
|
|
233
233
|
import { Toast } from "./components/toast/modules/anatomy.js";
|
|
234
234
|
import { createToaster } from "./components/toast/index.js";
|
|
235
|
+
import { ToggleGroupItemProps } from "./components/toggle-group/anatomy/item.js";
|
|
236
|
+
import { ToggleGroupRootProps } from "./components/toggle-group/anatomy/root.js";
|
|
237
|
+
import { useToggleGroup } from "./components/toggle-group/modules/provider.js";
|
|
238
|
+
import { ToggleGroupRootContextProps } from "./components/toggle-group/anatomy/root-context.js";
|
|
239
|
+
import { ToggleGroupRootProviderProps } from "./components/toggle-group/anatomy/root-provider.js";
|
|
240
|
+
import { ToggleGroup } from "./components/toggle-group/modules/anatomy.js";
|
|
235
241
|
import { TooltipArrowProps } from "./components/tooltip/anatomy/arrow.js";
|
|
236
242
|
import { TooltipArrowTipProps } from "./components/tooltip/anatomy/arrow-tip.js";
|
|
237
243
|
import { TooltipContentProps } from "./components/tooltip/anatomy/content.js";
|
|
@@ -259,4 +265,4 @@ import { TreeViewTreeProps } from "./components/tree-view/anatomy/tree.js";
|
|
|
259
265
|
import { TreeView } from "./components/tree-view/modules/anatomy.js";
|
|
260
266
|
import { createTreeViewCollection } from "./components/tree-view/modules/create-tree-view-collection.js";
|
|
261
267
|
import { useListCollection } from "./hooks/use-list-collection.js";
|
|
262
|
-
export { Accordion, AccordionItemContentProps, AccordionItemIndicatorProps, AccordionItemProps, AccordionItemTriggerProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, AppBar, AppBarHeadlineProps, AppBarLeadProps, AppBarRootProps, AppBarToolbarProps, AppBarTrailProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, Collapsible, CollapsibleContentProps, CollapsibleIndicatorProps, CollapsibleRootContextProps, CollapsibleRootProps, CollapsibleRootProviderProps, CollapsibleTriggerProps, Combobox, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxRootContextProps, ComboboxRootProps, ComboboxRootProviderProps, ComboboxTriggerProps, DatePicker, DatePickerContentProps, DatePickerControlProps, DatePickerInputProps, DatePickerLabelProps, DatePickerMonthSelectProps, DatePickerNextTriggerProps, DatePickerPositionerProps, DatePickerPresetTriggerProps, DatePickerPrevTriggerProps, DatePickerRangeTextProps, DatePickerRootContextProps, DatePickerRootProps, DatePickerRootProviderProps, DatePickerTableBodyProps, DatePickerTableCellProps, DatePickerTableCellTriggerProps, DatePickerTableHeadProps, DatePickerTableHeaderProps, DatePickerTableProps, DatePickerTableRowProps, DatePickerTriggerProps, DatePickerViewControlProps, DatePickerViewProps, DatePickerViewTriggerProps, DatePickerYearSelectProps, DateValue, Dialog, DialogBackdropProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogPositionerProps, DialogRootContextProps, DialogRootProps, DialogRootProviderProps, DialogTitleProps, DialogTriggerProps, FileUpload, FileUploadDropzoneProps, FileUploadHiddenInputProps, FileUploadItemDeleteTriggerProps, FileUploadItemGroupProps, FileUploadItemNameProps, FileUploadItemProps, FileUploadItemSizeTextProps, FileUploadLabelProps, FileUploadRootContextProps, FileUploadRootProps, FileUploadRootProviderProps, FileUploadTriggerProps, Listbox, ListboxContentProps, ListboxInputProps, ListboxItemGroupLabelProps, ListboxItemGroupProps, ListboxItemIndicatorProps, ListboxItemProps, ListboxItemTextProps, ListboxLabelProps, ListboxRootContextProps, ListboxRootProps, ListboxRootProviderProps, Navigation, NavigationContentProps, NavigationFooterProps, NavigationGroupProps, NavigationHeaderProps, NavigationLabelProps, NavigationMenuProps, NavigationRootProps, Pagination, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationRootContextProps, PaginationRootProps, PaginationRootProviderProps, Popover, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverRootContextProps, PopoverRootProps, PopoverRootProviderProps, PopoverTitleProps, PopoverTriggerProps, Portal, PortalRootProps, Progress, ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressLabelProps, ProgressRangeProps, ProgressRootContextProps, ProgressRootProps, ProgressRootProviderProps, ProgressTrackProps, ProgressValueTextProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, SegmentedControl, SegmentedControlControlProps, SegmentedControlIndicatorProps, SegmentedControlItemHiddenInputProps, SegmentedControlItemProps, SegmentedControlItemTextProps, SegmentedControlLabelProps, SegmentedControlRootContextProps, SegmentedControlRootProps, SegmentedControlRootProviderProps, Slider, SliderControlProps, SliderHiddenInputProps, SliderLabelProps, SliderMarkerGroupProps, SliderMarkerProps, SliderRangeProps, SliderRootContextProps, SliderRootProps, SliderRootProviderProps, SliderThumbProps, SliderTrackProps, SliderValueTextProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, TagsInput, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputRootContextProps, TagsInputRootProps, TagsInputRootProviderProps, Toast, ToastActionTriggerProps, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, Tooltip, TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipRootContextProps, TooltipRootProps, TooltipRootProviderProps, TooltipTriggerProps, TreeView, TreeViewBranchContentProps, TreeViewBranchControlProps, TreeViewBranchIndentGuideProps, TreeViewBranchIndicatorProps, TreeViewBranchProps, TreeViewBranchTextProps, TreeViewItemProps, TreeViewLabelProps, TreeViewNodeProviderProps, TreeViewRootContextProps, TreeViewRootProps, TreeViewRootProviderProps, TreeViewTreeProps, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useTooltip, useTreeView };
|
|
268
|
+
export { Accordion, AccordionItemContentProps, AccordionItemIndicatorProps, AccordionItemProps, AccordionItemTriggerProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, AppBar, AppBarHeadlineProps, AppBarLeadProps, AppBarRootProps, AppBarToolbarProps, AppBarTrailProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, Collapsible, CollapsibleContentProps, CollapsibleIndicatorProps, CollapsibleRootContextProps, CollapsibleRootProps, CollapsibleRootProviderProps, CollapsibleTriggerProps, Combobox, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxRootContextProps, ComboboxRootProps, ComboboxRootProviderProps, ComboboxTriggerProps, DatePicker, DatePickerContentProps, DatePickerControlProps, DatePickerInputProps, DatePickerLabelProps, DatePickerMonthSelectProps, DatePickerNextTriggerProps, DatePickerPositionerProps, DatePickerPresetTriggerProps, DatePickerPrevTriggerProps, DatePickerRangeTextProps, DatePickerRootContextProps, DatePickerRootProps, DatePickerRootProviderProps, DatePickerTableBodyProps, DatePickerTableCellProps, DatePickerTableCellTriggerProps, DatePickerTableHeadProps, DatePickerTableHeaderProps, DatePickerTableProps, DatePickerTableRowProps, DatePickerTriggerProps, DatePickerViewControlProps, DatePickerViewProps, DatePickerViewTriggerProps, DatePickerYearSelectProps, DateValue, Dialog, DialogBackdropProps, DialogCloseTriggerProps, DialogContentProps, DialogDescriptionProps, DialogPositionerProps, DialogRootContextProps, DialogRootProps, DialogRootProviderProps, DialogTitleProps, DialogTriggerProps, FileUpload, FileUploadDropzoneProps, FileUploadHiddenInputProps, FileUploadItemDeleteTriggerProps, FileUploadItemGroupProps, FileUploadItemNameProps, FileUploadItemProps, FileUploadItemSizeTextProps, FileUploadLabelProps, FileUploadRootContextProps, FileUploadRootProps, FileUploadRootProviderProps, FileUploadTriggerProps, Listbox, ListboxContentProps, ListboxInputProps, ListboxItemGroupLabelProps, ListboxItemGroupProps, ListboxItemIndicatorProps, ListboxItemProps, ListboxItemTextProps, ListboxLabelProps, ListboxRootContextProps, ListboxRootProps, ListboxRootProviderProps, Navigation, NavigationContentProps, NavigationFooterProps, NavigationGroupProps, NavigationHeaderProps, NavigationLabelProps, NavigationMenuProps, NavigationRootProps, Pagination, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationRootContextProps, PaginationRootProps, PaginationRootProviderProps, Popover, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverDescriptionProps, PopoverPositionerProps, PopoverRootContextProps, PopoverRootProps, PopoverRootProviderProps, PopoverTitleProps, PopoverTriggerProps, Portal, PortalRootProps, Progress, ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressLabelProps, ProgressRangeProps, ProgressRootContextProps, ProgressRootProps, ProgressRootProviderProps, ProgressTrackProps, ProgressValueTextProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, SegmentedControl, SegmentedControlControlProps, SegmentedControlIndicatorProps, SegmentedControlItemHiddenInputProps, SegmentedControlItemProps, SegmentedControlItemTextProps, SegmentedControlLabelProps, SegmentedControlRootContextProps, SegmentedControlRootProps, SegmentedControlRootProviderProps, Slider, SliderControlProps, SliderHiddenInputProps, SliderLabelProps, SliderMarkerGroupProps, SliderMarkerProps, SliderRangeProps, SliderRootContextProps, SliderRootProps, SliderRootProviderProps, SliderThumbProps, SliderTrackProps, SliderValueTextProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, TagsInput, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputHiddenInputProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, TagsInputRootContextProps, TagsInputRootProps, TagsInputRootProviderProps, Toast, ToastActionTriggerProps, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, ToggleGroup, ToggleGroupItemProps, ToggleGroupRootContextProps, ToggleGroupRootProps, ToggleGroupRootProviderProps, Tooltip, TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipRootContextProps, TooltipRootProps, TooltipRootProviderProps, TooltipTriggerProps, TreeView, TreeViewBranchContentProps, TreeViewBranchControlProps, TreeViewBranchIndentGuideProps, TreeViewBranchIndicatorProps, TreeViewBranchProps, TreeViewBranchTextProps, TreeViewItemProps, TreeViewLabelProps, TreeViewNodeProviderProps, TreeViewRootContextProps, TreeViewRootProps, TreeViewRootProviderProps, TreeViewTreeProps, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,8 @@ import { useTagsInput } from "./components/tags-input/modules/provider.js";
|
|
|
38
38
|
import { TagsInput } from "./components/tags-input/modules/anatomy.js";
|
|
39
39
|
import { Toast } from "./components/toast/modules/anatomy.js";
|
|
40
40
|
import { createToaster } from "./components/toast/index.js";
|
|
41
|
+
import { useToggleGroup } from "./components/toggle-group/modules/provider.js";
|
|
42
|
+
import { ToggleGroup } from "./components/toggle-group/modules/anatomy.js";
|
|
41
43
|
import { useTooltip } from "./components/tooltip/modules/provider.js";
|
|
42
44
|
import { Tooltip } from "./components/tooltip/modules/anatomy.js";
|
|
43
45
|
import { useTreeView } from "./components/tree-view/modules/provider.js";
|
|
@@ -45,4 +47,4 @@ import { TreeView } from "./components/tree-view/modules/anatomy.js";
|
|
|
45
47
|
import { createTreeViewCollection } from "./components/tree-view/modules/create-tree-view-collection.js";
|
|
46
48
|
import { useListCollection } from "./hooks/use-list-collection.js";
|
|
47
49
|
|
|
48
|
-
export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, Listbox, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Switch, Tabs, TagsInput, Toast, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useTooltip, useTreeView };
|
|
50
|
+
export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, Listbox, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|
|
@@ -4,19 +4,18 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/internal/components/calendar.tsx
|
|
5
5
|
function Calendar(props) {
|
|
6
6
|
const { ...rest } = props;
|
|
7
|
-
const attributes = mergeProps({
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: "24",
|
|
10
|
-
height: "24",
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: "2",
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
}, rest);
|
|
18
7
|
return /* @__PURE__ */ jsxs("svg", {
|
|
19
|
-
...
|
|
8
|
+
...mergeProps({
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "24",
|
|
11
|
+
height: "24",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}, rest),
|
|
20
19
|
children: [
|
|
21
20
|
/* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
|
|
22
21
|
/* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
|
|
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/internal/components/check.tsx
|
|
5
5
|
function Check(props) {
|
|
6
6
|
const { ...rest } = props;
|
|
7
|
-
const attributes = mergeProps({
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: "24",
|
|
10
|
-
height: "24",
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: "2",
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
}, rest);
|
|
18
7
|
return /* @__PURE__ */ jsx("svg", {
|
|
19
|
-
...
|
|
8
|
+
...mergeProps({
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "24",
|
|
11
|
+
height: "24",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}, rest),
|
|
20
19
|
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
21
20
|
});
|
|
22
21
|
}
|
|
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/internal/components/chevron-down.tsx
|
|
5
5
|
function ChevronDown(props) {
|
|
6
6
|
const { ...rest } = props;
|
|
7
|
-
const attributes = mergeProps({
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: "24",
|
|
10
|
-
height: "24",
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: "2",
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
}, rest);
|
|
18
7
|
return /* @__PURE__ */ jsx("svg", {
|
|
19
|
-
...
|
|
8
|
+
...mergeProps({
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "24",
|
|
11
|
+
height: "24",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}, rest),
|
|
20
19
|
children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
|
|
21
20
|
});
|
|
22
21
|
}
|
|
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/internal/components/chevron-left.tsx
|
|
5
5
|
function ChevronLeft(props) {
|
|
6
6
|
const { ...rest } = props;
|
|
7
|
-
const attributes = mergeProps({
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: "24",
|
|
10
|
-
height: "24",
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: "2",
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
}, rest);
|
|
18
7
|
return /* @__PURE__ */ jsx("svg", {
|
|
19
|
-
...
|
|
8
|
+
...mergeProps({
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "24",
|
|
11
|
+
height: "24",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}, rest),
|
|
20
19
|
children: /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" })
|
|
21
20
|
});
|
|
22
21
|
}
|
|
@@ -4,19 +4,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/internal/components/chevron-right.tsx
|
|
5
5
|
function ChevronRight(props) {
|
|
6
6
|
const { ...rest } = props;
|
|
7
|
-
const attributes = mergeProps({
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: "24",
|
|
10
|
-
height: "24",
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: "2",
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
}, rest);
|
|
18
7
|
return /* @__PURE__ */ jsx("svg", {
|
|
19
|
-
...
|
|
8
|
+
...mergeProps({
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "24",
|
|
11
|
+
height: "24",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}, rest),
|
|
20
19
|
children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
|
|
21
20
|
});
|
|
22
21
|
}
|