@wirekyt/react 0.0.1 → 0.0.2
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/accordion.cjs +209 -0
- package/dist/accordion.d.cts +69 -0
- package/dist/accordion.d.ts +69 -0
- package/dist/accordion.js +184 -0
- package/dist/angle-slider.cjs +193 -0
- package/dist/angle-slider.d.cts +73 -0
- package/dist/angle-slider.d.ts +73 -0
- package/dist/angle-slider.js +168 -0
- package/dist/avatar.cjs +120 -0
- package/dist/avatar.d.cts +48 -0
- package/dist/avatar.d.ts +48 -0
- package/dist/avatar.js +100 -0
- package/dist/carousel.cjs +246 -0
- package/dist/carousel.d.cts +94 -0
- package/dist/carousel.d.ts +94 -0
- package/dist/carousel.js +223 -0
- package/dist/checkbox.cjs +284 -0
- package/dist/checkbox.d.cts +115 -0
- package/dist/checkbox.d.ts +115 -0
- package/dist/checkbox.js +263 -0
- package/dist/client-only.cjs +12 -0
- package/dist/client-only.d.cts +8 -0
- package/dist/client-only.d.ts +8 -0
- package/dist/client-only.js +11 -0
- package/dist/clipboard.cjs +174 -0
- package/dist/clipboard.d.cts +70 -0
- package/dist/clipboard.d.ts +70 -0
- package/dist/clipboard.js +150 -0
- package/dist/collapsible-B62i_oPJ.cjs +185 -0
- package/dist/collapsible-CiTNjCNf.js +131 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +56 -0
- package/dist/collapsible.d.ts +56 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-BFjWNdUS.cjs +223 -0
- package/dist/collection-BJOl6a4H.js +180 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +575 -0
- package/dist/color-picker.d.cts +179 -0
- package/dist/color-picker.d.ts +179 -0
- package/dist/color-picker.js +530 -0
- package/dist/combobox.cjs +390 -0
- package/dist/combobox.d.cts +128 -0
- package/dist/combobox.d.ts +128 -0
- package/dist/combobox.js +359 -0
- package/dist/core-CBFAnVIP.cjs +375 -0
- package/dist/core-CEYOEcVI.js +357 -0
- package/dist/date-input.cjs +217 -0
- package/dist/date-input.d.cts +69 -0
- package/dist/date-input.d.ts +69 -0
- package/dist/date-input.js +193 -0
- package/dist/date-picker.cjs +588 -0
- package/dist/date-picker.d.cts +190 -0
- package/dist/date-picker.d.ts +190 -0
- package/dist/date-picker.js +543 -0
- package/dist/dialog.cjs +199 -0
- package/dist/dialog.d.cts +78 -0
- package/dist/dialog.d.ts +78 -0
- package/dist/dialog.js +174 -0
- package/dist/download-trigger.cjs +53 -0
- package/dist/download-trigger.d.cts +22 -0
- package/dist/download-trigger.d.ts +22 -0
- package/dist/download-trigger.js +51 -0
- package/dist/drawer.cjs +296 -0
- package/dist/drawer.d.cts +115 -0
- package/dist/drawer.d.ts +115 -0
- package/dist/drawer.js +264 -0
- package/dist/editable.cjs +228 -0
- package/dist/editable.d.cts +79 -0
- package/dist/editable.d.ts +79 -0
- package/dist/editable.js +202 -0
- package/dist/environment-B6IaCAuQ.cjs +59 -0
- package/dist/environment-BTgKwk5E.js +42 -0
- package/dist/factory--dkoVnFK.d.cts +14 -0
- package/dist/factory--dkoVnFK.d.ts +14 -0
- package/dist/factory-CFFufs5e.cjs +59 -0
- package/dist/factory-Nm__-4xn.js +48 -0
- package/dist/field-Cy1E02DH.js +349 -0
- package/dist/field-x8H5uXB9.cjs +438 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +129 -0
- package/dist/field.d.ts +129 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-DWZXj1t5.cjs +232 -0
- package/dist/fieldset-fx44GCtM.js +178 -0
- package/dist/fieldset.cjs +18 -0
- package/dist/fieldset.d.cts +71 -0
- package/dist/fieldset.d.ts +71 -0
- package/dist/fieldset.js +3 -0
- package/dist/file-upload.cjs +328 -0
- package/dist/file-upload.d.cts +101 -0
- package/dist/file-upload.d.ts +101 -0
- package/dist/file-upload.js +298 -0
- package/dist/floating-panel.cjs +271 -0
- package/dist/floating-panel.d.cts +98 -0
- package/dist/floating-panel.d.ts +98 -0
- package/dist/floating-panel.js +242 -0
- package/dist/format.cjs +64 -0
- package/dist/format.d.cts +44 -0
- package/dist/format.d.ts +44 -0
- package/dist/format.js +54 -0
- package/dist/frame.cjs +85 -0
- package/dist/frame.d.cts +12 -0
- package/dist/frame.d.ts +12 -0
- package/dist/frame.js +84 -0
- package/dist/highlight.cjs +29 -0
- package/dist/highlight.d.cts +13 -0
- package/dist/highlight.d.ts +13 -0
- package/dist/highlight.js +27 -0
- package/dist/hover-card.cjs +154 -0
- package/dist/hover-card.d.cts +68 -0
- package/dist/hover-card.d.ts +68 -0
- package/dist/hover-card.js +131 -0
- package/dist/image-cropper.cjs +0 -0
- package/dist/image-cropper.d.cts +1 -0
- package/dist/image-cropper.d.ts +1 -0
- package/dist/image-cropper.js +0 -0
- package/dist/index-3Al0R5bH.d.cts +73 -0
- package/dist/index-B7wAg5Wf.d.ts +146 -0
- package/dist/index-BAn8qiCM.d.ts +73 -0
- package/dist/index-BSX88T_g.d.cts +146 -0
- package/dist/index-CQAbOgb7.d.cts +23 -0
- package/dist/index-CUyHBXOI.d.cts +33 -0
- package/dist/index-CW-Aj6aT.d.ts +95 -0
- package/dist/index-CxWYgVJk.d.ts +23 -0
- package/dist/index-D7JH9e9E.d.ts +33 -0
- package/dist/index-DTLK6Fuh.d.cts +95 -0
- package/dist/index-srZfUQNt.d.cts +20 -0
- package/dist/index-srZfUQNt.d.ts +20 -0
- package/dist/index.cjs +45 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/json-tree-view.cjs +244 -0
- package/dist/json-tree-view.d.cts +45 -0
- package/dist/json-tree-view.d.ts +45 -0
- package/dist/json-tree-view.js +234 -0
- package/dist/listbox.cjs +290 -0
- package/dist/listbox.d.cts +109 -0
- package/dist/listbox.d.ts +109 -0
- package/dist/listbox.js +264 -0
- package/dist/marquee.cjs +164 -0
- package/dist/marquee.d.cts +60 -0
- package/dist/marquee.d.ts +60 -0
- package/dist/marquee.js +142 -0
- package/dist/menu.cjs +506 -0
- package/dist/menu.d.cts +162 -0
- package/dist/menu.d.ts +162 -0
- package/dist/menu.js +469 -0
- package/dist/navigation-menu.cjs +331 -0
- package/dist/navigation-menu.d.cts +89 -0
- package/dist/navigation-menu.d.ts +89 -0
- package/dist/navigation-menu.js +303 -0
- package/dist/number-input.cjs +222 -0
- package/dist/number-input.d.cts +73 -0
- package/dist/number-input.d.ts +73 -0
- package/dist/number-input.js +197 -0
- package/dist/pagination.cjs +183 -0
- package/dist/pagination.d.cts +68 -0
- package/dist/pagination.d.ts +68 -0
- package/dist/pagination.js +159 -0
- package/dist/password-input.cjs +179 -0
- package/dist/password-input.d.cts +65 -0
- package/dist/password-input.d.ts +65 -0
- package/dist/password-input.js +156 -0
- package/dist/pin-input.cjs +180 -0
- package/dist/pin-input.d.cts +58 -0
- package/dist/pin-input.d.ts +58 -0
- package/dist/pin-input.js +158 -0
- package/dist/popover.cjs +222 -0
- package/dist/popover.d.cts +93 -0
- package/dist/popover.d.ts +93 -0
- package/dist/popover.js +194 -0
- package/dist/portal-6_XzBXiA.cjs +33 -0
- package/dist/portal-QYL_2wB0.js +28 -0
- package/dist/portal.cjs +3 -0
- package/dist/portal.d.cts +9 -0
- package/dist/portal.d.ts +9 -0
- package/dist/portal.js +2 -0
- package/dist/presence-BOs-D6Cv.cjs +96 -0
- package/dist/presence-I8Rceflw.js +65 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +2 -0
- package/dist/presence.d.ts +2 -0
- package/dist/presence.js +2 -0
- package/dist/progress.cjs +206 -0
- package/dist/progress.d.cts +78 -0
- package/dist/progress.d.ts +78 -0
- package/dist/progress.js +180 -0
- package/dist/providers-DrJEJcrE.cjs +128 -0
- package/dist/providers-FEHnDTvb.js +87 -0
- package/dist/qr-code.cjs +154 -0
- package/dist/qr-code.d.cts +58 -0
- package/dist/qr-code.d.ts +58 -0
- package/dist/qr-code.js +132 -0
- package/dist/radio-group.cjs +222 -0
- package/dist/radio-group.d.cts +78 -0
- package/dist/radio-group.d.ts +78 -0
- package/dist/radio-group.js +196 -0
- package/dist/rating-group.cjs +186 -0
- package/dist/rating-group.d.cts +68 -0
- package/dist/rating-group.d.ts +68 -0
- package/dist/rating-group.js +162 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +166 -0
- package/dist/scroll-area.d.cts +67 -0
- package/dist/scroll-area.d.ts +67 -0
- package/dist/scroll-area.js +143 -0
- package/dist/segment-group.cjs +215 -0
- package/dist/segment-group.d.cts +81 -0
- package/dist/segment-group.d.ts +81 -0
- package/dist/segment-group.js +194 -0
- package/dist/select.cjs +395 -0
- package/dist/select.d.cts +132 -0
- package/dist/select.d.ts +132 -0
- package/dist/select.js +358 -0
- package/dist/signature-pad.cjs +197 -0
- package/dist/signature-pad.d.cts +68 -0
- package/dist/signature-pad.d.ts +68 -0
- package/dist/signature-pad.js +173 -0
- package/dist/slider.cjs +260 -0
- package/dist/slider.d.cts +88 -0
- package/dist/slider.d.ts +88 -0
- package/dist/slider.js +232 -0
- package/dist/steps.cjs +271 -0
- package/dist/steps.d.cts +104 -0
- package/dist/steps.d.ts +104 -0
- package/dist/steps.js +241 -0
- package/dist/swap.cjs +134 -0
- package/dist/swap.d.cts +49 -0
- package/dist/swap.d.ts +49 -0
- package/dist/swap.js +121 -0
- package/dist/switch.cjs +166 -0
- package/dist/switch.d.cts +58 -0
- package/dist/switch.d.ts +58 -0
- package/dist/switch.js +144 -0
- package/dist/tabs.cjs +177 -0
- package/dist/tabs.d.cts +59 -0
- package/dist/tabs.d.ts +59 -0
- package/dist/tabs.js +155 -0
- package/dist/tags-input.cjs +298 -0
- package/dist/tags-input.d.cts +98 -0
- package/dist/tags-input.d.ts +98 -0
- package/dist/tags-input.js +268 -0
- package/dist/timer.cjs +167 -0
- package/dist/timer.d.cts +63 -0
- package/dist/timer.d.ts +63 -0
- package/dist/timer.js +144 -0
- package/dist/toast.cjs +154 -0
- package/dist/toast.d.cts +59 -0
- package/dist/toast.d.ts +59 -0
- package/dist/toast.js +132 -0
- package/dist/toggle-group.cjs +118 -0
- package/dist/toggle-group.d.cts +43 -0
- package/dist/toggle-group.d.ts +43 -0
- package/dist/toggle-group.js +99 -0
- package/dist/toggle.cjs +85 -0
- package/dist/toggle.d.cts +38 -0
- package/dist/toggle.d.ts +38 -0
- package/dist/toggle.js +71 -0
- package/dist/tooltip.cjs +154 -0
- package/dist/tooltip.d.cts +68 -0
- package/dist/tooltip.d.ts +68 -0
- package/dist/tooltip.js +131 -0
- package/dist/tour.cjs +290 -0
- package/dist/tour.d.cts +112 -0
- package/dist/tour.d.ts +112 -0
- package/dist/tour.js +246 -0
- package/dist/tree-view-CNTEWXlu.js +339 -0
- package/dist/tree-view-CU4Hl5X1.cjs +484 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-BQQfrr86.d.cts +6 -0
- package/dist/types-BQQfrr86.d.ts +6 -0
- package/dist/use-context-38DKWHsx.cjs +20 -0
- package/dist/use-context-CITa6pn9.js +10 -0
- package/dist/utils-Cfwm9WW1.cjs +166 -0
- package/dist/utils-CqLmqrgj.js +107 -0
- package/package.json +274 -6
package/dist/tabs.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { a as PropTypes } from "./index-CxWYgVJk.js";
|
|
2
|
+
import { r as Optional, t as Assign } from "./types-BQQfrr86.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.js";
|
|
4
|
+
import { r as RenderStrategyProps } from "./index-srZfUQNt.js";
|
|
5
|
+
import { ReactNode } from "react";
|
|
6
|
+
import * as tabs from "@wirekyt/dom/machines/tabs";
|
|
7
|
+
import { ContentProps, FocusChangeDetails, FocusChangeDetails as TabsFocusChangeDetails, TriggerProps, ValueChangeDetails, ValueChangeDetails as TabsValueChangeDetails, anatomy as tabsAnatomy } from "@wirekyt/dom/machines/tabs";
|
|
8
|
+
//#region src/components/tabs/tab-content.d.ts
|
|
9
|
+
interface TabContentBaseProps extends ContentProps, PolymorphicProps {}
|
|
10
|
+
interface TabContentProps extends HTMLProps<"div">, TabContentBaseProps {}
|
|
11
|
+
declare const TabContent: import("react").ForwardRefExoticComponent<TabContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/tabs/tab-indicator.d.ts
|
|
14
|
+
interface TabIndicatorBaseProps extends PolymorphicProps {}
|
|
15
|
+
interface TabIndicatorProps extends HTMLProps<"div">, TabIndicatorBaseProps {}
|
|
16
|
+
declare const TabIndicator: import("react").ForwardRefExoticComponent<TabIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/tabs/tab-list.d.ts
|
|
19
|
+
interface TabListBaseProps extends PolymorphicProps {}
|
|
20
|
+
interface TabListProps extends HTMLProps<"div">, TabListBaseProps {}
|
|
21
|
+
declare const TabList: import("react").ForwardRefExoticComponent<TabListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/tabs/tab-trigger.d.ts
|
|
24
|
+
interface TabTriggerBaseProps extends TriggerProps, PolymorphicProps {}
|
|
25
|
+
interface TabTriggerProps extends Assign<HTMLProps<"button">, TabTriggerBaseProps> {}
|
|
26
|
+
declare const TabTrigger: import("react").ForwardRefExoticComponent<TabTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/tabs/use.d.ts
|
|
29
|
+
interface UseTabsProps extends Optional<Omit<tabs.Props, "dir" | "getRootNode">, "id"> {}
|
|
30
|
+
interface UseTabsReturn extends tabs.Api<PropTypes> {}
|
|
31
|
+
declare const useTabs: (props?: UseTabsProps) => UseTabsReturn;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/tabs/use-context.d.ts
|
|
34
|
+
interface UseTabsContext extends UseTabsReturn {}
|
|
35
|
+
declare const TabsProvider: import("react").Provider<UseTabsContext>, useTabsContext: () => UseTabsContext;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/tabs/context.d.ts
|
|
38
|
+
interface TabsContextProps {
|
|
39
|
+
children: (context: UseTabsContext) => ReactNode;
|
|
40
|
+
}
|
|
41
|
+
declare const TabsContext: (props: TabsContextProps) => ReactNode;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/tabs/root.d.ts
|
|
44
|
+
interface TabsRootBaseProps extends UseTabsProps, RenderStrategyProps, PolymorphicProps {}
|
|
45
|
+
interface TabsRootProps extends Assign<HTMLProps<"div">, TabsRootBaseProps> {}
|
|
46
|
+
declare const TabsRoot: import("react").ForwardRefExoticComponent<TabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/tabs/root-provider.d.ts
|
|
49
|
+
interface RootProviderProps {
|
|
50
|
+
value: UseTabsReturn;
|
|
51
|
+
}
|
|
52
|
+
interface TabsRootProviderBaseProps extends RootProviderProps, RenderStrategyProps, PolymorphicProps {}
|
|
53
|
+
interface TabsRootProviderProps extends HTMLProps<"div">, TabsRootProviderBaseProps {}
|
|
54
|
+
declare const TabsRootProvider: import("react").ForwardRefExoticComponent<TabsRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare namespace tabs_d_exports {
|
|
56
|
+
export { TabContent as Content, TabContentBaseProps as ContentBaseProps, TabContentProps as ContentProps, TabsContext as Context, TabsContextProps as ContextProps, FocusChangeDetails, TabIndicator as Indicator, TabIndicatorBaseProps as IndicatorBaseProps, TabIndicatorProps as IndicatorProps, TabList as List, TabListBaseProps as ListBaseProps, TabListProps as ListProps, TabsRoot as Root, TabsRootBaseProps as RootBaseProps, TabsRootProps as RootProps, TabsRootProvider as RootProvider, TabsRootProviderBaseProps as RootProviderBaseProps, TabsRootProviderProps as RootProviderProps, TabTrigger as Trigger, TabTriggerBaseProps as TriggerBaseProps, TabTriggerProps as TriggerProps, ValueChangeDetails };
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { TabContent, type TabContentBaseProps, type TabContentProps, TabIndicator, type TabIndicatorBaseProps, type TabIndicatorProps, TabList, type TabListBaseProps, type TabListProps, TabTrigger, type TabTriggerBaseProps, type TabTriggerProps, tabs_d_exports as Tabs, TabsContext, type TabsContextProps, type TabsFocusChangeDetails, TabsRoot, type TabsRootBaseProps, type TabsRootProps, TabsRootProvider, type TabsRootProviderBaseProps, type TabsRootProviderProps, type TabsValueChangeDetails, type UseTabsContext, type UseTabsProps, type UseTabsReturn, tabsAnatomy, useTabs, useTabsContext };
|
package/dist/tabs.js
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { a as RenderStrategyPropsProvider, c as createSplitProps, l as useComposedRefs, o as splitRenderStrategyProps, s as useRenderStrategyPropsContext, u as createContext$1 } from "./utils-CqLmqrgj.js";
|
|
3
|
+
import { n as useEnvironmentContext } from "./environment-BTgKwk5E.js";
|
|
4
|
+
import { a as useMachine, i as normalizeProps, t as mergeProps } from "./core-CEYOEcVI.js";
|
|
5
|
+
import { n as wire } from "./factory-Nm__-4xn.js";
|
|
6
|
+
import { a as useLocaleContext } from "./providers-FEHnDTvb.js";
|
|
7
|
+
import { i as usePresence, t as PresenceProvider } from "./presence-I8Rceflw.js";
|
|
8
|
+
import { forwardRef, useId } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import * as tabs from "@wirekyt/dom/machines/tabs";
|
|
11
|
+
import { anatomy as tabsAnatomy } from "@wirekyt/dom/machines/tabs";
|
|
12
|
+
//#region src/components/tabs/use-context.ts
|
|
13
|
+
const [TabsProvider, useTabsContext] = createContext$1({
|
|
14
|
+
name: "TabsContext",
|
|
15
|
+
hookName: "useTabsContext",
|
|
16
|
+
providerName: "<TabsProvider />"
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/tabs/tab-content.tsx
|
|
20
|
+
const splitContentProps = createSplitProps();
|
|
21
|
+
const TabContent = forwardRef((props, ref) => {
|
|
22
|
+
const [contentProps, localProps] = splitContentProps(props, ["value"]);
|
|
23
|
+
const tabs = useTabsContext();
|
|
24
|
+
const presence = usePresence({
|
|
25
|
+
...useRenderStrategyPropsContext(),
|
|
26
|
+
present: tabs.value === props.value,
|
|
27
|
+
immediate: true
|
|
28
|
+
});
|
|
29
|
+
const mergedProps = mergeProps(tabs.getContentProps(contentProps), presence.getPresenceProps(), localProps);
|
|
30
|
+
const composedRefs = useComposedRefs(presence.ref, ref);
|
|
31
|
+
return /* @__PURE__ */ jsx(PresenceProvider, {
|
|
32
|
+
value: presence,
|
|
33
|
+
children: presence.unmounted ? null : /* @__PURE__ */ jsx(wire.div, {
|
|
34
|
+
...mergedProps,
|
|
35
|
+
ref: composedRefs
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
TabContent.displayName = "TabContent";
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/tabs/tab-indicator.tsx
|
|
42
|
+
const TabIndicator = forwardRef((props, ref) => {
|
|
43
|
+
const mergedProps = mergeProps(useTabsContext().getIndicatorProps(), props);
|
|
44
|
+
return /* @__PURE__ */ jsx(wire.div, {
|
|
45
|
+
...mergedProps,
|
|
46
|
+
ref
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
TabIndicator.displayName = "TabIndicator";
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/tabs/tab-list.tsx
|
|
52
|
+
const TabList = forwardRef((props, ref) => {
|
|
53
|
+
const mergedProps = mergeProps(useTabsContext().getListProps(), props);
|
|
54
|
+
return /* @__PURE__ */ jsx(wire.div, {
|
|
55
|
+
...mergedProps,
|
|
56
|
+
ref
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
TabList.displayName = "TabList";
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/tabs/tab-trigger.tsx
|
|
62
|
+
const splitTriggerProps = createSplitProps();
|
|
63
|
+
const TabTrigger = forwardRef((props, ref) => {
|
|
64
|
+
const [tabProps, localProps] = splitTriggerProps(props, ["disabled", "value"]);
|
|
65
|
+
const mergedProps = mergeProps(useTabsContext().getTriggerProps(tabProps), localProps);
|
|
66
|
+
return /* @__PURE__ */ jsx(wire.button, {
|
|
67
|
+
...mergedProps,
|
|
68
|
+
ref
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
TabTrigger.displayName = "TabTrigger";
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/tabs/context.tsx
|
|
74
|
+
const TabsContext = (props) => props.children(useTabsContext());
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/tabs/use.ts
|
|
77
|
+
const useTabs = (props) => {
|
|
78
|
+
const id = useId();
|
|
79
|
+
const { getRootNode } = useEnvironmentContext();
|
|
80
|
+
const { dir } = useLocaleContext();
|
|
81
|
+
const machineProps = {
|
|
82
|
+
id,
|
|
83
|
+
dir,
|
|
84
|
+
getRootNode,
|
|
85
|
+
...props
|
|
86
|
+
};
|
|
87
|
+
const service = useMachine(tabs.machine, machineProps);
|
|
88
|
+
return tabs.connect(service, normalizeProps);
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/tabs/root.tsx
|
|
92
|
+
const splitRootProps = createSplitProps();
|
|
93
|
+
const TabsRoot = forwardRef((props, ref) => {
|
|
94
|
+
const [renderStrategyProps, tabsProps] = splitRenderStrategyProps(props);
|
|
95
|
+
const [useTabsProps, localProps] = splitRootProps(tabsProps, [
|
|
96
|
+
"activationMode",
|
|
97
|
+
"composite",
|
|
98
|
+
"defaultValue",
|
|
99
|
+
"deselectable",
|
|
100
|
+
"id",
|
|
101
|
+
"ids",
|
|
102
|
+
"loopFocus",
|
|
103
|
+
"navigate",
|
|
104
|
+
"onFocusChange",
|
|
105
|
+
"onValueChange",
|
|
106
|
+
"orientation",
|
|
107
|
+
"translations",
|
|
108
|
+
"value"
|
|
109
|
+
]);
|
|
110
|
+
const tabs = useTabs(useTabsProps);
|
|
111
|
+
const mergedProps = mergeProps(tabs.getRootProps(), localProps);
|
|
112
|
+
return /* @__PURE__ */ jsx(TabsProvider, {
|
|
113
|
+
value: tabs,
|
|
114
|
+
children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, {
|
|
115
|
+
value: renderStrategyProps,
|
|
116
|
+
children: /* @__PURE__ */ jsx(wire.div, {
|
|
117
|
+
...mergedProps,
|
|
118
|
+
ref
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
TabsRoot.displayName = "TabsRoot";
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/tabs/root-provider.tsx
|
|
126
|
+
const splitRootProviderProps = createSplitProps();
|
|
127
|
+
const TabsRootProvider = forwardRef((props, ref) => {
|
|
128
|
+
const [renderStrategyProps, tabsProps] = splitRenderStrategyProps(props);
|
|
129
|
+
const [{ value: tabs }, localProps] = splitRootProviderProps(tabsProps, ["value"]);
|
|
130
|
+
const mergedProps = mergeProps(tabs.getRootProps(), localProps);
|
|
131
|
+
return /* @__PURE__ */ jsx(TabsProvider, {
|
|
132
|
+
value: tabs,
|
|
133
|
+
children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, {
|
|
134
|
+
value: renderStrategyProps,
|
|
135
|
+
children: /* @__PURE__ */ jsx(wire.div, {
|
|
136
|
+
...mergedProps,
|
|
137
|
+
ref
|
|
138
|
+
})
|
|
139
|
+
})
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
TabsRootProvider.displayName = "TabsRootProvider";
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/components/tabs/tabs.ts
|
|
145
|
+
var tabs_exports = /* @__PURE__ */ __exportAll({
|
|
146
|
+
Content: () => TabContent,
|
|
147
|
+
Context: () => TabsContext,
|
|
148
|
+
Indicator: () => TabIndicator,
|
|
149
|
+
List: () => TabList,
|
|
150
|
+
Root: () => TabsRoot,
|
|
151
|
+
RootProvider: () => TabsRootProvider,
|
|
152
|
+
Trigger: () => TabTrigger
|
|
153
|
+
});
|
|
154
|
+
//#endregion
|
|
155
|
+
export { TabContent, TabIndicator, TabList, TabTrigger, tabs_exports as Tabs, TabsContext, TabsRoot, TabsRootProvider, tabsAnatomy, useTabs, useTabsContext };
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-Cfwm9WW1.cjs");
|
|
4
|
+
const require_environment = require("./environment-B6IaCAuQ.cjs");
|
|
5
|
+
const require_core = require("./core-CBFAnVIP.cjs");
|
|
6
|
+
const require_factory = require("./factory-CFFufs5e.cjs");
|
|
7
|
+
const require_providers = require("./providers-DrJEJcrE.cjs");
|
|
8
|
+
const require_field = require("./field-x8H5uXB9.cjs");
|
|
9
|
+
let react = require("react");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let _wirekyt_dom_machines_tags_input = require("@wirekyt/dom/machines/tags-input");
|
|
12
|
+
_wirekyt_dom_machines_tags_input = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_tags_input, 1);
|
|
13
|
+
let _wirekyt_dom = require("@wirekyt/dom");
|
|
14
|
+
//#region src/components/tags-input/use-context.ts
|
|
15
|
+
const [TagsInputProvider, useTagsInputContext] = require_utils.createContext({
|
|
16
|
+
name: "TagsInputContext",
|
|
17
|
+
hookName: "useTagsInputContext",
|
|
18
|
+
providerName: "<TagsInputProvider />"
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/tags-input/clear-trigger.tsx
|
|
22
|
+
const TagsInputClearTrigger = (0, react.forwardRef)((props, ref) => {
|
|
23
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useTagsInputContext().getClearTriggerProps(), props);
|
|
24
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
|
|
25
|
+
...mergedProps,
|
|
26
|
+
ref
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
TagsInputClearTrigger.displayName = "TagsInputClearTrigger";
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/tags-input/context.tsx
|
|
32
|
+
const TagsInputContext = (props) => props.children(useTagsInputContext());
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/tags-input/control.tsx
|
|
35
|
+
const TagsInputControl = (0, react.forwardRef)((props, ref) => {
|
|
36
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useTagsInputContext().getControlProps(), props);
|
|
37
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
38
|
+
...mergedProps,
|
|
39
|
+
ref
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
TagsInputControl.displayName = "TagsInputControl";
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/tags-input/hidden-input.tsx
|
|
45
|
+
const TagsInputHiddenInput = (0, react.forwardRef)((props, ref) => {
|
|
46
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useTagsInputContext().getHiddenInputProps(), props);
|
|
47
|
+
const field = require_field.useFieldContext();
|
|
48
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.input, {
|
|
49
|
+
"aria-describedby": field?.ariaDescribedby,
|
|
50
|
+
...mergedProps,
|
|
51
|
+
ref
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
TagsInputHiddenInput.displayName = "TagsInputHiddenInput";
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/tags-input/input.tsx
|
|
57
|
+
const TagsInputInput = (0, react.forwardRef)((props, ref) => {
|
|
58
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useTagsInputContext().getInputProps(), props);
|
|
59
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.input, {
|
|
60
|
+
...mergedProps,
|
|
61
|
+
ref
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
TagsInputInput.displayName = "TagsInputInput";
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/tags-input/use-item-context.ts
|
|
67
|
+
const [TagsInputItemProvider, useTagsInputItemContext] = require_utils.createContext({
|
|
68
|
+
name: "TagsInputItemContext",
|
|
69
|
+
hookName: "useTagsInputItemContext",
|
|
70
|
+
providerName: "<TagsInputItemProvider />"
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/tags-input/use-item-props-context.ts
|
|
74
|
+
const [TagsInputItemPropsProvider, useTagsInputItemPropsContext] = require_utils.createContext({
|
|
75
|
+
name: "TagsInputItemPropsContext",
|
|
76
|
+
hookName: "useTagsInputItemPropsContext",
|
|
77
|
+
providerName: "<TagsInputItemPropsProvider />"
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/components/tags-input/item.tsx
|
|
81
|
+
const splitItemProps = require_utils.createSplitProps();
|
|
82
|
+
const TagsInputItem = (0, react.forwardRef)((props, ref) => {
|
|
83
|
+
const [itemProps, localProps] = splitItemProps(props, [
|
|
84
|
+
"index",
|
|
85
|
+
"disabled",
|
|
86
|
+
"value"
|
|
87
|
+
]);
|
|
88
|
+
const tagsInput = useTagsInputContext();
|
|
89
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getItemProps(itemProps), localProps);
|
|
90
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagsInputItemPropsProvider, {
|
|
91
|
+
value: itemProps,
|
|
92
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagsInputItemProvider, {
|
|
93
|
+
value: tagsInput.getItemState(itemProps),
|
|
94
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
95
|
+
...mergedProps,
|
|
96
|
+
ref
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
TagsInputItem.displayName = "TagsInputItem";
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/tags-input/item-context.tsx
|
|
104
|
+
const TagsInputItemContext = (props) => props.children(useTagsInputItemContext());
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/tags-input/item-delete-trigger.tsx
|
|
107
|
+
const TagsInputItemDeleteTrigger = (0, react.forwardRef)((props, ref) => {
|
|
108
|
+
const tagsInput = useTagsInputContext();
|
|
109
|
+
const itemProps = useTagsInputItemPropsContext();
|
|
110
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getItemDeleteTriggerProps(itemProps), props);
|
|
111
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
|
|
112
|
+
...mergedProps,
|
|
113
|
+
ref
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
TagsInputItemDeleteTrigger.displayName = "TagsInputItemDeleteTrigger";
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/tags-input/item-input.tsx
|
|
119
|
+
const TagsInputItemInput = (0, react.forwardRef)((props, ref) => {
|
|
120
|
+
const tagsInput = useTagsInputContext();
|
|
121
|
+
const itemProps = useTagsInputItemPropsContext();
|
|
122
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getItemInputProps(itemProps), props);
|
|
123
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.input, {
|
|
124
|
+
...mergedProps,
|
|
125
|
+
ref
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
TagsInputItemInput.displayName = "TagsInputItemInput";
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/tags-input/item-preview.tsx
|
|
131
|
+
const TagsInputItemPreview = (0, react.forwardRef)((props, ref) => {
|
|
132
|
+
const tagsInput = useTagsInputContext();
|
|
133
|
+
const itemProps = useTagsInputItemPropsContext();
|
|
134
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getItemPreviewProps(itemProps), props);
|
|
135
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
136
|
+
...mergedProps,
|
|
137
|
+
ref
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
TagsInputItemPreview.displayName = "TagsInputItemPreview";
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/tags-input/item-text.tsx
|
|
143
|
+
const TagsInputItemText = (0, react.forwardRef)((props, ref) => {
|
|
144
|
+
const tagsInput = useTagsInputContext();
|
|
145
|
+
const itemProps = useTagsInputItemPropsContext();
|
|
146
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getItemTextProps(itemProps), props);
|
|
147
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
|
|
148
|
+
...mergedProps,
|
|
149
|
+
ref
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
TagsInputItemText.displayName = "TagsInputItemText";
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/tags-input/label.tsx
|
|
155
|
+
const TagsInputLabel = (0, react.forwardRef)((props, ref) => {
|
|
156
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(useTagsInputContext().getLabelProps(), props);
|
|
157
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.label, {
|
|
158
|
+
...mergedProps,
|
|
159
|
+
ref
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
TagsInputLabel.displayName = "TagsInputLabel";
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/components/tags-input/use.ts
|
|
165
|
+
const useTagsInput = (props) => {
|
|
166
|
+
const id = (0, react.useId)();
|
|
167
|
+
const { getRootNode } = require_environment.useEnvironmentContext();
|
|
168
|
+
const { dir } = require_providers.useLocaleContext();
|
|
169
|
+
const field = require_field.useFieldContext();
|
|
170
|
+
const machineProps = {
|
|
171
|
+
id,
|
|
172
|
+
ids: {
|
|
173
|
+
label: field?.ids.label,
|
|
174
|
+
hiddenInput: field?.ids.control
|
|
175
|
+
},
|
|
176
|
+
dir,
|
|
177
|
+
disabled: field?.disabled,
|
|
178
|
+
invalid: field?.invalid,
|
|
179
|
+
readOnly: field?.readOnly,
|
|
180
|
+
required: field?.required,
|
|
181
|
+
getRootNode,
|
|
182
|
+
...props
|
|
183
|
+
};
|
|
184
|
+
const service = require_core.useMachine(_wirekyt_dom_machines_tags_input.machine, machineProps);
|
|
185
|
+
return _wirekyt_dom_machines_tags_input.connect(service, require_core.normalizeProps);
|
|
186
|
+
};
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/components/tags-input/root.tsx
|
|
189
|
+
const splitTagsInputProps = require_utils.createSplitProps();
|
|
190
|
+
const TagsInputRoot = (0, react.forwardRef)((props, ref) => {
|
|
191
|
+
const [useTagsInputProps, localProps] = splitTagsInputProps(props, [
|
|
192
|
+
"addOnPaste",
|
|
193
|
+
"allowDuplicates",
|
|
194
|
+
"allowOverflow",
|
|
195
|
+
"autoFocus",
|
|
196
|
+
"blurBehavior",
|
|
197
|
+
"defaultInputValue",
|
|
198
|
+
"defaultValue",
|
|
199
|
+
"delimiter",
|
|
200
|
+
"disabled",
|
|
201
|
+
"editable",
|
|
202
|
+
"form",
|
|
203
|
+
"id",
|
|
204
|
+
"ids",
|
|
205
|
+
"inputValue",
|
|
206
|
+
"invalid",
|
|
207
|
+
"max",
|
|
208
|
+
"maxLength",
|
|
209
|
+
"name",
|
|
210
|
+
"onFocusOutside",
|
|
211
|
+
"onHighlightChange",
|
|
212
|
+
"onInputValueChange",
|
|
213
|
+
"onInteractOutside",
|
|
214
|
+
"onPointerDownOutside",
|
|
215
|
+
"onValueChange",
|
|
216
|
+
"onValueInvalid",
|
|
217
|
+
"placeholder",
|
|
218
|
+
"readOnly",
|
|
219
|
+
"required",
|
|
220
|
+
"sanitizeValue",
|
|
221
|
+
"translations",
|
|
222
|
+
"validate",
|
|
223
|
+
"value"
|
|
224
|
+
]);
|
|
225
|
+
const tagsInput = useTagsInput(useTagsInputProps);
|
|
226
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getRootProps(), localProps);
|
|
227
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagsInputProvider, {
|
|
228
|
+
value: tagsInput,
|
|
229
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
230
|
+
...mergedProps,
|
|
231
|
+
ref
|
|
232
|
+
})
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
TagsInputRoot.displayName = "TagsInputRoot";
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/components/tags-input/root-provider.tsx
|
|
238
|
+
const splitRootProviderProps = require_utils.createSplitProps();
|
|
239
|
+
const TagsInputRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
240
|
+
const [{ value: tagsInput }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
241
|
+
const mergedProps = (0, _wirekyt_dom.mergeProps)(tagsInput.getRootProps(), localProps);
|
|
242
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagsInputProvider, {
|
|
243
|
+
value: tagsInput,
|
|
244
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
|
|
245
|
+
...mergedProps,
|
|
246
|
+
ref
|
|
247
|
+
})
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
TagsInputRootProvider.displayName = "TagsInputRootProvider";
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/components/tags-input/tags-input.ts
|
|
253
|
+
var tags_input_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
254
|
+
ClearTrigger: () => TagsInputClearTrigger,
|
|
255
|
+
Context: () => TagsInputContext,
|
|
256
|
+
Control: () => TagsInputControl,
|
|
257
|
+
HiddenInput: () => TagsInputHiddenInput,
|
|
258
|
+
Input: () => TagsInputInput,
|
|
259
|
+
Item: () => TagsInputItem,
|
|
260
|
+
ItemContext: () => TagsInputItemContext,
|
|
261
|
+
ItemDeleteTrigger: () => TagsInputItemDeleteTrigger,
|
|
262
|
+
ItemInput: () => TagsInputItemInput,
|
|
263
|
+
ItemPreview: () => TagsInputItemPreview,
|
|
264
|
+
ItemText: () => TagsInputItemText,
|
|
265
|
+
Label: () => TagsInputLabel,
|
|
266
|
+
Root: () => TagsInputRoot,
|
|
267
|
+
RootProvider: () => TagsInputRootProvider
|
|
268
|
+
});
|
|
269
|
+
//#endregion
|
|
270
|
+
Object.defineProperty(exports, "TagsInput", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function() {
|
|
273
|
+
return tags_input_exports;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
exports.TagsInputClearTrigger = TagsInputClearTrigger;
|
|
277
|
+
exports.TagsInputContext = TagsInputContext;
|
|
278
|
+
exports.TagsInputControl = TagsInputControl;
|
|
279
|
+
exports.TagsInputHiddenInput = TagsInputHiddenInput;
|
|
280
|
+
exports.TagsInputInput = TagsInputInput;
|
|
281
|
+
exports.TagsInputItem = TagsInputItem;
|
|
282
|
+
exports.TagsInputItemContext = TagsInputItemContext;
|
|
283
|
+
exports.TagsInputItemDeleteTrigger = TagsInputItemDeleteTrigger;
|
|
284
|
+
exports.TagsInputItemInput = TagsInputItemInput;
|
|
285
|
+
exports.TagsInputItemPreview = TagsInputItemPreview;
|
|
286
|
+
exports.TagsInputItemText = TagsInputItemText;
|
|
287
|
+
exports.TagsInputLabel = TagsInputLabel;
|
|
288
|
+
exports.TagsInputRoot = TagsInputRoot;
|
|
289
|
+
exports.TagsInputRootProvider = TagsInputRootProvider;
|
|
290
|
+
Object.defineProperty(exports, "tagsInputAnatomy", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function() {
|
|
293
|
+
return _wirekyt_dom_machines_tags_input.anatomy;
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
exports.useTagsInput = useTagsInput;
|
|
297
|
+
exports.useTagsInputContext = useTagsInputContext;
|
|
298
|
+
exports.useTagsInputItemContext = useTagsInputItemContext;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { a as PropTypes } from "./index-CQAbOgb7.cjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "./types-BQQfrr86.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.cjs";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
import * as tagsInput from "@wirekyt/dom/machines/tags-input";
|
|
6
|
+
import { FocusOutsideEvent, FocusOutsideEvent as TagsInputFocusOutsideEvent, HighlightChangeDetails, HighlightChangeDetails as TagsInputHighlightChangeDetails, InputValueChangeDetails, InputValueChangeDetails as TagsInputInputValueChangeDetails, InteractOutsideEvent, InteractOutsideEvent as TagsInputInteractOutsideEvent, ItemProps, ItemState, PointerDownOutsideEvent, PointerDownOutsideEvent as TagsInputPointerDownOutsideEvent, ValidityChangeDetails, ValidityChangeDetails as TagsInputValidityChangeDetails, ValueChangeDetails, ValueChangeDetails as TagsInputValueChangeDetails, anatomy as tagsInputAnatomy } from "@wirekyt/dom/machines/tags-input";
|
|
7
|
+
//#region src/components/tags-input/clear-trigger.d.ts
|
|
8
|
+
interface TagsInputClearTriggerBaseProps extends PolymorphicProps {}
|
|
9
|
+
interface TagsInputClearTriggerProps extends HTMLProps<"button">, TagsInputClearTriggerBaseProps {}
|
|
10
|
+
declare const TagsInputClearTrigger: import("react").ForwardRefExoticComponent<TagsInputClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/tags-input/use.d.ts
|
|
13
|
+
interface UseTagsInputProps extends Optional<Omit<tagsInput.Props, "dir" | "getRootNode">, "id"> {}
|
|
14
|
+
interface UseTagsInputReturn extends tagsInput.Api<PropTypes> {}
|
|
15
|
+
declare const useTagsInput: (props?: UseTagsInputProps) => UseTagsInputReturn;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/tags-input/use-context.d.ts
|
|
18
|
+
interface UseTagsInputContext extends UseTagsInputReturn {}
|
|
19
|
+
declare const TagsInputProvider: import("react").Provider<UseTagsInputContext>, useTagsInputContext: () => UseTagsInputContext;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/tags-input/context.d.ts
|
|
22
|
+
interface TagsInputContextProps {
|
|
23
|
+
children: (context: UseTagsInputContext) => ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const TagsInputContext: (props: TagsInputContextProps) => ReactNode;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/tags-input/control.d.ts
|
|
28
|
+
interface TagsInputControlBaseProps extends PolymorphicProps {}
|
|
29
|
+
interface TagsInputControlProps extends HTMLProps<"div">, TagsInputControlBaseProps {}
|
|
30
|
+
declare const TagsInputControl: import("react").ForwardRefExoticComponent<TagsInputControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/tags-input/hidden-input.d.ts
|
|
33
|
+
interface TagsInputHiddenInputBaseProps extends PolymorphicProps {}
|
|
34
|
+
interface TagsInputHiddenInputProps extends HTMLProps<"input">, TagsInputHiddenInputBaseProps {}
|
|
35
|
+
declare const TagsInputHiddenInput: import("react").ForwardRefExoticComponent<TagsInputHiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/tags-input/input.d.ts
|
|
38
|
+
interface TagsInputInputBaseProps extends PolymorphicProps {}
|
|
39
|
+
interface TagsInputInputProps extends HTMLProps<"input">, TagsInputInputBaseProps {}
|
|
40
|
+
declare const TagsInputInput: import("react").ForwardRefExoticComponent<TagsInputInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/tags-input/item.d.ts
|
|
43
|
+
interface TagsInputItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
44
|
+
interface TagsInputItemProps extends HTMLProps<"div">, TagsInputItemBaseProps {}
|
|
45
|
+
declare const TagsInputItem: import("react").ForwardRefExoticComponent<TagsInputItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/tags-input/use-item-context.d.ts
|
|
48
|
+
interface UseTagsInputItemContext extends ItemState {}
|
|
49
|
+
declare const TagsInputItemProvider: import("react").Provider<UseTagsInputItemContext>, useTagsInputItemContext: () => UseTagsInputItemContext;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/tags-input/item-context.d.ts
|
|
52
|
+
interface TagsInputItemContextProps {
|
|
53
|
+
children: (context: UseTagsInputItemContext) => ReactNode;
|
|
54
|
+
}
|
|
55
|
+
declare const TagsInputItemContext: (props: TagsInputItemContextProps) => ReactNode;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/tags-input/item-delete-trigger.d.ts
|
|
58
|
+
interface TagsInputItemDeleteTriggerBaseProps extends PolymorphicProps {}
|
|
59
|
+
interface TagsInputItemDeleteTriggerProps extends HTMLProps<"button">, TagsInputItemDeleteTriggerBaseProps {}
|
|
60
|
+
declare const TagsInputItemDeleteTrigger: import("react").ForwardRefExoticComponent<TagsInputItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/tags-input/item-input.d.ts
|
|
63
|
+
interface TagsInputItemInputBaseProps extends PolymorphicProps {}
|
|
64
|
+
interface TagsInputItemInputProps extends HTMLProps<"input">, TagsInputItemInputBaseProps {}
|
|
65
|
+
declare const TagsInputItemInput: import("react").ForwardRefExoticComponent<TagsInputItemInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/tags-input/item-preview.d.ts
|
|
68
|
+
interface TagsInputItemPreviewBaseProps extends PolymorphicProps {}
|
|
69
|
+
interface TagsInputItemPreviewProps extends HTMLProps<"div">, TagsInputItemPreviewBaseProps {}
|
|
70
|
+
declare const TagsInputItemPreview: import("react").ForwardRefExoticComponent<TagsInputItemPreviewProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/tags-input/item-text.d.ts
|
|
73
|
+
interface TagsInputItemTextBaseProps extends PolymorphicProps {}
|
|
74
|
+
interface TagsInputItemTextProps extends HTMLProps<"span">, TagsInputItemTextBaseProps {}
|
|
75
|
+
declare const TagsInputItemText: import("react").ForwardRefExoticComponent<TagsInputItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/tags-input/label.d.ts
|
|
78
|
+
interface TagsInputLabelBaseProps extends PolymorphicProps {}
|
|
79
|
+
interface TagsInputLabelProps extends HTMLProps<"label">, TagsInputLabelBaseProps {}
|
|
80
|
+
declare const TagsInputLabel: import("react").ForwardRefExoticComponent<TagsInputLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/tags-input/root.d.ts
|
|
83
|
+
interface TagsInputRootBaseProps extends UseTagsInputProps, PolymorphicProps {}
|
|
84
|
+
interface TagsInputRootProps extends Assign<HTMLProps<"div">, TagsInputRootBaseProps> {}
|
|
85
|
+
declare const TagsInputRoot: import("react").ForwardRefExoticComponent<TagsInputRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/tags-input/root-provider.d.ts
|
|
88
|
+
interface RootProviderProps {
|
|
89
|
+
value: UseTagsInputReturn;
|
|
90
|
+
}
|
|
91
|
+
interface TagsInputRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
92
|
+
interface TagsInputRootProviderProps extends HTMLProps<"div">, TagsInputRootProviderBaseProps {}
|
|
93
|
+
declare const TagsInputRootProvider: import("react").ForwardRefExoticComponent<TagsInputRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
94
|
+
declare namespace tags_input_d_exports {
|
|
95
|
+
export { TagsInputClearTrigger as ClearTrigger, TagsInputClearTriggerBaseProps as ClearTriggerBaseProps, TagsInputClearTriggerProps as ClearTriggerProps, TagsInputContext as Context, TagsInputContextProps as ContextProps, TagsInputControl as Control, TagsInputControlBaseProps as ControlBaseProps, TagsInputControlProps as ControlProps, FocusOutsideEvent, TagsInputHiddenInput as HiddenInput, TagsInputHiddenInputBaseProps as HiddenInputBaseProps, TagsInputHiddenInputProps as HiddenInputProps, HighlightChangeDetails, TagsInputInput as Input, TagsInputInputBaseProps as InputBaseProps, TagsInputInputProps as InputProps, InputValueChangeDetails, InteractOutsideEvent, TagsInputItem as Item, TagsInputItemBaseProps as ItemBaseProps, TagsInputItemContext as ItemContext, TagsInputItemContextProps as ItemContextProps, TagsInputItemDeleteTrigger as ItemDeleteTrigger, TagsInputItemDeleteTriggerBaseProps as ItemDeleteTriggerBaseProps, TagsInputItemDeleteTriggerProps as ItemDeleteTriggerProps, TagsInputItemInput as ItemInput, TagsInputItemInputBaseProps as ItemInputBaseProps, TagsInputItemInputProps as ItemInputProps, TagsInputItemPreview as ItemPreview, TagsInputItemPreviewBaseProps as ItemPreviewBaseProps, TagsInputItemPreviewProps as ItemPreviewProps, TagsInputItemProps as ItemProps, TagsInputItemText as ItemText, TagsInputItemTextBaseProps as ItemTextBaseProps, TagsInputItemTextProps as ItemTextProps, TagsInputLabel as Label, TagsInputLabelBaseProps as LabelBaseProps, TagsInputLabelProps as LabelProps, PointerDownOutsideEvent, TagsInputRoot as Root, TagsInputRootBaseProps as RootBaseProps, TagsInputRootProps as RootProps, TagsInputRootProvider as RootProvider, TagsInputRootProviderBaseProps as RootProviderBaseProps, TagsInputRootProviderProps as RootProviderProps, ValidityChangeDetails, ValueChangeDetails };
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
export { tags_input_d_exports as TagsInput, TagsInputClearTrigger, type TagsInputClearTriggerBaseProps, type TagsInputClearTriggerProps, TagsInputContext, type TagsInputContextProps, TagsInputControl, type TagsInputControlBaseProps, type TagsInputControlProps, type TagsInputFocusOutsideEvent, TagsInputHiddenInput, type TagsInputHiddenInputBaseProps, type TagsInputHiddenInputProps, type TagsInputHighlightChangeDetails, TagsInputInput, type TagsInputInputBaseProps, type TagsInputInputProps, type TagsInputInputValueChangeDetails, type TagsInputInteractOutsideEvent, TagsInputItem, type TagsInputItemBaseProps, TagsInputItemContext, type TagsInputItemContextProps, TagsInputItemDeleteTrigger, type TagsInputItemDeleteTriggerBaseProps, type TagsInputItemDeleteTriggerProps, TagsInputItemInput, type TagsInputItemInputBaseProps, type TagsInputItemInputProps, TagsInputItemPreview, type TagsInputItemPreviewBaseProps, type TagsInputItemPreviewProps, type TagsInputItemProps, TagsInputItemText, type TagsInputItemTextBaseProps, type TagsInputItemTextProps, TagsInputLabel, type TagsInputLabelBaseProps, type TagsInputLabelProps, type TagsInputPointerDownOutsideEvent, TagsInputRoot, type TagsInputRootBaseProps, type TagsInputRootProps, TagsInputRootProvider, type TagsInputRootProviderBaseProps, type TagsInputRootProviderProps, type TagsInputValidityChangeDetails, type TagsInputValueChangeDetails, type UseTagsInputContext, type UseTagsInputItemContext, type UseTagsInputProps, type UseTagsInputReturn, tagsInputAnatomy, useTagsInput, useTagsInputContext, useTagsInputItemContext };
|