@nilloq/ouds-web 0.1.0 → 0.1.3
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 +15 -38
- package/dist/button-DdoJkL_N.js +59 -0
- package/dist/button-z6rNROko.js +62 -0
- package/dist/button.js +1 -1
- package/dist/checkbox-BYrgMhwO.js +105 -0
- package/dist/checkbox-CS0xyJ93.js +79 -0
- package/dist/checkbox.js +5 -0
- package/dist/elements-button.js +1 -1
- package/dist/elements-checkbox.js +2 -0
- package/dist/elements-select.js +2 -0
- package/dist/elements-tag.js +1 -1
- package/dist/elements-text-input.js +2 -0
- package/dist/elements.js +7 -4
- package/dist/index.js +6 -3
- package/dist/{runtime-dom.esm-bundler-aqFyuQnx.js → runtime-dom.esm-bundler-Bh0p0Jto.js} +1038 -855
- package/dist/select-6rG9CVMu.js +58 -0
- package/dist/select-CKHEHpJL.js +80 -0
- package/dist/select.js +5 -0
- package/dist/{tag-BGpa_wYn.js → tag-Gq6ZayFl.js} +8 -8
- package/dist/tag.js +1 -1
- package/dist/text-input-9GVktDML.js +113 -0
- package/dist/text-input-DLbvTlpY.js +73 -0
- package/dist/text-input.js +5 -0
- package/dist/types/checkbox.d.ts +2 -0
- package/dist/types/components/button/Button.vue.d.ts +5 -4
- package/dist/types/components/button/button.types.d.ts +11 -6
- package/dist/types/components/checkbox/Checkbox.vue.d.ts +26 -0
- package/dist/types/components/checkbox/VueCheckbox.vue.d.ts +24 -0
- package/dist/types/components/checkbox/checkbox.types.d.ts +14 -0
- package/dist/types/components/select/Select.vue.d.ts +26 -0
- package/dist/types/components/select/VueSelect.vue.d.ts +24 -0
- package/dist/types/components/select/select.types.d.ts +12 -0
- package/dist/types/components/tag/Tag.vue.d.ts +2 -2
- package/dist/types/components/tag/tag.types.d.ts +5 -5
- package/dist/types/components/text-input/TextInput.vue.d.ts +31 -0
- package/dist/types/components/text-input/VueTextInput.vue.d.ts +30 -0
- package/dist/types/components/text-input/text-input.types.d.ts +14 -0
- package/dist/types/elements/button.d.ts +3 -3
- package/dist/types/elements/checkbox.d.ts +4 -0
- package/dist/types/elements/index.d.ts +6 -0
- package/dist/types/elements/select.d.ts +4 -0
- package/dist/types/elements/tag.d.ts +3 -3
- package/dist/types/elements/text-input.d.ts +4 -0
- package/dist/types/select.d.ts +2 -0
- package/dist/types/text-input.d.ts +2 -0
- package/dist/types/vue/button.d.ts +1 -1
- package/dist/types/vue/checkbox.d.ts +2 -0
- package/dist/types/vue/index.d.ts +8 -2
- package/dist/types/vue/select.d.ts +2 -0
- package/dist/types/vue/tag.d.ts +1 -1
- package/dist/types/vue/text-input.d.ts +2 -0
- package/dist/vue-button.js +1 -1
- package/dist/vue-checkbox.js +2 -0
- package/dist/vue-select.js +2 -0
- package/dist/vue-text-input.js +2 -0
- package/dist/vue.js +5 -2
- package/package.json +50 -12
- package/dist/button-BxUIuMAv.js +0 -38
- package/dist/button-C5MSESb5.js +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type {
|
|
3
|
-
export declare const OudsButton:
|
|
1
|
+
import type { ButtonConstructor } from "../components/button/button.types.js";
|
|
2
|
+
export type { ButtonConstructor, ButtonElement, ButtonVariant, } from "../components/button/button.types.js";
|
|
3
|
+
export declare const OudsButton: ButtonConstructor;
|
|
4
4
|
export declare function defineOudsButton(): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckboxConstructor } from "../components/checkbox/checkbox.types.js";
|
|
2
|
+
export type { CheckboxConstructor, CheckboxElement, } from "../components/checkbox/checkbox.types.js";
|
|
3
|
+
export declare const OudsCheckbox: CheckboxConstructor;
|
|
4
|
+
export declare function defineOudsCheckbox(): void;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export { OudsButton, defineOudsButton } from "./button.js";
|
|
2
2
|
export { OudsTag, defineOudsTag } from "./tag.js";
|
|
3
|
+
export { OudsSelect, defineOudsSelect } from "./select.js";
|
|
4
|
+
export { OudsCheckbox, defineOudsCheckbox } from "./checkbox.js";
|
|
5
|
+
export { OudsTextInput, defineOudsTextInput } from "./text-input.js";
|
|
3
6
|
export type * from "../components/button/button.types.js";
|
|
4
7
|
export type * from "../components/tag/tag.types.js";
|
|
8
|
+
export type * from "../components/select/select.types.js";
|
|
9
|
+
export type * from "../components/checkbox/checkbox.types.js";
|
|
10
|
+
export type * from "../components/text-input/text-input.types.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SelectConstructor } from "../components/select/select.types.js";
|
|
2
|
+
export type { SelectConstructor, SelectElement } from "../components/select/select.types.js";
|
|
3
|
+
export declare const OudsSelect: SelectConstructor;
|
|
4
|
+
export declare function defineOudsSelect(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type {
|
|
3
|
-
export declare const OudsTag:
|
|
1
|
+
import type { TagConstructor } from "../components/tag/tag.types.js";
|
|
2
|
+
export type { TagConstructor, TagElement, TagVariant } from "../components/tag/tag.types.js";
|
|
3
|
+
export declare const OudsTag: TagConstructor;
|
|
4
4
|
export declare function defineOudsTag(): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TextInputConstructor } from "../components/text-input/text-input.types.js";
|
|
2
|
+
export type { TextInputConstructor, TextInputElement, } from "../components/text-input/text-input.types.js";
|
|
3
|
+
export declare const OudsTextInput: TextInputConstructor;
|
|
4
|
+
export declare function defineOudsTextInput(): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as OudsButton } from "../components/button/Button.vue";
|
|
2
|
-
export type {
|
|
2
|
+
export type { ButtonElement, ButtonVariant } from "../components/button/button.types.js";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export { OudsButton } from "./button.js";
|
|
2
2
|
export { OudsTag } from "./tag.js";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export { OudsSelect } from "./select.js";
|
|
4
|
+
export { OudsCheckbox } from "./checkbox.js";
|
|
5
|
+
export { OudsTextInput } from "./text-input.js";
|
|
6
|
+
export type { ButtonElement, ButtonVariant } from "./button.js";
|
|
7
|
+
export type { TagElement, TagVariant } from "./tag.js";
|
|
8
|
+
export type { SelectElement } from "../components/select/select.types.js";
|
|
9
|
+
export type { CheckboxElement } from "../components/checkbox/checkbox.types.js";
|
|
10
|
+
export type { TextInputElement } from "../components/text-input/text-input.types.js";
|
package/dist/types/vue/tag.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as OudsTag } from "../components/tag/Tag.vue";
|
|
2
|
-
export type {
|
|
2
|
+
export type { TagElement, TagVariant } from "../components/tag/tag.types.js";
|
package/dist/vue-button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./button-
|
|
1
|
+
import { t as e } from "./button-DdoJkL_N.js";
|
|
2
2
|
export { e as OudsButton };
|
package/dist/vue.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./button-
|
|
1
|
+
import { t as e } from "./button-DdoJkL_N.js";
|
|
2
2
|
import { t } from "./tag-XX1_lffX.js";
|
|
3
|
-
|
|
3
|
+
import { t as n } from "./select-CKHEHpJL.js";
|
|
4
|
+
import { t as r } from "./checkbox-BYrgMhwO.js";
|
|
5
|
+
import { t as i } from "./text-input-9GVktDML.js";
|
|
6
|
+
export { e as OudsButton, r as OudsCheckbox, n as OudsSelect, t as OudsTag, i as OudsTextInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nilloq/ouds-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Vue components and framework-independent custom elements styled with OUDS Web.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -25,6 +25,18 @@
|
|
|
25
25
|
"types": "./dist/types/tag.d.ts",
|
|
26
26
|
"import": "./dist/tag.js"
|
|
27
27
|
},
|
|
28
|
+
"./select": {
|
|
29
|
+
"types": "./dist/types/select.d.ts",
|
|
30
|
+
"import": "./dist/select.js"
|
|
31
|
+
},
|
|
32
|
+
"./checkbox": {
|
|
33
|
+
"types": "./dist/types/checkbox.d.ts",
|
|
34
|
+
"import": "./dist/checkbox.js"
|
|
35
|
+
},
|
|
36
|
+
"./text-input": {
|
|
37
|
+
"types": "./dist/types/text-input.d.ts",
|
|
38
|
+
"import": "./dist/text-input.js"
|
|
39
|
+
},
|
|
28
40
|
"./components": {
|
|
29
41
|
"types": "./dist/types/elements/index.d.ts",
|
|
30
42
|
"import": "./dist/elements.js"
|
|
@@ -37,6 +49,18 @@
|
|
|
37
49
|
"types": "./dist/types/elements/tag.d.ts",
|
|
38
50
|
"import": "./dist/elements-tag.js"
|
|
39
51
|
},
|
|
52
|
+
"./components/select": {
|
|
53
|
+
"types": "./dist/types/elements/select.d.ts",
|
|
54
|
+
"import": "./dist/elements-select.js"
|
|
55
|
+
},
|
|
56
|
+
"./components/checkbox": {
|
|
57
|
+
"types": "./dist/types/elements/checkbox.d.ts",
|
|
58
|
+
"import": "./dist/elements-checkbox.js"
|
|
59
|
+
},
|
|
60
|
+
"./components/text-input": {
|
|
61
|
+
"types": "./dist/types/elements/text-input.d.ts",
|
|
62
|
+
"import": "./dist/elements-text-input.js"
|
|
63
|
+
},
|
|
40
64
|
"./vue": {
|
|
41
65
|
"types": "./dist/types/vue/index.d.ts",
|
|
42
66
|
"import": "./dist/vue.js"
|
|
@@ -49,18 +73,39 @@
|
|
|
49
73
|
"types": "./dist/types/vue/tag.d.ts",
|
|
50
74
|
"import": "./dist/vue-tag.js"
|
|
51
75
|
},
|
|
76
|
+
"./vue/select": {
|
|
77
|
+
"types": "./dist/types/vue/select.d.ts",
|
|
78
|
+
"import": "./dist/vue-select.js"
|
|
79
|
+
},
|
|
80
|
+
"./vue/checkbox": {
|
|
81
|
+
"types": "./dist/types/vue/checkbox.d.ts",
|
|
82
|
+
"import": "./dist/vue-checkbox.js"
|
|
83
|
+
},
|
|
84
|
+
"./vue/text-input": {
|
|
85
|
+
"types": "./dist/types/vue/text-input.d.ts",
|
|
86
|
+
"import": "./dist/vue-text-input.js"
|
|
87
|
+
},
|
|
52
88
|
"./package.json": "./package.json"
|
|
53
89
|
},
|
|
54
90
|
"publishConfig": {
|
|
55
91
|
"access": "public"
|
|
56
92
|
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": "vp build && vp build --config vite.vue.config.ts && vue-tsc --declaration --emitDeclarationOnly --noEmit false --outDir dist/types",
|
|
95
|
+
"dev": "vp build --watch",
|
|
96
|
+
"playground": "vp run build && vp dev --config playground/vite.config.ts",
|
|
97
|
+
"test": "vp test",
|
|
98
|
+
"check": "vp check && vue-tsc --noEmit",
|
|
99
|
+
"prepublishOnly": "vp run build",
|
|
100
|
+
"prepare": "vp config && vp run build"
|
|
101
|
+
},
|
|
57
102
|
"devDependencies": {
|
|
58
103
|
"@types/node": "^26.6.5",
|
|
59
104
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
60
105
|
"@vueuse/core": "^15.0.0",
|
|
61
|
-
"bumpp": "^
|
|
106
|
+
"bumpp": "^12.3.0",
|
|
62
107
|
"typescript": "^5.9.3",
|
|
63
|
-
"vite-plus": "
|
|
108
|
+
"vite-plus": "catalog:",
|
|
64
109
|
"vue": "^3.5.44",
|
|
65
110
|
"vue-router": "^5.4.0",
|
|
66
111
|
"vue-tsc": "^3.3.13"
|
|
@@ -77,14 +122,7 @@
|
|
|
77
122
|
"packageManager": {
|
|
78
123
|
"name": "pnpm",
|
|
79
124
|
"version": "12.9.1",
|
|
80
|
-
"onFail": "
|
|
125
|
+
"onFail": "warn"
|
|
81
126
|
}
|
|
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
127
|
}
|
|
90
|
-
}
|
|
128
|
+
}
|
package/dist/button-BxUIuMAv.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, s as o, t as s } from "./runtime-dom.esm-bundler-aqFyuQnx.js";
|
|
2
|
-
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var c = ["type", "disabled"], l = s(/* @__PURE__ */ a({
|
|
4
|
-
__name: "Button",
|
|
5
|
-
props: {
|
|
6
|
-
type: { default: "button" },
|
|
7
|
-
variant: { default: "default" },
|
|
8
|
-
size: { default: "medium" },
|
|
9
|
-
iconOnly: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: !1
|
|
12
|
-
},
|
|
13
|
-
disabled: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !1
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(a) {
|
|
19
|
-
let s = i(() => [
|
|
20
|
-
"btn",
|
|
21
|
-
`btn-${a.variant}`,
|
|
22
|
-
{
|
|
23
|
-
"btn-icon": a.iconOnly,
|
|
24
|
-
"btn-small": a.size === "small"
|
|
25
|
-
}
|
|
26
|
-
]), l = i(() => a.type === "submit" || a.type === "reset" ? a.type : "button");
|
|
27
|
-
return (i, u) => (o(), n("button", {
|
|
28
|
-
class: r(s.value),
|
|
29
|
-
type: l.value,
|
|
30
|
-
disabled: a.disabled
|
|
31
|
-
}, [t(i.$slots, "default", {}, () => [u[0] ||= e("Button", -1)])], 10, c));
|
|
32
|
-
}
|
|
33
|
-
}), { shadowRoot: !1 });
|
|
34
|
-
function u() {
|
|
35
|
-
typeof customElements < "u" && (customElements.get("ouds-button") || customElements.define("ouds-button", l));
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { u as n, l as t };
|
package/dist/button-C5MSESb5.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { computed as e, createElementBlock as t, createTextVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
|
|
2
|
-
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var s = ["type", "disabled"], c = /* @__PURE__ */ r({
|
|
4
|
-
__name: "Button",
|
|
5
|
-
props: {
|
|
6
|
-
type: { default: "button" },
|
|
7
|
-
variant: { default: "default" },
|
|
8
|
-
size: { default: "medium" },
|
|
9
|
-
iconOnly: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: !1
|
|
12
|
-
},
|
|
13
|
-
disabled: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !1
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(r) {
|
|
19
|
-
let c = e(() => [
|
|
20
|
-
"btn",
|
|
21
|
-
`btn-${r.variant}`,
|
|
22
|
-
{
|
|
23
|
-
"btn-icon": r.iconOnly,
|
|
24
|
-
"btn-small": r.size === "small"
|
|
25
|
-
}
|
|
26
|
-
]), l = e(() => r.type === "submit" || r.type === "reset" ? r.type : "button");
|
|
27
|
-
return (e, u) => (a(), t("button", {
|
|
28
|
-
class: i(c.value),
|
|
29
|
-
type: l.value,
|
|
30
|
-
disabled: r.disabled
|
|
31
|
-
}, [o(e.$slots, "default", {}, () => [u[0] ||= n("Button", -1)])], 10, s));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
//#endregion
|
|
35
|
-
export { c as t };
|