@salla.sa/twilight-components 1.0.100 → 1.0.107

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 (109) hide show
  1. package/README.md +8 -1
  2. package/dist/cjs/{index-3771e52a.js → index-b4140db0.js} +18 -11
  3. package/dist/cjs/loader.cjs.js +3 -3
  4. package/dist/cjs/salla-add-product-button.cjs.entry.js +85 -0
  5. package/dist/cjs/{salla-add-product-button_6.cjs.entry.js → salla-branches_13.cjs.entry.js} +1015 -80
  6. package/dist/cjs/salla-conditional-fields.cjs.entry.js +4 -2
  7. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  8. package/dist/cjs/salla-quantity-input.cjs.entry.js +2 -2
  9. package/dist/cjs/twilight-components.cjs.js +3 -3
  10. package/dist/collection/collection-manifest.json +1 -1
  11. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +13 -28
  12. package/dist/collection/components/salla-branches/salla-branches.css +0 -3
  13. package/dist/collection/components/salla-branches/salla-branches.js +9 -5
  14. package/dist/collection/components/salla-button/salla-button.css +0 -3
  15. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +3 -1
  16. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +0 -3
  17. package/dist/collection/components/salla-installment/salla-installment.css +0 -3
  18. package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +2 -5
  19. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +3 -2
  20. package/dist/collection/components/salla-login-modal/salla-login-modal.css +0 -3
  21. package/dist/collection/components/salla-login-modal/salla-login-modal.js +16 -5
  22. package/dist/collection/components/salla-modal/salla-modal.css +0 -3
  23. package/dist/collection/components/salla-modal/salla-modal.js +12 -11
  24. package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +0 -3
  25. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -0
  26. package/dist/collection/components/salla-product-availability/salla-product-availability.css +0 -3
  27. package/dist/collection/components/salla-product-availability/salla-product-availability.js +18 -13
  28. package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +0 -3
  29. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +2 -2
  30. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +0 -3
  31. package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +0 -3
  32. package/dist/collection/components/salla-search/salla-search.css +0 -3
  33. package/dist/collection/components/salla-tel-input/salla-tel-input.css +2 -5
  34. package/dist/collection/components/salla-verify/salla-verify.css +0 -3
  35. package/dist/collection/global/app.js +23 -0
  36. package/dist/collection/plugins/tailwind-theme/index.js +3 -4
  37. package/dist/components/index.d.ts +17 -5
  38. package/dist/components/index.js +17 -0
  39. package/dist/components/salla-add-product-button.js +14 -12
  40. package/dist/components/salla-branches.js +8 -4
  41. package/dist/components/salla-conditional-fields.js +3 -1
  42. package/dist/components/salla-localization-modal.js +4 -3
  43. package/dist/components/salla-login-modal.js +11 -3
  44. package/dist/components/salla-modal2.js +6 -6
  45. package/dist/components/salla-offer-modal.js +1 -0
  46. package/dist/components/salla-product-availability2.js +17 -12
  47. package/dist/components/salla-quantity-input.js +1 -1
  48. package/dist/components/salla-tel-input2.js +3 -3
  49. package/dist/esm/{index-ee729716.js → index-20b84fd0.js} +18 -11
  50. package/dist/esm/loader.js +3 -3
  51. package/dist/esm/polyfills/css-shim.js +1 -1
  52. package/dist/esm/salla-add-product-button.entry.js +81 -0
  53. package/dist/esm/{salla-add-product-button_6.entry.js → salla-branches_13.entry.js} +1008 -80
  54. package/dist/esm/salla-conditional-fields.entry.js +4 -2
  55. package/dist/esm/salla-installment.entry.js +1 -1
  56. package/dist/esm/salla-quantity-input.entry.js +2 -2
  57. package/dist/esm/twilight-components.js +3 -3
  58. package/dist/twilight-components/{p-f0f7a51b.entry.js → p-15fac4f2.entry.js} +1 -1
  59. package/dist/twilight-components/p-27d01075.entry.js +4 -0
  60. package/dist/twilight-components/{p-9a75d4ec.entry.js → p-5ee94c9e.entry.js} +1 -1
  61. package/dist/twilight-components/p-6f4f4260.entry.js +4 -0
  62. package/dist/twilight-components/p-7b5b8647.entry.js +4 -0
  63. package/dist/twilight-components/p-c2bef5f2.js +5 -0
  64. package/dist/twilight-components/twilight-components.esm.js +1 -1
  65. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +1 -2
  66. package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +1 -1
  67. package/dist/types/components.d.ts +17 -13
  68. package/dist/types/global/app.d.ts +3 -0
  69. package/example/assets/tailwind.css +3938 -3
  70. package/example/assets/translations.js +4981 -0
  71. package/example/index.html +177 -155
  72. package/package.json +17 -14
  73. package/dist/cjs/salla-branches.cjs.entry.js +0 -94
  74. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +0 -93
  75. package/dist/cjs/salla-localization-modal.cjs.entry.js +0 -120
  76. package/dist/cjs/salla-login-modal.cjs.entry.js +0 -196
  77. package/dist/cjs/salla-offer-modal.cjs.entry.js +0 -144
  78. package/dist/cjs/salla-rating-modal.cjs.entry.js +0 -177
  79. package/dist/cjs/salla-rating-stars.cjs.entry.js +0 -76
  80. package/dist/cjs/salla-verify.cjs.entry.js +0 -168
  81. package/dist/esm/salla-branches.entry.js +0 -90
  82. package/dist/esm/salla-infinite-scroll.entry.js +0 -89
  83. package/dist/esm/salla-localization-modal.entry.js +0 -116
  84. package/dist/esm/salla-login-modal.entry.js +0 -192
  85. package/dist/esm/salla-offer-modal.entry.js +0 -140
  86. package/dist/esm/salla-rating-modal.entry.js +0 -173
  87. package/dist/esm/salla-rating-stars.entry.js +0 -72
  88. package/dist/esm/salla-verify.entry.js +0 -164
  89. package/dist/twilight-components/p-00c61851.entry.js +0 -4
  90. package/dist/twilight-components/p-058ae0f8.entry.js +0 -4
  91. package/dist/twilight-components/p-27530b47.entry.js +0 -4
  92. package/dist/twilight-components/p-3f90fa16.entry.js +0 -4
  93. package/dist/twilight-components/p-5c1d4ef9.entry.js +0 -4
  94. package/dist/twilight-components/p-714ff288.entry.js +0 -4
  95. package/dist/twilight-components/p-77af5fef.entry.js +0 -4
  96. package/dist/twilight-components/p-a268e672.entry.js +0 -4
  97. package/dist/twilight-components/p-d566f357.js +0 -4
  98. package/dist/twilight-components/p-df7417e4.entry.js +0 -4
  99. package/dist/twilight-components/p-e97c00e1.entry.js +0 -4
  100. package/example/.DS_Store +0 -0
  101. package/example/.gitignore +0 -2
  102. package/example/dist/.DS_Store +0 -0
  103. package/example/dist/demo.js +0 -153
  104. package/example/dist/flags.png +0 -0
  105. package/example/dist/flags@2x.png +0 -0
  106. package/example/dist/intlTelInput.min.css +0 -1
  107. package/example/dist/tailwind.css +0 -3856
  108. package/example/dist/translations.js +0 -1
  109. package/example/dist/twilight.js +0 -437
@@ -7,14 +7,16 @@
7
7
 
8
8
  <title>Salla Web Component Starter</title>
9
9
  <script src="//unpkg.com/alpinejs" defer></script>
10
- <script src="dist/translations.js"></script>
11
- <script src="dist/twilight.js"></script>
10
+ <script src="assets/translations.js"></script>
11
+ <script src="https://cdn.salla.network/%40salla.sa/twilight/latest/%40salla.sa/twilight.min.js"></script>
12
12
  <script>
13
13
  let url = window.location.href.split('/').slice(0, -1).join('/') + '/';
14
14
  salla.init({ debug: true, store: { api: url } });
15
15
  </script>
16
+
16
17
  <script type="module" src="./../dist/twilight-components/twilight-components.esm.js"></script>
17
- <link href="https://assets.salla.sa/cp/assets/css/icons/sallaicons/style.css?v0.twilight" type="text/css" rel="stylesheet">
18
+ <link href="https://assets.salla.sa/cp/assets/css/icons/sallaicons/style.css?v0.twilight" type="text/css"
19
+ rel="stylesheet">
18
20
  <link href="dist/tailwind.css" type="text/css" rel="stylesheet">
19
21
  <style>
20
22
  :root {
@@ -228,7 +230,8 @@
228
230
  style="scroll-margin-top:6.25rem">
229
231
  <div class="pb-6">
230
232
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Buttons</h2>
231
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaButton.html" class="text-primary">@see</a></p>
233
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
234
+ href="../docs/components/SallaButton.html" class="text-primary">@see</a></p>
232
235
  </div>
233
236
 
234
237
  <!-- Default -->
@@ -238,13 +241,13 @@
238
241
  <p class="text-sm text-gray-500 mt-2">Without any props</p>
239
242
  </div>
240
243
  <div class="col-span-3 flex flex-wrap items-center gap-2">
241
- <salla-button>Primary</salla-button>
242
- <salla-button color="success">success</salla-button>
243
- <salla-button color="danger">danger</salla-button>
244
- <salla-button color="warning">warning</salla-button>
245
- <salla-button color="light">light</salla-button>
246
- <salla-button color="gray">gray</salla-button>
247
- <salla-button color="dark">dark</salla-button>
244
+ <salla-button>Primary</salla-button>
245
+ <salla-button color="success">success</salla-button>
246
+ <salla-button color="danger">danger</salla-button>
247
+ <salla-button color="warning">warning</salla-button>
248
+ <salla-button color="light">light</salla-button>
249
+ <salla-button color="gray">gray</salla-button>
250
+ <salla-button color="dark">dark</salla-button>
248
251
  </div>
249
252
  </div>
250
253
 
@@ -258,13 +261,13 @@
258
261
  </div>
259
262
 
260
263
  <div class="col-span-3 flex flex-wrap items-center gap-2">
261
- <salla-button fill="outline">Primary</salla-button>
262
- <salla-button fill="outline" color="success">success</salla-button>
263
- <salla-button fill="outline" color="danger">danger</salla-button>
264
- <salla-button fill="outline" color="warning">warning</salla-button>
265
- <salla-button fill="outline" color="light">light</salla-button>
266
- <salla-button fill="outline" color="gray">gray</salla-button>
267
- <salla-button fill="outline" color="dark">dark</salla-button>
264
+ <salla-button fill="outline">Primary</salla-button>
265
+ <salla-button fill="outline" color="success">success</salla-button>
266
+ <salla-button fill="outline" color="danger">danger</salla-button>
267
+ <salla-button fill="outline" color="warning">warning</salla-button>
268
+ <salla-button fill="outline" color="light">light</salla-button>
269
+ <salla-button fill="outline" color="gray">gray</salla-button>
270
+ <salla-button fill="outline" color="dark">dark</salla-button>
268
271
  </div>
269
272
  </div>
270
273
 
@@ -308,7 +311,7 @@
308
311
  </div>
309
312
  <div class="col-span-3 flex flex-wrap items-center gap-2">
310
313
  <salla-button size="large">Large</salla-button>
311
- <salla-button >Default</salla-button>
314
+ <salla-button>Default</salla-button>
312
315
  <salla-button size="small">Small</salla-button>
313
316
  <salla-button size="large" fill="outline">Large</salla-button>
314
317
  <salla-button fill="outline">Default</salla-button>
@@ -332,22 +335,24 @@
332
335
  <h3 class="text-gray-900 font-semibold">Disabled</h3>
333
336
  </div>
334
337
  <div class="col-span-3 space-y-4">
335
- <div class="flex flex-wrap items-center gap-2">
336
- <salla-button disabled>Disabled</salla-button>
337
- <salla-button disabled color="danger">Disabled</salla-button>
338
- <salla-button disabled color="warning">Disabled</salla-button>
339
- <salla-button fill="outline" disabled>Disabled</salla-button>
340
- <salla-button fill="outline" disabled color="danger">Disabled</salla-button>
341
- <salla-button fill="outline" disabled color="warning">Disabled</salla-button>
342
- </div>
343
- <div class="flex flex-wrap items-center gap-2">
344
- <salla-button shape="icon" disabled><i class="sicon-shopping-bag"></i></salla-button>
345
- <salla-button shape="icon" disabled color="danger"><i class="sicon-shopping-bag"></i></salla-button>
346
- <salla-button shape="icon" disabled color="warning"><i class="sicon-shopping-bag"></i></salla-button>
347
- <salla-button shape="icon" fill="outline" disabled><i class="sicon-shopping-bag"></i></salla-button>
348
- <salla-button shape="icon" fill="outline" disabled color="danger"><i class="sicon-shopping-bag"></i></salla-button>
349
- <salla-button shape="icon" fill="outline" disabled color="warning"><i class="sicon-shopping-bag"></i></salla-button>
350
- </div>
338
+ <div class="flex flex-wrap items-center gap-2">
339
+ <salla-button disabled>Disabled</salla-button>
340
+ <salla-button disabled color="danger">Disabled</salla-button>
341
+ <salla-button disabled color="warning">Disabled</salla-button>
342
+ <salla-button fill="outline" disabled>Disabled</salla-button>
343
+ <salla-button fill="outline" disabled color="danger">Disabled</salla-button>
344
+ <salla-button fill="outline" disabled color="warning">Disabled</salla-button>
345
+ </div>
346
+ <div class="flex flex-wrap items-center gap-2">
347
+ <salla-button shape="icon" disabled><i class="sicon-shopping-bag"></i></salla-button>
348
+ <salla-button shape="icon" disabled color="danger"><i class="sicon-shopping-bag"></i></salla-button>
349
+ <salla-button shape="icon" disabled color="warning"><i class="sicon-shopping-bag"></i></salla-button>
350
+ <salla-button shape="icon" fill="outline" disabled><i class="sicon-shopping-bag"></i></salla-button>
351
+ <salla-button shape="icon" fill="outline" disabled color="danger"><i class="sicon-shopping-bag"></i>
352
+ </salla-button>
353
+ <salla-button shape="icon" fill="outline" disabled color="warning"><i class="sicon-shopping-bag"></i>
354
+ </salla-button>
355
+ </div>
351
356
  </div>
352
357
  </div>
353
358
 
@@ -360,13 +365,13 @@
360
365
  </p>
361
366
  </div>
362
367
  <div class="col-span-3 flex flex-wrap items-center gap-2">
363
- <salla-button shape="link">Primary Link</salla-button>
364
- <salla-button shape="link" color="success">success Link</salla-button>
365
- <salla-button shape="link" color="danger">danger Link</salla-button>
366
- <salla-button shape="link" color="warning">warning Link</salla-button>
367
- <salla-button shape="link" color="light">light Link</salla-button>
368
- <salla-button shape="link" color="gray">gray Link</salla-button>
369
- <salla-button shape="link" color="dark">dark Link</salla-button>
368
+ <salla-button shape="link">Primary Link</salla-button>
369
+ <salla-button shape="link" color="success">success Link</salla-button>
370
+ <salla-button shape="link" color="danger">danger Link</salla-button>
371
+ <salla-button shape="link" color="warning">warning Link</salla-button>
372
+ <salla-button shape="link" color="light">light Link</salla-button>
373
+ <salla-button shape="link" color="gray">gray Link</salla-button>
374
+ <salla-button shape="link" color="dark">dark Link</salla-button>
370
375
  </div>
371
376
  </div>
372
377
 
@@ -378,12 +383,12 @@
378
383
  </p>
379
384
  </div>
380
385
  <div class="col-span-3 flex flex-wrap items-center gap-2">
381
- <salla-button href="https://salla.sa">Salla</salla-button>
382
- <salla-button href="https://salla.dev/">Salla Developers</salla-button>
383
- <salla-button href="https://apps.salla.sa">Salla Apps</salla-button>
384
- <salla-button shape="link" href="https://salla.sa">Salla</salla-button>
385
- <salla-button shape="link" href="https://salla.dev/">Salla Developers</salla-button>
386
- <salla-button shape="link" href="https://apps.salla.sa">Salla Apps</salla-button>
386
+ <salla-button href="https://salla.sa">Salla</salla-button>
387
+ <salla-button href="https://salla.dev/">Salla Developers</salla-button>
388
+ <salla-button href="https://apps.salla.sa">Salla Apps</salla-button>
389
+ <salla-button shape="link" href="https://salla.sa">Salla</salla-button>
390
+ <salla-button shape="link" href="https://salla.dev/">Salla Developers</salla-button>
391
+ <salla-button shape="link" href="https://apps.salla.sa">Salla Apps</salla-button>
387
392
  </div>
388
393
  </div>
389
394
 
@@ -434,7 +439,8 @@
434
439
  <salla-button shape="icon" color="danger" size="small"><i class="sicon-cancel"></i></salla-button>
435
440
  <salla-button shape="icon" size="large" fill="outline"><i class="sicon-shopping-bag"></i></salla-button>
436
441
  <salla-button shape="icon" color="success" fill="outline"><i class="sicon-check"></i></salla-button>
437
- <salla-button shape="icon" color="danger" size="small" fill="outline"><i class="sicon-cancel"></i></salla-button>
442
+ <salla-button shape="icon" color="danger" size="small" fill="outline"><i class="sicon-cancel"></i>
443
+ </salla-button>
438
444
  </div>
439
445
  </div>
440
446
  </section>
@@ -445,7 +451,8 @@
445
451
  style="scroll-margin-top:6.25rem">
446
452
  <div class="pb-6">
447
453
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Modals</h2>
448
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaModal.html" class="text-primary">@see</a></p>
454
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
455
+ href="../docs/components/SallaModal.html" class="text-primary">@see</a></p>
449
456
  </div>
450
457
 
451
458
  <!-- Width -->
@@ -462,12 +469,16 @@
462
469
 
463
470
  <!-- Modal Size -->
464
471
  <template x-for="width in widths" :key="width.id">
465
- <salla-button :data-target="'modal-size-' + width.id" onclick="salla.event.dispatch('modal::open')" x-text="width.label"></salla-button>
472
+ <salla-button :data-target="'modal-size-' + width.id" onclick="salla.event.dispatch('modal::open')"
473
+ x-text="width.label"></salla-button>
466
474
  </template>
467
475
 
468
476
  <template x-for="width in widths" :key="width.id">
469
- <salla-modal :id="'modal-size-' + width.id" :width="width.id" modal-title="Vitae atque quisquam ea rem" sub-title="subtitle text here">
470
- <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat magni ea nulla exercitationem labore debitis.</p>
477
+ <salla-modal :id="'modal-size-' + width.id" :width="width.id" modal-title="Vitae atque quisquam ea rem"
478
+ sub-title="subtitle text here">
479
+ <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga
480
+ obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat
481
+ magni ea nulla exercitationem labore debitis.</p>
471
482
  </salla-modal>
472
483
  </template>
473
484
  </div>
@@ -485,17 +496,15 @@
485
496
  <div class="col-span-3 flex flex-wrap items-center gap-2">
486
497
 
487
498
  <template x-for="item in items" :key="item.id">
488
- <salla-button :data-target="'modal-position-' + item.id" onclick="salla.event.dispatch('modal::open')" x-text="item.label"></salla-button>
499
+ <salla-button :data-target="'modal-position-' + item.id" onclick="salla.event.dispatch('modal::open')"
500
+ x-text="item.label"></salla-button>
489
501
  </template>
490
502
 
491
503
  <template x-for="item in items" :key="item.id">
492
- <salla-modal
493
- :id="'modal-position-' + item.id"
494
- :position="item.id"
495
- size="sm"
496
- modal-title="Congratulations"
504
+ <salla-modal :id="'modal-position-' + item.id" :position="item.id" size="sm" modal-title="Congratulations"
497
505
  sub-title="Good, you are right!">
498
- <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga obcaecati voluptatum et voluptatem illo quod.</p>
506
+ <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga
507
+ obcaecati voluptatum et voluptatem illo quod.</p>
499
508
  </salla-modal>
500
509
  </salla-modal>
501
510
  </template>
@@ -515,29 +524,23 @@
515
524
  <div class="col-span-3 flex flex-wrap items-center gap-2">
516
525
 
517
526
  <template x-for="icon in icons" :key="icon.id">
518
- <salla-button :data-target="'modal-icon-' + icon.id" onclick="salla.event.dispatch('modal::open')" x-text="icon.label"></salla-button>
527
+ <salla-button :data-target="'modal-icon-' + icon.id" onclick="salla.event.dispatch('modal::open')"
528
+ x-text="icon.label"></salla-button>
519
529
  </template>
520
- <salla-button data-target="modal-icon-image" onclick="salla.event.dispatch('modal::open')">Image as Icon</salla-button>
530
+ <salla-button data-target="modal-icon-image" onclick="salla.event.dispatch('modal::open')">Image as Icon
531
+ </salla-button>
521
532
 
522
533
  <template x-for="icon in icons" :key="icon.id">
523
- <salla-modal
524
- :id="'modal-icon-' + icon.id"
525
- :icon="icon.icon"
526
- :icon-style="icon.id"
527
- width="sm"
528
- modal-title="Vitae atque quisquam ea rem"
529
- sub-title="subtitle text here">
530
- <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat magni ea nulla exercitationem labore debitis.</p>
534
+ <salla-modal :id="'modal-icon-' + icon.id" :icon="icon.icon" :icon-style="icon.id" width="sm"
535
+ modal-title="Vitae atque quisquam ea rem" sub-title="subtitle text here">
536
+ <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga
537
+ obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat
538
+ magni ea nulla exercitationem labore debitis.</p>
531
539
  </salla-modal>
532
540
  </template>
533
541
 
534
- <salla-modal
535
- id="modal-icon-image"
536
- image-icon="./assets/images/star.png"
537
- width="sm"
538
- sub-title-first
539
- modal-title="Good, You are right!"
540
- sub-title="Congratulations">
542
+ <salla-modal id="modal-icon-image" image-icon="./assets/images/star.png" width="sm" sub-title-first
543
+ modal-title="Good, You are right!" sub-title="Congratulations">
541
544
  </salla-modal>
542
545
  </div>
543
546
  </div>
@@ -553,18 +556,17 @@
553
556
  <div class="col-span-3 flex flex-wrap items-center gap-2">
554
557
 
555
558
  <template x-for="item in items" :key="item.id">
556
- <salla-button :data-target="'modal-subtitle-' + item.id" onclick="salla.event.dispatch('modal::open')" x-text="item.label"></salla-button>
559
+ <salla-button :data-target="'modal-subtitle-' + item.id" onclick="salla.event.dispatch('modal::open')"
560
+ x-text="item.label"></salla-button>
557
561
  </template>
558
562
 
559
563
  <template x-for="item in items" :key="item.id">
560
- <salla-modal
561
- :id="'modal-subtitle-' + item.id"
562
- :sub-title-first="item.id == 'first' ? true : false"
563
- icon="sicon-shopping-bag"
564
- modal-title="Vitae atque quisquam ea rem"
565
- icon-style="primary"
564
+ <salla-modal :id="'modal-subtitle-' + item.id" :sub-title-first="item.id == 'first' ? true : false"
565
+ icon="sicon-shopping-bag" modal-title="Vitae atque quisquam ea rem" icon-style="primary"
566
566
  sub-title="subtitle text here">
567
- <p class="text-gray-500 mb-4 text-center">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat magni ea nulla exercitationem labore debitis.</p>
567
+ <p class="text-gray-500 mb-4 text-center">Lorem ipsum, dolor sit amet consectetur adipisicing elit.
568
+ Vitae eius fuga obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit
569
+ at repellat magni ea nulla exercitationem labore debitis.</p>
568
570
  </salla-modal>
569
571
  </template>
570
572
 
@@ -585,13 +587,12 @@
585
587
  <div class="col-span-3 flex flex-wrap items-center gap-2">
586
588
 
587
589
  <template x-for="item in items" :key="item.id">
588
- <salla-button :data-target="'modal-padding-' + item.id" onclick="salla.event.dispatch('modal::open')" x-text="item.label"></salla-button>
590
+ <salla-button :data-target="'modal-padding-' + item.id" onclick="salla.event.dispatch('modal::open')"
591
+ x-text="item.label"></salla-button>
589
592
  </template>
590
593
 
591
594
  <template x-for="item in items" :key="item.id">
592
- <salla-modal
593
- :id="'modal-padding-' + item.id"
594
- :no-padding="item.id == 'nopadding' ? true : false">
595
+ <salla-modal :id="'modal-padding-' + item.id" :no-padding="item.id == 'nopadding' ? true : false">
595
596
  <img src="https://source.unsplash.com/ejhjSZKTeeg/1024x800">
596
597
  </salla-modal>
597
598
  </template>
@@ -604,19 +605,17 @@
604
605
  <h3 class="text-gray-900 font-semibold">Is Closable</h3>
605
606
  </div>
606
607
  <div class="col-span-3 flex flex-wrap items-center gap-2">
607
- <salla-button data-target="modal-not-closable" onclick="salla.event.dispatch('modal::open')">Not Closable</salla-button>
608
- <salla-modal
609
- icon="sicon-home"
610
- icon-style="primary"
611
- id="modal-not-closable"
612
- modal-title="Not Closable Molda"
613
- sub-title="You can't close it by clicking the background overlay and there is'nt cloase button"
614
- is-closable="false">
615
- <div class="text-center">
616
- <p class="text-gray-500 mb-4">Close button below added as a modal content</p>
617
- <salla-button fill="outline" color="light" onclick="salla.event.dispatch('modal::close')" data-target="modal-not-closable">Close</salla-button>
618
- </div>
619
- </salla-modal>
608
+ <salla-button data-target="modal-not-closable" onclick="salla.event.dispatch('modal::open')">Not Closable
609
+ </salla-button>
610
+ <salla-modal icon="sicon-home" icon-style="primary" id="modal-not-closable" modal-title="Not Closable Molda"
611
+ sub-title="You can't close it by clicking the background overlay and there is'nt cloase button"
612
+ is-closable="false">
613
+ <div class="text-center">
614
+ <p class="text-gray-500 mb-4">Close button below added as a modal content</p>
615
+ <salla-button fill="outline" color="light" onclick="salla.event.dispatch('modal::close')"
616
+ data-target="modal-not-closable">Close</salla-button>
617
+ </div>
618
+ </salla-modal>
620
619
  </div>
621
620
  </div>
622
621
 
@@ -631,22 +630,24 @@
631
630
  <div class="col-span-3 flex flex-wrap items-center gap-2">
632
631
 
633
632
  <template x-for="item in items" :key="item.id">
634
- <salla-button :data-target="'modal-footer-' + item.id" onclick="salla.event.dispatch('modal::open')" x-text="item.label"></salla-button>
633
+ <salla-button :data-target="'modal-footer-' + item.id" onclick="salla.event.dispatch('modal::open')"
634
+ x-text="item.label"></salla-button>
635
635
  </template>
636
636
 
637
637
  <template x-for="item in items" :key="item.id">
638
- <salla-modal
639
- :id="'modal-footer-' + item.id"
640
- icon="sicon-shopping-bag"
641
- modal-title="Vitae atque quisquam ea rem"
642
- icon-style="primary"
643
- sub-title="subtitle text here">
644
- <p class="text-gray-500 mb-8 text-center">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat magni ea nulla exercitationem labore debitis.</p>
638
+ <salla-modal :id="'modal-footer-' + item.id" icon="sicon-shopping-bag"
639
+ modal-title="Vitae atque quisquam ea rem" icon-style="primary" sub-title="subtitle text here">
640
+ <p class="text-gray-500 mb-8 text-center">Lorem ipsum, dolor sit amet consectetur adipisicing elit.
641
+ Vitae eius fuga obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit
642
+ at repellat magni ea nulla exercitationem labore debitis.</p>
645
643
  <div x-show="item.id == 'footer'" slot="footer" class="grid grid-cols-2 gap-3">
646
- <salla-button class="w-full" fill="outline" color="light" onclick="salla.event.dispatch('modal::close')" :data-target="'modal-footer-' + item.id">Cancel</salla-button>
647
- <salla-button class="w-full" onclick="salla.event.dispatch('modal::close')" :data-target="'modal-footer-' + item.id">Ok</salla-button>
644
+ <salla-button class="w-full" fill="outline" color="light"
645
+ onclick="salla.event.dispatch('modal::close')" :data-target="'modal-footer-' + item.id">Cancel
646
+ </salla-button>
647
+ <salla-button class="w-full" onclick="salla.event.dispatch('modal::close')"
648
+ :data-target="'modal-footer-' + item.id">Ok</salla-button>
648
649
  </div>
649
- </salla-modal>
650
+ </salla-modal>
650
651
  </template>
651
652
 
652
653
  </div>
@@ -661,7 +662,8 @@
661
662
  style="scroll-margin-top:6.25rem">
662
663
  <div class="pb-6">
663
664
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Login & Register Modal</h2>
664
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaLogin.html" class="text-primary">@see</a></p>
665
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
666
+ href="../docs/components/SallaLogin.html" class="text-primary">@see</a></p>
665
667
  </div>
666
668
 
667
669
 
@@ -673,19 +675,16 @@
673
675
  <salla-button onclick="salla.event.dispatch('login::open')">Login with email</salla-button>
674
676
  <salla-button onclick="salla.event.dispatch('login::open')">Login with mobile</salla-button>
675
677
  <salla-button onclick="salla.event.dispatch('login::open')">Login with both</salla-button>
676
- <salla-login-modal
677
- id="login-modal"
678
- is-email-allowed
679
- is-mobile-allowed
680
- is-email-required></salla-login-modal>
678
+ <salla-login-modal id="login-modal" is-email-allowed is-mobile-allowed is-email-required>
679
+ </salla-login-modal>
681
680
  <!-- <salla-button x-on:click="method = 'email'" onclick="salla.event.dispatch('login::open')">With email </salla-button>
682
681
  <salla-button x-on:click="method = 'phone'" onclick="salla.event.dispatch('login::open')">With phone</salla-button>
683
682
  <salla-button x-on:click="method = 'both'" onclick="salla.event.dispatch('login::open')">With both</salla-button>
684
-
685
- <salla-login-modal
686
- id="login-modal"
687
- :is-email-allowed="method == 'email' || method == 'both'"
688
- :is-mobile-allowed="method == 'phone' || method == 'both'"
683
+
684
+ <salla-login-modal
685
+ id="login-modal"
686
+ :is-email-allowed="method == 'email' || method == 'both'"
687
+ :is-mobile-allowed="method == 'phone' || method == 'both'"
689
688
  is-email-required></salla-login-modal> -->
690
689
  </div>
691
690
  </div>
@@ -695,8 +694,10 @@
695
694
  <section aria-labelledby="buttons-section-heading" id="product-marketing" class="divide-y divide-gray-200"
696
695
  style="scroll-margin-top:6.25rem">
697
696
  <div class="pb-6">
698
- <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Localization (Language & Currency) Modal</h2>
699
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaLogin.html" class="text-primary">@see</a></p>
697
+ <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Localization (Language &
698
+ Currency) Modal</h2>
699
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
700
+ href="../docs/components/SallaLogin.html" class="text-primary">@see</a></p>
700
701
  </div>
701
702
 
702
703
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
@@ -715,7 +716,8 @@
715
716
  style="scroll-margin-top:6.25rem">
716
717
  <div class="pb-6">
717
718
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Search</h2>
718
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaLogin.html" class="text-primary">@see</a></p>
719
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
720
+ href="../docs/components/SallaLogin.html" class="text-primary">@see</a></p>
719
721
  </div>
720
722
 
721
723
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
@@ -727,7 +729,7 @@
727
729
  <salla-search></salla-search>
728
730
  </div>
729
731
  </div>
730
-
732
+
731
733
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
732
734
  <div class="col-span-3 xl:col-span-1">
733
735
  <h3 class="text-gray-900 font-semibold">Inline Search</h3>
@@ -736,7 +738,7 @@
736
738
  <salla-search inline height="50" class="w-full mb-10"></salla-search>
737
739
  </div>
738
740
  </div>
739
-
741
+
740
742
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
741
743
  <div class="col-span-3 xl:col-span-1">
742
744
  <h3 class="text-gray-900 font-semibold">Oval Input</h3>
@@ -753,7 +755,8 @@
753
755
  style="scroll-margin-top:6.25rem">
754
756
  <div class="pb-6">
755
757
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Offers Modal</h2>
756
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaOffer.html" class="text-primary">@see</a></p>
758
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
759
+ href="../docs/components/SallaOffer.html" class="text-primary">@see</a></p>
757
760
  </div>
758
761
 
759
762
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
@@ -773,7 +776,8 @@
773
776
  style="scroll-margin-top:6.25rem">
774
777
  <div class="pb-6">
775
778
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Branches Modal</h2>
776
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaOffer.html" class="text-primary">@see</a></p>
779
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
780
+ href="../docs/components/SallaOffer.html" class="text-primary">@see</a></p>
777
781
  </div>
778
782
 
779
783
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
@@ -781,8 +785,10 @@
781
785
  <h3 class="text-gray-900 font-semibold">Branches Modal</h3>
782
786
  </div>
783
787
  <div class="col-span-3 flex flex-wrap items-center gap-2">
784
- <salla-button data-target="branches-header" onclick="salla.event.dispatch('branches::open')">Choose branche</salla-button>
785
- <salla-button data-target="branches-single" onclick="salla.event.dispatch('branches::open')">Products availability</salla-button>
788
+ <salla-button data-target="branches-header" onclick="salla.event.dispatch('branches::open')">Choose branche
789
+ </salla-button>
790
+ <salla-button data-target="branches-single" onclick="salla.event.dispatch('branches::open')">Products
791
+ availability</salla-button>
786
792
 
787
793
  <salla-branches id="branches-header" position="header"></salla-branches>
788
794
  <salla-branches id="branches-single" position="single"></salla-branches>
@@ -797,7 +803,8 @@
797
803
  <div class="pb-6">
798
804
  <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Product Availability
799
805
  </h2>
800
- <p class="text-sm text-gray-500 mt-2">For more info and description <a href="../docs/components/SallaOffer.html" class="text-primary">@see</a></p>
806
+ <p class="text-sm text-gray-500 mt-2">For more info and description <a
807
+ href="../docs/components/SallaOffer.html" class="text-primary">@see</a></p>
801
808
  </div>
802
809
 
803
810
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
@@ -815,16 +822,18 @@
815
822
  <section aria-labelledby="buttons-section-heading" id="product-marketing" class="divide-y divide-gray-200"
816
823
  style="scroll-margin-top:6.25rem">
817
824
  <div class="pb-6">
818
- <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">International Telephone Input</h2>
819
- <p class="text-sm text-gray-500 mt-2">Using: <a class="text-primary" href="https://github.com/jackocnr/intl-tel-input" target="_blank">International
820
- Telephone Input</a></p>
825
+ <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">International Telephone Input
826
+ </h2>
827
+ <p class="text-sm text-gray-500 mt-2">Using: <a class="text-primary"
828
+ href="https://github.com/jackocnr/intl-tel-input" target="_blank">International
829
+ Telephone Input</a></p>
821
830
  </div>
822
831
 
823
832
  <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
824
833
  <div class="col-span-3 xl:col-span-1">
825
834
  <h3 class="text-gray-900 font-semibold">International
826
835
  Telephone Input</h3>
827
-
836
+
828
837
  <salla-button shape="link" onclick="getTelValues()">Get Values</salla-button>
829
838
  </div>
830
839
  <div class="col-span-3 flex flex-wrap items-start gap-2">
@@ -918,30 +927,43 @@
918
927
  <h3 class="text-gray-900 font-semibold">Infinite Scroll</h3>
919
928
  </div>
920
929
  <div class="col-span-3 flex flex-wrap items-center justify-center gap-2">
921
- <salla-infinite-scroll
922
- next-page="infinit-scroll.html?page=2"
923
- container=".i-container"
924
- item=".i-item">
925
- <div class="mb-4">
926
- <h2 class="text-3xl font-bold">Lorem ipsum dolor sit amet</h2>
927
- <p class="text-gray-400">Lorem ipsum dolor sit amet consectetur adipisicing elit. Culpa ipsam magni saepe assumenda minus animi voluptates fugit, nulla perspiciatis nihil obcaecati ab repellendus maxime. Sapiente ipsum hic harum tenetur illo?</p>
928
- </div>
929
- <div class="i-container w-full grid grid-cols-5 p-4 gap-6 border rounded-md">
930
- <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-green-100">1</div>
931
- <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-red-100">2</div>
932
- <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-yellow-100">3</div>
933
- <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-gray-100">4</div>
934
- <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-purple-100">5</div>
935
- </div>
930
+ <salla-infinite-scroll next-page="infinit-scroll.html?page=2" container=".i-container" item=".i-item">
931
+ <div class="mb-4">
932
+ <h2 class="text-3xl font-bold">Lorem ipsum dolor sit amet</h2>
933
+ <p class="text-gray-400">Lorem ipsum dolor sit amet consectetur adipisicing elit. Culpa ipsam magni
934
+ saepe assumenda minus animi voluptates fugit, nulla perspiciatis nihil obcaecati ab repellendus
935
+ maxime. Sapiente ipsum hic harum tenetur illo?</p>
936
+ </div>
937
+ <div class="i-container w-full grid grid-cols-5 p-4 gap-6 border rounded-md">
938
+ <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-green-100">1</div>
939
+ <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-red-100">2</div>
940
+ <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-yellow-100">3</div>
941
+ <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-gray-100">4</div>
942
+ <div class="i-item w-full h-40 flex items-center justify-center rounded-md bg-purple-100">5</div>
943
+ </div>
936
944
  </salla-infinite-scroll>
937
945
  </div>
938
946
 
939
-
940
-
947
+
948
+
941
949
  </div>
942
950
 
943
951
  </section>
944
952
 
953
+ <!-- -->
954
+ <!-- Modal Size -->
955
+ <!-- <template x-for="width in widths" :key="width.id"> -->
956
+ <salla-button data-target="testModel" onclick="salla.event.dispatch('modal::open')">Test</salla-button>
957
+ <!-- </template> -->
958
+
959
+ <!-- <template x-for="width in widths" :key="width.id"> -->
960
+ <salla-modal id="testModel" modal-title="Vitae atque quisquam ea rem" sub-title="subtitle text here">
961
+ <p class="text-gray-500 mb-4">Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vitae eius fuga
962
+ obcaecati voluptatum et voluptatem illo quod, vero dignissimos nobis aperiam suscipit at repellat magni ea
963
+ nulla exercitationem labore debitis.</p>
964
+ </salla-modal>
965
+ <!-- </template> -->
966
+
945
967
  </div>
946
968
  </div>
947
969