@skeletonlabs/skeleton-react 2.0.0-next.3 → 2.0.0-next.4
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/content.d.ts +6 -4
- package/dist/components/accordion/anatomy/content.js +6 -6
- package/dist/components/accordion/anatomy/heading.d.ts +6 -4
- package/dist/components/accordion/anatomy/heading.js +3 -3
- package/dist/components/accordion/anatomy/indicator.d.ts +6 -4
- package/dist/components/accordion/anatomy/indicator.js +6 -6
- package/dist/components/accordion/anatomy/item.d.ts +5 -4
- package/dist/components/accordion/anatomy/item.js +6 -9
- package/dist/components/accordion/anatomy/root-context.d.ts +2 -2
- package/dist/components/accordion/anatomy/root-context.js +3 -2
- package/dist/components/accordion/anatomy/root-provider.d.ts +11 -0
- package/dist/components/accordion/anatomy/root.d.ts +4 -4
- package/dist/components/accordion/anatomy/root.js +9 -13
- package/dist/components/accordion/anatomy/trigger.d.ts +6 -4
- package/dist/components/accordion/anatomy/trigger.js +6 -6
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/modules/anatomy.d.ts +8 -10
- package/dist/components/accordion/modules/anatomy.js +0 -2
- package/dist/components/accordion/modules/root-context.js +2 -2
- package/dist/components/accordion/modules/use-accordion.d.ts +8 -0
- package/dist/components/accordion/modules/use-accordion.js +15 -0
- package/dist/components/avatar/anatomy/fallback.d.ts +5 -4
- package/dist/components/avatar/anatomy/fallback.js +5 -5
- package/dist/components/avatar/anatomy/image.d.ts +5 -4
- package/dist/components/avatar/anatomy/image.js +5 -5
- package/dist/components/avatar/anatomy/root-context.d.ts +2 -2
- package/dist/components/avatar/anatomy/root-context.js +3 -2
- package/dist/components/avatar/anatomy/root-provider.d.ts +11 -0
- package/dist/components/avatar/anatomy/root.d.ts +4 -4
- package/dist/components/avatar/anatomy/root.js +9 -13
- package/dist/components/avatar/modules/root-context.js +2 -2
- package/dist/components/avatar/modules/use-avatar.d.ts +8 -0
- package/dist/components/avatar/modules/use-avatar.js +15 -0
- package/dist/components/progress-linear/anatomy/label.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/label.js +5 -5
- package/dist/components/progress-linear/anatomy/range.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/range.js +5 -5
- package/dist/components/progress-linear/anatomy/root-context.d.ts +2 -2
- package/dist/components/progress-linear/anatomy/root-context.js +3 -2
- package/dist/components/progress-linear/anatomy/root-provider.d.ts +12 -0
- package/dist/components/progress-linear/anatomy/root-provider.js +20 -0
- package/dist/components/progress-linear/anatomy/root.d.ts +4 -4
- package/dist/components/progress-linear/anatomy/root.js +9 -13
- package/dist/components/progress-linear/anatomy/track.d.ts +5 -4
- package/dist/components/progress-linear/anatomy/track.js +5 -5
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/progress-linear/modules/anatomy.d.ts +10 -8
- package/dist/components/progress-linear/modules/anatomy.js +2 -0
- package/dist/components/progress-linear/modules/root-context.js +2 -2
- package/dist/components/progress-linear/modules/use-progress-linear.d.ts +8 -0
- package/dist/components/progress-linear/modules/use-progress-linear.js +15 -0
- package/dist/components/rating-group/anatomy/control.d.ts +5 -4
- package/dist/components/rating-group/anatomy/control.js +5 -5
- package/dist/components/rating-group/anatomy/hidden-input.d.ts +5 -4
- package/dist/components/rating-group/anatomy/hidden-input.js +5 -5
- package/dist/components/rating-group/anatomy/item.d.ts +6 -4
- package/dist/components/rating-group/anatomy/item.js +8 -12
- package/dist/components/rating-group/anatomy/label.d.ts +5 -4
- package/dist/components/rating-group/anatomy/label.js +5 -5
- package/dist/components/rating-group/anatomy/root-context.d.ts +2 -2
- package/dist/components/rating-group/anatomy/root-context.js +3 -2
- package/dist/components/rating-group/anatomy/root-provider.d.ts +12 -0
- package/dist/components/rating-group/anatomy/root-provider.js +20 -0
- package/dist/components/rating-group/anatomy/root.d.ts +4 -4
- package/dist/components/rating-group/anatomy/root.js +9 -13
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/rating-group/modules/anatomy.d.ts +10 -10
- package/dist/components/rating-group/modules/anatomy.js +2 -2
- package/dist/components/rating-group/modules/root-context.js +2 -2
- package/dist/components/rating-group/modules/use-rating-group.d.ts +8 -0
- package/dist/components/rating-group/modules/use-rating-group.js +15 -0
- package/dist/components/switch/anatomy/control.d.ts +10 -0
- package/dist/components/switch/anatomy/control.js +19 -0
- package/dist/components/switch/anatomy/hidden-input.d.ts +10 -0
- package/dist/components/switch/anatomy/hidden-input.js +16 -0
- package/dist/components/switch/anatomy/label.d.ts +10 -0
- package/dist/components/switch/anatomy/label.js +19 -0
- package/dist/components/switch/anatomy/root-context.d.ts +10 -0
- package/dist/components/switch/anatomy/root-context.js +12 -0
- package/dist/components/switch/anatomy/root-provider.d.ts +11 -0
- package/dist/components/switch/anatomy/root.d.ts +10 -0
- package/dist/components/switch/anatomy/root.js +24 -0
- package/dist/components/switch/anatomy/thumb.d.ts +10 -0
- package/dist/components/switch/anatomy/thumb.js +19 -0
- package/dist/components/switch/index.js +4 -0
- package/dist/components/switch/modules/anatomy.d.ts +17 -0
- package/dist/components/switch/modules/anatomy.js +18 -0
- package/dist/components/switch/modules/root-context.js +7 -0
- package/dist/components/switch/modules/use-switch.d.ts +8 -0
- package/dist/components/switch/modules/use-switch.js +15 -0
- package/dist/components/tabs/anatomy/content.d.ts +5 -4
- package/dist/components/tabs/anatomy/content.js +6 -6
- package/dist/components/tabs/anatomy/indicator.d.ts +5 -4
- package/dist/components/tabs/anatomy/indicator.js +5 -5
- package/dist/components/tabs/anatomy/list.d.ts +5 -4
- package/dist/components/tabs/anatomy/list.js +5 -5
- package/dist/components/tabs/anatomy/root-context.d.ts +2 -2
- package/dist/components/tabs/anatomy/root-context.js +3 -2
- package/dist/components/tabs/anatomy/root-provider.d.ts +12 -0
- package/dist/components/tabs/anatomy/root-provider.js +20 -0
- package/dist/components/tabs/anatomy/root.d.ts +4 -4
- package/dist/components/tabs/anatomy/root.js +9 -13
- package/dist/components/tabs/anatomy/trigger.d.ts +5 -4
- package/dist/components/tabs/anatomy/trigger.js +6 -6
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/modules/anatomy.d.ts +12 -10
- package/dist/components/tabs/modules/anatomy.js +2 -0
- package/dist/components/tabs/modules/root-context.js +2 -2
- package/dist/components/tabs/modules/use-tabs.d.ts +8 -0
- package/dist/components/tabs/modules/use-tabs.js +15 -0
- package/dist/components/toast/anatomy/action-trigger.d.ts +10 -0
- package/dist/components/toast/anatomy/action-trigger.js +19 -0
- package/dist/components/toast/anatomy/close-trigger.d.ts +10 -0
- package/dist/components/toast/anatomy/close-trigger.js +20 -0
- package/dist/components/toast/anatomy/description.d.ts +10 -0
- package/dist/components/toast/anatomy/description.js +19 -0
- package/dist/components/toast/anatomy/group.d.ts +14 -0
- package/dist/components/toast/anatomy/group.js +27 -0
- package/dist/components/toast/anatomy/message.d.ts +10 -0
- package/dist/components/toast/anatomy/message.js +16 -0
- package/dist/components/toast/anatomy/root-context.d.ts +10 -0
- package/dist/components/toast/anatomy/root-context.js +12 -0
- package/dist/components/toast/anatomy/root.d.ts +12 -0
- package/dist/components/toast/anatomy/root.js +57 -0
- package/dist/components/toast/anatomy/title.d.ts +10 -0
- package/dist/components/toast/anatomy/title.js +19 -0
- package/dist/components/toast/index.d.ts +10 -0
- package/dist/components/toast/index.js +4 -0
- package/dist/components/toast/modules/anatomy.d.ts +21 -0
- package/dist/components/toast/modules/anatomy.js +22 -0
- package/dist/components/toast/modules/group-context.js +7 -0
- package/dist/components/toast/modules/root-context.js +7 -0
- package/dist/index.d.ts +27 -10
- package/dist/index.js +10 -1
- package/dist/internal/components/x.js +20 -0
- package/dist/internal/create-context.js +9 -0
- package/dist/internal/html-attributes.d.ts +6 -0
- package/dist/internal/props-with-element.d.ts +4 -5
- package/package.json +15 -15
- package/dist/components/accordion/anatomy/item-context.d.ts +0 -10
- package/dist/components/accordion/anatomy/item-context.js +0 -11
- package/dist/components/accordion/modules/item-context.d.ts +0 -10
- package/dist/components/accordion/modules/root-context.d.ts +0 -9
- package/dist/components/avatar/modules/root-context.d.ts +0 -9
- package/dist/components/progress-linear/modules/root-context.d.ts +0 -9
- package/dist/components/rating-group/anatomy/item-context.d.ts +0 -10
- package/dist/components/rating-group/anatomy/item-context.js +0 -11
- package/dist/components/rating-group/modules/item-context.d.ts +0 -9
- package/dist/components/rating-group/modules/item-context.js +0 -7
- package/dist/components/rating-group/modules/root-context.d.ts +0 -9
- package/dist/components/tabs/modules/root-context.d.ts +0 -9
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { TabsRootContext } from "../modules/root-context.js";
|
|
2
|
-
import { useContext } from "react";
|
|
3
2
|
import { mergeProps } from "@zag-js/react";
|
|
4
3
|
import { classesTabs } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { useContext } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { splitTriggerProps } from "@zag-js/tabs";
|
|
7
7
|
|
|
8
8
|
//#region src/components/tabs/anatomy/trigger.tsx
|
|
9
9
|
function trigger_default(props) {
|
|
10
|
-
const
|
|
11
|
-
const [
|
|
12
|
-
const { element, children,...
|
|
13
|
-
const attributes = mergeProps(
|
|
14
|
-
return element ? element(
|
|
10
|
+
const tabs = useContext(TabsRootContext);
|
|
11
|
+
const [triggerProps, componentProps] = splitTriggerProps(props);
|
|
12
|
+
const { element, children,...rest } = componentProps;
|
|
13
|
+
const attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest, { className: classesTabs.trigger });
|
|
14
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
15
15
|
...attributes,
|
|
16
16
|
children
|
|
17
17
|
});
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { export_default } from "../anatomy/root.js";
|
|
2
|
-
import { export_default as export_default$1 } from "../anatomy/root-
|
|
3
|
-
import { export_default as export_default$2 } from "../anatomy/
|
|
4
|
-
import { export_default as export_default$3 } from "../anatomy/
|
|
5
|
-
import { export_default as export_default$4 } from "../anatomy/
|
|
6
|
-
import { export_default as export_default$5 } from "../anatomy/
|
|
2
|
+
import { export_default as export_default$1 } from "../anatomy/root-provider.js";
|
|
3
|
+
import { export_default as export_default$2 } from "../anatomy/root-context.js";
|
|
4
|
+
import { export_default as export_default$3 } from "../anatomy/list.js";
|
|
5
|
+
import { export_default as export_default$4 } from "../anatomy/trigger.js";
|
|
6
|
+
import { export_default as export_default$5 } from "../anatomy/indicator.js";
|
|
7
|
+
import { export_default as export_default$6 } from "../anatomy/content.js";
|
|
7
8
|
|
|
8
9
|
//#region src/components/tabs/modules/anatomy.d.ts
|
|
9
10
|
declare const Tabs: typeof export_default & {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
Provider: typeof export_default$1;
|
|
12
|
+
Context: typeof export_default$2;
|
|
13
|
+
List: typeof export_default$3;
|
|
14
|
+
Trigger: typeof export_default$4;
|
|
15
|
+
Indicator: typeof export_default$5;
|
|
16
|
+
Content: typeof export_default$6;
|
|
15
17
|
};
|
|
16
18
|
//#endregion
|
|
17
19
|
export { Tabs };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import root_default from "../anatomy/root.js";
|
|
2
|
+
import root_provider_default from "../anatomy/root-provider.js";
|
|
2
3
|
import root_context_default from "../anatomy/root-context.js";
|
|
3
4
|
import list_default from "../anatomy/list.js";
|
|
4
5
|
import trigger_default from "../anatomy/trigger.js";
|
|
@@ -7,6 +8,7 @@ import content_default from "../anatomy/content.js";
|
|
|
7
8
|
|
|
8
9
|
//#region src/components/tabs/modules/anatomy.ts
|
|
9
10
|
const Tabs = Object.assign(root_default, {
|
|
11
|
+
Provider: root_provider_default,
|
|
10
12
|
Context: root_context_default,
|
|
11
13
|
List: list_default,
|
|
12
14
|
Trigger: trigger_default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createContext } from "
|
|
1
|
+
import { createContext } from "../../../internal/create-context.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/tabs/modules/root-context.ts
|
|
4
|
-
const TabsRootContext = createContext(
|
|
4
|
+
const TabsRootContext = createContext();
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { TabsRootContext };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _zag_js_react1 from "@zag-js/react";
|
|
2
|
+
import * as _zag_js_tabs0 from "@zag-js/tabs";
|
|
3
|
+
import { Props } from "@zag-js/tabs";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tabs/modules/use-tabs.d.ts
|
|
6
|
+
declare function useTabs(props: Omit<Props, 'id'>): _zag_js_tabs0.Api<_zag_js_react1.PropTypes>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { useTabs };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { connect, machine } from "@zag-js/tabs";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tabs/modules/use-tabs.ts
|
|
6
|
+
function useTabs(props) {
|
|
7
|
+
const service = useMachine(machine, {
|
|
8
|
+
id: useId(),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
return connect(service, normalizeProps);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useTabs };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react122 from "react";
|
|
4
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/action-trigger.d.ts
|
|
7
|
+
interface ToastActionTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
+
declare function export_default(props: ToastActionTriggerProps): 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
|
+
//#endregion
|
|
10
|
+
export { export_default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/toast/anatomy/action-trigger.tsx
|
|
8
|
+
function action_trigger_default(props) {
|
|
9
|
+
const toast = useContext(ToastRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(toast.getActionTriggerProps(), rest, { className: classesToast.actionTrigger });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action_trigger_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react44 from "react";
|
|
4
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/close-trigger.d.ts
|
|
7
|
+
interface ToastCloseTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
|
|
8
|
+
declare function export_default(props: ToastCloseTriggerProps): string | number | bigint | boolean | Iterable<react44.ReactNode> | Promise<string | number | bigint | boolean | react44.ReactPortal | react44.ReactElement<unknown, string | react44.JSXElementConstructor<any>> | Iterable<react44.ReactNode> | null | undefined> | react_jsx_runtime14.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToastCloseTriggerProps, export_default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import x_default from "../../../internal/components/x.js";
|
|
3
|
+
import { mergeProps } from "@zag-js/react";
|
|
4
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { useContext } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toast/anatomy/close-trigger.tsx
|
|
9
|
+
function close_trigger_default(props) {
|
|
10
|
+
const toast = useContext(ToastRootContext);
|
|
11
|
+
const { element, children = /* @__PURE__ */ jsx(x_default, {}),...rest } = props;
|
|
12
|
+
const attributes = mergeProps(toast.getCloseTriggerProps(), rest, { className: classesToast.closeTrigger });
|
|
13
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
14
|
+
...attributes,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { close_trigger_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react39 from "react";
|
|
4
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/description.d.ts
|
|
7
|
+
interface ToastDescriptionProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function export_default(props: ToastDescriptionProps): string | number | bigint | boolean | Iterable<react39.ReactNode> | Promise<string | number | bigint | boolean | react39.ReactPortal | react39.ReactElement<unknown, string | react39.JSXElementConstructor<any>> | Iterable<react39.ReactNode> | null | undefined> | react_jsx_runtime13.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToastDescriptionProps, export_default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/toast/anatomy/description.tsx
|
|
8
|
+
function description_default(props) {
|
|
9
|
+
const toast = useContext(ToastRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(toast.getDescriptionProps(), rest, { className: classesToast.description });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { description_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import { JSX } from "react";
|
|
4
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
5
|
+
import { Props, Store } from "@zag-js/toast";
|
|
6
|
+
|
|
7
|
+
//#region src/components/toast/anatomy/group.d.ts
|
|
8
|
+
interface ToastGroupProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir' | 'children'> {
|
|
9
|
+
toaster: Store;
|
|
10
|
+
children?: (toast: Props) => JSX.Element | null;
|
|
11
|
+
}
|
|
12
|
+
declare function export_default(props: ToastGroupProps): react_jsx_runtime9.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ToastGroupProps, export_default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ToastGroupContext } from "../modules/group-context.js";
|
|
2
|
+
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
3
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { useId } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { group } from "@zag-js/toast";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toast/anatomy/group.tsx
|
|
9
|
+
function group_default(props) {
|
|
10
|
+
const { element, children, toaster,...rest } = props;
|
|
11
|
+
const service = useMachine(group.machine, {
|
|
12
|
+
id: useId(),
|
|
13
|
+
store: toaster
|
|
14
|
+
});
|
|
15
|
+
const api = group.connect(service, normalizeProps);
|
|
16
|
+
const attributes = mergeProps(api.getGroupProps(), rest, { className: classesToast.group });
|
|
17
|
+
return /* @__PURE__ */ jsx(ToastGroupContext.Provider, {
|
|
18
|
+
value: service,
|
|
19
|
+
children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
20
|
+
...attributes,
|
|
21
|
+
children: api.getToasts().map((toast) => children?.(toast))
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { group_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react29 from "react";
|
|
4
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/message.d.ts
|
|
7
|
+
interface ToastMessageProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function export_default(props: ToastMessageProps): string | number | bigint | boolean | Iterable<react29.ReactNode> | Promise<string | number | bigint | boolean | react29.ReactPortal | react29.ReactElement<unknown, string | react29.JSXElementConstructor<any>> | Iterable<react29.ReactNode> | null | undefined> | react_jsx_runtime11.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToastMessageProps, export_default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { mergeProps } from "@zag-js/react";
|
|
2
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/toast/anatomy/message.tsx
|
|
6
|
+
function message_default(props) {
|
|
7
|
+
const { element, children,...rest } = props;
|
|
8
|
+
const attributes = mergeProps(rest, { className: classesToast.message });
|
|
9
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
10
|
+
...attributes,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { message_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Api } from "@zag-js/toast";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toast/anatomy/root-context.d.ts
|
|
5
|
+
interface ToastRootContextProps {
|
|
6
|
+
children: (toast: Api) => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function export_default(props: ToastRootContextProps): ReactNode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToastRootContextProps, export_default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { useContext } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toast/anatomy/root-context.tsx
|
|
5
|
+
function root_context_default(props) {
|
|
6
|
+
const toast = useContext(ToastRootContext);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
return children(toast);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { root_context_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
4
|
+
import { Options } from "@zag-js/toast";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/root.d.ts
|
|
7
|
+
interface ToastRootProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {
|
|
8
|
+
toast: Omit<Options, 'id' | 'parent'>;
|
|
9
|
+
}
|
|
10
|
+
declare function export_default(props: ToastRootProps): react_jsx_runtime10.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ToastRootProps, export_default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { ToastGroupContext } from "../modules/group-context.js";
|
|
3
|
+
import { mergeProps, normalizeProps, useMachine } from "@zag-js/react";
|
|
4
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
5
|
+
import { useContext, useId } from "react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { connect, machine } from "@zag-js/toast";
|
|
8
|
+
|
|
9
|
+
//#region src/components/toast/anatomy/root.tsx
|
|
10
|
+
function root_default(props) {
|
|
11
|
+
const group$1 = useContext(ToastGroupContext);
|
|
12
|
+
const { element, children, toast: toastProps,...rest } = props;
|
|
13
|
+
const service = useMachine(machine, {
|
|
14
|
+
id: useId(),
|
|
15
|
+
parent: group$1,
|
|
16
|
+
...toastProps
|
|
17
|
+
});
|
|
18
|
+
const toast = connect(service, normalizeProps);
|
|
19
|
+
const attributes = mergeProps(toast.getRootProps(), rest, { className: classesToast.root });
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(ToastRootContext.Provider, {
|
|
21
|
+
value: toast,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsx("div", { ...toast.getGhostBeforeProps() }),
|
|
24
|
+
element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
25
|
+
...attributes,
|
|
26
|
+
children
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsx("div", { ...toast.getGhostAfterProps() })
|
|
29
|
+
]
|
|
30
|
+
}), /* @__PURE__ */ jsx("style", { children: `
|
|
31
|
+
[data-part='root'] {
|
|
32
|
+
translate: var(--x) var(--y);
|
|
33
|
+
scale: var(--scale);
|
|
34
|
+
z-index: var(--z-index);
|
|
35
|
+
height: var(--height);
|
|
36
|
+
opacity: var(--opacity);
|
|
37
|
+
will-change: translate, opacity, scale;
|
|
38
|
+
}
|
|
39
|
+
[data-part='root'] {
|
|
40
|
+
transition:
|
|
41
|
+
translate 400ms,
|
|
42
|
+
scale 400ms,
|
|
43
|
+
opacity 400ms;
|
|
44
|
+
transition-timing-function: cubic-bezier(0.21, 1.02, 0.73, 1);
|
|
45
|
+
}
|
|
46
|
+
[data-part='root'][data-state='closed'] {
|
|
47
|
+
transition:
|
|
48
|
+
translate 400ms,
|
|
49
|
+
scale 400ms,
|
|
50
|
+
opacity 200ms;
|
|
51
|
+
transition-timing-function: cubic-bezier(0.06, 0.71, 0.55, 1);
|
|
52
|
+
}
|
|
53
|
+
` })] });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { root_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from "../../../internal/html-attributes.js";
|
|
2
|
+
import { PropsWithElement } from "../../../internal/props-with-element.js";
|
|
3
|
+
import * as react34 from "react";
|
|
4
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/toast/anatomy/title.d.ts
|
|
7
|
+
interface ToastTitleProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
|
|
8
|
+
declare function export_default(props: ToastTitleProps): string | number | bigint | boolean | Iterable<react34.ReactNode> | Promise<string | number | bigint | boolean | react34.ReactPortal | react34.ReactElement<unknown, string | react34.JSXElementConstructor<any>> | Iterable<react34.ReactNode> | null | undefined> | react_jsx_runtime12.JSX.Element | null | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ToastTitleProps, export_default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ToastRootContext } from "../modules/root-context.js";
|
|
2
|
+
import { mergeProps } from "@zag-js/react";
|
|
3
|
+
import { classesToast } from "@skeletonlabs/skeleton-common";
|
|
4
|
+
import { useContext } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/toast/anatomy/title.tsx
|
|
8
|
+
function title_default(props) {
|
|
9
|
+
const toast = useContext(ToastRootContext);
|
|
10
|
+
const { element, children,...rest } = props;
|
|
11
|
+
const attributes = mergeProps(toast.getTitleProps(), rest, { className: classesToast.title });
|
|
12
|
+
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...attributes,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { title_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToastRootProps } from "./anatomy/root.js";
|
|
2
|
+
import { ToastRootContextProps } from "./anatomy/root-context.js";
|
|
3
|
+
import { ToastGroupProps } from "./anatomy/group.js";
|
|
4
|
+
import { ToastMessageProps } from "./anatomy/message.js";
|
|
5
|
+
import { ToastTitleProps } from "./anatomy/title.js";
|
|
6
|
+
import { ToastDescriptionProps } from "./anatomy/description.js";
|
|
7
|
+
import { ToastCloseTriggerProps } from "./anatomy/close-trigger.js";
|
|
8
|
+
import { Toast } from "./modules/anatomy.js";
|
|
9
|
+
import { createStore as createToaster } from "@zag-js/toast";
|
|
10
|
+
export { createToaster };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { export_default } from "../anatomy/root.js";
|
|
2
|
+
import { export_default as export_default$1 } from "../anatomy/root-context.js";
|
|
3
|
+
import { export_default as export_default$2 } from "../anatomy/group.js";
|
|
4
|
+
import { export_default as export_default$3 } from "../anatomy/message.js";
|
|
5
|
+
import { export_default as export_default$4 } from "../anatomy/title.js";
|
|
6
|
+
import { export_default as export_default$5 } from "../anatomy/description.js";
|
|
7
|
+
import { export_default as export_default$6 } from "../anatomy/action-trigger.js";
|
|
8
|
+
import { export_default as export_default$7 } from "../anatomy/close-trigger.js";
|
|
9
|
+
|
|
10
|
+
//#region src/components/toast/modules/anatomy.d.ts
|
|
11
|
+
declare const Toast: typeof export_default & {
|
|
12
|
+
Context: typeof export_default$1;
|
|
13
|
+
Group: typeof export_default$2;
|
|
14
|
+
Message: typeof export_default$3;
|
|
15
|
+
Title: typeof export_default$4;
|
|
16
|
+
Description: typeof export_default$5;
|
|
17
|
+
ActionTrigger: typeof export_default$6;
|
|
18
|
+
CloseTrigger: typeof export_default$7;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Toast };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import root_default from "../anatomy/root.js";
|
|
2
|
+
import root_context_default from "../anatomy/root-context.js";
|
|
3
|
+
import group_default from "../anatomy/group.js";
|
|
4
|
+
import message_default from "../anatomy/message.js";
|
|
5
|
+
import title_default from "../anatomy/title.js";
|
|
6
|
+
import description_default from "../anatomy/description.js";
|
|
7
|
+
import action_trigger_default from "../anatomy/action-trigger.js";
|
|
8
|
+
import close_trigger_default from "../anatomy/close-trigger.js";
|
|
9
|
+
|
|
10
|
+
//#region src/components/toast/modules/anatomy.ts
|
|
11
|
+
const Toast = Object.assign(root_default, {
|
|
12
|
+
Context: root_context_default,
|
|
13
|
+
Group: group_default,
|
|
14
|
+
Message: message_default,
|
|
15
|
+
Title: title_default,
|
|
16
|
+
Description: description_default,
|
|
17
|
+
ActionTrigger: action_trigger_default,
|
|
18
|
+
CloseTrigger: close_trigger_default
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Toast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,60 @@
|
|
|
1
1
|
import { AccordionRootProps } from "./components/accordion/anatomy/root.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useAccordion } from "./components/accordion/modules/use-accordion.js";
|
|
3
3
|
import { AccordionRootContextProps } from "./components/accordion/anatomy/root-context.js";
|
|
4
4
|
import { AccordionItemProps } from "./components/accordion/anatomy/item.js";
|
|
5
|
-
import { AccordionItemContextType } from "./components/accordion/modules/item-context.js";
|
|
6
|
-
import { AccordionItemContextProps } from "./components/accordion/anatomy/item-context.js";
|
|
7
5
|
import { AccordionHeadingProps } from "./components/accordion/anatomy/heading.js";
|
|
8
6
|
import { AccordionTriggerProps } from "./components/accordion/anatomy/trigger.js";
|
|
9
7
|
import { AccordionIndicatorProps } from "./components/accordion/anatomy/indicator.js";
|
|
10
8
|
import { AccordionContentProps } from "./components/accordion/anatomy/content.js";
|
|
11
9
|
import { Accordion } from "./components/accordion/modules/anatomy.js";
|
|
10
|
+
import { AccordionRootProviderProps } from "./components/accordion/anatomy/root-provider.js";
|
|
12
11
|
import { AvatarRootProps } from "./components/avatar/anatomy/root.js";
|
|
13
|
-
import { AvatarRootContextType } from "./components/avatar/modules/root-context.js";
|
|
14
12
|
import { AvatarRootContextProps } from "./components/avatar/anatomy/root-context.js";
|
|
15
13
|
import { AvatarImageProps } from "./components/avatar/anatomy/image.js";
|
|
16
14
|
import { AvatarFallbackProps } from "./components/avatar/anatomy/fallback.js";
|
|
17
15
|
import { Avatar } from "./components/avatar/modules/anatomy.js";
|
|
16
|
+
import { AvatarRootProviderProps } from "./components/avatar/anatomy/root-provider.js";
|
|
18
17
|
import { ProgressLinearRootProps } from "./components/progress-linear/anatomy/root.js";
|
|
19
|
-
import {
|
|
18
|
+
import { useProgressLinear } from "./components/progress-linear/modules/use-progress-linear.js";
|
|
19
|
+
import { ProgressLinearRootProviderProps } from "./components/progress-linear/anatomy/root-provider.js";
|
|
20
20
|
import { ProgressLinearRootContextProps } from "./components/progress-linear/anatomy/root-context.js";
|
|
21
21
|
import { ProgressLinearLabelProps } from "./components/progress-linear/anatomy/label.js";
|
|
22
22
|
import { ProgressLinearTrackProps } from "./components/progress-linear/anatomy/track.js";
|
|
23
23
|
import { ProgressLinearRangeProps } from "./components/progress-linear/anatomy/range.js";
|
|
24
24
|
import { ProgressLinear } from "./components/progress-linear/modules/anatomy.js";
|
|
25
25
|
import { RatingGroupRootProps } from "./components/rating-group/anatomy/root.js";
|
|
26
|
-
import {
|
|
26
|
+
import { useRatingGroup } from "./components/rating-group/modules/use-rating-group.js";
|
|
27
|
+
import { RatingGroupRootProviderProps } from "./components/rating-group/anatomy/root-provider.js";
|
|
27
28
|
import { RatingGroupRootContextProps } from "./components/rating-group/anatomy/root-context.js";
|
|
28
29
|
import { RatingGroupLabelProps } from "./components/rating-group/anatomy/label.js";
|
|
29
30
|
import { RatingGroupControlProps } from "./components/rating-group/anatomy/control.js";
|
|
30
31
|
import { RatingGroupItemProps } from "./components/rating-group/anatomy/item.js";
|
|
31
|
-
import { RatingGroupItemContextType } from "./components/rating-group/modules/item-context.js";
|
|
32
|
-
import { RatingGroupItemContextProps } from "./components/rating-group/anatomy/item-context.js";
|
|
33
32
|
import { RatingGroupHiddenInputProps } from "./components/rating-group/anatomy/hidden-input.js";
|
|
34
33
|
import { RatingGroup } from "./components/rating-group/modules/anatomy.js";
|
|
34
|
+
import { useSwitch } from "./components/switch/modules/use-switch.js";
|
|
35
|
+
import { SwitchRootContextProps } from "./components/switch/anatomy/root-context.js";
|
|
36
|
+
import { SwitchControlProps } from "./components/switch/anatomy/control.js";
|
|
37
|
+
import { SwitchThumbProps } from "./components/switch/anatomy/thumb.js";
|
|
38
|
+
import { SwitchLabelProps } from "./components/switch/anatomy/label.js";
|
|
39
|
+
import { SwitchHiddenInputProps } from "./components/switch/anatomy/hidden-input.js";
|
|
40
|
+
import { Switch } from "./components/switch/modules/anatomy.js";
|
|
41
|
+
import { SwitchRootProviderProps } from "./components/switch/anatomy/root-provider.js";
|
|
35
42
|
import { TabsRootProps } from "./components/tabs/anatomy/root.js";
|
|
36
|
-
import {
|
|
43
|
+
import { useTabs } from "./components/tabs/modules/use-tabs.js";
|
|
44
|
+
import { TabsRootProviderProps } from "./components/tabs/anatomy/root-provider.js";
|
|
37
45
|
import { TabsRootContextProps } from "./components/tabs/anatomy/root-context.js";
|
|
38
46
|
import { TabsListProps } from "./components/tabs/anatomy/list.js";
|
|
39
47
|
import { TabsTriggerProps } from "./components/tabs/anatomy/trigger.js";
|
|
40
48
|
import { TabsIndicatorProps } from "./components/tabs/anatomy/indicator.js";
|
|
41
49
|
import { TabsContentProps } from "./components/tabs/anatomy/content.js";
|
|
42
50
|
import { Tabs } from "./components/tabs/modules/anatomy.js";
|
|
43
|
-
|
|
51
|
+
import { ToastRootProps } from "./components/toast/anatomy/root.js";
|
|
52
|
+
import { ToastRootContextProps } from "./components/toast/anatomy/root-context.js";
|
|
53
|
+
import { ToastGroupProps } from "./components/toast/anatomy/group.js";
|
|
54
|
+
import { ToastMessageProps } from "./components/toast/anatomy/message.js";
|
|
55
|
+
import { ToastTitleProps } from "./components/toast/anatomy/title.js";
|
|
56
|
+
import { ToastDescriptionProps } from "./components/toast/anatomy/description.js";
|
|
57
|
+
import { ToastCloseTriggerProps } from "./components/toast/anatomy/close-trigger.js";
|
|
58
|
+
import { Toast } from "./components/toast/modules/anatomy.js";
|
|
59
|
+
import { createToaster } from "./components/toast/index.js";
|
|
60
|
+
export { Accordion, AccordionContentProps, AccordionHeadingProps, AccordionIndicatorProps, AccordionItemProps, AccordionRootContextProps, AccordionRootProps, AccordionRootProviderProps, AccordionTriggerProps, Avatar, AvatarFallbackProps, AvatarImageProps, AvatarRootContextProps, AvatarRootProps, AvatarRootProviderProps, ProgressLinear, ProgressLinearLabelProps, ProgressLinearRangeProps, ProgressLinearRootContextProps, ProgressLinearRootProps, ProgressLinearRootProviderProps, ProgressLinearTrackProps, RatingGroup, RatingGroupControlProps, RatingGroupHiddenInputProps, RatingGroupItemProps, RatingGroupLabelProps, RatingGroupRootContextProps, RatingGroupRootProps, RatingGroupRootProviderProps, Switch, SwitchControlProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootContextProps, SwitchRootProviderProps, SwitchThumbProps, Tabs, TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootContextProps, TabsRootProps, TabsRootProviderProps, TabsTriggerProps, Toast, ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastMessageProps, ToastRootContextProps, ToastRootProps, ToastTitleProps, createToaster, useAccordion, useProgressLinear, useRatingGroup, useSwitch, useTabs };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { useAccordion } from "./components/accordion/modules/use-accordion.js";
|
|
1
2
|
import { Accordion } from "./components/accordion/modules/anatomy.js";
|
|
2
3
|
import "./components/accordion/index.js";
|
|
3
4
|
import { Avatar } from "./components/avatar/modules/anatomy.js";
|
|
4
5
|
import "./components/avatar/index.js";
|
|
6
|
+
import { useProgressLinear } from "./components/progress-linear/modules/use-progress-linear.js";
|
|
5
7
|
import { ProgressLinear } from "./components/progress-linear/modules/anatomy.js";
|
|
6
8
|
import "./components/progress-linear/index.js";
|
|
9
|
+
import { useRatingGroup } from "./components/rating-group/modules/use-rating-group.js";
|
|
7
10
|
import { RatingGroup } from "./components/rating-group/modules/anatomy.js";
|
|
8
11
|
import "./components/rating-group/index.js";
|
|
12
|
+
import { useSwitch } from "./components/switch/modules/use-switch.js";
|
|
13
|
+
import { Switch } from "./components/switch/modules/anatomy.js";
|
|
14
|
+
import "./components/switch/index.js";
|
|
15
|
+
import { useTabs } from "./components/tabs/modules/use-tabs.js";
|
|
9
16
|
import { Tabs } from "./components/tabs/modules/anatomy.js";
|
|
10
17
|
import "./components/tabs/index.js";
|
|
18
|
+
import { Toast } from "./components/toast/modules/anatomy.js";
|
|
19
|
+
import { createToaster } from "./components/toast/index.js";
|
|
11
20
|
|
|
12
|
-
export { Accordion, Avatar, ProgressLinear, RatingGroup, Tabs };
|
|
21
|
+
export { Accordion, Avatar, ProgressLinear, RatingGroup, Switch, Tabs, Toast, createToaster, useAccordion, useProgressLinear, useRatingGroup, useSwitch, useTabs };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/internal/components/x.tsx
|
|
4
|
+
function x_default() {
|
|
5
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "24",
|
|
8
|
+
height: "24",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: "2",
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { x_default as default };
|