@pingux/astro 1.31.0 → 1.31.1-alpha.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/lib/cjs/components/Card/Card.stories.js +29 -2
- package/lib/cjs/components/MenuItem/MenuItem.js +2 -1
- package/lib/cjs/styles/theme.js +3 -1
- package/lib/cjs/styles/variants/boxes.js +3 -1
- package/lib/components/Card/Card.stories.js +29 -2
- package/lib/components/MenuItem/MenuItem.js +2 -1
- package/lib/styles/theme.js +4 -2
- package/lib/styles/variants/boxes.js +3 -1
- package/package.json +1 -1
- package/NOTICE.html +0 -4651
@@ -43,10 +43,37 @@ var Default = function Default(args) {
|
|
43
43
|
exports.Default = Default;
|
44
44
|
|
45
45
|
var CardRow = function CardRow() {
|
46
|
+
var sx = {
|
47
|
+
li: {
|
48
|
+
display: 'inline',
|
49
|
+
flexGrow: 1,
|
50
|
+
flexBasis: '0%'
|
51
|
+
},
|
52
|
+
card: {
|
53
|
+
display: 'block'
|
54
|
+
}
|
55
|
+
};
|
46
56
|
return (0, _react2.jsx)(_Box["default"], {
|
47
57
|
isRow: true,
|
48
|
-
gap: "md"
|
49
|
-
|
58
|
+
gap: "md",
|
59
|
+
as: "ul",
|
60
|
+
pl: "0px"
|
61
|
+
}, (0, _react2.jsx)(_Box["default"], {
|
62
|
+
as: "li",
|
63
|
+
sx: sx.li
|
64
|
+
}, (0, _react2.jsx)(_Card["default"], {
|
65
|
+
sx: sx.card
|
66
|
+
}, "First")), (0, _react2.jsx)(_Box["default"], {
|
67
|
+
as: "li",
|
68
|
+
sx: sx.li
|
69
|
+
}, (0, _react2.jsx)(_Card["default"], {
|
70
|
+
sx: sx.card
|
71
|
+
}, "Second")), (0, _react2.jsx)(_Box["default"], {
|
72
|
+
as: "li",
|
73
|
+
sx: sx.li
|
74
|
+
}, (0, _react2.jsx)(_Card["default"], {
|
75
|
+
sx: sx.card
|
76
|
+
}, "Third")));
|
50
77
|
};
|
51
78
|
|
52
79
|
exports.CardRow = CardRow;
|
@@ -136,7 +136,8 @@ var MenuItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
136
136
|
className: classNames,
|
137
137
|
ref: menuItemRef,
|
138
138
|
variant: isSeparator ? 'menuItem.separator' : 'menuItem.item',
|
139
|
-
"data-id": dataId
|
139
|
+
"data-id": dataId,
|
140
|
+
"aria-disabled": isDisabled
|
140
141
|
}, (0, _utils.mergeProps)(pressProps, hoverProps, focusProps, menuItemProps, others)), rendered);
|
141
142
|
});
|
142
143
|
MenuItem.displayName = 'MenuItem';
|
package/lib/cjs/styles/theme.js
CHANGED
@@ -50,7 +50,7 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
50
50
|
|
51
51
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
52
52
|
|
53
|
-
var
|
53
|
+
var theme = {
|
54
54
|
name: 'Astro',
|
55
55
|
space: _spacing["default"],
|
56
56
|
colors: _objectSpread(_objectSpread({}, _colors["default"]), {}, {
|
@@ -91,4 +91,6 @@ var _default = {
|
|
91
91
|
links: _variants.links,
|
92
92
|
variants: _variants.variants
|
93
93
|
};
|
94
|
+
console.log('theme', theme);
|
95
|
+
var _default = theme;
|
94
96
|
exports["default"] = _default;
|
@@ -22,8 +22,35 @@ export var Default = function Default(args) {
|
|
22
22
|
return ___EmotionJSX(Card, args);
|
23
23
|
};
|
24
24
|
export var CardRow = function CardRow() {
|
25
|
+
var sx = {
|
26
|
+
li: {
|
27
|
+
display: 'inline',
|
28
|
+
flexGrow: 1,
|
29
|
+
flexBasis: '0%'
|
30
|
+
},
|
31
|
+
card: {
|
32
|
+
display: 'block'
|
33
|
+
}
|
34
|
+
};
|
25
35
|
return ___EmotionJSX(Box, {
|
26
36
|
isRow: true,
|
27
|
-
gap: "md"
|
28
|
-
|
37
|
+
gap: "md",
|
38
|
+
as: "ul",
|
39
|
+
pl: "0px"
|
40
|
+
}, ___EmotionJSX(Box, {
|
41
|
+
as: "li",
|
42
|
+
sx: sx.li
|
43
|
+
}, ___EmotionJSX(Card, {
|
44
|
+
sx: sx.card
|
45
|
+
}, "First")), ___EmotionJSX(Box, {
|
46
|
+
as: "li",
|
47
|
+
sx: sx.li
|
48
|
+
}, ___EmotionJSX(Card, {
|
49
|
+
sx: sx.card
|
50
|
+
}, "Second")), ___EmotionJSX(Box, {
|
51
|
+
as: "li",
|
52
|
+
sx: sx.li
|
53
|
+
}, ___EmotionJSX(Card, {
|
54
|
+
sx: sx.card
|
55
|
+
}, "Third")));
|
29
56
|
};
|
@@ -103,7 +103,8 @@ var MenuItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
103
103
|
className: classNames,
|
104
104
|
ref: menuItemRef,
|
105
105
|
variant: isSeparator ? 'menuItem.separator' : 'menuItem.item',
|
106
|
-
"data-id": dataId
|
106
|
+
"data-id": dataId,
|
107
|
+
"aria-disabled": isDisabled
|
107
108
|
}, mergeProps(pressProps, hoverProps, focusProps, menuItemProps, others)), rendered);
|
108
109
|
});
|
109
110
|
MenuItem.displayName = 'MenuItem';
|
package/lib/styles/theme.js
CHANGED
@@ -18,7 +18,7 @@ import { fontSizes, fontWeights, textColors } from './text';
|
|
18
18
|
import breakpoints from './breakpoints';
|
19
19
|
import forms from './forms';
|
20
20
|
import { variants, buttons, text, images, links, bidirectionalIconButton } from './variants';
|
21
|
-
|
21
|
+
var theme = {
|
22
22
|
name: 'Astro',
|
23
23
|
space: spacing,
|
24
24
|
colors: _objectSpread(_objectSpread({}, colors), {}, {
|
@@ -58,4 +58,6 @@ export default {
|
|
58
58
|
textColors: textColors,
|
59
59
|
links: links,
|
60
60
|
variants: variants
|
61
|
-
};
|
61
|
+
};
|
62
|
+
console.log('theme', theme);
|
63
|
+
export default theme;
|