@mpen/jsxhtml 0.2.2 → 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.
Files changed (169) hide show
  1. package/dist/classnames.d.ts +11 -0
  2. package/dist/classnames.test.d.ts +1 -0
  3. package/dist/css-escape.d.ts +25 -0
  4. package/dist/custom/C.d.ts +6 -0
  5. package/dist/custom/Checkbox.d.ts +5 -0
  6. package/dist/custom/ColorInput.d.ts +5 -0
  7. package/dist/custom/DateInput.d.ts +5 -0
  8. package/dist/custom/DocType.d.ts +6 -0
  9. package/dist/custom/EmailInput.d.ts +5 -0
  10. package/dist/custom/Empty.d.ts +4 -0
  11. package/dist/custom/FileInput.d.ts +5 -0
  12. package/dist/custom/HtmlDocument.d.ts +5 -0
  13. package/dist/custom/NumberInput.d.ts +5 -0
  14. package/dist/custom/PasswordInput.d.ts +5 -0
  15. package/dist/custom/RadioButton.d.ts +5 -0
  16. package/dist/custom/RangeInput.d.ts +5 -0
  17. package/dist/custom/RawHtml.d.ts +6 -0
  18. package/dist/custom/SearchInput.d.ts +5 -0
  19. package/dist/custom/TelephoneInput.d.ts +5 -0
  20. package/dist/custom/TextInput.d.ts +5 -0
  21. package/dist/custom/TimeInput.d.ts +5 -0
  22. package/dist/custom/UrlInput.d.ts +5 -0
  23. package/dist/custom/WeekInput.d.ts +5 -0
  24. package/dist/custom/index.d.ts +20 -0
  25. package/dist/custom-components.d.ts +1 -23
  26. package/dist/htmlspec/IntrinsicElements.d.ts +568 -147
  27. package/dist/htmlspec/attributes/AriaAttributes.d.ts +11 -0
  28. package/dist/htmlspec/attributes/ElementAttributes.d.ts +28 -0
  29. package/dist/htmlspec/attributes/EventHandlers.d.ts +102 -0
  30. package/dist/htmlspec/attributes/GlobalAttributes.d.ts +11 -0
  31. package/dist/htmlspec/{GlobalAttributes.d.ts → attributes/StandardGlobalAttributes.d.ts} +26 -37
  32. package/dist/htmlspec/attributes/index.d.ts +7 -0
  33. package/dist/htmlspec/elements/a.d.ts +71 -0
  34. package/dist/htmlspec/elements/abbr.d.ts +4 -0
  35. package/dist/htmlspec/elements/address.d.ts +4 -0
  36. package/dist/htmlspec/elements/area.d.ts +66 -0
  37. package/dist/htmlspec/elements/article.d.ts +4 -0
  38. package/dist/htmlspec/elements/aside.d.ts +4 -0
  39. package/dist/htmlspec/elements/audio.d.ts +45 -0
  40. package/dist/htmlspec/elements/b.d.ts +4 -0
  41. package/dist/htmlspec/elements/base.d.ts +18 -0
  42. package/dist/htmlspec/elements/bdi.d.ts +4 -0
  43. package/dist/htmlspec/elements/bdo.d.ts +4 -0
  44. package/dist/htmlspec/elements/blockquote.d.ts +8 -0
  45. package/dist/htmlspec/elements/body.d.ts +92 -0
  46. package/dist/htmlspec/elements/br.d.ts +4 -0
  47. package/dist/htmlspec/elements/button.d.ts +103 -0
  48. package/dist/htmlspec/elements/canvas.d.ts +13 -0
  49. package/dist/htmlspec/elements/caption.d.ts +4 -0
  50. package/dist/htmlspec/elements/cite.d.ts +4 -0
  51. package/dist/htmlspec/elements/code.d.ts +4 -0
  52. package/dist/htmlspec/elements/col.d.ts +9 -0
  53. package/dist/htmlspec/elements/colgroup.d.ts +9 -0
  54. package/dist/htmlspec/elements/data.d.ts +9 -0
  55. package/dist/htmlspec/elements/datalist.d.ts +4 -0
  56. package/dist/htmlspec/elements/dd.d.ts +4 -0
  57. package/dist/htmlspec/elements/del.d.ts +12 -0
  58. package/dist/htmlspec/elements/details.d.ts +12 -0
  59. package/dist/htmlspec/elements/dfn.d.ts +4 -0
  60. package/dist/htmlspec/elements/dialog.d.ts +17 -0
  61. package/dist/htmlspec/elements/div.d.ts +4 -0
  62. package/dist/htmlspec/elements/dl.d.ts +4 -0
  63. package/dist/htmlspec/elements/dt.d.ts +4 -0
  64. package/dist/htmlspec/elements/element-types.d.ts +1 -0
  65. package/dist/htmlspec/elements/em.d.ts +4 -0
  66. package/dist/htmlspec/elements/embed.d.ts +21 -0
  67. package/dist/htmlspec/elements/fencedframe.d.ts +23 -0
  68. package/dist/htmlspec/elements/fieldset.d.ts +16 -0
  69. package/dist/htmlspec/elements/figcaption.d.ts +4 -0
  70. package/dist/htmlspec/elements/figure.d.ts +4 -0
  71. package/dist/htmlspec/elements/footer.d.ts +4 -0
  72. package/dist/htmlspec/elements/form.d.ts +61 -0
  73. package/dist/htmlspec/elements/h1.d.ts +4 -0
  74. package/dist/htmlspec/elements/h2.d.ts +4 -0
  75. package/dist/htmlspec/elements/h3.d.ts +4 -0
  76. package/dist/htmlspec/elements/h4.d.ts +4 -0
  77. package/dist/htmlspec/elements/h5.d.ts +4 -0
  78. package/dist/htmlspec/elements/h6.d.ts +4 -0
  79. package/dist/htmlspec/elements/head.d.ts +4 -0
  80. package/dist/htmlspec/elements/header.d.ts +4 -0
  81. package/dist/htmlspec/elements/hgroup.d.ts +4 -0
  82. package/dist/htmlspec/elements/hr.d.ts +4 -0
  83. package/dist/htmlspec/elements/html.d.ts +8 -0
  84. package/dist/htmlspec/elements/i.d.ts +4 -0
  85. package/dist/htmlspec/elements/iframe.d.ts +82 -0
  86. package/dist/htmlspec/elements/img.d.ts +90 -0
  87. package/dist/htmlspec/elements/index.d.ts +114 -0
  88. package/dist/htmlspec/elements/input.d.ts +189 -0
  89. package/dist/htmlspec/elements/ins.d.ts +12 -0
  90. package/dist/htmlspec/elements/kbd.d.ts +4 -0
  91. package/dist/htmlspec/elements/label.d.ts +8 -0
  92. package/dist/htmlspec/elements/legend.d.ts +4 -0
  93. package/dist/htmlspec/elements/li.d.ts +19 -0
  94. package/dist/htmlspec/elements/link.d.ts +77 -0
  95. package/dist/htmlspec/elements/main.d.ts +4 -0
  96. package/dist/htmlspec/elements/map.d.ts +8 -0
  97. package/dist/htmlspec/elements/mark.d.ts +4 -0
  98. package/dist/htmlspec/elements/menu.d.ts +4 -0
  99. package/dist/htmlspec/elements/meta.d.ts +24 -0
  100. package/dist/htmlspec/elements/meter.d.ts +29 -0
  101. package/dist/htmlspec/elements/nav.d.ts +4 -0
  102. package/dist/htmlspec/elements/noscript.d.ts +4 -0
  103. package/dist/htmlspec/elements/object.d.ts +29 -0
  104. package/dist/htmlspec/elements/ol.d.ts +24 -0
  105. package/dist/htmlspec/elements/optgroup.d.ts +12 -0
  106. package/dist/htmlspec/elements/option.d.ts +21 -0
  107. package/dist/htmlspec/elements/output.d.ts +16 -0
  108. package/dist/htmlspec/elements/p.d.ts +4 -0
  109. package/dist/htmlspec/elements/picture.d.ts +4 -0
  110. package/dist/htmlspec/elements/pre.d.ts +4 -0
  111. package/dist/htmlspec/elements/progress.d.ts +13 -0
  112. package/dist/htmlspec/elements/q.d.ts +8 -0
  113. package/dist/htmlspec/elements/rp.d.ts +4 -0
  114. package/dist/htmlspec/elements/rt.d.ts +4 -0
  115. package/dist/htmlspec/elements/ruby.d.ts +4 -0
  116. package/dist/htmlspec/elements/s.d.ts +4 -0
  117. package/dist/htmlspec/elements/samp.d.ts +4 -0
  118. package/dist/htmlspec/elements/script.d.ts +57 -0
  119. package/dist/htmlspec/elements/search.d.ts +4 -0
  120. package/dist/htmlspec/elements/section.d.ts +4 -0
  121. package/dist/htmlspec/elements/select.d.ts +37 -0
  122. package/dist/htmlspec/elements/selectedcontent.d.ts +7 -0
  123. package/dist/htmlspec/elements/slot.d.ts +8 -0
  124. package/dist/htmlspec/elements/small.d.ts +4 -0
  125. package/dist/htmlspec/elements/source.d.ts +33 -0
  126. package/dist/htmlspec/elements/span.d.ts +4 -0
  127. package/dist/htmlspec/elements/strong.d.ts +4 -0
  128. package/dist/htmlspec/elements/style.d.ts +21 -0
  129. package/dist/htmlspec/elements/sub.d.ts +4 -0
  130. package/dist/htmlspec/elements/summary.d.ts +4 -0
  131. package/dist/htmlspec/elements/sup.d.ts +4 -0
  132. package/dist/htmlspec/elements/table.d.ts +4 -0
  133. package/dist/htmlspec/elements/tbody.d.ts +4 -0
  134. package/dist/htmlspec/elements/td.d.ts +17 -0
  135. package/dist/htmlspec/elements/template.d.ts +29 -0
  136. package/dist/htmlspec/elements/textarea.d.ts +66 -0
  137. package/dist/htmlspec/elements/tfoot.d.ts +4 -0
  138. package/dist/htmlspec/elements/th.d.ts +31 -0
  139. package/dist/htmlspec/elements/thead.d.ts +4 -0
  140. package/dist/htmlspec/elements/time.d.ts +8 -0
  141. package/dist/htmlspec/elements/title.d.ts +4 -0
  142. package/dist/htmlspec/elements/tr.d.ts +4 -0
  143. package/dist/htmlspec/elements/track.d.ts +31 -0
  144. package/dist/htmlspec/elements/u.d.ts +4 -0
  145. package/dist/htmlspec/elements/ul.d.ts +12 -0
  146. package/dist/htmlspec/elements/var.d.ts +4 -0
  147. package/dist/htmlspec/elements/video.d.ts +66 -0
  148. package/dist/htmlspec/elements/wbr.d.ts +4 -0
  149. package/dist/index.cjs +144 -7
  150. package/dist/index.d.ts +1 -0
  151. package/dist/index.mjs +114 -9
  152. package/dist/internal/dev.d.ts +1 -0
  153. package/dist/internal/kitchen-sink-dev.d.ts +7 -0
  154. package/dist/internal/kitchen-sink.d.ts +2 -0
  155. package/dist/internal/log.d.ts +2 -0
  156. package/dist/internal/type-assert.d.ts +39 -0
  157. package/dist/jsx-dev-runtime.cjs +3 -2
  158. package/dist/jsx-dev-runtime.mjs +2 -3
  159. package/dist/{jsx-runtime-DpEMYmD9.js → jsx-runtime-BQPDXeiv.js} +675 -32
  160. package/dist/{jsx-runtime-CsQM2fQb.js → jsx-runtime-DlHYwToA.js} +672 -33
  161. package/dist/jsx-runtime.cjs +3 -1
  162. package/dist/jsx-runtime.mjs +1 -1
  163. package/dist/jsx-types.d.ts +6 -24
  164. package/dist/jsx.d.ts +3 -2
  165. package/dist/jsx.test.d.ts +1 -0
  166. package/dist/template-strings.d.ts +12 -0
  167. package/dist/template-strings.test.d.ts +6 -0
  168. package/package.json +93 -82
  169. package/dist/htmlspec/AnchorElement.d.ts +0 -83
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var jsxRuntime = require("./jsx-runtime-DpEMYmD9.js");
3
+ var jsxRuntime = require("./jsx-runtime-BQPDXeiv.js");
4
4
 
5
5
  exports.Fragment = jsxRuntime.Fragment;
6
6
 
7
+ exports.JSX = jsxRuntime.JSX;
8
+
7
9
  exports.jsx = jsxRuntime.jsx;
8
10
 
9
11
  exports.jsxs = jsxRuntime.jsxs;
@@ -1 +1 @@
1
- export { F as Fragment, b as jsx, j as jsxs } from "./jsx-runtime-CsQM2fQb.js";
1
+ export { F as Fragment, m as JSX, j as jsx, a as jsxs } from "./jsx-runtime-DlHYwToA.js";
@@ -1,34 +1,16 @@
1
1
  import type { JsxNode } from './jsx-node';
2
- import type { AllGlobalAttributes } from './htmlspec/GlobalAttributes';
3
- import type { Override } from './util-types';
4
- export interface Stringable {
5
- toString(): string;
6
- }
2
+ import type { AnyAttributes, AttrArr, AttrKvPair, AttrObj, AttributeValue, Attributes, ClassNames, CommonAttributes, JsxChildren, JsxRenderable, SpecialAttributes, Stringable, StyleObject } from './htmlspec/attributes/ElementAttributes';
3
+ export type { Stringable };
7
4
  export type PlainObject = Record<PropertyKey, unknown>;
8
- export type ClassNames = import('classcat').Class;
9
- export type StyleObject = import('csstype').Properties | import('csstype').PropertiesHyphen;
10
- export type AttributeValue = Stringable | StyleObject | ClassNames;
11
- export type AttrKvPair = [name: string, value: AttributeValue];
12
- export type AttrArr = AttrKvPair[];
13
- export type AttrObj = Record<string, AttributeValue>;
14
- export type Attributes = AttrObj | AttrArr;
5
+ export type { ClassNames, StyleObject, AttributeValue, AttrKvPair, AttrArr, AttrObj, Attributes };
15
6
  export type UnkFn = (...args: unknown[]) => unknown;
16
7
  export type AnyFn = (...args: any[]) => any;
17
8
  export type HtmlSafe = {
18
9
  __html: string;
19
10
  };
20
- export type JsxRenderable = any;
21
- export type JsxChildren = JsxRenderable | Iterable<JsxRenderable>;
22
- export type SpecialProps = {
23
- children?: JsxChildren;
24
- style?: StyleObject | string;
25
- /**
26
- * CSS class.
27
- */
28
- class?: ClassNames;
29
- };
30
- export type CommonProps = Override<AllGlobalAttributes, SpecialProps>;
31
- export type AnyAttributes = Override<AttrObj, CommonProps>;
11
+ export type { JsxRenderable, JsxChildren };
12
+ export type { SpecialAttributes };
13
+ export type { CommonAttributes, AnyAttributes };
32
14
  export type JsxComponent<P = AnyAttributes> = ((props: P) => JsxNode) & {
33
15
  displayName?: string;
34
16
  name?: string;
package/dist/jsx.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference no-default-lib="true"/>
2
- import { JsxNode } from './jsx-node';
3
- import * as instrinsic from './htmlspec/IntrinsicElements';
2
+ import type { JsxNode } from './jsx-node';
3
+ import type * as instrinsic from './htmlspec/IntrinsicElements';
4
4
  export type ComponentType<P = {}> = FunctionComponent<P>;
5
5
  export type JsxChild = string | number | boolean | null | undefined | JsxNode | JsxNode[];
6
6
  export interface FunctionComponent<P = {}> {
@@ -31,3 +31,4 @@ export declare namespace JSX {
31
31
  interface IntrinsicElements extends instrinsic.IntrinsicElements {
32
32
  }
33
33
  }
34
+ export declare const JSX: {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare class JsFrag {
2
+ private readonly str;
3
+ constructor(str: string);
4
+ toString(): string;
5
+ }
6
+ export declare function js(strings: TemplateStringsArray, ...values: any[]): JsFrag;
7
+ export declare class CssFrag {
8
+ private readonly str;
9
+ constructor(str: string);
10
+ toString(): string;
11
+ }
12
+ export declare function css(strings: TemplateStringsArray, ...values: any[]): CssFrag;
@@ -0,0 +1,6 @@
1
+ declare module 'bun:test' {
2
+ interface Matchers<T = unknown> {
3
+ toStrEq(expected: string): void;
4
+ }
5
+ }
6
+ export {};
package/package.json CHANGED
@@ -1,86 +1,97 @@
1
1
  {
2
- "name": "@mpen/jsxhtml",
3
- "version": "0.2.2",
4
- "packageManager": "bun@1.2.9",
5
- "exports": {
6
- ".": {
7
- "import": "./dist/index.mjs",
8
- "require": "./dist/index.cjs",
9
- "types": "./dist/index.d.ts"
2
+ "name": "@mpen/jsxhtml",
3
+ "version": "0.4.0",
4
+ "packageManager": "bun@1.3.7",
5
+ "exports": {
6
+ ".": {
7
+ "import": "./dist/index.mjs",
8
+ "require": "./dist/index.cjs",
9
+ "types": "./dist/index.d.ts"
10
+ },
11
+ "./jsx-runtime": {
12
+ "import": "./dist/jsx-runtime.mjs",
13
+ "require": "./dist/jsx-runtime.cjs",
14
+ "types": "./dist/jsx-runtime.d.ts"
15
+ },
16
+ "./jsx-dev-runtime": {
17
+ "import": "./dist/jsx-dev-runtime.mjs",
18
+ "require": "./dist/jsx-dev-runtime.cjs",
19
+ "types": "./dist/jsx-dev-runtime.d.ts"
20
+ }
10
21
  },
11
- "./jsx-runtime": {
12
- "import": "./dist/jsx-runtime.mjs",
13
- "require": "./dist/jsx-runtime.cjs",
14
- "types": "./dist/jsx-runtime.d.ts"
22
+ "type": "module",
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "private": false,
27
+ "sideEffects": false,
28
+ "author": {
29
+ "name": "Mark Penner",
30
+ "email": "npm@mpen.ca",
31
+ "url": "https://github.com/mnpenner"
15
32
  },
16
- "./jsx-dev-runtime": {
17
- "import": "./dist/jsx-dev-runtime.mjs",
18
- "require": "./dist/jsx-dev-runtime.cjs",
19
- "types": "./dist/jsx-dev-runtime.d.ts"
20
- }
21
- },
22
- "type": "module",
23
- "files": [
24
- "dist"
25
- ],
26
- "private": false,
27
- "sideEffects": false,
28
- "author": {
29
- "name": "Mark Penner",
30
- "email": "npm@mpen.ca",
31
- "url": "https://github.com/mnpenner"
32
- },
33
- "keywords": [
34
- "jsx",
35
- "html",
36
- "render",
37
- "server-side",
38
- "elysia"
39
- ],
40
- "scripts": {
41
- "dev:build": "rollup -cw",
42
- "_dev:serve": "serve -l tcp://0.0.0.0:8080",
43
- "dev": "run-p \"dev:**\"",
44
- "dev:serve": "bun run --hot src/dev.tsx",
45
- "test": "NODE_ENV=production bun test",
46
- "bundle:clean": "rm -rf dist/",
47
- "bundle:build": "NODE_ENV=production rollup -c",
48
- "bundle": "run-s bundle:clean bundle:build",
49
- "commit": "VER=$(jq -r '.version' package.json) && hg ci -m \"Commit v$VER\" && hg tag \"v$VER\"",
50
- "bumpver": "npm version patch",
51
- "release": "run-s test bundle bumpver commit && npm publish --access=public && hg pushall",
52
- "lint": "sh -c 'eslint --quiet --fix --fix-type problem,suggestion,layout,directive -- \"${@:-.}\"' --"
53
- },
54
- "devDependencies": {
55
- "@mpen/is-type": "^0.1.15",
56
- "@rollup/plugin-commonjs": "^28.0.3",
57
- "@rollup/plugin-node-resolve": "^16.0.1",
58
- "@rollup/plugin-replace": "^5.0.7",
59
- "@rollup/plugin-terser": "^0.4.4",
60
- "@rollup/plugin-typescript": "^11.1.6",
61
- "@types/eslint": "^8.56.12",
62
- "@typescript-eslint/eslint-plugin": "^8.29.1",
63
- "@typescript-eslint/parser": "^8.29.1",
64
- "bun-types": "^1.2.9",
65
- "classnames": "^2.5.1",
66
- "csstype": "^3.1.3",
67
- "elysia": ">=1.2.25",
68
- "eslint": "^8.57.1",
69
- "eslint-plugin-react-compiler": "^19.0.0-beta-e993439-20250405",
70
- "eslint-plugin-react-hooks": "^5.2.0",
71
- "eslint-plugin-react-refresh": "^0.4.19",
72
- "eslint-plugin-unused-imports": "^4.1.4",
73
- "npm-run-all": "^4.1.5",
74
- "rimraf": "^5.0.10",
75
- "rollup": "^4.40.0",
76
- "serve": "^14.2.4",
77
- "tslib": "^2.8.1",
78
- "typescript": "^5.8.3"
79
- },
80
- "optionalDependencies": {
81
- "elysia": ">=1.2.25"
82
- },
83
- "dependencies": {
84
- "classcat": "^5.0.5"
85
- }
33
+ "keywords": [
34
+ "jsx",
35
+ "tsx",
36
+ "html",
37
+ "render",
38
+ "server",
39
+ "ssr"
40
+ ],
41
+ "scripts": {
42
+ "_dev:build": "rollup -cw",
43
+ "_dev:serve": "serve -l tcp://0.0.0.0:8080",
44
+ "dev": "run-p \"dev:**\"",
45
+ "dev:run": "NODE_ENV=production bun --watch run --jsx=react-jsx --jsx-import-source=. src/internal/dev.tsx",
46
+ "dev:build": "NODE_ENV=production bun --watch --no-clear-screen build src/internal/dev.tsx --outdir=dist --packages=external --external '*'",
47
+ "typecheck": "tsc --noEmit src/internal/dev.tsx --jsx react-jsx --jsxImportSource . --moduleResolution bundler --module esnext --lib dom,esnext --target esnext",
48
+ "test:types": "tsc --noEmit && echo \"tsc: no errors\"",
49
+ "test:unit": "NODE_ENV=production bun test --jsx-import-source=@mpen/jsxhtml",
50
+ "test": "run-p 'test:*'",
51
+ "bundle:clean": "rm -rf dist/",
52
+ "bundle:build": "NODE_ENV=production rollup -c",
53
+ "bundle": "run-s bundle:clean bundle:build",
54
+ "commit": "VER=$(jq -r '.version' package.json) && hg ci -m \"Commit v$VER\" && hg tag \"v$VER\"",
55
+ "bumpver": "npm version patch",
56
+ "release": "run-s test bundle bumpver commit && npm publish --access=public && hg pushall",
57
+ "lint": "bun run --bun eslint --fix --"
58
+ },
59
+ "devDependencies": {
60
+ "@mpen/is-type": "^0.1.15",
61
+ "@rollup/plugin-commonjs": "^28.0.3",
62
+ "@rollup/plugin-node-resolve": "^16.0.1",
63
+ "@rollup/plugin-replace": "^5.0.7",
64
+ "@rollup/plugin-terser": "^0.4.4",
65
+ "@rollup/plugin-typescript": "^11.1.6",
66
+ "@types/eslint": "^8.56.12",
67
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
68
+ "@typescript-eslint/parser": "^8.29.1",
69
+ "bun-types": "^1.2.15",
70
+ "elysia": "^1.2.25",
71
+ "eslint": "^8.57.1",
72
+ "eslint-plugin-react-compiler": "^19.0.0-beta-e993439-20250405",
73
+ "eslint-plugin-react-hooks": "^5.2.0",
74
+ "eslint-plugin-react-refresh": "^0.4.19",
75
+ "eslint-plugin-unused-imports": "^4.1.4",
76
+ "js-serialize": "^0.6.0",
77
+ "npm-run-all": "^4.1.5",
78
+ "rimraf": "^5.0.10",
79
+ "rollup": "^4.40.0",
80
+ "serve": "^14.2.4",
81
+ "tslib": "^2.8.1",
82
+ "typescript": "^5.8.3"
83
+ },
84
+ "peerDependencies": {
85
+ "csstype": "3.x",
86
+ "elysia": "1.x"
87
+ },
88
+ "peerDependenciesMeta": {
89
+ "elysia": {
90
+ "optional": true
91
+ },
92
+ "csstype": {
93
+ "optional": false
94
+ }
95
+ },
96
+ "dependencies": {}
86
97
  }
@@ -1,83 +0,0 @@
1
- export type AnchorElement = {
2
- /**
3
- * Causes the browser to treat the linked URL as a download. Can be used with or without a filename value:
4
- *
5
- * - Without a value, the browser will suggest a filename/extension, generated from various sources:
6
- * - The `Content-Disposition` HTTP header
7
- * - The final segment in the URL path
8
- * - The media type (from the Content-Type header, the start of a data: URL, or Blob.type for a blob: URL)
9
- * - `filename`: defining a value suggests it as the filename. / and \ characters are converted to underscores
10
- * (_). Filesystems may forbid other characters in filenames, so browsers will adjust the suggested name if
11
- * necessary.
12
- */
13
- download?: true | string;
14
- /**
15
- * The URL that the hyperlink points to. Links are not restricted to HTTP-based URLs — they can use any URL scheme
16
- * supported by browsers:
17
- *
18
- * - Sections of a page with document fragments
19
- * - Specific text portions with text fragments
20
- * - Pieces of media files with media fragments
21
- * - Telephone numbers with tel: URLs
22
- * - Email addresses with mailto: URLs
23
- * - SMS text messages with sms: URLs
24
- * - While web browsers may not support other URL schemes, websites can with registerProtocolHandler()
25
- */
26
- href?: string;
27
- /**
28
- * Hints at the human language of the linked URL. No built-in functionality. Allowed values are the same as the
29
- * global lang attribute.
30
- */
31
- hreflang?: string;
32
- /**
33
- * A space-separated list of URLs. When the link is followed, the browser will send POST requests with the body
34
- * PING to the URLs. Typically for tracking.
35
- */
36
- ping?: string;
37
- /**
38
- * How much of the referrer to send when following the link.
39
- */
40
- referrerpolicy?: ReferrerPolicy | string;
41
- /**
42
- * The relationship of the linked URL as space-separated link types.
43
- */
44
- rel?: string;
45
- /**
46
- * Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>).
47
- */
48
- target?: '_self' | '_blank' | '_parent' | '_top' | string;
49
- /**
50
- * Hints at the linked URL's format with a MIME type. No built-in functionality.
51
- */
52
- type?: string;
53
- /**
54
- * @deprecated
55
- */
56
- charset?: string;
57
- /**
58
- * @deprecated
59
- */
60
- coords?: string;
61
- /**
62
- * @deprecated
63
- */
64
- name?: string;
65
- /**
66
- * @deprecated
67
- */
68
- rev?: string;
69
- /**
70
- * @deprecated
71
- */
72
- shape?: string;
73
- };
74
- export declare const enum ReferrerPolicy {
75
- NoReferrer = "no-referrer",
76
- NoReferrerWhenDowngrade = "no-referrer-when-downgrade",
77
- Origin = "origin",
78
- OriginWhenCrossOrigin = "origin-when-cross-origin",
79
- SameOrigin = "same-origin",
80
- StrictOrigin = "strict-origin",
81
- StrictOriginWhenCrossOrigin = "strict-origin-when-cross-origin",
82
- UnsafeUrl = "unsafe-url"
83
- }