@jasonshimmy/custom-elements-runtime 0.1.1 → 0.1.2
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 +31 -97
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +540 -520
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +31 -97
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/style-utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/runtime.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface ComponentConfig<S extends object, C extends object = {}, P exte
|
|
|
31
31
|
[K in keyof C]: (context: ComponentContext<S, C, P, T>) => C[K];
|
|
32
32
|
};
|
|
33
33
|
props?: Record<string, {
|
|
34
|
-
type: StringConstructor | NumberConstructor | BooleanConstructor;
|
|
34
|
+
type: StringConstructor | NumberConstructor | BooleanConstructor | FunctionConstructor;
|
|
35
35
|
default?: string | number | boolean;
|
|
36
36
|
}>;
|
|
37
37
|
watch?: WatchConfig<ComponentContext<S, C, P, T>>;
|
package/dist/style-utils.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare function sanitizeCSS(css: string): string;
|
|
|
7
7
|
/**
|
|
8
8
|
* Minimal Shadow DOM reset
|
|
9
9
|
*/
|
|
10
|
-
export declare const baseReset = "\n :host, *, ::before, ::after {\n box-sizing: border-box;\n border
|
|
10
|
+
export declare const baseReset = "\n :host, *, ::before, ::after {\n all: isolate;\n box-sizing: border-box;\n border: 0 solid currentColor;\n margin: 0;\n padding: 0;\n font: inherit;\n vertical-align: baseline;\n background: transparent;\n color: inherit;\n -webkit-tap-highlight-color: transparent;\n }\n :host {\n display: contents;\n font: 16px/1.5 ui-sans-serif, system-ui, sans-serif;\n -webkit-text-size-adjust: 100%;\n text-size-adjust: 100%;\n }\n button, input, select, textarea {\n background: transparent;\n outline: none;\n }\n textarea { resize: vertical }\n progress { vertical-align: baseline }\n button, textarea { overflow: visible }\n img, svg, video, canvas, audio, iframe, embed, object {\n display: block;\n max-width: 100%;\n height: auto;\n }\n svg { fill: currentColor; stroke: none }\n a { text-decoration: inherit; cursor: pointer }\n button, [type=button], [type=reset], [type=submit] {\n cursor: pointer;\n appearance: button;\n background: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ::-webkit-input-placeholder, ::placeholder {\n color: inherit; opacity: .5;\n }\n *:focus {\n outline: 2px solid var(--color-blue-500, #3b82f6);\n outline-offset: 2px;\n }\n ol, ul { list-style: none }\n table { border-collapse: collapse }\n sub, sup {\n font-size: .75em;\n line-height: 0;\n position: relative;\n }\n sub { bottom: -.25em }\n sup { top: -.5em }\n [disabled], [aria-disabled=true] { cursor: not-allowed }\n [hidden] { display: none }\n";
|
|
11
11
|
export declare function jitCSS(html: string): string;
|
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.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"web-components",
|