fluid-primitives 0.18.0-next.8.a9be2d6 → 0.18.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.
@@ -162,14 +162,6 @@ function mount(componentName, callback) {
162
162
  window.FluidPrimitives.uncontrolledInstances[componentName][id] = instance;
163
163
  });
164
164
  }
165
- function mountControlled(componentName, rootId, callback) {
166
- const hydrationData = getHydrationData(componentName, rootId);
167
- if (!hydrationData) return;
168
- return callback({
169
- ...hydrationData,
170
- createHydrator: () => new ComponentHydrator(componentName, rootId, hydrationData.props.ids)
171
- });
172
- }
173
165
  var ComponentHydrator = class {
174
166
  componentName;
175
167
  doc;
@@ -245,4 +237,4 @@ function uid(prefix = "f") {
245
237
  }
246
238
 
247
239
  //#endregion
248
- export { Machine as a, getListCollectionFromHydrationData as c, FieldAwareComponent as d, registerFieldMachine as f, mergeProps as i, mount as l, spreadProps as n, ComponentHydrator as o, Component as p, normalizeProps as r, getHydrationData as s, uid as t, mountControlled as u };
240
+ export { Machine as a, getListCollectionFromHydrationData as c, registerFieldMachine as d, Component as f, mergeProps as i, mount as l, spreadProps as n, ComponentHydrator as o, normalizeProps as r, getHydrationData as s, uid as t, FieldAwareComponent as u };
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as accordion from "@zag-js/accordion";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/accordion.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as accordion from "@zag-js/accordion";
3
3
 
4
4
  //#region Resources/Private/Primitives/Accordion/Accordion.ts
@@ -1,5 +1,5 @@
1
- import { a as Machine, u as FieldAwareComponent } from "./index-B8JCdyld.js";
2
- import { t as FieldMachine } from "./form.registry-Cb8Pvoe8.js";
1
+ import { a as Machine, l as FieldAwareComponent } from "./index-DxZhm-zT.js";
2
+ import { t as FieldMachine } from "./form.registry-DjhMF6Ny.js";
3
3
  import { EventObject } from "@zag-js/core";
4
4
  import { PropTypes } from "@zag-js/types";
5
5
 
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldAwareComponent, i as mergeProps, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, i as mergeProps, r as normalizeProps, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
  import { i as connect, n as registerCheckboxGroup, r as unregisterCheckboxGroup } from "./checkbox-group.registry-CGwuF7SF.js";
3
3
  import { a as getLabelId } from "./field.dom-CJQXpQbZ.js";
4
4
  import { createMachine } from "@zag-js/core";
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldMachine, u as FieldAwareComponent } from "./index-B8JCdyld.js";
1
+ import { a as Machine, l as FieldAwareComponent, u as FieldMachine } from "./index-DxZhm-zT.js";
2
2
  import * as checkbox from "@zag-js/checkbox";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldAwareComponent, i as mergeProps, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, i as mergeProps, r as normalizeProps, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
  import { i as connect, t as getCheckboxGroupMachineFor } from "./checkbox-group.registry-CGwuF7SF.js";
3
3
  import { a as getLabelId, t as getControlId } from "./field.dom-CJQXpQbZ.js";
4
4
  import * as checkbox from "@zag-js/checkbox";
package/dist/client.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Machine, c as mount, f as Component, h as FluidPrimitivesGlobals, i as mergeProps, l as mountControlled, m as ComponentInterface, n as spreadProps, o as ComponentHydrator, p as ComponentHydrationData, r as normalizeProps, s as getHydrationData, t as uid, u as FieldAwareComponent } from "./index-B8JCdyld.js";
2
- export { Component, ComponentHydrationData, ComponentHydrator, ComponentInterface, FieldAwareComponent, FluidPrimitivesGlobals, Machine, getHydrationData, mergeProps, mount, mountControlled, normalizeProps, spreadProps, uid };
1
+ import { a as Machine, c as mount, d as Component, f as ComponentHydrationData, i as mergeProps, l as FieldAwareComponent, m as FluidPrimitivesGlobals, n as spreadProps, o as ComponentHydrator, p as ComponentInterface, r as normalizeProps, s as getHydrationData, t as uid } from "./index-DxZhm-zT.js";
2
+ export { Component, ComponentHydrationData, ComponentHydrator, ComponentInterface, FieldAwareComponent, FluidPrimitivesGlobals, Machine, getHydrationData, mergeProps, mount, normalizeProps, spreadProps, uid };
package/dist/client.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as Machine, d as FieldAwareComponent, i as mergeProps, l as mount, n as spreadProps, o as ComponentHydrator, p as Component, r as normalizeProps, s as getHydrationData, t as uid, u as mountControlled } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, i as mergeProps, l as mount, n as spreadProps, o as ComponentHydrator, r as normalizeProps, s as getHydrationData, t as uid, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
 
3
- export { Component, ComponentHydrator, FieldAwareComponent, Machine, getHydrationData, mergeProps, mount, mountControlled, normalizeProps, spreadProps, uid };
3
+ export { Component, ComponentHydrator, FieldAwareComponent, Machine, getHydrationData, mergeProps, mount, normalizeProps, spreadProps, uid };
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as clipboard from "@zag-js/clipboard";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/clipboard.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as clipboard from "@zag-js/clipboard";
3
3
 
4
4
  //#region Resources/Private/Primitives/Clipboard/Clipboard.ts
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as collapsible from "@zag-js/collapsible";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as collapsible from "@zag-js/collapsible";
3
3
 
4
4
  //#region Resources/Private/Primitives/Collapsible/Collapsible.ts
package/dist/dialog.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as dialog from "@zag-js/dialog";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/dialog.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as dialog from "@zag-js/dialog";
3
3
 
4
4
  //#region Resources/Private/Primitives/Dialog/Dialog.ts
package/dist/field.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
2
- import { n as FormMachine } from "./form.registry-Cb8Pvoe8.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
+ import { n as FormMachine } from "./form.registry-DjhMF6Ny.js";
3
3
  import { EventObject } from "@zag-js/core";
4
4
  import { PropTypes } from "@zag-js/types";
5
5
 
package/dist/field.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as registerFieldMachine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, d as registerFieldMachine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import { a as getLabelId, i as getErrorId, n as getDescriptionEl, o as getRootEl, r as getDescriptionId, s as getRootId, t as getControlId } from "./field.dom-CJQXpQbZ.js";
3
3
  import { n as getFormMachineFor, r as registerFieldMachineForForm } from "./form.registry-CmpTny_s.js";
4
4
  import { createMachine } from "@zag-js/core";
package/dist/form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
2
- import { t as FieldMachine } from "./form.registry-Cb8Pvoe8.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
+ import { t as FieldMachine } from "./form.registry-DjhMF6Ny.js";
3
3
  import { EventObject } from "@zag-js/core";
4
4
  import * as z from "zod";
5
5
  import { JSX, PropTypes } from "@zag-js/types";
package/dist/form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import { i as registerFormMachine, t as getFieldMachinesFor } from "./form.registry-CmpTny_s.js";
3
3
  import { debounce } from "@zag-js/utils";
4
4
  import { createMachine } from "@zag-js/core";
@@ -1,4 +1,4 @@
1
- import { a as Machine } from "./index-B8JCdyld.js";
1
+ import { a as Machine } from "./index-DxZhm-zT.js";
2
2
 
3
3
  //#region Resources/Private/Primitives/Form/src/form.registry.d.ts
4
4
  type FormMachine = Machine<any>;
@@ -91,9 +91,6 @@ declare function getHydrationData(component: string, id: string): ComponentHydra
91
91
  declare function mount(componentName: string, callback: (data: ComponentHydrationData & {
92
92
  createHydrator: () => ComponentHydrator;
93
93
  }) => Component<unknown, unknown> | void): void;
94
- declare function mountControlled(componentName: string, rootId: string, callback: (data: ComponentHydrationData & {
95
- createHydrator: () => ComponentHydrator;
96
- }) => Component<unknown, unknown> | void): void | Component<unknown, unknown>;
97
94
  declare class ComponentHydrator {
98
95
  componentName: string;
99
96
  doc: Document;
@@ -115,4 +112,4 @@ declare class ComponentHydrator {
115
112
  //#region Resources/Private/Client/src/lib/uid.d.ts
116
113
  declare function uid(prefix?: string): string;
117
114
  //#endregion
118
- export { Machine as a, mount as c, FieldMachine as d, Component as f, FluidPrimitivesGlobals as h, mergeProps as i, mountControlled as l, ComponentInterface as m, spreadProps as n, ComponentHydrator as o, ComponentHydrationData as p, normalizeProps as r, getHydrationData as s, uid as t, FieldAwareComponent as u };
115
+ export { Machine as a, mount as c, Component as d, ComponentHydrationData as f, mergeProps as i, FieldAwareComponent as l, FluidPrimitivesGlobals as m, spreadProps as n, ComponentHydrator as o, ComponentInterface as p, normalizeProps as r, getHydrationData as s, uid as t, FieldMachine as u };
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as navigationMenu from "@zag-js/navigation-menu";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as navigationMenu from "@zag-js/navigation-menu";
3
3
 
4
4
  //#region Resources/Private/Primitives/NavigationMenu/NavigationMenu.ts
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldMachine, u as FieldAwareComponent } from "./index-B8JCdyld.js";
1
+ import { a as Machine, l as FieldAwareComponent, u as FieldMachine } from "./index-DxZhm-zT.js";
2
2
  import * as numberInput from "@zag-js/number-input";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldAwareComponent, i as mergeProps, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, i as mergeProps, r as normalizeProps, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
  import { a as getLabelId, t as getControlId } from "./field.dom-CJQXpQbZ.js";
3
3
  import * as numberInput from "@zag-js/number-input";
4
4
 
package/dist/popover.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as popover from "@zag-js/popover";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/popover.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as popover from "@zag-js/popover";
3
3
 
4
4
  //#region Resources/Private/Primitives/Popover/Popover.ts
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldMachine, u as FieldAwareComponent } from "./index-B8JCdyld.js";
1
+ import { a as Machine, l as FieldAwareComponent, u as FieldMachine } from "./index-DxZhm-zT.js";
2
2
  import * as radioGroup from "@zag-js/radio-group";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldAwareComponent, i as mergeProps, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, i as mergeProps, r as normalizeProps, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
  import * as radioGroup from "@zag-js/radio-group";
3
3
 
4
4
  //#region Resources/Private/Primitives/RadioGroup/RadioGroup.ts
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as scrollArea from "@zag-js/scroll-area";
3
3
  import { PropTypes } from "@zag-js/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as scrollArea from "@zag-js/scroll-area";
3
3
 
4
4
  //#region Resources/Private/Primitives/ScrollArea/ScrollArea.ts
package/dist/select.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldMachine, u as FieldAwareComponent } from "./index-B8JCdyld.js";
1
+ import { a as Machine, l as FieldAwareComponent, u as FieldMachine } from "./index-DxZhm-zT.js";
2
2
  import * as _$_zag_js_collection0 from "@zag-js/collection";
3
3
  import * as select from "@zag-js/select";
4
4
  import * as _$_zag_js_types0 from "@zag-js/types";
package/dist/select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, c as getListCollectionFromHydrationData, d as FieldAwareComponent, i as mergeProps, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, c as getListCollectionFromHydrationData, i as mergeProps, r as normalizeProps, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
  import { a as getLabelId, t as getControlId } from "./field.dom-CJQXpQbZ.js";
3
3
  import * as select from "@zag-js/select";
4
4
 
package/dist/switch.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldMachine, u as FieldAwareComponent } from "./index-B8JCdyld.js";
1
+ import { a as Machine, l as FieldAwareComponent, u as FieldMachine } from "./index-DxZhm-zT.js";
2
2
  import * as zagSwitch from "@zag-js/switch";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/switch.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, d as FieldAwareComponent, i as mergeProps, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, i as mergeProps, r as normalizeProps, u as FieldAwareComponent } from "./Client-D-GbQqXf.js";
2
2
  import { a as getLabelId, t as getControlId } from "./field.dom-CJQXpQbZ.js";
3
3
  import * as zagSwitch from "@zag-js/switch";
4
4
 
package/dist/tabs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as tabs from "@zag-js/tabs";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/tabs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as tabs from "@zag-js/tabs";
3
3
 
4
4
  //#region Resources/Private/Primitives/Tabs/Tabs.ts
package/dist/tooltip.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, f as Component } from "./index-B8JCdyld.js";
1
+ import { a as Machine, d as Component } from "./index-DxZhm-zT.js";
2
2
  import * as tooltip from "@zag-js/tooltip";
3
3
  import * as _$_zag_js_types0 from "@zag-js/types";
4
4
 
package/dist/tooltip.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Machine, p as Component, r as normalizeProps } from "./Client-C51NSHxg.js";
1
+ import { a as Machine, f as Component, r as normalizeProps } from "./Client-D-GbQqXf.js";
2
2
  import * as tooltip from "@zag-js/tooltip";
3
3
 
4
4
  //#region Resources/Private/Primitives/Tooltip/Tooltip.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluid-primitives",
3
- "version": "0.18.0-next.8.a9be2d6",
3
+ "version": "0.18.0",
4
4
  "description": "Client-side library for Fluid Primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",