@plasmicpkgs/antd 0.0.12 → 0.0.13
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=require("antd"),o=e(require("antd/lib/checkbox/Checkbox")),i=e(require("antd/lib/checkbox/Group")),a=e(require("react")),l=e(require("antd/lib/collapse/Collapse")),r=e(require("antd/lib/collapse/CollapsePanel")),p=e(require("antd/lib/dropdown")),d=e(require("antd/lib/dropdown/dropdown-button")),u=e(require("antd/lib/input/Group")),s=e(require("antd/lib/input/Password")),c=e(require("antd/lib/input/Search")),h=e(require("antd/lib/input/TextArea")),y=e(require("antd/lib/menu/index")),f=e(require("antd/lib/menu/MenuDivider")),m=e(require("antd/lib/menu/MenuItem")),b=e(require("antd/lib/menu/SubMenu")),g=require("rc-menu"),v=require("rc-select"),x=require("rc-tabs"),V={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",importName:"Button"};function w(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Button,null!=o?o:V)}function A(){return(A=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 C(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 P(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 H(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 k=function(e){function t(){return e.apply(this,arguments)||this}return C(t,e),t.prototype.render=function(){return a.createElement(o,Object.assign({},this.props))},t}(a.Component),M={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 I(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(k,null!=n?n:M)}var S={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 H(e.children,(function(e){var n;(null==e?void 0:e.type)===k&&"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 T(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(i,null!=n?n:S)}var N={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:N}},{type:"vbox",children:{type:"text",value:"2",styles:N}}]}},importPath:"antd",importName:"Carousel"};function D(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Carousel,null!=o?o:O)}var G={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},children:{type:"slot",defaultValue:[{type:"text",value:"Insert text here"}]}},importPath:"antd/lib/collapse/CollapsePanel",importName:"CollapsePanel",parentComponentName:"AntdCollapse",isDefaultExport:!0};function W(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(r,null!=n?n:G)}var B={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 H(e.children,(function(e){(null==e?void 0:e.type)===r&&"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"}]}},importPath:"antd/lib/collapse/Collapse",importName:"Collapse",isDefaultExport:!0};function E(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(l,null!=n?n:B)}var q=function(e){function t(){return e.apply(this,arguments)||this}return C(t,e),t.prototype.render=function(){var e=A({},this.props);return e.children="string"==typeof this.props.children?a.createElement("div",null,this.props.children):this.props.children,a.createElement(p,Object.assign({},e))},t}(a.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",importName:"Dropdown"};function j(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(q,null!=n?n:z)}var K={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 R(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(d,null!=n?n:K)}var L={name:"AntdInput",displayName:"Antd Input",props:{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",importName:"Input"};function _(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Input,null!=o?o:L)}var F={name:"AntdInputTextArea",displayName:"Antd Input Text Area",props:{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 U(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(h,null!=n?n:F)}var J={name:"AntdInputSearch",displayName:"Antd Input Search",props:{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 Q(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(c,null!=n?n:J)}var X={name:"AntdInputPassword",displayName:"Antd Input Password",props:{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 Y(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(s,null!=n?n:X)}var Z={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 $(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(u,null!=n?n:Z)}var ee={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 te(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(f,null!=n?n:ee)}var ne={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 oe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(m,null!=n?n:ne)}var ie={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 ae(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(g.ItemGroup,null!=n?n:ie)}var le={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:[{type:"component",name:"AntdMenuItem",props:{key:"subMenuItemKey"}}]}},importPath:"antd/lib/menu/SubMenu",importName:"SubMenu",isDefaultExport:!0,parentComponentName:"AntdMenu"};function re(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(b,null!=n?n:le)}var pe={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 H(e.children,(function(e){(null==e?void 0:e.type)===b&&"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 H(e.children,(function(e){[b,m].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 de(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(y,null!=n?n:pe)}var ue={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 se(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(v.Option,null!=n?n:ue)}var ce={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:ce)}var ye={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 H(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",importName:"Select"};function fe(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Select,null!=o?o:ye)}var me=a.forwardRef((function(e,t){var o=e.value,i=e.defaultValue,l=e.value2,r=e.defaultValue2,p=P(e,["value","defaultValue","value2","defaultValue2"]),d=A({},p);return p.range?("number"!=typeof o&&"number"!=typeof l||(d.value=[null!=o?o:0,null!=l?l:0]),"number"!=typeof i&&"number"!=typeof r||(d.defaultValue=[null!=i?i:0,null!=r?r:0])):("number"==typeof o&&(d.value=o),"number"==typeof i&&(d.defaultValue=i)),a.createElement(n.Slider,Object.assign({},d,{ref:t}))})),be={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",importName:"Slider"};function ge(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(me,null!=n?n:be)}var ve={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",importName:"Switch"};function xe(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Switch,null!=o?o:ve)}var Ve={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 we(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(x.TabPane,null!=n?n:Ve)}function Ae(e){var t=e.leftTabBarExtraContent,o=e.rightTabBarExtraContent,i=P(e,["leftTabBarExtraContent","rightTabBarExtraContent"]);return a.createElement(n.Tabs,Object.assign({},i,{tabBarExtraContent:{left:t,right:o}}))}var Ce={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 H(e.children,(function(e){(null==e?void 0:e.type)===x.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"}},{type:"component",name:"AntdTabPane",props:{key:"2"}}]}},importPath:"@plasmicpkgs/antd",importName:"Tabs"};function Pe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Ae,null!=n?n:Ce)}exports.Dropdown=q,exports.Slider=me,exports.Tabs=Ae,exports.buttonMeta=V,exports.carouselMeta=O,exports.checkboxGroupMeta=S,exports.checkboxMeta=M,exports.collapsteMeta=B,exports.collapstePanelMeta=G,exports.dropdownButtonMeta=K,exports.dropdownMeta=z,exports.inputGroupMeta=Z,exports.inputMeta=L,exports.inputPasswordMeta=X,exports.inputSearchMeta=J,exports.inputTextAreaMeta=F,exports.menuDividerMeta=ee,exports.menuItemGroupMeta=ie,exports.menuItemMeta=ne,exports.menuMeta=pe,exports.optGroupMeta=ce,exports.optionMeta=ue,exports.registerAll=function(e){w(e),ge(e),xe(e),se(e),he(e),fe(e),W(e),E(e),I(e),T(e),te(e),oe(e),ae(e),re(e),de(e),j(e),R(e),D(e),_(e),U(e),Q(e),Y(e),$(e),we(e),Pe(e)},exports.registerButton=w,exports.registerCarousel=D,exports.registerCheckbox=I,exports.registerCheckboxGroup=T,exports.registerCollapse=E,exports.registerCollapsePanel=W,exports.registerDropdown=j,exports.registerDropdownButton=R,exports.registerInput=_,exports.registerInputGroup=$,exports.registerInputPassword=Y,exports.registerInputSearch=Q,exports.registerInputTextArea=U,exports.registerMenu=de,exports.registerMenuDivider=te,exports.registerMenuItem=oe,exports.registerMenuItemGroup=ae,exports.registerOptGroup=he,exports.registerOption=se,exports.registerSelect=fe,exports.registerSlider=ge,exports.registerSubMenu=re,exports.registerSwitch=xe,exports.registerTabPane=we,exports.registerTabs=Pe,exports.selectMeta=ye,exports.sliderMeta=be,exports.subMenuMeta=le,exports.switchMeta=ve,exports.tabPaneMeta=Ve,exports.tabsMeta=Ce;
|
|
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=require("antd"),o=e(require("antd/lib/checkbox/Checkbox")),i=e(require("antd/lib/checkbox/Group")),a=e(require("react")),l=e(require("antd/lib/collapse/Collapse")),r=e(require("antd/lib/collapse/CollapsePanel")),p=e(require("antd/lib/dropdown")),d=e(require("antd/lib/dropdown/dropdown-button")),u=e(require("antd/lib/input/Group")),s=e(require("antd/lib/input/Password")),c=e(require("antd/lib/input/Search")),h=e(require("antd/lib/input/TextArea")),y=e(require("antd/lib/menu/index")),f=e(require("antd/lib/menu/MenuDivider")),m=e(require("antd/lib/menu/MenuItem")),b=e(require("antd/lib/menu/SubMenu")),g=require("rc-menu"),v=require("rc-select"),x=require("rc-tabs"),V={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",importName:"Button"};function w(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Button,null!=o?o:V)}function A(){return(A=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 C(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 P(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 H(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 k=function(e){function t(){return e.apply(this,arguments)||this}return C(t,e),t.prototype.render=function(){return a.createElement(o,Object.assign({},this.props))},t}(a.Component),M={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 I(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(k,null!=n?n:M)}var S={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 H(e.children,(function(e){var n;(null==e?void 0:e.type)===k&&"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 T(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(i,null!=n?n:S)}var N={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:N}},{type:"vbox",children:{type:"text",value:"2",styles:N}}]}},importPath:"antd",importName:"Carousel"};function D(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Carousel,null!=o?o:O)}var G={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},children:{type:"slot",defaultValue:[{type:"text",value:"Insert text here"}]}},importPath:"antd/lib/collapse/CollapsePanel",importName:"CollapsePanel",parentComponentName:"AntdCollapse",isDefaultExport:!0};function W(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(r,null!=n?n:G)}var B={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 H(e.children,(function(e){(null==e?void 0:e.type)===r&&"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"}]}},importPath:"antd/lib/collapse/Collapse",importName:"Collapse",isDefaultExport:!0};function E(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(l,null!=n?n:B)}var q=function(e){function t(){return e.apply(this,arguments)||this}return C(t,e),t.prototype.render=function(){var e=A({},this.props);return e.children="string"==typeof this.props.children?a.createElement("div",null,this.props.children):this.props.children,a.createElement(p,Object.assign({},e))},t}(a.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",importName:"Dropdown"};function j(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(q,null!=n?n:z)}var K={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 R(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(d,null!=n?n:K)}var L={name:"AntdInput",displayName:"Antd Input",props:{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",importName:"Input"};function _(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Input,null!=o?o:L)}var F={name:"AntdInputTextArea",displayName:"Antd Input Text Area",props:{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 U(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(h,null!=n?n:F)}var J={name:"AntdInputSearch",displayName:"Antd Input Search",props:{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 Q(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(c,null!=n?n:J)}var X={name:"AntdInputPassword",displayName:"Antd Input Password",props:{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 Y(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(s,null!=n?n:X)}var Z={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 $(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(u,null!=n?n:Z)}var ee={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 te(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(f,null!=n?n:ee)}var ne={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 oe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(m,null!=n?n:ne)}var ie={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 ae(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(g.ItemGroup,null!=n?n:ie)}var le={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 re(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(b,null!=n?n:le)}var pe={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 H(e.children,(function(e){(null==e?void 0:e.type)===b&&"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 H(e.children,(function(e){[b,m].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 de(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(y,null!=n?n:pe)}var ue={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 se(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(v.Option,null!=n?n:ue)}var ce={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:ce)}var ye={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 H(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",importName:"Select"};function fe(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Select,null!=o?o:ye)}var me=a.forwardRef((function(e,t){var o=e.value,i=e.defaultValue,l=e.value2,r=e.defaultValue2,p=P(e,["value","defaultValue","value2","defaultValue2"]),d=A({},p);return p.range?("number"!=typeof o&&"number"!=typeof l||(d.value=[null!=o?o:0,null!=l?l:0]),"number"!=typeof i&&"number"!=typeof r||(d.defaultValue=[null!=i?i:0,null!=r?r:0])):("number"==typeof o&&(d.value=o),"number"==typeof i&&(d.defaultValue=i)),a.createElement(n.Slider,Object.assign({},d,{ref:t}))})),be={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",importName:"Slider"};function ge(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(me,null!=n?n:be)}var ve={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",importName:"Switch"};function xe(e,o){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(n.Switch,null!=o?o:ve)}var Ve={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 we(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(x.TabPane,null!=n?n:Ve)}function Ae(e){var t=e.leftTabBarExtraContent,o=e.rightTabBarExtraContent,i=P(e,["leftTabBarExtraContent","rightTabBarExtraContent"]);return a.createElement(n.Tabs,Object.assign({},i,{tabBarExtraContent:{left:t,right:o}}))}var Ce={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 H(e.children,(function(e){(null==e?void 0:e.type)===x.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"}},{type:"component",name:"AntdTabPane",props:{key:"2"}}]}},importPath:"@plasmicpkgs/antd",importName:"Tabs"};function Pe(e,n){!function(){e?e.registerComponent.apply(e,arguments):t.apply(void 0,arguments)}(Ae,null!=n?n:Ce)}exports.Dropdown=q,exports.Slider=me,exports.Tabs=Ae,exports.buttonMeta=V,exports.carouselMeta=O,exports.checkboxGroupMeta=S,exports.checkboxMeta=M,exports.collapsteMeta=B,exports.collapstePanelMeta=G,exports.dropdownButtonMeta=K,exports.dropdownMeta=z,exports.inputGroupMeta=Z,exports.inputMeta=L,exports.inputPasswordMeta=X,exports.inputSearchMeta=J,exports.inputTextAreaMeta=F,exports.menuDividerMeta=ee,exports.menuItemGroupMeta=ie,exports.menuItemMeta=ne,exports.menuMeta=pe,exports.optGroupMeta=ce,exports.optionMeta=ue,exports.registerAll=function(e){w(e),ge(e),xe(e),se(e),he(e),fe(e),W(e),E(e),I(e),T(e),te(e),oe(e),ae(e),re(e),de(e),j(e),R(e),D(e),_(e),U(e),Q(e),Y(e),$(e),we(e),Pe(e)},exports.registerButton=w,exports.registerCarousel=D,exports.registerCheckbox=I,exports.registerCheckboxGroup=T,exports.registerCollapse=E,exports.registerCollapsePanel=W,exports.registerDropdown=j,exports.registerDropdownButton=R,exports.registerInput=_,exports.registerInputGroup=$,exports.registerInputPassword=Y,exports.registerInputSearch=Q,exports.registerInputTextArea=U,exports.registerMenu=de,exports.registerMenuDivider=te,exports.registerMenuItem=oe,exports.registerMenuItemGroup=ae,exports.registerOptGroup=he,exports.registerOption=se,exports.registerSelect=fe,exports.registerSlider=ge,exports.registerSubMenu=re,exports.registerSwitch=xe,exports.registerTabPane=we,exports.registerTabs=Pe,exports.selectMeta=ye,exports.sliderMeta=be,exports.subMenuMeta=le,exports.switchMeta=ve,exports.tabPaneMeta=Ve,exports.tabsMeta=Ce;
|
|
2
2
|
//# sourceMappingURL=antd.cjs.production.min.js.map
|