@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/lib/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export { AppShell, useAppShell, useAppShellApi, useAppShellLayout, AppShellHeade
29
29
  export { Row, Column } from './components/Layout';
30
30
  export { Text, H1, H2, H3, H4, H5, H6, P, Small, Strong, Bold, Italic, Emphasis, Underline, Code, Kbd, Mark, Cite, Sub, Sup } from './components/Text';
31
31
  export { ShimmerText } from './components/ShimmerText';
32
+ export { Highlight } from './components/Highlight';
32
33
  export { Title, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6 } from './components/Title';
33
34
  export { Markdown } from './components/Markdown';
34
35
  export { Button } from './components/Button';
@@ -98,6 +99,7 @@ export { Overlay } from './components/Overlay';
98
99
  export { LoadingOverlay } from './components/LoadingOverlay';
99
100
  export { HoverCard } from './components/HoverCard';
100
101
  export { ContextMenu } from './components/ContextMenu';
102
+ export { Popover, PopoverTarget, PopoverDropdown } from './components/Popover';
101
103
  export { Spotlight, SpotlightProvider, useSpotlightStore, spotlight, createSpotlightStore, useSpotlightStoreInstance, useDirectSpotlightState, directSpotlight, onSpotlightRequested } from './components/Spotlight';
102
104
  export { FloatingActions } from './components/FloatingActions';
103
105
  export { Can, CanWithConditions, Cannot, PermissionGate, withCan, withCannot } from './components/Can';
@@ -135,6 +137,7 @@ export type { AppStoreBadgeProps, AppStoreBadgeSize, SupportedLocale, BadgeConfi
135
137
  export type { TreeProps, TreeNode } from './components/Tree';
136
138
  export type { TextProps } from './components/Text';
137
139
  export type { ShimmerTextProps } from './components/ShimmerText';
140
+ export type { HighlightProps } from './components/Highlight';
138
141
  export type { OverlayProps } from './components/Overlay';
139
142
  export type { TitleProps } from './components/Title/types';
140
143
  export type { ContainerProps } from './components/Container';
@@ -195,6 +198,7 @@ export type { DialogProps, DialogConfig, UseSimpleDialogOptions } from './compon
195
198
  export type { TooltipProps } from './components/Tooltip';
196
199
  export type { HoverCardProps } from './components/HoverCard';
197
200
  export type { ContextMenuProps } from './components/ContextMenu';
201
+ export type { PopoverProps, PopoverTargetProps, PopoverDropdownProps } from './components/Popover';
198
202
  export type { SpotlightProps } from './components/Spotlight';
199
203
  export type { Action, Subject, Field, Conditions, PermissionRule, PermissionCheck, Ability, CanProps, CanWithConditionsProps, CannotProps, PermissionGateProps, PermissionContextValue, PermissionProviderProps, UsePermissionsOptions } from './components/Can';
200
204
  export type { BrandIconProps, BrandName } from './components/BrandIcon';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export declare function resolveLinearGradient(): {
3
+ readonly LinearGradient: React.ComponentType<any>;
4
+ readonly hasLinearGradient: boolean;
5
+ };
6
+ type DocumentPickerModule = {
7
+ getDocumentAsync?: (...args: any[]) => Promise<any>;
8
+ };
9
+ export declare function resolveDocumentPicker(): {
10
+ readonly DocumentPicker: DocumentPickerModule | null | undefined;
11
+ readonly hasDocumentPicker: boolean;
12
+ };
13
+ export {};
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@platform-blocks/ui",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "A React Native UI library",
5
5
  "type": "module",
6
6
  "main": "lib/cjs/index.js",
7
7
  "module": "lib/esm/index.js",
8
8
  "types": "lib/index.d.ts",
9
- "react-native": "src/index.ts",
9
+ "react-native": "./lib/esm/index.js",
10
10
  "sideEffects": false,
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./lib/index.d.ts",
14
- "react-native": "./src/index.ts",
14
+ "react-native": "./lib/esm/index.js",
15
15
  "import": "./lib/esm/index.js",
16
16
  "require": "./lib/cjs/index.js",
17
17
  "default": "./lib/esm/index.js"
@@ -62,17 +62,6 @@
62
62
  "url": "https://github.com/joshstovall/platform-blocks/issues"
63
63
  },
64
64
  "homepage": "https://github.com/joshstovall/platform-blocks#readme",
65
- "dependencies": {
66
- "@platform-blocks/charts": "^0.1.1",
67
- "@react-native-masked-view/masked-view": "^0.3.2",
68
- "@shopify/flash-list": "^2.1.0",
69
- "expo-document-picker": "~14.0.7",
70
- "expo-audio": "^1.0.13",
71
- "expo-linear-gradient": "^14.1.5",
72
- "expo-video": "^2.2.2",
73
- "react-native-reanimated-carousel": "^4.0.3",
74
- "react-syntax-highlighter": "^15.5.0"
75
- },
76
65
  "devDependencies": {
77
66
  "@babel/core": "^7.25.2",
78
67
  "@babel/preset-env": "^7.25.0",
@@ -81,10 +70,12 @@
81
70
  "@babel/preset-typescript": "^7.25.0",
82
71
  "@eslint/js": "^8.57.1",
83
72
  "@react-native/babel-preset": "^0.81.4",
73
+ "@react-native-masked-view/masked-view": "^0.3.2",
84
74
  "@rollup/plugin-commonjs": "^28.0.6",
85
75
  "@rollup/plugin-json": "^6.1.0",
86
76
  "@rollup/plugin-node-resolve": "^16.0.1",
87
77
  "@rollup/plugin-typescript": "^12.1.4",
78
+ "@shopify/flash-list": "^2.1.0",
88
79
  "@testing-library/jest-native": "^5.4.3",
89
80
  "@testing-library/react-native": "^12.4.3",
90
81
  "@types/jest": "^29.5.12",
@@ -98,10 +89,22 @@
98
89
  "eslint-plugin-react-hooks": "^4.6.0",
99
90
  "eslint-plugin-react-native": "^4.1.0",
100
91
  "eslint-plugin-unused-imports": "^3.0.0",
92
+ "expo-audio": "^1.0.13",
93
+ "expo-document-picker": "~14.0.7",
94
+ "expo-haptics": "^15.0.0",
95
+ "expo-linear-gradient": "^14.1.5",
96
+ "expo-status-bar": "^1.12.0",
101
97
  "jest": "^29.7.0",
102
98
  "jest-environment-node": "^29.7.0",
103
99
  "jest-expo": "^54.0.12",
104
100
  "metro-react-native-babel-preset": "^0.77.0",
101
+ "react": "^19.1.0",
102
+ "react-native": "0.81.4",
103
+ "react-native-reanimated": "~4.1.1",
104
+ "react-native-reanimated-carousel": "^4.0.3",
105
+ "react-native-safe-area-context": "~5.6.0",
106
+ "react-native-svg": "^15.12.1",
107
+ "react-syntax-highlighter": "^15.5.0",
105
108
  "react-test-renderer": "19.1.0",
106
109
  "rollup": "^4.52.3",
107
110
  "rollup-plugin-dts": "^6.2.3",
@@ -110,39 +113,33 @@
110
113
  "typescript-eslint": "^8.41.0"
111
114
  },
112
115
  "peerDependencies": {
113
- "expo": "^54.0.10",
114
- "expo-haptics": "^15.0.0",
115
- "react": ">=19.0.0",
116
- "react-native": ">=0.81.0",
117
- "react-native-reanimated": ">=4.1.0",
118
- "react-native-safe-area-context": ">=5.0.0",
119
- "react-native-svg": ">=15.0.0",
120
- "react-native-worklets": ">=0.5.1"
116
+ "@react-native-masked-view/masked-view": ">=0.2.9",
117
+ "@shopify/flash-list": ">=1.6.0",
118
+ "expo-document-picker": ">=13.0.0",
119
+ "expo-linear-gradient": ">=12.0.0",
120
+ "expo-audio": ">=1.0.0",
121
+ "expo-haptics": ">=14.0.0",
122
+ "expo-status-bar": ">=1.12.0",
123
+ "react": ">=18.0.0 <20.0.0",
124
+ "react-native": ">=0.73.0",
125
+ "react-native-reanimated": ">=3.4.0",
126
+ "react-native-reanimated-carousel": ">=3.4.0",
127
+ "react-native-safe-area-context": ">=4.5.0",
128
+ "react-native-svg": ">=13.0.0",
129
+ "react-syntax-highlighter": ">=15.0.0"
121
130
  },
122
131
  "peerDependenciesMeta": {
123
- "expo": {
124
- "optional": false
132
+ "expo-audio": {
133
+ "optional": true
125
134
  },
126
135
  "expo-haptics": {
127
136
  "optional": true
128
137
  },
129
- "react": {
130
- "optional": false
131
- },
132
- "react-native": {
133
- "optional": false
134
- },
135
- "react-native-reanimated": {
136
- "optional": false
137
- },
138
- "react-native-safe-area-context": {
139
- "optional": false
140
- },
141
- "react-native-svg": {
142
- "optional": false
138
+ "expo-status-bar": {
139
+ "optional": true
143
140
  },
144
- "react-native-worklets": {
145
- "optional": false
141
+ "react-syntax-highlighter": {
142
+ "optional": true
146
143
  }
147
144
  }
148
145
  }