@dev-blinq/ui-systems 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +418 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +46 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +5 -1
- package/build +0 -22
- package/index.html +0 -14
- package/public/colors.css +0 -141
- package/src/components/CustomButton/CustomButton.tsx +0 -42
- package/src/components/CustomButton/CustomButtonProps.ts +0 -12
- package/src/components/CustomButton/CustomButtonTypes.ts +0 -28
- package/src/components/CustomButton/css/color/default.css +0 -84
- package/src/components/CustomButton/css/color/disabled.css +0 -58
- package/src/components/CustomButton/css/color/focused.css +0 -39
- package/src/components/CustomButton/css/color/hover.css +0 -39
- package/src/components/CustomButton/css/customButton.css +0 -73
- package/src/components/CustomButton/css/index.css +0 -6
- package/src/components/CustomButton/css/size.css +0 -23
- package/src/components/CustomCheckbox.tsx +0 -24
- package/src/components/CustomInput/ChooseInput.tsx +0 -36
- package/src/components/CustomInput/CustomInput.tsx +0 -43
- package/src/components/CustomInput/CustomInputProps.ts +0 -40
- package/src/components/CustomInput/css/index.css +0 -7
- package/src/components/CustomInput/css/input.css +0 -76
- package/src/components/CustomInput/css/size.css +0 -3
- package/src/components/CustomInput/css/state/default.css +0 -0
- package/src/components/CustomInput/css/state/disabled.css +0 -5
- package/src/components/CustomInput/css/state/error.css +0 -3
- package/src/components/CustomInput/css/state/filled.css +0 -0
- package/src/components/CustomInput/css/state/focused.css +0 -6
- package/src/components/CustomInput/css/state/hover.css +0 -5
- package/src/components/CustomInput/types/Action.tsx +0 -34
- package/src/components/CustomInput/types/CreditCard.tsx +0 -25
- package/src/components/CustomInput/types/Currency.tsx +0 -68
- package/src/components/CustomInput/types/Date.tsx +0 -20
- package/src/components/CustomInput/types/Link.tsx +0 -32
- package/src/components/CustomInput/types/Number.tsx +0 -23
- package/src/components/CustomInput/types/Password.tsx +0 -30
- package/src/components/CustomInput/types/Telephone.tsx +0 -0
- package/src/components/CustomInput/types/Text.tsx +0 -27
- package/src/components/Typography/Typography.tsx +0 -28
- package/src/components/Typography/css/bold.css +0 -20
- package/src/components/Typography/css/category/display.css +0 -20
- package/src/components/Typography/css/category/heading.css +0 -41
- package/src/components/Typography/css/category/text.css +0 -48
- package/src/components/Typography/css/index.css +0 -4
- package/src/icons/details.tsx +0 -10
- package/src/icons/index.tsx +0 -2
- package/src/icons/lock.tsx +0 -29
- package/src/icons/mail.svg +0 -4
- package/src/icons/mail.tsx +0 -23
- package/src/icons/password-eye.tsx +0 -10
- package/src/index.ts +0 -3
- package/src/playground/App.tsx +0 -105
- package/src/playground/main.tsx +0 -9
- package/src/svg.d.ts +0 -5
- package/tsconfig.json +0 -17
- package/tsup.config.ts +0 -10
package/dist/index.css
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
/* src/components/CustomButton/css/customButton.css */
|
|
2
|
+
.button {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition: all 0.3s ease;
|
|
10
|
+
border: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* src/components/CustomButton/css/size.css */
|
|
14
|
+
.button[data-size=sm] {
|
|
15
|
+
padding: 8px 12px;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
}
|
|
19
|
+
.button[data-size=md] {
|
|
20
|
+
padding: 10px 14px;
|
|
21
|
+
gap: 8px;
|
|
22
|
+
border-radius: 12px;
|
|
23
|
+
}
|
|
24
|
+
.button[data-size=lg] {
|
|
25
|
+
padding: 12px 16px;
|
|
26
|
+
gap: 10px;
|
|
27
|
+
border-radius: 12px;
|
|
28
|
+
}
|
|
29
|
+
.button[data-size=xl] {
|
|
30
|
+
padding: 16px 24px;
|
|
31
|
+
gap: 12px;
|
|
32
|
+
border-radius: 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* src/components/CustomButton/css/color/default.css */
|
|
36
|
+
.button[data-colorHierarchy="brand/primary"] {
|
|
37
|
+
background-color: var(--primary-main);
|
|
38
|
+
}
|
|
39
|
+
.button[data-colorHierarchy="brand/primary"] .input-typography {
|
|
40
|
+
color: #fff;
|
|
41
|
+
}
|
|
42
|
+
.button[data-colorHierarchy="gray/secondary"] {
|
|
43
|
+
background-color: #f1f1f1;
|
|
44
|
+
}
|
|
45
|
+
.button[data-colorHierarchy="gray/secondary"] .input-typography {
|
|
46
|
+
color: #080808;
|
|
47
|
+
}
|
|
48
|
+
.button[data-colorHierarchy="white/secondary"] {
|
|
49
|
+
background-color: #fff;
|
|
50
|
+
box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);
|
|
51
|
+
border: var(--border-radius-radius-none, 1px) solid var(--border-default, #e6e6e6);
|
|
52
|
+
}
|
|
53
|
+
.button[data-colorHierarchy="white/secondary"] .input-typography {
|
|
54
|
+
color: #080808;
|
|
55
|
+
}
|
|
56
|
+
.button[data-colorHierarchy="gray/linkContainer"] {
|
|
57
|
+
background-color: #fff;
|
|
58
|
+
}
|
|
59
|
+
.button[data-colorHierarchy="gray/linkContainer"] .input-typography {
|
|
60
|
+
color: #080808;
|
|
61
|
+
}
|
|
62
|
+
.button[data-colorHierarchy="gray/link"] {
|
|
63
|
+
background-color: #fff;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
.button[data-colorHierarchy="gray/link"] .input-typography {
|
|
67
|
+
color: #080808;
|
|
68
|
+
}
|
|
69
|
+
.button[data-colorHierarchy="brand/link"] {
|
|
70
|
+
background-color: #fff;
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
.button[data-colorHierarchy="brand/link"] .input-typography {
|
|
74
|
+
color: var(--primary-main);
|
|
75
|
+
}
|
|
76
|
+
.button[data-colorHierarchy="destructive/primary"] {
|
|
77
|
+
background: var(--surface-error, #ea4621);
|
|
78
|
+
}
|
|
79
|
+
.button[data-colorHierarchy="destructive/primary"] .input-typography {
|
|
80
|
+
color: #fff;
|
|
81
|
+
}
|
|
82
|
+
.button[data-colorHierarchy="destructive/secondary"] {
|
|
83
|
+
background: var(--surface-error-secondary, #fdece9);
|
|
84
|
+
}
|
|
85
|
+
.button[data-colorHierarchy="destructive/secondary"] .input-typography {
|
|
86
|
+
color: var(--text-error, #ea4621);
|
|
87
|
+
}
|
|
88
|
+
.button[data-colorHierarchy="destructive/linkContainer"] {
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
}
|
|
91
|
+
.button[data-colorHierarchy="destructive/linkContainer"] .input-typography {
|
|
92
|
+
color: var(--text-error, #ea4621);
|
|
93
|
+
}
|
|
94
|
+
.button[data-colorHierarchy=""] {
|
|
95
|
+
background-color: #fff;
|
|
96
|
+
padding: 0;
|
|
97
|
+
}
|
|
98
|
+
.button[data-colorHierarchy=""] .input-typography {
|
|
99
|
+
color: var(--text-error, #ea4621);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* src/components/CustomButton/css/color/hover.css */
|
|
103
|
+
.button[data-colorHierarchy="brand/primary"]:hover {
|
|
104
|
+
background: var(--surface-primary-hover, #08379e);
|
|
105
|
+
}
|
|
106
|
+
.button[data-colorHierarchy="gray/secondary"]:hover {
|
|
107
|
+
background: var(--surface-secondary-hover, #ececed);
|
|
108
|
+
}
|
|
109
|
+
.button[data-colorHierarchy="white/secondary"]:hover {
|
|
110
|
+
background: var(--surface-white---hover, #f9f9f9);
|
|
111
|
+
}
|
|
112
|
+
.button[data-colorHierarchy="gray/linkContainer"]:hover {
|
|
113
|
+
background: var(--surface-secondary, #f1f1f1);
|
|
114
|
+
}
|
|
115
|
+
.button[data-colorHierarchy="gray/link"]:hover {
|
|
116
|
+
background-color: #fff;
|
|
117
|
+
}
|
|
118
|
+
.button[data-colorHierarchy="brand/link"]:hover {
|
|
119
|
+
background-color: #fff;
|
|
120
|
+
}
|
|
121
|
+
.button[data-colorHierarchy="destructive/primary"]:hover {
|
|
122
|
+
background: var(--surface-error-hover, #d33f1e);
|
|
123
|
+
}
|
|
124
|
+
.button[data-colorHierarchy="destructive/secondary"]:hover {
|
|
125
|
+
background: var(--surface-error-secondary-hover, #fbdad3);
|
|
126
|
+
}
|
|
127
|
+
.button[data-colorHierarchy="destructive/linkContainer"]:hover {
|
|
128
|
+
background: var(--colors-red-5, #fef6f4);
|
|
129
|
+
}
|
|
130
|
+
.button[data-colorHierarchy=""]:hover {
|
|
131
|
+
background-color: #fff;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* src/components/CustomButton/css/color/focused.css */
|
|
135
|
+
.button[data-colorHierarchy="brand/primary"]:focus {
|
|
136
|
+
box-shadow: 0px 0px 0px 4px var(--primary-30, #b5c5e7);
|
|
137
|
+
}
|
|
138
|
+
.button[data-colorHierarchy="gray/secondary"]:focus {
|
|
139
|
+
box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);
|
|
140
|
+
}
|
|
141
|
+
.button[data-colorHierarchy="white/secondary"]:focus {
|
|
142
|
+
box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);
|
|
143
|
+
}
|
|
144
|
+
.button[data-colorHierarchy="gray/linkContainer"]:focus {
|
|
145
|
+
box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);
|
|
146
|
+
}
|
|
147
|
+
.button[data-colorHierarchy="gray/link"]:focus {
|
|
148
|
+
box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);
|
|
149
|
+
}
|
|
150
|
+
.button[data-colorHierarchy="brand/link"]:focus {
|
|
151
|
+
box-shadow: 0px 0px 0px 4px var(--primary-30, #b5c5e7);
|
|
152
|
+
}
|
|
153
|
+
.button[data-colorHierarchy="destructive/primary"]:focus {
|
|
154
|
+
box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);
|
|
155
|
+
}
|
|
156
|
+
.button[data-colorHierarchy="destructive/secondary"]:focus {
|
|
157
|
+
box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);
|
|
158
|
+
}
|
|
159
|
+
.button[data-colorHierarchy="destructive/linkContainer"]:focus {
|
|
160
|
+
box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);
|
|
161
|
+
}
|
|
162
|
+
.button[data-colorHierarchy=""]:focus {
|
|
163
|
+
box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* src/components/CustomButton/css/color/disabled.css */
|
|
167
|
+
.button[data-colorHierarchy="brand/primary"]:disabled {
|
|
168
|
+
background: var(--surface-disabled, #f1f1f1);
|
|
169
|
+
}
|
|
170
|
+
.button:disabled .input-typography {
|
|
171
|
+
color: var(--text-disabled, #939197);
|
|
172
|
+
}
|
|
173
|
+
.button[data-colorHierarchy="gray/secondary"]:disabled {
|
|
174
|
+
background: var(--surface-disabled, #f1f1f1);
|
|
175
|
+
}
|
|
176
|
+
.button[data-colorHierarchy="white/secondary"]:disabled {
|
|
177
|
+
background: var(--surface-white---disabled, #fdfdfd);
|
|
178
|
+
}
|
|
179
|
+
.button[data-colorHierarchy="brand/link"]:disabled .input-typography {
|
|
180
|
+
color: var(--text-action-disabled, #849ed7);
|
|
181
|
+
}
|
|
182
|
+
.button[data-colorHierarchy="destructive/primary"]:disabled {
|
|
183
|
+
background: var(--surface-error-disabled, #fdece9);
|
|
184
|
+
}
|
|
185
|
+
.button[data-colorHierarchy="destructive/primary"]:disabled .input-typography {
|
|
186
|
+
color: var(--text-error-disabled, #f5a290);
|
|
187
|
+
}
|
|
188
|
+
.button[data-colorHierarchy="destructive/secondary"]:disabled {
|
|
189
|
+
background: var(--surface-error-disabled, #fdece9);
|
|
190
|
+
}
|
|
191
|
+
.button[data-colorHierarchy="destructive/secondary"]:disabled .input-typography {
|
|
192
|
+
color: var(--text-error-disabled, #f5a290);
|
|
193
|
+
}
|
|
194
|
+
.button[data-colorHierarchy="destructive/linkContainer"]:disabled .input-typography {
|
|
195
|
+
color: var(--text-error-disabled, #f5a290);
|
|
196
|
+
}
|
|
197
|
+
.button[data-colorHierarchy="destructive/link"]:disabled .input-typography {
|
|
198
|
+
color: var(--text-error-disabled, #f5a290);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* src/components/Typography/css/bold.css */
|
|
202
|
+
.TypographyCustom {
|
|
203
|
+
color: var(--Gray-110, var(--colors-greyscale-110, #2d2b32));
|
|
204
|
+
}
|
|
205
|
+
.TypographyCustom[data-bold=extrabold] {
|
|
206
|
+
font-weight: 800;
|
|
207
|
+
}
|
|
208
|
+
.TypographyCustom[data-bold=bold] {
|
|
209
|
+
font-weight: 700;
|
|
210
|
+
}
|
|
211
|
+
.TypographyCustom[data-bold=semibold] {
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
}
|
|
214
|
+
.TypographyCustom[data-bold=medium] {
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* src/components/Typography/css/category/display.css */
|
|
219
|
+
.TypographyCustom[data-category=display][data-size=lg] {
|
|
220
|
+
font-size: 180px;
|
|
221
|
+
font-style: normal;
|
|
222
|
+
line-height: 188px;
|
|
223
|
+
letter-spacing: -9px;
|
|
224
|
+
}
|
|
225
|
+
.TypographyCustom[data-category=display][data-size=md] {
|
|
226
|
+
font-size: 128px;
|
|
227
|
+
font-style: normal;
|
|
228
|
+
line-height: 136px;
|
|
229
|
+
letter-spacing: -5.12px;
|
|
230
|
+
}
|
|
231
|
+
.TypographyCustom[data-category=display][data-size=sm] {
|
|
232
|
+
font-size: 96px;
|
|
233
|
+
font-style: normal;
|
|
234
|
+
line-height: 104px;
|
|
235
|
+
letter-spacing: -2.88px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* src/components/Typography/css/category/heading.css */
|
|
239
|
+
.TypographyCustom[data-category=heading][data-size=xxl] {
|
|
240
|
+
font-size: 72px;
|
|
241
|
+
font-style: normal;
|
|
242
|
+
line-height: 80px;
|
|
243
|
+
letter-spacing: -1.44px;
|
|
244
|
+
}
|
|
245
|
+
.TypographyCustom[data-category=heading][data-size=xl] {
|
|
246
|
+
font-size: 60px;
|
|
247
|
+
font-style: normal;
|
|
248
|
+
line-height: 68px;
|
|
249
|
+
letter-spacing: -1.08px;
|
|
250
|
+
}
|
|
251
|
+
.TypographyCustom[data-category=heading][data-size=lg] {
|
|
252
|
+
font-size: 48px;
|
|
253
|
+
font-style: normal;
|
|
254
|
+
line-height: 56px;
|
|
255
|
+
letter-spacing: -0.768px;
|
|
256
|
+
}
|
|
257
|
+
.TypographyCustom[data-category=heading][data-size=md] {
|
|
258
|
+
font-size: 36px;
|
|
259
|
+
font-style: normal;
|
|
260
|
+
line-height: 44px;
|
|
261
|
+
letter-spacing: -0.504px;
|
|
262
|
+
}
|
|
263
|
+
.TypographyCustom[data-category=heading][data-size=sm] {
|
|
264
|
+
font-size: 30px;
|
|
265
|
+
font-style: normal;
|
|
266
|
+
line-height: 38px;
|
|
267
|
+
letter-spacing: -0.39px;
|
|
268
|
+
}
|
|
269
|
+
.TypographyCustom[data-category=heading][data-size=xs] {
|
|
270
|
+
font-size: 24px;
|
|
271
|
+
font-style: normal;
|
|
272
|
+
line-height: 32px;
|
|
273
|
+
letter-spacing: -0.288px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* src/components/Typography/css/category/text.css */
|
|
277
|
+
.TypographyCustom[data-category=text][data-size=xxl] {
|
|
278
|
+
font-size: 24px;
|
|
279
|
+
font-style: normal;
|
|
280
|
+
line-height: 32px;
|
|
281
|
+
letter-spacing: -0.288px;
|
|
282
|
+
}
|
|
283
|
+
.TypographyCustom[data-category=text][data-size=xl] {
|
|
284
|
+
font-size: 20px;
|
|
285
|
+
font-style: normal;
|
|
286
|
+
line-height: 28px;
|
|
287
|
+
letter-spacing: -0.2px;
|
|
288
|
+
}
|
|
289
|
+
.TypographyCustom[data-category=text][data-size=lg] {
|
|
290
|
+
font-size: 18px;
|
|
291
|
+
font-style: normal;
|
|
292
|
+
line-height: 24px;
|
|
293
|
+
letter-spacing: -0.144px;
|
|
294
|
+
}
|
|
295
|
+
.TypographyCustom[data-category=text][data-size=md] {
|
|
296
|
+
font-size: 16px;
|
|
297
|
+
font-style: normal;
|
|
298
|
+
line-height: 22px;
|
|
299
|
+
letter-spacing: -0.112px;
|
|
300
|
+
}
|
|
301
|
+
.TypographyCustom[data-category=text][data-size=sm] {
|
|
302
|
+
font-size: 14px;
|
|
303
|
+
font-style: normal;
|
|
304
|
+
line-height: 20px;
|
|
305
|
+
letter-spacing: -0.084px;
|
|
306
|
+
}
|
|
307
|
+
.TypographyCustom[data-category=text][data-size=xs] {
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
font-style: normal;
|
|
310
|
+
line-height: 16px;
|
|
311
|
+
letter-spacing: -0.06px;
|
|
312
|
+
}
|
|
313
|
+
.TypographyCustom[data-category=text][data-size=xxs] {
|
|
314
|
+
font-size: 10px;
|
|
315
|
+
font-style: normal;
|
|
316
|
+
line-height: 14px;
|
|
317
|
+
letter-spacing: -0.04px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* src/components/Typography/css/index.css */
|
|
321
|
+
|
|
322
|
+
/* src/components/CustomInput/css/input.css */
|
|
323
|
+
.custom-input {
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-direction: row;
|
|
326
|
+
padding: 12px;
|
|
327
|
+
align-items: center;
|
|
328
|
+
gap: 12px;
|
|
329
|
+
width: 296px;
|
|
330
|
+
align-self: stretch;
|
|
331
|
+
border-radius: var(--border-radius-radius-pre-lg, 12px);
|
|
332
|
+
border: 1px solid var(--border-default, #e6e6e6);
|
|
333
|
+
background: var(--surface-white, #fff);
|
|
334
|
+
box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);
|
|
335
|
+
}
|
|
336
|
+
.custom-input input {
|
|
337
|
+
width: 100%;
|
|
338
|
+
border: none;
|
|
339
|
+
}
|
|
340
|
+
.custom-input input::placeholder {
|
|
341
|
+
color: var(--text-disabled, #939197);
|
|
342
|
+
font-weight: 500;
|
|
343
|
+
}
|
|
344
|
+
.custom-input input:hover,
|
|
345
|
+
.custom-input input:focus,
|
|
346
|
+
.custom-input input:active {
|
|
347
|
+
border: none;
|
|
348
|
+
outline: none;
|
|
349
|
+
}
|
|
350
|
+
.custom-input .left-icon,
|
|
351
|
+
.custom-input .right-icon {
|
|
352
|
+
display: flex;
|
|
353
|
+
align-items: center;
|
|
354
|
+
justify-content: center;
|
|
355
|
+
}
|
|
356
|
+
.custom-input input {
|
|
357
|
+
font-family: var(--font-family);
|
|
358
|
+
color: var(--text-primary, #080808);
|
|
359
|
+
font-weight: 600;
|
|
360
|
+
font-size: 14px;
|
|
361
|
+
font-style: normal;
|
|
362
|
+
}
|
|
363
|
+
.custom-input .grey-box {
|
|
364
|
+
margin: -12px;
|
|
365
|
+
padding: 12px;
|
|
366
|
+
gap: 6px;
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: row;
|
|
369
|
+
background: #f9f9f9;
|
|
370
|
+
}
|
|
371
|
+
.custom-input .grey-right-box {
|
|
372
|
+
padding: 12px;
|
|
373
|
+
border-top-right-radius: 12px;
|
|
374
|
+
border-bottom-right-radius: 12px;
|
|
375
|
+
border-left: 1px solid #e6e6e6;
|
|
376
|
+
}
|
|
377
|
+
.custom-input .grey-left-box {
|
|
378
|
+
padding: 12px 14px;
|
|
379
|
+
border-top-left-radius: 12px;
|
|
380
|
+
border-bottom-left-radius: 12px;
|
|
381
|
+
border-right: 1px solid #e6e6e6;
|
|
382
|
+
}
|
|
383
|
+
.custom-input select:focus {
|
|
384
|
+
border: none;
|
|
385
|
+
outline: none;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* src/components/CustomInput/css/state/default.css */
|
|
389
|
+
|
|
390
|
+
/* src/components/CustomInput/css/state/hover.css */
|
|
391
|
+
.custom-input:hover {
|
|
392
|
+
border: var(--border-radius-radius-none, 1px) solid var(--border-hover, #c9c9cc);
|
|
393
|
+
box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* src/components/CustomInput/css/state/focused.css */
|
|
397
|
+
.custom-input:focus-within {
|
|
398
|
+
border: var(--border-radius-radius-none, 1px) solid var(--border-default, #e6e6e6);
|
|
399
|
+
background: var(--surface-white, #fff);
|
|
400
|
+
box-shadow: 0px 0px 0px 4px var(--primary-30, #b5c5e7);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* src/components/CustomInput/css/state/disabled.css */
|
|
404
|
+
.custom-input:has(input:disabled) {
|
|
405
|
+
border-radius: var(--border-radius-radius-pre-lg, 12px);
|
|
406
|
+
border: var(--border-radius-radius-none, 1px) solid var(--border-default, #e6e6e6);
|
|
407
|
+
background: var(--surface-disabled, #f1f1f1);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* src/components/CustomInput/css/state/error.css */
|
|
411
|
+
.custom-input[data-error=true] {
|
|
412
|
+
border: var(--border-radius-radius-none, 1px) solid var(--border-error, #ea4621);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* src/components/CustomInput/css/state/filled.css */
|
|
416
|
+
|
|
417
|
+
/* src/components/CustomInput/css/index.css */
|
|
418
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/CustomButton/css/customButton.css","../src/components/CustomButton/css/size.css","../src/components/CustomButton/css/color/default.css","../src/components/CustomButton/css/color/hover.css","../src/components/CustomButton/css/color/focused.css","../src/components/CustomButton/css/color/disabled.css","../src/components/Typography/css/bold.css","../src/components/Typography/css/category/display.css","../src/components/Typography/css/category/heading.css","../src/components/Typography/css/category/text.css","../src/components/CustomInput/css/input.css","../src/components/CustomInput/css/state/hover.css","../src/components/CustomInput/css/state/focused.css","../src/components/CustomInput/css/state/disabled.css","../src/components/CustomInput/css/state/error.css"],"sourcesContent":[".button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.3s ease;\n border: none;\n}\n\n/* .button[data-color='brand'] {\n background-color: var(--brand-color, #093DB0);\n color: #fff;\n}\n\n.button[data-color='gray'] {\n background-color: var(--gray-color, #6c757d);\n color: #fff;\n}\n\n.button[data-color='destructive'] {\n background-color: var(--destructive-color, #dc3545);\n color: #fff;\n} */\n\n/* .button[data-color='white'] {\n background-color: #fff;\n color: #000;\n border: 1px solid var(--gray-color, #6c757d);\n} */\n\n/* .button[data-hierarchy='primary'] {\n box-shadow: 0px 0px 0px 2px var(--primary-color, #007bff);\n}\n\n.button[data-hierarchy='secondary'] {\n box-shadow: none;\n border: 1px solid var(--secondary-color, #6c757d);\n}\n\n.button[data-hierarchy='link'] {\n background: none;\n border: none;\n color: var(--brand-color, #007bff);\n}\n\n.button[data-hierarchy='linkContainer'] {\n background-color: #f8f9fa;\n color: var(--brand-color, #007bff);\n border: 1px solid var(--gray-color, #6c757d);\n} */\n\n/*\n.button[data-state='default'] {\n opacity: 1;\n}\n\n.button[data-state='hover'] {\n opacity: 0.9;\n background: #08379E;\n \n}\n\n.button[data-state='focused'] {\n box-shadow: 0px 0px 0px 4px var(--primary-30, #B5C5E7);\n}\n\n.button[data-state='disabled'] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n*/\n",".button[data-size=\"sm\"] {\n padding: 8px 12px;\n gap: 8px;\n border-radius: 12px;\n}\n\n.button[data-size=\"md\"] {\n padding: 10px 14px;\n gap: 8px;\n border-radius: 12px;\n}\n\n.button[data-size=\"lg\"] {\n padding: 12px 16px;\n gap: 10px;\n border-radius: 12px;\n}\n\n.button[data-size=\"xl\"] {\n padding: 16px 24px;\n gap: 12px;\n border-radius: 16px;\n}\n",".button[data-colorHierarchy=\"brand/primary\"] {\n background-color: var(--primary-main);\n}\n\n.button[data-colorHierarchy=\"brand/primary\"] .input-typography {\n color: #fff;\n}\n\n.button[data-colorHierarchy=\"gray/secondary\"] {\n background-color: #f1f1f1;\n}\n\n.button[data-colorHierarchy=\"gray/secondary\"] .input-typography {\n color: #080808;\n}\n\n.button[data-colorHierarchy=\"white/secondary\"] {\n background-color: #fff;\n box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);\n border: var(--border-radius-radius-none, 1px) solid var(--border-default, #e6e6e6);\n}\n\n.button[data-colorHierarchy=\"white/secondary\"] .input-typography {\n color: #080808;\n}\n\n.button[data-colorHierarchy=\"gray/linkContainer\"] {\n background-color: #fff;\n}\n\n.button[data-colorHierarchy=\"gray/linkContainer\"] .input-typography {\n color: #080808;\n}\n\n.button[data-colorHierarchy=\"gray/link\"] {\n background-color: #fff;\n padding: 0;\n}\n\n.button[data-colorHierarchy=\"gray/link\"] .input-typography {\n color: #080808;\n}\n\n.button[data-colorHierarchy=\"brand/link\"] {\n background-color: #fff;\n padding: 0;\n}\n\n.button[data-colorHierarchy=\"brand/link\"] .input-typography {\n color: var(--primary-main);\n}\n\n.button[data-colorHierarchy=\"destructive/primary\"] {\n background: var(--surface-error, #ea4621);\n}\n\n.button[data-colorHierarchy=\"destructive/primary\"] .input-typography {\n color: #fff;\n}\n\n.button[data-colorHierarchy=\"destructive/secondary\"] {\n background: var(--surface-error-secondary, #fdece9);\n}\n\n.button[data-colorHierarchy=\"destructive/secondary\"] .input-typography {\n color: var(--text-error, #ea4621);\n}\n\n.button[data-colorHierarchy=\"destructive/linkContainer\"] {\n background-color: #fff;\n}\n\n.button[data-colorHierarchy=\"destructive/linkContainer\"] .input-typography {\n color: var(--text-error, #ea4621);\n}\n\n.button[data-colorHierarchy=\"\"] {\n background-color: #fff;\n padding: 0;\n}\n\n.button[data-colorHierarchy=\"\"] .input-typography {\n color: var(--text-error, #ea4621);\n}\n",".button[data-colorHierarchy=\"brand/primary\"]:hover {\n background: var(--surface-primary-hover, #08379e);\n}\n\n.button[data-colorHierarchy=\"gray/secondary\"]:hover {\n background: var(--surface-secondary-hover, #ececed);\n}\n\n.button[data-colorHierarchy=\"white/secondary\"]:hover {\n background: var(--surface-white---hover, #f9f9f9);\n}\n\n.button[data-colorHierarchy=\"gray/linkContainer\"]:hover {\n background: var(--surface-secondary, #f1f1f1);\n}\n\n.button[data-colorHierarchy=\"gray/link\"]:hover {\n background-color: #fff;\n}\n\n.button[data-colorHierarchy=\"brand/link\"]:hover {\n background-color: #fff;\n}\n\n.button[data-colorHierarchy=\"destructive/primary\"]:hover {\n background: var(--surface-error-hover, #d33f1e);\n}\n\n.button[data-colorHierarchy=\"destructive/secondary\"]:hover {\n background: var(--surface-error-secondary-hover, #fbdad3);\n}\n\n.button[data-colorHierarchy=\"destructive/linkContainer\"]:hover {\n background: var(--colors-red-5, #fef6f4);\n}\n\n.button[data-colorHierarchy=\"\"]:hover {\n background-color: #fff;\n}\n",".button[data-colorHierarchy=\"brand/primary\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--primary-30, #b5c5e7);\n}\n\n.button[data-colorHierarchy=\"gray/secondary\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);\n}\n\n.button[data-colorHierarchy=\"white/secondary\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);\n}\n\n.button[data-colorHierarchy=\"gray/linkContainer\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);\n}\n\n.button[data-colorHierarchy=\"gray/link\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--neutural-50, #e6e6e6);\n}\n\n.button[data-colorHierarchy=\"brand/link\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--primary-30, #b5c5e7);\n}\n\n.button[data-colorHierarchy=\"destructive/primary\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);\n}\n\n.button[data-colorHierarchy=\"destructive/secondary\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);\n}\n\n.button[data-colorHierarchy=\"destructive/linkContainer\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);\n}\n\n.button[data-colorHierarchy=\"\"]:focus {\n box-shadow: 0px 0px 0px 4px var(--destructive-30, #f9c7bc);\n}\n",".button[data-colorHierarchy=\"brand/primary\"]:disabled {\n background: var(--surface-disabled, #f1f1f1);\n}\n\n.button:disabled .input-typography {\n color: var(--text-disabled, #939197);\n}\n\n.button[data-colorHierarchy=\"gray/secondary\"]:disabled {\n background: var(--surface-disabled, #f1f1f1);\n}\n\n.button[data-colorHierarchy=\"white/secondary\"]:disabled {\n background: var(--surface-white---disabled, #fdfdfd);\n}\n\n/* .button[data-colorHierarchy=\"gray/linkContainer\"]:disabled {\n }\n \n .button[data-colorHierarchy=\"gray/link\"]:disabled {\n }\n \n .button[data-colorHierarchy=\"brand/link\"]:disabled {\n } */\n\n.button[data-colorHierarchy=\"brand/link\"]:disabled .input-typography {\n color: var(--text-action-disabled, #849ed7);\n}\n\n.button[data-colorHierarchy=\"destructive/primary\"]:disabled {\n background: var(--surface-error-disabled, #fdece9);\n}\n\n.button[data-colorHierarchy=\"destructive/primary\"]:disabled .input-typography {\n color: var(--text-error-disabled, #f5a290);\n}\n\n.button[data-colorHierarchy=\"destructive/secondary\"]:disabled {\n background: var(--surface-error-disabled, #fdece9);\n}\n\n.button[data-colorHierarchy=\"destructive/secondary\"]:disabled .input-typography {\n color: var(--text-error-disabled, #f5a290);\n}\n\n/* .button[data-colorHierarchy=\"destructive/linkContainer\"]:disabled {\n }\n \n .button[data-colorHierarchy=\"\"]:disabled {\n } */\n\n.button[data-colorHierarchy=\"destructive/linkContainer\"]:disabled .input-typography {\n color: var(--text-error-disabled, #f5a290);\n}\n\n.button[data-colorHierarchy=\"destructive/link\"]:disabled .input-typography {\n color: var(--text-error-disabled, #f5a290);\n}\n",".TypographyCustom {\n color: var(--Gray-110, var(--colors-greyscale-110, #2d2b32));\n}\n\n/* text bold css*/\n.TypographyCustom[data-bold=\"extrabold\"] {\n font-weight: 800;\n}\n\n.TypographyCustom[data-bold=\"bold\"] {\n font-weight: 700;\n}\n\n.TypographyCustom[data-bold=\"semibold\"] {\n font-weight: 600;\n}\n\n.TypographyCustom[data-bold=\"medium\"] {\n font-weight: 500;\n}\n",".TypographyCustom[data-category=\"display\"][data-size=\"lg\"] {\n font-size: 180px;\n font-style: normal;\n line-height: 188px; /* 104.444% */\n letter-spacing: -9px;\n}\n\n.TypographyCustom[data-category=\"display\"][data-size=\"md\"] {\n font-size: 128px;\n font-style: normal;\n line-height: 136px; /* 106.25% */\n letter-spacing: -5.12px;\n}\n\n.TypographyCustom[data-category=\"display\"][data-size=\"sm\"] {\n font-size: 96px;\n font-style: normal;\n line-height: 104px; /* 108.333% */\n letter-spacing: -2.88px;\n}\n",".TypographyCustom[data-category=\"heading\"][data-size=\"xxl\"] {\n font-size: 72px;\n font-style: normal;\n line-height: 80px; /* 111.111% */\n letter-spacing: -1.44px;\n}\n\n.TypographyCustom[data-category=\"heading\"][data-size=\"xl\"] {\n font-size: 60px;\n font-style: normal;\n line-height: 68px; /* 113.333% */\n letter-spacing: -1.08px;\n}\n\n.TypographyCustom[data-category=\"heading\"][data-size=\"lg\"] {\n font-size: 48px;\n font-style: normal;\n line-height: 56px; /* 116.667% */\n letter-spacing: -0.768px;\n}\n\n.TypographyCustom[data-category=\"heading\"][data-size=\"md\"] {\n font-size: 36px;\n font-style: normal;\n line-height: 44px; /* 122.222% */\n letter-spacing: -0.504px;\n}\n\n.TypographyCustom[data-category=\"heading\"][data-size=\"sm\"] {\n font-size: 30px;\n font-style: normal;\n line-height: 38px; /* 126.667% */\n letter-spacing: -0.39px;\n}\n\n.TypographyCustom[data-category=\"heading\"][data-size=\"xs\"] {\n font-size: 24px;\n font-style: normal;\n line-height: 32px; /* 133.333% */\n letter-spacing: -0.288px;\n}\n",".TypographyCustom[data-category=\"text\"][data-size=\"xxl\"] {\n font-size: 24px;\n font-style: normal;\n line-height: 32px; /* 133.333% */\n letter-spacing: -0.288px;\n}\n\n.TypographyCustom[data-category=\"text\"][data-size=\"xl\"] {\n font-size: 20px;\n font-style: normal;\n line-height: 28px; /* 140% */\n letter-spacing: -0.2px;\n}\n\n.TypographyCustom[data-category=\"text\"][data-size=\"lg\"] {\n font-size: 18px;\n font-style: normal;\n line-height: 24px; /* 133.333% */\n letter-spacing: -0.144px;\n}\n\n.TypographyCustom[data-category=\"text\"][data-size=\"md\"] {\n font-size: 16px;\n font-style: normal;\n line-height: 22px; /* 137.5% */\n letter-spacing: -0.112px;\n}\n\n.TypographyCustom[data-category=\"text\"][data-size=\"sm\"] {\n font-size: 14px;\n font-style: normal;\n line-height: 20px; /* 142.857% */\n letter-spacing: -0.084px;\n}\n\n.TypographyCustom[data-category=\"text\"][data-size=\"xs\"] {\n font-size: 12px;\n font-style: normal;\n line-height: 16px; /* 133.333% */\n letter-spacing: -0.06px;\n}\n\n.TypographyCustom[data-category=\"text\"][data-size=\"xxs\"] {\n font-size: 10px;\n font-style: normal;\n line-height: 14px; /* 140% */\n letter-spacing: -0.04px;\n}\n",".custom-input {\n display: flex;\n flex-direction: row;\n padding: 12px;\n align-items: center;\n gap: 12px;\n width: 296px;\n align-self: stretch;\n border-radius: var(--border-radius-radius-pre-lg, 12px);\n\n border: 1px solid var(--border-default, #e6e6e6);\n background: var(--surface-white, #fff);\n\n /* Shadow/xs */\n box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);\n}\n\n.custom-input input {\n width: 100%;\n border: none;\n}\n\n.custom-input input::placeholder {\n color: var(--text-disabled, #939197);\n font-weight: 500;\n}\n\n.custom-input input:hover,\n.custom-input input:focus,\n.custom-input input:active {\n border: none;\n outline: none;\n}\n\n.custom-input .left-icon,\n.custom-input .right-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.custom-input input {\n font-family: var(--font-family);\n color: var(--text-primary, #080808);\n font-weight: 600;\n font-size: 14px;\n font-style: normal;\n}\n\n.custom-input .grey-box {\n margin: -12px;\n padding: 12px;\n gap: 6px;\n display: flex;\n flex-direction: row;\n background: #f9f9f9;\n}\n\n.custom-input .grey-right-box {\n padding: 12px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid #e6e6e6;\n}\n\n.custom-input .grey-left-box {\n padding: 12px 14px;\n border-top-left-radius: 12px;\n border-bottom-left-radius: 12px;\n border-right: 1px solid #e6e6e6;\n}\n\n.custom-input select:focus {\n border: none;\n outline: none;\n}\n",".custom-input:hover {\n border: var(--border-radius-radius-none, 1px) solid var(--border-hover, #c9c9cc);\n /* Shadow/xs */\n box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);\n}\n",".custom-input:focus-within {\n border: var(--border-radius-radius-none, 1px) solid var(--border-default, #e6e6e6);\n background: var(--surface-white, #fff);\n\n box-shadow: 0px 0px 0px 4px var(--primary-30, #b5c5e7);\n}\n",".custom-input:has(input:disabled) {\n border-radius: var(--border-radius-radius-pre-lg, 12px);\n border: var(--border-radius-radius-none, 1px) solid var(--border-default, #e6e6e6);\n background: var(--surface-disabled, #f1f1f1);\n}\n",".custom-input[data-error=\"true\"] {\n border: var(--border-radius-radius-none, 1px) solid var(--border-error, #ea4621);\n}\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,mBAAiB;AACjB,eAAa;AACb,aAAW;AACX,eAAa;AACb,UAAQ;AACR,cAAY,IAAI,KAAK;AACrB,UAAQ;AACV;;;ACTA,CAAC,MAAM,CAAC;AACN,WAAS,IAAI;AACb,OAAK;AACL,iBAAe;AACjB;AAEA,CANC,MAMM,CAAC;AACN,WAAS,KAAK;AACd,OAAK;AACL,iBAAe;AACjB;AAEA,CAZC,MAYM,CAAC;AACN,WAAS,KAAK;AACd,OAAK;AACL,iBAAe;AACjB;AAEA,CAlBC,MA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cAAc,EAAE;AAC1E;","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
type ButtonSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type ButtonColor = "brand" | "gray" | "destructive" | "white";
|
|
5
|
+
type ButtonHierarchy = "primary" | "secondary" | "link" | "linkContainer";
|
|
6
|
+
type ButtonColorHierarchyType = `${ButtonColor}/${ButtonHierarchy}`;
|
|
7
|
+
|
|
8
|
+
interface CustomButtonProps {
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
colorHierarchy?: ButtonColorHierarchyType;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
text: string;
|
|
13
|
+
leftIcon?: any;
|
|
14
|
+
rightIcon?: any;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const CustomButton: React.FC<CustomButtonProps>;
|
|
19
|
+
|
|
20
|
+
type Size = "md" | "lg";
|
|
21
|
+
type Type = "default" | "action" | "currency" | "creditCard" | "date" | "link" | "password" | "search" | "tel" | "number";
|
|
22
|
+
interface CustomInputProps {
|
|
23
|
+
Size?: Size;
|
|
24
|
+
type?: Type;
|
|
25
|
+
label?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
errExists?: boolean;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
leftIcon?: any;
|
|
30
|
+
rightIcon?: any;
|
|
31
|
+
onAction?: () => void;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const CustomInput: React.FC<CustomInputProps>;
|
|
37
|
+
|
|
38
|
+
type CustomCheckboxProps = {
|
|
39
|
+
checked: boolean;
|
|
40
|
+
onChange?: (checked: boolean) => void;
|
|
41
|
+
label?: string;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
declare const CustomCheckbox: React.FC<CustomCheckboxProps>;
|
|
45
|
+
|
|
46
|
+
export { CustomButton as Button, CustomCheckbox, CustomInput };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
type ButtonSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type ButtonColor = "brand" | "gray" | "destructive" | "white";
|
|
5
|
+
type ButtonHierarchy = "primary" | "secondary" | "link" | "linkContainer";
|
|
6
|
+
type ButtonColorHierarchyType = `${ButtonColor}/${ButtonHierarchy}`;
|
|
7
|
+
|
|
8
|
+
interface CustomButtonProps {
|
|
9
|
+
size?: ButtonSize;
|
|
10
|
+
colorHierarchy?: ButtonColorHierarchyType;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
text: string;
|
|
13
|
+
leftIcon?: any;
|
|
14
|
+
rightIcon?: any;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const CustomButton: React.FC<CustomButtonProps>;
|
|
19
|
+
|
|
20
|
+
type Size = "md" | "lg";
|
|
21
|
+
type Type = "default" | "action" | "currency" | "creditCard" | "date" | "link" | "password" | "search" | "tel" | "number";
|
|
22
|
+
interface CustomInputProps {
|
|
23
|
+
Size?: Size;
|
|
24
|
+
type?: Type;
|
|
25
|
+
label?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
errExists?: boolean;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
leftIcon?: any;
|
|
30
|
+
rightIcon?: any;
|
|
31
|
+
onAction?: () => void;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const CustomInput: React.FC<CustomInputProps>;
|
|
37
|
+
|
|
38
|
+
type CustomCheckboxProps = {
|
|
39
|
+
checked: boolean;
|
|
40
|
+
onChange?: (checked: boolean) => void;
|
|
41
|
+
label?: string;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
declare const CustomCheckbox: React.FC<CustomCheckboxProps>;
|
|
45
|
+
|
|
46
|
+
export { CustomButton as Button, CustomCheckbox, CustomInput };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@mui/material"),t=require("react/jsx-runtime"),r=require("react"),s=require("countries-list"),a=require("currency-symbol-map");function i(e){return e&&e.__esModule?e:{default:e}}var l=i(r),o=i(a),n=Object.defineProperty,c=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,C=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))x.call(t,r)&&C(e,r,t[r]);if(p)for(var r of p(t))h.call(t,r)&&C(e,r,t[r]);return e},y=(e,t)=>c(e,d(t)),m=(e,t)=>{var r={};for(var s in e)x.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&p)for(var s of p(e))t.indexOf(s)<0&&h.call(e,s)&&(r[s]=e[s]);return r},f=r=>{var s=r,{children:a,Size:i,category:l,bold:o,sx:n}=s,c=m(s,["children","Size","category","bold","sx"]);return t.jsx(e.Typography,y(u({className:"TypographyCustom","data-size":i,"data-category":l,"data-bold":o,sx:u({fontFamily:"var(--font-family), sans-serif"},n)},c),{children:a}))},g=({size:e="lg",colorHierarchy:r="brand/primary",disabled:s=!1,text:a,leftIcon:i,rightIcon:l,onClick:o})=>t.jsxs("button",{className:"button","data-size":e,"data-colorHierarchy":r,onClick:o,disabled:s,children:[i&&t.jsx("img",{src:i,alt:"icon"}),t.jsx(f,{className:"input-typography",category:"text",Size:e,bold:"bold",children:a}),l&&t.jsx("img",{src:l,alt:"icon"})]}),j=()=>t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M11.25 14.0625C11.25 14.3097 11.1767 14.5514 11.0393 14.757C10.902 14.9625 10.7068 15.1227 10.4784 15.2173C10.2499 15.312 9.99862 15.3367 9.75614 15.2885C9.51366 15.2402 9.29094 15.1212 9.11612 14.9464C8.9413 14.7716 8.82225 14.5488 8.77402 14.3064C8.72579 14.0639 8.75054 13.8126 8.84515 13.5841C8.93976 13.3557 9.09998 13.1605 9.30554 13.0232C9.5111 12.8858 9.75278 12.8125 10 12.8125C10.3315 12.8125 10.6495 12.9442 10.8839 13.1786C11.1183 13.413 11.25 13.731 11.25 14.0625ZM18.4375 10C18.4375 11.6688 17.9427 13.3001 17.0155 14.6876C16.0884 16.0752 14.7706 17.1566 13.2289 17.7952C11.6871 18.4338 9.99064 18.6009 8.35393 18.2754C6.71721 17.9498 5.2138 17.1462 4.03379 15.9662C2.85378 14.7862 2.05019 13.2828 1.72463 11.6461C1.39907 10.0094 1.56616 8.31286 2.20477 6.77111C2.84338 5.22936 3.92484 3.9116 5.31238 2.98448C6.69992 2.05735 8.33122 1.5625 10 1.5625C12.237 1.56498 14.3817 2.45473 15.9635 4.03653C17.5453 5.61833 18.435 7.763 18.4375 10ZM16.5625 10C16.5625 8.70206 16.1776 7.43327 15.4565 6.35407C14.7354 5.27487 13.7105 4.43374 12.5114 3.93704C11.3122 3.44034 9.99272 3.31038 8.71972 3.5636C7.44672 3.81681 6.2774 4.44183 5.35962 5.35961C4.44183 6.27739 3.81682 7.44672 3.5636 8.71972C3.31038 9.99272 3.44034 11.3122 3.93704 12.5114C4.43374 13.7105 5.27488 14.7354 6.35407 15.4565C7.43327 16.1776 8.70206 16.5625 10 16.5625C11.7399 16.5606 13.408 15.8686 14.6383 14.6383C15.8686 13.408 16.5606 11.7399 16.5625 10ZM10 5C8.10469 5 6.5625 6.40156 6.5625 8.125V8.4375C6.5625 8.68614 6.66127 8.9246 6.83709 9.10041C7.01291 9.27623 7.25136 9.375 7.5 9.375C7.74864 9.375 7.9871 9.27623 8.16292 9.10041C8.33873 8.9246 8.4375 8.68614 8.4375 8.4375V8.125C8.4375 7.43594 9.14063 6.875 10 6.875C10.8594 6.875 11.5625 7.43594 11.5625 8.125C11.5625 8.81406 10.8594 9.375 10 9.375C9.75136 9.375 9.51291 9.47377 9.33709 9.64959C9.16127 9.8254 9.0625 10.0639 9.0625 10.3125V10.9375C9.06194 11.1691 9.14715 11.3927 9.30169 11.5653C9.45623 11.7378 9.66916 11.847 9.89945 11.8719C10.1297 11.8967 10.3611 11.8354 10.5488 11.6998C10.7366 11.5642 10.8676 11.3639 10.9164 11.1375C12.368 10.7719 13.4375 9.56016 13.4375 8.125C13.4375 6.40156 11.8953 5 10 5Z",fill:"#080808"})}),b=e=>t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[e.leftIcon&&t.jsx("img",{src:e.leftIcon,alt:"icon"}),t.jsx("input",y(u({type:"text",placeholder:e.placeholder,disabled:e.disabled},e.props),{style:{fontFamily:"var(--font-family)",color:"var(--text-primary, #080808)",fontWeight:600,fontSize:"14px",fontStyle:"normal"}})),t.jsx("div",{className:"right-icon",children:e.rightIcon?t.jsx("img",{src:e.rightIcon,alt:"icon"}):t.jsx(j,{})})]}),v=()=>t.jsxs("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M11.6868 6.87324V5.08408C11.6868 2.98991 9.98844 1.29154 7.89427 1.29154C5.8001 1.28241 4.0951 2.97241 4.08594 5.06741V5.08408V6.87324",stroke:"#939197","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0695 16.7081H4.70199C2.95699 16.7081 1.54199 15.294 1.54199 13.5481V9.97396C1.54199 8.22813 2.95699 6.81396 4.70199 6.81396H11.0695C12.8145 6.81396 14.2295 8.22813 14.2295 9.97396V13.5481C14.2295 15.294 12.8145 16.7081 11.0695 16.7081Z",stroke:"#939197","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),t.jsx("path",{d:"M7.88574 10.8357V12.6865",stroke:"#939197","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),w=()=>t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.44393 2.49455C4.36161 2.40174 4.26167 2.3262 4.14993 2.2723C4.0382 2.2184 3.91687 2.18722 3.79299 2.18055C3.66911 2.17389 3.54514 2.19188 3.42826 2.23348C3.31138 2.27508 3.20392 2.33946 3.11211 2.4229C3.0203 2.50634 2.94596 2.60716 2.89341 2.71954C2.84085 2.83192 2.81112 2.95361 2.80594 3.07756C2.80076 3.20152 2.82024 3.32526 2.86324 3.44163C2.90624 3.558 2.9719 3.66468 3.05643 3.75549L4.30643 5.13439C1.61503 6.92658 0.44706 9.49846 0.39081 9.61955C0.337882 9.73955 0.310547 9.86926 0.310547 10.0004C0.310547 10.1316 0.337882 10.2613 0.39081 10.3813C0.419716 10.4453 1.10409 11.9641 2.61659 13.4758C4.63847 15.4953 7.18769 16.5625 10.0002 16.5625C11.3671 16.5701 12.7217 16.3045 13.9846 15.7813L15.5541 17.5078C15.7222 17.6884 15.9547 17.7954 16.2011 17.8057C16.4476 17.816 16.6882 17.7288 16.8708 17.5628C17.0534 17.3969 17.1632 17.1657 17.1764 16.9194C17.1897 16.6731 17.1053 16.4314 16.9416 16.2469L4.44393 2.49455ZM10.0002 14.6875C7.68847 14.6875 5.66659 13.8492 3.99159 12.1969C3.33273 11.5445 2.7658 10.8054 2.30643 10C2.71815 9.27267 3.7744 7.66408 5.58768 6.53986L12.626 14.2828C11.7772 14.5539 10.8912 14.6904 10.0002 14.6875ZM19.6096 10.3813C19.5814 10.4445 18.9064 11.9438 17.4221 13.4406C17.3371 13.535 17.2338 13.6111 17.1185 13.6643C17.0032 13.7175 16.8783 13.7468 16.7513 13.7503C16.6244 13.7538 16.4981 13.7315 16.38 13.6847C16.2619 13.6378 16.1546 13.5675 16.0646 13.478C15.9745 13.3885 15.9036 13.2816 15.8561 13.1638C15.8086 13.046 15.7855 12.9198 15.7882 12.7929C15.791 12.6659 15.8195 12.5408 15.8721 12.4252C15.9246 12.3096 16.0001 12.2059 16.0939 12.1203C16.7175 11.4864 17.2554 10.7735 17.6939 10C17.2348 9.19443 16.6679 8.45531 16.0088 7.80314C14.333 6.1508 12.3119 5.31252 10.0002 5.31252C9.73847 5.31252 9.47675 5.32346 9.21894 5.34533C9.0947 5.35864 8.96905 5.34698 8.84938 5.31104C8.72971 5.27509 8.61844 5.21559 8.52209 5.13602C8.42575 5.05646 8.34628 4.95844 8.28837 4.84772C8.23045 4.737 8.19525 4.61583 8.18483 4.49131C8.17442 4.3668 8.189 4.24145 8.22772 4.12265C8.26644 4.00385 8.32851 3.89399 8.4103 3.79953C8.49208 3.70506 8.59193 3.6279 8.70396 3.57257C8.816 3.51725 8.93796 3.48488 9.06269 3.47736C9.36972 3.4508 9.68769 3.43752 10.0002 3.43752C12.8127 3.43752 15.3619 4.50549 17.3822 6.52502C18.8939 8.03674 19.5783 9.55627 19.6072 9.61955C19.6605 9.73938 19.6882 9.86901 19.6887 10.0002C19.6891 10.1313 19.6621 10.2611 19.6096 10.3813Z",fill:"#080808"})}),S=e=>{switch(e.type){case"default":default:return b(e);case"action":return(e=>{const s=r.useRef(null);return t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[e.leftIcon&&t.jsx("img",{src:e.leftIcon,alt:"icon"}),t.jsx("input",u({type:"text",placeholder:e.placeholder,disabled:e.disabled,ref:s},e.props)),t.jsxs("div",{className:"grey-box grey-right-box",children:[t.jsx(f,{category:"text",Size:"sm",bold:"medium",onClick:()=>{var t;e.onAction&&e.onAction(null==(t=s.current)?void 0:t.value)},children:e.actionLabel}),e.rightIcon&&t.jsx("img",{src:e.rightIcon,alt:"icon"})]})]})})(e);case"currency":return(e=>{const[a,i]=r.useState(""),[n,c]=r.useState("USD"),[d,p]=r.useState([]),x=l.default.useRef(null);return r.useEffect((()=>{const e=[...new Set(Object.values(s.countries).map((e=>e.currency)))];p(e)}),[]),t.jsx("div",{className:"currency-input-container",children:t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[t.jsx("div",{className:"grey-box grey-left-box",children:t.jsx(f,{category:"text",Size:"sm",bold:"semibold",children:o.default(n)||"$"})}),t.jsx("input",u({type:"text",placeholder:"amount",style:{marginLeft:"12px"},onChange:e=>{i(e.target.value)},disabled:e.disabled,ref:x},e.props)),t.jsx("div",{className:"grey-box grey-right-box",children:t.jsx("select",{value:n,onChange:e=>{c(e.target.value)},className:"currency-select",style:{fontFamily:"var(--font-family)",fontWeight:"500",width:"55px",border:"none",background:"transparent"},children:d.map((e=>t.jsx("option",{value:e,children:e},e)))})})]})})})(e);case"creditCard":return(e=>t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[t.jsx("input",y(u({type:"text",placeholder:"0000 0000 0000 0000",disabled:e.disabled},e.props),{style:{fontFamily:"var(--font-family)",color:"var(--text-primary, #080808)",fontWeight:600,fontSize:"14px",fontStyle:"normal"}})),t.jsxs("div",{className:"right-icon",children:[" ",t.jsx(j,{})]})]}))(e);case"date":return(e=>t.jsx("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:t.jsx("input",y(u({type:"date",placeholder:e.placeholder,disabled:e.disabled},e.props),{style:{fontFamily:"var(--font-family)",color:"var(--text-primary, #080808)",fontWeight:600,fontSize:"14px",fontStyle:"normal"}}))}))(e);case"link":return(e=>t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[t.jsx("div",{className:"grey-box grey-left-box",children:t.jsx(f,{category:"text",Size:"sm",bold:"medium",children:"https://"})}),t.jsx("input",y(u({type:"text",placeholder:"Link Text",disabled:e.disabled},e.props),{style:{fontFamily:"var(--font-family)",color:"var(--text-primary, #080808)",fontWeight:600,fontSize:"14px",fontStyle:"normal",marginLeft:"12px"}})),t.jsx("div",{className:"right-icon",children:e.rightIcon?t.jsx("img",{src:e.rightIcon,alt:"icon"}):t.jsx(j,{})})]}))(e);case"password":return(e=>t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[t.jsx("div",{className:"left-icon",children:t.jsx(v,{})}),t.jsx("input",y(u({type:"password",placeholder:"*****************",disabled:e.disabled},e.props),{style:{fontFamily:"var(--font-family)",color:"var(--text-primary, #080808)",fontWeight:600,fontSize:"14px",fontStyle:"normal"}})),t.jsx("div",{className:"right-icon",children:e.rightIcon?t.jsx("img",{src:e.rightIcon,alt:"icon"}):t.jsx(w,{})})]}))(e);case"number":return(e=>t.jsxs("div",{className:"custom-input","data-type":e.type,"data-error":e.errExists,children:[e.leftIcon&&t.jsx("img",{src:e.leftIcon,alt:"icon"}),t.jsx("input",y(u({type:"number",placeholder:e.placeholder?e.placeholder:"Enter Value",disabled:e.disabled},e.props),{style:{fontFamily:"var(--font-family)",color:"var(--text-primary, #080808)",fontWeight:600,fontSize:"14px",fontStyle:"normal"}}))]}))(e)}},I=e=>{var r=e,{size:s="lg",type:a="default",disabled:i=!1,label:l="",errExists:o=!1,placeholder:n,leftIcon:c,rightIcon:d,style:p,onAction:x}=r,h=m(r,["size","type","disabled","label","errExists","placeholder","leftIcon","rightIcon","style","onAction"]);const C=u({type:a,placeholder:n,disabled:i,errExists:o,leftIcon:c,rightIcon:d,onAction:x},h);return t.jsxs("div",{style:p,children:[l&&t.jsx(f,{category:"text",Size:"sm",bold:"semibold",children:l}),t.jsx(S,u({},C))]})},k=({checked:e,onChange:r,label:s,disabled:a})=>t.jsxs("label",{className:"flex items-center space-x-3",children:[t.jsx("input",{type:"checkbox",checked:e,onChange:e=>r&&r(e.target.checked),disabled:a}),s&&t.jsx("span",{children:s})]});exports.Button=g,exports.CustomCheckbox=k,exports.CustomInput=I;//# sourceMappingURL=index.js.map
|