@lanfermann/ui 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.d.ts +11 -3
- package/dist/components/accordion/accordion.js +15 -10
- package/dist/components/action-bar/action-bar.d.ts +60 -0
- package/dist/components/action-bar/action-bar.js +117 -0
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/alert.js +3 -17
- package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/app-shell/app-shell.d.ts +33 -0
- package/dist/components/app-shell/app-shell.js +93 -0
- package/dist/components/attachment/attachment.d.ts +51 -0
- package/dist/components/attachment/attachment.js +255 -0
- package/dist/components/attachment/kinds.d.ts +7 -0
- package/dist/components/attachment/kinds.js +142 -0
- package/dist/components/avatar/avatar.d.ts +14 -4
- package/dist/components/avatar/avatar.js +57 -13
- package/dist/components/avatar-group/avatar-group.d.ts +33 -0
- package/dist/components/avatar-group/avatar-group.js +110 -0
- package/dist/components/avatar-group/people.d.ts +12 -0
- package/dist/components/avatar-group/people.js +24 -0
- package/dist/components/badge/badge.d.ts +9 -3
- package/dist/components/badge/badge.js +21 -6
- package/dist/components/banner/banner.d.ts +39 -0
- package/dist/components/banner/banner.js +149 -0
- package/dist/components/button-group/button-group-variants.d.ts +4 -3
- package/dist/components/button-group/button-group-variants.js +13 -12
- package/dist/components/button-group/button-group.d.ts +3 -3
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.d.ts +20 -4
- package/dist/components/card/card.js +32 -6
- package/dist/components/checkbox-card/checkbox-card.d.ts +21 -0
- package/dist/components/checkbox-card/checkbox-card.js +50 -0
- package/dist/components/chip/chip-group.d.ts +15 -0
- package/dist/components/chip/chip-group.js +44 -0
- package/dist/components/chip/chip-variants.d.ts +6 -0
- package/dist/components/chip/chip-variants.js +28 -0
- package/dist/components/chip/chip.d.ts +39 -0
- package/dist/components/chip/chip.js +71 -0
- package/dist/components/code-block/code-copy.d.ts +3 -11
- package/dist/components/code-block/code-copy.js +15 -62
- package/dist/components/code-block/code-keys.js +10 -22
- package/dist/components/collapsible/collapsible.js +7 -3
- package/dist/components/combobox/combobox.d.ts +53 -3
- package/dist/components/combobox/combobox.js +204 -20
- package/dist/components/command/command.d.ts +131 -0
- package/dist/components/command/command.js +335 -0
- package/dist/components/consent/consent-card.js +365 -0
- package/dist/components/consent/consent-embed.d.ts +21 -0
- package/dist/components/consent/consent-embed.js +111 -0
- package/dist/components/consent/consent-labels.d.ts +70 -0
- package/dist/components/consent/consent-labels.js +61 -0
- package/dist/components/consent/consent-record.d.ts +95 -0
- package/dist/components/consent/consent-record.js +112 -0
- package/dist/components/consent/consent-store.d.ts +26 -0
- package/dist/components/consent/consent-store.js +240 -0
- package/dist/components/consent/consent.d.ts +86 -0
- package/dist/components/consent/consent.js +306 -0
- package/dist/components/container/container.d.ts +1 -1
- package/dist/components/context-menu/context-menu.d.ts +23 -0
- package/dist/components/context-menu/context-menu.js +50 -0
- package/dist/components/conversation/conversation.d.ts +45 -0
- package/dist/components/conversation/conversation.js +295 -0
- package/dist/components/conversation/stick.js +23 -0
- package/dist/components/copy-button/copy-button.d.ts +50 -0
- package/dist/components/copy-button/copy-button.js +65 -0
- package/dist/components/copy-page/copy-page.d.ts +4 -4
- package/dist/components/copy-page/copy-page.js +16 -36
- package/dist/components/copy-pill/copy-pill.js +1 -1
- package/dist/components/description-list/description-list.d.ts +32 -0
- package/dist/components/description-list/description-list.js +51 -0
- package/dist/components/empty/empty.d.ts +38 -0
- package/dist/components/empty/empty.js +57 -0
- package/dist/components/field/field.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +96 -0
- package/dist/components/file-upload/file-upload.js +347 -0
- package/dist/components/file-upload/files.d.ts +39 -0
- package/dist/components/file-upload/files.js +74 -0
- package/dist/components/grow/grow.d.ts +15 -3
- package/dist/components/grow/grow.js +24 -9
- package/dist/components/heading/heading.d.ts +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/menu/menu.d.ts +20 -8
- package/dist/components/menu/menu.js +51 -29
- package/dist/components/message/message.d.ts +81 -0
- package/dist/components/message/message.js +208 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +7 -1
- package/dist/components/navigation-menu/navigation-menu.js +11 -4
- package/dist/components/otp-field/otp-field.d.ts +37 -0
- package/dist/components/otp-field/otp-field.js +161 -0
- package/dist/components/pagination/pagination.d.ts +50 -0
- package/dist/components/pagination/pagination.js +188 -0
- package/dist/components/prompt-input/keys.js +15 -0
- package/dist/components/prompt-input/prompt-input.d.ts +89 -0
- package/dist/components/prompt-input/prompt-input.js +331 -0
- package/dist/components/radio-card/radio-card.d.ts +23 -0
- package/dist/components/radio-card/radio-card.js +49 -0
- package/dist/components/rolling-number/rolling-number.d.ts +30 -0
- package/dist/components/rolling-number/rolling-number.js +149 -0
- package/dist/components/seam/seam.d.ts +1 -1
- package/dist/components/secret-field/secret-field.d.ts +53 -0
- package/dist/components/secret-field/secret-field.js +121 -0
- package/dist/components/section/section.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.js +29 -16
- package/dist/components/select/select.d.ts +5 -4
- package/dist/components/select/select.js +16 -11
- package/dist/components/shortcut/shortcut.d.ts +46 -0
- package/dist/components/shortcut/shortcut.js +87 -0
- package/dist/components/sidebar/sidebar-context.js +16 -0
- package/dist/components/sidebar/sidebar.d.ts +161 -0
- package/dist/components/sidebar/sidebar.js +588 -0
- package/dist/components/site-header/site-header.js +1 -1
- package/dist/components/skeleton/loaded.d.ts +21 -0
- package/dist/components/skeleton/loaded.js +57 -0
- package/dist/components/skeleton/skeleton.d.ts +43 -0
- package/dist/components/skeleton/skeleton.js +48 -0
- package/dist/components/sources/source-list.d.ts +17 -0
- package/dist/components/sources/source-list.js +26 -0
- package/dist/components/sources/sources.d.ts +45 -0
- package/dist/components/sources/sources.js +167 -0
- package/dist/components/stat/stat.d.ts +59 -0
- package/dist/components/stat/stat.js +112 -0
- package/dist/components/steps/steps.d.ts +57 -0
- package/dist/components/steps/steps.js +134 -0
- package/dist/components/table/table.d.ts +18 -9
- package/dist/components/table/table.js +21 -13
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/theme-switch/theme-switch.js +1 -1
- package/dist/components/time-field/time-field.js +7 -6
- package/dist/components/timeline/timeline.d.ts +45 -0
- package/dist/components/timeline/timeline.js +86 -0
- package/dist/components/toast/toast.js +10 -26
- package/dist/components/toggle/toggle.d.ts +27 -0
- package/dist/components/toggle/toggle.js +61 -0
- package/dist/components/toggle-group/toggle-group.d.ts +27 -0
- package/dist/components/toggle-group/toggle-group.js +38 -0
- package/dist/components/toolbar/toolbar-context.js +12 -0
- package/dist/components/toolbar/toolbar.d.ts +52 -0
- package/dist/components/toolbar/toolbar.js +105 -0
- package/dist/components/trace/trace.d.ts +2 -1
- package/dist/components/trace/trace.js +15 -27
- package/dist/index.d.ts +46 -3
- package/dist/index.js +44 -3
- package/dist/internal/arriving-pieces.js +56 -0
- package/dist/internal/arriving.js +171 -0
- package/dist/internal/avatar-cut.d.ts +15 -0
- package/dist/internal/avatar-cut.js +83 -0
- package/dist/internal/choice-card.d.ts +15 -0
- package/dist/internal/choice-card.js +81 -0
- package/dist/internal/clipboard.js +37 -0
- package/dist/internal/copy.js +58 -0
- package/dist/internal/disclosure.js +15 -3
- package/dist/internal/field.js +24 -4
- package/dist/internal/glyphs.js +26 -1
- package/dist/internal/key-tip.js +18 -0
- package/dist/internal/list-mark.js +39 -0
- package/dist/internal/live-list.js +41 -0
- package/dist/internal/number-places.js +157 -0
- package/dist/internal/picker-sheet.js +1 -1
- package/dist/internal/presence-dot.js +24 -0
- package/dist/internal/presence.js +104 -0
- package/dist/internal/rail-mark.d.ts +3 -0
- package/dist/internal/rail-mark.js +33 -0
- package/dist/internal/rule.js +2 -1
- package/dist/internal/status-icon.js +22 -0
- package/dist/internal/tile.js +23 -0
- package/dist/internal/travelling-mark.js +204 -0
- package/dist/lib/cn.js +10 -0
- package/dist/lib/shortcut.d.ts +11 -0
- package/dist/lib/shortcut.js +165 -0
- package/package.json +1 -1
- package/src/styles/accordion.css +176 -0
- package/src/styles/action-bar.css +28 -0
- package/src/styles/assistant.css +83 -0
- package/src/styles/avatar.css +24 -0
- package/src/styles/consent.css +65 -0
- package/src/styles/copy.css +12 -11
- package/src/styles/depth.css +120 -4
- package/src/styles/marks.css +20 -2
- package/src/styles/motion.css +3 -0
- package/src/styles/rail.css +49 -0
- package/src/styles/rolling-number.css +94 -0
- package/src/styles/segmented.css +14 -7
- package/src/styles/steps.css +98 -0
- package/src/styles/timeline.css +48 -0
- package/src/styles/travel.css +36 -0
- package/src/styles.css +10 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { ButtonGroupContext } from "../button-group/button-group-context.js";
|
|
3
|
+
import { buttonGroupVariants } from "../button-group/button-group-variants.js";
|
|
4
|
+
import { mergeClassName } from "../../lib/cn.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
8
|
+
// src/components/toggle-group/toggle-group.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Keys that stay down, as one fitting: bold, italic and underlined, or the alignment of a
|
|
11
|
+
* paragraph. It is drawn like a `ButtonGroup` (one face, one edge, one shadow, a seam between
|
|
12
|
+
* two keys), and every key that is on keeps the inner shade of a press.
|
|
13
|
+
*
|
|
14
|
+
* With `multiple` any number of keys may be down at once, each on its own. Without it one key
|
|
15
|
+
* at most is down, and pressing it again lets it up: for a choice that may also be none. A
|
|
16
|
+
* choice between views, where one is always selected, is a `SegmentedControl`.
|
|
17
|
+
*
|
|
18
|
+
* Put `Toggle`s inside, each with a `value`. The value of the group is always a list. Name the
|
|
19
|
+
* group (`aria-label`): Tab reaches it once, and the arrow keys move between its keys.
|
|
20
|
+
*/
|
|
21
|
+
function ToggleGroup({ size = "md", disabled = false, className, ...props }) {
|
|
22
|
+
const context = useMemo(() => ({
|
|
23
|
+
size,
|
|
24
|
+
disabled
|
|
25
|
+
}), [size, disabled]);
|
|
26
|
+
return /* @__PURE__ */ jsx(ButtonGroupContext, {
|
|
27
|
+
value: context,
|
|
28
|
+
children: /* @__PURE__ */ jsx(ToggleGroup$1, {
|
|
29
|
+
"data-slot": "toggle-group",
|
|
30
|
+
"data-variant": "secondary",
|
|
31
|
+
"data-size": size,
|
|
32
|
+
disabled,
|
|
33
|
+
className: mergeClassName(buttonGroupVariants({ size }), className),
|
|
34
|
+
...props
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export { ToggleGroup };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
// src/components/toolbar/toolbar-context.ts
|
|
4
|
+
/**
|
|
5
|
+
* Whether a part stands in a `Toolbar`. A `Toggle` that finds it joins the toolbar's one tab
|
|
6
|
+
* stop by itself, so a `ToggleGroup` can be put into a toolbar as it is.
|
|
7
|
+
*/
|
|
8
|
+
const ToolbarContext = createContext(false);
|
|
9
|
+
function useInToolbar() {
|
|
10
|
+
return useContext(ToolbarContext);
|
|
11
|
+
}
|
|
12
|
+
export { ToolbarContext, useInToolbar };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ButtonProps } from "../button/button.js";
|
|
2
|
+
import { InputProps } from "../input/input.js";
|
|
3
|
+
import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
|
|
4
|
+
import { ReactElement } from "react";
|
|
5
|
+
export type ToolbarProps = Toolbar$1.Root.Props;
|
|
6
|
+
/**
|
|
7
|
+
* A row of controls that work on the same thing: the keys above a text, the tools of a
|
|
8
|
+
* drawing, the actions of a view. It is one stop for the Tab key; the arrow keys move between
|
|
9
|
+
* its controls and come round at its ends. Name it (`aria-label`) with what it works on
|
|
10
|
+
* ("Text formatieren").
|
|
11
|
+
*
|
|
12
|
+
* The bar itself is a tray, flat on the page: the keys in it are the fittings. Put
|
|
13
|
+
* `ToolbarButton`s inside, `ToggleGroup`s and `Toggle`s as they are, a `ToolbarSeparator`
|
|
14
|
+
* between two kinds of control, and at most one `ToolbarInput`, last, because the arrow keys
|
|
15
|
+
* also move the text cursor. It is only the bar: what the keys do is the caller's.
|
|
16
|
+
*
|
|
17
|
+
* A key that shows only a symbol (`iconOnly`, a `ToolbarButton` or a `Toggle`) says its name in
|
|
18
|
+
* a tooltip, with its `shortcut` after it. The first waits for the pointer to rest; its
|
|
19
|
+
* neighbours then open at once.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Toolbar({ className, ...props }: ToolbarProps): import("react").JSX.Element;
|
|
22
|
+
/** `Omit` that keeps a union a union: a key is named either by its words or by `aria-label`. */
|
|
23
|
+
type Without<Props, Key extends PropertyKey> = Props extends unknown ? Omit<Props, Key> : never;
|
|
24
|
+
export type ToolbarButtonProps = Without<ButtonProps, "render"> & {
|
|
25
|
+
/**
|
|
26
|
+
* Another control to be the key: the trigger of a `Select` (`render={<SelectTrigger />}`).
|
|
27
|
+
* The trigger of a menu, a popover or a dialog goes the other way round:
|
|
28
|
+
* `<MenuTrigger render={<ToolbarButton />}>`.
|
|
29
|
+
*/
|
|
30
|
+
render?: ReactElement;
|
|
31
|
+
/** Its keyboard shortcut (`mod+k`), said after its name in the tooltip of a symbol key. */
|
|
32
|
+
shortcut?: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* One key of a toolbar: a quiet, small `Button` unless told otherwise. A key that cannot be
|
|
36
|
+
* used right now stays in reach of the arrow keys and says that it is disabled. A key with only
|
|
37
|
+
* a symbol says its `aria-label` in a tooltip.
|
|
38
|
+
*/
|
|
39
|
+
export declare function ToolbarButton({ render, size, variant, className, disabled, focusableWhenDisabled, shortcut, ...props }: ToolbarButtonProps): import("react").JSX.Element;
|
|
40
|
+
/** A link among the keys. It keeps link semantics and wears a quiet key. */
|
|
41
|
+
export declare function ToolbarLink({ className, ...props }: Toolbar$1.Link.Props): import("react").JSX.Element;
|
|
42
|
+
/** Keys that belong together inside the bar, and can be disabled together. Name the group. */
|
|
43
|
+
export declare function ToolbarGroup({ className, ...props }: Toolbar$1.Group.Props): import("react").JSX.Element;
|
|
44
|
+
/** A hairline between two kinds of control. It stands across the bar's direction. */
|
|
45
|
+
export declare function ToolbarSeparator({ className, ...props }: Toolbar$1.Separator.Props): import("react").JSX.Element;
|
|
46
|
+
export type ToolbarInputProps = Omit<InputProps, "render">;
|
|
47
|
+
/**
|
|
48
|
+
* A small field in the bar (a zoom, a page number). One per toolbar, at its end: inside it the
|
|
49
|
+
* arrow keys move the text cursor, and leave the field only at the text's ends.
|
|
50
|
+
*/
|
|
51
|
+
export declare function ToolbarInput({ size, ...props }: ToolbarInputProps): import("react").JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button } from "../button/button.js";
|
|
3
|
+
import { buttonVariants } from "../button/button-variants.js";
|
|
4
|
+
import { Input } from "../input/input.js";
|
|
5
|
+
import { TooltipProvider } from "../tooltip/tooltip.js";
|
|
6
|
+
import { KeyTip } from "../../internal/key-tip.js";
|
|
7
|
+
import { cn, mergeClassName } from "../../lib/cn.js";
|
|
8
|
+
import { ToolbarContext } from "./toolbar-context.js";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
|
|
11
|
+
// src/components/toolbar/toolbar.tsx
|
|
12
|
+
/**
|
|
13
|
+
* A row of controls that work on the same thing: the keys above a text, the tools of a
|
|
14
|
+
* drawing, the actions of a view. It is one stop for the Tab key; the arrow keys move between
|
|
15
|
+
* its controls and come round at its ends. Name it (`aria-label`) with what it works on
|
|
16
|
+
* ("Text formatieren").
|
|
17
|
+
*
|
|
18
|
+
* The bar itself is a tray, flat on the page: the keys in it are the fittings. Put
|
|
19
|
+
* `ToolbarButton`s inside, `ToggleGroup`s and `Toggle`s as they are, a `ToolbarSeparator`
|
|
20
|
+
* between two kinds of control, and at most one `ToolbarInput`, last, because the arrow keys
|
|
21
|
+
* also move the text cursor. It is only the bar: what the keys do is the caller's.
|
|
22
|
+
*
|
|
23
|
+
* A key that shows only a symbol (`iconOnly`, a `ToolbarButton` or a `Toggle`) says its name in
|
|
24
|
+
* a tooltip, with its `shortcut` after it. The first waits for the pointer to rest; its
|
|
25
|
+
* neighbours then open at once.
|
|
26
|
+
*/
|
|
27
|
+
function Toolbar({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(ToolbarContext, {
|
|
29
|
+
value: true,
|
|
30
|
+
children: /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(Toolbar$1.Root, {
|
|
31
|
+
"data-slot": "toolbar",
|
|
32
|
+
className: mergeClassName("flex flex-wrap items-center gap-1 data-[orientation=vertical]:flex-col data-[orientation=vertical]:flex-nowrap", className),
|
|
33
|
+
...props
|
|
34
|
+
}) })
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* One key of a toolbar: a quiet, small `Button` unless told otherwise. A key that cannot be
|
|
39
|
+
* used right now stays in reach of the arrow keys and says that it is disabled. A key with only
|
|
40
|
+
* a symbol says its `aria-label` in a tooltip.
|
|
41
|
+
*/
|
|
42
|
+
function ToolbarButton({ render, size = "sm", variant = "quiet", className, disabled, focusableWhenDisabled, shortcut, ...props }) {
|
|
43
|
+
const key = /* @__PURE__ */ jsx(Toolbar$1.Button, {
|
|
44
|
+
"data-slot": "toolbar-button",
|
|
45
|
+
disabled,
|
|
46
|
+
focusableWhenDisabled,
|
|
47
|
+
render: render ?? /* @__PURE__ */ jsx(Button, {
|
|
48
|
+
size,
|
|
49
|
+
variant,
|
|
50
|
+
...props,
|
|
51
|
+
className: cn("shrink-0", className)
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
const label = props.iconOnly && !render ? props["aria-label"] : void 0;
|
|
55
|
+
return label ? /* @__PURE__ */ jsx(KeyTip, {
|
|
56
|
+
label,
|
|
57
|
+
shortcut,
|
|
58
|
+
trigger: key
|
|
59
|
+
}) : key;
|
|
60
|
+
}
|
|
61
|
+
/** A link among the keys. It keeps link semantics and wears a quiet key. */
|
|
62
|
+
function ToolbarLink({ className, ...props }) {
|
|
63
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Link, {
|
|
64
|
+
"data-slot": "toolbar-link",
|
|
65
|
+
className: mergeClassName([buttonVariants({
|
|
66
|
+
variant: "quiet",
|
|
67
|
+
size: "sm"
|
|
68
|
+
}), "shrink-0"], className),
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/** Keys that belong together inside the bar, and can be disabled together. Name the group. */
|
|
73
|
+
function ToolbarGroup({ className, ...props }) {
|
|
74
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Group, {
|
|
75
|
+
"data-slot": "toolbar-group",
|
|
76
|
+
className: mergeClassName("flex items-center gap-0.5 data-[orientation=vertical]:flex-col", className),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/** A hairline between two kinds of control. It stands across the bar's direction. */
|
|
81
|
+
function ToolbarSeparator({ className, ...props }) {
|
|
82
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Separator, {
|
|
83
|
+
"data-slot": "toolbar-separator",
|
|
84
|
+
className: mergeClassName([
|
|
85
|
+
"shrink-0 bg-hairline forced-colors:bg-[CanvasText]",
|
|
86
|
+
"data-[orientation=vertical]:mx-1 data-[orientation=vertical]:h-5 data-[orientation=vertical]:w-px",
|
|
87
|
+
"data-[orientation=horizontal]:my-1 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-5"
|
|
88
|
+
], className),
|
|
89
|
+
...props
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* A small field in the bar (a zoom, a page number). One per toolbar, at its end: inside it the
|
|
94
|
+
* arrow keys move the text cursor, and leave the field only at the text's ends.
|
|
95
|
+
*/
|
|
96
|
+
function ToolbarInput({ size = "sm", ...props }) {
|
|
97
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Input, {
|
|
98
|
+
"data-slot": "toolbar-input",
|
|
99
|
+
render: /* @__PURE__ */ jsx(Input, {
|
|
100
|
+
size,
|
|
101
|
+
...props
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
export { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IconSvgElement } from "../icon/icon.js";
|
|
2
|
+
import { RailStatus } from "../../internal/rail-mark.js";
|
|
2
3
|
import { ComponentProps, ReactNode } from "react";
|
|
3
4
|
/** Where a step stands: not begun, being worked on, finished, or failed. */
|
|
4
|
-
export type TraceStatus =
|
|
5
|
+
export type TraceStatus = RailStatus;
|
|
5
6
|
/** What stands in front of a finished step: the system's disc, or the step's own symbol. */
|
|
6
7
|
export type TraceMarks = "dots" | "symbols";
|
|
7
8
|
export type TraceProps = ComponentProps<"ol"> & {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Icon } from "../icon/icon.js";
|
|
3
|
-
import { Spinner } from "../spinner/spinner.js";
|
|
4
2
|
import { disclosurePanel } from "../../internal/disclosure.js";
|
|
5
3
|
import { ChevronRightGlyph } from "../../internal/glyphs.js";
|
|
4
|
+
import { RailMark } from "../../internal/rail-mark.js";
|
|
6
5
|
import { cn } from "../../lib/cn.js";
|
|
7
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { Alert02Icon } from "@hugeicons/core-free-icons";
|
|
9
7
|
import { createContext, useContext, useEffect, useMemo, useState } from "react";
|
|
10
8
|
import { Collapsible } from "@base-ui/react/collapsible";
|
|
11
9
|
// src/components/trace/trace.tsx
|
|
@@ -55,26 +53,14 @@ function Trace({ marks = "dots", statusLabels, className, ...props }) {
|
|
|
55
53
|
})
|
|
56
54
|
});
|
|
57
55
|
}
|
|
58
|
-
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
className: "text-fg"
|
|
67
|
-
}) : status === "error" ? /* @__PURE__ */ jsx(Icon, {
|
|
68
|
-
icon: Alert02Icon,
|
|
69
|
-
size: 14,
|
|
70
|
-
className: "text-danger"
|
|
71
|
-
}) : icon && status === "done" ? /* @__PURE__ */ jsx(Icon, {
|
|
72
|
-
icon,
|
|
73
|
-
size: 14,
|
|
74
|
-
className: "text-fg-muted transition-opacity spring-settle in-data-live:starting:opacity-0"
|
|
75
|
-
}) : /* @__PURE__ */ jsx("span", { className: cn("mark", status === "done" && "mark-on in-data-live:mark-closes") })
|
|
76
|
-
});
|
|
77
|
-
}
|
|
56
|
+
/**
|
|
57
|
+
* A step that has just finished: its symbol comes in where the arc was, or its ring closes into
|
|
58
|
+
* the disc (marks.css). On load both stand still.
|
|
59
|
+
*/
|
|
60
|
+
const markEnter = {
|
|
61
|
+
icon: "in-data-live:starting:opacity-0",
|
|
62
|
+
disc: "in-data-live:mark-closes"
|
|
63
|
+
};
|
|
78
64
|
const titleTone = {
|
|
79
65
|
pending: "text-fg-muted",
|
|
80
66
|
running: "shimmer",
|
|
@@ -85,9 +71,11 @@ const titleTone = {
|
|
|
85
71
|
function TraceLine({ status, title, meta, icon, opens }) {
|
|
86
72
|
const { labels, marks } = useContext(TraceContext);
|
|
87
73
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
88
|
-
/* @__PURE__ */ jsx(
|
|
74
|
+
/* @__PURE__ */ jsx(RailMark, {
|
|
75
|
+
slot: "trace-mark",
|
|
89
76
|
status,
|
|
90
|
-
icon: marks === "symbols" ? icon : void 0
|
|
77
|
+
icon: marks === "symbols" ? icon : void 0,
|
|
78
|
+
enter: markEnter
|
|
91
79
|
}),
|
|
92
80
|
/* @__PURE__ */ jsxs("span", {
|
|
93
81
|
"data-slot": "trace-title",
|
|
@@ -106,7 +94,7 @@ function TraceLine({ status, title, meta, icon, opens }) {
|
|
|
106
94
|
"data-slot": "trace-chevron",
|
|
107
95
|
width: 10,
|
|
108
96
|
height: 10,
|
|
109
|
-
className: cn("text-fg-muted transition-[rotate,color] spring-seat group-hover:text-fg group-data-disabled:text-on-disabled", "group-data-panel-open:rotate-90")
|
|
97
|
+
className: cn("text-fg-muted transition-[rotate,translate,color] spring-seat group-hover:text-fg group-hover:[translate:var(--lean)] group-data-disabled:text-on-disabled", "group-data-panel-open:rotate-90")
|
|
110
98
|
})
|
|
111
99
|
] });
|
|
112
100
|
}
|
|
@@ -145,7 +133,7 @@ function TraceStep({ status = "done", title, meta, icon, open, defaultOpen, onOp
|
|
|
145
133
|
return /* @__PURE__ */ jsx("li", {
|
|
146
134
|
"data-slot": "trace-step",
|
|
147
135
|
"data-status": status,
|
|
148
|
-
className: cn("
|
|
136
|
+
className: cn("rail-item flex flex-col", "transition-[opacity,translate] spring-settle in-data-live:starting:translate-y-(--motion-enter-offset) in-data-live:starting:opacity-0", className),
|
|
149
137
|
...props,
|
|
150
138
|
children: opens ? /* @__PURE__ */ jsxs(Collapsible.Root, {
|
|
151
139
|
open,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import { Accordion, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, AccordionTrigger, AccordionTriggerProps } from "./components/accordion/accordion.js";
|
|
2
|
+
import { ActionBar, ActionBarButton, ActionBarButtonProps, ActionBarProps } from "./components/action-bar/action-bar.js";
|
|
2
3
|
import { Alert, AlertDescription, AlertProps, AlertTitle } from "./components/alert/alert.js";
|
|
3
4
|
import { AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog/alert-dialog.js";
|
|
4
5
|
import { AnchorHeading, AnchorHeadingProps } from "./components/anchor-heading/anchor-heading.js";
|
|
6
|
+
import { AppShell, AppShellBar, AppShellMain, AppShellPage, AppShellProps } from "./components/app-shell/app-shell.js";
|
|
7
|
+
import { Attachment, AttachmentProps, AttachmentStatus, AttachmentVariant, MessageAttachments, MessageAttachmentsProps } from "./components/attachment/attachment.js";
|
|
8
|
+
import { FileKind, kindOf } from "./components/attachment/kinds.js";
|
|
5
9
|
import { Avatar, AvatarFallback, AvatarImage, AvatarProps } from "./components/avatar/avatar.js";
|
|
10
|
+
import { AvatarGroup, AvatarGroupProps } from "./components/avatar-group/avatar-group.js";
|
|
11
|
+
import { AvatarPerson, Presence } from "./components/avatar-group/people.js";
|
|
6
12
|
import { Badge, BadgeProps } from "./components/badge/badge.js";
|
|
13
|
+
import { Banner, BannerProps, BannerTone } from "./components/banner/banner.js";
|
|
7
14
|
import { BreadcrumbItem, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbPage, Breadcrumbs, BreadcrumbsProps } from "./components/breadcrumbs/breadcrumbs.js";
|
|
8
15
|
import { Button, ButtonProps } from "./components/button/button.js";
|
|
9
16
|
import { ButtonVariants, buttonVariants } from "./components/button/button-variants.js";
|
|
10
17
|
import { ButtonGroup, ButtonGroupProps } from "./components/button-group/button-group.js";
|
|
11
18
|
import { Calendar, CalendarProps, DateRange } from "./components/calendar/calendar.js";
|
|
12
19
|
import { Callout, CalloutProps, CalloutTone } from "./components/callout/callout.js";
|
|
13
|
-
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
|
|
20
|
+
import { Card, CardBar, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
|
|
14
21
|
import { Checkbox, CheckboxProps } from "./components/checkbox/checkbox.js";
|
|
22
|
+
import { CheckboxCard, CheckboxCardProps } from "./components/checkbox-card/checkbox-card.js";
|
|
15
23
|
import { CheckboxGroup, CheckboxGroupItems, CheckboxGroupProps } from "./components/checkbox-group/checkbox-group.js";
|
|
24
|
+
import { Chip, ChipProps } from "./components/chip/chip.js";
|
|
25
|
+
import { ChipGroup, ChipGroupProps } from "./components/chip/chip-group.js";
|
|
16
26
|
import { Code } from "./components/code/code.js";
|
|
17
27
|
import { CodeBlock, CodeBlockProps } from "./components/code-block/code-block.js";
|
|
18
28
|
import { CodeBlockLive, CodeBlockLiveProps, CodePiece, CodeRole } from "./components/code-block/code-block-live.js";
|
|
@@ -21,20 +31,33 @@ import { CodeTab, CodeTabs, CodeTabsProps } from "./components/code-block/code-t
|
|
|
21
31
|
import { CodeLanguage } from "./components/code-block/highlight.js";
|
|
22
32
|
import { LineSpec } from "./components/code-block/lines.js";
|
|
23
33
|
import { Collapsible, CollapsiblePanel, CollapsiblePanelProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps } from "./components/collapsible/collapsible.js";
|
|
24
|
-
import { Combobox, ComboboxCollection, ComboboxContent, ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxOption, ComboboxOptionGroup, ComboboxProps, ComboboxSeparator } from "./components/combobox/combobox.js";
|
|
34
|
+
import { Combobox, ComboboxChips, ComboboxChipsProps, ComboboxCollection, ComboboxContent, ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxOption, ComboboxOptionGroup, ComboboxProps, ComboboxSeparator } from "./components/combobox/combobox.js";
|
|
35
|
+
import { Command, CommandContent, CommandContentProps, CommandEntry, CommandFooter, CommandFooterProps, CommandInput, CommandInputProps, CommandItems, CommandList, CommandListProps, CommandProps, CommandSection, CommandTrigger } from "./components/command/command.js";
|
|
36
|
+
import { ConsentGate, ConsentGateProps, ConsentProvider, ConsentProviderProps, ConsentSettingsTrigger, ConsentSettingsTriggerProps, UseConsentResult, useConsent } from "./components/consent/consent.js";
|
|
37
|
+
import { ConsentEmbed, ConsentEmbedProps } from "./components/consent/consent-embed.js";
|
|
38
|
+
import { ConsentLabels, consentLabels } from "./components/consent/consent-labels.js";
|
|
39
|
+
import { ConsentCategory, ConsentConfig, ConsentRecord, ConsentService, ConsentStorage, ConsentStorageKind, consentAllows, parseConsent } from "./components/consent/consent-record.js";
|
|
40
|
+
import { ConsentChange, ConsentJar, ConsentStatus, createMemoryJar } from "./components/consent/consent-store.js";
|
|
25
41
|
import { Container, ContainerProps, containerVariants } from "./components/container/container.js";
|
|
42
|
+
import { ContextMenu, ContextMenuContent, ContextMenuContentProps, ContextMenuTrigger } from "./components/context-menu/context-menu.js";
|
|
43
|
+
import { Conversation, ConversationApi, ConversationContent, ConversationContentProps, ConversationLatest, ConversationLatestProps, ConversationProps, useConversation } from "./components/conversation/conversation.js";
|
|
44
|
+
import { CopyButton, CopyButtonLabels, CopyButtonProps } from "./components/copy-button/copy-button.js";
|
|
26
45
|
import { CopyPage, CopyPageProps } from "./components/copy-page/copy-page.js";
|
|
27
46
|
import { CopyPill, CopyPillMark, CopyPillProps } from "./components/copy-pill/copy-pill.js";
|
|
28
47
|
import { Cta, CtaAction, CtaActionProps, CtaActions, CtaMessage, CtaMessageProps, CtaProps, CtaText, CtaTitle, CtaTone } from "./components/cta/cta.js";
|
|
29
48
|
import { DateField, DateFieldProps } from "./components/date-field/date-field.js";
|
|
30
49
|
import { DateRangeField, DateRangeFieldProps } from "./components/date-range-field/date-range-field.js";
|
|
50
|
+
import { DescriptionDetails, DescriptionDetailsProps, DescriptionList, DescriptionListProps, DescriptionTerm } from "./components/description-list/description-list.js";
|
|
31
51
|
import { Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog/dialog.js";
|
|
32
52
|
import { DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav } from "./components/docs-layout/docs-layout.js";
|
|
33
53
|
import { DocsCrumb, DocsGroup, DocsNav, DocsPage, DocsPlace, docsPageState, docsPages, findDocsPage, sameDocsPage } from "./components/docs-layout/docs-nav.js";
|
|
34
54
|
import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerProps, DrawerSide, DrawerTitle, DrawerTrigger } from "./components/drawer/drawer.js";
|
|
55
|
+
import { Empty, EmptyActions, EmptyMedia, EmptyMediaProps, EmptyProps, EmptyText, EmptyTitle, EmptyTitleProps } from "./components/empty/empty.js";
|
|
35
56
|
import { Field, FieldDescription, FieldError, FieldLabel } from "./components/field/field.js";
|
|
36
57
|
import { Fieldset, FieldsetLegend } from "./components/fieldset/fieldset.js";
|
|
37
58
|
import { Figure, FigureCaption, FigureFrame } from "./components/figure/figure.js";
|
|
59
|
+
import { FileUpload, FileUploadItem, FileUploadItemProps, FileUploadList, FileUploadListProps, FileUploadProps, FileUploadStatus, FileUploadZone, FileUploadZoneProps } from "./components/file-upload/file-upload.js";
|
|
60
|
+
import { FileRejection, FileRules, acceptsFile, formatFileProgress, formatFileSize, sortFiles } from "./components/file-upload/files.js";
|
|
38
61
|
import { Form, FormProps } from "./components/form/form.js";
|
|
39
62
|
import { Ground, GroundName, GroundProps, useGround } from "./components/ground/ground.js";
|
|
40
63
|
import { Grow, GrowProps } from "./components/grow/grow.js";
|
|
@@ -49,31 +72,46 @@ import { LinkVariants, linkVariants } from "./components/link/link-variants.js";
|
|
|
49
72
|
import { Logomark, LogomarkProps } from "./components/logo/logomark.js";
|
|
50
73
|
import { Wordmark, WordmarkProps } from "./components/logo/wordmark.js";
|
|
51
74
|
import { Menu, MenuCheckboxItem, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger } from "./components/menu/menu.js";
|
|
75
|
+
import { Message, MessageAction, MessageActionProps, MessageActions, MessageContent, MessageContentProps, MessageError, MessageErrorProps, MessageFeedback, MessageFeedbackProps, MessageFrom, MessageProps, MessageVerdict } from "./components/message/message.js";
|
|
52
76
|
import { Meter, MeterLabel, MeterProps, MeterTrack, MeterValue } from "./components/meter/meter.js";
|
|
53
77
|
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, NavigationMenuLinkProps, NavigationMenuLinkTitle, NavigationMenuList, NavigationMenuProps, NavigationMenuTrigger } from "./components/navigation-menu/navigation-menu.js";
|
|
54
78
|
import { NavigationMenuEntryVariants, navigationMenuEntryVariants } from "./components/navigation-menu/navigation-menu-variants.js";
|
|
55
79
|
import { NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, NumberFieldProps } from "./components/number-field/number-field.js";
|
|
80
|
+
import { OtpField, OtpFieldProps } from "./components/otp-field/otp-field.js";
|
|
56
81
|
import { Pager, PagerLink, PagerLinkProps, PagerProps } from "./components/pager/pager.js";
|
|
82
|
+
import { Pagination, PaginationProps } from "./components/pagination/pagination.js";
|
|
57
83
|
import { Parameter, ParameterList, ParameterProps } from "./components/parameter-list/parameter-list.js";
|
|
58
84
|
import { Popover, PopoverClose, PopoverContent, PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger } from "./components/popover/popover.js";
|
|
59
85
|
import { Progress, ProgressLabel, ProgressProps, ProgressTrack, ProgressValue } from "./components/progress/progress.js";
|
|
86
|
+
import { PromptInput, PromptInputActions, PromptInputAttach, PromptInputAttachProps, PromptInputAttachments, PromptInputAttachmentsProps, PromptInputProps, PromptInputSubmit, PromptInputSubmitProps, PromptInputTextarea, PromptInputTextareaProps } from "./components/prompt-input/prompt-input.js";
|
|
60
87
|
import { Prose } from "./components/prose/prose.js";
|
|
61
88
|
import { Quote, QuoteProps } from "./components/quote/quote.js";
|
|
62
89
|
import { Radio, RadioGroup, RadioGroupProps, RadioProps } from "./components/radio/radio.js";
|
|
90
|
+
import { RadioCard, RadioCardProps } from "./components/radio-card/radio-card.js";
|
|
63
91
|
import { ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle } from "./components/reference-entry/reference-entry.js";
|
|
92
|
+
import { RollingNumber, RollingNumberProps } from "./components/rolling-number/rolling-number.js";
|
|
64
93
|
import { ScrollFade, ScrollFadeProps } from "./components/scroll-fade/scroll-fade.js";
|
|
65
94
|
import { useScrollEdges } from "./components/scroll-fade/use-scroll-edges.js";
|
|
66
95
|
import { Seam, SeamProps } from "./components/seam/seam.js";
|
|
96
|
+
import { SecretField, SecretFieldProps } from "./components/secret-field/secret-field.js";
|
|
67
97
|
import { Section, SectionProps } from "./components/section/section.js";
|
|
68
98
|
import { Segment, SegmentProps, SegmentedControl, SegmentedControlProps } from "./components/segmented-control/segmented-control.js";
|
|
69
99
|
import { Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupLabel, SelectItem, SelectItemProps, SelectOption, SelectOptionGroup, SelectProps, SelectSeparator, SelectTrigger, SelectTriggerProps } from "./components/select/select.js";
|
|
70
100
|
import { Separator, SeparatorProps } from "./components/separator/separator.js";
|
|
71
101
|
import { Shimmer, ShimmerProps } from "./components/shimmer/shimmer.js";
|
|
102
|
+
import { Shortcut, ShortcutProps, ShortcutProvider, ShortcutProviderProps, UseShortcutOptions, usePlatform, useShortcut } from "./components/shortcut/shortcut.js";
|
|
72
103
|
import { SideNav, SideNavGroup, SideNavGroupProps, SideNavLink, SideNavLinkProps, SideNavProps, SideNavSubLink, SideNavSubLinkProps } from "./components/side-nav/side-nav.js";
|
|
104
|
+
import { Sidebar, SidebarButton, SidebarButtonProps, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupProps, SidebarHeader, SidebarItem, SidebarItemProps, SidebarMenu, SidebarMenuProps, SidebarProps, SidebarSubItem, SidebarSubItemProps, SidebarTrigger, SidebarTriggerProps } from "./components/sidebar/sidebar.js";
|
|
73
105
|
import { SiteFooter, SiteFooterBrand, SiteFooterGroup, SiteFooterGroupProps, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, siteFooterLinkClass } from "./components/site-footer/site-footer.js";
|
|
74
106
|
import { SiteHeader, SiteHeaderActions, SiteHeaderBrand, SiteHeaderBrandProps, SiteHeaderMenu, SiteHeaderMenuGroup, SiteHeaderMenuGroupProps, SiteHeaderMenuLink, SiteHeaderMenuLinkProps, SiteHeaderMenuProps, SiteHeaderProps } from "./components/site-header/site-header.js";
|
|
107
|
+
import { Loaded, LoadedProps } from "./components/skeleton/loaded.js";
|
|
108
|
+
import { Skeleton, SkeletonGroup, SkeletonGroupProps, SkeletonProps } from "./components/skeleton/skeleton.js";
|
|
75
109
|
import { Slider, SliderControl, SliderControlProps, SliderLabel, SliderProps, SliderThumb, SliderThumbProps, SliderValue } from "./components/slider/slider.js";
|
|
110
|
+
import { Source, siteOf } from "./components/sources/source-list.js";
|
|
111
|
+
import { SourceList, SourceListProps, SourceReference, SourceReferenceProps, Sources, SourcesProps } from "./components/sources/sources.js";
|
|
76
112
|
import { Spinner, SpinnerProps } from "./components/spinner/spinner.js";
|
|
113
|
+
import { Stat, StatChange, StatChangeProps, StatGroup, StatGroupProps, StatLabel, StatTrend, StatValue } from "./components/stat/stat.js";
|
|
114
|
+
import { Step, StepProps, StepStatus, Steps, StepsProps } from "./components/steps/steps.js";
|
|
77
115
|
import { Switch, SwitchProps } from "./components/switch/switch.js";
|
|
78
116
|
import { Table, TableBody, TableCaption, TableCell, TableCellProps, TableFooter, TableHead, TableHeadProps, TableHeader, TableProps, TableRow, TableRowProps, TableSortButton, TableSortButtonProps } from "./components/table/table.js";
|
|
79
117
|
import { TableOfContents, TableOfContentsProps, TocItem } from "./components/table-of-contents/table-of-contents.js";
|
|
@@ -82,9 +120,14 @@ import { Text, TextProps } from "./components/text/text.js";
|
|
|
82
120
|
import { Textarea, TextareaProps } from "./components/textarea/textarea.js";
|
|
83
121
|
import { Theme, ThemeSwitch, ThemeSwitchProps } from "./components/theme-switch/theme-switch.js";
|
|
84
122
|
import { TimeField, TimeFieldProps } from "./components/time-field/time-field.js";
|
|
123
|
+
import { Timeline, TimelineGroup, TimelineGroupProps, TimelineItem, TimelineItemProps } from "./components/timeline/timeline.js";
|
|
85
124
|
import { ToastOptions, ToastTone, Toaster, ToasterProps, toast, toastManager } from "./components/toast/toast.js";
|
|
125
|
+
import { Toggle, ToggleProps } from "./components/toggle/toggle.js";
|
|
126
|
+
import { ToggleGroup, ToggleGroupProps } from "./components/toggle-group/toggle-group.js";
|
|
127
|
+
import { Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarGroup, ToolbarInput, ToolbarInputProps, ToolbarLink, ToolbarProps, ToolbarSeparator } from "./components/toolbar/toolbar.js";
|
|
86
128
|
import { Tooltip, TooltipContent, TooltipContentProps, TooltipProvider, TooltipTrigger } from "./components/tooltip/tooltip.js";
|
|
87
129
|
import { Trace, TraceMarks, TraceProps, TraceStatus, TraceStep, TraceStepProps, TraceSummary, TraceSummaryProps } from "./components/trace/trace.js";
|
|
88
130
|
import { cn, mergeClassName } from "./lib/cn.js";
|
|
131
|
+
import { Platform } from "./lib/shortcut.js";
|
|
89
132
|
import { SpringName, springs, transitions } from "./motion/springs.js";
|
|
90
|
-
export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AnchorHeading, type AnchorHeadingProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariants, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutTone, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItems, type CheckboxGroupProps, type CheckboxProps, Code, CodeBlock, CodeBlockLive, type CodeBlockLiveProps, type CodeBlockProps, type CodeKeyOptions, type CodeLanguage, type CodePiece, type CodeRole, type CodeTab, CodeTabs, type CodeTabsProps, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxCollection, ComboboxContent, type ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxOption, type ComboboxOptionGroup, type ComboboxProps, ComboboxSeparator, Container, type ContainerProps, CopyPage, type CopyPageProps, CopyPill, CopyPillMark, type CopyPillProps, Cta, CtaAction, type CtaActionProps, CtaActions, CtaMessage, type CtaMessageProps, type CtaProps, CtaText, CtaTitle, type CtaTone, DateField, type DateFieldProps, type DateRange, DateRangeField, type DateRangeFieldProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DocsCrumb, type DocsGroup, DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav, type DocsNav, type DocsPage, type DocsPlace, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, type DrawerSide, DrawerTitle, DrawerTrigger, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Figure, FigureCaption, FigureFrame, Form, type FormProps, Ground, type GroundName, type GroundProps, Grow, type GrowProps, Heading, type HeadingProps, HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger, type HoverCardTriggerProps, Icon, type IconProps, type IconSvgElement, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Kbd, type LineSpec, Link, type LinkProps, type LinkVariants, Logomark, type LogomarkProps, Menu, MenuCheckboxItem, MenuContent, type MenuContentProps, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Meter, MeterLabel, type MeterProps, MeterTrack, MeterValue, NavigationMenu, NavigationMenuContent, type NavigationMenuEntryVariants, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, type NavigationMenuLinkProps, NavigationMenuLinkTitle, NavigationMenuList, type NavigationMenuProps, NavigationMenuTrigger, NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, type NumberFieldProps, Pager, PagerLink, type PagerLinkProps, type PagerProps, Parameter, ParameterList, type ParameterProps, Popover, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, Prose, Quote, type QuoteProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle, ScrollFade, type ScrollFadeProps, Seam, type SeamProps, Section, type SectionProps, Segment, type SegmentProps, SegmentedControl, type SegmentedControlProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, SelectItem, type SelectItemProps, type SelectOption, type SelectOptionGroup, type SelectProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, Separator, type SeparatorProps, Shimmer, type ShimmerProps, SideNav, SideNavGroup, type SideNavGroupProps, SideNavLink, type SideNavLinkProps, type SideNavProps, SideNavSubLink, type SideNavSubLinkProps, SiteFooter, SiteFooterBrand, SiteFooterGroup, type SiteFooterGroupProps, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, SiteHeader, SiteHeaderActions, SiteHeaderBrand, type SiteHeaderBrandProps, SiteHeaderMenu, SiteHeaderMenuGroup, type SiteHeaderMenuGroupProps, SiteHeaderMenuLink, type SiteHeaderMenuLinkProps, type SiteHeaderMenuProps, type SiteHeaderProps, Slider, SliderControl, type SliderControlProps, SliderLabel, type SliderProps, SliderThumb, type SliderThumbProps, SliderValue, Spinner, type SpinnerProps, type SpringName, Switch, type SwitchProps, Tab, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, TableOfContents, type TableOfContentsProps, type TableProps, TableRow, type TableRowProps, TableSortButton, type TableSortButtonProps, Tabs, TabsList, TabsPanel, TabsPanels, type TabsPanelsProps, type TabsProps, Text, type TextProps, Textarea, type TextareaProps, type Theme, ThemeSwitch, type ThemeSwitchProps, TimeField, type TimeFieldProps, type ToastOptions, type ToastTone, Toaster, type ToasterProps, type TocItem, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Trace, type TraceMarks, type TraceProps, type TraceStatus, TraceStep, type TraceStepProps, TraceSummary, type TraceSummaryProps, Wordmark, type WordmarkProps, buttonVariants, cn, containerVariants, docsPageState, docsPages, findDocsPage, linkVariants, mergeClassName, navigationMenuEntryVariants, sameDocsPage, siteFooterLinkClass, springs, toast, toastManager, transitions, useGround, useScrollEdges };
|
|
133
|
+
export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, ActionBar, ActionBarButton, type ActionBarButtonProps, type ActionBarProps, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AnchorHeading, type AnchorHeadingProps, AppShell, AppShellBar, AppShellMain, AppShellPage, type AppShellProps, Attachment, type AttachmentProps, type AttachmentStatus, type AttachmentVariant, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarPerson, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, type BannerTone, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariants, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutTone, Card, CardBar, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxCard, type CheckboxCardProps, CheckboxGroup, CheckboxGroupItems, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Code, CodeBlock, CodeBlockLive, type CodeBlockLiveProps, type CodeBlockProps, type CodeKeyOptions, type CodeLanguage, type CodePiece, type CodeRole, type CodeTab, CodeTabs, type CodeTabsProps, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxChips, type ComboboxChipsProps, ComboboxCollection, ComboboxContent, type ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxOption, type ComboboxOptionGroup, type ComboboxProps, ComboboxSeparator, Command, CommandContent, type CommandContentProps, type CommandEntry, CommandFooter, type CommandFooterProps, CommandInput, type CommandInputProps, type CommandItems, CommandList, type CommandListProps, type CommandProps, type CommandSection, CommandTrigger, type ConsentCategory, type ConsentChange, type ConsentConfig, ConsentEmbed, type ConsentEmbedProps, ConsentGate, type ConsentGateProps, type ConsentJar, type ConsentLabels, ConsentProvider, type ConsentProviderProps, type ConsentRecord, type ConsentService, ConsentSettingsTrigger, type ConsentSettingsTriggerProps, type ConsentStatus, type ConsentStorage, type ConsentStorageKind, Container, type ContainerProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, ContextMenuTrigger, Conversation, type ConversationApi, ConversationContent, type ConversationContentProps, ConversationLatest, type ConversationLatestProps, type ConversationProps, CopyButton, type CopyButtonLabels, type CopyButtonProps, CopyPage, type CopyPageProps, CopyPill, CopyPillMark, type CopyPillProps, Cta, CtaAction, type CtaActionProps, CtaActions, CtaMessage, type CtaMessageProps, type CtaProps, CtaText, CtaTitle, type CtaTone, DateField, type DateFieldProps, type DateRange, DateRangeField, type DateRangeFieldProps, DescriptionDetails, type DescriptionDetailsProps, DescriptionList, type DescriptionListProps, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DocsCrumb, type DocsGroup, DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav, type DocsNav, type DocsPage, type DocsPlace, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, type DrawerSide, DrawerTitle, DrawerTrigger, Empty, EmptyActions, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyText, EmptyTitle, type EmptyTitleProps, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Figure, FigureCaption, FigureFrame, type FileKind, type FileRejection, type FileRules, FileUpload, FileUploadItem, type FileUploadItemProps, FileUploadList, type FileUploadListProps, type FileUploadProps, type FileUploadStatus, FileUploadZone, type FileUploadZoneProps, Form, type FormProps, Ground, type GroundName, type GroundProps, Grow, type GrowProps, Heading, type HeadingProps, HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger, type HoverCardTriggerProps, Icon, type IconProps, type IconSvgElement, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Kbd, type LineSpec, Link, type LinkProps, type LinkVariants, Loaded, type LoadedProps, Logomark, type LogomarkProps, Menu, MenuCheckboxItem, MenuContent, type MenuContentProps, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Message, MessageAction, type MessageActionProps, MessageActions, MessageAttachments, type MessageAttachmentsProps, MessageContent, type MessageContentProps, MessageError, type MessageErrorProps, MessageFeedback, type MessageFeedbackProps, type MessageFrom, type MessageProps, type MessageVerdict, Meter, MeterLabel, type MeterProps, MeterTrack, MeterValue, NavigationMenu, NavigationMenuContent, type NavigationMenuEntryVariants, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, type NavigationMenuLinkProps, NavigationMenuLinkTitle, NavigationMenuList, type NavigationMenuProps, NavigationMenuTrigger, NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, type NumberFieldProps, OtpField, type OtpFieldProps, Pager, PagerLink, type PagerLinkProps, type PagerProps, Pagination, type PaginationProps, Parameter, ParameterList, type ParameterProps, type Platform, Popover, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger, type Presence, Progress, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, PromptInput, PromptInputActions, PromptInputAttach, type PromptInputAttachProps, PromptInputAttachments, type PromptInputAttachmentsProps, type PromptInputProps, PromptInputSubmit, type PromptInputSubmitProps, PromptInputTextarea, type PromptInputTextareaProps, Prose, Quote, type QuoteProps, Radio, RadioCard, type RadioCardProps, RadioGroup, type RadioGroupProps, type RadioProps, ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle, RollingNumber, type RollingNumberProps, ScrollFade, type ScrollFadeProps, Seam, type SeamProps, SecretField, type SecretFieldProps, Section, type SectionProps, Segment, type SegmentProps, SegmentedControl, type SegmentedControlProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, SelectItem, type SelectItemProps, type SelectOption, type SelectOptionGroup, type SelectProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, Separator, type SeparatorProps, Shimmer, type ShimmerProps, Shortcut, type ShortcutProps, ShortcutProvider, type ShortcutProviderProps, SideNav, SideNavGroup, type SideNavGroupProps, SideNavLink, type SideNavLinkProps, type SideNavProps, SideNavSubLink, type SideNavSubLinkProps, Sidebar, SidebarButton, type SidebarButtonProps, SidebarContent, SidebarFooter, SidebarGroup, type SidebarGroupProps, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarMenu, type SidebarMenuProps, type SidebarProps, SidebarSubItem, type SidebarSubItemProps, SidebarTrigger, type SidebarTriggerProps, SiteFooter, SiteFooterBrand, SiteFooterGroup, type SiteFooterGroupProps, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, SiteHeader, SiteHeaderActions, SiteHeaderBrand, type SiteHeaderBrandProps, SiteHeaderMenu, SiteHeaderMenuGroup, type SiteHeaderMenuGroupProps, SiteHeaderMenuLink, type SiteHeaderMenuLinkProps, type SiteHeaderMenuProps, type SiteHeaderProps, Skeleton, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps, Slider, SliderControl, type SliderControlProps, SliderLabel, type SliderProps, SliderThumb, type SliderThumbProps, SliderValue, type Source, SourceList, type SourceListProps, SourceReference, type SourceReferenceProps, Sources, type SourcesProps, Spinner, type SpinnerProps, type SpringName, Stat, StatChange, type StatChangeProps, StatGroup, type StatGroupProps, StatLabel, type StatTrend, StatValue, Step, type StepProps, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, Tab, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, TableOfContents, type TableOfContentsProps, type TableProps, TableRow, type TableRowProps, TableSortButton, type TableSortButtonProps, Tabs, TabsList, TabsPanel, TabsPanels, type TabsPanelsProps, type TabsProps, Text, type TextProps, Textarea, type TextareaProps, type Theme, ThemeSwitch, type ThemeSwitchProps, TimeField, type TimeFieldProps, Timeline, TimelineGroup, type TimelineGroupProps, TimelineItem, type TimelineItemProps, type ToastOptions, type ToastTone, Toaster, type ToasterProps, type TocItem, Toggle, ToggleGroup, type ToggleGroupProps, type ToggleProps, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, ToolbarInput, type ToolbarInputProps, ToolbarLink, type ToolbarProps, ToolbarSeparator, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Trace, type TraceMarks, type TraceProps, type TraceStatus, TraceStep, type TraceStepProps, TraceSummary, type TraceSummaryProps, type UseConsentResult, type UseShortcutOptions, Wordmark, type WordmarkProps, acceptsFile, buttonVariants, cn, consentAllows, consentLabels, containerVariants, createMemoryJar, docsPageState, docsPages, findDocsPage, formatFileProgress, formatFileSize, kindOf, linkVariants, mergeClassName, navigationMenuEntryVariants, parseConsent, sameDocsPage, siteFooterLinkClass, siteOf, sortFiles, springs, toast, toastManager, transitions, useConsent, useConversation, useGround, usePlatform, useScrollEdges, useShortcut };
|