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.
- package/dist/{Client-C51NSHxg.js → Client-D-GbQqXf.js} +1 -9
- package/dist/accordion.d.ts +1 -1
- package/dist/accordion.js +1 -1
- package/dist/checkbox-group.d.ts +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/clipboard.d.ts +1 -1
- package/dist/clipboard.js +1 -1
- package/dist/collapsible.d.ts +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +1 -1
- package/dist/field.d.ts +2 -2
- package/dist/field.js +1 -1
- package/dist/form.d.ts +2 -2
- package/dist/form.js +1 -1
- package/dist/{form.registry-Cb8Pvoe8.d.ts → form.registry-DjhMF6Ny.d.ts} +1 -1
- package/dist/{index-B8JCdyld.d.ts → index-DxZhm-zT.d.ts} +1 -4
- package/dist/navigation-menu.d.ts +1 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +1 -1
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.d.ts +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/scroll-area.d.ts +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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 };
|
package/dist/accordion.d.ts
CHANGED
package/dist/accordion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
package/dist/checkbox-group.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Machine,
|
|
2
|
-
import { t as FieldMachine } from "./form.registry-
|
|
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
|
|
package/dist/checkbox-group.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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";
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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,
|
|
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,
|
|
2
|
-
export { Component, ComponentHydrationData, ComponentHydrator, ComponentInterface, FieldAwareComponent, FluidPrimitivesGlobals, Machine, getHydrationData, mergeProps, mount,
|
|
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,
|
|
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,
|
|
3
|
+
export { Component, ComponentHydrator, FieldAwareComponent, Machine, getHydrationData, mergeProps, mount, normalizeProps, spreadProps, uid };
|
package/dist/clipboard.d.ts
CHANGED
package/dist/clipboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
package/dist/collapsible.d.ts
CHANGED
package/dist/collapsible.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
package/dist/dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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,
|
|
2
|
-
import { n as FormMachine } from "./form.registry-
|
|
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,
|
|
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,
|
|
2
|
-
import { t as FieldMachine } from "./form.registry-
|
|
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,
|
|
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";
|
|
@@ -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,
|
|
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 };
|
package/dist/navigation-menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
package/dist/number-input.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
|
package/dist/number-input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
package/dist/popover.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
|
package/dist/radio-group.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|
package/dist/scroll-area.d.ts
CHANGED
package/dist/scroll-area.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
package/dist/tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
package/dist/tooltip.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Machine,
|
|
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
|