@flodesk/grain 11.0.0-next.5 → 11.0.0-next.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.
|
@@ -58,20 +58,19 @@ export var Arrange = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
58
58
|
var sharedProps = {
|
|
59
59
|
gap: gap,
|
|
60
60
|
columnGap: columnGap,
|
|
61
|
-
rowGap: rowGap
|
|
61
|
+
rowGap: rowGap,
|
|
62
|
+
alignItems: alignItems,
|
|
63
|
+
justifyItems: justifyItems,
|
|
64
|
+
justifyContent: justifyContent,
|
|
65
|
+
alignContent: alignContent,
|
|
66
|
+
autoFlow: !columns ? autoFlow : undefined
|
|
62
67
|
};
|
|
63
68
|
var attributes = generateAttributes({
|
|
64
69
|
styleProps: _objectSpread({
|
|
65
70
|
columns: columns,
|
|
66
71
|
rows: rows
|
|
67
72
|
}, sharedProps),
|
|
68
|
-
classNameProps: _objectSpread({
|
|
69
|
-
alignItems: alignItems,
|
|
70
|
-
justifyItems: justifyItems,
|
|
71
|
-
justifyContent: justifyContent,
|
|
72
|
-
alignContent: alignContent,
|
|
73
|
-
autoFlow: !columns ? autoFlow : undefined
|
|
74
|
-
}, sharedProps)
|
|
73
|
+
classNameProps: _objectSpread({}, sharedProps)
|
|
75
74
|
});
|
|
76
75
|
|
|
77
76
|
var styleAttributes = _objectSpread(_objectSpread({}, attributes.styles), propStyle);
|
package/es/components/box.js
CHANGED
|
@@ -122,7 +122,8 @@ export var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
122
122
|
borderColor: borderColor,
|
|
123
123
|
borderColorHover: borderColorHover,
|
|
124
124
|
transition: transition,
|
|
125
|
-
transitionHover: transitionHover
|
|
125
|
+
transitionHover: transitionHover,
|
|
126
|
+
alignSelf: alignSelf
|
|
126
127
|
};
|
|
127
128
|
var attributes = generateAttributes({
|
|
128
129
|
styleProps: _objectSpread({
|
|
@@ -141,7 +142,7 @@ export var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
141
142
|
}, sharedProps),
|
|
142
143
|
classNameProps: _objectSpread((_objectSpread2 = {
|
|
143
144
|
position: position
|
|
144
|
-
}, _defineProperty(_objectSpread2, "position", position), _defineProperty(_objectSpread2, "overflow", overflow), _defineProperty(_objectSpread2, "cursor", cursor), _defineProperty(_objectSpread2, "
|
|
145
|
+
}, _defineProperty(_objectSpread2, "position", position), _defineProperty(_objectSpread2, "overflow", overflow), _defineProperty(_objectSpread2, "cursor", cursor), _defineProperty(_objectSpread2, "borderWidth", borderWidth), _defineProperty(_objectSpread2, "borderSide", borderSide), _objectSpread2), sharedProps)
|
|
145
146
|
});
|
|
146
147
|
var classAttributes = "".concat(attributes.classNames, " ").concat(propClassName).trim();
|
|
147
148
|
|
|
@@ -58,17 +58,16 @@ export var Flex = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
58
58
|
var sharedProps = {
|
|
59
59
|
gap: gap,
|
|
60
60
|
columnGap: columnGap,
|
|
61
|
-
rowGap: rowGap
|
|
61
|
+
rowGap: rowGap,
|
|
62
|
+
wrap: wrap,
|
|
63
|
+
justifyContent: justifyContent,
|
|
64
|
+
alignItems: alignItems,
|
|
65
|
+
alignContent: alignContent,
|
|
66
|
+
direction: direction
|
|
62
67
|
};
|
|
63
68
|
var attributes = generateAttributes({
|
|
64
69
|
styleProps: _objectSpread({}, sharedProps),
|
|
65
|
-
classNameProps: _objectSpread({
|
|
66
|
-
justifyContent: justifyContent,
|
|
67
|
-
alignItems: alignItems,
|
|
68
|
-
alignContent: alignContent,
|
|
69
|
-
wrap: wrap,
|
|
70
|
-
direction: direction
|
|
71
|
-
}, sharedProps)
|
|
70
|
+
classNameProps: _objectSpread({}, sharedProps)
|
|
72
71
|
});
|
|
73
72
|
|
|
74
73
|
var styleAttributes = _objectSpread(_objectSpread({}, attributes.styles), propStyle);
|
package/es/styles/utilities.js
CHANGED
|
@@ -106,8 +106,8 @@ var spaceProps = styleConfig.spaceProps,
|
|
|
106
106
|
contentPositionProps = styleConfig.contentPositionProps,
|
|
107
107
|
flexDirectionProps = styleConfig.flexDirectionProps,
|
|
108
108
|
flexWrapProps = styleConfig.flexWrapProps;
|
|
109
|
-
var classAndStyleDeclarationProps = [spaceProps, colorProps, shadowProps, radiusProps, transitionProps, sizeProps, borderColorProps, alignProps];
|
|
110
|
-
var classDeclarationProps = [].concat(classAndStyleDeclarationProps, [positionProps, overflowProps, cursorProps, sizeProps,
|
|
109
|
+
var classAndStyleDeclarationProps = [spaceProps, colorProps, shadowProps, radiusProps, transitionProps, sizeProps, borderColorProps, alignProps, flexWrapProps, autoFlowProps, itemAlignmentProps, contentPositionProps, flexDirectionProps, alignSelfProps];
|
|
110
|
+
var classDeclarationProps = [].concat(classAndStyleDeclarationProps, [positionProps, overflowProps, cursorProps, sizeProps, borderWidthProps, weightProps, textDisplayProps, borderSideProps, textTransformProps]);
|
|
111
111
|
var styleDeclarationProps = [].concat(classAndStyleDeclarationProps, [dimensionProps, aspectRatioProps, orderProps, flexProps, opacityProps, zIndexProps, letterSpacingProps, gridTemplateProps]);
|
|
112
112
|
var defaultBorder = "\n [class*=\"bd\"] {\n border-color: var(--grn-color-border);\n border-width: 1px;\n }\n";
|
|
113
113
|
var utilities = "\n ".concat(defaultBorder, "\n ").concat(generateUtilityClassDeclarations(classDeclarationProps), ";\n ").concat(generateStyleClassDeclarations(styleDeclarationProps), ";\n");
|
|
@@ -344,7 +344,8 @@ export var styleConfig = {
|
|
|
344
344
|
variables: alignSelfs,
|
|
345
345
|
variableChecker: function variableChecker(value) {
|
|
346
346
|
return alignSelfs.includes(value);
|
|
347
|
-
}
|
|
347
|
+
},
|
|
348
|
+
isResponsive: true
|
|
348
349
|
},
|
|
349
350
|
borderColorProps: {
|
|
350
351
|
props: [{
|
|
@@ -449,7 +450,8 @@ export var styleConfig = {
|
|
|
449
450
|
variables: autoFlows,
|
|
450
451
|
variableChecker: function variableChecker(value) {
|
|
451
452
|
return autoFlows.includes(value);
|
|
452
|
-
}
|
|
453
|
+
},
|
|
454
|
+
isResponsive: true
|
|
453
455
|
},
|
|
454
456
|
gridTemplateProps: {
|
|
455
457
|
props: [{
|
|
@@ -460,7 +462,8 @@ export var styleConfig = {
|
|
|
460
462
|
propName: 'rows',
|
|
461
463
|
property: 'grid-template-rows',
|
|
462
464
|
short: 'gtr'
|
|
463
|
-
}]
|
|
465
|
+
}],
|
|
466
|
+
isResponsive: true
|
|
464
467
|
},
|
|
465
468
|
itemAlignmentProps: {
|
|
466
469
|
props: [{
|
|
@@ -475,7 +478,8 @@ export var styleConfig = {
|
|
|
475
478
|
variables: axisAlignments,
|
|
476
479
|
variableChecker: function variableChecker(value) {
|
|
477
480
|
return axisAlignments.includes(value);
|
|
478
|
-
}
|
|
481
|
+
},
|
|
482
|
+
isResponsive: true
|
|
479
483
|
},
|
|
480
484
|
contentPositionProps: {
|
|
481
485
|
props: [{
|
|
@@ -490,11 +494,12 @@ export var styleConfig = {
|
|
|
490
494
|
variables: contentPositions,
|
|
491
495
|
variableChecker: function variableChecker(value) {
|
|
492
496
|
return contentPositions.includes(value);
|
|
493
|
-
}
|
|
497
|
+
},
|
|
498
|
+
isResponsive: true
|
|
494
499
|
},
|
|
495
500
|
flexDirectionProps: {
|
|
496
501
|
props: [{
|
|
497
|
-
propName: '
|
|
502
|
+
propName: 'direction',
|
|
498
503
|
property: 'flex-direction',
|
|
499
504
|
short: 'fd'
|
|
500
505
|
}],
|
|
@@ -512,7 +517,8 @@ export var styleConfig = {
|
|
|
512
517
|
variables: flexWraps,
|
|
513
518
|
variableChecker: function variableChecker(value) {
|
|
514
519
|
return flexWraps.includes(value);
|
|
515
|
-
}
|
|
520
|
+
},
|
|
521
|
+
isResponsive: true
|
|
516
522
|
}
|
|
517
523
|
};
|
|
518
524
|
export var propNameToShort = function propNameToShort(propName) {
|