@optimum-intelligence/opti-ui 0.7.2 → 0.7.4

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 (54) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +3 -1
  3. package/dist/components/app-shell/AppShell.d.ts +12 -3
  4. package/dist/components/app-shell/AppShell.js +45 -26
  5. package/dist/components/app-shell/AppShell.js.map +1 -1
  6. package/dist/components/data-table/DataTable.d.ts +34 -7
  7. package/dist/components/data-table/DataTable.js +257 -96
  8. package/dist/components/data-table/DataTable.js.map +1 -1
  9. package/dist/components/data-table/DataTableContent.d.ts +6 -1
  10. package/dist/components/data-table/DataTableContent.js +306 -409
  11. package/dist/components/data-table/DataTableContent.js.map +1 -1
  12. package/dist/components/data-table/DataTableFilters.d.ts +10 -2
  13. package/dist/components/data-table/DataTableFilters.js +71 -46
  14. package/dist/components/data-table/DataTableFilters.js.map +1 -1
  15. package/dist/components/data-table/DataTableRow.js +2 -0
  16. package/dist/components/data-table/DataTableRow.js.map +1 -1
  17. package/dist/components/data-table/types.d.ts +14 -1
  18. package/dist/components/data-table/useDataTable.js +2 -0
  19. package/dist/components/data-table/useDataTable.js.map +1 -1
  20. package/dist/components/drawer/Drawer.d.ts +7 -4
  21. package/dist/components/drawer/Drawer.js +2 -1
  22. package/dist/components/drawer/Drawer.js.map +1 -1
  23. package/dist/components/map/Map.d.ts +50 -9
  24. package/dist/components/map/Map.js +549 -356
  25. package/dist/components/map/Map.js.map +1 -1
  26. package/dist/components/stat-card/StatCard.d.ts +2 -2
  27. package/dist/components/stat-card/StatCard.js +1 -1
  28. package/dist/components/stat-card/StatCard.js.map +1 -1
  29. package/dist/components/stepper/Stepper.d.ts +7 -1
  30. package/dist/components/stepper/Stepper.js +46 -27
  31. package/dist/components/stepper/Stepper.js.map +1 -1
  32. package/dist/components/table/Table.d.ts +1 -1
  33. package/dist/components/table/Table.js +3 -1
  34. package/dist/components/table/Table.js.map +1 -1
  35. package/dist/components/tabs/Tabs.d.ts +4 -1
  36. package/dist/components/tabs/Tabs.js +33 -23
  37. package/dist/components/tabs/Tabs.js.map +1 -1
  38. package/dist/components/toggle/Toggle.d.ts +1 -1
  39. package/dist/components/toggle/Toggle.js.map +1 -1
  40. package/dist/components.json +111 -35
  41. package/dist/icons/index.d.ts +8 -0
  42. package/dist/icons/index.js +11 -1
  43. package/dist/icons/index.js.map +1 -1
  44. package/dist/index.js +2 -2
  45. package/dist/llms-full.txt +70 -26
  46. package/dist/llms.txt +8 -8
  47. package/dist/opti-ui.css +389 -30
  48. package/dist/utils/media.d.ts +4 -0
  49. package/dist/utils/media.js +34 -0
  50. package/dist/utils/media.js.map +1 -0
  51. package/dist/utils/scroll-fade.d.ts +9 -0
  52. package/dist/utils/scroll-fade.js +45 -0
  53. package/dist/utils/scroll-fade.js.map +1 -0
  54. package/package.json +1 -1
package/dist/opti-ui.css CHANGED
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  @layer maplibre, oui.tokens, oui.base, oui.components;
2
3
  @layer oui.tokens {
3
4
  :root {
@@ -67,6 +68,13 @@
67
68
  --oui-z-toast: 120;
68
69
  --oui-z-tooltip: 130;
69
70
  }
71
+ @media (pointer: coarse) {
72
+ :root {
73
+ --oui-control-height-sm: 2.5rem;
74
+ --oui-control-height-md: 2.75rem;
75
+ --oui-control-height-lg: 3rem;
76
+ }
77
+ }
70
78
  :root,
71
79
  .oui-theme,
72
80
  [data-oui-theme] {
@@ -711,6 +719,12 @@
711
719
  box-shadow: none;
712
720
  color: var(--_fg);
713
721
  }
722
+ .oui-navbar[data-collapsed] .oui-toggle-group[data-variant=segmented] {
723
+ align-self: center;
724
+ }
725
+ .oui-navbar[data-collapsed] .oui-toggle-group[data-variant=segmented] > .oui-toggle:not([data-pressed]) {
726
+ display: none;
727
+ }
714
728
  .oui-navbar[data-collapsed] .oui-navbar__toggle svg,
715
729
  .oui-navbar[data-peek] .oui-navbar__toggle svg {
716
730
  transform: rotate(180deg);
@@ -939,6 +953,13 @@
939
953
  outline: 2px solid var(--oui-color-on-inverse);
940
954
  outline-offset: -2px;
941
955
  }
956
+ @media (pointer: coarse) {
957
+ .oui-app-shell__menu-button,
958
+ .oui-app-shell__drawer-close {
959
+ width: 2.75rem;
960
+ height: 2.75rem;
961
+ }
962
+ }
942
963
  .oui-app-shell__drawer-close {
943
964
  position: absolute;
944
965
  top: 1.35rem;
@@ -1018,9 +1039,13 @@
1018
1039
  gap: var(--oui-space-4);
1019
1040
  }
1020
1041
  .oui-grid {
1042
+ --_cols: 3;
1043
+ --_half: 2;
1044
+ --_gap: var(--oui-space-6);
1045
+ --_min: var(--oui-grid-min-item-width, 12rem);
1021
1046
  display: grid;
1022
- grid-template-columns: repeat(var(--_cols, 3), minmax(0, 1fr));
1023
- gap: var(--_gap, var(--oui-space-6));
1047
+ grid-template-columns: repeat(auto-fill, minmax(max(min(var(--_min), 100%), (100% - (var(--_cols) - 1) * var(--_gap)) / var(--_cols), min((100% - (var(--_half) - 1) * var(--_gap)) / var(--_half), (var(--_cols) * var(--_min) + (var(--_cols) - 1) * var(--_gap) - 100%) * 1000)), 1fr));
1048
+ gap: var(--_gap);
1024
1049
  min-width: 0;
1025
1050
  }
1026
1051
  .oui-grid > * {
@@ -1028,21 +1053,35 @@
1028
1053
  }
1029
1054
  .oui-grid[data-columns="1"] {
1030
1055
  --_cols: 1;
1056
+ --_half: 1;
1031
1057
  }
1032
1058
  .oui-grid[data-columns="2"] {
1033
1059
  --_cols: 2;
1060
+ --_half: 1;
1034
1061
  }
1035
1062
  .oui-grid[data-columns="3"] {
1036
1063
  --_cols: 3;
1064
+ --_half: 2;
1037
1065
  }
1038
1066
  .oui-grid[data-columns="4"] {
1039
1067
  --_cols: 4;
1068
+ --_half: 2;
1040
1069
  }
1041
1070
  .oui-grid[data-columns="5"] {
1042
1071
  --_cols: 5;
1072
+ --_half: 3;
1043
1073
  }
1044
1074
  .oui-grid[data-columns="6"] {
1045
1075
  --_cols: 6;
1076
+ --_half: 3;
1077
+ }
1078
+ .oui-grid[data-columns="4"], .oui-grid[data-columns="5"], .oui-grid[data-columns="6"] {
1079
+ --_min: var(--oui-grid-min-item-width, 11rem);
1080
+ }
1081
+ @media (max-width: 640px) {
1082
+ .oui-grid[data-columns="4"], .oui-grid[data-columns="5"], .oui-grid[data-columns="6"] {
1083
+ --_min: var(--oui-grid-min-item-width, 9rem);
1084
+ }
1046
1085
  }
1047
1086
  .oui-grid[data-gap=sm] {
1048
1087
  --_gap: var(--oui-space-4);
@@ -1050,16 +1089,6 @@
1050
1089
  .oui-grid[data-gap=lg] {
1051
1090
  --_gap: var(--oui-space-10);
1052
1091
  }
1053
- @media (max-width: 1200px) {
1054
- .oui-grid[data-columns="4"], .oui-grid[data-columns="5"], .oui-grid[data-columns="6"] {
1055
- --_cols: 2;
1056
- }
1057
- }
1058
- @media (max-width: 900px) {
1059
- .oui-grid:not([data-columns="1"]) {
1060
- --_cols: 1;
1061
- }
1062
- }
1063
1092
  }
1064
1093
  @layer oui.components {
1065
1094
  .oui-avatar {
@@ -1799,12 +1828,14 @@
1799
1828
  }
1800
1829
  .oui-card__header {
1801
1830
  display: flex;
1831
+ flex-wrap: wrap;
1802
1832
  align-items: flex-start;
1803
1833
  justify-content: space-between;
1804
- gap: 0.75rem;
1834
+ gap: 0.5rem 0.75rem;
1805
1835
  min-width: 0;
1806
1836
  }
1807
1837
  .oui-card__header > :not(.oui-card__actions) {
1838
+ flex: 1 1 12rem;
1808
1839
  min-width: 0;
1809
1840
  }
1810
1841
  .oui-card__title {
@@ -1823,7 +1854,7 @@
1823
1854
  }
1824
1855
  .oui-card__actions {
1825
1856
  display: flex;
1826
- flex-shrink: 0;
1857
+ flex-wrap: wrap;
1827
1858
  align-items: center;
1828
1859
  gap: 0.15rem;
1829
1860
  margin: -0.35rem -0.35rem 0 auto;
@@ -2599,10 +2630,47 @@
2599
2630
  justify-content: space-between;
2600
2631
  gap: var(--oui-space-4) var(--oui-space-6);
2601
2632
  }
2602
- .oui-data-table__toolbar > .oui-input-group {
2633
+ .oui-data-table__toolbar > .oui-input-group,
2634
+ .oui-data-table__toolbar > .oui-data-table__controls > .oui-input-group {
2603
2635
  flex: 1 1 14rem;
2604
2636
  max-width: 22rem;
2605
2637
  }
2638
+ .oui-data-table__toolbar:has(> .oui-data-table__controls) {
2639
+ flex-wrap: nowrap;
2640
+ align-items: flex-start;
2641
+ }
2642
+ .oui-data-table__toolbar > .oui-data-table__controls + .oui-data-table__actions {
2643
+ flex: none;
2644
+ flex-wrap: nowrap;
2645
+ min-height: var(--oui-control-height-md);
2646
+ }
2647
+ .oui-data-table__toolbar[data-size=sm] > .oui-data-table__controls + .oui-data-table__actions {
2648
+ min-height: var(--oui-control-height-sm);
2649
+ }
2650
+ .oui-data-table__controls {
2651
+ display: flex;
2652
+ flex: 1 1 0;
2653
+ flex-wrap: wrap;
2654
+ align-items: center;
2655
+ gap: var(--oui-space-4) var(--oui-space-6);
2656
+ min-width: 0;
2657
+ }
2658
+ .oui-data-table__toolbar[data-layout=narrow] {
2659
+ flex-wrap: nowrap;
2660
+ gap: var(--oui-space-4);
2661
+ }
2662
+ .oui-data-table__toolbar[data-layout=narrow] > .oui-input-group {
2663
+ flex: 1;
2664
+ min-width: 0;
2665
+ max-width: none;
2666
+ }
2667
+ .oui-data-table__toolbar[data-layout=narrow] > :first-child:not(.oui-input-group) {
2668
+ margin-left: auto;
2669
+ }
2670
+ .oui-data-table__sheet-trigger[data-active] {
2671
+ --_border: var(--oui-color-accent);
2672
+ --_bg: var(--oui-color-accent-subtle);
2673
+ }
2606
2674
  .oui-data-table__filters {
2607
2675
  display: flex;
2608
2676
  flex-wrap: wrap;
@@ -2610,31 +2678,71 @@
2610
2678
  gap: 0.5rem;
2611
2679
  min-width: 0;
2612
2680
  }
2613
- .oui-data-table .oui-data-table__filter {
2681
+ .oui-data-table__filters[data-stacked] {
2682
+ flex-direction: column;
2683
+ align-items: stretch;
2684
+ gap: var(--oui-space-8);
2685
+ }
2686
+ .oui-data-table__filters[data-stacked] > .oui-data-table__filter,
2687
+ .oui-data-table__filters[data-stacked] .oui-data-table__filter-field > .oui-data-table__filter {
2688
+ width: 100%;
2689
+ }
2690
+ .oui-data-table__filters[data-stacked] .oui-select__trigger.oui-data-table__filter {
2691
+ justify-content: flex-start;
2692
+ }
2693
+ .oui-data-table__filters[data-stacked] .oui-select__trigger.oui-data-table__filter .oui-select__icon {
2694
+ margin-left: auto;
2695
+ }
2696
+ .oui-data-table__filter-field {
2697
+ display: grid;
2698
+ gap: var(--oui-space-3);
2699
+ }
2700
+ .oui-data-table__filter-heading {
2701
+ color: var(--oui-color-text-muted);
2702
+ font-size: var(--oui-font-size-2xs);
2703
+ font-weight: var(--oui-font-weight-bold);
2704
+ letter-spacing: 0.08em;
2705
+ text-transform: uppercase;
2706
+ }
2707
+ .oui-data-table__sheet .oui-drawer__footer {
2708
+ flex-wrap: nowrap;
2709
+ }
2710
+ .oui-data-table__sheet-done {
2711
+ flex: 1;
2712
+ }
2713
+ .oui-data-table__sheet-extra {
2714
+ display: flex;
2715
+ flex-wrap: wrap;
2716
+ gap: var(--oui-space-4);
2717
+ margin-top: var(--oui-space-10);
2718
+ padding-top: var(--oui-space-8);
2719
+ border-top: 1px solid var(--oui-color-border-subtle);
2720
+ }
2721
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter {
2614
2722
  width: auto;
2615
2723
  min-width: 0;
2616
2724
  font-size: var(--oui-font-size-sm);
2617
2725
  font-weight: var(--oui-font-weight-medium);
2618
2726
  }
2619
- .oui-data-table .oui-data-table__filter.oui-toggle {
2727
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter.oui-toggle {
2620
2728
  border-width: var(--oui-control-border-width);
2621
2729
  }
2622
- .oui-data-table .oui-data-table__filter.oui-select__trigger {
2730
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter.oui-select__trigger {
2623
2731
  gap: 0.4rem;
2624
2732
  }
2625
- .oui-data-table .oui-data-table__filter .oui-date-picker__trigger {
2733
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter .oui-date-picker__trigger {
2626
2734
  font-size: inherit;
2627
2735
  }
2628
- .oui-data-table .oui-data-table__filter .oui-date-picker__trigger[data-placeholder] .oui-date-picker__value {
2736
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter .oui-date-picker__trigger[data-placeholder] .oui-date-picker__value {
2629
2737
  color: var(--oui-color-text-muted);
2630
2738
  }
2631
- .oui-data-table .oui-data-table__filter[data-active],
2632
- .oui-data-table .oui-data-table__filter .oui-date-picker__trigger:not([data-placeholder]) {
2739
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter[data-active],
2740
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__filter .oui-date-picker__trigger:not([data-placeholder]) {
2633
2741
  border-color: var(--oui-color-accent);
2634
2742
  background: var(--oui-color-accent-subtle);
2635
2743
  color: var(--oui-color-text-strong);
2636
2744
  }
2637
- .oui-data-table .oui-data-table__chips > .oui-toggle:has(> .oui-badge) {
2745
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__chips > .oui-toggle:has(> .oui-badge) {
2638
2746
  height: auto;
2639
2747
  min-width: 0;
2640
2748
  padding: 0;
@@ -2642,18 +2750,18 @@
2642
2750
  border-radius: var(--oui-radius-pill);
2643
2751
  background: transparent;
2644
2752
  }
2645
- .oui-data-table .oui-data-table__chips > .oui-toggle:has(> .oui-badge) > .oui-badge {
2753
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__chips > .oui-toggle:has(> .oui-badge) > .oui-badge {
2646
2754
  transition: border-color var(--oui-duration-fast) var(--oui-ease);
2647
2755
  }
2648
2756
  @media (hover: hover) {
2649
- .oui-data-table .oui-data-table__chips > .oui-toggle:has(> .oui-badge):hover:not([data-disabled], [data-pressed]) {
2757
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__chips > .oui-toggle:has(> .oui-badge):hover:not([data-disabled], [data-pressed]) {
2650
2758
  border-color: transparent;
2651
2759
  }
2652
- .oui-data-table .oui-data-table__chips > .oui-toggle:has(> .oui-badge):hover:not([data-disabled], [data-pressed]) > .oui-badge {
2760
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__chips > .oui-toggle:has(> .oui-badge):hover:not([data-disabled], [data-pressed]) > .oui-badge {
2653
2761
  border-color: var(--_tone-border);
2654
2762
  }
2655
2763
  }
2656
- .oui-data-table .oui-data-table__chips > .oui-toggle:has(> .oui-badge)[data-pressed] > .oui-badge {
2764
+ :is(.oui-data-table, .oui-data-table__sheet) .oui-data-table__chips > .oui-toggle:has(> .oui-badge)[data-pressed] > .oui-badge {
2657
2765
  border-color: var(--_tone);
2658
2766
  box-shadow: inset 0 0 0 0.5px var(--_tone);
2659
2767
  }
@@ -2709,6 +2817,59 @@
2709
2817
  .oui-data-table .oui-table__cell[data-muted] {
2710
2818
  color: var(--oui-color-text-muted);
2711
2819
  }
2820
+ .oui-data-table .oui-table :is(.oui-table__cell, .oui-table__head)[data-nowrap] {
2821
+ overflow-wrap: normal;
2822
+ white-space: nowrap;
2823
+ }
2824
+ .oui-data-table .oui-table[data-sticky-column] {
2825
+ --_check-width: 2.25rem;
2826
+ }
2827
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row {
2828
+ --_tint: transparent;
2829
+ }
2830
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row > :first-child,
2831
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row > .oui-data-table__check + * {
2832
+ position: sticky;
2833
+ left: 0;
2834
+ z-index: 1;
2835
+ background-color: var(--oui-color-surface);
2836
+ background-image: linear-gradient(var(--_tint), var(--_tint));
2837
+ }
2838
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row > .oui-data-table__check + * {
2839
+ left: var(--_check-width);
2840
+ }
2841
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__header .oui-table__row > :is(:first-child, .oui-data-table__check + *) {
2842
+ z-index: 2;
2843
+ }
2844
+ .oui-data-table .oui-table[data-sticky-column][data-striped] .oui-table__body .oui-table__row:nth-child(even) {
2845
+ --_tint: var(--oui-color-surface-muted);
2846
+ }
2847
+ .oui-data-table .oui-table[data-sticky-column][data-hoverable] .oui-table__body .oui-table__row:hover {
2848
+ --_tint: var(--oui-color-surface-hover);
2849
+ }
2850
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row[data-tone]:not([data-selected], :hover) {
2851
+ --_tint: var(--_tone-subtle);
2852
+ }
2853
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row[data-clickable]:hover,
2854
+ .oui-data-table .oui-table[data-sticky-column] .oui-table__row:is([data-selected], [data-editing]) {
2855
+ --_tint: var(--oui-color-accent-subtle);
2856
+ }
2857
+ .oui-data-table .oui-table-wrap:has(> .oui-table[data-sticky-column])[data-fade-start] {
2858
+ mask-image: none;
2859
+ }
2860
+ .oui-data-table .oui-table-wrap:has(> .oui-table[data-sticky-column])[data-fade-start] .oui-table__row > :is(:first-child:not(.oui-data-table__check), .oui-data-table__check + *)::after {
2861
+ content: "";
2862
+ position: absolute;
2863
+ top: 0;
2864
+ right: -0.5rem;
2865
+ bottom: 0;
2866
+ width: 0.5rem;
2867
+ background: linear-gradient(to right, color-mix(in srgb, var(--oui-color-text-strong) 12%, transparent), transparent);
2868
+ pointer-events: none;
2869
+ }
2870
+ .oui-data-table .oui-table-wrap:has(> .oui-table[data-sticky-column])[data-fade-start][data-fade-end] {
2871
+ mask-image: linear-gradient(to left, transparent, #000 var(--_fade));
2872
+ }
2712
2873
  .oui-data-table .oui-table__row[data-tone] {
2713
2874
  --_tone: var(--oui-color-accent);
2714
2875
  --_tone-subtle: var(--oui-color-accent-subtle);
@@ -3081,6 +3242,11 @@
3081
3242
  overflow-wrap: anywhere;
3082
3243
  white-space: pre-wrap;
3083
3244
  }
3245
+ @media (max-width: 640px) {
3246
+ .oui-description-list[data-layout=grid] {
3247
+ column-gap: var(--oui-space-8);
3248
+ }
3249
+ }
3084
3250
  @media (max-width: 440px) {
3085
3251
  .oui-description-list[data-layout=rows] > .oui-description-list__item {
3086
3252
  grid-template-columns: 1fr;
@@ -3354,10 +3520,34 @@
3354
3520
  .oui-drawer[data-side=left][data-starting-style], .oui-drawer[data-side=left][data-ending-style] {
3355
3521
  transform: translateX(-100%);
3356
3522
  }
3523
+ .oui-drawer[data-side=bottom] {
3524
+ top: auto;
3525
+ right: 0;
3526
+ left: 0;
3527
+ width: 100%;
3528
+ height: auto;
3529
+ max-height: 85dvh;
3530
+ border-top-width: 1px;
3531
+ border-radius: var(--oui-radius-card) var(--oui-radius-card) 0 0;
3532
+ }
3533
+ .oui-drawer[data-side=bottom][data-starting-style], .oui-drawer[data-side=bottom][data-ending-style] {
3534
+ transform: translateY(100%);
3535
+ }
3536
+ .oui-drawer[data-side=bottom] .oui-drawer__body {
3537
+ flex: 0 1 auto;
3538
+ }
3539
+ .oui-drawer[data-side=bottom] > .oui-drawer__body:last-child {
3540
+ padding-bottom: calc(var(--oui-drawer-padding, var(--_padding)) + env(safe-area-inset-bottom, 0px));
3541
+ }
3542
+ .oui-drawer[data-side=bottom] > .oui-drawer__footer {
3543
+ padding-bottom: calc(var(--oui-space-6) + env(safe-area-inset-bottom, 0px));
3544
+ }
3357
3545
  @media (max-width: 640px) {
3358
3546
  .oui-drawer {
3359
3547
  --_padding: var(--oui-space-8);
3360
- border-radius: 0 !important;
3548
+ }
3549
+ .oui-drawer:not([data-side=bottom]) {
3550
+ border-radius: 0;
3361
3551
  }
3362
3552
  }
3363
3553
  .oui-drawer__header {
@@ -4156,7 +4346,17 @@
4156
4346
  gap: var(--oui-space-4);
4157
4347
  max-width: calc(100% - 2 * var(--oui-space-6));
4158
4348
  max-height: calc(100% - 2 * var(--oui-space-6));
4159
- overflow: auto;
4349
+ min-height: 0;
4350
+ pointer-events: none;
4351
+ }
4352
+ .oui-map__overlay > * {
4353
+ flex-shrink: 0;
4354
+ max-width: 100%;
4355
+ pointer-events: auto;
4356
+ }
4357
+ .oui-map__overlay > .oui-map-legend {
4358
+ flex-shrink: 1;
4359
+ min-height: 0;
4160
4360
  }
4161
4361
  .oui-map__overlay[data-position^=top] {
4162
4362
  top: var(--oui-space-6);
@@ -4203,6 +4403,33 @@
4203
4403
  color: var(--oui-color-text);
4204
4404
  font-size: var(--oui-font-size-sm);
4205
4405
  }
4406
+ .oui-map-legend[data-size=sm] {
4407
+ --oui-map-legend-max-height: 10rem;
4408
+ gap: 0;
4409
+ min-width: 8rem;
4410
+ padding: var(--oui-space-2);
4411
+ font-size: var(--oui-font-size-xs);
4412
+ }
4413
+ .oui-map-legend[data-size=sm] .oui-map-legend__list {
4414
+ gap: 0;
4415
+ }
4416
+ .oui-map-legend[data-size=sm] .oui-map-legend__entry {
4417
+ gap: var(--oui-space-3);
4418
+ padding: 0.15rem var(--oui-space-2);
4419
+ }
4420
+ .oui-map-legend[data-size=sm] .oui-map-legend__swatch {
4421
+ width: 0.5rem;
4422
+ height: 0.5rem;
4423
+ border-radius: 2px;
4424
+ }
4425
+ .oui-map-legend[data-size=sm] .oui-map-legend__count {
4426
+ font-size: var(--oui-font-size-2xs);
4427
+ }
4428
+ .oui-map-legend[data-size=sm] .oui-map-legend__visibility {
4429
+ width: 1.35rem;
4430
+ height: 1.35rem;
4431
+ font-size: 0.8rem;
4432
+ }
4206
4433
  .oui-map-legend__toggle-all {
4207
4434
  box-sizing: border-box;
4208
4435
  margin: 0;
@@ -4232,9 +4459,15 @@
4232
4459
  display: flex;
4233
4460
  flex-direction: column;
4234
4461
  gap: var(--oui-space-1);
4462
+ min-height: 0;
4463
+ max-height: var(--oui-map-legend-max-height, none);
4235
4464
  margin: 0;
4236
4465
  padding: 0;
4466
+ overflow-y: auto;
4467
+ overscroll-behavior: contain;
4237
4468
  list-style: none;
4469
+ scrollbar-width: thin;
4470
+ scrollbar-color: var(--oui-color-border-hover) transparent;
4238
4471
  }
4239
4472
  .oui-map-legend__item {
4240
4473
  display: flex;
@@ -4330,6 +4563,10 @@
4330
4563
  color: var(--oui-color-text);
4331
4564
  }
4332
4565
  }
4566
+ .oui-map .oui-map__layer-switch {
4567
+ --_border: var(--oui-color-border);
4568
+ box-shadow: var(--oui-shadow-raised);
4569
+ }
4333
4570
  }
4334
4571
  @layer oui.components {
4335
4572
  .oui-menu__positioner {
@@ -5468,6 +5705,23 @@
5468
5705
  display: grid;
5469
5706
  gap: 0.6rem;
5470
5707
  }
5708
+ @media (max-width: 640px) {
5709
+ .oui-stat {
5710
+ gap: 0.35rem;
5711
+ }
5712
+ .oui-stat__label {
5713
+ font-size: var(--oui-font-size-xs);
5714
+ }
5715
+ .oui-stat__icon {
5716
+ display: none;
5717
+ }
5718
+ .oui-stat__value {
5719
+ font-size: var(--oui-stat-value-size, 1.35rem);
5720
+ }
5721
+ .oui-stat__footer {
5722
+ font-size: var(--oui-font-size-xs);
5723
+ }
5724
+ }
5471
5725
  }
5472
5726
  @layer oui.components {
5473
5727
  .oui-stepper {
@@ -5600,15 +5854,76 @@
5600
5854
  font-size: var(--oui-font-size-xs);
5601
5855
  line-height: 1.4;
5602
5856
  }
5857
+ .oui-stepper__count {
5858
+ display: none;
5859
+ }
5603
5860
  @media (max-width: 640px) {
5604
- .oui-stepper[data-orientation=horizontal] .oui-stepper__step:not([data-status=current]) .oui-stepper__text {
5861
+ .oui-stepper[data-orientation=horizontal] {
5862
+ position: relative;
5863
+ gap: 0.25rem;
5864
+ padding-top: calc(1.3em + 0.5rem);
5865
+ }
5866
+ .oui-stepper[data-orientation=horizontal] > .oui-stepper__step {
5867
+ flex: 1;
5868
+ position: static;
5869
+ gap: 0;
5870
+ }
5871
+ .oui-stepper[data-orientation=horizontal] > .oui-stepper__step::after {
5872
+ display: none;
5873
+ }
5874
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__marker {
5875
+ width: 100%;
5876
+ height: 4px;
5877
+ border: 0;
5878
+ border-radius: 2px;
5879
+ background: var(--_line);
5880
+ box-shadow: none;
5881
+ font-size: 0;
5882
+ }
5883
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__marker svg {
5884
+ display: none;
5885
+ }
5886
+ .oui-stepper[data-orientation=horizontal] [data-status=complete] > .oui-stepper__marker,
5887
+ .oui-stepper[data-orientation=horizontal] [data-status=current] > .oui-stepper__marker {
5888
+ background: var(--oui-color-accent);
5889
+ }
5890
+ .oui-stepper[data-orientation=horizontal] [data-status=error] > .oui-stepper__marker {
5891
+ background: var(--oui-color-danger);
5892
+ }
5893
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__text {
5605
5894
  position: absolute;
5895
+ top: 0;
5896
+ right: 0;
5897
+ left: 0;
5898
+ display: flex;
5899
+ align-items: baseline;
5900
+ gap: 0.4rem;
5901
+ min-width: 0;
5902
+ }
5903
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__step:not([data-status=current]) .oui-stepper__text {
5606
5904
  width: 1px;
5607
5905
  height: 1px;
5608
5906
  overflow: hidden;
5609
5907
  clip-path: inset(50%);
5610
5908
  white-space: nowrap;
5611
5909
  }
5910
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__count {
5911
+ display: inline;
5912
+ flex-shrink: 0;
5913
+ color: var(--oui-color-text-muted);
5914
+ font-weight: var(--oui-font-weight-semibold);
5915
+ font-variant-numeric: tabular-nums;
5916
+ }
5917
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__count::after {
5918
+ content: " ·";
5919
+ }
5920
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__label {
5921
+ overflow: hidden;
5922
+ text-overflow: ellipsis;
5923
+ }
5924
+ .oui-stepper[data-orientation=horizontal] .oui-stepper__description {
5925
+ display: none;
5926
+ }
5612
5927
  }
5613
5928
  }
5614
5929
  @layer oui.components {
@@ -5617,6 +5932,16 @@
5617
5932
  min-width: 0;
5618
5933
  overflow-x: auto;
5619
5934
  overscroll-behavior-x: contain;
5935
+ --_fade: 2rem;
5936
+ }
5937
+ .oui-table-wrap[data-fade-start] {
5938
+ mask-image: linear-gradient(to right, transparent, #000 var(--_fade));
5939
+ }
5940
+ .oui-table-wrap[data-fade-end] {
5941
+ mask-image: linear-gradient(to left, transparent, #000 var(--_fade));
5942
+ }
5943
+ .oui-table-wrap[data-fade-start][data-fade-end] {
5944
+ mask-image: linear-gradient(to right, transparent, #000 var(--_fade), #000 calc(100% - var(--_fade)), transparent);
5620
5945
  }
5621
5946
  .oui-table {
5622
5947
  box-sizing: border-box;
@@ -5739,6 +6064,16 @@
5739
6064
  .oui-table__sort:hover svg, .oui-table__sort[data-active] svg {
5740
6065
  opacity: 1;
5741
6066
  }
6067
+ @media (pointer: coarse) {
6068
+ .oui-table__sort {
6069
+ position: relative;
6070
+ }
6071
+ .oui-table__sort::before {
6072
+ content: "";
6073
+ position: absolute;
6074
+ inset: -0.75rem -0.5rem;
6075
+ }
6076
+ }
5742
6077
  }
5743
6078
  @layer oui.components {
5744
6079
  .oui-tabs {
@@ -5761,8 +6096,23 @@
5761
6096
  display: flex;
5762
6097
  align-items: center;
5763
6098
  gap: 0.25rem;
6099
+ max-width: 100%;
5764
6100
  overflow-x: auto;
6101
+ overscroll-behavior-x: contain;
5765
6102
  scrollbar-width: none;
6103
+ --_fade: 1.5rem;
6104
+ }
6105
+ .oui-tabs__list[data-fade-start] {
6106
+ mask-image: linear-gradient(to right, transparent, #000 var(--_fade));
6107
+ }
6108
+ .oui-tabs__list[data-fade-end] {
6109
+ mask-image: linear-gradient(to left, transparent, #000 var(--_fade));
6110
+ }
6111
+ .oui-tabs__list[data-fade-start][data-fade-end] {
6112
+ mask-image: linear-gradient(to right, transparent, #000 var(--_fade), #000 calc(100% - var(--_fade)), transparent);
6113
+ }
6114
+ .oui-tabs__list::-webkit-scrollbar {
6115
+ display: none;
5766
6116
  }
5767
6117
  .oui-tabs__list[data-orientation=vertical] {
5768
6118
  flex-direction: column;
@@ -5817,6 +6167,11 @@
5817
6167
  padding: 0 0.7rem;
5818
6168
  font-size: var(--oui-font-size-sm);
5819
6169
  }
6170
+ @media (pointer: coarse) {
6171
+ [data-size=sm] > .oui-tabs__tab {
6172
+ height: 2.5rem;
6173
+ }
6174
+ }
5820
6175
  .oui-tabs__indicator {
5821
6176
  position: absolute;
5822
6177
  z-index: -1;
@@ -6330,6 +6685,10 @@
6330
6685
  display: inline-flex;
6331
6686
  align-items: center;
6332
6687
  gap: 0.4rem;
6688
+ max-width: 100%;
6689
+ }
6690
+ .oui-toggle-group[data-variant=outline] {
6691
+ flex-wrap: wrap;
6333
6692
  }
6334
6693
  .oui-toggle-group[data-full-width] {
6335
6694
  display: flex;
@@ -0,0 +1,4 @@
1
+ /** The library's one layout breakpoint: phones get their own layout at and below 640px. */
2
+ export declare const NARROW_SCREEN = "(max-width: 640px)";
3
+ /** Whether a media query matches, following changes. `false` during server rendering. */
4
+ export declare function useMediaQuery(query: string): boolean;
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { c } from "react/compiler-runtime";
3
+ import * as React from "react";
4
+ //#region src/utils/media.ts
5
+ /** The library's one layout breakpoint: phones get their own layout at and below 640px. */
6
+ var NARROW_SCREEN = "(max-width: 640px)";
7
+ /** Whether a media query matches, following changes. `false` during server rendering. */
8
+ function useMediaQuery(query) {
9
+ const $ = c(3);
10
+ let t0;
11
+ let t1;
12
+ if ($[0] !== query) {
13
+ t0 = (notify) => {
14
+ const list = window.matchMedia(query);
15
+ list.addEventListener("change", notify);
16
+ return () => list.removeEventListener("change", notify);
17
+ };
18
+ t1 = () => window.matchMedia(query).matches;
19
+ $[0] = query;
20
+ $[1] = t0;
21
+ $[2] = t1;
22
+ } else {
23
+ t0 = $[1];
24
+ t1 = $[2];
25
+ }
26
+ return React.useSyncExternalStore(t0, t1, _temp);
27
+ }
28
+ function _temp() {
29
+ return false;
30
+ }
31
+ //#endregion
32
+ export { NARROW_SCREEN, useMediaQuery };
33
+
34
+ //# sourceMappingURL=media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media.js","names":["React","NARROW_SCREEN","useMediaQuery","query","$","_c","t0","t1","notify","list","window","matchMedia","addEventListener","removeEventListener","matches","useSyncExternalStore","_temp","_c"],"sources":["../../src/utils/media.ts"],"sourcesContent":["import * as React from 'react';\n\n/** The library's one layout breakpoint: phones get their own layout at and below 640px. */\nexport const NARROW_SCREEN = '(max-width: 640px)';\n\n/** Whether a media query matches, following changes. `false` during server rendering. */\nexport function useMediaQuery(query: string) {\n return React.useSyncExternalStore(\n (notify) => {\n const list = window.matchMedia(query);\n list.addEventListener('change', notify);\n return () => list.removeEventListener('change', notify);\n },\n () => window.matchMedia(query).matches,\n () => false,\n );\n}\n"],"mappings":";;;;;AAGA,IAAaC,gBAAgB;;AAG7B,SAAOC,cAAAC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAD,OAAA;EAEHG,MAAAE,WAAA;GACE,MAAAC,OAAaC,OAAMC,WAAYR,KAAK;GACpCM,KAAIG,iBAAkB,UAAUJ,MAAM;GAAC,aAC1BC,KAAII,oBAAqB,UAAUL,MAAM;EAAC;EAEzDD,WAAMG,OAAMC,WAAYR,KAAK,CAAC,CAAAW;EAAQV,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAD,KAAAF,EAAA;EAAAG,KAAAH,EAAA;CAAA;CAAA,OANjCJ,MAAKe,qBACVT,IAKAC,IACAS,KACF;AAAC;AATI,SAAAA,QAAA;CAAA,OAQG;AAAK"}