@jasonshimmy/custom-elements-runtime 0.1.5 → 0.1.7
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/dist/custom-elements-runtime.cjs.js +12 -12
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +427 -417
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +11 -11
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/dist/router.d.ts +22 -0
- package/dist/runtime/style.d.ts +6 -1
- package/package.json +1 -1
package/dist/router.d.ts
CHANGED
|
@@ -40,6 +40,28 @@ export interface Route {
|
|
|
40
40
|
*/
|
|
41
41
|
afterEnter?: (to: RouteState, from: RouteState) => void;
|
|
42
42
|
}
|
|
43
|
+
export interface RouterLinkProps {
|
|
44
|
+
to: string;
|
|
45
|
+
tag: string;
|
|
46
|
+
replace: boolean;
|
|
47
|
+
exact: boolean;
|
|
48
|
+
activeClass: string;
|
|
49
|
+
exactActiveClass: string;
|
|
50
|
+
ariaCurrentValue: string;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
external: boolean;
|
|
53
|
+
style: string;
|
|
54
|
+
}
|
|
55
|
+
export interface RouterLinkComputed {
|
|
56
|
+
current: RouteState;
|
|
57
|
+
isExactActive: boolean;
|
|
58
|
+
isActive: boolean;
|
|
59
|
+
className: string;
|
|
60
|
+
ariaCurrent: string;
|
|
61
|
+
isButton: boolean;
|
|
62
|
+
disabledAttr: string;
|
|
63
|
+
externalAttr: string;
|
|
64
|
+
}
|
|
43
65
|
export interface RouterConfig {
|
|
44
66
|
routes: Route[];
|
|
45
67
|
base?: string;
|
package/dist/runtime/style.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ type SelectorVariantMap = Record<string, (selector: string, body: string) => str
|
|
|
27
27
|
type MediaVariantMap = Record<string, string>;
|
|
28
28
|
export declare const colors: Record<string, Record<string, string>>;
|
|
29
29
|
export declare const utilityMap: CSSMap;
|
|
30
|
-
export declare const spacing = "
|
|
30
|
+
export declare const spacing = "0.25rem";
|
|
31
31
|
export declare const spacingProps: Record<string, string[]>;
|
|
32
32
|
export declare const selectorVariants: SelectorVariantMap;
|
|
33
33
|
export declare const mediaVariants: MediaVariantMap;
|
|
@@ -45,6 +45,11 @@ export declare function parseColorWithOpacity(className: string): string | null;
|
|
|
45
45
|
* - prop-[value]
|
|
46
46
|
*/
|
|
47
47
|
export declare function parseArbitrary(className: string): string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Parse arbitrary variant from class name.
|
|
50
|
+
* Supports [attr=value]:utility or foo-[bar]:utility
|
|
51
|
+
*/
|
|
52
|
+
export declare function parseArbitraryVariant(token: string): string | null;
|
|
48
53
|
export declare function escapeClassName(name: string): string;
|
|
49
54
|
export declare function extractClassesFromHTML(html: string): string[];
|
|
50
55
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jasonshimmy/custom-elements-runtime",
|
|
3
3
|
"description": "A powerful, modern, and lightweight runtime for creating reactive web components with TypeScript",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"web-components",
|