@pingux/astro 2.14.1-alpha.0 → 2.14.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.
@@ -18,7 +18,6 @@ var _react = _interopRequireWildcard(require("react"));
18
18
  var _AddIcon = _interopRequireDefault(require("@pingux/mdi-react/AddIcon"));
19
19
  var _AlertCircleIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertCircleIcon"));
20
20
  var _CogsIcon = _interopRequireDefault(require("@pingux/mdi-react/CogsIcon"));
21
- var _CreateIcon = _interopRequireDefault(require("@pingux/mdi-react/CreateIcon"));
22
21
  var _DeleteIcon = _interopRequireDefault(require("@pingux/mdi-react/DeleteIcon"));
23
22
  var _uuid = require("uuid");
24
23
  var _index = require("../index");
@@ -36,33 +35,26 @@ var sx = {
36
35
  position: 'absolute',
37
36
  right: '4px',
38
37
  top: '4px',
39
- fill: '#A31300'
40
- },
41
- attributeMappingTitle: {
42
- fontSize: 'lg',
43
- lineHeight: '21px',
44
- fontWeight: 3,
45
- color: 'text.primary'
46
- },
47
- attributeMappingTitleWrapper: {
48
- marginBottom: 'md',
49
- alignItems: 'center'
38
+ fill: 'critical.bright'
50
39
  },
51
40
  badge: {
52
- width: 'xx',
53
- height: '22px',
54
41
  alignSelf: 'center',
55
- minWidth: 'fit-content',
56
42
  border: '1px solid',
57
43
  borderColor: 'neutral.80',
58
- backgroundColor: 'white !important',
59
- marginLeft: 8,
44
+ backgroundColor: 'white',
45
+ marginLeft: 'sm',
60
46
  '& span': {
61
- fontSize: 'sm',
62
47
  lineHeight: 1,
63
- color: '#253746'
48
+ color: 'text.primary'
64
49
  }
65
50
  },
51
+ container: {
52
+ px: 'sm',
53
+ pt: 'sm',
54
+ pb: 'lg',
55
+ width: '450px',
56
+ backgroundColor: 'accent.99'
57
+ },
66
58
  calloutSx: {
67
59
  width: '450px',
68
60
  marginBottom: 'xs',
@@ -71,11 +63,6 @@ var sx = {
71
63
  createIconButton: {
72
64
  marginLeft: 'xs'
73
65
  },
74
- defaultFieldsWrapperBox: {
75
- padding: '10px 10px 24px 10px',
76
- width: '450px',
77
- backgroundColor: 'accent.99'
78
- },
79
66
  fieldColumnTitle: {
80
67
  fontWeight: 3,
81
68
  fontSize: 'md',
@@ -90,13 +77,8 @@ var sx = {
90
77
  marginTop: 'sm'
91
78
  },
92
79
  separator: {
93
- width: '21px',
80
+ width: '20px',
94
81
  margin: '0 2px'
95
- },
96
- tooltipBox: {
97
- marginLeft: 'xs',
98
- height: 'md',
99
- width: 'md'
100
82
  }
101
83
  };
102
84
  var editSx = {
@@ -165,7 +147,6 @@ var editSx = {
165
147
  var helperTextId = (0, _uuid.v4)();
166
148
  var Row = function Row(props) {
167
149
  var withBadge = props.withBadge,
168
- withTooltip = props.withTooltip,
169
150
  withError = props.withError,
170
151
  leftValue = props.leftValue,
171
152
  rightValue = props.rightValue;
@@ -213,35 +194,11 @@ var Row = function Row(props) {
213
194
  }), withBadge && (0, _react2.jsx)(_index.Badge, {
214
195
  label: "Required",
215
196
  sx: sx.badge
216
- }), withTooltip && (0, _react2.jsx)(_index.Box, {
217
- sx: sx.tooltipBox
218
- }, (0, _react2.jsx)(_index.HelpHint, {
219
- tooltipProps: {
220
- direction: 'bottom'
221
- }
222
- }, "Population set to default")));
223
- };
224
- var Title = function Title() {
225
- return (0, _react2.jsx)(_index.Box, {
226
- isRow: true,
227
- sx: sx.attributeMappingTitleWrapper
228
- }, (0, _react2.jsx)(_index.Text, {
229
- sx: sx.attributeMappingTitle
230
- }, "Attribute Mapping"), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.IconButton, {
231
- sx: sx.createIconButton,
232
- variant: "inverted",
233
- "aria-label": "edit header button"
234
- }, (0, _react2.jsx)(_index.Icon, {
235
- icon: _CreateIcon["default"],
236
- size: "sm",
237
- title: {
238
- name: 'Create Icon'
239
- }
240
- }))));
197
+ }));
241
198
  };
242
199
  var Display = function Display() {
243
- return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(Title, null), (0, _react2.jsx)(_index.Box, {
244
- sx: sx.defaultFieldsWrapperBox
200
+ return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
201
+ sx: sx.container
245
202
  }, (0, _react2.jsx)(_index.Box, {
246
203
  isRow: true,
247
204
  sx: {
@@ -251,27 +208,23 @@ var Display = function Display() {
251
208
  sx: sx.fieldColumnTitleWrapper
252
209
  }, (0, _react2.jsx)(_index.Text, {
253
210
  sx: sx.fieldColumnTitle
254
- }, "PingOne")), (0, _react2.jsx)(_index.Box, {
211
+ }, "Application")), (0, _react2.jsx)(_index.Box, {
255
212
  sx: sx.fieldColumnTitleWrapper
256
213
  }, (0, _react2.jsx)(_index.Text, {
257
214
  sx: sx.fieldColumnTitle
258
- }, "Google Suites"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(Row, {
215
+ }, "PingOne"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(Row, {
259
216
  withBadge: true,
260
- leftValue: "UserId",
261
- rightValue: "mdorey"
217
+ leftValue: "username",
218
+ rightValue: "User ID"
262
219
  }), (0, _react2.jsx)(Row, {
263
- leftValue: "givenName",
264
- rightValue: "firstName"
220
+ leftValue: "firstName",
221
+ rightValue: "Given Name"
265
222
  }), (0, _react2.jsx)(Row, {
266
- leftValue: "familyName",
267
- rightValue: "lastName"
223
+ leftValue: "lastName",
224
+ rightValue: "Family Name"
268
225
  }), (0, _react2.jsx)(Row, {
269
- withTooltip: true,
270
226
  leftValue: "population",
271
- rightValue: "population"
272
- }), (0, _react2.jsx)(Row, {
273
- leftValue: "password",
274
- rightValue: "password"
227
+ rightValue: "Population"
275
228
  })));
276
229
  };
277
230
  exports.Display = Display;
@@ -283,7 +236,7 @@ Display.parameters = {
283
236
  };
284
237
  var DisplayWithError = function DisplayWithError() {
285
238
  var withError = true;
286
- return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(Title, null), (0, _react2.jsx)(_index.Callout, {
239
+ return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Callout, {
287
240
  status: _statuses["default"].ERROR,
288
241
  sx: sx.calloutSx
289
242
  }, (0, _react2.jsx)(_index.Text, null, "You\u2019ve got problems. Allow me to tell you about them in some detail so that you can address them.", (0, _react2.jsx)(_index.Link, {
@@ -292,7 +245,7 @@ var DisplayWithError = function DisplayWithError() {
292
245
  "aria-label": "".concat(_statuses["default"].ERROR, "-callout"),
293
246
  variant: "app"
294
247
  }, ' ', "Read More"))), (0, _react2.jsx)(_index.Box, {
295
- sx: sx.defaultFieldsWrapperBox
248
+ sx: sx.container
296
249
  }, (0, _react2.jsx)(_index.Box, {
297
250
  isRow: true,
298
251
  sx: {
@@ -302,22 +255,24 @@ var DisplayWithError = function DisplayWithError() {
302
255
  sx: sx.fieldColumnTitleWrapper
303
256
  }, (0, _react2.jsx)(_index.Text, {
304
257
  sx: sx.fieldColumnTitle
305
- }, "PingOne")), (0, _react2.jsx)(_index.Box, {
258
+ }, "Application")), (0, _react2.jsx)(_index.Box, {
306
259
  sx: sx.fieldColumnTitleWrapper
307
260
  }, (0, _react2.jsx)(_index.Text, {
308
261
  sx: sx.fieldColumnTitle
309
- }, "Google Suites"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(Row, {
262
+ }, "PingOne"))), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(Row, {
310
263
  withBadge: true,
311
- leftValue: "UserId",
312
- rightValue: "mdorey"
264
+ leftValue: "username",
265
+ rightValue: "User ID"
313
266
  }), (0, _react2.jsx)(Row, {
314
- withError: withError,
315
- leftValue: "givenName",
316
- rightValue: "firstName"
267
+ leftValue: "firstName",
268
+ rightValue: "Given Name"
269
+ }), (0, _react2.jsx)(Row, {
270
+ leftValue: "lastName",
271
+ rightValue: "Family Name"
317
272
  }), (0, _react2.jsx)(Row, {
318
273
  withError: withError,
319
- leftValue: "familyName",
320
- rightValue: "lastName"
274
+ leftValue: "population",
275
+ rightValue: "Population"
321
276
  })));
322
277
  };
323
278
  exports.DisplayWithError = DisplayWithError;
@@ -7,10 +7,9 @@ import React, { memo, useEffect, useRef, useState } from 'react';
7
7
  import AddIcon from '@pingux/mdi-react/AddIcon';
8
8
  import AlertCircleIcon from '@pingux/mdi-react/AlertCircleIcon';
9
9
  import CogsIcon from '@pingux/mdi-react/CogsIcon';
10
- import CreateIcon from '@pingux/mdi-react/CreateIcon';
11
10
  import DeleteIcon from '@pingux/mdi-react/DeleteIcon';
12
11
  import { v4 as uuid } from 'uuid';
13
- import { Badge, Box, Button, Callout, ComboBoxField, HelpHint, Icon, IconButton, Item, Link, ScrollBox, Separator, Text, TextField } from '../index';
12
+ import { Badge, Box, Button, Callout, ComboBoxField, Icon, IconButton, Item, Link, ScrollBox, Separator, Text, TextField } from '../index';
14
13
  import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.js';
15
14
  import statuses from '../utils/devUtils/constants/statuses';
16
15
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -22,33 +21,26 @@ var sx = {
22
21
  position: 'absolute',
23
22
  right: '4px',
24
23
  top: '4px',
25
- fill: '#A31300'
26
- },
27
- attributeMappingTitle: {
28
- fontSize: 'lg',
29
- lineHeight: '21px',
30
- fontWeight: 3,
31
- color: 'text.primary'
32
- },
33
- attributeMappingTitleWrapper: {
34
- marginBottom: 'md',
35
- alignItems: 'center'
24
+ fill: 'critical.bright'
36
25
  },
37
26
  badge: {
38
- width: 'xx',
39
- height: '22px',
40
27
  alignSelf: 'center',
41
- minWidth: 'fit-content',
42
28
  border: '1px solid',
43
29
  borderColor: 'neutral.80',
44
- backgroundColor: 'white !important',
45
- marginLeft: 8,
30
+ backgroundColor: 'white',
31
+ marginLeft: 'sm',
46
32
  '& span': {
47
- fontSize: 'sm',
48
33
  lineHeight: 1,
49
- color: '#253746'
34
+ color: 'text.primary'
50
35
  }
51
36
  },
37
+ container: {
38
+ px: 'sm',
39
+ pt: 'sm',
40
+ pb: 'lg',
41
+ width: '450px',
42
+ backgroundColor: 'accent.99'
43
+ },
52
44
  calloutSx: {
53
45
  width: '450px',
54
46
  marginBottom: 'xs',
@@ -57,11 +49,6 @@ var sx = {
57
49
  createIconButton: {
58
50
  marginLeft: 'xs'
59
51
  },
60
- defaultFieldsWrapperBox: {
61
- padding: '10px 10px 24px 10px',
62
- width: '450px',
63
- backgroundColor: 'accent.99'
64
- },
65
52
  fieldColumnTitle: {
66
53
  fontWeight: 3,
67
54
  fontSize: 'md',
@@ -76,13 +63,8 @@ var sx = {
76
63
  marginTop: 'sm'
77
64
  },
78
65
  separator: {
79
- width: '21px',
66
+ width: '20px',
80
67
  margin: '0 2px'
81
- },
82
- tooltipBox: {
83
- marginLeft: 'xs',
84
- height: 'md',
85
- width: 'md'
86
68
  }
87
69
  };
88
70
  var editSx = {
@@ -151,7 +133,6 @@ var editSx = {
151
133
  var helperTextId = uuid();
152
134
  var Row = function Row(props) {
153
135
  var withBadge = props.withBadge,
154
- withTooltip = props.withTooltip,
155
136
  withError = props.withError,
156
137
  leftValue = props.leftValue,
157
138
  rightValue = props.rightValue;
@@ -199,35 +180,11 @@ var Row = function Row(props) {
199
180
  }), withBadge && ___EmotionJSX(Badge, {
200
181
  label: "Required",
201
182
  sx: sx.badge
202
- }), withTooltip && ___EmotionJSX(Box, {
203
- sx: sx.tooltipBox
204
- }, ___EmotionJSX(HelpHint, {
205
- tooltipProps: {
206
- direction: 'bottom'
207
- }
208
- }, "Population set to default")));
209
- };
210
- var Title = function Title() {
211
- return ___EmotionJSX(Box, {
212
- isRow: true,
213
- sx: sx.attributeMappingTitleWrapper
214
- }, ___EmotionJSX(Text, {
215
- sx: sx.attributeMappingTitle
216
- }, "Attribute Mapping"), ___EmotionJSX(Box, null, ___EmotionJSX(IconButton, {
217
- sx: sx.createIconButton,
218
- variant: "inverted",
219
- "aria-label": "edit header button"
220
- }, ___EmotionJSX(Icon, {
221
- icon: CreateIcon,
222
- size: "sm",
223
- title: {
224
- name: 'Create Icon'
225
- }
226
- }))));
183
+ }));
227
184
  };
228
185
  export var Display = function Display() {
229
- return ___EmotionJSX(Box, null, ___EmotionJSX(Title, null), ___EmotionJSX(Box, {
230
- sx: sx.defaultFieldsWrapperBox
186
+ return ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
187
+ sx: sx.container
231
188
  }, ___EmotionJSX(Box, {
232
189
  isRow: true,
233
190
  sx: {
@@ -237,27 +194,23 @@ export var Display = function Display() {
237
194
  sx: sx.fieldColumnTitleWrapper
238
195
  }, ___EmotionJSX(Text, {
239
196
  sx: sx.fieldColumnTitle
240
- }, "PingOne")), ___EmotionJSX(Box, {
197
+ }, "Application")), ___EmotionJSX(Box, {
241
198
  sx: sx.fieldColumnTitleWrapper
242
199
  }, ___EmotionJSX(Text, {
243
200
  sx: sx.fieldColumnTitle
244
- }, "Google Suites"))), ___EmotionJSX(Separator, null), ___EmotionJSX(Row, {
201
+ }, "PingOne"))), ___EmotionJSX(Separator, null), ___EmotionJSX(Row, {
245
202
  withBadge: true,
246
- leftValue: "UserId",
247
- rightValue: "mdorey"
203
+ leftValue: "username",
204
+ rightValue: "User ID"
248
205
  }), ___EmotionJSX(Row, {
249
- leftValue: "givenName",
250
- rightValue: "firstName"
206
+ leftValue: "firstName",
207
+ rightValue: "Given Name"
251
208
  }), ___EmotionJSX(Row, {
252
- leftValue: "familyName",
253
- rightValue: "lastName"
209
+ leftValue: "lastName",
210
+ rightValue: "Family Name"
254
211
  }), ___EmotionJSX(Row, {
255
- withTooltip: true,
256
212
  leftValue: "population",
257
- rightValue: "population"
258
- }), ___EmotionJSX(Row, {
259
- leftValue: "password",
260
- rightValue: "password"
213
+ rightValue: "Population"
261
214
  })));
262
215
  };
263
216
  Display.parameters = {
@@ -268,7 +221,7 @@ Display.parameters = {
268
221
  };
269
222
  export var DisplayWithError = function DisplayWithError() {
270
223
  var withError = true;
271
- return ___EmotionJSX(Box, null, ___EmotionJSX(Title, null), ___EmotionJSX(Callout, {
224
+ return ___EmotionJSX(Box, null, ___EmotionJSX(Callout, {
272
225
  status: statuses.ERROR,
273
226
  sx: sx.calloutSx
274
227
  }, ___EmotionJSX(Text, null, "You\u2019ve got problems. Allow me to tell you about them in some detail so that you can address them.", ___EmotionJSX(Link, {
@@ -277,7 +230,7 @@ export var DisplayWithError = function DisplayWithError() {
277
230
  "aria-label": "".concat(statuses.ERROR, "-callout"),
278
231
  variant: "app"
279
232
  }, ' ', "Read More"))), ___EmotionJSX(Box, {
280
- sx: sx.defaultFieldsWrapperBox
233
+ sx: sx.container
281
234
  }, ___EmotionJSX(Box, {
282
235
  isRow: true,
283
236
  sx: {
@@ -287,22 +240,24 @@ export var DisplayWithError = function DisplayWithError() {
287
240
  sx: sx.fieldColumnTitleWrapper
288
241
  }, ___EmotionJSX(Text, {
289
242
  sx: sx.fieldColumnTitle
290
- }, "PingOne")), ___EmotionJSX(Box, {
243
+ }, "Application")), ___EmotionJSX(Box, {
291
244
  sx: sx.fieldColumnTitleWrapper
292
245
  }, ___EmotionJSX(Text, {
293
246
  sx: sx.fieldColumnTitle
294
- }, "Google Suites"))), ___EmotionJSX(Separator, null), ___EmotionJSX(Row, {
247
+ }, "PingOne"))), ___EmotionJSX(Separator, null), ___EmotionJSX(Row, {
295
248
  withBadge: true,
296
- leftValue: "UserId",
297
- rightValue: "mdorey"
249
+ leftValue: "username",
250
+ rightValue: "User ID"
298
251
  }), ___EmotionJSX(Row, {
299
- withError: withError,
300
- leftValue: "givenName",
301
- rightValue: "firstName"
252
+ leftValue: "firstName",
253
+ rightValue: "Given Name"
254
+ }), ___EmotionJSX(Row, {
255
+ leftValue: "lastName",
256
+ rightValue: "Family Name"
302
257
  }), ___EmotionJSX(Row, {
303
258
  withError: withError,
304
- leftValue: "familyName",
305
- rightValue: "lastName"
259
+ leftValue: "population",
260
+ rightValue: "Population"
306
261
  })));
307
262
  };
308
263
  export var Edit = function Edit() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.14.1-alpha.0",
3
+ "version": "2.14.1-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",