custom-mobile-ui 1.0.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 (116) hide show
  1. package/dist/Fonts-Black-U4YX6GHD.ttf +0 -0
  2. package/dist/Fonts-Bold-QAA2AGZS.ttf +0 -0
  3. package/dist/Fonts-ExtraBold-OVZKTNJI.ttf +0 -0
  4. package/dist/Fonts-Light-RMQAEPUP.ttf +0 -0
  5. package/dist/Fonts-Medium-UUWQX4EV.ttf +0 -0
  6. package/dist/Fonts-Regular-JNHL4IDV.ttf +0 -0
  7. package/dist/PopupMenuExample-DAAku8nG.d.mts +11 -0
  8. package/dist/PopupMenuExample-DAAku8nG.d.ts +11 -0
  9. package/dist/avatarF1-C47EE65Y.png +0 -0
  10. package/dist/avatarF2-TZPKSMDG.png +0 -0
  11. package/dist/avatarF3-OSDX6E7J.png +0 -0
  12. package/dist/avatarF4-CASWRGNJ.png +0 -0
  13. package/dist/avatarM1-3XV4KE4H.png +0 -0
  14. package/dist/avatarM2-ZMN26Y2Y.png +0 -0
  15. package/dist/avatarM3-XIDLYITU.png +0 -0
  16. package/dist/avatarM4-DYW5DSZC.png +0 -0
  17. package/dist/avatarM5-YP66OPXT.png +0 -0
  18. package/dist/components.d.mts +3286 -0
  19. package/dist/components.d.ts +3286 -0
  20. package/dist/components.js +21401 -0
  21. package/dist/components.mjs +21246 -0
  22. package/dist/config.d.mts +7 -0
  23. package/dist/config.d.ts +7 -0
  24. package/dist/config.js +213 -0
  25. package/dist/config.mjs +210 -0
  26. package/dist/context.d.mts +11 -0
  27. package/dist/context.d.ts +11 -0
  28. package/dist/context.js +150 -0
  29. package/dist/context.mjs +148 -0
  30. package/dist/examples.d.mts +30 -0
  31. package/dist/examples.d.ts +30 -0
  32. package/dist/examples.js +30785 -0
  33. package/dist/examples.mjs +30748 -0
  34. package/dist/hooks.d.mts +15 -0
  35. package/dist/hooks.d.ts +15 -0
  36. package/dist/hooks.js +750 -0
  37. package/dist/hooks.mjs +739 -0
  38. package/dist/icAppleNegative-E3OORB4A.png +0 -0
  39. package/dist/icAppleOriginal-M7FOSDZ4.png +0 -0
  40. package/dist/icBlueskyNegative-QXHPLARU.png +0 -0
  41. package/dist/icBlueskyOriginal-D2GX35RV.png +0 -0
  42. package/dist/icDiscordNegative-EWGZJJ27.png +0 -0
  43. package/dist/icDiscordOriginal-5ODPKZ6S.png +0 -0
  44. package/dist/icDribbbleNegative-GOLJS6SO.png +0 -0
  45. package/dist/icDribbbleOriginal-ONQLW62I.png +0 -0
  46. package/dist/icError404-Z6PQK64J.png +0 -0
  47. package/dist/icFacebookNegative-DIFRSSJJ.png +0 -0
  48. package/dist/icFacebookOriginal-PK7CGUNB.png +0 -0
  49. package/dist/icFigmaNegative-X6P3DVCQ.png +0 -0
  50. package/dist/icFigmaOriginal-VGD7LQVQ.png +0 -0
  51. package/dist/icGithubNegative-G7XH6J7V.png +0 -0
  52. package/dist/icGithubOriginal-BOXVXICL.png +0 -0
  53. package/dist/icGoogleNegative-UFNCEWM7.png +0 -0
  54. package/dist/icGoogleOriginal-WCDLPRSH.png +0 -0
  55. package/dist/icInstagramNegative-47CG4IHG.png +0 -0
  56. package/dist/icInstagramOriginal-SGRJTPEH.png +0 -0
  57. package/dist/icLinkedInNegative-4EHL223U.png +0 -0
  58. package/dist/icLinkedInOriginal-CQXTAW56.png +0 -0
  59. package/dist/icMediumNegative-YMS7U46C.png +0 -0
  60. package/dist/icMediumOriginal-TRTNJBN4.png +0 -0
  61. package/dist/icMessengerNegative-SIFKBM2Y.png +0 -0
  62. package/dist/icMessengerOriginal-PNN2SB3Z.png +0 -0
  63. package/dist/icNoData-JQB7KCKJ.png +0 -0
  64. package/dist/icPinterestNegative-LPDQYRD3.png +0 -0
  65. package/dist/icPinterestOriginal-7AWYJQBQ.png +0 -0
  66. package/dist/icRedditNegative-BBV3R7UA.png +0 -0
  67. package/dist/icRedditOriginal-BIKS3S2I.png +0 -0
  68. package/dist/icRestriction-JFCJAQ5L.png +0 -0
  69. package/dist/icSadMen-6HAFJHIQ.png +0 -0
  70. package/dist/icSignalNegative-DVBANSGJ.png +0 -0
  71. package/dist/icSignalOriginal-FQEXGCKX.png +0 -0
  72. package/dist/icSnapchatNegative-VQFVKRPC.png +0 -0
  73. package/dist/icSnapchatOriginal-ZK4T4CLL.png +0 -0
  74. package/dist/icSpotifyNegative-UGDBMFNS.png +0 -0
  75. package/dist/icSpotifyOriginal-ZFNO4BJO.png +0 -0
  76. package/dist/icTelegramNegative-GDSFFYME.png +0 -0
  77. package/dist/icTelegramOriginal-DMTCZCGP.png +0 -0
  78. package/dist/icThreadsNegative-4NIM4AOP.png +0 -0
  79. package/dist/icThreadsOriginal-OYU6UKN2.png +0 -0
  80. package/dist/icTikTokNegative-WYI3PQGD.png +0 -0
  81. package/dist/icTikTokOriginal-26SKYCIO.png +0 -0
  82. package/dist/icTumblrNegative-CYBTEYAG.png +0 -0
  83. package/dist/icTumblrOriginal-MZ7RV5ZY.png +0 -0
  84. package/dist/icTwitchNegative-GK3VVFL7.png +0 -0
  85. package/dist/icTwitchOriginal-GOENLOGB.png +0 -0
  86. package/dist/icVKNegative-FCXPFYDV.png +0 -0
  87. package/dist/icVKOriginal-NCWB7WYH.png +0 -0
  88. package/dist/icWhatsAppNegative-FJHYFUMA.png +0 -0
  89. package/dist/icWhatsAppOriginal-MWQWQC56.png +0 -0
  90. package/dist/icXTwitterNegative-VS3UXBLN.png +0 -0
  91. package/dist/icXTwitterOriginal-WJ2IFMZL.png +0 -0
  92. package/dist/icYouTubeNegative-LUSZ7OD4.png +0 -0
  93. package/dist/icYouTubeOriginal-6Y2SNMC7.png +0 -0
  94. package/dist/index-tIixPl5M.d.mts +214 -0
  95. package/dist/index-tIixPl5M.d.ts +214 -0
  96. package/dist/index.d.mts +32 -0
  97. package/dist/index.d.ts +32 -0
  98. package/dist/index.js +32215 -0
  99. package/dist/index.mjs +32022 -0
  100. package/dist/theme.d.mts +297 -0
  101. package/dist/theme.d.ts +297 -0
  102. package/dist/theme.js +472 -0
  103. package/dist/theme.mjs +458 -0
  104. package/dist/types-cxHozHqF.d.mts +92 -0
  105. package/dist/types-cxHozHqF.d.ts +92 -0
  106. package/dist/ui.d.mts +400 -0
  107. package/dist/ui.d.ts +400 -0
  108. package/dist/ui.js +1469 -0
  109. package/dist/ui.mjs +1461 -0
  110. package/dist/ui_config-LKHwCbDD.d.mts +102 -0
  111. package/dist/ui_config-LKHwCbDD.d.ts +102 -0
  112. package/dist/utils.d.mts +7 -0
  113. package/dist/utils.d.ts +7 -0
  114. package/dist/utils.js +89 -0
  115. package/dist/utils.mjs +83 -0
  116. package/package.json +78 -0
@@ -0,0 +1,148 @@
1
+ import { createContext } from 'react';
2
+
3
+ // src/context/ThemeContext.tsx
4
+
5
+ // src/theme/colors.ts
6
+ var Colors = {
7
+ primary: {
8
+ 50: "#EFF6FF",
9
+ 400: "#60A5FA",
10
+ 500: "#3B82F6",
11
+ 600: "#2563EB",
12
+ 900: "#1E3A8A"
13
+ },
14
+ primaryColor: "#2563EB",
15
+ gray: {
16
+ 50: "#F9FAFB",
17
+ 100: "#F3F4F6",
18
+ 200: "#E5E7EB",
19
+ 300: "#D1D5DB",
20
+ 400: "#9CA3AF",
21
+ 500: "#6B7280",
22
+ 600: "#4B5563",
23
+ 700: "#374151",
24
+ 800: "#1F2937",
25
+ 900: "#111827"
26
+ },
27
+ white: "#ffffff",
28
+ green: { 500: "#22C55E" },
29
+ orange: { 500: "#F97316" },
30
+ red: { 500: "#EF4444" }};
31
+ var colors_default = Colors;
32
+
33
+ // src/theme/theme.ts
34
+ var BaseTheme = {
35
+ primary: {
36
+ default: colors_default.primary[600],
37
+ hover: colors_default.primary[500]
38
+ },
39
+ background: {
40
+ screen: colors_default.gray[50],
41
+ surface: "#FFFFFF",
42
+ selected: colors_default.primary[50],
43
+ secondary: colors_default.gray[100],
44
+ design: colors_default.primary[50]
45
+ },
46
+ input: {
47
+ background: colors_default.gray[50]
48
+ },
49
+ text: {
50
+ primary: colors_default.gray[900],
51
+ secondary: colors_default.gray[600],
52
+ muted: colors_default.gray[400],
53
+ inverse: "#FFFFFF"
54
+ },
55
+ border: {
56
+ default: colors_default.gray[300],
57
+ focused: colors_default.primary[600],
58
+ success: colors_default.green[500],
59
+ warning: colors_default.orange[500],
60
+ error: colors_default.red[500]
61
+ },
62
+ status: {
63
+ success: colors_default.green[500],
64
+ warning: colors_default.orange[500],
65
+ error: colors_default.red[500],
66
+ validating: colors_default.primary[600]
67
+ },
68
+ icon: {
69
+ default: colors_default.gray[500],
70
+ active: colors_default.primary[600],
71
+ disabled: colors_default.gray[400]
72
+ },
73
+ tabContent: {
74
+ active: colors_default.primary[600],
75
+ inactive: colors_default.gray[400]
76
+ },
77
+ skeleton: {
78
+ background: colors_default.gray[200],
79
+ componentBg: colors_default.gray[300],
80
+ highlight: "#ffffff99"
81
+ },
82
+ primaryContent: {
83
+ color: colors_default.primaryColor
84
+ }
85
+ };
86
+ var LightTheme = {
87
+ ...BaseTheme
88
+ };
89
+ var DarkTheme = {
90
+ ...BaseTheme,
91
+ primary: {
92
+ default: colors_default.primary[500],
93
+ hover: colors_default.primary[400]
94
+ },
95
+ background: {
96
+ ...BaseTheme.background,
97
+ screen: colors_default.gray[900],
98
+ surface: colors_default.gray[800],
99
+ selected: colors_default.primary[900],
100
+ secondary: colors_default.gray[900],
101
+ design: colors_default.primaryColor + 10
102
+ },
103
+ input: {
104
+ background: colors_default.gray[700]
105
+ },
106
+ text: {
107
+ ...BaseTheme.text,
108
+ primary: "#FFFFFF",
109
+ secondary: colors_default.gray[200],
110
+ muted: colors_default.gray[500],
111
+ inverse: colors_default.gray[900]
112
+ },
113
+ border: {
114
+ ...BaseTheme.border,
115
+ default: colors_default.gray[700]
116
+ },
117
+ icon: {
118
+ ...BaseTheme.icon,
119
+ default: colors_default.gray[400],
120
+ disabled: colors_default.gray[600]
121
+ },
122
+ tabContent: {
123
+ active: colors_default.white,
124
+ inactive: colors_default.gray[500]
125
+ },
126
+ skeleton: {
127
+ background: colors_default.gray[700],
128
+ componentBg: colors_default.gray[800],
129
+ highlight: "#ffffff14"
130
+ },
131
+ primaryContent: {
132
+ color: colors_default.primary[400]
133
+ }
134
+ };
135
+
136
+ // src/theme/index.ts
137
+ var getTheme = (mode) => mode === "dark" ? DarkTheme : LightTheme;
138
+
139
+ // src/context/ThemeContext.tsx
140
+ var ThemeContext = createContext({
141
+ mode: "system",
142
+ setMode: () => {
143
+ },
144
+ theme: getTheme("light"),
145
+ resolvedMode: "light"
146
+ });
147
+
148
+ export { ThemeContext };
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ export { A as AlertModalExample, D as DateTimePickerExample, P as PopupMenuExample, T as TabPagerExample } from './PopupMenuExample-DAAku8nG.mjs';
3
+ import React__default from 'react';
4
+
5
+ declare function CustomFieldExample(): react_jsx_runtime.JSX.Element;
6
+
7
+ declare function BottomBarExample(): react_jsx_runtime.JSX.Element;
8
+
9
+ type ComponentGalleryId = "customButton" | "text" | "avatar" | "badge" | "divider" | "iconWrapper" | "networkImage" | "imagePreview" | "chip" | "customField" | "checkbox" | "radio" | "switch" | "tagSelection" | "dateTimePicker" | "searchBar" | "autoComplete" | "segmentedControl" | "passwordStrength" | "colorPicker" | "socialLogin" | "phoneInput" | "formWrapper" | "authScreens" | "card" | "listItem" | "statCard" | "progressBar" | "timeline" | "shimmer" | "activityFeed" | "notificationCenter" | "searchWithFilters" | "dataTable" | "kanbanBoard" | "billingUI" | "charts" | "calendar" | "breadcrumb" | "bottomBar" | "tabPager" | "header" | "collapsible" | "accordion" | "drawer" | "alertModal" | "customModal" | "messageBox" | "commonState" | "toast" | "loader" | "tooltip" | "confirmationModal" | "snackbar" | "customPopup" | "dismissKeyboard" | "animatedListItem" | "errorBoundary" | "networkStatus" | "fab" | "stepper" | "speedDial";
10
+ type GallerySection = "Core UI" | "Form & Data Entry" | "Data Display" | "Navigation & Layout" | "Feedback & Alerts" | "Utilities";
11
+ type GalleryItem = {
12
+ id: ComponentGalleryId;
13
+ title: string;
14
+ description: string;
15
+ icon: React__default.ReactNode;
16
+ tagline: string;
17
+ section: GallerySection;
18
+ render: () => React__default.ReactElement;
19
+ };
20
+ declare const GALLERY_ITEMS: GalleryItem[];
21
+ /** All distinct sections in display order. */
22
+ declare const GALLERY_SECTIONS: GallerySection[];
23
+ /** Items grouped by section, preserving order. */
24
+ declare function getGroupedGalleryItems(): {
25
+ section: GallerySection;
26
+ items: GalleryItem[];
27
+ }[];
28
+ declare function getGalleryItem(id: ComponentGalleryId | null): GalleryItem | undefined;
29
+
30
+ export { BottomBarExample as BottomBarExampleScreen, type ComponentGalleryId, CustomFieldExample as CustomFieldExampleScreen, GALLERY_ITEMS, GALLERY_SECTIONS, type GalleryItem, type GallerySection, getGalleryItem, getGroupedGalleryItems };
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ export { A as AlertModalExample, D as DateTimePickerExample, P as PopupMenuExample, T as TabPagerExample } from './PopupMenuExample-DAAku8nG.js';
3
+ import React__default from 'react';
4
+
5
+ declare function CustomFieldExample(): react_jsx_runtime.JSX.Element;
6
+
7
+ declare function BottomBarExample(): react_jsx_runtime.JSX.Element;
8
+
9
+ type ComponentGalleryId = "customButton" | "text" | "avatar" | "badge" | "divider" | "iconWrapper" | "networkImage" | "imagePreview" | "chip" | "customField" | "checkbox" | "radio" | "switch" | "tagSelection" | "dateTimePicker" | "searchBar" | "autoComplete" | "segmentedControl" | "passwordStrength" | "colorPicker" | "socialLogin" | "phoneInput" | "formWrapper" | "authScreens" | "card" | "listItem" | "statCard" | "progressBar" | "timeline" | "shimmer" | "activityFeed" | "notificationCenter" | "searchWithFilters" | "dataTable" | "kanbanBoard" | "billingUI" | "charts" | "calendar" | "breadcrumb" | "bottomBar" | "tabPager" | "header" | "collapsible" | "accordion" | "drawer" | "alertModal" | "customModal" | "messageBox" | "commonState" | "toast" | "loader" | "tooltip" | "confirmationModal" | "snackbar" | "customPopup" | "dismissKeyboard" | "animatedListItem" | "errorBoundary" | "networkStatus" | "fab" | "stepper" | "speedDial";
10
+ type GallerySection = "Core UI" | "Form & Data Entry" | "Data Display" | "Navigation & Layout" | "Feedback & Alerts" | "Utilities";
11
+ type GalleryItem = {
12
+ id: ComponentGalleryId;
13
+ title: string;
14
+ description: string;
15
+ icon: React__default.ReactNode;
16
+ tagline: string;
17
+ section: GallerySection;
18
+ render: () => React__default.ReactElement;
19
+ };
20
+ declare const GALLERY_ITEMS: GalleryItem[];
21
+ /** All distinct sections in display order. */
22
+ declare const GALLERY_SECTIONS: GallerySection[];
23
+ /** Items grouped by section, preserving order. */
24
+ declare function getGroupedGalleryItems(): {
25
+ section: GallerySection;
26
+ items: GalleryItem[];
27
+ }[];
28
+ declare function getGalleryItem(id: ComponentGalleryId | null): GalleryItem | undefined;
29
+
30
+ export { BottomBarExample as BottomBarExampleScreen, type ComponentGalleryId, CustomFieldExample as CustomFieldExampleScreen, GALLERY_ITEMS, GALLERY_SECTIONS, type GalleryItem, type GallerySection, getGalleryItem, getGroupedGalleryItems };