@massimo-cassandro/minimo 1.16.2 → 1.17.0

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 (31) hide show
  1. package/design-tokens/_src/components/modal-alert.minimo.tokens.mjs +164 -0
  2. package/design-tokens/_src/components/slide-up-down-toggle.minimo.tokens.mjs +9 -0
  3. package/design-tokens/_src/headings.minimo.tokens.mjs +8 -0
  4. package/design-tokens/_src/typography.minimo.tokens.mjs +1 -1
  5. package/design-tokens/tokens/components/modal-alert.minimo.tokens.jsonc +166 -0
  6. package/design-tokens/tokens/components/slide-up-down-toggle.minimo.tokens.jsonc +14 -0
  7. package/design-tokens/tokens/headings.minimo.tokens.jsonc +8 -0
  8. package/design-tokens/utilities/build-tokens-src/formats/css.mjs +1 -1
  9. package/design-tokens/utilities/build-tokens-src/formats/penpot.mjs +1 -1
  10. package/design-tokens/utilities/check-unresolved-custom-props.mjs +11 -12
  11. package/design-tokens/utilities/tokens-config-sample.mjs +1 -1
  12. package/package.json +1 -1
  13. package/src/components/modal-alert/modal-alert.js +295 -165
  14. package/src/components/modal-alert/modal-alert.module.css +145 -0
  15. package/src/components/modal-alert/svg/confirm.svg +4 -1
  16. package/src/components/modal-alert/svg/danger.svg +4 -0
  17. package/src/components/modal-alert/svg/error.svg +4 -1
  18. package/src/components/modal-alert/svg/info.svg +4 -1
  19. package/src/components/modal-alert/svg/success.svg +4 -1
  20. package/src/components/modal-alert/svg/warning.svg +4 -1
  21. package/src/components/slide-up-down-toggle/slide-up-down-toggle.module.css +2 -2
  22. package/src/custom-properties.css +24 -0
  23. package/src/components/modal-alert/TODO modal-alert-demo/demo.css +0 -63
  24. package/src/components/modal-alert/TODO modal-alert-demo/demo.js +0 -155
  25. package/src/components/modal-alert/TODO.md +0 -3
  26. package/src/components/modal-alert/customization-templates/custom-modal-alert.css +0 -46
  27. package/src/components/modal-alert/customization-templates/custom-modal-alert.js +0 -89
  28. package/src/components/modal-alert/defaults.js +0 -58
  29. package/src/components/modal-alert/marks.js +0 -9
  30. package/src/components/modal-alert/modal-alert.css +0 -159
  31. package/src/components/modal-alert/svg/svg-to-js.mjs +0 -26
@@ -1,26 +0,0 @@
1
- /* eslint-disable no-console */
2
- // build a js file with all svgs as variables
3
-
4
- import * as fs from 'fs';
5
- import * as path from 'path';
6
-
7
- const __dirname = new URL('.', import.meta.url).pathname
8
- ,target_file = path.resolve(__dirname, '../marks.js')
9
- ,marks = {};
10
-
11
- ['confirm', 'error', 'info', 'success', 'warning'].forEach(svg => {
12
- const svg_content = fs.readFileSync(path.resolve(__dirname, `./${svg}.svg`), 'utf8');
13
- marks[svg] = svg_content; //.replaceAll('\'', '\\\'');
14
- });
15
-
16
- const content = '/* eslint-disable quotes */\n\n' +
17
- '/*\n' +
18
- ' This file was generated by the script `svg-to-js.mjs`\n' +
19
- ' (https://github.com/massimo-cassandro/modal-alert/blob/main/src/svg/svg-to-js.mjs).\n' +
20
- ' DO NOT EDIT (any changes will be overwritten)\n' +
21
- '*/\n\n' +
22
- 'export const marks = ' + JSON.stringify(marks) + ';';
23
-
24
- fs.writeFileSync(target_file, content, 'utf-8');
25
-
26
- console.log('svg-to-js: DONE');