@plasmicpkgs/react-slick 0.0.2 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,159 +17,232 @@ var sliderMeta = {
17
17
  type: "slot",
18
18
  defaultValue: [{
19
19
  type: "img",
20
- src: "https://via.placeholder.com/150/FF0000/FFFFFF/?text=Slide_1",
21
- style: {
20
+ src: "https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1",
21
+ styles: {
22
22
  maxWidth: "100%"
23
23
  }
24
24
  }, {
25
25
  type: "img",
26
- src: "https://via.placeholder.com/150/00FF00/FFFFFF/?text=Slide_2",
27
- style: {
26
+ src: "https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",
27
+ styles: {
28
28
  maxWidth: "100%"
29
29
  }
30
30
  }, {
31
31
  type: "img",
32
- src: "https://via.placeholder.com/150/0000FF/FFFFFF/?text=Slide_3",
33
- style: {
32
+ src: "https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",
33
+ styles: {
34
34
  maxWidth: "100%"
35
35
  }
36
36
  }]
37
37
  },
38
38
  accessibility: {
39
+ displayName: "Accessibility",
39
40
  type: "boolean",
40
- description: "Enables tabbing and arrow key navigation (default: true)"
41
+ description: "Enables tabbing and arrow key navigation",
42
+ defaultValueHint: true
41
43
  },
42
44
  adaptiveHeight: {
45
+ displayName: "Adaptive Height",
43
46
  type: "boolean",
44
- description: "Adjust the slide's height automatically (default: false)"
47
+ description: "Adjust the slide's height automatically",
48
+ defaultValueHint: false
45
49
  },
46
50
  arrows: {
51
+ displayName: "Arrows",
47
52
  type: "boolean",
48
- description: "Show next/prev arrows (default: true)"
53
+ description: "Show next/prev arrows",
54
+ defaultValueHint: true
49
55
  },
50
56
  autoplay: {
51
- type: "boolean"
57
+ displayName: "Auto Play",
58
+ type: "boolean",
59
+ description: "Automatically start scrolling",
60
+ defaultValueHint: false
52
61
  },
53
62
  autoplaySpeed: {
63
+ displayName: "Auto Play Speed",
54
64
  type: "number",
55
- description: "Delay between each auto scroll, in milliseconds (default: 3000)"
65
+ description: "Delay between each auto scroll, in milliseconds",
66
+ defaultValueHint: 3000,
67
+ hidden: function hidden(props) {
68
+ return !props.autoplay;
69
+ }
56
70
  },
57
71
  centerMode: {
72
+ displayName: "Center Mode",
58
73
  type: "boolean",
59
- description: "Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts (default: false)"
74
+ description: "Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts",
75
+ defaultValueHint: false
60
76
  },
61
77
  centerPadding: {
78
+ displayName: "Center Padding",
62
79
  type: "string",
63
- description: "Side padding when in center mode (px or %)"
80
+ description: "Side padding when in center mode (px or %)",
81
+ defaultValueHint: "50px",
82
+ hidden: function hidden(props) {
83
+ return !props.centerMode;
84
+ }
64
85
  },
65
86
  dots: {
87
+ displayName: "Dots",
66
88
  type: "boolean",
67
- description: "Show dots for each slide"
89
+ description: "Show dots for each slide",
90
+ defaultValueHint: false
68
91
  },
69
92
  draggable: {
93
+ displayName: "Draggable",
70
94
  type: "boolean",
71
- description: "Enables mouse dragging on desktop (default: true)"
95
+ description: "Enables mouse dragging on desktop",
96
+ defaultValueHint: true
72
97
  },
73
98
  easing: {
99
+ displayName: "Easing",
74
100
  type: "string",
75
- description: "Easing method for transition"
101
+ description: "Easing method for transition",
102
+ defaultValueHint: "linear"
76
103
  },
77
104
  fade: {
105
+ displayName: "Fade",
78
106
  type: "boolean",
79
- defaultValue: true,
80
- description: "Cross-fade between slides"
107
+ description: "Cross-fade between slides",
108
+ defaultValueHint: false
81
109
  },
82
110
  focusOnSelect: {
111
+ displayName: "Focus On Select",
83
112
  type: "boolean",
84
- description: "Go to slide on click"
113
+ description: "Go to slide on click",
114
+ defaultValueHint: false
85
115
  },
86
116
  infinite: {
117
+ displayName: "Infinite",
87
118
  type: "boolean",
88
- defaultValue: true,
89
- description: "Infinitely wrap around contents"
119
+ description: "Infinitely wrap around contents",
120
+ defaultValueHint: true
90
121
  },
91
122
  initialSlide: {
123
+ displayName: "Initial Slide",
92
124
  type: "number",
93
- description: "Index of initial slide"
125
+ description: "Index of initial slide",
126
+ defaultValueHint: 0
94
127
  },
95
128
  lazyLoad: {
129
+ displayName: "Lazy Load",
96
130
  type: "choice",
97
131
  options: ["ondemand", "progressive"],
98
132
  description: "Load images or render components on demand or progressively"
99
133
  },
100
134
  pauseOnDotsHover: {
135
+ displayName: "Pause On Dots Hover",
101
136
  type: "boolean",
102
- description: "Prevents autoplay while hovering on dots"
137
+ description: "Prevents autoplay while hovering on dots",
138
+ defaultValueHint: false
103
139
  },
104
140
  pauseOnFocus: {
141
+ displayName: "Pause On Focus",
105
142
  type: "boolean",
106
- description: "Prevents autoplay while focused on slides"
143
+ description: "Prevents autoplay while focused on slides",
144
+ defaultValueHint: false
107
145
  },
108
146
  pauseOnHover: {
147
+ displayName: "Pause On Hover",
109
148
  type: "boolean",
110
- description: "Prevents autoplay while hovering on track"
149
+ description: "Prevents autoplay while hovering on track",
150
+ defaultValueHint: true
111
151
  },
112
152
  rows: {
153
+ displayName: "Rows",
113
154
  type: "number",
114
- description: "Number of rows per slide (enables grid mode)"
155
+ description: "Number of rows per slide (enables grid mode)",
156
+ defaultValueHint: 1
115
157
  },
116
158
  rtl: {
159
+ displayName: "Reverse",
117
160
  type: "boolean",
118
- description: "Reverses the slide order"
119
- },
120
- slide: {
121
- type: "string",
122
- description: 'Slide container element type (defaults to "div")'
123
- },
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
+ // },
124
175
  slidesPerRow: {
176
+ displayName: "Slides Per Row",
125
177
  type: "number",
126
- description: "Number of slides to display in grid mode, this is useful with rows option"
178
+ description: "Number of slides to display in grid mode, this is useful with rows option",
179
+ defaultValueHint: 1
127
180
  },
128
181
  slidesToScroll: {
182
+ displayName: "Slides To Scroll",
129
183
  type: "number",
130
- description: "Number of slides to scroll at once"
184
+ description: "Number of slides to scroll at once",
185
+ defaultValueHint: 1
131
186
  },
132
187
  slidesToShow: {
188
+ displayName: "Slides To Show",
133
189
  type: "number",
134
- description: "Number of slides to show in one frame"
190
+ description: "Number of slides to show in one frame",
191
+ defaultValueHint: 1
135
192
  },
136
193
  speed: {
194
+ displayName: "Speed",
137
195
  type: "number",
138
- description: "Transition speed in milliseconds (defaults to 500)"
196
+ description: "Transition speed in milliseconds",
197
+ defaultValueHint: 500
139
198
  },
140
199
  swipe: {
200
+ displayName: "Swipe",
141
201
  type: "boolean",
142
- description: "Enable swiping to change slides"
202
+ description: "Enable swiping to change slides",
203
+ defaultValueHint: true
143
204
  },
144
205
  swipeToSlide: {
206
+ displayName: "Swipe To Slide",
145
207
  type: "boolean",
146
- description: "Enable drag/swipe irrespective of 'slidesToScroll'"
208
+ description: "Enable drag/swipe irrespective of 'slidesToScroll'",
209
+ defaultValueHint: false
147
210
  },
148
211
  touchMove: {
212
+ displayName: "Touch Move",
149
213
  type: "boolean",
150
- description: "Enable slide moving on touch"
214
+ description: "Enable slide moving on touch",
215
+ defaultValueHint: true
151
216
  },
152
217
  touchThreshold: {
218
+ displayName: "Touch Threshold",
153
219
  type: "number",
154
- defaultValue: 5,
155
- description: "Swipe distance threshold in pixels"
220
+ description: "Swipe distance threshold in pixels",
221
+ defaultValueHint: 5
156
222
  },
157
223
  useCSS: {
224
+ displayName: "Use CSS",
158
225
  type: "boolean",
159
- description: "Enable/Disable CSS Transitions"
226
+ description: "Enable/Disable CSS Transitions",
227
+ defaultValueHint: true
160
228
  },
161
229
  useTransform: {
230
+ displayName: "Use Transform",
162
231
  type: "boolean",
163
- description: "Enable/Disable CSS Transforms"
232
+ description: "Enable/Disable CSS Transforms",
233
+ defaultValueHint: true
164
234
  },
165
235
  variableWidth: {
236
+ displayName: "Variable Width",
166
237
  type: "boolean",
167
- description: "Variable width slides"
238
+ description: "Variable width slides",
239
+ defaultValueHint: false
168
240
  },
169
241
  vertical: {
242
+ displayName: "Vertical",
170
243
  type: "boolean",
171
- defaultValue: true,
172
- description: "Vertical slide mode"
244
+ description: "Vertical slide mode",
245
+ defaultValueHint: false
173
246
  }
174
247
  },
175
248
  isDefaultExport: true,
@@ -1 +1 @@
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/150/FF0000/FFFFFF/?text=Slide_1\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150/00FF00/FFFFFF/?text=Slide_2\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150/0000FF/FFFFFF/?text=Slide_3\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation (default: true)\",\n },\n adaptiveHeight: {\n type: \"boolean\",\n description: \"Adjust the slide's height automatically (default: false)\",\n },\n arrows: {\n type: \"boolean\",\n description: \"Show next/prev arrows (default: true)\",\n },\n autoplay: {\n type: \"boolean\",\n },\n autoplaySpeed: {\n type: \"number\",\n description:\n \"Delay between each auto scroll, in milliseconds (default: 3000)\",\n },\n centerMode: {\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts (default: false)\",\n },\n centerPadding: {\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n },\n dots: {\n type: \"boolean\",\n description: \"Show dots for each slide\",\n },\n draggable: {\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop (default: true)\",\n },\n easing: {\n type: \"string\",\n description: \"Easing method for transition\",\n },\n fade: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Cross-fade between slides\",\n },\n focusOnSelect: {\n type: \"boolean\",\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 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 description: \"Prevents autoplay while hovering on dots\",\n },\n pauseOnFocus: {\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n },\n pauseOnHover: {\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n },\n rows: {\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n },\n rtl: {\n type: \"boolean\",\n description: \"Reverses the slide order\",\n },\n slide: {\n type: \"string\",\n description: 'Slide container element type (defaults to \"div\")',\n },\n slidesPerRow: {\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n },\n slidesToScroll: {\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n },\n slidesToShow: {\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n },\n speed: {\n type: \"number\",\n description: \"Transition speed in milliseconds (defaults to 500)\",\n },\n swipe: {\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n },\n swipeToSlide: {\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n },\n touchMove: {\n type: \"boolean\",\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 description: \"Enable/Disable CSS Transitions\",\n },\n useTransform: {\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n },\n variableWidth: {\n type: \"boolean\",\n description: \"Variable width slides\",\n },\n vertical: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Vertical slide mode\",\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","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","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,6DAFP;AAGEC,QAAAA,KAAK,EAAE;AACLC,UAAA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N;AAGRK,MAAAA,WAAW,EAAE;AAHL;AAlKL,GAL0C;AA6KjDkC,EAAAA,eAAe,EAAE,IA7KgC;AA8KjDC,EAAAA,aAAa,EAAE;AACbC,IAAAA,KAAK,EAAE,SADM;AAEbtC,IAAAA,QAAQ,EAAE;AAFG;AA9KkC;SAoLnCuC,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBC,MAAzB,EAAiCF,gBAAjC,WAAiCA,gBAAjC,GAAqDpD,UAArD;AACD,GAFD,MAEO;AACLqD,IAAAA,iBAAiB,CAACC,MAAD,EAASF,gBAAT,WAASA,gBAAT,GAA6BpD,UAA7B,CAAjB;AACD;AACF;;;;;"}
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 styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\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","styles","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,I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A,QAAQ,EAAE;AAFG;AAlPkC;SAwPnCwC,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBC,MAAzB,EAAiCF,gBAAjC,WAAiCA,gBAAjC,GAAqDrD,UAArD;AACD,GAFD,MAEO;AACLsD,IAAAA,iBAAiB,CAACC,MAAD,EAASF,gBAAT,WAASA,gBAAT,GAA6BrD,UAA7B,CAAjB;AACD;AACF;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),i=e(require("react-slick")),o={name:"hostless-slider",displayName:"Slider",importName:"Slider",importPath:"react-slick",props:{children:{type:"slot",defaultValue:[{type:"img",src:"https://via.placeholder.com/150/FF0000/FFFFFF/?text=Slide_1",style:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150/00FF00/FFFFFF/?text=Slide_2",style:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150/0000FF/FFFFFF/?text=Slide_3",style:{maxWidth:"100%"}}]},accessibility:{type:"boolean",description:"Enables tabbing and arrow key navigation (default: true)"},adaptiveHeight:{type:"boolean",description:"Adjust the slide's height automatically (default: false)"},arrows:{type:"boolean",description:"Show next/prev arrows (default: true)"},autoplay:{type:"boolean"},autoplaySpeed:{type:"number",description:"Delay between each auto scroll, in milliseconds (default: 3000)"},centerMode:{type:"boolean",description:"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts (default: false)"},centerPadding:{type:"string",description:"Side padding when in center mode (px or %)"},dots:{type:"boolean",description:"Show dots for each slide"},draggable:{type:"boolean",description:"Enables mouse dragging on desktop (default: true)"},easing:{type:"string",description:"Easing method for transition"},fade:{type:"boolean",defaultValue:!0,description:"Cross-fade between slides"},focusOnSelect:{type:"boolean",description:"Go to slide on click"},infinite:{type:"boolean",defaultValue:!0,description:"Infinitely wrap around contents"},initialSlide:{type:"number",description:"Index of initial slide"},lazyLoad:{type:"choice",options:["ondemand","progressive"],description:"Load images or render components on demand or progressively"},pauseOnDotsHover:{type:"boolean",description:"Prevents autoplay while hovering on dots"},pauseOnFocus:{type:"boolean",description:"Prevents autoplay while focused on slides"},pauseOnHover:{type:"boolean",description:"Prevents autoplay while hovering on track"},rows:{type:"number",description:"Number of rows per slide (enables grid mode)"},rtl:{type:"boolean",description:"Reverses the slide order"},slide:{type:"string",description:'Slide container element type (defaults to "div")'},slidesPerRow:{type:"number",description:"Number of slides to display in grid mode, this is useful with rows option"},slidesToScroll:{type:"number",description:"Number of slides to scroll at once"},slidesToShow:{type:"number",description:"Number of slides to show in one frame"},speed:{type:"number",description:"Transition speed in milliseconds (defaults to 500)"},swipe:{type:"boolean",description:"Enable swiping to change slides"},swipeToSlide:{type:"boolean",description:"Enable drag/swipe irrespective of 'slidesToScroll'"},touchMove:{type:"boolean",description:"Enable slide moving on touch"},touchThreshold:{type:"number",defaultValue:5,description:"Swipe distance threshold in pixels"},useCSS:{type:"boolean",description:"Enable/Disable CSS Transitions"},useTransform:{type:"boolean",description:"Enable/Disable CSS Transforms"},variableWidth:{type:"boolean",description:"Variable width slides"},vertical:{type:"boolean",defaultValue:!0,description:"Vertical slide mode"}},isDefaultExport:!0,defaultStyles:{width:"stretch",maxWidth:"100%"}};exports.registerSlider=function(e,s){e?e.registerComponent(i,null!=s?s:o):t(i,null!=s?s:o)},exports.sliderMeta=o;
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",styles:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",styles:{maxWidth:"100%"}},{type:"img",src:"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",styles:{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, {\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/150/FF0000/FFFFFF/?text=Slide_1\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150/00FF00/FFFFFF/?text=Slide_2\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150/0000FF/FFFFFF/?text=Slide_3\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation (default: true)\",\n },\n adaptiveHeight: {\n type: \"boolean\",\n description: \"Adjust the slide's height automatically (default: false)\",\n },\n arrows: {\n type: \"boolean\",\n description: \"Show next/prev arrows (default: true)\",\n },\n autoplay: {\n type: \"boolean\",\n },\n autoplaySpeed: {\n type: \"number\",\n description:\n \"Delay between each auto scroll, in milliseconds (default: 3000)\",\n },\n centerMode: {\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts (default: false)\",\n },\n centerPadding: {\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n },\n dots: {\n type: \"boolean\",\n description: \"Show dots for each slide\",\n },\n draggable: {\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop (default: true)\",\n },\n easing: {\n type: \"string\",\n description: \"Easing method for transition\",\n },\n fade: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Cross-fade between slides\",\n },\n focusOnSelect: {\n type: \"boolean\",\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 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 description: \"Prevents autoplay while hovering on dots\",\n },\n pauseOnFocus: {\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n },\n pauseOnHover: {\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n },\n rows: {\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n },\n rtl: {\n type: \"boolean\",\n description: \"Reverses the slide order\",\n },\n slide: {\n type: \"string\",\n description: 'Slide container element type (defaults to \"div\")',\n },\n slidesPerRow: {\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n },\n slidesToScroll: {\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n },\n slidesToShow: {\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n },\n speed: {\n type: \"number\",\n description: \"Transition speed in milliseconds (defaults to 500)\",\n },\n swipe: {\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n },\n swipeToSlide: {\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n },\n touchMove: {\n type: \"boolean\",\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 description: \"Enable/Disable CSS Transitions\",\n },\n useTransform: {\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n },\n variableWidth: {\n type: \"boolean\",\n description: \"Variable width slides\",\n },\n vertical: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Vertical slide mode\",\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","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","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,8DACLC,MAAO,CACLC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,8DACLC,MAAO,CACLC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,8DACLC,MAAO,CACLC,SAAU,WAKlBC,cAAe,CACbL,KAAM,UACNM,YAAa,4DAEfC,eAAgB,CACdP,KAAM,UACNM,YAAa,4DAEfE,OAAQ,CACNR,KAAM,UACNM,YAAa,yCAEfG,SAAU,CACRT,KAAM,WAERU,cAAe,CACbV,KAAM,SACNM,YACE,mEAEJK,WAAY,CACVX,KAAM,UACNM,YACE,mHAEJM,cAAe,CACbZ,KAAM,SACNM,YAAa,8CAEfO,KAAM,CACJb,KAAM,UACNM,YAAa,4BAEfQ,UAAW,CACTd,KAAM,UACNM,YAAa,qDAEfS,OAAQ,CACNf,KAAM,SACNM,YAAa,gCAEfU,KAAM,CACJhB,KAAM,UACNC,cAAc,EACdK,YAAa,6BAEfW,cAAe,CACbjB,KAAM,UACNM,YAAa,wBAEfY,SAAU,CACRlB,KAAM,UACNC,cAAc,EACdK,YAAa,mCAEfa,aAAc,CACZnB,KAAM,SACNM,YAAa,0BAEfc,SAAU,CACRpB,KAAM,SACNqB,QAAS,CAAC,WAAY,eACtBf,YACE,+DAEJgB,iBAAkB,CAChBtB,KAAM,UACNM,YAAa,4CAEfiB,aAAc,CACZvB,KAAM,UACNM,YAAa,6CAEfkB,aAAc,CACZxB,KAAM,UACNM,YAAa,6CAEfmB,KAAM,CACJzB,KAAM,SACNM,YAAa,gDAEfoB,IAAK,CACH1B,KAAM,UACNM,YAAa,4BAEfqB,MAAO,CACL3B,KAAM,SACNM,YAAa,oDAEfsB,aAAc,CACZ5B,KAAM,SACNM,YACE,6EAEJuB,eAAgB,CACd7B,KAAM,SACNM,YAAa,sCAEfwB,aAAc,CACZ9B,KAAM,SACNM,YAAa,yCAEfyB,MAAO,CACL/B,KAAM,SACNM,YAAa,sDAEf0B,MAAO,CACLhC,KAAM,UACNM,YAAa,mCAEf2B,aAAc,CACZjC,KAAM,UACNM,YAAa,sDAEf4B,UAAW,CACTlC,KAAM,UACNM,YAAa,gCAEf6B,eAAgB,CACdnC,KAAM,SACNC,aAAc,EACdK,YAAa,sCAEf8B,OAAQ,CACNpC,KAAM,UACNM,YAAa,kCAEf+B,aAAc,CACZrC,KAAM,UACNM,YAAa,iCAEfgC,cAAe,CACbtC,KAAM,UACNM,YAAa,yBAEfiC,SAAU,CACRvC,KAAM,UACNC,cAAc,EACdK,YAAa,wBAGjBkC,iBAAiB,EACjBC,cAAe,CACbC,MAAO,UACPtC,SAAU,yCAKZuC,EACAC,GAEID,EACFA,EAAOE,kBAAkBC,QAAQF,EAAAA,EAAoBnD,GAErDoD,EAAkBC,QAAQF,EAAAA,EAAoBnD"}
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 styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\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","styles","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,OAAQ,CACNC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,iEACLC,OAAQ,CACNC,SAAU,SAGd,CACEJ,KAAM,MACNE,IAAK,iEACLC,OAAQ,CACNC,SAAU,WAKlBC,cAAe,CACbV,YAAa,gBACbK,KAAM,UACNM,YAAa,2CACbC,kBAAkB,GAEpBC,eAAgB,CACdb,YAAa,kBACbK,KAAM,UACNM,YAAa,0CACbC,kBAAkB,GAEpBE,OAAQ,CACNd,YAAa,SACbK,KAAM,UACNM,YAAa,wBACbC,kBAAkB,GAEpBG,SAAU,CACRf,YAAa,YACbK,KAAM,UACNM,YAAa,gCACbC,kBAAkB,GAEpBI,cAAe,CACbhB,YAAa,kBACbK,KAAM,SACNM,YAAa,kDACbC,iBAAkB,IAClBK,OAAQ,SAACd,UAAWA,EAAMY,WAE5BG,WAAY,CACVlB,YAAa,cACbK,KAAM,UACNM,YACE,iGACFC,kBAAkB,GAEpBO,cAAe,CACbnB,YAAa,iBACbK,KAAM,SACNM,YAAa,6CACbC,iBAAkB,OAClBK,OAAQ,SAACd,UAAWA,EAAMe,aAE5BE,KAAM,CACJpB,YAAa,OACbK,KAAM,UACNM,YAAa,2BACbC,kBAAkB,GAEpBS,UAAW,CACTrB,YAAa,YACbK,KAAM,UACNM,YAAa,oCACbC,kBAAkB,GAEpBU,OAAQ,CACNtB,YAAa,SACbK,KAAM,SACNM,YAAa,+BACbC,iBAAkB,UAEp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AAa,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"}
@@ -11,159 +11,232 @@ var sliderMeta = {
11
11
  type: "slot",
12
12
  defaultValue: [{
13
13
  type: "img",
14
- src: "https://via.placeholder.com/150/FF0000/FFFFFF/?text=Slide_1",
15
- style: {
14
+ src: "https://via.placeholder.com/150x90/FF0000/FFFFFF/?text=Slide_1",
15
+ styles: {
16
16
  maxWidth: "100%"
17
17
  }
18
18
  }, {
19
19
  type: "img",
20
- src: "https://via.placeholder.com/150/00FF00/FFFFFF/?text=Slide_2",
21
- style: {
20
+ src: "https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2",
21
+ styles: {
22
22
  maxWidth: "100%"
23
23
  }
24
24
  }, {
25
25
  type: "img",
26
- src: "https://via.placeholder.com/150/0000FF/FFFFFF/?text=Slide_3",
27
- style: {
26
+ src: "https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3",
27
+ styles: {
28
28
  maxWidth: "100%"
29
29
  }
30
30
  }]
31
31
  },
32
32
  accessibility: {
33
+ displayName: "Accessibility",
33
34
  type: "boolean",
34
- description: "Enables tabbing and arrow key navigation (default: true)"
35
+ description: "Enables tabbing and arrow key navigation",
36
+ defaultValueHint: true
35
37
  },
36
38
  adaptiveHeight: {
39
+ displayName: "Adaptive Height",
37
40
  type: "boolean",
38
- description: "Adjust the slide's height automatically (default: false)"
41
+ description: "Adjust the slide's height automatically",
42
+ defaultValueHint: false
39
43
  },
40
44
  arrows: {
45
+ displayName: "Arrows",
41
46
  type: "boolean",
42
- description: "Show next/prev arrows (default: true)"
47
+ description: "Show next/prev arrows",
48
+ defaultValueHint: true
43
49
  },
44
50
  autoplay: {
45
- type: "boolean"
51
+ displayName: "Auto Play",
52
+ type: "boolean",
53
+ description: "Automatically start scrolling",
54
+ defaultValueHint: false
46
55
  },
47
56
  autoplaySpeed: {
57
+ displayName: "Auto Play Speed",
48
58
  type: "number",
49
- description: "Delay between each auto scroll, in milliseconds (default: 3000)"
59
+ description: "Delay between each auto scroll, in milliseconds",
60
+ defaultValueHint: 3000,
61
+ hidden: function hidden(props) {
62
+ return !props.autoplay;
63
+ }
50
64
  },
51
65
  centerMode: {
66
+ displayName: "Center Mode",
52
67
  type: "boolean",
53
- description: "Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts (default: false)"
68
+ description: "Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts",
69
+ defaultValueHint: false
54
70
  },
55
71
  centerPadding: {
72
+ displayName: "Center Padding",
56
73
  type: "string",
57
- description: "Side padding when in center mode (px or %)"
74
+ description: "Side padding when in center mode (px or %)",
75
+ defaultValueHint: "50px",
76
+ hidden: function hidden(props) {
77
+ return !props.centerMode;
78
+ }
58
79
  },
59
80
  dots: {
81
+ displayName: "Dots",
60
82
  type: "boolean",
61
- description: "Show dots for each slide"
83
+ description: "Show dots for each slide",
84
+ defaultValueHint: false
62
85
  },
63
86
  draggable: {
87
+ displayName: "Draggable",
64
88
  type: "boolean",
65
- description: "Enables mouse dragging on desktop (default: true)"
89
+ description: "Enables mouse dragging on desktop",
90
+ defaultValueHint: true
66
91
  },
67
92
  easing: {
93
+ displayName: "Easing",
68
94
  type: "string",
69
- description: "Easing method for transition"
95
+ description: "Easing method for transition",
96
+ defaultValueHint: "linear"
70
97
  },
71
98
  fade: {
99
+ displayName: "Fade",
72
100
  type: "boolean",
73
- defaultValue: true,
74
- description: "Cross-fade between slides"
101
+ description: "Cross-fade between slides",
102
+ defaultValueHint: false
75
103
  },
76
104
  focusOnSelect: {
105
+ displayName: "Focus On Select",
77
106
  type: "boolean",
78
- description: "Go to slide on click"
107
+ description: "Go to slide on click",
108
+ defaultValueHint: false
79
109
  },
80
110
  infinite: {
111
+ displayName: "Infinite",
81
112
  type: "boolean",
82
- defaultValue: true,
83
- description: "Infinitely wrap around contents"
113
+ description: "Infinitely wrap around contents",
114
+ defaultValueHint: true
84
115
  },
85
116
  initialSlide: {
117
+ displayName: "Initial Slide",
86
118
  type: "number",
87
- description: "Index of initial slide"
119
+ description: "Index of initial slide",
120
+ defaultValueHint: 0
88
121
  },
89
122
  lazyLoad: {
123
+ displayName: "Lazy Load",
90
124
  type: "choice",
91
125
  options: ["ondemand", "progressive"],
92
126
  description: "Load images or render components on demand or progressively"
93
127
  },
94
128
  pauseOnDotsHover: {
129
+ displayName: "Pause On Dots Hover",
95
130
  type: "boolean",
96
- description: "Prevents autoplay while hovering on dots"
131
+ description: "Prevents autoplay while hovering on dots",
132
+ defaultValueHint: false
97
133
  },
98
134
  pauseOnFocus: {
135
+ displayName: "Pause On Focus",
99
136
  type: "boolean",
100
- description: "Prevents autoplay while focused on slides"
137
+ description: "Prevents autoplay while focused on slides",
138
+ defaultValueHint: false
101
139
  },
102
140
  pauseOnHover: {
141
+ displayName: "Pause On Hover",
103
142
  type: "boolean",
104
- description: "Prevents autoplay while hovering on track"
143
+ description: "Prevents autoplay while hovering on track",
144
+ defaultValueHint: true
105
145
  },
106
146
  rows: {
147
+ displayName: "Rows",
107
148
  type: "number",
108
- description: "Number of rows per slide (enables grid mode)"
149
+ description: "Number of rows per slide (enables grid mode)",
150
+ defaultValueHint: 1
109
151
  },
110
152
  rtl: {
153
+ displayName: "Reverse",
111
154
  type: "boolean",
112
- description: "Reverses the slide order"
113
- },
114
- slide: {
115
- type: "string",
116
- description: 'Slide container element type (defaults to "div")'
117
- },
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
+ // },
118
169
  slidesPerRow: {
170
+ displayName: "Slides Per Row",
119
171
  type: "number",
120
- description: "Number of slides to display in grid mode, this is useful with rows option"
172
+ description: "Number of slides to display in grid mode, this is useful with rows option",
173
+ defaultValueHint: 1
121
174
  },
122
175
  slidesToScroll: {
176
+ displayName: "Slides To Scroll",
123
177
  type: "number",
124
- description: "Number of slides to scroll at once"
178
+ description: "Number of slides to scroll at once",
179
+ defaultValueHint: 1
125
180
  },
126
181
  slidesToShow: {
182
+ displayName: "Slides To Show",
127
183
  type: "number",
128
- description: "Number of slides to show in one frame"
184
+ description: "Number of slides to show in one frame",
185
+ defaultValueHint: 1
129
186
  },
130
187
  speed: {
188
+ displayName: "Speed",
131
189
  type: "number",
132
- description: "Transition speed in milliseconds (defaults to 500)"
190
+ description: "Transition speed in milliseconds",
191
+ defaultValueHint: 500
133
192
  },
134
193
  swipe: {
194
+ displayName: "Swipe",
135
195
  type: "boolean",
136
- description: "Enable swiping to change slides"
196
+ description: "Enable swiping to change slides",
197
+ defaultValueHint: true
137
198
  },
138
199
  swipeToSlide: {
200
+ displayName: "Swipe To Slide",
139
201
  type: "boolean",
140
- description: "Enable drag/swipe irrespective of 'slidesToScroll'"
202
+ description: "Enable drag/swipe irrespective of 'slidesToScroll'",
203
+ defaultValueHint: false
141
204
  },
142
205
  touchMove: {
206
+ displayName: "Touch Move",
143
207
  type: "boolean",
144
- description: "Enable slide moving on touch"
208
+ description: "Enable slide moving on touch",
209
+ defaultValueHint: true
145
210
  },
146
211
  touchThreshold: {
212
+ displayName: "Touch Threshold",
147
213
  type: "number",
148
- defaultValue: 5,
149
- description: "Swipe distance threshold in pixels"
214
+ description: "Swipe distance threshold in pixels",
215
+ defaultValueHint: 5
150
216
  },
151
217
  useCSS: {
218
+ displayName: "Use CSS",
152
219
  type: "boolean",
153
- description: "Enable/Disable CSS Transitions"
220
+ description: "Enable/Disable CSS Transitions",
221
+ defaultValueHint: true
154
222
  },
155
223
  useTransform: {
224
+ displayName: "Use Transform",
156
225
  type: "boolean",
157
- description: "Enable/Disable CSS Transforms"
226
+ description: "Enable/Disable CSS Transforms",
227
+ defaultValueHint: true
158
228
  },
159
229
  variableWidth: {
230
+ displayName: "Variable Width",
160
231
  type: "boolean",
161
- description: "Variable width slides"
232
+ description: "Variable width slides",
233
+ defaultValueHint: false
162
234
  },
163
235
  vertical: {
236
+ displayName: "Vertical",
164
237
  type: "boolean",
165
- defaultValue: true,
166
- description: "Vertical slide mode"
238
+ description: "Vertical slide mode",
239
+ defaultValueHint: false
167
240
  }
168
241
  },
169
242
  isDefaultExport: true,
@@ -1 +1 @@
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/150/FF0000/FFFFFF/?text=Slide_1\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150/00FF00/FFFFFF/?text=Slide_2\",\n style: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150/0000FF/FFFFFF/?text=Slide_3\",\n style: {\n maxWidth: \"100%\",\n },\n },\n ],\n },\n accessibility: {\n type: \"boolean\",\n description: \"Enables tabbing and arrow key navigation (default: true)\",\n },\n adaptiveHeight: {\n type: \"boolean\",\n description: \"Adjust the slide's height automatically (default: false)\",\n },\n arrows: {\n type: \"boolean\",\n description: \"Show next/prev arrows (default: true)\",\n },\n autoplay: {\n type: \"boolean\",\n },\n autoplaySpeed: {\n type: \"number\",\n description:\n \"Delay between each auto scroll, in milliseconds (default: 3000)\",\n },\n centerMode: {\n type: \"boolean\",\n description:\n \"Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts (default: false)\",\n },\n centerPadding: {\n type: \"string\",\n description: \"Side padding when in center mode (px or %)\",\n },\n dots: {\n type: \"boolean\",\n description: \"Show dots for each slide\",\n },\n draggable: {\n type: \"boolean\",\n description: \"Enables mouse dragging on desktop (default: true)\",\n },\n easing: {\n type: \"string\",\n description: \"Easing method for transition\",\n },\n fade: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Cross-fade between slides\",\n },\n focusOnSelect: {\n type: \"boolean\",\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 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 description: \"Prevents autoplay while hovering on dots\",\n },\n pauseOnFocus: {\n type: \"boolean\",\n description: \"Prevents autoplay while focused on slides\",\n },\n pauseOnHover: {\n type: \"boolean\",\n description: \"Prevents autoplay while hovering on track\",\n },\n rows: {\n type: \"number\",\n description: \"Number of rows per slide (enables grid mode)\",\n },\n rtl: {\n type: \"boolean\",\n description: \"Reverses the slide order\",\n },\n slide: {\n type: \"string\",\n description: 'Slide container element type (defaults to \"div\")',\n },\n slidesPerRow: {\n type: \"number\",\n description:\n \"Number of slides to display in grid mode, this is useful with rows option\",\n },\n slidesToScroll: {\n type: \"number\",\n description: \"Number of slides to scroll at once\",\n },\n slidesToShow: {\n type: \"number\",\n description: \"Number of slides to show in one frame\",\n },\n speed: {\n type: \"number\",\n description: \"Transition speed in milliseconds (defaults to 500)\",\n },\n swipe: {\n type: \"boolean\",\n description: \"Enable swiping to change slides\",\n },\n swipeToSlide: {\n type: \"boolean\",\n description: \"Enable drag/swipe irrespective of 'slidesToScroll'\",\n },\n touchMove: {\n type: \"boolean\",\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 description: \"Enable/Disable CSS Transitions\",\n },\n useTransform: {\n type: \"boolean\",\n description: \"Enable/Disable CSS Transforms\",\n },\n variableWidth: {\n type: \"boolean\",\n description: \"Variable width slides\",\n },\n vertical: {\n type: \"boolean\",\n defaultValue: true,\n description: \"Vertical slide mode\",\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","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","registerSlider","loader","customSliderMeta","registerComponent","Slider"],"mappings":";;;IAKaA,UAAU,GAA4B;AACjDC,EAAAA,I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EAAE,SADA;AAENM,MAAAA,WAAW,EAAE;AAFP,KAtJH;AA0JL+B,IAAAA,YAAY,EAAE;AACZrC,MAAAA,IAAI,EAAE,SADM;AAEZM,MAAAA,WAAW,EAAE;AAFD,KA1JT;AA8JLgC,IAAAA,aAAa,EAAE;AACbtC,MAAAA,IAAI,EAAE,SADO;AAEbM,MAAAA,WAAW,EAAE;AAFA,KA9JV;AAkKLiC,IAAAA,QAAQ,EAAE;AACRvC,MAAAA,IAAI,EAAE,SADE;AAERC,MAAAA,YAAY,EAAE,IAFN;AAGRK,MAAAA,WAAW,EAAE;AAHL;AAlKL,GAL0C;AA6KjDkC,EAAAA,eAAe,EAAE,IA7KgC;AA8KjDC,EAAAA,aAAa,EAAE;AACbC,IAAAA,KAAK,EAAE,SADM;AAEbtC,IAAAA,QAAQ,EAAE;AAFG;AA9KkC;SAoLnCuC,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBC,MAAzB,EAAiCF,gBAAjC,WAAiCA,gBAAjC,GAAqDpD,UAArD;AACD,GAFD,MAEO;AACLqD,IAAAA,iBAAiB,CAACC,MAAD,EAASF,gBAAT,WAASA,gBAAT,GAA6BpD,UAA7B,CAAjB;AACD;AACF;;;;"}
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 styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/00FF00/FFFFFF/?text=Slide_2\",\n styles: {\n maxWidth: \"100%\",\n },\n },\n {\n type: \"img\",\n src: \"https://via.placeholder.com/150x90/0000FF/FFFFFF/?text=Slide_3\",\n styles: {\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","styles","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","registerSl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AAIbC,MAAAA,gBAAgB,EAAE;AAJL,KA/NV;AAqOLiC,IAAAA,QAAQ,EAAE;AACR7C,MAAAA,WAAW,EAAE,UADL;AAERK,MAAAA,IAAI,EAAE,SAFE;AAGRM,MAAAA,WAAW,EAAE,qBAHL;AAIRC,MAAAA,gBAAgB,EAAE;AAJV;AArOL,GAL0C;AAiPjDkC,EAAAA,eAAe,EAAE,IAjPgC;AAkPjDC,EAAAA,aAAa,EAAE;AACbC,IAAAA,KAAK,EAAE,SADM;AAEbvC,IAAAA,QAAQ,EAAE;AAFG;AAlPkC;SAwPnCwC,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBC,MAAzB,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.2",
3
+ "version": "0.0.7",
4
4
  "description": "Plasmic registration call for the HTML5 video element",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,6 +28,7 @@
28
28
  "analyze": "size-limit --why"
29
29
  },
30
30
  "devDependencies": {
31
+ "@plasmicapp/host": "^1.0.0",
31
32
  "@size-limit/preset-small-lib": "^4.11.0",
32
33
  "@types/node": "^14.0.26",
33
34
  "@types/react-slick": "^0.23.7",
@@ -37,11 +38,11 @@
37
38
  "typescript": "^3.9.7"
38
39
  },
39
40
  "dependencies": {
40
- "@plasmicapp/host": "^0.0.32",
41
41
  "react-slick": "^0.28.1",
42
42
  "slick-carousel": "^1.8.1"
43
43
  },
44
44
  "peerDependencies": {
45
+ "@plasmicapp/host": "^1.0.0",
45
46
  "react": ">=16.8.0",
46
47
  "react-dom": ">=16.8.0"
47
48
  }