@aortl/admin-react 0.18.3 → 0.18.5

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,19 @@ 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.5] - 2026-06-30
8
+
9
+ ### Fixed
10
+
11
+ - Global hotkey handling no longer throws on synthetic `keydown` events that omit `key` (autofill, password managers, some IMEs); `normalizeEvent` now treats a `key`-less event as no chord. (react)
12
+
13
+ ## [0.18.4] - 2026-06-29
14
+
15
+ ### Added
16
+
17
+ - `Tabs` `primary` prop (`.tabs-primary`) fills the active segment of a boxed segmented control with the primary color. (both)
18
+ - `.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)
19
+
7
20
  ## [0.18.3] - 2026-06-29
8
21
 
9
22
  ### Added
@@ -98,12 +111,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
98
111
  - Make `primary` a high-contrast neutral and move blue to `info`. (both)
99
112
  - Use solid color fills for `Alert` and `Badge` status variants. (both)
100
113
 
101
- [Unreleased]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.3...HEAD
114
+ [Unreleased]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.5...HEAD
102
115
  [0.16.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.16.0...v0.16.1
103
116
  [0.16.0]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.15.1...v0.16.0
104
117
  [0.15.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.15.0...v0.15.1
105
118
  [0.15.0]: https://github.com/Digital-Udvikling/admin-design-system/releases/tag/v0.15.0
106
119
 
120
+ [0.18.5]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.4...v0.18.5
121
+ [0.18.4]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.3...v0.18.4
107
122
  [0.18.3]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.2...v0.18.3
108
123
  [0.18.2]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.1...v0.18.2
109
124
  [0.18.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.0...v0.18.1
package/dist/Tabs.d.ts CHANGED
@@ -9,8 +9,10 @@ export interface TabsProps extends ComponentProps<typeof BaseTabs.Root> {
9
9
  fullWidth?: boolean;
10
10
  /** Let the list wrap to multiple rows instead of overflowing; each tab stays on one line. */
11
11
  wrap?: boolean;
12
+ /** Fill the active segment with the primary color. Only affects `variant="boxed"`. */
13
+ primary?: boolean;
12
14
  }
13
- declare function TabsRoot({ variant, size, fullWidth, wrap, className, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function TabsRoot({ variant, size, fullWidth, wrap, primary, className, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
14
16
  export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
15
17
  declare function TabsList({ className, ...rest }: TabsListProps): import("react/jsx-runtime").JSX.Element;
16
18
  export interface TabsTabProps extends ComponentProps<typeof BaseTabs.Tab> {
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../src/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,QAAQ,CAAC,I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 :scope._ao-btn-group > ._ao-btn, :scope ._ao-btn-group > ._ao-btn, :scope._ao-btn-group > ._ao-indicator > ._ao-btn, :scope ._ao-btn-group > ._ao-indicator > ._ao-btn {
1938
1938
  position: relative;
1939
1939
  border-radius: 0;
1940
1940
  }
1941
- :scope:is(._ao-btn-group > ._ao-btn):focus-visible, :scope :is(._ao-btn-group > ._ao-btn):focus-visible {
1941
+ :scope:is(._ao-btn-group > ._ao-btn,._ao-btn-group > ._ao-indicator > ._ao-btn):focus-visible, :scope :is(._ao-btn-group > ._ao-btn,._ao-btn-group > ._ao-indicator > ._ao-btn):focus-visible {
1942
1942
  z-index: 10;
1943
1943
  }
1944
1944
  :scope._ao-btn-group > ._ao-menu, :scope ._ao-btn-group > ._ao-menu {
@@ -1953,22 +1953,22 @@
1953
1953
  :scope._ao-btn-group > ._ao-menu > ._ao-menu-trigger, :scope ._ao-btn-group > ._ao-menu > ._ao-menu-trigger {
1954
1954
  border-radius: 0;
1955
1955
  }
1956
- :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) {
1956
+ :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:not(:first-child) {
1957
1957
  margin-left: -1px;
1958
1958
  }
1959
- :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:first-child, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:first-child, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:first-child > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:first-child > ._ao-menu-trigger {
1959
+ :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:first-child, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:first-child, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:first-child > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:first-child > ._ao-menu-trigger, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:first-child > ._ao-btn, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:first-child > ._ao-btn {
1960
1960
  border-top-left-radius: var(--radius-lg);
1961
1961
  border-bottom-left-radius: var(--radius-lg);
1962
1962
  }
1963
- :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:last-child, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:last-child, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:last-child > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:last-child > ._ao-menu-trigger {
1963
+ :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:last-child, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:last-child, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:last-child > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:last-child > ._ao-menu-trigger, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:last-child > ._ao-btn, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:last-child > ._ao-btn {
1964
1964
  border-top-right-radius: var(--radius-lg);
1965
1965
  border-bottom-right-radius: var(--radius-lg);
1966
1966
  }
1967
- :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger {
1967
+ :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:not(:first-child) > ._ao-btn, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:not(:first-child) > ._ao-btn {
1968
1968
  border-left-color: currentColor;
1969
1969
  }
1970
1970
  @supports (color: color-mix(in lab, red, red)) {
1971
- :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger {
1971
+ :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-btn:not(:first-child), :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:not(:first-child) > ._ao-btn, :scope ._ao-btn-group:not(._ao-btn-group-vertical) > ._ao-indicator:not(:first-child) > ._ao-btn {
1972
1972
  border-left-color: color-mix(in oklab, currentColor 25%, transparent);
1973
1973
  }
1974
1974
  }
@@ -1976,25 +1976,31 @@
1976
1976
  display: inline-flex;
1977
1977
  flex-direction: column;
1978
1978
  }
1979
- :scope._ao-btn-group-vertical > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-btn {
1979
+ :scope._ao-btn-group-vertical > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-btn, :scope._ao-btn-group-vertical > ._ao-indicator > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-indicator > ._ao-btn {
1980
1980
  justify-content: flex-start;
1981
1981
  }
1982
- :scope._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope._ao-btn-group-vertical > ._ao-menu:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-menu:not(:first-child) {
1982
+ :scope._ao-btn-group-vertical > ._ao-indicator, :scope ._ao-btn-group-vertical > ._ao-indicator {
1983
+ width: auto;
1984
+ }
1985
+ :scope._ao-btn-group-vertical > ._ao-indicator > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-indicator > ._ao-btn {
1986
+ width: 100%;
1987
+ }
1988
+ :scope._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope._ao-btn-group-vertical > ._ao-menu:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-menu:not(:first-child), :scope._ao-btn-group-vertical > ._ao-indicator:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-indicator:not(:first-child) {
1983
1989
  margin-top: -1px;
1984
1990
  }
1985
- :scope._ao-btn-group-vertical > ._ao-btn:first-child, :scope ._ao-btn-group-vertical > ._ao-btn:first-child, :scope._ao-btn-group-vertical > ._ao-menu:first-child > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:first-child > ._ao-menu-trigger {
1991
+ :scope._ao-btn-group-vertical > ._ao-btn:first-child, :scope ._ao-btn-group-vertical > ._ao-btn:first-child, :scope._ao-btn-group-vertical > ._ao-menu:first-child > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:first-child > ._ao-menu-trigger, :scope._ao-btn-group-vertical > ._ao-indicator:first-child > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-indicator:first-child > ._ao-btn {
1986
1992
  border-top-left-radius: var(--radius-lg);
1987
1993
  border-top-right-radius: var(--radius-lg);
1988
1994
  }
1989
- :scope._ao-btn-group-vertical > ._ao-btn:last-child, :scope ._ao-btn-group-vertical > ._ao-btn:last-child, :scope._ao-btn-group-vertical > ._ao-menu:last-child > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:last-child > ._ao-menu-trigger {
1995
+ :scope._ao-btn-group-vertical > ._ao-btn:last-child, :scope ._ao-btn-group-vertical > ._ao-btn:last-child, :scope._ao-btn-group-vertical > ._ao-menu:last-child > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:last-child > ._ao-menu-trigger, :scope._ao-btn-group-vertical > ._ao-indicator:last-child > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-indicator:last-child > ._ao-btn {
1990
1996
  border-bottom-right-radius: var(--radius-lg);
1991
1997
  border-bottom-left-radius: var(--radius-lg);
1992
1998
  }
1993
- :scope._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger {
1999
+ :scope._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope._ao-btn-group-vertical > ._ao-indicator:not(:first-child) > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-indicator:not(:first-child) > ._ao-btn {
1994
2000
  border-top-color: currentColor;
1995
2001
  }
1996
2002
  @supports (color: color-mix(in lab, red, red)) {
1997
- :scope._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger {
2003
+ :scope._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope ._ao-btn-group-vertical > ._ao-btn:not(:first-child), :scope._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope ._ao-btn-group-vertical > ._ao-menu:not(:first-child) > ._ao-menu-trigger, :scope._ao-btn-group-vertical > ._ao-indicator:not(:first-child) > ._ao-btn, :scope ._ao-btn-group-vertical > ._ao-indicator:not(:first-child) > ._ao-btn {
1998
2004
  border-top-color: color-mix(in oklab, currentColor 25%, transparent);
1999
2005
  }
2000
2006
  }
@@ -2002,9 +2008,12 @@
2002
2008
  display: flex;
2003
2009
  width: 100%;
2004
2010
  }
2005
- :scope._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-btn, :scope ._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-btn, :scope._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-menu, :scope ._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-menu {
2011
+ :scope._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-btn, :scope ._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-btn, :scope._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-menu, :scope ._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-menu, :scope._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-indicator, :scope ._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-indicator {
2006
2012
  flex: 1;
2007
2013
  }
2014
+ :scope._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-indicator > ._ao-btn, :scope ._ao-btn-group-full-width:not(._ao-btn-group-vertical) > ._ao-indicator > ._ao-btn {
2015
+ width: 100%;
2016
+ }
2008
2017
  :scope._ao-btn-group-full-width._ao-btn-group-vertical, :scope ._ao-btn-group-full-width._ao-btn-group-vertical {
2009
2018
  width: 100%;
2010
2019
  }
@@ -4810,6 +4819,12 @@
4810
4819
  --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));
4811
4820
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4812
4821
  }
4822
+ :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab[data-selected], :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab[data-selected], :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab[aria-selected="true"], :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab[aria-selected="true"], :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab-input:checked + ._ao-tab, :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab-input:checked + ._ao-tab {
4823
+ background-color: var(--color-primary);
4824
+ color: var(--color-primary-content);
4825
+ --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));
4826
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4827
+ }
4813
4828
  @supports (anchor-scope: --x) {
4814
4829
  :scope._ao-tabs ._ao-tab-list, :scope ._ao-tabs ._ao-tab-list {
4815
4830
  anchor-scope: --tab-thumb;
@@ -4859,6 +4874,17 @@
4859
4874
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4860
4875
  transition: top 180ms ease, right 180ms ease, bottom 180ms ease, left 180ms ease;
4861
4876
  }
4877
+ :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab[data-selected], :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab[data-selected], :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab[aria-selected="true"], :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab[aria-selected="true"], :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab-input:checked + ._ao-tab, :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab-input:checked + ._ao-tab {
4878
+ background-color: transparent;
4879
+ color: var(--color-primary-content);
4880
+ --tw-shadow: 0 0 #0000;
4881
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4882
+ }
4883
+ :scope._ao-tabs-boxed._ao-tabs-primary ._ao-tab-list::before, :scope ._ao-tabs-boxed._ao-tabs-primary ._ao-tab-list::before {
4884
+ background-color: var(--color-primary);
4885
+ --tw-shadow: 0 0 #0000;
4886
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4887
+ }
4862
4888
  }
4863
4889
  :scope._ao-tabs-full-width:not([data-orientation="vertical"]) ._ao-tab-list, :scope ._ao-tabs-full-width:not([data-orientation="vertical"]) ._ao-tab-list {
4864
4890
  display: flex;
@@ -14,7 +14,7 @@ export declare function parseChord(input: string): ParsedChord;
14
14
  export declare function parseKeys(keys: string | readonly string[]): ParsedChord[];
15
15
  /** Canonical wire form used as a map key in the registry. */
16
16
  export declare function canonicalize(chord: ParsedChord): string;
17
- /** Canonical chord string for a keyboard event; `null` for a bare modifier press. */
17
+ /** Canonical chord string for a keyboard event; `null` for a bare modifier press or a `key`-less synthetic event. */
18
18
  export declare function normalizeEvent(e: KeyboardEvent): string | null;
19
19
  /** Visual chips for a chord — one entry per modifier and the final key. */
20
20
  export declare function formatChord(chord: ParsedChord): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"hotkey-parse.d.ts","sourceRoot":"","sources":["../src/hotkey-parse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AAkCD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA2BrD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,EAAE,CAGzE;AAED,6DAA6D;AAC7D,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAOvD;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAa9D;AA0BD,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,EAAE,CAcxD;AAkBD,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAEzE"}
1
+ {"version":3,"file":"hotkey-parse.d.ts","sourceRoot":"","sources":["../src/hotkey-parse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AAkCD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA2BrD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,EAAE,CAGzE;AAED,6DAA6D;AAC7D,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAOvD;AAED,qHAAqH;AACrH,wBAAgB,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAe9D;AA0BD,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,EAAE,CAcxD;AAkBD,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAEzE"}
package/dist/index.cjs CHANGED
@@ -390,8 +390,9 @@ function canonicalize(chord) {
390
390
  parts.push(chord.key);
391
391
  return parts.join("+");
392
392
  }
393
- /** Canonical chord string for a keyboard event; `null` for a bare modifier press. */
393
+ /** Canonical chord string for a keyboard event; `null` for a bare modifier press or a `key`-less synthetic event. */
394
394
  function normalizeEvent(e) {
395
+ if (!e.key) return null;
395
396
  const key = e.key.toLowerCase();
396
397
  if (key === "control" || key === "shift" || key === "alt" || key === "meta") return null;
397
398
  const mods = /* @__PURE__ */ new Set();
@@ -2352,14 +2353,15 @@ var Navbar = Object.assign(NavbarRoot, {
2352
2353
  });
2353
2354
  //#endregion
2354
2355
  //#region src/Tabs.tsx
2355
- function TabsRoot({ variant = "bordered", size = "md", fullWidth = false, wrap = false, className, ...rest }) {
2356
+ function TabsRoot({ variant = "bordered", size = "md", fullWidth = false, wrap = false, primary = false, className, ...rest }) {
2356
2357
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tabs.Tabs.Root, {
2357
2358
  className: cn([
2358
2359
  "tabs",
2359
2360
  variant !== "bordered" && `tabs-${variant}`,
2360
2361
  size !== "md" && `tabs-${size}`,
2361
2362
  fullWidth && "tabs-full-width",
2362
- wrap && "tabs-wrap"
2363
+ wrap && "tabs-wrap",
2364
+ primary && "tabs-primary"
2363
2365
  ], className),
2364
2366
  ...rest
2365
2367
  });