@binamik/components 0.1.0

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/Readme.md ADDED
File without changes
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SpinnerProps {
3
+ size: string;
4
+ color?: string;
5
+ thickness?: number;
6
+ }
7
+ export declare const Spinner: React.FC<SpinnerProps>;
8
+ export {};
@@ -0,0 +1,16 @@
1
+ interface SpinnerStylesProps {
2
+ size: string;
3
+ }
4
+ export declare const SpinnerContainer: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & SpinnerStylesProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const SpinnerComponent: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ }, import("react").SVGProps<SVGSVGElement>, {}>;
12
+ export declare const Circle: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ }, import("react").SVGProps<SVGCircleElement>, {}>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Spinner';
@@ -0,0 +1 @@
1
+ export * from './Spinner';
@@ -0,0 +1 @@
1
+ export * from './animations';
@@ -0,0 +1,9 @@
1
+ import React, { ButtonHTMLAttributes } from 'react';
2
+ declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ isLoading?: boolean;
4
+ loadingText?: string;
5
+ outlined?: boolean;
6
+ children: React.ReactNode;
7
+ };
8
+ export declare const Button: ({ disabled, isLoading, loadingText, outlined, className, children, ...rest }: ButtonProps) => React.ReactElement;
9
+ export default Button;
@@ -0,0 +1,9 @@
1
+ interface ButtonProps {
2
+ isLoading: boolean;
3
+ hasLoadingText: boolean;
4
+ }
5
+ export declare const DefaultButtonContainer: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & ButtonProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1 @@
1
+ export * from './DefaultButton';
@@ -0,0 +1 @@
1
+ export declare const binamikCssReset: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1 @@
1
+ export declare const binamikGlobalStyles: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1 @@
1
+ export declare const binamikTheme: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,5 @@
1
+ export * from './binamikTheme';
2
+ export * from './binamikCssReset';
3
+ export * from './binamikGlobalStyles';
4
+ export * from './utils/depthBuilder';
5
+ export * from './utils/PreventScroll';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PreventScroll: () => React.ReactElement;
@@ -0,0 +1,3 @@
1
+ declare type AvailableDepths = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
2
+ export declare const depth: (depthValue: AvailableDepths, strength?: 'light' | 'normal' | 'dark') => string;
3
+ export {};
@@ -0,0 +1,696 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import { keyframes, css, Global } from "@emotion/react";
33
+ import styled from "@emotion/styled";
34
+ import require$$0 from "react";
35
+ const dashAnimation = keyframes`
36
+ 0% {
37
+ stroke-dasharray: 1, 200;
38
+ stroke-dashoffset: 0;
39
+ }
40
+ 50% {
41
+ stroke-dasharray: 89, 200;
42
+ stroke-dashoffset: -35px;
43
+ }
44
+ 100% {
45
+ stroke-dasharray: 89, 200;
46
+ stroke-dashoffset: -124px;
47
+ }
48
+ `;
49
+ const rotate = keyframes`
50
+ 100% {
51
+ transform: rotate(360deg);
52
+ }
53
+ `;
54
+ const SpinnerContainer = styled.div`
55
+ position: relative;
56
+ margin: 0 auto;
57
+ width: ${({ size }) => size || "1.5rem"};
58
+
59
+ &:before {
60
+ content: '';
61
+ display: block;
62
+ padding-top: 100%;
63
+ }
64
+ `;
65
+ const SpinnerComponent = styled.svg`
66
+ animation: ${rotate} 2s linear infinite;
67
+ height: 100%;
68
+ transform-origin: center center;
69
+ width: 100%;
70
+ position: absolute;
71
+ top: 0;
72
+ bottom: 0;
73
+ left: 0;
74
+ right: 0;
75
+ margin: auto;
76
+ `;
77
+ const Circle = styled.circle`
78
+ stroke-dasharray: 1, 200;
79
+ stroke-dashoffset: 0;
80
+ animation: ${dashAnimation} 1.5s ease-in-out infinite;
81
+ stroke-linecap: round;
82
+ `;
83
+ var jsxRuntime = { exports: {} };
84
+ var reactJsxRuntime_production_min = {};
85
+ /*
86
+ object-assign
87
+ (c) Sindre Sorhus
88
+ @license MIT
89
+ */
90
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
91
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
92
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
93
+ function toObject(val) {
94
+ if (val === null || val === void 0) {
95
+ throw new TypeError("Object.assign cannot be called with null or undefined");
96
+ }
97
+ return Object(val);
98
+ }
99
+ function shouldUseNative() {
100
+ try {
101
+ if (!Object.assign) {
102
+ return false;
103
+ }
104
+ var test1 = new String("abc");
105
+ test1[5] = "de";
106
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
107
+ return false;
108
+ }
109
+ var test2 = {};
110
+ for (var i = 0; i < 10; i++) {
111
+ test2["_" + String.fromCharCode(i)] = i;
112
+ }
113
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
114
+ return test2[n2];
115
+ });
116
+ if (order2.join("") !== "0123456789") {
117
+ return false;
118
+ }
119
+ var test3 = {};
120
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
121
+ test3[letter] = letter;
122
+ });
123
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
124
+ return false;
125
+ }
126
+ return true;
127
+ } catch (err) {
128
+ return false;
129
+ }
130
+ }
131
+ shouldUseNative() ? Object.assign : function(target, source) {
132
+ var from;
133
+ var to = toObject(target);
134
+ var symbols;
135
+ for (var s = 1; s < arguments.length; s++) {
136
+ from = Object(arguments[s]);
137
+ for (var key in from) {
138
+ if (hasOwnProperty.call(from, key)) {
139
+ to[key] = from[key];
140
+ }
141
+ }
142
+ if (getOwnPropertySymbols) {
143
+ symbols = getOwnPropertySymbols(from);
144
+ for (var i = 0; i < symbols.length; i++) {
145
+ if (propIsEnumerable.call(from, symbols[i])) {
146
+ to[symbols[i]] = from[symbols[i]];
147
+ }
148
+ }
149
+ }
150
+ }
151
+ return to;
152
+ };
153
+ /** @license React v17.0.2
154
+ * react-jsx-runtime.production.min.js
155
+ *
156
+ * Copyright (c) Facebook, Inc. and its affiliates.
157
+ *
158
+ * This source code is licensed under the MIT license found in the
159
+ * LICENSE file in the root directory of this source tree.
160
+ */
161
+ var f = require$$0, g = 60103;
162
+ reactJsxRuntime_production_min.Fragment = 60107;
163
+ if (typeof Symbol === "function" && Symbol.for) {
164
+ var h = Symbol.for;
165
+ g = h("react.element");
166
+ reactJsxRuntime_production_min.Fragment = h("react.fragment");
167
+ }
168
+ var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
169
+ function q(c, a, k) {
170
+ var b, d = {}, e = null, l = null;
171
+ k !== void 0 && (e = "" + k);
172
+ a.key !== void 0 && (e = "" + a.key);
173
+ a.ref !== void 0 && (l = a.ref);
174
+ for (b in a)
175
+ n.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
176
+ if (c && c.defaultProps)
177
+ for (b in a = c.defaultProps, a)
178
+ d[b] === void 0 && (d[b] = a[b]);
179
+ return { $$typeof: g, type: c, key: e, ref: l, props: d, _owner: m.current };
180
+ }
181
+ reactJsxRuntime_production_min.jsx = q;
182
+ reactJsxRuntime_production_min.jsxs = q;
183
+ {
184
+ jsxRuntime.exports = reactJsxRuntime_production_min;
185
+ }
186
+ const jsx = jsxRuntime.exports.jsx;
187
+ const jsxs = jsxRuntime.exports.jsxs;
188
+ const Spinner = ({
189
+ size,
190
+ color,
191
+ thickness
192
+ }) => {
193
+ return /* @__PURE__ */ jsx(SpinnerContainer, {
194
+ size,
195
+ children: /* @__PURE__ */ jsx(SpinnerComponent, {
196
+ viewBox: "25 25 50 50",
197
+ children: /* @__PURE__ */ jsx(Circle, {
198
+ className: "path",
199
+ cx: "50",
200
+ cy: "50",
201
+ r: "20",
202
+ fill: "none",
203
+ stroke: color || "currentColor",
204
+ opacity: "0.5",
205
+ strokeWidth: thickness || 5,
206
+ strokeMiterlimit: "10"
207
+ })
208
+ })
209
+ });
210
+ };
211
+ const pulse = keyframes`
212
+ 100% {
213
+ opacity: 0.5;
214
+ }
215
+ `;
216
+ const DefaultButtonContainer = styled.button`
217
+ --button-hover-brightness: 0.88;
218
+
219
+ position: relative;
220
+ padding: ${({ isLoading, hasLoadingText }) => isLoading && hasLoadingText ? "0.75em 1.125em 0.75em 2.5em" : "0.75em 1.25em"};
221
+ border-radius: 30px;
222
+ border: 0;
223
+
224
+ font-size: 1rem;
225
+ font-weight: 700;
226
+ background-color: var(--clr-primary);
227
+ color: var(--clr-white);
228
+
229
+ transition: all 250ms;
230
+
231
+ cursor: pointer;
232
+
233
+ .button__text_wrapper {
234
+ animation: ${({ isLoading }) => isLoading ? pulse : "none"} 0.75s infinite
235
+ alternate;
236
+ }
237
+
238
+ span svg {
239
+ width: 3.25em;
240
+ height: 3.25em;
241
+ }
242
+
243
+ &.button__outline {
244
+ border: 1px solid var(--clr-primary);
245
+ background-color: transparent;
246
+ color: var(--clr-primary);
247
+
248
+ &::after {
249
+ content: '';
250
+ width: 100%;
251
+ height: 100%;
252
+ position: absolute;
253
+ top: 0;
254
+ left: 0;
255
+ border-radius: 30px;
256
+ transition: opacity 250ms;
257
+ box-shadow: 0 0 10px 1px var(--clr-primary);
258
+ opacity: 0;
259
+ }
260
+ }
261
+
262
+ &:hover {
263
+ filter: brightness(var(--button-hover-brightness));
264
+
265
+ &.button__outline::after {
266
+ opacity: 0.25;
267
+ }
268
+ }
269
+
270
+ &:disabled {
271
+ opacity: 0.7;
272
+ filter: saturate(0.7);
273
+ cursor: default;
274
+ --button-hover-brightness: 1;
275
+ }
276
+
277
+ &:before {
278
+ content: '';
279
+ display: block;
280
+
281
+ width: ${({ isLoading, hasLoadingText }) => isLoading && hasLoadingText ? "2em" : "0"};
282
+ }
283
+
284
+ .button__spinner_wrapper {
285
+ margin: -0.5em 0;
286
+ display: ${({ isLoading }) => isLoading ? "block" : "none"};
287
+ ${({ hasLoadingText }) => hasLoadingText && css`
288
+ top: calc(50% + 0.5em);
289
+ transform: translateY(-50%);
290
+ position: absolute;
291
+ left: 0.5rem;
292
+ `}
293
+ }
294
+ `;
295
+ const Button = (_a) => {
296
+ var _b = _a, {
297
+ disabled = false,
298
+ isLoading = false,
299
+ loadingText = "",
300
+ outlined = false,
301
+ className = "",
302
+ children
303
+ } = _b, rest = __objRest(_b, [
304
+ "disabled",
305
+ "isLoading",
306
+ "loadingText",
307
+ "outlined",
308
+ "className",
309
+ "children"
310
+ ]);
311
+ return /* @__PURE__ */ jsxs(DefaultButtonContainer, __spreadProps(__spreadValues({
312
+ disabled: disabled || isLoading,
313
+ isLoading,
314
+ hasLoadingText: !!loadingText,
315
+ className: `${className} ${outlined ? "button__outline" : ""}`,
316
+ type: "button"
317
+ }, rest), {
318
+ children: [/* @__PURE__ */ jsx("div", {
319
+ className: "button__spinner_wrapper",
320
+ children: /* @__PURE__ */ jsx(Spinner, {
321
+ size: "1.5em"
322
+ })
323
+ }), /* @__PURE__ */ jsx("span", {
324
+ className: "button__text_wrapper",
325
+ children: isLoading ? loadingText || "" : children
326
+ })]
327
+ }));
328
+ };
329
+ const binamikTheme = css`
330
+ :root {
331
+ --clr-white: #ffffff;
332
+ --clr-black: #000000;
333
+
334
+ --clr-white-overlay: rgba(255, 255, 255, 0.8);
335
+
336
+ --clr-gray1: #4D4D4D;
337
+ --clr-gray2: #666666;
338
+ --clr-gray3: #6A6A6A;
339
+ --clr-gray4: #959595;
340
+ --clr-gray5: #AAAAAA;
341
+ --clr-gray6: #BABABA;
342
+ --clr-gray7: #D6D6D6;
343
+ --clr-gray8: #E6E6E6;
344
+ --clr-gray9: #EAEAEA;
345
+ --clr-gray10: #EDEDED;
346
+ --clr-gray11: #F0F0F0;
347
+ --clr-gray12: #F4F4F4;
348
+ --clr-gray13: #F7F7F7;
349
+ --clr-gray14: #FAFAFA;
350
+ --clr-gray15: #FCFCFC;
351
+
352
+ --clr-blue1: #286C81;
353
+ --clr-blue2: #55A6AC;
354
+ --clr-blue3: #1ED6BB;
355
+ --clr-blue4: #007aff;
356
+ --clr-blue-grad1: linear-gradient(90deg, rgba(85,166,172,1) 0%, rgba(40,108,129,1) 100%);
357
+ --clr-blue-grad2: linear-gradient(46deg, #0096A2 0%, #1ED6BB 100%);
358
+ --clr-blue-grad3: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,212,255,1) 100%);
359
+
360
+ --clr-green1: #188955;
361
+ --clr-green2: #10bd6d;
362
+ --clr-green3: #38B54B;
363
+ --clr-green4: #F4FAFA;
364
+ --clr-green5: #E2F4EC;
365
+ --clr-green6: #218430;
366
+ --clr-green7: #2aa747;
367
+ --clr-green-grad1: linear-gradient(90deg, rgba(16,189,109,1) 0%, rgba(24,137,85,1) 100%);
368
+
369
+ --clr-indigo1: #4D4DFF;
370
+ --clr-indigo1-t08: rgba(77, 77, 255, 0.05);
371
+ --clr-indigo2: #7E7EFC;
372
+ --clr-indigo3: #EDEDFF;
373
+ --clr-indigoGradient1: linear-gradient(90deg, rgba(126,126,252,1) 0%, rgba(77,77,255,1) 100%);
374
+
375
+ --clr-orange1: #FF8000;
376
+ --clr-orange2: #DD9E41;
377
+ --clr-orange3: #F6A742;
378
+ --clr-orange4: #FFC164;
379
+ --clr-orange5: #FAF2E7;
380
+ --clr-orange6: #CB901A;
381
+
382
+ --clr-red1: #E22521;
383
+ --clr-red2: #FF0000;
384
+ --clr-red3: #FF6461;
385
+ --clr-red4: #F64242;
386
+ --clr-red5: #F26D6D;
387
+ --clr-red6: #FBEBEB;
388
+ --clr-red-grad1: linear-gradient(90deg, rgb(246, 66, 66) 0%, rgb(242, 109, 109) 100%);
389
+
390
+ --clr-yellow1: #FDBB4E;
391
+ --clr-yellow2: #F8A520;
392
+ --clr-yellow3: #F2BB4E;
393
+
394
+ --clr-purple1: #7E7EFCFA;
395
+ --clr-purple2: #8080FC;
396
+
397
+ --clr-primary: var(--clr-indigo1);
398
+ --clr-primary-t08: var(--clr-indigo1-t08);
399
+ --clr-primary2: var(--clr-indigo2);
400
+ --clr-secondary: var(--clr-yellow1);
401
+
402
+ --clr-warning: var(--clr-orange4);
403
+ --clr-warning2: var(--clr-orange5);
404
+
405
+ --clr-success: var(--clr-green3);
406
+ --clr-success2: var(--clr-green5);
407
+
408
+ --clr-danger: var(--clr-red3);
409
+ --clr-danger2: var(--clr-red6);
410
+
411
+ --clr-info: var(--clr-gray5);
412
+ --clr-info2: var(--clr-gray14);
413
+
414
+ --clr-dark: var(--clr-gray2);
415
+ --clr-disabled: var(--clr-gray11);
416
+
417
+ --fs-2xs: 0.625rem; // 10px
418
+ --fs-xs: 0.75rem; // 12px
419
+ --fs-sm: 0.875rem; // 14px
420
+ --fs-md: 1rem; // 16px
421
+ --fs-lg: 1.125rem; // 18px
422
+ --fs-xl: 1.25rem; // 20px
423
+ --fs-2xl: 1.5rem; // 24px
424
+ --fs-3xl: 2rem; // 32px
425
+ --fs-4xl: 3rem; // 48px
426
+
427
+ --bp-tablet: 64rem; // 1024px
428
+ }
429
+ `;
430
+ const binamikCssReset = css`
431
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
432
+ blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
433
+ img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u,
434
+ i, center, dl, dt, dd, menu, ol, ul, li, fieldset, form, label, legend, table,
435
+ caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
436
+ embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output,
437
+ ruby, section, summary, time, mark, audio, video {
438
+ margin: 0;
439
+ padding: 0;
440
+ border: 0;
441
+ font-size: 100%;
442
+ font: inherit;
443
+ vertical-align: baseline;
444
+ }
445
+ /* HTML5 display-role reset for older browsers */
446
+ article, aside, details, figcaption, figure, footer, header, hgroup, main,
447
+ menu, nav, section {
448
+ display: block;
449
+ }
450
+
451
+ menu, ol, ul {
452
+ list-style: none;
453
+ }
454
+
455
+ blockquote, q {
456
+ quotes: none;
457
+ }
458
+
459
+ blockquote:before,
460
+ blockquote:after,
461
+ q:before,
462
+ q:after {
463
+ content: '';
464
+ content: none;
465
+ }
466
+
467
+ table {
468
+ border-collapse: collapse;
469
+ border-spacing: 0;
470
+ }
471
+
472
+ // Custom values
473
+ *, :before, :after {
474
+ margin: 0;
475
+ padding: 0;
476
+ border: 0;
477
+ box-sizing: border-box;
478
+ }
479
+
480
+ a {
481
+ color: inherit;
482
+ text-decoration: none;
483
+ cursor: pointer;
484
+ }
485
+
486
+ @keyframes autofill {
487
+ 0%,100% {
488
+ background: transparent;
489
+ }
490
+ }
491
+
492
+ @-webkit-keyframes autofill {
493
+ 0%,100% {
494
+ background: transparent;
495
+ }
496
+ }
497
+
498
+ input:-webkit-autofill,
499
+ input:-webkit-autofill:hover,
500
+ input:-webkit-autofill:focus,
501
+ textarea:-webkit-autofill,
502
+ textarea:-webkit-autofill:hover,
503
+ textarea:-webkit-autofill:focus,
504
+ select:-webkit-autofill,
505
+ select:-webkit-autofill:hover,
506
+ select:-webkit-autofill:focus {
507
+ animation-delay: 9999999s;
508
+ -webkit-animation-delay: 9999999s; /* 115 days without the anoying auto complete background */
509
+ animation-name: autofill;
510
+ -webkit-animation-name: autofill;
511
+ animation-fill-mode: both;
512
+ -webkit-animation-fill-mode: both;
513
+ background-clip: text;
514
+ -webkit-background-clip: text;
515
+ }
516
+ `;
517
+ const binamikGlobalStyles = css`
518
+ body {
519
+ line-height: 1;
520
+ color: #444;
521
+ position: relative;
522
+ }
523
+
524
+ button {
525
+ cursor: pointer;
526
+ }
527
+
528
+ body, input, textarea, select, textarea, button {
529
+ font-family: "Mulish", sans-serif;
530
+ font-size: inherit;
531
+ font-weight: 400;
532
+ -webkit-font-smoothing: antialiased;
533
+ }
534
+
535
+ h1, h2, h3, h4, h5, h6 {
536
+ font-weight: 700;
537
+ }
538
+
539
+ h1 { font-size: var(--fs-3xl); }
540
+ h2 { font-size: var(--fs-2xl); }
541
+ h3 { font-size: var(--fs-xl); }
542
+ h4 { font-size: var(--fs-l); }
543
+
544
+ img {
545
+ position: relative;
546
+ }
547
+
548
+ img[alt]:after {
549
+ display: block;
550
+ position: absolute;
551
+ top: 0;
552
+ left: 0;
553
+ width: 100%;
554
+ height: 100%;
555
+ background-color: #D6D6D6;
556
+ content: '';
557
+ }
558
+
559
+
560
+ *:focus-visible {
561
+ outline: 2px solid #007aff;
562
+ outline-offset: 1px;
563
+ border-radius: 2px;
564
+ }
565
+
566
+ .noselect {
567
+ -webkit-touch-callout: none; /* iOS Safari */
568
+ -webkit-user-select: none; /* Safari */
569
+ -khtml-user-select: none; /* Konqueror HTML */
570
+ -moz-user-select: none; /* Old versions of Firefox */
571
+ -ms-user-select: none; /* Internet Explorer/Edge */
572
+ user-select: none; /* Non-prefixed version, currently
573
+ supported by Chrome, Edge, Opera and Firefox */
574
+ }
575
+
576
+ .primary_color_txt {
577
+ color: var(--clr-primary);
578
+ }
579
+ `;
580
+ const UMBRA_COLOR = (shadowStyles = "normal") => {
581
+ if (shadowStyles === "light")
582
+ return "rgba(0, 0, 0, 0.05)";
583
+ if (shadowStyles === "normal")
584
+ return "rgba(0, 0, 0, 0.1)";
585
+ return "rgba(0, 0, 0, 0.2)";
586
+ };
587
+ const PENUMBRA_COLOR = (shadowStyles = "normal") => {
588
+ if (shadowStyles === "light")
589
+ return "rgba(0, 0, 0, 0.03)";
590
+ if (shadowStyles === "normal")
591
+ return "rgba(0, 0, 0, 0.07)";
592
+ return "rgba(0, 0, 0, 0.14)";
593
+ };
594
+ const AMBIENT_COLOR = (shadowStyles = "normal") => {
595
+ if (shadowStyles === "light")
596
+ return "rgba(0, 0, 0, 0.02)";
597
+ if (shadowStyles === "normal")
598
+ return "rgba(0, 0, 0, 0.06)";
599
+ return "rgba(0, 0, 0, 0.12)";
600
+ };
601
+ const UMBRA_MAP = {
602
+ 0: "0px 0px 0px 0px",
603
+ 1: "0px 2px 1px -1px",
604
+ 2: "0px 3px 1px -2px",
605
+ 3: "0px 3px 3px -2px",
606
+ 4: "0px 2px 4px -1px",
607
+ 5: "0px 3px 5px -1px",
608
+ 6: "0px 3px 5px -1px",
609
+ 7: "0px 4px 5px -2px",
610
+ 8: "0px 5px 5px -3px",
611
+ 9: "0px 5px 6px -3px",
612
+ 10: "0px 6px 6px -3px",
613
+ 11: "0px 6px 7px -4px",
614
+ 12: "0px 7px 8px -4px",
615
+ 13: "0px 7px 8px -4px",
616
+ 14: "0px 7px 9px -4px",
617
+ 15: "0px 8px 9px -5px",
618
+ 16: "0px 8px 10px -5px",
619
+ 17: "0px 8px 11px -5px",
620
+ 18: "0px 9px 11px -5px",
621
+ 19: "0px 9px 12px -6px",
622
+ 20: "0px 10px 13px -6px",
623
+ 21: "0px 10px 13px -6px",
624
+ 22: "0px 10px 14px -6px",
625
+ 23: "0px 11px 14px -7px",
626
+ 24: "0px 11px 15px -7px"
627
+ };
628
+ const PENUMBRA_MAP = {
629
+ 0: "0px 0px 0px 0px",
630
+ 1: "0px 1px 1px 0px",
631
+ 2: "0px 2px 2px 0px",
632
+ 3: "0px 3px 4px 0px",
633
+ 4: "0px 4px 5px 0px",
634
+ 5: "0px 5px 8px 0px",
635
+ 6: "0px 6px 10px 0px",
636
+ 7: "0px 7px 10px 1px",
637
+ 8: "0px 8px 10px 1px",
638
+ 9: "0px 9px 12px 1px",
639
+ 10: "0px 10px 14px 1px",
640
+ 11: "0px 11px 15px 1px",
641
+ 12: "0px 12px 17px 2px",
642
+ 13: "0px 13px 19px 2px",
643
+ 14: "0px 14px 21px 2px",
644
+ 15: "0px 15px 22px 2px",
645
+ 16: "0px 16px 24px 2px",
646
+ 17: "0px 17px 26px 2px",
647
+ 18: "0px 18px 28px 2px",
648
+ 19: "0px 19px 29px 2px",
649
+ 20: "0px 20px 31px 3px",
650
+ 21: "0px 21px 33px 3px",
651
+ 22: "0px 22px 35px 3px",
652
+ 23: "0px 23px 36px 3px",
653
+ 24: "0px 24px 38px 3px"
654
+ };
655
+ const AMBIENT_MAP = {
656
+ 0: "0px 0px 0px 0px",
657
+ 1: "0px 1px 3px 0px",
658
+ 2: "0px 1px 5px 0px",
659
+ 3: "0px 1px 8px 0px",
660
+ 4: "0px 1px 10px 0px",
661
+ 5: "0px 1px 14px 0px",
662
+ 6: "0px 1px 18px 0px",
663
+ 7: "0px 2px 16px 1px",
664
+ 8: "0px 3px 14px 2px",
665
+ 9: "0px 3px 16px 2px",
666
+ 10: "0px 4px 18px 3px",
667
+ 11: "0px 4px 20px 3px",
668
+ 12: "0px 5px 22px 4px",
669
+ 13: "0px 5px 24px 4px",
670
+ 14: "0px 5px 26px 4px",
671
+ 15: "0px 6px 28px 5px",
672
+ 16: "0px 6px 30px 5px",
673
+ 17: "0px 6px 32px 5px",
674
+ 18: "0px 7px 34px 6px",
675
+ 19: "0px 7px 36px 6px",
676
+ 20: "0px 8px 38px 7px",
677
+ 21: "0px 8px 40px 7px",
678
+ 22: "0px 8px 42px 7px",
679
+ 23: "0px 9px 44px 8px",
680
+ 24: "0px 9px 46px 8px"
681
+ };
682
+ const depth = (depthValue, strength = "light") => {
683
+ return `box-shadow: ${UMBRA_MAP[depthValue]} ${UMBRA_COLOR(strength)},
684
+ ${PENUMBRA_MAP[depthValue]} ${PENUMBRA_COLOR(strength)},
685
+ ${AMBIENT_MAP[depthValue]} ${AMBIENT_COLOR(strength)};`;
686
+ };
687
+ const PreventScroll = () => {
688
+ return /* @__PURE__ */ jsx(Global, {
689
+ styles: css`
690
+ body {
691
+ overflow: hidden;
692
+ }
693
+ `
694
+ });
695
+ };
696
+ export { Button, PreventScroll, Spinner, binamikCssReset, binamikGlobalStyles, binamikTheme, depth };
@@ -0,0 +1,391 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@emotion/react"),require("@emotion/styled"),require("react")):typeof define=="function"&&define.amd?define(["exports","@emotion/react","@emotion/styled","react"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.BinamikCompoents={},e["emotion-react"],e.styled,e.React))})(this,function(e,t,a,x){"use strict";var nr=Object.defineProperty,ar=Object.defineProperties;var ir=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var F=(e,t,a)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,O=(e,t)=>{for(var a in t||(t={}))E.call(t,a)&&F(e,a,t[a]);if(b)for(var a of b(t))A.call(t,a)&&F(e,a,t[a]);return e},j=(e,t)=>ar(e,ir(t));var B=(e,t)=>{var a={};for(var x in e)E.call(e,x)&&t.indexOf(x)<0&&(a[x]=e[x]);if(e!=null&&b)for(var x of b(e))t.indexOf(x)<0&&A.call(e,x)&&(a[x]=e[x]);return a};function m(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var d=m(a),C=m(x);const D=t.keyframes`
2
+ 0% {
3
+ stroke-dasharray: 1, 200;
4
+ stroke-dashoffset: 0;
5
+ }
6
+ 50% {
7
+ stroke-dasharray: 89, 200;
8
+ stroke-dashoffset: -35px;
9
+ }
10
+ 100% {
11
+ stroke-dasharray: 89, 200;
12
+ stroke-dashoffset: -124px;
13
+ }
14
+ `,S=t.keyframes`
15
+ 100% {
16
+ transform: rotate(360deg);
17
+ }
18
+ `,$=d.default.div`
19
+ position: relative;
20
+ margin: 0 auto;
21
+ width: ${({size:r})=>r||"1.5rem"};
22
+
23
+ &:before {
24
+ content: '';
25
+ display: block;
26
+ padding-top: 100%;
27
+ }
28
+ `,P=d.default.svg`
29
+ animation: ${S} 2s linear infinite;
30
+ height: 100%;
31
+ transform-origin: center center;
32
+ width: 100%;
33
+ position: absolute;
34
+ top: 0;
35
+ bottom: 0;
36
+ left: 0;
37
+ right: 0;
38
+ margin: auto;
39
+ `,q=d.default.circle`
40
+ stroke-dasharray: 1, 200;
41
+ stroke-dashoffset: 0;
42
+ animation: ${D} 1.5s ease-in-out infinite;
43
+ stroke-linecap: round;
44
+ `;var g={exports:{}},u={};/*
45
+ object-assign
46
+ (c) Sindre Sorhus
47
+ @license MIT
48
+ */var y=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;function N(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function T(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var p={},o=0;o<10;o++)p["_"+String.fromCharCode(o)]=o;var n=Object.getOwnPropertyNames(p).map(function(l){return p[l]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(l){i[l]=l}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}T();/** @license React v17.0.2
49
+ * react-jsx-runtime.production.min.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */var z=C.default,h=60103;if(u.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;h=v("react.element"),u.Fragment=v("react.fragment")}var I=z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L=Object.prototype.hasOwnProperty,U={key:!0,ref:!0,__self:!0,__source:!0};function k(r,p,o){var n,i={},l=null,s=null;o!==void 0&&(l=""+o),p.key!==void 0&&(l=""+p.key),p.ref!==void 0&&(s=p.ref);for(n in p)L.call(p,n)&&!U.hasOwnProperty(n)&&(i[n]=p[n]);if(r&&r.defaultProps)for(n in p=r.defaultProps,p)i[n]===void 0&&(i[n]=p[n]);return{$$typeof:h,type:r,key:l,ref:s,props:i,_owner:I.current}}u.jsx=k,u.jsxs=k,g.exports=u;const c=g.exports.jsx,G=g.exports.jsxs,w=({size:r,color:p,thickness:o})=>c($,{size:r,children:c(P,{viewBox:"25 25 50 50",children:c(q,{className:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:p||"currentColor",opacity:"0.5",strokeWidth:o||5,strokeMiterlimit:"10"})})}),H=t.keyframes`
56
+ 100% {
57
+ opacity: 0.5;
58
+ }
59
+ `,W=d.default.button`
60
+ --button-hover-brightness: 0.88;
61
+
62
+ position: relative;
63
+ padding: ${({isLoading:r,hasLoadingText:p})=>r&&p?"0.75em 1.125em 0.75em 2.5em":"0.75em 1.25em"};
64
+ border-radius: 30px;
65
+ border: 0;
66
+
67
+ font-size: 1rem;
68
+ font-weight: 700;
69
+ background-color: var(--clr-primary);
70
+ color: var(--clr-white);
71
+
72
+ transition: all 250ms;
73
+
74
+ cursor: pointer;
75
+
76
+ .button__text_wrapper {
77
+ animation: ${({isLoading:r})=>r?H:"none"} 0.75s infinite
78
+ alternate;
79
+ }
80
+
81
+ span svg {
82
+ width: 3.25em;
83
+ height: 3.25em;
84
+ }
85
+
86
+ &.button__outline {
87
+ border: 1px solid var(--clr-primary);
88
+ background-color: transparent;
89
+ color: var(--clr-primary);
90
+
91
+ &::after {
92
+ content: '';
93
+ width: 100%;
94
+ height: 100%;
95
+ position: absolute;
96
+ top: 0;
97
+ left: 0;
98
+ border-radius: 30px;
99
+ transition: opacity 250ms;
100
+ box-shadow: 0 0 10px 1px var(--clr-primary);
101
+ opacity: 0;
102
+ }
103
+ }
104
+
105
+ &:hover {
106
+ filter: brightness(var(--button-hover-brightness));
107
+
108
+ &.button__outline::after {
109
+ opacity: 0.25;
110
+ }
111
+ }
112
+
113
+ &:disabled {
114
+ opacity: 0.7;
115
+ filter: saturate(0.7);
116
+ cursor: default;
117
+ --button-hover-brightness: 1;
118
+ }
119
+
120
+ &:before {
121
+ content: '';
122
+ display: block;
123
+
124
+ width: ${({isLoading:r,hasLoadingText:p})=>r&&p?"2em":"0"};
125
+ }
126
+
127
+ .button__spinner_wrapper {
128
+ margin: -0.5em 0;
129
+ display: ${({isLoading:r})=>r?"block":"none"};
130
+ ${({hasLoadingText:r})=>r&&t.css`
131
+ top: calc(50% + 0.5em);
132
+ transform: translateY(-50%);
133
+ position: absolute;
134
+ left: 0.5rem;
135
+ `}
136
+ }
137
+ `,Y=f=>{var _=f,{disabled:r=!1,isLoading:p=!1,loadingText:o="",outlined:n=!1,className:i="",children:l}=_,s=B(_,["disabled","isLoading","loadingText","outlined","className","children"]);return G(W,j(O({disabled:r||p,isLoading:p,hasLoadingText:!!o,className:`${i} ${n?"button__outline":""}`,type:"button"},s),{children:[c("div",{className:"button__spinner_wrapper",children:c(w,{size:"1.5em"})}),c("span",{className:"button__text_wrapper",children:p?o||"":l})]}))},J=t.css`
138
+ :root {
139
+ --clr-white: #ffffff;
140
+ --clr-black: #000000;
141
+
142
+ --clr-white-overlay: rgba(255, 255, 255, 0.8);
143
+
144
+ --clr-gray1: #4D4D4D;
145
+ --clr-gray2: #666666;
146
+ --clr-gray3: #6A6A6A;
147
+ --clr-gray4: #959595;
148
+ --clr-gray5: #AAAAAA;
149
+ --clr-gray6: #BABABA;
150
+ --clr-gray7: #D6D6D6;
151
+ --clr-gray8: #E6E6E6;
152
+ --clr-gray9: #EAEAEA;
153
+ --clr-gray10: #EDEDED;
154
+ --clr-gray11: #F0F0F0;
155
+ --clr-gray12: #F4F4F4;
156
+ --clr-gray13: #F7F7F7;
157
+ --clr-gray14: #FAFAFA;
158
+ --clr-gray15: #FCFCFC;
159
+
160
+ --clr-blue1: #286C81;
161
+ --clr-blue2: #55A6AC;
162
+ --clr-blue3: #1ED6BB;
163
+ --clr-blue4: #007aff;
164
+ --clr-blue-grad1: linear-gradient(90deg, rgba(85,166,172,1) 0%, rgba(40,108,129,1) 100%);
165
+ --clr-blue-grad2: linear-gradient(46deg, #0096A2 0%, #1ED6BB 100%);
166
+ --clr-blue-grad3: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,212,255,1) 100%);
167
+
168
+ --clr-green1: #188955;
169
+ --clr-green2: #10bd6d;
170
+ --clr-green3: #38B54B;
171
+ --clr-green4: #F4FAFA;
172
+ --clr-green5: #E2F4EC;
173
+ --clr-green6: #218430;
174
+ --clr-green7: #2aa747;
175
+ --clr-green-grad1: linear-gradient(90deg, rgba(16,189,109,1) 0%, rgba(24,137,85,1) 100%);
176
+
177
+ --clr-indigo1: #4D4DFF;
178
+ --clr-indigo1-t08: rgba(77, 77, 255, 0.05);
179
+ --clr-indigo2: #7E7EFC;
180
+ --clr-indigo3: #EDEDFF;
181
+ --clr-indigoGradient1: linear-gradient(90deg, rgba(126,126,252,1) 0%, rgba(77,77,255,1) 100%);
182
+
183
+ --clr-orange1: #FF8000;
184
+ --clr-orange2: #DD9E41;
185
+ --clr-orange3: #F6A742;
186
+ --clr-orange4: #FFC164;
187
+ --clr-orange5: #FAF2E7;
188
+ --clr-orange6: #CB901A;
189
+
190
+ --clr-red1: #E22521;
191
+ --clr-red2: #FF0000;
192
+ --clr-red3: #FF6461;
193
+ --clr-red4: #F64242;
194
+ --clr-red5: #F26D6D;
195
+ --clr-red6: #FBEBEB;
196
+ --clr-red-grad1: linear-gradient(90deg, rgb(246, 66, 66) 0%, rgb(242, 109, 109) 100%);
197
+
198
+ --clr-yellow1: #FDBB4E;
199
+ --clr-yellow2: #F8A520;
200
+ --clr-yellow3: #F2BB4E;
201
+
202
+ --clr-purple1: #7E7EFCFA;
203
+ --clr-purple2: #8080FC;
204
+
205
+ --clr-primary: var(--clr-indigo1);
206
+ --clr-primary-t08: var(--clr-indigo1-t08);
207
+ --clr-primary2: var(--clr-indigo2);
208
+ --clr-secondary: var(--clr-yellow1);
209
+
210
+ --clr-warning: var(--clr-orange4);
211
+ --clr-warning2: var(--clr-orange5);
212
+
213
+ --clr-success: var(--clr-green3);
214
+ --clr-success2: var(--clr-green5);
215
+
216
+ --clr-danger: var(--clr-red3);
217
+ --clr-danger2: var(--clr-red6);
218
+
219
+ --clr-info: var(--clr-gray5);
220
+ --clr-info2: var(--clr-gray14);
221
+
222
+ --clr-dark: var(--clr-gray2);
223
+ --clr-disabled: var(--clr-gray11);
224
+
225
+ --fs-2xs: 0.625rem; // 10px
226
+ --fs-xs: 0.75rem; // 12px
227
+ --fs-sm: 0.875rem; // 14px
228
+ --fs-md: 1rem; // 16px
229
+ --fs-lg: 1.125rem; // 18px
230
+ --fs-xl: 1.25rem; // 20px
231
+ --fs-2xl: 1.5rem; // 24px
232
+ --fs-3xl: 2rem; // 32px
233
+ --fs-4xl: 3rem; // 48px
234
+
235
+ --bp-tablet: 64rem; // 1024px
236
+ }
237
+ `,K=t.css`
238
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
239
+ blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
240
+ img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u,
241
+ i, center, dl, dt, dd, menu, ol, ul, li, fieldset, form, label, legend, table,
242
+ caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
243
+ embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output,
244
+ ruby, section, summary, time, mark, audio, video {
245
+ margin: 0;
246
+ padding: 0;
247
+ border: 0;
248
+ font-size: 100%;
249
+ font: inherit;
250
+ vertical-align: baseline;
251
+ }
252
+ /* HTML5 display-role reset for older browsers */
253
+ article, aside, details, figcaption, figure, footer, header, hgroup, main,
254
+ menu, nav, section {
255
+ display: block;
256
+ }
257
+
258
+ menu, ol, ul {
259
+ list-style: none;
260
+ }
261
+
262
+ blockquote, q {
263
+ quotes: none;
264
+ }
265
+
266
+ blockquote:before,
267
+ blockquote:after,
268
+ q:before,
269
+ q:after {
270
+ content: '';
271
+ content: none;
272
+ }
273
+
274
+ table {
275
+ border-collapse: collapse;
276
+ border-spacing: 0;
277
+ }
278
+
279
+ // Custom values
280
+ *, :before, :after {
281
+ margin: 0;
282
+ padding: 0;
283
+ border: 0;
284
+ box-sizing: border-box;
285
+ }
286
+
287
+ a {
288
+ color: inherit;
289
+ text-decoration: none;
290
+ cursor: pointer;
291
+ }
292
+
293
+ @keyframes autofill {
294
+ 0%,100% {
295
+ background: transparent;
296
+ }
297
+ }
298
+
299
+ @-webkit-keyframes autofill {
300
+ 0%,100% {
301
+ background: transparent;
302
+ }
303
+ }
304
+
305
+ input:-webkit-autofill,
306
+ input:-webkit-autofill:hover,
307
+ input:-webkit-autofill:focus,
308
+ textarea:-webkit-autofill,
309
+ textarea:-webkit-autofill:hover,
310
+ textarea:-webkit-autofill:focus,
311
+ select:-webkit-autofill,
312
+ select:-webkit-autofill:hover,
313
+ select:-webkit-autofill:focus {
314
+ animation-delay: 9999999s;
315
+ -webkit-animation-delay: 9999999s; /* 115 days without the anoying auto complete background */
316
+ animation-name: autofill;
317
+ -webkit-animation-name: autofill;
318
+ animation-fill-mode: both;
319
+ -webkit-animation-fill-mode: both;
320
+ background-clip: text;
321
+ -webkit-background-clip: text;
322
+ }
323
+ `,Q=t.css`
324
+ body {
325
+ line-height: 1;
326
+ color: #444;
327
+ position: relative;
328
+ }
329
+
330
+ button {
331
+ cursor: pointer;
332
+ }
333
+
334
+ body, input, textarea, select, textarea, button {
335
+ font-family: "Mulish", sans-serif;
336
+ font-size: inherit;
337
+ font-weight: 400;
338
+ -webkit-font-smoothing: antialiased;
339
+ }
340
+
341
+ h1, h2, h3, h4, h5, h6 {
342
+ font-weight: 700;
343
+ }
344
+
345
+ h1 { font-size: var(--fs-3xl); }
346
+ h2 { font-size: var(--fs-2xl); }
347
+ h3 { font-size: var(--fs-xl); }
348
+ h4 { font-size: var(--fs-l); }
349
+
350
+ img {
351
+ position: relative;
352
+ }
353
+
354
+ img[alt]:after {
355
+ display: block;
356
+ position: absolute;
357
+ top: 0;
358
+ left: 0;
359
+ width: 100%;
360
+ height: 100%;
361
+ background-color: #D6D6D6;
362
+ content: '';
363
+ }
364
+
365
+
366
+ *:focus-visible {
367
+ outline: 2px solid #007aff;
368
+ outline-offset: 1px;
369
+ border-radius: 2px;
370
+ }
371
+
372
+ .noselect {
373
+ -webkit-touch-callout: none; /* iOS Safari */
374
+ -webkit-user-select: none; /* Safari */
375
+ -khtml-user-select: none; /* Konqueror HTML */
376
+ -moz-user-select: none; /* Old versions of Firefox */
377
+ -ms-user-select: none; /* Internet Explorer/Edge */
378
+ user-select: none; /* Non-prefixed version, currently
379
+ supported by Chrome, Edge, Opera and Firefox */
380
+ }
381
+
382
+ .primary_color_txt {
383
+ color: var(--clr-primary);
384
+ }
385
+ `,X=(r="normal")=>r==="light"?"rgba(0, 0, 0, 0.05)":r==="normal"?"rgba(0, 0, 0, 0.1)":"rgba(0, 0, 0, 0.2)",Z=(r="normal")=>r==="light"?"rgba(0, 0, 0, 0.03)":r==="normal"?"rgba(0, 0, 0, 0.07)":"rgba(0, 0, 0, 0.14)",V=(r="normal")=>r==="light"?"rgba(0, 0, 0, 0.02)":r==="normal"?"rgba(0, 0, 0, 0.06)":"rgba(0, 0, 0, 0.12)",rr={0:"0px 0px 0px 0px",1:"0px 2px 1px -1px",2:"0px 3px 1px -2px",3:"0px 3px 3px -2px",4:"0px 2px 4px -1px",5:"0px 3px 5px -1px",6:"0px 3px 5px -1px",7:"0px 4px 5px -2px",8:"0px 5px 5px -3px",9:"0px 5px 6px -3px",10:"0px 6px 6px -3px",11:"0px 6px 7px -4px",12:"0px 7px 8px -4px",13:"0px 7px 8px -4px",14:"0px 7px 9px -4px",15:"0px 8px 9px -5px",16:"0px 8px 10px -5px",17:"0px 8px 11px -5px",18:"0px 9px 11px -5px",19:"0px 9px 12px -6px",20:"0px 10px 13px -6px",21:"0px 10px 13px -6px",22:"0px 10px 14px -6px",23:"0px 11px 14px -7px",24:"0px 11px 15px -7px"},er={0:"0px 0px 0px 0px",1:"0px 1px 1px 0px",2:"0px 2px 2px 0px",3:"0px 3px 4px 0px",4:"0px 4px 5px 0px",5:"0px 5px 8px 0px",6:"0px 6px 10px 0px",7:"0px 7px 10px 1px",8:"0px 8px 10px 1px",9:"0px 9px 12px 1px",10:"0px 10px 14px 1px",11:"0px 11px 15px 1px",12:"0px 12px 17px 2px",13:"0px 13px 19px 2px",14:"0px 14px 21px 2px",15:"0px 15px 22px 2px",16:"0px 16px 24px 2px",17:"0px 17px 26px 2px",18:"0px 18px 28px 2px",19:"0px 19px 29px 2px",20:"0px 20px 31px 3px",21:"0px 21px 33px 3px",22:"0px 22px 35px 3px",23:"0px 23px 36px 3px",24:"0px 24px 38px 3px"},tr={0:"0px 0px 0px 0px",1:"0px 1px 3px 0px",2:"0px 1px 5px 0px",3:"0px 1px 8px 0px",4:"0px 1px 10px 0px",5:"0px 1px 14px 0px",6:"0px 1px 18px 0px",7:"0px 2px 16px 1px",8:"0px 3px 14px 2px",9:"0px 3px 16px 2px",10:"0px 4px 18px 3px",11:"0px 4px 20px 3px",12:"0px 5px 22px 4px",13:"0px 5px 24px 4px",14:"0px 5px 26px 4px",15:"0px 6px 28px 5px",16:"0px 6px 30px 5px",17:"0px 6px 32px 5px",18:"0px 7px 34px 6px",19:"0px 7px 36px 6px",20:"0px 8px 38px 7px",21:"0px 8px 40px 7px",22:"0px 8px 42px 7px",23:"0px 9px 44px 8px",24:"0px 9px 46px 8px"},pr=(r,p="light")=>`box-shadow: ${rr[r]} ${X(p)},
386
+ ${er[r]} ${Z(p)},
387
+ ${tr[r]} ${V(p)};`,or=()=>c(t.Global,{styles:t.css`
388
+ body {
389
+ overflow: hidden;
390
+ }
391
+ `});e.Button=Y,e.PreventScroll=or,e.Spinner=w,e.binamikCssReset=K,e.binamikGlobalStyles=Q,e.binamikTheme=J,e.depth=pr,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,3 @@
1
+ export * from './Buttons/';
2
+ export * from './Styles';
3
+ export * from './Assets';
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@binamik/components",
3
+ "version": "0.1.0",
4
+ "scripts": {
5
+ "dev": "vite",
6
+ "build": "tsc && vite build",
7
+ "build:local": "tsc && vite build && node buildLocal.js prebuild && yarn pack && node buildLocal.js postbuild",
8
+ "preview": "vite preview",
9
+ "storybook": "start-storybook -p 6006",
10
+ "build-storybook": "build-storybook",
11
+ "lint": "eslint . --ext .ts,.tsx",
12
+ "lint:fix": "eslint . --ext .ts,.tsx --fix",
13
+ "test": "jest",
14
+ "test:coverage": "jest --coverage"
15
+ },
16
+ "dependencies": {},
17
+ "devDependencies": {
18
+ "@babel/core": "^7.18.2",
19
+ "@babel/preset-env": "^7.18.2",
20
+ "@babel/preset-react": "^7.17.12",
21
+ "@babel/preset-typescript": "^7.17.12",
22
+ "@emotion/react": "^11.9.0",
23
+ "@emotion/styled": "^11.8.1",
24
+ "@storybook/addon-actions": "^6.5.0-beta.5",
25
+ "@storybook/addon-essentials": "^6.5.0-beta.5",
26
+ "@storybook/addon-interactions": "^6.5.0-beta.5",
27
+ "@storybook/addon-links": "^6.5.0-beta.5",
28
+ "@storybook/builder-vite": "^0.1.33",
29
+ "@storybook/preset-scss": "^1.0.3",
30
+ "@storybook/react": "^6.5.0-beta.5",
31
+ "@storybook/testing-library": "^0.0.11",
32
+ "@testing-library/jest-dom": "^5.16.4",
33
+ "@types/jest": "^28.1.1",
34
+ "@types/node": "^17.0.31",
35
+ "@types/react": "^18.0.8",
36
+ "@types/react-dom": "^18.0.0",
37
+ "@typescript-eslint/eslint-plugin": "^5.27.1",
38
+ "@typescript-eslint/parser": "^5.27.1",
39
+ "@vitejs/plugin-react": "^1.3.0",
40
+ "babel-jest": "^28.1.0",
41
+ "babel-loader": "^8.2.5",
42
+ "eslint": "^8.17.0",
43
+ "eslint-config-prettier": "^8.5.0",
44
+ "eslint-config-standard": "^17.0.0",
45
+ "eslint-plugin-import": "^2.26.0",
46
+ "eslint-plugin-n": "^15.2.1",
47
+ "eslint-plugin-node": "^11.1.0",
48
+ "eslint-plugin-prettier": "^4.0.0",
49
+ "eslint-plugin-promise": "^6.0.0",
50
+ "eslint-plugin-react": "^7.30.0",
51
+ "eslint-plugin-react-hooks": "^4.5.0",
52
+ "framer-motion": "^6.3.10",
53
+ "jest": "^28.1.0",
54
+ "jest-environment-jsdom": "^28.1.0",
55
+ "jest-mock": "^28.1.0",
56
+ "mutation-observer": "^1.0.3",
57
+ "react": "17.0.2",
58
+ "react-dom": "17.0.2",
59
+ "react-icons": "^4.4.0",
60
+ "ts-jest": "^28.0.4",
61
+ "typescript": "^4.6.3",
62
+ "vite": "^2.9.7",
63
+ "vite-plugin-dts": "^1.1.1"
64
+ },
65
+ "peerDependencies": {
66
+ "@emotion/react": ">=11.9.0",
67
+ "@emotion/styled": ">=11.8.1",
68
+ "framer-motion": ">=6.2.0",
69
+ "react": ">=17.0.2",
70
+ "react-dom": ">=17.0.2",
71
+ "react-icons": ">=4.3.0"
72
+ },
73
+ "files": [
74
+ "dist"
75
+ ],
76
+ "main": "./dist/binamik-components.umd.js",
77
+ "module": "./dist/binamik-components.es.js",
78
+ "types": "./dist/index.d.ts",
79
+ "exports": {
80
+ ".": {
81
+ "import": "./dist/binamik-components.es.js",
82
+ "require": "./dist/binamik-components.umd.js"
83
+ }
84
+ }
85
+ }