@pingux/astro 1.42.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.
@@ -14,7 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
14
14
  value: true
15
15
  });
16
16
 
17
- exports["default"] = exports.CollectionStep = void 0;
17
+ exports["default"] = void 0;
18
18
 
19
19
  var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values"));
20
20
 
@@ -28,8 +28,6 @@ var _CheckBoldIcon = _interopRequireDefault(require("mdi-react/CheckBoldIcon"));
28
28
 
29
29
  var _interactions = require("@react-aria/interactions");
30
30
 
31
- var _collections = require("@react-stately/collections");
32
-
33
31
  var _Stepper = require("./Stepper.constants");
34
32
 
35
33
  var _index = require("../../index");
@@ -42,7 +40,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
42
40
 
43
41
  var COMPLETED = _Stepper.stepStatuses.COMPLETED,
44
42
  INACTIVE = _Stepper.stepStatuses.INACTIVE;
45
- var CollectionStep = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
43
+ var Step = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
46
44
  var status = props.status,
47
45
  value = props.value;
48
46
 
@@ -59,14 +57,13 @@ var CollectionStep = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
59
57
  color: "text.primaryLight"
60
58
  }) : value);
61
59
  });
62
- exports.CollectionStep = CollectionStep;
63
- CollectionStep.propTypes = {
60
+ Step.propTypes = {
64
61
  status: _propTypes["default"].oneOf((0, _values["default"])(_Stepper.stepStatuses)),
65
62
  value: _propTypes["default"].number
66
63
  };
67
- CollectionStep.defaultProps = {
64
+ Step.defaultProps = {
68
65
  status: INACTIVE,
69
66
  value: 0
70
67
  };
71
- var _default = _collections.Item;
68
+ var _default = Step;
72
69
  exports["default"] = _default;
@@ -50,14 +50,10 @@ var _isValidPositiveInt = _interopRequireDefault(require("../../utils/devUtils/p
50
50
 
51
51
  var _Stepper = require("./Stepper.constants");
52
52
 
53
- var _Step = require("./Step");
53
+ var _ = require("../..");
54
54
 
55
55
  var _Line = _interopRequireDefault(require("./Line"));
56
56
 
57
- var _Tab = _interopRequireDefault(require("../Tab"));
58
-
59
- var _Tabs = _interopRequireDefault(require("../Tabs"));
60
-
61
57
  var _react2 = require("@emotion/react");
62
58
 
63
59
  var _excluded = ["activeStep", "onStepChange", "tabListProps"];
@@ -113,14 +109,14 @@ var Stepper = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
113
109
  var render = (0, _map["default"])(steps).call(steps, function (item, i) {
114
110
  var stepIndex = i + 1;
115
111
  var stepStatus = getStatus(stepIndex);
116
- var step = (0, _react2.jsx)(_Step.CollectionStep, {
112
+ var step = (0, _react2.jsx)(_.Step, {
117
113
  key: item.key,
118
114
  value: stepIndex,
119
115
  status: stepStatus
120
116
  });
121
117
  var line = (0, _react2.jsx)(_react["default"].Fragment, null, (0, _isArray["default"])(lines) ? lines[i - 1] : lines);
122
118
  var textValue = item && item.value && item.value.label || item.textValue || stepIndex.toString();
123
- var container = (0, _react2.jsx)(_Tab["default"], {
119
+ var container = (0, _react2.jsx)(_.Tab, {
124
120
  key: stepIndex,
125
121
  variant: "stepper.tab",
126
122
  tabLineProps: {
@@ -138,7 +134,7 @@ var Stepper = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
138
134
  isFirst = isFirst && !container;
139
135
  return container;
140
136
  });
141
- return (0, _react2.jsx)(_Tabs["default"], (0, _extends2["default"])({
137
+ return (0, _react2.jsx)(_.Tabs, (0, _extends2["default"])({
142
138
  ref: ref,
143
139
  variant: "stepper.wrapper",
144
140
  tabListProps: _objectSpread({
@@ -20,6 +20,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/hel
20
20
 
21
21
  var _react = _interopRequireWildcard(require("react"));
22
22
 
23
+ var _collections = require("@react-stately/collections");
24
+
23
25
  var _index = require("../../index");
24
26
 
25
27
  var _react2 = require("@emotion/react");
@@ -89,12 +91,12 @@ var steps = [{
89
91
  }];
90
92
 
91
93
  var Default = function Default(args) {
92
- return (0, _react2.jsx)(_index.Stepper, args, (0, _react2.jsx)(_index.Step, {
94
+ return (0, _react2.jsx)(_index.Stepper, args, (0, _react2.jsx)(_collections.Item, {
93
95
  key: "step1",
94
96
  textValue: "Step 1"
95
97
  }, (0, _react2.jsx)(_index.Text, {
96
98
  pt: "lg"
97
- }, "This is content for step 1")), (0, _react2.jsx)(_index.Step, {
99
+ }, "This is content for step 1")), (0, _react2.jsx)(_collections.Item, {
98
100
  key: "step2",
99
101
  textValue: "Step 2"
100
102
  }, (0, _react2.jsx)(_index.Text, {
@@ -120,7 +122,7 @@ var ControlledStepper = function ControlledStepper() {
120
122
  activeStep: activeStep,
121
123
  onStepChange: setActiveStep
122
124
  }, function (item) {
123
- return (0, _react2.jsx)(_index.Step, {
125
+ return (0, _react2.jsx)(_collections.Item, {
124
126
  key: item.name,
125
127
  textValue: item.name
126
128
  }, (0, _react2.jsx)(_index.Text, {
@@ -132,13 +134,13 @@ var ControlledStepper = function ControlledStepper() {
132
134
  exports.ControlledStepper = ControlledStepper;
133
135
 
134
136
  var WithoutContent = function WithoutContent() {
135
- return (0, _react2.jsx)(_index.Stepper, null, (0, _react2.jsx)(_index.Step, {
137
+ return (0, _react2.jsx)(_index.Stepper, null, (0, _react2.jsx)(_collections.Item, {
136
138
  key: "step1",
137
139
  textValue: "Step 1"
138
- }), (0, _react2.jsx)(_index.Step, {
140
+ }), (0, _react2.jsx)(_collections.Item, {
139
141
  key: "step2",
140
142
  textValue: "Step 2"
141
- }), (0, _react2.jsx)(_index.Step, {
143
+ }), (0, _react2.jsx)(_collections.Item, {
142
144
  key: "step3",
143
145
  textValue: "Step 3"
144
146
  }));
@@ -24,6 +24,8 @@ var _react2 = require("@emotion/react");
24
24
 
25
25
  var _cache = _interopRequireDefault(require("@emotion/cache"));
26
26
 
27
+ var _collections = require("@react-stately/collections");
28
+
27
29
  var _testAxe = _interopRequireDefault(require("../../utils/testUtils/testAxe"));
28
30
 
29
31
  var _testWrapper = require("../../utils/testUtils/testWrapper");
@@ -32,8 +34,6 @@ var _Text = _interopRequireDefault(require("../Text"));
32
34
 
33
35
  var _Stepper = _interopRequireDefault(require("./Stepper"));
34
36
 
35
- var _Step = _interopRequireDefault(require("./Step"));
36
-
37
37
  // Emotion Cache added as test fails otherwise, root cause of this failure is unknown.
38
38
  // Failure occured with ThemeUI refactor.
39
39
  // https://github.com/emotion-js/emotion/issues/1105#issuecomment-557726922
@@ -73,7 +73,7 @@ var getComponent = function getComponent() {
73
73
  }, (0, _react2.jsx)(_Stepper["default"], (0, _extends2["default"])({}, defaultProps, props), function (_ref2) {
74
74
  var name = _ref2.name,
75
75
  children = _ref2.children;
76
- return (0, _react2.jsx)(_Step["default"], {
76
+ return (0, _react2.jsx)(_collections.Item, {
77
77
  key: name || children,
78
78
  textValue: name || children
79
79
  }, (0, _react2.jsx)(_Text["default"], null, children));
package/lib/cjs/index.js CHANGED
@@ -88,6 +88,7 @@ var _exportNames = {
88
88
  SelectField: true,
89
89
  Separator: true,
90
90
  Stepper: true,
91
+ Step: true,
91
92
  Switch: true,
92
93
  SwitchField: true,
93
94
  Tab: true,
@@ -643,6 +644,13 @@ _Object$defineProperty(exports, "Separator", {
643
644
  }
644
645
  });
645
646
 
647
+ _Object$defineProperty(exports, "Step", {
648
+ enumerable: true,
649
+ get: function get() {
650
+ return _Stepper.Step;
651
+ }
652
+ });
653
+
646
654
  _Object$defineProperty(exports, "Stepper", {
647
655
  enumerable: true,
648
656
  get: function get() {
@@ -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
@@ -4,13 +4,12 @@ import React, { forwardRef } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import CheckBoldIcon from 'mdi-react/CheckBoldIcon';
6
6
  import { useHover } from '@react-aria/interactions';
7
- import { Item as Step } from '@react-stately/collections';
8
7
  import { stepStatuses } from './Stepper.constants';
9
8
  import { Box, Icon } from '../../index';
10
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
11
10
  var COMPLETED = stepStatuses.COMPLETED,
12
11
  INACTIVE = stepStatuses.INACTIVE;
13
- export var CollectionStep = /*#__PURE__*/forwardRef(function (props, ref) {
12
+ var Step = /*#__PURE__*/forwardRef(function (props, ref) {
14
13
  var status = props.status,
15
14
  value = props.value;
16
15
 
@@ -27,11 +26,11 @@ export var CollectionStep = /*#__PURE__*/forwardRef(function (props, ref) {
27
26
  color: "text.primaryLight"
28
27
  }) : value);
29
28
  });
30
- CollectionStep.propTypes = {
29
+ Step.propTypes = {
31
30
  status: PropTypes.oneOf(_Object$values(stepStatuses)),
32
31
  value: PropTypes.number
33
32
  };
34
- CollectionStep.defaultProps = {
33
+ Step.defaultProps = {
35
34
  status: INACTIVE,
36
35
  value: 0
37
36
  };
@@ -23,10 +23,8 @@ import PropTypes from 'prop-types';
23
23
  import { useSingleSelectListState } from '@react-stately/list';
24
24
  import isValidPositiveInt from '../../utils/devUtils/props/isValidPositiveInt';
25
25
  import { stepStatuses } from './Stepper.constants';
26
- import { CollectionStep } from './Step';
26
+ import { Step, Tab, Tabs } from '../..';
27
27
  import Line from './Line';
28
- import Tab from '../Tab';
29
- import Tabs from '../Tabs';
30
28
  import { jsx as ___EmotionJSX } from "@emotion/react";
31
29
  var ACTIVE = stepStatuses.ACTIVE,
32
30
  COMPLETED = stepStatuses.COMPLETED,
@@ -75,7 +73,7 @@ var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
75
73
  var stepIndex = i + 1;
76
74
  var stepStatus = getStatus(stepIndex);
77
75
 
78
- var step = ___EmotionJSX(CollectionStep, {
76
+ var step = ___EmotionJSX(Step, {
79
77
  key: item.key,
80
78
  value: stepIndex,
81
79
  status: stepStatus
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
2
  import React, { useState } from 'react';
3
- import { Stepper, Step, Text } from '../../index';
3
+ import { Item } from '@react-stately/collections';
4
+ import { Stepper, Text } from '../../index';
4
5
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
6
  export default {
6
7
  title: 'Components/Stepper',
@@ -61,12 +62,12 @@ var steps = [{
61
62
  name: 'step3'
62
63
  }];
63
64
  export var Default = function Default(args) {
64
- return ___EmotionJSX(Stepper, args, ___EmotionJSX(Step, {
65
+ return ___EmotionJSX(Stepper, args, ___EmotionJSX(Item, {
65
66
  key: "step1",
66
67
  textValue: "Step 1"
67
68
  }, ___EmotionJSX(Text, {
68
69
  pt: "lg"
69
- }, "This is content for step 1")), ___EmotionJSX(Step, {
70
+ }, "This is content for step 1")), ___EmotionJSX(Item, {
70
71
  key: "step2",
71
72
  textValue: "Step 2"
72
73
  }, ___EmotionJSX(Text, {
@@ -89,7 +90,7 @@ export var ControlledStepper = function ControlledStepper() {
89
90
  activeStep: activeStep,
90
91
  onStepChange: setActiveStep
91
92
  }, function (item) {
92
- return ___EmotionJSX(Step, {
93
+ return ___EmotionJSX(Item, {
93
94
  key: item.name,
94
95
  textValue: item.name
95
96
  }, ___EmotionJSX(Text, {
@@ -98,13 +99,13 @@ export var ControlledStepper = function ControlledStepper() {
98
99
  });
99
100
  };
100
101
  export var WithoutContent = function WithoutContent() {
101
- return ___EmotionJSX(Stepper, null, ___EmotionJSX(Step, {
102
+ return ___EmotionJSX(Stepper, null, ___EmotionJSX(Item, {
102
103
  key: "step1",
103
104
  textValue: "Step 1"
104
- }), ___EmotionJSX(Step, {
105
+ }), ___EmotionJSX(Item, {
105
106
  key: "step2",
106
107
  textValue: "Step 2"
107
- }), ___EmotionJSX(Step, {
108
+ }), ___EmotionJSX(Item, {
108
109
  key: "step3",
109
110
  textValue: "Step 3"
110
111
  }));
@@ -9,11 +9,11 @@ import React from 'react';
9
9
  import userEvent from '@testing-library/user-event';
10
10
  import { CacheProvider } from '@emotion/react';
11
11
  import createCache from '@emotion/cache';
12
+ import { Item } from '@react-stately/collections';
12
13
  import axeTest from '../../utils/testUtils/testAxe';
13
14
  import { render, screen, fireEvent } from '../../utils/testUtils/testWrapper';
14
15
  import Text from '../Text';
15
- import Stepper from './Stepper';
16
- import Step from './Step'; // Emotion Cache added as test fails otherwise, root cause of this failure is unknown.
16
+ import Stepper from './Stepper'; // Emotion Cache added as test fails otherwise, root cause of this failure is unknown.
17
17
  // Failure occured with ThemeUI refactor.
18
18
  // https://github.com/emotion-js/emotion/issues/1105#issuecomment-557726922
19
19
 
@@ -54,7 +54,7 @@ var getComponent = function getComponent() {
54
54
  }, ___EmotionJSX(Stepper, _extends({}, defaultProps, props), function (_ref2) {
55
55
  var name = _ref2.name,
56
56
  children = _ref2.children;
57
- return ___EmotionJSX(Step, {
57
+ return ___EmotionJSX(Item, {
58
58
  key: name || children,
59
59
  textValue: name || children
60
60
  }, ___EmotionJSX(Text, null, children));
package/lib/index.js CHANGED
@@ -122,7 +122,7 @@ export { default as SelectField } from './components/SelectField';
122
122
  export * from './components/SelectField';
123
123
  export { default as Separator } from './components/Separator';
124
124
  export * from './components/Separator';
125
- export { default as Stepper } from './components/Stepper';
125
+ export { default as Stepper, Step } from './components/Stepper';
126
126
  export * from './components/Stepper';
127
127
  export { default as Switch } from './components/Switch';
128
128
  export * from './components/Switch';
@@ -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.0",
3
+ "version": "1.42.1-alpha.1",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",