@pingux/astro 1.27.0-alpha.16 → 1.27.0-alpha.18

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.
Files changed (41) hide show
  1. package/lib/cjs/index.js +2 -67
  2. package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +30 -38
  3. package/lib/cjs/recipes/MaskedValue.stories.js +5 -8
  4. package/lib/cjs/recipes/NeutralInput.stories.js +3 -6
  5. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +33 -38
  6. package/lib/cjs/recipes/RowLineChart.stories.js +70 -58
  7. package/lib/cjs/styles/variants/variants.js +1 -4
  8. package/lib/index.js +1 -4
  9. package/lib/recipes/FlippableCaretMenuButton.stories.js +30 -38
  10. package/lib/recipes/MaskedValue.stories.js +5 -8
  11. package/lib/recipes/NeutralInput.stories.js +3 -6
  12. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +33 -38
  13. package/lib/recipes/RowLineChart.stories.js +70 -58
  14. package/lib/styles/variants/variants.js +1 -3
  15. package/package.json +1 -1
  16. package/lib/cjs/components/DataTable/DataTable.js +0 -477
  17. package/lib/cjs/components/DataTable/DataTable.stories.js +0 -310
  18. package/lib/cjs/components/DataTable/DataTable.styles.js +0 -156
  19. package/lib/cjs/components/DataTable/DataTable.test.js +0 -1307
  20. package/lib/cjs/components/DataTable/DataTableChip.js +0 -63
  21. package/lib/cjs/components/DataTable/DataTableChip.test.js +0 -38
  22. package/lib/cjs/components/DataTable/DataTableMenu.js +0 -51
  23. package/lib/cjs/components/DataTable/DataTableMenu.test.js +0 -20
  24. package/lib/cjs/components/DataTable/DataTableMultiLine.js +0 -75
  25. package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +0 -30
  26. package/lib/cjs/components/DataTable/DataTableVirtualizer.js +0 -188
  27. package/lib/cjs/components/DataTable/index.js +0 -54
  28. package/lib/cjs/context/DataTableContext/index.js +0 -31
  29. package/lib/components/DataTable/DataTable.js +0 -431
  30. package/lib/components/DataTable/DataTable.stories.js +0 -273
  31. package/lib/components/DataTable/DataTable.styles.js +0 -137
  32. package/lib/components/DataTable/DataTable.test.js +0 -1256
  33. package/lib/components/DataTable/DataTableChip.js +0 -33
  34. package/lib/components/DataTable/DataTableChip.test.js +0 -31
  35. package/lib/components/DataTable/DataTableMenu.js +0 -24
  36. package/lib/components/DataTable/DataTableMenu.test.js +0 -13
  37. package/lib/components/DataTable/DataTableMultiLine.js +0 -46
  38. package/lib/components/DataTable/DataTableMultiLine.test.js +0 -22
  39. package/lib/components/DataTable/DataTableVirtualizer.js +0 -157
  40. package/lib/components/DataTable/index.js +0 -5
  41. package/lib/context/DataTableContext/index.js +0 -5
@@ -170,34 +170,6 @@ var zeroData = [{
170
170
  id: 12,
171
171
  value: 0
172
172
  }];
173
- var sx = {
174
- container: {
175
- backgroundColor: 'accent.99',
176
- alignItems: 'center',
177
- justifyContent: 'space-between',
178
- pr: '20px'
179
- },
180
- button: {
181
- ml: 'md',
182
- pr: 'md'
183
- },
184
- chartTitleContainer: {
185
- ml: '20px',
186
- pr: 'md'
187
- },
188
- chartContainer: {
189
- width: '100%',
190
- height: '100%'
191
- },
192
- chart: {
193
- width: '50',
194
- height: '18'
195
- },
196
- chartTrendContainer: {
197
- ml: 'md',
198
- width: '50px'
199
- }
200
- };
201
173
 
202
174
  var Default = function Default() {
203
175
  var _useResizeObserver = (0, _useResizeObserver2["default"])(),
@@ -221,7 +193,10 @@ var Default = function Default() {
221
193
  }, [isMobile]);
222
194
  var EmptyData = (0, _react2.jsx)(_index.Box, {
223
195
  isRow: true,
224
- sx: sx.container,
196
+ bg: "accent.99",
197
+ alignItems: "center",
198
+ justifyContent: "space-between",
199
+ pr: 20,
225
200
  ref: ref
226
201
  }, (0, _react2.jsx)(_index.Box, {
227
202
  p: "md",
@@ -235,7 +210,8 @@ var Default = function Default() {
235
210
  alignItems: "center"
236
211
  }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
237
212
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
238
- sx: sx.chartTitleContainer
213
+ ml: 20,
214
+ pr: 15
239
215
  }, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
240
216
  variant: "expandableRow.lineChart.title"
241
217
  }, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
@@ -248,7 +224,8 @@ var Default = function Default() {
248
224
  }, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
249
225
  variant: "expandableRow.chartWrapper",
250
226
  onPress: (0, _addonActions.action)('seeContributingDataAction'),
251
- sx: sx.button,
227
+ ml: 15,
228
+ pr: 15,
252
229
  "aria-label": "line-chart button"
253
230
  }, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
254
231
  variant: "boxes.expandableRow.lineChart.divider"
@@ -257,9 +234,11 @@ var Default = function Default() {
257
234
  }, (0, _react2.jsx)(_index.Box, {
258
235
  variant: "boxes.expandableRow.lineChart.chart"
259
236
  }, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
260
- sx: sx.chartContainer
237
+ width: "100%",
238
+ height: "100%"
261
239
  }, (0, _react2.jsx)(_recharts.LineChart, {
262
- sx: sx.chart,
240
+ width: 50,
241
+ height: 18,
263
242
  data: chartData
264
243
  }, (0, _react2.jsx)(_recharts.Line, {
265
244
  type: "monotone",
@@ -270,7 +249,8 @@ var Default = function Default() {
270
249
  variant: "expandableRow.lineChart.chartLabel"
271
250
  }, "No data yet")), (0, _react2.jsx)(_index.Box, {
272
251
  size: "sm",
273
- sx: sx.chartTrendContainer
252
+ ml: 15,
253
+ width: 50
274
254
  }, (0, _react2.jsx)(_index.Text, {
275
255
  variant: "expandableRow.lineChart.trend"
276
256
  }, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
@@ -280,7 +260,10 @@ var Default = function Default() {
280
260
  }))));
281
261
  var FullData = (0, _react2.jsx)(_index.Box, {
282
262
  isRow: true,
283
- sx: sx.container,
263
+ bg: "accent.99",
264
+ alignItems: "center",
265
+ justifyContent: "space-between",
266
+ pr: 20,
284
267
  mt: 20
285
268
  }, (0, _react2.jsx)(_index.Box, {
286
269
  p: "md",
@@ -294,7 +277,8 @@ var Default = function Default() {
294
277
  alignItems: "center"
295
278
  }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
296
279
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
297
- sx: sx.chartTitleContainer
280
+ ml: 20,
281
+ pr: 15
298
282
  }, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
299
283
  variant: "expandableRow.lineChart.title"
300
284
  }, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
@@ -307,7 +291,8 @@ var Default = function Default() {
307
291
  }, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
308
292
  variant: "expandableRow.chartWrapper",
309
293
  onPress: (0, _addonActions.action)('seeContributingDataAction'),
310
- sx: sx.button,
294
+ ml: 15,
295
+ pr: 15,
311
296
  "aria-label": "line-chart button"
312
297
  }, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
313
298
  variant: "boxes.expandableRow.lineChart.divider"
@@ -317,9 +302,11 @@ var Default = function Default() {
317
302
  variant: "boxes.expandableRow.lineChart.chart",
318
303
  width: 50
319
304
  }, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
320
- sx: sx.chartContainer
305
+ width: "100%",
306
+ height: "100%"
321
307
  }, (0, _react2.jsx)(_recharts.LineChart, {
322
- sx: sx.chart,
308
+ width: 50,
309
+ height: 18,
323
310
  data: chartData
324
311
  }, (0, _react2.jsx)(_recharts.Line, {
325
312
  type: "monotone",
@@ -330,7 +317,8 @@ var Default = function Default() {
330
317
  variant: "expandableRow.lineChart.chartLabel"
331
318
  }, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
332
319
  size: "sm",
333
- sx: sx.chartTrendContainer
320
+ ml: 15,
321
+ width: 50
334
322
  }, (0, _react2.jsx)(_index.Text, {
335
323
  variant: "expandableRow.lineChart.trend"
336
324
  }, "+ 8.6%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
@@ -340,7 +328,10 @@ var Default = function Default() {
340
328
  }))));
341
329
  var PartialData = (0, _react2.jsx)(_index.Box, {
342
330
  isRow: true,
343
- sx: sx.container,
331
+ bg: "accent.99",
332
+ alignItems: "center",
333
+ justifyContent: "space-between",
334
+ pr: 20,
344
335
  mt: 20
345
336
  }, (0, _react2.jsx)(_index.Box, {
346
337
  p: "md",
@@ -354,7 +345,8 @@ var Default = function Default() {
354
345
  alignItems: "center"
355
346
  }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
356
347
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
357
- sx: sx.chartTitleContainer
348
+ ml: 20,
349
+ pr: 15
358
350
  }, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
359
351
  variant: "expandableRow.lineChart.title"
360
352
  }, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
@@ -367,7 +359,8 @@ var Default = function Default() {
367
359
  }, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
368
360
  variant: "expandableRow.chartWrapper",
369
361
  onPress: (0, _addonActions.action)('seeContributingDataAction'),
370
- sx: sx.button,
362
+ ml: 15,
363
+ pr: 15,
371
364
  "aria-label": "line-chart button"
372
365
  }, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
373
366
  variant: "boxes.expandableRow.lineChart.divider"
@@ -377,9 +370,11 @@ var Default = function Default() {
377
370
  variant: "boxes.expandableRow.lineChart.chart",
378
371
  width: 50
379
372
  }, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
380
- sx: sx.chartContainer
373
+ width: "100%",
374
+ height: "100%"
381
375
  }, (0, _react2.jsx)(_recharts.LineChart, {
382
- sx: sx.chart,
376
+ width: 50,
377
+ height: 18,
383
378
  data: partialDataData
384
379
  }, (0, _react2.jsx)(_recharts.Line, {
385
380
  type: "monotone",
@@ -390,7 +385,8 @@ var Default = function Default() {
390
385
  variant: "expandableRow.lineChart.chartLabel"
391
386
  }, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
392
387
  size: "sm",
393
- sx: sx.chartTrendContainer
388
+ ml: 15,
389
+ width: 50
394
390
  }, (0, _react2.jsx)(_index.Text, {
395
391
  variant: "expandableRow.lineChart.trend"
396
392
  }, "- 8.6%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
@@ -400,7 +396,10 @@ var Default = function Default() {
400
396
  }))));
401
397
  var ZeroData = (0, _react2.jsx)(_index.Box, {
402
398
  isRow: true,
403
- sx: sx.container,
399
+ bg: "accent.99",
400
+ alignItems: "center",
401
+ justifyContent: "space-between",
402
+ pr: 20,
404
403
  mt: 20
405
404
  }, (0, _react2.jsx)(_index.Box, {
406
405
  p: "md",
@@ -414,7 +413,8 @@ var Default = function Default() {
414
413
  alignItems: "center"
415
414
  }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
416
415
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
417
- sx: sx.chartTitleContainer
416
+ ml: 20,
417
+ pr: 15
418
418
  }, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
419
419
  variant: "expandableRow.lineChart.title"
420
420
  }, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
@@ -427,7 +427,8 @@ var Default = function Default() {
427
427
  }, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
428
428
  variant: "expandableRow.chartWrapper",
429
429
  onPress: (0, _addonActions.action)('seeContributingDataAction'),
430
- sx: sx.button,
430
+ ml: 15,
431
+ pr: 15,
431
432
  "aria-label": "line-chart button"
432
433
  }, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
433
434
  variant: "boxes.expandableRow.lineChart.divider"
@@ -437,9 +438,11 @@ var Default = function Default() {
437
438
  variant: "boxes.expandableRow.lineChart.chart",
438
439
  width: 50
439
440
  }, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
440
- sx: sx.chartContainer
441
+ width: "100%",
442
+ height: "100%"
441
443
  }, (0, _react2.jsx)(_recharts.LineChart, {
442
- sx: sx.chart,
444
+ width: 50,
445
+ height: 18,
443
446
  data: zeroData
444
447
  }, (0, _react2.jsx)(_recharts.Line, {
445
448
  type: "monotone",
@@ -450,7 +453,8 @@ var Default = function Default() {
450
453
  variant: "expandableRow.lineChart.chartLabel"
451
454
  }, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
452
455
  size: "sm",
453
- sx: sx.chartTrendContainer
456
+ ml: 15,
457
+ width: 50
454
458
  }, (0, _react2.jsx)(_index.Text, {
455
459
  variant: "expandableRow.lineChart.trend"
456
460
  }, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
@@ -460,7 +464,10 @@ var Default = function Default() {
460
464
  }))));
461
465
  var ZeroValues = (0, _react2.jsx)(_index.Box, {
462
466
  isRow: true,
463
- sx: sx.container,
467
+ bg: "accent.99",
468
+ alignItems: "center",
469
+ justifyContent: "space-between",
470
+ pr: 20,
464
471
  mt: 20
465
472
  }, (0, _react2.jsx)(_index.Box, {
466
473
  p: "md",
@@ -474,7 +481,8 @@ var Default = function Default() {
474
481
  alignItems: "center"
475
482
  }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
476
483
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
477
- sx: sx.chartTitleContainer
484
+ ml: 20,
485
+ pr: 15
478
486
  }, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
479
487
  variant: "expandableRow.lineChart.title"
480
488
  }, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
@@ -487,7 +495,8 @@ var Default = function Default() {
487
495
  }, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
488
496
  variant: "expandableRow.chartWrapper",
489
497
  onPress: (0, _addonActions.action)('seeContributingDataAction'),
490
- sx: sx.button,
498
+ ml: 15,
499
+ pr: 15,
491
500
  "aria-label": "line-chart button"
492
501
  }, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
493
502
  variant: "boxes.expandableRow.lineChart.divider"
@@ -497,9 +506,11 @@ var Default = function Default() {
497
506
  variant: "boxes.expandableRow.lineChart.chart",
498
507
  width: 50
499
508
  }, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
500
- sx: sx.chartContainer
509
+ width: "100%",
510
+ height: "100%"
501
511
  }, (0, _react2.jsx)(_recharts.LineChart, {
502
- sx: sx.chart,
512
+ width: 50,
513
+ height: 18,
503
514
  data: zeroValuesData
504
515
  }, (0, _react2.jsx)(_recharts.Line, {
505
516
  type: "monotone",
@@ -510,7 +521,8 @@ var Default = function Default() {
510
521
  variant: "expandableRow.lineChart.chartLabel"
511
522
  }, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
512
523
  size: "sm",
513
- sx: sx.chartTrendContainer
524
+ ml: 15,
525
+ width: 50
514
526
  }, (0, _react2.jsx)(_index.Text, {
515
527
  variant: "expandableRow.lineChart.trend"
516
528
  }, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
@@ -76,8 +76,6 @@ var _tooltip = _interopRequireDefault(require("./tooltip"));
76
76
 
77
77
  var _collapsiblePanel = _interopRequireDefault(require("./collapsiblePanel"));
78
78
 
79
- var _DataTable = _interopRequireDefault(require("./../../components/DataTable/DataTable.styles"));
80
-
81
79
  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); }
82
80
 
83
81
  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; }
@@ -109,8 +107,7 @@ var _default = _objectSpread(_objectSpread({
109
107
  stepper: _stepper["default"],
110
108
  table: _table["default"]
111
109
  }, tabs), {}, {
112
- tooltip: _tooltip["default"],
113
- dataTable: _DataTable["default"]
110
+ tooltip: _tooltip["default"]
114
111
  });
115
112
 
116
113
  exports["default"] = _default;
package/lib/index.js CHANGED
@@ -151,7 +151,4 @@ export * from './components/TooltipTrigger';
151
151
 
152
152
  export { Item, Section } from '@react-stately/collections';
153
153
  export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from '@react-aria/overlays';
154
- export { useOverlayTriggerState } from '@react-stately/overlays';
155
- export { default as DataTable } from './components/DataTable';
156
- export * from './components/DataTable';
157
- export { Cell as DataTableCell, Column as DataTableColumn, Row as DataTableRow, TableBody as DataTableBody, TableHeader as DataTableHeader } from '@react-spectrum/table';
154
+ export { useOverlayTriggerState } from '@react-stately/overlays';
@@ -31,40 +31,6 @@ export default {
31
31
  title: 'Recipes/FlippableCaretMenuButton'
32
32
  };
33
33
  var buttonArray = ['Web App', 'Native App', 'Single Page App', 'Non-Interactive', 'Worker', 'Advanced Configuration', 'Built-in admin console for this environment', 'Built-in Application portal'];
34
- var sx = {
35
- openButton: {
36
- height: '30px',
37
- borderRadius: 'md',
38
- fontSize: '13px',
39
- mb: 'sm'
40
- },
41
- closeIconButton: {
42
- position: 'absolute',
43
- top: '14px',
44
- right: 'sm'
45
- },
46
- buttonsContainer: {
47
- p: 'lg',
48
- flexDirection: 'initial !important',
49
- alignContent: 'space-between',
50
- flexWrap: 'wrap'
51
- },
52
- selectedButton: {
53
- mb: 'sm',
54
- mr: '4px',
55
- height: '30px',
56
- borderRadius: '15px',
57
- fontSize: '13px'
58
- },
59
- unSelectedButton: {
60
- mb: 'sm',
61
- mr: '4px',
62
- borderColor: 'neutral.80',
63
- height: '30px',
64
- borderRadius: '15px',
65
- fontSize: '13px'
66
- }
67
- };
68
34
  export var Default = function Default() {
69
35
  var buttonRef = useRef();
70
36
  var popoverRef = useRef();
@@ -123,9 +89,14 @@ export var Default = function Default() {
123
89
 
124
90
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Button, {
125
91
  ref: buttonRef,
92
+ mb: "sm",
126
93
  variant: "inline",
127
94
  onPress: onChange,
128
- sx: sx.openButton
95
+ sx: {
96
+ height: '30px',
97
+ borderRadius: '15px',
98
+ fontSize: '13px'
99
+ }
129
100
  }, ___EmotionJSX(Box, {
130
101
  isRow: true,
131
102
  alignItems: "center"
@@ -148,15 +119,36 @@ export var Default = function Default() {
148
119
  onPress: function onPress() {
149
120
  return setIsOpen(false);
150
121
  },
151
- sx: sx.closeIconButton
122
+ sx: {
123
+ position: 'absolute',
124
+ top: 14,
125
+ right: 10
126
+ }
152
127
  }, ___EmotionJSX(Icon, {
153
128
  icon: CloseIcon
154
129
  })), ___EmotionJSX(Box, {
155
- sx: sx.buttonsContainer
130
+ sx: {
131
+ p: 'lg',
132
+ flexDirection: 'initial !important',
133
+ alignContent: 'space-between',
134
+ flexWrap: 'wrap'
135
+ }
156
136
  }, _mapInstanceProperty(buttonArray).call(buttonArray, function (item) {
157
137
  return ___EmotionJSX(Button, {
138
+ mb: "sm",
158
139
  variant: "inline",
159
- sx: _includesInstanceProperty(selectedButtons).call(selectedButtons, item) ? sx.selectedButton : sx.unSelectedButton,
140
+ sx: _includesInstanceProperty(selectedButtons).call(selectedButtons, item) ? {
141
+ mr: '4px',
142
+ height: '30px',
143
+ borderRadius: '15px',
144
+ fontSize: '13px'
145
+ } : {
146
+ mr: '4px',
147
+ borderColor: 'neutral.80',
148
+ height: '30px',
149
+ borderRadius: '15px',
150
+ fontSize: '13px'
151
+ },
160
152
  key: item,
161
153
  onPress: function onPress() {
162
154
  return toggleButton(item);
@@ -23,13 +23,6 @@ export default {
23
23
  }
24
24
  }
25
25
  };
26
- var sx = {
27
- showHideButton: {
28
- width: 'fit-content',
29
- marginLeft: 'sm',
30
- alignSelf: 'auto'
31
- }
32
- };
33
26
  export var Default = function Default(_ref) {
34
27
  var _context;
35
28
 
@@ -59,7 +52,11 @@ export var Default = function Default(_ref) {
59
52
  onPress: function onPress() {
60
53
  return setIsMasked(!isMasked);
61
54
  },
62
- sx: sx.showHideButton
55
+ sx: {
56
+ width: 'fit-content',
57
+ marginLeft: 10,
58
+ alignSelf: 'auto'
59
+ }
63
60
  }, ___EmotionJSX(Icon, {
64
61
  icon: isMasked ? EyeOffIcon : EyeIcon
65
62
  }))));
@@ -4,13 +4,10 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
4
4
  export default {
5
5
  title: 'Recipes/NeutralCheckboxField'
6
6
  };
7
- var sx = {
8
- checkboxColor: {
9
- color: 'neutral.10'
10
- }
11
- };
12
7
  export var Default = function Default() {
13
8
  return ___EmotionJSX(CheckboxField, {
14
- sx: sx.checkboxColor
9
+ controlProps: {
10
+ color: 'neutral.10'
11
+ }
15
12
  }, "Click me");
16
13
  };
@@ -19,29 +19,6 @@ var items = [{
19
19
  name: 'Third Option',
20
20
  id: '3'
21
21
  }];
22
- var sx = {
23
- actionIcon: {
24
- color: 'neutral.30'
25
- },
26
- dragVerticalIcon: {
27
- color: 'neutral.50'
28
- },
29
- iconButton: {
30
- ml: 'xs'
31
- },
32
- iconButtonToggleContainer: {
33
- mx: 'sm',
34
- flexShrink: 0
35
- },
36
- iconContainer: {
37
- alignItems: 'center',
38
- ml: '12px',
39
- mr: '12px'
40
- },
41
- outerContainer: {
42
- alignItems: 'center'
43
- }
44
- };
45
22
  export var Default = function Default() {
46
23
  var CustomOnSvg = function CustomOnSvg(props) {
47
24
  return ___EmotionJSX("svg", _extends({
@@ -89,22 +66,24 @@ export var Default = function Default() {
89
66
  };
90
67
 
91
68
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
92
- sx: sx.outerContainer,
69
+ sx: {
70
+ alignItems: 'center'
71
+ },
93
72
  isRow: true
94
73
  }, ___EmotionJSX(Icon, {
95
74
  icon: DragVerticalIcon,
96
75
  size: 25,
97
- sx: sx.dragVerticalIcon
76
+ color: "neutral.50"
98
77
  }), ___EmotionJSX(ComboBoxField, {
99
78
  items: items,
100
79
  defaultSelectedKey: "Last Name",
101
- "aria-label": "Row one value",
102
80
  containerProps: {
103
81
  width: '275px'
104
82
  },
105
83
  labelProps: {
106
84
  mb: 0
107
85
  },
86
+ "aria-label": "Row one value",
108
87
  controlProps: {
109
88
  'aria-label': 'test'
110
89
  }
@@ -114,7 +93,10 @@ export var Default = function Default() {
114
93
  "data-id": item.name
115
94
  }, item.name);
116
95
  }), ___EmotionJSX(Box, {
117
- sx: sx.iconButtonToggleContainer
96
+ sx: {
97
+ mx: 'sm',
98
+ flexShrink: 0
99
+ }
118
100
  }, ___EmotionJSX(IconButtonToggle, {
119
101
  toggledIcon: CustomOnSvg,
120
102
  defaultIcon: CustomOffSvg,
@@ -144,29 +126,35 @@ export var Default = function Default() {
144
126
  }, item.name);
145
127
  }), ___EmotionJSX(Box, {
146
128
  isRow: true,
147
- sx: sx.iconContainer
129
+ alignItems: "center",
130
+ sx: {
131
+ marginLeft: '12px',
132
+ marginRight: '12px'
133
+ }
148
134
  }, ___EmotionJSX(IconButton, {
149
135
  "aria-label": "Edit"
150
136
  }, ___EmotionJSX(Icon, {
151
137
  icon: CogsIcon,
152
- sx: sx.actionIcon,
138
+ color: "neutral.30",
153
139
  size: 20,
154
140
  title: "edit icon"
155
141
  })), ___EmotionJSX(IconButton, {
156
- sx: sx.iconButton,
142
+ ml: "5px",
157
143
  "aria-label": "Delete"
158
144
  }, ___EmotionJSX(Icon, {
159
145
  icon: DeleteIcon,
160
- sx: sx.actionIcon,
146
+ color: "neutral.30",
161
147
  size: 20,
162
148
  title: "delete icon"
163
149
  })))), ___EmotionJSX(Box, {
164
- sx: sx.outerContainer,
150
+ sx: {
151
+ alignItems: 'center'
152
+ },
165
153
  isRow: true
166
154
  }, ___EmotionJSX(Icon, {
167
155
  icon: DragVerticalIcon,
168
156
  size: 25,
169
- sx: sx.dragVerticalIcon
157
+ color: "neutral.50"
170
158
  }), ___EmotionJSX(ComboBoxField, {
171
159
  items: items,
172
160
  defaultSelectedKey: "Last Name",
@@ -186,7 +174,10 @@ export var Default = function Default() {
186
174
  "data-id": item.name
187
175
  }, item.name);
188
176
  }), ___EmotionJSX(Box, {
189
- sx: sx.iconButtonToggleContainer
177
+ sx: {
178
+ mx: 'sm',
179
+ flexShrink: 0
180
+ }
190
181
  }, ___EmotionJSX(IconButtonToggle, {
191
182
  toggledIcon: CustomRightSvg,
192
183
  defaultIcon: CustomRightSvg,
@@ -216,20 +207,24 @@ export var Default = function Default() {
216
207
  }, item.name);
217
208
  }), ___EmotionJSX(Box, {
218
209
  isRow: true,
219
- sx: sx.iconContainer
210
+ alignItems: "center",
211
+ sx: {
212
+ marginLeft: '12px',
213
+ marginRight: '12px'
214
+ }
220
215
  }, ___EmotionJSX(IconButton, {
221
216
  "aria-label": "Edit"
222
217
  }, ___EmotionJSX(Icon, {
223
218
  icon: CogsIcon,
224
- sx: sx.actionIcon,
219
+ color: "neutral.30",
225
220
  size: 20,
226
221
  title: "edit icon"
227
222
  })), ___EmotionJSX(IconButton, {
228
- sx: sx.iconButton,
223
+ ml: "5px",
229
224
  "aria-label": "Delete"
230
225
  }, ___EmotionJSX(Icon, {
231
226
  icon: DeleteIcon,
232
- sx: sx.actionIcon,
227
+ color: "neutral.30",
233
228
  size: 20,
234
229
  title: "delete icon"
235
230
  })))));