@rezi-ui/jsx 0.1.0-alpha.1

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 (74) hide show
  1. package/README.md +14 -0
  2. package/dist/__tests__/advanced.test.d.ts +3 -0
  3. package/dist/__tests__/advanced.test.d.ts.map +1 -0
  4. package/dist/__tests__/advanced.test.js +146 -0
  5. package/dist/__tests__/advanced.test.js.map +1 -0
  6. package/dist/__tests__/children.test.d.ts +2 -0
  7. package/dist/__tests__/children.test.d.ts.map +1 -0
  8. package/dist/__tests__/children.test.js +31 -0
  9. package/dist/__tests__/children.test.js.map +1 -0
  10. package/dist/__tests__/containers.test.d.ts +3 -0
  11. package/dist/__tests__/containers.test.d.ts.map +1 -0
  12. package/dist/__tests__/containers.test.js +30 -0
  13. package/dist/__tests__/containers.test.js.map +1 -0
  14. package/dist/__tests__/data.test.d.ts +3 -0
  15. package/dist/__tests__/data.test.d.ts.map +1 -0
  16. package/dist/__tests__/data.test.js +30 -0
  17. package/dist/__tests__/data.test.js.map +1 -0
  18. package/dist/__tests__/fragment.test.d.ts +3 -0
  19. package/dist/__tests__/fragment.test.d.ts.map +1 -0
  20. package/dist/__tests__/fragment.test.js +21 -0
  21. package/dist/__tests__/fragment.test.js.map +1 -0
  22. package/dist/__tests__/function-components.test.d.ts +3 -0
  23. package/dist/__tests__/function-components.test.d.ts.map +1 -0
  24. package/dist/__tests__/function-components.test.js +42 -0
  25. package/dist/__tests__/function-components.test.js.map +1 -0
  26. package/dist/__tests__/integration.test.d.ts +3 -0
  27. package/dist/__tests__/integration.test.d.ts.map +1 -0
  28. package/dist/__tests__/integration.test.js +23 -0
  29. package/dist/__tests__/integration.test.js.map +1 -0
  30. package/dist/__tests__/interactive.test.d.ts +3 -0
  31. package/dist/__tests__/interactive.test.d.ts.map +1 -0
  32. package/dist/__tests__/interactive.test.js +23 -0
  33. package/dist/__tests__/interactive.test.js.map +1 -0
  34. package/dist/__tests__/jsx-runtime.test.d.ts +3 -0
  35. package/dist/__tests__/jsx-runtime.test.d.ts.map +1 -0
  36. package/dist/__tests__/jsx-runtime.test.js +50 -0
  37. package/dist/__tests__/jsx-runtime.test.js.map +1 -0
  38. package/dist/__tests__/layout.test.d.ts +3 -0
  39. package/dist/__tests__/layout.test.d.ts.map +1 -0
  40. package/dist/__tests__/layout.test.js +44 -0
  41. package/dist/__tests__/layout.test.js.map +1 -0
  42. package/dist/__tests__/text.test.d.ts +3 -0
  43. package/dist/__tests__/text.test.d.ts.map +1 -0
  44. package/dist/__tests__/text.test.js +39 -0
  45. package/dist/__tests__/text.test.js.map +1 -0
  46. package/dist/children.d.ts +28 -0
  47. package/dist/children.d.ts.map +1 -0
  48. package/dist/children.js +61 -0
  49. package/dist/children.js.map +1 -0
  50. package/dist/components.d.ts +55 -0
  51. package/dist/components.d.ts.map +1 -0
  52. package/dist/components.js +363 -0
  53. package/dist/components.js.map +1 -0
  54. package/dist/createElement.d.ts +11 -0
  55. package/dist/createElement.d.ts.map +1 -0
  56. package/dist/createElement.js +85 -0
  57. package/dist/createElement.js.map +1 -0
  58. package/dist/index.d.ts +35 -0
  59. package/dist/index.d.ts.map +1 -0
  60. package/dist/index.js +33 -0
  61. package/dist/index.js.map +1 -0
  62. package/dist/jsx-dev-runtime.d.ts +16 -0
  63. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  64. package/dist/jsx-dev-runtime.js +7 -0
  65. package/dist/jsx-dev-runtime.js.map +1 -0
  66. package/dist/jsx-runtime.d.ts +17 -0
  67. package/dist/jsx-runtime.d.ts.map +1 -0
  68. package/dist/jsx-runtime.js +6 -0
  69. package/dist/jsx-runtime.js.map +1 -0
  70. package/dist/types.d.ts +152 -0
  71. package/dist/types.d.ts.map +1 -0
  72. package/dist/types.js +2 -0
  73. package/dist/types.js.map +1 -0
  74. package/package.json +44 -0
@@ -0,0 +1,11 @@
1
+ import type { VNode } from "@rezi-ui/core";
2
+ import type { JsxElementType } from "./types.js";
3
+ /**
4
+ * Create a Rezi VNode from JSX runtime inputs.
5
+ */
6
+ export declare function createElement(type: JsxElementType, props: Readonly<Record<string, unknown>> | null, key?: string): VNode;
7
+ /**
8
+ * Classic JSX factory function alias.
9
+ */
10
+ export declare const h: typeof createElement;
11
+ //# sourceMappingURL=createElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createElement.d.ts","sourceRoot":"","sources":["../src/createElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAoD3C,OAAO,KAAK,EAAqB,cAAc,EAA4B,MAAM,YAAY,CAAC;AAgF9F;;GAEG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,EAC/C,GAAG,CAAC,EAAE,MAAM,GACX,KAAK,CAYP;AAED;;GAEG;AACH,eAAO,MAAM,CAAC,sBAAgB,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { Badge, BarChart, Box, Button, Callout, Checkbox, CodeEditor, Column, CommandPalette, DiffViewer, Divider, Dropdown, Empty, ErrorDisplay, Field, FilePicker, FileTreeExplorer, FocusTrap, FocusZone, Fragment, Gauge, Icon, Input, Kbd, Layer, Layers, LogsConsole, MiniChart, Modal, PanelGroup, Progress, RadioGroup, ResizablePanel, RichText, Row, Select, Skeleton, Spacer, Sparkline, Spinner, SplitPane, Status, Table, Tag, Text, ToastContainer, ToolApprovalDialog, Tree, VirtualList, } from "./components.js";
2
+ function asIntrinsic(component) {
3
+ return component;
4
+ }
5
+ const intrinsicFactories = Object.freeze({
6
+ box: asIntrinsic(Box),
7
+ row: asIntrinsic(Row),
8
+ column: asIntrinsic(Column),
9
+ layers: asIntrinsic(Layers),
10
+ focusZone: asIntrinsic(FocusZone),
11
+ focusTrap: asIntrinsic(FocusTrap),
12
+ splitPane: asIntrinsic(SplitPane),
13
+ panelGroup: asIntrinsic(PanelGroup),
14
+ resizablePanel: asIntrinsic(ResizablePanel),
15
+ text: asIntrinsic(Text),
16
+ field: asIntrinsic(Field),
17
+ spacer: asIntrinsic(Spacer),
18
+ divider: asIntrinsic(Divider),
19
+ icon: asIntrinsic(Icon),
20
+ spinner: asIntrinsic(Spinner),
21
+ progress: asIntrinsic(Progress),
22
+ skeleton: asIntrinsic(Skeleton),
23
+ richText: asIntrinsic(RichText),
24
+ kbd: asIntrinsic(Kbd),
25
+ badge: asIntrinsic(Badge),
26
+ status: asIntrinsic(Status),
27
+ tag: asIntrinsic(Tag),
28
+ gauge: asIntrinsic(Gauge),
29
+ empty: asIntrinsic(Empty),
30
+ errorDisplay: asIntrinsic(ErrorDisplay),
31
+ callout: asIntrinsic(Callout),
32
+ sparkline: asIntrinsic(Sparkline),
33
+ barChart: asIntrinsic(BarChart),
34
+ miniChart: asIntrinsic(MiniChart),
35
+ button: asIntrinsic(Button),
36
+ input: asIntrinsic(Input),
37
+ virtualList: asIntrinsic(VirtualList),
38
+ modal: asIntrinsic(Modal),
39
+ dropdown: asIntrinsic(Dropdown),
40
+ layer: asIntrinsic(Layer),
41
+ table: asIntrinsic(Table),
42
+ tree: asIntrinsic(Tree),
43
+ select: asIntrinsic(Select),
44
+ checkbox: asIntrinsic(Checkbox),
45
+ radioGroup: asIntrinsic(RadioGroup),
46
+ commandPalette: asIntrinsic(CommandPalette),
47
+ filePicker: asIntrinsic(FilePicker),
48
+ fileTreeExplorer: asIntrinsic(FileTreeExplorer),
49
+ codeEditor: asIntrinsic(CodeEditor),
50
+ diffViewer: asIntrinsic(DiffViewer),
51
+ toolApprovalDialog: asIntrinsic(ToolApprovalDialog),
52
+ logsConsole: asIntrinsic(LogsConsole),
53
+ toastContainer: asIntrinsic(ToastContainer),
54
+ fragment: asIntrinsic(Fragment),
55
+ });
56
+ function isIntrinsicElementName(value) {
57
+ return Object.hasOwn(intrinsicFactories, value);
58
+ }
59
+ function normalizeProps(props, key) {
60
+ if (props === null || props === undefined) {
61
+ return key === undefined ? {} : { key };
62
+ }
63
+ if (key === undefined) {
64
+ return { ...props };
65
+ }
66
+ return { ...props, key };
67
+ }
68
+ /**
69
+ * Create a Rezi VNode from JSX runtime inputs.
70
+ */
71
+ export function createElement(type, props, key) {
72
+ const normalizedProps = normalizeProps(props, key);
73
+ if (typeof type === "function") {
74
+ return type(normalizedProps);
75
+ }
76
+ if (!isIntrinsicElementName(type)) {
77
+ throw new Error(`Unknown JSX element type: ${type}`);
78
+ }
79
+ return intrinsicFactories[type](normalizedProps);
80
+ }
81
+ /**
82
+ * Classic JSX factory function alias.
83
+ */
84
+ export const h = createElement;
85
+ //# sourceMappingURL=createElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createElement.js","sourceRoot":"","sources":["../src/createElement.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,GAAG,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,UAAU,EACV,MAAM,EACN,cAAc,EACd,UAAU,EACV,OAAO,EACP,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK,EACL,MAAM,EACN,WAAW,EACX,SAAS,EACT,KAAK,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,cAAc,EACd,QAAQ,EACR,GAAG,EACH,MAAM,EACN,QAAQ,EACR,MAAM,EACN,SAAS,EACT,OAAO,EACP,SAAS,EACT,MAAM,EACN,KAAK,EACL,GAAG,EACH,IAAI,EACJ,cAAc,EACd,kBAAkB,EAClB,IAAI,EACJ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAKzB,SAAS,WAAW,CAAC,SAA4B;IAC/C,OAAO,SAAwC,CAAC;AAClD,CAAC;AAED,MAAM,kBAAkB,GACtB,MAAM,CAAC,MAAM,CAAC;IAC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;IAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC;IACtB,CAAC;IAED,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC;AAC3B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAoB,EACpB,KAA+C,EAC/C,GAAY;IAEZ,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEnD,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAQ,IAAkD,CAAC,eAAe,CAAC,CAAC;IAC9E,CAAC;IAED,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @rezi-ui/jsx — JSX runtime for Rezi TUI framework.
3
+ *
4
+ * Setup:
5
+ *
6
+ * 1. Add to tsconfig.json:
7
+ * {
8
+ * "compilerOptions": {
9
+ * "jsx": "react-jsx",
10
+ * "jsxImportSource": "@rezi-ui/jsx"
11
+ * }
12
+ * }
13
+ *
14
+ * 2. Or use a per-file pragma:
15
+ * /** @jsxImportSource @rezi-ui/jsx *\/
16
+ *
17
+ * 3. Write JSX:
18
+ * import { Column, Text, Button } from "@rezi-ui/jsx";
19
+ *
20
+ * app.view((state) => (
21
+ * <Column p={1}>
22
+ * <Text>Hello {state.name}</Text>
23
+ * <Button id="ok" label="OK" />
24
+ * </Column>
25
+ * ));
26
+ *
27
+ * The JSX output is equivalent to `ui.*()` VNode construction.
28
+ */
29
+ export { Badge, BarChart, Box, Button, Callout, Checkbox, CodeEditor, Column, CommandPalette, DiffViewer, Divider, Dropdown, Empty, ErrorDisplay, Field, FilePicker, FileTreeExplorer, FocusTrap, FocusZone, Fragment, Gauge, Icon, Input, Kbd, Layer, Layers, LogsConsole, MiniChart, Modal, PanelGroup, Progress, RadioGroup, ResizablePanel, RichText, Row, Select, Skeleton, Spacer, Sparkline, Spinner, SplitPane, Status, Table, Tag, Text, ToastContainer, ToolApprovalDialog, Tree, VirtualList, } from "./components.js";
30
+ export { createElement, h } from "./createElement.js";
31
+ export { normalizeContainerChildren, normalizeTextChildren, type JsxChild, type JsxChildren, type JsxTextChild, type JsxTextChildren, } from "./children.js";
32
+ export type { BadgeJsxProps, BarChartJsxProps, BoxJsxProps, ButtonJsxProps, CalloutJsxProps, CheckboxJsxProps, CodeEditorJsxProps, ColumnJsxProps, CommandPaletteJsxProps, DiffViewerJsxProps, DividerJsxProps, DropdownJsxProps, EmptyJsxProps, ErrorDisplayJsxProps, FieldJsxProps, FilePickerJsxProps, FileTreeExplorerJsxProps, FocusTrapJsxProps, FocusZoneJsxProps, GaugeJsxProps, IconJsxProps, InputJsxProps, KbdJsxProps, LayerJsxProps, LayersJsxProps, LogsConsoleJsxProps, MiniChartJsxProps, ModalJsxProps, PanelGroupJsxProps, ProgressJsxProps, RadioGroupJsxProps, ResizablePanelJsxProps, RichTextJsxProps, RowJsxProps, SelectJsxProps, SkeletonJsxProps, SpacerJsxProps, SparklineJsxProps, SpinnerJsxProps, SplitPaneJsxProps, StatusJsxProps, TableJsxProps, TagJsxProps, TextJsxProps, ToastContainerJsxProps, ToolApprovalDialogJsxProps, TreeJsxProps, VirtualListJsxProps, } from "./types.js";
33
+ export { rgb } from "@rezi-ui/core";
34
+ export type { Rgb, TextStyle, VNode } from "@rezi-ui/core";
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;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,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,WAAW,EACX,YAAY,EACZ,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @rezi-ui/jsx — JSX runtime for Rezi TUI framework.
3
+ *
4
+ * Setup:
5
+ *
6
+ * 1. Add to tsconfig.json:
7
+ * {
8
+ * "compilerOptions": {
9
+ * "jsx": "react-jsx",
10
+ * "jsxImportSource": "@rezi-ui/jsx"
11
+ * }
12
+ * }
13
+ *
14
+ * 2. Or use a per-file pragma:
15
+ * /** @jsxImportSource @rezi-ui/jsx *\/
16
+ *
17
+ * 3. Write JSX:
18
+ * import { Column, Text, Button } from "@rezi-ui/jsx";
19
+ *
20
+ * app.view((state) => (
21
+ * <Column p={1}>
22
+ * <Text>Hello {state.name}</Text>
23
+ * <Button id="ok" label="OK" />
24
+ * </Column>
25
+ * ));
26
+ *
27
+ * The JSX output is equivalent to `ui.*()` VNode construction.
28
+ */
29
+ export { Badge, BarChart, Box, Button, Callout, Checkbox, CodeEditor, Column, CommandPalette, DiffViewer, Divider, Dropdown, Empty, ErrorDisplay, Field, FilePicker, FileTreeExplorer, FocusTrap, FocusZone, Fragment, Gauge, Icon, Input, Kbd, Layer, Layers, LogsConsole, MiniChart, Modal, PanelGroup, Progress, RadioGroup, ResizablePanel, RichText, Row, Select, Skeleton, Spacer, Sparkline, Spinner, SplitPane, Status, Table, Tag, Text, ToastContainer, ToolApprovalDialog, Tree, VirtualList, } from "./components.js";
30
+ export { createElement, h } from "./createElement.js";
31
+ export { normalizeContainerChildren, normalizeTextChildren, } from "./children.js";
32
+ export { rgb } from "@rezi-ui/core";
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACL,KAAK,EACL,QAAQ,EACR,GAAG,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,UAAU,EACV,MAAM,EACN,cAAc,EACd,UAAU,EACV,OAAO,EACP,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK,EACL,MAAM,EACN,WAAW,EACX,SAAS,EACT,KAAK,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,cAAc,EACd,QAAQ,EACR,GAAG,EACH,MAAM,EACN,QAAQ,EACR,MAAM,EACN,SAAS,EACT,OAAO,EACP,SAAS,EACT,MAAM,EACN,KAAK,EACL,GAAG,EACH,IAAI,EACJ,cAAc,EACd,kBAAkB,EAClB,IAAI,EACJ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,GAKtB,MAAM,eAAe,CAAC;AAqDvB,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { VNode } from "@rezi-ui/core";
2
+ import { Fragment } from "./components.js";
3
+ import type { JsxElement, JsxElementType, ReziElementChildrenAttribute, ReziIntrinsicAttributes, ReziIntrinsicElements } from "./types.js";
4
+ export declare function jsxDEV(type: JsxElementType, props: Readonly<Record<string, unknown>> | null, key: string | undefined, _isStaticChildren: boolean, _source: unknown, _self: unknown): VNode;
5
+ export { Fragment };
6
+ export declare namespace JSX {
7
+ type Element = JsxElement;
8
+ type ElementType = JsxElementType;
9
+ interface ElementChildrenAttribute extends ReziElementChildrenAttribute {
10
+ }
11
+ interface IntrinsicAttributes extends ReziIntrinsicAttributes {
12
+ }
13
+ interface IntrinsicElements extends ReziIntrinsicElements {
14
+ }
15
+ }
16
+ //# sourceMappingURL=jsx-dev-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-dev-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,MAAM,CACpB,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,EAC/C,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,iBAAiB,EAAE,OAAO,EAC1B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,OAAO,GACb,KAAK,CAEP;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,yBAAiB,GAAG,CAAC;IACnB,KAAY,OAAO,GAAG,UAAU,CAAC;IACjC,KAAY,WAAW,GAAG,cAAc,CAAC;IACzC,UAAiB,wBAAyB,SAAQ,4BAA4B;KAAG;IACjF,UAAiB,mBAAoB,SAAQ,uBAAuB;KAAG;IACvE,UAAiB,iBAAkB,SAAQ,qBAAqB;KAAG;CACpE"}
@@ -0,0 +1,7 @@
1
+ import { Fragment } from "./components.js";
2
+ import { createElement } from "./createElement.js";
3
+ export function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
4
+ return createElement(type, props, key);
5
+ }
6
+ export { Fragment };
7
+ //# sourceMappingURL=jsx-dev-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASnD,MAAM,UAAU,MAAM,CACpB,IAAoB,EACpB,KAA+C,EAC/C,GAAuB,EACvB,iBAA0B,EAC1B,OAAgB,EAChB,KAAc;IAEd,OAAO,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { Fragment } from "./components.js";
2
+ import { createElement } from "./createElement.js";
3
+ import type { JsxElement, JsxElementType, ReziElementChildrenAttribute, ReziIntrinsicAttributes, ReziIntrinsicElements } from "./types.js";
4
+ export declare const jsx: typeof createElement;
5
+ export declare const jsxs: typeof createElement;
6
+ export { Fragment };
7
+ export declare namespace JSX {
8
+ type Element = JsxElement;
9
+ type ElementType = JsxElementType;
10
+ interface ElementChildrenAttribute extends ReziElementChildrenAttribute {
11
+ }
12
+ interface IntrinsicAttributes extends ReziIntrinsicAttributes {
13
+ }
14
+ interface IntrinsicElements extends ReziIntrinsicElements {
15
+ }
16
+ }
17
+ //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,GAAG,sBAAgB,CAAC;AACjC,eAAO,MAAM,IAAI,sBAAgB,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,yBAAiB,GAAG,CAAC;IACnB,KAAY,OAAO,GAAG,UAAU,CAAC;IACjC,KAAY,WAAW,GAAG,cAAc,CAAC;IACzC,UAAiB,wBAAyB,SAAQ,4BAA4B;KAAG;IACjF,UAAiB,mBAAoB,SAAQ,uBAAuB;KAAG;IACvE,UAAiB,iBAAkB,SAAQ,qBAAqB;KAAG;CACpE"}
@@ -0,0 +1,6 @@
1
+ import { Fragment } from "./components.js";
2
+ import { createElement } from "./createElement.js";
3
+ export const jsx = createElement;
4
+ export const jsxs = createElement;
5
+ export { Fragment };
6
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.js","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASnD,MAAM,CAAC,MAAM,GAAG,GAAG,aAAa,CAAC;AACjC,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,152 @@
1
+ import type { BadgeProps, BarChartProps, BoxProps, ButtonProps, CalloutProps, CheckboxProps, CodeEditorProps, CommandPaletteProps, DiffViewerProps, DividerProps, DropdownProps, EmptyProps, ErrorDisplayProps, FieldProps, FilePickerProps, FileTreeExplorerProps, GaugeProps, IconProps, InputProps, KbdProps, LayerProps, LayersProps, LogsConsoleProps, MiniChartProps, ModalProps, PanelGroupProps, ProgressProps, RadioGroupProps, ResizablePanelProps, RichTextProps, SelectProps, SkeletonProps, SpacerProps, SparklineProps, SpinnerProps, SplitPaneProps, StackProps, StatusProps, TableProps, TagProps, TextProps, ToastContainerProps, ToolApprovalDialogProps, TreeProps, VNode, VirtualListProps } from "@rezi-ui/core";
2
+ import type { JsxChildren, JsxTextChildren } from "./children.js";
3
+ export type ComponentFunction<P = never> = (props: P) => VNode;
4
+ export type JsxElement = VNode;
5
+ export type JsxElementType = string | ComponentFunction;
6
+ export interface ReziElementChildrenAttribute {
7
+ children: unknown;
8
+ }
9
+ export interface ReziIntrinsicAttributes {
10
+ key?: string;
11
+ }
12
+ type FocusZoneProps = Extract<VNode, {
13
+ kind: "focusZone";
14
+ }>["props"];
15
+ type FocusTrapProps = Extract<VNode, {
16
+ kind: "focusTrap";
17
+ }>["props"];
18
+ type WithOptionalKey<P extends {
19
+ key?: string;
20
+ }> = Omit<P, "key"> & {
21
+ key?: string;
22
+ };
23
+ export type WithContainerChildren<P extends {
24
+ key?: string;
25
+ }> = WithOptionalKey<P> & {
26
+ children?: JsxChildren;
27
+ };
28
+ export type WithTextChildren<P extends {
29
+ key?: string;
30
+ }> = WithOptionalKey<P> & {
31
+ children?: JsxTextChildren;
32
+ };
33
+ export type LeafProps<P extends {
34
+ key?: string;
35
+ }> = WithOptionalKey<P> & {
36
+ children?: never;
37
+ };
38
+ export type WithSingleChild<P extends {
39
+ key?: string;
40
+ children: VNode;
41
+ }> = Omit<P, "key" | "children"> & {
42
+ key?: string;
43
+ children: VNode;
44
+ };
45
+ export type BoxJsxProps = WithContainerChildren<BoxProps>;
46
+ export type RowJsxProps = WithContainerChildren<StackProps>;
47
+ export type ColumnJsxProps = WithContainerChildren<StackProps>;
48
+ export type LayersJsxProps = WithContainerChildren<LayersProps>;
49
+ export type FocusZoneJsxProps = WithContainerChildren<FocusZoneProps>;
50
+ export type FocusTrapJsxProps = WithContainerChildren<FocusTrapProps>;
51
+ export type SplitPaneJsxProps = WithContainerChildren<SplitPaneProps>;
52
+ export type PanelGroupJsxProps = WithContainerChildren<PanelGroupProps>;
53
+ export type ResizablePanelJsxProps = WithContainerChildren<ResizablePanelProps>;
54
+ export type TextJsxProps = WithTextChildren<TextProps>;
55
+ export type FieldJsxProps = WithSingleChild<FieldProps>;
56
+ export type SpacerJsxProps = LeafProps<SpacerProps>;
57
+ export type DividerJsxProps = LeafProps<DividerProps>;
58
+ export type IconJsxProps = LeafProps<IconProps>;
59
+ export type SpinnerJsxProps = LeafProps<SpinnerProps>;
60
+ export type ProgressJsxProps = LeafProps<ProgressProps>;
61
+ export type SkeletonJsxProps = LeafProps<SkeletonProps>;
62
+ export type RichTextJsxProps = LeafProps<RichTextProps>;
63
+ export type KbdJsxProps = LeafProps<KbdProps>;
64
+ export type BadgeJsxProps = LeafProps<BadgeProps>;
65
+ export type StatusJsxProps = LeafProps<StatusProps>;
66
+ export type TagJsxProps = LeafProps<TagProps>;
67
+ export type GaugeJsxProps = LeafProps<GaugeProps>;
68
+ export type EmptyJsxProps = LeafProps<EmptyProps>;
69
+ export type ErrorDisplayJsxProps = LeafProps<ErrorDisplayProps>;
70
+ export type CalloutJsxProps = LeafProps<CalloutProps>;
71
+ export type SparklineJsxProps = LeafProps<SparklineProps>;
72
+ export type BarChartJsxProps = LeafProps<BarChartProps>;
73
+ export type MiniChartJsxProps = LeafProps<MiniChartProps>;
74
+ export type ButtonJsxProps = LeafProps<ButtonProps>;
75
+ export type InputJsxProps = LeafProps<InputProps>;
76
+ export type ModalJsxProps = LeafProps<ModalProps>;
77
+ export type DropdownJsxProps = LeafProps<DropdownProps>;
78
+ export type LayerJsxProps = LeafProps<LayerProps>;
79
+ export type SelectJsxProps = LeafProps<SelectProps>;
80
+ export type CheckboxJsxProps = LeafProps<CheckboxProps>;
81
+ export type RadioGroupJsxProps = LeafProps<RadioGroupProps>;
82
+ export type CommandPaletteJsxProps = LeafProps<CommandPaletteProps>;
83
+ export type FilePickerJsxProps = LeafProps<FilePickerProps>;
84
+ export type FileTreeExplorerJsxProps = LeafProps<FileTreeExplorerProps>;
85
+ export type CodeEditorJsxProps = LeafProps<CodeEditorProps>;
86
+ export type DiffViewerJsxProps = LeafProps<DiffViewerProps>;
87
+ export type ToolApprovalDialogJsxProps = LeafProps<ToolApprovalDialogProps>;
88
+ export type LogsConsoleJsxProps = LeafProps<LogsConsoleProps>;
89
+ export type ToastContainerJsxProps = LeafProps<ToastContainerProps>;
90
+ export type TableJsxProps<T = unknown> = LeafProps<TableProps<T>>;
91
+ export type TreeJsxProps<T = unknown> = LeafProps<TreeProps<T>>;
92
+ export type VirtualListJsxProps<T = unknown> = LeafProps<VirtualListProps<T>>;
93
+ /**
94
+ * Intrinsic element map for lowercase JSX tags (for example: `<box />`).
95
+ * This keeps intrinsic usage type-safe and blocks unknown tag names at compile time.
96
+ */
97
+ export interface ReziIntrinsicElements {
98
+ box: BoxJsxProps;
99
+ row: RowJsxProps;
100
+ column: ColumnJsxProps;
101
+ layers: LayersJsxProps;
102
+ focusZone: FocusZoneJsxProps;
103
+ focusTrap: FocusTrapJsxProps;
104
+ splitPane: SplitPaneJsxProps;
105
+ panelGroup: PanelGroupJsxProps;
106
+ resizablePanel: ResizablePanelJsxProps;
107
+ text: TextJsxProps;
108
+ field: FieldJsxProps;
109
+ spacer: SpacerJsxProps;
110
+ divider: DividerJsxProps;
111
+ icon: IconJsxProps;
112
+ spinner: SpinnerJsxProps;
113
+ progress: ProgressJsxProps;
114
+ skeleton: SkeletonJsxProps;
115
+ richText: RichTextJsxProps;
116
+ kbd: KbdJsxProps;
117
+ badge: BadgeJsxProps;
118
+ status: StatusJsxProps;
119
+ tag: TagJsxProps;
120
+ gauge: GaugeJsxProps;
121
+ empty: EmptyJsxProps;
122
+ errorDisplay: ErrorDisplayJsxProps;
123
+ callout: CalloutJsxProps;
124
+ sparkline: SparklineJsxProps;
125
+ barChart: BarChartJsxProps;
126
+ miniChart: MiniChartJsxProps;
127
+ button: ButtonJsxProps;
128
+ input: InputJsxProps;
129
+ virtualList: VirtualListJsxProps;
130
+ modal: ModalJsxProps;
131
+ dropdown: DropdownJsxProps;
132
+ layer: LayerJsxProps;
133
+ table: TableJsxProps;
134
+ tree: TreeJsxProps;
135
+ select: SelectJsxProps;
136
+ checkbox: CheckboxJsxProps;
137
+ radioGroup: RadioGroupJsxProps;
138
+ commandPalette: CommandPaletteJsxProps;
139
+ filePicker: FilePickerJsxProps;
140
+ fileTreeExplorer: FileTreeExplorerJsxProps;
141
+ codeEditor: CodeEditorJsxProps;
142
+ diffViewer: DiffViewerJsxProps;
143
+ toolApprovalDialog: ToolApprovalDialogJsxProps;
144
+ logsConsole: LogsConsoleJsxProps;
145
+ toastContainer: ToastContainerJsxProps;
146
+ fragment: {
147
+ children?: JsxChildren;
148
+ };
149
+ }
150
+ export type ReziIntrinsicElementName = keyof ReziIntrinsicElements;
151
+ export {};
152
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,eAAe,EACf,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,SAAS,EACT,KAAK,EACL,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAElE,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,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sB,CAAC;IACvC,QAAQ,EAAE;QAAE,QAAQ,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,qBAAqB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@rezi-ui/jsx",
3
+ "version": "0.1.0-alpha.1",
4
+ "description": "JSX runtime for Rezi TUI framework.",
5
+ "license": "Apache-2.0",
6
+ "homepage": "https://rtlzeromemory.github.io/Rezi/",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/RtlZeroMemory/Rezi.git",
10
+ "directory": "packages/jsx"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/RtlZeroMemory/Rezi/issues"
14
+ },
15
+ "type": "module",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "./jsx-runtime": {
23
+ "types": "./dist/jsx-runtime.d.ts",
24
+ "default": "./dist/jsx-runtime.js"
25
+ },
26
+ "./jsx-dev-runtime": {
27
+ "types": "./dist/jsx-dev-runtime.d.ts",
28
+ "default": "./dist/jsx-dev-runtime.js"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist/",
33
+ "README.md"
34
+ ],
35
+ "engines": {
36
+ "node": ">=18"
37
+ },
38
+ "dependencies": {
39
+ "@rezi-ui/core": "0.1.0-alpha.1"
40
+ },
41
+ "devDependencies": {
42
+ "@rezi-ui/testkit": "0.1.0-alpha.1"
43
+ }
44
+ }