@symbo.ls/scratch 2.11.125 → 2.11.131

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 (43) hide show
  1. package/package.json +2 -2
  2. package/LICENSE +0 -21
  3. package/dist/cjs/defaultConfig/animation.js +0 -26
  4. package/dist/cjs/defaultConfig/cases.js +0 -26
  5. package/dist/cjs/defaultConfig/color.js +0 -28
  6. package/dist/cjs/defaultConfig/document.js +0 -26
  7. package/dist/cjs/defaultConfig/font-family.js +0 -34
  8. package/dist/cjs/defaultConfig/font.js +0 -26
  9. package/dist/cjs/defaultConfig/icons.js +0 -26
  10. package/dist/cjs/defaultConfig/index.js +0 -221
  11. package/dist/cjs/defaultConfig/media.js +0 -51
  12. package/dist/cjs/defaultConfig/responsive.js +0 -50
  13. package/dist/cjs/defaultConfig/sequence.js +0 -51
  14. package/dist/cjs/defaultConfig/spacing.js +0 -85
  15. package/dist/cjs/defaultConfig/svg.js +0 -28
  16. package/dist/cjs/defaultConfig/templates.js +0 -26
  17. package/dist/cjs/defaultConfig/theme.js +0 -26
  18. package/dist/cjs/defaultConfig/timing.js +0 -67
  19. package/dist/cjs/defaultConfig/typography.js +0 -71
  20. package/dist/cjs/defaultConfig/unit.js +0 -28
  21. package/dist/cjs/factory.js +0 -1502
  22. package/dist/cjs/index.js +0 -3083
  23. package/dist/cjs/package.json +0 -4
  24. package/dist/cjs/set.js +0 -2452
  25. package/dist/cjs/system/color.js +0 -1735
  26. package/dist/cjs/system/document.js +0 -1528
  27. package/dist/cjs/system/font.js +0 -1568
  28. package/dist/cjs/system/index.js +0 -2640
  29. package/dist/cjs/system/reset.js +0 -1637
  30. package/dist/cjs/system/spacing.js +0 -1812
  31. package/dist/cjs/system/svg.js +0 -1639
  32. package/dist/cjs/system/theme.js +0 -1823
  33. package/dist/cjs/system/timing.js +0 -1725
  34. package/dist/cjs/system/typography.js +0 -1778
  35. package/dist/cjs/tests/index.js +0 -30
  36. package/dist/cjs/transforms/index.js +0 -2001
  37. package/dist/cjs/utils/color.js +0 -1423
  38. package/dist/cjs/utils/font.js +0 -72
  39. package/dist/cjs/utils/index.js +0 -2001
  40. package/dist/cjs/utils/sequence.js +0 -1671
  41. package/dist/cjs/utils/sprite.js +0 -1546
  42. package/dist/cjs/utils/theme.js +0 -34
  43. package/dist/cjs/utils/var.js +0 -1527
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/font.js
21
- var font_exports = {};
22
- __export(font_exports, {
23
- getDefaultOrFirstKey: () => getDefaultOrFirstKey,
24
- getFontFace: () => getFontFace,
25
- getFontFaceEach: () => getFontFaceEach,
26
- getFontFaceEachString: () => getFontFaceEachString,
27
- getFontFaceString: () => getFontFaceString,
28
- getFontFormat: () => getFontFormat,
29
- setCustomFont: () => setCustomFont,
30
- setCustomFontMedia: () => setCustomFontMedia,
31
- setInCustomFontMedia: () => setInCustomFontMedia
32
- });
33
- module.exports = __toCommonJS(font_exports);
34
- var getDefaultOrFirstKey = (LIBRARY, key) => {
35
- if (LIBRARY[key])
36
- return LIBRARY[key].value;
37
- if (LIBRARY.default)
38
- return LIBRARY[LIBRARY.default].value;
39
- const hasValue = Object.keys(LIBRARY)[0];
40
- return hasValue && LIBRARY[hasValue] && LIBRARY[hasValue].value;
41
- };
42
- var getFontFormat = (url) => url.split(/[#?]/)[0].split(".").pop().trim();
43
- var setInCustomFontMedia = (str) => `@font-face { ${str} }`;
44
- var setCustomFont = (name, url, weight) => `
45
- font-family: '${name}';
46
- font-style: normal;
47
- ${weight && `font-weight: ${weight};`}
48
- src: url('${url}') format('${getFontFormat(url)}');`;
49
- var setCustomFontMedia = (name, url, weight) => `@font-face {
50
- ${setCustomFont(name, url, weight)}
51
- }`;
52
- var getFontFaceEach = (name, weights) => {
53
- const keys = Object.keys(weights);
54
- return keys.map((key) => {
55
- const { url, fontWeight } = weights[key];
56
- return setCustomFont(name, url, fontWeight);
57
- });
58
- };
59
- var getFontFace = (LIBRARY) => {
60
- const keys = Object.keys(LIBRARY);
61
- return keys.map((key) => getFontFaceEach(key, LIBRARY[key].value));
62
- };
63
- var getFontFaceEachString = (name, weights) => {
64
- const isArr = weights[0];
65
- if (isArr)
66
- return getFontFaceEach(name, weights).map(setInCustomFontMedia);
67
- return setCustomFontMedia(name, weights.url);
68
- };
69
- var getFontFaceString = (LIBRARY) => {
70
- const keys = Object.keys(LIBRARY);
71
- return keys.map((key) => getFontFaceEachString(key, LIBRARY[key].value));
72
- };