@pingux/astro 2.161.1-alpha.0 → 2.161.1-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.
- package/lib/cjs/components/Avatar/Avatar.js +5 -4
- package/lib/cjs/components/Avatar/stories/AvatarNextGen.js +3 -1
- package/lib/cjs/components/PanelHeader/PanelHeader.js +1 -1
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +31 -6
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.d.ts +0 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +0 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1 -2
- package/lib/cjs/styles/themes/next-gen/variants/avatar.d.ts +0 -2
- package/lib/cjs/styles/themes/next-gen/variants/avatar.js +0 -2
- 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 +0 -2
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +1 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +1 -0
- package/lib/cjs/utils/devUtils/constants/images.d.ts +1 -0
- package/lib/cjs/utils/devUtils/constants/images.js +3 -2
- package/lib/components/Avatar/Avatar.js +5 -4
- package/lib/components/Avatar/stories/AvatarNextGen.js +3 -1
- package/lib/components/PanelHeader/PanelHeader.js +1 -1
- package/lib/components/PanelHeader/PanelHeader.stories.js +31 -6
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +0 -1
- package/lib/styles/themes/next-gen/variants/avatar.js +0 -2
- package/lib/styles/themes/next-gen/variants/text.js +2 -1
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/lib/utils/designUtils/figmaLinks.js +1 -0
- package/lib/utils/devUtils/constants/images.js +2 -1
- 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,
|
|
40
|
+
}, others), ___EmotionJSX(ThemeUIAvatar, {
|
|
41
41
|
ref: ref,
|
|
42
42
|
alt: alt,
|
|
43
|
-
src: src
|
|
44
|
-
|
|
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,
|
|
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:
|
|
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:
|
|
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));
|