@plasmicpkgs/antd5 0.0.126 → 0.0.127
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/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +38 -19
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +38 -19
- package/dist/index.js.map +1 -1
- package/dist/registerCollapse.d.ts +2 -2
- package/package.json +4 -3
- package/skinny/registerButton.cjs.js +12 -4
- package/skinny/registerButton.cjs.js.map +1 -1
- package/skinny/registerButton.esm.js +12 -4
- package/skinny/registerButton.esm.js.map +1 -1
- package/skinny/registerCollapse.cjs.js +8 -10
- package/skinny/registerCollapse.cjs.js.map +1 -1
- package/skinny/registerCollapse.d.ts +2 -2
- package/skinny/registerCollapse.esm.js +8 -10
- package/skinny/registerCollapse.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +18 -5
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.esm.js +18 -5
- package/skinny/registerPopover.esm.js.map +1 -1
package/dist/antd.esm.js
CHANGED
|
@@ -198,13 +198,21 @@ var __objRest$h = (source, exclude) => {
|
|
|
198
198
|
return target;
|
|
199
199
|
};
|
|
200
200
|
function AntdButton(props) {
|
|
201
|
-
const _a = props, { submitsForm = false } = _a, rest = __objRest$h(_a, ["submitsForm"]);
|
|
201
|
+
const _a = props, { submitsForm = false, children } = _a, rest = __objRest$h(_a, ["submitsForm", "children"]);
|
|
202
202
|
const target = props.target === true ? "_blank" : props.target === false ? void 0 : props.target;
|
|
203
203
|
return /* @__PURE__ */ React.createElement(
|
|
204
204
|
Button,
|
|
205
|
-
__spreadProps$i(__spreadValues$o(
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
__spreadProps$i(__spreadValues$o({}, rest), {
|
|
206
|
+
children: /* @__PURE__ */ React.createElement(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
style: {
|
|
210
|
+
display: "inline-block"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
children
|
|
214
|
+
),
|
|
215
|
+
htmlType: submitsForm ? "submit" : "button",
|
|
208
216
|
target
|
|
209
217
|
})
|
|
210
218
|
);
|
|
@@ -6058,13 +6066,10 @@ function AntdAccordion(props) {
|
|
|
6058
6066
|
if (!React.isValidElement(itemsRaw))
|
|
6059
6067
|
return [];
|
|
6060
6068
|
return (Array.isArray(itemsRaw.props.children) ? itemsRaw.props.children : [itemsRaw.props.children]).map((currentItem) => {
|
|
6061
|
-
if (!React.isValidElement(currentItem) || !React.isValidElement(currentItem.props.children)) {
|
|
6062
|
-
return null;
|
|
6063
|
-
}
|
|
6064
6069
|
const props2 = __spreadProps$1(__spreadValues$3({}, currentItem.props), {
|
|
6065
6070
|
id: currentItem.props.id,
|
|
6066
6071
|
key: currentItem.props.id,
|
|
6067
|
-
children: React.cloneElement(currentItem.props.children)
|
|
6072
|
+
children: React.cloneElement(/* @__PURE__ */ React.createElement(React.Fragment, null, currentItem.props.children))
|
|
6068
6073
|
});
|
|
6069
6074
|
if (currentItem.props.label) {
|
|
6070
6075
|
delete props2.label2;
|
|
@@ -6155,7 +6160,7 @@ function AntdSingleCollapse(props) {
|
|
|
6155
6160
|
}
|
|
6156
6161
|
const accordionHelpers = {
|
|
6157
6162
|
states: {
|
|
6158
|
-
|
|
6163
|
+
activePanelId: {
|
|
6159
6164
|
onChangeArgsToValue: (activeKeys) => activeKeys[0]
|
|
6160
6165
|
}
|
|
6161
6166
|
}
|
|
@@ -6293,8 +6298,8 @@ function registerCollapse(loader) {
|
|
|
6293
6298
|
}, singleCollapseHelpers.states.open)
|
|
6294
6299
|
},
|
|
6295
6300
|
componentHelpers: {
|
|
6296
|
-
helpers:
|
|
6297
|
-
importName: "
|
|
6301
|
+
helpers: singleCollapseHelpers,
|
|
6302
|
+
importName: "singleCollapseHelpers",
|
|
6298
6303
|
importPath: "@plasmicpkgs/antd5/skinny/registerCollapse"
|
|
6299
6304
|
},
|
|
6300
6305
|
importPath: "@plasmicpkgs/antd5/skinny/registerCollapse",
|
|
@@ -6359,8 +6364,8 @@ function registerCollapse(loader) {
|
|
|
6359
6364
|
type: "writable",
|
|
6360
6365
|
valueProp: "activeKey",
|
|
6361
6366
|
onChangeProp: "onChange",
|
|
6362
|
-
variableType: "
|
|
6363
|
-
}, accordionHelpers.states.
|
|
6367
|
+
variableType: "text"
|
|
6368
|
+
}, accordionHelpers.states.activePanelId)
|
|
6364
6369
|
},
|
|
6365
6370
|
componentHelpers: {
|
|
6366
6371
|
helpers: accordionHelpers,
|
|
@@ -6376,7 +6381,8 @@ function registerCollapse(loader) {
|
|
|
6376
6381
|
props: __spreadValues$3(__spreadValues$3({
|
|
6377
6382
|
id: {
|
|
6378
6383
|
type: "string",
|
|
6379
|
-
description: `Unique identifier for this item
|
|
6384
|
+
description: `Unique identifier for this item`,
|
|
6385
|
+
required: true
|
|
6380
6386
|
}
|
|
6381
6387
|
}, commonProps), commonAccordionItemProps),
|
|
6382
6388
|
importPath: "@plasmicpkgs/antd5/skinny/registerCollapse",
|
|
@@ -6414,7 +6420,17 @@ var __objRest$2 = (source, exclude) => {
|
|
|
6414
6420
|
return target;
|
|
6415
6421
|
};
|
|
6416
6422
|
function AntdPopover(props) {
|
|
6417
|
-
const _a = props, {
|
|
6423
|
+
const _a = props, {
|
|
6424
|
+
overlayClassName,
|
|
6425
|
+
popoverScopeClassName,
|
|
6426
|
+
contentText,
|
|
6427
|
+
content
|
|
6428
|
+
} = _a, rest = __objRest$2(_a, [
|
|
6429
|
+
"overlayClassName",
|
|
6430
|
+
"popoverScopeClassName",
|
|
6431
|
+
"contentText",
|
|
6432
|
+
"content"
|
|
6433
|
+
]);
|
|
6418
6434
|
return /* @__PURE__ */ React.createElement(
|
|
6419
6435
|
Popover,
|
|
6420
6436
|
__spreadValues$2({
|
|
@@ -6470,7 +6486,7 @@ function registerPopover(loader) {
|
|
|
6470
6486
|
hidePlaceholder: true
|
|
6471
6487
|
},
|
|
6472
6488
|
/**
|
|
6473
|
-
* NOTE: contentText ensures that the popover shows as a custom behaviour without modifications
|
|
6489
|
+
* NOTE: contentText ensures that the popover shows as a custom behaviour without modifications
|
|
6474
6490
|
* (when a random element is given a custom behaviour of Popover, the props of type "slot" do not receive any default value.
|
|
6475
6491
|
* Therefore we use the contentText which has a string default value, so that the popover shows with at least something)
|
|
6476
6492
|
* */
|
|
@@ -6478,7 +6494,8 @@ function registerPopover(loader) {
|
|
|
6478
6494
|
type: "string",
|
|
6479
6495
|
displayName: "Popover contents",
|
|
6480
6496
|
description: "What gets shown inside the popover on hover",
|
|
6481
|
-
defaultValue: "Popover contents"
|
|
6497
|
+
defaultValue: "Popover contents",
|
|
6498
|
+
hidden: (ps) => !!ps.content
|
|
6482
6499
|
},
|
|
6483
6500
|
title: {
|
|
6484
6501
|
type: "slot",
|
|
@@ -6519,13 +6536,15 @@ function registerPopover(loader) {
|
|
|
6519
6536
|
type: "number",
|
|
6520
6537
|
description: "Delay in seconds, before popover is shown on mouse enter",
|
|
6521
6538
|
defaultValue: 0,
|
|
6522
|
-
advanced: true
|
|
6539
|
+
advanced: true,
|
|
6540
|
+
hidden: (ps) => ps.trigger ? ps.trigger !== "hover" : false
|
|
6523
6541
|
},
|
|
6524
6542
|
mouseLeaveDelay: {
|
|
6525
6543
|
type: "number",
|
|
6526
6544
|
description: "Delay in seconds, before popover is hidden on mouse leave",
|
|
6527
6545
|
defaultValue: 0,
|
|
6528
|
-
advanced: true
|
|
6546
|
+
advanced: true,
|
|
6547
|
+
hidden: (ps) => ps.trigger ? ps.trigger !== "hover" : false
|
|
6529
6548
|
},
|
|
6530
6549
|
onOpenChange: {
|
|
6531
6550
|
type: "eventHandler",
|