@spark-ui/internal-utils 10.17.6 → 10.17.7
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/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +10 -10
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.17.7](https://github.com/leboncoin/spark-web/compare/v10.17.6...v10.17.7) (2025-09-27)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- bump minor versions deps ([6a496b2](https://github.com/leboncoin/spark-web/commit/6a496b2c10cebfe72381a605adcc4406fb0e3866))
|
|
11
|
+
|
|
6
12
|
## [10.17.6](https://github.com/leboncoin/spark-web/compare/v10.17.5...v10.17.6) (2025-09-27)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @spark-ui/internal-utils
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),l=Object.freeze(Object.defineProperty({__proto__:null,designs:["filled","outlined","tinted","ghost","contrast","dashed"],intents:["current","main","support","success","error","info","alert","danger","neutral","surface","surfaceInverse","accent","basic"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg","xl"]},Symbol.toStringTag,{value:"Module"}));function a(n){return s.isValidElement(n)&&function(r){return s.isValidElement(r)&&!!r.props.children}(n)&&s.Children.toArray(n.props.children).reduce((r,t)=>r||s.isValidElement(t),!1)}exports.VariantTypes=c,exports.createSplitProps=()=>(n,r)=>r.reduce((t,o)=>{const[e,i]=t,u=o;return i[u]!==void 0&&(e[u]=i[u]),delete i[u],[e,i]},[{},{...n}]),exports.deepFind=function n(r,t){let o;return s.Children.toArray(r).find((e,i,u)=>t(e,i,u)?(o=e,!0):!(!s.isValidElement(e)||!a(e))&&(o=n(e.props.children,t),o!==void 0)),o},exports.makeVariants=function(n){return n},exports.omit=function(n,r){const t={};return Object.keys(n).forEach(o=>{const e=o;r.includes(e)||(t[e]=n[e])}),t},exports.tw=function(n){return n},exports.useEvent=function(n,r={}){const{sync:t=!1}=r,o=function(e){const i=s.useRef(e);return i.current=e,i}(n);return s.useCallback((...e)=>t?queueMicrotask(()=>o.current?.(...e)):o.current?.(...e),[t,o])},exports.variantConstants=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),l=Object.freeze(Object.defineProperty({__proto__:null,designs:["filled","outlined","tinted","ghost","contrast","dashed"],intents:["current","main","support","success","error","info","alert","danger","neutral","surface","surfaceInverse","accent","basic"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg","xl"]},Symbol.toStringTag,{value:"Module"}));function a(n){return s.isValidElement(n)&&(function(r){return s.isValidElement(r)&&!!r.props.children})(n)&&s.Children.toArray(n.props.children).reduce(((r,t)=>r||s.isValidElement(t)),!1)}exports.VariantTypes=c,exports.createSplitProps=()=>(n,r)=>r.reduce(((t,o)=>{const[e,i]=t,u=o;return i[u]!==void 0&&(e[u]=i[u]),delete i[u],[e,i]}),[{},{...n}]),exports.deepFind=function n(r,t){let o;return s.Children.toArray(r).find(((e,i,u)=>t(e,i,u)?(o=e,!0):!(!s.isValidElement(e)||!a(e))&&(o=n(e.props.children,t),o!==void 0))),o},exports.makeVariants=function(n){return n},exports.omit=function(n,r){const t={};return Object.keys(n).forEach((o=>{const e=o;r.includes(e)||(t[e]=n[e])})),t},exports.tw=function(n){return n},exports.useEvent=function(n,r={}){const{sync:t=!1}=r,o=(function(e){const i=s.useRef(e);return i.current=e,i})(n);return s.useCallback(((...e)=>t?queueMicrotask((()=>o.current?.(...e))):o.current?.(...e)),[t,o])},exports.variantConstants=l;
|
package/dist/index.mjs
CHANGED
|
@@ -7,31 +7,31 @@ function b(e) {
|
|
|
7
7
|
}
|
|
8
8
|
const y = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), g = Object.freeze(Object.defineProperty({ __proto__: null, designs: ["filled", "outlined", "tinted", "ghost", "contrast", "dashed"], intents: ["current", "main", "support", "success", "error", "info", "alert", "danger", "neutral", "surface", "surfaceInverse", "accent", "basic"], shapes: ["rounded", "square", "pill"], sizes: ["current", "sm", "md", "lg", "xl"] }, Symbol.toStringTag, { value: "Module" }));
|
|
9
9
|
function d(e) {
|
|
10
|
-
return c(e) && function(r) {
|
|
10
|
+
return c(e) && (function(r) {
|
|
11
11
|
return c(r) && !!r.props.children;
|
|
12
|
-
}(e) && u.toArray(e.props.children).reduce((r, n) => r || c(n), !1);
|
|
12
|
+
})(e) && u.toArray(e.props.children).reduce(((r, n) => r || c(n)), !1);
|
|
13
13
|
}
|
|
14
14
|
function f(e, r) {
|
|
15
15
|
let n;
|
|
16
|
-
return u.toArray(e).find((o, t, s) => r(o, t, s) ? (n = o, !0) : !(!c(o) || !d(o)) && (n = f(o.props.children, r), n !== void 0)), n;
|
|
16
|
+
return u.toArray(e).find(((o, t, s) => r(o, t, s) ? (n = o, !0) : !(!c(o) || !d(o)) && (n = f(o.props.children, r), n !== void 0))), n;
|
|
17
17
|
}
|
|
18
|
-
const h = () => (e, r) => r.reduce((n, o) => {
|
|
18
|
+
const h = () => (e, r) => r.reduce(((n, o) => {
|
|
19
19
|
const [t, s] = n, a = o;
|
|
20
20
|
return s[a] !== void 0 && (t[a] = s[a]), delete s[a], [t, s];
|
|
21
|
-
}, [{}, { ...e }]);
|
|
21
|
+
}), [{}, { ...e }]);
|
|
22
22
|
function _(e, r) {
|
|
23
23
|
const n = {};
|
|
24
|
-
return Object.keys(e).forEach((o) => {
|
|
24
|
+
return Object.keys(e).forEach(((o) => {
|
|
25
25
|
const t = o;
|
|
26
26
|
r.includes(t) || (n[t] = e[t]);
|
|
27
|
-
}), n;
|
|
27
|
+
})), n;
|
|
28
28
|
}
|
|
29
29
|
function v(e, r = {}) {
|
|
30
|
-
const { sync: n = !1 } = r, o = function(t) {
|
|
30
|
+
const { sync: n = !1 } = r, o = (function(t) {
|
|
31
31
|
const s = l(t);
|
|
32
32
|
return s.current = t, s;
|
|
33
|
-
}(e);
|
|
34
|
-
return i((...t) => n ? queueMicrotask(() => o.current?.(...t)) : o.current?.(...t), [n, o]);
|
|
33
|
+
})(e);
|
|
34
|
+
return i(((...t) => n ? queueMicrotask((() => o.current?.(...t))) : o.current?.(...t)), [n, o]);
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
37
37
|
y as VariantTypes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-ui/internal-utils",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.7",
|
|
4
4
|
"description": "package for sharing reusable code and resources across the codebase",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"build": "vite build"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"react": "^19.
|
|
21
|
-
"react-dom": "^19.
|
|
20
|
+
"react": "^19.1.1",
|
|
21
|
+
"react-dom": "^19.1.1"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://sparkui.vercel.app",
|
|
36
36
|
"license": "MIT",
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "9592fbd80f2ccd0b788d5ecb248173633875f603"
|
|
38
38
|
}
|