@sprawlify/solid 0.0.15 → 0.0.17
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/{collapsible-Cg7zPadX.js → collapsible-Dp3pmOz6.js} +8 -6
- package/dist/{collapsible-CjuC6xYl.jsx → collapsible-oWvTRylz.jsx} +8 -6
- package/dist/{collection-BiyRTWsX.js → collection-DOjgejiS.js} +2 -1
- package/dist/{collection-BlnS2UQy.jsx → collection-gIC58P6c.jsx} +2 -1
- package/dist/components/accordion/index.d.ts +11 -11
- package/dist/components/accordion/index.js +9 -7
- package/dist/components/accordion/index.jsx +9 -7
- package/dist/components/angle-slider/index.d.ts +13 -13
- package/dist/components/angle-slider/index.js +7 -5
- package/dist/components/angle-slider/index.jsx +7 -5
- package/dist/components/avatar/index.d.ts +8 -8
- package/dist/components/avatar/index.js +7 -5
- package/dist/components/avatar/index.jsx +7 -5
- package/dist/components/bottom-sheet/index.d.ts +13 -13
- package/dist/components/bottom-sheet/index.js +10 -8
- package/dist/components/bottom-sheet/index.jsx +10 -8
- package/dist/components/carousel/index.d.ts +17 -17
- package/dist/components/carousel/index.js +7 -5
- package/dist/components/carousel/index.jsx +7 -5
- package/dist/components/checkbox/index.d.ts +12 -12
- package/dist/components/checkbox/index.js +10 -8
- package/dist/components/checkbox/index.jsx +10 -8
- package/dist/components/clipboard/index.d.ts +11 -11
- package/dist/components/clipboard/index.js +7 -5
- package/dist/components/clipboard/index.jsx +7 -5
- package/dist/components/collapsible/index.d.ts +10 -10
- package/dist/components/collapsible/index.js +7 -6
- package/dist/components/collapsible/index.jsx +7 -6
- package/dist/components/collection/index.d.ts +2 -2
- package/dist/components/collection/index.js +2 -2
- package/dist/components/collection/index.jsx +2 -2
- package/dist/components/color-picker/index.d.ts +183 -0
- package/dist/components/color-picker/index.js +500 -0
- package/dist/components/color-picker/index.jsx +436 -0
- package/dist/components/combobox/index.d.ts +134 -0
- package/dist/components/combobox/index.js +357 -0
- package/dist/components/combobox/index.jsx +315 -0
- package/dist/components/date-picker/index.d.ts +165 -0
- package/dist/components/date-picker/index.js +476 -0
- package/dist/components/date-picker/index.jsx +415 -0
- package/dist/components/dialog/index.d.ts +80 -0
- package/dist/components/dialog/index.js +219 -0
- package/dist/components/dialog/index.jsx +173 -0
- package/dist/components/download-trigger/index.d.ts +25 -0
- package/dist/components/download-trigger/index.js +42 -0
- package/dist/components/download-trigger/index.jsx +38 -0
- package/dist/components/editable/index.d.ts +79 -0
- package/dist/components/editable/index.js +190 -0
- package/dist/components/editable/index.jsx +181 -0
- package/dist/components/field/index.d.ts +13 -13
- package/dist/components/field/index.js +8 -7
- package/dist/components/field/index.jsx +8 -7
- package/dist/components/fieldset/index.d.ts +12 -12
- package/dist/components/fieldset/index.js +7 -6
- package/dist/components/fieldset/index.jsx +7 -6
- package/dist/components/file-upload/index.d.ts +102 -0
- package/dist/components/file-upload/index.js +284 -0
- package/dist/components/file-upload/index.jsx +255 -0
- package/dist/components/floating-panel/index.d.ts +100 -0
- package/dist/components/floating-panel/index.js +246 -0
- package/dist/components/floating-panel/index.jsx +217 -0
- package/dist/components/focus-trap/index.d.ts +17 -0
- package/dist/components/focus-trap/index.js +34 -0
- package/dist/components/focus-trap/index.jsx +30 -0
- package/dist/components/format/index.d.ts +27 -0
- package/dist/components/format/index.js +46 -0
- package/dist/components/format/index.jsx +48 -0
- package/dist/components/frame/index.d.ts +13 -0
- package/dist/components/frame/index.js +121 -0
- package/dist/components/frame/index.jsx +86 -0
- package/dist/components/highlight/index.d.ts +15 -0
- package/dist/components/highlight/index.js +47 -0
- package/dist/components/highlight/index.jsx +31 -0
- package/dist/components/presence/index.d.ts +4 -4
- package/dist/components/presence/index.js +7 -6
- package/dist/components/presence/index.jsx +7 -6
- package/dist/components/select/index.d.ts +22 -22
- package/dist/components/select/index.js +13 -11
- package/dist/components/select/index.jsx +13 -11
- package/dist/{run-if-fn-eYlaegHy.js → core-CWSDVCoi.jsx} +1 -6
- package/dist/{run-if-fn-DRWB51JE.jsx → core-Cl2xcDm5.js} +1 -6
- package/dist/create-split-props-CHlLW_X_.js +7 -0
- package/dist/create-split-props-DrfYep1t.jsx +7 -0
- package/dist/{factory-B6RK6SH4.d.ts → factory-C7CCEqYp.d.ts} +1 -1
- package/dist/{factory-CEdj72aS.js → factory-Ci1LUSWg.js} +2 -6
- package/dist/{create-split-props-CQVsvhvg.jsx → factory-OCDy1fEv.jsx} +2 -6
- package/dist/{field-C_WuoXOj.js → field-D5bG5XXV.js} +8 -7
- package/dist/{field-CphvciGc.jsx → field-DQLYAOgJ.jsx} +8 -7
- package/dist/{fieldset-BG-0ZqWT.jsx → fieldset-DT2nCjE0.jsx} +8 -6
- package/dist/{fieldset-D1BO0LmU.js → fieldset-Def05D5r.js} +8 -6
- package/dist/{index-DXheKbqg.d.ts → index-4WaIBGi6.d.ts} +1 -1
- package/dist/{index-vSwYtc2L.d.ts → index-Bf3vaCUa.d.ts} +8 -8
- package/dist/{index-NWiNyxpL.d.ts → index-CsB3A61w.d.ts} +8 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/index.jsx +4 -4
- package/dist/{presence-Bfjusgm3.js → presence-CAkwk5S4.js} +7 -5
- package/dist/{presence-arWh1hVd.jsx → presence-vlL8hWT8.jsx} +7 -5
- package/dist/{providers-CHqGPEsc.jsx → providers-BRmk_hzA.jsx} +2 -2
- package/dist/{providers-CQkAUunr.js → providers-D1hKjv0s.js} +2 -2
- package/dist/{render-strategy-CZDG_yDi.jsx → render-strategy-BA_kLuwR.jsx} +2 -2
- package/dist/{render-strategy-COrlrUuR.js → render-strategy-CqWA1-xU.js} +2 -2
- package/dist/run-if-fn-Ct4sSuFV.js +6 -0
- package/dist/run-if-fn-iVu0r8rO.jsx +6 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.jsx +2 -2
- package/package.json +72 -2
- /package/dist/{chunk-C4aQI7lE.jsx → chunk-Wl6TQfsu.js} +0 -0
- /package/dist/{chunk-CKcAJnC7.js → chunk-dNcSV51B.jsx} +0 -0
- /package/dist/{compose-refs-CzyOb8yH.jsx → compose-refs-CDTdkuP1.jsx} +0 -0
- /package/dist/{compose-refs-vsrTrt13.js → compose-refs-DbJoODKO.js} +0 -0
- /package/dist/{create-context-PS2j4mEo.js → create-context-BBDU3kF1.js} +0 -0
- /package/dist/{create-context-h3cXiEld.jsx → create-context-CpcL7CiV.jsx} +0 -0
- /package/dist/{index-B0YoIRC4.d.ts → index-5DzQGTeT.d.ts} +0 -0
- /package/dist/{index-C3ATynHc.d.ts → index-BLKwiHM7.d.ts} +0 -0
- /package/dist/{render-strategy-CtRkdWei.d.ts → render-strategy-DfQ78EfE.d.ts} +0 -0
- /package/dist/{types-bQRbEioA.d.ts → types-M3kll1K0.d.ts} +0 -0
- /package/dist/{utils-DYer-9SY.js → utils-DK-8VxTv.jsx} +0 -0
- /package/dist/{utils-DrvO4Hk3.jsx → utils-xOi5tXWN.js} +0 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { t as __export } from "../../chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "../../
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import "../../
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
1
|
+
import { t as __export } from "../../chunk-dNcSV51B.jsx";
|
|
2
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "../../core-CWSDVCoi.jsx";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-iVu0r8rO.jsx";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-CpcL7CiV.jsx";
|
|
5
|
+
import { i as useLocaleContext, o as useEnvironmentContext } from "../../providers-BRmk_hzA.jsx";
|
|
6
|
+
import { t as createSplitProps } from "../../create-split-props-DrfYep1t.jsx";
|
|
7
|
+
import "../../render-strategy-BA_kLuwR.jsx";
|
|
8
|
+
import { t as sprawlify } from "../../factory-OCDy1fEv.jsx";
|
|
9
|
+
import { t as composeRefs } from "../../compose-refs-CDTdkuP1.jsx";
|
|
10
|
+
import { a as splitPresenceProps, i as usePresence, n as usePresenceContext, t as PresenceProvider } from "../../presence-vlL8hWT8.jsx";
|
|
11
|
+
import "../../fieldset-DT2nCjE0.jsx";
|
|
12
|
+
import { m as useFieldContext } from "../../field-DQLYAOgJ.jsx";
|
|
13
|
+
import { n as useListCollection, o as createListCollection } from "../../collection-gIC58P6c.jsx";
|
|
12
14
|
import { Index, Show, createMemo, createUniqueId } from "solid-js";
|
|
13
15
|
import * as select from "@sprawlify/primitives/machines/select";
|
|
14
16
|
import { anatomy as selectAnatomy } from "@sprawlify/primitives/machines/select";
|
|
@@ -413,9 +413,4 @@ function hyphenateStyleName(name) {
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
//#endregion
|
|
416
|
-
|
|
417
|
-
const isFunction$1 = (value) => typeof value === "function";
|
|
418
|
-
const runIfFn = (valueOrFn, ...args) => isFunction$1(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
|
419
|
-
|
|
420
|
-
//#endregion
|
|
421
|
-
export { useMachine as a, mergeProps$2 as i, Key as n, normalizeProps as r, runIfFn as t };
|
|
416
|
+
export { useMachine as i, normalizeProps as n, mergeProps$2 as r, Key as t };
|
|
@@ -413,9 +413,4 @@ function hyphenateStyleName(name) {
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
//#endregion
|
|
416
|
-
|
|
417
|
-
const isFunction$1 = (value) => typeof value === "function";
|
|
418
|
-
const runIfFn = (valueOrFn, ...args) => isFunction$1(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
|
419
|
-
|
|
420
|
-
//#endregion
|
|
421
|
-
export { useMachine as a, mergeProps$2 as i, Key as n, normalizeProps as r, runIfFn as t };
|
|
416
|
+
export { useMachine as i, normalizeProps as n, mergeProps$2 as r, Key as t };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as mergeProps$2 } from "./core-Cl2xcDm5.js";
|
|
2
2
|
import { Show, splitProps } from "solid-js";
|
|
3
3
|
import { Dynamic, createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
4
4
|
|
|
5
|
-
//#region src/utils/create-split-props.ts
|
|
6
|
-
const createSplitProps = () => (props, keys) => splitProps(props, keys);
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
5
|
//#region src/components/factory.tsx
|
|
10
6
|
const withAsProp = (Component) => {
|
|
11
7
|
const SprawlifyComponent = (props) => {
|
|
@@ -44,4 +40,4 @@ function jsxFactory() {
|
|
|
44
40
|
const sprawlify = jsxFactory();
|
|
45
41
|
|
|
46
42
|
//#endregion
|
|
47
|
-
export {
|
|
43
|
+
export { sprawlify as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as mergeProps$1 } from "./core-CWSDVCoi.jsx";
|
|
2
2
|
import { Show, splitProps } from "solid-js";
|
|
3
3
|
import { Dynamic } from "solid-js/web";
|
|
4
4
|
|
|
@@ -34,8 +34,4 @@ function jsxFactory() {
|
|
|
34
34
|
const sprawlify = jsxFactory();
|
|
35
35
|
|
|
36
36
|
//#endregion
|
|
37
|
-
|
|
38
|
-
const createSplitProps = () => (props, keys) => splitProps(props, keys);
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
export { sprawlify as n, createSplitProps as t };
|
|
37
|
+
export { sprawlify as t };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { t as createContext$1 } from "./create-context-
|
|
4
|
-
import { o as useEnvironmentContext } from "./providers-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
1
|
+
import { t as __export } from "./chunk-Wl6TQfsu.js";
|
|
2
|
+
import { r as mergeProps$2 } from "./core-Cl2xcDm5.js";
|
|
3
|
+
import { t as createContext$1 } from "./create-context-BBDU3kF1.js";
|
|
4
|
+
import { o as useEnvironmentContext } from "./providers-D1hKjv0s.js";
|
|
5
|
+
import { t as createSplitProps } from "./create-split-props-CHlLW_X_.js";
|
|
6
|
+
import { t as sprawlify } from "./factory-Ci1LUSWg.js";
|
|
7
|
+
import { t as composeRefs } from "./compose-refs-DbJoODKO.js";
|
|
8
|
+
import { u as useFieldsetContext } from "./fieldset-Def05D5r.js";
|
|
8
9
|
import { Show, createMemo, createSignal, createUniqueId, mergeProps, onCleanup, onMount, splitProps } from "solid-js";
|
|
9
10
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
10
11
|
import { ariaAttr, dataAttr } from "@sprawlify/primitives/dom-query";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { t as createContext$1 } from "./create-context-
|
|
4
|
-
import { o as useEnvironmentContext } from "./providers-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
1
|
+
import { t as __export } from "./chunk-dNcSV51B.jsx";
|
|
2
|
+
import { r as mergeProps$1 } from "./core-CWSDVCoi.jsx";
|
|
3
|
+
import { t as createContext$1 } from "./create-context-CpcL7CiV.jsx";
|
|
4
|
+
import { o as useEnvironmentContext } from "./providers-BRmk_hzA.jsx";
|
|
5
|
+
import { t as createSplitProps } from "./create-split-props-DrfYep1t.jsx";
|
|
6
|
+
import { t as sprawlify } from "./factory-OCDy1fEv.jsx";
|
|
7
|
+
import { t as composeRefs } from "./compose-refs-CDTdkuP1.jsx";
|
|
8
|
+
import { u as useFieldsetContext } from "./fieldset-DT2nCjE0.jsx";
|
|
8
9
|
import { Show, createMemo, createSignal, createUniqueId, mergeProps, onCleanup, onMount, splitProps } from "solid-js";
|
|
9
10
|
import { ariaAttr, dataAttr } from "@sprawlify/primitives/dom-query";
|
|
10
11
|
import { createAnatomy } from "@sprawlify/primitives/anatomy";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
1
|
+
import { t as __export } from "./chunk-dNcSV51B.jsx";
|
|
2
|
+
import { r as mergeProps$1 } from "./core-CWSDVCoi.jsx";
|
|
3
|
+
import { t as runIfFn } from "./run-if-fn-iVu0r8rO.jsx";
|
|
4
|
+
import { t as createContext$1 } from "./create-context-CpcL7CiV.jsx";
|
|
5
|
+
import { o as useEnvironmentContext } from "./providers-BRmk_hzA.jsx";
|
|
6
|
+
import { t as createSplitProps } from "./create-split-props-DrfYep1t.jsx";
|
|
7
|
+
import { t as sprawlify } from "./factory-OCDy1fEv.jsx";
|
|
8
|
+
import { t as composeRefs } from "./compose-refs-CDTdkuP1.jsx";
|
|
7
9
|
import { Show, createMemo, createSignal, createUniqueId, mergeProps, onCleanup, onMount } from "solid-js";
|
|
8
10
|
import { dataAttr } from "@sprawlify/primitives/dom-query";
|
|
9
11
|
import { createAnatomy } from "@sprawlify/primitives/anatomy";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
1
|
+
import { t as __export } from "./chunk-Wl6TQfsu.js";
|
|
2
|
+
import { r as mergeProps$2 } from "./core-Cl2xcDm5.js";
|
|
3
|
+
import { t as runIfFn } from "./run-if-fn-Ct4sSuFV.js";
|
|
4
|
+
import { t as createContext$1 } from "./create-context-BBDU3kF1.js";
|
|
5
|
+
import { o as useEnvironmentContext } from "./providers-D1hKjv0s.js";
|
|
6
|
+
import { t as createSplitProps } from "./create-split-props-CHlLW_X_.js";
|
|
7
|
+
import { t as sprawlify } from "./factory-Ci1LUSWg.js";
|
|
8
|
+
import { t as composeRefs } from "./compose-refs-DbJoODKO.js";
|
|
7
9
|
import { Show, createMemo, createSignal, createUniqueId, mergeProps, onCleanup, onMount } from "solid-js";
|
|
8
10
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
9
11
|
import { dataAttr } from "@sprawlify/primitives/dom-query";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MaybeAccessor } from "./types-
|
|
1
|
+
import { n as MaybeAccessor } from "./types-M3kll1K0.js";
|
|
2
2
|
import { Accessor } from "solid-js";
|
|
3
3
|
import { CollectionItem, CollectionItem as CollectionItem$1, CollectionOptions, FilePathTreeNode, FilePathTreeNode as FilePathTreeNode$1, FlatTreeNode, GridCollection as GridCollection$1, GridCollectionOptions, ListCollection as ListCollection$1, SelectionMode, TreeCollection, TreeCollection as TreeCollection$1, TreeCollectionOptions, TreeCollectionOptions as TreeCollectionOptions$1, TreeNode, TreeNode as TreeNode$1 } from "@sprawlify/primitives/collection";
|
|
4
4
|
import * as asyncList from "@sprawlify/primitives/machines/async-list";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as Optional, n as MaybeAccessor } from "./types-
|
|
2
|
-
import { n as PolymorphicProps, t as HTMLProps } from "./factory-
|
|
3
|
-
import { t as RenderStrategyProps } from "./render-strategy-
|
|
4
|
-
import * as
|
|
1
|
+
import { i as Optional, n as MaybeAccessor } from "./types-M3kll1K0.js";
|
|
2
|
+
import { n as PolymorphicProps, t as HTMLProps } from "./factory-C7CCEqYp.js";
|
|
3
|
+
import { t as RenderStrategyProps } from "./render-strategy-DfQ78EfE.js";
|
|
4
|
+
import * as solid_js86 from "solid-js";
|
|
5
5
|
import * as presence from "@sprawlify/primitives/machines/presence";
|
|
6
6
|
|
|
7
7
|
//#region src/components/presence/use-presence.d.ts
|
|
@@ -13,7 +13,7 @@ interface UsePresenceProps extends Optional<presence.Props, 'present'>, RenderSt
|
|
|
13
13
|
skipAnimationOnMount?: boolean;
|
|
14
14
|
}
|
|
15
15
|
interface UsePresenceReturn extends ReturnType<typeof usePresence> {}
|
|
16
|
-
declare const usePresence: (props: MaybeAccessor<UsePresenceProps>) =>
|
|
16
|
+
declare const usePresence: (props: MaybeAccessor<UsePresenceProps>) => solid_js86.Accessor<{
|
|
17
17
|
unmounted: boolean | undefined;
|
|
18
18
|
present: boolean;
|
|
19
19
|
ref: (node: Element | null) => void;
|
|
@@ -26,13 +26,13 @@ declare const usePresence: (props: MaybeAccessor<UsePresenceProps>) => solid_js1
|
|
|
26
26
|
//#region src/components/presence/presence.d.ts
|
|
27
27
|
interface PresenceBaseProps extends UsePresenceProps, PolymorphicProps<'div'> {}
|
|
28
28
|
interface PresenceProps extends HTMLProps<'div'>, PresenceBaseProps {}
|
|
29
|
-
declare const Presence: (props: PresenceProps) =>
|
|
29
|
+
declare const Presence: (props: PresenceProps) => solid_js86.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 {}
|
|
36
|
-
declare const PresenceProvider:
|
|
36
|
+
declare const PresenceProvider: solid_js86.ContextProviderComponent<UsePresenceContext>, usePresenceContext: () => UsePresenceContext;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Presence as a, UsePresenceReturn as c, splitPresenceProps as i, usePresence as l, UsePresenceContext as n, PresenceProps as o, usePresenceContext as r, UsePresenceProps as s, PresenceProvider as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as Optional, n as MaybeAccessor } from "./types-
|
|
2
|
-
import { n as PolymorphicProps, t as HTMLProps } from "./factory-
|
|
3
|
-
import { t as RenderStrategyProps } from "./render-strategy-
|
|
4
|
-
import * as
|
|
1
|
+
import { i as Optional, n as MaybeAccessor } from "./types-M3kll1K0.js";
|
|
2
|
+
import { n as PolymorphicProps, t as HTMLProps } from "./factory-C7CCEqYp.js";
|
|
3
|
+
import { t as RenderStrategyProps } from "./render-strategy-DfQ78EfE.js";
|
|
4
|
+
import * as solid_js0 from "solid-js";
|
|
5
5
|
import * as presence from "@sprawlify/primitives/machines/presence";
|
|
6
6
|
|
|
7
7
|
//#region src/components/presence/use-presence.d.ts
|
|
@@ -13,7 +13,7 @@ interface UsePresenceProps extends Optional<presence.Props, 'present'>, RenderSt
|
|
|
13
13
|
skipAnimationOnMount?: boolean;
|
|
14
14
|
}
|
|
15
15
|
interface UsePresenceReturn extends ReturnType<typeof usePresence> {}
|
|
16
|
-
declare const usePresence: (props: MaybeAccessor<UsePresenceProps>) =>
|
|
16
|
+
declare const usePresence: (props: MaybeAccessor<UsePresenceProps>) => solid_js0.Accessor<{
|
|
17
17
|
unmounted: boolean | undefined;
|
|
18
18
|
present: boolean;
|
|
19
19
|
ref: (node: Element | null) => void;
|
|
@@ -26,13 +26,13 @@ declare const usePresence: (props: MaybeAccessor<UsePresenceProps>) => solid_js5
|
|
|
26
26
|
//#region src/components/presence/presence.d.ts
|
|
27
27
|
interface PresenceBaseProps extends UsePresenceProps, PolymorphicProps<'div'> {}
|
|
28
28
|
interface PresenceProps extends HTMLProps<'div'>, PresenceBaseProps {}
|
|
29
|
-
declare const Presence: (props: PresenceProps) =>
|
|
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 {}
|
|
36
|
-
declare const PresenceProvider:
|
|
36
|
+
declare const PresenceProvider: solid_js0.ContextProviderComponent<UsePresenceContext>, usePresenceContext: () => UsePresenceContext;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Presence as a, UsePresenceReturn as c, splitPresenceProps as i, usePresence as l, UsePresenceContext as n, PresenceProps as o, usePresenceContext as r, UsePresenceProps as s, PresenceProvider as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as useMachine, i as mergeProps, n as PropTypes, r as normalizeProps, t as Key } from "./index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor, r as MaybePromise, t as Assign } from "./types-
|
|
3
|
-
import { t as createContext } from "./index-
|
|
4
|
-
import * as
|
|
1
|
+
import { a as useMachine, i as mergeProps, n as PropTypes, r as normalizeProps, t as Key } from "./index-BLKwiHM7.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor, r as MaybePromise, t as Assign } from "./types-M3kll1K0.js";
|
|
3
|
+
import { t as createContext } from "./index-5DzQGTeT.js";
|
|
4
|
+
import * as solid_js231 from "solid-js";
|
|
5
5
|
import { Accessor, JSX, ParentProps } from "solid-js";
|
|
6
6
|
import { FilterOptions, FilterReturn, Locale } from "@sprawlify/primitives/i18n-utils";
|
|
7
7
|
|
|
@@ -24,7 +24,7 @@ declare const EnvironmentProvider: (props: EnvironmentProviderProps) => JSX.Elem
|
|
|
24
24
|
interface LocaleProviderProps extends ParentProps {
|
|
25
25
|
locale: string;
|
|
26
26
|
}
|
|
27
|
-
declare const LocaleProvider: (props: LocaleProviderProps) =>
|
|
27
|
+
declare const LocaleProvider: (props: LocaleProviderProps) => solid_js231.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/providers/locale/use-collator.d.ts
|
|
30
30
|
interface UseCollatorProps extends Intl.CollatorOptions {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createContext } from "./create-context-
|
|
3
|
-
import { a as EnvironmentProvider, i as useLocaleContext, n as useCollator, o as useEnvironmentContext, r as LocaleProvider, t as useFilter } from "./providers-
|
|
4
|
-
import "./utils-
|
|
1
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps, t as Key } from "./core-Cl2xcDm5.js";
|
|
2
|
+
import { t as createContext } from "./create-context-BBDU3kF1.js";
|
|
3
|
+
import { a as EnvironmentProvider, i as useLocaleContext, n as useCollator, o as useEnvironmentContext, r as LocaleProvider, t as useFilter } from "./providers-D1hKjv0s.js";
|
|
4
|
+
import "./utils-xOi5tXWN.js";
|
|
5
5
|
|
|
6
6
|
export { EnvironmentProvider, Key, LocaleProvider, createContext, mergeProps, normalizeProps, useCollator, useEnvironmentContext, useFilter, useLocaleContext, useMachine };
|
package/dist/index.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createContext } from "./create-context-
|
|
3
|
-
import { a as EnvironmentProvider, i as useLocaleContext, n as useCollator, o as useEnvironmentContext, r as LocaleProvider, t as useFilter } from "./providers-
|
|
4
|
-
import "./utils-
|
|
1
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps, t as Key } from "./core-CWSDVCoi.jsx";
|
|
2
|
+
import { t as createContext } from "./create-context-CpcL7CiV.jsx";
|
|
3
|
+
import { a as EnvironmentProvider, i as useLocaleContext, n as useCollator, o as useEnvironmentContext, r as LocaleProvider, t as useFilter } from "./providers-BRmk_hzA.jsx";
|
|
4
|
+
import "./utils-DK-8VxTv.jsx";
|
|
5
5
|
|
|
6
6
|
export { EnvironmentProvider, Key, LocaleProvider, createContext, mergeProps, normalizeProps, useCollator, useEnvironmentContext, useFilter, useLocaleContext, useMachine };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$2 } from "./core-Cl2xcDm5.js";
|
|
2
|
+
import { t as runIfFn } from "./run-if-fn-Ct4sSuFV.js";
|
|
3
|
+
import { t as createContext$1 } from "./create-context-BBDU3kF1.js";
|
|
4
|
+
import { t as createSplitProps } from "./create-split-props-CHlLW_X_.js";
|
|
5
|
+
import { n as splitRenderStrategyProps } from "./render-strategy-CqWA1-xU.js";
|
|
6
|
+
import { t as sprawlify } from "./factory-Ci1LUSWg.js";
|
|
7
|
+
import { t as composeRefs } from "./compose-refs-DbJoODKO.js";
|
|
6
8
|
import { Show, createEffect, createMemo, createSignal } from "solid-js";
|
|
7
9
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
8
10
|
import * as presence from "@sprawlify/primitives/machines/presence";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { i as useMachine, n as normalizeProps, r as mergeProps$1 } from "./core-CWSDVCoi.jsx";
|
|
2
|
+
import { t as runIfFn } from "./run-if-fn-iVu0r8rO.jsx";
|
|
3
|
+
import { t as createContext$1 } from "./create-context-CpcL7CiV.jsx";
|
|
4
|
+
import { t as createSplitProps } from "./create-split-props-DrfYep1t.jsx";
|
|
5
|
+
import { n as splitRenderStrategyProps } from "./render-strategy-BA_kLuwR.jsx";
|
|
6
|
+
import { t as sprawlify } from "./factory-OCDy1fEv.jsx";
|
|
7
|
+
import { t as composeRefs } from "./compose-refs-CDTdkuP1.jsx";
|
|
6
8
|
import { Show, createEffect, createMemo, createSignal } from "solid-js";
|
|
7
9
|
import * as presence from "@sprawlify/primitives/machines/presence";
|
|
8
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as runIfFn } from "./run-if-fn-
|
|
2
|
-
import { t as createContext$1 } from "./create-context-
|
|
1
|
+
import { t as runIfFn } from "./run-if-fn-iVu0r8rO.jsx";
|
|
2
|
+
import { t as createContext$1 } from "./create-context-CpcL7CiV.jsx";
|
|
3
3
|
import { Show, createMemo, createSignal } from "solid-js";
|
|
4
4
|
import { getDocument, getWindow } from "@sprawlify/primitives/dom-query";
|
|
5
5
|
import { createCollator, createFilter, isRTL } from "@sprawlify/primitives/i18n-utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as runIfFn } from "./run-if-fn-
|
|
2
|
-
import { t as createContext$1 } from "./create-context-
|
|
1
|
+
import { t as runIfFn } from "./run-if-fn-Ct4sSuFV.js";
|
|
2
|
+
import { t as createContext$1 } from "./create-context-BBDU3kF1.js";
|
|
3
3
|
import { Show, createMemo, createSignal } from "solid-js";
|
|
4
4
|
import { createComponent, memo, template, use } from "solid-js/web";
|
|
5
5
|
import { getDocument, getWindow } from "@sprawlify/primitives/dom-query";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createContext } from "./create-context-
|
|
2
|
-
import { t as createSplitProps } from "./create-split-props-
|
|
1
|
+
import { t as createContext } from "./create-context-CpcL7CiV.jsx";
|
|
2
|
+
import { t as createSplitProps } from "./create-split-props-DrfYep1t.jsx";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/render-strategy.ts
|
|
5
5
|
const [RenderStrategyProvider, useRenderStrategyContext] = createContext({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createContext } from "./create-context-
|
|
2
|
-
import {
|
|
1
|
+
import { t as createContext } from "./create-context-BBDU3kF1.js";
|
|
2
|
+
import { t as createSplitProps } from "./create-split-props-CHlLW_X_.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/render-strategy.ts
|
|
5
5
|
const [RenderStrategyProvider, useRenderStrategyContext] = createContext({
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createContext } from "../index-
|
|
1
|
+
import { t as createContext } from "../index-5DzQGTeT.js";
|
|
2
2
|
export { createContext };
|
package/dist/utils/index.js
CHANGED
package/dist/utils/index.jsx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprawlify/solid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Solid wrapper for primitives.",
|
|
6
6
|
"author": "sprawlify <npm@sprawlify.com>",
|
|
@@ -58,6 +58,41 @@
|
|
|
58
58
|
"solid": "./dist/components/collapsible/index.jsx",
|
|
59
59
|
"default": "./dist/components/collapsible/index.js"
|
|
60
60
|
},
|
|
61
|
+
"./collection": {
|
|
62
|
+
"types": "./dist/components/collection/index.d.ts",
|
|
63
|
+
"solid": "./dist/components/collection/index.jsx",
|
|
64
|
+
"default": "./dist/components/collection/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./color-picker": {
|
|
67
|
+
"types": "./dist/components/color-picker/index.d.ts",
|
|
68
|
+
"solid": "./dist/components/color-picker/index.jsx",
|
|
69
|
+
"default": "./dist/components/color-picker/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./combobox": {
|
|
72
|
+
"types": "./dist/components/combobox/index.d.ts",
|
|
73
|
+
"solid": "./dist/components/combobox/index.jsx",
|
|
74
|
+
"default": "./dist/components/combobox/index.js"
|
|
75
|
+
},
|
|
76
|
+
"./date-picker": {
|
|
77
|
+
"types": "./dist/components/date-picker/index.d.ts",
|
|
78
|
+
"solid": "./dist/components/date-picker/index.jsx",
|
|
79
|
+
"default": "./dist/components/date-picker/index.js"
|
|
80
|
+
},
|
|
81
|
+
"./dialog": {
|
|
82
|
+
"types": "./dist/components/dialog/index.d.ts",
|
|
83
|
+
"solid": "./dist/components/dialog/index.jsx",
|
|
84
|
+
"default": "./dist/components/dialog/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./download-trigger": {
|
|
87
|
+
"types": "./dist/components/download-trigger/index.d.ts",
|
|
88
|
+
"solid": "./dist/components/download-trigger/index.jsx",
|
|
89
|
+
"default": "./dist/components/download-trigger/index.js"
|
|
90
|
+
},
|
|
91
|
+
"./editable": {
|
|
92
|
+
"types": "./dist/components/editable/index.d.ts",
|
|
93
|
+
"solid": "./dist/components/editable/index.jsx",
|
|
94
|
+
"default": "./dist/components/editable/index.js"
|
|
95
|
+
},
|
|
61
96
|
"./field": {
|
|
62
97
|
"types": "./dist/components/field/index.d.ts",
|
|
63
98
|
"solid": "./dist/components/field/index.jsx",
|
|
@@ -68,10 +103,45 @@
|
|
|
68
103
|
"solid": "./dist/components/fieldset/index.jsx",
|
|
69
104
|
"default": "./dist/components/fieldset/index.js"
|
|
70
105
|
},
|
|
106
|
+
"./file-upload": {
|
|
107
|
+
"types": "./dist/components/file-upload/index.d.ts",
|
|
108
|
+
"solid": "./dist/components/file-upload/index.jsx",
|
|
109
|
+
"default": "./dist/components/file-upload/index.js"
|
|
110
|
+
},
|
|
111
|
+
"./floating-panel": {
|
|
112
|
+
"types": "./dist/components/floating-panel/index.d.ts",
|
|
113
|
+
"solid": "./dist/components/floating-panel/index.jsx",
|
|
114
|
+
"default": "./dist/components/floating-panel/index.js"
|
|
115
|
+
},
|
|
116
|
+
"./focus-trap": {
|
|
117
|
+
"types": "./dist/components/focus-trap/index.d.ts",
|
|
118
|
+
"solid": "./dist/components/focus-trap/index.jsx",
|
|
119
|
+
"default": "./dist/components/focus-trap/index.js"
|
|
120
|
+
},
|
|
121
|
+
"./format": {
|
|
122
|
+
"types": "./dist/components/format/index.d.ts",
|
|
123
|
+
"solid": "./dist/components/format/index.jsx",
|
|
124
|
+
"default": "./dist/components/format/index.js"
|
|
125
|
+
},
|
|
126
|
+
"./frame": {
|
|
127
|
+
"types": "./dist/components/frame/index.d.ts",
|
|
128
|
+
"solid": "./dist/components/frame/index.jsx",
|
|
129
|
+
"default": "./dist/components/frame/index.js"
|
|
130
|
+
},
|
|
131
|
+
"./highlight": {
|
|
132
|
+
"types": "./dist/components/highlight/index.d.ts",
|
|
133
|
+
"solid": "./dist/components/highlight/index.jsx",
|
|
134
|
+
"default": "./dist/components/highlight/index.js"
|
|
135
|
+
},
|
|
71
136
|
"./presence": {
|
|
72
137
|
"types": "./dist/components/presence/index.d.ts",
|
|
73
138
|
"solid": "./dist/components/presence/index.jsx",
|
|
74
139
|
"default": "./dist/components/presence/index.js"
|
|
140
|
+
},
|
|
141
|
+
"./select": {
|
|
142
|
+
"types": "./dist/components/select/index.d.ts",
|
|
143
|
+
"solid": "./dist/components/select/index.jsx",
|
|
144
|
+
"default": "./dist/components/select/index.js"
|
|
75
145
|
}
|
|
76
146
|
},
|
|
77
147
|
"files": [
|
|
@@ -82,7 +152,7 @@
|
|
|
82
152
|
},
|
|
83
153
|
"dependencies": {
|
|
84
154
|
"@solid-primitives/keyed": "^1.5.2",
|
|
85
|
-
"@sprawlify/primitives": "0.0.
|
|
155
|
+
"@sprawlify/primitives": "0.0.17"
|
|
86
156
|
},
|
|
87
157
|
"peerDependencies": {
|
|
88
158
|
"solid-js": ">=1.1.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|