@ecohouse/ui 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +239 -36
  2. package/dist/index.cjs +649 -314
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +181 -258
  5. package/dist/index.d.ts +181 -258
  6. package/dist/index.js +626 -304
  7. package/dist/index.js.map +1 -1
  8. package/package.json +5 -7
  9. package/src/components/Button/Button.stories.tsx +98 -0
  10. package/src/components/{Button.tsx → Button/Button.tsx} +39 -71
  11. package/src/components/Button/index.ts +2 -0
  12. package/src/components/Input/Input.stories.tsx +118 -0
  13. package/src/components/Input/Input.tsx +327 -0
  14. package/src/components/Input/index.ts +2 -0
  15. package/src/components/index.ts +5 -0
  16. package/src/icons/{ArrowUpRightIcon.tsx → ArrowRight/ArrowRightIcon.tsx} +8 -7
  17. package/src/icons/{ArrowUpRightIcon.web.tsx → ArrowRight/ArrowRightIcon.web.tsx} +8 -7
  18. package/src/icons/ArrowRight/arrowRightPath.ts +2 -0
  19. package/src/icons/ArrowRight/index.ts +1 -0
  20. package/src/icons/Bag/BagIcon.tsx +20 -0
  21. package/src/icons/Bag/BagIcon.web.tsx +26 -0
  22. package/src/icons/Bag/bagPath.ts +2 -0
  23. package/src/icons/Bag/index.ts +1 -0
  24. package/src/icons/Bell/BellIcon.tsx +20 -0
  25. package/src/icons/Bell/BellIcon.web.tsx +26 -0
  26. package/src/icons/Bell/bellPath.ts +2 -0
  27. package/src/icons/Bell/index.ts +1 -0
  28. package/src/icons/Building/BuildingIcon.tsx +20 -0
  29. package/src/icons/Building/BuildingIcon.web.tsx +26 -0
  30. package/src/icons/Building/buildingPath.ts +2 -0
  31. package/src/icons/Building/index.ts +1 -0
  32. package/src/icons/Camera/CameraIcon.tsx +20 -0
  33. package/src/icons/Camera/CameraIcon.web.tsx +26 -0
  34. package/src/icons/Camera/cameraPath.ts +2 -0
  35. package/src/icons/Camera/index.ts +1 -0
  36. package/src/icons/CheckBadge/CheckBadgeIcon.tsx +20 -0
  37. package/src/icons/CheckBadge/CheckBadgeIcon.web.tsx +26 -0
  38. package/src/icons/CheckBadge/checkBadgePath.ts +2 -0
  39. package/src/icons/CheckBadge/index.ts +1 -0
  40. package/src/icons/Clock/ClockIcon.tsx +20 -0
  41. package/src/icons/Clock/ClockIcon.web.tsx +26 -0
  42. package/src/icons/Clock/clockPath.ts +2 -0
  43. package/src/icons/Clock/index.ts +1 -0
  44. package/src/icons/Facebook/FacebookIcon.tsx +14 -0
  45. package/src/icons/Facebook/FacebookIcon.web.tsx +20 -0
  46. package/src/icons/Facebook/facebookPath.ts +2 -0
  47. package/src/icons/Facebook/index.ts +1 -0
  48. package/src/icons/Home/HomeIcon.tsx +20 -0
  49. package/src/icons/Home/HomeIcon.web.tsx +26 -0
  50. package/src/icons/Home/homePath.ts +2 -0
  51. package/src/icons/Home/index.ts +1 -0
  52. package/src/icons/Icon.tsx +11 -0
  53. package/src/icons/Icons.stories.tsx +174 -0
  54. package/src/icons/Instagram/InstagramIcon.tsx +14 -0
  55. package/src/icons/Instagram/InstagramIcon.web.tsx +20 -0
  56. package/src/icons/Instagram/index.ts +1 -0
  57. package/src/icons/Instagram/instagramPath.ts +2 -0
  58. package/src/icons/Key/KeyIcon.tsx +20 -0
  59. package/src/icons/Key/KeyIcon.web.tsx +26 -0
  60. package/src/icons/Key/index.ts +1 -0
  61. package/src/icons/Key/keyPath.ts +2 -0
  62. package/src/icons/LinkedIn/LinkedInIcon.tsx +14 -0
  63. package/src/icons/LinkedIn/LinkedInIcon.web.tsx +20 -0
  64. package/src/icons/LinkedIn/index.ts +1 -0
  65. package/src/icons/LinkedIn/linkedinPath.ts +2 -0
  66. package/src/icons/Mail/MailIcon.tsx +20 -0
  67. package/src/icons/Mail/MailIcon.web.tsx +26 -0
  68. package/src/icons/Mail/index.ts +1 -0
  69. package/src/icons/Mail/mailPath.ts +2 -0
  70. package/src/icons/Navigate/NavigateIcon.tsx +20 -0
  71. package/src/icons/Navigate/NavigateIcon.web.tsx +26 -0
  72. package/src/icons/Navigate/index.ts +1 -0
  73. package/src/icons/Navigate/navigatePath.ts +2 -0
  74. package/src/icons/Phone/PhoneIcon.tsx +20 -0
  75. package/src/icons/Phone/PhoneIcon.web.tsx +26 -0
  76. package/src/icons/Phone/index.ts +1 -0
  77. package/src/icons/Phone/phonePath.ts +2 -0
  78. package/src/icons/Show/ShowIcon.tsx +33 -0
  79. package/src/icons/Show/ShowIcon.web.tsx +39 -0
  80. package/src/icons/Show/index.ts +1 -0
  81. package/src/icons/Show/showPath.ts +6 -0
  82. package/src/icons/User/UserIcon.tsx +26 -0
  83. package/src/icons/User/UserIcon.web.tsx +32 -0
  84. package/src/icons/User/index.ts +1 -0
  85. package/src/icons/User/userPath.ts +3 -0
  86. package/src/icons/index.ts +24 -0
  87. package/src/icons/registry.ts +58 -0
  88. package/src/icons/types.ts +9 -0
  89. package/src/index.ts +37 -21
  90. package/src/theme/colors.test.ts +12 -0
  91. package/src/theme/colors.ts +46 -0
  92. package/src/theme/index.ts +4 -0
  93. package/src/theme/typography.ts +46 -0
  94. package/src/web/styles/fonts.css +1 -0
  95. package/src/web/styles/typography.css +14 -92
  96. package/src/components/Button.stories.tsx +0 -135
  97. package/src/icons/arrowUpRightPath.ts +0 -1
  98. package/src/theme/tokens.test.ts +0 -10
  99. package/src/theme/tokens.ts +0 -286
package/dist/index.js CHANGED
@@ -1,267 +1,379 @@
1
- import { useRef, useLayoutEffect } from 'react';
2
- import { StyleSheet, Platform, TouchableOpacity, Text, View } from 'react-native';
1
+ import { useRef, useState, useLayoutEffect } from 'react';
2
+ import { StyleSheet, Platform, TouchableOpacity, Text, View, TextInput } from 'react-native';
3
3
  import Svg, { Path } from 'react-native-svg';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
5
5
 
6
- // src/components/Button.tsx
6
+ // src/components/Button/Button.tsx
7
7
 
8
- // src/icons/arrowUpRightPath.ts
9
- var ARROW_UP_RIGHT_PATH = "M14.1667 14.1668V5.8335H5.83333M14.1667 5.8335L5.83333 14.1668";
10
- function ArrowUpRightIcon({
11
- size = 20,
12
- color = "#082640",
13
- strokeWidth = 2
14
- }) {
15
- return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
16
- Path,
17
- {
18
- d: ARROW_UP_RIGHT_PATH,
19
- stroke: color,
20
- strokeWidth,
21
- strokeLinecap: "round",
22
- strokeLinejoin: "round"
23
- }
24
- ) });
25
- }
8
+ // src/icons/ArrowRight/arrowRightPath.ts
9
+ var ARROW_RIGHT_PATH = "M4.16667 10H15.8333M15.8333 10L10 4.16667M15.8333 10L10 15.8333";
26
10
 
27
- // src/theme/tokens.ts
28
- var stormGray = {
29
- "0": "#fbfcfc",
30
- "0.5": "#eceef0",
31
- "1": "#dadde0",
32
- "1.5": "#c7cdd1",
33
- "2": "#b5bcc1",
34
- "3": "#8f9aa3",
35
- "4": "#6a7984",
36
- "5": "#455765",
37
- "6": "#374651",
38
- "7": "#29343d",
39
- "8": "#1c2328",
40
- "8.5": "#151a1e"
41
- };
42
- var navy = {
43
- "0": "#f6fafe",
44
- "0.5": "#dee5eb",
45
- "1": "#c6d0d8",
46
- "1.5": "#afbac5",
47
- "2": "#97a5b2",
48
- "3": "#677b8c",
49
- "4": "#385066",
50
- "5": "#082640",
51
- "6": "#061e33",
52
- "7": "#051726",
53
- "8": "#030f1a",
54
- "8.5": "#020b13"
55
- };
56
- var rubyRed = {
57
- "0": "#fff5f6",
58
- "0.5": "#f7dddf",
59
- "1": "#efc4c8",
60
- "1.5": "#e7acb1",
61
- "2": "#df939a",
62
- "3": "#ce626d",
63
- "4": "#be313f",
64
- "5": "#ae0011",
65
- "6": "#8b000e",
66
- "7": "#68000a",
67
- "8": "#460007",
68
- "8.5": "#340005"
69
- };
70
- var emeraldGreen = {
71
- "0": "#f0fbf5",
72
- "0.5": "#dcf2e5",
73
- "1": "#c8e8d5",
74
- "1.5": "#b4dfc5",
75
- "2": "#a0d5b5",
76
- "3": "#77c394",
77
- "4": "#4fb074",
78
- "5": "#279d54",
79
- "6": "#1f7e43",
80
- "7": "#175e32",
81
- "8": "#103f22",
82
- "8.5": "#0c2f19"
83
- };
84
- var brand = {
85
- slateBlue: "#182e3c",
86
- stormGray: stormGray["5"],
87
- navy: navy["5"],
88
- rubyRed: rubyRed["5"],
89
- emeraldGreen: emeraldGreen["5"]
11
+ // src/theme/colors.ts
12
+ var grey = {
13
+ "0": "#767676",
14
+ "0.5": "#6E6E6E",
15
+ "1": "#666666",
16
+ "1.5": "#5E5E5E",
17
+ "2": "#565656",
18
+ "3": "#474747",
19
+ "4": "#373737",
20
+ "5": "#272727",
21
+ "6": "#1F1F1F",
22
+ "7": "#171717",
23
+ "7.5": "#161616",
24
+ "8": "#101010",
25
+ "8.5": "#0C0C0C",
26
+ "9": "#080808",
27
+ "9.5": "#040404"
90
28
  };
91
29
  var colors = {
92
- // Brand colors
93
- slateBlue: brand.slateBlue,
94
- // Emerald Green — Figma scale + brand swatch
95
- emeraldGreen0: emeraldGreen["0"],
96
- emeraldGreen50: emeraldGreen["0.5"],
97
- emeraldGreen100: emeraldGreen["1"],
98
- emeraldGreen150: emeraldGreen["1.5"],
99
- emeraldGreen200: emeraldGreen["2"],
100
- emeraldGreen300: emeraldGreen["3"],
101
- emeraldGreen400: emeraldGreen["4"],
102
- emeraldGreen500: emeraldGreen["5"],
103
- emeraldGreen600: emeraldGreen["6"],
104
- emeraldGreen700: emeraldGreen["7"],
105
- emeraldGreen800: emeraldGreen["8"],
106
- emeraldGreen850: emeraldGreen["8.5"],
107
- /** Primary brand emerald green — Figma Emerald Green 5 */
108
- emeraldGreen: brand.emeraldGreen,
109
- // Ruby Red — Figma scale + brand swatch
110
- rubyRed0: rubyRed["0"],
111
- rubyRed50: rubyRed["0.5"],
112
- rubyRed100: rubyRed["1"],
113
- rubyRed150: rubyRed["1.5"],
114
- rubyRed200: rubyRed["2"],
115
- rubyRed300: rubyRed["3"],
116
- rubyRed400: rubyRed["4"],
117
- rubyRed500: rubyRed["5"],
118
- rubyRed600: rubyRed["6"],
119
- rubyRed700: rubyRed["7"],
120
- rubyRed800: rubyRed["8"],
121
- rubyRed850: rubyRed["8.5"],
122
- /** Primary brand ruby red — Figma Ruby Red 5 */
123
- rubyRed: brand.rubyRed,
124
- // Navy — Figma scale + brand swatch
125
- navy0: navy["0"],
126
- navy50: navy["0.5"],
127
- navy100: navy["1"],
128
- navy150: navy["1.5"],
129
- navy200: navy["2"],
130
- navy300: navy["3"],
131
- navy400: navy["4"],
132
- navy500: navy["5"],
133
- navy600: navy["6"],
134
- navy700: navy["7"],
135
- navy800: navy["8"],
136
- navy850: navy["8.5"],
137
- /** Primary brand navy — Figma Navy 5 */
138
- navy: brand.navy,
139
- // Storm Gray — Figma scale + brand swatch
140
- stormGray0: stormGray["0"],
141
- stormGray50: stormGray["0.5"],
142
- stormGray100: stormGray["1"],
143
- stormGray150: stormGray["1.5"],
144
- stormGray200: stormGray["2"],
145
- stormGray300: stormGray["3"],
146
- stormGray400: stormGray["4"],
147
- stormGray500: stormGray["5"],
148
- /** Figma brand swatch "Storm Gray" — same as `stormGray500` */
149
- stormGrayBrand: brand.stormGray,
150
- stormGray600: stormGray["6"],
151
- stormGray700: stormGray["7"],
152
- stormGray800: stormGray["8"],
153
- stormGray850: stormGray["8.5"],
154
- /** @deprecated Use `stormGray0` */
155
- storm0: stormGray["0"],
156
- /** @deprecated Use `stormGray50` */
157
- storm50: stormGray["0.5"],
158
- /** @deprecated Use `stormGray200` */
159
- storm200: stormGray["2"],
160
- /** @deprecated Use `stormGray300` */
161
- storm300: stormGray["3"],
162
- /** @deprecated Use `stormGray500` */
163
- storm500: stormGray["5"],
164
- /** @deprecated Use `stormGray700` */
165
- storm700: stormGray["7"],
166
- /** @deprecated Use `stormGray850` */
167
- storm900: stormGray["8.5"],
168
- countrySelectorSelectedBg: `${stormGray["0.5"]}99`,
30
+ primary: "#B46436",
31
+ black: "#000000",
169
32
  white: "#ffffff",
170
- error: "#dc2626",
171
- errorDark: "#b3261e",
172
- errorLight: "#fee2e2",
173
- /** @deprecated Use `rubyRed` */
174
- inputError: brand.rubyRed,
175
- inputOutlineFocus: navy["0.5"],
176
- inputOutlineError: rubyRed["0.5"],
177
- warning: "#92400e",
178
- warningBg: "#fef3c7",
179
- success: "#28a745",
180
- successMuted: "#9fd4a8",
181
- /** @deprecated Use `emeraldGreen` */
182
- green: brand.emeraldGreen,
183
- transparent: "transparent"
184
- };
185
- var radii = {
186
- sm: 8,
187
- md: 12,
188
- lg: 16,
189
- xl: 20,
190
- full: 9999
191
- };
192
- var spacing = {
193
- xs: 4,
194
- sm: 8,
195
- md: 12,
196
- lg: 16,
197
- xl: 24,
198
- xxl: 32
199
- };
200
- var fontSize = {
201
- xs: 11,
202
- sm: 12,
203
- md: 14,
204
- base: 16,
205
- lg: 18,
206
- xl: 24,
207
- xxl: 32
208
- };
209
- var typographyScale = {
210
- 12: { fontSize: 12, lineHeight: 16 },
211
- 14: { fontSize: 14, lineHeight: 19 },
212
- 18: { fontSize: 18, lineHeight: 24 },
213
- 20: { fontSize: 20, lineHeight: 27 },
214
- 24: { fontSize: 24, lineHeight: 25 },
215
- 32: { fontSize: 32, lineHeight: 34 }
216
- };
217
- var fontWeight = {
218
- regular: "400",
219
- medium: "500",
220
- semibold: "600",
221
- bold: "700"
33
+ dark: "#090909",
34
+ red: "#A63E3E",
35
+ lightGrey: "#B7B7B7",
36
+ primaryMuted: "#B464360F",
37
+ redMuted: "#A63E3E0F",
38
+ grey0: grey["0"],
39
+ grey50: grey["0.5"],
40
+ grey100: grey["1"],
41
+ grey150: grey["1.5"],
42
+ grey200: grey["2"],
43
+ grey300: grey["3"],
44
+ grey400: grey["4"],
45
+ grey500: grey["5"],
46
+ grey600: grey["6"],
47
+ grey700: grey["7"],
48
+ grey750: grey["7.5"],
49
+ grey800: grey["8"],
50
+ grey850: grey["8.5"],
51
+ grey900: grey["9"],
52
+ grey950: grey["9.5"]
222
53
  };
54
+
55
+ // src/theme/typography.ts
223
56
  var fonts = {
224
57
  sans: "Noto Sans Armenian"
225
58
  };
226
- var labelTypography = {
227
- fontFamily: fonts.sans,
228
- fontSize: typographyScale[12].fontSize,
229
- fontWeight: fontWeight.medium,
230
- lineHeight: typographyScale[12].lineHeight,
231
- letterSpacing: 0
232
- };
233
59
  var buttonTypography = {
234
60
  lg: {
235
61
  fontFamily: fonts.sans,
236
- fontSize: typographyScale[14].fontSize,
237
- fontWeight: fontWeight.semibold,
238
- lineHeight: typographyScale[14].lineHeight,
239
- letterSpacing: 0
62
+ fontSize: 14,
63
+ fontWeight: "600",
64
+ lineHeight: 14,
65
+ letterSpacing: 0.42
240
66
  },
241
67
  sm: {
242
68
  fontFamily: fonts.sans,
243
- fontSize: typographyScale[12].fontSize,
244
- fontWeight: fontWeight.semibold,
245
- lineHeight: typographyScale[12].lineHeight,
246
- letterSpacing: 0
69
+ fontSize: 12,
70
+ fontWeight: "600",
71
+ lineHeight: 12,
72
+ letterSpacing: 0.36
247
73
  }
248
74
  };
249
- var shadows = {
250
- card: {
251
- shadowColor: colors.navy,
252
- shadowOffset: { width: 0, height: 4 },
253
- shadowOpacity: 0.05,
254
- shadowRadius: 20,
255
- elevation: 2
75
+ var inputTypography = {
76
+ label: {
77
+ fontFamily: fonts.sans,
78
+ fontSize: 12,
79
+ fontWeight: "500",
80
+ lineHeight: 16,
81
+ letterSpacing: 0
82
+ },
83
+ field: {
84
+ fontFamily: fonts.sans,
85
+ fontSize: 14,
86
+ fontWeight: "400",
87
+ lineHeight: 19,
88
+ letterSpacing: 0
256
89
  },
257
- cardLg: {
258
- shadowColor: colors.navy,
259
- shadowOffset: { width: 0, height: 4 },
260
- shadowOpacity: 0.1,
261
- shadowRadius: 20,
262
- elevation: 4
90
+ hint: {
91
+ fontFamily: fonts.sans,
92
+ fontSize: 12,
93
+ fontWeight: "400",
94
+ lineHeight: 16,
95
+ letterSpacing: 0
263
96
  }
264
97
  };
98
+ function ArrowRightIcon({
99
+ size = 20,
100
+ color = colors.primary,
101
+ strokeWidth = 2
102
+ }) {
103
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
104
+ Path,
105
+ {
106
+ d: ARROW_RIGHT_PATH,
107
+ stroke: color,
108
+ strokeWidth,
109
+ strokeLinecap: "round",
110
+ strokeLinejoin: "round"
111
+ }
112
+ ) });
113
+ }
114
+
115
+ // src/icons/Bag/bagPath.ts
116
+ var BAG_PATH = "M9.23047 9H7.2002C6.08009 9 5.51962 9 5.0918 9.21799C4.71547 9.40973 4.40973 9.71547 4.21799 10.0918C4 10.5196 4 11.0801 4 12.2002V17.8002C4 18.9203 4 19.4801 4.21799 19.9079C4.40973 20.2842 4.71547 20.5905 5.0918 20.7822C5.5192 21 6.07902 21 7.19694 21H16.8031C17.921 21 18.48 21 18.9074 20.7822C19.2837 20.5905 19.5905 20.2842 19.7822 19.9079C20 19.4805 20 18.9215 20 17.8036V12.1969C20 11.079 20 10.5192 19.7822 10.0918C19.5905 9.71547 19.2837 9.40973 18.9074 9.21799C18.4796 9 17.9203 9 16.8002 9H14.7689M9.23047 9H14.7689M9.23047 9C9.10302 9 9 8.89668 9 8.76923V6C9 4.34315 10.3431 3 12 3C13.6569 3 15 4.34315 15 6V8.76923C15 8.89668 14.8964 9 14.7689 9";
117
+ function BagIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
118
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
119
+ Path,
120
+ {
121
+ d: BAG_PATH,
122
+ stroke: color,
123
+ strokeWidth,
124
+ strokeLinecap: "round",
125
+ strokeLinejoin: "round"
126
+ }
127
+ ) });
128
+ }
129
+
130
+ // src/icons/Bell/bellPath.ts
131
+ var BELL_PATH = "M7.5 17.5H12.5M10 2.5C7.23858 2.5 5 4.73858 5 7.5C5 8.51208 5.3007 9.45393 5.81764 10.2411C6.61256 11.4515 7.00967 12.0564 7.06127 12.1467C7.52024 12.9508 7.43573 12.6672 7.49349 13.5913C7.49998 13.6952 7.5 13.8524 7.5 14.1667C7.5 14.6269 7.8731 15 8.33333 15L11.6667 15C12.1269 15 12.5 14.6269 12.5 14.1667C12.5 13.8524 12.5 13.6952 12.5065 13.5913C12.5643 12.6672 12.4793 12.9509 12.9382 12.1467C12.9898 12.0564 13.3876 11.4515 14.1825 10.2411C14.6995 9.45393 15.0002 8.51208 15.0002 7.5C15.0002 4.73858 12.7614 2.5 10 2.5Z";
132
+ function BellIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
133
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
134
+ Path,
135
+ {
136
+ d: BELL_PATH,
137
+ stroke: color,
138
+ strokeWidth,
139
+ strokeLinecap: "round",
140
+ strokeLinejoin: "round"
141
+ }
142
+ ) });
143
+ }
144
+
145
+ // src/icons/Building/buildingPath.ts
146
+ var BUILDING_PATH = "M7.5 9.16659V16.6666M7.5 9.16659H3.83301C3.3663 9.16659 3.13318 9.16659 2.95492 9.25741C2.79811 9.33731 2.67072 9.4647 2.59083 9.6215C2.5 9.79976 2.5 10.0333 2.5 10.5V16.6666H7.5M7.5 9.16659V4.66667C7.5 4.19996 7.5 3.96643 7.59083 3.78817C7.67072 3.63137 7.79811 3.50397 7.95492 3.42408C8.13317 3.33325 8.3663 3.33325 8.83301 3.33325H11.1663C11.6331 3.33325 11.8669 3.33325 12.0452 3.42408C12.202 3.50397 12.329 3.63137 12.4089 3.78817C12.4997 3.96643 12.5 4.19996 12.5 4.66667V6.66659M7.5 16.6666H12.5M12.5 16.6666L17.5 16.6667V8C17.5 7.53329 17.4997 7.29976 17.4089 7.1215C17.329 6.9647 17.2024 6.83731 17.0456 6.75741C16.8674 6.66659 16.6334 6.66659 16.1667 6.66659H12.5M12.5 16.6666V6.66659";
147
+ function BuildingIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
148
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
149
+ Path,
150
+ {
151
+ d: BUILDING_PATH,
152
+ stroke: color,
153
+ strokeWidth,
154
+ strokeLinecap: "round",
155
+ strokeLinejoin: "round"
156
+ }
157
+ ) });
158
+ }
159
+
160
+ // src/icons/Camera/cameraPath.ts
161
+ var CAMERA_PATH = "M9.48898 7H6.2002C5.08009 7 4.51962 7 4.0918 7.21799C3.71547 7.40973 3.40973 7.71547 3.21799 8.0918C3 8.51962 3 9.08009 3 10.2002V15.8002C3 16.9203 3 17.4796 3.21799 17.9074C3.40973 18.2837 3.71547 18.5905 4.0918 18.7822C4.5192 19 5.07899 19 6.19691 19H17.8031C18.921 19 19.48 19 19.9074 18.7822C20.2837 18.5905 20.5905 18.2837 20.7822 17.9074C21 17.48 21 16.921 21 15.8031V10.1969C21 9.07899 21 8.5192 20.7822 8.0918C20.5905 7.71547 20.2837 7.40973 19.9074 7.21799C19.4796 7 18.9203 7 17.8002 7H14.5108M9.48898 7H9.55078M9.48898 7C9.50151 7.00001 9.51468 7 9.52857 7L9.55078 7M9.48898 7C9.38286 6.99995 9.32339 6.99941 9.27637 6.99414C8.68878 6.92835 8.28578 6.36908 8.40918 5.79084C8.42066 5.73703 8.44336 5.66894 8.4883 5.53412L8.49023 5.52841C8.54156 5.37443 8.56723 5.29743 8.59558 5.22949C8.88586 4.53389 9.54322 4.06083 10.2949 4.00541C10.3683 4 10.449 4 10.6113 4H13.3886C13.5509 4 13.6322 4 13.7057 4.00541C14.4574 4.06083 15.114 4.53389 15.4043 5.22949C15.4326 5.29743 15.4584 5.37434 15.5098 5.52832C15.556 5.66699 15.5791 5.73636 15.5908 5.79093C15.7142 6.36917 15.3118 6.92835 14.7242 6.99414C14.6772 6.99941 14.6171 6.99995 14.5108 7M9.55078 7H14.449M14.449 7H14.5108M14.449 7L14.4712 7C14.4851 7 14.4983 7.00001 14.5108 7M12 16C10.3431 16 9 14.6569 9 13C9 11.3431 10.3431 10 12 10C13.6569 10 15 11.3431 15 13C15 14.6569 13.6569 16 12 16Z";
162
+ function CameraIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
163
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
164
+ Path,
165
+ {
166
+ d: CAMERA_PATH,
167
+ stroke: color,
168
+ strokeWidth,
169
+ strokeLinecap: "round",
170
+ strokeLinejoin: "round"
171
+ }
172
+ ) });
173
+ }
174
+
175
+ // src/icons/CheckBadge/checkBadgePath.ts
176
+ var CHECK_BADGE_PATH = "M12.5 8.33317L9.16663 11.6665L7.49996 9.99984M11.0384 2.88233L12.0558 3.74941C12.3122 3.96786 12.6305 4.09992 12.9662 4.12671L14.2987 4.23291C15.0822 4.29543 15.7045 4.91733 15.767 5.70077L15.8729 7.03353C15.8997 7.36925 16.0322 7.68799 16.2507 7.94433L17.1174 8.96152C17.6272 9.5597 17.6272 10.4396 17.1175 11.0378L16.2508 12.0551C16.0323 12.3115 15.9 12.6303 15.8732 12.9661L15.7666 14.2986C15.704 15.082 15.0827 15.7043 14.2993 15.7668L12.9663 15.8732C12.6305 15.9 12.312 16.0317 12.0556 16.2502L11.0384 17.1173C10.4402 17.627 9.55973 17.6271 8.96155 17.1174L7.9443 16.2502C7.68796 16.0318 7.36938 15.8998 7.03365 15.8731L5.70064 15.7668C4.9172 15.7043 4.29588 15.0822 4.23336 14.2987L4.12675 12.9661C4.09996 12.6304 3.96759 12.3118 3.74915 12.0555L2.88245 11.0378C2.37268 10.4397 2.37244 9.56002 2.88221 8.96184L3.74969 7.94418C3.96814 7.68784 4.09923 7.36926 4.12602 7.03353L4.23263 5.70093C4.29515 4.91749 4.91826 4.29535 5.70171 4.23283L7.03324 4.12663C7.36897 4.09984 7.68771 3.96788 7.94404 3.74943L8.96164 2.88233C9.55982 2.37256 10.4402 2.37256 11.0384 2.88233Z";
177
+ function CheckBadgeIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
178
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
179
+ Path,
180
+ {
181
+ d: CHECK_BADGE_PATH,
182
+ stroke: color,
183
+ strokeWidth,
184
+ strokeLinecap: "round",
185
+ strokeLinejoin: "round"
186
+ }
187
+ ) });
188
+ }
189
+
190
+ // src/icons/Clock/clockPath.ts
191
+ var CLOCK_PATH = "M12 7V12H17M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21Z";
192
+ function ClockIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
193
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
194
+ Path,
195
+ {
196
+ d: CLOCK_PATH,
197
+ stroke: color,
198
+ strokeWidth,
199
+ strokeLinecap: "round",
200
+ strokeLinejoin: "round"
201
+ }
202
+ ) });
203
+ }
204
+
205
+ // src/icons/Facebook/facebookPath.ts
206
+ var FACEBOOK_PATH = "M10.0003 1.69922C5.41699 1.69922 1.66699 5.44089 1.66699 10.0492C1.66699 14.2159 4.71699 17.6742 8.70033 18.2992V12.4659H6.58366V10.0492H8.70033V8.20755C8.70033 6.11589 9.94199 4.96589 11.8503 4.96589C12.7587 4.96589 13.7087 5.12422 13.7087 5.12422V7.18255H12.6587C11.6253 7.18255 11.3003 7.82422 11.3003 8.48255V10.0492H13.617L13.242 12.4659H11.3003V18.2992C13.264 17.9891 15.0522 16.9871 16.3419 15.4743C17.6317 13.9614 18.3381 12.0373 18.3337 10.0492C18.3337 5.44089 14.5837 1.69922 10.0003 1.69922Z";
207
+ function FacebookIcon({ size = 20, color = colors.white }) {
208
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: FACEBOOK_PATH, fill: color }) });
209
+ }
210
+
211
+ // src/icons/Home/homePath.ts
212
+ var HOME_PATH = "M1.66675 16.6667H3.33341M3.33341 16.6667H8.33341M3.33341 16.6667V9.54352C3.33341 9.09823 3.33341 8.87548 3.38756 8.66828C3.43554 8.48466 3.51491 8.31089 3.6215 8.15387C3.74178 7.97668 3.90895 7.82974 4.24406 7.53652L8.24538 4.03537C8.86662 3.49178 9.17726 3.21997 9.5271 3.11652C9.83559 3.02529 10.1644 3.02529 10.4729 3.11652C10.823 3.22005 11.1341 3.49212 11.7563 4.03652L15.7563 7.53652C16.0914 7.82974 16.2586 7.97668 16.3789 8.15387C16.4855 8.31089 16.5642 8.48466 16.6122 8.66828C16.6664 8.87548 16.6667 9.09824 16.6667 9.54352V16.6667M8.33341 16.6667H11.6667M8.33341 16.6667V13.3334C8.33341 12.4129 9.07961 11.6667 10.0001 11.6667C10.9206 11.6667 11.6667 12.4129 11.6667 13.3334V16.6667M11.6667 16.6667H16.6667M16.6667 16.6667H18.3334";
213
+ function HomeIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
214
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
215
+ Path,
216
+ {
217
+ d: HOME_PATH,
218
+ stroke: color,
219
+ strokeWidth,
220
+ strokeLinecap: "round",
221
+ strokeLinejoin: "round"
222
+ }
223
+ ) });
224
+ }
225
+
226
+ // src/icons/Instagram/instagramPath.ts
227
+ var INSTAGRAM_PATH = "M6.49984 1.66748H13.4998C16.1665 1.66748 18.3332 3.83415 18.3332 6.50081V13.5008C18.3332 14.7827 17.8239 16.0121 16.9175 16.9185C16.0111 17.8249 14.7817 18.3341 13.4998 18.3341H6.49984C3.83317 18.3341 1.6665 16.1675 1.6665 13.5008V6.50081C1.6665 5.21893 2.17573 3.98956 3.08215 3.08313C3.98858 2.17671 5.21796 1.66748 6.49984 1.66748ZM6.33317 3.33415C5.53752 3.33415 4.77446 3.65022 4.21185 4.21283C3.64924 4.77544 3.33317 5.5385 3.33317 6.33415V13.6675C3.33317 15.3258 4.67484 16.6675 6.33317 16.6675H13.6665C14.4622 16.6675 15.2252 16.3514 15.7878 15.7888C16.3504 15.2262 16.6665 14.4631 16.6665 13.6675V6.33415C16.6665 4.67581 15.3248 3.33415 13.6665 3.33415H6.33317ZM14.3748 4.58415C14.6511 4.58415 14.9161 4.69389 15.1114 4.88924C15.3068 5.08459 15.4165 5.34955 15.4165 5.62581C15.4165 5.90208 15.3068 6.16703 15.1114 6.36238C14.9161 6.55773 14.6511 6.66748 14.3748 6.66748C14.0986 6.66748 13.8336 6.55773 13.6383 6.36238C13.4429 6.16703 13.3332 5.90208 13.3332 5.62581C13.3332 5.34955 13.4429 5.08459 13.6383 4.88924C13.8336 4.69389 14.0986 4.58415 14.3748 4.58415ZM9.99984 5.83415C11.1049 5.83415 12.1647 6.27313 12.9461 7.05454C13.7275 7.83594 14.1665 8.89574 14.1665 10.0008C14.1665 11.1059 13.7275 12.1657 12.9461 12.9471C12.1647 13.7285 11.1049 14.1675 9.99984 14.1675C8.89477 14.1675 7.83496 13.7285 7.05356 12.9471C6.27216 12.1657 5.83317 11.1059 5.83317 10.0008C5.83317 8.89574 6.27216 7.83594 7.05356 7.05454C7.83496 6.27313 8.89477 5.83415 9.99984 5.83415ZM9.99984 7.50081C9.3368 7.50081 8.70091 7.76421 8.23207 8.23305C7.76323 8.70189 7.49984 9.33777 7.49984 10.0008C7.49984 10.6639 7.76323 11.2997 8.23207 11.7686C8.70091 12.2374 9.3368 12.5008 9.99984 12.5008C10.6629 12.5008 11.2988 12.2374 11.7676 11.7686C12.2364 11.2997 12.4998 10.6639 12.4998 10.0008C12.4998 9.33777 12.2364 8.70189 11.7676 8.23305C11.2988 7.76421 10.6629 7.50081 9.99984 7.50081Z";
228
+ function InstagramIcon({ size = 20, color = colors.white }) {
229
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: INSTAGRAM_PATH, fill: color }) });
230
+ }
231
+
232
+ // src/icons/Key/keyPath.ts
233
+ var KEY_PATH = "M5.28673 10.0002L7.0545 11.768M7.6435 7.64301L9.41127 9.41078M10.0003 5.28624L11.768 7.05401M4.22553 11.0604L11.0609 4.22505C11.7209 3.56502 12.0513 3.235 12.4318 3.11136C12.7666 3.00259 13.127 3.00259 13.4618 3.11136C13.8421 3.23494 14.1718 3.56464 14.8311 4.22393L15.775 5.16785C16.4351 5.82788 16.7654 6.15867 16.8891 6.53922C16.9979 6.87396 16.9976 7.23381 16.8889 7.56855C16.7652 7.9491 16.4353 8.27937 15.7753 8.9394L8.93989 15.7748C8.27986 16.4348 7.94959 16.7647 7.56904 16.8884C7.2343 16.9971 6.87445 16.9974 6.53971 16.8886C6.15916 16.765 5.82837 16.4346 5.16834 15.7745L4.22441 14.8306C3.56513 14.1713 3.23542 13.8416 3.11185 13.4613C3.00308 13.1266 3.00308 12.7661 3.11185 12.4313C3.23549 12.0508 3.56551 11.7204 4.22553 11.0604Z";
234
+ function KeyIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
235
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
236
+ Path,
237
+ {
238
+ d: KEY_PATH,
239
+ stroke: color,
240
+ strokeWidth,
241
+ strokeLinecap: "round",
242
+ strokeLinejoin: "round"
243
+ }
244
+ ) });
245
+ }
246
+
247
+ // src/icons/LinkedIn/linkedinPath.ts
248
+ var LINKEDIN_PATH = "M15.8333 2.50098C16.2754 2.50098 16.6993 2.67657 17.0118 2.98913C17.3244 3.30169 17.5 3.72562 17.5 4.16764V15.8343C17.5 16.2763 17.3244 16.7003 17.0118 17.0128C16.6993 17.3254 16.2754 17.501 15.8333 17.501H4.16667C3.72464 17.501 3.30072 17.3254 2.98816 17.0128C2.67559 16.7003 2.5 16.2763 2.5 15.8343V4.16764C2.5 3.72562 2.67559 3.30169 2.98816 2.98913C3.30072 2.67657 3.72464 2.50098 4.16667 2.50098H15.8333ZM15.4167 15.4176V11.001C15.4167 10.2805 15.1304 9.58948 14.621 9.08C14.1115 8.57053 13.4205 8.28431 12.7 8.28431C11.9917 8.28431 11.1667 8.71764 10.7667 9.36764V8.44264H8.44167V15.4176H10.7667V11.3093C10.7667 10.6676 11.2833 10.1426 11.925 10.1426C12.2344 10.1426 12.5312 10.2656 12.75 10.4844C12.9687 10.7031 13.0917 10.9999 13.0917 11.3093V15.4176H15.4167ZM5.73333 7.13431C6.10464 7.13431 6.46073 6.98681 6.72328 6.72426C6.98583 6.46171 7.13333 6.10561 7.13333 5.73431C7.13333 4.95931 6.50833 4.32598 5.73333 4.32598C5.35982 4.32598 5.0016 4.47435 4.73749 4.73847C4.47338 5.00258 4.325 5.3608 4.325 5.73431C4.325 6.50931 4.95833 7.13431 5.73333 7.13431ZM6.89167 15.4176V8.44264H4.58333V15.4176H6.89167Z";
249
+ function LinkedInIcon({ size = 20, color = colors.white }) {
250
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(Path, { d: LINKEDIN_PATH, fill: color }) });
251
+ }
252
+
253
+ // src/icons/Mail/mailPath.ts
254
+ var MAIL_PATH = "M3.33333 4.99984L8.42303 8.84339L8.42473 8.8448C8.98987 9.25924 9.27261 9.46658 9.5823 9.54668C9.85602 9.61748 10.1438 9.61748 10.4175 9.54668C10.7274 9.46651 11.011 9.25856 11.5771 8.84339C11.5771 8.84339 14.8417 6.33812 16.6667 4.99984M2.5 13.1667V6.83333C2.5 5.89991 2.5 5.43285 2.68166 5.07633C2.84144 4.76273 3.09623 4.50795 3.40983 4.34816C3.76635 4.1665 4.23341 4.1665 5.16683 4.1665H14.8335C15.7669 4.1665 16.233 4.1665 16.5895 4.34816C16.9031 4.50795 17.1587 4.76273 17.3185 5.07633C17.5 5.43251 17.5 5.899 17.5 6.8306V13.1695C17.5 14.1011 17.5 14.5669 17.3185 14.9231C17.1587 15.2367 16.9031 15.4919 16.5895 15.6517C16.2333 15.8332 15.7675 15.8332 14.8359 15.8332H5.16409C4.23249 15.8332 3.766 15.8332 3.40983 15.6517C3.09623 15.4919 2.84144 15.2367 2.68166 14.9231C2.5 14.5666 2.5 14.1001 2.5 13.1667Z";
255
+ function MailIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
256
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
257
+ Path,
258
+ {
259
+ d: MAIL_PATH,
260
+ stroke: color,
261
+ strokeWidth,
262
+ strokeLinecap: "round",
263
+ strokeLinejoin: "round"
264
+ }
265
+ ) });
266
+ }
267
+
268
+ // src/icons/Navigate/navigatePath.ts
269
+ var NAVIGATE_PATH = "M5.691 14.2339C11.5836 17.7694 16.2976 13.0554 15.7084 4.21658C6.86968 3.62732 2.15584 8.34151 5.691 14.2339ZM5.691 14.2339C5.69093 14.2338 5.69107 14.234 5.691 14.2339ZM5.691 14.2339L4.16675 15.7576M5.691 14.2339L8.88079 11.0436";
270
+ function NavigateIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
271
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
272
+ Path,
273
+ {
274
+ d: NAVIGATE_PATH,
275
+ stroke: color,
276
+ strokeWidth,
277
+ strokeLinecap: "round",
278
+ strokeLinejoin: "round"
279
+ }
280
+ ) });
281
+ }
282
+
283
+ // src/icons/Phone/phonePath.ts
284
+ var PHONE_PATH = "M7.91872 3.54768C7.66561 2.91492 7.05276 2.5 6.37126 2.5H4.07895C3.20692 2.5 2.5 3.20675 2.5 4.07878C2.5 11.491 8.50898 17.5 15.9212 17.5C16.7933 17.5 17.5 16.793 17.5 15.921L17.5004 13.6283C17.5004 12.9468 17.0856 12.334 16.4528 12.0809L14.2558 11.2024C13.6874 10.9751 13.0402 11.0774 12.57 11.4693L12.0029 11.9422C11.3407 12.4941 10.3664 12.4502 9.75683 11.8407L8.16018 10.2425C7.55066 9.63302 7.50561 8.65945 8.05745 7.99724L8.53027 7.43025C8.92218 6.95996 9.02541 6.31263 8.79805 5.74424L7.91872 3.54768Z";
285
+ function PhoneIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
286
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
287
+ Path,
288
+ {
289
+ d: PHONE_PATH,
290
+ stroke: color,
291
+ strokeWidth,
292
+ strokeLinecap: "round",
293
+ strokeLinejoin: "round"
294
+ }
295
+ ) });
296
+ }
297
+
298
+ // src/icons/Show/showPath.ts
299
+ var SHOW_PATH = "M1.66669 10C1.66669 10 4.16669 4.16667 10 4.16667C15.8334 4.16667 18.3334 10 18.3334 10C18.3334 10 15.8334 15.8333 10 15.8333C4.16669 15.8333 1.66669 10 1.66669 10Z";
300
+ var SHOW_PUPIL_PATH = "M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z";
301
+ function ShowIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
302
+ return /* @__PURE__ */ jsxs(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: [
303
+ /* @__PURE__ */ jsx(
304
+ Path,
305
+ {
306
+ d: SHOW_PATH,
307
+ stroke: color,
308
+ strokeWidth,
309
+ strokeLinecap: "round",
310
+ strokeLinejoin: "round"
311
+ }
312
+ ),
313
+ /* @__PURE__ */ jsx(
314
+ Path,
315
+ {
316
+ d: SHOW_PUPIL_PATH,
317
+ stroke: color,
318
+ strokeWidth,
319
+ strokeLinecap: "round",
320
+ strokeLinejoin: "round"
321
+ }
322
+ )
323
+ ] });
324
+ }
325
+
326
+ // src/icons/User/userPath.ts
327
+ var USER_PATH = "M15.8334 17.5C15.8334 14.2783 13.2217 11.6667 10 11.6667C6.77836 11.6667 4.16669 14.2783 4.16669 17.5M10 9.16667C8.15907 9.16667 6.66669 7.67428 6.66669 5.83333C6.66669 3.99238 8.15907 2.5 10 2.5C11.841 2.5 13.3334 3.99238 13.3334 5.83333C13.3334 7.67428 11.841 9.16667 10 9.16667Z";
328
+ function UserIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
329
+ return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx(
330
+ Path,
331
+ {
332
+ d: USER_PATH,
333
+ stroke: color,
334
+ strokeWidth,
335
+ strokeLinecap: "round",
336
+ strokeLinejoin: "round"
337
+ }
338
+ ) });
339
+ }
340
+
341
+ // src/icons/registry.ts
342
+ var icons = {
343
+ arrowRight: ArrowRightIcon,
344
+ bag: BagIcon,
345
+ bell: BellIcon,
346
+ building: BuildingIcon,
347
+ camera: CameraIcon,
348
+ checkBadge: CheckBadgeIcon,
349
+ clock: ClockIcon,
350
+ facebook: FacebookIcon,
351
+ home: HomeIcon,
352
+ instagram: InstagramIcon,
353
+ key: KeyIcon,
354
+ linkedin: LinkedInIcon,
355
+ mail: MailIcon,
356
+ navigate: NavigateIcon,
357
+ phone: PhoneIcon,
358
+ show: ShowIcon,
359
+ user: UserIcon
360
+ };
361
+ var iconNames = Object.keys(icons);
362
+ var iconGroups = {
363
+ navigation: ["arrowRight", "home", "navigate"],
364
+ actions: ["show", "bell", "camera", "key", "checkBadge"],
365
+ objects: ["bag", "building", "clock", "user"],
366
+ communication: ["mail", "phone"],
367
+ social: ["facebook", "instagram", "linkedin"]
368
+ };
369
+ var iconGroupNames = Object.keys(iconGroups);
370
+ function getIconsByGroup(group) {
371
+ return [...iconGroups[group]];
372
+ }
373
+ function Icon({ name, ...props }) {
374
+ const Component = icons[name];
375
+ return /* @__PURE__ */ jsx(Component, { ...props });
376
+ }
265
377
  function hasClassList(node) {
266
378
  return typeof node === "object" && node !== null && "classList" in node && typeof node.classList?.add === "function";
267
379
  }
@@ -303,60 +415,43 @@ function useApplyWebClassName(ref, className, enabled = true) {
303
415
  }, [ref, className, enabled]);
304
416
  }
305
417
  var variantConfig = {
306
- white: {
307
- backgroundColor: colors.white,
308
- textColor: colors.slateBlue,
309
- iconBadgeBackgroundColor: colors.stormGray150,
310
- iconColor: colors.navy
311
- },
312
418
  primary: {
313
- backgroundColor: colors.navy,
314
- textColor: colors.stormGray0,
419
+ backgroundColor: colors.primary,
420
+ textColor: colors.white,
315
421
  iconBadgeBackgroundColor: colors.white,
316
- iconColor: colors.navy
422
+ iconColor: colors.primary
317
423
  },
318
- green: {
319
- backgroundColor: colors.green,
320
- textColor: colors.stormGray0,
321
- iconBadgeBackgroundColor: colors.white,
322
- iconColor: colors.green
323
- },
324
- gray: {
325
- backgroundColor: colors.stormGray50,
326
- textColor: colors.slateBlue,
327
- iconBadgeBackgroundColor: colors.stormGray150,
328
- iconColor: colors.navy
424
+ secondary: {
425
+ backgroundColor: colors.grey500,
426
+ textColor: colors.white,
427
+ iconBadgeBackgroundColor: colors.grey600,
428
+ iconColor: colors.white
329
429
  }
330
430
  };
331
431
  var sizeConfig = {
332
432
  lg: {
333
- /** Matches Tailwind `h-13` so size stays stable before web classNames attach. */
334
- minHeight: 52,
335
- borderRadius: 16,
336
- paddingTop: 8,
337
- paddingRight: 8,
338
- paddingBottom: 8,
339
- paddingLeft: 24,
340
- paddingHorizontalCentered: 24,
433
+ minHeight: 44,
434
+ borderRadius: 40,
435
+ paddingVertical: 4,
436
+ paddingLeft: 20,
437
+ paddingRightWithIcon: 4,
438
+ paddingRight: 20,
439
+ gap: 20,
341
440
  text: buttonTypography.lg,
342
441
  iconContainerSize: 36,
343
- iconContainerRadius: 12,
344
- iconContainerPadding: 8,
345
442
  iconSize: 20
346
443
  },
347
444
  sm: {
348
- minHeight: 40,
349
- borderRadius: 12,
350
- paddingTop: 8,
351
- paddingRight: 8,
352
- paddingBottom: 8,
353
- paddingLeft: 16,
354
- paddingHorizontalCentered: 16,
445
+ minHeight: 32,
446
+ borderRadius: 40,
447
+ paddingVertical: 6,
448
+ paddingLeft: 12,
449
+ paddingRightWithIcon: 4,
450
+ paddingRight: 12,
451
+ gap: 12,
355
452
  text: buttonTypography.sm,
356
- iconContainerSize: 32,
357
- iconContainerRadius: 8,
358
- iconContainerPadding: 8,
359
- iconSize: 16
453
+ iconContainerSize: 20,
454
+ iconSize: 12
360
455
  }
361
456
  };
362
457
  function Button({
@@ -381,22 +476,22 @@ function Button({
381
476
  const hasCustomChildren = typeof children !== "undefined";
382
477
  const customIcon = icon != null && typeof icon !== "boolean" ? icon : void 0;
383
478
  const hasIcon = showIcon || icon === true || customIcon != null;
384
- const resolvedContainerClassName = [Platform.OS === "web" ? "max-md:px-4!" : "", className].filter(Boolean).join(" ");
385
- useApplyWebClassName(containerRef, resolvedContainerClassName || void 0);
479
+ const resolvedContainerClassName = className?.trim() || void 0;
480
+ useApplyWebClassName(containerRef, resolvedContainerClassName);
386
481
  useApplyWebClassName(textRef, textClassName);
387
- const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowUpRightIcon, { size: metrics.iconSize, color: preset.iconColor });
482
+ const iconNode = customIcon ?? /* @__PURE__ */ jsx(ArrowRightIcon, { size: metrics.iconSize, color: preset.iconColor });
388
483
  const containerStyle = [
389
484
  styles.base,
390
485
  {
391
486
  minHeight: metrics.minHeight,
392
487
  borderRadius: metrics.borderRadius,
393
488
  backgroundColor: preset.backgroundColor,
394
- paddingTop: metrics.paddingTop,
395
- paddingBottom: metrics.paddingBottom,
396
- paddingLeft: hasIcon ? metrics.paddingLeft : metrics.paddingHorizontalCentered,
397
- paddingRight: hasIcon ? metrics.paddingRight : metrics.paddingHorizontalCentered
489
+ paddingTop: metrics.paddingVertical,
490
+ paddingBottom: metrics.paddingVertical,
491
+ paddingLeft: metrics.paddingLeft,
492
+ paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
493
+ gap: hasIcon ? metrics.gap : 0
398
494
  },
399
- hasIcon ? styles.withIcon : styles.centered,
400
495
  disabled && styles.disabled,
401
496
  style
402
497
  ];
@@ -406,7 +501,6 @@ function Button({
406
501
  { color: preset.textColor },
407
502
  Platform.OS === "android" ? styles.labelAndroid : null,
408
503
  !hasIcon && styles.labelCentered,
409
- hasIcon && styles.labelWithIcon,
410
504
  textStyle
411
505
  ];
412
506
  return /* @__PURE__ */ jsxs(
@@ -429,8 +523,7 @@ function Button({
429
523
  {
430
524
  width: metrics.iconContainerSize,
431
525
  height: metrics.iconContainerSize,
432
- borderRadius: metrics.iconContainerRadius,
433
- padding: metrics.iconContainerPadding,
526
+ borderRadius: metrics.iconContainerSize / 2,
434
527
  backgroundColor: preset.iconBadgeBackgroundColor
435
528
  }
436
529
  ],
@@ -445,14 +538,9 @@ var styles = StyleSheet.create({
445
538
  base: {
446
539
  flexDirection: "row",
447
540
  alignItems: "center",
541
+ alignSelf: "flex-start",
448
542
  borderWidth: 0
449
543
  },
450
- centered: {
451
- justifyContent: "center"
452
- },
453
- withIcon: {
454
- justifyContent: "space-between"
455
- },
456
544
  disabled: {
457
545
  opacity: 0.6
458
546
  },
@@ -463,18 +551,252 @@ var styles = StyleSheet.create({
463
551
  labelCentered: {
464
552
  textAlign: "center"
465
553
  },
466
- labelWithIcon: {
554
+ iconContainer: {
555
+ alignItems: "center",
556
+ justifyContent: "center",
557
+ flexShrink: 0
558
+ }
559
+ });
560
+ var DEFAULT_WIDTH = 308;
561
+ var sizeConfig2 = {
562
+ lg: {
563
+ height: 44,
564
+ borderRadius: 60,
565
+ paddingVertical: 12,
566
+ paddingHorizontal: 16,
567
+ gap: 10,
568
+ iconSize: 20,
569
+ text: inputTypography.field
570
+ },
571
+ sm: {
572
+ height: 32,
573
+ borderRadius: 60,
574
+ paddingVertical: 6,
575
+ paddingHorizontal: 12,
576
+ gap: 8,
577
+ iconSize: 16,
578
+ text: inputTypography.hint
579
+ }
580
+ };
581
+ function resolveState({
582
+ state,
583
+ disabled,
584
+ error,
585
+ focused,
586
+ hasValue
587
+ }) {
588
+ if (state) return state;
589
+ if (disabled) return "disabled";
590
+ if (error) return "error";
591
+ if (focused) return "active";
592
+ if (hasValue) return "filled";
593
+ return "default";
594
+ }
595
+ function chromeFor(state) {
596
+ const base = {
597
+ borderColor: colors.grey700,
598
+ backgroundColor: colors.grey700,
599
+ textColor: colors.white,
600
+ placeholderColor: colors.grey100,
601
+ leftIconColor: colors.grey100,
602
+ rightIconColor: colors.grey100,
603
+ labelColor: colors.white,
604
+ hintColor: colors.grey100
605
+ };
606
+ switch (state) {
607
+ case "active":
608
+ return {
609
+ ...base,
610
+ borderColor: colors.primaryMuted,
611
+ leftIconColor: colors.primary
612
+ };
613
+ case "error":
614
+ return {
615
+ ...base,
616
+ borderColor: colors.redMuted,
617
+ textColor: colors.red,
618
+ placeholderColor: colors.red,
619
+ labelColor: colors.red,
620
+ hintColor: colors.red,
621
+ leftIconColor: colors.red
622
+ };
623
+ case "filled":
624
+ return base;
625
+ case "disabled":
626
+ return {
627
+ ...base,
628
+ borderColor: colors.grey700,
629
+ backgroundColor: colors.grey700,
630
+ textColor: colors.grey0,
631
+ leftIconColor: colors.grey0,
632
+ rightIconColor: colors.grey0,
633
+ labelColor: colors.white,
634
+ hintColor: colors.grey100
635
+ };
636
+ default:
637
+ return base;
638
+ }
639
+ }
640
+ function Input({
641
+ label = "Label",
642
+ showLabel = true,
643
+ hint = "Hint",
644
+ showHint = true,
645
+ placeholder = "placeholder",
646
+ state: stateProp,
647
+ size = "lg",
648
+ disabled = false,
649
+ error = false,
650
+ value,
651
+ defaultValue,
652
+ onChangeText,
653
+ onFocus,
654
+ onBlur,
655
+ leftIcon,
656
+ showLeftIcon = false,
657
+ rightIcon,
658
+ showRightIcon = false,
659
+ onRightIconPress,
660
+ style,
661
+ fieldStyle,
662
+ inputStyle,
663
+ className,
664
+ inputClassName,
665
+ ...textInputProps
666
+ }) {
667
+ const rootRef = useRef(null);
668
+ const inputRef = useRef(null);
669
+ const [focused, setFocused] = useState(false);
670
+ const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? "");
671
+ const metrics = sizeConfig2[size];
672
+ const isControlled = typeof value === "string";
673
+ const currentValue = isControlled ? value : uncontrolledValue;
674
+ const hasValue = currentValue.length > 0;
675
+ const resolvedState = resolveState({
676
+ state: stateProp,
677
+ disabled,
678
+ error,
679
+ focused,
680
+ hasValue
681
+ });
682
+ const chrome = chromeFor(resolvedState);
683
+ const isDisabled = resolvedState === "disabled" || disabled;
684
+ const hasLeftIcon = showLeftIcon || leftIcon != null;
685
+ const hasRightIcon = showRightIcon || rightIcon != null;
686
+ const leftIconNode = leftIcon ?? /* @__PURE__ */ jsx(UserIcon, { size: metrics.iconSize, color: chrome.leftIconColor });
687
+ const rightIconNode = rightIcon ?? /* @__PURE__ */ jsx(ShowIcon, { size: metrics.iconSize, color: chrome.rightIconColor });
688
+ useApplyWebClassName(rootRef, className);
689
+ useApplyWebClassName(inputRef, inputClassName);
690
+ return /* @__PURE__ */ jsxs(View, { ref: rootRef, style: [styles2.root, isDisabled && styles2.disabled, style], children: [
691
+ showLabel && label ? /* @__PURE__ */ jsx(Text, { style: [styles2.label, { color: chrome.labelColor }], children: label }) : null,
692
+ /* @__PURE__ */ jsxs(
693
+ View,
694
+ {
695
+ style: [
696
+ styles2.field,
697
+ {
698
+ height: metrics.height,
699
+ borderRadius: metrics.borderRadius,
700
+ paddingTop: metrics.paddingVertical,
701
+ paddingBottom: metrics.paddingVertical,
702
+ paddingLeft: metrics.paddingHorizontal,
703
+ paddingRight: metrics.paddingHorizontal,
704
+ gap: metrics.gap,
705
+ borderColor: chrome.borderColor,
706
+ backgroundColor: chrome.backgroundColor
707
+ },
708
+ fieldStyle
709
+ ],
710
+ children: [
711
+ hasLeftIcon ? /* @__PURE__ */ jsx(View, { style: [styles2.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: leftIconNode }) : null,
712
+ /* @__PURE__ */ jsx(
713
+ TextInput,
714
+ {
715
+ ref: inputRef,
716
+ ...textInputProps,
717
+ value: isControlled ? value : void 0,
718
+ defaultValue: isControlled ? void 0 : defaultValue,
719
+ editable: !isDisabled,
720
+ placeholder,
721
+ placeholderTextColor: chrome.placeholderColor,
722
+ onChangeText: (text) => {
723
+ if (!isControlled) setUncontrolledValue(text);
724
+ onChangeText?.(text);
725
+ },
726
+ onFocus: (event) => {
727
+ setFocused(true);
728
+ onFocus?.(event);
729
+ },
730
+ onBlur: (event) => {
731
+ setFocused(false);
732
+ onBlur?.(event);
733
+ },
734
+ style: [
735
+ styles2.input,
736
+ metrics.text,
737
+ { color: chrome.textColor },
738
+ Platform.OS === "web" ? styles2.inputWeb : null,
739
+ Platform.OS === "android" ? styles2.inputAndroid : null,
740
+ inputStyle
741
+ ],
742
+ accessibilityState: { disabled: isDisabled }
743
+ }
744
+ ),
745
+ hasRightIcon ? onRightIconPress ? /* @__PURE__ */ jsx(
746
+ TouchableOpacity,
747
+ {
748
+ onPress: onRightIconPress,
749
+ disabled: isDisabled,
750
+ style: [styles2.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }],
751
+ accessibilityRole: "button",
752
+ hitSlop: 8,
753
+ children: rightIconNode
754
+ }
755
+ ) : /* @__PURE__ */ jsx(View, { style: [styles2.iconSlot, { width: metrics.iconSize, height: metrics.iconSize }], children: rightIconNode }) : null
756
+ ]
757
+ }
758
+ ),
759
+ showHint && hint ? /* @__PURE__ */ jsx(Text, { style: [styles2.hint, { color: chrome.hintColor }], children: hint }) : null
760
+ ] });
761
+ }
762
+ var styles2 = StyleSheet.create({
763
+ root: {
764
+ width: DEFAULT_WIDTH,
765
+ gap: 8,
766
+ alignSelf: "flex-start"
767
+ },
768
+ disabled: {
769
+ opacity: 0.6
770
+ },
771
+ label: {
772
+ ...inputTypography.label
773
+ },
774
+ field: {
775
+ borderWidth: 1,
776
+ flexDirection: "row",
777
+ alignItems: "center"
778
+ },
779
+ input: {
467
780
  flex: 1,
468
- flexShrink: 1,
469
- marginRight: 8
781
+ paddingVertical: 0,
782
+ margin: 0
470
783
  },
471
- iconContainer: {
784
+ inputWeb: {
785
+ outlineStyle: "none"
786
+ },
787
+ inputAndroid: {
788
+ includeFontPadding: false
789
+ },
790
+ iconSlot: {
472
791
  alignItems: "center",
473
792
  justifyContent: "center",
474
793
  flexShrink: 0
794
+ },
795
+ hint: {
796
+ ...inputTypography.hint
475
797
  }
476
798
  });
477
799
 
478
- export { ArrowUpRightIcon, Button, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale };
800
+ export { ArrowRightIcon, BagIcon, BellIcon, BuildingIcon, Button, CameraIcon, CheckBadgeIcon, ClockIcon, FacebookIcon, HomeIcon, Icon, Input, InstagramIcon, KeyIcon, LinkedInIcon, MailIcon, NavigateIcon, PhoneIcon, ShowIcon, UserIcon, buttonTypography, colors, fonts, getIconsByGroup, grey, iconGroupNames, iconGroups, iconNames, icons, inputTypography };
479
801
  //# sourceMappingURL=index.js.map
480
802
  //# sourceMappingURL=index.js.map