@pingux/astro 2.0.0-alpha.6 → 2.0.0-beta.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 +13 -3
- 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 +19 -22
- package/lib/cjs/components/Badge/Badge.styles.js +4 -1
- 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/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 +9 -9
- 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.stories.js +3 -3
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +43 -44
- 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/IconBadge/IconBadge.stories.js +2 -3
- package/lib/cjs/components/IconButton/IconButton.js +3 -3
- 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.stories.js +28 -28
- package/lib/cjs/components/ListView/ListView.stories.js +24 -25
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +6 -0
- package/lib/cjs/components/Loader/Loader.stories.js +4 -4
- package/lib/cjs/components/Menu/Menu.stories.js +6 -7
- 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.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 +8 -8
- package/lib/cjs/recipes/ListAndPanel.stories.js +41 -41
- 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/themes/astro-nano/astro-nano.js +17 -17
- 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 +2 -5
- package/lib/components/Badge/Badge.styles.js +4 -1
- package/lib/components/Badge/Badge.test.js +3 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +1 -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 +2 -2
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +11 -12
- package/lib/components/CollapsiblePanel/CollapsiblePanel.styles.js +6 -5
- package/lib/components/ColorField/ColorField.stories.js +1 -1
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +1 -2
- 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/IconBadge/IconBadge.stories.js +1 -2
- package/lib/components/IconButton/IconButton.js +3 -3
- 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.stories.js +1 -1
- package/lib/components/ListView/ListView.stories.js +1 -2
- package/lib/components/ListViewItem/ListViewItem.styles.js +6 -0
- package/lib/components/Loader/Loader.stories.js +1 -1
- package/lib/components/Menu/Menu.stories.js +1 -2
- 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.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 +8 -8
- package/lib/recipes/ListAndPanel.stories.js +1 -1
- 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/themes/astro-nano/astro-nano.js +17 -17
- 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
@@ -23,8 +23,7 @@ import Clear from 'mdi-react/CloseIcon';
|
|
23
23
|
import SearchIcon from 'mdi-react/SearchIcon';
|
24
24
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
25
25
|
import { useOverlayPanelState } from '../../hooks';
|
26
|
-
import { Badge, Box, Breadcrumbs, Button, CheckboxField, CollapsiblePanelItem, Icon, IconButton, Item, ListView, OverlayPanel, OverlayProvider, SearchField, Text } from '../../index';
|
27
|
-
import CollapsiblePanel from './CollapsiblePanel';
|
26
|
+
import { Badge, Box, Breadcrumbs, Button, CheckboxField, CollapsiblePanel, CollapsiblePanelItem, Icon, IconButton, Item, ListView, OverlayPanel, OverlayProvider, SearchField, Text } from '../../index';
|
28
27
|
import CollapsiblePanelReadme from './CollapsiblePanel.mdx';
|
29
28
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
30
29
|
export default {
|
@@ -67,7 +66,7 @@ var data = [{
|
|
67
66
|
key: 'Avengers',
|
68
67
|
name: 'Avengers',
|
69
68
|
subtitle: 'Default',
|
70
|
-
|
69
|
+
badgeValue: '25',
|
71
70
|
isDefaultSelected: true
|
72
71
|
}, {
|
73
72
|
id: '2',
|
@@ -75,21 +74,21 @@ var data = [{
|
|
75
74
|
key: 'Credit Cards',
|
76
75
|
name: 'Credit Cards',
|
77
76
|
subtitle: '',
|
78
|
-
|
77
|
+
badgeValue: '123'
|
79
78
|
}, {
|
80
79
|
id: '3',
|
81
80
|
icon: 'Group',
|
82
81
|
key: 'Debit Cards',
|
83
82
|
name: 'Debit Cards',
|
84
83
|
subtitle: '',
|
85
|
-
|
84
|
+
badgeValue: '23'
|
86
85
|
}, {
|
87
86
|
id: '4',
|
88
87
|
icon: 'Group',
|
89
88
|
key: 'Digital Investors',
|
90
89
|
name: 'Digital Investors',
|
91
90
|
subtitle: 'N America',
|
92
|
-
|
91
|
+
badgeValue: '12',
|
93
92
|
isDefaultSelected: true
|
94
93
|
}, {
|
95
94
|
id: '5',
|
@@ -97,35 +96,35 @@ var data = [{
|
|
97
96
|
key: 'Mortgages',
|
98
97
|
name: 'Mortgages',
|
99
98
|
subtitle: 'N America',
|
100
|
-
|
99
|
+
badgeValue: '112'
|
101
100
|
}, {
|
102
101
|
id: '6',
|
103
102
|
icon: 'Group',
|
104
103
|
key: 'Person LOC',
|
105
104
|
name: 'Person LOC',
|
106
105
|
subtitle: '',
|
107
|
-
|
106
|
+
badgeValue: '45'
|
108
107
|
}, {
|
109
108
|
id: '7',
|
110
109
|
icon: 'Group',
|
111
110
|
key: 'Production',
|
112
111
|
name: 'Production',
|
113
112
|
subtitle: '',
|
114
|
-
|
113
|
+
badgeValue: '55'
|
115
114
|
}, {
|
116
115
|
id: '8',
|
117
116
|
icon: 'Group',
|
118
117
|
key: 'UX Team',
|
119
118
|
name: 'UX Team',
|
120
119
|
subtitle: '',
|
121
|
-
|
120
|
+
badgeValue: '61'
|
122
121
|
}, {
|
123
122
|
id: '9',
|
124
123
|
icon: 'Group',
|
125
124
|
key: 'UI Team',
|
126
125
|
name: 'UI Team',
|
127
126
|
subtitle: '',
|
128
|
-
|
127
|
+
badgeValue: '29'
|
129
128
|
}];
|
130
129
|
export var Default = function Default(args) {
|
131
130
|
return ___EmotionJSX(CollapsiblePanel, args);
|
@@ -270,7 +269,7 @@ export var CollapsiblePanelWithBadge = function CollapsiblePanelWithBadge(args)
|
|
270
269
|
mb: "xs",
|
271
270
|
mr: "xs"
|
272
271
|
}, item.name), ___EmotionJSX(Badge, {
|
273
|
-
label: item.
|
272
|
+
label: item.badgeValue,
|
274
273
|
bg: "accent.99",
|
275
274
|
textColor: "text.secondary",
|
276
275
|
sx: {
|
@@ -85,6 +85,7 @@ var item = {
|
|
85
85
|
};
|
86
86
|
export var toggle = _objectSpread(_objectSpread({}, square), {}, {
|
87
87
|
bg: 'accent.99',
|
88
|
+
borderRadius: '2px',
|
88
89
|
height: '40px',
|
89
90
|
minWidth: 'max-content',
|
90
91
|
pl: 'xs',
|
@@ -95,16 +96,16 @@ export var toggle = _objectSpread(_objectSpread({}, square), {}, {
|
|
95
96
|
'&.is-hovered': {
|
96
97
|
backgroundColor: 'accent.99'
|
97
98
|
},
|
98
|
-
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
99
|
-
outlineOffset: '0',
|
100
|
-
zIndex: 1
|
101
|
-
}),
|
102
99
|
'&.is-pressed': {
|
103
100
|
backgroundColor: 'accent.99'
|
104
101
|
},
|
105
102
|
':focus': {
|
106
103
|
outline: 'none'
|
107
|
-
}
|
104
|
+
},
|
105
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
106
|
+
outlineOffset: '0',
|
107
|
+
zIndex: 1
|
108
|
+
})
|
108
109
|
});
|
109
110
|
var neutralText = _objectSpread(_objectSpread({}, link), {}, {
|
110
111
|
color: 'neutral.10'
|
@@ -13,7 +13,7 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
13
13
|
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; }
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
15
15
|
import React, { useCallback, useState } from 'react';
|
16
|
-
import { ColorField, OverlayProvider } from '
|
16
|
+
import { ColorField, OverlayProvider } from '../../index';
|
17
17
|
import statuses from '../../utils/devUtils/constants/statuses';
|
18
18
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
19
19
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
@@ -29,10 +29,9 @@ import React, { useState } from 'react';
|
|
29
29
|
import { useAsyncList } from 'react-stately';
|
30
30
|
import { useFilter } from '@react-aria/i18n';
|
31
31
|
import { action } from '@storybook/addon-actions';
|
32
|
-
import { Item, OverlayProvider, Section } from '
|
32
|
+
import { ComboBoxField, Item, OverlayProvider, Section } from '../../index';
|
33
33
|
import loadingStates from '../../utils/devUtils/constants/loadingStates';
|
34
34
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
35
|
-
import ComboBoxField from './ComboBoxField';
|
36
35
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
37
36
|
var items = [{
|
38
37
|
name: 'Aardvark',
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
3
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
4
|
-
import Link from '
|
5
|
-
import Text from '../Text';
|
6
|
-
import CopyText from './CopyText';
|
4
|
+
import { CopyText, Link, Text } from '../../index';
|
7
5
|
import CopyTextReadme from './CopyText.mdx';
|
8
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
9
7
|
export default {
|
@@ -25,19 +25,21 @@ var copy = {
|
|
25
25
|
}
|
26
26
|
};
|
27
27
|
export var copyButton = {
|
28
|
-
ml: '
|
28
|
+
ml: 'sm',
|
29
29
|
outline: 'none',
|
30
30
|
height: 'auto',
|
31
31
|
cursor: 'pointer',
|
32
|
+
width: 'auto',
|
32
33
|
path: {
|
33
34
|
fill: 'neutral.10'
|
34
35
|
},
|
35
|
-
'&.is-focused': _objectSpread({
|
36
|
-
boxShadow: 'none'
|
37
|
-
}, defaultFocus),
|
38
36
|
':focus': {
|
39
37
|
outline: 'none'
|
40
|
-
}
|
38
|
+
},
|
39
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
40
|
+
boxShadow: 'none',
|
41
|
+
outlineOffset: '1px'
|
42
|
+
})
|
41
43
|
};
|
42
44
|
export default {
|
43
45
|
copy: copy,
|
@@ -18,8 +18,7 @@ import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
|
|
18
18
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
19
19
|
import React, { useState } from 'react';
|
20
20
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
21
|
-
import { Badge, Box, Item, Section, Text } from '../../index';
|
22
|
-
import EnvironmentBreadcrumb from './EnvironmentBreadcrumb';
|
21
|
+
import { Badge, Box, EnvironmentBreadcrumb, Item, Section, Text } from '../../index';
|
23
22
|
import EnvironmentBreadcrumbReadme from './EnvironmentBreadcrumb.mdx';
|
24
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
25
24
|
export default {
|
@@ -357,7 +356,7 @@ export var ControlledMenu = function ControlledMenu() {
|
|
357
356
|
}) : null);
|
358
357
|
});
|
359
358
|
};
|
360
|
-
export var
|
359
|
+
export var RightAlignedBadges = function RightAlignedBadges(args) {
|
361
360
|
var _useState13 = useState({
|
362
361
|
name: 'Snail',
|
363
362
|
isSandbox: true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { FieldHelperText } from '../../index';
|
2
3
|
import statuses from '../../utils/devUtils/constants/statuses';
|
3
|
-
import FieldHelperText from '.';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
5
|
export default {
|
6
6
|
title: 'Form/Base Components/FieldHelperText',
|
@@ -13,11 +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 { v4 as uuidv4 } from 'uuid';
|
16
|
-
import { Box } from '
|
16
|
+
import { Box, FileInputField } from '../../index';
|
17
17
|
import statuses from '../../utils/devUtils/constants/statuses';
|
18
18
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
19
19
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
20
|
-
import FileInputField from '.';
|
21
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
22
21
|
export default {
|
23
22
|
title: 'Form/FileInputField',
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
3
|
-
import Box from '
|
3
|
+
import { Box, HelpHint } from '../../index';
|
4
4
|
import HelpHintReadme from './HelpHint.mdx';
|
5
|
-
import HelpHint from '.';
|
6
5
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
6
|
export default {
|
8
7
|
title: 'Components/HelpHint',
|
@@ -2,8 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
2
2
|
import React from 'react';
|
3
3
|
import GroupIcon from 'mdi-react/AccountGroupIcon';
|
4
4
|
import ArrowIcon from 'mdi-react/ArrowTopRightThickIcon';
|
5
|
-
import { Box, Icon } from '../../index';
|
6
|
-
import IconBadge from '.';
|
5
|
+
import { Box, Icon, IconBadge } from '../../index';
|
7
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
7
|
export default {
|
9
8
|
title: 'Components/IconBadge',
|
@@ -51,7 +51,7 @@ var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
51
51
|
buttonProps = _useButton.buttonProps,
|
52
52
|
isPressed = _useButton.isPressed;
|
53
53
|
var _useContext = useContext(BadgeContext),
|
54
|
-
|
54
|
+
badgeBg = _useContext.bg;
|
55
55
|
var _useHover = useHover(props),
|
56
56
|
hoverProps = _useHover.hoverProps,
|
57
57
|
isHovered = _useHover.isHovered;
|
@@ -73,9 +73,9 @@ var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
73
73
|
tabIndex: 0,
|
74
74
|
className: classNames,
|
75
75
|
"aria-label": ariaLabel,
|
76
|
-
sx:
|
76
|
+
sx: badgeBg && isHovered && {
|
77
77
|
'path': {
|
78
|
-
fill:
|
78
|
+
fill: badgeBg
|
79
79
|
}
|
80
80
|
},
|
81
81
|
variant: "iconButtons.".concat(variant),
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
3
3
|
import React, { useState } from 'react';
|
4
4
|
import EyeOffIcon from 'mdi-react/EyeOffOutlineIcon';
|
5
5
|
import EyeIcon from 'mdi-react/EyeOutlineIcon';
|
6
|
-
import IconButtonToggle from '
|
6
|
+
import { IconButtonToggle } from '../../index';
|
7
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
8
|
export default {
|
9
9
|
title: 'Components/IconButtonToggle',
|
@@ -3,10 +3,9 @@ import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/object
|
|
3
3
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
4
4
|
import React, { useState } from 'react';
|
5
5
|
import isChromatic from 'chromatic/isChromatic';
|
6
|
-
import { Box, Button } from '../../index';
|
6
|
+
import { Box, Button, Image } from '../../index';
|
7
7
|
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
8
8
|
import { chiefIdentityChampions, pingImg } from '../../utils/devUtils/constants/images';
|
9
|
-
import Image from '.';
|
10
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
11
10
|
export default {
|
12
11
|
title: 'Components/Image',
|
@@ -22,7 +22,7 @@ import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
|
|
22
22
|
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; }
|
23
23
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
24
24
|
import React, { useRef, useState } from 'react';
|
25
|
-
import { Image, ImageUploadField, OverlayProvider } from '
|
25
|
+
import { Image, ImageUploadField, OverlayProvider } from '../../index';
|
26
26
|
import statuses from '../../utils/devUtils/constants/statuses';
|
27
27
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
28
28
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
|
-
import Input from '
|
3
|
+
import { Input } from '../../index';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
5
|
export default {
|
6
6
|
title: 'Form/Base Components/Input',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
|
+
import { Label } from '../../index';
|
3
4
|
import { modes } from './constants';
|
4
|
-
import Label from '.';
|
5
5
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
6
|
export default {
|
7
7
|
title: 'Form/Base Components/Label',
|
@@ -2,9 +2,9 @@ import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/object
|
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
3
3
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
4
4
|
import React from 'react';
|
5
|
+
import { Link } from '../../index';
|
5
6
|
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
6
7
|
import variants from './Link.styles';
|
7
|
-
import Link from '.';
|
8
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
9
9
|
export default {
|
10
10
|
title: 'Components/Link',
|
@@ -28,7 +28,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
28
28
|
import React, { useState } from 'react';
|
29
29
|
import { OverlayProvider } from 'react-aria';
|
30
30
|
import { useAsyncList } from 'react-stately';
|
31
|
-
import { Box, Item, LinkSelectField, Separator } from '
|
31
|
+
import { Box, Item, LinkSelectField, Separator } from '../../index';
|
32
32
|
import statuses from '../../utils/devUtils/constants/statuses';
|
33
33
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
34
34
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
@@ -14,7 +14,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
14
14
|
import React, { useState } from 'react';
|
15
15
|
import AccountIcon from 'mdi-react/AccountIcon';
|
16
16
|
import MoreVertIcon from 'mdi-react/MoreVertIcon';
|
17
|
-
import { Box, Icon, IconButton, ListItem, Separator, Text } from '
|
17
|
+
import { Box, Icon, IconButton, ListItem, Separator, Text } from '../../index';
|
18
18
|
import { onHoverArgTypes } from '../../utils/devUtils/props/hoverProps';
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
20
20
|
export default {
|
@@ -22,9 +22,8 @@ import isChromatic from 'chromatic/isChromatic';
|
|
22
22
|
import CreateIcon from 'mdi-react/CreateIcon';
|
23
23
|
import FormSelectIcon from 'mdi-react/FormSelectIcon';
|
24
24
|
import MoreVertIcon from 'mdi-react/MoreVertIcon';
|
25
|
-
import { Box, Icon, IconButton, Text } from '
|
25
|
+
import { Box, Icon, IconButton, ListView, Text } from '../../index';
|
26
26
|
import loadingStates from '../../utils/devUtils/constants/loadingStates';
|
27
|
-
import ListView from '.';
|
28
27
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
29
28
|
export default {
|
30
29
|
title: 'Components/ListView',
|
@@ -17,6 +17,9 @@ var container = {
|
|
17
17
|
justifyContent: 'center',
|
18
18
|
bg: 'accent.99',
|
19
19
|
outline: 'none',
|
20
|
+
'& li': {
|
21
|
+
bg: 'white'
|
22
|
+
},
|
20
23
|
'&.is-selected': {
|
21
24
|
bg: 'white'
|
22
25
|
},
|
@@ -35,6 +38,9 @@ var container = {
|
|
35
38
|
var linkedViewContainer = _objectSpread(_objectSpread({}, container), {}, {
|
36
39
|
minHeight: '75px',
|
37
40
|
height: '76px',
|
41
|
+
'& li': {
|
42
|
+
bg: 'white'
|
43
|
+
},
|
38
44
|
'&.has-inset-separator': {
|
39
45
|
'&:after': {
|
40
46
|
content: '""',
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
2
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
3
|
import React from 'react';
|
4
|
+
import { Loader } from '../../index';
|
4
5
|
import { flatColorList } from '../../styles/colors';
|
5
|
-
import Loader from '.';
|
6
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
7
|
export default {
|
8
8
|
title: 'Components/Loader',
|
@@ -13,9 +13,8 @@ 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 from 'react';
|
15
15
|
import { Item } from 'react-stately';
|
16
|
+
import { Menu, Text } from '../../index';
|
16
17
|
import { onHoverArgTypes } from '../../utils/devUtils/props/hoverProps';
|
17
|
-
import Text from '../Text';
|
18
|
-
import Menu from '.';
|
19
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
20
19
|
export default {
|
21
20
|
title: 'Components/Menu',
|
@@ -18,7 +18,7 @@ import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values"
|
|
18
18
|
import React, { useEffect, useReducer, useState } from 'react';
|
19
19
|
import { Item } from 'react-stately';
|
20
20
|
import AccountIcon from 'mdi-react/AccountIcon';
|
21
|
-
import { Box, Button, Messages } from '
|
21
|
+
import { Box, Button, Messages } from '../../index';
|
22
22
|
import statuses from '../../utils/devUtils/constants/statuses';
|
23
23
|
import { messagesReducerStory as messagesReducer, multiMessagesReducerStory as multiMessagesReducer } from './index';
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -189,7 +189,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
189
189
|
useEffect(function () {
|
190
190
|
if (onOpenChange) onOpenChange(isOpen);
|
191
191
|
}, [isOpen]);
|
192
|
-
var
|
192
|
+
var addNewBadgeFromInput = function addNewBadgeFromInput(inputValue) {
|
193
193
|
var _context3, _context4;
|
194
194
|
var key = inputValue;
|
195
195
|
if (state.selectionManager.isSelected(key)) {
|
@@ -220,7 +220,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
220
220
|
if (!hasCustomValue && filteredItems.length === 1) {
|
221
221
|
selectTheOnlyFilteredItem();
|
222
222
|
} else if (hasCustomValue) {
|
223
|
-
|
223
|
+
addNewBadgeFromInput(filterString);
|
224
224
|
}
|
225
225
|
};
|
226
226
|
|
@@ -243,7 +243,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
243
243
|
if (_key === '') {
|
244
244
|
return;
|
245
245
|
}
|
246
|
-
|
246
|
+
addNewBadgeFromInput(e.target.value);
|
247
247
|
}
|
248
248
|
break;
|
249
249
|
}
|
@@ -315,7 +315,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
315
315
|
}
|
316
316
|
return null;
|
317
317
|
});
|
318
|
-
var
|
318
|
+
var multivaluesFieldBadge = function multivaluesFieldBadge(item) {
|
319
319
|
return ___EmotionJSX(Badge, _extends({
|
320
320
|
key: item.key,
|
321
321
|
role: "presentation",
|
@@ -323,7 +323,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
323
323
|
bg: "active",
|
324
324
|
label: item.name,
|
325
325
|
slots: item.slots
|
326
|
-
}, item.
|
326
|
+
}, item.badgeProps), ___EmotionJSX(IconButton, _extends({
|
327
327
|
"aria-label": "delete",
|
328
328
|
onPress: function onPress() {
|
329
329
|
return deleteItem(item.key);
|
@@ -341,7 +341,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
341
341
|
return el.key === key;
|
342
342
|
});
|
343
343
|
if (item) {
|
344
|
-
return
|
344
|
+
return multivaluesFieldBadge(item);
|
345
345
|
}
|
346
346
|
return null;
|
347
347
|
}));
|
@@ -12,7 +12,7 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
12
12
|
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; }
|
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
|
-
import { Box, Icon, Item, MultivaluesField, OverlayProvider } from '
|
15
|
+
import { Box, Icon, Item, MultivaluesField, OverlayProvider } 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';
|
@@ -208,12 +208,12 @@ var itemsWithSlots = [{
|
|
208
208
|
id: 1,
|
209
209
|
name: 'Aardvark',
|
210
210
|
key: 'Aardvark',
|
211
|
-
|
211
|
+
badgeProps: {
|
212
212
|
variant: 'itemBadgeWithSlot',
|
213
213
|
bg: 'white'
|
214
214
|
},
|
215
215
|
buttonProps: {
|
216
|
-
variant: '
|
216
|
+
variant: 'badgeDeleteButton'
|
217
217
|
},
|
218
218
|
slots: {
|
219
219
|
leftIcon: ___EmotionJSX(Icon, {
|
@@ -225,12 +225,12 @@ var itemsWithSlots = [{
|
|
225
225
|
id: 2,
|
226
226
|
name: 'Kangaroo',
|
227
227
|
key: 'Kangaroo',
|
228
|
-
|
228
|
+
badgeProps: {
|
229
229
|
variant: 'itemBadgeWithSlot',
|
230
230
|
bg: 'white'
|
231
231
|
},
|
232
232
|
buttonProps: {
|
233
|
-
variant: '
|
233
|
+
variant: 'badgeDeleteButton'
|
234
234
|
},
|
235
235
|
slots: {
|
236
236
|
leftIcon: ___EmotionJSX(Icon, {
|
@@ -242,12 +242,12 @@ var itemsWithSlots = [{
|
|
242
242
|
id: 3,
|
243
243
|
name: 'Snake',
|
244
244
|
key: 'Snake',
|
245
|
-
|
245
|
+
badgeProps: {
|
246
246
|
variant: 'itemBadgeWithSlot',
|
247
247
|
bg: 'white'
|
248
248
|
},
|
249
249
|
buttonProps: {
|
250
|
-
variant: '
|
250
|
+
variant: 'badgeDeleteButton'
|
251
251
|
},
|
252
252
|
slots: {
|
253
253
|
leftIcon: ___EmotionJSX(Icon, {
|
@@ -473,7 +473,7 @@ CustomValues.argTypes = {
|
|
473
473
|
defaultValue: 'non-restrictive'
|
474
474
|
}
|
475
475
|
};
|
476
|
-
export var
|
476
|
+
export var IconSlotsInBadge = function IconSlotsInBadge(args) {
|
477
477
|
var _useState19 = useState(false),
|
478
478
|
_useState20 = _slicedToArray(_useState19, 2),
|
479
479
|
isOpen = _useState20[0],
|