@app-studio/components 0.11.11 → 0.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/index.d.ts +230 -113
- package/dist/native/components/Alert/Alert/Alert.style.js +4 -4
- package/dist/native/components/Alert/Alert/Alert.view.js +6 -4
- package/dist/native/components/Alert/Alert/Alert.view.js.map +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js.map +1 -1
- package/dist/native/components/Button/Button/Button.element.d.ts +1 -0
- package/dist/native/components/Button/Button/Button.element.js +2 -0
- package/dist/native/components/Button/Button/Button.element.js.map +1 -0
- package/dist/native/components/Button/Button/Button.element.native.d.ts +2 -0
- package/dist/native/components/Button/Button/Button.element.native.js +2 -0
- package/dist/native/components/Button/Button/Button.element.native.js.map +1 -0
- package/dist/native/components/Button/Button.d.ts +1 -1
- package/dist/native/components/Button/Button.js +18 -5
- package/dist/native/components/Button/Button.js.map +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js.map +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js.map +1 -1
- package/dist/native/components/DataState/DataState/DataState.props.d.ts +14 -0
- package/dist/native/components/DataState/DataState/DataState.props.js +2 -0
- package/dist/native/components/DataState/DataState/DataState.props.js.map +1 -0
- package/dist/native/components/DataState/DataState/DataState.state.d.ts +13 -0
- package/dist/native/components/DataState/DataState/DataState.state.js +28 -0
- package/dist/native/components/DataState/DataState/DataState.state.js.map +1 -0
- package/dist/native/components/DataState/DataState/DataState.type.d.ts +33 -0
- package/dist/native/components/DataState/DataState/DataState.type.js +2 -0
- package/dist/native/components/DataState/DataState/DataState.type.js.map +1 -0
- package/dist/native/components/DataState/DataState/DataState.view.d.ts +6 -0
- package/dist/native/components/DataState/DataState/DataState.view.js +11 -0
- package/dist/native/components/DataState/DataState/DataState.view.js.map +1 -0
- package/dist/native/components/DataState/DataState/DataState.view.native.d.ts +6 -0
- package/dist/native/components/DataState/DataState/DataState.view.native.js +11 -0
- package/dist/native/components/DataState/DataState/DataState.view.native.js.map +1 -0
- package/dist/native/components/DataState/DataState.d.ts +3 -0
- package/dist/native/components/DataState/DataState.js +31 -0
- package/dist/native/components/DataState/DataState.js.map +1 -0
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +2 -6
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +2 -2
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js.map +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.js +2 -2
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.js.map +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js +2 -2
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js.map +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.js +2 -2
- package/dist/native/components/Form/Label/Label/Label.view.js.map +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.native.js +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.native.js.map +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.js +2 -6
- package/dist/native/components/Form/Radio/Radio/Radio.view.js.map +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.native.js +2 -2
- package/dist/native/components/Form/Radio/Radio/Radio.view.native.js.map +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.js +2 -2
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.js.map +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.props.d.ts +1 -0
- package/dist/native/components/Form/TextField/TextField/TextField.view.js +8 -3
- package/dist/native/components/Form/TextField/TextField/TextField.view.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +3 -2
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js.map +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.js.map +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js.map +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +5 -0
- package/dist/native/components/Input/FieldContainer/FieldContainer.js +2 -2
- package/dist/native/components/Input/FieldContainer/FieldContainer.js.map +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel.js +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel.js.map +1 -1
- package/dist/native/components/Link/Link/Link.props.d.ts +1 -0
- package/dist/native/components/Link/Link/Link.style.d.ts +4 -0
- package/dist/native/components/Link/Link/Link.style.js +7 -0
- package/dist/native/components/Link/Link/Link.style.js.map +1 -1
- package/dist/native/components/Link/Link/Link.type.d.ts +1 -0
- package/dist/native/components/Link/Link/Link.view.js +5 -3
- package/dist/native/components/Link/Link/Link.view.js.map +1 -1
- package/dist/native/components/Link/Link/Link.view.native.js +5 -3
- package/dist/native/components/Link/Link/Link.view.native.js.map +1 -1
- package/dist/native/components/PageHeader/PageHeader/PageHeader.props.d.ts +9 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.props.js +2 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.props.js.map +1 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.style.d.ts +4 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.style.js +17 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.style.js.map +1 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.type.d.ts +7 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.type.js +2 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.type.js.map +1 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.view.d.ts +4 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.view.js +18 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.view.js.map +1 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.view.native.d.ts +4 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.view.native.js +19 -0
- package/dist/native/components/PageHeader/PageHeader/PageHeader.view.native.js.map +1 -0
- package/dist/native/components/PageHeader/PageHeader.d.ts +3 -0
- package/dist/native/components/PageHeader/PageHeader.js +10 -0
- package/dist/native/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.props.d.ts +10 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.props.js +2 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.props.js.map +1 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.style.d.ts +4 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.style.js +24 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.style.js.map +1 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.type.d.ts +8 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.type.js +2 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.type.js.map +1 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.view.d.ts +4 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.view.js +14 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.view.js.map +1 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.view.native.d.ts +4 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.view.native.js +21 -0
- package/dist/native/components/StatePanel/StatePanel/StatePanel.view.native.js.map +1 -0
- package/dist/native/components/StatePanel/StatePanel.d.ts +3 -0
- package/dist/native/components/StatePanel/StatePanel.js +10 -0
- package/dist/native/components/StatePanel/StatePanel.js.map +1 -0
- package/dist/native/components/index.d.ts +5 -135
- package/dist/native/components/index.js +9 -133
- package/dist/native/components/index.js.map +1 -1
- package/dist/native/components/index.native.d.ts +1 -0
- package/dist/native/components/index.native.js +5 -0
- package/dist/native/components/index.native.js.map +1 -0
- package/dist/native/components/index.shared.d.ts +143 -0
- package/dist/native/components/index.shared.js +146 -0
- package/dist/native/components/index.shared.js.map +1 -0
- package/dist/native/design-system/DesignSystemProvider.d.ts +7 -0
- package/dist/native/design-system/DesignSystemProvider.js +11 -4
- package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
- package/dist/native/design-system/DesignSystemScope.d.ts +8 -0
- package/dist/native/design-system/DesignSystemScope.js +10 -0
- package/dist/native/design-system/DesignSystemScope.js.map +1 -0
- package/dist/native/design-system/DesignSystemScope.native.d.ts +8 -0
- package/dist/native/design-system/DesignSystemScope.native.js +8 -0
- package/dist/native/design-system/DesignSystemScope.native.js.map +1 -0
- package/dist/native/design-system/configs/airbnb.json +0 -10
- package/dist/native/design-system/configs/apple.json +0 -10
- package/dist/native/design-system/configs/coinbase.json +0 -10
- package/dist/native/design-system/configs/default.json +0 -10
- package/dist/native/design-system/configs/figma.json +0 -10
- package/dist/native/design-system/configs/linear.json +0 -10
- package/dist/native/design-system/configs/nike.json +0 -10
- package/dist/native/design-system/configs/notion.json +0 -10
- package/dist/native/design-system/configs/revolut.json +0 -10
- package/dist/native/design-system/configs/shopify.json +0 -10
- package/dist/native/design-system/configs/spacex.json +0 -10
- package/dist/native/design-system/configs/spotify.json +0 -10
- package/dist/native/design-system/configs/stripe.json +0 -10
- package/dist/native/design-system/configs/tesla.json +0 -10
- package/dist/native/design-system/configs/uber.json +0 -10
- package/dist/native/design-system/configs/vercel.json +0 -10
- package/dist/native/design-system/types.d.ts +7 -1
- package/dist/web.cjs.js +24 -24
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +22828 -22771
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +26 -26
- package/dist/web.umd.js.map +1 -1
- package/docs/components/Button.mdx +15 -0
- package/docs/components/DataState.mdx +62 -0
- package/docs/components/Link.mdx +23 -0
- package/docs/components/PageHeader.mdx +47 -0
- package/docs/components/StatePanel.mdx +35 -0
- package/docs/components/TextField.mdx +31 -0
- package/docs/getting-started/react-native.md +47 -4
- package/package.json +59 -8
|
@@ -1,142 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * from './
|
|
1
|
+
// Web entry: every component. Components that need zustand, formik, date-fns,
|
|
2
|
+
// react-dom or react-router-dom on native too live here rather than in
|
|
3
|
+
// `index.shared.tsx`; on React Native they are reachable through
|
|
4
|
+
// `@app-studio/components/native/<Name>` (see package.json `exports`).
|
|
5
|
+
export * from './index.shared';
|
|
6
6
|
export * from './AudioInput/AudioInput';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './Button/Button';
|
|
10
|
-
export * from './Card/Card';
|
|
11
|
-
export * from './Carousel/Carousel';
|
|
12
|
-
export * from './Chart/Chart';
|
|
13
|
-
export * from './Chart/Chart/ChartColors';
|
|
14
|
-
export * from './CookieConsent/CookieConsent';
|
|
15
|
-
export * from './ContextMenu/ContextMenu';
|
|
16
|
-
export * from './File/File';
|
|
17
|
-
export * from './Form/Select/Select';
|
|
18
|
-
export * from './Form/Switch/Switch';
|
|
19
|
-
export * from './Form/Selector/Selector';
|
|
20
|
-
export * from './Form/TextArea/TextArea';
|
|
21
|
-
export * from './Form/TextField/TextField';
|
|
22
|
-
export * from './Form/Checkbox/Checkbox';
|
|
23
|
-
export * from './Form/Radio/Radio';
|
|
24
|
-
export * from './Form/Radio/RadioGroup';
|
|
25
|
-
export * from './Form/ColorInput/ColorInput';
|
|
26
|
-
export * from './Form/CountryPicker/CountryPicker';
|
|
7
|
+
export * from './ChatInput/ChatInput';
|
|
8
|
+
export * from './Drawer/Drawer';
|
|
27
9
|
export * from './Form/DatePicker/DatePicker';
|
|
28
|
-
export * from './Form/Password/Password';
|
|
29
|
-
export * from './Form/ComboBox/ComboBox';
|
|
30
|
-
export * from './Form/TagInput/TagInput';
|
|
31
|
-
export * from './OTPInput/OTPInput';
|
|
32
10
|
export * from './Formik';
|
|
33
|
-
export * from './Slider';
|
|
34
|
-
export * from './Link/Link';
|
|
35
|
-
export * from './Loader/Loader';
|
|
36
|
-
export * from './Uploader/Uploader';
|
|
37
11
|
export * from './Message/Message';
|
|
38
|
-
export * from './MediaPreview';
|
|
39
12
|
export * from './Modal/Modal';
|
|
40
|
-
export * from './Drawer/Drawer';
|
|
41
|
-
export * from './KeyboardAvoidingView';
|
|
42
|
-
export * from './PageLayout';
|
|
43
|
-
export * from './SplashScreen';
|
|
44
13
|
export * from './Router';
|
|
45
|
-
export * from './
|
|
46
|
-
export * from './Table/Table';
|
|
47
|
-
export * from './Tabs/Tabs';
|
|
48
|
-
export * from './Title/Title';
|
|
49
|
-
export * from './Icon/Icon';
|
|
50
|
-
export * from './Toggle/Toggle';
|
|
51
|
-
export * from './ToggleGroup/ToggleGroup';
|
|
52
|
-
export * from './DragAndDrop/DragAndDrop';
|
|
53
|
-
export * from './DropZone/DropZone';
|
|
54
|
-
export * from './DropdownMenu/DropdownMenu';
|
|
55
|
-
export * from './ColorPicker/ColorPicker';
|
|
56
|
-
export * from './EmojiPicker/EmojiPicker';
|
|
57
|
-
export * from './EmojiPicker/EmojiPicker/EmojiPicker.data';
|
|
58
|
-
export * from './BlockEditor/BlockEditor';
|
|
59
|
-
export * from './BlockEditor/BlockEditor/BlockEditor.props';
|
|
60
|
-
export * from './Markdown/Markdown';
|
|
61
|
-
export * from './Markdown/Markdown/Markdown.props';
|
|
62
|
-
export * from './Markdown/Markdown/useMarkdownTyping';
|
|
63
|
-
export * from './IconPicker/IconPicker';
|
|
64
|
-
export * from './Gradient/Gradient';
|
|
65
|
-
export * from './HoverCard/HoverCard';
|
|
66
|
-
export * from './Menubar/Menubar';
|
|
67
|
-
export * from './Pagination/Pagination';
|
|
68
|
-
export * from './ProgressBar/ProgressBar';
|
|
69
|
-
export * from './Separator/Separator';
|
|
70
|
-
export * from './ShareButton/ShareButton';
|
|
71
|
-
export * from './StatusIndicator/StatusIndicator';
|
|
72
|
-
export * from './Sidebar/Sidebar';
|
|
73
|
-
export * from './Resizable/Resizable';
|
|
14
|
+
export * from './SplashScreen';
|
|
74
15
|
export * from './Toast/Toast';
|
|
75
|
-
export * from './
|
|
76
|
-
export * from './Tooltip/Tooltip';
|
|
77
|
-
export * from './ChatInput/ChatInput';
|
|
78
|
-
export * from './Background/Background';
|
|
79
|
-
export * from './ChatWidget/ChatWidget';
|
|
80
|
-
export * from './AttachmentGroup/AttachmentGroup';
|
|
81
|
-
export * from './ChatWidget/Widget/ChatWidgetWidget';
|
|
82
|
-
export * from '../design-system';
|
|
16
|
+
export * from './Uploader/Uploader';
|
|
83
17
|
export { DesignSystem } from '../pages/designSystem.page';
|
|
84
|
-
export * from './Accordion/Accordion/Accordion.props';
|
|
85
|
-
export * from './ActionSheet/ActionSheet/ActionSheet.props';
|
|
86
|
-
export * from './ActionSheet/ActionSheet/ActionSheet.type';
|
|
87
|
-
export * from './Alert/Alert/Alert.props';
|
|
88
|
-
export * from './AspectRatio/AspectRatio/AspectRatio.props';
|
|
89
|
-
export * from './AudioInput/AudioInput/AudioInput.props';
|
|
90
|
-
export * from './Avatar/Avatar/Avatar.props';
|
|
91
|
-
export * from './Badge/Badge/Badge.props';
|
|
92
|
-
export * from './Button/Button/Button.props';
|
|
93
|
-
export * from './Card/Card/Card.props';
|
|
94
|
-
export * from './Carousel/Carousel/Carousel.props';
|
|
95
|
-
export * from './Chart/Chart/Chart.props';
|
|
96
|
-
export * from './CookieConsent/CookieConsent/CookieConsent.props';
|
|
97
|
-
export * from './ContextMenu/ContextMenu/ContextMenu.props';
|
|
98
|
-
export * from './Form/Select/Select/Select.props';
|
|
99
|
-
export * from './Form/Switch/Switch/Switch.props';
|
|
100
|
-
export * from './Form/TextArea/TextArea/TextArea.props';
|
|
101
|
-
export * from './Form/TextField/TextField/TextField.props';
|
|
102
|
-
export * from './Form/Checkbox/Checkbox/Checkbox.props';
|
|
103
|
-
export * from './Form/Radio/Radio/Radio.props';
|
|
104
|
-
export * from './Form/ColorInput/ColorInput/ColorInput.props';
|
|
105
|
-
export * from './Form/CountryPicker/CountryPicker/CountryPicker.props';
|
|
106
|
-
export * from './Form/DatePicker/DatePicker/DatePicker.props';
|
|
107
|
-
export * from './Form/Password/Password/Password.props';
|
|
108
|
-
export * from './Form/ComboBox/ComboBox/ComboBox.props';
|
|
109
|
-
export * from './OTPInput/OTPInput/OTPInput.props';
|
|
110
|
-
export * from './Link/Link/Link.props';
|
|
111
|
-
export * from './Loader/Loader/Loader.props';
|
|
112
|
-
export * from './Message/Message/Message.props';
|
|
113
|
-
export * from './Modal/Modal/Modal.props';
|
|
114
|
-
export * from './Drawer/Drawer/Drawer.props';
|
|
115
|
-
export * from './Uploader/Uploader/Uploader.props';
|
|
116
|
-
export * from './DropZone/DropZone/DropZone.props';
|
|
117
|
-
export * from './Table/Table/Table.props';
|
|
118
|
-
export * from './Tabs/Tabs/Tabs.props';
|
|
119
|
-
export * from './Title/Title/Title.props';
|
|
120
|
-
export * from './Toggle/Toggle/Toggle.props';
|
|
121
|
-
export * from './ToggleGroup/ToggleGroup/ToggleGroup.props';
|
|
122
|
-
export * from './HoverCard/HoverCard/HoverCard.props';
|
|
123
|
-
export * from './NavigationMenu/NavigationMenu/NavigationMenu.props';
|
|
124
|
-
export * from './DropdownMenu/DropdownMenu/DropdownMenu.props';
|
|
125
|
-
export * from './ColorPicker/ColorPicker/ColorPicker.props';
|
|
126
|
-
export * from './EmojiPicker/EmojiPicker/EmojiPicker.props';
|
|
127
|
-
export * from './IconPicker/IconPicker/IconPicker.props';
|
|
128
|
-
export * from './Menubar/Menubar/Menubar.props';
|
|
129
|
-
export * from './Pagination/Pagination/Pagination.props';
|
|
130
|
-
export * from './ProgressBar/ProgressBar/ProgressBar.props';
|
|
131
|
-
export * from './Separator/Separator/Separator.props';
|
|
132
|
-
export * from './ShareButton/ShareButton/ShareButton.props';
|
|
133
|
-
export * from './StatusIndicator/StatusIndicator/StatusIndicator.props';
|
|
134
|
-
export * from './Sidebar/Sidebar/Sidebar.props';
|
|
135
|
-
export * from './Resizable/Resizable/Resizable.props';
|
|
136
|
-
export * from './Toast/Toast/Toast.props';
|
|
137
|
-
export * from './Command/Command/Command.props';
|
|
138
|
-
export * from './Tooltip/Tooltip/Tooltip.props';
|
|
139
|
-
export * from './ChatInput/ChatInput/ChatInput.props';
|
|
140
|
-
export * from './Background/Background/Background.props';
|
|
141
|
-
export * from './ChatWidget/ChatWidget/ChatWidget.props';
|
|
142
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,uEAAuE;AACvE,iEAAiE;AACjE,uEAAuE;AACvE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.shared';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// React Native entry (`react-native` condition): only components whose native
|
|
2
|
+
// code runs on a plain React Native runtime. The others are explicit subpaths:
|
|
3
|
+
// import { Modal } from '@app-studio/components/native/Modal';
|
|
4
|
+
export * from './index.shared';
|
|
5
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../src/components/index.native.tsx"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+EAA+E;AAC/E,iEAAiE;AACjE,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export * from './Accordion/Accordion';
|
|
2
|
+
export * from './ActionSheet/ActionSheet';
|
|
3
|
+
export * from './Alert/Alert';
|
|
4
|
+
export * from './AspectRatio/AspectRatio';
|
|
5
|
+
export * from './AudioInput/AudioWaveform/AudioWaveform';
|
|
6
|
+
export * from './Avatar/Avatar';
|
|
7
|
+
export * from './Badge/Badge';
|
|
8
|
+
export * from './Button/Button';
|
|
9
|
+
export * from './Card/Card';
|
|
10
|
+
export * from './Carousel/Carousel';
|
|
11
|
+
export * from './Chart/Chart';
|
|
12
|
+
export * from './Chart/Chart/ChartColors';
|
|
13
|
+
export * from './CookieConsent/CookieConsent';
|
|
14
|
+
export * from './ContextMenu/ContextMenu';
|
|
15
|
+
export * from './File/File';
|
|
16
|
+
export * from './Form/Select/Select';
|
|
17
|
+
export * from './Form/Switch/Switch';
|
|
18
|
+
export * from './Form/Selector/Selector';
|
|
19
|
+
export * from './Form/TextArea/TextArea';
|
|
20
|
+
export * from './Form/TextField/TextField';
|
|
21
|
+
export * from './Form/Checkbox/Checkbox';
|
|
22
|
+
export * from './Form/Radio/Radio';
|
|
23
|
+
export * from './Form/Radio/RadioGroup';
|
|
24
|
+
export * from './Form/ColorInput/ColorInput';
|
|
25
|
+
export * from './Form/CountryPicker/CountryPicker';
|
|
26
|
+
export * from './Form/Password/Password';
|
|
27
|
+
export * from './Form/ComboBox/ComboBox';
|
|
28
|
+
export * from './Form/TagInput/TagInput';
|
|
29
|
+
export * from './OTPInput/OTPInput';
|
|
30
|
+
export * from './Slider';
|
|
31
|
+
export * from './Link/Link';
|
|
32
|
+
export * from './Loader/Loader';
|
|
33
|
+
export * from './MediaPreview';
|
|
34
|
+
export * from './KeyboardAvoidingView';
|
|
35
|
+
export * from './PageLayout';
|
|
36
|
+
export * from './NavigationMenu/NavigationMenu';
|
|
37
|
+
export * from './Table/Table';
|
|
38
|
+
export * from './Tabs/Tabs';
|
|
39
|
+
export * from './Title/Title';
|
|
40
|
+
export * from './PageHeader/PageHeader';
|
|
41
|
+
export * from './StatePanel/StatePanel';
|
|
42
|
+
export * from './DataState/DataState';
|
|
43
|
+
export * from './Icon/Icon';
|
|
44
|
+
export * from './Toggle/Toggle';
|
|
45
|
+
export * from './ToggleGroup/ToggleGroup';
|
|
46
|
+
export * from './DragAndDrop/DragAndDrop';
|
|
47
|
+
export * from './DropZone/DropZone';
|
|
48
|
+
export * from './DropdownMenu/DropdownMenu';
|
|
49
|
+
export * from './ColorPicker/ColorPicker';
|
|
50
|
+
export * from './EmojiPicker/EmojiPicker';
|
|
51
|
+
export * from './EmojiPicker/EmojiPicker/EmojiPicker.data';
|
|
52
|
+
export type { EmojiPickerProps, EmojiPickerLabels, } from './EmojiPicker/EmojiPicker/EmojiPicker.props';
|
|
53
|
+
export type { Emoji, EmojiCategory, EmojiData, EmojiPickerStyles, } from './EmojiPicker/EmojiPicker/EmojiPicker.type';
|
|
54
|
+
export * from './BlockEditor/BlockEditor';
|
|
55
|
+
export * from './BlockEditor/BlockEditor/BlockEditor.props';
|
|
56
|
+
export * from './Markdown/Markdown';
|
|
57
|
+
export * from './Markdown/Markdown/Markdown.props';
|
|
58
|
+
export * from './Markdown/Markdown/useMarkdownTyping';
|
|
59
|
+
export * from './IconPicker/IconPicker';
|
|
60
|
+
export * from './Gradient/Gradient';
|
|
61
|
+
export * from './HoverCard/HoverCard';
|
|
62
|
+
export * from './Menubar/Menubar';
|
|
63
|
+
export * from './Pagination/Pagination';
|
|
64
|
+
export * from './ProgressBar/ProgressBar';
|
|
65
|
+
export * from './Separator/Separator';
|
|
66
|
+
export * from './ShareButton/ShareButton';
|
|
67
|
+
export * from './StatusIndicator/StatusIndicator';
|
|
68
|
+
export * from './Sidebar/Sidebar';
|
|
69
|
+
export * from './Resizable/Resizable';
|
|
70
|
+
export * from './Command/Command';
|
|
71
|
+
export * from './Tooltip/Tooltip';
|
|
72
|
+
export * from './Background/Background';
|
|
73
|
+
export * from './ChatWidget/ChatWidget';
|
|
74
|
+
export * from './AttachmentGroup/AttachmentGroup';
|
|
75
|
+
export * from './ChatWidget/Widget/ChatWidgetWidget';
|
|
76
|
+
export * from '../design-system';
|
|
77
|
+
export * from './Accordion/Accordion/Accordion.props';
|
|
78
|
+
export * from './ActionSheet/ActionSheet/ActionSheet.props';
|
|
79
|
+
export * from './ActionSheet/ActionSheet/ActionSheet.type';
|
|
80
|
+
export * from './Alert/Alert/Alert.props';
|
|
81
|
+
export * from './AspectRatio/AspectRatio/AspectRatio.props';
|
|
82
|
+
export * from './AudioInput/AudioInput/AudioInput.props';
|
|
83
|
+
export * from './Avatar/Avatar/Avatar.props';
|
|
84
|
+
export * from './Badge/Badge/Badge.props';
|
|
85
|
+
export * from './Button/Button/Button.props';
|
|
86
|
+
export * from './Card/Card/Card.props';
|
|
87
|
+
export * from './Carousel/Carousel/Carousel.props';
|
|
88
|
+
export * from './Chart/Chart/Chart.props';
|
|
89
|
+
export * from './CookieConsent/CookieConsent/CookieConsent.props';
|
|
90
|
+
export * from './ContextMenu/ContextMenu/ContextMenu.props';
|
|
91
|
+
export * from './Form/Select/Select/Select.props';
|
|
92
|
+
export * from './Form/Switch/Switch/Switch.props';
|
|
93
|
+
export * from './Form/TextArea/TextArea/TextArea.props';
|
|
94
|
+
export * from './Form/TextField/TextField/TextField.props';
|
|
95
|
+
export * from './Form/Checkbox/Checkbox/Checkbox.props';
|
|
96
|
+
export * from './Form/Radio/Radio/Radio.props';
|
|
97
|
+
export * from './Form/ColorInput/ColorInput/ColorInput.props';
|
|
98
|
+
export * from './Form/CountryPicker/CountryPicker/CountryPicker.props';
|
|
99
|
+
export * from './Form/DatePicker/DatePicker/DatePicker.props';
|
|
100
|
+
export * from './Form/Password/Password/Password.props';
|
|
101
|
+
export * from './Form/ComboBox/ComboBox/ComboBox.props';
|
|
102
|
+
export * from './OTPInput/OTPInput/OTPInput.props';
|
|
103
|
+
export * from './Link/Link/Link.props';
|
|
104
|
+
export * from './Loader/Loader/Loader.props';
|
|
105
|
+
export * from './Message/Message/Message.props';
|
|
106
|
+
export * from './Modal/Modal/Modal.props';
|
|
107
|
+
export * from './Drawer/Drawer/Drawer.props';
|
|
108
|
+
export * from './Uploader/Uploader/Uploader.props';
|
|
109
|
+
export * from './DropZone/DropZone/DropZone.props';
|
|
110
|
+
export * from './Table/Table/Table.props';
|
|
111
|
+
export * from './Tabs/Tabs/Tabs.props';
|
|
112
|
+
export * from './Title/Title/Title.props';
|
|
113
|
+
export * from './PageHeader/PageHeader/PageHeader.props';
|
|
114
|
+
export * from './PageHeader/PageHeader/PageHeader.type';
|
|
115
|
+
export * from './StatePanel/StatePanel/StatePanel.props';
|
|
116
|
+
export * from './StatePanel/StatePanel/StatePanel.type';
|
|
117
|
+
export * from './DataState/DataState/DataState.props';
|
|
118
|
+
export * from './DataState/DataState/DataState.type';
|
|
119
|
+
export { DataStateDefaultLabels, classifyDataStateError, } from './DataState/DataState/DataState.state';
|
|
120
|
+
export type { DataStateFailure } from './DataState/DataState/DataState.state';
|
|
121
|
+
export type { ButtonElement } from './Button/Button/Button.element';
|
|
122
|
+
export * from './Toggle/Toggle/Toggle.props';
|
|
123
|
+
export * from './ToggleGroup/ToggleGroup/ToggleGroup.props';
|
|
124
|
+
export * from './HoverCard/HoverCard/HoverCard.props';
|
|
125
|
+
export * from './NavigationMenu/NavigationMenu/NavigationMenu.props';
|
|
126
|
+
export * from './DropdownMenu/DropdownMenu/DropdownMenu.props';
|
|
127
|
+
export * from './ColorPicker/ColorPicker/ColorPicker.props';
|
|
128
|
+
export * from './EmojiPicker/EmojiPicker/EmojiPicker.props';
|
|
129
|
+
export * from './IconPicker/IconPicker/IconPicker.props';
|
|
130
|
+
export * from './Menubar/Menubar/Menubar.props';
|
|
131
|
+
export * from './Pagination/Pagination/Pagination.props';
|
|
132
|
+
export * from './ProgressBar/ProgressBar/ProgressBar.props';
|
|
133
|
+
export * from './Separator/Separator/Separator.props';
|
|
134
|
+
export * from './ShareButton/ShareButton/ShareButton.props';
|
|
135
|
+
export * from './StatusIndicator/StatusIndicator/StatusIndicator.props';
|
|
136
|
+
export * from './Sidebar/Sidebar/Sidebar.props';
|
|
137
|
+
export * from './Resizable/Resizable/Resizable.props';
|
|
138
|
+
export * from './Toast/Toast/Toast.props';
|
|
139
|
+
export * from './Command/Command/Command.props';
|
|
140
|
+
export * from './Tooltip/Tooltip/Tooltip.props';
|
|
141
|
+
export * from './ChatInput/ChatInput/ChatInput.props';
|
|
142
|
+
export * from './Background/Background/Background.props';
|
|
143
|
+
export * from './ChatWidget/ChatWidget/ChatWidget.props';
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// Exports shared by the web entry (`index.tsx`) and the React Native entry
|
|
2
|
+
// (`index.native.tsx`): components whose native code needs nothing beyond
|
|
3
|
+
// react, react-native, app-studio, react-native-svg, lucide-react-native,
|
|
4
|
+
// react-native-safe-area-context, react-native-reanimated,
|
|
5
|
+
// react-native-worklets and react-native-linear-gradient.
|
|
6
|
+
// `npm run check:native-entry` enforces it on the built native graph.
|
|
7
|
+
export * from './Accordion/Accordion';
|
|
8
|
+
export * from './ActionSheet/ActionSheet';
|
|
9
|
+
export * from './Alert/Alert';
|
|
10
|
+
export * from './AspectRatio/AspectRatio';
|
|
11
|
+
export * from './AudioInput/AudioWaveform/AudioWaveform';
|
|
12
|
+
export * from './Avatar/Avatar';
|
|
13
|
+
export * from './Badge/Badge';
|
|
14
|
+
export * from './Button/Button';
|
|
15
|
+
export * from './Card/Card';
|
|
16
|
+
export * from './Carousel/Carousel';
|
|
17
|
+
export * from './Chart/Chart';
|
|
18
|
+
export * from './Chart/Chart/ChartColors';
|
|
19
|
+
export * from './CookieConsent/CookieConsent';
|
|
20
|
+
export * from './ContextMenu/ContextMenu';
|
|
21
|
+
export * from './File/File';
|
|
22
|
+
export * from './Form/Select/Select';
|
|
23
|
+
export * from './Form/Switch/Switch';
|
|
24
|
+
export * from './Form/Selector/Selector';
|
|
25
|
+
export * from './Form/TextArea/TextArea';
|
|
26
|
+
export * from './Form/TextField/TextField';
|
|
27
|
+
export * from './Form/Checkbox/Checkbox';
|
|
28
|
+
export * from './Form/Radio/Radio';
|
|
29
|
+
export * from './Form/Radio/RadioGroup';
|
|
30
|
+
export * from './Form/ColorInput/ColorInput';
|
|
31
|
+
export * from './Form/CountryPicker/CountryPicker';
|
|
32
|
+
export * from './Form/Password/Password';
|
|
33
|
+
export * from './Form/ComboBox/ComboBox';
|
|
34
|
+
export * from './Form/TagInput/TagInput';
|
|
35
|
+
export * from './OTPInput/OTPInput';
|
|
36
|
+
export * from './Slider';
|
|
37
|
+
export * from './Link/Link';
|
|
38
|
+
export * from './Loader/Loader';
|
|
39
|
+
export * from './MediaPreview';
|
|
40
|
+
export * from './KeyboardAvoidingView';
|
|
41
|
+
export * from './PageLayout';
|
|
42
|
+
export * from './NavigationMenu/NavigationMenu';
|
|
43
|
+
export * from './Table/Table';
|
|
44
|
+
export * from './Tabs/Tabs';
|
|
45
|
+
export * from './Title/Title';
|
|
46
|
+
export * from './PageHeader/PageHeader';
|
|
47
|
+
export * from './StatePanel/StatePanel';
|
|
48
|
+
export * from './DataState/DataState';
|
|
49
|
+
export * from './Icon/Icon';
|
|
50
|
+
export * from './Toggle/Toggle';
|
|
51
|
+
export * from './ToggleGroup/ToggleGroup';
|
|
52
|
+
export * from './DragAndDrop/DragAndDrop';
|
|
53
|
+
export * from './DropZone/DropZone';
|
|
54
|
+
export * from './DropdownMenu/DropdownMenu';
|
|
55
|
+
export * from './ColorPicker/ColorPicker';
|
|
56
|
+
export * from './EmojiPicker/EmojiPicker';
|
|
57
|
+
export * from './EmojiPicker/EmojiPicker/EmojiPicker.data';
|
|
58
|
+
export * from './BlockEditor/BlockEditor';
|
|
59
|
+
export * from './BlockEditor/BlockEditor/BlockEditor.props';
|
|
60
|
+
export * from './Markdown/Markdown';
|
|
61
|
+
export * from './Markdown/Markdown/Markdown.props';
|
|
62
|
+
export * from './Markdown/Markdown/useMarkdownTyping';
|
|
63
|
+
export * from './IconPicker/IconPicker';
|
|
64
|
+
export * from './Gradient/Gradient';
|
|
65
|
+
export * from './HoverCard/HoverCard';
|
|
66
|
+
export * from './Menubar/Menubar';
|
|
67
|
+
export * from './Pagination/Pagination';
|
|
68
|
+
export * from './ProgressBar/ProgressBar';
|
|
69
|
+
export * from './Separator/Separator';
|
|
70
|
+
export * from './ShareButton/ShareButton';
|
|
71
|
+
export * from './StatusIndicator/StatusIndicator';
|
|
72
|
+
export * from './Sidebar/Sidebar';
|
|
73
|
+
export * from './Resizable/Resizable';
|
|
74
|
+
export * from './Command/Command';
|
|
75
|
+
export * from './Tooltip/Tooltip';
|
|
76
|
+
export * from './Background/Background';
|
|
77
|
+
export * from './ChatWidget/ChatWidget';
|
|
78
|
+
export * from './AttachmentGroup/AttachmentGroup';
|
|
79
|
+
export * from './ChatWidget/Widget/ChatWidgetWidget';
|
|
80
|
+
export * from '../design-system';
|
|
81
|
+
export * from './Accordion/Accordion/Accordion.props';
|
|
82
|
+
export * from './ActionSheet/ActionSheet/ActionSheet.props';
|
|
83
|
+
export * from './ActionSheet/ActionSheet/ActionSheet.type';
|
|
84
|
+
export * from './Alert/Alert/Alert.props';
|
|
85
|
+
export * from './AspectRatio/AspectRatio/AspectRatio.props';
|
|
86
|
+
export * from './AudioInput/AudioInput/AudioInput.props';
|
|
87
|
+
export * from './Avatar/Avatar/Avatar.props';
|
|
88
|
+
export * from './Badge/Badge/Badge.props';
|
|
89
|
+
export * from './Button/Button/Button.props';
|
|
90
|
+
export * from './Card/Card/Card.props';
|
|
91
|
+
export * from './Carousel/Carousel/Carousel.props';
|
|
92
|
+
export * from './Chart/Chart/Chart.props';
|
|
93
|
+
export * from './CookieConsent/CookieConsent/CookieConsent.props';
|
|
94
|
+
export * from './ContextMenu/ContextMenu/ContextMenu.props';
|
|
95
|
+
export * from './Form/Select/Select/Select.props';
|
|
96
|
+
export * from './Form/Switch/Switch/Switch.props';
|
|
97
|
+
export * from './Form/TextArea/TextArea/TextArea.props';
|
|
98
|
+
export * from './Form/TextField/TextField/TextField.props';
|
|
99
|
+
export * from './Form/Checkbox/Checkbox/Checkbox.props';
|
|
100
|
+
export * from './Form/Radio/Radio/Radio.props';
|
|
101
|
+
export * from './Form/ColorInput/ColorInput/ColorInput.props';
|
|
102
|
+
export * from './Form/CountryPicker/CountryPicker/CountryPicker.props';
|
|
103
|
+
export * from './Form/DatePicker/DatePicker/DatePicker.props';
|
|
104
|
+
export * from './Form/Password/Password/Password.props';
|
|
105
|
+
export * from './Form/ComboBox/ComboBox/ComboBox.props';
|
|
106
|
+
export * from './OTPInput/OTPInput/OTPInput.props';
|
|
107
|
+
export * from './Link/Link/Link.props';
|
|
108
|
+
export * from './Loader/Loader/Loader.props';
|
|
109
|
+
export * from './Message/Message/Message.props';
|
|
110
|
+
export * from './Modal/Modal/Modal.props';
|
|
111
|
+
export * from './Drawer/Drawer/Drawer.props';
|
|
112
|
+
export * from './Uploader/Uploader/Uploader.props';
|
|
113
|
+
export * from './DropZone/DropZone/DropZone.props';
|
|
114
|
+
export * from './Table/Table/Table.props';
|
|
115
|
+
export * from './Tabs/Tabs/Tabs.props';
|
|
116
|
+
export * from './Title/Title/Title.props';
|
|
117
|
+
export * from './PageHeader/PageHeader/PageHeader.props';
|
|
118
|
+
export * from './PageHeader/PageHeader/PageHeader.type';
|
|
119
|
+
export * from './StatePanel/StatePanel/StatePanel.props';
|
|
120
|
+
export * from './StatePanel/StatePanel/StatePanel.type';
|
|
121
|
+
export * from './DataState/DataState/DataState.props';
|
|
122
|
+
export * from './DataState/DataState/DataState.type';
|
|
123
|
+
export { DataStateDefaultLabels, classifyDataStateError, } from './DataState/DataState/DataState.state';
|
|
124
|
+
export * from './Toggle/Toggle/Toggle.props';
|
|
125
|
+
export * from './ToggleGroup/ToggleGroup/ToggleGroup.props';
|
|
126
|
+
export * from './HoverCard/HoverCard/HoverCard.props';
|
|
127
|
+
export * from './NavigationMenu/NavigationMenu/NavigationMenu.props';
|
|
128
|
+
export * from './DropdownMenu/DropdownMenu/DropdownMenu.props';
|
|
129
|
+
export * from './ColorPicker/ColorPicker/ColorPicker.props';
|
|
130
|
+
export * from './EmojiPicker/EmojiPicker/EmojiPicker.props';
|
|
131
|
+
export * from './IconPicker/IconPicker/IconPicker.props';
|
|
132
|
+
export * from './Menubar/Menubar/Menubar.props';
|
|
133
|
+
export * from './Pagination/Pagination/Pagination.props';
|
|
134
|
+
export * from './ProgressBar/ProgressBar/ProgressBar.props';
|
|
135
|
+
export * from './Separator/Separator/Separator.props';
|
|
136
|
+
export * from './ShareButton/ShareButton/ShareButton.props';
|
|
137
|
+
export * from './StatusIndicator/StatusIndicator/StatusIndicator.props';
|
|
138
|
+
export * from './Sidebar/Sidebar/Sidebar.props';
|
|
139
|
+
export * from './Resizable/Resizable/Resizable.props';
|
|
140
|
+
export * from './Toast/Toast/Toast.props';
|
|
141
|
+
export * from './Command/Command/Command.props';
|
|
142
|
+
export * from './Tooltip/Tooltip/Tooltip.props';
|
|
143
|
+
export * from './ChatInput/ChatInput/ChatInput.props';
|
|
144
|
+
export * from './Background/Background/Background.props';
|
|
145
|
+
export * from './ChatWidget/ChatWidget/ChatWidget.props';
|
|
146
|
+
//# sourceMappingURL=index.shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.shared.js","sourceR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CAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC"}
|
|
@@ -14,6 +14,13 @@ export interface DesignSystemProviderProps {
|
|
|
14
14
|
mode?: DesignSystemAppearance;
|
|
15
15
|
/** Document that owns the subtree and its theme stylesheet (for iframe portals). */
|
|
16
16
|
targetWindow?: Window;
|
|
17
|
+
/**
|
|
18
|
+
* Render no ThemeProvider of its own: colours and mode come from the
|
|
19
|
+
* surrounding ThemeProvider (an app's `brand`), and this provider only
|
|
20
|
+
* supplies the component configuration. Without it (the default), the
|
|
21
|
+
* config's `theme` is applied through a nested ThemeProvider.
|
|
22
|
+
*/
|
|
23
|
+
inheritTheme?: boolean;
|
|
17
24
|
}
|
|
18
25
|
export declare const DesignSystemProvider: React.FC<DesignSystemProviderProps>;
|
|
19
26
|
export declare const useDesignSystem: () => DesignSystemContextValue;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { createContext, useContext, useMemo } from 'react';
|
|
2
2
|
import { ThemeProvider, useTheme } from 'app-studio';
|
|
3
3
|
import { defaultDesignSystemConfig, designSystemConfigs, } from './configs';
|
|
4
|
+
import { DesignSystemScope } from './DesignSystemScope';
|
|
4
5
|
import { getDesignSystemComponentProps, mergeDesignSystemComponentProps, } from './utils';
|
|
5
6
|
const DesignSystemContext = createContext({
|
|
6
7
|
isEnabled: false,
|
|
7
8
|
});
|
|
8
|
-
export const DesignSystemProvider = ({ children, config, configId, mode, targetWindow, }) => {
|
|
9
|
+
export const DesignSystemProvider = ({ children, config, configId, mode, targetWindow, inheritTheme = false, }) => {
|
|
9
10
|
const resolvedConfig = config ||
|
|
10
11
|
(configId ? designSystemConfigs[configId] : null) ||
|
|
11
12
|
defaultDesignSystemConfig;
|
|
@@ -25,13 +26,19 @@ export const DesignSystemProvider = ({ children, config, configId, mode, targetW
|
|
|
25
26
|
// with its color resolver, so `theme-primary`, `theme-canvas`, etc. work
|
|
26
27
|
// anywhere a component uses them. `transparentWrapper` is auto-inferred
|
|
27
28
|
// (nested under another ThemeProvider) and keeps the page layout intact.
|
|
29
|
+
const scoped = (<DesignSystemScope id={resolvedConfig.metadata.id} appearance={effectiveMode}>
|
|
30
|
+
{children}
|
|
31
|
+
</DesignSystemScope>);
|
|
32
|
+
if (inheritTheme) {
|
|
33
|
+
return (<DesignSystemContext.Provider value={value}>
|
|
34
|
+
{scoped}
|
|
35
|
+
</DesignSystemContext.Provider>);
|
|
36
|
+
}
|
|
28
37
|
return (<DesignSystemContext.Provider value={value}>
|
|
29
38
|
{/* No cast: app-studio's `theme` prop accepts ThemeSlots, which
|
|
30
39
|
DesignSystemTheme satisfies structurally. */}
|
|
31
40
|
<ThemeProvider theme={resolvedConfig.theme} mode={effectiveMode} targetWindow={targetWindow} transparentWrapper>
|
|
32
|
-
|
|
33
|
-
{children}
|
|
34
|
-
</div>
|
|
41
|
+
{scoped}
|
|
35
42
|
</ThemeProvider>
|
|
36
43
|
</DesignSystemContext.Provider>);
|
|
37
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignSystemProvider.js","sourceRoot":"","sources":["../../../src/design-system/DesignSystemProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EACL,yBAAyB,EACzB,mBAAmB,GAEpB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"DesignSystemProvider.js","sourceRoot":"","sources":["../../../src/design-system/DesignSystemProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAa,UAAU,E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,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DesignSystemScopeProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Marks the design system's subtree for CSS (`[data-design-system]`,
|
|
5
|
+
* `[data-appearance]`) without adding a layout box. Native twin:
|
|
6
|
+
* DesignSystemScope.native, which has no DOM to mark.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DesignSystemScope: React.FC<DesignSystemScopeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Marks the design system's subtree for CSS (`[data-design-system]`,
|
|
4
|
+
* `[data-appearance]`) without adding a layout box. Native twin:
|
|
5
|
+
* DesignSystemScope.native, which has no DOM to mark.
|
|
6
|
+
*/
|
|
7
|
+
export const DesignSystemScope = ({ children, id, appearance, }) => (<div data-design-system={id} data-appearance={appearance} style={{ display: 'contents' }}>
|
|
8
|
+
{children}
|
|
9
|
+
</div>);
|
|
10
|
+
//# sourceMappingURL=DesignSystemScope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignSystemScope.js","sourceRoot":"","sources":["../../../src/design-system/DesignSystemScope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAClE,QAAQ,EACR,EAAE,EACF,UAAU,GACX,EAAE,EAAE,CAAC,CACJ,CAAC,GAAG,CACF,kBAAkB,CAAC,CAAC,EAAE,CAAC,CACvB,eAAe,CAAC,CAAC,UAAU,CAAC,CAC5B,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAE/B;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,GAAG,CAAC,CACP,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DesignSystemScopeProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* DesignSystemScope (native): React Native has no CSS selectors to mark the
|
|
5
|
+
* subtree for, and a web `<div>` crashes the renderer, so the children render
|
|
6
|
+
* as they are.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DesignSystemScope: React.FC<DesignSystemScopeProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* DesignSystemScope (native): React Native has no CSS selectors to mark the
|
|
4
|
+
* subtree for, and a web `<div>` crashes the renderer, so the children render
|
|
5
|
+
* as they are.
|
|
6
|
+
*/
|
|
7
|
+
export const DesignSystemScope = ({ children, }) => <>{children}</>;
|
|
8
|
+
//# sourceMappingURL=DesignSystemScope.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignSystemScope.native.js","sourceRoot":"","sources":["../../../src/design-system/DesignSystemScope.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAClE,QAAQ,GACT,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC"}
|
|
@@ -585,12 +585,9 @@
|
|
|
585
585
|
"alert": {
|
|
586
586
|
"views": {
|
|
587
587
|
"container": {
|
|
588
|
-
"backgroundColor": "color-gray-50",
|
|
589
|
-
"borderColor": "color-gray-200",
|
|
590
588
|
"borderRadius": 16
|
|
591
589
|
},
|
|
592
590
|
"title": {
|
|
593
|
-
"color": "color-black",
|
|
594
591
|
"fontFamily": "'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif",
|
|
595
592
|
"fontWeight": 700,
|
|
596
593
|
"letterSpacing": "-0.01em",
|
|
@@ -598,19 +595,12 @@
|
|
|
598
595
|
"fontStyle": "normal"
|
|
599
596
|
},
|
|
600
597
|
"description": {
|
|
601
|
-
"color": "color-gray-500",
|
|
602
598
|
"fontFamily": "'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"
|
|
603
|
-
},
|
|
604
|
-
"icon": {
|
|
605
|
-
"color": "theme-primary"
|
|
606
599
|
}
|
|
607
600
|
}
|
|
608
601
|
},
|
|
609
602
|
"status": {
|
|
610
603
|
"views": {
|
|
611
|
-
"indicator": {
|
|
612
|
-
"backgroundColor": "theme-success"
|
|
613
|
-
},
|
|
614
604
|
"label": {
|
|
615
605
|
"color": "color-black",
|
|
616
606
|
"fontFamily": "'Inter', 'Airbnb Cereal VF', Circular, -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif"
|