@kopexa/theme 1.2.0 → 1.4.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-E5AF4JZZ.mjs +167 -0
- package/dist/chunk-GWY5N4AY.mjs +101 -0
- package/dist/chunk-HQ27V5V4.mjs +11 -0
- package/dist/chunk-U6ONJKJY.mjs +31 -0
- package/dist/{chunk-EOML76MT.mjs → chunk-YPHFKGNI.mjs} +4 -1
- package/dist/components/button.d.mts +65 -9
- package/dist/components/button.d.ts +65 -9
- package/dist/components/button.js +177 -18
- package/dist/components/button.mjs +3 -1
- package/dist/components/command.d.mts +18 -0
- package/dist/components/command.d.ts +18 -0
- package/dist/components/command.js +4 -1
- package/dist/components/command.mjs +1 -1
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +287 -25
- package/dist/components/index.mjs +12 -6
- package/dist/components/page-layout.d.mts +208 -0
- package/dist/components/page-layout.d.ts +208 -0
- package/dist/components/page-layout.js +125 -0
- package/dist/components/page-layout.mjs +6 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +287 -25
- package/dist/index.mjs +12 -6
- package/dist/utils/classes.d.mts +7 -0
- package/dist/utils/classes.d.ts +7 -0
- package/dist/utils/classes.js +36 -0
- package/dist/utils/classes.mjs +8 -0
- package/dist/utils/variants.d.mts +25 -0
- package/dist/utils/variants.d.ts +25 -0
- package/dist/utils/variants.js +55 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +2 -2
- package/dist/chunk-GSHMDS47.mjs +0 -37
- /package/dist/{chunk-QIGSYUIX.mjs → chunk-ZKEY52ZF.mjs} +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const pageLayout: tailwind_variants.TVReturnType<{
|
|
5
|
+
gap: {
|
|
6
|
+
none: string;
|
|
7
|
+
condensed: {
|
|
8
|
+
header: string;
|
|
9
|
+
footerWrapper: string;
|
|
10
|
+
paneWrapper: string[];
|
|
11
|
+
};
|
|
12
|
+
normal: {
|
|
13
|
+
header: string;
|
|
14
|
+
footerWrapper: string;
|
|
15
|
+
paneWrapper: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
width: {
|
|
19
|
+
full: {
|
|
20
|
+
wrapper: string;
|
|
21
|
+
content: string;
|
|
22
|
+
};
|
|
23
|
+
md: {
|
|
24
|
+
wrapper: string;
|
|
25
|
+
content: string;
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
wrapper: string;
|
|
29
|
+
};
|
|
30
|
+
xl: {
|
|
31
|
+
wrapper: string;
|
|
32
|
+
content: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
paneWidth: {
|
|
36
|
+
sm: {
|
|
37
|
+
pane: string;
|
|
38
|
+
};
|
|
39
|
+
md: {
|
|
40
|
+
pane: string;
|
|
41
|
+
};
|
|
42
|
+
lg: {
|
|
43
|
+
pane: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
spacing: {
|
|
47
|
+
none: string;
|
|
48
|
+
condensed: {
|
|
49
|
+
header: string;
|
|
50
|
+
content: string;
|
|
51
|
+
pane: string;
|
|
52
|
+
footerContent: string;
|
|
53
|
+
};
|
|
54
|
+
normal: {
|
|
55
|
+
header: string;
|
|
56
|
+
content: string;
|
|
57
|
+
pane: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
root: string;
|
|
62
|
+
wrapper: string;
|
|
63
|
+
baseContent: string;
|
|
64
|
+
header: string;
|
|
65
|
+
footerWrapper: string;
|
|
66
|
+
footerContent: string;
|
|
67
|
+
paneWrapper: string[];
|
|
68
|
+
pane: string;
|
|
69
|
+
contentWrapper: string;
|
|
70
|
+
content: string;
|
|
71
|
+
}, undefined, {
|
|
72
|
+
gap: {
|
|
73
|
+
none: string;
|
|
74
|
+
condensed: {
|
|
75
|
+
header: string;
|
|
76
|
+
footerWrapper: string;
|
|
77
|
+
paneWrapper: string[];
|
|
78
|
+
};
|
|
79
|
+
normal: {
|
|
80
|
+
header: string;
|
|
81
|
+
footerWrapper: string;
|
|
82
|
+
paneWrapper: string[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
width: {
|
|
86
|
+
full: {
|
|
87
|
+
wrapper: string;
|
|
88
|
+
content: string;
|
|
89
|
+
};
|
|
90
|
+
md: {
|
|
91
|
+
wrapper: string;
|
|
92
|
+
content: string;
|
|
93
|
+
};
|
|
94
|
+
lg: {
|
|
95
|
+
wrapper: string;
|
|
96
|
+
};
|
|
97
|
+
xl: {
|
|
98
|
+
wrapper: string;
|
|
99
|
+
content: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
paneWidth: {
|
|
103
|
+
sm: {
|
|
104
|
+
pane: string;
|
|
105
|
+
};
|
|
106
|
+
md: {
|
|
107
|
+
pane: string;
|
|
108
|
+
};
|
|
109
|
+
lg: {
|
|
110
|
+
pane: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
spacing: {
|
|
114
|
+
none: string;
|
|
115
|
+
condensed: {
|
|
116
|
+
header: string;
|
|
117
|
+
content: string;
|
|
118
|
+
pane: string;
|
|
119
|
+
footerContent: string;
|
|
120
|
+
};
|
|
121
|
+
normal: {
|
|
122
|
+
header: string;
|
|
123
|
+
content: string;
|
|
124
|
+
pane: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
root: string;
|
|
129
|
+
wrapper: string;
|
|
130
|
+
baseContent: string;
|
|
131
|
+
header: string;
|
|
132
|
+
footerWrapper: string;
|
|
133
|
+
footerContent: string;
|
|
134
|
+
paneWrapper: string[];
|
|
135
|
+
pane: string;
|
|
136
|
+
contentWrapper: string;
|
|
137
|
+
content: string;
|
|
138
|
+
}, tailwind_variants.TVReturnType<{
|
|
139
|
+
gap: {
|
|
140
|
+
none: string;
|
|
141
|
+
condensed: {
|
|
142
|
+
header: string;
|
|
143
|
+
footerWrapper: string;
|
|
144
|
+
paneWrapper: string[];
|
|
145
|
+
};
|
|
146
|
+
normal: {
|
|
147
|
+
header: string;
|
|
148
|
+
footerWrapper: string;
|
|
149
|
+
paneWrapper: string[];
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
width: {
|
|
153
|
+
full: {
|
|
154
|
+
wrapper: string;
|
|
155
|
+
content: string;
|
|
156
|
+
};
|
|
157
|
+
md: {
|
|
158
|
+
wrapper: string;
|
|
159
|
+
content: string;
|
|
160
|
+
};
|
|
161
|
+
lg: {
|
|
162
|
+
wrapper: string;
|
|
163
|
+
};
|
|
164
|
+
xl: {
|
|
165
|
+
wrapper: string;
|
|
166
|
+
content: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
paneWidth: {
|
|
170
|
+
sm: {
|
|
171
|
+
pane: string;
|
|
172
|
+
};
|
|
173
|
+
md: {
|
|
174
|
+
pane: string;
|
|
175
|
+
};
|
|
176
|
+
lg: {
|
|
177
|
+
pane: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
spacing: {
|
|
181
|
+
none: string;
|
|
182
|
+
condensed: {
|
|
183
|
+
header: string;
|
|
184
|
+
content: string;
|
|
185
|
+
pane: string;
|
|
186
|
+
footerContent: string;
|
|
187
|
+
};
|
|
188
|
+
normal: {
|
|
189
|
+
header: string;
|
|
190
|
+
content: string;
|
|
191
|
+
pane: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
}, {
|
|
195
|
+
root: string;
|
|
196
|
+
wrapper: string;
|
|
197
|
+
baseContent: string;
|
|
198
|
+
header: string;
|
|
199
|
+
footerWrapper: string;
|
|
200
|
+
footerContent: string;
|
|
201
|
+
paneWrapper: string[];
|
|
202
|
+
pane: string;
|
|
203
|
+
contentWrapper: string;
|
|
204
|
+
content: string;
|
|
205
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
206
|
+
type PageLayoutVariantProps = VariantProps<typeof pageLayout>;
|
|
207
|
+
|
|
208
|
+
export { type PageLayoutVariantProps, pageLayout };
|
|
@@ -0,0 +1,125 @@
|
|
|
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/page-layout.ts
|
|
21
|
+
var page_layout_exports = {};
|
|
22
|
+
__export(page_layout_exports, {
|
|
23
|
+
pageLayout: () => pageLayout
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(page_layout_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var pageLayout = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
root: "",
|
|
30
|
+
wrapper: "flex mx-auto flex-wrap",
|
|
31
|
+
baseContent: "flex flex-1 flex-wrap max-w-full",
|
|
32
|
+
header: "w-full",
|
|
33
|
+
footerWrapper: "w-full",
|
|
34
|
+
footerContent: "",
|
|
35
|
+
paneWrapper: [
|
|
36
|
+
"flex w-full mx-auto",
|
|
37
|
+
// order start + mt-6
|
|
38
|
+
"data-[position=start]:flex-col",
|
|
39
|
+
// order? + mb-6
|
|
40
|
+
"data-[position=end]:flex-col-reverse",
|
|
41
|
+
// md+
|
|
42
|
+
"md:w-auto md:mt-0 md:mb-0",
|
|
43
|
+
"md:data-[sticky=true]:sticky md:data-[sticky=true]:top-2 md:data-[sticky=true]:max-h-[calc(100dvh-0.5rem)]",
|
|
44
|
+
"md:data-[position=end]:flex-row-reverse",
|
|
45
|
+
"md:data-[position=start]:flex-row"
|
|
46
|
+
],
|
|
47
|
+
pane: "w-[var(--pane-width-size)] md:overflow-auto",
|
|
48
|
+
contentWrapper: "flex min-w-px flex-col basis-0 grow shrink",
|
|
49
|
+
content: "w-full mx-auto grow"
|
|
50
|
+
},
|
|
51
|
+
variants: {
|
|
52
|
+
gap: {
|
|
53
|
+
none: "",
|
|
54
|
+
condensed: {
|
|
55
|
+
header: "mb-4",
|
|
56
|
+
footerWrapper: "mt-4",
|
|
57
|
+
paneWrapper: [
|
|
58
|
+
"max-md:data-[position=start]:mb-4 md:data-[position=start]:mr-4",
|
|
59
|
+
"max-md:data-[position=end]:mt-4 md:data-[position=end]:ml-4"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
normal: {
|
|
63
|
+
header: "mb-4 lg:mb-6",
|
|
64
|
+
footerWrapper: "mt-4 lg:mt-6",
|
|
65
|
+
paneWrapper: [
|
|
66
|
+
"max-md:data-[position=start]:mb-4 md:data-[position=start]:mr-6",
|
|
67
|
+
"max-md:data-[position=end]:mt-4 md:data-[position=end]:ml-6"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
width: {
|
|
72
|
+
full: {
|
|
73
|
+
wrapper: "max-w-full",
|
|
74
|
+
content: "max-w-full"
|
|
75
|
+
},
|
|
76
|
+
md: {
|
|
77
|
+
wrapper: "max-w-3xl",
|
|
78
|
+
content: "max-w-3xl"
|
|
79
|
+
},
|
|
80
|
+
lg: {
|
|
81
|
+
wrapper: "max-w-5xl"
|
|
82
|
+
},
|
|
83
|
+
xl: {
|
|
84
|
+
wrapper: "max-w-7xl",
|
|
85
|
+
content: "max-w-7xl"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
paneWidth: {
|
|
89
|
+
sm: {
|
|
90
|
+
pane: "w-full md:w-60 lg:w-64"
|
|
91
|
+
},
|
|
92
|
+
md: {
|
|
93
|
+
pane: "w-full md:w-64 lg:w-74"
|
|
94
|
+
},
|
|
95
|
+
lg: {
|
|
96
|
+
pane: "w-full md:w-72 lg:w-80"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
spacing: {
|
|
100
|
+
none: "",
|
|
101
|
+
condensed: {
|
|
102
|
+
header: "p-4",
|
|
103
|
+
content: "p-4",
|
|
104
|
+
pane: "p-4",
|
|
105
|
+
footerContent: "p-4"
|
|
106
|
+
},
|
|
107
|
+
// 1.5rem
|
|
108
|
+
normal: {
|
|
109
|
+
header: "p-4 md:p-6",
|
|
110
|
+
content: "p-4 md:p-6",
|
|
111
|
+
pane: "p-4 md:p-6"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
defaultVariants: {
|
|
116
|
+
width: "xl",
|
|
117
|
+
spacing: "normal",
|
|
118
|
+
paneWidth: "md",
|
|
119
|
+
gap: "normal"
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
123
|
+
0 && (module.exports = {
|
|
124
|
+
pageLayout
|
|
125
|
+
});
|
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ export { ButtonVariantProps, button } from './components/button.mjs';
|
|
|
3
3
|
export { CommandVariants, command } from './components/command.mjs';
|
|
4
4
|
export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.mjs';
|
|
5
5
|
export { DrawerVariantProps, drawer } from './components/drawer.mjs';
|
|
6
|
+
export { PageLayoutVariantProps, pageLayout } from './components/page-layout.mjs';
|
|
6
7
|
export { PopoverVariants, popover } from './components/popover.mjs';
|
|
7
8
|
export { SpinnerVariants, spinner } from './components/spinner.mjs';
|
|
8
9
|
export { TooltipVariants, tooltip } from './components/tooltip.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { ButtonVariantProps, button } from './components/button.js';
|
|
|
3
3
|
export { CommandVariants, command } from './components/command.js';
|
|
4
4
|
export { DialogSlots, DialogVariantProps, dialog } from './components/dialog.js';
|
|
5
5
|
export { DrawerVariantProps, drawer } from './components/drawer.js';
|
|
6
|
+
export { PageLayoutVariantProps, pageLayout } from './components/page-layout.js';
|
|
6
7
|
export { PopoverVariants, popover } from './components/popover.js';
|
|
7
8
|
export { SpinnerVariants, spinner } from './components/spinner.js';
|
|
8
9
|
export { TooltipVariants, tooltip } from './components/tooltip.js';
|