@kopexa/theme 17.6.0 → 17.8.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 (35) hide show
  1. package/dist/chunk-CNYKIUVC.mjs +64 -0
  2. package/dist/chunk-CPAF7VNM.mjs +51 -0
  3. package/dist/{chunk-TDITF5BB.mjs → chunk-EJSDSK3G.mjs} +4 -0
  4. package/dist/chunk-NIEFB74U.mjs +64 -0
  5. package/dist/components/audit-info.d.mts +119 -0
  6. package/dist/components/audit-info.d.ts +119 -0
  7. package/dist/components/audit-info.js +75 -0
  8. package/dist/components/audit-info.mjs +6 -0
  9. package/dist/components/command.d.mts +3 -3
  10. package/dist/components/command.d.ts +3 -3
  11. package/dist/components/dropdown-menu.d.mts +3 -3
  12. package/dist/components/dropdown-menu.d.ts +3 -3
  13. package/dist/components/impact-card.d.mts +6 -0
  14. package/dist/components/impact-card.d.ts +6 -0
  15. package/dist/components/impact-card.js +4 -0
  16. package/dist/components/impact-card.mjs +1 -1
  17. package/dist/components/index.d.mts +2 -0
  18. package/dist/components/index.d.ts +2 -0
  19. package/dist/components/index.js +298 -131
  20. package/dist/components/index.mjs +37 -29
  21. package/dist/components/related-control-chip.d.mts +68 -20
  22. package/dist/components/related-control-chip.d.ts +68 -20
  23. package/dist/components/related-control-chip.js +52 -2
  24. package/dist/components/related-control-chip.mjs +1 -1
  25. package/dist/components/risk-rating.d.mts +154 -0
  26. package/dist/components/risk-rating.d.ts +154 -0
  27. package/dist/components/risk-rating.js +88 -0
  28. package/dist/components/risk-rating.mjs +6 -0
  29. package/dist/index.d.mts +2 -0
  30. package/dist/index.d.ts +2 -0
  31. package/dist/index.js +298 -131
  32. package/dist/index.mjs +37 -29
  33. package/package.json +3 -3
  34. package/dist/chunk-7BZAMXH2.mjs +0 -14
  35. /package/dist/{chunk-M35MNWR7.mjs → chunk-7ED3ZIKG.mjs} +0 -0
@@ -1,4 +1,10 @@
1
- import "../chunk-M35MNWR7.mjs";
1
+ import "../chunk-7ED3ZIKG.mjs";
2
+ import {
3
+ table
4
+ } from "../chunk-YC2FQDBV.mjs";
5
+ import {
6
+ tabs
7
+ } from "../chunk-I6M4S2KZ.mjs";
2
8
  import {
3
9
  textarea
4
10
  } from "../chunk-ARLLAC5V.mjs";
@@ -8,6 +14,12 @@ import {
8
14
  import {
9
15
  tooltip
10
16
  } from "../chunk-OLYO7UPH.mjs";
17
+ import {
18
+ skeletonAvatar
19
+ } from "../chunk-7Q2RNHL5.mjs";
20
+ import {
21
+ skeleton
22
+ } from "../chunk-VNQEJU4P.mjs";
11
23
  import {
12
24
  slashDropdownMenu
13
25
  } from "../chunk-NNKYGAZC.mjs";
@@ -27,14 +39,14 @@ import {
27
39
  tabNav
28
40
  } from "../chunk-ZLM6Z3W2.mjs";
29
41
  import {
30
- table
31
- } from "../chunk-YC2FQDBV.mjs";
32
- import {
33
- tabs
34
- } from "../chunk-I6M4S2KZ.mjs";
42
+ riskBadge
43
+ } from "../chunk-V2J5XG34.mjs";
35
44
  import {
36
45
  riskIndicator
37
46
  } from "../chunk-CZMZHA7U.mjs";
47
+ import {
48
+ riskRating
49
+ } from "../chunk-CNYKIUVC.mjs";
38
50
  import {
39
51
  scrollArea
40
52
  } from "../chunk-SPQE7K66.mjs";
@@ -53,11 +65,8 @@ import {
53
65
  sidebarMenuButton
54
66
  } from "../chunk-3CZOBPDH.mjs";
55
67
  import {
56
- skeletonAvatar
57
- } from "../chunk-7Q2RNHL5.mjs";
58
- import {
59
- skeleton
60
- } from "../chunk-VNQEJU4P.mjs";
68
+ label
69
+ } from "../chunk-LMCM4CW2.mjs";
61
70
  import {
62
71
  loadingPage
63
72
  } from "../chunk-ZOTN264E.mjs";
@@ -75,16 +84,16 @@ import {
75
84
  } from "../chunk-4XIBRN6X.mjs";
76
85
  import {
77
86
  relatedControlChip
78
- } from "../chunk-7BZAMXH2.mjs";
87
+ } from "../chunk-NIEFB74U.mjs";
79
88
  import {
80
89
  resizable
81
90
  } from "../chunk-RV656WRF.mjs";
82
91
  import {
83
- riskBadge
84
- } from "../chunk-V2J5XG34.mjs";
92
+ imageCrop
93
+ } from "../chunk-GMFZLUU4.mjs";
85
94
  import {
86
95
  impactCard
87
- } from "../chunk-TDITF5BB.mjs";
96
+ } from "../chunk-EJSDSK3G.mjs";
88
97
  import {
89
98
  inputGroup
90
99
  } from "../chunk-HWEYNK3O.mjs";
@@ -98,8 +107,8 @@ import {
98
107
  kbd
99
108
  } from "../chunk-BETLBSSF.mjs";
100
109
  import {
101
- label
102
- } from "../chunk-LMCM4CW2.mjs";
110
+ dropdownMenu
111
+ } from "../chunk-3PCDCW7G.mjs";
103
112
  import {
104
113
  editorBasic
105
114
  } from "../chunk-XOL7P7NP.mjs";
@@ -122,8 +131,8 @@ import {
122
131
  hoverCard
123
132
  } from "../chunk-UTCVHVWF.mjs";
124
133
  import {
125
- imageCrop
126
- } from "../chunk-GMFZLUU4.mjs";
134
+ combobox
135
+ } from "../chunk-Z2SMCAER.mjs";
127
136
  import {
128
137
  command
129
138
  } from "../chunk-YPHFKGNI.mjs";
@@ -146,8 +155,8 @@ import {
146
155
  dialog
147
156
  } from "../chunk-OJDCD74N.mjs";
148
157
  import {
149
- dropdownMenu
150
- } from "../chunk-3PCDCW7G.mjs";
158
+ button
159
+ } from "../chunk-OTETLRUE.mjs";
151
160
  import {
152
161
  calendar
153
162
  } from "../chunk-JWF5ABNP.mjs";
@@ -169,15 +178,15 @@ import {
169
178
  import {
170
179
  colorHighlightButton
171
180
  } from "../chunk-CPERWXKN.mjs";
172
- import {
173
- combobox
174
- } from "../chunk-Z2SMCAER.mjs";
175
181
  import {
176
182
  accordion
177
183
  } from "../chunk-AEWKHJEI.mjs";
178
184
  import {
179
185
  alertDialog
180
186
  } from "../chunk-XGUDXC5P.mjs";
187
+ import {
188
+ auditInfo
189
+ } from "../chunk-CPAF7VNM.mjs";
181
190
  import {
182
191
  autocomplete
183
192
  } from "../chunk-CWAFYX5G.mjs";
@@ -191,17 +200,15 @@ import {
191
200
  import {
192
201
  avatar
193
202
  } from "../chunk-D5FKEY7B.mjs";
203
+ import "../chunk-7T563RF7.mjs";
204
+ import "../chunk-6IZPAS4O.mjs";
194
205
  import {
195
206
  blankstate
196
207
  } from "../chunk-DICHD74Q.mjs";
197
- import {
198
- button
199
- } from "../chunk-OTETLRUE.mjs";
200
- import "../chunk-7T563RF7.mjs";
201
- import "../chunk-6IZPAS4O.mjs";
202
208
  export {
203
209
  accordion,
204
210
  alertDialog,
211
+ auditInfo,
205
212
  autocomplete,
206
213
  avatar,
207
214
  avatarGroup,
@@ -248,6 +255,7 @@ export {
248
255
  resizable,
249
256
  riskBadge,
250
257
  riskIndicator,
258
+ riskRating,
251
259
  scrollArea,
252
260
  sectionRow,
253
261
  select,
@@ -1,36 +1,84 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
- import * as tailwind_merge from 'tailwind-merge';
4
3
 
4
+ /**
5
+ * Theme styles for related control chips.
6
+ * Used to display KRN-based control references as compact chips/tags.
7
+ */
5
8
  declare const relatedControlChip: tailwind_variants.TVReturnType<{
6
- [key: string]: {
7
- [key: string]: tailwind_merge.ClassNameValue | {
8
- root?: tailwind_merge.ClassNameValue;
9
- tooltip?: tailwind_merge.ClassNameValue;
9
+ size: {
10
+ sm: {
11
+ chip: string;
12
+ overflow: string;
13
+ };
14
+ md: {};
15
+ lg: {
16
+ chip: string;
17
+ overflow: string;
10
18
  };
11
19
  };
12
- } | {
13
- [x: string]: {
14
- [x: string]: tailwind_merge.ClassNameValue | {
15
- root?: tailwind_merge.ClassNameValue;
16
- tooltip?: tailwind_merge.ClassNameValue;
20
+ interactive: {
21
+ true: {
22
+ chip: string;
17
23
  };
24
+ false: {};
18
25
  };
19
- } | {}, {
20
- root: string[];
26
+ }, {
27
+ root: string;
28
+ chip: string[];
29
+ chipPrefix: string;
30
+ chipId: string;
31
+ overflow: string[];
21
32
  tooltip: string;
22
33
  }, undefined, {
23
- [key: string]: {
24
- [key: string]: tailwind_merge.ClassNameValue | {
25
- root?: tailwind_merge.ClassNameValue;
26
- tooltip?: tailwind_merge.ClassNameValue;
34
+ size: {
35
+ sm: {
36
+ chip: string;
37
+ overflow: string;
38
+ };
39
+ md: {};
40
+ lg: {
41
+ chip: string;
42
+ overflow: string;
27
43
  };
28
44
  };
29
- } | {}, {
30
- root: string[];
45
+ interactive: {
46
+ true: {
47
+ chip: string;
48
+ };
49
+ false: {};
50
+ };
51
+ }, {
52
+ root: string;
53
+ chip: string[];
54
+ chipPrefix: string;
55
+ chipId: string;
56
+ overflow: string[];
31
57
  tooltip: string;
32
- }, tailwind_variants.TVReturnType<unknown, {
33
- root: string[];
58
+ }, tailwind_variants.TVReturnType<{
59
+ size: {
60
+ sm: {
61
+ chip: string;
62
+ overflow: string;
63
+ };
64
+ md: {};
65
+ lg: {
66
+ chip: string;
67
+ overflow: string;
68
+ };
69
+ };
70
+ interactive: {
71
+ true: {
72
+ chip: string;
73
+ };
74
+ false: {};
75
+ };
76
+ }, {
77
+ root: string;
78
+ chip: string[];
79
+ chipPrefix: string;
80
+ chipId: string;
81
+ overflow: string[];
34
82
  tooltip: string;
35
83
  }, undefined, unknown, unknown, undefined>>;
36
84
  type RelatedControlChipVariantsProps = VariantProps<typeof relatedControlChip>;
@@ -1,36 +1,84 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
- import * as tailwind_merge from 'tailwind-merge';
4
3
 
4
+ /**
5
+ * Theme styles for related control chips.
6
+ * Used to display KRN-based control references as compact chips/tags.
7
+ */
5
8
  declare const relatedControlChip: tailwind_variants.TVReturnType<{
6
- [key: string]: {
7
- [key: string]: tailwind_merge.ClassNameValue | {
8
- root?: tailwind_merge.ClassNameValue;
9
- tooltip?: tailwind_merge.ClassNameValue;
9
+ size: {
10
+ sm: {
11
+ chip: string;
12
+ overflow: string;
13
+ };
14
+ md: {};
15
+ lg: {
16
+ chip: string;
17
+ overflow: string;
10
18
  };
11
19
  };
12
- } | {
13
- [x: string]: {
14
- [x: string]: tailwind_merge.ClassNameValue | {
15
- root?: tailwind_merge.ClassNameValue;
16
- tooltip?: tailwind_merge.ClassNameValue;
20
+ interactive: {
21
+ true: {
22
+ chip: string;
17
23
  };
24
+ false: {};
18
25
  };
19
- } | {}, {
20
- root: string[];
26
+ }, {
27
+ root: string;
28
+ chip: string[];
29
+ chipPrefix: string;
30
+ chipId: string;
31
+ overflow: string[];
21
32
  tooltip: string;
22
33
  }, undefined, {
23
- [key: string]: {
24
- [key: string]: tailwind_merge.ClassNameValue | {
25
- root?: tailwind_merge.ClassNameValue;
26
- tooltip?: tailwind_merge.ClassNameValue;
34
+ size: {
35
+ sm: {
36
+ chip: string;
37
+ overflow: string;
38
+ };
39
+ md: {};
40
+ lg: {
41
+ chip: string;
42
+ overflow: string;
27
43
  };
28
44
  };
29
- } | {}, {
30
- root: string[];
45
+ interactive: {
46
+ true: {
47
+ chip: string;
48
+ };
49
+ false: {};
50
+ };
51
+ }, {
52
+ root: string;
53
+ chip: string[];
54
+ chipPrefix: string;
55
+ chipId: string;
56
+ overflow: string[];
31
57
  tooltip: string;
32
- }, tailwind_variants.TVReturnType<unknown, {
33
- root: string[];
58
+ }, tailwind_variants.TVReturnType<{
59
+ size: {
60
+ sm: {
61
+ chip: string;
62
+ overflow: string;
63
+ };
64
+ md: {};
65
+ lg: {
66
+ chip: string;
67
+ overflow: string;
68
+ };
69
+ };
70
+ interactive: {
71
+ true: {
72
+ chip: string;
73
+ };
74
+ false: {};
75
+ };
76
+ }, {
77
+ root: string;
78
+ chip: string[];
79
+ chipPrefix: string;
80
+ chipId: string;
81
+ overflow: string[];
34
82
  tooltip: string;
35
83
  }, undefined, unknown, unknown, undefined>>;
36
84
  type RelatedControlChipVariantsProps = VariantProps<typeof relatedControlChip>;
@@ -26,10 +26,60 @@ module.exports = __toCommonJS(related_control_chip_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
  var relatedControlChip = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
- root: [
30
- "text-xs border rounded-full cursor-pointer hover:text-primary px-2.5 py-0.5"
29
+ // Container for all chips
30
+ root: "flex flex-wrap items-center gap-1",
31
+ // Individual chip/tag
32
+ chip: [
33
+ "inline-flex",
34
+ "items-center",
35
+ "gap-0.5",
36
+ "px-1.5",
37
+ "py-0.5",
38
+ "rounded",
39
+ "text-xs",
40
+ "font-mono",
41
+ "bg-muted",
42
+ "text-muted-foreground",
43
+ "transition-colors",
44
+ "cursor-default"
31
45
  ],
46
+ // Framework prefix (e.g., "iso27001:")
47
+ chipPrefix: "text-muted-foreground/70",
48
+ // Control ID (e.g., "a-7-1")
49
+ chipId: "font-medium",
50
+ // Overflow indicator (e.g., "+3")
51
+ overflow: [
52
+ "text-xs",
53
+ "text-muted-foreground",
54
+ "cursor-pointer",
55
+ "hover:text-foreground",
56
+ "transition-colors"
57
+ ],
58
+ // Tooltip content
32
59
  tooltip: "text-xs"
60
+ },
61
+ variants: {
62
+ size: {
63
+ sm: {
64
+ chip: "text-[10px] px-1 py-px",
65
+ overflow: "text-[10px]"
66
+ },
67
+ md: {},
68
+ lg: {
69
+ chip: "text-sm px-2 py-1",
70
+ overflow: "text-sm"
71
+ }
72
+ },
73
+ interactive: {
74
+ true: {
75
+ chip: "cursor-pointer hover:bg-primary/10 hover:text-primary"
76
+ },
77
+ false: {}
78
+ }
79
+ },
80
+ defaultVariants: {
81
+ size: "md",
82
+ interactive: false
33
83
  }
34
84
  });
35
85
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  relatedControlChip
3
- } from "../chunk-7BZAMXH2.mjs";
3
+ } from "../chunk-NIEFB74U.mjs";
4
4
  export {
5
5
  relatedControlChip
6
6
  };
@@ -0,0 +1,154 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+
3
+ declare const riskRating: tailwind_variants.TVReturnType<{
4
+ size: {
5
+ sm: {
6
+ badge: string;
7
+ label: string;
8
+ };
9
+ md: {
10
+ badge: string;
11
+ label: string;
12
+ };
13
+ };
14
+ level: {
15
+ unrated: {
16
+ badge: string;
17
+ label: string;
18
+ iconWrapper: string;
19
+ icon: string;
20
+ };
21
+ low: {
22
+ badge: string;
23
+ label: string;
24
+ iconWrapper: string;
25
+ icon: string;
26
+ };
27
+ medium: {
28
+ badge: string;
29
+ label: string;
30
+ iconWrapper: string;
31
+ icon: string;
32
+ };
33
+ high: {
34
+ badge: string;
35
+ label: string;
36
+ iconWrapper: string;
37
+ icon: string;
38
+ };
39
+ critical: {
40
+ badge: string;
41
+ label: string;
42
+ iconWrapper: string;
43
+ icon: string;
44
+ };
45
+ };
46
+ }, {
47
+ base: string;
48
+ badge: string;
49
+ label: string;
50
+ iconWrapper: string;
51
+ icon: string;
52
+ }, undefined, {
53
+ size: {
54
+ sm: {
55
+ badge: string;
56
+ label: string;
57
+ };
58
+ md: {
59
+ badge: string;
60
+ label: string;
61
+ };
62
+ };
63
+ level: {
64
+ unrated: {
65
+ badge: string;
66
+ label: string;
67
+ iconWrapper: string;
68
+ icon: string;
69
+ };
70
+ low: {
71
+ badge: string;
72
+ label: string;
73
+ iconWrapper: string;
74
+ icon: string;
75
+ };
76
+ medium: {
77
+ badge: string;
78
+ label: string;
79
+ iconWrapper: string;
80
+ icon: string;
81
+ };
82
+ high: {
83
+ badge: string;
84
+ label: string;
85
+ iconWrapper: string;
86
+ icon: string;
87
+ };
88
+ critical: {
89
+ badge: string;
90
+ label: string;
91
+ iconWrapper: string;
92
+ icon: string;
93
+ };
94
+ };
95
+ }, {
96
+ base: string;
97
+ badge: string;
98
+ label: string;
99
+ iconWrapper: string;
100
+ icon: string;
101
+ }, tailwind_variants.TVReturnType<{
102
+ size: {
103
+ sm: {
104
+ badge: string;
105
+ label: string;
106
+ };
107
+ md: {
108
+ badge: string;
109
+ label: string;
110
+ };
111
+ };
112
+ level: {
113
+ unrated: {
114
+ badge: string;
115
+ label: string;
116
+ iconWrapper: string;
117
+ icon: string;
118
+ };
119
+ low: {
120
+ badge: string;
121
+ label: string;
122
+ iconWrapper: string;
123
+ icon: string;
124
+ };
125
+ medium: {
126
+ badge: string;
127
+ label: string;
128
+ iconWrapper: string;
129
+ icon: string;
130
+ };
131
+ high: {
132
+ badge: string;
133
+ label: string;
134
+ iconWrapper: string;
135
+ icon: string;
136
+ };
137
+ critical: {
138
+ badge: string;
139
+ label: string;
140
+ iconWrapper: string;
141
+ icon: string;
142
+ };
143
+ };
144
+ }, {
145
+ base: string;
146
+ badge: string;
147
+ label: string;
148
+ iconWrapper: string;
149
+ icon: string;
150
+ }, undefined, unknown, unknown, undefined>>;
151
+ type RiskRatingVariantProps = Parameters<typeof riskRating>[0];
152
+ type RiskRatingSlots = keyof ReturnType<typeof riskRating>;
153
+
154
+ export { type RiskRatingSlots, type RiskRatingVariantProps, riskRating };