@pingux/astro 1.27.0-alpha.14 → 1.27.0-alpha.16
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.
- package/lib/cjs/components/DataTable/DataTable.js +477 -0
- package/lib/cjs/components/DataTable/DataTable.stories.js +310 -0
- package/lib/cjs/components/DataTable/DataTable.styles.js +156 -0
- package/lib/cjs/components/DataTable/DataTable.test.js +1307 -0
- package/lib/cjs/components/DataTable/DataTableChip.js +63 -0
- package/lib/cjs/components/DataTable/DataTableChip.test.js +38 -0
- package/lib/cjs/components/DataTable/DataTableMenu.js +51 -0
- package/lib/cjs/components/DataTable/DataTableMenu.test.js +20 -0
- package/lib/cjs/components/DataTable/DataTableMultiLine.js +75 -0
- package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +30 -0
- package/lib/cjs/components/DataTable/DataTableVirtualizer.js +188 -0
- package/lib/cjs/components/DataTable/index.js +54 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +8 -2
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +35 -0
- package/lib/cjs/components/PageHeader/PageHeader.js +7 -1
- package/lib/cjs/context/DataTableContext/index.js +31 -0
- package/lib/cjs/index.js +67 -2
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +38 -30
- package/lib/cjs/recipes/ListAndPanel.stories.js +102 -87
- package/lib/cjs/recipes/MaskedValue.stories.js +8 -5
- package/lib/cjs/recipes/NeutralInput.stories.js +6 -3
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +38 -33
- package/lib/cjs/recipes/PageHeader.stories.js +73 -0
- package/lib/cjs/recipes/RowLineChart.stories.js +58 -70
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +25 -21
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +81 -72
- package/lib/cjs/styles/variants/variants.js +4 -1
- package/lib/components/DataTable/DataTable.js +431 -0
- package/lib/components/DataTable/DataTable.stories.js +273 -0
- package/lib/components/DataTable/DataTable.styles.js +137 -0
- package/lib/components/DataTable/DataTable.test.js +1256 -0
- package/lib/components/DataTable/DataTableChip.js +33 -0
- package/lib/components/DataTable/DataTableChip.test.js +31 -0
- package/lib/components/DataTable/DataTableMenu.js +24 -0
- package/lib/components/DataTable/DataTableMenu.test.js +13 -0
- package/lib/components/DataTable/DataTableMultiLine.js +46 -0
- package/lib/components/DataTable/DataTableMultiLine.test.js +22 -0
- package/lib/components/DataTable/DataTableVirtualizer.js +157 -0
- package/lib/components/DataTable/index.js +5 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +7 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +25 -0
- package/lib/components/PageHeader/PageHeader.js +8 -1
- package/lib/context/DataTableContext/index.js +5 -0
- package/lib/index.js +4 -1
- package/lib/recipes/FlippableCaretMenuButton.stories.js +38 -30
- package/lib/recipes/ListAndPanel.stories.js +102 -87
- package/lib/recipes/MaskedValue.stories.js +8 -5
- package/lib/recipes/NeutralInput.stories.js +6 -3
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +38 -33
- package/lib/recipes/PageHeader.stories.js +53 -0
- package/lib/recipes/RowLineChart.stories.js +58 -70
- package/lib/recipes/SelectedFieldOverlay.story.js +25 -21
- package/lib/recipes/TrialExperienceStatusBar.stories.js +81 -72
- package/lib/styles/variants/variants.js +3 -1
- package/package.json +55 -50
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
4
|
+
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
+
|
7
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
8
|
+
|
9
|
+
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
10
|
+
|
11
|
+
_Object$defineProperty(exports, "__esModule", {
|
12
|
+
value: true
|
13
|
+
});
|
14
|
+
|
15
|
+
exports.useDataTableContext = exports.DataTableContext = void 0;
|
16
|
+
|
17
|
+
var _react = _interopRequireWildcard(require("react"));
|
18
|
+
|
19
|
+
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); }
|
20
|
+
|
21
|
+
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; }
|
22
|
+
|
23
|
+
var DataTableContext = /*#__PURE__*/_react["default"].createContext(null);
|
24
|
+
|
25
|
+
exports.DataTableContext = DataTableContext;
|
26
|
+
|
27
|
+
var useDataTableContext = function useDataTableContext() {
|
28
|
+
return (0, _react.useContext)(DataTableContext);
|
29
|
+
};
|
30
|
+
|
31
|
+
exports.useDataTableContext = useDataTableContext;
|
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;
|
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;
|
8
8
|
|
9
9
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
10
10
|
|
@@ -104,7 +104,13 @@ var _exportNames = {
|
|
104
104
|
OverlayProvider: true,
|
105
105
|
useOverlayPosition: true,
|
106
106
|
useOverlayTrigger: true,
|
107
|
-
useOverlayTriggerState: true
|
107
|
+
useOverlayTriggerState: true,
|
108
|
+
DataTable: true,
|
109
|
+
DataTableCell: true,
|
110
|
+
DataTableColumn: true,
|
111
|
+
DataTableRow: true,
|
112
|
+
DataTableBody: true,
|
113
|
+
DataTableHeader: true
|
108
114
|
};
|
109
115
|
|
110
116
|
_Object$defineProperty(exports, "AccordionGridGroup", {
|
@@ -261,6 +267,48 @@ _Object$defineProperty(exports, "CopyText", {
|
|
261
267
|
}
|
262
268
|
});
|
263
269
|
|
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
|
+
|
264
312
|
_Object$defineProperty(exports, "EnvironmentBreadcrumb", {
|
265
313
|
enumerable: true,
|
266
314
|
get: function get() {
|
@@ -1741,6 +1789,23 @@ var _overlays = require("@react-aria/overlays");
|
|
1741
1789
|
|
1742
1790
|
var _overlays2 = require("@react-stately/overlays");
|
1743
1791
|
|
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
|
+
|
1744
1809
|
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); }
|
1745
1810
|
|
1746
1811
|
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,6 +73,40 @@ 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
|
+
};
|
76
110
|
|
77
111
|
var Default = function Default() {
|
78
112
|
var buttonRef = (0, _react.useRef)();
|
@@ -131,14 +165,9 @@ var Default = function Default() {
|
|
131
165
|
|
132
166
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Button, {
|
133
167
|
ref: buttonRef,
|
134
|
-
mb: "sm",
|
135
168
|
variant: "inline",
|
136
169
|
onPress: onChange,
|
137
|
-
sx:
|
138
|
-
height: '30px',
|
139
|
-
borderRadius: '15px',
|
140
|
-
fontSize: '13px'
|
141
|
-
}
|
170
|
+
sx: sx.openButton
|
142
171
|
}, (0, _react2.jsx)(_index.Box, {
|
143
172
|
isRow: true,
|
144
173
|
alignItems: "center"
|
@@ -161,36 +190,15 @@ var Default = function Default() {
|
|
161
190
|
onPress: function onPress() {
|
162
191
|
return setIsOpen(false);
|
163
192
|
},
|
164
|
-
sx:
|
165
|
-
position: 'absolute',
|
166
|
-
top: 14,
|
167
|
-
right: 10
|
168
|
-
}
|
193
|
+
sx: sx.closeIconButton
|
169
194
|
}, (0, _react2.jsx)(_index.Icon, {
|
170
195
|
icon: _CloseIcon["default"]
|
171
196
|
})), (0, _react2.jsx)(_index.Box, {
|
172
|
-
sx:
|
173
|
-
p: 'lg',
|
174
|
-
flexDirection: 'initial !important',
|
175
|
-
alignContent: 'space-between',
|
176
|
-
flexWrap: 'wrap'
|
177
|
-
}
|
197
|
+
sx: sx.buttonsContainer
|
178
198
|
}, (0, _map["default"])(buttonArray).call(buttonArray, function (item) {
|
179
199
|
return (0, _react2.jsx)(_index.Button, {
|
180
|
-
mb: "sm",
|
181
200
|
variant: "inline",
|
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
|
-
},
|
201
|
+
sx: (0, _includes["default"])(selectedButtons).call(selectedButtons, item) ? sx.selectedButton : sx.unSelectedButton,
|
194
202
|
key: item,
|
195
203
|
onPress: function onPress() {
|
196
204
|
return toggleButton(item);
|
@@ -128,44 +128,106 @@ var items = [{
|
|
128
128
|
avatar: _AccountIcon["default"],
|
129
129
|
hasSeparator: false
|
130
130
|
}];
|
131
|
+
var sx = {
|
132
|
+
wrapper: {
|
133
|
+
px: 'lg',
|
134
|
+
py: 'lg',
|
135
|
+
bg: 'accent.99',
|
136
|
+
height: '900px',
|
137
|
+
overflowY: 'scroll'
|
138
|
+
},
|
139
|
+
searchField: {
|
140
|
+
position: 'fixed',
|
141
|
+
mb: 'sm',
|
142
|
+
width: '400px'
|
143
|
+
},
|
144
|
+
listElementWrapper: {
|
145
|
+
px: 'md',
|
146
|
+
bg: 'accent.99',
|
147
|
+
justifyContent: 'center'
|
148
|
+
},
|
149
|
+
separator: {
|
150
|
+
bg: 'accent.90'
|
151
|
+
},
|
152
|
+
tabsWrapper: {
|
153
|
+
px: 'lg',
|
154
|
+
pt: 'xs'
|
155
|
+
},
|
156
|
+
iconButton: {
|
157
|
+
position: 'absolute',
|
158
|
+
top: 0,
|
159
|
+
right: 0
|
160
|
+
},
|
161
|
+
itemLabel: {
|
162
|
+
fontSize: 'sm',
|
163
|
+
fontWeight: 3,
|
164
|
+
lineHeight: '16px',
|
165
|
+
mb: 'xs'
|
166
|
+
},
|
167
|
+
itemValue: {
|
168
|
+
fontWeight: 0,
|
169
|
+
lineHeight: '18px',
|
170
|
+
variant: 'base',
|
171
|
+
mb: 'md'
|
172
|
+
},
|
173
|
+
listElement: {
|
174
|
+
wrapper: {
|
175
|
+
minHeight: '60px'
|
176
|
+
},
|
177
|
+
iconWrapper: {
|
178
|
+
mr: 'auto',
|
179
|
+
alignItems: 'center'
|
180
|
+
},
|
181
|
+
icon: {
|
182
|
+
mr: 'sm',
|
183
|
+
alignSelf: 'center',
|
184
|
+
color: 'accent.40'
|
185
|
+
},
|
186
|
+
avatar: {
|
187
|
+
width: '25px',
|
188
|
+
height: '25px',
|
189
|
+
mr: 'md'
|
190
|
+
},
|
191
|
+
title: {
|
192
|
+
alignSelf: 'start'
|
193
|
+
},
|
194
|
+
subtitle: {
|
195
|
+
fontSize: 'sm',
|
196
|
+
my: '1px',
|
197
|
+
lineHeight: '16px',
|
198
|
+
alignSelf: 'start'
|
199
|
+
},
|
200
|
+
menuWrapper: {
|
201
|
+
alignSelf: 'center'
|
202
|
+
}
|
203
|
+
}
|
204
|
+
};
|
131
205
|
|
132
206
|
var ListElement = function ListElement(_ref) {
|
133
207
|
var item = _ref.item,
|
134
208
|
onClosePanel = _ref.onClosePanel;
|
135
209
|
return (0, _react2.jsx)(_index.Box, {
|
136
210
|
isRow: true,
|
137
|
-
|
211
|
+
sx: sx.listElement.wrapper
|
138
212
|
}, (0, _react2.jsx)(_index.Box, {
|
139
213
|
isRow: true,
|
140
|
-
|
141
|
-
alignItems: "center"
|
214
|
+
sx: sx.listElement.iconWrapper
|
142
215
|
}, item.hasIcon ? (0, _react2.jsx)(_index.Icon, {
|
143
216
|
icon: item.avatar,
|
144
|
-
alignSelf: "center",
|
145
217
|
size: 24,
|
146
|
-
|
147
|
-
color: "accent.40"
|
218
|
+
sx: sx.listElement.icon
|
148
219
|
}) : (0, _react2.jsx)(_index.Avatar, {
|
149
|
-
|
150
|
-
sx: {
|
151
|
-
width: '25px',
|
152
|
-
height: '25px'
|
153
|
-
},
|
220
|
+
sx: sx.listElement.avatar,
|
154
221
|
src: item.avatar
|
155
222
|
}), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
|
156
223
|
variant: "bodyStrong",
|
157
|
-
|
224
|
+
sx: sx.listElement.title
|
158
225
|
}, item.lastName, ", ", item.firstName), (0, _react2.jsx)(_index.Text, {
|
159
|
-
sx: {
|
160
|
-
fontSize: 'sm',
|
161
|
-
my: '1px',
|
162
|
-
lineHeight: '16px'
|
163
|
-
},
|
164
226
|
variant: "subtitle",
|
165
|
-
|
227
|
+
sx: sx.listElement.subtitle
|
166
228
|
}, item.email))), (0, _react2.jsx)(_index.Box, {
|
167
229
|
isRow: true,
|
168
|
-
|
230
|
+
sx: sx.listElement.menuWrapper
|
169
231
|
}, (0, _react2.jsx)(_index.SwitchField, {
|
170
232
|
"aria-label": "active user",
|
171
233
|
isDefaultSelected: true,
|
@@ -222,11 +284,7 @@ var Default = function Default() {
|
|
222
284
|
};
|
223
285
|
|
224
286
|
return (0, _react2.jsx)(_index.Box, {
|
225
|
-
|
226
|
-
py: "lg",
|
227
|
-
bg: "accent.99",
|
228
|
-
height: "900px",
|
229
|
-
overflowY: "scroll"
|
287
|
+
sx: sx.wrapper
|
230
288
|
}, (0, _react2.jsx)(_index.SearchField, {
|
231
289
|
position: "fixed",
|
232
290
|
mb: "sm",
|
@@ -260,18 +318,15 @@ var Default = function Default() {
|
|
260
318
|
restoreFocus: true,
|
261
319
|
autoFocus: true
|
262
320
|
}, (0, _react2.jsx)(_index.Box, {
|
263
|
-
|
264
|
-
bg: "accent.99",
|
265
|
-
justifyContent: "center"
|
321
|
+
sx: sx.listElementWrapper
|
266
322
|
}, (0, _react2.jsx)(ListElement, {
|
267
323
|
item: selectedItemId >= 0 ? items[selectedItemId] : [],
|
268
324
|
onClosePanel: closePanelHandler
|
269
325
|
})), (0, _react2.jsx)(_index.Separator, {
|
270
326
|
margin: 0,
|
271
|
-
|
327
|
+
sx: sx.separator
|
272
328
|
}), (0, _react2.jsx)(_index.Box, {
|
273
|
-
|
274
|
-
pt: "xs"
|
329
|
+
sx: sx.tabsWrapper
|
275
330
|
}, (0, _react2.jsx)(_index.Tabs, {
|
276
331
|
tabListProps: {
|
277
332
|
justifyContent: 'center'
|
@@ -285,73 +340,33 @@ var Default = function Default() {
|
|
285
340
|
title: "Profile"
|
286
341
|
}, selectedItemId >= 0 && (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.IconButton, {
|
287
342
|
variant: "inverted",
|
288
|
-
sx:
|
289
|
-
position: 'absolute',
|
290
|
-
top: 0,
|
291
|
-
right: 0
|
292
|
-
}
|
343
|
+
sx: sx.iconButton
|
293
344
|
}, (0, _react2.jsx)(_PencilIcon["default"], {
|
294
345
|
size: 20
|
295
346
|
})), (0, _react2.jsx)(_index.Text, {
|
296
|
-
sx:
|
297
|
-
|
298
|
-
fontWeight: 3,
|
299
|
-
lineHeight: '16px'
|
300
|
-
},
|
301
|
-
variant: "base",
|
302
|
-
mb: "xs"
|
347
|
+
sx: sx.itemLabel,
|
348
|
+
variant: "base"
|
303
349
|
}, "Full Name"), (0, _react2.jsx)(_index.Text, {
|
304
|
-
sx:
|
305
|
-
|
306
|
-
lineHeight: '18px'
|
307
|
-
},
|
308
|
-
variant: "base",
|
309
|
-
mb: "md"
|
350
|
+
sx: sx.itemValue,
|
351
|
+
variant: "base"
|
310
352
|
}, items[selectedItemId].firstName, " ", items[selectedItemId].lastName), (0, _react2.jsx)(_index.Text, {
|
311
|
-
sx:
|
312
|
-
|
313
|
-
fontWeight: 3,
|
314
|
-
lineHeight: '16px'
|
315
|
-
},
|
316
|
-
variant: "base",
|
317
|
-
mb: "xs"
|
353
|
+
sx: sx.itemLabel,
|
354
|
+
variant: "base"
|
318
355
|
}, "First Name"), (0, _react2.jsx)(_index.Text, {
|
319
|
-
sx:
|
320
|
-
|
321
|
-
lineHeight: '18px'
|
322
|
-
},
|
323
|
-
variant: "base",
|
324
|
-
mb: "md"
|
356
|
+
sx: sx.itemValue,
|
357
|
+
variant: "base"
|
325
358
|
}, items[selectedItemId].firstName), (0, _react2.jsx)(_index.Text, {
|
326
|
-
sx:
|
327
|
-
|
328
|
-
fontWeight: 3,
|
329
|
-
lineHeight: '16px'
|
330
|
-
},
|
331
|
-
variant: "base",
|
332
|
-
mb: "xs"
|
359
|
+
sx: sx.itemLabel,
|
360
|
+
variant: "base"
|
333
361
|
}, "Last Name"), (0, _react2.jsx)(_index.Text, {
|
334
|
-
sx:
|
335
|
-
|
336
|
-
lineHeight: '18px'
|
337
|
-
},
|
338
|
-
variant: "base",
|
339
|
-
mb: "md"
|
362
|
+
sx: sx.itemValue,
|
363
|
+
variant: "base"
|
340
364
|
}, items[selectedItemId].lastName), (0, _react2.jsx)(_index.Text, {
|
341
|
-
sx:
|
342
|
-
|
343
|
-
fontWeight: 3,
|
344
|
-
lineHeight: '16px'
|
345
|
-
},
|
346
|
-
variant: "base",
|
347
|
-
mb: "xs"
|
365
|
+
sx: sx.itemLabel,
|
366
|
+
variant: "base"
|
348
367
|
}, "Email"), (0, _react2.jsx)(_index.Text, {
|
349
|
-
sx:
|
350
|
-
|
351
|
-
lineHeight: '18px'
|
352
|
-
},
|
353
|
-
variant: "base",
|
354
|
-
mb: "md"
|
368
|
+
sx: sx.itemValue,
|
369
|
+
variant: "base"
|
355
370
|
}, items[selectedItemId].email))), (0, _react2.jsx)(_index.Tab, {
|
356
371
|
title: "Group Memberships"
|
357
372
|
}, (0, _react2.jsx)(_index.Text, null, "Group Memberships")), (0, _react2.jsx)(_index.Tab, {
|
@@ -54,6 +54,13 @@ 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
|
+
};
|
57
64
|
|
58
65
|
var Default = function Default(_ref) {
|
59
66
|
var _context;
|
@@ -84,11 +91,7 @@ var Default = function Default(_ref) {
|
|
84
91
|
onPress: function onPress() {
|
85
92
|
return setIsMasked(!isMasked);
|
86
93
|
},
|
87
|
-
sx:
|
88
|
-
width: 'fit-content',
|
89
|
-
marginLeft: 10,
|
90
|
-
alignSelf: 'auto'
|
91
|
-
}
|
94
|
+
sx: sx.showHideButton
|
92
95
|
}, (0, _react2.jsx)(_index.Icon, {
|
93
96
|
icon: isMasked ? _EyeOffOutlineIcon["default"] : _EyeOutlineIcon["default"]
|
94
97
|
}))));
|
@@ -20,12 +20,15 @@ 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
|
+
};
|
23
28
|
|
24
29
|
var Default = function Default() {
|
25
30
|
return (0, _react2.jsx)(_CheckboxField["default"], {
|
26
|
-
|
27
|
-
color: 'neutral.10'
|
28
|
-
}
|
31
|
+
sx: sx.checkboxColor
|
29
32
|
}, "Click me");
|
30
33
|
};
|
31
34
|
|
@@ -40,6 +40,29 @@ 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
|
+
};
|
43
66
|
|
44
67
|
var Default = function Default() {
|
45
68
|
var CustomOnSvg = function CustomOnSvg(props) {
|
@@ -88,24 +111,22 @@ var Default = function Default() {
|
|
88
111
|
};
|
89
112
|
|
90
113
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Box["default"], {
|
91
|
-
sx:
|
92
|
-
alignItems: 'center'
|
93
|
-
},
|
114
|
+
sx: sx.outerContainer,
|
94
115
|
isRow: true
|
95
116
|
}, (0, _react2.jsx)(_index.Icon, {
|
96
117
|
icon: _DragVerticalIcon["default"],
|
97
118
|
size: 25,
|
98
|
-
|
119
|
+
sx: sx.dragVerticalIcon
|
99
120
|
}), (0, _react2.jsx)(_index.ComboBoxField, {
|
100
121
|
items: items,
|
101
122
|
defaultSelectedKey: "Last Name",
|
123
|
+
"aria-label": "Row one value",
|
102
124
|
containerProps: {
|
103
125
|
width: '275px'
|
104
126
|
},
|
105
127
|
labelProps: {
|
106
128
|
mb: 0
|
107
129
|
},
|
108
|
-
"aria-label": "Row one value",
|
109
130
|
controlProps: {
|
110
131
|
'aria-label': 'test'
|
111
132
|
}
|
@@ -115,10 +136,7 @@ var Default = function Default() {
|
|
115
136
|
"data-id": item.name
|
116
137
|
}, item.name);
|
117
138
|
}), (0, _react2.jsx)(_Box["default"], {
|
118
|
-
sx:
|
119
|
-
mx: 'sm',
|
120
|
-
flexShrink: 0
|
121
|
-
}
|
139
|
+
sx: sx.iconButtonToggleContainer
|
122
140
|
}, (0, _react2.jsx)(_index.IconButtonToggle, {
|
123
141
|
toggledIcon: CustomOnSvg,
|
124
142
|
defaultIcon: CustomOffSvg,
|
@@ -148,35 +166,29 @@ var Default = function Default() {
|
|
148
166
|
}, item.name);
|
149
167
|
}), (0, _react2.jsx)(_Box["default"], {
|
150
168
|
isRow: true,
|
151
|
-
|
152
|
-
sx: {
|
153
|
-
marginLeft: '12px',
|
154
|
-
marginRight: '12px'
|
155
|
-
}
|
169
|
+
sx: sx.iconContainer
|
156
170
|
}, (0, _react2.jsx)(_index.IconButton, {
|
157
171
|
"aria-label": "Edit"
|
158
172
|
}, (0, _react2.jsx)(_index.Icon, {
|
159
173
|
icon: _CogsIcon["default"],
|
160
|
-
|
174
|
+
sx: sx.actionIcon,
|
161
175
|
size: 20,
|
162
176
|
title: "edit icon"
|
163
177
|
})), (0, _react2.jsx)(_index.IconButton, {
|
164
|
-
|
178
|
+
sx: sx.iconButton,
|
165
179
|
"aria-label": "Delete"
|
166
180
|
}, (0, _react2.jsx)(_index.Icon, {
|
167
181
|
icon: _DeleteIcon["default"],
|
168
|
-
|
182
|
+
sx: sx.actionIcon,
|
169
183
|
size: 20,
|
170
184
|
title: "delete icon"
|
171
185
|
})))), (0, _react2.jsx)(_Box["default"], {
|
172
|
-
sx:
|
173
|
-
alignItems: 'center'
|
174
|
-
},
|
186
|
+
sx: sx.outerContainer,
|
175
187
|
isRow: true
|
176
188
|
}, (0, _react2.jsx)(_index.Icon, {
|
177
189
|
icon: _DragVerticalIcon["default"],
|
178
190
|
size: 25,
|
179
|
-
|
191
|
+
sx: sx.dragVerticalIcon
|
180
192
|
}), (0, _react2.jsx)(_index.ComboBoxField, {
|
181
193
|
items: items,
|
182
194
|
defaultSelectedKey: "Last Name",
|
@@ -196,10 +208,7 @@ var Default = function Default() {
|
|
196
208
|
"data-id": item.name
|
197
209
|
}, item.name);
|
198
210
|
}), (0, _react2.jsx)(_Box["default"], {
|
199
|
-
sx:
|
200
|
-
mx: 'sm',
|
201
|
-
flexShrink: 0
|
202
|
-
}
|
211
|
+
sx: sx.iconButtonToggleContainer
|
203
212
|
}, (0, _react2.jsx)(_index.IconButtonToggle, {
|
204
213
|
toggledIcon: CustomRightSvg,
|
205
214
|
defaultIcon: CustomRightSvg,
|
@@ -229,24 +238,20 @@ var Default = function Default() {
|
|
229
238
|
}, item.name);
|
230
239
|
}), (0, _react2.jsx)(_Box["default"], {
|
231
240
|
isRow: true,
|
232
|
-
|
233
|
-
sx: {
|
234
|
-
marginLeft: '12px',
|
235
|
-
marginRight: '12px'
|
236
|
-
}
|
241
|
+
sx: sx.iconContainer
|
237
242
|
}, (0, _react2.jsx)(_index.IconButton, {
|
238
243
|
"aria-label": "Edit"
|
239
244
|
}, (0, _react2.jsx)(_index.Icon, {
|
240
245
|
icon: _CogsIcon["default"],
|
241
|
-
|
246
|
+
sx: sx.actionIcon,
|
242
247
|
size: 20,
|
243
248
|
title: "edit icon"
|
244
249
|
})), (0, _react2.jsx)(_index.IconButton, {
|
245
|
-
|
250
|
+
sx: sx.iconButton,
|
246
251
|
"aria-label": "Delete"
|
247
252
|
}, (0, _react2.jsx)(_index.Icon, {
|
248
253
|
icon: _DeleteIcon["default"],
|
249
|
-
|
254
|
+
sx: sx.actionIcon,
|
250
255
|
size: 20,
|
251
256
|
title: "delete icon"
|
252
257
|
})))));
|