@umituz/react-native-design-system 1.4.3 → 1.7.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/README.md +0 -1
- package/lib/index.d.ts +2 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +17 -22
- package/lib/index.js.map +1 -1
- package/lib/presentation/atoms/AtomicButton.d.ts +1 -1
- package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicButton.js +1 -1
- package/lib/presentation/atoms/AtomicButton.js.map +1 -1
- package/lib/presentation/atoms/AtomicFormError.js +1 -1
- package/lib/presentation/atoms/AtomicFormError.js.map +1 -1
- package/lib/presentation/atoms/AtomicIcon.d.ts +2 -3
- package/lib/presentation/atoms/AtomicIcon.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicIcon.js +1 -1
- package/lib/presentation/atoms/AtomicIcon.js.map +1 -1
- package/lib/presentation/atoms/AtomicTouchable.js.map +1 -1
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +1 -1
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +1 -1
- package/lib/presentation/atoms/index.d.ts +1 -1
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +4 -15
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +1 -1
- package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +1 -1
- package/lib/presentation/hooks/useAppDesignTokens.d.ts +6 -27
- package/lib/presentation/hooks/useAppDesignTokens.d.ts.map +1 -1
- package/lib/presentation/hooks/useAppDesignTokens.js +6 -32
- package/lib/presentation/hooks/useAppDesignTokens.js.map +1 -1
- package/lib/presentation/molecules/AtomicConfirmationModal.d.ts +2 -2
- package/lib/presentation/molecules/AtomicConfirmationModal.d.ts.map +1 -1
- package/lib/presentation/molecules/AtomicConfirmationModal.js +2 -21
- package/lib/presentation/molecules/AtomicConfirmationModal.js.map +1 -1
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +1 -1
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +1 -1
- package/lib/presentation/molecules/confirmation-modal/types/index.d.ts +4 -6
- package/lib/presentation/molecules/confirmation-modal/types/index.d.ts.map +1 -1
- package/lib/presentation/molecules/index.d.ts +0 -1
- package/lib/presentation/molecules/index.d.ts.map +1 -1
- package/lib/presentation/molecules/index.js +0 -1
- package/lib/presentation/molecules/index.js.map +1 -1
- package/lib/presentation/organisms/AppHeader.d.ts +3 -2
- package/lib/presentation/organisms/AppHeader.d.ts.map +1 -1
- package/lib/presentation/organisms/AppHeader.js.map +1 -1
- package/lib/presentation/tokens/commonStyles.d.ts +1 -1
- package/lib/presentation/tokens/commonStyles.js +1 -1
- package/package.json +11 -5
- package/src/index.ts +35 -39
- package/src/presentation/atoms/AtomicBadge.tsx +1 -1
- package/src/presentation/atoms/AtomicButton.tsx +2 -2
- package/src/presentation/atoms/AtomicFormError.tsx +1 -1
- package/src/presentation/atoms/AtomicIcon.tsx +3 -4
- package/src/presentation/atoms/AtomicTouchable.tsx +1 -1
- package/src/presentation/atoms/fab/styles/fabStyles.ts +1 -1
- package/src/presentation/atoms/picker/styles/pickerStyles.ts +25 -5
- package/src/presentation/hooks/useAppDesignTokens.ts +6 -33
- package/src/presentation/molecules/AtomicConfirmationModal.tsx +4 -25
- package/src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts +1 -1
- package/src/presentation/molecules/confirmation-modal/types/index.ts +4 -6
- package/src/presentation/molecules/index.ts +0 -1
- package/src/presentation/organisms/AppHeader.tsx +3 -2
- package/src/presentation/tokens/commonStyles.ts +1 -1
- package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts +0 -91
- package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts.map +0 -1
- package/lib/domains/icons/domain/config/IconLibraryConfig.js +0 -85
- package/lib/domains/icons/domain/config/IconLibraryConfig.js.map +0 -1
- package/lib/domains/icons/domain/entities/Icon.d.ts +0 -111
- package/lib/domains/icons/domain/entities/Icon.d.ts.map +0 -1
- package/lib/domains/icons/domain/entities/Icon.js +0 -87
- package/lib/domains/icons/domain/entities/Icon.js.map +0 -1
- package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts +0 -114
- package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts.map +0 -1
- package/lib/domains/icons/domain/interfaces/IIconAdapter.js +0 -17
- package/lib/domains/icons/domain/interfaces/IIconAdapter.js.map +0 -1
- package/lib/domains/icons/index.d.ts +0 -84
- package/lib/domains/icons/index.d.ts.map +0 -1
- package/lib/domains/icons/index.js +0 -89
- package/lib/domains/icons/index.js.map +0 -1
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts +0 -24
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts.map +0 -1
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js +0 -85
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js.map +0 -1
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts +0 -23
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts.map +0 -1
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js +0 -178
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js.map +0 -1
- package/lib/domains/icons/presentation/components/Icon.d.ts +0 -42
- package/lib/domains/icons/presentation/components/Icon.d.ts.map +0 -1
- package/lib/domains/icons/presentation/components/Icon.js +0 -86
- package/lib/domains/icons/presentation/components/Icon.js.map +0 -1
- package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts +0 -38
- package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts.map +0 -1
- package/lib/domains/icons/presentation/hooks/useIconLibrary.js +0 -114
- package/lib/domains/icons/presentation/hooks/useIconLibrary.js.map +0 -1
- package/lib/infrastructure/theme/globalThemeStore.d.ts +0 -42
- package/lib/infrastructure/theme/globalThemeStore.d.ts.map +0 -1
- package/lib/infrastructure/theme/globalThemeStore.js +0 -38
- package/lib/infrastructure/theme/globalThemeStore.js.map +0 -1
- package/lib/presentation/molecules/LanguageSwitcher.d.ts +0 -10
- package/lib/presentation/molecules/LanguageSwitcher.d.ts.map +0 -1
- package/lib/presentation/molecules/LanguageSwitcher.js +0 -24
- package/lib/presentation/molecules/LanguageSwitcher.js.map +0 -1
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.d.ts +0 -11
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.d.ts.map +0 -1
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.js +0 -6
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.js.map +0 -1
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.d.ts +0 -5
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.d.ts.map +0 -1
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.js +0 -14
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.js.map +0 -1
- package/lib/presentation/tokens/AppDesignTokens.d.ts +0 -14
- package/lib/presentation/tokens/AppDesignTokens.d.ts.map +0 -1
- package/lib/presentation/tokens/AppDesignTokens.js +0 -23
- package/lib/presentation/tokens/AppDesignTokens.js.map +0 -1
- package/lib/presentation/tokens/core/BaseTokens.d.ts +0 -312
- package/lib/presentation/tokens/core/BaseTokens.d.ts.map +0 -1
- package/lib/presentation/tokens/core/BaseTokens.js +0 -307
- package/lib/presentation/tokens/core/BaseTokens.js.map +0 -1
- package/lib/presentation/tokens/core/ColorPalette.d.ts +0 -216
- package/lib/presentation/tokens/core/ColorPalette.d.ts.map +0 -1
- package/lib/presentation/tokens/core/ColorPalette.js +0 -330
- package/lib/presentation/tokens/core/ColorPalette.js.map +0 -1
- package/lib/presentation/tokens/core/TokenFactory.d.ts +0 -216
- package/lib/presentation/tokens/core/TokenFactory.d.ts.map +0 -1
- package/lib/presentation/tokens/core/TokenFactory.js +0 -86
- package/lib/presentation/tokens/core/TokenFactory.js.map +0 -1
- package/src/domains/icons/domain/config/IconLibraryConfig.ts +0 -93
- package/src/domains/icons/domain/entities/Icon.ts +0 -143
- package/src/domains/icons/domain/interfaces/IIconAdapter.ts +0 -147
- package/src/domains/icons/index.ts +0 -109
- package/src/domains/icons/infrastructure/adapters/LucideAdapter.ts +0 -100
- package/src/domains/icons/infrastructure/registries/ExpoIconRegistry.ts +0 -191
- package/src/domains/icons/presentation/components/Icon.tsx +0 -132
- package/src/domains/icons/presentation/hooks/useIconLibrary.ts +0 -141
- package/src/infrastructure/theme/globalThemeStore.ts +0 -51
- package/src/presentation/molecules/LanguageSwitcher.tsx +0 -42
- package/src/presentation/molecules/languageswitcher/config/languageSwitcherConfig.ts +0 -5
- package/src/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.ts +0 -16
- package/src/presentation/tokens/AppDesignTokens.ts +0 -55
- package/src/presentation/tokens/core/BaseTokens.ts +0 -376
- package/src/presentation/tokens/core/ColorPalette.ts +0 -400
- package/src/presentation/tokens/core/TokenFactory.ts +0 -118
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icon Library Configuration
|
|
3
|
-
*
|
|
4
|
-
* 🔧 SINGLE SOURCE OF TRUTH FOR ICON LIBRARY SELECTION
|
|
5
|
-
*
|
|
6
|
-
* To change icon library:
|
|
7
|
-
* 1. Update package.json with new library
|
|
8
|
-
* 2. Change CURRENT_LIBRARY below
|
|
9
|
-
* 3. Create adapter if needed (infrastructure/adapters/)
|
|
10
|
-
* 4. Done! All apps automatically use new library
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // Switch to Material Icons:
|
|
14
|
-
* export const CURRENT_LIBRARY: IconLibraryType = 'material';
|
|
15
|
-
*/
|
|
16
|
-
export type IconLibraryType = 'lucide' | 'material' | 'fontawesome' | 'ionicons';
|
|
17
|
-
/**
|
|
18
|
-
* 🔧 CHANGE THIS TO SWITCH ICON LIBRARY
|
|
19
|
-
*/
|
|
20
|
-
export declare const CURRENT_LIBRARY: IconLibraryType;
|
|
21
|
-
/**
|
|
22
|
-
* Icon Library Configuration
|
|
23
|
-
*/
|
|
24
|
-
export declare const ICON_LIBRARY_CONFIG: {
|
|
25
|
-
/**
|
|
26
|
-
* Current icon library in use
|
|
27
|
-
*/
|
|
28
|
-
readonly library: "lucide";
|
|
29
|
-
/**
|
|
30
|
-
* Default icon size (in pixels)
|
|
31
|
-
*/
|
|
32
|
-
readonly defaultSize: 24;
|
|
33
|
-
/**
|
|
34
|
-
* Default stroke width for outline icons
|
|
35
|
-
*/
|
|
36
|
-
readonly defaultStrokeWidth: 2;
|
|
37
|
-
/**
|
|
38
|
-
* Library metadata
|
|
39
|
-
*/
|
|
40
|
-
readonly libraries: {
|
|
41
|
-
readonly lucide: {
|
|
42
|
-
readonly name: "Lucide";
|
|
43
|
-
readonly package: "lucide-react-native";
|
|
44
|
-
readonly version: "^0.468.0";
|
|
45
|
-
readonly iconCount: 1639;
|
|
46
|
-
readonly type: "outline";
|
|
47
|
-
readonly adapter: "LucideAdapter";
|
|
48
|
-
};
|
|
49
|
-
readonly material: {
|
|
50
|
-
readonly name: "Material Icons";
|
|
51
|
-
readonly package: "@expo/vector-icons";
|
|
52
|
-
readonly version: "^14.0.0";
|
|
53
|
-
readonly iconCount: 2000;
|
|
54
|
-
readonly type: "filled";
|
|
55
|
-
readonly adapter: "MaterialAdapter";
|
|
56
|
-
};
|
|
57
|
-
readonly fontawesome: {
|
|
58
|
-
readonly name: "Font Awesome";
|
|
59
|
-
readonly package: "@expo/vector-icons";
|
|
60
|
-
readonly version: "^14.0.0";
|
|
61
|
-
readonly iconCount: 1500;
|
|
62
|
-
readonly type: "solid";
|
|
63
|
-
readonly adapter: "FontAwesomeAdapter";
|
|
64
|
-
};
|
|
65
|
-
readonly ionicons: {
|
|
66
|
-
readonly name: "Ionicons";
|
|
67
|
-
readonly package: "@expo/vector-icons";
|
|
68
|
-
readonly version: "^14.0.0";
|
|
69
|
-
readonly iconCount: 1300;
|
|
70
|
-
readonly type: "outline";
|
|
71
|
-
readonly adapter: "IoniconsAdapter";
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Get current library metadata
|
|
77
|
-
*/
|
|
78
|
-
export declare const getCurrentLibrary: () => {
|
|
79
|
-
readonly name: "Lucide";
|
|
80
|
-
readonly package: "lucide-react-native";
|
|
81
|
-
readonly version: "^0.468.0";
|
|
82
|
-
readonly iconCount: 1639;
|
|
83
|
-
readonly type: "outline";
|
|
84
|
-
readonly adapter: "LucideAdapter";
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Type-safe library check
|
|
88
|
-
* Factory uses Lucide icons only
|
|
89
|
-
*/
|
|
90
|
-
export declare const isLucideLibrary: () => boolean;
|
|
91
|
-
//# sourceMappingURL=IconLibraryConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconLibraryConfig.d.ts","sourceRoot":"","sources":["../../../../../src/domains/icons/domain/config/IconLibraryConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,UAAU,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,eAA0B,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCK,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAE7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,eAAa,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icon Library Configuration
|
|
3
|
-
*
|
|
4
|
-
* 🔧 SINGLE SOURCE OF TRUTH FOR ICON LIBRARY SELECTION
|
|
5
|
-
*
|
|
6
|
-
* To change icon library:
|
|
7
|
-
* 1. Update package.json with new library
|
|
8
|
-
* 2. Change CURRENT_LIBRARY below
|
|
9
|
-
* 3. Create adapter if needed (infrastructure/adapters/)
|
|
10
|
-
* 4. Done! All apps automatically use new library
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // Switch to Material Icons:
|
|
14
|
-
* export const CURRENT_LIBRARY: IconLibraryType = 'material';
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* 🔧 CHANGE THIS TO SWITCH ICON LIBRARY
|
|
18
|
-
*/
|
|
19
|
-
export const CURRENT_LIBRARY = 'lucide';
|
|
20
|
-
/**
|
|
21
|
-
* Icon Library Configuration
|
|
22
|
-
*/
|
|
23
|
-
export const ICON_LIBRARY_CONFIG = {
|
|
24
|
-
/**
|
|
25
|
-
* Current icon library in use
|
|
26
|
-
*/
|
|
27
|
-
library: CURRENT_LIBRARY,
|
|
28
|
-
/**
|
|
29
|
-
* Default icon size (in pixels)
|
|
30
|
-
*/
|
|
31
|
-
defaultSize: 24,
|
|
32
|
-
/**
|
|
33
|
-
* Default stroke width for outline icons
|
|
34
|
-
*/
|
|
35
|
-
defaultStrokeWidth: 2,
|
|
36
|
-
/**
|
|
37
|
-
* Library metadata
|
|
38
|
-
*/
|
|
39
|
-
libraries: {
|
|
40
|
-
lucide: {
|
|
41
|
-
name: 'Lucide',
|
|
42
|
-
package: 'lucide-react-native',
|
|
43
|
-
version: '^0.468.0',
|
|
44
|
-
iconCount: 1639,
|
|
45
|
-
type: 'outline',
|
|
46
|
-
adapter: 'LucideAdapter',
|
|
47
|
-
},
|
|
48
|
-
material: {
|
|
49
|
-
name: 'Material Icons',
|
|
50
|
-
package: '@expo/vector-icons',
|
|
51
|
-
version: '^14.0.0',
|
|
52
|
-
iconCount: 2000,
|
|
53
|
-
type: 'filled',
|
|
54
|
-
adapter: 'MaterialAdapter',
|
|
55
|
-
},
|
|
56
|
-
fontawesome: {
|
|
57
|
-
name: 'Font Awesome',
|
|
58
|
-
package: '@expo/vector-icons',
|
|
59
|
-
version: '^14.0.0',
|
|
60
|
-
iconCount: 1500,
|
|
61
|
-
type: 'solid',
|
|
62
|
-
adapter: 'FontAwesomeAdapter',
|
|
63
|
-
},
|
|
64
|
-
ionicons: {
|
|
65
|
-
name: 'Ionicons',
|
|
66
|
-
package: '@expo/vector-icons',
|
|
67
|
-
version: '^14.0.0',
|
|
68
|
-
iconCount: 1300,
|
|
69
|
-
type: 'outline',
|
|
70
|
-
adapter: 'IoniconsAdapter',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Get current library metadata
|
|
76
|
-
*/
|
|
77
|
-
export const getCurrentLibrary = () => {
|
|
78
|
-
return ICON_LIBRARY_CONFIG.libraries[CURRENT_LIBRARY];
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Type-safe library check
|
|
82
|
-
* Factory uses Lucide icons only
|
|
83
|
-
*/
|
|
84
|
-
export const isLucideLibrary = () => true;
|
|
85
|
-
//# sourceMappingURL=IconLibraryConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconLibraryConfig.js","sourceRoot":"","sources":["../../../../../src/domains/icons/domain/config/IconLibraryConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB,QAAQ,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,eAAe;IAExB;;OAEG;IACH,WAAW,EAAE,EAAE;IAEf;;OAEG;IACH,kBAAkB,EAAE,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE;QACT,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,qBAAqB;YAC9B,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,eAAe;SACzB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,oBAAoB;YAC7B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,iBAAiB;SAC3B;QACD,WAAW,EAAE;YACX,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,oBAAoB;YAC7B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,oBAAoB;SAC9B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,oBAAoB;YAC7B,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,iBAAiB;SAC3B;KACF;CACO,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,OAAO,mBAAmB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icons Domain - Entities
|
|
3
|
-
*
|
|
4
|
-
* Core icon types and interfaces for the App Factory.
|
|
5
|
-
* Provides unified access to Lucide icons (design-system) + Expo vector icons.
|
|
6
|
-
*
|
|
7
|
-
* @domain icons
|
|
8
|
-
* @layer domain
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Icon library types
|
|
12
|
-
* - lucide: Lucide React Native icons (already in design-system/AtomicIcon)
|
|
13
|
-
* - material: Material Design icons (@expo/vector-icons)
|
|
14
|
-
* - fontawesome: FontAwesome icons (@expo/vector-icons)
|
|
15
|
-
* - ionicons: Ionicons (@expo/vector-icons)
|
|
16
|
-
*/
|
|
17
|
-
export declare enum IconLibrary {
|
|
18
|
-
LUCIDE = "lucide",
|
|
19
|
-
MATERIAL = "material",
|
|
20
|
-
FONTAWESOME = "fontawesome",
|
|
21
|
-
IONICONS = "ionicons"
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Icon category for organization
|
|
25
|
-
*/
|
|
26
|
-
export declare enum IconCategory {
|
|
27
|
-
ALL = "all",
|
|
28
|
-
NAVIGATION = "navigation",
|
|
29
|
-
ACTION = "action",
|
|
30
|
-
SOCIAL = "social",
|
|
31
|
-
COMMUNICATION = "communication",
|
|
32
|
-
MEDIA = "media",
|
|
33
|
-
BUSINESS = "business",
|
|
34
|
-
WEATHER = "weather",
|
|
35
|
-
SYMBOLS = "symbols",
|
|
36
|
-
EMOJI = "emoji"
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Icon metadata for registry
|
|
40
|
-
*/
|
|
41
|
-
export interface IconMetadata {
|
|
42
|
-
name: string;
|
|
43
|
-
library: IconLibrary;
|
|
44
|
-
category: IconCategory;
|
|
45
|
-
tags: string[];
|
|
46
|
-
searchTerms: string[];
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Icon registry interface
|
|
50
|
-
*/
|
|
51
|
-
export interface IIconRegistry {
|
|
52
|
-
/**
|
|
53
|
-
* Get all icons in the library
|
|
54
|
-
*/
|
|
55
|
-
getAllIcons(): IconMetadata[];
|
|
56
|
-
/**
|
|
57
|
-
* Get icons by category
|
|
58
|
-
*/
|
|
59
|
-
getIconsByCategory(category: IconCategory): IconMetadata[];
|
|
60
|
-
/**
|
|
61
|
-
* Search icons by query
|
|
62
|
-
*/
|
|
63
|
-
searchIcons(query: string): IconMetadata[];
|
|
64
|
-
/**
|
|
65
|
-
* Get icon metadata by name
|
|
66
|
-
*/
|
|
67
|
-
getIconMetadata(name: string): IconMetadata | null;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Icon picker configuration
|
|
71
|
-
*/
|
|
72
|
-
export interface IconPickerConfig {
|
|
73
|
-
libraries: IconLibrary[];
|
|
74
|
-
categories: IconCategory[];
|
|
75
|
-
showSearch: boolean;
|
|
76
|
-
multiSelect: boolean;
|
|
77
|
-
maxSelections?: number;
|
|
78
|
-
onSelect: (icons: IconMetadata[]) => void;
|
|
79
|
-
onCancel?: () => void;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Icon constants
|
|
83
|
-
*/
|
|
84
|
-
export declare const ICON_CONSTANTS: {
|
|
85
|
-
readonly DEFAULT_SIZE: 24;
|
|
86
|
-
readonly DEFAULT_COLOR: "onSurface";
|
|
87
|
-
readonly DEFAULT_LIBRARY: IconLibrary.LUCIDE;
|
|
88
|
-
readonly MAX_SEARCH_RESULTS: 50;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Icon utility functions
|
|
92
|
-
*/
|
|
93
|
-
export declare const IconUtils: {
|
|
94
|
-
/**
|
|
95
|
-
* Normalize icon name for search
|
|
96
|
-
*/
|
|
97
|
-
normalizeIconName: (name: string) => string;
|
|
98
|
-
/**
|
|
99
|
-
* Match search query against icon metadata
|
|
100
|
-
*/
|
|
101
|
-
matchesSearch: (icon: IconMetadata, query: string) => boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Filter icons by category
|
|
104
|
-
*/
|
|
105
|
-
filterByCategory: (icons: IconMetadata[], category: IconCategory) => IconMetadata[];
|
|
106
|
-
/**
|
|
107
|
-
* Sort icons alphabetically
|
|
108
|
-
*/
|
|
109
|
-
sortByName: (icons: IconMetadata[]) => IconMetadata[];
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/domains/icons/domain/entities/Icon.ts"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AEG;AACH,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,SAAS;IACpB;;OAEG;8BACuB,MAAM,KAAG,MAAM;IAIzC;;OAEG;0BACmB,YAAY,SAAS,MAAM,KAAG,OAAO;IAa3D;;OAEG;8BACuB,YAAY,EAAE,YAAY,YAAY,KAAG,YAAY,EAAE;IAOjF;;OAEG;wBACiB,YAAY,EAAE,KAAG,YAAY,EAAE;CAGpD,CAAC"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icons Domain - Entities
|
|
3
|
-
*
|
|
4
|
-
* Core icon types and interfaces for the App Factory.
|
|
5
|
-
* Provides unified access to Lucide icons (design-system) + Expo vector icons.
|
|
6
|
-
*
|
|
7
|
-
* @domain icons
|
|
8
|
-
* @layer domain
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Icon library types
|
|
12
|
-
* - lucide: Lucide React Native icons (already in design-system/AtomicIcon)
|
|
13
|
-
* - material: Material Design icons (@expo/vector-icons)
|
|
14
|
-
* - fontawesome: FontAwesome icons (@expo/vector-icons)
|
|
15
|
-
* - ionicons: Ionicons (@expo/vector-icons)
|
|
16
|
-
*/
|
|
17
|
-
export var IconLibrary;
|
|
18
|
-
(function (IconLibrary) {
|
|
19
|
-
IconLibrary["LUCIDE"] = "lucide";
|
|
20
|
-
IconLibrary["MATERIAL"] = "material";
|
|
21
|
-
IconLibrary["FONTAWESOME"] = "fontawesome";
|
|
22
|
-
IconLibrary["IONICONS"] = "ionicons";
|
|
23
|
-
})(IconLibrary || (IconLibrary = {}));
|
|
24
|
-
/**
|
|
25
|
-
* Icon category for organization
|
|
26
|
-
*/
|
|
27
|
-
export var IconCategory;
|
|
28
|
-
(function (IconCategory) {
|
|
29
|
-
IconCategory["ALL"] = "all";
|
|
30
|
-
IconCategory["NAVIGATION"] = "navigation";
|
|
31
|
-
IconCategory["ACTION"] = "action";
|
|
32
|
-
IconCategory["SOCIAL"] = "social";
|
|
33
|
-
IconCategory["COMMUNICATION"] = "communication";
|
|
34
|
-
IconCategory["MEDIA"] = "media";
|
|
35
|
-
IconCategory["BUSINESS"] = "business";
|
|
36
|
-
IconCategory["WEATHER"] = "weather";
|
|
37
|
-
IconCategory["SYMBOLS"] = "symbols";
|
|
38
|
-
IconCategory["EMOJI"] = "emoji";
|
|
39
|
-
})(IconCategory || (IconCategory = {}));
|
|
40
|
-
/**
|
|
41
|
-
* Icon constants
|
|
42
|
-
*/
|
|
43
|
-
export const ICON_CONSTANTS = {
|
|
44
|
-
DEFAULT_SIZE: 24,
|
|
45
|
-
DEFAULT_COLOR: 'onSurface',
|
|
46
|
-
DEFAULT_LIBRARY: IconLibrary.LUCIDE,
|
|
47
|
-
MAX_SEARCH_RESULTS: 50,
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Icon utility functions
|
|
51
|
-
*/
|
|
52
|
-
export const IconUtils = {
|
|
53
|
-
/**
|
|
54
|
-
* Normalize icon name for search
|
|
55
|
-
*/
|
|
56
|
-
normalizeIconName: (name) => {
|
|
57
|
-
return name.toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* Match search query against icon metadata
|
|
61
|
-
*/
|
|
62
|
-
matchesSearch: (icon, query) => {
|
|
63
|
-
const normalizedQuery = IconUtils.normalizeIconName(query);
|
|
64
|
-
const normalizedName = IconUtils.normalizeIconName(icon.name);
|
|
65
|
-
const normalizedTags = icon.tags.map(tag => IconUtils.normalizeIconName(tag));
|
|
66
|
-
const normalizedTerms = icon.searchTerms.map(term => IconUtils.normalizeIconName(term));
|
|
67
|
-
return (normalizedName.includes(normalizedQuery) ||
|
|
68
|
-
normalizedTags.some(tag => tag.includes(normalizedQuery)) ||
|
|
69
|
-
normalizedTerms.some(term => term.includes(normalizedQuery)));
|
|
70
|
-
},
|
|
71
|
-
/**
|
|
72
|
-
* Filter icons by category
|
|
73
|
-
*/
|
|
74
|
-
filterByCategory: (icons, category) => {
|
|
75
|
-
if (category === IconCategory.ALL) {
|
|
76
|
-
return icons;
|
|
77
|
-
}
|
|
78
|
-
return icons.filter(icon => icon.category === category);
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* Sort icons alphabetically
|
|
82
|
-
*/
|
|
83
|
-
sortByName: (icons) => {
|
|
84
|
-
return [...icons].sort((a, b) => a.name.localeCompare(b.name));
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../../src/domains/icons/domain/entities/Icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;AACvB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,yCAAyB,CAAA;IACzB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,+CAA+B,CAAA;IAC/B,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EAXW,YAAY,KAAZ,YAAY,QAWvB;AAmDD;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE,WAAW;IAC1B,eAAe,EAAE,WAAW,CAAC,MAAM;IACnC,kBAAkB,EAAE,EAAE;CACd,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;;OAEG;IACH,iBAAiB,EAAE,CAAC,IAA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,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,CAAC;CACF,CAAC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icon Adapter Interface
|
|
3
|
-
*
|
|
4
|
-
* Universal interface that all icon library adapters must implement.
|
|
5
|
-
* This allows seamless switching between icon libraries.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // Implementing for a new library:
|
|
9
|
-
* export const MyLibraryAdapter: IIconAdapter = {
|
|
10
|
-
* getIconComponent: (name) => MyIcons[name],
|
|
11
|
-
* getIconSize: (size) => sizeMap[size],
|
|
12
|
-
* getIconColor: (color, tokens) => colorMap[color],
|
|
13
|
-
* getAllIcons: () => Object.keys(MyIcons),
|
|
14
|
-
* };
|
|
15
|
-
*/
|
|
16
|
-
import type { ComponentType } from 'react';
|
|
17
|
-
import type { ViewStyle } from 'react-native';
|
|
18
|
-
import type { DesignTokens } from '../../../../presentation/tokens/core/TokenFactory';
|
|
19
|
-
export type IconName = string;
|
|
20
|
-
export type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
21
|
-
export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'onSurface' | 'surfaceVariant' | 'onPrimary' | 'onSecondary' | 'textInverse';
|
|
22
|
-
/**
|
|
23
|
-
* Icon Adapter Interface
|
|
24
|
-
* All icon library adapters must implement this interface
|
|
25
|
-
*/
|
|
26
|
-
export interface IIconAdapter {
|
|
27
|
-
/**
|
|
28
|
-
* Get the icon component for a given icon name
|
|
29
|
-
* @param name - Icon name (library-specific)
|
|
30
|
-
* @returns Icon component or null if not found
|
|
31
|
-
*/
|
|
32
|
-
getIconComponent: (name: string) => ComponentType<any> | null;
|
|
33
|
-
/**
|
|
34
|
-
* Convert semantic size to pixel size
|
|
35
|
-
* @param size - Semantic size (xs, sm, md, lg, xl, xxl)
|
|
36
|
-
* @param customSize - Optional custom pixel size
|
|
37
|
-
* @returns Pixel size
|
|
38
|
-
*/
|
|
39
|
-
getIconSize: (size: IconSize, customSize?: number) => number;
|
|
40
|
-
/**
|
|
41
|
-
* Convert semantic color to hex color
|
|
42
|
-
* @param color - Semantic color name
|
|
43
|
-
* @param tokens - Design tokens for theme colors
|
|
44
|
-
* @param customColor - Optional custom hex color
|
|
45
|
-
* @returns Hex color string
|
|
46
|
-
*/
|
|
47
|
-
getIconColor: (color: IconColor, tokens: DesignTokens, customColor?: string) => string;
|
|
48
|
-
/**
|
|
49
|
-
* Get all available icon names for this library
|
|
50
|
-
* @returns Array of icon names
|
|
51
|
-
*/
|
|
52
|
-
getAllIcons: () => string[];
|
|
53
|
-
/**
|
|
54
|
-
* Check if an icon exists in the library
|
|
55
|
-
* @param name - Icon name to check
|
|
56
|
-
* @returns True if icon exists
|
|
57
|
-
*/
|
|
58
|
-
hasIcon: (name: string) => boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Get default stroke width for outline icons
|
|
61
|
-
* @returns Stroke width number
|
|
62
|
-
*/
|
|
63
|
-
getStrokeWidth?: () => number;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Icon Props - Universal props for Icon component
|
|
67
|
-
*/
|
|
68
|
-
export interface IconProps {
|
|
69
|
-
/**
|
|
70
|
-
* Icon name (library-specific)
|
|
71
|
-
*/
|
|
72
|
-
name: string;
|
|
73
|
-
/**
|
|
74
|
-
* Icon size preset
|
|
75
|
-
*/
|
|
76
|
-
size?: IconSize;
|
|
77
|
-
/**
|
|
78
|
-
* Custom pixel size (overrides size preset)
|
|
79
|
-
*/
|
|
80
|
-
customSize?: number;
|
|
81
|
-
/**
|
|
82
|
-
* Semantic color
|
|
83
|
-
*/
|
|
84
|
-
color?: IconColor;
|
|
85
|
-
/**
|
|
86
|
-
* Custom hex color (overrides semantic color)
|
|
87
|
-
*/
|
|
88
|
-
customColor?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Stroke width for outline icons
|
|
91
|
-
*/
|
|
92
|
-
strokeWidth?: number;
|
|
93
|
-
/**
|
|
94
|
-
* Background circle for icon
|
|
95
|
-
*/
|
|
96
|
-
withBackground?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Background color
|
|
99
|
-
*/
|
|
100
|
-
backgroundColor?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Accessibility label
|
|
103
|
-
*/
|
|
104
|
-
accessibilityLabel?: string;
|
|
105
|
-
/**
|
|
106
|
-
* Test ID
|
|
107
|
-
*/
|
|
108
|
-
testID?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Custom styles
|
|
111
|
-
*/
|
|
112
|
-
style?: ViewStyle;
|
|
113
|
-
}
|
|
114
|
-
//# sourceMappingURL=IIconAdapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IIconAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/domains/icons/domain/interfaces/IIconAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAEtF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAChE,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,aAAa,GACb,aAAa,CAAC;AAElB;;;GAGG;AACH,MAAM,WAAW,YAAY;I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ters must implement.
|
|
5
|
-
* This allows seamless switching between icon libraries.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // Implementing for a new library:
|
|
9
|
-
* export const MyLibraryAdapter: IIconAdapter = {
|
|
10
|
-
* getIconComponent: (name) => MyIcons[name],
|
|
11
|
-
* getIconSize: (size) => sizeMap[size],
|
|
12
|
-
* getIconColor: (color, tokens) => colorMap[color],
|
|
13
|
-
* getAllIcons: () => Object.keys(MyIcons),
|
|
14
|
-
* };
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=IIconAdapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IIconAdapter.js","sourceRoot":"","sources":["../../../../../src/domains/icons/domain/interfaces/IIconAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icons Domain - Centralized Icon System
|
|
3
|
-
*
|
|
4
|
-
* 🎯 SINGLE SOURCE OF TRUTH FOR ALL ICONS
|
|
5
|
-
*
|
|
6
|
-
* Universal icon library system with easy library switching.
|
|
7
|
-
* Change icon library = change one config file!
|
|
8
|
-
*
|
|
9
|
-
* @domain icons
|
|
10
|
-
* @enabled true (All apps)
|
|
11
|
-
*
|
|
12
|
-
* ARCHITECTURE:
|
|
13
|
-
* ```
|
|
14
|
-
* domains/icons/
|
|
15
|
-
* ├── domain/
|
|
16
|
-
* │ ├── config/
|
|
17
|
-
* │ │ └── IconLibraryConfig.ts 🔧 Change library here!
|
|
18
|
-
* │ └── interfaces/
|
|
19
|
-
* │ └── IIconAdapter.ts Interface for adapters
|
|
20
|
-
* ├── infrastructure/
|
|
21
|
-
* │ └── adapters/
|
|
22
|
-
* │ ├── LucideAdapter.ts Current: Lucide (1,639 icons)
|
|
23
|
-
* │ ├── MaterialAdapter.ts Future: Material Icons
|
|
24
|
-
* │ └── FontAwesomeAdapter.ts Future: Font Awesome
|
|
25
|
-
* └── presentation/
|
|
26
|
-
* └── components/
|
|
27
|
-
* └── Icon.tsx Universal Icon component
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* USAGE:
|
|
31
|
-
* ```typescript
|
|
32
|
-
* import { Icon } from '@domains/icons';
|
|
33
|
-
*
|
|
34
|
-
* // Basic usage
|
|
35
|
-
* <Icon name="Settings" size="md" color="primary" />
|
|
36
|
-
*
|
|
37
|
-
* // Custom size and color
|
|
38
|
-
* <Icon name="Heart" customSize={32} customColor="#FF0000" />
|
|
39
|
-
*
|
|
40
|
-
* // With background
|
|
41
|
-
* <Icon name="Info" size="lg" withBackground backgroundColor="#667eea" />
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* 🔧 TO CHANGE ICON LIBRARY:
|
|
45
|
-
*
|
|
46
|
-
* Step 1: Update package.json
|
|
47
|
-
* ```json
|
|
48
|
-
* {
|
|
49
|
-
* "dependencies": {
|
|
50
|
-
* "new-icon-library": "^1.0.0"
|
|
51
|
-
* }
|
|
52
|
-
* }
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* Step 2: Change CURRENT_LIBRARY in domain/config/IconLibraryConfig.ts
|
|
56
|
-
* ```typescript
|
|
57
|
-
* export const CURRENT_LIBRARY: IconLibraryType = 'material'; // Changed!
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* Step 3: Create adapter (if needed)
|
|
61
|
-
* ```typescript
|
|
62
|
-
* // infrastructure/adapters/MaterialAdapter.ts
|
|
63
|
-
* export const MaterialAdapter: IIconAdapter = {
|
|
64
|
-
* getIconComponent: (name) => MaterialIcons[name],
|
|
65
|
-
* // ... implement interface
|
|
66
|
-
* };
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* Step 4: Done! All apps use new library automatically ✅
|
|
70
|
-
*
|
|
71
|
-
* CURRENT LIBRARY: Lucide (1,639 icons)
|
|
72
|
-
* @see https://lucide.dev/icons/
|
|
73
|
-
*
|
|
74
|
-
* DEPENDENCIES:
|
|
75
|
-
* - lucide-react-native: ^0.468.0 (Current library)
|
|
76
|
-
*/
|
|
77
|
-
export { Icon } from './presentation/components/Icon';
|
|
78
|
-
export type { IconProps, IconSize, IconColor, IconName, } from './presentation/components/Icon';
|
|
79
|
-
export { CURRENT_LIBRARY, ICON_LIBRARY_CONFIG, getCurrentLibrary, isLucideLibrary, } from './domain/config/IconLibraryConfig';
|
|
80
|
-
export type { IconLibraryType } from './domain/config/IconLibraryConfig';
|
|
81
|
-
export type { IIconAdapter } from './domain/interfaces/IIconAdapter';
|
|
82
|
-
export { LucideAdapter } from './infrastructure/adapters/LucideAdapter';
|
|
83
|
-
export type { LucideIconName } from './infrastructure/adapters/LucideAdapter';
|
|
84
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/icons/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAMH,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,YAAY,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAMrE,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,YAAY,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC"}
|