@p14c/branding-themes-utilities 6.860.3

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.

Potentially problematic release.


This version of @p14c/branding-themes-utilities might be problematic. Click here for more details.

@@ -0,0 +1,1637 @@
1
+ import _ from 'lodash';
2
+ import astroTheme$1 from '@pingux/astro/lib/cjs/styles/theme';
3
+ import { GlobalStyles, Box, Image } from '@pingux/astro';
4
+ import React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import { ThemeProvider, useTheme } from '@emotion/react';
7
+ import Box$1 from '@pingux/astro/lib/cjs/components/Box';
8
+ import sanitizeHtml from 'sanitize-html';
9
+
10
+ function ownKeys(object, enumerableOnly) {
11
+ var keys = Object.keys(object);
12
+
13
+ if (Object.getOwnPropertySymbols) {
14
+ var symbols = Object.getOwnPropertySymbols(object);
15
+
16
+ if (enumerableOnly) {
17
+ symbols = symbols.filter(function (sym) {
18
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
19
+ });
20
+ }
21
+
22
+ keys.push.apply(keys, symbols);
23
+ }
24
+
25
+ return keys;
26
+ }
27
+
28
+ function _objectSpread2(target) {
29
+ for (var i = 1; i < arguments.length; i++) {
30
+ var source = arguments[i] != null ? arguments[i] : {};
31
+
32
+ if (i % 2) {
33
+ ownKeys(Object(source), true).forEach(function (key) {
34
+ _defineProperty(target, key, source[key]);
35
+ });
36
+ } else if (Object.getOwnPropertyDescriptors) {
37
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
38
+ } else {
39
+ ownKeys(Object(source)).forEach(function (key) {
40
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
41
+ });
42
+ }
43
+ }
44
+
45
+ return target;
46
+ }
47
+
48
+ function _defineProperty(obj, key, value) {
49
+ if (key in obj) {
50
+ Object.defineProperty(obj, key, {
51
+ value: value,
52
+ enumerable: true,
53
+ configurable: true,
54
+ writable: true
55
+ });
56
+ } else {
57
+ obj[key] = value;
58
+ }
59
+
60
+ return obj;
61
+ }
62
+
63
+ var buttonText = {
64
+ fontSize: 'md',
65
+ fontFamily: 'standard',
66
+ color: 'neutral.20'
67
+ };
68
+ var buttonHover = {
69
+ color: 'active',
70
+ borderColor: 'active'
71
+ };
72
+ var buttonFocus = {
73
+ outline: 'none',
74
+ boxShadow: 'focus'
75
+ };
76
+
77
+ var buttonBase = _objectSpread2(_objectSpread2({}, buttonText), {}, {
78
+ bg: 'white',
79
+ border: '1px solid',
80
+ borderColor: 'neutral.60',
81
+ borderRadius: 2,
82
+ display: 'block',
83
+ padding: '9px',
84
+ boxShadow: 'none',
85
+ minHeight: 40,
86
+ height: 'auto',
87
+ textOverflow: 'ellipsis',
88
+ cursor: 'pointer',
89
+ width: '100%',
90
+ outline: 'none',
91
+ '&.is-hovered': _objectSpread2({}, buttonHover),
92
+ '&.is-pressed': {
93
+ color: buttonText.color,
94
+ borderColor: 'neutral.60'
95
+ },
96
+ '&.is-focused': _objectSpread2({}, buttonFocus)
97
+ });
98
+
99
+ var endUserButtons = {
100
+ default: _objectSpread2({}, buttonBase),
101
+ iconButton: {
102
+ justifyContent: 'center',
103
+ appearance: 'none',
104
+ alignItems: 'center',
105
+ alignSelf: 'baseline',
106
+ display: 'inline-flex !important',
107
+ flexGrow: 0,
108
+ flexShrink: 0,
109
+ borderRadius: '100%',
110
+ cursor: 'pointer',
111
+ bg: 'transparent',
112
+ p: '3px',
113
+ width: 'inherit',
114
+ height: 'inherit',
115
+ path: {
116
+ fill: 'neutral.20'
117
+ },
118
+ outline: 'none',
119
+ '&.is-hovered': {
120
+ bg: 'neutral.90'
121
+ },
122
+ '&.is-pressed': {
123
+ path: {
124
+ fill: 'white'
125
+ },
126
+ bg: 'active'
127
+ }
128
+ },
129
+ primary: _objectSpread2(_objectSpread2({}, buttonBase), {}, {
130
+ color: 'white',
131
+ bg: 'active',
132
+ borderColor: 'active',
133
+ '&.is-hovered': {
134
+ bg: 'activeHover',
135
+ borderColor: 'activeHover'
136
+ },
137
+ '&.is-pressed': {
138
+ bg: 'active',
139
+ borderColor: 'active'
140
+ }
141
+ }),
142
+ secondary: _objectSpread2({}, buttonBase),
143
+ tertiary: _objectSpread2(_objectSpread2({}, buttonBase), {}, {
144
+ fontSize: 'sm',
145
+ py: 'xs',
146
+ px: 'md',
147
+ width: 'auto',
148
+ mx: 'auto',
149
+ minHeight: 'initial'
150
+ }),
151
+ comboBox: {
152
+ bg: 'transparent',
153
+ color: 'black',
154
+ padding: 0,
155
+ svg: {
156
+ fill: ' #798087',
157
+ height: 30,
158
+ width: 30
159
+ }
160
+ }
161
+ };
162
+ var airButtons = {
163
+ primary: {
164
+ width: 125,
165
+ borderWidth: 0,
166
+ marginRight: 'auto !important'
167
+ }
168
+ };
169
+ var focusButtons = {
170
+ primary: {
171
+ width: '100%',
172
+ borderWidth: 0,
173
+ fontWeight: 800
174
+ }
175
+ };
176
+ var muralButtons = {
177
+ primary: {
178
+ width: '60%',
179
+ borderWidth: 0,
180
+ fontWeight: 800
181
+ }
182
+ };
183
+ var pingDefaultButtons = {
184
+ primary: {
185
+ width: '100%',
186
+ borderWidth: 0
187
+ }
188
+ };
189
+ var slateButtons = {
190
+ primary: {
191
+ width: '60%',
192
+ borderWidth: 0,
193
+ marginRight: 'auto !important',
194
+ fontSize: 18
195
+ }
196
+ };
197
+ var splitButtons = {
198
+ primary: {
199
+ width: '50%',
200
+ borderWidth: 0,
201
+ fontWeight: 700,
202
+ textTransform: 'uppercase'
203
+ }
204
+ };
205
+ var templateOverrides = {
206
+ air: airButtons,
207
+ focus: focusButtons,
208
+ mural: muralButtons,
209
+ default: pingDefaultButtons,
210
+ slate: slateButtons,
211
+ split: splitButtons
212
+ };
213
+ var defaultThemeOverrides = function defaultThemeOverrides(defaultTheme) {
214
+ return {
215
+ primary: {
216
+ bg: defaultTheme.configuration.buttonColor,
217
+ borderColor: defaultTheme.configuration.buttonColor,
218
+ color: defaultTheme.configuration.buttonTextColor,
219
+ '&.is-hovered, &.is-active': {
220
+ bg: defaultTheme.configuration.buttonColor,
221
+ borderColor: defaultTheme.configuration.buttonColor,
222
+ opacity: 0.9
223
+ },
224
+ '&.is-focused': {
225
+ bg: defaultTheme.configuration.buttonColor,
226
+ borderColor: defaultTheme.configuration.buttonColor
227
+ }
228
+ }
229
+ };
230
+ };
231
+
232
+ var buttons = {
233
+ __proto__: null,
234
+ templateOverrides: templateOverrides,
235
+ defaultThemeOverrides: defaultThemeOverrides,
236
+ 'default': endUserButtons
237
+ };
238
+
239
+ var wordWrap = {
240
+ overflowWrap: 'break-word',
241
+ maxWidth: '100%',
242
+ wordWrap: 'break-word',
243
+ wordBreak: 'break-word'
244
+ };
245
+
246
+ var baseFont = _objectSpread2(_objectSpread2({}, wordWrap), {}, {
247
+ fontFamily: 'proxima-nova, sans-serif !important',
248
+ WebkitFontSmoothing: 'antialiased',
249
+ textTransform: 'none'
250
+ });
251
+
252
+ var fieldHelperText = _objectSpread2(_objectSpread2({}, baseFont), {}, {
253
+ fontSize: 'md',
254
+ p: '15px !important',
255
+ borderRadius: '0 0 2px 2px',
256
+ animation: 'fade-down-in 0.2s',
257
+ '&::first-letter': {
258
+ textTransform: 'uppercase !important'
259
+ },
260
+ '&.is-default': {
261
+ backgroundColor: 'fieldHelperText.defaultBackground',
262
+ color: 'fieldHelperText.default'
263
+ },
264
+ '&.is-error': {
265
+ backgroundColor: 'fieldHelperText.errorBackground',
266
+ color: 'fieldHelperText.error'
267
+ }
268
+ });
269
+
270
+ var endUserText = {
271
+ base: _objectSpread2(_objectSpread2({}, baseFont), {}, {
272
+ color: 'neutral.20',
273
+ fontSize: 'md'
274
+ }),
275
+ bodyWeak: _objectSpread2(_objectSpread2({}, baseFont), {}, {
276
+ fontSize: 'sm',
277
+ color: 'text.secondary'
278
+ }),
279
+ heading: _objectSpread2(_objectSpread2({}, baseFont), {}, {
280
+ color: 'neutral.20',
281
+ fontWeight: '400',
282
+ fontSize: 'lg',
283
+ fontFamily: 'standard'
284
+ }),
285
+ subheading: _objectSpread2(_objectSpread2({}, baseFont), {}, {
286
+ fontSize: 'md'
287
+ }),
288
+ label: _objectSpread2(_objectSpread2({}, baseFont), {}, {
289
+ fontSize: 15,
290
+ fontWeight: 600,
291
+ color: 'text.secondary'
292
+ }),
293
+ input: _objectSpread2(_objectSpread2({}, baseFont), {}, {
294
+ color: 'neutral.30',
295
+ fontSize: 15,
296
+ fontWeight: 600,
297
+ container: {
298
+ position: 'relative'
299
+ }
300
+ }),
301
+ fieldHelperText: fieldHelperText
302
+ };
303
+ var defaultThemeOverrides$1 = function defaultThemeOverrides(defaultTheme) {
304
+ return {
305
+ heading: {
306
+ color: defaultTheme.configuration.headingTextColor
307
+ },
308
+ subheading: {
309
+ color: defaultTheme.configuration.headingTextColor
310
+ },
311
+ base: {
312
+ color: defaultTheme.configuration.bodyTextColor
313
+ }
314
+ };
315
+ };
316
+
317
+ var text = {
318
+ __proto__: null,
319
+ wordWrap: wordWrap,
320
+ defaultThemeOverrides: defaultThemeOverrides$1,
321
+ 'default': endUserText
322
+ };
323
+
324
+ var endUserInput = _objectSpread2(_objectSpread2({}, endUserText.input), {}, {
325
+ position: 'relative',
326
+ background: 'white',
327
+ borderColor: 'neutral.40',
328
+ borderWidth: '1px !important',
329
+ borderStyle: 'solid',
330
+ borderRadius: 2,
331
+ display: 'block',
332
+ boxSizing: 'border-box',
333
+ width: '100%',
334
+ px: 10,
335
+ paddingTop: 10,
336
+ paddingBottom: 10,
337
+ color: 'neutral.30',
338
+ outline: 'none',
339
+ '&:focus': {
340
+ borderColor: 'activeHover'
341
+ },
342
+ '&:after': {
343
+ display: 'none'
344
+ }
345
+ });
346
+
347
+ endUserInput.small = _objectSpread2(_objectSpread2({}, endUserInput.default), {}, {
348
+ '&:focus': {
349
+ outline: 'none',
350
+ borderColor: 'activeHover'
351
+ },
352
+ background: 'white',
353
+ borderRadius: 2,
354
+ fontWeight: 500,
355
+ color: '#4C4C4C',
356
+ height: '28px',
357
+ pb: '2px,',
358
+ pt: '2px',
359
+ pl: 'sm',
360
+ pr: 'sm'
361
+ });
362
+ endUserInput.containedIcon = {
363
+ position: 'absolute',
364
+ right: 0,
365
+ top: '50%',
366
+ transform: 'translate(-50%, -50%)'
367
+ };
368
+ var slateInput = {
369
+ borderTop: 0,
370
+ borderLeft: 0,
371
+ borderRight: 0,
372
+ borderRadius: 0,
373
+ outline: 0,
374
+ paddingTop: 15,
375
+ paddingBottom: 10,
376
+ borderBottomWidth: 1,
377
+ borderBottomStyle: 'solid',
378
+ background: '#f5f5f5',
379
+ '.is-float-label &': {
380
+ background: 'transparent'
381
+ }
382
+ };
383
+ slateInput.small = _objectSpread2(_objectSpread2({}, slateInput), {}, {
384
+ backgroundColor: 'transparent',
385
+ paddingTop: 10
386
+ });
387
+ var templateOverrides$1 = {
388
+ slate: slateInput
389
+ };
390
+ var defaultThemeOverrides$2 = function defaultThemeOverrides(defaultTheme) {
391
+ return {
392
+ borderColor: defaultTheme.configuration.buttonColor,
393
+ small: {
394
+ borderColor: defaultTheme.configuration.buttonColor
395
+ }
396
+ };
397
+ };
398
+
399
+ var input = {
400
+ __proto__: null,
401
+ slateInput: slateInput,
402
+ templateOverrides: templateOverrides$1,
403
+ defaultThemeOverrides: defaultThemeOverrides$2,
404
+ 'default': endUserInput
405
+ };
406
+
407
+ var container = {
408
+ position: 'relative'
409
+ };
410
+
411
+ var input$1 = _objectSpread2(_objectSpread2({}, endUserInput), {}, {
412
+ pr: 'xl',
413
+ '.is-float-label &': {
414
+ height: 49,
415
+ paddingBottom: 5,
416
+ paddingTop: '15px !important'
417
+ }
418
+ });
419
+
420
+ var slateComboBox = {
421
+ input: _objectSpread2(_objectSpread2({}, slateInput), {}, {
422
+ paddingTop: 10,
423
+ paddingBottom: 5,
424
+ height: 43,
425
+ '.is-float-label &': _objectSpread2(_objectSpread2({}, slateInput['.is-float-label &']), {}, {
426
+ height: 43,
427
+ paddingBottom: 10
428
+ }),
429
+ '&:focus': {
430
+ borderColor: null
431
+ },
432
+ listBoxPopup: {
433
+ borderRadius: 0
434
+ }
435
+ })
436
+ };
437
+ var templateOverrides$2 = {
438
+ slate: slateComboBox
439
+ };
440
+ var defaultThemeOverrides$3 = function defaultThemeOverrides(defaultTheme) {
441
+ return {
442
+ input: {
443
+ borderColor: defaultTheme.configuration.buttonColor
444
+ }
445
+ };
446
+ };
447
+ var endUserComboBox = {
448
+ container: container,
449
+ input: input$1
450
+ };
451
+
452
+ var comboBox = {
453
+ __proto__: null,
454
+ templateOverrides: templateOverrides$2,
455
+ defaultThemeOverrides: defaultThemeOverrides$3,
456
+ 'default': endUserComboBox
457
+ };
458
+
459
+ var activeFloatLabel = {
460
+ fontWeight: '400 !important',
461
+ fontSize: '13px',
462
+ transform: 'translate(0px, -9px) scale(0.75)',
463
+ textTransform: 'uppercase !important',
464
+ transition: 'all 0.05s'
465
+ };
466
+
467
+ var radioLabel = _objectSpread2(_objectSpread2({}, endUserText.base), {}, {
468
+ marginBottom: 3,
469
+ cursor: 'pointer',
470
+ div: {
471
+ flexShrink: 0
472
+ },
473
+ alignItems: 'center'
474
+ });
475
+
476
+ var checkboxLabel = _objectSpread2(_objectSpread2({}, endUserText.base), {}, {
477
+ cursor: 'pointer',
478
+ div: {
479
+ flexShrink: 0
480
+ },
481
+ alignItems: 'center'
482
+ });
483
+
484
+ var focusFloatLabel = {
485
+ color: 'text.active'
486
+ };
487
+
488
+ var endUserLabel = _objectSpread2(_objectSpread2({}, endUserText.label), {}, {
489
+ display: 'block',
490
+ mb: 'xs',
491
+ alignItems: 'center',
492
+ lineHeight: '1em',
493
+ '&.is-float-label': {
494
+ position: 'absolute',
495
+ zIndex: 1,
496
+ top: '17px',
497
+ left: '10px',
498
+ mb: 0,
499
+ transformOrigin: 'top left',
500
+ transition: 'all 0.2s ease-out',
501
+ pointerEvents: 'none',
502
+ '& + div > input': {
503
+ paddingTop: 20
504
+ }
505
+ },
506
+ radio: radioLabel,
507
+ checkbox: checkboxLabel,
508
+ '.is-float-label-active &.is-float-label': _objectSpread2({}, activeFloatLabel),
509
+ '.has-focus-within &.is-float-label': _objectSpread2({}, focusFloatLabel),
510
+ indicator: {
511
+ display: 'none !important'
512
+ }
513
+ });
514
+
515
+ var slateLabel = {
516
+ '&.is-float-label': {
517
+ zIndex: 1,
518
+ top: '15px',
519
+ left: '10px',
520
+ '& + div > input': {
521
+ paddingTop: 15
522
+ }
523
+ },
524
+ '.is-float-label-active &.is-float-label': {
525
+ transform: 'translate(0px, -13px) scale(0.75)'
526
+ }
527
+ };
528
+ var templateOverrides$3 = {
529
+ slate: slateLabel
530
+ };
531
+ var defaultThemeOverrides$4 = function defaultThemeOverrides(defaultTheme) {
532
+ return {
533
+ radio: {
534
+ color: defaultTheme.configuration.bodyTextColor
535
+ },
536
+ checkbox: {
537
+ color: defaultTheme.configuration.bodyTextColor
538
+ }
539
+ };
540
+ };
541
+
542
+ var label = {
543
+ __proto__: null,
544
+ templateOverrides: templateOverrides$3,
545
+ defaultThemeOverrides: defaultThemeOverrides$4,
546
+ 'default': endUserLabel
547
+ };
548
+
549
+ var listBoxPopup = _objectSpread2(_objectSpread2({}, endUserInput), {}, {
550
+ position: 'absolute',
551
+ width: '100%',
552
+ padding: 0,
553
+ zIndex: 2,
554
+ borderTop: 'none',
555
+ background: 'white',
556
+ boxShadow: 'standard'
557
+ });
558
+
559
+ var option = _objectSpread2(_objectSpread2({}, endUserText.base), {}, {
560
+ px: 'md',
561
+ py: 'sm',
562
+ alignItems: 'center',
563
+ outline: 'none',
564
+ cursor: 'pointer',
565
+ '&.is-selected': _objectSpread2(_objectSpread2({}, endUserText.inputValue), {}, {
566
+ pl: 0
567
+ }),
568
+ '&.is-focused': {
569
+ color: 'white',
570
+ bg: 'active'
571
+ }
572
+ });
573
+
574
+ var transparent = {
575
+ select: {
576
+ bg: 'transparent'
577
+ },
578
+ '> div:after': {
579
+ bg: 'transparent'
580
+ }
581
+ };
582
+ var arrow = {
583
+ position: 'absolute',
584
+ top: '50%',
585
+ right: 10,
586
+ transform: 'translateY(-50%)'
587
+ };
588
+
589
+ var endUserSelect = _objectSpread2(_objectSpread2({}, endUserInput), {}, {
590
+ arrow: arrow,
591
+ lineHeight: 'unset',
592
+ display: 'flex',
593
+ alignItems: 'center',
594
+ justifyContent: 'space-between',
595
+ svg: {
596
+ height: 30,
597
+ width: 30
598
+ },
599
+ '&.is-focused': {
600
+ boxShadow: 'focus'
601
+ },
602
+ '& :after': {
603
+ display: 'none'
604
+ },
605
+ '.is-float-label &': {
606
+ height: 49,
607
+ paddingBottom: 5,
608
+ paddingTop: 15
609
+ },
610
+ listBoxPopup: listBoxPopup,
611
+ option: option,
612
+ transparent: transparent
613
+ });
614
+
615
+ var slateSelect = _objectSpread2(_objectSpread2({}, slateInput), {}, {
616
+ paddingTop: 10,
617
+ paddingBottom: 5,
618
+ height: 43,
619
+ '.is-float-label &': _objectSpread2(_objectSpread2({}, slateInput['.is-float-label &']), {}, {
620
+ height: 43,
621
+ paddingBottom: 10
622
+ }),
623
+ '&:focus': {
624
+ borderColor: null
625
+ },
626
+ listBoxPopup: {
627
+ borderRadius: 0
628
+ }
629
+ });
630
+
631
+ var templateOverrides$4 = {
632
+ slate: slateSelect
633
+ };
634
+ var defaultThemeOverrides$5 = function defaultThemeOverrides(defaultTheme) {
635
+ return {
636
+ borderColor: defaultTheme.configuration.buttonColor,
637
+ listBoxPopup: {
638
+ borderColor: defaultTheme.configuration.buttonColor
639
+ },
640
+ option: {
641
+ '&.is-focused': {
642
+ color: defaultTheme.configuration.buttonTextColor,
643
+ bg: defaultTheme.configuration.buttonColor
644
+ }
645
+ }
646
+ };
647
+ };
648
+
649
+ var select = {
650
+ __proto__: null,
651
+ templateOverrides: templateOverrides$4,
652
+ defaultThemeOverrides: defaultThemeOverrides$5,
653
+ 'default': endUserSelect
654
+ };
655
+
656
+ var endUserRadio = {
657
+ width: 20,
658
+ height: 20,
659
+ mr: 'sm',
660
+ 'input:focus ~ &': {
661
+ bg: 'transparent'
662
+ },
663
+ 'input ~ &.is-focused': {
664
+ bg: 'highlight'
665
+ }
666
+ };
667
+ var defaultThemeOverrides$6 = function defaultThemeOverrides(defaultTheme) {
668
+ return {
669
+ color: defaultTheme.configuration.buttonColor
670
+ };
671
+ };
672
+
673
+ var radio = {
674
+ __proto__: null,
675
+ defaultThemeOverrides: defaultThemeOverrides$6,
676
+ 'default': endUserRadio
677
+ };
678
+
679
+ var endUserCheckbox = _objectSpread2(_objectSpread2({}, endUserText.base), {}, {
680
+ mr: 'sm',
681
+ 'input:focus ~ &': {
682
+ bg: 'transparent'
683
+ },
684
+ 'input ~ &.is-focused': {
685
+ outline: 'none',
686
+ boxShadow: 'focus'
687
+ }
688
+ });
689
+
690
+ var defaultThemeOverrides$7 = function defaultThemeOverrides(defaultTheme) {
691
+ return {
692
+ color: defaultTheme.configuration.buttonColor
693
+ };
694
+ };
695
+
696
+ var checkbox = {
697
+ __proto__: null,
698
+ defaultThemeOverrides: defaultThemeOverrides$7,
699
+ 'default': endUserCheckbox
700
+ };
701
+
702
+ var applyCustomizations = function applyCustomizations(themeModule, defaultTheme) {
703
+ var base = _.cloneDeep(themeModule.default);
704
+
705
+ var templateOverrides = themeModule.templateOverrides ? themeModule.templateOverrides[defaultTheme.template] || {} : {};
706
+ var defaultThemeOverrides = themeModule.defaultThemeOverrides ? themeModule.defaultThemeOverrides(defaultTheme) : {};
707
+ return _.merge(base, _.merge(_.cloneDeep(templateOverrides), defaultThemeOverrides));
708
+ };
709
+
710
+ var endUserForms = {
711
+ input: endUserInput,
712
+ select: endUserSelect,
713
+ radio: endUserRadio,
714
+ label: endUserLabel,
715
+ checkbox: endUserCheckbox,
716
+ comboBox: endUserComboBox
717
+ };
718
+ var defaultThemeOverrides$8 = function defaultThemeOverrides(defaultTheme) {
719
+ return {
720
+ input: applyCustomizations(input, defaultTheme),
721
+ select: applyCustomizations(select, defaultTheme),
722
+ radio: applyCustomizations(radio, defaultTheme),
723
+ label: applyCustomizations(label, defaultTheme),
724
+ checkbox: applyCustomizations(checkbox, defaultTheme),
725
+ comboBox: applyCustomizations(comboBox, defaultTheme)
726
+ };
727
+ };
728
+
729
+ var forms = {
730
+ __proto__: null,
731
+ defaultThemeOverrides: defaultThemeOverrides$8,
732
+ 'default': endUserForms
733
+ };
734
+
735
+ var textColors = {
736
+ secondary: '#798087',
737
+ active: '#2996cc'
738
+ };
739
+ var fieldHelperTextColors = {
740
+ default: '#3d454d',
741
+ defaultBackground: '#e1eef5',
742
+ error: '#a31300',
743
+ errorBackground: '#eddad9'
744
+ };
745
+ var endUserColors = {
746
+ active: '#2996cc',
747
+ activeHover: '#3d88ae',
748
+ critical: '#a31300',
749
+ warning: '#eeb91c',
750
+ success: '#21934c',
751
+ neutral: {
752
+ 10: '#575f67',
753
+ 20: '#686f77',
754
+ 30: '#798087',
755
+ 40: '#8b9197',
756
+ 50: '#9da2a8',
757
+ 60: '#afb4b8',
758
+ 70: '#c2c6ca',
759
+ 80: '#d5d8db',
760
+ 90: '#e8ebed',
761
+ 95: '#f8f8f8'
762
+ },
763
+ line: {
764
+ hairline: '#8b9197'
765
+ },
766
+ card: '#FFFFFF',
767
+ background: '#EDEDED',
768
+ text: textColors,
769
+ fieldHelperText: fieldHelperTextColors
770
+ };
771
+ var airColors = {
772
+ button: '#FF6600',
773
+ buttonText: '#FFFFFF',
774
+ bodyText: '#341C0B',
775
+ headingText: '#002942',
776
+ link: '#313B87',
777
+ card: '#FFFFFF',
778
+ background: '#F0F8FF',
779
+ headerBackground: '#002942'
780
+ };
781
+ var focusColors = {
782
+ button: '#cb0020',
783
+ buttonText: '#ffffff',
784
+ bodyText: '#4a4a4a',
785
+ headingText: '#cb0020',
786
+ link: '#2996cc',
787
+ card: '#fcfcfc',
788
+ background: '#ededed'
789
+ };
790
+ var muralColors = {
791
+ button: '#61b375',
792
+ buttonText: '#ffffff',
793
+ bodyText: '#000000',
794
+ headingText: '#000000',
795
+ link: '#2996cc',
796
+ card: '#fcfcfc',
797
+ background: ''
798
+ };
799
+ var pingDefaultColors = {
800
+ button: '#2996cc',
801
+ buttonText: '#ffffff',
802
+ bodyText: '#686f77',
803
+ headingText: '#686f77',
804
+ link: '#2996cc',
805
+ card: '#ffffff',
806
+ background: '#ededed'
807
+ };
808
+ var slateColors = {
809
+ button: '#4A4A4A',
810
+ buttonText: '#FFFFFF',
811
+ bodyText: '#4C4C4C',
812
+ headingText: '#4A4A4A',
813
+ link: '#5F5F5F',
814
+ card: '#FFFFFF',
815
+ background: ''
816
+ };
817
+ var splitColors = {
818
+ button: '#263956',
819
+ buttonText: '#ffffff',
820
+ bodyText: '#263956',
821
+ headingText: '#686f77',
822
+ link: '#263956',
823
+ card: '#fcfcfc',
824
+ background: '#263956'
825
+ };
826
+ var templateOverrides$5 = {
827
+ air: airColors,
828
+ focus: focusColors,
829
+ mural: muralColors,
830
+ default: pingDefaultColors,
831
+ slate: slateColors,
832
+ split: splitColors
833
+ };
834
+ var defaultThemeOverrides$9 = function defaultThemeOverrides(defaultTheme) {
835
+ return {
836
+ cardBg: defaultTheme.configuration.cardColor,
837
+ logoBg: defaultTheme.configuration.headerBackgroundColor,
838
+ line: {
839
+ hairline: defaultTheme.configuration.buttonColor
840
+ }
841
+ };
842
+ };
843
+
844
+ var colors = {
845
+ __proto__: null,
846
+ templateOverrides: templateOverrides$5,
847
+ defaultThemeOverrides: defaultThemeOverrides$9,
848
+ 'default': endUserColors
849
+ };
850
+
851
+ var container$1 = _objectSpread2(_objectSpread2({}, endUserInput), {}, {
852
+ position: 'absolute',
853
+ width: '100%',
854
+ padding: 0,
855
+ zIndex: 100,
856
+ background: 'white',
857
+ boxShadow: 'standard',
858
+ color: '#4aba78'
859
+ });
860
+
861
+ var defaultThemeOverrides$a = function defaultThemeOverrides(defaultTheme) {
862
+ return {
863
+ container: {
864
+ borderColor: defaultTheme.configuration.buttonColor
865
+ }
866
+ };
867
+ };
868
+ var endUserPopoverMenu = {
869
+ container: container$1
870
+ };
871
+
872
+ var popoverMenu = {
873
+ __proto__: null,
874
+ defaultThemeOverrides: defaultThemeOverrides$a,
875
+ 'default': endUserPopoverMenu
876
+ };
877
+
878
+ var listBox = {
879
+ outline: 'none',
880
+ option: {
881
+ px: 'md',
882
+ py: 'sm',
883
+ alignItems: 'center',
884
+ outline: 'none',
885
+ wordBreak: 'break-word',
886
+ color: '#798087',
887
+ cursor: 'pointer',
888
+ '&.is-selected': {
889
+ pl: 0
890
+ },
891
+ '&.is-focused': {
892
+ color: 'white',
893
+ bg: 'active'
894
+ }
895
+ }
896
+ };
897
+ var defaultThemeOverrides$b = function defaultThemeOverrides(defaultTheme) {
898
+ return {
899
+ option: {
900
+ '&.is-focused': {
901
+ color: defaultTheme.configuration.buttonTextColor,
902
+ bg: defaultTheme.configuration.buttonColor
903
+ }
904
+ }
905
+ };
906
+ };
907
+
908
+ var listBox$1 = {
909
+ __proto__: null,
910
+ defaultThemeOverrides: defaultThemeOverrides$b,
911
+ 'default': listBox
912
+ };
913
+
914
+ var endUserLink = {
915
+ color: 'active',
916
+ textDecoration: 'none',
917
+ fontFamily: 'standard',
918
+ cursor: 'pointer',
919
+ outline: 'none',
920
+ '&.is-hovered': {
921
+ textDecoration: 'underline'
922
+ },
923
+ '&.is-focused': {
924
+ textDecoration: 'underline'
925
+ },
926
+ '&.is-disabled': {
927
+ pointerEvents: 'none'
928
+ }
929
+ };
930
+ var defaultThemeOverrides$c = function defaultThemeOverrides(defaultTheme) {
931
+ return {
932
+ color: defaultTheme.configuration.linkTextColor
933
+ };
934
+ };
935
+
936
+ var link = {
937
+ __proto__: null,
938
+ defaultThemeOverrides: defaultThemeOverrides$c,
939
+ 'default': endUserLink
940
+ };
941
+
942
+ var backgroundType = {
943
+ default: 'DEFAULT',
944
+ image: 'IMAGE',
945
+ color: 'COLOR',
946
+ none: 'NONE'
947
+ };
948
+ var logoType = {
949
+ none: 'NONE',
950
+ image: 'IMAGE'
951
+ };
952
+ var getLogo = function getLogo(defaultTheme) {
953
+ var _defaultTheme$configu;
954
+
955
+ if (!(defaultTheme !== null && defaultTheme !== void 0 && defaultTheme.configuration) || defaultTheme.configuration.logoType === logoType.none) {
956
+ return null;
957
+ }
958
+
959
+ return ((_defaultTheme$configu = defaultTheme.configuration.logo) === null || _defaultTheme$configu === void 0 ? void 0 : _defaultTheme$configu.href) || null;
960
+ };
961
+ var getBackground = function getBackground(defaultTheme) {
962
+ var _defaultTheme$configu2, _defaultTheme$configu3;
963
+
964
+ var type = (defaultTheme === null || defaultTheme === void 0 ? void 0 : (_defaultTheme$configu2 = defaultTheme.configuration) === null || _defaultTheme$configu2 === void 0 ? void 0 : _defaultTheme$configu2.backgroundType) || backgroundType.default;
965
+ var backgroundColor = null;
966
+ var backgroundImage = null;
967
+
968
+ switch (type) {
969
+ case backgroundType.color:
970
+ backgroundColor = defaultTheme.configuration.backgroundColor || null;
971
+ break;
972
+
973
+ case backgroundType.image:
974
+ backgroundImage = ((_defaultTheme$configu3 = defaultTheme.configuration.backgroundImage) === null || _defaultTheme$configu3 === void 0 ? void 0 : _defaultTheme$configu3.href) || null;
975
+ break;
976
+
977
+ case backgroundType.none:
978
+ backgroundColor = 'white';
979
+ break;
980
+ }
981
+
982
+ return {
983
+ backgroundImage: backgroundImage,
984
+ backgroundColor: backgroundColor
985
+ };
986
+ };
987
+ var getCardBackgroundColor = function getCardBackgroundColor(defaultTheme) {
988
+ var _defaultTheme$configu4;
989
+
990
+ return (defaultTheme === null || defaultTheme === void 0 ? void 0 : (_defaultTheme$configu4 = defaultTheme.configuration) === null || _defaultTheme$configu4 === void 0 ? void 0 : _defaultTheme$configu4.cardColor) || null;
991
+ };
992
+ var getFooter = function getFooter(defaultTheme) {
993
+ var _defaultTheme$configu5;
994
+
995
+ return defaultTheme === null || defaultTheme === void 0 ? void 0 : (_defaultTheme$configu5 = defaultTheme.configuration) === null || _defaultTheme$configu5 === void 0 ? void 0 : _defaultTheme$configu5.footer;
996
+ };
997
+
998
+ var brandingThemesPageContainer = {
999
+ display: 'inline-block !important',
1000
+ position: 'relative',
1001
+ flexGrow: 1,
1002
+ width: '100%',
1003
+ backgroundRepeat: 'repeat',
1004
+ backgroundColor: 'background'
1005
+ };
1006
+ var muralBrandingThemesPageContainer = {
1007
+ backgroundImage: 'url("https://assets.pingone.com/ux/branding-themes/0.22.0/mural/bg.jpg")',
1008
+ backgroundColor: '',
1009
+ backgroundPosition: 'center',
1010
+ backgroundRepeat: 'no-repeat',
1011
+ backgroundSize: 'cover'
1012
+ };
1013
+ var slateBrandingThemesPageContainer = {
1014
+ backgroundImage: 'url("https://assets.pingone.com/ux/branding-themes/0.22.0/slate/bg.jpg")',
1015
+ backgroundColor: '',
1016
+ backgroundPosition: 'center',
1017
+ backgroundRepeat: 'no-repeat',
1018
+ backgroundSize: 'cover'
1019
+ };
1020
+ var templateOverrides$6 = {
1021
+ mural: muralBrandingThemesPageContainer,
1022
+ slate: slateBrandingThemesPageContainer
1023
+ };
1024
+ var defaultThemeOverrides$d = function defaultThemeOverrides(defaultTheme) {
1025
+ var _getBackground = getBackground(defaultTheme),
1026
+ backgroundImage = _getBackground.backgroundImage,
1027
+ backgroundColor = _getBackground.backgroundColor;
1028
+
1029
+ var isSlateOrMural = defaultTheme.template === 'slate' || defaultTheme.template === 'mural';
1030
+
1031
+ switch (defaultTheme.configuration.backgroundType) {
1032
+ case backgroundType.default:
1033
+ return {};
1034
+
1035
+ case backgroundType.image:
1036
+ return backgroundImage ? {
1037
+ backgroundImage: "url(\"" + backgroundImage + "\")",
1038
+ backgroundColor: isSlateOrMural ? '#798087' : '#ffffff'
1039
+ } : {
1040
+ backgroundColor: ''
1041
+ };
1042
+
1043
+ case backgroundType.none:
1044
+ return {
1045
+ backgroundColor: '#ffffff00',
1046
+ backgroundImage: ''
1047
+ };
1048
+
1049
+ case backgroundType.color:
1050
+ default:
1051
+ return {
1052
+ backgroundImage: '',
1053
+ backgroundColor: backgroundColor || 'background'
1054
+ };
1055
+ }
1056
+ };
1057
+
1058
+ var pageContainer = {
1059
+ __proto__: null,
1060
+ templateOverrides: templateOverrides$6,
1061
+ defaultThemeOverrides: defaultThemeOverrides$d,
1062
+ 'default': brandingThemesPageContainer
1063
+ };
1064
+
1065
+ var brandingThemesLogoContainer = {
1066
+ padding: '50px 30px 0px 30px',
1067
+ marginRight: 'auto',
1068
+ marginLeft: 'auto'
1069
+ };
1070
+ var splitBrandingThemesLogoContainer = {
1071
+ width: '35%',
1072
+ minWidth: 150,
1073
+ marginRight: 10,
1074
+ padding: '50px 30px',
1075
+ justifyContent: 'center',
1076
+ '@media all and (max-width: 600px)': {
1077
+ borderRight: 'none',
1078
+ width: 'auto',
1079
+ margin: 0,
1080
+ borderBottomWidth: 4,
1081
+ borderBottomStyle: 'solid'
1082
+ }
1083
+ };
1084
+ var airBrandingThemesLogoContainer = {
1085
+ position: 'fixed',
1086
+ flexShrink: 0,
1087
+ top: 0,
1088
+ left: 0,
1089
+ right: 0,
1090
+ width: '100%',
1091
+ padding: '10px 20px',
1092
+ backgroundColor: 'logoBg',
1093
+ minHeight: 50,
1094
+ maxHeight: 100,
1095
+ zIndex: 1000,
1096
+ '@media all and (max-width: 600px)': {
1097
+ position: 'relative'
1098
+ }
1099
+ };
1100
+ var slateBrandingThemesLogoContainer = {
1101
+ padding: '50px 30px 0px 30px',
1102
+ marginLeft: 0
1103
+ };
1104
+ var muralBrandingThemesLogoContainer = {
1105
+ padding: '50px 30px 0px 30px',
1106
+ borderRight: 'none'
1107
+ };
1108
+ var templateOverrides$7 = {
1109
+ air: airBrandingThemesLogoContainer,
1110
+ split: splitBrandingThemesLogoContainer,
1111
+ slate: slateBrandingThemesLogoContainer,
1112
+ mural: muralBrandingThemesLogoContainer
1113
+ };
1114
+ var defaultThemeOverrides$e = function defaultThemeOverrides(defaultTheme) {
1115
+ return defaultTheme.template === 'split' ? {
1116
+ background: getCardBackgroundColor(defaultTheme) || '#fff'
1117
+ } : {};
1118
+ };
1119
+
1120
+ var logoContainer = {
1121
+ __proto__: null,
1122
+ templateOverrides: templateOverrides$7,
1123
+ defaultThemeOverrides: defaultThemeOverrides$e,
1124
+ 'default': brandingThemesLogoContainer
1125
+ };
1126
+
1127
+ var brandingThemesPageContent = {
1128
+ margin: 25,
1129
+ flexGrow: 1,
1130
+ display: 'flex',
1131
+ flexDirection: 'column',
1132
+ alignItems: 'center',
1133
+ '@media only screen and (max-width: 480px)': {
1134
+ margin: 0
1135
+ }
1136
+ };
1137
+ var airBrandingThemesPageContent = {
1138
+ paddingTop: 90,
1139
+ paddingBottom: 125,
1140
+ '@media only screen and (max-width: 600px)': {
1141
+ padding: 0,
1142
+ margin: 0
1143
+ }
1144
+ };
1145
+ var templateOverrides$8 = {
1146
+ air: airBrandingThemesPageContent
1147
+ };
1148
+
1149
+ var pageContent = {
1150
+ __proto__: null,
1151
+ templateOverrides: templateOverrides$8,
1152
+ 'default': brandingThemesPageContent
1153
+ };
1154
+
1155
+ var brandingThemesCard = {
1156
+ boxShadow: '0 1px 4px 1px hsl(210deg 6% 50% / 35%)',
1157
+ maxWidth: 450,
1158
+ width: '100%',
1159
+ margin: 10,
1160
+ backgroundColor: 'card',
1161
+ '@media only screen and (max-width: 480px)': {
1162
+ maxWidth: '100%',
1163
+ width: '100%',
1164
+ height: '100%',
1165
+ boxShadow: 'none'
1166
+ },
1167
+ '@media only screen and (max-width: 600px)': {
1168
+ margin: 0,
1169
+ maxWidth: '100%',
1170
+ width: '100%'
1171
+ }
1172
+ };
1173
+ var splitBrandingThemesCard = {
1174
+ flexDirection: 'row !important',
1175
+ maxWidth: 600,
1176
+ marginBottom: 40,
1177
+ marginTop: 20,
1178
+ borderRadius: 3,
1179
+ background: 'transparent',
1180
+ boxShadow: 'none',
1181
+ '@media all and (max-width: 600px)': {
1182
+ borderRadius: 0,
1183
+ flexDirection: 'column !important'
1184
+ }
1185
+ };
1186
+ var slateBrandingThemesCard = {
1187
+ marginRight: '60%',
1188
+ maxWidth: '40%',
1189
+ boxShadow: 'none',
1190
+ '@media all and (max-width: 600px)': {
1191
+ marginRight: 0
1192
+ }
1193
+ };
1194
+ var muralBrandingThemesCard = {
1195
+ marginBottom: '20px',
1196
+ marginTop: '80px',
1197
+ marginLeft: '80px',
1198
+ borderRadius: '3px',
1199
+ marginRight: 'auto',
1200
+ boxShadow: 'none',
1201
+ '@media all and (max-width: 600px)': {
1202
+ borderRadius: 0,
1203
+ marginLeft: 0,
1204
+ marginRight: 0,
1205
+ marginTop: 0,
1206
+ marginBottom: 0
1207
+ }
1208
+ };
1209
+ var templateOverrides$9 = {
1210
+ split: splitBrandingThemesCard,
1211
+ slate: slateBrandingThemesCard,
1212
+ mural: muralBrandingThemesCard
1213
+ };
1214
+ var defaultThemeOverrides$f = function defaultThemeOverrides(defaultTheme) {
1215
+ return {
1216
+ backgroundColor: getCardBackgroundColor(defaultTheme)
1217
+ };
1218
+ };
1219
+
1220
+ var card = {
1221
+ __proto__: null,
1222
+ templateOverrides: templateOverrides$9,
1223
+ defaultThemeOverrides: defaultThemeOverrides$f,
1224
+ 'default': brandingThemesCard
1225
+ };
1226
+
1227
+ var brandingThemesFormContainer = {
1228
+ width: '100%',
1229
+ padding: '50px 30px',
1230
+ marginRight: 'auto',
1231
+ marginLeft: 'auto'
1232
+ };
1233
+ var splitBrandingThemesFormContainer = {
1234
+ '@media all and (min-width: 600px)': {
1235
+ width: '65%'
1236
+ }
1237
+ };
1238
+ var templateOverrides$a = {
1239
+ split: splitBrandingThemesFormContainer
1240
+ };
1241
+ var defaultThemeOverrides$g = function defaultThemeOverrides(defaultTheme) {
1242
+ return defaultTheme.template === 'split' ? {
1243
+ background: getCardBackgroundColor(defaultTheme) || '#fff'
1244
+ } : {};
1245
+ };
1246
+
1247
+ var formContainer = {
1248
+ __proto__: null,
1249
+ templateOverrides: templateOverrides$a,
1250
+ defaultThemeOverrides: defaultThemeOverrides$g,
1251
+ 'default': brandingThemesFormContainer
1252
+ };
1253
+
1254
+ var brandingThemesFooterContainer = {
1255
+ backgroundColor: 'cardBg',
1256
+ paddingTop: 25,
1257
+ textAlign: 'center'
1258
+ };
1259
+ var airBrandingThemesFooterContainer = {
1260
+ position: 'fixed',
1261
+ left: 0,
1262
+ bottom: 0,
1263
+ right: 0,
1264
+ backgroundColor: '#fff',
1265
+ padding: '25px 20px',
1266
+ maxHeight: 150,
1267
+ zIndex: 1000,
1268
+ alignItems: 'center',
1269
+ overflow: 'hidden',
1270
+ '@media all and (max-width: 600px)': {
1271
+ position: 'relative',
1272
+ padding: 0,
1273
+ paddingTop: 25,
1274
+ backgroundColor: 'cardBg',
1275
+ maxHeight: 'inherit'
1276
+ }
1277
+ };
1278
+ var slateBrandingThemesFooterContainer = {
1279
+ textAlign: 'start'
1280
+ };
1281
+ var templateOverrides$b = {
1282
+ air: airBrandingThemesFooterContainer,
1283
+ slate: slateBrandingThemesFooterContainer
1284
+ };
1285
+
1286
+ var footer = {
1287
+ __proto__: null,
1288
+ templateOverrides: templateOverrides$b,
1289
+ 'default': brandingThemesFooterContainer
1290
+ };
1291
+
1292
+ var brandingThemesLogo = {
1293
+ maxHeight: 80,
1294
+ maxWidth: '100%',
1295
+ marginRight: 'auto',
1296
+ marginLeft: 'auto',
1297
+ flexShrink: 0
1298
+ };
1299
+ var airBrandingThemesLogo = {
1300
+ marginLeft: 0
1301
+ };
1302
+ var slateBrandingThemesLogo = {
1303
+ marginLeft: 0
1304
+ };
1305
+ var templateOverrides$c = {
1306
+ air: airBrandingThemesLogo,
1307
+ slate: slateBrandingThemesLogo
1308
+ };
1309
+
1310
+ var logo = {
1311
+ __proto__: null,
1312
+ templateOverrides: templateOverrides$c,
1313
+ 'default': brandingThemesLogo
1314
+ };
1315
+
1316
+ var brandingThemesSpacer = {
1317
+ content: '""',
1318
+ display: 'flex',
1319
+ flexGrow: 1
1320
+ };
1321
+
1322
+ var brandingThemesTopSpacer = _objectSpread2(_objectSpread2({}, brandingThemesSpacer), {}, {
1323
+ maxHeight: 225
1324
+ });
1325
+
1326
+ var brandingThemesVariants = {
1327
+ brandingThemesPageContainer: brandingThemesPageContainer,
1328
+ brandingThemesPageContent: brandingThemesPageContent,
1329
+ brandingThemesCard: brandingThemesCard,
1330
+ brandingThemesLogoContainer: brandingThemesLogoContainer,
1331
+ brandingThemesLogo: brandingThemesLogo,
1332
+ brandingThemesFooterContainer: brandingThemesFooterContainer,
1333
+ brandingThemesFormContainer: brandingThemesFormContainer,
1334
+ brandingThemesTopSpacer: brandingThemesTopSpacer,
1335
+ brandingThemesBottomSpacer: brandingThemesSpacer
1336
+ };
1337
+ var defaultThemeOverrides$h = function defaultThemeOverrides(defaultTheme) {
1338
+ return {
1339
+ brandingThemesPageContainer: applyCustomizations(pageContainer, defaultTheme),
1340
+ brandingThemesLogoContainer: applyCustomizations(logoContainer, defaultTheme),
1341
+ brandingThemesCard: applyCustomizations(card, defaultTheme),
1342
+ brandingThemesLogo: applyCustomizations(logo, defaultTheme),
1343
+ brandingThemesFooterContainer: applyCustomizations(footer, defaultTheme),
1344
+ brandingThemesPageContent: applyCustomizations(pageContent, defaultTheme),
1345
+ brandingThemesFormContainer: applyCustomizations(formContainer, defaultTheme)
1346
+ };
1347
+ };
1348
+
1349
+ var layoutVariants = {
1350
+ __proto__: null,
1351
+ defaultThemeOverrides: defaultThemeOverrides$h,
1352
+ 'default': brandingThemesVariants
1353
+ };
1354
+
1355
+ var brandingThemesImages = {
1356
+ brandingThemesLogo: brandingThemesLogo
1357
+ };
1358
+ var defaultThemeOverrides$i = function defaultThemeOverrides(defaultTheme) {
1359
+ return {
1360
+ brandingThemesLogo: applyCustomizations(logo, defaultTheme)
1361
+ };
1362
+ };
1363
+
1364
+ var images = {
1365
+ __proto__: null,
1366
+ defaultThemeOverrides: defaultThemeOverrides$i,
1367
+ 'default': brandingThemesImages
1368
+ };
1369
+
1370
+ var endUserSeparator = {
1371
+ bg: 'line.hairline',
1372
+ width: '100%',
1373
+ height: '1px',
1374
+ my: '5px',
1375
+ '&.is-vertical': {
1376
+ width: '1px',
1377
+ height: '100%',
1378
+ mx: '5px'
1379
+ }
1380
+ };
1381
+
1382
+ var base = 10;
1383
+ var space = {
1384
+ xs: base * 0.5,
1385
+ sm: base,
1386
+ md: base * 1.5,
1387
+ lg: base * 2.5,
1388
+ xl: base * 4,
1389
+ xx: base * 6.5
1390
+ };
1391
+ var fontSizes = {
1392
+ xs: '11px',
1393
+ sm: '13px',
1394
+ md: '15px',
1395
+ lg: '22px',
1396
+ xl: '28px',
1397
+ xx: '36px'
1398
+ };
1399
+ var fontWeights = {
1400
+ regular: 400,
1401
+ light: 300,
1402
+ semibold: 600,
1403
+ bold: 700
1404
+ };
1405
+ var card$1 = {
1406
+ bg: 'cardBg',
1407
+ boxShadow: 'overlay',
1408
+ boxSizing: 'border-box',
1409
+ margin: '0 auto',
1410
+ maxWidth: 400,
1411
+ minHeight: 200,
1412
+ position: 'relative',
1413
+ width: '100%',
1414
+ p: 'xl'
1415
+ };
1416
+ var shadows = {
1417
+ overlay: '0 1px 4px 1px rgba(121, 128, 135, 0.35)',
1418
+ standard: '0 1px 3px rgba(121, 128, 135, 0.35)',
1419
+ row: '0 0 9px rgba(121, 128, 135, 0.35)',
1420
+ focus: '0 0 5px rgba(121, 128, 135, 0.35)'
1421
+ };
1422
+ var endUserTheme = {
1423
+ name: 'End User',
1424
+ fonts: {
1425
+ standard: '"proxima-nova", "helvetica", "arial", sans-serif'
1426
+ },
1427
+ space: space,
1428
+ shadows: shadows,
1429
+ colors: endUserColors,
1430
+ buttons: endUserButtons,
1431
+ fontSizes: fontSizes,
1432
+ fontWeights: fontWeights,
1433
+ text: endUserText,
1434
+ forms: endUserForms,
1435
+ images: brandingThemesImages,
1436
+ styles: {
1437
+ a: endUserLink
1438
+ },
1439
+ variants: _objectSpread2({
1440
+ card: card$1,
1441
+ boxes: {
1442
+ inputInContainerSlot: {
1443
+ position: 'absolute',
1444
+ bg: 'transparent',
1445
+ right: 'sm',
1446
+ top: '50%',
1447
+ transform: 'translateY(-50%)'
1448
+ }
1449
+ },
1450
+ separator: endUserSeparator,
1451
+ listBox: listBox,
1452
+ popoverMenu: endUserPopoverMenu,
1453
+ link: endUserLink
1454
+ }, brandingThemesVariants)
1455
+ };
1456
+ var defaultThemeOverrides$j = function defaultThemeOverrides(defaultTheme) {
1457
+ return {
1458
+ colors: applyCustomizations(colors, defaultTheme),
1459
+ buttons: applyCustomizations(buttons, defaultTheme),
1460
+ text: applyCustomizations(text, defaultTheme),
1461
+ forms: applyCustomizations(forms, defaultTheme),
1462
+ images: applyCustomizations(images, defaultTheme),
1463
+ variants: _objectSpread2({
1464
+ link: applyCustomizations(link, defaultTheme),
1465
+ listBox: applyCustomizations(listBox$1, defaultTheme),
1466
+ popoverMenu: applyCustomizations(popoverMenu, defaultTheme)
1467
+ }, applyCustomizations(layoutVariants, defaultTheme))
1468
+ };
1469
+ };
1470
+
1471
+ var endUserTheme$1 = {
1472
+ __proto__: null,
1473
+ defaultThemeOverrides: defaultThemeOverrides$j,
1474
+ 'default': endUserTheme
1475
+ };
1476
+
1477
+ var astroModifications = {
1478
+ forms: {
1479
+ label: {
1480
+ checkbox: _objectSpread2(_objectSpread2(_objectSpread2({}, astroTheme$1.text.base), wordWrap), {}, {
1481
+ div: {
1482
+ flexShrink: 0
1483
+ }
1484
+ }),
1485
+ radio: _objectSpread2(_objectSpread2(_objectSpread2({}, astroTheme$1.text.base), wordWrap), {}, {
1486
+ div: {
1487
+ flexShrink: 0
1488
+ }
1489
+ }),
1490
+ indicator: {
1491
+ display: 'none !important'
1492
+ }
1493
+ }
1494
+ }
1495
+ };
1496
+ var astroTheme = _.merge(_.cloneDeep(astroTheme$1), astroModifications);
1497
+
1498
+ var getTheme = function getTheme(themeName, defaultTheme) {
1499
+ switch (themeName) {
1500
+ case 'astro':
1501
+ return astroTheme;
1502
+
1503
+ case 'end-user':
1504
+ default:
1505
+ if (defaultTheme) {
1506
+ return applyCustomizations(endUserTheme$1, defaultTheme);
1507
+ }
1508
+
1509
+ return endUserTheme;
1510
+ }
1511
+ };
1512
+
1513
+ var ThemeWrapper = function ThemeWrapper(_ref) {
1514
+ var theme = _ref.theme,
1515
+ children = _ref.children;
1516
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GlobalStyles, null), /*#__PURE__*/React.createElement(ThemeProvider, {
1517
+ theme: theme || astroTheme
1518
+ }, /*#__PURE__*/React.createElement(Box, {
1519
+ height: "100%"
1520
+ }, children)));
1521
+ };
1522
+
1523
+ ThemeWrapper.propTypes = {
1524
+ theme: PropTypes.shape(),
1525
+ children: PropTypes.element.isRequired
1526
+ };
1527
+ ThemeWrapper.defaultProps = {
1528
+ theme: null
1529
+ };
1530
+
1531
+ var sanitizeHtmlOptions = {
1532
+ allowedTags: ['a', 'b', 'blockquote', 'br', 'cite', 'code', 'dd', 'dl', 'dt', 'em', 'i', 'li', 'ol', 'p', 'pre', 'q', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'u', 'ul', 'h1', 'h2', 'h3', 'hr'],
1533
+ allowedAttributes: {
1534
+ a: ['href', 'target'],
1535
+ blockquote: ['cite'],
1536
+ q: ['cite'],
1537
+ '*': ['class']
1538
+ }
1539
+ };
1540
+
1541
+ var sanitize = function sanitize(string) {
1542
+ return sanitizeHtml(string, sanitizeHtmlOptions);
1543
+ };
1544
+
1545
+ var ThemedMarkdown = function ThemedMarkdown(_ref) {
1546
+ var _theme$text, _theme$text2, _theme$text2$heading, _theme$text3, _theme$text3$heading, _theme$text4, _theme$text4$heading, _theme$variants, _theme$variants$link, _theme$colors, _theme$colors$line;
1547
+
1548
+ var html = _ref.html;
1549
+ var theme = useTheme();
1550
+ var styles = {
1551
+ display: 'block !important',
1552
+ lineHeight: '1 !important',
1553
+ overflowWrap: 'break-word',
1554
+ wordBreak: 'break-word'
1555
+ };
1556
+ var themeStyles = theme ? _objectSpread2(_objectSpread2({}, (_theme$text = theme.text) === null || _theme$text === void 0 ? void 0 : _theme$text.base), {}, {
1557
+ 'h1, h2, h3': {
1558
+ color: (_theme$text2 = theme.text) === null || _theme$text2 === void 0 ? void 0 : (_theme$text2$heading = _theme$text2.heading) === null || _theme$text2$heading === void 0 ? void 0 : _theme$text2$heading.color,
1559
+ fontWeight: (_theme$text3 = theme.text) === null || _theme$text3 === void 0 ? void 0 : (_theme$text3$heading = _theme$text3.heading) === null || _theme$text3$heading === void 0 ? void 0 : _theme$text3$heading.fontWeight,
1560
+ fontFamily: (_theme$text4 = theme.text) === null || _theme$text4 === void 0 ? void 0 : (_theme$text4$heading = _theme$text4.heading) === null || _theme$text4$heading === void 0 ? void 0 : _theme$text4$heading.fontFamily
1561
+ },
1562
+ a: {
1563
+ color: (_theme$variants = theme.variants) === null || _theme$variants === void 0 ? void 0 : (_theme$variants$link = _theme$variants.link) === null || _theme$variants$link === void 0 ? void 0 : _theme$variants$link.color,
1564
+ textDecoration: 'none'
1565
+ },
1566
+ 'a:hover': {
1567
+ textDecoration: 'underline'
1568
+ },
1569
+ hr: {
1570
+ width: '100%',
1571
+ height: '1px !important',
1572
+ border: 'none',
1573
+ margin: '5px 0 !important',
1574
+ backgroundColor: ((_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : (_theme$colors$line = _theme$colors.line) === null || _theme$colors$line === void 0 ? void 0 : _theme$colors$line.hairline) || '#e4e6e9'
1575
+ }
1576
+ }) : {};
1577
+ return /*#__PURE__*/React.createElement(Box$1, {
1578
+ "data-id": "html-box",
1579
+ sx: _objectSpread2(_objectSpread2({}, styles), themeStyles),
1580
+ dangerouslySetInnerHTML: {
1581
+ __html: sanitize(html)
1582
+ }
1583
+ });
1584
+ };
1585
+
1586
+ ThemedMarkdown.propTypes = {
1587
+ html: PropTypes.string.isRequired
1588
+ };
1589
+
1590
+ var ThemedPage = function ThemedPage(props) {
1591
+ var defaultTheme = props.defaultTheme,
1592
+ children = props.children;
1593
+ var theme = getTheme('end-user', defaultTheme);
1594
+ var logo = getLogo(defaultTheme);
1595
+ var footer = getFooter(defaultTheme);
1596
+ return /*#__PURE__*/React.createElement(ThemeWrapper, {
1597
+ theme: theme
1598
+ }, /*#__PURE__*/React.createElement(Box, {
1599
+ variant: "brandingThemesPageContainer",
1600
+ "data-id": "page-container"
1601
+ }, /*#__PURE__*/React.createElement(Box, {
1602
+ variant: "brandingThemesPageContent",
1603
+ "data-id": "page-content"
1604
+ }, /*#__PURE__*/React.createElement(Box, {
1605
+ variant: "brandingThemesTopSpacer",
1606
+ "data-id": "top-spacer"
1607
+ }), /*#__PURE__*/React.createElement(Box, {
1608
+ variant: "brandingThemesCard",
1609
+ "data-id": "card"
1610
+ }, (logo || (defaultTheme === null || defaultTheme === void 0 ? void 0 : defaultTheme.template) === 'air') && /*#__PURE__*/React.createElement(Box, {
1611
+ variant: "brandingThemesLogoContainer",
1612
+ "data-id": "logo-container"
1613
+ }, logo && /*#__PURE__*/React.createElement(Image, {
1614
+ variant: "brandingThemesLogo",
1615
+ src: logo,
1616
+ "data-id": "logo"
1617
+ })), /*#__PURE__*/React.createElement(Box, {
1618
+ variant: "brandingThemesFormContainer",
1619
+ "data-id": "form-container"
1620
+ }, children, (footer || (defaultTheme === null || defaultTheme === void 0 ? void 0 : defaultTheme.template) === 'air') && /*#__PURE__*/React.createElement(Box, {
1621
+ variant: "brandingThemesFooterContainer",
1622
+ "data-id": "footer-container"
1623
+ }, footer && /*#__PURE__*/React.createElement(ThemedMarkdown, {
1624
+ html: footer
1625
+ })))), /*#__PURE__*/React.createElement(Box, {
1626
+ variant: "brandingThemesBottomSpacer",
1627
+ "data-id": "bottom-spacer"
1628
+ }))));
1629
+ };
1630
+
1631
+ ThemedPage.propTypes = {
1632
+ defaultTheme: PropTypes.shape().isRequired,
1633
+ children: PropTypes.element.isRequired
1634
+ };
1635
+
1636
+ export { ThemedMarkdown, ThemedPage, getTheme };
1637
+ //# sourceMappingURL=index.modern.js.map