@plasmicpkgs/antd 2.0.6 → 2.0.7

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.
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),n=e(require("antd/lib/button")),o=e(require("antd/lib/carousel")),i=e(require("antd/lib/checkbox/Checkbox")),a=e(require("antd/lib/checkbox/Group")),l=e(require("react")),r=e(require("antd/lib/collapse/Collapse")),p=e(require("antd/lib/collapse/CollapsePanel")),d=e(require("antd/lib/dropdown")),u=e(require("antd/lib/dropdown/dropdown-button")),s=e(require("antd/lib/input")),c=e(require("antd/lib/input/Group")),m=e(require("antd/lib/input/Password")),h=e(require("antd/lib/input/Search")),y=e(require("antd/lib/input/TextArea")),f=e(require("antd/lib/menu/index")),b=e(require("antd/lib/menu/MenuDivider")),g=e(require("antd/lib/menu/MenuItem")),v=e(require("antd/lib/menu/SubMenu")),x=require("rc-menu"),V=require("rc-select"),w=e(require("antd/lib/rate")),C=e(require("antd/lib/select")),A=e(require("antd/lib/slider")),P=e(require("antd/lib/switch")),k=require("@plasmicapp/host"),H=e(require("antd/lib/table/Table")),T=require("antd"),I=e(require("antd/lib/tabs")),M=require("rc-tabs"),S={name:"AntdButton",displayName:"Antd Button",props:{type:{type:"choice",options:["default","primary","ghost","dashed","link","text"],description:"Can be set to primary, ghost, dashed, link, text, default",defaultValueHint:"default"},size:{type:"choice",options:["small","medium","large"],description:"Set the size of button",defaultValueHint:"medium"},shape:{type:"choice",options:["default","circle","round"],description:"Can be set button shape",defaultValueHint:"default"},disabled:{type:"boolean",description:"Disabled state of button",defaultValueHint:!1},ghost:{type:"boolean",description:"Make background transparent and invert text and border colors",defaultValueHint:!1},danger:{type:"boolean",description:"Set the danger status of button",defaultValueHint:!1},block:{type:"boolean",description:"Option to fit button width to its parent width",defaultValueHint:!1},loading:{type:"boolean",description:"Set the loading status of button",defaultValueHint:!1},href:{type:"string",description:"Redirect url of link button"},target:{type:"choice",options:["_blank","_self","_parent","_top"],description:"Same as target attribute of a, works when href is specified",hidden:function(e){return!e.href},defaultValueHint:"_self"},children:{type:"slot",defaultValue:[{type:"text",value:"Button"}]}},importPath:"antd/lib/button",isDefaultExport:!0,importName:"Button"};function N(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n,null!=o?o:S)}var D={height:"160px",color:"#fff",lineHeight:"160px",textAlign:"center",backgroundColor:"#364d79"},O={name:"AntdCarousel",displayName:"Antd Carousel",props:{autoplay:{type:"boolean",description:"Whether to scroll automatically",defaultValueHint:!1},dotPosition:{type:"choice",options:["top","bottom","left","right"],description:"The position of the dots",defaultValueHint:"bottom"},dots:{type:"boolean",description:"Whether to show the dots at the bottom of the gallery",defaultValueHint:!0},effect:{type:"choice",options:["scrollx","fade"],defaultValueHint:"scrollx"},children:{type:"slot",defaultValue:[{type:"vbox",children:{type:"text",value:"1",styles:D}},{type:"vbox",children:{type:"text",value:"2",styles:D}}]}},importPath:"antd/lib/carousel",importName:"Carousel",isDefaultExport:!0};function E(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(o,null!=n?n:O)}function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function q(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)t.indexOf(n=a[o])>=0||(i[n]=e[n]);return i}function B(e,t){!function e(n){(Array.isArray(n)?n:[n]).forEach((function(n){var o;n&&(t(n),n.children&&e(n.children),null!=(o=n.props)&&o.children&&n.props.children!==n.children&&e(n.props.children))}))}(e)}var z=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){return l.createElement(i,Object.assign({},this.props))},t}(l.Component),j={name:"AntdCheckbox",displayName:"Antd Checkbox",props:{autoFocus:{type:"boolean",description:"If get focus when component mounted",defaultValueHint:!1},checked:{type:"boolean",editOnly:!0,uncontrolledProp:"defaultChecked",description:"Specifies the initial state: whether or not the checkbox is selected",defaultValueHint:!1},disabled:{type:"boolean",description:"If disable checkbox",defaultValueHint:!1},indeterminate:{type:"boolean",description:"The indeterminate checked state of checkbox",defaultValueHint:!1},value:{type:"string",description:"The checkbox value"},children:{type:"slot",defaultValue:[{type:"text",value:"Checkbox"}]}},importPath:"antd/lib/checkbox/Checkbox",importName:"Checkbox",defaultStyles:{marginLeft:0},isDefaultExport:!0};function K(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(z,null!=n?n:j)}var R={name:"AntdCheckboxGroup",displayName:"Antd Checkbox Group",props:{disabled:{type:"boolean",description:"If disable all checkboxes",defaultValueHint:!1},value:{type:"choice",editOnly:!0,uncontrolledProp:"defaultValue",description:"Default selected value",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){var n;(null==e?void 0:e.type)===z&&"string"==typeof(null==e||null==(n=e.props)?void 0:n.value)&&t.add(e.props.value)})),Array.from(t.keys())}},children:{type:"slot",allowedComponents:["AntdCheckbox"],defaultValue:[{type:"component",name:"AntdCheckbox"}]}},importPath:"antd/lib/checkbox/Group",importName:"CheckboxGroup",parentComponentName:"AntdCheckbox",isDefaultExport:!0};function L(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(a,null!=n?n:R)}var _=["openIcon","closeIcon"],F={name:"AntdCollapsePanel",displayName:"Antd Collapse Panel",props:{collapsible:{type:"choice",options:["header","disabled"],description:"Specify whether the panel be collapsible or the trigger area of collapsible"},forceRender:{type:"boolean",description:"Forced render of content on panel, instead of lazy rending after clicking on header",defaultValueHint:!1},header:{type:"slot",defaultValue:[{type:"text",value:"Header"}]},key:{type:"string",description:"Unique key identifying the panel from among its siblings"},showArrow:{type:"boolean",description:"If false, panel will not show arrow icon",defaultValueHint:!0},extra:{type:"slot",hidePlaceholder:!0},children:{type:"slot",defaultValue:[{type:"text",value:"Insert text here"}]}},importPath:"antd/lib/collapse/CollapsePanel",importName:"CollapsePanel",parentComponentName:"AntdCollapse",isDefaultExport:!0};function U(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(p,null!=n?n:F)}var J={name:"AntdCollapse",displayName:"Antd Collapse",props:{accordion:{type:"boolean",description:"If true, Collapse renders as Accordion",defaultValueHint:!1},activeKey:{type:"choice",editOnly:!0,uncontrolledProp:"defaultActiveKey",description:"Key of the active panel",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){(null==e?void 0:e.type)===p&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},bordered:{type:"boolean",description:"Toggles rendering of the border around the collapse block",defaultValueHint:!0},collapsible:{type:"choice",options:["header","disabled"],description:"Specify whether the panels of children be collapsible or the trigger area of collapsible"},expandIconPosition:{type:"choice",options:["left","right"],description:"Set expand icon position",defaultValueHint:"left"},ghost:{type:"boolean",description:"Make the collapse borderless and its background transparent",defaultValueHint:!1},children:{type:"slot",allowedComponents:["AntdCollapsePanel"],defaultValue:[{type:"component",name:"AntdCollapsePanel",props:{key:"1"}}]},openIcon:{type:"slot",hidePlaceholder:!0},closeIcon:{type:"slot",hidePlaceholder:!0}},importPath:"@plasmicpkgs/antd/skinny/registerCollapse",importName:"Collapse"};function Y(e){var t=e.openIcon,n=e.closeIcon,o=W(e,_);return l.createElement(r,Object.assign({},o,{expandIcon:t||n?function(e){return e.isActive?t:n}:void 0}))}function Q(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Y,null!=n?n:J)}var X=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){var e=G({},this.props);return e.children="string"==typeof this.props.children?l.createElement("div",null,this.props.children):this.props.children,l.createElement(d,Object.assign({},e))},t}(l.Component),Z={name:"AntdDropdown",displayName:"Antd Dropdown",props:{arrow:{type:"boolean",description:"Whether the dropdown arrow should be visible",defaultValueHint:!1},disabled:{type:"boolean",description:"Whether the dropdown menu is disabled",defaultValueHint:!1},overlay:{type:"slot",allowedComponents:["AntdMenu"],defaultValue:[{type:"component",name:"AntdMenu"}]},placement:{type:"choice",options:["bottomLeft","bottomCenter","bottomRight","topLeft","topCenter","topRight"],description:"Placement of popup menu",defaultValueHint:"bottomLeft"},trigger:{type:"choice",options:["click","hover","contextMenu"],description:"The trigger mode which executes the dropdown action",defaultValueHint:"hover"},visible:{type:"boolean",description:"Toggle visibility of dropdown menu in Plasmic Editor",editOnly:!0,defaultValueHint:!1},children:{type:"slot",defaultValue:[{type:"text",value:"Dropdown"}]}},importPath:"@plasmicpkgs/antd/skinny/registerDropdown",importName:"Dropdown"};function $(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(X,null!=n?n:Z)}var ee={name:"AntdDropdownButton",displayName:"Antd Dropdown Button",props:{disabled:{type:"boolean",description:"Whether the dropdown menu is disabled",defaultValueHint:!1},icon:{type:"slot",hidePlaceholder:!0},overlay:{type:"slot",allowedComponents:["AntdMenu"],defaultValue:[{type:"component",name:"AntdMenu"}]},placement:{type:"choice",options:["bottomLeft","bottomCenter","bottomRight","topLeft","topCenter","topRight"],description:"Placement of popup menu",defaultValueHint:"bottomLeft"},size:{type:"choice",options:["small","medium","large"],description:"Set the size of button",defaultValueHint:"medium"},trigger:{type:"choice",options:["click","hover","contextMenu"],description:"The trigger mode which executes the dropdown action",defaultValueHint:"hover"},type:{type:"choice",options:["default","primary","ghost","dashed","link","text"],description:"Can be set to primary, ghost, dashed, link, text, default",defaultValueHint:"default"},visible:{type:"boolean",description:"Toggle visibility of dropdown menu in Plasmic Editor",editOnly:!0,defaultValueHint:!1},children:{type:"slot",defaultValue:[{type:"text",value:"Dropdown"}]}},importPath:"antd/lib/dropdown/dropdown-button",importName:"DropdownButton",parentComponentName:"AntdDropdown",isDefaultExport:!0};function te(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(u,null!=n?n:ee)}function ne(e){return Object.fromEntries(Object.entries(e).sort())}var oe={"aria-label":{type:"string",description:"The ARIA label for this input"},"aria-labelledby":{type:"string",description:"Identifies the element(s) that labels this input"},name:{type:"string",description:"The HTML name of the input"}},ie={name:"AntdInput",displayName:"Antd Input",props:ne(G({},oe,{addonAfter:{type:"slot",hidePlaceholder:!0},addonBefore:{type:"slot",hidePlaceholder:!0},allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},id:{type:"string",description:"The ID for input"},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},prefix:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["small","middle","large"],description:"The size of the input box",defaultValueHint:"middle,"},suffix:{type:"slot",hidePlaceholder:!0},type:{type:"string",description:"The type of input",defaultValueHint:"text"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"}})),importPath:"antd/lib/input",importName:"Input",isDefaultExport:!0};function ae(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(s,null!=n?n:ie)}var le={name:"AntdInputTextArea",displayName:"Antd Input Text Area",props:ne(G({},oe,{allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},autoSize:{type:"object",description:"Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }"},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},showCount:{type:"boolean",description:"Whether show text count",defaultValueHint:!1},id:{type:"string",description:"The ID for input"},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"}})),importPath:"antd/lib/input/TextArea",importName:"TextArea",isDefaultExport:!0,parentComponentName:"AntdInput"};function re(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(y,null!=n?n:le)}var pe={name:"AntdInputSearch",displayName:"Antd Input Search",props:ne(G({},oe,{addonBefore:{type:"slot",hidePlaceholder:!0},allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},enterButton:{type:"slot",hidePlaceholder:!0},id:{type:"string",description:"The ID for input"},loading:{type:"boolean",description:"Search box with loading",defaultValueHint:!1},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},prefix:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["small","middle","large"],description:"The size of the input box",defaultValueHint:"middle"},suffix:{type:"slot",hidePlaceholder:!0},type:{type:"string",description:"The type of input"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"}})),importPath:"antd/lib/input/Search",importName:"Search",isDefaultExport:!0,parentComponentName:"AntdInput"};function de(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(h,null!=n?n:pe)}var ue={name:"AntdInputPassword",displayName:"Antd Input Password",props:ne(G({},oe,{addonAfter:{type:"slot",hidePlaceholder:!0},addonBefore:{type:"slot",hidePlaceholder:!0},allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},id:{type:"string",description:"The ID for input"},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},prefix:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["small","middle","large"],description:"The size of the input box",defaultValueHint:"middle"},type:{type:"string",description:"The type of input"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"},visibilityToggle:{type:"boolean",description:"Whether show toggle button",defaultValueHint:!0}})),importPath:"antd/lib/input/Password",importName:"Password",isDefaultExport:!0,parentComponentName:"AntdInput"};function se(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(m,null!=n?n:ue)}var ce={name:"AntdInputGroup",displayName:"Antd Input Group",props:{compact:{type:"boolean",description:"Whether use compact style",defaultValueHint:!1},size:{type:"choice",options:["small","default","large"],description:"The size of Input.Group specifies the size of the included Input fields",defaultValueHint:"default"},children:{type:"slot",defaultValue:[{type:"component",name:"AntdInput"},{type:"component",name:"AntdInput"}]}},importPath:"antd/lib/input/Group",importName:"InputGroup",isDefaultExport:!0,parentComponentName:"AntdInput"};function me(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(c,null!=n?n:ce)}var he={name:"AntdMenuDivider",displayName:"Antd Menu Divider",props:{dashed:{type:"boolean",description:"Whether line is dashed",defaultValueHint:!1}},importPath:"antd/lib/menu/MenuDivider",importName:"MenuDivider",isDefaultExport:!0,parentComponentName:"AntdMenu"};function ye(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(b,null!=n?n:he)}var fe={name:"AntdMenuItem",displayName:"Antd Menu Item",props:{danger:{type:"boolean",description:"Display the danger style",defaultValueHint:!1},disabled:{type:"boolean",description:"Whether disabled select",defaultValueHint:!1},key:{type:"string",description:"Unique ID of the menu item",defaultValue:"menuItemKey"},title:{type:"string",description:"Set display title for collapsed item"},children:{type:"slot",defaultValue:[{type:"text",value:"Option"}]}},importPath:"antd/lib/menu/MenuItem",importName:"MenuItem",isDefaultExport:!0,parentComponentName:"AntdMenu"};function be(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(g,null!=n?n:fe)}var ge={name:"AntdMenuItemGroup",displayName:"Antd Menu Item Group",props:{title:{type:"slot",defaultValue:[{type:"text",value:"Group"}]},children:{type:"slot",allowedComponents:["AntdMenuItem","AntdMenuDivider","AntdMenuItemGroup"],defaultValue:[{type:"component",name:"AntdMenuItem"}]}},importPath:"rc-menu",importName:"ItemGroup",parentComponentName:"AntdMenu"};function ve(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(x.ItemGroup,null!=n?n:ge)}var xe={name:"AntdSubMenu",displayName:"Antd SubMenu",props:{disabled:{type:"boolean",description:"Whether sub-menu is disabled",defaultValueHint:!1},key:{type:"string",description:"Unique ID of the sub-menu",defaultValue:"subMenuKey"},title:{type:"slot",defaultValue:[{type:"text",value:"Sub-menu"}]},children:{type:"slot",allowedComponents:["AntdMenuItem","AntdMenuDivider","AntdMenuItemGroup","AntdSubMenu"],defaultValue:[1,2].map((function(e){return{type:"component",name:"AntdMenuItem",props:{key:"subMenuItemKey"+e,children:[{type:"text",value:"Sub-menu item "+e}]}}}))}},importPath:"antd/lib/menu/SubMenu",importName:"SubMenu",isDefaultExport:!0,parentComponentName:"AntdMenu"};function Ve(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(v,null!=n?n:xe)}var we={name:"AntdMenu",displayName:"Antd Menu",props:{expandIcon:{type:"slot",hidePlaceholder:!0},forceSubMenuRender:{type:"boolean",description:"Render submenu into DOM before it becomes visible",defaultValueHint:!1},inlineIndent:{type:"number",description:"Indent (in pixels) of inline menu items on each level",defaultValueHint:24},mode:{type:"choice",options:["horizontal","vertical","inline"],description:"Type of menu",defaultValueHint:"vertical"},multiple:{type:"boolean",description:"Allows selection of multiple items",defaultValueHint:!1},openKeys:{type:"choice",editOnly:!0,uncontrolledProp:"defaultOpenKeys",description:"Array with the keys of default opened sub menus",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){(null==e?void 0:e.type)===v&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},overflowedIndicator:{type:"slot",hidePlaceholder:!0},selectable:{type:"boolean",description:"Allows selecting menu items",defaultValueHint:!0},selectedKeys:{type:"choice",editOnly:!0,uncontrolledProp:"defaultSelectedKeys",description:"Array with the keys of default selected menu items",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){[v,g].includes(null==e?void 0:e.type)&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},subMenuCloseDelay:{type:"number",description:"Delay time to hide submenu when mouse leaves (in seconds)",defaultValueHint:.1},subMenuOpenDelay:{type:"number",description:"Delay time to show submenu when mouse enters, (in seconds)",defaultValueHint:0},theme:{type:"choice",options:["light","dark"],description:"Color theme of the menu",defaultValueHint:"light"},triggerSubMenuAction:{type:"choice",options:["hover","click"],description:"Which action can trigger submenu open/close",defaultValueHint:"hover"},children:{type:"slot",allowedComponents:["AntdMenuItem","AntdMenuDivider","AntdSubMenu"],defaultValue:[{type:"component",name:"AntdMenuItem"},{type:"component",name:"AntdSubMenu"}]}},importPath:"antd/lib/menu/index",importName:"Menu",isDefaultExport:!0};function Ce(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(f,null!=n?n:we)}var Ae={name:"AntdOption",displayName:"Antd Option",props:{disabled:{type:"boolean",description:"Disable this option",defaultValueHint:!1},title:{type:"string",description:"title of Select after select this Option"},value:{type:"string",description:"Default to filter with this property"},key:{type:"string",description:"Option key"},children:{type:"slot",defaultValue:[{type:"text",value:"Option"}]}},importPath:"rc-select",importName:"Option",parentComponentName:"AntdSelect"};function Pe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(V.Option,null!=n?n:Ae)}var ke={name:"AntdOptionGroup",displayName:"Antd Option Group",props:{key:{type:"string",description:"Group key"},label:{type:"string",description:"Group label"},children:{type:"slot",allowedComponents:["AntdOption"],defaultValue:[{type:"component",name:"AntdOption"}]}},importPath:"rc-select",importName:"OptGroup",parentComponentName:"AntdSelect"};function He(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(V.OptGroup,null!=n?n:ke)}var Te={name:"AntdRate",displayName:"Antd Rate",props:{allowClear:{type:"boolean",description:"Whether to allow clear when clicking again",defaultValueHint:!0},allowHalf:{type:"boolean",description:"Whether to allow semi selection",defaultValueHint:!1},autoFocus:{type:"boolean",description:"If componet is focused when mounted",defaultValueHint:!1},count:{type:"number",description:"Star count"},disabled:{type:"boolean",description:"Disabled state of component",defaultValueHint:!1},tooltips:{type:"array",description:"Array to customize tooltip for each icon"},value:{type:"number",description:"The default value",editOnly:!0,uncontrolledProp:"defaultValue",defaultValueHint:0},character:{type:"slot",hidePlaceholder:!0}},importPath:"antd/lib/rate",importName:"Rate",isDefaultExport:!0};function Ie(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(w,null!=n?n:Te)}var Me={name:"AntdSelect",displayName:"Antd Select",props:{allowClear:{type:"boolean",description:"Show clear button",defaultValueHint:!1},autoClearSearchValue:{type:"boolean",description:"Whether the current search will be cleared on selecting an item",defaultValueHint:!0,hidden:function(e){return"multiple"!==e.mode&&"tags"!==e.mode}},autoFocus:{type:"boolean",description:"Get focus by default",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether disabled select",defaultValueHint:!1},listHeight:{type:"number",description:"Config popup height",defaultValueHint:256},loading:{type:"boolean",description:"Indicate loading state",defaultValueHint:!1},mode:{type:"choice",options:["multiple","tags"],description:"Set mode of Select"},open:{type:"boolean",editOnly:!0,uncontrolledProp:"defaultOpen",description:"Initial open state of dropdown",defaultValueHint:!1},placeholder:{type:"slot",defaultValue:[{type:"text",value:"Select"}]},showArrow:{type:"boolean",description:"Whether to show the drop-down arrow",defaultValueHint:!0},showSearch:{type:"boolean",description:"Whether show search input in single mode",defaultValueHint:!1},size:{type:"choice",options:["large","middle","small"],description:"Set mode of Select",defaultValueHint:"middle"},value:{type:"choice",editOnly:!0,uncontrolledProp:"defaultValue",description:"Initial selected option",options:function(e){var t=new Set;return B(e.children,(function(e){var n;(null==e?void 0:e.type)===V.Option&&"string"==typeof(null==e||null==(n=e.props)?void 0:n.value)&&t.add(e.props.value)})),Array.from(t.keys())}},virtual:{type:"boolean",description:"Disable virtual scroll when set to false",defaultValueHint:!0},children:{type:"slot",allowedComponents:["AntdOption, AntdOptionGroup"],defaultValue:[{type:"component",name:"AntdOption",props:{value:"Option",children:{type:"text",value:"Option"}}}]}},importPath:"antd/lib/select",importName:"Select",isDefaultExport:!0};function Se(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(C,null!=n?n:Me)}var Ne=["value","defaultValue","value2","defaultValue2"],De=l.forwardRef((function(e,t){var n=e.value,o=e.defaultValue,i=e.value2,a=e.defaultValue2,r=W(e,Ne),p=G({},r);return r.range?("number"!=typeof n&&"number"!=typeof i||(p.value=[null!=n?n:0,null!=i?i:0]),"number"!=typeof o&&"number"!=typeof a||(p.defaultValue=[null!=o?o:0,null!=a?a:0])):("number"==typeof n&&(p.value=n),"number"==typeof o&&(p.defaultValue=o)),l.createElement(A,Object.assign({},p,{ref:t}))})),Oe={name:"AntdSlider",displayName:"Antd Slider",props:{max:{type:"number",description:"The maximum value the slider can slide to",defaultValueHint:100},min:{type:"number",description:"The minimum value the slider can slide to",defaultValueHint:0},included:{type:"boolean",description:"Make effect when marks not null, true means containment and false means coordinative",defaultValueHint:!0},disabled:{type:"boolean",description:"If true, the slider will not be interactable",defaultValueHint:!1},range:{type:"boolean",description:"Dual thumb mode",defaultValueHint:!1},reverse:{type:"boolean",description:"Reverse the component",defaultValueHint:!1},vertical:{type:"boolean",description:"If true, the slider will be vertical",defaultValueHint:!1},value:{type:"number",editOnly:!0,uncontrolledProp:"defaultValue",description:"The default value of slider"},value2:{type:"number",displayName:"value 2",editOnly:!0,uncontrolledProp:"defaultValue2",description:"The default value for the second value of the slider",hidden:function(e){return!e.range}},step:{type:"number",description:"The granularity the slider can step through values. Must greater than 0, and be divided by (max - min). When marks no null, step can be null",defaultValueHint:1},marks:{type:"object",description:"Tick mark of Slider, type of key must be number, and must in closed interval [min, max], each mark can declare its own style"}},defaultStyles:{width:"200px",maxWidth:"100%"},importPath:"@plasmicpkgs/antd/skinny/registerSlider",importName:"Slider"};function Ee(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(De,null!=n?n:Oe)}var Ge={name:"AntdSwitch",displayName:"Antd Switch",props:{autoFocus:{type:"boolean",description:"Whether get focus when component mounted",defaultValueHint:!1},checked:{type:"boolean",editOnly:!0,uncontrolledProp:"defaultChecked",description:"Whether to set the initial state",defaultValueHint:!1},disabled:{type:"boolean",description:"Disable switch",defaultValueHint:!1},loading:{type:"boolean",description:"Loading state of switch",defaultValueHint:!1},checkedChildren:{type:"slot",defaultValue:[],hidePlaceholder:!0},unCheckedChildren:{type:"slot",defaultValue:[],hidePlaceholder:!0},size:{type:"choice",options:["small","default"],description:"The size of the Switch",defaultValueHint:"default"}},importPath:"antd/lib/switch",importName:"Switch",isDefaultExport:!0};function qe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(P,null!=n?n:Ge)}var We=["columnTemplate","title","dataIndex"];function Be(e){return null}function ze(e){var t,n=e.className,o=k.useSelector("currentColumn");return l.createElement("div",{className:n},null!=(t=null==o?void 0:o.toString())?t:"")}function je(e){return e.children}function Ke(e){var t,n,o=e.className,i=e.items,a=e.columns,r=e.size,p=e.onSelect,d=e.pagination,u=null!=(t=null==a||null==(n=a.props)?void 0:n.children)?t:a,s=l.useMemo((function(){return l.Children.map(u,(function(e,t){if(e){var n=e.props,o=n.columnTemplate,i=n.title,a=n.dataIndex,r=W(n,We);return{columnIndex:t,title:i,dataIndex:a,key:t,render:function(e,t,n){return l.createElement(k.DataProvider,{name:"currentRow",data:t},l.createElement(k.DataProvider,{name:"currentRowIndex",data:n},l.createElement(k.DataProvider,{name:"currentColumn",data:e},k.repeatedElement(n,l.createElement(je,Object.assign({},r),o)))))}}}})).filter(Boolean)}),[u]);return l.createElement(H,{className:o,columns:s,dataSource:i,size:r,onRow:function(e){return{onMouseUp:function(){return null==p?void 0:p(e.id)}}},pagination:d?void 0:d,rowKey:"id"})}var Re=[{name:"John Brown",age:19,address:"New York No. 1 Lake Park",tags:["student","developer"]},{name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["teacher"]},{name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"]}],Le={name:"AntdTable",displayName:"Antd Table",props:{items:{type:"array",description:"The data to display in the table, as a list of objects (one object per row)",defaultValue:Re},columns:{type:"slot",allowedComponents:["AntdTableColumn"],defaultValue:Object.keys(Re[0]).map((function(e){return{type:"component",name:"AntdTableColumn",props:{title:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),dataIndex:e}};var t}))},size:{type:"choice",options:["large","middle","small"],defaultValueHint:"large"},pagination:{type:"boolean",defaultValueHint:!0}},importPath:"@plasmicpkgs/antd/skinny/registerTable",importName:"TableWrapper"},_e={name:"AntdTableColumn",parentComponentName:"AntdTable",providesData:!0,props:{title:{type:"string",defaultValue:"Name"},dataIndex:{type:"string",defaultValue:"name",description:"The field to show. The table accepts some data as a list of objects, and this is the name of the field in those objects that this column will display."},columnTemplate:{type:"slot",defaultValue:{type:"vbox",styles:{padding:0},children:[{type:"component",name:"AntdTableValue"}]}}},importPath:"@plasmicpkgs/antd/skinny/registerTable",importName:"TableColumn"},Fe={name:"AntdTableValue",parentComponentName:"AntdTableColumn",props:{},importPath:"@plasmicpkgs/antd/skinny/registerTable",importName:"TableValue"},Ue=["leftTabBarExtraContent","rightTabBarExtraContent"],Je={name:"AntdTabPane",displayName:"Antd Tab Pane",props:{tab:{type:"slot",defaultValue:[{type:"text",value:"Tab"}]},key:{type:"string",description:"Unique TabPane's key",defaultValue:"tabPaneKey"},closable:{type:"boolean",description:"Wether the tab can be closed or not. Only works for editable tabs",defaultValueHint:!0},disabled:{type:"boolean",description:"Disabled state of tab",defaultValueHint:!1},forceRender:{type:"boolean",description:"Forced render of content in tabs, not lazy render after clicking on tabs",defaultValueHint:!1},closeIcon:{type:"slot",hidePlaceholder:!0},children:{type:"slot",defaultValue:[{type:"text",value:"Tab Content"}]}},parentComponentName:"AntdTabs",importPath:"rc-tabs",importName:"TabPane"};function Ye(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(M.TabPane,null!=n?n:Je)}function Qe(e){var t=e.leftTabBarExtraContent,n=e.rightTabBarExtraContent,o=W(e,Ue);return l.createElement(I,Object.assign({},o,{tabBarExtraContent:{left:t,right:n}}))}var Xe={name:"AntdTabs",displayName:"Antd Tabs",props:{type:{type:"choice",options:["line","card","editable-card"],defaultValueHint:"line",description:"Basic style of tabs"},addIcon:{type:"slot",hidePlaceholder:!0},animated:{type:"object",hidden:function(e){return"top"!==e.tabPosition&&!!e.tabPosition},defaultValueHint:{inkBar:!0,tabPane:!1},description:"Whether to change tabs with animation. Can be either a boolean or specify for inkBar and tabPane"},hideAdd:{type:"boolean",hidden:function(e){return"editable-card"!==e.type},defaultValueHint:!1,description:"Hide plus icon or not"},moreIcon:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["large","default","small"],defaultValueHint:"default",description:"Preset tab bar size"},tabPosition:{type:"choice",options:["top","right","bottom","left"],defaultValueHint:"top",description:"Position of tabs"},tabBarGutter:{type:"number",description:"The gap between tabs"},centered:{type:"boolean",description:"Centers tabs",defaultValueHint:!1},leftTabBarExtraContent:{type:"slot",hidePlaceholder:!0},rightTabBarExtraContent:{type:"slot",hidePlaceholder:!0},tabBarStyle:{type:"object",description:"CSS for the Tab Bar style"},activeKey:{type:"choice",editOnly:!0,uncontrolledProp:"defaultActiveKey",description:"Initial active TabPane's key",options:function(e){var t=new Set;return B(e.children,(function(e){(null==e?void 0:e.type)===M.TabPane&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},children:{type:"slot",allowedComponents:["AntdTabPane"],defaultValue:[{type:"component",name:"AntdTabPane",props:{key:"1",tab:[{type:"text",value:"Tab"}],children:[{type:"text",value:"Tab content"}]}},{type:"component",name:"AntdTabPane",props:{key:"2",tab:[{type:"text",value:"Tab"}],children:[{type:"text",value:"Tab content"}]}}]}},actions:[{type:"custom-action",control:function(e){var t=e.componentProps,n=e.studioOps,o=[];B(t.children,(function(e){(null==e?void 0:e.type)===M.TabPane&&"string"==typeof(null==e?void 0:e.key)&&o.push(e.key)}));var i=t.activeKey,a=i?o.findIndex((function(e){return e===i})):0;return l.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"row",gap:"10px",justifyContent:"space-between"}},l.createElement(T.Button,{style:{width:"100%"},onClick:function(){o.length>0&&n.updateProps({activeKey:o[(a-1+o.length)%o.length]})}},"Prev tab"),l.createElement(T.Button,{style:{width:"100%"},onClick:function(){o.length>0&&n.updateProps({activeKey:o[(a+1)%o.length]})}},"Next tab"))}},{type:"button-action",label:"Add new tab",onClick:function(e){var t=e.componentProps,n=e.studioOps,o=function(){var e=new Set;B(t.children,(function(t){(null==t?void 0:t.type)===M.TabPane&&"string"==typeof(null==t?void 0:t.key)&&e.add(t.key)}));for(var n=1;n<=e.size+1;n++){var o=n.toString();if(!e.has(o))return o}}();n.appendToSlot({type:"component",name:"AntdTabPane",props:{key:o}},"children"),n.updateProps({activeKey:o})}},{type:"button-action",label:"Delete current tab",onClick:function(e){var t=e.componentProps,n=e.studioOps;if(t.activeKey){var o=[];B(t.children,(function(e){(null==e?void 0:e.type)===M.TabPane&&"string"==typeof(null==e?void 0:e.key)&&o.push(e.key)}));var i=t.activeKey,a=o.findIndex((function(e){return e===i}));-1!==a&&(n.removeFromSlotAt(a,"children"),o.length-1>0&&n.updateProps({activeKey:o[(a-1+o.length)%o.length]}))}}},{type:"custom-action",control:function(){return l.createElement("div",null,"* To re-arrange tab panes, use the Outline panel")}}],importPath:"@plasmicpkgs/antd/skinny/registerTabs",importName:"Tabs"};function Ze(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Qe,null!=n?n:Xe)}exports.Collapse=Y,exports.Dropdown=X,exports.Slider=De,exports.Tabs=Qe,exports.buttonMeta=S,exports.carouselMeta=O,exports.checkboxGroupMeta=R,exports.checkboxMeta=j,exports.collapsteMeta=J,exports.collapstePanelMeta=F,exports.dropdownButtonMeta=ee,exports.dropdownMeta=Z,exports.inputGroupMeta=ce,exports.inputMeta=ie,exports.inputPasswordMeta=ue,exports.inputSearchMeta=pe,exports.inputTextAreaMeta=le,exports.menuDividerMeta=he,exports.menuItemGroupMeta=ge,exports.menuItemMeta=fe,exports.menuMeta=we,exports.optGroupMeta=ke,exports.optionMeta=Ae,exports.rateMeta=Te,exports.registerAll=function(e){N(e),Ee(e),qe(e),Pe(e),He(e),Se(e),U(e),Q(e),K(e),L(e),ye(e),be(e),ve(e),Ve(e),Ce(e),$(e),te(e),E(e),ae(e),re(e),de(e),se(e),me(e),Ye(e),function(e,t){!function(){e?e.registerComponent.apply(e,arguments):k.registerComponent.apply(void 0,arguments)}(Ke,Le)}(e),function(e,t){!function(){e?e.registerComponent.apply(e,arguments):k.registerComponent.apply(void 0,arguments)}(Be,_e)}(e),function(e,t){!function(){e?e.registerComponent.apply(e,arguments):k.registerComponent.apply(void 0,arguments)}(ze,Fe)}(e),Ze(e),Ie(e)},exports.registerButton=N,exports.registerCarousel=E,exports.registerCheckbox=K,exports.registerCheckboxGroup=L,exports.registerCollapse=Q,exports.registerCollapsePanel=U,exports.registerDropdown=$,exports.registerDropdownButton=te,exports.registerInput=ae,exports.registerInputGroup=me,exports.registerInputPassword=se,exports.registerInputSearch=de,exports.registerInputTextArea=re,exports.registerMenu=Ce,exports.registerMenuDivider=ye,exports.registerMenuItem=be,exports.registerMenuItemGroup=ve,exports.registerOptGroup=He,exports.registerOption=Pe,exports.registerRate=Ie,exports.registerSelect=Se,exports.registerSlider=Ee,exports.registerSubMenu=Ve,exports.registerSwitch=qe,exports.registerTabPane=Ye,exports.registerTabs=Ze,exports.selectMeta=Me,exports.sliderMeta=Oe,exports.subMenuMeta=xe,exports.switchMeta=Ge,exports.tabPaneMeta=Je,exports.tabsMeta=Xe;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),n=e(require("antd/lib/button")),o=e(require("antd/lib/carousel")),i=e(require("antd/lib/checkbox/Checkbox")),a=e(require("antd/lib/checkbox/Group")),l=e(require("react")),r=e(require("antd/lib/collapse/Collapse")),p=e(require("antd/lib/collapse/CollapsePanel")),d=e(require("antd/lib/dropdown")),u=e(require("antd/lib/dropdown/dropdown-button")),s=e(require("antd/lib/input")),c=e(require("antd/lib/input/Group")),m=e(require("antd/lib/input/Password")),h=e(require("antd/lib/input/Search")),y=e(require("antd/lib/input/TextArea")),f=e(require("antd/lib/menu/index")),b=e(require("antd/lib/menu/MenuDivider")),g=e(require("antd/lib/menu/MenuItem")),v=e(require("antd/lib/menu/SubMenu")),x=require("rc-menu"),V=require("rc-select"),w=e(require("antd/lib/rate")),C=e(require("antd/lib/select")),A=e(require("antd/lib/slider")),P=e(require("antd/lib/switch")),k=require("@plasmicapp/host"),H=e(require("antd/lib/table/Table")),T=require("antd"),I=e(require("antd/lib/tabs")),M=require("rc-tabs"),S={name:"AntdButton",displayName:"Antd Button",props:{type:{type:"choice",options:["default","primary","ghost","dashed","link","text"],description:"Can be set to primary, ghost, dashed, link, text, default",defaultValueHint:"default"},size:{type:"choice",options:["small","medium","large"],description:"Set the size of button",defaultValueHint:"medium"},shape:{type:"choice",options:["default","circle","round"],description:"Can be set button shape",defaultValueHint:"default"},disabled:{type:"boolean",description:"Disabled state of button",defaultValueHint:!1},ghost:{type:"boolean",description:"Make background transparent and invert text and border colors",defaultValueHint:!1},danger:{type:"boolean",description:"Set the danger status of button",defaultValueHint:!1},block:{type:"boolean",description:"Option to fit button width to its parent width",defaultValueHint:!1},loading:{type:"boolean",description:"Set the loading status of button",defaultValueHint:!1},href:{type:"string",description:"Redirect url of link button"},target:{type:"choice",options:["_blank","_self","_parent","_top"],description:"Same as target attribute of a, works when href is specified",hidden:function(e){return!e.href},defaultValueHint:"_self"},children:{type:"slot",defaultValue:[{type:"text",value:"Button"}]}},importPath:"antd/lib/button",isDefaultExport:!0,importName:"Button"};function N(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n,null!=o?o:S)}var O={height:"160px",color:"#fff",lineHeight:"160px",textAlign:"center",backgroundColor:"#364d79"},D={name:"AntdCarousel",displayName:"Antd Carousel",props:{autoplay:{type:"boolean",description:"Whether to scroll automatically",defaultValueHint:!1},dotPosition:{type:"choice",options:["top","bottom","left","right"],description:"The position of the dots",defaultValueHint:"bottom"},dots:{type:"boolean",description:"Whether to show the dots at the bottom of the gallery",defaultValueHint:!0},effect:{type:"choice",options:["scrollx","fade"],defaultValueHint:"scrollx"},children:{type:"slot",defaultValue:[{type:"vbox",children:{type:"text",value:"1",styles:O}},{type:"vbox",children:{type:"text",value:"2",styles:O}}]}},importPath:"antd/lib/carousel",importName:"Carousel",isDefaultExport:!0};function E(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(o,null!=n?n:D)}function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function q(e,t){var n,o;e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n=e,o=t,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(n,o)}function W(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)t.indexOf(n=a[o])>=0||(i[n]=e[n]);return i}function B(e,t){!function e(n){(Array.isArray(n)?n:[n]).forEach((function(n){var o;n&&(t(n),n.children&&e(n.children),null!=(o=n.props)&&o.children&&n.props.children!==n.children&&e(n.props.children))}))}(e)}var j=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){return l.createElement(i,Object.assign({},this.props))},t}(l.Component),z={name:"AntdCheckbox",displayName:"Antd Checkbox",props:{autoFocus:{type:"boolean",description:"If get focus when component mounted",defaultValueHint:!1},checked:{type:"boolean",editOnly:!0,uncontrolledProp:"defaultChecked",description:"Specifies the initial state: whether or not the checkbox is selected",defaultValueHint:!1},disabled:{type:"boolean",description:"If disable checkbox",defaultValueHint:!1},indeterminate:{type:"boolean",description:"The indeterminate checked state of checkbox",defaultValueHint:!1},value:{type:"string",description:"The checkbox value"},children:{type:"slot",defaultValue:[{type:"text",value:"Checkbox"}]}},importPath:"antd/lib/checkbox/Checkbox",importName:"Checkbox",defaultStyles:{marginLeft:0},isDefaultExport:!0};function K(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(j,null!=n?n:z)}var R={name:"AntdCheckboxGroup",displayName:"Antd Checkbox Group",props:{disabled:{type:"boolean",description:"If disable all checkboxes",defaultValueHint:!1},value:{type:"choice",editOnly:!0,uncontrolledProp:"defaultValue",description:"Default selected value",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){var n;(null==e?void 0:e.type)===j&&"string"==typeof(null==e||null==(n=e.props)?void 0:n.value)&&t.add(e.props.value)})),Array.from(t.keys())}},children:{type:"slot",allowedComponents:["AntdCheckbox"],defaultValue:[{type:"component",name:"AntdCheckbox"}]}},importPath:"antd/lib/checkbox/Group",importName:"CheckboxGroup",parentComponentName:"AntdCheckbox",isDefaultExport:!0};function L(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(a,null!=n?n:R)}var _=["openIcon","closeIcon"],F={name:"AntdCollapsePanel",displayName:"Antd Collapse Panel",props:{collapsible:{type:"choice",options:["header","disabled"],description:"Specify whether the panel be collapsible or the trigger area of collapsible"},forceRender:{type:"boolean",description:"Forced render of content on panel, instead of lazy rending after clicking on header",defaultValueHint:!1},header:{type:"slot",defaultValue:[{type:"text",value:"Header"}]},key:{type:"string",description:"Unique key identifying the panel from among its siblings"},showArrow:{type:"boolean",description:"If false, panel will not show arrow icon",defaultValueHint:!0},extra:{type:"slot",hidePlaceholder:!0},children:{type:"slot",defaultValue:[{type:"text",value:"Insert text here"}]}},importPath:"antd/lib/collapse/CollapsePanel",importName:"CollapsePanel",parentComponentName:"AntdCollapse",isDefaultExport:!0};function U(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(p,null!=n?n:F)}var J={name:"AntdCollapse",displayName:"Antd Collapse",props:{accordion:{type:"boolean",description:"If true, Collapse renders as Accordion",defaultValueHint:!1},activeKey:{type:"choice",editOnly:!0,uncontrolledProp:"defaultActiveKey",description:"Key of the active panel",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){(null==e?void 0:e.type)===p&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},bordered:{type:"boolean",description:"Toggles rendering of the border around the collapse block",defaultValueHint:!0},collapsible:{type:"choice",options:["header","disabled"],description:"Specify whether the panels of children be collapsible or the trigger area of collapsible"},expandIconPosition:{type:"choice",options:["left","right"],description:"Set expand icon position",defaultValueHint:"left"},ghost:{type:"boolean",description:"Make the collapse borderless and its background transparent",defaultValueHint:!1},children:{type:"slot",allowedComponents:["AntdCollapsePanel"],defaultValue:[{type:"component",name:"AntdCollapsePanel",props:{key:"1"}}]},openIcon:{type:"slot",hidePlaceholder:!0},closeIcon:{type:"slot",hidePlaceholder:!0}},importPath:"@plasmicpkgs/antd/skinny/registerCollapse",importName:"Collapse"};function Y(e){var t=e.openIcon,n=e.closeIcon,o=W(e,_);return l.createElement(r,Object.assign({},o,{expandIcon:t||n?function(e){return e.isActive?t:n}:void 0}))}function Q(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Y,null!=n?n:J)}var X=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){var e=G({},this.props);return e.children="string"==typeof this.props.children?l.createElement("div",null,this.props.children):this.props.children,l.createElement(d,Object.assign({},e))},t}(l.Component),Z={name:"AntdDropdown",displayName:"Antd Dropdown",props:{arrow:{type:"boolean",description:"Whether the dropdown arrow should be visible",defaultValueHint:!1},disabled:{type:"boolean",description:"Whether the dropdown menu is disabled",defaultValueHint:!1},overlay:{type:"slot",allowedComponents:["AntdMenu"],defaultValue:[{type:"component",name:"AntdMenu"}]},placement:{type:"choice",options:["bottomLeft","bottomCenter","bottomRight","topLeft","topCenter","topRight"],description:"Placement of popup menu",defaultValueHint:"bottomLeft"},trigger:{type:"choice",options:["click","hover","contextMenu"],description:"The trigger mode which executes the dropdown action",defaultValueHint:"hover"},visible:{type:"boolean",description:"Toggle visibility of dropdown menu in Plasmic Editor",editOnly:!0,defaultValueHint:!1},children:{type:"slot",defaultValue:[{type:"text",value:"Dropdown"}]}},importPath:"@plasmicpkgs/antd/skinny/registerDropdown",importName:"Dropdown"};function $(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(X,null!=n?n:Z)}var ee={name:"AntdDropdownButton",displayName:"Antd Dropdown Button",props:{disabled:{type:"boolean",description:"Whether the dropdown menu is disabled",defaultValueHint:!1},icon:{type:"slot",hidePlaceholder:!0},overlay:{type:"slot",allowedComponents:["AntdMenu"],defaultValue:[{type:"component",name:"AntdMenu"}]},placement:{type:"choice",options:["bottomLeft","bottomCenter","bottomRight","topLeft","topCenter","topRight"],description:"Placement of popup menu",defaultValueHint:"bottomLeft"},size:{type:"choice",options:["small","medium","large"],description:"Set the size of button",defaultValueHint:"medium"},trigger:{type:"choice",options:["click","hover","contextMenu"],description:"The trigger mode which executes the dropdown action",defaultValueHint:"hover"},type:{type:"choice",options:["default","primary","ghost","dashed","link","text"],description:"Can be set to primary, ghost, dashed, link, text, default",defaultValueHint:"default"},visible:{type:"boolean",description:"Toggle visibility of dropdown menu in Plasmic Editor",editOnly:!0,defaultValueHint:!1},children:{type:"slot",defaultValue:[{type:"text",value:"Dropdown"}]}},importPath:"antd/lib/dropdown/dropdown-button",importName:"DropdownButton",parentComponentName:"AntdDropdown",isDefaultExport:!0};function te(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(u,null!=n?n:ee)}function ne(e){return Object.fromEntries(Object.entries(e).sort())}var oe={"aria-label":{type:"string",description:"The ARIA label for this input"},"aria-labelledby":{type:"string",description:"Identifies the element(s) that labels this input"},name:{type:"string",description:"The HTML name of the input"}},ie={name:"AntdInput",displayName:"Antd Input",props:ne(G({},oe,{addonAfter:{type:"slot",hidePlaceholder:!0},addonBefore:{type:"slot",hidePlaceholder:!0},allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},id:{type:"string",description:"The ID for input"},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},prefix:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["small","middle","large"],description:"The size of the input box",defaultValueHint:"middle,"},suffix:{type:"slot",hidePlaceholder:!0},type:{type:"string",description:"The type of input",defaultValueHint:"text"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"}})),importPath:"antd/lib/input",importName:"Input",isDefaultExport:!0};function ae(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(s,null!=n?n:ie)}var le={name:"AntdInputTextArea",displayName:"Antd Input Text Area",props:ne(G({},oe,{allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},autoSize:{type:"object",description:"Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }"},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},showCount:{type:"boolean",description:"Whether show text count",defaultValueHint:!1},id:{type:"string",description:"The ID for input"},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"}})),importPath:"antd/lib/input/TextArea",importName:"TextArea",isDefaultExport:!0,parentComponentName:"AntdInput"};function re(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(y,null!=n?n:le)}var pe={name:"AntdInputSearch",displayName:"Antd Input Search",props:ne(G({},oe,{addonBefore:{type:"slot",hidePlaceholder:!0},allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},enterButton:{type:"slot",hidePlaceholder:!0},id:{type:"string",description:"The ID for input"},loading:{type:"boolean",description:"Search box with loading",defaultValueHint:!1},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},prefix:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["small","middle","large"],description:"The size of the input box",defaultValueHint:"middle"},suffix:{type:"slot",hidePlaceholder:!0},type:{type:"string",description:"The type of input"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"}})),importPath:"antd/lib/input/Search",importName:"Search",isDefaultExport:!0,parentComponentName:"AntdInput"};function de(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(h,null!=n?n:pe)}var ue={name:"AntdInputPassword",displayName:"Antd Input Password",props:ne(G({},oe,{addonAfter:{type:"slot",hidePlaceholder:!0},addonBefore:{type:"slot",hidePlaceholder:!0},allowClear:{type:"boolean",description:"If allow to remove input content with clear icon",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether the input is disabled",defaultValueHint:!1},id:{type:"string",description:"The ID for input"},maxLength:{type:"number",description:"The max length"},placeholder:{type:"string",description:"Placeholder for the input"},prefix:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["small","middle","large"],description:"The size of the input box",defaultValueHint:"middle"},type:{type:"string",description:"The type of input"},value:{type:"string",editOnly:!0,uncontrolledProp:"defaultValue"},visibilityToggle:{type:"boolean",description:"Whether show toggle button",defaultValueHint:!0}})),importPath:"antd/lib/input/Password",importName:"Password",isDefaultExport:!0,parentComponentName:"AntdInput"};function se(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(m,null!=n?n:ue)}var ce={name:"AntdInputGroup",displayName:"Antd Input Group",props:{compact:{type:"boolean",description:"Whether use compact style",defaultValueHint:!1},size:{type:"choice",options:["small","default","large"],description:"The size of Input.Group specifies the size of the included Input fields",defaultValueHint:"default"},children:{type:"slot",defaultValue:[{type:"component",name:"AntdInput"},{type:"component",name:"AntdInput"}]}},importPath:"antd/lib/input/Group",importName:"InputGroup",isDefaultExport:!0,parentComponentName:"AntdInput"};function me(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(c,null!=n?n:ce)}var he={name:"AntdMenuDivider",displayName:"Antd Menu Divider",props:{dashed:{type:"boolean",description:"Whether line is dashed",defaultValueHint:!1}},importPath:"antd/lib/menu/MenuDivider",importName:"MenuDivider",isDefaultExport:!0,parentComponentName:"AntdMenu"};function ye(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(b,null!=n?n:he)}var fe={name:"AntdMenuItem",displayName:"Antd Menu Item",props:{danger:{type:"boolean",description:"Display the danger style",defaultValueHint:!1},disabled:{type:"boolean",description:"Whether disabled select",defaultValueHint:!1},key:{type:"string",description:"Unique ID of the menu item",defaultValue:"menuItemKey"},title:{type:"string",description:"Set display title for collapsed item"},children:{type:"slot",defaultValue:[{type:"text",value:"Option"}]}},importPath:"antd/lib/menu/MenuItem",importName:"MenuItem",isDefaultExport:!0,parentComponentName:"AntdMenu"};function be(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(g,null!=n?n:fe)}var ge={name:"AntdMenuItemGroup",displayName:"Antd Menu Item Group",props:{title:{type:"slot",defaultValue:[{type:"text",value:"Group"}]},children:{type:"slot",allowedComponents:["AntdMenuItem","AntdMenuDivider","AntdMenuItemGroup"],defaultValue:[{type:"component",name:"AntdMenuItem"}]}},importPath:"rc-menu",importName:"ItemGroup",parentComponentName:"AntdMenu"};function ve(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(x.ItemGroup,null!=n?n:ge)}var xe={name:"AntdSubMenu",displayName:"Antd SubMenu",props:{disabled:{type:"boolean",description:"Whether sub-menu is disabled",defaultValueHint:!1},key:{type:"string",description:"Unique ID of the sub-menu",defaultValue:"subMenuKey"},title:{type:"slot",defaultValue:[{type:"text",value:"Sub-menu"}]},children:{type:"slot",allowedComponents:["AntdMenuItem","AntdMenuDivider","AntdMenuItemGroup","AntdSubMenu"],defaultValue:[1,2].map((function(e){return{type:"component",name:"AntdMenuItem",props:{key:"subMenuItemKey"+e,children:[{type:"text",value:"Sub-menu item "+e}]}}}))}},importPath:"antd/lib/menu/SubMenu",importName:"SubMenu",isDefaultExport:!0,parentComponentName:"AntdMenu"};function Ve(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(v,null!=n?n:xe)}var we={name:"AntdMenu",displayName:"Antd Menu",props:{expandIcon:{type:"slot",hidePlaceholder:!0},forceSubMenuRender:{type:"boolean",description:"Render submenu into DOM before it becomes visible",defaultValueHint:!1},inlineIndent:{type:"number",description:"Indent (in pixels) of inline menu items on each level",defaultValueHint:24},mode:{type:"choice",options:["horizontal","vertical","inline"],description:"Type of menu",defaultValueHint:"vertical"},multiple:{type:"boolean",description:"Allows selection of multiple items",defaultValueHint:!1},openKeys:{type:"choice",editOnly:!0,uncontrolledProp:"defaultOpenKeys",description:"Array with the keys of default opened sub menus",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){(null==e?void 0:e.type)===v&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},overflowedIndicator:{type:"slot",hidePlaceholder:!0},selectable:{type:"boolean",description:"Allows selecting menu items",defaultValueHint:!0},selectedKeys:{type:"choice",editOnly:!0,uncontrolledProp:"defaultSelectedKeys",description:"Array with the keys of default selected menu items",multiSelect:!0,options:function(e){var t=new Set;return B(e.children,(function(e){[v,g].includes(null==e?void 0:e.type)&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},subMenuCloseDelay:{type:"number",description:"Delay time to hide submenu when mouse leaves (in seconds)",defaultValueHint:.1},subMenuOpenDelay:{type:"number",description:"Delay time to show submenu when mouse enters, (in seconds)",defaultValueHint:0},theme:{type:"choice",options:["light","dark"],description:"Color theme of the menu",defaultValueHint:"light"},triggerSubMenuAction:{type:"choice",options:["hover","click"],description:"Which action can trigger submenu open/close",defaultValueHint:"hover"},children:{type:"slot",allowedComponents:["AntdMenuItem","AntdMenuDivider","AntdSubMenu"],defaultValue:[{type:"component",name:"AntdMenuItem"},{type:"component",name:"AntdSubMenu"}]}},importPath:"antd/lib/menu/index",importName:"Menu",isDefaultExport:!0};function Ce(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(f,null!=n?n:we)}var Ae={name:"AntdOption",displayName:"Antd Option",props:{disabled:{type:"boolean",description:"Disable this option",defaultValueHint:!1},title:{type:"string",description:"title of Select after select this Option"},value:{type:"string",description:"Default to filter with this property"},key:{type:"string",description:"Option key"},children:{type:"slot",defaultValue:[{type:"text",value:"Option"}]}},importPath:"rc-select",importName:"Option",parentComponentName:"AntdSelect"};function Pe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(V.Option,null!=n?n:Ae)}var ke={name:"AntdOptionGroup",displayName:"Antd Option Group",props:{key:{type:"string",description:"Group key"},label:{type:"string",description:"Group label"},children:{type:"slot",allowedComponents:["AntdOption"],defaultValue:[{type:"component",name:"AntdOption"}]}},importPath:"rc-select",importName:"OptGroup",parentComponentName:"AntdSelect"};function He(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(V.OptGroup,null!=n?n:ke)}var Te={name:"AntdRate",displayName:"Antd Rate",props:{allowClear:{type:"boolean",description:"Whether to allow clear when clicking again",defaultValueHint:!0},allowHalf:{type:"boolean",description:"Whether to allow semi selection",defaultValueHint:!1},autoFocus:{type:"boolean",description:"If componet is focused when mounted",defaultValueHint:!1},count:{type:"number",description:"Star count"},disabled:{type:"boolean",description:"Disabled state of component",defaultValueHint:!1},tooltips:{type:"array",description:"Array to customize tooltip for each icon"},value:{type:"number",description:"The default value",editOnly:!0,uncontrolledProp:"defaultValue",defaultValueHint:0},character:{type:"slot",hidePlaceholder:!0}},importPath:"antd/lib/rate",importName:"Rate",isDefaultExport:!0};function Ie(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(w,null!=n?n:Te)}var Me={name:"AntdSelect",displayName:"Antd Select",props:{allowClear:{type:"boolean",description:"Show clear button",defaultValueHint:!1},autoClearSearchValue:{type:"boolean",description:"Whether the current search will be cleared on selecting an item",defaultValueHint:!0,hidden:function(e){return"multiple"!==e.mode&&"tags"!==e.mode}},autoFocus:{type:"boolean",description:"Get focus by default",defaultValueHint:!1},bordered:{type:"boolean",description:"Whether has border style",defaultValueHint:!0},disabled:{type:"boolean",description:"Whether disabled select",defaultValueHint:!1},listHeight:{type:"number",description:"Config popup height",defaultValueHint:256},loading:{type:"boolean",description:"Indicate loading state",defaultValueHint:!1},mode:{type:"choice",options:["multiple","tags"],description:"Set mode of Select"},open:{type:"boolean",editOnly:!0,uncontrolledProp:"defaultOpen",description:"Initial open state of dropdown",defaultValueHint:!1},placeholder:{type:"slot",defaultValue:[{type:"text",value:"Select"}]},showArrow:{type:"boolean",description:"Whether to show the drop-down arrow",defaultValueHint:!0},showSearch:{type:"boolean",description:"Whether show search input in single mode",defaultValueHint:!1},size:{type:"choice",options:["large","middle","small"],description:"Set mode of Select",defaultValueHint:"middle"},value:{type:"choice",editOnly:!0,uncontrolledProp:"defaultValue",description:"Initial selected option",options:function(e){var t=new Set;return B(e.children,(function(e){var n;(null==e?void 0:e.type)===V.Option&&"string"==typeof(null==e||null==(n=e.props)?void 0:n.value)&&t.add(e.props.value)})),Array.from(t.keys())}},virtual:{type:"boolean",description:"Disable virtual scroll when set to false",defaultValueHint:!0},children:{type:"slot",allowedComponents:["AntdOption, AntdOptionGroup"],defaultValue:[{type:"component",name:"AntdOption",props:{value:"Option",children:{type:"text",value:"Option"}}}]}},importPath:"antd/lib/select",importName:"Select",isDefaultExport:!0};function Se(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(C,null!=n?n:Me)}var Ne=["value","defaultValue","value2","defaultValue2"],Oe=l.forwardRef((function(e,t){var n=e.value,o=e.defaultValue,i=e.value2,a=e.defaultValue2,r=W(e,Ne),p=G({},r);return r.range?("number"!=typeof n&&"number"!=typeof i||(p.value=[null!=n?n:0,null!=i?i:0]),"number"!=typeof o&&"number"!=typeof a||(p.defaultValue=[null!=o?o:0,null!=a?a:0])):("number"==typeof n&&(p.value=n),"number"==typeof o&&(p.defaultValue=o)),l.createElement(A,Object.assign({},p,{ref:t}))})),De={name:"AntdSlider",displayName:"Antd Slider",props:{max:{type:"number",description:"The maximum value the slider can slide to",defaultValueHint:100},min:{type:"number",description:"The minimum value the slider can slide to",defaultValueHint:0},included:{type:"boolean",description:"Make effect when marks not null, true means containment and false means coordinative",defaultValueHint:!0},disabled:{type:"boolean",description:"If true, the slider will not be interactable",defaultValueHint:!1},range:{type:"boolean",description:"Dual thumb mode",defaultValueHint:!1},reverse:{type:"boolean",description:"Reverse the component",defaultValueHint:!1},vertical:{type:"boolean",description:"If true, the slider will be vertical",defaultValueHint:!1},value:{type:"number",editOnly:!0,uncontrolledProp:"defaultValue",description:"The default value of slider"},value2:{type:"number",displayName:"value 2",editOnly:!0,uncontrolledProp:"defaultValue2",description:"The default value for the second value of the slider",hidden:function(e){return!e.range}},step:{type:"number",description:"The granularity the slider can step through values. Must greater than 0, and be divided by (max - min). When marks no null, step can be null",defaultValueHint:1},marks:{type:"object",description:"Tick mark of Slider, type of key must be number, and must in closed interval [min, max], each mark can declare its own style"}},defaultStyles:{width:"200px",maxWidth:"100%"},importPath:"@plasmicpkgs/antd/skinny/registerSlider",importName:"Slider"};function Ee(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Oe,null!=n?n:De)}var Ge={name:"AntdSwitch",displayName:"Antd Switch",props:{autoFocus:{type:"boolean",description:"Whether get focus when component mounted",defaultValueHint:!1},checked:{type:"boolean",editOnly:!0,uncontrolledProp:"defaultChecked",description:"Whether to set the initial state",defaultValueHint:!1},disabled:{type:"boolean",description:"Disable switch",defaultValueHint:!1},loading:{type:"boolean",description:"Loading state of switch",defaultValueHint:!1},checkedChildren:{type:"slot",defaultValue:[],hidePlaceholder:!0},unCheckedChildren:{type:"slot",defaultValue:[],hidePlaceholder:!0},size:{type:"choice",options:["small","default"],description:"The size of the Switch",defaultValueHint:"default"}},importPath:"antd/lib/switch",importName:"Switch",isDefaultExport:!0};function qe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(P,null!=n?n:Ge)}var We=["columnTemplate","title","dataIndex"];function Be(e){return null}function je(e){var t,n=e.className,o=k.useSelector("currentColumn");return l.createElement("div",{className:n},null!=(t=null==o?void 0:o.toString())?t:"")}function ze(e){return e.children}function Ke(e){var t,n,o=e.className,i=e.items,a=e.columns,r=e.size,p=e.onSelect,d=e.pagination,u=null!=(t=null==a||null==(n=a.props)?void 0:n.children)?t:a,s=l.useMemo((function(){return l.Children.map(u,(function(e,t){if(e){var n=e.props,o=n.columnTemplate,i=n.title,a=n.dataIndex,r=W(n,We);return{columnIndex:t,title:i,dataIndex:a,key:t,render:function(e,t,n){return l.createElement(k.DataProvider,{name:"currentRow",data:t},l.createElement(k.DataProvider,{name:"currentRowIndex",data:n},l.createElement(k.DataProvider,{name:"currentColumn",data:e},k.repeatedElement(n,l.createElement(ze,Object.assign({},r),o)))))}}}})).filter(Boolean)}),[u]);return l.createElement(H,{className:o,columns:s,dataSource:i,size:r,onRow:function(e){return{onMouseUp:function(){return null==p?void 0:p(e.id)}}},pagination:d?void 0:d,rowKey:"id"})}var Re=[{name:"John Brown",age:19,address:"New York No. 1 Lake Park",tags:["student","developer"]},{name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["teacher"]},{name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"]}],Le={name:"AntdTable",displayName:"Antd Table",props:{items:{type:"array",description:"The data to display in the table, as a list of objects (one object per row)",defaultValue:Re},columns:{type:"slot",allowedComponents:["AntdTableColumn"],defaultValue:Object.keys(Re[0]).map((function(e){return{type:"component",name:"AntdTableColumn",props:{title:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),dataIndex:e}};var t}))},size:{type:"choice",options:["large","middle","small"],defaultValueHint:"large"},pagination:{type:"boolean",defaultValueHint:!0}},importPath:"@plasmicpkgs/antd/skinny/registerTable",importName:"TableWrapper"},_e={name:"AntdTableColumn",parentComponentName:"AntdTable",providesData:!0,props:{title:{type:"string",defaultValue:"Name"},dataIndex:{type:"string",defaultValue:"name",description:"The field to show. The table accepts some data as a list of objects, and this is the name of the field in those objects that this column will display."},columnTemplate:{type:"slot",defaultValue:{type:"vbox",styles:{padding:0},children:[{type:"component",name:"AntdTableValue"}]}}},importPath:"@plasmicpkgs/antd/skinny/registerTable",importName:"TableColumn"},Fe={name:"AntdTableValue",parentComponentName:"AntdTableColumn",props:{},importPath:"@plasmicpkgs/antd/skinny/registerTable",importName:"TableValue"},Ue=["leftTabBarExtraContent","rightTabBarExtraContent"],Je={name:"AntdTabPane",displayName:"Antd Tab Pane",props:{tab:{type:"slot",defaultValue:[{type:"text",value:"Tab"}]},key:{type:"string",description:"Unique TabPane's key",defaultValue:"tabPaneKey"},closable:{type:"boolean",description:"Wether the tab can be closed or not. Only works for editable tabs",defaultValueHint:!0},disabled:{type:"boolean",description:"Disabled state of tab",defaultValueHint:!1},forceRender:{type:"boolean",description:"Forced render of content in tabs, not lazy render after clicking on tabs",defaultValueHint:!1},closeIcon:{type:"slot",hidePlaceholder:!0},children:{type:"slot",defaultValue:[{type:"text",value:"Tab Content"}]}},parentComponentName:"AntdTabs",importPath:"rc-tabs",importName:"TabPane"};function Ye(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(M.TabPane,null!=n?n:Je)}function Qe(e){var t=e.leftTabBarExtraContent,n=e.rightTabBarExtraContent,o=W(e,Ue);return l.createElement(I,Object.assign({},o,{tabBarExtraContent:{left:t,right:n}}))}var Xe={name:"AntdTabs",displayName:"Antd Tabs",props:{type:{type:"choice",options:["line","card","editable-card"],defaultValueHint:"line",description:"Basic style of tabs"},addIcon:{type:"slot",hidePlaceholder:!0},animated:{type:"object",hidden:function(e){return"top"!==e.tabPosition&&!!e.tabPosition},defaultValueHint:{inkBar:!0,tabPane:!1},description:"Whether to change tabs with animation. Can be either a boolean or specify for inkBar and tabPane"},hideAdd:{type:"boolean",hidden:function(e){return"editable-card"!==e.type},defaultValueHint:!1,description:"Hide plus icon or not"},moreIcon:{type:"slot",hidePlaceholder:!0},size:{type:"choice",options:["large","default","small"],defaultValueHint:"default",description:"Preset tab bar size"},tabPosition:{type:"choice",options:["top","right","bottom","left"],defaultValueHint:"top",description:"Position of tabs"},tabBarGutter:{type:"number",description:"The gap between tabs"},centered:{type:"boolean",description:"Centers tabs",defaultValueHint:!1},leftTabBarExtraContent:{type:"slot",hidePlaceholder:!0},rightTabBarExtraContent:{type:"slot",hidePlaceholder:!0},tabBarStyle:{type:"object",description:"CSS for the Tab Bar style"},activeKey:{type:"choice",editOnly:!0,uncontrolledProp:"defaultActiveKey",description:"Initial active TabPane's key",options:function(e){var t=new Set;return B(e.children,(function(e){(null==e?void 0:e.type)===M.TabPane&&"string"==typeof(null==e?void 0:e.key)&&t.add(e.key)})),Array.from(t.keys())}},children:{type:"slot",allowedComponents:["AntdTabPane"],defaultValue:[{type:"component",name:"AntdTabPane",props:{key:"1",tab:[{type:"text",value:"Tab"}],children:[{type:"text",value:"Tab content"}]}},{type:"component",name:"AntdTabPane",props:{key:"2",tab:[{type:"text",value:"Tab"}],children:[{type:"text",value:"Tab content"}]}}]}},actions:[{type:"custom-action",control:function(e){var t=e.componentProps,n=e.studioOps,o=[];B(t.children,(function(e){(null==e?void 0:e.type)===M.TabPane&&"string"==typeof(null==e?void 0:e.key)&&o.push(e.key)}));var i=t.activeKey,a=i?o.findIndex((function(e){return e===i})):0;return l.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"row",gap:"10px",justifyContent:"space-between"}},l.createElement(T.Button,{style:{width:"100%"},onClick:function(){o.length>0&&n.updateProps({activeKey:o[(a-1+o.length)%o.length]})}},"Prev tab"),l.createElement(T.Button,{style:{width:"100%"},onClick:function(){o.length>0&&n.updateProps({activeKey:o[(a+1)%o.length]})}},"Next tab"))}},{type:"button-action",label:"Add new tab",onClick:function(e){var t=e.componentProps,n=e.studioOps,o=function(){var e=new Set;B(t.children,(function(t){(null==t?void 0:t.type)===M.TabPane&&"string"==typeof(null==t?void 0:t.key)&&e.add(t.key)}));for(var n=1;n<=e.size+1;n++){var o=n.toString();if(!e.has(o))return o}}();n.appendToSlot({type:"component",name:"AntdTabPane",props:{key:o}},"children"),n.updateProps({activeKey:o})}},{type:"button-action",label:"Delete current tab",onClick:function(e){var t=e.componentProps,n=e.studioOps;if(t.activeKey){var o=[];B(t.children,(function(e){(null==e?void 0:e.type)===M.TabPane&&"string"==typeof(null==e?void 0:e.key)&&o.push(e.key)}));var i=t.activeKey,a=o.findIndex((function(e){return e===i}));-1!==a&&(n.removeFromSlotAt(a,"children"),o.length-1>0&&n.updateProps({activeKey:o[(a-1+o.length)%o.length]}))}}},{type:"custom-action",control:function(){return l.createElement("div",null,"* To re-arrange tab panes, use the Outline panel")}}],importPath:"@plasmicpkgs/antd/skinny/registerTabs",importName:"Tabs"};function Ze(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Qe,null!=n?n:Xe)}exports.Collapse=Y,exports.Dropdown=X,exports.Slider=Oe,exports.Tabs=Qe,exports.buttonMeta=S,exports.carouselMeta=D,exports.checkboxGroupMeta=R,exports.checkboxMeta=z,exports.collapsteMeta=J,exports.collapstePanelMeta=F,exports.dropdownButtonMeta=ee,exports.dropdownMeta=Z,exports.inputGroupMeta=ce,exports.inputMeta=ie,exports.inputPasswordMeta=ue,exports.inputSearchMeta=pe,exports.inputTextAreaMeta=le,exports.menuDividerMeta=he,exports.menuItemGroupMeta=ge,exports.menuItemMeta=fe,exports.menuMeta=we,exports.optGroupMeta=ke,exports.optionMeta=Ae,exports.rateMeta=Te,exports.registerAll=function(e){N(e),Ee(e),qe(e),Pe(e),He(e),Se(e),U(e),Q(e),K(e),L(e),ye(e),be(e),ve(e),Ve(e),Ce(e),$(e),te(e),E(e),ae(e),re(e),de(e),se(e),me(e),Ye(e),function(e,t){!function(){e?e.registerComponent.apply(e,arguments):k.registerComponent.apply(void 0,arguments)}(Ke,Le)}(e),function(e,t){!function(){e?e.registerComponent.apply(e,arguments):k.registerComponent.apply(void 0,arguments)}(Be,_e)}(e),function(e,t){!function(){e?e.registerComponent.apply(e,arguments):k.registerComponent.apply(void 0,arguments)}(je,Fe)}(e),Ze(e),Ie(e)},exports.registerButton=N,exports.registerCarousel=E,exports.registerCheckbox=K,exports.registerCheckboxGroup=L,exports.registerCollapse=Q,exports.registerCollapsePanel=U,exports.registerDropdown=$,exports.registerDropdownButton=te,exports.registerInput=ae,exports.registerInputGroup=me,exports.registerInputPassword=se,exports.registerInputSearch=de,exports.registerInputTextArea=re,exports.registerMenu=Ce,exports.registerMenuDivider=ye,exports.registerMenuItem=be,exports.registerMenuItemGroup=ve,exports.registerOptGroup=He,exports.registerOption=Pe,exports.registerRate=Ie,exports.registerSelect=Se,exports.registerSlider=Ee,exports.registerSubMenu=Ve,exports.registerSwitch=qe,exports.registerTabPane=Ye,exports.registerTabs=Ze,exports.selectMeta=Me,exports.sliderMeta=De,exports.subMenuMeta=xe,exports.switchMeta=Ge,exports.tabPaneMeta=Je,exports.tabsMeta=Xe;
2
2
  //# sourceMappingURL=antd.cjs.production.min.js.map