fluid-primitives 0.5.1 → 0.6.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/Resources/Public/JavaScript/dist/{Accordion-DKI311fM.js → Accordion-BcKzcS8k.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Checkbox-6y2FpZnG.js → Checkbox-6PYAIX3u.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Client-BEjJ50yU.js → Client-6Iwe-j89.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Clipboard-DjmgPfF-.js → Clipboard-DBOxpmyP.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Collapsible-vt3SBSxU.js → Collapsible-PDQY_Qe7.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Dialog-CraJg9t0.js → Dialog-RFdHrc0M.js} +1 -1
- package/Resources/Public/JavaScript/dist/{ScrollArea-Bt-6NL9-.js → ScrollArea-D0pn7wBC.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Select-BnZW1VCR.js → Select-5e5MbWtV.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Tabs-CHv6Ufhf.js → Tabs-CtsfAYSl.js} +1 -1
- package/Resources/Public/JavaScript/dist/{Tooltip-BgY_8hfa.js → Tooltip-Cr9vsVp_.js} +1 -1
- package/Resources/Public/JavaScript/dist/accordion.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/accordion.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/accordion.js +1 -1
- package/Resources/Public/JavaScript/dist/checkbox.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/checkbox.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/checkbox.js +1 -1
- package/Resources/Public/JavaScript/dist/client.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/client.js +1 -1
- package/Resources/Public/JavaScript/dist/clipboard.d.ts +3 -3
- package/Resources/Public/JavaScript/dist/clipboard.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/clipboard.js +1 -1
- package/Resources/Public/JavaScript/dist/collapsible.d.ts +3 -3
- package/Resources/Public/JavaScript/dist/collapsible.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/collapsible.js +1 -1
- package/Resources/Public/JavaScript/dist/dialog.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/dialog.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/dialog.js +1 -1
- package/Resources/Public/JavaScript/dist/{index-u51T4Hsb.d.ts → index-BxBl3DfU.d.ts} +1 -1
- package/Resources/Public/JavaScript/dist/scroll-area.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/scroll-area.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/scroll-area.js +1 -1
- package/Resources/Public/JavaScript/dist/select.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/select.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/select.js +1 -1
- package/Resources/Public/JavaScript/dist/tabs.d.ts +3 -3
- package/Resources/Public/JavaScript/dist/tabs.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/tabs.js +1 -1
- package/Resources/Public/JavaScript/dist/tooltip.d.ts +1 -1
- package/Resources/Public/JavaScript/dist/tooltip.entry.js +1 -1
- package/Resources/Public/JavaScript/dist/tooltip.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/accordion";var i=class extends e{name=`accordion`;initMachine(e){return new t(r.machine,{collapsible:!0,...e})}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElements(`item`);t.forEach(e=>{this.spreadProps(e,this.api.getItemProps({value:e.getAttribute(`data-value`),disabled:e.getAttribute(`data-disabled`)===`true`}))});let n=this.getElements(`item-trigger`);n.forEach(e=>{this.spreadProps(e,this.api.getItemTriggerProps({value:e.getAttribute(`data-value`),disabled:e.getAttribute(`data-disabled`)===`true`}))});let r=this.getElements(`item-content`);r.forEach(e=>{this.spreadProps(e,this.api.getItemContentProps({value:e.getAttribute(`data-value`),disabled:e.getAttribute(`data-disabled`)===`true`}))});let i=this.getElements(`item-indicator`);i.forEach(e=>{this.spreadProps(e,this.api.getItemIndicatorProps({value:e.getAttribute(`data-value`),disabled:e.getAttribute(`data-disabled`)===`true`}))}),this.getElements(`item-header`)}};export{i as Accordion};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/checkbox";var i=class extends e{name=`checkbox`;initMachine(e){return new t(r.machine,e)}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElement(`label`);t&&this.spreadProps(t,this.api.getLabelProps());let n=this.getElement(`control`);n&&this.spreadProps(n,this.api.getControlProps());let r=this.getElement(`indicator`);r&&this.spreadProps(r,this.api.getIndicatorProps());let i=this.getElement(`hidden-input`);i&&this.spreadProps(i,this.api.getHiddenInputProps())}};export{i as Checkbox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{INIT_STATE as e,MachineStatus as t,createScope as n,mergeProps as r}from"@zag-js/core";import{ListCollection as i}from"@zag-js/collection";import{proxy as a,subscribe as o}from"@zag-js/store";import{compact as s,identity as c,isEqual as l,isFunction as u,isString as d,runIfFn as f,toArray as p,warn as m}from"@zag-js/utils";import{createNormalizer as h}from"@zag-js/types";import{nanoid as g}from"nanoid";var _=class{document;machine;api;hydrator=null;userProps;get doc(){return this.document}constructor(e,t=document){this.document=t,this.userProps=e,this.machine=this.initMachine(e),this.api=this.initApi()}init(){this.hydrator=new b(this.name,this.machine.scope.id,this.machine.scope.ids,this.doc),this.render(),this.machine.subscribe(()=>{this.api=this.initApi(),this.render()}),this.machine.start()}updateProps(e){this.machine.stop(),this.machine=this.initMachine({...this.userProps,...e}),this.api=this.initApi(),this.init()}destroy=()=>{this.machine.stop(),this.hydrator?.destroy()};spreadProps(e,t){
|
|
1
|
+
import{INIT_STATE as e,MachineStatus as t,createScope as n,mergeProps as r}from"@zag-js/core";import{ListCollection as i}from"@zag-js/collection";import{proxy as a,subscribe as o}from"@zag-js/store";import{compact as s,identity as c,isEqual as l,isFunction as u,isString as d,runIfFn as f,toArray as p,warn as m}from"@zag-js/utils";import{createNormalizer as h}from"@zag-js/types";import{nanoid as g}from"nanoid";var _=class{document;machine;api;hydrator=null;userProps;get doc(){return this.document}constructor(e,t=document){this.document=t,this.userProps=e,this.machine=this.initMachine(e),this.api=this.initApi()}init(){this.hydrator=new b(this.name,this.machine.scope.id,this.machine.scope.ids,this.doc),this.render(),this.machine.subscribe(()=>{this.api=this.initApi(),this.render()}),this.machine.start()}updateProps(e){this.machine.stop(),this.machine=this.initMachine({...this.userProps,...e}),this.api=this.initApi(),this.init()}destroy=()=>{this.machine.stop(),this.hydrator?.destroy()};spreadProps(e,t){P(e,t,this.machine.scope.id)}getElement(e,t){return this.hydrator?.getElement(e,t)||null}getElements(e,t){return this.hydrator?.getElements(e,t)||[]}portalElement(e,t=this.doc.body){e&&e.parentNode!==t&&(t.appendChild(e),e.setAttribute(`data-portalled`,`true`))}};function v(e,t){let n=window.FluidPrimitives.hydrationData;return!n||typeof n!=`object`?null:e?n[e]?t?n[e][t]||null:n[e]:null:n}function y(e,t){let n=v(e);n&&Object.keys(n).forEach(r=>{if(n[r].controlled)return;let i=t(n[r]);i&&(window.FluidPrimitives.uncontrolledInstances[e]||(window.FluidPrimitives.uncontrolledInstances[e]={}),window.FluidPrimitives.uncontrolledInstances[e][r]=i)})}var b=class{componentName;doc;rootId;ids;elementRefs=new Map;constructor(e,t,n={},r=document){if(this.componentName=e,this.doc=r,!t)throw Error(`Root ID is required for component hydration: ${e}`);this.rootId=t,this.ids=n}getElement(e,t=this.doc){if(this.elementRefs.has(e))return this.elementRefs.get(e)||null;let n=null;return n=this.ids[e]?t.querySelector(`#${this.ids[e]}`):t.querySelector(`[data-hydrate-${this.componentName}="${this.rootId}"][data-part="${e}"][data-scope="${this.componentName}"]`),n&&(t===this.doc&&this.elementRefs.set(e,n),n.removeAttribute(`data-hydrate-${this.componentName}`),n.__rootId=this.rootId),n}getElements(e,t=this.doc){if(this.elementRefs.has(e))return this.elementRefs.get(e);let n=[];return n=this.ids[e]?Array.from(t.querySelectorAll(`#${this.ids[e]}`)):Array.from(t.querySelectorAll(`[data-hydrate-${this.componentName}="${this.rootId}"][data-part="${e}"][data-scope="${this.componentName}"]`)),t===this.doc&&this.elementRefs.set(e,n),n.forEach(e=>e.removeAttribute(`data-hydrate-${this.componentName}`)),n}generateRefAttributesString(e){let t=this.ids[e]||`${this.rootId}-${e}`;return`data-scope="${this.componentName}" data-part="${e}" data-hydrate-${this.componentName}="${t}"`}setRefAttributes(e,t){let n=this.generateRefAttributesString(t),r=n.split(` `).map(e=>e.trim());r.forEach(t=>{let[n,r]=t.split(`=`);e.setAttribute(n,r.replace(/"/g,``))})}destroy(){this.elementRefs.clear()}};function x(e){let t=new i({items:e.items,itemToValue:e.itemToValueKey?t=>t?.[e.itemToValueKey]:void 0,itemToString:e.itemToStringKey?t=>t?.[e.itemToStringKey]:void 0,isItemDisabled:e.isItemDisabledKey?t=>t?.[e.isItemDisabledKey]:void 0,groupBy:e.groupByKey?t=>{let n=e.groupByKey;if(n)return n.includes(`.`)?n.split(`.`).reduce((e,t)=>e?e[t]:void 0,t):t?.[n]}:void 0});return t}function S(e){let t=e().value??e().defaultValue;e().debug&&console.log(`[bindable > ${e().debug}] initial`,t);let n=e().isEqual??Object.is,r=a({value:t}),i=()=>e().value!==void 0;return{initial:t,ref:r,get(){return i()?e().value:r.value},set(t){let a=r.value,o=u(t)?t(a):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:o,prev:a}),i()||(r.value=o),n(o,a)||e().onChange?.(o,a)},invoke(t,n){e().onChange?.(t,n)},hash(t){return e().hash?.(t)??String(t)}}}S.cleanup=e=>{},S.ref=e=>{let t=e;return{get:()=>t,set:e=>{t=e}}};function C(e){let t={current:e};return{get(e){return t.current[e]},set(e,n){t.current[e]=n}}}var w=class{scope;ctx;prop;state;refs;computed;event={type:``};previousEvent;effects=new Map;transition=null;cleanups=[];subscriptions=[];getEvent=()=>({...this.event,current:()=>this.event,previous:()=>this.previousEvent});getState=()=>({...this.state,matches:(...e)=>e.includes(this.state.get()),hasTag:e=>!!this.machine.states[this.state.get()]?.tags?.includes(e)});debug=(...e)=>{this.machine.debug&&console.log(...e)};notify=()=>{this.publish()};constructor(t,r={}){this.machine=t;let{id:i,ids:a,getRootNode:c}=f(r);this.scope=n({id:i,ids:a,getRootNode:c});let l=e=>{let n=f(r),i=t.props?.({props:s(n),scope:this.scope})??n;return i[e]};this.prop=l;let u=t.context?.({prop:l,bindable:S,scope:this.scope,flush(e){queueMicrotask(e)},getContext(){return d},getComputed(){return p},getRefs(){return m},getEvent:this.getEvent.bind(this)});u&&Object.values(u).forEach(e=>{let t=o(e.ref,()=>this.notify());this.cleanups.push(t)});let d={get(e){return u?.[e].get()},set(e,t){u?.[e].set(t)},initial(e){return u?.[e].initial},hash(e){let t=u?.[e].get();return u?.[e].hash(t)}};this.ctx=d;let p=e=>t.computed?.[e]({context:d,event:this.getEvent(),prop:l,refs:this.refs,scope:this.scope,computed:p})??{};this.computed=p;let m=C(t.refs?.({prop:l,context:d})??{});this.refs=m;let h=S(()=>({defaultValue:t.initialState({prop:l}),onChange:(n,r)=>{if(r){let e=this.effects.get(r);e?.(),this.effects.delete(r)}r&&this.action(t.states[r]?.exit),this.action(this.transition?.actions);let i=this.effect(t.states[n]?.effects);if(i&&this.effects.set(n,i),r===e){this.action(t.entry);let n=this.effect(t.effects);n&&this.effects.set(e,n)}this.action(t.states[n]?.entry)}}));this.state=h,this.cleanups.push(o(this.state.ref,()=>this.notify()))}send=e=>{this.status===t.Started&&queueMicrotask(()=>{this.previousEvent=this.event,this.event=e,this.debug(`send`,e);let t=this.state.get(),n=this.machine.states[t].on?.[e.type]??this.machine.on?.[e.type],r=this.choose(n);if(!r)return;this.transition=r;let i=r.target??t;this.debug(`transition`,r);let a=i!==t;a?this.state.set(i):this.action(r.actions)})};action=e=>{let t=u(e)?e(this.getParams()):e;if(!t)return;let n=t.map(e=>{let t=this.machine.implementations?.actions?.[e];return t||m(`[zag-js] No implementation found for action "${JSON.stringify(e)}"`),t});for(let e of n)e?.(this.getParams())};guard=e=>u(e)?e(this.getParams()):this.machine.implementations?.guards?.[e](this.getParams());effect=e=>{let t=u(e)?e(this.getParams()):e;if(!t)return;let n=t.map(e=>{let t=this.machine.implementations?.effects?.[e];return t||m(`[zag-js] No implementation found for effect "${JSON.stringify(e)}"`),t}),r=[];for(let e of n){let t=e?.(this.getParams());t&&r.push(t)}return()=>r.forEach(e=>e?.())};choose=e=>p(e).find(e=>{let t=!e.guard;return d(e.guard)?t=!!this.guard(e.guard):u(e.guard)&&(t=e.guard(this.getParams())),t});start(){this.status=t.Started,this.debug(`initializing...`),this.state.invoke(this.state.initial,e),this.setupTrackers()}stop(){this.effects.forEach(e=>e?.()),this.effects.clear(),this.transition=null,this.action(this.machine.exit),this.cleanups.forEach(e=>e()),this.cleanups=[],this.status=t.Stopped,this.debug(`unmounting...`)}subscribe=e=>{this.subscriptions.push(e)};status=t.NotStarted;get service(){return{state:this.getState(),send:this.send,context:this.ctx,prop:this.prop,scope:this.scope,refs:this.refs,computed:this.computed,event:this.getEvent(),getStatus:()=>this.status}}publish=()=>{this.callTrackers(),this.subscriptions.forEach(e=>e(this.service))};trackers=[];setupTrackers=()=>{this.machine.watch?.(this.getParams())};callTrackers=()=>{this.trackers.forEach(({deps:e,fn:t})=>{let n=e.map(e=>e());l(t.prev,n)||(t(),t.prev=n)})};getParams=()=>({state:this.getState(),context:this.ctx,event:this.getEvent(),prop:this.prop,send:this.send,action:this.action,guard:this.guard,track:(e,t)=>{t.prev=e.map(e=>e()),this.trackers.push({deps:e,fn:t})},refs:this.refs,computed:this.computed,flush:c,scope:this.scope,choose:this.choose})};const T={onFocus:`onFocusin`,onBlur:`onFocusout`,onChange:`onInput`,onDoubleClick:`onDblclick`,htmlFor:`for`,className:`class`,defaultValue:`value`,defaultChecked:`checked`},E=new Set([`viewBox`,`preserveAspectRatio`]),D=e=>{let t=``;for(let n in e){let r=e[n];if(r==null)continue;n.startsWith(`--`)||(n=n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)),t+=`${n}:${r};`}return t},O=h(e=>Object.entries(e).reduce((e,[t,n])=>{if(n===void 0)return e;if(t in T&&(t=T[t]),t===`style`&&typeof n==`object`)return e.style=D(n),e;let r=E.has(t)?t:t.toLowerCase();return e[r]=n,e},{})),k=new Map,A=new Set([`value`,`checked`,`htmlFor`]),j=new Set([`viewBox`,`preserveAspectRatio`]),M=e=>e.tagName===`svg`||e.namespaceURI===`http://www.w3.org/2000/svg`,N=(e,t)=>{let n=M(e)&&j.has(t);return n?t:t.toLowerCase()};function P(e,t,n){e.__spreadId||=`spread_${g()}`;let r=``;r=n?`${e.__spreadId}_${n}`:`${e.__spreadId}`;let i=k.get(r)||{},a=Object.keys(t),o=(t,n)=>{e.addEventListener(t.toLowerCase(),n)},s=(t,n)=>{e.removeEventListener(t.toLowerCase(),n)},c=e=>e.startsWith(`on`),l=e=>!e.startsWith(`on`),u=e=>o(e.substring(2),t[e]),d=e=>s(e.substring(2),t[e]),f=n=>{let r=t[n],a=i[n];if(r!==a){if(n===`children`){e.textContent=r;return}if(typeof r==`boolean`&&(n.includes(`aria-`)||(r||=void 0)),r!=null){A.has(n)?e[n]=r:e.setAttribute(N(e,n),r);return}e.removeAttribute(N(e,n))}};for(let n in i)t[n]??e.removeAttribute(N(e,n));let p=Object.keys(i).filter(c);return p.forEach(e=>{s(e.substring(2),i[e])}),a.filter(c).forEach(u),a.filter(l).forEach(f),k.set(r,t),function(){a.filter(c).forEach(d)}}export{_ as Component,b as ComponentHydrator,w as Machine,v as getHydrationData,x as getListCollectionFromHydrationData,y as initAllComponentInstances,r as mergeProps,O as normalizeProps,P as spreadProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/clipboard";var i=class extends e{name=`clipboard`;initMachine(e){return new t(r.machine,e)}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElement(`label`);t&&this.spreadProps(t,this.api.getLabelProps());let n=this.getElement(`control`);n&&this.spreadProps(n,this.api.getControlProps());let r=this.getElement(`input`);r&&this.spreadProps(r,this.api.getInputProps());let i=this.getElement(`indicator-copied`);i&&this.spreadProps(i,this.api.getIndicatorProps({copied:!0}));let a=this.getElement(`indicator-idle`);a&&this.spreadProps(a,this.api.getIndicatorProps({copied:!1}));let o=this.getElement(`trigger`);o&&this.spreadProps(o,this.api.getTriggerProps())}};export{i as Clipboard};
|
package/Resources/Public/JavaScript/dist/{Collapsible-vt3SBSxU.js → Collapsible-PDQY_Qe7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/collapsible";var i=class extends e{name=`collapsible`;initMachine(e){return new t(r.machine,e)}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElement(`trigger`);t&&this.spreadProps(t,this.api.getTriggerProps());let n=this.getElement(`trigger-text`);n&&n.dataset.openText&&n.dataset.closeText&&(n.textContent=this.api.open?n.dataset.closeText:n.dataset.openText);let r=this.getElement(`content`);r&&this.spreadProps(r,this.api.getContentProps())}};export{i as Collapsible};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/dialog";var i=class extends e{name=`dialog`;initMachine(e){return new t(r.machine,e)}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElements(`trigger`);e.forEach(e=>{this.spreadProps(e,this.api.getTriggerProps())});let t=this.getElement(`backdrop`);t&&this.spreadProps(t,this.api.getBackdropProps());let n=this.getElement(`positioner`);n&&this.spreadProps(n,this.api.getPositionerProps());let r=this.getElement(`content`);r&&this.spreadProps(r,this.api.getContentProps());let i=this.getElement(`title`);i&&this.spreadProps(i,this.api.getTitleProps());let a=this.getElement(`description`);a&&this.spreadProps(a,this.api.getDescriptionProps());let o=this.getElements(`close-trigger`);o.forEach(e=>{this.spreadProps(e,this.api.getCloseTriggerProps())})}};export{i as Dialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/scroll-area";var i=class extends e{name=`scroll-area`;initMachine(e){return new t(r.machine,e)}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElement(`viewport`);t&&this.spreadProps(t,this.api.getViewportProps());let n=this.getElement(`content`);n&&this.spreadProps(n,this.api.getContentProps());let r=this.getElements(`scrollbar`);r.forEach(e=>{this.spreadProps(e,this.api.getScrollbarProps({orientation:e.getAttribute(`data-orientation`)}))});let i=this.getElement(`corner`);i&&this.spreadProps(i,this.api.getCornerProps());let a=this.getElements(`thumb`);a.forEach(e=>{this.spreadProps(e,this.api.getThumbProps({orientation:e.getAttribute(`data-orientation`)}))})}};export{i as ScrollArea};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,getListCollectionFromHydrationData as n,mergeProps as r,normalizeProps as i}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,getListCollectionFromHydrationData as n,mergeProps as r,normalizeProps as i}from"./Client-6Iwe-j89.js";import*as a from"@zag-js/select";var o=class extends e{name=`select`;initMachine(e){return new t(a.machine,{...e,get collection(){return n(e.collection)}})}initApi(){return a.connect(this.machine.service,i)}render=()=>{let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElement(`control`);t&&this.spreadProps(t,this.api.getControlProps());let n=this.getElement(`hidden-select`);n&&this.spreadProps(n,this.api.getHiddenSelectProps());let i=this.getElement(`label`);i&&this.spreadProps(i,this.api.getLabelProps());let a=this.getElement(`trigger`);a&&this.spreadProps(a,this.api.getTriggerProps());let o=this.getElement(`positioner`);o&&this.spreadProps(o,this.api.getPositionerProps());let s=this.getElement(`content`);s&&this.spreadProps(s,this.api.getContentProps());let c=this.getElement(`value-text`);c&&this.spreadProps(c,r(this.api.getValueTextProps(),{children:this.api.valueAsString||c.dataset.placeholder}));let l=this.getElements(`item-group`);l.forEach(e=>{this.spreadProps(e,this.api.getItemGroupProps({id:e.dataset.id}));let t=this.getElement(`item-group-label`,e);t&&this.spreadProps(t,this.api.getItemGroupLabelProps({htmlFor:e.dataset.id}))});let u=this.getElements(`item`);u.forEach(e=>{let t=this.api.collection.find(e.dataset.value);t&&this.spreadProps(e,this.api.getItemProps({item:t}))});let d=this.getElements(`item-text`);d.forEach(e=>{let t=this.api.collection.find(e.dataset.value);t&&this.spreadProps(e,this.api.getItemTextProps({item:t}))});let f=this.getElements(`item-indicator`);f.forEach(e=>{let t=this.api.collection.find(e.dataset.value);t&&this.spreadProps(e,this.api.getItemIndicatorProps({item:t}))});let p=this.getElement(`clear-trigger`);p&&this.spreadProps(p,this.api.getClearTriggerProps());let m=this.getElement(`indicator`);m&&this.spreadProps(m,this.api.getIndicatorProps())}};export{o as Select};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/tabs";var i=class extends e{name=`tabs`;initMachine(e){return new t(r.machine,e)}initApi(){return r.connect(this.machine.service,n)}render=()=>{let e=this.getElement(`root`);e&&this.spreadProps(e,this.api.getRootProps());let t=this.getElement(`list`);t&&this.spreadProps(t,this.api.getListProps());let n=this.getElements(`trigger`);n.forEach(e=>{this.spreadProps(e,this.api.getTriggerProps({value:e.dataset.value,disabled:e.getAttribute(`data-disabled`)===`true`}))});let r=this.getElements(`content`);r.forEach(e=>{this.spreadProps(e,this.api.getContentProps({value:e.dataset.value}))});let i=this.getElement(`indicator`);i&&this.spreadProps(i,this.api.getIndicatorProps())}};export{i as Tabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,Machine as t,normalizeProps as n}from"./Client-
|
|
1
|
+
import{Component as e,Machine as t,normalizeProps as n}from"./Client-6Iwe-j89.js";import*as r from"@zag-js/tooltip";var i=class extends e{name=`tooltip`;initMachine(e){return new t(r.machine,{interactive:!0,...e,positioning:{placement:`top`,gutter:6,...e.positioning}})}initApi(){return r.connect(this.machine.service,n)}render(){let e=this.getElement(`trigger`);e&&this.spreadProps(e,this.api.getTriggerProps());let t=this.getElement(`positioner`);t&&this.spreadProps(t,this.api.getPositionerProps());let n=this.getElement(`arrow`);n&&this.spreadProps(n,this.api.getArrowProps());let r=this.getElement(`arrow-tip`);r&&this.spreadProps(r,this.api.getArrowTipProps());let i=this.getElement(`content`);i&&this.spreadProps(i,this.api.getContentProps())}};export{i as Tooltip};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
2
|
import * as _zag_js_types0 from "@zag-js/types";
|
|
3
3
|
import * as accordion from "@zag-js/accordion";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Accordion as t}from"./Accordion-BcKzcS8k.js";e(`accordion`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Accordion as e}from"./Accordion-BcKzcS8k.js";export{e as Accordion};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
2
|
import * as _zag_js_types0 from "@zag-js/types";
|
|
3
3
|
import * as checkbox from "@zag-js/checkbox";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Checkbox as t}from"./Checkbox-6PYAIX3u.js";e(`checkbox`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Checkbox as e}from"./Checkbox-6PYAIX3u.js";export{e as Checkbox};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Component$1 as Component, ComponentHydrationData, ComponentHydrator$1 as ComponentHydrator, ComponentInterface, Machine$1 as Machine, getHydrationData$1 as getHydrationData, initAllComponentInstances$1 as initAllComponentInstances, mergeProps$1 as mergeProps, normalizeProps$1 as normalizeProps, spreadProps$1 as spreadProps } from "./index-
|
|
1
|
+
import { Component$1 as Component, ComponentHydrationData, ComponentHydrator$1 as ComponentHydrator, ComponentInterface, Machine$1 as Machine, getHydrationData$1 as getHydrationData, initAllComponentInstances$1 as initAllComponentInstances, mergeProps$1 as mergeProps, normalizeProps$1 as normalizeProps, spreadProps$1 as spreadProps } from "./index-BxBl3DfU.js";
|
|
2
2
|
export { Component, ComponentHydrationData, ComponentHydrator, ComponentInterface, Machine, getHydrationData, initAllComponentInstances, mergeProps, normalizeProps, spreadProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Component as e,ComponentHydrator as t,Machine as n,getHydrationData as r,initAllComponentInstances as i,mergeProps as a,normalizeProps as o,spreadProps as s}from"./Client-
|
|
1
|
+
import{Component as e,ComponentHydrator as t,Machine as n,getHydrationData as r,initAllComponentInstances as i,mergeProps as a,normalizeProps as o,spreadProps as s}from"./Client-6Iwe-j89.js";export{e as Component,t as ComponentHydrator,n as Machine,r as getHydrationData,i as initAllComponentInstances,a as mergeProps,o as normalizeProps,s as spreadProps};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
|
+
import * as _zag_js_types4 from "@zag-js/types";
|
|
3
3
|
import * as clipboard from "@zag-js/clipboard";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Clipboard/Clipboard.d.ts
|
|
6
6
|
declare class Clipboard extends Component<clipboard.Props, clipboard.Api> {
|
|
7
7
|
name: string;
|
|
8
8
|
initMachine(props: clipboard.Props): Machine<clipboard.Schema>;
|
|
9
|
-
initApi(): clipboard.Api<
|
|
9
|
+
initApi(): clipboard.Api<_zag_js_types4.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Clipboard as t}from"./Clipboard-DBOxpmyP.js";e(`clipboard`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Clipboard as e}from"./Clipboard-DBOxpmyP.js";export{e as Clipboard};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
|
+
import * as _zag_js_types2 from "@zag-js/types";
|
|
3
3
|
import * as collapsible from "@zag-js/collapsible";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Collapsible/Collapsible.d.ts
|
|
6
6
|
declare class Collapsible extends Component<collapsible.Props, collapsible.Api> {
|
|
7
7
|
name: string;
|
|
8
8
|
initMachine(props: collapsible.Props): Machine<any>;
|
|
9
|
-
initApi(): collapsible.Api<
|
|
9
|
+
initApi(): collapsible.Api<_zag_js_types2.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Collapsible as t}from"./Collapsible-PDQY_Qe7.js";e(`collapsible`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Collapsible as e}from"./Collapsible-PDQY_Qe7.js";export{e as Collapsible};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Dialog as t}from"./Dialog-RFdHrc0M.js";e(`dialog`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Dialog as e}from"./Dialog-RFdHrc0M.js";export{e as Dialog};
|
|
@@ -43,7 +43,7 @@ interface ComponentHydrationData {
|
|
|
43
43
|
interface Attrs {
|
|
44
44
|
[key: string]: any;
|
|
45
45
|
}
|
|
46
|
-
declare function spreadProps(node:
|
|
46
|
+
declare function spreadProps(node: Element, attrs: Attrs, machineId?: string): () => void;
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region Resources/Private/Client/src/lib/component.d.ts
|
|
49
49
|
declare abstract class Component<Props, Api> implements ComponentInterface<Api> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
2
|
import { PropTypes } from "@zag-js/types";
|
|
3
3
|
import * as scrollArea from "@zag-js/scroll-area";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{ScrollArea as t}from"./ScrollArea-D0pn7wBC.js";e(`scroll-area`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{ScrollArea as e}from"./ScrollArea-D0pn7wBC.js";export{e as ScrollArea};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Select as t}from"./Select-5e5MbWtV.js";e(`select`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Select as e}from"./Select-5e5MbWtV.js";export{e as Select};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
|
+
import * as _zag_js_types3 from "@zag-js/types";
|
|
3
3
|
import * as tabs from "@zag-js/tabs";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Tabs/Tabs.d.ts
|
|
6
6
|
declare class Tabs extends Component<tabs.Props, tabs.Api> {
|
|
7
7
|
name: string;
|
|
8
8
|
initMachine(props: tabs.Props): Machine<any>;
|
|
9
|
-
initApi(): tabs.Api<
|
|
9
|
+
initApi(): tabs.Api<_zag_js_types3.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Tabs as t}from"./Tabs-CtsfAYSl.js";e(`tabs`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Tabs as e}from"./Tabs-CtsfAYSl.js";export{e as Tabs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component$1 as Component, Machine$1 as Machine } from "./index-
|
|
1
|
+
import { Component$1 as Component, Machine$1 as Machine } from "./index-BxBl3DfU.js";
|
|
2
2
|
import * as _zag_js_types6 from "@zag-js/types";
|
|
3
3
|
import * as tooltip from "@zag-js/tooltip";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initAllComponentInstances as e}from"./Client-
|
|
1
|
+
import{initAllComponentInstances as e}from"./Client-6Iwe-j89.js";import{Tooltip as t}from"./Tooltip-Cr9vsVp_.js";e(`tooltip`,({props:e})=>{let n=new t(e);return n.init(),n});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Client-
|
|
1
|
+
import"./Client-6Iwe-j89.js";import{Tooltip as e}from"./Tooltip-Cr9vsVp_.js";export{e as Tooltip};
|