@plasmicpkgs/antd5 0.0.130 → 0.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +1008 -509
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +1008 -508
- package/dist/index.js.map +1 -1
- package/dist/registerSlider.d.ts +63 -0
- package/package.json +2 -2
- package/skinny/registerSlider.cjs.js +522 -0
- package/skinny/registerSlider.cjs.js.map +1 -0
- package/skinny/registerSlider.d.ts +63 -0
- package/skinny/registerSlider.esm.js +506 -0
- package/skinny/registerSlider.esm.js.map +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Slider } from "antd";
|
|
2
|
+
import React, { ReactElement } from "react";
|
|
3
|
+
import { Registerable } from "./utils";
|
|
4
|
+
import type { SliderTooltipProps } from "antd/lib/slider";
|
|
5
|
+
import type { TooltipPlacement } from "antd/lib/tooltip";
|
|
6
|
+
export type StylableMark = {
|
|
7
|
+
mark: number;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type SliderTooltip = {
|
|
11
|
+
tooltipPrefix?: string;
|
|
12
|
+
tooltipSuffix?: string;
|
|
13
|
+
tooltipVisible?: boolean | string;
|
|
14
|
+
tooltipPlacement?: TooltipPlacement;
|
|
15
|
+
};
|
|
16
|
+
export type SimpleMark = {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
export type AntdSliderBaseProps = Omit<React.ComponentProps<typeof Slider>, "range" | "tooltipVisible" | "tooltip" | "marks" | "onChange" | "onAfterChange" | "value" | "defaultValue" | "trackStyle" | "railStyle" | "handleStyle"> & SliderTooltip & {
|
|
21
|
+
stylableMarks?: ReactElement;
|
|
22
|
+
marks?: SimpleMark[];
|
|
23
|
+
sliderScopeClassName?: string;
|
|
24
|
+
};
|
|
25
|
+
export interface AntdSingleSliderProps extends AntdSliderBaseProps {
|
|
26
|
+
value?: number;
|
|
27
|
+
defaultValue?: number;
|
|
28
|
+
onChange: (value?: number) => void;
|
|
29
|
+
onAfterChange: (value?: number) => void;
|
|
30
|
+
}
|
|
31
|
+
export interface AntdRangeSliderProps extends AntdSliderBaseProps {
|
|
32
|
+
draggableTrack?: boolean;
|
|
33
|
+
valueMin?: number;
|
|
34
|
+
valueMax?: number;
|
|
35
|
+
defaultValueMin?: number;
|
|
36
|
+
defaultValueMax?: number;
|
|
37
|
+
onChange: (value?: [number, number]) => void;
|
|
38
|
+
onAfterChange: (value?: [number, number]) => void;
|
|
39
|
+
}
|
|
40
|
+
export declare function useMarks({ simpleMarks, stylableMarks, }: {
|
|
41
|
+
simpleMarks?: SimpleMark[];
|
|
42
|
+
stylableMarks?: ReactElement;
|
|
43
|
+
}): Record<number, React.ReactNode | {
|
|
44
|
+
label: string;
|
|
45
|
+
}>;
|
|
46
|
+
export declare function useTooltip({ tooltipVisible, tooltipPlacement, tooltipPrefix, tooltipSuffix, }: SliderTooltip): SliderTooltipProps;
|
|
47
|
+
export declare function AntdRangeSlider(props: AntdRangeSliderProps): React.JSX.Element;
|
|
48
|
+
export declare function AntdSingleSlider(props: AntdSingleSliderProps): React.JSX.Element;
|
|
49
|
+
export declare function AntdSliderMark(props: StylableMark): React.JSX.Element;
|
|
50
|
+
export declare const sliderComponentName = "plasmic-antd5-slider";
|
|
51
|
+
export declare const rangeSliderComponentName = "plasmic-antd5-range-slider";
|
|
52
|
+
export declare const sliderMarkComponentName = "plasmic-antd5-slider-mark";
|
|
53
|
+
export declare const rangeSliderHelpers: {
|
|
54
|
+
states: {
|
|
55
|
+
min: {
|
|
56
|
+
onChangeArgsToValue: (value: number[]) => number;
|
|
57
|
+
};
|
|
58
|
+
max: {
|
|
59
|
+
onChangeArgsToValue: (value: number[]) => number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare function registerSlider(loader?: Registerable): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/antd5",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.131",
|
|
4
4
|
"description": "Plasmic registration calls for antd components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "f41979d07a8dfe71ab98ebed64e6920a238905f8"
|
|
103
103
|
}
|
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var antd = require('antd');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var utils = require('./utils-174b9d45.cjs.js');
|
|
6
|
+
var kebabCase = require('lodash/kebabCase');
|
|
7
|
+
require('@plasmicapp/host/registerComponent');
|
|
8
|
+
require('@plasmicapp/host/registerGlobalContext');
|
|
9
|
+
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
13
|
+
var kebabCase__default = /*#__PURE__*/_interopDefault(kebabCase);
|
|
14
|
+
|
|
15
|
+
var __defProp = Object.defineProperty;
|
|
16
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
19
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
20
|
+
var __spreadValues = (a, b) => {
|
|
21
|
+
for (var prop in b || (b = {}))
|
|
22
|
+
if (__hasOwnProp.call(b, prop))
|
|
23
|
+
__defNormalProp(a, prop, b[prop]);
|
|
24
|
+
if (__getOwnPropSymbols)
|
|
25
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
26
|
+
if (__propIsEnum.call(b, prop))
|
|
27
|
+
__defNormalProp(a, prop, b[prop]);
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
};
|
|
31
|
+
var __objRest = (source, exclude) => {
|
|
32
|
+
var target = {};
|
|
33
|
+
for (var prop in source)
|
|
34
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35
|
+
target[prop] = source[prop];
|
|
36
|
+
if (source != null && __getOwnPropSymbols)
|
|
37
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
38
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
39
|
+
target[prop] = source[prop];
|
|
40
|
+
}
|
|
41
|
+
return target;
|
|
42
|
+
};
|
|
43
|
+
function useMarks({
|
|
44
|
+
simpleMarks,
|
|
45
|
+
stylableMarks
|
|
46
|
+
}) {
|
|
47
|
+
const marks = React.useMemo(() => {
|
|
48
|
+
var _a;
|
|
49
|
+
const stylableMarksList = ((_a = stylableMarks == null ? void 0 : stylableMarks.type) == null ? void 0 : _a.name) == AntdSliderMark.name ? [stylableMarks] : stylableMarks == null ? void 0 : stylableMarks.props.children;
|
|
50
|
+
const res = {};
|
|
51
|
+
stylableMarksList == null ? void 0 : stylableMarksList.filter(
|
|
52
|
+
(c) => {
|
|
53
|
+
var _a2;
|
|
54
|
+
return React__default.default.isValidElement(c) && ((_a2 = c.type) == null ? void 0 : _a2.name) === AntdSliderMark.name;
|
|
55
|
+
}
|
|
56
|
+
).forEach((c) => {
|
|
57
|
+
res[c.props.mark] = c.props.children;
|
|
58
|
+
});
|
|
59
|
+
simpleMarks == null ? void 0 : simpleMarks.forEach((mark) => {
|
|
60
|
+
res[mark.value] = { label: mark.label };
|
|
61
|
+
});
|
|
62
|
+
return res;
|
|
63
|
+
}, [simpleMarks, stylableMarks]);
|
|
64
|
+
return marks;
|
|
65
|
+
}
|
|
66
|
+
function useTooltip({
|
|
67
|
+
tooltipVisible,
|
|
68
|
+
tooltipPlacement,
|
|
69
|
+
tooltipPrefix,
|
|
70
|
+
tooltipSuffix
|
|
71
|
+
}) {
|
|
72
|
+
return {
|
|
73
|
+
open: tooltipVisible === "unset" ? void 0 : Boolean(tooltipVisible),
|
|
74
|
+
placement: tooltipPlacement,
|
|
75
|
+
getPopupContainer: (node) => node,
|
|
76
|
+
formatter: (value) => `${tooltipPrefix || ""}${value}${tooltipSuffix || ""}`
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function AntdRangeSlider(props) {
|
|
80
|
+
const _a = props, {
|
|
81
|
+
marks,
|
|
82
|
+
stylableMarks,
|
|
83
|
+
sliderScopeClassName,
|
|
84
|
+
className,
|
|
85
|
+
tooltipVisible,
|
|
86
|
+
tooltipPlacement,
|
|
87
|
+
tooltipPrefix,
|
|
88
|
+
tooltipSuffix,
|
|
89
|
+
draggableTrack,
|
|
90
|
+
valueMin,
|
|
91
|
+
valueMax,
|
|
92
|
+
defaultValueMin,
|
|
93
|
+
defaultValueMax
|
|
94
|
+
} = _a, rest = __objRest(_a, [
|
|
95
|
+
"marks",
|
|
96
|
+
"stylableMarks",
|
|
97
|
+
"sliderScopeClassName",
|
|
98
|
+
"className",
|
|
99
|
+
"tooltipVisible",
|
|
100
|
+
"tooltipPlacement",
|
|
101
|
+
"tooltipPrefix",
|
|
102
|
+
"tooltipSuffix",
|
|
103
|
+
"draggableTrack",
|
|
104
|
+
"valueMin",
|
|
105
|
+
"valueMax",
|
|
106
|
+
"defaultValueMin",
|
|
107
|
+
"defaultValueMax"
|
|
108
|
+
]);
|
|
109
|
+
const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
|
|
110
|
+
const tooltipProp = useTooltip({
|
|
111
|
+
tooltipVisible,
|
|
112
|
+
tooltipPlacement,
|
|
113
|
+
tooltipPrefix,
|
|
114
|
+
tooltipSuffix
|
|
115
|
+
});
|
|
116
|
+
return /* @__PURE__ */ React__default.default.createElement(
|
|
117
|
+
antd.Slider,
|
|
118
|
+
__spreadValues({
|
|
119
|
+
value: [valueMin || 0, valueMax || 0],
|
|
120
|
+
defaultValue: [defaultValueMin || 0, defaultValueMax || 0],
|
|
121
|
+
range: { draggableTrack },
|
|
122
|
+
className: `${sliderScopeClassName} ${className}`,
|
|
123
|
+
tooltip: tooltipProp,
|
|
124
|
+
marks: marksProp
|
|
125
|
+
}, rest)
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
function AntdSingleSlider(props) {
|
|
129
|
+
const _a = props, {
|
|
130
|
+
marks,
|
|
131
|
+
stylableMarks,
|
|
132
|
+
sliderScopeClassName,
|
|
133
|
+
className,
|
|
134
|
+
tooltipVisible,
|
|
135
|
+
tooltipPlacement,
|
|
136
|
+
tooltipPrefix,
|
|
137
|
+
tooltipSuffix
|
|
138
|
+
} = _a, rest = __objRest(_a, [
|
|
139
|
+
"marks",
|
|
140
|
+
"stylableMarks",
|
|
141
|
+
"sliderScopeClassName",
|
|
142
|
+
"className",
|
|
143
|
+
"tooltipVisible",
|
|
144
|
+
"tooltipPlacement",
|
|
145
|
+
"tooltipPrefix",
|
|
146
|
+
"tooltipSuffix"
|
|
147
|
+
]);
|
|
148
|
+
const marksProp = useMarks({ simpleMarks: marks, stylableMarks });
|
|
149
|
+
const tooltipProp = useTooltip({
|
|
150
|
+
tooltipVisible,
|
|
151
|
+
tooltipPlacement,
|
|
152
|
+
tooltipPrefix,
|
|
153
|
+
tooltipSuffix
|
|
154
|
+
});
|
|
155
|
+
return /* @__PURE__ */ React__default.default.createElement(
|
|
156
|
+
antd.Slider,
|
|
157
|
+
__spreadValues({
|
|
158
|
+
className: `${sliderScopeClassName} ${className}`,
|
|
159
|
+
tooltip: tooltipProp,
|
|
160
|
+
marks: marksProp
|
|
161
|
+
}, rest)
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
function AntdSliderMark(props) {
|
|
165
|
+
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, props.children);
|
|
166
|
+
}
|
|
167
|
+
const sliderComponentName = "plasmic-antd5-slider";
|
|
168
|
+
const rangeSliderComponentName = "plasmic-antd5-range-slider";
|
|
169
|
+
const sliderMarkComponentName = "plasmic-antd5-slider-mark";
|
|
170
|
+
const commonProps = {
|
|
171
|
+
autoFocus: {
|
|
172
|
+
type: "boolean",
|
|
173
|
+
description: "Focus when component is rendered",
|
|
174
|
+
defaultValueHint: false,
|
|
175
|
+
advanced: true
|
|
176
|
+
},
|
|
177
|
+
disabled: {
|
|
178
|
+
type: "boolean",
|
|
179
|
+
description: "If true, the slider thumb will not be draggable",
|
|
180
|
+
defaultValueHint: false
|
|
181
|
+
},
|
|
182
|
+
keyboard: {
|
|
183
|
+
type: "boolean",
|
|
184
|
+
description: "Support using keyboard to move handlers",
|
|
185
|
+
defaultValueHint: true,
|
|
186
|
+
advanced: true
|
|
187
|
+
},
|
|
188
|
+
dots: {
|
|
189
|
+
type: "boolean",
|
|
190
|
+
displayName: "Show dots",
|
|
191
|
+
description: "Show dot at every step on the slider",
|
|
192
|
+
defaultValueHint: false,
|
|
193
|
+
advanced: true
|
|
194
|
+
},
|
|
195
|
+
marks: {
|
|
196
|
+
type: "array",
|
|
197
|
+
description: "Specific markers or snap points on the slider",
|
|
198
|
+
itemType: {
|
|
199
|
+
nameFunc: (value) => `${value.value} \u2192 ${value.label}`,
|
|
200
|
+
type: "object",
|
|
201
|
+
fields: {
|
|
202
|
+
value: {
|
|
203
|
+
type: "number",
|
|
204
|
+
description: "value on the slider"
|
|
205
|
+
},
|
|
206
|
+
label: "string"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
stylableMarks: {
|
|
211
|
+
type: "slot",
|
|
212
|
+
displayName: "Stylable Marks",
|
|
213
|
+
allowedComponents: [sliderMarkComponentName],
|
|
214
|
+
defaultValue: [
|
|
215
|
+
{
|
|
216
|
+
type: "component",
|
|
217
|
+
name: sliderMarkComponentName,
|
|
218
|
+
props: {
|
|
219
|
+
mark: 50,
|
|
220
|
+
children: {
|
|
221
|
+
type: "text",
|
|
222
|
+
value: "Stylable Mark"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
included: {
|
|
229
|
+
type: "boolean",
|
|
230
|
+
description: "Fill the slider till the selected value",
|
|
231
|
+
defaultValueHint: true,
|
|
232
|
+
advanced: true
|
|
233
|
+
},
|
|
234
|
+
min: {
|
|
235
|
+
type: "number",
|
|
236
|
+
description: "The minimum value the slider can slide to",
|
|
237
|
+
defaultValueHint: 0,
|
|
238
|
+
displayName: "Slider start"
|
|
239
|
+
},
|
|
240
|
+
max: {
|
|
241
|
+
type: "number",
|
|
242
|
+
description: "The maximum value the slider can slide to",
|
|
243
|
+
defaultValueHint: 100,
|
|
244
|
+
displayName: "Slider end"
|
|
245
|
+
},
|
|
246
|
+
reverse: {
|
|
247
|
+
type: "boolean",
|
|
248
|
+
description: "Reverse the slider, so that the starting point is at the right end",
|
|
249
|
+
defaultValueHint: false,
|
|
250
|
+
advanced: true
|
|
251
|
+
},
|
|
252
|
+
step: {
|
|
253
|
+
type: "number",
|
|
254
|
+
description: "Granularity of the slider's movement",
|
|
255
|
+
defaultValueHint: 1,
|
|
256
|
+
min: 0
|
|
257
|
+
},
|
|
258
|
+
vertical: {
|
|
259
|
+
type: "boolean",
|
|
260
|
+
description: "Slide vertically",
|
|
261
|
+
defaultValueHint: false,
|
|
262
|
+
advanced: true,
|
|
263
|
+
helpText: "Please increase the slider height to make the vertical slider visible"
|
|
264
|
+
},
|
|
265
|
+
tooltipVisible: {
|
|
266
|
+
type: "choice",
|
|
267
|
+
displayName: "Show tooltip",
|
|
268
|
+
options: [
|
|
269
|
+
{
|
|
270
|
+
value: true,
|
|
271
|
+
label: "Always"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
value: false,
|
|
275
|
+
label: "Never"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
value: "unset",
|
|
279
|
+
label: "Only on drag/hover"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
defaultValueHint: "unset",
|
|
283
|
+
defaultValue: "unset",
|
|
284
|
+
advanced: true
|
|
285
|
+
},
|
|
286
|
+
tooltipPlacement: {
|
|
287
|
+
type: "choice",
|
|
288
|
+
options: [
|
|
289
|
+
"topLeft",
|
|
290
|
+
"top",
|
|
291
|
+
"topRight",
|
|
292
|
+
"leftTop",
|
|
293
|
+
"left",
|
|
294
|
+
"leftBottom",
|
|
295
|
+
"rightTop",
|
|
296
|
+
"right",
|
|
297
|
+
"rightBottom",
|
|
298
|
+
"bottomLeft",
|
|
299
|
+
"bottom",
|
|
300
|
+
"bottomRight"
|
|
301
|
+
].map((item) => ({
|
|
302
|
+
value: item,
|
|
303
|
+
label: kebabCase__default.default(item)
|
|
304
|
+
})),
|
|
305
|
+
description: "Default placement of tooltip",
|
|
306
|
+
defaultValueHint: "top",
|
|
307
|
+
advanced: true
|
|
308
|
+
},
|
|
309
|
+
tooltipPrefix: {
|
|
310
|
+
type: "string",
|
|
311
|
+
description: "Add a prefix to the slider value inside tooltip",
|
|
312
|
+
advanced: true
|
|
313
|
+
},
|
|
314
|
+
tooltipSuffix: {
|
|
315
|
+
type: "string",
|
|
316
|
+
description: "Add a suffix to the slider value inside tooltip",
|
|
317
|
+
advanced: true
|
|
318
|
+
},
|
|
319
|
+
sliderScopeClassName: {
|
|
320
|
+
type: "styleScopeClass",
|
|
321
|
+
scopeName: "slider"
|
|
322
|
+
},
|
|
323
|
+
railClassName: {
|
|
324
|
+
type: "class",
|
|
325
|
+
displayName: "Rail",
|
|
326
|
+
description: "The path on which the thumb moves",
|
|
327
|
+
selectors: [
|
|
328
|
+
{
|
|
329
|
+
selector: ":slider.ant-slider .ant-slider-rail",
|
|
330
|
+
label: "Base"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
trackClassName: {
|
|
335
|
+
type: "class",
|
|
336
|
+
displayName: "Track",
|
|
337
|
+
description: "The inclusive part of the slider rail",
|
|
338
|
+
selectors: [
|
|
339
|
+
{
|
|
340
|
+
selector: ":slider.ant-slider .ant-slider-track",
|
|
341
|
+
label: "Base"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
handleClassName: {
|
|
346
|
+
type: "class",
|
|
347
|
+
displayName: "Handle",
|
|
348
|
+
description: "Thumb of the slider that moves on drag",
|
|
349
|
+
selectors: [
|
|
350
|
+
{
|
|
351
|
+
selector: ":slider.ant-slider .ant-slider-handle::after",
|
|
352
|
+
label: "Base"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
dotClassName: {
|
|
357
|
+
type: "class",
|
|
358
|
+
displayName: "Step dots",
|
|
359
|
+
description: "The dots that represent steps on the slider rail",
|
|
360
|
+
selectors: [
|
|
361
|
+
{
|
|
362
|
+
selector: ":slider.ant-slider .ant-slider-dot",
|
|
363
|
+
label: "Base"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
activeDotClassName: {
|
|
368
|
+
type: "class",
|
|
369
|
+
displayName: "Active dots",
|
|
370
|
+
description: "The dots within the inclusive part of the slider rail",
|
|
371
|
+
selectors: [
|
|
372
|
+
{
|
|
373
|
+
selector: ":slider.ant-slider .ant-slider-dot.ant-slider-dot-active",
|
|
374
|
+
label: "Base"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
tooltipClassName: {
|
|
379
|
+
type: "class",
|
|
380
|
+
displayName: "Tooltip",
|
|
381
|
+
description: "The tooltip that shows the value of the slider",
|
|
382
|
+
selectors: [
|
|
383
|
+
{
|
|
384
|
+
selector: ":slider.ant-slider .ant-slider-tooltip",
|
|
385
|
+
label: "Base"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
const rangeSliderHelpers = {
|
|
391
|
+
states: {
|
|
392
|
+
min: {
|
|
393
|
+
onChangeArgsToValue: (value) => value[0]
|
|
394
|
+
},
|
|
395
|
+
max: {
|
|
396
|
+
onChangeArgsToValue: (value) => value[1]
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
function registerSlider(loader) {
|
|
401
|
+
utils.registerComponentHelper(loader, AntdSingleSlider, {
|
|
402
|
+
name: sliderComponentName,
|
|
403
|
+
displayName: "Slider",
|
|
404
|
+
defaultStyles: {
|
|
405
|
+
width: "300px"
|
|
406
|
+
},
|
|
407
|
+
props: __spreadValues({
|
|
408
|
+
value: {
|
|
409
|
+
type: "number",
|
|
410
|
+
editOnly: true,
|
|
411
|
+
uncontrolledProp: "defaultValue",
|
|
412
|
+
description: "The default value of the slider"
|
|
413
|
+
},
|
|
414
|
+
onChange: {
|
|
415
|
+
type: "eventHandler",
|
|
416
|
+
advanced: true,
|
|
417
|
+
argTypes: [{ name: "value", type: "number" }]
|
|
418
|
+
},
|
|
419
|
+
onAfterChange: {
|
|
420
|
+
type: "eventHandler",
|
|
421
|
+
advanced: true,
|
|
422
|
+
argTypes: [{ name: "value", type: "number" }]
|
|
423
|
+
}
|
|
424
|
+
}, commonProps),
|
|
425
|
+
states: {
|
|
426
|
+
value: {
|
|
427
|
+
type: "writable",
|
|
428
|
+
valueProp: "value",
|
|
429
|
+
onChangeProp: "onChange",
|
|
430
|
+
variableType: "text"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
importPath: "@plasmicpkgs/antd5/skinny/registerSlider",
|
|
434
|
+
importName: "AntdSingleSlider"
|
|
435
|
+
});
|
|
436
|
+
utils.registerComponentHelper(loader, AntdRangeSlider, {
|
|
437
|
+
name: rangeSliderComponentName,
|
|
438
|
+
displayName: "Range Slider",
|
|
439
|
+
defaultStyles: {
|
|
440
|
+
width: "300px"
|
|
441
|
+
},
|
|
442
|
+
props: __spreadValues({
|
|
443
|
+
draggableTrack: {
|
|
444
|
+
type: "boolean",
|
|
445
|
+
defaultValueHint: false,
|
|
446
|
+
description: "Whether range track can be dragged"
|
|
447
|
+
},
|
|
448
|
+
valueMin: {
|
|
449
|
+
type: "number",
|
|
450
|
+
editOnly: true,
|
|
451
|
+
uncontrolledProp: "defaultValueMin",
|
|
452
|
+
description: "The default minimum value of the range slider"
|
|
453
|
+
},
|
|
454
|
+
valueMax: {
|
|
455
|
+
type: "number",
|
|
456
|
+
editOnly: true,
|
|
457
|
+
uncontrolledProp: "defaultValueMax",
|
|
458
|
+
description: "The default maximum value of the range slider"
|
|
459
|
+
},
|
|
460
|
+
onChange: {
|
|
461
|
+
type: "eventHandler",
|
|
462
|
+
advanced: true,
|
|
463
|
+
argTypes: [{ name: "value", type: "object" }]
|
|
464
|
+
},
|
|
465
|
+
onAfterChange: {
|
|
466
|
+
type: "eventHandler",
|
|
467
|
+
advanced: true,
|
|
468
|
+
argTypes: [{ name: "value", type: "object" }]
|
|
469
|
+
}
|
|
470
|
+
}, commonProps),
|
|
471
|
+
states: {
|
|
472
|
+
min: __spreadValues({
|
|
473
|
+
type: "writable",
|
|
474
|
+
valueProp: "valueMin",
|
|
475
|
+
onChangeProp: "onChange",
|
|
476
|
+
variableType: "number"
|
|
477
|
+
}, rangeSliderHelpers.states.min),
|
|
478
|
+
max: __spreadValues({
|
|
479
|
+
type: "writable",
|
|
480
|
+
valueProp: "valueMax",
|
|
481
|
+
onChangeProp: "onChange",
|
|
482
|
+
variableType: "number"
|
|
483
|
+
}, rangeSliderHelpers.states.max)
|
|
484
|
+
},
|
|
485
|
+
componentHelpers: {
|
|
486
|
+
helpers: rangeSliderHelpers,
|
|
487
|
+
importName: "rangeSliderHelpers",
|
|
488
|
+
importPath: "@plasmicpkgs/antd5/skinny/registerSlider"
|
|
489
|
+
},
|
|
490
|
+
importPath: "@plasmicpkgs/antd5/skinny/registerSlider",
|
|
491
|
+
importName: "AntdRangeSlider"
|
|
492
|
+
});
|
|
493
|
+
utils.registerComponentHelper(loader, AntdSliderMark, {
|
|
494
|
+
name: sliderMarkComponentName,
|
|
495
|
+
displayName: "Slider Mark",
|
|
496
|
+
props: {
|
|
497
|
+
mark: {
|
|
498
|
+
type: "number",
|
|
499
|
+
description: "value on the slider"
|
|
500
|
+
},
|
|
501
|
+
children: {
|
|
502
|
+
type: "slot",
|
|
503
|
+
hidePlaceholder: true
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
importPath: "@plasmicpkgs/antd5/skinny/registerSlider",
|
|
507
|
+
importName: "AntdSliderMark",
|
|
508
|
+
parentComponentName: sliderComponentName
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
exports.AntdRangeSlider = AntdRangeSlider;
|
|
513
|
+
exports.AntdSingleSlider = AntdSingleSlider;
|
|
514
|
+
exports.AntdSliderMark = AntdSliderMark;
|
|
515
|
+
exports.rangeSliderComponentName = rangeSliderComponentName;
|
|
516
|
+
exports.rangeSliderHelpers = rangeSliderHelpers;
|
|
517
|
+
exports.registerSlider = registerSlider;
|
|
518
|
+
exports.sliderComponentName = sliderComponentName;
|
|
519
|
+
exports.sliderMarkComponentName = sliderMarkComponentName;
|
|
520
|
+
exports.useMarks = useMarks;
|
|
521
|
+
exports.useTooltip = useTooltip;
|
|
522
|
+
//# sourceMappingURL=registerSlider.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerSlider.cjs.js","sources":["../src/registerSlider.tsx"],"sourcesContent":["import { Slider } from \"antd\";\nimport React, { ReactElement, useMemo } from \"react\";\nimport { capitalize, Registerable, registerComponentHelper } from \"./utils\";\nimport kebabCase from \"lodash/kebabCase\";\nimport { PropType } from \"@plasmicapp/host\";\nimport type { SliderTooltipProps } from \"antd/lib/slider\";\nimport type { TooltipPlacement } from \"antd/lib/tooltip\";\n\nexport type StylableMark = {\n mark: number;\n children: React.ReactNode;\n};\n\nexport type SliderTooltip = {\n tooltipPrefix?: string;\n tooltipSuffix?: string;\n tooltipVisible?: boolean | string;\n tooltipPlacement?: TooltipPlacement;\n};\n\nexport type SimpleMark = { value: number; label: string };\n\nexport type AntdSliderBaseProps = Omit<\n React.ComponentProps<typeof Slider>,\n | \"range\"\n | \"tooltipVisible\"\n | \"tooltip\"\n | \"marks\"\n | \"onChange\"\n | \"onAfterChange\"\n | \"value\"\n | \"defaultValue\"\n | \"trackStyle\"\n | \"railStyle\"\n | \"handleStyle\"\n> &\n SliderTooltip & {\n stylableMarks?: ReactElement;\n marks?: SimpleMark[];\n sliderScopeClassName?: string;\n };\n\nexport interface AntdSingleSliderProps extends AntdSliderBaseProps {\n value?: number;\n defaultValue?: number;\n onChange: (value?: number) => void;\n onAfterChange: (value?: number) => void;\n}\n\nexport interface AntdRangeSliderProps extends AntdSliderBaseProps {\n draggableTrack?: boolean;\n valueMin?: number;\n valueMax?: number;\n defaultValueMin?: number;\n defaultValueMax?: number;\n onChange: (value?: [number, number]) => void;\n onAfterChange: (value?: [number, number]) => void;\n}\n\nexport function useMarks({\n simpleMarks,\n stylableMarks,\n}: {\n simpleMarks?: SimpleMark[];\n stylableMarks?: ReactElement;\n}): Record<number, React.ReactNode | { label: string }> {\n const marks: Record<number, React.ReactNode | { label: string }> =\n useMemo(() => {\n const stylableMarksList =\n (stylableMarks?.type as any)?.name == AntdSliderMark.name\n ? [stylableMarks]\n : stylableMarks?.props.children;\n const res: Record<number, React.ReactNode | { label: string }> = {};\n\n stylableMarksList\n ?.filter(\n (c: any) =>\n React.isValidElement(c) &&\n (c.type as any)?.name === AntdSliderMark.name\n )\n .forEach((c: ReactElement<StylableMark>) => {\n res[c.props.mark] = c.props.children;\n });\n\n simpleMarks?.forEach((mark) => {\n res[mark.value] = { label: mark.label };\n });\n return res;\n }, [simpleMarks, stylableMarks]);\n\n return marks;\n}\n\nexport function useTooltip({\n tooltipVisible,\n tooltipPlacement,\n tooltipPrefix,\n tooltipSuffix,\n}: SliderTooltip): SliderTooltipProps {\n return {\n open: tooltipVisible === \"unset\" ? undefined : Boolean(tooltipVisible),\n placement: tooltipPlacement,\n getPopupContainer: (node) => node,\n formatter: (value) =>\n `${tooltipPrefix || \"\"}${value}${tooltipSuffix || \"\"}`,\n };\n}\n\nexport function AntdRangeSlider(props: AntdRangeSliderProps) {\n const {\n marks,\n stylableMarks,\n sliderScopeClassName,\n className,\n tooltipVisible,\n tooltipPlacement,\n tooltipPrefix,\n tooltipSuffix,\n draggableTrack,\n valueMin,\n valueMax,\n defaultValueMin,\n defaultValueMax,\n ...rest\n } = props;\n const marksProp = useMarks({ simpleMarks: marks, stylableMarks });\n const tooltipProp = useTooltip({\n tooltipVisible,\n tooltipPlacement,\n tooltipPrefix,\n tooltipSuffix,\n });\n return (\n <Slider\n value={[valueMin || 0, valueMax || 0]}\n defaultValue={[defaultValueMin || 0, defaultValueMax || 0]}\n range={{ draggableTrack }}\n className={`${sliderScopeClassName} ${className}`}\n tooltip={tooltipProp}\n marks={marksProp}\n {...rest}\n />\n );\n}\n\nexport function AntdSingleSlider(props: AntdSingleSliderProps) {\n const {\n marks,\n stylableMarks,\n sliderScopeClassName,\n className,\n tooltipVisible,\n tooltipPlacement,\n tooltipPrefix,\n tooltipSuffix,\n ...rest\n } = props;\n\n const marksProp = useMarks({ simpleMarks: marks, stylableMarks });\n const tooltipProp = useTooltip({\n tooltipVisible,\n tooltipPlacement,\n tooltipPrefix,\n tooltipSuffix,\n });\n return (\n <Slider\n className={`${sliderScopeClassName} ${className}`}\n tooltip={tooltipProp}\n marks={marksProp}\n {...rest}\n />\n );\n}\n\nexport function AntdSliderMark(props: StylableMark) {\n return <>{props.children}</>;\n}\n\nexport const sliderComponentName = \"plasmic-antd5-slider\";\nexport const rangeSliderComponentName = \"plasmic-antd5-range-slider\";\nexport const sliderMarkComponentName = \"plasmic-antd5-slider-mark\";\n\nconst commonProps: Record<string, PropType<any>> = {\n autoFocus: {\n type: \"boolean\",\n description: \"Focus when component is rendered\",\n defaultValueHint: false,\n advanced: true,\n },\n disabled: {\n type: \"boolean\",\n description: \"If true, the slider thumb will not be draggable\",\n defaultValueHint: false,\n },\n keyboard: {\n type: \"boolean\",\n description: \"Support using keyboard to move handlers\",\n defaultValueHint: true,\n advanced: true,\n },\n dots: {\n type: \"boolean\",\n displayName: \"Show dots\",\n description: \"Show dot at every step on the slider\",\n defaultValueHint: false,\n advanced: true,\n },\n marks: {\n type: \"array\",\n description: \"Specific markers or snap points on the slider\",\n itemType: {\n nameFunc: (value) => `${value.value} → ${value.label}`,\n type: \"object\",\n fields: {\n value: {\n type: \"number\",\n description: \"value on the slider\",\n },\n label: \"string\",\n },\n },\n },\n stylableMarks: {\n type: \"slot\",\n displayName: \"Stylable Marks\",\n allowedComponents: [sliderMarkComponentName],\n defaultValue: [\n {\n type: \"component\",\n name: sliderMarkComponentName,\n props: {\n mark: 50,\n children: {\n type: \"text\",\n value: \"Stylable Mark\",\n },\n },\n },\n ],\n },\n included: {\n type: \"boolean\",\n description: \"Fill the slider till the selected value\",\n defaultValueHint: true,\n advanced: true,\n },\n min: {\n type: \"number\",\n description: \"The minimum value the slider can slide to\",\n defaultValueHint: 0,\n displayName: \"Slider start\",\n },\n max: {\n type: \"number\",\n description: \"The maximum value the slider can slide to\",\n defaultValueHint: 100,\n displayName: \"Slider end\",\n },\n reverse: {\n type: \"boolean\",\n description:\n \"Reverse the slider, so that the starting point is at the right end\",\n defaultValueHint: false,\n advanced: true,\n },\n step: {\n type: \"number\",\n description: \"Granularity of the slider's movement\",\n defaultValueHint: 1,\n min: 0,\n },\n vertical: {\n type: \"boolean\",\n description: \"Slide vertically\",\n defaultValueHint: false,\n advanced: true,\n helpText:\n \"Please increase the slider height to make the vertical slider visible\",\n },\n tooltipVisible: {\n type: \"choice\",\n displayName: \"Show tooltip\",\n options: [\n {\n value: true,\n label: \"Always\",\n },\n {\n value: false,\n label: \"Never\",\n },\n {\n value: \"unset\",\n label: \"Only on drag/hover\",\n },\n ],\n defaultValueHint: \"unset\",\n defaultValue: \"unset\",\n advanced: true,\n },\n tooltipPlacement: {\n type: \"choice\",\n options: [\n \"topLeft\",\n \"top\",\n \"topRight\",\n \"leftTop\",\n \"left\",\n \"leftBottom\",\n \"rightTop\",\n \"right\",\n \"rightBottom\",\n \"bottomLeft\",\n \"bottom\",\n \"bottomRight\",\n ].map((item) => ({\n value: item,\n label: kebabCase(item),\n })),\n description: \"Default placement of tooltip\",\n defaultValueHint: \"top\",\n advanced: true,\n },\n tooltipPrefix: {\n type: \"string\",\n description: \"Add a prefix to the slider value inside tooltip\",\n advanced: true,\n },\n tooltipSuffix: {\n type: \"string\",\n description: \"Add a suffix to the slider value inside tooltip\",\n advanced: true,\n },\n sliderScopeClassName: {\n type: \"styleScopeClass\",\n scopeName: \"slider\",\n } as any,\n railClassName: {\n type: \"class\",\n displayName: \"Rail\",\n description: \"The path on which the thumb moves\",\n selectors: [\n {\n selector: \":slider.ant-slider .ant-slider-rail\",\n label: \"Base\",\n },\n ],\n },\n trackClassName: {\n type: \"class\",\n displayName: \"Track\",\n description: \"The inclusive part of the slider rail\",\n selectors: [\n {\n selector: \":slider.ant-slider .ant-slider-track\",\n label: \"Base\",\n },\n ],\n },\n handleClassName: {\n type: \"class\",\n displayName: \"Handle\",\n description: \"Thumb of the slider that moves on drag\",\n selectors: [\n {\n selector: \":slider.ant-slider .ant-slider-handle::after\",\n label: \"Base\",\n },\n ],\n },\n dotClassName: {\n type: \"class\",\n displayName: \"Step dots\",\n description: \"The dots that represent steps on the slider rail\",\n selectors: [\n {\n selector: \":slider.ant-slider .ant-slider-dot\",\n label: \"Base\",\n },\n ],\n },\n activeDotClassName: {\n type: \"class\",\n displayName: \"Active dots\",\n description: \"The dots within the inclusive part of the slider rail\",\n selectors: [\n {\n selector: \":slider.ant-slider .ant-slider-dot.ant-slider-dot-active\",\n label: \"Base\",\n },\n ],\n },\n tooltipClassName: {\n type: \"class\",\n displayName: \"Tooltip\",\n description: \"The tooltip that shows the value of the slider\",\n selectors: [\n {\n selector: \":slider.ant-slider .ant-slider-tooltip\",\n label: \"Base\",\n },\n ],\n },\n};\n\nexport const rangeSliderHelpers = {\n states: {\n min: {\n onChangeArgsToValue: (value: number[]) => value[0],\n },\n max: {\n onChangeArgsToValue: (value: number[]) => value[1],\n },\n },\n};\n\nexport function registerSlider(loader?: Registerable) {\n registerComponentHelper(loader, AntdSingleSlider, {\n name: sliderComponentName,\n displayName: \"Slider\",\n defaultStyles: {\n width: \"300px\",\n },\n props: {\n value: {\n type: \"number\",\n editOnly: true,\n uncontrolledProp: \"defaultValue\",\n description: \"The default value of the slider\",\n },\n onChange: {\n type: \"eventHandler\",\n advanced: true,\n argTypes: [{ name: \"value\", type: \"number\" }],\n },\n onAfterChange: {\n type: \"eventHandler\",\n advanced: true,\n argTypes: [{ name: \"value\", type: \"number\" }],\n },\n ...commonProps,\n },\n states: {\n value: {\n type: \"writable\",\n valueProp: \"value\",\n onChangeProp: \"onChange\",\n variableType: \"text\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSlider\",\n importName: \"AntdSingleSlider\",\n });\n registerComponentHelper(loader, AntdRangeSlider, {\n name: rangeSliderComponentName,\n displayName: \"Range Slider\",\n defaultStyles: {\n width: \"300px\",\n },\n props: {\n draggableTrack: {\n type: \"boolean\",\n defaultValueHint: false,\n description: \"Whether range track can be dragged\",\n },\n valueMin: {\n type: \"number\",\n editOnly: true,\n uncontrolledProp: \"defaultValueMin\",\n description: \"The default minimum value of the range slider\",\n },\n valueMax: {\n type: \"number\",\n editOnly: true,\n uncontrolledProp: \"defaultValueMax\",\n description: \"The default maximum value of the range slider\",\n },\n onChange: {\n type: \"eventHandler\",\n advanced: true,\n argTypes: [{ name: \"value\", type: \"object\" }],\n },\n onAfterChange: {\n type: \"eventHandler\",\n advanced: true,\n argTypes: [{ name: \"value\", type: \"object\" }],\n },\n ...commonProps,\n },\n states: {\n min: {\n type: \"writable\",\n valueProp: \"valueMin\",\n onChangeProp: \"onChange\",\n variableType: \"number\",\n ...rangeSliderHelpers.states.min,\n },\n max: {\n type: \"writable\",\n valueProp: \"valueMax\",\n onChangeProp: \"onChange\",\n variableType: \"number\",\n ...rangeSliderHelpers.states.max,\n },\n },\n componentHelpers: {\n helpers: rangeSliderHelpers,\n importName: \"rangeSliderHelpers\",\n importPath: \"@plasmicpkgs/antd5/skinny/registerSlider\",\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSlider\",\n importName: \"AntdRangeSlider\",\n });\n registerComponentHelper(loader, AntdSliderMark, {\n name: sliderMarkComponentName,\n displayName: \"Slider Mark\",\n props: {\n mark: {\n type: \"number\",\n description: \"value on the slider\",\n },\n children: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSlider\",\n importName: \"AntdSliderMark\",\n parentComponentName: sliderComponentName,\n });\n}\n"],"names":["useMemo","_a","React","Slider","kebabCase","registerComponentHelper"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DO,SAAS,QAAS,CAAA;AAAA,EACvB,WAAA;AAAA,EACA,aAAA;AACF,CAGwD,EAAA;AACtD,EAAM,MAAA,KAAA,GACJA,cAAQ,MAAM;AAnElB,IAAA,IAAA,EAAA,CAAA;AAoEM,IAAM,MAAA,iBAAA,GAAA,CAAA,CACH,EAAe,GAAA,aAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,aAAA,CAAA,IAAA,KAAf,IAA6B,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,KAAQ,cAAe,CAAA,IAAA,GACjD,CAAC,aAAa,CACd,GAAA,aAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,aAAA,CAAe,KAAM,CAAA,QAAA,CAAA;AAC3B,IAAA,MAAM,MAA2D,EAAC,CAAA;AAElE,IACI,iBAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,iBAAA,CAAA,MAAA;AAAA,MACA,CAAC,CAAQ,KAAA;AA5EnB,QAAAC,IAAAA,GA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