@fluxus-ui/native 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +61 -2
- package/lib/module/Avatar.js +58 -0
- package/lib/module/Avatar.js.map +1 -0
- package/lib/module/Badge.js +72 -0
- package/lib/module/Badge.js.map +1 -0
- package/lib/module/BottomSheet.js +159 -0
- package/lib/module/BottomSheet.js.map +1 -0
- package/lib/module/Button.js +133 -0
- package/lib/module/Button.js.map +1 -0
- package/lib/module/Card.js +71 -0
- package/lib/module/Card.js.map +1 -0
- package/lib/module/Dialog.js +137 -0
- package/lib/module/Dialog.js.map +1 -0
- package/lib/module/Disclosure.js +153 -0
- package/lib/module/Disclosure.js.map +1 -0
- package/lib/module/EmptyState.js +43 -0
- package/lib/module/EmptyState.js.map +1 -0
- package/lib/module/ListItem.js +83 -0
- package/lib/module/ListItem.js.map +1 -0
- package/lib/module/Menu.js +76 -0
- package/lib/module/Menu.js.map +1 -0
- package/lib/module/Message.js +51 -0
- package/lib/module/Message.js.map +1 -0
- package/lib/module/Popover.js +153 -0
- package/lib/module/Popover.js.map +1 -0
- package/lib/module/Progress.js +54 -0
- package/lib/module/Progress.js.map +1 -0
- package/lib/module/Select.js +146 -0
- package/lib/module/Select.js.map +1 -0
- package/lib/module/Skeleton.js +39 -0
- package/lib/module/Skeleton.js.map +1 -0
- package/lib/module/Slider.js +137 -0
- package/lib/module/Slider.js.map +1 -0
- package/lib/module/Spinner.js +30 -0
- package/lib/module/Spinner.js.map +1 -0
- package/lib/module/Swap.js +87 -0
- package/lib/module/Swap.js.map +1 -0
- package/lib/module/Tabs.js +118 -0
- package/lib/module/Tabs.js.map +1 -0
- package/lib/module/Text.js +47 -0
- package/lib/module/Text.js.map +1 -0
- package/lib/module/TextField.js +190 -0
- package/lib/module/TextField.js.map +1 -0
- package/lib/module/Toast.js +108 -0
- package/lib/module/Toast.js.map +1 -0
- package/lib/module/blur.js +55 -0
- package/lib/module/blur.js.map +1 -0
- package/lib/module/controls.js +259 -0
- package/lib/module/controls.js.map +1 -0
- package/lib/module/generated/tokens.js +484 -0
- package/lib/module/generated/tokens.js.map +1 -0
- package/lib/module/icon.js +51 -0
- package/lib/module/icon.js.map +1 -0
- package/lib/module/index.js +33 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/layout.js +75 -0
- package/lib/module/layout.js.map +1 -0
- package/lib/module/motion.js +28 -0
- package/lib/module/motion.js.map +1 -0
- package/lib/module/overlay.js +99 -0
- package/lib/module/overlay.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/pending.js +177 -0
- package/lib/module/pending.js.map +1 -0
- package/lib/module/presence.js +68 -0
- package/lib/module/presence.js.map +1 -0
- package/lib/module/press.js +32 -0
- package/lib/module/press.js.map +1 -0
- package/lib/module/screen.js +45 -0
- package/lib/module/screen.js.map +1 -0
- package/lib/module/theme.js +41 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/Avatar.d.ts +17 -0
- package/lib/typescript/Avatar.d.ts.map +1 -0
- package/lib/typescript/Badge.d.ts +21 -0
- package/lib/typescript/Badge.d.ts.map +1 -0
- package/lib/typescript/BottomSheet.d.ts +27 -0
- package/lib/typescript/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/Button.d.ts +27 -0
- package/lib/typescript/Button.d.ts.map +1 -0
- package/lib/typescript/Card.d.ts +17 -0
- package/lib/typescript/Card.d.ts.map +1 -0
- package/lib/typescript/Dialog.d.ts +34 -0
- package/lib/typescript/Dialog.d.ts.map +1 -0
- package/lib/typescript/Disclosure.d.ts +39 -0
- package/lib/typescript/Disclosure.d.ts.map +1 -0
- package/lib/typescript/EmptyState.d.ts +12 -0
- package/lib/typescript/EmptyState.d.ts.map +1 -0
- package/lib/typescript/ListItem.d.ts +20 -0
- package/lib/typescript/ListItem.d.ts.map +1 -0
- package/lib/typescript/Menu.d.ts +23 -0
- package/lib/typescript/Menu.d.ts.map +1 -0
- package/lib/typescript/Message.d.ts +14 -0
- package/lib/typescript/Message.d.ts.map +1 -0
- package/lib/typescript/Popover.d.ts +71 -0
- package/lib/typescript/Popover.d.ts.map +1 -0
- package/lib/typescript/Progress.d.ts +12 -0
- package/lib/typescript/Progress.d.ts.map +1 -0
- package/lib/typescript/Select.d.ts +30 -0
- package/lib/typescript/Select.d.ts.map +1 -0
- package/lib/typescript/Skeleton.d.ts +13 -0
- package/lib/typescript/Skeleton.d.ts.map +1 -0
- package/lib/typescript/Slider.d.ts +21 -0
- package/lib/typescript/Slider.d.ts.map +1 -0
- package/lib/typescript/Spinner.d.ts +12 -0
- package/lib/typescript/Spinner.d.ts.map +1 -0
- package/lib/typescript/Swap.d.ts +25 -0
- package/lib/typescript/Swap.d.ts.map +1 -0
- package/lib/typescript/Tabs.d.ts +18 -0
- package/lib/typescript/Tabs.d.ts.map +1 -0
- package/lib/typescript/Text.d.ts +20 -0
- package/lib/typescript/Text.d.ts.map +1 -0
- package/lib/typescript/TextField.d.ts +36 -0
- package/lib/typescript/TextField.d.ts.map +1 -0
- package/lib/typescript/Toast.d.ts +25 -0
- package/lib/typescript/Toast.d.ts.map +1 -0
- package/lib/typescript/blur.d.ts +4 -0
- package/lib/typescript/blur.d.ts.map +1 -0
- package/lib/typescript/controls.d.ts +37 -0
- package/lib/typescript/controls.d.ts.map +1 -0
- package/lib/typescript/generated/tokens.d.ts +499 -0
- package/lib/typescript/generated/tokens.d.ts.map +1 -0
- package/lib/typescript/icon.d.ts +25 -0
- package/lib/typescript/icon.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +31 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/layout.d.ts +24 -0
- package/lib/typescript/layout.d.ts.map +1 -0
- package/lib/typescript/motion.d.ts +7 -0
- package/lib/typescript/motion.d.ts.map +1 -0
- package/lib/typescript/overlay.d.ts +33 -0
- package/lib/typescript/overlay.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/pending.d.ts +25 -0
- package/lib/typescript/pending.d.ts.map +1 -0
- package/lib/typescript/presence.d.ts +37 -0
- package/lib/typescript/presence.d.ts.map +1 -0
- package/lib/typescript/press.d.ts +12 -0
- package/lib/typescript/press.d.ts.map +1 -0
- package/lib/typescript/screen.d.ts +16 -0
- package/lib/typescript/screen.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +32 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +100 -3
- package/src/Avatar.tsx +44 -0
- package/src/Badge.tsx +45 -0
- package/src/BottomSheet.tsx +109 -0
- package/src/Button.tsx +117 -0
- package/src/Card.tsx +65 -0
- package/src/Dialog.tsx +93 -0
- package/src/Disclosure.tsx +108 -0
- package/src/EmptyState.tsx +32 -0
- package/src/ListItem.tsx +73 -0
- package/src/Menu.tsx +57 -0
- package/src/Message.tsx +43 -0
- package/src/Popover.tsx +145 -0
- package/src/Progress.tsx +33 -0
- package/src/Select.tsx +118 -0
- package/src/Skeleton.tsx +27 -0
- package/src/Slider.tsx +107 -0
- package/src/Spinner.tsx +18 -0
- package/src/Swap.tsx +74 -0
- package/src/Tabs.tsx +84 -0
- package/src/Text.tsx +44 -0
- package/src/TextField.tsx +137 -0
- package/src/Toast.tsx +94 -0
- package/src/blur.tsx +33 -0
- package/src/controls.tsx +196 -0
- package/src/generated/tokens.ts +653 -0
- package/src/icon.tsx +39 -0
- package/src/index.ts +30 -0
- package/src/layout.tsx +40 -0
- package/src/motion.ts +22 -0
- package/src/overlay.tsx +77 -0
- package/src/pending.tsx +131 -0
- package/src/presence.tsx +65 -0
- package/src/press.ts +23 -0
- package/src/screen.tsx +32 -0
- package/src/theme.tsx +49 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type PressableProps, type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
2
|
+
/** A value the app holds, or one the piece holds by itself from `defaultValue`. */
|
|
3
|
+
export declare function useControlled<T>(value: T | undefined, initial: T, onChange?: (next: T) => void): [T, (next: T) => void];
|
|
4
|
+
interface ToggleProps extends Omit<PressableProps, 'children' | 'style' | 'onPress' | 'role'> {
|
|
5
|
+
label: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
defaultChecked?: boolean;
|
|
9
|
+
onChange?: (checked: boolean) => void;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
}
|
|
12
|
+
export interface CheckboxProps extends ToggleProps {
|
|
13
|
+
/** Neither on nor off: some of what it stands for is chosen. */
|
|
14
|
+
mixed?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function Checkbox({ checked, defaultChecked, mixed, onChange, ...rest }: CheckboxProps): import("react").JSX.Element;
|
|
17
|
+
export type SwitchProps = ToggleProps;
|
|
18
|
+
export declare function Switch({ checked, defaultChecked, onChange, ...rest }: SwitchProps): import("react").JSX.Element;
|
|
19
|
+
export interface RadioOption {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
hint?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface RadioGroupProps extends Omit<ViewProps, 'children'> {
|
|
26
|
+
/** The name of the group, for a screen reader. */
|
|
27
|
+
label: string;
|
|
28
|
+
options: readonly RadioOption[];
|
|
29
|
+
value?: string | null;
|
|
30
|
+
defaultValue?: string | null;
|
|
31
|
+
onChange?: (value: string) => void;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** One of a few, all in sight. */
|
|
35
|
+
export declare function RadioGroup({ label, options, value, defaultValue, onChange, disabled, ...rest }: RadioGroupProps): import("react").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/controls.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgC,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,K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AAS,EAAE,UAAU,CAAC;IAClE,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA0BD,kCAAkC;AAClC,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,YAAmB,EAAE,QAAQ,EAAE,QAAgB,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAS9H"}
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
export type ColorToken = 'gray.1' | 'gray.2' | 'gray.3' | 'gray.4' | 'gray.5' | 'gray.6' | 'gray.7' | 'gray.8' | 'gray.9' | 'gray.10' | 'gray.11' | 'gray.12' | 'accent.1' | 'accent.2' | 'accent.3' | 'accent.4' | 'accent.5' | 'accent.6' | 'accent.7' | 'accent.8' | 'accent.9' | 'accent.10' | 'accent.11' | 'accent.12' | 'accent.default' | 'accent.hover' | 'accent.subtle' | 'accent.subtle-hover' | 'accent.border' | 'surface.page' | 'surface.base' | 'surface.raised' | 'surface.sunken' | 'surface.hover' | 'surface.active' | 'surface.overlay' | 'surface.inverse' | 'text.default' | 'text.muted' | 'text.disabled' | 'text.accent' | 'text.on-accent' | 'text.inverse' | 'border.default' | 'border.strong' | 'border.control' | 'focus.ring' | 'state.success.solid' | 'state.success.subtle' | 'state.success.text' | 'state.warning.solid' | 'state.warning.subtle' | 'state.warning.text' | 'state.danger.solid' | 'state.danger.subtle' | 'state.danger.text' | 'state.info.solid' | 'state.info.subtle' | 'state.info.text' | 'shadow.tint' | 'button.bg' | 'button.fg' | 'card.bg' | 'card.border' | 'input.bg' | 'input.border';
|
|
2
|
+
export type SizeToken = 'focus.width' | 'focus.offset' | 'radius.1' | 'radius.2' | 'radius.3' | 'radius.4' | 'radius.full' | 'radius.control' | 'radius.card' | 'radius.pill' | 'space.1' | 'space.2' | 'space.3' | 'space.4' | 'space.5' | 'space.6' | 'space.8' | 'space.10' | 'space.12' | 'space.16' | 'pad.control-x' | 'pad.card' | 'gap.inline' | 'gap.stack' | 'gap.grid' | 'control.h.sm' | 'control.h.md' | 'control.h.lg' | 'target.min' | 'font.size.1' | 'font.size.2' | 'font.size.3' | 'font.size.4' | 'font.size.5' | 'font.size.6' | 'font.size.7' | 'type.caption.size' | 'type.label.size' | 'type.body.size' | 'type.title.size' | 'type.heading.size' | 'type.display.size' | 'icon.sm' | 'icon.md' | 'icon.lg' | 'layout.content-max' | 'layout.content-narrow' | 'layout.nav-width' | 'layout.nav-width-compact' | 'layout.grid-min' | 'layout.gutter' | 'button.radius' | 'button.h' | 'card.radius' | 'card.pad';
|
|
3
|
+
export type NumberToken = 'seed.accent.h' | 'seed.accent.c' | 'seed.neutral.h' | 'seed.neutral.c' | 'font.line.tight' | 'font.line.normal' | 'type.body.line' | 'type.heading.line' | 'layer.base' | 'layer.sticky' | 'layer.overlay' | 'layer.modal' | 'layer.toast';
|
|
4
|
+
export type WeightToken = 'font.weight.regular' | 'font.weight.medium' | 'font.weight.bold' | 'type.label.weight' | 'type.heading.weight';
|
|
5
|
+
/** A token of the application, which a theme may add: Fluxus never reads one. */
|
|
6
|
+
export type AppToken = `app.${string}`;
|
|
7
|
+
export interface ThemeTokens {
|
|
8
|
+
name: string;
|
|
9
|
+
color: Record<'light' | 'dark', Record<ColorToken, string> & {
|
|
10
|
+
[own: AppToken]: string;
|
|
11
|
+
}>;
|
|
12
|
+
size: Record<SizeToken, number> & {
|
|
13
|
+
[own: AppToken]: number;
|
|
14
|
+
};
|
|
15
|
+
number: Record<NumberToken, number> & {
|
|
16
|
+
[own: AppToken]: number;
|
|
17
|
+
};
|
|
18
|
+
weight: Record<WeightToken, string> & {
|
|
19
|
+
[own: AppToken]: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const motion: {
|
|
23
|
+
readonly duration: {
|
|
24
|
+
readonly fast: 150;
|
|
25
|
+
readonly normal: 250;
|
|
26
|
+
readonly gentle: 350;
|
|
27
|
+
readonly slow: 500;
|
|
28
|
+
};
|
|
29
|
+
readonly easing: {
|
|
30
|
+
readonly decelerate: readonly [0.2, 0, 0, 1];
|
|
31
|
+
readonly accelerate: readonly [0.9, 0.1, 1, 0.2];
|
|
32
|
+
readonly standard: readonly [0.8, 0, 0.2, 1];
|
|
33
|
+
};
|
|
34
|
+
readonly spring: {
|
|
35
|
+
readonly smooth: {
|
|
36
|
+
readonly stiffness: 170;
|
|
37
|
+
readonly damping: 26;
|
|
38
|
+
readonly mass: 1;
|
|
39
|
+
};
|
|
40
|
+
readonly snappy: {
|
|
41
|
+
readonly stiffness: 300;
|
|
42
|
+
readonly damping: 24;
|
|
43
|
+
readonly mass: 1;
|
|
44
|
+
};
|
|
45
|
+
readonly bouncy: {
|
|
46
|
+
readonly stiffness: 210;
|
|
47
|
+
readonly damping: 14;
|
|
48
|
+
readonly mass: 1;
|
|
49
|
+
};
|
|
50
|
+
readonly liquid: {
|
|
51
|
+
readonly stiffness: 170;
|
|
52
|
+
readonly damping: 17;
|
|
53
|
+
readonly mass: 1;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const themes: {
|
|
58
|
+
base: {
|
|
59
|
+
name: string;
|
|
60
|
+
color: {
|
|
61
|
+
light: {
|
|
62
|
+
"gray.1": string;
|
|
63
|
+
"gray.2": string;
|
|
64
|
+
"gray.3": string;
|
|
65
|
+
"gray.4": string;
|
|
66
|
+
"gray.5": string;
|
|
67
|
+
"gray.6": string;
|
|
68
|
+
"gray.7": string;
|
|
69
|
+
"gray.8": string;
|
|
70
|
+
"gray.9": string;
|
|
71
|
+
"gray.10": string;
|
|
72
|
+
"gray.11": string;
|
|
73
|
+
"gray.12": string;
|
|
74
|
+
"accent.1": string;
|
|
75
|
+
"accent.2": string;
|
|
76
|
+
"accent.3": string;
|
|
77
|
+
"accent.4": string;
|
|
78
|
+
"accent.5": string;
|
|
79
|
+
"accent.6": string;
|
|
80
|
+
"accent.7": string;
|
|
81
|
+
"accent.8": string;
|
|
82
|
+
"accent.9": string;
|
|
83
|
+
"accent.10": string;
|
|
84
|
+
"accent.11": string;
|
|
85
|
+
"accent.12": string;
|
|
86
|
+
"accent.default": string;
|
|
87
|
+
"accent.hover": string;
|
|
88
|
+
"accent.subtle": string;
|
|
89
|
+
"accent.subtle-hover": string;
|
|
90
|
+
"accent.border": string;
|
|
91
|
+
"surface.page": string;
|
|
92
|
+
"surface.base": string;
|
|
93
|
+
"surface.raised": string;
|
|
94
|
+
"surface.sunken": string;
|
|
95
|
+
"surface.hover": string;
|
|
96
|
+
"surface.active": string;
|
|
97
|
+
"surface.overlay": string;
|
|
98
|
+
"surface.inverse": string;
|
|
99
|
+
"text.default": string;
|
|
100
|
+
"text.muted": string;
|
|
101
|
+
"text.disabled": string;
|
|
102
|
+
"text.accent": string;
|
|
103
|
+
"text.on-accent": string;
|
|
104
|
+
"text.inverse": string;
|
|
105
|
+
"border.default": string;
|
|
106
|
+
"border.strong": string;
|
|
107
|
+
"border.control": string;
|
|
108
|
+
"focus.ring": string;
|
|
109
|
+
"state.success.solid": string;
|
|
110
|
+
"state.success.subtle": string;
|
|
111
|
+
"state.success.text": string;
|
|
112
|
+
"state.warning.solid": string;
|
|
113
|
+
"state.warning.subtle": string;
|
|
114
|
+
"state.warning.text": string;
|
|
115
|
+
"state.danger.solid": string;
|
|
116
|
+
"state.danger.subtle": string;
|
|
117
|
+
"state.danger.text": string;
|
|
118
|
+
"state.info.solid": string;
|
|
119
|
+
"state.info.subtle": string;
|
|
120
|
+
"state.info.text": string;
|
|
121
|
+
"shadow.tint": string;
|
|
122
|
+
"button.bg": string;
|
|
123
|
+
"button.fg": string;
|
|
124
|
+
"card.bg": string;
|
|
125
|
+
"card.border": string;
|
|
126
|
+
"input.bg": string;
|
|
127
|
+
"input.border": string;
|
|
128
|
+
};
|
|
129
|
+
dark: {
|
|
130
|
+
"gray.1": string;
|
|
131
|
+
"gray.2": string;
|
|
132
|
+
"gray.3": string;
|
|
133
|
+
"gray.4": string;
|
|
134
|
+
"gray.5": string;
|
|
135
|
+
"gray.6": string;
|
|
136
|
+
"gray.7": string;
|
|
137
|
+
"gray.8": string;
|
|
138
|
+
"gray.9": string;
|
|
139
|
+
"gray.10": string;
|
|
140
|
+
"gray.11": string;
|
|
141
|
+
"gray.12": string;
|
|
142
|
+
"accent.1": string;
|
|
143
|
+
"accent.2": string;
|
|
144
|
+
"accent.3": string;
|
|
145
|
+
"accent.4": string;
|
|
146
|
+
"accent.5": string;
|
|
147
|
+
"accent.6": string;
|
|
148
|
+
"accent.7": string;
|
|
149
|
+
"accent.8": string;
|
|
150
|
+
"accent.9": string;
|
|
151
|
+
"accent.10": string;
|
|
152
|
+
"accent.11": string;
|
|
153
|
+
"accent.12": string;
|
|
154
|
+
"accent.default": string;
|
|
155
|
+
"accent.hover": string;
|
|
156
|
+
"accent.subtle": string;
|
|
157
|
+
"accent.subtle-hover": string;
|
|
158
|
+
"accent.border": string;
|
|
159
|
+
"surface.page": string;
|
|
160
|
+
"surface.base": string;
|
|
161
|
+
"surface.raised": string;
|
|
162
|
+
"surface.sunken": string;
|
|
163
|
+
"surface.hover": string;
|
|
164
|
+
"surface.active": string;
|
|
165
|
+
"surface.overlay": string;
|
|
166
|
+
"surface.inverse": string;
|
|
167
|
+
"text.default": string;
|
|
168
|
+
"text.muted": string;
|
|
169
|
+
"text.disabled": string;
|
|
170
|
+
"text.accent": string;
|
|
171
|
+
"text.on-accent": string;
|
|
172
|
+
"text.inverse": string;
|
|
173
|
+
"border.default": string;
|
|
174
|
+
"border.strong": string;
|
|
175
|
+
"border.control": string;
|
|
176
|
+
"focus.ring": string;
|
|
177
|
+
"state.success.solid": string;
|
|
178
|
+
"state.success.subtle": string;
|
|
179
|
+
"state.success.text": string;
|
|
180
|
+
"state.warning.solid": string;
|
|
181
|
+
"state.warning.subtle": string;
|
|
182
|
+
"state.warning.text": string;
|
|
183
|
+
"state.danger.solid": string;
|
|
184
|
+
"state.danger.subtle": string;
|
|
185
|
+
"state.danger.text": string;
|
|
186
|
+
"state.info.solid": string;
|
|
187
|
+
"state.info.subtle": string;
|
|
188
|
+
"state.info.text": string;
|
|
189
|
+
"shadow.tint": string;
|
|
190
|
+
"button.bg": string;
|
|
191
|
+
"button.fg": string;
|
|
192
|
+
"card.bg": string;
|
|
193
|
+
"card.border": string;
|
|
194
|
+
"input.bg": string;
|
|
195
|
+
"input.border": string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
size: {
|
|
199
|
+
"focus.width": number;
|
|
200
|
+
"focus.offset": number;
|
|
201
|
+
"radius.1": number;
|
|
202
|
+
"radius.2": number;
|
|
203
|
+
"radius.3": number;
|
|
204
|
+
"radius.4": number;
|
|
205
|
+
"radius.full": number;
|
|
206
|
+
"radius.control": number;
|
|
207
|
+
"radius.card": number;
|
|
208
|
+
"radius.pill": number;
|
|
209
|
+
"space.1": number;
|
|
210
|
+
"space.2": number;
|
|
211
|
+
"space.3": number;
|
|
212
|
+
"space.4": number;
|
|
213
|
+
"space.5": number;
|
|
214
|
+
"space.6": number;
|
|
215
|
+
"space.8": number;
|
|
216
|
+
"space.10": number;
|
|
217
|
+
"space.12": number;
|
|
218
|
+
"space.16": number;
|
|
219
|
+
"pad.control-x": number;
|
|
220
|
+
"pad.card": number;
|
|
221
|
+
"gap.inline": number;
|
|
222
|
+
"gap.stack": number;
|
|
223
|
+
"gap.grid": number;
|
|
224
|
+
"control.h.sm": number;
|
|
225
|
+
"control.h.md": number;
|
|
226
|
+
"control.h.lg": number;
|
|
227
|
+
"target.min": number;
|
|
228
|
+
"font.size.1": number;
|
|
229
|
+
"font.size.2": number;
|
|
230
|
+
"font.size.3": number;
|
|
231
|
+
"font.size.4": number;
|
|
232
|
+
"font.size.5": number;
|
|
233
|
+
"font.size.6": number;
|
|
234
|
+
"font.size.7": number;
|
|
235
|
+
"type.caption.size": number;
|
|
236
|
+
"type.label.size": number;
|
|
237
|
+
"type.body.size": number;
|
|
238
|
+
"type.title.size": number;
|
|
239
|
+
"type.heading.size": number;
|
|
240
|
+
"type.display.size": number;
|
|
241
|
+
"icon.sm": number;
|
|
242
|
+
"icon.md": number;
|
|
243
|
+
"icon.lg": number;
|
|
244
|
+
"layout.content-max": number;
|
|
245
|
+
"layout.content-narrow": number;
|
|
246
|
+
"layout.nav-width": number;
|
|
247
|
+
"layout.nav-width-compact": number;
|
|
248
|
+
"layout.grid-min": number;
|
|
249
|
+
"layout.gutter": number;
|
|
250
|
+
"button.radius": number;
|
|
251
|
+
"button.h": number;
|
|
252
|
+
"card.radius": number;
|
|
253
|
+
"card.pad": number;
|
|
254
|
+
};
|
|
255
|
+
number: {
|
|
256
|
+
"seed.accent.h": number;
|
|
257
|
+
"seed.accent.c": number;
|
|
258
|
+
"seed.neutral.h": number;
|
|
259
|
+
"seed.neutral.c": number;
|
|
260
|
+
"font.line.tight": number;
|
|
261
|
+
"font.line.normal": number;
|
|
262
|
+
"type.body.line": number;
|
|
263
|
+
"type.heading.line": number;
|
|
264
|
+
"layer.base": number;
|
|
265
|
+
"layer.sticky": number;
|
|
266
|
+
"layer.overlay": number;
|
|
267
|
+
"layer.modal": number;
|
|
268
|
+
"layer.toast": number;
|
|
269
|
+
};
|
|
270
|
+
weight: {
|
|
271
|
+
"font.weight.regular": string;
|
|
272
|
+
"font.weight.medium": string;
|
|
273
|
+
"font.weight.bold": string;
|
|
274
|
+
"type.label.weight": string;
|
|
275
|
+
"type.heading.weight": string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
oaf: {
|
|
279
|
+
name: string;
|
|
280
|
+
color: {
|
|
281
|
+
light: {
|
|
282
|
+
"gray.1": string;
|
|
283
|
+
"gray.2": string;
|
|
284
|
+
"gray.3": string;
|
|
285
|
+
"gray.4": string;
|
|
286
|
+
"gray.5": string;
|
|
287
|
+
"gray.6": string;
|
|
288
|
+
"gray.7": string;
|
|
289
|
+
"gray.8": string;
|
|
290
|
+
"gray.9": string;
|
|
291
|
+
"gray.10": string;
|
|
292
|
+
"gray.11": string;
|
|
293
|
+
"gray.12": string;
|
|
294
|
+
"accent.1": string;
|
|
295
|
+
"accent.2": string;
|
|
296
|
+
"accent.3": string;
|
|
297
|
+
"accent.4": string;
|
|
298
|
+
"accent.5": string;
|
|
299
|
+
"accent.6": string;
|
|
300
|
+
"accent.7": string;
|
|
301
|
+
"accent.8": string;
|
|
302
|
+
"accent.9": string;
|
|
303
|
+
"accent.10": string;
|
|
304
|
+
"accent.11": string;
|
|
305
|
+
"accent.12": string;
|
|
306
|
+
"accent.default": string;
|
|
307
|
+
"accent.hover": string;
|
|
308
|
+
"accent.subtle": string;
|
|
309
|
+
"accent.subtle-hover": string;
|
|
310
|
+
"accent.border": string;
|
|
311
|
+
"surface.page": string;
|
|
312
|
+
"surface.base": string;
|
|
313
|
+
"surface.raised": string;
|
|
314
|
+
"surface.sunken": string;
|
|
315
|
+
"surface.hover": string;
|
|
316
|
+
"surface.active": string;
|
|
317
|
+
"surface.overlay": string;
|
|
318
|
+
"surface.inverse": string;
|
|
319
|
+
"text.default": string;
|
|
320
|
+
"text.muted": string;
|
|
321
|
+
"text.disabled": string;
|
|
322
|
+
"text.accent": string;
|
|
323
|
+
"text.on-accent": string;
|
|
324
|
+
"text.inverse": string;
|
|
325
|
+
"border.default": string;
|
|
326
|
+
"border.strong": string;
|
|
327
|
+
"border.control": string;
|
|
328
|
+
"focus.ring": string;
|
|
329
|
+
"state.success.solid": string;
|
|
330
|
+
"state.success.subtle": string;
|
|
331
|
+
"state.success.text": string;
|
|
332
|
+
"state.warning.solid": string;
|
|
333
|
+
"state.warning.subtle": string;
|
|
334
|
+
"state.warning.text": string;
|
|
335
|
+
"state.danger.solid": string;
|
|
336
|
+
"state.danger.subtle": string;
|
|
337
|
+
"state.danger.text": string;
|
|
338
|
+
"state.info.solid": string;
|
|
339
|
+
"state.info.subtle": string;
|
|
340
|
+
"state.info.text": string;
|
|
341
|
+
"shadow.tint": string;
|
|
342
|
+
"button.bg": string;
|
|
343
|
+
"button.fg": string;
|
|
344
|
+
"card.bg": string;
|
|
345
|
+
"card.border": string;
|
|
346
|
+
"input.bg": string;
|
|
347
|
+
"input.border": string;
|
|
348
|
+
};
|
|
349
|
+
dark: {
|
|
350
|
+
"gray.1": string;
|
|
351
|
+
"gray.2": string;
|
|
352
|
+
"gray.3": string;
|
|
353
|
+
"gray.4": string;
|
|
354
|
+
"gray.5": string;
|
|
355
|
+
"gray.6": string;
|
|
356
|
+
"gray.7": string;
|
|
357
|
+
"gray.8": string;
|
|
358
|
+
"gray.9": string;
|
|
359
|
+
"gray.10": string;
|
|
360
|
+
"gray.11": string;
|
|
361
|
+
"gray.12": string;
|
|
362
|
+
"accent.1": string;
|
|
363
|
+
"accent.2": string;
|
|
364
|
+
"accent.3": string;
|
|
365
|
+
"accent.4": string;
|
|
366
|
+
"accent.5": string;
|
|
367
|
+
"accent.6": string;
|
|
368
|
+
"accent.7": string;
|
|
369
|
+
"accent.8": string;
|
|
370
|
+
"accent.9": string;
|
|
371
|
+
"accent.10": string;
|
|
372
|
+
"accent.11": string;
|
|
373
|
+
"accent.12": string;
|
|
374
|
+
"accent.default": string;
|
|
375
|
+
"accent.hover": string;
|
|
376
|
+
"accent.subtle": string;
|
|
377
|
+
"accent.subtle-hover": string;
|
|
378
|
+
"accent.border": string;
|
|
379
|
+
"surface.page": string;
|
|
380
|
+
"surface.base": string;
|
|
381
|
+
"surface.raised": string;
|
|
382
|
+
"surface.sunken": string;
|
|
383
|
+
"surface.hover": string;
|
|
384
|
+
"surface.active": string;
|
|
385
|
+
"surface.overlay": string;
|
|
386
|
+
"surface.inverse": string;
|
|
387
|
+
"text.default": string;
|
|
388
|
+
"text.muted": string;
|
|
389
|
+
"text.disabled": string;
|
|
390
|
+
"text.accent": string;
|
|
391
|
+
"text.on-accent": string;
|
|
392
|
+
"text.inverse": string;
|
|
393
|
+
"border.default": string;
|
|
394
|
+
"border.strong": string;
|
|
395
|
+
"border.control": string;
|
|
396
|
+
"focus.ring": string;
|
|
397
|
+
"state.success.solid": string;
|
|
398
|
+
"state.success.subtle": string;
|
|
399
|
+
"state.success.text": string;
|
|
400
|
+
"state.warning.solid": string;
|
|
401
|
+
"state.warning.subtle": string;
|
|
402
|
+
"state.warning.text": string;
|
|
403
|
+
"state.danger.solid": string;
|
|
404
|
+
"state.danger.subtle": string;
|
|
405
|
+
"state.danger.text": string;
|
|
406
|
+
"state.info.solid": string;
|
|
407
|
+
"state.info.subtle": string;
|
|
408
|
+
"state.info.text": string;
|
|
409
|
+
"shadow.tint": string;
|
|
410
|
+
"button.bg": string;
|
|
411
|
+
"button.fg": string;
|
|
412
|
+
"card.bg": string;
|
|
413
|
+
"card.border": string;
|
|
414
|
+
"input.bg": string;
|
|
415
|
+
"input.border": string;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
size: {
|
|
419
|
+
"focus.width": number;
|
|
420
|
+
"focus.offset": number;
|
|
421
|
+
"radius.1": number;
|
|
422
|
+
"radius.2": number;
|
|
423
|
+
"radius.3": number;
|
|
424
|
+
"radius.4": number;
|
|
425
|
+
"radius.full": number;
|
|
426
|
+
"radius.control": number;
|
|
427
|
+
"radius.card": number;
|
|
428
|
+
"radius.pill": number;
|
|
429
|
+
"space.1": number;
|
|
430
|
+
"space.2": number;
|
|
431
|
+
"space.3": number;
|
|
432
|
+
"space.4": number;
|
|
433
|
+
"space.5": number;
|
|
434
|
+
"space.6": number;
|
|
435
|
+
"space.8": number;
|
|
436
|
+
"space.10": number;
|
|
437
|
+
"space.12": number;
|
|
438
|
+
"space.16": number;
|
|
439
|
+
"pad.control-x": number;
|
|
440
|
+
"pad.card": number;
|
|
441
|
+
"gap.inline": number;
|
|
442
|
+
"gap.stack": number;
|
|
443
|
+
"gap.grid": number;
|
|
444
|
+
"control.h.sm": number;
|
|
445
|
+
"control.h.md": number;
|
|
446
|
+
"control.h.lg": number;
|
|
447
|
+
"target.min": number;
|
|
448
|
+
"font.size.1": number;
|
|
449
|
+
"font.size.2": number;
|
|
450
|
+
"font.size.3": number;
|
|
451
|
+
"font.size.4": number;
|
|
452
|
+
"font.size.5": number;
|
|
453
|
+
"font.size.6": number;
|
|
454
|
+
"font.size.7": number;
|
|
455
|
+
"type.caption.size": number;
|
|
456
|
+
"type.label.size": number;
|
|
457
|
+
"type.body.size": number;
|
|
458
|
+
"type.title.size": number;
|
|
459
|
+
"type.heading.size": number;
|
|
460
|
+
"type.display.size": number;
|
|
461
|
+
"icon.sm": number;
|
|
462
|
+
"icon.md": number;
|
|
463
|
+
"icon.lg": number;
|
|
464
|
+
"layout.content-max": number;
|
|
465
|
+
"layout.content-narrow": number;
|
|
466
|
+
"layout.nav-width": number;
|
|
467
|
+
"layout.nav-width-compact": number;
|
|
468
|
+
"layout.grid-min": number;
|
|
469
|
+
"layout.gutter": number;
|
|
470
|
+
"button.radius": number;
|
|
471
|
+
"button.h": number;
|
|
472
|
+
"card.radius": number;
|
|
473
|
+
"card.pad": number;
|
|
474
|
+
};
|
|
475
|
+
number: {
|
|
476
|
+
"seed.accent.h": number;
|
|
477
|
+
"seed.accent.c": number;
|
|
478
|
+
"seed.neutral.h": number;
|
|
479
|
+
"seed.neutral.c": number;
|
|
480
|
+
"font.line.tight": number;
|
|
481
|
+
"font.line.normal": number;
|
|
482
|
+
"type.body.line": number;
|
|
483
|
+
"type.heading.line": number;
|
|
484
|
+
"layer.base": number;
|
|
485
|
+
"layer.sticky": number;
|
|
486
|
+
"layer.overlay": number;
|
|
487
|
+
"layer.modal": number;
|
|
488
|
+
"layer.toast": number;
|
|
489
|
+
};
|
|
490
|
+
weight: {
|
|
491
|
+
"font.weight.regular": string;
|
|
492
|
+
"font.weight.medium": string;
|
|
493
|
+
"font.weight.bold": string;
|
|
494
|
+
"type.label.weight": string;
|
|
495
|
+
"type.heading.weight": string;
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/generated/tokens.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAClB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,YAAY,GACZ,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,YAAY,GACZ,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,iBAAiB,GACjB,aAAa,GACb,WAAW,GACX,WAAW,GACX,SAAS,GACT,aAAa,GACb,UAAU,GACV,cAAc,CAAC;AAEnB,MAAM,MAAM,SAAS,GACjB,aAAa,GACb,cAAc,GACd,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,aAAa,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A;KAAE,CAAC;IAC9D,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG;QAAE,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAA;KAAE,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG;QAAE,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAA;KAAE,CAAC;CACnE;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyboB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** What an icon of @fluxus-ui/icons is, as far as drawing it at rest goes: outlines on a 16 × 16 grid. */
|
|
2
|
+
export interface IconData {
|
|
3
|
+
parts: readonly {
|
|
4
|
+
id: string;
|
|
5
|
+
d: string;
|
|
6
|
+
fill?: boolean;
|
|
7
|
+
rest?: {
|
|
8
|
+
d?: string;
|
|
9
|
+
o?: number;
|
|
10
|
+
draw?: number | 'p';
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
export interface IconProps {
|
|
15
|
+
icon: IconData;
|
|
16
|
+
/** A size of the theme, or points. Default: 'md'. */
|
|
17
|
+
size?: 'sm' | 'md' | 'lg' | number;
|
|
18
|
+
/** Default: the colour of the text. */
|
|
19
|
+
color?: string;
|
|
20
|
+
/** What it means, for a screen reader. Without it the icon is decoration: the text beside it says it. */
|
|
21
|
+
label?: string;
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function Icon({ icon, size, color, label, testID }: IconProps): import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/icon.tsx"],"names":[],"mappings":"AAOA,0GAA0G;AAC1G,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;CACrH;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,qDAAqD;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IACnC,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yGAAyG;IACzG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,IAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,+BAe1E"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { ThemeProvider, useTheme, type Theme, type ThemeProviderProps, type Mode, type Fonts } from './theme.js';
|
|
2
|
+
export { themes, motion, type ThemeTokens, type AppToken, type ColorToken, type SizeToken, type NumberToken, type WeightToken } from './generated/tokens.js';
|
|
3
|
+
export { spring, timing, type SpringPreset, type DurationToken, type EasingToken } from './motion.js';
|
|
4
|
+
export { Text, textStyle, type TextProps, type TextVariant, type TextTone, type TextWeight } from './Text.js';
|
|
5
|
+
export { Button, buttonStyle, type ButtonProps, type ButtonVariant, type ButtonSize } from './Button.js';
|
|
6
|
+
export { usePress } from './press.js';
|
|
7
|
+
export { Badge, toneColors, type BadgeProps, type Tone } from './Badge.js';
|
|
8
|
+
export { Card, cardStyle, type CardProps } from './Card.js';
|
|
9
|
+
export { Progress, type ProgressProps } from './Progress.js';
|
|
10
|
+
export { Message, type MessageProps } from './Message.js';
|
|
11
|
+
export { TextField, TextArea, SearchField, type TextFieldProps, type SearchFieldProps } from './TextField.js';
|
|
12
|
+
export { Stack, Row, Divider, type StackProps, type RowProps, type Space } from './layout.js';
|
|
13
|
+
export { Spinner, type SpinnerProps } from './Spinner.js';
|
|
14
|
+
export { Skeleton, type SkeletonProps } from './Skeleton.js';
|
|
15
|
+
export { ListItem, type ListItemProps } from './ListItem.js';
|
|
16
|
+
export { EmptyState, type EmptyStateProps } from './EmptyState.js';
|
|
17
|
+
export { Avatar, initials, type AvatarProps } from './Avatar.js';
|
|
18
|
+
export { Tabs, type TabsProps, type TabItem } from './Tabs.js';
|
|
19
|
+
export { ToastProvider, ToastLayer, useToast, announce, type ToastInput, type ToastProviderProps } from './Toast.js';
|
|
20
|
+
export { Appear, presence, enter, exit, shift, RISE, STAGGER, type AppearProps } from './presence.js';
|
|
21
|
+
export { Swap, useSwap, type SwapProps } from './Swap.js';
|
|
22
|
+
export { usePending, useAsyncPress, settle } from './pending.js';
|
|
23
|
+
export { Checkbox, Switch, RadioGroup, useControlled, type CheckboxProps, type SwitchProps, type RadioGroupProps, type RadioOption } from './controls.js';
|
|
24
|
+
export { Slider, type SliderProps } from './Slider.js';
|
|
25
|
+
export { BottomSheet, type BottomSheetProps } from './BottomSheet.js';
|
|
26
|
+
export { Dialog, ConfirmDialog, type DialogProps, type ConfirmDialogProps } from './Dialog.js';
|
|
27
|
+
export { Popover, place, type PopoverProps, type Placement, type Rect } from './Popover.js';
|
|
28
|
+
export { Menu, MenuItem, MenuSeparator, type MenuProps, type MenuItemProps } from './Menu.js';
|
|
29
|
+
export { Disclosure, Accordion, type DisclosureProps, type AccordionProps, type AccordionItem } from './Disclosure.js';
|
|
30
|
+
export { Select, type SelectProps, type SelectOption } from './Select.js';
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,IAAI,EAAE,KAAK,KAAK,EAAE,MAAM,YAAS,CAAC;AAC9G,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAoB,CAAC;AAC1J,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,aAAU,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,WAAQ,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,aAAU,CAAC;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,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAY,CAAC;AACnG,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAQ,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,cAAW,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,eAAY,CAAC;AACvJ,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAU,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAe,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAU,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,cAAW,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,WAAQ,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAc,CAAC;AACpH,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,aAAU,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ViewProps, type ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* For what takes the room left in a row. Not `flex: 1`: that has no width of its own, and in what is only as
|
|
4
|
+
* wide as what it holds (a menu, a popover) the text would break letter by letter. (SPEC §15.8)
|
|
5
|
+
*/
|
|
6
|
+
export declare const fill: ViewStyle;
|
|
7
|
+
/** A step of the space scale: `space.3` is 12 points. */
|
|
8
|
+
export type Space = '1' | '2' | '3' | '4' | '5' | '6' | '8' | '10' | '12' | '16';
|
|
9
|
+
export interface StackProps extends ViewProps {
|
|
10
|
+
gap?: Space;
|
|
11
|
+
align?: ViewStyle['alignItems'];
|
|
12
|
+
justify?: ViewStyle['justifyContent'];
|
|
13
|
+
}
|
|
14
|
+
/** What it holds, one under the other. */
|
|
15
|
+
export declare function Stack({ gap, align, justify, style, ...rest }: StackProps): import("react").JSX.Element;
|
|
16
|
+
export interface RowProps extends StackProps {
|
|
17
|
+
/** It goes on to the next line when it does not fit. */
|
|
18
|
+
wrap?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** What it holds, side by side, in the direction of the language. */
|
|
21
|
+
export declare function Row({ gap, align, justify, wrap, style, ...rest }: RowProps): import("react").JSX.Element;
|
|
22
|
+
/** A rule between two things. It is not there for a screen reader. */
|
|
23
|
+
export declare function Divider({ style, ...rest }: ViewProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpE;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,SAA6D,CAAC;AAEjF,yDAAyD;AACzD,MAAM,MAAM,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjF,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACvC;AAED,0CAA0C;AAC1C,wBAAgB,KAAK,CAAC,EAAE,GAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,+BAG9E;AAED,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,wDAAwD;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,qEAAqE;AACrE,wBAAgB,GAAG,CAAC,EAAE,GAAS,EAAE,KAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,+BAG3F;AAED,sEAAsE;AACtE,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAGpD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { motion } from './generated/tokens.js';
|
|
2
|
+
export type SpringPreset = keyof typeof motion.spring;
|
|
3
|
+
export type DurationToken = keyof typeof motion.duration;
|
|
4
|
+
export type EasingToken = keyof typeof motion.easing;
|
|
5
|
+
export declare const spring: (to: number, preset?: SpringPreset) => number;
|
|
6
|
+
export declare const timing: (to: number, duration?: DurationToken, easing?: EasingToken) => number;
|
|
7
|
+
//# sourceMappingURL=motion.d.ts.map
|