@pingux/astro 2.44.0-alpha.1 → 2.44.0-alpha.3
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.d.ts +9 -0
- package/lib/cjs/components/Card/Card.stories.js +22 -1
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +1 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +1 -0
- package/lib/components/Card/Card.stories.js +20 -0
- package/lib/utils/designUtils/figmaLinks.js +1 -0
- package/package.json +1 -1
@@ -12,6 +12,15 @@ export declare const Default: {
|
|
12
12
|
};
|
13
13
|
};
|
14
14
|
};
|
15
|
+
export declare const CardWidth: {
|
16
|
+
(args: any): React.JSX.Element;
|
17
|
+
parameters: {
|
18
|
+
design: {
|
19
|
+
type: string;
|
20
|
+
url: string;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
};
|
15
24
|
export declare const CardRow: StoryFn<CardProps>;
|
16
25
|
export declare const InteractiveCard: {
|
17
26
|
(): React.JSX.Element;
|
@@ -12,7 +12,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
12
12
|
_Object$defineProperty(exports, "__esModule", {
|
13
13
|
value: true
|
14
14
|
});
|
15
|
-
exports["default"] = exports.InteractiveCard = exports.Default = exports.CardRow = void 0;
|
15
|
+
exports["default"] = exports.InteractiveCard = exports.Default = exports.CardWidth = exports.CardRow = void 0;
|
16
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
18
18
|
var _react = _interopRequireDefault(require("react"));
|
@@ -46,6 +46,27 @@ var Default = function Default(args) {
|
|
46
46
|
return (0, _react2.jsx)(_index.Card, args);
|
47
47
|
};
|
48
48
|
exports.Default = Default;
|
49
|
+
var CardWidth = function CardWidth(args) {
|
50
|
+
return (0, _react2.jsx)(_index.Box, {
|
51
|
+
gap: "40px",
|
52
|
+
width: "1300px"
|
53
|
+
}, (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({
|
54
|
+
size: "container.xs"
|
55
|
+
}, args)), (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({
|
56
|
+
size: "container.sm"
|
57
|
+
}, args)), (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({
|
58
|
+
size: "container.md"
|
59
|
+
}, args)), (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({
|
60
|
+
size: "container.lg"
|
61
|
+
}, args)));
|
62
|
+
};
|
63
|
+
exports.CardWidth = CardWidth;
|
64
|
+
CardWidth.parameters = {
|
65
|
+
design: {
|
66
|
+
type: 'figma',
|
67
|
+
url: _figmaLinks.FIGMA_LINKS.card.cardWidth
|
68
|
+
}
|
69
|
+
};
|
49
70
|
Default.parameters = {
|
50
71
|
design: {
|
51
72
|
type: 'figma',
|
@@ -66,6 +66,7 @@ var FIGMA_LINKS = {
|
|
66
66
|
},
|
67
67
|
card: {
|
68
68
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=335%3A1780&mode=dev',
|
69
|
+
cardWidth: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6241&mode=dev',
|
69
70
|
cardRow: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6248&mode=dev',
|
70
71
|
interactiveCard: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6279&mode=dev'
|
71
72
|
},
|
@@ -37,6 +37,26 @@ export default {
|
|
37
37
|
export var Default = function Default(args) {
|
38
38
|
return ___EmotionJSX(Card, args);
|
39
39
|
};
|
40
|
+
export var CardWidth = function CardWidth(args) {
|
41
|
+
return ___EmotionJSX(Box, {
|
42
|
+
gap: "40px",
|
43
|
+
width: "1300px"
|
44
|
+
}, ___EmotionJSX(Card, _extends({
|
45
|
+
size: "container.xs"
|
46
|
+
}, args)), ___EmotionJSX(Card, _extends({
|
47
|
+
size: "container.sm"
|
48
|
+
}, args)), ___EmotionJSX(Card, _extends({
|
49
|
+
size: "container.md"
|
50
|
+
}, args)), ___EmotionJSX(Card, _extends({
|
51
|
+
size: "container.lg"
|
52
|
+
}, args)));
|
53
|
+
};
|
54
|
+
CardWidth.parameters = {
|
55
|
+
design: {
|
56
|
+
type: 'figma',
|
57
|
+
url: FIGMA_LINKS.card.cardWidth
|
58
|
+
}
|
59
|
+
};
|
40
60
|
Default.parameters = {
|
41
61
|
design: {
|
42
62
|
type: 'figma',
|
@@ -59,6 +59,7 @@ export var FIGMA_LINKS = {
|
|
59
59
|
},
|
60
60
|
card: {
|
61
61
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=335%3A1780&mode=dev',
|
62
|
+
cardWidth: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6241&mode=dev',
|
62
63
|
cardRow: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6248&mode=dev',
|
63
64
|
interactiveCard: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=46142%3A6279&mode=dev'
|
64
65
|
},
|