@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.
- package/CHANGELOG.md +17 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +2 -1
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +0 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +7 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +7 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +7 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +8 -1
- package/lib/cjs/components/IconButton/IconButton.js +3 -1
- package/lib/cjs/components/ListBox/ListBox.test.js +18 -0
- package/lib/cjs/components/ListBox/Option.js +11 -2
- package/lib/cjs/components/ListItem/ListItem.stories.js +8 -1
- package/lib/cjs/components/ListView/ListView.stories.js +7 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +4 -4
- package/lib/cjs/components/NavBar/NavBar.stories.js +7 -8
- package/lib/cjs/components/NavBarSection/NavBarItem.js +6 -5
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +7 -9
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +2 -1
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +6 -5
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +2 -1
- package/lib/cjs/components/NavBarSection/NavBarSection.js +5 -12
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +7 -0
- package/lib/cjs/components/SearchField/SearchField.stories.js +7 -0
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +7 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +7 -0
- package/lib/cjs/components/TextField/TextField.stories.js +7 -0
- package/lib/cjs/recipes/DatePicker.stories.js +8 -1
- package/lib/cjs/recipes/ListAndPanel.stories.js +1 -0
- package/lib/cjs/recipes/MaskedValue.stories.js +7 -0
- package/lib/cjs/styles/variants/buttons.js +9 -7
- package/lib/cjs/styles/variants/navBar.js +5 -6
- package/lib/cjs/styles/variants/separator.js +7 -8
- package/lib/cjs/styles/variants/text.js +9 -6
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +2 -1
- package/lib/components/AccordionGridItem/AccordionGridItem.js +0 -1
- package/lib/components/CheckboxField/CheckboxField.stories.js +7 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +7 -0
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +7 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +8 -1
- package/lib/components/IconButton/IconButton.js +3 -1
- package/lib/components/ListBox/ListBox.test.js +11 -0
- package/lib/components/ListBox/Option.js +11 -2
- package/lib/components/ListItem/ListItem.stories.js +8 -1
- package/lib/components/ListView/ListView.stories.js +7 -0
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +4 -4
- package/lib/components/NavBar/NavBar.stories.js +7 -8
- package/lib/components/NavBarSection/NavBarItem.js +6 -5
- package/lib/components/NavBarSection/NavBarItemBody.js +7 -9
- package/lib/components/NavBarSection/NavBarItemButton.js +2 -1
- package/lib/components/NavBarSection/NavBarItemHeader.js +6 -5
- package/lib/components/NavBarSection/NavBarItemLink.js +2 -1
- package/lib/components/NavBarSection/NavBarSection.js +6 -13
- package/lib/components/PasswordField/PasswordField.stories.js +7 -0
- package/lib/components/SearchField/SearchField.stories.js +7 -0
- package/lib/components/SwitchField/SwitchField.stories.js +7 -0
- package/lib/components/TextAreaField/TextAreaField.stories.js +7 -0
- package/lib/components/TextField/TextField.stories.js +7 -0
- package/lib/recipes/DatePicker.stories.js +8 -1
- package/lib/recipes/ListAndPanel.stories.js +1 -0
- package/lib/recipes/MaskedValue.stories.js +7 -0
- package/lib/styles/variants/buttons.js +9 -7
- package/lib/styles/variants/navBar.js +5 -6
- package/lib/styles/variants/separator.js +7 -8
- package/lib/styles/variants/text.js +9 -6
- package/package.json +1 -1
- package/NOTICE.html +0 -4707
@@ -35,6 +35,7 @@ var base = {
|
|
35
35
|
width: '100%',
|
36
36
|
height: '1px',
|
37
37
|
my: '5px',
|
38
|
+
flexShrink: 0,
|
38
39
|
'&.is-vertical': {
|
39
40
|
width: '1px',
|
40
41
|
height: '100%',
|
@@ -43,16 +44,14 @@ var base = {
|
|
43
44
|
};
|
44
45
|
|
45
46
|
var navBarSeparator = _objectSpread(_objectSpread({}, base), {}, {
|
46
|
-
width: '
|
47
|
-
|
48
|
-
|
47
|
+
width: 'auto',
|
48
|
+
my: 'md',
|
49
|
+
mx: 'md',
|
50
|
+
backgroundColor: 'neutral.60'
|
49
51
|
});
|
50
52
|
|
51
|
-
var navBarSubtitleSeparator = _objectSpread(_objectSpread({},
|
52
|
-
|
53
|
-
ml: '45px',
|
54
|
-
width: 'calc(100% - 60px)',
|
55
|
-
backgroundColor: 'neutral.60'
|
53
|
+
var navBarSubtitleSeparator = _objectSpread(_objectSpread({}, navBarSeparator), {}, {
|
54
|
+
ml: '45px'
|
56
55
|
});
|
57
56
|
|
58
57
|
var _default = {
|
@@ -177,20 +177,23 @@ var environmentBreadcrumb = _objectSpread(_objectSpread({}, base), {}, {
|
|
177
177
|
|
178
178
|
var navBarSubtitle = {
|
179
179
|
ml: 'md',
|
180
|
-
|
181
|
-
fontWeight:
|
182
|
-
fontSize: '
|
180
|
+
my: 'sm',
|
181
|
+
fontWeight: 1,
|
182
|
+
fontSize: 'sm',
|
183
183
|
color: 'accent.80',
|
184
184
|
zIndex: '100'
|
185
185
|
};
|
186
186
|
|
187
187
|
var navBarHeaderText = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
188
188
|
whiteSpace: 'break-spaces',
|
189
|
-
lineHeight:
|
190
|
-
fontSize: '
|
189
|
+
lineHeight: 1,
|
190
|
+
fontSize: 'md',
|
191
191
|
fontWeight: 1,
|
192
192
|
maxWidth: '150px',
|
193
|
-
color: '
|
193
|
+
color: 'neutral.95',
|
194
|
+
'.is-selected &': {
|
195
|
+
color: 'white'
|
196
|
+
}
|
194
197
|
});
|
195
198
|
|
196
199
|
var collapsiblePanellItem = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
@@ -130,7 +130,8 @@ var AccordionGridGroup = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
130
130
|
keyboardDelegate: keyboardDelegate
|
131
131
|
}
|
132
132
|
}, ___EmotionJSX(Box, _extends({}, mergeProps(gridProps, containerProps), {
|
133
|
-
ref: accordionGridRef
|
133
|
+
ref: accordionGridRef,
|
134
|
+
role: "treegrid"
|
134
135
|
}), _mapInstanceProperty(_context2 = _Array$from(state.collection)).call(_context2, function (item) {
|
135
136
|
return ___EmotionJSX(AccordionGridItem, _extends({
|
136
137
|
key: item.key,
|
@@ -27,6 +27,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
27
27
|
export default {
|
28
28
|
title: 'Form/CheckboxField',
|
29
29
|
component: CheckboxField,
|
30
|
+
parameters: {
|
31
|
+
docs: {
|
32
|
+
source: {
|
33
|
+
type: 'code'
|
34
|
+
}
|
35
|
+
}
|
36
|
+
},
|
30
37
|
argTypes: _objectSpread({
|
31
38
|
label: {
|
32
39
|
control: {
|
@@ -31,6 +31,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
31
31
|
export default {
|
32
32
|
title: 'Components/CollapsiblePanel',
|
33
33
|
component: CollapsiblePanel,
|
34
|
+
parameters: {
|
35
|
+
docs: {
|
36
|
+
source: {
|
37
|
+
type: 'code'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
},
|
34
41
|
argTypes: {
|
35
42
|
listTitle: {
|
36
43
|
defaultValue: 'Selected Groups'
|
@@ -25,7 +25,14 @@ import { Item, Section, Chip, Box, Text } from '../../index';
|
|
25
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
26
26
|
export default {
|
27
27
|
title: 'Components/EnvironmentBreadcrumb',
|
28
|
-
component: EnvironmentBreadcrumb
|
28
|
+
component: EnvironmentBreadcrumb,
|
29
|
+
parameters: {
|
30
|
+
docs: {
|
31
|
+
source: {
|
32
|
+
type: 'code'
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
29
36
|
};
|
30
37
|
var defaultEnvironments = [{
|
31
38
|
name: 'Default'
|
@@ -90,7 +90,9 @@ var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
90
90
|
fill: chipBg
|
91
91
|
}
|
92
92
|
}
|
93
|
-
}, mergeProps(buttonProps, others, hoverProps, focusProps)
|
93
|
+
}, mergeProps(buttonProps, others, hoverProps, focusProps), {
|
94
|
+
onPointerOver: hoverProps.onPointerEnter
|
95
|
+
}), children);
|
94
96
|
|
95
97
|
if (title) {
|
96
98
|
return ___EmotionJSX(TooltipTrigger, {
|
@@ -6,6 +6,7 @@ import { axe } from 'jest-axe';
|
|
6
6
|
import { useListState } from '@react-stately/list';
|
7
7
|
import { render, screen } from '@testing-library/react';
|
8
8
|
import { Section } from '@react-stately/collections';
|
9
|
+
import userEvent from '@testing-library/user-event';
|
9
10
|
import ListBox from '.';
|
10
11
|
import { Item } from '../../index';
|
11
12
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -145,4 +146,14 @@ test('renders sections and items within section', function () {
|
|
145
146
|
expect(section).toBeInTheDocument();
|
146
147
|
var options = screen.getAllByRole('option');
|
147
148
|
expect(options.length).toBe(itemsWithSections[0].options.length);
|
149
|
+
});
|
150
|
+
test('should have is-focused class when hover', function () {
|
151
|
+
getSectionsComponent();
|
152
|
+
var options = screen.getAllByRole('option');
|
153
|
+
expect(options[0]).not.toHaveClass('is-focused');
|
154
|
+
userEvent.hover(options[0]);
|
155
|
+
expect(options[0]).toHaveClass('is-focused');
|
156
|
+
userEvent.hover(options[1]);
|
157
|
+
expect(options[0]).not.toHaveClass('is-focused');
|
158
|
+
expect(options[1]).toHaveClass('is-focused');
|
148
159
|
});
|
@@ -58,9 +58,17 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
58
58
|
isSelected = _useOption.isSelected,
|
59
59
|
isFocused = _useOption.isFocused;
|
60
60
|
|
61
|
+
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;
|
62
|
+
|
63
|
+
var setFocusOnHover = function setFocusOnHover() {
|
64
|
+
if (!focused) {
|
65
|
+
state.selectionManager.setFocusedKey(item.key);
|
66
|
+
}
|
67
|
+
};
|
68
|
+
|
61
69
|
var _useStatusClasses = useStatusClasses(null, {
|
62
70
|
isDisabled: isDisabled || isSeparator,
|
63
|
-
isFocused:
|
71
|
+
isFocused: focused,
|
64
72
|
isSelected: isSelected
|
65
73
|
}),
|
66
74
|
classNames = _useStatusClasses.classNames;
|
@@ -77,7 +85,8 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
77
85
|
ref: optionRef,
|
78
86
|
variant: "listBox.option",
|
79
87
|
"data-id": dataId,
|
80
|
-
className: classNames
|
88
|
+
className: classNames,
|
89
|
+
onPointerOver: setFocusOnHover
|
81
90
|
}, optionProps, others), isSelected && ___EmotionJSX(Icon, {
|
82
91
|
icon: CircleSmallIcon
|
83
92
|
}), rendered);
|
@@ -10,7 +10,14 @@ import Separator from '../Separator';
|
|
10
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
11
11
|
export default {
|
12
12
|
title: 'Components/ListItem',
|
13
|
-
component: ListItem
|
13
|
+
component: ListItem,
|
14
|
+
parameters: {
|
15
|
+
docs: {
|
16
|
+
source: {
|
17
|
+
type: 'code'
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
14
21
|
};
|
15
22
|
export var Default = function Default(args) {
|
16
23
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Separator, {
|
@@ -24,6 +24,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export default {
|
25
25
|
title: 'Components/ListView',
|
26
26
|
component: ListView,
|
27
|
+
parameters: {
|
28
|
+
docs: {
|
29
|
+
source: {
|
30
|
+
type: 'code'
|
31
|
+
}
|
32
|
+
}
|
33
|
+
},
|
27
34
|
argTypes: {
|
28
35
|
loadingState: {
|
29
36
|
control: {
|
@@ -152,26 +152,26 @@ var HTMLIcon = function HTMLIcon(props) {
|
|
152
152
|
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",
|
153
153
|
fill: "#4660A2"
|
154
154
|
}))), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
|
155
|
-
|
155
|
+
className: "clip0_709_18936"
|
156
156
|
}, ___EmotionJSX("rect", {
|
157
157
|
width: "16",
|
158
158
|
height: "16",
|
159
159
|
fill: "white"
|
160
160
|
})), ___EmotionJSX("clipPath", {
|
161
|
-
|
161
|
+
className: "clip1_709_18936"
|
162
162
|
}, ___EmotionJSX("rect", {
|
163
163
|
width: "10",
|
164
164
|
height: "10",
|
165
165
|
fill: "white",
|
166
166
|
transform: "translate(3 3)"
|
167
167
|
})), ___EmotionJSX("clipPath", {
|
168
|
-
|
168
|
+
className: "clip2_709_18936"
|
169
169
|
}, ___EmotionJSX("rect", {
|
170
170
|
width: "16",
|
171
171
|
height: "16",
|
172
172
|
fill: "white"
|
173
173
|
})), ___EmotionJSX("clipPath", {
|
174
|
-
|
174
|
+
className: "clip3_709_18936"
|
175
175
|
}, ___EmotionJSX("rect", {
|
176
176
|
width: "10",
|
177
177
|
height: "10",
|
@@ -254,7 +254,10 @@ var data = [{
|
|
254
254
|
}, "Notifications"), ___EmotionJSX(NavBarItemLink, {
|
255
255
|
key: "Experiences Vanity Domains",
|
256
256
|
id: "Experiences Vanity Domains",
|
257
|
-
href: "https://pingidentity.com/"
|
257
|
+
href: "https://pingidentity.com/",
|
258
|
+
onClick: function onClick(e) {
|
259
|
+
return e.preventDefault();
|
260
|
+
}
|
258
261
|
}, "Vanity Domains"), ___EmotionJSX(NavBarItemButton, {
|
259
262
|
key: "Experiences Sender",
|
260
263
|
id: "Experiences Sender"
|
@@ -269,7 +272,6 @@ var secondData = [{
|
|
269
272
|
id: "MFA Button Users",
|
270
273
|
key: "MFA Button Users"
|
271
274
|
}, "Users"), {
|
272
|
-
hasSeparator: false,
|
273
275
|
subTitle: 'PingOne Services'
|
274
276
|
}, ___EmotionJSX(NavBarItemButton, {
|
275
277
|
key: "MFA Button Group",
|
@@ -342,8 +344,7 @@ export var Default = function Default() {
|
|
342
344
|
href: "https://pingidentity.com",
|
343
345
|
target: "_blank"
|
344
346
|
}, logo)), ___EmotionJSX(Separator, {
|
345
|
-
|
346
|
-
marginBottom: "0px",
|
347
|
+
m: 0,
|
347
348
|
backgroundColor: "neutral.60"
|
348
349
|
}), ___EmotionJSX(Box, {
|
349
350
|
variant: "navBar.sectionContainer",
|
@@ -356,7 +357,6 @@ export var Default = function Default() {
|
|
356
357
|
text: "Overview"
|
357
358
|
}), ___EmotionJSX(NavBarSection, {
|
358
359
|
items: data,
|
359
|
-
hasSeparator: true,
|
360
360
|
"data-id": "nav-bar-section"
|
361
361
|
}), ___EmotionJSX(NavBarSection, {
|
362
362
|
items: secondData,
|
@@ -365,6 +365,7 @@ export var Default = function Default() {
|
|
365
365
|
"data-id": "second-nav-bar-section"
|
366
366
|
}), ___EmotionJSX(NavBarSection, {
|
367
367
|
items: thirdData,
|
368
|
+
hasSeparator: true,
|
368
369
|
"data-id": "third-nav-bar-section"
|
369
370
|
})));
|
370
371
|
};
|
@@ -400,8 +401,7 @@ export var Controlled = function Controlled() {
|
|
400
401
|
href: "https://pingidentity.com",
|
401
402
|
target: "_blank"
|
402
403
|
}, logo)), ___EmotionJSX(Separator, {
|
403
|
-
|
404
|
-
marginBottom: "0px",
|
404
|
+
m: "0",
|
405
405
|
backgroundColor: "neutral.60",
|
406
406
|
key: "top-separator"
|
407
407
|
}), ___EmotionJSX(Box, {
|
@@ -416,7 +416,6 @@ export var Controlled = function Controlled() {
|
|
416
416
|
text: "Overview"
|
417
417
|
}), ___EmotionJSX(NavBarSection, {
|
418
418
|
items: data,
|
419
|
-
hasSeparator: true,
|
420
419
|
"data-id": "first-nav-bar-section"
|
421
420
|
}), ___EmotionJSX(NavBarSection, {
|
422
421
|
items: secondData,
|
@@ -64,6 +64,7 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
64
64
|
}),
|
65
65
|
classNames = _useStatusClasses.classNames;
|
66
66
|
|
67
|
+
var color = isSelected ? 'white' : 'neutral.95';
|
67
68
|
return ___EmotionJSX(Box, _extends({
|
68
69
|
id: key,
|
69
70
|
variant: "navBar.navItem",
|
@@ -73,7 +74,7 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
73
74
|
ref: navItemRef
|
74
75
|
}, mergedProps, {
|
75
76
|
sx: {
|
76
|
-
|
77
|
+
flexGrow: 0
|
77
78
|
}
|
78
79
|
}), ___EmotionJSX(Box, {
|
79
80
|
isRow: true,
|
@@ -83,11 +84,11 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
83
84
|
}, icon && ___EmotionJSX(Icon, {
|
84
85
|
icon: icon,
|
85
86
|
"aria-label": text,
|
86
|
-
size:
|
87
|
+
size: "sm",
|
87
88
|
sx: {
|
88
|
-
mr: '
|
89
|
-
color:
|
90
|
-
fill:
|
89
|
+
mr: 'sm',
|
90
|
+
color: color,
|
91
|
+
fill: color
|
91
92
|
}
|
92
93
|
}), ___EmotionJSX(Text, {
|
93
94
|
variant: "navBarHeaderText"
|
@@ -13,19 +13,17 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
|
|
13
13
|
onKeyDown = _ref.onKeyDown;
|
14
14
|
|
15
15
|
var renderSubTitle = function renderSubTitle(child) {
|
16
|
-
var hasSeparator = child.hasSeparator,
|
16
|
+
var _child$hasSeparator = child.hasSeparator,
|
17
|
+
hasSeparator = _child$hasSeparator === void 0 ? true : _child$hasSeparator,
|
17
18
|
subTitle = child.subTitle;
|
18
19
|
return ___EmotionJSX(Fragment, {
|
19
20
|
key: "fragment".concat(subTitle)
|
20
|
-
},
|
21
|
+
}, hasSeparator && ___EmotionJSX(Separator, {
|
21
22
|
variant: "separator.navBarSubtitleSeparator"
|
22
23
|
}), ___EmotionJSX(Text, {
|
23
24
|
key: "text".concat(subTitle),
|
24
|
-
|
25
|
-
|
26
|
-
ml: '45px',
|
27
|
-
mt: 'md'
|
28
|
-
},
|
25
|
+
ml: "45px",
|
26
|
+
mt: hasSeparator ? '0' : undefined,
|
29
27
|
variant: "text.navBarSubtitle"
|
30
28
|
}, subTitle));
|
31
29
|
};
|
@@ -39,8 +37,8 @@ var NavBarItemBody = function NavBarItemBody(_ref) {
|
|
39
37
|
|
40
38
|
return ___EmotionJSX(Box, {
|
41
39
|
sx: {
|
42
|
-
alignItems: '
|
43
|
-
mb: '
|
40
|
+
alignItems: 'stretch',
|
41
|
+
mb: 'md'
|
44
42
|
}
|
45
43
|
}, _mapInstanceProperty(_context = item.children).call(_context, renderChild));
|
46
44
|
};
|
@@ -47,7 +47,8 @@ var NavBarItemButton = function NavBarItemButton(props) {
|
|
47
47
|
id: key,
|
48
48
|
variant: "navItemButton",
|
49
49
|
onPress: onNavPress,
|
50
|
-
className: classNames
|
50
|
+
className: classNames,
|
51
|
+
color: isSelected ? 'white' : undefined
|
51
52
|
}, others, {
|
52
53
|
sx: _objectSpread({
|
53
54
|
paddingLeft: '45px',
|
@@ -44,6 +44,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
44
44
|
}),
|
45
45
|
classNames = _useStatusClasses.classNames;
|
46
46
|
|
47
|
+
var color = childSelected && !isExpanded ? 'white' : 'neutral.95';
|
47
48
|
return ___EmotionJSX(Box, {
|
48
49
|
variant: "navBar.itemHeaderContainer",
|
49
50
|
className: classNames,
|
@@ -54,8 +55,8 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
54
55
|
size: "sm",
|
55
56
|
sx: {
|
56
57
|
mr: '10px',
|
57
|
-
color:
|
58
|
-
fill:
|
58
|
+
color: color,
|
59
|
+
fill: color
|
59
60
|
},
|
60
61
|
"aria-hidden": "true"
|
61
62
|
}), ___EmotionJSX(Text, {
|
@@ -68,10 +69,10 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
68
69
|
}
|
69
70
|
}, ___EmotionJSX(Icon, {
|
70
71
|
icon: isExpanded ? MenuUp : MenuDown,
|
71
|
-
size: "
|
72
|
+
size: "sm",
|
72
73
|
sx: {
|
73
|
-
color:
|
74
|
-
fill:
|
74
|
+
color: color,
|
75
|
+
fill: color
|
75
76
|
},
|
76
77
|
"aria-label": isExpanded ? 'Menu up' : 'Menu down'
|
77
78
|
})));
|
@@ -46,7 +46,8 @@ var NavBarItemLink = function NavBarItemLink(props) {
|
|
46
46
|
id: key,
|
47
47
|
variant: "buttons.navItemButton",
|
48
48
|
className: classNames,
|
49
|
-
onPress: onNavPress
|
49
|
+
onPress: onNavPress,
|
50
|
+
color: isSelected ? 'white' : undefined
|
50
51
|
}, others, {
|
51
52
|
sx: _objectSpread({
|
52
53
|
paddingLeft: '45px',
|
@@ -10,7 +10,7 @@ import React, { useRef } from 'react';
|
|
10
10
|
import { useFocusManager } from '@react-aria/focus';
|
11
11
|
import { useKeyboard } from '@react-aria/interactions';
|
12
12
|
import PropTypes from 'prop-types';
|
13
|
-
import {
|
13
|
+
import { Button, Separator, Text } from '../../';
|
14
14
|
import { useNavBarContext } from '../../context/NavBarContext';
|
15
15
|
import NavBarItemBody from './NavBarItemBody';
|
16
16
|
import NavBarItemHeader from './NavBarItemHeader';
|
@@ -34,8 +34,11 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
34
34
|
return item.children;
|
35
35
|
});
|
36
36
|
|
37
|
-
return ___EmotionJSX(React.Fragment, null,
|
38
|
-
variant: "
|
37
|
+
return ___EmotionJSX(React.Fragment, null, hasSeparator && ___EmotionJSX(Separator, {
|
38
|
+
variant: "separator.navBarSeparator"
|
39
|
+
}), title && ___EmotionJSX(Text, {
|
40
|
+
variant: "text.navBarSubtitle",
|
41
|
+
mt: hasSeparator ? '0' : undefined
|
39
42
|
}, title), ___EmotionJSX("ul", _extends({
|
40
43
|
ref: ref,
|
41
44
|
style: {
|
@@ -50,16 +53,6 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
50
53
|
key: item.key,
|
51
54
|
item: item
|
52
55
|
}));
|
53
|
-
})), hasSeparator && ___EmotionJSX(Box, {
|
54
|
-
sx: {
|
55
|
-
pl: '15px',
|
56
|
-
pr: '15px',
|
57
|
-
my: '10px',
|
58
|
-
mt: '15px',
|
59
|
-
mb: '15px'
|
60
|
-
}
|
61
|
-
}, ___EmotionJSX(Separator, {
|
62
|
-
variant: "separator.navBarSeparator"
|
63
56
|
})));
|
64
57
|
};
|
65
58
|
|
@@ -23,6 +23,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export default {
|
24
24
|
title: 'Form/PasswordField',
|
25
25
|
component: PasswordField,
|
26
|
+
parameters: {
|
27
|
+
docs: {
|
28
|
+
source: {
|
29
|
+
type: 'code'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
26
33
|
argTypes: _objectSpread({
|
27
34
|
status: {
|
28
35
|
control: {
|
@@ -24,6 +24,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export default {
|
25
25
|
title: 'Form/SearchField',
|
26
26
|
component: SearchField,
|
27
|
+
parameters: {
|
28
|
+
docs: {
|
29
|
+
source: {
|
30
|
+
type: 'code'
|
31
|
+
}
|
32
|
+
}
|
33
|
+
},
|
27
34
|
argTypes: _objectSpread({
|
28
35
|
label: {
|
29
36
|
control: {
|
@@ -23,6 +23,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export default {
|
24
24
|
title: 'Form/SwitchField',
|
25
25
|
component: SwitchField,
|
26
|
+
parameters: {
|
27
|
+
docs: {
|
28
|
+
source: {
|
29
|
+
type: 'code'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
26
33
|
argTypes: _objectSpread({
|
27
34
|
label: {
|
28
35
|
control: {
|
@@ -26,6 +26,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
26
26
|
export default {
|
27
27
|
title: 'Form/TextAreaField',
|
28
28
|
component: TextAreaField,
|
29
|
+
parameters: {
|
30
|
+
docs: {
|
31
|
+
source: {
|
32
|
+
type: 'code'
|
33
|
+
}
|
34
|
+
}
|
35
|
+
},
|
29
36
|
argTypes: _objectSpread({
|
30
37
|
label: {
|
31
38
|
control: {
|
@@ -30,6 +30,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
30
30
|
export default {
|
31
31
|
title: 'Form/TextField',
|
32
32
|
component: TextField,
|
33
|
+
parameters: {
|
34
|
+
docs: {
|
35
|
+
source: {
|
36
|
+
type: 'code'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
},
|
33
40
|
argTypes: _objectSpread({
|
34
41
|
labelMode: {
|
35
42
|
control: {
|
@@ -10,7 +10,14 @@ import statuses from '../utils/devUtils/constants/statuses';
|
|
10
10
|
import PopoverContainer from '../components/PopoverContainer';
|
11
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
12
12
|
export default {
|
13
|
-
title: 'Recipes/Date Picker'
|
13
|
+
title: 'Recipes/Date Picker',
|
14
|
+
parameters: {
|
15
|
+
docs: {
|
16
|
+
source: {
|
17
|
+
type: 'code'
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
14
21
|
};
|
15
22
|
var sx = {
|
16
23
|
calendarIcon: {
|
@@ -342,6 +342,7 @@ export var Default = function Default() {
|
|
342
342
|
title: "Profile"
|
343
343
|
}, selectedItemId >= 0 && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButton, {
|
344
344
|
variant: "inverted",
|
345
|
+
"aria-label": "pencil icon button",
|
345
346
|
sx: sx.iconButton
|
346
347
|
}, ___EmotionJSX(PencilIcon, {
|
347
348
|
size: 20
|
@@ -65,16 +65,15 @@ var navItemButton = {
|
|
65
65
|
cursor: 'pointer',
|
66
66
|
borderRadius: 0,
|
67
67
|
backgroundColor: 'transparent',
|
68
|
-
paddingTop: '
|
69
|
-
paddingBottom: '
|
68
|
+
paddingTop: 'sm',
|
69
|
+
paddingBottom: 'sm',
|
70
70
|
display: 'block',
|
71
|
-
color: 'neutral.
|
72
|
-
fontSize: '
|
73
|
-
fontWeight:
|
71
|
+
color: 'neutral.90',
|
72
|
+
fontSize: 'md',
|
73
|
+
fontWeight: 0,
|
74
74
|
flexGrow: '1',
|
75
75
|
width: '100%',
|
76
76
|
textAlign: 'left',
|
77
|
-
lineHeight: '16px',
|
78
77
|
whiteSpace: 'break-spaces',
|
79
78
|
overflowWrap: 'break-word',
|
80
79
|
maxWidth: '100%',
|
@@ -423,9 +422,12 @@ var chipDeleteStandard = {
|
|
423
422
|
};
|
424
423
|
|
425
424
|
var chipDeleteButton = _objectSpread(_objectSpread({}, chipDeleteStandard), {}, {
|
426
|
-
'&.is-focused
|
425
|
+
'&.is-focused': _objectSpread({
|
427
426
|
bg: 'accent.40'
|
428
427
|
}, focusWithCroppedOutline),
|
428
|
+
'&.is-hovered': {
|
429
|
+
bg: 'accent.40'
|
430
|
+
},
|
429
431
|
'&.is-pressed': {
|
430
432
|
bg: 'accent.20',
|
431
433
|
borderColor: 'accent.20'
|