@skeletonlabs/skeleton-react 4.0.2 → 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.d.ts +2 -2
- 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/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- 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/date-picker/anatomy/root-provider.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/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/title.d.ts +2 -2
- package/dist/components/dialog/anatomy/trigger.d.ts +2 -2
- 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/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.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/label.d.ts +2 -2
- package/dist/components/listbox/anatomy/root.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.d.ts +2 -2
- package/dist/components/slider/anatomy/range.d.ts +2 -2
- package/dist/components/slider/anatomy/value-text.d.ts +2 -2
- 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/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/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/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/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/index.d.ts +7 -1
- package/dist/index.js +3 -1
- package/package.json +3 -2
|
@@ -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 react61 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/listbox/anatomy/content.d.ts
|
|
6
6
|
interface ListboxContentProps extends PropsWithElement<'ul'>, HTMLAttributes<'ul'> {}
|
|
7
|
-
declare function Content(props: ListboxContentProps):
|
|
7
|
+
declare function Content(props: ListboxContentProps): react61.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Content, ListboxContentProps };
|
|
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 react57 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/listbox/anatomy/input.d.ts
|
|
6
6
|
interface ListboxInputProps extends PropsWithElement<'input'>, Omit<HTMLAttributes<'input'>, 'children'> {}
|
|
7
|
-
declare function Input(props: ListboxInputProps):
|
|
7
|
+
declare function Input(props: ListboxInputProps): react57.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Input, ListboxInputProps };
|
|
10
10
|
//# sourceMappingURL=input.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 react56 from "react";
|
|
4
4
|
import { ItemGroupLabelProps } from "@zag-js/listbox";
|
|
5
5
|
|
|
6
6
|
//#region src/components/listbox/anatomy/item-group-label.d.ts
|
|
7
7
|
interface ListboxItemGroupLabelProps extends Omit<ItemGroupLabelProps, 'htmlFor'>, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function ItemGroupLabel(props: ListboxItemGroupLabelProps):
|
|
8
|
+
declare function ItemGroupLabel(props: ListboxItemGroupLabelProps): react56.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemGroupLabel, ListboxItemGroupLabelProps };
|
|
11
11
|
//# sourceMappingURL=item-group-label.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_runtime20 from "react/jsx-runtime";
|
|
4
4
|
import { ItemGroupProps } from "@zag-js/listbox";
|
|
5
5
|
|
|
6
6
|
//#region src/components/listbox/anatomy/item-group.d.ts
|
|
7
7
|
interface ListboxItemGroupProps extends Omit<ItemGroupProps, 'id'>, PropsWithElement<'div'>, Omit<HTMLAttributes<'div'>, 'id'> {}
|
|
8
|
-
declare function ItemGroup(props: ListboxItemGroupProps):
|
|
8
|
+
declare function ItemGroup(props: ListboxItemGroupProps): react_jsx_runtime20.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemGroup, ListboxItemGroupProps };
|
|
11
11
|
//# sourceMappingURL=item-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 react58 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/listbox/anatomy/item-indicator.d.ts
|
|
6
6
|
interface ListboxItemIndicatorProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function ItemIndicator(props: ListboxItemIndicatorProps):
|
|
7
|
+
declare function ItemIndicator(props: ListboxItemIndicatorProps): react58.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemIndicator, ListboxItemIndicatorProps };
|
|
10
10
|
//# sourceMappingURL=item-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 react59 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/listbox/anatomy/item-text.d.ts
|
|
6
6
|
interface ListboxItemTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function ItemText(props: ListboxItemTextProps):
|
|
7
|
+
declare function ItemText(props: ListboxItemTextProps): react59.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ItemText, ListboxItemTextProps };
|
|
10
10
|
//# sourceMappingURL=item-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 react60 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/listbox/anatomy/label.d.ts
|
|
6
6
|
interface ListboxLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
7
|
-
declare function Label(props: ListboxLabelProps):
|
|
7
|
+
declare function Label(props: ListboxLabelProps): react60.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Label, ListboxLabelProps };
|
|
10
10
|
//# sourceMappingURL=label.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_runtime19 from "react/jsx-runtime";
|
|
4
4
|
import { Props } from "@zag-js/listbox";
|
|
5
5
|
|
|
6
6
|
//#region src/components/listbox/anatomy/root.d.ts
|
|
7
7
|
interface ListboxRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue' | 'onSelect'> {}
|
|
8
|
-
declare function Root(props: ListboxRootProps):
|
|
8
|
+
declare function Root(props: ListboxRootProps): react_jsx_runtime19.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ListboxRootProps, Root };
|
|
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 react97 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/slider/anatomy/hidden-input.d.ts
|
|
6
6
|
interface SliderHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
7
|
-
declare function HiddenInput(props: SliderHiddenInputProps):
|
|
7
|
+
declare function HiddenInput(props: SliderHiddenInputProps): react97.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HiddenInput, SliderHiddenInputProps };
|
|
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 react99 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/slider/anatomy/label.d.ts
|
|
6
6
|
interface SliderLabelProps extends PropsWithElement<'label'>, HTMLAttributes<'label'> {}
|
|
7
|
-
declare function Label(props: SliderLabelProps):
|
|
7
|
+
declare function Label(props: SliderLabelProps): react99.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Label, SliderLabelProps };
|
|
10
10
|
//# sourceMappingURL=label.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 react103 from "react";
|
|
4
4
|
import { MarkerProps } from "@zag-js/slider";
|
|
5
5
|
|
|
6
6
|
//#region src/components/slider/anatomy/marker.d.ts
|
|
7
7
|
interface SliderMarkerProps extends MarkerProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Marker(props: SliderMarkerProps):
|
|
8
|
+
declare function Marker(props: SliderMarkerProps): react103.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Marker, SliderMarkerProps };
|
|
11
11
|
//# sourceMappingURL=marker.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 react98 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/slider/anatomy/range.d.ts
|
|
6
6
|
interface SliderRangeProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
7
|
-
declare function Range(props: SliderRangeProps):
|
|
7
|
+
declare function Range(props: SliderRangeProps): react98.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Range, SliderRangeProps };
|
|
10
10
|
//# sourceMappingURL=range.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 react100 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/slider/anatomy/value-text.d.ts
|
|
6
6
|
interface SliderValueTextProps extends PropsWithElement<'output'>, HTMLAttributes<'output'> {}
|
|
7
|
-
declare function ValueText(props: SliderValueTextProps):
|
|
7
|
+
declare function ValueText(props: SliderValueTextProps): react100.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { SliderValueTextProps, ValueText };
|
|
10
10
|
//# sourceMappingURL=value-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 react108 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/switch/anatomy/control.d.ts
|
|
6
6
|
interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function Control(props: SwitchControlProps):
|
|
7
|
+
declare function Control(props: SwitchControlProps): react108.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Control, SwitchControlProps };
|
|
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 react109 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/switch/anatomy/hidden-input.d.ts
|
|
6
6
|
interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
7
|
-
declare function HiddenInput(props: SwitchHiddenInputProps):
|
|
7
|
+
declare function HiddenInput(props: SwitchHiddenInputProps): react109.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HiddenInput, SwitchHiddenInputProps };
|
|
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 react110 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/switch/anatomy/label.d.ts
|
|
6
6
|
interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
7
|
-
declare function Label(props: SwitchLabelProps):
|
|
7
|
+
declare function Label(props: SwitchLabelProps): react110.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Label, SwitchLabelProps };
|
|
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 { 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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|