keits 0.0.1 → 0.0.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.
@@ -0,0 +1,63 @@
1
+ export declare const $a: import("./types").SvgElementFactory<SVGAElement>;
2
+ export declare const $animate: import("./types").SvgElementFactory<SVGAnimateElement>;
3
+ export declare const $animateMotion: import("./types").SvgElementFactory<SVGAnimateMotionElement>;
4
+ export declare const $animateTransform: import("./types").SvgElementFactory<SVGAnimateTransformElement>;
5
+ export declare const $circle: import("./types").SvgElementFactory<SVGCircleElement>;
6
+ export declare const $clipPath: import("./types").SvgElementFactory<SVGClipPathElement>;
7
+ export declare const $defs: import("./types").SvgElementFactory<SVGDefsElement>;
8
+ export declare const $desc: import("./types").SvgElementFactory<SVGDescElement>;
9
+ export declare const $ellipse: import("./types").SvgElementFactory<SVGEllipseElement>;
10
+ export declare const $feBlend: import("./types").SvgElementFactory<SVGFEBlendElement>;
11
+ export declare const $feColorMatrix: import("./types").SvgElementFactory<SVGFEColorMatrixElement>;
12
+ export declare const $feComponentTransfer: import("./types").SvgElementFactory<SVGFEComponentTransferElement>;
13
+ export declare const $feComposite: import("./types").SvgElementFactory<SVGFECompositeElement>;
14
+ export declare const $feConvolveMatrix: import("./types").SvgElementFactory<SVGFEConvolveMatrixElement>;
15
+ export declare const $feDiffuseLighting: import("./types").SvgElementFactory<SVGFEDiffuseLightingElement>;
16
+ export declare const $feDisplacementMap: import("./types").SvgElementFactory<SVGFEDisplacementMapElement>;
17
+ export declare const $feDistantLight: import("./types").SvgElementFactory<SVGFEDistantLightElement>;
18
+ export declare const $feDropShadow: import("./types").SvgElementFactory<SVGFEDropShadowElement>;
19
+ export declare const $feFlood: import("./types").SvgElementFactory<SVGFEFloodElement>;
20
+ export declare const $feFuncA: import("./types").SvgElementFactory<SVGFEFuncAElement>;
21
+ export declare const $feFuncB: import("./types").SvgElementFactory<SVGFEFuncBElement>;
22
+ export declare const $feFuncG: import("./types").SvgElementFactory<SVGFEFuncGElement>;
23
+ export declare const $feFuncR: import("./types").SvgElementFactory<SVGFEFuncRElement>;
24
+ export declare const $feGaussianBlur: import("./types").SvgElementFactory<SVGFEGaussianBlurElement>;
25
+ export declare const $feImage: import("./types").SvgElementFactory<SVGFEImageElement>;
26
+ export declare const $feMerge: import("./types").SvgElementFactory<SVGFEMergeElement>;
27
+ export declare const $feMergeNode: import("./types").SvgElementFactory<SVGFEMergeNodeElement>;
28
+ export declare const $feMorphology: import("./types").SvgElementFactory<SVGFEMorphologyElement>;
29
+ export declare const $feOffset: import("./types").SvgElementFactory<SVGFEOffsetElement>;
30
+ export declare const $fePointLight: import("./types").SvgElementFactory<SVGFEPointLightElement>;
31
+ export declare const $feSpecularLighting: import("./types").SvgElementFactory<SVGFESpecularLightingElement>;
32
+ export declare const $feSpotLight: import("./types").SvgElementFactory<SVGFESpotLightElement>;
33
+ export declare const $feTile: import("./types").SvgElementFactory<SVGFETileElement>;
34
+ export declare const $feTurbulence: import("./types").SvgElementFactory<SVGFETurbulenceElement>;
35
+ export declare const $filter: import("./types").SvgElementFactory<SVGFilterElement>;
36
+ export declare const $foreignObject: import("./types").SvgElementFactory<SVGForeignObjectElement>;
37
+ export declare const $g: import("./types").SvgElementFactory<SVGGElement>;
38
+ export declare const $image: import("./types").SvgElementFactory<SVGImageElement>;
39
+ export declare const $line: import("./types").SvgElementFactory<SVGLineElement>;
40
+ export declare const $linearGradient: import("./types").SvgElementFactory<SVGLinearGradientElement>;
41
+ export declare const $marker: import("./types").SvgElementFactory<SVGMarkerElement>;
42
+ export declare const $mask: import("./types").SvgElementFactory<SVGMaskElement>;
43
+ export declare const $metadata: import("./types").SvgElementFactory<SVGMetadataElement>;
44
+ export declare const $mpath: import("./types").SvgElementFactory<SVGMPathElement>;
45
+ export declare const $path: import("./types").SvgElementFactory<SVGPathElement>;
46
+ export declare const $pattern: import("./types").SvgElementFactory<SVGPatternElement>;
47
+ export declare const $polygon: import("./types").SvgElementFactory<SVGPolygonElement>;
48
+ export declare const $polyline: import("./types").SvgElementFactory<SVGPolylineElement>;
49
+ export declare const $radialGradient: import("./types").SvgElementFactory<SVGRadialGradientElement>;
50
+ export declare const $rect: import("./types").SvgElementFactory<SVGRectElement>;
51
+ export declare const $script: import("./types").SvgElementFactory<SVGScriptElement>;
52
+ export declare const $set: import("./types").SvgElementFactory<SVGSetElement>;
53
+ export declare const $stop: import("./types").SvgElementFactory<SVGStopElement>;
54
+ export declare const $style: import("./types").SvgElementFactory<SVGStyleElement>;
55
+ export declare const $svg: import("./types").SvgElementFactory<SVGSVGElement>;
56
+ export declare const $switch: import("./types").SvgElementFactory<SVGSwitchElement>;
57
+ export declare const $symbol: import("./types").SvgElementFactory<SVGSymbolElement>;
58
+ export declare const $text: import("./types").SvgElementFactory<SVGTextElement>;
59
+ export declare const $textPath: import("./types").SvgElementFactory<SVGTextPathElement>;
60
+ export declare const $title: import("./types").SvgElementFactory<SVGTitleElement>;
61
+ export declare const $tspan: import("./types").SvgElementFactory<SVGTSpanElement>;
62
+ export declare const $use: import("./types").SvgElementFactory<SVGUseElement>;
63
+ export declare const $view: import("./types").SvgElementFactory<SVGViewElement>;
@@ -0,0 +1,13 @@
1
+ import type { AttributeProps, AttributeValue, Child, ClassValue, EventProps, MaybeAccessor, StyleValue } from "../dom/types";
2
+ export type SvgAttributeName = "id" | "href" | "lang" | "tabindex" | "role" | "focusable" | "viewBox" | "preserveAspectRatio" | "xmlns" | "width" | "height" | "x" | "y" | "x1" | "y1" | "x2" | "y2" | "cx" | "cy" | "r" | "rx" | "ry" | "fx" | "fy" | "dx" | "dy" | "d" | "points" | "pathLength" | "transform" | "rotate" | "fill" | "fill-opacity" | "fill-rule" | "stroke" | "stroke-width" | "stroke-linecap" | "stroke-linejoin" | "stroke-dasharray" | "stroke-dashoffset" | "stroke-opacity" | "stroke-miterlimit" | "opacity" | "color" | "display" | "visibility" | "overflow" | "pointer-events" | "cursor" | "clip-path" | "clip-rule" | "clipPathUnits" | "mask" | "maskUnits" | "maskContentUnits" | "filter" | "filterUnits" | "primitiveUnits" | "vector-effect" | "shape-rendering" | "paint-order" | "marker-start" | "marker-mid" | "marker-end" | "markerWidth" | "markerHeight" | "markerUnits" | "orient" | "refX" | "refY" | "offset" | "stop-color" | "stop-opacity" | "gradientUnits" | "gradientTransform" | "spreadMethod" | "patternUnits" | "patternContentUnits" | "patternTransform" | "text-anchor" | "dominant-baseline" | "font-family" | "font-size" | "font-weight" | "textLength" | "lengthAdjust" | "in" | "in2" | "result" | "stdDeviation" | "mode" | "type" | "values" | "operator" | "attributeName" | "from" | "to" | "dur" | "begin" | "repeatCount" | "keyTimes" | "calcMode";
3
+ export type SvgProps<E extends SVGElement> = AttributeProps & EventProps<E> & {
4
+ [K in SvgAttributeName]?: MaybeAccessor<AttributeValue>;
5
+ } & {
6
+ class?: ClassValue | (() => ClassValue);
7
+ style?: StyleValue | (() => StyleValue);
8
+ ref?: (element: E) => void;
9
+ };
10
+ export interface SvgElementFactory<E extends SVGElement> {
11
+ (props?: SvgProps<E> | null, children?: Child): E;
12
+ (children: Child): E;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keits",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Fine-grained reactive TypeScript framework. Real DOM, no virtual DOM, zero dependencies.",
5
5
  "keywords": ["reactive", "signals", "framework", "typescript", "fine-grained", "no-vdom"],
6
6
  "author": "Michael Ranni",
@@ -15,6 +15,12 @@
15
15
  "types": "./dist/types/index.d.ts",
16
16
  "development": "./dist/dev/index.js",
17
17
  "default": "./dist/prod/index.js"
18
+ },
19
+ "./svg": {
20
+ "@keits/source": "./src/svg/index.ts",
21
+ "types": "./dist/types/svg/index.d.ts",
22
+ "development": "./dist/dev/svg.js",
23
+ "default": "./dist/prod/svg.js"
18
24
  }
19
25
  },
20
26
  "scripts": {
@@ -23,7 +29,9 @@
23
29
  "prepublishOnly": "cd ../.. && npm run check"
24
30
  },
25
31
  "size-budget": {
26
- "dist/prod/index.js": 2816,
27
- "size/basic.js": 1792
32
+ "dist/prod/index.js": 5376,
33
+ "size/basic.js": 1792,
34
+ "size/dom-basic.js": 3072,
35
+ "size/svg-icon.js": 3328
28
36
  }
29
37
  }