@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
@@ -1,4 +1,28 @@
1
- import "../chunk-BYXTAZ4I.mjs";
1
+ import "../chunk-ALG7CNQH.mjs";
2
+ import {
3
+ tabs
4
+ } from "../chunk-I6M4S2KZ.mjs";
5
+ import {
6
+ textarea
7
+ } from "../chunk-ARLLAC5V.mjs";
8
+ import {
9
+ toolbar
10
+ } from "../chunk-2NA54PNL.mjs";
11
+ import {
12
+ tooltip
13
+ } from "../chunk-OLYO7UPH.mjs";
14
+ import {
15
+ skeleton
16
+ } from "../chunk-VNQEJU4P.mjs";
17
+ import {
18
+ slashDropdownMenu
19
+ } from "../chunk-NNKYGAZC.mjs";
20
+ import {
21
+ spinner
22
+ } from "../chunk-4UDOCFU5.mjs";
23
+ import {
24
+ splitPageLayout
25
+ } from "../chunk-W7RJG22S.mjs";
2
26
  import {
3
27
  standardChip
4
28
  } from "../chunk-XQZL7LCP.mjs";
@@ -12,17 +36,17 @@ import {
12
36
  table
13
37
  } from "../chunk-YC2FQDBV.mjs";
14
38
  import {
15
- tabs
16
- } from "../chunk-I6M4S2KZ.mjs";
39
+ riskIndicator
40
+ } from "../chunk-CZMZHA7U.mjs";
17
41
  import {
18
- textarea
19
- } from "../chunk-ARLLAC5V.mjs";
42
+ riskRating
43
+ } from "../chunk-CNYKIUVC.mjs";
20
44
  import {
21
- toolbar
22
- } from "../chunk-2NA54PNL.mjs";
45
+ scrollArea
46
+ } from "../chunk-SPQE7K66.mjs";
23
47
  import {
24
- tooltip
25
- } from "../chunk-OLYO7UPH.mjs";
48
+ sectionRow
49
+ } from "../chunk-CC225WUG.mjs";
26
50
  import {
27
51
  select
28
52
  } from "../chunk-KPVLNOO5.mjs";
@@ -38,17 +62,14 @@ import {
38
62
  skeletonAvatar
39
63
  } from "../chunk-7Q2RNHL5.mjs";
40
64
  import {
41
- skeleton
42
- } from "../chunk-VNQEJU4P.mjs";
43
- import {
44
- slashDropdownMenu
45
- } from "../chunk-NNKYGAZC.mjs";
65
+ loadingPage
66
+ } from "../chunk-ZOTN264E.mjs";
46
67
  import {
47
- spinner
48
- } from "../chunk-4UDOCFU5.mjs";
68
+ pageHeader
69
+ } from "../chunk-HAVJ6EQ6.mjs";
49
70
  import {
50
- splitPageLayout
51
- } from "../chunk-W7RJG22S.mjs";
71
+ pageLayout
72
+ } from "../chunk-OULAICSC.mjs";
52
73
  import {
53
74
  popover
54
75
  } from "../chunk-TQVRNEIH.mjs";
@@ -57,7 +78,7 @@ import {
57
78
  } from "../chunk-4XIBRN6X.mjs";
58
79
  import {
59
80
  relatedControlChip
60
- } from "../chunk-7BZAMXH2.mjs";
81
+ } from "../chunk-NIEFB74U.mjs";
61
82
  import {
62
83
  resizable
63
84
  } from "../chunk-RV656WRF.mjs";
@@ -65,14 +86,11 @@ import {
65
86
  riskBadge
66
87
  } from "../chunk-V2J5XG34.mjs";
67
88
  import {
68
- riskIndicator
69
- } from "../chunk-CZMZHA7U.mjs";
70
- import {
71
- scrollArea
72
- } from "../chunk-SPQE7K66.mjs";
89
+ impactCard
90
+ } from "../chunk-TDITF5BB.mjs";
73
91
  import {
74
- sectionRow
75
- } from "../chunk-CC225WUG.mjs";
92
+ inputGroup
93
+ } from "../chunk-HWEYNK3O.mjs";
76
94
  import {
77
95
  inputWrapper
78
96
  } from "../chunk-VSVGOX3P.mjs";
@@ -86,20 +104,17 @@ import {
86
104
  label
87
105
  } from "../chunk-LMCM4CW2.mjs";
88
106
  import {
89
- loadingPage
90
- } from "../chunk-ZOTN264E.mjs";
91
- import {
92
- pageHeader
93
- } from "../chunk-HAVJ6EQ6.mjs";
94
- import {
95
- pageLayout
96
- } from "../chunk-OULAICSC.mjs";
107
+ editorBasic
108
+ } from "../chunk-XOL7P7NP.mjs";
97
109
  import {
98
110
  editorSpinner
99
111
  } from "../chunk-TVC4THD6.mjs";
100
112
  import {
101
113
  avatarUpload
102
114
  } from "../chunk-QGL2OK4B.mjs";
115
+ import {
116
+ filter
117
+ } from "../chunk-PKB6QHSP.mjs";
103
118
  import {
104
119
  frameworkRow
105
120
  } from "../chunk-TPFAZH22.mjs";
@@ -112,12 +127,12 @@ import {
112
127
  import {
113
128
  imageCrop
114
129
  } from "../chunk-GMFZLUU4.mjs";
115
- import {
116
- inputGroup
117
- } from "../chunk-HWEYNK3O.mjs";
118
130
  import {
119
131
  command
120
132
  } from "../chunk-YPHFKGNI.mjs";
133
+ import {
134
+ complianceBadge
135
+ } from "../chunk-RZ45NVOH.mjs";
121
136
  import {
122
137
  controlExtension
123
138
  } from "../chunk-M4TXKRUU.mjs";
@@ -136,9 +151,6 @@ import {
136
151
  import {
137
152
  dropdownMenu
138
153
  } from "../chunk-3PCDCW7G.mjs";
139
- import {
140
- editorBasic
141
- } from "../chunk-XOL7P7NP.mjs";
142
154
  import {
143
155
  calendar
144
156
  } from "../chunk-JWF5ABNP.mjs";
@@ -162,7 +174,7 @@ import {
162
174
  } from "../chunk-CPERWXKN.mjs";
163
175
  import {
164
176
  combobox
165
- } from "../chunk-PWH7OU6T.mjs";
177
+ } from "../chunk-Z2SMCAER.mjs";
166
178
  import {
167
179
  accordion
168
180
  } from "../chunk-AEWKHJEI.mjs";
@@ -208,6 +220,7 @@ export {
208
220
  colorHighlightButton,
209
221
  combobox,
210
222
  command,
223
+ complianceBadge,
211
224
  controlExtension,
212
225
  dataTable,
213
226
  datagrid,
@@ -216,10 +229,12 @@ export {
216
229
  dropdownMenu,
217
230
  editorBasic,
218
231
  editorSpinner,
232
+ filter,
219
233
  frameworkRow,
220
234
  heading,
221
235
  hoverCard,
222
236
  imageCrop,
237
+ impactCard,
223
238
  input,
224
239
  inputGroup,
225
240
  inputWrapper,
@@ -236,6 +251,7 @@ export {
236
251
  resizable,
237
252
  riskBadge,
238
253
  riskIndicator,
254
+ riskRating,
239
255
  scrollArea,
240
256
  sectionRow,
241
257
  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 };