@measured/puck 0.14.0-canary.3df6d96 → 0.14.0-canary.53b7937
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { C as Config, D as Data, I as ItemSelector, U as UiState, A as AppState, F as Field, a as DefaultComponentProps, b as DefaultRootProps, M as MappedItem, R as RootDataWithProps, c as RootData } from './Config-
|
2
|
-
export { g as Adaptor, f as ArrayField, r as ArrayState, n as BaseData, B as BaseField, m as ComponentConfig, o as ComponentData, k as Content, i as CustomField, s as DropZone, h as ExternalField, E as ExternalFieldWithAdaptor, j as Fields, q as ItemWithId, N as NumberField, O as ObjectField, P as PuckComponent, l as PuckContext, e as RadioField, p as RootDataWithoutProps, S as SelectField, T as TextField, d as TextareaField } from './Config-
|
1
|
+
import { C as Config, D as Data, I as ItemSelector, U as UiState, A as AppState, F as Field, a as DefaultComponentProps, b as DefaultRootProps, M as MappedItem, R as RootDataWithProps, c as RootData } from './Config-0bf39037.js';
|
2
|
+
export { g as Adaptor, f as ArrayField, r as ArrayState, n as BaseData, B as BaseField, m as ComponentConfig, o as ComponentData, k as Content, i as CustomField, s as DropZone, h as ExternalField, E as ExternalFieldWithAdaptor, j as Fields, q as ItemWithId, N as NumberField, O as ObjectField, P as PuckComponent, l as PuckContext, e as RadioField, p as RootDataWithoutProps, S as SelectField, T as TextField, d as TextareaField } from './Config-0bf39037.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, CSSProperties, ReactElement, SyntheticEvent } from 'react';
|
package/dist/index.js
CHANGED
@@ -31346,6 +31346,7 @@ var ArrayField = ({
|
|
31346
31346
|
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameItem2("actions"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameItem2("action"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
31347
31347
|
IconButton,
|
31348
31348
|
{
|
31349
|
+
disabled: field.min !== void 0 && field.min >= localState.arrayState.items.length,
|
31349
31350
|
onClick: (e) => {
|
31350
31351
|
e.stopPropagation();
|
31351
31352
|
const existingValue = [
|
@@ -31410,6 +31411,7 @@ var ArrayField = ({
|
|
31410
31411
|
"button",
|
31411
31412
|
{
|
31412
31413
|
className: getClassName10("addButton"),
|
31414
|
+
disabled: field.max !== void 0 && localState.arrayState.items.length >= field.max,
|
31413
31415
|
onClick: () => {
|
31414
31416
|
const existingValue = value || [];
|
31415
31417
|
const newValue = [
|
@@ -31419,7 +31421,7 @@ var ArrayField = ({
|
|
31419
31421
|
const newArrayState = regenerateArrayState(newValue);
|
31420
31422
|
onChange(newValue, mapArrayStateToUi(newArrayState));
|
31421
31423
|
},
|
31422
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Plus, { size:
|
31424
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Plus, { size: 21 })
|
31423
31425
|
}
|
31424
31426
|
)
|
31425
31427
|
]
|
package/dist/rsc.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { C as Config, D as Data } from './Config-
|
2
|
+
import { C as Config, D as Data } from './Config-0bf39037.js';
|
3
3
|
import 'react';
|
4
4
|
|
5
5
|
declare function Render<UserConfig extends Config<any, any, any> = Config<any, any, any>>({ config, data }: {
|
package/package.json
CHANGED