@spothero/ui 25.4.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 (60) hide show
  1. package/dist/components/Accordion/styles/index.d.ts +2 -2
  2. package/dist/components/Badge/styles/index.d.ts +78 -0
  3. package/dist/components/Button/Button.styles.d.ts +601 -0
  4. package/dist/components/Card/Card.d.ts +4 -0
  5. package/dist/components/Checkbox/styles/index.d.ts +200 -0
  6. package/dist/components/Container/Container.d.ts +4 -0
  7. package/dist/components/Container/Container.styles.d.ts +10 -0
  8. package/dist/components/Divider/Divider.d.ts +11 -0
  9. package/dist/components/Divider/Divider.styles.d.ts +40 -0
  10. package/dist/components/Drawer/styles/index.d.ts +149 -0
  11. package/dist/components/FormControl/FormControl.d.ts +13 -0
  12. package/dist/components/Grid/GridItem.styles.d.ts +4 -0
  13. package/dist/components/Heading/Heading.styles.d.ts +66 -0
  14. package/dist/components/Icon/Icon.d.ts +1 -1
  15. package/dist/components/Input/styles/index.d.ts +217 -0
  16. package/dist/components/Link/Link.styles.d.ts +102 -0
  17. package/dist/components/List/styles/index.d.ts +32 -0
  18. package/dist/components/List/styles/item.styles.d.ts +4 -0
  19. package/dist/components/Menu/Menu.styles.d.ts +258 -0
  20. package/dist/components/Modal/styles/body.d.ts +30 -0
  21. package/dist/components/Modal/styles/closeButton.d.ts +18 -0
  22. package/dist/components/Modal/styles/dialog.d.ts +16 -0
  23. package/dist/components/Modal/styles/dialogContainer.d.ts +12 -0
  24. package/dist/components/Modal/styles/footer.d.ts +6 -0
  25. package/dist/components/Modal/styles/header.d.ts +10 -0
  26. package/dist/components/Modal/styles/index.d.ts +227 -0
  27. package/dist/components/Modal/styles/overlay.d.ts +5 -0
  28. package/dist/components/Popover/styles/index.d.ts +100 -0
  29. package/dist/components/Popover/styles/popover-body.d.ts +4 -0
  30. package/dist/components/Popover/styles/popover-content.d.ts +20 -0
  31. package/dist/components/Popover/styles/popover-header.d.ts +5 -0
  32. package/dist/components/Popover/styles/popper.d.ts +4 -0
  33. package/dist/components/Progress/Progress.styles.d.ts +75 -0
  34. package/dist/components/Radio/styles/index.d.ts +292 -0
  35. package/dist/components/RefreshedInput/Button/styles/index.d.ts +413 -0
  36. package/dist/components/RefreshedInput/Input/styles/index.d.ts +260 -0
  37. package/dist/components/Select/styles/index.d.ts +2 -2
  38. package/dist/components/Skeleton/Skeleton.styles.d.ts +26 -0
  39. package/dist/components/Spinner/Spinner.d.ts +12 -0
  40. package/dist/components/Spinner/Spinner.styles.d.ts +144 -0
  41. package/dist/components/Switch/styles/index.d.ts +116 -0
  42. package/dist/components/Table/Table.styles.d.ts +69 -0
  43. package/dist/components/Tabs/styles/index.d.ts +308 -0
  44. package/dist/components/Text/Text.styles.d.ts +30 -0
  45. package/dist/components/styles.d.ts +26 -0
  46. package/dist/index.cjs.js +1824 -713
  47. package/dist/index.cjs.js.map +1 -1
  48. package/dist/index.d.ts +248 -0
  49. package/dist/index.esm.js +1824 -713
  50. package/dist/index.esm.js.map +1 -1
  51. package/dist/theme/base/breakpoints.d.ts +6 -6
  52. package/dist/theme/base/colors.d.ts +106 -116
  53. package/dist/theme/base/index.d.ts +7 -7
  54. package/dist/theme/base/notifications.d.ts +80 -104
  55. package/dist/theme/base/sizes.d.ts +41 -41
  56. package/dist/theme/base/typography.d.ts +22 -22
  57. package/dist/theme/base/zindices.d.ts +15 -15
  58. package/dist/theme/global.d.ts +21 -0
  59. package/dist/theme/index.d.ts +2 -0
  60. package/package.json +5 -5
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,394 +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
- brand: blue['500']
466
- }),
467
- secondary: _objectSpread2(_objectSpread2({}, navy), {}, {
468
- default: navy['900']
469
- }),
470
- success: green['700'],
471
- warning: yellow['400'],
472
- error: red['700'],
473
- accent: gray['200'],
474
- 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
+ },
475
431
  primary: {
476
- light: black,
477
- dark: white
432
+ ...blue,
433
+ default: blue['500'],
434
+ brand: blue['500'],
478
435
  },
479
436
  secondary: {
480
- light: gray['600']
437
+ ...navy,
438
+ default: navy['900'],
481
439
  },
482
- link: {
483
- light: blue['500'],
484
- dark: white
485
- }
486
- },
487
- background: {
488
- gray: gray['50'],
489
- white
490
- },
491
- white,
492
- black,
493
- brandBlue,
494
- 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,
495
465
  };
496
466
 
497
467
  const shadows = {
498
- outline: '0 0 0 3px rgba(29, 88, 242, 0.7)',
499
- // primary.600, 70% opacity
500
- 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)',
501
470
  };
502
471
  var shadows$1 = merge__default.default(react.theme.shadows, shadows);
503
472
 
504
473
  const indices = {
505
- hide: -100,
506
- // equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
507
- auto: 'auto',
508
- base: 0,
509
- // equivalent to $z-index-back in fe-core
510
- layer1: 100,
511
- // equivalent to $z-index-mid in fe-core
512
- layer2: 200,
513
- // equivalent to $z-index-fore in fe-core
514
- layer3: 300,
515
- // equivalent to $z-index-layer1 in fe-core
516
- layer4: 400,
517
- // equivalent to $z-index-layer2 in fe-core
518
- layer5: 500,
519
- // equivalent to $z-index-layer3 in fe-core
520
- layer6: 600,
521
- // equivalent to $z-index-layer4 in fe-core
522
- layer7: 700,
523
- // equivalent to $z-index-modal-shim in fe-core
524
- layer8: 800,
525
- // equivalent to $z-index-modal in fe-core
526
- layer9: 900,
527
- // equivalent to $z-index-notification in fe-core
528
- 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
529
487
  };
530
488
 
531
489
  const breakpoints = {
532
- mobileXL: '30rem',
533
- // 480px
534
- tablet: '48rem',
535
- // 768px
536
- desktop: '64rem',
537
- // 1024px
538
- desktopXL: '90rem' // 1440px
490
+ mobileXL: '30rem', // 480px
491
+ tablet: '48rem', // 768px
492
+ desktop: '64rem', // 1024px
493
+ desktopXL: '90rem', // 1440px
539
494
  };
540
495
 
541
496
  const fonts = {
542
- heading: "\"Plus Jakarta Sans\", sans-serif",
543
- body: "\"Plus Jakarta Sans\", sans-serif"
497
+ heading: `"Plus Jakarta Sans", sans-serif`,
498
+ body: `"Plus Jakarta Sans", sans-serif`,
544
499
  };
545
500
  const fontSizes = {
546
- '5xl': '3.5rem',
547
- // 56px
548
- '4xl': '3rem',
549
- // 48px
550
- '3xl': '2.5rem',
551
- // 40px
552
- '2xl': '2rem',
553
- // 32px
554
- xl: '1.5rem',
555
- // 24px
556
- lg: '1.25rem',
557
- // 20px
558
- md: '1.125rem',
559
- // 18px
560
- base: '1rem',
561
- // 16px
562
- sm: '0.875rem',
563
- // 14px
564
- 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
565
511
  };
566
512
  const fontWeights = {
567
- light: 300,
568
- normal: 400,
569
- medium: 500,
570
- semibold: 600,
571
- bold: 700
513
+ light: 300,
514
+ normal: 400,
515
+ medium: 500,
516
+ semibold: 600,
517
+ bold: 700,
572
518
  };
573
519
 
574
520
  const NOTIFICATION_STATUSES = {
575
- NEUTRAL: 'neutral',
576
- ERROR: 'error',
577
- WARNING: 'warning',
578
- SUCCESS: 'success'
521
+ NEUTRAL: 'neutral',
522
+ ERROR: 'error',
523
+ WARNING: 'warning',
524
+ SUCCESS: 'success',
579
525
  };
580
526
  const NOTIFICATION_SIZES = {
581
- SM: 'sm',
582
- MD: 'md',
583
- LG: 'lg'
527
+ SM: 'sm',
528
+ MD: 'md',
529
+ LG: 'lg',
584
530
  };
585
531
  const notificationBaseStyle = {
586
- container: {
587
- paddingY: 2,
588
- borderRadius: 'base'
589
- },
590
- actionButton: {
591
- fontSize: 'sm',
592
- height: 'fit-content',
593
- lineHeight: '1.4',
594
- color: 'primary.600',
595
- _hover: {
596
- color: 'primary.700'
597
- }
598
- },
599
- dismissButton: {
600
- color: 'gray.600',
601
- borderColor: 'transparent',
602
- borderWidth: '2px',
603
- padding: 0,
604
- width: 10,
605
- height: 10,
606
- backgroundColor: 'transparent',
607
- borderRadius: 'base',
608
- marginLeft: 2,
609
- _hover: {
610
- color: 'gray.700'
611
- },
612
- _focus: {
613
- color: 'gray.700',
614
- borderColor: 'white',
615
- boxShadow: 'outline'
616
- }
617
- },
618
- icon: {
619
- width: 6,
620
- marginRight: 2,
621
- height: 'auto'
622
- },
623
- description: {
624
- lineHeight: 1.4
625
- },
626
- title: {
627
- lineHeight: 1.4
628
- },
629
- variants: {},
630
- sizes: {
631
- sm: {
632
- title: {
633
- fontSize: 'xs'
634
- },
635
- description: {
636
- fontSize: 'xs'
637
- }
638
- },
639
- md: {
640
- title: {
641
- fontSize: 'sm'
642
- },
643
- description: {
644
- fontSize: 'sm'
645
- }
532
+ container: {
533
+ paddingY: 2,
534
+ borderRadius: 'base',
646
535
  },
647
- lg: {
648
- title: {
649
- fontSize: 'base'
650
- },
651
- description: {
652
- fontSize: 'base'
653
- }
654
- }
655
- }
656
- };
657
- const notificationStatusStyles = status => {
658
- switch (status) {
659
- case NOTIFICATION_STATUSES.NEUTRAL:
660
- return {
661
- container: {
662
- background: 'blue.50'
663
- },
664
- icon: {
665
- color: 'blue.500'
666
- },
667
- dismissButton: {
668
- _hover: {
669
- background: 'blue.200'
670
- },
671
- _focus: {
672
- background: 'blue.200'
673
- }
674
- }
675
- };
676
- case NOTIFICATION_STATUSES.WARNING:
677
- return {
678
- container: {
679
- 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',
680
543
  },
681
- icon: {
682
- 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',
683
557
  },
684
- dismissButton: {
685
- _hover: {
686
- background: 'yellow.200'
687
- },
688
- _focus: {
689
- background: 'yellow.200'
690
- }
691
- }
692
- };
693
- case NOTIFICATION_STATUSES.ERROR:
694
- return {
695
- container: {
696
- background: 'red.50'
558
+ _focus: {
559
+ color: 'gray.700',
560
+ borderColor: 'white',
561
+ boxShadow: 'outline',
697
562
  },
698
- icon: {
699
- 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
+ },
700
584
  },
701
- dismissButton: {
702
- _hover: {
703
- background: 'red.200'
704
- },
705
- _focus: {
706
- background: 'red.200'
707
- }
708
- }
709
- };
710
- case NOTIFICATION_STATUSES.SUCCESS:
711
- return {
712
- container: {
713
- background: 'green.50'
585
+ md: {
586
+ title: {
587
+ fontSize: 'sm',
588
+ },
589
+ description: {
590
+ fontSize: 'sm',
591
+ },
714
592
  },
715
- icon: {
716
- color: 'green.700'
593
+ lg: {
594
+ title: {
595
+ fontSize: 'base',
596
+ },
597
+ description: {
598
+ fontSize: 'base',
599
+ },
717
600
  },
718
- dismissButton: {
719
- _hover: {
720
- background: 'green.200'
721
- },
722
- _focus: {
723
- background: 'green.200'
724
- }
725
- }
726
- };
727
- default:
728
- return {};
729
- }
601
+ },
730
602
  };
731
- const notificationSizeStyles = size => {
732
- switch (size) {
733
- case NOTIFICATION_SIZES.SM:
734
- return {
735
- title: {
736
- fontSize: 'xs'
737
- },
738
- description: {
739
- fontSize: 'xs'
740
- }
741
- };
742
- case NOTIFICATION_SIZES.MD:
743
- return {
744
- title: {
745
- fontSize: 'sm'
746
- },
747
- description: {
748
- fontSize: 'sm'
749
- }
750
- };
751
- case NOTIFICATION_SIZES.LG:
752
- return {
753
- title: {
754
- fontSize: 'base'
755
- },
756
- description: {
757
- fontSize: 'base'
758
- }
759
- };
760
- default:
761
- return {};
762
- }
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
+ }
763
709
  };
764
710
 
765
711
  var base = /*#__PURE__*/Object.freeze({
@@ -859,6 +805,10 @@ const hoverSecondaryColor = generateOklchColor('white', '- 0.03');
859
805
  const activeSecondaryColor = generateOklchColor('white', '- 0.06');
860
806
  // 10% lighter (lightness)
861
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');
862
812
 
863
813
  /**
864
814
  * Button Variants - Simplified Color System Using OKLCH
@@ -981,6 +931,41 @@ const variants$d = {
981
931
  }
982
932
  }
983
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
+ },
984
969
  destructive: _objectSpread2({}, destructiveButtonStyles),
985
970
  destructiveOnDark: _objectSpread2({}, destructiveButtonStyles)
986
971
  };
@@ -1051,7 +1036,7 @@ const props = {
1051
1036
  variant: PropTypes__default.default.oneOf(Object.keys(variants$d))
1052
1037
  };
1053
1038
 
1054
- const _excluded$t = ["asAnchor", "isExternal", "height"];
1039
+ const _excluded$q = ["asAnchor", "isExternal", "height"];
1055
1040
  const anchorProps = function () {
1056
1041
  let isExternal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1057
1042
  return _objectSpread2({
@@ -1068,7 +1053,7 @@ const Button$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1068
1053
  isExternal,
1069
1054
  height = 'md'
1070
1055
  } = _ref,
1071
- props = _objectWithoutProperties(_ref, _excluded$t);
1056
+ props = _objectWithoutProperties(_ref, _excluded$q);
1072
1057
  return /*#__PURE__*/React__namespace.default.createElement(react.Button, _extends$6({
1073
1058
  iconSpacing: 2
1074
1059
  }, props, heightProps(height), (asAnchor || props.as === 'a') && anchorProps(isExternal), {
@@ -1081,7 +1066,7 @@ Button$1.defaultProps = {
1081
1066
  type: 'button'
1082
1067
  };
1083
1068
 
1084
- const _excluded$s = ["header", "drawerCloseButton", "children", "headerProps"];
1069
+ const _excluded$p = ["header", "drawerCloseButton", "children", "headerProps"];
1085
1070
  const Drawer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1086
1071
  let {
1087
1072
  header,
@@ -1089,7 +1074,7 @@ const Drawer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1089
1074
  children,
1090
1075
  headerProps
1091
1076
  } = _ref,
1092
- props = _objectWithoutProperties(_ref, _excluded$s);
1077
+ props = _objectWithoutProperties(_ref, _excluded$p);
1093
1078
  return /*#__PURE__*/React__namespace.default.createElement(react.Drawer, _extends$6({
1094
1079
  placement: "right"
1095
1080
  }, props, {
@@ -1221,7 +1206,7 @@ var SvgCheckmarkCircleFilled = function SvgCheckmarkCircleFilled(props, ref) {
1221
1206
  };
1222
1207
  var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgCheckmarkCircleFilled);
1223
1208
 
1224
- 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"];
1225
1210
  const statusIconMapping = {
1226
1211
  [NOTIFICATION_STATUSES.WARNING]: ForwardRef$3,
1227
1212
  [NOTIFICATION_STATUSES.SUCCESS]: ForwardRef$2,
@@ -1241,7 +1226,7 @@ const Alert = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1241
1226
  description,
1242
1227
  icon
1243
1228
  } = _ref,
1244
- props = _objectWithoutProperties(_ref, _excluded$r);
1229
+ props = _objectWithoutProperties(_ref, _excluded$o);
1245
1230
  const IconVariant = icon || statusIconMapping[status];
1246
1231
  // the issue with storybook breaking with hooks is still a problem, but once that's resolved this should be memoized
1247
1232
  const style = merge__default.default(_objectSpread2({}, react.theme.components.Alert.baseStyle), notificationBaseStyle, notificationStatusStyles(status), notificationSizeStyles(props.size));
@@ -1400,7 +1385,7 @@ const combineSizeWithVariant = _ref => {
1400
1385
  return styleProps;
1401
1386
  };
1402
1387
 
1403
- const _excluded$q = ["size"];
1388
+ const _excluded$n = ["size"];
1404
1389
  const sizeMapping = {
1405
1390
  [SIZE_SMALL]: 'sm',
1406
1391
  [SIZE_BODY]: 'md',
@@ -1410,7 +1395,7 @@ const Tabs = react.forwardRef((_ref, ref) => {
1410
1395
  let {
1411
1396
  size
1412
1397
  } = _ref,
1413
- props = _objectWithoutProperties(_ref, _excluded$q);
1398
+ props = _objectWithoutProperties(_ref, _excluded$n);
1414
1399
  return /*#__PURE__*/React__namespace.default.createElement(react.Tabs, _extends$6({
1415
1400
  size: sizeMapping[size]
1416
1401
  }, props, combineSizeWithVariant({
@@ -1453,65 +1438,1206 @@ var SvgChevronDown = function SvgChevronDown(props, ref) {
1453
1438
  };
1454
1439
  var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgChevronDown);
1455
1440
 
1456
- const _excluded$p = ["children", "label", "inputId", "helperText", "errorMessage", "isFieldset", "isOptional", "customRequiredText"];
1457
- const FormControl$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1458
- let {
1459
- children,
1460
- label,
1461
- inputId,
1462
- helperText,
1463
- errorMessage,
1464
- isFieldset,
1465
- isOptional,
1466
- customRequiredText
1467
- } = _ref,
1468
- props = _objectWithoutProperties(_ref, _excluded$p);
1469
- return /*#__PURE__*/React__namespace.default.createElement(react.FormControl, _extends$6({}, props, {
1470
- ref: ref,
1471
- as: isFieldset ? 'fieldset' : 'div',
1472
- borderWidth: "0"
1473
- }), label && /*#__PURE__*/React__namespace.default.createElement(react.FormLabel, {
1474
- color: "gray.600",
1475
- fontWeight: "semibold",
1476
- marginBottom: helperText ? 0 : 1,
1477
- fontSize: "sm",
1478
- htmlFor: inputId,
1479
- as: isFieldset ? 'legend' : 'label',
1480
- requiredIndicator: props !== null && props !== void 0 && props.isRequired && customRequiredText ? /*#__PURE__*/React__namespace.default.createElement(react.Text, {
1481
- marginLeft: 1,
1482
- as: "span",
1483
- variant: "caption",
1484
- color: "text.secondary.light"
1485
- }, customRequiredText) : null,
1486
- optionalIndicator: isOptional && !(props !== null && props !== void 0 && props.isRequired) ? /*#__PURE__*/React__namespace.default.createElement(react.Text, {
1487
- marginLeft: 1,
1488
- as: "span",
1489
- variant: "caption",
1490
- color: "text.secondary.light"
1491
- }, "Optional") : null
1492
- }, label), helperText && /*#__PURE__*/React__namespace.default.createElement(react.FormHelperText, {
1493
- color: "gray.600",
1494
- marginBottom: 1,
1495
- fontSize: "xs"
1496
- }, helperText), children, /*#__PURE__*/React__namespace.default.createElement(react.FormErrorMessage, {
1497
- color: "error",
1498
- mt: 1,
1499
- fontSize: "xs"
1500
- }, errorMessage));
1501
- });
1502
- FormControl$1.propTypes = {
1503
- inputId: PropTypes__default.default.string.isRequired,
1504
- label: PropTypes__default.default.string,
1505
- helperText: PropTypes__default.default.string,
1506
- errorMessage: PropTypes__default.default.string,
1507
- children: PropTypes__default.default.element,
1508
- isFieldset: PropTypes__default.default.bool,
1509
- isOptional: PropTypes__default.default.bool,
1510
- isRequired: PropTypes__default.default.bool,
1511
- customRequiredText: PropTypes__default.default.string
1512
- };
1441
+ var jsxRuntime = {exports: {}};
1442
+
1443
+ var reactJsxRuntime_production_min = {};
1513
1444
 
1514
- const _excluded$o = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional"];
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';
2639
+
2640
+ const _excluded$m = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional"];
1515
2641
  const Select$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1516
2642
  let {
1517
2643
  label,
@@ -1522,7 +2648,7 @@ const Select$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1522
2648
  isRequired,
1523
2649
  isOptional
1524
2650
  } = _ref,
1525
- props = _objectWithoutProperties(_ref, _excluded$o);
2651
+ props = _objectWithoutProperties(_ref, _excluded$m);
1526
2652
  const classes = cn__default.default({
1527
2653
  'FormElement-contains-error': isInvalid
1528
2654
  });
@@ -1557,7 +2683,7 @@ Select$1.propTypes = {
1557
2683
  isOptional: PropTypes__default.default.bool
1558
2684
  };
1559
2685
 
1560
- const _excluded$n = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired"];
2686
+ const _excluded$l = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired"];
1561
2687
  const Switch = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1562
2688
  let {
1563
2689
  label,
@@ -1567,7 +2693,7 @@ const Switch = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1567
2693
  isDisabled,
1568
2694
  isRequired
1569
2695
  } = _ref,
1570
- props = _objectWithoutProperties(_ref, _excluded$n);
2696
+ props = _objectWithoutProperties(_ref, _excluded$l);
1571
2697
  const classes = cn__default.default({
1572
2698
  'FormElement-contains-error': isInvalid
1573
2699
  });
@@ -1715,13 +2841,13 @@ const combineAsWithVariant = _ref => {
1715
2841
  return styleProps;
1716
2842
  };
1717
2843
 
1718
- const _excluded$m = ["as", "variant"];
2844
+ const _excluded$k = ["as", "variant"];
1719
2845
  const Text = react.forwardRef((_ref, ref) => {
1720
2846
  let {
1721
2847
  as,
1722
2848
  variant
1723
2849
  } = _ref,
1724
- props = _objectWithoutProperties(_ref, _excluded$m);
2850
+ props = _objectWithoutProperties(_ref, _excluded$k);
1725
2851
  return /*#__PURE__*/React__namespace.default.createElement(react.Text, _extends$6({
1726
2852
  variant: variant,
1727
2853
  as: as
@@ -1757,12 +2883,12 @@ const compactStyles = {
1757
2883
  gap: 4
1758
2884
  };
1759
2885
 
1760
- const _excluded$l = ["isCompact"];
2886
+ const _excluded$j = ["isCompact"];
1761
2887
  const Grid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1762
2888
  let {
1763
2889
  isCompact
1764
2890
  } = _ref,
1765
- props = _objectWithoutProperties(_ref, _excluded$l);
2891
+ props = _objectWithoutProperties(_ref, _excluded$j);
1766
2892
  return /*#__PURE__*/React__namespace.default.createElement(react.Grid, _extends$6({}, baseStyles, isCompact && compactStyles, props, {
1767
2893
  ref: ref
1768
2894
  }));
@@ -1786,7 +2912,7 @@ const GridItem = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/Reac
1786
2912
  ref: ref
1787
2913
  })));
1788
2914
 
1789
- const _excluded$k = ["type"];
2915
+ const _excluded$i = ["type"];
1790
2916
  const unorderedProps = {
1791
2917
  as: 'ul',
1792
2918
  styleType: 'disc'
@@ -1822,7 +2948,7 @@ const List = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1822
2948
  let {
1823
2949
  type
1824
2950
  } = _ref,
1825
- props = _objectWithoutProperties(_ref, _excluded$k);
2951
+ props = _objectWithoutProperties(_ref, _excluded$i);
1826
2952
  return /*#__PURE__*/React__namespace.default.createElement(react.List, _extends$6({}, getListProps(type), props, {
1827
2953
  ref: ref
1828
2954
  }));
@@ -1840,110 +2966,63 @@ List.propTypes = {
1840
2966
 
1841
2967
  const spinnerStyles = react.theme.components.Spinner;
1842
2968
  const SIZE_MAP = {
1843
- xs: 'xs',
1844
- sm: 'sm',
1845
- md: 'md',
1846
- lg: 'lg',
1847
- xl: 'xl',
1848
- '2xl': '2xl',
1849
- '3xl': '3xl',
1850
- '4xl': '4xl',
1851
- '5xl': '5xl',
1852
- '6xl': '6xl',
1853
- '7xl': '7xl',
1854
- '8xl': '8xl',
1855
- '9xl': '9xl',
1856
- '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',
1857
2983
  };
1858
2984
  const sizes$5 = merge__default.default(spinnerStyles.sizes, {
1859
- [SIZE_MAP['2xl']]: {
1860
- w: '4rem',
1861
- h: '4rem'
1862
- },
1863
- [SIZE_MAP['3xl']]: {
1864
- w: '5rem',
1865
- h: '5rem'
1866
- },
1867
- [SIZE_MAP['4xl']]: {
1868
- w: '6rem',
1869
- h: '6rem'
1870
- },
1871
- [SIZE_MAP['5xl']]: {
1872
- w: '7rem',
1873
- h: '7rem'
1874
- },
1875
- [SIZE_MAP['6xl']]: {
1876
- w: '8rem',
1877
- h: '8rem'
1878
- },
1879
- [SIZE_MAP['7xl']]: {
1880
- w: '9rem',
1881
- h: '9rem'
1882
- },
1883
- [SIZE_MAP['8xl']]: {
1884
- w: '10rem',
1885
- h: '10rem'
1886
- },
1887
- [SIZE_MAP['9xl']]: {
1888
- w: '11rem',
1889
- h: '11rem'
1890
- },
1891
- [SIZE_MAP['10xl']]: {
1892
- w: '12rem',
1893
- h: '12rem'
1894
- }
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' },
1895
2994
  });
1896
2995
  const thicknesses = {
1897
- [SIZE_MAP.xl]: 3,
1898
- [SIZE_MAP['2xl']]: 4,
1899
- [SIZE_MAP['3xl']]: 5,
1900
- [SIZE_MAP['4xl']]: 6,
1901
- [SIZE_MAP['5xl']]: 7,
1902
- [SIZE_MAP['6xl']]: 8,
1903
- [SIZE_MAP['7xl']]: 9,
1904
- [SIZE_MAP['8xl']]: 10,
1905
- [SIZE_MAP['9xl']]: 11,
1906
- [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,
1907
3006
  };
1908
3007
  const defaultProps$8 = {
1909
- speed: '2s',
1910
- size: SIZE_MAP['2xl'],
1911
- thickness: thicknesses[SIZE_MAP['2xl']]
3008
+ speed: '2s',
3009
+ size: SIZE_MAP['2xl'],
3010
+ thickness: thicknesses[SIZE_MAP['2xl']],
1912
3011
  };
1913
3012
  var Spinner_styles = {
1914
- sizes: sizes$5,
1915
- defaultProps: defaultProps$8
3013
+ sizes: sizes$5,
3014
+ defaultProps: defaultProps$8,
1916
3015
  };
1917
3016
 
1918
- const _excluded$j = ["size", "thickness"];
1919
- const Spinner = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1920
- let {
1921
- size,
1922
- thickness
1923
- } = _ref,
1924
- props = _objectWithoutProperties(_ref, _excluded$j);
1925
- const thicknessString = thickness ? "".concat(thickness, "px") : thicknesses[size] ? "".concat(thicknesses[size], "px") : '2px';
1926
- return /*#__PURE__*/React__namespace.default.createElement(react.Spinner, _extends$6({
1927
- ref: ref,
1928
- role: "status",
1929
- color: "primary.default",
1930
- emptyColor: "gray.medium",
1931
- thickness: thicknessString,
1932
- size: size || SIZE_MAP['2xl']
1933
- }, 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 }));
1934
3024
  });
1935
- Spinner.propTypes = {
1936
- /** The main fill color of the spinner */
1937
- color: PropTypes__default.default.string,
1938
- /** The diameter of the spinner ring in pixels */
1939
- thickness: PropTypes__default.default.number,
1940
- /** The empty color of the spinner */
1941
- emptyColor: PropTypes__default.default.string,
1942
- /** The size of the spinner */
1943
- size: PropTypes__default.default.oneOf(Object.keys(SIZE_MAP)),
1944
- /** The speed of the spinner, ex: 10s, 0.1s, 250ms */
1945
- speed: PropTypes__default.default.string
1946
- };
3025
+ Spinner.displayName = 'Spinner';
1947
3026
 
1948
3027
  const baseStyle$d = {
1949
3028
  lineHeight: 1.5,
@@ -2010,56 +3089,117 @@ Heading.propTypes = {
2010
3089
  };
2011
3090
 
2012
3091
  const styles = {
2013
- px: 4,
2014
- mx: 'auto',
2015
- maxW: {
2016
- base: 'container.base',
2017
- tablet: 'container.tablet',
2018
- desktop: 'container.desktop'
2019
- }
3092
+ px: 4,
3093
+ mx: 'auto',
3094
+ maxW: {
3095
+ base: 'container.base',
3096
+ tablet: 'container.tablet',
3097
+ desktop: 'container.desktop',
3098
+ },
2020
3099
  };
2021
3100
 
2022
- const Container = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(react.Container, _extends$6({}, styles, props, {
2023
- ref: ref
2024
- })));
3101
+ const Container = React.forwardRef((props, ref) => (jsxRuntimeExports.jsx(react.Container, { ...styles, ...props, ref: ref })));
3102
+ Container.displayName = 'Container';
2025
3103
 
2026
3104
  const global = {
2027
- 'html, body': {
2028
- color: 'text.primary.light'
2029
- },
2030
- // By default, Chakra has all svgs set to 'display: block',
2031
- // this breaks the layout of some older components, so now
2032
- // we set all svgs to 'display: inline-block;' and only set
2033
- // 'display: block;' on the components that need it
2034
- // (as of 3/9/2021 only the v1 AutoSuggestInput component
2035
- // needed this update)
2036
- svg: {
2037
- display: 'inline-block'
2038
- },
2039
- // starting in Chakra version 2 they introduced this isolation style that messes with dropdowns being able to appear on top of elements underneath them
2040
- '.chakra-input__group': {
2041
- isolation: 'auto !important'
2042
- },
2043
- // Starting in Chakra version 2 they have incorporated normalize.css which may resulf in some unexpected default styles
2044
- 'h1, h2, h3, h4, h5, h6': {
2045
- margin: 0
2046
- }
2047
- };
2048
- const Fonts = () => /*#__PURE__*/React__namespace.default.createElement(react$1.Global, {
2049
- 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 "
2050
- });
2051
- const LegacyOverrides = _ref => {
2052
- let {
2053
- useLegacyOverrides
2054
- } = _ref;
2055
- return useLegacyOverrides ? /*#__PURE__*/React__namespace.default.createElement(react$1.Global, {
2056
- 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 ")
2057
- }) : null;
2058
- };
2059
- LegacyOverrides.propTypes = {
2060
- /** If true, this will use the old `spothero-html` base styles */
2061
- 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
+ },
2062
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;
2063
3203
 
2064
3204
  const item = {
2065
3205
  mb: 2
@@ -2262,15 +3402,15 @@ const theme$1 = react.extendTheme({
2262
3402
  });
2263
3403
 
2264
3404
  const colorScheme = {
2265
- low: {
2266
- borderColor: 'gray.100'
2267
- },
2268
- medium: {
2269
- borderColor: 'gray.200'
2270
- }
3405
+ low: {
3406
+ borderColor: 'gray.100',
3407
+ },
3408
+ medium: {
3409
+ borderColor: 'gray.200',
3410
+ },
2271
3411
  };
2272
3412
  var Divider_styles = merge__default.default(react.theme.components.Divider, {
2273
- colorScheme
3413
+ colorScheme,
2274
3414
  });
2275
3415
 
2276
3416
  const baseStyle$8 = {
@@ -2852,12 +3992,12 @@ var index$1 = merge__default.default(react.theme.components.Badge, {
2852
3992
  defaultProps: defaultProps$2
2853
3993
  });
2854
3994
 
2855
- const _excluded$i = ["hasFooter"];
3995
+ const _excluded$h = ["hasFooter"];
2856
3996
  const body = _ref => {
2857
3997
  let {
2858
3998
  hasFooter
2859
3999
  } = _ref;
2860
- _objectWithoutProperties(_ref, _excluded$i);
4000
+ _objectWithoutProperties(_ref, _excluded$h);
2861
4001
  return {
2862
4002
  overflowY: 'auto',
2863
4003
  padding: 6,
@@ -3255,26 +4395,23 @@ var components = /*#__PURE__*/Object.freeze({
3255
4395
 
3256
4396
  // use this to extend the base theme of chakra, this adds on top of what is defined in baseConfig
3257
4397
  const extendedTheme = {
3258
- initialColorMode: 'light',
3259
- useSystemColorMode: false,
3260
- styles: {
3261
- global
3262
- },
3263
- remToPixels: function (rem) {
3264
- let baseSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
3265
- return !rem ? 0 : "".concat(baseSize * Number(rem.replace('rem', '')));
3266
- }
4398
+ initialColorMode: 'light',
4399
+ useSystemColorMode: false,
4400
+ styles: {
4401
+ global,
4402
+ },
4403
+ remToPixels: (rem, baseSize = 16) => !rem ? 0 : `${baseSize * Number(rem.replace('rem', ''))}`,
3267
4404
  };
3268
-
3269
4405
  // use this to override base themes from Chakra
3270
- const baseConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, react.theme), {}, {
3271
- breakpoints
3272
- }, base), {}, {
3273
- components
3274
- });
4406
+ const baseConfig = {
4407
+ ...react.theme,
4408
+ breakpoints,
4409
+ ...base,
4410
+ components,
4411
+ };
3275
4412
  var THEME = react.extendTheme(extendedTheme, baseConfig);
3276
4413
 
3277
- const _excluded$h = ["theme", "useLegacyOverrides", "disableExternalFonts", "children"];
4414
+ const _excluded$g = ["theme", "useLegacyOverrides", "disableExternalFonts", "children"];
3278
4415
  const ThemeProvider = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3279
4416
  let {
3280
4417
  theme,
@@ -3282,7 +4419,7 @@ const ThemeProvider = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3282
4419
  disableExternalFonts = false,
3283
4420
  children
3284
4421
  } = _ref,
3285
- props = _objectWithoutProperties(_ref, _excluded$h);
4422
+ props = _objectWithoutProperties(_ref, _excluded$g);
3286
4423
  return /*#__PURE__*/React__namespace.default.createElement(react.ChakraProvider, _extends$6({}, props, {
3287
4424
  ref: ref,
3288
4425
  theme: merge__default.default({}, THEME, theme)
@@ -3301,17 +4438,10 @@ ThemeProvider.propTypes = {
3301
4438
  theme: PropTypes__default.default.object
3302
4439
  };
3303
4440
 
3304
- const Card = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__namespace.default.createElement(react.Box, _extends$6({
3305
- position: "relative",
3306
- padding: 4,
3307
- bgColor: "background.white",
3308
- borderRadius: "lg",
3309
- boxShadow: "md"
3310
- }, props, {
3311
- ref: ref
3312
- })));
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';
3313
4443
 
3314
- const _excluded$g = ["isSSR", "cloudinaryImageId", "cloudinaryTemplate", "cloudinaryCloudName", "htmlWidth", "htmlHeight", "quality", "lazyLoad"];
4444
+ const _excluded$f = ["isSSR", "cloudinaryImageId", "cloudinaryTemplate", "cloudinaryCloudName", "htmlWidth", "htmlHeight", "quality", "lazyLoad"];
3315
4445
 
3316
4446
  // This code is copied from fe-utils https://github.com/spothero/fe-monorepo/blob/a0e06482e74dcb5502b21c5fbf0a679752a1f8ce/packages/fe-utils/src/environment/environment.js#L391
3317
4447
  function isHighDensityDisplay() {
@@ -3350,7 +4480,7 @@ const Image = _ref2 => {
3350
4480
  quality,
3351
4481
  lazyLoad
3352
4482
  } = _ref2,
3353
- otherProps = _objectWithoutProperties(_ref2, _excluded$g);
4483
+ otherProps = _objectWithoutProperties(_ref2, _excluded$f);
3354
4484
  const hasValidCloudinarySrc = (cloudinaryImageId || cloudinaryTemplate) && Boolean(htmlWidth) && Boolean(htmlHeight);
3355
4485
  let cloudinarySrc;
3356
4486
  if (hasValidCloudinarySrc) {
@@ -3400,7 +4530,7 @@ Image.defaultProps = {
3400
4530
  cloudinaryCloudName: 'spothero'
3401
4531
  };
3402
4532
 
3403
- const _excluded$f = ["color", "loaderBackgroundColor", "isInfinite", "size", "thickness", "trackColor", "value"];
4533
+ const _excluded$e = ["color", "loaderBackgroundColor", "isInfinite", "size", "thickness", "trackColor", "value"];
3404
4534
  const Loader = _ref => {
3405
4535
  let {
3406
4536
  color = 'success',
@@ -3411,7 +4541,7 @@ const Loader = _ref => {
3411
4541
  trackColor = 'gray.medium',
3412
4542
  value = 0
3413
4543
  } = _ref,
3414
- props = _objectWithoutProperties(_ref, _excluded$f);
4544
+ props = _objectWithoutProperties(_ref, _excluded$e);
3415
4545
  /* -------------------------------------------------------------------- *\
3416
4546
  Note: Since most of the props for this component control multiple
3417
4547
  styles at a time, it was decided that it made the most sense to set
@@ -3466,12 +4596,12 @@ Loader.propTypes = {
3466
4596
  value: PropTypes__default.default.number
3467
4597
  };
3468
4598
 
3469
- const _excluded$e = ["isRounded"];
4599
+ const _excluded$d = ["isRounded"];
3470
4600
  const Progress = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3471
4601
  let {
3472
4602
  isRounded
3473
4603
  } = _ref,
3474
- props = _objectWithoutProperties(_ref, _excluded$e);
4604
+ props = _objectWithoutProperties(_ref, _excluded$d);
3475
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.
3476
4606
  return /*#__PURE__*/React__namespace.default.createElement(react.Progress, _extends$6({
3477
4607
  ref: ref,
@@ -3515,7 +4645,7 @@ Progress.defaultProps = {
3515
4645
  variant: 'solid'
3516
4646
  };
3517
4647
 
3518
- const _excluded$d = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
4648
+ const _excluded$c = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
3519
4649
  const Checkbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3520
4650
  let {
3521
4651
  defaultChecked,
@@ -3526,7 +4656,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3526
4656
  children,
3527
4657
  size = 'md'
3528
4658
  } = _ref,
3529
- props = _objectWithoutProperties(_ref, _excluded$d);
4659
+ props = _objectWithoutProperties(_ref, _excluded$c);
3530
4660
  const helperTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
3531
4661
  return /*#__PURE__*/React__namespace.default.createElement(react.Checkbox, _extends$6({
3532
4662
  ref: ref,
@@ -3552,7 +4682,7 @@ Checkbox.propTypes = {
3552
4682
  size: PropTypes__default.default.oneOf(['sm', 'md', 'lg'])
3553
4683
  };
3554
4684
 
3555
- const _excluded$c = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "customRequiredText"];
4685
+ const _excluded$b = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "customRequiredText"];
3556
4686
  const Input$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3557
4687
  let {
3558
4688
  label,
@@ -3564,7 +4694,7 @@ const Input$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3564
4694
  isOptional,
3565
4695
  customRequiredText
3566
4696
  } = _ref,
3567
- props = _objectWithoutProperties(_ref, _excluded$c);
4697
+ props = _objectWithoutProperties(_ref, _excluded$b);
3568
4698
  const classes = cn__default.default({
3569
4699
  'FormElement-contains-error': isInvalid
3570
4700
  });
@@ -3595,7 +4725,7 @@ Input$1.propTypes = {
3595
4725
  customRequiredText: PropTypes__default.default.string
3596
4726
  };
3597
4727
 
3598
- 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"];
3599
4729
 
3600
4730
  // No clue how to move these into the style file so just co-located to keep from slowing down
3601
4731
  // Chakra V2 will heavily impact this component
@@ -3719,7 +4849,7 @@ const FormControl = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3719
4849
  rightElementStyles,
3720
4850
  leftElementStyles
3721
4851
  } = _ref,
3722
- props = _objectWithoutProperties(_ref, _excluded$b);
4852
+ props = _objectWithoutProperties(_ref, _excluded$a);
3723
4853
  return /*#__PURE__*/React__namespace.default.createElement(react.FormControl, _extends$6({}, props, {
3724
4854
  ref: ref
3725
4855
  }, controlStyles), /*#__PURE__*/React__namespace.default.createElement(react.InputGroup, null, leftElement && /*#__PURE__*/React__namespace.default.createElement(react.InputLeftElement, _extends$6({
@@ -3761,7 +4891,7 @@ FormControl.propTypes = {
3761
4891
  isInvalid: PropTypes__default.default.bool
3762
4892
  };
3763
4893
 
3764
- 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"];
3765
4895
 
3766
4896
  /**
3767
4897
  * A component used in the homepage/midfunnel refresh of 2024
@@ -3782,7 +4912,7 @@ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3782
4912
  leftElementStyles,
3783
4913
  placeholder = ' '
3784
4914
  } = _ref,
3785
- props = _objectWithoutProperties(_ref, _excluded$a);
4915
+ props = _objectWithoutProperties(_ref, _excluded$9);
3786
4916
  const classes = cn__default.default({
3787
4917
  'FormElement-contains-error': isInvalid
3788
4918
  }); //Historic carry over
@@ -3825,7 +4955,7 @@ Input.propTypes = {
3825
4955
  leftElementStyles: PropTypes__default.default.object
3826
4956
  };
3827
4957
 
3828
- 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"];
3829
4959
 
3830
4960
  //For select left is static arrow,
3831
4961
  /**
@@ -3849,7 +4979,7 @@ const Select = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3849
4979
  leftElementStyles,
3850
4980
  formControlStyles
3851
4981
  } = _ref,
3852
- props = _objectWithoutProperties(_ref, _excluded$9);
4982
+ props = _objectWithoutProperties(_ref, _excluded$8);
3853
4983
  const classes = cn__default.default({
3854
4984
  'FormElement-contains-error': isInvalid
3855
4985
  });
@@ -3890,7 +5020,7 @@ Select.propTypes = {
3890
5020
  rightElementStyles: PropTypes__default.default.object
3891
5021
  };
3892
5022
 
3893
- 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"];
3894
5024
 
3895
5025
  /**
3896
5026
  * A component used in the homepage/midfunnel refresh of 2024
@@ -3914,7 +5044,7 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3914
5044
  leftElementStyles,
3915
5045
  buttonValue
3916
5046
  } = _ref,
3917
- props = _objectWithoutProperties(_ref, _excluded$8);
5047
+ props = _objectWithoutProperties(_ref, _excluded$7);
3918
5048
  const classes = cn__default.default({
3919
5049
  'FormElement-contains-error': isInvalid
3920
5050
  }); //Historic carry over
@@ -4158,7 +5288,7 @@ AutoSuggestSelect$1.propTypes = {
4158
5288
  leftElementStyles: PropTypes__default.default.object
4159
5289
  };
4160
5290
 
4161
- const _excluded$7 = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
5291
+ const _excluded$6 = ["defaultChecked", "isChecked", "isDisabled", "value", "helperText", "children", "size"];
4162
5292
  const Radio = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4163
5293
  let {
4164
5294
  defaultChecked,
@@ -4169,7 +5299,7 @@ const Radio = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4169
5299
  children,
4170
5300
  size = 'md'
4171
5301
  } = _ref,
4172
- props = _objectWithoutProperties(_ref, _excluded$7);
5302
+ props = _objectWithoutProperties(_ref, _excluded$6);
4173
5303
  const helperTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
4174
5304
  return /*#__PURE__*/React__namespace.default.createElement(react.Radio, _extends$6({
4175
5305
  ref: ref,
@@ -4194,7 +5324,7 @@ Radio.propTypes = {
4194
5324
  size: PropTypes__default.default.oneOf(['sm', 'md', 'lg'])
4195
5325
  };
4196
5326
 
4197
- 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"];
4198
5328
  const RadioGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4199
5329
  let {
4200
5330
  label,
@@ -4209,7 +5339,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4209
5339
  children,
4210
5340
  direction
4211
5341
  } = _ref,
4212
- props = _objectWithoutProperties(_ref, _excluded$6);
5342
+ props = _objectWithoutProperties(_ref, _excluded$5);
4213
5343
  return /*#__PURE__*/React__namespace.default.createElement(FormControl$1, {
4214
5344
  isInvalid: isInvalid,
4215
5345
  isDisabled: isDisabled,
@@ -4244,7 +5374,7 @@ RadioGroup.propTypes = {
4244
5374
  direction: PropTypes__default.default.oneOf(['row', 'column'])
4245
5375
  };
4246
5376
 
4247
- 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"];
4248
5378
  const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4249
5379
  let {
4250
5380
  isChecked,
@@ -4261,7 +5391,7 @@ const SelectionCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4261
5391
  topChild,
4262
5392
  expandableContentKey = 'selection-card-content'
4263
5393
  } = _ref,
4264
- props = _objectWithoutProperties(_ref, _excluded$5);
5394
+ props = _objectWithoutProperties(_ref, _excluded$4);
4265
5395
  const Component = isRadio ? Radio : Checkbox;
4266
5396
  const expandableTextSize = size === 'sm' || size === 'md' ? 'xs' : 'sm';
4267
5397
  const hasExpandableContent = isExpandable && isChecked && expandableChildren;
@@ -4343,29 +5473,10 @@ SelectionCard.propTypes = {
4343
5473
  expandableContentKey: PropTypes__default.default.string
4344
5474
  };
4345
5475
 
4346
- const _excluded$4 = ["variant", "colorScheme"];
4347
- const Divider = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4348
- let {
4349
- variant,
4350
- colorScheme: borderColor
4351
- } = _ref,
4352
- props = _objectWithoutProperties(_ref, _excluded$4);
4353
- return /*#__PURE__*/React__namespace.default.createElement(react.Divider, _extends$6({}, colorScheme[borderColor], {
4354
- variant: variant
4355
- }, props, {
4356
- ref: ref
4357
- }));
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 }));
4358
5478
  });
4359
- Divider.propTypes = {
4360
- /** Color scheme used */
4361
- colorScheme: PropTypes__default.default.oneOf(['low', 'medium']),
4362
- /** The styling that will be applied to the HR tag */
4363
- variant: PropTypes__default.default.oneOf(['solid', 'dashed'])
4364
- };
4365
- Divider.defaultProps = {
4366
- variant: 'solid',
4367
- colorScheme: 'medium'
4368
- };
5479
+ Divider.displayName = 'Divider';
4369
5480
 
4370
5481
  const _excluded$3 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isOptional", "customRequiredText"];
4371
5482
  const Textarea = /*#__PURE__*/React.forwardRef((_ref, ref) => {