@pisodev/test-component-library 2.1.4 → 3.0.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.
Files changed (92) hide show
  1. package/dist/components/Typography/H1/H1.web.d.ts +5 -0
  2. package/dist/components/Typography/H1/index.web.d.ts +2 -0
  3. package/dist/components/Typography/index.web.d.ts +2 -0
  4. package/dist/components/Typography/shared/Typography.base.types.d.ts +11 -0
  5. package/dist/components/index.web.d.ts +1 -0
  6. package/dist/index.d.ts +1 -3
  7. package/dist/index.esm.js +53 -34
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +55 -35
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.web.d.ts +2 -3
  12. package/dist/theme/build-colors.d.ts +1 -0
  13. package/dist/theme/colors.d.ts +2 -2
  14. package/dist/theme/colors.data.d.ts +28 -0
  15. package/dist/theme/colors.types.d.ts +14 -38
  16. package/dist/theme/index.d.ts +3 -5
  17. package/package.json +7 -6
  18. package/src/components/Typography/H1/H1.native.tsx +25 -0
  19. package/src/components/Typography/H1/H1.web.module.scss +10 -0
  20. package/src/components/Typography/H1/H1.web.tsx +19 -0
  21. package/src/components/Typography/H1/index.ts +2 -0
  22. package/src/components/Typography/H1/index.web.ts +2 -0
  23. package/src/components/Typography/index.ts +2 -0
  24. package/src/components/Typography/index.web.ts +2 -0
  25. package/src/components/Typography/shared/Typography.base.types.ts +14 -0
  26. package/src/components/index.ts +1 -0
  27. package/src/components/index.web.ts +1 -0
  28. package/src/index.ts +2 -0
  29. package/src/index.web.ts +2 -0
  30. package/src/theme/_colors.scss +41 -0
  31. package/src/theme/_index.scss +2 -0
  32. package/src/theme/build-colors.ts +103 -0
  33. package/src/theme/colors.css +67 -0
  34. package/src/theme/colors.data.ts +28 -0
  35. package/src/theme/colors.ts +14 -0
  36. package/src/theme/colors.types.ts +23 -0
  37. package/src/theme/index.ts +3 -0
  38. package/src/types/scss.d.ts +9 -0
  39. package/components/Anchor/Anchor.native.tsx +0 -44
  40. package/components/Anchor/Anchor.types.ts +0 -11
  41. package/components/Anchor/Anchor.web.module.scss +0 -33
  42. package/components/Anchor/Anchor.web.tsx +0 -35
  43. package/components/Anchor/README.md +0 -58
  44. package/components/Anchor/index.ts +0 -2
  45. package/components/Anchor/index.web.ts +0 -2
  46. package/components/StatusBar/README.md +0 -56
  47. package/components/StatusBar/StatusBar.tsx +0 -17
  48. package/components/StatusBar/StatusBar.types.ts +0 -5
  49. package/components/StatusBar/index.ts +0 -3
  50. package/components/StatusBar/index.web.ts +0 -14
  51. package/components/Tooltip/README.md +0 -45
  52. package/components/Tooltip/Tooltip.module.scss +0 -44
  53. package/components/Tooltip/Tooltip.tsx +0 -26
  54. package/components/Tooltip/Tooltip.types.ts +0 -7
  55. package/components/Tooltip/index.native.ts +0 -15
  56. package/components/Tooltip/index.ts +0 -3
  57. package/components/index.ts +0 -8
  58. package/components/index.web.ts +0 -8
  59. package/components/theme/ThemeContext.ts +0 -15
  60. package/components/theme/ThemeProvider.native.tsx +0 -36
  61. package/components/theme/ThemeProvider.tsx +0 -6
  62. package/components/theme/ThemeProvider.web.tsx +0 -67
  63. package/components/theme/_colors.scss +0 -89
  64. package/components/theme/colors.ts +0 -81
  65. package/components/theme/colors.types.ts +0 -48
  66. package/components/theme/index.ts +0 -5
  67. package/components/theme/index.web.ts +0 -4
  68. package/components/theme/useTheme.ts +0 -12
  69. package/dist/Anchor/Anchor.native.d.ts +0 -3
  70. package/dist/Anchor/Anchor.native.js +0 -34
  71. package/dist/Anchor/Anchor.types.d.ts +0 -10
  72. package/dist/Anchor/Anchor.types.js +0 -2
  73. package/dist/Anchor/Anchor.web.d.ts +0 -3
  74. package/dist/Anchor/index.d.ts +0 -2
  75. package/dist/Anchor/index.web.d.ts +0 -2
  76. package/dist/StatusBar/StatusBar.d.ts +0 -3
  77. package/dist/StatusBar/StatusBar.types.d.ts +0 -5
  78. package/dist/StatusBar/StatusBar.types.js +0 -2
  79. package/dist/StatusBar/index.d.ts +0 -2
  80. package/dist/StatusBar/index.web.d.ts +0 -3
  81. package/dist/Tooltip/Tooltip.d.ts +0 -3
  82. package/dist/Tooltip/Tooltip.types.d.ts +0 -6
  83. package/dist/Tooltip/Tooltip.types.js +0 -2
  84. package/dist/Tooltip/index.d.ts +0 -2
  85. package/dist/Tooltip/index.native.d.ts +0 -4
  86. package/dist/Tooltip/index.native.js +0 -12
  87. package/dist/theme/ThemeContext.d.ts +0 -7
  88. package/dist/theme/ThemeProvider.d.ts +0 -2
  89. package/dist/theme/ThemeProvider.native.d.ts +0 -8
  90. package/dist/theme/ThemeProvider.web.d.ts +0 -7
  91. package/dist/theme/index.web.d.ts +0 -4
  92. package/dist/theme/useTheme.d.ts +0 -1
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { TooltipProps } from './Tooltip.types';
3
-
4
- // React Native에서는 Tooltip 미지원
5
- // children만 렌더링하고 tooltip은 무시
6
- export const Tooltip: React.FC<TooltipProps> = ({ children }) => {
7
- if (process.env.NODE_ENV === 'development') {
8
- console.warn(
9
- 'Tooltip is web-only. On React Native, consider using a modal or overlay library.'
10
- );
11
- }
12
- return children as React.ReactElement;
13
- };
14
-
15
- export type { TooltipProps };
@@ -1,3 +0,0 @@
1
- // 웹에서만 사용 가능
2
- export { Tooltip } from './Tooltip';
3
- export type { TooltipProps } from './Tooltip.types';
@@ -1,8 +0,0 @@
1
- // 크로스 플랫폼 컴포넌트
2
- export * from './Anchor';
3
-
4
- // 웹 전용 컴포넌트 (RN에서는 fallback 제공)
5
- export * from './Tooltip';
6
-
7
- // React Native 전용 컴포넌트 (웹에서는 null 반환)
8
- export * from './StatusBar';
@@ -1,8 +0,0 @@
1
- // 크로스 플랫폼 컴포넌트
2
- export * from './Anchor/index.web';
3
-
4
- // 웹 전용 컴포넌트
5
- export * from './Tooltip';
6
-
7
- // React Native 전용 컴포넌트 (웹에서는 null 반환)
8
- export * from './StatusBar/index.web';
@@ -1,15 +0,0 @@
1
- import { createContext } from 'react';
2
- import { Theme, ThemeMode } from './colors.types';
3
- import { lightTheme } from './colors';
4
-
5
- export interface ThemeContextType {
6
- theme: Theme;
7
- mode: ThemeMode;
8
- setMode: (mode: ThemeMode) => void;
9
- }
10
-
11
- export const ThemeContext = createContext<ThemeContextType>({
12
- theme: lightTheme,
13
- mode: 'light',
14
- setMode: () => {},
15
- });
@@ -1,36 +0,0 @@
1
- import React, { useState, ReactNode } from 'react';
2
- import { useColorScheme } from 'react-native';
3
- import { ThemeContext } from './ThemeContext';
4
- import { ThemeMode } from './colors.types';
5
- import { lightTheme, darkTheme } from './colors';
6
-
7
- export interface ThemeProviderProps {
8
- children: ReactNode;
9
- initialMode?: ThemeMode;
10
- followSystem?: boolean;
11
- }
12
-
13
- export const ThemeProvider: React.FC<ThemeProviderProps> = ({
14
- children,
15
- initialMode,
16
- followSystem = true,
17
- }) => {
18
- const systemColorScheme = useColorScheme();
19
- const [manualMode, setManualMode] = useState<ThemeMode | null>(
20
- initialMode || null
21
- );
22
-
23
- const mode =
24
- manualMode || (followSystem && systemColorScheme) || 'light';
25
- const theme = mode === 'light' ? lightTheme : darkTheme;
26
-
27
- const setMode = (newMode: ThemeMode) => {
28
- setManualMode(newMode);
29
- };
30
-
31
- return (
32
- <ThemeContext.Provider value={{ theme, mode, setMode }}>
33
- {children}
34
- </ThemeContext.Provider>
35
- );
36
- };
@@ -1,6 +0,0 @@
1
- // This file exists for TypeScript type resolution
2
- // The actual implementation is in ThemeProvider.web.tsx and ThemeProvider.native.tsx
3
- // Metro bundler and Rollup will automatically pick the correct platform-specific file
4
-
5
- export { ThemeProvider } from './ThemeProvider.native';
6
- export type { ThemeProviderProps } from './ThemeProvider.native';
@@ -1,67 +0,0 @@
1
- import React, { useState, useEffect, ReactNode } from 'react';
2
- import { ThemeContext } from './ThemeContext';
3
- import { ThemeMode } from './colors.types';
4
- import { lightTheme, darkTheme } from './colors';
5
-
6
- export interface ThemeProviderProps {
7
- children: ReactNode;
8
- initialMode?: ThemeMode;
9
- }
10
-
11
- export const ThemeProvider: React.FC<ThemeProviderProps> = ({
12
- children,
13
- initialMode = 'light',
14
- }) => {
15
- const [mode, setMode] = useState<ThemeMode>(initialMode);
16
- const theme = mode === 'light' ? lightTheme : darkTheme;
17
-
18
- useEffect(() => {
19
- // HTML 클래스 업데이트
20
- document.documentElement.classList.remove('light', 'dark');
21
- document.documentElement.classList.add(mode);
22
-
23
- // CSS Variables 업데이트
24
- const root = document.documentElement;
25
-
26
- // Gray colors
27
- root.style.setProperty('--gray-50', theme.colors.gray[50]);
28
- root.style.setProperty('--gray-100', theme.colors.gray[100]);
29
- root.style.setProperty('--gray-200', theme.colors.gray[200]);
30
- root.style.setProperty('--gray-400', theme.colors.gray[400]);
31
- root.style.setProperty('--gray-600', theme.colors.gray[600]);
32
- root.style.setProperty('--gray-800', theme.colors.gray[800]);
33
- root.style.setProperty('--gray-900', theme.colors.gray[900]);
34
-
35
- // Green colors
36
- root.style.setProperty('--green-400', theme.colors.green[400]);
37
- root.style.setProperty('--green-500', theme.colors.green[500]);
38
- root.style.setProperty('--green-600', theme.colors.green[600]);
39
-
40
- // Blue colors
41
- root.style.setProperty('--blue-400', theme.colors.blue[400]);
42
- root.style.setProperty('--blue-500', theme.colors.blue[500]);
43
- root.style.setProperty('--blue-600', theme.colors.blue[600]);
44
-
45
- // Red colors
46
- root.style.setProperty('--red-400', theme.colors.red[400]);
47
- root.style.setProperty('--red-500', theme.colors.red[500]);
48
- root.style.setProperty('--red-600', theme.colors.red[600]);
49
-
50
- // Semantic colors
51
- root.style.setProperty('--color-info', theme.semantic.info);
52
- root.style.setProperty('--color-success', theme.semantic.success);
53
- root.style.setProperty('--color-error', theme.semantic.error);
54
- root.style.setProperty('--color-warning', theme.semantic.warning);
55
-
56
- // Paper colors
57
- root.style.setProperty('--paper-default', theme.paper.default);
58
- root.style.setProperty('--paper-neutral', theme.paper.neutral);
59
- root.style.setProperty('--paper-dialog', theme.paper.dialog);
60
- }, [mode, theme]);
61
-
62
- return (
63
- <ThemeContext.Provider value={{ theme, mode, setMode }}>
64
- {children}
65
- </ThemeContext.Provider>
66
- );
67
- };
@@ -1,89 +0,0 @@
1
- // Light Theme Colors
2
- $gray-50-light: #F6F8FA;
3
- $gray-100-light: #EEF0F2;
4
- $gray-200-light: #E6E8EA;
5
- $gray-400-light: #CED0D2;
6
- $gray-600-light: #86888A;
7
- $gray-800-light: #2C2E30;
8
- $gray-900-light: #0C0E10;
9
-
10
- $green-400-light: #18C792;
11
- $green-500-light: #16B383;
12
- $green-600-light: #12976F;
13
-
14
- $blue-400-light: #1473FF;
15
- $blue-500-light: #1267E6;
16
- $blue-600-light: #0F57C2;
17
-
18
- $red-400-light: #EB4242;
19
- $red-500-light: #D43B3B;
20
- $red-600-light: #B33232;
21
-
22
- $info-light: #1473FF;
23
- $success-light: #18C792;
24
- $error-light: #EB4242;
25
- $warning-light: #F0B800;
26
-
27
- $paper-default-light: #FFFFFF;
28
- $paper-neutral-light: #F6F8FA;
29
- $paper-dialog-light: #FFFFFF;
30
-
31
- // Dark Theme Colors
32
- $gray-50-dark: #1A1C1E;
33
- $gray-100-dark: #282A2C;
34
- $gray-200-dark: #36383A;
35
- $gray-400-dark: #525456;
36
- $gray-600-dark: #888A8C;
37
- $gray-800-dark: #CCCED0;
38
- $gray-900-dark: #FFFFFF;
39
-
40
- $green-400-dark: #1EEEAF;
41
- $green-500-dark: #54F2C2;
42
- $green-600-dark: #73F4CD;
43
-
44
- $blue-400-dark: #1473FF;
45
- $blue-500-dark: #4C95FF;
46
- $blue-600-dark: #6DA8FF;
47
-
48
- $red-400-dark: #FF4848;
49
- $red-500-dark: #FF7474;
50
- $red-600-dark: #FF8E8E;
51
-
52
- $info-dark: #1473FF;
53
- $success-dark: #1EEEAF;
54
- $error-dark: #FF4848;
55
- $warning-dark: #FFC400;
56
-
57
- $paper-default-dark: #0C0E10;
58
- $paper-neutral-dark: #0C0E10;
59
- $paper-dialog-dark: #1A1C1E;
60
-
61
- // Default (Light Theme) - 간편한 사용을 위한 기본값
62
- $gray-50: $gray-50-light;
63
- $gray-100: $gray-100-light;
64
- $gray-200: $gray-200-light;
65
- $gray-400: $gray-400-light;
66
- $gray-600: $gray-600-light;
67
- $gray-800: $gray-800-light;
68
- $gray-900: $gray-900-light;
69
-
70
- $green-400: $green-400-light;
71
- $green-500: $green-500-light;
72
- $green-600: $green-600-light;
73
-
74
- $blue-400: $blue-400-light;
75
- $blue-500: $blue-500-light;
76
- $blue-600: $blue-600-light;
77
-
78
- $red-400: $red-400-light;
79
- $red-500: $red-500-light;
80
- $red-600: $red-600-light;
81
-
82
- $info: $info-light;
83
- $success: $success-light;
84
- $error: $error-light;
85
- $warning: $warning-light;
86
-
87
- $paper-default: $paper-default-light;
88
- $paper-neutral: $paper-neutral-light;
89
- $paper-dialog: $paper-dialog-light;
@@ -1,81 +0,0 @@
1
- import { Theme } from './colors.types';
2
-
3
- export const lightTheme: Theme = {
4
- colors: {
5
- gray: {
6
- 50: '#F6F8FA',
7
- 100: '#EEF0F2',
8
- 200: '#E6E8EA',
9
- 400: '#CED0D2',
10
- 600: '#86888A',
11
- 800: '#2C2E30',
12
- 900: '#0C0E10',
13
- },
14
- green: {
15
- 400: '#18C792',
16
- 500: '#16B383',
17
- 600: '#12976F',
18
- },
19
- blue: {
20
- 400: '#1473FF',
21
- 500: '#1267E6',
22
- 600: '#0F57C2',
23
- },
24
- red: {
25
- 400: '#EB4242',
26
- 500: '#D43B3B',
27
- 600: '#B33232',
28
- },
29
- },
30
- semantic: {
31
- info: '#1473FF',
32
- success: '#18C792',
33
- error: '#EB4242',
34
- warning: '#F0B800',
35
- },
36
- paper: {
37
- default: '#FFFFFF',
38
- neutral: '#F6F8FA',
39
- dialog: '#FFFFFF',
40
- },
41
- };
42
-
43
- export const darkTheme: Theme = {
44
- colors: {
45
- gray: {
46
- 50: '#1A1C1E',
47
- 100: '#282A2C',
48
- 200: '#36383A',
49
- 400: '#525456',
50
- 600: '#888A8C',
51
- 800: '#CCCED0',
52
- 900: '#FFFFFF',
53
- },
54
- green: {
55
- 400: '#1EEEAF',
56
- 500: '#54F2C2',
57
- 600: '#73F4CD',
58
- },
59
- blue: {
60
- 400: '#1473FF',
61
- 500: '#4C95FF',
62
- 600: '#6DA8FF',
63
- },
64
- red: {
65
- 400: '#FF4848',
66
- 500: '#FF7474',
67
- 600: '#FF8E8E',
68
- },
69
- },
70
- semantic: {
71
- info: '#1473FF',
72
- success: '#1EEEAF',
73
- error: '#FF4848',
74
- warning: '#FFC400',
75
- },
76
- paper: {
77
- default: '#0C0E10',
78
- neutral: '#0C0E10',
79
- dialog: '#1A1C1E',
80
- },
81
- };
@@ -1,48 +0,0 @@
1
- // 간소화된 컬러 타입 (예시용)
2
- export interface ColorScale {
3
- gray: {
4
- 50: string;
5
- 100: string;
6
- 200: string;
7
- 400: string;
8
- 600: string;
9
- 800: string;
10
- 900: string;
11
- };
12
- green: {
13
- 400: string;
14
- 500: string;
15
- 600: string;
16
- };
17
- blue: {
18
- 400: string;
19
- 500: string;
20
- 600: string;
21
- };
22
- red: {
23
- 400: string;
24
- 500: string;
25
- 600: string;
26
- };
27
- }
28
-
29
- export interface SemanticColors {
30
- info: string;
31
- success: string;
32
- error: string;
33
- warning: string;
34
- }
35
-
36
- export interface PaperColors {
37
- default: string;
38
- neutral: string;
39
- dialog: string;
40
- }
41
-
42
- export interface Theme {
43
- colors: ColorScale;
44
- semantic: SemanticColors;
45
- paper: PaperColors;
46
- }
47
-
48
- export type ThemeMode = 'light' | 'dark';
@@ -1,5 +0,0 @@
1
- export { ThemeProvider } from './ThemeProvider';
2
- export type { ThemeProviderProps } from './ThemeProvider';
3
- export { useTheme } from './useTheme';
4
- export { lightTheme, darkTheme } from './colors';
5
- export type { Theme, ThemeMode, ColorScale, SemanticColors, PaperColors } from './colors.types';
@@ -1,4 +0,0 @@
1
- export { ThemeProvider } from './ThemeProvider.web';
2
- export { useTheme } from './useTheme';
3
- export { lightTheme, darkTheme } from './colors';
4
- export type { Theme, ThemeMode, ColorScale, SemanticColors, PaperColors } from './colors.types';
@@ -1,12 +0,0 @@
1
- import { useContext } from 'react';
2
- import { ThemeContext } from './ThemeContext';
3
-
4
- export const useTheme = () => {
5
- const context = useContext(ThemeContext);
6
-
7
- if (!context) {
8
- throw new Error('useTheme must be used within ThemeProvider');
9
- }
10
-
11
- return context;
12
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { AnchorProps } from './Anchor.types';
3
- export declare const Anchor: React.FC<AnchorProps>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Anchor = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const react_native_1 = require("react-native");
9
- const Anchor = ({ children, href, title, onPress, }) => {
10
- const handlePress = () => {
11
- if (onPress) {
12
- onPress();
13
- }
14
- else if (href) {
15
- react_native_1.Linking.openURL(href);
16
- }
17
- };
18
- return (<react_native_1.Pressable onPress={handlePress} accessibilityRole="link" accessibilityLabel={title} accessibilityHint={`Opens ${href}`}>
19
- {({ pressed }) => (<react_native_1.Text style={[styles.anchor, pressed && styles.anchorPressed]}>
20
- {children}
21
- </react_native_1.Text>)}
22
- </react_native_1.Pressable>);
23
- };
24
- exports.Anchor = Anchor;
25
- const styles = react_native_1.StyleSheet.create({
26
- anchor: {
27
- color: '#2196f3',
28
- textDecorationLine: 'none',
29
- },
30
- anchorPressed: {
31
- color: '#1976d2',
32
- textDecorationLine: 'underline',
33
- },
34
- });
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface AnchorProps {
3
- children: ReactNode;
4
- href: string;
5
- rel?: string;
6
- title?: string;
7
- target?: '_blank' | '_self' | '_parent' | '_top';
8
- className?: string;
9
- onPress?: () => void;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { AnchorProps } from './Anchor.types';
3
- export declare const Anchor: React.FC<AnchorProps>;
@@ -1,2 +0,0 @@
1
- export { Anchor } from './Anchor.native';
2
- export type { AnchorProps } from './Anchor.types';
@@ -1,2 +0,0 @@
1
- export { Anchor } from './Anchor.web';
2
- export type { AnchorProps } from './Anchor.types';
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { StatusBarProps } from './StatusBar.types';
3
- export declare const StatusBar: React.FC<StatusBarProps>;
@@ -1,5 +0,0 @@
1
- export interface StatusBarProps {
2
- barStyle?: 'default' | 'light-content' | 'dark-content';
3
- backgroundColor?: string;
4
- hidden?: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export { StatusBar } from './StatusBar';
2
- export type { StatusBarProps } from './StatusBar.types';
@@ -1,3 +0,0 @@
1
- import { StatusBarProps } from './StatusBar.types';
2
- export declare const StatusBar: (_props: StatusBarProps) => null;
3
- export type { StatusBarProps };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { TooltipProps } from './Tooltip.types';
3
- export declare const Tooltip: React.FC<TooltipProps>;
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface TooltipProps {
3
- children: ReactNode;
4
- content: string;
5
- position?: 'top' | 'bottom' | 'left' | 'right';
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export { Tooltip } from './Tooltip';
2
- export type { TooltipProps } from './Tooltip.types';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { TooltipProps } from './Tooltip.types';
3
- export declare const Tooltip: React.FC<TooltipProps>;
4
- export type { TooltipProps };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tooltip = void 0;
4
- // React Native에서는 Tooltip 미지원
5
- // children만 렌더링하고 tooltip은 무시
6
- const Tooltip = ({ children }) => {
7
- if (process.env.NODE_ENV === 'development') {
8
- console.warn('Tooltip is web-only. On React Native, consider using a modal or overlay library.');
9
- }
10
- return children;
11
- };
12
- exports.Tooltip = Tooltip;
@@ -1,7 +0,0 @@
1
- import { Theme, ThemeMode } from './colors.types';
2
- export interface ThemeContextType {
3
- theme: Theme;
4
- mode: ThemeMode;
5
- setMode: (mode: ThemeMode) => void;
6
- }
7
- export declare const ThemeContext: import("react").Context<ThemeContextType>;
@@ -1,2 +0,0 @@
1
- export { ThemeProvider } from './ThemeProvider.native';
2
- export type { ThemeProviderProps } from './ThemeProvider.native';
@@ -1,8 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { ThemeMode } from './colors.types';
3
- export interface ThemeProviderProps {
4
- children: ReactNode;
5
- initialMode?: ThemeMode;
6
- followSystem?: boolean;
7
- }
8
- export declare const ThemeProvider: React.FC<ThemeProviderProps>;
@@ -1,7 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { ThemeMode } from './colors.types';
3
- export interface ThemeProviderProps {
4
- children: ReactNode;
5
- initialMode?: ThemeMode;
6
- }
7
- export declare const ThemeProvider: React.FC<ThemeProviderProps>;
@@ -1,4 +0,0 @@
1
- export { ThemeProvider } from './ThemeProvider.web';
2
- export { useTheme } from './useTheme';
3
- export { lightTheme, darkTheme } from './colors';
4
- export type { Theme, ThemeMode, ColorScale, SemanticColors, PaperColors } from './colors.types';
@@ -1 +0,0 @@
1
- export declare const useTheme: () => import("./ThemeContext").ThemeContextType;