@teaui/react 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.
@@ -1,167 +1,130 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Tabs = exports.Drawer = exports.Accordion = exports.Stack = exports.Slider = exports.Separator = void 0;
27
- exports.Br = Br;
28
- exports.Checkbox = Checkbox;
29
- exports.CollapsibleText = CollapsibleText;
30
- exports.ConsoleLog = ConsoleLog;
31
- exports.Digits = Digits;
32
- exports.H1 = H1;
33
- exports.H2 = H2;
34
- exports.H3 = H3;
35
- exports.H4 = H4;
36
- exports.H5 = H5;
37
- exports.H6 = H6;
38
- exports.Input = Input;
39
- exports.Space = Space;
40
- exports.ToggleGroup = ToggleGroup;
41
- exports.Tree = Tree;
42
- exports.Box = Box;
43
- exports.Button = Button;
44
- exports.Collapsible = Collapsible;
45
- exports.Scrollable = Scrollable;
46
- exports.Style = Style;
47
- exports.Text = Text;
48
- const react_1 = __importStar(require("react"));
1
+ import React, { useMemo } from 'react';
2
+ export { FontStyle } from './components/FontStyle.js';
49
3
  ////
50
4
  /// Views
51
5
  //
52
- function Br() {
53
- return react_1.default.createElement("tui-br", null);
6
+ export function Br() {
7
+ return React.createElement("tui-br", null);
54
8
  }
55
- function Checkbox(reactProps) {
56
- return react_1.default.createElement("tui-checkbox", { ...reactProps });
9
+ export function Checkbox(reactProps) {
10
+ return React.createElement("tui-checkbox", { ...reactProps });
57
11
  }
58
- function CollapsibleText(reactProps) {
59
- return react_1.default.createElement("tui-collapsible-text", { ...reactProps });
12
+ export function CollapsibleText(reactProps) {
13
+ return React.createElement("tui-collapsible-text", { ...reactProps });
60
14
  }
61
- function ConsoleLog(reactProps) {
62
- return react_1.default.createElement("tui-console", { ...reactProps });
15
+ export function ConsoleLog(reactProps) {
16
+ return React.createElement("tui-console", { ...reactProps });
63
17
  }
64
- function Digits(reactProps) {
65
- return react_1.default.createElement("tui-digits", { ...reactProps });
18
+ export function Digits(reactProps) {
19
+ return React.createElement("tui-digits", { ...reactProps });
66
20
  }
67
- function H1(reactProps) {
68
- return react_1.default.createElement("tui-h1", { ...reactProps });
21
+ export function Dropdown(reactProps) {
22
+ return React.createElement("tui-dropdown", { ...reactProps });
69
23
  }
70
- function H2(reactProps) {
71
- return react_1.default.createElement("tui-h2", { ...reactProps });
24
+ export function HotKey(reactProps) {
25
+ return React.createElement("tui-hotkey", { ...reactProps });
72
26
  }
73
- function H3(reactProps) {
74
- return react_1.default.createElement("tui-h3", { ...reactProps });
27
+ export function H1(reactProps) {
28
+ return React.createElement("tui-h1", { ...reactProps });
75
29
  }
76
- function H4(reactProps) {
77
- return react_1.default.createElement("tui-h4", { ...reactProps });
30
+ export function H2(reactProps) {
31
+ return React.createElement("tui-h2", { ...reactProps });
78
32
  }
79
- function H5(reactProps) {
80
- return react_1.default.createElement("tui-h5", { ...reactProps });
33
+ export function H3(reactProps) {
34
+ return React.createElement("tui-h3", { ...reactProps });
81
35
  }
82
- function H6(reactProps) {
83
- return react_1.default.createElement("tui-h6", { ...reactProps });
36
+ export function H4(reactProps) {
37
+ return React.createElement("tui-h4", { ...reactProps });
84
38
  }
85
- function Input(reactProps) {
86
- return react_1.default.createElement("tui-input", { ...reactProps });
39
+ export function H5(reactProps) {
40
+ return React.createElement("tui-h5", { ...reactProps });
87
41
  }
88
- const Separator = function Separator(reactProps) {
89
- return react_1.default.createElement("tui-separator", { ...reactProps });
42
+ export function H6(reactProps) {
43
+ return React.createElement("tui-h6", { ...reactProps });
44
+ }
45
+ export function Input(reactProps) {
46
+ return React.createElement("tui-input", { ...reactProps });
47
+ }
48
+ export function Progress(reactProps) {
49
+ return React.createElement("tui-progress", { ...reactProps });
50
+ }
51
+ export const Separator = function Separator(reactProps) {
52
+ return React.createElement("tui-separator", { ...reactProps });
90
53
  };
91
- exports.Separator = Separator;
92
- exports.Separator.horizontal = function SeparatorHorizontal(reactProps) {
93
- return react_1.default.createElement("tui-separator", { direction: "horizontal", ...reactProps });
54
+ Separator.horizontal = function SeparatorHorizontal(reactProps) {
55
+ return React.createElement("tui-separator", { direction: "horizontal", ...reactProps });
94
56
  };
95
- exports.Separator.vertical = function SeparatorHorizontal(reactProps) {
96
- return react_1.default.createElement("tui-separator", { direction: "vertical", ...reactProps });
57
+ Separator.vertical = function SeparatorHorizontal(reactProps) {
58
+ return React.createElement("tui-separator", { direction: "vertical", ...reactProps });
97
59
  };
98
- const Slider = function Slider(reactProps) {
99
- return react_1.default.createElement("tui-slider", { ...reactProps });
60
+ export const Slider = function Slider(reactProps) {
61
+ return React.createElement("tui-slider", { ...reactProps });
100
62
  };
101
- exports.Slider = Slider;
102
- exports.Slider.horizontal = function SliderHorizontal(reactProps) {
103
- return react_1.default.createElement("tui-slider", { direction: "horizontal", ...reactProps });
63
+ Slider.horizontal = function SliderHorizontal(reactProps) {
64
+ return React.createElement("tui-slider", { direction: "horizontal", ...reactProps });
104
65
  };
105
- exports.Slider.vertical = function SliderHorizontal(reactProps) {
106
- return react_1.default.createElement("tui-slider", { direction: "vertical", ...reactProps });
66
+ Slider.vertical = function SliderHorizontal(reactProps) {
67
+ return React.createElement("tui-slider", { direction: "vertical", ...reactProps });
107
68
  };
108
- function Space(reactProps) {
109
- return react_1.default.createElement("tui-space", { ...reactProps });
69
+ export function Space(reactProps) {
70
+ return React.createElement("tui-space", { ...reactProps });
71
+ }
72
+ export function Spinner(reactProps) {
73
+ return React.createElement("tui-spinner", { ...reactProps });
110
74
  }
111
- function ToggleGroup(reactProps) {
112
- return react_1.default.createElement("tui-toggle-group", { ...reactProps });
75
+ export function ToggleGroup(reactProps) {
76
+ return React.createElement("tui-toggle-group", { ...reactProps });
113
77
  }
114
- function Tree(reactProps) {
78
+ export function Tree(reactProps) {
115
79
  const { title, ...props } = reactProps;
116
- const titleView = (0, react_1.useMemo)(() => {
80
+ const titleView = useMemo(() => {
117
81
  if (typeof title === 'string') {
118
- return react_1.default.createElement("tui-text", null, title);
82
+ return React.createElement("tui-text", null, title);
119
83
  }
120
84
  return title;
121
85
  }, [title]);
122
- return react_1.default.createElement("tui-tree", { ...props }, titleView);
86
+ return React.createElement("tui-tree", { ...props }, titleView);
123
87
  }
124
88
  ////
125
89
  /// "Simple" containers
126
90
  //
127
- function Box(reactProps) {
91
+ export function Box(reactProps) {
128
92
  const { children, ...props } = reactProps;
129
- return react_1.default.createElement("tui-box", { ...props }, children);
93
+ return React.createElement("tui-box", { ...props }, children);
130
94
  }
131
- function Button(reactProps) {
95
+ export function Button(reactProps) {
132
96
  const { children, ...props } = reactProps;
133
- return react_1.default.createElement("tui-button", { ...props }, children);
97
+ return React.createElement("tui-button", { ...props }, children);
134
98
  }
135
- function Collapsible(reactProps) {
99
+ export function Collapsible(reactProps) {
136
100
  const { collapsed, expanded, ...props } = reactProps;
137
- return (react_1.default.createElement("tui-collapsible", { ...props },
101
+ return (React.createElement("tui-collapsible", { ...props },
138
102
  collapsed,
139
103
  expanded));
140
104
  }
141
- const Stack = function Stack(reactProps) {
105
+ export const Stack = function Stack(reactProps) {
142
106
  const { children, ...props } = reactProps;
143
- return react_1.default.createElement("tui-stack", { ...props }, children);
107
+ return React.createElement("tui-stack", { ...props }, children);
144
108
  };
145
- exports.Stack = Stack;
146
- exports.Stack.down = function StackLeft(reactProps) {
109
+ Stack.down = function StackLeft(reactProps) {
147
110
  const { children, ...props } = reactProps;
148
- return (react_1.default.createElement("tui-stack", { direction: "down", ...props }, children));
111
+ return (React.createElement("tui-stack", { direction: "down", ...props }, children));
149
112
  };
150
- exports.Stack.up = function StackLeft(reactProps) {
113
+ Stack.up = function StackLeft(reactProps) {
151
114
  const { children, ...props } = reactProps;
152
- return (react_1.default.createElement("tui-stack", { direction: "up", ...props }, children));
115
+ return (React.createElement("tui-stack", { direction: "up", ...props }, children));
153
116
  };
154
- exports.Stack.right = function StackLeft(reactProps) {
117
+ Stack.right = function StackLeft(reactProps) {
155
118
  const { children, ...props } = reactProps;
156
- return (react_1.default.createElement("tui-stack", { direction: "right", ...props }, children));
119
+ return (React.createElement("tui-stack", { direction: "right", ...props }, children));
157
120
  };
158
- exports.Stack.left = function StackLeft(reactProps) {
121
+ Stack.left = function StackLeft(reactProps) {
159
122
  const { children, ...props } = reactProps;
160
- return (react_1.default.createElement("tui-stack", { direction: "left", ...props }, children));
123
+ return (React.createElement("tui-stack", { direction: "left", ...props }, children));
161
124
  };
162
- function Scrollable(reactProps) {
125
+ export function Scrollable(reactProps) {
163
126
  const { children, ...props } = reactProps;
164
- return react_1.default.createElement("tui-scrollable", { ...props }, children);
127
+ return React.createElement("tui-scrollable", { ...props }, children);
165
128
  }
166
129
  /**
167
130
  * <Style /> is similar to <Text/> but only allows inline styles (bold, etc).
@@ -169,62 +132,65 @@ function Scrollable(reactProps) {
169
132
  * font is not encodable via SGR codes (and that's how I'm styling and
170
133
  * concatenating the text nodes).
171
134
  */
172
- function Style(reactProps) {
173
- return react_1.default.createElement("tui-style", { ...reactProps });
135
+ export function Style(reactProps) {
136
+ return React.createElement("tui-style", { ...reactProps });
174
137
  }
175
138
  /**
176
139
  * <Text /> is a container that sets the text properties of child TextLiterals
177
140
  * (font, style) and TextContainers (wrap, alignment)
178
141
  */
179
- function Text(reactProps) {
180
- return react_1.default.createElement("tui-text", { ...reactProps });
142
+ export function Text(reactProps) {
143
+ return React.createElement("tui-text", { ...reactProps });
181
144
  }
182
- const Accordion = function Accordion(reactProps) {
145
+ export const Accordion = function Accordion(reactProps) {
183
146
  const { children, ...props } = reactProps;
184
- return react_1.default.createElement("tui-accordion", { ...props }, children);
147
+ return React.createElement("tui-accordion", { ...props }, children);
185
148
  };
186
- exports.Accordion = Accordion;
187
- exports.Accordion.Section = function SliderHorizontal(reactProps) {
149
+ Accordion.Section = function SliderHorizontal(reactProps) {
188
150
  const { children, ...props } = reactProps;
189
- return react_1.default.createElement("tui-accordion-section", { ...props }, children);
151
+ return React.createElement("tui-accordion-section", { ...props }, children);
190
152
  };
191
- const Drawer = function Drawer(reactProps) {
153
+ export const Drawer = function Drawer(reactProps) {
192
154
  const { children, content, drawer, ...props } = reactProps;
193
- return (react_1.default.createElement("tui-drawer", { ...props },
155
+ return (React.createElement("tui-drawer", { ...props },
194
156
  content,
195
157
  drawer,
196
158
  children));
197
159
  };
198
- exports.Drawer = Drawer;
199
- exports.Drawer.top = function DrawerLeft(reactProps) {
160
+ Drawer.top = function DrawerLeft(reactProps) {
200
161
  const { children, content, drawer, ...props } = reactProps;
201
- return (react_1.default.createElement("tui-drawer", { location: "top", ...props },
162
+ return (React.createElement("tui-drawer", { location: "top", ...props },
202
163
  content,
203
164
  drawer,
204
165
  children));
205
166
  };
206
- exports.Drawer.right = function DrawerLeft(reactProps) {
167
+ Drawer.right = function DrawerLeft(reactProps) {
207
168
  const { children, content, drawer, ...props } = reactProps;
208
- return (react_1.default.createElement("tui-drawer", { location: "right", ...props },
169
+ return (React.createElement("tui-drawer", { location: "right", ...props },
209
170
  content,
210
171
  drawer,
211
172
  children));
212
173
  };
213
- exports.Drawer.bottom = function DrawerLeft(reactProps) {
214
- const { children, ...props } = reactProps;
215
- return (react_1.default.createElement("tui-drawer", { location: "bottom", ...props }, children));
174
+ Drawer.bottom = function DrawerBottom(reactProps) {
175
+ const { children, content, drawer, ...props } = reactProps;
176
+ return (React.createElement("tui-drawer", { location: "bottom", ...props },
177
+ content,
178
+ drawer,
179
+ children));
216
180
  };
217
- exports.Drawer.left = function DrawerLeft(reactProps) {
218
- const { children, ...props } = reactProps;
219
- return (react_1.default.createElement("tui-drawer", { location: "left", ...props }, children));
181
+ Drawer.left = function DrawerLeft(reactProps) {
182
+ const { children, content, drawer, ...props } = reactProps;
183
+ return (React.createElement("tui-drawer", { location: "left", ...props },
184
+ content,
185
+ drawer,
186
+ children));
220
187
  };
221
- const Tabs = function Tabs(reactProps) {
188
+ export const Tabs = function Tabs(reactProps) {
222
189
  const { children, ...props } = reactProps;
223
- return react_1.default.createElement("tui-tabs", { ...props }, children);
190
+ return React.createElement("tui-tabs", { ...props }, children);
224
191
  };
225
- exports.Tabs = Tabs;
226
- exports.Tabs.Section = function SliderHorizontal(reactProps) {
192
+ Tabs.Section = function SliderHorizontal(reactProps) {
227
193
  const { children, ...props } = reactProps;
228
- return react_1.default.createElement("tui-tabs-section", { ...props }, children);
194
+ return React.createElement("tui-tabs-section", { ...props }, children);
229
195
  };
230
196
  //# sourceMappingURL=components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../lib/components.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0HA,gBAEC;AACD,4BAEC;AACD,0CAEC;AACD,gCAEC;AACD,wBAEC;AACD,gBAEC;AACD,gBAEC;AACD,gBAEC;AACD,gBAEC;AACD,gBAEC;AACD,gBAEC;AACD,sBAEC;AA4CD,sBAEC;AACD,kCAEC;AAQD,oBASC;AAMD,kBAGC;AACD,wBAGC;AACD,kCAQC;AA6CD,gCAGC;AAOD,sBAEC;AAKD,oBAEC;A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dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './reconciler';
2
- export * from './components';
1
+ export * from './reconciler.js';
2
+ export * from './components.js';
package/.dist/index.js CHANGED
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
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("./reconciler"), exports);
18
- __exportStar(require("./components"), exports);
1
+ export * from './reconciler.js';
2
+ export * from './components.js';
19
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
package/.dist/isSame.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSame = isSame;
4
- function isSame(lhs, rhs, depth = 0) {
1
+ export function isSame(lhs, rhs, depth = 0) {
5
2
  if (depth >= 100) {
6
3
  return false;
7
4
  }
@@ -53,9 +50,9 @@ function isSame(lhs, rhs, depth = 0) {
53
50
  }
54
51
  // ok, better be an object
55
52
  // and if it's a FiberNode, skip the _owner, it's too huge
56
- if ('$$typeof' in lhs || '$$typeof in rhs') {
57
- const { _owner: _lhsOwner, lhsTrim } = lhs;
58
- const { _owner: _rhsOwner, rhsTrim } = rhs;
53
+ if ('$$typeof' in lhs || '$$typeof' in rhs) {
54
+ const { _owner: _lhsOwner, ...lhsTrim } = lhs;
55
+ const { _owner: _rhsOwner, ...rhsTrim } = rhs;
59
56
  return isSame(lhsTrim, rhsTrim, depth + 1);
60
57
  }
61
58
  for (const prop in lhs) {
@@ -75,7 +72,6 @@ function isSame(lhs, rhs, depth = 0) {
75
72
  if (!Object.hasOwn(lhs, prop)) {
76
73
  return false;
77
74
  }
78
- return false;
79
75
  }
80
76
  return true;
81
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isSame.js","sourceRoot":"","sources":["../lib/isSame.ts"],"names":[],"mappings":";;AAAA,wBAoGC;AApGD,SAAgB,MAAM,CAAC,GAAQ,EAAE,GAAQ,EAAE,KAAK,GAAG,CAAC;IAClD,IAAI,KAAK,IAAI,GAAG,EAAE,CAAC;QACjB,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAI,OAAO,GAAG,KAAK,OAAO,GAAG,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IACE,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,WAAW;QAC1B,OAAO,GAAG,KAAK,SAAS;QACxB,OAAO,GAAG,KAAK,UAAU;QACzB,OAAO,GAAG,KAAK,QAAQ,EACvB,CAAC;QACD,OAAO,GAAG,KAAK,GAAG,CAAA;IACpB,CAAC;IAED,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACjC,OAAO,GAAG,KAAK,GAAG,CAAA;IACpB,CAAC;IAED,IAAI,GAAG,CAAC,WAAW,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;QACxC,OAAO,KAAK,CAAA;IACd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GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;YAC1E,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;YAC9B,SAAQ;QACV,CAAC;QAED,kDAAkD;QAClD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ReactNode } from 'react';
3
3
  import { Screen, type ScreenOptions, Window } from '@teaui/core';
4
- export declare function render(screen: Screen, window: Window, rootNode: ReactNode): void;
5
- export declare function run(component: ReactNode, options?: Partial<ScreenOptions>): Promise<[Screen, Window, React.ReactNode]>;
4
+ export declare function render(screen: Screen, window: Window, rootNode: ReactNode): () => void;
5
+ export declare function run(component: ReactNode, options?: Partial<ScreenOptions>): Promise<[Screen, Window, React.ReactNode, () => void]>;