@metacells/mcellui-core 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacells/mcellui-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Core theme system and utilities for mcellui - React Native UI components",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -2,7 +2,7 @@
2
2
  * ErrorBoundary
3
3
  *
4
4
  * A React error boundary component for catching and handling
5
- * runtime errors in nativeui components.
5
+ * runtime errors in mcellui components.
6
6
  *
7
7
  * @example
8
8
  * ```tsx
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * ConfigProvider
3
3
  *
4
- * Wraps ThemeProvider and automatically applies configuration from nativeui.config.ts.
4
+ * Wraps ThemeProvider and automatically applies configuration from mcellui.config.ts.
5
5
  * This is the recommended way to set up NativeUI in your app.
6
6
  *
7
7
  * @example
8
8
  * ```tsx
9
9
  * // App.tsx - with auto-config (requires metro-plugin)
10
- * import { ConfigProvider } from '@nativeui/core';
10
+ * import { ConfigProvider } from '@metacells/mcellui-core';
11
11
  *
12
12
  * export default function App() {
13
13
  * return (
@@ -18,7 +18,7 @@
18
18
  * }
19
19
  *
20
20
  * // App.tsx - with explicit config
21
- * import { ConfigProvider } from '@nativeui/core';
21
+ * import { ConfigProvider } from '@metacells/mcellui-core';
22
22
  * import config from './mcellui.config';
23
23
  *
24
24
  * export default function App() {
@@ -53,7 +53,7 @@ const ConfigContext = createContext<ResolvedNativeUIConfig | null>(null);
53
53
  export interface ConfigProviderProps {
54
54
  /**
55
55
  * NativeUI configuration object.
56
- * Import from your nativeui.config.ts file.
56
+ * Import from your mcellui.config.ts file.
57
57
  */
58
58
  config?: NativeUIConfig;
59
59
 
@@ -2,12 +2,12 @@
2
2
  * defineConfig
3
3
  *
4
4
  * Helper function to define NativeUI configuration with type safety.
5
- * Use this in your `nativeui.config.ts` file.
5
+ * Use this in your `mcellui.config.ts` file.
6
6
  *
7
7
  * @example
8
8
  * ```ts
9
- * // nativeui.config.ts
10
- * import { defineConfig } from '@nativeui/core';
9
+ * // mcellui.config.ts
10
+ * import { defineConfig } from '@metacells/mcellui-core';
11
11
  *
12
12
  * export default defineConfig({
13
13
  * theme: 'blue',
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * @example
7
7
  * ```ts
8
- * // nativeui.config.ts
9
- * import { defineConfig } from '@nativeui/core';
8
+ * // mcellui.config.ts
9
+ * import { defineConfig } from '@metacells/mcellui-core';
10
10
  *
11
11
  * export default defineConfig({
12
12
  * theme: 'blue',
@@ -20,8 +20,8 @@
20
20
  * @example
21
21
  * ```tsx
22
22
  * // App.tsx
23
- * import { ConfigProvider } from '@nativeui/core';
24
- * import config from './nativeui.config';
23
+ * import { ConfigProvider } from '@metacells/mcellui-core';
24
+ * import config from './mcellui.config';
25
25
  *
26
26
  * export default function App() {
27
27
  * return (
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * @example
8
8
  * ```ts
9
- * // nativeui.config.ts
10
- * import { defineConfig } from '@nativeui/core';
9
+ * // mcellui.config.ts
10
+ * import { defineConfig } from '@metacells/mcellui-core';
11
11
  *
12
12
  * export default defineConfig({
13
13
  * theme: 'blue',
@@ -27,7 +27,7 @@ import type { AnimationPreset } from '../theme/animations';
27
27
 
28
28
  /**
29
29
  * NativeUI configuration object.
30
- * Place in `nativeui.config.ts` at your project root.
30
+ * Place in `mcellui.config.ts` at your project root.
31
31
  */
32
32
  export interface NativeUIConfig {
33
33
  // ============================================
@@ -113,7 +113,7 @@ export interface NativeUIConfig {
113
113
  };
114
114
 
115
115
  // ============================================
116
- // CLI Configuration (used by `npx nativeui add`)
116
+ // CLI Configuration (used by `npx mcellui add`)
117
117
  // ============================================
118
118
 
119
119
  /**
package/src/constants.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @example
9
9
  * ```tsx
10
- * import { SHEET_CONSTANTS } from '@nativeui/core';
10
+ * import { SHEET_CONSTANTS } from '@metacells/mcellui-core';
11
11
  *
12
12
  * // In SheetContent:
13
13
  * if (translationY > height * SHEET_CONSTANTS.closeThreshold) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * ThemeProvider
3
3
  *
4
- * Provides theme context to all nativeui components.
4
+ * Provides theme context to all mcellui components.
5
5
  * Automatically detects system color scheme and provides all design tokens.
6
6
  *
7
7
  * Like shadcn/ui - change tokens here to transform the entire UI.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Theme System
3
3
  *
4
- * Complete design token system for nativeui components.
4
+ * Complete design token system for mcellui components.
5
5
  * Inspired by shadcn/ui - change a few tokens to transform the entire UI.
6
6
  */
7
7
 
package/src/utils/cn.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * cn() - Class Name / Style Merger
3
3
  *
4
- * The core utility for merging styles in nativeui.
4
+ * The core utility for merging styles in mcellui.
5
5
  * Inspired by shadcn/ui's cn() but adapted for React Native StyleSheet.
6
6
  */
7
7
 
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @example
8
8
  * ```tsx
9
- * import { isExpoGo, areAnimationsDisabled } from '@nativeui/core';
9
+ * import { isExpoGo, areAnimationsDisabled } from '@metacells/mcellui-core';
10
10
  *
11
11
  * // Check environment
12
12
  * if (isExpoGo()) {
@@ -75,7 +75,7 @@ export function isHapticsEnabled(): boolean {
75
75
  * Respects the global haptics enabled state. Disabled via:
76
76
  * - `setHapticsEnabled(false)`
77
77
  * - `<ThemeProvider haptics={false}>`
78
- * - `nativeui.config.ts` with `haptics: false`
78
+ * - `mcellui.config.ts` with `haptics: false`
79
79
  *
80
80
  * @example
81
81
  * ```tsx