@plasmicpkgs/antd 2.0.5 → 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.
- package/dist/antd.cjs.development.js +2242 -0
- package/dist/antd.cjs.development.js.map +1 -0
- package/dist/antd.cjs.production.min.js +2 -0
- package/dist/antd.cjs.production.min.js.map +1 -0
- package/dist/antd.css +27184 -0
- package/dist/antd.esm.js +637 -724
- package/dist/antd.esm.js.map +1 -1
- package/dist/customControls.d.ts +17 -17
- package/dist/index.d.ts +16 -16
- package/dist/index.js +5 -2353
- package/dist/registerButton.d.ts +5 -5
- package/dist/registerCarousel.d.ts +5 -5
- package/dist/registerCheckbox.d.ts +8 -8
- package/dist/registerCollapse.d.ts +14 -14
- package/dist/registerDropdown.d.ts +11 -11
- package/dist/registerInput.d.ts +14 -13
- package/dist/registerMenu.d.ts +15 -14
- package/dist/registerOption.d.ts +8 -8
- package/dist/registerRate.d.ts +5 -5
- package/dist/registerSelect.d.ts +8 -8
- package/dist/registerSlider.d.ts +19 -19
- package/dist/registerSwitch.d.ts +5 -5
- package/dist/registerTable.d.ts +30 -30
- package/dist/registerTabs.d.ts +13 -14
- package/dist/registerable.d.ts +4 -4
- package/package.json +7 -9
- package/skinny/customControls-8143c119.js +27 -0
- package/skinny/{customControls-f5378e2f.js.map → customControls-8143c119.js.map} +1 -1
- package/skinny/customControls.d.ts +17 -17
- package/skinny/index.d.ts +16 -0
- package/skinny/package.json +2 -2
- package/skinny/registerButton.d.ts +5 -5
- package/skinny/registerButton.js +94 -78
- package/skinny/registerButton.js.map +1 -1
- package/skinny/registerCarousel.d.ts +5 -5
- package/skinny/registerCarousel.js +80 -64
- package/skinny/registerCarousel.js.map +1 -1
- package/skinny/registerCheckbox.d.ts +8 -8
- package/skinny/registerCheckbox.js +140 -123
- package/skinny/registerCheckbox.js.map +1 -1
- package/skinny/registerCollapse.d.ts +14 -14
- package/skinny/registerCollapse.js +173 -172
- package/skinny/registerCollapse.js.map +1 -1
- package/skinny/registerDropdown.d.ts +11 -11
- package/skinny/registerDropdown.js +190 -172
- package/skinny/registerDropdown.js.map +1 -1
- package/skinny/registerInput.d.ts +14 -13
- package/skinny/registerInput.js +341 -360
- package/skinny/registerInput.js.map +1 -1
- package/skinny/registerMenu.d.ts +15 -14
- package/skinny/registerMenu.js +326 -274
- package/skinny/registerMenu.js.map +1 -1
- package/skinny/registerOption.d.ts +8 -8
- package/skinny/registerOption.js +95 -72
- package/skinny/registerOption.js.map +1 -1
- package/skinny/registerRate.d.ts +5 -5
- package/skinny/registerSelect.d.ts +8 -8
- package/skinny/registerSelect.js +144 -128
- package/skinny/registerSelect.js.map +1 -1
- package/skinny/registerSlider.d.ts +19 -19
- package/skinny/registerSlider.js +120 -130
- package/skinny/registerSlider.js.map +1 -1
- package/skinny/registerSwitch.d.ts +5 -5
- package/skinny/registerSwitch.js +69 -53
- package/skinny/registerSwitch.js.map +1 -1
- package/skinny/registerTable.d.ts +30 -30
- package/skinny/registerTable.js +204 -201
- package/skinny/registerTable.js.map +1 -1
- package/skinny/registerTabs.d.ts +13 -14
- package/skinny/registerTabs.js +330 -342
- package/skinny/registerTabs.js.map +1 -1
- package/skinny/registerable.d.ts +4 -4
- package/skinny/tslib.es6-40998fef.js +59 -0
- package/skinny/tslib.es6-40998fef.js.map +1 -0
- package/dist/index.js.map +0 -1
- package/skinny/customControls-f5378e2f.js +0 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerSelect.js","sources":["../src/registerSelect.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Select from \"antd/
|
|
1
|
+
{"version":3,"file":"registerSelect.js","sources":["../src/registerSelect.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Select from \"antd/lib/select\";\nimport { Option } from \"rc-select\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\ntype SelectProps = React.ComponentProps<typeof Select>;\n\nexport const selectMeta: ComponentMeta<SelectProps> = {\n name: \"AntdSelect\",\n displayName: \"Antd Select\",\n props: {\n allowClear: {\n type: \"boolean\",\n description: \"Show clear button\",\n defaultValueHint: false,\n },\n autoClearSearchValue: {\n type: \"boolean\",\n description:\n \"Whether the current search will be cleared on selecting an item\",\n defaultValueHint: true,\n hidden: props => props.mode !== \"multiple\" && props.mode !== \"tags\",\n },\n autoFocus: {\n type: \"boolean\",\n description: \"Get focus by default\",\n defaultValueHint: false,\n },\n bordered: {\n type: \"boolean\",\n description: \"Whether has border style\",\n defaultValueHint: true,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether disabled select\",\n defaultValueHint: false,\n },\n listHeight: {\n type: \"number\",\n description: \"Config popup height\",\n defaultValueHint: 256,\n },\n loading: {\n type: \"boolean\",\n description: \"Indicate loading state\",\n defaultValueHint: false,\n },\n mode: {\n type: \"choice\",\n options: [\"multiple\", \"tags\"],\n description: \"Set mode of Select\",\n },\n open: {\n type: \"boolean\",\n editOnly: true,\n uncontrolledProp: \"defaultOpen\",\n description: \"Initial open state of dropdown\",\n defaultValueHint: false,\n },\n placeholder: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Select\",\n },\n ],\n },\n showArrow: {\n type: \"boolean\",\n description: \"Whether to show the drop-down arrow\",\n defaultValueHint: true,\n },\n showSearch: {\n type: \"boolean\",\n description: \"Whether show search input in single mode\",\n defaultValueHint: false,\n },\n size: {\n type: \"choice\",\n options: [\"large\", \"middle\", \"small\"],\n description: \"Set mode of Select\",\n defaultValueHint: \"middle\",\n },\n value: {\n type: \"choice\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"Initial selected option\",\n options: componentProps => {\n const options = new Set<string>();\n traverseReactEltTree(componentProps.children, elt => {\n if (elt?.type === Option && typeof elt?.props?.value === \"string\") {\n options.add(elt.props.value);\n }\n });\n return Array.from(options.keys());\n },\n },\n virtual: {\n type: \"boolean\",\n description: \"Disable virtual scroll when set to false\",\n defaultValueHint: true,\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdOption, AntdOptionGroup\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdOption\",\n props: {\n value: \"Option\",\n children: {\n type: \"text\",\n value: \"Option\",\n },\n },\n },\n ],\n },\n },\n importPath: \"antd/lib/select\",\n importName: \"Select\",\n isDefaultExport: true,\n};\n\nexport function registerSelect(\n loader?: Registerable,\n customSelectMeta?: ComponentMeta<SelectProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Select, customSelectMeta ?? selectMeta);\n}\n"],"names":["traverseReactEltTree","Option","registerComponent","Select"],"mappings":";;;;;;;;;;;;;;IAWa,UAAU,GAA+B;IACpD,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE;QACL,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mBAAmB;YAChC,gBAAgB,EAAE,KAAK;SACxB;QACD,oBAAoB,EAAE;YACpB,IAAI,EAAE,SAAS;YACf,WAAW,EACT,iEAAiE;YACnE,gBAAgB,EAAE,IAAI;YACtB,MAAM,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,GAAA;SACpE;QACD,SAAS,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sBAAsB;YACnC,gBAAgB,EAAE,KAAK;SACxB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,gBAAgB,EAAE,IAAI;SACvB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yBAAyB;YACtC,gBAAgB,EAAE,KAAK;SACxB;QACD,UAAU,EAAE;Y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p/host/registerComponent";
|
|
2
|
-
import type { SliderRangeProps, SliderSingleProps } from "antd/
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { Registerable } from "./registerable";
|
|
5
|
-
type SliderProps = Omit<SliderSingleProps | SliderRangeProps, "value" | "defaultValue"> & {
|
|
6
|
-
value?: number;
|
|
7
|
-
defaultValue?: number;
|
|
8
|
-
value2?: number;
|
|
9
|
-
defaultValue2?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare const Slider: React.ForwardRefExoticComponent<
|
|
12
|
-
value?: number | undefined;
|
|
13
|
-
defaultValue?: number | undefined;
|
|
14
|
-
value2?: number | undefined;
|
|
15
|
-
defaultValue2?: number | undefined;
|
|
16
|
-
} & React.RefAttributes<unknown>>;
|
|
17
|
-
export declare const sliderMeta: ComponentMeta<SliderProps>;
|
|
18
|
-
export declare function registerSlider(loader?: Registerable, customSliderMeta?: ComponentMeta<SliderProps>): void;
|
|
19
|
-
export {};
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import type { SliderRangeProps, SliderSingleProps } from "antd/lib/slider";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Registerable } from "./registerable";
|
|
5
|
+
declare type SliderProps = Omit<SliderSingleProps | SliderRangeProps, "value" | "defaultValue"> & {
|
|
6
|
+
value?: number;
|
|
7
|
+
defaultValue?: number;
|
|
8
|
+
value2?: number;
|
|
9
|
+
defaultValue2?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const Slider: React.ForwardRefExoticComponent<Pick<SliderSingleProps | SliderRangeProps, "range" | "onChange" | "onAfterChange" | "handleStyle" | "trackStyle" | "prefixCls" | "tooltipPrefixCls" | "reverse" | "min" | "max" | "step" | "marks" | "dots" | "included" | "disabled" | "vertical" | "tipFormatter" | "className" | "id" | "style" | "tooltipVisible" | "tooltipPlacement" | "getTooltipPopupContainer" | "autoFocus"> & {
|
|
12
|
+
value?: number | undefined;
|
|
13
|
+
defaultValue?: number | undefined;
|
|
14
|
+
value2?: number | undefined;
|
|
15
|
+
defaultValue2?: number | undefined;
|
|
16
|
+
} & React.RefAttributes<unknown>>;
|
|
17
|
+
export declare const sliderMeta: ComponentMeta<SliderProps>;
|
|
18
|
+
export declare function registerSlider(loader?: Registerable, customSliderMeta?: ComponentMeta<SliderProps>): void;
|
|
19
|
+
export {};
|
package/skinny/registerSlider.js
CHANGED
|
@@ -1,134 +1,124 @@
|
|
|
1
|
-
|
|
2
|
-
import AntdSlider from 'antd/es/slider';
|
|
3
|
-
import React from 'react';
|
|
1
|
+
'use strict';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
defaultStyles: {
|
|
122
|
-
width: "200px",
|
|
123
|
-
maxWidth: "100%"
|
|
124
|
-
},
|
|
125
|
-
importPath: "@plasmicpkgs/antd/skinny/registerSlider",
|
|
126
|
-
importName: "Slider"
|
|
127
|
-
};
|
|
128
|
-
function registerSlider(loader, customSliderMeta) {
|
|
129
|
-
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
130
|
-
doRegisterComponent(Slider, customSliderMeta != null ? customSliderMeta : sliderMeta);
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-40998fef.js');
|
|
6
|
+
var registerComponent = require('@plasmicapp/host/registerComponent');
|
|
7
|
+
var AntdSlider = require('antd/lib/slider');
|
|
8
|
+
var React = require('react');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var registerComponent__default = /*#__PURE__*/_interopDefaultLegacy(registerComponent);
|
|
13
|
+
var AntdSlider__default = /*#__PURE__*/_interopDefaultLegacy(AntdSlider);
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
|
|
16
|
+
var Slider = React__default['default'].forwardRef(function (_a, ref) {
|
|
17
|
+
var value = _a.value, defaultValue = _a.defaultValue, value2 = _a.value2, defaultValue2 = _a.defaultValue2, props = tslib_es6.__rest(_a, ["value", "defaultValue", "value2", "defaultValue2"]);
|
|
18
|
+
var newProps = tslib_es6.__assign({}, props);
|
|
19
|
+
if (props.range) {
|
|
20
|
+
if (typeof value === "number" || typeof value2 === "number") {
|
|
21
|
+
newProps.value = [value !== null && value !== void 0 ? value : 0, value2 !== null && value2 !== void 0 ? value2 : 0];
|
|
22
|
+
}
|
|
23
|
+
if (typeof defaultValue === "number" ||
|
|
24
|
+
typeof defaultValue2 === "number") {
|
|
25
|
+
newProps.defaultValue = [defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0, defaultValue2 !== null && defaultValue2 !== void 0 ? defaultValue2 : 0];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
if (typeof value === "number") {
|
|
30
|
+
newProps.value = value;
|
|
31
|
+
}
|
|
32
|
+
if (typeof defaultValue === "number") {
|
|
33
|
+
newProps.defaultValue = defaultValue;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return React__default['default'].createElement(AntdSlider__default['default'], tslib_es6.__assign({}, newProps, { ref: ref }));
|
|
37
|
+
});
|
|
38
|
+
var sliderMeta = {
|
|
39
|
+
name: "AntdSlider",
|
|
40
|
+
displayName: "Antd Slider",
|
|
41
|
+
props: {
|
|
42
|
+
max: {
|
|
43
|
+
type: "number",
|
|
44
|
+
description: "The maximum value the slider can slide to",
|
|
45
|
+
defaultValueHint: 100,
|
|
46
|
+
},
|
|
47
|
+
min: {
|
|
48
|
+
type: "number",
|
|
49
|
+
description: "The minimum value the slider can slide to",
|
|
50
|
+
defaultValueHint: 0,
|
|
51
|
+
},
|
|
52
|
+
included: {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "Make effect when marks not null, true means containment and false means coordinative",
|
|
55
|
+
defaultValueHint: true,
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: "If true, the slider will not be interactable",
|
|
60
|
+
defaultValueHint: false,
|
|
61
|
+
},
|
|
62
|
+
range: {
|
|
63
|
+
type: "boolean",
|
|
64
|
+
description: "Dual thumb mode",
|
|
65
|
+
defaultValueHint: false,
|
|
66
|
+
},
|
|
67
|
+
reverse: {
|
|
68
|
+
type: "boolean",
|
|
69
|
+
description: "Reverse the component",
|
|
70
|
+
defaultValueHint: false,
|
|
71
|
+
},
|
|
72
|
+
vertical: {
|
|
73
|
+
type: "boolean",
|
|
74
|
+
description: "If true, the slider will be vertical",
|
|
75
|
+
defaultValueHint: false,
|
|
76
|
+
},
|
|
77
|
+
value: {
|
|
78
|
+
type: "number",
|
|
79
|
+
editOnly: true,
|
|
80
|
+
uncontrolledProp: "defaultValue",
|
|
81
|
+
description: "The default value of slider",
|
|
82
|
+
},
|
|
83
|
+
value2: {
|
|
84
|
+
type: "number",
|
|
85
|
+
displayName: "value 2",
|
|
86
|
+
editOnly: true,
|
|
87
|
+
uncontrolledProp: "defaultValue2",
|
|
88
|
+
description: "The default value for the second value of the slider",
|
|
89
|
+
hidden: function (props) { return !props.range; },
|
|
90
|
+
},
|
|
91
|
+
step: {
|
|
92
|
+
type: "number",
|
|
93
|
+
description: "The granularity the slider can step through values. Must greater than 0, and be divided by (max - min)." +
|
|
94
|
+
" When marks no null, step can be null",
|
|
95
|
+
defaultValueHint: 1,
|
|
96
|
+
},
|
|
97
|
+
marks: {
|
|
98
|
+
type: "object",
|
|
99
|
+
description: "Tick mark of Slider, type of key must be number, and must in closed interval [min, max]," +
|
|
100
|
+
" each mark can declare its own style",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
defaultStyles: {
|
|
104
|
+
width: "200px",
|
|
105
|
+
maxWidth: "100%",
|
|
106
|
+
},
|
|
107
|
+
importPath: "@plasmicpkgs/antd/skinny/registerSlider",
|
|
108
|
+
importName: "Slider",
|
|
109
|
+
};
|
|
110
|
+
function registerSlider(loader, customSliderMeta) {
|
|
111
|
+
var doRegisterComponent = function () {
|
|
112
|
+
var args = [];
|
|
113
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
114
|
+
args[_i] = arguments[_i];
|
|
115
|
+
}
|
|
116
|
+
return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
|
|
117
|
+
};
|
|
118
|
+
doRegisterComponent(Slider, customSliderMeta !== null && customSliderMeta !== void 0 ? customSliderMeta : sliderMeta);
|
|
131
119
|
}
|
|
132
120
|
|
|
133
|
-
|
|
121
|
+
exports.Slider = Slider;
|
|
122
|
+
exports.registerSlider = registerSlider;
|
|
123
|
+
exports.sliderMeta = sliderMeta;
|
|
134
124
|
//# sourceMappingURL=registerSlider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerSlider.js","sources":["../src/registerSlider.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport
|
|
1
|
+
{"version":3,"file":"registerSlider.js","sources":["../src/registerSlider.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { default as AntdSlider } from \"antd/lib/slider\";\nimport type { SliderRangeProps, SliderSingleProps } from \"antd/lib/slider\";\nimport React from \"react\";\nimport { Registerable } from \"./registerable\";\n\ntype SliderProps = Omit<\n SliderSingleProps | SliderRangeProps,\n \"value\" | \"defaultValue\"\n> & {\n value?: number;\n defaultValue?: number;\n value2?: number;\n defaultValue2?: number;\n};\n\nexport const Slider = React.forwardRef<unknown, SliderProps>(\n ({ value, defaultValue, value2, defaultValue2, ...props }, ref) => {\n const newProps = { ...props } as SliderSingleProps | SliderRangeProps;\n if (props.range) {\n if (typeof value === \"number\" || typeof value2 === \"number\") {\n newProps.value = [value ?? 0, value2 ?? 0];\n }\n if (\n typeof defaultValue === \"number\" ||\n typeof defaultValue2 === \"number\"\n ) {\n newProps.defaultValue = [defaultValue ?? 0, defaultValue2 ?? 0];\n }\n } else {\n if (typeof value === \"number\") {\n newProps.value = value;\n }\n if(typeof defaultValue === \"number\") {\n newProps.defaultValue = defaultValue;\n }\n }\n return <AntdSlider {...newProps} ref={ref} />;\n }\n);\n\nexport const sliderMeta: ComponentMeta<SliderProps> = {\n name: \"AntdSlider\",\n displayName: \"Antd Slider\",\n props: {\n max: {\n type: \"number\",\n description: \"The maximum value the slider can slide to\",\n defaultValueHint: 100,\n },\n min: {\n type: \"number\",\n description: \"The minimum value the slider can slide to\",\n defaultValueHint: 0,\n },\n included: {\n type: \"boolean\",\n description:\n \"Make effect when marks not null, true means containment and false means coordinative\",\n defaultValueHint: true,\n },\n disabled: {\n type: \"boolean\",\n description: \"If true, the slider will not be interactable\",\n defaultValueHint: false,\n },\n range: {\n type: \"boolean\",\n description: \"Dual thumb mode\",\n defaultValueHint: false,\n },\n reverse: {\n type: \"boolean\",\n description: \"Reverse the component\",\n defaultValueHint: false,\n },\n vertical: {\n type: \"boolean\",\n description: \"If true, the slider will be vertical\",\n defaultValueHint: false,\n },\n value: {\n type: \"number\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"The default value of slider\",\n },\n value2: {\n type: \"number\",\n displayName: \"value 2\",\n editOnly: true,\n uncontrolledProp: \"defaultValue2\",\n description: \"The default value for the second value of the slider\",\n hidden: (props) => !props.range,\n },\n step: {\n type: \"number\",\n description:\n \"The granularity the slider can step through values. Must greater than 0, and be divided by (max - min).\" +\n \" When marks no null, step can be null\",\n defaultValueHint: 1,\n },\n marks: {\n type: \"object\",\n description:\n \"Tick mark of Slider, type of key must be number, and must in closed interval [min, max],\" +\n \" each mark can declare its own style\",\n },\n },\n defaultStyles: {\n width: \"200px\",\n maxWidth: \"100%\",\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerSlider\",\n importName: \"Slider\",\n};\n\nexport function registerSlider(\n loader?: Registerable,\n customSliderMeta?: ComponentMeta<SliderProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Slider, customSliderMeta ?? sliderMeta);\n}\n"],"names":["React","__assign","AntdSlider","registerComponent"],"mappings":";;;;;;;;;;;;;;;IAkBa,MAAM,GAAGA,yBAAK,CAAC,UAAU,CACpC,UAAC,EAAwD,EAAE,GAAG;IAA3D,IAAA,KAAK,WAAA,EAAE,YAAY,kBAAA,EAAE,MAAM,YAAA,EAAE,aAAa,mBAAA,EAAK,KAAK,wBAAtD,oDAAwD,CAAF;IACrD,IAAM,QAAQ,GAAGC,uBAAK,KAAK,CAA0C,CAAC;IACtE,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC3D,QAAQ,CAAC,KAAK,GAAG,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,CAAC,CAAC,CAAC;SAC5C;QACD,IACE,OAAO,YAAY,KAAK,QAAQ;YAChC,OAAO,aAAa,KAAK,QAAQ,EACjC;YACA,QAAQ,CAAC,YAAY,GAAG,CAAC,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,CAAC,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,CAAC,CAAC,CAAC;SACjE;KACF;SAAM;QACL,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;SACxB;QACD,IAAG,OAAO,YAAY,KAAK,QAAQ,EAAE;YACnC,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;SACtC;KACF;IACD,OAAOD,wCAAC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AAQ;YACd,WAAW,EACT,yGAAyG;gBACzG,uCAAuC;YACzC,gBAAgB,EAAE,CAAC;SACpB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,0FAA0F;gBAC1F,sCAAsC;SACzC;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,MAAM;KACjB;IACD,UAAU,EAAE,yCAAyC;IACrD,UAAU,EAAE,QAAQ;EACpB;SAEc,cAAc,CAC5B,MAAqB,EACrB,gBAA6C;IAE7C,IAAM,mBAAmB,GAA6B;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAC5D,OAAA,MAAM,GAAG,MAAM,CAAC,iBAAiB,OAAxB,MAAM,EAAsB,IAAI,IAAIC,qCAAiB,eAAI,IAAI,CAAC;KAAA,CAAC;IAC1E,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,UAAU,CAAC,CAAC;AAC9D;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import { SwitchProps } from "antd/
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
export declare const switchMeta: ComponentMeta<SwitchProps>;
|
|
5
|
-
export declare function registerSwitch(loader?: Registerable, customSwitchMeta?: ComponentMeta<SwitchProps>): void;
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import { SwitchProps } from "antd/lib/switch";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
export declare const switchMeta: ComponentMeta<SwitchProps>;
|
|
5
|
+
export declare function registerSwitch(loader?: Registerable, customSwitchMeta?: ComponentMeta<SwitchProps>): void;
|
package/skinny/registerSwitch.js
CHANGED
|
@@ -1,57 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
import Switch from 'antd/es/switch';
|
|
1
|
+
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var registerComponent = require('@plasmicapp/host/registerComponent');
|
|
6
|
+
var Switch = require('antd/lib/switch');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var registerComponent__default = /*#__PURE__*/_interopDefaultLegacy(registerComponent);
|
|
11
|
+
var Switch__default = /*#__PURE__*/_interopDefaultLegacy(Switch);
|
|
12
|
+
|
|
13
|
+
var switchMeta = {
|
|
14
|
+
name: "AntdSwitch",
|
|
15
|
+
displayName: "Antd Switch",
|
|
16
|
+
props: {
|
|
17
|
+
autoFocus: {
|
|
18
|
+
type: "boolean",
|
|
19
|
+
description: "Whether get focus when component mounted",
|
|
20
|
+
defaultValueHint: false,
|
|
21
|
+
},
|
|
22
|
+
checked: {
|
|
23
|
+
type: "boolean",
|
|
24
|
+
editOnly: true,
|
|
25
|
+
uncontrolledProp: "defaultChecked",
|
|
26
|
+
description: "Whether to set the initial state",
|
|
27
|
+
defaultValueHint: false,
|
|
28
|
+
},
|
|
29
|
+
disabled: {
|
|
30
|
+
type: "boolean",
|
|
31
|
+
description: "Disable switch",
|
|
32
|
+
defaultValueHint: false,
|
|
33
|
+
},
|
|
34
|
+
loading: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
description: "Loading state of switch",
|
|
37
|
+
defaultValueHint: false,
|
|
38
|
+
},
|
|
39
|
+
checkedChildren: {
|
|
40
|
+
type: "slot",
|
|
41
|
+
defaultValue: [],
|
|
42
|
+
hidePlaceholder: true,
|
|
43
|
+
},
|
|
44
|
+
unCheckedChildren: {
|
|
45
|
+
type: "slot",
|
|
46
|
+
defaultValue: [],
|
|
47
|
+
hidePlaceholder: true,
|
|
48
|
+
},
|
|
49
|
+
size: {
|
|
50
|
+
type: "choice",
|
|
51
|
+
options: ["small", "default"],
|
|
52
|
+
description: "The size of the Switch",
|
|
53
|
+
defaultValueHint: "default",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
importPath: "antd/lib/switch",
|
|
57
|
+
importName: "Switch",
|
|
58
|
+
isDefaultExport: true,
|
|
59
|
+
};
|
|
60
|
+
function registerSwitch(loader, customSwitchMeta) {
|
|
61
|
+
var doRegisterComponent = function () {
|
|
62
|
+
var args = [];
|
|
63
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
64
|
+
args[_i] = arguments[_i];
|
|
65
|
+
}
|
|
66
|
+
return loader ? loader.registerComponent.apply(loader, args) : registerComponent__default['default'].apply(void 0, args);
|
|
67
|
+
};
|
|
68
|
+
doRegisterComponent(Switch__default['default'], customSwitchMeta !== null && customSwitchMeta !== void 0 ? customSwitchMeta : switchMeta);
|
|
54
69
|
}
|
|
55
70
|
|
|
56
|
-
|
|
71
|
+
exports.registerSwitch = registerSwitch;
|
|
72
|
+
exports.switchMeta = switchMeta;
|
|
57
73
|
//# sourceMappingURL=registerSwitch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerSwitch.js","sources":["../src/registerSwitch.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Switch, { SwitchProps } from \"antd/
|
|
1
|
+
{"version":3,"file":"registerSwitch.js","sources":["../src/registerSwitch.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Switch, { SwitchProps } from \"antd/lib/switch\";\nimport { Registerable } from \"./registerable\";\n\nexport const switchMeta: ComponentMeta<SwitchProps> = {\n name: \"AntdSwitch\",\n displayName: \"Antd Switch\",\n props: {\n autoFocus: {\n type: \"boolean\",\n description: \"Whether get focus when component mounted\",\n defaultValueHint: false,\n },\n checked: {\n type: \"boolean\",\n editOnly: true,\n uncontrolledProp: \"defaultChecked\",\n description: \"Whether to set the initial state\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"Disable switch\",\n defaultValueHint: false,\n },\n loading: {\n type: \"boolean\",\n description: \"Loading state of switch\",\n defaultValueHint: false,\n },\n checkedChildren: {\n type: \"slot\",\n defaultValue: [],\n hidePlaceholder: true,\n },\n unCheckedChildren: {\n type: \"slot\",\n defaultValue: [],\n hidePlaceholder: true,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\"],\n description: \"The size of the Switch\",\n defaultValueHint: \"default\",\n },\n },\n importPath: \"antd/lib/switch\",\n importName: \"Switch\",\n isDefaultExport: true,\n};\n\nexport function registerSwitch(\n loader?: Registerable,\n customSwitchMeta?: ComponentMeta<SwitchProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Switch, customSwitchMeta ?? switchMeta);\n}\n"],"names":["registerComponent","Switch"],"mappings":";;;;;;;;;;;;IAMa,UAAU,GAA+B;IACpD,IAAI,EAAE,Y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,cAAhB,gBAAgB,GAAI,UAAU,CAAC,CAAC;AAC9D;;;;;"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { ComponentMeta } from "@plasmicapp/host";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface TableColumnProps {
|
|
5
|
-
columnIndex: number;
|
|
6
|
-
title?: string;
|
|
7
|
-
dataIndex: string | string[];
|
|
8
|
-
columnTemplate: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function TableColumn(_props: TableColumnProps): null;
|
|
11
|
-
export interface TableValueProps {
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function TableValue(props: TableValueProps): JSX.Element;
|
|
15
|
-
export interface TableWrapperProps {
|
|
16
|
-
className?: string;
|
|
17
|
-
items: Array<any>;
|
|
18
|
-
columns: React.ReactNode;
|
|
19
|
-
size?: string;
|
|
20
|
-
pagination?: boolean;
|
|
21
|
-
onSelect?: (record: any) => void;
|
|
22
|
-
}
|
|
23
|
-
export declare function TableWrapper(props: TableWrapperProps): JSX.Element;
|
|
24
|
-
export declare const tableMeta: ComponentMeta<TableWrapperProps>;
|
|
25
|
-
export declare const tableColumnMeta: ComponentMeta<TableColumnProps>;
|
|
26
|
-
export declare const tableValueMeta: ComponentMeta<TableValueProps>;
|
|
27
|
-
export declare function registerTable(loader?: Registerable, customMeta?: ComponentMeta<TableWrapperProps>): void;
|
|
28
|
-
export declare function registerTableColumn(loader?: Registerable, customMeta?: ComponentMeta<TableColumnProps>): void;
|
|
29
|
-
export declare function registerTableValue(loader?: Registerable, customMeta?: ComponentMeta<TableValueProps>): void;
|
|
30
|
-
export {};
|
|
1
|
+
import { ComponentMeta } from "@plasmicapp/host";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface TableColumnProps {
|
|
5
|
+
columnIndex: number;
|
|
6
|
+
title?: string;
|
|
7
|
+
dataIndex: string | string[];
|
|
8
|
+
columnTemplate: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function TableColumn(_props: TableColumnProps): null;
|
|
11
|
+
export interface TableValueProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function TableValue(props: TableValueProps): JSX.Element;
|
|
15
|
+
export interface TableWrapperProps {
|
|
16
|
+
className?: string;
|
|
17
|
+
items: Array<any>;
|
|
18
|
+
columns: React.ReactNode;
|
|
19
|
+
size?: string;
|
|
20
|
+
pagination?: boolean;
|
|
21
|
+
onSelect?: (record: any) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function TableWrapper(props: TableWrapperProps): JSX.Element;
|
|
24
|
+
export declare const tableMeta: ComponentMeta<TableWrapperProps>;
|
|
25
|
+
export declare const tableColumnMeta: ComponentMeta<TableColumnProps>;
|
|
26
|
+
export declare const tableValueMeta: ComponentMeta<TableValueProps>;
|
|
27
|
+
export declare function registerTable(loader?: Registerable, customMeta?: ComponentMeta<TableWrapperProps>): void;
|
|
28
|
+
export declare function registerTableColumn(loader?: Registerable, customMeta?: ComponentMeta<TableColumnProps>): void;
|
|
29
|
+
export declare function registerTableValue(loader?: Registerable, customMeta?: ComponentMeta<TableValueProps>): void;
|
|
30
|
+
export {};
|