@salla.sa/twilight-components 2.9.48 → 2.10.0

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.
Files changed (82) hide show
  1. package/dist/cjs/{index-4700898c.js → app-globals-a24e299c.js} +31 -2
  2. package/dist/cjs/index-1d2b3370.js +0 -4
  3. package/dist/cjs/loader.cjs.js +3 -2
  4. package/dist/cjs/salla-add-product-button.cjs.entry.js +7 -3
  5. package/dist/cjs/salla-button_35.cjs.entry.js +595 -1903
  6. package/dist/cjs/twilight.cjs.js +3 -2
  7. package/dist/collection/collection-manifest.json +0 -1
  8. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +9 -5
  9. package/dist/collection/components/salla-button/salla-button.js +5 -1
  10. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +3 -3
  11. package/dist/collection/components/salla-file-upload/salla-file-upload.js +9 -8
  12. package/dist/collection/components/salla-gifting/salla-gifting.js +18 -14
  13. package/dist/collection/components/salla-loyalty/salla-loyalty.js +5 -3
  14. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +6 -5
  15. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +14 -10
  16. package/dist/collection/components/salla-slider/salla-slider.css +242 -0
  17. package/dist/collection/components/salla-slider/salla-slider.js +403 -110
  18. package/dist/collection/components/salla-user-menu/salla-user-menu.js +8 -1
  19. package/dist/collection/global/app-dev.js +2 -1
  20. package/dist/collection/global/app.js +15 -0
  21. package/dist/components/index.d.ts +0 -1
  22. package/dist/components/index.js +31 -3
  23. package/dist/components/salla-add-product-button.js +7 -3
  24. package/dist/components/salla-button2.js +5 -1
  25. package/dist/components/salla-cart-summary.js +3 -3
  26. package/dist/components/salla-file-upload2.js +249 -3
  27. package/dist/components/salla-gifting.js +26 -16
  28. package/dist/components/salla-loyalty.js +3 -3
  29. package/dist/components/salla-offer-modal.js +5 -4
  30. package/dist/components/salla-rating-stars2.js +8 -4
  31. package/dist/components/salla-slider2.js +229 -1806
  32. package/dist/components/salla-user-menu.js +8 -1
  33. package/dist/esm/{index-55e33cdf.js → app-globals-1619c0de.js} +31 -2
  34. package/dist/esm/index-f1d446ac.js +0 -4
  35. package/dist/esm/loader.js +3 -2
  36. package/dist/esm/salla-add-product-button.entry.js +7 -3
  37. package/dist/esm/salla-button_35.entry.js +594 -1902
  38. package/dist/esm/twilight.js +3 -2
  39. package/dist/esm-es5/{index-55e33cdf.js → app-globals-1619c0de.js} +2 -2
  40. package/dist/esm-es5/index-f1d446ac.js +2 -2
  41. package/dist/esm-es5/loader.js +1 -1
  42. package/dist/esm-es5/salla-add-product-button.entry.js +1 -1
  43. package/dist/esm-es5/salla-button_35.entry.js +11 -5
  44. package/dist/esm-es5/twilight.js +1 -1
  45. package/dist/twilight/p-0f839b43.system.js +4 -0
  46. package/dist/twilight/p-3420f00c.entry.js +30 -0
  47. package/dist/twilight/p-5207a10c.system.js +24 -0
  48. package/dist/twilight/{p-486ce499.system.entry.js → p-5a1197bb.system.entry.js} +1 -1
  49. package/dist/twilight/p-5b30b649.system.entry.js +47 -0
  50. package/dist/twilight/p-97614f6d.js +24 -0
  51. package/dist/twilight/{p-6f41faf8.entry.js → p-dbb379ce.entry.js} +1 -1
  52. package/dist/twilight/twilight.esm.js +1 -1
  53. package/dist/twilight/twilight.js +1 -1
  54. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +3 -3
  55. package/dist/types/components/salla-slider/salla-slider.d.ts +73 -14
  56. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -0
  57. package/dist/types/components.d.ts +83 -60
  58. package/dist/types/global/app-dev.d.ts +0 -1
  59. package/package.json +6 -4
  60. package/dist/cjs/core-c7a9fb22.js +0 -4982
  61. package/dist/cjs/salla-swiper.cjs.entry.js +0 -62
  62. package/dist/collection/components/salla-swiper/salla-swiper.css +0 -177
  63. package/dist/collection/components/salla-swiper/salla-swiper.js +0 -152
  64. package/dist/components/arrow-left.js +0 -11
  65. package/dist/components/core.js +0 -4959
  66. package/dist/components/salla-swiper.d.ts +0 -11
  67. package/dist/components/salla-swiper.js +0 -92
  68. package/dist/esm/core-572aabd0.js +0 -4973
  69. package/dist/esm/salla-swiper.entry.js +0 -58
  70. package/dist/esm-es5/core-572aabd0.js +0 -4
  71. package/dist/esm-es5/salla-swiper.entry.js +0 -4
  72. package/dist/twilight/p-00e66d1a.system.js +0 -4
  73. package/dist/twilight/p-0cf11465.system.js +0 -4
  74. package/dist/twilight/p-0de275dc.system.entry.js +0 -41
  75. package/dist/twilight/p-37381192.entry.js +0 -30
  76. package/dist/twilight/p-684a004a.system.entry.js +0 -4
  77. package/dist/twilight/p-6b7896e1.system.js +0 -24
  78. package/dist/twilight/p-6ed7d3a2.js +0 -4
  79. package/dist/twilight/p-e8c3c209.entry.js +0 -4
  80. package/dist/twilight/p-f286c803.js +0 -24
  81. package/dist/types/components/salla-swiper/salla-swiper.d.ts +0 -31
  82. package/dist/types/index.d.ts +0 -7
@@ -1,22 +1,56 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Swiper as SwiperType } from 'swiper/types';
2
3
  /**
3
4
  * @slot items - Slider items.
4
5
  * @slot thumbs - Thumbs slider items.
5
6
  */
6
7
  export declare class SallaSwiper {
8
+ host: HTMLElement;
9
+ /**
10
+ * Show/hide slider block title
11
+ */
12
+ blockTitle: string;
13
+ /**
14
+ * Show/hide slider block sub title
15
+ */
16
+ blockSubtitle: string;
17
+ /**
18
+ * Show/hide display all button beside arrows
19
+ */
20
+ displayAllUrl: string;
7
21
  /**
8
22
  * Show/hide arrows
9
23
  */
10
24
  showControls: boolean;
25
+ /**
26
+ * Show/hide arrows
27
+ */
28
+ controlsOuter: boolean;
11
29
  /**
12
30
  * Show/hide thumbs slider arrows
13
31
  */
14
32
  showThumbsControls: boolean;
33
+ /**
34
+ * Enable autoplay - working with `type="carousel" only`
35
+ */
36
+ autoPlay: boolean;
37
+ /**
38
+ * Enable pagination
39
+ */
40
+ pagination: boolean;
41
+ /**
42
+ * Enable center mode - working with `type="carousel" only`
43
+ */
44
+ centered: boolean;
45
+ /**
46
+ * Run slider in loop, Don't use it for slides with custom components inside it, because it may cause re-render issue
47
+ */
48
+ loop: boolean;
15
49
  /**
16
50
  * Set the type of the slider
17
51
  * Default: ''
18
52
  */
19
- type: 'carousel' | 'thumbs' | '';
53
+ type: 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
20
54
  /**
21
55
  * Slider Configs refer to https://swiperjs.com/swiper-api#parameters and pass the entire config object
22
56
  * @example
@@ -30,16 +64,16 @@ export declare class SallaSwiper {
30
64
  */
31
65
  sliderConfig: any;
32
66
  /**
33
- * Thumbs Slider Configs refer to https://swiperjs.com/swiper-api#parameters and pass the entire config object
34
- * @example
35
- * let slider = document.querySelector('salla-slider');
36
- * slider.thumbsConfig = {
37
- * slidesPerView: 1,
38
- * spaceBetween : 30,
39
- * lazy: true,
40
- * }
41
- *
42
- */
67
+ * Thumbs Slider Configs refer to https://swiperjs.com/swiper-api#parameters and pass the entire config object
68
+ * @example
69
+ * let slider = document.querySelector('salla-slider');
70
+ * slider.thumbsConfig = {
71
+ * slidesPerView: 1,
72
+ * spaceBetween : 30,
73
+ * lazy: true,
74
+ * }
75
+ *
76
+ */
43
77
  thumbsConfig: any;
44
78
  slideChange: EventEmitter<any>;
45
79
  reachBeginning: EventEmitter<any>;
@@ -63,7 +97,7 @@ export declare class SallaSwiper {
63
97
  * @param {number} speed - Transition duration (in ms).
64
98
  * @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
65
99
  * **/
66
- slideTo(index: number, speed?: number, runCallbacks?: boolean): Promise<void>;
100
+ slideTo(index: number, speed?: number, runCallbacks?: boolean): Promise<any>;
67
101
  /**
68
102
  * Run transition to the next slide.
69
103
  *
@@ -113,7 +147,7 @@ export declare class SallaSwiper {
113
147
  * **/
114
148
  slideToClosest(speed?: number, runCallbacks?: boolean): Promise<void>;
115
149
  /**
116
- * You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately:
150
+ * You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately:
117
151
  * **/
118
152
  update(): Promise<void>;
119
153
  /**
@@ -133,17 +167,42 @@ export declare class SallaSwiper {
133
167
  * update active/prev/next classes on slides and bullets
134
168
  * **/
135
169
  updateSlidesClasses(): Promise<void>;
170
+ /**
171
+ * Get slider slides
172
+ * **/
173
+ getSlides(): Promise<any>;
136
174
  currentIndex: number | undefined;
137
175
  isEnd: boolean;
138
176
  isBeginning: boolean;
139
177
  isRTL: boolean;
178
+ swiperScript: any;
179
+ displayAllTitle: string;
140
180
  private sliderContainer?;
141
181
  private sliderWrapper?;
142
182
  private thumbsSliderContainer?;
143
183
  private thumbsSliderWrapper?;
144
184
  private slider;
145
185
  private thumbsSlider;
146
- componentDidLoad(): void;
186
+ private pre_defined_config;
187
+ componentWillLoad(): Promise<unknown>;
188
+ getSwiperConfig(): {
189
+ loop: boolean;
190
+ autoplay: boolean;
191
+ centeredSlides: boolean;
192
+ lazy: boolean;
193
+ on: {
194
+ afterInit: (slider: SwiperType) => void[];
195
+ };
196
+ pagination: boolean | {
197
+ el: string;
198
+ clickable: boolean;
199
+ };
200
+ navigation: boolean | {
201
+ nextEl: string;
202
+ prevEl: string;
203
+ };
204
+ };
147
205
  initSlider(): void;
148
206
  render(): any;
207
+ componentDidLoad(): void;
149
208
  }
@@ -40,6 +40,7 @@ export declare class SallaUserMenu {
40
40
  OrderUpdate: number;
41
41
  private fetchFreshProfile;
42
42
  open(e: any): Promise<void>;
43
+ private menuItemClicked;
43
44
  private getTheHeader;
44
45
  private getMenuItem;
45
46
  render(): any;
@@ -386,7 +386,7 @@ export namespace Components {
386
386
  */
387
387
  "allowRemove": boolean;
388
388
  /**
389
- * Allow users to reorder files with drag and drop interaction. Note that this only works in single column mode. It also only works on browsers that support pointer events.
389
+ * Allow users to reorder files with drag and drop interaction. Note that this only works in single column mode. It also only works on browsers that support pointer events.
390
390
  */
391
391
  "allowReorder": boolean;
392
392
  /**
@@ -402,7 +402,7 @@ export namespace Components {
402
402
  */
403
403
  "appendFile": (file: FilePondInitialFile) => Promise<FilePondInitialFile[]>;
404
404
  /**
405
- * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
405
+ * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
406
406
  */
407
407
  "checkValidity": boolean;
408
408
  /**
@@ -474,7 +474,7 @@ export namespace Components {
474
474
  */
475
475
  "itemInsertInterval": number;
476
476
  /**
477
- * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
477
+ * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
478
478
  */
479
479
  "itemInsertLocation": 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
480
480
  /**
@@ -550,7 +550,7 @@ export namespace Components {
550
550
  */
551
551
  "labelFileWaitingForSize": string;
552
552
  /**
553
- * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
553
+ * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
554
554
  */
555
555
  "labelIdle": string;
556
556
  /**
@@ -600,7 +600,7 @@ export namespace Components {
600
600
  remove?: RemoveServerConfigFunction | null;
601
601
  } | null;
602
602
  /**
603
- * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
603
+ * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
604
604
  */
605
605
  "storeAsFile": boolean;
606
606
  }
@@ -1159,6 +1159,42 @@ export namespace Components {
1159
1159
  "width": string;
1160
1160
  }
1161
1161
  interface SallaSlider {
1162
+ /**
1163
+ * Enable autoplay - working with `type="carousel" only`
1164
+ */
1165
+ "autoPlay": boolean;
1166
+ /**
1167
+ * Show/hide slider block sub title
1168
+ */
1169
+ "blockSubtitle": string;
1170
+ /**
1171
+ * Show/hide slider block title
1172
+ */
1173
+ "blockTitle": string;
1174
+ /**
1175
+ * Enable center mode - working with `type="carousel" only`
1176
+ */
1177
+ "centered": boolean;
1178
+ /**
1179
+ * Show/hide arrows
1180
+ */
1181
+ "controlsOuter": boolean;
1182
+ /**
1183
+ * Show/hide display all button beside arrows
1184
+ */
1185
+ "displayAllUrl": string;
1186
+ /**
1187
+ * Get slider slides *
1188
+ */
1189
+ "getSlides": () => Promise<any>;
1190
+ /**
1191
+ * Run slider in loop, Don't use it for slides with custom components inside it, because it may cause re-render issue
1192
+ */
1193
+ "loop": boolean;
1194
+ /**
1195
+ * Enable pagination
1196
+ */
1197
+ "pagination": boolean;
1162
1198
  /**
1163
1199
  * Show/hide arrows
1164
1200
  */
@@ -1203,7 +1239,7 @@ export namespace Components {
1203
1239
  * @param speed - Transition duration (in ms).
1204
1240
  * @param runCallbacks - Set it to false (by default it is true) and transition will not produce transition events. *
1205
1241
  */
1206
- "slideTo": (index: number, speed?: number, runCallbacks?: boolean) => Promise<void>;
1242
+ "slideTo": (index: number, speed?: number, runCallbacks?: boolean) => Promise<any>;
1207
1243
  /**
1208
1244
  * Reset slider position to closest slide/snap point for the duration equal to 'speed' parameter.
1209
1245
  * @param speed - Transition duration (in ms).
@@ -1227,9 +1263,9 @@ export namespace Components {
1227
1263
  */
1228
1264
  "thumbsConfig": any;
1229
1265
  /**
1230
- * Set the type of the slider Default: ''
1266
+ * Set the type of the slider Default: ''
1231
1267
  */
1232
- "type": 'carousel' | 'thumbs' | '';
1268
+ "type": 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
1233
1269
  /**
1234
1270
  * You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately: *
1235
1271
  */
@@ -1270,24 +1306,6 @@ export namespace Components {
1270
1306
  */
1271
1307
  "urlName": string;
1272
1308
  }
1273
- interface SallaSwiper {
1274
- /**
1275
- * Number of slides per view (slides visible at the same time on slider's container).
1276
- */
1277
- "itemPerView": "auto" | number;
1278
- /**
1279
- * Set to true to enable continuous loop mode. Defaults to false.
1280
- */
1281
- "loop": boolean;
1282
- /**
1283
- * Distance between slide items in px. Defaults to 8px
1284
- */
1285
- "spaceBetweenItems": number;
1286
- /**
1287
- * Duration of transition between slides (in ms). Defaults to 300ms.
1288
- */
1289
- "speed": number;
1290
- }
1291
1309
  interface SallaTabContent {
1292
1310
  /**
1293
1311
  * Expose self for the parent.
@@ -1654,12 +1672,6 @@ declare global {
1654
1672
  prototype: HTMLSallaSocialShareElement;
1655
1673
  new (): HTMLSallaSocialShareElement;
1656
1674
  };
1657
- interface HTMLSallaSwiperElement extends Components.SallaSwiper, HTMLStencilElement {
1658
- }
1659
- var HTMLSallaSwiperElement: {
1660
- prototype: HTMLSallaSwiperElement;
1661
- new (): HTMLSallaSwiperElement;
1662
- };
1663
1675
  interface HTMLSallaTabContentElement extends Components.SallaTabContent, HTMLStencilElement {
1664
1676
  }
1665
1677
  var HTMLSallaTabContentElement: {
@@ -1736,7 +1748,6 @@ declare global {
1736
1748
  "salla-skeleton": HTMLSallaSkeletonElement;
1737
1749
  "salla-slider": HTMLSallaSliderElement;
1738
1750
  "salla-social-share": HTMLSallaSocialShareElement;
1739
- "salla-swiper": HTMLSallaSwiperElement;
1740
1751
  "salla-tab-content": HTMLSallaTabContentElement;
1741
1752
  "salla-tab-header": HTMLSallaTabHeaderElement;
1742
1753
  "salla-tabs": HTMLSallaTabsElement;
@@ -2095,7 +2106,7 @@ declare namespace LocalJSX {
2095
2106
  */
2096
2107
  "allowRemove"?: boolean;
2097
2108
  /**
2098
- * Allow users to reorder files with drag and drop interaction. Note that this only works in single column mode. It also only works on browsers that support pointer events.
2109
+ * Allow users to reorder files with drag and drop interaction. Note that this only works in single column mode. It also only works on browsers that support pointer events.
2099
2110
  */
2100
2111
  "allowReorder"?: boolean;
2101
2112
  /**
@@ -2107,7 +2118,7 @@ declare namespace LocalJSX {
2107
2118
  */
2108
2119
  "allowRevert"?: boolean;
2109
2120
  /**
2110
- * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
2121
+ * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
2111
2122
  */
2112
2123
  "checkValidity"?: boolean;
2113
2124
  /**
@@ -2179,7 +2190,7 @@ declare namespace LocalJSX {
2179
2190
  */
2180
2191
  "itemInsertInterval"?: number;
2181
2192
  /**
2182
- * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
2193
+ * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
2183
2194
  */
2184
2195
  "itemInsertLocation"?: 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
2185
2196
  /**
@@ -2255,7 +2266,7 @@ declare namespace LocalJSX {
2255
2266
  */
2256
2267
  "labelFileWaitingForSize"?: string;
2257
2268
  /**
2258
- * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
2269
+ * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
2259
2270
  */
2260
2271
  "labelIdle"?: string;
2261
2272
  /**
@@ -2309,7 +2320,7 @@ declare namespace LocalJSX {
2309
2320
  remove?: RemoveServerConfigFunction | null;
2310
2321
  } | null;
2311
2322
  /**
2312
- * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
2323
+ * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
2313
2324
  */
2314
2325
  "storeAsFile"?: boolean;
2315
2326
  }
@@ -2769,6 +2780,34 @@ declare namespace LocalJSX {
2769
2780
  "width"?: string;
2770
2781
  }
2771
2782
  interface SallaSlider {
2783
+ /**
2784
+ * Enable autoplay - working with `type="carousel" only`
2785
+ */
2786
+ "autoPlay"?: boolean;
2787
+ /**
2788
+ * Show/hide slider block sub title
2789
+ */
2790
+ "blockSubtitle"?: string;
2791
+ /**
2792
+ * Show/hide slider block title
2793
+ */
2794
+ "blockTitle"?: string;
2795
+ /**
2796
+ * Enable center mode - working with `type="carousel" only`
2797
+ */
2798
+ "centered"?: boolean;
2799
+ /**
2800
+ * Show/hide arrows
2801
+ */
2802
+ "controlsOuter"?: boolean;
2803
+ /**
2804
+ * Show/hide display all button beside arrows
2805
+ */
2806
+ "displayAllUrl"?: string;
2807
+ /**
2808
+ * Run slider in loop, Don't use it for slides with custom components inside it, because it may cause re-render issue
2809
+ */
2810
+ "loop"?: boolean;
2772
2811
  "onReachBeginning"?: (event: SallaSliderCustomEvent<any>) => void;
2773
2812
  "onReachEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2774
2813
  "onSlideChange"?: (event: SallaSliderCustomEvent<any>) => void;
@@ -2784,6 +2823,10 @@ declare namespace LocalJSX {
2784
2823
  "onTouchSliderEnd"?: (event: SallaSliderCustomEvent<any>) => void;
2785
2824
  "onTouchSliderMove"?: (event: SallaSliderCustomEvent<any>) => void;
2786
2825
  "onTouchSliderStart"?: (event: SallaSliderCustomEvent<any>) => void;
2826
+ /**
2827
+ * Enable pagination
2828
+ */
2829
+ "pagination"?: boolean;
2787
2830
  /**
2788
2831
  * Show/hide arrows
2789
2832
  */
@@ -2803,9 +2846,9 @@ declare namespace LocalJSX {
2803
2846
  */
2804
2847
  "thumbsConfig"?: any;
2805
2848
  /**
2806
- * Set the type of the slider Default: ''
2849
+ * Set the type of the slider Default: ''
2807
2850
  */
2808
- "type"?: 'carousel' | 'thumbs' | '';
2851
+ "type"?: 'carousel' | 'thumbs' | 'default' | 'hero' | 'testimonials' | 'blog' | '';
2809
2852
  }
2810
2853
  interface SallaSocialShare {
2811
2854
  /**
@@ -2821,24 +2864,6 @@ declare namespace LocalJSX {
2821
2864
  */
2822
2865
  "urlName"?: string;
2823
2866
  }
2824
- interface SallaSwiper {
2825
- /**
2826
- * Number of slides per view (slides visible at the same time on slider's container).
2827
- */
2828
- "itemPerView"?: "auto" | number;
2829
- /**
2830
- * Set to true to enable continuous loop mode. Defaults to false.
2831
- */
2832
- "loop"?: boolean;
2833
- /**
2834
- * Distance between slide items in px. Defaults to 8px
2835
- */
2836
- "spaceBetweenItems"?: number;
2837
- /**
2838
- * Duration of transition between slides (in ms). Defaults to 300ms.
2839
- */
2840
- "speed"?: number;
2841
- }
2842
2867
  interface SallaTabContent {
2843
2868
  /**
2844
2869
  * Set name of the tab content. Mainly used as a key to s ynchronize the content with it's respective header.
@@ -2975,7 +3000,6 @@ declare namespace LocalJSX {
2975
3000
  "salla-skeleton": SallaSkeleton;
2976
3001
  "salla-slider": SallaSlider;
2977
3002
  "salla-social-share": SallaSocialShare;
2978
- "salla-swiper": SallaSwiper;
2979
3003
  "salla-tab-content": SallaTabContent;
2980
3004
  "salla-tab-header": SallaTabHeader;
2981
3005
  "salla-tabs": SallaTabs;
@@ -3022,7 +3046,6 @@ declare module "@stencil/core" {
3022
3046
  "salla-skeleton": LocalJSX.SallaSkeleton & JSXBase.HTMLAttributes<HTMLSallaSkeletonElement>;
3023
3047
  "salla-slider": LocalJSX.SallaSlider & JSXBase.HTMLAttributes<HTMLSallaSliderElement>;
3024
3048
  "salla-social-share": LocalJSX.SallaSocialShare & JSXBase.HTMLAttributes<HTMLSallaSocialShareElement>;
3025
- "salla-swiper": LocalJSX.SallaSwiper & JSXBase.HTMLAttributes<HTMLSallaSwiperElement>;
3026
3049
  "salla-tab-content": LocalJSX.SallaTabContent & JSXBase.HTMLAttributes<HTMLSallaTabContentElement>;
3027
3050
  "salla-tab-header": LocalJSX.SallaTabHeader & JSXBase.HTMLAttributes<HTMLSallaTabHeaderElement>;
3028
3051
  "salla-tabs": LocalJSX.SallaTabs & JSXBase.HTMLAttributes<HTMLSallaTabsElement>;
@@ -1,2 +1 @@
1
- import './app';
2
1
  export default function (): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.9.48",
3
+ "version": "2.10.0",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -75,11 +75,12 @@
75
75
  "typescript": "^4.4.3"
76
76
  },
77
77
  "dependencies": {
78
- "@salla.sa/twilight": "^2.9.48",
79
- "@salla.sa/twilight-tailwind-theme": "^2.9.44",
78
+ "@salla.sa/twilight": "^2.10.0",
79
+ "@salla.sa/twilight-tailwind-theme": "^2.10.0",
80
80
  "animejs": "^3.2.1",
81
81
  "filepond": "^4.30.4",
82
82
  "filepond-plugin-file-validate-size": "^2.2.7",
83
+ "filepond-plugin-file-validate-type": "^1.2.8",
83
84
  "filepond-plugin-image-edit": "^1.6.3",
84
85
  "filepond-plugin-image-exif-orientation": "^1.0.11",
85
86
  "filepond-plugin-image-preview": "^4.6.11",
@@ -87,7 +88,8 @@
87
88
  "google-maps": "^4.3.3",
88
89
  "intl-tel-input": "^17.0.13",
89
90
  "swiper": "^8.3.1",
91
+ "vanilla-lazyload": "^17.8.3",
90
92
  "vanilla-picker": "^2.12.1"
91
93
  },
92
- "gitHead": "7f93224881260d270a0190776bc6e0c0ef34e250"
94
+ "gitHead": "faefd42b67eff8388207a7db938259085be8c05f"
93
95
  }