@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.
- package/dist/chunk-CNYKIUVC.mjs +64 -0
- package/dist/chunk-NIEFB74U.mjs +64 -0
- package/dist/chunk-PKB6QHSP.mjs +103 -0
- package/dist/chunk-RZ45NVOH.mjs +50 -0
- package/dist/chunk-TDITF5BB.mjs +79 -0
- package/dist/{chunk-PWH7OU6T.mjs → chunk-Z2SMCAER.mjs} +7 -4
- package/dist/components/combobox.js +7 -4
- 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 +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +439 -98
- package/dist/components/index.mjs +57 -41
- package/dist/components/related-control-chip.d.mts +68 -20
- package/dist/components/related-control-chip.d.ts +68 -20
- package/dist/components/related-control-chip.js +52 -2
- package/dist/components/related-control-chip.mjs +1 -1
- package/dist/components/risk-rating.d.mts +154 -0
- package/dist/components/risk-rating.d.ts +154 -0
- package/dist/components/risk-rating.js +88 -0
- package/dist/components/risk-rating.mjs +6 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +439 -98
- package/dist/index.mjs +57 -41
- package/package.json +2 -2
- package/dist/chunk-7BZAMXH2.mjs +0 -14
- /package/dist/{chunk-BYXTAZ4I.mjs → chunk-ALG7CNQH.mjs} +0 -0
|
@@ -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';
|
|
@@ -42,6 +45,7 @@ export { RelatedControlChipVariantsProps, relatedControlChip } from './related-c
|
|
|
42
45
|
export { ResizableVariantProps, resizable } from './resizable.mjs';
|
|
43
46
|
export { RiskBadgeVariantProps, riskBadge } from './risk-badge.mjs';
|
|
44
47
|
export { RiskIndicatorVariantProps, riskIndicator } from './risk-indicator.mjs';
|
|
48
|
+
export { RiskRatingSlots, RiskRatingVariantProps, riskRating } from './risk-rating.mjs';
|
|
45
49
|
export { ScrollAreaVariantProps, scrollArea } from './scroll-area.mjs';
|
|
46
50
|
export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './section-row.mjs';
|
|
47
51
|
export { SelectVariantProps, select } from './select.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';
|
|
@@ -42,6 +45,7 @@ export { RelatedControlChipVariantsProps, relatedControlChip } from './related-c
|
|
|
42
45
|
export { ResizableVariantProps, resizable } from './resizable.js';
|
|
43
46
|
export { RiskBadgeVariantProps, riskBadge } from './risk-badge.js';
|
|
44
47
|
export { RiskIndicatorVariantProps, riskIndicator } from './risk-indicator.js';
|
|
48
|
+
export { RiskRatingSlots, RiskRatingVariantProps, riskRating } from './risk-rating.js';
|
|
45
49
|
export { ScrollAreaVariantProps, scrollArea } from './scroll-area.js';
|
|
46
50
|
export { SectionRowSlots, SectionRowVariantProps, sectionRow } from './section-row.js';
|
|
47
51
|
export { SelectVariantProps, select } from './select.js';
|