@pingux/astro 2.105.0 → 2.106.0-alpha.0
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.
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.d.ts +1 -1
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +145 -335
- package/lib/cjs/components/Text/Text.styles.d.ts +6 -0
- package/lib/cjs/components/Text/Text.styles.js +2 -2
- package/lib/cjs/styles/themeOverrides/stories/OverlayPanel.chromatic.stories.d.ts +7 -0
- package/lib/cjs/styles/themeOverrides/stories/OverlayPanel.chromatic.stories.js +68 -0
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +143 -333
- package/lib/components/Text/Text.styles.js +2 -2
- package/lib/styles/themeOverrides/stories/OverlayPanel.chromatic.stories.js +53 -0
- package/lib/utils/designUtils/figmaLinks.js +3 -0
- package/package.json +1 -1
@@ -0,0 +1,68 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
4
|
+
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
7
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
8
|
+
_Object$defineProperty(exports, "__esModule", {
|
9
|
+
value: true
|
10
|
+
});
|
11
|
+
exports["default"] = exports.Default = void 0;
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
13
|
+
var _AccountIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountIcon"));
|
14
|
+
var _hooks = require("../../../hooks");
|
15
|
+
var _index = require("../../../index");
|
16
|
+
var _react2 = require("@emotion/react");
|
17
|
+
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); }
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
19
|
+
var _default = {
|
20
|
+
title: 'Chromatic Only OverlayPanel',
|
21
|
+
component: _index.OverlayPanel
|
22
|
+
};
|
23
|
+
exports["default"] = _default;
|
24
|
+
var Default = function Default() {
|
25
|
+
var _useOverlayPanelState = (0, _hooks.useOverlayPanelState)({
|
26
|
+
isDefaultOpen: true
|
27
|
+
}),
|
28
|
+
state = _useOverlayPanelState.state,
|
29
|
+
onClose = _useOverlayPanelState.onClose;
|
30
|
+
var triggerRef = (0, _react.useRef)(null);
|
31
|
+
return (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Box, {
|
32
|
+
sx: {
|
33
|
+
gap: '25px'
|
34
|
+
}
|
35
|
+
}, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Button, {
|
36
|
+
ref: triggerRef,
|
37
|
+
onPress: state.open,
|
38
|
+
"aria-expanded": state.isOpen,
|
39
|
+
sx: {
|
40
|
+
maxWidth: 'fit-content'
|
41
|
+
}
|
42
|
+
}, "Open Panel"), (0, _react2.jsx)(_index.OverlayPanel, {
|
43
|
+
isOpen: true,
|
44
|
+
isTransitioning: state.isTransitioning,
|
45
|
+
state: state,
|
46
|
+
triggerRef: triggerRef,
|
47
|
+
sx: {
|
48
|
+
p: 0
|
49
|
+
}
|
50
|
+
}, (0, _react2.jsx)(_index.PanelHeader, {
|
51
|
+
data: {
|
52
|
+
icon: _AccountIcon["default"],
|
53
|
+
text: 'Fons Vernall',
|
54
|
+
subtext: 'rad_developer@pingidentity.com'
|
55
|
+
}
|
56
|
+
}, (0, _react2.jsx)(_index.PanelHeaderCloseButton, {
|
57
|
+
onPress: function onPress() {
|
58
|
+
onClose(state, triggerRef);
|
59
|
+
}
|
60
|
+
})), (0, _react2.jsx)(_index.Box, {
|
61
|
+
sx: {
|
62
|
+
p: 25
|
63
|
+
}
|
64
|
+
}, (0, _react2.jsx)(_index.Text, {
|
65
|
+
pt: "md"
|
66
|
+
}, "Children render here.")))));
|
67
|
+
};
|
68
|
+
exports.Default = Default;
|
@@ -155,6 +155,9 @@ var FIGMA_LINKS = {
|
|
155
155
|
OnewayToBidirectionalArrow: {
|
156
156
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=43504-1214&mode=design&t=R4kdj0liRHxsqbV5-0'
|
157
157
|
},
|
158
|
+
overlayPanel: {
|
159
|
+
"default": 'https://www.figma.com/proto/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58765-3123&t=qSq8hhXsmFeytcZL-1'
|
160
|
+
},
|
158
161
|
panelContent: {
|
159
162
|
displayPanel: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43431%3A4249&mode=dev',
|
160
163
|
editPanel: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=5013%3A15377&mode=dev'
|
@@ -1,20 +1,15 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty";
|
3
3
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { Item } from 'react-stately';
|
4
|
+
import React, { useRef, useState } from 'react';
|
5
|
+
import AccountIcon from '@pingux/mdi-react/AccountIcon';
|
7
6
|
import ArrowCollapse from '@pingux/mdi-react/ArrowCollapseIcon';
|
8
7
|
import ArrowTopRightBottomLeft from '@pingux/mdi-react/ArrowTopRightBottomLeftIcon';
|
9
|
-
import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
|
10
|
-
import CloseIcon from '@pingux/mdi-react/CloseIcon';
|
11
|
-
import CogIcon from '@pingux/mdi-react/CogIcon';
|
12
8
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
13
9
|
import { useOverlayPanelState } from '../../hooks';
|
14
|
-
import {
|
15
|
-
import {
|
10
|
+
import { Box, Button, IconButton, OverlayPanel, OverlayProvider, PanelHeader, PanelHeaderCloseButton, Text } from '../../index';
|
11
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
16
12
|
import { panelSizes } from '../../utils/devUtils/constants/panelSizes';
|
17
|
-
import statuses from '../../utils/devUtils/constants/statuses';
|
18
13
|
import OverlayPanelReadme from './OverlayPanel.mdx';
|
19
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
20
15
|
export default {
|
@@ -58,60 +53,53 @@ export var Default = function Default(_ref) {
|
|
58
53
|
return (
|
59
54
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
60
55
|
// readers when an overlay is open.
|
61
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(
|
56
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Box, {
|
57
|
+
sx: {
|
58
|
+
gap: '25px'
|
59
|
+
}
|
60
|
+
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."), ___EmotionJSX(Button, {
|
62
61
|
ref: triggerRef,
|
63
62
|
onPress: state.open,
|
64
|
-
"aria-expanded": state.isOpen
|
63
|
+
"aria-expanded": state.isOpen,
|
64
|
+
sx: {
|
65
|
+
maxWidth: 'fit-content'
|
66
|
+
}
|
65
67
|
}, "Open Panel"), (state.isOpen || state.isTransitioning) && ___EmotionJSX(OverlayPanel, _extends({
|
66
68
|
isOpen: state.isOpen,
|
67
69
|
isTransitioning: state.isTransitioning,
|
68
70
|
state: state
|
69
71
|
}, args, {
|
70
|
-
triggerRef: triggerRef
|
71
|
-
}), ___EmotionJSX(Box, null, ___EmotionJSX(Button, {
|
72
|
-
onPress: function onPress() {
|
73
|
-
onClose(state, triggerRef);
|
74
|
-
},
|
75
|
-
"aria-expanded": state.isOpen
|
76
|
-
}, "Close Panel"), ___EmotionJSX(Text, {
|
77
|
-
pt: "md"
|
78
|
-
}, "Children render here."))))
|
79
|
-
);
|
80
|
-
};
|
81
|
-
export var CustomWidth = function CustomWidth() {
|
82
|
-
var _useOverlayPanelState2 = useOverlayPanelState(),
|
83
|
-
state = _useOverlayPanelState2.state,
|
84
|
-
onClose = _useOverlayPanelState2.onClose;
|
85
|
-
var triggerRef = useRef(null);
|
86
|
-
return (
|
87
|
-
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
88
|
-
// readers when an overlay opens.
|
89
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."), ___EmotionJSX("br", null), ___EmotionJSX(Button, {
|
90
|
-
ref: triggerRef,
|
91
|
-
onPress: state.open,
|
92
|
-
"aria-expanded": state.isOpen
|
93
|
-
}, "Open Panel"), (state.isOpen || state.isTransitioning) && ___EmotionJSX(OverlayPanel, {
|
94
|
-
isTransitioning: state.isTransitioning,
|
95
|
-
isOpen: state.isOpen,
|
96
|
-
state: state,
|
97
72
|
triggerRef: triggerRef,
|
98
73
|
sx: {
|
99
|
-
|
74
|
+
p: 0
|
100
75
|
}
|
101
|
-
}, ___EmotionJSX(
|
76
|
+
}), ___EmotionJSX(PanelHeader, {
|
77
|
+
data: {
|
78
|
+
icon: AccountIcon,
|
79
|
+
text: 'Fons Vernall',
|
80
|
+
subtext: 'rad_developer@pingidentity.com'
|
81
|
+
}
|
82
|
+
}, ___EmotionJSX(PanelHeaderCloseButton, {
|
102
83
|
onPress: function onPress() {
|
103
84
|
onClose(state, triggerRef);
|
104
|
-
}
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
85
|
+
}
|
86
|
+
})), ___EmotionJSX(Box, {
|
87
|
+
sx: {
|
88
|
+
p: 25
|
89
|
+
}
|
90
|
+
}, ___EmotionJSX(Text, null, "Children render here.")))))
|
109
91
|
);
|
110
92
|
};
|
93
|
+
Default.parameters = {
|
94
|
+
design: {
|
95
|
+
type: 'figma',
|
96
|
+
url: FIGMA_LINKS.overlayPanel["default"]
|
97
|
+
}
|
98
|
+
};
|
111
99
|
export var Expandable = function Expandable() {
|
112
|
-
var
|
113
|
-
state =
|
114
|
-
onClose =
|
100
|
+
var _useOverlayPanelState2 = useOverlayPanelState(),
|
101
|
+
state = _useOverlayPanelState2.state,
|
102
|
+
onClose = _useOverlayPanelState2.onClose;
|
115
103
|
var triggerRef = useRef(null);
|
116
104
|
var _useState = useState(false),
|
117
105
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -121,229 +109,26 @@ export var Expandable = function Expandable() {
|
|
121
109
|
overlayPanel: {
|
122
110
|
padding: 0,
|
123
111
|
transition: 'width 500ms, right 500ms'
|
124
|
-
},
|
125
|
-
header: {
|
126
|
-
height: '110px',
|
127
|
-
bg: '#F7F8FD',
|
128
|
-
infoAndButtonsContainer: {
|
129
|
-
justifyContent: 'space-between',
|
130
|
-
padding: '20px 20px 0 20px'
|
131
|
-
},
|
132
|
-
pingOneAuthorizeContainer: {
|
133
|
-
gap: '18px',
|
134
|
-
alignItems: 'center',
|
135
|
-
width: 'fit-content'
|
136
|
-
},
|
137
|
-
breadcrumbsContainer: {
|
138
|
-
marginLeft: '78px',
|
139
|
-
fontSize: 'md',
|
140
|
-
fontWeight: 500
|
141
|
-
}
|
142
|
-
},
|
143
|
-
contentContainer: {
|
144
|
-
padding: '15px 25px 0 25px'
|
145
|
-
},
|
146
|
-
tabs: {
|
147
|
-
justifyContent: 'center'
|
148
|
-
},
|
149
|
-
tabPanel: {
|
150
|
-
height: 'calc(100vh - 255px)',
|
151
|
-
overflow: 'scroll'
|
152
|
-
},
|
153
|
-
switchField: {
|
154
|
-
rowGap: 'xs',
|
155
|
-
display: 'grid !important',
|
156
|
-
gridTemplateColumns: 'max-content auto',
|
157
|
-
fontSize: 'sm',
|
158
|
-
fontWeight: 500,
|
159
|
-
color: 'text.secondary',
|
160
|
-
'& > div:first-child': {
|
161
|
-
order: 2
|
162
|
-
}
|
163
|
-
},
|
164
|
-
colorField: {
|
165
|
-
width: '30px',
|
166
|
-
height: '20px'
|
167
|
-
},
|
168
|
-
tabContent: {
|
169
|
-
gap: 'md',
|
170
|
-
width: isExpanded ? '100%' : '400px',
|
171
|
-
transition: 'width 500ms'
|
172
112
|
}
|
173
113
|
};
|
174
|
-
var
|
175
|
-
|
176
|
-
|
177
|
-
key: 'node1'
|
178
|
-
}, {
|
179
|
-
id: 2,
|
180
|
-
name: 'node 2',
|
181
|
-
key: 'node2'
|
182
|
-
}];
|
183
|
-
var onCloseHandler = function onCloseHandler() {
|
184
|
-
return onClose(state, triggerRef);
|
114
|
+
var onCloseFunction = function onCloseFunction() {
|
115
|
+
onClose(state, triggerRef);
|
116
|
+
setIsExpanded(false);
|
185
117
|
};
|
186
|
-
var _useState3 = useState('#EACE91'),
|
187
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
188
|
-
color = _useState4[0],
|
189
|
-
setColor = _useState4[1];
|
190
|
-
var handleColorChange = useCallback(function (colorVal) {
|
191
|
-
if (typeof colorVal === 'string') {
|
192
|
-
setColor(colorVal);
|
193
|
-
} else if (colorVal.rgb) {
|
194
|
-
var _context, _context2, _context3;
|
195
|
-
var rgb = colorVal.rgb;
|
196
|
-
var r = rgb.r,
|
197
|
-
b = rgb.b,
|
198
|
-
g = rgb.g,
|
199
|
-
a = rgb.a;
|
200
|
-
setColor(_concatInstanceProperty(_context = _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = "rgba(".concat(r, ", ")).call(_context3, g, ", ")).call(_context2, b, ", ")).call(_context, a, ")"));
|
201
|
-
}
|
202
|
-
}, []);
|
203
|
-
var header = ___EmotionJSX(Box, {
|
204
|
-
sx: sx.header
|
205
|
-
}, ___EmotionJSX(Box, {
|
206
|
-
isRow: true,
|
207
|
-
sx: sx.header.infoAndButtonsContainer
|
208
|
-
}, ___EmotionJSX(Box, {
|
209
|
-
isRow: true,
|
210
|
-
sx: sx.header.pingOneAuthorizeContainer
|
211
|
-
}, ___EmotionJSX(Avatar, {
|
212
|
-
src: pingImg,
|
213
|
-
sx: {
|
214
|
-
width: '40px',
|
215
|
-
height: '40px'
|
216
|
-
}
|
217
|
-
}), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
|
218
|
-
variant: "bodyStrong",
|
219
|
-
fontSize: "md"
|
220
|
-
}, "PingOne Authorize"), ___EmotionJSX(Text, {
|
221
|
-
variant: "subtitle",
|
222
|
-
fontSize: "sm"
|
223
|
-
}, "ID: kcdhaweyf2d"), ___EmotionJSX(Text, {
|
224
|
-
variant: "subtitle",
|
225
|
-
fontSize: "sm"
|
226
|
-
}, "ConnectionID: 234UI3fu4hj4itge35553rj3ty4gyeczcb90"))), ___EmotionJSX(Box, {
|
227
|
-
isRow: true
|
228
|
-
}, ___EmotionJSX(IconButton, {
|
229
|
-
"aria-label": "settings-icon",
|
230
|
-
size: 20
|
231
|
-
}, ___EmotionJSX(CogIcon, null)), ___EmotionJSX(IconButton, {
|
232
|
-
"aria-label": "expand-icon",
|
233
|
-
size: 20,
|
234
|
-
onPress: function onPress() {
|
235
|
-
return setIsExpanded(!isExpanded);
|
236
|
-
}
|
237
|
-
}, isExpanded ? ___EmotionJSX(ArrowCollapse, null) : ___EmotionJSX(ArrowTopRightBottomLeft, null)), ___EmotionJSX(IconButton, {
|
238
|
-
"aria-label": "close-icon",
|
239
|
-
size: 20,
|
240
|
-
onPress: onCloseHandler
|
241
|
-
}, ___EmotionJSX(CloseIcon, null)))), ___EmotionJSX(Box, {
|
242
|
-
sx: sx.header.breadcrumbsContainer
|
243
|
-
}, ___EmotionJSX(Breadcrumbs, {
|
244
|
-
icon: ChevronRightIcon
|
245
|
-
}, ___EmotionJSX(Item, {
|
246
|
-
key: "home",
|
247
|
-
"data-id": "home"
|
248
|
-
}, "Capability"), ___EmotionJSX(Item, {
|
249
|
-
key: "editGroups",
|
250
|
-
variant: "neutralText",
|
251
|
-
"data-id": "editGroups"
|
252
|
-
}, "Make Decision Request"))));
|
253
|
-
var generalTabContent = ___EmotionJSX(Box, {
|
254
|
-
sx: sx.tabContent
|
255
|
-
}, ___EmotionJSX(TextField, {
|
256
|
-
label: "Node Title",
|
257
|
-
defaultValue: "The Value of the Text Input"
|
258
|
-
}), ___EmotionJSX(TextField, {
|
259
|
-
label: "Node Description",
|
260
|
-
defaultValue: "The Value of the Text Input"
|
261
|
-
}), ___EmotionJSX(ColorField, {
|
262
|
-
value: color,
|
263
|
-
label: "Node Background Color",
|
264
|
-
buttonProps: {
|
265
|
-
sx: sx.colorField
|
266
|
-
},
|
267
|
-
onChange: handleColorChange
|
268
|
-
}), ___EmotionJSX(SwitchField, {
|
269
|
-
hintText: "Example Hint",
|
270
|
-
labelProps: {
|
271
|
-
sx: sx.switchField
|
272
|
-
},
|
273
|
-
label: "Expire Authentication Token",
|
274
|
-
value: "expire-authentication-token"
|
275
|
-
}), ___EmotionJSX(SwitchField, {
|
276
|
-
hintText: "Example Hint",
|
277
|
-
labelProps: {
|
278
|
-
sx: sx.switchField
|
279
|
-
},
|
280
|
-
label: "Expire Flow Instance Cache",
|
281
|
-
value: "expire-flow-instance-cache"
|
282
|
-
}), ___EmotionJSX(MultivaluesField, {
|
283
|
-
items: multivaluesFieldItems,
|
284
|
-
label: "Expire Node Instance Cache List",
|
285
|
-
inputProps: {
|
286
|
-
hintText: 'Example Hint'
|
287
|
-
}
|
288
|
-
}, function (item) {
|
289
|
-
return ___EmotionJSX(Item, {
|
290
|
-
key: item.key,
|
291
|
-
"data-id": item.name
|
292
|
-
}, item.name);
|
293
|
-
}));
|
294
|
-
var settingsTabContent = ___EmotionJSX(Box, {
|
295
|
-
sx: sx.tabContent
|
296
|
-
}, ___EmotionJSX(SwitchField, {
|
297
|
-
hintText: "Example Hint",
|
298
|
-
labelProps: {
|
299
|
-
sx: sx.switchField
|
300
|
-
},
|
301
|
-
label: "Expire Authentication Token",
|
302
|
-
value: "expire-authentication-token"
|
303
|
-
}), ___EmotionJSX(SwitchField, {
|
304
|
-
hintText: "Example Hint",
|
305
|
-
labelProps: {
|
306
|
-
sx: sx.switchField
|
307
|
-
},
|
308
|
-
label: "Expire Flow Instance Cache",
|
309
|
-
value: "expire-flow-instance-cache"
|
310
|
-
}), ___EmotionJSX(SwitchField, {
|
311
|
-
hintText: "Example Hint",
|
312
|
-
labelProps: {
|
313
|
-
sx: sx.switchField
|
314
|
-
},
|
315
|
-
label: "Expire Node Instance Cache",
|
316
|
-
value: "expire-node-instance-cache"
|
317
|
-
}));
|
318
|
-
var schemaTabContent = ___EmotionJSX(Box, {
|
319
|
-
sx: sx.tabContent
|
320
|
-
}, ___EmotionJSX(TextField, {
|
321
|
-
hintText: "Example Hint",
|
322
|
-
label: "Log field Title",
|
323
|
-
defaultValue: "The Value of the Text Input"
|
324
|
-
}), ___EmotionJSX(TextField, {
|
325
|
-
hintText: "Example Hint",
|
326
|
-
label: "Log field Description",
|
327
|
-
defaultValue: "The Value of the Text Input"
|
328
|
-
}));
|
329
|
-
var footer = ___EmotionJSX(ButtonBar, {
|
330
|
-
sx: {
|
331
|
-
backgroundColor: 'background.base'
|
332
|
-
}
|
333
|
-
}, ___EmotionJSX(Button, {
|
334
|
-
onPress: onCloseHandler,
|
335
|
-
variant: "primary"
|
336
|
-
}, "Save"), ___EmotionJSX(Button, {
|
337
|
-
onPress: onCloseHandler,
|
338
|
-
variant: "link"
|
339
|
-
}, "Cancel"));
|
340
118
|
return (
|
341
119
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
342
120
|
// readers when an overlay opens.
|
343
|
-
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(
|
121
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Box, {
|
122
|
+
sx: {
|
123
|
+
gap: '25px'
|
124
|
+
}
|
125
|
+
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."), ___EmotionJSX(Button, {
|
344
126
|
ref: triggerRef,
|
345
127
|
onPress: state.open,
|
346
|
-
"aria-expanded": state.isOpen
|
128
|
+
"aria-expanded": state.isOpen,
|
129
|
+
sx: {
|
130
|
+
maxWidth: 'fit-content'
|
131
|
+
}
|
347
132
|
}, "Open Panel"), (state.isOpen || state.isTransitioning) && ___EmotionJSX(OverlayPanel, {
|
348
133
|
isTransitioning: state.isTransitioning,
|
349
134
|
isOpen: state.isOpen,
|
@@ -351,40 +136,39 @@ export var Expandable = function Expandable() {
|
|
351
136
|
triggerRef: triggerRef,
|
352
137
|
sx: sx.overlayPanel,
|
353
138
|
size: isExpanded ? 'full' : 'medium'
|
354
|
-
},
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
139
|
+
}, ___EmotionJSX(PanelHeader, {
|
140
|
+
data: {
|
141
|
+
icon: AccountIcon,
|
142
|
+
text: 'Fons Vernall',
|
143
|
+
subtext: 'rad_developer@pingidentity.com'
|
144
|
+
}
|
145
|
+
}, ___EmotionJSX(IconButton, {
|
146
|
+
"aria-label": "expand-icon",
|
147
|
+
size: 20,
|
148
|
+
onPress: function onPress() {
|
149
|
+
return setIsExpanded(!isExpanded);
|
150
|
+
}
|
151
|
+
}, isExpanded ? ___EmotionJSX(ArrowCollapse, null) : ___EmotionJSX(ArrowTopRightBottomLeft, null)), ___EmotionJSX(PanelHeaderCloseButton, {
|
152
|
+
onPress: function onPress() {
|
153
|
+
onCloseFunction();
|
154
|
+
}
|
155
|
+
})), ___EmotionJSX(Box, {
|
156
|
+
sx: {
|
157
|
+
p: 25
|
158
|
+
}
|
159
|
+
}, ___EmotionJSX(Text, null, "Children render here")))))
|
369
160
|
);
|
370
161
|
};
|
371
162
|
export var InnerPanel = function InnerPanel(_ref2) {
|
372
163
|
var args = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));
|
164
|
+
var _useOverlayPanelState3 = useOverlayPanelState(),
|
165
|
+
state = _useOverlayPanelState3.state,
|
166
|
+
onClose = _useOverlayPanelState3.onClose;
|
373
167
|
var _useOverlayPanelState4 = useOverlayPanelState(),
|
374
|
-
|
375
|
-
|
376
|
-
var _useOverlayPanelState5 = useOverlayPanelState(),
|
377
|
-
innerState = _useOverlayPanelState5.state,
|
378
|
-
onCloseInner = _useOverlayPanelState5.onClose;
|
168
|
+
innerState = _useOverlayPanelState4.state,
|
169
|
+
onCloseInner = _useOverlayPanelState4.onClose;
|
379
170
|
var outerTriggerRef = useRef(null);
|
380
171
|
var innerTriggerRef = useRef(null);
|
381
|
-
var _useState5 = useState(false),
|
382
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
383
|
-
messagesOpen = _useState6[0],
|
384
|
-
setMessagesOpen = _useState6[1];
|
385
|
-
var toggleMessagesOpen = function toggleMessagesOpen() {
|
386
|
-
setMessagesOpen(!messagesOpen);
|
387
|
-
};
|
388
172
|
var closeOuterPanel = function closeOuterPanel() {
|
389
173
|
if (innerState.isOpen) {
|
390
174
|
innerState.close();
|
@@ -403,18 +187,7 @@ export var InnerPanel = function InnerPanel(_ref2) {
|
|
403
187
|
triggerRef: innerTriggerRef
|
404
188
|
}), ___EmotionJSX(Box, null, ___EmotionJSX(Button, {
|
405
189
|
onPress: closeInnerPanel
|
406
|
-
}, "Close Inner Panel")
|
407
|
-
pt: "md"
|
408
|
-
}, "Children render here.")));
|
409
|
-
var items = [{
|
410
|
-
key: 'Form 1',
|
411
|
-
id: 1,
|
412
|
-
name: 'Form 1'
|
413
|
-
}, {
|
414
|
-
key: 'Form 2',
|
415
|
-
id: 2,
|
416
|
-
name: 'Form 2'
|
417
|
-
}];
|
190
|
+
}, "Close Inner Panel")));
|
418
191
|
var outer =
|
419
192
|
// should have higher z-index applied
|
420
193
|
(state.isOpen || state.isTransitioning) && ___EmotionJSX(OverlayPanel, _extends({
|
@@ -426,29 +199,22 @@ export var InnerPanel = function InnerPanel(_ref2) {
|
|
426
199
|
}, args, {
|
427
200
|
state: state,
|
428
201
|
triggerRef: outerTriggerRef
|
429
|
-
}), ___EmotionJSX(
|
202
|
+
}), ___EmotionJSX(PanelHeader, {
|
203
|
+
data: {
|
204
|
+
icon: AccountIcon,
|
205
|
+
text: 'Fons Vernall',
|
206
|
+
subtext: 'rad_developer@pingidentity.com'
|
207
|
+
}
|
208
|
+
}, ___EmotionJSX(PanelHeaderCloseButton, {
|
209
|
+
onPress: function onPress() {
|
210
|
+
closeOuterPanel();
|
211
|
+
}
|
212
|
+
})), ___EmotionJSX(Box, {
|
430
213
|
sx: {
|
431
|
-
p: '
|
214
|
+
p: '25px',
|
215
|
+
gap: '25px'
|
432
216
|
}
|
433
|
-
}, ___EmotionJSX(Button, {
|
434
|
-
onPress: closeOuterPanel,
|
435
|
-
"aria-expanded": state.isOpen
|
436
|
-
}, "Close Panel"), ___EmotionJSX(Text, {
|
437
|
-
pt: "md",
|
438
|
-
mb: "24px"
|
439
|
-
}, "Children render here."), ___EmotionJSX(ListView, {
|
440
|
-
items: items
|
441
|
-
}, function (item) {
|
442
|
-
return ___EmotionJSX(Item, {
|
443
|
-
key: item.id
|
444
|
-
}, ___EmotionJSX(ListViewItem, {
|
445
|
-
data: {
|
446
|
-
text: item.name
|
447
|
-
}
|
448
|
-
}));
|
449
|
-
}), ___EmotionJSX("br", null), ___EmotionJSX(Button, {
|
450
|
-
onPress: toggleMessagesOpen
|
451
|
-
}, "Toggle Messages"), ___EmotionJSX("br", null), ___EmotionJSX(Button, {
|
217
|
+
}, ___EmotionJSX(Text, null, "Children render here."), ___EmotionJSX(Button, {
|
452
218
|
ref: innerTriggerRef,
|
453
219
|
onPress: innerState.open,
|
454
220
|
"aria-expanded": innerState.isOpen
|
@@ -456,18 +222,62 @@ export var InnerPanel = function InnerPanel(_ref2) {
|
|
456
222
|
return (
|
457
223
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
458
224
|
// readers when an overlay opens.
|
459
|
-
___EmotionJSX(
|
225
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Box, {
|
226
|
+
sx: {
|
227
|
+
gap: '25px'
|
228
|
+
}
|
229
|
+
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."), ___EmotionJSX(Button, {
|
460
230
|
ref: outerTriggerRef,
|
461
231
|
onPress: state.open,
|
462
|
-
"aria-expanded": state.isOpen
|
463
|
-
}, "Open Panel"), outer), messagesOpen && ___EmotionJSX(Messages, {
|
232
|
+
"aria-expanded": state.isOpen,
|
464
233
|
sx: {
|
465
|
-
|
466
|
-
}
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
234
|
+
maxWidth: 'fit-content'
|
235
|
+
}
|
236
|
+
}, "Open Panel"), outer))
|
237
|
+
);
|
238
|
+
};
|
239
|
+
export var Customization = function Customization() {
|
240
|
+
var _useOverlayPanelState5 = useOverlayPanelState(),
|
241
|
+
state = _useOverlayPanelState5.state,
|
242
|
+
onClose = _useOverlayPanelState5.onClose;
|
243
|
+
var triggerRef = useRef(null);
|
244
|
+
return (
|
245
|
+
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
246
|
+
// readers when an overlay opens.
|
247
|
+
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Box, {
|
248
|
+
sx: {
|
249
|
+
gap: '25px'
|
250
|
+
}
|
251
|
+
}, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."), ___EmotionJSX(Button, {
|
252
|
+
ref: triggerRef,
|
253
|
+
onPress: state.open,
|
254
|
+
"aria-expanded": state.isOpen,
|
255
|
+
sx: {
|
256
|
+
maxWidth: 'fit-content'
|
257
|
+
}
|
258
|
+
}, "Open Panel"), (state.isOpen || state.isTransitioning) && ___EmotionJSX(OverlayPanel, {
|
259
|
+
isTransitioning: state.isTransitioning,
|
260
|
+
isOpen: state.isOpen,
|
261
|
+
state: state,
|
262
|
+
triggerRef: triggerRef,
|
263
|
+
sx: {
|
264
|
+
width: '720px',
|
265
|
+
p: 0
|
266
|
+
}
|
267
|
+
}, ___EmotionJSX(PanelHeader, {
|
268
|
+
data: {
|
269
|
+
icon: AccountIcon,
|
270
|
+
text: 'Fons Vernall',
|
271
|
+
subtext: 'rad_developer@pingidentity.com'
|
272
|
+
}
|
273
|
+
}, ___EmotionJSX(PanelHeaderCloseButton, {
|
274
|
+
onPress: function onPress() {
|
275
|
+
onClose(state, triggerRef);
|
276
|
+
}
|
277
|
+
})), ___EmotionJSX(Box, {
|
278
|
+
sx: {
|
279
|
+
p: 25
|
280
|
+
}
|
281
|
+
}, ___EmotionJSX(Text, null, "Children render here.")))))
|
472
282
|
);
|
473
283
|
};
|
@@ -202,8 +202,8 @@ export var text = _objectSpread(_objectSpread(_objectSpread({
|
|
202
202
|
color: 'text.secondary',
|
203
203
|
fontFamily: 'standard'
|
204
204
|
},
|
205
|
-
panelHeaderSubtext: listViewItemSubtext,
|
206
|
-
panelHeaderText: listViewItemText,
|
205
|
+
panelHeaderSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
206
|
+
panelHeaderText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
207
207
|
sectionTitle: sectionTitle,
|
208
208
|
subtitle: subtitle,
|
209
209
|
tabLabel: tabLabel,
|