zebpay-ui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/.babelrc +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.json +28 -0
  4. package/.github/CODEOWNERS +1 -0
  5. package/.github/workflows/gh-pages.yml +22 -0
  6. package/.husky/pre-commit +4 -0
  7. package/.lintstagedrc.js +11 -0
  8. package/.prettierignore +3 -0
  9. package/.storybook/main.js +12 -0
  10. package/.storybook/preview.js +22 -0
  11. package/README.md +3 -0
  12. package/dist/cjs/index.js +657 -0
  13. package/dist/cjs/index.js.map +1 -0
  14. package/dist/esm/index.js +648 -0
  15. package/dist/esm/index.js.map +1 -0
  16. package/dist/index.d.ts +94 -0
  17. package/icons/index.js +29 -0
  18. package/icons/out/icons.css +489 -0
  19. package/icons/out/icons.eot +0 -0
  20. package/icons/out/icons.html +1473 -0
  21. package/icons/out/icons.json +159 -0
  22. package/icons/out/icons.ts +637 -0
  23. package/icons/out/icons.woff +0 -0
  24. package/icons/out/icons.woff2 +0 -0
  25. package/icons/svgs/1-graph.svg +3 -0
  26. package/icons/svgs/4-graph.svg +5 -0
  27. package/icons/svgs/account-no.svg +4 -0
  28. package/icons/svgs/activity.svg +5 -0
  29. package/icons/svgs/add-collateral.svg +3 -0
  30. package/icons/svgs/add.svg +3 -0
  31. package/icons/svgs/address.svg +4 -0
  32. package/icons/svgs/api.svg +6 -0
  33. package/icons/svgs/arrow-down.svg +3 -0
  34. package/icons/svgs/arrow-left.svg +3 -0
  35. package/icons/svgs/arrow-right.svg +3 -0
  36. package/icons/svgs/arrow-up.svg +3 -0
  37. package/icons/svgs/asterik.svg +3 -0
  38. package/icons/svgs/balance-ltv.svg +3 -0
  39. package/icons/svgs/bank.svg +8 -0
  40. package/icons/svgs/blog.svg +8 -0
  41. package/icons/svgs/bonus.svg +3 -0
  42. package/icons/svgs/buy-crypto.svg +3 -0
  43. package/icons/svgs/calendar.svg +3 -0
  44. package/icons/svgs/camera.svg +6 -0
  45. package/icons/svgs/cancelled.svg +3 -0
  46. package/icons/svgs/candle chart.svg +4 -0
  47. package/icons/svgs/cheque.svg +8 -0
  48. package/icons/svgs/circle-cross.svg +4 -0
  49. package/icons/svgs/circulation-supply.svg +3 -0
  50. package/icons/svgs/city.svg +3 -0
  51. package/icons/svgs/coin-stack.svg +5 -0
  52. package/icons/svgs/coins.svg +5 -0
  53. package/icons/svgs/compare.svg +3 -0
  54. package/icons/svgs/completed.svg +4 -0
  55. package/icons/svgs/contract.svg +3 -0
  56. package/icons/svgs/copy.svg +3 -0
  57. package/icons/svgs/coupon.svg +5 -0
  58. package/icons/svgs/cross.svg +3 -0
  59. package/icons/svgs/deactivate.svg +3 -0
  60. package/icons/svgs/deposit.svg +3 -0
  61. package/icons/svgs/depth-chart.svg +4 -0
  62. package/icons/svgs/district.svg +3 -0
  63. package/icons/svgs/dob.svg +3 -0
  64. package/icons/svgs/download.svg +4 -0
  65. package/icons/svgs/downwards.svg +3 -0
  66. package/icons/svgs/driving-licence.svg +3 -0
  67. package/icons/svgs/earned.svg +5 -0
  68. package/icons/svgs/edit.svg +3 -0
  69. package/icons/svgs/email.svg +3 -0
  70. package/icons/svgs/emi-amount.svg +6 -0
  71. package/icons/svgs/emi-duedate.svg +3 -0
  72. package/icons/svgs/error.svg +6 -0
  73. package/icons/svgs/expand.svg +3 -0
  74. package/icons/svgs/external-link.svg +3 -0
  75. package/icons/svgs/facelock.svg +3 -0
  76. package/icons/svgs/fees.svg +3 -0
  77. package/icons/svgs/filter.svg +3 -0
  78. package/icons/svgs/fingerprint.svg +7 -0
  79. package/icons/svgs/form.svg +3 -0
  80. package/icons/svgs/globe.svg +3 -0
  81. package/icons/svgs/hamburger.svg +3 -0
  82. package/icons/svgs/help.svg +5 -0
  83. package/icons/svgs/hide.svg +4 -0
  84. package/icons/svgs/home.svg +4 -0
  85. package/icons/svgs/ifsc.svg +7 -0
  86. package/icons/svgs/income-source.svg +3 -0
  87. package/icons/svgs/indicators.svg +3 -0
  88. package/icons/svgs/info.svg +3 -0
  89. package/icons/svgs/initial-ltv.svg +3 -0
  90. package/icons/svgs/instant-buy-sell.svg +3 -0
  91. package/icons/svgs/interest-amount.svg +3 -0
  92. package/icons/svgs/interest-rate.svg +6 -0
  93. package/icons/svgs/kyc.svg +5 -0
  94. package/icons/svgs/lend.svg +4 -0
  95. package/icons/svgs/link.svg +4 -0
  96. package/icons/svgs/liquidation-cost.svg +3 -0
  97. package/icons/svgs/liquidation-id.svg +3 -0
  98. package/icons/svgs/liquidation-price.svg +3 -0
  99. package/icons/svgs/liquidation.svg +4 -0
  100. package/icons/svgs/list.svg +8 -0
  101. package/icons/svgs/loan-amount.svg +3 -0
  102. package/icons/svgs/loan-details.svg +3 -0
  103. package/icons/svgs/loan-repayment.svg +3 -0
  104. package/icons/svgs/loan-term.svg +3 -0
  105. package/icons/svgs/location.svg +4 -0
  106. package/icons/svgs/lock.svg +3 -0
  107. package/icons/svgs/logout.svg +3 -0
  108. package/icons/svgs/ltv-ratio.svg +5 -0
  109. package/icons/svgs/mail.svg +3 -0
  110. package/icons/svgs/map.svg +4 -0
  111. package/icons/svgs/margin-call.svg +4 -0
  112. package/icons/svgs/max-supply.svg +3 -0
  113. package/icons/svgs/menu.svg +3 -0
  114. package/icons/svgs/more-options.svg +5 -0
  115. package/icons/svgs/negative.svg +3 -0
  116. package/icons/svgs/network.svg +3 -0
  117. package/icons/svgs/next.svg +3 -0
  118. package/icons/svgs/nominee.svg +3 -0
  119. package/icons/svgs/note.svg +3 -0
  120. package/icons/svgs/notification.svg +3 -0
  121. package/icons/svgs/occupation.svg +3 -0
  122. package/icons/svgs/ongoing.svg +4 -0
  123. package/icons/svgs/order.svg +4 -0
  124. package/icons/svgs/orders-complete.svg +6 -0
  125. package/icons/svgs/pair-selector.svg +3 -0
  126. package/icons/svgs/pan.svg +8 -0
  127. package/icons/svgs/passbook.svg +3 -0
  128. package/icons/svgs/passport.svg +4 -0
  129. package/icons/svgs/pay-emi.svg +3 -0
  130. package/icons/svgs/pay-lumpsum.svg +3 -0
  131. package/icons/svgs/pay-off-loan.svg +3 -0
  132. package/icons/svgs/penalty-charges.svg +3 -0
  133. package/icons/svgs/percentage.svg +6 -0
  134. package/icons/svgs/phone.svg +3 -0
  135. package/icons/svgs/positive.svg +3 -0
  136. package/icons/svgs/prepay-principal.svg +3 -0
  137. package/icons/svgs/previous.svg +3 -0
  138. package/icons/svgs/profile.svg +3 -0
  139. package/icons/svgs/quicktrade.svg +5 -0
  140. package/icons/svgs/rank.svg +3 -0
  141. package/icons/svgs/ream.svg +6 -0
  142. package/icons/svgs/recieve.svg +3 -0
  143. package/icons/svgs/repayment-schedule.svg +4 -0
  144. package/icons/svgs/reports.svg +6 -0
  145. package/icons/svgs/reset.svg +4 -0
  146. package/icons/svgs/save.svg +3 -0
  147. package/icons/svgs/scan.svg +3 -0
  148. package/icons/svgs/search.svg +3 -0
  149. package/icons/svgs/security.svg +4 -0
  150. package/icons/svgs/selfie.svg +5 -0
  151. package/icons/svgs/sell-crypto.svg +3 -0
  152. package/icons/svgs/send-email.svg +3 -0
  153. package/icons/svgs/send.svg +3 -0
  154. package/icons/svgs/separator.svg +3 -0
  155. package/icons/svgs/setttings.svg +3 -0
  156. package/icons/svgs/share.svg +3 -0
  157. package/icons/svgs/show.svg +3 -0
  158. package/icons/svgs/side.svg +7 -0
  159. package/icons/svgs/sip.svg +4 -0
  160. package/icons/svgs/sms.svg +6 -0
  161. package/icons/svgs/star-filled.svg +3 -0
  162. package/icons/svgs/star.svg +3 -0
  163. package/icons/svgs/statement.svg +3 -0
  164. package/icons/svgs/stop.svg +3 -0
  165. package/icons/svgs/street-address.svg +3 -0
  166. package/icons/svgs/subtract.svg +3 -0
  167. package/icons/svgs/success.svg +4 -0
  168. package/icons/svgs/support.svg +5 -0
  169. package/icons/svgs/templates.svg +3 -0
  170. package/icons/svgs/term.svg +3 -0
  171. package/icons/svgs/tick.svg +3 -0
  172. package/icons/svgs/total-payable-lumpsum.svg +9 -0
  173. package/icons/svgs/trash.svg +3 -0
  174. package/icons/svgs/unlock.svg +3 -0
  175. package/icons/svgs/upi.svg +3 -0
  176. package/icons/svgs/upload.svg +4 -0
  177. package/icons/svgs/upwards.svg +3 -0
  178. package/icons/svgs/voting-card.svg +5 -0
  179. package/icons/svgs/wallet.svg +3 -0
  180. package/icons/svgs/xpress.svg +6 -0
  181. package/icons/svgs/zip-code.svg +3 -0
  182. package/package.json +65 -0
  183. package/rollup.config.js +49 -0
  184. package/src/components/Button/index.tsx +55 -0
  185. package/src/components/Button/styles.ts +142 -0
  186. package/src/components/Button/typings.ts +20 -0
  187. package/src/components/Checkbox/index.tsx +44 -0
  188. package/src/components/Checkbox/styles.ts +76 -0
  189. package/src/components/Checkbox/typings.ts +11 -0
  190. package/src/components/CircularLoader/index.tsx +22 -0
  191. package/src/components/CircularLoader/style.ts +18 -0
  192. package/src/components/CircularLoader/typings.ts +4 -0
  193. package/src/components/DateRangePicker/index.tsx +36 -0
  194. package/src/components/DateRangePicker/styles.css +676 -0
  195. package/src/components/Input/index.tsx +95 -0
  196. package/src/components/Input/styles.ts +79 -0
  197. package/src/components/Input/typings.ts +25 -0
  198. package/src/components/Popper/index.tsx +62 -0
  199. package/src/components/Popper/styles.ts +59 -0
  200. package/src/components/Popper/typings.ts +16 -0
  201. package/src/components/Radio/index.tsx +32 -0
  202. package/src/components/Radio/styles.ts +51 -0
  203. package/src/components/Radio/typings.ts +11 -0
  204. package/src/components/Toast/index.tsx +88 -0
  205. package/src/components/Toast/styles.ts +69 -0
  206. package/src/components/Toast/typings.ts +6 -0
  207. package/src/components/index.ts +19 -0
  208. package/src/hooks/index.ts +1 -0
  209. package/src/hooks/useFocus.ts +16 -0
  210. package/src/index.ts +2 -0
  211. package/src/styles/colors.ts +39 -0
  212. package/src/styles/index.ts +6 -0
  213. package/src/styles/mixins.ts +52 -0
  214. package/src/styles/typography.ts +331 -0
  215. package/src/styles/utils.ts +39 -0
  216. package/stories/Button.stories.tsx +20 -0
  217. package/stories/Checkbox.stories.tsx +18 -0
  218. package/stories/CircularLoader.stories.tsx +15 -0
  219. package/stories/DateRangePicker.stories.tsx +18 -0
  220. package/stories/Input.stories.tsx +18 -0
  221. package/stories/Popper.stories.tsx +23 -0
  222. package/stories/Radio.stories.tsx +18 -0
  223. package/stories/Toast.stories.tsx +17 -0
  224. package/tsconfig.json +24 -0
@@ -0,0 +1,648 @@
1
+ import { jsx as e } from "@emotion/react/jsx-runtime";
2
+ import { keyframes as t, css as o } from "@emotion/react";
3
+ var r = function () {
4
+ return (
5
+ (r =
6
+ Object.assign ||
7
+ function (e) {
8
+ for (var t, o = 1, r = arguments.length; o < r; o++)
9
+ for (var n in (t = arguments[o]))
10
+ Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
11
+ return e;
12
+ }),
13
+ r.apply(this, arguments)
14
+ );
15
+ };
16
+ var n,
17
+ i,
18
+ l,
19
+ a = t(
20
+ l ||
21
+ ((n = [
22
+ "\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }",
23
+ ]),
24
+ (i = [
25
+ "\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }",
26
+ ]),
27
+ Object.defineProperty
28
+ ? Object.defineProperty(n, "raw", { value: i })
29
+ : (n.raw = i),
30
+ (l = n))
31
+ ),
32
+ _ = o({
33
+ borderRadius: "100%",
34
+ borderWidth: 3,
35
+ borderStyle: "solid",
36
+ borderTopColor: "rgba(255,255,255,0.4)",
37
+ margin: "0 auto",
38
+ animation: "".concat(a, " 1s linear infinite"),
39
+ }),
40
+ d = function (t) {
41
+ var r = t.size,
42
+ n = t.color;
43
+ return e("div", {
44
+ css: [
45
+ _,
46
+ o({ height: "".concat(r, "px"), width: "".concat(r, "px"), color: n }),
47
+ ],
48
+ });
49
+ },
50
+ m = {
51
+ Zeb_Solid_White: "#FFFFFF",
52
+ Zeb_Solid_BG_Blue: "#222245",
53
+ Zeb_Solid_Dark_Blue: "#181837",
54
+ Zeb_Solid_Bright_Blue: "#338FFF",
55
+ Zeb_Solid_Light_Blue: "#C0C0EE",
56
+ Zeb_Solid_Green: "#1ECAA2",
57
+ Zeb_Solid_Red: "#EA6161",
58
+ Zeb_Solid_Yellow: "#F9C35C",
59
+ Zeb_Solid_Grey: "#C2C2DD",
60
+ Zeb_Solid_Dark_Grey: "#34345A",
61
+ Zeb_Solid_Black: "000000",
62
+ Zeb_Solid_Light_Blue_01: "#E9EFF6",
63
+ Zeb_Solid_Grey_01: "#E1E3E6",
64
+ Zeb_Gradient_Blue_01:
65
+ "linear-gradient(90.15deg, #5D7BFE 0.73%, #0974FF 101.92%)",
66
+ Zeb_Gradient_Blue_02:
67
+ "linear-gradient(180deg, #0473FF 0.54%, rgba(4, 115, 255, 0) 100%)",
68
+ Zeb_Gradient_Dark_Blue:
69
+ "linear-gradient(254.37deg, #4A62CA -43.42%, #1B264B 148.58%)",
70
+ Zeb_Transparent_25: "rgba(12, 12, 36, 0.25)",
71
+ Zeb_Transparent_Green: "rgba(30, 202, 162, 0.2)",
72
+ Zeb_Transparent_Yellow: "rgba(249, 195, 92, 0.2)",
73
+ Zeb_Transparent_Red: "rgba(234, 97, 97, 0.2)",
74
+ Zeb_BG_Blue: "rgba(51, 143, 255, 0.2)",
75
+ Zeb_BG_Light_Blue: "rgba(192, 192, 238, 0.2)",
76
+ Zeb_BG_Green: "rgba(30, 202, 162, 0.08)",
77
+ Zeb_BG_Red: "rgba(234, 97, 97, 0.08)",
78
+ Zeb_BG_Yellow: "rgba(249, 195, 92, 0.08)",
79
+ Zeb_Transparent_4: "rgba(51, 143, 255, 0.04)",
80
+ Zeb_Effects_Shadow_Hover: "0px 8px 8px -4px #0C0C1D",
81
+ Zeb_Effects_Shadow_W_Drawer: "-12px 0px 40px rgba(12, 12, 29, 0.48)",
82
+ Zeb_Effects_Shadow_M_Drawer: "0px -12px 40px rgba(12, 12, 29, 0.48)",
83
+ Zeb_Effects_Shadow_Hover_Up: "0px -2px 32px 8px rgba(12, 12, 29, 0.4)",
84
+ Zeb_Effects_Shimmer:
85
+ "linear-gradient(97.38deg, #34345A -40.76%, #19193A 135.88%)",
86
+ },
87
+ c = {
88
+ remConverter: function (e) {
89
+ return "".concat(e / 16, "rem");
90
+ },
91
+ widthPercentage: function (e) {
92
+ return o({ width: "".concat(e, "%") });
93
+ },
94
+ heightPercentage: function (e) {
95
+ return o({ height: "".concat(e, "%") });
96
+ },
97
+ mr: function (e) {
98
+ return o({ marginRight: c.remConverter(e) });
99
+ },
100
+ ml: function (e) {
101
+ return o({ marginLeft: c.remConverter(e) });
102
+ },
103
+ mt: function (e) {
104
+ return o({ marginTop: c.remConverter(e) });
105
+ },
106
+ mb: function (e) {
107
+ return o({ marginBottom: c.remConverter(e) });
108
+ },
109
+ },
110
+ f = {
111
+ H1_56_bold: {
112
+ fontFamily: "Lato",
113
+ fontStyle: "normal",
114
+ fontWeight: "bold",
115
+ fontSize: c.remConverter(56),
116
+ lineHeight: "86px",
117
+ letterSpacing: "0.8px",
118
+ color: m.Zeb_Solid_White,
119
+ },
120
+ H2_44_bold: {
121
+ fontFamily: "Lato",
122
+ fontStyle: "normal",
123
+ fontWeight: "bold",
124
+ fontSize: c.remConverter(44),
125
+ lineHeight: "60px",
126
+ letterSpacing: "0.8px",
127
+ color: m.Zeb_Solid_White,
128
+ },
129
+ H3_32_bold: {
130
+ fontFamily: "Lato",
131
+ fontStyle: "normal",
132
+ fontWeight: "bold",
133
+ fontSize: c.remConverter(32),
134
+ lineHeight: "48px",
135
+ letterSpacing: "0.8px",
136
+ color: m.Zeb_Solid_White,
137
+ },
138
+ H4_28_bold: {
139
+ fontFamily: "Lato",
140
+ fontStyle: "normal",
141
+ fontWeight: "bold",
142
+ fontSize: c.remConverter(28),
143
+ lineHeight: "40px",
144
+ letterSpacing: "0.8px",
145
+ color: m.Zeb_Solid_White,
146
+ },
147
+ H5_20_bold: {
148
+ fontFamily: "Lato",
149
+ fontStyle: "normal",
150
+ fontWeight: "bold",
151
+ fontSize: c.remConverter(20),
152
+ lineHeight: "normal",
153
+ letterSpacing: "0.8px",
154
+ color: m.Zeb_Solid_White,
155
+ },
156
+ H6_16_bold: {
157
+ fontFamily: "Lato",
158
+ fontStyle: "normal",
159
+ fontWeight: "bold",
160
+ fontSize: c.remConverter(16),
161
+ lineHeight: "28px",
162
+ letterSpacing: "0.8px",
163
+ color: m.Zeb_Solid_White,
164
+ },
165
+ H1_56_semibold: {
166
+ fontFamily: "Lato",
167
+ fontStyle: "normal",
168
+ fontWeight: 600,
169
+ fontSize: c.remConverter(56),
170
+ lineHeight: "86px",
171
+ letterSpacing: "0.8px",
172
+ color: m.Zeb_Solid_White,
173
+ },
174
+ H2_44_semibold: {
175
+ fontFamily: "Lato",
176
+ fontStyle: "normal",
177
+ fontWeight: 600,
178
+ fontSize: c.remConverter(44),
179
+ lineHeight: "60px",
180
+ letterSpacing: "0.8px",
181
+ color: m.Zeb_Solid_White,
182
+ },
183
+ H3_32_semibold: {
184
+ fontFamily: "Lato",
185
+ fontStyle: "normal",
186
+ fontWeight: 600,
187
+ fontSize: c.remConverter(32),
188
+ lineHeight: "48px",
189
+ letterSpacing: "0.8px",
190
+ color: m.Zeb_Solid_White,
191
+ },
192
+ H4_28_semibold: {
193
+ fontFamily: "Lato",
194
+ fontStyle: "normal",
195
+ fontWeight: 600,
196
+ fontSize: c.remConverter(28),
197
+ lineHeight: "40px",
198
+ letterSpacing: "0.8px",
199
+ color: m.Zeb_Solid_White,
200
+ },
201
+ H5_20_semibold: {
202
+ fontFamily: "Lato",
203
+ fontStyle: "normal",
204
+ fontWeight: 600,
205
+ fontSize: c.remConverter(20),
206
+ lineHeight: "30px",
207
+ letterSpacing: "0.8px",
208
+ color: m.Zeb_Solid_White,
209
+ },
210
+ H6_16_semibold: {
211
+ fontFamily: "Lato",
212
+ fontStyle: "normal",
213
+ fontWeight: 600,
214
+ fontSize: c.remConverter(16),
215
+ lineHeight: "28px",
216
+ letterSpacing: "0.8px",
217
+ color: m.Zeb_Solid_White,
218
+ },
219
+ H1_56_regular: {
220
+ fontFamily: "Lato",
221
+ fontStyle: "normal",
222
+ fontWeight: "normal",
223
+ fontSize: c.remConverter(56),
224
+ lineHeight: "86px",
225
+ letterSpacing: "0.8px",
226
+ color: m.Zeb_Solid_White,
227
+ },
228
+ H2_44_regular: {
229
+ fontFamily: "Lato",
230
+ fontStyle: "normal",
231
+ fontWeight: "normal",
232
+ fontSize: c.remConverter(44),
233
+ lineHeight: "60px",
234
+ letterSpacing: "0.8px",
235
+ color: m.Zeb_Solid_White,
236
+ },
237
+ H3_32_regular: {
238
+ fontFamily: "Lato",
239
+ fontStyle: "normal",
240
+ fontWeight: "normal",
241
+ fontSize: c.remConverter(32),
242
+ lineHeight: "48px",
243
+ letterSpacing: "0.8px",
244
+ color: m.Zeb_Solid_White,
245
+ },
246
+ H4_28_regular: {
247
+ fontFamily: "Lato",
248
+ fontStyle: "normal",
249
+ fontWeight: "normal",
250
+ fontSize: c.remConverter(28),
251
+ lineHeight: "40px",
252
+ letterSpacing: "0.8px",
253
+ color: m.Zeb_Solid_White,
254
+ },
255
+ H5_20_regular: {
256
+ fontFamily: "Lato",
257
+ fontStyle: "normal",
258
+ fontWeight: "normal",
259
+ fontSize: c.remConverter(20),
260
+ lineHeight: "30px",
261
+ letterSpacing: "0.8px",
262
+ color: m.Zeb_Solid_White,
263
+ },
264
+ H6_16_regular: {
265
+ fontFamily: "Lato",
266
+ fontStyle: "normal",
267
+ fontWeight: "normal",
268
+ fontSize: c.remConverter(16),
269
+ lineHeight: "28px",
270
+ letterSpacing: "0.8px",
271
+ color: m.Zeb_Solid_White,
272
+ },
273
+ H8_12_regular: {
274
+ fontFamily: "Lato",
275
+ fontStyle: "normal",
276
+ fontWeight: "normal",
277
+ fontSize: c.remConverter(12),
278
+ lineHeight: "18px",
279
+ letterSpacing: "0.8px",
280
+ color: m.Zeb_Solid_White,
281
+ },
282
+ B1_24_semibold: {
283
+ fontFamily: "Lato",
284
+ fontStyle: "normal",
285
+ fontWeight: 600,
286
+ fontSize: c.remConverter(24),
287
+ lineHeight: "40px",
288
+ letterSpacing: "0.4px",
289
+ color: m.Zeb_Solid_White,
290
+ },
291
+ B2_20_semibold: {
292
+ fontFamily: "Lato",
293
+ fontStyle: "normal",
294
+ fontWeight: 600,
295
+ fontSize: c.remConverter(20),
296
+ lineHeight: "30px",
297
+ letterSpacing: "0.4px",
298
+ color: m.Zeb_Solid_White,
299
+ },
300
+ B3_16_semibold: {
301
+ fontFamily: "Lato",
302
+ fontStyle: "normal",
303
+ fontWeight: 600,
304
+ fontSize: c.remConverter(16),
305
+ lineHeight: "28px",
306
+ letterSpacing: "0.4px",
307
+ color: m.Zeb_Solid_White,
308
+ },
309
+ B4_14_semibold: {
310
+ fontFamily: "Lato",
311
+ fontStyle: "normal",
312
+ fontWeight: 600,
313
+ fontSize: c.remConverter(14),
314
+ lineHeight: "24px",
315
+ letterSpacing: "0.4px",
316
+ color: m.Zeb_Solid_White,
317
+ },
318
+ B5_12_semibold: {
319
+ fontFamily: "Lato",
320
+ fontStyle: "normal",
321
+ fontWeight: 600,
322
+ fontSize: c.remConverter(12),
323
+ lineHeight: "18px",
324
+ letterSpacing: "0.4px",
325
+ color: m.Zeb_Solid_White,
326
+ },
327
+ B6_10_semibold: {
328
+ fontFamily: "Lato",
329
+ fontStyle: "normal",
330
+ fontWeight: 600,
331
+ fontSize: c.remConverter(10),
332
+ lineHeight: "12px",
333
+ letterSpacing: "0.4px",
334
+ color: m.Zeb_Solid_White,
335
+ },
336
+ B1_24_regular: {
337
+ fontFamily: "Lato",
338
+ fontStyle: "normal",
339
+ fontWeight: 600,
340
+ fontSize: c.remConverter(24),
341
+ lineHeight: "40px",
342
+ letterSpacing: "0.4px",
343
+ color: m.Zeb_Solid_White,
344
+ },
345
+ B2_20_regular: {
346
+ fontFamily: "Lato",
347
+ fontStyle: "normal",
348
+ fontWeight: 600,
349
+ fontSize: c.remConverter(20),
350
+ lineHeight: "30px",
351
+ letterSpacing: "0.4px",
352
+ color: m.Zeb_Solid_White,
353
+ },
354
+ B3_16_regular: {
355
+ fontFamily: "Lato",
356
+ fontStyle: "normal",
357
+ fontWeight: "normal",
358
+ fontSize: c.remConverter(16),
359
+ lineHeight: "28px",
360
+ letterSpacing: "0.4px",
361
+ color: m.Zeb_Solid_White,
362
+ },
363
+ B4_14_regular: {
364
+ fontFamily: "Lato",
365
+ fontStyle: "normal",
366
+ fontWeight: "normal",
367
+ fontSize: c.remConverter(14),
368
+ lineHeight: "24px",
369
+ letterSpacing: "0.4px",
370
+ color: m.Zeb_Solid_White,
371
+ },
372
+ B5_12_regular: {
373
+ fontFamily: "Lato",
374
+ fontStyle: "normal",
375
+ fontWeight: "normal",
376
+ fontSize: c.remConverter(12),
377
+ lineHeight: "18px",
378
+ letterSpacing: "0.4px",
379
+ color: m.Zeb_Solid_White,
380
+ },
381
+ B6_10_regular: {
382
+ fontFamily: "Lato",
383
+ fontStyle: "normal",
384
+ fontWeight: "normal",
385
+ fontSize: c.remConverter(10),
386
+ lineHeight: "12px",
387
+ letterSpacing: "0.4px",
388
+ color: m.Zeb_Solid_White,
389
+ },
390
+ C1_20: {
391
+ fontFamily: "Lato",
392
+ fontStyle: "normal",
393
+ fontWeight: "bold",
394
+ fontSize: c.remConverter(20),
395
+ lineHeight: "30px",
396
+ letterSpacing: "1.6px",
397
+ color: m.Zeb_Solid_White,
398
+ textTransform: "uppercase",
399
+ },
400
+ C2_16: {
401
+ fontFamily: "Lato",
402
+ fontStyle: "normal",
403
+ fontWeight: "bold",
404
+ fontSize: c.remConverter(16),
405
+ lineHeight: "28px",
406
+ letterSpacing: "0.8px",
407
+ color: m.Zeb_Solid_White,
408
+ textTransform: "uppercase",
409
+ },
410
+ C3_14: {
411
+ fontFamily: "Lato",
412
+ fontStyle: "normal",
413
+ fontWeight: "bold",
414
+ fontSize: c.remConverter(14),
415
+ lineHeight: "24px",
416
+ letterSpacing: "0.8px",
417
+ color: m.Zeb_Solid_White,
418
+ textTransform: "uppercase",
419
+ },
420
+ C4_12: {
421
+ fontFamily: "Lato",
422
+ fontStyle: "normal",
423
+ fontWeight: "bold",
424
+ fontSize: c.remConverter(12),
425
+ lineHeight: "18px",
426
+ letterSpacing: "0.4px",
427
+ color: m.Zeb_Solid_White,
428
+ textTransform: "uppercase",
429
+ },
430
+ },
431
+ g = {
432
+ flexJustifiedBetween: o({ justifyContent: "space-between" }),
433
+ flexJustifiedCenter: o({ justifyContent: "center" }),
434
+ flexJustifiedEnd: o({ justifyContent: "flex-end" }),
435
+ flexAlignCenter: o({ display: "flex", alignItems: "center" }),
436
+ flexAlignStart: o({ display: "flex", alignItems: "flex-start" }),
437
+ flexNoWrap: o({ flexWrap: "nowrap" }),
438
+ flexColumn: o({ display: "flex", flexDirection: "column" }),
439
+ textSuccess: o({ color: m.Zeb_Solid_Green }),
440
+ textError: o({ color: m.Zeb_Solid_Red }),
441
+ bgSuccess: o({ background: m.Zeb_Solid_Green }),
442
+ bgError: o({ background: m.Zeb_Solid_Red }),
443
+ textFaded: o({ color: m.Zeb_Solid_Light_Blue }),
444
+ textCapitalize: o({ textTransform: "capitalize" }),
445
+ textAlignmentCenter: o({ textAlign: "center" }),
446
+ textAlignmentLeft: o({ textAlign: "left" }),
447
+ textAlignmentRight: o({ textAlign: "right" }),
448
+ },
449
+ p = o(
450
+ r(
451
+ r(
452
+ {
453
+ padding: 0,
454
+ backgroundColor: "transparent",
455
+ boxShadow: "none",
456
+ border: "none",
457
+ outline: "none",
458
+ },
459
+ f.C3_14
460
+ ),
461
+ {
462
+ color: m.Zeb_Solid_Bright_Blue,
463
+ "&.small": r(r({}, f.C4_12), { color: m.Zeb_Solid_Bright_Blue }),
464
+ }
465
+ )
466
+ ),
467
+ S = o(
468
+ r(
469
+ r(
470
+ {
471
+ background: m.Zeb_Gradient_Blue_01,
472
+ borderRadius: c.remConverter(8),
473
+ boxShadow: "none",
474
+ border: "none",
475
+ outline: "none",
476
+ whiteSpace: "nowrap",
477
+ },
478
+ f.C4_12
479
+ ),
480
+ {
481
+ "&.small": r(
482
+ {
483
+ padding: ""
484
+ .concat(c.remConverter(8), " ")
485
+ .concat(c.remConverter(12)),
486
+ },
487
+ f.C4_12
488
+ ),
489
+ "&.medium": r(
490
+ {
491
+ padding: ""
492
+ .concat(c.remConverter(8), " ")
493
+ .concat(c.remConverter(12)),
494
+ },
495
+ f.C4_12
496
+ ),
497
+ "&.large": r(
498
+ {
499
+ padding: ""
500
+ .concat(c.remConverter(8), " ")
501
+ .concat(c.remConverter(16)),
502
+ },
503
+ f.C2_16
504
+ ),
505
+ "&.full-width": {
506
+ padding: "".concat(c.remConverter(8), " 0"),
507
+ width: "100%",
508
+ },
509
+ "&:disabled": { opacity: 0.2 },
510
+ }
511
+ )
512
+ ),
513
+ b = o(
514
+ r(
515
+ r(
516
+ {
517
+ padding: "".concat(c.remConverter(8), " ").concat(c.remConverter(16)),
518
+ background: m.Zeb_Transparent_4,
519
+ border: "1px solid ".concat(m.Zeb_Solid_Bright_Blue),
520
+ borderRadius: "8px",
521
+ },
522
+ f.C2_16
523
+ ),
524
+ {
525
+ "&.small": r(
526
+ {
527
+ padding: ""
528
+ .concat(c.remConverter(8), " ")
529
+ .concat(c.remConverter(12)),
530
+ },
531
+ f.C4_12
532
+ ),
533
+ "&.medium": r(
534
+ {
535
+ padding: ""
536
+ .concat(c.remConverter(8), " ")
537
+ .concat(c.remConverter(12)),
538
+ },
539
+ f.C4_12
540
+ ),
541
+ "&.large": r(
542
+ {
543
+ padding: ""
544
+ .concat(c.remConverter(8), " ")
545
+ .concat(c.remConverter(16)),
546
+ },
547
+ f.C2_16
548
+ ),
549
+ "&.full-width": { padding: "".concat(c.remConverter(8), " 0") },
550
+ "&:disabled": { borderColor: m.Zeb_Solid_Grey },
551
+ }
552
+ )
553
+ ),
554
+ h = o({
555
+ padding: "".concat(c.remConverter(6), " 0"),
556
+ background: m.Zeb_Gradient_Blue_01,
557
+ boxShadow: "none",
558
+ border: "none",
559
+ outline: "none",
560
+ borderRadius: "8px",
561
+ display: "flex",
562
+ alignItems: "center",
563
+ justifyContent: "center",
564
+ "&.small": { width: "100%", padding: "".concat(c.remConverter(8), " 0") },
565
+ "&.large": { width: "100%" },
566
+ "&.full-width": { width: "100%" },
567
+ "&.medium": { width: "100%" },
568
+ }),
569
+ x = o(r({ marginLeft: c.remConverter(8) }, f.C3_14)),
570
+ s = o({ display: "none" }),
571
+ u = o({
572
+ padding: "".concat(c.remConverter(8), " ").concat(c.remConverter(12)),
573
+ background: m.Zeb_Transparent_4,
574
+ boxShadow: "none",
575
+ border: "1px solid ".concat(m.Zeb_Solid_Bright_Blue),
576
+ outline: "none",
577
+ borderRadius: "8px",
578
+ display: "flex",
579
+ alignItems: "center",
580
+ justifyContent: "center",
581
+ "&.medium": {
582
+ padding: "".concat(c.remConverter(8), " ").concat(c.remConverter(12)),
583
+ },
584
+ }),
585
+ C = o(r({ marginLeft: c.remConverter(4) }, f.C4_12)),
586
+ y = o(
587
+ r(
588
+ r(
589
+ {
590
+ border: "0.5px solid ".concat(m.Zeb_Solid_Light_Blue),
591
+ borderRadius: "4px",
592
+ padding: "".concat(c.remConverter(4), " ").concat(c.remConverter(8)),
593
+ },
594
+ f.B5_12_semibold
595
+ ),
596
+ {
597
+ color: m.Zeb_Solid_Light_Blue,
598
+ display: "flex",
599
+ justifyContent: "center",
600
+ flexGrow: 1,
601
+ textTransform: "uppercase",
602
+ cursor: "pointer",
603
+ "&.active": r(
604
+ {
605
+ background: m.Zeb_Solid_Dark_Blue,
606
+ borderColor: m.Zeb_Solid_Bright_Blue,
607
+ },
608
+ f.C4_12
609
+ ),
610
+ }
611
+ )
612
+ ),
613
+ Z = o({ opacity: 0.5, cursor: "not-allowed" });
614
+ function v(e, t) {
615
+ switch (e) {
616
+ case "primary":
617
+ return S;
618
+ case "secondary":
619
+ return b;
620
+ case "tertiary":
621
+ return [u, C];
622
+ case "link":
623
+ return p;
624
+ case "tab":
625
+ return "small" === t ? [y, s] : y;
626
+ case "special":
627
+ return [h, x];
628
+ }
629
+ }
630
+ var W = function (t) {
631
+ var o = t.type,
632
+ n = t.size,
633
+ i = void 0 === n ? "medium" : n,
634
+ l = t.onClick,
635
+ a = t.disabled,
636
+ _ = t.style,
637
+ m = t.children,
638
+ c = t.loading;
639
+ return e(
640
+ "button",
641
+ r(
642
+ { onClick: l, disabled: a, className: i, css: [v(o, i), _, a && Z] },
643
+ { children: c ? e(d, { size: 18 }) : m }
644
+ )
645
+ );
646
+ };
647
+ export { W as Button, m as colors, g as mixins, f as typography, c as utils };
648
+ //# sourceMappingURL=index.js.map