@flodesk/grain 10.9.5 → 10.9.7

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.
@@ -9,7 +9,7 @@ import "core-js/modules/web.dom-collections.for-each.js";
9
9
  import "core-js/modules/es.object.get-own-property-descriptors.js";
10
10
  import "core-js/modules/es.object.define-properties.js";
11
11
  import "core-js/modules/es.object.assign.js";
12
- var _excluded = ["all", "color", "colorHover", "backgroundColor", "backgroundColorHover", "borderColorHover", "borderSide", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "shadowHover", "overflow", "overflowX", "overflowY", "aspectRatio", "zIndex", "tag", "opacity", "opacityHover", "order", "alignSelf", "flex", "transition", "transitionHover", "cursor", "children", "className", "style"];
12
+ var _excluded = ["color", "colorHover", "backgroundColor", "backgroundColorHover", "borderColorHover", "borderSide", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "shadowHover", "overflow", "overflowX", "overflowY", "aspectRatio", "zIndex", "tag", "opacity", "opacityHover", "order", "alignSelf", "flex", "transition", "transitionHover", "cursor", "children", "className", "style"];
13
13
 
14
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
15
 
@@ -30,24 +30,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
30
30
  import React, { forwardRef } from 'react';
31
31
  import { types } from '../types';
32
32
  import PropTypes from 'prop-types';
33
- import { styleConfig, generateStyleAttributes, generateClassNameAttributes } from '../utilities';
33
+ import { generateStyleAttributes, generateClassNameAttributes } from '../utilities';
34
34
  import { jsx as ___EmotionJSX } from "@emotion/react";
35
- var dimensionProps = styleConfig.dimensionProps,
36
- colorProps = styleConfig.colorProps,
37
- zIndexProps = styleConfig.zIndexProps,
38
- aspectRatioProps = styleConfig.aspectRatioProps,
39
- flexProps = styleConfig.flexProps,
40
- spaceProps = styleConfig.spaceProps,
41
- shadowProps = styleConfig.shadowProps,
42
- radiusProps = styleConfig.radiusProps,
43
- orderProps = styleConfig.orderProps,
44
- positionProps = styleConfig.positionProps,
45
- overflowProps = styleConfig.overflowProps,
46
- transitionProps = styleConfig.transitionProps,
47
- cursorProps = styleConfig.cursorProps;
48
35
  export var Box2 = /*#__PURE__*/forwardRef(function (_ref, ref) {
49
- var all = _ref.all,
50
- color = _ref.color,
36
+ var _generateClassNameAtt;
37
+
38
+ var color = _ref.color,
51
39
  colorHover = _ref.colorHover,
52
40
  backgroundColor = _ref.backgroundColor,
53
41
  backgroundColorHover = _ref.backgroundColorHover,
@@ -101,21 +89,46 @@ export var Box2 = /*#__PURE__*/forwardRef(function (_ref, ref) {
101
89
  style = _ref.style,
102
90
  otherProps = _objectWithoutProperties(_ref, _excluded);
103
91
 
104
- var allProps = {
105
- all: all,
106
- color: color,
107
- colorHover: colorHover,
108
- backgroundColor: backgroundColor,
109
- backgroundColorHover: backgroundColorHover,
110
- borderColorHover: borderColorHover,
111
- borderSide: borderSide,
92
+ var styles = _objectSpread({}, generateStyleAttributes({
112
93
  width: width,
113
94
  minWidth: minWidth,
114
95
  maxWidth: maxWidth,
115
96
  height: height,
116
97
  minHeight: minHeight,
117
98
  maxHeight: maxHeight,
99
+ color: color,
100
+ colorHover: colorHover,
101
+ backgroundColor: backgroundColor,
102
+ backgroundColorHover: backgroundColorHover,
103
+ padding: padding,
104
+ paddingTop: paddingTop,
105
+ paddingBottom: paddingBottom,
106
+ paddingLeft: paddingLeft,
107
+ paddingRight: paddingRight,
108
+ paddingX: paddingX,
109
+ paddingY: paddingY,
110
+ margin: margin,
111
+ marginTop: marginTop,
112
+ marginBottom: marginBottom,
113
+ marginLeft: marginLeft,
114
+ marginRight: marginRight,
115
+ marginX: marginX,
116
+ marginY: marginY,
117
+ shadow: shadow,
118
+ shadowHover: shadowHover,
118
119
  radius: radius,
120
+ order: order,
121
+ zIndex: zIndex,
122
+ transition: transition,
123
+ transitionHover: transitionHover,
124
+ aspectRatio: aspectRatio,
125
+ flex: flex,
126
+ opacity: opacity,
127
+ opacityHover: opacityHover
128
+ }));
129
+
130
+ var propClassName = className ? className : '';
131
+ var classNames = [generateClassNameAttributes((_generateClassNameAtt = {
119
132
  padding: padding,
120
133
  paddingTop: paddingTop,
121
134
  paddingBottom: paddingBottom,
@@ -135,28 +148,14 @@ export var Box2 = /*#__PURE__*/forwardRef(function (_ref, ref) {
135
148
  bottom: bottom,
136
149
  left: left,
137
150
  right: right,
151
+ color: color,
152
+ colorHover: colorHover,
153
+ backgroundColor: backgroundColor,
154
+ backgroundColorHover: backgroundColorHover,
138
155
  shadow: shadow,
139
156
  shadowHover: shadowHover,
140
- overflow: overflow,
141
- overflowX: overflowX,
142
- overflowY: overflowY,
143
- aspectRatio: aspectRatio,
144
- zIndex: zIndex,
145
- tag: tag,
146
- opacity: opacity,
147
- opacityHover: opacityHover,
148
- order: order,
149
- alignSelf: alignSelf,
150
- flex: flex,
151
- transition: transition,
152
- transitionHover: transitionHover,
153
- cursor: cursor
154
- };
155
-
156
- var styles = _objectSpread({}, generateStyleAttributes([dimensionProps, colorProps, spaceProps, shadowProps, radiusProps, orderProps, zIndexProps, transitionProps, aspectRatioProps, flexProps], allProps));
157
-
158
- var propClassName = className ? className : '';
159
- var classNames = [generateClassNameAttributes([spaceProps, colorProps, shadowProps, radiusProps, positionProps, overflowProps, transitionProps, cursorProps], allProps), propClassName].join(' ').replace(/\s+/g, ' ').trim();
157
+ radius: radius
158
+ }, _defineProperty(_generateClassNameAtt, "position", position), _defineProperty(_generateClassNameAtt, "overflow", overflow), _defineProperty(_generateClassNameAtt, "transition", transition), _defineProperty(_generateClassNameAtt, "transitionHover", transitionHover), _defineProperty(_generateClassNameAtt, "cursor", cursor), _defineProperty(_generateClassNameAtt, "alignSelf", alignSelf), _generateClassNameAtt)), propClassName].join(' ').replace(/\s+/g, ' ').trim();
160
159
  var Tag = tag;
161
160
  return ___EmotionJSX(Tag, _extends({
162
161
  ref: ref,
@@ -1,17 +1,41 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
9
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
+
11
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+
1
13
  import "core-js/modules/es.object.to-string.js";
2
14
  import "core-js/modules/web.dom-collections.for-each.js";
15
+ import "core-js/modules/es.array.includes.js";
16
+ import "core-js/modules/es.string.includes.js";
3
17
  import "core-js/modules/es.array.concat.js";
18
+ import "core-js/modules/es.object.entries.js";
19
+ import "core-js/modules/es.symbol.js";
20
+ import "core-js/modules/es.symbol.description.js";
21
+ import "core-js/modules/es.symbol.iterator.js";
22
+ import "core-js/modules/es.array.iterator.js";
23
+ import "core-js/modules/es.string.iterator.js";
24
+ import "core-js/modules/web.dom-collections.iterator.js";
25
+ import "core-js/modules/es.array.slice.js";
26
+ import "core-js/modules/es.array.from.js";
27
+ import "core-js/modules/es.regexp.exec.js";
4
28
  import { styleConfig } from '../utilities';
5
29
  import { propNameToShort } from '../utilities/style-config';
6
30
 
7
- var generateUtilityClasses = function generateUtilityClasses(propertySets) {
31
+ var generateUtilityClassDeclarations = function generateUtilityClassDeclarations(propertySets) {
8
32
  var css = '';
9
33
  propertySets.forEach(function (set) {
10
34
  set.variables.forEach(function (variable) {
11
35
  set.props.forEach(function (prop) {
12
36
  var property = prop.property;
13
37
  var cssValue = set.valueTransformer ? set.valueTransformer(variable) : variable;
14
- var hasHover = prop.modifier === 'hover';
38
+ var hasHover = prop.propName.includes('Hover');
15
39
 
16
40
  if (!hasHover) {
17
41
  css += "\n .".concat(propNameToShort(prop.propName), "-").concat(variable, " {\n ").concat(property, ": ").concat(cssValue, "\n }");
@@ -26,25 +50,37 @@ var generateUtilityClasses = function generateUtilityClasses(propertySets) {
26
50
  return css;
27
51
  };
28
52
 
29
- var generateStyleClasses = function generateStyleClasses(propertySets) {
53
+ var breakpoints = {
54
+ tab: 1169,
55
+ mob: 767
56
+ };
57
+
58
+ var generateStyleClassDeclarations = function generateStyleClassDeclarations(propertySets) {
30
59
  var css = '';
31
60
  propertySets.forEach(function (set) {
32
61
  set.props.forEach(function (prop) {
33
62
  var property = prop.property;
34
63
  var propName = prop.propName;
35
64
  var cssVar = "--".concat(propNameToShort(propName));
36
- var hasHover = prop.modifier === 'hover';
65
+ var hasHover = prop.propName.includes('Hover');
37
66
 
38
67
  if (!hasHover) {
39
- css += "\n [style*=\"".concat(cssVar, ":\"] {\n ").concat(property, ": var(").concat(cssVar, ")\n }");
68
+ css += "[style*=\"".concat(cssVar, ":\"] {").concat(property, ": var(").concat(cssVar, ")}");
40
69
  }
41
70
 
42
71
  if (hasHover) {
43
- css += "\n [style*=\"".concat(cssVar, "\"]:hover {\n ").concat(property, ": var(").concat(cssVar, ")\n }");
72
+ css += "[style*=\"".concat(cssVar, "\"]:hover {").concat(property, ": var(").concat(cssVar, ")}");
44
73
  }
45
74
 
46
75
  if (set.isResponsive) {
47
- css += "\n [style*=\"".concat(cssVar, "-def\"] {\n ").concat(property, ": var(").concat(cssVar, "-def)\n }\n\n @media (max-width: 1169px) {\n [style*=\"").concat(cssVar, "-tab\"] {\n ").concat(property, ": var(").concat(cssVar, "-tab);\n }\n }\n\n @media (max-width: 767px) {\n [style*=\"").concat(cssVar, "-mob\"] {\n ").concat(property, ": var(").concat(cssVar, "-mob);\n }\n }\n ");
76
+ css += "\n [style*=\"".concat(cssVar, "-def\"] {").concat(property, ": var(").concat(cssVar, "-def)}\n ");
77
+ Object.entries(breakpoints).forEach(function (_ref) {
78
+ var _ref2 = _slicedToArray(_ref, 2),
79
+ device = _ref2[0],
80
+ screenSize = _ref2[1];
81
+
82
+ css += "\n @media (max-width: ".concat(screenSize, "px) {\n [style*=\"").concat(cssVar, "-").concat(device, "\"] {").concat(property, ": var(").concat(cssVar, "-").concat(device, ")}\n }\n ");
83
+ });
48
84
  }
49
85
  });
50
86
  });
@@ -62,6 +98,12 @@ var spaceProps = styleConfig.spaceProps,
62
98
  dimensionProps = styleConfig.dimensionProps,
63
99
  aspectRatioProps = styleConfig.aspectRatioProps,
64
100
  orderProps = styleConfig.orderProps,
65
- flexProps = styleConfig.flexProps;
66
- var utilities = "\n ".concat(generateUtilityClasses([spaceProps, colorProps, shadowProps, radiusProps, positionProps, overflowProps, transitionProps, cursorProps]), ";\n\n ").concat(generateStyleClasses([dimensionProps, spaceProps, colorProps, shadowProps, radiusProps, transitionProps, aspectRatioProps, orderProps, flexProps]), ";\n");
101
+ flexProps = styleConfig.flexProps,
102
+ sizeProps = styleConfig.sizeProps,
103
+ opacityProps = styleConfig.opacityProps,
104
+ alignSelfProps = styleConfig.alignSelfProps;
105
+ var classAndStyleDeclarationProps = [spaceProps, colorProps, shadowProps, radiusProps, transitionProps, sizeProps];
106
+ var classDeclarationProps = [].concat(classAndStyleDeclarationProps, [positionProps, overflowProps, cursorProps, sizeProps, alignSelfProps]);
107
+ var styleDeclarationProps = [].concat(classAndStyleDeclarationProps, [dimensionProps, aspectRatioProps, orderProps, flexProps, opacityProps]);
108
+ var utilities = "\n ".concat(generateUtilityClassDeclarations(classDeclarationProps), ";\n ").concat(generateStyleClassDeclarations(styleDeclarationProps), ";\n");
67
109
  export default utilities;
@@ -1,14 +1,17 @@
1
+ import "core-js/modules/es.object.values.js";
1
2
  import "core-js/modules/es.object.to-string.js";
2
3
  import "core-js/modules/web.dom-collections.for-each.js";
4
+ import "core-js/modules/es.object.keys.js";
3
5
  import "core-js/modules/es.array.concat.js";
4
6
  import { isObject } from './helpers';
5
- import { propNameToShort } from './style-config';
6
- export var generateStyleAttributes = function generateStyleAttributes(propsSets, allProps) {
7
+ import { propNameToShort, styleConfig } from './style-config';
8
+ export var generateStyleAttributes = function generateStyleAttributes(props) {
7
9
  var styles = {};
8
- propsSets.forEach(function (propsSet) {
10
+ var styleConfigValues = Object.values(styleConfig);
11
+ styleConfigValues.forEach(function (propsSet) {
9
12
  propsSet.props.forEach(function (_ref) {
10
13
  var propName = _ref.propName;
11
- var value = allProps[propName];
14
+ var value = props[propName];
12
15
  var hasVariable = propsSet.variableChecker ? propsSet.variableChecker(value) : false;
13
16
  var hasTransformer = propsSet.valueTransformer ? true : false;
14
17
  if (hasVariable) return;
@@ -18,34 +21,35 @@ export var generateStyleAttributes = function generateStyleAttributes(propsSets,
18
21
 
19
22
  if (!isObject(value)) {
20
23
  styles["--".concat(propNameShort)] = cssValue;
21
- }
22
-
23
- if (isObject(value)) {
24
+ } else {
24
25
  var def = value.default,
25
26
  mobile = value.mobile,
26
27
  tablet = value.tablet;
27
- var defaultValueCss = hasTransformer ? propsSet.valueTransformer(def) : def;
28
- var mobileValueCss = hasTransformer ? propsSet.valueTransformer(mobile) : mobile;
29
- var tabletValueCss = hasTransformer ? propsSet.valueTransformer(tablet) : tablet;
30
- styles["--".concat(propNameShort, "-def")] = defaultValueCss;
31
- styles["--".concat(propNameShort, "-mob")] = mobileValueCss;
32
- styles["--".concat(propNameShort, "-tab")] = tabletValueCss;
28
+ styles["--".concat(propNameShort, "-def")] = hasTransformer ? propsSet.valueTransformer(def) : def;
29
+ styles["--".concat(propNameShort, "-mob")] = hasTransformer ? propsSet.valueTransformer(mobile) : mobile;
30
+ styles["--".concat(propNameShort, "-tab")] = hasTransformer ? propsSet.valueTransformer(tablet) : tablet;
33
31
  }
34
32
  });
35
33
  });
36
34
  return styles;
37
35
  };
38
- export var generateClassNameAttributes = function generateClassNameAttributes(propsSets, allProps) {
36
+ export var generateClassNameAttributes = function generateClassNameAttributes(props) {
39
37
  var classNames = [];
40
- propsSets.forEach(function (propsSet) {
41
- propsSet.props.forEach(function (_ref2) {
42
- var propName = _ref2.propName;
43
- var value = allProps[propName];
44
- var hasVariable = propsSet.variableChecker ? propsSet.variableChecker(value) : false;
45
- if (!hasVariable) return;
46
- if (!value) return;
47
- var className = "".concat(propNameToShort(propName), "-").concat(value);
48
- classNames.push(className);
38
+ var propKeys = Object.keys(props);
39
+ var styleConfigValues = Object.values(styleConfig);
40
+ propKeys.forEach(function (prop) {
41
+ styleConfigValues.forEach(function (styleConfigItem) {
42
+ styleConfigItem.props.forEach(function (propItem) {
43
+ if (propItem.propName === prop) {
44
+ var propName = propItem.propName;
45
+ var value = props[propName];
46
+ var hasVariable = styleConfigItem.variableChecker ? styleConfigItem.variableChecker(value) : false;
47
+ if (!hasVariable) return;
48
+ if (!value) return;
49
+ var className = "".concat(propNameToShort(propName), "-").concat(value);
50
+ classNames.push(className);
51
+ }
52
+ });
49
53
  });
50
54
  });
51
55
  return classNames.join(' ');
@@ -27,15 +27,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
27
27
 
28
28
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
29
29
 
30
- import { cursors, overflows, positions } from '../types';
30
+ import { alignSelfs, cursors, overflows, positions } from '../types';
31
31
  import { vars } from '../variables';
32
- import { getDimension, getSpace, isSpaceVar } from './responsive';
32
+ import { getDimension, getSpace, getTextSize, isSpaceVar } from './responsive';
33
33
  import { getColor, getRadius, getShadow, getTransition, isColorVar, isRadiusVar, isShadowVar, isTrasitionVar } from './styles';
34
34
  var spaces = [].concat(_toConsumableArray(Object.keys(vars.spaces)), _toConsumableArray(Object.keys(vars.spaceUtils)));
35
35
  var colors = [].concat(_toConsumableArray(Object.keys(vars.colors)), _toConsumableArray(Object.keys(vars.colorUtils)));
36
36
  var shadows = Object.keys(vars.shadows);
37
37
  var radii = Object.keys(vars.radii);
38
38
  var transitions = [].concat(_toConsumableArray(Object.keys(vars.transitions)), _toConsumableArray(Object.keys(vars.transitionUtils)));
39
+ var sizes = Object.keys(vars.texts);
39
40
  export var styleConfig = {
40
41
  spaceProps: {
41
42
  props: [{
@@ -131,7 +132,7 @@ export var styleConfig = {
131
132
  short: 'max-w'
132
133
  }, {
133
134
  propName: 'height',
134
- property: 'max-width',
135
+ property: 'height',
135
136
  short: 'h'
136
137
  }, {
137
138
  propName: 'minHeight',
@@ -153,8 +154,7 @@ export var styleConfig = {
153
154
  }, {
154
155
  propName: 'colorHover',
155
156
  property: 'color',
156
- modifier: 'hover',
157
- short: 'c-hover'
157
+ short: 'c-h'
158
158
  }, {
159
159
  propName: 'backgroundColor',
160
160
  property: 'background-color',
@@ -162,8 +162,7 @@ export var styleConfig = {
162
162
  }, {
163
163
  propName: 'backgroundColorHover',
164
164
  property: 'background-color',
165
- modifier: 'hover',
166
- short: 'bgc-hover'
165
+ short: 'bgc-h'
167
166
  }],
168
167
  valueTransformer: getColor,
169
168
  variableChecker: isColorVar,
@@ -177,8 +176,7 @@ export var styleConfig = {
177
176
  }, {
178
177
  propName: 'shadowHover',
179
178
  property: 'box-shadow',
180
- modifier: 'hover',
181
- short: 'sh-hover'
179
+ short: 'sh-h'
182
180
  }],
183
181
  valueTransformer: getShadow,
184
182
  variableChecker: isShadowVar,
@@ -205,7 +203,7 @@ export var styleConfig = {
205
203
  props: [{
206
204
  propName: 'flex',
207
205
  property: 'flex',
208
- short: 'flex'
206
+ short: 'flx'
209
207
  }],
210
208
  isResponsive: true
211
209
  },
@@ -231,15 +229,15 @@ export var styleConfig = {
231
229
  props: [{
232
230
  propName: 'overflow',
233
231
  property: 'overflow',
234
- short: 'ovf'
232
+ short: 'of'
235
233
  }, {
236
234
  propName: 'overflowX',
237
235
  property: 'overflow-x',
238
- short: 'ovf-x'
236
+ short: 'of-x'
239
237
  }, {
240
238
  propName: 'overflowY',
241
239
  property: 'overflow-y',
242
- short: 'ovf-y'
240
+ short: 'of-y'
243
241
  }],
244
242
  variableChecker: function variableChecker(value) {
245
243
  return overflows.includes(value);
@@ -254,8 +252,7 @@ export var styleConfig = {
254
252
  }, {
255
253
  propName: 'transitionHover',
256
254
  property: 'transition',
257
- modifier: 'hover',
258
- short: 'tr-hover'
255
+ short: 'tr-h'
259
256
  }],
260
257
  valueTransformer: getTransition,
261
258
  variableChecker: isTrasitionVar,
@@ -278,6 +275,41 @@ export var styleConfig = {
278
275
  property: 'aspect-ratio',
279
276
  short: 'ar'
280
277
  }]
278
+ },
279
+ sizeProps: {
280
+ props: [{
281
+ propName: 'size',
282
+ property: 'font-size',
283
+ short: 'txt'
284
+ }],
285
+ isResponsive: true,
286
+ variables: sizes,
287
+ valueTransformer: getTextSize,
288
+ variableChecker: function variableChecker(value) {
289
+ return sizes.includes(value);
290
+ }
291
+ },
292
+ opacityProps: {
293
+ props: [{
294
+ propName: 'opacity',
295
+ property: 'opacity',
296
+ short: 'op'
297
+ }, {
298
+ propName: 'opacityHover',
299
+ property: 'opacity',
300
+ short: 'op-h'
301
+ }]
302
+ },
303
+ alignSelfProps: {
304
+ props: [{
305
+ propName: 'alignSelf',
306
+ property: 'align-self',
307
+ short: 'als'
308
+ }],
309
+ variables: alignSelfs,
310
+ variableChecker: function variableChecker(value) {
311
+ return alignSelfs.includes(value);
312
+ }
281
313
  }
282
314
  };
283
315
  export var propNameToShort = function propNameToShort(propName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "10.9.5",
3
+ "version": "10.9.7",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "author": "Flodesk",