@pingux/astro 2.84.0-alpha.0 → 2.84.0-alpha.10
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/Avatar/Avatar.js +43 -8
- package/lib/cjs/components/Avatar/Avatar.test.js +10 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +5 -3
- package/lib/cjs/components/CodeView/CodeView.js +5 -2
- package/lib/cjs/components/CodeView/CodeView.styles.d.ts +2 -1
- package/lib/cjs/components/CodeView/CodeView.styles.js +4 -3
- package/lib/cjs/components/Link/Link.js +3 -1
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +3 -6
- package/lib/cjs/components/ListBox/ListBox.styles.js +6 -3
- package/lib/cjs/components/Menu/Menu.js +15 -3
- package/lib/cjs/components/Menu/Menu.test.js +23 -0
- package/lib/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
- package/lib/cjs/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/cjs/components/MenuSection/MenuSection.d.ts +9 -0
- package/lib/cjs/components/MenuSection/MenuSection.js +76 -0
- package/lib/cjs/components/MenuSection/MenuSection.styles.d.ts +21 -0
- package/lib/cjs/components/MenuSection/MenuSection.styles.js +35 -0
- package/lib/cjs/components/MenuSection/MenuSection.test.d.ts +1 -0
- package/lib/cjs/components/MenuSection/MenuSection.test.js +100 -0
- package/lib/cjs/components/MenuSection/index.d.ts +1 -0
- package/lib/cjs/components/MenuSection/index.js +14 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.d.ts +2 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +73 -5
- package/lib/cjs/components/SelectField/SelectField.stories.js +3 -6
- package/lib/cjs/components/SwitchField/SwitchField.d.ts +4 -0
- package/lib/cjs/components/SwitchField/SwitchField.js +12 -32
- package/lib/cjs/components/SwitchField/SwitchField.stories.d.ts +11 -0
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +4 -2
- package/lib/cjs/components/SwitchField/SwitchField.test.d.ts +1 -0
- package/lib/cjs/components/SwitchField/index.d.ts +1 -0
- package/lib/cjs/components/SwitchField/switchFieldAttributes.d.ts +94 -0
- package/lib/cjs/components/SwitchField/switchFieldAttributes.js +2 -30
- package/lib/cjs/components/Tabs/Tabs.js +0 -1
- package/lib/cjs/components/Tabs/Tabs.style.d.ts +1 -0
- package/lib/cjs/components/Tabs/Tabs.style.js +2 -1
- package/lib/cjs/components/TimeField/TimeField.stories.js +2 -2
- package/lib/cjs/styles/theme.js +5 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +105 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +134 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +344 -36
- package/lib/cjs/styles/themes/next-gen/next-gen.js +24 -4
- package/lib/cjs/styles/themes/next-gen/sizes.d.ts +18 -0
- package/lib/cjs/styles/themes/next-gen/sizes.js +27 -0
- package/lib/cjs/styles/themes/next-gen/spacing.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/spacing.js +17 -0
- package/lib/cjs/styles/themes/next-gen/text.d.ts +8 -2
- package/lib/cjs/styles/themes/next-gen/text.js +16 -13
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +36 -3
- package/lib/cjs/styles/themes/next-gen/variants/button.js +25 -5
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +20 -0
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +28 -0
- package/lib/cjs/styles/themes/next-gen/variants/images.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/variants/images.js +12 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +56 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +62 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +9 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +82 -31
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +91 -30
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/avatar.d.ts +5 -1
- package/lib/cjs/types/checkboxField.d.ts +3 -1
- package/lib/cjs/types/codeView.d.ts +1 -0
- package/lib/cjs/types/index.d.ts +2 -0
- package/lib/cjs/types/index.js +43 -21
- package/lib/cjs/types/link.d.ts +1 -0
- package/lib/cjs/types/menu.d.ts +1 -1
- package/lib/cjs/types/menuItem.d.ts +1 -1
- package/lib/cjs/types/menuSection.d.ts +24 -0
- package/lib/cjs/types/menuSection.js +6 -0
- package/lib/cjs/types/switchField.d.ts +29 -0
- package/lib/cjs/types/switchField.js +6 -0
- package/lib/components/Avatar/Avatar.js +44 -7
- package/lib/components/Avatar/Avatar.test.js +10 -1
- package/lib/components/CheckboxField/CheckboxField.stories.js +5 -3
- package/lib/components/CodeView/CodeView.js +5 -2
- package/lib/components/CodeView/CodeView.styles.js +4 -3
- package/lib/components/Link/Link.js +3 -1
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +4 -7
- package/lib/components/ListBox/ListBox.styles.js +6 -3
- package/lib/components/Menu/Menu.js +15 -3
- package/lib/components/Menu/Menu.test.js +24 -1
- package/lib/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/components/MenuSection/MenuSection.js +64 -0
- package/lib/components/MenuSection/MenuSection.styles.js +27 -0
- package/lib/components/MenuSection/MenuSection.test.js +97 -0
- package/lib/components/MenuSection/index.js +1 -0
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +70 -4
- package/lib/components/SelectField/SelectField.stories.js +4 -7
- package/lib/components/SwitchField/SwitchField.js +14 -34
- package/lib/components/SwitchField/SwitchField.stories.js +4 -2
- package/lib/components/SwitchField/switchFieldAttributes.js +1 -28
- package/lib/components/Tabs/Tabs.js +0 -1
- package/lib/components/Tabs/Tabs.style.js +2 -1
- package/lib/components/TimeField/TimeField.stories.js +2 -2
- package/lib/styles/theme.js +5 -1
- package/lib/styles/themes/next-gen/codeView/codeView.js +126 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/next-gen.js +24 -4
- package/lib/styles/themes/next-gen/sizes.js +19 -0
- package/lib/styles/themes/next-gen/spacing.js +9 -0
- package/lib/styles/themes/next-gen/text.js +16 -13
- package/lib/styles/themes/next-gen/variants/button.js +25 -5
- package/lib/styles/themes/next-gen/variants/cards.js +20 -0
- package/lib/styles/themes/next-gen/variants/images.js +4 -0
- package/lib/styles/themes/next-gen/variants/links.js +54 -0
- package/lib/styles/themes/next-gen/variants/text.js +9 -2
- package/lib/styles/themes/next-gen/variants/variants.js +91 -30
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/index.js +2 -0
- package/lib/types/menuSection.js +1 -0
- package/lib/types/switchField.js +1 -0
- package/package.json +1 -1
- package/lib/cjs/recipes/NextGen/DefaultAvatar.stories.d.ts +0 -6
- package/lib/cjs/recipes/NextGen/DefaultAvatar.stories.js +0 -41
- package/lib/recipes/NextGen/DefaultAvatar.stories.js +0 -31
@@ -45,7 +45,7 @@ var hTags = {
|
|
45
45
|
color: 'text.primary',
|
46
46
|
fontFamily: 'standard',
|
47
47
|
fontWeight: 1,
|
48
|
-
fontSize: '
|
48
|
+
fontSize: 'xs'
|
49
49
|
}
|
50
50
|
};
|
51
51
|
export var text = _objectSpread({
|
@@ -58,12 +58,19 @@ export var text = _objectSpread({
|
|
58
58
|
color: 'text.primary'
|
59
59
|
},
|
60
60
|
placeholder: {
|
61
|
-
color: 'text.primary'
|
61
|
+
color: 'text.primary',
|
62
|
+
fontWeight: 1
|
62
63
|
},
|
63
64
|
paragraph: {
|
64
65
|
lineHeight: 'body'
|
65
66
|
},
|
66
67
|
listViewItemText: {
|
67
68
|
fontWeight: 2
|
69
|
+
},
|
70
|
+
small: {
|
71
|
+
fontSize: 'sm',
|
72
|
+
color: 'gray-500',
|
73
|
+
fontFamily: 'standard',
|
74
|
+
lineHeight: 'md'
|
68
75
|
}
|
69
76
|
}, hTags);
|
@@ -204,7 +204,10 @@ var listBox = {
|
|
204
204
|
'&.is-selected': {
|
205
205
|
color: 'text.primary',
|
206
206
|
bg: 'lightblue',
|
207
|
-
pl: 0
|
207
|
+
pl: 0,
|
208
|
+
'&.is-focused': {
|
209
|
+
color: 'text.primary'
|
210
|
+
}
|
208
211
|
}
|
209
212
|
}
|
210
213
|
};
|
@@ -226,40 +229,59 @@ var menuItem = {
|
|
226
229
|
color: 'text.primary',
|
227
230
|
bg: 'lightblue'
|
228
231
|
}
|
232
|
+
},
|
233
|
+
separator: {
|
234
|
+
my: 'sm'
|
229
235
|
}
|
230
236
|
};
|
231
237
|
var separator = {
|
232
238
|
base: {
|
233
|
-
bg: 'gray-
|
239
|
+
bg: 'gray-300'
|
234
240
|
}
|
235
241
|
};
|
236
|
-
var
|
242
|
+
var avatar = {
|
243
|
+
backgroundColor: 'lightcyan',
|
244
|
+
color: 'darkcyan',
|
245
|
+
cursor: 'pointer',
|
246
|
+
'&.is-orange': {
|
247
|
+
backgroundColor: 'lightorange',
|
248
|
+
color: 'darkorange'
|
249
|
+
},
|
250
|
+
'&.is-green': {
|
251
|
+
backgroundColor: 'lightgreen',
|
252
|
+
color: 'darkgreen'
|
253
|
+
},
|
254
|
+
'&.is-purple': {
|
255
|
+
backgroundColor: 'lightpurple',
|
256
|
+
color: 'darkpurple'
|
257
|
+
},
|
258
|
+
'&.is-pink': {
|
259
|
+
backgroundColor: 'lightpink',
|
260
|
+
color: 'darkpink'
|
261
|
+
},
|
262
|
+
'&.is-red': {
|
263
|
+
backgroundColor: 'lightred',
|
264
|
+
color: 'darkred'
|
265
|
+
},
|
266
|
+
'&.is-yellow': {
|
267
|
+
backgroundColor: 'lightyellow',
|
268
|
+
color: 'darkyellow'
|
269
|
+
},
|
270
|
+
'&.is-cyan': {
|
271
|
+
backgroundColor: 'lightcyan',
|
272
|
+
color: 'darkcyan'
|
273
|
+
},
|
274
|
+
'&.is-teal': {
|
275
|
+
backgroundColor: 'lightteal',
|
276
|
+
color: 'darkteal'
|
277
|
+
},
|
278
|
+
display: 'flex',
|
237
279
|
borderRadius: '50%',
|
238
280
|
textAlign: 'center',
|
281
|
+
alignItems: 'center',
|
239
282
|
justifyContent: 'center',
|
240
283
|
fontFamily: 'standard'
|
241
284
|
};
|
242
|
-
var avatar = {
|
243
|
-
xl: _objectSpread({
|
244
|
-
size: '104px',
|
245
|
-
fontSize: 'calc(104px * .4)'
|
246
|
-
}, avatarBase),
|
247
|
-
lg: _objectSpread(_objectSpread({
|
248
|
-
size: '72px'
|
249
|
-
}, avatarBase), {}, {
|
250
|
-
fontSize: 'calc(72px * .4)'
|
251
|
-
}),
|
252
|
-
md: _objectSpread(_objectSpread({
|
253
|
-
size: '34px'
|
254
|
-
}, avatarBase), {}, {
|
255
|
-
fontSize: 'calc(34px * .4)'
|
256
|
-
}),
|
257
|
-
sm: _objectSpread(_objectSpread({
|
258
|
-
size: '24px'
|
259
|
-
}, avatarBase), {}, {
|
260
|
-
fontSize: 'calc(24px * .4)'
|
261
|
-
})
|
262
|
-
};
|
263
285
|
var progressBarContainer = {
|
264
286
|
backgroundColor: 'gray-200',
|
265
287
|
borderRadius: '.5rem',
|
@@ -273,8 +295,12 @@ var progressBar = {
|
|
273
295
|
})
|
274
296
|
};
|
275
297
|
var listViewItem = {
|
298
|
+
rightOfData: {
|
299
|
+
flexShrink: 4,
|
300
|
+
whiteSpace: 'nowrap'
|
301
|
+
},
|
276
302
|
iconContainer: {
|
277
|
-
|
303
|
+
ml: '0px'
|
278
304
|
},
|
279
305
|
styledListItem: {
|
280
306
|
bg: 'white',
|
@@ -295,8 +321,8 @@ var listViewItem = {
|
|
295
321
|
}
|
296
322
|
},
|
297
323
|
styledContainer: {
|
298
|
-
py: '
|
299
|
-
px: '
|
324
|
+
py: 'md',
|
325
|
+
px: 'lg',
|
300
326
|
bg: 'transparent',
|
301
327
|
'&.is-hovered': {
|
302
328
|
bg: 'transparent',
|
@@ -418,8 +444,17 @@ var listView = {
|
|
418
444
|
borderRadius: '16px',
|
419
445
|
border: '1px solid',
|
420
446
|
borderColor: '#e7eef4',
|
421
|
-
'& > div': {
|
422
|
-
|
447
|
+
'& > div > div': {
|
448
|
+
'& > div:first-of-type': {
|
449
|
+
'& > div > div': {
|
450
|
+
borderRadius: '16px 16px 0 0'
|
451
|
+
}
|
452
|
+
},
|
453
|
+
'& > div:last-of-type': {
|
454
|
+
'& > div > div': {
|
455
|
+
borderRadius: ' 0 0 16px 16px'
|
456
|
+
}
|
457
|
+
}
|
423
458
|
}
|
424
459
|
}
|
425
460
|
};
|
@@ -450,6 +485,29 @@ var dataTable = {
|
|
450
485
|
fontSize: 'md'
|
451
486
|
}
|
452
487
|
};
|
488
|
+
var codeView = {
|
489
|
+
wrapper: {
|
490
|
+
backgroundColor: 'gray-900',
|
491
|
+
borderRadius: '4px',
|
492
|
+
'> button >svg': {
|
493
|
+
color: 'gray-300',
|
494
|
+
path: {
|
495
|
+
fill: 'gray-300'
|
496
|
+
}
|
497
|
+
},
|
498
|
+
'> pre': {
|
499
|
+
p: 'md'
|
500
|
+
}
|
501
|
+
}
|
502
|
+
};
|
503
|
+
var tabs = {
|
504
|
+
gap: '0px'
|
505
|
+
};
|
506
|
+
var menu = {
|
507
|
+
p: 'sm',
|
508
|
+
border: '1px solid',
|
509
|
+
borderColor: 'gray-300'
|
510
|
+
};
|
453
511
|
export default {
|
454
512
|
navBar: navBar,
|
455
513
|
fieldHelperText: fieldHelperText,
|
@@ -464,5 +522,8 @@ export default {
|
|
464
522
|
listViewItem: listViewItem,
|
465
523
|
progressBar: progressBar,
|
466
524
|
listView: listView,
|
467
|
-
dataTable: dataTable
|
525
|
+
dataTable: dataTable,
|
526
|
+
codeView: codeView,
|
527
|
+
tabs: tabs,
|
528
|
+
menu: menu
|
468
529
|
};
|
@@ -34,6 +34,7 @@ import listViewItem from '../../components/ListViewItem/ListViewItem.styles';
|
|
34
34
|
import loader from '../../components/Loader/Loader.styles';
|
35
35
|
import menu from '../../components/Menu/Menu.styles';
|
36
36
|
import menuItem from '../../components/MenuItem/MenuItem.styles';
|
37
|
+
import menuSection from '../../components/MenuSection/MenuSection.styles';
|
37
38
|
import message from '../../components/Messages/Message.styles';
|
38
39
|
import modal from '../../components/Modal/Modal.styles';
|
39
40
|
import navBar from '../../components/NavBar/NavBar.styles';
|
@@ -79,6 +80,7 @@ export default _objectSpread({
|
|
79
80
|
loader: loader,
|
80
81
|
menu: menu,
|
81
82
|
menuItem: menuItem,
|
83
|
+
menuSection: menuSection,
|
82
84
|
message: message,
|
83
85
|
modal: modal,
|
84
86
|
navBar: navBar,
|
package/lib/types/index.js
CHANGED
@@ -30,6 +30,7 @@ export * from './listItem';
|
|
30
30
|
export * from './loader';
|
31
31
|
export * from './menu';
|
32
32
|
export * from './menuItem';
|
33
|
+
export * from './menuSection';
|
33
34
|
export * from './messages';
|
34
35
|
export * from './Modal';
|
35
36
|
export * from './navBar';
|
@@ -43,6 +44,7 @@ export * from './rockerButtonGroup';
|
|
43
44
|
export * from './scrollBox';
|
44
45
|
export * from './separator';
|
45
46
|
export * from './shared';
|
47
|
+
export * from './switchField';
|
46
48
|
export * from './tab';
|
47
49
|
export * from './table';
|
48
50
|
export * from './tabs';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
@@ -1,41 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = exports.Default = void 0;
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _ = require("../..");
|
11
|
-
var _react2 = require("@emotion/react");
|
12
|
-
var _default = {
|
13
|
-
title: 'Next Gen Recipes/Default Avatar'
|
14
|
-
};
|
15
|
-
exports["default"] = _default;
|
16
|
-
var Default = function Default() {
|
17
|
-
return (0, _react2.jsx)(_.AstroProvider, {
|
18
|
-
themeOverrides: [_.NextGenTheme]
|
19
|
-
}, (0, _react2.jsx)(_.Box, {
|
20
|
-
isRow: true,
|
21
|
-
gap: "md",
|
22
|
-
alignItems: "center"
|
23
|
-
}, (0, _react2.jsx)(_.Box, {
|
24
|
-
variant: "avatar.sm",
|
25
|
-
backgroundColor: "green-100",
|
26
|
-
color: "green-800"
|
27
|
-
}, "AT"), (0, _react2.jsx)(_.Box, {
|
28
|
-
variant: "avatar.md",
|
29
|
-
backgroundColor: "blue-100",
|
30
|
-
color: "blue-800"
|
31
|
-
}, "LP"), (0, _react2.jsx)(_.Box, {
|
32
|
-
variant: "avatar.lg",
|
33
|
-
backgroundColor: "teal-100",
|
34
|
-
color: "teal-800"
|
35
|
-
}, "WP"), (0, _react2.jsx)(_.Box, {
|
36
|
-
variant: "avatar.xl",
|
37
|
-
backgroundColor: "red-100",
|
38
|
-
color: "red-800"
|
39
|
-
}, "JS")));
|
40
|
-
};
|
41
|
-
exports.Default = Default;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { AstroProvider, Box, NextGenTheme } from '../..';
|
3
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
4
|
-
export default {
|
5
|
-
title: 'Next Gen Recipes/Default Avatar'
|
6
|
-
};
|
7
|
-
export var Default = function Default() {
|
8
|
-
return ___EmotionJSX(AstroProvider, {
|
9
|
-
themeOverrides: [NextGenTheme]
|
10
|
-
}, ___EmotionJSX(Box, {
|
11
|
-
isRow: true,
|
12
|
-
gap: "md",
|
13
|
-
alignItems: "center"
|
14
|
-
}, ___EmotionJSX(Box, {
|
15
|
-
variant: "avatar.sm",
|
16
|
-
backgroundColor: "green-100",
|
17
|
-
color: "green-800"
|
18
|
-
}, "AT"), ___EmotionJSX(Box, {
|
19
|
-
variant: "avatar.md",
|
20
|
-
backgroundColor: "blue-100",
|
21
|
-
color: "blue-800"
|
22
|
-
}, "LP"), ___EmotionJSX(Box, {
|
23
|
-
variant: "avatar.lg",
|
24
|
-
backgroundColor: "teal-100",
|
25
|
-
color: "teal-800"
|
26
|
-
}, "WP"), ___EmotionJSX(Box, {
|
27
|
-
variant: "avatar.xl",
|
28
|
-
backgroundColor: "red-100",
|
29
|
-
color: "red-800"
|
30
|
-
}, "JS")));
|
31
|
-
};
|