@kopexa/theme 17.5.0 → 17.6.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/chunk-PKB6QHSP.mjs +103 -0
- package/dist/chunk-RZ45NVOH.mjs +50 -0
- package/dist/chunk-TDITF5BB.mjs +79 -0
- package/dist/{chunk-PWH7OU6T.mjs → chunk-Z2SMCAER.mjs} +7 -4
- package/dist/components/combobox.js +7 -4
- package/dist/components/combobox.mjs +1 -1
- package/dist/components/compliance-badge.d.mts +47 -0
- package/dist/components/compliance-badge.d.ts +47 -0
- package/dist/components/compliance-badge.js +74 -0
- package/dist/components/compliance-badge.mjs +6 -0
- package/dist/components/filter.d.mts +143 -0
- package/dist/components/filter.d.ts +143 -0
- package/dist/components/filter.js +131 -0
- package/dist/components/filter.mjs +7 -0
- package/dist/components/impact-card.d.mts +122 -0
- package/dist/components/impact-card.d.ts +122 -0
- package/dist/components/impact-card.js +103 -0
- package/dist/components/impact-card.mjs +6 -0
- package/dist/components/index.d.mts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +324 -96
- package/dist/components/index.mjs +47 -35
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +324 -96
- package/dist/index.mjs +47 -35
- package/package.json +2 -2
- /package/dist/{chunk-BYXTAZ4I.mjs → chunk-M35MNWR7.mjs} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
focusVisibleClasses
|
|
3
|
+
} from "./chunk-6IZPAS4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/filter.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var filter = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
root: "flex flex-wrap items-center gap-2",
|
|
10
|
+
// Trigger Button
|
|
11
|
+
trigger: [
|
|
12
|
+
"inline-flex items-center gap-2 rounded-md",
|
|
13
|
+
"border border-dashed border-input text-sm",
|
|
14
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
15
|
+
"transition-colors cursor-pointer",
|
|
16
|
+
...focusVisibleClasses
|
|
17
|
+
],
|
|
18
|
+
triggerIcon: "size-4 opacity-60",
|
|
19
|
+
// Feld-Auswahl Menü
|
|
20
|
+
menu: [
|
|
21
|
+
"bg-popover text-popover-foreground border rounded-lg shadow-lg p-1 min-w-[220px]",
|
|
22
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
23
|
+
"data-[closed]:fade-out-0 data-[open]:fade-in-0",
|
|
24
|
+
"data-[closed]:zoom-out-95 data-[open]:zoom-in-95"
|
|
25
|
+
],
|
|
26
|
+
menuGroup: "py-1",
|
|
27
|
+
menuGroupLabel: "px-2 py-1.5 text-xs font-medium text-muted-foreground uppercase tracking-wide",
|
|
28
|
+
menuItem: [
|
|
29
|
+
"flex items-center gap-2 px-2 py-1.5 rounded-sm text-sm cursor-pointer",
|
|
30
|
+
"outline-none select-none",
|
|
31
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
32
|
+
"data-disabled:opacity-50 data-disabled:pointer-events-none"
|
|
33
|
+
],
|
|
34
|
+
menuItemIcon: "size-4 text-muted-foreground",
|
|
35
|
+
menuSeparator: "bg-border -mx-1 my-1 h-px",
|
|
36
|
+
// Aktiver Filter (Chip-artig)
|
|
37
|
+
field: [
|
|
38
|
+
"inline-flex items-center gap-1 rounded-md",
|
|
39
|
+
"bg-secondary text-secondary-foreground text-sm",
|
|
40
|
+
"border border-transparent hover:border-border",
|
|
41
|
+
"cursor-pointer transition-colors"
|
|
42
|
+
],
|
|
43
|
+
fieldLabel: "font-medium",
|
|
44
|
+
fieldOperator: "text-muted-foreground text-xs",
|
|
45
|
+
fieldValue: "max-w-[150px] truncate",
|
|
46
|
+
fieldRemove: [
|
|
47
|
+
"size-5 rounded-sm flex items-center justify-center",
|
|
48
|
+
"hover:bg-destructive/10 hover:text-destructive",
|
|
49
|
+
"transition-colors cursor-pointer",
|
|
50
|
+
...focusVisibleClasses
|
|
51
|
+
],
|
|
52
|
+
// Wert-Editor Popover
|
|
53
|
+
editor: [
|
|
54
|
+
"bg-popover text-popover-foreground border rounded-lg shadow-lg p-3 min-w-[240px]",
|
|
55
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
56
|
+
"data-[closed]:fade-out-0 data-[open]:fade-in-0",
|
|
57
|
+
"data-[closed]:zoom-out-95 data-[open]:zoom-in-95"
|
|
58
|
+
],
|
|
59
|
+
editorHeader: "flex items-center justify-between mb-2",
|
|
60
|
+
editorTitle: "text-sm font-medium",
|
|
61
|
+
editorOperator: "w-full mb-2",
|
|
62
|
+
editorInput: "w-full",
|
|
63
|
+
// Active Filters Container
|
|
64
|
+
active: "flex flex-wrap items-center gap-2",
|
|
65
|
+
// Clear All Button
|
|
66
|
+
clearAll: [
|
|
67
|
+
"text-xs text-muted-foreground hover:text-foreground",
|
|
68
|
+
"cursor-pointer transition-colors"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
variants: {
|
|
72
|
+
size: {
|
|
73
|
+
sm: {
|
|
74
|
+
trigger: "h-7 text-xs px-2.5",
|
|
75
|
+
field: "h-6 text-xs pl-2 pr-0.5",
|
|
76
|
+
fieldRemove: "size-4"
|
|
77
|
+
},
|
|
78
|
+
md: {
|
|
79
|
+
trigger: "h-8 px-3",
|
|
80
|
+
field: "h-7 pl-2.5 pr-1"
|
|
81
|
+
},
|
|
82
|
+
lg: {
|
|
83
|
+
trigger: "h-9 px-4 text-base",
|
|
84
|
+
field: "h-8 pl-3 pr-1.5 text-base",
|
|
85
|
+
fieldRemove: "size-6"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
variant: {
|
|
89
|
+
outline: {
|
|
90
|
+
field: "bg-transparent border-input"
|
|
91
|
+
},
|
|
92
|
+
solid: {}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
defaultVariants: {
|
|
96
|
+
size: "md",
|
|
97
|
+
variant: "solid"
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
filter
|
|
103
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// src/components/compliance-badge.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var complianceBadge = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: [
|
|
6
|
+
"group/badge",
|
|
7
|
+
"inline-flex",
|
|
8
|
+
"items-center",
|
|
9
|
+
"py-0.5",
|
|
10
|
+
"px-1.5",
|
|
11
|
+
"rounded",
|
|
12
|
+
"text-xs",
|
|
13
|
+
"font-medium",
|
|
14
|
+
"transition-all",
|
|
15
|
+
"duration-200",
|
|
16
|
+
"ease-out",
|
|
17
|
+
"cursor-default"
|
|
18
|
+
],
|
|
19
|
+
icon: "shrink-0",
|
|
20
|
+
label: [
|
|
21
|
+
"overflow-hidden",
|
|
22
|
+
"whitespace-nowrap",
|
|
23
|
+
"max-w-0",
|
|
24
|
+
"opacity-0",
|
|
25
|
+
"group-hover/badge:max-w-[50px]",
|
|
26
|
+
"group-hover/badge:opacity-100",
|
|
27
|
+
"group-hover/badge:ml-1",
|
|
28
|
+
"transition-all",
|
|
29
|
+
"duration-200",
|
|
30
|
+
"ease-out"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
variants: {
|
|
34
|
+
color: {
|
|
35
|
+
dora: {
|
|
36
|
+
root: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400"
|
|
37
|
+
},
|
|
38
|
+
nis2: {
|
|
39
|
+
root: "bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
color: "dora"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
complianceBadge
|
|
50
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// src/components/impact-card.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var impactCard = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
// Card wrapper (extends Card.Root)
|
|
6
|
+
root: "",
|
|
7
|
+
// Individual impact row
|
|
8
|
+
row: ["rounded-lg", "border", "p-3", "transition-all"],
|
|
9
|
+
rowContent: "flex items-center gap-3",
|
|
10
|
+
// Circle icon with short label (C, I, A, Au)
|
|
11
|
+
rowIcon: [
|
|
12
|
+
"w-8",
|
|
13
|
+
"h-8",
|
|
14
|
+
"rounded-full",
|
|
15
|
+
"flex",
|
|
16
|
+
"items-center",
|
|
17
|
+
"justify-center",
|
|
18
|
+
"text-sm",
|
|
19
|
+
"font-bold",
|
|
20
|
+
"shrink-0"
|
|
21
|
+
],
|
|
22
|
+
// Content area next to icon
|
|
23
|
+
rowBody: "flex-1 min-w-0",
|
|
24
|
+
rowHeader: "flex items-center justify-between mb-1",
|
|
25
|
+
rowLabel: "text-sm font-medium",
|
|
26
|
+
// Value display (when not editing)
|
|
27
|
+
rowValue: "flex items-center gap-2",
|
|
28
|
+
rowValueNumber: "text-xs text-muted-foreground font-mono",
|
|
29
|
+
rowValueBadge: "text-sm font-medium px-2 py-0.5 rounded",
|
|
30
|
+
// Progress bar
|
|
31
|
+
progressContainer: "h-1.5 bg-muted rounded-full overflow-hidden",
|
|
32
|
+
progressBar: "h-full rounded-full transition-all",
|
|
33
|
+
// Edit button
|
|
34
|
+
editButton: [
|
|
35
|
+
"p-1.5",
|
|
36
|
+
"rounded-md",
|
|
37
|
+
"hover:bg-muted",
|
|
38
|
+
"text-muted-foreground",
|
|
39
|
+
"hover:text-foreground",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
],
|
|
42
|
+
// Justification section
|
|
43
|
+
justificationSection: "pt-3 border-t",
|
|
44
|
+
justificationLabel: "block text-sm font-medium mb-2",
|
|
45
|
+
justificationHint: "text-muted-foreground font-normal ml-1",
|
|
46
|
+
justificationText: "text-sm text-foreground bg-muted/30 rounded-md p-3",
|
|
47
|
+
justificationEmpty: "text-sm text-muted-foreground/50 italic"
|
|
48
|
+
},
|
|
49
|
+
variants: {
|
|
50
|
+
// Row state: unrated vs rated
|
|
51
|
+
unrated: {
|
|
52
|
+
true: {
|
|
53
|
+
row: "bg-muted/30 border-dashed border-muted-foreground/20",
|
|
54
|
+
rowIcon: "bg-muted text-muted-foreground",
|
|
55
|
+
rowLabel: "text-muted-foreground",
|
|
56
|
+
rowValueBadge: "text-muted-foreground"
|
|
57
|
+
},
|
|
58
|
+
false: {
|
|
59
|
+
row: "bg-background border-border",
|
|
60
|
+
rowIcon: "bg-primary/10 text-primary"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
// Editing state
|
|
64
|
+
editing: {
|
|
65
|
+
true: {
|
|
66
|
+
root: "ring-2 ring-primary"
|
|
67
|
+
},
|
|
68
|
+
false: {}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
defaultVariants: {
|
|
72
|
+
unrated: false,
|
|
73
|
+
editing: false
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
impactCard
|
|
79
|
+
};
|
|
@@ -41,7 +41,7 @@ var combobox = tv({
|
|
|
41
41
|
"[&_svg]:size-4 [&_svg]:text-primary"
|
|
42
42
|
],
|
|
43
43
|
groupLabel: "px-2 py-1.5 text-xs text-muted-foreground font-medium",
|
|
44
|
-
empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0",
|
|
44
|
+
empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0 shrink-0",
|
|
45
45
|
clear: [
|
|
46
46
|
"absolute cursor-pointer end-6 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background",
|
|
47
47
|
"transition-opacity opacity-60 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
@@ -71,7 +71,10 @@ var combobox = tv({
|
|
|
71
71
|
"[&_svg]:size-3.5"
|
|
72
72
|
],
|
|
73
73
|
separator: "my-1.5 h-px bg-muted",
|
|
74
|
-
header: [
|
|
74
|
+
header: [
|
|
75
|
+
"flex flex-col items-start justify-between px-3 py-2 border-b",
|
|
76
|
+
"shrink-0"
|
|
77
|
+
],
|
|
75
78
|
title: "text-sm font-semibold",
|
|
76
79
|
description: "text-xs text-muted-foreground",
|
|
77
80
|
footer: [
|
|
@@ -90,11 +93,11 @@ var combobox = tv({
|
|
|
90
93
|
inside: {
|
|
91
94
|
popup: [
|
|
92
95
|
"overflow-hidden",
|
|
93
|
-
"
|
|
96
|
+
"max-h-[min(var(--available-height),30rem)]"
|
|
94
97
|
],
|
|
95
98
|
list: [
|
|
96
99
|
"overflow-y-auto scroll-py-2 py-2 overscroll-contain",
|
|
97
|
-
"max-h-
|
|
100
|
+
"max-h-80"
|
|
98
101
|
]
|
|
99
102
|
}
|
|
100
103
|
},
|
|
@@ -150,7 +150,7 @@ var combobox = (0, import_tailwind_variants2.tv)({
|
|
|
150
150
|
"[&_svg]:size-4 [&_svg]:text-primary"
|
|
151
151
|
],
|
|
152
152
|
groupLabel: "px-2 py-1.5 text-xs text-muted-foreground font-medium",
|
|
153
|
-
empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0",
|
|
153
|
+
empty: "px-2 py-1.5 text-sm text-muted-foreground empty:m-0 empty:p-0 shrink-0",
|
|
154
154
|
clear: [
|
|
155
155
|
"absolute cursor-pointer end-6 top-1/2 -translate-y-1/2 rounded-sm opacity-70 ring-offset-background",
|
|
156
156
|
"transition-opacity opacity-60 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
@@ -180,7 +180,10 @@ var combobox = (0, import_tailwind_variants2.tv)({
|
|
|
180
180
|
"[&_svg]:size-3.5"
|
|
181
181
|
],
|
|
182
182
|
separator: "my-1.5 h-px bg-muted",
|
|
183
|
-
header: [
|
|
183
|
+
header: [
|
|
184
|
+
"flex flex-col items-start justify-between px-3 py-2 border-b",
|
|
185
|
+
"shrink-0"
|
|
186
|
+
],
|
|
184
187
|
title: "text-sm font-semibold",
|
|
185
188
|
description: "text-xs text-muted-foreground",
|
|
186
189
|
footer: [
|
|
@@ -199,11 +202,11 @@ var combobox = (0, import_tailwind_variants2.tv)({
|
|
|
199
202
|
inside: {
|
|
200
203
|
popup: [
|
|
201
204
|
"overflow-hidden",
|
|
202
|
-
"
|
|
205
|
+
"max-h-[min(var(--available-height),30rem)]"
|
|
203
206
|
],
|
|
204
207
|
list: [
|
|
205
208
|
"overflow-y-auto scroll-py-2 py-2 overscroll-contain",
|
|
206
|
-
"max-h-
|
|
209
|
+
"max-h-80"
|
|
207
210
|
]
|
|
208
211
|
}
|
|
209
212
|
},
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const complianceBadge: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
dora: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
nis2: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
root: string[];
|
|
15
|
+
icon: string;
|
|
16
|
+
label: string[];
|
|
17
|
+
}, undefined, {
|
|
18
|
+
color: {
|
|
19
|
+
dora: {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
nis2: {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string[];
|
|
28
|
+
icon: string;
|
|
29
|
+
label: string[];
|
|
30
|
+
}, tailwind_variants.TVReturnType<{
|
|
31
|
+
color: {
|
|
32
|
+
dora: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
nis2: {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
root: string[];
|
|
41
|
+
icon: string;
|
|
42
|
+
label: string[];
|
|
43
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
44
|
+
type ComplianceBadgeVariantProps = VariantProps<typeof complianceBadge>;
|
|
45
|
+
type ComplianceBadgeSlots = keyof ReturnType<typeof complianceBadge>;
|
|
46
|
+
|
|
47
|
+
export { type ComplianceBadgeSlots, type ComplianceBadgeVariantProps, complianceBadge };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const complianceBadge: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
dora: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
nis2: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
root: string[];
|
|
15
|
+
icon: string;
|
|
16
|
+
label: string[];
|
|
17
|
+
}, undefined, {
|
|
18
|
+
color: {
|
|
19
|
+
dora: {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
nis2: {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string[];
|
|
28
|
+
icon: string;
|
|
29
|
+
label: string[];
|
|
30
|
+
}, tailwind_variants.TVReturnType<{
|
|
31
|
+
color: {
|
|
32
|
+
dora: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
nis2: {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
root: string[];
|
|
41
|
+
icon: string;
|
|
42
|
+
label: string[];
|
|
43
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
44
|
+
type ComplianceBadgeVariantProps = VariantProps<typeof complianceBadge>;
|
|
45
|
+
type ComplianceBadgeSlots = keyof ReturnType<typeof complianceBadge>;
|
|
46
|
+
|
|
47
|
+
export { type ComplianceBadgeSlots, type ComplianceBadgeVariantProps, complianceBadge };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/compliance-badge.ts
|
|
21
|
+
var compliance_badge_exports = {};
|
|
22
|
+
__export(compliance_badge_exports, {
|
|
23
|
+
complianceBadge: () => complianceBadge
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(compliance_badge_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var complianceBadge = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: [
|
|
30
|
+
"group/badge",
|
|
31
|
+
"inline-flex",
|
|
32
|
+
"items-center",
|
|
33
|
+
"py-0.5",
|
|
34
|
+
"px-1.5",
|
|
35
|
+
"rounded",
|
|
36
|
+
"text-xs",
|
|
37
|
+
"font-medium",
|
|
38
|
+
"transition-all",
|
|
39
|
+
"duration-200",
|
|
40
|
+
"ease-out",
|
|
41
|
+
"cursor-default"
|
|
42
|
+
],
|
|
43
|
+
icon: "shrink-0",
|
|
44
|
+
label: [
|
|
45
|
+
"overflow-hidden",
|
|
46
|
+
"whitespace-nowrap",
|
|
47
|
+
"max-w-0",
|
|
48
|
+
"opacity-0",
|
|
49
|
+
"group-hover/badge:max-w-[50px]",
|
|
50
|
+
"group-hover/badge:opacity-100",
|
|
51
|
+
"group-hover/badge:ml-1",
|
|
52
|
+
"transition-all",
|
|
53
|
+
"duration-200",
|
|
54
|
+
"ease-out"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
variants: {
|
|
58
|
+
color: {
|
|
59
|
+
dora: {
|
|
60
|
+
root: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400"
|
|
61
|
+
},
|
|
62
|
+
nis2: {
|
|
63
|
+
root: "bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
color: "dora"
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
+
0 && (module.exports = {
|
|
73
|
+
complianceBadge
|
|
74
|
+
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const filter: tailwind_variants.TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
trigger: string;
|
|
8
|
+
field: string;
|
|
9
|
+
fieldRemove: string;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
trigger: string;
|
|
13
|
+
field: string;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
trigger: string;
|
|
17
|
+
field: string;
|
|
18
|
+
fieldRemove: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
outline: {
|
|
23
|
+
field: string;
|
|
24
|
+
};
|
|
25
|
+
solid: {};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
root: string;
|
|
29
|
+
trigger: string[];
|
|
30
|
+
triggerIcon: string;
|
|
31
|
+
menu: string[];
|
|
32
|
+
menuGroup: string;
|
|
33
|
+
menuGroupLabel: string;
|
|
34
|
+
menuItem: string[];
|
|
35
|
+
menuItemIcon: string;
|
|
36
|
+
menuSeparator: string;
|
|
37
|
+
field: string[];
|
|
38
|
+
fieldLabel: string;
|
|
39
|
+
fieldOperator: string;
|
|
40
|
+
fieldValue: string;
|
|
41
|
+
fieldRemove: string[];
|
|
42
|
+
editor: string[];
|
|
43
|
+
editorHeader: string;
|
|
44
|
+
editorTitle: string;
|
|
45
|
+
editorOperator: string;
|
|
46
|
+
editorInput: string;
|
|
47
|
+
active: string;
|
|
48
|
+
clearAll: string[];
|
|
49
|
+
}, undefined, {
|
|
50
|
+
size: {
|
|
51
|
+
sm: {
|
|
52
|
+
trigger: string;
|
|
53
|
+
field: string;
|
|
54
|
+
fieldRemove: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
trigger: string;
|
|
58
|
+
field: string;
|
|
59
|
+
};
|
|
60
|
+
lg: {
|
|
61
|
+
trigger: string;
|
|
62
|
+
field: string;
|
|
63
|
+
fieldRemove: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
variant: {
|
|
67
|
+
outline: {
|
|
68
|
+
field: string;
|
|
69
|
+
};
|
|
70
|
+
solid: {};
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
root: string;
|
|
74
|
+
trigger: string[];
|
|
75
|
+
triggerIcon: string;
|
|
76
|
+
menu: string[];
|
|
77
|
+
menuGroup: string;
|
|
78
|
+
menuGroupLabel: string;
|
|
79
|
+
menuItem: string[];
|
|
80
|
+
menuItemIcon: string;
|
|
81
|
+
menuSeparator: string;
|
|
82
|
+
field: string[];
|
|
83
|
+
fieldLabel: string;
|
|
84
|
+
fieldOperator: string;
|
|
85
|
+
fieldValue: string;
|
|
86
|
+
fieldRemove: string[];
|
|
87
|
+
editor: string[];
|
|
88
|
+
editorHeader: string;
|
|
89
|
+
editorTitle: string;
|
|
90
|
+
editorOperator: string;
|
|
91
|
+
editorInput: string;
|
|
92
|
+
active: string;
|
|
93
|
+
clearAll: string[];
|
|
94
|
+
}, tailwind_variants.TVReturnType<{
|
|
95
|
+
size: {
|
|
96
|
+
sm: {
|
|
97
|
+
trigger: string;
|
|
98
|
+
field: string;
|
|
99
|
+
fieldRemove: string;
|
|
100
|
+
};
|
|
101
|
+
md: {
|
|
102
|
+
trigger: string;
|
|
103
|
+
field: string;
|
|
104
|
+
};
|
|
105
|
+
lg: {
|
|
106
|
+
trigger: string;
|
|
107
|
+
field: string;
|
|
108
|
+
fieldRemove: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
variant: {
|
|
112
|
+
outline: {
|
|
113
|
+
field: string;
|
|
114
|
+
};
|
|
115
|
+
solid: {};
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
root: string;
|
|
119
|
+
trigger: string[];
|
|
120
|
+
triggerIcon: string;
|
|
121
|
+
menu: string[];
|
|
122
|
+
menuGroup: string;
|
|
123
|
+
menuGroupLabel: string;
|
|
124
|
+
menuItem: string[];
|
|
125
|
+
menuItemIcon: string;
|
|
126
|
+
menuSeparator: string;
|
|
127
|
+
field: string[];
|
|
128
|
+
fieldLabel: string;
|
|
129
|
+
fieldOperator: string;
|
|
130
|
+
fieldValue: string;
|
|
131
|
+
fieldRemove: string[];
|
|
132
|
+
editor: string[];
|
|
133
|
+
editorHeader: string;
|
|
134
|
+
editorTitle: string;
|
|
135
|
+
editorOperator: string;
|
|
136
|
+
editorInput: string;
|
|
137
|
+
active: string;
|
|
138
|
+
clearAll: string[];
|
|
139
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
140
|
+
type FilterVariantProps = VariantProps<typeof filter>;
|
|
141
|
+
type FilterSlots = keyof ReturnType<typeof filter>;
|
|
142
|
+
|
|
143
|
+
export { type FilterSlots, type FilterVariantProps, filter };
|