@pingux/astro 2.14.1-alpha.0 → 2.14.1-alpha.2

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.
@@ -13,6 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
+ var _uuid = require("uuid");
16
17
  var _index = require("../../index");
17
18
  var _colors = require("../../styles/colors");
18
19
  var _react2 = require("@emotion/react");
@@ -29,6 +30,15 @@ var Bracket = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
29
30
  (0, _react.useImperativeHandle)(ref, function () {
30
31
  return bracketRef.current;
31
32
  });
33
+ var bracketId = (0, _react.useMemo)(function () {
34
+ return (0, _uuid.v4)();
35
+ }, []);
36
+ var bracketFillOneId = (0, _react.useMemo)(function () {
37
+ return (0, _uuid.v4)();
38
+ }, []);
39
+ var bracketFillTwoId = (0, _react.useMemo)(function () {
40
+ return (0, _uuid.v4)();
41
+ }, []);
32
42
  return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
33
43
  variant: "bracket.base"
34
44
  }, others), !isLast && (0, _react2.jsx)(_index.Box, {
@@ -47,9 +57,9 @@ var Bracket = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
47
57
  flexGrow: 1
48
58
  },
49
59
  "data-testid": "isLastLayer",
50
- "aria-labelledby": "bracket-fill-vertical-icon-title"
60
+ "aria-labelledby": "bracket-fill-vertical-icon-title-".concat(bracketId)
51
61
  }, (0, _react2.jsx)("title", {
52
- id: "bracket-fill-vertical-icon-title"
62
+ id: "bracket-fill-vertical-icon-title-".concat(bracketId)
53
63
  }, "bracket-fill"), (0, _react2.jsx)("g", null, (0, _react2.jsx)("title", null, "Layer 3"), (0, _react2.jsx)("line", {
54
64
  strokeLinecap: "undefined",
55
65
  strokeLinejoin: "undefined",
@@ -69,9 +79,9 @@ var Bracket = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
69
79
  style: {
70
80
  flexGrow: 1
71
81
  },
72
- "aria-labelledby": "bracket-fill-1-icon-title"
82
+ "aria-labelledby": "bracket-fill-1-icon-title-".concat(bracketFillOneId)
73
83
  }, (0, _react2.jsx)("title", {
74
- id: "bracket-fill-1-icon-title"
84
+ id: "bracket-fill-1-icon-title-".concat(bracketFillOneId)
75
85
  }, "bracket-fill"), (0, _react2.jsx)("g", null, (0, _react2.jsx)("title", null, "Layer 1"), (0, _react2.jsx)("line", {
76
86
  strokeLinecap: "undefined",
77
87
  strokeLinejoin: "undefined",
@@ -85,9 +95,9 @@ var Bracket = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
85
95
  xmlns: "http://www.w3.org/2000/svg",
86
96
  version: "1.1",
87
97
  height: "15",
88
- "aria-labelledby": "bracket-fill-2-icon-title"
98
+ "aria-labelledby": "bracket-fill-2-icon-title-".concat(bracketFillTwoId)
89
99
  }, (0, _react2.jsx)("title", {
90
- id: "bracket-fill-2-icon-title"
100
+ id: "bracket-fill-2-icon-title-".concat(bracketFillTwoId)
91
101
  }, "bracket-fill"), (0, _react2.jsx)("g", {
92
102
  transform: "translate(-1, 0)"
93
103
  }, (0, _react2.jsx)("title", null, "Layer 2"), (0, _react2.jsx)("path", {
@@ -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;
@@ -12,12 +12,10 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
12
12
  _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
- exports["default"] = exports.Default = void 0;
15
+ exports["default"] = exports.Edit = exports.Display = void 0;
16
16
  var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
18
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
19
18
  var _react = _interopRequireDefault(require("react"));
20
- var _CreateIcon = _interopRequireDefault(require("@pingux/mdi-react/CreateIcon"));
21
19
  var _TrashIcon = _interopRequireDefault(require("@pingux/mdi-react/TrashIcon"));
22
20
  var _index = require("../index");
23
21
  var _react2 = require("@emotion/react");
@@ -27,24 +25,33 @@ var _default = {
27
25
  title: 'Recipes/Condition Filter'
28
26
  };
29
27
  exports["default"] = _default;
30
- var sx = {
31
- customBadgeStyles: {
32
- marginRight: 'sm',
33
- '& > span': {
34
- fontWeight: '500',
35
- textTransform: 'none'
36
- },
37
- ml: '3px',
38
- minWidth: '65px',
39
- 'z-index': '1'
28
+ var customBadgeStyles = {
29
+ marginRight: 'sm',
30
+ '& > span': {
31
+ fontWeight: 1,
32
+ textTransform: 'none'
40
33
  },
34
+ ml: '3px',
35
+ minWidth: '65px',
36
+ height: '20px',
37
+ 'z-index': '1'
38
+ };
39
+ var sx = {
40
+ equalBadgeStyles: _objectSpread(_objectSpread({}, customBadgeStyles), {}, {
41
+ bg: 'accent.95',
42
+ textColor: 'neutral.10',
43
+ alignSelf: 'center',
44
+ height: '21px',
45
+ minWidth: '51px'
46
+ }),
41
47
  borderedBoxStyles: {
42
48
  '&::after': {
43
- bg: 'decorative.7',
44
- width: '2px'
49
+ bg: 'decorative.4',
50
+ width: '2px',
51
+ display: 'block'
45
52
  },
46
53
  borderColor: 'neutral.80',
47
- borderRadius: '4px',
54
+ borderRadius: '3px 4px 4px 3px',
48
55
  borderStyle: 'solid',
49
56
  borderWidth: '1px 1px 1px 0px',
50
57
  padding: 'sm',
@@ -52,7 +59,7 @@ var sx = {
52
59
  },
53
60
  allConditionsBox: {
54
61
  '&::after': {
55
- bg: 'decorative.7',
62
+ bg: 'decorative.4',
56
63
  width: '2px'
57
64
  },
58
65
  alignItems: 'center',
@@ -65,86 +72,52 @@ var sx = {
65
72
  color: 'inherit',
66
73
  fontSize: 'sm',
67
74
  fontWeight: '3'
75
+ },
76
+ textStyles: {
77
+ pl: 'md',
78
+ pr: 'sm'
68
79
  }
69
80
  };
70
- var Default = function Default() {
71
- var allConditions = [{
72
- field1: 'Family Name',
73
- field3: 'John',
74
- key: 'FamilyNameField'
75
- }, {
76
- field1: 'Full Name',
77
- field3: 'Alex Smith',
78
- key: 'FullNameField'
79
- }];
80
- var anyConditions = [{
81
- field1: 'Group',
82
- field3: 'Marketing',
83
- key: 'Group1Field'
84
- }, {
85
- field1: 'Group',
86
- field3: 'UX Team',
87
- key: 'Group2Field'
88
- }];
89
- var noneConditions = [{
90
- field1: 'Misc',
91
- field3: 'Apple',
92
- key: 'Miscellaneous1'
93
- }, {
94
- field1: 'Misc',
95
- field3: 'Banana',
96
- key: 'Miscellaneous2'
97
- }];
98
- var trashButton = (0, _react2.jsx)(_index.IconButton, {
99
- "aria-label": "deleteButton",
100
- sx: {
101
- alignSelf: 'center'
102
- }
103
- }, (0, _react2.jsx)(_index.Icon, {
104
- icon: _TrashIcon["default"],
105
- sx: {
106
- '& > path': {
107
- fill: 'neutral.40'
108
- }
109
- },
110
- size: "md",
111
- title: {
112
- name: 'Trash Icon'
113
- }
114
- }));
115
- var _React$useState = _react["default"].useState(false),
116
- _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
117
- editOverviewVisible = _React$useState2[0],
118
- setEditOverviewVisible = _React$useState2[1];
119
- return (0, _react2.jsx)(_index.Box, null, !editOverviewVisible ? (0, _react2.jsx)(_index.Box, {
81
+ var allConditions = [{
82
+ field1: 'Family Name',
83
+ field3: 'John',
84
+ key: 'FamilyNameField'
85
+ }, {
86
+ field1: 'Full Name',
87
+ field3: 'Alex Smith',
88
+ key: 'FullNameField'
89
+ }];
90
+ var anyConditions = [{
91
+ field1: 'Group',
92
+ field3: 'Marketing',
93
+ key: 'Group1Field'
94
+ }, {
95
+ field1: 'Group',
96
+ field3: 'UX Team',
97
+ key: 'Group2Field'
98
+ }];
99
+ var noneConditions = [{
100
+ field1: 'Misc',
101
+ field3: 'Apple',
102
+ key: 'Miscellaneous1'
103
+ }, {
104
+ field1: 'Misc',
105
+ field3: 'Banana',
106
+ key: 'Miscellaneous2'
107
+ }];
108
+ var Display = function Display() {
109
+ return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
120
110
  bg: "accent.99",
121
111
  maxWidth: "318px",
122
112
  p: "sm"
123
113
  }, (0, _react2.jsx)(_index.Box, {
124
114
  isRow: true
125
- }, (0, _react2.jsx)(_index.Text, {
126
- variant: "itemTitle",
127
- fontWeight: "0",
128
- pb: "md"
129
- }, "Branch Condition"), (0, _react2.jsx)(_index.IconButton, {
130
- "aria-label": "edit",
131
- variant: "inverted",
132
- ml: "xs",
133
- onPress: function onPress() {
134
- return setEditOverviewVisible(true);
135
- }
136
- }, (0, _react2.jsx)(_index.Icon, {
137
- icon: _CreateIcon["default"],
138
- size: "xs",
139
- title: {
140
- name: 'Create Icon'
141
- }
142
- }))), (0, _react2.jsx)(_index.Box, {
115
+ }), (0, _react2.jsx)(_index.Box, {
143
116
  isRow: true
144
117
  }, (0, _react2.jsx)(_index.Badge, {
145
118
  label: "All",
146
119
  bg: "decorative.4",
147
- sx: sx.customBadgeStyles
120
+ sx: customBadgeStyles
148
121
  }), (0, _react2.jsx)(_index.Text, null, " of the conditions are true")), (0, _map["default"])(allConditions).call(allConditions, function (item) {
149
122
  return (0, _react2.jsx)(_index.Box, {
150
123
  isRow: true,
@@ -157,14 +130,11 @@ var Default = function Default() {
157
130
  isRow: true,
158
131
  sx: sx.allConditionsBox
159
132
  }, (0, _react2.jsx)(_index.Text, {
160
- pl: "md",
161
- pr: "sm"
133
+ sx: sx.textStyles
162
134
  }, item.field1), (0, _react2.jsx)(_index.Badge, {
163
135
  label: "Equals",
164
- bg: "accent.90",
165
- textColor: "neutral.10",
166
- sx: sx.customBadgeStyles,
167
- alignSelf: "center"
136
+ sx: sx.equalBadgeStyles,
137
+ textColor: "neutral.10"
168
138
  }), (0, _react2.jsx)(_index.Text, null, item.field3))));
169
139
  }), (0, _react2.jsx)(_index.Box, {
170
140
  isRow: true
@@ -177,7 +147,7 @@ var Default = function Default() {
177
147
  }, (0, _react2.jsx)(_index.Badge, {
178
148
  label: "Any",
179
149
  bg: "decorative.7",
180
- sx: sx.customBadgeStyles,
150
+ sx: customBadgeStyles,
181
151
  alignSelf: "center"
182
152
  }), (0, _react2.jsx)(_index.Text, null, " of the conditions are true")), (0, _react2.jsx)(_index.Box, {
183
153
  ml: "xs"
@@ -194,16 +164,18 @@ var Default = function Default() {
194
164
  bg: "white",
195
165
  isRow: true,
196
166
  width: "100%",
197
- sx: sx.allConditionsBox
167
+ sx: _objectSpread(_objectSpread({}, sx.allConditionsBox), {}, {
168
+ '&::after': {
169
+ bg: 'decorative.7',
170
+ width: '2px'
171
+ }
172
+ })
198
173
  }, (0, _react2.jsx)(_index.Text, {
199
- pl: "md",
200
- pr: "sm"
174
+ sx: sx.textStyles
201
175
  }, item.field1), (0, _react2.jsx)(_index.Badge, {
202
176
  label: "Equals",
203
- bg: "accent.90",
204
177
  textColor: "neutral.10",
205
- sx: sx.customBadgeStyles,
206
- alignSelf: "center"
178
+ sx: sx.equalBadgeStyles
207
179
  }), (0, _react2.jsx)(_index.Text, null, item.field3)));
208
180
  })))), (0, _react2.jsx)(_index.Box, {
209
181
  isRow: true
@@ -218,7 +190,7 @@ var Default = function Default() {
218
190
  }, (0, _react2.jsx)(_index.Badge, {
219
191
  label: "None",
220
192
  bg: "accent.20",
221
- sx: sx.customBadgeStyles,
193
+ sx: customBadgeStyles,
222
194
  alignSelf: "center"
223
195
  }), (0, _react2.jsx)(_index.Text, null, " of the conditions are true")), (0, _react2.jsx)(_index.Box, {
224
196
  ml: "xs"
@@ -235,26 +207,45 @@ var Default = function Default() {
235
207
  bg: "white",
236
208
  isRow: true,
237
209
  width: "100%",
238
- sx: sx.allConditionsBox
210
+ sx: _objectSpread(_objectSpread({}, sx.allConditionsBox), {}, {
211
+ '&::after': {
212
+ bg: 'accent.20',
213
+ width: '2px'
214
+ }
215
+ })
239
216
  }, (0, _react2.jsx)(_index.Text, {
240
- pl: "md",
241
- pr: "sm"
217
+ sx: sx.textStyles
242
218
  }, item.field1), (0, _react2.jsx)(_index.Badge, {
243
219
  label: "Equals",
244
- bg: "accent.90",
245
220
  textColor: "neutral.10",
246
- sx: sx.customBadgeStyles,
247
- alignSelf: "center"
221
+ sx: sx.equalBadgeStyles
248
222
  }), (0, _react2.jsx)(_index.Text, null, item.field3)));
249
- }))))) : (0, _react2.jsx)(_index.Box, {
223
+ }))))));
224
+ };
225
+ exports.Display = Display;
226
+ var Edit = function Edit() {
227
+ var trashButton = (0, _react2.jsx)(_index.IconButton, {
228
+ "aria-label": "deleteButton",
229
+ sx: {
230
+ alignSelf: 'center'
231
+ }
232
+ }, (0, _react2.jsx)(_index.Icon, {
233
+ icon: _TrashIcon["default"],
234
+ sx: {
235
+ '& > path': {
236
+ fill: 'neutral.40'
237
+ }
238
+ },
239
+ size: "md",
240
+ title: {
241
+ name: 'Trash Icon'
242
+ }
243
+ }));
244
+ return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
250
245
  bg: "accent.99",
251
246
  p: "md",
252
247
  maxWidth: "966px"
253
- }, (0, _react2.jsx)(_index.Text, {
254
- variant: "itemTitle",
255
- fontWeight: "0",
256
- pb: "md"
257
- }, "Branch Condition"), (0, _react2.jsx)(_index.Box, {
248
+ }, (0, _react2.jsx)(_index.Box, {
258
249
  isRow: true,
259
250
  alignItems: "center",
260
251
  mb: "sm",
@@ -526,22 +517,6 @@ var Default = function Default() {
526
517
  })), trashButton);
527
518
  }))), (0, _react2.jsx)(_index.Box, {
528
519
  alignSelf: "start"
529
- }, trashButton)), (0, _react2.jsx)(_index.Box, {
530
- isRow: true,
531
- mt: "lg"
532
- }, (0, _react2.jsx)(_index.Button, {
533
- onPress: function onPress() {
534
- return setEditOverviewVisible(false);
535
- },
536
- variant: "primary",
537
- mr: "md",
538
- "aria-label": "save"
539
- }, "Save"), (0, _react2.jsx)(_index.Button, {
540
- onPress: function onPress() {
541
- return setEditOverviewVisible(false);
542
- },
543
- variant: "link",
544
- "aria-label": "cancel"
545
- }, "Cancel"))));
520
+ }, trashButton))));
546
521
  };
547
- exports.Default = Default;
522
+ exports.Edit = Edit;
@@ -1,8 +1,9 @@
1
1
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
3
  var _excluded = ["isLast", "color"];
4
- import React, { forwardRef, useImperativeHandle, useRef } from 'react';
4
+ import React, { forwardRef, useImperativeHandle, useMemo, useRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
+ import { v4 as uuid } from 'uuid';
6
7
  import { Box } from '../../index';
7
8
  import { line } from '../../styles/colors';
8
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -16,6 +17,15 @@ var Bracket = /*#__PURE__*/forwardRef(function (props, ref) {
16
17
  useImperativeHandle(ref, function () {
17
18
  return bracketRef.current;
18
19
  });
20
+ var bracketId = useMemo(function () {
21
+ return uuid();
22
+ }, []);
23
+ var bracketFillOneId = useMemo(function () {
24
+ return uuid();
25
+ }, []);
26
+ var bracketFillTwoId = useMemo(function () {
27
+ return uuid();
28
+ }, []);
19
29
  return ___EmotionJSX(Box, _extends({
20
30
  variant: "bracket.base"
21
31
  }, others), !isLast && ___EmotionJSX(Box, {
@@ -34,9 +44,9 @@ var Bracket = /*#__PURE__*/forwardRef(function (props, ref) {
34
44
  flexGrow: 1
35
45
  },
36
46
  "data-testid": "isLastLayer",
37
- "aria-labelledby": "bracket-fill-vertical-icon-title"
47
+ "aria-labelledby": "bracket-fill-vertical-icon-title-".concat(bracketId)
38
48
  }, ___EmotionJSX("title", {
39
- id: "bracket-fill-vertical-icon-title"
49
+ id: "bracket-fill-vertical-icon-title-".concat(bracketId)
40
50
  }, "bracket-fill"), ___EmotionJSX("g", null, ___EmotionJSX("title", null, "Layer 3"), ___EmotionJSX("line", {
41
51
  strokeLinecap: "undefined",
42
52
  strokeLinejoin: "undefined",
@@ -56,9 +66,9 @@ var Bracket = /*#__PURE__*/forwardRef(function (props, ref) {
56
66
  style: {
57
67
  flexGrow: 1
58
68
  },
59
- "aria-labelledby": "bracket-fill-1-icon-title"
69
+ "aria-labelledby": "bracket-fill-1-icon-title-".concat(bracketFillOneId)
60
70
  }, ___EmotionJSX("title", {
61
- id: "bracket-fill-1-icon-title"
71
+ id: "bracket-fill-1-icon-title-".concat(bracketFillOneId)
62
72
  }, "bracket-fill"), ___EmotionJSX("g", null, ___EmotionJSX("title", null, "Layer 1"), ___EmotionJSX("line", {
63
73
  strokeLinecap: "undefined",
64
74
  strokeLinejoin: "undefined",
@@ -72,9 +82,9 @@ var Bracket = /*#__PURE__*/forwardRef(function (props, ref) {
72
82
  xmlns: "http://www.w3.org/2000/svg",
73
83
  version: "1.1",
74
84
  height: "15",
75
- "aria-labelledby": "bracket-fill-2-icon-title"
85
+ "aria-labelledby": "bracket-fill-2-icon-title-".concat(bracketFillTwoId)
76
86
  }, ___EmotionJSX("title", {
77
- id: "bracket-fill-2-icon-title"
87
+ id: "bracket-fill-2-icon-title-".concat(bracketFillTwoId)
78
88
  }, "bracket-fill"), ___EmotionJSX("g", {
79
89
  transform: "translate(-1, 0)"
80
90
  }, ___EmotionJSX("title", null, "Layer 2"), ___EmotionJSX("path", {
@@ -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() {
@@ -1,8 +1,3 @@
1
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
3
- 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; }
4
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
6
1
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
7
2
  import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
8
3
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
@@ -11,32 +6,44 @@ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
11
6
  import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
12
7
  import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
13
8
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
11
+ 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; }
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
14
13
  import React from 'react';
15
- import CreateIcon from '@pingux/mdi-react/CreateIcon';
16
14
  import TrashIcon from '@pingux/mdi-react/TrashIcon';
17
15
  import { Badge, Box, Bracket, Button, Icon, IconButton, Item, RockerButton, RockerButtonGroup, SelectField, Text, TextField } from '../index';
18
16
  import { jsx as ___EmotionJSX } from "@emotion/react";
19
17
  export default {
20
18
  title: 'Recipes/Condition Filter'
21
19
  };
22
- var sx = {
23
- customBadgeStyles: {
24
- marginRight: 'sm',
25
- '& > span': {
26
- fontWeight: '500',
27
- textTransform: 'none'
28
- },
29
- ml: '3px',
30
- minWidth: '65px',
31
- 'z-index': '1'
20
+ var customBadgeStyles = {
21
+ marginRight: 'sm',
22
+ '& > span': {
23
+ fontWeight: 1,
24
+ textTransform: 'none'
32
25
  },
26
+ ml: '3px',
27
+ minWidth: '65px',
28
+ height: '20px',
29
+ 'z-index': '1'
30
+ };
31
+ var sx = {
32
+ equalBadgeStyles: _objectSpread(_objectSpread({}, customBadgeStyles), {}, {
33
+ bg: 'accent.95',
34
+ textColor: 'neutral.10',
35
+ alignSelf: 'center',
36
+ height: '21px',
37
+ minWidth: '51px'
38
+ }),
33
39
  borderedBoxStyles: {
34
40
  '&::after': {
35
- bg: 'decorative.7',
36
- width: '2px'
41
+ bg: 'decorative.4',
42
+ width: '2px',
43
+ display: 'block'
37
44
  },
38
45
  borderColor: 'neutral.80',
39
- borderRadius: '4px',
46
+ borderRadius: '3px 4px 4px 3px',
40
47
  borderStyle: 'solid',
41
48
  borderWidth: '1px 1px 1px 0px',
42
49
  padding: 'sm',
@@ -44,7 +51,7 @@ var sx = {
44
51
  },
45
52
  allConditionsBox: {
46
53
  '&::after': {
47
- bg: 'decorative.7',
54
+ bg: 'decorative.4',
48
55
  width: '2px'
49
56
  },
50
57
  alignItems: 'center',
@@ -57,86 +64,52 @@ var sx = {
57
64
  color: 'inherit',
58
65
  fontSize: 'sm',
59
66
  fontWeight: '3'
67
+ },
68
+ textStyles: {
69
+ pl: 'md',
70
+ pr: 'sm'
60
71
  }
61
72
  };
62
- export var Default = function Default() {
63
- var allConditions = [{
64
- field1: 'Family Name',
65
- field3: 'John',
66
- key: 'FamilyNameField'
67
- }, {
68
- field1: 'Full Name',
69
- field3: 'Alex Smith',
70
- key: 'FullNameField'
71
- }];
72
- var anyConditions = [{
73
- field1: 'Group',
74
- field3: 'Marketing',
75
- key: 'Group1Field'
76
- }, {
77
- field1: 'Group',
78
- field3: 'UX Team',
79
- key: 'Group2Field'
80
- }];
81
- var noneConditions = [{
82
- field1: 'Misc',
83
- field3: 'Apple',
84
- key: 'Miscellaneous1'
85
- }, {
86
- field1: 'Misc',
87
- field3: 'Banana',
88
- key: 'Miscellaneous2'
89
- }];
90
- var trashButton = ___EmotionJSX(IconButton, {
91
- "aria-label": "deleteButton",
92
- sx: {
93
- alignSelf: 'center'
94
- }
95
- }, ___EmotionJSX(Icon, {
96
- icon: TrashIcon,
97
- sx: {
98
- '& > path': {
99
- fill: 'neutral.40'
100
- }
101
- },
102
- size: "md",
103
- title: {
104
- name: 'Trash Icon'
105
- }
106
- }));
107
- var _React$useState = React.useState(false),
108
- _React$useState2 = _slicedToArray(_React$useState, 2),
109
- editOverviewVisible = _React$useState2[0],
110
- setEditOverviewVisible = _React$useState2[1];
111
- return ___EmotionJSX(Box, null, !editOverviewVisible ? ___EmotionJSX(Box, {
73
+ var allConditions = [{
74
+ field1: 'Family Name',
75
+ field3: 'John',
76
+ key: 'FamilyNameField'
77
+ }, {
78
+ field1: 'Full Name',
79
+ field3: 'Alex Smith',
80
+ key: 'FullNameField'
81
+ }];
82
+ var anyConditions = [{
83
+ field1: 'Group',
84
+ field3: 'Marketing',
85
+ key: 'Group1Field'
86
+ }, {
87
+ field1: 'Group',
88
+ field3: 'UX Team',
89
+ key: 'Group2Field'
90
+ }];
91
+ var noneConditions = [{
92
+ field1: 'Misc',
93
+ field3: 'Apple',
94
+ key: 'Miscellaneous1'
95
+ }, {
96
+ field1: 'Misc',
97
+ field3: 'Banana',
98
+ key: 'Miscellaneous2'
99
+ }];
100
+ export var Display = function Display() {
101
+ return ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
112
102
  bg: "accent.99",
113
103
  maxWidth: "318px",
114
104
  p: "sm"
115
105
  }, ___EmotionJSX(Box, {
116
106
  isRow: true
117
- }, ___EmotionJSX(Text, {
118
- variant: "itemTitle",
119
- fontWeight: "0",
120
- pb: "md"
121
- }, "Branch Condition"), ___EmotionJSX(IconButton, {
122
- "aria-label": "edit",
123
- variant: "inverted",
124
- ml: "xs",
125
- onPress: function onPress() {
126
- return setEditOverviewVisible(true);
127
- }
128
- }, ___EmotionJSX(Icon, {
129
- icon: CreateIcon,
130
- size: "xs",
131
- title: {
132
- name: 'Create Icon'
133
- }
134
- }))), ___EmotionJSX(Box, {
107
+ }), ___EmotionJSX(Box, {
135
108
  isRow: true
136
109
  }, ___EmotionJSX(Badge, {
137
110
  label: "All",
138
111
  bg: "decorative.4",
139
- sx: sx.customBadgeStyles
112
+ sx: customBadgeStyles
140
113
  }), ___EmotionJSX(Text, null, " of the conditions are true")), _mapInstanceProperty(allConditions).call(allConditions, function (item) {
141
114
  return ___EmotionJSX(Box, {
142
115
  isRow: true,
@@ -149,14 +122,11 @@ export var Default = function Default() {
149
122
  isRow: true,
150
123
  sx: sx.allConditionsBox
151
124
  }, ___EmotionJSX(Text, {
152
- pl: "md",
153
- pr: "sm"
125
+ sx: sx.textStyles
154
126
  }, item.field1), ___EmotionJSX(Badge, {
155
127
  label: "Equals",
156
- bg: "accent.90",
157
- textColor: "neutral.10",
158
- sx: sx.customBadgeStyles,
159
- alignSelf: "center"
128
+ sx: sx.equalBadgeStyles,
129
+ textColor: "neutral.10"
160
130
  }), ___EmotionJSX(Text, null, item.field3))));
161
131
  }), ___EmotionJSX(Box, {
162
132
  isRow: true
@@ -169,7 +139,7 @@ export var Default = function Default() {
169
139
  }, ___EmotionJSX(Badge, {
170
140
  label: "Any",
171
141
  bg: "decorative.7",
172
- sx: sx.customBadgeStyles,
142
+ sx: customBadgeStyles,
173
143
  alignSelf: "center"
174
144
  }), ___EmotionJSX(Text, null, " of the conditions are true")), ___EmotionJSX(Box, {
175
145
  ml: "xs"
@@ -186,16 +156,18 @@ export var Default = function Default() {
186
156
  bg: "white",
187
157
  isRow: true,
188
158
  width: "100%",
189
- sx: sx.allConditionsBox
159
+ sx: _objectSpread(_objectSpread({}, sx.allConditionsBox), {}, {
160
+ '&::after': {
161
+ bg: 'decorative.7',
162
+ width: '2px'
163
+ }
164
+ })
190
165
  }, ___EmotionJSX(Text, {
191
- pl: "md",
192
- pr: "sm"
166
+ sx: sx.textStyles
193
167
  }, item.field1), ___EmotionJSX(Badge, {
194
168
  label: "Equals",
195
- bg: "accent.90",
196
169
  textColor: "neutral.10",
197
- sx: sx.customBadgeStyles,
198
- alignSelf: "center"
170
+ sx: sx.equalBadgeStyles
199
171
  }), ___EmotionJSX(Text, null, item.field3)));
200
172
  })))), ___EmotionJSX(Box, {
201
173
  isRow: true
@@ -210,7 +182,7 @@ export var Default = function Default() {
210
182
  }, ___EmotionJSX(Badge, {
211
183
  label: "None",
212
184
  bg: "accent.20",
213
- sx: sx.customBadgeStyles,
185
+ sx: customBadgeStyles,
214
186
  alignSelf: "center"
215
187
  }), ___EmotionJSX(Text, null, " of the conditions are true")), ___EmotionJSX(Box, {
216
188
  ml: "xs"
@@ -227,26 +199,44 @@ export var Default = function Default() {
227
199
  bg: "white",
228
200
  isRow: true,
229
201
  width: "100%",
230
- sx: sx.allConditionsBox
202
+ sx: _objectSpread(_objectSpread({}, sx.allConditionsBox), {}, {
203
+ '&::after': {
204
+ bg: 'accent.20',
205
+ width: '2px'
206
+ }
207
+ })
231
208
  }, ___EmotionJSX(Text, {
232
- pl: "md",
233
- pr: "sm"
209
+ sx: sx.textStyles
234
210
  }, item.field1), ___EmotionJSX(Badge, {
235
211
  label: "Equals",
236
- bg: "accent.90",
237
212
  textColor: "neutral.10",
238
- sx: sx.customBadgeStyles,
239
- alignSelf: "center"
213
+ sx: sx.equalBadgeStyles
240
214
  }), ___EmotionJSX(Text, null, item.field3)));
241
- }))))) : ___EmotionJSX(Box, {
215
+ }))))));
216
+ };
217
+ export var Edit = function Edit() {
218
+ var trashButton = ___EmotionJSX(IconButton, {
219
+ "aria-label": "deleteButton",
220
+ sx: {
221
+ alignSelf: 'center'
222
+ }
223
+ }, ___EmotionJSX(Icon, {
224
+ icon: TrashIcon,
225
+ sx: {
226
+ '& > path': {
227
+ fill: 'neutral.40'
228
+ }
229
+ },
230
+ size: "md",
231
+ title: {
232
+ name: 'Trash Icon'
233
+ }
234
+ }));
235
+ return ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
242
236
  bg: "accent.99",
243
237
  p: "md",
244
238
  maxWidth: "966px"
245
- }, ___EmotionJSX(Text, {
246
- variant: "itemTitle",
247
- fontWeight: "0",
248
- pb: "md"
249
- }, "Branch Condition"), ___EmotionJSX(Box, {
239
+ }, ___EmotionJSX(Box, {
250
240
  isRow: true,
251
241
  alignItems: "center",
252
242
  mb: "sm",
@@ -518,21 +508,5 @@ export var Default = function Default() {
518
508
  })), trashButton);
519
509
  }))), ___EmotionJSX(Box, {
520
510
  alignSelf: "start"
521
- }, trashButton)), ___EmotionJSX(Box, {
522
- isRow: true,
523
- mt: "lg"
524
- }, ___EmotionJSX(Button, {
525
- onPress: function onPress() {
526
- return setEditOverviewVisible(false);
527
- },
528
- variant: "primary",
529
- mr: "md",
530
- "aria-label": "save"
531
- }, "Save"), ___EmotionJSX(Button, {
532
- onPress: function onPress() {
533
- return setEditOverviewVisible(false);
534
- },
535
- variant: "link",
536
- "aria-label": "cancel"
537
- }, "Cancel"))));
511
+ }, trashButton))));
538
512
  };
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.2",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",