@huntflow/ui 0.0.12 → 0.0.14
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/README.md +11 -8
- package/dist/ui.es.js +18 -21
- package/dist/ui.umd.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @huntflow/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<a href="https://www.npmjs.com/package/@huntflow/ui" target="\_parent">
|
|
4
|
+
<img alt="" src="https://img.shields.io/npm/dm/@huntflow/ui.svg" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
**@huntflow/ui** — это библиотека компонентов, предназначенная для создания удобных, масштабируемых и согласованных пользовательских интерфейсов. Проект ориентирован на упрощение разработки и поддержания единого стиля интерфейса во всех продуктах компании.
|
|
4
8
|
|
|
5
9
|
## 🚀 Основные возможности
|
|
6
10
|
|
|
@@ -14,20 +18,19 @@
|
|
|
14
18
|
Для добавления UiKit в ваш проект выполните:
|
|
15
19
|
|
|
16
20
|
```javascript
|
|
17
|
-
npm install @
|
|
21
|
+
npm install @huntflow/ui
|
|
18
22
|
```
|
|
19
23
|
|
|
20
24
|
## Пример использования
|
|
21
25
|
```javascript
|
|
22
26
|
|
|
23
|
-
import '@
|
|
27
|
+
import '@huntflow/ui/global.css'
|
|
24
28
|
|
|
25
|
-
import { Button } from '@
|
|
29
|
+
import { Button } from '@huntflow/ui'
|
|
26
30
|
|
|
27
|
-
import { UserIcon } from '@
|
|
28
|
-
import { ArrowLeft } from '@huntkit/icons/16'
|
|
31
|
+
import { UserIcon } from '@huntflow/ui/icons'
|
|
29
32
|
|
|
30
|
-
import { formatDate } from '@
|
|
33
|
+
import { formatDate } from '@huntflow/ui/utils'
|
|
31
34
|
```
|
|
32
35
|
|
|
33
36
|
|
package/dist/ui.es.js
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
(function(){"use strict";var
|
|
2
|
-
import { defineComponent as n,
|
|
3
|
-
const i = /* @__PURE__ */ n({
|
|
4
|
-
__name: "
|
|
1
|
+
(function(){"use strict";var n;try{if(typeof document<"u"){var e=document.createElement("style");e.nonce=(n=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:n.content,e.appendChild(document.createTextNode("#baseButton{padding:1rem 2rem;cursor:pointer;border:none;background-color:var(--5311fe0f);font-size:var(--361342c4)}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { defineComponent as n, useCssVars as r, computed as c, openBlock as u, createElementBlock as l, renderSlot as a } from "vue";
|
|
3
|
+
const p = { id: "baseButton" }, i = /* @__PURE__ */ n({
|
|
4
|
+
__name: "TestButton",
|
|
5
5
|
props: {
|
|
6
|
-
|
|
6
|
+
size: { default: 16 },
|
|
7
|
+
color: { default: "skyblue" }
|
|
7
8
|
},
|
|
8
9
|
setup(t) {
|
|
9
|
-
|
|
10
|
+
r((e) => ({
|
|
11
|
+
"5311fe0f": e.color,
|
|
12
|
+
"361342c4": s.value
|
|
13
|
+
}));
|
|
14
|
+
const o = t, s = c(() => `${o.size}px`);
|
|
15
|
+
return (e, f) => (u(), l("button", p, [
|
|
16
|
+
a(e.$slots, "default")
|
|
17
|
+
]));
|
|
10
18
|
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return e;
|
|
16
|
-
}, f = /* @__PURE__ */ c(i, [["__scopeId", "data-v-81115b88"]]), g = /* @__PURE__ */ n({
|
|
17
|
-
__name: "App",
|
|
18
|
-
setup(t) {
|
|
19
|
-
return (o, e) => (r(), p(a, null, [
|
|
20
|
-
e[0] || (e[0] = m("div", null, null, -1)),
|
|
21
|
-
u(f, { msg: "Vite + Vue" })
|
|
22
|
-
], 64));
|
|
23
|
-
}
|
|
24
|
-
}), v = /* @__PURE__ */ c(g, [["__scopeId", "data-v-5c79fac5"]]);
|
|
25
|
-
d(v).mount("#app");
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
i as TestButton
|
|
22
|
+
};
|
package/dist/ui.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){"use strict";var
|
|
2
|
-
(function(e
|
|
1
|
+
(function(){"use strict";var n;try{if(typeof document<"u"){var e=document.createElement("style");e.nonce=(n=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:n.content,e.appendChild(document.createTextNode("#baseButton{padding:1rem 2rem;cursor:pointer;border:none;background-color:var(--5311fe0f);font-size:var(--361342c4)}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.ui={},t.Vue))})(this,function(t,e){"use strict";const n={id:"baseButton"},s=e.defineComponent({__name:"TestButton",props:{size:{default:16},color:{default:"skyblue"}},setup(i){e.useCssVars(o=>({"5311fe0f":o.color,"361342c4":f.value}));const u=i,f=e.computed(()=>`${u.size}px`);return(o,d)=>(e.openBlock(),e.createElementBlock("button",n,[e.renderSlot(o.$slots,"default")]))}});t.TestButton=s,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@huntflow/ui",
|
|
3
3
|
"description": "HuntFlow UiKit, icons, utils library",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.14",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "HuntFlow Developer",
|
|
8
8
|
"nickname": "developer",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://huntflow.ru/",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"vue": "^3.
|
|
54
|
+
"vue": "^3.2.47"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^22.10.1",
|