@arcanejs/toolkit-frontend 0.3.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.
@@ -0,0 +1,81 @@
1
+ export { i as code } from '../index-Db4cPoyC.mjs';
2
+ import * as React from 'react';
3
+ import React__default, { FC } from 'react';
4
+ import * as proto from '@arcanejs/protocol/core';
5
+ import * as proto$1 from '@arcanejs/protocol';
6
+ import { FrontendComponentRenderer } from '../types.mjs';
7
+
8
+ interface Props$8 {
9
+ className?: string;
10
+ info: proto.ButtonComponent;
11
+ }
12
+ declare const StyledButton: FC<Props$8>;
13
+
14
+ declare const StageContext: React.Context<{
15
+ sendMessage: (<M extends proto$1.AnyClientComponentMessage>(msg: M) => void) | null;
16
+ renderComponent: (info: proto$1.AnyComponentProto) => JSX.Element;
17
+ }>;
18
+
19
+ interface Props$7 {
20
+ className?: string;
21
+ info: proto.GroupComponent;
22
+ }
23
+ declare const GroupStateWrapper: React__default.FunctionComponent<{
24
+ /**
25
+ * Whether new groups using `auto` should be open by default.
26
+ */
27
+ openByDefault: boolean;
28
+ children: JSX.Element | JSX.Element[];
29
+ }>;
30
+ declare const StyledGroup: FC<Props$7>;
31
+
32
+ interface Props$6 {
33
+ className?: string;
34
+ info: proto.LabelComponent;
35
+ }
36
+ declare const StyledLabel: FC<Props$6>;
37
+
38
+ type NestContentProps = {
39
+ className?: string;
40
+ children?: JSX.Element | JSX.Element[];
41
+ };
42
+ declare const StyledNestedContent: FC<NestContentProps>;
43
+
44
+ interface Props$5 {
45
+ className?: string;
46
+ info: proto.RectComponent;
47
+ }
48
+ declare const Rect: FC<Props$5>;
49
+
50
+ interface Props$4 {
51
+ className?: string;
52
+ info: proto.SliderButtonComponent;
53
+ }
54
+ declare const StyledSliderButton: FC<Props$4>;
55
+
56
+ interface Props$3 {
57
+ className?: string;
58
+ info: proto.SwitchComponent;
59
+ }
60
+ declare const StyledSwitch: FC<Props$3>;
61
+
62
+ interface Props$2 {
63
+ info: proto.TabsComponent;
64
+ }
65
+ declare const Tabs: FC<Props$2>;
66
+
67
+ interface Props$1 {
68
+ className?: string;
69
+ info: proto.TextInputComponent;
70
+ }
71
+ declare const StyledTextInput: FC<Props$1>;
72
+
73
+ interface Props {
74
+ className?: string;
75
+ info: proto.TimelineComponent;
76
+ }
77
+ declare const Timeline: FC<Props>;
78
+
79
+ declare const CORE_FRONTEND_COMPONENT_RENDERER: FrontendComponentRenderer;
80
+
81
+ export { StyledButton as Button, CORE_FRONTEND_COMPONENT_RENDERER, StyledGroup as Group, GroupStateWrapper, StyledLabel as Label, StyledNestedContent as NestedContent, Rect, StyledSliderButton as SliderButton, StageContext, StyledSwitch as Switch, Tabs, StyledTextInput as TextInput, Timeline };
@@ -0,0 +1,81 @@
1
+ export { i as code } from '../index-Db4cPoyC.js';
2
+ import * as React from 'react';
3
+ import React__default, { FC } from 'react';
4
+ import * as proto from '@arcanejs/protocol/core';
5
+ import * as proto$1 from '@arcanejs/protocol';
6
+ import { FrontendComponentRenderer } from '../types.js';
7
+
8
+ interface Props$8 {
9
+ className?: string;
10
+ info: proto.ButtonComponent;
11
+ }
12
+ declare const StyledButton: FC<Props$8>;
13
+
14
+ declare const StageContext: React.Context<{
15
+ sendMessage: (<M extends proto$1.AnyClientComponentMessage>(msg: M) => void) | null;
16
+ renderComponent: (info: proto$1.AnyComponentProto) => JSX.Element;
17
+ }>;
18
+
19
+ interface Props$7 {
20
+ className?: string;
21
+ info: proto.GroupComponent;
22
+ }
23
+ declare const GroupStateWrapper: React__default.FunctionComponent<{
24
+ /**
25
+ * Whether new groups using `auto` should be open by default.
26
+ */
27
+ openByDefault: boolean;
28
+ children: JSX.Element | JSX.Element[];
29
+ }>;
30
+ declare const StyledGroup: FC<Props$7>;
31
+
32
+ interface Props$6 {
33
+ className?: string;
34
+ info: proto.LabelComponent;
35
+ }
36
+ declare const StyledLabel: FC<Props$6>;
37
+
38
+ type NestContentProps = {
39
+ className?: string;
40
+ children?: JSX.Element | JSX.Element[];
41
+ };
42
+ declare const StyledNestedContent: FC<NestContentProps>;
43
+
44
+ interface Props$5 {
45
+ className?: string;
46
+ info: proto.RectComponent;
47
+ }
48
+ declare const Rect: FC<Props$5>;
49
+
50
+ interface Props$4 {
51
+ className?: string;
52
+ info: proto.SliderButtonComponent;
53
+ }
54
+ declare const StyledSliderButton: FC<Props$4>;
55
+
56
+ interface Props$3 {
57
+ className?: string;
58
+ info: proto.SwitchComponent;
59
+ }
60
+ declare const StyledSwitch: FC<Props$3>;
61
+
62
+ interface Props$2 {
63
+ info: proto.TabsComponent;
64
+ }
65
+ declare const Tabs: FC<Props$2>;
66
+
67
+ interface Props$1 {
68
+ className?: string;
69
+ info: proto.TextInputComponent;
70
+ }
71
+ declare const StyledTextInput: FC<Props$1>;
72
+
73
+ interface Props {
74
+ className?: string;
75
+ info: proto.TimelineComponent;
76
+ }
77
+ declare const Timeline: FC<Props>;
78
+
79
+ declare const CORE_FRONTEND_COMPONENT_RENDERER: FrontendComponentRenderer;
80
+
81
+ export { StyledButton as Button, CORE_FRONTEND_COMPONENT_RENDERER, StyledGroup as Group, GroupStateWrapper, StyledLabel as Label, StyledNestedContent as NestedContent, Rect, StyledSliderButton as SliderButton, StageContext, StyledSwitch as Switch, Tabs, StyledTextInput as TextInput, Timeline };