@huntflow/ui 0.0.13 → 0.0.15
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/components/TestButton/TestButton.vue.d.ts +23 -0
- package/dist/main.d.ts +1 -0
- package/dist/ui.es.js +20 -18
- package/dist/ui.umd.js +2 -1
- package/package.json +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type BaseButtonProps = {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{}>, {
|
|
14
|
+
size: number;
|
|
15
|
+
color: string;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TestButton } from './components/TestButton/TestButton.vue';
|
package/dist/ui.es.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
props: {
|
|
6
|
+
size: { default: 16 },
|
|
7
|
+
color: { default: "skyblue" }
|
|
8
|
+
},
|
|
9
|
+
setup(t) {
|
|
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
|
+
]));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
16
20
|
export {
|
|
17
|
-
|
|
18
|
-
p as default,
|
|
19
|
-
u as install
|
|
21
|
+
i as TestButton
|
|
20
22
|
};
|
package/dist/ui.umd.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
(function(
|
|
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.15",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "HuntFlow Developer",
|
|
8
8
|
"nickname": "developer",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"type": "module",
|
|
21
21
|
"main": "./dist/ui.umd.js",
|
|
22
22
|
"module": "./dist/ui.es.js",
|
|
23
|
-
"typings": "./dist/
|
|
23
|
+
"typings": "./dist/main.d.ts",
|
|
24
24
|
"styles": "./dist/style.css",
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
".": {
|
|
30
30
|
"import": "./dist/ui.es.js",
|
|
31
31
|
"require": "./dist/ui.umd.js",
|
|
32
|
-
"types": "./dist/
|
|
32
|
+
"types": "./dist/main.d.ts"
|
|
33
33
|
},
|
|
34
34
|
"./global.css": "./dist/style.css"
|
|
35
35
|
},
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { }
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|