@pingux/astro 2.155.0-alpha.0 → 2.155.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/lib/cjs/components/Button/Buttons.styles.d.ts +859 -0
- package/lib/cjs/components/Button/Buttons.styles.js +17 -1
- package/lib/cjs/components/SearchNav/MoreItemsPopover.d.ts +4 -0
- package/lib/cjs/components/SearchNav/MoreItemsPopover.js +74 -0
- package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.d.ts +6 -0
- package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.js +101 -0
- package/lib/cjs/components/SearchNav/SearchNav.d.ts +13 -0
- package/lib/cjs/components/SearchNav/SearchNav.js +218 -0
- package/lib/cjs/components/SearchNav/SearchNav.stories.d.ts +6 -0
- package/lib/cjs/components/SearchNav/SearchNav.stories.js +76 -0
- package/lib/cjs/components/SearchNav/SearchNav.styles.d.ts +33 -0
- package/lib/cjs/components/SearchNav/SearchNav.styles.js +51 -0
- package/lib/cjs/components/SearchNav/SearchNav.test.d.ts +1 -0
- package/lib/cjs/components/SearchNav/SearchNav.test.js +610 -0
- package/lib/cjs/components/SearchNav/SearchNavTab.d.ts +4 -0
- package/lib/cjs/components/SearchNav/SearchNavTab.js +69 -0
- package/lib/cjs/components/SearchNav/index.d.ts +1 -0
- package/lib/cjs/components/SearchNav/index.js +14 -0
- package/lib/cjs/components/Text/Text.styles.d.ts +2548 -0
- package/lib/cjs/components/Text/Text.styles.js +23 -1
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +45 -26
- package/lib/cjs/styles/colors.d.ts +6 -0
- package/lib/cjs/styles/colors.js +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +2 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +9 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +12 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +12 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +15 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +10 -0
- package/lib/cjs/styles/themes/next-gen/variants/searchNav.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/searchNav.js +14 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +2 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/searchNav.d.ts +49 -0
- package/lib/cjs/types/searchNav.js +6 -0
- package/lib/components/Button/Buttons.styles.js +18 -2
- package/lib/components/SearchNav/MoreItemsPopover.js +60 -0
- package/lib/components/SearchNav/SearchNav.chromatic.stories.js +86 -0
- package/lib/components/SearchNav/SearchNav.js +203 -0
- package/lib/components/SearchNav/SearchNav.stories.js +61 -0
- package/lib/components/SearchNav/SearchNav.styles.js +43 -0
- package/lib/components/SearchNav/SearchNav.test.js +601 -0
- package/lib/components/SearchNav/SearchNavTab.js +55 -0
- package/lib/components/SearchNav/index.js +1 -0
- package/lib/components/Text/Text.styles.js +21 -1
- package/lib/index.js +2 -0
- package/lib/styles/colors.js +4 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +2 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +12 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/button.js +10 -0
- package/lib/styles/themes/next-gen/variants/searchNav.js +6 -0
- package/lib/styles/themes/next-gen/variants/text.js +2 -1
- package/lib/styles/themes/next-gen/variants/variants.js +2 -0
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/searchNav.js +1 -0
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ export var wordWrap = {
|
|
|
23
23
|
wordWrap: 'break-word',
|
|
24
24
|
wordBreak: 'break-word'
|
|
25
25
|
};
|
|
26
|
-
var tabLabel = _objectSpread(_objectSpread(_objectSpread({}, base), wordWrap), {}, {
|
|
26
|
+
export var tabLabel = _objectSpread(_objectSpread(_objectSpread({}, base), wordWrap), {}, {
|
|
27
27
|
fontSize: 'sm',
|
|
28
28
|
fontWeight: 1,
|
|
29
29
|
mb: 'sm',
|
|
@@ -41,6 +41,25 @@ var tabLabel = _objectSpread(_objectSpread(_objectSpread({}, base), wordWrap), {
|
|
|
41
41
|
color: 'neutral.80'
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
+
export var searchNavTabLabel = _objectSpread(_objectSpread({}, base), {}, {
|
|
45
|
+
whiteSpace: 'nowrap',
|
|
46
|
+
fontSize: 'sm',
|
|
47
|
+
fontWeight: 1,
|
|
48
|
+
mb: 'sm',
|
|
49
|
+
px: 'sm',
|
|
50
|
+
lineHeight: '16px',
|
|
51
|
+
color: 'neutral.40',
|
|
52
|
+
height: '100%',
|
|
53
|
+
'.is-selected &, .is-hovered &': {
|
|
54
|
+
color: 'active'
|
|
55
|
+
},
|
|
56
|
+
'.is-selected &': {
|
|
57
|
+
color: 'active'
|
|
58
|
+
},
|
|
59
|
+
'.is-disabled &': {
|
|
60
|
+
color: 'neutral.80'
|
|
61
|
+
}
|
|
62
|
+
});
|
|
44
63
|
var stepperLabel = _objectSpread(_objectSpread({}, base), {}, {
|
|
45
64
|
fontSize: '14px',
|
|
46
65
|
fontWeight: '500',
|
|
@@ -241,6 +260,7 @@ export var text = _objectSpread(_objectSpread(_objectSpread({
|
|
|
241
260
|
}),
|
|
242
261
|
panelHeaderSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
|
243
262
|
panelHeaderText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
|
263
|
+
searchNavTabLabel: searchNavTabLabel,
|
|
244
264
|
sectionTitle: sectionTitle,
|
|
245
265
|
subtitle: subtitle,
|
|
246
266
|
tabLabel: tabLabel,
|
package/lib/index.js
CHANGED
|
@@ -173,6 +173,8 @@ export { default as ScrollBox } from './components/ScrollBox';
|
|
|
173
173
|
export * from './components/ScrollBox';
|
|
174
174
|
export { default as SearchField } from './components/SearchField';
|
|
175
175
|
export * from './components/SearchField';
|
|
176
|
+
export { default as SearchNav } from './components/SearchNav';
|
|
177
|
+
export * from './components/SearchNav';
|
|
176
178
|
export { default as SelectField } from './components/SelectField';
|
|
177
179
|
export * from './components/SelectField';
|
|
178
180
|
export { default as Separator } from './components/Separator';
|
package/lib/styles/colors.js
CHANGED
|
@@ -129,12 +129,16 @@ var badge = {
|
|
|
129
129
|
iconBadgeFill: accent[40]
|
|
130
130
|
};
|
|
131
131
|
var tooltip = accent[20];
|
|
132
|
+
var border = {
|
|
133
|
+
hairline: '#E7EEF4'
|
|
134
|
+
};
|
|
132
135
|
var allColors = {
|
|
133
136
|
black: black,
|
|
134
137
|
background: background,
|
|
135
138
|
backgroundBase: backgroundBase,
|
|
136
139
|
backgroundSecondary: backgroundSecondary,
|
|
137
140
|
badge: badge,
|
|
141
|
+
border: border,
|
|
138
142
|
white: white,
|
|
139
143
|
neutral: neutral,
|
|
140
144
|
accent: accent,
|
|
@@ -29,7 +29,8 @@ var border = {
|
|
|
29
29
|
dark: chroma.mix('#23282e', 'white', 0.25, 'rgb').hex(),
|
|
30
30
|
input: nextGenColors['gray-500'],
|
|
31
31
|
separator: chroma.mix('#23282e', 'white', 0.15, 'rgb').hex(),
|
|
32
|
-
attachment: '#39414b'
|
|
32
|
+
attachment: '#39414b',
|
|
33
|
+
hairline: '#737577'
|
|
33
34
|
};
|
|
34
35
|
var badge = {
|
|
35
36
|
background: nextGenColors['gray-800'],
|
|
@@ -73,6 +73,15 @@ var iconButtons = {
|
|
|
73
73
|
}
|
|
74
74
|
})
|
|
75
75
|
};
|
|
76
|
+
var searchNavTabLabel = {
|
|
77
|
+
color: 'gray-400',
|
|
78
|
+
'&.is-hovered': {
|
|
79
|
+
color: 'white',
|
|
80
|
+
'& > svg': {
|
|
81
|
+
fill: 'white'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
76
85
|
var buttons = {
|
|
77
86
|
primary: {
|
|
78
87
|
color: 'black',
|
|
@@ -265,6 +274,7 @@ var buttons = {
|
|
|
265
274
|
}
|
|
266
275
|
},
|
|
267
276
|
iconButtons: iconButtons,
|
|
277
|
+
searchNavTabLabel: searchNavTabLabel,
|
|
268
278
|
modalCloseButton: modalCloseButton,
|
|
269
279
|
listBoxLink: {
|
|
270
280
|
color: 'blue-400',
|
|
@@ -5,6 +5,18 @@ export var text = {
|
|
|
5
5
|
listViewItemText: {
|
|
6
6
|
color: 'text.secondary'
|
|
7
7
|
},
|
|
8
|
+
searchNavTabLabel: {
|
|
9
|
+
color: 'gray-400',
|
|
10
|
+
'.is-selected &, .is-hovered &': {
|
|
11
|
+
color: 'white'
|
|
12
|
+
},
|
|
13
|
+
'.is-selected &': {
|
|
14
|
+
color: 'white'
|
|
15
|
+
},
|
|
16
|
+
'.is-disabled &': {
|
|
17
|
+
color: 'neutral.80'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
8
20
|
listViewItemTextSelected: {
|
|
9
21
|
color: 'gray-100'
|
|
10
22
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box'];
|
|
1
|
+
var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SearchNav', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box'];
|
|
2
2
|
export var componentSpecificNextGenBlacklist = {
|
|
3
3
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
|
4
4
|
Messages: ['Customization'],
|
|
@@ -30,6 +30,15 @@ export var defaultFocus = {
|
|
|
30
30
|
outlineColor: 'active',
|
|
31
31
|
outlineOffset: '2px'
|
|
32
32
|
};
|
|
33
|
+
var searchNavTabLabel = {
|
|
34
|
+
marginBottom: '9px',
|
|
35
|
+
color: 'neutral.40',
|
|
36
|
+
'&.is-hovered': {
|
|
37
|
+
'& > svg': {
|
|
38
|
+
fill: 'active'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
33
42
|
var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
34
43
|
alignItems: 'center',
|
|
35
44
|
justifyContent: 'center',
|
|
@@ -576,6 +585,7 @@ var buttons = {
|
|
|
576
585
|
inlinePrimary: inlinePrimary,
|
|
577
586
|
checkboxButton: checkboxButton,
|
|
578
587
|
checkboxActiveButton: checkboxActiveButton,
|
|
588
|
+
searchNavTabLabel: searchNavTabLabel,
|
|
579
589
|
outlineCritical: outlineCritical,
|
|
580
590
|
link: link,
|
|
581
591
|
listBoxLink: listBoxLink,
|
|
@@ -28,6 +28,7 @@ import panelHeader from './panelHeader';
|
|
|
28
28
|
import popoverMenu from './popoverMenu';
|
|
29
29
|
import prompt from './prompt';
|
|
30
30
|
import response from './response';
|
|
31
|
+
import searchNav from './searchNav';
|
|
31
32
|
import stepper from './stepper';
|
|
32
33
|
import suggestion from './suggestion';
|
|
33
34
|
import suggestions from './suggestions';
|
|
@@ -418,6 +419,7 @@ export default {
|
|
|
418
419
|
prompt: prompt,
|
|
419
420
|
response: response,
|
|
420
421
|
rockerButton: rockerButton,
|
|
422
|
+
searchNav: searchNav,
|
|
421
423
|
separator: separator,
|
|
422
424
|
skeleton: skeleton,
|
|
423
425
|
stepper: stepper,
|
|
@@ -49,6 +49,7 @@ import progressBar from '../../components/ProgressBar/ProgressBar.styles';
|
|
|
49
49
|
import rangeCalendar from '../../components/RangeCalendar/RangeCalendar.styles';
|
|
50
50
|
import rockerButton from '../../components/RockerButton/RockerButton.styles';
|
|
51
51
|
import scrollBox from '../../components/ScrollBox/ScrollBox.styles';
|
|
52
|
+
import searchNav from '../../components/SearchNav/SearchNav.styles';
|
|
52
53
|
import separator from '../../components/Separator/Separator.styles';
|
|
53
54
|
import serverErrorBoundary from '../../components/ServerErrorBoundary/ServerErrorBoundary.styles';
|
|
54
55
|
import skeleton from '../../components/Skeleton/Skeleton.styles';
|
|
@@ -103,6 +104,7 @@ export default _objectSpread(_objectSpread({
|
|
|
103
104
|
progressBar: progressBar,
|
|
104
105
|
rockerButton: rockerButton,
|
|
105
106
|
scrollBox: scrollBox,
|
|
107
|
+
searchNav: searchNav,
|
|
106
108
|
separator: separator,
|
|
107
109
|
serverErrorBoundary: serverErrorBoundary,
|
|
108
110
|
slider: slider,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|