fluid-primitives 0.8.0 → 0.9.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.
Files changed (36) hide show
  1. package/Resources/Public/JavaScript/dist/{Form-CRD7_HtC.js → Form-DIvUO_ZZ.js} +1 -1
  2. package/Resources/Public/JavaScript/dist/RadioGroup-DdEPU4GR.js +1 -0
  3. package/Resources/Public/JavaScript/dist/accordion.d.ts +1 -1
  4. package/Resources/Public/JavaScript/dist/checkbox.d.ts +5 -42
  5. package/Resources/Public/JavaScript/dist/client.d.ts +1 -1
  6. package/Resources/Public/JavaScript/dist/clipboard.d.ts +4 -4
  7. package/Resources/Public/JavaScript/dist/collapsible.d.ts +3 -3
  8. package/Resources/Public/JavaScript/dist/dialog.d.ts +3 -3
  9. package/Resources/Public/JavaScript/dist/field.d.ts +2 -2
  10. package/Resources/Public/JavaScript/dist/form.d.ts +2 -2
  11. package/Resources/Public/JavaScript/dist/form.entry.js +1 -1
  12. package/Resources/Public/JavaScript/dist/form.js +1 -1
  13. package/Resources/Public/JavaScript/dist/{form.registry-D0xyZwqn.d.ts → form.registry-Dm-lqKoD.d.ts} +1 -1
  14. package/Resources/Public/JavaScript/dist/{index-w1HRp_7W.d.ts → index-6fHSGVtd.d.ts} +2 -2
  15. package/Resources/Public/JavaScript/dist/popover.d.ts +5 -42
  16. package/Resources/Public/JavaScript/dist/radio-group.d.ts +15 -0
  17. package/Resources/Public/JavaScript/dist/radio-group.entry.d.ts +1 -0
  18. package/Resources/Public/JavaScript/dist/radio-group.entry.js +1 -0
  19. package/Resources/Public/JavaScript/dist/radio-group.js +1 -0
  20. package/Resources/Public/JavaScript/dist/scroll-area.d.ts +1 -1
  21. package/Resources/Public/JavaScript/dist/scroll-area.entry.js +1 -1
  22. package/Resources/Public/JavaScript/dist/scroll-area.js +1 -1
  23. package/Resources/Public/JavaScript/dist/select.d.ts +3 -3
  24. package/Resources/Public/JavaScript/dist/select.entry.js +1 -1
  25. package/Resources/Public/JavaScript/dist/select.js +1 -1
  26. package/Resources/Public/JavaScript/dist/tabs.d.ts +1 -1
  27. package/Resources/Public/JavaScript/dist/tabs.entry.js +1 -1
  28. package/Resources/Public/JavaScript/dist/tabs.js +1 -1
  29. package/Resources/Public/JavaScript/dist/tooltip.d.ts +3 -3
  30. package/Resources/Public/JavaScript/dist/tooltip.entry.js +1 -1
  31. package/Resources/Public/JavaScript/dist/tooltip.js +1 -1
  32. package/package.json +23 -18
  33. /package/Resources/Public/JavaScript/dist/{ScrollArea-BseEK6t2.js → ScrollArea-B_sxfjA8.js} +0 -0
  34. /package/Resources/Public/JavaScript/dist/{Select-Ksl75VK-.js → Select-OYZM1NYB.js} +0 -0
  35. /package/Resources/Public/JavaScript/dist/{Tabs-ChCSBaRL.js → Tabs-DZLmk59Z.js} +0 -0
  36. /package/Resources/Public/JavaScript/dist/{Tooltip-Cv1zWULX.js → Tooltip-GGH8XsKg.js} +0 -0
@@ -1 +1 @@
1
- import{Component as e,Machine as t,normalizeProps as n}from"./Client-oBmSvCIl.js";import{getFieldMachinesFor as r,registerFormMachine as i}from"./form.registry-ABqE-vzj.js";import{createMachine as a}from"@zag-js/core";import{createAnatomy as o}from"@zag-js/anatomy";import{dataAttr as s}from"@zag-js/dom-query";const c=o(`form`).parts(`form`),l=c.build(),u=e=>e.ids?.form??`form:${e.id}:form`,d=e=>e.getById(u(e));function f(e,t){let{context:n,state:i,send:a,scope:o,prop:c}=e;function f(){return n.get(`values`)}function p(){return n.get(`errors`)}function m(){return n.get(`dirty`)}function h(){return d(o)}let g=i.matches(`submitting`),_=Object.values(m()).some(e=>e),v=Object.values(p()).some(e=>e),y=i.matches(`success`),b=i.matches(`error`),x=i.get();return{isSubmitting:g,isDirty:_,isInvalid:v,isSuccessful:y,isError:b,getValues:f,getErrors:p,getDirty:m,userRenderFn:c(`render`),getFormEl:h,getFields(){return r(d(o))},getAction(){let e=h();return e.getAttribute(`action`)||``},getFormProps(){return t.element({...l.form.attrs,noValidate:s(!0),id:u(o),"data-state":x,onSubmit:async e=>{e.preventDefault();let t=e.currentTarget;n.set(`values`,new FormData(t)),a({type:`SUBMIT`,detail:{event:e,api:this}})},onReset:e=>{let t=e.currentTarget;queueMicrotask(()=>{let e=new FormData(t);n.set(`initialValues`,e),n.set(`values`,e),n.set(`errors`,{});let r={};for(let t of Object.keys(e))r[t]=!1;n.set(`dirty`,r)}),a({type:`RESET`})},onInput:e=>{a({type:`INPUT`,detail:{target:e.target}})},onChange_:e=>{a({type:`INPUT`,detail:{target:e.target}})}})}}}let p;function m(e){return{lang:e?.lang??p?.lang,message:e?.message,abortEarly:e?.abortEarly??p?.abortEarly,abortPipeEarly:e?.abortPipeEarly??p?.abortPipeEarly}}function h(e,t,n){let r=e[`~run`]({value:t},m(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function g(e){if(!e||e.length===0)return``;let t=e.map(e=>typeof e.key==`number`?String(e.key):typeof e.key==`string`?e.key:typeof e.index==`number`?String(e.index):``).filter(Boolean);return t.join(`.`)}function _(e,t){if(e.success)return{};let n={};for(let r of e.issues){let e=t||g(r.path)||(typeof r.input==`string`?r.input:``),i=r.message??`Invalid value`;n[e]||(n[e]=[]),n[e].push(i)}return n}function v(e,t){let n={};for(let r in e){let i=r;t&&(i=i.replace(t+`.`,``)),n[i]=e[r]}return n}function y(e){let t=e;if(!(!t||!(`type`in t))){if(t.type===`checkbox`){let e=t;if(e.name){let t=e.form;if(t){let n=Array.from(t.querySelectorAll(`input[type="checkbox"][name="${CSS.escape(e.name)}"]`)),r=n.filter(e=>e.checked).map(e=>e.value||`on`);return n.length===1&&!n[0].value?n[0].checked:r}}return e.checked}if(t.type===`radio`){let e=t;if(e.form&&e.name){let t=e.form.querySelector(`input[type="radio"][name="${CSS.escape(e.name)}"]:checked`);return t?t.value:``}return e.checked?e.value:``}return t instanceof HTMLSelectElement&&t.multiple?Array.from(t.selectedOptions).map(e=>e.value):t.value}}function b(e,t,n){if(e===``)return``;n&&(e=`${n}[${e}]`);let r=e.split(`[`,2),i=`${t}[${r[0]}]`;return r.length>1&&(i+=`[${r[1]}`),i}const x=a({initialState(){return`ready`},context({bindable:e}){return{values:e(()=>({defaultValue:new FormData})),initialValues:e(()=>({defaultValue:new FormData})),errors:e(()=>({defaultValue:{}})),dirty:e(()=>({defaultValue:{}}))}},states:{ready:{},invalid:{},submitting:{},success:{},error:{}},on:{SUBMIT:{target:`submitting`,actions:[`validateAll`]},VALIDATE:{actions:[`validateAll`]},INVALID:{target:`invalid`},INPUT:{actions:[`handleInput`]},RESET:{target:`ready`,actions:[`resetForm`]},ERROR:{target:`error`},SUCCESS:{target:`success`}},entry:[`handleFieldBlurs`],implementations:{actions:{validateAll({context:e,send:t,prop:n,state:r,action:i,event:a,scope:o}){let s=r.matches(`submitting`),c=n(`schema`);if(c){let n=h(c,Object.fromEntries(e.get(`values`).entries())),r=_(n);if(e.set(`errors`,r),Object.keys(r).length>0){t({type:`INVALID`}),s&&i([`focusFirstInvalid`]);return}}if(!s){r.set(`ready`);return}let l=n(`onSubmit`);if(!l){t({type:`SUCCESS`});return}let u;try{u=l({formData:e.get(`values`),api:a.detail.api,event:a.detail.event,post:async(r,i)=>{let a=new FormData,s=n(`objectName`),c=d(o).getAttribute(`data-field-name-prefix`)||``;for(let[e,t]of i.entries()){if(e.includes(c)){a.append(e,t);continue}a.append(b(e,c,s),t)}let l=await fetch(r,{method:`POST`,body:a});if(l.status===422){let n=await l.json();e.set(`errors`,v(n,s)),t({type:`INVALID`})}return l}})}catch{t({type:`ERROR`});return}u instanceof Promise?u.then(e=>{t(e?{type:`SUCCESS`}:{type:`ERROR`})}).catch(()=>{t({type:`ERROR`})}):t(u?{type:`SUCCESS`}:{type:`ERROR`})},handleInput({context:e,event:t,action:n,prop:r}){let i=t,a=i?.detail?.target??i?.target??i?.currentTarget,o=a?.name;if(!o)return;let s=r(`reactiveFields`)||[];if(s.length===0||!s.includes(o))return;let c=i?.detail?.value??y(a),l=e.get(`values`);l.set(o,c),e.set(`values`,l);let u=e.get(`initialValues`).get(o),d={...e.get(`dirty`)};d[o]=JSON.stringify(l.get(o))!==JSON.stringify(u),e.set(`dirty`,d),e.get(`errors`)[o]&&n([`validateAll`])},resetForm({context:e}){let t=e.get(`initialValues`);e.set(`values`,{...t}),e.set(`errors`,{});let n={};for(let e of Object.keys(t))n[e]=!1;e.set(`dirty`,n)},focusFirstInvalid({context:e,scope:t}){let n=e.get(`errors`),r=Object.keys(n)[0];if(!r)return;let i=d(t),a=i.querySelector(`[name="${CSS.escape(r)}"]`);a?.focus()},handleFieldBlurs({scope:e}){let t=d(e);if(!t)return;let n=e=>{let t=e.target,n=t?.name};t.addEventListener(`blur`,n,!0)}}}});var S=class extends e{static name=`form`;initMachine(e){let n=new t(x,e);return i(this.getElement(`form`),n),n}initApi(){return f(this.machine.service,n)}render(){let e=this.getElement(`form`);e&&(this.spreadProps(e,this.api.getFormProps()),this.api.userRenderFn?.(this))}};export{S as Form};
1
+ import{Component as e,Machine as t,normalizeProps as n}from"./Client-oBmSvCIl.js";import{getFieldMachinesFor as r,registerFormMachine as i}from"./form.registry-ABqE-vzj.js";import{createMachine as a}from"@zag-js/core";import{createAnatomy as o}from"@zag-js/anatomy";import{dataAttr as s}from"@zag-js/dom-query";const c=o(`form`).parts(`form`),l=c.build(),u=e=>e.ids?.form??`form:${e.id}:form`,d=e=>e.getById(u(e));function f(e,t){let{context:n,state:i,send:a,scope:o,prop:c}=e;function f(){return n.get(`values`)}function p(){return n.get(`errors`)}function m(){return n.get(`dirty`)}function h(){return d(o)}let g=i.matches(`submitting`),_=Object.values(m()).some(e=>e),v=Object.values(p()).some(e=>e),y=i.matches(`success`),b=i.matches(`error`),x=i.get();return{isSubmitting:g,isDirty:_,isInvalid:v,isSuccessful:y,isError:b,getValues:f,getErrors:p,getDirty:m,userRenderFn:c(`render`),getFormEl:h,getFields(){return r(d(o))},getAction(){let e=h();return e.getAttribute(`action`)||``},getFormProps(){return t.element({...l.form.attrs,noValidate:s(!0),id:u(o),"data-state":x,onSubmit:async e=>{e.preventDefault();let t=e.currentTarget;n.set(`values`,new FormData(t)),a({type:`SUBMIT`,detail:{event:e,api:this}})},onReset:e=>{let t=e.currentTarget;queueMicrotask(()=>{let e=new FormData(t);n.set(`initialValues`,e),n.set(`values`,e),n.set(`errors`,{});let r={};for(let t of Object.keys(e))r[t]=!1;n.set(`dirty`,r)}),a({type:`RESET`})},onInput:e=>{a({type:`INPUT`,detail:{target:e.target}})},onChange_:e=>{a({type:`INPUT`,detail:{target:e.target}})}})}}}var p;function m(e){return{lang:e?.lang??p?.lang,message:e?.message,abortEarly:e?.abortEarly??p?.abortEarly,abortPipeEarly:e?.abortPipeEarly??p?.abortPipeEarly}}function h(e,t,n){let r=e[`~run`]({value:t},m(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function g(e){if(!e||e.length===0)return``;let t=e.map(e=>typeof e.key==`number`?String(e.key):typeof e.key==`string`?e.key:typeof e.index==`number`?String(e.index):``).filter(Boolean);return t.join(`.`)}function _(e,t){if(e.success)return{};let n={};for(let r of e.issues){let e=t||g(r.path)||(typeof r.input==`string`?r.input:``),i=r.message??`Invalid value`;n[e]||(n[e]=[]),n[e].push(i)}return n}function v(e,t){let n={};for(let r in e){let i=r;t&&(i=i.replace(t+`.`,``)),n[i]=e[r]}return n}function y(e){let t=e;if(!(!t||!(`type`in t))){if(t.type===`checkbox`){let e=t;if(e.name){let t=e.form;if(t){let n=Array.from(t.querySelectorAll(`input[type="checkbox"][name="${CSS.escape(e.name)}"]`)),r=n.filter(e=>e.checked).map(e=>e.value||`on`);return n.length===1&&!n[0].value?n[0].checked:r}}return e.checked}if(t.type===`radio`){let e=t;if(e.form&&e.name){let t=e.form.querySelector(`input[type="radio"][name="${CSS.escape(e.name)}"]:checked`);return t?t.value:``}return e.checked?e.value:``}return t instanceof HTMLSelectElement&&t.multiple?Array.from(t.selectedOptions).map(e=>e.value):t.value}}function b(e,t,n){if(e===``)return``;n&&(e=`${n}[${e}]`);let r=e.split(`[`,2),i=`${t}[${r[0]}]`;return r.length>1&&(i+=`[${r[1]}`),i}const x=a({initialState(){return`ready`},context({bindable:e}){return{values:e(()=>({defaultValue:new FormData})),initialValues:e(()=>({defaultValue:new FormData})),errors:e(()=>({defaultValue:{}})),dirty:e(()=>({defaultValue:{}}))}},states:{ready:{},invalid:{},submitting:{},success:{},error:{}},on:{SUBMIT:{target:`submitting`,actions:[`validateAll`]},VALIDATE:{actions:[`validateAll`]},INVALID:{target:`invalid`},INPUT:{actions:[`handleInput`]},RESET:{target:`ready`,actions:[`resetForm`]},ERROR:{target:`error`},SUCCESS:{target:`success`}},entry:[`handleFieldBlurs`],implementations:{actions:{validateAll({context:e,send:t,prop:n,state:r,action:i,event:a,scope:o}){let s=r.matches(`submitting`),c=n(`schema`);if(c){let n=h(c,Object.fromEntries(e.get(`values`).entries())),r=_(n);if(e.set(`errors`,r),Object.keys(r).length>0){t({type:`INVALID`}),s&&i([`focusFirstInvalid`]);return}}if(!s){r.set(`ready`);return}let l=n(`onSubmit`);if(!l){t({type:`SUCCESS`});return}let u;try{u=l({formData:e.get(`values`),api:a.detail.api,event:a.detail.event,post:async(r,i)=>{let a=new FormData,s=n(`objectName`),c=d(o).getAttribute(`data-field-name-prefix`)||``;for(let[e,t]of i.entries()){if(e.includes(c)){a.append(e,t);continue}a.append(b(e,c,s),t)}let l=await fetch(r,{method:`POST`,body:a});if(l.status===422){let n=await l.json();e.set(`errors`,v(n,s)),t({type:`INVALID`})}return l}})}catch{t({type:`ERROR`});return}u instanceof Promise?u.then(e=>{t(e?{type:`SUCCESS`}:{type:`ERROR`})}).catch(()=>{t({type:`ERROR`})}):t(u?{type:`SUCCESS`}:{type:`ERROR`})},handleInput({context:e,event:t,action:n,prop:r}){let i=t,a=i?.detail?.target??i?.target??i?.currentTarget,o=a?.name;if(!o)return;let s=r(`reactiveFields`)||[];if(s.length===0||!s.includes(o))return;let c=i?.detail?.value??y(a),l=e.get(`values`);l.set(o,c),e.set(`values`,l);let u=e.get(`initialValues`).get(o),d={...e.get(`dirty`)};d[o]=JSON.stringify(l.get(o))!==JSON.stringify(u),e.set(`dirty`,d),e.get(`errors`)[o]&&n([`validateAll`])},resetForm({context:e}){let t=e.get(`initialValues`);e.set(`values`,{...t}),e.set(`errors`,{});let n={};for(let e of Object.keys(t))n[e]=!1;e.set(`dirty`,n)},focusFirstInvalid({context:e,scope:t}){let n=e.get(`errors`),r=Object.keys(n)[0];if(!r)return;let i=d(t),a=i.querySelector(`[name="${CSS.escape(r)}"]`);a?.focus()},handleFieldBlurs({scope:e}){let t=d(e);if(!t)return;let n=e=>{let t=e.target,n=t?.name};t.addEventListener(`blur`,n,!0)}}}});var S=class extends e{static name=`form`;initMachine(e){let n=new t(x,e);return i(this.getElement(`form`),n),n}initApi(){return f(this.machine.service,n)}render(){let e=this.getElement(`form`);e&&(this.spreadProps(e,this.api.getFormProps()),this.api.userRenderFn?.(this))}};export{S as Form};
@@ -0,0 +1 @@
1
+ import{Component as e,Machine as t,normalizeProps as n}from"./Client-oBmSvCIl.js";import*as r from"@zag-js/radio-group";var i=class extends e{static name=`radio-group`;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.getElements(`item`);n.forEach(e=>{this.spreadProps(e,this.api.getItemProps({value:e.dataset.value,disabled:e.getAttribute(`data-disabled`)===`true`,invalid:e.getAttribute(`data-invalid`)===`true`}))});let r=this.getElements(`item-text`);r.forEach(e=>{this.spreadProps(e,this.api.getItemTextProps({value:e.dataset.value,disabled:e.getAttribute(`data-disabled`)===`true`,invalid:e.getAttribute(`data-invalid`)===`true`}))});let i=this.getElements(`item-control`);i.forEach(e=>{this.spreadProps(e,this.api.getItemControlProps({value:e.dataset.value,disabled:e.getAttribute(`data-disabled`)===`true`,invalid:e.getAttribute(`data-invalid`)===`true`}))});let a=this.getElements(`item-hidden-input`);a.forEach(e=>{this.spreadProps(e,this.api.getItemHiddenInputProps({value:e.dataset.value,disabled:e.getAttribute(`data-disabled`)===`true`,invalid:e.getAttribute(`data-invalid`)===`true`}))});let o=this.getElement(`indicator`);o&&this.spreadProps(o,this.api.getIndicatorProps())}};export{i as RadioGroup};
@@ -1,4 +1,4 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
2
  import * as _zag_js_types0 from "@zag-js/types";
3
3
  import * as accordion from "@zag-js/accordion";
4
4
 
@@ -1,4 +1,5 @@
1
- import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types0 from "@zag-js/types";
2
3
  import * as checkbox from "@zag-js/checkbox";
3
4
 
4
5
  //#region Resources/Private/Primitives/Checkbox/Checkbox.d.ts
@@ -6,47 +7,9 @@ declare class Checkbox extends FieldAwareComponent<checkbox.Props, checkbox.Api>
6
7
  static name: string;
7
8
  propsWithField(props: checkbox.Props, fieldMachine: FieldMachine): checkbox.Props;
8
9
  initMachine(props: checkbox.Props): Machine<any>;
9
- initApi(): checkbox.Api<{
10
- button: {
11
- [x: string]: any;
12
- };
13
- label: {
14
- [x: string]: any;
15
- };
16
- input: {
17
- [x: string]: any;
18
- };
19
- textarea: {
20
- [x: string]: any;
21
- };
22
- img: {
23
- [x: string]: any;
24
- };
25
- output: {
26
- [x: string]: any;
27
- };
28
- element: {
29
- [x: string]: any;
30
- };
31
- select: {
32
- [x: string]: any;
33
- };
34
- rect: {
35
- [x: string]: any;
36
- };
37
- style: {
38
- [x: string]: any;
39
- };
40
- circle: {
41
- [x: string]: any;
42
- };
43
- svg: {
44
- [x: string]: any;
45
- };
46
- path: {
47
- [x: string]: any;
48
- };
49
- }>;
10
+ initApi(): checkbox.Api<_zag_js_types0.PropTypes<{
11
+ [x: string]: any;
12
+ }>>;
50
13
  render(): void;
51
14
  }
52
15
  //#endregion
@@ -1,2 +1,2 @@
1
- import { Component$1 as Component, ComponentHydrationData, ComponentHydrator$1 as ComponentHydrator, ComponentInterface, FieldAwareComponent$1 as FieldAwareComponent, Machine$1 as Machine, getHydrationData$1 as getHydrationData, initAllComponentInstances$1 as initAllComponentInstances, mergeProps$1 as mergeProps, normalizeProps$1 as normalizeProps, spreadProps$1 as spreadProps, uid$1 as uid } from "./index-w1HRp_7W.js";
1
+ import { Component$1 as Component, ComponentHydrationData, ComponentHydrator$1 as ComponentHydrator, ComponentInterface, FieldAwareComponent$1 as FieldAwareComponent, Machine$1 as Machine, getHydrationData$1 as getHydrationData, initAllComponentInstances$1 as initAllComponentInstances, mergeProps$1 as mergeProps, normalizeProps$1 as normalizeProps, spreadProps$1 as spreadProps, uid$1 as uid } from "./index-6fHSGVtd.js";
2
2
  export { Component, ComponentHydrationData, ComponentHydrator, ComponentInterface, FieldAwareComponent, Machine, getHydrationData, initAllComponentInstances, mergeProps, normalizeProps, spreadProps, uid };
@@ -1,12 +1,12 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
2
- import * as _zag_js_types1 from "@zag-js/types";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types2 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
  static name: string;
8
- initMachine(props: clipboard.Props): Machine<clipboard.Schema>;
9
- initApi(): clipboard.Api<_zag_js_types1.PropTypes<{
8
+ initMachine(props: clipboard.Props): Machine<any>;
9
+ initApi(): clipboard.Api<_zag_js_types2.PropTypes<{
10
10
  [x: string]: any;
11
11
  }>>;
12
12
  render(): void;
@@ -1,12 +1,12 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
2
- import * as _zag_js_types2 from "@zag-js/types";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types3 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
  static name: string;
8
8
  initMachine(props: collapsible.Props): Machine<any>;
9
- initApi(): collapsible.Api<_zag_js_types2.PropTypes<{
9
+ initApi(): collapsible.Api<_zag_js_types3.PropTypes<{
10
10
  [x: string]: any;
11
11
  }>>;
12
12
  render(): void;
@@ -1,12 +1,12 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
2
- import * as _zag_js_types0 from "@zag-js/types";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types1 from "@zag-js/types";
3
3
  import * as dialog from "@zag-js/dialog";
4
4
 
5
5
  //#region Resources/Private/Primitives/Dialog/Dialog.d.ts
6
6
  declare class Dialog extends Component<dialog.Props, dialog.Api> {
7
7
  static name: string;
8
8
  initMachine(props: dialog.Props): Machine<any>;
9
- initApi(): dialog.Api<_zag_js_types0.PropTypes<{
9
+ initApi(): dialog.Api<_zag_js_types1.PropTypes<{
10
10
  [x: string]: any;
11
11
  }>>;
12
12
  render(): void;
@@ -1,5 +1,5 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
2
- import { FormMachine } from "./form.registry-D0xyZwqn.js";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import { FormMachine } from "./form.registry-Dm-lqKoD.js";
3
3
  import { EventObject } from "@zag-js/core";
4
4
  import { PropTypes } from "@zag-js/types";
5
5
 
@@ -1,5 +1,5 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
2
- import { FieldMachine$1 as FieldMachine } from "./form.registry-D0xyZwqn.js";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import { FieldMachine$1 as FieldMachine } from "./form.registry-Dm-lqKoD.js";
3
3
  import { EventObject } from "@zag-js/core";
4
4
  import { JSX, PropTypes } from "@zag-js/types";
5
5
  import * as v from "valibot";
@@ -1 +1 @@
1
- import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import"./form.registry-ABqE-vzj.js";import{Form as t}from"./Form-CRD7_HtC.js";e(`form`,({props:e})=>{let n=new t(e);return n.init(),n});
1
+ import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import"./form.registry-ABqE-vzj.js";import{Form as t}from"./Form-DIvUO_ZZ.js";e(`form`,({props:e})=>{let n=new t(e);return n.init(),n});
@@ -1 +1 @@
1
- import"./Client-oBmSvCIl.js";import"./form.registry-ABqE-vzj.js";import{Form as e}from"./Form-CRD7_HtC.js";export{e as Form};
1
+ import"./Client-oBmSvCIl.js";import"./form.registry-ABqE-vzj.js";import{Form as e}from"./Form-DIvUO_ZZ.js";export{e as Form};
@@ -1,4 +1,4 @@
1
- import { Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
2
 
3
3
  //#region Resources/Private/Primitives/Form/src/form.registry.d.ts
4
4
  type FormMachine = Machine<any>;
@@ -1,6 +1,6 @@
1
1
  import { ListCollection } from "@zag-js/collection";
2
2
  import { Bindable, BindableContext, BindableRefs, ComputedFn, Machine, MachineSchema, Params, PropFn, Scope, Service } from "@zag-js/core";
3
- import * as _zag_js_types6 from "@zag-js/types";
3
+ import * as _zag_js_types9 from "@zag-js/types";
4
4
 
5
5
  //#region Resources/Private/Client/src/types.d.ts
6
6
  declare global {
@@ -149,7 +149,7 @@ declare class Machine$1<T extends MachineSchema> {
149
149
  declare function mergeProps$1(...args: Record<string | symbol, any>[]): Record<string | symbol, any>;
150
150
  //#endregion
151
151
  //#region Resources/Private/Client/src/lib/normalize-props.d.ts
152
- declare const normalizeProps: _zag_js_types6.NormalizeProps<_zag_js_types6.PropTypes<{
152
+ declare const normalizeProps: _zag_js_types9.NormalizeProps<_zag_js_types9.PropTypes<{
153
153
  [x: string]: any;
154
154
  }>>;
155
155
  //#endregion
@@ -1,51 +1,14 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types6 from "@zag-js/types";
2
3
  import * as popover from "@zag-js/popover";
3
4
 
4
5
  //#region Resources/Private/Primitives/Popover/Popover.d.ts
5
6
  declare class Popover extends Component<popover.Props, popover.Api> {
6
7
  static name: string;
7
8
  initMachine(props: popover.Props): Machine<any>;
8
- initApi(): popover.Api<{
9
- button: {
10
- [x: string]: any;
11
- };
12
- label: {
13
- [x: string]: any;
14
- };
15
- input: {
16
- [x: string]: any;
17
- };
18
- textarea: {
19
- [x: string]: any;
20
- };
21
- img: {
22
- [x: string]: any;
23
- };
24
- output: {
25
- [x: string]: any;
26
- };
27
- element: {
28
- [x: string]: any;
29
- };
30
- select: {
31
- [x: string]: any;
32
- };
33
- rect: {
34
- [x: string]: any;
35
- };
36
- style: {
37
- [x: string]: any;
38
- };
39
- circle: {
40
- [x: string]: any;
41
- };
42
- svg: {
43
- [x: string]: any;
44
- };
45
- path: {
46
- [x: string]: any;
47
- };
48
- }>;
9
+ initApi(): popover.Api<_zag_js_types6.PropTypes<{
10
+ [x: string]: any;
11
+ }>>;
49
12
  render(): void;
50
13
  }
51
14
  //#endregion
@@ -0,0 +1,15 @@
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types7 from "@zag-js/types";
3
+ import * as radioGroup from "@zag-js/radio-group";
4
+
5
+ //#region Resources/Private/Primitives/RadioGroup/RadioGroup.d.ts
6
+ declare class RadioGroup extends Component<radioGroup.Props, radioGroup.Api> {
7
+ static name: string;
8
+ initMachine(props: radioGroup.Props): Machine<any>;
9
+ initApi(): radioGroup.Api<_zag_js_types7.PropTypes<{
10
+ [x: string]: any;
11
+ }>>;
12
+ render(): void;
13
+ }
14
+ //#endregion
15
+ export { RadioGroup };
@@ -0,0 +1 @@
1
+ import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import{RadioGroup as t}from"./RadioGroup-DdEPU4GR.js";e(`radio-group`,({props:e})=>{let n=new t(e);return n.init(),n});
@@ -0,0 +1 @@
1
+ import"./Client-oBmSvCIl.js";import{RadioGroup as e}from"./RadioGroup-DdEPU4GR.js";export{e as RadioGroup};
@@ -1,4 +1,4 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.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-oBmSvCIl.js";import{ScrollArea as t}from"./ScrollArea-BseEK6t2.js";e(`scroll-area`,({props:e})=>{let n=new t(e);return n.init(),n});
1
+ import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import{ScrollArea as t}from"./ScrollArea-B_sxfjA8.js";e(`scroll-area`,({props:e})=>{let n=new t(e);return n.init(),n});
@@ -1 +1 @@
1
- import"./Client-oBmSvCIl.js";import{ScrollArea as e}from"./ScrollArea-BseEK6t2.js";export{e as ScrollArea};
1
+ import"./Client-oBmSvCIl.js";import{ScrollArea as e}from"./ScrollArea-B_sxfjA8.js";export{e as ScrollArea};
@@ -1,6 +1,6 @@
1
- import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
2
  import * as _zag_js_collection0 from "@zag-js/collection";
3
- import * as _zag_js_types3 from "@zag-js/types";
3
+ import * as _zag_js_types5 from "@zag-js/types";
4
4
  import * as select from "@zag-js/select";
5
5
 
6
6
  //#region Resources/Private/Primitives/Select/Select.d.ts
@@ -53,7 +53,7 @@ declare class Select extends FieldAwareComponent<select.Props, select.Api> {
53
53
  onInteractOutside?: ((event: select.InteractOutsideEvent) => void) | undefined;
54
54
  };
55
55
  initMachine(props: select.Props): Machine<any>;
56
- initApi(): select.Api<_zag_js_types3.PropTypes<{
56
+ initApi(): select.Api<_zag_js_types5.PropTypes<{
57
57
  [x: string]: any;
58
58
  }>, any>;
59
59
  render: () => void;
@@ -1 +1 @@
1
- import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import"./field.dom-BPeGctuk.js";import{Select as t}from"./Select-Ksl75VK-.js";e(`select`,({props:e})=>{let n=new t(e);return n.init(),n});
1
+ import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import"./field.dom-BPeGctuk.js";import{Select as t}from"./Select-OYZM1NYB.js";e(`select`,({props:e})=>{let n=new t(e);return n.init(),n});
@@ -1 +1 @@
1
- import"./Client-oBmSvCIl.js";import"./field.dom-BPeGctuk.js";import{Select as e}from"./Select-Ksl75VK-.js";export{e as Select};
1
+ import"./Client-oBmSvCIl.js";import"./field.dom-BPeGctuk.js";import{Select as e}from"./Select-OYZM1NYB.js";export{e as Select};
@@ -1,4 +1,4 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
2
  import * as _zag_js_types4 from "@zag-js/types";
3
3
  import * as tabs from "@zag-js/tabs";
4
4
 
@@ -1 +1 @@
1
- import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import{Tabs as t}from"./Tabs-ChCSBaRL.js";e(`tabs`,({props:e})=>{let n=new t(e);return n.init(),n});
1
+ import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import{Tabs as t}from"./Tabs-DZLmk59Z.js";e(`tabs`,({props:e})=>{let n=new t(e);return n.init(),n});
@@ -1 +1 @@
1
- import"./Client-oBmSvCIl.js";import{Tabs as e}from"./Tabs-ChCSBaRL.js";export{e as Tabs};
1
+ import"./Client-oBmSvCIl.js";import{Tabs as e}from"./Tabs-DZLmk59Z.js";export{e as Tabs};
@@ -1,12 +1,12 @@
1
- import { Component$1 as Component, Machine$1 as Machine } from "./index-w1HRp_7W.js";
2
- import * as _zag_js_types5 from "@zag-js/types";
1
+ import { Component$1 as Component, Machine$1 as Machine } from "./index-6fHSGVtd.js";
2
+ import * as _zag_js_types8 from "@zag-js/types";
3
3
  import * as tooltip from "@zag-js/tooltip";
4
4
 
5
5
  //#region Resources/Private/Primitives/Tooltip/Tooltip.d.ts
6
6
  declare class Tooltip extends Component<tooltip.Props, tooltip.Api> {
7
7
  static name: string;
8
8
  initMachine(props: tooltip.Props): Machine<any>;
9
- initApi(): tooltip.Api<_zag_js_types5.PropTypes<{
9
+ initApi(): tooltip.Api<_zag_js_types8.PropTypes<{
10
10
  [x: string]: any;
11
11
  }>>;
12
12
  render(): void;
@@ -1 +1 @@
1
- import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import{Tooltip as t}from"./Tooltip-Cv1zWULX.js";e(`tooltip`,({props:e})=>{let n=new t(e);return n.init(),n});
1
+ import{initAllComponentInstances as e}from"./Client-oBmSvCIl.js";import{Tooltip as t}from"./Tooltip-GGH8XsKg.js";e(`tooltip`,({props:e})=>{let n=new t(e);return n.init(),n});
@@ -1 +1 @@
1
- import"./Client-oBmSvCIl.js";import{Tooltip as e}from"./Tooltip-Cv1zWULX.js";export{e as Tooltip};
1
+ import"./Client-oBmSvCIl.js";import{Tooltip as e}from"./Tooltip-GGH8XsKg.js";export{e as Tooltip};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluid-primitives",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Client-side library for Fluid Primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,6 +51,10 @@
51
51
  "import": "./Resources/Public/JavaScript/dist/popover.js",
52
52
  "types": "./Resources/Public/JavaScript/dist/popover.d.ts"
53
53
  },
54
+ "./radio-group": {
55
+ "import": "./Resources/Public/JavaScript/dist/radio-group.js",
56
+ "types": "./Resources/Public/JavaScript/dist/radio-group.d.ts"
57
+ },
54
58
  "./scroll-area": {
55
59
  "import": "./Resources/Public/JavaScript/dist/scroll-area.js",
56
60
  "types": "./Resources/Public/JavaScript/dist/scroll-area.d.ts"
@@ -81,22 +85,23 @@
81
85
  "valibot": "^1.1.0"
82
86
  },
83
87
  "dependencies": {
84
- "@zag-js/accordion": "^1.27.0",
85
- "@zag-js/anatomy": "^1.27.1",
86
- "@zag-js/checkbox": "^1.27.0",
87
- "@zag-js/clipboard": "^1.27.0",
88
- "@zag-js/collapsible": "^1.27.0",
89
- "@zag-js/collection": "^1.27.0",
90
- "@zag-js/core": "^1.27.0",
91
- "@zag-js/dialog": "^1.27.0",
92
- "@zag-js/dom-query": "^1.27.0",
93
- "@zag-js/popover": "^1.29.1",
94
- "@zag-js/scroll-area": "^1.27.0",
95
- "@zag-js/select": "^1.27.0",
96
- "@zag-js/store": "^1.27.0",
97
- "@zag-js/tabs": "^1.27.0",
98
- "@zag-js/tooltip": "^1.27.0",
99
- "@zag-js/types": "^1.27.0",
100
- "@zag-js/utils": "^1.27.0"
88
+ "@zag-js/accordion": "^1.31.0",
89
+ "@zag-js/anatomy": "^1.31.0",
90
+ "@zag-js/checkbox": "^1.31.0",
91
+ "@zag-js/clipboard": "^1.31.0",
92
+ "@zag-js/collapsible": "^1.31.0",
93
+ "@zag-js/collection": "^1.31.0",
94
+ "@zag-js/core": "^1.31.0",
95
+ "@zag-js/dialog": "^1.31.0",
96
+ "@zag-js/dom-query": "^1.31.0",
97
+ "@zag-js/popover": "^1.31.0",
98
+ "@zag-js/radio-group": "^1.31.0",
99
+ "@zag-js/scroll-area": "^1.31.0",
100
+ "@zag-js/select": "^1.31.0",
101
+ "@zag-js/store": "^1.31.0",
102
+ "@zag-js/tabs": "^1.31.0",
103
+ "@zag-js/tooltip": "^1.31.0",
104
+ "@zag-js/types": "^1.31.0",
105
+ "@zag-js/utils": "^1.31.0"
101
106
  }
102
107
  }