@kopexa/theme 0.0.0 → 1.0.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,191 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const dialog: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ xs: {
7
+ content: string;
8
+ };
9
+ sm: {
10
+ content: string;
11
+ };
12
+ md: {
13
+ content: string;
14
+ };
15
+ lg: {
16
+ content: string;
17
+ };
18
+ xl: {
19
+ content: string;
20
+ };
21
+ "2xl": {
22
+ content: string;
23
+ };
24
+ "3xl": {
25
+ content: string;
26
+ };
27
+ "4xl": {
28
+ content: string;
29
+ };
30
+ "5xl": {
31
+ content: string;
32
+ };
33
+ full: {
34
+ content: string[];
35
+ };
36
+ };
37
+ placement: {
38
+ top: {};
39
+ bottom: {};
40
+ left: {};
41
+ right: {};
42
+ };
43
+ radius: {
44
+ none: string;
45
+ sm: {
46
+ content: string;
47
+ };
48
+ md: {
49
+ content: string;
50
+ };
51
+ lg: {
52
+ content: string;
53
+ };
54
+ };
55
+ }, {
56
+ overlay: string[];
57
+ content: string[];
58
+ close: string[];
59
+ closeTrigger: never[];
60
+ header: string;
61
+ footer: string;
62
+ body: string;
63
+ title: string;
64
+ description: string;
65
+ }, undefined, {
66
+ size: {
67
+ xs: {
68
+ content: string;
69
+ };
70
+ sm: {
71
+ content: string;
72
+ };
73
+ md: {
74
+ content: string;
75
+ };
76
+ lg: {
77
+ content: string;
78
+ };
79
+ xl: {
80
+ content: string;
81
+ };
82
+ "2xl": {
83
+ content: string;
84
+ };
85
+ "3xl": {
86
+ content: string;
87
+ };
88
+ "4xl": {
89
+ content: string;
90
+ };
91
+ "5xl": {
92
+ content: string;
93
+ };
94
+ full: {
95
+ content: string[];
96
+ };
97
+ };
98
+ placement: {
99
+ top: {};
100
+ bottom: {};
101
+ left: {};
102
+ right: {};
103
+ };
104
+ radius: {
105
+ none: string;
106
+ sm: {
107
+ content: string;
108
+ };
109
+ md: {
110
+ content: string;
111
+ };
112
+ lg: {
113
+ content: string;
114
+ };
115
+ };
116
+ }, {
117
+ overlay: string[];
118
+ content: string[];
119
+ close: string[];
120
+ closeTrigger: never[];
121
+ header: string;
122
+ footer: string;
123
+ body: string;
124
+ title: string;
125
+ description: string;
126
+ }, tailwind_variants.TVReturnType<{
127
+ size: {
128
+ xs: {
129
+ content: string;
130
+ };
131
+ sm: {
132
+ content: string;
133
+ };
134
+ md: {
135
+ content: string;
136
+ };
137
+ lg: {
138
+ content: string;
139
+ };
140
+ xl: {
141
+ content: string;
142
+ };
143
+ "2xl": {
144
+ content: string;
145
+ };
146
+ "3xl": {
147
+ content: string;
148
+ };
149
+ "4xl": {
150
+ content: string;
151
+ };
152
+ "5xl": {
153
+ content: string;
154
+ };
155
+ full: {
156
+ content: string[];
157
+ };
158
+ };
159
+ placement: {
160
+ top: {};
161
+ bottom: {};
162
+ left: {};
163
+ right: {};
164
+ };
165
+ radius: {
166
+ none: string;
167
+ sm: {
168
+ content: string;
169
+ };
170
+ md: {
171
+ content: string;
172
+ };
173
+ lg: {
174
+ content: string;
175
+ };
176
+ };
177
+ }, {
178
+ overlay: string[];
179
+ content: string[];
180
+ close: string[];
181
+ closeTrigger: never[];
182
+ header: string;
183
+ footer: string;
184
+ body: string;
185
+ title: string;
186
+ description: string;
187
+ }, undefined, unknown, unknown, undefined>>;
188
+ type DialogVariantProps = VariantProps<typeof dialog>;
189
+ type DialogSlots = keyof ReturnType<typeof dialog>;
190
+
191
+ export { type DialogSlots, type DialogVariantProps, dialog };
@@ -0,0 +1,118 @@
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/dialog.ts
21
+ var dialog_exports = {};
22
+ __export(dialog_exports, {
23
+ dialog: () => dialog
24
+ });
25
+ module.exports = __toCommonJS(dialog_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var dialog = (0, import_tailwind_variants.tv)({
28
+ slots: {
29
+ overlay: ["fixed inset-0 z-50 bg-black/25"],
30
+ content: [
31
+ "bg-background fixed top-[50%] left-[50%] z-50",
32
+ "grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%]",
33
+ "gap-4 border shadow-lg",
34
+ // mobile animation vars
35
+ "[--scale-enter:100%]",
36
+ "[--scale-exit:100%]",
37
+ "[--slide-enter:0px]",
38
+ "[--slide-exit:80px]",
39
+ // tablet/desktop animation vars
40
+ "sm:[--scale-enter:100%]",
41
+ "sm:[--scale-exit:103%]",
42
+ "sm:[--slide-enter:0px]",
43
+ "sm:[--slide-exit:0px]"
44
+ ],
45
+ close: [
46
+ "ring-offset-background focus:ring-ring",
47
+ "data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
48
+ "absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100",
49
+ "focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
50
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
51
+ ],
52
+ closeTrigger: [],
53
+ header: "flex flex-col gap-1 text-center sm:text-left shrink grow-0 px-6 pt-4",
54
+ footer: "flex flex-col-reverse gap-2 px-6 pt-2 pb-4 sm:flex-row sm:justify-end",
55
+ body: "px-6 py-2 flex-1 overflow-auto",
56
+ title: "text-lg leading-none font-semibold",
57
+ description: "text-muted-foreground text-sm"
58
+ },
59
+ variants: {
60
+ size: {
61
+ xs: {
62
+ content: "sm:max-w-xs"
63
+ },
64
+ sm: {
65
+ content: "sm:max-w-sm"
66
+ },
67
+ md: {
68
+ content: "sm:max-w-md"
69
+ },
70
+ lg: {
71
+ content: "sm:max-w-lg"
72
+ },
73
+ xl: {
74
+ content: "sm:max-w-xl"
75
+ },
76
+ "2xl": {
77
+ content: "sm:max-w-2xl"
78
+ },
79
+ "3xl": {
80
+ content: "sm:max-w-3xl"
81
+ },
82
+ "4xl": {
83
+ content: "sm:max-w-4xl"
84
+ },
85
+ "5xl": {
86
+ content: "sm:max-w-5xl"
87
+ },
88
+ full: {
89
+ content: [
90
+ "my-0 mx:0 sm:mx-0 sm:my-0 max-w-[calc(100%-1rem)] w-full h-[calc(100dvh-1rem)] inset-2",
91
+ "translate-0"
92
+ ]
93
+ }
94
+ },
95
+ placement: { top: {}, bottom: {}, left: {}, right: {} },
96
+ radius: {
97
+ none: "",
98
+ sm: {
99
+ content: "rounded-sm"
100
+ },
101
+ md: {
102
+ content: "rounded-md"
103
+ },
104
+ lg: {
105
+ content: "rounded-lg"
106
+ }
107
+ }
108
+ },
109
+ defaultVariants: {
110
+ size: "md",
111
+ placement: "right",
112
+ radius: "lg"
113
+ }
114
+ });
115
+ // Annotate the CommonJS export names for ESM import in node:
116
+ 0 && (module.exports = {
117
+ dialog
118
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ dialog
3
+ } from "../chunk-OEVKY5EP.mjs";
4
+ export {
5
+ dialog
6
+ };
@@ -0,0 +1,205 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const drawer: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ xs: {
7
+ content: string;
8
+ };
9
+ sm: {
10
+ content: string;
11
+ };
12
+ md: {
13
+ content: string;
14
+ };
15
+ lg: {
16
+ content: string;
17
+ };
18
+ xl: {
19
+ content: string;
20
+ };
21
+ "2xl": {
22
+ content: string;
23
+ };
24
+ "3xl": {
25
+ content: string;
26
+ };
27
+ "4xl": {
28
+ content: string;
29
+ };
30
+ "5xl": {
31
+ content: string;
32
+ };
33
+ "6xl": {
34
+ content: string;
35
+ };
36
+ full: {
37
+ content: string;
38
+ };
39
+ };
40
+ placement: {
41
+ top: {};
42
+ bottom: {};
43
+ left: {};
44
+ right: {
45
+ content: string;
46
+ };
47
+ };
48
+ radius: {
49
+ none: string;
50
+ sm: {
51
+ content: string;
52
+ };
53
+ md: {
54
+ content: string;
55
+ };
56
+ lg: {
57
+ content: string;
58
+ };
59
+ };
60
+ }, {
61
+ overlay: string[];
62
+ content: string[];
63
+ close: string[];
64
+ closeTrigger: never[];
65
+ header: string;
66
+ footer: string;
67
+ body: string;
68
+ title: string;
69
+ description: string;
70
+ }, undefined, {
71
+ size: {
72
+ xs: {
73
+ content: string;
74
+ };
75
+ sm: {
76
+ content: string;
77
+ };
78
+ md: {
79
+ content: string;
80
+ };
81
+ lg: {
82
+ content: string;
83
+ };
84
+ xl: {
85
+ content: string;
86
+ };
87
+ "2xl": {
88
+ content: string;
89
+ };
90
+ "3xl": {
91
+ content: string;
92
+ };
93
+ "4xl": {
94
+ content: string;
95
+ };
96
+ "5xl": {
97
+ content: string;
98
+ };
99
+ "6xl": {
100
+ content: string;
101
+ };
102
+ full: {
103
+ content: string;
104
+ };
105
+ };
106
+ placement: {
107
+ top: {};
108
+ bottom: {};
109
+ left: {};
110
+ right: {
111
+ content: string;
112
+ };
113
+ };
114
+ radius: {
115
+ none: string;
116
+ sm: {
117
+ content: string;
118
+ };
119
+ md: {
120
+ content: string;
121
+ };
122
+ lg: {
123
+ content: string;
124
+ };
125
+ };
126
+ }, {
127
+ overlay: string[];
128
+ content: string[];
129
+ close: string[];
130
+ closeTrigger: never[];
131
+ header: string;
132
+ footer: string;
133
+ body: string;
134
+ title: string;
135
+ description: string;
136
+ }, tailwind_variants.TVReturnType<{
137
+ size: {
138
+ xs: {
139
+ content: string;
140
+ };
141
+ sm: {
142
+ content: string;
143
+ };
144
+ md: {
145
+ content: string;
146
+ };
147
+ lg: {
148
+ content: string;
149
+ };
150
+ xl: {
151
+ content: string;
152
+ };
153
+ "2xl": {
154
+ content: string;
155
+ };
156
+ "3xl": {
157
+ content: string;
158
+ };
159
+ "4xl": {
160
+ content: string;
161
+ };
162
+ "5xl": {
163
+ content: string;
164
+ };
165
+ "6xl": {
166
+ content: string;
167
+ };
168
+ full: {
169
+ content: string;
170
+ };
171
+ };
172
+ placement: {
173
+ top: {};
174
+ bottom: {};
175
+ left: {};
176
+ right: {
177
+ content: string;
178
+ };
179
+ };
180
+ radius: {
181
+ none: string;
182
+ sm: {
183
+ content: string;
184
+ };
185
+ md: {
186
+ content: string;
187
+ };
188
+ lg: {
189
+ content: string;
190
+ };
191
+ };
192
+ }, {
193
+ overlay: string[];
194
+ content: string[];
195
+ close: string[];
196
+ closeTrigger: never[];
197
+ header: string;
198
+ footer: string;
199
+ body: string;
200
+ title: string;
201
+ description: string;
202
+ }, undefined, unknown, unknown, undefined>>;
203
+ type DrawerVariantProps = VariantProps<typeof drawer>;
204
+
205
+ export { type DrawerVariantProps, drawer };
@@ -0,0 +1,205 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+
4
+ declare const drawer: tailwind_variants.TVReturnType<{
5
+ size: {
6
+ xs: {
7
+ content: string;
8
+ };
9
+ sm: {
10
+ content: string;
11
+ };
12
+ md: {
13
+ content: string;
14
+ };
15
+ lg: {
16
+ content: string;
17
+ };
18
+ xl: {
19
+ content: string;
20
+ };
21
+ "2xl": {
22
+ content: string;
23
+ };
24
+ "3xl": {
25
+ content: string;
26
+ };
27
+ "4xl": {
28
+ content: string;
29
+ };
30
+ "5xl": {
31
+ content: string;
32
+ };
33
+ "6xl": {
34
+ content: string;
35
+ };
36
+ full: {
37
+ content: string;
38
+ };
39
+ };
40
+ placement: {
41
+ top: {};
42
+ bottom: {};
43
+ left: {};
44
+ right: {
45
+ content: string;
46
+ };
47
+ };
48
+ radius: {
49
+ none: string;
50
+ sm: {
51
+ content: string;
52
+ };
53
+ md: {
54
+ content: string;
55
+ };
56
+ lg: {
57
+ content: string;
58
+ };
59
+ };
60
+ }, {
61
+ overlay: string[];
62
+ content: string[];
63
+ close: string[];
64
+ closeTrigger: never[];
65
+ header: string;
66
+ footer: string;
67
+ body: string;
68
+ title: string;
69
+ description: string;
70
+ }, undefined, {
71
+ size: {
72
+ xs: {
73
+ content: string;
74
+ };
75
+ sm: {
76
+ content: string;
77
+ };
78
+ md: {
79
+ content: string;
80
+ };
81
+ lg: {
82
+ content: string;
83
+ };
84
+ xl: {
85
+ content: string;
86
+ };
87
+ "2xl": {
88
+ content: string;
89
+ };
90
+ "3xl": {
91
+ content: string;
92
+ };
93
+ "4xl": {
94
+ content: string;
95
+ };
96
+ "5xl": {
97
+ content: string;
98
+ };
99
+ "6xl": {
100
+ content: string;
101
+ };
102
+ full: {
103
+ content: string;
104
+ };
105
+ };
106
+ placement: {
107
+ top: {};
108
+ bottom: {};
109
+ left: {};
110
+ right: {
111
+ content: string;
112
+ };
113
+ };
114
+ radius: {
115
+ none: string;
116
+ sm: {
117
+ content: string;
118
+ };
119
+ md: {
120
+ content: string;
121
+ };
122
+ lg: {
123
+ content: string;
124
+ };
125
+ };
126
+ }, {
127
+ overlay: string[];
128
+ content: string[];
129
+ close: string[];
130
+ closeTrigger: never[];
131
+ header: string;
132
+ footer: string;
133
+ body: string;
134
+ title: string;
135
+ description: string;
136
+ }, tailwind_variants.TVReturnType<{
137
+ size: {
138
+ xs: {
139
+ content: string;
140
+ };
141
+ sm: {
142
+ content: string;
143
+ };
144
+ md: {
145
+ content: string;
146
+ };
147
+ lg: {
148
+ content: string;
149
+ };
150
+ xl: {
151
+ content: string;
152
+ };
153
+ "2xl": {
154
+ content: string;
155
+ };
156
+ "3xl": {
157
+ content: string;
158
+ };
159
+ "4xl": {
160
+ content: string;
161
+ };
162
+ "5xl": {
163
+ content: string;
164
+ };
165
+ "6xl": {
166
+ content: string;
167
+ };
168
+ full: {
169
+ content: string;
170
+ };
171
+ };
172
+ placement: {
173
+ top: {};
174
+ bottom: {};
175
+ left: {};
176
+ right: {
177
+ content: string;
178
+ };
179
+ };
180
+ radius: {
181
+ none: string;
182
+ sm: {
183
+ content: string;
184
+ };
185
+ md: {
186
+ content: string;
187
+ };
188
+ lg: {
189
+ content: string;
190
+ };
191
+ };
192
+ }, {
193
+ overlay: string[];
194
+ content: string[];
195
+ close: string[];
196
+ closeTrigger: never[];
197
+ header: string;
198
+ footer: string;
199
+ body: string;
200
+ title: string;
201
+ description: string;
202
+ }, undefined, unknown, unknown, undefined>>;
203
+ type DrawerVariantProps = VariantProps<typeof drawer>;
204
+
205
+ export { type DrawerVariantProps, drawer };