@pingux/astro 2.154.1 → 2.155.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/lib/cjs/components/Button/Buttons.styles.d.ts +859 -0
  2. package/lib/cjs/components/Button/Buttons.styles.js +17 -1
  3. package/lib/cjs/components/Card/Card.mdx +5 -1
  4. package/lib/cjs/components/Card/Card.stories.d.ts +1 -0
  5. package/lib/cjs/components/Card/Card.stories.js +11 -2
  6. package/lib/cjs/components/SearchNav/MoreItemsPopover.d.ts +4 -0
  7. package/lib/cjs/components/SearchNav/MoreItemsPopover.js +74 -0
  8. package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.d.ts +6 -0
  9. package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.js +101 -0
  10. package/lib/cjs/components/SearchNav/SearchNav.d.ts +13 -0
  11. package/lib/cjs/components/SearchNav/SearchNav.js +218 -0
  12. package/lib/cjs/components/SearchNav/SearchNav.stories.d.ts +6 -0
  13. package/lib/cjs/components/SearchNav/SearchNav.stories.js +76 -0
  14. package/lib/cjs/components/SearchNav/SearchNav.styles.d.ts +33 -0
  15. package/lib/cjs/components/SearchNav/SearchNav.styles.js +51 -0
  16. package/lib/cjs/components/SearchNav/SearchNav.test.d.ts +1 -0
  17. package/lib/cjs/components/SearchNav/SearchNav.test.js +610 -0
  18. package/lib/cjs/components/SearchNav/SearchNavTab.d.ts +4 -0
  19. package/lib/cjs/components/SearchNav/SearchNavTab.js +69 -0
  20. package/lib/cjs/components/SearchNav/index.d.ts +1 -0
  21. package/lib/cjs/components/SearchNav/index.js +14 -0
  22. package/lib/cjs/components/Text/Text.styles.d.ts +2548 -0
  23. package/lib/cjs/components/Text/Text.styles.js +23 -1
  24. package/lib/cjs/index.d.ts +2 -0
  25. package/lib/cjs/index.js +45 -26
  26. package/lib/cjs/styles/colors.d.ts +6 -0
  27. package/lib/cjs/styles/colors.js +4 -0
  28. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
  29. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +2 -1
  30. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +9 -0
  31. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -0
  32. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +14 -0
  33. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +18 -4
  34. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +12 -0
  35. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +12 -0
  36. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
  37. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +3 -2
  38. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +37 -2
  39. package/lib/cjs/styles/themes/next-gen/next-gen.js +3 -0
  40. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +9 -0
  41. package/lib/cjs/styles/themes/next-gen/variants/button.js +10 -0
  42. package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +19 -2
  43. package/lib/cjs/styles/themes/next-gen/variants/cards.js +14 -5
  44. package/lib/cjs/styles/themes/next-gen/variants/searchNav.d.ts +6 -0
  45. package/lib/cjs/styles/themes/next-gen/variants/searchNav.js +14 -0
  46. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +1 -0
  47. package/lib/cjs/styles/themes/next-gen/variants/text.js +2 -1
  48. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +5 -0
  49. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  50. package/lib/cjs/styles/variants/variants.js +2 -0
  51. package/lib/cjs/types/searchNav.d.ts +49 -0
  52. package/lib/cjs/types/searchNav.js +6 -0
  53. package/lib/components/Button/Buttons.styles.js +18 -2
  54. package/lib/components/Card/Card.mdx +5 -1
  55. package/lib/components/Card/Card.stories.js +8 -0
  56. package/lib/components/SearchNav/MoreItemsPopover.js +60 -0
  57. package/lib/components/SearchNav/SearchNav.chromatic.stories.js +86 -0
  58. package/lib/components/SearchNav/SearchNav.js +203 -0
  59. package/lib/components/SearchNav/SearchNav.stories.js +61 -0
  60. package/lib/components/SearchNav/SearchNav.styles.js +43 -0
  61. package/lib/components/SearchNav/SearchNav.test.js +601 -0
  62. package/lib/components/SearchNav/SearchNavTab.js +55 -0
  63. package/lib/components/SearchNav/index.js +1 -0
  64. package/lib/components/Text/Text.styles.js +21 -1
  65. package/lib/index.js +2 -0
  66. package/lib/styles/colors.js +4 -0
  67. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +2 -1
  68. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -0
  69. package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +18 -4
  70. package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +12 -0
  71. package/lib/styles/themes/next-gen/convertedComponentList.js +3 -2
  72. package/lib/styles/themes/next-gen/next-gen.js +3 -0
  73. package/lib/styles/themes/next-gen/variants/button.js +10 -0
  74. package/lib/styles/themes/next-gen/variants/cards.js +14 -5
  75. package/lib/styles/themes/next-gen/variants/searchNav.js +6 -0
  76. package/lib/styles/themes/next-gen/variants/text.js +2 -1
  77. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  78. package/lib/styles/variants/variants.js +2 -0
  79. package/lib/types/searchNav.js +1 -0
  80. 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';
@@ -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',
@@ -1,15 +1,29 @@
1
1
  var cards = {
2
2
  dark: {
3
3
  border: '1px solid',
4
- borderColor: 'border.base',
5
- boxShadow: '0 1px 3px 0px rgba(0,0,0, 0.13)',
4
+ borderColor: 'border.attachment',
5
+ boxShadow: 'standard',
6
6
  bg: 'transparent'
7
7
  },
8
8
  light: {
9
9
  border: '1px solid',
10
- borderColor: 'border.base',
11
- boxShadow: '0 1px 3px 0px rgba(0,0,0, 0.13)',
10
+ borderColor: 'border.attachment',
11
+ boxShadow: 'standard',
12
12
  bg: 'transparent'
13
+ },
14
+ withShadow: {
15
+ boxShadow: 'none',
16
+ borderColor: 'border.attachment',
17
+ backgroundColor: 'transparent'
18
+ },
19
+ interactive: {
20
+ borderColor: 'border.attachment'
21
+ },
22
+ container: {
23
+ borderColor: 'border.attachment'
24
+ },
25
+ activeCard: {
26
+ borderColor: 'border.attachment'
13
27
  }
14
28
  };
15
29
  export default cards;
@@ -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'],
@@ -18,7 +18,8 @@ export var astroBlacklistStory = {
18
18
  StatusIcon: ['Default', 'In Rocker Button'],
19
19
  Avatar: ['Size Variation', 'Color Variation', 'Icon Variation', 'Square Variation', 'Logo Variation'],
20
20
  Text: ['Onyx'],
21
- Loader: ['Circular', 'Custom Circular']
21
+ Loader: ['Circular', 'Custom Circular'],
22
+ Card: ['With Shadow']
22
23
  };
23
24
  export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer', 'Onyx Input Patterns'];
24
25
  export default nextGenConvertedComponents;
@@ -48,6 +48,9 @@ var nextGenTheme = {
48
48
  heading: '"Open Sans", sans-serif',
49
49
  codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
50
50
  },
51
+ shadows: {
52
+ standard: '0 1px 3px 0 rgba(0, 0, 0, 0.13)'
53
+ },
51
54
  sizes: sizes,
52
55
  badges: badges,
53
56
  navigationHeader: navigationHeader,
@@ -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,
@@ -14,7 +14,7 @@ var interactive = {
14
14
  boxShadow: 'none',
15
15
  borderRadius: '1rem',
16
16
  border: '1px solid',
17
- borderColor: 'border.base',
17
+ borderColor: 'gray-200',
18
18
  transition: 'border-color .25s ease-in',
19
19
  '&.is-focused': {
20
20
  backgroundColor: 'backgroundBase',
@@ -30,8 +30,13 @@ var interactive = {
30
30
  };
31
31
  var container = _objectSpread(_objectSpread({}, flat), {}, {
32
32
  p: 'lg',
33
- borderColor: 'border.base',
34
- lineHeight: 1.6
33
+ borderColor: 'gray-200',
34
+ lineHeight: 'body',
35
+ boxShadow: 'none'
36
+ });
37
+ var withShadow = _objectSpread(_objectSpread({}, container), {}, {
38
+ boxShadow: 'standard',
39
+ backgroundColor: 'backgroundBase'
35
40
  });
36
41
  var dark = _objectSpread(_objectSpread({}, flat), {}, {
37
42
  border: 'none',
@@ -46,7 +51,7 @@ var light = _objectSpread(_objectSpread({}, flat), {}, {
46
51
  gap: 'lg'
47
52
  });
48
53
  var activeCard = _objectSpread(_objectSpread({}, interactive), {}, {
49
- borderColor: 'border.base',
54
+ borderColor: 'gray-200',
50
55
  '&.is-hovered': {
51
56
  borderColor: 'active',
52
57
  bg: 'default'
@@ -85,5 +90,9 @@ export default {
85
90
  container: container,
86
91
  suggestionColumn: suggestionColumn,
87
92
  suggestionRow: suggestionRow,
88
- tableWrapper: tableWrapper
93
+ tableWrapper: tableWrapper,
94
+ withShadow: withShadow,
95
+ flat: {
96
+ boxShadow: 'none'
97
+ }
89
98
  };
@@ -0,0 +1,6 @@
1
+ var tab = {
2
+ marginBottom: '-1.5px'
3
+ };
4
+ export default {
5
+ tab: tab
6
+ };
@@ -120,7 +120,8 @@ export var text = _objectSpread(_objectSpread({
120
120
  lineHeight: '24px'
121
121
  },
122
122
  tabLabel: {
123
- color: 'text.primary'
123
+ color: 'text.primary',
124
+ wordBreak: 'normal'
124
125
  },
125
126
  placeholder: {
126
127
  color: 'gray-600',
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.154.1",
3
+ "version": "2.155.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",