@flodesk/grain 2.11.0 → 2.14.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 (58) hide show
  1. package/es/components/arrange.js +36 -24
  2. package/es/components/button.js +12 -8
  3. package/es/components/icon.js +123 -0
  4. package/es/components/index.js +9 -1
  5. package/es/components/text.js +0 -2
  6. package/es/icons/icon-align-center.js +62 -0
  7. package/es/icons/icon-align-left.js +62 -0
  8. package/es/icons/icon-align-right.js +62 -0
  9. package/es/icons/icon-arrow-down.js +55 -0
  10. package/es/icons/icon-arrow-left.js +55 -0
  11. package/es/icons/icon-arrow-right.js +55 -0
  12. package/es/icons/icon-arrow-up.js +55 -0
  13. package/es/icons/icon-browser.js +84 -0
  14. package/es/icons/icon-chart.js +54 -0
  15. package/es/icons/icon-check.js +59 -0
  16. package/es/icons/icon-chevron-down.js +54 -0
  17. package/es/icons/icon-chevron-horizontal.js +54 -0
  18. package/es/icons/icon-chevron-left.js +54 -0
  19. package/es/icons/icon-chevron-right.js +66 -0
  20. package/es/icons/icon-chevron-up.js +66 -0
  21. package/es/icons/icon-chevron-vertical.js +75 -0
  22. package/es/icons/icon-clip.js +54 -0
  23. package/es/icons/icon-clock.js +60 -0
  24. package/es/icons/icon-crop.js +58 -0
  25. package/es/icons/icon-cross.js +61 -0
  26. package/es/icons/icon-duplicate.js +64 -0
  27. package/es/icons/icon-ellipsis.js +65 -0
  28. package/es/icons/icon-file.js +60 -0
  29. package/es/icons/icon-folder-add.js +61 -0
  30. package/es/icons/icon-folder.js +55 -0
  31. package/es/icons/icon-gear.js +59 -0
  32. package/es/icons/icon-globe.js +64 -0
  33. package/es/icons/icon-heart.js +54 -0
  34. package/es/icons/icon-image.js +69 -0
  35. package/es/icons/icon-link.js +59 -0
  36. package/es/icons/icon-mail.js +64 -0
  37. package/es/icons/icon-minus.js +53 -0
  38. package/es/icons/icon-pencil.js +59 -0
  39. package/es/icons/icon-plus.js +56 -0
  40. package/es/icons/icon-redo.js +55 -0
  41. package/es/icons/icon-search.js +60 -0
  42. package/es/icons/icon-send.js +54 -0
  43. package/es/icons/icon-share.js +59 -0
  44. package/es/icons/icon-smile.js +74 -0
  45. package/es/icons/icon-switch.js +64 -0
  46. package/es/icons/icon-text-align-center.js +53 -0
  47. package/es/icons/icon-text-align-left.js +53 -0
  48. package/es/icons/icon-text-align-right.js +53 -0
  49. package/es/icons/icon-trash.js +64 -0
  50. package/es/icons/icon-type.js +53 -0
  51. package/es/icons/icon-undo.js +55 -0
  52. package/es/icons/index.js +377 -0
  53. package/es/index.js +14 -0
  54. package/es/styles/variables.css +9 -0
  55. package/es/types.js +2 -1
  56. package/es/utilities.js +26 -10
  57. package/es/variables.js +108 -68
  58. package/package.json +1 -1
package/es/variables.js CHANGED
@@ -2,85 +2,125 @@
2
2
 
3
3
  require("core-js/modules/es.object.define-property.js");
4
4
 
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
8
- exports.vars = exports.grnPrefix = void 0;
10
+ exports.vars = exports.varNames = exports.grnPrefix = void 0;
11
+
12
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
+
14
+ var _vars;
15
+
9
16
  var grnPrefix = "--grn-";
10
17
  exports.grnPrefix = grnPrefix;
11
- var vars = {
12
- textSizes: {
13
- s: "s",
14
- m: "m",
15
- l: "l",
16
- xl: "xl",
17
- xxl: "xxl"
18
+ var varNames = {
19
+ textSize: {
20
+ group: "textSizes",
21
+ prefix: "text"
22
+ },
23
+ iconSize: {
24
+ group: "iconSizes",
25
+ prefix: "icon"
18
26
  },
19
- spaces: {
20
- xs: "xs",
21
- s: "s",
22
- m: "m",
23
- l: "l",
24
- xl: "xl",
25
- xxl: "xxl"
27
+ space: {
28
+ group: "spaces",
29
+ prefix: "space"
26
30
  },
27
- weights: {
28
- normal: "normal",
29
- medium: "medium",
30
- semiBold: "semiBold"
31
+ weight: {
32
+ group: "weights",
33
+ prefix: "weight"
31
34
  },
32
- radiuses: {
33
- xs: "xs",
34
- s: "s",
35
- m: "m",
36
- l: "l"
35
+ radius: {
36
+ group: "radiuses",
37
+ prefix: "radius"
37
38
  },
38
- shadows: {
39
- s: "s",
40
- m: "m",
41
- l: "l"
39
+ shadow: {
40
+ group: "shadows",
41
+ prefix: "shadow"
42
42
  },
43
- transitions: {
44
- slow: "slow",
45
- fast: "fast"
43
+ transition: {
44
+ group: "transitions",
45
+ prefix: "transition"
46
46
  },
47
- colors: {
48
- greys: {
49
- grey8: "grey8",
50
- grey7: "grey7",
51
- grey6: "grey6",
52
- grey5: "grey5",
53
- grey4: "grey4",
54
- grey3: "grey3",
55
- grey2: "grey2",
56
- grey1: "grey1"
57
- },
58
- fades: {
59
- fade7: "fade7",
60
- fade6: "fade6",
61
- fade5: "fade5",
62
- fade4: "fade4",
63
- fade3: "fade3",
64
- fade2: "fade2",
65
- fade1: "fade1"
66
- },
67
- baseColors: {
68
- blue: "blue",
69
- red: "red"
70
- },
71
- semanticColors: {
72
- body: "body",
73
- bodyDimmed: "bodyDimmed",
74
- accent: "accent",
75
- backgroundSecondary: "backgroundSecondary",
76
- background: "background",
77
- overlay: "overlay",
78
- border: "border",
79
- selection: "selection",
80
- danger: "danger",
81
- disabledContent: "disabledContent",
82
- disabledBackground: "disabledBackground"
83
- }
47
+ color: {
48
+ group: "colors",
49
+ prefix: "color"
84
50
  }
85
51
  };
52
+ exports.varNames = varNames;
53
+ var vars = (_vars = {}, (0, _defineProperty2.default)(_vars, varNames.textSize.group, {
54
+ s: "s",
55
+ m: "m",
56
+ l: "l",
57
+ xl: "xl",
58
+ xxl: "xxl"
59
+ }), (0, _defineProperty2.default)(_vars, varNames.iconSize.group, {
60
+ s: "s",
61
+ m: "m",
62
+ l: "l",
63
+ xl: "xl",
64
+ xxl: "xxl"
65
+ }), (0, _defineProperty2.default)(_vars, varNames.space.group, {
66
+ xs: "xs",
67
+ s: "s",
68
+ m: "m",
69
+ l: "l",
70
+ xl: "xl",
71
+ xxl: "xxl"
72
+ }), (0, _defineProperty2.default)(_vars, varNames.weight.group, {
73
+ normal: "normal",
74
+ medium: "medium",
75
+ semiBold: "semiBold"
76
+ }), (0, _defineProperty2.default)(_vars, varNames.radius.group, {
77
+ xs: "xs",
78
+ s: "s",
79
+ m: "m",
80
+ l: "l"
81
+ }), (0, _defineProperty2.default)(_vars, varNames.shadow.group, {
82
+ s: "s",
83
+ m: "m",
84
+ l: "l"
85
+ }), (0, _defineProperty2.default)(_vars, varNames.transition.group, {
86
+ slow: "slow",
87
+ fast: "fast"
88
+ }), (0, _defineProperty2.default)(_vars, varNames.color.group, {
89
+ greys: {
90
+ grey8: "grey8",
91
+ grey7: "grey7",
92
+ grey6: "grey6",
93
+ grey5: "grey5",
94
+ grey4: "grey4",
95
+ grey3: "grey3",
96
+ grey2: "grey2",
97
+ grey1: "grey1"
98
+ },
99
+ fades: {
100
+ fade7: "fade7",
101
+ fade6: "fade6",
102
+ fade5: "fade5",
103
+ fade4: "fade4",
104
+ fade3: "fade3",
105
+ fade2: "fade2",
106
+ fade1: "fade1"
107
+ },
108
+ baseColors: {
109
+ blue: "blue",
110
+ red: "red"
111
+ },
112
+ semanticColors: {
113
+ body: "body",
114
+ bodyDimmed: "bodyDimmed",
115
+ accent: "accent",
116
+ backgroundSecondary: "backgroundSecondary",
117
+ background: "background",
118
+ overlay: "overlay",
119
+ border: "border",
120
+ selection: "selection",
121
+ danger: "danger",
122
+ disabledContent: "disabledContent",
123
+ disabledBackground: "disabledBackground"
124
+ }
125
+ }), _vars);
86
126
  exports.vars = vars;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "2.11.0",
3
+ "version": "2.14.0",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "author": "Flodesk",