@staskozin/ui-kit 1.3.0 → 1.5.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/index.css +1 -1
- package/dist/index.js +8 -10
- package/package.json +66 -59
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, computed as t, openBlock as o, createElementBlock as c, unref as
|
|
1
|
+
import { defineComponent as s, computed as t, openBlock as o, createElementBlock as c, unref as r, normalizeClass as l, createBlock as u, createCommentVNode as m, createTextVNode as d, toDisplayString as h } from "vue";
|
|
2
2
|
const v = {
|
|
3
3
|
calendar: '<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.83 3.33H4.17c-.92 0-1.67.75-1.67 1.67v11.67c0 .92.75 1.66 1.67 1.66h11.66c.92 0 1.67-.74 1.67-1.66V5c0-.92-.75-1.67-1.67-1.67m-2.5-1.66V5M6.67 1.67V5M2.5 8.33h15" stroke="currentColor" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round"/></svg>',
|
|
4
4
|
paperclip: '<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m17.8666 9.2084-7.6584 7.6583a5.0026 5.0026 0 0 1-8.5402-3.5375c0-1.3268.527-2.5993 1.4653-3.5375l7.6583-7.6583A3.3352 3.3352 0 1 1 15.5082 6.85l-7.6666 7.6583a1.6674 1.6674 0 0 1-2.8468-1.1791c0-.4423.1757-.8665.4885-1.1792l7.0749-7.0666" stroke="currentColor" stroke-width="1.6667" stroke-linecap="round" stroke-linejoin="round"/></svg>'
|
|
@@ -9,18 +9,16 @@ const v = {
|
|
|
9
9
|
size: { default: "medium" }
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
|
-
const n = t(() => [
|
|
13
|
-
|
|
14
|
-
]);
|
|
15
|
-
return (i, r) => (o(), c("div", {
|
|
12
|
+
const n = t(() => [`--size-${e.size}`]);
|
|
13
|
+
return (i, a) => (o(), c("div", {
|
|
16
14
|
class: l([n.value, "UiIcon"]),
|
|
17
|
-
innerHTML:
|
|
15
|
+
innerHTML: r(v)[e.name]
|
|
18
16
|
}, null, 10, k));
|
|
19
17
|
}
|
|
20
|
-
}),
|
|
18
|
+
}), g = /* @__PURE__ */ s({
|
|
21
19
|
__name: "UiButton",
|
|
22
20
|
props: {
|
|
23
|
-
label: {},
|
|
21
|
+
label: { default: "Кнопка" },
|
|
24
22
|
icon: {},
|
|
25
23
|
size: { default: "medium" }
|
|
26
24
|
},
|
|
@@ -30,7 +28,7 @@ const v = {
|
|
|
30
28
|
...e.icon ? ["--has-icon"] : [],
|
|
31
29
|
...e.label ? ["--has-label"] : []
|
|
32
30
|
]), i = t(() => e.size !== "large" ? e.size : "medium");
|
|
33
|
-
return (
|
|
31
|
+
return (a, z) => (o(), c("button", {
|
|
34
32
|
class: l([n.value, "UiButton"])
|
|
35
33
|
}, [
|
|
36
34
|
e.icon ? (o(), u(w, {
|
|
@@ -43,5 +41,5 @@ const v = {
|
|
|
43
41
|
}
|
|
44
42
|
});
|
|
45
43
|
export {
|
|
46
|
-
|
|
44
|
+
g as UiButton
|
|
47
45
|
};
|
package/package.json
CHANGED
|
@@ -1,62 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"name": "@staskozin/ui-kit",
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/staskozin/ui-kit.git"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "storybook dev -p 6006",
|
|
28
|
+
"build": "vue-tsc -b && vite build",
|
|
29
|
+
"build:storybook": "storybook build",
|
|
30
|
+
"prepare": "husky",
|
|
31
|
+
"format": "prettier --write .",
|
|
32
|
+
"lint": "prettier --check ."
|
|
33
|
+
},
|
|
34
|
+
"lint-staged": {
|
|
35
|
+
"*": "prettier --write --ignore-unknown"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@commitlint/cli": "^20.4.2",
|
|
39
|
+
"@commitlint/config-conventional": "^20.4.2",
|
|
40
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
41
|
+
"@semantic-release/git": "^10.0.1",
|
|
42
|
+
"@storybook/addon-a11y": "^10.2.13",
|
|
43
|
+
"@storybook/addon-docs": "^10.2.13",
|
|
44
|
+
"@storybook/addon-onboarding": "^10.2.13",
|
|
45
|
+
"@storybook/addon-vitest": "^10.2.13",
|
|
46
|
+
"@storybook/vue3-vite": "^10.2.13",
|
|
47
|
+
"@types/node": "^24.10.1",
|
|
48
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
49
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
50
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
51
|
+
"@vue/tsconfig": "^0.8.1",
|
|
52
|
+
"husky": "^9.1.7",
|
|
53
|
+
"lint-staged": "^16.3.2",
|
|
54
|
+
"playwright": "^1.58.2",
|
|
55
|
+
"prettier": "^3.8.1",
|
|
56
|
+
"sass-embedded": "^1.97.3",
|
|
57
|
+
"semantic-release": "^25.0.3",
|
|
58
|
+
"storybook": "^10.2.13",
|
|
59
|
+
"typescript": "~5.9.3",
|
|
60
|
+
"vite": "^7.3.1",
|
|
61
|
+
"vite-plugin-dts": "^4.5.4",
|
|
62
|
+
"vitest": "^4.0.18",
|
|
63
|
+
"vue": "^3.5.29",
|
|
64
|
+
"vue-tsc": "^3.1.5"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"vue": "^3.5.29"
|
|
10
68
|
}
|
|
11
|
-
},
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"module": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "https://github.com/staskozin/ui-kit.git"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"dev": "storybook dev -p 6006",
|
|
28
|
-
"build": "vue-tsc -b && vite build",
|
|
29
|
-
"build:storybook": "storybook build",
|
|
30
|
-
"prepare": "husky"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@commitlint/cli": "^20.4.2",
|
|
34
|
-
"@commitlint/config-conventional": "^20.4.2",
|
|
35
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
36
|
-
"@semantic-release/git": "^10.0.1",
|
|
37
|
-
"@storybook/addon-a11y": "^10.2.13",
|
|
38
|
-
"@storybook/addon-docs": "^10.2.13",
|
|
39
|
-
"@storybook/addon-onboarding": "^10.2.13",
|
|
40
|
-
"@storybook/addon-vitest": "^10.2.13",
|
|
41
|
-
"@storybook/vue3-vite": "^10.2.13",
|
|
42
|
-
"@types/node": "^24.10.1",
|
|
43
|
-
"@vitejs/plugin-vue": "^6.0.2",
|
|
44
|
-
"@vitest/browser-playwright": "^4.0.18",
|
|
45
|
-
"@vitest/coverage-v8": "^4.0.18",
|
|
46
|
-
"@vue/tsconfig": "^0.8.1",
|
|
47
|
-
"husky": "^9.1.7",
|
|
48
|
-
"playwright": "^1.58.2",
|
|
49
|
-
"sass-embedded": "^1.97.3",
|
|
50
|
-
"semantic-release": "^25.0.3",
|
|
51
|
-
"storybook": "^10.2.13",
|
|
52
|
-
"typescript": "~5.9.3",
|
|
53
|
-
"vite": "^7.3.1",
|
|
54
|
-
"vite-plugin-dts": "^4.5.4",
|
|
55
|
-
"vitest": "^4.0.18",
|
|
56
|
-
"vue": "^3.5.29",
|
|
57
|
-
"vue-tsc": "^3.1.5"
|
|
58
|
-
},
|
|
59
|
-
"peerDependencies": {
|
|
60
|
-
"vue": "^3.5.29"
|
|
61
|
-
}
|
|
62
69
|
}
|