@huntflow/ui 0.0.11 → 0.0.13
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 +20 -25
- package/dist/ui.umd.js +1 -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,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
u(f, { msg: "Vite + Vue" })
|
|
22
|
-
], 64));
|
|
23
|
-
}
|
|
24
|
-
}), v = /* @__PURE__ */ c(g, [["__scopeId", "data-v-5c79fac5"]]);
|
|
25
|
-
d(v).mount("#app");
|
|
1
|
+
import { openBlock as r, createElementBlock as s } from "vue";
|
|
2
|
+
const _ = (t, n) => {
|
|
3
|
+
const o = t.__vccOpts || t;
|
|
4
|
+
for (const [c, e] of n)
|
|
5
|
+
o[c] = e;
|
|
6
|
+
return o;
|
|
7
|
+
}, a = {};
|
|
8
|
+
function f(t, n) {
|
|
9
|
+
return r(), s("button");
|
|
10
|
+
}
|
|
11
|
+
const l = /* @__PURE__ */ _(a, [["render", f]]), u = (t) => {
|
|
12
|
+
t.component("Button", l);
|
|
13
|
+
}, p = {
|
|
14
|
+
install: u
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as Button,
|
|
18
|
+
p as default,
|
|
19
|
+
u as install
|
|
20
|
+
};
|
package/dist/ui.umd.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(function(){
|
|
2
|
-
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Vue))})(this,function(e){"use strict";const t=e.defineComponent({__name:"HelloWorld",props:{msg:{}},setup(o){return(p,n)=>(e.openBlock(),e.createElementBlock("h1",null,e.toDisplayString(p.msg),1))}}),c=(o,p)=>{const n=o.__vccOpts||o;for(const[l,_]of p)n[l]=_;return n},s=c(t,[["__scopeId","data-v-81115b88"]]),r=c(e.defineComponent({__name:"App",setup(o){return(p,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n[0]||(n[0]=e.createElementVNode("div",null,null,-1)),e.createVNode(s,{msg:"Vite + Vue"})],64))}}),[["__scopeId","data-v-5c79fac5"]]);e.createApp(r).mount("#app")});
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.ui={},e.Vue))})(this,function(e,t){"use strict";const s=(n,c)=>{const i=n.__vccOpts||n;for(const[l,_]of c)i[l]=_;return i},f={};function r(n,c){return t.openBlock(),t.createElementBlock("button")}const o=s(f,[["render",r]]),u=n=>{n.component("Button",o)},d={install:u};e.Button=o,e.default=d,e.install=u,Object.defineProperties(e,{__esModule:{value:!0},[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.13",
|
|
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",
|