@nilloq/ouds-web 0.0.0-stage → 0.1.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/README.md +103 -2
- package/dist/button-BxUIuMAv.js +38 -0
- package/dist/button-C5MSESb5.js +35 -0
- package/dist/button.js +2 -0
- package/dist/elements-button.js +2 -0
- package/dist/elements-tag.js +2 -0
- package/dist/elements.js +5 -0
- package/dist/index.js +4 -0
- package/dist/runtime-dom.esm-bundler-aqFyuQnx.js +2599 -0
- package/dist/tag-BGpa_wYn.js +37 -0
- package/dist/tag-XX1_lffX.js +34 -0
- package/dist/tag.js +2 -0
- package/dist/types/button.d.ts +1 -0
- package/dist/types/components/button/Button.vue.d.ts +21 -0
- package/dist/types/components/button/button.types.d.ts +9 -0
- package/dist/types/components/tag/Tag.vue.d.ts +20 -0
- package/dist/types/components/tag/tag.types.d.ts +9 -0
- package/dist/types/elements/button.d.ts +4 -0
- package/dist/types/elements/index.d.ts +4 -0
- package/dist/types/elements/tag.d.ts +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/tag.d.ts +1 -0
- package/dist/types/vue/button.d.ts +2 -0
- package/dist/types/vue/index.d.ts +4 -0
- package/dist/types/vue/tag.d.ts +2 -0
- package/dist/vue-button.js +2 -0
- package/dist/vue-tag.js +2 -0
- package/dist/vue.js +3 -0
- package/package.json +87 -3
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./runtime-dom.esm-bundler-aqFyuQnx.js";
|
|
2
|
+
//#region src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var l = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "tag-status-icon",
|
|
6
|
+
"aria-hidden": "true"
|
|
7
|
+
}, u = c(/* @__PURE__ */ a({
|
|
8
|
+
__name: "Tag",
|
|
9
|
+
props: {
|
|
10
|
+
variant: { default: "neutral" },
|
|
11
|
+
statusIcon: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
size: { default: "medium" },
|
|
16
|
+
muted: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(a) {
|
|
22
|
+
let c = i(() => [
|
|
23
|
+
"tag",
|
|
24
|
+
a.variant !== "neutral" && `tag-${a.variant}`,
|
|
25
|
+
{
|
|
26
|
+
"tag-muted": a.muted,
|
|
27
|
+
"tag-small": a.size === "small"
|
|
28
|
+
}
|
|
29
|
+
]);
|
|
30
|
+
return (i, u) => (s(), n("span", { class: r(c.value) }, [a.statusIcon ? (s(), n("span", l)) : o("", !0), t(i.$slots, "default", {}, () => [u[0] ||= e("Tag", -1)])], 2));
|
|
31
|
+
}
|
|
32
|
+
}), { shadowRoot: !1 });
|
|
33
|
+
function d() {
|
|
34
|
+
typeof customElements < "u" && (customElements.get("ouds-tag") || customElements.define("ouds-tag", u));
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { d as n, u as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createTextVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s } from "vue";
|
|
2
|
+
//#region src/components/tag/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var c = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "tag-status-icon",
|
|
6
|
+
"aria-hidden": "true"
|
|
7
|
+
}, l = /* @__PURE__ */ i({
|
|
8
|
+
__name: "Tag",
|
|
9
|
+
props: {
|
|
10
|
+
variant: { default: "neutral" },
|
|
11
|
+
statusIcon: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
size: { default: "medium" },
|
|
16
|
+
muted: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(i) {
|
|
22
|
+
let l = e(() => [
|
|
23
|
+
"tag",
|
|
24
|
+
i.variant !== "neutral" && `tag-${i.variant}`,
|
|
25
|
+
{
|
|
26
|
+
"tag-muted": i.muted,
|
|
27
|
+
"tag-small": i.size === "small"
|
|
28
|
+
}
|
|
29
|
+
]);
|
|
30
|
+
return (e, u) => (o(), n("span", { class: a(l.value) }, [i.statusIcon ? (o(), n("span", c)) : t("", !0), s(e.$slots, "default", {}, () => [u[0] ||= r("Tag", -1)])], 2));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { l as t };
|
package/dist/tag.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./elements/button.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OudsButtonVariant } from "./button.types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
type?: "button" | "submit" | "reset";
|
|
4
|
+
variant?: OudsButtonVariant;
|
|
5
|
+
size?: "medium" | "small";
|
|
6
|
+
iconOnly?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type OudsButtonVariant = "default" | "strong" | "brand" | "minimal" | "negative";
|
|
2
|
+
export type OudsButtonElement = HTMLElement & {
|
|
3
|
+
variant: OudsButtonVariant;
|
|
4
|
+
type: "button" | "submit" | "reset";
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type OudsButtonConstructor = CustomElementConstructor & {
|
|
8
|
+
new (initialProps?: Partial<OudsButtonElement>): OudsButtonElement;
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OudsTagVariant } from "./tag.types.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variant?: OudsTagVariant;
|
|
4
|
+
statusIcon?: boolean;
|
|
5
|
+
size?: "medium" | "small";
|
|
6
|
+
muted?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type OudsTagVariant = "neutral" | "accent" | "positive" | "info" | "warning" | "negative";
|
|
2
|
+
export type OudsTagElement = HTMLElement & {
|
|
3
|
+
variant: OudsTagVariant;
|
|
4
|
+
size: "medium" | "small";
|
|
5
|
+
muted: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type OudsTagConstructor = CustomElementConstructor & {
|
|
8
|
+
new (initialProps?: Partial<OudsTagElement>): OudsTagElement;
|
|
9
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OudsButtonConstructor } from "../components/button/button.types.js";
|
|
2
|
+
export type { OudsButtonConstructor, OudsButtonElement, OudsButtonVariant, } from "../components/button/button.types.js";
|
|
3
|
+
export declare const OudsButton: OudsButtonConstructor;
|
|
4
|
+
export declare function defineOudsButton(): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OudsTagConstructor } from "../components/tag/tag.types.js";
|
|
2
|
+
export type { OudsTagConstructor, OudsTagElement, OudsTagVariant, } from "../components/tag/tag.types.js";
|
|
3
|
+
export declare const OudsTag: OudsTagConstructor;
|
|
4
|
+
export declare function defineOudsTag(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./elements/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./elements/tag.js";
|
package/dist/vue-tag.js
ADDED
package/dist/vue.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,90 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nilloq/ouds-web",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Vue components and framework-independent custom elements styled with OUDS Web.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"./dist/index.js",
|
|
12
|
+
"./dist/elements.js"
|
|
13
|
+
],
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/types/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./button": {
|
|
21
|
+
"types": "./dist/types/button.d.ts",
|
|
22
|
+
"import": "./dist/button.js"
|
|
23
|
+
},
|
|
24
|
+
"./tag": {
|
|
25
|
+
"types": "./dist/types/tag.d.ts",
|
|
26
|
+
"import": "./dist/tag.js"
|
|
27
|
+
},
|
|
28
|
+
"./components": {
|
|
29
|
+
"types": "./dist/types/elements/index.d.ts",
|
|
30
|
+
"import": "./dist/elements.js"
|
|
31
|
+
},
|
|
32
|
+
"./components/button": {
|
|
33
|
+
"types": "./dist/types/elements/button.d.ts",
|
|
34
|
+
"import": "./dist/elements-button.js"
|
|
35
|
+
},
|
|
36
|
+
"./components/tag": {
|
|
37
|
+
"types": "./dist/types/elements/tag.d.ts",
|
|
38
|
+
"import": "./dist/elements-tag.js"
|
|
39
|
+
},
|
|
40
|
+
"./vue": {
|
|
41
|
+
"types": "./dist/types/vue/index.d.ts",
|
|
42
|
+
"import": "./dist/vue.js"
|
|
43
|
+
},
|
|
44
|
+
"./vue/button": {
|
|
45
|
+
"types": "./dist/types/vue/button.d.ts",
|
|
46
|
+
"import": "./dist/vue-button.js"
|
|
47
|
+
},
|
|
48
|
+
"./vue/tag": {
|
|
49
|
+
"types": "./dist/types/vue/tag.d.ts",
|
|
50
|
+
"import": "./dist/vue-tag.js"
|
|
51
|
+
},
|
|
52
|
+
"./package.json": "./package.json"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/node": "^26.6.5",
|
|
59
|
+
"@vitejs/plugin-vue": "^6.0.10",
|
|
60
|
+
"@vueuse/core": "^15.0.0",
|
|
61
|
+
"bumpp": "^11.1.0",
|
|
62
|
+
"typescript": "^5.9.3",
|
|
63
|
+
"vite-plus": "1.0.0",
|
|
64
|
+
"vue": "^3.5.44",
|
|
65
|
+
"vue-router": "^5.4.0",
|
|
66
|
+
"vue-tsc": "^3.3.13"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"vue": ">=3.5.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"vue": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"devEngines": {
|
|
77
|
+
"packageManager": {
|
|
78
|
+
"name": "pnpm",
|
|
79
|
+
"version": "12.9.1",
|
|
80
|
+
"onFail": "download"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "vp build && vp build --config vite.vue.config.ts && vue-tsc --declaration --emitDeclarationOnly --noEmit false --outDir dist/types",
|
|
85
|
+
"dev": "vp build --watch",
|
|
86
|
+
"playground": "vp run build && vp dev --config playground/vite.config.ts",
|
|
87
|
+
"test": "vp test",
|
|
88
|
+
"check": "vp check && vue-tsc --noEmit"
|
|
89
|
+
}
|
|
6
90
|
}
|