@typlog/ui 0.14.0 → 0.15.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/addons.css +214 -92
- package/addons.d.ts +192 -35
- package/addons.js +1808 -480
- package/base.css +130 -0
- package/charts.css +161 -0
- package/charts.d.ts +233 -0
- package/charts.js +382 -0
- package/components.css +398 -0
- package/components.d.ts +1358 -886
- package/components.js +4904 -4376
- package/package.json +21 -2
- package/tailwind.css +1 -0
- package/util-lkbchXvM.js +42 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typlog/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Themed components for Reka UI with Radix colors.",
|
|
@@ -27,13 +27,32 @@
|
|
|
27
27
|
"style": "./addons.css",
|
|
28
28
|
"import": "./addons.js"
|
|
29
29
|
},
|
|
30
|
+
"./charts": {
|
|
31
|
+
"types": "./charts.d.ts",
|
|
32
|
+
"style": "./charts.css",
|
|
33
|
+
"import": "./charts.js"
|
|
34
|
+
},
|
|
30
35
|
"./base.css": "./base.css",
|
|
31
36
|
"./components.css": "./components.css",
|
|
32
37
|
"./tailwind.css": "./tailwind.css"
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
35
40
|
"@iconify/vue": "^5.0.0",
|
|
41
|
+
"@tanstack/vue-virtual": "^3.13.36",
|
|
42
|
+
"@vueuse/core": "^14.4.0",
|
|
36
43
|
"reka-ui": "^2.4.0",
|
|
37
44
|
"vue": "^3.5.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@unovis/ts": "^1.6.7",
|
|
48
|
+
"@unovis/vue": "^1.6.7"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"@unovis/ts": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@unovis/vue": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
38
57
|
}
|
|
39
|
-
}
|
|
58
|
+
}
|
package/tailwind.css
CHANGED
package/util-lkbchXvM.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import { useEmitAsProps, useForwardProps } from "reka-ui";
|
|
3
|
+
//#region src/components/util.ts
|
|
4
|
+
function useForwardPropsWithout(props, exclude) {
|
|
5
|
+
const parsedProps = useForwardProps(props);
|
|
6
|
+
return computed(() => ({ ..._excludeProps(parsedProps.value, exclude) }));
|
|
7
|
+
}
|
|
8
|
+
function useForwardPropsEmitsWithout(props, emit, exclude) {
|
|
9
|
+
const parsedProps = useForwardProps(props);
|
|
10
|
+
const emitsAsProps = useEmitAsProps(emit);
|
|
11
|
+
return computed(() => ({
|
|
12
|
+
..._excludeProps(parsedProps.value, exclude),
|
|
13
|
+
...emitsAsProps
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
var buildPropsClass = (props, keys) => {
|
|
17
|
+
return computed(() => {
|
|
18
|
+
const rv = [];
|
|
19
|
+
keys.forEach((key) => {
|
|
20
|
+
const value = props[key];
|
|
21
|
+
if (key === "class") rv.push(value);
|
|
22
|
+
if (value === true) rv.push(`r-${kebabize(key)}`);
|
|
23
|
+
else if (value) rv.push(`r-${kebabize(key)}-${value}`);
|
|
24
|
+
});
|
|
25
|
+
return rv;
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
function _excludeProps(props, exclude) {
|
|
29
|
+
const rv = {};
|
|
30
|
+
Object.keys(props).forEach((k) => {
|
|
31
|
+
if (exclude.indexOf(k) === -1) rv[k] = props[k];
|
|
32
|
+
});
|
|
33
|
+
return rv;
|
|
34
|
+
}
|
|
35
|
+
function kebabize(str) {
|
|
36
|
+
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, _kebabReplace);
|
|
37
|
+
}
|
|
38
|
+
function _kebabReplace(str, ofs) {
|
|
39
|
+
return (ofs ? "-" : "") + str.toLowerCase();
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { useForwardPropsEmitsWithout as n, useForwardPropsWithout as r, buildPropsClass as t };
|