@pingux/astro 2.14.1 → 2.15.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.
@@ -8,7 +8,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
8
8
  _Object$defineProperty(exports, "__esModule", {
9
9
  value: true
10
10
  });
11
- exports["default"] = exports.Edit = exports.DisplayWithError = exports.Display = void 0;
11
+ exports["default"] = exports.Edit = exports.DisplayWithError = exports.DisplayRow = exports.Display = void 0;
12
12
  var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
13
13
  var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
14
14
  var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
@@ -145,57 +145,6 @@ var editSx = {
145
145
  }
146
146
  };
147
147
  var helperTextId = (0, _uuid.v4)();
148
- var Row = function Row(props) {
149
- var withBadge = props.withBadge,
150
- withError = props.withError,
151
- leftValue = props.leftValue,
152
- rightValue = props.rightValue;
153
- return (0, _react2.jsx)(_index.Box, {
154
- isRow: true,
155
- sx: sx.fieldRowWrapper
156
- }, (0, _react2.jsx)(_index.TextField, {
157
- isReadOnly: true,
158
- value: leftValue,
159
- labelProps: {
160
- mb: 0
161
- },
162
- controlProps: {
163
- variant: 'input.small',
164
- 'aria-label': "input ".concat(leftValue),
165
- sx: {
166
- width: '165px'
167
- }
168
- },
169
- "aria-labelledby": withError && helperTextId,
170
- slots: withError && {
171
- inContainer: (0, _react2.jsx)(_index.Icon, {
172
- icon: _AlertCircleIcon["default"],
173
- sx: sx.alertCircleIcon,
174
- title: {
175
- name: 'Alert Circle Icon'
176
- }
177
- })
178
- }
179
- }), (0, _react2.jsx)(_index.Separator, {
180
- sx: sx.separator
181
- }), (0, _react2.jsx)(_index.TextField, {
182
- isReadOnly: true,
183
- value: rightValue,
184
- labelProps: {
185
- mb: 0
186
- },
187
- controlProps: {
188
- variant: 'input.small',
189
- 'aria-label': "input ".concat(rightValue),
190
- sx: {
191
- width: '165px'
192
- }
193
- }
194
- }), withBadge && (0, _react2.jsx)(_index.Badge, {
195
- label: "Required",
196
- sx: sx.badge
197
- }));
198
- };
199
148
  var Display = function Display() {
200
149
  return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
201
150
  sx: sx.container
@@ -212,17 +161,17 @@ var Display = function Display() {
212
161
  sx: sx.fieldColumnTitleWrapper
213
162
  }, (0, _react2.jsx)(_index.Text, {
214
163
  sx: sx.fieldColumnTitle
215
- }, "PingOne"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(Row, {
164
+ }, "PingOne"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(DisplayRow, {
216
165
  withBadge: true,
217
166
  leftValue: "username",
218
167
  rightValue: "User ID"
219
- }), (0, _react2.jsx)(Row, {
168
+ }), (0, _react2.jsx)(DisplayRow, {
220
169
  leftValue: "firstName",
221
170
  rightValue: "Given Name"
222
- }), (0, _react2.jsx)(Row, {
171
+ }), (0, _react2.jsx)(DisplayRow, {
223
172
  leftValue: "lastName",
224
173
  rightValue: "Family Name"
225
- }), (0, _react2.jsx)(Row, {
174
+ }), (0, _react2.jsx)(DisplayRow, {
226
175
  leftValue: "population",
227
176
  rightValue: "Population"
228
177
  })));
@@ -259,17 +208,17 @@ var DisplayWithError = function DisplayWithError() {
259
208
  sx: sx.fieldColumnTitleWrapper
260
209
  }, (0, _react2.jsx)(_index.Text, {
261
210
  sx: sx.fieldColumnTitle
262
- }, "PingOne"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(Row, {
211
+ }, "PingOne"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(DisplayRow, {
263
212
  withBadge: true,
264
213
  leftValue: "username",
265
214
  rightValue: "User ID"
266
- }), (0, _react2.jsx)(Row, {
215
+ }), (0, _react2.jsx)(DisplayRow, {
267
216
  leftValue: "firstName",
268
217
  rightValue: "Given Name"
269
- }), (0, _react2.jsx)(Row, {
218
+ }), (0, _react2.jsx)(DisplayRow, {
270
219
  leftValue: "lastName",
271
220
  rightValue: "Family Name"
272
- }), (0, _react2.jsx)(Row, {
221
+ }), (0, _react2.jsx)(DisplayRow, {
273
222
  withError: withError,
274
223
  leftValue: "population",
275
224
  rightValue: "Population"
@@ -375,6 +324,61 @@ Edit.parameters = {
375
324
  url: _figmaLinks.FIGMA_LINKS.attributeMappings.edit
376
325
  }
377
326
  };
327
+ var DisplayRow = function DisplayRow(props) {
328
+ var _props$withBadge = props.withBadge,
329
+ withBadge = _props$withBadge === void 0 ? false : _props$withBadge,
330
+ withError = props.withError,
331
+ _props$leftValue = props.leftValue,
332
+ leftValue = _props$leftValue === void 0 ? 'UserId' : _props$leftValue,
333
+ _props$rightValue = props.rightValue,
334
+ rightValue = _props$rightValue === void 0 ? 'mdorey' : _props$rightValue;
335
+ return (0, _react2.jsx)(_index.Box, {
336
+ isRow: true,
337
+ sx: sx.fieldRowWrapper
338
+ }, (0, _react2.jsx)(_index.TextField, {
339
+ isReadOnly: true,
340
+ value: leftValue,
341
+ labelProps: {
342
+ mb: 0
343
+ },
344
+ controlProps: {
345
+ variant: 'input.small',
346
+ 'aria-label': "input ".concat(leftValue),
347
+ sx: {
348
+ width: '165px'
349
+ }
350
+ },
351
+ "aria-labelledby": withError && helperTextId,
352
+ slots: withError && {
353
+ inContainer: (0, _react2.jsx)(_index.Icon, {
354
+ icon: _AlertCircleIcon["default"],
355
+ sx: sx.alertCircleIcon,
356
+ title: {
357
+ name: 'Alert Circle Icon'
358
+ }
359
+ })
360
+ }
361
+ }), (0, _react2.jsx)(_index.Separator, {
362
+ sx: sx.separator
363
+ }), (0, _react2.jsx)(_index.TextField, {
364
+ isReadOnly: true,
365
+ value: rightValue,
366
+ labelProps: {
367
+ mb: 0
368
+ },
369
+ controlProps: {
370
+ variant: 'input.small',
371
+ 'aria-label': "input ".concat(rightValue),
372
+ sx: {
373
+ width: '165px'
374
+ }
375
+ }
376
+ }), withBadge && (0, _react2.jsx)(_index.Badge, {
377
+ label: "Required",
378
+ sx: sx.badge
379
+ }));
380
+ };
381
+ exports.DisplayRow = DisplayRow;
378
382
  var EditRow = /*#__PURE__*/(0, _react.memo)(function (props) {
379
383
  var isDisabled = props.isDisabled,
380
384
  isNewRow = props.isNewRow,
@@ -131,57 +131,6 @@ var editSx = {
131
131
  }
132
132
  };
133
133
  var helperTextId = uuid();
134
- var Row = function Row(props) {
135
- var withBadge = props.withBadge,
136
- withError = props.withError,
137
- leftValue = props.leftValue,
138
- rightValue = props.rightValue;
139
- return ___EmotionJSX(Box, {
140
- isRow: true,
141
- sx: sx.fieldRowWrapper
142
- }, ___EmotionJSX(TextField, {
143
- isReadOnly: true,
144
- value: leftValue,
145
- labelProps: {
146
- mb: 0
147
- },
148
- controlProps: {
149
- variant: 'input.small',
150
- 'aria-label': "input ".concat(leftValue),
151
- sx: {
152
- width: '165px'
153
- }
154
- },
155
- "aria-labelledby": withError && helperTextId,
156
- slots: withError && {
157
- inContainer: ___EmotionJSX(Icon, {
158
- icon: AlertCircleIcon,
159
- sx: sx.alertCircleIcon,
160
- title: {
161
- name: 'Alert Circle Icon'
162
- }
163
- })
164
- }
165
- }), ___EmotionJSX(Separator, {
166
- sx: sx.separator
167
- }), ___EmotionJSX(TextField, {
168
- isReadOnly: true,
169
- value: rightValue,
170
- labelProps: {
171
- mb: 0
172
- },
173
- controlProps: {
174
- variant: 'input.small',
175
- 'aria-label': "input ".concat(rightValue),
176
- sx: {
177
- width: '165px'
178
- }
179
- }
180
- }), withBadge && ___EmotionJSX(Badge, {
181
- label: "Required",
182
- sx: sx.badge
183
- }));
184
- };
185
134
  export var Display = function Display() {
186
135
  return ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
187
136
  sx: sx.container
@@ -198,17 +147,17 @@ export var Display = function Display() {
198
147
  sx: sx.fieldColumnTitleWrapper
199
148
  }, ___EmotionJSX(Text, {
200
149
  sx: sx.fieldColumnTitle
201
- }, "PingOne"))), ___EmotionJSX(Separator, null), ___EmotionJSX(Row, {
150
+ }, "PingOne"))), ___EmotionJSX(Separator, null), ___EmotionJSX(DisplayRow, {
202
151
  withBadge: true,
203
152
  leftValue: "username",
204
153
  rightValue: "User ID"
205
- }), ___EmotionJSX(Row, {
154
+ }), ___EmotionJSX(DisplayRow, {
206
155
  leftValue: "firstName",
207
156
  rightValue: "Given Name"
208
- }), ___EmotionJSX(Row, {
157
+ }), ___EmotionJSX(DisplayRow, {
209
158
  leftValue: "lastName",
210
159
  rightValue: "Family Name"
211
- }), ___EmotionJSX(Row, {
160
+ }), ___EmotionJSX(DisplayRow, {
212
161
  leftValue: "population",
213
162
  rightValue: "Population"
214
163
  })));
@@ -244,17 +193,17 @@ export var DisplayWithError = function DisplayWithError() {
244
193
  sx: sx.fieldColumnTitleWrapper
245
194
  }, ___EmotionJSX(Text, {
246
195
  sx: sx.fieldColumnTitle
247
- }, "PingOne"))), ___EmotionJSX(Separator, null), ___EmotionJSX(Row, {
196
+ }, "PingOne"))), ___EmotionJSX(Separator, null), ___EmotionJSX(DisplayRow, {
248
197
  withBadge: true,
249
198
  leftValue: "username",
250
199
  rightValue: "User ID"
251
- }), ___EmotionJSX(Row, {
200
+ }), ___EmotionJSX(DisplayRow, {
252
201
  leftValue: "firstName",
253
202
  rightValue: "Given Name"
254
- }), ___EmotionJSX(Row, {
203
+ }), ___EmotionJSX(DisplayRow, {
255
204
  leftValue: "lastName",
256
205
  rightValue: "Family Name"
257
- }), ___EmotionJSX(Row, {
206
+ }), ___EmotionJSX(DisplayRow, {
258
207
  withError: withError,
259
208
  leftValue: "population",
260
209
  rightValue: "Population"
@@ -358,6 +307,60 @@ Edit.parameters = {
358
307
  url: FIGMA_LINKS.attributeMappings.edit
359
308
  }
360
309
  };
310
+ export var DisplayRow = function DisplayRow(props) {
311
+ var _props$withBadge = props.withBadge,
312
+ withBadge = _props$withBadge === void 0 ? false : _props$withBadge,
313
+ withError = props.withError,
314
+ _props$leftValue = props.leftValue,
315
+ leftValue = _props$leftValue === void 0 ? 'UserId' : _props$leftValue,
316
+ _props$rightValue = props.rightValue,
317
+ rightValue = _props$rightValue === void 0 ? 'mdorey' : _props$rightValue;
318
+ return ___EmotionJSX(Box, {
319
+ isRow: true,
320
+ sx: sx.fieldRowWrapper
321
+ }, ___EmotionJSX(TextField, {
322
+ isReadOnly: true,
323
+ value: leftValue,
324
+ labelProps: {
325
+ mb: 0
326
+ },
327
+ controlProps: {
328
+ variant: 'input.small',
329
+ 'aria-label': "input ".concat(leftValue),
330
+ sx: {
331
+ width: '165px'
332
+ }
333
+ },
334
+ "aria-labelledby": withError && helperTextId,
335
+ slots: withError && {
336
+ inContainer: ___EmotionJSX(Icon, {
337
+ icon: AlertCircleIcon,
338
+ sx: sx.alertCircleIcon,
339
+ title: {
340
+ name: 'Alert Circle Icon'
341
+ }
342
+ })
343
+ }
344
+ }), ___EmotionJSX(Separator, {
345
+ sx: sx.separator
346
+ }), ___EmotionJSX(TextField, {
347
+ isReadOnly: true,
348
+ value: rightValue,
349
+ labelProps: {
350
+ mb: 0
351
+ },
352
+ controlProps: {
353
+ variant: 'input.small',
354
+ 'aria-label': "input ".concat(rightValue),
355
+ sx: {
356
+ width: '165px'
357
+ }
358
+ }
359
+ }), withBadge && ___EmotionJSX(Badge, {
360
+ label: "Required",
361
+ sx: sx.badge
362
+ }));
363
+ };
361
364
  var EditRow = /*#__PURE__*/memo(function (props) {
362
365
  var isDisabled = props.isDisabled,
363
366
  isNewRow = props.isNewRow,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.14.1",
3
+ "version": "2.15.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",