@pingux/astro 2.199.0-alpha.0 → 2.200.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/cjs/components/Button/Buttons.styles.d.ts +86 -0
  2. package/lib/cjs/components/Button/Buttons.styles.js +12 -2
  3. package/lib/cjs/components/Icon/IconSymbol.js +1 -1
  4. package/lib/cjs/components/Icon/IconSymbol.test.js +8 -1
  5. package/lib/cjs/components/Icon/MaterialSymbolIcon.stories.js +133 -135
  6. package/lib/cjs/components/LinkSelectField/LinkSelectField.js +15 -12
  7. package/lib/cjs/components/ListBox/ListBoxSection.js +1 -3
  8. package/lib/cjs/components/ListBox/Option.js +1 -1
  9. package/lib/cjs/components/Separator/Separator.styles.js +2 -2
  10. package/lib/cjs/components/Text/Text.styles.d.ts +11 -0
  11. package/lib/cjs/components/Text/Text.styles.js +12 -7
  12. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
  13. package/lib/cjs/index.d.ts +1 -1
  14. package/lib/cjs/index.js +1 -1
  15. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +1 -1
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.d.ts +1 -2
  18. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.js +1 -2
  19. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +3 -0
  20. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
  21. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +2 -5
  22. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +1 -3
  23. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
  24. package/lib/cjs/styles/themes/astro/customProperties/index.js +3 -1
  25. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.d.ts +1 -0
  26. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +3 -1
  27. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
  28. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +1 -1
  29. package/lib/cjs/styles/themes/next-gen/forms.d.ts +2 -4
  30. package/lib/cjs/styles/themes/next-gen/forms.js +1 -2
  31. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +46 -17
  32. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +25 -1
  33. package/lib/cjs/styles/themes/next-gen/variants/button.js +23 -2
  34. package/lib/cjs/styles/themes/next-gen/variants/menu.d.ts +0 -2
  35. package/lib/cjs/styles/themes/next-gen/variants/menu.js +1 -3
  36. package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.d.ts +3 -0
  37. package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +4 -1
  38. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -0
  39. package/lib/cjs/styles/themes/next-gen/variants/text.js +8 -1
  40. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +13 -14
  41. package/lib/cjs/styles/themes/next-gen/variants/variants.js +10 -12
  42. package/lib/cjs/types/icon.d.ts +1 -1
  43. package/lib/cjs/types/navBar.d.ts +1 -1
  44. package/lib/cjs/utils/docUtils/iconSizeProps.d.ts +10 -2
  45. package/lib/cjs/utils/docUtils/iconSizeProps.js +17 -5
  46. package/lib/components/Button/Buttons.styles.js +11 -1
  47. package/lib/components/Icon/IconSymbol.js +1 -1
  48. package/lib/components/Icon/IconSymbol.test.js +8 -1
  49. package/lib/components/Icon/MaterialSymbolIcon.stories.js +131 -134
  50. package/lib/components/LinkSelectField/LinkSelectField.js +14 -11
  51. package/lib/components/ListBox/ListBoxSection.js +1 -3
  52. package/lib/components/ListBox/Option.js +1 -1
  53. package/lib/components/Separator/Separator.styles.js +2 -2
  54. package/lib/components/Text/Text.styles.js +12 -7
  55. package/lib/index.js +1 -1
  56. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +1 -1
  57. package/lib/styles/themeOverrides/nextGenDarkMode/variants/menu.js +1 -2
  58. package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
  59. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +1 -3
  60. package/lib/styles/themes/astro/customProperties/index.js +3 -1
  61. package/lib/styles/themes/next-gen/customProperties/customSizes.js +3 -1
  62. package/lib/styles/themes/next-gen/customProperties/index.js +1 -1
  63. package/lib/styles/themes/next-gen/forms.js +1 -2
  64. package/lib/styles/themes/next-gen/variants/button.js +23 -2
  65. package/lib/styles/themes/next-gen/variants/menu.js +1 -3
  66. package/lib/styles/themes/next-gen/variants/popoverMenu.js +4 -1
  67. package/lib/styles/themes/next-gen/variants/text.js +8 -1
  68. package/lib/styles/themes/next-gen/variants/variants.js +10 -12
  69. package/lib/utils/docUtils/iconSizeProps.js +17 -5
  70. package/package.json +2 -2
@@ -39,10 +39,9 @@ export var select = {
39
39
  color: 'text.primary'
40
40
  },
41
41
  arrow: {
42
- width: '20px',
43
- height: '20px',
44
42
  alignItems: 'center',
45
43
  justifyContent: 'center',
44
+ ml: 'xs',
46
45
  '& > svg': {
47
46
  minWidth: tShirtSizes.xs,
48
47
  width: tShirtSizes.xs,
@@ -226,7 +226,7 @@ var checkboxActiveButton = _objectSpread(_objectSpread({}, buttonBase), {}, {
226
226
  color: 'white'
227
227
  });
228
228
  var link = {
229
- color: 'active',
229
+ color: astroTokens.color.font.link,
230
230
  transition: 'color, .15s, ease-in-and-out',
231
231
  fontSize: 'md',
232
232
  textDecoration: 'none',
@@ -242,6 +242,26 @@ var link = {
242
242
  outline: 'none'
243
243
  }
244
244
  };
245
+ var selectLink = _objectSpread(_objectSpread({}, link), {}, {
246
+ textDecoration: 'none',
247
+ px: '0',
248
+ '&.is-hovered': {
249
+ textDecoration: 'none'
250
+ },
251
+ '&.is-pressed': {
252
+ textDecoration: 'none'
253
+ },
254
+ '&.is-focused': {
255
+ textDecoration: 'none',
256
+ outline: 'none',
257
+ 'span.link-select-field-placeholder': {
258
+ textDecoration: 'underline'
259
+ },
260
+ 'span.material-symbols-outlined': {
261
+ textDecoration: 'none'
262
+ }
263
+ }
264
+ });
245
265
  var paginationMenu = _objectSpread(_objectSpread({}, link), {}, {
246
266
  px: '0px',
247
267
  py: '0px',
@@ -612,6 +632,7 @@ var buttons = {
612
632
  modalCloseButton: modalCloseButton,
613
633
  aiChat: aiChat,
614
634
  paginationMenu: paginationMenu,
615
- ButtonInputGroupContentRight: ButtonInputGroupContentRight
635
+ ButtonInputGroupContentRight: ButtonInputGroupContentRight,
636
+ selectLink: selectLink
616
637
  };
617
638
  export default buttons;
@@ -1,8 +1,6 @@
1
1
  import { astroTokens } from '@pingux/onyx-tokens';
2
2
  export var menu = {
3
- p: 'sm',
4
- border: '1px solid',
5
- borderColor: 'border.base'
3
+ p: 'sm'
6
4
  };
7
5
  export var menuSection = {
8
6
  sectionTitle: {
@@ -2,8 +2,11 @@ import { astroTokens } from '@pingux/onyx-tokens';
2
2
  var container = {
3
3
  minWidth: '150px',
4
4
  maxWidth: '260px',
5
- boxShadow: '0px 8px 16px 0px rgba(0, 0, 0, 0.176)',
5
+ boxShadow: '0px 8px 16px 0px rgba(0, 0, 0, 0.18)',
6
6
  transition: 'opacity 200ms ease',
7
+ border: '1px solid',
8
+ borderColor: astroTokens.color.common.border,
9
+ borderRadius: astroTokens.radius.md,
7
10
  '&.animate': {
8
11
  opacity: 0
9
12
  },
@@ -119,6 +119,9 @@ var stepperTabContentHeader = _objectSpread(_objectSpread({}, hTags.H2), {}, {
119
119
  var modalTitle = _objectSpread(_objectSpread({}, hTags.H3), {}, {
120
120
  lineHeight: '2rem'
121
121
  });
122
+ var label = {
123
+ fontSize: fontSizes.label
124
+ };
122
125
  export var text = _objectSpread(_objectSpread({
123
126
  base: {
124
127
  lineHeight: 'body'
@@ -241,5 +244,9 @@ export var text = _objectSpread(_objectSpread({
241
244
  lineHeight: 'body'
242
245
  },
243
246
  stepperTabContent: stepperTabContent,
244
- stepperTabContentHeader: stepperTabContentHeader
247
+ stepperTabContentHeader: stepperTabContentHeader,
248
+ label: label,
249
+ linkSelectFieldLabel: _objectSpread(_objectSpread({}, label), {}, {
250
+ color: astroTokens.color.font.link
251
+ })
245
252
  });
@@ -150,34 +150,32 @@ var modal = {
150
150
  };
151
151
  var listBox = {
152
152
  container: {
153
- pl: 'sm',
154
- pr: 0,
155
- py: 'xs'
153
+ p: astroTokens.spacing.sm
156
154
  },
157
155
  option: {
158
- py: '.75rem',
159
- pl: '.75rem',
160
- pr: 'md',
161
- mr: 'sm',
156
+ py: astroTokens.spacing['md-s'],
157
+ pl: astroTokens.spacing['md-s'],
158
+ pr: astroTokens.spacing.md,
162
159
  justifyContent: 'space-between',
163
- borderRadius: '4px',
160
+ borderRadius: astroTokens.radius.md,
164
161
  lineHeight: 'body',
165
162
  color: 'gray-700',
166
163
  '&.is-focused': {
167
164
  color: 'font.hover',
168
165
  bg: 'gray-100',
169
- borderRadius: '4px'
166
+ borderRadius: astroTokens.radius.md
170
167
  },
171
168
  '&.is-focus-visible': {
172
169
  boxShadow: 'inset 0 0 0 1px #1a73e8',
173
- borderRadius: '4px',
170
+ borderRadius: astroTokens.radius.md,
174
171
  zIndex: 1
175
172
  },
176
173
  '&.is-selected': {
174
+ fontWeight: '0',
177
175
  color: 'black',
178
176
  bg: 'lightblue',
179
177
  pl: '.75rem',
180
- borderRadius: '4px',
178
+ borderRadius: astroTokens.radius.md,
181
179
  '&.is-focused': {
182
180
  color: 'text.primary'
183
181
  },
@@ -190,7 +188,7 @@ var listBox = {
190
188
  bg: 'lightblue'
191
189
  },
192
190
  '&.is-condensed': {
193
- pl: 'md',
191
+ pl: astroTokens.spacing.md,
194
192
  bg: 'backgroundBase',
195
193
  color: 'gray-700',
196
194
  '&.is-selected': {
@@ -1,12 +1,24 @@
1
- import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
1
+ var _context;
2
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
3
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
2
4
  import PropTypes from 'prop-types';
3
- import { tShirtSizes } from '../devUtils/constants/tShirtSizes';
5
+ var iconSizes = ['xxs', 'xs', 'sm', 'md'];
4
6
  export var sizeArgTypes = {
5
7
  size: {
6
- control: 'select',
7
- description: "The size of the icon container. If given a number value, it will be converted to pixels. \n Tshirt sizing is recommended and can be passed to the size prop as \"xxs\", \"xs\", \"sm\" , \"md\" \n rendering 9, 15, 20, and 25 pixel svg containers."
8
+ control: {
9
+ type: 'select'
10
+ },
11
+ options: iconSizes,
12
+ description: 'The size of the icon. Accepts a t-shirt size ("xxs", "xs", "sm", "md") or a number value in pixels. Rendered pixel size may vary by theme.',
13
+ table: {
14
+ type: {
15
+ summary: _mapInstanceProperty(iconSizes).call(iconSizes, function (k) {
16
+ return "\"".concat(k, "\"");
17
+ }).join(' | ')
18
+ }
19
+ }
8
20
  }
9
21
  };
10
22
  export var sizePropTypes = {
11
- size: PropTypes.oneOf(_Object$keys(tShirtSizes))
23
+ size: PropTypes.oneOf(_concatInstanceProperty(_context = []).call(_context, iconSizes))
12
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.199.0-alpha.0",
3
+ "version": "2.200.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,6 @@
44
44
  "@fortawesome/react-fontawesome": "^0.2.2",
45
45
  "@internationalized/date": "^3.5.3",
46
46
  "@internationalized/number": "^3.6.0",
47
- "@material-symbols/font-400": "^0.40.2",
48
47
  "@monaco-editor/react": "4.4.2",
49
48
  "@pingux/mdi-react": "^1.2.0",
50
49
  "@pingux/onyx-tokens": "^0.18.0",
@@ -110,6 +109,7 @@
110
109
  "listbox-virtualizer": "npm:@react-aria/virtualizer@3.6.0",
111
110
  "lodash": "^4.17.23",
112
111
  "markdown-to-jsx": "^7.7.4",
112
+ "material-symbols": "^0.44.9",
113
113
  "monaco-editor": "0.34.1",
114
114
  "pluralize": "^8.0.0",
115
115
  "prism-react-renderer": "1.2.1",