laif-ds 0.1.14 → 0.1.16
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/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/app-sidebar.js +42 -0
- package/dist/components/ui/async-select.js +119 -104
- package/dist/components/ui/badge.js +5 -5
- package/dist/components/ui/breadcrumb.js +2 -2
- package/dist/components/ui/button.js +8 -8
- package/dist/components/ui/card.js +48 -29
- package/dist/components/ui/chart.js +1 -1
- package/dist/components/ui/chat-message.js +4 -4
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/file-preview.js +1 -1
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/input-selector.js +9 -9
- package/dist/components/ui/input.js +12 -12
- package/dist/components/ui/multiple-selector.js +111 -111
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.js +476 -534
- package/dist/components/ui/slider.js +132 -0
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/toaster.js +3 -3
- package/dist/dist/components/ui/table.js +1 -1
- package/dist/index.d.ts +86 -35
- package/dist/index.js +103 -99
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +439 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +33 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as u, jsx as l, Fragment as k } from "react/jsx-runtime";
|
|
3
|
+
import * as F from "react";
|
|
4
|
+
import { Root as y, Track as M, Range as P, Thumb as b } from "../../node_modules/@radix-ui/react-slider/dist/index.js";
|
|
5
|
+
import { Badge as x } from "./badge.js";
|
|
6
|
+
import { cn as c } from "../../lib/utils.js";
|
|
7
|
+
import { cva as w } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
8
|
+
const S = w(
|
|
9
|
+
"relative w-full grow overflow-hidden rounded-full bg-d-primary/20",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
base: "h-1.5",
|
|
14
|
+
medium: "h-2",
|
|
15
|
+
large: "h-2.5"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "base"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
), N = w(
|
|
23
|
+
"block rounded-full ring-d-primary bg-d-background shadow transition-colors focus-visible:outline-none focus-visible:ring-d-primary transition-all duration-200 disabled:pointer-events-none disabled:opacity-50",
|
|
24
|
+
{
|
|
25
|
+
variants: {
|
|
26
|
+
size: {
|
|
27
|
+
base: "h-4 w-4 ring-[1.5px] focus-visible:ring-[4px]",
|
|
28
|
+
medium: "h-5 w-5 ring-[1.5px] focus-visible:ring-[4.5px]",
|
|
29
|
+
large: "h-6 w-6 ring-2 focus-visible:ring-[6px]"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
size: "base"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
), B = F.forwardRef(({
|
|
37
|
+
className: C,
|
|
38
|
+
size: m,
|
|
39
|
+
formatValue: i,
|
|
40
|
+
showValues: $ = !1,
|
|
41
|
+
showStickyLabel: r = !1,
|
|
42
|
+
stickyLabelSuffix: h = "",
|
|
43
|
+
fillOffset: o = !1,
|
|
44
|
+
offsetValue: v,
|
|
45
|
+
steps: d,
|
|
46
|
+
showStepMarkers: z = !1,
|
|
47
|
+
...e
|
|
48
|
+
}, R) => {
|
|
49
|
+
const s = v !== void 0 ? v : e.min !== void 0 && e.max !== void 0 ? (e.min + e.max) / 2 : 50, f = () => {
|
|
50
|
+
if (!o) return 0;
|
|
51
|
+
const a = e.min || 0, t = (e.max || 100) - a;
|
|
52
|
+
return (s - a) / t * 100;
|
|
53
|
+
}, g = (a) => d ? d.reduce((n, t) => Math.abs(t - a) < Math.abs(n - a) ? t : n) : a, T = (a) => {
|
|
54
|
+
if (!d || !e.onValueChange) {
|
|
55
|
+
e.onValueChange && e.onValueChange(a);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const n = g(a[0]), t = a.length > 1 ? [n, g(a[1])] : [n];
|
|
59
|
+
e.onValueChange(t);
|
|
60
|
+
}, j = (a) => {
|
|
61
|
+
const n = e.min || 0, t = e.max || 100;
|
|
62
|
+
return (a - n) / (t - n) * 100;
|
|
63
|
+
};
|
|
64
|
+
return /* @__PURE__ */ u("div", { className: "flex flex-col w-full gap-1", children: [
|
|
65
|
+
/* @__PURE__ */ u(
|
|
66
|
+
y,
|
|
67
|
+
{
|
|
68
|
+
ref: R,
|
|
69
|
+
className: c(
|
|
70
|
+
"relative flex w-full touch-none select-none items-center",
|
|
71
|
+
C
|
|
72
|
+
),
|
|
73
|
+
...e,
|
|
74
|
+
onValueChange: void 0,
|
|
75
|
+
onValueChange: d ? T : e.onValueChange,
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ u(M, { className: c(S({ size: m })), children: [
|
|
78
|
+
d && z && /* @__PURE__ */ l("div", { className: "absolute w-full h-full", children: d.map((a, n) => /* @__PURE__ */ l(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: "absolute w-1 h-4 -mt-1.5 bg-d-muted-foreground/50 rounded-full",
|
|
82
|
+
style: {
|
|
83
|
+
left: `calc(${j(a)}% - 2px)`,
|
|
84
|
+
top: "50%",
|
|
85
|
+
transform: "translateY(-50%)"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
n
|
|
89
|
+
)) }),
|
|
90
|
+
o && e.value ? /* @__PURE__ */ u(k, { children: [
|
|
91
|
+
/* @__PURE__ */ l("div", { className: "absolute h-full w-full bg-d-muted/30" }),
|
|
92
|
+
/* @__PURE__ */ l(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: "absolute h-full bg-d-primary",
|
|
96
|
+
style: {
|
|
97
|
+
left: e.value[0] < s ? `${(e.value[0] - (e.min || 0)) / ((e.max || 100) - (e.min || 0)) * 100}%` : `${f()}%`,
|
|
98
|
+
right: e.value[0] > s ? `${100 - (e.value[0] - (e.min || 0)) / ((e.max || 100) - (e.min || 0)) * 100}%` : `${100 - f()}%`
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] }) : /* @__PURE__ */ l(P, { className: "absolute h-full bg-d-primary" })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ l(b, { className: c(N({ size: m }), "relative"), children: r && e.value && /* @__PURE__ */ l(
|
|
105
|
+
x,
|
|
106
|
+
{
|
|
107
|
+
variant: "default",
|
|
108
|
+
className: "absolute left-1/2 -translate-x-1/2 -translate-y-1/2 -top-5 z-10",
|
|
109
|
+
children: i ? i(e.value[0]) : `${e.value[0]}${h}`
|
|
110
|
+
}
|
|
111
|
+
) }),
|
|
112
|
+
e.value && e.value.length > 1 && /* @__PURE__ */ l(b, { className: c(N({ size: m }), "relative"), children: r && /* @__PURE__ */ l(
|
|
113
|
+
x,
|
|
114
|
+
{
|
|
115
|
+
variant: "default",
|
|
116
|
+
className: "absolute left-1/2 -translate-x-1/2 -translate-y-1/2 -top-5 z-10",
|
|
117
|
+
children: i ? i(e.value[1]) : `${e.value[1]}${h}`
|
|
118
|
+
}
|
|
119
|
+
) })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
$ && e.value && /* @__PURE__ */ u("div", { className: "flex justify-between text-xs font-medium text-d-muted-foreground", children: [
|
|
124
|
+
/* @__PURE__ */ l("span", { children: i ? i(e.value[0]) : e.value[0] }),
|
|
125
|
+
e.value.length > 1 ? /* @__PURE__ */ l("span", { children: i ? i(e.value[1]) : e.value[1] }) : e.max !== void 0 ? /* @__PURE__ */ l("span", { children: i ? i(e.max) : e.max }) : null
|
|
126
|
+
] })
|
|
127
|
+
] });
|
|
128
|
+
});
|
|
129
|
+
B.displayName = y.displayName;
|
|
130
|
+
export {
|
|
131
|
+
B as Slider
|
|
132
|
+
};
|
|
@@ -70,7 +70,7 @@ function i({ className: t, ...e }) {
|
|
|
70
70
|
{
|
|
71
71
|
"data-slot": "table-head",
|
|
72
72
|
className: o(
|
|
73
|
-
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
73
|
+
"text-d-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
74
74
|
t
|
|
75
75
|
),
|
|
76
76
|
...e
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { useTheme as s } from "../../node_modules/next-themes/dist/index.js";
|
|
4
4
|
import { Toaster as e } from "../../node_modules/sonner/dist/index.js";
|
|
5
|
-
const
|
|
5
|
+
const g = ({ ...o }) => {
|
|
6
6
|
const { theme: t = "system" } = s();
|
|
7
7
|
return /* @__PURE__ */ r(
|
|
8
8
|
e,
|
|
@@ -11,7 +11,7 @@ const d = ({ ...o }) => {
|
|
|
11
11
|
className: "toaster group",
|
|
12
12
|
toastOptions: {
|
|
13
13
|
classNames: {
|
|
14
|
-
toast: "group toast group-[.toaster]:bg-d-background group-[.toaster]:text-foreground group-[.toaster]:border-d-border group-[.toaster]:shadow-lg",
|
|
14
|
+
toast: "group toast group-[.toaster]:bg-d-background group-[.toaster]:text-d-foreground group-[.toaster]:border-d-border group-[.toaster]:shadow-lg",
|
|
15
15
|
description: "group-[.toast]:text-d-secondary-foreground",
|
|
16
16
|
actionButton: "group-[.toast]:bg-d-primary group-[.toast]:text-d-primary-foreground",
|
|
17
17
|
cancelButton: "group-[.toast]:bg-d-secondary group-[.toast]:text-d-secondary-foreground"
|
|
@@ -22,5 +22,5 @@ const d = ({ ...o }) => {
|
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
g as Toaster
|
|
26
26
|
};
|
|
@@ -57,7 +57,7 @@ function b({ className: a, ...e }) {
|
|
|
57
57
|
{
|
|
58
58
|
"data-slot": "table-head",
|
|
59
59
|
className: l(
|
|
60
|
-
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
60
|
+
"text-d-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
61
61
|
a
|
|
62
62
|
),
|
|
63
63
|
...e
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
3
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
4
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
5
|
+
import { ButtonProps as ButtonProps_2 } from './button';
|
|
5
6
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
6
7
|
import { ClassProp } from 'class-variance-authority/types';
|
|
7
8
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
@@ -21,6 +22,7 @@ import { FormProviderProps } from 'react-hook-form';
|
|
|
21
22
|
import { ForwardRefExoticComponent } from 'react';
|
|
22
23
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
23
24
|
import { HTMLAttributes } from 'react';
|
|
25
|
+
import { InputProps as InputProps_2 } from './input';
|
|
24
26
|
import { JSX } from 'react/jsx-runtime';
|
|
25
27
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
26
28
|
import * as LucideIcons from 'lucide-react';
|
|
@@ -41,6 +43,8 @@ import * as ResizablePrimitive from 'react-resizable-panels';
|
|
|
41
43
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
42
44
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
43
45
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
46
|
+
import { SeparatorProps } from '@radix-ui/react-separator';
|
|
47
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
44
48
|
import { Slot } from '@radix-ui/react-slot';
|
|
45
49
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
46
50
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -119,6 +123,17 @@ declare const alertVariants: (props?: ({
|
|
|
119
123
|
|
|
120
124
|
declare type Animation_2 = VariantProps<typeof chatBubbleVariants>["animation"];
|
|
121
125
|
|
|
126
|
+
export declare function AppSidebar({ navigation, versions, defaultVersion, headerContent, footerContent, showRail, ...props }: AppSidebarProps): JSX.Element;
|
|
127
|
+
|
|
128
|
+
declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar> {
|
|
129
|
+
navigation: NavGroup[];
|
|
130
|
+
versions?: string[];
|
|
131
|
+
defaultVersion?: string;
|
|
132
|
+
headerContent?: React_2.ReactNode;
|
|
133
|
+
footerContent?: React_2.ReactNode;
|
|
134
|
+
showRail?: boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
122
137
|
export declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element;
|
|
123
138
|
|
|
124
139
|
declare type AspectRatioProps = React.ComponentProps<typeof AspectRatioPrimitive.Root>;
|
|
@@ -251,7 +266,7 @@ export declare interface CardProps extends React_2.ComponentProps<"div"> {
|
|
|
251
266
|
size?: CardSize;
|
|
252
267
|
}
|
|
253
268
|
|
|
254
|
-
declare type CardSize = "default" | "sm" | "lg";
|
|
269
|
+
declare type CardSize = "default" | "sm" | "lg" | "none";
|
|
255
270
|
|
|
256
271
|
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
257
272
|
|
|
@@ -885,6 +900,12 @@ export declare interface MultipleSelectorRef {
|
|
|
885
900
|
reset: () => void;
|
|
886
901
|
}
|
|
887
902
|
|
|
903
|
+
declare interface NavGroup {
|
|
904
|
+
title: string;
|
|
905
|
+
url?: string;
|
|
906
|
+
items: NavItem[];
|
|
907
|
+
}
|
|
908
|
+
|
|
888
909
|
export declare function NavigationMenu({ className, children, viewport, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
889
910
|
viewport?: boolean;
|
|
890
911
|
}): JSX.Element;
|
|
@@ -903,6 +924,21 @@ export declare function NavigationMenuTrigger({ className, children, ...props }:
|
|
|
903
924
|
|
|
904
925
|
export declare function NavigationMenuViewport({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): JSX.Element;
|
|
905
926
|
|
|
927
|
+
declare interface NavItem {
|
|
928
|
+
title: string;
|
|
929
|
+
url: string;
|
|
930
|
+
isActive?: boolean;
|
|
931
|
+
iconName?: IconName;
|
|
932
|
+
subItems?: NavSubItem[];
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
declare interface NavSubItem {
|
|
936
|
+
title: string;
|
|
937
|
+
url: string;
|
|
938
|
+
isActive?: boolean;
|
|
939
|
+
iconName?: IconName;
|
|
940
|
+
}
|
|
941
|
+
|
|
906
942
|
declare type NoRepeatDataType = {
|
|
907
943
|
/**
|
|
908
944
|
* Start date and time of unrepeatable bar item
|
|
@@ -1103,13 +1139,13 @@ export declare function SheetTitle({ className, ...props }: React_2.ComponentPro
|
|
|
1103
1139
|
|
|
1104
1140
|
export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
|
|
1105
1141
|
|
|
1106
|
-
export declare
|
|
1142
|
+
export declare const Sidebar: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
|
|
1107
1143
|
side?: "left" | "right";
|
|
1108
1144
|
variant?: "sidebar" | "floating" | "inset";
|
|
1109
1145
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
1110
|
-
}
|
|
1146
|
+
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1111
1147
|
|
|
1112
|
-
export declare
|
|
1148
|
+
export declare const SidebarContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1113
1149
|
|
|
1114
1150
|
declare type SidebarContextProps = {
|
|
1115
1151
|
state: "expanded" | "collapsed";
|
|
@@ -1121,73 +1157,71 @@ declare type SidebarContextProps = {
|
|
|
1121
1157
|
toggleSidebar: () => void;
|
|
1122
1158
|
};
|
|
1123
1159
|
|
|
1124
|
-
export declare
|
|
1160
|
+
export declare const SidebarFooter: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1125
1161
|
|
|
1126
|
-
export declare
|
|
1162
|
+
export declare const SidebarGroup: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1127
1163
|
|
|
1128
|
-
export declare
|
|
1164
|
+
export declare const SidebarGroupAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1129
1165
|
asChild?: boolean;
|
|
1130
|
-
}
|
|
1166
|
+
}, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1131
1167
|
|
|
1132
|
-
export declare
|
|
1168
|
+
export declare const SidebarGroupContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1133
1169
|
|
|
1134
|
-
export declare
|
|
1170
|
+
export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
|
|
1135
1171
|
asChild?: boolean;
|
|
1136
|
-
}
|
|
1172
|
+
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1137
1173
|
|
|
1138
|
-
export declare
|
|
1174
|
+
export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1139
1175
|
|
|
1140
|
-
export declare
|
|
1176
|
+
export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<InputProps_2, "ref">, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
1141
1177
|
|
|
1142
|
-
export declare
|
|
1178
|
+
export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1143
1179
|
|
|
1144
|
-
export declare
|
|
1180
|
+
export declare const SidebarMenu: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
|
|
1145
1181
|
|
|
1146
|
-
export declare
|
|
1182
|
+
export declare const SidebarMenuAction: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1147
1183
|
asChild?: boolean;
|
|
1148
1184
|
showOnHover?: boolean;
|
|
1149
|
-
}
|
|
1185
|
+
}, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1150
1186
|
|
|
1151
|
-
export declare
|
|
1187
|
+
export declare const SidebarMenuBadge: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1152
1188
|
|
|
1153
|
-
export declare
|
|
1189
|
+
export declare const SidebarMenuButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLButtonElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1154
1190
|
asChild?: boolean;
|
|
1155
1191
|
isActive?: boolean;
|
|
1156
1192
|
tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
|
|
1157
|
-
} & VariantProps<
|
|
1158
|
-
|
|
1159
|
-
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1193
|
+
} & VariantProps<(props?: ({
|
|
1160
1194
|
variant?: "default" | "outline" | null | undefined;
|
|
1161
1195
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1162
|
-
} & ClassProp) | undefined) => string
|
|
1196
|
+
} & ClassProp) | undefined) => string>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1163
1197
|
|
|
1164
|
-
export declare
|
|
1198
|
+
export declare const SidebarMenuItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
|
|
1165
1199
|
|
|
1166
|
-
export declare
|
|
1200
|
+
export declare const SidebarMenuSkeleton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
|
|
1167
1201
|
showIcon?: boolean;
|
|
1168
|
-
}
|
|
1202
|
+
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1169
1203
|
|
|
1170
|
-
export declare
|
|
1204
|
+
export declare const SidebarMenuSub: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
|
|
1171
1205
|
|
|
1172
|
-
export declare
|
|
1206
|
+
export declare const SidebarMenuSubButton: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLAnchorElement> & React_2.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1173
1207
|
asChild?: boolean;
|
|
1174
1208
|
size?: "sm" | "md";
|
|
1175
1209
|
isActive?: boolean;
|
|
1176
|
-
}
|
|
1210
|
+
}, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
1177
1211
|
|
|
1178
|
-
export declare
|
|
1212
|
+
export declare const SidebarMenuSubItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
|
|
1179
1213
|
|
|
1180
|
-
export declare
|
|
1214
|
+
export declare const SidebarProvider: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
|
|
1181
1215
|
defaultOpen?: boolean;
|
|
1182
1216
|
open?: boolean;
|
|
1183
1217
|
onOpenChange?: (open: boolean) => void;
|
|
1184
|
-
}
|
|
1218
|
+
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1185
1219
|
|
|
1186
|
-
export declare
|
|
1220
|
+
export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1187
1221
|
|
|
1188
|
-
export declare
|
|
1222
|
+
export declare const SidebarSeparator: React_2.ForwardRefExoticComponent<Omit<SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1189
1223
|
|
|
1190
|
-
export declare
|
|
1224
|
+
export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1191
1225
|
|
|
1192
1226
|
declare const sizeMap: {
|
|
1193
1227
|
xs: number;
|
|
@@ -1199,6 +1233,23 @@ declare const sizeMap: {
|
|
|
1199
1233
|
|
|
1200
1234
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
1201
1235
|
|
|
1236
|
+
export declare const Slider: React_2.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
1237
|
+
size?: "base" | "large" | "medium" | null | undefined;
|
|
1238
|
+
} & ClassProp) | undefined) => string> & {
|
|
1239
|
+
formatValue?: (value: number) => string;
|
|
1240
|
+
showValues?: boolean;
|
|
1241
|
+
showStickyLabel?: boolean;
|
|
1242
|
+
stickyLabelSuffix?: string;
|
|
1243
|
+
fillOffset?: boolean;
|
|
1244
|
+
offsetValue?: number;
|
|
1245
|
+
/**
|
|
1246
|
+
* Valori predefiniti per la selezione a step
|
|
1247
|
+
* Es: [0, 25, 50, 75, 100]
|
|
1248
|
+
*/
|
|
1249
|
+
steps?: number[];
|
|
1250
|
+
showStepMarkers?: boolean;
|
|
1251
|
+
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1252
|
+
|
|
1202
1253
|
declare interface SourcePart {
|
|
1203
1254
|
type: "source";
|
|
1204
1255
|
}
|