@spark-ui/internal-utils 16.2.3 → 17.0.0
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 +14 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +4 -4
- package/dist/variants/constants.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# 17.0.0 (2026-03-20)
|
|
2
|
+
|
|
3
|
+
### 💅 Refactors
|
|
4
|
+
|
|
5
|
+
- ⚠️ **theme-utils:** removed basic color family ([56637ea96](https://github.com/leboncoin/spark-web/commit/56637ea96))
|
|
6
|
+
|
|
7
|
+
### ⚠️ Breaking Changes
|
|
8
|
+
|
|
9
|
+
- **theme-utils:** use support intent instead of basic
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Powerplex @Powerplex
|
|
14
|
+
|
|
1
15
|
## 16.2.3 (2026-03-19)
|
|
2
16
|
|
|
3
17
|
### 💅 Refactors
|
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"
|
|
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"],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
|
@@ -2,10 +2,10 @@ import { isValidElement as c, Children as u, useCallback as i, useRef as l } fro
|
|
|
2
2
|
function m(e) {
|
|
3
3
|
return e;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function y(e) {
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const b = 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"], shapes: ["rounded", "square", "pill"], sizes: ["current", "sm", "md", "lg", "xl"] }, Symbol.toStringTag, { value: "Module" }));
|
|
9
9
|
function d(e) {
|
|
10
10
|
return c(e) && (function(r) {
|
|
11
11
|
return c(r) && !!r.props.children;
|
|
@@ -34,10 +34,10 @@ function v(e, r = {}) {
|
|
|
34
34
|
return i(((...t) => n ? queueMicrotask((() => o.current?.(...t))) : o.current?.(...t)), [n, o]);
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
b as VariantTypes,
|
|
38
38
|
h as createSplitProps,
|
|
39
39
|
f as deepFind,
|
|
40
|
-
|
|
40
|
+
y as makeVariants,
|
|
41
41
|
_ as omit,
|
|
42
42
|
m as tw,
|
|
43
43
|
v as useEvent,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const sizes: readonly ["current", "sm", "md", "lg", "xl"];
|
|
2
|
-
declare const intents: readonly ["current", "main", "support", "success", "error", "info", "alert", "danger", "neutral", "surface", "surfaceInverse", "accent"
|
|
2
|
+
declare const intents: readonly ["current", "main", "support", "success", "error", "info", "alert", "danger", "neutral", "surface", "surfaceInverse", "accent"];
|
|
3
3
|
declare const designs: readonly ["filled", "outlined", "tinted", "ghost", "contrast", "dashed"];
|
|
4
4
|
declare const shapes: readonly ["rounded", "square", "pill"];
|
|
5
5
|
export { sizes, intents, designs, shapes };
|