@stll/ui 0.71.0 → 0.73.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/calendar/primitives.d.ts +7 -7
- package/dist/components/alert-dialog.d.ts +15 -15
- package/dist/components/animated-preview.d.ts +9 -9
- package/dist/components/animated-preview.js +3 -3
- package/dist/components/application-rail.d.ts +8 -8
- package/dist/components/bidi-text.d.ts +7 -7
- package/dist/components/brand-icons.d.ts +5 -5
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/button.d.ts +4 -2
- package/dist/components/button.js +8 -1
- package/dist/components/button.native-classes.js +15 -0
- package/dist/components/button.shared.d.ts +5 -1
- package/dist/components/button.shared.js +6 -0
- package/dist/components/checkbox.d.ts +15 -1
- package/dist/components/checkbox.js +74 -30
- package/dist/components/collapsible.d.ts +2 -2
- package/dist/components/collapsible.js +3 -3
- package/dist/components/color-picker.d.ts +4 -4
- package/dist/components/combobox.d.ts +23 -23
- package/dist/components/combobox.js +6 -6
- package/dist/components/command.d.ts +19 -19
- package/dist/components/composer.js +1 -1
- package/dist/components/destructive-action-confirmation.d.ts +5 -5
- package/dist/components/destructive-action-confirmation.js +2 -2
- package/dist/components/destructive-confirm-dialog.d.ts +7 -7
- package/dist/components/details-grid.d.ts +6 -6
- package/dist/components/dialog.d.ts +19 -19
- package/dist/components/frame.d.ts +7 -7
- package/dist/components/hex-color-picker.d.ts +16 -2
- package/dist/components/highlighted-textarea.d.ts +13 -0
- package/dist/components/highlighted-textarea.js +47 -0
- package/dist/components/input-group.d.ts +6 -6
- package/dist/components/input-otp.d.ts +7 -7
- package/dist/components/input-otp.js +2 -2
- package/dist/components/input.d.ts +5 -5
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/list.d.ts +20 -20
- package/dist/components/menu.d.ts +22 -21
- package/dist/components/menu.js +4 -1
- package/dist/components/outcome-screen-view.d.ts +88 -0
- package/dist/components/outcome-screen-view.js +170 -0
- package/dist/components/outcome-screen.d.ts +16 -0
- package/dist/components/outcome-screen.js +47 -0
- package/dist/components/outline-rail.d.ts +12 -0
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/popover.d.ts +10 -9
- package/dist/components/popover.js +4 -1
- package/dist/components/preview-pane.d.ts +6 -6
- package/dist/components/prose.d.ts +2 -2
- package/dist/components/scroll-to-top.d.ts +5 -0
- package/dist/components/search-field.d.ts +3 -3
- package/dist/components/select.d.ts +9 -9
- package/dist/components/select.js +11 -11
- package/dist/components/sheet.d.ts +16 -16
- package/dist/components/steps.d.ts +6 -6
- package/dist/components/switch.d.ts +5 -5
- package/dist/components/switch.native.d.ts +3 -3
- package/dist/components/table-layout.d.ts +14 -0
- package/dist/components/table-layout.js +15 -0
- package/dist/components/table.d.ts +18 -17
- package/dist/components/table.js +2 -1
- package/dist/components/textarea.d.ts +5 -3
- package/dist/components/textarea.js +27 -15
- package/dist/components/time-field.d.ts +3 -3
- package/dist/components/toast.d.ts +20 -20
- package/dist/components/toast.js +3 -3
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/tooltip-trigger-helper.d.ts +4 -4
- package/dist/components/truncated-text.d.ts +4 -4
- package/dist/components/truncated-text.js +3 -3
- package/dist/data-table/index.d.ts +7 -0
- package/dist/hooks/use-contained-handler.d.ts +2 -2
- package/dist/hooks/use-mobile.js +2 -2
- package/dist/hooks/use-viewport-width.js +2 -2
- package/dist/icons.d.ts +29 -1
- package/dist/icons.js +55 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +3 -1
- package/dist/inspector/chrome.d.ts +22 -22
- package/dist/inspector/index.d.ts +9 -0
- package/dist/kanban/grouping.d.ts +10 -0
- package/dist/kanban/index.d.ts +9 -0
- package/dist/kanban/sortable-interactions.d.ts +8 -8
- package/dist/kanban/sortable-interactions.js +11 -11
- package/dist/lib/button-disposition.d.ts +2 -2
- package/dist/lib/tooltip-content.d.ts +2 -2
- package/dist/lib/utils.d.ts +2 -2
- package/dist/styles/collapsible.css +26 -0
- package/dist/styles/theme.css +35 -0
- package/package.json +17 -9
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
3
3
|
import { ControlSize } from "../lib/control-size.js";
|
|
4
|
-
declare const Combobox: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => React
|
|
4
|
+
declare const Combobox: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => React.JSX.Element;
|
|
5
5
|
declare const ComboboxChipsInput: ({ className, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
|
|
6
6
|
size?: ControlSize | number;
|
|
7
|
-
ref?: React
|
|
8
|
-
}) => React
|
|
7
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
declare const ComboboxInput: ({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
|
|
10
10
|
showTrigger?: boolean;
|
|
11
11
|
showClear?: boolean;
|
|
12
|
-
startAddon?: React
|
|
12
|
+
startAddon?: React.ReactNode;
|
|
13
13
|
size?: ControlSize | number;
|
|
14
|
-
ref?: React
|
|
15
|
-
}) => React
|
|
14
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
16
|
declare const ComboboxTrigger: ({ className, variant, ...props }: Combobox$1.Trigger.Props & {
|
|
17
17
|
variant?: "plain" | "field";
|
|
18
|
-
}) => React
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
19
|
declare const ComboboxPopup: ({ className, children, side, sideOffset, alignOffset, align, ...props }: Combobox$1.Popup.Props & {
|
|
20
20
|
align?: Combobox$1.Positioner.Props["align"];
|
|
21
21
|
sideOffset?: Combobox$1.Positioner.Props["sideOffset"];
|
|
22
22
|
alignOffset?: Combobox$1.Positioner.Props["alignOffset"];
|
|
23
23
|
side?: Combobox$1.Positioner.Props["side"];
|
|
24
|
-
}) => React
|
|
25
|
-
declare const ComboboxItem: ({ className, children, ...props }: Combobox$1.Item.Props) => React
|
|
26
|
-
declare const ComboboxSeparator: ({ className, ...props }: Combobox$1.Separator.Props) => React
|
|
27
|
-
declare const ComboboxGroup: ({ className, ...props }: Combobox$1.Group.Props) => React
|
|
28
|
-
declare const ComboboxGroupLabel: ({ className, ...props }: Combobox$1.GroupLabel.Props) => React
|
|
29
|
-
declare const ComboboxEmpty: ({ className, ...props }: Combobox$1.Empty.Props) => React
|
|
30
|
-
declare const ComboboxRow: ({ className, ...props }: Combobox$1.Row.Props) => React
|
|
31
|
-
declare const ComboboxValue: ({ ...props }: Combobox$1.Value.Props) => React
|
|
32
|
-
declare const ComboboxList: ({ className, ...props }: Combobox$1.List.Props) => React
|
|
33
|
-
declare const ComboboxClear: ({ className, ...props }: Combobox$1.Clear.Props) => React
|
|
34
|
-
declare const ComboboxStatus: ({ className, ...props }: Combobox$1.Status.Props) => React
|
|
35
|
-
declare const ComboboxCollection: (props: Combobox$1.Collection.Props) => React
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
|
+
declare const ComboboxItem: ({ className, children, ...props }: Combobox$1.Item.Props) => React.JSX.Element;
|
|
26
|
+
declare const ComboboxSeparator: ({ className, ...props }: Combobox$1.Separator.Props) => React.JSX.Element;
|
|
27
|
+
declare const ComboboxGroup: ({ className, ...props }: Combobox$1.Group.Props) => React.JSX.Element;
|
|
28
|
+
declare const ComboboxGroupLabel: ({ className, ...props }: Combobox$1.GroupLabel.Props) => React.JSX.Element;
|
|
29
|
+
declare const ComboboxEmpty: ({ className, ...props }: Combobox$1.Empty.Props) => React.JSX.Element;
|
|
30
|
+
declare const ComboboxRow: ({ className, ...props }: Combobox$1.Row.Props) => React.JSX.Element;
|
|
31
|
+
declare const ComboboxValue: ({ ...props }: Combobox$1.Value.Props) => React.JSX.Element;
|
|
32
|
+
declare const ComboboxList: ({ className, ...props }: Combobox$1.List.Props) => React.JSX.Element;
|
|
33
|
+
declare const ComboboxClear: ({ className, ...props }: Combobox$1.Clear.Props) => React.JSX.Element;
|
|
34
|
+
declare const ComboboxStatus: ({ className, ...props }: Combobox$1.Status.Props) => React.JSX.Element;
|
|
35
|
+
declare const ComboboxCollection: (props: Combobox$1.Collection.Props) => React.JSX.Element;
|
|
36
36
|
declare const ComboboxChips: ({ className, children, startAddon, ...props }: Combobox$1.Chips.Props & {
|
|
37
|
-
startAddon?: React
|
|
38
|
-
}) => React
|
|
39
|
-
declare const ComboboxChip: ({ children, ...props }: Combobox$1.Chip.Props) => React
|
|
37
|
+
startAddon?: React.ReactNode;
|
|
38
|
+
}) => React.JSX.Element;
|
|
39
|
+
declare const ComboboxChip: ({ children, ...props }: Combobox$1.Chip.Props) => React.JSX.Element;
|
|
40
40
|
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
|
|
@@ -8,16 +8,16 @@ import { cn } from "../lib/utils.js";
|
|
|
8
8
|
import { Input } from "./input.js";
|
|
9
9
|
import { ScrollArea } from "./scroll-area.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import * as React
|
|
11
|
+
import * as React from "react";
|
|
12
12
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
13
13
|
// src/components/combobox.tsx
|
|
14
|
-
const ComboboxContext = React
|
|
14
|
+
const ComboboxContext = React.createContext({
|
|
15
15
|
chipsRef: null,
|
|
16
16
|
multiple: false
|
|
17
17
|
});
|
|
18
18
|
const Combobox = (props) => {
|
|
19
|
-
const chipsRef = React
|
|
20
|
-
const contextValue = React
|
|
19
|
+
const chipsRef = React.useRef(null);
|
|
20
|
+
const contextValue = React.useMemo(() => ({
|
|
21
21
|
chipsRef,
|
|
22
22
|
multiple: !!props.multiple
|
|
23
23
|
}), [chipsRef, props.multiple]);
|
|
@@ -101,7 +101,7 @@ const ComboboxTrigger = ({ className, variant = "plain", ...props }) => /* @__PU
|
|
|
101
101
|
...props
|
|
102
102
|
});
|
|
103
103
|
const ComboboxPopup = ({ className, children, side = "bottom", sideOffset = 4, alignOffset, align = "start", ...props }) => {
|
|
104
|
-
const { chipsRef } = React
|
|
104
|
+
const { chipsRef } = React.use(ComboboxContext);
|
|
105
105
|
return /* @__PURE__ */ jsx(Combobox$1.Portal, { children: /* @__PURE__ */ jsx(Combobox$1.Positioner, {
|
|
106
106
|
align,
|
|
107
107
|
alignOffset,
|
|
@@ -197,7 +197,7 @@ const ComboboxCollection = (props) => /* @__PURE__ */ jsx(Combobox$1.Collection,
|
|
|
197
197
|
...props
|
|
198
198
|
});
|
|
199
199
|
const ComboboxChips = ({ className, children, startAddon, ...props }) => {
|
|
200
|
-
const { chipsRef } = React
|
|
200
|
+
const { chipsRef } = React.use(ComboboxContext);
|
|
201
201
|
return /* @__PURE__ */ jsxs(Combobox$1.Chips, {
|
|
202
202
|
className: cn("border-input bg-background ring-ring/24 focus-within:border-ring has-autofill:bg-foreground/4 has-aria-invalid:border-destructive/36 focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/16 dark:not-has-disabled:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 relative inline-flex min-h-9 w-full flex-wrap gap-1 rounded-lg border p-[calc(--spacing(1)-1px)] text-base shadow-xs/5 outline-none *:min-h-7 not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:ring-[3px] has-disabled:pointer-events-none has-disabled:opacity-64 has-data-[size=lg]:min-h-10 has-data-[size=lg]:*:min-h-8 has-data-[size=sm]:min-h-8 has-data-[size=sm]:*:min-h-6 has-[:disabled,:focus-within,[aria-invalid]]:shadow-none sm:min-h-8 sm:text-sm sm:*:min-h-6 sm:has-data-[size=lg]:min-h-9 sm:has-data-[size=lg]:*:min-h-7 sm:has-data-[size=sm]:min-h-7 sm:has-data-[size=sm]:*:min-h-5 dark:not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]", className),
|
|
203
203
|
"data-slot": "combobox-chips",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
3
3
|
import { ControlSize } from "../lib/control-size.js";
|
|
4
4
|
import { Dialog } from "@base-ui/react/dialog";
|
|
@@ -7,32 +7,32 @@ import { VariantProps } from "class-variance-authority";
|
|
|
7
7
|
type CommandProps<ItemValue> = Omit<Autocomplete.Root.Props<ItemValue>, "items"> & {
|
|
8
8
|
items?: readonly ItemValue[] | undefined;
|
|
9
9
|
};
|
|
10
|
-
declare const Command: <ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>) => React
|
|
11
|
-
declare const CommandDialog: <Payload>(props: Dialog.Root.Props<Payload>) => React
|
|
12
|
-
declare const CommandDialogTrigger: (props: Dialog.Trigger.Props) => React
|
|
13
|
-
declare const CommandDialogPopup: ({ className, showCloseButton, ...props }: React
|
|
10
|
+
declare const Command: <ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>) => React.JSX.Element;
|
|
11
|
+
declare const CommandDialog: <Payload>(props: Dialog.Root.Props<Payload>) => React.JSX.Element;
|
|
12
|
+
declare const CommandDialogTrigger: (props: Dialog.Trigger.Props) => React.JSX.Element;
|
|
13
|
+
declare const CommandDialogPopup: ({ className, showCloseButton, ...props }: React.ComponentProps<typeof DialogPopup>) => React.JSX.Element;
|
|
14
14
|
type CommandInputProps = Omit<Autocomplete.Input.Props, "size"> & {
|
|
15
15
|
size?: ControlSize | number;
|
|
16
16
|
wrapperClassName?: string;
|
|
17
|
-
ref?: React
|
|
17
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
18
18
|
};
|
|
19
|
-
declare const CommandInput: ({ className, size, wrapperClassName, dir, onChange, ...props }: CommandInputProps) => React
|
|
20
|
-
declare const CommandPanel: ({ className, ...props }: React
|
|
21
|
-
declare const CommandEmpty: ({ className, ...props }: Autocomplete.Empty.Props) => React
|
|
19
|
+
declare const CommandInput: ({ className, size, wrapperClassName, dir, onChange, ...props }: CommandInputProps) => React.JSX.Element;
|
|
20
|
+
declare const CommandPanel: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
21
|
+
declare const CommandEmpty: ({ className, ...props }: Autocomplete.Empty.Props) => React.JSX.Element;
|
|
22
22
|
declare const CommandList: ({ className, ...props }: Autocomplete.List.Props & {
|
|
23
|
-
ref?: React
|
|
24
|
-
}) => React
|
|
25
|
-
declare const CommandGroup: ({ className, ...props }: Autocomplete.Group.Props) => React
|
|
26
|
-
declare const CommandGroupLabel: ({ className, ...props }: Autocomplete.GroupLabel.Props) => React
|
|
27
|
-
declare const CommandCollection: (props: Autocomplete.Collection.Props) => React
|
|
23
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
|
+
declare const CommandGroup: ({ className, ...props }: Autocomplete.Group.Props) => React.JSX.Element;
|
|
26
|
+
declare const CommandGroupLabel: ({ className, ...props }: Autocomplete.GroupLabel.Props) => React.JSX.Element;
|
|
27
|
+
declare const CommandCollection: (props: Autocomplete.Collection.Props) => React.JSX.Element;
|
|
28
28
|
declare const commandItemVariants: (props?: ({
|
|
29
29
|
size?: "default" | "row" | null | undefined;
|
|
30
30
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
31
31
|
declare const CommandItem: ({ className, size, ...props }: Autocomplete.Item.Props & {
|
|
32
|
-
ref?: React
|
|
32
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
33
33
|
size?: VariantProps<typeof commandItemVariants>["size"];
|
|
34
|
-
}) => React
|
|
35
|
-
declare const CommandSeparator: ({ className, ...props }: Autocomplete.Separator.Props) => React
|
|
36
|
-
declare const CommandShortcut: ({ className, ...props }: React
|
|
37
|
-
declare const CommandFooter: ({ className, ...props }: React
|
|
34
|
+
}) => React.JSX.Element;
|
|
35
|
+
declare const CommandSeparator: ({ className, ...props }: Autocomplete.Separator.Props) => React.JSX.Element;
|
|
36
|
+
declare const CommandShortcut: ({ className, ...props }: React.ComponentProps<"span">) => React.JSX.Element;
|
|
37
|
+
declare const CommandFooter: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
38
38
|
export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
|
|
@@ -63,8 +63,8 @@ const ComposerStatusRow = ({ start, end, center, className }) => {
|
|
|
63
63
|
const ComposerPicker = ({ ariaLabel, icon, onChange, options, value }) => {
|
|
64
64
|
const current = options.find((option) => option.value === value);
|
|
65
65
|
return /* @__PURE__ */ jsxs(Menu, { children: [/* @__PURE__ */ jsxs(MenuTrigger, {
|
|
66
|
+
appearance: "caption",
|
|
66
67
|
"aria-label": ariaLabel,
|
|
67
|
-
className: COMPOSER_PICKER_TRIGGER_CLASS,
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ jsx("span", {
|
|
70
70
|
className: "flex size-3 shrink-0 items-center justify-center [&>svg]:size-3",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { InputProps } from "./input.js";
|
|
3
3
|
type DestructiveActionConfirmationProps = Omit<InputProps, "onChange" | "type" | "value"> & {
|
|
4
4
|
confirmation: string;
|
|
5
|
-
description?: React
|
|
5
|
+
description?: React.ReactNode;
|
|
6
6
|
fieldClassName?: string;
|
|
7
7
|
inputClassName?: string;
|
|
8
|
-
label: React
|
|
8
|
+
label: React.ReactNode;
|
|
9
9
|
onValueChange: (value: string) => void;
|
|
10
10
|
value: string;
|
|
11
11
|
};
|
|
12
|
-
declare const DestructiveActionConfirmation: ({ className, confirmation, description, fieldClassName, inputClassName, label, onValueChange, value, ...props }: DestructiveActionConfirmationProps) => React
|
|
12
|
+
declare const DestructiveActionConfirmation: ({ className, confirmation, description, fieldClassName, inputClassName, label, onValueChange, value, ...props }: DestructiveActionConfirmationProps) => React.JSX.Element;
|
|
13
13
|
declare function useDestructiveActionConfirmation(confirmation: string): {
|
|
14
14
|
confirmed: boolean;
|
|
15
|
-
onValueChange: React
|
|
15
|
+
onValueChange: React.Dispatch<React.SetStateAction<string>>;
|
|
16
16
|
reset: () => void;
|
|
17
17
|
value: string;
|
|
18
18
|
};
|
|
@@ -3,7 +3,7 @@ import { cn } from "../lib/utils.js";
|
|
|
3
3
|
import { Field, FieldDescription, FieldLabel } from "./field.js";
|
|
4
4
|
import { Input } from "./input.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import * as React
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
// src/components/destructive-action-confirmation.tsx
|
|
8
8
|
const DestructiveActionConfirmation = ({ className, confirmation, description, fieldClassName, inputClassName, label, onValueChange, value, ...props }) => {
|
|
9
9
|
const confirmed = isDestructiveActionConfirmed({
|
|
@@ -40,7 +40,7 @@ const DestructiveActionConfirmation = ({ className, confirmation, description, f
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
function useDestructiveActionConfirmation(confirmation) {
|
|
43
|
-
const [value, setValue] = React
|
|
43
|
+
const [value, setValue] = React.useState("");
|
|
44
44
|
return {
|
|
45
45
|
confirmed: isDestructiveActionConfirmed({
|
|
46
46
|
confirmation,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* What a settled confirm asks of the dialog: `keep-open` when the action was
|
|
4
4
|
* refused and the dialog shows why, so the caller need not throw to keep it.
|
|
5
5
|
*/
|
|
6
6
|
type DestructiveConfirmOutcome = "keep-open";
|
|
7
7
|
type DestructiveConfirmDialogProps = {
|
|
8
|
-
cancelLabel: React
|
|
9
|
-
confirmLabel: React
|
|
8
|
+
cancelLabel: React.ReactNode;
|
|
9
|
+
confirmLabel: React.ReactNode;
|
|
10
10
|
confirmation: string;
|
|
11
|
-
description: React
|
|
12
|
-
inputLabel: React
|
|
11
|
+
description: React.ReactNode;
|
|
12
|
+
inputLabel: React.ReactNode;
|
|
13
13
|
loading?: boolean | undefined;
|
|
14
14
|
/** Settles to `"keep-open"` to keep the dialog; anything else closes it. */
|
|
15
15
|
onConfirm: () => unknown;
|
|
16
16
|
onOpenChange: (open: boolean) => void;
|
|
17
17
|
open: boolean;
|
|
18
|
-
title: React
|
|
18
|
+
title: React.ReactNode;
|
|
19
19
|
};
|
|
20
|
-
declare const DestructiveConfirmDialog: ({ cancelLabel, confirmLabel, confirmation, description, inputLabel, loading, onConfirm, onOpenChange, open, title }: DestructiveConfirmDialogProps) => React
|
|
20
|
+
declare const DestructiveConfirmDialog: ({ cancelLabel, confirmLabel, confirmation, description, inputLabel, loading, onConfirm, onOpenChange, open, title }: DestructiveConfirmDialogProps) => React.JSX.Element;
|
|
21
21
|
export { DestructiveConfirmDialog, type DestructiveConfirmDialogProps, type DestructiveConfirmOutcome };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* - `sheet`: a fact sheet; small uppercase labels, up to three pairs per row
|
|
4
4
|
* as the container widens.
|
|
@@ -22,16 +22,16 @@ type DetailsOrientation = "horizontal" | "vertical" | "auto";
|
|
|
22
22
|
* `lg` fix it, so several grids on one page line their values up.
|
|
23
23
|
*/
|
|
24
24
|
type DetailsLabelWidth = "auto" | "sm" | "md" | "lg";
|
|
25
|
-
type DetailsGridProps = React
|
|
25
|
+
type DetailsGridProps = React.ComponentProps<"dl"> & {
|
|
26
26
|
labelWidth?: DetailsLabelWidth;
|
|
27
27
|
orientation?: DetailsOrientation;
|
|
28
28
|
variant?: DetailsVariant;
|
|
29
29
|
};
|
|
30
|
-
declare const DetailsGrid: ({ className, labelWidth, orientation, variant, ...props }: DetailsGridProps) => React
|
|
31
|
-
type DetailsItemProps = React
|
|
32
|
-
label: React
|
|
30
|
+
declare const DetailsGrid: ({ className, labelWidth, orientation, variant, ...props }: DetailsGridProps) => React.JSX.Element;
|
|
31
|
+
type DetailsItemProps = React.ComponentProps<"div"> & {
|
|
32
|
+
label: React.ReactNode;
|
|
33
33
|
/** `wide` spans every pair column of a `sheet`. */
|
|
34
34
|
span?: "wide";
|
|
35
35
|
};
|
|
36
|
-
declare const DetailsItem: ({ label, children, span, className, ...props }: DetailsItemProps) => React
|
|
36
|
+
declare const DetailsItem: ({ label, children, span, className, ...props }: DetailsItemProps) => React.JSX.Element;
|
|
37
37
|
export { DetailsGrid, DetailsItem, type DetailsLabelWidth, type DetailsOrientation, type DetailsVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
3
3
|
import { DialogFormState } from "./dialog-form-state.js";
|
|
4
4
|
import { OverlayLayer } from "../lib/overlay-layer.js";
|
|
@@ -10,25 +10,25 @@ type DialogLabels = {
|
|
|
10
10
|
/** The hint after a click outside or on a close button: close again. */
|
|
11
11
|
unsavedChangesClose: string;
|
|
12
12
|
};
|
|
13
|
-
declare const DialogProvider: ({ labels, children }: React
|
|
13
|
+
declare const DialogProvider: ({ labels, children }: React.PropsWithChildren<{
|
|
14
14
|
labels: DialogLabels;
|
|
15
|
-
}>) => React
|
|
15
|
+
}>) => React.JSX.Element;
|
|
16
16
|
declare const Dialog: <Payload>({ dirty, onOpenChange, onOpenChangeComplete, ...props }: Dialog$1.Root.Props<Payload> & {
|
|
17
17
|
dirty?: boolean;
|
|
18
|
-
}) => React
|
|
19
|
-
declare const DialogPortal: React
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
|
+
declare const DialogPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
declare function DialogTrigger({ tooltip, ...props }: Dialog$1.Trigger.Props & {
|
|
21
|
-
tooltip?: React
|
|
22
|
-
}): React
|
|
21
|
+
tooltip?: React.ReactNode;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
23
|
declare function DialogClose({ tooltip, ...props }: Dialog$1.Close.Props & {
|
|
24
|
-
tooltip?: React
|
|
25
|
-
}): React
|
|
24
|
+
tooltip?: React.ReactNode;
|
|
25
|
+
}): React.JSX.Element;
|
|
26
26
|
declare const DialogBackdrop: ({ className, layer, ...props }: Dialog$1.Backdrop.Props & {
|
|
27
27
|
layer?: OverlayLayer;
|
|
28
|
-
}) => React
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
29
|
declare const DialogViewport: ({ className, layer, ...props }: Dialog$1.Viewport.Props & {
|
|
30
30
|
layer?: OverlayLayer;
|
|
31
|
-
}) => React
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
32
|
/** How the popup sits below `sm`; from `sm` up it is always centred. */
|
|
33
33
|
declare const DIALOG_MOBILE_LAYOUT: {
|
|
34
34
|
/** Pinned to the bottom edge, leaving the page visible above it. */
|
|
@@ -61,14 +61,14 @@ declare const DialogPopup: ({ backdropClassName, className, children, showCloseB
|
|
|
61
61
|
mobileLayout?: DialogMobileLayout;
|
|
62
62
|
layer?: OverlayLayer;
|
|
63
63
|
viewportClassName?: string;
|
|
64
|
-
}) => React
|
|
65
|
-
declare const DialogHeader: ({ className, ...props }: React
|
|
66
|
-
declare const DialogFooter: ({ className, variant, ...props }: React
|
|
64
|
+
}) => React.JSX.Element;
|
|
65
|
+
declare const DialogHeader: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
66
|
+
declare const DialogFooter: ({ className, variant, ...props }: React.ComponentProps<"div"> & {
|
|
67
67
|
variant?: "default" | "bare";
|
|
68
|
-
}) => React
|
|
69
|
-
declare const DialogTitle: ({ className, ...props }: Dialog$1.Title.Props) => React
|
|
70
|
-
declare const DialogDescription: ({ className, ...props }: Dialog$1.Description.Props) => React
|
|
71
|
-
declare const DialogPanel: ({ className, scrollFade, ...props }: React
|
|
68
|
+
}) => React.JSX.Element;
|
|
69
|
+
declare const DialogTitle: ({ className, ...props }: Dialog$1.Title.Props) => React.JSX.Element;
|
|
70
|
+
declare const DialogDescription: ({ className, ...props }: Dialog$1.Description.Props) => React.JSX.Element;
|
|
71
|
+
declare const DialogPanel: ({ className, scrollFade, ...props }: React.ComponentProps<"div"> & {
|
|
72
72
|
scrollFade?: boolean;
|
|
73
|
-
}) => React
|
|
73
|
+
}) => React.JSX.Element;
|
|
74
74
|
export { DIALOG_MOBILE_LAYOUT, DIALOG_SIZE_CLASS_NAMES, Dialog, DialogBackdrop, DialogBackdrop as DialogOverlay, DialogClose, DialogPopup as DialogContent, DialogPopup, DialogCreateHandle, DialogDescription, DialogFooter, DialogFormState, DialogHeader, type DialogLabels, type DialogMobileLayout, DialogPanel, DialogPortal, DialogProvider, type DialogSize, DialogTitle, DialogTrigger, DialogViewport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
declare const Frame: ({ className, ...props }: React
|
|
3
|
-
declare const FramePanel: ({ className, ...props }: React
|
|
4
|
-
declare const FrameHeader: ({ className, ...props }: React
|
|
5
|
-
declare const FrameTitle: ({ className, ...props }: React
|
|
6
|
-
declare const FrameDescription: ({ className, ...props }: React
|
|
7
|
-
declare const FrameFooter: ({ className, ...props }: React
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Frame: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
3
|
+
declare const FramePanel: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
4
|
+
declare const FrameHeader: ({ className, ...props }: React.ComponentProps<"header">) => React.JSX.Element;
|
|
5
|
+
declare const FrameTitle: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
6
|
+
declare const FrameDescription: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
7
|
+
declare const FrameFooter: ({ className, ...props }: React.ComponentProps<"footer">) => React.JSX.Element;
|
|
8
8
|
export { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle };
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Hex color picker — saturation/brightness square + hue strip.
|
|
3
|
+
*
|
|
4
|
+
* Adapted from react-colorful (MIT, Copyright 2020 Vlad Shilov).
|
|
5
|
+
* https://github.com/omgovich/react-colorful
|
|
6
|
+
*
|
|
7
|
+
* Changes from upstream:
|
|
8
|
+
* - Trimmed to hex-only (no RGB/HSL/alpha variants)
|
|
9
|
+
* - Dropped React.memo, useMemo, useCallback (React Compiler handles this)
|
|
10
|
+
* - Converted CSS classes to Tailwind
|
|
11
|
+
* - Merged small utility files into one module
|
|
12
|
+
* - Strict TypeScript (no `any`, no enums)
|
|
13
|
+
* - Arrow functions per project conventions
|
|
14
|
+
*/
|
|
15
|
+
import * as React from "react";
|
|
2
16
|
type HexColorPickerProps = {
|
|
3
17
|
/** Hex color with or without # (e.g. "#ff0000" or "FF0000") */
|
|
4
18
|
color?: string | undefined;
|
|
5
19
|
onChange?: (hex: string) => void;
|
|
6
20
|
className?: string;
|
|
7
21
|
};
|
|
8
|
-
declare const HexColorPicker: ({ color, onChange, className }: HexColorPickerProps) => React
|
|
22
|
+
declare const HexColorPicker: ({ color, onChange, className }: HexColorPickerProps) => React.JSX.Element;
|
|
9
23
|
export { HexColorPicker, type HexColorPickerProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** An editor whose visible text is supplied by a matching highlighted layer. */
|
|
3
|
+
declare const HighlightedTextarea: ({ className, id, name, disabled, value, dir, highlightedContent, onScroll, ...props }: HighlightedTextareaProps) => React.JSX.Element;
|
|
4
|
+
type HighlightedTextareaProps = Omit<React.ComponentProps<"textarea">, "children" | "className" | "defaultValue" | "dir" | "style" | "value" | "wrap"> & {
|
|
5
|
+
/** Layout of the enclosing editor; text presentation belongs to both layers. */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Omit to inherit the surrounding direction for both layers. */
|
|
8
|
+
dir?: "ltr" | "rtl";
|
|
9
|
+
/** The same text as value, with optional inline highlighting. */
|
|
10
|
+
highlightedContent: React.ReactNode;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
export { HighlightedTextarea, type HighlightedTextareaProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { useRef } from "react";
|
|
5
|
+
import { Field } from "@base-ui/react/field";
|
|
6
|
+
// src/components/highlighted-textarea.tsx
|
|
7
|
+
/** An editor whose visible text is supplied by a matching highlighted layer. */
|
|
8
|
+
const HighlightedTextarea = ({ className, id, name, disabled, value, dir, highlightedContent, onScroll, ...props }) => {
|
|
9
|
+
const backdropRef = useRef(null);
|
|
10
|
+
const syncScroll = (event) => {
|
|
11
|
+
if (backdropRef.current) {
|
|
12
|
+
backdropRef.current.scrollTop = event.currentTarget.scrollTop;
|
|
13
|
+
backdropRef.current.scrollLeft = event.currentTarget.scrollLeft;
|
|
14
|
+
}
|
|
15
|
+
onScroll?.(event);
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
18
|
+
className: cn("relative min-h-0", className),
|
|
19
|
+
"data-slot": "highlighted-textarea",
|
|
20
|
+
dir,
|
|
21
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
22
|
+
"aria-hidden": "true",
|
|
23
|
+
className: cn(TEXT_LAYER_CLASS, "text-foreground pointer-events-none absolute inset-0 overflow-hidden"),
|
|
24
|
+
"data-slot": "highlighted-textarea-backdrop",
|
|
25
|
+
ref: backdropRef,
|
|
26
|
+
children: [highlightedContent, value.endsWith("\n") ? "" : null]
|
|
27
|
+
}), /* @__PURE__ */ jsx(Field.Control, {
|
|
28
|
+
id,
|
|
29
|
+
name,
|
|
30
|
+
disabled,
|
|
31
|
+
value,
|
|
32
|
+
render: /* @__PURE__ */ jsx("textarea", {
|
|
33
|
+
className: cn(TEXT_LAYER_CLASS, "caret-foreground ring-ring absolute inset-0 border-0 bg-transparent text-transparent outline-none [-webkit-text-fill-color:transparent] focus-visible:ring-2 focus-visible:ring-inset"),
|
|
34
|
+
"data-slot": "highlighted-textarea-editor",
|
|
35
|
+
dir,
|
|
36
|
+
...props,
|
|
37
|
+
defaultValue: void 0,
|
|
38
|
+
style: void 0,
|
|
39
|
+
wrap: void 0,
|
|
40
|
+
onScroll: syncScroll,
|
|
41
|
+
children: null
|
|
42
|
+
})
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
const TEXT_LAYER_CLASS = "m-0 h-full w-full resize-none scrollbar-stable p-4 font-sans text-sm leading-relaxed whitespace-pre-wrap [overflow-wrap:anywhere]";
|
|
47
|
+
export { HighlightedTextarea };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { InputProps } from "./input.js";
|
|
3
3
|
import { TextareaProps } from "./textarea.js";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
declare const InputGroup: ({ className, ...props }: React
|
|
5
|
+
declare const InputGroup: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
6
6
|
declare const inputGroupAddonVariants: (props?: ({
|
|
7
7
|
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
-
declare const InputGroupAddon: ({ className, align, ...props }: React
|
|
10
|
-
declare const InputGroupText: ({ className, ...props }: React
|
|
11
|
-
declare const InputGroupInput: ({ className, ...props }: InputProps) => React
|
|
12
|
-
declare const InputGroupTextarea: ({ className, ...props }: TextareaProps) => React
|
|
9
|
+
declare const InputGroupAddon: ({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) => React.JSX.Element;
|
|
10
|
+
declare const InputGroupText: ({ className, ...props }: React.ComponentProps<"span">) => React.JSX.Element;
|
|
11
|
+
declare const InputGroupInput: ({ className, ...props }: InputProps) => React.JSX.Element;
|
|
12
|
+
declare const InputGroupTextarea: ({ className, ...props }: TextareaProps) => React.JSX.Element;
|
|
13
13
|
export { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { OTPInput } from "input-otp";
|
|
3
|
-
declare const InputOTP: ({ className, containerClassName, ...props }: React
|
|
3
|
+
declare const InputOTP: ({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
4
4
|
containerClassName?: string;
|
|
5
|
-
}) => React
|
|
6
|
-
declare const InputOTPGroup: ({ className, ...props }: React
|
|
7
|
-
declare const InputOTPSlot: ({ index, className, ...props }: React
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
declare const InputOTPGroup: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
7
|
+
declare const InputOTPSlot: ({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
8
8
|
index: number;
|
|
9
|
-
}) => React
|
|
10
|
-
declare const InputOTPSeparator: ({ ...props }: React
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
declare const InputOTPSeparator: ({ ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
11
11
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { MinusIcon } from "../icons.js";
|
|
3
3
|
import { cn } from "../lib/utils.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import * as React
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
7
7
|
// src/components/input-otp.tsx
|
|
8
8
|
const InputOTP = ({ className, containerClassName, ...props }) => /* @__PURE__ */ jsx(OTPInput, {
|
|
@@ -17,7 +17,7 @@ const InputOTPGroup = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
17
17
|
...props
|
|
18
18
|
});
|
|
19
19
|
const InputOTPSlot = ({ index, className, ...props }) => {
|
|
20
|
-
const { char, hasFakeCaret, isActive } = React
|
|
20
|
+
const { char, hasFakeCaret, isActive } = React.use(OTPInputContext).slots[index] ?? {};
|
|
21
21
|
return /* @__PURE__ */ jsxs("div", {
|
|
22
22
|
className: cn("border-input aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex h-9 w-9 items-center justify-center border-y border-e text-sm shadow-xs outline-none first:rounded-s-md first:border-s last:rounded-e-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", className),
|
|
23
23
|
"data-active": isActive,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { ControlSize } from "../lib/control-size.js";
|
|
3
3
|
import { Input as Input$1 } from "@base-ui/react/input";
|
|
4
|
-
type InputProps = Omit<Input$1.Props & React
|
|
5
|
-
type?: Exclude<React
|
|
4
|
+
type InputProps = Omit<Input$1.Props & React.RefAttributes<HTMLInputElement>, "size" | "style" | "type"> & {
|
|
5
|
+
type?: Exclude<React.HTMLInputTypeAttribute, "file"> | undefined;
|
|
6
6
|
size?: ControlSize | number;
|
|
7
|
-
style?: React
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
8
|
unstyled?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* A borderless field in a line of text: it edits a value where it is read,
|
|
@@ -14,5 +14,5 @@ type InputProps = Omit<Input$1.Props & React$1.RefAttributes<HTMLInputElement>,
|
|
|
14
14
|
inline?: boolean;
|
|
15
15
|
nativeInput?: boolean;
|
|
16
16
|
};
|
|
17
|
-
declare const Input: ({ className, size, unstyled, inline, nativeInput, dir, onChange, ...props }: InputProps) => React
|
|
17
|
+
declare const Input: ({ className, size, unstyled, inline, nativeInput, dir, onChange, ...props }: InputProps) => React.JSX.Element;
|
|
18
18
|
export { Input, type InputProps };
|
package/dist/components/kbd.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* A key or a key combination, drawn as key caps.
|
|
4
4
|
*
|
|
@@ -11,7 +11,7 @@ import * as React$1 from "react";
|
|
|
11
11
|
* `MenuShortcut` and `TooltipPopup`'s `shortcut` render through it, so a
|
|
12
12
|
* shortcut reads the same in a menu, a tooltip and a hint.
|
|
13
13
|
*/
|
|
14
|
-
declare const Kbd: ({ className, children, keys, variant, ...props }: KbdProps) => React
|
|
14
|
+
declare const Kbd: ({ className, children, keys, variant, ...props }: KbdProps) => React.JSX.Element;
|
|
15
15
|
/** A modifier or named key `Kbd` spells per platform; anything else as is. */
|
|
16
16
|
type KbdNamedKey = "mod" | "ctrl" | "alt" | "shift" | "enter" | "escape" | "backspace" | "delete" | "tab" | "up" | "down" | "left" | "right";
|
|
17
17
|
/**
|
|
@@ -32,7 +32,7 @@ type KbdPlatform = "apple" | "other";
|
|
|
32
32
|
* labels (a menu item), where caps would crowd it.
|
|
33
33
|
*/
|
|
34
34
|
type KbdVariant = "cap" | "plain";
|
|
35
|
-
type KbdProps = React
|
|
35
|
+
type KbdProps = React.ComponentProps<"kbd"> & {
|
|
36
36
|
keys?: KbdKeys | undefined;
|
|
37
37
|
variant?: KbdVariant | undefined;
|
|
38
38
|
};
|