@plasmicpkgs/react-slick 0.0.1 → 0.0.5
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/index.d.ts +6 -1
- package/dist/react-slick.cjs.development.js +132 -73
- package/dist/react-slick.cjs.development.js.map +1 -1
- package/dist/react-slick.cjs.production.min.js +1 -1
- package/dist/react-slick.cjs.production.min.js.map +1 -1
- package/dist/react-slick.esm.js +129 -73
- package/dist/react-slick.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import registerComponent, { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import { Settings } from "react-slick";
|
|
3
|
+
export declare const sliderMeta: ComponentMeta<Settings>;
|
|
4
|
+
export declare function registerSlider(loader?: {
|
|
5
|
+
registerComponent: typeof registerComponent;
|
|
6
|
+
}, customSliderMeta?: ComponentMeta<Settings>): void;
|
|
@@ -1,199 +1,248 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
6
|
|
|
5
7
|
var registerComponent = _interopDefault(require('@plasmicapp/host/registerComponent'));
|
|
6
8
|
var Slider = _interopDefault(require('react-slick'));
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
name: "
|
|
10
|
+
var sliderMeta = {
|
|
11
|
+
name: "hostless-slider",
|
|
12
|
+
displayName: "Slider",
|
|
13
|
+
importName: "Slider",
|
|
10
14
|
importPath: "react-slick",
|
|
11
15
|
props: {
|
|
12
16
|
children: {
|
|
13
17
|
type: "slot",
|
|
14
18
|
defaultValue: [{
|
|
15
19
|
type: "img",
|
|
16
|
-
src: "https://via.placeholder.com/
|
|
20
|
+
src: "https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1",
|
|
17
21
|
style: {
|
|
18
22
|
maxWidth: "100%"
|
|
19
23
|
}
|
|
20
24
|
}, {
|
|
21
25
|
type: "img",
|
|
22
|
-
src: "https://via.placeholder.com/
|
|
26
|
+
src: "https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",
|
|
23
27
|
style: {
|
|
24
28
|
maxWidth: "100%"
|
|
25
29
|
}
|
|
26
30
|
}, {
|
|
27
31
|
type: "img",
|
|
28
|
-
src: "https://via.placeholder.com/
|
|
32
|
+
src: "https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",
|
|
29
33
|
style: {
|
|
30
34
|
maxWidth: "100%"
|
|
31
35
|
}
|
|
32
36
|
}]
|
|
33
37
|
},
|
|
34
38
|
accessibility: {
|
|
39
|
+
displayName: "Accessibility",
|
|
35
40
|
type: "boolean",
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
description: "Enables tabbing and arrow key navigation",
|
|
42
|
+
defaultValueHint: true
|
|
38
43
|
},
|
|
39
44
|
adaptiveHeight: {
|
|
45
|
+
displayName: "Adaptive Height",
|
|
40
46
|
type: "boolean",
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
description: "Adjust the slide's height automatically",
|
|
48
|
+
defaultValueHint: false
|
|
43
49
|
},
|
|
44
50
|
arrows: {
|
|
51
|
+
displayName: "Arrows",
|
|
45
52
|
type: "boolean",
|
|
46
|
-
|
|
47
|
-
|
|
53
|
+
description: "Show next/prev arrows",
|
|
54
|
+
defaultValueHint: true
|
|
48
55
|
},
|
|
49
56
|
autoplay: {
|
|
57
|
+
displayName: "Auto Play",
|
|
50
58
|
type: "boolean",
|
|
51
|
-
|
|
59
|
+
description: "Automatically start scrolling",
|
|
60
|
+
defaultValueHint: false
|
|
52
61
|
},
|
|
53
62
|
autoplaySpeed: {
|
|
63
|
+
displayName: "Auto Play Speed",
|
|
54
64
|
type: "number",
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
description: "Delay between each auto scroll, in milliseconds",
|
|
66
|
+
defaultValueHint: 3000,
|
|
67
|
+
hidden: function hidden(props) {
|
|
68
|
+
return !props.autoplay;
|
|
69
|
+
}
|
|
57
70
|
},
|
|
58
71
|
centerMode: {
|
|
72
|
+
displayName: "Center Mode",
|
|
59
73
|
type: "boolean",
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
description: "Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts",
|
|
75
|
+
defaultValueHint: false
|
|
62
76
|
},
|
|
63
77
|
centerPadding: {
|
|
78
|
+
displayName: "Center Padding",
|
|
64
79
|
type: "string",
|
|
65
|
-
|
|
66
|
-
|
|
80
|
+
description: "Side padding when in center mode (px or %)",
|
|
81
|
+
defaultValueHint: "50px",
|
|
82
|
+
hidden: function hidden(props) {
|
|
83
|
+
return !props.centerMode;
|
|
84
|
+
}
|
|
67
85
|
},
|
|
68
86
|
dots: {
|
|
87
|
+
displayName: "Dots",
|
|
69
88
|
type: "boolean",
|
|
70
|
-
|
|
71
|
-
|
|
89
|
+
description: "Show dots for each slide",
|
|
90
|
+
defaultValueHint: false
|
|
72
91
|
},
|
|
73
92
|
draggable: {
|
|
93
|
+
displayName: "Draggable",
|
|
74
94
|
type: "boolean",
|
|
75
|
-
|
|
76
|
-
|
|
95
|
+
description: "Enables mouse dragging on desktop",
|
|
96
|
+
defaultValueHint: true
|
|
77
97
|
},
|
|
78
98
|
easing: {
|
|
99
|
+
displayName: "Easing",
|
|
79
100
|
type: "string",
|
|
80
|
-
|
|
81
|
-
|
|
101
|
+
description: "Easing method for transition",
|
|
102
|
+
defaultValueHint: "linear"
|
|
82
103
|
},
|
|
83
104
|
fade: {
|
|
105
|
+
displayName: "Fade",
|
|
84
106
|
type: "boolean",
|
|
85
|
-
|
|
86
|
-
|
|
107
|
+
description: "Cross-fade between slides",
|
|
108
|
+
defaultValueHint: false
|
|
87
109
|
},
|
|
88
110
|
focusOnSelect: {
|
|
111
|
+
displayName: "Focus On Select",
|
|
89
112
|
type: "boolean",
|
|
90
|
-
|
|
91
|
-
|
|
113
|
+
description: "Go to slide on click",
|
|
114
|
+
defaultValueHint: false
|
|
92
115
|
},
|
|
93
116
|
infinite: {
|
|
117
|
+
displayName: "Infinite",
|
|
94
118
|
type: "boolean",
|
|
95
|
-
|
|
96
|
-
|
|
119
|
+
description: "Infinitely wrap around contents",
|
|
120
|
+
defaultValueHint: true
|
|
97
121
|
},
|
|
98
122
|
initialSlide: {
|
|
123
|
+
displayName: "Initial Slide",
|
|
99
124
|
type: "number",
|
|
100
|
-
|
|
101
|
-
|
|
125
|
+
description: "Index of initial slide",
|
|
126
|
+
defaultValueHint: 0
|
|
102
127
|
},
|
|
103
128
|
lazyLoad: {
|
|
129
|
+
displayName: "Lazy Load",
|
|
104
130
|
type: "choice",
|
|
105
131
|
options: ["ondemand", "progressive"],
|
|
106
132
|
description: "Load images or render components on demand or progressively"
|
|
107
133
|
},
|
|
108
134
|
pauseOnDotsHover: {
|
|
135
|
+
displayName: "Pause On Dots Hover",
|
|
109
136
|
type: "boolean",
|
|
110
|
-
|
|
111
|
-
|
|
137
|
+
description: "Prevents autoplay while hovering on dots",
|
|
138
|
+
defaultValueHint: false
|
|
112
139
|
},
|
|
113
140
|
pauseOnFocus: {
|
|
141
|
+
displayName: "Pause On Focus",
|
|
114
142
|
type: "boolean",
|
|
115
|
-
|
|
116
|
-
|
|
143
|
+
description: "Prevents autoplay while focused on slides",
|
|
144
|
+
defaultValueHint: false
|
|
117
145
|
},
|
|
118
146
|
pauseOnHover: {
|
|
147
|
+
displayName: "Pause On Hover",
|
|
119
148
|
type: "boolean",
|
|
120
|
-
|
|
121
|
-
|
|
149
|
+
description: "Prevents autoplay while hovering on track",
|
|
150
|
+
defaultValueHint: true
|
|
122
151
|
},
|
|
123
152
|
rows: {
|
|
153
|
+
displayName: "Rows",
|
|
124
154
|
type: "number",
|
|
125
|
-
|
|
126
|
-
|
|
155
|
+
description: "Number of rows per slide (enables grid mode)",
|
|
156
|
+
defaultValueHint: 1
|
|
127
157
|
},
|
|
128
158
|
rtl: {
|
|
159
|
+
displayName: "Reverse",
|
|
129
160
|
type: "boolean",
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
slide:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
161
|
+
description: "Reverses the slide order",
|
|
162
|
+
defaultValueHint: false
|
|
163
|
+
},
|
|
164
|
+
// Looks like the `slide` prop is not being used to set the container tag:
|
|
165
|
+
// https://github.com/akiran/react-slick/issues/1318
|
|
166
|
+
// https://github.com/akiran/react-slick/pull/1885
|
|
167
|
+
// https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul
|
|
168
|
+
//
|
|
169
|
+
// slide: {
|
|
170
|
+
// displayName: "Slide Tag",
|
|
171
|
+
// type: "string",
|
|
172
|
+
// description: 'Slide container element type',
|
|
173
|
+
// defaultValueHint: "div",
|
|
174
|
+
// },
|
|
138
175
|
slidesPerRow: {
|
|
176
|
+
displayName: "Slides Per Row",
|
|
139
177
|
type: "number",
|
|
140
|
-
|
|
141
|
-
|
|
178
|
+
description: "Number of slides to display in grid mode, this is useful with rows option",
|
|
179
|
+
defaultValueHint: 1
|
|
142
180
|
},
|
|
143
181
|
slidesToScroll: {
|
|
182
|
+
displayName: "Slides To Scroll",
|
|
144
183
|
type: "number",
|
|
145
|
-
|
|
146
|
-
|
|
184
|
+
description: "Number of slides to scroll at once",
|
|
185
|
+
defaultValueHint: 1
|
|
147
186
|
},
|
|
148
187
|
slidesToShow: {
|
|
188
|
+
displayName: "Slides To Show",
|
|
149
189
|
type: "number",
|
|
150
|
-
|
|
151
|
-
|
|
190
|
+
description: "Number of slides to show in one frame",
|
|
191
|
+
defaultValueHint: 1
|
|
152
192
|
},
|
|
153
193
|
speed: {
|
|
194
|
+
displayName: "Speed",
|
|
154
195
|
type: "number",
|
|
155
|
-
|
|
156
|
-
|
|
196
|
+
description: "Transition speed in milliseconds",
|
|
197
|
+
defaultValueHint: 500
|
|
157
198
|
},
|
|
158
199
|
swipe: {
|
|
200
|
+
displayName: "Swipe",
|
|
159
201
|
type: "boolean",
|
|
160
|
-
|
|
161
|
-
|
|
202
|
+
description: "Enable swiping to change slides",
|
|
203
|
+
defaultValueHint: true
|
|
162
204
|
},
|
|
163
205
|
swipeToSlide: {
|
|
206
|
+
displayName: "Swipe To Slide",
|
|
164
207
|
type: "boolean",
|
|
165
|
-
|
|
166
|
-
|
|
208
|
+
description: "Enable drag/swipe irrespective of 'slidesToScroll'",
|
|
209
|
+
defaultValueHint: false
|
|
167
210
|
},
|
|
168
211
|
touchMove: {
|
|
212
|
+
displayName: "Touch Move",
|
|
169
213
|
type: "boolean",
|
|
170
|
-
|
|
171
|
-
|
|
214
|
+
description: "Enable slide moving on touch",
|
|
215
|
+
defaultValueHint: true
|
|
172
216
|
},
|
|
173
217
|
touchThreshold: {
|
|
218
|
+
displayName: "Touch Threshold",
|
|
174
219
|
type: "number",
|
|
175
|
-
|
|
176
|
-
|
|
220
|
+
description: "Swipe distance threshold in pixels",
|
|
221
|
+
defaultValueHint: 5
|
|
177
222
|
},
|
|
178
223
|
useCSS: {
|
|
224
|
+
displayName: "Use CSS",
|
|
179
225
|
type: "boolean",
|
|
180
|
-
|
|
181
|
-
|
|
226
|
+
description: "Enable/Disable CSS Transitions",
|
|
227
|
+
defaultValueHint: true
|
|
182
228
|
},
|
|
183
229
|
useTransform: {
|
|
230
|
+
displayName: "Use Transform",
|
|
184
231
|
type: "boolean",
|
|
185
|
-
|
|
186
|
-
|
|
232
|
+
description: "Enable/Disable CSS Transforms",
|
|
233
|
+
defaultValueHint: true
|
|
187
234
|
},
|
|
188
235
|
variableWidth: {
|
|
236
|
+
displayName: "Variable Width",
|
|
189
237
|
type: "boolean",
|
|
190
|
-
|
|
191
|
-
|
|
238
|
+
description: "Variable width slides",
|
|
239
|
+
defaultValueHint: false
|
|
192
240
|
},
|
|
193
241
|
vertical: {
|
|
242
|
+
displayName: "Vertical",
|
|
194
243
|
type: "boolean",
|
|
195
|
-
|
|
196
|
-
|
|
244
|
+
description: "Vertical slide mode",
|
|
245
|
+
defaultValueHint: false
|
|
197
246
|
}
|
|
198
247
|
},
|
|
199
248
|
isDefaultExport: true,
|
|
@@ -201,5 +250,15 @@ registerComponent(Slider, {
|
|
|
201
250
|
width: "stretch",
|
|
202
251
|
maxWidth: "100%"
|
|
203
252
|
}
|
|
204
|
-
}
|
|
253
|
+
};
|
|
254
|
+
function registerSlider(loader, customSliderMeta) {
|
|
255
|
+
if (loader) {
|
|
256
|
+
loader.registerComponent(Slider, customSliderMeta != null ? customSliderMeta : sliderMeta);
|
|
257
|
+
} else {
|
|
258
|
+
registerComponent(Slider, customSliderMeta != null ? customSliderMeta : sliderMeta);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
exports.registerSlider = registerSlider;
|
|
263
|
+
exports.sliderMeta = sliderMeta;
|
|
205
264
|
//# sourceMappingURL=react-slick.cjs.development.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-slick.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent from \"@plasmicapp/host/registerComponent\";\nimport Slider from \"react-slick\";\n\n// TODO Do not actually provide defaultValues everywhere.\n\nregisterComponent(Slider, {\n name: \"Slider\",\n importPath: \"react-slick\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enables tabbing and arrow key navigation\",\n },\n adaptiveHeight: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Adjust the slide's height automatically\",\n },\n arrows: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Show next/prev arrows\",\n },\n autoplay: {\n type: \"boolean\",\n defaultValue: false,\n },\n autoplaySpeed: {\n type: \"number\",\n defaultValue: 3000,\n description: \"Delay between each auto scroll (in milliseconds)\",\n },\n centerMode: {\n type: \"boolean\",\n defaultValue: false,\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n },\n centerPadding: {\n type: \"string\",\n defaultValue: \"50px\",\n description: \"Side padding when in center mode (px or %)\",\n },\n dots: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Show dots for each slide\",\n },\n draggable: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enables mouse dragging on desktop\",\n },\n easing: {\n type: \"string\",\n defaultValue: \"linear\",\n description: \"Easing method for transition\",\n },\n fade: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Cross-fade between slides\",\n },\n focusOnSelect: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Go to slide on click\",\n },\n infinite: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Infinitely wrap around contents\",\n },\n initialSlide: {\n type: \"number\",\n defaultValue: 0,\n description: \"Index of initial slide\",\n },\n lazyLoad: {\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Prevents autoplay while hovering on dots\",\n },\n pauseOnFocus: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Prevents autoplay while focused on slides\",\n },\n pauseOnHover: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Prevents autoplay while hovering on track\",\n },\n rows: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of rows per slide (enables grid mode)\",\n },\n rtl: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Reverses the slide order\",\n },\n slide: {\n type: \"string\",\n defaultValue: \"div\",\n description: \"Slide container element type\",\n },\n slidesPerRow: {\n type: \"number\",\n defaultValue: 1,\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n },\n slidesToScroll: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of slides to scroll at once\",\n },\n slidesToShow: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of slides to show in one frame\",\n },\n speed: {\n type: \"number\",\n defaultValue: 500,\n description: \"Transition speed in milliseconds\",\n },\n swipe: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable swiping to change slides\",\n },\n swipeToSlide: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n },\n touchMove: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable slide moving on touch\",\n },\n touchThreshold: {\n type: \"number\",\n defaultValue: 5,\n description: \"Swipe distance threshold in pixels\",\n },\n useCSS: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable/Disable CSS Transitions\",\n },\n useTransform: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable/Disable CSS Transforms\",\n },\n variableWidth: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Variable width slides\",\n },\n vertical: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Vertical slide mode\",\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n },\n});\n"],"names":["registerComponent","Slider","name","importPath","props","children","type","defaultValue","src","style","maxWidth","accessibility","description","adaptiveHeight","arrows","autoplay","autoplaySpeed","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slide","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width"],"mappings":";;;;;;;AAKAA,iBAAiB,CAACC,MAAD,EAAS;AACxBC,EAAAA,IAAI,EAAE,QADkB;AAExBC,EAAAA,UAAU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MxBC,EAAAA,aAAa,EAAE;AACbC,IAAAA,KAAK,EAAE,SADM;AAEbtC,IAAAA,QAAQ,EAAE;AAFG;AAvMS,CAAT,CAAjB"}
|
|
1
|
+
{"version":3,"file":"react-slick.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Slider, { Settings } from \"react-slick\";\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n },\n};\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(Slider, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(Slider, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["sliderMeta","name","displayName","importName","importPath","props","children","type","defaultValue","src","style","maxWidth","accessibility","description","defaultValueHint","adaptiveHeight","arrows","autoplay","autoplaySpeed","hidden","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width","registerSlider","loader","customSliderMeta","registerComponent","Slider"],"mappings":";;;;;;;;;IAKaA,UAAU,GAA4B;AACjDC,EAAAA,IAAI,EAAE,iBAD2C;AAEjDC,EAAAA,WAAW,EAAE,QAFoC;AAGjDC,EAAAA,UAAU,EAAE,QAHqC;AAIjDC,EAAAA,UAAU,EAAE,aAJqC;AAKjDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,IAAI,EAAE,MADE;AAERC,MAAAA,YAAY,EAAE,CACZ;AACED,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,gEAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAAA,QAAQ,EAAE;AADL;AAHT,OADY,EAQZ;AACEJ,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,gEAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAAA,QAAQ,EAAE;AADL;AAHT,OARY,EAeZ;AACEJ,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,gEAFP;AAGEC,QA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e){return e&&"object"==typeof e&&"default"in e?e.default:e}e(require("@plasmicapp/host/registerComponent"))
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var i=e(require("@plasmicapp/host/registerComponent")),t=e(require("react-slick")),a={name:"hostless-slider",displayName:"Slider",importName:"Slider",importPath:"react-slick",props:{children:{type:"slot",defaultValue:[{type:"img",src:"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1",style:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",style:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",style:{maxWidth:"100%"}}]},accessibility:{displayName:"Accessibility",type:"boolean",description:"Enables tabbing and arrow key navigation",defaultValueHint:!0},adaptiveHeight:{displayName:"Adaptive Height",type:"boolean",description:"Adjust the slide's height automatically",defaultValueHint:!1},arrows:{displayName:"Arrows",type:"boolean",description:"Show next/prev arrows",defaultValueHint:!0},autoplay:{displayName:"Auto Play",type:"boolean",description:"Automatically start scrolling",defaultValueHint:!1},autoplaySpeed:{displayName:"Auto Play Speed",type:"number",description:"Delay between each auto scroll, in milliseconds",defaultValueHint:3e3,hidden:function(e){return!e.autoplay}},centerMode:{displayName:"Center Mode",type:"boolean",description:"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts",defaultValueHint:!1},centerPadding:{displayName:"Center Padding",type:"string",description:"Side padding when in center mode (px or %)",defaultValueHint:"50px",hidden:function(e){return!e.centerMode}},dots:{displayName:"Dots",type:"boolean",description:"Show dots for each slide",defaultValueHint:!1},draggable:{displayName:"Draggable",type:"boolean",description:"Enables mouse dragging on desktop",defaultValueHint:!0},easing:{displayName:"Easing",type:"string",description:"Easing method for transition",defaultValueHint:"linear"},fade:{displayName:"Fade",type:"boolean",description:"Cross-fade between slides",defaultValueHint:!1},focusOnSelect:{displayName:"Focus On Select",type:"boolean",description:"Go to slide on click",defaultValueHint:!1},infinite:{displayName:"Infinite",type:"boolean",description:"Infinitely wrap around contents",defaultValueHint:!0},initialSlide:{displayName:"Initial Slide",type:"number",description:"Index of initial slide",defaultValueHint:0},lazyLoad:{displayName:"Lazy Load",type:"choice",options:["ondemand","progressive"],description:"Load images or render components on demand or progressively"},pauseOnDotsHover:{displayName:"Pause On Dots Hover",type:"boolean",description:"Prevents autoplay while hovering on dots",defaultValueHint:!1},pauseOnFocus:{displayName:"Pause On Focus",type:"boolean",description:"Prevents autoplay while focused on slides",defaultValueHint:!1},pauseOnHover:{displayName:"Pause On Hover",type:"boolean",description:"Prevents autoplay while hovering on track",defaultValueHint:!0},rows:{displayName:"Rows",type:"number",description:"Number of rows per slide (enables grid mode)",defaultValueHint:1},rtl:{displayName:"Reverse",type:"boolean",description:"Reverses the slide order",defaultValueHint:!1},slidesPerRow:{displayName:"Slides Per Row",type:"number",description:"Number of slides to display in grid mode, this is useful with rows option",defaultValueHint:1},slidesToScroll:{displayName:"Slides To Scroll",type:"number",description:"Number of slides to scroll at once",defaultValueHint:1},slidesToShow:{displayName:"Slides To Show",type:"number",description:"Number of slides to show in one frame",defaultValueHint:1},speed:{displayName:"Speed",type:"number",description:"Transition speed in milliseconds",defaultValueHint:500},swipe:{displayName:"Swipe",type:"boolean",description:"Enable swiping to change slides",defaultValueHint:!0},swipeToSlide:{displayName:"Swipe To Slide",type:"boolean",description:"Enable drag/swipe irrespective of 'slidesToScroll'",defaultValueHint:!1},touchMove:{displayName:"Touch Move",type:"boolean",description:"Enable slide moving on touch",defaultValueHint:!0},touchThreshold:{displayName:"Touch Threshold",type:"number",description:"Swipe distance threshold in pixels",defaultValueHint:5},useCSS:{displayName:"Use CSS",type:"boolean",description:"Enable/Disable CSS Transitions",defaultValueHint:!0},useTransform:{displayName:"Use Transform",type:"boolean",description:"Enable/Disable CSS Transforms",defaultValueHint:!0},variableWidth:{displayName:"Variable Width",type:"boolean",description:"Variable width slides",defaultValueHint:!1},vertical:{displayName:"Vertical",type:"boolean",description:"Vertical slide mode",defaultValueHint:!1}},isDefaultExport:!0,defaultStyles:{width:"stretch",maxWidth:"100%"}};exports.registerSlider=function(e,l){e?e.registerComponent(t,null!=l?l:a):i(t,null!=l?l:a)},exports.sliderMeta=a;
|
|
2
2
|
//# sourceMappingURL=react-slick.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-slick.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent from \"@plasmicapp/host/registerComponent\";\nimport Slider from \"react-slick\";\n\n// TODO Do not actually provide defaultValues everywhere.\n\nregisterComponent(Slider, {\n name: \"Slider\",\n importPath: \"react-slick\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enables tabbing and arrow key navigation\",\n },\n adaptiveHeight: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Adjust the slide's height automatically\",\n },\n arrows: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Show next/prev arrows\",\n },\n autoplay: {\n type: \"boolean\",\n defaultValue: false,\n },\n autoplaySpeed: {\n type: \"number\",\n defaultValue: 3000,\n description: \"Delay between each auto scroll (in milliseconds)\",\n },\n centerMode: {\n type: \"boolean\",\n defaultValue: false,\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n },\n centerPadding: {\n type: \"string\",\n defaultValue: \"50px\",\n description: \"Side padding when in center mode (px or %)\",\n },\n dots: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Show dots for each slide\",\n },\n draggable: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enables mouse dragging on desktop\",\n },\n easing: {\n type: \"string\",\n defaultValue: \"linear\",\n description: \"Easing method for transition\",\n },\n fade: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Cross-fade between slides\",\n },\n focusOnSelect: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Go to slide on click\",\n },\n infinite: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Infinitely wrap around contents\",\n },\n initialSlide: {\n type: \"number\",\n defaultValue: 0,\n description: \"Index of initial slide\",\n },\n lazyLoad: {\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Prevents autoplay while hovering on dots\",\n },\n pauseOnFocus: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Prevents autoplay while focused on slides\",\n },\n pauseOnHover: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Prevents autoplay while hovering on track\",\n },\n rows: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of rows per slide (enables grid mode)\",\n },\n rtl: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Reverses the slide order\",\n },\n slide: {\n type: \"string\",\n defaultValue: \"div\",\n description: \"Slide container element type\",\n },\n slidesPerRow: {\n type: \"number\",\n defaultValue: 1,\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n },\n slidesToScroll: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of slides to scroll at once\",\n },\n slidesToShow: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of slides to show in one frame\",\n },\n speed: {\n type: \"number\",\n defaultValue: 500,\n description: \"Transition speed in milliseconds\",\n },\n swipe: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable swiping to change slides\",\n },\n swipeToSlide: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n },\n touchMove: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable slide moving on touch\",\n },\n touchThreshold: {\n type: \"number\",\n defaultValue: 5,\n description: \"Swipe distance threshold in pixels\",\n },\n useCSS: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable/Disable CSS Transitions\",\n },\n useTransform: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable/Disable CSS Transforms\",\n },\n variableWidth: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Variable width slides\",\n },\n vertical: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Vertical slide mode\",\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n },\n});\n"],"names":["registerComponent","name","importPath","props","children","type","defaultValue","src","style","maxWidth","accessibility","description","adaptiveHeight","arrows","autoplay","autoplaySpeed","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slide","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width"],"mappings":"mIAKAA,2BAA0B,CACxBC,KAAM,SACNC,WAAY,cACZC,MAAO,CACLC,SAAU,CACRC,KAAM,OACNC,aAAc,CACZ,CACED,KAAM,MACNE,IAAK,sCACLC,MAAO,CACLC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,sCACLC,MAAO,CACLC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,sCACLC,MAAO,CACLC,SAAU,WAKlBC,cAAe,CACbL,KAAM,UACNC,cAAc,EACdK,YAAa,4CAEfC,eAAgB,CACdP,KAAM,UACNC,cAAc,EACdK,YAAa,2CAEfE,OAAQ,CACNR,KAAM,UACNC,cAAc,EACdK,YAAa,yBAEfG,SAAU,CACRT,KAAM,UACNC,cAAc,GAEhBS,cAAe,CACbV,KAAM,SACNC,aAAc,IACdK,YAAa,o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AgB,CACdnC,KAAM,SACNC,aAAc,EACdK,YAAa,sCAEf8B,OAAQ,CACNpC,KAAM,UACNC,cAAc,EACdK,YAAa,kCAEf+B,aAAc,CACZrC,KAAM,UACNC,cAAc,EACdK,YAAa,iCAEfgC,cAAe,CACbtC,KAAM,UACNC,cAAc,EACdK,YAAa,yBAEfiC,SAAU,CACRvC,KAAM,UACNC,cAAc,EACdK,YAAa,wBAGjBkC,iBAAiB,EACjBC,cAAe,CACbC,MAAO,UACPtC,SAAU"}
|
|
1
|
+
{"version":3,"file":"react-slick.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Slider, { Settings } from \"react-slick\";\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n },\n};\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(Slider, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(Slider, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["sliderMeta","name","displayName","importName","importPath","props","children","type","defaultValue","src","style","maxWidth","accessibility","description","defaultValueHint","adaptiveHeight","arrows","autoplay","autoplaySpeed","hidden","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width","loader","customSliderMeta","registerComponent","Slider"],"mappings":"6NAKaA,EAAsC,CACjDC,KAAM,kBACNC,YAAa,SACbC,WAAY,SACZC,WAAY,cACZC,MAAO,CACLC,SAAU,CACRC,KAAM,OACNC,aAAc,CACZ,CACED,KAAM,MACNE,IAAK,iEACLC,MAAO,CACLC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,iEACLC,MAAO,CACLC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,iEACLC,MAAO,CACLC,SAAU,WAKlBC,cAAe,CACbV,YAAa,gBACbK,KAAM,UACNM,YAAa,2CACbC,kBAAkB,GAEpBC,eAAgB,CACdb,YAAa,kBACbK,KAAM,UACNM,YAAa,0CACbC,kBAAkB,GAEpBE,OAAQ,CACNd,YA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AAK,CACHjC,YAAa,UACbK,KAAM,UACNM,YAAa,2BACbC,kBAAkB,GAapBsB,aAAc,CACZlC,YAAa,iBACbK,KAAM,SACNM,YACE,4EACFC,iBAAkB,GAEpBuB,eAAgB,CACdnC,YAAa,mBACbK,KAAM,SACNM,YAAa,qCACbC,iBAAkB,GAEpBwB,aAAc,CACZpC,YAAa,iBACbK,KAAM,SACNM,YAAa,wCACbC,iBAAkB,GAEpByB,MAAO,CACLrC,YAAa,QACbK,KAAM,SACNM,YAAa,mCACbC,iBAAkB,KAEpB0B,MAAO,CACLtC,YAAa,QACbK,KAAM,UACNM,YAAa,kCACbC,kBAAkB,GAEpB2B,aAAc,CACZvC,YAAa,iBACbK,KAAM,UACNM,YAAa,qDACbC,kBAAkB,GAEpB4B,UAAW,CACTxC,YAAa,aACbK,KAAM,UACNM,YAAa,+BACbC,kBAAkB,GAEpB6B,eAAgB,CACdzC,YAAa,kBACbK,KAAM,SACNM,YAAa,qCACbC,iBAAkB,GAEpB8B,OAAQ,CACN1C,YAAa,UACbK,KAAM,UACNM,YAAa,iCACbC,kBAAkB,GAEpB+B,aAAc,CACZ3C,YAAa,gBACbK,KAAM,UACNM,YAAa,gCACbC,kBAAkB,GAEpBgC,cAAe,CACb5C,YAAa,iBACbK,KAAM,UACNM,YAAa,wBACbC,kBAAkB,GAEpBiC,SAAU,CACR7C,YAAa,WACbK,KAAM,UACNM,YAAa,sBACbC,kBAAkB,IAGtBkC,iBAAiB,EACjBC,cAAe,CACbC,MAAO,UACPvC,SAAU,yCAKZwC,EACAC,GAEID,EACFA,EAAOE,kBAAkBC,QAAQF,EAAAA,EAAoBpD,GAErDqD,EAAkBC,QAAQF,EAAAA,EAAoBpD"}
|
package/dist/react-slick.esm.js
CHANGED
|
@@ -1,195 +1,242 @@
|
|
|
1
1
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
2
2
|
import Slider from 'react-slick';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
name: "
|
|
4
|
+
var sliderMeta = {
|
|
5
|
+
name: "hostless-slider",
|
|
6
|
+
displayName: "Slider",
|
|
7
|
+
importName: "Slider",
|
|
6
8
|
importPath: "react-slick",
|
|
7
9
|
props: {
|
|
8
10
|
children: {
|
|
9
11
|
type: "slot",
|
|
10
12
|
defaultValue: [{
|
|
11
13
|
type: "img",
|
|
12
|
-
src: "https://via.placeholder.com/
|
|
14
|
+
src: "https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1",
|
|
13
15
|
style: {
|
|
14
16
|
maxWidth: "100%"
|
|
15
17
|
}
|
|
16
18
|
}, {
|
|
17
19
|
type: "img",
|
|
18
|
-
src: "https://via.placeholder.com/
|
|
20
|
+
src: "https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",
|
|
19
21
|
style: {
|
|
20
22
|
maxWidth: "100%"
|
|
21
23
|
}
|
|
22
24
|
}, {
|
|
23
25
|
type: "img",
|
|
24
|
-
src: "https://via.placeholder.com/
|
|
26
|
+
src: "https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",
|
|
25
27
|
style: {
|
|
26
28
|
maxWidth: "100%"
|
|
27
29
|
}
|
|
28
30
|
}]
|
|
29
31
|
},
|
|
30
32
|
accessibility: {
|
|
33
|
+
displayName: "Accessibility",
|
|
31
34
|
type: "boolean",
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
description: "Enables tabbing and arrow key navigation",
|
|
36
|
+
defaultValueHint: true
|
|
34
37
|
},
|
|
35
38
|
adaptiveHeight: {
|
|
39
|
+
displayName: "Adaptive Height",
|
|
36
40
|
type: "boolean",
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
description: "Adjust the slide's height automatically",
|
|
42
|
+
defaultValueHint: false
|
|
39
43
|
},
|
|
40
44
|
arrows: {
|
|
45
|
+
displayName: "Arrows",
|
|
41
46
|
type: "boolean",
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
description: "Show next/prev arrows",
|
|
48
|
+
defaultValueHint: true
|
|
44
49
|
},
|
|
45
50
|
autoplay: {
|
|
51
|
+
displayName: "Auto Play",
|
|
46
52
|
type: "boolean",
|
|
47
|
-
|
|
53
|
+
description: "Automatically start scrolling",
|
|
54
|
+
defaultValueHint: false
|
|
48
55
|
},
|
|
49
56
|
autoplaySpeed: {
|
|
57
|
+
displayName: "Auto Play Speed",
|
|
50
58
|
type: "number",
|
|
51
|
-
|
|
52
|
-
|
|
59
|
+
description: "Delay between each auto scroll, in milliseconds",
|
|
60
|
+
defaultValueHint: 3000,
|
|
61
|
+
hidden: function hidden(props) {
|
|
62
|
+
return !props.autoplay;
|
|
63
|
+
}
|
|
53
64
|
},
|
|
54
65
|
centerMode: {
|
|
66
|
+
displayName: "Center Mode",
|
|
55
67
|
type: "boolean",
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
description: "Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts",
|
|
69
|
+
defaultValueHint: false
|
|
58
70
|
},
|
|
59
71
|
centerPadding: {
|
|
72
|
+
displayName: "Center Padding",
|
|
60
73
|
type: "string",
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
description: "Side padding when in center mode (px or %)",
|
|
75
|
+
defaultValueHint: "50px",
|
|
76
|
+
hidden: function hidden(props) {
|
|
77
|
+
return !props.centerMode;
|
|
78
|
+
}
|
|
63
79
|
},
|
|
64
80
|
dots: {
|
|
81
|
+
displayName: "Dots",
|
|
65
82
|
type: "boolean",
|
|
66
|
-
|
|
67
|
-
|
|
83
|
+
description: "Show dots for each slide",
|
|
84
|
+
defaultValueHint: false
|
|
68
85
|
},
|
|
69
86
|
draggable: {
|
|
87
|
+
displayName: "Draggable",
|
|
70
88
|
type: "boolean",
|
|
71
|
-
|
|
72
|
-
|
|
89
|
+
description: "Enables mouse dragging on desktop",
|
|
90
|
+
defaultValueHint: true
|
|
73
91
|
},
|
|
74
92
|
easing: {
|
|
93
|
+
displayName: "Easing",
|
|
75
94
|
type: "string",
|
|
76
|
-
|
|
77
|
-
|
|
95
|
+
description: "Easing method for transition",
|
|
96
|
+
defaultValueHint: "linear"
|
|
78
97
|
},
|
|
79
98
|
fade: {
|
|
99
|
+
displayName: "Fade",
|
|
80
100
|
type: "boolean",
|
|
81
|
-
|
|
82
|
-
|
|
101
|
+
description: "Cross-fade between slides",
|
|
102
|
+
defaultValueHint: false
|
|
83
103
|
},
|
|
84
104
|
focusOnSelect: {
|
|
105
|
+
displayName: "Focus On Select",
|
|
85
106
|
type: "boolean",
|
|
86
|
-
|
|
87
|
-
|
|
107
|
+
description: "Go to slide on click",
|
|
108
|
+
defaultValueHint: false
|
|
88
109
|
},
|
|
89
110
|
infinite: {
|
|
111
|
+
displayName: "Infinite",
|
|
90
112
|
type: "boolean",
|
|
91
|
-
|
|
92
|
-
|
|
113
|
+
description: "Infinitely wrap around contents",
|
|
114
|
+
defaultValueHint: true
|
|
93
115
|
},
|
|
94
116
|
initialSlide: {
|
|
117
|
+
displayName: "Initial Slide",
|
|
95
118
|
type: "number",
|
|
96
|
-
|
|
97
|
-
|
|
119
|
+
description: "Index of initial slide",
|
|
120
|
+
defaultValueHint: 0
|
|
98
121
|
},
|
|
99
122
|
lazyLoad: {
|
|
123
|
+
displayName: "Lazy Load",
|
|
100
124
|
type: "choice",
|
|
101
125
|
options: ["ondemand", "progressive"],
|
|
102
126
|
description: "Load images or render components on demand or progressively"
|
|
103
127
|
},
|
|
104
128
|
pauseOnDotsHover: {
|
|
129
|
+
displayName: "Pause On Dots Hover",
|
|
105
130
|
type: "boolean",
|
|
106
|
-
|
|
107
|
-
|
|
131
|
+
description: "Prevents autoplay while hovering on dots",
|
|
132
|
+
defaultValueHint: false
|
|
108
133
|
},
|
|
109
134
|
pauseOnFocus: {
|
|
135
|
+
displayName: "Pause On Focus",
|
|
110
136
|
type: "boolean",
|
|
111
|
-
|
|
112
|
-
|
|
137
|
+
description: "Prevents autoplay while focused on slides",
|
|
138
|
+
defaultValueHint: false
|
|
113
139
|
},
|
|
114
140
|
pauseOnHover: {
|
|
141
|
+
displayName: "Pause On Hover",
|
|
115
142
|
type: "boolean",
|
|
116
|
-
|
|
117
|
-
|
|
143
|
+
description: "Prevents autoplay while hovering on track",
|
|
144
|
+
defaultValueHint: true
|
|
118
145
|
},
|
|
119
146
|
rows: {
|
|
147
|
+
displayName: "Rows",
|
|
120
148
|
type: "number",
|
|
121
|
-
|
|
122
|
-
|
|
149
|
+
description: "Number of rows per slide (enables grid mode)",
|
|
150
|
+
defaultValueHint: 1
|
|
123
151
|
},
|
|
124
152
|
rtl: {
|
|
153
|
+
displayName: "Reverse",
|
|
125
154
|
type: "boolean",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
slide:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
155
|
+
description: "Reverses the slide order",
|
|
156
|
+
defaultValueHint: false
|
|
157
|
+
},
|
|
158
|
+
// Looks like the `slide` prop is not being used to set the container tag:
|
|
159
|
+
// https://github.com/akiran/react-slick/issues/1318
|
|
160
|
+
// https://github.com/akiran/react-slick/pull/1885
|
|
161
|
+
// https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul
|
|
162
|
+
//
|
|
163
|
+
// slide: {
|
|
164
|
+
// displayName: "Slide Tag",
|
|
165
|
+
// type: "string",
|
|
166
|
+
// description: 'Slide container element type',
|
|
167
|
+
// defaultValueHint: "div",
|
|
168
|
+
// },
|
|
134
169
|
slidesPerRow: {
|
|
170
|
+
displayName: "Slides Per Row",
|
|
135
171
|
type: "number",
|
|
136
|
-
|
|
137
|
-
|
|
172
|
+
description: "Number of slides to display in grid mode, this is useful with rows option",
|
|
173
|
+
defaultValueHint: 1
|
|
138
174
|
},
|
|
139
175
|
slidesToScroll: {
|
|
176
|
+
displayName: "Slides To Scroll",
|
|
140
177
|
type: "number",
|
|
141
|
-
|
|
142
|
-
|
|
178
|
+
description: "Number of slides to scroll at once",
|
|
179
|
+
defaultValueHint: 1
|
|
143
180
|
},
|
|
144
181
|
slidesToShow: {
|
|
182
|
+
displayName: "Slides To Show",
|
|
145
183
|
type: "number",
|
|
146
|
-
|
|
147
|
-
|
|
184
|
+
description: "Number of slides to show in one frame",
|
|
185
|
+
defaultValueHint: 1
|
|
148
186
|
},
|
|
149
187
|
speed: {
|
|
188
|
+
displayName: "Speed",
|
|
150
189
|
type: "number",
|
|
151
|
-
|
|
152
|
-
|
|
190
|
+
description: "Transition speed in milliseconds",
|
|
191
|
+
defaultValueHint: 500
|
|
153
192
|
},
|
|
154
193
|
swipe: {
|
|
194
|
+
displayName: "Swipe",
|
|
155
195
|
type: "boolean",
|
|
156
|
-
|
|
157
|
-
|
|
196
|
+
description: "Enable swiping to change slides",
|
|
197
|
+
defaultValueHint: true
|
|
158
198
|
},
|
|
159
199
|
swipeToSlide: {
|
|
200
|
+
displayName: "Swipe To Slide",
|
|
160
201
|
type: "boolean",
|
|
161
|
-
|
|
162
|
-
|
|
202
|
+
description: "Enable drag/swipe irrespective of 'slidesToScroll'",
|
|
203
|
+
defaultValueHint: false
|
|
163
204
|
},
|
|
164
205
|
touchMove: {
|
|
206
|
+
displayName: "Touch Move",
|
|
165
207
|
type: "boolean",
|
|
166
|
-
|
|
167
|
-
|
|
208
|
+
description: "Enable slide moving on touch",
|
|
209
|
+
defaultValueHint: true
|
|
168
210
|
},
|
|
169
211
|
touchThreshold: {
|
|
212
|
+
displayName: "Touch Threshold",
|
|
170
213
|
type: "number",
|
|
171
|
-
|
|
172
|
-
|
|
214
|
+
description: "Swipe distance threshold in pixels",
|
|
215
|
+
defaultValueHint: 5
|
|
173
216
|
},
|
|
174
217
|
useCSS: {
|
|
218
|
+
displayName: "Use CSS",
|
|
175
219
|
type: "boolean",
|
|
176
|
-
|
|
177
|
-
|
|
220
|
+
description: "Enable/Disable CSS Transitions",
|
|
221
|
+
defaultValueHint: true
|
|
178
222
|
},
|
|
179
223
|
useTransform: {
|
|
224
|
+
displayName: "Use Transform",
|
|
180
225
|
type: "boolean",
|
|
181
|
-
|
|
182
|
-
|
|
226
|
+
description: "Enable/Disable CSS Transforms",
|
|
227
|
+
defaultValueHint: true
|
|
183
228
|
},
|
|
184
229
|
variableWidth: {
|
|
230
|
+
displayName: "Variable Width",
|
|
185
231
|
type: "boolean",
|
|
186
|
-
|
|
187
|
-
|
|
232
|
+
description: "Variable width slides",
|
|
233
|
+
defaultValueHint: false
|
|
188
234
|
},
|
|
189
235
|
vertical: {
|
|
236
|
+
displayName: "Vertical",
|
|
190
237
|
type: "boolean",
|
|
191
|
-
|
|
192
|
-
|
|
238
|
+
description: "Vertical slide mode",
|
|
239
|
+
defaultValueHint: false
|
|
193
240
|
}
|
|
194
241
|
},
|
|
195
242
|
isDefaultExport: true,
|
|
@@ -197,5 +244,14 @@ registerComponent(Slider, {
|
|
|
197
244
|
width: "stretch",
|
|
198
245
|
maxWidth: "100%"
|
|
199
246
|
}
|
|
200
|
-
}
|
|
247
|
+
};
|
|
248
|
+
function registerSlider(loader, customSliderMeta) {
|
|
249
|
+
if (loader) {
|
|
250
|
+
loader.registerComponent(Slider, customSliderMeta != null ? customSliderMeta : sliderMeta);
|
|
251
|
+
} else {
|
|
252
|
+
registerComponent(Slider, customSliderMeta != null ? customSliderMeta : sliderMeta);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export { registerSlider, sliderMeta };
|
|
201
257
|
//# sourceMappingURL=react-slick.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-slick.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent from \"@plasmicapp/host/registerComponent\";\nimport Slider from \"react-slick\";\n\n// TODO Do not actually provide defaultValues everywhere.\n\nregisterComponent(Slider, {\n name: \"Slider\",\n importPath: \"react-slick\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/350x150\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enables tabbing and arrow key navigation\",\n },\n adaptiveHeight: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Adjust the slide's height automatically\",\n },\n arrows: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Show next/prev arrows\",\n },\n autoplay: {\n type: \"boolean\",\n defaultValue: false,\n },\n autoplaySpeed: {\n type: \"number\",\n defaultValue: 3000,\n description: \"Delay between each auto scroll (in milliseconds)\",\n },\n centerMode: {\n type: \"boolean\",\n defaultValue: false,\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n },\n centerPadding: {\n type: \"string\",\n defaultValue: \"50px\",\n description: \"Side padding when in center mode (px or %)\",\n },\n dots: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Show dots for each slide\",\n },\n draggable: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enables mouse dragging on desktop\",\n },\n easing: {\n type: \"string\",\n defaultValue: \"linear\",\n description: \"Easing method for transition\",\n },\n fade: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Cross-fade between slides\",\n },\n focusOnSelect: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Go to slide on click\",\n },\n infinite: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Infinitely wrap around contents\",\n },\n initialSlide: {\n type: \"number\",\n defaultValue: 0,\n description: \"Index of initial slide\",\n },\n lazyLoad: {\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Prevents autoplay while hovering on dots\",\n },\n pauseOnFocus: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Prevents autoplay while focused on slides\",\n },\n pauseOnHover: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Prevents autoplay while hovering on track\",\n },\n rows: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of rows per slide (enables grid mode)\",\n },\n rtl: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Reverses the slide order\",\n },\n slide: {\n type: \"string\",\n defaultValue: \"div\",\n description: \"Slide container element type\",\n },\n slidesPerRow: {\n type: \"number\",\n defaultValue: 1,\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n },\n slidesToScroll: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of slides to scroll at once\",\n },\n slidesToShow: {\n type: \"number\",\n defaultValue: 1,\n description: \"Number of slides to show in one frame\",\n },\n speed: {\n type: \"number\",\n defaultValue: 500,\n description: \"Transition speed in milliseconds\",\n },\n swipe: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable swiping to change slides\",\n },\n swipeToSlide: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n },\n touchMove: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable slide moving on touch\",\n },\n touchThreshold: {\n type: \"number\",\n defaultValue: 5,\n description: \"Swipe distance threshold in pixels\",\n },\n useCSS: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable/Disable CSS Transitions\",\n },\n useTransform: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Enable/Disable CSS Transforms\",\n },\n variableWidth: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Variable width slides\",\n },\n vertical: {\n type: \"boolean\",\n defaultValue: false,\n description: \"Vertical slide mode\",\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n },\n});\n"],"names":["registerComponent","Slider","name","importPath","props","children","type","defaultValue","src","style","maxWidth","accessibility","description","adaptiveHeight","arrows","autoplay","autoplaySpeed","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slide","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width"],"mappings":";;;AAKAA,iBAAiB,CAACC,MAAD,EAAS;AACxBC,EAAAA,IAAI,EAAE,QADkB;AAExBC,EAAAA,UAAU,EAAE,aAFY;AAGxBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,IAAI,EAAE,MADE;AAERC,MAAAA,YAAY,EAAE,CACZ;AACED,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,qCAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAAA,QAAQ,EAAE;AADL;AAHT,OADY,EAQZ;AACEJ,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,qCAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAAA,QAAQ,EAAE;AADL;AAHT,OARY,EAeZ;AACEJ,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,qCAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAAA,QAAQ,EAAE;AADL;AAHT,OAfY;AAFN,KADL;AA2BLC,IAAAA,aAAa,EAAE;AACbL,MAAAA,IAAI,EAAE,SADO;AAEbC,MAAAA,YAAY,EAAE,IAFD;AAGbK,MAAAA,WAAW,EAAE;AAHA,KA3BV;AAgCLC,IAAAA,cAAc,EAAE;AACdP,MAAAA,IAAI,EAAE,SADQ;AAEdC,MAAAA,YAAY,EAAE,KAFA;AAGdK,MAAAA,WAAW,EAAE;AAHC,KAhCX;AAqCLE,IAAAA,MAAM,EAAE;AACNR,MAAAA,IAAI,EAAE,SADA;AAENC,MAAAA,YAAY,EAAE,IAFR;AAGNK,MAAAA,WAAW,EAAE;AAHP,KArCH;AA0CLG,IAAAA,QAAQ,EAAE;AACRT,MAAAA,IAAI,EAAE,SADE;AA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E,KAFD;AAGbK,MAAAA,WAAW,EAAE;AAHA,KAxLV;AA6LLiC,IAAAA,QAAQ,EAAE;AACRvC,MAAAA,IAAI,EAAE,SADE;AAERC,MAAAA,YAAY,EAAE,KAFN;AAGRK,MAAAA,WAAW,EAAE;AAHL;AA7LL,GAHiB;AAsMxBkC,EAAAA,eAAe,EAAE,IAtMO;AAuMxBC,EAAAA,aAAa,EAAE;AACbC,IAAAA,KAAK,EAAE,SADM;AAEbtC,IAAAA,QAAQ,EAAE;AAFG;AAvMS,CAAT,CAAjB"}
|
|
1
|
+
{"version":3,"file":"react-slick.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport Slider, { Settings } from \"react-slick\";\n\nexport const sliderMeta: ComponentMeta<Settings> = {\n name: \"hostless-slider\",\n displayName: \"Slider\",\n importName: \"Slider\",\n importPath: \"react-slick\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n displayName: \"Accessibility\",\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation\",\n defaultValueHint: true,\n },\n adaptiveHeight: {\n displayName: \"Adaptive Height\",\n type: \"boolean\",\n description: \"Adjust the slide's height automatically\",\n defaultValueHint: false,\n },\n arrows: {\n displayName: \"Arrows\",\n type: \"boolean\",\n description: \"Show next/prev arrows\",\n defaultValueHint: true,\n },\n autoplay: {\n displayName: \"Auto Play\",\n type: \"boolean\",\n description: \"Automatically start scrolling\",\n defaultValueHint: false,\n },\n autoplaySpeed: {\n displayName: \"Auto Play Speed\",\n type: \"number\",\n description: \"Delay between each auto scroll, in milliseconds\",\n defaultValueHint: 3000,\n hidden: (props) => !props.autoplay,\n },\n centerMode: {\n displayName: \"Center Mode\",\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts\",\n defaultValueHint: false,\n },\n centerPadding: {\n displayName: \"Center Padding\",\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n defaultValueHint: \"50px\",\n hidden: (props) => !props.centerMode,\n },\n dots: {\n displayName: \"Dots\",\n type: \"boolean\",\n description: \"Show dots for each slide\",\n defaultValueHint: false,\n },\n draggable: {\n displayName: \"Draggable\",\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop\",\n defaultValueHint: true,\n },\n easing: {\n displayName: \"Easing\",\n type: \"string\",\n description: \"Easing method for transition\",\n defaultValueHint: \"linear\",\n },\n fade: {\n displayName: \"Fade\",\n type: \"boolean\",\n description: \"Cross-fade between slides\",\n defaultValueHint: false,\n },\n focusOnSelect: {\n displayName: \"Focus On Select\",\n type: \"boolean\",\n description: \"Go to slide on click\",\n defaultValueHint: false,\n },\n infinite: {\n displayName: \"Infinite\",\n type: \"boolean\",\n description: \"Infinitely wrap around contents\",\n defaultValueHint: true,\n },\n initialSlide: {\n displayName: \"Initial Slide\",\n type: \"number\",\n description: \"Index of initial slide\",\n defaultValueHint: 0,\n },\n lazyLoad: {\n displayName: \"Lazy Load\",\n type: \"choice\",\n options: [\"ondemand\", \"progressive\"],\n description:\n \"Load images or render components on demand or progressively\",\n },\n pauseOnDotsHover: {\n displayName: \"Pause On Dots Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on dots\",\n defaultValueHint: false,\n },\n pauseOnFocus: {\n displayName: \"Pause On Focus\",\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n defaultValueHint: false,\n },\n pauseOnHover: {\n displayName: \"Pause On Hover\",\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n defaultValueHint: true,\n },\n rows: {\n displayName: \"Rows\",\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n defaultValueHint: 1,\n },\n rtl: {\n displayName: \"Reverse\",\n type: \"boolean\",\n description: \"Reverses the slide order\",\n defaultValueHint: false,\n },\n // Looks like the `slide` prop is not being used to set the container tag:\n // https://github.com/akiran/react-slick/issues/1318\n // https://github.com/akiran/react-slick/pull/1885\n // https://stackoverflow.com/questions/51492535/wrap-react-slick-li-slides-inside-ul\n //\n // slide: {\n // displayName: \"Slide Tag\",\n // type: \"string\",\n // description: 'Slide container element type',\n // defaultValueHint: \"div\",\n // },\n slidesPerRow: {\n displayName: \"Slides Per Row\",\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n defaultValueHint: 1,\n },\n slidesToScroll: {\n displayName: \"Slides To Scroll\",\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n defaultValueHint: 1,\n },\n slidesToShow: {\n displayName: \"Slides To Show\",\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n defaultValueHint: 1,\n },\n speed: {\n displayName: \"Speed\",\n type: \"number\",\n description: \"Transition speed in milliseconds\",\n defaultValueHint: 500,\n },\n swipe: {\n displayName: \"Swipe\",\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n defaultValueHint: true,\n },\n swipeToSlide: {\n displayName: \"Swipe To Slide\",\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n defaultValueHint: false,\n },\n touchMove: {\n displayName: \"Touch Move\",\n type: \"boolean\",\n description: \"Enable slide moving on touch\",\n defaultValueHint: true,\n },\n touchThreshold: {\n displayName: \"Touch Threshold\",\n type: \"number\",\n description: \"Swipe distance threshold in pixels\",\n defaultValueHint: 5,\n },\n useCSS: {\n displayName: \"Use CSS\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transitions\",\n defaultValueHint: true,\n },\n useTransform: {\n displayName: \"Use Transform\",\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n defaultValueHint: true,\n },\n variableWidth: {\n displayName: \"Variable Width\",\n type: \"boolean\",\n description: \"Variable width slides\",\n defaultValueHint: false,\n },\n vertical: {\n displayName: \"Vertical\",\n type: \"boolean\",\n description: \"Vertical slide mode\",\n defaultValueHint: false,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n width: \"stretch\",\n maxWidth: \"100%\",\n },\n};\n\nexport function registerSlider(\n loader?: { registerComponent: typeof registerComponent },\n customSliderMeta?: ComponentMeta<Settings>\n) {\n if (loader) {\n loader.registerComponent(Slider, customSliderMeta ?? sliderMeta);\n } else {\n registerComponent(Slider, customSliderMeta ?? sliderMeta);\n }\n}\n"],"names":["sliderMeta","name","displayName","importName","importPath","props","children","type","defaultValue","src","style","maxWidth","accessibility","description","defaultValueHint","adaptiveHeight","arrows","autoplay","autoplaySpeed","hidden","centerMode","centerPadding","dots","draggable","easing","fade","focusOnSelect","infinite","initialSlide","lazyLoad","options","pauseOnDotsHover","pauseOnFocus","pauseOnHover","rows","rtl","slidesPerRow","slidesToScroll","slidesToShow","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","vertical","isDefaultExport","defaultStyles","width","registerSlider","loader","customSliderMeta","registerComponent","Slider"],"mappings":";;;IAKaA,UAAU,GAA4B;AACjDC,EAAAA,IAAI,EAAE,iBAD2C;AAEjDC,EAAAA,WAAW,EAAE,QAFoC;AAGjDC,EAAAA,UAAU,EAAE,QAHqC;AAIjDC,EAAAA,UAAU,EAAE,aAJqC;AAKjDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,IAAI,EAAE,MADE;AAERC,MAAAA,YAAY,EAAE,CACZ;AACED,QAAAA,IAAI,EAAE,KADR;AAEEE,QAAAA,GAAG,EAAE,gEAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAAA,QAAQ,EAAE;AADL;AAHT,OADY,EAQZ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EAAiCF,gBAAjC,WAAiCA,gBAAjC,GAAqDrD,UAArD;AACD,GAFD,MAEO;AACLsD,IAAAA,iBAAiB,CAACC,MAAD,EAASF,gBAAT,WAASA,gBAAT,GAA6BrD,UAA7B,CAAjB;AACD;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/react-slick",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Plasmic registration call for the HTML5 video element",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"typescript": "^3.9.7"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@plasmicapp/host": "^0.0.32",
|
|
41
40
|
"react-slick": "^0.28.1",
|
|
42
41
|
"slick-carousel": "^1.8.1"
|
|
43
42
|
},
|
|
44
43
|
"peerDependencies": {
|
|
44
|
+
"@plasmicapp/host": "^1.0.0",
|
|
45
45
|
"react": ">=16.8.0",
|
|
46
46
|
"react-dom": ">=16.8.0"
|
|
47
47
|
}
|