@spothero/ui 25.2.0 → 25.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/components/Accordion/AccordionActionButton.d.ts +2 -1
  2. package/dist/components/Accordion/styles/index.d.ts +2 -2
  3. package/dist/components/Badge/styles/index.d.ts +78 -0
  4. package/dist/components/Button/Button.styles.d.ts +601 -0
  5. package/dist/components/Card/Card.d.ts +4 -0
  6. package/dist/components/Checkbox/styles/index.d.ts +200 -0
  7. package/dist/components/Container/Container.d.ts +4 -0
  8. package/dist/components/Container/Container.styles.d.ts +10 -0
  9. package/dist/components/Divider/Divider.d.ts +11 -0
  10. package/dist/components/Divider/Divider.styles.d.ts +40 -0
  11. package/dist/components/Drawer/styles/index.d.ts +149 -0
  12. package/dist/components/FormControl/FormControl.d.ts +13 -0
  13. package/dist/components/Grid/GridItem.styles.d.ts +4 -0
  14. package/dist/components/Heading/Heading.styles.d.ts +66 -0
  15. package/dist/components/Icon/Icon.d.ts +1 -1
  16. package/dist/components/Input/styles/index.d.ts +217 -0
  17. package/dist/components/Link/Link.styles.d.ts +102 -0
  18. package/dist/components/List/styles/index.d.ts +32 -0
  19. package/dist/components/List/styles/item.styles.d.ts +4 -0
  20. package/dist/components/Menu/Menu.styles.d.ts +258 -0
  21. package/dist/components/Modal/styles/body.d.ts +30 -0
  22. package/dist/components/Modal/styles/closeButton.d.ts +18 -0
  23. package/dist/components/Modal/styles/dialog.d.ts +16 -0
  24. package/dist/components/Modal/styles/dialogContainer.d.ts +12 -0
  25. package/dist/components/Modal/styles/footer.d.ts +6 -0
  26. package/dist/components/Modal/styles/header.d.ts +10 -0
  27. package/dist/components/Modal/styles/index.d.ts +227 -0
  28. package/dist/components/Modal/styles/overlay.d.ts +5 -0
  29. package/dist/components/Popover/styles/index.d.ts +100 -0
  30. package/dist/components/Popover/styles/popover-body.d.ts +4 -0
  31. package/dist/components/Popover/styles/popover-content.d.ts +20 -0
  32. package/dist/components/Popover/styles/popover-header.d.ts +5 -0
  33. package/dist/components/Popover/styles/popper.d.ts +4 -0
  34. package/dist/components/Progress/Progress.styles.d.ts +75 -0
  35. package/dist/components/Radio/styles/index.d.ts +292 -0
  36. package/dist/components/RefreshedInput/Button/styles/index.d.ts +413 -0
  37. package/dist/components/RefreshedInput/FormControl/index.d.ts +2 -1
  38. package/dist/components/RefreshedInput/Input/styles/index.d.ts +260 -0
  39. package/dist/components/RefreshedInput/Select/Select.d.ts +2 -1
  40. package/dist/components/Select/styles/index.d.ts +2 -2
  41. package/dist/components/Skeleton/Skeleton.styles.d.ts +26 -0
  42. package/dist/components/Spinner/Spinner.d.ts +12 -0
  43. package/dist/components/Spinner/Spinner.styles.d.ts +144 -0
  44. package/dist/components/Switch/styles/index.d.ts +116 -0
  45. package/dist/components/Table/Table.styles.d.ts +69 -0
  46. package/dist/components/Tabs/styles/index.d.ts +308 -0
  47. package/dist/components/Text/Text.styles.d.ts +30 -0
  48. package/dist/components/styles.d.ts +26 -0
  49. package/dist/index.cjs.js +1847 -745
  50. package/dist/index.cjs.js.map +1 -1
  51. package/dist/index.d.ts +248 -0
  52. package/dist/index.esm.js +1847 -745
  53. package/dist/index.esm.js.map +1 -1
  54. package/dist/theme/base/breakpoints.d.ts +6 -6
  55. package/dist/theme/base/colors.d.ts +106 -115
  56. package/dist/theme/base/index.d.ts +7 -7
  57. package/dist/theme/base/notifications.d.ts +80 -104
  58. package/dist/theme/base/sizes.d.ts +41 -41
  59. package/dist/theme/base/typography.d.ts +22 -22
  60. package/dist/theme/base/zindices.d.ts +15 -15
  61. package/dist/theme/global.d.ts +21 -0
  62. package/dist/theme/index.d.ts +2 -0
  63. package/package.json +14 -9
package/dist/index.cjs.js CHANGED
@@ -284,87 +284,51 @@ AlwaysMountedModal.propTypes = {
284
284
  };
285
285
 
286
286
  const container = {
287
- base: '100%',
288
- // 640px
289
- tablet: '45rem',
290
- // 720px
291
- desktop: '72rem' // 1152px
287
+ base: '100%', // 640px
288
+ tablet: '45rem', // 720px
289
+ desktop: '72rem', // 1152px
292
290
  };
293
291
  const sizes$6 = {
294
- container,
295
- 0: '0',
296
- 0.5: '0.125rem',
297
- // 2px
298
- 1: '0.25rem',
299
- // 4px
300
- 1.5: '0.375rem',
301
- // 6px
302
- 2: '0.5rem',
303
- // 8px
304
- 2.5: '0.625rem',
305
- // 10px
306
- 3: '0.75rem',
307
- // 12px
308
- 3.5: '0.875rem',
309
- // 14px
310
- 4: '1rem',
311
- // 16px
312
- 4.5: '1.125rem',
313
- // 18px
314
- 5: '1.25rem',
315
- // 20px
316
- 5.5: '1.375rem',
317
- // 22px
318
- 6: '1.5rem',
319
- // 24px
320
- 7: '1.75rem',
321
- // 28px
322
- 8: '2rem',
323
- // 32px
324
- 9: '2.25rem',
325
- // 36px
326
- 10: '2.5rem',
327
- // 40px
328
- 12: '3rem',
329
- // 48px
330
- 14: '3.5rem',
331
- // 56px
332
- 16: '4rem',
333
- // 64px
334
- 20: '5rem',
335
- // 80px
336
- 24: '6rem',
337
- // 96px
338
- 28: '7rem',
339
- // 112px
340
- 32: '8rem',
341
- // 128px
342
- 36: '9rem',
343
- // 144px
344
- 40: '10rem',
345
- // 160px
346
- 44: '11rem',
347
- // 176px
348
- 48: '12rem',
349
- // 192px
350
- 52: '13rem',
351
- // 208px
352
- 56: '14rem',
353
- // 224px
354
- 60: '15rem',
355
- // 240px
356
- 64: '16rem',
357
- // 256px
358
- 72: '18rem',
359
- // 272px
360
- 80: '20rem',
361
- // 288px
362
- 96: '24rem',
363
- // 384px
364
- px: '1px',
365
- full: '100%',
366
- max: 'max-content',
367
- min: 'min-content'
292
+ container,
293
+ 0: '0',
294
+ 0.5: '0.125rem', // 2px
295
+ 1: '0.25rem', // 4px
296
+ 1.5: '0.375rem', // 6px
297
+ 2: '0.5rem', // 8px
298
+ 2.5: '0.625rem', // 10px
299
+ 3: '0.75rem', // 12px
300
+ 3.5: '0.875rem', // 14px
301
+ 4: '1rem', // 16px
302
+ 4.5: '1.125rem', // 18px
303
+ 5: '1.25rem', // 20px
304
+ 5.5: '1.375rem', // 22px
305
+ 6: '1.5rem', // 24px
306
+ 7: '1.75rem', // 28px
307
+ 8: '2rem', // 32px
308
+ 9: '2.25rem', // 36px
309
+ 10: '2.5rem', // 40px
310
+ 12: '3rem', // 48px
311
+ 14: '3.5rem', // 56px
312
+ 16: '4rem', // 64px
313
+ 20: '5rem', // 80px
314
+ 24: '6rem', // 96px
315
+ 28: '7rem', // 112px
316
+ 32: '8rem', // 128px
317
+ 36: '9rem', // 144px
318
+ 40: '10rem', // 160px
319
+ 44: '11rem', // 176px
320
+ 48: '12rem', // 192px
321
+ 52: '13rem', // 208px
322
+ 56: '14rem', // 224px
323
+ 60: '15rem', // 240px
324
+ 64: '16rem', // 256px
325
+ 72: '18rem', // 272px
326
+ 80: '20rem', // 288px
327
+ 96: '24rem', // 384px
328
+ px: '1px',
329
+ full: '100%',
330
+ max: 'max-content',
331
+ min: 'min-content',
368
332
  };
369
333
 
370
334
  const white = '#ffffff';
@@ -372,393 +336,376 @@ const black = '#000000';
372
336
  const brandBlue = '#0082ff';
373
337
  const modalOverlay = '#21212160';
374
338
  const gray = {
375
- 50: '#f6f7f9',
376
- 100: '#e1e6ec',
377
- 200: '#cbd4de',
378
- 300: '#afbdcc',
379
- 400: '#94a7ba',
380
- 500: '#7890a8',
381
- 600: '#537495',
382
- 700: '#3b5261',
383
- 800: '#2f3f4b',
384
- 900: '#26323c'
339
+ 50: '#f6f7f9',
340
+ 100: '#e1e6ec',
341
+ 200: '#cbd4de',
342
+ 300: '#afbdcc',
343
+ 400: '#94a7ba',
344
+ 500: '#7890a8',
345
+ 600: '#537495',
346
+ 700: '#3b5261',
347
+ 800: '#2f3f4b',
348
+ 900: '#26323c',
385
349
  };
386
350
  const blue = {
387
- 50: '#f1fcff',
388
- 100: '#e6f8fd',
389
- 200: '#c0e9fb',
390
- 300: '#96d3fa',
391
- 400: '#5baafa',
392
- 500: '#1271eb',
393
- 600: '#1d58f2',
394
- 700: '#1b46da',
395
- 800: '#1735a6',
396
- 900: '#132b7f'
351
+ 50: '#f1fcff',
352
+ 100: '#e6f8fd',
353
+ 200: '#c0e9fb',
354
+ 300: '#96d3fa',
355
+ 400: '#5baafa',
356
+ 500: '#1271eb',
357
+ 600: '#1d58f2',
358
+ 700: '#1b46da',
359
+ 800: '#1735a6',
360
+ 900: '#132b7f',
397
361
  };
398
362
  const navy = {
399
- 50: '#f4fafc',
400
- 100: '#e4f7fb',
401
- 200: '#bfebf6',
402
- 300: '#92d9f4',
403
- 400: '#51b7f0',
404
- 500: '#2590ea',
405
- 600: '#1a6cda',
406
- 700: '#1b55b6',
407
- 800: '#194185',
408
- 900: '#002d5b'
363
+ 50: '#f4fafc',
364
+ 100: '#e4f7fb',
365
+ 200: '#bfebf6',
366
+ 300: '#92d9f4',
367
+ 400: '#51b7f0',
368
+ 500: '#2590ea',
369
+ 600: '#1a6cda',
370
+ 700: '#1b55b6',
371
+ 800: '#194185',
372
+ 900: '#002d5b',
409
373
  };
410
374
  const green = {
411
- 50: '#e9fbf9',
412
- 100: '#d3f7ef',
413
- 200: '#a4f3d9',
414
- 300: '#65eabf',
415
- 400: '#1edb96',
416
- 500: '#09c66a',
417
- 600: '#08ad50',
418
- 700: '#008547',
419
- 800: '#11703e',
420
- 900: '#115a35'
375
+ 50: '#e9fbf9',
376
+ 100: '#d3f7ef',
377
+ 200: '#a4f3d9',
378
+ 300: '#65eabf',
379
+ 400: '#1edb96',
380
+ 500: '#09c66a',
381
+ 600: '#08ad50',
382
+ 700: '#008547',
383
+ 800: '#11703e',
384
+ 900: '#115a35',
421
385
  };
422
386
  const yellow = {
423
- 50: '#fff9e5',
424
- 100: '#faf0bd',
425
- 200: '#f6e67c',
426
- 300: '#f1d439',
427
- 400: '#ffbf02',
428
- 500: '#e19706',
429
- 600: '#cf7404',
430
- 700: '#ae5708',
431
- 800: '#8e440e',
432
- 900: '#743710'
387
+ 50: '#fff9e5',
388
+ 100: '#faf0bd',
389
+ 200: '#f6e67c',
390
+ 300: '#f1d439',
391
+ 400: '#ffbf02',
392
+ 500: '#e19706',
393
+ 600: '#cf7404',
394
+ 700: '#ae5708',
395
+ 800: '#8e440e',
396
+ 900: '#743710',
433
397
  };
434
398
  const red = {
435
- 50: '#fff3f0',
436
- 100: '#fdeef3',
437
- 200: '#fbcee6',
438
- 300: '#fba4d1',
439
- 400: '#fc6bad',
440
- 500: '#fc4086',
441
- 600: '#f7265f',
442
- 700: '#e01438',
443
- 800: '#b4193c',
444
- 900: '#901530'
399
+ 50: '#fff3f0',
400
+ 100: '#fdeef3',
401
+ 200: '#fbcee6',
402
+ 300: '#fba4d1',
403
+ 400: '#fc6bad',
404
+ 500: '#fc4086',
405
+ 600: '#f7265f',
406
+ 700: '#e01438',
407
+ 800: '#b4193c',
408
+ 900: '#901530',
445
409
  };
446
410
  const colors = {
447
- gray: _objectSpread2(_objectSpread2({}, gray), {}, {
448
- light: gray['50'],
449
- medium: gray['200'],
450
- dark: gray['600']
451
- }),
452
- blue,
453
- navy,
454
- red: _objectSpread2(_objectSpread2({}, red), {}, {
455
- default: red['700']
456
- }),
457
- green: _objectSpread2(_objectSpread2({}, green), {}, {
458
- default: green['700']
459
- }),
460
- yellow: _objectSpread2(_objectSpread2({}, yellow), {}, {
461
- default: yellow['400']
462
- }),
463
- primary: _objectSpread2(_objectSpread2({}, blue), {}, {
464
- default: blue['500']
465
- }),
466
- secondary: _objectSpread2(_objectSpread2({}, navy), {}, {
467
- default: navy['900']
468
- }),
469
- success: green['700'],
470
- warning: yellow['400'],
471
- error: red['700'],
472
- accent: gray['200'],
473
- text: {
411
+ gray: {
412
+ ...gray,
413
+ light: gray['50'],
414
+ medium: gray['200'],
415
+ dark: gray['600'],
416
+ },
417
+ blue,
418
+ navy,
419
+ red: {
420
+ ...red,
421
+ default: red['700'],
422
+ },
423
+ green: {
424
+ ...green,
425
+ default: green['700'],
426
+ },
427
+ yellow: {
428
+ ...yellow,
429
+ default: yellow['400'],
430
+ },
474
431
  primary: {
475
- light: black,
476
- dark: white
432
+ ...blue,
433
+ default: blue['500'],
434
+ brand: blue['500'],
477
435
  },
478
436
  secondary: {
479
- light: gray['600']
437
+ ...navy,
438
+ default: navy['900'],
480
439
  },
481
- link: {
482
- light: blue['500'],
483
- dark: white
484
- }
485
- },
486
- background: {
487
- gray: gray['50'],
488
- white
489
- },
490
- white,
491
- black,
492
- brandBlue,
493
- modalOverlay
440
+ success: green['700'],
441
+ warning: yellow['400'],
442
+ error: red['700'],
443
+ accent: gray['200'],
444
+ text: {
445
+ primary: {
446
+ light: black,
447
+ dark: white,
448
+ },
449
+ secondary: {
450
+ light: gray['600'],
451
+ },
452
+ link: {
453
+ light: blue['500'],
454
+ dark: white,
455
+ },
456
+ },
457
+ background: {
458
+ gray: gray['50'],
459
+ white,
460
+ },
461
+ white,
462
+ black,
463
+ brandBlue,
464
+ modalOverlay,
494
465
  };
495
466
 
496
467
  const shadows = {
497
- outline: '0 0 0 3px rgba(29, 88, 242, 0.7)',
498
- // primary.600, 70% opacity
499
- drawer: '-8px 0 16px 0 rgba(33,33,33,.1)'
468
+ outline: '0 0 0 3px rgba(29, 88, 242, 0.7)', // primary.600, 70% opacity
469
+ drawer: '-8px 0 16px 0 rgba(33,33,33,.1)',
500
470
  };
501
471
  var shadows$1 = merge__default.default(react.theme.shadows, shadows);
502
472
 
503
473
  const indices = {
504
- hide: -100,
505
- // equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
506
- auto: 'auto',
507
- base: 0,
508
- // equivalent to $z-index-back in fe-core
509
- layer1: 100,
510
- // equivalent to $z-index-mid in fe-core
511
- layer2: 200,
512
- // equivalent to $z-index-fore in fe-core
513
- layer3: 300,
514
- // equivalent to $z-index-layer1 in fe-core
515
- layer4: 400,
516
- // equivalent to $z-index-layer2 in fe-core
517
- layer5: 500,
518
- // equivalent to $z-index-layer3 in fe-core
519
- layer6: 600,
520
- // equivalent to $z-index-layer4 in fe-core
521
- layer7: 700,
522
- // equivalent to $z-index-modal-shim in fe-core
523
- layer8: 800,
524
- // equivalent to $z-index-modal in fe-core
525
- layer9: 900,
526
- // equivalent to $z-index-notification in fe-core
527
- layer10: 1000 // equivalent to $z-index-top in fe-core
474
+ hide: -100, // equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
475
+ auto: 'auto',
476
+ base: 0, // equivalent to $z-index-back in fe-core
477
+ layer1: 100, // equivalent to $z-index-mid in fe-core
478
+ layer2: 200, // equivalent to $z-index-fore in fe-core
479
+ layer3: 300, // equivalent to $z-index-layer1 in fe-core
480
+ layer4: 400, // equivalent to $z-index-layer2 in fe-core
481
+ layer5: 500, // equivalent to $z-index-layer3 in fe-core
482
+ layer6: 600, // equivalent to $z-index-layer4 in fe-core
483
+ layer7: 700, // equivalent to $z-index-modal-shim in fe-core
484
+ layer8: 800, // equivalent to $z-index-modal in fe-core
485
+ layer9: 900, // equivalent to $z-index-notification in fe-core
486
+ layer10: 1000, // equivalent to $z-index-top in fe-core
528
487
  };
529
488
 
530
489
  const breakpoints = {
531
- mobileXL: '30rem',
532
- // 480px
533
- tablet: '48rem',
534
- // 768px
535
- desktop: '64rem',
536
- // 1024px
537
- desktopXL: '90rem' // 1440px
490
+ mobileXL: '30rem', // 480px
491
+ tablet: '48rem', // 768px
492
+ desktop: '64rem', // 1024px
493
+ desktopXL: '90rem', // 1440px
538
494
  };
539
495
 
540
496
  const fonts = {
541
- heading: "\"Plus Jakarta Sans\", sans-serif",
542
- body: "\"Plus Jakarta Sans\", sans-serif"
497
+ heading: `"Plus Jakarta Sans", sans-serif`,
498
+ body: `"Plus Jakarta Sans", sans-serif`,
543
499
  };
544
500
  const fontSizes = {
545
- '5xl': '3.5rem',
546
- // 56px
547
- '4xl': '3rem',
548
- // 48px
549
- '3xl': '2.5rem',
550
- // 40px
551
- '2xl': '2rem',
552
- // 32px
553
- xl: '1.5rem',
554
- // 24px
555
- lg: '1.25rem',
556
- // 20px
557
- md: '1.125rem',
558
- // 18px
559
- base: '1rem',
560
- // 16px
561
- sm: '0.875rem',
562
- // 14px
563
- xs: '0.75rem' // 12px
501
+ '5xl': '3.5rem', // 56px
502
+ '4xl': '3rem', // 48px
503
+ '3xl': '2.5rem', // 40px
504
+ '2xl': '2rem', // 32px
505
+ xl: '1.5rem', // 24px
506
+ lg: '1.25rem', // 20px
507
+ md: '1.125rem', // 18px
508
+ base: '1rem', // 16px
509
+ sm: '0.875rem', // 14px
510
+ xs: '0.75rem', // 12px
564
511
  };
565
512
  const fontWeights = {
566
- light: 300,
567
- normal: 400,
568
- medium: 500,
569
- semibold: 600,
570
- bold: 700
513
+ light: 300,
514
+ normal: 400,
515
+ medium: 500,
516
+ semibold: 600,
517
+ bold: 700,
571
518
  };
572
519
 
573
520
  const NOTIFICATION_STATUSES = {
574
- NEUTRAL: 'neutral',
575
- ERROR: 'error',
576
- WARNING: 'warning',
577
- SUCCESS: 'success'
521
+ NEUTRAL: 'neutral',
522
+ ERROR: 'error',
523
+ WARNING: 'warning',
524
+ SUCCESS: 'success',
578
525
  };
579
526
  const NOTIFICATION_SIZES = {
580
- SM: 'sm',
581
- MD: 'md',
582
- LG: 'lg'
527
+ SM: 'sm',
528
+ MD: 'md',
529
+ LG: 'lg',
583
530
  };
584
531
  const notificationBaseStyle = {
585
- container: {
586
- paddingY: 2,
587
- borderRadius: 'base'
588
- },
589
- actionButton: {
590
- fontSize: 'sm',
591
- height: 'fit-content',
592
- lineHeight: '1.4',
593
- color: 'primary.600',
594
- _hover: {
595
- color: 'primary.700'
596
- }
597
- },
598
- dismissButton: {
599
- color: 'gray.600',
600
- borderColor: 'transparent',
601
- borderWidth: '2px',
602
- padding: 0,
603
- width: 10,
604
- height: 10,
605
- backgroundColor: 'transparent',
606
- borderRadius: 'base',
607
- marginLeft: 2,
608
- _hover: {
609
- color: 'gray.700'
610
- },
611
- _focus: {
612
- color: 'gray.700',
613
- borderColor: 'white',
614
- boxShadow: 'outline'
615
- }
616
- },
617
- icon: {
618
- width: 6,
619
- marginRight: 2,
620
- height: 'auto'
621
- },
622
- description: {
623
- lineHeight: 1.4
624
- },
625
- title: {
626
- lineHeight: 1.4
627
- },
628
- variants: {},
629
- sizes: {
630
- sm: {
631
- title: {
632
- fontSize: 'xs'
633
- },
634
- description: {
635
- fontSize: 'xs'
636
- }
637
- },
638
- md: {
639
- title: {
640
- fontSize: 'sm'
641
- },
642
- description: {
643
- fontSize: 'sm'
644
- }
532
+ container: {
533
+ paddingY: 2,
534
+ borderRadius: 'base',
645
535
  },
646
- lg: {
647
- title: {
648
- fontSize: 'base'
649
- },
650
- description: {
651
- fontSize: 'base'
652
- }
653
- }
654
- }
655
- };
656
- const notificationStatusStyles = status => {
657
- switch (status) {
658
- case NOTIFICATION_STATUSES.NEUTRAL:
659
- return {
660
- container: {
661
- background: 'blue.50'
662
- },
663
- icon: {
664
- color: 'blue.500'
665
- },
666
- dismissButton: {
667
- _hover: {
668
- background: 'blue.200'
669
- },
670
- _focus: {
671
- background: 'blue.200'
672
- }
673
- }
674
- };
675
- case NOTIFICATION_STATUSES.WARNING:
676
- return {
677
- container: {
678
- background: 'yellow.50'
536
+ actionButton: {
537
+ fontSize: 'sm',
538
+ height: 'fit-content',
539
+ lineHeight: '1.4',
540
+ color: 'primary.600',
541
+ _hover: {
542
+ color: 'primary.700',
679
543
  },
680
- icon: {
681
- color: 'yellow.400'
544
+ },
545
+ dismissButton: {
546
+ color: 'gray.600',
547
+ borderColor: 'transparent',
548
+ borderWidth: '2px',
549
+ padding: 0,
550
+ width: 10,
551
+ height: 10,
552
+ backgroundColor: 'transparent',
553
+ borderRadius: 'base',
554
+ marginLeft: 2,
555
+ _hover: {
556
+ color: 'gray.700',
682
557
  },
683
- dismissButton: {
684
- _hover: {
685
- background: 'yellow.200'
686
- },
687
- _focus: {
688
- background: 'yellow.200'
689
- }
690
- }
691
- };
692
- case NOTIFICATION_STATUSES.ERROR:
693
- return {
694
- container: {
695
- background: 'red.50'
558
+ _focus: {
559
+ color: 'gray.700',
560
+ borderColor: 'white',
561
+ boxShadow: 'outline',
696
562
  },
697
- icon: {
698
- color: 'red.700'
563
+ },
564
+ icon: {
565
+ width: 6,
566
+ marginRight: 2,
567
+ height: 'auto',
568
+ },
569
+ description: {
570
+ lineHeight: 1.4,
571
+ },
572
+ title: {
573
+ lineHeight: 1.4,
574
+ },
575
+ variants: {},
576
+ sizes: {
577
+ sm: {
578
+ title: {
579
+ fontSize: 'xs',
580
+ },
581
+ description: {
582
+ fontSize: 'xs',
583
+ },
699
584
  },
700
- dismissButton: {
701
- _hover: {
702
- background: 'red.200'
703
- },
704
- _focus: {
705
- background: 'red.200'
706
- }
707
- }
708
- };
709
- case NOTIFICATION_STATUSES.SUCCESS:
710
- return {
711
- container: {
712
- background: 'green.50'
585
+ md: {
586
+ title: {
587
+ fontSize: 'sm',
588
+ },
589
+ description: {
590
+ fontSize: 'sm',
591
+ },
713
592
  },
714
- icon: {
715
- color: 'green.700'
593
+ lg: {
594
+ title: {
595
+ fontSize: 'base',
596
+ },
597
+ description: {
598
+ fontSize: 'base',
599
+ },
716
600
  },
717
- dismissButton: {
718
- _hover: {
719
- background: 'green.200'
720
- },
721
- _focus: {
722
- background: 'green.200'
723
- }
724
- }
725
- };
726
- default:
727
- return {};
728
- }
601
+ },
729
602
  };
730
- const notificationSizeStyles = size => {
731
- switch (size) {
732
- case NOTIFICATION_SIZES.SM:
733
- return {
734
- title: {
735
- fontSize: 'xs'
736
- },
737
- description: {
738
- fontSize: 'xs'
739
- }
740
- };
741
- case NOTIFICATION_SIZES.MD:
742
- return {
743
- title: {
744
- fontSize: 'sm'
745
- },
746
- description: {
747
- fontSize: 'sm'
748
- }
749
- };
750
- case NOTIFICATION_SIZES.LG:
751
- return {
752
- title: {
753
- fontSize: 'base'
754
- },
755
- description: {
756
- fontSize: 'base'
757
- }
758
- };
759
- default:
760
- return {};
761
- }
603
+ const notificationStatusStyles = (status) => {
604
+ switch (status) {
605
+ case NOTIFICATION_STATUSES.NEUTRAL:
606
+ return {
607
+ container: {
608
+ background: 'blue.50',
609
+ },
610
+ icon: {
611
+ color: 'blue.500',
612
+ },
613
+ dismissButton: {
614
+ _hover: {
615
+ background: 'blue.200',
616
+ },
617
+ _focus: {
618
+ background: 'blue.200',
619
+ },
620
+ },
621
+ };
622
+ case NOTIFICATION_STATUSES.WARNING:
623
+ return {
624
+ container: {
625
+ background: 'yellow.50',
626
+ },
627
+ icon: {
628
+ color: 'yellow.400',
629
+ },
630
+ dismissButton: {
631
+ _hover: {
632
+ background: 'yellow.200',
633
+ },
634
+ _focus: {
635
+ background: 'yellow.200',
636
+ },
637
+ },
638
+ };
639
+ case NOTIFICATION_STATUSES.ERROR:
640
+ return {
641
+ container: {
642
+ background: 'red.50',
643
+ },
644
+ icon: {
645
+ color: 'red.700',
646
+ },
647
+ dismissButton: {
648
+ _hover: {
649
+ background: 'red.200',
650
+ },
651
+ _focus: {
652
+ background: 'red.200',
653
+ },
654
+ },
655
+ };
656
+ case NOTIFICATION_STATUSES.SUCCESS:
657
+ return {
658
+ container: {
659
+ background: 'green.50',
660
+ },
661
+ icon: {
662
+ color: 'green.700',
663
+ },
664
+ dismissButton: {
665
+ _hover: {
666
+ background: 'green.200',
667
+ },
668
+ _focus: {
669
+ background: 'green.200',
670
+ },
671
+ },
672
+ };
673
+ default:
674
+ return {};
675
+ }
676
+ };
677
+ const notificationSizeStyles = (size) => {
678
+ switch (size) {
679
+ case NOTIFICATION_SIZES.SM:
680
+ return {
681
+ title: {
682
+ fontSize: 'xs',
683
+ },
684
+ description: {
685
+ fontSize: 'xs',
686
+ },
687
+ };
688
+ case NOTIFICATION_SIZES.MD:
689
+ return {
690
+ title: {
691
+ fontSize: 'sm',
692
+ },
693
+ description: {
694
+ fontSize: 'sm',
695
+ },
696
+ };
697
+ case NOTIFICATION_SIZES.LG:
698
+ return {
699
+ title: {
700
+ fontSize: 'base',
701
+ },
702
+ description: {
703
+ fontSize: 'base',
704
+ },
705
+ };
706
+ default:
707
+ return {};
708
+ }
762
709
  };
763
710
 
764
711
  var base = /*#__PURE__*/Object.freeze({
@@ -834,14 +781,14 @@ const destructiveButtonStyles = {
834
781
  * ## OKLCH Color Adjustments Reference
835
782
  * | State | OKLCH Calculation | Visual Effect |
836
783
  * |-------|-------------------|---------------|
837
- * | Default | `primary.default` | Base color |
784
+ * | Default | `primary.brand` | Base color |
838
785
  * | Hover (light bg) | `calc(l - 0.1)` | 10% darker (lightness) |
839
786
  * | Active/Pressed | `calc(l - 0.15)` | 15% darker (lightness) |
840
787
  * | Hover (secondary) | `calc(l - 0.3)` | 3% darker (lightness) |
841
788
  * | Active/Pressed (secondary) | `calc(l - 0.6)` | 6% darker (lightness) |
842
789
  * | Hover (dark bg) | `calc(l + 0.1)` | 10% lighter (lightness) |
843
790
  * | Disabled | `opacity: 0.4` | 60% transparent |
844
- */
791
+ */
845
792
 
846
793
  //Helper function to make oklch color strings
847
794
  const generateOklchColor = (colorVar, adjustment) => {
@@ -849,22 +796,26 @@ const generateOklchColor = (colorVar, adjustment) => {
849
796
  };
850
797
 
851
798
  // 10% darker (lightness)
852
- const hoverPrimaryColor = generateOklchColor('primary-default', '- 0.1');
799
+ const hoverPrimaryColor = generateOklchColor('primary-brand', '- 0.1');
853
800
  // 15% darker (lightness)
854
- const activePrimaryColor = generateOklchColor('primary-default', '- 0.15');
801
+ const activePrimaryColor = generateOklchColor('primary-brand', '- 0.15');
855
802
  // 3% darker (lightness)
856
803
  const hoverSecondaryColor = generateOklchColor('white', '- 0.03');
857
804
  // 6% darker (lightness)
858
805
  const activeSecondaryColor = generateOklchColor('white', '- 0.06');
859
806
  // 10% lighter (lightness)
860
807
  const hoverDarkColor = generateOklchColor('yellow-default', '+ 0.1');
808
+ // 10% lighter (lightness) — for black variant hover
809
+ const hoverBlackColor = generateOklchColor('black', '+ 0.1');
810
+ // 15% lighter (lightness) — for black variant active
811
+ const activeBlackColor = generateOklchColor('black', '+ 0.15');
861
812
 
862
813
  /**
863
814
  * Button Variants - Simplified Color System Using OKLCH
864
815
  *
865
816
  * This implementation uses OKLCH relative color syntax for perceptually uniform color adjustments.
866
817
  * Benefits:
867
- * - White-label theming: Only need ONE brand color (primary.default)
818
+ * - White-label theming: Only need ONE brand color (primary.brand)
868
819
  * - No package dependencies (native CSS)
869
820
  * - Text color NOT affected (unlike CSS filters)
870
821
  * - Perceptually uniform adjustments (10% lighter looks consistent across all hues)
@@ -882,8 +833,8 @@ const hoverDarkColor = generateOklchColor('yellow-default', '+ 0.1');
882
833
  */
883
834
  const variants$d = {
884
835
  primary: {
885
- bg: 'primary.default',
886
- borderColor: 'primary.default',
836
+ bg: 'primary.brand',
837
+ borderColor: 'primary.brand',
887
838
  color: 'white',
888
839
  _hover: _objectSpread2({
889
840
  bg: hoverPrimaryColor,
@@ -980,6 +931,41 @@ const variants$d = {
980
931
  }
981
932
  }
982
933
  },
934
+ black: {
935
+ bg: 'black',
936
+ borderColor: 'black',
937
+ color: 'white',
938
+ py: 2,
939
+ _hover: _objectSpread2({
940
+ bg: hoverBlackColor,
941
+ borderColor: hoverBlackColor,
942
+ color: 'white'
943
+ }, disabledButtonHoverStyle),
944
+ _active: {
945
+ bg: activeBlackColor,
946
+ borderColor: activeBlackColor,
947
+ color: 'white'
948
+ }
949
+ },
950
+ blackOnDark: {
951
+ bg: 'white',
952
+ borderColor: 'white',
953
+ color: 'black',
954
+ py: 2,
955
+ _hover: _objectSpread2({
956
+ bg: hoverSecondaryColor,
957
+ borderColor: hoverSecondaryColor,
958
+ color: 'black'
959
+ }, disabledButtonHoverStyle),
960
+ _active: {
961
+ bg: activeSecondaryColor,
962
+ borderColor: activeSecondaryColor,
963
+ color: 'black'
964
+ },
965
+ _focus: {
966
+ boxShadow: '0 0 0 3px rgba(255, 255, 255, 0.7)'
967
+ }
968
+ },
983
969
  destructive: _objectSpread2({}, destructiveButtonStyles),
984
970
  destructiveOnDark: _objectSpread2({}, destructiveButtonStyles)
985
971
  };
@@ -1050,7 +1036,7 @@ const props = {
1050
1036
  variant: PropTypes__default.default.oneOf(Object.keys(variants$d))
1051
1037
  };
1052
1038
 
1053
- const _excluded$t = ["asAnchor", "isExternal", "height"];
1039
+ const _excluded$q = ["asAnchor", "isExternal", "height"];
1054
1040
  const anchorProps = function () {
1055
1041
  let isExternal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1056
1042
  return _objectSpread2({
@@ -1067,7 +1053,7 @@ const Button$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1067
1053
  isExternal,
1068
1054
  height = 'md'
1069
1055
  } = _ref,
1070
- props = _objectWithoutProperties(_ref, _excluded$t);
1056
+ props = _objectWithoutProperties(_ref, _excluded$q);
1071
1057
  return /*#__PURE__*/React__namespace.default.createElement(react.Button, _extends$6({
1072
1058
  iconSpacing: 2
1073
1059
  }, props, heightProps(height), (asAnchor || props.as === 'a') && anchorProps(isExternal), {
@@ -1080,7 +1066,7 @@ Button$1.defaultProps = {
1080
1066
  type: 'button'
1081
1067
  };
1082
1068
 
1083
- const _excluded$s = ["header", "drawerCloseButton", "children", "headerProps"];
1069
+ const _excluded$p = ["header", "drawerCloseButton", "children", "headerProps"];
1084
1070
  const Drawer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1085
1071
  let {
1086
1072
  header,
@@ -1088,7 +1074,7 @@ const Drawer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1088
1074
  children,
1089
1075
  headerProps
1090
1076
  } = _ref,
1091
- props = _objectWithoutProperties(_ref, _excluded$s);
1077
+ props = _objectWithoutProperties(_ref, _excluded$p);
1092
1078
  return /*#__PURE__*/React__namespace.default.createElement(react.Drawer, _extends$6({
1093
1079
  placement: "right"
1094
1080
  }, props, {
@@ -1220,7 +1206,7 @@ var SvgCheckmarkCircleFilled = function SvgCheckmarkCircleFilled(props, ref) {
1220
1206
  };
1221
1207
  var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgCheckmarkCircleFilled);
1222
1208
 
1223
- const _excluded$r = ["status", "title", "buttonProps", "buttonText", "buttonOnBottom", "showDismiss", "onDismissClick", "showIcon", "description", "icon"];
1209
+ const _excluded$o = ["status", "title", "buttonProps", "buttonText", "buttonOnBottom", "showDismiss", "onDismissClick", "showIcon", "description", "icon"];
1224
1210
  const statusIconMapping = {
1225
1211
  [NOTIFICATION_STATUSES.WARNING]: ForwardRef$3,
1226
1212
  [NOTIFICATION_STATUSES.SUCCESS]: ForwardRef$2,
@@ -1240,7 +1226,7 @@ const Alert = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1240
1226
  description,
1241
1227
  icon
1242
1228
  } = _ref,
1243
- props = _objectWithoutProperties(_ref, _excluded$r);
1229
+ props = _objectWithoutProperties(_ref, _excluded$o);
1244
1230
  const IconVariant = icon || statusIconMapping[status];
1245
1231
  // the issue with storybook breaking with hooks is still a problem, but once that's resolved this should be memoized
1246
1232
  const style = merge__default.default(_objectSpread2({}, react.theme.components.Alert.baseStyle), notificationBaseStyle, notificationStatusStyles(status), notificationSizeStyles(props.size));
@@ -1399,7 +1385,7 @@ const combineSizeWithVariant = _ref => {
1399
1385
  return styleProps;
1400
1386
  };
1401
1387
 
1402
- const _excluded$q = ["size"];
1388
+ const _excluded$n = ["size"];
1403
1389
  const sizeMapping = {
1404
1390
  [SIZE_SMALL]: 'sm',
1405
1391
  [SIZE_BODY]: 'md',
@@ -1409,7 +1395,7 @@ const Tabs = react.forwardRef((_ref, ref) => {
1409
1395
  let {
1410
1396
  size
1411
1397
  } = _ref,
1412
- props = _objectWithoutProperties(_ref, _excluded$q);
1398
+ props = _objectWithoutProperties(_ref, _excluded$n);
1413
1399
  return /*#__PURE__*/React__namespace.default.createElement(react.Tabs, _extends$6({
1414
1400
  size: sizeMapping[size]
1415
1401
  }, props, combineSizeWithVariant({
@@ -1452,65 +1438,1206 @@ var SvgChevronDown = function SvgChevronDown(props, ref) {
1452
1438
  };
1453
1439
  var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgChevronDown);
1454
1440
 
1455
- const _excluded$p = ["children", "label", "inputId", "helperText", "errorMessage", "isFieldset", "isOptional", "customRequiredText"];
1456
- const FormControl$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1457
- let {
1458
- children,
1459
- label,
1460
- inputId,
1461
- helperText,
1462
- errorMessage,
1463
- isFieldset,
1464
- isOptional,
1465
- customRequiredText
1466
- } = _ref,
1467
- props = _objectWithoutProperties(_ref, _excluded$p);
1468
- return /*#__PURE__*/React__namespace.default.createElement(react.FormControl, _extends$6({}, props, {
1469
- ref: ref,
1470
- as: isFieldset ? 'fieldset' : 'div',
1471
- borderWidth: "0"
1472
- }), label && /*#__PURE__*/React__namespace.default.createElement(react.FormLabel, {
1473
- color: "gray.600",
1474
- fontWeight: "semibold",
1475
- marginBottom: helperText ? 0 : 1,
1476
- fontSize: "sm",
1477
- htmlFor: inputId,
1478
- as: isFieldset ? 'legend' : 'label',
1479
- requiredIndicator: props !== null && props !== void 0 && props.isRequired && customRequiredText ? /*#__PURE__*/React__namespace.default.createElement(react.Text, {
1480
- marginLeft: 1,
1481
- as: "span",
1482
- variant: "caption",
1483
- color: "text.secondary.light"
1484
- }, customRequiredText) : null,
1485
- optionalIndicator: isOptional && !(props !== null && props !== void 0 && props.isRequired) ? /*#__PURE__*/React__namespace.default.createElement(react.Text, {
1486
- marginLeft: 1,
1487
- as: "span",
1488
- variant: "caption",
1489
- color: "text.secondary.light"
1490
- }, "Optional") : null
1491
- }, label), helperText && /*#__PURE__*/React__namespace.default.createElement(react.FormHelperText, {
1492
- color: "gray.600",
1493
- marginBottom: 1,
1494
- fontSize: "xs"
1495
- }, helperText), children, /*#__PURE__*/React__namespace.default.createElement(react.FormErrorMessage, {
1496
- color: "error",
1497
- mt: 1,
1498
- fontSize: "xs"
1499
- }, errorMessage));
1500
- });
1501
- FormControl$1.propTypes = {
1502
- inputId: PropTypes__default.default.string.isRequired,
1503
- label: PropTypes__default.default.string,
1504
- helperText: PropTypes__default.default.string,
1505
- errorMessage: PropTypes__default.default.string,
1506
- children: PropTypes__default.default.element,
1507
- isFieldset: PropTypes__default.default.bool,
1508
- isOptional: PropTypes__default.default.bool,
1509
- isRequired: PropTypes__default.default.bool,
1510
- customRequiredText: PropTypes__default.default.string
1511
- };
1441
+ var jsxRuntime = {exports: {}};
1442
+
1443
+ var reactJsxRuntime_production_min = {};
1444
+
1445
+ /**
1446
+ * @license React
1447
+ * react-jsx-runtime.production.min.js
1448
+ *
1449
+ * Copyright (c) Facebook, Inc. and its affiliates.
1450
+ *
1451
+ * This source code is licensed under the MIT license found in the
1452
+ * LICENSE file in the root directory of this source tree.
1453
+ */
1454
+ var hasRequiredReactJsxRuntime_production_min;
1455
+ function requireReactJsxRuntime_production_min() {
1456
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
1457
+ hasRequiredReactJsxRuntime_production_min = 1;
1458
+ var f = React__namespace.default,
1459
+ k = Symbol.for("react.element"),
1460
+ l = Symbol.for("react.fragment"),
1461
+ m = Object.prototype.hasOwnProperty,
1462
+ n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
1463
+ p = {
1464
+ key: !0,
1465
+ ref: !0,
1466
+ __self: !0,
1467
+ __source: !0
1468
+ };
1469
+ function q(c, a, g) {
1470
+ var b,
1471
+ d = {},
1472
+ e = null,
1473
+ h = null;
1474
+ void 0 !== g && (e = "" + g);
1475
+ void 0 !== a.key && (e = "" + a.key);
1476
+ void 0 !== a.ref && (h = a.ref);
1477
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
1478
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
1479
+ return {
1480
+ $$typeof: k,
1481
+ type: c,
1482
+ key: e,
1483
+ ref: h,
1484
+ props: d,
1485
+ _owner: n.current
1486
+ };
1487
+ }
1488
+ reactJsxRuntime_production_min.Fragment = l;
1489
+ reactJsxRuntime_production_min.jsx = q;
1490
+ reactJsxRuntime_production_min.jsxs = q;
1491
+ return reactJsxRuntime_production_min;
1492
+ }
1493
+
1494
+ var reactJsxRuntime_development = {};
1495
+
1496
+ /**
1497
+ * @license React
1498
+ * react-jsx-runtime.development.js
1499
+ *
1500
+ * Copyright (c) Facebook, Inc. and its affiliates.
1501
+ *
1502
+ * This source code is licensed under the MIT license found in the
1503
+ * LICENSE file in the root directory of this source tree.
1504
+ */
1505
+ var hasRequiredReactJsxRuntime_development;
1506
+ function requireReactJsxRuntime_development() {
1507
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
1508
+ hasRequiredReactJsxRuntime_development = 1;
1509
+ if (process.env.NODE_ENV !== "production") {
1510
+ (function () {
1511
+
1512
+ var React = React__namespace.default;
1513
+
1514
+ // ATTENTION
1515
+ // When adding new symbols to this file,
1516
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1517
+ // The Symbol used to tag the ReactElement-like types.
1518
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1519
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1520
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1521
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1522
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1523
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1524
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1525
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1526
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1527
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1528
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
1529
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1530
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1531
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
1532
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
1533
+ function getIteratorFn(maybeIterable) {
1534
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
1535
+ return null;
1536
+ }
1537
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1538
+ if (typeof maybeIterator === 'function') {
1539
+ return maybeIterator;
1540
+ }
1541
+ return null;
1542
+ }
1543
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1544
+ function error(format) {
1545
+ {
1546
+ {
1547
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1548
+ args[_key2 - 1] = arguments[_key2];
1549
+ }
1550
+ printWarning('error', format, args);
1551
+ }
1552
+ }
1553
+ }
1554
+ function printWarning(level, format, args) {
1555
+ // When changing this logic, you might want to also
1556
+ // update consoleWithStackDev.www.js as well.
1557
+ {
1558
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1559
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
1560
+ if (stack !== '') {
1561
+ format += '%s';
1562
+ args = args.concat([stack]);
1563
+ } // eslint-disable-next-line react-internal/safe-string-coercion
1564
+
1565
+ var argsWithFormat = args.map(function (item) {
1566
+ return String(item);
1567
+ }); // Careful: RN currently depends on this prefix
1568
+
1569
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1570
+ // breaks IE9: https://github.com/facebook/react/issues/13610
1571
+ // eslint-disable-next-line react-internal/no-production-logging
1572
+
1573
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
1574
+ }
1575
+ }
1576
+
1577
+ // -----------------------------------------------------------------------------
1578
+
1579
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
1580
+ var enableCacheElement = false;
1581
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
1582
+
1583
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1584
+ // stuff. Intended to enable React core members to more easily debug scheduling
1585
+ // issues in DEV builds.
1586
+
1587
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1588
+
1589
+ var REACT_MODULE_REFERENCE;
1590
+ {
1591
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1592
+ }
1593
+ function isValidElementType(type) {
1594
+ if (typeof type === 'string' || typeof type === 'function') {
1595
+ return true;
1596
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1597
+
1598
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1599
+ return true;
1600
+ }
1601
+ if (typeof type === 'object' && type !== null) {
1602
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
1603
+ // This needs to include all possible module reference object
1604
+ // types supported by any Flight configuration anywhere since
1605
+ // we don't know which Flight build this will end up being used
1606
+ // with.
1607
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1608
+ return true;
1609
+ }
1610
+ }
1611
+ return false;
1612
+ }
1613
+ function getWrappedName(outerType, innerType, wrapperName) {
1614
+ var displayName = outerType.displayName;
1615
+ if (displayName) {
1616
+ return displayName;
1617
+ }
1618
+ var functionName = innerType.displayName || innerType.name || '';
1619
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
1620
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
1621
+
1622
+ function getContextName(type) {
1623
+ return type.displayName || 'Context';
1624
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
1625
+
1626
+ function getComponentNameFromType(type) {
1627
+ if (type == null) {
1628
+ // Host root, text node or just invalid type.
1629
+ return null;
1630
+ }
1631
+ {
1632
+ if (typeof type.tag === 'number') {
1633
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
1634
+ }
1635
+ }
1636
+ if (typeof type === 'function') {
1637
+ return type.displayName || type.name || null;
1638
+ }
1639
+ if (typeof type === 'string') {
1640
+ return type;
1641
+ }
1642
+ switch (type) {
1643
+ case REACT_FRAGMENT_TYPE:
1644
+ return 'Fragment';
1645
+ case REACT_PORTAL_TYPE:
1646
+ return 'Portal';
1647
+ case REACT_PROFILER_TYPE:
1648
+ return 'Profiler';
1649
+ case REACT_STRICT_MODE_TYPE:
1650
+ return 'StrictMode';
1651
+ case REACT_SUSPENSE_TYPE:
1652
+ return 'Suspense';
1653
+ case REACT_SUSPENSE_LIST_TYPE:
1654
+ return 'SuspenseList';
1655
+ }
1656
+ if (typeof type === 'object') {
1657
+ switch (type.$$typeof) {
1658
+ case REACT_CONTEXT_TYPE:
1659
+ var context = type;
1660
+ return getContextName(context) + '.Consumer';
1661
+ case REACT_PROVIDER_TYPE:
1662
+ var provider = type;
1663
+ return getContextName(provider._context) + '.Provider';
1664
+ case REACT_FORWARD_REF_TYPE:
1665
+ return getWrappedName(type, type.render, 'ForwardRef');
1666
+ case REACT_MEMO_TYPE:
1667
+ var outerName = type.displayName || null;
1668
+ if (outerName !== null) {
1669
+ return outerName;
1670
+ }
1671
+ return getComponentNameFromType(type.type) || 'Memo';
1672
+ case REACT_LAZY_TYPE:
1673
+ {
1674
+ var lazyComponent = type;
1675
+ var payload = lazyComponent._payload;
1676
+ var init = lazyComponent._init;
1677
+ try {
1678
+ return getComponentNameFromType(init(payload));
1679
+ } catch (x) {
1680
+ return null;
1681
+ }
1682
+ }
1683
+
1684
+ // eslint-disable-next-line no-fallthrough
1685
+ }
1686
+ }
1687
+ return null;
1688
+ }
1689
+ var assign = Object.assign;
1690
+
1691
+ // Helpers to patch console.logs to avoid logging during side-effect free
1692
+ // replaying on render function. This currently only patches the object
1693
+ // lazily which won't cover if the log function was extracted eagerly.
1694
+ // We could also eagerly patch the method.
1695
+ var disabledDepth = 0;
1696
+ var prevLog;
1697
+ var prevInfo;
1698
+ var prevWarn;
1699
+ var prevError;
1700
+ var prevGroup;
1701
+ var prevGroupCollapsed;
1702
+ var prevGroupEnd;
1703
+ function disabledLog() {}
1704
+ disabledLog.__reactDisabledLog = true;
1705
+ function disableLogs() {
1706
+ {
1707
+ if (disabledDepth === 0) {
1708
+ /* eslint-disable react-internal/no-production-logging */
1709
+ prevLog = console.log;
1710
+ prevInfo = console.info;
1711
+ prevWarn = console.warn;
1712
+ prevError = console.error;
1713
+ prevGroup = console.group;
1714
+ prevGroupCollapsed = console.groupCollapsed;
1715
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
1716
+
1717
+ var props = {
1718
+ configurable: true,
1719
+ enumerable: true,
1720
+ value: disabledLog,
1721
+ writable: true
1722
+ }; // $FlowFixMe Flow thinks console is immutable.
1723
+
1724
+ Object.defineProperties(console, {
1725
+ info: props,
1726
+ log: props,
1727
+ warn: props,
1728
+ error: props,
1729
+ group: props,
1730
+ groupCollapsed: props,
1731
+ groupEnd: props
1732
+ });
1733
+ /* eslint-enable react-internal/no-production-logging */
1734
+ }
1735
+ disabledDepth++;
1736
+ }
1737
+ }
1738
+ function reenableLogs() {
1739
+ {
1740
+ disabledDepth--;
1741
+ if (disabledDepth === 0) {
1742
+ /* eslint-disable react-internal/no-production-logging */
1743
+ var props = {
1744
+ configurable: true,
1745
+ enumerable: true,
1746
+ writable: true
1747
+ }; // $FlowFixMe Flow thinks console is immutable.
1748
+
1749
+ Object.defineProperties(console, {
1750
+ log: assign({}, props, {
1751
+ value: prevLog
1752
+ }),
1753
+ info: assign({}, props, {
1754
+ value: prevInfo
1755
+ }),
1756
+ warn: assign({}, props, {
1757
+ value: prevWarn
1758
+ }),
1759
+ error: assign({}, props, {
1760
+ value: prevError
1761
+ }),
1762
+ group: assign({}, props, {
1763
+ value: prevGroup
1764
+ }),
1765
+ groupCollapsed: assign({}, props, {
1766
+ value: prevGroupCollapsed
1767
+ }),
1768
+ groupEnd: assign({}, props, {
1769
+ value: prevGroupEnd
1770
+ })
1771
+ });
1772
+ /* eslint-enable react-internal/no-production-logging */
1773
+ }
1774
+ if (disabledDepth < 0) {
1775
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
1776
+ }
1777
+ }
1778
+ }
1779
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
1780
+ var prefix;
1781
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1782
+ {
1783
+ if (prefix === undefined) {
1784
+ // Extract the VM specific prefix used by each line.
1785
+ try {
1786
+ throw Error();
1787
+ } catch (x) {
1788
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1789
+ prefix = match && match[1] || '';
1790
+ }
1791
+ } // We use the prefix to ensure our stacks line up with native stack frames.
1792
+
1793
+ return '\n' + prefix + name;
1794
+ }
1795
+ }
1796
+ var reentry = false;
1797
+ var componentFrameCache;
1798
+ {
1799
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
1800
+ componentFrameCache = new PossiblyWeakMap();
1801
+ }
1802
+ function describeNativeComponentFrame(fn, construct) {
1803
+ // If something asked for a stack inside a fake render, it should get ignored.
1804
+ if (!fn || reentry) {
1805
+ return '';
1806
+ }
1807
+ {
1808
+ var frame = componentFrameCache.get(fn);
1809
+ if (frame !== undefined) {
1810
+ return frame;
1811
+ }
1812
+ }
1813
+ var control;
1814
+ reentry = true;
1815
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
1816
+
1817
+ Error.prepareStackTrace = undefined;
1818
+ var previousDispatcher;
1819
+ {
1820
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
1821
+ // for warnings.
1822
+
1823
+ ReactCurrentDispatcher.current = null;
1824
+ disableLogs();
1825
+ }
1826
+ try {
1827
+ // This should throw.
1828
+ if (construct) {
1829
+ // Something should be setting the props in the constructor.
1830
+ var Fake = function () {
1831
+ throw Error();
1832
+ }; // $FlowFixMe
1833
+
1834
+ Object.defineProperty(Fake.prototype, 'props', {
1835
+ set: function () {
1836
+ // We use a throwing setter instead of frozen or non-writable props
1837
+ // because that won't throw in a non-strict mode function.
1838
+ throw Error();
1839
+ }
1840
+ });
1841
+ if (typeof Reflect === 'object' && Reflect.construct) {
1842
+ // We construct a different control for this case to include any extra
1843
+ // frames added by the construct call.
1844
+ try {
1845
+ Reflect.construct(Fake, []);
1846
+ } catch (x) {
1847
+ control = x;
1848
+ }
1849
+ Reflect.construct(fn, [], Fake);
1850
+ } else {
1851
+ try {
1852
+ Fake.call();
1853
+ } catch (x) {
1854
+ control = x;
1855
+ }
1856
+ fn.call(Fake.prototype);
1857
+ }
1858
+ } else {
1859
+ try {
1860
+ throw Error();
1861
+ } catch (x) {
1862
+ control = x;
1863
+ }
1864
+ fn();
1865
+ }
1866
+ } catch (sample) {
1867
+ // This is inlined manually because closure doesn't do it for us.
1868
+ if (sample && control && typeof sample.stack === 'string') {
1869
+ // This extracts the first frame from the sample that isn't also in the control.
1870
+ // Skipping one frame that we assume is the frame that calls the two.
1871
+ var sampleLines = sample.stack.split('\n');
1872
+ var controlLines = control.stack.split('\n');
1873
+ var s = sampleLines.length - 1;
1874
+ var c = controlLines.length - 1;
1875
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1876
+ // We expect at least one stack frame to be shared.
1877
+ // Typically this will be the root most one. However, stack frames may be
1878
+ // cut off due to maximum stack limits. In this case, one maybe cut off
1879
+ // earlier than the other. We assume that the sample is longer or the same
1880
+ // and there for cut off earlier. So we should find the root most frame in
1881
+ // the sample somewhere in the control.
1882
+ c--;
1883
+ }
1884
+ for (; s >= 1 && c >= 0; s--, c--) {
1885
+ // Next we find the first one that isn't the same which should be the
1886
+ // frame that called our sample function and the control.
1887
+ if (sampleLines[s] !== controlLines[c]) {
1888
+ // In V8, the first line is describing the message but other VMs don't.
1889
+ // If we're about to return the first line, and the control is also on the same
1890
+ // line, that's a pretty good indicator that our sample threw at same line as
1891
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
1892
+ // This can happen if you passed a class to function component, or non-function.
1893
+ if (s !== 1 || c !== 1) {
1894
+ do {
1895
+ s--;
1896
+ c--; // We may still have similar intermediate frames from the construct call.
1897
+ // The next one that isn't the same should be our match though.
1898
+
1899
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1900
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
1901
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
1902
+ // but we have a user-provided "displayName"
1903
+ // splice it in to make the stack more readable.
1904
+
1905
+ if (fn.displayName && _frame.includes('<anonymous>')) {
1906
+ _frame = _frame.replace('<anonymous>', fn.displayName);
1907
+ }
1908
+ {
1909
+ if (typeof fn === 'function') {
1910
+ componentFrameCache.set(fn, _frame);
1911
+ }
1912
+ } // Return the line we found.
1913
+
1914
+ return _frame;
1915
+ }
1916
+ } while (s >= 1 && c >= 0);
1917
+ }
1918
+ break;
1919
+ }
1920
+ }
1921
+ }
1922
+ } finally {
1923
+ reentry = false;
1924
+ {
1925
+ ReactCurrentDispatcher.current = previousDispatcher;
1926
+ reenableLogs();
1927
+ }
1928
+ Error.prepareStackTrace = previousPrepareStackTrace;
1929
+ } // Fallback to just using the name if we couldn't make it throw.
1930
+
1931
+ var name = fn ? fn.displayName || fn.name : '';
1932
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
1933
+ {
1934
+ if (typeof fn === 'function') {
1935
+ componentFrameCache.set(fn, syntheticFrame);
1936
+ }
1937
+ }
1938
+ return syntheticFrame;
1939
+ }
1940
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
1941
+ {
1942
+ return describeNativeComponentFrame(fn, false);
1943
+ }
1944
+ }
1945
+ function shouldConstruct(Component) {
1946
+ var prototype = Component.prototype;
1947
+ return !!(prototype && prototype.isReactComponent);
1948
+ }
1949
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1950
+ if (type == null) {
1951
+ return '';
1952
+ }
1953
+ if (typeof type === 'function') {
1954
+ {
1955
+ return describeNativeComponentFrame(type, shouldConstruct(type));
1956
+ }
1957
+ }
1958
+ if (typeof type === 'string') {
1959
+ return describeBuiltInComponentFrame(type);
1960
+ }
1961
+ switch (type) {
1962
+ case REACT_SUSPENSE_TYPE:
1963
+ return describeBuiltInComponentFrame('Suspense');
1964
+ case REACT_SUSPENSE_LIST_TYPE:
1965
+ return describeBuiltInComponentFrame('SuspenseList');
1966
+ }
1967
+ if (typeof type === 'object') {
1968
+ switch (type.$$typeof) {
1969
+ case REACT_FORWARD_REF_TYPE:
1970
+ return describeFunctionComponentFrame(type.render);
1971
+ case REACT_MEMO_TYPE:
1972
+ // Memo may contain any component type so we recursively resolve it.
1973
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1974
+ case REACT_LAZY_TYPE:
1975
+ {
1976
+ var lazyComponent = type;
1977
+ var payload = lazyComponent._payload;
1978
+ var init = lazyComponent._init;
1979
+ try {
1980
+ // Lazy may contain any component type so we recursively resolve it.
1981
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1982
+ } catch (x) {}
1983
+ }
1984
+ }
1985
+ }
1986
+ return '';
1987
+ }
1988
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1989
+ var loggedTypeFailures = {};
1990
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1991
+ function setCurrentlyValidatingElement(element) {
1992
+ {
1993
+ if (element) {
1994
+ var owner = element._owner;
1995
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1996
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
1997
+ } else {
1998
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
1999
+ }
2000
+ }
2001
+ }
2002
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2003
+ {
2004
+ // $FlowFixMe This is okay but Flow doesn't know it.
2005
+ var has = Function.call.bind(hasOwnProperty);
2006
+ for (var typeSpecName in typeSpecs) {
2007
+ if (has(typeSpecs, typeSpecName)) {
2008
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2009
+ // fail the render phase where it didn't fail before. So we log it.
2010
+ // After these have been cleaned up, we'll let them throw.
2011
+
2012
+ try {
2013
+ // This is intentionally an invariant that gets caught. It's the same
2014
+ // behavior as without this statement except with a better message.
2015
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
2016
+ // eslint-disable-next-line react-internal/prod-error-codes
2017
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2018
+ err.name = 'Invariant Violation';
2019
+ throw err;
2020
+ }
2021
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2022
+ } catch (ex) {
2023
+ error$1 = ex;
2024
+ }
2025
+ if (error$1 && !(error$1 instanceof Error)) {
2026
+ setCurrentlyValidatingElement(element);
2027
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2028
+ setCurrentlyValidatingElement(null);
2029
+ }
2030
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2031
+ // Only monitor this failure once because there tends to be a lot of the
2032
+ // same error.
2033
+ loggedTypeFailures[error$1.message] = true;
2034
+ setCurrentlyValidatingElement(element);
2035
+ error('Failed %s type: %s', location, error$1.message);
2036
+ setCurrentlyValidatingElement(null);
2037
+ }
2038
+ }
2039
+ }
2040
+ }
2041
+ }
2042
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2043
+
2044
+ function isArray(a) {
2045
+ return isArrayImpl(a);
2046
+ }
2047
+
2048
+ /*
2049
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2050
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2051
+ *
2052
+ * The functions in this module will throw an easier-to-understand,
2053
+ * easier-to-debug exception with a clear errors message message explaining the
2054
+ * problem. (Instead of a confusing exception thrown inside the implementation
2055
+ * of the `value` object).
2056
+ */
2057
+ // $FlowFixMe only called in DEV, so void return is not possible.
2058
+ function typeName(value) {
2059
+ {
2060
+ // toStringTag is needed for namespaced types like Temporal.Instant
2061
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2062
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2063
+ return type;
2064
+ }
2065
+ } // $FlowFixMe only called in DEV, so void return is not possible.
2066
+
2067
+ function willCoercionThrow(value) {
2068
+ {
2069
+ try {
2070
+ testStringCoercion(value);
2071
+ return false;
2072
+ } catch (e) {
2073
+ return true;
2074
+ }
2075
+ }
2076
+ }
2077
+ function testStringCoercion(value) {
2078
+ // If you ended up here by following an exception call stack, here's what's
2079
+ // happened: you supplied an object or symbol value to React (as a prop, key,
2080
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
2081
+ // coerce it to a string using `'' + value`, an exception was thrown.
2082
+ //
2083
+ // The most common types that will cause this exception are `Symbol` instances
2084
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
2085
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2086
+ // exception. (Library authors do this to prevent users from using built-in
2087
+ // numeric operators like `+` or comparison operators like `>=` because custom
2088
+ // methods are needed to perform accurate arithmetic or comparison.)
2089
+ //
2090
+ // To fix the problem, coerce this object or symbol value to a string before
2091
+ // passing it to React. The most reliable way is usually `String(value)`.
2092
+ //
2093
+ // To find which value is throwing, check the browser or debugger console.
2094
+ // Before this exception was thrown, there should be `console.error` output
2095
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2096
+ // problem and how that type was used: key, atrribute, input value prop, etc.
2097
+ // In most cases, this console output also shows the component and its
2098
+ // ancestor components where the exception happened.
2099
+ //
2100
+ // eslint-disable-next-line react-internal/safe-string-coercion
2101
+ return '' + value;
2102
+ }
2103
+ function checkKeyStringCoercion(value) {
2104
+ {
2105
+ if (willCoercionThrow(value)) {
2106
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2107
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2108
+ }
2109
+ }
2110
+ }
2111
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2112
+ var RESERVED_PROPS = {
2113
+ key: true,
2114
+ ref: true,
2115
+ __self: true,
2116
+ __source: true
2117
+ };
2118
+ var specialPropKeyWarningShown;
2119
+ var specialPropRefWarningShown;
2120
+ var didWarnAboutStringRefs;
2121
+ {
2122
+ didWarnAboutStringRefs = {};
2123
+ }
2124
+ function hasValidRef(config) {
2125
+ {
2126
+ if (hasOwnProperty.call(config, 'ref')) {
2127
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2128
+ if (getter && getter.isReactWarning) {
2129
+ return false;
2130
+ }
2131
+ }
2132
+ }
2133
+ return config.ref !== undefined;
2134
+ }
2135
+ function hasValidKey(config) {
2136
+ {
2137
+ if (hasOwnProperty.call(config, 'key')) {
2138
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2139
+ if (getter && getter.isReactWarning) {
2140
+ return false;
2141
+ }
2142
+ }
2143
+ }
2144
+ return config.key !== undefined;
2145
+ }
2146
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
2147
+ {
2148
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2149
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2150
+ if (!didWarnAboutStringRefs[componentName]) {
2151
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2152
+ didWarnAboutStringRefs[componentName] = true;
2153
+ }
2154
+ }
2155
+ }
2156
+ }
2157
+ function defineKeyPropWarningGetter(props, displayName) {
2158
+ {
2159
+ var warnAboutAccessingKey = function () {
2160
+ if (!specialPropKeyWarningShown) {
2161
+ specialPropKeyWarningShown = true;
2162
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
2163
+ }
2164
+ };
2165
+ warnAboutAccessingKey.isReactWarning = true;
2166
+ Object.defineProperty(props, 'key', {
2167
+ get: warnAboutAccessingKey,
2168
+ configurable: true
2169
+ });
2170
+ }
2171
+ }
2172
+ function defineRefPropWarningGetter(props, displayName) {
2173
+ {
2174
+ var warnAboutAccessingRef = function () {
2175
+ if (!specialPropRefWarningShown) {
2176
+ specialPropRefWarningShown = true;
2177
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
2178
+ }
2179
+ };
2180
+ warnAboutAccessingRef.isReactWarning = true;
2181
+ Object.defineProperty(props, 'ref', {
2182
+ get: warnAboutAccessingRef,
2183
+ configurable: true
2184
+ });
2185
+ }
2186
+ }
2187
+ /**
2188
+ * Factory method to create a new React element. This no longer adheres to
2189
+ * the class pattern, so do not use new to call it. Also, instanceof check
2190
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2191
+ * if something is a React Element.
2192
+ *
2193
+ * @param {*} type
2194
+ * @param {*} props
2195
+ * @param {*} key
2196
+ * @param {string|object} ref
2197
+ * @param {*} owner
2198
+ * @param {*} self A *temporary* helper to detect places where `this` is
2199
+ * different from the `owner` when React.createElement is called, so that we
2200
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
2201
+ * functions, and as long as `this` and owner are the same, there will be no
2202
+ * change in behavior.
2203
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
2204
+ * indicating filename, line number, and/or other information.
2205
+ * @internal
2206
+ */
2207
+
2208
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
2209
+ var element = {
2210
+ // This tag allows us to uniquely identify this as a React Element
2211
+ $$typeof: REACT_ELEMENT_TYPE,
2212
+ // Built-in properties that belong on the element
2213
+ type: type,
2214
+ key: key,
2215
+ ref: ref,
2216
+ props: props,
2217
+ // Record the component responsible for creating this element.
2218
+ _owner: owner
2219
+ };
2220
+ {
2221
+ // The validation flag is currently mutative. We put it on
2222
+ // an external backing store so that we can freeze the whole object.
2223
+ // This can be replaced with a WeakMap once they are implemented in
2224
+ // commonly used development environments.
2225
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2226
+ // the validation flag non-enumerable (where possible, which should
2227
+ // include every environment we run tests in), so the test framework
2228
+ // ignores it.
2229
+
2230
+ Object.defineProperty(element._store, 'validated', {
2231
+ configurable: false,
2232
+ enumerable: false,
2233
+ writable: true,
2234
+ value: false
2235
+ }); // self and source are DEV only properties.
2236
+
2237
+ Object.defineProperty(element, '_self', {
2238
+ configurable: false,
2239
+ enumerable: false,
2240
+ writable: false,
2241
+ value: self
2242
+ }); // Two elements created in two different places should be considered
2243
+ // equal for testing purposes and therefore we hide it from enumeration.
2244
+
2245
+ Object.defineProperty(element, '_source', {
2246
+ configurable: false,
2247
+ enumerable: false,
2248
+ writable: false,
2249
+ value: source
2250
+ });
2251
+ if (Object.freeze) {
2252
+ Object.freeze(element.props);
2253
+ Object.freeze(element);
2254
+ }
2255
+ }
2256
+ return element;
2257
+ };
2258
+ /**
2259
+ * https://github.com/reactjs/rfcs/pull/107
2260
+ * @param {*} type
2261
+ * @param {object} props
2262
+ * @param {string} key
2263
+ */
2264
+
2265
+ function jsxDEV(type, config, maybeKey, source, self) {
2266
+ {
2267
+ var propName; // Reserved names are extracted
2268
+
2269
+ var props = {};
2270
+ var key = null;
2271
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2272
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2273
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2274
+ // but as an intermediary step, we will use jsxDEV for everything except
2275
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
2276
+ // key is explicitly declared to be undefined or not.
2277
+
2278
+ if (maybeKey !== undefined) {
2279
+ {
2280
+ checkKeyStringCoercion(maybeKey);
2281
+ }
2282
+ key = '' + maybeKey;
2283
+ }
2284
+ if (hasValidKey(config)) {
2285
+ {
2286
+ checkKeyStringCoercion(config.key);
2287
+ }
2288
+ key = '' + config.key;
2289
+ }
2290
+ if (hasValidRef(config)) {
2291
+ ref = config.ref;
2292
+ warnIfStringRefCannotBeAutoConverted(config, self);
2293
+ } // Remaining properties are added to a new props object
2294
+
2295
+ for (propName in config) {
2296
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2297
+ props[propName] = config[propName];
2298
+ }
2299
+ } // Resolve default props
2300
+
2301
+ if (type && type.defaultProps) {
2302
+ var defaultProps = type.defaultProps;
2303
+ for (propName in defaultProps) {
2304
+ if (props[propName] === undefined) {
2305
+ props[propName] = defaultProps[propName];
2306
+ }
2307
+ }
2308
+ }
2309
+ if (key || ref) {
2310
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2311
+ if (key) {
2312
+ defineKeyPropWarningGetter(props, displayName);
2313
+ }
2314
+ if (ref) {
2315
+ defineRefPropWarningGetter(props, displayName);
2316
+ }
2317
+ }
2318
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2319
+ }
2320
+ }
2321
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2322
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2323
+ function setCurrentlyValidatingElement$1(element) {
2324
+ {
2325
+ if (element) {
2326
+ var owner = element._owner;
2327
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2328
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2329
+ } else {
2330
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2331
+ }
2332
+ }
2333
+ }
2334
+ var propTypesMisspellWarningShown;
2335
+ {
2336
+ propTypesMisspellWarningShown = false;
2337
+ }
2338
+ /**
2339
+ * Verifies the object is a ReactElement.
2340
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
2341
+ * @param {?object} object
2342
+ * @return {boolean} True if `object` is a ReactElement.
2343
+ * @final
2344
+ */
2345
+
2346
+ function isValidElement(object) {
2347
+ {
2348
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2349
+ }
2350
+ }
2351
+ function getDeclarationErrorAddendum() {
2352
+ {
2353
+ if (ReactCurrentOwner$1.current) {
2354
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2355
+ if (name) {
2356
+ return '\n\nCheck the render method of `' + name + '`.';
2357
+ }
2358
+ }
2359
+ return '';
2360
+ }
2361
+ }
2362
+ function getSourceInfoErrorAddendum(source) {
2363
+ {
2364
+ return '';
2365
+ }
2366
+ }
2367
+ /**
2368
+ * Warn if there's no key explicitly set on dynamic arrays of children or
2369
+ * object keys are not valid. This allows us to keep track of children between
2370
+ * updates.
2371
+ */
2372
+
2373
+ var ownerHasKeyUseWarning = {};
2374
+ function getCurrentComponentErrorInfo(parentType) {
2375
+ {
2376
+ var info = getDeclarationErrorAddendum();
2377
+ if (!info) {
2378
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2379
+ if (parentName) {
2380
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2381
+ }
2382
+ }
2383
+ return info;
2384
+ }
2385
+ }
2386
+ /**
2387
+ * Warn if the element doesn't have an explicit key assigned to it.
2388
+ * This element is in an array. The array could grow and shrink or be
2389
+ * reordered. All children that haven't already been validated are required to
2390
+ * have a "key" property assigned to it. Error statuses are cached so a warning
2391
+ * will only be shown once.
2392
+ *
2393
+ * @internal
2394
+ * @param {ReactElement} element Element that requires a key.
2395
+ * @param {*} parentType element's parent's type.
2396
+ */
2397
+
2398
+ function validateExplicitKey(element, parentType) {
2399
+ {
2400
+ if (!element._store || element._store.validated || element.key != null) {
2401
+ return;
2402
+ }
2403
+ element._store.validated = true;
2404
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2405
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2406
+ return;
2407
+ }
2408
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2409
+ // property, it may be the creator of the child that's responsible for
2410
+ // assigning it a key.
2411
+
2412
+ var childOwner = '';
2413
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2414
+ // Give the component that originally created this child.
2415
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2416
+ }
2417
+ setCurrentlyValidatingElement$1(element);
2418
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2419
+ setCurrentlyValidatingElement$1(null);
2420
+ }
2421
+ }
2422
+ /**
2423
+ * Ensure that every element either is passed in a static location, in an
2424
+ * array with an explicit keys property defined, or in an object literal
2425
+ * with valid key property.
2426
+ *
2427
+ * @internal
2428
+ * @param {ReactNode} node Statically passed child of any type.
2429
+ * @param {*} parentType node's parent's type.
2430
+ */
2431
+
2432
+ function validateChildKeys(node, parentType) {
2433
+ {
2434
+ if (typeof node !== 'object') {
2435
+ return;
2436
+ }
2437
+ if (isArray(node)) {
2438
+ for (var i = 0; i < node.length; i++) {
2439
+ var child = node[i];
2440
+ if (isValidElement(child)) {
2441
+ validateExplicitKey(child, parentType);
2442
+ }
2443
+ }
2444
+ } else if (isValidElement(node)) {
2445
+ // This element was passed in a valid location.
2446
+ if (node._store) {
2447
+ node._store.validated = true;
2448
+ }
2449
+ } else if (node) {
2450
+ var iteratorFn = getIteratorFn(node);
2451
+ if (typeof iteratorFn === 'function') {
2452
+ // Entry iterators used to provide implicit keys,
2453
+ // but now we print a separate warning for them later.
2454
+ if (iteratorFn !== node.entries) {
2455
+ var iterator = iteratorFn.call(node);
2456
+ var step;
2457
+ while (!(step = iterator.next()).done) {
2458
+ if (isValidElement(step.value)) {
2459
+ validateExplicitKey(step.value, parentType);
2460
+ }
2461
+ }
2462
+ }
2463
+ }
2464
+ }
2465
+ }
2466
+ }
2467
+ /**
2468
+ * Given an element, validate that its props follow the propTypes definition,
2469
+ * provided by the type.
2470
+ *
2471
+ * @param {ReactElement} element
2472
+ */
2473
+
2474
+ function validatePropTypes(element) {
2475
+ {
2476
+ var type = element.type;
2477
+ if (type === null || type === undefined || typeof type === 'string') {
2478
+ return;
2479
+ }
2480
+ var propTypes;
2481
+ if (typeof type === 'function') {
2482
+ propTypes = type.propTypes;
2483
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
2484
+ // Note: Memo only checks outer props here.
2485
+ // Inner props are checked in the reconciler.
2486
+ type.$$typeof === REACT_MEMO_TYPE)) {
2487
+ propTypes = type.propTypes;
2488
+ } else {
2489
+ return;
2490
+ }
2491
+ if (propTypes) {
2492
+ // Intentionally inside to avoid triggering lazy initializers:
2493
+ var name = getComponentNameFromType(type);
2494
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
2495
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2496
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2497
+
2498
+ var _name = getComponentNameFromType(type);
2499
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2500
+ }
2501
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2502
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2503
+ }
2504
+ }
2505
+ }
2506
+ /**
2507
+ * Given a fragment, validate that it can only be provided with fragment props
2508
+ * @param {ReactElement} fragment
2509
+ */
2510
+
2511
+ function validateFragmentProps(fragment) {
2512
+ {
2513
+ var keys = Object.keys(fragment.props);
2514
+ for (var i = 0; i < keys.length; i++) {
2515
+ var key = keys[i];
2516
+ if (key !== 'children' && key !== 'key') {
2517
+ setCurrentlyValidatingElement$1(fragment);
2518
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2519
+ setCurrentlyValidatingElement$1(null);
2520
+ break;
2521
+ }
2522
+ }
2523
+ if (fragment.ref !== null) {
2524
+ setCurrentlyValidatingElement$1(fragment);
2525
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
2526
+ setCurrentlyValidatingElement$1(null);
2527
+ }
2528
+ }
2529
+ }
2530
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
2531
+ {
2532
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2533
+ // succeed and there will likely be errors in render.
2534
+
2535
+ if (!validType) {
2536
+ var info = '';
2537
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2538
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
2539
+ }
2540
+ var sourceInfo = getSourceInfoErrorAddendum();
2541
+ if (sourceInfo) {
2542
+ info += sourceInfo;
2543
+ } else {
2544
+ info += getDeclarationErrorAddendum();
2545
+ }
2546
+ var typeString;
2547
+ if (type === null) {
2548
+ typeString = 'null';
2549
+ } else if (isArray(type)) {
2550
+ typeString = 'array';
2551
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2552
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
2553
+ info = ' Did you accidentally export a JSX literal instead of a component?';
2554
+ } else {
2555
+ typeString = typeof type;
2556
+ }
2557
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
2558
+ }
2559
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
2560
+ // TODO: Drop this when these are no longer allowed as the type argument.
2561
+
2562
+ if (element == null) {
2563
+ return element;
2564
+ } // Skip key warning if the type isn't valid since our key validation logic
2565
+ // doesn't expect a non-string/function type and can throw confusing errors.
2566
+ // We don't want exception behavior to differ between dev and prod.
2567
+ // (Rendering will throw with a helpful message and as soon as the type is
2568
+ // fixed, the key warnings will appear.)
2569
+
2570
+ if (validType) {
2571
+ var children = props.children;
2572
+ if (children !== undefined) {
2573
+ if (isStaticChildren) {
2574
+ if (isArray(children)) {
2575
+ for (var i = 0; i < children.length; i++) {
2576
+ validateChildKeys(children[i], type);
2577
+ }
2578
+ if (Object.freeze) {
2579
+ Object.freeze(children);
2580
+ }
2581
+ } else {
2582
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
2583
+ }
2584
+ } else {
2585
+ validateChildKeys(children, type);
2586
+ }
2587
+ }
2588
+ }
2589
+ if (type === REACT_FRAGMENT_TYPE) {
2590
+ validateFragmentProps(element);
2591
+ } else {
2592
+ validatePropTypes(element);
2593
+ }
2594
+ return element;
2595
+ }
2596
+ } // These two functions exist to still get child warnings in dev
2597
+ // even with the prod transform. This means that jsxDEV is purely
2598
+ // opt-in behavior for better messages but that we won't stop
2599
+ // giving you warnings if you use production apis.
2600
+
2601
+ function jsxWithValidationStatic(type, props, key) {
2602
+ {
2603
+ return jsxWithValidation(type, props, key, true);
2604
+ }
2605
+ }
2606
+ function jsxWithValidationDynamic(type, props, key) {
2607
+ {
2608
+ return jsxWithValidation(type, props, key, false);
2609
+ }
2610
+ }
2611
+ var jsx = jsxWithValidationDynamic; // we may want to special case jsxs internally to take advantage of static children.
2612
+ // for now we can ship identical prod functions
2613
+
2614
+ var jsxs = jsxWithValidationStatic;
2615
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2616
+ reactJsxRuntime_development.jsx = jsx;
2617
+ reactJsxRuntime_development.jsxs = jsxs;
2618
+ })();
2619
+ }
2620
+ return reactJsxRuntime_development;
2621
+ }
2622
+
2623
+ var hasRequiredJsxRuntime;
2624
+ function requireJsxRuntime() {
2625
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
2626
+ hasRequiredJsxRuntime = 1;
2627
+ if (process.env.NODE_ENV === 'production') {
2628
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
2629
+ } else {
2630
+ jsxRuntime.exports = requireReactJsxRuntime_development();
2631
+ }
2632
+ return jsxRuntime.exports;
2633
+ }
2634
+
2635
+ var jsxRuntimeExports = requireJsxRuntime();
2636
+
2637
+ const FormControl$1 = React.forwardRef(({ children, label, inputId, helperText, errorMessage, isFieldset, isOptional, customRequiredText, ...props }, ref) => (jsxRuntimeExports.jsxs(react.FormControl, { ...props, ref: ref, as: isFieldset ? 'fieldset' : 'div', borderWidth: "0", children: [label && (jsxRuntimeExports.jsx(react.FormLabel, { color: "gray.600", fontWeight: "semibold", marginBottom: helperText ? 0 : 1, fontSize: "sm", htmlFor: inputId, as: isFieldset ? 'legend' : 'label', requiredIndicator: props?.isRequired && customRequiredText ? (jsxRuntimeExports.jsx(react.Text, { marginLeft: 1, as: "span", variant: "caption", color: "text.secondary.light", children: customRequiredText })) : null, optionalIndicator: isOptional && !props?.isRequired ? (jsxRuntimeExports.jsx(react.Text, { marginLeft: 1, as: "span", variant: "caption", color: "text.secondary.light", children: "Optional" })) : null, children: label })), helperText && (jsxRuntimeExports.jsx(react.FormHelperText, { color: "gray.600", marginBottom: 1, fontSize: "xs", children: helperText })), children, jsxRuntimeExports.jsx(react.FormErrorMessage, { color: "error", mt: 1, fontSize: "xs", children: errorMessage })] })));
2638
+ FormControl$1.displayName = 'FormControl';
1512
2639
 
1513
- const _excluded$o = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional"];
2640
+ const _excluded$m = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional"];
1514
2641
  const Select$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1515
2642
  let {
1516
2643
  label,
@@ -1521,7 +2648,7 @@ const Select$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1521
2648
  isRequired,
1522
2649
  isOptional
1523
2650
  } = _ref,
1524
- props = _objectWithoutProperties(_ref, _excluded$o);
2651
+ props = _objectWithoutProperties(_ref, _excluded$m);
1525
2652
  const classes = cn__default.default({
1526
2653
  'FormElement-contains-error': isInvalid
1527
2654
  });
@@ -1556,7 +2683,7 @@ Select$1.propTypes = {
1556
2683
  isOptional: PropTypes__default.default.bool
1557
2684
  };
1558
2685
 
1559
- const _excluded$n = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired"];
2686
+ const _excluded$l = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired"];
1560
2687
  const Switch = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1561
2688
  let {
1562
2689
  label,
@@ -1566,7 +2693,7 @@ const Switch = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1566
2693
  isDisabled,
1567
2694
  isRequired
1568
2695
  } = _ref,
1569
- props = _objectWithoutProperties(_ref, _excluded$n);
2696
+ props = _objectWithoutProperties(_ref, _excluded$l);
1570
2697
  const classes = cn__default.default({
1571
2698
  'FormElement-contains-error': isInvalid
1572
2699
  });
@@ -1714,13 +2841,13 @@ const combineAsWithVariant = _ref => {
1714
2841
  return styleProps;
1715
2842
  };
1716
2843
 
1717
- const _excluded$m = ["as", "variant"];
2844
+ const _excluded$k = ["as", "variant"];
1718
2845
  const Text = react.forwardRef((_ref, ref) => {
1719
2846
  let {
1720
2847
  as,
1721
2848
  variant
1722
2849
  } = _ref,
1723
- props = _objectWithoutProperties(_ref, _excluded$m);
2850
+ props = _objectWithoutProperties(_ref, _excluded$k);
1724
2851
  return /*#__PURE__*/React__namespace.default.createElement(react.Text, _extends$6({
1725
2852
  variant: variant,
1726
2853
  as: as
@@ -1756,12 +2883,12 @@ const compactStyles = {
1756
2883
  gap: 4
1757
2884
  };
1758
2885
 
1759
- const _excluded$l = ["isCompact"];
2886
+ const _excluded$j = ["isCompact"];
1760
2887
  const Grid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1761
2888
  let {
1762
2889
  isCompact
1763
2890
  } = _ref,
1764
- props = _objectWithoutProperties(_ref, _excluded$l);
2891
+ props = _objectWithoutProperties(_ref, _excluded$j);
1765
2892
  return /*#__PURE__*/React__namespace.default.createElement(react.Grid, _extends$6({}, baseStyles, isCompact && compactStyles, props, {
1766
2893
  ref: ref
1767
2894
  }));
@@ -1785,7 +2912,7 @@ const GridItem = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/Reac
1785
2912
  ref: ref
1786
2913
  })));
1787
2914
 
1788
- const _excluded$k = ["type"];
2915
+ const _excluded$i = ["type"];
1789
2916
  const unorderedProps = {
1790
2917
  as: 'ul',
1791
2918
  styleType: 'disc'
@@ -1821,7 +2948,7 @@ const List = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1821
2948
  let {
1822
2949
  type
1823
2950
  } = _ref,
1824
- props = _objectWithoutProperties(_ref, _excluded$k);
2951
+ props = _objectWithoutProperties(_ref, _excluded$i);
1825
2952
  return /*#__PURE__*/React__namespace.default.createElement(react.List, _extends$6({}, getListProps(type), props, {
1826
2953
  ref: ref
1827
2954
  }));
@@ -1839,110 +2966,63 @@ List.propTypes = {
1839
2966
 
1840
2967
  const spinnerStyles = react.theme.components.Spinner;
1841
2968
  const SIZE_MAP = {
1842
- xs: 'xs',
1843
- sm: 'sm',
1844
- md: 'md',
1845
- lg: 'lg',
1846
- xl: 'xl',
1847
- '2xl': '2xl',
1848
- '3xl': '3xl',
1849
- '4xl': '4xl',
1850
- '5xl': '5xl',
1851
- '6xl': '6xl',
1852
- '7xl': '7xl',
1853
- '8xl': '8xl',
1854
- '9xl': '9xl',
1855
- '10xl': '10xl'
2969
+ xs: 'xs',
2970
+ sm: 'sm',
2971
+ md: 'md',
2972
+ lg: 'lg',
2973
+ xl: 'xl',
2974
+ '2xl': '2xl',
2975
+ '3xl': '3xl',
2976
+ '4xl': '4xl',
2977
+ '5xl': '5xl',
2978
+ '6xl': '6xl',
2979
+ '7xl': '7xl',
2980
+ '8xl': '8xl',
2981
+ '9xl': '9xl',
2982
+ '10xl': '10xl',
1856
2983
  };
1857
2984
  const sizes$5 = merge__default.default(spinnerStyles.sizes, {
1858
- [SIZE_MAP['2xl']]: {
1859
- w: '4rem',
1860
- h: '4rem'
1861
- },
1862
- [SIZE_MAP['3xl']]: {
1863
- w: '5rem',
1864
- h: '5rem'
1865
- },
1866
- [SIZE_MAP['4xl']]: {
1867
- w: '6rem',
1868
- h: '6rem'
1869
- },
1870
- [SIZE_MAP['5xl']]: {
1871
- w: '7rem',
1872
- h: '7rem'
1873
- },
1874
- [SIZE_MAP['6xl']]: {
1875
- w: '8rem',
1876
- h: '8rem'
1877
- },
1878
- [SIZE_MAP['7xl']]: {
1879
- w: '9rem',
1880
- h: '9rem'
1881
- },
1882
- [SIZE_MAP['8xl']]: {
1883
- w: '10rem',
1884
- h: '10rem'
1885
- },
1886
- [SIZE_MAP['9xl']]: {
1887
- w: '11rem',
1888
- h: '11rem'
1889
- },
1890
- [SIZE_MAP['10xl']]: {
1891
- w: '12rem',
1892
- h: '12rem'
1893
- }
2985
+ [SIZE_MAP['2xl']]: { w: '4rem', h: '4rem' },
2986
+ [SIZE_MAP['3xl']]: { w: '5rem', h: '5rem' },
2987
+ [SIZE_MAP['4xl']]: { w: '6rem', h: '6rem' },
2988
+ [SIZE_MAP['5xl']]: { w: '7rem', h: '7rem' },
2989
+ [SIZE_MAP['6xl']]: { w: '8rem', h: '8rem' },
2990
+ [SIZE_MAP['7xl']]: { w: '9rem', h: '9rem' },
2991
+ [SIZE_MAP['8xl']]: { w: '10rem', h: '10rem' },
2992
+ [SIZE_MAP['9xl']]: { w: '11rem', h: '11rem' },
2993
+ [SIZE_MAP['10xl']]: { w: '12rem', h: '12rem' },
1894
2994
  });
1895
2995
  const thicknesses = {
1896
- [SIZE_MAP.xl]: 3,
1897
- [SIZE_MAP['2xl']]: 4,
1898
- [SIZE_MAP['3xl']]: 5,
1899
- [SIZE_MAP['4xl']]: 6,
1900
- [SIZE_MAP['5xl']]: 7,
1901
- [SIZE_MAP['6xl']]: 8,
1902
- [SIZE_MAP['7xl']]: 9,
1903
- [SIZE_MAP['8xl']]: 10,
1904
- [SIZE_MAP['9xl']]: 11,
1905
- [SIZE_MAP['10xl']]: 12
2996
+ [SIZE_MAP.xl]: 3,
2997
+ [SIZE_MAP['2xl']]: 4,
2998
+ [SIZE_MAP['3xl']]: 5,
2999
+ [SIZE_MAP['4xl']]: 6,
3000
+ [SIZE_MAP['5xl']]: 7,
3001
+ [SIZE_MAP['6xl']]: 8,
3002
+ [SIZE_MAP['7xl']]: 9,
3003
+ [SIZE_MAP['8xl']]: 10,
3004
+ [SIZE_MAP['9xl']]: 11,
3005
+ [SIZE_MAP['10xl']]: 12,
1906
3006
  };
1907
3007
  const defaultProps$8 = {
1908
- speed: '2s',
1909
- size: SIZE_MAP['2xl'],
1910
- thickness: thicknesses[SIZE_MAP['2xl']]
3008
+ speed: '2s',
3009
+ size: SIZE_MAP['2xl'],
3010
+ thickness: thicknesses[SIZE_MAP['2xl']],
1911
3011
  };
1912
3012
  var Spinner_styles = {
1913
- sizes: sizes$5,
1914
- defaultProps: defaultProps$8
3013
+ sizes: sizes$5,
3014
+ defaultProps: defaultProps$8,
1915
3015
  };
1916
3016
 
1917
- const _excluded$j = ["size", "thickness"];
1918
- const Spinner = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1919
- let {
1920
- size,
1921
- thickness
1922
- } = _ref,
1923
- props = _objectWithoutProperties(_ref, _excluded$j);
1924
- const thicknessString = thickness ? "".concat(thickness, "px") : thicknesses[size] ? "".concat(thicknesses[size], "px") : '2px';
1925
- return /*#__PURE__*/React__namespace.default.createElement(react.Spinner, _extends$6({
1926
- ref: ref,
1927
- role: "status",
1928
- color: "primary.default",
1929
- emptyColor: "gray.medium",
1930
- thickness: thicknessString,
1931
- size: size || SIZE_MAP['2xl']
1932
- }, props));
3017
+ const Spinner = React.forwardRef(({ size, thickness, ...props }, ref) => {
3018
+ const thicknessString = thickness
3019
+ ? `${thickness}px`
3020
+ : thicknesses[size]
3021
+ ? `${thicknesses[size]}px`
3022
+ : '2px';
3023
+ return (jsxRuntimeExports.jsx(react.Spinner, { ref: ref, role: "status", color: "primary.default", emptyColor: "gray.medium", thickness: thicknessString, size: size || SIZE_MAP['2xl'], ...props }));
1933
3024
  });
1934
- Spinner.propTypes = {
1935
- /** The main fill color of the spinner */
1936
- color: PropTypes__default.default.string,
1937
- /** The diameter of the spinner ring in pixels */
1938
- thickness: PropTypes__default.default.number,
1939
- /** The empty color of the spinner */
1940
- emptyColor: PropTypes__default.default.string,
1941
- /** The size of the spinner */
1942
- size: PropTypes__default.default.oneOf(Object.keys(SIZE_MAP)),
1943
- /** The speed of the spinner, ex: 10s, 0.1s, 250ms */
1944
- speed: PropTypes__default.default.string
1945
- };
3025
+ Spinner.displayName = 'Spinner';
1946
3026
 
1947
3027
  const baseStyle$d = {
1948
3028
  lineHeight: 1.5,
@@ -2009,56 +3089,117 @@ Heading.propTypes = {
2009
3089
  };
2010
3090
 
2011
3091
  const styles = {
2012
- px: 4,
2013
- mx: 'auto',
2014
- maxW: {
2015
- base: 'container.base',
2016
- tablet: 'container.tablet',
2017
- desktop: 'container.desktop'
2018
- }
3092
+ px: 4,
3093
+ mx: 'auto',
3094
+ maxW: {
3095
+ base: 'container.base',
3096
+ tablet: 'container.tablet',
3097
+ desktop: 'container.desktop',
3098
+ },
2019
3099
  };
2020
3100
 
2021
- const Container = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(react.Container, _extends$6({}, styles, props, {
2022
- ref: ref
2023
- })));
3101
+ const Container = React.forwardRef((props, ref) => (jsxRuntimeExports.jsx(react.Container, { ...styles, ...props, ref: ref })));
3102
+ Container.displayName = 'Container';
2024
3103
 
2025
3104
  const global = {
2026
- 'html, body': {
2027
- color: 'text.primary.light'
2028
- },
2029
- // By default, Chakra has all svgs set to 'display: block',
2030
- // this breaks the layout of some older components, so now
2031
- // we set all svgs to 'display: inline-block;' and only set
2032
- // 'display: block;' on the components that need it
2033
- // (as of 3/9/2021 only the v1 AutoSuggestInput component
2034
- // needed this update)
2035
- svg: {
2036
- display: 'inline-block'
2037
- },
2038
- // starting in Chakra version 2 they introduced this isolation style that messes with dropdowns being able to appear on top of elements underneath them
2039
- '.chakra-input__group': {
2040
- isolation: 'auto !important'
2041
- },
2042
- // Starting in Chakra version 2 they have incorporated normalize.css which may resulf in some unexpected default styles
2043
- 'h1, h2, h3, h4, h5, h6': {
2044
- margin: 0
2045
- }
2046
- };
2047
- const Fonts = () => /*#__PURE__*/React__namespace.default.createElement(react$1.Global, {
2048
- styles: "\n @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');\n /* latin-ext */\n @font-face {\n font-family: \"Plus Jakarta Sans\", sans-serif;\n font-style: normal;\n font-weight: 700;\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin-ext */\n @font-face {\n font-family: \"Plus Jakarta Sans\", sans-serif;\n font-style: normal;\n font-weight: 600;\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin-ext */\n @font-face {\n font-family: \"Plus Jakarta Sans\", sans-serif;\n font-style: normal;\n font-weight: 400;\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin-ext */\n @font-face {\n font-family: \"Plus Jakarta Sans\", sans-serif;\n font-style: normal;\n font-weight: 300;\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n "
2049
- });
2050
- const LegacyOverrides = _ref => {
2051
- let {
2052
- useLegacyOverrides
2053
- } = _ref;
2054
- return useLegacyOverrides ? /*#__PURE__*/React__namespace.default.createElement(react$1.Global, {
2055
- styles: "\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n font-weight: ".concat(fontWeights.semibold, ";\n }\n\n .heading-sm {\n font-size: ").concat(fontSizes.base, ";\n }\n .heading-md {\n font-size: ").concat(fontSizes.md, ";\n }\n .heading-lg {\n font-size: ").concat(fontSizes['5xl'], ";\n }\n\n p {\n line-height: 1.5;\n }\n\n a {\n outline: none;\n text-align: left;\n color: ").concat(colors.primary.default, ";\n text-decoration: none;\n\n &:active,\n &:focus {\n outline: none;\n }\n\n &:hover {\n color: ").concat(colors.primary['700'], ";\n }\n }\n\n small {\n font-size: ").concat(fontSizes.xs, ";\n }\n\n ")
2056
- }) : null;
2057
- };
2058
- LegacyOverrides.propTypes = {
2059
- /** If true, this will use the old `spothero-html` base styles */
2060
- useLegacyOverrides: PropTypes__default.default.bool
3105
+ 'html, body': {
3106
+ color: 'text.primary.light',
3107
+ },
3108
+ // By default, Chakra has all svgs set to 'display: block',
3109
+ // this breaks the layout of some older components, so now
3110
+ // we set all svgs to 'display: inline-block;' and only set
3111
+ // 'display: block;' on the components that need it
3112
+ // (as of 3/9/2021 only the v1 AutoSuggestInput component
3113
+ // needed this update)
3114
+ svg: {
3115
+ display: 'inline-block',
3116
+ },
3117
+ // starting in Chakra version 2 they introduced this isolation style that messes with dropdowns being able to appear on top of elements underneath them
3118
+ '.chakra-input__group': {
3119
+ isolation: 'auto !important',
3120
+ },
3121
+ // Starting in Chakra version 2 they have incorporated normalize.css which may resulf in some unexpected default styles
3122
+ 'h1, h2, h3, h4, h5, h6': {
3123
+ margin: 0,
3124
+ },
2061
3125
  };
3126
+ const Fonts = () => (jsxRuntimeExports.jsx(react$1.Global, { styles: `
3127
+ @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
3128
+ /* latin-ext */
3129
+ @font-face {
3130
+ font-family: "Plus Jakarta Sans", sans-serif;
3131
+ font-style: normal;
3132
+ font-weight: 700;
3133
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
3134
+ }
3135
+ /* latin-ext */
3136
+ @font-face {
3137
+ font-family: "Plus Jakarta Sans", sans-serif;
3138
+ font-style: normal;
3139
+ font-weight: 600;
3140
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
3141
+ }
3142
+ /* latin-ext */
3143
+ @font-face {
3144
+ font-family: "Plus Jakarta Sans", sans-serif;
3145
+ font-style: normal;
3146
+ font-weight: 400;
3147
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
3148
+ }
3149
+ /* latin-ext */
3150
+ @font-face {
3151
+ font-family: "Plus Jakarta Sans", sans-serif;
3152
+ font-style: normal;
3153
+ font-weight: 300;
3154
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
3155
+ }
3156
+ ` }));
3157
+ const LegacyOverrides = ({ useLegacyOverrides }) => useLegacyOverrides ? (jsxRuntimeExports.jsx(react$1.Global, { styles: `
3158
+ h1,
3159
+ h2,
3160
+ h3,
3161
+ h4,
3162
+ h5,
3163
+ h6 {
3164
+ margin-top: 0;
3165
+ font-weight: ${fontWeights.semibold};
3166
+ }
3167
+
3168
+ .heading-sm {
3169
+ font-size: ${fontSizes.base};
3170
+ }
3171
+ .heading-md {
3172
+ font-size: ${fontSizes.md};
3173
+ }
3174
+ .heading-lg {
3175
+ font-size: ${fontSizes['5xl']};
3176
+ }
3177
+
3178
+ p {
3179
+ line-height: 1.5;
3180
+ }
3181
+
3182
+ a {
3183
+ outline: none;
3184
+ text-align: left;
3185
+ color: ${colors.primary.default};
3186
+ text-decoration: none;
3187
+
3188
+ &:active,
3189
+ &:focus {
3190
+ outline: none;
3191
+ }
3192
+
3193
+ &:hover {
3194
+ color: ${colors.primary['700']};
3195
+ }
3196
+ }
3197
+
3198
+ small {
3199
+ font-size: ${fontSizes.xs};
3200
+ }
3201
+
3202
+ ` })) : null;
2062
3203
 
2063
3204
  const item = {
2064
3205
  mb: 2
@@ -2166,9 +3307,7 @@ var Link_styles = merge__default.default(react.theme.components.Link, {
2166
3307
  defaultProps: defaultProps$5
2167
3308
  });
2168
3309
 
2169
- const { definePartsStyle: definePartsStyle$1, defineMultiStyleConfig: defineMultiStyleConfig$1 } =
2170
- react.createMultiStyleConfigHelpers(anatomy.accordionAnatomy.keys);
2171
-
3310
+ const { definePartsStyle: definePartsStyle$1, defineMultiStyleConfig: defineMultiStyleConfig$1 } = react.createMultiStyleConfigHelpers(anatomy.accordionAnatomy.keys);
2172
3311
  const baseStyle$9 = definePartsStyle$1({
2173
3312
  icon: {
2174
3313
  color: 'primary.default',
@@ -2187,7 +3326,6 @@ const baseStyle$9 = definePartsStyle$1({
2187
3326
  borderColor: 'gray.medium',
2188
3327
  },
2189
3328
  });
2190
-
2191
3329
  const variants$7 = {
2192
3330
  lined: {
2193
3331
  button: {
@@ -2249,33 +3387,30 @@ const variants$7 = {
2249
3387
  },
2250
3388
  }
2251
3389
  };
2252
-
2253
3390
  const defaultProps$4 = {
2254
3391
  variant: 'lined',
2255
3392
  };
2256
-
2257
- const accordionTheme = defineMultiStyleConfig$1({
3393
+ const accordionTheme = defineMultiStyleConfig$1({
2258
3394
  baseStyle: baseStyle$9,
2259
3395
  variants: variants$7,
2260
3396
  //TODO: add @rollup/plugin-typescript to this project
2261
3397
  //@ts-expect-error - This is due to babel not having a ts parser in it
2262
3398
  defaultProps: defaultProps$4,
2263
3399
  });
2264
-
2265
3400
  const theme$1 = react.extendTheme({
2266
- ...accordionTheme,
3401
+ ...accordionTheme,
2267
3402
  });
2268
3403
 
2269
3404
  const colorScheme = {
2270
- low: {
2271
- borderColor: 'gray.100'
2272
- },
2273
- medium: {
2274
- borderColor: 'gray.200'
2275
- }
3405
+ low: {
3406
+ borderColor: 'gray.100',
3407
+ },
3408
+ medium: {
3409
+ borderColor: 'gray.200',
3410
+ },
2276
3411
  };
2277
3412
  var Divider_styles = merge__default.default(react.theme.components.Divider, {
2278
- colorScheme
3413
+ colorScheme,
2279
3414
  });
2280
3415
 
2281
3416
  const baseStyle$8 = {
@@ -2560,27 +3695,23 @@ var index$5 = merge__default.default(inputStyles, {
2560
3695
  variants: variants$4
2561
3696
  });
2562
3697
 
2563
- const { definePartsStyle, defineMultiStyleConfig } =
2564
- react.createMultiStyleConfigHelpers(anatomy.selectAnatomy.keys);
2565
-
3698
+ const { definePartsStyle, defineMultiStyleConfig } = react.createMultiStyleConfigHelpers(anatomy.selectAnatomy.keys);
2566
3699
  const refreshed = definePartsStyle({
2567
- field: {
2568
- ...selectStyles.variants.outline.field,
2569
- height: 'auto',
2570
- paddingTop: 6,
2571
- paddingBottom: 3,
2572
- },
2573
- icon: {
2574
- ...selectStyles.variants.outline.field,
2575
- }
3700
+ field: {
3701
+ ...selectStyles.variants.outline.field,
3702
+ height: 'auto',
3703
+ paddingTop: 6,
3704
+ paddingBottom: 3,
3705
+ },
3706
+ icon: {
3707
+ ...selectStyles.variants.outline.field,
3708
+ }
2576
3709
  });
2577
-
2578
3710
  const selectTheme = defineMultiStyleConfig({
2579
- variants: { refreshed },
3711
+ variants: { refreshed },
2580
3712
  });
2581
-
2582
3713
  const theme = react.extendTheme({
2583
- components: { Select: selectTheme },
3714
+ components: { Select: selectTheme },
2584
3715
  });
2585
3716
 
2586
3717
  const variants$3 = {
@@ -2861,12 +3992,12 @@ var index$1 = merge__default.default(react.theme.components.Badge, {
2861
3992
  defaultProps: defaultProps$2
2862
3993
  });
2863
3994
 
2864
- const _excluded$i = ["hasFooter"];
3995
+ const _excluded$h = ["hasFooter"];
2865
3996
  const body = _ref => {
2866
3997
  let {
2867
3998
  hasFooter
2868
3999
  } = _ref;
2869
- _objectWithoutProperties(_ref, _excluded$i);
4000
+ _objectWithoutProperties(_ref, _excluded$h);
2870
4001
  return {
2871
4002
  overflowY: 'auto',
2872
4003
  padding: 6,
@@ -3264,26 +4395,23 @@ var components = /*#__PURE__*/Object.freeze({
3264
4395
 
3265
4396
  // use this to extend the base theme of chakra, this adds on top of what is defined in baseConfig
3266
4397
  const extendedTheme = {
3267
- initialColorMode: 'light',
3268
- useSystemColorMode: false,
3269
- styles: {
3270
- global
3271
- },
3272
- remToPixels: function (rem) {
3273
- let baseSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
3274
- return !rem ? 0 : "".concat(baseSize * Number(rem.replace('rem', '')));
3275
- }
4398
+ initialColorMode: 'light',
4399
+ useSystemColorMode: false,
4400
+ styles: {
4401
+ global,
4402
+ },
4403
+ remToPixels: (rem, baseSize = 16) => !rem ? 0 : `${baseSize * Number(rem.replace('rem', ''))}`,
3276
4404
  };
3277
-
3278
4405
  // use this to override base themes from Chakra
3279
- const baseConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, react.theme), {}, {
3280
- breakpoints
3281
- }, base), {}, {
3282
- components
3283
- });
4406
+ const baseConfig = {
4407
+ ...react.theme,
4408
+ breakpoints,
4409
+ ...base,
4410
+ components,
4411
+ };
3284
4412
  var THEME = react.extendTheme(extendedTheme, baseConfig);
3285
4413
 
3286
- const _excluded$h = ["theme", "useLegacyOverrides", "disableExternalFonts", "children"];
4414
+ const _excluded$g = ["theme", "useLegacyOverrides", "disableExternalFonts", "children"];
3287
4415
  const ThemeProvider = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3288
4416
  let {
3289
4417
  theme,
@@ -3291,10 +4419,10 @@ const ThemeProvider = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3291
4419
  disableExternalFonts = false,
3292
4420
  children
3293
4421
  } = _ref,
3294
- props = _objectWithoutProperties(_ref, _excluded$h);
4422
+ props = _objectWithoutProperties(_ref, _excluded$g);
3295
4423
  return /*#__PURE__*/React__namespace.default.createElement(react.ChakraProvider, _extends$6({}, props, {
3296
4424
  ref: ref,
3297
- theme: merge__default.default(THEME, theme)
4425
+ theme: merge__default.default({}, THEME, theme)
3298
4426
  }), disableExternalFonts ? null : /*#__PURE__*/React__namespace.default.createElement(Fonts, null), /*#__PURE__*/React__namespace.default.createElement(LegacyOverrides, {
3299
4427
  useLegacyOverrides: useLegacyOverrides
3300
4428
  }), children);
@@ -3310,17 +4438,10 @@ ThemeProvider.propTypes = {
3310
4438
  theme: PropTypes__default.default.object
3311
4439
  };
3312
4440
 
3313
- const Card = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(react.Box, _extends$6({
3314
- position: "relative",
3315
- padding: 4,
3316
- bgColor: "background.white",
3317
- borderRadius: "lg",
3318
- boxShadow: "md"
3319
- }, props, {
3320
- ref: ref
3321
- })));
4441
+ const Card = React.forwardRef((props, ref) => (jsxRuntimeExports.jsx(react.Box, { position: "relative", padding: 4, bgColor: "background.white", borderRadius: "lg", boxShadow: "md", ...props, ref: ref })));
4442
+ Card.displayName = 'Card';
3322
4443
 
3323
- const _excluded$g = ["isSSR", "cloudinaryImageId", "cloudinaryTemplate", "cloudinaryCloudName", "htmlWidth", "htmlHeight", "quality", "lazyLoad"];
4444
+ const _excluded$f = ["isSSR", "cloudinaryImageId", "cloudinaryTemplate", "cloudinaryCloudName", "htmlWidth", "htmlHeight", "quality", "lazyLoad"];
3324
4445
 
3325
4446
  // This code is copied from fe-utils https://github.com/spothero/fe-monorepo/blob/a0e06482e74dcb5502b21c5fbf0a679752a1f8ce/packages/fe-utils/src/environment/environment.js#L391
3326
4447
  function isHighDensityDisplay() {
@@ -3359,7 +4480,7 @@ const Image = _ref2 => {
3359
4480
  quality,
3360
4481
  lazyLoad
3361
4482
  } = _ref2,
3362
- otherProps = _objectWithoutProperties(_ref2, _excluded$g);
4483
+ otherProps = _objectWithoutProperties(_ref2, _excluded$f);
3363
4484
  const hasValidCloudinarySrc = (cloudinaryImageId || cloudinaryTemplate) && Boolean(htmlWidth) && Boolean(htmlHeight);
3364
4485
  let cloudinarySrc;
3365
4486
  if (hasValidCloudinarySrc) {
@@ -3409,7 +4530,7 @@ Image.defaultProps = {
3409
4530
  cloudinaryCloudName: 'spothero'
3410
4531
  };
3411
4532
 
3412
- const _excluded$f = ["color", "loaderBackgroundColor", "isInfinite", "size", "thickness", "trackColor", "value"];
4533
+ const _excluded$e = ["color", "loaderBackgroundColor", "isInfinite", "size", "thickness", "trackColor", "value"];
3413
4534
  const Loader = _ref => {
3414
4535
  let {
3415
4536
  color = 'success',
@@ -3420,7 +4541,7 @@ const Loader = _ref => {
3420
4541
  trackColor = 'gray.medium',
3421
4542
  value = 0
3422
4543
  } = _ref,
3423
- props = _objectWithoutProperties(_ref, _excluded$f);
4544
+ props = _objectWithoutProperties(_ref, _excluded$e);
3424
4545
  /* -------------------------------------------------------------------- *\
3425
4546
  Note: Since most of the props for this component control multiple
3426
4547
  styles at a time, it was decided that it made the most sense to set
@@ -3475,12 +4596,12 @@ Loader.propTypes = {
3475
4596
  value: PropTypes__default.default.number
3476
4597
  };
3477
4598
 
3478
- const _excluded$e = ["isRounded"];
4599
+ const _excluded$d = ["isRounded"];
3479
4600
  const Progress = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3480
4601
  let {
3481
4602
  isRounded
3482
4603
  } = _ref,
3483
- props = _objectWithoutProperties(_ref, _excluded$e);
4604
+ props = _objectWithoutProperties(_ref, _excluded$d);
3484
4605
  // Passing `isRounded` in as a prop throws a 'React does not recognize the X prop on a DOM element' error. Passing `isRounded` through `sx` instead, allows for the prop to be utilized by the theme without being set on the DOM element, avoiding the error.
3485
4606
  return /*#__PURE__*/React__namespace.default.createElement(react.Progress, _extends$6({
3486
4607
  ref: ref,
@@ -3524,7 +4645,7 @@ Progress.defaultProps = {
3524
4645
  variant: 'solid'
3525
4646
  };
3526
4647
 
3527
- const _excluded$d = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
4648
+ const _excluded$c = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
3528
4649
  const Checkbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3529
4650
  let {
3530
4651
  defaultChecked,
@@ -3535,7 +4656,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3535
4656
  children,
3536
4657
  size = 'md'
3537
4658
  } = _ref,
3538
- props = _objectWithoutProperties(_ref, _excluded$d);
4659
+ props = _objectWithoutProperties(_ref, _excluded$c);
3539
4660
  const helperTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
3540
4661
  return /*#__PURE__*/React__namespace.default.createElement(react.Checkbox, _extends$6({
3541
4662
  ref: ref,
@@ -3561,7 +4682,7 @@ Checkbox.propTypes = {
3561
4682
  size: PropTypes__default.default.oneOf(['sm', 'md', 'lg'])
3562
4683
  };
3563
4684
 
3564
- const _excluded$c = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "customRequiredText"];
4685
+ const _excluded$b = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "customRequiredText"];
3565
4686
  const Input$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3566
4687
  let {
3567
4688
  label,
@@ -3573,7 +4694,7 @@ const Input$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3573
4694
  isOptional,
3574
4695
  customRequiredText
3575
4696
  } = _ref,
3576
- props = _objectWithoutProperties(_ref, _excluded$c);
4697
+ props = _objectWithoutProperties(_ref, _excluded$b);
3577
4698
  const classes = cn__default.default({
3578
4699
  'FormElement-contains-error': isInvalid
3579
4700
  });
@@ -3604,7 +4725,7 @@ Input$1.propTypes = {
3604
4725
  customRequiredText: PropTypes__default.default.string
3605
4726
  };
3606
4727
 
3607
- const _excluded$b = ["label", "helperText", "errorMessage", "id", "children", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles"];
4728
+ const _excluded$a = ["label", "helperText", "errorMessage", "id", "children", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles"];
3608
4729
 
3609
4730
  // No clue how to move these into the style file so just co-located to keep from slowing down
3610
4731
  // Chakra V2 will heavily impact this component
@@ -3728,7 +4849,7 @@ const FormControl = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3728
4849
  rightElementStyles,
3729
4850
  leftElementStyles
3730
4851
  } = _ref,
3731
- props = _objectWithoutProperties(_ref, _excluded$b);
4852
+ props = _objectWithoutProperties(_ref, _excluded$a);
3732
4853
  return /*#__PURE__*/React__namespace.default.createElement(react.FormControl, _extends$6({}, props, {
3733
4854
  ref: ref
3734
4855
  }, controlStyles), /*#__PURE__*/React__namespace.default.createElement(react.InputGroup, null, leftElement && /*#__PURE__*/React__namespace.default.createElement(react.InputLeftElement, _extends$6({
@@ -3770,7 +4891,7 @@ FormControl.propTypes = {
3770
4891
  isInvalid: PropTypes__default.default.bool
3771
4892
  };
3772
4893
 
3773
- const _excluded$a = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "placeholder"];
4894
+ const _excluded$9 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "placeholder"];
3774
4895
 
3775
4896
  /**
3776
4897
  * A component used in the homepage/midfunnel refresh of 2024
@@ -3791,7 +4912,7 @@ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3791
4912
  leftElementStyles,
3792
4913
  placeholder = ' '
3793
4914
  } = _ref,
3794
- props = _objectWithoutProperties(_ref, _excluded$a);
4915
+ props = _objectWithoutProperties(_ref, _excluded$9);
3795
4916
  const classes = cn__default.default({
3796
4917
  'FormElement-contains-error': isInvalid
3797
4918
  }); //Historic carry over
@@ -3834,7 +4955,7 @@ Input.propTypes = {
3834
4955
  leftElementStyles: PropTypes__default.default.object
3835
4956
  };
3836
4957
 
3837
- const _excluded$9 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "formControlStyles"];
4958
+ const _excluded$8 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "formControlStyles"];
3838
4959
 
3839
4960
  //For select left is static arrow,
3840
4961
  /**
@@ -3858,7 +4979,7 @@ const Select = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3858
4979
  leftElementStyles,
3859
4980
  formControlStyles
3860
4981
  } = _ref,
3861
- props = _objectWithoutProperties(_ref, _excluded$9);
4982
+ props = _objectWithoutProperties(_ref, _excluded$8);
3862
4983
  const classes = cn__default.default({
3863
4984
  'FormElement-contains-error': isInvalid
3864
4985
  });
@@ -3899,7 +5020,7 @@ Select.propTypes = {
3899
5020
  rightElementStyles: PropTypes__default.default.object
3900
5021
  };
3901
5022
 
3902
- const _excluded$8 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isHighlighted", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
5023
+ const _excluded$7 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isHighlighted", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
3903
5024
 
3904
5025
  /**
3905
5026
  * A component used in the homepage/midfunnel refresh of 2024
@@ -3923,7 +5044,7 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3923
5044
  leftElementStyles,
3924
5045
  buttonValue
3925
5046
  } = _ref,
3926
- props = _objectWithoutProperties(_ref, _excluded$8);
5047
+ props = _objectWithoutProperties(_ref, _excluded$7);
3927
5048
  const classes = cn__default.default({
3928
5049
  'FormElement-contains-error': isInvalid
3929
5050
  }); //Historic carry over
@@ -4167,7 +5288,7 @@ AutoSuggestSelect$1.propTypes = {
4167
5288
  leftElementStyles: PropTypes__default.default.object
4168
5289
  };
4169
5290
 
4170
- const _excluded$7 = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
5291
+ const _excluded$6 = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
4171
5292
  const Radio = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4172
5293
  let {
4173
5294
  defaultChecked,
@@ -4178,7 +5299,7 @@ const Radio = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4178
5299
  children,
4179
5300
  size = 'md'
4180
5301
  } = _ref,
4181
- props = _objectWithoutProperties(_ref, _excluded$7);
5302
+ props = _objectWithoutProperties(_ref, _excluded$6);
4182
5303
  const helperTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
4183
5304
  return /*#__PURE__*/React__namespace.default.createElement(react.Radio, _extends$6({
4184
5305
  ref: ref,
@@ -4203,7 +5324,7 @@ Radio.propTypes = {
4203
5324
  size: PropTypes__default.default.oneOf(['sm', 'md', 'lg'])
4204
5325
  };
4205
5326
 
4206
- const _excluded$6 = ["label", "errorMessage", "defaultValue", "isDisabled", "isInvalid", "isRequired", "name", "onChange", "value", "children", "direction"];
5327
+ const _excluded$5 = ["label", "errorMessage", "defaultValue", "isDisabled", "isInvalid", "isRequired", "name", "onChange", "value", "children", "direction"];
4207
5328
  const RadioGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4208
5329
  let {
4209
5330
  label,
@@ -4218,7 +5339,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4218
5339
  children,
4219
5340
  direction
4220
5341
  } = _ref,
4221
- props = _objectWithoutProperties(_ref, _excluded$6);
5342
+ props = _objectWithoutProperties(_ref, _excluded$5);
4222
5343
  return /*#__PURE__*/React__namespace.default.createElement(FormControl$1, {
4223
5344
  isInvalid: isInvalid,
4224
5345
  isDisabled: isDisabled,
@@ -4253,7 +5374,7 @@ RadioGroup.propTypes = {
4253
5374
  direction: PropTypes__default.default.oneOf(['row', 'column'])
4254
5375
  };
4255
5376
 
4256
- const _excluded$5 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles", "topChild", "expandableContentKey"];
5377
+ const _excluded$4 = ["isChecked", "isDisabled", "value", "helperText", "expandableChildren", "defaultChecked", "isRadio", "label", "isExpandable", "size", "expandableChildrenStyles", "topChild", "expandableContentKey"];
4257
5378
  const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4258
5379
  let {
4259
5380
  isChecked,
@@ -4270,7 +5391,7 @@ const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4270
5391
  topChild,
4271
5392
  expandableContentKey = 'selection-card-content'
4272
5393
  } = _ref,
4273
- props = _objectWithoutProperties(_ref, _excluded$5);
5394
+ props = _objectWithoutProperties(_ref, _excluded$4);
4274
5395
  const Component = isRadio ? Radio : Checkbox;
4275
5396
  const expandableTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
4276
5397
  const hasExpandableContent = isExpandable && isChecked && expandableChildren;
@@ -4352,29 +5473,10 @@ SelectionCard.propTypes = {
4352
5473
  expandableContentKey: PropTypes__default.default.string
4353
5474
  };
4354
5475
 
4355
- const _excluded$4 = ["variant", "colorScheme"];
4356
- const Divider = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4357
- let {
4358
- variant,
4359
- colorScheme: borderColor
4360
- } = _ref,
4361
- props = _objectWithoutProperties(_ref, _excluded$4);
4362
- return /*#__PURE__*/React__namespace.default.createElement(react.Divider, _extends$6({}, colorScheme[borderColor], {
4363
- variant: variant
4364
- }, props, {
4365
- ref: ref
4366
- }));
5476
+ const Divider = React.forwardRef(({ variant = 'solid', colorScheme: borderColor = 'medium', ...props }, ref) => {
5477
+ return (jsxRuntimeExports.jsx(react.Divider, { ...colorScheme[borderColor], variant: variant, ...props, ref: ref }));
4367
5478
  });
4368
- Divider.propTypes = {
4369
- /** Color scheme used */
4370
- colorScheme: PropTypes__default.default.oneOf(['low', 'medium']),
4371
- /** The styling that will be applied to the HR tag */
4372
- variant: PropTypes__default.default.oneOf(['solid', 'dashed'])
4373
- };
4374
- Divider.defaultProps = {
4375
- variant: 'solid',
4376
- colorScheme: 'medium'
4377
- };
5479
+ Divider.displayName = 'Divider';
4378
5480
 
4379
5481
  const _excluded$3 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "customRequiredText"];
4380
5482
  const Textarea = /*#__PURE__*/React.forwardRef((_ref, ref) => {