vueless 0.0.550 → 0.0.552
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/package.json +1 -1
- package/plugin-vite.d.ts +8 -8
- package/ui.form-color-picker/config.js +20 -0
- package/ui.form-date-picker/config.ts +1 -0
- package/ui.form-date-picker/useAttrs.ts +2 -2
- package/ui.form-date-picker-range/config.ts +1 -1
- package/ui.form-radio/URadio.vue +1 -1
- package/utils/node/vuelessResolver.js +6 -2
- package/web-types.json +1 -1
package/package.json
CHANGED
package/plugin-vite.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
declare module "
|
|
2
|
-
export function VuelessUnpluginComponents(options?: unknown): import("vite").Plugin<unknown> & {
|
|
3
|
-
api: import("unplugin-vue-components/types.js").PublicPluginAPI;
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare module "Vueless" {
|
|
1
|
+
declare module "vueless/plugin-vite" {
|
|
8
2
|
import { Plugin } from "vite";
|
|
9
3
|
import { Config } from "svgo";
|
|
4
|
+
|
|
10
5
|
function Vueless(options?: {
|
|
11
6
|
env?: string;
|
|
12
7
|
mode?: string;
|
|
@@ -17,7 +12,12 @@ declare module "Vueless" {
|
|
|
17
12
|
svgo?: boolean;
|
|
18
13
|
defaultImport?: "url" | "raw" | "component";
|
|
19
14
|
}): Plugin;
|
|
20
|
-
|
|
15
|
+
|
|
16
|
+
function VuelessUnpluginComponents(options?: unknown): import("vite").Plugin<unknown> & {
|
|
17
|
+
api: import("unplugin-vue-components/types.js").PublicPluginAPI;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Vueless, VuelessUnpluginComponents };
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare module "*.svg?component" {
|
|
@@ -23,6 +23,26 @@ export default /*tw*/ {
|
|
|
23
23
|
disabled:border-{color}-400 disabled:bg-{color}-400
|
|
24
24
|
`,
|
|
25
25
|
},
|
|
26
|
+
// TODO: Add dynamic colors parsing from the config
|
|
27
|
+
safelistColors: [
|
|
28
|
+
"red",
|
|
29
|
+
"orange",
|
|
30
|
+
"amber",
|
|
31
|
+
"yellow",
|
|
32
|
+
"lime",
|
|
33
|
+
"green",
|
|
34
|
+
"emerald",
|
|
35
|
+
"teal",
|
|
36
|
+
"cyan",
|
|
37
|
+
"sky",
|
|
38
|
+
"blue",
|
|
39
|
+
"indigo",
|
|
40
|
+
"violet",
|
|
41
|
+
"purple",
|
|
42
|
+
"fuchsia",
|
|
43
|
+
"pink",
|
|
44
|
+
"rose",
|
|
45
|
+
],
|
|
26
46
|
defaults: {
|
|
27
47
|
size: "md",
|
|
28
48
|
name: "colorPicker",
|
|
@@ -9,14 +9,14 @@ import type { UseAttrs } from "../types.ts";
|
|
|
9
9
|
import type { UDatePickerProps, Config } from "./types.ts";
|
|
10
10
|
import type { Config as UCalendarConfig } from "../ui.form-calendar/types.ts";
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
interface ComponentState {
|
|
13
13
|
isTop: Ref<boolean>;
|
|
14
14
|
isRight: Ref<boolean>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export default function useAttrs(
|
|
18
18
|
props: UDatePickerProps<unknown>,
|
|
19
|
-
{ isTop, isRight }:
|
|
19
|
+
{ isTop, isRight }: ComponentState,
|
|
20
20
|
): UseAttrs<Config> {
|
|
21
21
|
const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
|
|
22
22
|
|
|
@@ -202,8 +202,8 @@ export default /*tw*/ {
|
|
|
202
202
|
dateFormat: undefined,
|
|
203
203
|
maxDate: undefined,
|
|
204
204
|
minDate: undefined,
|
|
205
|
-
rightIcon: "calendar_month-fill",
|
|
206
205
|
/* icons */
|
|
206
|
+
rightIcon: "calendar_month-fill",
|
|
207
207
|
nextIcon: "keyboard_arrow_right",
|
|
208
208
|
prevIcon: "keyboard_arrow_left",
|
|
209
209
|
ownRangeIcon: "apps",
|
package/ui.form-radio/URadio.vue
CHANGED
|
@@ -14,15 +14,19 @@ export function componentResolver(componentName) {
|
|
|
14
14
|
const folder = COMPONENTS[componentName];
|
|
15
15
|
|
|
16
16
|
if (folder) {
|
|
17
|
-
return {
|
|
17
|
+
return {
|
|
18
|
+
from: `vueless/${folder}/${componentName}.vue`,
|
|
19
|
+
};
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export const directiveResolver = {
|
|
22
24
|
type: "directive",
|
|
23
25
|
resolve(name) {
|
|
26
|
+
const folder = name[0].toLowerCase() + name.slice(1);
|
|
27
|
+
|
|
24
28
|
return {
|
|
25
|
-
from: `vueless/directives/v${name}.
|
|
29
|
+
from: `vueless/directives/${folder}/v${name}.ts`,
|
|
26
30
|
};
|
|
27
31
|
},
|
|
28
32
|
};
|