@salty-css/react 0.0.1-alpha.183 → 0.0.1-alpha.184
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/class-name.d.ts +6 -0
- package/className.cjs +1 -0
- package/className.js +45 -0
- package/element-factory-C7JVLDq7.js +67 -0
- package/element-factory-D4kpeFoW.cjs +1 -0
- package/package.json +6 -2
- package/styled-client.cjs +1 -1
- package/styled-client.js +1 -1
- package/styled.cjs +1 -1
- package/styled.js +9 -9
- package/element-factory-CRNlgjJ5.js +0 -67
- package/element-factory-CixOWc4u.cjs +0 -1
package/class-name.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
import { StyledParams } from '@salty-css/core/types';
|
2
|
+
import { ClassNameFactory } from '@salty-css/core/css';
|
3
|
+
export declare const className: <const STYLE_PARAMS extends StyledParams>(params: STYLE_PARAMS) => string & {
|
4
|
+
isClassName: boolean;
|
5
|
+
factory: ClassNameFactory<STYLE_PARAMS>;
|
6
|
+
};
|
package/className.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var n=Object.defineProperty;var h=(a,s,e)=>s in a?n(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e;var r=(a,s,e)=>h(a,typeof s!="symbol"?s+"":s,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./parse-styles-JzVmxd-u.cjs"),o=require("./parse-tokens-p68muVgG.cjs");class l{constructor(s){r(this,"_isProd");r(this,"_callerName");this.params=s}get hash(){return c.toHash(this.params.base||this.params)}get cssClassName(){return this.hash}get classNames(){const s=[this.hash],{className:e}=this.params;return e&&s.push(e),s.join(" ")}get cssFileName(){return this._callerName?`cl_${o.dashCase(this._callerName)}-${this.hash}.css`:`${this.hash}.css`}get css(){const{base:s={},variants:e={},compoundVariants:t=[]}=this.params,i={...s,variants:e,compoundVariants:t};return c.parseStyles(i,`.${this.cssClassName}`)}_withBuildContext(s){const{name:e,prod:t}=s;return this._isProd=t,this._callerName=e,this}}const m=a=>{const s=new l(a),e=new String(s.cssClassName);return Object.assign(e,{get isClassName(){return!0},factory:s}),e};exports.className=m;
|
package/className.js
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
var i = Object.defineProperty;
|
2
|
+
var h = (t, s, a) => s in t ? i(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a;
|
3
|
+
var r = (t, s, a) => h(t, typeof s != "symbol" ? s + "" : s, a);
|
4
|
+
import { t as n, p as o } from "./parse-styles-lB6EJuGj.js";
|
5
|
+
import { d as m } from "./parse-tokens-YUi047xd.js";
|
6
|
+
class l {
|
7
|
+
constructor(s) {
|
8
|
+
r(this, "_isProd");
|
9
|
+
r(this, "_callerName");
|
10
|
+
this.params = s;
|
11
|
+
}
|
12
|
+
get hash() {
|
13
|
+
return n(this.params.base || this.params);
|
14
|
+
}
|
15
|
+
get cssClassName() {
|
16
|
+
return this.hash;
|
17
|
+
}
|
18
|
+
get classNames() {
|
19
|
+
const s = [this.hash], { className: a } = this.params;
|
20
|
+
return a && s.push(a), s.join(" ");
|
21
|
+
}
|
22
|
+
get cssFileName() {
|
23
|
+
return this._callerName ? `cl_${m(this._callerName)}-${this.hash}.css` : `${this.hash}.css`;
|
24
|
+
}
|
25
|
+
get css() {
|
26
|
+
const { base: s = {}, variants: a = {}, compoundVariants: e = [] } = this.params, c = { ...s, variants: a, compoundVariants: e };
|
27
|
+
return o(c, `.${this.cssClassName}`);
|
28
|
+
}
|
29
|
+
_withBuildContext(s) {
|
30
|
+
const { name: a, prod: e } = s;
|
31
|
+
return this._isProd = e, this._callerName = a, this;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
const g = (t) => {
|
35
|
+
const s = new l(t), a = new String(s.cssClassName);
|
36
|
+
return Object.assign(a, {
|
37
|
+
get isClassName() {
|
38
|
+
return !0;
|
39
|
+
},
|
40
|
+
factory: s
|
41
|
+
}), a;
|
42
|
+
};
|
43
|
+
export {
|
44
|
+
g as className
|
45
|
+
};
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { forwardRef as g, createElement as p } from "react";
|
2
|
+
import { p as N, d as A } from "./parse-tokens-YUi047xd.js";
|
3
|
+
function K(n) {
|
4
|
+
var s, e, t = "";
|
5
|
+
if (typeof n == "string" || typeof n == "number") t += n;
|
6
|
+
else if (typeof n == "object") if (Array.isArray(n)) {
|
7
|
+
var o = n.length;
|
8
|
+
for (s = 0; s < o; s++) n[s] && (e = K(n[s])) && (t && (t += " "), t += e);
|
9
|
+
} else for (e in n) n[e] && (t && (t += " "), t += e);
|
10
|
+
return t;
|
11
|
+
}
|
12
|
+
function R() {
|
13
|
+
for (var n, s, e = 0, t = "", o = arguments.length; e < o; e++) (n = arguments[e]) && (s = K(n)) && (t && (t += " "), t += s);
|
14
|
+
return t;
|
15
|
+
}
|
16
|
+
const F = ["passProps"], x = (n, s, e, t) => {
|
17
|
+
const j = g(({
|
18
|
+
extend: d = n,
|
19
|
+
element: S = e.element,
|
20
|
+
className: O = "",
|
21
|
+
children: $,
|
22
|
+
passProps: u = e.passProps,
|
23
|
+
_vks: c = /* @__PURE__ */ new Set(),
|
24
|
+
...r
|
25
|
+
}, w) => {
|
26
|
+
const f = { passProps: u };
|
27
|
+
e.attr && Object.assign(f, e.attr), t && Object.assign(f, t), e.defaultProps && Object.assign(r, e.defaultProps), r && Object.assign(f, r);
|
28
|
+
const b = new Set(O.split(" ")), y = typeof d == "function" || typeof d == "object", h = y && "isStyled" in d, E = y ? d : S || d;
|
29
|
+
if (!E) throw new Error("No element provided");
|
30
|
+
const m = f.style || {};
|
31
|
+
f.style || (f.style = m), Object.entries(m).forEach(([i, a]) => {
|
32
|
+
const { result: l } = N(a);
|
33
|
+
m[i] = l;
|
34
|
+
}), e.propValueKeys && e.propValueKeys.forEach((i) => {
|
35
|
+
const a = `css-${i}`, l = r[a];
|
36
|
+
if (l === void 0) return;
|
37
|
+
const C = `--props-${A(i)}`;
|
38
|
+
m[C] = l, c && c.add(a);
|
39
|
+
}), e.variantKeys && e.variantKeys.forEach((i) => {
|
40
|
+
const [a, l] = i.split("=");
|
41
|
+
r[a] !== void 0 ? (b.add(`${a}-${r[a]}`), c && c.add(a)) : l !== void 0 && b.add(`${a}-${l}`);
|
42
|
+
}), c && (!y || !h) ? c.forEach((i) => {
|
43
|
+
if (!u) return delete f[i];
|
44
|
+
if (u !== !0 && !u.includes(i))
|
45
|
+
return delete f[i];
|
46
|
+
}) : h && Object.assign(f, { _vks: c }), h || F.forEach((i) => delete f[i]);
|
47
|
+
const V = R(s, ...b);
|
48
|
+
return p(
|
49
|
+
E,
|
50
|
+
{
|
51
|
+
element: y ? S : void 0,
|
52
|
+
className: V,
|
53
|
+
ref: w,
|
54
|
+
...f
|
55
|
+
},
|
56
|
+
$
|
57
|
+
);
|
58
|
+
});
|
59
|
+
return Object.assign(j, {
|
60
|
+
isStyled: !0,
|
61
|
+
className: s,
|
62
|
+
toString: () => `.${s}`
|
63
|
+
}), j;
|
64
|
+
};
|
65
|
+
export {
|
66
|
+
x as e
|
67
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const K=require("react"),O=require("./parse-tokens-p68muVgG.cjs");function $(n){var s,e,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(s=0;s<u;s++)n[s]&&(e=$(n[s]))&&(t&&(t+=" "),t+=e)}else for(e in n)n[e]&&(t&&(t+=" "),t+=e);return t}function q(){for(var n,s,e=0,t="",u=arguments.length;e<u;e++)(n=arguments[e])&&(s=$(n))&&(t&&(t+=" "),t+=s);return t}const A=["passProps"],F=(n,s,e,t)=>{const u=({extend:d=n,element:S=e.element,className:w="",children:V,passProps:o=e.passProps,_vks:c=new Set,...r},C)=>{const f={passProps:o};e.attr&&Object.assign(f,e.attr),t&&Object.assign(f,t),e.defaultProps&&Object.assign(r,e.defaultProps),r&&Object.assign(f,r);const b=new Set(w.split(" ")),y=typeof d=="function"||typeof d=="object",h=y&&"isStyled"in d,E=y?d:S||d;if(!E)throw new Error("No element provided");const m=f.style||{};f.style||(f.style=m),Object.entries(m).forEach(([i,a])=>{const{result:l}=O.parseValueTokens(a);m[i]=l}),e.propValueKeys&&e.propValueKeys.forEach(i=>{const a=`css-${i}`,l=r[a];if(l===void 0)return;const N=`--props-${O.dashCase(i)}`;m[N]=l,c&&c.add(a)}),e.variantKeys&&e.variantKeys.forEach(i=>{const[a,l]=i.split("=");r[a]!==void 0?(b.add(`${a}-${r[a]}`),c&&c.add(a)):l!==void 0&&b.add(`${a}-${l}`)}),c&&(!y||!h)?c.forEach(i=>{if(!o)return delete f[i];if(o!==!0&&!o.includes(i))return delete f[i]}):h&&Object.assign(f,{_vks:c}),h||A.forEach(i=>delete f[i]);const g=q(s,...b);return K.createElement(E,{element:y?S:void 0,className:g,ref:C,...f},V)},j=K.forwardRef(u);return Object.assign(j,{isStyled:!0,className:s,toString:()=>`.${s}`}),j};exports.elementFactory=F;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salty-css/react",
|
3
|
-
"version": "0.0.1-alpha.
|
3
|
+
"version": "0.0.1-alpha.184",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"module": "./dist/index.mjs",
|
6
6
|
"typings": "./dist/index.d.ts",
|
@@ -36,6 +36,10 @@
|
|
36
36
|
"import": "./styled-client.js",
|
37
37
|
"require": "./styled-client.cjs"
|
38
38
|
},
|
39
|
+
"./class-name": {
|
40
|
+
"import": "./class-name.js",
|
41
|
+
"require": "./class-name.cjs"
|
42
|
+
},
|
39
43
|
"./keyframes": {
|
40
44
|
"import": "./keyframes.js",
|
41
45
|
"require": "./keyframes.cjs"
|
@@ -50,7 +54,7 @@
|
|
50
54
|
}
|
51
55
|
},
|
52
56
|
"dependencies": {
|
53
|
-
"@salty-css/core": "^0.0.1-alpha.
|
57
|
+
"@salty-css/core": "^0.0.1-alpha.184",
|
54
58
|
"clsx": ">=2.x",
|
55
59
|
"react": ">=19.x || >=18.3.x"
|
56
60
|
}
|
package/styled-client.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./element-factory-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./element-factory-D4kpeFoW.cjs"),n=(e,t,r)=>l.elementFactory(e,t,r);exports.styledClient=n;
|
package/styled-client.js
CHANGED
package/styled.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var y=Object.defineProperty;var g=(e,t,s)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var c=(e,t,s)=>g(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./parse-styles-JzVmxd-u.cjs"),f=require("./parse-tokens-p68muVgG.cjs"),N=require("./element-factory-
|
1
|
+
"use strict";var y=Object.defineProperty;var g=(e,t,s)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var c=(e,t,s)=>g(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./parse-styles-JzVmxd-u.cjs"),f=require("./parse-tokens-p68muVgG.cjs"),N=require("./element-factory-D4kpeFoW.cjs"),_=e=>Object.keys(e);class b{constructor(t,s){c(this,"_isProd");c(this,"_callerName");c(this,"_context");this.tagName=t,this.params=s}get hash(){return u.toHash(this.params.base||this.params)}get priority(){var t;return typeof this.tagName=="function"||typeof this.tagName=="object"?(((t=this.tagName.generator)==null?void 0:t.priority)||0)+1:0}get classNames(){const t=[this.hash],{className:s}=this.params;return s&&t.push(s),t.join(" ")}get cssClassName(){return this.hash}get cssDisplayNameVar(){return`--${this.hash}-display-name: ${this._callerName};`}get cssFileName(){return this._callerName?`c_${f.dashCase(this._callerName)}-${this.hash}-${this.priority}.css`:`${this.hash}-${this.priority}.css`}get templateKeys(){var t;return(t=this._context)!=null&&t.config.templates?_(this._context.config.templates):[]}get css(){var n;const{base:t={},variants:s={},compoundVariants:r=[]}=this.params,i={...t,variants:s,compoundVariants:r};return u.parseStyles(i,`.${this.cssClassName}`,(n=this._context)==null?void 0:n.config)}get props(){const{element:t,variants:s={},compoundVariants:r=[],defaultVariants:i={},defaultProps:p={},passProps:n}=this.params,h=new Set([]),l=a=>{const o=i[a];o!==void 0?h.add(`${a}=${String(o)}`):h.add(a)};Object.keys(s).forEach(l),r.map(a=>Object.keys(a).forEach(l));const m=new Set([]);if(this.params.base){const a=JSON.stringify(this.params.base).match(/\{props\.([\w\d]+)\}/gi);a&&a.forEach(o=>{const d=o.replace(/\{props\.([\w\d]+)\}/gi,"$1");d&&m.add(d)})}return{element:t,variantKeys:[...h],propValueKeys:[...m],passProps:n,defaultProps:p,attr:{"data-component-name":this._isProd?void 0:this._callerName}}}_withBuildContext(t){this._context=t;const{name:s,config:r,prod:i}=t;return this._isProd=i,this._callerName=s,this}}const $=(e,t)=>{const s=new b(e,t),r=N.elementFactory(e,s.cssClassName,s.props,{"data-unoptimized-client-component":!0});return Object.assign(r,{generator:s}),r};exports.styled=$;
|
package/styled.js
CHANGED
@@ -3,7 +3,7 @@ var f = (e, s, t) => s in e ? u(e, s, { enumerable: !0, configurable: !0, writab
|
|
3
3
|
var c = (e, s, t) => f(e, typeof s != "symbol" ? s + "" : s, t);
|
4
4
|
import { t as g, p as y } from "./parse-styles-lB6EJuGj.js";
|
5
5
|
import { d as N } from "./parse-tokens-YUi047xd.js";
|
6
|
-
import { e as _ } from "./element-factory-
|
6
|
+
import { e as _ } from "./element-factory-C7JVLDq7.js";
|
7
7
|
const $ = (e) => Object.keys(e);
|
8
8
|
class b {
|
9
9
|
constructor(s, t) {
|
@@ -37,21 +37,21 @@ class b {
|
|
37
37
|
return (s = this._context) != null && s.config.templates ? $(this._context.config.templates) : [];
|
38
38
|
}
|
39
39
|
get css() {
|
40
|
-
var
|
40
|
+
var n;
|
41
41
|
const { base: s = {}, variants: t = {}, compoundVariants: r = [] } = this.params, i = { ...s, variants: t, compoundVariants: r };
|
42
|
-
return y(i, `.${this.cssClassName}`, (
|
42
|
+
return y(i, `.${this.cssClassName}`, (n = this._context) == null ? void 0 : n.config);
|
43
43
|
}
|
44
44
|
get props() {
|
45
|
-
const { element: s, variants: t = {}, compoundVariants: r = [], defaultVariants: i = {}, defaultProps: p = {}, passProps:
|
46
|
-
const
|
47
|
-
|
45
|
+
const { element: s, variants: t = {}, compoundVariants: r = [], defaultVariants: i = {}, defaultProps: p = {}, passProps: n } = this.params, h = /* @__PURE__ */ new Set([]), m = (a) => {
|
46
|
+
const o = i[a];
|
47
|
+
o !== void 0 ? h.add(`${a}=${String(o)}`) : h.add(a);
|
48
48
|
};
|
49
49
|
Object.keys(t).forEach(m), r.map((a) => Object.keys(a).forEach(m));
|
50
50
|
const l = /* @__PURE__ */ new Set([]);
|
51
51
|
if (this.params.base) {
|
52
52
|
const a = JSON.stringify(this.params.base).match(/\{props\.([\w\d]+)\}/gi);
|
53
|
-
a && a.forEach((
|
54
|
-
const d =
|
53
|
+
a && a.forEach((o) => {
|
54
|
+
const d = o.replace(/\{props\.([\w\d]+)\}/gi, "$1");
|
55
55
|
d && l.add(d);
|
56
56
|
});
|
57
57
|
}
|
@@ -59,7 +59,7 @@ class b {
|
|
59
59
|
element: s,
|
60
60
|
variantKeys: [...h],
|
61
61
|
propValueKeys: [...l],
|
62
|
-
passProps:
|
62
|
+
passProps: n,
|
63
63
|
defaultProps: p,
|
64
64
|
attr: {
|
65
65
|
"data-component-name": this._isProd ? void 0 : this._callerName
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import { forwardRef as C, createElement as g } from "react";
|
2
|
-
import { p, d as N } from "./parse-tokens-YUi047xd.js";
|
3
|
-
function K(s) {
|
4
|
-
var i, e, t = "";
|
5
|
-
if (typeof s == "string" || typeof s == "number") t += s;
|
6
|
-
else if (typeof s == "object") if (Array.isArray(s)) {
|
7
|
-
var d = s.length;
|
8
|
-
for (i = 0; i < d; i++) s[i] && (e = K(s[i])) && (t && (t += " "), t += e);
|
9
|
-
} else for (e in s) s[e] && (t && (t += " "), t += e);
|
10
|
-
return t;
|
11
|
-
}
|
12
|
-
function A() {
|
13
|
-
for (var s, i, e = 0, t = "", d = arguments.length; e < d; e++) (s = arguments[e]) && (i = K(s)) && (t && (t += " "), t += i);
|
14
|
-
return t;
|
15
|
-
}
|
16
|
-
const R = ["passProps"], x = (s, i, e, t) => {
|
17
|
-
const j = C(({
|
18
|
-
extend: r = s,
|
19
|
-
element: S = e.element,
|
20
|
-
className: O = "",
|
21
|
-
children: $,
|
22
|
-
passProps: u = e.passProps,
|
23
|
-
_vks: c = /* @__PURE__ */ new Set(),
|
24
|
-
...o
|
25
|
-
}, w) => {
|
26
|
-
const f = { passProps: u };
|
27
|
-
e.attr && Object.assign(f, e.attr), t && Object.assign(f, t), e.defaultProps && Object.assign(o, e.defaultProps), o && Object.assign(f, o);
|
28
|
-
const b = new Set(O.split(" ")), y = typeof r == "function" || typeof r == "object", h = y && "isStyled" in r, E = y ? r : S || r;
|
29
|
-
if (!E) throw new Error("No element provided");
|
30
|
-
const m = f.style || {};
|
31
|
-
f.style || (f.style = m), Object.entries(m).forEach(([n, a]) => {
|
32
|
-
const { result: l } = p(a);
|
33
|
-
m[n] = l;
|
34
|
-
}), e.propValueKeys && e.propValueKeys.forEach((n) => {
|
35
|
-
const a = `css-${n}`, l = o[a];
|
36
|
-
if (l === void 0) return;
|
37
|
-
const v = `--props-${N(n)}`;
|
38
|
-
m[v] = l, c && c.add(a);
|
39
|
-
}), e.variantKeys && e.variantKeys.forEach((n) => {
|
40
|
-
const [a, l] = n.split("=");
|
41
|
-
o[a] !== void 0 ? (b.add(`${a}-${o[a]}`), c && c.add(a)) : l !== void 0 && b.add(`${a}-${l}`);
|
42
|
-
}), c && (!y || !h) ? c.forEach((n) => {
|
43
|
-
if (!u) return delete f[n];
|
44
|
-
if (u !== !0 && !u.includes(n))
|
45
|
-
return delete f[n];
|
46
|
-
}) : h && Object.assign(f, { _vks: c }), h || R.forEach((n) => delete f[n]);
|
47
|
-
const V = A(i, ...b);
|
48
|
-
return g(
|
49
|
-
E,
|
50
|
-
{
|
51
|
-
element: y ? S : void 0,
|
52
|
-
className: V,
|
53
|
-
ref: w,
|
54
|
-
...f
|
55
|
-
},
|
56
|
-
$
|
57
|
-
);
|
58
|
-
});
|
59
|
-
return Object.assign(j, {
|
60
|
-
isStyled: !0,
|
61
|
-
className: i,
|
62
|
-
toString: () => `.${i}`
|
63
|
-
}), j;
|
64
|
-
};
|
65
|
-
export {
|
66
|
-
x as e
|
67
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const K=require("react"),O=require("./parse-tokens-p68muVgG.cjs");function $(s){var n,e,t="";if(typeof s=="string"||typeof s=="number")t+=s;else if(typeof s=="object")if(Array.isArray(s)){var o=s.length;for(n=0;n<o;n++)s[n]&&(e=$(s[n]))&&(t&&(t+=" "),t+=e)}else for(e in s)s[e]&&(t&&(t+=" "),t+=e);return t}function N(){for(var s,n,e=0,t="",o=arguments.length;e<o;e++)(s=arguments[e])&&(n=$(s))&&(t&&(t+=" "),t+=n);return t}const q=["passProps"],A=(s,n,e,t)=>{const o=({extend:u=s,element:S=e.element,className:w="",children:V,passProps:d=e.passProps,_vks:c=new Set,...r},v)=>{const f={passProps:d};e.attr&&Object.assign(f,e.attr),t&&Object.assign(f,t),e.defaultProps&&Object.assign(r,e.defaultProps),r&&Object.assign(f,r);const b=new Set(w.split(" ")),y=typeof u=="function"||typeof u=="object",h=y&&"isStyled"in u,E=y?u:S||u;if(!E)throw new Error("No element provided");const m=f.style||{};f.style||(f.style=m),Object.entries(m).forEach(([i,a])=>{const{result:l}=O.parseValueTokens(a);m[i]=l}),e.propValueKeys&&e.propValueKeys.forEach(i=>{const a=`css-${i}`,l=r[a];if(l===void 0)return;const g=`--props-${O.dashCase(i)}`;m[g]=l,c&&c.add(a)}),e.variantKeys&&e.variantKeys.forEach(i=>{const[a,l]=i.split("=");r[a]!==void 0?(b.add(`${a}-${r[a]}`),c&&c.add(a)):l!==void 0&&b.add(`${a}-${l}`)}),c&&(!y||!h)?c.forEach(i=>{if(!d)return delete f[i];if(d!==!0&&!d.includes(i))return delete f[i]}):h&&Object.assign(f,{_vks:c}),h||q.forEach(i=>delete f[i]);const C=N(n,...b);return K.createElement(E,{element:y?S:void 0,className:C,ref:v,...f},V)},j=K.forwardRef(o);return Object.assign(j,{isStyled:!0,className:n,toString:()=>`.${n}`}),j};exports.elementFactory=A;
|