@astryxdesign/native 0.7.4-canary.720bb10 → 0.7.5-canary.04434e7
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/README.md +116 -4
- package/apple/Sources/AstryxNative/Generated/AstryxBase.swift +1 -1
- package/apple/Sources/AstryxNative/Generated/AstryxNode.swift +69 -0
- package/apple/Sources/AstryxNative/Generated/AstryxWire.swift +67 -0
- package/apple/Sources/AstryxNative/Generated/Badge.swift +89 -0
- package/apple/Sources/AstryxNative/Generated/Button.swift +154 -0
- package/apple/Sources/AstryxNative/Generated/Card.swift +117 -0
- package/apple/Sources/AstryxNative/Generated/Divider.swift +97 -0
- package/apple/Sources/AstryxNative/Generated/HStack.swift +308 -0
- package/apple/Sources/AstryxNative/Generated/Heading.swift +169 -0
- package/apple/Sources/AstryxNative/Generated/ProgressBar.swift +144 -0
- package/apple/Sources/AstryxNative/Generated/Selector.swift +133 -9
- package/apple/Sources/AstryxNative/Generated/Switch.swift +202 -0
- package/apple/Sources/AstryxNative/Generated/Text.swift +172 -0
- package/apple/Sources/AstryxNative/Generated/TextInput.swift +243 -0
- package/apple/Sources/AstryxNative/Generated/VStack.swift +308 -0
- package/apple/Sources/AstryxNative/Logic/AstryxLogicHost.swift +102 -0
- package/apple/Tests/AstryxNativeTests/ControlPropsTests.swift +29 -0
- package/apple/Tests/AstryxNativeTests/LogicHostTests.swift +85 -0
- package/apple/Tests/AstryxNativeTests/WireTests.swift +53 -0
- package/dist/components/Badge.d.ts +10 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Badge.js +7 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +15 -0
- package/dist/components/Card.d.ts +10 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Card.js +7 -0
- package/dist/components/Divider.d.ts +10 -0
- package/dist/components/Divider.d.ts.map +1 -0
- package/dist/components/Divider.js +6 -0
- package/dist/components/HStack.d.ts +10 -0
- package/dist/components/HStack.d.ts.map +1 -0
- package/dist/components/HStack.js +9 -0
- package/dist/components/Heading.d.ts +10 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/Heading.js +14 -0
- package/dist/components/ProgressBar.d.ts +10 -0
- package/dist/components/ProgressBar.d.ts.map +1 -0
- package/dist/components/ProgressBar.js +5 -0
- package/dist/components/Switch.d.ts +10 -0
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/components/Switch.js +6 -0
- package/dist/components/Text.d.ts +10 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Text.js +13 -0
- package/dist/components/TextInput.d.ts +10 -0
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput.js +9 -0
- package/dist/components/VStack.d.ts +10 -0
- package/dist/components/VStack.d.ts.map +1 -0
- package/dist/components/VStack.js +9 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +25 -1
- package/dist/components/stackShared.d.ts +9 -0
- package/dist/components/stackShared.d.ts.map +1 -0
- package/dist/components/stackShared.js +4 -0
- package/dist/contract/fromComponentDoc.d.ts +44 -5
- package/dist/contract/fromComponentDoc.d.ts.map +1 -1
- package/dist/contract/fromComponentDoc.js +47 -4
- package/dist/contract/generateSwift.d.ts.map +1 -1
- package/dist/contract/generateSwift.js +193 -10
- package/dist/contract/generateTypeScript.d.ts.map +1 -1
- package/dist/contract/generateTypeScript.js +69 -9
- package/dist/contract/index.d.ts +7 -3
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +2 -1
- package/dist/contract/parseDocType.d.ts +5 -2
- package/dist/contract/parseDocType.d.ts.map +1 -1
- package/dist/contract/parseDocType.js +34 -5
- package/dist/contract/rules.d.ts +5 -2
- package/dist/contract/rules.d.ts.map +1 -1
- package/dist/contract/rules.js +8 -4
- package/dist/contract/types.d.ts +11 -0
- package/dist/contract/types.d.ts.map +1 -1
- package/dist/logic/connectBridge.d.ts +29 -0
- package/dist/logic/connectBridge.d.ts.map +1 -0
- package/dist/logic/connectBridge.js +32 -0
- package/dist/logic/createLogicCore.d.ts +44 -0
- package/dist/logic/createLogicCore.d.ts.map +1 -0
- package/dist/logic/createLogicCore.js +40 -0
- package/dist/logic/index.d.ts +12 -0
- package/dist/logic/index.d.ts.map +1 -0
- package/dist/logic/index.js +10 -0
- package/dist/types/android.d.ts +136 -2
- package/dist/types/core.d.ts +150 -0
- package/dist/types/ios.d.ts +136 -2
- package/dist/types/macos.d.ts +136 -2
- package/dist/types/shared.d.ts +136 -2
- package/dist/types/windows.d.ts +136 -2
- package/package.json +10 -4
- package/src/components/Badge.ts +18 -0
- package/src/components/Button.ts +26 -0
- package/src/components/Card.ts +18 -0
- package/src/components/Divider.ts +17 -0
- package/src/components/HStack.ts +20 -0
- package/src/components/Heading.ts +25 -0
- package/src/components/ProgressBar.ts +16 -0
- package/src/components/Switch.ts +17 -0
- package/src/components/Text.ts +24 -0
- package/src/components/TextInput.ts +20 -0
- package/src/components/VStack.ts +20 -0
- package/src/components/index.ts +25 -1
- package/src/components/stackShared.ts +14 -0
- package/src/contract/contracts.test.ts +58 -0
- package/src/contract/fromComponentDoc.test.ts +97 -0
- package/src/contract/fromComponentDoc.ts +106 -9
- package/src/contract/generateSwift.ts +223 -10
- package/src/contract/generateTypeScript.ts +83 -10
- package/src/contract/index.ts +13 -4
- package/src/contract/parseDocType.test.ts +45 -0
- package/src/contract/parseDocType.ts +41 -6
- package/src/contract/rules.ts +11 -4
- package/src/contract/types.ts +6 -0
- package/src/logic/connectBridge.ts +72 -0
- package/src/logic/createLogicCore.ts +97 -0
- package/src/logic/index.ts +19 -0
- package/src/logic/logic.test.ts +160 -0
package/dist/types/ios.d.ts
CHANGED
|
@@ -1,8 +1,142 @@
|
|
|
1
1
|
// Generated by @astryxdesign/native. Do not edit.
|
|
2
|
-
import type {SelectorCoreProps} from './core.js';
|
|
3
|
-
export type {AstryxSharedBaseProps, SelectorOption, SelectorCoreProps} from './core.js';
|
|
2
|
+
import type {AstryxSharedBaseProps, SelectorOption, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
3
|
+
export type {AstryxSharedBaseProps, AstryxContentNode, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorOption, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
4
|
+
/** Badge props: core contract plus the ios contract. */
|
|
5
|
+
export interface BadgeProps extends BadgeCoreProps {}
|
|
6
|
+
export declare function Badge(props: BadgeProps): unknown;
|
|
7
|
+
/** Button props: core contract plus the ios contract. */
|
|
8
|
+
export interface ButtonProps extends ButtonCoreProps {}
|
|
9
|
+
export declare function Button(props: ButtonProps): unknown;
|
|
10
|
+
/** Card props: core contract plus the ios contract. */
|
|
11
|
+
export interface CardProps extends CardCoreProps {}
|
|
12
|
+
export declare function Card(props: CardProps): unknown;
|
|
13
|
+
/** Divider props: core contract plus the ios contract. */
|
|
14
|
+
export interface DividerProps extends DividerCoreProps {}
|
|
15
|
+
export declare function Divider(props: DividerProps): unknown;
|
|
16
|
+
/** Heading props: core contract plus the ios contract. */
|
|
17
|
+
export interface HeadingProps extends HeadingCoreProps {}
|
|
18
|
+
export declare function Heading(props: HeadingProps): unknown;
|
|
19
|
+
/** HStack props: core contract plus the ios contract. */
|
|
20
|
+
export interface HStackProps extends HStackCoreProps {}
|
|
21
|
+
export declare function HStack(props: HStackProps): unknown;
|
|
22
|
+
/** ProgressBar props: core contract plus the ios contract. */
|
|
23
|
+
export interface ProgressBarProps extends ProgressBarCoreProps {}
|
|
24
|
+
export declare function ProgressBar(props: ProgressBarProps): unknown;
|
|
4
25
|
/** Selector props: core contract plus the ios contract. */
|
|
5
26
|
export interface SelectorProps extends SelectorCoreProps {
|
|
6
27
|
menuStyle?: 'popUp' | 'pullDown';
|
|
7
28
|
}
|
|
8
29
|
export declare function Selector(props: SelectorProps): unknown;
|
|
30
|
+
/** Switch props: core contract plus the ios contract. */
|
|
31
|
+
export interface SwitchProps extends SwitchCoreProps {}
|
|
32
|
+
export declare function Switch(props: SwitchProps): unknown;
|
|
33
|
+
/** Text props: core contract plus the ios contract. */
|
|
34
|
+
export interface TextProps extends TextCoreProps {}
|
|
35
|
+
export declare function Text(props: TextProps): unknown;
|
|
36
|
+
/** TextInput props: core contract plus the ios contract. */
|
|
37
|
+
export interface TextInputProps extends TextInputCoreProps {}
|
|
38
|
+
export declare function TextInput(props: TextInputProps): unknown;
|
|
39
|
+
/** VStack props: core contract plus the ios contract. */
|
|
40
|
+
export interface VStackProps extends VStackCoreProps {}
|
|
41
|
+
export declare function VStack(props: VStackProps): unknown;
|
|
42
|
+
/** Badge as JSON from a TypeScript core. */
|
|
43
|
+
export interface BadgeNode {
|
|
44
|
+
component: 'Badge';
|
|
45
|
+
key: string;
|
|
46
|
+
base?: AstryxSharedBaseProps;
|
|
47
|
+
props: {variant?: 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'blue' | 'cyan' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; label: string;};
|
|
48
|
+
}
|
|
49
|
+
/** Button as JSON from a TypeScript core. */
|
|
50
|
+
export interface ButtonNode {
|
|
51
|
+
component: 'Button';
|
|
52
|
+
key: string;
|
|
53
|
+
base?: AstryxSharedBaseProps;
|
|
54
|
+
props: {label: string; variant?: 'primary' | 'secondary' | 'ghost' | 'destructive'; size?: 'sm' | 'md' | 'lg'; elevation?: 'none' | 'low' | 'med' | 'high'; isLoading?: boolean; isInterruptible?: boolean; isDisabled?: boolean; tooltip?: string; href?: string;};
|
|
55
|
+
/** The callbacks the core listens to. */
|
|
56
|
+
events?: ReadonlyArray<'onClick'>;
|
|
57
|
+
}
|
|
58
|
+
/** Card as JSON from a TypeScript core. */
|
|
59
|
+
export interface CardNode {
|
|
60
|
+
component: 'Card';
|
|
61
|
+
key: string;
|
|
62
|
+
base?: AstryxSharedBaseProps;
|
|
63
|
+
props: {children?: ReadonlyArray<AstryxNode>; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; variant?: 'default' | 'transparent' | 'muted' | 'blue' | 'cyan' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; elevation?: 'none' | 'low' | 'med' | 'high';};
|
|
64
|
+
}
|
|
65
|
+
/** Divider as JSON from a TypeScript core. */
|
|
66
|
+
export interface DividerNode {
|
|
67
|
+
component: 'Divider';
|
|
68
|
+
key: string;
|
|
69
|
+
base?: AstryxSharedBaseProps;
|
|
70
|
+
props: {orientation?: 'horizontal' | 'vertical'; label?: string; variant?: 'subtle' | 'strong'; isFullBleed?: boolean;};
|
|
71
|
+
}
|
|
72
|
+
/** Heading as JSON from a TypeScript core. */
|
|
73
|
+
export interface HeadingNode {
|
|
74
|
+
component: 'Heading';
|
|
75
|
+
key: string;
|
|
76
|
+
base?: AstryxSharedBaseProps;
|
|
77
|
+
props: {level: 1 | 2 | 3 | 4 | 5 | 6; type?: 'display-1' | 'display-2' | 'display-3'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; children: string; accessibilityLevel?: 1 | 2 | 3 | 4 | 5 | 6; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean;};
|
|
78
|
+
}
|
|
79
|
+
/** HStack as JSON from a TypeScript core. */
|
|
80
|
+
export interface HStackNode {
|
|
81
|
+
component: 'HStack';
|
|
82
|
+
key: string;
|
|
83
|
+
base?: AstryxSharedBaseProps;
|
|
84
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; vAlign?: 'start' | 'center' | 'end' | 'stretch'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
85
|
+
}
|
|
86
|
+
/** ProgressBar as JSON from a TypeScript core. */
|
|
87
|
+
export interface ProgressBarNode {
|
|
88
|
+
component: 'ProgressBar';
|
|
89
|
+
key: string;
|
|
90
|
+
base?: AstryxSharedBaseProps;
|
|
91
|
+
props: {label: string; value?: number; max?: number; isLabelHidden?: boolean; hasValueLabel?: boolean; variant?: 'accent' | 'success' | 'warning' | 'error' | 'neutral'; isIndeterminate?: boolean; marks?: ReadonlyArray<{value: number; label: string;}>; isDisabled?: boolean;};
|
|
92
|
+
}
|
|
93
|
+
/** Selector as JSON from a TypeScript core. */
|
|
94
|
+
export interface SelectorNode {
|
|
95
|
+
component: 'Selector';
|
|
96
|
+
key: string;
|
|
97
|
+
base?: AstryxSharedBaseProps;
|
|
98
|
+
props: {label: string; options: ReadonlyArray<SelectorOption>; value?: string; hasClear?: boolean; hasSearch?: boolean; searchPlaceholder?: string; placeholder?: string; size?: 'sm' | 'md' | 'lg'; variant?: 'input' | 'secondary' | 'ghost'; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; indicatorPosition?: 'start' | 'end'; isLoading?: boolean; menuStyle?: 'popUp' | 'pullDown';};
|
|
99
|
+
/** The callbacks the core listens to. */
|
|
100
|
+
events?: ReadonlyArray<'onChange'>;
|
|
101
|
+
}
|
|
102
|
+
/** Switch as JSON from a TypeScript core. */
|
|
103
|
+
export interface SwitchNode {
|
|
104
|
+
component: 'Switch';
|
|
105
|
+
key: string;
|
|
106
|
+
base?: AstryxSharedBaseProps;
|
|
107
|
+
props: {label: string; value: boolean; isLoading?: boolean; isLabelHidden?: boolean; description?: string; isDisabled?: boolean; size?: 'sm' | 'md'; disabledMessage?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'warning' | 'error' | 'success'; message?: string;}; labelTooltip?: string; labelPosition?: 'start' | 'end'; labelSpacing?: 'hug' | 'spread';};
|
|
108
|
+
/** The callbacks the core listens to. */
|
|
109
|
+
events?: ReadonlyArray<'onChange'>;
|
|
110
|
+
}
|
|
111
|
+
/** Text as JSON from a TypeScript core. */
|
|
112
|
+
export interface TextNode {
|
|
113
|
+
component: 'Text';
|
|
114
|
+
key: string;
|
|
115
|
+
base?: AstryxSharedBaseProps;
|
|
116
|
+
props: {type?: 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3' | 'inherit'; children: string; size?: '4xs' | '3xs' | '2xs' | 'xsm' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean; hasTabularNumbers?: boolean;};
|
|
117
|
+
}
|
|
118
|
+
/** TextInput as JSON from a TypeScript core. */
|
|
119
|
+
export interface TextInputNode {
|
|
120
|
+
component: 'TextInput';
|
|
121
|
+
key: string;
|
|
122
|
+
base?: AstryxSharedBaseProps;
|
|
123
|
+
props: {type?: 'text' | 'password' | 'email'; label: string; value: string; size?: 'sm' | 'md' | 'lg'; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLoading?: boolean; placeholder?: string; labelTooltip?: string; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; hasClear?: boolean; hasAutoFocus?: boolean;};
|
|
124
|
+
/** The callbacks the core listens to. */
|
|
125
|
+
events?: ReadonlyArray<'onChange' | 'onEnter'>;
|
|
126
|
+
}
|
|
127
|
+
/** VStack as JSON from a TypeScript core. */
|
|
128
|
+
export interface VStackNode {
|
|
129
|
+
component: 'VStack';
|
|
130
|
+
key: string;
|
|
131
|
+
base?: AstryxSharedBaseProps;
|
|
132
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'stretch'; vAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
133
|
+
}
|
|
134
|
+
/** Any Astryx component a TypeScript core can send. */
|
|
135
|
+
export type AstryxNode = BadgeNode | ButtonNode | CardNode | DividerNode | HeadingNode | HStackNode | ProgressBarNode | SelectorNode | SwitchNode | TextNode | TextInputNode | VStackNode;
|
|
136
|
+
/** A callback a native view called, sent back to the core. */
|
|
137
|
+
export type AstryxAction =
|
|
138
|
+
| {key: string; component: 'Button'; event: 'onClick'; args: []}
|
|
139
|
+
| {key: string; component: 'Selector'; event: 'onChange'; args: [string]}
|
|
140
|
+
| {key: string; component: 'Switch'; event: 'onChange'; args: [boolean]}
|
|
141
|
+
| {key: string; component: 'TextInput'; event: 'onChange'; args: [string]}
|
|
142
|
+
| {key: string; component: 'TextInput'; event: 'onEnter'; args: []};
|
package/dist/types/macos.d.ts
CHANGED
|
@@ -1,8 +1,142 @@
|
|
|
1
1
|
// Generated by @astryxdesign/native. Do not edit.
|
|
2
|
-
import type {SelectorCoreProps} from './core.js';
|
|
3
|
-
export type {AstryxSharedBaseProps, SelectorOption, SelectorCoreProps} from './core.js';
|
|
2
|
+
import type {AstryxSharedBaseProps, SelectorOption, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
3
|
+
export type {AstryxSharedBaseProps, AstryxContentNode, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorOption, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
4
|
+
/** Badge props: core contract plus the macos contract. */
|
|
5
|
+
export interface BadgeProps extends BadgeCoreProps {}
|
|
6
|
+
export declare function Badge(props: BadgeProps): unknown;
|
|
7
|
+
/** Button props: core contract plus the macos contract. */
|
|
8
|
+
export interface ButtonProps extends ButtonCoreProps {}
|
|
9
|
+
export declare function Button(props: ButtonProps): unknown;
|
|
10
|
+
/** Card props: core contract plus the macos contract. */
|
|
11
|
+
export interface CardProps extends CardCoreProps {}
|
|
12
|
+
export declare function Card(props: CardProps): unknown;
|
|
13
|
+
/** Divider props: core contract plus the macos contract. */
|
|
14
|
+
export interface DividerProps extends DividerCoreProps {}
|
|
15
|
+
export declare function Divider(props: DividerProps): unknown;
|
|
16
|
+
/** Heading props: core contract plus the macos contract. */
|
|
17
|
+
export interface HeadingProps extends HeadingCoreProps {}
|
|
18
|
+
export declare function Heading(props: HeadingProps): unknown;
|
|
19
|
+
/** HStack props: core contract plus the macos contract. */
|
|
20
|
+
export interface HStackProps extends HStackCoreProps {}
|
|
21
|
+
export declare function HStack(props: HStackProps): unknown;
|
|
22
|
+
/** ProgressBar props: core contract plus the macos contract. */
|
|
23
|
+
export interface ProgressBarProps extends ProgressBarCoreProps {}
|
|
24
|
+
export declare function ProgressBar(props: ProgressBarProps): unknown;
|
|
4
25
|
/** Selector props: core contract plus the macos contract. */
|
|
5
26
|
export interface SelectorProps extends SelectorCoreProps {
|
|
6
27
|
menuStyle?: 'popUp' | 'pullDown';
|
|
7
28
|
}
|
|
8
29
|
export declare function Selector(props: SelectorProps): unknown;
|
|
30
|
+
/** Switch props: core contract plus the macos contract. */
|
|
31
|
+
export interface SwitchProps extends SwitchCoreProps {}
|
|
32
|
+
export declare function Switch(props: SwitchProps): unknown;
|
|
33
|
+
/** Text props: core contract plus the macos contract. */
|
|
34
|
+
export interface TextProps extends TextCoreProps {}
|
|
35
|
+
export declare function Text(props: TextProps): unknown;
|
|
36
|
+
/** TextInput props: core contract plus the macos contract. */
|
|
37
|
+
export interface TextInputProps extends TextInputCoreProps {}
|
|
38
|
+
export declare function TextInput(props: TextInputProps): unknown;
|
|
39
|
+
/** VStack props: core contract plus the macos contract. */
|
|
40
|
+
export interface VStackProps extends VStackCoreProps {}
|
|
41
|
+
export declare function VStack(props: VStackProps): unknown;
|
|
42
|
+
/** Badge as JSON from a TypeScript core. */
|
|
43
|
+
export interface BadgeNode {
|
|
44
|
+
component: 'Badge';
|
|
45
|
+
key: string;
|
|
46
|
+
base?: AstryxSharedBaseProps;
|
|
47
|
+
props: {variant?: 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'blue' | 'cyan' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; label: string;};
|
|
48
|
+
}
|
|
49
|
+
/** Button as JSON from a TypeScript core. */
|
|
50
|
+
export interface ButtonNode {
|
|
51
|
+
component: 'Button';
|
|
52
|
+
key: string;
|
|
53
|
+
base?: AstryxSharedBaseProps;
|
|
54
|
+
props: {label: string; variant?: 'primary' | 'secondary' | 'ghost' | 'destructive'; size?: 'sm' | 'md' | 'lg'; elevation?: 'none' | 'low' | 'med' | 'high'; isLoading?: boolean; isInterruptible?: boolean; isDisabled?: boolean; tooltip?: string; href?: string;};
|
|
55
|
+
/** The callbacks the core listens to. */
|
|
56
|
+
events?: ReadonlyArray<'onClick'>;
|
|
57
|
+
}
|
|
58
|
+
/** Card as JSON from a TypeScript core. */
|
|
59
|
+
export interface CardNode {
|
|
60
|
+
component: 'Card';
|
|
61
|
+
key: string;
|
|
62
|
+
base?: AstryxSharedBaseProps;
|
|
63
|
+
props: {children?: ReadonlyArray<AstryxNode>; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; variant?: 'default' | 'transparent' | 'muted' | 'blue' | 'cyan' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; elevation?: 'none' | 'low' | 'med' | 'high';};
|
|
64
|
+
}
|
|
65
|
+
/** Divider as JSON from a TypeScript core. */
|
|
66
|
+
export interface DividerNode {
|
|
67
|
+
component: 'Divider';
|
|
68
|
+
key: string;
|
|
69
|
+
base?: AstryxSharedBaseProps;
|
|
70
|
+
props: {orientation?: 'horizontal' | 'vertical'; label?: string; variant?: 'subtle' | 'strong'; isFullBleed?: boolean;};
|
|
71
|
+
}
|
|
72
|
+
/** Heading as JSON from a TypeScript core. */
|
|
73
|
+
export interface HeadingNode {
|
|
74
|
+
component: 'Heading';
|
|
75
|
+
key: string;
|
|
76
|
+
base?: AstryxSharedBaseProps;
|
|
77
|
+
props: {level: 1 | 2 | 3 | 4 | 5 | 6; type?: 'display-1' | 'display-2' | 'display-3'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; children: string; accessibilityLevel?: 1 | 2 | 3 | 4 | 5 | 6; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean;};
|
|
78
|
+
}
|
|
79
|
+
/** HStack as JSON from a TypeScript core. */
|
|
80
|
+
export interface HStackNode {
|
|
81
|
+
component: 'HStack';
|
|
82
|
+
key: string;
|
|
83
|
+
base?: AstryxSharedBaseProps;
|
|
84
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; vAlign?: 'start' | 'center' | 'end' | 'stretch'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
85
|
+
}
|
|
86
|
+
/** ProgressBar as JSON from a TypeScript core. */
|
|
87
|
+
export interface ProgressBarNode {
|
|
88
|
+
component: 'ProgressBar';
|
|
89
|
+
key: string;
|
|
90
|
+
base?: AstryxSharedBaseProps;
|
|
91
|
+
props: {label: string; value?: number; max?: number; isLabelHidden?: boolean; hasValueLabel?: boolean; variant?: 'accent' | 'success' | 'warning' | 'error' | 'neutral'; isIndeterminate?: boolean; marks?: ReadonlyArray<{value: number; label: string;}>; isDisabled?: boolean;};
|
|
92
|
+
}
|
|
93
|
+
/** Selector as JSON from a TypeScript core. */
|
|
94
|
+
export interface SelectorNode {
|
|
95
|
+
component: 'Selector';
|
|
96
|
+
key: string;
|
|
97
|
+
base?: AstryxSharedBaseProps;
|
|
98
|
+
props: {label: string; options: ReadonlyArray<SelectorOption>; value?: string; hasClear?: boolean; hasSearch?: boolean; searchPlaceholder?: string; placeholder?: string; size?: 'sm' | 'md' | 'lg'; variant?: 'input' | 'secondary' | 'ghost'; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; indicatorPosition?: 'start' | 'end'; isLoading?: boolean; menuStyle?: 'popUp' | 'pullDown';};
|
|
99
|
+
/** The callbacks the core listens to. */
|
|
100
|
+
events?: ReadonlyArray<'onChange'>;
|
|
101
|
+
}
|
|
102
|
+
/** Switch as JSON from a TypeScript core. */
|
|
103
|
+
export interface SwitchNode {
|
|
104
|
+
component: 'Switch';
|
|
105
|
+
key: string;
|
|
106
|
+
base?: AstryxSharedBaseProps;
|
|
107
|
+
props: {label: string; value: boolean; isLoading?: boolean; isLabelHidden?: boolean; description?: string; isDisabled?: boolean; size?: 'sm' | 'md'; disabledMessage?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'warning' | 'error' | 'success'; message?: string;}; labelTooltip?: string; labelPosition?: 'start' | 'end'; labelSpacing?: 'hug' | 'spread';};
|
|
108
|
+
/** The callbacks the core listens to. */
|
|
109
|
+
events?: ReadonlyArray<'onChange'>;
|
|
110
|
+
}
|
|
111
|
+
/** Text as JSON from a TypeScript core. */
|
|
112
|
+
export interface TextNode {
|
|
113
|
+
component: 'Text';
|
|
114
|
+
key: string;
|
|
115
|
+
base?: AstryxSharedBaseProps;
|
|
116
|
+
props: {type?: 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3' | 'inherit'; children: string; size?: '4xs' | '3xs' | '2xs' | 'xsm' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean; hasTabularNumbers?: boolean;};
|
|
117
|
+
}
|
|
118
|
+
/** TextInput as JSON from a TypeScript core. */
|
|
119
|
+
export interface TextInputNode {
|
|
120
|
+
component: 'TextInput';
|
|
121
|
+
key: string;
|
|
122
|
+
base?: AstryxSharedBaseProps;
|
|
123
|
+
props: {type?: 'text' | 'password' | 'email'; label: string; value: string; size?: 'sm' | 'md' | 'lg'; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLoading?: boolean; placeholder?: string; labelTooltip?: string; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; hasClear?: boolean; hasAutoFocus?: boolean;};
|
|
124
|
+
/** The callbacks the core listens to. */
|
|
125
|
+
events?: ReadonlyArray<'onChange' | 'onEnter'>;
|
|
126
|
+
}
|
|
127
|
+
/** VStack as JSON from a TypeScript core. */
|
|
128
|
+
export interface VStackNode {
|
|
129
|
+
component: 'VStack';
|
|
130
|
+
key: string;
|
|
131
|
+
base?: AstryxSharedBaseProps;
|
|
132
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'stretch'; vAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
133
|
+
}
|
|
134
|
+
/** Any Astryx component a TypeScript core can send. */
|
|
135
|
+
export type AstryxNode = BadgeNode | ButtonNode | CardNode | DividerNode | HeadingNode | HStackNode | ProgressBarNode | SelectorNode | SwitchNode | TextNode | TextInputNode | VStackNode;
|
|
136
|
+
/** A callback a native view called, sent back to the core. */
|
|
137
|
+
export type AstryxAction =
|
|
138
|
+
| {key: string; component: 'Button'; event: 'onClick'; args: []}
|
|
139
|
+
| {key: string; component: 'Selector'; event: 'onChange'; args: [string]}
|
|
140
|
+
| {key: string; component: 'Switch'; event: 'onChange'; args: [boolean]}
|
|
141
|
+
| {key: string; component: 'TextInput'; event: 'onChange'; args: [string]}
|
|
142
|
+
| {key: string; component: 'TextInput'; event: 'onEnter'; args: []};
|
package/dist/types/shared.d.ts
CHANGED
|
@@ -1,6 +1,140 @@
|
|
|
1
1
|
// Generated by @astryxdesign/native. Do not edit.
|
|
2
|
-
import type {SelectorCoreProps} from './core.js';
|
|
3
|
-
export type {AstryxSharedBaseProps, SelectorOption, SelectorCoreProps} from './core.js';
|
|
2
|
+
import type {AstryxSharedBaseProps, SelectorOption, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
3
|
+
export type {AstryxSharedBaseProps, AstryxContentNode, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorOption, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
4
|
+
/** Badge props: core contract only. */
|
|
5
|
+
export interface BadgeProps extends BadgeCoreProps {}
|
|
6
|
+
export declare function Badge(props: BadgeProps): unknown;
|
|
7
|
+
/** Button props: core contract only. */
|
|
8
|
+
export interface ButtonProps extends ButtonCoreProps {}
|
|
9
|
+
export declare function Button(props: ButtonProps): unknown;
|
|
10
|
+
/** Card props: core contract only. */
|
|
11
|
+
export interface CardProps extends CardCoreProps {}
|
|
12
|
+
export declare function Card(props: CardProps): unknown;
|
|
13
|
+
/** Divider props: core contract only. */
|
|
14
|
+
export interface DividerProps extends DividerCoreProps {}
|
|
15
|
+
export declare function Divider(props: DividerProps): unknown;
|
|
16
|
+
/** Heading props: core contract only. */
|
|
17
|
+
export interface HeadingProps extends HeadingCoreProps {}
|
|
18
|
+
export declare function Heading(props: HeadingProps): unknown;
|
|
19
|
+
/** HStack props: core contract only. */
|
|
20
|
+
export interface HStackProps extends HStackCoreProps {}
|
|
21
|
+
export declare function HStack(props: HStackProps): unknown;
|
|
22
|
+
/** ProgressBar props: core contract only. */
|
|
23
|
+
export interface ProgressBarProps extends ProgressBarCoreProps {}
|
|
24
|
+
export declare function ProgressBar(props: ProgressBarProps): unknown;
|
|
4
25
|
/** Selector props: core contract only. */
|
|
5
26
|
export interface SelectorProps extends SelectorCoreProps {}
|
|
6
27
|
export declare function Selector(props: SelectorProps): unknown;
|
|
28
|
+
/** Switch props: core contract only. */
|
|
29
|
+
export interface SwitchProps extends SwitchCoreProps {}
|
|
30
|
+
export declare function Switch(props: SwitchProps): unknown;
|
|
31
|
+
/** Text props: core contract only. */
|
|
32
|
+
export interface TextProps extends TextCoreProps {}
|
|
33
|
+
export declare function Text(props: TextProps): unknown;
|
|
34
|
+
/** TextInput props: core contract only. */
|
|
35
|
+
export interface TextInputProps extends TextInputCoreProps {}
|
|
36
|
+
export declare function TextInput(props: TextInputProps): unknown;
|
|
37
|
+
/** VStack props: core contract only. */
|
|
38
|
+
export interface VStackProps extends VStackCoreProps {}
|
|
39
|
+
export declare function VStack(props: VStackProps): unknown;
|
|
40
|
+
/** Badge as JSON from a TypeScript core. */
|
|
41
|
+
export interface BadgeNode {
|
|
42
|
+
component: 'Badge';
|
|
43
|
+
key: string;
|
|
44
|
+
base?: AstryxSharedBaseProps;
|
|
45
|
+
props: {variant?: 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'blue' | 'cyan' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; label: string;};
|
|
46
|
+
}
|
|
47
|
+
/** Button as JSON from a TypeScript core. */
|
|
48
|
+
export interface ButtonNode {
|
|
49
|
+
component: 'Button';
|
|
50
|
+
key: string;
|
|
51
|
+
base?: AstryxSharedBaseProps;
|
|
52
|
+
props: {label: string; variant?: 'primary' | 'secondary' | 'ghost' | 'destructive'; size?: 'sm' | 'md' | 'lg'; elevation?: 'none' | 'low' | 'med' | 'high'; isLoading?: boolean; isInterruptible?: boolean; isDisabled?: boolean; tooltip?: string; href?: string;};
|
|
53
|
+
/** The callbacks the core listens to. */
|
|
54
|
+
events?: ReadonlyArray<'onClick'>;
|
|
55
|
+
}
|
|
56
|
+
/** Card as JSON from a TypeScript core. */
|
|
57
|
+
export interface CardNode {
|
|
58
|
+
component: 'Card';
|
|
59
|
+
key: string;
|
|
60
|
+
base?: AstryxSharedBaseProps;
|
|
61
|
+
props: {children?: ReadonlyArray<AstryxNode>; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; variant?: 'default' | 'transparent' | 'muted' | 'blue' | 'cyan' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; elevation?: 'none' | 'low' | 'med' | 'high';};
|
|
62
|
+
}
|
|
63
|
+
/** Divider as JSON from a TypeScript core. */
|
|
64
|
+
export interface DividerNode {
|
|
65
|
+
component: 'Divider';
|
|
66
|
+
key: string;
|
|
67
|
+
base?: AstryxSharedBaseProps;
|
|
68
|
+
props: {orientation?: 'horizontal' | 'vertical'; label?: string; variant?: 'subtle' | 'strong'; isFullBleed?: boolean;};
|
|
69
|
+
}
|
|
70
|
+
/** Heading as JSON from a TypeScript core. */
|
|
71
|
+
export interface HeadingNode {
|
|
72
|
+
component: 'Heading';
|
|
73
|
+
key: string;
|
|
74
|
+
base?: AstryxSharedBaseProps;
|
|
75
|
+
props: {level: 1 | 2 | 3 | 4 | 5 | 6; type?: 'display-1' | 'display-2' | 'display-3'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; children: string; accessibilityLevel?: 1 | 2 | 3 | 4 | 5 | 6; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean;};
|
|
76
|
+
}
|
|
77
|
+
/** HStack as JSON from a TypeScript core. */
|
|
78
|
+
export interface HStackNode {
|
|
79
|
+
component: 'HStack';
|
|
80
|
+
key: string;
|
|
81
|
+
base?: AstryxSharedBaseProps;
|
|
82
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; vAlign?: 'start' | 'center' | 'end' | 'stretch'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
83
|
+
}
|
|
84
|
+
/** ProgressBar as JSON from a TypeScript core. */
|
|
85
|
+
export interface ProgressBarNode {
|
|
86
|
+
component: 'ProgressBar';
|
|
87
|
+
key: string;
|
|
88
|
+
base?: AstryxSharedBaseProps;
|
|
89
|
+
props: {label: string; value?: number; max?: number; isLabelHidden?: boolean; hasValueLabel?: boolean; variant?: 'accent' | 'success' | 'warning' | 'error' | 'neutral'; isIndeterminate?: boolean; marks?: ReadonlyArray<{value: number; label: string;}>; isDisabled?: boolean;};
|
|
90
|
+
}
|
|
91
|
+
/** Selector as JSON from a TypeScript core. */
|
|
92
|
+
export interface SelectorNode {
|
|
93
|
+
component: 'Selector';
|
|
94
|
+
key: string;
|
|
95
|
+
base?: AstryxSharedBaseProps;
|
|
96
|
+
props: {label: string; options: ReadonlyArray<SelectorOption>; value?: string; hasClear?: boolean; hasSearch?: boolean; searchPlaceholder?: string; placeholder?: string; size?: 'sm' | 'md' | 'lg'; variant?: 'input' | 'secondary' | 'ghost'; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; indicatorPosition?: 'start' | 'end'; isLoading?: boolean;};
|
|
97
|
+
/** The callbacks the core listens to. */
|
|
98
|
+
events?: ReadonlyArray<'onChange'>;
|
|
99
|
+
}
|
|
100
|
+
/** Switch as JSON from a TypeScript core. */
|
|
101
|
+
export interface SwitchNode {
|
|
102
|
+
component: 'Switch';
|
|
103
|
+
key: string;
|
|
104
|
+
base?: AstryxSharedBaseProps;
|
|
105
|
+
props: {label: string; value: boolean; isLoading?: boolean; isLabelHidden?: boolean; description?: string; isDisabled?: boolean; size?: 'sm' | 'md'; disabledMessage?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'warning' | 'error' | 'success'; message?: string;}; labelTooltip?: string; labelPosition?: 'start' | 'end'; labelSpacing?: 'hug' | 'spread';};
|
|
106
|
+
/** The callbacks the core listens to. */
|
|
107
|
+
events?: ReadonlyArray<'onChange'>;
|
|
108
|
+
}
|
|
109
|
+
/** Text as JSON from a TypeScript core. */
|
|
110
|
+
export interface TextNode {
|
|
111
|
+
component: 'Text';
|
|
112
|
+
key: string;
|
|
113
|
+
base?: AstryxSharedBaseProps;
|
|
114
|
+
props: {type?: 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3' | 'inherit'; children: string; size?: '4xs' | '3xs' | '2xs' | 'xsm' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean; hasTabularNumbers?: boolean;};
|
|
115
|
+
}
|
|
116
|
+
/** TextInput as JSON from a TypeScript core. */
|
|
117
|
+
export interface TextInputNode {
|
|
118
|
+
component: 'TextInput';
|
|
119
|
+
key: string;
|
|
120
|
+
base?: AstryxSharedBaseProps;
|
|
121
|
+
props: {type?: 'text' | 'password' | 'email'; label: string; value: string; size?: 'sm' | 'md' | 'lg'; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLoading?: boolean; placeholder?: string; labelTooltip?: string; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; hasClear?: boolean; hasAutoFocus?: boolean;};
|
|
122
|
+
/** The callbacks the core listens to. */
|
|
123
|
+
events?: ReadonlyArray<'onChange' | 'onEnter'>;
|
|
124
|
+
}
|
|
125
|
+
/** VStack as JSON from a TypeScript core. */
|
|
126
|
+
export interface VStackNode {
|
|
127
|
+
component: 'VStack';
|
|
128
|
+
key: string;
|
|
129
|
+
base?: AstryxSharedBaseProps;
|
|
130
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'stretch'; vAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
131
|
+
}
|
|
132
|
+
/** Any Astryx component a TypeScript core can send. */
|
|
133
|
+
export type AstryxNode = BadgeNode | ButtonNode | CardNode | DividerNode | HeadingNode | HStackNode | ProgressBarNode | SelectorNode | SwitchNode | TextNode | TextInputNode | VStackNode;
|
|
134
|
+
/** A callback a native view called, sent back to the core. */
|
|
135
|
+
export type AstryxAction =
|
|
136
|
+
| {key: string; component: 'Button'; event: 'onClick'; args: []}
|
|
137
|
+
| {key: string; component: 'Selector'; event: 'onChange'; args: [string]}
|
|
138
|
+
| {key: string; component: 'Switch'; event: 'onChange'; args: [boolean]}
|
|
139
|
+
| {key: string; component: 'TextInput'; event: 'onChange'; args: [string]}
|
|
140
|
+
| {key: string; component: 'TextInput'; event: 'onEnter'; args: []};
|
package/dist/types/windows.d.ts
CHANGED
|
@@ -1,6 +1,140 @@
|
|
|
1
1
|
// Generated by @astryxdesign/native. Do not edit.
|
|
2
|
-
import type {SelectorCoreProps} from './core.js';
|
|
3
|
-
export type {AstryxSharedBaseProps, SelectorOption, SelectorCoreProps} from './core.js';
|
|
2
|
+
import type {AstryxSharedBaseProps, SelectorOption, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
3
|
+
export type {AstryxSharedBaseProps, AstryxContentNode, BadgeCoreProps, ButtonCoreProps, CardCoreProps, DividerCoreProps, HeadingCoreProps, HStackCoreProps, ProgressBarCoreProps, SelectorOption, SelectorCoreProps, SwitchCoreProps, TextCoreProps, TextInputCoreProps, VStackCoreProps} from './core.js';
|
|
4
|
+
/** Badge props: core contract plus the windows contract. */
|
|
5
|
+
export interface BadgeProps extends BadgeCoreProps {}
|
|
6
|
+
export declare function Badge(props: BadgeProps): unknown;
|
|
7
|
+
/** Button props: core contract plus the windows contract. */
|
|
8
|
+
export interface ButtonProps extends ButtonCoreProps {}
|
|
9
|
+
export declare function Button(props: ButtonProps): unknown;
|
|
10
|
+
/** Card props: core contract plus the windows contract. */
|
|
11
|
+
export interface CardProps extends CardCoreProps {}
|
|
12
|
+
export declare function Card(props: CardProps): unknown;
|
|
13
|
+
/** Divider props: core contract plus the windows contract. */
|
|
14
|
+
export interface DividerProps extends DividerCoreProps {}
|
|
15
|
+
export declare function Divider(props: DividerProps): unknown;
|
|
16
|
+
/** Heading props: core contract plus the windows contract. */
|
|
17
|
+
export interface HeadingProps extends HeadingCoreProps {}
|
|
18
|
+
export declare function Heading(props: HeadingProps): unknown;
|
|
19
|
+
/** HStack props: core contract plus the windows contract. */
|
|
20
|
+
export interface HStackProps extends HStackCoreProps {}
|
|
21
|
+
export declare function HStack(props: HStackProps): unknown;
|
|
22
|
+
/** ProgressBar props: core contract plus the windows contract. */
|
|
23
|
+
export interface ProgressBarProps extends ProgressBarCoreProps {}
|
|
24
|
+
export declare function ProgressBar(props: ProgressBarProps): unknown;
|
|
4
25
|
/** Selector props: core contract plus the windows contract. */
|
|
5
26
|
export interface SelectorProps extends SelectorCoreProps {}
|
|
6
27
|
export declare function Selector(props: SelectorProps): unknown;
|
|
28
|
+
/** Switch props: core contract plus the windows contract. */
|
|
29
|
+
export interface SwitchProps extends SwitchCoreProps {}
|
|
30
|
+
export declare function Switch(props: SwitchProps): unknown;
|
|
31
|
+
/** Text props: core contract plus the windows contract. */
|
|
32
|
+
export interface TextProps extends TextCoreProps {}
|
|
33
|
+
export declare function Text(props: TextProps): unknown;
|
|
34
|
+
/** TextInput props: core contract plus the windows contract. */
|
|
35
|
+
export interface TextInputProps extends TextInputCoreProps {}
|
|
36
|
+
export declare function TextInput(props: TextInputProps): unknown;
|
|
37
|
+
/** VStack props: core contract plus the windows contract. */
|
|
38
|
+
export interface VStackProps extends VStackCoreProps {}
|
|
39
|
+
export declare function VStack(props: VStackProps): unknown;
|
|
40
|
+
/** Badge as JSON from a TypeScript core. */
|
|
41
|
+
export interface BadgeNode {
|
|
42
|
+
component: 'Badge';
|
|
43
|
+
key: string;
|
|
44
|
+
base?: AstryxSharedBaseProps;
|
|
45
|
+
props: {variant?: 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'blue' | 'cyan' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; label: string;};
|
|
46
|
+
}
|
|
47
|
+
/** Button as JSON from a TypeScript core. */
|
|
48
|
+
export interface ButtonNode {
|
|
49
|
+
component: 'Button';
|
|
50
|
+
key: string;
|
|
51
|
+
base?: AstryxSharedBaseProps;
|
|
52
|
+
props: {label: string; variant?: 'primary' | 'secondary' | 'ghost' | 'destructive'; size?: 'sm' | 'md' | 'lg'; elevation?: 'none' | 'low' | 'med' | 'high'; isLoading?: boolean; isInterruptible?: boolean; isDisabled?: boolean; tooltip?: string; href?: string;};
|
|
53
|
+
/** The callbacks the core listens to. */
|
|
54
|
+
events?: ReadonlyArray<'onClick'>;
|
|
55
|
+
}
|
|
56
|
+
/** Card as JSON from a TypeScript core. */
|
|
57
|
+
export interface CardNode {
|
|
58
|
+
component: 'Card';
|
|
59
|
+
key: string;
|
|
60
|
+
base?: AstryxSharedBaseProps;
|
|
61
|
+
props: {children?: ReadonlyArray<AstryxNode>; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; variant?: 'default' | 'transparent' | 'muted' | 'blue' | 'cyan' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'; elevation?: 'none' | 'low' | 'med' | 'high';};
|
|
62
|
+
}
|
|
63
|
+
/** Divider as JSON from a TypeScript core. */
|
|
64
|
+
export interface DividerNode {
|
|
65
|
+
component: 'Divider';
|
|
66
|
+
key: string;
|
|
67
|
+
base?: AstryxSharedBaseProps;
|
|
68
|
+
props: {orientation?: 'horizontal' | 'vertical'; label?: string; variant?: 'subtle' | 'strong'; isFullBleed?: boolean;};
|
|
69
|
+
}
|
|
70
|
+
/** Heading as JSON from a TypeScript core. */
|
|
71
|
+
export interface HeadingNode {
|
|
72
|
+
component: 'Heading';
|
|
73
|
+
key: string;
|
|
74
|
+
base?: AstryxSharedBaseProps;
|
|
75
|
+
props: {level: 1 | 2 | 3 | 4 | 5 | 6; type?: 'display-1' | 'display-2' | 'display-3'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; children: string; accessibilityLevel?: 1 | 2 | 3 | 4 | 5 | 6; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean;};
|
|
76
|
+
}
|
|
77
|
+
/** HStack as JSON from a TypeScript core. */
|
|
78
|
+
export interface HStackNode {
|
|
79
|
+
component: 'HStack';
|
|
80
|
+
key: string;
|
|
81
|
+
base?: AstryxSharedBaseProps;
|
|
82
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; vAlign?: 'start' | 'center' | 'end' | 'stretch'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
83
|
+
}
|
|
84
|
+
/** ProgressBar as JSON from a TypeScript core. */
|
|
85
|
+
export interface ProgressBarNode {
|
|
86
|
+
component: 'ProgressBar';
|
|
87
|
+
key: string;
|
|
88
|
+
base?: AstryxSharedBaseProps;
|
|
89
|
+
props: {label: string; value?: number; max?: number; isLabelHidden?: boolean; hasValueLabel?: boolean; variant?: 'accent' | 'success' | 'warning' | 'error' | 'neutral'; isIndeterminate?: boolean; marks?: ReadonlyArray<{value: number; label: string;}>; isDisabled?: boolean;};
|
|
90
|
+
}
|
|
91
|
+
/** Selector as JSON from a TypeScript core. */
|
|
92
|
+
export interface SelectorNode {
|
|
93
|
+
component: 'Selector';
|
|
94
|
+
key: string;
|
|
95
|
+
base?: AstryxSharedBaseProps;
|
|
96
|
+
props: {label: string; options: ReadonlyArray<SelectorOption>; value?: string; hasClear?: boolean; hasSearch?: boolean; searchPlaceholder?: string; placeholder?: string; size?: 'sm' | 'md' | 'lg'; variant?: 'input' | 'secondary' | 'ghost'; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; indicatorPosition?: 'start' | 'end'; isLoading?: boolean;};
|
|
97
|
+
/** The callbacks the core listens to. */
|
|
98
|
+
events?: ReadonlyArray<'onChange'>;
|
|
99
|
+
}
|
|
100
|
+
/** Switch as JSON from a TypeScript core. */
|
|
101
|
+
export interface SwitchNode {
|
|
102
|
+
component: 'Switch';
|
|
103
|
+
key: string;
|
|
104
|
+
base?: AstryxSharedBaseProps;
|
|
105
|
+
props: {label: string; value: boolean; isLoading?: boolean; isLabelHidden?: boolean; description?: string; isDisabled?: boolean; size?: 'sm' | 'md'; disabledMessage?: string; isOptional?: boolean; isRequired?: boolean; status?: {type: 'warning' | 'error' | 'success'; message?: string;}; labelTooltip?: string; labelPosition?: 'start' | 'end'; labelSpacing?: 'hug' | 'spread';};
|
|
106
|
+
/** The callbacks the core listens to. */
|
|
107
|
+
events?: ReadonlyArray<'onChange'>;
|
|
108
|
+
}
|
|
109
|
+
/** Text as JSON from a TypeScript core. */
|
|
110
|
+
export interface TextNode {
|
|
111
|
+
component: 'Text';
|
|
112
|
+
key: string;
|
|
113
|
+
base?: AstryxSharedBaseProps;
|
|
114
|
+
props: {type?: 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3' | 'inherit'; children: string; size?: '4xs' | '3xs' | '2xs' | 'xsm' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'; color?: 'primary' | 'secondary' | 'disabled' | 'placeholder' | 'accent' | 'inherit'; weight?: 'normal' | 'medium' | 'semibold' | 'bold'; maxLines?: number; justify?: 'start' | 'center' | 'end'; hasStrikethrough?: boolean; hasTabularNumbers?: boolean;};
|
|
115
|
+
}
|
|
116
|
+
/** TextInput as JSON from a TypeScript core. */
|
|
117
|
+
export interface TextInputNode {
|
|
118
|
+
component: 'TextInput';
|
|
119
|
+
key: string;
|
|
120
|
+
base?: AstryxSharedBaseProps;
|
|
121
|
+
props: {type?: 'text' | 'password' | 'email'; label: string; value: string; size?: 'sm' | 'md' | 'lg'; isLabelHidden?: boolean; description?: string; isOptional?: boolean; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; disabledMessage?: string; isLoading?: boolean; placeholder?: string; labelTooltip?: string; status?: {type: 'error' | 'warning' | 'success'; message?: string;}; statusVariant?: 'attached' | 'detached' | 'tooltip'; hasClear?: boolean; hasAutoFocus?: boolean;};
|
|
122
|
+
/** The callbacks the core listens to. */
|
|
123
|
+
events?: ReadonlyArray<'onChange' | 'onEnter'>;
|
|
124
|
+
}
|
|
125
|
+
/** VStack as JSON from a TypeScript core. */
|
|
126
|
+
export interface VStackNode {
|
|
127
|
+
component: 'VStack';
|
|
128
|
+
key: string;
|
|
129
|
+
base?: AstryxSharedBaseProps;
|
|
130
|
+
props: {gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; padding?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInline?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingInlineEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlock?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockStart?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; paddingBlockEnd?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10; isScrollable?: boolean; hAlign?: 'start' | 'center' | 'end' | 'stretch'; vAlign?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; align?: 'start' | 'center' | 'end' | 'stretch'; wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'; children?: ReadonlyArray<AstryxNode>;};
|
|
131
|
+
}
|
|
132
|
+
/** Any Astryx component a TypeScript core can send. */
|
|
133
|
+
export type AstryxNode = BadgeNode | ButtonNode | CardNode | DividerNode | HeadingNode | HStackNode | ProgressBarNode | SelectorNode | SwitchNode | TextNode | TextInputNode | VStackNode;
|
|
134
|
+
/** A callback a native view called, sent back to the core. */
|
|
135
|
+
export type AstryxAction =
|
|
136
|
+
| {key: string; component: 'Button'; event: 'onClick'; args: []}
|
|
137
|
+
| {key: string; component: 'Selector'; event: 'onChange'; args: [string]}
|
|
138
|
+
| {key: string; component: 'Switch'; event: 'onChange'; args: [boolean]}
|
|
139
|
+
| {key: string; component: 'TextInput'; event: 'onChange'; args: [string]}
|
|
140
|
+
| {key: string; component: 'TextInput'; event: 'onEnter'; args: []};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/native",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5-canary.04434e7",
|
|
4
4
|
"description": "Experimental native platforms for Astryx (iOS, Android, macOS, Windows) — published to npm only under the @canary dist-tag; never released as a stable (latest) version.",
|
|
5
5
|
"author": "Meta Open Source",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,18 +61,24 @@
|
|
|
61
61
|
"source": "./src/contract/index.ts",
|
|
62
62
|
"types": "./dist/contract/index.d.ts",
|
|
63
63
|
"default": "./dist/contract/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./logic": {
|
|
66
|
+
"source": "./src/logic/index.ts",
|
|
67
|
+
"types": "./dist/logic/index.d.ts",
|
|
68
|
+
"default": "./dist/logic/index.js"
|
|
64
69
|
}
|
|
65
70
|
},
|
|
66
71
|
"peerDependencies": {
|
|
67
|
-
"@astryxdesign/core": "0.7.
|
|
72
|
+
"@astryxdesign/core": "0.7.5-canary.04434e7"
|
|
68
73
|
},
|
|
69
74
|
"devDependencies": {
|
|
70
|
-
"@astryxdesign/core": "0.7.
|
|
75
|
+
"@astryxdesign/core": "0.7.5-canary.04434e7"
|
|
71
76
|
},
|
|
72
77
|
"scripts": {
|
|
73
78
|
"build": "node ../../scripts/clean-dist.mjs && tsc --project tsconfig.build.json && node scripts/generate.mjs --types",
|
|
74
79
|
"generate:apple": "pnpm build && node scripts/generate.mjs --apple",
|
|
75
80
|
"test": "vitest run --root ../.. packages/native",
|
|
76
|
-
"typecheck": "tsc --project tsconfig.json --noEmit"
|
|
81
|
+
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
82
|
+
"typecheck:types": "tsc --project tsconfig.types.json"
|
|
77
83
|
}
|
|
78
84
|
}
|