dawn-ui-react 1.0.0-alpha → 1.0.0-alpha.10

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 (77) hide show
  1. package/dist/{Input-Br91lfPH.js → Input--h5J-IHe.js} +4 -4
  2. package/dist/{clamp-C6OCmUfq.js → clamp-XXDcNhZ7.js} +50 -50
  3. package/dist/{cn-CXogf8HW.js → cn-DWnOBdrm.js} +349 -307
  4. package/dist/components/badge/badge.d.ts +1 -1
  5. package/dist/components/badge/badge.types.d.ts +1 -0
  6. package/dist/components/code-block/code-block-actions.d.ts +2 -0
  7. package/dist/components/code-block/code-block-copy.d.ts +2 -0
  8. package/dist/components/code-block/code-block-download.d.ts +2 -0
  9. package/dist/components/code-block/code-block-header-group.d.ts +2 -0
  10. package/dist/components/code-block/code-block-header.d.ts +3 -0
  11. package/dist/components/code-block/code-block-name.d.ts +2 -0
  12. package/dist/components/code-block/code-block-select.d.ts +2 -0
  13. package/dist/components/code-block/code-block-tabs.d.ts +2 -0
  14. package/dist/components/code-block/code-block-window.d.ts +3 -0
  15. package/dist/components/code-block/code-block.d.ts +3 -0
  16. package/dist/components/code-block/code-block.types.d.ts +26 -0
  17. package/dist/components/code-block/index.d.ts +2 -0
  18. package/dist/components/dialog/index.d.ts +1 -1
  19. package/dist/components/drawer/drawer-close.d.ts +2 -0
  20. package/dist/components/drawer/drawer-content.d.ts +2 -0
  21. package/dist/components/drawer/drawer-description.d.ts +2 -0
  22. package/dist/components/drawer/drawer-header.d.ts +2 -0
  23. package/dist/components/drawer/drawer-popup.d.ts +2 -0
  24. package/dist/components/drawer/drawer-provider.d.ts +2 -0
  25. package/dist/components/drawer/drawer-title.d.ts +2 -0
  26. package/dist/components/drawer/drawer-trigger.d.ts +2 -0
  27. package/dist/components/drawer/drawer.d.ts +2 -0
  28. package/dist/components/drawer/drawer.types.d.ts +10 -0
  29. package/dist/components/drawer/index.d.ts +10 -0
  30. package/dist/components/index.d.ts +2 -0
  31. package/dist/components/input-otp/index.d.ts +2 -1
  32. package/dist/components/input-otp/input-otp-separator.d.ts +2 -0
  33. package/dist/components/input-otp/input-otp-slot.d.ts +1 -1
  34. package/dist/components/input-otp/input-otp.types.d.ts +4 -3
  35. package/dist/components/layer-tree/index.d.ts +5 -1
  36. package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
  37. package/dist/components/layer-tree/layer-tree-footer.d.ts +2 -0
  38. package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +1 -1
  39. package/dist/components/layer-tree/layer-tree-node.d.ts +1 -1
  40. package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
  41. package/dist/components/layer-tree/layer-tree-search.d.ts +1 -1
  42. package/dist/components/layer-tree/layer-tree-sort.d.ts +2 -0
  43. package/dist/components/layer-tree/layer-tree-utils.d.ts +83 -0
  44. package/dist/components/layer-tree/layer-tree.d.ts +9 -4
  45. package/dist/components/layer-tree/layer-tree.types.d.ts +16 -5
  46. package/dist/components/popover/index.d.ts +2 -1
  47. package/dist/components/popover/popover-button.d.ts +2 -0
  48. package/dist/components/popover/popover.types.d.ts +2 -0
  49. package/dist/components/profile/index.d.ts +5 -1
  50. package/dist/components/profile/profile-action.d.ts +2 -0
  51. package/dist/components/profile/profile-content.d.ts +2 -0
  52. package/dist/components/profile/profile-name.d.ts +2 -0
  53. package/dist/components/profile/profile-subname.d.ts +2 -0
  54. package/dist/components/profile/profile.d.ts +1 -1
  55. package/dist/components/profile/profile.types.d.ts +6 -14
  56. package/dist/components/separator/separator.d.ts +1 -1
  57. package/dist/components/separator/separator.types.d.ts +3 -1
  58. package/dist/components/tabs/tabs.types.d.ts +1 -1
  59. package/dist/dawn-ui-react.js +20673 -10612
  60. package/dist/dawn-ui-react.umd.cjs +71 -24
  61. package/dist/{field-input-group-Dcwadst3.js → field-input-group-8FpzC5q3.js} +3 -3
  62. package/dist/{field-input-group-input-CLQz2SPo.js → field-input-group-input-DZCaKPkV.js} +3 -3
  63. package/dist/{form-context-CzC_p5DL.js → form-context-D2zlNF0l.js} +529 -509
  64. package/dist/{input-group-D3zocoNy.js → input-group-Ddhxk-gp.js} +2 -2
  65. package/dist/{input-group-input-CHby62R-.js → input-group-input-iCeN23U6.js} +2 -2
  66. package/dist/input.types-oyKEbsbD.js +21 -0
  67. package/dist/styles.css +149 -118
  68. package/dist/{useLabelableId-VWw8rfpn.js → useLabelableId-C8TWIYiH.js} +51 -51
  69. package/package.json +40 -40
  70. package/dist/field-description-BDRJXMS8.js +0 -12
  71. package/dist/field-errors-BDUanNiE.js +0 -19
  72. package/dist/field-input-0WxX-93A.js +0 -58
  73. package/dist/field-label-DwF_1o76.js +0 -16
  74. package/dist/field-select-BmvhGVSz.js +0 -2149
  75. package/dist/field-slider-oL8pDrCe.js +0 -2167
  76. package/dist/input.types-Dl_61f0y.js +0 -21
  77. package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
@@ -1,5 +1,5 @@
1
- import { t as e } from "./cn-CXogf8HW.js";
2
- import { t } from "./input.types-Dl_61f0y.js";
1
+ import { t as e } from "./cn-DWnOBdrm.js";
2
+ import { t } from "./input.types-oyKEbsbD.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/components/input-group/input-group.tsx
5
5
  var r = ({ variant: r, className: i, children: a, ref: o, ...s }) => /* @__PURE__ */ n("div", {
@@ -1,5 +1,5 @@
1
- import { t as e } from "./cn-CXogf8HW.js";
2
- import { t } from "./Input-Br91lfPH.js";
1
+ import { t as e } from "./cn-DWnOBdrm.js";
2
+ import { t } from "./Input--h5J-IHe.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/components/input-group/input-group-input.tsx
5
5
  var r = ({ className: r, ref: i, ...a }) => /* @__PURE__ */ n(t, {
@@ -0,0 +1,21 @@
1
+ import { _ as e } from "./form-context-D2zlNF0l.js";
2
+ //#region src/components/input/input.types.tsx
3
+ var t = e("group flex w-full items-center rounded-full leading-0 text-ellipsis caret-brand-border-strong outline outline-transparent transition-all placeholder:opacity-60 focus-within:outline-brand-border-strong not-focus-within:hover:outline-border-strong disabled:cursor-not-allowed aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:caret-error-border-strong aria-invalid:outline-error-border aria-invalid:focus-within:outline-error-border-strong aria-invalid:not-focus-within:hover:outline-error-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", {
4
+ variants: {
5
+ variant: {
6
+ primary: "bg-surface shadow-2xs",
7
+ secondary: "bg-surface-low"
8
+ },
9
+ size: {
10
+ small: "h-lg gap-3xs px-xs style-text-prose--1",
11
+ medium: "h-xl gap-2xs px-sm style-text-prose-0",
12
+ large: "h-2xl gap-xs px-md style-text-prose-1"
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ variant: "primary",
17
+ size: "medium"
18
+ }
19
+ });
20
+ //#endregion
21
+ export { t };
package/dist/styles.css CHANGED
@@ -405,32 +405,32 @@
405
405
  --yellow-900: #715212ff;
406
406
  --yellow-950: #422f06ff;
407
407
 
408
- --dawn-brand-default: light-dark(var(--blue-700), var(--blue-400));
409
- --dawn-brand-muted: light-dark(var(--blue-800), var(--blue-300));
410
- --dawn-brand-subtle: light-dark(var(--blue-100), var(--blue-950));
408
+ --dawn-brand-default: light-dark(var(--rose-600), var(--rose-300));
409
+ --dawn-brand-muted: light-dark(var(--rose-700), var(--rose-200));
410
+ --dawn-brand-subtle: light-dark(var(--rose-100), var(--rose-950));
411
411
  --dawn-brand-on-default: light-dark(var(--white), var(--neutral-950));
412
- --dawn-brand-container: light-dark(var(--blue-50), var(--blue-950));
413
- --dawn-brand-container-high: light-dark(var(--blue-100), var(--blue-900));
414
- --dawn-brand-on-container: light-dark(var(--blue-900), var(--blue-200));
415
- --dawn-brand-on-container-muted: light-dark(var(--blue-700), var(--blue-400));
416
- --dawn-brand-border: light-dark(var(--blue-300), var(--blue-700));
417
- --dawn-brand-border-strong: light-dark(var(--blue-600), var(--blue-400));
418
- --dawn-brand-shadow: light-dark(#005ba740, #30acff66);
419
-
420
- --dawn-accent-default: light-dark(var(--lime-700), var(--lime-400));
421
- --dawn-accent-muted: light-dark(var(--lime-800), var(--lime-300));
422
- --dawn-accent-subtle: light-dark(var(--lime-100), var(--green-950));
412
+ --dawn-brand-container: light-dark(var(--rose-50), var(--rose-950));
413
+ --dawn-brand-container-high: light-dark(var(--rose-100), var(--rose-900));
414
+ --dawn-brand-on-container: light-dark(var(--rose-900), var(--rose-200));
415
+ --dawn-brand-on-container-muted: light-dark(var(--rose-700), var(--rose-300));
416
+ --dawn-brand-border: light-dark(var(--rose-300), var(--rose-600));
417
+ --dawn-brand-border-strong: light-dark(var(--rose-600), var(--rose-400));
418
+ --dawn-brand-shadow: light-dark(#e11d4840, #fda4b866);
419
+
420
+ --dawn-accent-default: light-dark(var(--violet-600), var(--violet-300));
421
+ --dawn-accent-muted: light-dark(var(--violet-700), var(--violet-200));
422
+ --dawn-accent-subtle: light-dark(var(--violet-100), var(--violet-950));
423
423
  --dawn-accent-on-default: light-dark(var(--white), var(--neutral-950));
424
- --dawn-accent-container: light-dark(var(--lime-50), var(--lime-950));
425
- --dawn-accent-container-high: light-dark(var(--lime-100), var(--lime-900));
426
- --dawn-accent-on-container: light-dark(var(--lime-900), var(--lime-200));
427
- --dawn-accent-on-container-muted: light-dark(var(--lime-700), var(--lime-400));
428
- --dawn-accent-border: light-dark(var(--lime-300), var(--green-700));
429
- --dawn-accent-border-strong: light-dark(var(--lime-600), var(--lime-400));
430
- --dawn-accent-shadow: light-dark(#197c4b40, #4fd99466);
424
+ --dawn-accent-container: light-dark(var(--violet-50), var(--violet-950));
425
+ --dawn-accent-container-high: light-dark(var(--violet-100), var(--violet-900));
426
+ --dawn-accent-on-container: light-dark(var(--violet-900), var(--violet-200));
427
+ --dawn-accent-on-container-muted: light-dark(var(--violet-700), var(--violet-300));
428
+ --dawn-accent-border: light-dark(var(--violet-300), var(--violet-700));
429
+ --dawn-accent-border-strong: light-dark(var(--violet-600), var(--violet-400));
430
+ --dawn-accent-shadow: light-dark(#7c3aed40, #d0b5fd66);
431
431
 
432
432
  --dawn-neutral-default: light-dark(var(--neutral-700), var(--neutral-100));
433
- --dawn-neutral-muted: light-dark(var(--neutral-800), var(--neutral-300));
433
+ --dawn-neutral-muted: light-dark(var(--neutral-800), var(--neutral-400));
434
434
  --dawn-neutral-subtle: light-dark(var(--neutral-200), var(--neutral-800));
435
435
  --dawn-neutral-on-default: light-dark(var(--white), var(--neutral-950));
436
436
  --dawn-neutral-container: light-dark(var(--neutral-200), var(--neutral-800));
@@ -598,182 +598,213 @@
598
598
 
599
599
  @layer base {
600
600
  body {
601
+ margin: 0;
601
602
  background-color: theme(--color-surface-background);
602
603
  color: theme(--color-on-surface);
603
604
  font-family: var(--font-body);
604
605
  font-size: var(--text-base);
605
606
  scrollbar-color: theme(--color-accent-default) theme(--color-surface-2);
606
607
  }
608
+ button {
609
+ line-height: 0;
610
+ }
611
+ input {
612
+ line-height: 0;
613
+ }
607
614
  }
608
615
 
609
616
  @utility shadow-* {
610
617
  box-shadow: --value(--shadow-*) var(--dawn-shadow);
611
618
  }
612
619
 
613
- @utility style-text-* {
614
- font-family: var(--text-font);
615
- font-weight: var(--text-weight);
616
- font-size: var(--text-size);
617
- line-height: var(--text-leading, normal);
618
- letter-spacing: normal;
619
- }
620
-
621
620
  @utility style-text-default-5 {
622
- --text-font: var(--font-body);
623
- --text-weight: 500;
624
- --text-size: var(--text-4xl);
621
+ font-family: var(--font-body);
622
+ font-weight: 500;
623
+ font-size: var(--text-4xl);
624
+ line-height: normal;
625
+ letter-spacing: normal;
625
626
  }
626
627
 
627
628
  @utility style-text-default-4 {
628
- --text-font: var(--font-body);
629
- --text-weight: 500;
630
- --text-size: var(--text-3xl);
629
+ font-family: var(--font-body);
630
+ font-weight: 500;
631
+ font-size: var(--text-3xl);
632
+ line-height: normal;
633
+ letter-spacing: normal;
631
634
  }
632
635
 
633
636
  @utility style-text-default-3 {
634
- --text-font: var(--font-body);
635
- --text-weight: 500;
636
- --text-size: var(--text-2xl);
637
+ font-family: var(--font-body);
638
+ font-weight: 500;
639
+ font-size: var(--text-2xl);
640
+ line-height: normal;
641
+ letter-spacing: normal;
637
642
  }
638
643
 
639
644
  @utility style-text-default-2 {
640
- --text-font: var(--font-body);
641
- --text-weight: 500;
642
- --text-size: var(--text-xl);
645
+ font-family: var(--font-body);
646
+ font-weight: 500;
647
+ font-size: var(--text-xl);
648
+ line-height: normal;
649
+ letter-spacing: normal;
643
650
  }
644
651
 
645
652
  @utility style-text-default-1 {
646
- --text-font: var(--font-body);
647
- --text-weight: 500;
648
- --text-size: var(--text-lg);
653
+ font-family: var(--font-body);
654
+ font-weight: 500;
655
+ font-size: var(--text-lg);
656
+ line-height: normal;
657
+ letter-spacing: normal;
649
658
  }
650
659
 
651
660
  @utility style-text-default-0 {
652
- --text-font: var(--font-body);
653
- --text-weight: 500;
654
- --text-size: var(--text-base);
661
+ font-family: var(--font-body);
662
+ font-weight: 500;
663
+ font-size: var(--text-base);
664
+ line-height: normal;
665
+ letter-spacing: normal;
655
666
  }
656
667
 
657
668
  @utility style-text-default--1 {
658
- --text-font: var(--font-body);
659
- --text-weight: 500;
660
- --text-size: var(--text-sm);
669
+ font-family: var(--font-body);
670
+ font-weight: 500;
671
+ font-size: var(--text-sm);
672
+ line-height: normal;
673
+ letter-spacing: normal;
661
674
  }
662
675
 
663
676
  @utility style-text-default--2 {
664
- --text-font: var(--font-body);
665
- --text-weight: 500;
666
- --text-size: var(--text-xs);
677
+ font-family: var(--font-body);
678
+ font-weight: 500;
679
+ font-size: var(--text-xs);
680
+ line-height: normal;
681
+ letter-spacing: normal;
667
682
  }
668
683
 
669
684
  @utility style-text-prose-5 {
670
- --text-font: var(--font-body);
671
- --text-weight: 400;
672
- --text-size: var(--text-4xl);
673
- --text-leading: 160%;
685
+ font-family: var(--font-body);
686
+ font-weight: 400;
687
+ font-size: var(--text-4xl);
688
+ line-height: 160%;
689
+ letter-spacing: normal;
674
690
  }
675
691
 
676
692
  @utility style-text-prose-4 {
677
- --text-font: var(--font-body);
678
- --text-weight: 400;
679
- --text-size: var(--text-3xl);
680
- --text-leading: 160%;
693
+ font-family: var(--font-body);
694
+ font-weight: 400;
695
+ font-size: var(--text-3xl);
696
+ line-height: 160%;
697
+ letter-spacing: normal;
681
698
  }
682
699
 
683
700
  @utility style-text-prose-3 {
684
- --text-font: var(--font-body);
685
- --text-weight: 400;
686
- --text-size: var(--text-2xl);
687
- --text-leading: 160%;
701
+ font-family: var(--font-body);
702
+ font-weight: 400;
703
+ font-size: var(--text-2xl);
704
+ line-height: 160%;
705
+ letter-spacing: normal;
688
706
  }
689
707
 
690
708
  @utility style-text-prose-2 {
691
- --text-font: var(--font-body);
692
- --text-weight: 400;
693
- --text-size: var(--text-xl);
694
- --text-leading: 160%;
709
+ font-family: var(--font-body);
710
+ font-weight: 400;
711
+ font-size: var(--text-xl);
712
+ line-height: 160%;
713
+ letter-spacing: normal;
695
714
  }
696
715
 
697
716
  @utility style-text-prose-1 {
698
- --text-font: var(--font-body);
699
- --text-weight: 400;
700
- --text-size: var(--text-lg);
701
- --text-leading: 160%;
717
+ font-family: var(--font-body);
718
+ font-weight: 400;
719
+ font-size: var(--text-lg);
720
+ line-height: 160%;
721
+ letter-spacing: normal;
702
722
  }
703
723
 
704
724
  @utility style-text-prose-0 {
705
- --text-font: var(--font-body);
706
- --text-weight: 400;
707
- --text-size: var(--text-base);
708
- --text-leading: 160%;
725
+ font-family: var(--font-body);
726
+ font-weight: 400;
727
+ font-size: var(--text-base);
728
+ line-height: 160%;
729
+ letter-spacing: normal;
709
730
  }
710
731
 
711
732
  @utility style-text-prose--1 {
712
- --text-font: var(--font-body);
713
- --text-weight: 400;
714
- --text-size: var(--text-sm);
715
- --text-leading: 160%;
733
+ font-family: var(--font-body);
734
+ font-weight: 400;
735
+ font-size: var(--text-sm);
736
+ line-height: 160%;
737
+ letter-spacing: normal;
716
738
  }
717
739
 
718
740
  @utility style-text-prose--2 {
719
- --text-font: var(--font-body);
720
- --text-weight: 400;
721
- --text-size: var(--text-xs);
722
- --text-leading: 160%;
741
+ font-family: var(--font-body);
742
+ font-weight: 400;
743
+ font-size: var(--text-xs);
744
+ line-height: 160%;
745
+ letter-spacing: normal;
723
746
  }
724
747
 
725
748
  @utility style-text-strong-5 {
726
- --text-font: var(--font-heading);
727
- --text-weight: 700;
728
- --text-size: var(--text-4xl);
729
- --text-leading: 120%;
749
+ font-family: var(--font-heading);
750
+ font-weight: 700;
751
+ font-size: var(--text-4xl);
752
+ line-height: 120%;
753
+ letter-spacing: normal;
730
754
  }
731
755
 
732
756
  @utility style-text-strong-4 {
733
- --text-font: var(--font-heading);
734
- --text-weight: 700;
735
- --text-size: var(--text-3xl);
736
- --text-leading: 120%;
757
+ font-family: var(--font-heading);
758
+ font-weight: 700;
759
+ font-size: var(--text-3xl);
760
+ line-height: 120%;
761
+ letter-spacing: normal;
737
762
  }
738
763
 
739
764
  @utility style-text-strong-3 {
740
- --text-font: var(--font-heading);
741
- --text-weight: 700;
742
- --text-size: var(--text-2xl);
743
- --text-leading: 120%;
765
+ font-family: var(--font-heading);
766
+ font-weight: 700;
767
+ font-size: var(--text-2xl);
768
+ line-height: 120%;
769
+ letter-spacing: normal;
744
770
  }
745
771
 
746
772
  @utility style-text-strong-2 {
747
- --text-font: var(--font-heading);
748
- --text-weight: 700;
749
- --text-size: var(--text-xl);
750
- --text-leading: 120%;
773
+ font-family: var(--font-heading);
774
+ font-weight: 700;
775
+ font-size: var(--text-xl);
776
+ line-height: 120%;
777
+ letter-spacing: normal;
751
778
  }
752
779
 
753
780
  @utility style-text-strong-1 {
754
- --text-font: var(--font-heading);
755
- --text-weight: 700;
756
- --text-size: var(--text-lg);
757
- --text-leading: 120%;
781
+ font-family: var(--font-heading);
782
+ font-weight: 700;
783
+ font-size: var(--text-lg);
784
+ line-height: 120%;
785
+ letter-spacing: normal;
758
786
  }
759
787
 
760
788
  @utility style-text-strong-0 {
761
- --text-font: var(--font-heading);
762
- --text-weight: 700;
763
- --text-size: var(--text-base);
764
- --text-leading: 120%;
789
+ font-family: var(--font-heading);
790
+ font-weight: 700;
791
+ font-size: var(--text-base);
792
+ line-height: 120%;
793
+ letter-spacing: normal;
765
794
  }
766
795
 
767
796
  @utility style-text-strong--1 {
768
- --text-font: var(--font-heading);
769
- --text-weight: 700;
770
- --text-size: var(--text-sm);
771
- --text-leading: 120%;
797
+ font-family: var(--font-heading);
798
+ font-weight: 700;
799
+ font-size: var(--text-sm);
800
+ line-height: 120%;
801
+ letter-spacing: normal;
772
802
  }
773
803
 
774
804
  @utility style-text-strong--2 {
775
- --text-font: var(--font-heading);
776
- --text-weight: 700;
777
- --text-size: var(--text-xs);
778
- --text-leading: 120%;
805
+ font-family: var(--font-heading);
806
+ font-weight: 700;
807
+ font-size: var(--text-xs);
808
+ line-height: 120%;
809
+ letter-spacing: normal;
779
810
  }
@@ -1,6 +1,6 @@
1
- import { $ as e, B as t, G as n, I as r, J as i, Q as a, W as o, X as s, Z as c, j as ee } from "./form-context-CzC_p5DL.js";
1
+ import { $ as e, B as t, G as n, I as r, J as i, Q as a, W as o, X as s, Z as c, j as ee } from "./form-context-D2zlNF0l.js";
2
2
  import * as l from "react";
3
- //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/useControlled.js
3
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useControlled.js
4
4
  function u({ controlled: t, default: n, name: r, state: i = "value" }) {
5
5
  let { current: a } = l.useRef(t !== void 0), [o, s] = l.useState(n), c = a ? t : o;
6
6
  if (process.env.NODE_ENV !== "production") {
@@ -45,11 +45,11 @@ function d(e) {
45
45
  }
46
46
  }
47
47
  //#endregion
48
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/reason-parts.js
49
- var f = "none", p = "trigger-press", m = "trigger-hover", h = "trigger-focus", g = "outside-press", _ = "item-press", v = "close-press", y = "clear-press", b = "chip-remove-press", te = "track-press", ne = "increment-press", re = "decrement-press", ie = "input-change", ae = "input-clear", oe = "input-blur", x = "input-paste", S = "input-press", C = "focus-out", w = "escape-key", T = "list-navigation", E = "keyboard", D = "pointer", O = "drag", k = "scrub", A = "cancel-open", j = "sibling-open", M = "disabled", N = "imperative-action", P = "window-resize";
48
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/reason-parts.js
49
+ var f = "none", p = "trigger-press", m = "trigger-hover", h = "trigger-focus", g = "outside-press", te = "item-press", _ = "close-press", v = "clear-press", y = "chip-remove-press", b = "track-press", x = "increment-press", S = "decrement-press", ne = "input-change", re = "input-clear", ie = "input-blur", ae = "input-paste", C = "input-press", w = "focus-out", T = "escape-key", E = "close-watcher", D = "list-navigation", O = "keyboard", k = "pointer", A = "drag", j = "scrub", M = "cancel-open", N = "sibling-open", P = "disabled", F = "imperative-action", I = "swipe", L = "window-resize";
50
50
  //#endregion
51
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
52
- function F(e, t, n, r) {
51
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
52
+ function oe(e, t, n, r) {
53
53
  let i = !1, a = !1, s = r ?? o;
54
54
  return {
55
55
  reason: e,
@@ -70,7 +70,7 @@ function F(e, t, n, r) {
70
70
  ...s
71
71
  };
72
72
  }
73
- function I(e, t, n) {
73
+ function R(e, t, n) {
74
74
  let r = n ?? o;
75
75
  return {
76
76
  reason: e,
@@ -79,35 +79,35 @@ function I(e, t, n) {
79
79
  };
80
80
  }
81
81
  //#endregion
82
- //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/useId.js
83
- var L = 0;
84
- function R(e, t = "mui") {
82
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useId.js
83
+ var z = 0;
84
+ function B(e, t = "mui") {
85
85
  let [n, r] = l.useState(e), i = e || n;
86
86
  return l.useEffect(() => {
87
- n ?? (L += 1, r(`${t}-${L}`));
87
+ n ?? (z += 1, r(`${t}-${z}`));
88
88
  }, [n, t]), i;
89
89
  }
90
- var z = t.useId;
91
- function B(e, t) {
92
- if (z !== void 0) {
93
- let n = z();
90
+ var V = t.useId;
91
+ function H(e, t) {
92
+ if (V !== void 0) {
93
+ let n = V();
94
94
  return e ?? (t ? `${t}-${n}` : n);
95
95
  }
96
- return R(e, t);
96
+ return B(e, t);
97
97
  }
98
98
  //#endregion
99
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/useBaseUiId.js
100
- function V(e) {
101
- return B(e, "base-ui");
99
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/useBaseUiId.js
100
+ function U(e) {
101
+ return H(e, "base-ui");
102
102
  }
103
103
  //#endregion
104
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/shadowDom.js
105
- function H(e) {
104
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/shadowDom.js
105
+ function W(e) {
106
106
  let t = e.activeElement;
107
107
  for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
108
108
  return t;
109
109
  }
110
- function U(e, t) {
110
+ function G(e, t) {
111
111
  if (!e || !t) return !1;
112
112
  let n = t.getRootNode?.();
113
113
  if (e.contains(t)) return !0;
@@ -120,19 +120,19 @@ function U(e, t) {
120
120
  }
121
121
  return !1;
122
122
  }
123
- function W(e) {
123
+ function K(e) {
124
124
  return "composedPath" in e ? e.composedPath()[0] : e.target;
125
125
  }
126
126
  //#endregion
127
- //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/owner.js
128
- function G(e) {
127
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/owner.js
128
+ function q(e) {
129
129
  return e?.ownerDocument || document;
130
130
  }
131
131
  //#endregion
132
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js
133
- var K = /* @__PURE__ */ function(e) {
132
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js
133
+ var J = /* @__PURE__ */ function(e) {
134
134
  return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
135
- }({}), q = {
135
+ }({}), se = {
136
136
  badInput: !1,
137
137
  customError: !1,
138
138
  patternMismatch: !1,
@@ -144,22 +144,22 @@ var K = /* @__PURE__ */ function(e) {
144
144
  typeMismatch: !1,
145
145
  valid: null,
146
146
  valueMissing: !1
147
- }, J = {
147
+ }, Y = {
148
148
  valid: null,
149
149
  touched: !1,
150
150
  dirty: !1,
151
151
  filled: !1,
152
152
  focused: !1
153
- }, se = {
153
+ }, ce = {
154
154
  disabled: !1,
155
- ...J
156
- }, ce = { valid(e) {
157
- return e === null ? null : e ? { [K.valid]: "" } : { [K.invalid]: "" };
158
- } }, Y = /* @__PURE__ */ l.createContext({
155
+ ...Y
156
+ }, le = { valid(e) {
157
+ return e === null ? null : e ? { [J.valid]: "" } : { [J.invalid]: "" };
158
+ } }, X = /* @__PURE__ */ l.createContext({
159
159
  invalid: void 0,
160
160
  name: void 0,
161
161
  validityData: {
162
- state: q,
162
+ state: se,
163
163
  errors: [],
164
164
  error: "",
165
165
  value: "",
@@ -167,19 +167,19 @@ var K = /* @__PURE__ */ function(e) {
167
167
  },
168
168
  setValidityData: n,
169
169
  disabled: void 0,
170
- touched: J.touched,
170
+ touched: Y.touched,
171
171
  setTouched: n,
172
- dirty: J.dirty,
172
+ dirty: Y.dirty,
173
173
  setDirty: n,
174
- filled: J.filled,
174
+ filled: Y.filled,
175
175
  setFilled: n,
176
- focused: J.focused,
176
+ focused: Y.focused,
177
177
  setFocused: n,
178
178
  validate: () => null,
179
179
  validationMode: "onSubmit",
180
180
  validationDebounceTime: 0,
181
181
  shouldValidateOnChange: () => !1,
182
- state: se,
182
+ state: ce,
183
183
  markedDirtyRef: { current: !1 },
184
184
  registerFieldControl: n,
185
185
  validation: {
@@ -189,16 +189,16 @@ var K = /* @__PURE__ */ function(e) {
189
189
  commit: async () => {}
190
190
  }
191
191
  });
192
- process.env.NODE_ENV !== "production" && (Y.displayName = "FieldRootContext");
193
- function X(e = !0) {
194
- let t = l.useContext(Y);
192
+ process.env.NODE_ENV !== "production" && (X.displayName = "FieldRootContext");
193
+ function Z(e = !0) {
194
+ let t = l.useContext(X);
195
195
  if (t.setValidityData === n && !e) throw Error(process.env.NODE_ENV === "production" ? i(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
196
196
  return t;
197
197
  }
198
198
  //#endregion
199
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js
200
- function Z(e, t) {
201
- let { enabled: n = !0, getValue: r, id: i, value: a } = t, { registerFieldControl: o } = X(), c = l.useRef(null);
199
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js
200
+ function ue(e, t) {
201
+ let { enabled: n = !0, getValue: r, id: i, value: a } = t, { registerFieldControl: o } = Z(), c = l.useRef(null);
202
202
  c.current ||= Symbol(), s(() => {
203
203
  let t = c.current;
204
204
  if (!(!t || !n)) return o(t, {
@@ -219,7 +219,7 @@ function Z(e, t) {
219
219
  ]);
220
220
  }
221
221
  //#endregion
222
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js
222
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js
223
223
  var Q = /* @__PURE__ */ l.createContext({
224
224
  controlId: void 0,
225
225
  registerControlId: n,
@@ -234,9 +234,9 @@ function $() {
234
234
  return l.useContext(Q);
235
235
  }
236
236
  //#endregion
237
- //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
238
- function le(e = {}) {
239
- let { id: t, implicit: r = !1, controlRef: i } = e, { controlId: o, registerControlId: u } = $(), d = V(t), f = r ? o : void 0, p = a(() => Symbol("labelable-control")), m = l.useRef(!1), h = l.useRef(t != null), g = c(() => {
237
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
238
+ function de(e = {}) {
239
+ let { id: t, implicit: r = !1, controlRef: i } = e, { controlId: o, registerControlId: u } = $(), d = U(t), f = r ? o : void 0, p = a(() => Symbol("labelable-control")), m = l.useRef(!1), h = l.useRef(t != null), g = c(() => {
240
240
  !m.current || u === n || (m.current = !1, u(p.current, void 0));
241
241
  });
242
242
  return s(() => {
@@ -268,4 +268,4 @@ function le(e = {}) {
268
268
  ]), l.useEffect(() => g, [g]), o ?? d;
269
269
  }
270
270
  //#endregion
271
- export { S as A, h as B, C, ie as D, oe as E, g as F, p as H, D as I, k as L, E as M, T as N, ae as O, f as P, j as R, w as S, ne as T, P as U, m as V, u as W, y as _, J as a, M as b, H as c, V as d, B as f, b as g, A as h, X as i, _ as j, x as k, U as l, I as m, $ as n, ce as o, F as p, Z as r, G as s, le as t, W as u, v, N as w, O as x, re as y, te as z };
271
+ export { ae as A, I as B, T as C, ie as D, x as E, f as F, L as G, h as H, g as I, u as K, k as L, te as M, O as N, ne as O, D as P, j as R, A as S, F as T, m as U, b as V, p as W, v as _, Y as a, S as b, W as c, U as d, H as f, y as g, M as h, Z as i, C as j, re as k, G as l, R as m, $ as n, le as o, oe as p, ue as r, q as s, de as t, K as u, _ as v, w, P as x, E as y, N as z };