@skeletonlabs/skeleton-react 2.0.0-next.7 → 2.0.0-next.8
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 +3 -3
- package/dist/components/accordion/anatomy/item-heading.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-indicator.d.ts +3 -3
- package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -1
- package/dist/components/accordion/anatomy/item-trigger.d.ts +3 -3
- 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/avatar/anatomy/fallback.d.ts +3 -3
- package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/image.d.ts +3 -3
- package/dist/components/avatar/anatomy/image.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root-provider.d.ts +2 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -1
- package/dist/components/avatar/anatomy/root.d.ts +2 -2
- package/dist/components/avatar/anatomy/root.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/backdrop.d.ts +3 -3
- package/dist/components/dialog/anatomy/backdrop.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/dialog/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/content.d.ts +3 -3
- package/dist/components/dialog/anatomy/content.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/description.d.ts +3 -3
- package/dist/components/dialog/anatomy/description.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/positioner.d.ts +3 -3
- package/dist/components/dialog/anatomy/positioner.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/dialog/anatomy/title.d.ts.map +1 -1
- package/dist/components/dialog/anatomy/trigger.d.ts +3 -3
- package/dist/components/dialog/anatomy/trigger.d.ts.map +1 -1
- package/dist/components/file-upload/anatomy/dropzone.d.ts +3 -3
- package/dist/components/file-upload/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-group.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-name.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item-size-text.d.ts +3 -3
- package/dist/components/file-upload/anatomy/item.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 +3 -3
- package/dist/components/popover/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/popover/anatomy/arrow.d.ts +3 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -1
- package/dist/components/popover/anatomy/content.d.ts +3 -3
- package/dist/components/popover/anatomy/description.d.ts +3 -3
- 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 +3 -3
- package/dist/components/popover/anatomy/trigger.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/label.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/range.d.ts +3 -3
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/track.d.ts +3 -3
- package/dist/components/rating-group/anatomy/control.d.ts +3 -3
- package/dist/components/rating-group/anatomy/control.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/item.d.ts +3 -3
- package/dist/components/rating-group/anatomy/item.d.ts.map +1 -1
- package/dist/components/rating-group/anatomy/label.d.ts +3 -3
- package/dist/components/rating-group/anatomy/label.d.ts.map +1 -1
- 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/segmented-control/anatomy/indicator.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/indicator.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/indicator.js +17 -0
- package/dist/components/segmented-control/anatomy/indicator.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.js +19 -0
- package/dist/components/segmented-control/anatomy/item-hidden-input.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item-text.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item-text.js +22 -0
- package/dist/components/segmented-control/anatomy/item-text.js.map +1 -0
- package/dist/components/segmented-control/anatomy/item.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/item.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/item.js +26 -0
- package/dist/components/segmented-control/anatomy/item.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/root-context.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-context.js +13 -0
- package/dist/components/segmented-control/anatomy/root-context.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts +13 -0
- package/dist/components/segmented-control/anatomy/root-provider.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root-provider.js +21 -0
- package/dist/components/segmented-control/anatomy/root-provider.js.map +1 -0
- package/dist/components/segmented-control/anatomy/root.d.ts +11 -0
- package/dist/components/segmented-control/anatomy/root.d.ts.map +1 -0
- package/dist/components/segmented-control/anatomy/root.js +25 -0
- package/dist/components/segmented-control/anatomy/root.js.map +1 -0
- package/dist/components/segmented-control/index.js +4 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts +20 -0
- package/dist/components/segmented-control/modules/anatomy.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/anatomy.js +21 -0
- package/dist/components/segmented-control/modules/anatomy.js.map +1 -0
- package/dist/components/segmented-control/modules/item-context.js +8 -0
- package/dist/components/segmented-control/modules/item-context.js.map +1 -0
- package/dist/components/segmented-control/modules/root-context.js +8 -0
- package/dist/components/segmented-control/modules/root-context.js.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts +8 -0
- package/dist/components/segmented-control/modules/use-segmented-control.d.ts.map +1 -0
- package/dist/components/segmented-control/modules/use-segmented-control.js +17 -0
- package/dist/components/segmented-control/modules/use-segmented-control.js.map +1 -0
- package/dist/components/switch/anatomy/control.d.ts +3 -3
- package/dist/components/switch/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/switch/anatomy/label.d.ts +3 -3
- 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 +3 -3
- package/dist/components/tabs/anatomy/content.d.ts +3 -3
- package/dist/components/tabs/anatomy/indicator.d.ts +3 -3
- package/dist/components/tabs/anatomy/list.d.ts +3 -3
- 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 +3 -3
- package/dist/components/tags-input/anatomy/clear-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/control.d.ts +3 -3
- package/dist/components/tags-input/anatomy/hidden-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-input.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-preview.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item-text.d.ts +3 -3
- package/dist/components/tags-input/anatomy/item.d.ts +2 -2
- package/dist/components/tags-input/anatomy/label.d.ts +3 -3
- 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/toast/anatomy/action-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/close-trigger.d.ts +3 -3
- package/dist/components/toast/anatomy/description.d.ts +3 -3
- package/dist/components/toast/anatomy/group.d.ts +2 -2
- package/dist/components/toast/anatomy/message.d.ts +3 -3
- package/dist/components/toast/anatomy/root.d.ts +2 -2
- package/dist/components/toast/anatomy/title.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/arrow.d.ts +3 -3
- package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/content.d.ts +3 -3
- package/dist/components/tooltip/anatomy/content.d.ts.map +1 -1
- package/dist/components/tooltip/anatomy/positioner.d.ts +2 -2
- package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +4 -1
- package/dist/node_modules/.pnpm/@zag-js_anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.js +24 -0
- package/dist/node_modules/.pnpm/@zag-js_anatomy@1.24.1/node_modules/@zag-js/anatomy/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_core@1.24.1/node_modules/@zag-js/core/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/@zag-js_core@1.24.1/node_modules/@zag-js/core/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_dom-query@1.24.1/node_modules/@zag-js/dom-query/dist/index.js +143 -0
- package/dist/node_modules/.pnpm/@zag-js_dom-query@1.24.1/node_modules/@zag-js/dom-query/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_focus-visible@1.24.1/node_modules/@zag-js/focus-visible/dist/index.js +150 -0
- package/dist/node_modules/.pnpm/@zag-js_focus-visible@1.24.1/node_modules/@zag-js/focus-visible/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_radio-group@1.24.1/node_modules/@zag-js/radio-group/dist/index.js +421 -0
- package/dist/node_modules/.pnpm/@zag-js_radio-group@1.24.1/node_modules/@zag-js/radio-group/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_types@1.24.1/node_modules/@zag-js/types/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@zag-js_types@1.24.1/node_modules/@zag-js/types/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@zag-js_utils@1.24.1/node_modules/@zag-js/utils/dist/index.js +22 -0
- package/dist/node_modules/.pnpm/@zag-js_utils@1.24.1/node_modules/@zag-js/utils/dist/index.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented-control/anatomy/root-context.d.ts
|
|
5
|
+
interface SegmentedControlRootContextProps {
|
|
6
|
+
children: (ratingGroup: ReturnType<typeof useSegmentedControl>) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function RootContext(props: SegmentedControlRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RootContext, SegmentedControlRootContextProps };
|
|
11
|
+
//# sourceMappingURL=root-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,gCAAA;0BACQ,kBAAkB,yBAAyB;AADpE;AAAiD,iBAIzB,WAAA,CAJyB,KAAA,EAIN,gCAJM,CAAA,EAI0B,SAJ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented-control/anatomy/root-context.tsx
|
|
5
|
+
function RootContext(props) {
|
|
6
|
+
const segmentedControl = use(SegmentedControlRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(segmentedControl);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootContext as default };
|
|
13
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root-context.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport type { useSegmentedControl } from '../modules/use-segmented-control';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface SegmentedControlRootContextProps {\n\tchildren: (ratingGroup: ReturnType<typeof useSegmentedControl>) => ReactNode;\n}\n\nexport default function RootContext(props: SegmentedControlRootContextProps) {\n\tconst segmentedControl = use(SegmentedControlRootContext);\n\n\tconst { children } = props;\n\n\treturn children(segmentedControl);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAAyC;CAC5E,MAAM,mBAAmB,IAAI,4BAA4B;CAEzD,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,iBAAiB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
4
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/root-provider.d.ts
|
|
7
|
+
interface SegmentedControlRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {
|
|
8
|
+
value: ReturnType<typeof useSegmentedControl>;
|
|
9
|
+
}
|
|
10
|
+
declare function RootProvider(props: SegmentedControlRootProviderProps): react_jsx_runtime31.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { RootProvider, SegmentedControlRootProviderProps };
|
|
13
|
+
//# sourceMappingURL=root-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,iCAAA,SAA0C,yBAAyB;SAC5E,kBAAkB;;AADT,iBAIO,YAAA,CAJP,KAAkC,EAIP,iCAJO,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/root-provider.tsx
|
|
7
|
+
function RootProvider(props) {
|
|
8
|
+
const { element, children, value: segmentedControl,...rest } = props;
|
|
9
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), rest, { className: classesSegmentedControl.root });
|
|
10
|
+
return /* @__PURE__ */ jsx(SegmentedControlRootContext.Provider, {
|
|
11
|
+
value: segmentedControl,
|
|
12
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RootProvider as default };
|
|
21
|
+
//# sourceMappingURL=root-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root-provider.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport type { useSegmentedControl } from '../modules/use-segmented-control';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SegmentedControlRootProviderProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {\n\tvalue: ReturnType<typeof useSegmentedControl>;\n}\n\nexport default function RootProvider(props: SegmentedControlRootProviderProps) {\n\tconst { element, children, value: segmentedControl, ...rest } = props;\n\n\tconst attributes = mergeProps(segmentedControl.getRootProps(), rest, {\n\t\tclassName: classesSegmentedControl.root,\n\t});\n\n\treturn (\n\t\t<SegmentedControlRootContext.Provider value={segmentedControl}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</SegmentedControlRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAA0C;CAC9E,MAAM,EAAE,SAAS,UAAU,OAAO,iBAAkB,GAAG,SAAS;CAEhE,MAAM,aAAa,WAAW,iBAAiB,cAAc,EAAE,MAAM,EACpE,WAAW,wBAAwB,MACnC,CAAC;AAEF,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAChC"}
|
|
@@ -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_runtime30 from "react/jsx-runtime";
|
|
4
|
+
import { Props } from "@zag-js/radio-group";
|
|
5
|
+
|
|
6
|
+
//#region src/components/segmented-control/anatomy/root.d.ts
|
|
7
|
+
interface SegmentedControlRootProps extends Omit<Props, 'id'>, PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}
|
|
8
|
+
declare function Root(props: SegmentedControlRootProps): react_jsx_runtime30.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Root, SegmentedControlRootProps };
|
|
11
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,yBAAA,SACR,KAAK,cACZ,yBACA;iBAEsB,IAAA,QAAY,4BAAyB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SegmentedControlRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { splitProps } from "../../../node_modules/.pnpm/@zag-js_radio-group@1.24.1/node_modules/@zag-js/radio-group/dist/index.js";
|
|
3
|
+
import { useSegmentedControl } from "../modules/use-segmented-control.js";
|
|
4
|
+
import { mergeProps } from "@zag-js/react";
|
|
5
|
+
import { classesSegmentedControl } from "@skeletonlabs/skeleton-common";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/segmented-control/anatomy/root.tsx
|
|
9
|
+
function Root(props) {
|
|
10
|
+
const [segmentedControlProps, componentProps] = splitProps(props);
|
|
11
|
+
const { element, children,...rest } = componentProps;
|
|
12
|
+
const segmentedControl = useSegmentedControl(segmentedControlProps);
|
|
13
|
+
const attributes = mergeProps(segmentedControl.getRootProps(), rest, { className: classesSegmentedControl.root });
|
|
14
|
+
return /* @__PURE__ */ jsx(SegmentedControlRootContext.Provider, {
|
|
15
|
+
value: segmentedControl,
|
|
16
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
17
|
+
...attributes,
|
|
18
|
+
children
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Root as default };
|
|
25
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/segmented-control/anatomy/root.tsx"],"sourcesContent":["import { SegmentedControlRootContext } from '../modules/root-context';\nimport { useSegmentedControl } from '../modules/use-segmented-control';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSegmentedControl } from '@skeletonlabs/skeleton-common';\nimport { splitProps } from '@zag-js/radio-group';\nimport type { Props } from '@zag-js/radio-group';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SegmentedControlRootProps\n\textends Omit<Props, 'id'>,\n\t\tPropsWithElement<'div'>,\n\t\tHTMLAttributes<'div', 'id' | 'dir' | 'defaultValue'> {}\n\nexport default function Root(props: SegmentedControlRootProps) {\n\tconst [segmentedControlProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst segmentedControl = useSegmentedControl(segmentedControlProps);\n\n\tconst attributes = mergeProps(segmentedControl.getRootProps(), rest, {\n\t\tclassName: classesSegmentedControl.root,\n\t});\n\n\treturn (\n\t\t<SegmentedControlRootContext.Provider value={segmentedControl}>\n\t\t\t{element ? element(attributes) : <div {...attributes}>{children}</div>}\n\t\t</SegmentedControlRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAcA,SAAwB,KAAK,OAAkC;CAC9D,MAAM,CAAC,uBAAuB,kBAAkB,WAAW,MAAM;CACjE,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,mBAAmB,oBAAoB,sBAAsB;CAEnE,MAAM,aAAa,WAAW,iBAAiB,cAAc,EAAE,MAAM,EACpE,WAAW,wBAAwB,MACnC,CAAC;AAEF,QACC,oBAAC,4BAA4B;EAAS,OAAO;YAC3C,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAI,GAAI;GAAa;IAAe;GAChC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Indicator } from "../anatomy/indicator.js";
|
|
2
|
+
import { Item } from "../anatomy/item.js";
|
|
3
|
+
import { ItemHiddenInput } from "../anatomy/item-hidden-input.js";
|
|
4
|
+
import { ItemText } from "../anatomy/item-text.js";
|
|
5
|
+
import { Root } from "../anatomy/root.js";
|
|
6
|
+
import { RootContext } from "../anatomy/root-context.js";
|
|
7
|
+
import { RootProvider } from "../anatomy/root-provider.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/segmented-control/modules/anatomy.d.ts
|
|
10
|
+
declare const SegmentedControl: typeof Root & {
|
|
11
|
+
Provider: typeof RootProvider;
|
|
12
|
+
Context: typeof RootContext;
|
|
13
|
+
Indicator: typeof Indicator;
|
|
14
|
+
Item: typeof Item;
|
|
15
|
+
ItemText: typeof ItemText;
|
|
16
|
+
ItemHiddenInput: typeof ItemHiddenInput;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SegmentedControl };
|
|
20
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/segmented-control/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,yBAAgB;;EAAhB,OAAA,EAAA,kBAOX;EAAA,SAAA,EAAA,gBAAA;MAP2B,EAAA,WAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Indicator from "../anatomy/indicator.js";
|
|
2
|
+
import Item from "../anatomy/item.js";
|
|
3
|
+
import ItemHiddenInput from "../anatomy/item-hidden-input.js";
|
|
4
|
+
import ItemText from "../anatomy/item-text.js";
|
|
5
|
+
import Root from "../anatomy/root.js";
|
|
6
|
+
import RootContext from "../anatomy/root-context.js";
|
|
7
|
+
import RootProvider from "../anatomy/root-provider.js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/segmented-control/modules/anatomy.ts
|
|
10
|
+
const SegmentedControl = Object.assign(Root, {
|
|
11
|
+
Provider: RootProvider,
|
|
12
|
+
Context: RootContext,
|
|
13
|
+
Indicator,
|
|
14
|
+
Item,
|
|
15
|
+
ItemText,
|
|
16
|
+
ItemHiddenInput
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { SegmentedControl };
|
|
21
|
+
//# sourceMappingURL=anatomy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/segmented-control/modules/anatomy.ts"],"sourcesContent":["import Indicator from '../anatomy/indicator';\nimport Item from '../anatomy/item';\nimport ItemHiddenInput from '../anatomy/item-hidden-input';\nimport ItemText from '../anatomy/item-text';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\n\nexport const SegmentedControl = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tIndicator: Indicator,\n\tItem: Item,\n\tItemText: ItemText,\n\tItemHiddenInput: ItemHiddenInput,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,mBAAmB,OAAO,OAAO,MAAM;CACnD,UAAU;CACV,SAAS;CACE;CACL;CACI;CACO;CACjB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/segmented-control/modules/item-context.ts
|
|
4
|
+
const SegmentedControlItemContext = createContext();
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SegmentedControlItemContext };
|
|
8
|
+
//# sourceMappingURL=item-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-context.js","names":[],"sources":["../../../../src/components/segmented-control/modules/item-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\nimport type { ItemProps } from '@zag-js/radio-group';\n\nexport const SegmentedControlItemContext = createContext<ItemProps>();\n"],"mappings":";;;AAGA,MAAa,8BAA8B,eAA0B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/segmented-control/modules/root-context.ts
|
|
4
|
+
const SegmentedControlRootContext = createContext();
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SegmentedControlRootContext };
|
|
8
|
+
//# sourceMappingURL=root-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/segmented-control/modules/root-context.ts"],"sourcesContent":["import type { useSegmentedControl } from './use-segmented-control';\nimport { createContext } from '@/internal/create-context';\n\nexport const SegmentedControlRootContext = createContext<ReturnType<typeof useSegmentedControl>>();\n"],"mappings":";;;AAGA,MAAa,8BAA8B,eAAuD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropTypes } from "@zag-js/react";
|
|
2
|
+
import { Api, Props } from "@zag-js/radio-group";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented-control/modules/use-segmented-control.d.ts
|
|
5
|
+
declare function useSegmentedControl(props?: Omit<Props, 'id'>): Api<PropTypes>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useSegmentedControl };
|
|
8
|
+
//# sourceMappingURL=use-segmented-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-segmented-control.d.ts","names":[],"sources":["../../../../src/components/segmented-control/modules/use-segmented-control.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,mBAAA,SAA2B,KAAK,eAAoB,IAAI"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { connect, machine } from "../../../node_modules/.pnpm/@zag-js_radio-group@1.24.1/node_modules/@zag-js/radio-group/dist/index.js";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/segmented-control/modules/use-segmented-control.ts
|
|
6
|
+
function useSegmentedControl(props = {}) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
orientation: "horizontal",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
return connect(service, normalizeProps);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { useSegmentedControl };
|
|
17
|
+
//# sourceMappingURL=use-segmented-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-segmented-control.js","names":[],"sources":["../../../../src/components/segmented-control/modules/use-segmented-control.ts"],"sourcesContent":["import { connect, machine } from '@zag-js/radio-group';\nimport type { Api, Props } from '@zag-js/radio-group';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useSegmentedControl(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\torientation: 'horizontal',\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,oBAAoB,QAA2B,EAAE,EAAkB;CAClF,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,aAAa;EACb,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
|
|
@@ -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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react152 from "react";
|
|
4
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/control.d.ts
|
|
7
7
|
interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function Control(props: SwitchControlProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Control(props: SwitchControlProps): string | number | bigint | boolean | Iterable<react152.ReactNode> | Promise<string | number | bigint | boolean | react152.ReactPortal | react152.ReactElement<unknown, string | react152.JSXElementConstructor<any>> | Iterable<react152.ReactNode> | null | undefined> | react_jsx_runtime47.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Control, SwitchControlProps };
|
|
11
11
|
//# sourceMappingURL=control.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react157 from "react";
|
|
4
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/hidden-input.d.ts
|
|
7
7
|
interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
-
declare function HiddenInput(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function HiddenInput(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<react157.ReactNode> | Promise<string | number | bigint | boolean | react157.ReactPortal | react157.ReactElement<unknown, string | react157.JSXElementConstructor<any>> | Iterable<react157.ReactNode> | null | undefined> | react_jsx_runtime48.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { HiddenInput, SwitchHiddenInputProps };
|
|
11
11
|
//# sourceMappingURL=hidden-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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react162 from "react";
|
|
4
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/label.d.ts
|
|
7
7
|
interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function Label(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Label(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<react162.ReactNode> | Promise<string | number | bigint | boolean | react162.ReactPortal | react162.ReactElement<unknown, string | react162.JSXElementConstructor<any>> | Iterable<react162.ReactNode> | null | undefined> | react_jsx_runtime49.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Label, SwitchLabelProps };
|
|
11
11
|
//# 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/use-switch.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime50 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_runtime50.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_runtime73 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_runtime73.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root };
|
|
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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react167 from "react";
|
|
4
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/switch/anatomy/thumb.d.ts
|
|
7
7
|
interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
|
|
8
|
-
declare function Thumb(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Thumb(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<react167.ReactNode> | Promise<string | number | bigint | boolean | react167.ReactPortal | react167.ReactElement<unknown, string | react167.JSXElementConstructor<any>> | Iterable<react167.ReactNode> | null | undefined> | react_jsx_runtime51.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { SwitchThumbProps, Thumb };
|
|
11
11
|
//# sourceMappingURL=thumb.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react217 from "react";
|
|
4
|
+
import * as react_jsx_runtime67 from "react/jsx-runtime";
|
|
5
5
|
import { ContentProps } from "@zag-js/tabs";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tabs/anatomy/content.d.ts
|
|
8
8
|
interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
9
|
-
declare function Content(props: TabsContentProps): string | number | bigint | boolean | Iterable<
|
|
9
|
+
declare function Content(props: TabsContentProps): string | number | bigint | boolean | Iterable<react217.ReactNode> | Promise<string | number | bigint | boolean | react217.ReactPortal | react217.ReactElement<unknown, string | react217.JSXElementConstructor<any>> | Iterable<react217.ReactNode> | null | undefined> | react_jsx_runtime67.JSX.Element | null | undefined;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Content, TabsContentProps };
|
|
12
12
|
//# sourceMappingURL=content.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react222 from "react";
|
|
4
|
+
import * as react_jsx_runtime68 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/indicator.d.ts
|
|
7
7
|
interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
|
|
8
|
-
declare function Indicator(props: TabsIndicatorProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Indicator(props: TabsIndicatorProps): string | number | bigint | boolean | Iterable<react222.ReactNode> | Promise<string | number | bigint | boolean | react222.ReactPortal | react222.ReactElement<unknown, string | react222.JSXElementConstructor<any>> | Iterable<react222.ReactNode> | null | undefined> | react_jsx_runtime68.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Indicator, TabsIndicatorProps };
|
|
11
11
|
//# sourceMappingURL=indicator.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react227 from "react";
|
|
4
|
+
import * as react_jsx_runtime69 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tabs/anatomy/list.d.ts
|
|
7
7
|
interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
|
|
8
|
-
declare function List(props: TabsListProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function List(props: TabsListProps): string | number | bigint | boolean | Iterable<react227.ReactNode> | Promise<string | number | bigint | boolean | react227.ReactPortal | react227.ReactElement<unknown, string | react227.JSXElementConstructor<any>> | Iterable<react227.ReactNode> | null | undefined> | react_jsx_runtime69.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { List, TabsListProps };
|
|
11
11
|
//# 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/use-tabs.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime71 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_runtime71.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_runtime70 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_runtime70.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Root, TabsRootProps };
|
|
11
11
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
2
|
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react232 from "react";
|
|
4
|
+
import * as react_jsx_runtime72 from "react/jsx-runtime";
|
|
5
5
|
import { TriggerProps } from "@zag-js/tabs";
|
|
6
6
|
|
|
7
7
|
//#region src/components/tabs/anatomy/trigger.d.ts
|
|
8
8
|
interface TabsTriggerProps extends TriggerProps, PropsWithElement<'button'>, HTMLAttributes<'button', 'value'> {}
|
|
9
|
-
declare function Trigger(props: TabsTriggerProps): string | number | bigint | boolean | Iterable<
|
|
9
|
+
declare function Trigger(props: TabsTriggerProps): string | number | bigint | boolean | Iterable<react232.ReactNode> | Promise<string | number | bigint | boolean | react232.ReactPortal | react232.ReactElement<unknown, string | react232.JSXElementConstructor<any>> | Iterable<react232.ReactNode> | null | undefined> | react_jsx_runtime72.JSX.Element | null | undefined;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { TabsTriggerProps, Trigger };
|
|
12
12
|
//# sourceMappingURL=trigger.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react107 from "react";
|
|
4
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/clear-trigger.d.ts
|
|
7
7
|
interface TagsInputClearTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function ClearTrigger(props: TagsInputClearTriggerProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function ClearTrigger(props: TagsInputClearTriggerProps): string | number | bigint | boolean | Iterable<react107.ReactNode> | Promise<string | number | bigint | boolean | react107.ReactPortal | react107.ReactElement<unknown, string | react107.JSXElementConstructor<any>> | Iterable<react107.ReactNode> | null | undefined> | react_jsx_runtime35.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ClearTrigger, TagsInputClearTriggerProps };
|
|
11
11
|
//# sourceMappingURL=clear-trigger.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react112 from "react";
|
|
4
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/control.d.ts
|
|
7
7
|
interface TagsInputControlProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function Control(props: TagsInputControlProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Control(props: TagsInputControlProps): string | number | bigint | boolean | Iterable<react112.ReactNode> | Promise<string | number | bigint | boolean | react112.ReactPortal | react112.ReactElement<unknown, string | react112.JSXElementConstructor<any>> | Iterable<react112.ReactNode> | null | undefined> | react_jsx_runtime36.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Control, TagsInputControlProps };
|
|
11
11
|
//# sourceMappingURL=control.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react117 from "react";
|
|
4
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/hidden-input.d.ts
|
|
7
7
|
interface TagsInputHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
-
declare function HiddenInput(props: TagsInputHiddenInputProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function HiddenInput(props: TagsInputHiddenInputProps): string | number | bigint | boolean | Iterable<react117.ReactNode> | Promise<string | number | bigint | boolean | react117.ReactPortal | react117.ReactElement<unknown, string | react117.JSXElementConstructor<any>> | Iterable<react117.ReactNode> | null | undefined> | react_jsx_runtime37.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { HiddenInput, TagsInputHiddenInputProps };
|
|
11
11
|
//# sourceMappingURL=hidden-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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react122 from "react";
|
|
4
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/input.d.ts
|
|
7
7
|
interface TagsInputInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
-
declare function Input(props: TagsInputInputProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function Input(props: TagsInputInputProps): string | number | bigint | boolean | Iterable<react122.ReactNode> | Promise<string | number | bigint | boolean | react122.ReactPortal | react122.ReactElement<unknown, string | react122.JSXElementConstructor<any>> | Iterable<react122.ReactNode> | null | undefined> | react_jsx_runtime38.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Input, TagsInputInputProps };
|
|
11
11
|
//# 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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react127 from "react";
|
|
4
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/item-delete-trigger.d.ts
|
|
7
7
|
interface TagsInputItemDeleteTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
-
declare function ItemDeleteTrigger(props: TagsInputItemDeleteTriggerProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function ItemDeleteTrigger(props: TagsInputItemDeleteTriggerProps): string | number | bigint | boolean | Iterable<react127.ReactNode> | Promise<string | number | bigint | boolean | react127.ReactPortal | react127.ReactElement<unknown, string | react127.JSXElementConstructor<any>> | Iterable<react127.ReactNode> | null | undefined> | react_jsx_runtime40.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemDeleteTrigger, TagsInputItemDeleteTriggerProps };
|
|
11
11
|
//# sourceMappingURL=item-delete-trigger.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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react132 from "react";
|
|
4
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/item-input.d.ts
|
|
7
7
|
interface TagsInputItemInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
|
|
8
|
-
declare function ItemInput(props: TagsInputItemInputProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function ItemInput(props: TagsInputItemInputProps): string | number | bigint | boolean | Iterable<react132.ReactNode> | Promise<string | number | bigint | boolean | react132.ReactPortal | react132.ReactElement<unknown, string | react132.JSXElementConstructor<any>> | Iterable<react132.ReactNode> | null | undefined> | react_jsx_runtime41.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemInput, TagsInputItemInputProps };
|
|
11
11
|
//# sourceMappingURL=item-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
|
|
4
|
-
import * as
|
|
3
|
+
import * as react137 from "react";
|
|
4
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/tags-input/anatomy/item-preview.d.ts
|
|
7
7
|
interface TagsInputItemPreviewProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
-
declare function ItemPreview(props: TagsInputItemPreviewProps): string | number | bigint | boolean | Iterable<
|
|
8
|
+
declare function ItemPreview(props: TagsInputItemPreviewProps): string | number | bigint | boolean | Iterable<react137.ReactNode> | Promise<string | number | bigint | boolean | react137.ReactPortal | react137.ReactElement<unknown, string | react137.JSXElementConstructor<any>> | Iterable<react137.ReactNode> | null | undefined> | react_jsx_runtime42.JSX.Element | null | undefined;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ItemPreview, TagsInputItemPreviewProps };
|
|
11
11
|
//# sourceMappingURL=item-preview.d.ts.map
|