@pingux/astro 1.31.0-alpha.0 → 1.31.0-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.
@@ -106,6 +106,8 @@ function useListLayout(state) {
106
106
  * view, or edit items in this list. This virtualized component supports
107
107
  * asynchronous data in infinitely scrollable lists.
108
108
  *
109
+ * Can be used as in recipe: https://uilibrary.ping-eng.com/astro/?path=/docs/recipes-list-with-panel--default
110
+ *
109
111
  * NOTE: be careful with putting focusable elements inside ListView.
110
112
  * It is using a grid (useList hook) with its own event listeners under the hood.
111
113
  * [react-specttrum-github-issue](https://github.com/adobe/react-spectrum/issues/2801)
@@ -34,6 +34,8 @@ var _MoreVertIcon = _interopRequireDefault(require("mdi-react/MoreVertIcon"));
34
34
 
35
35
  var _PencilIcon = _interopRequireDefault(require("mdi-react/PencilIcon"));
36
36
 
37
+ var _PlusIcon = _interopRequireDefault(require("mdi-react/PlusIcon"));
38
+
37
39
  var _index = require("../index");
38
40
 
39
41
  var _hooks = require("../hooks");
@@ -264,6 +266,8 @@ var Default = function Default() {
264
266
  onPanelClose = _useOverlayPanelState.onClose;
265
267
 
266
268
  var panelTriggerRef = (0, _react.useRef)();
269
+ var heading = 'Title of the Page';
270
+ 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.';
267
271
 
268
272
  var closePanelHandler = function closePanelHandler() {
269
273
  onPanelClose(panelState, panelTriggerRef);
@@ -285,7 +289,34 @@ var Default = function Default() {
285
289
 
286
290
  return (0, _react2.jsx)(_index.Box, {
287
291
  sx: sx.wrapper
288
- }, (0, _react2.jsx)(_index.SearchField, {
292
+ }, (0, _react2.jsx)(_index.Box, {
293
+ mb: "md"
294
+ }, (0, _react2.jsx)(_index.Box, {
295
+ align: "center",
296
+ isRow: true,
297
+ mb: "xs",
298
+ role: "heading",
299
+ "aria-level": "1"
300
+ }, (0, _react2.jsx)(_index.Text, {
301
+ variant: "title",
302
+ fontWeight: 3
303
+ }, heading), (0, _react2.jsx)(_index.IconButton, {
304
+ "aria-label": "icon button",
305
+ ml: "sm",
306
+ mt: "3px",
307
+ variant: "inverted"
308
+ }, (0, _react2.jsx)(_index.Icon, {
309
+ icon: _PlusIcon["default"],
310
+ color: "white",
311
+ size: 13
312
+ }))), (0, _react2.jsx)(_index.Text, {
313
+ variant: "bodyWeak"
314
+ }, description, (0, _react2.jsx)(_index.Link, {
315
+ href: "https://uilibrary.ping-eng.com/",
316
+ sx: {
317
+ fontSize: '13px'
318
+ }
319
+ }, " Learn more"))), (0, _react2.jsx)(_index.SearchField, {
289
320
  position: "fixed",
290
321
  mb: "sm",
291
322
  width: "400px",
@@ -60,6 +60,8 @@ export function useListLayout(state) {
60
60
  * view, or edit items in this list. This virtualized component supports
61
61
  * asynchronous data in infinitely scrollable lists.
62
62
  *
63
+ * Can be used as in recipe: https://uilibrary.ping-eng.com/astro/?path=/docs/recipes-list-with-panel--default
64
+ *
63
65
  * NOTE: be careful with putting focusable elements inside ListView.
64
66
  * It is using a grid (useList hook) with its own event listeners under the hood.
65
67
  * [react-specttrum-github-issue](https://github.com/adobe/react-spectrum/issues/2801)
@@ -7,7 +7,8 @@ import AccountIcon from 'mdi-react/AccountIcon';
7
7
  import CloseIcon from 'mdi-react/CloseIcon';
8
8
  import MoreVertIcon from 'mdi-react/MoreVertIcon';
9
9
  import PencilIcon from 'mdi-react/PencilIcon';
10
- import { Avatar, Box, Icon, IconButton, ListView, Menu, OverlayPanel, PopoverMenu, SearchField, Separator, SwitchField, Tab, Tabs, Text } from '../index';
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
12
  import { useOverlayPanelState } from '../hooks';
12
13
  import { pingImg } from '../utils/devUtils/constants/images';
13
14
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -228,6 +229,8 @@ export var Default = function Default() {
228
229
  onPanelClose = _useOverlayPanelState.onClose;
229
230
 
230
231
  var panelTriggerRef = useRef();
232
+ var heading = 'Title of the Page';
233
+ 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.';
231
234
 
232
235
  var closePanelHandler = function closePanelHandler() {
233
236
  onPanelClose(panelState, panelTriggerRef);
@@ -249,7 +252,34 @@ export var Default = function Default() {
249
252
 
250
253
  return ___EmotionJSX(Box, {
251
254
  sx: sx.wrapper
252
- }, ___EmotionJSX(SearchField, {
255
+ }, ___EmotionJSX(Box, {
256
+ mb: "md"
257
+ }, ___EmotionJSX(Box, {
258
+ align: "center",
259
+ isRow: true,
260
+ mb: "xs",
261
+ role: "heading",
262
+ "aria-level": "1"
263
+ }, ___EmotionJSX(Text, {
264
+ variant: "title",
265
+ fontWeight: 3
266
+ }, heading), ___EmotionJSX(IconButton, {
267
+ "aria-label": "icon button",
268
+ ml: "sm",
269
+ mt: "3px",
270
+ variant: "inverted"
271
+ }, ___EmotionJSX(Icon, {
272
+ icon: PlusIcon,
273
+ color: "white",
274
+ size: 13
275
+ }))), ___EmotionJSX(Text, {
276
+ variant: "bodyWeak"
277
+ }, description, ___EmotionJSX(Link, {
278
+ href: "https://uilibrary.ping-eng.com/",
279
+ sx: {
280
+ fontSize: '13px'
281
+ }
282
+ }, " Learn more"))), ___EmotionJSX(SearchField, {
253
283
  position: "fixed",
254
284
  mb: "sm",
255
285
  width: "400px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.31.0-alpha.0",
3
+ "version": "1.31.0-alpha.1",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",