@kopexa/theme 17.5.0 → 17.7.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.
Files changed (39) hide show
  1. package/dist/chunk-CNYKIUVC.mjs +64 -0
  2. package/dist/chunk-NIEFB74U.mjs +64 -0
  3. package/dist/chunk-PKB6QHSP.mjs +103 -0
  4. package/dist/chunk-RZ45NVOH.mjs +50 -0
  5. package/dist/chunk-TDITF5BB.mjs +79 -0
  6. package/dist/{chunk-PWH7OU6T.mjs → chunk-Z2SMCAER.mjs} +7 -4
  7. package/dist/components/combobox.js +7 -4
  8. package/dist/components/combobox.mjs +1 -1
  9. package/dist/components/compliance-badge.d.mts +47 -0
  10. package/dist/components/compliance-badge.d.ts +47 -0
  11. package/dist/components/compliance-badge.js +74 -0
  12. package/dist/components/compliance-badge.mjs +6 -0
  13. package/dist/components/filter.d.mts +143 -0
  14. package/dist/components/filter.d.ts +143 -0
  15. package/dist/components/filter.js +131 -0
  16. package/dist/components/filter.mjs +7 -0
  17. package/dist/components/impact-card.d.mts +122 -0
  18. package/dist/components/impact-card.d.ts +122 -0
  19. package/dist/components/impact-card.js +103 -0
  20. package/dist/components/impact-card.mjs +6 -0
  21. package/dist/components/index.d.mts +4 -0
  22. package/dist/components/index.d.ts +4 -0
  23. package/dist/components/index.js +439 -98
  24. package/dist/components/index.mjs +57 -41
  25. package/dist/components/related-control-chip.d.mts +68 -20
  26. package/dist/components/related-control-chip.d.ts +68 -20
  27. package/dist/components/related-control-chip.js +52 -2
  28. package/dist/components/related-control-chip.mjs +1 -1
  29. package/dist/components/risk-rating.d.mts +154 -0
  30. package/dist/components/risk-rating.d.ts +154 -0
  31. package/dist/components/risk-rating.js +88 -0
  32. package/dist/components/risk-rating.mjs +6 -0
  33. package/dist/index.d.mts +4 -0
  34. package/dist/index.d.ts +4 -0
  35. package/dist/index.js +439 -98
  36. package/dist/index.mjs +57 -41
  37. package/package.json +2 -2
  38. package/dist/chunk-7BZAMXH2.mjs +0 -14
  39. /package/dist/{chunk-BYXTAZ4I.mjs → chunk-ALG7CNQH.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,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,7 @@
1
+ import {
2
+ filter
3
+ } from "../chunk-PKB6QHSP.mjs";
4
+ import "../chunk-6IZPAS4O.mjs";
5
+ export {
6
+ filter
7
+ };
@@ -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 };