@sprawlify/react 0.0.3 → 0.0.5
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-C5ZpjCRe.mjs +140 -0
- package/dist/collapsible-D_cXuaRy.cjs +193 -0
- package/dist/components/accordion/index.cjs +227 -0
- package/dist/components/accordion/index.d.cts +67 -0
- package/dist/components/accordion/index.d.mts +67 -0
- package/dist/components/accordion/index.mjs +205 -0
- package/dist/components/angle-slider/index.cjs +203 -0
- package/dist/components/angle-slider/index.d.cts +72 -0
- package/dist/components/angle-slider/index.d.mts +72 -0
- package/dist/components/angle-slider/index.mjs +180 -0
- package/dist/components/collapsible/index.cjs +11 -154
- package/dist/components/collapsible/index.d.cts +9 -16
- package/dist/components/collapsible/index.d.mts +8 -13
- package/dist/components/collapsible/index.mjs +3 -147
- package/dist/create-split-props-CSaOnJRj.cjs +17 -0
- package/dist/create-split-props-DvwGh64U.mjs +11 -0
- package/dist/{types-CwELsIN6.d.mts → factory-CNfD9NVO.d.mts} +13 -13
- package/dist/{types-B_h5HVp2.d.cts → factory-D5qarvEF.d.cts} +13 -13
- package/dist/{factory-B_Ye-J6y.mjs → factory-DbgGeb_e.mjs} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/render-strategy-D37ixdTi.d.mts +9 -0
- package/dist/render-strategy-G1aEn-1X.d.cts +7 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +22 -2
- /package/dist/{chunk-CbegLjfk.mjs → chunk-DJTHdtxa.mjs} +0 -0
- /package/dist/{create-context-fSIoyq0R.mjs → create-context-DLMHiig4.mjs} +0 -0
- /package/dist/{index-CgR7RZbW.d.mts → index--Dciu8yd.d.mts} +0 -0
- /package/dist/{index-BbLlW5Mk.d.cts → index-wpUGMM30.d.cts} +0 -0
- /package/dist/{utils-CM4cOr5z.mjs → utils-BQjTDAMH.mjs} +0 -0
|
@@ -2,18 +2,6 @@ import { Machine, MachineSchema, Service } from "@sprawlify/primitives/core";
|
|
|
2
2
|
import React, { CSSProperties, ComponentPropsWithoutRef, HTMLAttributes, JSX, PropsWithChildren, RefObject } from "react";
|
|
3
3
|
import * as _sprawlify_primitives_types0 from "@sprawlify/primitives/types";
|
|
4
4
|
|
|
5
|
-
//#region src/components/factory.d.ts
|
|
6
|
-
interface PolymorphicProps {
|
|
7
|
-
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
9
|
-
type JsxElements = { [E in keyof JSX.IntrinsicElements]: SprawlifyForwardRefComponent<E> };
|
|
10
|
-
type SprawlifyForwardRefComponent<E$1 extends React.ElementType> = React.ForwardRefExoticComponent<SprawlifyPropsWithRef<E$1>>;
|
|
11
|
-
type SprawlifyPropsWithRef<E$1 extends React.ElementType> = React.ComponentPropsWithRef<E$1> & PolymorphicProps;
|
|
12
|
-
type HTMLProps<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithoutRef<T>;
|
|
13
|
-
type HTMLSprawlifyProps<T extends keyof JSX.IntrinsicElements> = HTMLProps<T> & PolymorphicProps;
|
|
14
|
-
declare const jsxFactory: () => JsxElements;
|
|
15
|
-
declare const sprawlify: JsxElements;
|
|
16
|
-
//#endregion
|
|
17
5
|
//#region src/core/machine.d.ts
|
|
18
6
|
declare function useMachine<T extends MachineSchema>(machine: Machine<T>, userProps?: Partial<T["props"]>): Service<T>;
|
|
19
7
|
//#endregion
|
|
@@ -38,4 +26,16 @@ declare const Portal: (props: PropsWithChildren<PortalProps>) => JSX.Element;
|
|
|
38
26
|
type Assign<T, U> = Omit<T, keyof U> & U;
|
|
39
27
|
type Optional<T, K$1 extends keyof T> = Pick<Partial<T>, K$1> & Omit<T, K$1>;
|
|
40
28
|
//#endregion
|
|
41
|
-
|
|
29
|
+
//#region src/components/factory.d.ts
|
|
30
|
+
interface PolymorphicProps {
|
|
31
|
+
asChild?: boolean | undefined;
|
|
32
|
+
}
|
|
33
|
+
type JsxElements = { [E in keyof JSX.IntrinsicElements]: SprawlifyForwardRefComponent<E> };
|
|
34
|
+
type SprawlifyForwardRefComponent<E$1 extends React.ElementType> = React.ForwardRefExoticComponent<SprawlifyPropsWithRef<E$1>>;
|
|
35
|
+
type SprawlifyPropsWithRef<E$1 extends React.ElementType> = React.ComponentPropsWithRef<E$1> & PolymorphicProps;
|
|
36
|
+
type HTMLProps<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithoutRef<T>;
|
|
37
|
+
type HTMLSprawlifyProps<T extends keyof JSX.IntrinsicElements> = HTMLProps<T> & PolymorphicProps;
|
|
38
|
+
declare const jsxFactory: () => JsxElements;
|
|
39
|
+
declare const sprawlify: JsxElements;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { sprawlify as a, Portal as c, normalizeProps as d, useMachine as f, jsxFactory as i, PortalProps as l, HTMLSprawlifyProps as n, Assign as o, PolymorphicProps as r, Optional as s, HTMLProps as t, PropTypes as u };
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, ComponentPropsWithoutRef, HTMLAttributes, JSX } from "react";
|
|
2
2
|
import * as _sprawlify_primitives_types0 from "@sprawlify/primitives/types";
|
|
3
3
|
|
|
4
|
-
//#region src/components/factory.d.ts
|
|
5
|
-
interface PolymorphicProps {
|
|
6
|
-
asChild?: boolean | undefined;
|
|
7
|
-
}
|
|
8
|
-
type JsxElements = { [E in keyof JSX.IntrinsicElements]: SprawlifyForwardRefComponent<E> };
|
|
9
|
-
type SprawlifyForwardRefComponent<E$1 extends React.ElementType> = React.ForwardRefExoticComponent<SprawlifyPropsWithRef<E$1>>;
|
|
10
|
-
type SprawlifyPropsWithRef<E$1 extends React.ElementType> = React.ComponentPropsWithRef<E$1> & PolymorphicProps;
|
|
11
|
-
type HTMLProps<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithoutRef<T>;
|
|
12
|
-
type HTMLSprawlifyProps<T extends keyof JSX.IntrinsicElements> = HTMLProps<T> & PolymorphicProps;
|
|
13
|
-
declare const jsxFactory: () => JsxElements;
|
|
14
|
-
declare const sprawlify: JsxElements;
|
|
15
|
-
//#endregion
|
|
16
4
|
//#region src/core/normalize-props.d.ts
|
|
17
5
|
type WithoutRef<T> = Omit<T, "ref">;
|
|
18
6
|
type ElementsWithoutRef = { [K in keyof JSX.IntrinsicElements]: WithoutRef<JSX.IntrinsicElements[K]> };
|
|
@@ -26,4 +14,16 @@ declare const normalizeProps: _sprawlify_primitives_types0.NormalizeProps<PropTy
|
|
|
26
14
|
type Assign<T, U> = Omit<T, keyof U> & U;
|
|
27
15
|
type Optional<T, K$1 extends keyof T> = Pick<Partial<T>, K$1> & Omit<T, K$1>;
|
|
28
16
|
//#endregion
|
|
29
|
-
|
|
17
|
+
//#region src/components/factory.d.ts
|
|
18
|
+
interface PolymorphicProps {
|
|
19
|
+
asChild?: boolean | undefined;
|
|
20
|
+
}
|
|
21
|
+
type JsxElements = { [E in keyof JSX.IntrinsicElements]: SprawlifyForwardRefComponent<E> };
|
|
22
|
+
type SprawlifyForwardRefComponent<E$1 extends React.ElementType> = React.ForwardRefExoticComponent<SprawlifyPropsWithRef<E$1>>;
|
|
23
|
+
type SprawlifyPropsWithRef<E$1 extends React.ElementType> = React.ComponentPropsWithRef<E$1> & PolymorphicProps;
|
|
24
|
+
type HTMLProps<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithoutRef<T>;
|
|
25
|
+
type HTMLSprawlifyProps<T extends keyof JSX.IntrinsicElements> = HTMLProps<T> & PolymorphicProps;
|
|
26
|
+
declare const jsxFactory: () => JsxElements;
|
|
27
|
+
declare const sprawlify: JsxElements;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { sprawlify as a, PropTypes as c, jsxFactory as i, normalizeProps as l, HTMLSprawlifyProps as n, Assign as o, PolymorphicProps as r, Optional as s, HTMLProps as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createContext$1 } from "./create-context-
|
|
1
|
+
import { t as createContext$1 } from "./create-context-DLMHiig4.mjs";
|
|
2
2
|
import { INIT_STATE, MachineStatus, createScope, mergeProps, mergeProps as mergeProps$1 } from "@sprawlify/primitives/core";
|
|
3
3
|
import { compact, ensure, identity, isFunction, isString, toArray, warn } from "@sprawlify/primitives/utils";
|
|
4
4
|
import * as React$1 from "react";
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { n as createContext } from "./index-
|
|
1
|
+
import { a as sprawlify, c as PropTypes, i as jsxFactory, l as normalizeProps, n as HTMLSprawlifyProps, o as Assign, r as PolymorphicProps, s as Optional, t as HTMLProps } from "./factory-D5qarvEF.cjs";
|
|
2
|
+
import { n as createContext } from "./index-wpUGMM30.cjs";
|
|
3
3
|
import { JSX, PropsWithChildren, ReactNode, RefObject } from "react";
|
|
4
4
|
import { Machine, MachineSchema, Service } from "@sprawlify/primitives/core";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { n as createContext } from "./index
|
|
1
|
+
import { a as sprawlify, c as Portal, d as normalizeProps, f as useMachine, i as jsxFactory, l as PortalProps, n as HTMLSprawlifyProps, o as Assign, r as PolymorphicProps, s as Optional, t as HTMLProps, u as PropTypes } from "./factory-CNfD9NVO.mjs";
|
|
2
|
+
import { n as createContext } from "./index--Dciu8yd.mjs";
|
|
3
3
|
import { PropsWithChildren, ReactNode } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import { FilterOptions, FilterReturn, Locale } from "@sprawlify/primitives/i18n-utils";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as LocaleProvider, c as useEnvironmentContext, d as normalizeProps, f as useMachine, i as useCollator, l as mergeProps, n as sprawlify, o as useLocaleContext, r as useFilter, s as EnvironmentProvider, t as jsxFactory, u as Portal } from "./factory-
|
|
2
|
-
import { t as createContext } from "./create-context-
|
|
3
|
-
import "./utils-
|
|
1
|
+
import { a as LocaleProvider, c as useEnvironmentContext, d as normalizeProps, f as useMachine, i as useCollator, l as mergeProps, n as sprawlify, o as useLocaleContext, r as useFilter, s as EnvironmentProvider, t as jsxFactory, u as Portal } from "./factory-DbgGeb_e.mjs";
|
|
2
|
+
import { t as createContext } from "./create-context-DLMHiig4.mjs";
|
|
3
|
+
import "./utils-BQjTDAMH.mjs";
|
|
4
4
|
|
|
5
5
|
export { EnvironmentProvider, LocaleProvider, Portal, createContext, jsxFactory, normalizeProps, sprawlify, useCollator, useEnvironmentContext, useFilter, useLocaleContext, useMachine };
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createContext, t as mergeProps } from "../index-
|
|
1
|
+
import { n as createContext, t as mergeProps } from "../index-wpUGMM30.cjs";
|
|
2
2
|
export { createContext, mergeProps };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createContext, t as mergeProps } from "../index
|
|
1
|
+
import { n as createContext, t as mergeProps } from "../index--Dciu8yd.mjs";
|
|
2
2
|
export { createContext, mergeProps };
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createContext } from "../create-context-
|
|
2
|
-
import { t as mergeProps } from "../utils-
|
|
1
|
+
import { t as createContext } from "../create-context-DLMHiig4.mjs";
|
|
2
|
+
import { t as mergeProps } from "../utils-BQjTDAMH.mjs";
|
|
3
3
|
|
|
4
4
|
export { createContext, mergeProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprawlify/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React wrapper for primitives.",
|
|
6
6
|
"author": "sprawlify <npm@sprawlify.com>",
|
|
@@ -18,6 +18,26 @@
|
|
|
18
18
|
"default": "./dist/index.cjs"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
"./accordion": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/components/accordion/index.d.mts",
|
|
24
|
+
"default": "./dist/components/accordion/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/components/accordion/index.d.cts",
|
|
28
|
+
"default": "./dist/components/accordion/index.cjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"./angle-slider": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/components/angle-slider/index.d.mts",
|
|
34
|
+
"default": "./dist/components/angle-slider/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/components/angle-slider/index.d.cts",
|
|
38
|
+
"default": "./dist/components/angle-slider/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
21
41
|
"./collapsible": {
|
|
22
42
|
"import": {
|
|
23
43
|
"types": "./dist/components/collapsible/index.d.mts",
|
|
@@ -36,7 +56,7 @@
|
|
|
36
56
|
"access": "public"
|
|
37
57
|
},
|
|
38
58
|
"dependencies": {
|
|
39
|
-
"@sprawlify/primitives": "0.0.
|
|
59
|
+
"@sprawlify/primitives": "0.0.5"
|
|
40
60
|
},
|
|
41
61
|
"peerDependencies": {
|
|
42
62
|
"react": ">=19.0.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|