@salla.sa/twilight 2.0.20 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/components/README.md +0 -55
  3. package/components/dist/cjs/index-9441fd8e.js +0 -1554
  4. package/components/dist/cjs/index.cjs.js +0 -2
  5. package/components/dist/cjs/loader.cjs.js +0 -21
  6. package/components/dist/cjs/salla-login_2.cjs.entry.js +0 -131
  7. package/components/dist/cjs/twilight-components.cjs.js +0 -19
  8. package/components/dist/collection/collection-manifest.json +0 -13
  9. package/components/dist/collection/components/generate-summary.js +0 -35
  10. package/components/dist/collection/components/salla-login/salla-login.css +0 -104
  11. package/components/dist/collection/components/salla-login/salla-login.js +0 -113
  12. package/components/dist/collection/components/search-modal/search-modal.css +0 -9
  13. package/components/dist/collection/components/search-modal/search-modal.js +0 -161
  14. package/components/dist/collection/index.js +0 -1
  15. package/components/dist/collection/interfaces/colors.js +0 -1
  16. package/components/dist/collection/interfaces/index.js +0 -2
  17. package/components/dist/collection/interfaces/ratio.js +0 -1
  18. package/components/dist/collection/plugins/tailwind-theme/index.js +0 -32
  19. package/components/dist/collection/plugins/tailwind-theme/scripts/generator.js +0 -51
  20. package/components/dist/collection/utils/utils.js +0 -16
  21. package/components/dist/esm/index-63e5409f.js +0 -1527
  22. package/components/dist/esm/index.js +0 -1
  23. package/components/dist/esm/loader.js +0 -17
  24. package/components/dist/esm/polyfills/core-js.js +0 -11
  25. package/components/dist/esm/polyfills/css-shim.js +0 -1
  26. package/components/dist/esm/polyfills/dom.js +0 -79
  27. package/components/dist/esm/polyfills/es5-html-element.js +0 -1
  28. package/components/dist/esm/polyfills/index.js +0 -34
  29. package/components/dist/esm/polyfills/system.js +0 -6
  30. package/components/dist/esm/salla-login_2.entry.js +0 -126
  31. package/components/dist/esm/twilight-components.js +0 -17
  32. package/components/dist/index.cjs.js +0 -1
  33. package/components/dist/index.js +0 -1
  34. package/components/dist/twilight-components/index.esm.js +0 -0
  35. package/components/dist/twilight-components/p-3d53781c.js +0 -1
  36. package/components/dist/twilight-components/p-fccb89fa.entry.js +0 -1
  37. package/components/dist/twilight-components/twilight-components.esm.js +0 -1
  38. package/components/dist/types/components/salla-login/salla-login.d.ts +0 -14
  39. package/components/dist/types/components/search-modal/search-modal.d.ts +0 -26
  40. package/components/dist/types/components.d.ts +0 -76
  41. package/components/dist/types/index.d.ts +0 -6
  42. package/components/dist/types/interfaces/colors.d.ts +0 -1
  43. package/components/dist/types/interfaces/index.d.ts +0 -2
  44. package/components/dist/types/interfaces/ratio.d.ts +0 -1
  45. package/components/dist/types/stencil-public-runtime.d.ts +0 -1563
  46. package/components/dist/types/utils/utils.d.ts +0 -6
  47. package/components/loader/cdn.js +0 -3
  48. package/components/loader/index.cjs.js +0 -3
  49. package/components/loader/index.d.ts +0 -13
  50. package/components/loader/index.es2017.js +0 -3
  51. package/components/loader/index.js +0 -4
  52. package/components/loader/package.json +0 -10
  53. package/components/package.json +0 -70
  54. package/components/src/plugins/tailwind-theme/index.js +0 -32
  55. package/components/src/plugins/tailwind-theme/package.json +0 -27
  56. package/components/src/plugins/tailwind-theme/readme.md +0 -47
  57. package/components/src/plugins/tailwind-theme/safe-list-css.txt +0 -19
  58. package/components/src/plugins/tailwind-theme/utilities.json +0 -1
  59. package/components.js +0 -1
  60. package/tailwind.js +0 -1
  61. package/tailwind_css_list.js +0 -1
@@ -1,51 +0,0 @@
1
- var fs = require('fs');
2
- var path = require('path');
3
- var _ = require('lodash');
4
- var components = {};
5
- fs.readdirSync(path.resolve(__dirname, './../'), {withFileTypes: true}).filter(dirent => dirent.isDirectory()).forEach(directory => {
6
- try {
7
- components[directory.name] = JSON.parse(fs.readFileSync(path.resolve(__dirname + '/../' + directory.name, 'utilities.json'), 'UTF-8'));
8
- } catch (e) {
9
- // ignore
10
- }
11
- });
12
-
13
- var utilities = {};
14
-
15
- for (const [keyComponent, value] of Object.entries(components)) {
16
- console.log('> Processing ' + keyComponent + ' ...');
17
- _.forEach(value, function(value, keyUtility) {
18
- keyUtility = '.s-' + keyComponent + '-' + keyUtility;
19
- utilities[keyUtility] = {[`@apply ${value}`]: {}};
20
- });
21
- console.log('✓ Processed ' + keyComponent + '');
22
- }
23
-
24
- // write the utilities for the plugin
25
- console.log('> Write utilities ...');
26
- fs.writeFileSync(
27
- path.resolve(__dirname, './../utilities.json'),
28
- JSON.stringify(utilities),
29
- function(err) {
30
- if (err) {
31
- return console.log(err);
32
- }
33
- console.log('The file was saved!');
34
- }
35
- );
36
-
37
-
38
- // write the save list css
39
- console.log('> Write safe-list-css ...');
40
- fs.writeFileSync(
41
- path.resolve(__dirname, './../safe-list-css.txt'),
42
- Object.keys(utilities).map((name) => name.replace('.','')).join('\n'),
43
- function(err) {
44
- if (err) {
45
- return console.log(err);
46
- }
47
- console.log('The file was saved!');
48
- }
49
- );
50
-
51
- console.log('✓ Done ...');
@@ -1,16 +0,0 @@
1
- export function format(first, middle, last) {
2
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
- }
4
- export const toInteger = (value, defaultValue = NaN) => {
5
- const integer = parseInt(value, 10);
6
- return isNaN(integer) ? defaultValue : integer;
7
- };
8
- export const validateInput = event => {
9
- const isValid = true;
10
- const errors = [];
11
- // check if email or url matched
12
- if (event.target.validity.typeMismatch) {
13
- errors.push('mismatched');
14
- }
15
- return { isValid, errors };
16
- };