@oddmash/ui 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from tokens JSON. Run npm run tokens. */
1
+ /* Generated from tokens JSON. Run pnpm run tokens. */
2
2
  :root, :host, [data-om-theme=light] {
3
3
  --om-primitive-color-white: #ffffff;
4
4
  --om-primitive-color-ink: #171717;
@@ -31,9 +31,11 @@
31
31
  --om-primitive-space-16: 16px;
32
32
  --om-primitive-space-24: 24px;
33
33
  --om-primitive-space-32: 32px;
34
- --om-primitive-radius-sm: 4px;
35
- --om-primitive-radius-md: 6px;
36
- --om-primitive-radius-lg: 8px;
34
+ --om-primitive-radius-sm: 6px;
35
+ --om-primitive-radius-md: 8px;
36
+ --om-primitive-radius-lg: 12px;
37
+ --om-primitive-radius-xl: 16px;
38
+ --om-primitive-radius-2xl: 24px;
37
39
  --om-primitive-radius-pill: 999px;
38
40
  --om-primitive-font-family: 'Geist Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
39
41
  --om-primitive-font-size-sm: 13px;
@@ -73,6 +75,8 @@
73
75
  --om-semantic-radius-sm: var(--om-primitive-radius-sm);
74
76
  --om-semantic-radius-md: var(--om-primitive-radius-md);
75
77
  --om-semantic-radius-lg: var(--om-primitive-radius-lg);
78
+ --om-semantic-radius-xl: var(--om-primitive-radius-xl);
79
+ --om-semantic-radius-2xl: var(--om-primitive-radius-2xl);
76
80
  --om-semantic-radius-pill: var(--om-primitive-radius-pill);
77
81
  --om-semantic-font-family: var(--om-primitive-font-family);
78
82
  --om-semantic-font-size: var(--om-primitive-font-size-md);
@@ -120,9 +124,11 @@
120
124
  --om-primitive-space-16: 16px;
121
125
  --om-primitive-space-24: 24px;
122
126
  --om-primitive-space-32: 32px;
123
- --om-primitive-radius-sm: 4px;
124
- --om-primitive-radius-md: 6px;
125
- --om-primitive-radius-lg: 8px;
127
+ --om-primitive-radius-sm: 6px;
128
+ --om-primitive-radius-md: 8px;
129
+ --om-primitive-radius-lg: 12px;
130
+ --om-primitive-radius-xl: 16px;
131
+ --om-primitive-radius-2xl: 24px;
126
132
  --om-primitive-radius-pill: 999px;
127
133
  --om-primitive-font-family: 'Geist Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
128
134
  --om-primitive-font-size-sm: 13px;
@@ -162,6 +168,8 @@
162
168
  --om-semantic-radius-sm: var(--om-primitive-radius-sm);
163
169
  --om-semantic-radius-md: var(--om-primitive-radius-md);
164
170
  --om-semantic-radius-lg: var(--om-primitive-radius-lg);
171
+ --om-semantic-radius-xl: var(--om-primitive-radius-xl);
172
+ --om-semantic-radius-2xl: var(--om-primitive-radius-2xl);
165
173
  --om-semantic-radius-pill: var(--om-primitive-radius-pill);
166
174
  --om-semantic-font-family: var(--om-primitive-font-family);
167
175
  --om-semantic-font-size: var(--om-primitive-font-size-md);
@@ -215,6 +223,12 @@
215
223
  color: var(--om-semantic-color-muted);
216
224
  }
217
225
 
226
+ select.om-select option,
227
+ select.om-select optgroup {
228
+ background: var(--om-semantic-color-surface);
229
+ color: var(--om-semantic-color-text);
230
+ }
231
+
218
232
  .om-progress {
219
233
  accent-color: var(--om-semantic-color-action);
220
234
  }
@@ -300,12 +314,14 @@
300
314
  height: 0.75rem;
301
315
  border-radius: 50%;
302
316
  background: var(--om-semantic-color-muted);
317
+ justify-self: start;
318
+ transition: transform 160ms var(--om-semantic-motion-ease), background-color 160ms ease-out;
303
319
  }
304
320
  .om-switch:checked {
305
321
  background: var(--om-semantic-color-action);
306
322
  }
307
323
  .om-switch:checked::before {
308
- justify-self: end;
324
+ transform: translateX(1.125rem);
309
325
  background: var(--om-semantic-color-on-action);
310
326
  }
311
327
 
@@ -411,9 +427,25 @@
411
427
  }
412
428
 
413
429
  .om-accordion-content {
430
+ min-block-size: 0;
431
+ }
432
+ .om-accordion-content > div {
414
433
  padding: 0 var(--om-semantic-space-xs) var(--om-semantic-space-md);
415
434
  }
416
435
 
436
+ @media (prefers-reduced-motion: no-preference) {
437
+ @supports selector(::details-content) and (transition-behavior: allow-discrete) {
438
+ .om-accordion::details-content {
439
+ display: grid;
440
+ grid-template-rows: minmax(0, 0fr);
441
+ overflow: clip;
442
+ transition: grid-template-rows var(--om-semantic-motion-duration) var(--om-semantic-motion-ease), content-visibility var(--om-semantic-motion-duration) allow-discrete;
443
+ }
444
+ .om-accordion[open]::details-content {
445
+ grid-template-rows: minmax(0, 1fr);
446
+ }
447
+ }
448
+ }
417
449
  .om-table {
418
450
  width: 100%;
419
451
  border-collapse: collapse;
@@ -480,16 +512,14 @@
480
512
  text-align: center;
481
513
  }
482
514
 
483
- :is(.om-textarea,
484
- .om-select,
485
- .om-checkbox,
515
+ :is(.om-checkbox,
486
516
  .om-radio,
487
517
  .om-switch,
488
518
  .om-accordion > summary,
489
519
  .om-breadcrumbs a,
490
520
  .om-pagination > :is(a, button)):focus-visible {
491
521
  outline: 2px solid var(--om-semantic-color-focus);
492
- outline-offset: 3px;
522
+ outline-offset: -1px;
493
523
  }
494
524
 
495
525
  @media (prefers-reduced-motion: reduce) {
@@ -533,23 +563,59 @@
533
563
  font: var(--om-semantic-font-size)/var(--om-semantic-font-line) var(--om-semantic-font-family);
534
564
  }
535
565
  .om-select-dropdown > [role=listbox] > [role=option] {
566
+ display: flex;
567
+ justify-content: space-between;
568
+ align-items: center;
569
+ gap: var(--om-semantic-space-sm);
570
+ min-block-size: var(--om-semantic-control-small);
536
571
  padding: var(--om-semantic-space-xs) var(--om-semantic-space-sm);
537
572
  border-radius: var(--om-semantic-radius-sm);
538
573
  overflow-wrap: anywhere;
539
574
  cursor: pointer;
540
575
  }
576
+ .om-select-dropdown > [role=listbox] > [role=option]::after {
577
+ content: "";
578
+ flex: none;
579
+ inline-size: 0.6em;
580
+ block-size: 0.35em;
581
+ border-inline-start: 2px solid currentColor;
582
+ border-block-end: 2px solid currentColor;
583
+ transform: rotate(-45deg);
584
+ visibility: hidden;
585
+ }
541
586
  .om-select-dropdown > [role=listbox] > [role=option][aria-disabled=true] {
542
587
  color: var(--om-semantic-color-muted);
543
588
  cursor: not-allowed;
544
589
  }
545
- .om-select-dropdown > [role=listbox] > [role=option][data-active], .om-select-dropdown > [role=listbox] > [role=option]:hover:not([aria-disabled=true]) {
546
- outline: 1px solid currentColor;
547
- outline-offset: -1px;
548
- }
549
590
  .om-select-dropdown > [role=listbox] > [role=option][aria-selected=true] {
550
- font-weight: 700;
591
+ background: color-mix(in srgb, var(--om-semantic-color-text) 10%, var(--om-semantic-color-surface));
592
+ }
593
+ .om-select-dropdown > [role=listbox] > [role=option][aria-selected=true]::after {
594
+ visibility: visible;
595
+ }
596
+ .om-select-dropdown > [role=listbox] > [role=option]:hover:not([aria-disabled=true]) {
597
+ background: color-mix(in srgb, var(--om-semantic-color-text) 18%, var(--om-semantic-color-surface));
598
+ }
599
+ .om-select-dropdown > [role=listbox] > [role=option][data-active] {
600
+ background: color-mix(in srgb, var(--om-semantic-color-text) 18%, var(--om-semantic-color-surface));
601
+ outline: 2px solid var(--om-semantic-color-focus);
602
+ outline-offset: -2px;
551
603
  }
552
604
 
605
+ @media (forced-colors: active) {
606
+ .om-select-dropdown > [role=listbox] > [role=option][aria-selected=true] {
607
+ forced-color-adjust: none;
608
+ background: Highlight;
609
+ color: HighlightText;
610
+ }
611
+ .om-select-dropdown > [role=listbox] > [role=option][data-active], .om-select-dropdown > [role=listbox] > [role=option]:hover:not([aria-disabled=true]) {
612
+ outline: 1px solid Highlight;
613
+ outline-offset: -1px;
614
+ }
615
+ .om-select-dropdown > [role=listbox] > [role=option][aria-selected=true][data-active], .om-select-dropdown > [role=listbox] > [role=option][aria-selected=true]:hover {
616
+ outline-color: HighlightText;
617
+ }
618
+ }
553
619
  .om-select-dropdown-trigger {
554
620
  display: flex;
555
621
  align-items: center;
@@ -577,45 +643,213 @@
577
643
  pointer-events: none;
578
644
  }
579
645
 
646
+ .om-toast-viewport {
647
+ position: fixed;
648
+ z-index: 900;
649
+ inset: auto var(--om-semantic-space-lg) var(--om-semantic-space-lg) auto;
650
+ inline-size: min(22rem, 100vw - 2 * var(--om-semantic-space-lg));
651
+ max-block-size: calc(100dvh - 2 * var(--om-semantic-space-lg));
652
+ display: flex;
653
+ flex-direction: column;
654
+ gap: var(--om-semantic-space-sm);
655
+ overflow-y: auto;
656
+ pointer-events: none;
657
+ }
658
+ .om-toast-viewport > .om-toast-region {
659
+ position: static;
660
+ inline-size: auto;
661
+ flex: none;
662
+ }
663
+ .om-toast-viewport > .om-toast-region[data-state=closed] {
664
+ block-size: 0;
665
+ margin-block-end: calc(-1 * var(--om-semantic-space-sm));
666
+ }
667
+ .om-toast-viewport[data-stack-ready=true]:not([data-stack-overflow=true]) {
668
+ display: block;
669
+ overflow: visible;
670
+ block-size: var(--om-toast-stack-height, 0);
671
+ transition: block-size 240ms cubic-bezier(0.22, 0.8, 0.3, 1);
672
+ }
673
+ .om-toast-viewport[data-stack-ready=true]:not([data-stack-overflow=true]) > .om-toast-region {
674
+ position: absolute;
675
+ inset: auto 0 0;
676
+ z-index: var(--om-toast-layer, 0);
677
+ transform: translateY(calc(-1 * var(--om-toast-offset, 0px))) scale(var(--om-toast-scale, 1));
678
+ transform-origin: center bottom;
679
+ transition: transform 240ms cubic-bezier(0.22, 0.8, 0.3, 1), opacity 180ms ease-out;
680
+ }
681
+ .om-toast-viewport[data-stack-ready=true]:not([data-stack-overflow=true]) > .om-toast-region[data-stack-back=true][data-state=open] {
682
+ max-block-size: var(--om-toast-front-height);
683
+ overflow: clip;
684
+ }
685
+ .om-toast-viewport[data-stack-ready=true]:not([data-stack-overflow=true]) > .om-toast-region[data-stack-hidden=true][data-state=open] {
686
+ opacity: 0;
687
+ }
688
+ .om-toast-viewport[data-stack-ready=true]:not([data-stack-overflow=true]) > .om-toast-region[data-stack-hidden=true][data-state=open] .om-toast {
689
+ pointer-events: none;
690
+ }
691
+ .om-toast-viewport[data-stack-active=true][data-stack-expanded=true] {
692
+ pointer-events: auto;
693
+ }
694
+
580
695
  .om-toast {
696
+ box-sizing: border-box;
581
697
  pointer-events: auto;
698
+ position: relative;
582
699
  display: flex;
583
- align-items: start;
584
- gap: var(--om-semantic-space-md);
585
- justify-content: space-between;
586
- padding: var(--om-semantic-space-md);
700
+ align-items: flex-start;
701
+ gap: var(--om-semantic-space-sm);
702
+ padding: var(--om-semantic-space-md) var(--om-semantic-space-lg);
587
703
  border: 1px solid var(--om-semantic-color-border);
588
- border-inline-start: 3px solid var(--om-semantic-color-text);
589
- border-radius: var(--om-semantic-radius-md);
704
+ border-radius: var(--om-semantic-radius-lg);
590
705
  background: var(--om-semantic-color-surface);
591
706
  color: var(--om-semantic-color-text);
592
707
  box-shadow: var(--om-semantic-shadow);
593
708
  font: var(--om-semantic-font-size)/var(--om-semantic-font-line) var(--om-semantic-font-family);
594
709
  overflow-wrap: anywhere;
595
710
  }
596
- .om-toast[data-tone=danger] {
597
- border-inline-start-color: var(--om-semantic-color-danger);
711
+ .om-toast[data-tone=danger] .om-toast-icon, .om-toast[data-tone=error] .om-toast-icon {
712
+ color: var(--om-semantic-color-danger);
598
713
  }
599
- .om-toast > button {
714
+ .om-toast .om-toast-icon {
600
715
  flex: none;
601
- width: 32px;
602
- height: 32px;
603
- border: 1px solid var(--om-semantic-color-border-subtle);
716
+ inline-size: 20px;
717
+ block-size: 20px;
718
+ margin-block-start: 2px;
719
+ }
720
+ .om-toast > [role], .om-toast > .om-toast-exit-copy {
721
+ flex: 1;
722
+ min-inline-size: 0;
723
+ }
724
+ .om-toast > [role] > strong, .om-toast > .om-toast-exit-copy > strong {
725
+ font-weight: 600;
726
+ }
727
+ .om-toast > [role] > div, .om-toast > .om-toast-exit-copy > div {
728
+ color: var(--om-semantic-color-muted);
729
+ font-size: var(--om-semantic-font-small);
730
+ margin-block-start: 2px;
731
+ }
732
+ .om-toast > button, .om-toast > .om-toast-close-placeholder {
733
+ box-sizing: border-box;
734
+ flex: none;
735
+ inline-size: 28px;
736
+ block-size: 28px;
737
+ }
738
+ .om-toast > button {
739
+ display: grid;
740
+ place-items: center;
741
+ margin: -3px -5px -3px 0;
742
+ padding: 0;
743
+ border: 1px solid transparent;
604
744
  border-radius: var(--om-semantic-radius-sm);
605
- background: var(--om-semantic-color-bg);
606
- color: inherit;
607
- font: inherit;
745
+ background: transparent;
746
+ color: var(--om-semantic-color-muted);
608
747
  cursor: pointer;
748
+ transition: background-color 120ms ease-out, color 120ms ease-out;
749
+ }
750
+ .om-toast > button > svg {
751
+ inline-size: 16px;
752
+ block-size: 16px;
753
+ }
754
+ .om-toast > button:hover {
755
+ background: var(--om-semantic-color-bg);
756
+ color: var(--om-semantic-color-text);
609
757
  }
610
758
  .om-toast > button:focus-visible {
611
759
  outline: 2px solid var(--om-semantic-color-focus);
612
- outline-offset: 2px;
760
+ outline-offset: -1px;
761
+ }
762
+ .om-toast[data-state=closing] {
763
+ pointer-events: none;
764
+ }
765
+ .om-toast[data-state=closing] > [role] {
766
+ position: absolute;
767
+ inline-size: 1px;
768
+ block-size: 1px;
769
+ overflow: hidden;
770
+ clip-path: inset(50%);
771
+ }
772
+ .om-toast[data-state=closing] > .om-toast-close-placeholder {
773
+ margin: -3px -5px -3px 0;
613
774
  }
614
775
 
615
776
  @media (prefers-reduced-motion: no-preference) {
616
- .om-toast, .om-alert[role=alert], .om-select-dropdown > [role=listbox]:not([hidden]) {
777
+ .om-toast[data-state=open] {
778
+ animation: om-toast-in 240ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
779
+ }
780
+ .om-toast[data-state=closing] {
781
+ animation: om-toast-out 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
782
+ }
783
+ @keyframes om-toast-in {
784
+ from {
785
+ opacity: 0;
786
+ transform: translateY(12px) scale(0.97);
787
+ }
788
+ to {
789
+ opacity: 1;
790
+ transform: translateY(0) scale(1);
791
+ }
792
+ }
793
+ @keyframes om-toast-out {
794
+ from {
795
+ opacity: 1;
796
+ transform: translateY(0) scale(1);
797
+ }
798
+ to {
799
+ opacity: 0;
800
+ transform: translateY(8px) scale(0.97);
801
+ }
802
+ }
803
+ }
804
+ @media (prefers-reduced-motion: reduce) {
805
+ .om-toast-viewport, .om-toast-viewport > .om-toast-region, .om-toast > button {
806
+ transition: none !important;
807
+ }
808
+ }
809
+ @media (forced-colors: active) {
810
+ .om-toast {
811
+ border-color: CanvasText;
812
+ }
813
+ .om-toast > button {
814
+ border-color: ButtonText;
815
+ color: ButtonText;
816
+ }
817
+ }
818
+ .om-dialog-content.om-alert-dialog {
819
+ width: min(360px, 100vw - 32px);
820
+ }
821
+
822
+ .om-alert-dialog h2 {
823
+ margin: 0 0 var(--om-semantic-space-sm);
824
+ font-size: var(--om-semantic-font-heading);
825
+ }
826
+
827
+ .om-alert-dialog-description {
828
+ margin: 0;
829
+ color: var(--om-semantic-color-muted);
830
+ }
831
+
832
+ .om-alert-dialog-actions {
833
+ display: flex;
834
+ justify-content: flex-end;
835
+ margin-block-start: var(--om-semantic-space-xl);
836
+ }
837
+
838
+ @media (prefers-reduced-motion: no-preference) {
839
+ .om-alert[role=alert] {
617
840
  animation: om-enter var(--om-semantic-motion-duration) var(--om-semantic-motion-ease) both;
618
841
  }
842
+ .om-select-dropdown > [role=listbox]:not([hidden]) {
843
+ animation: om-dropdown-reveal var(--om-semantic-motion-duration) var(--om-semantic-motion-ease);
844
+ }
845
+ @keyframes om-dropdown-reveal {
846
+ from {
847
+ clip-path: inset(0 0 100% 0);
848
+ }
849
+ to {
850
+ clip-path: inset(0);
851
+ }
852
+ }
619
853
  @keyframes om-enter {
620
854
  from {
621
855
  translate: 0 5px;
@@ -625,6 +859,88 @@
625
859
  }
626
860
  }
627
861
  }
862
+ .om-switch:dir(rtl):checked::before {
863
+ transform: translateX(-1.125rem);
864
+ }
865
+
866
+ :is(.om-checkbox, .om-radio, .om-switch):not(:disabled):hover {
867
+ border-color: var(--om-semantic-color-muted);
868
+ }
869
+
870
+ .om-pagination > :is(a, button) {
871
+ box-sizing: border-box;
872
+ cursor: pointer;
873
+ }
874
+
875
+ .om-pagination > :is(a, button):not(:disabled):not([aria-current=page]):hover {
876
+ background: var(--om-semantic-color-bg);
877
+ border-color: var(--om-semantic-color-border);
878
+ }
879
+
880
+ .om-pagination > button:disabled {
881
+ opacity: 0.5;
882
+ cursor: not-allowed;
883
+ }
884
+
885
+ .om-breadcrumbs button {
886
+ border: 0;
887
+ padding: var(--om-semantic-space-xs);
888
+ border-radius: var(--om-semantic-radius-sm);
889
+ background: transparent;
890
+ font: inherit;
891
+ color: inherit;
892
+ cursor: pointer;
893
+ }
894
+
895
+ .om-breadcrumbs button:hover:not(:disabled) {
896
+ background: var(--om-semantic-color-surface);
897
+ }
898
+
899
+ .om-breadcrumbs button:focus-visible {
900
+ outline: 2px solid var(--om-semantic-color-focus);
901
+ outline-offset: -1px;
902
+ }
903
+
904
+ .om-breadcrumbs button[aria-current=page] {
905
+ font-weight: 600;
906
+ }
907
+
908
+ .om-breadcrumbs button:disabled {
909
+ opacity: 0.5;
910
+ cursor: not-allowed;
911
+ }
912
+
913
+ .om-accordion > summary:hover {
914
+ background: var(--om-semantic-color-surface);
915
+ }
916
+
917
+ .om-progress {
918
+ border: 0;
919
+ border-radius: var(--om-semantic-radius-pill);
920
+ overflow: hidden;
921
+ }
922
+
923
+ @media (prefers-reduced-motion: no-preference) {
924
+ :is(.om-checkbox, .om-radio, .om-switch, .om-pagination > :is(a, button), .om-breadcrumbs button, .om-accordion > summary) {
925
+ transition: background-color 140ms var(--om-semantic-motion-ease), border-color 140ms var(--om-semantic-motion-ease), color 140ms var(--om-semantic-motion-ease);
926
+ }
927
+ .om-skeleton {
928
+ animation: om-skeleton-pulse 1.6s ease-in-out 2 alternate;
929
+ }
930
+ @keyframes om-skeleton-pulse {
931
+ from {
932
+ opacity: 0.65;
933
+ }
934
+ to {
935
+ opacity: 1;
936
+ }
937
+ }
938
+ }
939
+ @media (prefers-reduced-motion: reduce) {
940
+ .om-switch::before {
941
+ transition: none;
942
+ }
943
+ }
628
944
  .om-button,
629
945
  .om-input,
630
946
  .om-card,
@@ -652,7 +968,7 @@
652
968
  font-weight: var(--om-semantic-font-weight);
653
969
  cursor: pointer;
654
970
  gap: var(--om-semantic-space-sm);
655
- transition: opacity var(--om-semantic-motion-duration) var(--om-semantic-motion-ease);
971
+ transition: background-color var(--om-semantic-motion-duration) var(--om-semantic-motion-ease), border-color var(--om-semantic-motion-duration) var(--om-semantic-motion-ease), color var(--om-semantic-motion-duration) var(--om-semantic-motion-ease), opacity var(--om-semantic-motion-duration) var(--om-semantic-motion-ease);
656
972
  }
657
973
  .om-button:disabled,
658
974
  .om-tabs-trigger:disabled {
@@ -797,6 +1113,7 @@
797
1113
  width: min(440px, 100vw - 32px);
798
1114
  max-height: calc(100dvh - 32px);
799
1115
  overflow: auto;
1116
+ overscroll-behavior: contain;
800
1117
  padding: var(--om-semantic-space-xl);
801
1118
  background: var(--om-semantic-color-surface);
802
1119
  border: var(--om-semantic-border-width) var(--om-semantic-border-style) var(--om-semantic-color-border);
@@ -805,12 +1122,19 @@
805
1122
  }
806
1123
 
807
1124
  :is(.om-button,
808
- .om-input,
809
1125
  .om-tabs-trigger,
810
1126
  .om-tabs-content,
811
1127
  .om-dialog-content):focus-visible {
812
1128
  outline: 2px solid var(--om-semantic-color-focus);
813
- outline-offset: 3px;
1129
+ outline-offset: -1px;
1130
+ }
1131
+
1132
+ :is(.om-input, .om-textarea, .om-select):focus-visible {
1133
+ outline: 2px solid var(--om-semantic-color-focus);
1134
+ outline-offset: -1px;
1135
+ }
1136
+ :is(.om-input, .om-textarea, .om-select):focus-visible[aria-invalid=true], :is(.om-input, .om-textarea, .om-select):focus-visible:user-invalid {
1137
+ outline-offset: -3px;
814
1138
  }
815
1139
 
816
1140
  @media (prefers-reduced-motion: reduce) {
@@ -845,3 +1169,62 @@
845
1169
  }
846
1170
  }
847
1171
  }
1172
+ .om-slider {
1173
+ box-sizing: border-box;
1174
+ width: 100%;
1175
+ min-width: 0;
1176
+ min-height: var(--om-semantic-control-height);
1177
+ accent-color: var(--om-semantic-color-action);
1178
+ cursor: pointer;
1179
+ }
1180
+
1181
+ .om-slider:disabled {
1182
+ cursor: not-allowed;
1183
+ opacity: 0.5;
1184
+ }
1185
+
1186
+ .om-slider:focus-visible {
1187
+ outline: 2px solid var(--om-semantic-color-focus);
1188
+ outline-offset: -1px;
1189
+ }
1190
+
1191
+ .om-command-palette {
1192
+ max-height: min(70vh, 480px);
1193
+ overflow: auto;
1194
+ }
1195
+
1196
+ .om-command-list {
1197
+ display: grid;
1198
+ gap: var(--om-semantic-space-xs);
1199
+ margin-top: var(--om-semantic-space-sm);
1200
+ max-height: 240px;
1201
+ overflow: auto;
1202
+ }
1203
+
1204
+ .om-command-list [role=option] {
1205
+ padding: var(--om-semantic-space-sm);
1206
+ border-radius: var(--om-semantic-radius-sm);
1207
+ cursor: pointer;
1208
+ }
1209
+
1210
+ .om-command-list [aria-selected=true] {
1211
+ background: var(--om-semantic-color-action);
1212
+ color: var(--om-semantic-color-on-action);
1213
+ }
1214
+
1215
+ .om-command-list [aria-disabled=true] {
1216
+ opacity: 0.5;
1217
+ cursor: not-allowed;
1218
+ }
1219
+
1220
+ .om-input:not(:disabled):not([aria-invalid=true]):not(:user-invalid):hover,
1221
+ .om-textarea:not(:disabled):not([aria-invalid=true]):not(:user-invalid):hover,
1222
+ .om-select-dropdown-trigger:not(:disabled):not([aria-invalid=true]):not(:user-invalid):hover {
1223
+ border-color: var(--om-semantic-color-muted);
1224
+ }
1225
+
1226
+ @media (prefers-reduced-motion: no-preference) {
1227
+ .om-button:active:not(:disabled) {
1228
+ transform: translateY(1px);
1229
+ }
1230
+ }
package/dist/toast.d.ts CHANGED
@@ -1,20 +1,21 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
 
4
+ declare const ToastViewport: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
4
5
  type ToastProps = Omit<ComponentPropsWithoutRef<'div'>, 'title'> & {
5
6
  open: boolean;
6
7
  title: string;
7
8
  onDismiss: () => void;
8
9
  dismissLabel?: string;
9
- tone?: 'neutral' | 'danger';
10
+ tone?: 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'error';
10
11
  };
11
12
  declare const Toast: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & {
12
13
  open: boolean;
13
14
  title: string;
14
15
  onDismiss: () => void;
15
16
  dismissLabel?: string;
16
- tone?: "neutral" | "danger";
17
+ tone?: "neutral" | "success" | "info" | "warning" | "danger" | "error";
17
18
  } & react.RefAttributes<HTMLDivElement>>;
18
19
 
19
- export { Toast };
20
+ export { Toast, ToastViewport };
20
21
  export type { ToastProps };
package/dist/toast.js CHANGED
@@ -1,8 +1,10 @@
1
1
  "use client";
2
2
  import {
3
- Toast
4
- } from "./chunk-WJ7V6SRX.js";
3
+ Toast,
4
+ ToastViewport
5
+ } from "./chunk-TBR4HCBJ.js";
5
6
  import "./chunk-54STG2JB.js";
6
7
  export {
7
- Toast
8
+ Toast,
9
+ ToastViewport
8
10
  };
package/dist/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from tokens JSON. Run npm run tokens. */
1
+ /* Generated from tokens JSON. Run pnpm run tokens. */
2
2
  :root, :host, [data-om-theme="light"] {
3
3
  --om-primitive-color-white: #ffffff;
4
4
  --om-primitive-color-ink: #171717;
@@ -31,9 +31,11 @@
31
31
  --om-primitive-space-16: 16px;
32
32
  --om-primitive-space-24: 24px;
33
33
  --om-primitive-space-32: 32px;
34
- --om-primitive-radius-sm: 4px;
35
- --om-primitive-radius-md: 6px;
36
- --om-primitive-radius-lg: 8px;
34
+ --om-primitive-radius-sm: 6px;
35
+ --om-primitive-radius-md: 8px;
36
+ --om-primitive-radius-lg: 12px;
37
+ --om-primitive-radius-xl: 16px;
38
+ --om-primitive-radius-2xl: 24px;
37
39
  --om-primitive-radius-pill: 999px;
38
40
  --om-primitive-font-family: 'Geist Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
39
41
  --om-primitive-font-size-sm: 13px;
@@ -73,6 +75,8 @@
73
75
  --om-semantic-radius-sm: var(--om-primitive-radius-sm);
74
76
  --om-semantic-radius-md: var(--om-primitive-radius-md);
75
77
  --om-semantic-radius-lg: var(--om-primitive-radius-lg);
78
+ --om-semantic-radius-xl: var(--om-primitive-radius-xl);
79
+ --om-semantic-radius-2xl: var(--om-primitive-radius-2xl);
76
80
  --om-semantic-radius-pill: var(--om-primitive-radius-pill);
77
81
  --om-semantic-font-family: var(--om-primitive-font-family);
78
82
  --om-semantic-font-size: var(--om-primitive-font-size-md);
@@ -119,9 +123,11 @@
119
123
  --om-primitive-space-16: 16px;
120
124
  --om-primitive-space-24: 24px;
121
125
  --om-primitive-space-32: 32px;
122
- --om-primitive-radius-sm: 4px;
123
- --om-primitive-radius-md: 6px;
124
- --om-primitive-radius-lg: 8px;
126
+ --om-primitive-radius-sm: 6px;
127
+ --om-primitive-radius-md: 8px;
128
+ --om-primitive-radius-lg: 12px;
129
+ --om-primitive-radius-xl: 16px;
130
+ --om-primitive-radius-2xl: 24px;
125
131
  --om-primitive-radius-pill: 999px;
126
132
  --om-primitive-font-family: 'Geist Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
127
133
  --om-primitive-font-size-sm: 13px;
@@ -161,6 +167,8 @@
161
167
  --om-semantic-radius-sm: var(--om-primitive-radius-sm);
162
168
  --om-semantic-radius-md: var(--om-primitive-radius-md);
163
169
  --om-semantic-radius-lg: var(--om-primitive-radius-lg);
170
+ --om-semantic-radius-xl: var(--om-primitive-radius-xl);
171
+ --om-semantic-radius-2xl: var(--om-primitive-radius-2xl);
164
172
  --om-semantic-radius-pill: var(--om-primitive-radius-pill);
165
173
  --om-semantic-font-family: var(--om-primitive-font-family);
166
174
  --om-semantic-font-size: var(--om-primitive-font-size-md);