@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.
@@ -3,6 +3,6 @@ import { OverlayPanelProps } from '../../types';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  export declare const Default: StoryFn<OverlayPanelProps>;
6
- export declare const CustomWidth: StoryFn;
7
6
  export declare const Expandable: StoryFn;
8
7
  export declare const InnerPanel: StoryFn<OverlayPanelProps>;
8
+ export declare const Customization: StoryFn;
@@ -8,24 +8,19 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
8
8
  _Object$defineProperty(exports, "__esModule", {
9
9
  value: true
10
10
  });
11
- exports["default"] = exports.InnerPanel = exports.Expandable = exports.Default = exports.CustomWidth = void 0;
12
- var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
11
+ exports["default"] = exports.InnerPanel = exports.Expandable = exports.Default = exports.Customization = void 0;
13
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
14
13
  var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectDestructuringEmpty"));
15
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
16
15
  var _react = _interopRequireWildcard(require("react"));
17
- var _reactStately = require("react-stately");
16
+ var _AccountIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountIcon"));
18
17
  var _ArrowCollapseIcon = _interopRequireDefault(require("@pingux/mdi-react/ArrowCollapseIcon"));
19
18
  var _ArrowTopRightBottomLeftIcon = _interopRequireDefault(require("@pingux/mdi-react/ArrowTopRightBottomLeftIcon"));
20
- var _ChevronRightIcon = _interopRequireDefault(require("@pingux/mdi-react/ChevronRightIcon"));
21
- var _CloseIcon = _interopRequireDefault(require("@pingux/mdi-react/CloseIcon"));
22
- var _CogIcon = _interopRequireDefault(require("@pingux/mdi-react/CogIcon"));
23
19
  var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
24
20
  var _hooks = require("../../hooks");
25
21
  var _index = require("../../index");
26
- var _images = require("../../utils/devUtils/constants/images");
22
+ var _figmaLinks = require("../../utils/designUtils/figmaLinks");
27
23
  var _panelSizes = require("../../utils/devUtils/constants/panelSizes");
28
- var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
29
24
  var _OverlayPanel = _interopRequireDefault(require("./OverlayPanel.mdx"));
30
25
  var _react2 = require("@emotion/react");
31
26
  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); }
@@ -72,62 +67,54 @@ var Default = function Default(_ref) {
72
67
  return (
73
68
  // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
74
69
  // readers when an overlay is open.
75
- (0, _react2.jsx)(_index.OverlayProvider, null, (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)("br", null), (0, _react2.jsx)(_index.Button, {
70
+ (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Box, {
71
+ sx: {
72
+ gap: '25px'
73
+ }
74
+ }, (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, {
76
75
  ref: triggerRef,
77
76
  onPress: state.open,
78
- "aria-expanded": state.isOpen
77
+ "aria-expanded": state.isOpen,
78
+ sx: {
79
+ maxWidth: 'fit-content'
80
+ }
79
81
  }, "Open Panel"), (state.isOpen || state.isTransitioning) && (0, _react2.jsx)(_index.OverlayPanel, (0, _extends2["default"])({
80
82
  isOpen: state.isOpen,
81
83
  isTransitioning: state.isTransitioning,
82
84
  state: state
83
85
  }, args, {
84
- triggerRef: triggerRef
85
- }), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Button, {
86
- onPress: function onPress() {
87
- onClose(state, triggerRef);
88
- },
89
- "aria-expanded": state.isOpen
90
- }, "Close Panel"), (0, _react2.jsx)(_index.Text, {
91
- pt: "md"
92
- }, "Children render here."))))
93
- );
94
- };
95
- exports.Default = Default;
96
- var CustomWidth = function CustomWidth() {
97
- var _useOverlayPanelState2 = (0, _hooks.useOverlayPanelState)(),
98
- state = _useOverlayPanelState2.state,
99
- onClose = _useOverlayPanelState2.onClose;
100
- var triggerRef = (0, _react.useRef)(null);
101
- return (
102
- // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
103
- // readers when an overlay opens.
104
- (0, _react2.jsx)(_index.OverlayProvider, null, (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)("br", null), (0, _react2.jsx)(_index.Button, {
105
- ref: triggerRef,
106
- onPress: state.open,
107
- "aria-expanded": state.isOpen
108
- }, "Open Panel"), (state.isOpen || state.isTransitioning) && (0, _react2.jsx)(_index.OverlayPanel, {
109
- isTransitioning: state.isTransitioning,
110
- isOpen: state.isOpen,
111
- state: state,
112
86
  triggerRef: triggerRef,
113
87
  sx: {
114
- width: '720px'
88
+ p: 0
89
+ }
90
+ }), (0, _react2.jsx)(_index.PanelHeader, {
91
+ data: {
92
+ icon: _AccountIcon["default"],
93
+ text: 'Fons Vernall',
94
+ subtext: 'rad_developer@pingidentity.com'
115
95
  }
116
- }, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Button, {
96
+ }, (0, _react2.jsx)(_index.PanelHeaderCloseButton, {
117
97
  onPress: function onPress() {
118
98
  onClose(state, triggerRef);
119
- },
120
- "aria-expanded": state.isOpen
121
- }, "Close Panel"), (0, _react2.jsx)(_index.Text, {
122
- pt: "md"
123
- }, "Children render here."))))
99
+ }
100
+ })), (0, _react2.jsx)(_index.Box, {
101
+ sx: {
102
+ p: 25
103
+ }
104
+ }, (0, _react2.jsx)(_index.Text, null, "Children render here.")))))
124
105
  );
125
106
  };
126
- exports.CustomWidth = CustomWidth;
107
+ exports.Default = Default;
108
+ Default.parameters = {
109
+ design: {
110
+ type: 'figma',
111
+ url: _figmaLinks.FIGMA_LINKS.overlayPanel["default"]
112
+ }
113
+ };
127
114
  var Expandable = function Expandable() {
128
- var _useOverlayPanelState3 = (0, _hooks.useOverlayPanelState)(),
129
- state = _useOverlayPanelState3.state,
130
- onClose = _useOverlayPanelState3.onClose;
115
+ var _useOverlayPanelState2 = (0, _hooks.useOverlayPanelState)(),
116
+ state = _useOverlayPanelState2.state,
117
+ onClose = _useOverlayPanelState2.onClose;
131
118
  var triggerRef = (0, _react.useRef)(null);
132
119
  var _useState = (0, _react.useState)(false),
133
120
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
@@ -137,229 +124,26 @@ var Expandable = function Expandable() {
137
124
  overlayPanel: {
138
125
  padding: 0,
139
126
  transition: 'width 500ms, right 500ms'
140
- },
141
- header: {
142
- height: '110px',
143
- bg: '#F7F8FD',
144
- infoAndButtonsContainer: {
145
- justifyContent: 'space-between',
146
- padding: '20px 20px 0 20px'
147
- },
148
- pingOneAuthorizeContainer: {
149
- gap: '18px',
150
- alignItems: 'center',
151
- width: 'fit-content'
152
- },
153
- breadcrumbsContainer: {
154
- marginLeft: '78px',
155
- fontSize: 'md',
156
- fontWeight: 500
157
- }
158
- },
159
- contentContainer: {
160
- padding: '15px 25px 0 25px'
161
- },
162
- tabs: {
163
- justifyContent: 'center'
164
- },
165
- tabPanel: {
166
- height: 'calc(100vh - 255px)',
167
- overflow: 'scroll'
168
- },
169
- switchField: {
170
- rowGap: 'xs',
171
- display: 'grid !important',
172
- gridTemplateColumns: 'max-content auto',
173
- fontSize: 'sm',
174
- fontWeight: 500,
175
- color: 'text.secondary',
176
- '& > div:first-child': {
177
- order: 2
178
- }
179
- },
180
- colorField: {
181
- width: '30px',
182
- height: '20px'
183
- },
184
- tabContent: {
185
- gap: 'md',
186
- width: isExpanded ? '100%' : '400px',
187
- transition: 'width 500ms'
188
127
  }
189
128
  };
190
- var multivaluesFieldItems = [{
191
- id: 1,
192
- name: 'node 1',
193
- key: 'node1'
194
- }, {
195
- id: 2,
196
- name: 'node 2',
197
- key: 'node2'
198
- }];
199
- var onCloseHandler = function onCloseHandler() {
200
- return onClose(state, triggerRef);
129
+ var onCloseFunction = function onCloseFunction() {
130
+ onClose(state, triggerRef);
131
+ setIsExpanded(false);
201
132
  };
202
- var _useState3 = (0, _react.useState)('#EACE91'),
203
- _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
204
- color = _useState4[0],
205
- setColor = _useState4[1];
206
- var handleColorChange = (0, _react.useCallback)(function (colorVal) {
207
- if (typeof colorVal === 'string') {
208
- setColor(colorVal);
209
- } else if (colorVal.rgb) {
210
- var _context, _context2, _context3;
211
- var rgb = colorVal.rgb;
212
- var r = rgb.r,
213
- b = rgb.b,
214
- g = rgb.g,
215
- a = rgb.a;
216
- setColor((0, _concat["default"])(_context = (0, _concat["default"])(_context2 = (0, _concat["default"])(_context3 = "rgba(".concat(r, ", ")).call(_context3, g, ", ")).call(_context2, b, ", ")).call(_context, a, ")"));
217
- }
218
- }, []);
219
- var header = (0, _react2.jsx)(_index.Box, {
220
- sx: sx.header
221
- }, (0, _react2.jsx)(_index.Box, {
222
- isRow: true,
223
- sx: sx.header.infoAndButtonsContainer
224
- }, (0, _react2.jsx)(_index.Box, {
225
- isRow: true,
226
- sx: sx.header.pingOneAuthorizeContainer
227
- }, (0, _react2.jsx)(_index.Avatar, {
228
- src: _images.pingImg,
229
- sx: {
230
- width: '40px',
231
- height: '40px'
232
- }
233
- }), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
234
- variant: "bodyStrong",
235
- fontSize: "md"
236
- }, "PingOne Authorize"), (0, _react2.jsx)(_index.Text, {
237
- variant: "subtitle",
238
- fontSize: "sm"
239
- }, "ID: kcdhaweyf2d"), (0, _react2.jsx)(_index.Text, {
240
- variant: "subtitle",
241
- fontSize: "sm"
242
- }, "ConnectionID: 234UI3fu4hj4itge35553rj3ty4gyeczcb90"))), (0, _react2.jsx)(_index.Box, {
243
- isRow: true
244
- }, (0, _react2.jsx)(_index.IconButton, {
245
- "aria-label": "settings-icon",
246
- size: 20
247
- }, (0, _react2.jsx)(_CogIcon["default"], null)), (0, _react2.jsx)(_index.IconButton, {
248
- "aria-label": "expand-icon",
249
- size: 20,
250
- onPress: function onPress() {
251
- return setIsExpanded(!isExpanded);
252
- }
253
- }, isExpanded ? (0, _react2.jsx)(_ArrowCollapseIcon["default"], null) : (0, _react2.jsx)(_ArrowTopRightBottomLeftIcon["default"], null)), (0, _react2.jsx)(_index.IconButton, {
254
- "aria-label": "close-icon",
255
- size: 20,
256
- onPress: onCloseHandler
257
- }, (0, _react2.jsx)(_CloseIcon["default"], null)))), (0, _react2.jsx)(_index.Box, {
258
- sx: sx.header.breadcrumbsContainer
259
- }, (0, _react2.jsx)(_index.Breadcrumbs, {
260
- icon: _ChevronRightIcon["default"]
261
- }, (0, _react2.jsx)(_reactStately.Item, {
262
- key: "home",
263
- "data-id": "home"
264
- }, "Capability"), (0, _react2.jsx)(_reactStately.Item, {
265
- key: "editGroups",
266
- variant: "neutralText",
267
- "data-id": "editGroups"
268
- }, "Make Decision Request"))));
269
- var generalTabContent = (0, _react2.jsx)(_index.Box, {
270
- sx: sx.tabContent
271
- }, (0, _react2.jsx)(_index.TextField, {
272
- label: "Node Title",
273
- defaultValue: "The Value of the Text Input"
274
- }), (0, _react2.jsx)(_index.TextField, {
275
- label: "Node Description",
276
- defaultValue: "The Value of the Text Input"
277
- }), (0, _react2.jsx)(_index.ColorField, {
278
- value: color,
279
- label: "Node Background Color",
280
- buttonProps: {
281
- sx: sx.colorField
282
- },
283
- onChange: handleColorChange
284
- }), (0, _react2.jsx)(_index.SwitchField, {
285
- hintText: "Example Hint",
286
- labelProps: {
287
- sx: sx.switchField
288
- },
289
- label: "Expire Authentication Token",
290
- value: "expire-authentication-token"
291
- }), (0, _react2.jsx)(_index.SwitchField, {
292
- hintText: "Example Hint",
293
- labelProps: {
294
- sx: sx.switchField
295
- },
296
- label: "Expire Flow Instance Cache",
297
- value: "expire-flow-instance-cache"
298
- }), (0, _react2.jsx)(_index.MultivaluesField, {
299
- items: multivaluesFieldItems,
300
- label: "Expire Node Instance Cache List",
301
- inputProps: {
302
- hintText: 'Example Hint'
303
- }
304
- }, function (item) {
305
- return (0, _react2.jsx)(_reactStately.Item, {
306
- key: item.key,
307
- "data-id": item.name
308
- }, item.name);
309
- }));
310
- var settingsTabContent = (0, _react2.jsx)(_index.Box, {
311
- sx: sx.tabContent
312
- }, (0, _react2.jsx)(_index.SwitchField, {
313
- hintText: "Example Hint",
314
- labelProps: {
315
- sx: sx.switchField
316
- },
317
- label: "Expire Authentication Token",
318
- value: "expire-authentication-token"
319
- }), (0, _react2.jsx)(_index.SwitchField, {
320
- hintText: "Example Hint",
321
- labelProps: {
322
- sx: sx.switchField
323
- },
324
- label: "Expire Flow Instance Cache",
325
- value: "expire-flow-instance-cache"
326
- }), (0, _react2.jsx)(_index.SwitchField, {
327
- hintText: "Example Hint",
328
- labelProps: {
329
- sx: sx.switchField
330
- },
331
- label: "Expire Node Instance Cache",
332
- value: "expire-node-instance-cache"
333
- }));
334
- var schemaTabContent = (0, _react2.jsx)(_index.Box, {
335
- sx: sx.tabContent
336
- }, (0, _react2.jsx)(_index.TextField, {
337
- hintText: "Example Hint",
338
- label: "Log field Title",
339
- defaultValue: "The Value of the Text Input"
340
- }), (0, _react2.jsx)(_index.TextField, {
341
- hintText: "Example Hint",
342
- label: "Log field Description",
343
- defaultValue: "The Value of the Text Input"
344
- }));
345
- var footer = (0, _react2.jsx)(_index.ButtonBar, {
346
- sx: {
347
- backgroundColor: 'background.base'
348
- }
349
- }, (0, _react2.jsx)(_index.Button, {
350
- onPress: onCloseHandler,
351
- variant: "primary"
352
- }, "Save"), (0, _react2.jsx)(_index.Button, {
353
- onPress: onCloseHandler,
354
- variant: "link"
355
- }, "Cancel"));
356
133
  return (
357
134
  // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
358
135
  // readers when an overlay opens.
359
- (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Button, {
136
+ (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Box, {
137
+ sx: {
138
+ gap: '25px'
139
+ }
140
+ }, (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, {
360
141
  ref: triggerRef,
361
142
  onPress: state.open,
362
- "aria-expanded": state.isOpen
143
+ "aria-expanded": state.isOpen,
144
+ sx: {
145
+ maxWidth: 'fit-content'
146
+ }
363
147
  }, "Open Panel"), (state.isOpen || state.isTransitioning) && (0, _react2.jsx)(_index.OverlayPanel, {
364
148
  isTransitioning: state.isTransitioning,
365
149
  isOpen: state.isOpen,
@@ -367,41 +151,40 @@ var Expandable = function Expandable() {
367
151
  triggerRef: triggerRef,
368
152
  sx: sx.overlayPanel,
369
153
  size: isExpanded ? 'full' : 'medium'
370
- }, header, (0, _react2.jsx)(_index.Box, {
371
- sx: sx.contentContainer
372
- }, (0, _react2.jsx)(_index.Tabs, {
373
- tabListProps: sx.tabs,
374
- tabPanelProps: sx.tabPanel
375
- }, (0, _react2.jsx)(_index.Tab, {
376
- key: "tab1",
377
- title: "General"
378
- }, generalTabContent), (0, _react2.jsx)(_index.Tab, {
379
- key: "tab2",
380
- title: "Settings"
381
- }, settingsTabContent), (0, _react2.jsx)(_index.Tab, {
382
- key: "tab3",
383
- title: "Schema"
384
- }, schemaTabContent))), footer))
154
+ }, (0, _react2.jsx)(_index.PanelHeader, {
155
+ data: {
156
+ icon: _AccountIcon["default"],
157
+ text: 'Fons Vernall',
158
+ subtext: 'rad_developer@pingidentity.com'
159
+ }
160
+ }, (0, _react2.jsx)(_index.IconButton, {
161
+ "aria-label": "expand-icon",
162
+ size: 20,
163
+ onPress: function onPress() {
164
+ return setIsExpanded(!isExpanded);
165
+ }
166
+ }, isExpanded ? (0, _react2.jsx)(_ArrowCollapseIcon["default"], null) : (0, _react2.jsx)(_ArrowTopRightBottomLeftIcon["default"], null)), (0, _react2.jsx)(_index.PanelHeaderCloseButton, {
167
+ onPress: function onPress() {
168
+ onCloseFunction();
169
+ }
170
+ })), (0, _react2.jsx)(_index.Box, {
171
+ sx: {
172
+ p: 25
173
+ }
174
+ }, (0, _react2.jsx)(_index.Text, null, "Children render here")))))
385
175
  );
386
176
  };
387
177
  exports.Expandable = Expandable;
388
178
  var InnerPanel = function InnerPanel(_ref2) {
389
179
  var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref2), _ref2));
180
+ var _useOverlayPanelState3 = (0, _hooks.useOverlayPanelState)(),
181
+ state = _useOverlayPanelState3.state,
182
+ onClose = _useOverlayPanelState3.onClose;
390
183
  var _useOverlayPanelState4 = (0, _hooks.useOverlayPanelState)(),
391
- state = _useOverlayPanelState4.state,
392
- onClose = _useOverlayPanelState4.onClose;
393
- var _useOverlayPanelState5 = (0, _hooks.useOverlayPanelState)(),
394
- innerState = _useOverlayPanelState5.state,
395
- onCloseInner = _useOverlayPanelState5.onClose;
184
+ innerState = _useOverlayPanelState4.state,
185
+ onCloseInner = _useOverlayPanelState4.onClose;
396
186
  var outerTriggerRef = (0, _react.useRef)(null);
397
187
  var innerTriggerRef = (0, _react.useRef)(null);
398
- var _useState5 = (0, _react.useState)(false),
399
- _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
400
- messagesOpen = _useState6[0],
401
- setMessagesOpen = _useState6[1];
402
- var toggleMessagesOpen = function toggleMessagesOpen() {
403
- setMessagesOpen(!messagesOpen);
404
- };
405
188
  var closeOuterPanel = function closeOuterPanel() {
406
189
  if (innerState.isOpen) {
407
190
  innerState.close();
@@ -420,18 +203,7 @@ var InnerPanel = function InnerPanel(_ref2) {
420
203
  triggerRef: innerTriggerRef
421
204
  }), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Button, {
422
205
  onPress: closeInnerPanel
423
- }, "Close Inner Panel"), (0, _react2.jsx)(_index.Text, {
424
- pt: "md"
425
- }, "Children render here.")));
426
- var items = [{
427
- key: 'Form 1',
428
- id: 1,
429
- name: 'Form 1'
430
- }, {
431
- key: 'Form 2',
432
- id: 2,
433
- name: 'Form 2'
434
- }];
206
+ }, "Close Inner Panel")));
435
207
  var outer =
436
208
  // should have higher z-index applied
437
209
  (state.isOpen || state.isTransitioning) && (0, _react2.jsx)(_index.OverlayPanel, (0, _extends2["default"])({
@@ -443,29 +215,22 @@ var InnerPanel = function InnerPanel(_ref2) {
443
215
  }, args, {
444
216
  state: state,
445
217
  triggerRef: outerTriggerRef
446
- }), (0, _react2.jsx)(_index.Box, {
218
+ }), (0, _react2.jsx)(_index.PanelHeader, {
219
+ data: {
220
+ icon: _AccountIcon["default"],
221
+ text: 'Fons Vernall',
222
+ subtext: 'rad_developer@pingidentity.com'
223
+ }
224
+ }, (0, _react2.jsx)(_index.PanelHeaderCloseButton, {
225
+ onPress: function onPress() {
226
+ closeOuterPanel();
227
+ }
228
+ })), (0, _react2.jsx)(_index.Box, {
447
229
  sx: {
448
- p: '12px'
230
+ p: '25px',
231
+ gap: '25px'
449
232
  }
450
- }, (0, _react2.jsx)(_index.Button, {
451
- onPress: closeOuterPanel,
452
- "aria-expanded": state.isOpen
453
- }, "Close Panel"), (0, _react2.jsx)(_index.Text, {
454
- pt: "md",
455
- mb: "24px"
456
- }, "Children render here."), (0, _react2.jsx)(_index.ListView, {
457
- items: items
458
- }, function (item) {
459
- return (0, _react2.jsx)(_reactStately.Item, {
460
- key: item.id
461
- }, (0, _react2.jsx)(_index.ListViewItem, {
462
- data: {
463
- text: item.name
464
- }
465
- }));
466
- }), (0, _react2.jsx)("br", null), (0, _react2.jsx)(_index.Button, {
467
- onPress: toggleMessagesOpen
468
- }, "Toggle Messages"), (0, _react2.jsx)("br", null), (0, _react2.jsx)(_index.Button, {
233
+ }, (0, _react2.jsx)(_index.Text, null, "Children render here."), (0, _react2.jsx)(_index.Button, {
469
234
  ref: innerTriggerRef,
470
235
  onPress: innerState.open,
471
236
  "aria-expanded": innerState.isOpen
@@ -473,19 +238,64 @@ var InnerPanel = function InnerPanel(_ref2) {
473
238
  return (
474
239
  // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
475
240
  // readers when an overlay opens.
476
- (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Button, {
241
+ (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Box, {
242
+ sx: {
243
+ gap: '25px'
244
+ }
245
+ }, (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, {
477
246
  ref: outerTriggerRef,
478
247
  onPress: state.open,
479
- "aria-expanded": state.isOpen
480
- }, "Open Panel"), outer), messagesOpen && (0, _react2.jsx)(_index.Messages, {
248
+ "aria-expanded": state.isOpen,
481
249
  sx: {
482
- zIndex: 11
483
- },
484
- onClose: toggleMessagesOpen
485
- }, (0, _react2.jsx)(_reactStately.Item, {
486
- key: "message2",
487
- status: _statuses["default"].SUCCESS
488
- }, "Z Index higher than inner pannel")))
250
+ maxWidth: 'fit-content'
251
+ }
252
+ }, "Open Panel"), outer))
253
+ );
254
+ };
255
+ exports.InnerPanel = InnerPanel;
256
+ var Customization = function Customization() {
257
+ var _useOverlayPanelState5 = (0, _hooks.useOverlayPanelState)(),
258
+ state = _useOverlayPanelState5.state,
259
+ onClose = _useOverlayPanelState5.onClose;
260
+ var triggerRef = (0, _react.useRef)(null);
261
+ return (
262
+ // Application must be wrapped in an OverlayProvider so that it can be hidden from screen
263
+ // readers when an overlay opens.
264
+ (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Box, {
265
+ sx: {
266
+ gap: '25px'
267
+ }
268
+ }, (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, {
269
+ ref: triggerRef,
270
+ onPress: state.open,
271
+ "aria-expanded": state.isOpen,
272
+ sx: {
273
+ maxWidth: 'fit-content'
274
+ }
275
+ }, "Open Panel"), (state.isOpen || state.isTransitioning) && (0, _react2.jsx)(_index.OverlayPanel, {
276
+ isTransitioning: state.isTransitioning,
277
+ isOpen: state.isOpen,
278
+ state: state,
279
+ triggerRef: triggerRef,
280
+ sx: {
281
+ width: '720px',
282
+ p: 0
283
+ }
284
+ }, (0, _react2.jsx)(_index.PanelHeader, {
285
+ data: {
286
+ icon: _AccountIcon["default"],
287
+ text: 'Fons Vernall',
288
+ subtext: 'rad_developer@pingidentity.com'
289
+ }
290
+ }, (0, _react2.jsx)(_index.PanelHeaderCloseButton, {
291
+ onPress: function onPress() {
292
+ onClose(state, triggerRef);
293
+ }
294
+ })), (0, _react2.jsx)(_index.Box, {
295
+ sx: {
296
+ p: 25
297
+ }
298
+ }, (0, _react2.jsx)(_index.Text, null, "Children render here.")))))
489
299
  );
490
300
  };
491
- exports.InnerPanel = InnerPanel;
301
+ exports.Customization = Customization;
@@ -110,6 +110,9 @@ export declare const text: {
110
110
  fontFamily: string;
111
111
  };
112
112
  panelHeaderSubtext: {
113
+ textOverflow: string;
114
+ overflow: string;
115
+ whiteSpace: string;
113
116
  alignSelf: string;
114
117
  fontSize: string;
115
118
  mt: string;
@@ -123,6 +126,9 @@ export declare const text: {
123
126
  wordBreak: wordBreak;
124
127
  };
125
128
  panelHeaderText: {
129
+ textOverflow: string;
130
+ overflow: string;
131
+ whiteSpace: string;
126
132
  alignSelf: string;
127
133
  fontSize: string;
128
134
  color: string;
@@ -211,8 +211,8 @@ var text = _objectSpread(_objectSpread(_objectSpread({
211
211
  color: 'text.secondary',
212
212
  fontFamily: 'standard'
213
213
  },
214
- panelHeaderSubtext: listViewItemSubtext,
215
- panelHeaderText: listViewItemText,
214
+ panelHeaderSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
215
+ panelHeaderText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
216
216
  sectionTitle: sectionTitle,
217
217
  subtitle: subtitle,
218
218
  tabLabel: tabLabel,
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.ForwardRefExoticComponent<import("../../../index").OverlayPanelProps & React.RefAttributes<HTMLDivElement>>;
5
+ };
6
+ export default _default;
7
+ export declare const Default: () => React.JSX.Element;