@pingux/astro 1.2.1 → 1.3.2-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.
Files changed (118) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +8 -2
  3. package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +5 -2
  4. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +8 -3
  5. package/lib/cjs/components/ArrayField/ArrayField.js +213 -0
  6. package/lib/cjs/components/ArrayField/ArrayField.stories.js +223 -0
  7. package/lib/cjs/components/ArrayField/ArrayField.test.js +208 -0
  8. package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +61 -0
  9. package/lib/cjs/components/ArrayField/index.js +27 -0
  10. package/lib/cjs/components/CheckboxField/CheckboxField.js +4 -1
  11. package/lib/cjs/components/CodeView/CodeView.js +3 -3
  12. package/lib/cjs/components/Input/Input.js +3 -11
  13. package/lib/cjs/components/Input/Input.test.js +14 -2
  14. package/lib/cjs/components/ListView/ListView.stories.js +3 -0
  15. package/lib/cjs/components/Loader/Loader.stories.js +3 -3
  16. package/lib/cjs/components/Modal/Modal.js +3 -0
  17. package/lib/cjs/components/Modal/Modal.stories.js +11 -66
  18. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +20 -10
  19. package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +74 -0
  20. package/lib/cjs/components/NavBar/NavBar.js +30 -4
  21. package/lib/cjs/components/NavBar/NavBar.stories.js +70 -463
  22. package/lib/cjs/components/NavBar/NavBar.test.js +51 -1
  23. package/lib/cjs/components/NavBarSection/NavBarItem.js +137 -0
  24. package/lib/cjs/components/NavBarSection/NavBarItemButton.js +96 -0
  25. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +1 -1
  26. package/lib/cjs/components/NavBarSection/NavBarItemLink.js +98 -0
  27. package/lib/cjs/components/NavBarSection/NavBarSection.js +10 -8
  28. package/lib/cjs/components/NavBarSection/index.js +28 -1
  29. package/lib/cjs/components/NumberField/NumberField.js +30 -10
  30. package/lib/cjs/components/NumberField/NumberField.test.js +7 -0
  31. package/lib/cjs/components/PageHeader/PageHeader.js +3 -0
  32. package/lib/cjs/components/PageHeader/PageHeader.stories.js +6 -1
  33. package/lib/cjs/components/RadioGroupField/RadioGroupField.js +9 -5
  34. package/lib/cjs/components/SelectField/SelectField.stories.js +3 -55
  35. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +8 -1
  36. package/lib/cjs/components/Tabs/Tabs.stories.js +1 -15
  37. package/lib/cjs/context/NavBarContext/index.js +20 -0
  38. package/lib/cjs/hooks/index.js +9 -0
  39. package/lib/cjs/hooks/useField/useField.js +2 -2
  40. package/lib/cjs/hooks/useNavBarPress/index.js +18 -0
  41. package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +38 -0
  42. package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.js +42 -0
  43. package/lib/cjs/index.js +80 -58
  44. package/lib/cjs/styles/forms/checkbox.js +0 -1
  45. package/lib/cjs/styles/forms/input.js +1 -1
  46. package/lib/cjs/styles/forms/label.js +3 -0
  47. package/lib/cjs/styles/forms/radio.js +1 -1
  48. package/lib/cjs/styles/forms/switch.js +3 -1
  49. package/lib/cjs/styles/variants/accordion.js +39 -7
  50. package/lib/cjs/styles/variants/boxes.js +5 -25
  51. package/lib/cjs/styles/variants/buttons.js +7 -1
  52. package/lib/cjs/styles/variants/codeView.js +91 -0
  53. package/lib/cjs/styles/variants/navBar.js +68 -0
  54. package/lib/cjs/styles/variants/separator.js +2 -1
  55. package/lib/cjs/styles/variants/text.js +3 -1
  56. package/lib/cjs/styles/variants/variants.js +3 -0
  57. package/lib/components/AccordionGridGroup/AccordionGridGroup.js +7 -2
  58. package/lib/components/AccordionGridItem/AccordionGridItemBody.js +4 -2
  59. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +9 -4
  60. package/lib/components/ArrayField/ArrayField.js +179 -0
  61. package/lib/components/ArrayField/ArrayField.stories.js +196 -0
  62. package/lib/components/ArrayField/ArrayField.test.js +185 -0
  63. package/lib/components/ArrayField/ArrayFieldDeleteButton.js +43 -0
  64. package/lib/components/ArrayField/index.js +2 -0
  65. package/lib/components/CheckboxField/CheckboxField.js +4 -1
  66. package/lib/components/CodeView/CodeView.js +2 -2
  67. package/lib/components/Input/Input.js +2 -10
  68. package/lib/components/Input/Input.test.js +11 -2
  69. package/lib/components/ListView/ListView.stories.js +3 -0
  70. package/lib/components/Loader/Loader.stories.js +1 -1
  71. package/lib/components/Modal/Modal.js +4 -1
  72. package/lib/components/Modal/Modal.stories.js +10 -59
  73. package/lib/components/MultivaluesField/MultivaluesField.js +19 -9
  74. package/lib/components/MultivaluesField/MultivaluesField.test.js +52 -0
  75. package/lib/components/NavBar/NavBar.js +25 -4
  76. package/lib/components/NavBar/NavBar.stories.js +71 -462
  77. package/lib/components/NavBar/NavBar.test.js +39 -2
  78. package/lib/components/NavBarSection/NavBarItem.js +111 -0
  79. package/lib/components/NavBarSection/NavBarItemButton.js +69 -0
  80. package/lib/components/NavBarSection/NavBarItemHeader.js +1 -1
  81. package/lib/components/NavBarSection/NavBarItemLink.js +71 -0
  82. package/lib/components/NavBarSection/NavBarSection.js +9 -8
  83. package/lib/components/NavBarSection/index.js +4 -1
  84. package/lib/components/NumberField/NumberField.js +32 -12
  85. package/lib/components/NumberField/NumberField.test.js +5 -0
  86. package/lib/components/PageHeader/PageHeader.js +2 -0
  87. package/lib/components/PageHeader/PageHeader.stories.js +5 -1
  88. package/lib/components/RadioGroupField/RadioGroupField.js +9 -5
  89. package/lib/components/SelectField/SelectField.stories.js +2 -50
  90. package/lib/components/SelectFieldBase/SelectFieldBase.js +8 -1
  91. package/lib/components/Tabs/Tabs.stories.js +0 -11
  92. package/lib/context/NavBarContext/index.js +5 -0
  93. package/lib/hooks/index.js +1 -0
  94. package/lib/hooks/useField/useField.js +2 -2
  95. package/lib/hooks/useNavBarPress/index.js +1 -0
  96. package/lib/hooks/useNavBarPress/useNavBarPress.js +27 -0
  97. package/lib/hooks/useNavBarPress/useNavBarPress.test.js +36 -0
  98. package/lib/index.js +2 -0
  99. package/lib/styles/forms/checkbox.js +0 -1
  100. package/lib/styles/forms/input.js +1 -1
  101. package/lib/styles/forms/label.js +3 -0
  102. package/lib/styles/forms/radio.js +1 -1
  103. package/lib/styles/forms/switch.js +3 -1
  104. package/lib/styles/variants/accordion.js +26 -5
  105. package/lib/styles/variants/boxes.js +5 -25
  106. package/lib/styles/variants/buttons.js +7 -1
  107. package/lib/styles/variants/codeView.js +91 -0
  108. package/lib/styles/variants/navBar.js +46 -0
  109. package/lib/styles/variants/separator.js +2 -1
  110. package/lib/styles/variants/text.js +3 -1
  111. package/lib/styles/variants/variants.js +2 -0
  112. package/package.json +3 -1
  113. package/lib/cjs/layouts/ListLayout.stories.js +0 -895
  114. package/lib/cjs/layouts/SchemaFormLayout.stories.js +0 -139
  115. package/lib/cjs/recipes/ArrayField.stories.js +0 -169
  116. package/lib/layouts/ListLayout.stories.js +0 -866
  117. package/lib/layouts/SchemaFormLayout.stories.js +0 -107
  118. package/lib/recipes/ArrayField.stories.js +0 -134
@@ -156,8 +156,8 @@ var useField = function useField() {
156
156
  }),
157
157
  focusWithinProps = _useFocusWithin.focusWithinProps;
158
158
 
159
- var isFloatLabel = labelMode === labelModes.FLOAT;
160
- var isLeftLabel = labelMode === labelModes.LEFT;
159
+ var isFloatLabel = labelMode === labelModes.FLOAT || (labelProps === null || labelProps === void 0 ? void 0 : labelProps.labelMode) === labelModes.FLOAT;
160
+ var isLeftLabel = labelMode === labelModes.LEFT || (labelProps === null || labelProps === void 0 ? void 0 : labelProps.labelMode) === labelModes.LEFT;
161
161
  var isFloatLabelActive = isFloatLabel && (hasValue || hasFocusWithin || (containerProps === null || containerProps === void 0 ? void 0 : containerProps.isFloatLabelActive));
162
162
 
163
163
  var _useStatusClasses2 = useStatusClasses(containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, {
@@ -0,0 +1 @@
1
+ export { default } from './useNavBarPress';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A custom hook that will call an onPressCallback function, if the function is provided.
3
+ * @param {Object} params The accepted parameters object
4
+ * @param {string} props.key The unique identifier that is assigned to the element being pressed
5
+ * @param {Object} state The state object tracking selected keys
6
+ * @param {function} state.setSelectedKeys The function that sets the selected keys
7
+ * @callback props.onPressCallback The callback that will be called only if provided
8
+ */
9
+ var useNavBarPress = function useNavBarPress(_ref, state) {
10
+ var key = _ref.key,
11
+ onPressCallback = _ref.onPressCallback;
12
+ var setSelectedKeys = state.setSelectedKeys;
13
+
14
+ var onNavPress = function onNavPress() {
15
+ setSelectedKeys(key);
16
+
17
+ if (onPressCallback) {
18
+ onPressCallback();
19
+ }
20
+ };
21
+
22
+ return {
23
+ onNavPress: onNavPress
24
+ };
25
+ };
26
+
27
+ export default useNavBarPress;
@@ -0,0 +1,36 @@
1
+ import { renderHook } from '@testing-library/react-hooks';
2
+ import useNavBarPress from './';
3
+ var key = 'testKey';
4
+ test('using the onPress prop works as a callback', function () {
5
+ var onPress = jest.fn();
6
+ var setSelectedKeys = jest.fn();
7
+
8
+ var _renderHook = renderHook(function () {
9
+ return useNavBarPress({
10
+ key: key,
11
+ onPressCallback: onPress
12
+ }, {
13
+ setSelectedKeys: setSelectedKeys
14
+ });
15
+ }),
16
+ result = _renderHook.result;
17
+
18
+ result.current.onNavPress();
19
+ expect(onPress).toHaveBeenCalled();
20
+ });
21
+ test('if no onPress prop there is no callback', function () {
22
+ var onPress = jest.fn();
23
+ var setSelectedKeys = jest.fn();
24
+
25
+ var _renderHook2 = renderHook(function () {
26
+ return useNavBarPress({
27
+ key: key
28
+ }, {
29
+ setSelectedKeys: setSelectedKeys
30
+ });
31
+ }),
32
+ result = _renderHook2.result;
33
+
34
+ result.current.onNavPress();
35
+ expect(onPress).not.toHaveBeenCalled();
36
+ });
package/lib/index.js CHANGED
@@ -11,6 +11,8 @@ export { default as AccordionItem } from './components/AccordionItem';
11
11
  export * from './components/AccordionItem';
12
12
  export { default as AccordionGridItem } from './components/AccordionGridItem';
13
13
  export * from './components/AccordionGridItem';
14
+ export { default as ArrayField } from './components/ArrayField';
15
+ export * from './components/ArrayField';
14
16
  export { default as Avatar } from './components/Avatar';
15
17
  export * from './components/Avatar';
16
18
  export { default as Box } from './components/Box';
@@ -2,7 +2,6 @@
2
2
  // Default checkbox
3
3
  export var checkbox = {
4
4
  color: 'active',
5
- mr: 'sm',
6
5
  'input:focus ~ &': {
7
6
  bg: 'transparent'
8
7
  },
@@ -186,5 +186,5 @@ input.multivaluesWrapper = _objectSpread(_objectSpread({}, input.container), {},
186
186
  }
187
187
  });
188
188
  input.numberField = _objectSpread(_objectSpread({}, input), {}, {
189
- pr: '27px'
189
+ pr: '28px'
190
190
  });
@@ -69,4 +69,7 @@ label.checkbox = _objectSpread(_objectSpread({}, text.base), {}, {
69
69
  width: 'auto',
70
70
  alignItems: 'center',
71
71
  cursor: 'pointer'
72
+ });
73
+ label.radioGroup = _objectSpread(_objectSpread({}, label), {}, {
74
+ fontWeight: 1
72
75
  });
@@ -4,7 +4,7 @@ export var radio = {
4
4
  width: 20,
5
5
  height: 20,
6
6
  color: 'active',
7
- mr: 'sm',
7
+ mr: 'xs',
8
8
  // override the default focus styling
9
9
  'input:focus ~ &': {
10
10
  bg: 'transparent'
@@ -1,5 +1,7 @@
1
1
  export var label = {
2
- alignItems: 'center'
2
+ alignItems: 'center',
3
+ fontSize: 'md',
4
+ color: 'text.primary'
3
5
  };
4
6
  export var container = {
5
7
  mr: 5,
@@ -1,3 +1,17 @@
1
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
2
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
3
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
4
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
5
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
6
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
7
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
8
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+
11
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
12
+
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+
1
15
  var accordionTitle = {
2
16
  display: 'inline-block !important',
3
17
  overflowWrap: 'break-word',
@@ -71,7 +85,6 @@ var accordionGridHeaderNav = {
71
85
  flexGrow: 1,
72
86
  fontWeight: 0,
73
87
  fontSize: '16px',
74
- mt: '5px',
75
88
  '&.is-focused': {
76
89
  outline: 'none',
77
90
  boxShadow: 'focus',
@@ -79,13 +92,20 @@ var accordionGridHeaderNav = {
79
92
  MozBoxShadow: 'focus'
80
93
  },
81
94
  '&.is-hovered': {
82
- backgroundColor: 'accent.10',
83
- boxShadow: 'inset 2px 0 0 0 white'
95
+ backgroundColor: 'accent.10'
84
96
  },
85
97
  '&.is-pressed': {
86
- backgroundColor: 'accent.10'
98
+ backgroundColor: 'accent.5'
87
99
  }
88
100
  };
101
+
102
+ var accordionGridNavItem = _objectSpread(_objectSpread({}, accordionGridHeaderNav), {}, {
103
+ '&.is-selected': {
104
+ backgroundColor: 'accent.5',
105
+ boxShadow: 'inset 2px 0 0 0 white'
106
+ }
107
+ });
108
+
89
109
  var accordionGridBody = {
90
110
  display: 'none !important',
91
111
  pl: 'sm',
@@ -100,5 +120,6 @@ export default {
100
120
  accordionTitle: accordionTitle,
101
121
  accordion: accordion,
102
122
  accordionBody: accordionBody,
103
- accordionGridHeaderNav: accordionGridHeaderNav
123
+ accordionGridHeaderNav: accordionGridHeaderNav,
124
+ accordionGridNavItem: accordionGridNavItem
104
125
  };
@@ -34,7 +34,10 @@ var radioContainer = {
34
34
  }; // Used to add spacing for content shown when a radio is checked
35
35
 
36
36
  var radioCheckedContent = {
37
- py: 'md'
37
+ pb: 'sm',
38
+ pl: 'lg',
39
+ color: 'text.secondary',
40
+ fontSize: 'md'
38
41
  };
39
42
 
40
43
  var listItem = _objectSpread(_objectSpread({}, base), {}, {
@@ -197,26 +200,6 @@ var expandableRow = {
197
200
  }
198
201
  }
199
202
  };
200
- var navBar = {
201
- height: '100%',
202
- width: '230px',
203
- position: 'absolute',
204
- zIndex: '1',
205
- top: '0',
206
- left: '0',
207
- backgroundColor: 'accent.20',
208
- overflowY: 'hidden'
209
- };
210
- var navBarSectionContainer = {
211
- height: '100%',
212
- maxHeight: '100%',
213
- overflowY: 'overlay !important'
214
- };
215
- var navBarItemHeaderContainer = {
216
- flexGrow: 1,
217
- alignItems: 'center',
218
- maxWidth: '180px'
219
- };
220
203
  var datePicker = {
221
204
  '.react-calendar': {
222
205
  width: 280,
@@ -312,8 +295,5 @@ export default {
312
295
  radioContainer: radioContainer,
313
296
  scrollbox: scrollbox,
314
297
  topShadowScrollbox: topShadowScrollbox,
315
- bottomShadowScrollbox: bottomShadowScrollbox,
316
- navBar: navBar,
317
- navBarSectionContainer: navBarSectionContainer,
318
- navBarItemHeaderContainer: navBarItemHeaderContainer
298
+ bottomShadowScrollbox: bottomShadowScrollbox
319
299
  };
@@ -75,8 +75,14 @@ var navItemButton = {
75
75
  wordBreak: 'break-word',
76
76
  '&.is-focused': _objectSpread({}, defaultFocus),
77
77
  '&.is-hovered': {
78
- bg: 'accent.10',
78
+ bg: 'accent.10'
79
+ },
80
+ '&.is-selected': {
81
+ bg: 'accent.5',
79
82
  boxShadow: 'inset 2px 0 0 0 white'
83
+ },
84
+ '&.is-pressed': {
85
+ bg: 'accent.5'
80
86
  }
81
87
  };
82
88
  var iconButton = {
@@ -1,3 +1,93 @@
1
+ var theme = {
2
+ plain: {
3
+ color: '#545454',
4
+ background: 'none',
5
+ lineHeight: 1.5,
6
+ tabSize: 4
7
+ },
8
+ styles: [{
9
+ types: ['prolog', 'constant', 'builtin'],
10
+ style: {
11
+ color: 'rgb(189, 147, 249)'
12
+ }
13
+ }, {
14
+ types: ['inserted', 'function'],
15
+ style: {
16
+ color: 'rgb(80, 250, 123)'
17
+ }
18
+ }, {
19
+ types: ['deleted'],
20
+ style: {
21
+ color: 'rgb(255, 85, 85)'
22
+ }
23
+ }, {
24
+ types: ['changed'],
25
+ style: {
26
+ color: 'rgb(255, 184, 108)'
27
+ }
28
+ }, {
29
+ types: ['punctuation', 'symbol'],
30
+ style: {
31
+ color: 'rgb(248, 248, 242)'
32
+ }
33
+ }, {
34
+ types: ['string', 'char', 'tag', 'selector'],
35
+ style: {
36
+ color: 'rgb(255, 121, 198)'
37
+ }
38
+ }, {
39
+ types: ['keyword', 'variable'],
40
+ style: {
41
+ color: 'rgb(189, 147, 249)',
42
+ fontStyle: 'italic'
43
+ }
44
+ }, {
45
+ types: ['comment'],
46
+ style: {
47
+ color: 'rgb(98, 114, 164)'
48
+ }
49
+ }, {
50
+ types: ['attr-name'],
51
+ style: {
52
+ color: 'rgb(241, 250, 140)'
53
+ }
54
+ }, {
55
+ types: ['comment', 'prolog', 'doctype', 'cdata'],
56
+ style: {
57
+ color: '#696969'
58
+ }
59
+ }, {
60
+ types: ['punctuation'],
61
+ style: {
62
+ color: '#545454'
63
+ }
64
+ }, {
65
+ types: ['property', 'tag', 'constant', 'symbol', 'deleted'],
66
+ style: {
67
+ color: '#007299'
68
+ }
69
+ }, {
70
+ types: ['boolean', 'number', 'operator', 'entity', 'url', 'variable'],
71
+ style: {
72
+ color: '#008000'
73
+ }
74
+ }, {
75
+ types: ['selector', 'attr-name', 'char', 'builtin', 'inserted', 'atrule', 'attr-value', 'function', 'string'],
76
+ style: {
77
+ color: '#aa5d00'
78
+ }
79
+ }, {
80
+ types: ['keyword', 'regex', 'important'],
81
+ style: {
82
+ color: '#d91e18'
83
+ }
84
+ }, {
85
+ types: ['keyword'],
86
+ style: {
87
+ fontStyle: 'normal'
88
+ }
89
+ }]
90
+ };
1
91
  var wrapper = {
2
92
  bg: 'accent.99',
3
93
  border: '1px solid',
@@ -62,6 +152,7 @@ var lineNo = {
62
152
  color: 'white'
63
153
  };
64
154
  export default {
155
+ theme: theme,
65
156
  wrapper: wrapper,
66
157
  lineNo: lineNo
67
158
  };
@@ -0,0 +1,46 @@
1
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
2
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
3
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
4
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
5
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
6
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
7
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
8
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+
11
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
12
+
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+
15
+ import accordion from './accordion';
16
+ var container = {
17
+ height: '100%',
18
+ width: '230px',
19
+ position: 'absolute',
20
+ zIndex: '1',
21
+ top: '0',
22
+ left: '0',
23
+ backgroundColor: 'accent.20',
24
+ overflowY: 'hidden'
25
+ };
26
+ var itemHeaderContainer = {
27
+ flexGrow: 1,
28
+ alignItems: 'center',
29
+ maxWidth: '180px'
30
+ };
31
+ var sectionContainer = {
32
+ height: '100%',
33
+ maxHeight: '100%',
34
+ overflowY: 'overlay !important'
35
+ };
36
+
37
+ var sectionBody = _objectSpread(_objectSpread({}, accordion.accordionGridBody), {}, {
38
+ pl: '0'
39
+ });
40
+
41
+ export default {
42
+ container: container,
43
+ itemHeaderContainer: itemHeaderContainer,
44
+ sectionContainer: sectionContainer,
45
+ sectionBody: sectionBody
46
+ };
@@ -30,9 +30,10 @@ var navBarSeparator = _objectSpread(_objectSpread({}, base), {}, {
30
30
  });
31
31
 
32
32
  var navBarSubtitleSeparator = _objectSpread(_objectSpread({}, base), {}, {
33
+ mt: 'sm',
34
+ mb: '20px',
33
35
  ml: '45px',
34
36
  width: 'calc(100% - 75px)',
35
- mb: '15px',
36
37
  backgroundColor: 'neutral.60'
37
38
  });
38
39
 
@@ -28,7 +28,7 @@ var wordWrap = {
28
28
  };
29
29
 
30
30
  var tabLabel = _objectSpread(_objectSpread(_objectSpread({}, base), wordWrap), {}, {
31
- fontSize: 'md',
31
+ fontSize: 'sm',
32
32
  fontWeight: 1,
33
33
  mb: 6,
34
34
  color: 'neutral.40',
@@ -128,6 +128,8 @@ var environmentBreadcrumb = _objectSpread(_objectSpread({}, base), {}, {
128
128
  });
129
129
 
130
130
  var navBarSubtitle = {
131
+ my: 'md',
132
+ ml: 'md',
131
133
  fontWeight: 3,
132
134
  fontSize: '11px',
133
135
  color: 'accent.80'
@@ -24,6 +24,7 @@ import modal from './modal';
24
24
  import menu from './menu';
25
25
  import menuItem from './menuItem';
26
26
  import messages from './messages';
27
+ import navBar from './navBar';
27
28
  import numberField from './numberField';
28
29
  import overlayPanel from './overlayPanel';
29
30
  import popoverMenu from './popoverMenu';
@@ -46,6 +47,7 @@ export default _objectSpread(_objectSpread({
46
47
  menuItem: menuItem,
47
48
  messages: messages,
48
49
  modal: modal,
50
+ navBar: navBar,
49
51
  numberField: numberField,
50
52
  overlayPanel: overlayPanel,
51
53
  popoverMenu: popoverMenu,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.2.1",
3
+ "version": "1.3.2-alpha.0",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "ux-development@pingidentity.com",
6
6
  "license": "Apache-2.0",
@@ -38,9 +38,11 @@
38
38
  "@emotion/eslint-plugin": "^11.2.0",
39
39
  "@storybook/addon-a11y": "^6.1.16",
40
40
  "@storybook/addon-actions": "^6.1.16",
41
+ "@storybook/addon-console": "^1.2.3",
41
42
  "@storybook/addon-docs": "^6.1.16",
42
43
  "@storybook/addon-essentials": "^6.1.16",
43
44
  "@storybook/addon-links": "^6.1.16",
45
+ "@storybook/addon-storysource": "^6.4.14",
44
46
  "@storybook/addons": "^6.1.16",
45
47
  "@storybook/react": "^6.1.16",
46
48
  "@storybook/theming": "^6.1.16",