@nsaa/core 0.1.0-alpha.2 → 0.1.0-alpha.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 (72) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +27 -0
  3. package/README.md +30 -8
  4. package/dist/_virtual/_rolldown/runtime.js +13 -0
  5. package/dist/alert/alert.d.ts +30 -5
  6. package/dist/alert/alert.js +201 -15
  7. package/dist/alert/index.d.ts +2 -2
  8. package/dist/alert-dialog/alert-dialog.js +13 -7
  9. package/dist/badge/badge.d.ts +2 -2
  10. package/dist/badge/badge.js +1 -1
  11. package/dist/button/button.d.ts +2 -2
  12. package/dist/button/button.js +1 -1
  13. package/dist/dialog/dialog.js +13 -7
  14. package/dist/empty/empty.d.ts +1 -1
  15. package/dist/empty/empty.js +2 -2
  16. package/dist/index.d.ts +4 -3
  17. package/dist/index.js +3 -2
  18. package/dist/input-group/input-group.d.ts +1 -1
  19. package/dist/input-otp/input-otp.js +1 -1
  20. package/dist/lib/opener.js +29 -0
  21. package/dist/sound/lazy-uisfx.d.ts +20 -0
  22. package/dist/sound/lazy-uisfx.js +68 -0
  23. package/dist/sound/sound-map.d.ts +2 -0
  24. package/dist/sound/sound-map.js +5 -1
  25. package/dist/sound/uisfx.d.ts +5 -1
  26. package/dist/sources/accordion.css +3 -0
  27. package/dist/sources/alert-dialog.css +26 -0
  28. package/dist/sources/alert.css +28 -0
  29. package/dist/sources/avatar.css +3 -0
  30. package/dist/sources/badge.css +3 -0
  31. package/dist/sources/button.css +24 -0
  32. package/dist/sources/calendar.css +25 -0
  33. package/dist/sources/card.css +3 -0
  34. package/dist/sources/checkbox.css +6 -0
  35. package/dist/sources/collapsible.css +2 -0
  36. package/dist/sources/combobox.css +28 -0
  37. package/dist/sources/command.css +30 -0
  38. package/dist/sources/context-menu.css +6 -0
  39. package/dist/sources/dialog.css +26 -0
  40. package/dist/sources/drawer.css +6 -0
  41. package/dist/sources/dropdown-menu.css +6 -0
  42. package/dist/sources/empty.css +3 -0
  43. package/dist/sources/field.css +5 -0
  44. package/dist/sources/input-group.css +27 -0
  45. package/dist/sources/input-otp.css +8 -0
  46. package/dist/sources/input.css +3 -0
  47. package/dist/sources/kbd.css +3 -0
  48. package/dist/sources/label.css +3 -0
  49. package/dist/sources/loaders-text.css +8 -0
  50. package/dist/sources/loaders.css +40 -0
  51. package/dist/sources/native-select.css +3 -0
  52. package/dist/sources/pagination.css +25 -0
  53. package/dist/sources/popover.css +3 -0
  54. package/dist/sources/radio-group.css +6 -0
  55. package/dist/sources/select.css +6 -0
  56. package/dist/sources/separator.css +3 -0
  57. package/dist/sources/skeleton.css +3 -0
  58. package/dist/sources/slider.css +6 -0
  59. package/dist/sources/spinner.css +20 -0
  60. package/dist/sources/switch.css +6 -0
  61. package/dist/sources/table.css +3 -0
  62. package/dist/sources/tabs.css +3 -0
  63. package/dist/sources/textarea.css +3 -0
  64. package/dist/sources/toast.css +25 -0
  65. package/dist/sources/toggle-group.css +32 -0
  66. package/dist/sources/toolbar.css +34 -0
  67. package/dist/sources/tooltip.css +3 -0
  68. package/dist/toolbar/toolbar.js +1 -1
  69. package/package.json +10 -4
  70. package/src/feel.css +80 -1
  71. package/src/styles-base.css +142 -0
  72. package/src/styles.css +3 -133
package/LICENSE CHANGED
@@ -25,4 +25,4 @@ SOFTWARE.
25
25
  This licence covers the free packages in this repository. The Pro package
26
26
  (`packages/blocks`, when it exists) ships under its own commercial licence,
27
27
  stated in that folder. Third-party code adapted into Nsaa keeps its original
28
- notice in the file header; colour scales come from Radix Colors (MIT).
28
+ notice in the file header; colour scales come from Tailwind CSS (MIT).
package/NOTICE CHANGED
@@ -152,3 +152,30 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
152
152
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
153
153
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
154
154
  SOFTWARE.
155
+
156
+ -------------------------------------------------------------------------------
157
+ Tailwind CSS (https://github.com/tailwindlabs/tailwindcss), v4.3.3. Its default colour palette
158
+ (theme.css) is the source of the colour primitives in packages/tokens (src/primitives.json and
159
+ dist/), #149.
160
+
161
+ MIT License
162
+
163
+ Copyright (c) Tailwind Labs, Inc.
164
+
165
+ Permission is hereby granted, free of charge, to any person obtaining a copy
166
+ of this software and associated documentation files (the "Software"), to deal
167
+ in the Software without restriction, including without limitation the rights
168
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
169
+ copies of the Software, and to permit persons to whom the Software is
170
+ furnished to do so, subject to the following conditions:
171
+
172
+ The above copyright notice and this permission notice shall be included in all
173
+ copies or substantial portions of the Software.
174
+
175
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
176
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
177
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
178
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
179
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
180
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
181
+ SOFTWARE.
package/README.md CHANGED
@@ -17,7 +17,20 @@ import { Button, SoundProvider } from "@nsaa/core";
17
17
  ```
18
18
 
19
19
  Fonts are yours to load: the tokens name Geist (body), Newsreader (the editorial theme) and Geist
20
- Mono, and fall back to the system sans. For example, in your HTML `<head>`:
20
+ Mono, and fall back to the system sans. Self-host them with Fontsource (works under a strict CSP such
21
+ as `font-src 'self'`; the tokens list the Fontsource names first, so no `@font-face` is needed):
22
+
23
+ ```sh
24
+ pnpm add @fontsource-variable/geist @fontsource-variable/geist-mono @fontsource-variable/newsreader
25
+ ```
26
+
27
+ ```css
28
+ @import "@fontsource-variable/geist";
29
+ @import "@fontsource-variable/geist-mono";
30
+ @import "@fontsource-variable/newsreader"; /* editorial theme only */
31
+ ```
32
+
33
+ Or link Google Fonts in your HTML `<head>`:
21
34
 
22
35
  ```html
23
36
  <link rel="preconnect" href="https://fonts.googleapis.com" />
@@ -28,12 +41,21 @@ Mono, and fall back to the system sans. For example, in your HTML `<head>`:
28
41
  />
29
42
  ```
30
43
 
31
- | Entry | What |
32
- | ------------------------- | ----------------------------------------------------------------------------- |
33
- | `@nsaa/core` | components, `SoundProvider`, `LoaderProvider`, `Spinner` (featured 8 loaders) |
34
- | `@nsaa/core/loaders` | all 29 loading.dev loaders, `registerLoaders` |
35
- | `@nsaa/core/loaders/text` | text and AI loaders (ShimmerText, Typing, …) |
36
- | `@nsaa/core/sound-uisfx` | the UISFX sound engine for `SoundProvider` |
37
- | `@nsaa/core/styles.css` | tokens, the shadcn alias layer and the feel layer |
44
+ Sound: `lazyUisfxPlayer()` (recommended) loads the UISFX engine on the first interaction;
45
+ `createUisfxPlayer()` from `@nsaa/core/sound-uisfx` loads it up front.
46
+
47
+ ```tsx
48
+ const player = lazyUisfxPlayer();
49
+ <SoundProvider player={player}>…</SoundProvider>;
50
+ ```
51
+
52
+ | Entry | What |
53
+ | ---------------------------- | ------------------------------------------------------------------------------------ |
54
+ | `@nsaa/core` | components, `SoundProvider`, `lazyUisfxPlayer`, `LoaderProvider`, `Spinner` |
55
+ | `@nsaa/core/loaders` | all 29 loading.dev loaders, `registerLoaders` |
56
+ | `@nsaa/core/loaders/text` | text and AI loaders (ShimmerText, Typing, …) |
57
+ | `@nsaa/core/sound-uisfx` | the UISFX sound engine for `SoundProvider` |
58
+ | `@nsaa/core/styles.css` | tokens, the shadcn alias layer, the feel layer, every component's sources |
59
+ | `@nsaa/core/styles-base.css` | the same without Tailwind sources; add `@nsaa/core/sources/<name>.css` per component |
38
60
 
39
61
  Peer dependencies: `react` and `react-dom` 19. MIT; third-party notices in `NOTICE`.
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ // \0rolldown/runtime.js
3
+ var __defProp = Object.defineProperty;
4
+ var __exportAll = (all, no_symbols) => {
5
+ let target = {};
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
11
+ return target;
12
+ };
13
+ export { __exportAll };
@@ -1,18 +1,43 @@
1
1
 
2
+ import { Button } from "../button/button.js";
3
+ import { useRender } from "@base-ui/react/use-render";
2
4
  import { VariantProps } from "class-variance-authority";
3
5
  import * as React from "react";
4
6
  declare const alertVariants: (props?: ({
5
- variant?: "default" | "destructive" | null | undefined;
7
+ variant?: "success" | "warning" | "default" | "destructive" | "info" | null | undefined;
8
+ appearance?: "soft" | "outline" | "solid" | null | undefined;
9
+ size?: "default" | "sm" | null | undefined;
6
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- declare function Alert({ className, variant, announce, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants> & {
11
+ type AlertAppearance = NonNullable<VariantProps<typeof alertVariants>["appearance"]>;
12
+ declare function Alert({ className, variant, appearance, size, announce, open, defaultOpen, onOpenChange, ref, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants> & {
13
+ /**
14
+ * How loud it is: `outline`, `soft` or `solid`. Defaults by variant: outline for default and
15
+ * destructive (base-nova), soft for success, warning and info.
16
+ */
17
+ appearance?: AlertAppearance | null;
18
+ /** `default`, or `sm`: one compact line (icon, title, description, close) for tight places. */
19
+ size?: "default" | "sm" | null;
8
20
  /**
9
21
  * The error sound (feedback.error) when the Alert appears (#114). Left unset it's automatic: a
10
22
  * destructive Alert plays it when a person's action caused it (within the browser's transient
11
- * activation window), never on load. `true` always plays it, `false` never does.
23
+ * activation window), never on load. `true` always plays it, `false` never does. Success and
24
+ * warning are silent unless `announce` is set, then play feedback.success / feedback.warning.
12
25
  */
13
26
  announce?: boolean;
14
- }): React.JSX.Element;
27
+ /** Whether the Alert is shown (controlled). Only matters with an `AlertClose`. */
28
+ open?: boolean;
29
+ /** Whether the Alert starts shown when uncontrolled. Defaults to `true`. */
30
+ defaultOpen?: boolean;
31
+ /** Called with `false` when `AlertClose` is pressed. */
32
+ onOpenChange?: (open: boolean) => void;
33
+ }): React.JSX.Element | null;
15
34
  declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
16
35
  declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
17
36
  declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
18
- export { Alert, AlertAction, AlertDescription, AlertTitle };
37
+ /** Nsaa (#148): dismisses the Alert. A ghost icon Button named "Dismiss", at the inline end. */
38
+ declare function AlertClose({ className, children, onClick, ...props }: Omit<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
39
+ /** Nsaa (#148): a row of `AlertLink`s under the description. The ∙ between them is CSS, never read. */
40
+ declare function AlertLinks({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
41
+ /** Nsaa (#148): a real link in the Alert's own text colour, medium weight, underlined. */
42
+ declare function AlertLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
43
+ export { Alert, AlertAction, AlertClose, AlertDescription, AlertLink, AlertLinks, AlertTitle };
@@ -1,32 +1,174 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
- import { recentUserAction } from "../lib/user-action.js";
4
3
  import { useCue } from "../sound/sound-map.js";
5
- import { jsx } from "react/jsx-runtime";
4
+ import { Button } from "../button/button.js";
5
+ import { mergeRefs } from "../lib/merge-refs.js";
6
+ import { recentUserAction } from "../lib/user-action.js";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { mergeProps } from "@base-ui/react/merge-props";
9
+ import { useRender } from "@base-ui/react/use-render";
6
10
  import { cva } from "class-variance-authority";
7
11
  import * as React from "react";
8
12
  // src/alert/alert.tsx
9
13
  const alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
10
- variants: { variant: {
11
- default: "bg-card text-card-foreground",
12
- destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
13
- } },
14
- defaultVariants: { variant: "default" }
14
+ variants: {
15
+ variant: {
16
+ default: "bg-card text-card-foreground",
17
+ destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",
18
+ success: "",
19
+ warning: "",
20
+ info: ""
21
+ },
22
+ appearance: {
23
+ outline: "",
24
+ soft: "",
25
+ solid: ""
26
+ },
27
+ size: {
28
+ default: "has-data-[slot=alert-close]:pr-10 has-data-[slot=alert-action]:has-data-[slot=alert-close]:pr-25 rtl:has-data-[slot=alert-close]:pr-2.5 rtl:has-data-[slot=alert-close]:pl-10 rtl:has-data-[slot=alert-action]:has-data-[slot=alert-close]:pl-25",
29
+ sm: "block rounded-md px-2 py-1.5 text-xs has-data-[slot=alert-close]:pr-8 rtl:has-data-[slot=alert-close]:pr-2 rtl:has-data-[slot=alert-close]:pl-8 *:[svg]:float-start *:[svg]:me-2 *:[svg]:translate-y-0 *:data-[slot=alert-title]:inline *:data-[slot=alert-description]:ms-1 *:data-[slot=alert-description]:inline *:data-[slot=alert-description]:text-xs"
30
+ }
31
+ },
32
+ compoundVariants: [
33
+ {
34
+ variant: "default",
35
+ appearance: "soft",
36
+ className: "bg-muted border-transparent text-foreground *:data-[slot=alert-description]:text-foreground *:data-[slot=alert-close]:text-muted-foreground *:[svg]:text-muted-foreground"
37
+ },
38
+ {
39
+ variant: "destructive",
40
+ appearance: "soft",
41
+ className: "bg-danger-subtle border-transparent text-foreground *:data-[slot=alert-description]:text-foreground *:data-[slot=alert-close]:text-muted-foreground *:[svg]:text-(--nsaa-color-danger-foreground)"
42
+ },
43
+ {
44
+ variant: "success",
45
+ appearance: "soft",
46
+ className: "bg-positive-subtle border-transparent text-foreground *:data-[slot=alert-description]:text-foreground *:data-[slot=alert-close]:text-muted-foreground *:[svg]:text-(--nsaa-color-positive-foreground)"
47
+ },
48
+ {
49
+ variant: "warning",
50
+ appearance: "soft",
51
+ className: "bg-warning-subtle border-transparent text-foreground *:data-[slot=alert-description]:text-foreground *:data-[slot=alert-close]:text-muted-foreground *:[svg]:text-(--nsaa-color-warning-foreground)"
52
+ },
53
+ {
54
+ variant: "info",
55
+ appearance: "soft",
56
+ className: "bg-info-subtle border-transparent text-foreground *:data-[slot=alert-description]:text-foreground *:data-[slot=alert-close]:text-muted-foreground *:[svg]:text-(--nsaa-color-info-foreground)"
57
+ },
58
+ {
59
+ variant: "default",
60
+ appearance: "solid",
61
+ className: "border-inverted-solid bg-inverted-solid text-on-inverted-foreground *:data-[slot=alert-action]:rounded-[min(var(--radius-md),10px)] *:data-[slot=alert-action]:bg-background *:data-[slot=alert-action]:text-foreground *:data-[slot=alert-description]:text-on-inverted-foreground"
62
+ },
63
+ {
64
+ variant: "destructive",
65
+ appearance: "outline",
66
+ className: "border-danger-border-default bg-card"
67
+ },
68
+ {
69
+ variant: "success",
70
+ appearance: "outline",
71
+ className: "border-positive-border-default bg-card text-card-foreground *:[svg]:text-(--nsaa-color-positive-foreground)"
72
+ },
73
+ {
74
+ variant: "warning",
75
+ appearance: "outline",
76
+ className: "border-warning-border-default bg-card text-card-foreground *:[svg]:text-(--nsaa-color-warning-foreground)"
77
+ },
78
+ {
79
+ variant: "info",
80
+ appearance: "outline",
81
+ className: "border-info-border-default bg-card text-card-foreground *:[svg]:text-(--nsaa-color-info-foreground)"
82
+ },
83
+ {
84
+ variant: "destructive",
85
+ appearance: "solid",
86
+ className: "border-transparent bg-danger-solid text-on-danger-solid-foreground *:data-[slot=alert-description]:text-on-danger-solid-foreground *:data-[slot=alert-action]:rounded-[min(var(--radius-md),10px)] *:data-[slot=alert-action]:bg-on-danger-solid-foreground *:data-[slot=alert-action]:text-danger-solid **:data-[slot=button]:text-danger-solid!"
87
+ },
88
+ {
89
+ variant: "success",
90
+ appearance: "solid",
91
+ className: "border-transparent bg-positive-solid text-on-positive-solid-foreground *:data-[slot=alert-description]:text-on-positive-solid-foreground *:data-[slot=alert-action]:rounded-[min(var(--radius-md),10px)] *:data-[slot=alert-action]:bg-on-positive-solid-foreground *:data-[slot=alert-action]:text-positive-solid **:data-[slot=button]:text-positive-solid!"
92
+ },
93
+ {
94
+ variant: "warning",
95
+ appearance: "solid",
96
+ className: "border-transparent bg-warning-solid text-on-warning-solid-foreground *:data-[slot=alert-description]:text-on-warning-solid-foreground *:data-[slot=alert-action]:rounded-[min(var(--radius-md),10px)] *:data-[slot=alert-action]:bg-on-warning-solid-foreground *:data-[slot=alert-action]:text-warning-solid **:data-[slot=button]:text-warning-solid!"
97
+ },
98
+ {
99
+ variant: "info",
100
+ appearance: "solid",
101
+ className: "border-transparent bg-info-solid text-on-info-solid-foreground *:data-[slot=alert-description]:text-on-info-solid-foreground *:data-[slot=alert-action]:rounded-[min(var(--radius-md),10px)] *:data-[slot=alert-action]:bg-on-info-solid-foreground *:data-[slot=alert-action]:text-info-solid **:data-[slot=button]:text-info-solid!"
102
+ },
103
+ {
104
+ appearance: ["soft", "solid"],
105
+ className: "[&_a:hover]:text-current!"
106
+ }
107
+ ],
108
+ defaultVariants: {
109
+ variant: "default",
110
+ size: "default"
111
+ }
15
112
  });
16
- function Alert({ className, variant, announce, ...props }) {
113
+ const AlertContext = React.createContext(null);
114
+ const FOCUSABLE = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
115
+ /** The next focusable element after `el` in the page, or the previous one if there is none. */
116
+ function neighbour(el) {
117
+ const all = [...el.ownerDocument.querySelectorAll(FOCUSABLE)].filter((node) => !el.contains(node) && (node.checkVisibility?.() ?? true));
118
+ return all.find((node) => el.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_FOLLOWING) ?? all.filter((node) => el.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_PRECEDING).at(-1) ?? null;
119
+ }
120
+ function Alert({ className, variant, appearance, size, announce, open, defaultOpen = true, onOpenChange, ref, ...props }) {
17
121
  const cue = useCue("alert");
18
122
  const destructive = variant === "destructive";
123
+ const announceCue = variant === "success" || variant === "warning" ? variant : "destructive";
19
124
  const appear = React.useEffectEvent(() => {
20
- if (announce === true || destructive && recentUserAction()) cue("destructive");
125
+ if (variant === "info") return;
126
+ if (announce === true || destructive && recentUserAction()) cue(announceCue);
21
127
  });
22
128
  React.useEffect(() => {
23
129
  if (announce !== false && (destructive || announce)) appear();
24
130
  }, [destructive, announce]);
25
- return /* @__PURE__ */ jsx("div", {
26
- "data-slot": "alert",
27
- role: "alert",
28
- className: cn(alertVariants({ variant }), className),
29
- ...props
131
+ const [uncontrolled, setUncontrolled] = React.useState(defaultOpen);
132
+ const shown = open ?? uncontrolled;
133
+ const [mounted, setMounted] = React.useState(shown);
134
+ const node = React.useRef(null);
135
+ if (shown && !mounted) setMounted(true);
136
+ React.useLayoutEffect(() => {
137
+ const el = node.current;
138
+ if (shown || !el) return;
139
+ let live = true;
140
+ const running = el.getAnimations?.() ?? [];
141
+ Promise.allSettled(running.map((a) => a.finished)).then(() => {
142
+ if (!live) return;
143
+ if (el.contains(el.ownerDocument.activeElement)) neighbour(el)?.focus();
144
+ setMounted(false);
145
+ });
146
+ return () => {
147
+ live = false;
148
+ };
149
+ }, [shown]);
150
+ const context = React.useMemo(() => ({ close: () => {
151
+ if (open === void 0) setUncontrolled(false);
152
+ onOpenChange?.(false);
153
+ } }), [open, onOpenChange]);
154
+ if (!mounted) return null;
155
+ const status = variant ?? "default";
156
+ const look = appearance ?? (status === "success" || status === "warning" || status === "info" ? "soft" : "outline");
157
+ return /* @__PURE__ */ jsx(AlertContext.Provider, {
158
+ value: context,
159
+ children: /* @__PURE__ */ jsx("div", {
160
+ ref: mergeRefs(node, ref),
161
+ "data-slot": "alert",
162
+ "data-size": size ?? "default",
163
+ "data-ending-style": shown ? void 0 : "",
164
+ role: destructive || status === "warning" ? "alert" : "status",
165
+ className: cn(alertVariants({
166
+ variant,
167
+ appearance: look,
168
+ size
169
+ }), "rtl:text-right rtl:has-data-[slot=alert-action]:pr-2.5 rtl:has-data-[slot=alert-action]:pl-18 rtl:*:data-[slot=alert-action]:right-auto rtl:*:data-[slot=alert-action]:left-2", "has-data-[slot=alert-close]:*:data-[slot=alert-action]:right-10 rtl:has-data-[slot=alert-close]:*:data-[slot=alert-action]:left-10", className),
170
+ ...props
171
+ })
30
172
  });
31
173
  }
32
174
  function AlertTitle({ className, ...props }) {
@@ -50,4 +192,48 @@ function AlertAction({ className, ...props }) {
50
192
  ...props
51
193
  });
52
194
  }
53
- export { Alert, AlertAction, AlertDescription, AlertTitle };
195
+ /** Nsaa (#148): dismisses the Alert. A ghost icon Button named "Dismiss", at the inline end. */
196
+ function AlertClose({ className, children, onClick, ...props }) {
197
+ const alert = React.useContext(AlertContext);
198
+ return /* @__PURE__ */ jsx(Button, {
199
+ "data-slot": "alert-close",
200
+ variant: "ghost",
201
+ size: "icon-xs",
202
+ "aria-label": "Dismiss",
203
+ className: cn("absolute top-2 right-2 text-current rtl:right-auto rtl:left-2 group-data-[size=sm]/alert:top-1 group-data-[size=sm]/alert:right-1 rtl:group-data-[size=sm]/alert:right-auto rtl:group-data-[size=sm]/alert:left-1", className),
204
+ onClick: (event) => {
205
+ onClick?.(event);
206
+ if (!event.defaultPrevented) alert?.close();
207
+ },
208
+ ...props,
209
+ children: children ?? /* @__PURE__ */ jsxs("svg", {
210
+ xmlns: "http://www.w3.org/2000/svg",
211
+ viewBox: "0 0 24 24",
212
+ fill: "none",
213
+ stroke: "currentColor",
214
+ strokeWidth: "2",
215
+ strokeLinecap: "round",
216
+ strokeLinejoin: "round",
217
+ "aria-hidden": "true",
218
+ children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })]
219
+ })
220
+ });
221
+ }
222
+ /** Nsaa (#148): a row of `AlertLink`s under the description. The ∙ between them is CSS, never read. */
223
+ function AlertLinks({ className, ...props }) {
224
+ return /* @__PURE__ */ jsx("div", {
225
+ "data-slot": "alert-links",
226
+ className: cn("mt-1 flex flex-wrap items-center gap-x-4 gap-y-1 group-has-[>svg]/alert:col-start-2", className),
227
+ ...props
228
+ });
229
+ }
230
+ /** Nsaa (#148): a real link in the Alert's own text colour, medium weight, underlined. */
231
+ function AlertLink({ className, render, ...props }) {
232
+ return useRender({
233
+ defaultTagName: "a",
234
+ props: mergeProps({ className: cn("relative font-medium text-current underline underline-offset-3 hover:decoration-2", "not-first:before:pointer-events-none not-first:before:absolute not-first:before:-start-2.5 not-first:before:no-underline not-first:before:content-['∙'_/_'']", className) }, props),
235
+ render,
236
+ state: { slot: "alert-link" }
237
+ });
238
+ }
239
+ export { Alert, AlertAction, AlertClose, AlertDescription, AlertLink, AlertLinks, AlertTitle };
@@ -1,3 +1,3 @@
1
1
 
2
- import { Alert, AlertAction, AlertDescription, AlertTitle } from "./alert.js";
3
- export { Alert, AlertAction, AlertDescription, AlertTitle };
2
+ import { Alert, AlertAction, AlertClose, AlertDescription, AlertLink, AlertLinks, AlertTitle } from "./alert.js";
3
+ export { Alert, AlertAction, AlertClose, AlertDescription, AlertLink, AlertLinks, AlertTitle };
@@ -3,18 +3,23 @@
3
3
  import { cn } from "../lib/cn.js";
4
4
  import { useCue } from "../sound/sound-map.js";
5
5
  import { Button } from "../button/button.js";
6
+ import { OpenerContext, useFinalFocus, useOpener } from "../lib/opener.js";
6
7
  import { jsx, jsxs } from "react/jsx-runtime";
7
8
  import { AlertDialog } from "@base-ui/react/alert-dialog";
8
9
  // src/alert-dialog/alert-dialog.tsx
9
10
  function AlertDialog$1({ onOpenChange, ...props }) {
10
11
  const cue = useCue("alert-dialog");
11
- return /* @__PURE__ */ jsx(AlertDialog.Root, {
12
- "data-slot": "alert-dialog",
13
- onOpenChange: (open, details) => {
14
- onOpenChange?.(open, details);
15
- if (!details.isCanceled) cue(open ? "open" : "close");
16
- },
17
- ...props
12
+ const opener = useOpener(props.open);
13
+ return /* @__PURE__ */ jsx(OpenerContext.Provider, {
14
+ value: opener,
15
+ children: /* @__PURE__ */ jsx(AlertDialog.Root, {
16
+ "data-slot": "alert-dialog",
17
+ onOpenChange: (open, details) => {
18
+ onOpenChange?.(open, details);
19
+ if (!details.isCanceled) cue(open ? "open" : "close");
20
+ },
21
+ ...props
22
+ })
18
23
  });
19
24
  }
20
25
  function AlertDialogTrigger({ ...props }) {
@@ -37,6 +42,7 @@ function AlertDialogOverlay({ className, ...props }) {
37
42
  });
38
43
  }
39
44
  function AlertDialogContent({ className, size = "default", ...props }) {
45
+ props.finalFocus = useFinalFocus(props.finalFocus);
40
46
  return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialog.Popup, {
41
47
  "data-slot": "alert-dialog-content",
42
48
  "data-size": size,
@@ -1,8 +1,8 @@
1
1
 
2
- import { VariantProps } from "class-variance-authority";
3
2
  import { useRender } from "@base-ui/react/use-render";
3
+ import { VariantProps } from "class-variance-authority";
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
5
+ variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
8
8
  export { Badge, badgeVariants };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
- import { cva } from "class-variance-authority";
4
3
  import { mergeProps } from "@base-ui/react/merge-props";
5
4
  import { useRender } from "@base-ui/react/use-render";
5
+ import { cva } from "class-variance-authority";
6
6
  // src/badge/badge.tsx
7
7
  const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
8
8
  variants: { variant: {
@@ -2,8 +2,8 @@
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import { Button } from "@base-ui/react/button";
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
6
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
5
+ variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
6
+ size?: "default" | "sm" | "xs" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type LoadingPlacement = "auto" | "start" | "center";
9
9
  declare function Button$1({ className, variant, size, loading, loadingLabel, loadingPlacement, children, onClick, onPointerDown, onPointerUp, onPointerLeave, onPointerCancel, ...props }: Button.Props & VariantProps<typeof buttonVariants> & {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
- import { useCue } from "../sound/sound-map.js";
4
3
  import { useControlDefaults } from "../lib/control-defaults.js";
5
4
  import { usePress } from "../lib/use-press.js";
5
+ import { useCue } from "../sound/sound-map.js";
6
6
  import { Spinner } from "../spinner/spinner.js";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  import { cva } from "class-variance-authority";
@@ -3,18 +3,23 @@
3
3
  import { cn } from "../lib/cn.js";
4
4
  import { useCue } from "../sound/sound-map.js";
5
5
  import { Button } from "../button/button.js";
6
+ import { OpenerContext, useFinalFocus, useOpener } from "../lib/opener.js";
6
7
  import { jsx, jsxs } from "react/jsx-runtime";
7
8
  import { Dialog } from "@base-ui/react/dialog";
8
9
  // src/dialog/dialog.tsx
9
10
  function Dialog$1({ onOpenChange, ...props }) {
10
11
  const cue = useCue("dialog");
11
- return /* @__PURE__ */ jsx(Dialog.Root, {
12
- "data-slot": "dialog",
13
- onOpenChange: (open, details) => {
14
- onOpenChange?.(open, details);
15
- if (!details.isCanceled) cue(open ? "open" : "close");
16
- },
17
- ...props
12
+ const opener = useOpener(props.open);
13
+ return /* @__PURE__ */ jsx(OpenerContext.Provider, {
14
+ value: opener,
15
+ children: /* @__PURE__ */ jsx(Dialog.Root, {
16
+ "data-slot": "dialog",
17
+ onOpenChange: (open, details) => {
18
+ onOpenChange?.(open, details);
19
+ if (!details.isCanceled) cue(open ? "open" : "close");
20
+ },
21
+ ...props
22
+ })
18
23
  });
19
24
  }
20
25
  function DialogTrigger({ ...props }) {
@@ -43,6 +48,7 @@ function DialogOverlay({ className, ...props }) {
43
48
  });
44
49
  }
45
50
  function DialogContent({ className, children, showCloseButton = true, ...props }) {
51
+ props.finalFocus = useFinalFocus(props.finalFocus);
46
52
  return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(Dialog.Popup, {
47
53
  "data-slot": "dialog-content",
48
54
  className: cn("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
@@ -1,7 +1,7 @@
1
1
 
2
+ import { useRender } from "@base-ui/react/use-render";
2
3
  import { VariantProps } from "class-variance-authority";
3
4
  import * as React from "react";
4
- import { useRender } from "@base-ui/react/use-render";
5
5
  declare function Empty({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
6
  declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
7
7
  declare const emptyMediaVariants: (props?: ({
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
- import { cva } from "class-variance-authority";
5
- import * as React from "react";
6
4
  import { mergeProps } from "@base-ui/react/merge-props";
7
5
  import { useRender } from "@base-ui/react/use-render";
6
+ import { cva } from "class-variance-authority";
7
+ import * as React from "react";
8
8
  // src/empty/empty.tsx
9
9
  function Empty({ className, ...props }) {
10
10
  return /* @__PURE__ */ jsx("div", {
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion/accordion.js";
3
3
  import "./accordion/index.js";
4
- import { Alert, AlertAction, AlertDescription, AlertTitle } from "./alert/alert.js";
5
- import "./alert/index.js";
6
4
  import { Button, buttonVariants } from "./button/button.js";
5
+ import { Alert, AlertAction, AlertClose, AlertDescription, AlertLink, AlertLinks, AlertTitle } from "./alert/alert.js";
6
+ import "./alert/index.js";
7
7
  import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./alert-dialog/alert-dialog.js";
8
8
  import "./alert-dialog/index.js";
9
9
  import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./avatar/avatar.js";
@@ -65,6 +65,7 @@ import "./skeleton/index.js";
65
65
  import { Slider } from "./slider/slider.js";
66
66
  import "./slider/index.js";
67
67
  import { SoundCue, SoundPlayer, SoundProvider, SoundProviderProps, useSound } from "./sound/sound.js";
68
+ import { lazyUisfxPlayer } from "./sound/lazy-uisfx.js";
68
69
  import { SOUND_MAP, SoundComponent } from "./sound/sound-map.js";
69
70
  import { LoaderProvider, LoaderProviderProps } from "./spinner/loader-provider.js";
70
71
  import { LoaderComponent, registerLoader, registerLoaders } from "./spinner/registry.js";
@@ -87,4 +88,4 @@ import "./toolbar/index.js";
87
88
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip/tooltip.js";
88
89
  import "./tooltip/index.js";
89
90
  import "./lib/track-input-modality.js";
90
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, type EmptyIllustrationOptions, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, IconSwap, type IconSwapProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, KbdGroup, Label, type LoaderComponent, LoaderProvider, type LoaderProviderProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, RadioGroup, RadioGroupItem, SOUND_MAP, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, SkeletonContent, Slider, type SoundComponent, type SoundCue, type SoundPlayer, SoundProvider, type SoundProviderProps, Spinner, type SpinnerProps, type SpinnerVariant, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, Toaster, ToggleGroup, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, type ToggleGroupSize, type ToggleGroupVariant, Toolbar, type ToolbarButtonProps, type ToolbarGroupProps, type ToolbarInputProps, type ToolbarLinkProps, type ToolbarProps, type ToolbarSize, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, createToastManager, registerLoader, registerLoaders, tabsListVariants, toast, useComboboxAnchor, useEmptyIllustration, useSound, useToastManager };
91
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertClose, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertLink, AlertLinks, AlertTitle, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, type EmptyIllustrationOptions, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, IconSwap, type IconSwapProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, KbdGroup, Label, type LoaderComponent, LoaderProvider, type LoaderProviderProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, RadioGroup, RadioGroupItem, SOUND_MAP, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, SkeletonContent, Slider, type SoundComponent, type SoundCue, type SoundPlayer, SoundProvider, type SoundProviderProps, Spinner, type SpinnerProps, type SpinnerVariant, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, Toaster, ToggleGroup, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, type ToggleGroupSize, type ToggleGroupVariant, Toolbar, type ToolbarButtonProps, type ToolbarGroupProps, type ToolbarInputProps, type ToolbarLinkProps, type ToolbarProps, type ToolbarSize, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, createToastManager, lazyUisfxPlayer, registerLoader, registerLoaders, tabsListVariants, toast, useComboboxAnchor, useEmptyIllustration, useSound, useToastManager };