@pingux/astro 2.161.1-alpha.0 → 2.161.1-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 (43) hide show
  1. package/lib/cjs/components/Avatar/Avatar.js +5 -4
  2. package/lib/cjs/components/Avatar/stories/AvatarNextGen.js +3 -1
  3. package/lib/cjs/components/PanelHeader/PanelHeader.js +1 -1
  4. package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +31 -6
  5. package/lib/cjs/components/Stepper/Stepper.stories.js +23 -34
  6. package/lib/cjs/components/Stepper/Stepper.styles.js +1 -1
  7. package/lib/cjs/components/Text/Text.styles.d.ts +7 -0
  8. package/lib/cjs/components/Text/Text.styles.js +10 -1
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.d.ts +0 -1
  10. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +0 -1
  11. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/stepper.d.ts +15 -0
  12. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/stepper.js +22 -0
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +14 -1
  14. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
  15. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +50 -34
  16. package/lib/cjs/styles/themes/next-gen/variants/avatar.d.ts +0 -2
  17. package/lib/cjs/styles/themes/next-gen/variants/avatar.js +0 -2
  18. package/lib/cjs/styles/themes/next-gen/variants/stepper.d.ts +38 -32
  19. package/lib/cjs/styles/themes/next-gen/variants/stepper.js +31 -24
  20. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +12 -0
  21. package/lib/cjs/styles/themes/next-gen/variants/text.js +13 -2
  22. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +38 -34
  23. package/lib/cjs/utils/designUtils/figmaLinks.d.ts +1 -0
  24. package/lib/cjs/utils/designUtils/figmaLinks.js +1 -0
  25. package/lib/cjs/utils/devUtils/constants/images.d.ts +1 -0
  26. package/lib/cjs/utils/devUtils/constants/images.js +3 -2
  27. package/lib/components/Avatar/Avatar.js +5 -4
  28. package/lib/components/Avatar/stories/AvatarNextGen.js +3 -1
  29. package/lib/components/PanelHeader/PanelHeader.js +1 -1
  30. package/lib/components/PanelHeader/PanelHeader.stories.js +31 -6
  31. package/lib/components/Stepper/Stepper.stories.js +23 -34
  32. package/lib/components/Stepper/Stepper.styles.js +1 -1
  33. package/lib/components/Text/Text.styles.js +10 -1
  34. package/lib/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +0 -1
  35. package/lib/styles/themeOverrides/nextGenDarkMode/variants/stepper.js +15 -0
  36. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
  37. package/lib/styles/themes/next-gen/variants/avatar.js +0 -2
  38. package/lib/styles/themes/next-gen/variants/stepper.js +31 -24
  39. package/lib/styles/themes/next-gen/variants/text.js +13 -2
  40. package/lib/tsconfig.lib.tsbuildinfo +1 -1
  41. package/lib/utils/designUtils/figmaLinks.js +1 -0
  42. package/lib/utils/devUtils/constants/images.js +2 -1
  43. package/package.json +1 -1
@@ -34,14 +34,15 @@ var Avatar = /*#__PURE__*/forwardRef(function (props, ref) {
34
34
  var _useStatusClasses = useStatusClasses(className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "is-".concat(color), color), "size-".concat(size), size), "font-size-".concat(size), src ? false : size), 'is-square', isSquare), 'is-image', src), 'is-logo', isLogo)),
35
35
  classNames = _useStatusClasses.classNames;
36
36
  if (src) {
37
- return ___EmotionJSX(Box, {
37
+ return ___EmotionJSX(Box, _extends({
38
38
  variant: "avatar",
39
39
  className: classNames
40
- }, ___EmotionJSX(ThemeUIAvatar, _extends({
40
+ }, others), ___EmotionJSX(ThemeUIAvatar, {
41
41
  ref: ref,
42
42
  alt: alt,
43
- src: src
44
- }, others)));
43
+ src: src,
44
+ size: size
45
+ }));
45
46
  }
46
47
  return ___EmotionJSX(Box, _extends({
47
48
  variant: "avatar",
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { Avatar } from '../../../index';
3
3
  import { jsx as ___EmotionJSX } from "@emotion/react";
4
4
  var AvatarNextGen = function AvatarNextGen() {
5
- return ___EmotionJSX(Avatar, null);
5
+ return ___EmotionJSX(Avatar, {
6
+ color: "cyan"
7
+ });
6
8
  };
7
9
  export default AvatarNextGen;
@@ -51,7 +51,7 @@ var PanelHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
51
51
  }
52
52
  }));
53
53
  var renderAvatar = ___EmotionJSX(Avatar, _extends({
54
- color: "green",
54
+ color: image !== null && image !== void 0 && image.src ? false : 'green',
55
55
  src: image === null || image === void 0 ? void 0 : image.src,
56
56
  isSquare: !!(image !== null && image !== void 0 && image.src),
57
57
  size: "avatar.lg",
@@ -6,7 +6,7 @@ import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
6
6
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
7
7
  import { Box, Breadcrumbs, Item, PanelHeader, PanelHeaderCloseButton, PanelHeaderMenu, PanelHeaderSwitchField } from '../../index';
8
8
  import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
9
- import { pingImg } from '../../utils/devUtils/constants/images';
9
+ import { pingImg, userImagePanelHeader } from '../../utils/devUtils/constants/images';
10
10
  import { SharedItemArgTypes } from '../ListViewItem/listViewItemAttributes';
11
11
  import PanelHeaderReadMe from './PanelHeader.mdx';
12
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -82,12 +82,15 @@ export var WithImage = function WithImage(args) {
82
82
  return ___EmotionJSX(PanelHeader, _extends({}, args, {
83
83
  data: {
84
84
  image: {
85
- src: pingImg,
85
+ src: userImagePanelHeader,
86
86
  alt: 'Ping Identity Logo',
87
- 'aria-label': 'Ping Identity Logo',
88
- avatarDefaultText: 'FV'
87
+ 'aria-label': 'Ping Identity Logo'
89
88
  },
89
+ avatarDefaultText: 'FV',
90
90
  text: 'Fons Vernall'
91
+ },
92
+ avatarProps: {
93
+ size: 'lg'
91
94
  }
92
95
  }));
93
96
  };
@@ -97,6 +100,28 @@ WithImage.parameters = {
97
100
  url: FIGMA_LINKS.panelHeader.withImage
98
101
  }
99
102
  };
103
+ export var WithAvatar = function WithAvatar(args) {
104
+ return ___EmotionJSX(PanelHeader, _extends({}, args, {
105
+ data: {
106
+ image: {
107
+ src: pingImg,
108
+ alt: 'Ping Identity Logo',
109
+ 'aria-label': 'Ping Identity Logo'
110
+ },
111
+ text: 'Fons Vernall'
112
+ },
113
+ avatarProps: {
114
+ size: 'lg',
115
+ isLogo: true
116
+ }
117
+ }));
118
+ };
119
+ WithAvatar.parameters = {
120
+ design: {
121
+ type: 'figma',
122
+ url: FIGMA_LINKS.panelHeader.WithAvatar
123
+ }
124
+ };
100
125
  export var WithBreadcrumbs = function WithBreadcrumbs() {
101
126
  var breadcrumbs = ___EmotionJSX(Breadcrumbs, {
102
127
  icon: ChevronRightIcon
@@ -115,7 +140,7 @@ export var WithBreadcrumbs = function WithBreadcrumbs() {
115
140
  slots: {
116
141
  rightOfData: breadcrumbs
117
142
  }
118
- });
143
+ }, ___EmotionJSX(PanelHeaderCloseButton, null));
119
144
  };
120
145
  export var BreadcrumbsWithExtraLongText = function BreadcrumbsWithExtraLongText() {
121
146
  var breadcrumbs = ___EmotionJSX(Box, {
@@ -137,7 +162,7 @@ export var BreadcrumbsWithExtraLongText = function BreadcrumbsWithExtraLongText(
137
162
  slots: {
138
163
  rightOfData: breadcrumbs
139
164
  }
140
- });
165
+ }, ___EmotionJSX(PanelHeaderCloseButton, null));
141
166
  };
142
167
  export var WithExtraLongText = function WithExtraLongText(_ref4) {
143
168
  var args = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));
@@ -115,30 +115,27 @@ export var Default = function Default(args) {
115
115
  }, ___EmotionJSX(Box, {
116
116
  sx: sx.contentContainer
117
117
  }, ___EmotionJSX(Text, {
118
- fontSize: "lg",
119
- fontWeight: "3"
118
+ variant: "stepperTabContentHeader"
120
119
  }, "Duis Aute"), ___EmotionJSX(Text, {
121
- fontSize: "md"
120
+ variant: "stepperTabContent"
122
121
  }, "Quis autem vel eum iure reprehenderit qui in ea voluptate"))), ___EmotionJSX(Item, {
123
122
  key: "step2",
124
123
  textValue: "Lorem Ipsum"
125
124
  }, ___EmotionJSX(Box, {
126
125
  sx: sx.contentContainer
127
126
  }, ___EmotionJSX(Text, {
128
- fontSize: "lg",
129
- fontWeight: "3"
127
+ variant: "stepperTabContentHeader"
130
128
  }, "Lorem Ipsum"), ___EmotionJSX(Text, {
131
- fontSize: "md"
129
+ variant: "stepperTabContent"
132
130
  }, "Sed ut perspiciatis unde omnis"))), ___EmotionJSX(Item, {
133
131
  key: "step3",
134
132
  textValue: "Excepteur Sint"
135
133
  }, ___EmotionJSX(Box, {
136
134
  sx: sx.contentContainer
137
135
  }, ___EmotionJSX(Text, {
138
- fontSize: "lg",
139
- fontWeight: "3"
136
+ variant: "stepperTabContentHeader"
140
137
  }, "Excepteur Sint"), ___EmotionJSX(Text, {
141
- fontSize: "md"
138
+ variant: "stepperTabContent"
142
139
  }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam"))));
143
140
  };
144
141
  export var DisabledToolTips = function DisabledToolTips(args) {
@@ -150,30 +147,27 @@ export var DisabledToolTips = function DisabledToolTips(args) {
150
147
  }, ___EmotionJSX(Box, {
151
148
  sx: sx.contentContainer
152
149
  }, ___EmotionJSX(Text, {
153
- fontSize: "lg",
154
- fontWeight: "3"
150
+ variant: "stepperTabContentHeader"
155
151
  }, "Duis Aute"), ___EmotionJSX(Text, {
156
- fontSize: "md"
152
+ variant: "stepperTabContent"
157
153
  }, "Quis autem vel eum iure reprehenderit qui in ea voluptate"))), ___EmotionJSX(Item, {
158
154
  key: "step2",
159
155
  textValue: "Lorem Ipsum"
160
156
  }, ___EmotionJSX(Box, {
161
157
  sx: sx.contentContainer
162
158
  }, ___EmotionJSX(Text, {
163
- fontSize: "lg",
164
- fontWeight: "3"
159
+ variant: "stepperTabContentHeader"
165
160
  }, "Lorem Ipsum"), ___EmotionJSX(Text, {
166
- fontSize: "md"
161
+ variant: "stepperTabContent"
167
162
  }, "Sed ut perspiciatis unde omnis"))), ___EmotionJSX(Item, {
168
163
  key: "step3",
169
164
  textValue: "Excepteur Sint"
170
165
  }, ___EmotionJSX(Box, {
171
166
  sx: sx.contentContainer
172
167
  }, ___EmotionJSX(Text, {
173
- fontSize: "lg",
174
- fontWeight: "3"
168
+ variant: "stepperTabContentHeader"
175
169
  }, "Excepteur Sint"), ___EmotionJSX(Text, {
176
- fontSize: "md"
170
+ variant: "stepperTabContent"
177
171
  }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam"))));
178
172
  };
179
173
  Default.parameters = {
@@ -195,30 +189,27 @@ export var WithCustomTooltip = function WithCustomTooltip(args) {
195
189
  }, ___EmotionJSX(Box, {
196
190
  sx: sx.contentContainer
197
191
  }, ___EmotionJSX(Text, {
198
- fontSize: "lg",
199
- fontWeight: "3"
192
+ variant: "stepperTabContentHeader"
200
193
  }, "Duis Aute"), ___EmotionJSX(Text, {
201
- fontSize: "md"
194
+ variant: "stepperTabContent"
202
195
  }, "Quis autem vel eum iure reprehenderit qui in ea voluptate"))), ___EmotionJSX(Item, {
203
196
  key: "step2",
204
197
  textValue: "Lorem Ipsum"
205
198
  }, ___EmotionJSX(Box, {
206
199
  sx: sx.contentContainer
207
200
  }, ___EmotionJSX(Text, {
208
- fontSize: "lg",
209
- fontWeight: "3"
201
+ variant: "stepperTabContentHeader"
210
202
  }, "Lorem Ipsum"), ___EmotionJSX(Text, {
211
- fontSize: "md"
203
+ variant: "stepperTabContent"
212
204
  }, "Sed ut perspiciatis unde omnis"))), ___EmotionJSX(Item, {
213
205
  key: "step3",
214
206
  textValue: "Excepteur Sint"
215
207
  }, ___EmotionJSX(Box, {
216
208
  sx: sx.contentContainer
217
209
  }, ___EmotionJSX(Text, {
218
- fontSize: "lg",
219
- fontWeight: "3"
210
+ variant: "stepperTabContentHeader"
220
211
  }, "Excepteur Sint"), ___EmotionJSX(Text, {
221
- fontSize: "md"
212
+ variant: "stepperTabContent"
222
213
  }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam"))));
223
214
  };
224
215
  export var ControlledStepper = function ControlledStepper() {
@@ -237,10 +228,9 @@ export var ControlledStepper = function ControlledStepper() {
237
228
  }, ___EmotionJSX(Box, {
238
229
  sx: sx.contentContainer
239
230
  }, ___EmotionJSX(Text, {
240
- fontSize: "lg",
241
- fontWeight: "3"
231
+ variant: "stepperTabContentHeader"
242
232
  }, item.title), ___EmotionJSX(Text, {
243
- fontSize: "md"
233
+ variant: "stepperTabContent"
244
234
  }, item.children)));
245
235
  });
246
236
  };
@@ -289,10 +279,9 @@ export var Panel = function Panel() {
289
279
  }, ___EmotionJSX(Box, {
290
280
  sx: sx.contentContainer
291
281
  }, ___EmotionJSX(Text, {
292
- fontSize: "lg",
293
- fontWeight: "3"
282
+ variant: "stepperTabContentHeader"
294
283
  }, item.title), ___EmotionJSX(Text, {
295
- fontSize: "md"
284
+ variant: "stepperTabContent"
296
285
  }, item.children)));
297
286
  })))
298
287
  );
@@ -316,7 +305,7 @@ export var VerticalStepper = function VerticalStepper() {
316
305
  }, ___EmotionJSX(Box, {
317
306
  sx: sx.verticalContentContainer
318
307
  }, ___EmotionJSX(Text, {
319
- fontSize: "md"
308
+ variant: "stepperTabContent"
320
309
  }, item.children)));
321
310
  });
322
311
  };
@@ -17,7 +17,7 @@ var wrapper = {
17
17
  var tabs = {
18
18
  outline: 'none',
19
19
  borderBottom: 'none',
20
- mb: 0,
20
+ mb: 'lg',
21
21
  justifyContent: 'center',
22
22
  '&.is-horizontal': {
23
23
  width: '100%'
@@ -163,6 +163,13 @@ var listViewItemExpandedText = {
163
163
  fontSize: 'md',
164
164
  color: 'text.primary'
165
165
  };
166
+ var stepperTabContent = {
167
+ fontSize: 'md'
168
+ };
169
+ var stepperTabContentHeader = {
170
+ fontSize: 'lg',
171
+ fontWeight: 3
172
+ };
166
173
  export var text = _objectSpread(_objectSpread(_objectSpread({
167
174
  base: base,
168
175
  bodyStrong: bodyStrong,
@@ -281,5 +288,7 @@ export var text = _objectSpread(_objectSpread(_objectSpread({
281
288
  copyRightText: copyRightText,
282
289
  attachmentTitle: attachmentTitle,
283
290
  messagesText: _objectSpread({}, base),
284
- stepperLabel: stepperLabel
291
+ stepperLabel: stepperLabel,
292
+ stepperTabContent: stepperTabContent,
293
+ stepperTabContentHeader: stepperTabContentHeader
285
294
  });
@@ -1,5 +1,4 @@
1
1
  export var avatar = {
2
- backgroundColor: 'cyan',
3
2
  color: 'black',
4
3
  cursor: 'pointer',
5
4
  '&.is-orange': {
@@ -0,0 +1,15 @@
1
+ var step = {
2
+ active: {
3
+ '&.is-horizontal': {
4
+ color: 'black'
5
+ }
6
+ },
7
+ inactive: {
8
+ '&.is-horizontal': {
9
+ backgroundColor: 'black'
10
+ }
11
+ }
12
+ };
13
+ export default {
14
+ step: step
15
+ };
@@ -9,6 +9,7 @@ import { message } from './message';
9
9
  import { navBar } from './navbar';
10
10
  import rangeCalendar from './rangeCalendar';
11
11
  import skeleton from './skeleton';
12
+ import stepper from './stepper';
12
13
  var listBox = {
13
14
  container: {
14
15
  backgroundColor: 'backgroundBase',
@@ -182,6 +183,7 @@ export default {
182
183
  tab: tab,
183
184
  iconBadge: iconBadge,
184
185
  skeleton: skeleton,
186
+ stepper: stepper,
185
187
  footer: footer,
186
188
  tooltip: tooltip,
187
189
  popoverMenu: {
@@ -1,7 +1,5 @@
1
1
  import sizes from '../sizes';
2
2
  export var avatar = {
3
- backgroundColor: 'lightcyan',
4
- color: 'darkcyan',
5
3
  cursor: 'pointer',
6
4
  '&.is-orange': {
7
5
  backgroundColor: 'lightorange',
@@ -9,8 +9,10 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
10
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ import spacing from '../spacing';
12
13
  var line = {
13
- mr: 'xs',
14
+ mx: "".concat(spacing.xs, " !important"),
15
+ maxWidth: '82px',
14
16
  borderBottomWidth: '2px',
15
17
  borderBottomColor: 'active',
16
18
  '&.is-inactive': {
@@ -32,32 +34,37 @@ var tab = {
32
34
  mr: 'xs'
33
35
  };
34
36
  var step = {
35
- active: _objectSpread(_objectSpread({
36
- backgroundColor: 'active',
37
- borderColor: 'active',
38
- color: 'backgroundBase'
39
- }, stepBase), {}, {
40
- '&:before': {
41
- content: '""',
42
- height: '24px',
43
- width: '24px',
44
- top: 0,
45
- left: 0,
46
- position: 'absolute',
47
- borderRadius: '100%',
48
- borderStyle: 'solid',
49
- borderColor: 'backgroundBase',
50
- borderWidth: '2px'
51
- }
52
- }),
37
+ active: {
38
+ '&.is-horizontal': _objectSpread(_objectSpread({
39
+ backgroundColor: 'active',
40
+ borderColor: 'active',
41
+ color: 'white'
42
+ }, stepBase), {}, {
43
+ '&:before': {
44
+ content: '""',
45
+ height: '24px',
46
+ width: '24px',
47
+ top: 0,
48
+ left: 0,
49
+ position: 'absolute',
50
+ borderRadius: '100%',
51
+ borderStyle: 'solid',
52
+ borderColor: 'backgroundBase',
53
+ borderWidth: '2px',
54
+ zIndex: 0
55
+ }
56
+ })
57
+ },
53
58
  completed: _objectSpread(_objectSpread({}, stepBase), {}, {
54
59
  borderColor: 'active'
55
60
  }),
56
- inactive: _objectSpread({
57
- backgroundColor: 'backgroundBase',
58
- borderColor: 'blue-200',
59
- color: 'active'
60
- }, stepBase)
61
+ inactive: {
62
+ '&.is-horizontal': _objectSpread({
63
+ backgroundColor: 'backgroundBase',
64
+ borderColor: 'blue-200',
65
+ color: 'active'
66
+ }, stepBase)
67
+ }
61
68
  };
62
69
  export default {
63
70
  tab: tab,
@@ -94,6 +94,14 @@ var buttonSubtitle = {
94
94
  fontSize: '13px',
95
95
  fontWeight: 2
96
96
  };
97
+ var stepperTabContent = {
98
+ fontSize: 'md',
99
+ color: 'font.base',
100
+ lineHeight: 'body'
101
+ };
102
+ var stepperTabContentHeader = _objectSpread(_objectSpread({}, hTags.H2), {}, {
103
+ color: 'font.base'
104
+ });
97
105
  export var text = _objectSpread(_objectSpread({
98
106
  base: {
99
107
  lineHeight: 'body'
@@ -198,6 +206,9 @@ export var text = _objectSpread(_objectSpread({
198
206
  panelHeaderSubtext: {
199
207
  fontSize: 'md',
200
208
  lineHeight: 'body',
201
- color: 'font.light'
202
- }
209
+ color: 'font.light',
210
+ marginTop: '0px !important'
211
+ },
212
+ stepperTabContent: stepperTabContent,
213
+ stepperTabContentHeader: stepperTabContentHeader
203
214
  });