@kopexa/theme 17.19.0 → 17.21.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.
@@ -0,0 +1,133 @@
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/editable-text.ts
21
+ var editable_text_exports = {};
22
+ __export(editable_text_exports, {
23
+ editableText: () => editableText
24
+ });
25
+ module.exports = __toCommonJS(editable_text_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var editableText = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ root: ["group/editable inline-flex w-full min-w-0 items-center gap-2"],
30
+ view: [
31
+ "flex-1 inline-flex items-center cursor-pointer rounded px-2 py-1 -mx-2",
32
+ "hover:bg-muted/50 transition-colors",
33
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
34
+ ],
35
+ input: [
36
+ "flex-1 bg-transparent border-none outline-none",
37
+ "ring-2 ring-primary rounded px-2 py-1 -mx-2"
38
+ ],
39
+ placeholder: ["text-muted-foreground"],
40
+ actions: ["flex items-center gap-1 shrink-0 ml-2"],
41
+ editButton: [
42
+ "p-1 rounded transition-all text-muted-foreground shrink-0",
43
+ "hover:bg-muted hover:text-foreground",
44
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
45
+ "ml-2"
46
+ ],
47
+ saveButton: [
48
+ "p-1 rounded hover:bg-primary/10 transition-colors text-primary",
49
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
50
+ ],
51
+ cancelButton: [
52
+ "p-1 rounded hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",
53
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
54
+ ]
55
+ },
56
+ variants: {
57
+ size: {
58
+ xs: {
59
+ view: "text-xs",
60
+ input: "text-xs"
61
+ },
62
+ sm: {
63
+ view: "text-sm",
64
+ input: "text-sm"
65
+ },
66
+ base: {
67
+ view: "text-base",
68
+ input: "text-base"
69
+ },
70
+ lg: {
71
+ view: "text-lg",
72
+ input: "text-lg"
73
+ },
74
+ xl: {
75
+ view: "text-xl",
76
+ input: "text-xl"
77
+ },
78
+ "2xl": {
79
+ view: "text-2xl",
80
+ input: "text-2xl"
81
+ },
82
+ "3xl": {
83
+ view: "text-3xl",
84
+ input: "text-3xl"
85
+ }
86
+ },
87
+ weight: {
88
+ normal: {
89
+ view: "font-normal",
90
+ input: "font-normal"
91
+ },
92
+ medium: {
93
+ view: "font-medium",
94
+ input: "font-medium"
95
+ },
96
+ semibold: {
97
+ view: "font-semibold",
98
+ input: "font-semibold"
99
+ },
100
+ bold: {
101
+ view: "font-bold",
102
+ input: "font-bold"
103
+ }
104
+ },
105
+ disabled: {
106
+ true: {
107
+ view: "cursor-default hover:bg-transparent"
108
+ }
109
+ },
110
+ showButtons: {
111
+ true: {}
112
+ },
113
+ buttonVisibility: {
114
+ hover: {
115
+ editButton: "opacity-0 group-hover/editable:opacity-100 focus:opacity-100"
116
+ },
117
+ always: {
118
+ editButton: "opacity-100"
119
+ }
120
+ }
121
+ },
122
+ defaultVariants: {
123
+ size: "base",
124
+ weight: "normal",
125
+ disabled: false,
126
+ showButtons: false,
127
+ buttonVisibility: "hover"
128
+ }
129
+ });
130
+ // Annotate the CommonJS export names for ESM import in node:
131
+ 0 && (module.exports = {
132
+ editableText
133
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ editableText
3
+ } from "../chunk-YIS3TUW7.mjs";
4
+ export {
5
+ editableText
6
+ };
@@ -63,13 +63,14 @@ var filter = (0, import_tailwind_variants.tv)({
63
63
  menuSeparator: "bg-border -mx-1 my-1 h-px",
64
64
  // Aktiver Filter (Contentful-Style segmented)
65
65
  field: [
66
- "group inline-flex items-center rounded-full",
66
+ "group inline-flex items-center rounded-full overflow-hidden",
67
67
  "border border-border bg-background",
68
68
  "transition-all hover:shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-1"
69
69
  ],
70
70
  fieldLabel: [
71
71
  "bg-muted text-foreground font-medium text-xs",
72
- "flex items-center gap-1.5 flex-shrink-0"
72
+ "flex items-center gap-1.5 flex-shrink-0",
73
+ "rounded-l-full"
73
74
  ],
74
75
  fieldOperator: [
75
76
  "bg-primary text-primary-foreground",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  filter
3
- } from "../chunk-L75CK6K3.mjs";
3
+ } from "../chunk-GT463S76.mjs";
4
4
  import "../chunk-6IZPAS4O.mjs";
5
5
  export {
6
6
  filter
@@ -24,6 +24,7 @@ export { DataTableVariants, dataTable } from './data-table.mjs';
24
24
  export { DialogSlots, DialogVariantProps, dialog } from './dialog.mjs';
25
25
  export { DrawerVariantProps, drawer } from './drawer.mjs';
26
26
  export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.mjs';
27
+ export { EditableTextSlots, EditableTextVariantProps, editableText } from './editable-text.mjs';
27
28
  export { EditorBasicVariants, editorBasic } from './editor-basic.mjs';
28
29
  export { editorSpinner } from './editor-spinner.mjs';
29
30
  export { AvatarUploadSlots, AvatarUploadVariants, avatarUpload } from './file-upload.mjs';
@@ -24,6 +24,7 @@ export { DataTableVariants, dataTable } from './data-table.js';
24
24
  export { DialogSlots, DialogVariantProps, dialog } from './dialog.js';
25
25
  export { DrawerVariantProps, drawer } from './drawer.js';
26
26
  export { DropdownMenuVariantProps, dropdownMenu } from './dropdown-menu.js';
27
+ export { EditableTextSlots, EditableTextVariantProps, editableText } from './editable-text.js';
27
28
  export { EditorBasicVariants, editorBasic } from './editor-basic.js';
28
29
  export { editorSpinner } from './editor-spinner.js';
29
30
  export { AvatarUploadSlots, AvatarUploadVariants, avatarUpload } from './file-upload.js';