@pingux/astro 1.42.1-alpha.0 → 1.42.1-alpha.1

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.
@@ -40,8 +40,6 @@ var _index = require("../index");
40
40
 
41
41
  var _hooks = require("../hooks");
42
42
 
43
- var _images = require("../utils/devUtils/constants/images");
44
-
45
43
  var _react2 = require("@emotion/react");
46
44
 
47
45
  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); }
@@ -62,12 +60,14 @@ var items = [{
62
60
  email: 'idixie2@elegantthemes.com',
63
61
  firstName: 'Cacilia',
64
62
  lastName: 'Dixie',
65
- avatar: _images.pingImg
63
+ hasIcon: true,
64
+ avatar: _AccountIcon["default"]
66
65
  }, {
67
66
  email: 'dfowler0@rambler.ru',
68
67
  firstName: 'Stavro',
69
68
  lastName: 'Fowler',
70
- avatar: _images.pingImg
69
+ hasIcon: true,
70
+ avatar: _AccountIcon["default"]
71
71
  }, {
72
72
  email: 'jgolde8@jimdo.com',
73
73
  firstName: 'Celisse',
@@ -127,8 +127,7 @@ var items = [{
127
127
  firstName: 'Andromache',
128
128
  lastName: 'Idel',
129
129
  hasIcon: true,
130
- avatar: _AccountIcon["default"],
131
- hasSeparator: false
130
+ avatar: _AccountIcon["default"]
132
131
  }];
133
132
  var sx = {
134
133
  wrapper: {
@@ -181,7 +180,7 @@ var sx = {
181
180
  alignItems: 'center'
182
181
  },
183
182
  icon: {
184
- mr: 'sm',
183
+ mr: 'md',
185
184
  alignSelf: 'center',
186
185
  color: 'accent.40'
187
186
  },
@@ -191,7 +190,8 @@ var sx = {
191
190
  mr: 'md'
192
191
  },
193
192
  title: {
194
- alignSelf: 'start'
193
+ alignSelf: 'start',
194
+ fontSize: 'md'
195
195
  },
196
196
  subtitle: {
197
197
  fontSize: 'sm',
@@ -214,13 +214,10 @@ var ListElement = function ListElement(_ref) {
214
214
  }, (0, _react2.jsx)(_index.Box, {
215
215
  isRow: true,
216
216
  sx: sx.listElement.iconWrapper
217
- }, item.hasIcon ? (0, _react2.jsx)(_index.Icon, {
217
+ }, (0, _react2.jsx)(_index.Icon, {
218
218
  icon: item.avatar,
219
- size: 24,
219
+ size: "md",
220
220
  sx: sx.listElement.icon
221
- }) : (0, _react2.jsx)(_index.Avatar, {
222
- sx: sx.listElement.avatar,
223
- src: item.avatar
224
221
  }), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
225
222
  variant: "bodyStrong",
226
223
  sx: sx.listElement.title
@@ -240,8 +237,7 @@ var ListElement = function ListElement(_ref) {
240
237
  mr: onClosePanel ? 'sm' : 0
241
238
  }, (0, _react2.jsx)(_index.Icon, {
242
239
  icon: _MoreVertIcon["default"],
243
- color: "white",
244
- size: "sm"
240
+ size: "md"
245
241
  })), (0, _react2.jsx)(_index.Menu, null, (0, _react2.jsx)(_collections.Item, {
246
242
  key: "enable"
247
243
  }, "Enable user"), (0, _react2.jsx)(_collections.Item, {
@@ -273,7 +269,7 @@ var Default = function Default() {
273
269
  onPanelClose = _useOverlayPanelState.onClose;
274
270
 
275
271
  var panelTriggerRef = (0, _react.useRef)();
276
- var heading = 'Title of the Page';
272
+ var heading = 'Users';
277
273
  var description = 'The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page.';
278
274
 
279
275
  var closePanelHandler = function closePanelHandler() {
@@ -296,28 +292,28 @@ var Default = function Default() {
296
292
 
297
293
  return (0, _react2.jsx)(_index.Box, {
298
294
  sx: sx.wrapper
299
- }, (0, _react2.jsx)(_index.Box, {
300
- mb: "md"
301
- }, (0, _react2.jsx)(_index.Box, {
295
+ }, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
302
296
  align: "center",
303
297
  isRow: true,
304
298
  mb: "xs",
305
299
  role: "heading",
306
300
  "aria-level": "1"
307
301
  }, (0, _react2.jsx)(_index.Text, {
308
- variant: "title",
309
- fontWeight: 3
302
+ fontSize: "xx",
303
+ fontWeight: 3,
304
+ fontColor: "text.primary"
310
305
  }, heading), (0, _react2.jsx)(_index.IconButton, {
311
306
  "aria-label": "icon button",
312
307
  ml: "sm",
313
- mt: "3px",
314
308
  variant: "inverted"
315
309
  }, (0, _react2.jsx)(_index.Icon, {
316
310
  icon: _PlusIcon["default"],
317
- color: "white",
318
- size: "xs"
311
+ size: "sm"
319
312
  }))), (0, _react2.jsx)(_index.Text, {
320
- variant: "bodyWeak"
313
+ fontSize: "sm",
314
+ color: "text.secondary",
315
+ fontWeight: 0,
316
+ width: "800px"
321
317
  }, description, (0, _react2.jsx)(_index.Link, {
322
318
  href: "https://uilibrary.ping-eng.com/",
323
319
  sx: {
@@ -325,10 +321,13 @@ var Default = function Default() {
325
321
  }
326
322
  }, " Learn more"))), (0, _react2.jsx)(_index.SearchField, {
327
323
  position: "fixed",
328
- mb: "sm",
324
+ mb: "lg",
325
+ mt: "lg",
329
326
  width: "400px",
330
327
  placeholder: "Search",
331
328
  "aria-label": "search"
329
+ }), (0, _react2.jsx)(_index.Separator, {
330
+ margin: 0
332
331
  }), (0, _react2.jsx)(_index.ListView, {
333
332
  items: items,
334
333
  onSelectionChange: selectItemHandler,
@@ -338,7 +337,7 @@ var Default = function Default() {
338
337
  return (0, _react2.jsx)(_collections.Item, {
339
338
  key: item.email,
340
339
  textValue: item.email,
341
- hasSeparator: item.hasSeparator,
340
+ hasSeparator: true,
342
341
  listItemProps: {
343
342
  pl: 15,
344
343
  minHeight: 75
@@ -8,9 +8,8 @@ import CloseIcon from 'mdi-react/CloseIcon';
8
8
  import MoreVertIcon from 'mdi-react/MoreVertIcon';
9
9
  import PencilIcon from 'mdi-react/PencilIcon';
10
10
  import PlusIcon from 'mdi-react/PlusIcon';
11
- import { Avatar, Box, Icon, IconButton, Link, ListView, Menu, OverlayPanel, PopoverMenu, SearchField, Separator, SwitchField, Tab, Tabs, Text } from '../index';
11
+ import { Box, Icon, IconButton, Link, ListView, Menu, OverlayPanel, PopoverMenu, SearchField, Separator, SwitchField, Tab, Tabs, Text } from '../index';
12
12
  import { useOverlayPanelState } from '../hooks';
13
- import { pingImg } from '../utils/devUtils/constants/images';
14
13
  import { jsx as ___EmotionJSX } from "@emotion/react";
15
14
  export default {
16
15
  title: 'Recipes/List with Panel'
@@ -25,12 +24,14 @@ var items = [{
25
24
  email: 'idixie2@elegantthemes.com',
26
25
  firstName: 'Cacilia',
27
26
  lastName: 'Dixie',
28
- avatar: pingImg
27
+ hasIcon: true,
28
+ avatar: AccountIcon
29
29
  }, {
30
30
  email: 'dfowler0@rambler.ru',
31
31
  firstName: 'Stavro',
32
32
  lastName: 'Fowler',
33
- avatar: pingImg
33
+ hasIcon: true,
34
+ avatar: AccountIcon
34
35
  }, {
35
36
  email: 'jgolde8@jimdo.com',
36
37
  firstName: 'Celisse',
@@ -90,8 +91,7 @@ var items = [{
90
91
  firstName: 'Andromache',
91
92
  lastName: 'Idel',
92
93
  hasIcon: true,
93
- avatar: AccountIcon,
94
- hasSeparator: false
94
+ avatar: AccountIcon
95
95
  }];
96
96
  var sx = {
97
97
  wrapper: {
@@ -144,7 +144,7 @@ var sx = {
144
144
  alignItems: 'center'
145
145
  },
146
146
  icon: {
147
- mr: 'sm',
147
+ mr: 'md',
148
148
  alignSelf: 'center',
149
149
  color: 'accent.40'
150
150
  },
@@ -154,7 +154,8 @@ var sx = {
154
154
  mr: 'md'
155
155
  },
156
156
  title: {
157
- alignSelf: 'start'
157
+ alignSelf: 'start',
158
+ fontSize: 'md'
158
159
  },
159
160
  subtitle: {
160
161
  fontSize: 'sm',
@@ -177,13 +178,10 @@ var ListElement = function ListElement(_ref) {
177
178
  }, ___EmotionJSX(Box, {
178
179
  isRow: true,
179
180
  sx: sx.listElement.iconWrapper
180
- }, item.hasIcon ? ___EmotionJSX(Icon, {
181
+ }, ___EmotionJSX(Icon, {
181
182
  icon: item.avatar,
182
- size: 24,
183
+ size: "md",
183
184
  sx: sx.listElement.icon
184
- }) : ___EmotionJSX(Avatar, {
185
- sx: sx.listElement.avatar,
186
- src: item.avatar
187
185
  }), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
188
186
  variant: "bodyStrong",
189
187
  sx: sx.listElement.title
@@ -203,8 +201,7 @@ var ListElement = function ListElement(_ref) {
203
201
  mr: onClosePanel ? 'sm' : 0
204
202
  }, ___EmotionJSX(Icon, {
205
203
  icon: MoreVertIcon,
206
- color: "white",
207
- size: "sm"
204
+ size: "md"
208
205
  })), ___EmotionJSX(Menu, null, ___EmotionJSX(Item, {
209
206
  key: "enable"
210
207
  }, "Enable user"), ___EmotionJSX(Item, {
@@ -236,7 +233,7 @@ export var Default = function Default() {
236
233
  onPanelClose = _useOverlayPanelState.onClose;
237
234
 
238
235
  var panelTriggerRef = useRef();
239
- var heading = 'Title of the Page';
236
+ var heading = 'Users';
240
237
  var description = 'The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page.';
241
238
 
242
239
  var closePanelHandler = function closePanelHandler() {
@@ -259,28 +256,28 @@ export var Default = function Default() {
259
256
 
260
257
  return ___EmotionJSX(Box, {
261
258
  sx: sx.wrapper
262
- }, ___EmotionJSX(Box, {
263
- mb: "md"
264
- }, ___EmotionJSX(Box, {
259
+ }, ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
265
260
  align: "center",
266
261
  isRow: true,
267
262
  mb: "xs",
268
263
  role: "heading",
269
264
  "aria-level": "1"
270
265
  }, ___EmotionJSX(Text, {
271
- variant: "title",
272
- fontWeight: 3
266
+ fontSize: "xx",
267
+ fontWeight: 3,
268
+ fontColor: "text.primary"
273
269
  }, heading), ___EmotionJSX(IconButton, {
274
270
  "aria-label": "icon button",
275
271
  ml: "sm",
276
- mt: "3px",
277
272
  variant: "inverted"
278
273
  }, ___EmotionJSX(Icon, {
279
274
  icon: PlusIcon,
280
- color: "white",
281
- size: "xs"
275
+ size: "sm"
282
276
  }))), ___EmotionJSX(Text, {
283
- variant: "bodyWeak"
277
+ fontSize: "sm",
278
+ color: "text.secondary",
279
+ fontWeight: 0,
280
+ width: "800px"
284
281
  }, description, ___EmotionJSX(Link, {
285
282
  href: "https://uilibrary.ping-eng.com/",
286
283
  sx: {
@@ -288,10 +285,13 @@ export var Default = function Default() {
288
285
  }
289
286
  }, " Learn more"))), ___EmotionJSX(SearchField, {
290
287
  position: "fixed",
291
- mb: "sm",
288
+ mb: "lg",
289
+ mt: "lg",
292
290
  width: "400px",
293
291
  placeholder: "Search",
294
292
  "aria-label": "search"
293
+ }), ___EmotionJSX(Separator, {
294
+ margin: 0
295
295
  }), ___EmotionJSX(ListView, {
296
296
  items: items,
297
297
  onSelectionChange: selectItemHandler,
@@ -301,7 +301,7 @@ export var Default = function Default() {
301
301
  return ___EmotionJSX(Item, {
302
302
  key: item.email,
303
303
  textValue: item.email,
304
- hasSeparator: item.hasSeparator,
304
+ hasSeparator: true,
305
305
  listItemProps: {
306
306
  pl: 15,
307
307
  minHeight: 75
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.42.1-alpha.0",
3
+ "version": "1.42.1-alpha.1",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",