@salla.sa/twilight-components 1.6.2 → 1.6.4
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/loader.cjs.js +1 -1
- package/dist/cjs/salla-button_27.cjs.entry.js +27879 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +26 -0
- package/dist/cjs/salla-scopes.cjs.entry.js +9 -6
- package/dist/cjs/salla-select.cjs.entry.js +159 -0
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/assets/svg/caret-down.svg +0 -1
- package/dist/collection/assets/svg/images.svg +0 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/salla-datetime-picker/interfaces.js +4 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +13 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1374 -0
- package/dist/collection/components/salla-file-upload/interfaces.js +42 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +219 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1435 -0
- package/dist/collection/components/salla-gifting/gift-schema.js +4 -0
- package/dist/collection/components/salla-gifting/intefaces.js +4 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +20 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +564 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +23 -13
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +46 -28
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.css +3 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +69 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty.css +0 -4
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +29 -16
- package/dist/collection/components/salla-modal/salla-modal.css +6 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +37 -13
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +23 -8
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +87 -64
- package/dist/collection/components/salla-scopes/salla-scopes.js +11 -7
- package/dist/collection/components/salla-search/salla-search.js +1 -1
- package/dist/collection/components/salla-select/salla-select.css +86 -0
- package/dist/collection/components/salla-select/salla-select.js +610 -0
- package/dist/collection/components/salla-tel-input/interfaces.js +4 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +1 -2
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +32 -3
- package/dist/collection/components/salla-verify/salla-verify.js +1 -1
- package/dist/collection/global/app.js +15 -12
- package/dist/components/_commonjsHelpers.js +24 -0
- package/dist/{esm/salla-social-share.entry.js → components/anime.es.js} +1 -132
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/salla-datetime-picker.d.ts +11 -0
- package/dist/components/salla-datetime-picker.js +9 -0
- package/dist/components/salla-datetime-picker2.js +2876 -0
- package/dist/components/salla-file-upload.d.ts +11 -0
- package/dist/components/salla-file-upload.js +9 -0
- package/dist/components/salla-file-upload2.js +14623 -0
- package/dist/components/salla-gifting.d.ts +11 -0
- package/dist/components/salla-gifting.js +499 -0
- package/dist/components/salla-localization-modal.js +31 -16
- package/dist/components/salla-login-modal.js +35 -19
- package/dist/components/salla-loyalty-prize-item.d.ts +11 -0
- package/dist/components/salla-loyalty-prize-item.js +42 -0
- package/dist/components/salla-loyalty.js +28 -17
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-offer-modal.js +42 -12
- package/dist/components/salla-product-size-guide.js +21 -6
- package/dist/components/salla-rating-modal.js +47 -19
- package/dist/components/salla-scopes.js +10 -6
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-select.d.ts +11 -0
- package/dist/components/salla-select.js +199 -0
- package/dist/components/salla-social-share.js +1 -1308
- package/dist/components/salla-swiper2.js +9 -9
- package/dist/components/salla-tel-input2.js +15 -18
- package/dist/components/salla-verify2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-button_27.entry.js +27849 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +22 -0
- package/dist/esm/salla-scopes.entry.js +9 -6
- package/dist/esm/salla-select.entry.js +155 -0
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/p-49125b6a.entry.js +4 -0
- package/dist/twilight-components/p-9a25753c.entry.js +4 -0
- package/dist/twilight-components/p-b7b9439d.entry.js +22 -0
- package/dist/twilight-components/p-df1eb1e5.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-datetime-picker/interfaces.d.ts +8 -0
- package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +250 -0
- package/dist/types/components/salla-file-upload/interfaces.d.ts +766 -0
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +267 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +20 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +18 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +98 -0
- package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +3 -2
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +13 -3
- package/dist/types/components/salla-loyalty/salla-loyalty-prize-item.d.ts +8 -0
- package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +2 -0
- package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -1
- package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +4 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -2
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -0
- package/dist/types/components/salla-select/salla-select.d.ts +110 -0
- package/dist/types/components/salla-tel-input/interfaces.d.ts +4 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -0
- package/dist/types/components.d.ts +1253 -10
- package/package.json +9 -3
- package/dist/cjs/Helper-8ae6a805.js +0 -28
- package/dist/cjs/arrow-right-3d137e4c.js +0 -13
- package/dist/cjs/cancel-ae668d91.js +0 -13
- package/dist/cjs/check-circle2-1aac98d1.js +0 -13
- package/dist/cjs/mail-2db058ee.js +0 -13
- package/dist/cjs/salla-button_10.cjs.entry.js +0 -2584
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +0 -93
- package/dist/cjs/salla-list-tile_2.cjs.entry.js +0 -80
- package/dist/cjs/salla-loyalty.cjs.entry.js +0 -229
- package/dist/cjs/salla-product-availability.cjs.entry.js +0 -128
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +0 -52
- package/dist/cjs/salla-quantity-input.cjs.entry.js +0 -101
- package/dist/cjs/salla-rating-modal.cjs.entry.js +0 -169
- package/dist/cjs/salla-rating-stars.cjs.entry.js +0 -83
- package/dist/cjs/salla-social-share.cjs.entry.js +0 -1447
- package/dist/cjs/salla-swiper.cjs.entry.js +0 -5023
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +0 -159
- package/dist/cjs/star2-8288e6e1.js +0 -13
- package/dist/esm/Helper-e1d414a5.js +0 -26
- package/dist/esm/arrow-right-1c3e04f2.js +0 -11
- package/dist/esm/cancel-41a92070.js +0 -11
- package/dist/esm/check-circle2-f6e5f685.js +0 -11
- package/dist/esm/mail-9d5204c6.js +0 -11
- package/dist/esm/salla-button_10.entry.js +0 -2571
- package/dist/esm/salla-infinite-scroll.entry.js +0 -89
- package/dist/esm/salla-list-tile_2.entry.js +0 -75
- package/dist/esm/salla-loyalty.entry.js +0 -225
- package/dist/esm/salla-product-availability.entry.js +0 -124
- package/dist/esm/salla-product-size-guide.entry.js +0 -48
- package/dist/esm/salla-quantity-input.entry.js +0 -97
- package/dist/esm/salla-rating-modal.entry.js +0 -165
- package/dist/esm/salla-rating-stars.entry.js +0 -79
- package/dist/esm/salla-swiper.entry.js +0 -5019
- package/dist/esm/salla-tab-content_3.entry.js +0 -153
- package/dist/esm/star2-b134fc74.js +0 -11
- package/dist/twilight-components/p-0d498694.entry.js +0 -4
- package/dist/twilight-components/p-14f0ff17.entry.js +0 -4
- package/dist/twilight-components/p-335abbbb.entry.js +0 -4
- package/dist/twilight-components/p-4cafb11b.entry.js +0 -4
- package/dist/twilight-components/p-5e63e308.entry.js +0 -4
- package/dist/twilight-components/p-5fb32395.entry.js +0 -4
- package/dist/twilight-components/p-648e74e5.entry.js +0 -4
- package/dist/twilight-components/p-6a3adf55.entry.js +0 -4
- package/dist/twilight-components/p-6da4bb74.entry.js +0 -4
- package/dist/twilight-components/p-897b2018.js +0 -4
- package/dist/twilight-components/p-93708e1e.js +0 -4
- package/dist/twilight-components/p-9d236cf4.entry.js +0 -4
- package/dist/twilight-components/p-9d2ca9c8.js +0 -4
- package/dist/twilight-components/p-af7d5660.js +0 -4
- package/dist/twilight-components/p-bdbd2386.entry.js +0 -4
- package/dist/twilight-components/p-cac3db69.entry.js +0 -4
- package/dist/twilight-components/p-d914a212.js +0 -4
- package/dist/twilight-components/p-dace8e6d.js +0 -4
- package/dist/twilight-components/p-f9253fda.entry.js +0 -4
|
@@ -2,24 +2,27 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import '@salla.sa/twilight/dist/cjs/index';
|
|
5
|
+
const lang = document.documentElement.lang;
|
|
5
6
|
export default function () {
|
|
6
7
|
salla.init({
|
|
7
8
|
debug: true,
|
|
9
|
+
language_code: 'en',
|
|
8
10
|
store: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// id: 1305146709,
|
|
15
|
-
// url: "https://salla.sa",
|
|
11
|
+
api: "https://api.salla.dev/store/v1/",
|
|
12
|
+
id: 1170257040,
|
|
13
|
+
logo: "https://salla-dev.s3.eu-central-1.amazonaws.com/logo/logo-fashion.jpg",
|
|
14
|
+
name: "twilight",
|
|
15
|
+
url: "https://salla.sa/dev-23tbz8y6hm44uql8/",
|
|
16
16
|
},
|
|
17
17
|
user: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
email: "
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
"id": 1938424344,
|
|
19
|
+
"type": "user",
|
|
20
|
+
"email": "demo@demo.com",
|
|
21
|
+
"mobile": "+966555555555",
|
|
22
|
+
"language_code": lang,
|
|
23
|
+
"currency_code": "SAR",
|
|
24
|
+
"country_code": "SA"
|
|
25
|
+
}
|
|
23
26
|
});
|
|
24
27
|
// this is required to bypass cloudflare in stage
|
|
25
28
|
if (salla.api.axios) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
|
+
|
|
6
|
+
function getDefaultExportFromCjs (x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
11
|
+
return module = {
|
|
12
|
+
path: basedir,
|
|
13
|
+
exports: {},
|
|
14
|
+
require: function (path, base) {
|
|
15
|
+
return commonjsRequire();
|
|
16
|
+
}
|
|
17
|
+
}, fn(module, module.exports), module.exports;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function commonjsRequire () {
|
|
21
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { commonjsGlobal as a, createCommonjsModule as c, getDefaultExportFromCjs as g };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-4e30ffd0.js';
|
|
5
|
-
import { e as email } from './mail-9d5204c6.js';
|
|
6
|
-
import { C as Cancel } from './cancel-41a92070.js';
|
|
7
|
-
|
|
8
4
|
/*
|
|
9
5
|
* anime.js v3.2.1
|
|
10
6
|
* (c) 2020 Julian Garnier
|
|
@@ -1313,131 +1309,4 @@ anime.easing = parseEasings;
|
|
|
1313
1309
|
anime.penner = penner;
|
|
1314
1310
|
anime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };
|
|
1315
1311
|
|
|
1316
|
-
|
|
1317
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
1318
|
-
<title>facebook</title>
|
|
1319
|
-
<path d="M19 32h-6c-0.552 0-1-0.448-1-1v0-13h-3c-0.552 0-1-0.448-1-1v0-5c0-0.552 0.448-1 1-1v0h3v-4c0-3.866 3.134-7 7-7v0h4c0.552 0 1 0.448 1 1v0 5c0 0.552-0.448 1-1 1v0h-2c-0.552 0-1 0.448-1 1v0 3h5c0.552 0 1 0.448 1 1 0 0.134-0.026 0.262-0.074 0.379l0.002-0.007-2 5c-0.152 0.371-0.51 0.628-0.928 0.628h-3v13c0 0.552-0.448 1-1 1v0zM14 30h4v-13c0-0.552 0.448-1 1-1v0h3.324l1.2-3h-4.524c-0.552 0-1-0.448-1-1v0-4c0-1.657 1.343-3 3-3v0h1v-3h-3c-2.761 0-5 2.239-5 5v0 5c0 0.552-0.448 1-1 1v0h-3v3h3c0.552 0 1 0.448 1 1v0z"></path>
|
|
1320
|
-
</svg>
|
|
1321
|
-
`;
|
|
1322
|
-
|
|
1323
|
-
const twitter = `<!-- Generated by IcoMoon.io -->
|
|
1324
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
1325
|
-
<title>twitter</title>
|
|
1326
|
-
<path d="M10.436 30c-0.012 0-0.026 0-0.041 0-3.691 0-7.129-1.088-10.009-2.961l0.071 0.043c-0.279-0.181-0.46-0.49-0.46-0.842 0-0.123 0.022-0.24 0.063-0.349l-0.002 0.007c0.148-0.387 0.516-0.657 0.948-0.657 0.042 0 0.083 0.003 0.123 0.007l-0.005-0c0.399 0.049 0.86 0.077 1.328 0.077 1.836 0 3.57-0.432 5.108-1.199l-0.066 0.030c-1.941-0.823-3.42-2.412-4.079-4.377l-0.015-0.051c-0.033-0.095-0.053-0.205-0.053-0.32 0-0.255 0.096-0.488 0.253-0.665l-0.001 0.001 0.062-0.062c-1.511-1.323-2.46-3.254-2.462-5.408v-0c0-0 0-0.001 0-0.001 0-0.374 0.194-0.703 0.488-0.89l0.004-0.003c0.115-0.070 0.25-0.121 0.393-0.145l0.007-0.001c-0.534-0.978-0.848-2.141-0.848-3.379 0-1.329 0.362-2.574 0.994-3.641l-0.018 0.033c0.176-0.301 0.498-0.501 0.866-0.501 0.312 0 0.591 0.143 0.774 0.367l0.001 0.002c2.627 3.213 6.397 5.405 10.682 5.953l0.082 0.009c0-0.098 0-0.2 0-0.302 0-0.001 0-0.002 0-0.002 0-3.949 3.201-7.15 7.15-7.15 1.852 0 3.54 0.704 4.81 1.86l-0.006-0.005c1.165-0.288 2.19-0.719 3.127-1.282l-0.051 0.028c0.146-0.088 0.323-0.141 0.512-0.141 0.552 0 1 0.448 1 1 0 0.109-0.017 0.214-0.050 0.312l0.002-0.007c-0.151 0.464-0.324 0.861-0.531 1.237l0.019-0.037c0.117-0.052 0.253-0.082 0.396-0.082 0.552 0 1 0.448 1 1 0 0.208-0.064 0.401-0.172 0.561l0.002-0.004c-0.812 1.212-1.772 2.247-2.87 3.114l-0.028 0.022c0 0.1 0 0.2 0 0.306 0 0.051 0.001 0.111 0.001 0.171 0 10.12-8.204 18.324-18.324 18.324-0.062 0-0.124-0-0.186-0.001l0.009 0zM5 27.084c1.616 0.58 3.481 0.916 5.424 0.916 0.004 0 0.008 0 0.013 0h-0.001c0.048 0 0.104 0.001 0.161 0.001 9.027 0 16.344-7.317 16.344-16.344 0-0.055-0-0.11-0.001-0.165l0 0.008c0-0.256 0-0.502-0.022-0.746-0.001-0.014-0.001-0.031-0.001-0.049 0-0.335 0.165-0.632 0.418-0.813l0.003-0.002q0.312-0.222 0.6-0.466l-0.364 0.052c-0.038 0.005-0.082 0.008-0.126 0.008-0.552 0-1-0.448-1-1 0-0.363 0.193-0.68 0.482-0.856l0.004-0.003q0.222-0.134 0.428-0.286c-0.3 0.082-0.6 0.154-0.912 0.214-0.059 0.012-0.127 0.020-0.197 0.020-0.286 0-0.544-0.12-0.727-0.313l-0-0c-0.943-1.007-2.28-1.634-3.764-1.634-2.845 0-5.152 2.307-5.152 5.152 0 0.001 0 0.002 0 0.002v-0c-0 0.020-0 0.043-0 0.066 0 0.395 0.043 0.781 0.125 1.151l-0.007-0.035c0.017 0.069 0.027 0.148 0.027 0.23 0 0.242-0.086 0.463-0.228 0.636l0.001-0.002c-0.177 0.219-0.445 0.358-0.746 0.358-0.024 0-0.047-0.001-0.071-0.003l0.003 0c-4.85-0.253-9.167-2.342-12.31-5.577l-0.004-0.005c-0.098 0.376-0.155 0.808-0.155 1.253 0 1.778 0.902 3.345 2.272 4.27l0.018 0.012c0.27 0.182 0.446 0.487 0.446 0.832 0 0.552-0.448 1-1 1-0.008 0-0.015-0-0.023-0l0.001 0c-0.548-0.010-1.074-0.082-1.577-0.21l0.047 0.010c0.554 1.812 2.029 3.181 3.866 3.574l0.034 0.006c0.458 0.097 0.797 0.499 0.797 0.979 0 0.456-0.305 0.841-0.722 0.961l-0.007 0.002c-0.412 0.117-0.89 0.198-1.383 0.225l-0.017 0.001c0.926 1.304 2.415 2.156 4.105 2.2l0.007 0c0.546 0.009 0.984 0.453 0.984 1 0 0.319-0.15 0.603-0.382 0.787l-0.002 0.002c-1.596 1.249-3.522 2.154-5.625 2.568l-0.085 0.014z"></path>
|
|
1327
|
-
</svg>
|
|
1328
|
-
`;
|
|
1329
|
-
|
|
1330
|
-
const copy_link = `<!-- Generated by IcoMoon.io -->
|
|
1331
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
1332
|
-
<title>link</title>
|
|
1333
|
-
<path d="M19.247 23.019l-4.189 4.189c-2.831 2.831-7.435 2.831-10.265 0-1.371-1.372-2.125-3.193-2.125-5.132s0.755-3.761 2.125-5.133l4.189-4.191c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-4.189 4.191c-1.875 1.875-2.907 4.367-2.907 7.019s1.032 5.143 2.907 7.017 4.368 2.907 7.019 2.907 5.143-1.032 7.017-2.908l4.189-4.189c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.52-1.885 0.001zM22.276 9.724c-0.521-0.521-1.364-0.521-1.885 0l-10.667 10.667c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l10.667-10.667c0.521-0.521 0.521-1.364 0-1.885zM29.093 2.908c-1.875-1.876-4.368-2.908-7.019-2.908s-5.143 1.032-7.017 2.908l-4.189 4.188c-0.521 0.521-0.521 1.364 0 1.885s1.364 0.521 1.885 0l4.189-4.189c2.831-2.831 7.435-2.831 10.265 0 1.371 1.372 2.125 3.193 2.125 5.132s-0.755 3.761-2.125 5.133l-4.189 4.191c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l4.189-4.191c1.875-1.875 2.907-4.367 2.907-7.019s-1.032-5.143-2.907-7.016z"></path>
|
|
1334
|
-
</svg>
|
|
1335
|
-
`;
|
|
1336
|
-
|
|
1337
|
-
const whatsapp = `<!-- Generated by IcoMoon.io -->
|
|
1338
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
1339
|
-
<title>whatsapp</title>
|
|
1340
|
-
<path d="M16 32c-0.008 0-0.018 0-0.028 0-3.1 0-5.993-0.887-8.439-2.421l0.066 0.039-7.2 2.3 2.336-6.964c-1.713-2.492-2.736-5.575-2.736-8.897 0-0.020 0-0.040 0-0.060v0.003c0.009-8.833 7.167-15.991 15.999-16h0.001c8.837 0 16 7.163 16 16s-7.163 16-16 16v0zM7.906 27.424l0.4 0.264c2.169 1.449 4.837 2.312 7.707 2.312 7.732 0 14-6.268 14-14s-6.268-14-14-14c-0.004 0-0.009 0-0.013 0h0.001c-7.729 0.008-13.992 6.271-14 13.999v0.001c-0 0.010-0 0.021-0 0.032 0 3.072 1 5.909 2.693 8.206l-0.027-0.038 0.304 0.416-1.4 4.2zM20.716 24.958c-1.684-0.131-3.237-0.574-4.641-1.271l0.073 0.033c-3.098-1.456-5.634-3.668-7.438-6.405l-0.042-0.067c-1.102-1.357-1.819-3.067-1.962-4.938l-0.002-0.030c-0.001-0.036-0.001-0.078-0.001-0.12 0-1.575 0.66-2.995 1.719-4l0.002-0.002c0.547-0.52 1.289-0.839 2.105-0.839 0.033 0 0.066 0.001 0.099 0.002l-0.005-0c0.2 0 0.378 0 0.542 0.018 0.016-0.001 0.035-0.001 0.054-0.001 0.815 0 1.502 0.549 1.711 1.298l0.003 0.012 0.324 0.782c0.376 0.906 0.858 2.068 0.942 2.244 0.144 0.251 0.23 0.552 0.23 0.873 0 0.286-0.068 0.557-0.188 0.797l0.005-0.010c-0.149 0.307-0.332 0.57-0.55 0.802l0.002-0.002c-0.148 0.168-0.248 0.274-0.346 0.378s-0.172 0.18-0.26 0.284c0.575 0.92 1.237 1.713 1.992 2.406l0.008 0.008c0.829 0.758 1.802 1.373 2.872 1.8l0.064 0.022c0.369-0.266 0.672-0.6 0.896-0.985l0.008-0.015 0.174-0.232c0.328-0.484 0.875-0.798 1.495-0.798 0.249 0 0.487 0.051 0.703 0.142l-0.012-0.004c0.492 0.168 2.922 1.372 2.946 1.384l0.228 0.11c0.415 0.149 0.758 0.417 0.996 0.763l0.004 0.007c0.107 0.349 0.169 0.75 0.169 1.166 0 0.591-0.125 1.153-0.349 1.661l0.010-0.026c-0.702 1.368-1.983 2.353-3.511 2.637l-0.031 0.005c-0.309 0.071-0.663 0.112-1.028 0.112-0.004 0-0.007 0-0.011 0h0.001zM10.632 9.318c-0.028-0.002-0.062-0.004-0.095-0.004-0.245 0-0.472 0.076-0.659 0.206l0.004-0.002c-0.726 0.651-1.18 1.591-1.18 2.638 0 0.044 0.001 0.087 0.002 0.13l-0-0.006c0.122 1.404 0.662 2.662 1.495 3.671l-0.009-0.011 0.12 0.168c1.627 2.491 3.865 4.46 6.504 5.723l0.096 0.041c3.136 1.288 3.916 1.124 4.426 1.014 0.87-0.159 1.601-0.656 2.067-1.347l0.007-0.011c0.12-0.316 0.204-0.682 0.237-1.063l0.001-0.015-0.040-0.018-0.256-0.124c-0.8-0.4-2.46-1.2-2.734-1.292l-0.058 0.184c-0.346 0.501-0.684 0.934-1.045 1.347l0.015-0.017c-0.344 0.349-0.821 0.565-1.349 0.565-0.28 0-0.546-0.061-0.785-0.17l0.012 0.005c-1.403-0.547-2.609-1.301-3.646-2.239l0.010 0.009c-0.975-0.891-1.81-1.912-2.486-3.039l-0.034-0.061c-0.152-0.244-0.242-0.54-0.242-0.857 0-0.463 0.191-0.88 0.499-1.178l0-0c0.13-0.162 0.264-0.302 0.4-0.444l0.236-0.256c0.091-0.096 0.177-0.201 0.254-0.311l0.006-0.009c-0.158-0.36-0.622-1.472-0.988-2.352l-0.322-0.772-0.038-0.086c-0.188-0.010-0.302-0.016-0.426-0.016zM12.462 12.442v0.012z"></path>
|
|
1341
|
-
</svg>
|
|
1342
|
-
`;
|
|
1343
|
-
|
|
1344
|
-
var Socials;
|
|
1345
|
-
(function (Socials) {
|
|
1346
|
-
Socials["FACEBOOK"] = "facebook";
|
|
1347
|
-
Socials["TWITTER"] = "twitter";
|
|
1348
|
-
Socials["WHATSAPP"] = "whatsapp";
|
|
1349
|
-
Socials["EMAIL"] = "email";
|
|
1350
|
-
Socials["COPY_LINK"] = "copy_link";
|
|
1351
|
-
})(Socials || (Socials = {}));
|
|
1352
|
-
|
|
1353
|
-
const ShareAlt = `<!-- Generated by IcoMoon.io -->
|
|
1354
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
1355
|
-
<title>share-alt</title>
|
|
1356
|
-
<path d="M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>
|
|
1357
|
-
</svg>
|
|
1358
|
-
`;
|
|
1359
|
-
|
|
1360
|
-
const sallaSocialShareCss = "";
|
|
1361
|
-
|
|
1362
|
-
const SallaSocialShare = class {
|
|
1363
|
-
constructor(hostRef) {
|
|
1364
|
-
registerInstance(this, hostRef);
|
|
1365
|
-
this.opened = false;
|
|
1366
|
-
this.allPlatforms = [Socials.WHATSAPP, Socials.FACEBOOK, Socials.TWITTER, Socials.EMAIL, Socials.COPY_LINK];
|
|
1367
|
-
this.platformIcons = [{ icon: whatsapp, name: Socials.WHATSAPP }, { icon: facebook, name: Socials.FACEBOOK }, { icon: twitter, name: Socials.TWITTER }, { icon: email, name: Socials.EMAIL }, { icon: copy_link, name: Socials.COPY_LINK }];
|
|
1368
|
-
/**
|
|
1369
|
-
* page url that will be shared custom | current page url
|
|
1370
|
-
*/
|
|
1371
|
-
this.url = "";
|
|
1372
|
-
/**
|
|
1373
|
-
* page url name that will be shared custom | current page url
|
|
1374
|
-
*/
|
|
1375
|
-
this.urlName = "";
|
|
1376
|
-
/**
|
|
1377
|
-
* selected platforms to share | all platforms
|
|
1378
|
-
*/
|
|
1379
|
-
this.platforms = this.allPlatforms;
|
|
1380
|
-
}
|
|
1381
|
-
componentWillLoad() {
|
|
1382
|
-
let that = this;
|
|
1383
|
-
if (document.getElementById('a2a-script')) {
|
|
1384
|
-
return;
|
|
1385
|
-
}
|
|
1386
|
-
const script = document.createElement('script');
|
|
1387
|
-
script.src = 'https://static.addtoany.com/menu/page.js';
|
|
1388
|
-
script.setAttribute('id', 'a2a-script');
|
|
1389
|
-
script.async = true;
|
|
1390
|
-
script.onload = function () {
|
|
1391
|
-
// ? this will not work if there is one share component in the page
|
|
1392
|
-
window.a2a_config = window.a2a_config || {};
|
|
1393
|
-
window.a2a_config.linkurl = that.url ? that.url : window.location.href;
|
|
1394
|
-
window.a2a_config.linkname = that.urlName ? that.urlName : document.title;
|
|
1395
|
-
};
|
|
1396
|
-
document.body.appendChild(script);
|
|
1397
|
-
salla.lang.onLoaded(() => {
|
|
1398
|
-
window.a2a_config.locale = salla.lang.locale;
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
|
-
* Activate or open the share menu.
|
|
1403
|
-
*/
|
|
1404
|
-
async open() {
|
|
1405
|
-
this.opened = !this.opened;
|
|
1406
|
-
if (this.opened) {
|
|
1407
|
-
this.shareMenu.classList.add('opened');
|
|
1408
|
-
}
|
|
1409
|
-
else {
|
|
1410
|
-
this.shareMenu.classList.remove('opened');
|
|
1411
|
-
}
|
|
1412
|
-
new anime.timeline()
|
|
1413
|
-
.add({
|
|
1414
|
-
targets: this.shareMenu,
|
|
1415
|
-
translateY: [-50, 0],
|
|
1416
|
-
opacity: [0, 1],
|
|
1417
|
-
duration: 300,
|
|
1418
|
-
podding: '0',
|
|
1419
|
-
easing: 'easeInOutSine'
|
|
1420
|
-
})
|
|
1421
|
-
.add({
|
|
1422
|
-
targets: this.platformItem,
|
|
1423
|
-
translateZ: 0,
|
|
1424
|
-
translateY: [-30, 0],
|
|
1425
|
-
scaleY: [0, 1],
|
|
1426
|
-
opacity: [0, 1],
|
|
1427
|
-
duration: 1200,
|
|
1428
|
-
delay: anime.stagger(100)
|
|
1429
|
-
}, '-=200');
|
|
1430
|
-
}
|
|
1431
|
-
render() {
|
|
1432
|
-
return (h("div", { class: "s-social-share-wrapper" }, h("slot", { name: 'widget' }, h("salla-button", { "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share" }, this.platforms.map(platform => {
|
|
1433
|
-
return (h("li", { ref: el => this.platformItem = el }, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
1434
|
-
if (icon.name === platform) {
|
|
1435
|
-
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
1436
|
-
}
|
|
1437
|
-
}))));
|
|
1438
|
-
}))));
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
|
-
SallaSocialShare.style = sallaSocialShareCss;
|
|
1442
|
-
|
|
1443
|
-
export { SallaSocialShare as salla_social_share };
|
|
1312
|
+
export { anime as a };
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
export { SallaAddProductButton as SallaAddProductButton } from '../types/components/salla-add-product-button/salla-add-product-button';
|
|
3
3
|
export { SallaButton as SallaButton } from '../types/components/salla-button/salla-button';
|
|
4
4
|
export { SallaConditionalFields as SallaConditionalFields } from '../types/components/salla-conditional-fields/salla-conditional-fields';
|
|
5
|
+
export { SallaDatetimePicker as SallaDatetimePicker } from '../types/components/salla-datetime-picker/salla-datetime-picker';
|
|
6
|
+
export { SallaFileUpload as SallaFileUpload } from '../types/components/salla-file-upload/salla-file-upload';
|
|
7
|
+
export { SallaGifting as SallaGifting } from '../types/components/salla-gifting/salla-gifting';
|
|
5
8
|
export { SallaInfiniteScroll as SallaInfiniteScroll } from '../types/components/salla-infinite-scroll/salla-infinite-scroll';
|
|
6
9
|
export { SallaInstallment as SallaInstallment } from '../types/components/salla-installment/salla-installment';
|
|
7
10
|
export { SallaListTile as SallaListTile } from '../types/components/salla-list-tile/salla-list-tile';
|
|
@@ -9,6 +12,7 @@ export { SallaLoading as SallaLoading } from '../types/components/salla-loading/
|
|
|
9
12
|
export { SallaLocalizationModal as SallaLocalizationModal } from '../types/components/salla-localization-modal/salla-localization-modal';
|
|
10
13
|
export { SallaLoginModal as SallaLoginModal } from '../types/components/salla-login-modal/salla-login-modal';
|
|
11
14
|
export { SallaLoyalty as SallaLoyalty } from '../types/components/salla-loyalty/salla-loyalty';
|
|
15
|
+
export { SallaLoyaltyPrizeItem as SallaLoyaltyPrizeItem } from '../types/components/salla-loyalty/salla-loyalty-prize-item';
|
|
12
16
|
export { SallaModal as SallaModal } from '../types/components/salla-modal/salla-modal';
|
|
13
17
|
export { SallaOfferModal as SallaOfferModal } from '../types/components/salla-offer-modal/salla-offer-modal';
|
|
14
18
|
export { SallaPlaceholder as SallaPlaceholder } from '../types/components/salla-placeholder/salla-placeholder';
|
|
@@ -19,6 +23,7 @@ export { SallaRatingModal as SallaRatingModal } from '../types/components/salla-
|
|
|
19
23
|
export { SallaRatingStars as SallaRatingStars } from '../types/components/salla-rating-stars/salla-rating-stars';
|
|
20
24
|
export { SallaScopees as SallaScopes } from '../types/components/salla-scopes/salla-scopes';
|
|
21
25
|
export { SallaSearch as SallaSearch } from '../types/components/salla-search/salla-search';
|
|
26
|
+
export { SallaSelect as SallaSelect } from '../types/components/salla-select/salla-select';
|
|
22
27
|
export { SallaSkeleton as SallaSkeleton } from '../types/components/salla-skeleton/salla-skeleton';
|
|
23
28
|
export { SallaSocialShare as SallaSocialShare } from '../types/components/salla-social-share/salla-social-share';
|
|
24
29
|
export { SallaSwiper as SallaSwiper } from '../types/components/salla-swiper/salla-swiper';
|
package/dist/components/index.js
CHANGED
|
@@ -5,6 +5,9 @@ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client'
|
|
|
5
5
|
export { SallaAddProductButton, defineCustomElement as defineCustomElementSallaAddProductButton } from './salla-add-product-button.js';
|
|
6
6
|
export { SallaButton, defineCustomElement as defineCustomElementSallaButton } from './salla-button.js';
|
|
7
7
|
export { SallaConditionalFields, defineCustomElement as defineCustomElementSallaConditionalFields } from './salla-conditional-fields.js';
|
|
8
|
+
export { SallaDatetimePicker, defineCustomElement as defineCustomElementSallaDatetimePicker } from './salla-datetime-picker.js';
|
|
9
|
+
export { SallaFileUpload, defineCustomElement as defineCustomElementSallaFileUpload } from './salla-file-upload.js';
|
|
10
|
+
export { SallaGifting, defineCustomElement as defineCustomElementSallaGifting } from './salla-gifting.js';
|
|
8
11
|
export { SallaInfiniteScroll, defineCustomElement as defineCustomElementSallaInfiniteScroll } from './salla-infinite-scroll.js';
|
|
9
12
|
export { SallaInstallment, defineCustomElement as defineCustomElementSallaInstallment } from './salla-installment.js';
|
|
10
13
|
export { SallaListTile, defineCustomElement as defineCustomElementSallaListTile } from './salla-list-tile.js';
|
|
@@ -12,6 +15,7 @@ export { SallaLoading, defineCustomElement as defineCustomElementSallaLoading }
|
|
|
12
15
|
export { SallaLocalizationModal, defineCustomElement as defineCustomElementSallaLocalizationModal } from './salla-localization-modal.js';
|
|
13
16
|
export { SallaLoginModal, defineCustomElement as defineCustomElementSallaLoginModal } from './salla-login-modal.js';
|
|
14
17
|
export { SallaLoyalty, defineCustomElement as defineCustomElementSallaLoyalty } from './salla-loyalty.js';
|
|
18
|
+
export { SallaLoyaltyPrizeItem, defineCustomElement as defineCustomElementSallaLoyaltyPrizeItem } from './salla-loyalty-prize-item.js';
|
|
15
19
|
export { SallaModal, defineCustomElement as defineCustomElementSallaModal } from './salla-modal.js';
|
|
16
20
|
export { SallaOfferModal, defineCustomElement as defineCustomElementSallaOfferModal } from './salla-offer-modal.js';
|
|
17
21
|
export { SallaPlaceholder, defineCustomElement as defineCustomElementSallaPlaceholder } from './salla-placeholder.js';
|
|
@@ -22,6 +26,7 @@ export { SallaRatingModal, defineCustomElement as defineCustomElementSallaRating
|
|
|
22
26
|
export { SallaRatingStars, defineCustomElement as defineCustomElementSallaRatingStars } from './salla-rating-stars.js';
|
|
23
27
|
export { SallaScopes, defineCustomElement as defineCustomElementSallaScopes } from './salla-scopes.js';
|
|
24
28
|
export { SallaSearch, defineCustomElement as defineCustomElementSallaSearch } from './salla-search.js';
|
|
29
|
+
export { SallaSelect, defineCustomElement as defineCustomElementSallaSelect } from './salla-select.js';
|
|
25
30
|
export { SallaSkeleton, defineCustomElement as defineCustomElementSallaSkeleton } from './salla-skeleton.js';
|
|
26
31
|
export { SallaSocialShare, defineCustomElement as defineCustomElementSallaSocialShare } from './salla-social-share.js';
|
|
27
32
|
export { SallaSwiper, defineCustomElement as defineCustomElementSallaSwiper } from './salla-swiper.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaDatetimePicker extends Components.SallaDatetimePicker, HTMLElement {}
|
|
4
|
+
export const SallaDatetimePicker: {
|
|
5
|
+
prototype: SallaDatetimePicker;
|
|
6
|
+
new (): SallaDatetimePicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { S as SallaDatetimePicker$1, d as defineCustomElement$1 } from './salla-datetime-picker2.js';
|
|
5
|
+
|
|
6
|
+
const SallaDatetimePicker = SallaDatetimePicker$1;
|
|
7
|
+
const defineCustomElement = defineCustomElement$1;
|
|
8
|
+
|
|
9
|
+
export { SallaDatetimePicker, defineCustomElement };
|