monochrome 0.2.0 → 0.4.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.
@@ -0,0 +1,87 @@
1
+ import type { PropType } from "vue";
2
+ export declare const Tabs: {
3
+ Root: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ defaultValue: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ orientation: {
9
+ type: () => "horizontal" | "vertical";
10
+ default: string;
11
+ };
12
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ defaultValue: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ orientation: {
20
+ type: () => "horizontal" | "vertical";
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{}>, {
24
+ orientation: "vertical" | "horizontal";
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ List: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
+ Tab: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
30
+ value: {
31
+ type: StringConstructor;
32
+ required: true;
33
+ };
34
+ selected: {
35
+ type: PropType<boolean | null>;
36
+ default: null;
37
+ };
38
+ disabled: BooleanConstructor;
39
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ value: {
43
+ type: StringConstructor;
44
+ required: true;
45
+ };
46
+ selected: {
47
+ type: PropType<boolean | null>;
48
+ default: null;
49
+ };
50
+ disabled: BooleanConstructor;
51
+ }>> & Readonly<{}>, {
52
+ disabled: boolean;
53
+ selected: boolean | null;
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
+ Panel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
56
+ value: {
57
+ type: StringConstructor;
58
+ required: true;
59
+ };
60
+ selected: {
61
+ type: PropType<boolean | null>;
62
+ default: null;
63
+ };
64
+ focusable: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
69
+ [key: string]: any;
70
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
71
+ value: {
72
+ type: StringConstructor;
73
+ required: true;
74
+ };
75
+ selected: {
76
+ type: PropType<boolean | null>;
77
+ default: null;
78
+ };
79
+ focusable: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ }>> & Readonly<{}>, {
84
+ selected: boolean | null;
85
+ focusable: boolean;
86
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
87
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "monochrome",
3
- "version": "0.2.0",
4
- "description": "Accessible UI component library. Best-in-class performance. HTML-first, React supported.",
3
+ "version": "0.4.0",
4
+ "description": "Accessible UI component library. Best-in-class performance. HTML-first, React and Vue supported.",
5
5
  "author": "Colin van Eenige",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -26,6 +26,7 @@
26
26
  "keyboard-navigation",
27
27
  "html",
28
28
  "react",
29
+ "vue",
29
30
  "typescript",
30
31
  "accordion",
31
32
  "collapsible",
@@ -35,29 +36,28 @@
35
36
  "type": "module",
36
37
  "sideEffects": [
37
38
  "./dist/index.js",
38
- "./src/index.ts"
39
+ "./dist/router.js"
39
40
  ],
40
41
  "exports": {
41
42
  ".": {
42
- "types": "./src/index.ts",
43
+ "types": "./dist/index.d.ts",
43
44
  "default": "./dist/index.js"
44
45
  },
45
- "./src": "./src/index.ts",
46
+ "./router": {
47
+ "types": "./dist/router.d.ts",
48
+ "default": "./dist/router.js"
49
+ },
46
50
  "./react": {
47
- "types": "./src/react/index.ts",
51
+ "types": "./dist/react/index.d.ts",
48
52
  "default": "./dist/react/index.js"
49
- }
50
- },
51
- "typesVersions": {
52
- "*": {
53
- "react": [
54
- "./src/react/index.ts"
55
- ]
53
+ },
54
+ "./vue": {
55
+ "types": "./dist/vue/index.d.ts",
56
+ "default": "./dist/vue/index.js"
56
57
  }
57
58
  },
58
59
  "files": [
59
- "dist",
60
- "src"
60
+ "dist"
61
61
  ],
62
62
  "scripts": {
63
63
  "build": "NODE_ENV=production bun build.ts",
@@ -69,7 +69,8 @@
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": ">=18",
72
- "react-dom": ">=18"
72
+ "react-dom": ">=18",
73
+ "vue": ">=3.5"
73
74
  },
74
75
  "peerDependenciesMeta": {
75
76
  "react": {
@@ -77,6 +78,9 @@
77
78
  },
78
79
  "react-dom": {
79
80
  "optional": true
81
+ },
82
+ "vue": {
83
+ "optional": true
80
84
  }
81
85
  },
82
86
  "devDependencies": {
@@ -85,17 +89,22 @@
85
89
  "@types/bun": "1.3.9",
86
90
  "@types/react": "19.2.14",
87
91
  "@types/react-dom": "19.2.3",
92
+ "@vue/compiler-sfc": "3.5.29",
88
93
  "react": "19.2.4",
89
- "react-dom": "19.2.4"
94
+ "react-dom": "19.2.4",
95
+ "typescript": "^5.9.3",
96
+ "vue": "3.5.29"
90
97
  },
91
98
  "versionMeta": {
92
- "gzipSize": 2219,
99
+ "gzipSize": 2236,
100
+ "routerGzipSize": 1052,
93
101
  "tests": {
94
- "total": 350,
95
- "collapsible": 41,
96
- "accordion": 65,
97
- "menu": 175,
98
- "tabs": 69
102
+ "total": 385,
103
+ "collapsible": 42,
104
+ "router": 28,
105
+ "accordion": 66,
106
+ "menu": 179,
107
+ "tabs": 70
99
108
  }
100
109
  }
101
110
  }