@metacells/mcellui-mcp-server 0.1.5 → 0.1.6
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/dist/index.js +7 -7
- package/package.json +1 -1
- package/registry/ui/accordion.tsx +2 -2
- package/registry/ui/action-sheet.tsx +1 -1
- package/registry/ui/alert-dialog.tsx +2 -2
- package/registry/ui/avatar-stack.tsx +1 -1
- package/registry/ui/avatar.tsx +1 -1
- package/registry/ui/badge.tsx +1 -1
- package/registry/ui/button.tsx +2 -2
- package/registry/ui/card.tsx +1 -1
- package/registry/ui/carousel.tsx +1 -1
- package/registry/ui/checkbox.tsx +2 -2
- package/registry/ui/chip.tsx +1 -1
- package/registry/ui/column.tsx +1 -1
- package/registry/ui/datetime-picker.tsx +1 -1
- package/registry/ui/dialog.tsx +1 -1
- package/registry/ui/fab.tsx +1 -1
- package/registry/ui/form.tsx +1 -1
- package/registry/ui/horizontal-list.tsx +1 -1
- package/registry/ui/icon-button.tsx +2 -2
- package/registry/ui/image-gallery.tsx +1 -1
- package/registry/ui/image.tsx +1 -1
- package/registry/ui/input.tsx +2 -2
- package/registry/ui/label.tsx +1 -1
- package/registry/ui/list.tsx +2 -2
- package/registry/ui/progress.tsx +1 -1
- package/registry/ui/pull-to-refresh.tsx +1 -1
- package/registry/ui/radio-group.tsx +2 -2
- package/registry/ui/rating.tsx +1 -1
- package/registry/ui/row.tsx +1 -1
- package/registry/ui/screen.tsx +1 -1
- package/registry/ui/search-input.tsx +2 -2
- package/registry/ui/section-header.tsx +2 -2
- package/registry/ui/segmented-control.tsx +2 -2
- package/registry/ui/select.tsx +2 -2
- package/registry/ui/separator.tsx +1 -1
- package/registry/ui/sheet.tsx +1 -1
- package/registry/ui/skeleton.tsx +1 -1
- package/registry/ui/slider.tsx +2 -2
- package/registry/ui/spinner.tsx +1 -1
- package/registry/ui/stepper.tsx +2 -2
- package/registry/ui/stories.tsx +1 -1
- package/registry/ui/swipeable-row.tsx +2 -2
- package/registry/ui/switch.tsx +2 -2
- package/registry/ui/tabs.tsx +2 -2
- package/registry/ui/textarea.tsx +2 -2
- package/registry/ui/toast.tsx +2 -2
- package/registry/ui/tooltip.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -576,7 +576,7 @@ Your component should follow this structure:
|
|
|
576
576
|
\`\`\`tsx
|
|
577
577
|
import React${withForwardRef ? ", { forwardRef }" : ""} from 'react';
|
|
578
578
|
import { View, Text, StyleSheet } from 'react-native';
|
|
579
|
-
import { useTheme } from '@
|
|
579
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
580
580
|
|
|
581
581
|
export interface ${pascalName}Props {
|
|
582
582
|
// Define your props here
|
|
@@ -752,7 +752,7 @@ function App() {
|
|
|
752
752
|
|
|
753
753
|
\`\`\`typescript
|
|
754
754
|
// nativeui.config.ts
|
|
755
|
-
import { defineConfig } from '@
|
|
755
|
+
import { defineConfig } from '@metacells/mcellui-core';
|
|
756
756
|
|
|
757
757
|
export default defineConfig({
|
|
758
758
|
// Theme preset
|
|
@@ -865,7 +865,7 @@ Check \`tsconfig.json\`:
|
|
|
865
865
|
|
|
866
866
|
- [ ] \`nativeui.config.ts\` exists
|
|
867
867
|
- [ ] \`components/ui/\` directory exists
|
|
868
|
-
- [ ] \`@
|
|
868
|
+
- [ ] \`@metacells/mcellui-core\` installed
|
|
869
869
|
- [ ] \`react-native-reanimated\` installed
|
|
870
870
|
- [ ] \`react-native-gesture-handler\` installed
|
|
871
871
|
- [ ] Babel plugin configured
|
|
@@ -1262,7 +1262,7 @@ Best practices for building React Native components with nativeui.
|
|
|
1262
1262
|
\`\`\`tsx
|
|
1263
1263
|
import React from 'react';
|
|
1264
1264
|
import { View, StyleSheet, type ViewProps } from 'react-native';
|
|
1265
|
-
import { useTheme } from '@
|
|
1265
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
1266
1266
|
|
|
1267
1267
|
export interface MyComponentProps extends ViewProps {
|
|
1268
1268
|
variant?: 'default' | 'outlined';
|
|
@@ -1534,7 +1534,7 @@ export default defineConfig({
|
|
|
1534
1534
|
## Accessing Theme in Components
|
|
1535
1535
|
|
|
1536
1536
|
\`\`\`tsx
|
|
1537
|
-
import { useTheme } from '@
|
|
1537
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
1538
1538
|
|
|
1539
1539
|
function MyComponent() {
|
|
1540
1540
|
const { colors, spacing, radius, typography } = useTheme();
|
|
@@ -1636,7 +1636,7 @@ const radius = {
|
|
|
1636
1636
|
nativeui automatically handles dark mode:
|
|
1637
1637
|
|
|
1638
1638
|
\`\`\`tsx
|
|
1639
|
-
import { ThemeProvider } from '@
|
|
1639
|
+
import { ThemeProvider } from '@metacells/mcellui-core';
|
|
1640
1640
|
|
|
1641
1641
|
export default function App() {
|
|
1642
1642
|
return (
|
|
@@ -1657,7 +1657,7 @@ Options:
|
|
|
1657
1657
|
To extend or override colors, modify the theme in your provider:
|
|
1658
1658
|
|
|
1659
1659
|
\`\`\`tsx
|
|
1660
|
-
import { ThemeProvider } from '@
|
|
1660
|
+
import { ThemeProvider } from '@metacells/mcellui-core';
|
|
1661
1661
|
|
|
1662
1662
|
const customColors = {
|
|
1663
1663
|
brand: '#FF6B00',
|
package/package.json
CHANGED
|
@@ -41,8 +41,8 @@ import Animated, {
|
|
|
41
41
|
Extrapolation,
|
|
42
42
|
} from 'react-native-reanimated';
|
|
43
43
|
import Svg, { Path } from 'react-native-svg';
|
|
44
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
45
|
-
import { haptic } from '@
|
|
44
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
45
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
46
46
|
|
|
47
47
|
// Smooth spring config for natural feel
|
|
48
48
|
const SPRING_CONFIG = {
|
|
@@ -53,7 +53,7 @@ import Animated, {
|
|
|
53
53
|
Easing,
|
|
54
54
|
} from 'react-native-reanimated';
|
|
55
55
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
56
|
-
import { useTheme, haptic } from '@
|
|
56
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
57
57
|
|
|
58
58
|
const { height: SCREEN_HEIGHT } = Dimensions.get('window');
|
|
59
59
|
|
|
@@ -45,8 +45,8 @@ import Animated, {
|
|
|
45
45
|
runOnJS,
|
|
46
46
|
interpolate,
|
|
47
47
|
} from 'react-native-reanimated';
|
|
48
|
-
import { useTheme } from '@
|
|
49
|
-
import { haptic } from '@
|
|
48
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
49
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
50
50
|
|
|
51
51
|
const { width: SCREEN_WIDTH } = Dimensions.get('window');
|
|
52
52
|
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
ViewStyle,
|
|
39
39
|
ImageSourcePropType,
|
|
40
40
|
} from 'react-native';
|
|
41
|
-
import { useTheme } from '@
|
|
41
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
42
42
|
|
|
43
43
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
44
44
|
// Types
|
package/registry/ui/avatar.tsx
CHANGED
package/registry/ui/badge.tsx
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { View, Text, StyleSheet, ViewStyle, TextStyle } from 'react-native';
|
|
18
|
-
import { useTheme, ThemeColors } from '@
|
|
18
|
+
import { useTheme, ThemeColors } from '@metacells/mcellui-core';
|
|
19
19
|
|
|
20
20
|
export type BadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline';
|
|
21
21
|
export type BadgeSize = 'sm' | 'md' | 'lg';
|
package/registry/ui/button.tsx
CHANGED
|
@@ -29,8 +29,8 @@ import Animated, {
|
|
|
29
29
|
useAnimatedStyle,
|
|
30
30
|
withSpring,
|
|
31
31
|
} from 'react-native-reanimated';
|
|
32
|
-
import { useTheme, BUTTON_CONSTANTS, areAnimationsDisabled } from '@
|
|
33
|
-
import { haptic } from '@
|
|
32
|
+
import { useTheme, BUTTON_CONSTANTS, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
33
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
34
34
|
|
|
35
35
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
36
36
|
|
package/registry/ui/card.tsx
CHANGED
|
@@ -48,7 +48,7 @@ import Animated, {
|
|
|
48
48
|
useAnimatedStyle,
|
|
49
49
|
withSpring,
|
|
50
50
|
} from 'react-native-reanimated';
|
|
51
|
-
import { useTheme, haptic } from '@
|
|
51
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
52
52
|
|
|
53
53
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
54
54
|
|
package/registry/ui/carousel.tsx
CHANGED
package/registry/ui/checkbox.tsx
CHANGED
|
@@ -31,8 +31,8 @@ import Animated, {
|
|
|
31
31
|
Extrapolation,
|
|
32
32
|
} from 'react-native-reanimated';
|
|
33
33
|
import Svg, { Path } from 'react-native-svg';
|
|
34
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
35
|
-
import { haptic } from '@
|
|
34
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
35
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
36
36
|
|
|
37
37
|
const AnimatedSvg = Animated.createAnimatedComponent(Svg);
|
|
38
38
|
|
package/registry/ui/chip.tsx
CHANGED
|
@@ -46,7 +46,7 @@ import Animated, {
|
|
|
46
46
|
withSpring,
|
|
47
47
|
interpolateColor,
|
|
48
48
|
} from 'react-native-reanimated';
|
|
49
|
-
import { useTheme } from '@
|
|
49
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
50
50
|
|
|
51
51
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
52
52
|
|
package/registry/ui/column.tsx
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
import React, { forwardRef } from 'react';
|
|
23
23
|
import { View, ViewProps, ViewStyle } from 'react-native';
|
|
24
|
-
import { useTheme } from '@
|
|
24
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
25
25
|
|
|
26
26
|
// Semantic gap values
|
|
27
27
|
type GapSemantic = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
@@ -59,7 +59,7 @@ import Animated, {
|
|
|
59
59
|
runOnJS,
|
|
60
60
|
} from 'react-native-reanimated';
|
|
61
61
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
62
|
-
import { useTheme, haptic } from '@
|
|
62
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
63
63
|
|
|
64
64
|
// Try to import native picker - may fail in Expo Go
|
|
65
65
|
let DateTimePickerNative: typeof import('@react-native-community/datetimepicker').default | null = null;
|
package/registry/ui/dialog.tsx
CHANGED
|
@@ -46,7 +46,7 @@ import Animated, {
|
|
|
46
46
|
runOnJS,
|
|
47
47
|
interpolate,
|
|
48
48
|
} from 'react-native-reanimated';
|
|
49
|
-
import { useTheme, DIALOG_CONSTANTS, areAnimationsDisabled } from '@
|
|
49
|
+
import { useTheme, DIALOG_CONSTANTS, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
50
50
|
|
|
51
51
|
const { width: SCREEN_WIDTH } = Dimensions.get('window');
|
|
52
52
|
|
package/registry/ui/fab.tsx
CHANGED
|
@@ -41,7 +41,7 @@ import Animated, {
|
|
|
41
41
|
useSharedValue,
|
|
42
42
|
withSpring,
|
|
43
43
|
} from 'react-native-reanimated';
|
|
44
|
-
import { useTheme, haptic } from '@
|
|
44
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
45
45
|
|
|
46
46
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
47
47
|
|
package/registry/ui/form.tsx
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
ControllerFieldState,
|
|
73
73
|
UseFormStateReturn,
|
|
74
74
|
} from 'react-hook-form';
|
|
75
|
-
import { useTheme } from '@
|
|
75
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
76
76
|
|
|
77
77
|
// ============================================================================
|
|
78
78
|
// Form Context
|
|
@@ -33,8 +33,8 @@ import Animated, {
|
|
|
33
33
|
useAnimatedStyle,
|
|
34
34
|
withSpring,
|
|
35
35
|
} from 'react-native-reanimated';
|
|
36
|
-
import { useTheme } from '@
|
|
37
|
-
import { haptic } from '@
|
|
36
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
37
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
38
38
|
|
|
39
39
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
40
40
|
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
GestureDetector,
|
|
63
63
|
GestureHandlerRootView,
|
|
64
64
|
} from 'react-native-gesture-handler';
|
|
65
|
-
import { useTheme, haptic } from '@
|
|
65
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
66
66
|
|
|
67
67
|
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get('window');
|
|
68
68
|
|
package/registry/ui/image.tsx
CHANGED
|
@@ -46,7 +46,7 @@ import Animated, {
|
|
|
46
46
|
Easing,
|
|
47
47
|
} from 'react-native-reanimated';
|
|
48
48
|
import Svg, { Path, Rect } from 'react-native-svg';
|
|
49
|
-
import { useTheme } from '@
|
|
49
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
50
50
|
|
|
51
51
|
const AnimatedImage = Animated.createAnimatedComponent(RNImage);
|
|
52
52
|
|
package/registry/ui/input.tsx
CHANGED
|
@@ -28,8 +28,8 @@ import Animated, {
|
|
|
28
28
|
withTiming,
|
|
29
29
|
interpolateColor,
|
|
30
30
|
} from 'react-native-reanimated';
|
|
31
|
-
import { useTheme } from '@
|
|
32
|
-
import { haptic } from '@
|
|
31
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
32
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
33
33
|
|
|
34
34
|
const AnimatedTextInput = Animated.createAnimatedComponent(TextInput);
|
|
35
35
|
|
package/registry/ui/label.tsx
CHANGED
package/registry/ui/list.tsx
CHANGED
|
@@ -49,8 +49,8 @@ import Animated, {
|
|
|
49
49
|
withSpring,
|
|
50
50
|
} from 'react-native-reanimated';
|
|
51
51
|
import Svg, { Path } from 'react-native-svg';
|
|
52
|
-
import { useTheme } from '@
|
|
53
|
-
import { haptic } from '@
|
|
52
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
53
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
54
54
|
|
|
55
55
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
56
56
|
|
package/registry/ui/progress.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import Animated, {
|
|
|
23
23
|
withSequence,
|
|
24
24
|
Easing,
|
|
25
25
|
} from 'react-native-reanimated';
|
|
26
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
26
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
27
27
|
|
|
28
28
|
export type ProgressSize = 'sm' | 'md' | 'lg';
|
|
29
29
|
export type ProgressColor = 'default' | 'primary' | 'success' | 'warning' | 'destructive';
|
|
@@ -38,7 +38,7 @@ import Animated, {
|
|
|
38
38
|
Easing,
|
|
39
39
|
cancelAnimation,
|
|
40
40
|
} from 'react-native-reanimated';
|
|
41
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
41
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
42
42
|
|
|
43
43
|
export interface PullToRefreshProps {
|
|
44
44
|
/** Whether currently refreshing */
|
|
@@ -33,8 +33,8 @@ import Animated, {
|
|
|
33
33
|
interpolateColor,
|
|
34
34
|
Extrapolation,
|
|
35
35
|
} from 'react-native-reanimated';
|
|
36
|
-
import { useTheme, ThemeColors, springs as themeSpringPresets } from '@
|
|
37
|
-
import { haptic } from '@
|
|
36
|
+
import { useTheme, ThemeColors, springs as themeSpringPresets } from '@metacells/mcellui-core';
|
|
37
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
38
38
|
|
|
39
39
|
// Context for sharing state between RadioGroup and RadioGroupItem
|
|
40
40
|
interface RadioGroupContextValue {
|
package/registry/ui/rating.tsx
CHANGED
|
@@ -38,7 +38,7 @@ import Animated, {
|
|
|
38
38
|
withSequence,
|
|
39
39
|
withTiming,
|
|
40
40
|
} from 'react-native-reanimated';
|
|
41
|
-
import { useTheme, haptic } from '@
|
|
41
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
42
42
|
|
|
43
43
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
44
44
|
|
package/registry/ui/row.tsx
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { forwardRef } from 'react';
|
|
21
21
|
import { View, ViewProps, ViewStyle } from 'react-native';
|
|
22
|
-
import { useTheme } from '@
|
|
22
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
23
23
|
|
|
24
24
|
// Semantic gap values
|
|
25
25
|
type GapSemantic = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
package/registry/ui/screen.tsx
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
StyleSheet,
|
|
33
33
|
} from 'react-native';
|
|
34
34
|
import { useSafeAreaInsets, Edge } from 'react-native-safe-area-context';
|
|
35
|
-
import { useTheme } from '@
|
|
35
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
36
36
|
|
|
37
37
|
export type ScreenVariant = 'default' | 'surface' | 'muted';
|
|
38
38
|
|
|
@@ -47,8 +47,8 @@ import Animated, {
|
|
|
47
47
|
interpolate,
|
|
48
48
|
} from 'react-native-reanimated';
|
|
49
49
|
import Svg, { Path, Circle } from 'react-native-svg';
|
|
50
|
-
import { useTheme } from '@
|
|
51
|
-
import { haptic } from '@
|
|
50
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
51
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
52
52
|
|
|
53
53
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
54
54
|
// Types
|
|
@@ -47,8 +47,8 @@ import Animated, {
|
|
|
47
47
|
withSpring,
|
|
48
48
|
} from 'react-native-reanimated';
|
|
49
49
|
import Svg, { Path } from 'react-native-svg';
|
|
50
|
-
import { useTheme } from '@
|
|
51
|
-
import { haptic } from '@
|
|
50
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
51
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
52
52
|
|
|
53
53
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
54
54
|
|
|
@@ -36,8 +36,8 @@ import Animated, {
|
|
|
36
36
|
useAnimatedStyle,
|
|
37
37
|
withSpring,
|
|
38
38
|
} from 'react-native-reanimated';
|
|
39
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
40
|
-
import { haptic } from '@
|
|
39
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
40
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
41
41
|
|
|
42
42
|
export type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
43
43
|
|
package/registry/ui/select.tsx
CHANGED
|
@@ -39,8 +39,8 @@ import Animated, {
|
|
|
39
39
|
interpolateColor,
|
|
40
40
|
Easing,
|
|
41
41
|
} from 'react-native-reanimated';
|
|
42
|
-
import { useTheme } from '@
|
|
43
|
-
import { haptic } from '@
|
|
42
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
43
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
44
44
|
|
|
45
45
|
const TIMING_CONFIG = { duration: 200, easing: Easing.out(Easing.quad) };
|
|
46
46
|
import {
|
package/registry/ui/sheet.tsx
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
GestureDetector,
|
|
48
48
|
GestureHandlerRootView,
|
|
49
49
|
} from 'react-native-gesture-handler';
|
|
50
|
-
import { useTheme, SHEET_CONSTANTS, areAnimationsDisabled } from '@
|
|
50
|
+
import { useTheme, SHEET_CONSTANTS, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
51
51
|
|
|
52
52
|
const { height: SCREEN_HEIGHT } = Dimensions.get('window');
|
|
53
53
|
|
package/registry/ui/skeleton.tsx
CHANGED
|
@@ -22,7 +22,7 @@ import Animated, {
|
|
|
22
22
|
interpolate,
|
|
23
23
|
Easing,
|
|
24
24
|
} from 'react-native-reanimated';
|
|
25
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
25
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
26
26
|
|
|
27
27
|
export type SkeletonRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
28
28
|
|
package/registry/ui/slider.tsx
CHANGED
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
Gesture,
|
|
34
34
|
GestureDetector,
|
|
35
35
|
} from 'react-native-gesture-handler';
|
|
36
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
37
|
-
import { haptic } from '@
|
|
36
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
37
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
38
38
|
|
|
39
39
|
export type SliderSize = 'sm' | 'md' | 'lg';
|
|
40
40
|
|
package/registry/ui/spinner.tsx
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
ViewStyle,
|
|
22
22
|
ActivityIndicatorProps,
|
|
23
23
|
} from 'react-native';
|
|
24
|
-
import { useTheme } from '@
|
|
24
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
25
25
|
|
|
26
26
|
export type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
27
27
|
export type SpinnerColor = 'default' | 'primary' | 'secondary' | 'muted';
|
package/registry/ui/stepper.tsx
CHANGED
|
@@ -28,8 +28,8 @@ import Animated, {
|
|
|
28
28
|
useAnimatedStyle,
|
|
29
29
|
withSpring,
|
|
30
30
|
} from 'react-native-reanimated';
|
|
31
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
32
|
-
import { haptic } from '@
|
|
31
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
32
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
33
33
|
|
|
34
34
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
35
35
|
|
package/registry/ui/stories.tsx
CHANGED
|
@@ -50,7 +50,7 @@ import Animated, {
|
|
|
50
50
|
Easing,
|
|
51
51
|
} from 'react-native-reanimated';
|
|
52
52
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
53
|
-
import { useTheme, haptic } from '@
|
|
53
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
54
54
|
|
|
55
55
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
56
56
|
|
|
@@ -48,8 +48,8 @@ import {
|
|
|
48
48
|
Gesture,
|
|
49
49
|
GestureDetector,
|
|
50
50
|
} from 'react-native-gesture-handler';
|
|
51
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
52
|
-
import { haptic } from '@
|
|
51
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
52
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
53
53
|
|
|
54
54
|
const SCREEN_WIDTH = Dimensions.get('window').width;
|
|
55
55
|
const ACTION_WIDTH = 80;
|
package/registry/ui/switch.tsx
CHANGED
|
@@ -31,8 +31,8 @@ import Animated, {
|
|
|
31
31
|
interpolateColor,
|
|
32
32
|
Extrapolation,
|
|
33
33
|
} from 'react-native-reanimated';
|
|
34
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
35
|
-
import { haptic } from '@
|
|
34
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
35
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
36
36
|
|
|
37
37
|
export type SwitchSize = 'sm' | 'md' | 'lg';
|
|
38
38
|
|
package/registry/ui/tabs.tsx
CHANGED
|
@@ -57,8 +57,8 @@ import Animated, {
|
|
|
57
57
|
useAnimatedStyle,
|
|
58
58
|
withSpring,
|
|
59
59
|
} from 'react-native-reanimated';
|
|
60
|
-
import { useTheme, areAnimationsDisabled } from '@
|
|
61
|
-
import { haptic } from '@
|
|
60
|
+
import { useTheme, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
61
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
62
62
|
|
|
63
63
|
// Context
|
|
64
64
|
interface TabsContextValue {
|
package/registry/ui/textarea.tsx
CHANGED
|
@@ -31,8 +31,8 @@ import Animated, {
|
|
|
31
31
|
interpolateColor,
|
|
32
32
|
Easing,
|
|
33
33
|
} from 'react-native-reanimated';
|
|
34
|
-
import { useTheme } from '@
|
|
35
|
-
import { haptic } from '@
|
|
34
|
+
import { useTheme } from '@metacells/mcellui-core';
|
|
35
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
36
36
|
|
|
37
37
|
const TIMING_CONFIG = { duration: 200, easing: Easing.out(Easing.quad) };
|
|
38
38
|
|
package/registry/ui/toast.tsx
CHANGED
|
@@ -49,8 +49,8 @@ import Animated, {
|
|
|
49
49
|
Layout,
|
|
50
50
|
} from 'react-native-reanimated';
|
|
51
51
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
52
|
-
import { useTheme, TOAST_CONSTANTS, areAnimationsDisabled } from '@
|
|
53
|
-
import { haptic } from '@
|
|
52
|
+
import { useTheme, TOAST_CONSTANTS, areAnimationsDisabled } from '@metacells/mcellui-core';
|
|
53
|
+
import { haptic } from '@metacells/mcellui-core';
|
|
54
54
|
|
|
55
55
|
const { width: SCREEN_WIDTH } = Dimensions.get('window');
|
|
56
56
|
|
package/registry/ui/tooltip.tsx
CHANGED
|
@@ -39,7 +39,7 @@ import Animated, {
|
|
|
39
39
|
withTiming,
|
|
40
40
|
withSpring,
|
|
41
41
|
} from 'react-native-reanimated';
|
|
42
|
-
import { useTheme, haptic } from '@
|
|
42
|
+
import { useTheme, haptic } from '@metacells/mcellui-core';
|
|
43
43
|
|
|
44
44
|
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get('window');
|
|
45
45
|
|