@kopexa/theme 17.15.0 → 17.16.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.
@@ -1,10 +1,28 @@
1
- import "../chunk-LK7CK2UU.mjs";
1
+ import "../chunk-CGGAYK7A.mjs";
2
+ import {
3
+ textarea
4
+ } from "../chunk-ARLLAC5V.mjs";
5
+ import {
6
+ toc
7
+ } from "../chunk-ODC3GJTR.mjs";
8
+ import {
9
+ toolbar
10
+ } from "../chunk-2NA54PNL.mjs";
2
11
  import {
3
12
  tooltip
4
13
  } from "../chunk-OLYO7UPH.mjs";
5
14
  import {
6
15
  variableNode
7
16
  } from "../chunk-EKOZ2ZVU.mjs";
17
+ import {
18
+ spinner
19
+ } from "../chunk-4UDOCFU5.mjs";
20
+ import {
21
+ splitPageLayout
22
+ } from "../chunk-B5JVXVSG.mjs";
23
+ import {
24
+ standardChip
25
+ } from "../chunk-XQZL7LCP.mjs";
8
26
  import {
9
27
  stat
10
28
  } from "../chunk-RTWYV4TJ.mjs";
@@ -21,14 +39,14 @@ import {
21
39
  tabs
22
40
  } from "../chunk-I6M4S2KZ.mjs";
23
41
  import {
24
- textarea
25
- } from "../chunk-ARLLAC5V.mjs";
42
+ scrollArea
43
+ } from "../chunk-SPQE7K66.mjs";
26
44
  import {
27
- toc
28
- } from "../chunk-ODC3GJTR.mjs";
45
+ sectionRow
46
+ } from "../chunk-CC225WUG.mjs";
29
47
  import {
30
- toolbar
31
- } from "../chunk-2NA54PNL.mjs";
48
+ select
49
+ } from "../chunk-KPVLNOO5.mjs";
32
50
  import {
33
51
  separator
34
52
  } from "../chunk-LM7MKBHT.mjs";
@@ -47,14 +65,14 @@ import {
47
65
  slashDropdownMenu
48
66
  } from "../chunk-U4BRPFG2.mjs";
49
67
  import {
50
- spinner
51
- } from "../chunk-4UDOCFU5.mjs";
68
+ popover
69
+ } from "../chunk-TQVRNEIH.mjs";
52
70
  import {
53
- splitPageLayout
54
- } from "../chunk-B5JVXVSG.mjs";
71
+ previewCard
72
+ } from "../chunk-4XIBRN6X.mjs";
55
73
  import {
56
- standardChip
57
- } from "../chunk-XQZL7LCP.mjs";
74
+ promptInput
75
+ } from "../chunk-2GNVYP2T.mjs";
58
76
  import {
59
77
  relatedControlChip
60
78
  } from "../chunk-NIEFB74U.mjs";
@@ -70,15 +88,6 @@ import {
70
88
  import {
71
89
  riskRating
72
90
  } from "../chunk-CNYKIUVC.mjs";
73
- import {
74
- scrollArea
75
- } from "../chunk-SPQE7K66.mjs";
76
- import {
77
- sectionRow
78
- } from "../chunk-CC225WUG.mjs";
79
- import {
80
- select
81
- } from "../chunk-KPVLNOO5.mjs";
82
91
  import {
83
92
  integrationCard
84
93
  } from "../chunk-QOW6FLZ6.mjs";
@@ -91,6 +100,9 @@ import {
91
100
  import {
92
101
  loadingPage
93
102
  } from "../chunk-ZOTN264E.mjs";
103
+ import {
104
+ message
105
+ } from "../chunk-TJLBHX4F.mjs";
94
106
  import {
95
107
  pageHeader
96
108
  } from "../chunk-HAVJ6EQ6.mjs";
@@ -98,11 +110,8 @@ import {
98
110
  pageLayout
99
111
  } from "../chunk-OULAICSC.mjs";
100
112
  import {
101
- popover
102
- } from "../chunk-TQVRNEIH.mjs";
103
- import {
104
- previewCard
105
- } from "../chunk-4XIBRN6X.mjs";
113
+ heading
114
+ } from "../chunk-NWKBPO37.mjs";
106
115
  import {
107
116
  hoverCard
108
117
  } from "../chunk-UTCVHVWF.mjs";
@@ -124,6 +133,9 @@ import {
124
133
  import {
125
134
  drawer
126
135
  } from "../chunk-7V3NMVQH.mjs";
136
+ import {
137
+ dialog
138
+ } from "../chunk-OJDCD74N.mjs";
127
139
  import {
128
140
  dropdownMenu
129
141
  } from "../chunk-3PCDCW7G.mjs";
@@ -138,13 +150,10 @@ import {
138
150
  } from "../chunk-QGL2OK4B.mjs";
139
151
  import {
140
152
  filter
141
- } from "../chunk-PKB6QHSP.mjs";
153
+ } from "../chunk-L75CK6K3.mjs";
142
154
  import {
143
155
  frameworkRow
144
156
  } from "../chunk-TPFAZH22.mjs";
145
- import {
146
- heading
147
- } from "../chunk-NWKBPO37.mjs";
148
157
  import {
149
158
  colorHighlightButton
150
159
  } from "../chunk-CPERWXKN.mjs";
@@ -160,15 +169,15 @@ import {
160
169
  import {
161
170
  controlExtension
162
171
  } from "../chunk-M4TXKRUU.mjs";
172
+ import {
173
+ conversation
174
+ } from "../chunk-JT6SHEZ6.mjs";
163
175
  import {
164
176
  datagrid
165
177
  } from "../chunk-BCQAC4TS.mjs";
166
178
  import {
167
179
  dataTable
168
180
  } from "../chunk-GNYTZGE5.mjs";
169
- import {
170
- dialog
171
- } from "../chunk-OJDCD74N.mjs";
172
181
  import {
173
182
  breadcrumb
174
183
  } from "../chunk-W6TZSSAU.mjs";
@@ -242,6 +251,7 @@ export {
242
251
  command,
243
252
  complianceBadge,
244
253
  controlExtension,
254
+ conversation,
245
255
  dataTable,
246
256
  datagrid,
247
257
  dialog,
@@ -263,11 +273,13 @@ export {
263
273
  kbd,
264
274
  label,
265
275
  loadingPage,
276
+ message,
266
277
  pageHeader,
267
278
  pageLayout,
268
279
  passwordInput,
269
280
  popover,
270
281
  previewCard,
282
+ promptInput,
271
283
  relatedControlChip,
272
284
  resizable,
273
285
  riskBadge,
@@ -0,0 +1,71 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const message: tailwind_variants.TVReturnType<{
5
+ from: {
6
+ user: {
7
+ root: string;
8
+ };
9
+ assistant: {
10
+ root: string;
11
+ };
12
+ system: {
13
+ root: string;
14
+ };
15
+ };
16
+ }, {
17
+ root: string;
18
+ content: string[];
19
+ actions: string;
20
+ toolbar: string;
21
+ branchRoot: string;
22
+ branchContent: string;
23
+ branchSelector: string;
24
+ branchPage: string;
25
+ }, undefined, {
26
+ from: {
27
+ user: {
28
+ root: string;
29
+ };
30
+ assistant: {
31
+ root: string;
32
+ };
33
+ system: {
34
+ root: string;
35
+ };
36
+ };
37
+ }, {
38
+ root: string;
39
+ content: string[];
40
+ actions: string;
41
+ toolbar: string;
42
+ branchRoot: string;
43
+ branchContent: string;
44
+ branchSelector: string;
45
+ branchPage: string;
46
+ }, tailwind_variants.TVReturnType<{
47
+ from: {
48
+ user: {
49
+ root: string;
50
+ };
51
+ assistant: {
52
+ root: string;
53
+ };
54
+ system: {
55
+ root: string;
56
+ };
57
+ };
58
+ }, {
59
+ root: string;
60
+ content: string[];
61
+ actions: string;
62
+ toolbar: string;
63
+ branchRoot: string;
64
+ branchContent: string;
65
+ branchSelector: string;
66
+ branchPage: string;
67
+ }, undefined, unknown, unknown, undefined>>;
68
+ type MessageVariantProps = VariantProps<typeof message>;
69
+ type MessageSlots = keyof ReturnType<typeof message>;
70
+
71
+ export { type MessageSlots, type MessageVariantProps, message };
@@ -0,0 +1,71 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const message: tailwind_variants.TVReturnType<{
5
+ from: {
6
+ user: {
7
+ root: string;
8
+ };
9
+ assistant: {
10
+ root: string;
11
+ };
12
+ system: {
13
+ root: string;
14
+ };
15
+ };
16
+ }, {
17
+ root: string;
18
+ content: string[];
19
+ actions: string;
20
+ toolbar: string;
21
+ branchRoot: string;
22
+ branchContent: string;
23
+ branchSelector: string;
24
+ branchPage: string;
25
+ }, undefined, {
26
+ from: {
27
+ user: {
28
+ root: string;
29
+ };
30
+ assistant: {
31
+ root: string;
32
+ };
33
+ system: {
34
+ root: string;
35
+ };
36
+ };
37
+ }, {
38
+ root: string;
39
+ content: string[];
40
+ actions: string;
41
+ toolbar: string;
42
+ branchRoot: string;
43
+ branchContent: string;
44
+ branchSelector: string;
45
+ branchPage: string;
46
+ }, tailwind_variants.TVReturnType<{
47
+ from: {
48
+ user: {
49
+ root: string;
50
+ };
51
+ assistant: {
52
+ root: string;
53
+ };
54
+ system: {
55
+ root: string;
56
+ };
57
+ };
58
+ }, {
59
+ root: string;
60
+ content: string[];
61
+ actions: string;
62
+ toolbar: string;
63
+ branchRoot: string;
64
+ branchContent: string;
65
+ branchSelector: string;
66
+ branchPage: string;
67
+ }, undefined, unknown, unknown, undefined>>;
68
+ type MessageVariantProps = VariantProps<typeof message>;
69
+ type MessageSlots = keyof ReturnType<typeof message>;
70
+
71
+ export { type MessageSlots, type MessageVariantProps, message };
@@ -0,0 +1,65 @@
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/message.ts
21
+ var message_exports = {};
22
+ __export(message_exports, {
23
+ message: () => message
24
+ });
25
+ module.exports = __toCommonJS(message_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var message = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: "group flex w-full max-w-[95%] flex-col gap-2",
30
+ content: [
31
+ "flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm",
32
+ // Assistant styles (default)
33
+ "group-[.is-assistant]:text-foreground",
34
+ // User styles
35
+ "group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-muted group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground"
36
+ ],
37
+ actions: "flex items-center gap-1",
38
+ toolbar: "mt-4 flex w-full items-center justify-between gap-4",
39
+ // Branch components
40
+ branchRoot: "grid w-full gap-2 [&>div]:pb-0",
41
+ branchContent: "grid gap-2 overflow-hidden [&>div]:pb-0",
42
+ branchSelector: "flex items-center",
43
+ branchPage: "px-2 text-muted-foreground text-xs tabular-nums"
44
+ },
45
+ variants: {
46
+ from: {
47
+ user: {
48
+ root: "is-user ml-auto justify-end"
49
+ },
50
+ assistant: {
51
+ root: "is-assistant"
52
+ },
53
+ system: {
54
+ root: "is-system"
55
+ }
56
+ }
57
+ },
58
+ defaultVariants: {
59
+ from: "assistant"
60
+ }
61
+ });
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ message
65
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ message
3
+ } from "../chunk-TJLBHX4F.mjs";
4
+ export {
5
+ message
6
+ };
@@ -0,0 +1,57 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_merge from 'tailwind-merge';
4
+
5
+ declare const promptInput: tailwind_variants.TVReturnType<{
6
+ [key: string]: {
7
+ [key: string]: tailwind_merge.ClassNameValue | {
8
+ root?: tailwind_merge.ClassNameValue;
9
+ actions?: tailwind_merge.ClassNameValue;
10
+ form?: tailwind_merge.ClassNameValue;
11
+ submitButton?: tailwind_merge.ClassNameValue;
12
+ textarea?: tailwind_merge.ClassNameValue;
13
+ };
14
+ };
15
+ } | {
16
+ [x: string]: {
17
+ [x: string]: tailwind_merge.ClassNameValue | {
18
+ root?: tailwind_merge.ClassNameValue;
19
+ actions?: tailwind_merge.ClassNameValue;
20
+ form?: tailwind_merge.ClassNameValue;
21
+ submitButton?: tailwind_merge.ClassNameValue;
22
+ textarea?: tailwind_merge.ClassNameValue;
23
+ };
24
+ };
25
+ } | {}, {
26
+ root: string;
27
+ form: string;
28
+ textarea: string[];
29
+ actions: string;
30
+ submitButton: string;
31
+ }, undefined, {
32
+ [key: string]: {
33
+ [key: string]: tailwind_merge.ClassNameValue | {
34
+ root?: tailwind_merge.ClassNameValue;
35
+ actions?: tailwind_merge.ClassNameValue;
36
+ form?: tailwind_merge.ClassNameValue;
37
+ submitButton?: tailwind_merge.ClassNameValue;
38
+ textarea?: tailwind_merge.ClassNameValue;
39
+ };
40
+ };
41
+ } | {}, {
42
+ root: string;
43
+ form: string;
44
+ textarea: string[];
45
+ actions: string;
46
+ submitButton: string;
47
+ }, tailwind_variants.TVReturnType<unknown, {
48
+ root: string;
49
+ form: string;
50
+ textarea: string[];
51
+ actions: string;
52
+ submitButton: string;
53
+ }, undefined, unknown, unknown, undefined>>;
54
+ type PromptInputVariantProps = VariantProps<typeof promptInput>;
55
+ type PromptInputSlots = keyof ReturnType<typeof promptInput>;
56
+
57
+ export { type PromptInputSlots, type PromptInputVariantProps, promptInput };
@@ -0,0 +1,57 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_merge from 'tailwind-merge';
4
+
5
+ declare const promptInput: tailwind_variants.TVReturnType<{
6
+ [key: string]: {
7
+ [key: string]: tailwind_merge.ClassNameValue | {
8
+ root?: tailwind_merge.ClassNameValue;
9
+ actions?: tailwind_merge.ClassNameValue;
10
+ form?: tailwind_merge.ClassNameValue;
11
+ submitButton?: tailwind_merge.ClassNameValue;
12
+ textarea?: tailwind_merge.ClassNameValue;
13
+ };
14
+ };
15
+ } | {
16
+ [x: string]: {
17
+ [x: string]: tailwind_merge.ClassNameValue | {
18
+ root?: tailwind_merge.ClassNameValue;
19
+ actions?: tailwind_merge.ClassNameValue;
20
+ form?: tailwind_merge.ClassNameValue;
21
+ submitButton?: tailwind_merge.ClassNameValue;
22
+ textarea?: tailwind_merge.ClassNameValue;
23
+ };
24
+ };
25
+ } | {}, {
26
+ root: string;
27
+ form: string;
28
+ textarea: string[];
29
+ actions: string;
30
+ submitButton: string;
31
+ }, undefined, {
32
+ [key: string]: {
33
+ [key: string]: tailwind_merge.ClassNameValue | {
34
+ root?: tailwind_merge.ClassNameValue;
35
+ actions?: tailwind_merge.ClassNameValue;
36
+ form?: tailwind_merge.ClassNameValue;
37
+ submitButton?: tailwind_merge.ClassNameValue;
38
+ textarea?: tailwind_merge.ClassNameValue;
39
+ };
40
+ };
41
+ } | {}, {
42
+ root: string;
43
+ form: string;
44
+ textarea: string[];
45
+ actions: string;
46
+ submitButton: string;
47
+ }, tailwind_variants.TVReturnType<unknown, {
48
+ root: string;
49
+ form: string;
50
+ textarea: string[];
51
+ actions: string;
52
+ submitButton: string;
53
+ }, undefined, unknown, unknown, undefined>>;
54
+ type PromptInputVariantProps = VariantProps<typeof promptInput>;
55
+ type PromptInputSlots = keyof ReturnType<typeof promptInput>;
56
+
57
+ export { type PromptInputSlots, type PromptInputVariantProps, promptInput };
@@ -0,0 +1,43 @@
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/prompt-input.ts
21
+ var prompt_input_exports = {};
22
+ __export(prompt_input_exports, {
23
+ promptInput: () => promptInput
24
+ });
25
+ module.exports = __toCommonJS(prompt_input_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var promptInput = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: "flex w-full flex-col gap-2",
30
+ form: "relative flex w-full items-end gap-2 rounded-lg border bg-background p-2 focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
31
+ textarea: [
32
+ "flex-1 resize-none bg-transparent text-sm placeholder:text-muted-foreground",
33
+ "focus:outline-none",
34
+ "min-h-[40px] max-h-[200px]"
35
+ ],
36
+ actions: "flex items-center gap-1",
37
+ submitButton: "flex-shrink-0"
38
+ }
39
+ });
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ promptInput
43
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ promptInput
3
+ } from "../chunk-2GNVYP2T.mjs";
4
+ export {
5
+ promptInput
6
+ };
package/dist/index.d.mts CHANGED
@@ -19,6 +19,7 @@ export { ComboboxVariantProps, combobox } from './components/combobox.mjs';
19
19
  export { CommandVariants, command } from './components/command.mjs';
20
20
  export { ComplianceBadgeSlots, ComplianceBadgeVariantProps, complianceBadge } from './components/compliance-badge.mjs';
21
21
  export { controlExtension } from './components/control-extension.mjs';
22
+ export { ConversationSlots, ConversationVariantProps, conversation } from './components/conversation.mjs';
22
23
  export { DataGridVariants, datagrid } from './components/data-grid.mjs';
23
24
  export { DataTableVariants, dataTable } from './components/data-table.mjs';
24
25
  export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs';
@@ -41,10 +42,12 @@ export { IntegrationCardSlots, IntegrationCardVariantProps, integrationCard } fr
41
42
  export { kbd } from './components/kbd.mjs';
42
43
  export { LabelVariantProps, label } from './components/label.mjs';
43
44
  export { LoadingPageVariants, loadingPage } from './components/loading-page.mjs';
45
+ export { MessageSlots, MessageVariantProps, message } from './components/message.mjs';
44
46
  export { PageHeaderVariantProps, pageHeader } from './components/page-header.mjs';
45
47
  export { PageLayoutSlots, PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
46
48
  export { PopoverVariants, popover } from './components/popover.mjs';
47
49
  export { PreviewCardSlots, PreviewCardVariantProps, previewCard } from './components/preview-card.mjs';
50
+ export { PromptInputSlots, PromptInputVariantProps, promptInput } from './components/prompt-input.mjs';
48
51
  export { RelatedControlChipVariantsProps, relatedControlChip } from './components/related-control-chip.mjs';
49
52
  export { ResizableVariantProps, resizable } from './components/resizable.mjs';
50
53
  export { RiskBadgeVariantProps, riskBadge } from './components/risk-badge.mjs';
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export { ComboboxVariantProps, combobox } from './components/combobox.js';
19
19
  export { CommandVariants, command } from './components/command.js';
20
20
  export { ComplianceBadgeSlots, ComplianceBadgeVariantProps, complianceBadge } from './components/compliance-badge.js';
21
21
  export { controlExtension } from './components/control-extension.js';
22
+ export { ConversationSlots, ConversationVariantProps, conversation } from './components/conversation.js';
22
23
  export { DataGridVariants, datagrid } from './components/data-grid.js';
23
24
  export { DataTableVariants, dataTable } from './components/data-table.js';
24
25
  export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js';
@@ -41,10 +42,12 @@ export { IntegrationCardSlots, IntegrationCardVariantProps, integrationCard } fr
41
42
  export { kbd } from './components/kbd.js';
42
43
  export { LabelVariantProps, label } from './components/label.js';
43
44
  export { LoadingPageVariants, loadingPage } from './components/loading-page.js';
45
+ export { MessageSlots, MessageVariantProps, message } from './components/message.js';
44
46
  export { PageHeaderVariantProps, pageHeader } from './components/page-header.js';
45
47
  export { PageLayoutSlots, PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
46
48
  export { PopoverVariants, popover } from './components/popover.js';
47
49
  export { PreviewCardSlots, PreviewCardVariantProps, previewCard } from './components/preview-card.js';
50
+ export { PromptInputSlots, PromptInputVariantProps, promptInput } from './components/prompt-input.js';
48
51
  export { RelatedControlChipVariantsProps, relatedControlChip } from './components/related-control-chip.js';
49
52
  export { ResizableVariantProps, resizable } from './components/resizable.js';
50
53
  export { RiskBadgeVariantProps, riskBadge } from './components/risk-badge.js';