@pingux/astro 2.84.0-alpha.1 → 2.84.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.
Files changed (80) hide show
  1. package/lib/cjs/components/CodeView/CodeView.js +5 -2
  2. package/lib/cjs/components/CodeView/CodeView.styles.d.ts +2 -1
  3. package/lib/cjs/components/CodeView/CodeView.styles.js +4 -3
  4. package/lib/cjs/components/Link/Link.js +3 -1
  5. package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +3 -6
  6. package/lib/cjs/components/Menu/Menu.js +15 -3
  7. package/lib/cjs/components/Menu/Menu.test.js +23 -0
  8. package/lib/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
  9. package/lib/cjs/components/MenuItem/MenuItem.styles.js +2 -1
  10. package/lib/cjs/components/MenuSection/MenuSection.d.ts +9 -0
  11. package/lib/cjs/components/MenuSection/MenuSection.js +76 -0
  12. package/lib/cjs/components/MenuSection/MenuSection.styles.d.ts +21 -0
  13. package/lib/cjs/components/MenuSection/MenuSection.styles.js +35 -0
  14. package/lib/cjs/components/MenuSection/MenuSection.test.d.ts +1 -0
  15. package/lib/cjs/components/MenuSection/MenuSection.test.js +100 -0
  16. package/lib/cjs/components/MenuSection/index.d.ts +1 -0
  17. package/lib/cjs/components/MenuSection/index.js +14 -0
  18. package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.d.ts +2 -0
  19. package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +73 -5
  20. package/lib/cjs/components/SelectField/SelectField.stories.js +3 -6
  21. package/lib/cjs/components/Tabs/Tabs.js +0 -1
  22. package/lib/cjs/components/Tabs/Tabs.style.d.ts +1 -0
  23. package/lib/cjs/components/Tabs/Tabs.style.js +2 -1
  24. package/lib/cjs/styles/theme.js +5 -1
  25. package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +105 -0
  26. package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +134 -0
  27. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  28. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +278 -6
  29. package/lib/cjs/styles/themes/next-gen/next-gen.js +31 -4
  30. package/lib/cjs/styles/themes/next-gen/spacing.d.ts +9 -0
  31. package/lib/cjs/styles/themes/next-gen/spacing.js +17 -0
  32. package/lib/cjs/styles/themes/next-gen/text.d.ts +2 -2
  33. package/lib/cjs/styles/themes/next-gen/text.js +8 -13
  34. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +36 -3
  35. package/lib/cjs/styles/themes/next-gen/variants/button.js +25 -5
  36. package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +20 -0
  37. package/lib/cjs/styles/themes/next-gen/variants/cards.js +28 -0
  38. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +56 -0
  39. package/lib/cjs/styles/themes/next-gen/variants/links.js +62 -0
  40. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -0
  41. package/lib/cjs/styles/themes/next-gen/variants/text.js +9 -2
  42. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +31 -1
  43. package/lib/cjs/styles/themes/next-gen/variants/variants.js +38 -5
  44. package/lib/cjs/styles/variants/variants.js +2 -0
  45. package/lib/cjs/types/codeView.d.ts +1 -0
  46. package/lib/cjs/types/index.d.ts +1 -0
  47. package/lib/cjs/types/index.js +32 -21
  48. package/lib/cjs/types/link.d.ts +1 -0
  49. package/lib/cjs/types/menuSection.d.ts +24 -0
  50. package/lib/cjs/types/menuSection.js +6 -0
  51. package/lib/components/CodeView/CodeView.js +5 -2
  52. package/lib/components/CodeView/CodeView.styles.js +4 -3
  53. package/lib/components/Link/Link.js +3 -1
  54. package/lib/components/LinkSelectField/LinkSelectField.stories.js +4 -7
  55. package/lib/components/Menu/Menu.js +15 -3
  56. package/lib/components/Menu/Menu.test.js +24 -1
  57. package/lib/components/MenuItem/MenuItem.styles.js +2 -1
  58. package/lib/components/MenuSection/MenuSection.js +64 -0
  59. package/lib/components/MenuSection/MenuSection.styles.js +27 -0
  60. package/lib/components/MenuSection/MenuSection.test.js +97 -0
  61. package/lib/components/MenuSection/index.js +1 -0
  62. package/lib/components/PopoverMenu/PopoverMenu.stories.js +70 -4
  63. package/lib/components/SelectField/SelectField.stories.js +4 -7
  64. package/lib/components/Tabs/Tabs.js +0 -1
  65. package/lib/components/Tabs/Tabs.style.js +2 -1
  66. package/lib/styles/theme.js +5 -1
  67. package/lib/styles/themes/next-gen/codeView/codeView.js +126 -0
  68. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  69. package/lib/styles/themes/next-gen/next-gen.js +31 -4
  70. package/lib/styles/themes/next-gen/spacing.js +9 -0
  71. package/lib/styles/themes/next-gen/text.js +8 -13
  72. package/lib/styles/themes/next-gen/variants/button.js +25 -5
  73. package/lib/styles/themes/next-gen/variants/cards.js +20 -0
  74. package/lib/styles/themes/next-gen/variants/links.js +54 -0
  75. package/lib/styles/themes/next-gen/variants/text.js +9 -2
  76. package/lib/styles/themes/next-gen/variants/variants.js +38 -5
  77. package/lib/styles/variants/variants.js +2 -0
  78. package/lib/types/index.js +1 -0
  79. package/lib/types/menuSection.js +1 -0
  80. package/package.json +1 -1
@@ -4,7 +4,7 @@ import DotsVerticalIcon from '@pingux/mdi-react/DotsVerticalIcon';
4
4
  import { action } from '@storybook/addon-actions';
5
5
  import { withDesign } from 'storybook-addon-designs';
6
6
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
7
- import { Icon, IconButton, Item, Menu, OverlayProvider, PopoverMenu, Text } from '../../index';
7
+ import { Icon, IconButton, Item, Menu, OverlayProvider, PopoverMenu, Section, Text } from '../../index';
8
8
  import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
9
9
  import PopoverMenuReadme from './PopoverMenu.mdx';
10
10
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -88,12 +88,12 @@ export var DefaultOpen = function DefaultOpen() {
88
88
  }
89
89
  })), ___EmotionJSX(Menu, {
90
90
  onAction: action('onAction'),
91
- disabledKeys: ['duplicate']
91
+ disabledKeys: ['disabledItem']
92
92
  }, ___EmotionJSX(Item, {
93
93
  key: "edit"
94
94
  }, "Edit"), ___EmotionJSX(Item, {
95
- key: "duplicate"
96
- }, "Duplicate"), ___EmotionJSX(Item, {
95
+ key: "disabledItem"
96
+ }, "Disabled Item"), ___EmotionJSX(Item, {
97
97
  key: "delete",
98
98
  textValue: "delete"
99
99
  }, ___EmotionJSX(Text, {
@@ -222,4 +222,70 @@ export var NotClosedOnSelect = function NotClosedOnSelect() {
222
222
  color: "critical.bright"
223
223
  }, "Delete")))))
224
224
  );
225
+ };
226
+ export var WithSeparator = function WithSeparator(args) {
227
+ return (
228
+ // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
229
+ // readers when an overlay opens.
230
+ ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, args, ___EmotionJSX(IconButton, {
231
+ "aria-label": "more options",
232
+ variant: "inverted"
233
+ }, ___EmotionJSX(Icon, {
234
+ icon: DotsVerticalIcon,
235
+ size: "md",
236
+ title: {
237
+ name: 'Dots Vertical Icon'
238
+ }
239
+ })), ___EmotionJSX(Menu, {
240
+ onAction: action('onAction'),
241
+ disabledKeys: ['disabledItem']
242
+ }, ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
243
+ key: "edit"
244
+ }, "Edit")), ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
245
+ key: "disabledItem"
246
+ }, "Disabled Item"), ___EmotionJSX(Item, {
247
+ key: "delete",
248
+ textValue: "delete"
249
+ }, ___EmotionJSX(Text, {
250
+ color: "critical.bright"
251
+ }, "Delete"))))))
252
+ );
253
+ };
254
+ export var WithSections = function WithSections(args) {
255
+ return (
256
+ // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
257
+ // readers when an overlay opens.
258
+ ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, args, ___EmotionJSX(IconButton, {
259
+ "aria-label": "more options",
260
+ variant: "inverted"
261
+ }, ___EmotionJSX(Icon, {
262
+ icon: DotsVerticalIcon,
263
+ size: "md",
264
+ title: {
265
+ name: 'Dots Vertical Icon'
266
+ }
267
+ })), ___EmotionJSX(Menu, {
268
+ onAction: action('onAction'),
269
+ disabledKeys: ['disabledItem']
270
+ }, ___EmotionJSX(Section, {
271
+ key: "section 1",
272
+ title: "Section 1"
273
+ }, ___EmotionJSX(Item, {
274
+ key: "edit"
275
+ }, "Edit"), ___EmotionJSX(Item, {
276
+ key: "disabledItem"
277
+ }, "Disabled Item"), ___EmotionJSX(Item, {
278
+ key: "copy"
279
+ }, "Copy")), ___EmotionJSX(Section, {
280
+ key: "section 2",
281
+ title: "Section 2"
282
+ }, ___EmotionJSX(Item, {
283
+ key: "duplicate"
284
+ }, "Duplicate"), ___EmotionJSX(Item, {
285
+ key: "delete",
286
+ textValue: "delete"
287
+ }, ___EmotionJSX(Text, {
288
+ color: "critical.bright"
289
+ }, "Delete"))))))
290
+ );
225
291
  };
@@ -31,7 +31,7 @@ import { OverlayProvider } from 'react-aria';
31
31
  import { useAsyncList } from 'react-stately';
32
32
  import CalendarRangeIcon from '@pingux/mdi-react/CalendarRangeIcon';
33
33
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
34
- import { Icon, Item, Section, SelectField, Separator } from '../../index';
34
+ import { Icon, Item, Section, SelectField } from '../../index';
35
35
  import { modes as labelModes } from '../../utils/devUtils/constants/labelModes';
36
36
  import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
37
37
  import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
@@ -247,18 +247,15 @@ export var Controlled = function Controlled() {
247
247
  export var WithNoneOption = function WithNoneOption() {
248
248
  return ___EmotionJSX(SelectField, {
249
249
  label: "What's your favorite color?"
250
- }, ___EmotionJSX(Item, {
250
+ }, ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
251
251
  key: "none"
252
- }, "None"), ___EmotionJSX(Item, {
253
- isSeparator: true,
254
- textValue: "-"
255
- }, ___EmotionJSX(Separator, null)), ___EmotionJSX(Item, {
252
+ }, "None")), ___EmotionJSX(Section, null, ___EmotionJSX(Item, {
256
253
  key: "red"
257
254
  }, "Red"), ___EmotionJSX(Item, {
258
255
  key: "blue"
259
256
  }, "Blue"), ___EmotionJSX(Item, {
260
257
  key: "yellow"
261
- }, "Yellow"));
258
+ }, "Yellow")));
262
259
  };
263
260
  export var WithSlots = function WithSlots() {
264
261
  return ___EmotionJSX(SelectField, {
@@ -82,7 +82,6 @@ var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
82
82
  value: state
83
83
  }, ___EmotionJSX(Box, others, ___EmotionJSX(Box, _extends({
84
84
  variant: "tabs",
85
- gap: "25px",
86
85
  isRow: orientation === ORIENTATION.HORIZONTAL
87
86
  }, tabListProps, raTabListProps, {
88
87
  ref: tabListRef,
@@ -43,7 +43,8 @@ export var tabs = {
43
43
  borderBottomWidth: 1,
44
44
  borderBottomStyle: 'solid',
45
45
  borderBottomColor: 'neutral.90',
46
- mb: 'lg'
46
+ mb: 'lg',
47
+ gap: '25px'
47
48
  };
48
49
  export var menuTab = _objectSpread(_objectSpread({}, quiet), {}, {
49
50
  color: 'neutral.40',
@@ -26,10 +26,14 @@ export default {
26
26
  },
27
27
  breakpoints: breakpoints,
28
28
  fonts: {
29
- standard: '"Helvetica Neue", Helvetica, sans-serif'
29
+ standard: '"Helvetica Neue", Helvetica, sans-serif',
30
+ codeView: '"Roboto Mono", "Lucida Console", Courier, monospace'
30
31
  },
31
32
  fontSizes: fontSizes,
32
33
  fontWeights: fontWeights,
34
+ lineHeights: {
35
+ md: '1.5'
36
+ },
33
37
  sizes: {
34
38
  buttonHeight: 36,
35
39
  column: 400,
@@ -0,0 +1,126 @@
1
+ var nextGenCodeViewTheme = {
2
+ plain: {
3
+ color: '#f8f8f2',
4
+ backgroundColor: '#272822'
5
+ },
6
+ styles: [{
7
+ types: ['comment', 'prolog', 'doctype', 'cdata'],
8
+ style: {
9
+ color: '#93a1a1'
10
+ }
11
+ }, {
12
+ types: ['punctuation'],
13
+ style: {
14
+ color: '#999999'
15
+ }
16
+ }, {
17
+ types: ['deleted', 'property', 'tag', 'boolean', 'number', 'constant', 'symbol'],
18
+ style: {
19
+ color: '#c792ea'
20
+ }
21
+ }, {
22
+ types: ['inserted', 'selector', 'string', 'char', 'builtin', 'inserted', 'attr-name'],
23
+ style: {
24
+ color: '#A1C281'
25
+ }
26
+ }, {
27
+ types: ['operator', 'entity', 'url', 'language-css', 'style'],
28
+ style: {
29
+ color: '#dfc084',
30
+ background: 'transparent'
31
+ }
32
+ }, {
33
+ types: ['atrule', 'attr-value', 'keyword'],
34
+ style: {
35
+ color: '#c792ea'
36
+ }
37
+ }, {
38
+ types: ['function'],
39
+ style: {
40
+ color: '#53bcfd'
41
+ }
42
+ }, {
43
+ types: ['regex', 'important', 'variable'],
44
+ style: {
45
+ color: '#f07178'
46
+ }
47
+ }, {
48
+ types: ['important', 'bold'],
49
+ style: {
50
+ fontWeight: 'bold'
51
+ }
52
+ }, {
53
+ types: ['entity'],
54
+ style: {
55
+ cursor: 'help'
56
+ }
57
+ }]
58
+ };
59
+ var nextGenCodeViewWrapper = {
60
+ bg: 'accent.99',
61
+ border: '1px solid',
62
+ borderColor: 'accent.95',
63
+ width: 400,
64
+ height: 200,
65
+ my: 'xs',
66
+ overflow: 'auto',
67
+ alignItems: 'center',
68
+ '&.is-focused, &:focus': {
69
+ boxShadow: 'focus',
70
+ outline: 'none'
71
+ },
72
+ pre: {
73
+ backgroundColor: 'transparent',
74
+ padding: '1em',
75
+ height: '100%',
76
+ width: '100%',
77
+ overflowX: 'hidden',
78
+ overflowY: 'auto',
79
+ fontSize: '13px',
80
+ '& .token-line': {
81
+ display: 'block',
82
+ alignItems: 'center',
83
+ '& .token': {
84
+ whiteSpace: 'pre-wrap',
85
+ wordBreak: 'break-all'
86
+ }
87
+ },
88
+ fontFamily: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace',
89
+ lineHeight: 1.75
90
+ },
91
+ '&.has-no-copy-button': {
92
+ pre: {
93
+ p: 'sm'
94
+ }
95
+ },
96
+ '&.has-line-numbers': {
97
+ pre: {
98
+ p: '0 10px 0 0',
99
+ overflow: 'auto',
100
+ '& .token-line:first-of-type *': {
101
+ pt: 'sm'
102
+ },
103
+ '& .token-line': {
104
+ display: 'flex',
105
+ '& .token': {
106
+ whiteSpace: 'pre'
107
+ }
108
+ }
109
+ }
110
+ }
111
+ };
112
+ var lineNo = {
113
+ display: 'table-cell',
114
+ userSelect: 'none',
115
+ px: 'xs',
116
+ m: '0 10px 0 0',
117
+ bg: 'accent.30',
118
+ minWidth: 26,
119
+ color: 'white',
120
+ lineHeight: '20px'
121
+ };
122
+ export default {
123
+ theme: nextGenCodeViewTheme,
124
+ wrapper: nextGenCodeViewWrapper,
125
+ lineNo: lineNo
126
+ };
@@ -1,2 +1,2 @@
1
- var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView'];
1
+ var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'MultivaluesField', 'Text', 'Link', 'Card'];
2
2
  export default nextGenConvertedComponents;
@@ -11,31 +11,58 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
11
11
  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) { _defineProperty(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; }
12
12
  import merge from 'deepmerge';
13
13
  import theme from '../../theme.js';
14
+ import codeView from './codeView/codeView';
14
15
  import colors from './colors/colors';
15
16
  import buttons from './variants/button';
17
+ import cards from './variants/cards';
18
+ import links from './variants/links';
16
19
  import { text as newText } from './variants/text';
17
20
  import variants, { badges } from './variants/variants';
18
21
  import forms from './forms';
22
+ import spacing from './spacing';
19
23
  import { fontSizes, fontWeights } from './text';
20
24
  import './open_sans.css';
25
+ var breakpoints = ['0px', '576px', '768px', '992px', '1200px', '1600px'];
21
26
  var nextGenTheme = {
22
27
  name: 'Next Gen',
23
28
  colors: colors,
29
+ breakpoints: breakpoints,
24
30
  buttons: buttons,
25
31
  forms: forms,
26
32
  fontSizes: fontSizes,
27
33
  fontWeights: fontWeights,
28
34
  lineHeights: {
29
- body: '1.5'
35
+ body: '1.5',
36
+ md: '1.75'
30
37
  },
31
38
  text: newText,
32
39
  fonts: {
33
40
  standard: '"Open Sans", sans-serif',
34
41
  body: '"Open Sans", sans-serif',
35
- heading: '"Open Sans", sans-serif'
42
+ heading: '"Open Sans", sans-serif',
43
+ codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
44
+ },
45
+ sizes: {
46
+ container: {
47
+ xs: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
48
+ sm: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
49
+ md: ['100%', '100%', '720px', '960px', '1140px', '1540px'],
50
+ lg: ['100%', '100%', '100%', '960px', '1140px', '1540px'],
51
+ xl: ['100%', '100%', '100%', '100%', '1140px', '1540px'],
52
+ xx: ['100%', '100%', '100%', '100%', '100%', '1540px'],
53
+ fluid: ['100%', '100%', '100%', '100%', '100%', '100%']
54
+ }
36
55
  },
37
56
  badges: badges,
38
- variants: variants
57
+ space: spacing,
58
+ links: links,
59
+ cards: cards,
60
+ variants: variants,
61
+ overrides: {
62
+ codeView: codeView
63
+ }
39
64
  };
40
65
  var mergedTheme = merge(theme, nextGenTheme);
41
- export default _objectSpread({}, mergedTheme);
66
+ export default _objectSpread(_objectSpread({}, mergedTheme), {}, {
67
+ breakpoints: breakpoints
68
+ });
@@ -0,0 +1,9 @@
1
+ var scale = {
2
+ xs: '.25rem',
3
+ sm: '.5rem',
4
+ md: '1rem',
5
+ lg: '1.5rem',
6
+ xl: '3rem',
7
+ xx: '4rem'
8
+ };
9
+ export default scale;
@@ -1,17 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
2
  var _fontWeights;
3
- var baseSize = 15;
4
- var majorMultiplier = 1.15;
5
- var getFontSize = function getFontSize(major) {
6
- return Math.round(baseSize * Math.pow(majorMultiplier, major));
7
- };
8
3
  export var fontSizes = {
9
- 'xs': getFontSize(-2),
10
- 'sm': getFontSize(-1),
11
- 'md': '15px',
12
- 'lg': '18.75px',
13
- 'xl': '22.5px',
14
- 'xx': '26.25px',
15
- 'xxx': '33.75px'
4
+ 'xs': '0.75rem',
5
+ 'sm': '0.875rem',
6
+ 'md': '.9375rem',
7
+ 'lg': '1.171875rem',
8
+ 'xl': '1.40625rem',
9
+ 'xx': '1.640625rem',
10
+ 'xxx': '2.109375rem'
16
11
  };
17
- export var fontWeights = (_fontWeights = {}, _defineProperty(_fontWeights, -1, 400), _defineProperty(_fontWeights, 0, 400), _defineProperty(_fontWeights, 1, 400), _defineProperty(_fontWeights, 2, 600), _defineProperty(_fontWeights, 3, 600), _fontWeights);
12
+ export var fontWeights = (_fontWeights = {}, _defineProperty(_fontWeights, -1, 300), _defineProperty(_fontWeights, 0, 400), _defineProperty(_fontWeights, 1, 400), _defineProperty(_fontWeights, 2, 600), _defineProperty(_fontWeights, 3, 600), _fontWeights);
@@ -47,14 +47,14 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
47
47
  },
48
48
  '&.is-focused': _objectSpread({}, defaultFocus)
49
49
  });
50
- var neutral = _objectSpread(_objectSpread({
50
+ var neutral = _objectSpread(_objectSpread(_objectSpread({
51
51
  color: 'gray-600'
52
- }, buttonBase), {}, {
52
+ }, buttonBase), transitions), {}, {
53
53
  '&.is-pressed': {
54
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
54
+ color: 'white'
55
55
  },
56
56
  '&.is-hovered': {
57
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
57
+ borderColor: 'primary'
58
58
  }
59
59
  });
60
60
  var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
@@ -152,6 +152,7 @@ var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
152
152
  color: 'white'
153
153
  });
154
154
  var baseIconButton = {
155
+ cursor: 'pointer',
155
156
  transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
156
157
  outline: 'none',
157
158
  borderRadius: '28px',
@@ -231,7 +232,26 @@ var iconButtons = {
231
232
  }
232
233
  }, transitions)
233
234
  },
234
- messageCloseButton: _objectSpread({}, baseIconButton)
235
+ messageCloseButton: _objectSpread({}, baseIconButton),
236
+ headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
237
+ borderRadius: '4px',
238
+ path: {
239
+ fill: 'gray-800'
240
+ },
241
+ px: 'md',
242
+ py: 'sm',
243
+ width: '56px',
244
+ '&.is-hovered': {
245
+ path: {
246
+ fill: 'gray-500'
247
+ }
248
+ },
249
+ '&.is-pressed': {
250
+ path: {
251
+ fill: 'gray-500'
252
+ }
253
+ }
254
+ })
235
255
  };
236
256
  var buttons = {
237
257
  neutral: neutral,
@@ -0,0 +1,20 @@
1
+ var interactive = {
2
+ boxShadow: 'none',
3
+ borderRadius: '24px',
4
+ border: '1px solid',
5
+ borderColor: 'gray-300',
6
+ transition: 'border-color .15s ease-in',
7
+ '&.is-focused': {
8
+ outline: '2px solid',
9
+ outlineColor: 'focus',
10
+ outlineOffset: '0px'
11
+ },
12
+ '&.is-hovered': {
13
+ outline: 'none',
14
+ borderColor: 'blue',
15
+ bg: 'default'
16
+ }
17
+ };
18
+ export default {
19
+ interactive: interactive
20
+ };
@@ -0,0 +1,54 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+ 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) { _defineProperty(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; }
12
+ var nextGen = {
13
+ color: 'gray-800',
14
+ fontSize: 'md',
15
+ py: 'sm',
16
+ px: 'md',
17
+ textDecoration: 'none',
18
+ borderRadius: '4px',
19
+ lineHeight: '22.5px',
20
+ minHeight: '22.5px',
21
+ fontFamily: 'standard',
22
+ '&.is-hovered': {
23
+ color: '#155cba'
24
+ },
25
+ '&.is-pressed': {
26
+ color: '#155cba'
27
+ }
28
+ };
29
+ var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
30
+ px: '0',
31
+ display: 'block',
32
+ position: 'relative',
33
+ '&:before': {
34
+ position: 'absolute',
35
+ display: 'block',
36
+ borderRadius: '.25rem',
37
+ content: '""',
38
+ top: '0',
39
+ right: '-1rem',
40
+ bottom: 0,
41
+ left: '-1rem',
42
+ transition: 'background-color .15s ease'
43
+ },
44
+ '&.is-selected': {
45
+ color: '#155cba',
46
+ '&:before': {
47
+ backgroundColor: 'active_light'
48
+ }
49
+ }
50
+ });
51
+ export default {
52
+ nextGen: nextGen,
53
+ sideNav: sideNav
54
+ };
@@ -45,7 +45,7 @@ var hTags = {
45
45
  color: 'text.primary',
46
46
  fontFamily: 'standard',
47
47
  fontWeight: 1,
48
- fontSize: 'sm'
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: '1.75rem'
68
75
  }
69
76
  }, hTags);
@@ -226,11 +226,14 @@ var menuItem = {
226
226
  color: 'text.primary',
227
227
  bg: 'lightblue'
228
228
  }
229
+ },
230
+ separator: {
231
+ my: 'sm'
229
232
  }
230
233
  };
231
234
  var separator = {
232
235
  base: {
233
- bg: 'gray-200'
236
+ bg: 'gray-300'
234
237
  }
235
238
  };
236
239
  var avatarBase = {
@@ -273,8 +276,12 @@ var progressBar = {
273
276
  })
274
277
  };
275
278
  var listViewItem = {
279
+ rightOfData: {
280
+ flexShrink: 4,
281
+ whiteSpace: 'nowrap'
282
+ },
276
283
  iconContainer: {
277
- mr: 'sm'
284
+ ml: '0px'
278
285
  },
279
286
  styledListItem: {
280
287
  bg: 'white',
@@ -295,8 +302,8 @@ var listViewItem = {
295
302
  }
296
303
  },
297
304
  styledContainer: {
298
- py: '1.25rem',
299
- px: '1rem',
305
+ py: '1rem',
306
+ px: '1.5rem',
300
307
  bg: 'transparent',
301
308
  '&.is-hovered': {
302
309
  bg: 'transparent',
@@ -450,6 +457,29 @@ var dataTable = {
450
457
  fontSize: 'md'
451
458
  }
452
459
  };
460
+ var codeView = {
461
+ wrapper: {
462
+ backgroundColor: 'gray-900',
463
+ borderRadius: '4px',
464
+ '> button >svg': {
465
+ color: 'gray-300',
466
+ path: {
467
+ fill: 'gray-300'
468
+ }
469
+ },
470
+ '> pre': {
471
+ p: 'md'
472
+ }
473
+ }
474
+ };
475
+ var tabs = {
476
+ gap: '0px'
477
+ };
478
+ var menu = {
479
+ p: 'sm',
480
+ border: '1px solid',
481
+ borderColor: 'gray-300'
482
+ };
453
483
  export default {
454
484
  navBar: navBar,
455
485
  fieldHelperText: fieldHelperText,
@@ -464,5 +494,8 @@ export default {
464
494
  listViewItem: listViewItem,
465
495
  progressBar: progressBar,
466
496
  listView: listView,
467
- dataTable: dataTable
497
+ dataTable: dataTable,
498
+ codeView: codeView,
499
+ tabs: tabs,
500
+ menu: menu
468
501
  };
@@ -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,
@@ -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';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.84.0-alpha.1",
3
+ "version": "2.84.0-alpha.3",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",