@aortl/admin-css 0.18.2 → 0.18.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.18.4] - 2026-06-29
8
+
9
+ ### Added
10
+
11
+ - `Tabs` `primary` prop (`.tabs-primary`) fills the active segment of a boxed segmented control with the primary color. (both)
12
+ - `.btn-group` members can be wrapped in `.indicator` to float a badge or status dot at a button's corner; the seam, rounding, and full-width/vertical sizing logic now drills through the wrapper. (css)
13
+
14
+ ## [0.18.3] - 2026-06-29
15
+
16
+ ### Added
17
+
18
+ - `Tabs.Tab` `icon` prop (leading glyph via `renderIcon`); tab SVG icons are pinned to the label size (`.tabs .tab > svg`), so non-Tabler sets (e.g. Heroicons) render uniformly. (both)
19
+ - `Tabs` `wrap` prop (`.tabs-wrap`) lets the list wrap onto new rows instead of overflowing, keeping each tab's label on one line. (both)
20
+
7
21
  ## [0.18.2] - 2026-06-29
8
22
 
9
23
  ### Added
@@ -91,12 +105,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
91
105
  - Make `primary` a high-contrast neutral and move blue to `info`. (both)
92
106
  - Use solid color fills for `Alert` and `Badge` status variants. (both)
93
107
 
94
- [Unreleased]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.2...HEAD
108
+ [Unreleased]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.4...HEAD
95
109
  [0.16.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.16.0...v0.16.1
96
110
  [0.16.0]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.15.1...v0.16.0
97
111
  [0.15.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.15.0...v0.15.1
98
112
  [0.15.0]: https://github.com/Digital-Udvikling/admin-design-system/releases/tag/v0.15.0
99
113
 
114
+ [0.18.4]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.3...v0.18.4
115
+ [0.18.3]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.2...v0.18.3
100
116
  [0.18.2]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.1...v0.18.2
101
117
  [0.18.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.0...v0.18.1
102
118
  [0.18.0]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.17.0...v0.18.0
package/dist/admin.css CHANGED
@@ -1836,7 +1836,7 @@
1836
1836
  .btn-group {
1837
1837
  display: inline-flex;
1838
1838
  }
1839
- .btn-group > .btn {
1839
+ .btn-group > .btn, .btn-group > .indicator > .btn {
1840
1840
  position: relative;
1841
1841
  border-radius: 0;
1842
1842
  &:focus-visible {
@@ -1853,18 +1853,18 @@
1853
1853
  .btn-group > .menu > .menu-trigger {
1854
1854
  border-radius: 0;
1855
1855
  }
1856
- .btn-group:not(.btn-group-vertical) > .btn:not(:first-child), .btn-group:not(.btn-group-vertical) > .menu:not(:first-child) {
1856
+ .btn-group:not(.btn-group-vertical) > .btn:not(:first-child), .btn-group:not(.btn-group-vertical) > .menu:not(:first-child), .btn-group:not(.btn-group-vertical) > .indicator:not(:first-child) {
1857
1857
  margin-left: -1px;
1858
1858
  }
1859
- .btn-group:not(.btn-group-vertical) > .btn:first-child, .btn-group:not(.btn-group-vertical) > .menu:first-child > .menu-trigger {
1859
+ .btn-group:not(.btn-group-vertical) > .btn:first-child, .btn-group:not(.btn-group-vertical) > .menu:first-child > .menu-trigger, .btn-group:not(.btn-group-vertical) > .indicator:first-child > .btn {
1860
1860
  border-top-left-radius: var(--radius-lg);
1861
1861
  border-bottom-left-radius: var(--radius-lg);
1862
1862
  }
1863
- .btn-group:not(.btn-group-vertical) > .btn:last-child, .btn-group:not(.btn-group-vertical) > .menu:last-child > .menu-trigger {
1863
+ .btn-group:not(.btn-group-vertical) > .btn:last-child, .btn-group:not(.btn-group-vertical) > .menu:last-child > .menu-trigger, .btn-group:not(.btn-group-vertical) > .indicator:last-child > .btn {
1864
1864
  border-top-right-radius: var(--radius-lg);
1865
1865
  border-bottom-right-radius: var(--radius-lg);
1866
1866
  }
1867
- .btn-group:not(.btn-group-vertical) > .btn:not(:first-child), .btn-group:not(.btn-group-vertical) > .menu:not(:first-child) > .menu-trigger {
1867
+ .btn-group:not(.btn-group-vertical) > .btn:not(:first-child), .btn-group:not(.btn-group-vertical) > .menu:not(:first-child) > .menu-trigger, .btn-group:not(.btn-group-vertical) > .indicator:not(:first-child) > .btn {
1868
1868
  border-left-color: currentColor;
1869
1869
  @supports (color: color-mix(in lab, red, red)) {
1870
1870
  border-left-color: color-mix(in oklab, currentColor 25%, transparent);
@@ -1874,21 +1874,27 @@
1874
1874
  display: inline-flex;
1875
1875
  flex-direction: column;
1876
1876
  }
1877
- .btn-group-vertical > .btn {
1877
+ .btn-group-vertical > .btn, .btn-group-vertical > .indicator > .btn {
1878
1878
  justify-content: flex-start;
1879
1879
  }
1880
- .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .menu:not(:first-child) {
1880
+ .btn-group-vertical > .indicator {
1881
+ width: auto;
1882
+ }
1883
+ .btn-group-vertical > .indicator > .btn {
1884
+ width: 100%;
1885
+ }
1886
+ .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .menu:not(:first-child), .btn-group-vertical > .indicator:not(:first-child) {
1881
1887
  margin-top: -1px;
1882
1888
  }
1883
- .btn-group-vertical > .btn:first-child, .btn-group-vertical > .menu:first-child > .menu-trigger {
1889
+ .btn-group-vertical > .btn:first-child, .btn-group-vertical > .menu:first-child > .menu-trigger, .btn-group-vertical > .indicator:first-child > .btn {
1884
1890
  border-top-left-radius: var(--radius-lg);
1885
1891
  border-top-right-radius: var(--radius-lg);
1886
1892
  }
1887
- .btn-group-vertical > .btn:last-child, .btn-group-vertical > .menu:last-child > .menu-trigger {
1893
+ .btn-group-vertical > .btn:last-child, .btn-group-vertical > .menu:last-child > .menu-trigger, .btn-group-vertical > .indicator:last-child > .btn {
1888
1894
  border-bottom-right-radius: var(--radius-lg);
1889
1895
  border-bottom-left-radius: var(--radius-lg);
1890
1896
  }
1891
- .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .menu:not(:first-child) > .menu-trigger {
1897
+ .btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .menu:not(:first-child) > .menu-trigger, .btn-group-vertical > .indicator:not(:first-child) > .btn {
1892
1898
  border-top-color: currentColor;
1893
1899
  @supports (color: color-mix(in lab, red, red)) {
1894
1900
  border-top-color: color-mix(in oklab, currentColor 25%, transparent);
@@ -1898,9 +1904,12 @@
1898
1904
  display: flex;
1899
1905
  width: 100%;
1900
1906
  }
1901
- .btn-group-full-width:not(.btn-group-vertical) > .btn, .btn-group-full-width:not(.btn-group-vertical) > .menu {
1907
+ .btn-group-full-width:not(.btn-group-vertical) > .btn, .btn-group-full-width:not(.btn-group-vertical) > .menu, .btn-group-full-width:not(.btn-group-vertical) > .indicator {
1902
1908
  flex: 1;
1903
1909
  }
1910
+ .btn-group-full-width:not(.btn-group-vertical) > .indicator > .btn {
1911
+ width: 100%;
1912
+ }
1904
1913
  .btn-group-full-width.btn-group-vertical {
1905
1914
  width: 100%;
1906
1915
  }
@@ -4681,6 +4690,10 @@
4681
4690
  .tabs .tab > :is(i, svg) {
4682
4691
  flex-shrink: 0;
4683
4692
  }
4693
+ .tabs .tab > svg {
4694
+ width: 1em;
4695
+ height: 1em;
4696
+ }
4684
4697
  .tabs .tab-input {
4685
4698
  position: absolute;
4686
4699
  width: 1px;
@@ -4736,6 +4749,12 @@
4736
4749
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4737
4750
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4738
4751
  }
4752
+ .tabs-boxed.tabs-primary .tab[data-selected], .tabs-boxed.tabs-primary .tab[aria-selected="true"], .tabs-boxed.tabs-primary .tab-input:checked + .tab {
4753
+ background-color: var(--color-primary);
4754
+ color: var(--color-primary-content);
4755
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4756
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4757
+ }
4739
4758
  @supports (anchor-scope: --x) {
4740
4759
  .tabs .tab-list {
4741
4760
  anchor-scope: --tab-thumb;
@@ -4785,6 +4804,17 @@
4785
4804
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4786
4805
  transition: top 180ms ease, right 180ms ease, bottom 180ms ease, left 180ms ease;
4787
4806
  }
4807
+ .tabs-boxed.tabs-primary .tab[data-selected], .tabs-boxed.tabs-primary .tab[aria-selected="true"], .tabs-boxed.tabs-primary .tab-input:checked + .tab {
4808
+ background-color: transparent;
4809
+ color: var(--color-primary-content);
4810
+ --tw-shadow: 0 0 #0000;
4811
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4812
+ }
4813
+ .tabs-boxed.tabs-primary .tab-list::before {
4814
+ background-color: var(--color-primary);
4815
+ --tw-shadow: 0 0 #0000;
4816
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4817
+ }
4788
4818
  }
4789
4819
  .tabs-full-width:not([data-orientation="vertical"]) .tab-list {
4790
4820
  display: flex;
@@ -4794,6 +4824,12 @@
4794
4824
  flex: 1;
4795
4825
  justify-content: center;
4796
4826
  }
4827
+ .tabs-wrap .tab-list {
4828
+ flex-wrap: wrap;
4829
+ }
4830
+ .tabs-wrap .tab {
4831
+ white-space: nowrap;
4832
+ }
4797
4833
  .tabs-sm .tab {
4798
4834
  height: calc(var(--spacing) * 7);
4799
4835
  padding-inline: calc(var(--spacing) * 2);