@kopexa/theme 1.6.0 → 1.6.2
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-OMS3433R.mjs → chunk-5QIMO5EG.mjs} +1 -1
- package/dist/{chunk-MGYGD5BF.mjs → chunk-DQEPGWAN.mjs} +1 -1
- package/dist/chunk-IY7SLI3T.mjs +41 -0
- package/dist/{chunk-DH3KNPAO.mjs → chunk-J4JIYTOU.mjs} +1 -1
- package/dist/{chunk-UVT775TU.mjs → chunk-LG2J56LI.mjs} +1 -1
- package/dist/{chunk-SU53TZN7.mjs → chunk-MKBU6G6Q.mjs} +10 -1
- package/dist/chunk-RV656WRF.mjs +30 -0
- package/dist/{chunk-HOQ2LD24.mjs → chunk-T5PESSOS.mjs} +1 -1
- package/dist/chunk-TT5V2MUL.mjs +29 -0
- package/dist/chunk-V2J5XG34.mjs +43 -0
- package/dist/{chunk-IRKCLWJD.mjs → chunk-VCLXE57S.mjs} +2 -1
- package/dist/chunk-WPOYEHD2.mjs +45 -0
- package/dist/{chunk-WSX3HKVE.mjs → chunk-XJ7XBZNF.mjs} +1 -1
- package/dist/{chunk-UPTG533L.mjs → chunk-ZLM6Z3W2.mjs} +7 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/button.mjs +2 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/chip.mjs +2 -2
- package/dist/components/code.js +1 -1
- package/dist/components/code.mjs +2 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.mjs +1 -1
- package/dist/components/index.d.mts +5 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +224 -24
- package/dist/components/index.mjs +45 -25
- package/dist/components/preview-card.d.mts +89 -0
- package/dist/components/preview-card.d.ts +89 -0
- package/dist/components/preview-card.js +69 -0
- package/dist/components/preview-card.mjs +6 -0
- package/dist/components/resizable.d.mts +49 -0
- package/dist/components/resizable.d.ts +49 -0
- package/dist/components/resizable.js +54 -0
- package/dist/components/resizable.mjs +6 -0
- package/dist/components/risk-badge.d.mts +97 -0
- package/dist/components/risk-badge.d.ts +97 -0
- package/dist/components/risk-badge.js +67 -0
- package/dist/components/risk-badge.mjs +6 -0
- package/dist/components/section-row.d.mts +47 -0
- package/dist/components/section-row.d.ts +47 -0
- package/dist/components/section-row.js +53 -0
- package/dist/components/section-row.mjs +6 -0
- package/dist/components/separator.js +2 -1
- package/dist/components/separator.mjs +1 -1
- package/dist/components/split-page-layout.d.mts +49 -0
- package/dist/components/split-page-layout.d.ts +49 -0
- package/dist/components/split-page-layout.js +65 -0
- package/dist/components/split-page-layout.mjs +6 -0
- package/dist/components/tab-nav.d.mts +18 -0
- package/dist/components/tab-nav.d.ts +18 -0
- package/dist/components/tab-nav.js +7 -0
- package/dist/components/tab-nav.mjs +1 -1
- package/dist/components/table.d.mts +18 -0
- package/dist/components/table.d.ts +18 -0
- package/dist/components/table.js +10 -1
- package/dist/components/table.mjs +1 -1
- package/dist/index.css +71 -13
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +224 -24
- package/dist/index.mjs +45 -25
- package/dist/utils/variants.js +1 -1
- package/dist/utils/variants.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-EOJ6MEGH.mjs → chunk-GZPF57JX.mjs} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
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/preview-card.ts
|
|
21
|
+
var preview_card_exports = {};
|
|
22
|
+
__export(preview_card_exports, {
|
|
23
|
+
previewCard: () => previewCard
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(preview_card_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var previewCard = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: [
|
|
30
|
+
"flex w-full items-start gap-3 rounded-md bg-background p-2 transition-colors",
|
|
31
|
+
"transition-all group min-h-10",
|
|
32
|
+
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"
|
|
33
|
+
],
|
|
34
|
+
icon: ["flex-shrink-0 text-muted-foreground"],
|
|
35
|
+
content: ["flex min-w-0 flex-1 flex-col justify-center"],
|
|
36
|
+
title: ["truncate text-xs font-medium text-foreground"],
|
|
37
|
+
description: ["truncate text-[10px] text-muted-foreground line-clamp-1"],
|
|
38
|
+
action: ["shrink-0 rounded-full [&_svg]:size-4"],
|
|
39
|
+
tags: ["mt-1.5 flex items-center gap-2"]
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
size: {
|
|
43
|
+
md: {
|
|
44
|
+
icon: "[&__svg]:size-5"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
isBordered: {
|
|
48
|
+
true: {
|
|
49
|
+
root: ["border"]
|
|
50
|
+
},
|
|
51
|
+
false: {}
|
|
52
|
+
},
|
|
53
|
+
isHoverable: {
|
|
54
|
+
true: {
|
|
55
|
+
root: "hover:bg-muted/50 hover:border-primary",
|
|
56
|
+
title: "group-hover:text-primary"
|
|
57
|
+
},
|
|
58
|
+
false: {}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
size: "md",
|
|
63
|
+
isBordered: true
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
67
|
+
0 && (module.exports = {
|
|
68
|
+
previewCard
|
|
69
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const resizable: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
root?: tailwind_variants.ClassValue;
|
|
8
|
+
panel?: tailwind_variants.ClassValue;
|
|
9
|
+
handle?: tailwind_variants.ClassValue;
|
|
10
|
+
iconContainer?: tailwind_variants.ClassValue;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
[x: string]: {
|
|
15
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
16
|
+
root?: tailwind_variants.ClassValue;
|
|
17
|
+
panel?: tailwind_variants.ClassValue;
|
|
18
|
+
handle?: tailwind_variants.ClassValue;
|
|
19
|
+
iconContainer?: tailwind_variants.ClassValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
root: string[];
|
|
24
|
+
panel: never[];
|
|
25
|
+
handle: string[];
|
|
26
|
+
iconContainer: string[];
|
|
27
|
+
}, undefined, {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
30
|
+
root?: tailwind_variants.ClassValue;
|
|
31
|
+
panel?: tailwind_variants.ClassValue;
|
|
32
|
+
handle?: tailwind_variants.ClassValue;
|
|
33
|
+
iconContainer?: tailwind_variants.ClassValue;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
} | {}, {
|
|
37
|
+
root: string[];
|
|
38
|
+
panel: never[];
|
|
39
|
+
handle: string[];
|
|
40
|
+
iconContainer: string[];
|
|
41
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
42
|
+
root: string[];
|
|
43
|
+
panel: never[];
|
|
44
|
+
handle: string[];
|
|
45
|
+
iconContainer: string[];
|
|
46
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
47
|
+
type ResizableVariantProps = VariantProps<typeof resizable>;
|
|
48
|
+
|
|
49
|
+
export { type ResizableVariantProps, resizable };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const resizable: tailwind_variants.TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
+
root?: tailwind_variants.ClassValue;
|
|
8
|
+
panel?: tailwind_variants.ClassValue;
|
|
9
|
+
handle?: tailwind_variants.ClassValue;
|
|
10
|
+
iconContainer?: tailwind_variants.ClassValue;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
[x: string]: {
|
|
15
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
16
|
+
root?: tailwind_variants.ClassValue;
|
|
17
|
+
panel?: tailwind_variants.ClassValue;
|
|
18
|
+
handle?: tailwind_variants.ClassValue;
|
|
19
|
+
iconContainer?: tailwind_variants.ClassValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
root: string[];
|
|
24
|
+
panel: never[];
|
|
25
|
+
handle: string[];
|
|
26
|
+
iconContainer: string[];
|
|
27
|
+
}, undefined, {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
30
|
+
root?: tailwind_variants.ClassValue;
|
|
31
|
+
panel?: tailwind_variants.ClassValue;
|
|
32
|
+
handle?: tailwind_variants.ClassValue;
|
|
33
|
+
iconContainer?: tailwind_variants.ClassValue;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
} | {}, {
|
|
37
|
+
root: string[];
|
|
38
|
+
panel: never[];
|
|
39
|
+
handle: string[];
|
|
40
|
+
iconContainer: string[];
|
|
41
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
42
|
+
root: string[];
|
|
43
|
+
panel: never[];
|
|
44
|
+
handle: string[];
|
|
45
|
+
iconContainer: string[];
|
|
46
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
47
|
+
type ResizableVariantProps = VariantProps<typeof resizable>;
|
|
48
|
+
|
|
49
|
+
export { type ResizableVariantProps, resizable };
|
|
@@ -0,0 +1,54 @@
|
|
|
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/resizable.ts
|
|
21
|
+
var resizable_exports = {};
|
|
22
|
+
__export(resizable_exports, {
|
|
23
|
+
resizable: () => resizable
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(resizable_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var resizable = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: ["flex h-full w-full data-[panel-group-direction=vertical]:flex-col"],
|
|
30
|
+
panel: [],
|
|
31
|
+
handle: [
|
|
32
|
+
"bg-border focus-visible:ring-ring relative",
|
|
33
|
+
"flex w-px items-center justify-center",
|
|
34
|
+
"after:absolute after:inset-y-0 after:left-1/2",
|
|
35
|
+
"after:w-1 after:-translate-x-1/2",
|
|
36
|
+
"focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden",
|
|
37
|
+
"data-[panel-group-direction=vertical]:h-px",
|
|
38
|
+
"data-[panel-group-direction=vertical]:w-full",
|
|
39
|
+
"data-[panel-group-direction=vertical]:after:left-0",
|
|
40
|
+
"data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full",
|
|
41
|
+
"data-[panel-group-direction=vertical]:after:translate-x-0",
|
|
42
|
+
"data-[panel-group-direction=vertical]:after:-translate-y-1/2",
|
|
43
|
+
"[&[data-panel-group-direction=vertical]>div]:rotate-90"
|
|
44
|
+
],
|
|
45
|
+
iconContainer: [
|
|
46
|
+
"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
|
|
47
|
+
"[&_> svg]:size-2.5 [&_> svg]:shrink-0"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
resizable
|
|
54
|
+
});
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const riskBadge: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
default: {
|
|
7
|
+
dot: string;
|
|
8
|
+
};
|
|
9
|
+
success: {
|
|
10
|
+
dot: string;
|
|
11
|
+
};
|
|
12
|
+
destructive: {
|
|
13
|
+
dot: string;
|
|
14
|
+
};
|
|
15
|
+
warning: {
|
|
16
|
+
dot: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
dotFilled: {
|
|
20
|
+
true: {
|
|
21
|
+
dot: string;
|
|
22
|
+
};
|
|
23
|
+
false: {
|
|
24
|
+
dot: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
root: string[];
|
|
29
|
+
label: string[];
|
|
30
|
+
grade: string[];
|
|
31
|
+
level: string[];
|
|
32
|
+
dots: string[];
|
|
33
|
+
dot: string[];
|
|
34
|
+
}, undefined, {
|
|
35
|
+
color: {
|
|
36
|
+
default: {
|
|
37
|
+
dot: string;
|
|
38
|
+
};
|
|
39
|
+
success: {
|
|
40
|
+
dot: string;
|
|
41
|
+
};
|
|
42
|
+
destructive: {
|
|
43
|
+
dot: string;
|
|
44
|
+
};
|
|
45
|
+
warning: {
|
|
46
|
+
dot: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
dotFilled: {
|
|
50
|
+
true: {
|
|
51
|
+
dot: string;
|
|
52
|
+
};
|
|
53
|
+
false: {
|
|
54
|
+
dot: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
root: string[];
|
|
59
|
+
label: string[];
|
|
60
|
+
grade: string[];
|
|
61
|
+
level: string[];
|
|
62
|
+
dots: string[];
|
|
63
|
+
dot: string[];
|
|
64
|
+
}, tailwind_variants.TVReturnType<{
|
|
65
|
+
color: {
|
|
66
|
+
default: {
|
|
67
|
+
dot: string;
|
|
68
|
+
};
|
|
69
|
+
success: {
|
|
70
|
+
dot: string;
|
|
71
|
+
};
|
|
72
|
+
destructive: {
|
|
73
|
+
dot: string;
|
|
74
|
+
};
|
|
75
|
+
warning: {
|
|
76
|
+
dot: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
dotFilled: {
|
|
80
|
+
true: {
|
|
81
|
+
dot: string;
|
|
82
|
+
};
|
|
83
|
+
false: {
|
|
84
|
+
dot: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
root: string[];
|
|
89
|
+
label: string[];
|
|
90
|
+
grade: string[];
|
|
91
|
+
level: string[];
|
|
92
|
+
dots: string[];
|
|
93
|
+
dot: string[];
|
|
94
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
95
|
+
type RiskBadgeVariantProps = VariantProps<typeof riskBadge>;
|
|
96
|
+
|
|
97
|
+
export { type RiskBadgeVariantProps, riskBadge };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const riskBadge: tailwind_variants.TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
default: {
|
|
7
|
+
dot: string;
|
|
8
|
+
};
|
|
9
|
+
success: {
|
|
10
|
+
dot: string;
|
|
11
|
+
};
|
|
12
|
+
destructive: {
|
|
13
|
+
dot: string;
|
|
14
|
+
};
|
|
15
|
+
warning: {
|
|
16
|
+
dot: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
dotFilled: {
|
|
20
|
+
true: {
|
|
21
|
+
dot: string;
|
|
22
|
+
};
|
|
23
|
+
false: {
|
|
24
|
+
dot: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
root: string[];
|
|
29
|
+
label: string[];
|
|
30
|
+
grade: string[];
|
|
31
|
+
level: string[];
|
|
32
|
+
dots: string[];
|
|
33
|
+
dot: string[];
|
|
34
|
+
}, undefined, {
|
|
35
|
+
color: {
|
|
36
|
+
default: {
|
|
37
|
+
dot: string;
|
|
38
|
+
};
|
|
39
|
+
success: {
|
|
40
|
+
dot: string;
|
|
41
|
+
};
|
|
42
|
+
destructive: {
|
|
43
|
+
dot: string;
|
|
44
|
+
};
|
|
45
|
+
warning: {
|
|
46
|
+
dot: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
dotFilled: {
|
|
50
|
+
true: {
|
|
51
|
+
dot: string;
|
|
52
|
+
};
|
|
53
|
+
false: {
|
|
54
|
+
dot: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
root: string[];
|
|
59
|
+
label: string[];
|
|
60
|
+
grade: string[];
|
|
61
|
+
level: string[];
|
|
62
|
+
dots: string[];
|
|
63
|
+
dot: string[];
|
|
64
|
+
}, tailwind_variants.TVReturnType<{
|
|
65
|
+
color: {
|
|
66
|
+
default: {
|
|
67
|
+
dot: string;
|
|
68
|
+
};
|
|
69
|
+
success: {
|
|
70
|
+
dot: string;
|
|
71
|
+
};
|
|
72
|
+
destructive: {
|
|
73
|
+
dot: string;
|
|
74
|
+
};
|
|
75
|
+
warning: {
|
|
76
|
+
dot: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
dotFilled: {
|
|
80
|
+
true: {
|
|
81
|
+
dot: string;
|
|
82
|
+
};
|
|
83
|
+
false: {
|
|
84
|
+
dot: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
root: string[];
|
|
89
|
+
label: string[];
|
|
90
|
+
grade: string[];
|
|
91
|
+
level: string[];
|
|
92
|
+
dots: string[];
|
|
93
|
+
dot: string[];
|
|
94
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
95
|
+
type RiskBadgeVariantProps = VariantProps<typeof riskBadge>;
|
|
96
|
+
|
|
97
|
+
export { type RiskBadgeVariantProps, riskBadge };
|
|
@@ -0,0 +1,67 @@
|
|
|
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-badge.ts
|
|
21
|
+
var risk_badge_exports = {};
|
|
22
|
+
__export(risk_badge_exports, {
|
|
23
|
+
riskBadge: () => riskBadge
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(risk_badge_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var riskBadge = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: ["inline-flex flex-col items-start gap-0.5"],
|
|
30
|
+
label: ["inline-flex items-center gap-0.5 text-xs"],
|
|
31
|
+
grade: ["font-semibold"],
|
|
32
|
+
level: ["font-medium"],
|
|
33
|
+
dots: ["inline-flex items-center gap-0.5"],
|
|
34
|
+
dot: [
|
|
35
|
+
"inline-block w-1.5 h-1.5 rounded-full",
|
|
36
|
+
"transition-all duration-150 ease-in-out"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
variants: {
|
|
40
|
+
color: {
|
|
41
|
+
default: {
|
|
42
|
+
dot: "bg-gray-200 dark:bg-gray-700"
|
|
43
|
+
},
|
|
44
|
+
success: {
|
|
45
|
+
dot: "bg-success"
|
|
46
|
+
},
|
|
47
|
+
destructive: {
|
|
48
|
+
dot: "bg-destructive"
|
|
49
|
+
},
|
|
50
|
+
warning: {
|
|
51
|
+
dot: "bg-warning"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
dotFilled: {
|
|
55
|
+
true: {
|
|
56
|
+
dot: "opacity-100 scale-110"
|
|
57
|
+
},
|
|
58
|
+
false: {
|
|
59
|
+
dot: "opacity-40 scale-100"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
riskBadge
|
|
67
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const sectionRow: tailwind_variants.TVReturnType<{
|
|
5
|
+
hasActions: {
|
|
6
|
+
true: {
|
|
7
|
+
root: string[];
|
|
8
|
+
};
|
|
9
|
+
false: {};
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
root: string[];
|
|
13
|
+
title: string;
|
|
14
|
+
valueText: string;
|
|
15
|
+
valueContainer: string;
|
|
16
|
+
action: string;
|
|
17
|
+
}, undefined, {
|
|
18
|
+
hasActions: {
|
|
19
|
+
true: {
|
|
20
|
+
root: string[];
|
|
21
|
+
};
|
|
22
|
+
false: {};
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
root: string[];
|
|
26
|
+
title: string;
|
|
27
|
+
valueText: string;
|
|
28
|
+
valueContainer: string;
|
|
29
|
+
action: string;
|
|
30
|
+
}, tailwind_variants.TVReturnType<{
|
|
31
|
+
hasActions: {
|
|
32
|
+
true: {
|
|
33
|
+
root: string[];
|
|
34
|
+
};
|
|
35
|
+
false: {};
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
root: string[];
|
|
39
|
+
title: string;
|
|
40
|
+
valueText: string;
|
|
41
|
+
valueContainer: string;
|
|
42
|
+
action: string;
|
|
43
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
44
|
+
type SectionRowVariantProps = VariantProps<typeof sectionRow>;
|
|
45
|
+
type SectionRowSlots = keyof ReturnType<typeof sectionRow>;
|
|
46
|
+
|
|
47
|
+
export { type SectionRowSlots, type SectionRowVariantProps, sectionRow };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const sectionRow: tailwind_variants.TVReturnType<{
|
|
5
|
+
hasActions: {
|
|
6
|
+
true: {
|
|
7
|
+
root: string[];
|
|
8
|
+
};
|
|
9
|
+
false: {};
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
root: string[];
|
|
13
|
+
title: string;
|
|
14
|
+
valueText: string;
|
|
15
|
+
valueContainer: string;
|
|
16
|
+
action: string;
|
|
17
|
+
}, undefined, {
|
|
18
|
+
hasActions: {
|
|
19
|
+
true: {
|
|
20
|
+
root: string[];
|
|
21
|
+
};
|
|
22
|
+
false: {};
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
root: string[];
|
|
26
|
+
title: string;
|
|
27
|
+
valueText: string;
|
|
28
|
+
valueContainer: string;
|
|
29
|
+
action: string;
|
|
30
|
+
}, tailwind_variants.TVReturnType<{
|
|
31
|
+
hasActions: {
|
|
32
|
+
true: {
|
|
33
|
+
root: string[];
|
|
34
|
+
};
|
|
35
|
+
false: {};
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
root: string[];
|
|
39
|
+
title: string;
|
|
40
|
+
valueText: string;
|
|
41
|
+
valueContainer: string;
|
|
42
|
+
action: string;
|
|
43
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
44
|
+
type SectionRowVariantProps = VariantProps<typeof sectionRow>;
|
|
45
|
+
type SectionRowSlots = keyof ReturnType<typeof sectionRow>;
|
|
46
|
+
|
|
47
|
+
export { type SectionRowSlots, type SectionRowVariantProps, sectionRow };
|
|
@@ -0,0 +1,53 @@
|
|
|
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/section-row.ts
|
|
21
|
+
var section_row_exports = {};
|
|
22
|
+
__export(section_row_exports, {
|
|
23
|
+
sectionRow: () => sectionRow
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(section_row_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var sectionRow = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: ["section-row items-start"],
|
|
30
|
+
title: "section-row__title text-muted-foreground text-sm font-semibold",
|
|
31
|
+
valueText: "whitespace-pre-line text-pretty text-sm",
|
|
32
|
+
valueContainer: "section-row__value-container flex flex-wrap gap-1",
|
|
33
|
+
action: "section-row__action"
|
|
34
|
+
},
|
|
35
|
+
variants: {
|
|
36
|
+
hasActions: {
|
|
37
|
+
true: {
|
|
38
|
+
root: [
|
|
39
|
+
"has-actions"
|
|
40
|
+
//"md:grid-cols-[min(40%,--spacing(80))_auto_28px]",
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
false: {}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
hasActions: false
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
sectionRow
|
|
53
|
+
});
|