digital-rabbit-cl 1.0.25 → 1.0.27
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/components/Button/useButtonStyles.d.ts +1 -1
- package/dist/components/Button/useButtonStyles.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +380 -334
- package/dist/digital-rabbit-cl.umd.js +7 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -17,5 +17,5 @@ export interface ButtonStyles {
|
|
|
17
17
|
color: string;
|
|
18
18
|
opacity: number;
|
|
19
19
|
}
|
|
20
|
-
export declare const useButtonStyles: ({ isActive, disabled, buttonColor, textColor, hoverColor, hoverTextColor, outline, }: UseButtonStylesParams) => ButtonStyles;
|
|
20
|
+
export declare const useButtonStyles: ({ isActive, disabled, buttonColor, textColor, hoverColor, hoverTextColor, outline, }: Partial<UseButtonStylesParams>) => ButtonStyles;
|
|
21
21
|
//# sourceMappingURL=useButtonStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useButtonStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,sFAQ7B,qBAAqB,KAAG,
|
|
1
|
+
{"version":3,"file":"useButtonStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,sFAQ7B,OAAO,CAAC,qBAAqB,CAAC,KAAG,YAwCnC,CAAC"}
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}')),document.head.appendChild(e)}}catch(
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
button:
|
|
6
|
-
sizeSmall:
|
|
7
|
-
sizeDefault:
|
|
8
|
-
},
|
|
9
|
-
isActive:
|
|
10
|
-
disabled:
|
|
11
|
-
buttonColor: o,
|
|
12
|
-
textColor: s,
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}.Header-module__header___RUooH{position:absolute;width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { jsx as h, jsxs as k } from "react/jsx-runtime";
|
|
3
|
+
import H, { createContext as T, useContext as j, useState as A, useEffect as V, useSyncExternalStore as U } from "react";
|
|
4
|
+
const O = "Button-module__button___2ZuB7", q = "Button-module__sizeSmall___DRT8P", Q = "Button-module__sizeDefault___iwWOV", w = {
|
|
5
|
+
button: O,
|
|
6
|
+
sizeSmall: q,
|
|
7
|
+
sizeDefault: Q
|
|
8
|
+
}, Z = ({
|
|
9
|
+
isActive: e,
|
|
10
|
+
disabled: t,
|
|
11
|
+
buttonColor: o = "#FFF",
|
|
12
|
+
textColor: s = "#000",
|
|
13
13
|
hoverColor: r,
|
|
14
14
|
hoverTextColor: n,
|
|
15
|
-
outline:
|
|
15
|
+
outline: l
|
|
16
16
|
}) => {
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
let c, i, y;
|
|
18
|
+
l ? (c = "transparent", i = o, y = o, e && (c = r || o, i = r || o, y = n || s)) : (c = o, i = o, y = s, e && (c = r || o, i = r || o, y = n || s));
|
|
19
|
+
let f = 1;
|
|
20
|
+
return t ? f = 0.3 : e && (f = r || l ? 1 : 0.75), {
|
|
21
|
+
backgroundColor: c,
|
|
22
|
+
borderColor: i,
|
|
23
|
+
color: y,
|
|
24
|
+
opacity: f
|
|
23
25
|
};
|
|
24
|
-
},
|
|
26
|
+
}, N = {
|
|
25
27
|
primary: "#FFF",
|
|
26
28
|
secondary: "#000",
|
|
27
29
|
accent: "#4381C1",
|
|
28
30
|
error: "#F00",
|
|
29
31
|
success: "#008000",
|
|
30
32
|
warning: "#FFEB3B"
|
|
31
|
-
},
|
|
32
|
-
colors:
|
|
33
|
+
}, z = {
|
|
34
|
+
colors: N,
|
|
33
35
|
fonts: {
|
|
34
36
|
color: "#000",
|
|
35
37
|
lineHeight: 1.5,
|
|
@@ -47,7 +49,7 @@ const V = "Button-module__button___2ZuB7", U = "Button-module__sizeSmall___DRT8P
|
|
|
47
49
|
buttons: {
|
|
48
50
|
textColor: "#FFF",
|
|
49
51
|
primary: {
|
|
50
|
-
textColor:
|
|
52
|
+
textColor: N.secondary
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
55
|
borderRadius: "0px",
|
|
@@ -62,171 +64,171 @@ const V = "Button-module__button___2ZuB7", U = "Button-module__sizeSmall___DRT8P
|
|
|
62
64
|
wrapperPaddingSm: "0.5rem",
|
|
63
65
|
wrapperPadding: "1rem"
|
|
64
66
|
}
|
|
65
|
-
},
|
|
67
|
+
}, W = T(z), He = ({ theme: e = {}, children: t }) => {
|
|
66
68
|
var s;
|
|
67
69
|
const o = {
|
|
68
|
-
...
|
|
69
|
-
...
|
|
70
|
+
...z,
|
|
71
|
+
...e,
|
|
70
72
|
colors: {
|
|
71
|
-
...
|
|
72
|
-
...
|
|
73
|
+
...z.colors,
|
|
74
|
+
...e.colors
|
|
73
75
|
},
|
|
74
76
|
fonts: {
|
|
75
|
-
...
|
|
76
|
-
...
|
|
77
|
+
...z.fonts,
|
|
78
|
+
...e.fonts
|
|
77
79
|
},
|
|
78
80
|
buttons: {
|
|
79
|
-
...
|
|
80
|
-
...
|
|
81
|
+
...z.buttons,
|
|
82
|
+
...e.buttons,
|
|
81
83
|
primary: {
|
|
82
|
-
...
|
|
83
|
-
...(s =
|
|
84
|
+
...z.buttons.primary,
|
|
85
|
+
...(s = e.buttons) == null ? void 0 : s.primary
|
|
84
86
|
}
|
|
85
87
|
},
|
|
86
88
|
breakpoints: {
|
|
87
|
-
...
|
|
88
|
-
...
|
|
89
|
+
...z.breakpoints,
|
|
90
|
+
...e.breakpoints
|
|
89
91
|
},
|
|
90
92
|
layout: {
|
|
91
|
-
...
|
|
92
|
-
...
|
|
93
|
+
...z.layout,
|
|
94
|
+
...e.layout
|
|
93
95
|
}
|
|
94
96
|
};
|
|
95
|
-
return /* @__PURE__ */
|
|
96
|
-
},
|
|
97
|
-
color:
|
|
98
|
-
hoverColor:
|
|
97
|
+
return /* @__PURE__ */ h(W.Provider, { value: o, children: t });
|
|
98
|
+
}, _ = () => j(W), Pe = ({
|
|
99
|
+
color: e,
|
|
100
|
+
hoverColor: t,
|
|
99
101
|
hoverTextColor: o,
|
|
100
102
|
textColor: s,
|
|
101
103
|
outline: r = !1,
|
|
102
104
|
size: n,
|
|
103
|
-
type:
|
|
104
|
-
buttonProps:
|
|
105
|
-
children:
|
|
106
|
-
disabled:
|
|
107
|
-
onClick:
|
|
108
|
-
fontSize:
|
|
105
|
+
type: l = "button",
|
|
106
|
+
buttonProps: c = {},
|
|
107
|
+
children: i,
|
|
108
|
+
disabled: y = !1,
|
|
109
|
+
onClick: f,
|
|
110
|
+
fontSize: d
|
|
109
111
|
}) => {
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
s ?
|
|
112
|
+
const u = _(), [a, p] = A(!1);
|
|
113
|
+
let m;
|
|
114
|
+
s ? m = s : m = e ? u.buttons.textColor : u.buttons.primary.textColor;
|
|
113
115
|
const S = {
|
|
114
|
-
...
|
|
115
|
-
isActive:
|
|
116
|
-
disabled:
|
|
117
|
-
buttonColor:
|
|
118
|
-
textColor:
|
|
119
|
-
hoverColor:
|
|
116
|
+
...Z({
|
|
117
|
+
isActive: a,
|
|
118
|
+
disabled: y,
|
|
119
|
+
buttonColor: e || u.colors.primary,
|
|
120
|
+
textColor: m,
|
|
121
|
+
hoverColor: t,
|
|
120
122
|
hoverTextColor: o,
|
|
121
123
|
outline: r
|
|
122
124
|
}),
|
|
123
|
-
fontSize:
|
|
125
|
+
fontSize: d || u.fonts.size
|
|
124
126
|
}, g = [
|
|
125
|
-
|
|
126
|
-
n === "small" ?
|
|
127
|
-
r ?
|
|
127
|
+
w.button,
|
|
128
|
+
n === "small" ? w.sizeSmall : w.sizeDefault,
|
|
129
|
+
r ? w.outline : ""
|
|
128
130
|
].filter(Boolean).join(" ");
|
|
129
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ h(
|
|
130
132
|
"button",
|
|
131
133
|
{
|
|
132
134
|
className: g,
|
|
133
|
-
disabled:
|
|
134
|
-
onClick:
|
|
135
|
+
disabled: y,
|
|
136
|
+
onClick: f,
|
|
135
137
|
onMouseEnter: () => p(!0),
|
|
136
138
|
onMouseLeave: () => p(!1),
|
|
137
|
-
type:
|
|
138
|
-
...
|
|
139
|
+
type: l,
|
|
140
|
+
...c,
|
|
139
141
|
style: {
|
|
140
142
|
...S,
|
|
141
|
-
...
|
|
143
|
+
...c.style
|
|
142
144
|
},
|
|
143
|
-
children:
|
|
145
|
+
children: i
|
|
144
146
|
}
|
|
145
147
|
);
|
|
146
148
|
};
|
|
147
|
-
var
|
|
148
|
-
function
|
|
149
|
-
if (!
|
|
149
|
+
var R = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), G = new Uint8Array(16);
|
|
150
|
+
function J() {
|
|
151
|
+
if (!R)
|
|
150
152
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
151
|
-
return
|
|
153
|
+
return R(G);
|
|
152
154
|
}
|
|
153
|
-
var
|
|
154
|
-
for (var
|
|
155
|
-
|
|
156
|
-
function
|
|
157
|
-
var o = 0, s =
|
|
158
|
-
return [s[
|
|
155
|
+
var E = [];
|
|
156
|
+
for (var v = 0; v < 256; ++v)
|
|
157
|
+
E[v] = (v + 256).toString(16).substr(1);
|
|
158
|
+
function K(e, t) {
|
|
159
|
+
var o = 0, s = E;
|
|
160
|
+
return [s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]]].join("");
|
|
159
161
|
}
|
|
160
|
-
function
|
|
161
|
-
var s =
|
|
162
|
-
typeof
|
|
163
|
-
var r =
|
|
164
|
-
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
162
|
+
function M(e, t, o) {
|
|
163
|
+
var s = t && o || 0;
|
|
164
|
+
typeof e == "string" && (t = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
165
|
+
var r = e.random || (e.rng || J)();
|
|
166
|
+
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t)
|
|
165
167
|
for (var n = 0; n < 16; ++n)
|
|
166
|
-
|
|
167
|
-
return
|
|
168
|
+
t[s + n] = r[n];
|
|
169
|
+
return t || K(r);
|
|
168
170
|
}
|
|
169
|
-
const
|
|
170
|
-
container:
|
|
171
|
-
svg:
|
|
172
|
-
label:
|
|
173
|
-
},
|
|
174
|
-
color:
|
|
175
|
-
checkmarkColor:
|
|
171
|
+
const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kkluC", ee = "Checkbox-module__label___cwRtI", P = {
|
|
172
|
+
container: X,
|
|
173
|
+
svg: Y,
|
|
174
|
+
label: ee
|
|
175
|
+
}, te = ({
|
|
176
|
+
color: e = "#000",
|
|
177
|
+
checkmarkColor: t,
|
|
176
178
|
disabled: o = !1,
|
|
177
179
|
inverted: s = !1
|
|
178
180
|
}) => {
|
|
179
|
-
let r =
|
|
180
|
-
return
|
|
181
|
-
boxColor:
|
|
181
|
+
let r = e;
|
|
182
|
+
return t ? r = t : s && (r = "white"), {
|
|
183
|
+
boxColor: e,
|
|
182
184
|
checkmarkColor: r,
|
|
183
185
|
cursor: o ? "default" : "pointer",
|
|
184
186
|
opacity: o ? 0.3 : 1
|
|
185
187
|
};
|
|
186
|
-
},
|
|
187
|
-
checked:
|
|
188
|
-
checkmarkColor:
|
|
188
|
+
}, Fe = ({
|
|
189
|
+
checked: e = !1,
|
|
190
|
+
checkmarkColor: t,
|
|
189
191
|
color: o,
|
|
190
192
|
disabled: s = !1,
|
|
191
193
|
fontSize: r,
|
|
192
194
|
id: n,
|
|
193
|
-
inverted:
|
|
194
|
-
label:
|
|
195
|
-
labelStyle:
|
|
196
|
-
name:
|
|
197
|
-
onChange:
|
|
198
|
-
style:
|
|
199
|
-
...
|
|
195
|
+
inverted: l = !1,
|
|
196
|
+
label: c,
|
|
197
|
+
labelStyle: i,
|
|
198
|
+
name: y,
|
|
199
|
+
onChange: f,
|
|
200
|
+
style: d,
|
|
201
|
+
...u
|
|
200
202
|
}) => {
|
|
201
|
-
const
|
|
202
|
-
color: o ||
|
|
203
|
-
checkmarkColor:
|
|
203
|
+
const a = _(), p = n || M(), m = te({
|
|
204
|
+
color: o || a.colors.primary,
|
|
205
|
+
checkmarkColor: t,
|
|
204
206
|
disabled: s,
|
|
205
|
-
inverted:
|
|
207
|
+
inverted: l
|
|
206
208
|
}), x = (b) => {
|
|
207
|
-
s ||
|
|
209
|
+
s || f(b);
|
|
208
210
|
}, S = {
|
|
209
|
-
cursor:
|
|
210
|
-
fontSize: r ||
|
|
211
|
-
opacity:
|
|
212
|
-
...
|
|
211
|
+
cursor: m.cursor,
|
|
212
|
+
fontSize: r || a.fonts.size,
|
|
213
|
+
opacity: m.opacity,
|
|
214
|
+
...d
|
|
213
215
|
}, g = {
|
|
214
216
|
width: r || "1rem"
|
|
215
217
|
}, C = {
|
|
216
|
-
color:
|
|
217
|
-
cursor:
|
|
218
|
+
color: m.boxColor,
|
|
219
|
+
cursor: m.cursor,
|
|
218
220
|
fontSize: r || "1rem",
|
|
219
|
-
...
|
|
221
|
+
...i
|
|
220
222
|
};
|
|
221
|
-
return /* @__PURE__ */ k("div", { className:
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ k("div", { className: P.container, style: S, ...u, children: [
|
|
224
|
+
/* @__PURE__ */ h(
|
|
223
225
|
"input",
|
|
224
226
|
{
|
|
225
227
|
id: p,
|
|
226
|
-
checked:
|
|
228
|
+
checked: e,
|
|
227
229
|
disabled: s,
|
|
228
|
-
onChange: (b) => x({ target: { checked: b.target.checked, name:
|
|
229
|
-
name:
|
|
230
|
+
onChange: (b) => x({ target: { checked: b.target.checked, name: y, type: "checkbox" } }),
|
|
231
|
+
name: y,
|
|
230
232
|
style: { display: "none" },
|
|
231
233
|
type: "checkbox"
|
|
232
234
|
}
|
|
@@ -236,11 +238,11 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
236
238
|
{
|
|
237
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
238
240
|
viewBox: "0 0 100 100",
|
|
239
|
-
onClick: () => x({ target: { checked: !
|
|
241
|
+
onClick: () => x({ target: { checked: !e, name: y, type: "checkbox" } }),
|
|
240
242
|
style: g,
|
|
241
|
-
className:
|
|
243
|
+
className: P.svg,
|
|
242
244
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ h(
|
|
244
246
|
"rect",
|
|
245
247
|
{
|
|
246
248
|
x: "0",
|
|
@@ -248,17 +250,17 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
248
250
|
height: "100",
|
|
249
251
|
width: "100",
|
|
250
252
|
style: {
|
|
251
|
-
fill:
|
|
253
|
+
fill: l && e ? m.boxColor : "transparent",
|
|
252
254
|
strokeWidth: "25",
|
|
253
|
-
stroke:
|
|
255
|
+
stroke: m.boxColor
|
|
254
256
|
}
|
|
255
257
|
}
|
|
256
258
|
),
|
|
257
|
-
|
|
259
|
+
e && /* @__PURE__ */ h(
|
|
258
260
|
"path",
|
|
259
261
|
{
|
|
260
262
|
d: "M 25 45 L 45 65 L 75 30",
|
|
261
|
-
stroke:
|
|
263
|
+
stroke: m.checkmarkColor,
|
|
262
264
|
strokeWidth: "15",
|
|
263
265
|
fill: "transparent"
|
|
264
266
|
}
|
|
@@ -266,175 +268,175 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
266
268
|
]
|
|
267
269
|
}
|
|
268
270
|
),
|
|
269
|
-
|
|
271
|
+
c && /* @__PURE__ */ h("label", { htmlFor: p, className: P.label, style: C, children: c })
|
|
270
272
|
] });
|
|
271
|
-
},
|
|
272
|
-
const
|
|
273
|
-
return
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
}, [
|
|
277
|
-
},
|
|
278
|
-
label:
|
|
279
|
-
disabled:
|
|
280
|
-
},
|
|
281
|
-
color:
|
|
282
|
-
disabled:
|
|
273
|
+
}, $e = () => {
|
|
274
|
+
const e = _();
|
|
275
|
+
return V(() => {
|
|
276
|
+
const t = document.documentElement;
|
|
277
|
+
e.fonts && (e.fonts.fontFamily && t.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && t.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && t.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && t.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && t.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && t.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && t.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && t.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && t.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && t.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && t.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && t.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && t.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && t.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && t.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && t.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && t.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && t.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.wrapperPaddingSm && t.style.setProperty("--layout-wrapper-padding-sm", e.layout.wrapperPaddingSm), e.layout.wrapperPadding && t.style.setProperty("--layout-wrapper-padding", e.layout.wrapperPadding));
|
|
278
|
+
}, [e]), null;
|
|
279
|
+
}, oe = "FormLabel-module__label___0M-fo", se = "FormLabel-module__disabled___ktIFp", D = {
|
|
280
|
+
label: oe,
|
|
281
|
+
disabled: se
|
|
282
|
+
}, re = ({
|
|
283
|
+
color: e = "#000",
|
|
284
|
+
disabled: t = !1,
|
|
283
285
|
fontSize: o = ".85em"
|
|
284
286
|
}) => ({
|
|
285
|
-
color: t,
|
|
286
|
-
fontSize: o,
|
|
287
|
-
opacity: e ? 0.5 : 1,
|
|
288
|
-
cursor: e ? "not-allowed" : "default"
|
|
289
|
-
}), wt = ({
|
|
290
|
-
children: t,
|
|
291
287
|
color: e,
|
|
288
|
+
fontSize: o,
|
|
289
|
+
opacity: t ? 0.5 : 1,
|
|
290
|
+
cursor: t ? "not-allowed" : "default"
|
|
291
|
+
}), Be = ({
|
|
292
|
+
children: e,
|
|
293
|
+
color: t,
|
|
292
294
|
disabled: o = !1,
|
|
293
295
|
fontSize: s,
|
|
294
296
|
htmlFor: r,
|
|
295
297
|
style: n,
|
|
296
|
-
...
|
|
298
|
+
...l
|
|
297
299
|
}) => {
|
|
298
|
-
const
|
|
299
|
-
color:
|
|
300
|
+
const c = _(), i = re({
|
|
301
|
+
color: t || c.colors.primary,
|
|
300
302
|
disabled: o,
|
|
301
303
|
fontSize: s || ".85em"
|
|
302
|
-
}),
|
|
303
|
-
color:
|
|
304
|
-
fontSize:
|
|
305
|
-
opacity:
|
|
306
|
-
cursor:
|
|
304
|
+
}), y = {
|
|
305
|
+
color: i.color,
|
|
306
|
+
fontSize: i.fontSize,
|
|
307
|
+
opacity: i.opacity,
|
|
308
|
+
cursor: i.cursor,
|
|
307
309
|
...n
|
|
308
|
-
},
|
|
310
|
+
}, f = [
|
|
309
311
|
D.label,
|
|
310
312
|
o ? D.disabled : ""
|
|
311
313
|
].filter(Boolean).join(" ");
|
|
312
|
-
return /* @__PURE__ */
|
|
314
|
+
return /* @__PURE__ */ h(
|
|
313
315
|
"label",
|
|
314
316
|
{
|
|
315
|
-
className:
|
|
317
|
+
className: f,
|
|
316
318
|
htmlFor: r,
|
|
317
|
-
style:
|
|
318
|
-
...
|
|
319
|
-
children:
|
|
319
|
+
style: y,
|
|
320
|
+
...l,
|
|
321
|
+
children: e
|
|
320
322
|
}
|
|
321
323
|
);
|
|
322
|
-
},
|
|
323
|
-
input:
|
|
324
|
-
sizeSmall:
|
|
325
|
-
sizeDefault:
|
|
326
|
-
},
|
|
327
|
-
color:
|
|
328
|
-
disabled:
|
|
324
|
+
}, ne = "Input-module__input___WjT81", ae = "Input-module__sizeSmall___NFvsi", le = "Input-module__sizeDefault___AxPA0", F = {
|
|
325
|
+
input: ne,
|
|
326
|
+
sizeSmall: ae,
|
|
327
|
+
sizeDefault: le
|
|
328
|
+
}, ce = ({
|
|
329
|
+
color: e = "#000",
|
|
330
|
+
disabled: t = !1,
|
|
329
331
|
fontSize: o = "1em",
|
|
330
332
|
placeholderOpacity: s = 0.3
|
|
331
333
|
}) => ({
|
|
332
|
-
borderColor:
|
|
333
|
-
color:
|
|
334
|
+
borderColor: e,
|
|
335
|
+
color: e,
|
|
334
336
|
fontSize: o,
|
|
335
|
-
opacity:
|
|
337
|
+
opacity: t ? 0.3 : 1,
|
|
336
338
|
placeholderOpacity: s
|
|
337
|
-
}),
|
|
338
|
-
color:
|
|
339
|
-
disabled:
|
|
339
|
+
}), Ie = ({
|
|
340
|
+
color: e,
|
|
341
|
+
disabled: t = !1,
|
|
340
342
|
fontSize: o,
|
|
341
343
|
name: s = "",
|
|
342
344
|
onChange: r,
|
|
343
345
|
placeholder: n,
|
|
344
|
-
placeholderOpacity:
|
|
345
|
-
size:
|
|
346
|
-
style:
|
|
347
|
-
type:
|
|
348
|
-
value:
|
|
349
|
-
...
|
|
346
|
+
placeholderOpacity: l = 0.3,
|
|
347
|
+
size: c,
|
|
348
|
+
style: i,
|
|
349
|
+
type: y = "text",
|
|
350
|
+
value: f = "",
|
|
351
|
+
...d
|
|
350
352
|
}) => {
|
|
351
|
-
const
|
|
352
|
-
color:
|
|
353
|
-
disabled:
|
|
354
|
-
fontSize: o ||
|
|
355
|
-
placeholderOpacity:
|
|
353
|
+
const u = _(), a = ce({
|
|
354
|
+
color: e || u.colors.primary,
|
|
355
|
+
disabled: t,
|
|
356
|
+
fontSize: o || u.fonts.size,
|
|
357
|
+
placeholderOpacity: l
|
|
356
358
|
}), p = {
|
|
357
|
-
"--placeholder-opacity":
|
|
358
|
-
borderColor:
|
|
359
|
-
color:
|
|
360
|
-
fontSize:
|
|
361
|
-
opacity:
|
|
362
|
-
...
|
|
363
|
-
},
|
|
359
|
+
"--placeholder-opacity": a.placeholderOpacity,
|
|
360
|
+
borderColor: a.borderColor,
|
|
361
|
+
color: a.color,
|
|
362
|
+
fontSize: a.fontSize,
|
|
363
|
+
opacity: a.opacity,
|
|
364
|
+
...i
|
|
365
|
+
}, m = [
|
|
364
366
|
F.input,
|
|
365
|
-
|
|
367
|
+
c === "small" ? F.sizeSmall : F.sizeDefault
|
|
366
368
|
].filter(Boolean).join(" ");
|
|
367
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ h(
|
|
368
370
|
"input",
|
|
369
371
|
{
|
|
370
|
-
className:
|
|
371
|
-
disabled:
|
|
372
|
+
className: m,
|
|
373
|
+
disabled: t,
|
|
372
374
|
name: s,
|
|
373
375
|
onChange: r,
|
|
374
376
|
placeholder: n,
|
|
375
377
|
style: p,
|
|
376
|
-
type:
|
|
377
|
-
value:
|
|
378
|
-
...
|
|
378
|
+
type: y,
|
|
379
|
+
value: f,
|
|
380
|
+
...d
|
|
379
381
|
}
|
|
380
382
|
);
|
|
381
|
-
},
|
|
382
|
-
container:
|
|
383
|
-
svg:
|
|
384
|
-
label:
|
|
385
|
-
},
|
|
386
|
-
color:
|
|
387
|
-
disabled:
|
|
383
|
+
}, ie = "Radio-module__container___AQxhk", ye = "Radio-module__svg___zl5kF", ue = "Radio-module__label___vAFIP", $ = {
|
|
384
|
+
container: ie,
|
|
385
|
+
svg: ye,
|
|
386
|
+
label: ue
|
|
387
|
+
}, de = ({
|
|
388
|
+
color: e = "#000",
|
|
389
|
+
disabled: t = !1
|
|
388
390
|
}) => ({
|
|
389
|
-
radioColor:
|
|
390
|
-
cursor:
|
|
391
|
-
opacity:
|
|
392
|
-
}),
|
|
393
|
-
checked:
|
|
394
|
-
color:
|
|
391
|
+
radioColor: e,
|
|
392
|
+
cursor: t ? "default" : "pointer",
|
|
393
|
+
opacity: t ? 0.3 : 1
|
|
394
|
+
}), Ne = ({
|
|
395
|
+
checked: e = !1,
|
|
396
|
+
color: t,
|
|
395
397
|
disabled: o = !1,
|
|
396
398
|
fontSize: s,
|
|
397
399
|
id: r,
|
|
398
400
|
label: n,
|
|
399
|
-
labelStyle:
|
|
400
|
-
name:
|
|
401
|
-
onChange:
|
|
402
|
-
style:
|
|
403
|
-
...
|
|
401
|
+
labelStyle: l,
|
|
402
|
+
name: c,
|
|
403
|
+
onChange: i,
|
|
404
|
+
style: y,
|
|
405
|
+
...f
|
|
404
406
|
}) => {
|
|
405
|
-
const
|
|
406
|
-
color:
|
|
407
|
+
const d = _(), u = r || M(), a = de({
|
|
408
|
+
color: t || d.colors.primary,
|
|
407
409
|
disabled: o
|
|
408
410
|
}), p = (b) => {
|
|
409
|
-
o ||
|
|
410
|
-
},
|
|
411
|
-
cursor:
|
|
412
|
-
fontSize: s ||
|
|
413
|
-
opacity:
|
|
414
|
-
...
|
|
411
|
+
o || i(b);
|
|
412
|
+
}, m = {
|
|
413
|
+
cursor: a.cursor,
|
|
414
|
+
fontSize: s || d.fonts.size,
|
|
415
|
+
opacity: a.opacity,
|
|
416
|
+
...y
|
|
415
417
|
}, x = {
|
|
416
|
-
width: s ||
|
|
418
|
+
width: s || d.fonts.size
|
|
417
419
|
}, S = {
|
|
418
420
|
fill: "transparent",
|
|
419
421
|
strokeWidth: "12.5",
|
|
420
|
-
stroke:
|
|
422
|
+
stroke: a.radioColor
|
|
421
423
|
}, g = {
|
|
422
|
-
fill:
|
|
424
|
+
fill: a.radioColor
|
|
423
425
|
}, C = {
|
|
424
|
-
color:
|
|
425
|
-
cursor:
|
|
426
|
-
fontSize: s ||
|
|
427
|
-
...
|
|
426
|
+
color: a.radioColor,
|
|
427
|
+
cursor: a.cursor,
|
|
428
|
+
fontSize: s || d.fonts.size,
|
|
429
|
+
...l
|
|
428
430
|
};
|
|
429
|
-
return /* @__PURE__ */ k("div", { className: $.container, style:
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
+
return /* @__PURE__ */ k("div", { className: $.container, style: m, ...f, children: [
|
|
432
|
+
/* @__PURE__ */ h(
|
|
431
433
|
"input",
|
|
432
434
|
{
|
|
433
|
-
id:
|
|
434
|
-
checked:
|
|
435
|
+
id: u,
|
|
436
|
+
checked: e,
|
|
435
437
|
disabled: o,
|
|
436
|
-
name:
|
|
437
|
-
onChange: (b) => p({ target: { checked: b.target.checked, name:
|
|
438
|
+
name: c,
|
|
439
|
+
onChange: (b) => p({ target: { checked: b.target.checked, name: c, type: "radio" } }),
|
|
438
440
|
style: { display: "none" },
|
|
439
441
|
type: "radio"
|
|
440
442
|
}
|
|
@@ -444,11 +446,11 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
444
446
|
{
|
|
445
447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
446
448
|
viewBox: "0 0 100 100",
|
|
447
|
-
onClick: () => p({ target: { checked: !
|
|
449
|
+
onClick: () => p({ target: { checked: !e, name: c, type: "radio" } }),
|
|
448
450
|
className: $.svg,
|
|
449
451
|
style: x,
|
|
450
452
|
children: [
|
|
451
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ h(
|
|
452
454
|
"circle",
|
|
453
455
|
{
|
|
454
456
|
cx: "50",
|
|
@@ -458,7 +460,7 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
458
460
|
style: S
|
|
459
461
|
}
|
|
460
462
|
),
|
|
461
|
-
|
|
463
|
+
e && /* @__PURE__ */ h(
|
|
462
464
|
"circle",
|
|
463
465
|
{
|
|
464
466
|
cx: "50",
|
|
@@ -470,30 +472,30 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
470
472
|
]
|
|
471
473
|
}
|
|
472
474
|
),
|
|
473
|
-
n && /* @__PURE__ */
|
|
475
|
+
n && /* @__PURE__ */ h(
|
|
474
476
|
"label",
|
|
475
477
|
{
|
|
476
|
-
htmlFor:
|
|
478
|
+
htmlFor: u,
|
|
477
479
|
className: $.label,
|
|
478
480
|
style: C,
|
|
479
481
|
children: n
|
|
480
482
|
}
|
|
481
483
|
)
|
|
482
484
|
] });
|
|
483
|
-
},
|
|
484
|
-
select:
|
|
485
|
-
sizeSmall:
|
|
486
|
-
sizeDefault:
|
|
487
|
-
},
|
|
488
|
-
color:
|
|
489
|
-
disabled:
|
|
485
|
+
}, pe = "Select-module__select___cjdcr", me = "Select-module__sizeSmall___i1quj", fe = "Select-module__sizeDefault___EiWvW", B = {
|
|
486
|
+
select: pe,
|
|
487
|
+
sizeSmall: me,
|
|
488
|
+
sizeDefault: fe
|
|
489
|
+
}, he = ({
|
|
490
|
+
color: e = "#000",
|
|
491
|
+
disabled: t = !1
|
|
490
492
|
}) => ({
|
|
491
|
-
color:
|
|
492
|
-
borderColor:
|
|
493
|
-
cursor:
|
|
494
|
-
opacity:
|
|
493
|
+
color: e,
|
|
494
|
+
borderColor: e,
|
|
495
|
+
cursor: t ? "default" : "pointer",
|
|
496
|
+
opacity: t ? 0.3 : 1,
|
|
495
497
|
backgroundImage: ((n) => {
|
|
496
|
-
const
|
|
498
|
+
const l = `
|
|
497
499
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
498
500
|
<path
|
|
499
501
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
@@ -509,39 +511,39 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
509
511
|
/>
|
|
510
512
|
</svg>
|
|
511
513
|
`.trim();
|
|
512
|
-
return `url("data:image/svg+xml,${encodeURIComponent(
|
|
513
|
-
})(
|
|
514
|
-
}),
|
|
515
|
-
children:
|
|
516
|
-
color:
|
|
514
|
+
return `url("data:image/svg+xml,${encodeURIComponent(l)}")`;
|
|
515
|
+
})(e)
|
|
516
|
+
}), Re = ({
|
|
517
|
+
children: e,
|
|
518
|
+
color: t,
|
|
517
519
|
disabled: o = !1,
|
|
518
520
|
fontSize: s,
|
|
519
521
|
name: r = "",
|
|
520
522
|
onChange: n,
|
|
521
|
-
placeholder:
|
|
522
|
-
size:
|
|
523
|
-
style:
|
|
524
|
-
value:
|
|
525
|
-
...
|
|
523
|
+
placeholder: l = "",
|
|
524
|
+
size: c,
|
|
525
|
+
style: i,
|
|
526
|
+
value: y = "",
|
|
527
|
+
...f
|
|
526
528
|
}) => {
|
|
527
|
-
const
|
|
528
|
-
color:
|
|
529
|
+
const d = _(), u = he({
|
|
530
|
+
color: t || d.colors.primary,
|
|
529
531
|
disabled: o
|
|
530
|
-
}),
|
|
531
|
-
backgroundImage:
|
|
532
|
+
}), a = {
|
|
533
|
+
backgroundImage: u.backgroundImage,
|
|
532
534
|
backgroundPosition: "right center",
|
|
533
535
|
backgroundRepeat: "no-repeat",
|
|
534
536
|
backgroundSize: "auto 85%",
|
|
535
537
|
backgroundColor: "transparent",
|
|
536
|
-
borderColor:
|
|
537
|
-
color:
|
|
538
|
-
cursor:
|
|
539
|
-
fontSize: s ||
|
|
540
|
-
opacity:
|
|
541
|
-
...
|
|
538
|
+
borderColor: u.borderColor,
|
|
539
|
+
color: u.color,
|
|
540
|
+
cursor: u.cursor,
|
|
541
|
+
fontSize: s || d.fonts.size,
|
|
542
|
+
opacity: u.opacity,
|
|
543
|
+
...i
|
|
542
544
|
}, p = [
|
|
543
|
-
|
|
544
|
-
|
|
545
|
+
B.select,
|
|
546
|
+
c === "small" ? B.sizeSmall : B.sizeDefault
|
|
545
547
|
].filter(Boolean).join(" ");
|
|
546
548
|
return /* @__PURE__ */ k(
|
|
547
549
|
"select",
|
|
@@ -550,94 +552,138 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
550
552
|
disabled: o,
|
|
551
553
|
name: r,
|
|
552
554
|
onChange: n,
|
|
553
|
-
style:
|
|
554
|
-
value:
|
|
555
|
-
...
|
|
555
|
+
style: a,
|
|
556
|
+
value: y,
|
|
557
|
+
...f,
|
|
556
558
|
children: [
|
|
557
|
-
|
|
558
|
-
|
|
559
|
+
l !== "" && /* @__PURE__ */ h("option", { disabled: !0, value: "", children: l }),
|
|
560
|
+
e
|
|
559
561
|
]
|
|
560
562
|
}
|
|
561
563
|
);
|
|
562
|
-
},
|
|
563
|
-
textarea:
|
|
564
|
-
sizeSmall:
|
|
565
|
-
sizeDefault:
|
|
566
|
-
},
|
|
567
|
-
color:
|
|
568
|
-
disabled:
|
|
564
|
+
}, _e = "Textarea-module__textarea___Z-y6g", Se = "Textarea-module__sizeSmall___HHFEM", ge = "Textarea-module__sizeDefault___LL2Uc", I = {
|
|
565
|
+
textarea: _e,
|
|
566
|
+
sizeSmall: Se,
|
|
567
|
+
sizeDefault: ge
|
|
568
|
+
}, ze = ({
|
|
569
|
+
color: e = "#000",
|
|
570
|
+
disabled: t = !1,
|
|
569
571
|
placeholderOpacity: o = 0.3
|
|
570
572
|
}) => ({
|
|
571
|
-
color:
|
|
572
|
-
borderColor:
|
|
573
|
-
opacity:
|
|
573
|
+
color: e,
|
|
574
|
+
borderColor: e,
|
|
575
|
+
opacity: t ? 0.3 : 1,
|
|
574
576
|
placeholderOpacity: o
|
|
575
|
-
}),
|
|
576
|
-
color:
|
|
577
|
-
disabled:
|
|
577
|
+
}), De = ({
|
|
578
|
+
color: e,
|
|
579
|
+
disabled: t = !1,
|
|
578
580
|
fontSize: o,
|
|
579
581
|
name: s = "",
|
|
580
582
|
onChange: r,
|
|
581
583
|
placeholder: n,
|
|
582
|
-
placeholderOpacity:
|
|
583
|
-
rows:
|
|
584
|
-
size:
|
|
585
|
-
style:
|
|
586
|
-
value:
|
|
587
|
-
...
|
|
584
|
+
placeholderOpacity: l = 0.3,
|
|
585
|
+
rows: c = 3,
|
|
586
|
+
size: i,
|
|
587
|
+
style: y,
|
|
588
|
+
value: f = "",
|
|
589
|
+
...d
|
|
588
590
|
}) => {
|
|
589
|
-
const
|
|
590
|
-
color:
|
|
591
|
-
disabled:
|
|
592
|
-
placeholderOpacity:
|
|
593
|
-
}), p = `textarea-placeholder-${
|
|
594
|
-
|
|
591
|
+
const u = _(), a = ze({
|
|
592
|
+
color: e || u.colors.primary,
|
|
593
|
+
disabled: t,
|
|
594
|
+
placeholderOpacity: l
|
|
595
|
+
}), p = `textarea-placeholder-${H.useId ? H.useId() : Math.random().toString(36)}`;
|
|
596
|
+
H.useEffect(() => {
|
|
595
597
|
const S = document.createElement("style");
|
|
596
598
|
return S.id = p, S.textContent = `
|
|
597
599
|
.${p}::placeholder {
|
|
598
600
|
color: inherit;
|
|
599
|
-
opacity: ${
|
|
601
|
+
opacity: ${a.placeholderOpacity};
|
|
600
602
|
}
|
|
601
603
|
`, document.head.appendChild(S), () => {
|
|
602
604
|
const g = document.getElementById(p);
|
|
603
605
|
g && g.remove();
|
|
604
606
|
};
|
|
605
|
-
}, [p,
|
|
606
|
-
const
|
|
607
|
-
borderColor:
|
|
608
|
-
color:
|
|
609
|
-
fontSize: o ||
|
|
610
|
-
opacity:
|
|
611
|
-
...
|
|
607
|
+
}, [p, a.placeholderOpacity]);
|
|
608
|
+
const m = {
|
|
609
|
+
borderColor: a.borderColor,
|
|
610
|
+
color: a.color,
|
|
611
|
+
fontSize: o || u.fonts.size,
|
|
612
|
+
opacity: a.opacity,
|
|
613
|
+
...y
|
|
612
614
|
}, x = [
|
|
613
|
-
|
|
614
|
-
|
|
615
|
+
I.textarea,
|
|
616
|
+
i === "small" ? I.sizeSmall : I.sizeDefault,
|
|
615
617
|
p
|
|
616
618
|
].filter(Boolean).join(" ");
|
|
617
|
-
return /* @__PURE__ */
|
|
619
|
+
return /* @__PURE__ */ h(
|
|
618
620
|
"textarea",
|
|
619
621
|
{
|
|
620
622
|
className: x,
|
|
621
|
-
disabled:
|
|
623
|
+
disabled: t,
|
|
622
624
|
name: s,
|
|
623
625
|
onChange: r,
|
|
624
626
|
placeholder: n,
|
|
625
|
-
rows:
|
|
626
|
-
style:
|
|
627
|
-
value:
|
|
628
|
-
...
|
|
627
|
+
rows: c,
|
|
628
|
+
style: m,
|
|
629
|
+
value: f,
|
|
630
|
+
...d
|
|
629
631
|
}
|
|
630
632
|
);
|
|
633
|
+
}, xe = "Header-module__header___RUooH", be = "Header-module__container___t68M9", L = {
|
|
634
|
+
header: xe,
|
|
635
|
+
container: be
|
|
636
|
+
}, ke = ({
|
|
637
|
+
isSmallScreen: e = !1,
|
|
638
|
+
maxWidth: t,
|
|
639
|
+
paddingSm: o,
|
|
640
|
+
padding: s,
|
|
641
|
+
fontSize: r
|
|
642
|
+
} = {}) => {
|
|
643
|
+
const n = _();
|
|
644
|
+
return {
|
|
645
|
+
"--header-max-width": t || n.layout.maxWidth,
|
|
646
|
+
"--header-padding": e ? o || n.layout.wrapperPaddingSm : s || n.layout.wrapperPadding,
|
|
647
|
+
"--header-font-size": e ? "0.75rem" : r || n.fonts.size
|
|
648
|
+
};
|
|
649
|
+
}, we = (e) => {
|
|
650
|
+
const t = typeof window < "u" && typeof window.matchMedia == "function";
|
|
651
|
+
return U((n) => {
|
|
652
|
+
if (!t) return () => {
|
|
653
|
+
};
|
|
654
|
+
const l = window.matchMedia(e);
|
|
655
|
+
return l.addEventListener("change", n), () => l.removeEventListener("change", n);
|
|
656
|
+
}, () => t ? window.matchMedia(e).matches : !1, () => !1);
|
|
657
|
+
}, Le = ({
|
|
658
|
+
children: e,
|
|
659
|
+
breakPointSm: t,
|
|
660
|
+
maxWidth: o,
|
|
661
|
+
paddingSm: s,
|
|
662
|
+
padding: r,
|
|
663
|
+
fontSize: n,
|
|
664
|
+
style: l = {},
|
|
665
|
+
headerProps: c = {},
|
|
666
|
+
headerRef: i
|
|
667
|
+
}) => {
|
|
668
|
+
const y = _(), d = (t || y.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), u = d ? parseInt(d[1], 10) - 1 : 474, a = d ? d[2] : "px", p = we(`(max-width: ${u}${a})`), m = ke({
|
|
669
|
+
isSmallScreen: p,
|
|
670
|
+
maxWidth: o,
|
|
671
|
+
paddingSm: s,
|
|
672
|
+
padding: r,
|
|
673
|
+
fontSize: n
|
|
674
|
+
});
|
|
675
|
+
return /* @__PURE__ */ h("header", { ref: i, className: L.header, ...c, children: /* @__PURE__ */ h("div", { className: L.container, style: { ...m, ...l }, children: e }) });
|
|
631
676
|
};
|
|
632
677
|
export {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
678
|
+
Pe as Button,
|
|
679
|
+
$e as CSSReset,
|
|
680
|
+
Fe as Checkbox,
|
|
681
|
+
Be as FormLabel,
|
|
682
|
+
Le as Header,
|
|
683
|
+
Ie as Input,
|
|
684
|
+
Ne as Radio,
|
|
685
|
+
Re as Select,
|
|
686
|
+
De as Textarea,
|
|
687
|
+
He as ThemeProvider,
|
|
688
|
+
_ as useTheme
|
|
643
689
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}')),document.head.appendChild(e)}}catch(
|
|
2
|
-
(function(
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}.Header-module__header___RUooH{position:absolute;width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
(function(h,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],c):(h=typeof globalThis<"u"?globalThis:h||self,c(h.DigitalRabbitCL={},h.jsxRuntime,h.React))})(this,(function(h,c,z){"use strict";const v={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeDefault:"Button-module__sizeDefault___iwWOV"},E=({isActive:e,disabled:t,buttonColor:o="#FFF",textColor:s="#000",hoverColor:r,hoverTextColor:n,outline:l})=>{let i,d,y;l?(i="transparent",d=o,y=o,e&&(i=r||o,d=r||o,y=n||s)):(i=o,d=o,y=s,e&&(i=r||o,d=r||o,y=n||s));let S=1;return t?S=.3:e&&(S=r||l?1:.75),{backgroundColor:i,borderColor:d,color:y,opacity:S}},D={primary:"#FFF",secondary:"#000",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},b={colors:D,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",primary:{textColor:D.secondary}},borderRadius:"0px",breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",wrapperPaddingSm:"0.5rem",wrapperPadding:"1rem"}},N=z.createContext(b),A=({theme:e={},children:t})=>{var s;const o={...b,...e,colors:{...b.colors,...e.colors},fonts:{...b.fonts,...e.fonts},buttons:{...b.buttons,...e.buttons,primary:{...b.buttons.primary,...(s=e.buttons)==null?void 0:s.primary}},breakpoints:{...b.breakpoints,...e.breakpoints},layout:{...b.layout,...e.layout}};return c.jsx(N.Provider,{value:o,children:t})},_=()=>z.useContext(N),V=({color:e,hoverColor:t,hoverTextColor:o,textColor:s,outline:r=!1,size:n,type:l="button",buttonProps:i={},children:d,disabled:y=!1,onClick:S,fontSize:f})=>{const u=_(),[a,p]=z.useState(!1);let m;s?m=s:m=e?u.buttons.textColor:u.buttons.primary.textColor;const g={...E({isActive:a,disabled:y,buttonColor:e||u.colors.primary,textColor:m,hoverColor:t,hoverTextColor:o,outline:r}),fontSize:f||u.fonts.size},x=[v.button,n==="small"?v.sizeSmall:v.sizeDefault,r?v.outline:""].filter(Boolean).join(" ");return c.jsx("button",{className:x,disabled:y,onClick:S,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),type:l,...i,style:{...g,...i.style},children:d})};var T=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),U=new Uint8Array(16);function q(){if(!T)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return T(U)}for(var L=[],C=0;C<256;++C)L[C]=(C+256).toString(16).substr(1);function O(e,t){var o=0,s=L;return[s[e[o++]],s[e[o++]],s[e[o++]],s[e[o++]],"-",s[e[o++]],s[e[o++]],"-",s[e[o++]],s[e[o++]],"-",s[e[o++]],s[e[o++]],"-",s[e[o++]],s[e[o++]],s[e[o++]],s[e[o++]],s[e[o++]],s[e[o++]]].join("")}function j(e,t,o){var s=t&&o||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var r=e.random||(e.rng||q)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t)for(var n=0;n<16;++n)t[s+n]=r[n];return t||O(r)}const $={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Q=({color:e="#000",checkmarkColor:t,disabled:o=!1,inverted:s=!1})=>{let r=e;return t?r=t:s&&(r="white"),{boxColor:e,checkmarkColor:r,cursor:o?"default":"pointer",opacity:o?.3:1}},Z=({checked:e=!1,checkmarkColor:t,color:o,disabled:s=!1,fontSize:r,id:n,inverted:l=!1,label:i,labelStyle:d,name:y,onChange:S,style:f,...u})=>{const a=_(),p=n||j(),m=Q({color:o||a.colors.primary,checkmarkColor:t,disabled:s,inverted:l}),k=w=>{s||S(w)},g={cursor:m.cursor,fontSize:r||a.fonts.size,opacity:m.opacity,...f},x={width:r||"1rem"},I={color:m.boxColor,cursor:m.cursor,fontSize:r||"1rem",...d};return c.jsxs("div",{className:$.container,style:g,...u,children:[c.jsx("input",{id:p,checked:e,disabled:s,onChange:w=>k({target:{checked:w.target.checked,name:y,type:"checkbox"}}),name:y,style:{display:"none"},type:"checkbox"}),c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>k({target:{checked:!e,name:y,type:"checkbox"}}),style:x,className:$.svg,children:[c.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:{fill:l&&e?m.boxColor:"transparent",strokeWidth:"25",stroke:m.boxColor}}),e&&c.jsx("path",{d:"M 25 45 L 45 65 L 75 30",stroke:m.checkmarkColor,strokeWidth:"15",fill:"transparent"})]}),i&&c.jsx("label",{htmlFor:p,className:$.label,style:I,children:i})]})},G=()=>{const e=_();return z.useEffect(()=>{const t=document.documentElement;e.fonts&&(e.fonts.fontFamily&&t.style.setProperty("--font-family",e.fonts.fontFamily),e.fonts.size&&t.style.setProperty("--font-size",e.fonts.size),e.fonts.lineHeight!==void 0&&t.style.setProperty("--line-height",e.fonts.lineHeight.toString()),e.fonts.fontWeightHeader!==void 0&&t.style.setProperty("--font-weight-header",e.fonts.fontWeightHeader.toString()),e.fonts.fontSizeH1&&t.style.setProperty("--font-size-h1",e.fonts.fontSizeH1),e.fonts.fontSizeH2&&t.style.setProperty("--font-size-h2",e.fonts.fontSizeH2),e.fonts.fontSizeH3&&t.style.setProperty("--font-size-h3",e.fonts.fontSizeH3),e.fonts.fontSizeH4&&t.style.setProperty("--font-size-h4",e.fonts.fontSizeH4),e.fonts.fontSizeH5&&t.style.setProperty("--font-size-h5",e.fonts.fontSizeH5),e.fonts.fontSizeH6&&t.style.setProperty("--font-size-h6",e.fonts.fontSizeH6)),e.colors&&(e.colors.primary&&t.style.setProperty("--primary-color",e.colors.primary),e.colors.secondary&&t.style.setProperty("--background-color",e.colors.secondary),e.colors.accent&&t.style.setProperty("--accent-color",e.colors.accent)),e.breakpoints&&(e.breakpoints.xs&&t.style.setProperty("--breakpoint-xs",e.breakpoints.xs),e.breakpoints.sm&&t.style.setProperty("--breakpoint-sm",e.breakpoints.sm),e.breakpoints.md&&t.style.setProperty("--breakpoint-md",e.breakpoints.md),e.breakpoints.lg&&t.style.setProperty("--breakpoint-lg",e.breakpoints.lg)),e.layout&&(e.layout.maxWidth&&t.style.setProperty("--layout-max-width",e.layout.maxWidth),e.layout.wrapperPaddingSm&&t.style.setProperty("--layout-wrapper-padding-sm",e.layout.wrapperPaddingSm),e.layout.wrapperPadding&&t.style.setProperty("--layout-wrapper-padding",e.layout.wrapperPadding))},[e]),null},M={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},J=({color:e="#000",disabled:t=!1,fontSize:o=".85em"})=>({color:e,fontSize:o,opacity:t?.5:1,cursor:t?"not-allowed":"default"}),K=({children:e,color:t,disabled:o=!1,fontSize:s,htmlFor:r,style:n,...l})=>{const i=_(),d=J({color:t||i.colors.primary,disabled:o,fontSize:s||".85em"}),y={color:d.color,fontSize:d.fontSize,opacity:d.opacity,cursor:d.cursor,...n},S=[M.label,o?M.disabled:""].filter(Boolean).join(" ");return c.jsx("label",{className:S,htmlFor:r,style:y,...l,children:e})},P={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeDefault:"Input-module__sizeDefault___AxPA0"},X=({color:e="#000",disabled:t=!1,fontSize:o="1em",placeholderOpacity:s=.3})=>({borderColor:e,color:e,fontSize:o,opacity:t?.3:1,placeholderOpacity:s}),Y=({color:e,disabled:t=!1,fontSize:o,name:s="",onChange:r,placeholder:n,placeholderOpacity:l=.3,size:i,style:d,type:y="text",value:S="",...f})=>{const u=_(),a=X({color:e||u.colors.primary,disabled:t,fontSize:o||u.fonts.size,placeholderOpacity:l}),p={"--placeholder-opacity":a.placeholderOpacity,borderColor:a.borderColor,color:a.color,fontSize:a.fontSize,opacity:a.opacity,...d},m=[P.input,i==="small"?P.sizeSmall:P.sizeDefault].filter(Boolean).join(" ");return c.jsx("input",{className:m,disabled:t,name:s,onChange:r,placeholder:n,style:p,type:y,value:S,...f})},H={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},R=({color:e="#000",disabled:t=!1})=>({radioColor:e,cursor:t?"default":"pointer",opacity:t?.3:1}),ee=({checked:e=!1,color:t,disabled:o=!1,fontSize:s,id:r,label:n,labelStyle:l,name:i,onChange:d,style:y,...S})=>{const f=_(),u=r||j(),a=R({color:t||f.colors.primary,disabled:o}),p=w=>{o||d(w)},m={cursor:a.cursor,fontSize:s||f.fonts.size,opacity:a.opacity,...y},k={width:s||f.fonts.size},g={fill:"transparent",strokeWidth:"12.5",stroke:a.radioColor},x={fill:a.radioColor},I={color:a.radioColor,cursor:a.cursor,fontSize:s||f.fonts.size,...l};return c.jsxs("div",{className:H.container,style:m,...S,children:[c.jsx("input",{id:u,checked:e,disabled:o,name:i,onChange:w=>p({target:{checked:w.target.checked,name:i,type:"radio"}}),style:{display:"none"},type:"radio"}),c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>p({target:{checked:!e,name:i,type:"radio"}}),className:H.svg,style:k,children:[c.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:g}),e&&c.jsx("circle",{cx:"50",cy:"50",r:"25",style:x})]}),n&&c.jsx("label",{htmlFor:u,className:H.label,style:I,children:n})]})},F={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeDefault:"Select-module__sizeDefault___EiWvW"},te=({color:e="#000",disabled:t=!1})=>({color:e,borderColor:e,cursor:t?"default":"pointer",opacity:t?.3:1,backgroundImage:(n=>{const l=`
|
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
4
4
|
<path
|
|
5
5
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
6
|
-
stroke="${
|
|
6
|
+
stroke="${n}"
|
|
7
7
|
stroke-width="11"
|
|
8
8
|
fill="transparent"
|
|
9
9
|
/>
|
|
10
10
|
<path
|
|
11
11
|
d="M 30 58.5 L 50 78.5 L 70 58.5"
|
|
12
|
-
stroke="${
|
|
12
|
+
stroke="${n}"
|
|
13
13
|
stroke-width="11"
|
|
14
14
|
fill="transparent"
|
|
15
15
|
/>
|
|
16
16
|
</svg>
|
|
17
|
-
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(
|
|
17
|
+
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(l)}")`})(e)}),oe=({children:e,color:t,disabled:o=!1,fontSize:s,name:r="",onChange:n,placeholder:l="",size:i,style:d,value:y="",...S})=>{const f=_(),u=te({color:t||f.colors.primary,disabled:o}),a={backgroundImage:u.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:u.borderColor,color:u.color,cursor:u.cursor,fontSize:s||f.fonts.size,opacity:u.opacity,...d},p=[F.select,i==="small"?F.sizeSmall:F.sizeDefault].filter(Boolean).join(" ");return c.jsxs("select",{className:p,disabled:o,name:r,onChange:n,style:a,value:y,...S,children:[l!==""&&c.jsx("option",{disabled:!0,value:"",children:l}),e]})},B={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeDefault:"Textarea-module__sizeDefault___LL2Uc"},se=({color:e="#000",disabled:t=!1,placeholderOpacity:o=.3})=>({color:e,borderColor:e,opacity:t?.3:1,placeholderOpacity:o}),re=({color:e,disabled:t=!1,fontSize:o,name:s="",onChange:r,placeholder:n,placeholderOpacity:l=.3,rows:i=3,size:d,style:y,value:S="",...f})=>{const u=_(),a=se({color:e||u.colors.primary,disabled:t,placeholderOpacity:l}),p=`textarea-placeholder-${z.useId?z.useId():Math.random().toString(36)}`;z.useEffect(()=>{const g=document.createElement("style");return g.id=p,g.textContent=`
|
|
18
18
|
.${p}::placeholder {
|
|
19
19
|
color: inherit;
|
|
20
|
-
opacity: ${
|
|
20
|
+
opacity: ${a.placeholderOpacity};
|
|
21
21
|
}
|
|
22
|
-
`,document.head.appendChild(
|
|
22
|
+
`,document.head.appendChild(g),()=>{const x=document.getElementById(p);x&&x.remove()}},[p,a.placeholderOpacity]);const m={borderColor:a.borderColor,color:a.color,fontSize:o||u.fonts.size,opacity:a.opacity,...y},k=[B.textarea,d==="small"?B.sizeSmall:B.sizeDefault,p].filter(Boolean).join(" ");return c.jsx("textarea",{className:k,disabled:t,name:s,onChange:r,placeholder:n,rows:i,style:m,value:S,...f})},W={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},ne=({isSmallScreen:e=!1,maxWidth:t,paddingSm:o,padding:s,fontSize:r}={})=>{const n=_();return{"--header-max-width":t||n.layout.maxWidth,"--header-padding":e?o||n.layout.wrapperPaddingSm:s||n.layout.wrapperPadding,"--header-font-size":e?"0.75rem":r||n.fonts.size}},ae=e=>{const t=typeof window<"u"&&typeof window.matchMedia=="function",o=n=>{if(!t)return()=>{};const l=window.matchMedia(e);return l.addEventListener("change",n),()=>l.removeEventListener("change",n)},s=()=>t?window.matchMedia(e).matches:!1,r=()=>!1;return z.useSyncExternalStore(o,s,r)},le=({children:e,breakPointSm:t,maxWidth:o,paddingSm:s,padding:r,fontSize:n,style:l={},headerProps:i={},headerRef:d})=>{const y=_(),f=(t||y.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/),u=f?parseInt(f[1],10)-1:474,a=f?f[2]:"px",p=ae(`(max-width: ${u}${a})`),m=ne({isSmallScreen:p,maxWidth:o,paddingSm:s,padding:r,fontSize:n});return c.jsx("header",{ref:d,className:W.header,...i,children:c.jsx("div",{className:W.container,style:{...m,...l},children:e})})};h.Button=V,h.CSSReset=G,h.Checkbox=Z,h.FormLabel=K,h.Header=le,h.Input=Y,h.Radio=ee,h.Select=oe,h.Textarea=re,h.ThemeProvider=A,h.useTheme=_,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { default as Input } from './components/Input';
|
|
|
6
6
|
export { default as Radio } from './components/Radio';
|
|
7
7
|
export { default as Select } from './components/Select';
|
|
8
8
|
export { default as Textarea } from './components/Textarea';
|
|
9
|
+
export { default as Header } from './components/Header';
|
|
9
10
|
export { ThemeProvider, useTheme } from './theme';
|
|
10
11
|
export type { Theme, ThemeColors, ThemeFonts, ThemeButtons, ThemeBreakpoints, ThemeLayout, ThemeProviderProps, DeepPartial } from './theme';
|
|
11
12
|
export type { ButtonProps } from './components/Button';
|
|
@@ -15,4 +16,5 @@ export type { InputProps } from './components/Input';
|
|
|
15
16
|
export type { RadioProps } from './components/Radio';
|
|
16
17
|
export type { SelectProps } from './components/Select';
|
|
17
18
|
export type { TextareaProps } from './components/Textarea';
|
|
19
|
+
export type { HeaderProps } from './components/Header';
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digital-rabbit-cl",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"uuid": "^7.0.3"
|
|
6
6
|
},
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@testing-library/jest-dom": "^6.9.1",
|
|
54
54
|
"@testing-library/react": "^16.3.0",
|
|
55
55
|
"@testing-library/user-event": "^14.6.1",
|
|
56
|
+
"@types/jest": "^30.0.0",
|
|
56
57
|
"@types/react": "^18.3.26",
|
|
57
58
|
"@types/react-dom": "^18.3.7",
|
|
58
59
|
"@types/uuid": "^10.0.0",
|