@pingux/astro 2.61.0-alpha.0 → 2.61.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.
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ decorators: ((...args: any) => any)[];
5
+ };
6
+ export default _default;
7
+ export declare const Default: {
8
+ (): React.JSX.Element;
9
+ parameters: {
10
+ design: {
11
+ type: string;
12
+ url: string;
13
+ };
14
+ };
15
+ };
16
+ export declare const PageLevel: () => React.JSX.Element;
17
+ export declare const RateLimit429: () => React.JSX.Element;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
+ _Object$defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.RateLimit429 = exports.PageLevel = exports.Default = void 0;
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _AlertCircleIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertCircleIcon"));
11
+ var _LockIcon = _interopRequireDefault(require("@pingux/mdi-react/LockIcon"));
12
+ var _storybookAddonDesigns = require("storybook-addon-designs");
13
+ var _index = require("../index");
14
+ var _figmaLinks = require("../utils/designUtils/figmaLinks");
15
+ var _react2 = require("@emotion/react");
16
+ var _default = {
17
+ title: 'Recipes/No Access',
18
+ decorators: [_storybookAddonDesigns.withDesign]
19
+ };
20
+ exports["default"] = _default;
21
+ var Default = function Default() {
22
+ return (0, _react2.jsx)(_index.Box, {
23
+ isRow: true,
24
+ gap: "xs"
25
+ }, (0, _react2.jsx)(_index.Icon, {
26
+ icon: _LockIcon["default"],
27
+ color: "text.secondary",
28
+ size: "xs",
29
+ title: {
30
+ name: 'Lock Icon'
31
+ }
32
+ }), (0, _react2.jsx)(_index.Text, {
33
+ color: "text.secondary",
34
+ fontSize: "sm",
35
+ fontWeight: 1
36
+ }, "No access"));
37
+ };
38
+ exports.Default = Default;
39
+ var PageLevel = function PageLevel() {
40
+ return (0, _react2.jsx)(_index.Box, {
41
+ gap: "sm",
42
+ alignItems: "center"
43
+ }, (0, _react2.jsx)(_index.Icon, {
44
+ icon: _LockIcon["default"],
45
+ color: "text.secondary",
46
+ size: 50,
47
+ title: {
48
+ name: 'Lock Icon'
49
+ }
50
+ }), (0, _react2.jsx)(_index.Text, {
51
+ color: "text.secondary",
52
+ fontSize: "lg",
53
+ fontWeight: 1
54
+ }, "No access"));
55
+ };
56
+ exports.PageLevel = PageLevel;
57
+ var RateLimit429 = function RateLimit429() {
58
+ return (0, _react2.jsx)(_index.Box, {
59
+ gap: "sm",
60
+ alignItems: "center"
61
+ }, (0, _react2.jsx)(_index.Icon, {
62
+ icon: _AlertCircleIcon["default"],
63
+ color: "text.secondary",
64
+ size: 50,
65
+ title: {
66
+ name: 'Alert Circle Icon'
67
+ }
68
+ }), (0, _react2.jsx)(_index.Text, {
69
+ color: "text.secondary",
70
+ fontSize: "lg",
71
+ fontWeight: 1
72
+ }, "There was a problem loading this page.", ' ', (0, _react2.jsx)(_index.Link, {
73
+ href: "https://a.url.com"
74
+ }, "Reload")));
75
+ };
76
+ exports.RateLimit429 = RateLimit429;
77
+ Default.parameters = {
78
+ design: {
79
+ type: 'figma',
80
+ url: _figmaLinks.FIGMA_LINKS.noAccess["default"]
81
+ }
82
+ };
@@ -163,4 +163,7 @@ export declare const FIGMA_LINKS: {
163
163
  listAndPanel: {
164
164
  listAndPanel: string;
165
165
  };
166
+ noAccess: {
167
+ default: string;
168
+ };
166
169
  };
@@ -169,6 +169,9 @@ var FIGMA_LINKS = {
169
169
  },
170
170
  listAndPanel: {
171
171
  listAndPanel: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=15251-33924'
172
+ },
173
+ noAccess: {
174
+ "default": 'https://www.figma.com/file/S1tRCG90PVgCJRCyDwxkBk/429-Error?type=design&node-id=9-940&mode=design&t=Z6pZWCsrvY0g6b2q-0'
172
175
  }
173
176
  };
174
177
  exports.FIGMA_LINKS = FIGMA_LINKS;
@@ -0,0 +1,70 @@
1
+ import React from 'react';
2
+ import AlertCircle from '@pingux/mdi-react/AlertCircleIcon';
3
+ import LockIcon from '@pingux/mdi-react/LockIcon';
4
+ import { withDesign } from 'storybook-addon-designs';
5
+ import { Box, Icon, Link, Text } from '../index';
6
+ import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks';
7
+ import { jsx as ___EmotionJSX } from "@emotion/react";
8
+ export default {
9
+ title: 'Recipes/No Access',
10
+ decorators: [withDesign]
11
+ };
12
+ export var Default = function Default() {
13
+ return ___EmotionJSX(Box, {
14
+ isRow: true,
15
+ gap: "xs"
16
+ }, ___EmotionJSX(Icon, {
17
+ icon: LockIcon,
18
+ color: "text.secondary",
19
+ size: "xs",
20
+ title: {
21
+ name: 'Lock Icon'
22
+ }
23
+ }), ___EmotionJSX(Text, {
24
+ color: "text.secondary",
25
+ fontSize: "sm",
26
+ fontWeight: 1
27
+ }, "No access"));
28
+ };
29
+ export var PageLevel = function PageLevel() {
30
+ return ___EmotionJSX(Box, {
31
+ gap: "sm",
32
+ alignItems: "center"
33
+ }, ___EmotionJSX(Icon, {
34
+ icon: LockIcon,
35
+ color: "text.secondary",
36
+ size: 50,
37
+ title: {
38
+ name: 'Lock Icon'
39
+ }
40
+ }), ___EmotionJSX(Text, {
41
+ color: "text.secondary",
42
+ fontSize: "lg",
43
+ fontWeight: 1
44
+ }, "No access"));
45
+ };
46
+ export var RateLimit429 = function RateLimit429() {
47
+ return ___EmotionJSX(Box, {
48
+ gap: "sm",
49
+ alignItems: "center"
50
+ }, ___EmotionJSX(Icon, {
51
+ icon: AlertCircle,
52
+ color: "text.secondary",
53
+ size: 50,
54
+ title: {
55
+ name: 'Alert Circle Icon'
56
+ }
57
+ }), ___EmotionJSX(Text, {
58
+ color: "text.secondary",
59
+ fontSize: "lg",
60
+ fontWeight: 1
61
+ }, "There was a problem loading this page.", ' ', ___EmotionJSX(Link, {
62
+ href: "https://a.url.com"
63
+ }, "Reload")));
64
+ };
65
+ Default.parameters = {
66
+ design: {
67
+ type: 'figma',
68
+ url: FIGMA_LINKS.noAccess["default"]
69
+ }
70
+ };
@@ -162,5 +162,8 @@ export var FIGMA_LINKS = {
162
162
  },
163
163
  listAndPanel: {
164
164
  listAndPanel: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=15251-33924'
165
+ },
166
+ noAccess: {
167
+ "default": 'https://www.figma.com/file/S1tRCG90PVgCJRCyDwxkBk/429-Error?type=design&node-id=9-940&mode=design&t=Z6pZWCsrvY0g6b2q-0'
165
168
  }
166
169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.61.0-alpha.0",
3
+ "version": "2.61.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",