@plasmicpkgs/antd5 0.0.112 → 0.0.114

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.
@@ -0,0 +1,289 @@
1
+ import { Collapse } from 'antd';
2
+ import React, { useMemo } from 'react';
3
+ import { r as registerComponentHelper } from './utils-94ad8c63.esm.js';
4
+ import '@plasmicapp/host/registerComponent';
5
+ import '@plasmicapp/host/registerGlobalContext';
6
+
7
+ var __defProp = Object.defineProperty;
8
+ var __defProps = Object.defineProperties;
9
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
10
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
+ var __spreadValues = (a, b) => {
15
+ for (var prop in b || (b = {}))
16
+ if (__hasOwnProp.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ if (__getOwnPropSymbols)
19
+ for (var prop of __getOwnPropSymbols(b)) {
20
+ if (__propIsEnum.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ }
23
+ return a;
24
+ };
25
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
+ var __objRest = (source, exclude) => {
27
+ var target = {};
28
+ for (var prop in source)
29
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
+ target[prop] = source[prop];
31
+ if (source != null && __getOwnPropSymbols)
32
+ for (var prop of __getOwnPropSymbols(source)) {
33
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
+ target[prop] = source[prop];
35
+ }
36
+ return target;
37
+ };
38
+ const collapseComponentName = "plasmic-antd5-collapse";
39
+ const collapseItemComponentName = "plasmic-antd5-collapse-item";
40
+ const AntdCollapseItem = ({ children }) => {
41
+ return /* @__PURE__ */ React.createElement("div", null, children);
42
+ };
43
+ function AntdCollapse(props) {
44
+ const _a = props, {
45
+ items: itemsRaw,
46
+ activeKeys,
47
+ defaultActiveKeys,
48
+ expandIcon,
49
+ collapsible,
50
+ disabled,
51
+ rotateCustomExpandIcon
52
+ } = _a, rest = __objRest(_a, [
53
+ "items",
54
+ "activeKeys",
55
+ "defaultActiveKeys",
56
+ "expandIcon",
57
+ "collapsible",
58
+ "disabled",
59
+ "rotateCustomExpandIcon"
60
+ ]);
61
+ const activeKeyProp = useMemo(() => {
62
+ const res = (activeKeys == null ? void 0 : activeKeys.map((k) => k.key).filter((k) => k)) || [];
63
+ return res.length ? res : void 0;
64
+ }, [activeKeys]);
65
+ const defaultActiveKeysProp = useMemo(() => {
66
+ const res = (defaultActiveKeys == null ? void 0 : defaultActiveKeys.map((k) => k.key).filter((k) => k)) || [];
67
+ return res.length ? res : void 0;
68
+ }, [defaultActiveKeys]);
69
+ const items = useMemo(() => {
70
+ if (!React.isValidElement(itemsRaw))
71
+ return [];
72
+ return (Array.isArray(itemsRaw.props.children) ? itemsRaw.props.children : [itemsRaw.props.children]).map((currentItem) => {
73
+ if (!React.isValidElement(currentItem) || !React.isValidElement(currentItem.props.children)) {
74
+ return null;
75
+ }
76
+ return __spreadProps(__spreadValues({}, currentItem.props), {
77
+ id: currentItem.props.id,
78
+ key: currentItem.props.id,
79
+ children: React.cloneElement(currentItem.props.children)
80
+ });
81
+ }).filter((i) => i != null);
82
+ }, [itemsRaw]);
83
+ return /* @__PURE__ */ React.createElement(
84
+ Collapse,
85
+ __spreadValues({
86
+ items,
87
+ defaultActiveKey: defaultActiveKeysProp,
88
+ activeKey: activeKeyProp,
89
+ collapsible: disabled ? "disabled" : collapsible,
90
+ expandIcon: (expandIcon == null ? void 0 : expandIcon.key) ? ({ isActive }) => /* @__PURE__ */ React.createElement(
91
+ "div",
92
+ {
93
+ style: isActive && rotateCustomExpandIcon ? { transform: "rotate(90deg)" } : void 0
94
+ },
95
+ expandIcon
96
+ ) : void 0
97
+ }, rest)
98
+ );
99
+ }
100
+ const collapseHelpers = {
101
+ states: {
102
+ activeKeys: {
103
+ onChangeArgsToValue: (activeKeys) => activeKeys.map((key) => ({ key }))
104
+ }
105
+ }
106
+ };
107
+ function registerCollapse(loader) {
108
+ registerComponentHelper(loader, AntdCollapse, {
109
+ name: collapseComponentName,
110
+ displayName: "Collapse",
111
+ defaultStyles: {
112
+ width: "stretch"
113
+ },
114
+ props: {
115
+ accordion: {
116
+ type: "boolean",
117
+ description: `Allow only one panel to be expanded at a time`
118
+ },
119
+ activeKeys: {
120
+ editOnly: true,
121
+ displayName: "Active Panel IDs",
122
+ uncontrolledProp: "defaultActiveKeys",
123
+ type: "array",
124
+ description: `A list of panel IDs that are expanded by default.`,
125
+ advanced: true,
126
+ itemType: {
127
+ type: "object",
128
+ nameFunc: (_item) => `ID: ${_item.key}`,
129
+ fields: {
130
+ key: {
131
+ type: "number",
132
+ displayName: "Panel ID"
133
+ }
134
+ }
135
+ }
136
+ },
137
+ bordered: {
138
+ type: "boolean",
139
+ defaultValue: true,
140
+ description: `Display border around collapse `
141
+ },
142
+ disabled: {
143
+ type: "boolean",
144
+ description: "Disable the toggle behaviour of panels"
145
+ },
146
+ collapsible: {
147
+ type: "choice",
148
+ defaultValueHint: "header",
149
+ description: `Specify the element that can be clicked to toggle a panel`,
150
+ options: ["header", "icon"],
151
+ hidden: (ps) => Boolean(ps.disabled)
152
+ },
153
+ destroyInactivePanel: {
154
+ type: "boolean",
155
+ advanced: true,
156
+ description: `Destroy/Unmount inactive panels`
157
+ },
158
+ expandIcon: {
159
+ type: "slot",
160
+ hidePlaceholder: true
161
+ },
162
+ rotateCustomExpandIcon: {
163
+ type: "boolean",
164
+ description: "Enable rotation of custom expand icon when panel is expanded",
165
+ advanced: true,
166
+ hidden: (ps) => {
167
+ var _a;
168
+ return !((_a = ps.expandIcon) == null ? void 0 : _a.key);
169
+ }
170
+ },
171
+ expandIconPosition: {
172
+ type: "choice",
173
+ defaultValueHint: "start",
174
+ description: `Set expand icon position`,
175
+ options: ["start", "end"]
176
+ },
177
+ ghost: {
178
+ type: "boolean",
179
+ description: `Make the collapse borderless and its background transparent`
180
+ },
181
+ size: {
182
+ type: "choice",
183
+ defaultValueHint: "middle",
184
+ description: `Set the size of collapse`,
185
+ options: ["large", "middle", "small"]
186
+ },
187
+ items: __spreadProps(__spreadValues({
188
+ type: "slot",
189
+ hidePlaceholder: true,
190
+ allowedComponents: [collapseItemComponentName]
191
+ }, { mergeWithParent: true }), {
192
+ defaultValue: [
193
+ {
194
+ type: "component",
195
+ name: collapseItemComponentName,
196
+ props: {
197
+ id: 1,
198
+ label: "First Item",
199
+ children: {
200
+ type: "text",
201
+ value: "First Children"
202
+ }
203
+ }
204
+ },
205
+ {
206
+ type: "component",
207
+ name: collapseItemComponentName,
208
+ props: {
209
+ id: 2,
210
+ label: "Second Item",
211
+ children: {
212
+ type: "text",
213
+ value: "Second Children"
214
+ }
215
+ }
216
+ }
217
+ ]
218
+ }),
219
+ onChange: {
220
+ type: "eventHandler",
221
+ argTypes: [{ name: "activeIds", type: "object" }]
222
+ }
223
+ },
224
+ states: {
225
+ activePanelIds: __spreadValues({
226
+ type: "writable",
227
+ valueProp: "activeKeys",
228
+ onChangeProp: "onChange",
229
+ variableType: "array"
230
+ }, collapseHelpers.states.activeKeys)
231
+ },
232
+ componentHelpers: {
233
+ helpers: collapseHelpers,
234
+ importName: "collapseHelpers",
235
+ importPath: "@plasmicpkgs/antd5/skinny/registerCollapse"
236
+ },
237
+ importPath: "@plasmicpkgs/antd5/skinny/registerCollapse",
238
+ importName: "AntdCollapse"
239
+ });
240
+ registerComponentHelper(loader, AntdCollapseItem, {
241
+ name: collapseItemComponentName,
242
+ displayName: "Collapse Item",
243
+ props: {
244
+ id: {
245
+ type: "string",
246
+ description: `Unique identifier for this time`
247
+ },
248
+ label: {
249
+ type: "string",
250
+ description: `Text inside the header`,
251
+ displayName: "Header Content"
252
+ },
253
+ showArrow: {
254
+ type: "boolean",
255
+ defaultValue: true,
256
+ description: `Whether to show animating arrow alongside header text`,
257
+ advanced: true
258
+ },
259
+ destroyInactivePanel: {
260
+ type: "boolean",
261
+ description: `Destroy/Unmount panel if inactive`,
262
+ advanced: true
263
+ },
264
+ forceRender: {
265
+ type: "boolean",
266
+ description: `Force rendering of content in the panel, instead of lazy rendering it.`,
267
+ advanced: true
268
+ },
269
+ extra: {
270
+ type: "slot",
271
+ hidePlaceholder: true
272
+ },
273
+ collapsible: {
274
+ type: "boolean",
275
+ advanced: true
276
+ },
277
+ children: {
278
+ type: "slot",
279
+ hidePlaceholder: true
280
+ }
281
+ },
282
+ importPath: "@plasmicpkgs/antd5/skinny/registerCollapse",
283
+ importName: "AntdCollapseItem",
284
+ parentComponentName: collapseComponentName
285
+ });
286
+ }
287
+
288
+ export { AntdCollapse, AntdCollapseItem, collapseComponentName, collapseHelpers, collapseItemComponentName, registerCollapse };
289
+ //# sourceMappingURL=registerCollapse.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerCollapse.esm.js","sources":["../src/registerCollapse.tsx"],"sourcesContent":["import { Collapse } from \"antd\";\nimport React, { ReactNode, useMemo } from \"react\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\n\nexport const collapseComponentName = \"plasmic-antd5-collapse\";\nexport const collapseItemComponentName = \"plasmic-antd5-collapse-item\";\n\ntype CollapseItemType = NonNullable<\n React.ComponentProps<typeof Collapse>[\"items\"]\n>[number];\n\nexport const AntdCollapseItem: React.FC<CollapseItemType> = ({ children }) => {\n return <div>{children}</div>;\n};\n\nexport function AntdCollapse(\n props: Omit<\n React.ComponentProps<typeof Collapse>,\n \"items\" | \"activeKey\" | \"defaultActiveKeys\" | \"expandIcon\"\n > & {\n items: { props: { children: React.ReactElement<CollapseItemType>[] } };\n defaultActiveKeys?: { key: string | number }[];\n activeKeys?: { key: string | number }[];\n disabled?: boolean;\n expandIcon: React.ReactElement;\n rotateCustomExpandIcon: boolean;\n }\n) {\n const {\n items: itemsRaw,\n activeKeys,\n defaultActiveKeys,\n expandIcon,\n collapsible,\n disabled,\n rotateCustomExpandIcon,\n ...rest\n } = props;\n\n const activeKeyProp = useMemo(() => {\n const res = activeKeys?.map((k) => k.key).filter((k) => k) || [];\n return res.length ? res : undefined;\n }, [activeKeys]);\n\n const defaultActiveKeysProp = useMemo(() => {\n const res = defaultActiveKeys?.map((k) => k.key).filter((k) => k) || [];\n return res.length ? res : undefined;\n }, [defaultActiveKeys]);\n\n const items: CollapseItemType[] = useMemo(() => {\n if (!React.isValidElement(itemsRaw)) return [];\n return (\n Array.isArray(itemsRaw.props.children)\n ? itemsRaw.props.children\n : [itemsRaw.props.children]\n )\n .map((currentItem) => {\n if (\n !React.isValidElement(currentItem) ||\n !React.isValidElement(currentItem.props.children)\n ) {\n return null;\n }\n return {\n ...currentItem.props,\n id: currentItem.props.id,\n key: currentItem.props.id,\n children: React.cloneElement(currentItem.props.children),\n };\n })\n .filter((i) => i != null) as CollapseItemType[];\n }, [itemsRaw]);\n\n return (\n <Collapse\n items={items}\n defaultActiveKey={defaultActiveKeysProp}\n activeKey={activeKeyProp}\n collapsible={disabled ? \"disabled\" : collapsible}\n expandIcon={\n expandIcon?.key\n ? ({ isActive }) => (\n <div\n style={\n isActive && rotateCustomExpandIcon\n ? { transform: \"rotate(90deg)\" }\n : undefined\n }\n >\n {expandIcon}\n </div>\n )\n : undefined\n }\n {...rest}\n />\n );\n}\n\nexport const collapseHelpers = {\n states: {\n activeKeys: {\n onChangeArgsToValue: (activeKeys: string[]) =>\n activeKeys.map((key) => ({ key })),\n },\n },\n};\n\nexport function registerCollapse(loader?: Registerable) {\n registerComponentHelper(loader, AntdCollapse, {\n name: collapseComponentName,\n displayName: \"Collapse\",\n defaultStyles: {\n width: \"stretch\",\n },\n props: {\n accordion: {\n type: \"boolean\",\n description: `Allow only one panel to be expanded at a time`,\n },\n activeKeys: {\n editOnly: true,\n displayName: \"Active Panel IDs\",\n uncontrolledProp: \"defaultActiveKeys\",\n type: \"array\",\n description: `A list of panel IDs that are expanded by default.`,\n advanced: true,\n itemType: {\n type: \"object\",\n nameFunc: (_item: any) => `ID: ${_item.key}`,\n fields: {\n key: {\n type: \"number\",\n displayName: \"Panel ID\",\n },\n },\n },\n },\n bordered: {\n type: \"boolean\",\n defaultValue: true,\n description: `Display border around collapse `,\n },\n disabled: {\n type: \"boolean\",\n description: \"Disable the toggle behaviour of panels\",\n },\n collapsible: {\n type: \"choice\",\n defaultValueHint: \"header\",\n description: `Specify the element that can be clicked to toggle a panel`,\n options: [\"header\", \"icon\"],\n hidden: (ps) => Boolean(ps.disabled),\n },\n destroyInactivePanel: {\n type: \"boolean\",\n advanced: true,\n description: `Destroy/Unmount inactive panels`,\n },\n expandIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n rotateCustomExpandIcon: {\n type: \"boolean\",\n description:\n \"Enable rotation of custom expand icon when panel is expanded\",\n advanced: true,\n hidden: (ps) => !ps.expandIcon?.key,\n },\n expandIconPosition: {\n type: \"choice\",\n defaultValueHint: \"start\",\n description: `Set expand icon position`,\n options: [\"start\", \"end\"],\n },\n ghost: {\n type: \"boolean\",\n description: `Make the collapse borderless and its background transparent`,\n },\n size: {\n type: \"choice\",\n defaultValueHint: \"middle\",\n description: `Set the size of collapse`,\n options: [\"large\", \"middle\", \"small\"],\n },\n items: {\n type: \"slot\",\n hidePlaceholder: true,\n allowedComponents: [collapseItemComponentName],\n ...({ mergeWithParent: true } as any),\n defaultValue: [\n {\n type: \"component\",\n name: collapseItemComponentName,\n props: {\n id: 1,\n label: \"First Item\",\n children: {\n type: \"text\",\n value: \"First Children\",\n },\n },\n },\n {\n type: \"component\",\n name: collapseItemComponentName,\n props: {\n id: 2,\n label: \"Second Item\",\n children: {\n type: \"text\",\n value: \"Second Children\",\n },\n },\n },\n ],\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [{ name: \"activeIds\", type: \"object\" }],\n },\n },\n states: {\n activePanelIds: {\n type: \"writable\",\n valueProp: \"activeKeys\",\n onChangeProp: \"onChange\",\n variableType: \"array\",\n ...collapseHelpers.states.activeKeys,\n },\n },\n componentHelpers: {\n helpers: collapseHelpers,\n importName: \"collapseHelpers\",\n importPath: \"@plasmicpkgs/antd5/skinny/registerCollapse\",\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerCollapse\",\n importName: \"AntdCollapse\",\n });\n\n registerComponentHelper(loader, AntdCollapseItem, {\n name: collapseItemComponentName,\n displayName: \"Collapse Item\",\n props: {\n id: {\n type: \"string\",\n description: `Unique identifier for this time`,\n },\n label: {\n type: \"string\",\n description: `Text inside the header`,\n displayName: \"Header Content\",\n },\n showArrow: {\n type: \"boolean\",\n defaultValue: true,\n description: `Whether to show animating arrow alongside header text`,\n advanced: true,\n },\n destroyInactivePanel: {\n type: \"boolean\",\n description: `Destroy/Unmount panel if inactive`,\n advanced: true,\n },\n forceRender: {\n type: \"boolean\",\n description: `Force rendering of content in the panel, instead of lazy rendering it.`,\n advanced: true,\n },\n extra: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n collapsible: {\n type: \"boolean\",\n advanced: true,\n },\n children: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerCollapse\",\n importName: \"AntdCollapseItem\",\n parentComponentName: collapseComponentName,\n });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,qBAAwB,GAAA,yBAAA;AAC9B,MAAM,yBAA4B,GAAA,8BAAA;AAMlC,MAAM,gBAA+C,GAAA,CAAC,EAAE,QAAA,EAAe,KAAA;AAC5E,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,aAAK,QAAS,CAAA,CAAA;AACxB,EAAA;AAEO,SAAS,aACd,KAWA,EAAA;AACA,EAAA,MASI,EARF,GAAA,KAAA,EAAA;AAAA,IAAO,KAAA,EAAA,QAAA;AAAA,IACP,UAAA;A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;AAAA,QACN,eAAiB,EAAA,IAAA;AAAA,OACnB;AAAA,MACA,WAAa,EAAA;AAAA,QACX,IAAM,EAAA,SAAA;AAAA,QACN,QAAU,EAAA,IAAA;AAAA,OACZ;AAAA,MACA,QAAU,EAAA;AAAA,QACR,IAAM,EAAA,MAAA;AAAA,QACN,eAAiB,EAAA,IAAA;AAAA,OACnB;AAAA,KACF;AAAA,IACA,UAAY,EAAA,4CAAA;AAAA,IACZ,UAAY,EAAA,kBAAA;AAAA,IACZ,mBAAqB,EAAA,qBAAA;AAAA,GACtB,CAAA,CAAA;AACH;;;;"}
@@ -389,6 +389,7 @@ function registerForm(loader) {
389
389
  utils.registerComponentHelper(loader, FormWrapper, {
390
390
  name: formComponentName,
391
391
  displayName: "Form",
392
+ description: "[Learn how to use forms](https://docs.plasmic.app/learn/forms/)",
392
393
  defaultStyles: {
393
394
  layout: "vbox",
394
395
  alignItems: "flex-start"