@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
@@ -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 };
@@ -0,0 +1,88 @@
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/risk-rating.ts
21
+ var risk_rating_exports = {};
22
+ __export(risk_rating_exports, {
23
+ riskRating: () => riskRating
24
+ });
25
+ module.exports = __toCommonJS(risk_rating_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var riskRating = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ base: "flex items-center gap-2",
30
+ badge: "flex items-center justify-center rounded-md font-bold",
31
+ label: "font-medium",
32
+ // Icon slots for list items
33
+ iconWrapper: "p-2 rounded-lg shrink-0",
34
+ icon: "size-4"
35
+ },
36
+ variants: {
37
+ size: {
38
+ sm: {
39
+ badge: "size-6 text-xs",
40
+ label: "text-xs"
41
+ },
42
+ md: {
43
+ badge: "size-8 text-sm",
44
+ label: "text-sm"
45
+ }
46
+ },
47
+ level: {
48
+ unrated: {
49
+ badge: "bg-muted text-muted-foreground font-medium",
50
+ label: "text-muted-foreground",
51
+ iconWrapper: "bg-muted/50",
52
+ icon: "text-muted-foreground"
53
+ },
54
+ low: {
55
+ badge: "bg-success text-white",
56
+ label: "text-success",
57
+ iconWrapper: "bg-success/10",
58
+ icon: "text-success"
59
+ },
60
+ medium: {
61
+ badge: "bg-warning text-white",
62
+ label: "text-warning",
63
+ iconWrapper: "bg-warning/10",
64
+ icon: "text-warning"
65
+ },
66
+ high: {
67
+ badge: "bg-orange-500 text-white",
68
+ label: "text-orange-500",
69
+ iconWrapper: "bg-orange-500/10",
70
+ icon: "text-orange-500"
71
+ },
72
+ critical: {
73
+ badge: "bg-destructive text-white",
74
+ label: "text-destructive",
75
+ iconWrapper: "bg-destructive/10",
76
+ icon: "text-destructive"
77
+ }
78
+ }
79
+ },
80
+ defaultVariants: {
81
+ size: "md",
82
+ level: "unrated"
83
+ }
84
+ });
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ riskRating
88
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ riskRating
3
+ } from "../chunk-CNYKIUVC.mjs";
4
+ export {
5
+ riskRating
6
+ };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { TV, VariantProps } from 'tailwind-variants';
2
2
  export { AccordionSlots, AccordionVariantProps, accordion } from './components/accordion.mjs';
3
3
  export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.mjs';
4
+ export { AuditInfoSlots, AuditInfoVariantProps, auditInfo } from './components/audit-info.mjs';
4
5
  export { AutocompleteVariantProps, autocomplete } from './components/autocomplete.mjs';
5
6
  export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.mjs';
6
7
  export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.mjs';
@@ -46,6 +47,7 @@ export { RelatedControlChipVariantsProps, relatedControlChip } from './component
46
47
  export { ResizableVariantProps, resizable } from './components/resizable.mjs';
47
48
  export { RiskBadgeVariantProps, riskBadge } from './components/risk-badge.mjs';
48
49
  export { RiskIndicatorVariantProps, riskIndicator } from './components/risk-indicator.mjs';
50
+ export { RiskRatingSlots, RiskRatingVariantProps, riskRating } from './components/risk-rating.mjs';
49
51
  export { ScrollAreaVariantProps, scrollArea } from './components/scroll-area.mjs';
50
52
  export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './components/section-row.mjs';
51
53
  export { SelectVariantProps, select } from './components/select.mjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { TV, VariantProps } from 'tailwind-variants';
2
2
  export { AccordionSlots, AccordionVariantProps, accordion } from './components/accordion.js';
3
3
  export { AlertDialogSlots, AlertDialogVariants, alertDialog } from './components/alert-dialog.js';
4
+ export { AuditInfoSlots, AuditInfoVariantProps, auditInfo } from './components/audit-info.js';
4
5
  export { AutocompleteVariantProps, autocomplete } from './components/autocomplete.js';
5
6
  export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js';
6
7
  export { AvatarGroupSlots, AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.js';
@@ -46,6 +47,7 @@ export { RelatedControlChipVariantsProps, relatedControlChip } from './component
46
47
  export { ResizableVariantProps, resizable } from './components/resizable.js';
47
48
  export { RiskBadgeVariantProps, riskBadge } from './components/risk-badge.js';
48
49
  export { RiskIndicatorVariantProps, riskIndicator } from './components/risk-indicator.js';
50
+ export { RiskRatingSlots, RiskRatingVariantProps, riskRating } from './components/risk-rating.js';
49
51
  export { ScrollAreaVariantProps, scrollArea } from './components/scroll-area.js';
50
52
  export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './components/section-row.js';
51
53
  export { SelectVariantProps, select } from './components/select.js';