@salla.sa/twilight-components 1.0.17 → 1.0.18
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/{esm/Helper-81ac9a8c.js → twilight-components/Helper-d07ebbc7.js} +1 -1
- package/dist/twilight-components/app-globals-0f993ce5.js +3 -0
- package/dist/twilight-components/css-shim-a64b8820.js +4 -0
- package/dist/twilight-components/dom-d08ba8aa.js +73 -0
- package/dist/twilight-components/index-8966d27f.js +3010 -0
- package/dist/twilight-components/index.esm.js +4 -1
- package/dist/{esm → twilight-components}/salla-branches.entry.js +1 -1
- package/dist/twilight-components/salla-button.entry.js +75 -0
- package/dist/{esm → twilight-components}/salla-localization.entry.js +18 -16
- package/dist/{esm/salla-login-32d25ffa.js → twilight-components/salla-login-7c25f64b.js} +2 -2
- package/dist/twilight-components/salla-login-b92c73dc.js +127 -0
- package/dist/twilight-components/salla-login.entry.js +3 -0
- package/dist/twilight-components/salla-modal.entry.js +113 -0
- package/dist/twilight-components/salla-offer.entry.js +46 -0
- package/dist/{esm → twilight-components}/salla-product-availability.entry.js +2 -2
- package/dist/{esm → twilight-components}/salla-rating.entry.js +2 -2
- package/dist/{esm/salla-search-f552c487.js → twilight-components/salla-search-69f2d9c1.js} +2 -2
- package/dist/twilight-components/salla-search.entry.js +3 -0
- package/dist/{collection/components/salla-verify/salla-verify.js → twilight-components/salla-verify.entry.js} +16 -140
- package/dist/twilight-components/shadow-css-bc14d9fd.js +389 -0
- package/dist/twilight-components/twilight-components.css +3 -1
- package/dist/twilight-components/twilight-components.esm.js +125 -1
- package/dist/types/components/salla-localization/salla-localization.d.ts +2 -0
- package/dist/types/components/salla-login/salla-login.d.ts +3 -2
- package/dist/types/components/salla-offer/salla-offer.d.ts +50 -2
- package/dist/types/components/salla-verify/salla-verify.d.ts +2 -0
- package/dist/types/components.d.ts +6 -1
- package/package.json +1 -1
- package/dist/cjs/Helper-8852feaa.js +0 -23
- package/dist/cjs/index-0b5b5867.js +0 -1656
- package/dist/cjs/index.cjs.js +0 -13
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/salla-branches.cjs.entry.js +0 -92
- package/dist/cjs/salla-button_4.cjs.entry.js +0 -299
- package/dist/cjs/salla-localization.cjs.entry.js +0 -80
- package/dist/cjs/salla-login-342876b9.js +0 -118
- package/dist/cjs/salla-offer.cjs.entry.js +0 -25
- package/dist/cjs/salla-product-availability.cjs.entry.js +0 -75
- package/dist/cjs/salla-rating.cjs.entry.js +0 -300
- package/dist/cjs/salla-search-28da4616.js +0 -81
- package/dist/cjs/salla-search.cjs.entry.js +0 -11
- package/dist/cjs/twilight-components.cjs.js +0 -19
- package/dist/collection/Helpers/Helper.js +0 -19
- package/dist/collection/collection-manifest.json +0 -21
- package/dist/collection/components/generate-summary.js +0 -35
- package/dist/collection/components/salla-branches/salla-branches.css +0 -12
- package/dist/collection/components/salla-branches/salla-branches.js +0 -233
- package/dist/collection/components/salla-button/salla-button.css +0 -3
- package/dist/collection/components/salla-button/salla-button.js +0 -246
- package/dist/collection/components/salla-localization/salla-localization.js +0 -206
- package/dist/collection/components/salla-login/salla-login.js +0 -348
- package/dist/collection/components/salla-modal/salla-modal.js +0 -459
- package/dist/collection/components/salla-offer/salla-offer.js +0 -40
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +0 -331
- package/dist/collection/components/salla-rating/salla-rating.css +0 -7
- package/dist/collection/components/salla-rating/salla-rating.js +0 -483
- package/dist/collection/components/salla-search/salla-search.js +0 -132
- package/dist/collection/index.js +0 -2
- package/dist/collection/interfaces/colors.js +0 -1
- package/dist/collection/interfaces/index.js +0 -2
- package/dist/collection/interfaces/ratio.js +0 -1
- package/dist/collection/plugins/tailwind-theme/generator.js +0 -62
- package/dist/collection/plugins/tailwind-theme/index.js +0 -26
- package/dist/esm/index-8b97d225.js +0 -1628
- package/dist/esm/index.js +0 -4
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/salla-button_4.entry.js +0 -292
- package/dist/esm/salla-offer.entry.js +0 -21
- package/dist/esm/salla-search.entry.js +0 -3
- package/dist/esm/twilight-components.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/twilight-components/p-33990e49.entry.js +0 -1
- package/dist/twilight-components/p-36683152.js +0 -1
- package/dist/twilight-components/p-3cfede65.entry.js +0 -1
- package/dist/twilight-components/p-648661c8.entry.js +0 -1
- package/dist/twilight-components/p-93c3ac79.js +0 -1
- package/dist/twilight-components/p-9bc28e0c.js +0 -1
- package/dist/twilight-components/p-a923a51e.entry.js +0 -1
- package/dist/twilight-components/p-bc278b0e.entry.js +0 -1
- package/dist/twilight-components/p-cb1c59a2.js +0 -1
- package/dist/twilight-components/p-fa04c4b6.entry.js +0 -1
- package/dist/twilight-components/p-fa2f0e64.entry.js +0 -1
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
var fs = require('fs');
|
|
2
|
-
var path = require('path');
|
|
3
|
-
var _ = require('lodash');
|
|
4
|
-
var components = {};
|
|
5
|
-
var componentsPath = path.resolve(__dirname, '../../components');
|
|
6
|
-
|
|
7
|
-
//==================== Global Salla Components Styles ====================//
|
|
8
|
-
var utilities = {
|
|
9
|
-
'.s-has-error': {'@apply !border-red-500 !text-red-500': {}},
|
|
10
|
-
'.s-ltr' : {direction: 'ltr'},
|
|
11
|
-
'.s-input' : {'@apply appearance-none form-input': {}},
|
|
12
|
-
'.s-hidden' : {'@apply hidden': {}},
|
|
13
|
-
'.s-block' : {'@apply block': {}},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
fs.readdirSync(componentsPath, {withFileTypes: true})
|
|
17
|
-
.filter(parent => parent.isDirectory())
|
|
18
|
-
.forEach(directory => {
|
|
19
|
-
try {
|
|
20
|
-
components[directory.name.replace('salla-', '')] = require(path.resolve(componentsPath, directory.name, 'utilities.json'));
|
|
21
|
-
} catch (e) {
|
|
22
|
-
// ignore
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
for (const [keyComponent, value] of Object.entries(components)) {
|
|
27
|
-
console.log('> Processing ' + keyComponent + ' ...');
|
|
28
|
-
_.forEach(value, function (value, keyUtility) {
|
|
29
|
-
keyUtility = '.s-' + keyComponent + '-' + keyUtility;
|
|
30
|
-
utilities[keyUtility] = {[`@apply ${value}`]: {}};
|
|
31
|
-
});
|
|
32
|
-
console.log('✓ Processed ' + keyComponent + '');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// write the utilities for the plugin
|
|
36
|
-
console.log('> Write utilities ...');
|
|
37
|
-
fs.writeFileSync(
|
|
38
|
-
path.resolve(__dirname, 'utilities.json'),
|
|
39
|
-
JSON.stringify(utilities),
|
|
40
|
-
function (err) {
|
|
41
|
-
if (err) {
|
|
42
|
-
return console.log(err);
|
|
43
|
-
}
|
|
44
|
-
console.log('The file was saved!');
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// write the save list css
|
|
50
|
-
console.log('> Write safe-list-css ...');
|
|
51
|
-
fs.writeFileSync(
|
|
52
|
-
path.resolve(__dirname, 'safe-list-css.txt'),
|
|
53
|
-
Object.keys(utilities).map((name) => name.replace('.', '')).join('\n'),
|
|
54
|
-
function (err) {
|
|
55
|
-
if (err) {
|
|
56
|
-
return console.log(err);
|
|
57
|
-
}
|
|
58
|
-
console.log('The file was saved!');
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
console.log('✓ Done ...');
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module.exports = require('tailwindcss/plugin').withOptions(() => {
|
|
2
|
-
return function ({addUtilities}) {
|
|
3
|
-
addUtilities({
|
|
4
|
-
// TODO :: find if there are used and defined them here if its.
|
|
5
|
-
'.anime-item' : {},
|
|
6
|
-
'.text-md' : {},
|
|
7
|
-
'.items-top' : {},
|
|
8
|
-
'.error' : {},
|
|
9
|
-
'.search-box' : {},
|
|
10
|
-
'.spinner-loader-wrap': {},
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// todo :: move it to global
|
|
14
|
-
addUtilities({
|
|
15
|
-
'.spinner-loader': {
|
|
16
|
-
'border-right-color': 'var(--color-main) !important',
|
|
17
|
-
'&.reverse': {
|
|
18
|
-
'border-right-color': '#9f7171 !important',
|
|
19
|
-
'background-color' : '#f98181'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
addUtilities(require('./utilities.json'));
|
|
25
|
-
};
|
|
26
|
-
});
|