@pingux/astro 2.150.0-alpha.0 → 2.150.0-alpha.2

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 (86) hide show
  1. package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +1 -1
  2. package/lib/cjs/components/AstroProvider/AstroProvider.js +4 -4
  3. package/lib/cjs/components/Box/Box.js +5 -3
  4. package/lib/cjs/components/Box/Box.stories.d.ts +1 -0
  5. package/lib/cjs/components/Box/Box.stories.js +18 -1
  6. package/lib/cjs/components/DataTable/stories/DataTableNextGenComponent.js +1 -1
  7. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +4 -2
  8. package/lib/cjs/components/ListView/stories/ListViewNextGenComponent.js +1 -1
  9. package/lib/cjs/components/Modal/Modal.styles.js +1 -1
  10. package/lib/cjs/styles/colors.d.ts +6 -0
  11. package/lib/cjs/styles/colors.js +6 -0
  12. package/lib/cjs/styles/theme.js +1 -3
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +5 -6
  14. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +11 -7
  15. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +1 -1
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/footer.js +1 -1
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +2 -2
  18. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +3 -3
  19. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.js +1 -1
  20. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.js +6 -6
  21. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +1 -1
  22. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +20 -0
  23. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -7
  24. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +6 -7
  25. package/lib/cjs/styles/themes/next-gen/colors/colors.js +11 -7
  26. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -2
  27. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +156 -12
  28. package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.d.ts +11 -0
  29. package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +197 -0
  30. package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
  31. package/lib/cjs/styles/themes/next-gen/variants/box.d.ts +61 -0
  32. package/lib/cjs/styles/themes/next-gen/variants/box.js +58 -0
  33. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +106 -5
  34. package/lib/cjs/styles/themes/next-gen/variants/button.js +40 -4
  35. package/lib/cjs/styles/themes/next-gen/variants/callout.js +1 -1
  36. package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
  37. package/lib/cjs/styles/themes/next-gen/variants/dataTable.js +1 -1
  38. package/lib/cjs/styles/themes/next-gen/variants/input.js +23 -2
  39. package/lib/cjs/styles/themes/next-gen/variants/listview.js +1 -1
  40. package/lib/cjs/styles/themes/next-gen/variants/navbar.js +1 -1
  41. package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +3 -3
  42. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +1 -1
  43. package/lib/cjs/styles/themes/next-gen/variants/stepper.js +3 -3
  44. package/lib/cjs/styles/themes/next-gen/variants/table.js +2 -2
  45. package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +4 -4
  46. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +44 -0
  47. package/lib/cjs/styles/themes/next-gen/variants/variants.js +20 -28
  48. package/lib/cjs/types/iconButtonToggle.d.ts +2 -0
  49. package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +1 -1
  50. package/lib/components/AstroProvider/AstroProvider.js +4 -4
  51. package/lib/components/Box/Box.js +5 -3
  52. package/lib/components/Box/Box.stories.js +16 -0
  53. package/lib/components/DataTable/stories/DataTableNextGenComponent.js +1 -1
  54. package/lib/components/IconButtonToggle/IconButtonToggle.js +4 -2
  55. package/lib/components/ListView/stories/ListViewNextGenComponent.js +1 -1
  56. package/lib/components/Modal/Modal.styles.js +1 -1
  57. package/lib/styles/colors.js +6 -0
  58. package/lib/styles/theme.js +1 -3
  59. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +11 -7
  60. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +1 -1
  61. package/lib/styles/themeOverrides/nextGenDarkMode/variants/footer.js +1 -1
  62. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +2 -2
  63. package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +3 -3
  64. package/lib/styles/themeOverrides/nextGenDarkMode/variants/listview.js +1 -1
  65. package/lib/styles/themeOverrides/nextGenDarkMode/variants/message.js +6 -6
  66. package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +1 -1
  67. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -7
  68. package/lib/styles/themes/next-gen/colors/colors.js +11 -7
  69. package/lib/styles/themes/next-gen/convertedComponentList.js +2 -2
  70. package/lib/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +178 -0
  71. package/lib/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
  72. package/lib/styles/themes/next-gen/variants/box.js +49 -0
  73. package/lib/styles/themes/next-gen/variants/button.js +40 -4
  74. package/lib/styles/themes/next-gen/variants/callout.js +1 -1
  75. package/lib/styles/themes/next-gen/variants/cards.js +1 -1
  76. package/lib/styles/themes/next-gen/variants/dataTable.js +1 -1
  77. package/lib/styles/themes/next-gen/variants/input.js +23 -2
  78. package/lib/styles/themes/next-gen/variants/listview.js +1 -1
  79. package/lib/styles/themes/next-gen/variants/navbar.js +1 -1
  80. package/lib/styles/themes/next-gen/variants/navigationHeader.js +3 -3
  81. package/lib/styles/themes/next-gen/variants/panelHeader.js +1 -1
  82. package/lib/styles/themes/next-gen/variants/stepper.js +3 -3
  83. package/lib/styles/themes/next-gen/variants/table.js +2 -2
  84. package/lib/styles/themes/next-gen/variants/tableBase.js +4 -4
  85. package/lib/styles/themes/next-gen/variants/variants.js +20 -28
  86. package/package.json +1 -1
@@ -0,0 +1,178 @@
1
+ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
+ import React, { useState } from 'react';
3
+ import EyeOffOutlineIcon from '@pingux/mdi-react/EyeOffOutlineIcon';
4
+ import EyeOutlineIcon from '@pingux/mdi-react/EyeOutlineIcon';
5
+ import { Box, Button, IconButtonToggle, Item, SelectField, Text } from '../../../..';
6
+ import TextField from '../../../../components/TextField';
7
+ import { jsx as ___EmotionJSX } from "@emotion/react";
8
+ export default {
9
+ title: 'Form/Onyx Input Patterns',
10
+ component: TextField
11
+ };
12
+ var items = [{
13
+ name: 'Aardvark',
14
+ id: '1'
15
+ }, {
16
+ name: 'Kangaroo',
17
+ id: '2'
18
+ }, {
19
+ name: 'Snake',
20
+ id: '3'
21
+ }];
22
+ export var Default = function Default() {
23
+ return ___EmotionJSX(TextField, {
24
+ label: "Label",
25
+ helperText: "Help text for this field."
26
+ });
27
+ };
28
+ export var PasswordInput = function PasswordInput() {
29
+ var _useState = useState(false),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ isVisible = _useState2[0],
32
+ setIsVisible = _useState2[1];
33
+ var handleVisible = function handleVisible() {
34
+ setIsVisible(!isVisible);
35
+ };
36
+ return ___EmotionJSX(TextField, {
37
+ label: "Password",
38
+ type: "password",
39
+ containerProps: {
40
+ sx: {
41
+ '& input': {
42
+ paddingRight: '60px'
43
+ }
44
+ }
45
+ },
46
+ slots: {
47
+ inContainer: ___EmotionJSX(IconButtonToggle, {
48
+ toggledIcon: EyeOutlineIcon,
49
+ defaultIcon: EyeOffOutlineIcon,
50
+ onToggle: handleVisible,
51
+ isToggled: isVisible,
52
+ variant: "passwordVisibilityIcon",
53
+ buttonProps: {
54
+ 'aria-label': 'eye icon'
55
+ },
56
+ iconProps: {
57
+ size: 'xs'
58
+ }
59
+ })
60
+ }
61
+ });
62
+ };
63
+ export var InputGroup = function InputGroup() {
64
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextField, {
65
+ label: "Label",
66
+ helperText: "Help text for this field.",
67
+ containerProps: {
68
+ sx: {
69
+ '& input': {
70
+ paddingLeft: '70px'
71
+ }
72
+ }
73
+ },
74
+ slots: {
75
+ beforeInput: ___EmotionJSX(Box, {
76
+ variant: "box.inputGroupContentLeft",
77
+ p: "12px 20px"
78
+ }, ___EmotionJSX(Text, null, "@"))
79
+ }
80
+ }), ___EmotionJSX(TextField, {
81
+ label: "Label",
82
+ mt: "xl",
83
+ helperText: "Help text for this field.",
84
+ containerProps: {
85
+ sx: {
86
+ '& input': {
87
+ paddingRight: '160px'
88
+ }
89
+ }
90
+ },
91
+ slots: {
92
+ inContainer: ___EmotionJSX(Box, {
93
+ variant: "box.inputGroupContentRight",
94
+ p: "12px 20px"
95
+ }, ___EmotionJSX(Text, null, "@example.com"))
96
+ }
97
+ }));
98
+ };
99
+ export var ButtonInputGroup = function ButtonInputGroup() {
100
+ return ___EmotionJSX(TextField, {
101
+ label: "Label",
102
+ containerProps: {
103
+ sx: {
104
+ '& input': {
105
+ paddingRight: '100px'
106
+ }
107
+ }
108
+ },
109
+ slots: {
110
+ inContainer: ___EmotionJSX(Button, {
111
+ variant: "ButtonInputGroupContentRight"
112
+ }, "Button")
113
+ }
114
+ });
115
+ };
116
+ export var DropdownInputGroup = function DropdownInputGroup() {
117
+ var _useState3 = useState(items[0].name),
118
+ _useState4 = _slicedToArray(_useState3, 2),
119
+ selectedKey = _useState4[0],
120
+ setSelectedKey = _useState4[1];
121
+ var handleSelectionChange = function handleSelectionChange(key) {
122
+ return setSelectedKey(key);
123
+ };
124
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TextField, {
125
+ label: "Label",
126
+ containerProps: {
127
+ sx: {
128
+ '& > .field-control-wrapper > input': {
129
+ paddingRight: '160px'
130
+ }
131
+ }
132
+ },
133
+ slots: {
134
+ inContainer: ___EmotionJSX(Box, {
135
+ variant: "box.inputDropDownContentRight",
136
+ width: "150px",
137
+ mt: "-2px"
138
+ }, ___EmotionJSX(SelectField, {
139
+ items: items,
140
+ selectedKey: selectedKey,
141
+ onSelectionChange: handleSelectionChange,
142
+ variant: "forms.input.dropDownContentRight"
143
+ }, function (item) {
144
+ return ___EmotionJSX(Item, {
145
+ key: item.name,
146
+ "data-id": item.name
147
+ }, item.name);
148
+ }))
149
+ }
150
+ }), ___EmotionJSX(TextField, {
151
+ label: "Label",
152
+ mt: "xl",
153
+ containerProps: {
154
+ sx: {
155
+ '& > .field-control-wrapper > input': {
156
+ paddingLeft: '160px'
157
+ }
158
+ }
159
+ },
160
+ slots: {
161
+ beforeInput: ___EmotionJSX(Box, {
162
+ variant: "box.inputDropDownContentLeft",
163
+ width: "150px",
164
+ mt: "-2px"
165
+ }, ___EmotionJSX(SelectField, {
166
+ items: items,
167
+ selectedKey: selectedKey,
168
+ onSelectionChange: handleSelectionChange,
169
+ variant: "forms.input.dropDownContentLeft"
170
+ }, function (item) {
171
+ return ___EmotionJSX(Item, {
172
+ key: item.name,
173
+ "data-id": item.name
174
+ }, item.name);
175
+ }))
176
+ }
177
+ }));
178
+ };
@@ -55,7 +55,7 @@ var iconSizes = ['icon-100', 'icon-200', 'icon-300', 'icon-400', 'icon-500', 'ic
55
55
  var StickerSheetComponent = function StickerSheetComponent() {
56
56
  return ___EmotionJSX(Box, {
57
57
  sx: {
58
- backgroundColor: 'background.base'
58
+ backgroundColor: 'backgroundBase'
59
59
  },
60
60
  height: "100%",
61
61
  p: "lg",
@@ -0,0 +1,49 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ 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; }
11
+ 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; }
12
+ import colors from '../colors/colors';
13
+ export var commonContentProps = {
14
+ position: 'absolute',
15
+ top: '50%',
16
+ transform: 'translateY(-50%)',
17
+ height: '100%',
18
+ width: 'max-content',
19
+ justifyContent: 'center'
20
+ };
21
+ export var box = {
22
+ indeterminateCheckboxIcon: {
23
+ height: '19.25px',
24
+ width: '19.25px',
25
+ '&.is-disabled': {
26
+ '& rect[id="indeterminate-checkbox-icon-wrapper"]': {
27
+ fill: 'gray-500',
28
+ stroke: 'gray-500'
29
+ }
30
+ },
31
+ '&.is-focused': {
32
+ boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
33
+ }
34
+ },
35
+ inputDropDownContentLeft: _objectSpread(_objectSpread({}, commonContentProps), {}, {
36
+ left: 0
37
+ }),
38
+ inputGroupContentLeft: _objectSpread(_objectSpread({}, commonContentProps), {}, {
39
+ left: 0,
40
+ borderRight: "1px solid ".concat(colors['gray-500'])
41
+ }),
42
+ inputDropDownContentRight: _objectSpread(_objectSpread({}, commonContentProps), {}, {
43
+ right: 0
44
+ }),
45
+ inputGroupContentRight: _objectSpread(_objectSpread({}, commonContentProps), {}, {
46
+ right: 0,
47
+ borderLeft: "1px solid ".concat(colors['gray-500'])
48
+ })
49
+ };
@@ -13,6 +13,7 @@ import chroma from 'chroma-js';
13
13
  import { copyButton } from '../codeView/codeView';
14
14
  import colors from '../colors/colors';
15
15
  import tShirtSizes from '../customProperties/tShirtSizes';
16
+ import { commonContentProps } from './box';
16
17
  var primaryBlue = colors.primary,
17
18
  primaryBlueHover = colors.active_hover,
18
19
  primaryBluePress = colors.active_pressed,
@@ -109,8 +110,19 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
109
110
  var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
110
111
  backgroundColor: 'transparent',
111
112
  borderColor: 'border.base',
112
- color: 'text.secondary',
113
- '&.is-hovered': _objectSpread({}, boxShadowNone)
113
+ color: 'font.base',
114
+ '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
115
+ outlineColor: 'gray-700',
116
+ backgroundColor: 'background.secondary'
117
+ }),
118
+ '&.is-pressed': {
119
+ backgroundColor: 'background.secondary',
120
+ color: 'font.base'
121
+ },
122
+ '&.is-hovered': _objectSpread({
123
+ backgroundColor: 'background.secondary',
124
+ color: 'font.base'
125
+ }, boxShadowNone)
114
126
  });
115
127
  var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
116
128
  backgroundColor: 'transparent',
@@ -500,7 +512,21 @@ var iconButtons = {
500
512
  }
501
513
  }
502
514
  }),
503
- hintButton: _objectSpread({}, hintButton)
515
+ hintButton: _objectSpread({}, hintButton),
516
+ passwordVisibilityIcon: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), commonContentProps), {}, {
517
+ right: 0,
518
+ padding: '12px 20px',
519
+ border: '0px solid !important',
520
+ '&:hover, &.is-pressed': {
521
+ background: 'transparent',
522
+ boxShadow: 'none'
523
+ },
524
+ '&.is-focused': {
525
+ outline: '2px solid',
526
+ outlineOffset: '2px',
527
+ outlineColor: 'gray-700'
528
+ }
529
+ })
504
530
  };
505
531
  var listBoxLink = {
506
532
  color: 'active',
@@ -529,6 +555,15 @@ var listBoxLink = {
529
555
  }
530
556
  })
531
557
  };
558
+ var ButtonInputGroupContentRight = _objectSpread(_objectSpread(_objectSpread({}, tertiary), commonContentProps), {}, {
559
+ right: 0,
560
+ padding: '12px 20px',
561
+ borderRadius: '0px 4px 4px 0px !important',
562
+ borderWidth: '0px !important',
563
+ borderLeftWidth: '1px !important',
564
+ borderRightWidth: '1px !important',
565
+ borderLeftColor: 'gray-500'
566
+ });
532
567
  var buttons = {
533
568
  neutral: neutral,
534
569
  primary: primary,
@@ -552,6 +587,7 @@ var buttons = {
552
587
  iconButtons: iconButtons,
553
588
  modalCloseButton: modalCloseButton,
554
589
  aiChat: aiChat,
555
- paginationMenu: paginationMenu
590
+ paginationMenu: paginationMenu,
591
+ ButtonInputGroupContentRight: ButtonInputGroupContentRight
556
592
  };
557
593
  export default buttons;
@@ -1,7 +1,7 @@
1
1
  import tShirtSizes from '../customProperties/tShirtSizes';
2
2
  var base = {
3
3
  width: '100%',
4
- backgroundColor: 'background.secondary',
4
+ backgroundColor: 'light',
5
5
  lineHeight: 'md',
6
6
  p: 'md',
7
7
  border: 'none',
@@ -17,7 +17,7 @@ var interactive = {
17
17
  borderColor: 'border.base',
18
18
  transition: 'border-color .25s ease-in',
19
19
  '&.is-focused': {
20
- backgroundColor: 'background.base',
20
+ backgroundColor: 'backgroundBase',
21
21
  outline: '2px solid',
22
22
  outlineColor: 'focus',
23
23
  outlineOffset: '0px'
@@ -25,7 +25,7 @@ var tableRow = {
25
25
  }
26
26
  };
27
27
  var selectableTableRow = _objectSpread(_objectSpread({}, tableRow), {}, {
28
- bg: 'background.base',
28
+ bg: 'backgroundBase',
29
29
  '&.is-hovered': {
30
30
  bg: 'gray-100'
31
31
  },
@@ -24,7 +24,7 @@ export var input = {
24
24
  fontSize: 'md',
25
25
  fontFamily: 'standard',
26
26
  p: '0.75rem',
27
- backgroundColor: 'background.base',
27
+ backgroundColor: 'backgroundBase',
28
28
  borderColor: 'border.input',
29
29
  '&.is-focused': _objectSpread({}, defaultFocus),
30
30
  borderRadius: '4px',
@@ -167,7 +167,7 @@ input.multivaluesWrapper = _objectSpread(_objectSpread({}, fieldControlWrapper),
167
167
  border: '1px solid',
168
168
  borderColor: 'gray-900',
169
169
  '> input': {
170
- backgroundColor: 'background.secondary'
170
+ backgroundColor: 'backgroundSecondary'
171
171
  },
172
172
  '&:after': {
173
173
  display: 'none'
@@ -192,4 +192,25 @@ input.promptInputAttachmentWrapper = {
192
192
  overflowY: 'hidden',
193
193
  whiteSpace: 'nowrap',
194
194
  px: '.75rem'
195
+ };
196
+ input.dropDownContentRight = {
197
+ background: 'inherit',
198
+ '& button': {
199
+ borderRadius: '0px 4px 4px 0px !important',
200
+ '&.is-focused': {
201
+ outline: '2px solid',
202
+ outlineOffset: '2px',
203
+ outlineColor: 'gray-700'
204
+ }
205
+ }
206
+ };
207
+ input.dropDownContentLeft = {
208
+ '& button': {
209
+ borderRadius: '4px 0px 0px 4px !important',
210
+ '&.is-focused': {
211
+ outline: '2px solid',
212
+ outlineOffset: '2px',
213
+ outlineColor: 'gray-700'
214
+ }
215
+ }
195
216
  };
@@ -48,7 +48,7 @@ export var listViewItem = {
48
48
  },
49
49
  expandableStyledListItem: {
50
50
  px: 'lg',
51
- bg: 'background.base',
51
+ bg: 'backgroundBase',
52
52
  '&.is-first-item': {
53
53
  borderTopLeftRadius: borderRadius,
54
54
  borderTopRightRadius: borderRadius
@@ -23,7 +23,7 @@ export var navBar = {
23
23
  fontFamily: 'standard',
24
24
  width: '252px',
25
25
  p: 'sm',
26
- backgroundColor: 'background.base',
26
+ backgroundColor: 'backgroundBase',
27
27
  boxShadow: '0 .5rem 1rem rgba(0, 0, 0, .15)'
28
28
  },
29
29
  sectionContainer: {
@@ -57,7 +57,7 @@ var navigationHeader = {
57
57
  fontFamily: 'standard',
58
58
  borderBottom: '1px solid',
59
59
  borderColor: 'border.base',
60
- backgroundColor: 'background.base',
60
+ backgroundColor: 'backgroundBase',
61
61
  height: '4.5rem',
62
62
  justifyContent: 'center'
63
63
  },
@@ -66,10 +66,10 @@ var navigationHeader = {
66
66
  maxWidth: '1540px',
67
67
  mx: 'auto',
68
68
  width: '100%',
69
- backgroundColor: 'background.base'
69
+ backgroundColor: 'backgroundBase'
70
70
  },
71
71
  dropdownMenu: {
72
- backgroundColor: 'background.base',
72
+ backgroundColor: 'backgroundBase',
73
73
  maxWidth: 'unset',
74
74
  p: 'sm',
75
75
  '&:focus': _objectSpread({}, defaultFocus),
@@ -1,5 +1,5 @@
1
1
  var container = {
2
- bg: 'background.base',
2
+ bg: 'backgroundBase',
3
3
  border: 'none',
4
4
  minHeight: 72,
5
5
  maxHeight: 72
@@ -35,7 +35,7 @@ var step = {
35
35
  active: _objectSpread(_objectSpread({
36
36
  backgroundColor: 'active',
37
37
  borderColor: 'active',
38
- color: 'background.base'
38
+ color: 'backgroundBase'
39
39
  }, stepBase), {}, {
40
40
  '&:before': {
41
41
  content: '""',
@@ -46,7 +46,7 @@ var step = {
46
46
  position: 'absolute',
47
47
  borderRadius: '100%',
48
48
  borderStyle: 'solid',
49
- borderColor: 'background.base',
49
+ borderColor: 'backgroundBase',
50
50
  borderWidth: '2px'
51
51
  }
52
52
  }),
@@ -54,7 +54,7 @@ var step = {
54
54
  borderColor: 'active'
55
55
  }),
56
56
  inactive: _objectSpread({
57
- backgroundColor: 'background.base',
57
+ backgroundColor: 'backgroundBase',
58
58
  borderColor: 'blue-200',
59
59
  color: 'active'
60
60
  }, stepBase)
@@ -29,7 +29,7 @@ var head = {
29
29
  var body = {
30
30
  borderTopColor: 'border.base',
31
31
  borderBottom: 'unset',
32
- backgroundColor: 'background.base',
32
+ backgroundColor: 'backgroundBase',
33
33
  borderBottomLeftRadius: '16px',
34
34
  borderBottomRightRadius: '16px',
35
35
  '&& > tr:not(:last-child)': {
@@ -37,7 +37,7 @@ var body = {
37
37
  borderBottomColor: 'border.base'
38
38
  },
39
39
  '&& > tr:nth-of-type(odd) ': {
40
- backgroundColor: 'background.base'
40
+ backgroundColor: 'backgroundBase'
41
41
  },
42
42
  '&& > tr:last-child': {
43
43
  borderBottomLeftRadius: '16px',
@@ -46,7 +46,7 @@ var container = {
46
46
  }
47
47
  };
48
48
  var caption = {
49
- backgroundColor: 'background.base',
49
+ backgroundColor: 'backgroundBase',
50
50
  px: 'lg',
51
51
  color: 'text.primary',
52
52
  borderBottom: '1px solid',
@@ -62,7 +62,7 @@ var row = {
62
62
  bg: 'background.hover'
63
63
  },
64
64
  '&:nth-of-type(odd)': {
65
- bg: 'background.base',
65
+ bg: 'backgroundBase',
66
66
  '&.is-hovered': {
67
67
  bg: 'background.hover'
68
68
  }
@@ -70,7 +70,7 @@ var row = {
70
70
  };
71
71
  var thead = {
72
72
  borderBottomColor: 'border.base',
73
- backgroundColor: 'background.base',
73
+ backgroundColor: 'backgroundBase',
74
74
  '&.is-sticky': {
75
75
  boxShadow: "0 1px 0 ".concat(colors.border.base)
76
76
  }
@@ -87,7 +87,7 @@ var head = {
87
87
  var tbody = {
88
88
  borderTopColor: 'border.base',
89
89
  borderBottom: 'unset',
90
- backgroundColor: 'background.base',
90
+ backgroundColor: 'backgroundBase',
91
91
  borderBottomLeftRadius: borderRadius,
92
92
  borderBottomRightRadius: borderRadius
93
93
  };
@@ -12,9 +12,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12
12
  import attachment from '../../../../components/AIComponents/Attachment/Attachment.styles';
13
13
  import skeleton from '../../../../components/Skeleton/Skeleton.styles';
14
14
  import codeView from '../codeView/codeView';
15
- import colors from '../colors/colors';
16
15
  import accordion from './accordion';
17
16
  import { avatar } from './avatar';
17
+ import { box } from './box';
18
18
  import button, { defaultFocus } from './button';
19
19
  import callout from './callout';
20
20
  import { dataTable } from './dataTable';
@@ -111,12 +111,18 @@ var modal = {
111
111
  maxWidth: modalSize.full
112
112
  }
113
113
  },
114
+ headingContainer: {
115
+ borderBottom: '1px solid',
116
+ borderBottomColor: 'gray-200',
117
+ bg: 'backgroundBase',
118
+ borderRadius: '1em 1em 0px 0px'
119
+ },
114
120
  container: {
115
121
  justifyContent: 'start'
116
122
  },
117
123
  header: {
118
124
  pt: 'lg',
119
- bg: 'background.base',
125
+ bg: 'backgroundBase',
120
126
  mb: 'lg'
121
127
  }
122
128
  };
@@ -148,12 +154,12 @@ var listBox = {
148
154
  },
149
155
  '&.is-condensed': {
150
156
  pl: 'md',
151
- bg: 'background.base',
157
+ bg: 'backgroundBase',
152
158
  '&.is-selected': {
153
- bg: 'background.base'
159
+ bg: 'backgroundBase'
154
160
  },
155
161
  '&.is-focused': {
156
- bg: 'background.base'
162
+ bg: 'backgroundBase'
157
163
  }
158
164
  }
159
165
  }
@@ -189,11 +195,11 @@ var progressBar = {
189
195
  };
190
196
  var overlayPanel = {
191
197
  container: {
192
- backgroundColor: 'background.base',
198
+ backgroundColor: 'backgroundBase',
193
199
  borderColor: 'border.hairline'
194
200
  },
195
201
  aiPanelContainer: {
196
- backgroundColor: 'background.base',
202
+ backgroundColor: 'backgroundBase',
197
203
  border: 'none',
198
204
  borderLeft: 'none',
199
205
  position: 'fixed',
@@ -227,30 +233,30 @@ var overlayPanel = {
227
233
  alignSelf: 'center'
228
234
  },
229
235
  innerPanel: {
230
- backgroundColor: 'background.base'
236
+ backgroundColor: 'backgroundBase'
231
237
  }
232
238
  };
233
239
  var buttonBar = {
234
240
  container: {
235
241
  gap: 'sm',
236
- backgroundColor: 'background.base'
242
+ backgroundColor: 'backgroundBase'
237
243
  },
238
244
  justifyRightContainer: {
239
245
  gap: 'sm',
240
- backgroundColor: 'background.base'
246
+ backgroundColor: 'backgroundBase'
241
247
  }
242
248
  };
243
249
  var rockerButton = {
244
250
  innerContainer: {
245
251
  boxShadow: 'none',
246
- backgroundColor: 'common.background.base',
252
+ backgroundColor: 'common.backgroundBase',
247
253
  borderRadius: '50px',
248
254
  padding: 0,
249
255
  border: 'none'
250
256
  },
251
257
  thumbSwitch: {
252
258
  textTransform: 'none',
253
- backgroundColor: 'common.background.base',
259
+ backgroundColor: 'common.backgroundBase',
254
260
  padding: 'md',
255
261
  height: '50px',
256
262
  color: 'active',
@@ -302,7 +308,7 @@ var loader = {
302
308
  py: 'sm'
303
309
  },
304
310
  circleSpinner: {
305
- borderColor: 'background.base'
311
+ borderColor: 'backgroundBase'
306
312
  }
307
313
  };
308
314
  var breadcrumb = {
@@ -376,21 +382,7 @@ export default {
376
382
  attachment: attachment,
377
383
  avatar: avatar,
378
384
  breadcrumb: breadcrumb,
379
- box: {
380
- indeterminateCheckboxIcon: {
381
- height: '19.25px',
382
- width: '19.25px',
383
- '&.is-disabled': {
384
- '& rect[id="indeterminate-checkbox-icon-wrapper"]': {
385
- fill: 'gray-500',
386
- stroke: 'gray-500'
387
- }
388
- },
389
- '&.is-focused': {
390
- boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
391
- }
392
- }
393
- },
385
+ box: box,
394
386
  buttonBar: buttonBar,
395
387
  callout: callout,
396
388
  codeView: codeView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.150.0-alpha.0",
3
+ "version": "2.150.0-alpha.2",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",