@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.
@@ -116,12 +116,14 @@ Default.parameters = {
116
116
  }
117
117
  };
118
118
  var CountBadge = function CountBadge() {
119
- return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Badge, {
120
- label: "1",
121
- variant: "countBadge",
122
- mb: "12px"
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: "1",
126
+ label: "4",
125
127
  variant: "countNeutral"
126
128
  }));
127
129
  };
@@ -137,7 +137,7 @@ var countDefault = _objectSpread(_objectSpread({}, baseBadge), {}, {
137
137
  width: 'fit-content',
138
138
  minWidth: '17px',
139
139
  minHeight: '17px',
140
- px: '0',
140
+ px: '5px',
141
141
  py: '2px',
142
142
  '& span': {
143
143
  fontSize: '11px',
@@ -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':
@@ -106,12 +106,14 @@ Default.parameters = {
106
106
  }
107
107
  };
108
108
  export var CountBadge = function CountBadge() {
109
- return ___EmotionJSX(Box, null, ___EmotionJSX(Badge, {
110
- label: "1",
111
- variant: "countBadge",
112
- mb: "12px"
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: "1",
116
+ label: "4",
115
117
  variant: "countNeutral"
116
118
  }));
117
119
  };
@@ -126,7 +126,7 @@ var countDefault = _objectSpread(_objectSpread({}, baseBadge), {}, {
126
126
  width: 'fit-content',
127
127
  minWidth: '17px',
128
128
  minHeight: '17px',
129
- px: '0',
129
+ px: '5px',
130
130
  py: '2px',
131
131
  '& span': {
132
132
  fontSize: '11px',
@@ -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':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.34.0-alpha.2",
3
+ "version": "2.35.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",