sench-ui-kit 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,18 @@
1
- import { default as Button } from './button/Button.vue';
2
- export { Button, };
1
+ declare const _default: {
2
+ senchButton: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./senchButton/types').ButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
4
+ P: {};
5
+ B: {};
6
+ D: {};
7
+ C: {};
8
+ M: {};
9
+ Defaults: {};
10
+ }, Readonly<import('./senchButton/types').ButtonProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
11
+ __isFragment?: never;
12
+ __isTeleport?: never;
13
+ __isSuspense?: never;
14
+ } & import('vue').ComponentOptionsBase<Readonly<import('./senchButton/types').ButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
15
+ $slots: Readonly<import('./senchButton/types').ButtonSlots> & import('./senchButton/types').ButtonSlots;
16
+ });
17
+ };
18
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { ButtonProps, ButtonSlots } from './types';
2
+ declare function __VLS_template(): {
3
+ slots: Readonly<ButtonSlots> & ButtonSlots;
4
+ refs: {};
5
+ attrs: Partial<{}>;
6
+ };
7
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
+ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
10
+ export default _default;
11
+ type __VLS_WithTemplateSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,9 @@
1
+ import { Slot } from 'vue';
2
+ export interface ButtonProps {
3
+ text: string;
4
+ color: string;
5
+ }
6
+ export interface ButtonSlots {
7
+ default?: Slot;
8
+ icon?: Slot;
9
+ }
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ components: {
3
+ senchButton: {
4
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./components/senchButton/types').ButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<import('./components/senchButton/types').ButtonProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
12
+ __isFragment?: never;
13
+ __isTeleport?: never;
14
+ __isSuspense?: never;
15
+ } & import('vue').ComponentOptionsBase<Readonly<import('./components/senchButton/types').ButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
16
+ $slots: Readonly<import('./components/senchButton/types').ButtonSlots> & import('./components/senchButton/types').ButtonSlots;
17
+ });
18
+ };
19
+ };
20
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { defineComponent as r, openBlock as _, createElementBlock as d, renderSlot as n } from "vue";
2
+ const p = { class: "button" }, a = /* @__PURE__ */ r({
3
+ __name: "index",
4
+ props: {
5
+ text: {},
6
+ color: {}
7
+ },
8
+ setup(o) {
9
+ return (t, e) => (_(), d("button", p, [
10
+ n(t.$slots, "default", {}, void 0, !0),
11
+ n(t.$slots, "icon", {}, void 0, !0)
12
+ ]));
13
+ }
14
+ }), l = (o, t) => {
15
+ const e = o.__vccOpts || o;
16
+ for (const [s, c] of t)
17
+ e[s] = c;
18
+ return e;
19
+ }, u = /* @__PURE__ */ l(a, [["__scopeId", "data-v-7196e6dd"]]), i = {
20
+ senchButton: u
21
+ }, m = {
22
+ components: i
23
+ };
24
+ export {
25
+ m as default
26
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.sench=t(e.Vue))})(this,function(e){"use strict";const t={class:"button"};return{components:{senchButton:((o,n)=>{const s=o.__vccOpts||o;for(const[c,r]of n)s[c]=r;return s})(e.defineComponent({__name:"index",props:{text:{},color:{}},setup(o){return(n,s)=>(e.openBlock(),e.createElementBlock("button",t,[e.renderSlot(n.$slots,"default",{},void 0,!0),e.renderSlot(n.$slots,"icon",{},void 0,!0)]))}}),[["__scopeId","data-v-7196e6dd"]])}}});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .button[data-v-373463fa]{color:#fff;outline:none;border:none;padding:0 16px}.small[data-v-373463fa]{height:32px;border-radius:8px}.medium[data-v-373463fa]{height:36px;border-radius:10px}.large[data-v-373463fa]{height:40px;border-radius:12px}.primary[data-v-373463fa]{background:#535bf2}.secondary[data-v-373463fa]{background:#a7a7a7}
1
+ .button[data-v-7196e6dd]{padding:8px 16px}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "sench-ui-kit",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
- "main": "./dist/dragonekui.umd.ts",
6
- "module": "./dist/dragonekui.es.ts",
5
+ "main": "./dist/sench.umd.ts",
6
+ "module": "./dist/sench.es.ts",
7
7
  "types": "./dist/components/index.d.ts",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "import": "./dist/dragonekui.es.ts",
14
- "require": "./dist/dragonekui.umd.ts"
13
+ "import": "./dist/sench.es.ts",
14
+ "require": "./dist/sench.umd.ts"
15
15
  },
16
16
  "./styles": "./dist/style.css"
17
17
  },
@@ -1,49 +0,0 @@
1
- import { PropType } from 'vue';
2
- declare function __VLS_template(): {
3
- slots: {
4
- "left-icon"?(_: {}): any;
5
- default?(_: {}): any;
6
- "right-icon"?(_: {}): any;
7
- };
8
- refs: {};
9
- attrs: Partial<{}>;
10
- };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
- disabled: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- size: {
18
- type: PropType<"small" | "medium" | "large">;
19
- default: string;
20
- };
21
- color: {
22
- type: PropType<"primary" | "secondary">;
23
- default: string;
24
- };
25
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
- disabled: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- size: {
31
- type: PropType<"small" | "medium" | "large">;
32
- default: string;
33
- };
34
- color: {
35
- type: PropType<"primary" | "secondary">;
36
- default: string;
37
- };
38
- }>> & Readonly<{}>, {
39
- disabled: boolean;
40
- size: "small" | "medium" | "large";
41
- color: "primary" | "secondary";
42
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
- export default _default;
45
- type __VLS_WithTemplateSlots<T, S> = T & {
46
- new (): {
47
- $slots: S;
48
- };
49
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as l, openBlock as a, createElementBlock as d, normalizeClass as i, renderSlot as s } from "vue";
2
- const c = ["disabled"], p = /* @__PURE__ */ l({
3
- __name: "Button",
4
- props: {
5
- disabled: {
6
- type: Boolean,
7
- default: !1
8
- },
9
- size: {
10
- type: String,
11
- default: "medium"
12
- },
13
- color: {
14
- type: String,
15
- default: "primary"
16
- }
17
- },
18
- setup(o) {
19
- const e = o;
20
- return (t, n) => (a(), d("button", {
21
- class: i(["button", [e.size, e.color]]),
22
- disabled: e.disabled
23
- }, [
24
- s(t.$slots, "left-icon", {}, void 0, !0),
25
- s(t.$slots, "default", {}, void 0, !0),
26
- s(t.$slots, "right-icon", {}, void 0, !0)
27
- ], 10, c));
28
- }
29
- }), u = (o, e) => {
30
- const t = o.__vccOpts || o;
31
- for (const [n, r] of e)
32
- t[n] = r;
33
- return t;
34
- }, _ = /* @__PURE__ */ u(p, [["__scopeId", "data-v-373463fa"]]);
35
- export {
36
- _ as Button
37
- };
@@ -1 +0,0 @@
1
- (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.dragonekui={},t.Vue))})(this,function(t,e){"use strict";const r=["disabled"],d=((s,n)=>{const o=s.__vccOpts||s;for(const[i,l]of n)o[i]=l;return o})(e.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{type:String,default:"medium"},color:{type:String,default:"primary"}},setup(s){const n=s;return(o,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",[n.size,n.color]]),disabled:n.disabled},[e.renderSlot(o.$slots,"left-icon",{},void 0,!0),e.renderSlot(o.$slots,"default",{},void 0,!0),e.renderSlot(o.$slots,"right-icon",{},void 0,!0)],10,r))}}),[["__scopeId","data-v-373463fa"]]);t.Button=d,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
package/dist/main.d.ts DELETED
File without changes