vueless 0.0.119 → 0.0.121
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/directive.tooltip/index.js +5 -2
- package/package.json +4 -4
- package/preset.tailwind/constants/index.js +23 -0
- package/preset.tailwind/{index.js → index.cjs} +5 -24
- package/service.storybook/index.js +5 -2
- package/service.ui/index.js +11 -2
- package/ui.data-table/configs/default.config.js +1 -1
- package/ui.navigation-stepper/index.vue +1 -1
- package/web-types.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import tippy from "tippy.js";
|
|
2
2
|
import { merge } from "lodash-es";
|
|
3
3
|
|
|
4
|
-
import vuelessConfig from "../../../vueless.config.js";
|
|
5
|
-
|
|
6
4
|
import "tippy.js/dist/tippy.css";
|
|
7
5
|
import "tippy.js/themes/light.css";
|
|
8
6
|
import "tippy.js/animations/shift-away.css";
|
|
9
7
|
|
|
8
|
+
/* Load Vueless config from the project root. */
|
|
9
|
+
const [vuelessConfig] = Object.values(
|
|
10
|
+
import.meta.glob("/vueless.config.js", { eager: true, import: "default" }),
|
|
11
|
+
);
|
|
12
|
+
|
|
10
13
|
const globalSettings = vuelessConfig?.directive?.tooltip || {};
|
|
11
14
|
const defaultSettings = {
|
|
12
15
|
arrow: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.121",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless Component Framework.",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"sb:dev": "npx @vueless/web-types && node prepare.icons && storybook dev -p 6006 --docs --no-open",
|
|
22
22
|
"sb:build": "npx @vueless/web-types && node prepare.icons && storybook build --docs",
|
|
23
23
|
"sb:preview": "vite preview --host --outDir=storybook-static",
|
|
24
|
-
"package:prepare": "npx @vueless/web-types && node prepare.icons && rm -rf dist && mkdir -p dist && cp -r src/. package.json LICENSE web-types.json README.md dist/
|
|
24
|
+
"package:prepare": "npx @vueless/web-types && node prepare.icons && rm -rf dist && mkdir -p dist && cp -r src/. package.json LICENSE web-types.json README.md dist/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@tailwindcss/forms": "^0.5.7",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@release-it/bumper": "^6.0.1",
|
|
38
38
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
39
39
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
40
|
-
"@vueless/plugin-vite": "^0.0.
|
|
41
|
-
"@vueless/storybook": "^0.0.
|
|
40
|
+
"@vueless/plugin-vite": "^0.0.19",
|
|
41
|
+
"@vueless/storybook": "^0.0.22",
|
|
42
42
|
"@vueless/web-types": "^0.0.6",
|
|
43
43
|
"autoprefixer": "^10.4.19",
|
|
44
44
|
"cssnano": "^6.1.2",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const GRAY_COLORS = ["slate", "gray", "zinc", "neutral", "stone"];
|
|
2
|
+
export const GRAYSCALE_COLOR = "grayscale";
|
|
3
|
+
export const BRAND_COLOR = "brand";
|
|
4
|
+
export const BRAND_COLORS = [
|
|
5
|
+
BRAND_COLOR,
|
|
6
|
+
"red",
|
|
7
|
+
"orange",
|
|
8
|
+
"amber",
|
|
9
|
+
"yellow",
|
|
10
|
+
"lime",
|
|
11
|
+
"green",
|
|
12
|
+
"emerald",
|
|
13
|
+
"teal",
|
|
14
|
+
"cyan",
|
|
15
|
+
"sky",
|
|
16
|
+
"blue",
|
|
17
|
+
"indigo",
|
|
18
|
+
"violet",
|
|
19
|
+
"purple",
|
|
20
|
+
"fuchsia",
|
|
21
|
+
"pink",
|
|
22
|
+
"rose",
|
|
23
|
+
];
|
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
import colors from "tailwindcss/colors.js";
|
|
2
2
|
import forms from "@tailwindcss/forms";
|
|
3
|
-
import
|
|
3
|
+
import { BRAND_COLORS, GRAY_COLORS, GRAYSCALE_COLOR } from "./constants/index.js";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
BRAND_COLOR,
|
|
10
|
-
"red",
|
|
11
|
-
"orange",
|
|
12
|
-
"amber",
|
|
13
|
-
"yellow",
|
|
14
|
-
"lime",
|
|
15
|
-
"green",
|
|
16
|
-
"emerald",
|
|
17
|
-
"teal",
|
|
18
|
-
"cyan",
|
|
19
|
-
"sky",
|
|
20
|
-
"blue",
|
|
21
|
-
"indigo",
|
|
22
|
-
"violet",
|
|
23
|
-
"purple",
|
|
24
|
-
"fuchsia",
|
|
25
|
-
"pink",
|
|
26
|
-
"rose",
|
|
27
|
-
];
|
|
5
|
+
/* Load Vueless config from the project root. */
|
|
6
|
+
import { createRequire } from "module";
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
const { default: vuelessConfig } = require(process.cwd() + "/vueless.config.js");
|
|
28
9
|
|
|
29
10
|
/**
|
|
30
11
|
* Generates preset for TailwindCSS base on Vueless config.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/* Load Web-Types from the project root. */
|
|
2
|
+
const [webTypes] = Object.values(
|
|
3
|
+
import.meta.glob("/web-types.json", { eager: true, import: "default" }),
|
|
4
|
+
);
|
|
2
5
|
|
|
3
6
|
const getComponentData = (componentName) => {
|
|
4
|
-
return contributions.html.tags.find((item) => item.name === componentName);
|
|
7
|
+
return webTypes.contributions.html.tags.find((item) => item.name === componentName);
|
|
5
8
|
};
|
|
6
9
|
|
|
7
10
|
export function getSlotNames(componentName) {
|
package/service.ui/index.js
CHANGED
|
@@ -4,8 +4,17 @@ import { twMerge } from "tailwind-merge";
|
|
|
4
4
|
import colors from "tailwindcss/colors";
|
|
5
5
|
|
|
6
6
|
import { cloneDeep } from "../service.helper";
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import {
|
|
8
|
+
BRAND_COLORS,
|
|
9
|
+
GRAY_COLORS,
|
|
10
|
+
GRAYSCALE_COLOR,
|
|
11
|
+
BRAND_COLOR,
|
|
12
|
+
} from "../preset.tailwind/constants";
|
|
13
|
+
|
|
14
|
+
/* Load Vueless config from the project root. */
|
|
15
|
+
const [vuelessConfig] = Object.values(
|
|
16
|
+
import.meta.glob("/vueless.config.js", { eager: true, import: "default" }),
|
|
17
|
+
);
|
|
9
18
|
|
|
10
19
|
/*
|
|
11
20
|
Export cva (class variance authority) methods extended with tailwind-merge.
|
|
@@ -20,7 +20,7 @@ export default /*tw*/ {
|
|
|
20
20
|
stickyHeaderColumn: "flex-none text-sm font-normal text-gray-500 p-4 whitespace-nowrap",
|
|
21
21
|
selectedRowsCount: "absolute left-11 pr-2 font-medium text-sm text-gray-900 bg-gradient-to-r from-white from-80%",
|
|
22
22
|
selectAllCheckbox: "flex-none text-sm font-normal text-gray-500 pr-[1.125rem] pl-4 py-4 group-[]/table-compact:!px-4",
|
|
23
|
-
innerWrapper: "!overflow-
|
|
23
|
+
innerWrapper: "!overflow-x-auto rounded-lg border border-gray-200",
|
|
24
24
|
innerWrapperSelected: "!rounded-t-none border-t-0",
|
|
25
25
|
table: "min-w-full border-none text-sm w-full",
|
|
26
26
|
tableLoader: "absolute !top-auto",
|
|
@@ -46,7 +46,7 @@ import colors from "tailwindcss/colors";
|
|
|
46
46
|
|
|
47
47
|
import UHeader from "../ui.text-header";
|
|
48
48
|
import UIService from "../service.ui";
|
|
49
|
-
import { GRAY_COLORS } from "../preset.tailwind";
|
|
49
|
+
import { GRAY_COLORS } from "../preset.tailwind/constants";
|
|
50
50
|
|
|
51
51
|
import { UStepper } from "./constants/index";
|
|
52
52
|
import defaultConfig from "./configs/default.config";
|