@pingux/astro 1.27.0-alpha.12 → 1.27.0-alpha.14

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.
@@ -7,39 +7,35 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
  export default {
8
8
  title: 'Recipes/Selected Field Overlay'
9
9
  };
10
- var sx = {
11
- container: {
12
- padding: 'md',
13
- position: 'relative',
14
- borderWidth: 2,
15
- borderStyle: 'solid',
16
- borderColor: 'active',
17
- borderRadius: 4,
18
- cursor: 'pointer'
19
- },
20
- overlay: {
21
- position: 'absolute',
22
- width: '100%',
23
- height: '100%',
24
- top: 0,
25
- left: 0,
26
- alignItems: 'center',
27
- justifyContent: 'center',
28
- '&:focus': {
29
- outline: 'none'
30
- }
31
- }
32
- };
33
10
  export var Default = function Default() {
34
11
  return ___EmotionJSX(Box, {
35
- sx: sx.container
12
+ p: 15,
13
+ sx: {
14
+ position: 'relative',
15
+ borderWidth: 2,
16
+ borderStyle: 'solid',
17
+ borderColor: 'active',
18
+ borderRadius: 4,
19
+ cursor: 'pointer'
20
+ }
36
21
  }, ___EmotionJSX(TextField, {
37
22
  label: "Name",
38
23
  controlProps: {
39
24
  tabIndex: '-1'
40
25
  }
41
26
  }), ___EmotionJSX(Box, {
42
- sx: sx.overlay,
27
+ sx: {
28
+ position: 'absolute',
29
+ width: '100%',
30
+ height: '100%',
31
+ top: 0,
32
+ left: 0,
33
+ alignItems: 'center',
34
+ justifyContent: 'center',
35
+ '&:focus': {
36
+ outline: 'none'
37
+ }
38
+ },
43
39
  tabIndex: "0"
44
40
  }, ___EmotionJSX(Icon, {
45
41
  icon: VisibilityOffOutlineIcon,
@@ -104,79 +104,6 @@ var data = [{
104
104
  title: 'View a workflow'
105
105
  }]
106
106
  }];
107
- var sx = {
108
- iconContainer: {
109
- backgroundColor: 'accent.80',
110
- alignItems: 'center',
111
- justifyContent: 'center',
112
- mr: 'sm',
113
- borderRadius: '50%',
114
- zIndex: 3
115
- },
116
- headingSeparator: {
117
- flexGrow: 1,
118
- backgroundColor: 'accent.80',
119
- maxHeight: '100%',
120
- width: '6px !important',
121
- zIndex: 2,
122
- m: '0px 5px 0px 17px !important'
123
- },
124
- title: {
125
- fontSize: 'md',
126
- color: 'accent.30',
127
- lineHeight: '18px',
128
- fontWeight: '3',
129
- m: '12px 0px 28px 5px',
130
- maxWidth: '195px'
131
- },
132
- linkRowIconButton: {
133
- '&.is-pressed': {
134
- backgroundColor: 'transparent'
135
- },
136
- '&.is-pressed > svg > path': {
137
- fill: 'accent.30'
138
- },
139
- '&.is-hovered': {
140
- backgroundColor: 'transparent'
141
- }
142
- },
143
- linkRowIconSelected: {
144
- zIndex: 3,
145
- 'path': {
146
- fill: 'accent.30'
147
- }
148
- },
149
- linkRowIconNotSelected: {
150
- zIndex: 3,
151
- 'path': {
152
- fill: 'accent.80'
153
- }
154
- },
155
- linkRowSeparator: {
156
- flexGrow: 1,
157
- backgroundColor: 'accent.30',
158
- maxHeight: '100%',
159
- width: '1px !important',
160
- zIndex: 2,
161
- m: '-5px 5px -5px 11.5px !important'
162
- },
163
- linkRowText: {
164
- fontSize: 'md',
165
- color: '#163CE3',
166
- lineHeight: '18px',
167
- fontWeight: '0',
168
- m: '3px 0px 20px 10px',
169
- maxWidth: '140px'
170
- },
171
- container: {
172
- p: '15px 15px 0px 15px',
173
- width: '280px',
174
- backgroundColor: 'accent.95',
175
- borderRadius: '8px',
176
- zIndex: 1,
177
- boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
178
- }
179
- };
180
107
 
181
108
  var Stage = function Stage(props) {
182
109
  var title = props.title,
@@ -212,7 +139,14 @@ var Stage = function Stage(props) {
212
139
  }, ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
213
140
  minWidth: "39.5px",
214
141
  minHeight: "39.5px",
215
- sx: sx.iconContainer
142
+ sx: {
143
+ backgroundColor: 'accent.80',
144
+ alignItems: 'center',
145
+ justifyContent: 'center',
146
+ mr: '10px',
147
+ borderRadius: '50%',
148
+ zIndex: 3
149
+ }
216
150
  }, ___EmotionJSX(Icon, {
217
151
  icon: icon,
218
152
  color: "accent.40",
@@ -221,10 +155,24 @@ var Stage = function Stage(props) {
221
155
  zIndex: 3
222
156
  }
223
157
  })), !isLastStage && ___EmotionJSX(Separator, {
224
- sx: sx.headingSeparator,
158
+ sx: {
159
+ flexGrow: 1,
160
+ backgroundColor: 'accent.80',
161
+ maxHeight: '100%',
162
+ width: '6px !important',
163
+ zIndex: 2,
164
+ m: '0px 5px 0px 17px !important'
165
+ },
225
166
  orientation: "vertical"
226
167
  })), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
227
- sx: sx.title
168
+ sx: {
169
+ fontSize: '15px',
170
+ color: 'accent.30',
171
+ lineHeight: '18px',
172
+ fontWeight: '3',
173
+ m: '12px 0px 28px 5px',
174
+ maxWidth: '195px'
175
+ }
228
176
  }, title), ___EmotionJSX(Box, {
229
177
  pl: "0px",
230
178
  mb: "25px"
@@ -265,19 +213,53 @@ var LinkRow = function LinkRow(props) {
265
213
  }
266
214
  }, ___EmotionJSX(IconButton, {
267
215
  onPress: onIconPress,
268
- sx: sx.linkRowIconButton,
216
+ sx: {
217
+ '&.is-pressed': {
218
+ backgroundColor: 'transparent'
219
+ },
220
+ '&.is-pressed > svg > path': {
221
+ fill: 'accent.30'
222
+ },
223
+ '&.is-hovered': {
224
+ backgroundColor: 'transparent'
225
+ }
226
+ },
269
227
  "aria-label": "completed step icon indicator"
270
228
  }, ___EmotionJSX(Icon, {
271
229
  icon: isSelected ? CheckCircleIcon : RadioButtonIcon,
272
230
  size: isSelected ? '20px' : '18px',
273
- sx: isSelected ? sx.linkRowIconButton : sx.linkRowIconNotSelected
231
+ sx: isSelected ? {
232
+ zIndex: 3,
233
+ 'path': {
234
+ fill: 'accent.30'
235
+ }
236
+ } : {
237
+ zIndex: 3,
238
+ 'path': {
239
+ fill: 'accent.80'
240
+ }
241
+ }
274
242
  }))), !isLastLink && isLinkSelected && ___EmotionJSX(Separator, {
275
- sx: sx.linkRowSeparator,
243
+ sx: {
244
+ flexGrow: 1,
245
+ backgroundColor: 'accent.30',
246
+ maxHeight: '100%',
247
+ width: '1px !important',
248
+ zIndex: 2,
249
+ m: '-5px 5px -5px 11.5px !important'
250
+ },
276
251
  orientation: "vertical"
277
252
  })), ___EmotionJSX(Box, null, ___EmotionJSX(Link, {
278
253
  href: "https://www.pingidentity.com",
279
254
  target: "_blank",
280
- sx: sx.linkRowText
255
+ sx: {
256
+ fontSize: '15px',
257
+ color: '#163CE3',
258
+ lineHeight: '18px',
259
+ fontWeight: '0',
260
+ m: '3px 0px 20px 10px',
261
+ maxWidth: '140px'
262
+ }
281
263
  }, title)));
282
264
  };
283
265
 
@@ -285,7 +267,16 @@ export var Default = function Default() {
285
267
  // Open the `Story` addons tab to view the source code for full context.
286
268
  return ___EmotionJSX(Box, {
287
269
  as: "nav",
288
- sx: sx.container
270
+ backgroundColor: "accent.95",
271
+ width: "280px",
272
+ sx: {
273
+ p: '15px 15px 0px 15px',
274
+ width: '280px',
275
+ backgroundColor: 'accent.95',
276
+ borderRadius: '8px',
277
+ zIndex: 1,
278
+ boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
279
+ }
289
280
  }, ___EmotionJSX(Box, {
290
281
  paddingLeft: "0px"
291
282
  }, _mapInstanceProperty(data).call(data, function (stage, index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.27.0-alpha.12",
3
+ "version": "1.27.0-alpha.14",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "ux-development@pingidentity.com",
6
6
  "license": "Apache-2.0",
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
-
11
- exports["default"] = exports.Default = void 0;
12
-
13
- var _react = _interopRequireDefault(require("react"));
14
-
15
- var _PlusIcon = _interopRequireDefault(require("mdi-react/PlusIcon"));
16
-
17
- var _index = require("../index");
18
-
19
- var _react2 = require("@emotion/react");
20
-
21
- var _default = {
22
- title: 'Recipes/Page Header'
23
- };
24
- exports["default"] = _default;
25
-
26
- var Default = function Default() {
27
- var heading = 'Title of the Page';
28
- 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.';
29
- return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
30
- align: "center",
31
- isRow: true,
32
- mb: "xs",
33
- role: "heading",
34
- "aria-level": "1"
35
- }, (0, _react2.jsx)(_index.Text, {
36
- variant: "title",
37
- fontWeight: 3
38
- }, heading), (0, _react2.jsx)(_index.Button, {
39
- variant: "inlinePrimary",
40
- ml: "sm"
41
- }, (0, _react2.jsx)(_index.Icon, {
42
- icon: _PlusIcon["default"],
43
- color: "white",
44
- size: 13,
45
- mr: "4px"
46
- }), "\xA0", "Add")), (0, _react2.jsx)(_index.Text, {
47
- variant: "bodyWeak"
48
- }, description)), (0, _react2.jsx)(_index.Box, {
49
- mt: "xl"
50
- }, (0, _react2.jsx)(_index.Box, {
51
- align: "center",
52
- isRow: true,
53
- mb: "xs",
54
- role: "heading",
55
- "aria-level": "1"
56
- }, (0, _react2.jsx)(_index.Text, {
57
- variant: "title",
58
- fontWeight: 3
59
- }, heading), (0, _react2.jsx)(_index.IconButton, {
60
- "aria-label": "icon button",
61
- ml: "sm",
62
- mt: "3px",
63
- variant: "inverted"
64
- }, (0, _react2.jsx)(_index.Icon, {
65
- icon: _PlusIcon["default"],
66
- color: "white",
67
- size: 13
68
- }))), (0, _react2.jsx)(_index.Text, {
69
- variant: "bodyWeak"
70
- }, description)));
71
- };
72
-
73
- exports.Default = Default;
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import PlusIcon from 'mdi-react/PlusIcon';
3
- import { Box, Button, IconButton, Icon, Text } from '../index';
4
- import { jsx as ___EmotionJSX } from "@emotion/react";
5
- export default {
6
- title: 'Recipes/Page Header'
7
- };
8
- export var Default = function Default() {
9
- var heading = 'Title of the Page';
10
- 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.';
11
- return ___EmotionJSX(Box, null, ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
12
- align: "center",
13
- isRow: true,
14
- mb: "xs",
15
- role: "heading",
16
- "aria-level": "1"
17
- }, ___EmotionJSX(Text, {
18
- variant: "title",
19
- fontWeight: 3
20
- }, heading), ___EmotionJSX(Button, {
21
- variant: "inlinePrimary",
22
- ml: "sm"
23
- }, ___EmotionJSX(Icon, {
24
- icon: PlusIcon,
25
- color: "white",
26
- size: 13,
27
- mr: "4px"
28
- }), "\xA0", "Add")), ___EmotionJSX(Text, {
29
- variant: "bodyWeak"
30
- }, description)), ___EmotionJSX(Box, {
31
- mt: "xl"
32
- }, ___EmotionJSX(Box, {
33
- align: "center",
34
- isRow: true,
35
- mb: "xs",
36
- role: "heading",
37
- "aria-level": "1"
38
- }, ___EmotionJSX(Text, {
39
- variant: "title",
40
- fontWeight: 3
41
- }, heading), ___EmotionJSX(IconButton, {
42
- "aria-label": "icon button",
43
- ml: "sm",
44
- mt: "3px",
45
- variant: "inverted"
46
- }, ___EmotionJSX(Icon, {
47
- icon: PlusIcon,
48
- color: "white",
49
- size: 13
50
- }))), ___EmotionJSX(Text, {
51
- variant: "bodyWeak"
52
- }, description)));
53
- };