@pingux/astro 1.39.0 → 1.39.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 (65) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +2 -1
  3. package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +0 -1
  4. package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +7 -0
  5. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +7 -0
  6. package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +7 -0
  7. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +8 -1
  8. package/lib/cjs/components/IconButton/IconButton.js +3 -1
  9. package/lib/cjs/components/ListBox/ListBox.test.js +18 -0
  10. package/lib/cjs/components/ListBox/Option.js +11 -2
  11. package/lib/cjs/components/ListItem/ListItem.stories.js +8 -1
  12. package/lib/cjs/components/ListView/ListView.stories.js +7 -0
  13. package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +4 -4
  14. package/lib/cjs/components/NavBar/NavBar.stories.js +7 -8
  15. package/lib/cjs/components/NavBarSection/NavBarItem.js +6 -5
  16. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +7 -9
  17. package/lib/cjs/components/NavBarSection/NavBarItemButton.js +2 -1
  18. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +6 -5
  19. package/lib/cjs/components/NavBarSection/NavBarItemLink.js +2 -1
  20. package/lib/cjs/components/NavBarSection/NavBarSection.js +5 -12
  21. package/lib/cjs/components/PasswordField/PasswordField.stories.js +7 -0
  22. package/lib/cjs/components/SearchField/SearchField.stories.js +7 -0
  23. package/lib/cjs/components/SwitchField/SwitchField.stories.js +7 -0
  24. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +7 -0
  25. package/lib/cjs/components/TextField/TextField.stories.js +7 -0
  26. package/lib/cjs/recipes/DatePicker.stories.js +8 -1
  27. package/lib/cjs/recipes/ListAndPanel.stories.js +1 -0
  28. package/lib/cjs/recipes/MaskedValue.stories.js +7 -0
  29. package/lib/cjs/styles/variants/buttons.js +9 -7
  30. package/lib/cjs/styles/variants/navBar.js +5 -6
  31. package/lib/cjs/styles/variants/separator.js +7 -8
  32. package/lib/cjs/styles/variants/text.js +9 -6
  33. package/lib/components/AccordionGridGroup/AccordionGridGroup.js +2 -1
  34. package/lib/components/AccordionGridItem/AccordionGridItem.js +0 -1
  35. package/lib/components/CheckboxField/CheckboxField.stories.js +7 -0
  36. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +7 -0
  37. package/lib/components/ComboBoxField/ComboBoxField.stories.js +7 -0
  38. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +8 -1
  39. package/lib/components/IconButton/IconButton.js +3 -1
  40. package/lib/components/ListBox/ListBox.test.js +11 -0
  41. package/lib/components/ListBox/Option.js +11 -2
  42. package/lib/components/ListItem/ListItem.stories.js +8 -1
  43. package/lib/components/ListView/ListView.stories.js +7 -0
  44. package/lib/components/MultivaluesField/MultivaluesField.stories.js +4 -4
  45. package/lib/components/NavBar/NavBar.stories.js +7 -8
  46. package/lib/components/NavBarSection/NavBarItem.js +6 -5
  47. package/lib/components/NavBarSection/NavBarItemBody.js +7 -9
  48. package/lib/components/NavBarSection/NavBarItemButton.js +2 -1
  49. package/lib/components/NavBarSection/NavBarItemHeader.js +6 -5
  50. package/lib/components/NavBarSection/NavBarItemLink.js +2 -1
  51. package/lib/components/NavBarSection/NavBarSection.js +6 -13
  52. package/lib/components/PasswordField/PasswordField.stories.js +7 -0
  53. package/lib/components/SearchField/SearchField.stories.js +7 -0
  54. package/lib/components/SwitchField/SwitchField.stories.js +7 -0
  55. package/lib/components/TextAreaField/TextAreaField.stories.js +7 -0
  56. package/lib/components/TextField/TextField.stories.js +7 -0
  57. package/lib/recipes/DatePicker.stories.js +8 -1
  58. package/lib/recipes/ListAndPanel.stories.js +1 -0
  59. package/lib/recipes/MaskedValue.stories.js +7 -0
  60. package/lib/styles/variants/buttons.js +9 -7
  61. package/lib/styles/variants/navBar.js +5 -6
  62. package/lib/styles/variants/separator.js +7 -8
  63. package/lib/styles/variants/text.js +9 -6
  64. package/package.json +1 -1
  65. package/NOTICE.html +0 -4707
package/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.39.1](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.39.0...@pingux/astro@1.39.1) (2023-01-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * [UIP-5910] hover for IconButton component ([7861d57](https://gitlab.corp.pingidentity.com/ux/pingux/commit/7861d57dd0262cbbca6326e9666e9fc947fddeb6))
12
+ * [UIP-5912] MultivaluesField focusing on hover ([feab343](https://gitlab.corp.pingidentity.com/ux/pingux/commit/feab34344ed02d270effcce78a4d02712df5a5f3))
13
+ * [UIP-5937] ListAndPanel: add aria-label to icon button ([3fa5f46](https://gitlab.corp.pingidentity.com/ux/pingux/commit/3fa5f468d08adbc5fc93e510374322303feb817d))
14
+ * [UIP-5944] Fix Accordion Grid Group Accessibility Violation ([1058ac7](https://gitlab.corp.pingidentity.com/ux/pingux/commit/1058ac75816df16e6b8ce90f10ef8d0575bb0768))
15
+ * [UIP-5945] Storybook: fix code blocks formatting ([78b29ee](https://gitlab.corp.pingidentity.com/ux/pingux/commit/78b29ee7d28e6a82113333b8107a00ba5820087d))
16
+ * [UIP-5946] Fix A11y Violation Icon Chip Multivalues Story ([d52bf42](https://gitlab.corp.pingidentity.com/ux/pingux/commit/d52bf42c4c62b02efdeb7461cdc50814eb760b3e))
17
+ * [UIP-5955] MultivaluesField: remove button focus styles on hover ([4503298](https://gitlab.corp.pingidentity.com/ux/pingux/commit/450329829271f3e19727238bc891768ccccefb6e))
18
+
19
+
20
+
21
+
22
+
6
23
  # [1.39.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.38.1...@pingux/astro@1.39.0) (2023-01-05)
7
24
 
8
25
 
@@ -172,7 +172,8 @@ var AccordionGridGroup = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
172
172
  keyboardDelegate: keyboardDelegate
173
173
  }
174
174
  }, (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({}, (0, _utils.mergeProps)(gridProps, containerProps), {
175
- ref: accordionGridRef
175
+ ref: accordionGridRef,
176
+ role: "treegrid"
176
177
  }), (0, _map["default"])(_context2 = (0, _from["default"])(state.collection)).call(_context2, function (item) {
177
178
  return (0, _react2.jsx)(_AccordionGridItem["default"], (0, _extends2["default"])({
178
179
  key: item.key,
@@ -102,7 +102,6 @@ var AccordionGridItem = function AccordionGridItem(props) {
102
102
  delete rowProps.onClick;
103
103
  return (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
104
104
  as: "div",
105
- role: "row",
106
105
  tabindex: "0"
107
106
  }, (0, _utils.mergeProps)(rowProps, others), {
108
107
  "aria-selected": isSelected,
@@ -65,6 +65,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
65
65
  var _default = {
66
66
  title: 'Form/CheckboxField',
67
67
  component: _CheckboxField["default"],
68
+ parameters: {
69
+ docs: {
70
+ source: {
71
+ type: 'code'
72
+ }
73
+ }
74
+ },
68
75
  argTypes: _objectSpread({
69
76
  label: {
70
77
  control: {
@@ -75,6 +75,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
75
75
  var _default = {
76
76
  title: 'Components/CollapsiblePanel',
77
77
  component: _CollapsiblePanel["default"],
78
+ parameters: {
79
+ docs: {
80
+ source: {
81
+ type: 'code'
82
+ }
83
+ }
84
+ },
78
85
  argTypes: {
79
86
  listTitle: {
80
87
  defaultValue: 'Selected Groups'
@@ -162,6 +162,13 @@ var actions = {
162
162
  var _default = {
163
163
  title: 'Form/ComboBoxField',
164
164
  component: _ComboBoxField["default"],
165
+ parameters: {
166
+ docs: {
167
+ source: {
168
+ type: 'code'
169
+ }
170
+ }
171
+ },
165
172
  argTypes: _objectSpread({
166
173
  label: {
167
174
  control: {
@@ -64,7 +64,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
64
64
 
65
65
  var _default = {
66
66
  title: 'Components/EnvironmentBreadcrumb',
67
- component: _EnvironmentBreadcrumb["default"]
67
+ component: _EnvironmentBreadcrumb["default"],
68
+ parameters: {
69
+ docs: {
70
+ source: {
71
+ type: 'code'
72
+ }
73
+ }
74
+ }
68
75
  };
69
76
  exports["default"] = _default;
70
77
  var defaultEnvironments = [{
@@ -127,7 +127,9 @@ var IconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
127
127
  fill: chipBg
128
128
  }
129
129
  }
130
- }, (0, _utils.mergeProps)(buttonProps, others, hoverProps, focusProps)), children);
130
+ }, (0, _utils.mergeProps)(buttonProps, others, hoverProps, focusProps), {
131
+ onPointerOver: hoverProps.onPointerEnter
132
+ }), children);
131
133
 
132
134
  if (title) {
133
135
  return (0, _react2.jsx)(_TooltipTrigger["default"], {
@@ -18,6 +18,8 @@ var _react2 = require("@testing-library/react");
18
18
 
19
19
  var _collections = require("@react-stately/collections");
20
20
 
21
+ var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
22
+
21
23
  var _ = _interopRequireDefault(require("."));
22
24
 
23
25
  var _index = require("../../index");
@@ -168,4 +170,20 @@ test('renders sections and items within section', function () {
168
170
  var options = _react2.screen.getAllByRole('option');
169
171
 
170
172
  expect(options.length).toBe(itemsWithSections[0].options.length);
173
+ });
174
+ test('should have is-focused class when hover', function () {
175
+ getSectionsComponent();
176
+
177
+ var options = _react2.screen.getAllByRole('option');
178
+
179
+ expect(options[0]).not.toHaveClass('is-focused');
180
+
181
+ _userEvent["default"].hover(options[0]);
182
+
183
+ expect(options[0]).toHaveClass('is-focused');
184
+
185
+ _userEvent["default"].hover(options[1]);
186
+
187
+ expect(options[0]).not.toHaveClass('is-focused');
188
+ expect(options[1]).toHaveClass('is-focused');
171
189
  });
@@ -96,9 +96,17 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
96
96
  isSelected = _useOption.isSelected,
97
97
  isFocused = _useOption.isFocused;
98
98
 
99
+ var focused = isFocused || (state === null || state === void 0 ? void 0 : (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key;
100
+
101
+ var setFocusOnHover = function setFocusOnHover() {
102
+ if (!focused) {
103
+ state.selectionManager.setFocusedKey(item.key);
104
+ }
105
+ };
106
+
99
107
  var _useStatusClasses = (0, _hooks.useStatusClasses)(null, {
100
108
  isDisabled: isDisabled || isSeparator,
101
- isFocused: isFocused || (state === null || state === void 0 ? void 0 : (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key,
109
+ isFocused: focused,
102
110
  isSelected: isSelected
103
111
  }),
104
112
  classNames = _useStatusClasses.classNames;
@@ -115,7 +123,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
115
123
  ref: optionRef,
116
124
  variant: "listBox.option",
117
125
  "data-id": dataId,
118
- className: classNames
126
+ className: classNames,
127
+ onPointerOver: setFocusOnHover
119
128
  }, optionProps, others), isSelected && (0, _react2.jsx)(_Icon["default"], {
120
129
  icon: _CircleSmallIcon["default"]
121
130
  }), rendered);
@@ -32,7 +32,14 @@ var _react2 = require("@emotion/react");
32
32
 
33
33
  var _default = {
34
34
  title: 'Components/ListItem',
35
- component: _ListItem["default"]
35
+ component: _ListItem["default"],
36
+ parameters: {
37
+ docs: {
38
+ source: {
39
+ type: 'code'
40
+ }
41
+ }
42
+ }
36
43
  };
37
44
  exports["default"] = _default;
38
45
 
@@ -59,6 +59,13 @@ var _react2 = require("@emotion/react");
59
59
  var _default = {
60
60
  title: 'Components/ListView',
61
61
  component: _["default"],
62
+ parameters: {
63
+ docs: {
64
+ source: {
65
+ type: 'code'
66
+ }
67
+ }
68
+ },
62
69
  argTypes: {
63
70
  loadingState: {
64
71
  control: {
@@ -186,26 +186,26 @@ var HTMLIcon = function HTMLIcon(props) {
186
186
  d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
187
187
  fill: "#4660A2"
188
188
  }))), (0, _react2.jsx)("defs", null, (0, _react2.jsx)("clipPath", {
189
- id: "clip0_709_18936"
189
+ className: "clip0_709_18936"
190
190
  }, (0, _react2.jsx)("rect", {
191
191
  width: "16",
192
192
  height: "16",
193
193
  fill: "white"
194
194
  })), (0, _react2.jsx)("clipPath", {
195
- id: "clip1_709_18936"
195
+ className: "clip1_709_18936"
196
196
  }, (0, _react2.jsx)("rect", {
197
197
  width: "10",
198
198
  height: "10",
199
199
  fill: "white",
200
200
  transform: "translate(3 3)"
201
201
  })), (0, _react2.jsx)("clipPath", {
202
- id: "clip2_709_18936"
202
+ className: "clip2_709_18936"
203
203
  }, (0, _react2.jsx)("rect", {
204
204
  width: "16",
205
205
  height: "16",
206
206
  fill: "white"
207
207
  })), (0, _react2.jsx)("clipPath", {
208
- id: "clip3_709_18936"
208
+ className: "clip3_709_18936"
209
209
  }, (0, _react2.jsx)("rect", {
210
210
  width: "10",
211
211
  height: "10",
@@ -289,7 +289,10 @@ var data = [{
289
289
  }, "Notifications"), (0, _react2.jsx)(_index.NavBarItemLink, {
290
290
  key: "Experiences Vanity Domains",
291
291
  id: "Experiences Vanity Domains",
292
- href: "https://pingidentity.com/"
292
+ href: "https://pingidentity.com/",
293
+ onClick: function onClick(e) {
294
+ return e.preventDefault();
295
+ }
293
296
  }, "Vanity Domains"), (0, _react2.jsx)(_index.NavBarItemButton, {
294
297
  key: "Experiences Sender",
295
298
  id: "Experiences Sender"
@@ -304,7 +307,6 @@ var secondData = [{
304
307
  id: "MFA Button Users",
305
308
  key: "MFA Button Users"
306
309
  }, "Users"), {
307
- hasSeparator: false,
308
310
  subTitle: 'PingOne Services'
309
311
  }, (0, _react2.jsx)(_index.NavBarItemButton, {
310
312
  key: "MFA Button Group",
@@ -378,8 +380,7 @@ var Default = function Default() {
378
380
  href: "https://pingidentity.com",
379
381
  target: "_blank"
380
382
  }, logo)), (0, _react2.jsx)(_index.Separator, {
381
- marginTop: "lg",
382
- marginBottom: "0px",
383
+ m: 0,
383
384
  backgroundColor: "neutral.60"
384
385
  }), (0, _react2.jsx)(_index.Box, {
385
386
  variant: "navBar.sectionContainer",
@@ -392,7 +393,6 @@ var Default = function Default() {
392
393
  text: "Overview"
393
394
  }), (0, _react2.jsx)(_index.NavBarSection, {
394
395
  items: data,
395
- hasSeparator: true,
396
396
  "data-id": "nav-bar-section"
397
397
  }), (0, _react2.jsx)(_index.NavBarSection, {
398
398
  items: secondData,
@@ -401,6 +401,7 @@ var Default = function Default() {
401
401
  "data-id": "second-nav-bar-section"
402
402
  }), (0, _react2.jsx)(_index.NavBarSection, {
403
403
  items: thirdData,
404
+ hasSeparator: true,
404
405
  "data-id": "third-nav-bar-section"
405
406
  })));
406
407
  };
@@ -439,8 +440,7 @@ var Controlled = function Controlled() {
439
440
  href: "https://pingidentity.com",
440
441
  target: "_blank"
441
442
  }, logo)), (0, _react2.jsx)(_index.Separator, {
442
- marginTop: "lg",
443
- marginBottom: "0px",
443
+ m: "0",
444
444
  backgroundColor: "neutral.60",
445
445
  key: "top-separator"
446
446
  }), (0, _react2.jsx)(_index.Box, {
@@ -455,7 +455,6 @@ var Controlled = function Controlled() {
455
455
  text: "Overview"
456
456
  }), (0, _react2.jsx)(_index.NavBarSection, {
457
457
  items: data,
458
- hasSeparator: true,
459
458
  "data-id": "first-nav-bar-section"
460
459
  }), (0, _react2.jsx)(_index.NavBarSection, {
461
460
  items: secondData,
@@ -97,6 +97,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
97
97
  }),
98
98
  classNames = _useStatusClasses.classNames;
99
99
 
100
+ var color = isSelected ? 'white' : 'neutral.95';
100
101
  return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
101
102
  id: key,
102
103
  variant: "navBar.navItem",
@@ -106,7 +107,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
106
107
  ref: navItemRef
107
108
  }, mergedProps, {
108
109
  sx: {
109
- maxHeight: '30px'
110
+ flexGrow: 0
110
111
  }
111
112
  }), (0, _react2.jsx)(_index.Box, {
112
113
  isRow: true,
@@ -116,11 +117,11 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
116
117
  }, icon && (0, _react2.jsx)(_index.Icon, {
117
118
  icon: icon,
118
119
  "aria-label": text,
119
- size: 20,
120
+ size: "sm",
120
121
  sx: {
121
- mr: '10px',
122
- color: 'white',
123
- fill: 'white'
122
+ mr: 'sm',
123
+ color: color,
124
+ fill: color
124
125
  }
125
126
  }), (0, _react2.jsx)(_index.Text, {
126
127
  variant: "navBarHeaderText"
@@ -41,19 +41,17 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
41
41
  onKeyDown = _ref.onKeyDown;
42
42
 
43
43
  var renderSubTitle = function renderSubTitle(child) {
44
- var hasSeparator = child.hasSeparator,
44
+ var _child$hasSeparator = child.hasSeparator,
45
+ hasSeparator = _child$hasSeparator === void 0 ? true : _child$hasSeparator,
45
46
  subTitle = child.subTitle;
46
47
  return (0, _react2.jsx)(_react.Fragment, {
47
48
  key: "fragment".concat(subTitle)
48
- }, (hasSeparator || hasSeparator === undefined) && (0, _react2.jsx)(_index.Separator, {
49
+ }, hasSeparator && (0, _react2.jsx)(_index.Separator, {
49
50
  variant: "separator.navBarSubtitleSeparator"
50
51
  }), (0, _react2.jsx)(_index.Text, {
51
52
  key: "text".concat(subTitle),
52
- sx: {
53
- mb: 'sm',
54
- ml: '45px',
55
- mt: 'md'
56
- },
53
+ ml: "45px",
54
+ mt: hasSeparator ? '0' : undefined,
57
55
  variant: "text.navBarSubtitle"
58
56
  }, subTitle));
59
57
  };
@@ -67,8 +65,8 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
67
65
 
68
66
  return (0, _react2.jsx)(_index.Box, {
69
67
  sx: {
70
- alignItems: 'flex-start',
71
- mb: '15px'
68
+ alignItems: 'stretch',
69
+ mb: 'md'
72
70
  }
73
71
  }, (0, _map["default"])(_context = item.children).call(_context, renderChild));
74
72
  };
@@ -72,7 +72,8 @@ var NavBarItemButton = function NavBarItemButton(props) {
72
72
  id: key,
73
73
  variant: "navItemButton",
74
74
  onPress: onNavPress,
75
- className: classNames
75
+ className: classNames,
76
+ color: isSelected ? 'white' : undefined
76
77
  }, others, {
77
78
  sx: _objectSpread({
78
79
  paddingLeft: '45px',
@@ -72,6 +72,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
72
72
  }),
73
73
  classNames = _useStatusClasses.classNames;
74
74
 
75
+ var color = childSelected && !isExpanded ? 'white' : 'neutral.95';
75
76
  return (0, _react2.jsx)(_index.Box, {
76
77
  variant: "navBar.itemHeaderContainer",
77
78
  className: classNames,
@@ -82,8 +83,8 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
82
83
  size: "sm",
83
84
  sx: {
84
85
  mr: '10px',
85
- color: 'white',
86
- fill: 'white'
86
+ color: color,
87
+ fill: color
87
88
  },
88
89
  "aria-hidden": "true"
89
90
  }), (0, _react2.jsx)(_index.Text, {
@@ -96,10 +97,10 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
96
97
  }
97
98
  }, (0, _react2.jsx)(_index.Icon, {
98
99
  icon: isExpanded ? _MenuUpIcon["default"] : _MenuDownIcon["default"],
99
- size: "xs",
100
+ size: "sm",
100
101
  sx: {
101
- color: 'white',
102
- fill: 'white'
102
+ color: color,
103
+ fill: color
103
104
  },
104
105
  "aria-label": isExpanded ? 'Menu up' : 'Menu down'
105
106
  })));
@@ -71,7 +71,8 @@ var NavBarItemLink = function NavBarItemLink(props) {
71
71
  id: key,
72
72
  variant: "buttons.navItemButton",
73
73
  className: classNames,
74
- onPress: onNavPress
74
+ onPress: onNavPress,
75
+ color: isSelected ? 'white' : undefined
75
76
  }, others, {
76
77
  sx: _objectSpread({
77
78
  paddingLeft: '45px',
@@ -67,8 +67,11 @@ var NavBarSection = function NavBarSection(_ref) {
67
67
  var childrenItems = (0, _filter["default"])(items).call(items, function (item) {
68
68
  return item.children;
69
69
  });
70
- return (0, _react2.jsx)(_react["default"].Fragment, null, title && (0, _react2.jsx)(_.Text, {
71
- variant: "text.navBarSubtitle"
70
+ return (0, _react2.jsx)(_react["default"].Fragment, null, hasSeparator && (0, _react2.jsx)(_.Separator, {
71
+ variant: "separator.navBarSeparator"
72
+ }), title && (0, _react2.jsx)(_.Text, {
73
+ variant: "text.navBarSubtitle",
74
+ mt: hasSeparator ? '0' : undefined
72
75
  }, title), (0, _react2.jsx)("ul", (0, _extends2["default"])({
73
76
  ref: ref,
74
77
  style: {
@@ -83,16 +86,6 @@ var NavBarSection = function NavBarSection(_ref) {
83
86
  key: item.key,
84
87
  item: item
85
88
  }));
86
- })), hasSeparator && (0, _react2.jsx)(_.Box, {
87
- sx: {
88
- pl: '15px',
89
- pr: '15px',
90
- my: '10px',
91
- mt: '15px',
92
- mb: '15px'
93
- }
94
- }, (0, _react2.jsx)(_.Separator, {
95
- variant: "separator.navBarSeparator"
96
89
  })));
97
90
  };
98
91
 
@@ -57,6 +57,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
57
57
  var _default = {
58
58
  title: 'Form/PasswordField',
59
59
  component: _["default"],
60
+ parameters: {
61
+ docs: {
62
+ source: {
63
+ type: 'code'
64
+ }
65
+ }
66
+ },
60
67
  argTypes: _objectSpread({
61
68
  status: {
62
69
  control: {
@@ -59,6 +59,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
59
59
  var _default = {
60
60
  title: 'Form/SearchField',
61
61
  component: _.SearchField,
62
+ parameters: {
63
+ docs: {
64
+ source: {
65
+ type: 'code'
66
+ }
67
+ }
68
+ },
62
69
  argTypes: _objectSpread({
63
70
  label: {
64
71
  control: {
@@ -57,6 +57,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
57
57
  var _default = {
58
58
  title: 'Form/SwitchField',
59
59
  component: _["default"],
60
+ parameters: {
61
+ docs: {
62
+ source: {
63
+ type: 'code'
64
+ }
65
+ }
66
+ },
60
67
  argTypes: _objectSpread({
61
68
  label: {
62
69
  control: {
@@ -63,6 +63,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
63
63
  var _default = {
64
64
  title: 'Form/TextAreaField',
65
65
  component: _["default"],
66
+ parameters: {
67
+ docs: {
68
+ source: {
69
+ type: 'code'
70
+ }
71
+ }
72
+ },
66
73
  argTypes: _objectSpread({
67
74
  label: {
68
75
  control: {
@@ -71,6 +71,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
71
71
  var _default = {
72
72
  title: 'Form/TextField',
73
73
  component: _["default"],
74
+ parameters: {
75
+ docs: {
76
+ source: {
77
+ type: 'code'
78
+ }
79
+ }
80
+ },
74
81
  argTypes: _objectSpread({
75
82
  labelMode: {
76
83
  control: {
@@ -43,7 +43,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
43
43
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
44
44
 
45
45
  var _default = {
46
- title: 'Recipes/Date Picker'
46
+ title: 'Recipes/Date Picker',
47
+ parameters: {
48
+ docs: {
49
+ source: {
50
+ type: 'code'
51
+ }
52
+ }
53
+ }
47
54
  };
48
55
  exports["default"] = _default;
49
56
  var sx = {
@@ -379,6 +379,7 @@ var Default = function Default() {
379
379
  title: "Profile"
380
380
  }, selectedItemId >= 0 && (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.IconButton, {
381
381
  variant: "inverted",
382
+ "aria-label": "pencil icon button",
382
383
  sx: sx.iconButton
383
384
  }, (0, _react2.jsx)(_PencilIcon["default"], {
384
385
  size: 20
@@ -51,6 +51,13 @@ var _default = {
51
51
  },
52
52
  defaultValue: 'A secret piece of text'
53
53
  }
54
+ },
55
+ parameters: {
56
+ docs: {
57
+ source: {
58
+ type: 'code'
59
+ }
60
+ }
54
61
  }
55
62
  };
56
63
  exports["default"] = _default;
@@ -87,16 +87,15 @@ var navItemButton = {
87
87
  cursor: 'pointer',
88
88
  borderRadius: 0,
89
89
  backgroundColor: 'transparent',
90
- paddingTop: '5px',
91
- paddingBottom: '5px',
90
+ paddingTop: 'sm',
91
+ paddingBottom: 'sm',
92
92
  display: 'block',
93
- color: 'neutral.95',
94
- fontSize: 'sm',
95
- fontWeight: 1,
93
+ color: 'neutral.90',
94
+ fontSize: 'md',
95
+ fontWeight: 0,
96
96
  flexGrow: '1',
97
97
  width: '100%',
98
98
  textAlign: 'left',
99
- lineHeight: '16px',
100
99
  whiteSpace: 'break-spaces',
101
100
  overflowWrap: 'break-word',
102
101
  maxWidth: '100%',
@@ -445,9 +444,12 @@ var chipDeleteStandard = {
445
444
  };
446
445
 
447
446
  var chipDeleteButton = _objectSpread(_objectSpread({}, chipDeleteStandard), {}, {
448
- '&.is-focused, &.is-hovered': _objectSpread({
447
+ '&.is-focused': _objectSpread({
449
448
  bg: 'accent.40'
450
449
  }, focusWithCroppedOutline),
450
+ '&.is-hovered': {
451
+ bg: 'accent.40'
452
+ },
451
453
  '&.is-pressed': {
452
454
  bg: 'accent.20',
453
455
  borderColor: 'accent.20'
@@ -46,18 +46,17 @@ var itemHeaderContainer = {
46
46
  flexGrow: 1,
47
47
  alignItems: 'center',
48
48
  maxWidth: '230px',
49
- padding: '10px 15px 10px 15px',
49
+ py: 'sm',
50
+ px: 'md',
50
51
  cursor: 'pointer',
51
52
  minHeight: '40px',
52
- fontWeight: 0,
53
- fontSize: '16px',
54
53
  '&.is-selected': {
55
54
  backgroundColor: 'accent.5',
56
55
  boxShadow: 'inset 2px 0 0 0 white'
57
56
  }
58
57
  };
59
58
  var sectionContainer = {
60
- pt: '10px',
59
+ pt: 'sm',
61
60
  height: '100%',
62
61
  maxHeight: '100%',
63
62
  overflowY: 'auto'
@@ -71,7 +70,8 @@ var navItem = {
71
70
  cursor: 'pointer',
72
71
  minHeight: '40px',
73
72
  lineHeight: '30px',
74
- padding: '10px 15px 10px 15px',
73
+ py: 'sm',
74
+ px: 'md',
75
75
  outline: 'none',
76
76
  display: 'flex',
77
77
  justifyContent: 'flex-start',
@@ -81,7 +81,6 @@ var navItem = {
81
81
  color: 'neutral.95',
82
82
  flexGrow: 1,
83
83
  fontWeight: 0,
84
- fontSize: '16px',
85
84
  '&.is-focused': {
86
85
  outline: '1px solid',
87
86
  outlineColor: 'focus'