@pingux/astro 2.122.1-alpha.0 → 2.122.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.
@@ -142,6 +142,25 @@ declare const _default: {
142
142
  display: string;
143
143
  };
144
144
  itemButton: {
145
+ '&.is-focused': {
146
+ outline: string;
147
+ outlineColor: string;
148
+ };
149
+ '&.is-hovered': {
150
+ bg: string;
151
+ };
152
+ '&.is-selected': {
153
+ bg: string;
154
+ boxShadow: string;
155
+ };
156
+ '&.is-pressed': {
157
+ bg: string;
158
+ };
159
+ whiteSpace: string;
160
+ WebkitBoxOrient: string;
161
+ display: string;
162
+ WebkitLineClamp: string;
163
+ overflow: string;
145
164
  marginY: string;
146
165
  textDecoration: string;
147
166
  outline: string;
@@ -150,34 +169,18 @@ declare const _default: {
150
169
  backgroundColor: string;
151
170
  paddingTop: string;
152
171
  paddingBottom: string;
153
- display: string;
154
172
  color: string;
155
173
  fontSize: string;
156
174
  fontWeight: number;
157
175
  flexGrow: string;
158
176
  width: string;
159
177
  textAlign: string;
160
- whiteSpace: string;
161
178
  overflowWrap: string;
162
179
  maxWidth: string;
163
180
  wordWrap: string;
164
181
  wordBreak: string;
165
182
  paddingLeft: string;
166
183
  paddingRight: string;
167
- '&.is-focused': {
168
- outline: string;
169
- outlineColor: string;
170
- };
171
- '&.is-hovered': {
172
- bg: string;
173
- };
174
- '&.is-selected': {
175
- bg: string;
176
- boxShadow: string;
177
- };
178
- '&.is-pressed': {
179
- bg: string;
180
- };
181
184
  };
182
185
  popUpItemButton: {
183
186
  fontSize: string;
@@ -200,6 +203,11 @@ declare const _default: {
200
203
  bg: string;
201
204
  color: string;
202
205
  };
206
+ whiteSpace: string;
207
+ WebkitBoxOrient: string;
208
+ display: string;
209
+ WebkitLineClamp: string;
210
+ overflow: string;
203
211
  marginY: string;
204
212
  textDecoration: string;
205
213
  outline: string;
@@ -208,12 +216,10 @@ declare const _default: {
208
216
  backgroundColor: string;
209
217
  paddingTop: string;
210
218
  paddingBottom: string;
211
- display: string;
212
219
  fontWeight: number;
213
220
  flexGrow: string;
214
221
  width: string;
215
222
  textAlign: string;
216
- whiteSpace: string;
217
223
  overflowWrap: string;
218
224
  maxWidth: string;
219
225
  wordWrap: string;
@@ -126,7 +126,14 @@ var popUpSectionContainer = {
126
126
  var sectionBody = _objectSpread(_objectSpread({}, _AccordionGrid["default"].body), {}, {
127
127
  pl: '0'
128
128
  });
129
- var itemButton = {
129
+ var truncateText = {
130
+ whiteSpace: 'normal',
131
+ WebkitBoxOrient: 'vertical',
132
+ display: '-webkit-box',
133
+ WebkitLineClamp: '3',
134
+ overflow: 'hidden'
135
+ };
136
+ var itemButton = _objectSpread(_objectSpread({
130
137
  marginY: '2px',
131
138
  textDecoration: 'none',
132
139
  outline: 'none',
@@ -135,20 +142,19 @@ var itemButton = {
135
142
  backgroundColor: 'transparent',
136
143
  paddingTop: 'sm',
137
144
  paddingBottom: 'sm',
138
- display: 'block',
139
145
  color: 'neutral.90',
140
146
  fontSize: 'md',
141
147
  fontWeight: 0,
142
148
  flexGrow: '1',
143
149
  width: '100%',
144
150
  textAlign: 'left',
145
- whiteSpace: 'break-spaces',
146
151
  overflowWrap: 'break-word',
147
152
  maxWidth: '100%',
148
153
  wordWrap: 'break-word',
149
154
  wordBreak: 'break-word',
150
155
  paddingLeft: '45px',
151
- paddingRight: 'md',
156
+ paddingRight: 'md'
157
+ }, truncateText), {}, {
152
158
  '&.is-focused': {
153
159
  outline: '1px solid',
154
160
  outlineColor: 'focus'
@@ -163,7 +169,7 @@ var itemButton = {
163
169
  '&.is-pressed': {
164
170
  bg: 'accent.5'
165
171
  }
166
- };
172
+ });
167
173
  var popUpItemButton = _objectSpread(_objectSpread({}, itemButton), {}, {
168
174
  fontSize: 'sm',
169
175
  px: 'sm',
@@ -63,7 +63,12 @@ var NavBarItemBody = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
63
63
  var shouldShowTransition = isExpanded && isTransitioning;
64
64
  var getEstimatedHeight = function getEstimatedHeight() {
65
65
  if (item !== null && item !== void 0 && item.children && typeof (item === null || item === void 0 ? void 0 : item.children.length) === 'number') {
66
- return (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
66
+ var height = (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
67
+ /*
68
+ returning Double the max height to address
69
+ UIP-7608: Ensures the last NavBar item is visible when system scrollbars are always shown
70
+ */
71
+ return height * 2;
67
72
  }
68
73
  return null;
69
74
  };
@@ -119,7 +119,14 @@ var popUpSectionContainer = {
119
119
  var sectionBody = _objectSpread(_objectSpread({}, accordionGrid.body), {}, {
120
120
  pl: '0'
121
121
  });
122
- var itemButton = {
122
+ var truncateText = {
123
+ whiteSpace: 'normal',
124
+ WebkitBoxOrient: 'vertical',
125
+ display: '-webkit-box',
126
+ WebkitLineClamp: '3',
127
+ overflow: 'hidden'
128
+ };
129
+ var itemButton = _objectSpread(_objectSpread({
123
130
  marginY: '2px',
124
131
  textDecoration: 'none',
125
132
  outline: 'none',
@@ -128,20 +135,19 @@ var itemButton = {
128
135
  backgroundColor: 'transparent',
129
136
  paddingTop: 'sm',
130
137
  paddingBottom: 'sm',
131
- display: 'block',
132
138
  color: 'neutral.90',
133
139
  fontSize: 'md',
134
140
  fontWeight: 0,
135
141
  flexGrow: '1',
136
142
  width: '100%',
137
143
  textAlign: 'left',
138
- whiteSpace: 'break-spaces',
139
144
  overflowWrap: 'break-word',
140
145
  maxWidth: '100%',
141
146
  wordWrap: 'break-word',
142
147
  wordBreak: 'break-word',
143
148
  paddingLeft: '45px',
144
- paddingRight: 'md',
149
+ paddingRight: 'md'
150
+ }, truncateText), {}, {
145
151
  '&.is-focused': {
146
152
  outline: '1px solid',
147
153
  outlineColor: 'focus'
@@ -156,7 +162,7 @@ var itemButton = {
156
162
  '&.is-pressed': {
157
163
  bg: 'accent.5'
158
164
  }
159
- };
165
+ });
160
166
  var popUpItemButton = _objectSpread(_objectSpread({}, itemButton), {}, {
161
167
  fontSize: 'sm',
162
168
  px: 'sm',
@@ -52,7 +52,12 @@ var NavBarItemBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  var shouldShowTransition = isExpanded && isTransitioning;
53
53
  var getEstimatedHeight = function getEstimatedHeight() {
54
54
  if (item !== null && item !== void 0 && item.children && typeof (item === null || item === void 0 ? void 0 : item.children.length) === 'number') {
55
- return (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
55
+ var height = (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
56
+ /*
57
+ returning Double the max height to address
58
+ UIP-7608: Ensures the last NavBar item is visible when system scrollbars are always shown
59
+ */
60
+ return height * 2;
56
61
  }
57
62
  return null;
58
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.122.1-alpha.0",
3
+ "version": "2.122.1-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",