@umituz/react-native-design-system 1.5.0 → 1.5.1

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 (209) hide show
  1. package/lib/index.d.ts +4 -4
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +13 -11
  4. package/lib/index.js.map +1 -1
  5. package/lib/presentation/atoms/AtomicAvatar.js +1 -1
  6. package/lib/presentation/atoms/AtomicAvatar.js.map +1 -1
  7. package/lib/presentation/atoms/AtomicAvatarGroup.js +1 -1
  8. package/lib/presentation/atoms/AtomicAvatarGroup.js.map +1 -1
  9. package/lib/presentation/atoms/AtomicBadge.js +1 -1
  10. package/lib/presentation/atoms/AtomicBadge.js.map +1 -1
  11. package/lib/presentation/atoms/AtomicButton.d.ts +1 -1
  12. package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -1
  13. package/lib/presentation/atoms/AtomicButton.js +2 -2
  14. package/lib/presentation/atoms/AtomicButton.js.map +1 -1
  15. package/lib/presentation/atoms/AtomicCard.js +1 -1
  16. package/lib/presentation/atoms/AtomicCard.js.map +1 -1
  17. package/lib/presentation/atoms/AtomicChip.js +1 -1
  18. package/lib/presentation/atoms/AtomicChip.js.map +1 -1
  19. package/lib/presentation/atoms/AtomicDatePicker.js +1 -1
  20. package/lib/presentation/atoms/AtomicDatePicker.js.map +1 -1
  21. package/lib/presentation/atoms/AtomicDivider.js +1 -1
  22. package/lib/presentation/atoms/AtomicDivider.js.map +1 -1
  23. package/lib/presentation/atoms/AtomicFab.js +1 -1
  24. package/lib/presentation/atoms/AtomicFab.js.map +1 -1
  25. package/lib/presentation/atoms/AtomicFilter.js +1 -1
  26. package/lib/presentation/atoms/AtomicFilter.js.map +1 -1
  27. package/lib/presentation/atoms/AtomicFormError.js +2 -2
  28. package/lib/presentation/atoms/AtomicFormError.js.map +1 -1
  29. package/lib/presentation/atoms/AtomicIcon.d.ts +2 -3
  30. package/lib/presentation/atoms/AtomicIcon.d.ts.map +1 -1
  31. package/lib/presentation/atoms/AtomicIcon.js +1 -1
  32. package/lib/presentation/atoms/AtomicIcon.js.map +1 -1
  33. package/lib/presentation/atoms/AtomicImage.js +1 -1
  34. package/lib/presentation/atoms/AtomicImage.js.map +1 -1
  35. package/lib/presentation/atoms/AtomicInput.js +1 -1
  36. package/lib/presentation/atoms/AtomicInput.js.map +1 -1
  37. package/lib/presentation/atoms/AtomicPicker.js +1 -1
  38. package/lib/presentation/atoms/AtomicPicker.js.map +1 -1
  39. package/lib/presentation/atoms/AtomicProgress.js +1 -1
  40. package/lib/presentation/atoms/AtomicProgress.js.map +1 -1
  41. package/lib/presentation/atoms/AtomicSearchBar.js +1 -1
  42. package/lib/presentation/atoms/AtomicSearchBar.js.map +1 -1
  43. package/lib/presentation/atoms/AtomicSort.js +1 -1
  44. package/lib/presentation/atoms/AtomicSort.js.map +1 -1
  45. package/lib/presentation/atoms/AtomicSwitch.js +1 -1
  46. package/lib/presentation/atoms/AtomicSwitch.js.map +1 -1
  47. package/lib/presentation/atoms/AtomicText.d.ts +21 -1
  48. package/lib/presentation/atoms/AtomicText.d.ts.map +1 -1
  49. package/lib/presentation/atoms/AtomicText.js +31 -10
  50. package/lib/presentation/atoms/AtomicText.js.map +1 -1
  51. package/lib/presentation/atoms/AtomicTextArea.js +1 -1
  52. package/lib/presentation/atoms/AtomicTextArea.js.map +1 -1
  53. package/lib/presentation/atoms/AtomicTouchable.js +1 -1
  54. package/lib/presentation/atoms/AtomicTouchable.js.map +1 -1
  55. package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +1 -1
  56. package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +1 -1
  57. package/lib/presentation/atoms/index.d.ts +1 -1
  58. package/lib/presentation/atoms/input/styles/inputStyles.d.ts +1 -1
  59. package/lib/presentation/atoms/input/styles/inputStyles.d.ts.map +1 -1
  60. package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +12 -23
  61. package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +1 -1
  62. package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +1 -1
  63. package/lib/presentation/molecules/AtomicConfirmationModal.js +1 -1
  64. package/lib/presentation/molecules/AtomicConfirmationModal.js.map +1 -1
  65. package/lib/presentation/molecules/EmptyState.js +1 -1
  66. package/lib/presentation/molecules/EmptyState.js.map +1 -1
  67. package/lib/presentation/molecules/FormField.js +1 -1
  68. package/lib/presentation/molecules/FormField.js.map +1 -1
  69. package/lib/presentation/molecules/IconContainer.js +1 -1
  70. package/lib/presentation/molecules/IconContainer.js.map +1 -1
  71. package/lib/presentation/molecules/ListItem.js +1 -1
  72. package/lib/presentation/molecules/ListItem.js.map +1 -1
  73. package/lib/presentation/molecules/ScreenHeader.js +1 -1
  74. package/lib/presentation/molecules/ScreenHeader.js.map +1 -1
  75. package/lib/presentation/molecules/SearchBar.js +1 -1
  76. package/lib/presentation/molecules/SearchBar.js.map +1 -1
  77. package/lib/presentation/molecules/SectionCard.js +1 -1
  78. package/lib/presentation/molecules/SectionCard.js.map +1 -1
  79. package/lib/presentation/molecules/SectionContainer.js +1 -1
  80. package/lib/presentation/molecules/SectionContainer.js.map +1 -1
  81. package/lib/presentation/molecules/SectionHeader.js +1 -1
  82. package/lib/presentation/molecules/SectionHeader.js.map +1 -1
  83. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +1 -1
  84. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +1 -1
  85. package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts +1 -1
  86. package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts.map +1 -1
  87. package/lib/presentation/organisms/AppHeader.d.ts +3 -2
  88. package/lib/presentation/organisms/AppHeader.d.ts.map +1 -1
  89. package/lib/presentation/organisms/AppHeader.js +1 -1
  90. package/lib/presentation/organisms/AppHeader.js.map +1 -1
  91. package/lib/presentation/organisms/FormContainer.js +1 -1
  92. package/lib/presentation/organisms/FormContainer.js.map +1 -1
  93. package/lib/presentation/organisms/ScreenLayout.js +1 -1
  94. package/lib/presentation/organisms/ScreenLayout.js.map +1 -1
  95. package/lib/presentation/tokens/commonStyles.js +1 -1
  96. package/lib/presentation/tokens/commonStyles.js.map +1 -1
  97. package/package.json +1 -1
  98. package/src/index.ts +16 -16
  99. package/src/presentation/atoms/AtomicAvatar.tsx +1 -1
  100. package/src/presentation/atoms/AtomicAvatarGroup.tsx +1 -1
  101. package/src/presentation/atoms/AtomicBadge.tsx +2 -2
  102. package/src/presentation/atoms/AtomicButton.tsx +3 -3
  103. package/src/presentation/atoms/AtomicCard.tsx +1 -1
  104. package/src/presentation/atoms/AtomicChip.tsx +1 -1
  105. package/src/presentation/atoms/AtomicDatePicker.tsx +1 -1
  106. package/src/presentation/atoms/AtomicDivider.tsx +1 -1
  107. package/src/presentation/atoms/AtomicFab.tsx +1 -1
  108. package/src/presentation/atoms/AtomicFilter.tsx +1 -1
  109. package/src/presentation/atoms/AtomicFormError.tsx +2 -2
  110. package/src/presentation/atoms/AtomicIcon.tsx +3 -4
  111. package/src/presentation/atoms/AtomicImage.tsx +1 -1
  112. package/src/presentation/atoms/AtomicInput.tsx +1 -1
  113. package/src/presentation/atoms/AtomicPicker.tsx +1 -1
  114. package/src/presentation/atoms/AtomicProgress.tsx +1 -1
  115. package/src/presentation/atoms/AtomicSearchBar.tsx +1 -1
  116. package/src/presentation/atoms/AtomicSort.tsx +1 -1
  117. package/src/presentation/atoms/AtomicSwitch.tsx +1 -1
  118. package/src/presentation/atoms/AtomicText.tsx +80 -14
  119. package/src/presentation/atoms/AtomicTextArea.tsx +1 -1
  120. package/src/presentation/atoms/AtomicTouchable.tsx +1 -1
  121. package/src/presentation/atoms/fab/styles/fabStyles.ts +1 -1
  122. package/src/presentation/atoms/input/styles/inputStyles.ts +1 -1
  123. package/src/presentation/atoms/picker/styles/pickerStyles.ts +13 -6
  124. package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
  125. package/src/presentation/molecules/EmptyState.tsx +1 -1
  126. package/src/presentation/molecules/FormField.tsx +1 -1
  127. package/src/presentation/molecules/IconContainer.tsx +1 -1
  128. package/src/presentation/molecules/ListItem.tsx +1 -1
  129. package/src/presentation/molecules/ScreenHeader.tsx +1 -1
  130. package/src/presentation/molecules/SearchBar.tsx +1 -1
  131. package/src/presentation/molecules/SectionCard.tsx +1 -1
  132. package/src/presentation/molecules/SectionContainer.tsx +1 -1
  133. package/src/presentation/molecules/SectionHeader.tsx +1 -1
  134. package/src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts +1 -1
  135. package/src/presentation/molecules/listitem/styles/listItemStyles.ts +1 -1
  136. package/src/presentation/organisms/AppHeader.tsx +4 -3
  137. package/src/presentation/organisms/FormContainer.tsx +1 -1
  138. package/src/presentation/organisms/ScreenLayout.tsx +1 -1
  139. package/src/presentation/tokens/commonStyles.ts +1 -1
  140. package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts +0 -91
  141. package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts.map +0 -1
  142. package/lib/domains/icons/domain/config/IconLibraryConfig.js +0 -85
  143. package/lib/domains/icons/domain/config/IconLibraryConfig.js.map +0 -1
  144. package/lib/domains/icons/domain/entities/Icon.d.ts +0 -111
  145. package/lib/domains/icons/domain/entities/Icon.d.ts.map +0 -1
  146. package/lib/domains/icons/domain/entities/Icon.js +0 -87
  147. package/lib/domains/icons/domain/entities/Icon.js.map +0 -1
  148. package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts +0 -114
  149. package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts.map +0 -1
  150. package/lib/domains/icons/domain/interfaces/IIconAdapter.js +0 -17
  151. package/lib/domains/icons/domain/interfaces/IIconAdapter.js.map +0 -1
  152. package/lib/domains/icons/index.d.ts +0 -84
  153. package/lib/domains/icons/index.d.ts.map +0 -1
  154. package/lib/domains/icons/index.js +0 -89
  155. package/lib/domains/icons/index.js.map +0 -1
  156. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts +0 -24
  157. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts.map +0 -1
  158. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js +0 -85
  159. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js.map +0 -1
  160. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts +0 -23
  161. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts.map +0 -1
  162. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js +0 -178
  163. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js.map +0 -1
  164. package/lib/domains/icons/presentation/components/Icon.d.ts +0 -42
  165. package/lib/domains/icons/presentation/components/Icon.d.ts.map +0 -1
  166. package/lib/domains/icons/presentation/components/Icon.js +0 -86
  167. package/lib/domains/icons/presentation/components/Icon.js.map +0 -1
  168. package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts +0 -38
  169. package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts.map +0 -1
  170. package/lib/domains/icons/presentation/hooks/useIconLibrary.js +0 -114
  171. package/lib/domains/icons/presentation/hooks/useIconLibrary.js.map +0 -1
  172. package/lib/infrastructure/theme/globalThemeStore.d.ts +0 -42
  173. package/lib/infrastructure/theme/globalThemeStore.d.ts.map +0 -1
  174. package/lib/infrastructure/theme/globalThemeStore.js +0 -38
  175. package/lib/infrastructure/theme/globalThemeStore.js.map +0 -1
  176. package/lib/presentation/hooks/useAppDesignTokens.d.ts +0 -34
  177. package/lib/presentation/hooks/useAppDesignTokens.d.ts.map +0 -1
  178. package/lib/presentation/hooks/useAppDesignTokens.js +0 -39
  179. package/lib/presentation/hooks/useAppDesignTokens.js.map +0 -1
  180. package/lib/presentation/tokens/AppDesignTokens.d.ts +0 -14
  181. package/lib/presentation/tokens/AppDesignTokens.d.ts.map +0 -1
  182. package/lib/presentation/tokens/AppDesignTokens.js +0 -23
  183. package/lib/presentation/tokens/AppDesignTokens.js.map +0 -1
  184. package/lib/presentation/tokens/core/BaseTokens.d.ts +0 -312
  185. package/lib/presentation/tokens/core/BaseTokens.d.ts.map +0 -1
  186. package/lib/presentation/tokens/core/BaseTokens.js +0 -304
  187. package/lib/presentation/tokens/core/BaseTokens.js.map +0 -1
  188. package/lib/presentation/tokens/core/ColorPalette.d.ts +0 -216
  189. package/lib/presentation/tokens/core/ColorPalette.d.ts.map +0 -1
  190. package/lib/presentation/tokens/core/ColorPalette.js +0 -330
  191. package/lib/presentation/tokens/core/ColorPalette.js.map +0 -1
  192. package/lib/presentation/tokens/core/TokenFactory.d.ts +0 -216
  193. package/lib/presentation/tokens/core/TokenFactory.d.ts.map +0 -1
  194. package/lib/presentation/tokens/core/TokenFactory.js +0 -86
  195. package/lib/presentation/tokens/core/TokenFactory.js.map +0 -1
  196. package/src/domains/icons/domain/config/IconLibraryConfig.ts +0 -93
  197. package/src/domains/icons/domain/entities/Icon.ts +0 -143
  198. package/src/domains/icons/domain/interfaces/IIconAdapter.ts +0 -147
  199. package/src/domains/icons/index.ts +0 -109
  200. package/src/domains/icons/infrastructure/adapters/LucideAdapter.ts +0 -100
  201. package/src/domains/icons/infrastructure/registries/ExpoIconRegistry.ts +0 -191
  202. package/src/domains/icons/presentation/components/Icon.tsx +0 -132
  203. package/src/domains/icons/presentation/hooks/useIconLibrary.ts +0 -141
  204. package/src/infrastructure/theme/globalThemeStore.ts +0 -51
  205. package/src/presentation/hooks/useAppDesignTokens.ts +0 -40
  206. package/src/presentation/tokens/AppDesignTokens.ts +0 -55
  207. package/src/presentation/tokens/core/BaseTokens.ts +0 -372
  208. package/src/presentation/tokens/core/ColorPalette.ts +0 -400
  209. package/src/presentation/tokens/core/TokenFactory.ts +0 -118
@@ -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"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,WAAW,IAAI,YAAY,EAAE,CAAC;IAE9B;;OAEG;IACH,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IAE3D;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;IAE3C;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;GAEG;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,IAAY,EAAU,EAAE;QAC1C,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,aAAa,EAAE,CAAC,IAAkB,EAAE,KAAa,EAAW,EAAE;QAC5D,MAAM,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3D,MAAM,cAAc,GAAG,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9E,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;QAExF,OAAO,CACL,cAAc,CAAC,QAAQ,CAAC,eAAe,CAAC;YACxC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YACzD,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAC7D,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB,EAAE,CAAC,KAAqB,EAAE,QAAsB,EAAkB,EAAE;QAClF,IAAI,QAAQ,KAAK,YAAY,CAAC,GAAG,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,UAAU,EAAE,CAAC,KAAqB,EAAkB,EAAE;QACpD,OAAO,CAAC,GAAG,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;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAE9D;;;;;OAKG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAE7D;;;;;;OAMG;IACH,YAAY,EAAE,CACZ,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,YAAY,EACpB,WAAW,CAAC,EAAE,MAAM,KACjB,MAAM,CAAC;IAEZ;;;OAGG;IACH,WAAW,EAAE,MAAM,MAAM,EAAE,CAAC;IAE5B;;;;OAIG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAEnC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB"}
@@ -1,17 +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
- 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"}
@@ -1,89 +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
- // ============================================================================
78
- // PRESENTATION LAYER - Universal Icon Component
79
- // ============================================================================
80
- export { Icon } from './presentation/components/Icon';
81
- // ============================================================================
82
- // DOMAIN LAYER - Configuration & Interfaces
83
- // ============================================================================
84
- export { CURRENT_LIBRARY, ICON_LIBRARY_CONFIG, getCurrentLibrary, isLucideLibrary, } from './domain/config/IconLibraryConfig';
85
- // ============================================================================
86
- // INFRASTRUCTURE LAYER - Adapters
87
- // ============================================================================
88
- export { LucideAdapter } from './infrastructure/adapters/LucideAdapter';
89
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/icons/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAEH,+EAA+E;AAC/E,gDAAgD;AAChD,+EAA+E;AAE/E,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAQtD,+EAA+E;AAC/E,4CAA4C;AAC5C,+EAA+E;AAE/E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAK3C,+EAA+E;AAC/E,kCAAkC;AAClC,+EAA+E;AAE/E,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Lucide Icon Library Adapter
3
- *
4
- * Adapter for lucide-react-native library (1,639 icons).
5
- * Implements IIconAdapter interface for seamless library switching.
6
- *
7
- * @library lucide-react-native
8
- * @version ^0.468.0
9
- * @icons 1,639
10
- * @type outline
11
- *
12
- * @see https://lucide.dev/icons/
13
- */
14
- import { icons } from 'lucide-react-native';
15
- import type { IIconAdapter } from '../../domain/interfaces/IIconAdapter';
16
- /**
17
- * Lucide Adapter Implementation
18
- */
19
- export declare const LucideAdapter: IIconAdapter;
20
- /**
21
- * Lucide icon names type (for TypeScript autocomplete)
22
- */
23
- export type LucideIconName = keyof typeof icons;
24
- //# sourceMappingURL=LucideAdapter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LucideAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/domains/icons/infrastructure/adapters/LucideAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,sCAAsC,CAAC;AAe9F;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,YA6D3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,KAAK,CAAC"}
@@ -1,85 +0,0 @@
1
- /**
2
- * Lucide Icon Library Adapter
3
- *
4
- * Adapter for lucide-react-native library (1,639 icons).
5
- * Implements IIconAdapter interface for seamless library switching.
6
- *
7
- * @library lucide-react-native
8
- * @version ^0.468.0
9
- * @icons 1,639
10
- * @type outline
11
- *
12
- * @see https://lucide.dev/icons/
13
- */
14
- import { icons } from 'lucide-react-native';
15
- /**
16
- * Size mapping: Semantic → Pixels
17
- */
18
- const SIZE_MAP = {
19
- xs: 16,
20
- sm: 20,
21
- md: 24,
22
- lg: 28,
23
- xl: 32,
24
- xxl: 40,
25
- };
26
- /**
27
- * Lucide Adapter Implementation
28
- */
29
- export const LucideAdapter = {
30
- /**
31
- * Get Lucide icon component by name
32
- */
33
- getIconComponent: (name) => {
34
- const IconComponent = icons[name];
35
- if (!IconComponent) {
36
- console.warn(`[LucideAdapter] Icon "${name}" not found in Lucide library`);
37
- return null;
38
- }
39
- return IconComponent;
40
- },
41
- /**
42
- * Get icon size in pixels
43
- */
44
- getIconSize: (size, customSize) => {
45
- return customSize || SIZE_MAP[size];
46
- },
47
- /**
48
- * Get icon color from theme
49
- */
50
- getIconColor: (color, tokens, customColor) => {
51
- if (customColor)
52
- return customColor;
53
- const colorMap = {
54
- primary: tokens.colors.primary,
55
- secondary: tokens.colors.secondary,
56
- success: tokens.colors.success,
57
- warning: tokens.colors.warning,
58
- error: tokens.colors.error,
59
- info: tokens.colors.info,
60
- onSurface: tokens.colors.onSurface,
61
- surfaceVariant: tokens.colors.surfaceVariant,
62
- onPrimary: tokens.colors.onPrimary,
63
- onSecondary: tokens.colors.onSecondary,
64
- textInverse: tokens.colors.textInverse,
65
- };
66
- return colorMap[color];
67
- },
68
- /**
69
- * Get all available Lucide icon names
70
- */
71
- getAllIcons: () => {
72
- return Object.keys(icons);
73
- },
74
- /**
75
- * Check if icon exists in Lucide library
76
- */
77
- hasIcon: (name) => {
78
- return name in icons;
79
- },
80
- /**
81
- * Default stroke width for Lucide outline icons
82
- */
83
- getStrokeWidth: () => 2,
84
- };
85
- //# sourceMappingURL=LucideAdapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LucideAdapter.js","sourceRoot":"","sources":["../../../../../src/domains/icons/infrastructure/adapters/LucideAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAI5C;;GAEG;AACH,MAAM,QAAQ,GAA6B;IACzC,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,GAAG,EAAE,EAAE;CACR,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiB;IACzC;;OAEG;IACH,gBAAgB,EAAE,CAAC,IAAY,EAAE,EAAE;QACjC,MAAM,aAAa,GAAG,KAAK,CAAC,IAA0B,CAAC,CAAC;QACxD,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,yBAAyB,IAAI,+BAA+B,CAAC,CAAC;YAC3E,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,WAAW,EAAE,CAAC,IAAc,EAAE,UAAmB,EAAE,EAAE;QACnD,OAAO,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,YAAY,EAAE,CAAC,KAAgB,EAAE,MAAoB,EAAE,WAAoB,EAAE,EAAE;QAC7E,IAAI,WAAW;YAAE,OAAO,WAAW,CAAC;QAEpC,MAAM,QAAQ,GAA8B;YAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;YAC9B,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS;YAClC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;YAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;YAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;YAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI;YACxB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS;YAClC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc;YAC5C,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS;YAClC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW;YACtC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW;SACvC,CAAC;QAEF,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,WAAW,EAAE,GAAG,EAAE;QAChB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE;QACxB,OAAO,IAAI,IAAI,KAAK,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;CACxB,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * Icons Domain - Expo Vector Icons Registry
3
- *
4
- * Registry for @expo/vector-icons (Material, FontAwesome, Ionicons).
5
- * Provides metadata and search capabilities for 1000+ icons.
6
- *
7
- * @domain icons
8
- * @layer infrastructure
9
- */
10
- import type { IIconRegistry, IconMetadata } from '@domains/icons/domain/entities/Icon';
11
- import { IconCategory } from '@domains/icons/domain/entities/Icon';
12
- /**
13
- * Expo vector icons registry
14
- * Maps common Material Design, FontAwesome, and Ionicons
15
- */
16
- export declare class ExpoIconRegistry implements IIconRegistry {
17
- private icons;
18
- getAllIcons(): IconMetadata[];
19
- getIconsByCategory(category: IconCategory): IconMetadata[];
20
- searchIcons(query: string): IconMetadata[];
21
- getIconMetadata(name: string): IconMetadata | null;
22
- }
23
- //# sourceMappingURL=ExpoIconRegistry.d.ts.map