@salla.sa/twilight-components 1.0.57 → 1.0.60

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 (161) hide show
  1. package/dist/cjs/{index-0b5b5867.js → index-543e387e.js} +293 -8
  2. package/dist/cjs/index.cjs.js +0 -11
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/salla-branches.cjs.entry.js +2 -2
  5. package/dist/cjs/salla-button.cjs.entry.js +9 -9
  6. package/dist/cjs/salla-conditional-fields.cjs.entry.js +90 -0
  7. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  8. package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
  9. package/dist/cjs/salla-login-modal.cjs.entry.js +199 -4
  10. package/dist/cjs/salla-modal_2.cjs.entry.js +87 -4
  11. package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
  12. package/dist/cjs/salla-product-availability.cjs.entry.js +2 -2
  13. package/dist/cjs/salla-quantity-input.cjs.entry.js +67 -0
  14. package/dist/cjs/salla-rating-modal.cjs.entry.js +6 -56
  15. package/dist/cjs/salla-rating-stars.cjs.entry.js +80 -0
  16. package/dist/cjs/salla-tabby.cjs.entry.js +19 -0
  17. package/dist/cjs/salla-tamara.cjs.entry.js +19 -0
  18. package/dist/cjs/salla-tel-input.cjs.entry.js +2 -2
  19. package/dist/cjs/salla-verify-modal.cjs.entry.js +2 -2
  20. package/dist/cjs/twilight-components.cjs.js +2 -2
  21. package/dist/collection/collection-manifest.json +7 -2
  22. package/dist/collection/components/salla-branches/salla-branches.css +1077 -0
  23. package/dist/collection/components/salla-button/salla-button.css +1077 -0
  24. package/dist/collection/components/salla-button/salla-button.js +10 -10
  25. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.css +3 -0
  26. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +96 -0
  27. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +1077 -0
  28. package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +1077 -0
  29. package/dist/collection/components/salla-login-modal/salla-login-modal.css +1077 -0
  30. package/dist/collection/components/salla-modal/salla-modal.css +1077 -0
  31. package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +1077 -0
  32. package/dist/collection/components/salla-product-availability/salla-product-availability.css +1077 -0
  33. package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +3 -0
  34. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +74 -0
  35. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +1077 -0
  36. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +5 -59
  37. package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +1089 -0
  38. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +137 -0
  39. package/dist/collection/components/salla-search/salla-search.css +1077 -0
  40. package/dist/collection/components/salla-tabby/salla-tabby.css +1117 -0
  41. package/dist/collection/components/salla-tabby/salla-tabby.js +14 -0
  42. package/dist/collection/components/salla-tamara/salla-tamara.css +1135 -0
  43. package/dist/collection/components/salla-tamara/salla-tamara.js +15 -0
  44. package/dist/collection/components/salla-tel-input/salla-tel-input.css +1290 -0
  45. package/dist/collection/components/salla-verify-modal/salla-verify-modal.css +1077 -0
  46. package/dist/collection/index.js +1 -2
  47. package/dist/components/Helper.js +23 -0
  48. package/dist/components/index.d.ts +26 -0
  49. package/dist/components/index.js +1 -0
  50. package/dist/components/salla-branches.d.ts +7 -0
  51. package/dist/components/salla-branches.js +90 -0
  52. package/dist/components/salla-button.d.ts +7 -0
  53. package/dist/components/salla-button.js +118 -0
  54. package/dist/components/salla-conditional-fields.d.ts +7 -0
  55. package/dist/components/salla-conditional-fields.js +89 -0
  56. package/dist/components/salla-infinite-scroll.d.ts +7 -0
  57. package/dist/components/salla-infinite-scroll.js +93 -0
  58. package/dist/components/salla-localization-modal.d.ts +7 -0
  59. package/dist/components/salla-localization-modal.js +116 -0
  60. package/dist/components/salla-login-modal.d.ts +7 -0
  61. package/dist/components/salla-login-modal.js +205 -0
  62. package/dist/components/salla-modal.d.ts +7 -0
  63. package/dist/components/salla-modal.js +152 -0
  64. package/dist/components/salla-offer-modal.d.ts +7 -0
  65. package/dist/components/salla-offer-modal.js +141 -0
  66. package/dist/components/salla-product-availability.d.ts +7 -0
  67. package/dist/components/salla-product-availability.js +114 -0
  68. package/dist/components/salla-quantity-input.d.ts +7 -0
  69. package/dist/components/salla-quantity-input.js +66 -0
  70. package/dist/components/salla-rating-modal.d.ts +7 -0
  71. package/dist/components/salla-rating-modal.js +178 -0
  72. package/dist/components/salla-rating-stars.d.ts +7 -0
  73. package/dist/components/salla-rating-stars.js +79 -0
  74. package/dist/components/salla-search.d.ts +7 -0
  75. package/dist/components/salla-search.js +91 -0
  76. package/dist/components/salla-tabby.d.ts +7 -0
  77. package/dist/components/salla-tabby.js +18 -0
  78. package/dist/components/salla-tamara.d.ts +7 -0
  79. package/dist/components/salla-tamara.js +19 -0
  80. package/dist/components/salla-tel-input.d.ts +7 -0
  81. package/dist/components/salla-tel-input.js +1477 -0
  82. package/dist/components/salla-verify-modal.d.ts +7 -0
  83. package/dist/components/salla-verify-modal.js +147 -0
  84. package/dist/esm/{index-8b97d225.js → index-2423ebcb.js} +293 -8
  85. package/dist/esm/index.js +1 -4
  86. package/dist/esm/loader.js +2 -2
  87. package/dist/esm/salla-branches.entry.js +2 -2
  88. package/dist/esm/salla-button.entry.js +9 -9
  89. package/dist/esm/salla-conditional-fields.entry.js +86 -0
  90. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  91. package/dist/esm/salla-localization-modal.entry.js +2 -2
  92. package/dist/esm/salla-login-modal.entry.js +202 -3
  93. package/dist/esm/salla-modal_2.entry.js +87 -4
  94. package/dist/esm/salla-offer-modal.entry.js +2 -2
  95. package/dist/esm/salla-product-availability.entry.js +2 -2
  96. package/dist/esm/salla-quantity-input.entry.js +63 -0
  97. package/dist/esm/salla-rating-modal.entry.js +6 -56
  98. package/dist/esm/salla-rating-stars.entry.js +76 -0
  99. package/dist/esm/salla-tabby.entry.js +15 -0
  100. package/dist/esm/salla-tamara.entry.js +15 -0
  101. package/dist/esm/salla-tel-input.entry.js +2 -2
  102. package/dist/esm/salla-verify-modal.entry.js +2 -2
  103. package/dist/esm/twilight-components.js +2 -2
  104. package/dist/twilight-components/index.esm.js +0 -1
  105. package/dist/twilight-components/p-01accdcd.entry.js +1 -0
  106. package/dist/twilight-components/p-0e85664f.entry.js +1 -0
  107. package/dist/twilight-components/p-0ee36dd8.entry.js +1 -0
  108. package/dist/twilight-components/p-1fb0ca8a.js +1 -0
  109. package/dist/twilight-components/p-1ffd27c4.entry.js +1 -0
  110. package/dist/twilight-components/p-2012882b.entry.js +1 -0
  111. package/dist/twilight-components/p-3d9fd3d3.entry.js +1 -0
  112. package/dist/twilight-components/p-5b2cdd7c.entry.js +1 -0
  113. package/dist/twilight-components/p-728bd268.entry.js +1 -0
  114. package/dist/twilight-components/p-72985a41.entry.js +1 -0
  115. package/dist/twilight-components/p-747f80df.entry.js +1 -0
  116. package/dist/twilight-components/p-81a7a676.entry.js +1 -0
  117. package/dist/twilight-components/p-880711d4.entry.js +1 -0
  118. package/dist/twilight-components/p-8dd742df.entry.js +1 -0
  119. package/dist/twilight-components/p-9642541b.entry.js +1 -0
  120. package/dist/twilight-components/p-a24588ab.entry.js +1 -0
  121. package/dist/twilight-components/p-e3cbda45.entry.js +1 -0
  122. package/dist/twilight-components/twilight-components.css +1 -1
  123. package/dist/twilight-components/twilight-components.esm.js +1 -1
  124. package/dist/types/components/salla-button/salla-button.d.ts +2 -2
  125. package/dist/types/components/salla-conditional-fields/salla-conditional-fields.d.ts +10 -0
  126. package/dist/types/components/salla-quantity-input/salla-quantity-input.d.ts +19 -0
  127. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +0 -3
  128. package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +11 -0
  129. package/dist/types/components/salla-tabby/salla-tabby.d.ts +3 -0
  130. package/dist/types/components/salla-tamara/salla-tamara.d.ts +3 -0
  131. package/dist/types/components.d.ts +79 -8
  132. package/dist/types/index.d.ts +1 -2
  133. package/example/assets/images/star.png +0 -0
  134. package/example/dist/tailwind.css +964 -329
  135. package/example/dist/twilight.js +437 -2
  136. package/example/index.html +681 -125
  137. package/package.json +17 -10
  138. package/dist/cjs/salla-login-modal-02e4e65e.js +0 -204
  139. package/dist/cjs/salla-search-9d17eb96.js +0 -90
  140. package/dist/esm/salla-login-modal-7ad386c8.js +0 -202
  141. package/dist/esm/salla-search-ce45eb5b.js +0 -88
  142. package/dist/loader/cdn.js +0 -3
  143. package/dist/loader/index.cjs.js +0 -3
  144. package/dist/loader/index.d.ts +0 -13
  145. package/dist/loader/index.es2017.js +0 -3
  146. package/dist/loader/index.js +0 -4
  147. package/dist/loader/package.json +0 -10
  148. package/dist/twilight-components/p-1514ed09.js +0 -1
  149. package/dist/twilight-components/p-2a032b88.entry.js +0 -1
  150. package/dist/twilight-components/p-2f3f4cce.entry.js +0 -1
  151. package/dist/twilight-components/p-635c08a7.entry.js +0 -1
  152. package/dist/twilight-components/p-646fbb7f.entry.js +0 -1
  153. package/dist/twilight-components/p-64977eab.entry.js +0 -1
  154. package/dist/twilight-components/p-79ab1ed9.entry.js +0 -1
  155. package/dist/twilight-components/p-7c4ba872.entry.js +0 -1
  156. package/dist/twilight-components/p-84936d9d.entry.js +0 -1
  157. package/dist/twilight-components/p-884a80ca.entry.js +0 -1
  158. package/dist/twilight-components/p-c51984d6.entry.js +0 -1
  159. package/dist/twilight-components/p-cb1c59a2.js +0 -1
  160. package/dist/twilight-components/p-ebd63ad4.js +0 -1
  161. package/dist/twilight-components/p-ee9d8563.entry.js +0 -1
@@ -1,25 +1,26 @@
1
1
  <!DOCTYPE html>
2
2
  <html dir="ltr" lang="en">
3
+
3
4
  <head>
4
- <meta charset="utf-8"/>
5
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
5
+ <meta charset="utf-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
7
 
7
8
  <title>Salla Web Component Starter</title>
9
+ <script src="//unpkg.com/alpinejs" defer></script>
8
10
  <script src="dist/translations.js"></script>
9
11
  <script src="dist/twilight.js"></script>
10
12
  <script>
11
13
  let url = window.location.href.split('/').slice(0, -1).join('/') + '/';
12
- salla.init({debug: true, store: {api: url}});
14
+ salla.init({ debug: true, store: { api: url } });
13
15
  </script>
14
- <script type="module" src="dist/twilight-components/twilight-components.esm.js"></script>
15
- <link href="https://assets.salla.sa/cp/assets/css/icons/sallaicons/style.css?v0.twilight" type="text/css"
16
- rel="stylesheet">
16
+ <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">
17
18
  <link href="dist/tailwind.css" type="text/css" rel="stylesheet">
18
- <link href="dist/intlTelInput.min.css" type="text/css" rel="stylesheet">
19
19
  <style>
20
20
  :root {
21
21
  --font-main: 'DINNextLTArabic-Regular';
22
22
  --color-main: #5cd5c4;
23
+ --color-main-d: #41b9a9;
23
24
  --color-main-reverse: #fff;
24
25
  }
25
26
 
@@ -31,7 +32,8 @@
31
32
  background-image: url("dist/flags.png");
32
33
  }
33
34
 
34
- @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
35
+ @media (-webkit-min-device-pixel-ratio: 2),
36
+ (min-resolution: 192dpi) {
35
37
  .iti__flag {
36
38
  background-image: url("dist/flags@2x.png");
37
39
  }
@@ -39,139 +41,693 @@
39
41
  </style>
40
42
  </head>
41
43
 
42
- <body dir="ltr" class="page-show salla-one color-mode-dark ltr font-dubai bg-gray-50">
43
- <div id="top-nav" class="py-2 lg:py-0">
44
- <div class="container text-center py-4 text-gray-500 font-bold">
45
- Twilight Components
46
- </div>
47
- </div>
44
+ <body dir="ltr" class="page-show salla-one color-mode-dark ltr font-dubai bg-gray-50" x-data="{text: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam quae reiciendis dolorem fugiat mollitia animi laudantium voluptates nulla consequatur ea eveniet aut dolores facilis doloremque neque, similique dignissimos esse possimus!'}">
48
45
 
49
- <header class="shadow-default bg-white">
50
- <div class="container flex items-stretch justify-between relative">
51
- <a class="items-center flex my-2">
52
- <img src="https://assets.salla.sa/cp/assets/images/logo-new.png" class="max-h-14"/>
53
- </a>
54
- </div>
55
- </header>
56
- <div class="container py-10 grid-cols-2 grid gap-4">
57
- <div class=" p-3 rounded-md bg-white shadow-sm">
58
- <h1 class="text-primary border-b border-dashed mb-4">Button</h1>
59
- <p class="my-4">Description <a href="../docs/components/SallaButton.html" class="text-primary">@see</a></p>
60
- <div class="flex flex-wrap my-2 gap-4 ">
61
- <salla-button>Primary</salla-button>
62
- <salla-button btn-style="outline">outline</salla-button>
63
- <salla-button btn-style="outline-primary">outline-primary</salla-button>
64
- <salla-button btn-style="danger">danger</salla-button>
65
- </div>
66
- <div class="flex flex-wrap my-2 gap-4">
67
- <salla-button loading>Loading</salla-button>
68
- <salla-button loading loader-position="start" btn-style="outline">start</salla-button>
69
- <salla-button loading loader-position="before" btn-style="outline-primary">before</salla-button>
70
- <salla-button loading loader-position="center" btn-style="primary">center</salla-button>
71
- <salla-button loading loader-position="end">end</salla-button>
46
+ <!-- Header -->
47
+ <header class="flex-none relative z-50 text-sm leading-6 font-medium bg-white">
48
+ <nav aria-label="Global" class="container mx-auto px-4 sm:px-6 lg:px-8">
49
+ <div class="flex items-center border-b border-gray-100 py-5">
50
+ <a href="#" class="flex-none text-gray-900">
51
+ <span class="sr-only">Twilight Components</span>
52
+ <img src="https://assets.salla.sa/cp/assets/images/logo-new.png" class="max-h-14" />
53
+ </a>
54
+ <p class="hidden lg:block text-sm ml-6 border-l border-gray-200 pl-6">
55
+ <a href="#" target="_blank"
56
+ class="relative flex items-center transition-colors text-gray-500 hover:text-primary">
57
+ <i class="sicon-layout-grid mr-2 text-gray-400"></i>
58
+ Twilight Components
59
+ <svg aria-hidden="true" width="11" height="11" fill="currentColor" class="ml-1.5">
60
+ <path d="M5.593 10.139L10.232 5.5 5.593.862l-.895.89 3.107 3.102H0v1.292h7.805L4.698 9.254l.895.885z">
61
+ </path>
62
+ </svg>
63
+ </a>
64
+ </p>
65
+ <div class="ml-auto flex items-center">
66
+ <a href="#" class="hidden sm:block ml-6 mr-2 hover:text-gray-900">Documentation</a>
67
+
68
+ <div x-data="{ open: false }"
69
+ x-init="window.addEventListener('focus', event => { if (open &amp;&amp; !$el.contains(event.target)) open = false }, true)"
70
+ @click.away="open = false" @keydown.escape="open = false;$refs.toggle.focus()"
71
+ class="relative sm:border-l -mr-1.5 sm:ml-2 sm:mr-0 sm:pl-6 border-gray-200">
72
+ <button type="button" x-ref="toggle" @click="open = !open" :aria-expanded="open"
73
+ class="font-medium flex items-center">
74
+ <span class="hidden sm:flex items-center">
75
+ Components
76
+ <svg aria-hidden="true" width="8" height="6" fill="none" class="ml-2.5 text-gray-400">
77
+ <path d="M7 1.5l-3 3-3-3" stroke="currentColor" stroke-width="2" stroke-linecap="round"
78
+ stroke-linejoin="round"></path>
79
+ </svg>
80
+ </span>
81
+ <span class="flex sm:hidden -my-1 w-8 h-8 rounded-lg items-center justify-center">
82
+ <svg aria-hidden="true" width="20" height="20" fill="none" class="text-gray-900">
83
+ <path d="M3.75 4.75h12.5M3.75 9.75h12.5M3.75 14.75h12.5" stroke="currentColor" stroke-width="1.5"
84
+ stroke-linecap="round" stroke-linejoin="round"></path>
85
+ </svg>
86
+ </span>
87
+ </button>
88
+ <div x-show="open"
89
+ class="absolute top-full right-0 w-60 mt-3 -mr-0.5 sm:-mr-3.5 bg-white rounded-lg shadow-md ring-1 ring-gray-900 ring-opacity-5 font-normal text-sm text-gray-900 divide-y divide-gray-100"
90
+ style="display: none;">
91
+ <p class="py-3 px-3.5 truncate">
92
+ <span class="block mb-0.5 text-xs text-gray-500">Hi there</span>
93
+ <span class="">Quick access to</span>
94
+ </p>
95
+ <div class="py-1.5 px-3.5">
96
+ <a href="#" class="group flex sm:hidden items-center py-1.5 hover:text-teal-600">
97
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
98
+ stroke-linecap="round" stroke-linejoin="round"
99
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
100
+ <path d="M5.75 17.25h8.5a2 2 0 002-2V7L12 2.75H5.75a2 2 0 00-2 2v10.5a2 2 0 002 2z"></path>
101
+ <path d="M11.75 3v4.25H16M6.75 10.75h6.5M6.75 13.75h6.5"></path>
102
+ </svg>
103
+ Documentation
104
+ </a>
105
+ <a href="#buttons-section" class="group flex items-center py-1.5 hover:text-teal-600">
106
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
107
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
108
+ <rect x="7.75" y="2.75" width="4.5" height="4.5" rx="2.25"></rect>
109
+ <rect x="7.75" y="12.75" width="4.5" height="4.5" rx="2.25"></rect>
110
+ <path d="M10 7.5v5"></path>
111
+ </svg>
112
+ Buttons
113
+ </a>
114
+ <a href="#branches-section" class="group flex items-center py-1.5 hover:text-teal-600">
115
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
116
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
117
+ <rect x="2.75" y="2.75" width="14.5" height="14.5" rx="7.25"></rect>
118
+ <rect x="6.75" y="6.75" width="6.5" height="6.5" rx="3.25"></rect>
119
+ <path d="M5 15l2.5-2.5M15 5l-2.5 2.5M15 15l-2.5-2.5M5 5l2.5 2.5"></path>
120
+ </svg>
121
+ Branches
122
+ </a>
123
+ <a href="#infinite-scroll-section" class="group flex items-center py-1.5 hover:text-teal-600">
124
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
125
+ stroke-linecap="round" stroke-linejoin="round"
126
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
127
+ <circle cx="10" cy="8" r="5.25"></circle>
128
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
129
+ </svg>
130
+ Infinitie Scroll
131
+ </a>
132
+ <a href="#localization-section" class="group flex items-center py-1.5 hover:text-teal-600">
133
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
134
+ stroke-linecap="round" stroke-linejoin="round"
135
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
136
+ <circle cx="10" cy="8" r="5.25"></circle>
137
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
138
+ </svg>
139
+ Localization Modal
140
+ </a>
141
+ <a href="#login-section" class="group flex items-center py-1.5 hover:text-teal-600">
142
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
143
+ stroke-linecap="round" stroke-linejoin="round"
144
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
145
+ <circle cx="10" cy="8" r="5.25"></circle>
146
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
147
+ </svg>
148
+ Login Modal
149
+ </a>
150
+ <a href="#offers-section" class="group flex items-center py-1.5 hover:text-teal-600">
151
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
152
+ stroke-linecap="round" stroke-linejoin="round"
153
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
154
+ <circle cx="10" cy="8" r="5.25"></circle>
155
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
156
+ </svg>
157
+ Offers Modal
158
+ </a>
159
+ <a href="#product-visibility-section" class="group flex items-center py-1.5 hover:text-teal-600">
160
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
161
+ stroke-linecap="round" stroke-linejoin="round"
162
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
163
+ <circle cx="10" cy="8" r="5.25"></circle>
164
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
165
+ </svg>
166
+ Product Visibility Modal
167
+ </a>
168
+ <a href="#rating-seciton" class="group flex items-center py-1.5 hover:text-teal-600">
169
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
170
+ stroke-linecap="round" stroke-linejoin="round"
171
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
172
+ <circle cx="10" cy="8" r="5.25"></circle>
173
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
174
+ </svg>
175
+ Rating Modal
176
+ </a>
177
+ <a href="#search-section" class="group flex items-center py-1.5 hover:text-teal-600">
178
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
179
+ stroke-linecap="round" stroke-linejoin="round"
180
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
181
+ <circle cx="10" cy="8" r="5.25"></circle>
182
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
183
+ </svg>
184
+ Search
185
+ </a>
186
+ <a href="#tel-input-section" class="group flex items-center py-1.5 hover:text-teal-600">
187
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
188
+ stroke-linecap="round" stroke-linejoin="round"
189
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
190
+ <circle cx="10" cy="8" r="5.25"></circle>
191
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
192
+ </svg>
193
+ Tel Input
194
+ </a>
195
+ <a href="#verify-section" class="group flex items-center py-1.5 hover:text-teal-600">
196
+ <svg aria-hidden="true" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.5"
197
+ stroke-linecap="round" stroke-linejoin="round"
198
+ class="flex-none mr-3 text-gray-400 group-hover:text-teal-600">
199
+ <circle cx="10" cy="8" r="5.25"></circle>
200
+ <path d="M13 12.5l1.25 4.75-4.25-1.5-4.25 1.5L7 12.5"></path>
201
+ </svg>
202
+ Verify Modal
203
+ </a>
204
+ </div>
205
+
206
+ </div>
207
+ </div>
208
+ </div>
209
+ </div>
210
+ </nav>
211
+ </header>
212
+
213
+
214
+ <!-- Components -->
215
+ <div id="components" class="container mx-auto px-4 sm:px-6 lg:px-8 pt-16 pb-24">
216
+ <div class="pb-12">
217
+ <h2 id="buttons-section-heading" class="text-3xl font-extrabold text-gray-900">Salla Twilight Components</h2>
218
+ <p class="text-sm text-gray-500 mt-2">Buttons, popup modals, infinit scroll, branches, localization, login,
219
+ offers, rating and much more -- everything you need to build beautiful E-commerce theme.</p>
72
220
  </div>
73
- <div class="flex flex-wrap gap-4">
74
- <salla-button wide>Wide</salla-button>
75
- <salla-button wide disabled>Wide Disabled</salla-button>
221
+
222
+ <div class="space-y-16">
223
+
224
+ <!-- Login Modal -->
225
+ <section aria-labelledby="buttons-section-heading" id="product-marketing" class="divide-y divide-gray-200"
226
+ style="scroll-margin-top:6.25rem">
227
+ <div class="pb-6">
228
+ <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Login & Register Modal</h2>
229
+ <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>
230
+ </div>
231
+
232
+ <!-- Default -->
233
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
234
+ <div class="col-span-3 xl:col-span-1">
235
+ <h3 class="text-gray-900 font-semibold">Login Modal</h3>
236
+ </div>
237
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
238
+ <salla-button data-on-click="login::show">Login Component</salla-button>
239
+ <salla-login-modal is-email-allowed is-mobile-allowed is-email-required></salla-login-modal>
240
+ </div>
241
+ </div>
242
+ </section>
243
+
244
+
245
+ <!-- Buttons Section -->
246
+ <section aria-labelledby="buttons-section-heading" id="product-marketing" class="divide-y divide-gray-200"
247
+ style="scroll-margin-top:6.25rem">
248
+ <div class="pb-6">
249
+ <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Buttons</h2>
250
+ <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>
251
+ </div>
252
+
253
+ <!-- Default -->
254
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
255
+ <div class="col-span-3 xl:col-span-1">
256
+ <h3 class="text-gray-900 font-semibold">Default</h3>
257
+ <p class="text-sm text-gray-500 mt-2">Without any props</p>
258
+ </div>
259
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
260
+ <salla-button>Primary</salla-button>
261
+ <salla-button color="success">success</salla-button>
262
+ <salla-button color="danger">danger</salla-button>
263
+ <salla-button color="warning">warning</salla-button>
264
+ <salla-button color="light">light</salla-button>
265
+ <salla-button color="gray">gray</salla-button>
266
+ <salla-button color="dark">dark</salla-button>
267
+ </div>
268
+ </div>
269
+
270
+ <!-- Outine -->
271
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
272
+ <div class="col-span-3 xl:col-span-1">
273
+ <h3 class="text-gray-900 font-semibold">Outline</h3>
274
+ <p class="text-sm text-gray-500 mt-2">
275
+ <!-- <span class="inline text-xs py-1.5 px-2.5 text-gray-500 bg-gray-200 rounded-md">fill="outline"</span> -->
276
+ </p>
277
+ </div>
278
+
279
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
280
+ <salla-button fill="outline">Primary</salla-button>
281
+ <salla-button fill="outline" color="success">success</salla-button>
282
+ <salla-button fill="outline" color="danger">danger</salla-button>
283
+ <salla-button fill="outline" color="warning">warning</salla-button>
284
+ <salla-button fill="outline" color="light">light</salla-button>
285
+ <salla-button fill="outline" color="gray">gray</salla-button>
286
+ <salla-button fill="outline" color="dark">dark</salla-button>
287
+ </div>
288
+ </div>
289
+
290
+ <!-- Loading -->
291
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
292
+ <div class="col-span-3 xl:col-span-1">
293
+ <h3 class="text-gray-900 font-semibold">Loading</h3>
294
+ </div>
295
+ <div class="col-span-3 space-y-4">
296
+ <div class="flex flex-wrap items-center gap-2">
297
+ <salla-button loading>Primary</salla-button>
298
+ <salla-button color="success" loading>success</salla-button>
299
+ <salla-button color="danger" loading>danger</salla-button>
300
+ <salla-button color="warning" fill="outline" loading>warning</salla-button>
301
+ <salla-button color="light" fill="outline" loading>light</salla-button>
302
+ <salla-button color="gray" fill="outline" loading>gray</salla-button>
303
+ </div>
304
+ <div class="flex flex-wrap items-center gap-2">
305
+ <salla-button shape="icon" loading>Primary</salla-button>
306
+ <salla-button shape="icon" color="success" loading>success</salla-button>
307
+ <salla-button shape="icon" color="danger" loading>danger</salla-button>
308
+ <salla-button shape="icon" color="warning" fill="outline" loading>warning</salla-button>
309
+ <salla-button shape="icon" color="light" fill="outline" loading>light</salla-button>
310
+ <salla-button shape="icon" color="gray" fill="outline" loading>gray</salla-button>
311
+ </div>
312
+ <div class="flex flex-wrap items-center gap-2">
313
+ <salla-button shape="icon" size="small" loading>Primary</salla-button>
314
+ <salla-button shape="icon" size="small" color="success" loading>success</salla-button>
315
+ <salla-button shape="icon" size="small" color="danger" loading>danger</salla-button>
316
+ <salla-button shape="icon" size="small" color="warning" fill="outline" loading>warning</salla-button>
317
+ <salla-button shape="icon" size="small" color="light" fill="outline" loading>light</salla-button>
318
+ <salla-button shape="icon" size="small" color="gray" fill="outline" loading>gray</salla-button>
319
+ </div>
320
+ </div>
321
+ </div>
322
+
323
+ <!-- Size -->
324
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
325
+ <div class="col-span-3 xl:col-span-1">
326
+ <h3 class="text-gray-900 font-semibold">Size</h3>
327
+ </div>
328
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
329
+ <salla-button size="large">Large</salla-button>
330
+ <salla-button >Default</salla-button>
331
+ <salla-button size="small">Small</salla-button>
332
+ <salla-button size="large" fill="outline">Large</salla-button>
333
+ <salla-button fill="outline">Default</salla-button>
334
+ <salla-button size="small" fill="outline">Small</salla-button>
335
+ </div>
336
+ </div>
337
+
338
+ <!-- Wide -->
339
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
340
+ <div class="col-span-3 xl:col-span-1">
341
+ <h3 class="text-gray-900 font-semibold">Wide Buttons</h3>
342
+ </div>
343
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
344
+ <salla-button width="wide"><i class="sicon-shopping-bag mr-2"></i> Wide Button</salla-button>
345
+ </div>
346
+ </div>
347
+
348
+ <!-- Disabled -->
349
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
350
+ <div class="col-span-3 xl:col-span-1">
351
+ <h3 class="text-gray-900 font-semibold">Disabled</h3>
352
+ </div>
353
+ <div class="col-span-3 space-y-4">
354
+ <div class="flex flex-wrap items-center gap-2">
355
+ <salla-button disabled>Disabled</salla-button>
356
+ <salla-button disabled color="danger">Disabled</salla-button>
357
+ <salla-button disabled color="warning">Disabled</salla-button>
358
+ <salla-button fill="outline" disabled>Disabled</salla-button>
359
+ <salla-button fill="outline" disabled color="danger">Disabled</salla-button>
360
+ <salla-button fill="outline" disabled color="warning">Disabled</salla-button>
361
+ </div>
362
+ <div class="flex flex-wrap items-center gap-2">
363
+ <salla-button shape="icon" disabled><i class="sicon-shopping-bag"></i></salla-button>
364
+ <salla-button shape="icon" disabled color="danger"><i class="sicon-shopping-bag"></i></salla-button>
365
+ <salla-button shape="icon" disabled color="warning"><i class="sicon-shopping-bag"></i></salla-button>
366
+ <salla-button shape="icon" fill="outline" disabled><i class="sicon-shopping-bag"></i></salla-button>
367
+ <salla-button shape="icon" fill="outline" disabled color="danger"><i class="sicon-shopping-bag"></i></salla-button>
368
+ <salla-button shape="icon" fill="outline" disabled color="warning"><i class="sicon-shopping-bag"></i></salla-button>
369
+ </div>
370
+ </div>
371
+ </div>
372
+
373
+ <!-- Link -->
374
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
375
+ <div class="col-span-3 xl:col-span-1">
376
+ <h3 class="text-gray-900 font-semibold">Button as link</h3>
377
+ <p class="text-sm text-gray-500 mt-2">
378
+ <!-- <span class="inline text-xs py-1.5 px-2.5 text-gray-500 bg-gray-200 rounded-md">shape="link"</span> -->
379
+ </p>
380
+ </div>
381
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
382
+ <salla-button shape="link">Primary Link</salla-button>
383
+ <salla-button shape="link" color="success">success Link</salla-button>
384
+ <salla-button shape="link" color="danger">danger Link</salla-button>
385
+ <salla-button shape="link" color="warning">warning Link</salla-button>
386
+ <salla-button shape="link" color="light">light Link</salla-button>
387
+ <salla-button shape="link" color="gray">gray Link</salla-button>
388
+ <salla-button shape="link" color="dark">dark Link</salla-button>
389
+ </div>
390
+ </div>
391
+
392
+ <!-- Icon -->
393
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
394
+ <div class="col-span-3 xl:col-span-1">
395
+ <h3 class="text-gray-900 font-semibold">Icon</h3>
396
+ </div>
397
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
398
+ <salla-button shape="icon"><i class="sicon-shopping-bag"></i></salla-button>
399
+ <salla-button shape="icon" color="success"><i class="sicon-check"></i></salla-button>
400
+ <salla-button shape="icon" color="danger"><i class="sicon-cancel"></i></salla-button>
401
+ <salla-button shape="icon" color="warning"><i class="sicon-shopping-bag"></i>
402
+ </salla-button>
403
+ <salla-button shape="icon" color="light"><i class="sicon-sync"></i></salla-button>
404
+ <salla-button shape="icon" color="gray"><i class="sicon-shipping-fast"></i>
405
+ </salla-button>
406
+ <salla-button shape="icon" color="dark"><i class="sicon-survey"></i></salla-button>
407
+ </div>
408
+ </div>
409
+
410
+ <!-- Icon Outline -->
411
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
412
+ <div class="col-span-3 xl:col-span-1">
413
+ <h3 class="text-gray-900 font-semibold">Icon Outline</h3>
414
+ </div>
415
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
416
+ <salla-button shape="icon" fill="outline"><i class="sicon-shopping-bag"></i></salla-button>
417
+ <salla-button shape="icon" color="success" fill="outline"><i class="sicon-check"></i></salla-button>
418
+ <salla-button shape="icon" color="danger" fill="outline"><i class="sicon-cancel"></i></salla-button>
419
+ <salla-button shape="icon" color="warning" fill="outline"><i class="sicon-shopping-bag"></i>
420
+ </salla-button>
421
+ <salla-button shape="icon" color="light" fill="outline"><i class="sicon-sync"></i></salla-button>
422
+ <salla-button shape="icon" color="gray" fill="outline"><i class="sicon-shipping-fast"></i>
423
+ </salla-button>
424
+ <salla-button shape="icon" color="dark" fill="outline"><i class="sicon-survey"></i></salla-button>
425
+ </div>
426
+ </div>
427
+
428
+ <!-- Icon Size -->
429
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
430
+ <div class="col-span-3 xl:col-span-1">
431
+ <h3 class="text-gray-900 font-semibold">Icon Size</h3>
432
+ </div>
433
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
434
+ <salla-button shape="icon" size="large"><i class="sicon-shopping-bag"></i></salla-button>
435
+ <salla-button shape="icon" color="success"><i class="sicon-check"></i></salla-button>
436
+ <salla-button shape="icon" color="danger" size="small"><i class="sicon-cancel"></i></salla-button>
437
+ <salla-button shape="icon" size="large" fill="outline"><i class="sicon-shopping-bag"></i></salla-button>
438
+ <salla-button shape="icon" color="success" fill="outline"><i class="sicon-check"></i></salla-button>
439
+ <salla-button shape="icon" color="danger" size="small" fill="outline"><i class="sicon-cancel"></i></salla-button>
440
+ </div>
441
+ </div>
442
+ </section>
443
+
444
+
445
+ <!-- Modal Section -->
446
+ <section aria-labelledby="buttons-section-heading" id="product-marketing" class="divide-y divide-gray-200"
447
+ style="scroll-margin-top:6.25rem">
448
+ <div class="pb-6">
449
+ <h2 id="buttons-section-heading" class="text-2xl font-extrabold text-gray-900">Modals</h2>
450
+ <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>
451
+ </div>
452
+
453
+ <!-- Width -->
454
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6" x-data="{ widths: [
455
+ { id: 'xs', label: 'Mini' },
456
+ { id: 'sm', label: 'Small' },
457
+ { id: 'md', label: 'Default' },
458
+ { id: 'full', label: 'Fullscreen' }
459
+ ]}">
460
+ <div class="col-span-3 xl:col-span-1">
461
+ <h3 class="text-gray-900 font-semibold">Modal Width</h3>
462
+ </div>
463
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
464
+
465
+ <!-- Modal Size -->
466
+ <template x-for="width in widths" :key="width.id">
467
+ <salla-button :data-target="'modal-size-' + width.id" data-on-click="modal::open" x-text="width.label"></salla-button>
468
+ </template>
469
+
470
+ <template x-for="width in widths" :key="width.id">
471
+ <salla-modal :id="'modal-size-' + width.id" :width="width.id" title="Vitae atque quisquam ea rem" sub-title="subtitle text here">
472
+ <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>
473
+ </salla-modal>
474
+ </template>
475
+ </div>
476
+ </div>
477
+
478
+ <!-- Position -->
479
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6" x-data="{ items: [
480
+ { id: 'top', label: 'Top' },
481
+ { id: 'middle', label: 'Default' },
482
+ { id: 'bottom', label: 'Bottom' }
483
+ ]}">
484
+ <div class="col-span-3 xl:col-span-1">
485
+ <h3 class="text-gray-900 font-semibold">Modal Position</h3>
486
+ </div>
487
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
488
+
489
+ <template x-for="item in items" :key="item.id">
490
+ <salla-button :data-target="'modal-position-' + item.id" data-on-click="modal::open" x-text="item.label"></salla-button>
491
+ </template>
492
+
493
+ <template x-for="item in items" :key="item.id">
494
+ <salla-modal
495
+ :id="'modal-position-' + item.id"
496
+ :position="item.id"
497
+ size="sm"
498
+ title="Congratulations"
499
+ sub-title="Good, you are right!">
500
+ <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>
501
+ </salla-modal>
502
+ </salla-modal>
503
+ </template>
504
+ </div>
505
+ </div>
506
+
507
+ <!-- Header Icon -->
508
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6" x-data="{ icons: [
509
+ { id: 'noraml', label: 'Default', icon: 'sicon-shopping-bag' },
510
+ { id: 'primary', label: 'Primary', icon: 'sicon-shopping-bag' },
511
+ { id: 'success', label: 'Success', icon: 'sicon-check' },
512
+ { id: 'error', label: 'Error', icon: 'sicon-cancel' }
513
+ ]}">
514
+ <div class="col-span-3 xl:col-span-1">
515
+ <h3 class="text-gray-900 font-semibold">Modal Header Icon</h3>
516
+ </div>
517
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
518
+
519
+ <template x-for="icon in icons" :key="icon.id">
520
+ <salla-button :data-target="'modal-icon-' + icon.id" data-on-click="modal::open" x-text="icon.label"></salla-button>
521
+ </template>
522
+ <salla-button data-target="modal-icon-image" data-on-click="modal::open">Image as Icon</salla-button>
523
+
524
+ <template x-for="icon in icons" :key="icon.id">
525
+ <salla-modal
526
+ :id="'modal-icon-' + icon.id"
527
+ :icon="icon.icon"
528
+ :icon-style="icon.id"
529
+ width="sm"
530
+ title="Vitae atque quisquam ea rem"
531
+ sub-title="subtitle text here">
532
+ <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>
533
+ </salla-modal>
534
+ </template>
535
+
536
+ <salla-modal
537
+ id="modal-icon-image"
538
+ image-icon="./assets/images/star.png"
539
+ width="sm"
540
+ sub-title-first
541
+ title="Good, You are right!"
542
+ sub-title="Congratulations">
543
+ </salla-modal>
544
+ </div>
545
+ </div>
546
+
547
+ <!-- Header Subtitle first -->
548
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6" x-data="{ items: [
549
+ { id: 'below', label: 'Below' },
550
+ { id: 'first', label: 'First'}
551
+ ]}">
552
+ <div class="col-span-3 xl:col-span-1">
553
+ <h3 class="text-gray-900 font-semibold">Subtitle Position</h3>
554
+ </div>
555
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
556
+
557
+ <template x-for="item in items" :key="item.id">
558
+ <salla-button :data-target="'modal-subtitle-' + item.id" data-on-click="modal::open" x-text="item.label"></salla-button>
559
+ </template>
560
+
561
+ <template x-for="item in items" :key="item.id">
562
+ <salla-modal
563
+ :id="'modal-subtitle-' + item.id"
564
+ :sub-title-first="item.id == 'first' ? true : false"
565
+ icon="sicon-shopping-bag"
566
+ title="Vitae atque quisquam ea rem"
567
+ icon-style="primary"
568
+ sub-title="subtitle text here">
569
+ <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>
570
+ </salla-modal>
571
+ </template>
572
+
573
+ <!-- Modal #7 -->
574
+ <salla-modal id="modal7" no-padding>
575
+ <img src="https://source.unsplash.com/ejhjSZKTeeg/1024x800">
576
+ </salla-modal>
577
+ </div>
578
+ </div>
579
+
580
+ <!-- No padding -->
581
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6" x-data="{ items: [
582
+ { id: 'nopadding', label: 'No Padding Modal'}
583
+ ]}">
584
+ <div class="col-span-3 xl:col-span-1">
585
+ <h3 class="text-gray-900 font-semibold">Modal Without Padding</h3>
586
+ </div>
587
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
588
+
589
+ <template x-for="item in items" :key="item.id">
590
+ <salla-button :data-target="'modal-padding-' + item.id" data-on-click="modal::open" x-text="item.label"></salla-button>
591
+ </template>
592
+
593
+ <template x-for="item in items" :key="item.id">
594
+ <salla-modal
595
+ :id="'modal-padding-' + item.id"
596
+ :no-padding="item.id == 'nopadding' ? true : false">
597
+ <img src="https://source.unsplash.com/ejhjSZKTeeg/1024x800">
598
+ </salla-modal>
599
+ </template>
600
+ </div>
601
+ </div>
602
+
603
+ <!-- Is Closable -->
604
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6">
605
+ <div class="col-span-3 xl:col-span-1">
606
+ <h3 class="text-gray-900 font-semibold">Is Closable</h3>
607
+ </div>
608
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
609
+ <salla-button data-target="modal-not-closable" data-on-click="modal::open">Not Closable</salla-button>
610
+ <salla-modal
611
+ icon="sicon-home"
612
+ icon-style="primary"
613
+ id="modal-not-closable"
614
+ title="Not Closable Molda"
615
+ sub-title="You can't close it by clicking the background overlay and there is'nt cloase button"
616
+ is-closable="false">
617
+ <div class="text-center">
618
+ <p class="text-gray-500 mb-4">Close button below added as a modal content</p>
619
+ <salla-button fill="outline" color="light" data-on-click="modal::close" data-target="modal-not-closable">Close</salla-button>
620
+ </div>
621
+ </salla-modal>
622
+ </div>
623
+ </div>
624
+
625
+ <!-- Modal Footer -->
626
+ <div id="product-marketing-sections" class="grid grid-cols-3 xl:grid-cols-4 py-8 gap-x-8 gap-y-6" x-data="{ items: [
627
+ { id: 'noraml', label: 'Without Footer' },
628
+ { id: 'footer', label: 'With Footer'}
629
+ ]}">
630
+ <div class="col-span-3 xl:col-span-1">
631
+ <h3 class="text-gray-900 font-semibold">Modal Footer</h3>
632
+ </div>
633
+ <div class="col-span-3 flex flex-wrap items-center gap-2">
634
+
635
+ <template x-for="item in items" :key="item.id">
636
+ <salla-button :data-target="'modal-footer-' + item.id" data-on-click="modal::open" x-text="item.label"></salla-button>
637
+ </template>
638
+
639
+ <template x-for="item in items" :key="item.id">
640
+ <salla-modal
641
+ :id="'modal-footer-' + item.id"
642
+ icon="sicon-shopping-bag"
643
+ title="Vitae atque quisquam ea rem"
644
+ icon-style="primary"
645
+ sub-title="subtitle text here">
646
+ <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>
647
+ <div x-show="item.id == 'footer'" slot="footer" class="grid grid-cols-2 gap-3">
648
+ <salla-button class="w-full" fill="outline" color="light" data-on-click="modal::close" :data-target="'modal-footer-' + item.id">Cancel</salla-button>
649
+ <salla-button class="w-full" data-on-click="modal::close" :data-target="'modal-footer-' + item.id">Ok</salla-button>
650
+ </div>
651
+ </salla-modal>
652
+ </template>
653
+
654
+ </div>
655
+ </div>
656
+
657
+ </section>
658
+
76
659
  </div>
77
660
  </div>
78
661
 
79
- <div class="p-3 rounded-md bg-white shadow-sm">
80
- <h1 class="text-primary border-b border-dashed mb-4">Modal</h1>
81
- <p class="my-4">Description</p>
82
- <salla-button data-target="modal1" data-on-click="modal::open">Modal</salla-button>
83
- <salla-button btn-style="danger" data-target="modal2" data-on-click="modal::open">Error</salla-button>
84
- <salla-button data-target="modal3" data-on-click="modal::open">Success</salla-button>
85
- <salla-button data-target="modal4" data-on-click="modal::open">Small</salla-button>
86
- <salla-button btn-style="outline-primary" data-target="modal5" data-on-click="modal::open">Full</salla-button>
87
- <salla-button data-target="modal6" data-on-click="modal::open">With footer</salla-button>
88
- <salla-button btn-style="outline" data-target="modal7" data-on-click="modal::open">No Padding</salla-button>
89
- <salla-modal id="modal1">Your Awesome Content</salla-modal>
90
- <salla-modal id="modal2" title="Error!" sub-title="Whoops! Error happened" error></salla-modal>
91
- <salla-modal id="modal3" title="Congratulations" sub-title="Good, You are awesome!" success></salla-modal>
92
- <salla-modal id="modal4" width="xs">Small Modal</salla-modal>
93
- <salla-modal id="modal5" width="full">Full Modal</salla-modal>
94
- <salla-modal id="modal6">
95
- Modal Body
96
- <p slot="footer" class="text-gray-500 mt-4">
97
- <salla-button data-on-click="modal::close" data-target="modal6" wide>Close</salla-button>
98
- </p>
99
- </salla-modal>
100
- <salla-modal id="modal7" no-padding>Small Modal</salla-modal>
101
- </div>
102
662
 
103
- <div class=" p-3 rounded-md bg-white shadow-sm">
104
- <h1 class="text-primary border-b border-dashed mb-4">Login</h1>
105
- <p class="my-4">Description</p>
106
- <salla-button wide data-on-click="login::show">Login Component</salla-button>
107
- <salla-login is-email-allowed is-mobile-allowed is-email-required></salla-login>
108
- </div>
663
+ <div class="container py-10 grid-cols-2 grid gap-4">
109
664
 
110
- <div class=" p-3 rounded-md bg-white shadow-sm">
111
- <h1 class="text-primary border-b border-dashed mb-4">Localization</h1>
112
- <p class="my-4">Description</p>
113
- <salla-button wide data-on-click="localization::show">Localization Component</salla-button>
665
+ <div class=" p-3 rounded-md bg-white shadow-sm">
666
+ <h1 class="text-primary border-b border-dashed mb-4">Localization</h1>
667
+ <p class="my-4">Description</p>
668
+ <salla-button wide data-on-click="localization::show">Localization Component</salla-button>
114
669
 
115
- <salla-localization></salla-localization>
116
- </div>
670
+ <salla-localization></salla-localization>
671
+ </div>
117
672
 
118
- <div class=" p-3 rounded-md bg-white shadow-sm">
119
- <h1 class="text-primary border-b border-dashed mb-4">Search</h1>
120
- <p class="my-4">Description</p>
121
- <salla-button btn-style="outline-primary" wide data-on-click="search::show">Search Component</salla-button>
122
- <salla-search></salla-search>
123
- </div>
673
+ <div class=" p-3 rounded-md bg-white shadow-sm">
674
+ <h1 class="text-primary border-b border-dashed mb-4">Search</h1>
675
+ <p class="my-4">Description</p>
676
+ <salla-button btn-style="outline-primary" wide data-on-click="search::show">Search Component</salla-button>
677
+ <salla-search></salla-search>
678
+ </div>
124
679
 
125
- <div class=" p-3 rounded-md bg-white shadow-sm">
126
- <h1 class="text-primary border-b border-dashed mb-4">Branches</h1>
127
- <p class="my-4">Description</p>
128
- <salla-button wide btn-style="danger" data-on-click="branches::show">Branches Component</salla-button>
129
- <salla-branches></salla-branches>
130
- </div>
680
+ <div class=" p-3 rounded-md bg-white shadow-sm">
681
+ <h1 class="text-primary border-b border-dashed mb-4">Branches</h1>
682
+ <p class="my-4">Description</p>
683
+ <salla-button wide btn-style="danger" data-on-click="branches::show">Branches Component</salla-button>
684
+ <salla-branches></salla-branches>
685
+ </div>
131
686
 
132
- <div class=" p-3 rounded-md bg-white shadow-sm">
133
- <h1 class="text-primary border-b border-dashed mb-4">Offer</h1>
134
- <p class="my-4">Description</p>
135
- <salla-button wide btn-style="outline" onClick="showOffer()">Offer</salla-button>
136
- <salla-offer></salla-offer>
137
- </div>
687
+ <div class=" p-3 rounded-md bg-white shadow-sm">
688
+ <h1 class="text-primary border-b border-dashed mb-4">Offer</h1>
689
+ <p class="my-4">Description</p>
690
+ <salla-button wide btn-style="outline" onClick="showOffer()">Offer</salla-button>
691
+ <salla-offer></salla-offer>
692
+ </div>
138
693
 
139
- <div class="p-3 rounded-md bg-white shadow-sm">
140
- <h1 class="text-primary border-b border-dashed mb-4">Product Availability</h1>
141
- <p class="my-4">Description</p>
142
- <salla-product-availability channels="sms,email"></salla-product-availability>
143
- </div>
694
+ <div class="p-3 rounded-md bg-white shadow-sm">
695
+ <h1 class="text-primary border-b border-dashed mb-4">Product Availability</h1>
696
+ <p class="my-4">Description</p>
697
+ <salla-product-availability channels="sms,email"></salla-product-availability>
698
+ </div>
144
699
 
145
- <div class="p-3 rounded-md bg-white shadow-sm">
146
- <h1 class="text-primary border-b border-dashed mb-4">Mobile Input</h1>
147
- <p class="my-4">
148
- Using: <a class="text-primary" href="https://github.com/jackocnr/intl-tel-input" target="_blank">International
149
- Telephone Input</a>
150
- </p>
151
- <salla-tel-input></salla-tel-input>
152
- </div>
700
+ <div class="p-3 rounded-md bg-white shadow-sm">
701
+ <h1 class="text-primary border-b border-dashed mb-4">Mobile Input</h1>
702
+ <p class="my-4">
703
+ Using: <a class="text-primary" href="https://github.com/jackocnr/intl-tel-input" target="_blank">International
704
+ Telephone Input</a>
705
+ </p>
706
+ <salla-tel-input></salla-tel-input>
707
+ </div>
153
708
 
154
- <div class="p-3 rounded-md bg-white shadow-sm">
155
- <h1 class="text-primary border-b border-dashed mb-4">Rating</h1>
156
- <p class="my-4">Description</p>
157
- <salla-button wide btn-style="outline-primary" data-on-click="rating::show">Rating</salla-button>
158
- <salla-rating></salla-rating>
159
- </div>
709
+ <div class="p-3 rounded-md bg-white shadow-sm">
710
+ <h1 class="text-primary border-b border-dashed mb-4">Rating</h1>
711
+ <p class="my-4">Description</p>
712
+ <salla-button wide btn-style="outline-primary" data-on-click="rating::show">Rating</salla-button>
713
+ <salla-rating></salla-rating>
714
+ </div>
160
715
 
161
- <div class="p-3 rounded-md bg-white shadow-sm col-span-2">
162
- <h1 class="text-primary border-b border-dashed mb-4">Infinite Scroll</h1>
163
- <p class="my-4">
164
- Using: <a class="text-primary" href="https://infinite-scroll.com/" target="_blank">Infinite Scroll</a>
165
- <br/>
166
- You can pass <code>autoload</code> attribute for autoload result when scrolling.<br/>
167
- <code>&#x3C;salla-infinite-scroll next-page=&#x22;***&#x22;
716
+ <div class="p-3 rounded-md bg-white shadow-sm col-span-2">
717
+ <h1 class="text-primary border-b border-dashed mb-4">Infinite Scroll</h1>
718
+ <p class="my-4">
719
+ Using: <a class="text-primary" href="https://infinite-scroll.com/" target="_blank">Infinite Scroll</a>
720
+ <br />
721
+ You can pass <code>autoload</code> attribute for autoload result when scrolling.<br />
722
+ <code>&#x3C;salla-infinite-scroll next-page=&#x22;***&#x22;
168
723
  autoload&#x3E;&#x3C;/salla-infinite-scroll&#x3E;</code>
169
- </p>
170
- <salla-infinite-scroll class="grid grid-cols-4 grid-flow-row gap-6 " next-page="infinit-scroll.html?page=2"
171
- item=".i-item">
172
- </salla-infinite-scroll>
724
+ </p>
725
+ <salla-infinite-scroll class="grid grid-cols-4 grid-flow-row gap-6 " next-page="infinit-scroll.html?page=2"
726
+ item=".i-item">
727
+ </salla-infinite-scroll>
728
+ </div>
173
729
  </div>
174
- </div>
175
- <script src="dist/demo.js"></script>
730
+ <script src="dist/demo.js"></script>
176
731
  </body>
732
+
177
733
  </html>