@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.
- package/dist/cjs/{index-0b5b5867.js → index-543e387e.js} +293 -8
- package/dist/cjs/index.cjs.js +0 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-branches.cjs.entry.js +2 -2
- package/dist/cjs/salla-button.cjs.entry.js +9 -9
- package/dist/cjs/salla-conditional-fields.cjs.entry.js +90 -0
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +199 -4
- package/dist/cjs/salla-modal_2.cjs.entry.js +87 -4
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-availability.cjs.entry.js +2 -2
- package/dist/cjs/salla-quantity-input.cjs.entry.js +67 -0
- package/dist/cjs/salla-rating-modal.cjs.entry.js +6 -56
- package/dist/cjs/salla-rating-stars.cjs.entry.js +80 -0
- package/dist/cjs/salla-tabby.cjs.entry.js +19 -0
- package/dist/cjs/salla-tamara.cjs.entry.js +19 -0
- package/dist/cjs/salla-tel-input.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify-modal.cjs.entry.js +2 -2
- package/dist/cjs/twilight-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/salla-branches/salla-branches.css +1077 -0
- package/dist/collection/components/salla-button/salla-button.css +1077 -0
- package/dist/collection/components/salla-button/salla-button.js +10 -10
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.css +3 -0
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +96 -0
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +1077 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +1077 -0
- package/dist/collection/components/salla-login-modal/salla-login-modal.css +1077 -0
- package/dist/collection/components/salla-modal/salla-modal.css +1077 -0
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +1077 -0
- package/dist/collection/components/salla-product-availability/salla-product-availability.css +1077 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +3 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +74 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +1077 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +5 -59
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +1089 -0
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +137 -0
- package/dist/collection/components/salla-search/salla-search.css +1077 -0
- package/dist/collection/components/salla-tabby/salla-tabby.css +1117 -0
- package/dist/collection/components/salla-tabby/salla-tabby.js +14 -0
- package/dist/collection/components/salla-tamara/salla-tamara.css +1135 -0
- package/dist/collection/components/salla-tamara/salla-tamara.js +15 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +1290 -0
- package/dist/collection/components/salla-verify-modal/salla-verify-modal.css +1077 -0
- package/dist/collection/index.js +1 -2
- package/dist/components/Helper.js +23 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/salla-branches.d.ts +7 -0
- package/dist/components/salla-branches.js +90 -0
- package/dist/components/salla-button.d.ts +7 -0
- package/dist/components/salla-button.js +118 -0
- package/dist/components/salla-conditional-fields.d.ts +7 -0
- package/dist/components/salla-conditional-fields.js +89 -0
- package/dist/components/salla-infinite-scroll.d.ts +7 -0
- package/dist/components/salla-infinite-scroll.js +93 -0
- package/dist/components/salla-localization-modal.d.ts +7 -0
- package/dist/components/salla-localization-modal.js +116 -0
- package/dist/components/salla-login-modal.d.ts +7 -0
- package/dist/components/salla-login-modal.js +205 -0
- package/dist/components/salla-modal.d.ts +7 -0
- package/dist/components/salla-modal.js +152 -0
- package/dist/components/salla-offer-modal.d.ts +7 -0
- package/dist/components/salla-offer-modal.js +141 -0
- package/dist/components/salla-product-availability.d.ts +7 -0
- package/dist/components/salla-product-availability.js +114 -0
- package/dist/components/salla-quantity-input.d.ts +7 -0
- package/dist/components/salla-quantity-input.js +66 -0
- package/dist/components/salla-rating-modal.d.ts +7 -0
- package/dist/components/salla-rating-modal.js +178 -0
- package/dist/components/salla-rating-stars.d.ts +7 -0
- package/dist/components/salla-rating-stars.js +79 -0
- package/dist/components/salla-search.d.ts +7 -0
- package/dist/components/salla-search.js +91 -0
- package/dist/components/salla-tabby.d.ts +7 -0
- package/dist/components/salla-tabby.js +18 -0
- package/dist/components/salla-tamara.d.ts +7 -0
- package/dist/components/salla-tamara.js +19 -0
- package/dist/components/salla-tel-input.d.ts +7 -0
- package/dist/components/salla-tel-input.js +1477 -0
- package/dist/components/salla-verify-modal.d.ts +7 -0
- package/dist/components/salla-verify-modal.js +147 -0
- package/dist/esm/{index-8b97d225.js → index-2423ebcb.js} +293 -8
- package/dist/esm/index.js +1 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-branches.entry.js +2 -2
- package/dist/esm/salla-button.entry.js +9 -9
- package/dist/esm/salla-conditional-fields.entry.js +86 -0
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-localization-modal.entry.js +2 -2
- package/dist/esm/salla-login-modal.entry.js +202 -3
- package/dist/esm/salla-modal_2.entry.js +87 -4
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-product-availability.entry.js +2 -2
- package/dist/esm/salla-quantity-input.entry.js +63 -0
- package/dist/esm/salla-rating-modal.entry.js +6 -56
- package/dist/esm/salla-rating-stars.entry.js +76 -0
- package/dist/esm/salla-tabby.entry.js +15 -0
- package/dist/esm/salla-tamara.entry.js +15 -0
- package/dist/esm/salla-tel-input.entry.js +2 -2
- package/dist/esm/salla-verify-modal.entry.js +2 -2
- package/dist/esm/twilight-components.js +2 -2
- package/dist/twilight-components/index.esm.js +0 -1
- package/dist/twilight-components/p-01accdcd.entry.js +1 -0
- package/dist/twilight-components/p-0e85664f.entry.js +1 -0
- package/dist/twilight-components/p-0ee36dd8.entry.js +1 -0
- package/dist/twilight-components/p-1fb0ca8a.js +1 -0
- package/dist/twilight-components/p-1ffd27c4.entry.js +1 -0
- package/dist/twilight-components/p-2012882b.entry.js +1 -0
- package/dist/twilight-components/p-3d9fd3d3.entry.js +1 -0
- package/dist/twilight-components/p-5b2cdd7c.entry.js +1 -0
- package/dist/twilight-components/p-728bd268.entry.js +1 -0
- package/dist/twilight-components/p-72985a41.entry.js +1 -0
- package/dist/twilight-components/p-747f80df.entry.js +1 -0
- package/dist/twilight-components/p-81a7a676.entry.js +1 -0
- package/dist/twilight-components/p-880711d4.entry.js +1 -0
- package/dist/twilight-components/p-8dd742df.entry.js +1 -0
- package/dist/twilight-components/p-9642541b.entry.js +1 -0
- package/dist/twilight-components/p-a24588ab.entry.js +1 -0
- package/dist/twilight-components/p-e3cbda45.entry.js +1 -0
- package/dist/twilight-components/twilight-components.css +1 -1
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-button/salla-button.d.ts +2 -2
- package/dist/types/components/salla-conditional-fields/salla-conditional-fields.d.ts +10 -0
- package/dist/types/components/salla-quantity-input/salla-quantity-input.d.ts +19 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +0 -3
- package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +11 -0
- package/dist/types/components/salla-tabby/salla-tabby.d.ts +3 -0
- package/dist/types/components/salla-tamara/salla-tamara.d.ts +3 -0
- package/dist/types/components.d.ts +79 -8
- package/dist/types/index.d.ts +1 -2
- package/example/assets/images/star.png +0 -0
- package/example/dist/tailwind.css +964 -329
- package/example/dist/twilight.js +437 -2
- package/example/index.html +681 -125
- package/package.json +17 -10
- package/dist/cjs/salla-login-modal-02e4e65e.js +0 -204
- package/dist/cjs/salla-search-9d17eb96.js +0 -90
- package/dist/esm/salla-login-modal-7ad386c8.js +0 -202
- package/dist/esm/salla-search-ce45eb5b.js +0 -88
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -13
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/twilight-components/p-1514ed09.js +0 -1
- package/dist/twilight-components/p-2a032b88.entry.js +0 -1
- package/dist/twilight-components/p-2f3f4cce.entry.js +0 -1
- package/dist/twilight-components/p-635c08a7.entry.js +0 -1
- package/dist/twilight-components/p-646fbb7f.entry.js +0 -1
- package/dist/twilight-components/p-64977eab.entry.js +0 -1
- package/dist/twilight-components/p-79ab1ed9.entry.js +0 -1
- package/dist/twilight-components/p-7c4ba872.entry.js +0 -1
- package/dist/twilight-components/p-84936d9d.entry.js +0 -1
- package/dist/twilight-components/p-884a80ca.entry.js +0 -1
- package/dist/twilight-components/p-c51984d6.entry.js +0 -1
- package/dist/twilight-components/p-cb1c59a2.js +0 -1
- package/dist/twilight-components/p-ebd63ad4.js +0 -1
- package/dist/twilight-components/p-ee9d8563.entry.js +0 -1
package/example/index.html
CHANGED
|
@@ -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),
|
|
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
|
-
|
|
50
|
-
<
|
|
51
|
-
<
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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 && !$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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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="
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
116
|
-
|
|
670
|
+
<salla-localization></salla-localization>
|
|
671
|
+
</div>
|
|
117
672
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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><salla-infinite-scroll next-page="***"
|
|
168
723
|
autoload></salla-infinite-scroll></code>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
175
|
-
<script src="dist/demo.js"></script>
|
|
730
|
+
<script src="dist/demo.js"></script>
|
|
176
731
|
</body>
|
|
732
|
+
|
|
177
733
|
</html>
|