@kopexa/theme 17.4.2 → 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-76J7KB3M.mjs → chunk-Z2SMCAER.mjs} +13 -6
- package/dist/components/combobox.d.mts +3 -0
- package/dist/components/combobox.d.ts +3 -0
- package/dist/components/combobox.js +13 -6
- 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 +330 -98
- 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 +330 -98
- package/dist/index.mjs +47 -35
- package/package.json +2 -2
- /package/dist/{chunk-BYXTAZ4I.mjs → chunk-M35MNWR7.mjs} +0 -0
|
@@ -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 };
|
|
@@ -0,0 +1,131 @@
|
|
|
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/filter.ts
|
|
21
|
+
var filter_exports = {};
|
|
22
|
+
__export(filter_exports, {
|
|
23
|
+
filter: () => filter
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(filter_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/utils/classes.ts
|
|
29
|
+
var focusVisibleClasses = [
|
|
30
|
+
"focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2"
|
|
31
|
+
//"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
// src/components/filter.ts
|
|
35
|
+
var filter = (0, import_tailwind_variants.tv)({
|
|
36
|
+
slots: {
|
|
37
|
+
root: "flex flex-wrap items-center gap-2",
|
|
38
|
+
// Trigger Button
|
|
39
|
+
trigger: [
|
|
40
|
+
"inline-flex items-center gap-2 rounded-md",
|
|
41
|
+
"border border-dashed border-input text-sm",
|
|
42
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
43
|
+
"transition-colors cursor-pointer",
|
|
44
|
+
...focusVisibleClasses
|
|
45
|
+
],
|
|
46
|
+
triggerIcon: "size-4 opacity-60",
|
|
47
|
+
// Feld-Auswahl Menü
|
|
48
|
+
menu: [
|
|
49
|
+
"bg-popover text-popover-foreground border rounded-lg shadow-lg p-1 min-w-[220px]",
|
|
50
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
51
|
+
"data-[closed]:fade-out-0 data-[open]:fade-in-0",
|
|
52
|
+
"data-[closed]:zoom-out-95 data-[open]:zoom-in-95"
|
|
53
|
+
],
|
|
54
|
+
menuGroup: "py-1",
|
|
55
|
+
menuGroupLabel: "px-2 py-1.5 text-xs font-medium text-muted-foreground uppercase tracking-wide",
|
|
56
|
+
menuItem: [
|
|
57
|
+
"flex items-center gap-2 px-2 py-1.5 rounded-sm text-sm cursor-pointer",
|
|
58
|
+
"outline-none select-none",
|
|
59
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
60
|
+
"data-disabled:opacity-50 data-disabled:pointer-events-none"
|
|
61
|
+
],
|
|
62
|
+
menuItemIcon: "size-4 text-muted-foreground",
|
|
63
|
+
menuSeparator: "bg-border -mx-1 my-1 h-px",
|
|
64
|
+
// Aktiver Filter (Chip-artig)
|
|
65
|
+
field: [
|
|
66
|
+
"inline-flex items-center gap-1 rounded-md",
|
|
67
|
+
"bg-secondary text-secondary-foreground text-sm",
|
|
68
|
+
"border border-transparent hover:border-border",
|
|
69
|
+
"cursor-pointer transition-colors"
|
|
70
|
+
],
|
|
71
|
+
fieldLabel: "font-medium",
|
|
72
|
+
fieldOperator: "text-muted-foreground text-xs",
|
|
73
|
+
fieldValue: "max-w-[150px] truncate",
|
|
74
|
+
fieldRemove: [
|
|
75
|
+
"size-5 rounded-sm flex items-center justify-center",
|
|
76
|
+
"hover:bg-destructive/10 hover:text-destructive",
|
|
77
|
+
"transition-colors cursor-pointer",
|
|
78
|
+
...focusVisibleClasses
|
|
79
|
+
],
|
|
80
|
+
// Wert-Editor Popover
|
|
81
|
+
editor: [
|
|
82
|
+
"bg-popover text-popover-foreground border rounded-lg shadow-lg p-3 min-w-[240px]",
|
|
83
|
+
"data-[open]:animate-in data-[closed]:animate-out",
|
|
84
|
+
"data-[closed]:fade-out-0 data-[open]:fade-in-0",
|
|
85
|
+
"data-[closed]:zoom-out-95 data-[open]:zoom-in-95"
|
|
86
|
+
],
|
|
87
|
+
editorHeader: "flex items-center justify-between mb-2",
|
|
88
|
+
editorTitle: "text-sm font-medium",
|
|
89
|
+
editorOperator: "w-full mb-2",
|
|
90
|
+
editorInput: "w-full",
|
|
91
|
+
// Active Filters Container
|
|
92
|
+
active: "flex flex-wrap items-center gap-2",
|
|
93
|
+
// Clear All Button
|
|
94
|
+
clearAll: [
|
|
95
|
+
"text-xs text-muted-foreground hover:text-foreground",
|
|
96
|
+
"cursor-pointer transition-colors"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
variants: {
|
|
100
|
+
size: {
|
|
101
|
+
sm: {
|
|
102
|
+
trigger: "h-7 text-xs px-2.5",
|
|
103
|
+
field: "h-6 text-xs pl-2 pr-0.5",
|
|
104
|
+
fieldRemove: "size-4"
|
|
105
|
+
},
|
|
106
|
+
md: {
|
|
107
|
+
trigger: "h-8 px-3",
|
|
108
|
+
field: "h-7 pl-2.5 pr-1"
|
|
109
|
+
},
|
|
110
|
+
lg: {
|
|
111
|
+
trigger: "h-9 px-4 text-base",
|
|
112
|
+
field: "h-8 pl-3 pr-1.5 text-base",
|
|
113
|
+
fieldRemove: "size-6"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
variant: {
|
|
117
|
+
outline: {
|
|
118
|
+
field: "bg-transparent border-input"
|
|
119
|
+
},
|
|
120
|
+
solid: {}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
defaultVariants: {
|
|
124
|
+
size: "md",
|
|
125
|
+
variant: "solid"
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
+
0 && (module.exports = {
|
|
130
|
+
filter
|
|
131
|
+
});
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const impactCard: tailwind_variants.TVReturnType<{
|
|
5
|
+
unrated: {
|
|
6
|
+
true: {
|
|
7
|
+
row: string;
|
|
8
|
+
rowIcon: string;
|
|
9
|
+
rowLabel: string;
|
|
10
|
+
rowValueBadge: string;
|
|
11
|
+
};
|
|
12
|
+
false: {
|
|
13
|
+
row: string;
|
|
14
|
+
rowIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
editing: {
|
|
18
|
+
true: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
false: {};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
root: string;
|
|
25
|
+
row: string[];
|
|
26
|
+
rowContent: string;
|
|
27
|
+
rowIcon: string[];
|
|
28
|
+
rowBody: string;
|
|
29
|
+
rowHeader: string;
|
|
30
|
+
rowLabel: string;
|
|
31
|
+
rowValue: string;
|
|
32
|
+
rowValueNumber: string;
|
|
33
|
+
rowValueBadge: string;
|
|
34
|
+
progressContainer: string;
|
|
35
|
+
progressBar: string;
|
|
36
|
+
editButton: string[];
|
|
37
|
+
justificationSection: string;
|
|
38
|
+
justificationLabel: string;
|
|
39
|
+
justificationHint: string;
|
|
40
|
+
justificationText: string;
|
|
41
|
+
justificationEmpty: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
unrated: {
|
|
44
|
+
true: {
|
|
45
|
+
row: string;
|
|
46
|
+
rowIcon: string;
|
|
47
|
+
rowLabel: string;
|
|
48
|
+
rowValueBadge: string;
|
|
49
|
+
};
|
|
50
|
+
false: {
|
|
51
|
+
row: string;
|
|
52
|
+
rowIcon: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
editing: {
|
|
56
|
+
true: {
|
|
57
|
+
root: string;
|
|
58
|
+
};
|
|
59
|
+
false: {};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
root: string;
|
|
63
|
+
row: string[];
|
|
64
|
+
rowContent: string;
|
|
65
|
+
rowIcon: string[];
|
|
66
|
+
rowBody: string;
|
|
67
|
+
rowHeader: string;
|
|
68
|
+
rowLabel: string;
|
|
69
|
+
rowValue: string;
|
|
70
|
+
rowValueNumber: string;
|
|
71
|
+
rowValueBadge: string;
|
|
72
|
+
progressContainer: string;
|
|
73
|
+
progressBar: string;
|
|
74
|
+
editButton: string[];
|
|
75
|
+
justificationSection: string;
|
|
76
|
+
justificationLabel: string;
|
|
77
|
+
justificationHint: string;
|
|
78
|
+
justificationText: string;
|
|
79
|
+
justificationEmpty: string;
|
|
80
|
+
}, tailwind_variants.TVReturnType<{
|
|
81
|
+
unrated: {
|
|
82
|
+
true: {
|
|
83
|
+
row: string;
|
|
84
|
+
rowIcon: string;
|
|
85
|
+
rowLabel: string;
|
|
86
|
+
rowValueBadge: string;
|
|
87
|
+
};
|
|
88
|
+
false: {
|
|
89
|
+
row: string;
|
|
90
|
+
rowIcon: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
editing: {
|
|
94
|
+
true: {
|
|
95
|
+
root: string;
|
|
96
|
+
};
|
|
97
|
+
false: {};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
root: string;
|
|
101
|
+
row: string[];
|
|
102
|
+
rowContent: string;
|
|
103
|
+
rowIcon: string[];
|
|
104
|
+
rowBody: string;
|
|
105
|
+
rowHeader: string;
|
|
106
|
+
rowLabel: string;
|
|
107
|
+
rowValue: string;
|
|
108
|
+
rowValueNumber: string;
|
|
109
|
+
rowValueBadge: string;
|
|
110
|
+
progressContainer: string;
|
|
111
|
+
progressBar: string;
|
|
112
|
+
editButton: string[];
|
|
113
|
+
justificationSection: string;
|
|
114
|
+
justificationLabel: string;
|
|
115
|
+
justificationHint: string;
|
|
116
|
+
justificationText: string;
|
|
117
|
+
justificationEmpty: string;
|
|
118
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
119
|
+
type ImpactCardVariantProps = VariantProps<typeof impactCard>;
|
|
120
|
+
type ImpactCardSlots = keyof ReturnType<typeof impactCard>;
|
|
121
|
+
|
|
122
|
+
export { type ImpactCardSlots, type ImpactCardVariantProps, impactCard };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const impactCard: tailwind_variants.TVReturnType<{
|
|
5
|
+
unrated: {
|
|
6
|
+
true: {
|
|
7
|
+
row: string;
|
|
8
|
+
rowIcon: string;
|
|
9
|
+
rowLabel: string;
|
|
10
|
+
rowValueBadge: string;
|
|
11
|
+
};
|
|
12
|
+
false: {
|
|
13
|
+
row: string;
|
|
14
|
+
rowIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
editing: {
|
|
18
|
+
true: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
false: {};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
root: string;
|
|
25
|
+
row: string[];
|
|
26
|
+
rowContent: string;
|
|
27
|
+
rowIcon: string[];
|
|
28
|
+
rowBody: string;
|
|
29
|
+
rowHeader: string;
|
|
30
|
+
rowLabel: string;
|
|
31
|
+
rowValue: string;
|
|
32
|
+
rowValueNumber: string;
|
|
33
|
+
rowValueBadge: string;
|
|
34
|
+
progressContainer: string;
|
|
35
|
+
progressBar: string;
|
|
36
|
+
editButton: string[];
|
|
37
|
+
justificationSection: string;
|
|
38
|
+
justificationLabel: string;
|
|
39
|
+
justificationHint: string;
|
|
40
|
+
justificationText: string;
|
|
41
|
+
justificationEmpty: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
unrated: {
|
|
44
|
+
true: {
|
|
45
|
+
row: string;
|
|
46
|
+
rowIcon: string;
|
|
47
|
+
rowLabel: string;
|
|
48
|
+
rowValueBadge: string;
|
|
49
|
+
};
|
|
50
|
+
false: {
|
|
51
|
+
row: string;
|
|
52
|
+
rowIcon: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
editing: {
|
|
56
|
+
true: {
|
|
57
|
+
root: string;
|
|
58
|
+
};
|
|
59
|
+
false: {};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
root: string;
|
|
63
|
+
row: string[];
|
|
64
|
+
rowContent: string;
|
|
65
|
+
rowIcon: string[];
|
|
66
|
+
rowBody: string;
|
|
67
|
+
rowHeader: string;
|
|
68
|
+
rowLabel: string;
|
|
69
|
+
rowValue: string;
|
|
70
|
+
rowValueNumber: string;
|
|
71
|
+
rowValueBadge: string;
|
|
72
|
+
progressContainer: string;
|
|
73
|
+
progressBar: string;
|
|
74
|
+
editButton: string[];
|
|
75
|
+
justificationSection: string;
|
|
76
|
+
justificationLabel: string;
|
|
77
|
+
justificationHint: string;
|
|
78
|
+
justificationText: string;
|
|
79
|
+
justificationEmpty: string;
|
|
80
|
+
}, tailwind_variants.TVReturnType<{
|
|
81
|
+
unrated: {
|
|
82
|
+
true: {
|
|
83
|
+
row: string;
|
|
84
|
+
rowIcon: string;
|
|
85
|
+
rowLabel: string;
|
|
86
|
+
rowValueBadge: string;
|
|
87
|
+
};
|
|
88
|
+
false: {
|
|
89
|
+
row: string;
|
|
90
|
+
rowIcon: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
editing: {
|
|
94
|
+
true: {
|
|
95
|
+
root: string;
|
|
96
|
+
};
|
|
97
|
+
false: {};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
root: string;
|
|
101
|
+
row: string[];
|
|
102
|
+
rowContent: string;
|
|
103
|
+
rowIcon: string[];
|
|
104
|
+
rowBody: string;
|
|
105
|
+
rowHeader: string;
|
|
106
|
+
rowLabel: string;
|
|
107
|
+
rowValue: string;
|
|
108
|
+
rowValueNumber: string;
|
|
109
|
+
rowValueBadge: string;
|
|
110
|
+
progressContainer: string;
|
|
111
|
+
progressBar: string;
|
|
112
|
+
editButton: string[];
|
|
113
|
+
justificationSection: string;
|
|
114
|
+
justificationLabel: string;
|
|
115
|
+
justificationHint: string;
|
|
116
|
+
justificationText: string;
|
|
117
|
+
justificationEmpty: string;
|
|
118
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
119
|
+
type ImpactCardVariantProps = VariantProps<typeof impactCard>;
|
|
120
|
+
type ImpactCardSlots = keyof ReturnType<typeof impactCard>;
|
|
121
|
+
|
|
122
|
+
export { type ImpactCardSlots, type ImpactCardVariantProps, impactCard };
|
|
@@ -0,0 +1,103 @@
|
|
|
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/impact-card.ts
|
|
21
|
+
var impact_card_exports = {};
|
|
22
|
+
__export(impact_card_exports, {
|
|
23
|
+
impactCard: () => impactCard
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(impact_card_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var impactCard = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
// Card wrapper (extends Card.Root)
|
|
30
|
+
root: "",
|
|
31
|
+
// Individual impact row
|
|
32
|
+
row: ["rounded-lg", "border", "p-3", "transition-all"],
|
|
33
|
+
rowContent: "flex items-center gap-3",
|
|
34
|
+
// Circle icon with short label (C, I, A, Au)
|
|
35
|
+
rowIcon: [
|
|
36
|
+
"w-8",
|
|
37
|
+
"h-8",
|
|
38
|
+
"rounded-full",
|
|
39
|
+
"flex",
|
|
40
|
+
"items-center",
|
|
41
|
+
"justify-center",
|
|
42
|
+
"text-sm",
|
|
43
|
+
"font-bold",
|
|
44
|
+
"shrink-0"
|
|
45
|
+
],
|
|
46
|
+
// Content area next to icon
|
|
47
|
+
rowBody: "flex-1 min-w-0",
|
|
48
|
+
rowHeader: "flex items-center justify-between mb-1",
|
|
49
|
+
rowLabel: "text-sm font-medium",
|
|
50
|
+
// Value display (when not editing)
|
|
51
|
+
rowValue: "flex items-center gap-2",
|
|
52
|
+
rowValueNumber: "text-xs text-muted-foreground font-mono",
|
|
53
|
+
rowValueBadge: "text-sm font-medium px-2 py-0.5 rounded",
|
|
54
|
+
// Progress bar
|
|
55
|
+
progressContainer: "h-1.5 bg-muted rounded-full overflow-hidden",
|
|
56
|
+
progressBar: "h-full rounded-full transition-all",
|
|
57
|
+
// Edit button
|
|
58
|
+
editButton: [
|
|
59
|
+
"p-1.5",
|
|
60
|
+
"rounded-md",
|
|
61
|
+
"hover:bg-muted",
|
|
62
|
+
"text-muted-foreground",
|
|
63
|
+
"hover:text-foreground",
|
|
64
|
+
"transition-colors"
|
|
65
|
+
],
|
|
66
|
+
// Justification section
|
|
67
|
+
justificationSection: "pt-3 border-t",
|
|
68
|
+
justificationLabel: "block text-sm font-medium mb-2",
|
|
69
|
+
justificationHint: "text-muted-foreground font-normal ml-1",
|
|
70
|
+
justificationText: "text-sm text-foreground bg-muted/30 rounded-md p-3",
|
|
71
|
+
justificationEmpty: "text-sm text-muted-foreground/50 italic"
|
|
72
|
+
},
|
|
73
|
+
variants: {
|
|
74
|
+
// Row state: unrated vs rated
|
|
75
|
+
unrated: {
|
|
76
|
+
true: {
|
|
77
|
+
row: "bg-muted/30 border-dashed border-muted-foreground/20",
|
|
78
|
+
rowIcon: "bg-muted text-muted-foreground",
|
|
79
|
+
rowLabel: "text-muted-foreground",
|
|
80
|
+
rowValueBadge: "text-muted-foreground"
|
|
81
|
+
},
|
|
82
|
+
false: {
|
|
83
|
+
row: "bg-background border-border",
|
|
84
|
+
rowIcon: "bg-primary/10 text-primary"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
// Editing state
|
|
88
|
+
editing: {
|
|
89
|
+
true: {
|
|
90
|
+
root: "ring-2 ring-primary"
|
|
91
|
+
},
|
|
92
|
+
false: {}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
defaultVariants: {
|
|
96
|
+
unrated: false,
|
|
97
|
+
editing: false
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
+
0 && (module.exports = {
|
|
102
|
+
impactCard
|
|
103
|
+
});
|
|
@@ -14,6 +14,7 @@ export { CodeVariantProps, code } from './code.mjs';
|
|
|
14
14
|
export { colorHighlightButton } from './color-highlight-button.mjs';
|
|
15
15
|
export { ComboboxVariantProps, combobox } from './combobox.mjs';
|
|
16
16
|
export { CommandVariants, command } from './command.mjs';
|
|
17
|
+
export { ComplianceBadgeSlots, ComplianceBadgeVariantProps, complianceBadge } from './compliance-badge.mjs';
|
|
17
18
|
export { controlExtension } from './control-extension.mjs';
|
|
18
19
|
export { DataGridVariants, datagrid } from './data-grid.mjs';
|
|
19
20
|
export { DataTableVariants, dataTable } from './data-table.mjs';
|
|
@@ -23,10 +24,12 @@ export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
|
|
|
23
24
|
export { EditorBasicVariants, editorBasic } from './editor-basic.mjs';
|
|
24
25
|
export { editorSpinner } from './editor-spinner.mjs';
|
|
25
26
|
export { AvatarUploadSlots, AvatarUploadVariants, avatarUpload } from './file-upload.mjs';
|
|
27
|
+
export { FilterSlots, FilterVariantProps, filter } from './filter.mjs';
|
|
26
28
|
export { frameworkRow } from './framework-row.mjs';
|
|
27
29
|
export { HeadingVariantProps, heading } from './heading.mjs';
|
|
28
30
|
export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './hover-card.mjs';
|
|
29
31
|
export { imageCrop } from './image-crop.mjs';
|
|
32
|
+
export { ImpactCardSlots, ImpactCardVariantProps, impactCard } from './impact-card.mjs';
|
|
30
33
|
export { InputVariantProps, input, passwordInput } from './input.mjs';
|
|
31
34
|
export { inputGroup } from './input-group.mjs';
|
|
32
35
|
export { InputWrapperVariantProps, inputWrapper } from './input-wrapper.mjs';
|
|
@@ -14,6 +14,7 @@ export { CodeVariantProps, code } from './code.js';
|
|
|
14
14
|
export { colorHighlightButton } from './color-highlight-button.js';
|
|
15
15
|
export { ComboboxVariantProps, combobox } from './combobox.js';
|
|
16
16
|
export { CommandVariants, command } from './command.js';
|
|
17
|
+
export { ComplianceBadgeSlots, ComplianceBadgeVariantProps, complianceBadge } from './compliance-badge.js';
|
|
17
18
|
export { controlExtension } from './control-extension.js';
|
|
18
19
|
export { DataGridVariants, datagrid } from './data-grid.js';
|
|
19
20
|
export { DataTableVariants, dataTable } from './data-table.js';
|
|
@@ -23,10 +24,12 @@ export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
|
|
|
23
24
|
export { EditorBasicVariants, editorBasic } from './editor-basic.js';
|
|
24
25
|
export { editorSpinner } from './editor-spinner.js';
|
|
25
26
|
export { AvatarUploadSlots, AvatarUploadVariants, avatarUpload } from './file-upload.js';
|
|
27
|
+
export { FilterSlots, FilterVariantProps, filter } from './filter.js';
|
|
26
28
|
export { frameworkRow } from './framework-row.js';
|
|
27
29
|
export { HeadingVariantProps, heading } from './heading.js';
|
|
28
30
|
export { HoverCardSlots, HoverCardVariantProps, hoverCard } from './hover-card.js';
|
|
29
31
|
export { imageCrop } from './image-crop.js';
|
|
32
|
+
export { ImpactCardSlots, ImpactCardVariantProps, impactCard } from './impact-card.js';
|
|
30
33
|
export { InputVariantProps, input, passwordInput } from './input.js';
|
|
31
34
|
export { inputGroup } from './input-group.js';
|
|
32
35
|
export { InputWrapperVariantProps, inputWrapper } from './input-wrapper.js';
|