@platform-blocks/ui 0.7.3 → 0.8.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/cjs/index.js +396 -74
- package/lib/cjs/index.js.map +1 -1
- package/lib/components/AutoComplete/types.d.ts +29 -1
- package/lib/components/Input/types.d.ts +30 -2
- package/lib/components/KeyboardAwareLayout/types.d.ts +22 -0
- package/lib/components/Masonry/types.d.ts +28 -1
- package/lib/components/NumberInput/types.d.ts +29 -0
- package/lib/components/Overlay/types.d.ts +1 -1
- package/lib/components/PinInput/types.d.ts +19 -1
- package/lib/components/TextArea/types.d.ts +31 -1
- package/lib/core/factory/index.d.ts +1 -1
- package/lib/core/factory/polymorphicFactory.d.ts +9 -1
- package/lib/core/responsive/index.d.ts +10 -1
- package/lib/core/style-factory.d.ts +2 -1
- package/lib/core/theme/ThemeProvider.d.ts +30 -1
- package/lib/esm/index.js +389 -75
- package/lib/esm/index.js.map +1 -1
- package/lib/index.d.ts +9 -2
- package/package.json +12 -12
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { PlatformBlocksProvider } from './core/theme/PlatformBlocksProvider';
|
|
2
2
|
export { HapticsProvider, useHapticsSettings } from './core/haptics/HapticsProvider';
|
|
3
|
-
export { useTheme } from './core/theme/ThemeProvider';
|
|
3
|
+
export { useTheme, useThemeVisuals, useThemeLayout } from './core/theme/ThemeProvider';
|
|
4
|
+
export type { ThemeVisuals, ThemeLayout } from './core/theme/ThemeProvider';
|
|
4
5
|
export { ThemeModeProvider, useThemeMode, type ThemeModeConfig, type ColorSchemeMode } from './core/theme/ThemeModeProvider';
|
|
5
6
|
export { createTheme } from './core/theme/utils';
|
|
6
7
|
export { DEFAULT_THEME } from './core/theme/defaultTheme';
|
|
@@ -16,13 +17,14 @@ export { AccessibilityProvider, useAccessibility } from './core/accessibility/co
|
|
|
16
17
|
export { SoundProvider, useSound, useHaptics, getAllSounds, getSoundsByCategory, createSound, DEFAULT_SOUND_IDS } from './core/sound';
|
|
17
18
|
export type { SoundAsset, SoundOptions, HapticFeedbackOptions } from './core/sound';
|
|
18
19
|
export { factory, polymorphicFactory } from './core/factory';
|
|
20
|
+
export { BreakpointProvider } from './core/responsive';
|
|
19
21
|
export { TitleRegistryProvider, useTitleRegistry, useTitleRegistryOptional, type TitleItem } from './hooks/useTitleRegistration/contexts';
|
|
20
22
|
export { rem, px, getSize, getFontSize, getRadius, getShadow, getColor, debounce, throttle, measurePerformance, measureAsyncPerformance, calculateOverlayPositionEnhanced, getViewport, measureElement, pointInRect, getScrollPosition, clearOverlayPositionCache, type Rect, type Viewport, type PositionResult, type PlacementType, type PositioningOptions, } from './core/utils';
|
|
21
23
|
export { usePopoverPositioning, useTooltipPositioning, type UsePopoverPositioningOptions, type UsePopoverPositioningReturn, } from './core/hooks/usePopoverPositioning';
|
|
22
24
|
export { useDropdownPositioning, type UseDropdownPositioningOptions, type UseDropdownPositioningReturn, } from './core/hooks/useDropdownPositioning';
|
|
23
25
|
export { resolveSize, getIconSize, getHeight, getSpacing, getLineHeight, COMPONENT_SIZES, SIZE_SCALES, } from './core/theme/sizes';
|
|
24
26
|
export { DEFAULT_BREAKPOINTS, resolveResponsiveProp } from './core/theme/breakpoints';
|
|
25
|
-
export { useHotkeys, useGlobalHotkeys, useEscapeKey, useToggleColorScheme, useSpotlightToggle, globalHotkeys, useDeviceInfo, } from './hooks';
|
|
27
|
+
export { useHotkeys, useGlobalHotkeys, useEscapeKey, useToggleColorScheme, useSpotlightToggle, globalHotkeys, useDeviceInfo, useClipboard, useScrollSpy, useMaskedInput, useTitleRegistration, useOverlayMode, } from './hooks';
|
|
26
28
|
export { KeyboardAwareLayout } from './components/KeyboardAwareLayout';
|
|
27
29
|
export { Flex } from './components/Flex';
|
|
28
30
|
export { Grid, GridItem } from './components/Grid';
|
|
@@ -131,6 +133,11 @@ export type { ComponentSize, ComponentSizeValue, } from './core/theme/componentS
|
|
|
131
133
|
export type { SizeToken } from './core/theme/types';
|
|
132
134
|
export type { ResponsiveProp } from './core/theme/breakpoints';
|
|
133
135
|
export type { HotkeyItem, KeyboardModifiers, DeviceInfo, UseDeviceInfoOptions } from './hooks';
|
|
136
|
+
export type { UseClipboardOptions, UseClipboardReturnValue } from './hooks';
|
|
137
|
+
export type { ScrollSpyOptions, UseScrollSpyItem } from './hooks';
|
|
138
|
+
export type { UseMaskedInputOptions, UseMaskedInputReturn } from './hooks';
|
|
139
|
+
export type { UseTitleRegistrationOptions } from './hooks';
|
|
140
|
+
export type { UseOverlayModeOptions, UseOverlayModeResult } from './hooks';
|
|
134
141
|
export type { ButtonProps } from './components/Button';
|
|
135
142
|
export type { BrandButtonProps } from './components/BrandButton';
|
|
136
143
|
export type { AppStoreButtonProps } from './components/AppStoreButton';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platform-blocks/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "A React Native UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/cjs/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build:esm": "tsc -p tsconfig.esm.json",
|
|
28
28
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
29
29
|
"clean": "rm -rf lib || true",
|
|
30
|
-
"generate:llms": "tsx
|
|
30
|
+
"generate:llms": "tsx ../../scripts/generate-llms.ts",
|
|
31
31
|
"prepare": "sh -c 'if [ \"$BUILD_ON_PREPARE\" = \"1\" ]; then npm run build; else echo \"ui: skipping build on prepare (set BUILD_ON_PREPARE=1 to enable)\"; fi'",
|
|
32
32
|
"test": "jest",
|
|
33
33
|
"test:watch": "jest --watch",
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
82
82
|
"eslint-plugin-react-native": "^5.0.0",
|
|
83
83
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
84
|
-
"expo-audio": "
|
|
85
|
-
"expo-document-picker": "
|
|
86
|
-
"expo-haptics": "
|
|
87
|
-
"expo-linear-gradient": "
|
|
88
|
-
"expo-status-bar": "
|
|
84
|
+
"expo-audio": "~55.0.2",
|
|
85
|
+
"expo-document-picker": "~55.0.2",
|
|
86
|
+
"expo-haptics": "~55.0.2",
|
|
87
|
+
"expo-linear-gradient": "~55.0.2",
|
|
88
|
+
"expo-status-bar": "~55.0.2",
|
|
89
89
|
"jest": "^30.2.0",
|
|
90
90
|
"jest-environment-node": "^30.2.0",
|
|
91
|
-
"jest-expo": "
|
|
91
|
+
"jest-expo": "~55.0.0",
|
|
92
92
|
"react": "19.2.0",
|
|
93
|
-
"react-native": "0.83.
|
|
94
|
-
"react-native-reanimated": "
|
|
93
|
+
"react-native": "0.83.2",
|
|
94
|
+
"react-native-reanimated": "4.2.1",
|
|
95
95
|
"react-native-reanimated-carousel": "^4.0.0",
|
|
96
|
-
"react-native-safe-area-context": "
|
|
97
|
-
"react-native-svg": "15.15.
|
|
96
|
+
"react-native-safe-area-context": "~5.6.2",
|
|
97
|
+
"react-native-svg": "15.15.3",
|
|
98
98
|
"react-native-worklets": "0.7.2",
|
|
99
99
|
"react-syntax-highlighter": "^16.1.0",
|
|
100
100
|
"react-test-renderer": "19.2.0",
|