@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
package/lib/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
4
 
5
5
  var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
6
6
 
7
- var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27, _context28, _context29, _context30, _context31, _context32, _context33, _context34, _context35, _context36, _context37, _context38, _context39, _context40, _context41, _context42, _context43, _context44, _context45, _context46, _context47, _context48, _context49, _context50, _context51, _context52, _context53, _context54, _context55, _context56, _context57, _context58, _context59, _context60, _context61, _context62, _context63, _context64, _context65, _context66, _context67, _context68, _context69;
7
+ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27, _context28, _context29, _context30, _context31, _context32, _context33, _context34, _context35, _context36, _context37, _context38, _context39, _context40, _context41, _context42, _context43, _context44, _context45, _context46, _context47, _context48, _context49, _context50, _context51, _context52, _context53, _context54, _context55, _context56, _context57, _context58, _context59, _context60, _context61, _context62, _context63, _context64, _context65, _context66, _context67, _context68;
8
8
 
9
9
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
10
10
 
@@ -104,13 +104,7 @@ var _exportNames = {
104
104
  OverlayProvider: true,
105
105
  useOverlayPosition: true,
106
106
  useOverlayTrigger: true,
107
- useOverlayTriggerState: true,
108
- DataTable: true,
109
- DataTableCell: true,
110
- DataTableColumn: true,
111
- DataTableRow: true,
112
- DataTableBody: true,
113
- DataTableHeader: true
107
+ useOverlayTriggerState: true
114
108
  };
115
109
 
116
110
  _Object$defineProperty(exports, "AccordionGridGroup", {
@@ -267,48 +261,6 @@ _Object$defineProperty(exports, "CopyText", {
267
261
  }
268
262
  });
269
263
 
270
- _Object$defineProperty(exports, "DataTable", {
271
- enumerable: true,
272
- get: function get() {
273
- return _DataTable["default"];
274
- }
275
- });
276
-
277
- _Object$defineProperty(exports, "DataTableBody", {
278
- enumerable: true,
279
- get: function get() {
280
- return _table.TableBody;
281
- }
282
- });
283
-
284
- _Object$defineProperty(exports, "DataTableCell", {
285
- enumerable: true,
286
- get: function get() {
287
- return _table.Cell;
288
- }
289
- });
290
-
291
- _Object$defineProperty(exports, "DataTableColumn", {
292
- enumerable: true,
293
- get: function get() {
294
- return _table.Column;
295
- }
296
- });
297
-
298
- _Object$defineProperty(exports, "DataTableHeader", {
299
- enumerable: true,
300
- get: function get() {
301
- return _table.TableHeader;
302
- }
303
- });
304
-
305
- _Object$defineProperty(exports, "DataTableRow", {
306
- enumerable: true,
307
- get: function get() {
308
- return _table.Row;
309
- }
310
- });
311
-
312
264
  _Object$defineProperty(exports, "EnvironmentBreadcrumb", {
313
265
  enumerable: true,
314
266
  get: function get() {
@@ -1789,23 +1741,6 @@ var _overlays = require("@react-aria/overlays");
1789
1741
 
1790
1742
  var _overlays2 = require("@react-stately/overlays");
1791
1743
 
1792
- var _DataTable = _interopRequireWildcard(require("./components/DataTable"));
1793
-
1794
- _forEachInstanceProperty(_context69 = _Object$keys(_DataTable)).call(_context69, function (key) {
1795
- if (key === "default" || key === "__esModule") return;
1796
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1797
- if (key in exports && exports[key] === _DataTable[key]) return;
1798
-
1799
- _Object$defineProperty(exports, key, {
1800
- enumerable: true,
1801
- get: function get() {
1802
- return _DataTable[key];
1803
- }
1804
- });
1805
- });
1806
-
1807
- var _table = require("@react-spectrum/table");
1808
-
1809
1744
  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); }
1810
1745
 
1811
1746
  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; }
@@ -73,40 +73,6 @@ var _default = {
73
73
  };
74
74
  exports["default"] = _default;
75
75
  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'];
76
- var sx = {
77
- openButton: {
78
- height: '30px',
79
- borderRadius: 'md',
80
- fontSize: '13px',
81
- mb: 'sm'
82
- },
83
- closeIconButton: {
84
- position: 'absolute',
85
- top: '14px',
86
- right: 'sm'
87
- },
88
- buttonsContainer: {
89
- p: 'lg',
90
- flexDirection: 'initial !important',
91
- alignContent: 'space-between',
92
- flexWrap: 'wrap'
93
- },
94
- selectedButton: {
95
- mb: 'sm',
96
- mr: '4px',
97
- height: '30px',
98
- borderRadius: '15px',
99
- fontSize: '13px'
100
- },
101
- unSelectedButton: {
102
- mb: 'sm',
103
- mr: '4px',
104
- borderColor: 'neutral.80',
105
- height: '30px',
106
- borderRadius: '15px',
107
- fontSize: '13px'
108
- }
109
- };
110
76
 
111
77
  var Default = function Default() {
112
78
  var buttonRef = (0, _react.useRef)();
@@ -165,9 +131,14 @@ var Default = function Default() {
165
131
 
166
132
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Button, {
167
133
  ref: buttonRef,
134
+ mb: "sm",
168
135
  variant: "inline",
169
136
  onPress: onChange,
170
- sx: sx.openButton
137
+ sx: {
138
+ height: '30px',
139
+ borderRadius: '15px',
140
+ fontSize: '13px'
141
+ }
171
142
  }, (0, _react2.jsx)(_index.Box, {
172
143
  isRow: true,
173
144
  alignItems: "center"
@@ -190,15 +161,36 @@ var Default = function Default() {
190
161
  onPress: function onPress() {
191
162
  return setIsOpen(false);
192
163
  },
193
- sx: sx.closeIconButton
164
+ sx: {
165
+ position: 'absolute',
166
+ top: 14,
167
+ right: 10
168
+ }
194
169
  }, (0, _react2.jsx)(_index.Icon, {
195
170
  icon: _CloseIcon["default"]
196
171
  })), (0, _react2.jsx)(_index.Box, {
197
- sx: sx.buttonsContainer
172
+ sx: {
173
+ p: 'lg',
174
+ flexDirection: 'initial !important',
175
+ alignContent: 'space-between',
176
+ flexWrap: 'wrap'
177
+ }
198
178
  }, (0, _map["default"])(buttonArray).call(buttonArray, function (item) {
199
179
  return (0, _react2.jsx)(_index.Button, {
180
+ mb: "sm",
200
181
  variant: "inline",
201
- sx: (0, _includes["default"])(selectedButtons).call(selectedButtons, item) ? sx.selectedButton : sx.unSelectedButton,
182
+ sx: (0, _includes["default"])(selectedButtons).call(selectedButtons, item) ? {
183
+ mr: '4px',
184
+ height: '30px',
185
+ borderRadius: '15px',
186
+ fontSize: '13px'
187
+ } : {
188
+ mr: '4px',
189
+ borderColor: 'neutral.80',
190
+ height: '30px',
191
+ borderRadius: '15px',
192
+ fontSize: '13px'
193
+ },
202
194
  key: item,
203
195
  onPress: function onPress() {
204
196
  return toggleButton(item);
@@ -54,13 +54,6 @@ var _default = {
54
54
  }
55
55
  };
56
56
  exports["default"] = _default;
57
- var sx = {
58
- showHideButton: {
59
- width: 'fit-content',
60
- marginLeft: 'sm',
61
- alignSelf: 'auto'
62
- }
63
- };
64
57
 
65
58
  var Default = function Default(_ref) {
66
59
  var _context;
@@ -91,7 +84,11 @@ var Default = function Default(_ref) {
91
84
  onPress: function onPress() {
92
85
  return setIsMasked(!isMasked);
93
86
  },
94
- sx: sx.showHideButton
87
+ sx: {
88
+ width: 'fit-content',
89
+ marginLeft: 10,
90
+ alignSelf: 'auto'
91
+ }
95
92
  }, (0, _react2.jsx)(_index.Icon, {
96
93
  icon: isMasked ? _EyeOffOutlineIcon["default"] : _EyeOutlineIcon["default"]
97
94
  }))));
@@ -20,15 +20,12 @@ var _default = {
20
20
  title: 'Recipes/NeutralCheckboxField'
21
21
  };
22
22
  exports["default"] = _default;
23
- var sx = {
24
- checkboxColor: {
25
- color: 'neutral.10'
26
- }
27
- };
28
23
 
29
24
  var Default = function Default() {
30
25
  return (0, _react2.jsx)(_CheckboxField["default"], {
31
- sx: sx.checkboxColor
26
+ controlProps: {
27
+ color: 'neutral.10'
28
+ }
32
29
  }, "Click me");
33
30
  };
34
31
 
@@ -40,29 +40,6 @@ var items = [{
40
40
  name: 'Third Option',
41
41
  id: '3'
42
42
  }];
43
- var sx = {
44
- actionIcon: {
45
- color: 'neutral.30'
46
- },
47
- dragVerticalIcon: {
48
- color: 'neutral.50'
49
- },
50
- iconButton: {
51
- ml: 'xs'
52
- },
53
- iconButtonToggleContainer: {
54
- mx: 'sm',
55
- flexShrink: 0
56
- },
57
- iconContainer: {
58
- alignItems: 'center',
59
- ml: '12px',
60
- mr: '12px'
61
- },
62
- outerContainer: {
63
- alignItems: 'center'
64
- }
65
- };
66
43
 
67
44
  var Default = function Default() {
68
45
  var CustomOnSvg = function CustomOnSvg(props) {
@@ -111,22 +88,24 @@ var Default = function Default() {
111
88
  };
112
89
 
113
90
  return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Box["default"], {
114
- sx: sx.outerContainer,
91
+ sx: {
92
+ alignItems: 'center'
93
+ },
115
94
  isRow: true
116
95
  }, (0, _react2.jsx)(_index.Icon, {
117
96
  icon: _DragVerticalIcon["default"],
118
97
  size: 25,
119
- sx: sx.dragVerticalIcon
98
+ color: "neutral.50"
120
99
  }), (0, _react2.jsx)(_index.ComboBoxField, {
121
100
  items: items,
122
101
  defaultSelectedKey: "Last Name",
123
- "aria-label": "Row one value",
124
102
  containerProps: {
125
103
  width: '275px'
126
104
  },
127
105
  labelProps: {
128
106
  mb: 0
129
107
  },
108
+ "aria-label": "Row one value",
130
109
  controlProps: {
131
110
  'aria-label': 'test'
132
111
  }
@@ -136,7 +115,10 @@ var Default = function Default() {
136
115
  "data-id": item.name
137
116
  }, item.name);
138
117
  }), (0, _react2.jsx)(_Box["default"], {
139
- sx: sx.iconButtonToggleContainer
118
+ sx: {
119
+ mx: 'sm',
120
+ flexShrink: 0
121
+ }
140
122
  }, (0, _react2.jsx)(_index.IconButtonToggle, {
141
123
  toggledIcon: CustomOnSvg,
142
124
  defaultIcon: CustomOffSvg,
@@ -166,29 +148,35 @@ var Default = function Default() {
166
148
  }, item.name);
167
149
  }), (0, _react2.jsx)(_Box["default"], {
168
150
  isRow: true,
169
- sx: sx.iconContainer
151
+ alignItems: "center",
152
+ sx: {
153
+ marginLeft: '12px',
154
+ marginRight: '12px'
155
+ }
170
156
  }, (0, _react2.jsx)(_index.IconButton, {
171
157
  "aria-label": "Edit"
172
158
  }, (0, _react2.jsx)(_index.Icon, {
173
159
  icon: _CogsIcon["default"],
174
- sx: sx.actionIcon,
160
+ color: "neutral.30",
175
161
  size: 20,
176
162
  title: "edit icon"
177
163
  })), (0, _react2.jsx)(_index.IconButton, {
178
- sx: sx.iconButton,
164
+ ml: "5px",
179
165
  "aria-label": "Delete"
180
166
  }, (0, _react2.jsx)(_index.Icon, {
181
167
  icon: _DeleteIcon["default"],
182
- sx: sx.actionIcon,
168
+ color: "neutral.30",
183
169
  size: 20,
184
170
  title: "delete icon"
185
171
  })))), (0, _react2.jsx)(_Box["default"], {
186
- sx: sx.outerContainer,
172
+ sx: {
173
+ alignItems: 'center'
174
+ },
187
175
  isRow: true
188
176
  }, (0, _react2.jsx)(_index.Icon, {
189
177
  icon: _DragVerticalIcon["default"],
190
178
  size: 25,
191
- sx: sx.dragVerticalIcon
179
+ color: "neutral.50"
192
180
  }), (0, _react2.jsx)(_index.ComboBoxField, {
193
181
  items: items,
194
182
  defaultSelectedKey: "Last Name",
@@ -208,7 +196,10 @@ var Default = function Default() {
208
196
  "data-id": item.name
209
197
  }, item.name);
210
198
  }), (0, _react2.jsx)(_Box["default"], {
211
- sx: sx.iconButtonToggleContainer
199
+ sx: {
200
+ mx: 'sm',
201
+ flexShrink: 0
202
+ }
212
203
  }, (0, _react2.jsx)(_index.IconButtonToggle, {
213
204
  toggledIcon: CustomRightSvg,
214
205
  defaultIcon: CustomRightSvg,
@@ -238,20 +229,24 @@ var Default = function Default() {
238
229
  }, item.name);
239
230
  }), (0, _react2.jsx)(_Box["default"], {
240
231
  isRow: true,
241
- sx: sx.iconContainer
232
+ alignItems: "center",
233
+ sx: {
234
+ marginLeft: '12px',
235
+ marginRight: '12px'
236
+ }
242
237
  }, (0, _react2.jsx)(_index.IconButton, {
243
238
  "aria-label": "Edit"
244
239
  }, (0, _react2.jsx)(_index.Icon, {
245
240
  icon: _CogsIcon["default"],
246
- sx: sx.actionIcon,
241
+ color: "neutral.30",
247
242
  size: 20,
248
243
  title: "edit icon"
249
244
  })), (0, _react2.jsx)(_index.IconButton, {
250
- sx: sx.iconButton,
245
+ ml: "5px",
251
246
  "aria-label": "Delete"
252
247
  }, (0, _react2.jsx)(_index.Icon, {
253
248
  icon: _DeleteIcon["default"],
254
- sx: sx.actionIcon,
249
+ color: "neutral.30",
255
250
  size: 20,
256
251
  title: "delete icon"
257
252
  })))));