@pingux/astro 2.154.1 → 2.155.0-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.mdx +5 -1
- package/lib/cjs/components/Card/Card.stories.d.ts +1 -0
- package/lib/cjs/components/Card/Card.stories.js +11 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +14 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +18 -4
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +22 -2
- package/lib/cjs/styles/themes/next-gen/next-gen.js +3 -0
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +19 -2
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +14 -5
- package/lib/components/Card/Card.mdx +5 -1
- package/lib/components/Card/Card.stories.js +8 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +18 -4
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -1
- package/lib/styles/themes/next-gen/next-gen.js +3 -0
- package/lib/styles/themes/next-gen/variants/cards.js +14 -5
- package/package.json +1 -1
|
@@ -29,4 +29,8 @@ These keys provide additional functionality to the Interactive Card components.
|
|
|
29
29
|
| Keys | Functions |
|
|
30
30
|
| ---- | --------- |
|
|
31
31
|
| Space or Enter | Selects the button. |
|
|
32
|
-
| Tab | Focuses the button and follows the page tab sequence.|
|
|
32
|
+
| Tab | Focuses the button and follows the page tab sequence.|
|
|
33
|
+
|
|
34
|
+
### Note
|
|
35
|
+
|
|
36
|
+
Use variant "cards.withShadow" to apply box-shadow on Card component.
|
|
@@ -34,3 +34,4 @@ export declare const InteractiveCard: {
|
|
|
34
34
|
};
|
|
35
35
|
export declare const WithInteractiveContent: (args: any) => React.JSX.Element;
|
|
36
36
|
export declare const RadioGroupCard: (args: any) => React.JSX.Element;
|
|
37
|
+
export declare const WithShadow: (args: any) => 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.WithInteractiveContent = exports.RadioGroupCard = exports.InteractiveCard = exports.HeaderAndFooter = exports.Default = exports.CardWidth = exports.CardRow = void 0;
|
|
15
|
+
exports["default"] = exports.WithShadow = exports.WithInteractiveContent = exports.RadioGroupCard = exports.InteractiveCard = exports.HeaderAndFooter = exports.Default = exports.CardWidth = exports.CardRow = void 0;
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
17
17
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
18
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
@@ -206,4 +206,13 @@ var RadioGroupCard = function RadioGroupCard(args) {
|
|
|
206
206
|
isInteractiveWithin: false
|
|
207
207
|
}), "Active Card");
|
|
208
208
|
};
|
|
209
|
-
exports.RadioGroupCard = RadioGroupCard;
|
|
209
|
+
exports.RadioGroupCard = RadioGroupCard;
|
|
210
|
+
var WithShadow = function WithShadow(args) {
|
|
211
|
+
return (0, _react2.jsx)(_index.Box, {
|
|
212
|
+
bg: "backgroundSecondary",
|
|
213
|
+
p: "40px"
|
|
214
|
+
}, (0, _react2.jsx)(_index.Card, (0, _extends2["default"])({}, args, {
|
|
215
|
+
variant: "cards.withShadow"
|
|
216
|
+
})));
|
|
217
|
+
};
|
|
218
|
+
exports.WithShadow = WithShadow;
|
|
@@ -11,5 +11,19 @@ declare const cards: {
|
|
|
11
11
|
boxShadow: string;
|
|
12
12
|
bg: string;
|
|
13
13
|
};
|
|
14
|
+
withShadow: {
|
|
15
|
+
boxShadow: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
};
|
|
19
|
+
interactive: {
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
container: {
|
|
23
|
+
borderColor: string;
|
|
24
|
+
};
|
|
25
|
+
activeCard: {
|
|
26
|
+
borderColor: string;
|
|
27
|
+
};
|
|
14
28
|
};
|
|
15
29
|
export default cards;
|
|
@@ -8,15 +8,29 @@ exports["default"] = void 0;
|
|
|
8
8
|
var cards = {
|
|
9
9
|
dark: {
|
|
10
10
|
border: '1px solid',
|
|
11
|
-
borderColor: 'border.
|
|
12
|
-
boxShadow: '
|
|
11
|
+
borderColor: 'border.attachment',
|
|
12
|
+
boxShadow: 'standard',
|
|
13
13
|
bg: 'transparent'
|
|
14
14
|
},
|
|
15
15
|
light: {
|
|
16
16
|
border: '1px solid',
|
|
17
|
-
borderColor: 'border.
|
|
18
|
-
boxShadow: '
|
|
17
|
+
borderColor: 'border.attachment',
|
|
18
|
+
boxShadow: 'standard',
|
|
19
19
|
bg: 'transparent'
|
|
20
|
+
},
|
|
21
|
+
withShadow: {
|
|
22
|
+
boxShadow: 'none',
|
|
23
|
+
borderColor: 'border.attachment',
|
|
24
|
+
backgroundColor: 'transparent'
|
|
25
|
+
},
|
|
26
|
+
interactive: {
|
|
27
|
+
borderColor: 'border.attachment'
|
|
28
|
+
},
|
|
29
|
+
container: {
|
|
30
|
+
borderColor: 'border.attachment'
|
|
31
|
+
},
|
|
32
|
+
activeCard: {
|
|
33
|
+
borderColor: 'border.attachment'
|
|
20
34
|
}
|
|
21
35
|
};
|
|
22
36
|
var _default = cards;
|
|
@@ -26,7 +26,8 @@ var astroBlacklistStory = {
|
|
|
26
26
|
StatusIcon: ['Default', 'In Rocker Button'],
|
|
27
27
|
Avatar: ['Size Variation', 'Color Variation', 'Icon Variation', 'Square Variation', 'Logo Variation'],
|
|
28
28
|
Text: ['Onyx'],
|
|
29
|
-
Loader: ['Circular', 'Custom Circular']
|
|
29
|
+
Loader: ['Circular', 'Custom Circular'],
|
|
30
|
+
Card: ['With Shadow']
|
|
30
31
|
};
|
|
31
32
|
exports.astroBlacklistStory = astroBlacklistStory;
|
|
32
33
|
var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer', 'Onyx Input Patterns'];
|
|
@@ -2128,6 +2128,9 @@ declare const _default: {
|
|
|
2128
2128
|
heading: string;
|
|
2129
2129
|
codeView: string;
|
|
2130
2130
|
};
|
|
2131
|
+
shadows: {
|
|
2132
|
+
standard: string;
|
|
2133
|
+
};
|
|
2131
2134
|
sizes: {
|
|
2132
2135
|
avatar: {
|
|
2133
2136
|
sm: string;
|
|
@@ -3544,7 +3547,7 @@ declare const _default: {
|
|
|
3544
3547
|
container: {
|
|
3545
3548
|
p: string;
|
|
3546
3549
|
borderColor: string;
|
|
3547
|
-
lineHeight:
|
|
3550
|
+
lineHeight: string;
|
|
3548
3551
|
boxShadow: string;
|
|
3549
3552
|
border: string;
|
|
3550
3553
|
borderRadius: string;
|
|
@@ -3595,7 +3598,7 @@ declare const _default: {
|
|
|
3595
3598
|
tableWrapper: {
|
|
3596
3599
|
p: string;
|
|
3597
3600
|
borderColor: string;
|
|
3598
|
-
lineHeight:
|
|
3601
|
+
lineHeight: string;
|
|
3599
3602
|
boxShadow: string;
|
|
3600
3603
|
border: string;
|
|
3601
3604
|
borderRadius: string;
|
|
@@ -3605,6 +3608,23 @@ declare const _default: {
|
|
|
3605
3608
|
fontWeight: number;
|
|
3606
3609
|
flex: string;
|
|
3607
3610
|
};
|
|
3611
|
+
withShadow: {
|
|
3612
|
+
boxShadow: string;
|
|
3613
|
+
backgroundColor: string;
|
|
3614
|
+
p: string;
|
|
3615
|
+
borderColor: string;
|
|
3616
|
+
lineHeight: string;
|
|
3617
|
+
border: string;
|
|
3618
|
+
borderRadius: string;
|
|
3619
|
+
display: string;
|
|
3620
|
+
color: string;
|
|
3621
|
+
fontSize: string;
|
|
3622
|
+
fontWeight: number;
|
|
3623
|
+
flex: string;
|
|
3624
|
+
};
|
|
3625
|
+
flat: {
|
|
3626
|
+
boxShadow: string;
|
|
3627
|
+
};
|
|
3608
3628
|
};
|
|
3609
3629
|
variants: {
|
|
3610
3630
|
accordion: {
|
|
@@ -55,6 +55,9 @@ var nextGenTheme = {
|
|
|
55
55
|
heading: '"Open Sans", sans-serif',
|
|
56
56
|
codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
|
|
57
57
|
},
|
|
58
|
+
shadows: {
|
|
59
|
+
standard: '0 1px 3px 0 rgba(0, 0, 0, 0.13)'
|
|
60
|
+
},
|
|
58
61
|
sizes: _sizes["default"],
|
|
59
62
|
badges: _badges.badges,
|
|
60
63
|
navigationHeader: _navigationHeader["default"],
|
|
@@ -65,7 +65,7 @@ declare const _default: {
|
|
|
65
65
|
container: {
|
|
66
66
|
p: string;
|
|
67
67
|
borderColor: string;
|
|
68
|
-
lineHeight:
|
|
68
|
+
lineHeight: string;
|
|
69
69
|
boxShadow: string;
|
|
70
70
|
border: string;
|
|
71
71
|
borderRadius: string;
|
|
@@ -116,7 +116,7 @@ declare const _default: {
|
|
|
116
116
|
tableWrapper: {
|
|
117
117
|
p: string;
|
|
118
118
|
borderColor: string;
|
|
119
|
-
lineHeight:
|
|
119
|
+
lineHeight: string;
|
|
120
120
|
boxShadow: string;
|
|
121
121
|
border: string;
|
|
122
122
|
borderRadius: string;
|
|
@@ -126,5 +126,22 @@ declare const _default: {
|
|
|
126
126
|
fontWeight: number;
|
|
127
127
|
flex: string;
|
|
128
128
|
};
|
|
129
|
+
withShadow: {
|
|
130
|
+
boxShadow: string;
|
|
131
|
+
backgroundColor: string;
|
|
132
|
+
p: string;
|
|
133
|
+
borderColor: string;
|
|
134
|
+
lineHeight: string;
|
|
135
|
+
border: string;
|
|
136
|
+
borderRadius: string;
|
|
137
|
+
display: string;
|
|
138
|
+
color: string;
|
|
139
|
+
fontSize: string;
|
|
140
|
+
fontWeight: number;
|
|
141
|
+
flex: string;
|
|
142
|
+
};
|
|
143
|
+
flat: {
|
|
144
|
+
boxShadow: string;
|
|
145
|
+
};
|
|
129
146
|
};
|
|
130
147
|
export default _default;
|
|
@@ -22,7 +22,7 @@ var interactive = {
|
|
|
22
22
|
boxShadow: 'none',
|
|
23
23
|
borderRadius: '1rem',
|
|
24
24
|
border: '1px solid',
|
|
25
|
-
borderColor: '
|
|
25
|
+
borderColor: 'gray-200',
|
|
26
26
|
transition: 'border-color .25s ease-in',
|
|
27
27
|
'&.is-focused': {
|
|
28
28
|
backgroundColor: 'backgroundBase',
|
|
@@ -38,8 +38,13 @@ var interactive = {
|
|
|
38
38
|
};
|
|
39
39
|
var container = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
|
40
40
|
p: 'lg',
|
|
41
|
-
borderColor: '
|
|
42
|
-
lineHeight:
|
|
41
|
+
borderColor: 'gray-200',
|
|
42
|
+
lineHeight: 'body',
|
|
43
|
+
boxShadow: 'none'
|
|
44
|
+
});
|
|
45
|
+
var withShadow = _objectSpread(_objectSpread({}, container), {}, {
|
|
46
|
+
boxShadow: 'standard',
|
|
47
|
+
backgroundColor: 'backgroundBase'
|
|
43
48
|
});
|
|
44
49
|
var dark = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
|
45
50
|
border: 'none',
|
|
@@ -54,7 +59,7 @@ var light = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
|
|
54
59
|
gap: 'lg'
|
|
55
60
|
});
|
|
56
61
|
var activeCard = _objectSpread(_objectSpread({}, interactive), {}, {
|
|
57
|
-
borderColor: '
|
|
62
|
+
borderColor: 'gray-200',
|
|
58
63
|
'&.is-hovered': {
|
|
59
64
|
borderColor: 'active',
|
|
60
65
|
bg: 'default'
|
|
@@ -93,6 +98,10 @@ var _default = {
|
|
|
93
98
|
container: container,
|
|
94
99
|
suggestionColumn: suggestionColumn,
|
|
95
100
|
suggestionRow: suggestionRow,
|
|
96
|
-
tableWrapper: tableWrapper
|
|
101
|
+
tableWrapper: tableWrapper,
|
|
102
|
+
withShadow: withShadow,
|
|
103
|
+
flat: {
|
|
104
|
+
boxShadow: 'none'
|
|
105
|
+
}
|
|
97
106
|
};
|
|
98
107
|
exports["default"] = _default;
|
|
@@ -29,4 +29,8 @@ These keys provide additional functionality to the Interactive Card components.
|
|
|
29
29
|
| Keys | Functions |
|
|
30
30
|
| ---- | --------- |
|
|
31
31
|
| Space or Enter | Selects the button. |
|
|
32
|
-
| Tab | Focuses the button and follows the page tab sequence.|
|
|
32
|
+
| Tab | Focuses the button and follows the page tab sequence.|
|
|
33
|
+
|
|
34
|
+
### Note
|
|
35
|
+
|
|
36
|
+
Use variant "cards.withShadow" to apply box-shadow on Card component.
|
|
@@ -191,4 +191,12 @@ export var RadioGroupCard = function RadioGroupCard(args) {
|
|
|
191
191
|
},
|
|
192
192
|
isInteractiveWithin: false
|
|
193
193
|
}), "Active Card");
|
|
194
|
+
};
|
|
195
|
+
export var WithShadow = function WithShadow(args) {
|
|
196
|
+
return ___EmotionJSX(Box, {
|
|
197
|
+
bg: "backgroundSecondary",
|
|
198
|
+
p: "40px"
|
|
199
|
+
}, ___EmotionJSX(Card, _extends({}, args, {
|
|
200
|
+
variant: "cards.withShadow"
|
|
201
|
+
})));
|
|
194
202
|
};
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
var cards = {
|
|
2
2
|
dark: {
|
|
3
3
|
border: '1px solid',
|
|
4
|
-
borderColor: 'border.
|
|
5
|
-
boxShadow: '
|
|
4
|
+
borderColor: 'border.attachment',
|
|
5
|
+
boxShadow: 'standard',
|
|
6
6
|
bg: 'transparent'
|
|
7
7
|
},
|
|
8
8
|
light: {
|
|
9
9
|
border: '1px solid',
|
|
10
|
-
borderColor: 'border.
|
|
11
|
-
boxShadow: '
|
|
10
|
+
borderColor: 'border.attachment',
|
|
11
|
+
boxShadow: 'standard',
|
|
12
12
|
bg: 'transparent'
|
|
13
|
+
},
|
|
14
|
+
withShadow: {
|
|
15
|
+
boxShadow: 'none',
|
|
16
|
+
borderColor: 'border.attachment',
|
|
17
|
+
backgroundColor: 'transparent'
|
|
18
|
+
},
|
|
19
|
+
interactive: {
|
|
20
|
+
borderColor: 'border.attachment'
|
|
21
|
+
},
|
|
22
|
+
container: {
|
|
23
|
+
borderColor: 'border.attachment'
|
|
24
|
+
},
|
|
25
|
+
activeCard: {
|
|
26
|
+
borderColor: 'border.attachment'
|
|
13
27
|
}
|
|
14
28
|
};
|
|
15
29
|
export default cards;
|
|
@@ -18,7 +18,8 @@ export var astroBlacklistStory = {
|
|
|
18
18
|
StatusIcon: ['Default', 'In Rocker Button'],
|
|
19
19
|
Avatar: ['Size Variation', 'Color Variation', 'Icon Variation', 'Square Variation', 'Logo Variation'],
|
|
20
20
|
Text: ['Onyx'],
|
|
21
|
-
Loader: ['Circular', 'Custom Circular']
|
|
21
|
+
Loader: ['Circular', 'Custom Circular'],
|
|
22
|
+
Card: ['With Shadow']
|
|
22
23
|
};
|
|
23
24
|
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer', 'Onyx Input Patterns'];
|
|
24
25
|
export default nextGenConvertedComponents;
|
|
@@ -48,6 +48,9 @@ var nextGenTheme = {
|
|
|
48
48
|
heading: '"Open Sans", sans-serif',
|
|
49
49
|
codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
|
|
50
50
|
},
|
|
51
|
+
shadows: {
|
|
52
|
+
standard: '0 1px 3px 0 rgba(0, 0, 0, 0.13)'
|
|
53
|
+
},
|
|
51
54
|
sizes: sizes,
|
|
52
55
|
badges: badges,
|
|
53
56
|
navigationHeader: navigationHeader,
|
|
@@ -14,7 +14,7 @@ var interactive = {
|
|
|
14
14
|
boxShadow: 'none',
|
|
15
15
|
borderRadius: '1rem',
|
|
16
16
|
border: '1px solid',
|
|
17
|
-
borderColor: '
|
|
17
|
+
borderColor: 'gray-200',
|
|
18
18
|
transition: 'border-color .25s ease-in',
|
|
19
19
|
'&.is-focused': {
|
|
20
20
|
backgroundColor: 'backgroundBase',
|
|
@@ -30,8 +30,13 @@ var interactive = {
|
|
|
30
30
|
};
|
|
31
31
|
var container = _objectSpread(_objectSpread({}, flat), {}, {
|
|
32
32
|
p: 'lg',
|
|
33
|
-
borderColor: '
|
|
34
|
-
lineHeight:
|
|
33
|
+
borderColor: 'gray-200',
|
|
34
|
+
lineHeight: 'body',
|
|
35
|
+
boxShadow: 'none'
|
|
36
|
+
});
|
|
37
|
+
var withShadow = _objectSpread(_objectSpread({}, container), {}, {
|
|
38
|
+
boxShadow: 'standard',
|
|
39
|
+
backgroundColor: 'backgroundBase'
|
|
35
40
|
});
|
|
36
41
|
var dark = _objectSpread(_objectSpread({}, flat), {}, {
|
|
37
42
|
border: 'none',
|
|
@@ -46,7 +51,7 @@ var light = _objectSpread(_objectSpread({}, flat), {}, {
|
|
|
46
51
|
gap: 'lg'
|
|
47
52
|
});
|
|
48
53
|
var activeCard = _objectSpread(_objectSpread({}, interactive), {}, {
|
|
49
|
-
borderColor: '
|
|
54
|
+
borderColor: 'gray-200',
|
|
50
55
|
'&.is-hovered': {
|
|
51
56
|
borderColor: 'active',
|
|
52
57
|
bg: 'default'
|
|
@@ -85,5 +90,9 @@ export default {
|
|
|
85
90
|
container: container,
|
|
86
91
|
suggestionColumn: suggestionColumn,
|
|
87
92
|
suggestionRow: suggestionRow,
|
|
88
|
-
tableWrapper: tableWrapper
|
|
93
|
+
tableWrapper: tableWrapper,
|
|
94
|
+
withShadow: withShadow,
|
|
95
|
+
flat: {
|
|
96
|
+
boxShadow: 'none'
|
|
97
|
+
}
|
|
89
98
|
};
|