@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.
- package/es/components/arrange.js +36 -24
- package/es/components/button.js +12 -8
- package/es/components/icon.js +123 -0
- package/es/components/index.js +9 -1
- package/es/components/text.js +0 -2
- package/es/icons/icon-align-center.js +62 -0
- package/es/icons/icon-align-left.js +62 -0
- package/es/icons/icon-align-right.js +62 -0
- package/es/icons/icon-arrow-down.js +55 -0
- package/es/icons/icon-arrow-left.js +55 -0
- package/es/icons/icon-arrow-right.js +55 -0
- package/es/icons/icon-arrow-up.js +55 -0
- package/es/icons/icon-browser.js +84 -0
- package/es/icons/icon-chart.js +54 -0
- package/es/icons/icon-check.js +59 -0
- package/es/icons/icon-chevron-down.js +54 -0
- package/es/icons/icon-chevron-horizontal.js +54 -0
- package/es/icons/icon-chevron-left.js +54 -0
- package/es/icons/icon-chevron-right.js +66 -0
- package/es/icons/icon-chevron-up.js +66 -0
- package/es/icons/icon-chevron-vertical.js +75 -0
- package/es/icons/icon-clip.js +54 -0
- package/es/icons/icon-clock.js +60 -0
- package/es/icons/icon-crop.js +58 -0
- package/es/icons/icon-cross.js +61 -0
- package/es/icons/icon-duplicate.js +64 -0
- package/es/icons/icon-ellipsis.js +65 -0
- package/es/icons/icon-file.js +60 -0
- package/es/icons/icon-folder-add.js +61 -0
- package/es/icons/icon-folder.js +55 -0
- package/es/icons/icon-gear.js +59 -0
- package/es/icons/icon-globe.js +64 -0
- package/es/icons/icon-heart.js +54 -0
- package/es/icons/icon-image.js +69 -0
- package/es/icons/icon-link.js +59 -0
- package/es/icons/icon-mail.js +64 -0
- package/es/icons/icon-minus.js +53 -0
- package/es/icons/icon-pencil.js +59 -0
- package/es/icons/icon-plus.js +56 -0
- package/es/icons/icon-redo.js +55 -0
- package/es/icons/icon-search.js +60 -0
- package/es/icons/icon-send.js +54 -0
- package/es/icons/icon-share.js +59 -0
- package/es/icons/icon-smile.js +74 -0
- package/es/icons/icon-switch.js +64 -0
- package/es/icons/icon-text-align-center.js +53 -0
- package/es/icons/icon-text-align-left.js +53 -0
- package/es/icons/icon-text-align-right.js +53 -0
- package/es/icons/icon-trash.js +64 -0
- package/es/icons/icon-type.js +53 -0
- package/es/icons/icon-undo.js +55 -0
- package/es/icons/index.js +377 -0
- package/es/index.js +14 -0
- package/es/styles/variables.css +9 -0
- package/es/types.js +2 -1
- package/es/utilities.js +26 -10
- package/es/variables.js +108 -68
- 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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
var varNames = {
|
|
19
|
+
textSize: {
|
|
20
|
+
group: "textSizes",
|
|
21
|
+
prefix: "text"
|
|
22
|
+
},
|
|
23
|
+
iconSize: {
|
|
24
|
+
group: "iconSizes",
|
|
25
|
+
prefix: "icon"
|
|
18
26
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
m: "m",
|
|
23
|
-
l: "l",
|
|
24
|
-
xl: "xl",
|
|
25
|
-
xxl: "xxl"
|
|
27
|
+
space: {
|
|
28
|
+
group: "spaces",
|
|
29
|
+
prefix: "space"
|
|
26
30
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
semiBold: "semiBold"
|
|
31
|
+
weight: {
|
|
32
|
+
group: "weights",
|
|
33
|
+
prefix: "weight"
|
|
31
34
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
m: "m",
|
|
36
|
-
l: "l"
|
|
35
|
+
radius: {
|
|
36
|
+
group: "radiuses",
|
|
37
|
+
prefix: "radius"
|
|
37
38
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
l: "l"
|
|
39
|
+
shadow: {
|
|
40
|
+
group: "shadows",
|
|
41
|
+
prefix: "shadow"
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
transition: {
|
|
44
|
+
group: "transitions",
|
|
45
|
+
prefix: "transition"
|
|
46
46
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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;
|