@pingux/astro 2.34.0-alpha.2 → 2.35.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.
- package/lib/cjs/components/Badge/Badge.stories.js +7 -5
- package/lib/cjs/components/Badge/Badge.styles.js +1 -1
- package/lib/cjs/hooks/useNavBarStyling/index.d.ts +1 -0
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.d.ts +38 -0
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.js +0 -6
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.test.d.ts +1 -0
- package/lib/components/Badge/Badge.stories.js +7 -5
- package/lib/components/Badge/Badge.styles.js +1 -1
- package/lib/hooks/useNavBarStyling/useNavBarStyling.js +0 -6
- package/package.json +1 -1
@@ -116,12 +116,14 @@ Default.parameters = {
|
|
116
116
|
}
|
117
117
|
};
|
118
118
|
var CountBadge = function CountBadge() {
|
119
|
-
return (0, _react2.jsx)(_index.Box,
|
120
|
-
|
121
|
-
|
122
|
-
|
119
|
+
return (0, _react2.jsx)(_index.Box, {
|
120
|
+
isRow: true,
|
121
|
+
gap: "xs"
|
122
|
+
}, (0, _react2.jsx)(_index.Badge, {
|
123
|
+
label: "4",
|
124
|
+
variant: "countBadge"
|
123
125
|
}), (0, _react2.jsx)(_index.Badge, {
|
124
|
-
label: "
|
126
|
+
label: "4",
|
125
127
|
variant: "countNeutral"
|
126
128
|
}));
|
127
129
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './useNavBarStyling';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
interface NavBarStyling {
|
2
|
+
/**
|
3
|
+
* @typedef {Object} NavBarStylingObject
|
4
|
+
* @property {String} navBar - The nav bar container
|
5
|
+
* @property {String} primaryItem - The nav bar selection button
|
6
|
+
* @property {String} sectionItem - The nav bar selection button;
|
7
|
+
* @property {String} navBarItemHeader - The nav bar item header;
|
8
|
+
* @property {String} navBarItemHeaderText - The nav bar item header text;
|
9
|
+
* @property {String} navBarItemButton - The nav bar item button;
|
10
|
+
* @property {String} navBarItemLink - The nav bar item link;
|
11
|
+
* @property {String} navBarItem - The nav bar item;
|
12
|
+
* @property {String} navBarItemText - The nav bar item text;
|
13
|
+
* @property {String} navBarItemHeaderListItem - The nav bar item header list item;
|
14
|
+
* @property {String} navBarItemBody - The nav bar item body;
|
15
|
+
* @property {String} navBarItemHeaderIconSize - The nav bar item header size;
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* Generates the necessary props to be used in field components.
|
19
|
+
* @param {String} variant Variant for the overall NavBar
|
20
|
+
* @returns {NavBarStylingObject} Prop object that distributes styling to various sub-components.
|
21
|
+
*/
|
22
|
+
(variant: string): {
|
23
|
+
navBar: string;
|
24
|
+
primaryItem: string;
|
25
|
+
sectionItem: string;
|
26
|
+
navBarItemHeader: string;
|
27
|
+
navBarItemHeaderText: string;
|
28
|
+
navBarItemButton: string;
|
29
|
+
navBarItemLink: string;
|
30
|
+
navBarItem: string;
|
31
|
+
navBarItemText: string;
|
32
|
+
navBarItemHeaderListItem: string | null;
|
33
|
+
navBarItemBody: string;
|
34
|
+
navBarItemHeaderIconSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xx';
|
35
|
+
};
|
36
|
+
}
|
37
|
+
declare const useNavBarStyling: NavBarStyling;
|
38
|
+
export default useNavBarStyling;
|
@@ -5,12 +5,6 @@ _Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports["default"] = void 0;
|
8
|
-
/**
|
9
|
-
* Generates the necessary props to be used in field components.
|
10
|
-
* @param {String} variant Variant for the overall NavBar
|
11
|
-
* @returns {Object} Prop object that distributes styling to various sub-components.
|
12
|
-
*/
|
13
|
-
|
14
8
|
var useNavBarStyling = function useNavBarStyling(variant) {
|
15
9
|
switch (variant) {
|
16
10
|
case 'popupNav':
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -106,12 +106,14 @@ Default.parameters = {
|
|
106
106
|
}
|
107
107
|
};
|
108
108
|
export var CountBadge = function CountBadge() {
|
109
|
-
return ___EmotionJSX(Box,
|
110
|
-
|
111
|
-
|
112
|
-
|
109
|
+
return ___EmotionJSX(Box, {
|
110
|
+
isRow: true,
|
111
|
+
gap: "xs"
|
112
|
+
}, ___EmotionJSX(Badge, {
|
113
|
+
label: "4",
|
114
|
+
variant: "countBadge"
|
113
115
|
}), ___EmotionJSX(Badge, {
|
114
|
-
label: "
|
116
|
+
label: "4",
|
115
117
|
variant: "countNeutral"
|
116
118
|
}));
|
117
119
|
};
|
@@ -1,9 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* Generates the necessary props to be used in field components.
|
3
|
-
* @param {String} variant Variant for the overall NavBar
|
4
|
-
* @returns {Object} Prop object that distributes styling to various sub-components.
|
5
|
-
*/
|
6
|
-
|
7
1
|
var useNavBarStyling = function useNavBarStyling(variant) {
|
8
2
|
switch (variant) {
|
9
3
|
case 'popupNav':
|