@platform-blocks/ui 0.1.1 → 0.2.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/README.md +27 -33
- package/lib/cjs/index.js +1403 -321
- package/lib/cjs/index.js.map +1 -1
- package/lib/components/FileInput/types.d.ts +12 -3
- package/lib/components/Highlight/Highlight.d.ts +4 -0
- package/lib/components/Highlight/index.d.ts +3 -0
- package/lib/components/Highlight/types.d.ts +24 -0
- package/lib/components/MenuItemButton/MenuItemButton.d.ts +29 -1
- package/lib/components/Popover/Popover.d.ts +14 -0
- package/lib/components/Popover/index.d.ts +2 -0
- package/lib/components/Popover/styles.d.ts +66 -0
- package/lib/components/Popover/types.d.ts +129 -0
- package/lib/components/ShimmerText/ShimmerText.d.ts +1 -0
- package/lib/components/Spotlight/Spotlight.d.ts +1 -1
- package/lib/components/Spotlight/SpotlightController.d.ts +2 -1
- package/lib/components/Spotlight/types.d.ts +3 -1
- package/lib/components/Toast/types.d.ts +2 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/core/factory/factory.d.ts +3 -3
- package/lib/core/theme/PlatformBlocksProvider.d.ts +2 -1
- package/lib/esm/index.js +1404 -325
- package/lib/esm/index.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/utils/optionalDependencies.d.ts +13 -0
- package/package.json +37 -40
package/README.md
CHANGED
|
@@ -1,44 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
<!-- markdownlint-disable-next-line -->
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://platform-blocks.com/core/" rel="noopener" target="_blank"><img width="150" height="133" src="https://mui.com/static/logo.svg" alt="Platform Blocks logo"/></a>
|
|
5
|
-
</p>
|
|
1
|
+
# Platform Blocks UI Component Library for React Native
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
## Compatibility
|
|
8
4
|
|
|
9
|
-
<
|
|
5
|
+
- `react` `>=18.0.0 <20.0.0`
|
|
6
|
+
- `react-native` `>=0.73.0`
|
|
7
|
+
- `react-native-reanimated` `>=3.4.0`
|
|
8
|
+
- `react-native-safe-area-context` `>=4.5.0`
|
|
9
|
+
- `react-native-svg` `>=13.0.0`
|
|
10
|
+
- Optional integrations: `expo-audio`, `expo-document-picker`, `expo-haptics`, `expo-linear-gradient`, `expo-status-bar`, `react-syntax-highlighter`, `@react-native-masked-view/masked-view`, `@shopify/flash-list`, `react-native-reanimated-carousel`
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
[](https://www.npmjs.com/package/@mantine/core)
|
|
13
|
-
[](https://discord.gg/wbH82zuWMN)
|
|
12
|
+
The library lazily requires optional modules, so they only need to be installed when you use features that depend on them.
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
## Installation
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
Install peer dependencies that match your application runtime, then add the package:
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
```bash
|
|
19
|
+
npm install @platform-blocks/ui
|
|
20
|
+
```
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
If you rely on optional integrations, add them with versions compatible with your project’s React Native or Expo SDK.
|
|
22
23
|
|
|
24
|
+
## Usage
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
```tsx
|
|
27
|
+
import { PlatformBlocksProvider, Button } from '@platform-blocks/ui';
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
export function App() {
|
|
30
|
+
return (
|
|
31
|
+
<PlatformBlocksProvider>
|
|
32
|
+
<Button label="Hello" />
|
|
33
|
+
</PlatformBlocksProvider>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
```
|
|
28
37
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Our documentation includes [example projects](#).
|
|
32
|
-
|
|
33
|
-
## Contributors
|
|
34
|
-
|
|
35
|
-
<a href="https://github.com/mantinedev/mantine/graphs/contributors">
|
|
36
|
-
<img src="https://contrib.rocks/image?repo=joshstovall/platform-blocks" />
|
|
37
|
-
</a>
|
|
38
|
-
|
|
39
|
-
[Become a contributor](https://platform-blocks.com/contribute)
|
|
40
|
-
|
|
41
|
-
## License
|
|
42
|
-
[](https://github.com/joshstovall/platform-blocks/blob/HEAD/LICENSE)
|
|
43
|
-
|
|
44
|
-
[MIT license](/LICENSE)
|
|
38
|
+
Refer to the documentation site for component examples and API details.
|