@pingux/astro 1.14.0-alpha.90 → 1.14.0-alpha.91

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.
@@ -46,7 +46,7 @@ var _useStatusClasses2 = _interopRequireDefault(require("../../hooks/useStatusCl
46
46
 
47
47
  var _react2 = require("@emotion/react");
48
48
 
49
- var _excluded = ["maxHeight", "children", "sx", "className", "hasShadows", "onScroll"];
49
+ var _excluded = ["maxHeight", "children", "sx", "hasShadows", "onScroll"];
50
50
 
51
51
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
52
52
 
@@ -60,7 +60,6 @@ var ScrollBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
60
60
  var maxHeight = props.maxHeight,
61
61
  children = props.children,
62
62
  sx = props.sx,
63
- className = props.className,
64
63
  hasShadows = props.hasShadows,
65
64
  scrollHandler = props.onScroll,
66
65
  others = (0, _objectWithoutProperties2["default"])(props, _excluded);
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
6
+
7
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
8
+
9
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
10
+
11
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
12
+
13
+ _Object$defineProperty(exports, "__esModule", {
14
+ value: true
15
+ });
16
+
17
+ exports["default"] = exports.Default = void 0;
18
+
19
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
20
+
21
+ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
22
+
23
+ var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
24
+
25
+ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
26
+
27
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
28
+
29
+ var _react = _interopRequireWildcard(require("react"));
30
+
31
+ var _CogsIcon = _interopRequireDefault(require("mdi-react/CogsIcon"));
32
+
33
+ var _DeleteIcon = _interopRequireDefault(require("mdi-react/DeleteIcon"));
34
+
35
+ var _AddIcon = _interopRequireDefault(require("mdi-react/AddIcon"));
36
+
37
+ var _index = require("../index");
38
+
39
+ var _react2 = require("@emotion/react");
40
+
41
+ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
42
+
43
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
44
+
45
+ var items = [{
46
+ name: 'Aardvark',
47
+ id: '1'
48
+ }, {
49
+ name: 'Kangaroo',
50
+ id: '2'
51
+ }, {
52
+ name: 'Snake',
53
+ id: '3'
54
+ }];
55
+ var _default = {
56
+ title: 'Recipes/AttributesP1Mappings'
57
+ };
58
+ exports["default"] = _default;
59
+ var Row = /*#__PURE__*/(0, _react.memo)(function (props) {
60
+ var isDisabled = props.isDisabled,
61
+ isNewRow = props.isNewRow,
62
+ index = props.index,
63
+ textValue = props.textValue,
64
+ inputValue = props.inputValue,
65
+ updateRow = props.updateRow,
66
+ removeRow = props.removeRow,
67
+ areRowsValid = props.areRowsValid,
68
+ isSubmitted = props.isSubmitted,
69
+ submitFields = props.submitFields;
70
+ var rowRef = (0, _react.useRef)();
71
+ var textFieldRef = (0, _react.useRef)();
72
+
73
+ var setTextValue = function setTextValue(value) {
74
+ updateRow(index, value, 'textValue');
75
+ submitFields(false);
76
+ };
77
+
78
+ var setInputValue = function setInputValue(value) {
79
+ updateRow(index, value, 'inputValue');
80
+ submitFields(false);
81
+ };
82
+
83
+ (0, _react.useEffect)(function () {
84
+ if (isNewRow) {
85
+ textFieldRef.current.focus();
86
+ textFieldRef.current.scrollIntoView();
87
+ }
88
+ }, []);
89
+ return (0, _react2.jsx)(_index.Box, {
90
+ isRow: true,
91
+ alignItems: "center",
92
+ mb: "md",
93
+ ref: rowRef
94
+ }, (0, _react2.jsx)(_index.Box, {
95
+ width: "310px",
96
+ sx: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? {
97
+ mb: '24.95px'
98
+ } : {}
99
+ }, (0, _react2.jsx)(_index.TextField, {
100
+ name: "custom-name",
101
+ "aria-label": "text field",
102
+ labelProps: {
103
+ 'aria-label': 'selection field',
104
+ mb: 0
105
+ },
106
+ controlProps: {
107
+ sx: {
108
+ height: '40px !important'
109
+ }
110
+ },
111
+ id: "textField ".concat(index),
112
+ key: "textField ".concat(index),
113
+ isReadOnly: isDisabled,
114
+ value: textValue,
115
+ onChange: function onChange(e) {
116
+ return setTextValue(e.target.value);
117
+ },
118
+ ref: textFieldRef,
119
+ status: !areRowsValid && isSubmitted && textValue === '' && inputValue !== '' ? 'error' : 'default',
120
+ helperText: !areRowsValid && isSubmitted && textValue === '' && inputValue !== '' ? 'Enter an attribute.' : null
121
+ })), (0, _react2.jsx)(_index.Box, {
122
+ alignItems: "center",
123
+ ml: "12px",
124
+ isRow: true,
125
+ width: "378px",
126
+ sx: !areRowsValid && isSubmitted && textValue === '' && inputValue !== '' ? {
127
+ mb: '24.95px'
128
+ } : {}
129
+ }, (0, _react2.jsx)(_index.Box, {
130
+ flexGrow: "1",
131
+ maxWidth: "310px"
132
+ }, (0, _react2.jsx)(_index.ComboBoxField, {
133
+ items: items,
134
+ labelMode: "float",
135
+ id: "inputField ".concat(index),
136
+ key: "inputField ".concat(index),
137
+ status: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? 'error' : 'default',
138
+ helperText: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? 'Select an item.' : null,
139
+ labelProps: {
140
+ 'aria-label': 'selection field',
141
+ mb: 0
142
+ },
143
+ "aria-label": "selection field",
144
+ controlProps: {
145
+ 'aria-label': 'selection field',
146
+ sx: {
147
+ height: '40px !important',
148
+ pt: '5px !important'
149
+ }
150
+ },
151
+ containerProps: {
152
+ 'aria-label': 'selection field',
153
+ width: '100%',
154
+ maxWidth: '310px',
155
+ sx: {
156
+ width: '100%'
157
+ }
158
+ },
159
+ inputValue: inputValue,
160
+ onInputChange: setInputValue
161
+ }, function (item) {
162
+ return (0, _react2.jsx)(_index.Item, {
163
+ key: item.name,
164
+ "data-id": item.name
165
+ }, item.name);
166
+ })), (0, _react2.jsx)(_index.Box, {
167
+ isRow: true,
168
+ alignItems: "center",
169
+ sx: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? {
170
+ mb: '22.475px',
171
+ ml: 'xs'
172
+ } : {
173
+ ml: 'xs'
174
+ }
175
+ }, (0, _react2.jsx)(_index.IconButton, {
176
+ "aria-label": "icon button with tooltip",
177
+ title: "Advanced Expression"
178
+ }, (0, _react2.jsx)(_index.Icon, {
179
+ icon: _CogsIcon["default"]
180
+ })), (0, _react2.jsx)(_index.IconButton, {
181
+ "aria-label": "icon button with tooltip",
182
+ title: "Delete",
183
+ sx: {
184
+ ml: 'xs'
185
+ },
186
+ onPress: function onPress() {
187
+ return removeRow(index);
188
+ }
189
+ }, (0, _react2.jsx)(_index.Icon, {
190
+ icon: _DeleteIcon["default"]
191
+ })))));
192
+ });
193
+
194
+ var Default = function Default() {
195
+ var defaultRows = [{
196
+ isDisabled: false,
197
+ textValue: '',
198
+ inputValue: '',
199
+ name: 'first default'
200
+ }, {
201
+ isDisabled: false,
202
+ textValue: '',
203
+ inputValue: '',
204
+ name: 'second default'
205
+ }];
206
+
207
+ var _useState = (0, _react.useState)(defaultRows),
208
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
209
+ rows = _useState2[0],
210
+ setRows = _useState2[1];
211
+
212
+ var _useState3 = (0, _react.useState)(false),
213
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
214
+ isSubmitted = _useState4[0],
215
+ submitFields = _useState4[1];
216
+
217
+ var addRow = function addRow() {
218
+ var _context;
219
+
220
+ var newRow = {
221
+ isDisabled: false,
222
+ isNewRow: true,
223
+ textValue: '',
224
+ inputValue: '',
225
+ name: Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5)
226
+ };
227
+ setRows((0, _concat["default"])(_context = []).call(_context, rows, [newRow]));
228
+ };
229
+
230
+ var removeRow = function removeRow(rowIndex) {
231
+ var _context2;
232
+
233
+ var newArray = (0, _filter["default"])(rows).call(rows, function (row, index) {
234
+ return rowIndex !== index;
235
+ });
236
+ setRows((0, _concat["default"])(_context2 = []).call(_context2, newArray));
237
+ };
238
+
239
+ var updateRow = function updateRow(rowIndex, value, attribute) {
240
+ var _context3;
241
+
242
+ var newArray = (0, _map["default"])(rows).call(rows, function (row, index) {
243
+ if (rowIndex === index) {
244
+ var thisRow = rows[index];
245
+ thisRow[attribute] = value;
246
+ return thisRow;
247
+ }
248
+
249
+ return row;
250
+ });
251
+ setRows((0, _concat["default"])(_context3 = []).call(_context3, newArray));
252
+ };
253
+
254
+ return (0, _react2.jsx)(_index.Box, {
255
+ maxWidth: "740px"
256
+ }, (0, _react2.jsx)(_index.Box, {
257
+ isRow: true,
258
+ alignItems: "center",
259
+ mb: "md",
260
+ ml: "xs"
261
+ }, (0, _react2.jsx)(_index.Text, {
262
+ sx: {
263
+ fontSize: 'sm',
264
+ fontWeight: 400,
265
+ color: 'neutral.40'
266
+ }
267
+ }, "Create new attributes and map predefined attributes with their PingOne Mappings."), (0, _react2.jsx)(_index.Button, {
268
+ variant: "inline",
269
+ ml: "auto",
270
+ height: "22px",
271
+ minWidth: "0px",
272
+ width: "70px",
273
+ onPress: addRow
274
+ }, (0, _react2.jsx)(_index.Box, {
275
+ isRow: true,
276
+ alignItems: "center",
277
+ width: "38px",
278
+ justifyContent: "center"
279
+ }, (0, _react2.jsx)(_index.Icon, {
280
+ icon: _AddIcon["default"],
281
+ mr: "xs",
282
+ color: "active",
283
+ size: 15
284
+ }), "Add"))), (0, _react2.jsx)(_index.Box, {
285
+ backgroundColor: "accent.99",
286
+ p: "16px"
287
+ }, (0, _react2.jsx)(_index.Box, {
288
+ isRow: true
289
+ }, (0, _react2.jsx)(_index.Text, {
290
+ sx: {
291
+ fontWeight: 3,
292
+ fontSize: 'md',
293
+ maxWidth: '310px',
294
+ width: 'calc(50% - 26px)',
295
+ minWidth: '153px'
296
+ }
297
+ }, "Attributes"), (0, _react2.jsx)(_index.Text, {
298
+ sx: {
299
+ fontWeight: 3,
300
+ fontSize: 'md',
301
+ ml: '10px',
302
+ flexGrow: 1
303
+ }
304
+ }, "PingOne Mappings")), (0, _react2.jsx)(_index.Separator, null), (0, _react2.jsx)(_index.ScrollBox, {
305
+ mt: "md",
306
+ maxHeight: "700px"
307
+ }, (0, _react2.jsx)(_index.Box, null, (0, _map["default"])(rows).call(rows, function (row, index) {
308
+ return (0, _react2.jsx)(Row, (0, _extends2["default"])({}, row, {
309
+ index: index,
310
+ removeRow: removeRow,
311
+ updateRow: updateRow,
312
+ key: "row container ".concat(row.name),
313
+ isSubmitted: isSubmitted,
314
+ submitFields: submitFields
315
+ }));
316
+ })))));
317
+ };
318
+
319
+ exports.Default = Default;
@@ -10,7 +10,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
10
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
11
11
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
12
12
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
13
- var _excluded = ["maxHeight", "children", "sx", "className", "hasShadows", "onScroll"];
13
+ var _excluded = ["maxHeight", "children", "sx", "hasShadows", "onScroll"];
14
14
 
15
15
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
16
 
@@ -25,7 +25,6 @@ var ScrollBox = /*#__PURE__*/forwardRef(function (props, ref) {
25
25
  var maxHeight = props.maxHeight,
26
26
  children = props.children,
27
27
  sx = props.sx,
28
- className = props.className,
29
28
  hasShadows = props.hasShadows,
30
29
  scrollHandler = props.onScroll,
31
30
  others = _objectWithoutProperties(props, _excluded);
@@ -0,0 +1,284 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
5
+ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
6
+ import React, { useState, useRef, useEffect, memo } from 'react';
7
+ import CogsIcon from 'mdi-react/CogsIcon';
8
+ import DeleteIcon from 'mdi-react/DeleteIcon';
9
+ import AddIcon from 'mdi-react/AddIcon';
10
+ import { ScrollBox, ComboBoxField, IconButton, Text, Box, Item, Icon, TextField, Separator, Button } from '../index';
11
+ import { jsx as ___EmotionJSX } from "@emotion/react";
12
+ var items = [{
13
+ name: 'Aardvark',
14
+ id: '1'
15
+ }, {
16
+ name: 'Kangaroo',
17
+ id: '2'
18
+ }, {
19
+ name: 'Snake',
20
+ id: '3'
21
+ }];
22
+ export default {
23
+ title: 'Recipes/AttributesP1Mappings'
24
+ };
25
+ var Row = /*#__PURE__*/memo(function (props) {
26
+ var isDisabled = props.isDisabled,
27
+ isNewRow = props.isNewRow,
28
+ index = props.index,
29
+ textValue = props.textValue,
30
+ inputValue = props.inputValue,
31
+ updateRow = props.updateRow,
32
+ removeRow = props.removeRow,
33
+ areRowsValid = props.areRowsValid,
34
+ isSubmitted = props.isSubmitted,
35
+ submitFields = props.submitFields;
36
+ var rowRef = useRef();
37
+ var textFieldRef = useRef();
38
+
39
+ var setTextValue = function setTextValue(value) {
40
+ updateRow(index, value, 'textValue');
41
+ submitFields(false);
42
+ };
43
+
44
+ var setInputValue = function setInputValue(value) {
45
+ updateRow(index, value, 'inputValue');
46
+ submitFields(false);
47
+ };
48
+
49
+ useEffect(function () {
50
+ if (isNewRow) {
51
+ textFieldRef.current.focus();
52
+ textFieldRef.current.scrollIntoView();
53
+ }
54
+ }, []);
55
+ return ___EmotionJSX(Box, {
56
+ isRow: true,
57
+ alignItems: "center",
58
+ mb: "md",
59
+ ref: rowRef
60
+ }, ___EmotionJSX(Box, {
61
+ width: "310px",
62
+ sx: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? {
63
+ mb: '24.95px'
64
+ } : {}
65
+ }, ___EmotionJSX(TextField, {
66
+ name: "custom-name",
67
+ "aria-label": "text field",
68
+ labelProps: {
69
+ 'aria-label': 'selection field',
70
+ mb: 0
71
+ },
72
+ controlProps: {
73
+ sx: {
74
+ height: '40px !important'
75
+ }
76
+ },
77
+ id: "textField ".concat(index),
78
+ key: "textField ".concat(index),
79
+ isReadOnly: isDisabled,
80
+ value: textValue,
81
+ onChange: function onChange(e) {
82
+ return setTextValue(e.target.value);
83
+ },
84
+ ref: textFieldRef,
85
+ status: !areRowsValid && isSubmitted && textValue === '' && inputValue !== '' ? 'error' : 'default',
86
+ helperText: !areRowsValid && isSubmitted && textValue === '' && inputValue !== '' ? 'Enter an attribute.' : null
87
+ })), ___EmotionJSX(Box, {
88
+ alignItems: "center",
89
+ ml: "12px",
90
+ isRow: true,
91
+ width: "378px",
92
+ sx: !areRowsValid && isSubmitted && textValue === '' && inputValue !== '' ? {
93
+ mb: '24.95px'
94
+ } : {}
95
+ }, ___EmotionJSX(Box, {
96
+ flexGrow: "1",
97
+ maxWidth: "310px"
98
+ }, ___EmotionJSX(ComboBoxField, {
99
+ items: items,
100
+ labelMode: "float",
101
+ id: "inputField ".concat(index),
102
+ key: "inputField ".concat(index),
103
+ status: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? 'error' : 'default',
104
+ helperText: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? 'Select an item.' : null,
105
+ labelProps: {
106
+ 'aria-label': 'selection field',
107
+ mb: 0
108
+ },
109
+ "aria-label": "selection field",
110
+ controlProps: {
111
+ 'aria-label': 'selection field',
112
+ sx: {
113
+ height: '40px !important',
114
+ pt: '5px !important'
115
+ }
116
+ },
117
+ containerProps: {
118
+ 'aria-label': 'selection field',
119
+ width: '100%',
120
+ maxWidth: '310px',
121
+ sx: {
122
+ width: '100%'
123
+ }
124
+ },
125
+ inputValue: inputValue,
126
+ onInputChange: setInputValue
127
+ }, function (item) {
128
+ return ___EmotionJSX(Item, {
129
+ key: item.name,
130
+ "data-id": item.name
131
+ }, item.name);
132
+ })), ___EmotionJSX(Box, {
133
+ isRow: true,
134
+ alignItems: "center",
135
+ sx: !areRowsValid && isSubmitted && inputValue === '' && textValue !== '' ? {
136
+ mb: '22.475px',
137
+ ml: 'xs'
138
+ } : {
139
+ ml: 'xs'
140
+ }
141
+ }, ___EmotionJSX(IconButton, {
142
+ "aria-label": "icon button with tooltip",
143
+ title: "Advanced Expression"
144
+ }, ___EmotionJSX(Icon, {
145
+ icon: CogsIcon
146
+ })), ___EmotionJSX(IconButton, {
147
+ "aria-label": "icon button with tooltip",
148
+ title: "Delete",
149
+ sx: {
150
+ ml: 'xs'
151
+ },
152
+ onPress: function onPress() {
153
+ return removeRow(index);
154
+ }
155
+ }, ___EmotionJSX(Icon, {
156
+ icon: DeleteIcon
157
+ })))));
158
+ });
159
+ export var Default = function Default() {
160
+ var defaultRows = [{
161
+ isDisabled: false,
162
+ textValue: '',
163
+ inputValue: '',
164
+ name: 'first default'
165
+ }, {
166
+ isDisabled: false,
167
+ textValue: '',
168
+ inputValue: '',
169
+ name: 'second default'
170
+ }];
171
+
172
+ var _useState = useState(defaultRows),
173
+ _useState2 = _slicedToArray(_useState, 2),
174
+ rows = _useState2[0],
175
+ setRows = _useState2[1];
176
+
177
+ var _useState3 = useState(false),
178
+ _useState4 = _slicedToArray(_useState3, 2),
179
+ isSubmitted = _useState4[0],
180
+ submitFields = _useState4[1];
181
+
182
+ var addRow = function addRow() {
183
+ var _context;
184
+
185
+ var newRow = {
186
+ isDisabled: false,
187
+ isNewRow: true,
188
+ textValue: '',
189
+ inputValue: '',
190
+ name: Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5)
191
+ };
192
+ setRows(_concatInstanceProperty(_context = []).call(_context, rows, [newRow]));
193
+ };
194
+
195
+ var removeRow = function removeRow(rowIndex) {
196
+ var _context2;
197
+
198
+ var newArray = _filterInstanceProperty(rows).call(rows, function (row, index) {
199
+ return rowIndex !== index;
200
+ });
201
+
202
+ setRows(_concatInstanceProperty(_context2 = []).call(_context2, newArray));
203
+ };
204
+
205
+ var updateRow = function updateRow(rowIndex, value, attribute) {
206
+ var _context3;
207
+
208
+ var newArray = _mapInstanceProperty(rows).call(rows, function (row, index) {
209
+ if (rowIndex === index) {
210
+ var thisRow = rows[index];
211
+ thisRow[attribute] = value;
212
+ return thisRow;
213
+ }
214
+
215
+ return row;
216
+ });
217
+
218
+ setRows(_concatInstanceProperty(_context3 = []).call(_context3, newArray));
219
+ };
220
+
221
+ return ___EmotionJSX(Box, {
222
+ maxWidth: "740px"
223
+ }, ___EmotionJSX(Box, {
224
+ isRow: true,
225
+ alignItems: "center",
226
+ mb: "md",
227
+ ml: "xs"
228
+ }, ___EmotionJSX(Text, {
229
+ sx: {
230
+ fontSize: 'sm',
231
+ fontWeight: 400,
232
+ color: 'neutral.40'
233
+ }
234
+ }, "Create new attributes and map predefined attributes with their PingOne Mappings."), ___EmotionJSX(Button, {
235
+ variant: "inline",
236
+ ml: "auto",
237
+ height: "22px",
238
+ minWidth: "0px",
239
+ width: "70px",
240
+ onPress: addRow
241
+ }, ___EmotionJSX(Box, {
242
+ isRow: true,
243
+ alignItems: "center",
244
+ width: "38px",
245
+ justifyContent: "center"
246
+ }, ___EmotionJSX(Icon, {
247
+ icon: AddIcon,
248
+ mr: "xs",
249
+ color: "active",
250
+ size: 15
251
+ }), "Add"))), ___EmotionJSX(Box, {
252
+ backgroundColor: "accent.99",
253
+ p: "16px"
254
+ }, ___EmotionJSX(Box, {
255
+ isRow: true
256
+ }, ___EmotionJSX(Text, {
257
+ sx: {
258
+ fontWeight: 3,
259
+ fontSize: 'md',
260
+ maxWidth: '310px',
261
+ width: 'calc(50% - 26px)',
262
+ minWidth: '153px'
263
+ }
264
+ }, "Attributes"), ___EmotionJSX(Text, {
265
+ sx: {
266
+ fontWeight: 3,
267
+ fontSize: 'md',
268
+ ml: '10px',
269
+ flexGrow: 1
270
+ }
271
+ }, "PingOne Mappings")), ___EmotionJSX(Separator, null), ___EmotionJSX(ScrollBox, {
272
+ mt: "md",
273
+ maxHeight: "700px"
274
+ }, ___EmotionJSX(Box, null, _mapInstanceProperty(rows).call(rows, function (row, index) {
275
+ return ___EmotionJSX(Row, _extends({}, row, {
276
+ index: index,
277
+ removeRow: removeRow,
278
+ updateRow: updateRow,
279
+ key: "row container ".concat(row.name),
280
+ isSubmitted: isSubmitted,
281
+ submitFields: submitFields
282
+ }));
283
+ })))));
284
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.14.0-alpha.90",
3
+ "version": "1.14.0-alpha.91",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "ux-development@pingidentity.com",
6
6
  "license": "Apache-2.0",