@spark-ui/internal-utils 17.14.4 → 17.15.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 CHANGED
@@ -1,3 +1,13 @@
1
+ ## 17.15.0 (2026-06-25)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **components:** added ai intent to buttons ([27012776a](https://github.com/leboncoin/spark-web/commit/27012776a))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Powerplex @Powerplex
10
+
1
11
  ## 17.14.4 (2026-06-23)
2
12
 
3
13
  ### 🩹 Fixes
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require(`react`);var r=t({}),i=t({designs:()=>s,intents:()=>o,shapes:()=>c,sizes:()=>a}),a=[`current`,`sm`,`md`,`lg`,`xl`],o=[`current`,`main`,`support`,`success`,`error`,`info`,`alert`,`danger`,`neutral`,`surface`,`surfaceInverse`,`accent`],s=[`filled`,`outlined`,`tinted`,`ghost`,`contrast`,`dashed`],c=[`rounded`,`square`,`pill`];function l(e){return(0,n.isValidElement)(e)&&function(e){return(0,n.isValidElement)(e)&&!!e.props.children}(e)&&n.Children.toArray(e.props.children).reduce((e,t)=>e||(0,n.isValidElement)(t),!1)}Object.defineProperty(exports,`VariantTypes`,{enumerable:!0,get:function(){return r}}),exports.createSplitProps=()=>(e,t)=>t.reduce((e,t)=>{let[n,r]=e,i=t;return r[i]!==void 0&&(n[i]=r[i]),delete r[i],[n,r]},[{},{...e}]),exports.deepFind=function e(t,r){let i;return n.Children.toArray(t).find((t,a,o)=>r(t,a,o)?(i=t,!0):!(!(0,n.isValidElement)(t)||!l(t))&&(i=e(t.props.children,r),i!==void 0)),i},exports.makeVariants=function(e){return e},exports.omit=function(e,t){let n={};return Object.keys(e).forEach(r=>{let i=r;t.includes(i)||(n[i]=e[i])}),n},exports.tw=function(e){return e},exports.useEvent=function(e,t={}){let{sync:r=!1}=t,i=function(e){let t=(0,n.useRef)(e);return t.current=e,t}(e);return(0,n.useCallback)((...e)=>r?queueMicrotask(()=>i.current?.(...e)):i.current?.(...e),[r,i])},Object.defineProperty(exports,`variantConstants`,{enumerable:!0,get:function(){return i}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require(`react`);var r=t({}),i=t({designs:()=>s,intents:()=>o,shapes:()=>c,sizes:()=>a}),a=[`current`,`sm`,`md`,`lg`,`xl`],o=[`current`,`main`,`support`,`ai`,`success`,`error`,`info`,`alert`,`danger`,`neutral`,`surface`,`surfaceInverse`,`accent`],s=[`filled`,`outlined`,`tinted`,`ghost`,`contrast`,`dashed`],c=[`rounded`,`square`,`pill`];function l(e){return(0,n.isValidElement)(e)&&function(e){return(0,n.isValidElement)(e)&&!!e.props.children}(e)&&n.Children.toArray(e.props.children).reduce((e,t)=>e||(0,n.isValidElement)(t),!1)}Object.defineProperty(exports,`VariantTypes`,{enumerable:!0,get:function(){return r}}),exports.createSplitProps=()=>(e,t)=>t.reduce((e,t)=>{let[n,r]=e,i=t;return r[i]!==void 0&&(n[i]=r[i]),delete r[i],[n,r]},[{},{...e}]),exports.deepFind=function e(t,r){let i;return n.Children.toArray(t).find((t,a,o)=>r(t,a,o)?(i=t,!0):!(!(0,n.isValidElement)(t)||!l(t))&&(i=e(t.props.children,r),i!==void 0)),i},exports.makeVariants=function(e){return e},exports.omit=function(e,t){let n={};return Object.keys(e).forEach(r=>{let i=r;t.includes(i)||(n[i]=e[i])}),n},exports.tw=function(e){return e},exports.useEvent=function(e,t={}){let{sync:r=!1}=t,i=function(e){let t=(0,n.useRef)(e);return t.current=e,t}(e);return(0,n.useCallback)((...e)=>r?queueMicrotask(()=>i.current?.(...e)):i.current?.(...e),[r,i])},Object.defineProperty(exports,`variantConstants`,{enumerable:!0,get:function(){return i}});
package/dist/index.mjs CHANGED
@@ -28,6 +28,7 @@ var c = a({}), l = a({
28
28
  "current",
29
29
  "main",
30
30
  "support",
31
+ "ai",
31
32
  "success",
32
33
  "error",
33
34
  "info",
@@ -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", "ai", "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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/internal-utils",
3
- "version": "17.14.4",
3
+ "version": "17.15.0",
4
4
  "description": "package for sharing reusable code and resources across the codebase",
5
5
  "publishConfig": {
6
6
  "access": "public"