@teaui/preact 1.3.8 → 1.5.8
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/components/FontStyle.d.ts +12 -0
- package/.dist/components/FontStyle.js +35 -0
- package/.dist/components/FontStyle.js.map +1 -0
- package/.dist/components/TextReact.d.ts +2 -0
- package/.dist/components/TextReact.js +31 -25
- package/.dist/components/TextReact.js.map +1 -1
- package/.dist/components.d.ts +31 -8
- package/.dist/components.js +101 -118
- package/.dist/components.js.map +1 -1
- package/.dist/index.d.ts +2 -2
- package/.dist/index.js +2 -18
- package/.dist/index.js.map +1 -1
- package/.dist/preact.d.ts +10 -6
- package/.dist/preact.js +122 -73
- package/.dist/preact.js.map +1 -1
- package/README.md +185 -21
- package/package.json +6 -5
package/.dist/components.js
CHANGED
|
@@ -1,143 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.Br = Br;
|
|
5
|
-
exports.Checkbox = Checkbox;
|
|
6
|
-
exports.CollapsibleText = CollapsibleText;
|
|
7
|
-
exports.ConsoleLog = ConsoleLog;
|
|
8
|
-
exports.Digits = Digits;
|
|
9
|
-
exports.H1 = H1;
|
|
10
|
-
exports.H2 = H2;
|
|
11
|
-
exports.H3 = H3;
|
|
12
|
-
exports.H4 = H4;
|
|
13
|
-
exports.H5 = H5;
|
|
14
|
-
exports.H6 = H6;
|
|
15
|
-
exports.Input = Input;
|
|
16
|
-
exports.Space = Space;
|
|
17
|
-
exports.ToggleGroup = ToggleGroup;
|
|
18
|
-
exports.Tree = Tree;
|
|
19
|
-
exports.Box = Box;
|
|
20
|
-
exports.Button = Button;
|
|
21
|
-
exports.Collapsible = Collapsible;
|
|
22
|
-
exports.Scrollable = Scrollable;
|
|
23
|
-
exports.Style = Style;
|
|
24
|
-
exports.Text = Text;
|
|
25
|
-
const jsx_runtime_1 = require("preact/jsx-runtime");
|
|
26
|
-
const hooks_1 = require("preact/hooks");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'preact/hooks';
|
|
3
|
+
export { FontStyle } from './components/FontStyle.js';
|
|
27
4
|
////
|
|
28
5
|
/// Views
|
|
29
6
|
//
|
|
30
|
-
function Br() {
|
|
31
|
-
return (
|
|
7
|
+
export function Br() {
|
|
8
|
+
return _jsx("tui-br", {});
|
|
32
9
|
}
|
|
33
|
-
function Checkbox(reactProps) {
|
|
34
|
-
return (
|
|
10
|
+
export function Checkbox(reactProps) {
|
|
11
|
+
return _jsx("tui-checkbox", { ...reactProps });
|
|
35
12
|
}
|
|
36
|
-
function CollapsibleText(reactProps) {
|
|
37
|
-
return (
|
|
13
|
+
export function CollapsibleText(reactProps) {
|
|
14
|
+
return _jsx("tui-collapsible-text", { ...reactProps });
|
|
38
15
|
}
|
|
39
|
-
function ConsoleLog(reactProps) {
|
|
40
|
-
return (
|
|
16
|
+
export function ConsoleLog(reactProps) {
|
|
17
|
+
return _jsx("tui-console", { ...reactProps });
|
|
41
18
|
}
|
|
42
|
-
function Digits(reactProps) {
|
|
43
|
-
return (
|
|
19
|
+
export function Digits(reactProps) {
|
|
20
|
+
return _jsx("tui-digits", { ...reactProps });
|
|
44
21
|
}
|
|
45
|
-
function
|
|
46
|
-
return (
|
|
22
|
+
export function Dropdown(reactProps) {
|
|
23
|
+
return _jsx("tui-dropdown", { ...reactProps });
|
|
47
24
|
}
|
|
48
|
-
function
|
|
49
|
-
return (
|
|
25
|
+
export function HotKey(reactProps) {
|
|
26
|
+
return _jsx("tui-hotkey", { ...reactProps });
|
|
50
27
|
}
|
|
51
|
-
function
|
|
52
|
-
return (
|
|
28
|
+
export function H1(reactProps) {
|
|
29
|
+
return _jsx("tui-h1", { ...reactProps });
|
|
53
30
|
}
|
|
54
|
-
function
|
|
55
|
-
return (
|
|
31
|
+
export function H2(reactProps) {
|
|
32
|
+
return _jsx("tui-h2", { ...reactProps });
|
|
56
33
|
}
|
|
57
|
-
function
|
|
58
|
-
return (
|
|
34
|
+
export function H3(reactProps) {
|
|
35
|
+
return _jsx("tui-h3", { ...reactProps });
|
|
59
36
|
}
|
|
60
|
-
function
|
|
61
|
-
return (
|
|
37
|
+
export function H4(reactProps) {
|
|
38
|
+
return _jsx("tui-h4", { ...reactProps });
|
|
62
39
|
}
|
|
63
|
-
function
|
|
64
|
-
return (
|
|
40
|
+
export function H5(reactProps) {
|
|
41
|
+
return _jsx("tui-h5", { ...reactProps });
|
|
65
42
|
}
|
|
66
|
-
|
|
67
|
-
return (
|
|
43
|
+
export function H6(reactProps) {
|
|
44
|
+
return _jsx("tui-h6", { ...reactProps });
|
|
45
|
+
}
|
|
46
|
+
export function Input(reactProps) {
|
|
47
|
+
return _jsx("tui-input", { ...reactProps });
|
|
48
|
+
}
|
|
49
|
+
export function Progress(reactProps) {
|
|
50
|
+
return _jsx("tui-progress", { ...reactProps });
|
|
51
|
+
}
|
|
52
|
+
export const Separator = function Separator(reactProps) {
|
|
53
|
+
return _jsx("tui-separator", { ...reactProps });
|
|
68
54
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return (0, jsx_runtime_1.jsx)("tui-separator", { direction: "horizontal", ...reactProps });
|
|
55
|
+
Separator.horizontal = function SeparatorHorizontal(reactProps) {
|
|
56
|
+
return _jsx("tui-separator", { direction: "horizontal", ...reactProps });
|
|
72
57
|
};
|
|
73
|
-
|
|
74
|
-
return (
|
|
58
|
+
Separator.vertical = function SeparatorHorizontal(reactProps) {
|
|
59
|
+
return _jsx("tui-separator", { direction: "vertical", ...reactProps });
|
|
75
60
|
};
|
|
76
|
-
const Slider = function Slider(reactProps) {
|
|
77
|
-
return (
|
|
61
|
+
export const Slider = function Slider(reactProps) {
|
|
62
|
+
return _jsx("tui-slider", { ...reactProps });
|
|
78
63
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return (0, jsx_runtime_1.jsx)("tui-slider", { direction: "horizontal", ...reactProps });
|
|
64
|
+
Slider.horizontal = function SliderHorizontal(reactProps) {
|
|
65
|
+
return _jsx("tui-slider", { direction: "horizontal", ...reactProps });
|
|
82
66
|
};
|
|
83
|
-
|
|
84
|
-
return (
|
|
67
|
+
Slider.vertical = function SliderHorizontal(reactProps) {
|
|
68
|
+
return _jsx("tui-slider", { direction: "vertical", ...reactProps });
|
|
85
69
|
};
|
|
86
|
-
function Space(reactProps) {
|
|
87
|
-
return (
|
|
70
|
+
export function Space(reactProps) {
|
|
71
|
+
return _jsx("tui-space", { ...reactProps });
|
|
72
|
+
}
|
|
73
|
+
export function Spinner(reactProps) {
|
|
74
|
+
return _jsx("tui-spinner", { ...reactProps });
|
|
88
75
|
}
|
|
89
|
-
function ToggleGroup(reactProps) {
|
|
90
|
-
return (
|
|
76
|
+
export function ToggleGroup(reactProps) {
|
|
77
|
+
return _jsx("tui-toggle-group", { ...reactProps });
|
|
91
78
|
}
|
|
92
|
-
function Tree(reactProps) {
|
|
79
|
+
export function Tree(reactProps) {
|
|
93
80
|
const { title, ...props } = reactProps;
|
|
94
|
-
const titleView =
|
|
81
|
+
const titleView = useMemo(() => {
|
|
95
82
|
if (typeof title === 'string') {
|
|
96
|
-
return (
|
|
83
|
+
return _jsx("tui-text", { children: title });
|
|
97
84
|
}
|
|
98
85
|
return title;
|
|
99
86
|
}, [title]);
|
|
100
|
-
return (
|
|
87
|
+
return _jsx("tui-tree", { ...props, children: titleView });
|
|
101
88
|
}
|
|
102
89
|
////
|
|
103
90
|
/// "Simple" containers
|
|
104
91
|
//
|
|
105
|
-
function Box(reactProps) {
|
|
92
|
+
export function Box(reactProps) {
|
|
106
93
|
const { children, ...props } = reactProps;
|
|
107
|
-
return (
|
|
94
|
+
return _jsx("tui-box", { ...props, children: children });
|
|
108
95
|
}
|
|
109
|
-
function Button(reactProps) {
|
|
96
|
+
export function Button(reactProps) {
|
|
110
97
|
const { children, ...props } = reactProps;
|
|
111
|
-
return (
|
|
98
|
+
return _jsx("tui-button", { ...props, children: children });
|
|
112
99
|
}
|
|
113
|
-
function Collapsible(reactProps) {
|
|
100
|
+
export function Collapsible(reactProps) {
|
|
114
101
|
const { collapsed, expanded, ...props } = reactProps;
|
|
115
|
-
return ((
|
|
102
|
+
return (_jsxs("tui-collapsible", { ...props, children: [collapsed, expanded] }));
|
|
116
103
|
}
|
|
117
|
-
const Stack = function Stack(reactProps) {
|
|
104
|
+
export const Stack = function Stack(reactProps) {
|
|
118
105
|
const { children, ...props } = reactProps;
|
|
119
|
-
return (
|
|
106
|
+
return _jsx("tui-stack", { ...props, children: children });
|
|
120
107
|
};
|
|
121
|
-
|
|
122
|
-
exports.Stack.down = function StackLeft(reactProps) {
|
|
108
|
+
Stack.down = function StackLeft(reactProps) {
|
|
123
109
|
const { children, ...props } = reactProps;
|
|
124
|
-
return ((
|
|
110
|
+
return (_jsx("tui-stack", { direction: "down", ...props, children: children }));
|
|
125
111
|
};
|
|
126
|
-
|
|
112
|
+
Stack.up = function StackLeft(reactProps) {
|
|
127
113
|
const { children, ...props } = reactProps;
|
|
128
|
-
return ((
|
|
114
|
+
return (_jsx("tui-stack", { direction: "up", ...props, children: children }));
|
|
129
115
|
};
|
|
130
|
-
|
|
116
|
+
Stack.right = function StackLeft(reactProps) {
|
|
131
117
|
const { children, ...props } = reactProps;
|
|
132
|
-
return ((
|
|
118
|
+
return (_jsx("tui-stack", { direction: "right", ...props, children: children }));
|
|
133
119
|
};
|
|
134
|
-
|
|
120
|
+
Stack.left = function StackLeft(reactProps) {
|
|
135
121
|
const { children, ...props } = reactProps;
|
|
136
|
-
return ((
|
|
122
|
+
return (_jsx("tui-stack", { direction: "left", ...props, children: children }));
|
|
137
123
|
};
|
|
138
|
-
function Scrollable(reactProps) {
|
|
124
|
+
export function Scrollable(reactProps) {
|
|
139
125
|
const { children, ...props } = reactProps;
|
|
140
|
-
return (
|
|
126
|
+
return _jsx("tui-scrollable", { ...props, children: children });
|
|
141
127
|
}
|
|
142
128
|
/**
|
|
143
129
|
* <Style /> is similar to <Text/> but only allows inline styles (bold, etc).
|
|
@@ -145,53 +131,50 @@ function Scrollable(reactProps) {
|
|
|
145
131
|
* font is not encodable via SGR codes (and that's how I'm styling and
|
|
146
132
|
* concatenating the text nodes).
|
|
147
133
|
*/
|
|
148
|
-
function Style(reactProps) {
|
|
149
|
-
return (
|
|
134
|
+
export function Style(reactProps) {
|
|
135
|
+
return _jsx("tui-style", { ...reactProps });
|
|
150
136
|
}
|
|
151
137
|
/**
|
|
152
138
|
* <Text /> is a container that sets the text properties of child TextLiterals
|
|
153
139
|
* (font, style) and TextContainers (wrap, alignment)
|
|
154
140
|
*/
|
|
155
|
-
function Text(reactProps) {
|
|
156
|
-
return (
|
|
141
|
+
export function Text(reactProps) {
|
|
142
|
+
return _jsx("tui-text", { ...reactProps });
|
|
157
143
|
}
|
|
158
|
-
const Accordion = function Accordion(reactProps) {
|
|
144
|
+
export const Accordion = function Accordion(reactProps) {
|
|
159
145
|
const { children, ...props } = reactProps;
|
|
160
|
-
return (
|
|
146
|
+
return _jsx("tui-accordion", { ...props, children: children });
|
|
161
147
|
};
|
|
162
|
-
|
|
163
|
-
exports.Accordion.Section = function SliderHorizontal(reactProps) {
|
|
148
|
+
Accordion.Section = function SliderHorizontal(reactProps) {
|
|
164
149
|
const { children, ...props } = reactProps;
|
|
165
|
-
return (
|
|
150
|
+
return _jsx("tui-accordion-section", { ...props, children: children });
|
|
166
151
|
};
|
|
167
|
-
const Drawer = function Drawer(reactProps) {
|
|
152
|
+
export const Drawer = function Drawer(reactProps) {
|
|
168
153
|
const { children, content, drawer, ...props } = reactProps;
|
|
169
|
-
return ((
|
|
154
|
+
return (_jsxs("tui-drawer", { ...props, children: [content, drawer, children] }));
|
|
170
155
|
};
|
|
171
|
-
|
|
172
|
-
exports.Drawer.top = function DrawerLeft(reactProps) {
|
|
156
|
+
Drawer.top = function DrawerLeft(reactProps) {
|
|
173
157
|
const { children, content, drawer, ...props } = reactProps;
|
|
174
|
-
return ((
|
|
158
|
+
return (_jsxs("tui-drawer", { location: "top", ...props, children: [content, drawer, children] }));
|
|
175
159
|
};
|
|
176
|
-
|
|
160
|
+
Drawer.right = function DrawerLeft(reactProps) {
|
|
177
161
|
const { children, content, drawer, ...props } = reactProps;
|
|
178
|
-
return ((
|
|
162
|
+
return (_jsxs("tui-drawer", { location: "right", ...props, children: [content, drawer, children] }));
|
|
179
163
|
};
|
|
180
|
-
|
|
181
|
-
const { children, ...props } = reactProps;
|
|
182
|
-
return ((
|
|
164
|
+
Drawer.bottom = function DrawerBottom(reactProps) {
|
|
165
|
+
const { children, content, drawer, ...props } = reactProps;
|
|
166
|
+
return (_jsxs("tui-drawer", { location: "bottom", ...props, children: [content, drawer, children] }));
|
|
183
167
|
};
|
|
184
|
-
|
|
185
|
-
const { children, ...props } = reactProps;
|
|
186
|
-
return ((
|
|
168
|
+
Drawer.left = function DrawerLeft(reactProps) {
|
|
169
|
+
const { children, content, drawer, ...props } = reactProps;
|
|
170
|
+
return (_jsxs("tui-drawer", { location: "left", ...props, children: [content, drawer, children] }));
|
|
187
171
|
};
|
|
188
|
-
const Tabs = function Tabs(reactProps) {
|
|
172
|
+
export const Tabs = function Tabs(reactProps) {
|
|
189
173
|
const { children, ...props } = reactProps;
|
|
190
|
-
return (
|
|
174
|
+
return _jsx("tui-tabs", { ...props, children: children });
|
|
191
175
|
};
|
|
192
|
-
|
|
193
|
-
exports.Tabs.Section = function SliderHorizontal(reactProps) {
|
|
176
|
+
Tabs.Section = function SliderHorizontal(reactProps) {
|
|
194
177
|
const { children, ...props } = reactProps;
|
|
195
|
-
return (
|
|
178
|
+
return _jsx("tui-tabs-section", { ...props, children: children });
|
|
196
179
|
};
|
|
197
180
|
//# sourceMappingURL=components.js.map
|
package/.dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../lib/components.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../lib/components.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EAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,GAAG,UAAU,CAAA;IACxD,OAAO,CACL,sBAAY,QAAQ,EAAC,QAAQ,KAAK,KAAK,aACpC,OAAO,EACP,MAAM,EACN,QAAQ,IACE,CACd,CAAA;AACH,CAAC,CAAA;AACD,MAAM,CAAC,IAAI,GAAG,SAAS,UAAU,CAAC,UAAyC;IACzE,MAAM,EAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,GAAG,UAAU,CAAA;IACxD,OAAO,CACL,sBAAY,QAAQ,EAAC,MAAM,KAAK,KAAK,aAClC,OAAO,EACP,MAAM,EACN,QAAQ,IACE,CACd,CAAA;AACH,CAAC,CAAA;AAMD,MAAM,CAAC,MAAM,IAAI,GAAS,SAAS,IAAI,CACrC,UAAqB;IAErB,MAAM,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,GAAG,UAAU,CAAA;IACvC,OAAO,sBAAc,KAAK,YAAG,QAAQ,GAAY,CAAA;AACnD,CAAC,CAAA;AACD,IAAI,CAAC,OAAO,GAAG,SAAS,gBAAgB,CACtC,UAA+C;IAE/C,MAAM,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,GAAG,UAAU,CAAA;IACvC,OAAO,8BAAsB,KAAK,YAAG,QAAQ,GAAoB,CAAA;AACnE,CAAC,CAAA"}
|
package/.dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './preact';
|
|
2
|
-
export * from './components';
|
|
1
|
+
export * from './preact.js';
|
|
2
|
+
export * from './components.js';
|
package/.dist/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./preact"), exports);
|
|
18
|
-
__exportStar(require("./components"), exports);
|
|
1
|
+
export * from './preact.js';
|
|
2
|
+
export * from './components.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
package/.dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA"}
|
package/.dist/preact.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Screen, type ScreenOptions, ViewProps } from '@teaui/core';
|
|
3
|
-
import type { CheckboxProps, CollapsibleTextProps, ConsoleProps, DigitsProps, HeaderProps, InputProps, SeparatorProps, SliderProps, SpaceProps, ToggleGroupProps, BoxProps, ButtonProps, CollapsibleProps, ScrollableProps, StackProps, StyleProps, TextProps, AccordionProps, AccordionSectionProps, DrawerProps, TabsProps, TabsSectionProps } from './components';
|
|
4
|
-
declare module '
|
|
5
|
-
namespace
|
|
1
|
+
import type { ComponentChildren } from 'preact';
|
|
2
|
+
import { Screen, type ScreenOptions, ViewProps, Window as WrWindow } from '@teaui/core';
|
|
3
|
+
import type { CheckboxProps, CollapsibleTextProps, ConsoleProps, DigitsProps, HeaderProps, InputProps, ProgressProps, SeparatorProps, SliderProps, SpaceProps, SpinnerProps, ToggleGroupProps, BoxProps, ButtonProps, CollapsibleProps, ScrollableProps, StackProps, StyleProps, TextProps, AccordionProps, AccordionSectionProps, DrawerProps, HotKeyProps, TabsProps, TabsSectionProps } from './components.js';
|
|
4
|
+
declare module 'preact' {
|
|
5
|
+
namespace JSX {
|
|
6
6
|
interface IntrinsicElements {
|
|
7
7
|
'tui-br': {};
|
|
8
8
|
'tui-checkbox': CheckboxProps;
|
|
9
9
|
'tui-collapsible-text': CollapsibleTextProps;
|
|
10
10
|
'tui-console': ConsoleProps;
|
|
11
11
|
'tui-digits': DigitsProps;
|
|
12
|
+
'tui-hotkey': HotKeyProps;
|
|
12
13
|
'tui-h1': HeaderProps;
|
|
13
14
|
'tui-h2': HeaderProps;
|
|
14
15
|
'tui-h3': HeaderProps;
|
|
@@ -16,9 +17,11 @@ declare module 'react' {
|
|
|
16
17
|
'tui-h5': HeaderProps;
|
|
17
18
|
'tui-h6': HeaderProps;
|
|
18
19
|
'tui-input': InputProps;
|
|
20
|
+
'tui-progress': ProgressProps;
|
|
19
21
|
'tui-separator': SeparatorProps;
|
|
20
22
|
'tui-slider': SliderProps;
|
|
21
23
|
'tui-space': SpaceProps;
|
|
24
|
+
'tui-spinner': SpinnerProps;
|
|
22
25
|
'tui-toggle-group': ToggleGroupProps;
|
|
23
26
|
'tui-tree': ViewProps;
|
|
24
27
|
'tui-box': BoxProps;
|
|
@@ -36,4 +39,5 @@ declare module 'react' {
|
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
export declare function
|
|
42
|
+
export declare function render(screen: Screen, window: WrWindow, component: ComponentChildren): () => void;
|
|
43
|
+
export declare function run(component: ComponentChildren, options?: Partial<ScreenOptions>): Promise<[Screen, WrWindow, ComponentChildren, () => void]>;
|