@frontfriend/sdk 1.0.0 → 1.2.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/README.md +14 -3
- package/dist/browser.mjs +1 -1
- package/dist/cli.js +154 -154
- package/dist/components-config-schema.d.ts +9 -1
- package/dist/components-config-schema.js +1 -1
- package/dist/ffdc.js +1 -1
- package/dist/ffdc.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lib/core/adoption.js +1 -1
- package/dist/lib/core/api-client.js +1 -1
- package/dist/lib/core/application-adoption.js +1 -1
- package/dist/lib/core/classes-source.js +1 -1
- package/dist/lib/core/components-config-schema.js +1 -1
- package/dist/lib/core/credentials.js +2 -2
- package/dist/lib/core/token-artifact-client.js +6 -6
- package/dist/lib/core/token-artifact.d.ts +12 -0
- package/dist/lib/core/token-artifact.js +1 -1
- package/dist/lib/core/token-processor.js +5 -5
- package/dist/mcp.cjs +32 -32
- package/dist/next.js +2 -2
- package/dist/package.json +1 -1
- package/dist/vite.js +2 -2
- package/package.json +14 -15
package/README.md
CHANGED
|
@@ -315,15 +315,26 @@ See [Troubleshooting](https://frontfriend.dev/docs/troubleshooting/) for more he
|
|
|
315
315
|
|
|
316
316
|
## Token availability
|
|
317
317
|
|
|
318
|
-
`frontfriend init`
|
|
318
|
+
`frontfriend init` requires a login (`frontfriend login` or `FF_AUTH_TOKEN`) and reads tokens from Studio. It uses the token Release in `frontfriend.lock.json`; you can also select a Release or tag:
|
|
319
319
|
|
|
320
320
|
```sh
|
|
321
321
|
npx frontfriend init --version <release-id>
|
|
322
322
|
npx frontfriend init --tag <tag-name-or-id>
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
`--version` takes a Release ID, not an SDK version. A Studio refusal, such as a missing login or no access to the Design System, stops initialization.
|
|
326
|
+
|
|
327
|
+
Every online `init` keeps a verified copy of the selected tokens in `.frontfriend/artifacts`. When Studio is unreachable (network failure, timeout or server error), a signed-in `init` restores that copy. A first install during an outage has no copy to restore.
|
|
328
|
+
|
|
329
|
+
### Offline tokens
|
|
330
|
+
|
|
331
|
+
Offline tokens are a Workspace capability that Frontfriend enables on request; no plan includes them by default. With it, an online `init` also stores the Workspace's signed offline license next to the verified copies in `.frontfriend/artifacts`. Commit that directory to build and deploy without calling Frontfriend:
|
|
332
|
+
|
|
333
|
+
```sh
|
|
323
334
|
npx frontfriend init --offline
|
|
324
335
|
```
|
|
325
336
|
|
|
326
|
-
`--
|
|
337
|
+
`--offline` makes no network request and needs no login: it verifies the license and the copy locally. The license does not expire; the next online `init` replaces it, or removes it if the Workspace no longer has offline tokens. With the capability, an `init` during a Studio outage also tries the token CDN before the local copy, so a first install can succeed with an explicit Release or tag. Without the capability, `--offline` fails and the CDN is never read.
|
|
327
338
|
|
|
328
339
|
The default API uses the production token CDN automatically. For a custom API, set `token-cdn-url`, `FF_TOKEN_CDN_URL`, or `--token-cdn-url`. Set `token-cdn-url: false` to disable CDN delivery.
|
|
329
340
|
|
|
@@ -331,7 +342,7 @@ Downloads validate artifact identity and integrity. Access refusals and invalid
|
|
|
331
342
|
|
|
332
343
|
## CI authentication
|
|
333
344
|
|
|
334
|
-
Set `FF_AUTH_TOKEN` through your CI secret store for commands that need access to your workspace. Do not commit it to project configuration or print it in build logs.
|
|
345
|
+
Set `FF_AUTH_TOKEN` through your CI secret store for commands that need access to your workspace. Do not commit it to project configuration or print it in build logs. Online token delivery, private components and design rules require it; `init --offline` does not.
|
|
335
346
|
|
|
336
347
|
## Existing Tailwind clients
|
|
337
348
|
|
package/dist/browser.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Q=Object.create;var y=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var ee=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var te=(e,n)=>()=>(e&&(n=e(e=0)),n);var v=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),oe=(e,n)=>{for(var t in n)y(e,t,{get:n[t],enumerable:!0})},k=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Z(n))!ne.call(e,r)&&r!==t&&y(e,r,{get:()=>n[r],enumerable:!(o=Y(n,r))||o.enumerable});return e};var O=(e,n,t)=>(t=e!=null?Q(ee(e)):{},k(n||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),se=e=>k(y({},"__esModule",{value:!0}),e);var z=v((Ae,j)=>{function p(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function _(e,n){if(!p(e)||!p(n))return n===void 0?e:n;let t={...e};for(let[o,r]of Object.entries(n))t[o]=o in t?_(t[o],r):r;return t}function R(e,n,t=[],o=[]){if(e===void 0||n===void 0)return o;if(!p(e)||!p(n))return o.push(t.join(".")),o;for(let r of Object.keys(e))r in n&&R(e[r],n[r],[...t,r],o);return o}function M(e){return p(e)&&("styles"in e||"behavior"in e)}function D(e,n="component"){if(!M(e)||!p(e.styles)||e.behavior!==void 0&&!p(e.behavior)||Object.keys(e).some(o=>!["styles","behavior"].includes(o)))throw new TypeError(`Component ${n} must use the styles/behavior envelope`);let t=R(e.styles,e.behavior,[n]);if(t.length>0)throw new Error(`Component config styles/behavior conflict at ${t.join(", ")}`);return _(e.styles||{},e.behavior||{})}function re(e){if(!p(e))return e;let n=!1,t={};for(let[o,r]of Object.entries(e))t[o]=D(r,o),t[o]!==r&&(n=!0);return n?t:e}j.exports={isPlainObject:p,deepMerge:_,findTreeConflicts:R,isComponentEnvelope:M,toRuntimeComponentConfig:D,toRuntimeComponentsConfig:re}});var T=v((Ge,F)=>{var ie={$id:"https://frontfriend.dev/schemas/components-config.schema.json",type:"object",additionalProperties:{$ref:"#/$defs/componentConfig"},$defs:{componentConfig:{$ref:"#/$defs/componentEnvelope"},styleTree:{anyOf:[{type:"string"},{type:"object",additionalProperties:{$ref:"#/$defs/styleTree"}}]},behaviorTree:{anyOf:[{type:["string","number","boolean","null"]},{type:"array",items:{$ref:"#/$defs/behaviorTree"}},{type:"object",additionalProperties:{$ref:"#/$defs/behaviorTree"}}]},componentEnvelope:{type:"object",additionalProperties:!1,required:["styles"],properties:{styles:{type:"object",additionalProperties:{$ref:"#/$defs/styleTree"}},behavior:{type:"object",additionalProperties:{$ref:"#/$defs/behaviorTree"}}}}}};function ae(e){return typeof e=="string"&&e.trim().length>0}F.exports={componentsConfigSchema:ie,isCSSClassString:ae}});var $={};oe($,{CONFIGURED_COMPONENTS:()=>xe,resolveComponentConfig:()=>Ne});function P(e){return typeof e=="object"&&e!==null||typeof e=="function"}function s(e,n){return P(e)?e[n]:void 0}function i(e,n){let t=P(e)?e:null,o=t?Object.create(t):{},r=(u,d)=>Object.defineProperty(o,u,{value:d,enumerable:!0,writable:!0,configurable:!0});if(t)for(let u of Object.keys(t))r(u,t[u]);for(let u of Object.keys(n))r(u,n[u]);return o}function le(e,n){let t={};for(let o of n){let r=s(e,o);r!==void 0&&(t[o]=r)}return t}function a(...e){return e.find(n=>n!=null)||""}function c(...e){return e.find(Boolean)||{}}function C(e,n,t){return e[n]||le(e,t)}function A(e){return i(e,{default:a(e.default,e.main),outline:a(e.outline,e.tertiary),linkDestructive:a(e.linkDestructive,e.linkdestructive)})}function ue(e){let n=s(e,"variants"),t=c(e.variant,s(n,"variant")),o=c(e.size,s(n,"size")),r=c(e.iconPosition,s(n,"iconPosition")),u=c(e.fullwidth,s(n,"fullwidth")),d=s(e.slots,"icon")||{},B=s(d,"variants"),l=c(d.size,s(B,"size")),X=c(d.color,s(B,"color")),S=H=>{let g=s(r,H);return i(g,{sm:a(s(g,"sm"),s(g,"small")),lg:a(s(g,"lg"),s(g,"large"))})};return i(e,{variant:A(t),size:i(o,{icon:a(o.icon,s(s(r,"default"),"default")),"icon-xs":a(o["icon-xs"],o.xs,o.small,o.sm),"icon-sm":a(o["icon-sm"],o.small,o.sm),"icon-lg":a(o["icon-lg"],o.large,o.lg)}),iconPosition:i(r,{prefix:S("prefix"),suffix:S("suffix"),default:S("default")}),fullwidth:u,slots:i(e.slots,{icon:i(d,{size:i(l,{icon:a(l.icon,l.default),"icon-xs":a(l["icon-xs"],l.xs,l.small,l.sm,l.default),"icon-sm":a(l["icon-sm"],l.sm,l.default),"icon-lg":a(l["icon-lg"],l.lg,l.default)}),color:A(X)})})})}function pe(e){let n=e.variant,t=s(n,"subtle");return i(e,{variant:i(n,{default:a(s(n,"default"),s(n,"main")),outline:a(s(n,"outline"),s(n,"tertiary")),ghost:a(s(n,"ghost"),s(n,"tertiary")),link:a(s(n,"link"),s(n,"tertiary")),subtle:i(t,{default:a(s(t,"default"),s(t,"main"))})})})}function de(e){let n=e.slots,t=s(n,"caption");return i(e,{slots:i(n,{caption:i(t,{overlay:s(t,"overlay")??s(t,"root")})})})}function ce(e,n={}){let t=s(e.slots,"calendar")??n.calendar,o=s(t,"slots"),r=s(o,"range");return i(e,{slots:i(e.slots,{calendar:i(t,{slots:i(o,{range:i(r,{root:s(r,"root")??s(o,"root"),container:s(r,"container")??s(o,"content"),row:s(r,"row")??s(o,"row")})})})})})}function me(e){return i(e,{slots:C(e,"slots",Ce),states:C(e,"states",fe),props:C(e,"props",ge)})}function Se(e){return i(e,{slots:C(e,"slots",ye)})}function Oe(e){return i(e,{slots:C(e,"slots",ve)})}function G(e){return i(e.props,{padding:s(e.props,"padding")||e.padding})}function _e(e){return i(e,{props:G(e)})}function be(e){return i(e,{slots:C(e,"slots",Re),props:G(e)})}function Pe(e){return i(e,{root:e.root,slots:i(e.slots,{track:s(e.slots,"track")})})}function Ne(e,n,...t){if(!Object.prototype.hasOwnProperty.call(b,e))throw new TypeError(`No component configuration policy for "${String(e)}".`);if(n==null)return n;if(!P(n))throw new TypeError("Component config must be an object.");let o=n;return b[e](o,t[0])}var Ce,fe,ge,ye,ve,Re,b,xe,V=te(()=>{Ce=["header","title","description","content","action","footer"],fe=["noContent","outside"],ge=["footerAlign"];ye=["dialog","input","list","empty","group","separator","item","shortcut","combobox"];ve=["addon","button","text","input","textarea"];Re=["horizontal","vertical","container"];b={button:ue,badge:pe,calendar:de,card:me,command:Se,"date-slider":ce,"input-group":Oe,popover:_e,separator:be,spinner:Pe};xe=Object.freeze(Object.keys(b))});var U=v(($e,L)=>{var N=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,he=Object.getOwnPropertyNames,we=Object.prototype.hasOwnProperty,Be=(e,n)=>{for(var t in n)N(e,t,{get:n[t],enumerable:!0})},ke=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of he(n))!we.call(e,r)&&r!==t&&N(e,r,{get:()=>n[r],enumerable:!(o=Ie(n,r))||o.enumerable});return e},Me=e=>ke(N({},"__esModule",{value:!0}),e),K={};Be(K,{componentConfig:()=>De});L.exports=Me(K);var E=(V(),se($));function De(e,n){let t=e[n];return n==="date-slider"?(0,E.resolveComponentConfig)(n,t,{get calendar(){return e.calendar}}):(0,E.resolveComponentConfig)(n,t)}});var f=O(z(),1),J=O(T(),1),W=O(U(),1),je=typeof window<"u"&&typeof window.document<"u";function x(e){return typeof e!="string"?!1:e.startsWith("__v_")||e==="then"}function w(e=""){let n=new Map;return new Proxy({},{get(t,o){if(o===Symbol.toPrimitive||o==="valueOf")return()=>e;if(o==="toString"||o===Symbol.toStringTag)return()=>e;if(o==="constructor")return Object;if(!x(o))return n.has(o)||n.set(o,w(e)),n.get(o)},has(t,o){return!x(o)},ownKeys(){return[]},getOwnPropertyDescriptor(t,o){if(!x(o))return{enumerable:!0,configurable:!0}}})}var q=new Map;function ze(e){try{let n=e==="__FF_CONFIG__"?process.env.NEXT_PUBLIC_FF_CONFIG:process.env.NEXT_PUBLIC_FF_ICONS;if(!n)return null;let t=q.get(e);if(t?.serialized===n)return t.value;let o=JSON.parse(n);return(0,f.isPlainObject)(o)?(q.set(e,{serialized:n,value:o}),o):null}catch{return null}}function m(e){return e==="__FF_CONFIG__"&&typeof __FF_CONFIG__<"u"?__FF_CONFIG__:e==="__FF_ICONS__"&&typeof __FF_ICONS__<"u"?__FF_ICONS__:typeof globalThis<"u"&&globalThis[e]?globalThis[e]:je&&window[e]?window[e]:ze(e)}function Fe(e,n){return typeof n=="string"?(0,W.componentConfig)(Fe(e),n):!e||typeof e!="object"?w():(0,f.toRuntimeComponentsConfig)(e)}var I=new Map,h=new WeakMap,Ve=new Proxy({},{get(e,n){if(n===Symbol.toPrimitive||n==="valueOf")return()=>"";if(n==="toString"||n===Symbol.toStringTag)return()=>"[object Object]";if(n==="constructor")return Object;let t=m("__FF_CONFIG__");if(t&&n in t){let o=t[n];return h.has(o)||h.set(o,(0,f.toRuntimeComponentConfig)(o,String(n))),h.get(o)}return I.has(n)||I.set(n,w()),I.get(n)},has(){return!0},ownKeys(){return[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}),Ee=new Proxy({},{get(e,n){if(n===Symbol.toPrimitive||n==="valueOf")return()=>"";if(n==="toString"||n===Symbol.toStringTag)return()=>"[object Object]";if(n==="constructor")return Object;let t=m("__FF_ICONS__");return t&&n in t?t[n]:null},has(e,n){let t=m("__FF_ICONS__");return t?n in t:!1},ownKeys(){let e=m("__FF_ICONS__");return e?Object.keys(e):[]},getOwnPropertyDescriptor(e,n){let t=m("__FF_ICONS__");if(t&&n in t)return{enumerable:!0,configurable:!0,value:t[n]}}});var export_componentsConfigSchema=J.componentsConfigSchema;var export_isCSSClassString=J.isCSSClassString;export{export_componentsConfigSchema as componentsConfigSchema,Ve as config,Fe as ffdc,Ee as iconSet,export_isCSSClassString as isCSSClassString};
|
|
1
|
+
var re=Object.create;var v=Object.defineProperty;var ie=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty;var pe=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),de=(e,t)=>{for(var n in t)v(e,n,{get:t[n],enumerable:!0})},T=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ae(t))!ue.call(e,s)&&s!==n&&v(e,s,{get:()=>t[s],enumerable:!(o=ie(t,s))||o.enumerable});return e};var P=(e,t,n)=>(n=e!=null?re(le(e)):{},T(t||!e||!e.__esModule?v(n,"default",{value:e,enumerable:!0}):n,e)),ce=e=>T(v({},"__esModule",{value:!0}),e);var E=O((tt,A)=>{function c(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function N(e,t){if(!c(e)||!c(t))return t===void 0?e:t;let n={...e};for(let[o,s]of Object.entries(t))n[o]=o in n?N(n[o],s):s;return n}function x(e,t,n=[],o=[]){if(e===void 0||t===void 0)return o;if(!c(e)||!c(t))return o.push(n.join(".")),o;for(let s of Object.keys(e))s in t&&x(e[s],t[s],[...n,s],o);return o}function z(e){return c(e)&&("styles"in e||"behavior"in e)}function F(e,t="component"){if(!z(e)||!c(e.styles)||e.behavior!==void 0&&!c(e.behavior)||Object.keys(e).some(o=>!["styles","behavior"].includes(o)))throw new TypeError(`Component ${t} must use the styles/behavior envelope`);let n=x(e.styles,e.behavior,[t]);if(n.length>0)throw new Error(`Component config styles/behavior conflict at ${n.join(", ")}`);return N(e.styles||{},e.behavior||{})}function fe(e){if(!c(e))return e;let t=!1,n={};for(let[o,s]of Object.entries(e))n[o]=F(s,o),n[o]!==s&&(t=!0);return t?n:e}A.exports={isPlainObject:c,deepMerge:N,findTreeConflicts:x,isComponentEnvelope:z,toRuntimeComponentConfig:F,toRuntimeComponentsConfig:fe}});var K=O((nt,V)=>{var Ce=new Set(["after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]),ge=new Set(["active","focus","focus-visible","focus-within","hover"]),me=new Set(["sm","md","lg","xl","2xl","any-pointer-coarse","any-pointer-fine","any-pointer-none","contrast-less","contrast-more","forced-colors","inverted-colors","landscape","motion-reduce","motion-safe","noscript","pointer-coarse","pointer-fine","pointer-none","portrait","print","starting"]),ye=/^(?:min-|max-|@|supports-|in-(?!range$))/,Se=/^\[&(?::(?:active|focus|focus-visible|focus-within|hover))+\]$/;function ve(e){let t=[],n=0,o=0;for(let s=0;s<e.length;s+=1){let a=e[s];a==="["||a==="("?n+=1:(a==="]"||a===")")&&n>0?n-=1:a===":"&&n===0&&(t.push(e.slice(o,s)),o=s+1)}return t.push(e.slice(o)),{variants:t.slice(0,-1),utility:t[t.length-1]}}function $(e){return e.replace(/\/[\w-]+$/,"")}function _(e){let t=$(e);return Ce.has(t)||t.startsWith("[")&&t.includes("::")}function R(e){let t=$(e);return ge.has(t)||me.has(t)?!0:t.startsWith("[")?t.startsWith("[@")||Se.test(t):t.startsWith("not-")?R(t.slice(4)):ye.test(t)}function G(e){if(typeof e!="string"||!e.includes(":"))return null;let t=e.startsWith("!")?"!":"",{variants:n,utility:o}=ve(e.slice(t.length)),s=null,a=[];for(let p of n)s!==null&&!R(p)&&a.push(p),s===null&&_(p)&&(s=p);if(a.length===0)return null;let d=n.reduce((p,oe,se)=>_(oe)?se:p,-1),S=n.slice(0,d).filter(p=>!_(p)),u=n.slice(d+1),b=`${t}${[...S,...u.filter(p=>!R(p)),n[d],...u.filter(R),o].join(":")}`,f=n.filter(_),h=f.length>1?`${f.join(" and ")} are pseudo-elements, and a selector can hold only one`:`${a.join(", ")} cannot follow the pseudo-element ${s}; only hover, focus, focus-visible, focus-within, active, in-* and media, container or supports variants can`;return{className:e,pseudoElement:s,chained:a,suggestion:b,reason:h}}function Oe(e){return G(e)===null}V.exports={isCompilableClass:Oe,uncompilableClass:G}});var U=O((ot,L)=>{var{isCompilableClass:_e,uncompilableClass:Re}=K(),be={$id:"https://frontfriend.dev/schemas/components-config.schema.json",type:"object",additionalProperties:{$ref:"#/$defs/componentConfig"},$defs:{componentConfig:{$ref:"#/$defs/componentEnvelope"},styleTree:{anyOf:[{type:"string"},{type:"object",additionalProperties:{$ref:"#/$defs/styleTree"}}]},behaviorTree:{anyOf:[{type:["string","number","boolean","null"]},{type:"array",items:{$ref:"#/$defs/behaviorTree"}},{type:"object",additionalProperties:{$ref:"#/$defs/behaviorTree"}}]},componentEnvelope:{type:"object",additionalProperties:!1,required:["styles"],properties:{styles:{type:"object",additionalProperties:{$ref:"#/$defs/styleTree"}},behavior:{type:"object",additionalProperties:{$ref:"#/$defs/behaviorTree"}}}}}};function he(e){return typeof e=="string"&&e.trim().length>0}L.exports={componentsConfigSchema:be,isCSSClassString:he,isCompilableClass:_e,uncompilableClass:Re}});var X={};de(X,{CONFIGURED_COMPONENTS:()=>Ke,resolveComponentConfig:()=>Ve});function w(e){return typeof e=="object"&&e!==null||typeof e=="function"}function r(e,t){return w(e)?e[t]:void 0}function i(e,t){let n=w(e)?e:null,o=n?Object.create(n):{},s=(a,d)=>Object.defineProperty(o,a,{value:d,enumerable:!0,writable:!0,configurable:!0});if(n)for(let a of Object.keys(n))s(a,n[a]);for(let a of Object.keys(t))s(a,t[a]);return o}function Pe(e,t){let n={};for(let o of t){let s=r(e,o);s!==void 0&&(n[o]=s)}return n}function l(...e){return e.find(t=>t!=null)||""}function C(...e){return e.find(Boolean)||{}}function g(e,t,n){return e[t]||Pe(e,n)}function W(e){return i(e,{default:l(e.default,e.main),outline:l(e.outline,e.tertiary),linkDestructive:l(e.linkDestructive,e.linkdestructive)})}function Ne(e){let t=r(e,"variants"),n=C(e.variant,r(t,"variant")),o=C(e.size,r(t,"size")),s=C(e.iconPosition,r(t,"iconPosition")),a=C(e.fullwidth,r(t,"fullwidth")),d=r(e.slots,"icon")||{},S=r(d,"variants"),u=C(d.size,r(S,"size")),b=C(d.color,r(S,"color")),f=h=>{let p=r(s,h);return i(p,{sm:l(r(p,"sm"),r(p,"small")),lg:l(r(p,"lg"),r(p,"large"))})};return i(e,{variant:W(n),size:i(o,{icon:l(o.icon,r(r(s,"default"),"default")),"icon-xs":l(o["icon-xs"],o.xs,o.small,o.sm),"icon-sm":l(o["icon-sm"],o.small,o.sm),"icon-lg":l(o["icon-lg"],o.large,o.lg)}),iconPosition:i(s,{prefix:f("prefix"),suffix:f("suffix"),default:f("default")}),fullwidth:a,slots:i(e.slots,{icon:i(d,{size:i(u,{icon:l(u.icon,u.default),"icon-xs":l(u["icon-xs"],u.xs,u.small,u.sm,u.default),"icon-sm":l(u["icon-sm"],u.sm,u.default),"icon-lg":l(u["icon-lg"],u.lg,u.default)}),color:W(b)})})})}function xe(e){let t=e.variant,n=r(t,"subtle");return i(e,{variant:i(t,{default:l(r(t,"default"),r(t,"main")),outline:l(r(t,"outline"),r(t,"tertiary")),ghost:l(r(t,"ghost"),r(t,"tertiary")),link:l(r(t,"link"),r(t,"tertiary")),subtle:i(n,{default:l(r(n,"default"),r(n,"main"))})})})}function Ie(e){let t=e.slots,n=r(t,"caption");return i(e,{slots:i(t,{caption:i(n,{overlay:r(n,"overlay")??r(n,"root")})})})}function we(e,t={}){let n=r(e.slots,"calendar")??t.calendar,o=r(n,"slots"),s=r(o,"range");return i(e,{slots:i(e.slots,{calendar:i(n,{slots:i(o,{range:i(s,{root:r(s,"root")??r(o,"root"),container:r(s,"container")??r(o,"content"),row:r(s,"row")??r(o,"row")})})})})})}function De(e){return i(e,{slots:g(e,"slots",Be),states:g(e,"states",ke),props:g(e,"props",Me)})}function Te(e){return i(e,{slots:g(e,"slots",je)})}function Fe(e){return i(e,{slots:g(e,"slots",ze)})}function q(e){return i(e.props,{padding:r(e.props,"padding")||e.padding})}function Ae(e){return i(e,{props:q(e)})}function $e(e){return i(e,{slots:g(e,"slots",Ee),props:q(e)})}function Ge(e){return i(e,{root:e.root,slots:i(e.slots,{track:r(e.slots,"track")})})}function Ve(e,t,...n){if(!Object.prototype.hasOwnProperty.call(I,e))throw new TypeError(`No component configuration policy for "${String(e)}".`);if(t==null)return t;if(!w(t))throw new TypeError("Component config must be an object.");let o=t;return I[e](o,n[0])}var Be,ke,Me,je,ze,Ee,I,Ke,J=pe(()=>{Be=["header","title","description","content","action","footer"],ke=["noContent","outside"],Me=["footerAlign"];je=["dialog","input","list","empty","group","separator","item","shortcut","combobox"];ze=["addon","button","text","input","textarea"];Ee=["horizontal","vertical","container"];I={button:Ne,badge:xe,calendar:Ie,card:De,command:Te,"date-slider":we,"input-group":Fe,popover:Ae,separator:$e,spinner:Ge};Ke=Object.freeze(Object.keys(I))});var Z=O((st,Q)=>{var B=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,We=Object.prototype.hasOwnProperty,qe=(e,t)=>{for(var n in t)B(e,n,{get:t[n],enumerable:!0})},Xe=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ue(t))!We.call(e,s)&&s!==n&&B(e,s,{get:()=>t[s],enumerable:!(o=Le(t,s))||o.enumerable});return e},Je=e=>Xe(B({},"__esModule",{value:!0}),e),H={};qe(H,{componentConfig:()=>Ye});Q.exports=Je(H);var Y=(J(),ce(X));function Ye(e,t){let n=e[t];return t==="date-slider"?(0,Y.resolveComponentConfig)(t,n,{get calendar(){return e.calendar}}):(0,Y.resolveComponentConfig)(t,n)}});var m=P(E(),1),te=P(U(),1),ne=P(Z(),1),He=typeof window<"u"&&typeof window.document<"u";function k(e){return typeof e!="string"?!1:e.startsWith("__v_")||e==="then"}function j(e=""){let t=new Map;return new Proxy({},{get(n,o){if(o===Symbol.toPrimitive||o==="valueOf")return()=>e;if(o==="toString"||o===Symbol.toStringTag)return()=>e;if(o==="constructor")return Object;if(!k(o))return t.has(o)||t.set(o,j(e)),t.get(o)},has(n,o){return!k(o)},ownKeys(){return[]},getOwnPropertyDescriptor(n,o){if(!k(o))return{enumerable:!0,configurable:!0}}})}var ee=new Map;function Qe(e){try{let t=e==="__FF_CONFIG__"?process.env.NEXT_PUBLIC_FF_CONFIG:process.env.NEXT_PUBLIC_FF_ICONS;if(!t)return null;let n=ee.get(e);if(n?.serialized===t)return n.value;let o=JSON.parse(t);return(0,m.isPlainObject)(o)?(ee.set(e,{serialized:t,value:o}),o):null}catch{return null}}function y(e){return e==="__FF_CONFIG__"&&typeof __FF_CONFIG__<"u"?__FF_CONFIG__:e==="__FF_ICONS__"&&typeof __FF_ICONS__<"u"?__FF_ICONS__:typeof globalThis<"u"&&globalThis[e]?globalThis[e]:He&&window[e]?window[e]:Qe(e)}function Ze(e,t){return typeof t=="string"?(0,ne.componentConfig)(Ze(e),t):!e||typeof e!="object"?j():(0,m.toRuntimeComponentsConfig)(e)}var M=new Map,D=new WeakMap,rt=new Proxy({},{get(e,t){if(t===Symbol.toPrimitive||t==="valueOf")return()=>"";if(t==="toString"||t===Symbol.toStringTag)return()=>"[object Object]";if(t==="constructor")return Object;let n=y("__FF_CONFIG__");if(n&&t in n){let o=n[t];return D.has(o)||D.set(o,(0,m.toRuntimeComponentConfig)(o,String(t))),D.get(o)}return M.has(t)||M.set(t,j()),M.get(t)},has(){return!0},ownKeys(){return[]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}),it=new Proxy({},{get(e,t){if(t===Symbol.toPrimitive||t==="valueOf")return()=>"";if(t==="toString"||t===Symbol.toStringTag)return()=>"[object Object]";if(t==="constructor")return Object;let n=y("__FF_ICONS__");return n&&t in n?n[t]:null},has(e,t){let n=y("__FF_ICONS__");return n?t in n:!1},ownKeys(){let e=y("__FF_ICONS__");return e?Object.keys(e):[]},getOwnPropertyDescriptor(e,t){let n=y("__FF_ICONS__");if(n&&t in n)return{enumerable:!0,configurable:!0,value:n[t]}}});var export_componentsConfigSchema=te.componentsConfigSchema;var export_isCSSClassString=te.isCSSClassString;export{export_componentsConfigSchema as componentsConfigSchema,rt as config,Ze as ffdc,it as iconSet,export_isCSSClassString as isCSSClassString};
|