@kopexa/theme 17.21.0 → 17.22.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-F7MJHRZX.mjs +47 -0
- package/dist/{chunk-YIS3TUW7.mjs → chunk-XDBCPDGQ.mjs} +40 -13
- package/dist/components/editable-text.d.mts +66 -0
- package/dist/components/editable-text.d.ts +66 -0
- package/dist/components/editable-text.js +40 -13
- package/dist/components/editable-text.mjs +1 -1
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +92 -19
- package/dist/components/index.mjs +6 -2
- package/dist/components/prompt-input.d.mts +3 -3
- package/dist/components/prompt-input.d.ts +3 -3
- package/dist/components/toggle-row.d.mts +92 -0
- package/dist/components/toggle-row.d.ts +92 -0
- package/dist/components/toggle-row.js +71 -0
- package/dist/components/toggle-row.mjs +6 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +92 -19
- package/dist/index.mjs +6 -2
- package/package.json +2 -2
- /package/dist/{chunk-BZXQ2GZA.mjs → chunk-T3C4PJPS.mjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -72,6 +72,7 @@ export { TableSlots, TableVariantProps, table } from './components/table.mjs';
|
|
|
72
72
|
export { TabsVariantProps, tabs } from './components/tabs.mjs';
|
|
73
73
|
export { TextareaVariantProps, textarea } from './components/textarea.mjs';
|
|
74
74
|
export { TocSlots, TocVariantProps, toc } from './components/toc.mjs';
|
|
75
|
+
export { ToggleRowSlots, ToggleRowVariantProps, toggleRow } from './components/toggle-row.mjs';
|
|
75
76
|
export { ToolbarVariantProps, toolbar } from './components/toolbar.mjs';
|
|
76
77
|
export { TooltipVariants, tooltip } from './components/tooltip.mjs';
|
|
77
78
|
export { VariableNodeVariants, variableNode } from './components/variable-node.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export { TableSlots, TableVariantProps, table } from './components/table.js';
|
|
|
72
72
|
export { TabsVariantProps, tabs } from './components/tabs.js';
|
|
73
73
|
export { TextareaVariantProps, textarea } from './components/textarea.js';
|
|
74
74
|
export { TocSlots, TocVariantProps, toc } from './components/toc.js';
|
|
75
|
+
export { ToggleRowSlots, ToggleRowVariantProps, toggleRow } from './components/toggle-row.js';
|
|
75
76
|
export { ToolbarVariantProps, toolbar } from './components/toolbar.js';
|
|
76
77
|
export { TooltipVariants, tooltip } from './components/tooltip.js';
|
|
77
78
|
export { VariableNodeVariants, variableNode } from './components/variable-node.js';
|
package/dist/index.js
CHANGED
|
@@ -96,6 +96,7 @@ __export(index_exports, {
|
|
|
96
96
|
tabs: () => tabs,
|
|
97
97
|
textarea: () => textarea,
|
|
98
98
|
toc: () => toc,
|
|
99
|
+
toggleRow: () => toggleRow,
|
|
99
100
|
toolbar: () => toolbar,
|
|
100
101
|
tooltip: () => tooltip,
|
|
101
102
|
variableNode: () => variableNode
|
|
@@ -2381,7 +2382,7 @@ var dropdownMenu = (0, import_tailwind_variants27.tv)({
|
|
|
2381
2382
|
var import_tailwind_variants28 = require("tailwind-variants");
|
|
2382
2383
|
var editableText = (0, import_tailwind_variants28.tv)({
|
|
2383
2384
|
slots: {
|
|
2384
|
-
root: ["group/editable
|
|
2385
|
+
root: ["group/editable flex w-full min-w-0 gap-2"],
|
|
2385
2386
|
view: [
|
|
2386
2387
|
"flex-1 inline-flex items-center cursor-pointer rounded px-2 py-1 -mx-2",
|
|
2387
2388
|
"hover:bg-muted/50 transition-colors",
|
|
@@ -2391,6 +2392,11 @@ var editableText = (0, import_tailwind_variants28.tv)({
|
|
|
2391
2392
|
"flex-1 bg-transparent border-none outline-none",
|
|
2392
2393
|
"ring-2 ring-primary rounded px-2 py-1 -mx-2"
|
|
2393
2394
|
],
|
|
2395
|
+
textarea: [
|
|
2396
|
+
"flex-1 bg-transparent border-none outline-none resize-none",
|
|
2397
|
+
"ring-2 ring-primary rounded px-2 py-1 -mx-2",
|
|
2398
|
+
"min-h-[60px]"
|
|
2399
|
+
],
|
|
2394
2400
|
placeholder: ["text-muted-foreground"],
|
|
2395
2401
|
actions: ["flex items-center gap-1 shrink-0 ml-2"],
|
|
2396
2402
|
editButton: [
|
|
@@ -2412,49 +2418,70 @@ var editableText = (0, import_tailwind_variants28.tv)({
|
|
|
2412
2418
|
size: {
|
|
2413
2419
|
xs: {
|
|
2414
2420
|
view: "text-xs",
|
|
2415
|
-
input: "text-xs"
|
|
2421
|
+
input: "text-xs",
|
|
2422
|
+
textarea: "text-xs"
|
|
2416
2423
|
},
|
|
2417
2424
|
sm: {
|
|
2418
2425
|
view: "text-sm",
|
|
2419
|
-
input: "text-sm"
|
|
2426
|
+
input: "text-sm",
|
|
2427
|
+
textarea: "text-sm"
|
|
2420
2428
|
},
|
|
2421
2429
|
base: {
|
|
2422
2430
|
view: "text-base",
|
|
2423
|
-
input: "text-base"
|
|
2431
|
+
input: "text-base",
|
|
2432
|
+
textarea: "text-base"
|
|
2424
2433
|
},
|
|
2425
2434
|
lg: {
|
|
2426
2435
|
view: "text-lg",
|
|
2427
|
-
input: "text-lg"
|
|
2436
|
+
input: "text-lg",
|
|
2437
|
+
textarea: "text-lg"
|
|
2428
2438
|
},
|
|
2429
2439
|
xl: {
|
|
2430
2440
|
view: "text-xl",
|
|
2431
|
-
input: "text-xl"
|
|
2441
|
+
input: "text-xl",
|
|
2442
|
+
textarea: "text-xl"
|
|
2432
2443
|
},
|
|
2433
2444
|
"2xl": {
|
|
2434
2445
|
view: "text-2xl",
|
|
2435
|
-
input: "text-2xl"
|
|
2446
|
+
input: "text-2xl",
|
|
2447
|
+
textarea: "text-2xl"
|
|
2436
2448
|
},
|
|
2437
2449
|
"3xl": {
|
|
2438
2450
|
view: "text-3xl",
|
|
2439
|
-
input: "text-3xl"
|
|
2451
|
+
input: "text-3xl",
|
|
2452
|
+
textarea: "text-3xl"
|
|
2440
2453
|
}
|
|
2441
2454
|
},
|
|
2442
2455
|
weight: {
|
|
2443
2456
|
normal: {
|
|
2444
2457
|
view: "font-normal",
|
|
2445
|
-
input: "font-normal"
|
|
2458
|
+
input: "font-normal",
|
|
2459
|
+
textarea: "font-normal"
|
|
2446
2460
|
},
|
|
2447
2461
|
medium: {
|
|
2448
2462
|
view: "font-medium",
|
|
2449
|
-
input: "font-medium"
|
|
2463
|
+
input: "font-medium",
|
|
2464
|
+
textarea: "font-medium"
|
|
2450
2465
|
},
|
|
2451
2466
|
semibold: {
|
|
2452
2467
|
view: "font-semibold",
|
|
2453
|
-
input: "font-semibold"
|
|
2468
|
+
input: "font-semibold",
|
|
2469
|
+
textarea: "font-semibold"
|
|
2454
2470
|
},
|
|
2455
2471
|
bold: {
|
|
2456
2472
|
view: "font-bold",
|
|
2457
|
-
input: "font-bold"
|
|
2473
|
+
input: "font-bold",
|
|
2474
|
+
textarea: "font-bold"
|
|
2475
|
+
}
|
|
2476
|
+
},
|
|
2477
|
+
multiline: {
|
|
2478
|
+
true: {
|
|
2479
|
+
root: "items-start",
|
|
2480
|
+
view: "items-start whitespace-pre-wrap",
|
|
2481
|
+
actions: "mt-1"
|
|
2482
|
+
},
|
|
2483
|
+
false: {
|
|
2484
|
+
root: "items-center"
|
|
2458
2485
|
}
|
|
2459
2486
|
},
|
|
2460
2487
|
disabled: {
|
|
@@ -2479,7 +2506,8 @@ var editableText = (0, import_tailwind_variants28.tv)({
|
|
|
2479
2506
|
weight: "normal",
|
|
2480
2507
|
disabled: false,
|
|
2481
2508
|
showButtons: false,
|
|
2482
|
-
buttonVisibility: "hover"
|
|
2509
|
+
buttonVisibility: "hover",
|
|
2510
|
+
multiline: false
|
|
2483
2511
|
}
|
|
2484
2512
|
});
|
|
2485
2513
|
|
|
@@ -4900,9 +4928,53 @@ var toc = (0, import_tailwind_variants73.tv)({
|
|
|
4900
4928
|
}
|
|
4901
4929
|
});
|
|
4902
4930
|
|
|
4903
|
-
// src/components/
|
|
4931
|
+
// src/components/toggle-row.ts
|
|
4904
4932
|
var import_tailwind_variants74 = require("tailwind-variants");
|
|
4905
|
-
var
|
|
4933
|
+
var toggleRow = (0, import_tailwind_variants74.tv)({
|
|
4934
|
+
slots: {
|
|
4935
|
+
root: [
|
|
4936
|
+
"flex items-center justify-between gap-4 py-2.5 px-3 rounded-lg",
|
|
4937
|
+
"border border-transparent transition-colors",
|
|
4938
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
4939
|
+
],
|
|
4940
|
+
content: ["flex flex-col gap-0.5 min-w-0"],
|
|
4941
|
+
label: ["text-sm"],
|
|
4942
|
+
description: ["text-xs text-muted-foreground"]
|
|
4943
|
+
},
|
|
4944
|
+
variants: {
|
|
4945
|
+
variant: {
|
|
4946
|
+
default: {
|
|
4947
|
+
root: ""
|
|
4948
|
+
},
|
|
4949
|
+
bordered: {
|
|
4950
|
+
root: "border-border"
|
|
4951
|
+
}
|
|
4952
|
+
},
|
|
4953
|
+
disabled: {
|
|
4954
|
+
true: {
|
|
4955
|
+
root: "cursor-default opacity-60"
|
|
4956
|
+
},
|
|
4957
|
+
false: {
|
|
4958
|
+
root: "cursor-pointer hover:bg-muted/50"
|
|
4959
|
+
}
|
|
4960
|
+
},
|
|
4961
|
+
checked: {
|
|
4962
|
+
true: {
|
|
4963
|
+
root: "bg-muted/30"
|
|
4964
|
+
},
|
|
4965
|
+
false: {}
|
|
4966
|
+
}
|
|
4967
|
+
},
|
|
4968
|
+
defaultVariants: {
|
|
4969
|
+
variant: "default",
|
|
4970
|
+
disabled: false,
|
|
4971
|
+
checked: false
|
|
4972
|
+
}
|
|
4973
|
+
});
|
|
4974
|
+
|
|
4975
|
+
// src/components/toolbar.ts
|
|
4976
|
+
var import_tailwind_variants75 = require("tailwind-variants");
|
|
4977
|
+
var toolbar = (0, import_tailwind_variants75.tv)({
|
|
4906
4978
|
slots: {
|
|
4907
4979
|
root: "flex items-center gap-2.5 p-1",
|
|
4908
4980
|
button: "shrink-0",
|
|
@@ -4941,8 +5013,8 @@ var toolbar = (0, import_tailwind_variants74.tv)({
|
|
|
4941
5013
|
});
|
|
4942
5014
|
|
|
4943
5015
|
// src/components/tooltip.ts
|
|
4944
|
-
var
|
|
4945
|
-
var tooltip = (0,
|
|
5016
|
+
var import_tailwind_variants76 = require("tailwind-variants");
|
|
5017
|
+
var tooltip = (0, import_tailwind_variants76.tv)({
|
|
4946
5018
|
slots: {
|
|
4947
5019
|
content: [
|
|
4948
5020
|
"bg-primary-900 text-primary-foreground",
|
|
@@ -4955,8 +5027,8 @@ var tooltip = (0, import_tailwind_variants75.tv)({
|
|
|
4955
5027
|
});
|
|
4956
5028
|
|
|
4957
5029
|
// src/components/variable-node.ts
|
|
4958
|
-
var
|
|
4959
|
-
var variableNode = (0,
|
|
5030
|
+
var import_tailwind_variants77 = require("tailwind-variants");
|
|
5031
|
+
var variableNode = (0, import_tailwind_variants77.tv)({
|
|
4960
5032
|
slots: {
|
|
4961
5033
|
wrapper: ["inline", "align-baseline"],
|
|
4962
5034
|
chip: [
|
|
@@ -5072,6 +5144,7 @@ var variableNode = (0, import_tailwind_variants76.tv)({
|
|
|
5072
5144
|
tabs,
|
|
5073
5145
|
textarea,
|
|
5074
5146
|
toc,
|
|
5147
|
+
toggleRow,
|
|
5075
5148
|
toolbar,
|
|
5076
5149
|
tooltip,
|
|
5077
5150
|
variableNode
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-XSN6P5JL.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-T3C4PJPS.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tabs
|
|
5
5
|
} from "./chunk-I6M4S2KZ.mjs";
|
|
@@ -9,6 +9,9 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
toc
|
|
11
11
|
} from "./chunk-ODC3GJTR.mjs";
|
|
12
|
+
import {
|
|
13
|
+
toggleRow
|
|
14
|
+
} from "./chunk-F7MJHRZX.mjs";
|
|
12
15
|
import {
|
|
13
16
|
toolbar
|
|
14
17
|
} from "./chunk-2NA54PNL.mjs";
|
|
@@ -145,7 +148,7 @@ import {
|
|
|
145
148
|
} from "./chunk-3PCDCW7G.mjs";
|
|
146
149
|
import {
|
|
147
150
|
editableText
|
|
148
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-XDBCPDGQ.mjs";
|
|
149
152
|
import {
|
|
150
153
|
editorBasic
|
|
151
154
|
} from "./chunk-LPNA4ATD.mjs";
|
|
@@ -310,6 +313,7 @@ export {
|
|
|
310
313
|
tabs,
|
|
311
314
|
textarea,
|
|
312
315
|
toc,
|
|
316
|
+
toggleRow,
|
|
313
317
|
toolbar,
|
|
314
318
|
tooltip,
|
|
315
319
|
variableNode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/theme",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.22.0",
|
|
4
4
|
"description": "The default theme for Kopexa components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"tailwind-merge": "3.4.0",
|
|
67
67
|
"tailwind-variants": "^3.2.2",
|
|
68
68
|
"tw-animate-css": "^1.4.0",
|
|
69
|
-
"@kopexa/shared-utils": "17.0.
|
|
69
|
+
"@kopexa/shared-utils": "17.0.39"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"tailwindcss": ">=4.0.0"
|
|
File without changes
|