@pingux/astro 2.0.0-alpha.5 → 2.0.0-alpha.7
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 +24 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +51 -20
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +16 -15
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +24 -24
- package/lib/cjs/components/Avatar/Avatar.stories.js +3 -3
- package/lib/cjs/components/Badge/Badge.js +2 -2
- package/lib/cjs/components/Badge/Badge.stories.js +21 -24
- package/lib/cjs/components/Badge/Badge.styles.js +8 -18
- package/lib/cjs/components/Badge/Badge.test.js +3 -3
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +5 -5
- package/lib/cjs/components/Button/Button.stories.js +15 -3
- package/lib/cjs/components/Button/Buttons.styles.js +9 -1
- package/lib/cjs/components/Callout/Callout.stories.js +9 -9
- package/lib/cjs/components/Card/Card.js +1 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +11 -14
- package/lib/cjs/components/CodeView/CodeView.stories.js +10 -19
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +15 -16
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.styles.js +6 -5
- package/lib/cjs/components/ColorField/ColorField.js +1 -0
- package/lib/cjs/components/ColorField/ColorField.stories.js +3 -3
- package/lib/cjs/components/ColorField/ColorField.test.js +15 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +43 -44
- package/lib/cjs/components/CopyText/CopyButton.js +2 -1
- package/lib/cjs/components/CopyText/CopyText.stories.js +9 -11
- package/lib/cjs/components/CopyText/CopyText.styles.js +7 -5
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +12 -13
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +6 -6
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +10 -11
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +6 -7
- package/lib/cjs/components/HelpHint/HelpHint.styles.js +0 -3
- package/lib/cjs/components/Icon/Icon.stories.js +1 -1
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -3
- package/lib/cjs/components/IconButton/IconButton.js +3 -3
- package/lib/cjs/components/IconButton/IconButton.styles.js +1 -1
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +4 -4
- package/lib/cjs/components/Image/Image.stories.js +9 -10
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +9 -9
- package/lib/cjs/components/Input/Input.stories.js +5 -5
- package/lib/cjs/components/Label/Label.stories.js +5 -5
- package/lib/cjs/components/Link/Link.stories.js +3 -3
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +46 -46
- package/lib/cjs/components/ListItem/ListItem.js +30 -15
- package/lib/cjs/components/ListItem/ListItem.stories.js +90 -26
- package/lib/cjs/components/ListItem/ListItem.test.js +46 -11
- package/lib/cjs/components/ListView/ListView.js +7 -1
- package/lib/cjs/components/ListView/ListView.stories.js +24 -25
- package/lib/cjs/components/ListViewItem/ListViewItem.js +4 -2
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +8 -2
- package/lib/cjs/components/Loader/Loader.stories.js +4 -4
- package/lib/cjs/components/Menu/Menu.js +16 -5
- package/lib/cjs/components/Menu/Menu.stories.js +19 -9
- package/lib/cjs/components/Messages/Messages.stories.js +27 -27
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +6 -6
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +46 -46
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +39 -39
- package/lib/cjs/components/NavBar/NavBar.stories.js +13 -2
- package/lib/cjs/components/NavBar/NavBar.test.js +9 -0
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +64 -2
- package/lib/cjs/components/NavBarSection/NavBarSection.js +20 -2
- package/lib/cjs/components/NumberField/NumberField.stories.js +14 -14
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +15 -15
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +25 -26
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +4 -4
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +19 -20
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +3 -4
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +4 -5
- package/lib/cjs/components/SearchField/SearchField.stories.js +8 -8
- package/lib/cjs/components/SelectField/SelectField.stories.js +47 -47
- package/lib/cjs/components/Separator/Separator.stories.js +6 -7
- package/lib/cjs/components/SwitchField/SwitchField.js +4 -2
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +8 -9
- package/lib/cjs/components/Table/Table.stories.js +7 -13
- package/lib/cjs/components/Tabs/Tabs.stories.js +32 -36
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +16 -17
- package/lib/cjs/components/TextField/TextField.stories.js +23 -24
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +4 -4
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +3 -5
- package/lib/cjs/{Patterns → patterns}/AttributeMappingDisplayViewPattern.stories.hidden.js +3 -3
- package/lib/cjs/{Patterns → patterns}/AttributeMappingEditViewPattern.stories.hidden.js +3 -3
- package/lib/cjs/recipes/Arrow.stories.js +4 -4
- package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +2 -2
- package/lib/cjs/recipes/CollapsiblePanel.stories.js +40 -40
- package/lib/cjs/recipes/CountryPicker.stories.js +4 -7
- package/lib/cjs/recipes/DraggableBox.stories.js +5 -7
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +1 -2
- package/lib/cjs/recipes/LinkedListView.stories.js +9 -9
- package/lib/cjs/recipes/ListAndPanel.stories.js +71 -21
- package/lib/cjs/recipes/LogoTabs.stories.js +3 -3
- package/lib/cjs/recipes/NeutralInput.stories.js +2 -2
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +6 -7
- package/lib/cjs/recipes/PanelHeader.stories.js +10 -15
- package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +2 -4
- package/lib/cjs/recipes/{SelectedFieldOverlay.story.js → SelectedFieldOverlay.stories.js} +5 -7
- package/lib/cjs/recipes/StatsCircle.stories.js +4 -5
- package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +2 -2
- package/lib/cjs/styles/colors.js +3 -1
- package/lib/cjs/styles/themes/astro-nano/astro-nano.js +17 -17
- package/lib/cjs/utils/devUtils/props/hoverProps.js +54 -0
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +44 -11
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +6 -5
- package/lib/components/ArrayField/ArrayField.stories.js +1 -1
- package/lib/components/Avatar/Avatar.stories.js +1 -1
- package/lib/components/Badge/Badge.js +2 -2
- package/lib/components/Badge/Badge.stories.js +4 -7
- package/lib/components/Badge/Badge.styles.js +7 -16
- package/lib/components/Badge/Badge.test.js +3 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +1 -1
- package/lib/components/Button/Button.stories.js +11 -1
- package/lib/components/Button/Buttons.styles.js +9 -1
- package/lib/components/Callout/Callout.stories.js +1 -1
- package/lib/components/Card/Card.js +1 -1
- package/lib/components/CheckboxField/CheckboxField.stories.js +1 -4
- package/lib/components/CodeView/CodeView.stories.js +5 -14
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +11 -12
- package/lib/components/CollapsiblePanel/CollapsiblePanel.styles.js +6 -5
- package/lib/components/ColorField/ColorField.js +1 -0
- package/lib/components/ColorField/ColorField.stories.js +1 -1
- package/lib/components/ColorField/ColorField.test.js +15 -0
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +1 -2
- package/lib/components/CopyText/CopyButton.js +2 -1
- package/lib/components/CopyText/CopyText.stories.js +1 -3
- package/lib/components/CopyText/CopyText.styles.js +7 -5
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +2 -3
- package/lib/components/FieldHelperText/FieldHelperText.stories.js +1 -1
- package/lib/components/FileInputField/FileInputField.stories.js +1 -2
- package/lib/components/HelpHint/HelpHint.stories.js +1 -2
- package/lib/components/HelpHint/HelpHint.styles.js +0 -3
- package/lib/components/Icon/Icon.stories.js +1 -1
- package/lib/components/IconBadge/IconBadge.stories.js +1 -2
- package/lib/components/IconButton/IconButton.js +3 -3
- package/lib/components/IconButton/IconButton.styles.js +2 -2
- package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +1 -1
- package/lib/components/Image/Image.stories.js +1 -2
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +1 -1
- package/lib/components/Input/Input.stories.js +1 -1
- package/lib/components/Label/Label.stories.js +1 -1
- package/lib/components/Link/Link.stories.js +1 -1
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +1 -1
- package/lib/components/ListItem/ListItem.js +30 -13
- package/lib/components/ListItem/ListItem.stories.js +68 -8
- package/lib/components/ListItem/ListItem.test.js +46 -11
- package/lib/components/ListView/ListView.js +7 -1
- package/lib/components/ListView/ListView.stories.js +1 -2
- package/lib/components/ListViewItem/ListViewItem.js +4 -2
- package/lib/components/ListViewItem/ListViewItem.styles.js +8 -2
- package/lib/components/Loader/Loader.stories.js +1 -1
- package/lib/components/Menu/Menu.js +16 -5
- package/lib/components/Menu/Menu.stories.js +15 -4
- package/lib/components/Messages/Messages.stories.js +1 -1
- package/lib/components/MultivaluesField/MultivaluesField.js +6 -6
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -8
- package/lib/components/MultivaluesField/MultivaluesField.test.js +39 -39
- package/lib/components/NavBar/NavBar.stories.js +13 -2
- package/lib/components/NavBar/NavBar.test.js +9 -0
- package/lib/components/NavBarSection/NavBarItemHeader.js +64 -2
- package/lib/components/NavBarSection/NavBarSection.js +21 -3
- package/lib/components/NumberField/NumberField.stories.js +1 -1
- package/lib/components/PasswordField/PasswordField.stories.js +1 -1
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +1 -2
- package/lib/components/RequirementsList/RequirementsList.stories.js +1 -1
- package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +1 -2
- package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +1 -2
- package/lib/components/ScrollBox/ScrollBox.stories.js +1 -2
- package/lib/components/SearchField/SearchField.stories.js +1 -1
- package/lib/components/SelectField/SelectField.stories.js +1 -1
- package/lib/components/Separator/Separator.stories.js +1 -2
- package/lib/components/SwitchField/SwitchField.js +4 -2
- package/lib/components/SwitchField/SwitchField.stories.js +1 -2
- package/lib/components/Table/Table.stories.js +1 -7
- package/lib/components/Tabs/Tabs.stories.js +1 -5
- package/lib/components/TextAreaField/TextAreaField.stories.js +1 -2
- package/lib/components/TextField/TextField.stories.js +1 -2
- package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +1 -3
- package/lib/{Patterns → patterns}/AttributeMappingDisplayViewPattern.stories.hidden.js +3 -3
- package/lib/{Patterns → patterns}/AttributeMappingEditViewPattern.stories.hidden.js +3 -3
- package/lib/recipes/Arrow.stories.js +1 -1
- package/lib/recipes/AttributeMappingReadOnlyField.stories.js +2 -2
- package/lib/recipes/CollapsiblePanel.stories.js +11 -11
- package/lib/recipes/CountryPicker.stories.js +1 -4
- package/lib/recipes/DraggableBox.stories.js +1 -3
- package/lib/recipes/FlippableCaretMenuButton.stories.js +1 -2
- package/lib/recipes/LinkedListView.stories.js +9 -9
- package/lib/recipes/ListAndPanel.stories.js +72 -22
- package/lib/recipes/LogoTabs.stories.js +1 -1
- package/lib/recipes/NeutralInput.stories.js +1 -1
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +1 -2
- package/lib/recipes/PanelHeader.stories.js +1 -6
- package/lib/recipes/RadioButtonsWithLinks.stories.js +1 -3
- package/lib/recipes/{SelectedFieldOverlay.story.js → SelectedFieldOverlay.stories.js} +1 -3
- package/lib/recipes/StatsCircle.stories.js +1 -2
- package/lib/recipes/TrialExperienceIndustryButtons.stories.js +1 -1
- package/lib/styles/colors.js +3 -1
- package/lib/styles/themes/astro-nano/astro-nano.js +17 -17
- package/lib/utils/devUtils/props/hoverProps.js +44 -0
- package/package.json +2 -2
- package/lib/cjs/components/PageHeader/PageHeader.js +0 -52
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +0 -36
- package/lib/cjs/components/PageHeader/PageHeader.test.js +0 -25
- package/lib/components/PageHeader/PageHeader.js +0 -38
- package/lib/components/PageHeader/PageHeader.stories.js +0 -26
- package/lib/components/PageHeader/PageHeader.test.js +0 -22
- /package/lib/cjs/{Patterns → patterns}/ListAndPanelPattern.stories.hidden.js +0 -0
- /package/lib/cjs/{Patterns → patterns}/MessagesPattern.stories.hidden.js +0 -0
- /package/lib/cjs/{Patterns → patterns}/SaveBarPattern.stories.hidden.js +0 -0
- /package/lib/cjs/{Patterns → patterns}/UnsavedChangesPattern.stories.hidden.js +0 -0
- /package/lib/{Patterns → patterns}/ListAndPanelPattern.stories.hidden.js +0 -0
- /package/lib/{Patterns → patterns}/MessagesPattern.stories.hidden.js +0 -0
- /package/lib/{Patterns → patterns}/SaveBarPattern.stories.hidden.js +0 -0
- /package/lib/{Patterns → patterns}/UnsavedChangesPattern.stories.hidden.js +0 -0
@@ -146,7 +146,7 @@ test('multiple selection is enabled, option disappears after selection', functio
|
|
146
146
|
secondOption.click();
|
147
147
|
expect(secondOption).not.toBeInTheDocument();
|
148
148
|
});
|
149
|
-
test('clicking an option renders
|
149
|
+
test('clicking an option renders badge with option name', function () {
|
150
150
|
getComponent();
|
151
151
|
var input = screen.getByRole('combobox');
|
152
152
|
userEvent.tab();
|
@@ -155,10 +155,10 @@ test('clicking an option renders chip with option name', function () {
|
|
155
155
|
var firstOption = options[0];
|
156
156
|
firstOption.click();
|
157
157
|
expect(firstOption).not.toBeInTheDocument();
|
158
|
-
var
|
159
|
-
expect(
|
160
|
-
var
|
161
|
-
expect(
|
158
|
+
var badge = screen.getByText(items[0].name);
|
159
|
+
expect(badge).toBeInTheDocument();
|
160
|
+
var badgeContainer = badge.parentElement;
|
161
|
+
expect(badgeContainer).toHaveAttribute('role', 'presentation');
|
162
162
|
});
|
163
163
|
test('after clicking an option, and then clicking the text input, the listbox remains open', function () {
|
164
164
|
getComponent();
|
@@ -173,7 +173,7 @@ test('after clicking an option, and then clicking the text input, the listbox re
|
|
173
173
|
userEvent.click(input);
|
174
174
|
expect(screen.queryByRole('listbox')).toBeInTheDocument();
|
175
175
|
});
|
176
|
-
test('no
|
176
|
+
test('no badges are rendered, if nothing is selected', function () {
|
177
177
|
getComponent({
|
178
178
|
isReadOnly: false
|
179
179
|
});
|
@@ -222,11 +222,11 @@ test('clicking on delete button deletes selection, and re-adds option to list',
|
|
222
222
|
var firstOption = options[0];
|
223
223
|
firstOption.click();
|
224
224
|
expect(firstOption).not.toBeInTheDocument();
|
225
|
-
var
|
226
|
-
expect(
|
227
|
-
var deleteButton =
|
225
|
+
var badge = screen.getByText(items[0].name);
|
226
|
+
expect(badge).toBeInTheDocument();
|
227
|
+
var deleteButton = badge.nextSibling;
|
228
228
|
deleteButton.click();
|
229
|
-
expect(
|
229
|
+
expect(badge).not.toBeInTheDocument();
|
230
230
|
input.blur();
|
231
231
|
input.focus();
|
232
232
|
var updatedOptions = screen.getAllByRole('option');
|
@@ -269,7 +269,7 @@ test('changing the input value opens listbox, filters options, and fires "onInpu
|
|
269
269
|
expect(onInputChange).toBeCalledTimes(value.length);
|
270
270
|
expect(onInputChange).toHaveBeenCalledWith(value);
|
271
271
|
});
|
272
|
-
test('in non-restrictive mode, a
|
272
|
+
test('in non-restrictive mode, a badge gets added if there is input, onBlur', function () {
|
273
273
|
getComponent({
|
274
274
|
mode: 'non-restrictive'
|
275
275
|
});
|
@@ -277,13 +277,13 @@ test('in non-restrictive mode, a chip gets added if there is input, onBlur', fun
|
|
277
277
|
var value = 'custom';
|
278
278
|
userEvent.type(input, value);
|
279
279
|
userEvent.tab();
|
280
|
-
var
|
281
|
-
expect(
|
282
|
-
var
|
283
|
-
expect(
|
280
|
+
var badge = screen.queryByText(value);
|
281
|
+
expect(badge).toBeInTheDocument();
|
282
|
+
var badgeContainer = badge.parentElement;
|
283
|
+
expect(badgeContainer).toHaveAttribute('role', 'presentation');
|
284
284
|
expect(input.value).toBe('');
|
285
285
|
});
|
286
|
-
test('in non-restrictive mode, a
|
286
|
+
test('in non-restrictive mode, a badge gets added if there is only one matching filtered option, onBlur', function () {
|
287
287
|
getComponent({
|
288
288
|
mode: 'non-restrictive'
|
289
289
|
});
|
@@ -295,10 +295,10 @@ test('in non-restrictive mode, a chip gets added if there is only one matching f
|
|
295
295
|
var value = 'Aardvark';
|
296
296
|
userEvent.type(input, value);
|
297
297
|
userEvent.tab();
|
298
|
-
var
|
299
|
-
expect(
|
300
|
-
var
|
301
|
-
expect(
|
298
|
+
var badge = screen.queryByText(value);
|
299
|
+
expect(badge).toBeInTheDocument();
|
300
|
+
var badgeContainer = badge.parentElement;
|
301
|
+
expect(badgeContainer).toHaveAttribute('role', 'presentation');
|
302
302
|
expect(firstOption).not.toBeInTheDocument();
|
303
303
|
});
|
304
304
|
test('dropdown with options reappears after entering a custom input', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
@@ -351,10 +351,10 @@ test('changing the input value and hitting enter creates new value in non-restri
|
|
351
351
|
expect(input).toHaveValue(value);
|
352
352
|
userEvent.type(input, '{enter}');
|
353
353
|
expect(input).toHaveValue('');
|
354
|
-
var
|
355
|
-
expect(
|
356
|
-
var
|
357
|
-
expect(
|
354
|
+
var badge = screen.queryByText(value);
|
355
|
+
expect(badge).toBeInTheDocument();
|
356
|
+
var badgeContainer = badge.parentElement;
|
357
|
+
expect(badgeContainer).toHaveAttribute('role', 'presentation');
|
358
358
|
});
|
359
359
|
test('pressing enter, when the input values is an empty string does not add an option, in non-restrictive mode', function () {
|
360
360
|
var onSelectionChange = jest.fn();
|
@@ -378,8 +378,8 @@ test('in non-restrictive mode "onSelectionChange" returns entered keys', functio
|
|
378
378
|
var value = 'custom';
|
379
379
|
userEvent.type(input, value);
|
380
380
|
userEvent.type(input, '{enter}');
|
381
|
-
var
|
382
|
-
expect(
|
381
|
+
var badge = screen.queryByText(value);
|
382
|
+
expect(badge).toBeInTheDocument();
|
383
383
|
expect(onSelectionChange).toBeCalledTimes(1);
|
384
384
|
expect(onSelectionChange.mock.calls[0][0].has(value)).toBeTruthy();
|
385
385
|
});
|
@@ -393,8 +393,8 @@ test('in non-restrictive mode the same value cannot be applied twice', function
|
|
393
393
|
var value = 'custom';
|
394
394
|
userEvent.type(input, value);
|
395
395
|
userEvent.type(input, '{enter}');
|
396
|
-
var
|
397
|
-
expect(
|
396
|
+
var badge = screen.queryByText(value);
|
397
|
+
expect(badge).toBeInTheDocument();
|
398
398
|
expect(input).toHaveValue('');
|
399
399
|
userEvent.type(input, value);
|
400
400
|
userEvent.type(input, '{enter}');
|
@@ -452,10 +452,10 @@ test('options can be selected via keyboard', function () {
|
|
452
452
|
expect(options[0]).toHaveClass('is-focused');
|
453
453
|
userEvent.type(options[0], '{enter}');
|
454
454
|
expect(options[0]).not.toBeInTheDocument();
|
455
|
-
var
|
456
|
-
expect(
|
457
|
-
var
|
458
|
-
expect(
|
455
|
+
var badge = screen.getByText(items[0].name);
|
456
|
+
expect(badge).toBeInTheDocument();
|
457
|
+
var badgeContainer = badge.parentElement;
|
458
|
+
expect(badgeContainer).toHaveAttribute('role', 'presentation');
|
459
459
|
});
|
460
460
|
test('default selected keys', function () {
|
461
461
|
getComponent({
|
@@ -533,10 +533,10 @@ test('read only field', function () {
|
|
533
533
|
getComponent({
|
534
534
|
isReadOnly: isReadOnly
|
535
535
|
});
|
536
|
-
var
|
537
|
-
expect(
|
538
|
-
expect(
|
539
|
-
expect(
|
536
|
+
var badge = screen.queryAllByRole('presentation');
|
537
|
+
expect(badge[0]).toHaveAttribute('label', items[0].name);
|
538
|
+
expect(badge[1]).toHaveAttribute('label', items[1].name);
|
539
|
+
expect(badge[2]).toHaveAttribute('label', items[2].name);
|
540
540
|
var textArea = screen.getByLabelText(defaultProps.label);
|
541
541
|
expect(textArea).toHaveClass('is-read-only');
|
542
542
|
expect(screen.queryByRole('option')).not.toBeInTheDocument();
|
@@ -547,9 +547,9 @@ test('read only keys with read only field', function () {
|
|
547
547
|
isReadOnly: isReadOnly,
|
548
548
|
readOnlyKeys: [items[1].key, items[2].key]
|
549
549
|
});
|
550
|
-
var
|
551
|
-
expect(
|
552
|
-
expect(
|
550
|
+
var badge = screen.queryAllByRole('presentation');
|
551
|
+
expect(badge[0]).toHaveAttribute('label', items[1].name);
|
552
|
+
expect(badge[1]).toHaveAttribute('label', items[2].name);
|
553
553
|
var textArea = screen.getByLabelText(defaultProps.label);
|
554
554
|
expect(textArea).toHaveClass('is-read-only');
|
555
555
|
expect(screen.queryByRole('option')).not.toBeInTheDocument();
|
@@ -6,9 +6,11 @@ import Earth from 'mdi-react/EarthIcon';
|
|
6
6
|
import EmoticonHappy from 'mdi-react/EmoticonHappyOutlineIcon';
|
7
7
|
import Fingerprint from 'mdi-react/FingerprintIcon';
|
8
8
|
import GlobeIcon from 'mdi-react/GlobeIcon';
|
9
|
+
import OpenInNew from 'mdi-react/OpenInNewIcon';
|
9
10
|
import ScaleBalance from 'mdi-react/ScaleBalanceIcon';
|
10
11
|
import TransitConnection from 'mdi-react/TransitConnectionVariantIcon';
|
11
12
|
import ViewDashboard from 'mdi-react/ViewDashboardIcon';
|
13
|
+
import ViewGridPlusOutline from 'mdi-react/ViewGridPlusOutlineIcon';
|
12
14
|
import { Box, Link, NavBar, NavBarItem, NavBarItemButton, NavBarItemLink, NavBarSection, Separator } from '../../index';
|
13
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
14
16
|
export default {
|
@@ -259,6 +261,13 @@ var data = [{
|
|
259
261
|
}, "Sender")]
|
260
262
|
}];
|
261
263
|
var secondData = [{
|
264
|
+
'data-id': 'da-vinci-data-id',
|
265
|
+
icon: ViewGridPlusOutline,
|
266
|
+
key: 'DaVinci',
|
267
|
+
heading: 'DaVinci',
|
268
|
+
customIcon: OpenInNew,
|
269
|
+
href: 'https://pingidentity.com/'
|
270
|
+
}, {
|
262
271
|
'data-id': 'mfa-data-id',
|
263
272
|
icon: Fingerprint,
|
264
273
|
key: 'MFA',
|
@@ -333,7 +342,8 @@ var thirdData = [{
|
|
333
342
|
}];
|
334
343
|
export var Default = function Default() {
|
335
344
|
return ___EmotionJSX(NavBar, null, ___EmotionJSX(Box, {
|
336
|
-
padding: "md"
|
345
|
+
padding: "md",
|
346
|
+
key: "top-logo-parent"
|
337
347
|
}, ___EmotionJSX(Link, {
|
338
348
|
"aria-label": "home link",
|
339
349
|
href: "https://pingidentity.com",
|
@@ -343,7 +353,8 @@ export var Default = function Default() {
|
|
343
353
|
backgroundColor: "neutral.60"
|
344
354
|
}), ___EmotionJSX(Box, {
|
345
355
|
variant: "navBar.sectionContainer",
|
346
|
-
paddingBottom: "xl"
|
356
|
+
paddingBottom: "xl",
|
357
|
+
key: "first-section-container"
|
347
358
|
}, ___EmotionJSX(NavBarItem, {
|
348
359
|
"data-id": "nav-bar-item",
|
349
360
|
icon: GlobeIcon,
|
@@ -7,10 +7,12 @@ import AccountMultiple from 'mdi-react/AccountMultipleIcon';
|
|
7
7
|
import EmoticonHappy from 'mdi-react/EmoticonHappyOutlineIcon';
|
8
8
|
import Fingerprint from 'mdi-react/FingerprintIcon';
|
9
9
|
import GlobeIcon from 'mdi-react/GlobeIcon';
|
10
|
+
import OpenInNew from 'mdi-react/OpenInNewIcon';
|
10
11
|
import ScaleBalance from 'mdi-react/ScaleBalanceIcon';
|
11
12
|
import TransitConnection from 'mdi-react/TransitConnectionVariantIcon';
|
12
13
|
import Verify from 'mdi-react/VerifiedIcon';
|
13
14
|
import ViewDashboard from 'mdi-react/ViewDashboardIcon';
|
15
|
+
import ViewGridPlusOutline from 'mdi-react/ViewGridPlusOutlineIcon';
|
14
16
|
import { Box, Button, Link, NavBarItem, NavBarItemButton, NavBarItemLink, NavBarSection } from '../../index';
|
15
17
|
import axeTest from '../../utils/testUtils/testAxe';
|
16
18
|
import { fireEvent, render, screen } from '../../utils/testUtils/testWrapper';
|
@@ -56,6 +58,13 @@ var data = [{
|
|
56
58
|
children: ['Users', 'Group', 'Populations', 'Attributes', 'Roles']
|
57
59
|
}];
|
58
60
|
var secondData = [{
|
61
|
+
'data-id': 'da-vinci-data-id',
|
62
|
+
icon: ViewGridPlusOutline,
|
63
|
+
key: 'DaVinci',
|
64
|
+
heading: 'DaVinci',
|
65
|
+
customIcon: OpenInNew,
|
66
|
+
href: 'https://pingidentity.com/'
|
67
|
+
}, {
|
59
68
|
icon: Fingerprint,
|
60
69
|
key: 'MFA',
|
61
70
|
heading: 'MFA',
|
@@ -10,6 +10,16 @@ import { useStatusClasses } from '../../hooks';
|
|
10
10
|
import { Box, Icon, Text } from '../../index';
|
11
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
12
12
|
var NavBarItemHeader = function NavBarItemHeader(props) {
|
13
|
+
var item = props.item;
|
14
|
+
var children = item.children,
|
15
|
+
href = item.href;
|
16
|
+
return !children && href ? ___EmotionJSX(NavBarPrimaryItemHeader, {
|
17
|
+
item: item
|
18
|
+
}) : ___EmotionJSX(NavBarSectionItemHeader, {
|
19
|
+
item: item
|
20
|
+
});
|
21
|
+
};
|
22
|
+
var NavBarSectionItemHeader = function NavBarSectionItemHeader(props) {
|
13
23
|
var _context;
|
14
24
|
var item = props.item;
|
15
25
|
var icon = item.icon,
|
@@ -45,7 +55,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
45
55
|
icon: icon,
|
46
56
|
size: "sm",
|
47
57
|
sx: {
|
48
|
-
mr: '
|
58
|
+
mr: 'sm',
|
49
59
|
color: color,
|
50
60
|
fill: color
|
51
61
|
},
|
@@ -68,13 +78,65 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
68
78
|
"aria-label": isExpanded ? 'Menu up' : 'Menu down'
|
69
79
|
})));
|
70
80
|
};
|
81
|
+
var NavBarPrimaryItemHeader = function NavBarPrimaryItemHeader(_ref) {
|
82
|
+
var item = _ref.item;
|
83
|
+
var icon = item.icon,
|
84
|
+
className = item.className,
|
85
|
+
heading = item.heading,
|
86
|
+
customIcon = item.customIcon;
|
87
|
+
return ___EmotionJSX(Box, {
|
88
|
+
variant: "navBar.itemHeaderContainer",
|
89
|
+
className: className,
|
90
|
+
isRow: true,
|
91
|
+
"data-testid": heading
|
92
|
+
}, icon && ___EmotionJSX(Icon, {
|
93
|
+
icon: icon,
|
94
|
+
size: "sm",
|
95
|
+
sx: {
|
96
|
+
mr: 'sm',
|
97
|
+
color: 'neutral.95',
|
98
|
+
fill: 'neutral.95'
|
99
|
+
},
|
100
|
+
"aria-hidden": "true"
|
101
|
+
}), ___EmotionJSX(Text, {
|
102
|
+
variant: "navBarHeaderText"
|
103
|
+
}, heading), ___EmotionJSX(Box, {
|
104
|
+
isRow: true,
|
105
|
+
alignItems: "center",
|
106
|
+
sx: {
|
107
|
+
ml: 'auto'
|
108
|
+
}
|
109
|
+
}, customIcon && ___EmotionJSX(Icon, {
|
110
|
+
icon: customIcon,
|
111
|
+
size: "sm",
|
112
|
+
sx: {
|
113
|
+
color: 'neutral.95',
|
114
|
+
fill: 'neutral.95'
|
115
|
+
}
|
116
|
+
})));
|
117
|
+
};
|
71
118
|
NavBarItemHeader.propTypes = {
|
119
|
+
item: PropTypes.shape({
|
120
|
+
children: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.object])),
|
121
|
+
href: PropTypes.string
|
122
|
+
})
|
123
|
+
};
|
124
|
+
NavBarSectionItemHeader.propTypes = {
|
72
125
|
item: PropTypes.shape({
|
73
126
|
heading: PropTypes.string,
|
74
127
|
icon: PropTypes.elementType,
|
75
128
|
className: PropTypes.string,
|
76
129
|
children: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.object])),
|
77
|
-
key: PropTypes.string
|
130
|
+
key: PropTypes.string,
|
131
|
+
href: PropTypes.string
|
132
|
+
})
|
133
|
+
};
|
134
|
+
NavBarPrimaryItemHeader.propTypes = {
|
135
|
+
item: PropTypes.shape({
|
136
|
+
heading: PropTypes.string,
|
137
|
+
icon: PropTypes.elementType,
|
138
|
+
className: PropTypes.string,
|
139
|
+
customIcon: PropTypes.elementType
|
78
140
|
})
|
79
141
|
};
|
80
142
|
export default NavBarItemHeader;
|
@@ -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 { Button, Separator, Text } from '../..';
|
13
|
+
import { Button, Link, Separator, Text } from '../..';
|
14
14
|
import { useNavBarContext } from '../../context/NavBarContext';
|
15
15
|
import NavBarItemBody from './NavBarItemBody';
|
16
16
|
import NavBarItemHeader from './NavBarItemHeader';
|
@@ -28,7 +28,7 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
28
28
|
others = _objectWithoutProperties(_ref, _excluded);
|
29
29
|
var ref = useRef();
|
30
30
|
var childrenItems = _filterInstanceProperty(items).call(items, function (item) {
|
31
|
-
return item.children;
|
31
|
+
return item.children || item.href;
|
32
32
|
});
|
33
33
|
return ___EmotionJSX(React.Fragment, null, hasSeparator && ___EmotionJSX(Separator, {
|
34
34
|
variant: "separator.navBarSeparator"
|
@@ -45,7 +45,10 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
45
45
|
}, others), _mapInstanceProperty(childrenItems).call(childrenItems, function (item) {
|
46
46
|
return ___EmotionJSX("li", {
|
47
47
|
key: item.key
|
48
|
-
}, ___EmotionJSX(
|
48
|
+
}, !item.children && item.href ? ___EmotionJSX(PrimaryItem, {
|
49
|
+
key: item.key,
|
50
|
+
item: item
|
51
|
+
}) : ___EmotionJSX(SectionItem, {
|
49
52
|
key: item.key,
|
50
53
|
item: item
|
51
54
|
}));
|
@@ -123,6 +126,16 @@ var SectionItem = function SectionItem(_ref2) {
|
|
123
126
|
onKeyDown: _onKeyDown
|
124
127
|
}));
|
125
128
|
};
|
129
|
+
var PrimaryItem = function PrimaryItem(_ref3) {
|
130
|
+
var item = _ref3.item;
|
131
|
+
return ___EmotionJSX(Link, {
|
132
|
+
variant: "buttons.navBarSectionButton",
|
133
|
+
href: item.href,
|
134
|
+
target: "_blank"
|
135
|
+
}, ___EmotionJSX(NavBarItemHeader, {
|
136
|
+
item: item
|
137
|
+
}));
|
138
|
+
};
|
126
139
|
NavBarSection.defaultProps = {
|
127
140
|
hasSeparator: false
|
128
141
|
};
|
@@ -154,4 +167,9 @@ SectionItem.propTypes = {
|
|
154
167
|
}),
|
155
168
|
menuProps: PropTypes.shape({})
|
156
169
|
};
|
170
|
+
PrimaryItem.propTypes = {
|
171
|
+
item: PropTypes.shape({
|
172
|
+
href: PropTypes.string
|
173
|
+
})
|
174
|
+
};
|
157
175
|
export default NavBarSection;
|
@@ -11,10 +11,10 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
11
11
|
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; }
|
12
12
|
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; }
|
13
13
|
import React, { useState } from 'react';
|
14
|
+
import { NumberField } from '../../index';
|
14
15
|
import statuses from '../../utils/devUtils/constants/statuses';
|
15
16
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
16
17
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
17
|
-
import NumberField from './NumberField';
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
19
19
|
export default {
|
20
20
|
title: 'Form/NumberField',
|
@@ -13,10 +13,10 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
13
13
|
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; }
|
14
14
|
import React, { useState } from 'react';
|
15
15
|
import isEmpty from 'lodash/isEmpty';
|
16
|
+
import { PasswordField } from '../../index';
|
16
17
|
import statuses from '../../utils/devUtils/constants/statuses';
|
17
18
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
18
19
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
19
|
-
import PasswordField from '.';
|
20
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
21
21
|
export default {
|
22
22
|
title: 'Form/PasswordField',
|
@@ -11,10 +11,9 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
11
11
|
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; }
|
12
12
|
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; }
|
13
13
|
import React, { useState } from 'react';
|
14
|
+
import { RadioField, RadioGroupField } from '../../index';
|
14
15
|
import statuses from '../../utils/devUtils/constants/statuses';
|
15
16
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
16
|
-
import RadioField from '../RadioField';
|
17
|
-
import RadioGroupField from '.';
|
18
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
19
18
|
export default {
|
20
19
|
title: 'Form/RadioGroupField',
|
@@ -2,8 +2,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
|
3
3
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
4
4
|
import React, { useState } from 'react';
|
5
|
-
import RockerButton from '
|
6
|
-
import RockerButtonGroup from '.';
|
5
|
+
import { RockerButton, RockerButtonGroup } from '../../index';
|
7
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
7
|
export default {
|
9
8
|
title: 'Components/RockerButtonGroup',
|
@@ -3,10 +3,9 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
|
|
3
3
|
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
4
4
|
import React from 'react';
|
5
5
|
import userEvent from '@testing-library/user-event';
|
6
|
+
import { RockerButton, RockerButtonGroup } from '../../index';
|
6
7
|
import axeTest from '../../utils/testUtils/testAxe';
|
7
8
|
import { fireEvent, queryByAttribute, render, screen } from '../../utils/testUtils/testWrapper';
|
8
|
-
import RockerButton from '../RockerButton';
|
9
|
-
import RockerButtonGroup from './RockerButtonGroup';
|
10
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
11
10
|
var testId = 'testId';
|
12
11
|
var testButtons = [{
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
|
-
import Box from '
|
4
|
-
import ScrollBox from './ScrollBox';
|
3
|
+
import { Box, ScrollBox } from '../../index';
|
5
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
5
|
export default {
|
7
6
|
title: 'Components/ScrollBox',
|
@@ -14,8 +14,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
14
14
|
import React, { useState } from 'react';
|
15
15
|
import Users from 'mdi-react/AccountGroupIcon';
|
16
16
|
import SearchIcon from 'mdi-react/SearchIcon';
|
17
|
-
import { Box, SearchField, Text } from '../..';
|
18
17
|
import { useDebounce } from '../../hooks';
|
18
|
+
import { Box, SearchField, Text } from '../../index';
|
19
19
|
import { ariaAttributeBaseArgTypes, ariaAttributeBaseDocSettings } from '../../utils/devUtils/props/ariaAttributes';
|
20
20
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
21
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -29,7 +29,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
29
29
|
import React, { useState } from 'react';
|
30
30
|
import { OverlayProvider } from 'react-aria';
|
31
31
|
import { useAsyncList } from 'react-stately';
|
32
|
-
import { Item, Section, SelectField, Separator } from '
|
32
|
+
import { Item, Section, SelectField, Separator } from '../../index';
|
33
33
|
import statuses from '../../utils/devUtils/constants/statuses';
|
34
34
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
35
35
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
3
3
|
import React from 'react';
|
4
|
-
import Box from '
|
5
|
-
import Separator from './Separator';
|
4
|
+
import { Box, Separator } from '../../index';
|
6
5
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
6
|
export default {
|
8
7
|
title: 'Components/Separator',
|
@@ -67,9 +67,11 @@ var SwitchField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
67
67
|
}),
|
68
68
|
pressProps = _usePress.pressProps;
|
69
69
|
var whitelistedProps = omit(props, _Object$keys(others));
|
70
|
-
var _useSwitch = useSwitch(_objectSpread({
|
70
|
+
var _useSwitch = useSwitch(_objectSpread(_objectSpread({
|
71
71
|
children: label
|
72
|
-
}, whitelistedProps),
|
72
|
+
}, whitelistedProps), {}, {
|
73
|
+
'aria-label': 'switch-field'
|
74
|
+
}), state, switchRef),
|
73
75
|
inputProps = _useSwitch.inputProps;
|
74
76
|
var statusClasses = {
|
75
77
|
isSelected: inputProps.checked
|
@@ -12,11 +12,10 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
12
12
|
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; }
|
13
13
|
import React, { useState } from 'react';
|
14
14
|
import { Pressable } from '@react-aria/interactions';
|
15
|
-
import { Tooltip, TooltipTrigger } from '../../index';
|
15
|
+
import { SwitchField, Tooltip, TooltipTrigger } from '../../index';
|
16
16
|
import statuses from '../../utils/devUtils/constants/statuses';
|
17
17
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
18
18
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
19
|
-
import SwitchField from '.';
|
20
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
21
20
|
export default {
|
22
21
|
title: 'Form/SwitchField',
|
@@ -1,13 +1,7 @@
|
|
1
1
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
2
2
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
3
3
|
import React from 'react';
|
4
|
-
import { Text } from '../../index';
|
5
|
-
import TableBody from '../TableBody';
|
6
|
-
import TableCaption from '../TableCaption';
|
7
|
-
import TableCell from '../TableCell';
|
8
|
-
import TableHead from '../TableHead';
|
9
|
-
import TableRow from '../TableRow';
|
10
|
-
import Table from './Table';
|
4
|
+
import { Table, TableBody, TableCaption, TableCell, TableHead, TableRow, Text } from '../../index';
|
11
5
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
12
6
|
export default {
|
13
7
|
title: 'Components/Table',
|
@@ -4,11 +4,7 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
4
4
|
import React, { useState } from 'react';
|
5
5
|
import Earth from 'mdi-react/GlobeModelIcon';
|
6
6
|
import LockIcon from 'mdi-react/LockIcon';
|
7
|
-
import { Badge } from '../../index';
|
8
|
-
import Icon from '../Icon';
|
9
|
-
import Tab from '../Tab';
|
10
|
-
import Text from '../Text';
|
11
|
-
import Tabs from './Tabs';
|
7
|
+
import { Badge, Icon, Tab, Tabs, Text } from '../../index';
|
12
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
9
|
export default {
|
14
10
|
title: 'Components/Tabs',
|
@@ -14,12 +14,11 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
14
14
|
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; }
|
15
15
|
import React, { useState } from 'react';
|
16
16
|
import SearchIcon from 'mdi-react/SearchIcon';
|
17
|
-
import { Box, Icon } from '
|
17
|
+
import { Box, Icon, TextAreaField } from '../../index';
|
18
18
|
import statuses from '../../utils/devUtils/constants/statuses';
|
19
19
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
20
20
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
21
21
|
import { modes as labelModes } from '../Label/constants';
|
22
|
-
import TextAreaField from '.';
|
23
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
23
|
export default {
|
25
24
|
title: 'Form/TextAreaField',
|
@@ -16,14 +16,13 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
16
16
|
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; }
|
17
17
|
import React, { useState } from 'react';
|
18
18
|
import isEmpty from 'lodash/isEmpty';
|
19
|
-
import { Box } from '../..';
|
20
19
|
import useCopyToClipboard from '../../hooks/useCopyToClipboard';
|
20
|
+
import { Box, TextField } from '../../index';
|
21
21
|
import statuses from '../../utils/devUtils/constants/statuses.js';
|
22
22
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
23
23
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
24
24
|
import CopyButton from '../CopyText/CopyButton';
|
25
25
|
import { modes as labelModes } from '../Label/constants';
|
26
|
-
import TextField from '.';
|
27
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
28
27
|
export default {
|
29
28
|
title: 'Form/TextField',
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import AccountIcon from 'mdi-react/AccountIcon';
|
3
3
|
import Earth from 'mdi-react/EarthIcon';
|
4
|
-
import { Box, Button, Icon, Tooltip, TooltipTrigger } from '../../index';
|
5
|
-
import IconButton from '../IconButton';
|
6
|
-
import Text from '../Text';
|
4
|
+
import { Box, Button, Icon, IconButton, Text, Tooltip, TooltipTrigger } from '../../index';
|
7
5
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
6
|
export default {
|
9
7
|
title: 'Components/TooltipTrigger',
|