@sprawlify/solid 0.0.108 → 0.0.110
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/{alert-dialog-anatomy-C1utd_md.d.ts → alert-dialog-anatomy-CtDwltgK.d.ts} +1 -1
- package/dist/{carousel-anatomy-Cgncj4px.d.ts → carousel-anatomy-cRpcGNQa.d.ts} +1 -1
- package/dist/{checkbox-anatomy-Og29Ch0M.d.ts → checkbox-anatomy-5y1dcYYW.d.ts} +1 -1
- package/dist/color-picker-anatomy-BlV80dWk.d.ts +6 -0
- package/dist/combobox-anatomy-BS0c9ArZ.d.ts +6 -0
- package/dist/components/alert-dialog/index.d.ts +1 -1
- package/dist/components/anatomy.d.ts +13 -13
- package/dist/components/anatomy.js +2 -2
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +2 -2
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +3 -3
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/drawer/index.d.ts +80 -0
- package/dist/components/drawer/index.js +206 -0
- package/dist/components/drawer/index.jsx +165 -0
- package/dist/components/editable/index.js +2 -2
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.js +2 -2
- package/dist/components/fieldset/index.d.ts +1 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/file-upload/index.js +2 -2
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/listbox/index.d.ts +1 -1
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/number-input/index.js +2 -2
- package/dist/components/password-input/index.js +2 -2
- package/dist/components/pin-input/index.js +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rating-group/index.js +2 -2
- package/dist/components/segment-group/index.d.ts +1 -1
- package/dist/components/select/index.js +3 -3
- package/dist/components/signature-pad/index.js +2 -2
- package/dist/components/switch/index.js +2 -2
- package/dist/components/tags-input/index.js +2 -2
- package/dist/components/tour/index.d.ts +1 -1
- package/dist/components/tree-view/index.js +1 -1
- package/dist/{date-picker-anatomy-DBNm2s3V.d.ts → date-picker-anatomy-CLgDJiIl.d.ts} +1 -1
- package/dist/drawer-anatomy-BX_dO1CK.d.ts +2 -0
- package/dist/drawer-anatomy-yHqvQAPn.js +2 -0
- package/dist/{field-qpgn7pqc.js → field-GL4C0tUr.js} +1 -1
- package/dist/{field-anatomy-BVhZBuPN.d.ts → field-anatomy-CeR3nVI8.d.ts} +1 -1
- package/dist/{fieldset-anatomy-t2uR3tz-.d.ts → fieldset-anatomy-DF0TfPdv.d.ts} +1 -1
- package/dist/{index-Ywo5uneC.d.ts → index-tOc74k5O.d.ts} +1 -1
- package/dist/{listbox-anatomy-CPLbY23M.d.ts → listbox-anatomy-BM3Tatnj.d.ts} +1 -1
- package/dist/{segment-group-anatomy-DwgdyOB9.d.ts → segment-group-anatomy-Bz4fq3aR.d.ts} +1 -1
- package/dist/{tour-anatomy-BMUAs7F2.d.ts → tour-anatomy-Dww_8e1C.d.ts} +1 -1
- package/package.json +7 -7
- package/dist/bottom-sheet-anatomy-C70fosOT.js +0 -2
- package/dist/bottom-sheet-anatomy-EFEmb--0.d.ts +0 -2
- package/dist/color-picker-anatomy--9A1k29K.d.ts +0 -6
- package/dist/combobox-anatomy-3RU1-036.d.ts +0 -6
- package/dist/components/bottom-sheet/index.d.ts +0 -80
- package/dist/components/bottom-sheet/index.js +0 -206
- package/dist/components/bottom-sheet/index.jsx +0 -165
- /package/dist/{collection-DClPz7tj.js → collection-D83ZAzYd.js} +0 -0
- /package/dist/{fieldset-OJI7ChsJ.js → fieldset-DQUqxXN2.js} +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-pQxUBDkX.jsx";
|
|
2
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "../../core-DUR6M1Mz.jsx";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-qkd0iQPO.jsx";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-iBxaUhvx.jsx";
|
|
5
|
+
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-C-cHBiyk.jsx";
|
|
6
|
+
import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
|
|
7
|
+
import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
|
|
8
|
+
import { n as splitRenderStrategyProps, r as useRenderStrategyContext, t as RenderStrategyProvider } from "../../render-strategy-6LT04Ztx.jsx";
|
|
9
|
+
import { t as composeRefs } from "../../compose-refs-Jq47jedK.jsx";
|
|
10
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-BcYjLSBT.jsx";
|
|
11
|
+
import { Show, createMemo, createUniqueId } from "solid-js";
|
|
12
|
+
import * as drawer from "@sprawlify/primitives/machines/drawer";
|
|
13
|
+
import { anatomy as drawerAnatomy } from "@sprawlify/primitives/machines/drawer";
|
|
14
|
+
//#region src/components/drawer/use-drawer-context.ts
|
|
15
|
+
const [DrawerSheetProvider, useDrawerContext] = createContext$1({
|
|
16
|
+
hookName: "useDrawerContext",
|
|
17
|
+
providerName: "<DrawerSheetProvider />"
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/drawer/drawer-backdrop.tsx
|
|
21
|
+
const DrawerBackdrop = (props) => {
|
|
22
|
+
const drawer = useDrawerContext();
|
|
23
|
+
const presence = usePresence(mergeProps$1(useRenderStrategyContext(), () => ({ present: drawer().open })));
|
|
24
|
+
const mergedProps = mergeProps$1(() => drawer().getBackdropProps(), () => presence().presenceProps, props);
|
|
25
|
+
return <Show when={!presence().unmounted}>
|
|
26
|
+
<sprawlify.div {...mergedProps} ref={composeRefs(presence().ref, props.ref)} />
|
|
27
|
+
</Show>;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/drawer/drawer-close-trigger.tsx
|
|
31
|
+
const DrawerCloseTrigger = (props) => {
|
|
32
|
+
const context = useDrawerContext();
|
|
33
|
+
const mergedProps = mergeProps$1(() => context().getCloseTriggerProps(), props);
|
|
34
|
+
return <sprawlify.button {...mergedProps} />;
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/drawer/drawer-content.tsx
|
|
38
|
+
const DrawerContent = (props) => {
|
|
39
|
+
const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
|
|
40
|
+
const drawer = useDrawerContext();
|
|
41
|
+
const presence = usePresenceContext();
|
|
42
|
+
const mergedProps = mergeProps$1(() => drawer().getContentProps({
|
|
43
|
+
draggable: true,
|
|
44
|
+
...contentProps
|
|
45
|
+
}), () => presence().presenceProps, localProps);
|
|
46
|
+
return <Show when={!presence().unmounted}>
|
|
47
|
+
<sprawlify.div {...mergedProps} ref={composeRefs(presence().ref, localProps.ref)} />
|
|
48
|
+
</Show>;
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/drawer/drawer-context.tsx
|
|
52
|
+
const DrawerContext = (props) => props.children(useDrawerContext());
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/drawer/drawer-grabber.tsx
|
|
55
|
+
const DrawerGrabber = (props) => {
|
|
56
|
+
const drawer = useDrawerContext();
|
|
57
|
+
const mergedProps = mergeProps$1(() => drawer().getGrabberProps(), props);
|
|
58
|
+
return <sprawlify.div {...mergedProps} />;
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/drawer/drawer-grabber-indicator.tsx
|
|
62
|
+
const DrawerGrabberIndicator = (props) => {
|
|
63
|
+
const drawer = useDrawerContext();
|
|
64
|
+
const mergedProps = mergeProps$1(() => drawer().getGrabberIndicatorProps(), props);
|
|
65
|
+
return <sprawlify.div {...mergedProps} />;
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/drawer/use-drawer.ts
|
|
69
|
+
const useDrawer = (props) => {
|
|
70
|
+
const locale = useLocaleContext();
|
|
71
|
+
const environment = useEnvironmentContext();
|
|
72
|
+
const id = createUniqueId();
|
|
73
|
+
const machineProps = createMemo(() => ({
|
|
74
|
+
id,
|
|
75
|
+
dir: locale().dir,
|
|
76
|
+
getRootNode: environment().getRootNode,
|
|
77
|
+
...runIfFn(props)
|
|
78
|
+
}));
|
|
79
|
+
const service = useMachine(drawer.machine, machineProps);
|
|
80
|
+
return createMemo(() => drawer.connect(service, normalizeProps));
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/drawer/drawer-root.tsx
|
|
84
|
+
const DrawerRoot = (props) => {
|
|
85
|
+
const [presenceProps, drawerProps] = splitPresenceProps(props);
|
|
86
|
+
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
87
|
+
const [useDrawerProps, localProps] = createSplitProps()(drawerProps, [
|
|
88
|
+
"id",
|
|
89
|
+
"ids",
|
|
90
|
+
"open",
|
|
91
|
+
"defaultOpen",
|
|
92
|
+
"onOpenChange",
|
|
93
|
+
"closeOnInteractOutside",
|
|
94
|
+
"closeOnEscape",
|
|
95
|
+
"snapPoints",
|
|
96
|
+
"swipeVelocityThreshold",
|
|
97
|
+
"closeThreshold",
|
|
98
|
+
"preventDragOnScroll",
|
|
99
|
+
"activeSnapPoint",
|
|
100
|
+
"defaultActiveSnapPoint",
|
|
101
|
+
"onActiveSnapPointChange",
|
|
102
|
+
"modal",
|
|
103
|
+
"trapFocus",
|
|
104
|
+
"restoreFocus",
|
|
105
|
+
"preventScroll",
|
|
106
|
+
"initialFocusEl",
|
|
107
|
+
"finalFocusEl",
|
|
108
|
+
"role",
|
|
109
|
+
"onInteractOutside",
|
|
110
|
+
"onEscapeKeyDown",
|
|
111
|
+
"onPointerDownOutside",
|
|
112
|
+
"onFocusOutside",
|
|
113
|
+
"onRequestDismiss"
|
|
114
|
+
]);
|
|
115
|
+
const drawer = useDrawer(useDrawerProps);
|
|
116
|
+
const presence = usePresence(mergeProps$1(presenceProps, () => ({ present: drawer().open })));
|
|
117
|
+
return <DrawerSheetProvider value={drawer}>
|
|
118
|
+
<RenderStrategyProvider value={renderStrategyProps}>
|
|
119
|
+
<PresenceProvider value={presence}>{localProps.children}</PresenceProvider>
|
|
120
|
+
</RenderStrategyProvider>
|
|
121
|
+
</DrawerSheetProvider>;
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/drawer/drawer-root-provider.tsx
|
|
125
|
+
const DrawerRootProvider = (props) => {
|
|
126
|
+
const [presenceProps, drawerProps] = splitPresenceProps(props);
|
|
127
|
+
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
128
|
+
const presence = usePresence(mergeProps$1(() => ({ present: drawerProps.value().open }), presenceProps));
|
|
129
|
+
return <DrawerSheetProvider value={drawerProps.value}>
|
|
130
|
+
<RenderStrategyProvider value={renderStrategyProps}>
|
|
131
|
+
<PresenceProvider value={presence}>{drawerProps.children}</PresenceProvider>
|
|
132
|
+
</RenderStrategyProvider>
|
|
133
|
+
</DrawerSheetProvider>;
|
|
134
|
+
};
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/components/drawer/drawer-title.tsx
|
|
137
|
+
const DrawerTitle = (props) => {
|
|
138
|
+
const drawer = useDrawerContext();
|
|
139
|
+
const mergedProps = mergeProps$1(() => drawer().getTitleProps(), props);
|
|
140
|
+
return <sprawlify.h2 {...mergedProps} />;
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/components/drawer/drawer-trigger.tsx
|
|
144
|
+
const DrawerTrigger = (props) => {
|
|
145
|
+
const drawer = useDrawerContext();
|
|
146
|
+
const presence = usePresenceContext();
|
|
147
|
+
const mergedProps = mergeProps$1(() => drawer().getTriggerProps(), () => ({ "aria-controls": presence().unmounted && null }), props);
|
|
148
|
+
return <sprawlify.button {...mergedProps} />;
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/drawer/drawer.ts
|
|
152
|
+
var drawer_exports = /* @__PURE__ */ __exportAll({
|
|
153
|
+
Backdrop: () => DrawerBackdrop,
|
|
154
|
+
CloseTrigger: () => DrawerCloseTrigger,
|
|
155
|
+
Content: () => DrawerContent,
|
|
156
|
+
Context: () => DrawerContext,
|
|
157
|
+
Grabber: () => DrawerGrabber,
|
|
158
|
+
GrabberIndicator: () => DrawerGrabberIndicator,
|
|
159
|
+
Root: () => DrawerRoot,
|
|
160
|
+
RootProvider: () => DrawerRootProvider,
|
|
161
|
+
Title: () => DrawerTitle,
|
|
162
|
+
Trigger: () => DrawerTrigger
|
|
163
|
+
});
|
|
164
|
+
//#endregion
|
|
165
|
+
export { drawer_exports as Drawer, DrawerBackdrop, DrawerCloseTrigger, DrawerContent, DrawerContext, DrawerGrabber, DrawerGrabberIndicator, DrawerRoot, DrawerRootProvider, DrawerTitle, DrawerTrigger, drawerAnatomy, useDrawer, useDrawerContext };
|
|
@@ -9,8 +9,8 @@ import "../../field-anatomy-BloFzq7T.js";
|
|
|
9
9
|
import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as editable from "@sprawlify/primitives/machines/editable";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as MaybeAccessor } from "../../types-C0L5xDeS.js";
|
|
2
2
|
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
|
|
3
|
-
import { t as fieldAnatomy } from "../../field-anatomy-
|
|
3
|
+
import { t as fieldAnatomy } from "../../field-anatomy-CeR3nVI8.js";
|
|
4
4
|
import * as solid_js0 from "solid-js";
|
|
5
5
|
import { JSX } from "solid-js";
|
|
6
6
|
|
|
@@ -6,6 +6,6 @@ import { t as fieldAnatomy } from "../../field-anatomy-BloFzq7T.js";
|
|
|
6
6
|
import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
7
7
|
import "../../create-split-props-OE-yOtGc.js";
|
|
8
8
|
import "../../compose-refs-BKcaHXR8.js";
|
|
9
|
-
import "../../fieldset-
|
|
10
|
-
import { a as FieldRoot, c as FieldLabel, d as FieldErrorText, f as FieldContext, i as FieldRootProvider, l as FieldInput, n as FieldTextarea, o as useField, p as useFieldContext, r as FieldSelect, s as FieldRequiredIndicator, t as field_exports, u as FieldHelperText } from "../../field-
|
|
9
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
10
|
+
import { a as FieldRoot, c as FieldLabel, d as FieldErrorText, f as FieldContext, i as FieldRootProvider, l as FieldInput, n as FieldTextarea, o as useField, p as useFieldContext, r as FieldSelect, s as FieldRequiredIndicator, t as field_exports, u as FieldHelperText } from "../../field-GL4C0tUr.js";
|
|
11
11
|
export { field_exports as Field, FieldContext, FieldErrorText, FieldHelperText, FieldInput, FieldLabel, FieldRequiredIndicator, FieldRoot, FieldRootProvider, FieldSelect, FieldTextarea, fieldAnatomy, useField, useFieldContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as MaybeAccessor } from "../../types-C0L5xDeS.js";
|
|
2
2
|
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
|
|
3
|
-
import { t as fieldsetAnatomy } from "../../fieldset-anatomy-
|
|
3
|
+
import { t as fieldsetAnatomy } from "../../fieldset-anatomy-DF0TfPdv.js";
|
|
4
4
|
import * as solid_js0 from "solid-js";
|
|
5
5
|
import { JSX } from "solid-js";
|
|
6
6
|
|
|
@@ -5,5 +5,5 @@ import "../../factory-DORgzART.js";
|
|
|
5
5
|
import { t as fieldsetAnatomy } from "../../fieldset-anatomy-DBAg0hLg.js";
|
|
6
6
|
import "../../create-split-props-OE-yOtGc.js";
|
|
7
7
|
import "../../compose-refs-BKcaHXR8.js";
|
|
8
|
-
import { a as FieldsetLegend, c as FieldsetContext, i as useFieldset, l as useFieldsetContext, n as FieldsetRootProvider, o as FieldsetHelperText, r as FieldsetRoot, s as FieldsetErrorText, t as fieldset_exports } from "../../fieldset-
|
|
8
|
+
import { a as FieldsetLegend, c as FieldsetContext, i as useFieldset, l as useFieldsetContext, n as FieldsetRootProvider, o as FieldsetHelperText, r as FieldsetRoot, s as FieldsetErrorText, t as fieldset_exports } from "../../fieldset-DQUqxXN2.js";
|
|
9
9
|
export { fieldset_exports as Fieldset, FieldsetContext, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FieldsetRoot, FieldsetRootProvider, fieldsetAnatomy, useFieldset, useFieldsetContext };
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as fileUploadAnatomy } from "../../file-upload-anatomy-vzjeLbps.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { Show, createEffect, createMemo, createSignal, createUniqueId, onCleanup } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as fileUpload from "@sprawlify/primitives/machines/file-upload";
|
|
@@ -6,7 +6,7 @@ import "../../factory-DORgzART.js";
|
|
|
6
6
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
7
7
|
import "../../render-strategy-BAqQL-Hs.js";
|
|
8
8
|
import "../../collapsible-CqDl0d8N.js";
|
|
9
|
-
import { a as createTreeCollection } from "../../collection-
|
|
9
|
+
import { a as createTreeCollection } from "../../collection-D83ZAzYd.js";
|
|
10
10
|
import { S as TreeViewBranch, _ as TreeViewBranchText, a as useTreeView, b as TreeViewBranchControl, f as TreeViewItemText, i as TreeViewRoot, m as TreeViewItem, n as TreeViewTree, o as TreeViewNodeProvider, r as TreeViewRootProvider, v as TreeViewBranchIndicator, w as useTreeViewContext, x as TreeViewBranchContent, y as TreeViewBranchIndentGuide } from "../../tree-view-DqjhHVfK.js";
|
|
11
11
|
import { For, Index, Show, createMemo, splitProps, untrack } from "solid-js";
|
|
12
12
|
import { Dynamic, createComponent, effect, insert, memo, mergeProps as mergeProps$1, setAttribute, template } from "solid-js/web";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
|
|
2
2
|
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-C0L5xDeS.js";
|
|
3
3
|
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
|
|
4
|
-
import { t as listboxAnatomy } from "../../listbox-anatomy-
|
|
4
|
+
import { t as listboxAnatomy } from "../../listbox-anatomy-BM3Tatnj.js";
|
|
5
5
|
import { _ as CollectionItem, b as createListCollection, y as ListCollection } from "../../index-BbGXwXgM.js";
|
|
6
6
|
import * as solid_js0 from "solid-js";
|
|
7
7
|
import { Accessor, JSX } from "solid-js";
|
|
@@ -6,7 +6,7 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
|
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import { t as listboxAnatomy } from "../../listbox-anatomy-BTXGGkHn.js";
|
|
8
8
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
9
|
-
import { o as createListCollection } from "../../collection-
|
|
9
|
+
import { o as createListCollection } from "../../collection-D83ZAzYd.js";
|
|
10
10
|
import { Show, children, createMemo, createUniqueId } from "solid-js";
|
|
11
11
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
12
12
|
import * as listbox from "@sprawlify/primitives/machines/listbox";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as numberInputAnatomy } from "../../number-input-anatomy-BnIfIxWe.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as numberInput from "@sprawlify/primitives/machines/number-input";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as passwordInputAnatomy } from "../../password-input-anatomy-DnfxaJJb.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { Show, createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as passwordInput from "@sprawlify/primitives/machines/password-input";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as pinInputAnatomy } from "../../pin-input-anatomy-BIMEBnI2.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as pinInput from "@sprawlify/primitives/machines/pin-input";
|
|
@@ -8,7 +8,7 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
8
8
|
import { t as radioGroupAnatomy } from "../../radio-group-anatomy-MQ77y9Ly.js";
|
|
9
9
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
10
10
|
import "../../compose-refs-BKcaHXR8.js";
|
|
11
|
-
import { l as useFieldsetContext } from "../../fieldset-
|
|
11
|
+
import { l as useFieldsetContext } from "../../fieldset-DQUqxXN2.js";
|
|
12
12
|
import { createMemo, createUniqueId } from "solid-js";
|
|
13
13
|
import { createComponent } from "solid-js/web";
|
|
14
14
|
import * as radio from "@sprawlify/primitives/machines/radio-group";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as ratingGroupAnatomy } from "../../rating-group-anatomy-DFCmCaAm.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as ratingGroup from "@sprawlify/primitives/machines/rating-group";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
|
|
2
2
|
import { i as Optional, n as MaybeAccessor } from "../../types-C0L5xDeS.js";
|
|
3
3
|
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
|
|
4
|
-
import { t as segmentGroupAnatomy } from "../../segment-group-anatomy-
|
|
4
|
+
import { t as segmentGroupAnatomy } from "../../segment-group-anatomy-Bz4fq3aR.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as segmentGroup from "@sprawlify/primitives/machines/radio-group";
|
|
@@ -11,9 +11,9 @@ import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
|
11
11
|
import "../../render-strategy-BAqQL-Hs.js";
|
|
12
12
|
import { t as composeRefs } from "../../compose-refs-BKcaHXR8.js";
|
|
13
13
|
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-CuZG4SWb.js";
|
|
14
|
-
import
|
|
15
|
-
import "../../
|
|
16
|
-
import {
|
|
14
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
15
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
16
|
+
import { n as useListCollection, o as createListCollection } from "../../collection-D83ZAzYd.js";
|
|
17
17
|
import { Index, Show, createMemo, createUniqueId } from "solid-js";
|
|
18
18
|
import { createComponent, effect, insert, mergeProps as mergeProps$1, template } from "solid-js/web";
|
|
19
19
|
import * as select from "@sprawlify/primitives/machines/select";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as signaturePadAnatomy } from "../../signature-pad-anatomy--FrLBUvh.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { For, Show, createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1, spread, template } from "solid-js/web";
|
|
16
16
|
import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as switchAnatomy } from "../../switch-anatomy-D5Q54mGY.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
|
|
@@ -9,8 +9,8 @@ import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
|
9
9
|
import { t as tagsInputAnatomy } from "../../tags-input-anatomy-BhGRRfIw.js";
|
|
10
10
|
import { t as createSplitProps } from "../../create-split-props-OE-yOtGc.js";
|
|
11
11
|
import "../../compose-refs-BKcaHXR8.js";
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
12
|
+
import "../../fieldset-DQUqxXN2.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-GL4C0tUr.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as tagsInput from "@sprawlify/primitives/machines/tags-input";
|
|
@@ -2,7 +2,7 @@ import { n as PropTypes } from "../../index-Bnd2Fp7Q.js";
|
|
|
2
2
|
import { i as Optional, n as MaybeAccessor } from "../../types-C0L5xDeS.js";
|
|
3
3
|
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BxBlXUD3.js";
|
|
4
4
|
import { s as UsePresenceProps } from "../../index-Dho3m7QX.js";
|
|
5
|
-
import { t as tourAnatomy } from "../../tour-anatomy-
|
|
5
|
+
import { t as tourAnatomy } from "../../tour-anatomy-Dww_8e1C.js";
|
|
6
6
|
import * as solid_js0 from "solid-js";
|
|
7
7
|
import { Accessor, JSX } from "solid-js";
|
|
8
8
|
import { WaitForOptions as WaitOptions } from "@sprawlify/primitives/dom-query";
|
|
@@ -6,6 +6,6 @@ import { t as treeViewAnatomy } from "../../tree-view-anatomy-BK8OR6TX.js";
|
|
|
6
6
|
import "../../create-split-props-OE-yOtGc.js";
|
|
7
7
|
import "../../render-strategy-BAqQL-Hs.js";
|
|
8
8
|
import "../../collapsible-CqDl0d8N.js";
|
|
9
|
-
import { a as createTreeCollection, i as createFileTreeCollection } from "../../collection-
|
|
9
|
+
import { a as createTreeCollection, i as createFileTreeCollection } from "../../collection-D83ZAzYd.js";
|
|
10
10
|
import { C as useTreeViewNodeContext, S as TreeViewBranch, _ as TreeViewBranchText, a as useTreeView, b as TreeViewBranchControl, c as TreeViewNodeRenameInput, d as TreeViewLabel, f as TreeViewItemText, g as TreeViewBranchTrigger, h as TreeViewContext, i as TreeViewRoot, l as TreeViewNodeCheckboxIndicator, m as TreeViewItem, n as TreeViewTree, o as TreeViewNodeProvider, p as TreeViewItemIndicator, r as TreeViewRootProvider, s as TreeViewNodeContext, t as tree_view_exports, u as TreeViewNodeCheckbox, v as TreeViewBranchIndicator, w as useTreeViewContext, x as TreeViewBranchContent, y as TreeViewBranchIndentGuide } from "../../tree-view-DqjhHVfK.js";
|
|
11
11
|
export { tree_view_exports as TreeView, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndentGuide, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewContext, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewNodeCheckbox, TreeViewNodeCheckboxIndicator, TreeViewNodeContext, TreeViewNodeProvider, TreeViewNodeRenameInput, TreeViewRoot, TreeViewRootProvider, TreeViewTree, createFileTreeCollection, createTreeCollection, treeViewAnatomy, useTreeView, useTreeViewContext, useTreeViewNodeContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/date-picker/date-picker-anatomy.d.ts
|
|
4
|
-
declare const datePickerAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"
|
|
4
|
+
declare const datePickerAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"root" | "label" | "input" | "table" | "content" | "valueText" | "trigger" | "positioner" | "control" | "nextTrigger" | "prevTrigger" | "view" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { datePickerAnatomy as t };
|
|
@@ -6,7 +6,7 @@ import { t as sprawlify } from "./factory-DORgzART.js";
|
|
|
6
6
|
import { n as parts } from "./field-anatomy-BloFzq7T.js";
|
|
7
7
|
import { t as createSplitProps } from "./create-split-props-OE-yOtGc.js";
|
|
8
8
|
import { t as composeRefs } from "./compose-refs-BKcaHXR8.js";
|
|
9
|
-
import { l as useFieldsetContext } from "./fieldset-
|
|
9
|
+
import { l as useFieldsetContext } from "./fieldset-DQUqxXN2.js";
|
|
10
10
|
import { Show, createMemo, createSignal, createUniqueId, mergeProps, onCleanup, onMount, splitProps } from "solid-js";
|
|
11
11
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
12
12
|
import { ariaAttr, dataAttr } from "@sprawlify/primitives/dom-query";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/field/field-anatomy.d.ts
|
|
4
|
-
declare const fieldAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"root" | "label" | "
|
|
4
|
+
declare const fieldAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"root" | "label" | "input" | "textarea" | "select" | "errorText" | "helperText" | "requiredIndicator">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { fieldAnatomy as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/fieldset/fieldset-anatomy.d.ts
|
|
4
|
-
declare const fieldsetAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"root" | "
|
|
4
|
+
declare const fieldsetAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"root" | "legend" | "errorText" | "helperText">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { fieldsetAnatomy as t };
|
|
@@ -29,7 +29,7 @@ interface PresenceProps extends HTMLProps<"div">, PresenceBaseProps {}
|
|
|
29
29
|
declare const Presence: (props: PresenceProps) => solid_js0.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/components/presence/split-presence-props.d.ts
|
|
32
|
-
declare const splitPresenceProps: <T extends UsePresenceProps>(props: T) => [Pick<T, Extract<("
|
|
32
|
+
declare const splitPresenceProps: <T extends UsePresenceProps>(props: T) => [Pick<T, Extract<("onExitComplete" | "lazyMount" | "unmountOnExit" | "present" | "immediate" | "skipAnimationOnMount")[], readonly (keyof T)[]>[number]>, { [P in keyof T as Exclude<P, "onExitComplete" | "lazyMount" | "unmountOnExit" | "present" | "immediate" | "skipAnimationOnMount">]: T[P] }];
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/components/presence/use-presence-context.d.ts
|
|
35
35
|
interface UsePresenceContext extends UsePresenceReturn {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/listbox/listbox-anatomy.d.ts
|
|
4
|
-
declare const listboxAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"
|
|
4
|
+
declare const listboxAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"root" | "label" | "input" | "content" | "valueText" | "itemGroup" | "item" | "itemText" | "itemIndicator" | "itemGroupLabel" | "empty">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { listboxAnatomy as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/segment-group/segment-group-anatomy.d.ts
|
|
4
|
-
declare const segmentGroupAnatomy: _sprawlify_primitives_anatomy0.Anatomy<"root" | "indicator" | "
|
|
4
|
+
declare const segmentGroupAnatomy: _sprawlify_primitives_anatomy0.Anatomy<"root" | "indicator" | "label" | "item" | "itemText" | "itemControl">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { segmentGroupAnatomy as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/tour/tour-anatomy.d.ts
|
|
4
|
-
declare const tourAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"
|
|
4
|
+
declare const tourAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"title" | "content" | "positioner" | "closeTrigger" | "description" | "backdrop" | "control" | "progressText" | "actionTrigger" | "arrow" | "arrowTip" | "spotlight">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { tourAnatomy as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprawlify/solid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
4
4
|
"description": "Solid wrapper for primitives.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "sprawlify <npm@sprawlify.com>",
|
|
@@ -47,11 +47,6 @@
|
|
|
47
47
|
"solid": "./dist/components/avatar/index.jsx",
|
|
48
48
|
"default": "./dist/components/avatar/index.js"
|
|
49
49
|
},
|
|
50
|
-
"./bottom-sheet": {
|
|
51
|
-
"types": "./dist/components/bottom-sheet/index.d.ts",
|
|
52
|
-
"solid": "./dist/components/bottom-sheet/index.jsx",
|
|
53
|
-
"default": "./dist/components/bottom-sheet/index.js"
|
|
54
|
-
},
|
|
55
50
|
"./carousel": {
|
|
56
51
|
"types": "./dist/components/carousel/index.d.ts",
|
|
57
52
|
"solid": "./dist/components/carousel/index.jsx",
|
|
@@ -107,6 +102,11 @@
|
|
|
107
102
|
"solid": "./dist/components/download-trigger/index.jsx",
|
|
108
103
|
"default": "./dist/components/download-trigger/index.js"
|
|
109
104
|
},
|
|
105
|
+
"./drawer": {
|
|
106
|
+
"types": "./dist/components/drawer/index.d.ts",
|
|
107
|
+
"solid": "./dist/components/drawer/index.jsx",
|
|
108
|
+
"default": "./dist/components/drawer/index.js"
|
|
109
|
+
},
|
|
110
110
|
"./dropdown-menu": {
|
|
111
111
|
"types": "./dist/components/dropdown-menu/index.d.ts",
|
|
112
112
|
"solid": "./dist/components/dropdown-menu/index.jsx",
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
},
|
|
334
334
|
"dependencies": {
|
|
335
335
|
"@solid-primitives/keyed": "^1.5.3",
|
|
336
|
-
"@sprawlify/primitives": "0.0.
|
|
336
|
+
"@sprawlify/primitives": "0.0.110"
|
|
337
337
|
},
|
|
338
338
|
"peerDependencies": {
|
|
339
339
|
"solid-js": ">=1.9.10"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
|
-
|
|
3
|
-
//#region src/components/color-picker/color-picker-anatomy.d.ts
|
|
4
|
-
declare const colorPickerAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"trigger" | "content" | "positioner" | "root" | "control" | "label" | "valueText" | "area" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect" | "view">;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { colorPickerAnatomy as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
2
|
-
|
|
3
|
-
//#region src/components/combobox/combobox-anatomy.d.ts
|
|
4
|
-
declare const comboboxAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"trigger" | "content" | "positioner" | "root" | "control" | "item" | "itemGroup" | "label" | "input" | "itemIndicator" | "itemText" | "clearTrigger" | "list" | "itemGroupLabel" | "empty">;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { comboboxAnatomy as t };
|