xiod-ui 1.0.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/LICENSE +73 -0
- package/README.md +167 -0
- package/dist/components/accordion.d.ts +9 -0
- package/dist/components/accordion.js +46 -0
- package/dist/components/agent-steps.d.ts +47 -0
- package/dist/components/agent-steps.js +223 -0
- package/dist/components/alert-dialog.d.ts +21 -0
- package/dist/components/alert-dialog.js +74 -0
- package/dist/components/alert.d.ts +12 -0
- package/dist/components/alert.js +45 -0
- package/dist/components/aspect-ratio.d.ts +9 -0
- package/dist/components/aspect-ratio.js +22 -0
- package/dist/components/autocomplete.d.ts +35 -0
- package/dist/components/autocomplete.js +160 -0
- package/dist/components/avatar.d.ts +17 -0
- package/dist/components/avatar.js +65 -0
- package/dist/components/badge.d.ts +15 -0
- package/dist/components/badge.js +46 -0
- package/dist/components/breadcrumb.d.ts +12 -0
- package/dist/components/breadcrumb.js +75 -0
- package/dist/components/button-group.d.ts +14 -0
- package/dist/components/button-group.js +45 -0
- package/dist/components/button-split.d.ts +19 -0
- package/dist/components/button-split.js +73 -0
- package/dist/components/button.d.ts +15 -0
- package/dist/components/button.js +54 -0
- package/dist/components/calendar.d.ts +63 -0
- package/dist/components/calendar.js +425 -0
- package/dist/components/card.d.ts +17 -0
- package/dist/components/card.js +139 -0
- package/dist/components/carousel.d.ts +59 -0
- package/dist/components/carousel.js +503 -0
- package/dist/components/checkbox.d.ts +16 -0
- package/dist/components/checkbox.js +86 -0
- package/dist/components/circular-progress.d.ts +28 -0
- package/dist/components/circular-progress.js +127 -0
- package/dist/components/collapsible.d.ts +8 -0
- package/dist/components/collapsible.js +27 -0
- package/dist/components/color-picker.d.ts +159 -0
- package/dist/components/color-picker.js +1589 -0
- package/dist/components/combobox.d.ts +46 -0
- package/dist/components/combobox.js +237 -0
- package/dist/components/command.d.ts +22 -0
- package/dist/components/command.js +129 -0
- package/dist/components/context-menu.d.ts +38 -0
- package/dist/components/context-menu.js +164 -0
- package/dist/components/copy-to-clipboard.d.ts +32 -0
- package/dist/components/copy-to-clipboard.js +83 -0
- package/dist/components/corner-badge.d.ts +22 -0
- package/dist/components/corner-badge.js +84 -0
- package/dist/components/dashboard-grid.d.ts +83 -0
- package/dist/components/dashboard-grid.js +486 -0
- package/dist/components/date-picker.d.ts +29 -0
- package/dist/components/date-picker.js +261 -0
- package/dist/components/dialog.d.ts +26 -0
- package/dist/components/dialog.js +97 -0
- package/dist/components/dot-matrix.d.ts +32 -0
- package/dist/components/dot-matrix.js +707 -0
- package/dist/components/draggable.d.ts +42 -0
- package/dist/components/draggable.js +346 -0
- package/dist/components/drawer.d.ts +66 -0
- package/dist/components/drawer.js +304 -0
- package/dist/components/empty.d.ts +14 -0
- package/dist/components/empty.js +75 -0
- package/dist/components/field.d.ts +12 -0
- package/dist/components/field.js +44 -0
- package/dist/components/fieldset.d.ts +7 -0
- package/dist/components/fieldset.js +21 -0
- package/dist/components/file-upload.d.ts +61 -0
- package/dist/components/file-upload.js +482 -0
- package/dist/components/form.d.ts +6 -0
- package/dist/components/form.js +14 -0
- package/dist/components/frame.d.ts +10 -0
- package/dist/components/frame.js +47 -0
- package/dist/components/gauge.d.ts +27 -0
- package/dist/components/gauge.js +74 -0
- package/dist/components/grid.d.ts +26 -0
- package/dist/components/grid.js +204 -0
- package/dist/components/group.d.ts +19 -0
- package/dist/components/group.js +45 -0
- package/dist/components/input-group.d.ts +15 -0
- package/dist/components/input-group.js +61 -0
- package/dist/components/input-otp.d.ts +24 -0
- package/dist/components/input-otp.js +50 -0
- package/dist/components/input-payment.d.ts +131 -0
- package/dist/components/input-payment.js +1140 -0
- package/dist/components/input-phone.d.ts +70 -0
- package/dist/components/input-phone.js +657 -0
- package/dist/components/input-sensitive.d.ts +12 -0
- package/dist/components/input-sensitive.js +169 -0
- package/dist/components/input.d.ts +13 -0
- package/dist/components/input.js +26 -0
- package/dist/components/kbd.d.ts +6 -0
- package/dist/components/kbd.js +19 -0
- package/dist/components/kinetic-click.d.ts +48 -0
- package/dist/components/kinetic-click.js +1184 -0
- package/dist/components/label.d.ts +6 -0
- package/dist/components/label.js +18 -0
- package/dist/components/list-box.d.ts +20 -0
- package/dist/components/list-box.js +148 -0
- package/dist/components/loader.d.ts +13 -0
- package/dist/components/loader.js +430 -0
- package/dist/components/marker.d.ts +15 -0
- package/dist/components/marker.js +59 -0
- package/dist/components/menu.d.ts +42 -0
- package/dist/components/menu.js +186 -0
- package/dist/components/menubar.d.ts +40 -0
- package/dist/components/menubar.js +107 -0
- package/dist/components/message.d.ts +33 -0
- package/dist/components/message.js +112 -0
- package/dist/components/meter.d.ts +10 -0
- package/dist/components/meter.js +42 -0
- package/dist/components/morphic-toast.d.ts +61 -0
- package/dist/components/morphic-toast.js +916 -0
- package/dist/components/navigation-menu.d.ts +26 -0
- package/dist/components/navigation-menu.js +116 -0
- package/dist/components/number-field.d.ts +15 -0
- package/dist/components/number-field.js +86 -0
- package/dist/components/option-picker.d.ts +18 -0
- package/dist/components/option-picker.js +89 -0
- package/dist/components/orb.d.ts +38 -0
- package/dist/components/orb.js +1413 -0
- package/dist/components/pagination.d.ts +25 -0
- package/dist/components/pagination.js +147 -0
- package/dist/components/popover.d.ts +22 -0
- package/dist/components/popover.js +79 -0
- package/dist/components/preview-card.d.ts +16 -0
- package/dist/components/preview-card.js +60 -0
- package/dist/components/progress.d.ts +21 -0
- package/dist/components/progress.js +139 -0
- package/dist/components/radio.d.ts +16 -0
- package/dist/components/radio.js +68 -0
- package/dist/components/resizable.d.ts +58 -0
- package/dist/components/resizable.js +964 -0
- package/dist/components/ruler-picker.d.ts +27 -0
- package/dist/components/ruler-picker.js +253 -0
- package/dist/components/scroll-area.d.ts +13 -0
- package/dist/components/scroll-area.js +34 -0
- package/dist/components/scroll-bar.d.ts +13 -0
- package/dist/components/scroll-bar.js +47 -0
- package/dist/components/select.d.ts +29 -0
- package/dist/components/select.js +140 -0
- package/dist/components/separator.d.ts +6 -0
- package/dist/components/separator.js +15 -0
- package/dist/components/sidebar.d.ts +65 -0
- package/dist/components/sidebar.js +408 -0
- package/dist/components/skeleton.d.ts +5 -0
- package/dist/components/skeleton.js +12 -0
- package/dist/components/slider.d.ts +12 -0
- package/dist/components/slider.js +96 -0
- package/dist/components/sortable.d.ts +44 -0
- package/dist/components/sortable.js +327 -0
- package/dist/components/switch.d.ts +15 -0
- package/dist/components/switch.js +63 -0
- package/dist/components/table.d.ts +12 -0
- package/dist/components/table.js +65 -0
- package/dist/components/tabs.d.ts +12 -0
- package/dist/components/tabs.js +39 -0
- package/dist/components/text.d.ts +14 -0
- package/dist/components/text.js +69 -0
- package/dist/components/textarea.d.ts +9 -0
- package/dist/components/textarea.js +20 -0
- package/dist/components/theme-provider.d.ts +52 -0
- package/dist/components/theme-provider.js +148 -0
- package/dist/components/timeline.d.ts +34 -0
- package/dist/components/timeline.js +147 -0
- package/dist/components/toast.d.ts +17 -0
- package/dist/components/toast.js +161 -0
- package/dist/components/toggle-group.d.ts +14 -0
- package/dist/components/toggle-group.js +53 -0
- package/dist/components/toggle.d.ts +11 -0
- package/dist/components/toggle.js +36 -0
- package/dist/components/toolbar.d.ts +11 -0
- package/dist/components/toolbar.js +49 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/tooltip.js +56 -0
- package/dist/components/waveform.d.ts +61 -0
- package/dist/components/waveform.js +500 -0
- package/dist/components/wheel-picker.d.ts +44 -0
- package/dist/components/wheel-picker.js +771 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +9 -0
- package/dist/hooks/use-copy-to-clipboard.js +36 -0
- package/dist/hooks/use-media-query.d.ts +21 -0
- package/dist/hooks/use-media-query.js +58 -0
- package/dist/styles.css +202 -0
- package/dist/themes/afterglow.css +89 -0
- package/dist/themes/afterglow.scoped.css +90 -0
- package/dist/themes/blacklight.css +89 -0
- package/dist/themes/blacklight.scoped.css +90 -0
- package/dist/themes/cathode.css +89 -0
- package/dist/themes/cathode.scoped.css +90 -0
- package/dist/themes/cel.css +89 -0
- package/dist/themes/cel.scoped.css +90 -0
- package/dist/themes/cinder.css +89 -0
- package/dist/themes/cinder.scoped.css +90 -0
- package/dist/themes/clay.css +89 -0
- package/dist/themes/clay.scoped.css +90 -0
- package/dist/themes/cobalt.css +89 -0
- package/dist/themes/cobalt.scoped.css +90 -0
- package/dist/themes/crimson.css +89 -0
- package/dist/themes/crimson.scoped.css +90 -0
- package/dist/themes/ion.css +89 -0
- package/dist/themes/ion.scoped.css +90 -0
- package/dist/themes/iris.css +89 -0
- package/dist/themes/iris.scoped.css +90 -0
- package/dist/themes/lagoon.css +89 -0
- package/dist/themes/lagoon.scoped.css +90 -0
- package/dist/themes/mochi.css +89 -0
- package/dist/themes/mochi.scoped.css +90 -0
- package/dist/themes/riso.css +89 -0
- package/dist/themes/riso.scoped.css +90 -0
- package/dist/themes/roast.css +89 -0
- package/dist/themes/roast.scoped.css +90 -0
- package/dist/themes/sage.css +89 -0
- package/dist/themes/sage.scoped.css +90 -0
- package/dist/themes/sepia.css +89 -0
- package/dist/themes/sepia.scoped.css +90 -0
- package/dist/themes/sorbet.css +89 -0
- package/dist/themes/sorbet.scoped.css +90 -0
- package/dist/themes/taffy.css +89 -0
- package/dist/themes/taffy.scoped.css +90 -0
- package/dist/themes/toxin.css +89 -0
- package/dist/themes/toxin.scoped.css +90 -0
- package/package.json +140 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
6
|
+
//#region src/components/toggle.tsx
|
|
7
|
+
const toggleVariants = cva("[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base text-foreground outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-pressed:bg-input/32 data-pressed:inset-shadow-[0_1px_var(--border)] data-pressed:text-accent-foreground sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
8
|
+
defaultVariants: {
|
|
9
|
+
size: "default",
|
|
10
|
+
variant: "default"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
default: "h-9 min-w-9 px-[calc(--spacing(2)-1px)] sm:h-8 sm:min-w-8",
|
|
15
|
+
lg: "h-10 min-w-10 px-[calc(--spacing(2.5)-1px)] sm:h-9 sm:min-w-9",
|
|
16
|
+
sm: "h-8 min-w-8 px-[calc(--spacing(1.5)-1px)] sm:h-7 sm:min-w-7"
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
default: "border-transparent",
|
|
20
|
+
outline: "border-input bg-background not-dark:bg-clip-padding shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_var(--border)] dark:bg-input/32 dark:data-pressed:bg-input/48 dark:hover:bg-input/64 data-pressed:inset-shadow-[0_1px_var(--border)] [:disabled,:active,[data-pressed]]:shadow-none"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
function Toggle({ className, variant, size, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Toggle$1, {
|
|
26
|
+
className: cn(toggleVariants({
|
|
27
|
+
className,
|
|
28
|
+
size,
|
|
29
|
+
variant
|
|
30
|
+
})),
|
|
31
|
+
"data-slot": "toggle",
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
|
|
3
|
+
//#region src/components/toolbar.d.ts
|
|
4
|
+
declare function Toolbar({ className, ...props }: Toolbar$1.Root.Props): React$1.JSX.Element;
|
|
5
|
+
declare function ToolbarButton({ className, ...props }: Toolbar$1.Button.Props): React$1.JSX.Element;
|
|
6
|
+
declare function ToolbarLink({ className, ...props }: Toolbar$1.Link.Props): React$1.JSX.Element;
|
|
7
|
+
declare function ToolbarInput({ className, ...props }: Toolbar$1.Input.Props): React$1.JSX.Element;
|
|
8
|
+
declare function ToolbarGroup({ className, ...props }: Toolbar$1.Group.Props): React$1.JSX.Element;
|
|
9
|
+
declare function ToolbarSeparator({ className, ...props }: Toolbar$1.Separator.Props): React$1.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
|
|
5
|
+
//#region src/components/toolbar.tsx
|
|
6
|
+
function Toolbar({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Root, {
|
|
8
|
+
className: cn("relative flex gap-2 rounded-xl border bg-card not-dark:bg-clip-padding p-[calc(--spacing(1)-1px)] text-card-foreground", className),
|
|
9
|
+
"data-slot": "toolbar",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function ToolbarButton({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Button, {
|
|
15
|
+
className: cn(className),
|
|
16
|
+
"data-slot": "toolbar-button",
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function ToolbarLink({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Link, {
|
|
22
|
+
className: cn(className),
|
|
23
|
+
"data-slot": "toolbar-link",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function ToolbarInput({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Input, {
|
|
29
|
+
className: cn(className),
|
|
30
|
+
"data-slot": "toolbar-input",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function ToolbarGroup({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Group, {
|
|
36
|
+
className: cn("flex items-center gap-1", className),
|
|
37
|
+
"data-slot": "toolbar-group",
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function ToolbarSeparator({ className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Toolbar$1.Separator, {
|
|
43
|
+
className: cn("shrink-0 bg-border data-[orientation=horizontal]:my-0.5 data-[orientation=vertical]:my-1.5 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", className),
|
|
44
|
+
"data-slot": "toolbar-separator",
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
3
|
+
//#region src/components/tooltip.d.ts
|
|
4
|
+
declare const TooltipCreateHandle: typeof Tooltip$1.createHandle;
|
|
5
|
+
declare const TooltipProvider: React$1.FC<import("@base-ui/react").TooltipProviderProps>;
|
|
6
|
+
declare const Tooltip: <Payload>(props: Tooltip$1.Root.Props<Payload>) => React$1.JSX.Element;
|
|
7
|
+
declare function TooltipTrigger(props: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
8
|
+
declare function TooltipPopup({ className, align, sideOffset, side, anchor, children, hideArrow, ...props }: Tooltip$1.Popup.Props & {
|
|
9
|
+
align?: Tooltip$1.Positioner.Props["align"];
|
|
10
|
+
side?: Tooltip$1.Positioner.Props["side"];
|
|
11
|
+
sideOffset?: Tooltip$1.Positioner.Props["sideOffset"];
|
|
12
|
+
anchor?: Tooltip$1.Positioner.Props["anchor"];
|
|
13
|
+
hideArrow?: boolean;
|
|
14
|
+
}): React$1.JSX.Element;
|
|
15
|
+
declare const TooltipArrow: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").TooltipArrowProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Tooltip, TooltipArrow, TooltipPopup as TooltipContent, TooltipPopup, TooltipCreateHandle, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
5
|
+
//#region src/components/tooltip.tsx
|
|
6
|
+
const TooltipCreateHandle = Tooltip$1.createHandle;
|
|
7
|
+
const TooltipProvider = Tooltip$1.Provider;
|
|
8
|
+
const Tooltip = Tooltip$1.Root;
|
|
9
|
+
function TooltipTrigger(props) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, {
|
|
11
|
+
"data-slot": "tooltip-trigger",
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function TooltipPopup({ className, align = "center", sideOffset = 10, side = "top", anchor, children, hideArrow = false, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, {
|
|
17
|
+
align,
|
|
18
|
+
anchor,
|
|
19
|
+
className: "z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none",
|
|
20
|
+
"data-slot": "tooltip-positioner",
|
|
21
|
+
side,
|
|
22
|
+
sideOffset,
|
|
23
|
+
children: /* @__PURE__ */ jsxs(Tooltip$1.Popup, {
|
|
24
|
+
className: cn("relative flex flex-col h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs shadow-md/5 transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", className),
|
|
25
|
+
"data-slot": "tooltip-popup",
|
|
26
|
+
...props,
|
|
27
|
+
children: [!hideArrow && /* @__PURE__ */ jsx(Tooltip$1.Arrow, {
|
|
28
|
+
className: "z-10 flex data-[side=bottom]:-top-[9px] data-[side=bottom]:rotate-0 data-[side=left]:right-[-14px] data-[side=left]:rotate-90 data-[side=right]:left-[-14px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-[9px] data-[side=top]:rotate-180",
|
|
29
|
+
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
30
|
+
}), /* @__PURE__ */ jsx(Tooltip$1.Viewport, {
|
|
31
|
+
className: "relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity",
|
|
32
|
+
"data-slot": "tooltip-viewport",
|
|
33
|
+
children
|
|
34
|
+
})]
|
|
35
|
+
})
|
|
36
|
+
}) });
|
|
37
|
+
}
|
|
38
|
+
function ArrowSvg(props) {
|
|
39
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
40
|
+
width: "20",
|
|
41
|
+
height: "10",
|
|
42
|
+
viewBox: "0 0 20 10",
|
|
43
|
+
fill: "none",
|
|
44
|
+
...props,
|
|
45
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
46
|
+
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
47
|
+
className: "fill-popover"
|
|
48
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
49
|
+
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
50
|
+
className: "fill-border"
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const TooltipArrow = Tooltip$1.Arrow;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { Tooltip, TooltipArrow, TooltipPopup as TooltipContent, TooltipPopup, TooltipCreateHandle, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
//#region src/components/waveform.d.ts
|
|
4
|
+
export interface WaveformProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
value?: number;
|
|
6
|
+
defaultValue?: number;
|
|
7
|
+
onValueChange?: (value: number) => void;
|
|
8
|
+
duration?: number;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
processing?: boolean;
|
|
11
|
+
mode?: "static" | "scrolling" | "live";
|
|
12
|
+
microphone?: boolean;
|
|
13
|
+
deviceId?: string;
|
|
14
|
+
barWidth?: number;
|
|
15
|
+
barGap?: number;
|
|
16
|
+
barRadius?: number;
|
|
17
|
+
barColor?: string;
|
|
18
|
+
progressColor?: string;
|
|
19
|
+
fadeEdges?: boolean;
|
|
20
|
+
fadeWidth?: number;
|
|
21
|
+
sensitivity?: number;
|
|
22
|
+
updateRate?: number;
|
|
23
|
+
seed?: number;
|
|
24
|
+
data?: number[];
|
|
25
|
+
}
|
|
26
|
+
interface WaveformContextValue {
|
|
27
|
+
value: number;
|
|
28
|
+
duration: number;
|
|
29
|
+
onValueChange?: (value: number) => void;
|
|
30
|
+
active: boolean;
|
|
31
|
+
processing: boolean;
|
|
32
|
+
mode: "static" | "scrolling" | "live";
|
|
33
|
+
barWidth: number;
|
|
34
|
+
barGap: number;
|
|
35
|
+
barRadius: number;
|
|
36
|
+
barColor?: string;
|
|
37
|
+
progressColor?: string;
|
|
38
|
+
fadeEdges: boolean;
|
|
39
|
+
fadeWidth: number;
|
|
40
|
+
sensitivity: number;
|
|
41
|
+
updateRate: number;
|
|
42
|
+
seed: number;
|
|
43
|
+
data?: number[];
|
|
44
|
+
canvasRef: React$1.RefObject<HTMLCanvasElement | null>;
|
|
45
|
+
containerRef: React$1.RefObject<HTMLDivElement | null>;
|
|
46
|
+
isDragging: boolean;
|
|
47
|
+
setIsDragging: (dragging: boolean) => void;
|
|
48
|
+
seekTo: (clientX: number) => void;
|
|
49
|
+
liveDataRef: React$1.MutableRefObject<number[]>;
|
|
50
|
+
needsRedrawRef: React$1.MutableRefObject<boolean>;
|
|
51
|
+
triggerRedraw: () => void;
|
|
52
|
+
}
|
|
53
|
+
export declare function useWaveform(): WaveformContextValue;
|
|
54
|
+
export declare function Waveform({ children, className, value: controlledValue, defaultValue, onValueChange, duration, active, processing, mode, microphone, deviceId, barWidth, barGap, barRadius, barColor, progressColor, fadeEdges, fadeWidth, sensitivity, updateRate, seed, data, ...props }: WaveformProps): React$1.JSX.Element;
|
|
55
|
+
export interface WaveformVisualProps extends React$1.CanvasHTMLAttributes<HTMLCanvasElement> {}
|
|
56
|
+
export declare function WaveformVisual({ className, ...props }: WaveformVisualProps): React$1.JSX.Element;
|
|
57
|
+
export interface WaveformScrubberProps extends React$1.HTMLAttributes<HTMLDivElement> {}
|
|
58
|
+
export declare function WaveformScrubber({ className, ...props }: WaveformScrubberProps): React$1.JSX.Element;
|
|
59
|
+
export interface WaveformHandleProps extends useRender.ComponentProps<"div"> {}
|
|
60
|
+
export declare function WaveformHandle({ className, render, ...props }: WaveformHandleProps): React$1.ReactElement;
|
|
61
|
+
//#endregion
|