melta-app 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 +197 -0
- package/THIRD_PARTY_LICENSES.md +198 -0
- package/lib/module/components/ActionSheet.js +87 -0
- package/lib/module/components/ActionSheet.js.map +1 -0
- package/lib/module/components/Alert.js +93 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/Avatar.js +93 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/BottomSheet.js +69 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/Card.js +93 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/Checkbox.js +115 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/EmptyState.js +70 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/Header.js +53 -0
- package/lib/module/components/Header.js.map +1 -0
- package/lib/module/components/Image.js +67 -0
- package/lib/module/components/Image.js.map +1 -0
- package/lib/module/components/Modal.js +95 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/Progress.js +113 -0
- package/lib/module/components/Progress.js.map +1 -0
- package/lib/module/components/Radio.js +134 -0
- package/lib/module/components/Radio.js.map +1 -0
- package/lib/module/components/Screen.js +57 -0
- package/lib/module/components/Screen.js.map +1 -0
- package/lib/module/components/Skeleton.js +169 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Surface.js +49 -0
- package/lib/module/components/Surface.js.map +1 -0
- package/lib/module/components/TextField.js +84 -0
- package/lib/module/components/TextField.js.map +1 -0
- package/lib/module/components/Toast.js +105 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +77 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/action-sheet.styles.js +70 -0
- package/lib/module/components/action-sheet.styles.js.map +1 -0
- package/lib/module/components/alert.styles.js +80 -0
- package/lib/module/components/alert.styles.js.map +1 -0
- package/lib/module/components/avatar.styles.js +94 -0
- package/lib/module/components/avatar.styles.js.map +1 -0
- package/lib/module/components/bottom-sheet.styles.js +55 -0
- package/lib/module/components/bottom-sheet.styles.js.map +1 -0
- package/lib/module/components/card.styles.js +50 -0
- package/lib/module/components/card.styles.js.map +1 -0
- package/lib/module/components/checkbox.styles.js +55 -0
- package/lib/module/components/checkbox.styles.js.map +1 -0
- package/lib/module/components/empty-state.styles.js +60 -0
- package/lib/module/components/empty-state.styles.js.map +1 -0
- package/lib/module/components/header.styles.js +33 -0
- package/lib/module/components/header.styles.js.map +1 -0
- package/lib/module/components/image.styles.js +37 -0
- package/lib/module/components/image.styles.js.map +1 -0
- package/lib/module/components/index.js +26 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/modal.styles.js +68 -0
- package/lib/module/components/modal.styles.js.map +1 -0
- package/lib/module/components/progress.styles.js +55 -0
- package/lib/module/components/progress.styles.js.map +1 -0
- package/lib/module/components/radio.styles.js +96 -0
- package/lib/module/components/radio.styles.js.map +1 -0
- package/lib/module/components/screen.styles.js +38 -0
- package/lib/module/components/screen.styles.js.map +1 -0
- package/lib/module/components/skeleton.styles.js +114 -0
- package/lib/module/components/skeleton.styles.js.map +1 -0
- package/lib/module/components/surface.styles.js +37 -0
- package/lib/module/components/surface.styles.js.map +1 -0
- package/lib/module/components/textfield.styles.js +121 -0
- package/lib/module/components/textfield.styles.js.map +1 -0
- package/lib/module/components/toast.styles.js +81 -0
- package/lib/module/components/toast.styles.js.map +1 -0
- package/lib/module/components/toggle.styles.js +69 -0
- package/lib/module/components/toggle.styles.js.map +1 -0
- package/lib/module/contracts/contract-types.js +192 -0
- package/lib/module/contracts/contract-types.js.map +1 -0
- package/lib/module/icons/Icon.js +57 -0
- package/lib/module/icons/Icon.js.map +1 -0
- package/lib/module/icons/glyphs.js +257 -0
- package/lib/module/icons/glyphs.js.map +1 -0
- package/lib/module/icons/icon.styles.js +28 -0
- package/lib/module/icons/icon.styles.js.map +1 -0
- package/lib/module/icons/index.js +14 -0
- package/lib/module/icons/index.js.map +1 -0
- package/lib/module/index.js +20 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/primitives/Button.js +105 -0
- package/lib/module/primitives/Button.js.map +1 -0
- package/lib/module/primitives/Metric.js +68 -0
- package/lib/module/primitives/Metric.js.map +1 -0
- package/lib/module/primitives/Row.js +43 -0
- package/lib/module/primitives/Row.js.map +1 -0
- package/lib/module/primitives/Stack.js +39 -0
- package/lib/module/primitives/Stack.js.map +1 -0
- package/lib/module/primitives/Tag.js +160 -0
- package/lib/module/primitives/Tag.js.map +1 -0
- package/lib/module/primitives/Text.js +54 -0
- package/lib/module/primitives/Text.js.map +1 -0
- package/lib/module/primitives/_internal/focus-ring.js +57 -0
- package/lib/module/primitives/_internal/focus-ring.js.map +1 -0
- package/lib/module/primitives/button.styles.js +88 -0
- package/lib/module/primitives/button.styles.js.map +1 -0
- package/lib/module/primitives/index.js +11 -0
- package/lib/module/primitives/index.js.map +1 -0
- package/lib/module/primitives/metric.styles.js +54 -0
- package/lib/module/primitives/metric.styles.js.map +1 -0
- package/lib/module/primitives/row.styles.js +53 -0
- package/lib/module/primitives/row.styles.js.map +1 -0
- package/lib/module/primitives/stack.styles.js +37 -0
- package/lib/module/primitives/stack.styles.js.map +1 -0
- package/lib/module/primitives/tag.styles.js +56 -0
- package/lib/module/primitives/tag.styles.js.map +1 -0
- package/lib/module/primitives/text.styles.js +33 -0
- package/lib/module/primitives/text.styles.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +41 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/index.js +19 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/native-theme.js +201 -0
- package/lib/module/theme/native-theme.js.map +1 -0
- package/lib/module/theme/types.js +4 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/ActionSheet.d.ts +45 -0
- package/lib/typescript/src/components/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert.d.ts +43 -0
- package/lib/typescript/src/components/Alert.d.ts.map +1 -0
- package/lib/typescript/src/components/Avatar.d.ts +45 -0
- package/lib/typescript/src/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet.d.ts +36 -0
- package/lib/typescript/src/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/Card.d.ts +46 -0
- package/lib/typescript/src/components/Card.d.ts.map +1 -0
- package/lib/typescript/src/components/Checkbox.d.ts +40 -0
- package/lib/typescript/src/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/EmptyState.d.ts +36 -0
- package/lib/typescript/src/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/src/components/Header.d.ts +34 -0
- package/lib/typescript/src/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/components/Image.d.ts +41 -0
- package/lib/typescript/src/components/Image.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal.d.ts +46 -0
- package/lib/typescript/src/components/Modal.d.ts.map +1 -0
- package/lib/typescript/src/components/Progress.d.ts +39 -0
- package/lib/typescript/src/components/Progress.d.ts.map +1 -0
- package/lib/typescript/src/components/Radio.d.ts +52 -0
- package/lib/typescript/src/components/Radio.d.ts.map +1 -0
- package/lib/typescript/src/components/Screen.d.ts +42 -0
- package/lib/typescript/src/components/Screen.d.ts.map +1 -0
- package/lib/typescript/src/components/Skeleton.d.ts +37 -0
- package/lib/typescript/src/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/Surface.d.ts +31 -0
- package/lib/typescript/src/components/Surface.d.ts.map +1 -0
- package/lib/typescript/src/components/TextField.d.ts +45 -0
- package/lib/typescript/src/components/TextField.d.ts.map +1 -0
- package/lib/typescript/src/components/Toast.d.ts +45 -0
- package/lib/typescript/src/components/Toast.d.ts.map +1 -0
- package/lib/typescript/src/components/Toggle.d.ts +39 -0
- package/lib/typescript/src/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/src/components/action-sheet.styles.d.ts +65 -0
- package/lib/typescript/src/components/action-sheet.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/alert.styles.d.ts +61 -0
- package/lib/typescript/src/components/alert.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar.styles.d.ts +60 -0
- package/lib/typescript/src/components/avatar.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet.styles.d.ts +50 -0
- package/lib/typescript/src/components/bottom-sheet.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/card.styles.d.ts +27 -0
- package/lib/typescript/src/components/card.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox.styles.d.ts +55 -0
- package/lib/typescript/src/components/checkbox.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/empty-state.styles.d.ts +58 -0
- package/lib/typescript/src/components/empty-state.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/header.styles.d.ts +30 -0
- package/lib/typescript/src/components/header.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/image.styles.d.ts +28 -0
- package/lib/typescript/src/components/image.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +23 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/modal.styles.d.ts +66 -0
- package/lib/typescript/src/components/modal.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/progress.styles.d.ts +44 -0
- package/lib/typescript/src/components/progress.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/radio.styles.d.ts +91 -0
- package/lib/typescript/src/components/radio.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/screen.styles.d.ts +34 -0
- package/lib/typescript/src/components/screen.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton.styles.d.ts +105 -0
- package/lib/typescript/src/components/skeleton.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/surface.styles.d.ts +31 -0
- package/lib/typescript/src/components/surface.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/textfield.styles.d.ts +75 -0
- package/lib/typescript/src/components/textfield.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/toast.styles.d.ts +62 -0
- package/lib/typescript/src/components/toast.styles.d.ts.map +1 -0
- package/lib/typescript/src/components/toggle.styles.d.ts +53 -0
- package/lib/typescript/src/components/toggle.styles.d.ts.map +1 -0
- package/lib/typescript/src/contracts/contract-types.d.ts +193 -0
- package/lib/typescript/src/contracts/contract-types.d.ts.map +1 -0
- package/lib/typescript/src/icons/Icon.d.ts +40 -0
- package/lib/typescript/src/icons/Icon.d.ts.map +1 -0
- package/lib/typescript/src/icons/glyphs.d.ts +259 -0
- package/lib/typescript/src/icons/glyphs.d.ts.map +1 -0
- package/lib/typescript/src/icons/icon.styles.d.ts +20 -0
- package/lib/typescript/src/icons/icon.styles.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +12 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Button.d.ts +48 -0
- package/lib/typescript/src/primitives/Button.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Metric.d.ts +38 -0
- package/lib/typescript/src/primitives/Metric.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Row.d.ts +37 -0
- package/lib/typescript/src/primitives/Row.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Stack.d.ts +33 -0
- package/lib/typescript/src/primitives/Stack.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Tag.d.ts +43 -0
- package/lib/typescript/src/primitives/Tag.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Text.d.ts +45 -0
- package/lib/typescript/src/primitives/Text.d.ts.map +1 -0
- package/lib/typescript/src/primitives/_internal/focus-ring.d.ts +31 -0
- package/lib/typescript/src/primitives/_internal/focus-ring.d.ts.map +1 -0
- package/lib/typescript/src/primitives/button.styles.d.ts +29 -0
- package/lib/typescript/src/primitives/button.styles.d.ts.map +1 -0
- package/lib/typescript/src/primitives/index.d.ts +8 -0
- package/lib/typescript/src/primitives/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/metric.styles.d.ts +43 -0
- package/lib/typescript/src/primitives/metric.styles.d.ts.map +1 -0
- package/lib/typescript/src/primitives/row.styles.d.ts +50 -0
- package/lib/typescript/src/primitives/row.styles.d.ts.map +1 -0
- package/lib/typescript/src/primitives/stack.styles.d.ts +34 -0
- package/lib/typescript/src/primitives/stack.styles.d.ts.map +1 -0
- package/lib/typescript/src/primitives/tag.styles.d.ts +32 -0
- package/lib/typescript/src/primitives/tag.styles.d.ts.map +1 -0
- package/lib/typescript/src/primitives/text.styles.d.ts +26 -0
- package/lib/typescript/src/primitives/text.styles.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +32 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +15 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/native-theme.d.ts +3 -0
- package/lib/typescript/src/theme/native-theme.d.ts.map +1 -0
- package/lib/typescript/src/theme/types.d.ts +121 -0
- package/lib/typescript/src/theme/types.d.ts.map +1 -0
- package/package.json +120 -0
- package/src/components/ActionSheet.tsx +112 -0
- package/src/components/Alert.tsx +84 -0
- package/src/components/Avatar.tsx +110 -0
- package/src/components/BottomSheet.tsx +81 -0
- package/src/components/Card.tsx +102 -0
- package/src/components/Checkbox.tsx +107 -0
- package/src/components/EmptyState.tsx +64 -0
- package/src/components/Header.tsx +51 -0
- package/src/components/Image.tsx +89 -0
- package/src/components/Modal.tsx +113 -0
- package/src/components/Progress.tsx +124 -0
- package/src/components/Radio.tsx +151 -0
- package/src/components/Screen.tsx +62 -0
- package/src/components/Skeleton.tsx +154 -0
- package/src/components/Surface.tsx +37 -0
- package/src/components/TextField.tsx +102 -0
- package/src/components/Toast.tsx +103 -0
- package/src/components/Toggle.tsx +94 -0
- package/src/components/action-sheet.styles.ts +102 -0
- package/src/components/alert.styles.ts +115 -0
- package/src/components/avatar.styles.ts +110 -0
- package/src/components/bottom-sheet.styles.ts +78 -0
- package/src/components/card.styles.ts +56 -0
- package/src/components/checkbox.styles.ts +83 -0
- package/src/components/empty-state.styles.ts +98 -0
- package/src/components/header.styles.ts +44 -0
- package/src/components/image.styles.ts +36 -0
- package/src/components/index.ts +23 -0
- package/src/components/modal.styles.ts +106 -0
- package/src/components/progress.styles.ts +74 -0
- package/src/components/radio.styles.ts +132 -0
- package/src/components/screen.styles.ts +44 -0
- package/src/components/skeleton.styles.ts +155 -0
- package/src/components/surface.styles.ts +50 -0
- package/src/components/textfield.styles.ts +135 -0
- package/src/components/toast.styles.ts +115 -0
- package/src/components/toggle.styles.ts +73 -0
- package/src/contracts/contract-types.ts +199 -0
- package/src/icons/Icon.tsx +65 -0
- package/src/icons/glyphs.ts +54 -0
- package/src/icons/icon.styles.ts +37 -0
- package/src/icons/index.ts +12 -0
- package/src/index.ts +24 -0
- package/src/primitives/Button.tsx +114 -0
- package/src/primitives/Metric.tsx +67 -0
- package/src/primitives/Row.tsx +54 -0
- package/src/primitives/Stack.tsx +42 -0
- package/src/primitives/Tag.tsx +126 -0
- package/src/primitives/Text.tsx +71 -0
- package/src/primitives/_internal/focus-ring.tsx +59 -0
- package/src/primitives/button.styles.ts +69 -0
- package/src/primitives/index.ts +8 -0
- package/src/primitives/metric.styles.ts +75 -0
- package/src/primitives/row.styles.ts +66 -0
- package/src/primitives/stack.styles.ts +47 -0
- package/src/primitives/tag.styles.ts +65 -0
- package/src/primitives/text.styles.ts +42 -0
- package/src/theme/ThemeProvider.tsx +60 -0
- package/src/theme/index.ts +18 -0
- package/src/theme/native-theme.ts +215 -0
- package/src/theme/types.ts +137 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/** 各 contract メタの shape(§2 A-3: 生成結果が shape から逸脱したら型で検知する)。 */
|
|
2
|
+
export interface ContractShape {
|
|
3
|
+
id: string;
|
|
4
|
+
version: string;
|
|
5
|
+
variants: readonly string[];
|
|
6
|
+
sizes: readonly string[];
|
|
7
|
+
states: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const CONTRACTS: {
|
|
10
|
+
readonly text: {
|
|
11
|
+
readonly id: "text";
|
|
12
|
+
readonly version: "0.1.0";
|
|
13
|
+
readonly variants: readonly ["xs", "sm", "base", "lg", "xl", "2xl", "3xl"];
|
|
14
|
+
readonly sizes: readonly [];
|
|
15
|
+
readonly states: readonly ["default"];
|
|
16
|
+
};
|
|
17
|
+
readonly button: {
|
|
18
|
+
readonly id: "button";
|
|
19
|
+
readonly version: "2.0.0";
|
|
20
|
+
readonly variants: readonly ["contained", "outlined", "brand-outline", "neutral", "lighted", "danger", "subtle"];
|
|
21
|
+
readonly sizes: readonly ["small", "medium", "large"];
|
|
22
|
+
readonly states: readonly ["default", "hover", "focus", "disabled", "loading"];
|
|
23
|
+
};
|
|
24
|
+
readonly tag: {
|
|
25
|
+
readonly id: "tag";
|
|
26
|
+
readonly version: "2.0.0";
|
|
27
|
+
readonly variants: readonly ["basic", "removable", "filter-chip"];
|
|
28
|
+
readonly sizes: readonly [];
|
|
29
|
+
readonly states: readonly ["default", "active", "inactive", "hover", "focus"];
|
|
30
|
+
};
|
|
31
|
+
readonly card: {
|
|
32
|
+
readonly id: "card";
|
|
33
|
+
readonly version: "2.0.0";
|
|
34
|
+
readonly variants: readonly ["basic", "media", "action", "link"];
|
|
35
|
+
readonly sizes: readonly [];
|
|
36
|
+
readonly states: readonly ["default", "hover", "focus-within"];
|
|
37
|
+
};
|
|
38
|
+
readonly image: {
|
|
39
|
+
readonly id: "image";
|
|
40
|
+
readonly version: "0.1.0";
|
|
41
|
+
readonly variants: readonly ["default"];
|
|
42
|
+
readonly sizes: readonly [];
|
|
43
|
+
readonly states: readonly ["default", "error"];
|
|
44
|
+
};
|
|
45
|
+
readonly surface: {
|
|
46
|
+
readonly id: "surface";
|
|
47
|
+
readonly version: "0.1.0";
|
|
48
|
+
readonly variants: readonly ["default"];
|
|
49
|
+
readonly sizes: readonly [];
|
|
50
|
+
readonly states: readonly ["default"];
|
|
51
|
+
};
|
|
52
|
+
readonly skeleton: {
|
|
53
|
+
readonly id: "skeleton";
|
|
54
|
+
readonly version: "2.0.0";
|
|
55
|
+
readonly variants: readonly ["text", "card", "circle"];
|
|
56
|
+
readonly sizes: readonly [];
|
|
57
|
+
readonly states: readonly ["default", "loading", "loaded"];
|
|
58
|
+
};
|
|
59
|
+
readonly emptyState: {
|
|
60
|
+
readonly id: "empty-state";
|
|
61
|
+
readonly version: "0.1.0";
|
|
62
|
+
readonly variants: readonly ["default"];
|
|
63
|
+
readonly sizes: readonly [];
|
|
64
|
+
readonly states: readonly ["default"];
|
|
65
|
+
};
|
|
66
|
+
readonly metric: {
|
|
67
|
+
readonly id: "metric";
|
|
68
|
+
readonly version: "0.1.0";
|
|
69
|
+
readonly variants: readonly ["default"];
|
|
70
|
+
readonly sizes: readonly ["sm", "md", "lg"];
|
|
71
|
+
readonly states: readonly ["default"];
|
|
72
|
+
};
|
|
73
|
+
readonly stack: {
|
|
74
|
+
readonly id: "stack";
|
|
75
|
+
readonly version: "0.1.0";
|
|
76
|
+
readonly variants: readonly ["default"];
|
|
77
|
+
readonly sizes: readonly [];
|
|
78
|
+
readonly states: readonly ["default"];
|
|
79
|
+
};
|
|
80
|
+
readonly row: {
|
|
81
|
+
readonly id: "row";
|
|
82
|
+
readonly version: "0.1.0";
|
|
83
|
+
readonly variants: readonly ["default"];
|
|
84
|
+
readonly sizes: readonly [];
|
|
85
|
+
readonly states: readonly ["default"];
|
|
86
|
+
};
|
|
87
|
+
readonly screen: {
|
|
88
|
+
readonly id: "screen";
|
|
89
|
+
readonly version: "0.1.0";
|
|
90
|
+
readonly variants: readonly ["fixed", "scroll"];
|
|
91
|
+
readonly sizes: readonly [];
|
|
92
|
+
readonly states: readonly ["default"];
|
|
93
|
+
};
|
|
94
|
+
readonly header: {
|
|
95
|
+
readonly id: "header";
|
|
96
|
+
readonly version: "0.1.0";
|
|
97
|
+
readonly variants: readonly ["default"];
|
|
98
|
+
readonly sizes: readonly [];
|
|
99
|
+
readonly states: readonly ["default"];
|
|
100
|
+
};
|
|
101
|
+
readonly icon: {
|
|
102
|
+
readonly id: "icon";
|
|
103
|
+
readonly version: "0.1.0";
|
|
104
|
+
readonly variants: readonly ["default"];
|
|
105
|
+
readonly sizes: readonly ["sm", "md", "lg"];
|
|
106
|
+
readonly states: readonly ["default"];
|
|
107
|
+
};
|
|
108
|
+
readonly avatar: {
|
|
109
|
+
readonly id: "avatar";
|
|
110
|
+
readonly version: "2.0.0";
|
|
111
|
+
readonly variants: readonly ["image", "initials", "group"];
|
|
112
|
+
readonly sizes: readonly ["small", "medium", "large"];
|
|
113
|
+
readonly states: readonly ["default", "online", "away", "offline"];
|
|
114
|
+
};
|
|
115
|
+
readonly textfield: {
|
|
116
|
+
readonly id: "textfield";
|
|
117
|
+
readonly version: "2.0.0";
|
|
118
|
+
readonly variants: readonly ["default", "error", "disabled", "success"];
|
|
119
|
+
readonly sizes: readonly ["small", "medium", "large"];
|
|
120
|
+
readonly states: readonly ["default", "hover", "focus", "error", "disabled", "success"];
|
|
121
|
+
};
|
|
122
|
+
readonly toggle: {
|
|
123
|
+
readonly id: "toggle";
|
|
124
|
+
readonly version: "2.0.0";
|
|
125
|
+
readonly variants: readonly ["off", "on"];
|
|
126
|
+
readonly sizes: readonly ["medium", "large"];
|
|
127
|
+
readonly states: readonly ["off", "on", "hover", "focus", "disabled"];
|
|
128
|
+
};
|
|
129
|
+
readonly checkbox: {
|
|
130
|
+
readonly id: "checkbox";
|
|
131
|
+
readonly version: "2.0.0";
|
|
132
|
+
readonly variants: readonly ["default", "disabled", "indeterminate"];
|
|
133
|
+
readonly sizes: readonly [];
|
|
134
|
+
readonly states: readonly ["default", "checked", "unchecked", "indeterminate", "disabled", "error", "focus"];
|
|
135
|
+
};
|
|
136
|
+
readonly radio: {
|
|
137
|
+
readonly id: "radio";
|
|
138
|
+
readonly version: "2.0.0";
|
|
139
|
+
readonly variants: readonly ["vertical", "horizontal", "card-style"];
|
|
140
|
+
readonly sizes: readonly [];
|
|
141
|
+
readonly states: readonly ["default", "selected", "unselected", "disabled", "error", "focus"];
|
|
142
|
+
};
|
|
143
|
+
readonly alert: {
|
|
144
|
+
readonly id: "alert";
|
|
145
|
+
readonly version: "2.0.0";
|
|
146
|
+
readonly variants: readonly ["info", "success", "warning", "error"];
|
|
147
|
+
readonly sizes: readonly [];
|
|
148
|
+
readonly states: readonly ["default", "dismissing"];
|
|
149
|
+
};
|
|
150
|
+
readonly toast: {
|
|
151
|
+
readonly id: "toast";
|
|
152
|
+
readonly version: "2.0.0";
|
|
153
|
+
readonly variants: readonly ["success", "error", "warning", "info"];
|
|
154
|
+
readonly sizes: readonly [];
|
|
155
|
+
readonly states: readonly ["default", "entering", "visible", "dismissing", "hover"];
|
|
156
|
+
};
|
|
157
|
+
readonly progress: {
|
|
158
|
+
readonly id: "progress";
|
|
159
|
+
readonly version: "2.0.0";
|
|
160
|
+
readonly variants: readonly ["primary", "success", "indeterminate"];
|
|
161
|
+
readonly sizes: readonly [];
|
|
162
|
+
readonly states: readonly ["default", "determinate", "indeterminate", "complete"];
|
|
163
|
+
};
|
|
164
|
+
readonly modal: {
|
|
165
|
+
readonly id: "modal";
|
|
166
|
+
readonly version: "2.0.0";
|
|
167
|
+
readonly variants: readonly ["confirmation", "form", "alert"];
|
|
168
|
+
readonly sizes: readonly ["small", "medium", "large"];
|
|
169
|
+
readonly states: readonly ["default", "open", "closing"];
|
|
170
|
+
};
|
|
171
|
+
readonly actionSheet: {
|
|
172
|
+
readonly id: "action-sheet";
|
|
173
|
+
readonly version: "0.1.0";
|
|
174
|
+
readonly variants: readonly ["default"];
|
|
175
|
+
readonly sizes: readonly [];
|
|
176
|
+
readonly states: readonly ["default"];
|
|
177
|
+
};
|
|
178
|
+
readonly bottomSheet: {
|
|
179
|
+
readonly id: "bottom-sheet";
|
|
180
|
+
readonly version: "0.1.0";
|
|
181
|
+
readonly variants: readonly ["default"];
|
|
182
|
+
readonly sizes: readonly [];
|
|
183
|
+
readonly states: readonly ["default"];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
export type ContractId = keyof typeof CONTRACTS;
|
|
187
|
+
/** contract の variant キー union(例: VariantOf<"text"> = "xs" | ... | "3xl")。空なら never。 */
|
|
188
|
+
export type VariantOf<K extends ContractId> = (typeof CONTRACTS)[K]["variants"][number];
|
|
189
|
+
/** contract の size キー union(空なら never)。 */
|
|
190
|
+
export type SizeOf<K extends ContractId> = (typeof CONTRACTS)[K]["sizes"][number];
|
|
191
|
+
/** contract の state キー union。 */
|
|
192
|
+
export type StateOf<K extends ContractId> = (typeof CONTRACTS)[K]["states"][number];
|
|
193
|
+
//# sourceMappingURL=contract-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-types.d.ts","sourceRoot":"","sources":["../../../../src/contracts/contract-types.ts"],"names":[],"mappings":"AAIA,+DAA+D;AAC/D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgL4B,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,SAAS,CAAC;AAEhD,wFAAwF;AACxF,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACxF,2CAA2C;AAC3C,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAClF,iCAAiC;AACjC,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon — 統一アイコン primitive(Charcoal Icons、単色 tint)。
|
|
3
|
+
* contract: icon(app 先行定義、melta-contracts)。dogfood 不足-2(絵文字・生 Text 代用)の解消。
|
|
4
|
+
*
|
|
5
|
+
* ⚠️ 依存境界: このファイルだけが react-native-svg を import する。melta-app 本体エントリ
|
|
6
|
+
* ("melta-app")は依存ゼロを維持し、Icon は subpath エントリ "melta-app/icons" からだけ
|
|
7
|
+
* export される(optional peerDependency。利用者は `npx expo install react-native-svg` が必要)。
|
|
8
|
+
*
|
|
9
|
+
* - name は glyphs.ts(assets/icons/*.svg からの codegen、commit 済み配布)のキー。
|
|
10
|
+
* - color は semantic token キー限定(default "text-default")、size は contract sizes(sm/md/lg)。
|
|
11
|
+
* - a11y: 意味を持つ場合は accessibilityLabel を渡す。無指定は装飾扱いで a11y ツリーから除外
|
|
12
|
+
* (contract a11y required の両ケース)。
|
|
13
|
+
* - 決定ロジックは pure resolver(icon.styles.ts)に分離 — recipe との機械照合対象。
|
|
14
|
+
*/
|
|
15
|
+
import type { SemanticColors } from "../theme";
|
|
16
|
+
import { type SizeOf } from "../contracts/contract-types";
|
|
17
|
+
import { type IconName } from "./glyphs";
|
|
18
|
+
interface IconProps {
|
|
19
|
+
/** グリフ名(glyphs.ts のキー。例 "close" / "share-ios")。 */
|
|
20
|
+
name: IconName;
|
|
21
|
+
/** サイズ(contract sizes)。default "md"(20px)。 */
|
|
22
|
+
size?: SizeOf<"icon">;
|
|
23
|
+
/** 色(semantic token キーのみ)。default "text-default"。 */
|
|
24
|
+
color?: keyof SemanticColors;
|
|
25
|
+
/** 意味を持つ icon は必須。省略時は装飾扱い(a11y ツリーから除外)。 */
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function Icon({ name, size, color, accessibilityLabel, testID }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare namespace Icon {
|
|
31
|
+
var __contract: {
|
|
32
|
+
readonly id: "icon";
|
|
33
|
+
readonly version: "0.1.0";
|
|
34
|
+
readonly variants: readonly ["default"];
|
|
35
|
+
readonly sizes: readonly ["sm", "md", "lg"];
|
|
36
|
+
readonly states: readonly ["default"];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/icons/Icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAa,KAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAU,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,SAAS;IACjB,mDAAmD;IACnD,IAAI,EAAE,QAAQ,CAAC;IACf,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,cAAc,CAAC;IAC7B,6CAA6C;IAC7C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,IAAW,EAAE,KAAsB,EAAE,kBAAkB,EAAE,MAAM,EAAE,EAAE,SAAS,2CA2BxG;yBA3Be,IAAI"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
export interface Glyph {
|
|
2
|
+
viewBox: string;
|
|
3
|
+
paths: readonly {
|
|
4
|
+
d: string;
|
|
5
|
+
fillRule?: "evenodd";
|
|
6
|
+
}[];
|
|
7
|
+
}
|
|
8
|
+
declare const GLYPHS_SOURCE: {
|
|
9
|
+
readonly add: {
|
|
10
|
+
readonly viewBox: "0 0 24 24";
|
|
11
|
+
readonly paths: readonly [{
|
|
12
|
+
readonly d: "M14 10h4a2 2 0 110 4h-4v4a2 2 0 11-4 0v-4H6a2 2 0 110-4h4V6a2 2 0 114 0v4z";
|
|
13
|
+
}];
|
|
14
|
+
};
|
|
15
|
+
readonly back: {
|
|
16
|
+
readonly viewBox: "0 0 16 16";
|
|
17
|
+
readonly paths: readonly [{
|
|
18
|
+
readonly d: "M9.961 11.043a1 1 0 01-1.414 1.414L4.09 8l4.457-4.457a1 1 0 011.414 1.414L6.918 8l3.043 3.043z";
|
|
19
|
+
}];
|
|
20
|
+
};
|
|
21
|
+
readonly calendar: {
|
|
22
|
+
readonly viewBox: "0 0 24 24";
|
|
23
|
+
readonly paths: readonly [{
|
|
24
|
+
readonly d: "M8 3a1 1 0 00-2 0v1.126C4.275 4.57 3 6.136 3 8v10a4 4 0 004 4h10a4 4 0 004-4V8a4.002 4.002 0 00-3-3.874V3a1 1 0 10-2 0v1H8V3zm-3 7v8a2 2 0 002 2h10a2 2 0 002-2v-8H5z";
|
|
25
|
+
readonly fillRule: "evenodd";
|
|
26
|
+
}];
|
|
27
|
+
};
|
|
28
|
+
readonly camera: {
|
|
29
|
+
readonly viewBox: "0 0 24 24";
|
|
30
|
+
readonly paths: readonly [{
|
|
31
|
+
readonly d: "M8.5 13.5a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0z";
|
|
32
|
+
}, {
|
|
33
|
+
readonly d: "M9.295 3.557A2 2 0 0110.68 3h2.742a2 2 0 011.414.586L17.25 6H20a2 2 0 012 2v11a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h2.75l2.545-2.443zM12 8a5.5 5.5 0 100 11 5.5 5.5 0 000-11z";
|
|
34
|
+
readonly fillRule: "evenodd";
|
|
35
|
+
}];
|
|
36
|
+
};
|
|
37
|
+
readonly check: {
|
|
38
|
+
readonly viewBox: "0 0 24 24";
|
|
39
|
+
readonly paths: readonly [{
|
|
40
|
+
readonly d: "M15.848 7.449a2 2 0 012.804 2.853l-8.664 8.514-4.402-4.402a2 2 0 112.828-2.828l1.598 1.598 5.836-5.735z";
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
43
|
+
readonly close: {
|
|
44
|
+
readonly viewBox: "0 0 24 24";
|
|
45
|
+
readonly paths: readonly [{
|
|
46
|
+
readonly d: "M8.414 5.586a2 2 0 10-2.828 2.828L9.172 12l-3.586 3.586a2 2 0 102.828 2.828L12 14.828l3.586 3.586a2 2 0 102.828-2.828L14.828 12l3.586-3.586a2 2 0 10-2.828-2.828L12 9.172 8.414 5.586z";
|
|
47
|
+
}];
|
|
48
|
+
};
|
|
49
|
+
readonly comment: {
|
|
50
|
+
readonly viewBox: "0 0 16 16";
|
|
51
|
+
readonly paths: readonly [{
|
|
52
|
+
readonly d: "M5.4 13.409l-2.64.377.333-2.332a6 6 0 112.306 1.955z";
|
|
53
|
+
}];
|
|
54
|
+
};
|
|
55
|
+
readonly copy: {
|
|
56
|
+
readonly viewBox: "0 0 24 24";
|
|
57
|
+
readonly paths: readonly [{
|
|
58
|
+
readonly d: "M3 7a1 1 0 011 1v10a2 2 0 002 2h11a1 1 0 110 2H6a4 4 0 01-4-4V8a1 1 0 011-1z";
|
|
59
|
+
}, {
|
|
60
|
+
readonly d: "M19 2a3 3 0 013 3v10a3 3 0 01-3 3H9a3 3 0 01-3-3V5a3 3 0 013-3h10zM9 4a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V5a1 1 0 00-1-1H9z";
|
|
61
|
+
readonly fillRule: "evenodd";
|
|
62
|
+
}];
|
|
63
|
+
};
|
|
64
|
+
readonly discovery: {
|
|
65
|
+
readonly viewBox: "0 0 24 24";
|
|
66
|
+
readonly paths: readonly [{
|
|
67
|
+
readonly d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10zM6 18l4-8 8-4-4 8-8 4zm6-5a1 1 0 100-2 1 1 0 000 2z";
|
|
68
|
+
readonly fillRule: "evenodd";
|
|
69
|
+
}];
|
|
70
|
+
};
|
|
71
|
+
readonly down: {
|
|
72
|
+
readonly viewBox: "0 0 24 24";
|
|
73
|
+
readonly paths: readonly [{
|
|
74
|
+
readonly d: "M16.125 12V5a1 1 0 00-1-1h-6a1 1 0 00-1 1v7H4.539c-.89 0-1.337 1.077-.707 1.707L12.125 22l8.194-8.297c.623-.632.176-1.703-.712-1.703h-3.482z";
|
|
75
|
+
readonly fillRule: "evenodd";
|
|
76
|
+
}];
|
|
77
|
+
};
|
|
78
|
+
readonly edit: {
|
|
79
|
+
readonly viewBox: "0 0 32 32";
|
|
80
|
+
readonly paths: readonly [{
|
|
81
|
+
readonly d: "M7.26 23.537l1.12-5.6 7.955-7.955 5.657 5.657 1.768-1.768-5.657-5.657 2.121-2.121a2 2 0 012.828 0l2.829 2.828a2 2 0 010 2.829L14.037 23.594l-5.6 1.12a1 1 0 01-1.177-1.177z";
|
|
82
|
+
readonly fillRule: "evenodd";
|
|
83
|
+
}];
|
|
84
|
+
};
|
|
85
|
+
readonly error: {
|
|
86
|
+
readonly viewBox: "0 0 24 24";
|
|
87
|
+
readonly paths: readonly [{
|
|
88
|
+
readonly d: "M12 4a2 2 0 00-2 2v6.5a2 2 0 104 0V6a2 2 0 00-2-2zm2.25 13.75a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z";
|
|
89
|
+
readonly fillRule: "evenodd";
|
|
90
|
+
}];
|
|
91
|
+
};
|
|
92
|
+
readonly filter: {
|
|
93
|
+
readonly viewBox: "0 0 24 24";
|
|
94
|
+
readonly paths: readonly [{
|
|
95
|
+
readonly d: "M10.5 13.468L3.574 6.4C2.335 5.133 3.232 3 5.005 3h13.99c1.773 0 2.67 2.133 1.43 3.4L13.5 13.467V19a3 3 0 01-3.002 3v-8.532z";
|
|
96
|
+
}];
|
|
97
|
+
};
|
|
98
|
+
readonly home: {
|
|
99
|
+
readonly viewBox: "0 0 24 24";
|
|
100
|
+
readonly paths: readonly [{
|
|
101
|
+
readonly d: "M9 19a1 1 0 01-1 1H4a1 1 0 01-1-1v-7.586a1 1 0 01.293-.707l8-8a1 1 0 011.414 0l8 8a1 1 0 01.293.707V19a1 1 0 01-1 1h-4a1 1 0 01-1-1v-3.5a3 3 0 10-6 0V19z";
|
|
102
|
+
readonly fillRule: "evenodd";
|
|
103
|
+
}];
|
|
104
|
+
};
|
|
105
|
+
readonly image: {
|
|
106
|
+
readonly viewBox: "0 0 24 24";
|
|
107
|
+
readonly paths: readonly [{
|
|
108
|
+
readonly d: "M6 4a3 3 0 00-3 3v10a3 3 0 003 3h12a3 3 0 003-3V7a3 3 0 00-3-3H6zm13 8.5l-4 2-6-3-4 2V17a1 1 0 001 1h12a1 1 0 001-1v-4.5zM18 9a2 2 0 11-4 0 2 2 0 014 0z";
|
|
109
|
+
readonly fillRule: "evenodd";
|
|
110
|
+
}];
|
|
111
|
+
};
|
|
112
|
+
readonly info: {
|
|
113
|
+
readonly viewBox: "0 0 24 24";
|
|
114
|
+
readonly paths: readonly [{
|
|
115
|
+
readonly d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2.5 9a1 1 0 011-1H12a1 1 0 011 1v5h1a1 1 0 110 2h-4a1 1 0 110-2h1v-4h-.5a1 1 0 01-1-1zM12 5a1.5 1.5 0 100 3 1.5 1.5 0 000-3z";
|
|
116
|
+
readonly fillRule: "evenodd";
|
|
117
|
+
}];
|
|
118
|
+
};
|
|
119
|
+
readonly "like-off": {
|
|
120
|
+
readonly viewBox: "0 0 24 24";
|
|
121
|
+
readonly paths: readonly [{
|
|
122
|
+
readonly d: "M13.087 21.021C18.792 17.831 22 13.81 22 8.91A5.91 5.91 0 0016.09 3c-1.529 0-2.976.747-4.09 1.834C10.886 3.747 9.439 3 7.91 3A5.91 5.91 0 002 8.91c0 4.9 3.208 8.92 8.913 12.111a2.227 2.227 0 002.174 0zM16.09 5A3.91 3.91 0 0120 8.91c0 3.86-2.482 7.342-7.889 10.366a.229.229 0 01-.222 0C6.482 16.252 4 12.77 4 8.91A3.91 3.91 0 017.91 5c1.115 0 2.38.723 3.287 1.943L12 8.021l.803-1.078C13.71 5.723 14.975 5 16.09 5z";
|
|
123
|
+
readonly fillRule: "evenodd";
|
|
124
|
+
}];
|
|
125
|
+
};
|
|
126
|
+
readonly "like-on": {
|
|
127
|
+
readonly viewBox: "0 0 24 24";
|
|
128
|
+
readonly paths: readonly [{
|
|
129
|
+
readonly d: "M2 9.023A6.023 6.023 0 018.023 3c1.486 0 2.88.68 3.977 1.677C13.096 3.68 14.49 3 15.977 3A6.023 6.023 0 0122 9.023c0 4.908-3.22 8.893-8.807 12.018a2.443 2.443 0 01-2.386 0C5.22 17.916 2 13.931 2 9.023z";
|
|
130
|
+
readonly fillRule: "evenodd";
|
|
131
|
+
}];
|
|
132
|
+
};
|
|
133
|
+
readonly link: {
|
|
134
|
+
readonly viewBox: "0 0 24 24";
|
|
135
|
+
readonly paths: readonly [{
|
|
136
|
+
readonly d: "M14.031 3.367a4.666 4.666 0 116.6 6.598l-4.243 4.243a4.665 4.665 0 01-2.163 1.226h-.037l-.193.04-.107.02-.23.034h-.113c-.05 0-.097.005-.142.01a1.296 1.296 0 01-.095.01l-.2.023h-.253a4.616 4.616 0 01-.497-.047 5.356 5.356 0 01-.403-.083l-.197-.053a2.64 2.64 0 01-.213-.07l-.078-.029c-.045-.016-.09-.032-.135-.051a4.71 4.71 0 00-.07-.03 4.627 4.627 0 01-1.473-.994 1.333 1.333 0 010-1.879 1.366 1.366 0 011.873 0 2 2 0 002.826 0l1.093-1.086.027-.03 3.126-3.123a2 2 0 00-2.83-2.83l-2.51 2.507a.333.333 0 01-.362.073 5.6 5.6 0 00-2.13-.417h-.123a.333.333 0 01-.243-.57l3.495-3.492z";
|
|
137
|
+
}, {
|
|
138
|
+
readonly d: "M13.418 9.166c.284.18.547.391.784.63.27.27.41.644.386 1.026-.023.32-.16.62-.386.847a1.366 1.366 0 01-1.873 0 2 2 0 00-2.827 0L5.246 15.92a2 2 0 002.83 2.83l2.516-2.52a.333.333 0 01.363-.073 5.612 5.612 0 002.133.413h.134a.333.333 0 01.236.57l-3.5 3.5A4.636 4.636 0 016.664 22a4.666 4.666 0 01-3.3-7.962l4.24-4.242a4.666 4.666 0 015.816-.63z";
|
|
139
|
+
}];
|
|
140
|
+
};
|
|
141
|
+
readonly menu: {
|
|
142
|
+
readonly viewBox: "0 0 24 24";
|
|
143
|
+
readonly paths: readonly [{
|
|
144
|
+
readonly d: "M4 7a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1zM4 12a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1zM5 16a1 1 0 100 2h14a1 1 0 100-2H5z";
|
|
145
|
+
}];
|
|
146
|
+
};
|
|
147
|
+
readonly more: {
|
|
148
|
+
readonly viewBox: "0 0 16 16";
|
|
149
|
+
readonly paths: readonly [{
|
|
150
|
+
readonly d: "M6.043 4.957a1 1 0 011.414-1.414L11.914 8l-4.457 4.457a1 1 0 01-1.414-1.414L9.086 8 6.043 4.957z";
|
|
151
|
+
}];
|
|
152
|
+
};
|
|
153
|
+
readonly next: {
|
|
154
|
+
readonly viewBox: "0 0 24 24";
|
|
155
|
+
readonly paths: readonly [{
|
|
156
|
+
readonly d: "M8.086 16.586a2 2 0 102.828 2.828L18.328 12l-7.414-7.414a2 2 0 10-2.828 2.828L12.672 12l-4.586 4.586z";
|
|
157
|
+
}];
|
|
158
|
+
};
|
|
159
|
+
readonly notification: {
|
|
160
|
+
readonly viewBox: "0 0 24 24";
|
|
161
|
+
readonly paths: readonly [{
|
|
162
|
+
readonly d: "M18 9.25V12l1.561 4.684A1 1 0 0118.613 18H5.387a1 1 0 01-.948-1.316L6 12V9.25C6 5.798 8.686 3 12 3s6 2.798 6 6.25zM12 21a3.001 3.001 0 01-2.83-2h5.66A3.001 3.001 0 0112 21z";
|
|
163
|
+
}];
|
|
164
|
+
};
|
|
165
|
+
readonly prev: {
|
|
166
|
+
readonly viewBox: "0 0 24 24";
|
|
167
|
+
readonly paths: readonly [{
|
|
168
|
+
readonly d: "M15.913 16.586a2 2 0 01-2.829 2.828L5.67 12l7.414-7.414a2 2 0 012.829 2.828L11.327 12l4.586 4.586z";
|
|
169
|
+
}];
|
|
170
|
+
};
|
|
171
|
+
readonly question: {
|
|
172
|
+
readonly viewBox: "0 0 24 24";
|
|
173
|
+
readonly paths: readonly [{
|
|
174
|
+
readonly d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.179 15.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm.058-3.98c.01-.02.02-.04.03-.05.272-.4.651-.732 1.036-1.069.886-.777 1.8-1.579 1.494-3.281-.29-1.69-1.64-3.08-3.33-3.33-2.06-.3-3.88.97-4.43 2.79-.17.58.27 1.17.87 1.17h.2c.41 0 .74-.29.88-.65.32-.89 1.26-1.5 2.3-1.28.96.2 1.66 1.15 1.57 2.13-.068.763-.613 1.186-1.219 1.654-.377.293-.778.603-1.101 1.026l-.01-.01a.326.326 0 00-.046.066 1.302 1.302 0 01-.084.129 2.261 2.261 0 00-.27.515.156.156 0 01-.025.05c-.01.015-.02.03-.025.05-.01.01-.01.02-.01.03-.12.36-.2.79-.2 1.3h2.01a2.11 2.11 0 01.18-.89c.01-.04.02-.08.04-.11.04-.08.09-.16.14-.24z";
|
|
175
|
+
readonly fillRule: "evenodd";
|
|
176
|
+
}];
|
|
177
|
+
};
|
|
178
|
+
readonly reload: {
|
|
179
|
+
readonly viewBox: "0 0 24 24";
|
|
180
|
+
readonly paths: readonly [{
|
|
181
|
+
readonly d: "M12 7a6 6 0 106 6 1 1 0 112 0 8 8 0 11-8-8h1.42l-1.7-2.125a1 1 0 111.56-1.25l3 3.75a1 1 0 010 1.25l-3 3.75a1 1 0 01-1.56-1.25L13.42 7H12z";
|
|
182
|
+
}];
|
|
183
|
+
};
|
|
184
|
+
readonly search: {
|
|
185
|
+
readonly viewBox: "0 0 24 24";
|
|
186
|
+
readonly paths: readonly [{
|
|
187
|
+
readonly d: "M15.461 10.615c0-1.334-.474-2.475-1.422-3.423-.948-.949-2.09-1.423-3.424-1.423s-2.475.474-3.423 1.423c-.949.948-1.423 2.09-1.423 3.423 0 1.335.474 2.476 1.423 3.424.948.948 2.09 1.422 3.423 1.422 1.335 0 2.476-.474 3.424-1.422s1.422-2.09 1.422-3.424zm5.539 9c0 .375-.137.7-.411.974a1.33 1.33 0 01-.974.411c-.389 0-.714-.137-.973-.411l-3.71-3.7a7.407 7.407 0 01-4.317 1.342c-1.03 0-2.017-.2-2.958-.6a7.613 7.613 0 01-2.434-1.623A7.614 7.614 0 013.6 13.574c-.4-.941-.6-1.927-.6-2.959 0-1.03.2-2.017.6-2.958.4-.941.941-1.753 1.623-2.434A7.614 7.614 0 017.657 3.6c.941-.4 1.927-.6 2.958-.6 1.032 0 2.018.2 2.959.6.941.4 1.752.941 2.434 1.623a7.613 7.613 0 011.622 2.434c.4.941.6 1.927.6 2.958a7.407 7.407 0 01-1.34 4.316l3.71 3.71c.267.268.4.592.4.974z";
|
|
188
|
+
readonly fillRule: "evenodd";
|
|
189
|
+
}];
|
|
190
|
+
};
|
|
191
|
+
readonly send: {
|
|
192
|
+
readonly viewBox: "0 0 24 24";
|
|
193
|
+
readonly paths: readonly [{
|
|
194
|
+
readonly d: "M3 13.5h5a1.5 1.5 0 000-3H3V3.695a1 1 0 011.466-.885l15.853 8.343a1 1 0 010 1.77L4.466 21.267A1 1 0 013 20.382V13.5z";
|
|
195
|
+
readonly fillRule: "evenodd";
|
|
196
|
+
}];
|
|
197
|
+
};
|
|
198
|
+
readonly settings: {
|
|
199
|
+
readonly viewBox: "0 0 24 24";
|
|
200
|
+
readonly paths: readonly [{
|
|
201
|
+
readonly d: "M19.5 12c0 .61.224 1.21.704 1.586l1.336 1.044c.19.15.24.42.12.64l-2 3.46c-.12.22-.38.31-.61.22l-1.589-.638c-.56-.225-1.186-.13-1.705.176-.528.31-.94.814-1.026 1.42l-.24 1.672c-.03.24-.24.42-.49.42h-4c-.25 0-.46-.18-.49-.42l-.24-1.68c-.087-.6-.495-1.098-1.02-1.404-.524-.305-1.156-.407-1.718-.181l-1.582.635c-.22.08-.49 0-.61-.22l-2-3.46a.505.505 0 01.12-.64l1.335-1.044c.48-.376.705-.976.705-1.586 0-.61-.224-1.21-.705-1.586L2.46 9.37a.493.493 0 01-.12-.64l2-3.46c.12-.22.38-.31.61-.22l1.588.638c.56.225 1.186.13 1.706-.176.528-.31.94-.814 1.026-1.42l.24-1.672c.03-.24.24-.42.49-.42h4c.25 0 .46.18.49.42l.24 1.68c.087.6.494 1.098 1.02 1.404.524.306 1.155.407 1.718.181l1.582-.635c.22-.08.49 0 .61.22l2 3.46c.12.22.07.49-.12.64l-1.336 1.044c-.48.376-.704.976-.704 1.586zm-11 0c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5-3.5 1.57-3.5 3.5z";
|
|
202
|
+
readonly fillRule: "evenodd";
|
|
203
|
+
}];
|
|
204
|
+
};
|
|
205
|
+
readonly "share-android": {
|
|
206
|
+
readonly viewBox: "0 0 24 24";
|
|
207
|
+
readonly paths: readonly [{
|
|
208
|
+
readonly d: "M13 6.375a2.75 2.75 0 111.03 2.146L8.72 11.586a2.773 2.773 0 010 .828l5.312 3.065a2.75 2.75 0 11-1 1.732l-5.312-3.065a2.75 2.75 0 110-4.293l5.312-3.064A2.773 2.773 0 0113 6.375z";
|
|
209
|
+
}];
|
|
210
|
+
};
|
|
211
|
+
readonly "share-ios": {
|
|
212
|
+
readonly viewBox: "0 0 24 24";
|
|
213
|
+
readonly paths: readonly [{
|
|
214
|
+
readonly d: "M12 2.586L7.293 7.293a1 1 0 001.414 1.414L11 6.414V13a1 1 0 102 0V6.414l2.293 2.293a1 1 0 101.414-1.414L12 2.586z";
|
|
215
|
+
}, {
|
|
216
|
+
readonly d: "M6 18v-6H4v6a3 3 0 003 3h10a3 3 0 003-3v-6h-2v6a1 1 0 01-1 1H7a1 1 0 01-1-1z";
|
|
217
|
+
}];
|
|
218
|
+
};
|
|
219
|
+
readonly trash: {
|
|
220
|
+
readonly viewBox: "0 0 24 24";
|
|
221
|
+
readonly paths: readonly [{
|
|
222
|
+
readonly d: "M9 4h6v1h2.5a1 1 0 110 2h-11a1 1 0 010-2H9V4zM7.01 8a1 1 0 00-1 1.01l.105 10a1 1 0 001 .99H17a1 1 0 001-1V9a1 1 0 00-1-1H7.01z";
|
|
223
|
+
}];
|
|
224
|
+
};
|
|
225
|
+
readonly up: {
|
|
226
|
+
readonly viewBox: "0 0 24 24";
|
|
227
|
+
readonly paths: readonly [{
|
|
228
|
+
readonly d: "M16 12v7a1 1 0 01-1 1H9a1 1 0 01-1-1v-7H4.414c-.89 0-1.337-1.077-.707-1.707L12 2l8.194 8.297c.623.632.176 1.703-.712 1.703H16z";
|
|
229
|
+
readonly fillRule: "evenodd";
|
|
230
|
+
}];
|
|
231
|
+
};
|
|
232
|
+
readonly user: {
|
|
233
|
+
readonly viewBox: "0 0 32 32";
|
|
234
|
+
readonly paths: readonly [{
|
|
235
|
+
readonly d: "M21.39 11.357c0 2.959-2.386 5.357-5.328 5.357-2.941 0-5.326-2.398-5.326-5.357S13.12 6 16.062 6c2.942 0 5.327 2.398 5.327 5.357zm-5.328 5.357c4.315 0 7.813 3.402 7.813 7.598v.26c0 .788-.636 1.428-1.42 1.428H9.67c-.784 0-1.42-.64-1.42-1.429v-.26c0-4.195 3.498-7.597 7.813-7.597z";
|
|
236
|
+
readonly fillRule: "evenodd";
|
|
237
|
+
}];
|
|
238
|
+
};
|
|
239
|
+
readonly users: {
|
|
240
|
+
readonly viewBox: "0 0 24 24";
|
|
241
|
+
readonly paths: readonly [{
|
|
242
|
+
readonly d: "M7.507 10.5a3.75 3.75 0 10-.014 0C4.459 10.504 2 12.883 2 15.818 2 16.471 2.53 17 3.182 17h7.451a5.608 5.608 0 012.21-2.445c-.585-2.325-2.752-4.052-5.336-4.055zm8.993 4a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5zm0 0c-3.038 0-5.5 2.381-5.5 5.318V20a1 1 0 001 1h9a1 1 0 001-1v-.182c0-2.937-2.462-5.318-5.5-5.318z";
|
|
243
|
+
readonly fillRule: "evenodd";
|
|
244
|
+
}];
|
|
245
|
+
};
|
|
246
|
+
readonly warning: {
|
|
247
|
+
readonly viewBox: "0 0 24 24";
|
|
248
|
+
readonly paths: readonly [{
|
|
249
|
+
readonly d: "M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM11 9a1 1 0 112 0v4a1 1 0 11-2 0V9zm1 7a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5z";
|
|
250
|
+
readonly fillRule: "evenodd";
|
|
251
|
+
}];
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
export type IconName = keyof typeof GLYPHS_SOURCE;
|
|
255
|
+
export declare const GLYPHS: Record<IconName, Glyph>;
|
|
256
|
+
/** 利用可能な icon name 一覧(catalog / ドキュメント生成用)。 */
|
|
257
|
+
export declare const ICON_NAMES: IconName[];
|
|
258
|
+
export {};
|
|
259
|
+
//# sourceMappingURL=glyphs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glyphs.d.ts","sourceRoot":"","sources":["../../../../src/icons/glyphs.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,SAAS;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;CACvD;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCT,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,aAAa,CAAC;AAElD,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAiB,CAAC;AAE7D,+CAA+C;AAC/C,eAAO,MAAM,UAAU,EAA0B,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* icon.styles — Icon の pure style resolver(styleRefs conformance 対応で Icon.tsx から分離)。
|
|
3
|
+
*
|
|
4
|
+
* react-native を import しない純粋モジュールにすることで node テスト(tsx --test)から
|
|
5
|
+
* 直接実行できる。recipes/app/icon.recipe.json(melta-contracts の styleRefs)との
|
|
6
|
+
* 機械照合は scripts/lib/icon-conformance.test.ts が行う。
|
|
7
|
+
*/
|
|
8
|
+
import type { NativeTheme, SemanticColors, ThemeMode } from "../theme";
|
|
9
|
+
export type IconSize = "sm" | "md" | "lg";
|
|
10
|
+
export interface IconStyle {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
color: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* size / color → Icon style の解決(icon.recipe styleRefs の 1:1 写像)。
|
|
17
|
+
* デフォルト(size=md / color=text-default)は recipe の default variant と一致させている。
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveIconStyle(theme: NativeTheme, mode: ThemeMode, size?: IconSize, color?: keyof SemanticColors): IconStyle;
|
|
20
|
+
//# sourceMappingURL=icon.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.styles.d.ts","sourceRoot":"","sources":["../../../../src/icons/icon.styles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAK1C,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,SAAS,EACf,IAAI,GAAE,QAAe,EACrB,KAAK,GAAE,MAAM,cAA+B,GAC3C,SAAS,CAMX"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* melta-app/icons — Icon の subpath エントリ。
|
|
3
|
+
*
|
|
4
|
+
* 本体エントリ("melta-app")から分離している理由: Icon だけが react-native-svg
|
|
5
|
+
* (optional peerDependency)に依存するため。Metro は import を静的に解決するので、
|
|
6
|
+
* 本体エントリに Icon を含めると react-native-svg 未 install の利用者がバンドルできなくなる。
|
|
7
|
+
* この subpath を import する利用者だけが react-native-svg を要求される。
|
|
8
|
+
*/
|
|
9
|
+
export { Icon } from "./Icon";
|
|
10
|
+
export { GLYPHS, ICON_NAMES } from "./glyphs";
|
|
11
|
+
export type { IconName, Glyph } from "./glyphs";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* melta-app — melta デザインシステムの React Native 実装(公開エントリ)。
|
|
3
|
+
*
|
|
4
|
+
* 契約(npm: melta-contracts)を SSOT とし、theme(トークンの RN 正規化)/
|
|
5
|
+
* primitives / components がその契約を満たす。契約との整合は conformance テストが機械照合する。
|
|
6
|
+
* アプリ本体ではなく UI kit。使い方はルートを ThemeProvider で包み、コンポーネントを import する。
|
|
7
|
+
*/
|
|
8
|
+
export * from "./theme";
|
|
9
|
+
export * from "./primitives";
|
|
10
|
+
export * from "./components";
|
|
11
|
+
export { CONTRACTS, type ContractId, type ContractShape, type VariantOf, type SizeOf, type StateOf, } from "./contracts/contract-types";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAG7B,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,OAAO,GACb,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button — CTA / セカンダリ / アイコンボタン(設計書 §1, §4 C-3)。contract: button。
|
|
3
|
+
*
|
|
4
|
+
* - variant 7(contained/outlined/brand-outline/neutral/lighted/danger/subtle)× size 3(small/medium/large)。
|
|
5
|
+
* - iconOnly は discriminated union で accessibilityLabel 必須を型強制(§4、label 排他)。
|
|
6
|
+
* - states(§2 mapping): hover→pressed(背景を pressed 色に)、focus→FocusRing overlay(共通 helper)、
|
|
7
|
+
* disabled→prop(opacity + 非活性)、loading→Spinner + disabled 相当。
|
|
8
|
+
* - 色は variant ごとに NativeTheme から解決(button.contract tokenRefs を 1:1 で写像)。
|
|
9
|
+
* contained の pressed は hover-bg=primary.700(contract に native readable token あり、唯一)。
|
|
10
|
+
* 他 variant の pressed 視覚変化は contract が Tailwind のみ=Phase1 non-conformant(§2 M-1)、
|
|
11
|
+
* ここでは pressed 時に薄い overlay を敷く近似に留め、Phase2 で contract に pressed-* token 追加。
|
|
12
|
+
* - height は contract sizes(small32/medium40/large48)。
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode } from "react";
|
|
15
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
16
|
+
import { type ButtonVariant, type ButtonSize } from "./button.styles";
|
|
17
|
+
interface ButtonBase {
|
|
18
|
+
variant?: ButtonVariant;
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
leadingIcon?: ReactNode;
|
|
21
|
+
trailingIcon?: ReactNode;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
onPress?: () => void;
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
26
|
+
testID?: string;
|
|
27
|
+
}
|
|
28
|
+
type ButtonProps = ButtonBase & ({
|
|
29
|
+
iconOnly: true;
|
|
30
|
+
accessibilityLabel: string;
|
|
31
|
+
leadingIcon: ReactNode;
|
|
32
|
+
label?: never;
|
|
33
|
+
} | {
|
|
34
|
+
iconOnly?: false;
|
|
35
|
+
label: string;
|
|
36
|
+
});
|
|
37
|
+
export declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare namespace Button {
|
|
39
|
+
var __contract: {
|
|
40
|
+
readonly id: "button";
|
|
41
|
+
readonly version: "2.0.0";
|
|
42
|
+
readonly variants: readonly ["contained", "outlined", "brand-outline", "neutral", "lighted", "danger", "subtle"];
|
|
43
|
+
readonly sizes: readonly ["small", "medium", "large"];
|
|
44
|
+
readonly states: readonly ["default", "hover", "focus", "disabled", "loading"];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/primitives/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,EAA6B,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEjG,UAAU,UAAU;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,WAAW,GAAG,UAAU,GAC3B,CAEI;IAAE,QAAQ,EAAE,IAAI,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrF;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CACtC,CAAC;AAEJ,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CA+DxC;yBA/De,MAAM"}
|