laif-ds 0.1.30 → 0.1.32
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/ui/app-multiple-select-dropdown.js +14 -14
- package/dist/components/ui/data-cross-table.js +112 -107
- package/dist/components/ui/data-table.js +42 -41
- package/dist/components/ui/dropdown-menu.js +131 -0
- package/dist/components/ui/table.js +3 -10
- package/dist/index.d.ts +18 -3
- package/dist/index.js +168 -161
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +217 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +138 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/dist/index.js +625 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-popper/dist/index.js +221 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +37 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +184 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { Root as w, Trigger as x, Portal as N, Content as l, Item as m, Label as c, Separator as p, SubTrigger as f, SubContent as u, CheckboxItem as g, ItemIndicator as b, RadioItem as h } from "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
5
|
+
import { cn as r } from "../../lib/utils.js";
|
|
6
|
+
import y from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
7
|
+
import v from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
8
|
+
import R from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
9
|
+
const B = w, E = x, I = s.forwardRef(({ className: e, inset: t, children: o, ...n }, d) => /* @__PURE__ */ i(
|
|
10
|
+
f,
|
|
11
|
+
{
|
|
12
|
+
ref: d,
|
|
13
|
+
className: r(
|
|
14
|
+
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
15
|
+
t && "pl-8",
|
|
16
|
+
e
|
|
17
|
+
),
|
|
18
|
+
...n,
|
|
19
|
+
children: [
|
|
20
|
+
o,
|
|
21
|
+
/* @__PURE__ */ a(y, { className: "ml-auto" })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
));
|
|
25
|
+
I.displayName = f.displayName;
|
|
26
|
+
const C = s.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
27
|
+
u,
|
|
28
|
+
{
|
|
29
|
+
ref: o,
|
|
30
|
+
className: r(
|
|
31
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
32
|
+
e
|
|
33
|
+
),
|
|
34
|
+
...t
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
C.displayName = u.displayName;
|
|
38
|
+
const D = s.forwardRef(({ className: e, sideOffset: t = 4, ...o }, n) => /* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(
|
|
39
|
+
l,
|
|
40
|
+
{
|
|
41
|
+
ref: n,
|
|
42
|
+
sideOffset: t,
|
|
43
|
+
className: r(
|
|
44
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
45
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
46
|
+
e
|
|
47
|
+
),
|
|
48
|
+
...o
|
|
49
|
+
}
|
|
50
|
+
) }));
|
|
51
|
+
D.displayName = l.displayName;
|
|
52
|
+
const M = s.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */ a(
|
|
53
|
+
m,
|
|
54
|
+
{
|
|
55
|
+
ref: n,
|
|
56
|
+
className: r(
|
|
57
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
58
|
+
t && "pl-8",
|
|
59
|
+
e
|
|
60
|
+
),
|
|
61
|
+
...o
|
|
62
|
+
}
|
|
63
|
+
));
|
|
64
|
+
M.displayName = m.displayName;
|
|
65
|
+
const S = s.forwardRef(({ className: e, children: t, checked: o, ...n }, d) => /* @__PURE__ */ i(
|
|
66
|
+
g,
|
|
67
|
+
{
|
|
68
|
+
ref: d,
|
|
69
|
+
className: r(
|
|
70
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
71
|
+
e
|
|
72
|
+
),
|
|
73
|
+
checked: o,
|
|
74
|
+
...n,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(b, { children: /* @__PURE__ */ a(v, { className: "h-4 w-4" }) }) }),
|
|
77
|
+
t
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
));
|
|
81
|
+
S.displayName = g.displayName;
|
|
82
|
+
const z = s.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__ */ i(
|
|
83
|
+
h,
|
|
84
|
+
{
|
|
85
|
+
ref: n,
|
|
86
|
+
className: r(
|
|
87
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
88
|
+
e
|
|
89
|
+
),
|
|
90
|
+
...o,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(b, { children: /* @__PURE__ */ a(R, { className: "h-2 w-2 fill-current" }) }) }),
|
|
93
|
+
t
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
));
|
|
97
|
+
z.displayName = h.displayName;
|
|
98
|
+
const k = s.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */ a(
|
|
99
|
+
c,
|
|
100
|
+
{
|
|
101
|
+
ref: n,
|
|
102
|
+
className: r(
|
|
103
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
104
|
+
t && "pl-8",
|
|
105
|
+
e
|
|
106
|
+
),
|
|
107
|
+
...o
|
|
108
|
+
}
|
|
109
|
+
));
|
|
110
|
+
k.displayName = c.displayName;
|
|
111
|
+
const T = s.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
112
|
+
p,
|
|
113
|
+
{
|
|
114
|
+
ref: o,
|
|
115
|
+
className: r("-mx-1 my-1 h-px bg-muted", e),
|
|
116
|
+
...t
|
|
117
|
+
}
|
|
118
|
+
));
|
|
119
|
+
T.displayName = p.displayName;
|
|
120
|
+
export {
|
|
121
|
+
B as DropdownMenu,
|
|
122
|
+
S as DropdownMenuCheckboxItem,
|
|
123
|
+
D as DropdownMenuContent,
|
|
124
|
+
M as DropdownMenuItem,
|
|
125
|
+
k as DropdownMenuLabel,
|
|
126
|
+
z as DropdownMenuRadioItem,
|
|
127
|
+
T as DropdownMenuSeparator,
|
|
128
|
+
C as DropdownMenuSubContent,
|
|
129
|
+
I as DropdownMenuSubTrigger,
|
|
130
|
+
E as DropdownMenuTrigger
|
|
131
|
+
};
|
|
@@ -3,18 +3,11 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
3
3
|
import { cn as o } from "../../lib/utils.js";
|
|
4
4
|
function n({ className: t, ...e }) {
|
|
5
5
|
return /* @__PURE__ */ a(
|
|
6
|
-
"
|
|
6
|
+
"table",
|
|
7
7
|
{
|
|
8
8
|
"data-slot": "table-container",
|
|
9
|
-
className: "relative w-full overflow-x-auto",
|
|
10
|
-
|
|
11
|
-
"table",
|
|
12
|
-
{
|
|
13
|
-
"data-slot": "table",
|
|
14
|
-
className: o("w-full caption-bottom text-sm", t),
|
|
15
|
-
...e
|
|
16
|
-
}
|
|
17
|
-
)
|
|
9
|
+
className: o("w-full caption-bottom text-sm relative w-full overflow-x-auto ", t),
|
|
10
|
+
...e
|
|
18
11
|
}
|
|
19
12
|
);
|
|
20
13
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { default as default_2 } from 'embla-carousel-react';
|
|
|
15
15
|
import { default as default_3 } from 'react';
|
|
16
16
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
17
17
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
18
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
18
19
|
import { FieldError } from 'react-hook-form';
|
|
19
20
|
import { FieldPath } from 'react-hook-form';
|
|
20
21
|
import { FieldValues } from 'react-hook-form';
|
|
@@ -564,7 +565,7 @@ declare interface CrossTableData {
|
|
|
564
565
|
data: (CrossTableCell | null)[][];
|
|
565
566
|
}
|
|
566
567
|
|
|
567
|
-
export declare function DataCrossTable({ crossTableData, filterable, loading, emptyComponent, className, notFoundMessage, cornerHeaderFrom, cornerHeaderTo, maxHeaderLength, minWidthCell,
|
|
568
|
+
export declare function DataCrossTable({ crossTableData, filterable, loading, emptyComponent, className, notFoundMessage, cornerHeaderFrom, cornerHeaderTo, maxHeaderLength, minWidthCell, }: DataCrossTableProps): JSX.Element;
|
|
568
569
|
|
|
569
570
|
export declare interface DataCrossTableProps {
|
|
570
571
|
crossTableData: CrossTableData;
|
|
@@ -577,8 +578,6 @@ export declare interface DataCrossTableProps {
|
|
|
577
578
|
cornerHeaderTo?: string;
|
|
578
579
|
maxHeaderLength?: number;
|
|
579
580
|
minWidthCell?: number;
|
|
580
|
-
initialFreezeColumn?: boolean;
|
|
581
|
-
initialFreezeRow?: boolean;
|
|
582
581
|
showFreezeControls?: boolean;
|
|
583
582
|
}
|
|
584
583
|
|
|
@@ -658,6 +657,22 @@ export declare function DrawerTitle({ className, ...props }: React_2.ComponentPr
|
|
|
658
657
|
|
|
659
658
|
export declare function DrawerTrigger({ ...props }: React_2.ComponentProps<typeof Drawer_2.Trigger>): JSX.Element;
|
|
660
659
|
|
|
660
|
+
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
661
|
+
|
|
662
|
+
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
663
|
+
|
|
664
|
+
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
665
|
+
inset?: boolean;
|
|
666
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
667
|
+
|
|
668
|
+
export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
669
|
+
inset?: boolean;
|
|
670
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
671
|
+
|
|
672
|
+
export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
673
|
+
|
|
674
|
+
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
675
|
+
|
|
661
676
|
export declare const FilePreview: default_3.ForwardRefExoticComponent<FilePreviewProps & default_3.RefAttributes<HTMLDivElement>>;
|
|
662
677
|
|
|
663
678
|
declare interface FilePreviewProps {
|