digital-rabbit-cl 1.0.28 → 1.0.29
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/digital-rabbit-cl.es.js +456 -307
- package/dist/digital-rabbit-cl.umd.js +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,37 +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}.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(
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
button:
|
|
6
|
-
sizeSmall:
|
|
7
|
-
sizeDefault:
|
|
8
|
-
},
|
|
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)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:4.25rem;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.5rem 3rem;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.75rem 2rem}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { jsx as _, jsxs as z, Fragment as ee } from "react/jsx-runtime";
|
|
3
|
+
import $, { createContext as te, useContext as oe, useState as Z, useEffect as D, useSyncExternalStore as se, useMemo as q, useRef as j } from "react";
|
|
4
|
+
const ne = "Button-module__button___2ZuB7", re = "Button-module__sizeSmall___DRT8P", ae = "Button-module__sizeDefault___iwWOV", H = {
|
|
5
|
+
button: ne,
|
|
6
|
+
sizeSmall: re,
|
|
7
|
+
sizeDefault: ae
|
|
8
|
+
}, le = ({
|
|
9
9
|
isActive: e,
|
|
10
10
|
disabled: t,
|
|
11
11
|
buttonColor: o = "#FFF",
|
|
12
12
|
textColor: s = "#000",
|
|
13
|
-
hoverColor:
|
|
14
|
-
hoverTextColor:
|
|
13
|
+
hoverColor: n,
|
|
14
|
+
hoverTextColor: r,
|
|
15
15
|
outline: l
|
|
16
16
|
}) => {
|
|
17
|
-
let
|
|
18
|
-
l ? (
|
|
19
|
-
let
|
|
20
|
-
return t ?
|
|
21
|
-
backgroundColor:
|
|
17
|
+
let a, i, u;
|
|
18
|
+
l ? (a = "transparent", i = o, u = o, e && (a = n || o, i = n || o, u = r || s)) : (a = o, i = o, u = s, e && (a = n || o, i = n || o, u = r || s));
|
|
19
|
+
let y = 1;
|
|
20
|
+
return t ? y = 0.3 : e && (y = n || l ? 1 : 0.75), {
|
|
21
|
+
backgroundColor: a,
|
|
22
22
|
borderColor: i,
|
|
23
|
-
color:
|
|
24
|
-
opacity:
|
|
23
|
+
color: u,
|
|
24
|
+
opacity: y
|
|
25
25
|
};
|
|
26
|
-
},
|
|
26
|
+
}, V = {
|
|
27
27
|
primary: "#FFF",
|
|
28
28
|
secondary: "#000",
|
|
29
29
|
accent: "#4381C1",
|
|
30
30
|
error: "#F00",
|
|
31
31
|
success: "#008000",
|
|
32
32
|
warning: "#FFEB3B"
|
|
33
|
-
},
|
|
34
|
-
colors:
|
|
33
|
+
}, v = {
|
|
34
|
+
colors: V,
|
|
35
35
|
fonts: {
|
|
36
36
|
color: "#000",
|
|
37
37
|
lineHeight: 1.5,
|
|
@@ -49,7 +49,7 @@ const O = "Button-module__button___2ZuB7", q = "Button-module__sizeSmall___DRT8P
|
|
|
49
49
|
buttons: {
|
|
50
50
|
textColor: "#FFF",
|
|
51
51
|
primary: {
|
|
52
|
-
textColor:
|
|
52
|
+
textColor: V.secondary
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
borderRadius: "0px",
|
|
@@ -64,185 +64,185 @@ const O = "Button-module__button___2ZuB7", q = "Button-module__sizeSmall___DRT8P
|
|
|
64
64
|
wrapperPaddingSm: "0.5rem",
|
|
65
65
|
wrapperPadding: "1rem"
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, G = te(v), Ge = ({ theme: e = {}, children: t }) => {
|
|
68
68
|
var s;
|
|
69
69
|
const o = {
|
|
70
|
-
...
|
|
70
|
+
...v,
|
|
71
71
|
...e,
|
|
72
72
|
colors: {
|
|
73
|
-
...
|
|
73
|
+
...v.colors,
|
|
74
74
|
...e.colors
|
|
75
75
|
},
|
|
76
76
|
fonts: {
|
|
77
|
-
...
|
|
77
|
+
...v.fonts,
|
|
78
78
|
...e.fonts
|
|
79
79
|
},
|
|
80
80
|
buttons: {
|
|
81
|
-
...
|
|
81
|
+
...v.buttons,
|
|
82
82
|
...e.buttons,
|
|
83
83
|
primary: {
|
|
84
|
-
...
|
|
84
|
+
...v.buttons.primary,
|
|
85
85
|
...(s = e.buttons) == null ? void 0 : s.primary
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
breakpoints: {
|
|
89
|
-
...
|
|
89
|
+
...v.breakpoints,
|
|
90
90
|
...e.breakpoints
|
|
91
91
|
},
|
|
92
92
|
layout: {
|
|
93
|
-
...
|
|
93
|
+
...v.layout,
|
|
94
94
|
...e.layout
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
},
|
|
97
|
+
return /* @__PURE__ */ _(G.Provider, { value: o, children: t });
|
|
98
|
+
}, h = () => oe(G), Je = ({
|
|
99
99
|
color: e,
|
|
100
100
|
hoverColor: t,
|
|
101
101
|
hoverTextColor: o,
|
|
102
102
|
textColor: s,
|
|
103
|
-
outline:
|
|
104
|
-
size:
|
|
103
|
+
outline: n = !1,
|
|
104
|
+
size: r,
|
|
105
105
|
type: l = "button",
|
|
106
|
-
buttonProps:
|
|
106
|
+
buttonProps: a = {},
|
|
107
107
|
children: i,
|
|
108
|
-
disabled:
|
|
109
|
-
onClick:
|
|
108
|
+
disabled: u = !1,
|
|
109
|
+
onClick: y,
|
|
110
110
|
fontSize: d
|
|
111
111
|
}) => {
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
s ?
|
|
115
|
-
const
|
|
116
|
-
...
|
|
117
|
-
isActive:
|
|
118
|
-
disabled:
|
|
119
|
-
buttonColor: e ||
|
|
120
|
-
textColor:
|
|
112
|
+
const m = h(), [c, p] = Z(!1);
|
|
113
|
+
let f;
|
|
114
|
+
s ? f = s : f = e ? m.buttons.textColor : m.buttons.primary.textColor;
|
|
115
|
+
const g = {
|
|
116
|
+
...le({
|
|
117
|
+
isActive: c,
|
|
118
|
+
disabled: u,
|
|
119
|
+
buttonColor: e || m.colors.primary,
|
|
120
|
+
textColor: f,
|
|
121
121
|
hoverColor: t,
|
|
122
122
|
hoverTextColor: o,
|
|
123
|
-
outline:
|
|
123
|
+
outline: n
|
|
124
124
|
}),
|
|
125
|
-
fontSize: d ||
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
fontSize: d || m.fonts.size
|
|
126
|
+
}, S = [
|
|
127
|
+
H.button,
|
|
128
|
+
r === "small" ? H.sizeSmall : H.sizeDefault,
|
|
129
|
+
n ? H.outline : ""
|
|
130
130
|
].filter(Boolean).join(" ");
|
|
131
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ _(
|
|
132
132
|
"button",
|
|
133
133
|
{
|
|
134
|
-
className:
|
|
135
|
-
disabled:
|
|
136
|
-
onClick:
|
|
134
|
+
className: S,
|
|
135
|
+
disabled: u,
|
|
136
|
+
onClick: y,
|
|
137
137
|
onMouseEnter: () => p(!0),
|
|
138
138
|
onMouseLeave: () => p(!1),
|
|
139
139
|
type: l,
|
|
140
|
-
...
|
|
140
|
+
...a,
|
|
141
141
|
style: {
|
|
142
|
-
...
|
|
143
|
-
...
|
|
142
|
+
...g,
|
|
143
|
+
...a.style
|
|
144
144
|
},
|
|
145
145
|
children: i
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
148
|
};
|
|
149
|
-
var
|
|
150
|
-
function
|
|
151
|
-
if (!
|
|
149
|
+
var A = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), ce = new Uint8Array(16);
|
|
150
|
+
function ie() {
|
|
151
|
+
if (!A)
|
|
152
152
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
153
|
-
return
|
|
153
|
+
return A(ce);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
for (var
|
|
157
|
-
|
|
158
|
-
function
|
|
159
|
-
var o = 0, s =
|
|
155
|
+
var J = [];
|
|
156
|
+
for (var P = 0; P < 256; ++P)
|
|
157
|
+
J[P] = (P + 256).toString(16).substr(1);
|
|
158
|
+
function ue(e, t) {
|
|
159
|
+
var o = 0, s = J;
|
|
160
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("");
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function K(e, t, o) {
|
|
163
163
|
var s = t && o || 0;
|
|
164
164
|
typeof e == "string" && (t = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
165
|
-
var
|
|
166
|
-
if (
|
|
167
|
-
for (var
|
|
168
|
-
t[s +
|
|
169
|
-
return t ||
|
|
165
|
+
var n = e.random || (e.rng || ie)();
|
|
166
|
+
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t)
|
|
167
|
+
for (var r = 0; r < 16; ++r)
|
|
168
|
+
t[s + r] = n[r];
|
|
169
|
+
return t || ue(n);
|
|
170
170
|
}
|
|
171
|
-
const
|
|
172
|
-
container:
|
|
173
|
-
svg:
|
|
174
|
-
label:
|
|
175
|
-
},
|
|
171
|
+
const me = "Checkbox-module__container___aV9qz", de = "Checkbox-module__svg___kkluC", pe = "Checkbox-module__label___cwRtI", R = {
|
|
172
|
+
container: me,
|
|
173
|
+
svg: de,
|
|
174
|
+
label: pe
|
|
175
|
+
}, ye = ({
|
|
176
176
|
color: e = "#000",
|
|
177
177
|
checkmarkColor: t,
|
|
178
178
|
disabled: o = !1,
|
|
179
179
|
inverted: s = !1
|
|
180
180
|
}) => {
|
|
181
|
-
let
|
|
182
|
-
return t ?
|
|
181
|
+
let n = e;
|
|
182
|
+
return t ? n = t : s && (n = "white"), {
|
|
183
183
|
boxColor: e,
|
|
184
|
-
checkmarkColor:
|
|
184
|
+
checkmarkColor: n,
|
|
185
185
|
cursor: o ? "default" : "pointer",
|
|
186
186
|
opacity: o ? 0.3 : 1
|
|
187
187
|
};
|
|
188
|
-
},
|
|
188
|
+
}, Ke = ({
|
|
189
189
|
checked: e = !1,
|
|
190
190
|
checkmarkColor: t,
|
|
191
191
|
color: o,
|
|
192
192
|
disabled: s = !1,
|
|
193
|
-
fontSize:
|
|
194
|
-
id:
|
|
193
|
+
fontSize: n,
|
|
194
|
+
id: r,
|
|
195
195
|
inverted: l = !1,
|
|
196
|
-
label:
|
|
196
|
+
label: a,
|
|
197
197
|
labelStyle: i,
|
|
198
|
-
name:
|
|
199
|
-
onChange:
|
|
198
|
+
name: u,
|
|
199
|
+
onChange: y,
|
|
200
200
|
style: d,
|
|
201
|
-
...
|
|
201
|
+
...m
|
|
202
202
|
}) => {
|
|
203
|
-
const
|
|
204
|
-
color: o ||
|
|
203
|
+
const c = h(), p = r || K(), f = ye({
|
|
204
|
+
color: o || c.colors.primary,
|
|
205
205
|
checkmarkColor: t,
|
|
206
206
|
disabled: s,
|
|
207
207
|
inverted: l
|
|
208
|
-
}),
|
|
209
|
-
s ||
|
|
210
|
-
}, S = {
|
|
211
|
-
cursor: m.cursor,
|
|
212
|
-
fontSize: r || a.fonts.size,
|
|
213
|
-
opacity: m.opacity,
|
|
214
|
-
...d
|
|
208
|
+
}), b = (x) => {
|
|
209
|
+
s || y(x);
|
|
215
210
|
}, g = {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
211
|
+
cursor: f.cursor,
|
|
212
|
+
fontSize: n || c.fonts.size,
|
|
213
|
+
opacity: f.opacity,
|
|
214
|
+
...d
|
|
215
|
+
}, S = {
|
|
216
|
+
width: n || "1rem"
|
|
217
|
+
}, w = {
|
|
218
|
+
color: f.boxColor,
|
|
219
|
+
cursor: f.cursor,
|
|
220
|
+
fontSize: n || "1rem",
|
|
221
221
|
...i
|
|
222
222
|
};
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ z("div", { className: R.container, style: g, ...m, children: [
|
|
224
|
+
/* @__PURE__ */ _(
|
|
225
225
|
"input",
|
|
226
226
|
{
|
|
227
227
|
id: p,
|
|
228
228
|
checked: e,
|
|
229
229
|
disabled: s,
|
|
230
|
-
onChange: (
|
|
231
|
-
name:
|
|
230
|
+
onChange: (x) => b({ target: { checked: x.target.checked, name: u, type: "checkbox" } }),
|
|
231
|
+
name: u,
|
|
232
232
|
style: { display: "none" },
|
|
233
233
|
type: "checkbox"
|
|
234
234
|
}
|
|
235
235
|
),
|
|
236
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ z(
|
|
237
237
|
"svg",
|
|
238
238
|
{
|
|
239
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
240
|
viewBox: "0 0 100 100",
|
|
241
|
-
onClick: () =>
|
|
242
|
-
style:
|
|
243
|
-
className:
|
|
241
|
+
onClick: () => b({ target: { checked: !e, name: u, type: "checkbox" } }),
|
|
242
|
+
style: S,
|
|
243
|
+
className: R.svg,
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ _(
|
|
246
246
|
"rect",
|
|
247
247
|
{
|
|
248
248
|
x: "0",
|
|
@@ -250,17 +250,17 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
250
250
|
height: "100",
|
|
251
251
|
width: "100",
|
|
252
252
|
style: {
|
|
253
|
-
fill: l && e ?
|
|
253
|
+
fill: l && e ? f.boxColor : "transparent",
|
|
254
254
|
strokeWidth: "25",
|
|
255
|
-
stroke:
|
|
255
|
+
stroke: f.boxColor
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
),
|
|
259
|
-
e && /* @__PURE__ */
|
|
259
|
+
e && /* @__PURE__ */ _(
|
|
260
260
|
"path",
|
|
261
261
|
{
|
|
262
262
|
d: "M 25 45 L 45 65 L 75 30",
|
|
263
|
-
stroke:
|
|
263
|
+
stroke: f.checkmarkColor,
|
|
264
264
|
strokeWidth: "15",
|
|
265
265
|
fill: "transparent"
|
|
266
266
|
}
|
|
@@ -268,18 +268,18 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
268
268
|
]
|
|
269
269
|
}
|
|
270
270
|
),
|
|
271
|
-
|
|
271
|
+
a && /* @__PURE__ */ _("label", { htmlFor: p, className: R.label, style: w, children: a })
|
|
272
272
|
] });
|
|
273
|
-
},
|
|
274
|
-
const e =
|
|
275
|
-
return
|
|
273
|
+
}, Xe = () => {
|
|
274
|
+
const e = h();
|
|
275
|
+
return D(() => {
|
|
276
276
|
const t = document.documentElement;
|
|
277
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
278
|
}, [e]), null;
|
|
279
|
-
},
|
|
280
|
-
label:
|
|
281
|
-
disabled:
|
|
282
|
-
},
|
|
279
|
+
}, fe = "FormLabel-module__label___0M-fo", _e = "FormLabel-module__disabled___ktIFp", O = {
|
|
280
|
+
label: fe,
|
|
281
|
+
disabled: _e
|
|
282
|
+
}, he = ({
|
|
283
283
|
color: e = "#000",
|
|
284
284
|
disabled: t = !1,
|
|
285
285
|
fontSize: o = ".85em"
|
|
@@ -288,44 +288,44 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
288
288
|
fontSize: o,
|
|
289
289
|
opacity: t ? 0.5 : 1,
|
|
290
290
|
cursor: t ? "not-allowed" : "default"
|
|
291
|
-
}),
|
|
291
|
+
}), Ye = ({
|
|
292
292
|
children: e,
|
|
293
293
|
color: t,
|
|
294
294
|
disabled: o = !1,
|
|
295
295
|
fontSize: s,
|
|
296
|
-
htmlFor:
|
|
297
|
-
style:
|
|
296
|
+
htmlFor: n,
|
|
297
|
+
style: r,
|
|
298
298
|
...l
|
|
299
299
|
}) => {
|
|
300
|
-
const
|
|
301
|
-
color: t ||
|
|
300
|
+
const a = h(), i = he({
|
|
301
|
+
color: t || a.colors.primary,
|
|
302
302
|
disabled: o,
|
|
303
303
|
fontSize: s || ".85em"
|
|
304
|
-
}),
|
|
304
|
+
}), u = {
|
|
305
305
|
color: i.color,
|
|
306
306
|
fontSize: i.fontSize,
|
|
307
307
|
opacity: i.opacity,
|
|
308
308
|
cursor: i.cursor,
|
|
309
|
-
...
|
|
310
|
-
},
|
|
311
|
-
|
|
312
|
-
o ?
|
|
309
|
+
...r
|
|
310
|
+
}, y = [
|
|
311
|
+
O.label,
|
|
312
|
+
o ? O.disabled : ""
|
|
313
313
|
].filter(Boolean).join(" ");
|
|
314
|
-
return /* @__PURE__ */
|
|
314
|
+
return /* @__PURE__ */ _(
|
|
315
315
|
"label",
|
|
316
316
|
{
|
|
317
|
-
className:
|
|
318
|
-
htmlFor:
|
|
319
|
-
style:
|
|
317
|
+
className: y,
|
|
318
|
+
htmlFor: n,
|
|
319
|
+
style: u,
|
|
320
320
|
...l,
|
|
321
321
|
children: e
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
|
-
},
|
|
325
|
-
input:
|
|
326
|
-
sizeSmall:
|
|
327
|
-
sizeDefault:
|
|
328
|
-
},
|
|
324
|
+
}, ge = "Input-module__input___WjT81", Se = "Input-module__sizeSmall___NFvsi", be = "Input-module__sizeDefault___AxPA0", F = {
|
|
325
|
+
input: ge,
|
|
326
|
+
sizeSmall: Se,
|
|
327
|
+
sizeDefault: be
|
|
328
|
+
}, xe = ({
|
|
329
329
|
color: e = "#000",
|
|
330
330
|
disabled: t = !1,
|
|
331
331
|
fontSize: o = "1em",
|
|
@@ -336,157 +336,157 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
336
336
|
fontSize: o,
|
|
337
337
|
opacity: t ? 0.3 : 1,
|
|
338
338
|
placeholderOpacity: s
|
|
339
|
-
}),
|
|
339
|
+
}), et = ({
|
|
340
340
|
color: e,
|
|
341
341
|
disabled: t = !1,
|
|
342
342
|
fontSize: o,
|
|
343
343
|
name: s = "",
|
|
344
|
-
onChange:
|
|
345
|
-
placeholder:
|
|
344
|
+
onChange: n,
|
|
345
|
+
placeholder: r,
|
|
346
346
|
placeholderOpacity: l = 0.3,
|
|
347
|
-
size:
|
|
347
|
+
size: a,
|
|
348
348
|
style: i,
|
|
349
|
-
type:
|
|
350
|
-
value:
|
|
349
|
+
type: u = "text",
|
|
350
|
+
value: y = "",
|
|
351
351
|
...d
|
|
352
352
|
}) => {
|
|
353
|
-
const
|
|
354
|
-
color: e ||
|
|
353
|
+
const m = h(), c = xe({
|
|
354
|
+
color: e || m.colors.primary,
|
|
355
355
|
disabled: t,
|
|
356
|
-
fontSize: o ||
|
|
356
|
+
fontSize: o || m.fonts.size,
|
|
357
357
|
placeholderOpacity: l
|
|
358
358
|
}), p = {
|
|
359
|
-
"--placeholder-opacity":
|
|
360
|
-
borderColor:
|
|
361
|
-
color:
|
|
362
|
-
fontSize:
|
|
363
|
-
opacity:
|
|
359
|
+
"--placeholder-opacity": c.placeholderOpacity,
|
|
360
|
+
borderColor: c.borderColor,
|
|
361
|
+
color: c.color,
|
|
362
|
+
fontSize: c.fontSize,
|
|
363
|
+
opacity: c.opacity,
|
|
364
364
|
...i
|
|
365
|
-
},
|
|
365
|
+
}, f = [
|
|
366
366
|
F.input,
|
|
367
|
-
|
|
367
|
+
a === "small" ? F.sizeSmall : F.sizeDefault
|
|
368
368
|
].filter(Boolean).join(" ");
|
|
369
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ _(
|
|
370
370
|
"input",
|
|
371
371
|
{
|
|
372
|
-
className:
|
|
372
|
+
className: f,
|
|
373
373
|
disabled: t,
|
|
374
374
|
name: s,
|
|
375
|
-
onChange:
|
|
376
|
-
placeholder:
|
|
375
|
+
onChange: n,
|
|
376
|
+
placeholder: r,
|
|
377
377
|
style: p,
|
|
378
|
-
type:
|
|
379
|
-
value:
|
|
378
|
+
type: u,
|
|
379
|
+
value: y,
|
|
380
380
|
...d
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
},
|
|
384
|
-
container:
|
|
385
|
-
svg:
|
|
386
|
-
label:
|
|
387
|
-
},
|
|
383
|
+
}, ve = "Radio-module__container___AQxhk", ze = "Radio-module__svg___zl5kF", ke = "Radio-module__label___vAFIP", M = {
|
|
384
|
+
container: ve,
|
|
385
|
+
svg: ze,
|
|
386
|
+
label: ke
|
|
387
|
+
}, we = ({
|
|
388
388
|
color: e = "#000",
|
|
389
389
|
disabled: t = !1
|
|
390
390
|
}) => ({
|
|
391
391
|
radioColor: e,
|
|
392
392
|
cursor: t ? "default" : "pointer",
|
|
393
393
|
opacity: t ? 0.3 : 1
|
|
394
|
-
}),
|
|
394
|
+
}), tt = ({
|
|
395
395
|
checked: e = !1,
|
|
396
396
|
color: t,
|
|
397
397
|
disabled: o = !1,
|
|
398
398
|
fontSize: s,
|
|
399
|
-
id:
|
|
400
|
-
label:
|
|
399
|
+
id: n,
|
|
400
|
+
label: r,
|
|
401
401
|
labelStyle: l,
|
|
402
|
-
name:
|
|
402
|
+
name: a,
|
|
403
403
|
onChange: i,
|
|
404
|
-
style:
|
|
405
|
-
...
|
|
404
|
+
style: u,
|
|
405
|
+
...y
|
|
406
406
|
}) => {
|
|
407
|
-
const d =
|
|
407
|
+
const d = h(), m = n || K(), c = we({
|
|
408
408
|
color: t || d.colors.primary,
|
|
409
409
|
disabled: o
|
|
410
|
-
}), p = (
|
|
411
|
-
o || i(
|
|
412
|
-
},
|
|
413
|
-
cursor:
|
|
410
|
+
}), p = (x) => {
|
|
411
|
+
o || i(x);
|
|
412
|
+
}, f = {
|
|
413
|
+
cursor: c.cursor,
|
|
414
414
|
fontSize: s || d.fonts.size,
|
|
415
|
-
opacity:
|
|
416
|
-
...
|
|
417
|
-
},
|
|
415
|
+
opacity: c.opacity,
|
|
416
|
+
...u
|
|
417
|
+
}, b = {
|
|
418
418
|
width: s || d.fonts.size
|
|
419
|
-
},
|
|
419
|
+
}, g = {
|
|
420
420
|
fill: "transparent",
|
|
421
421
|
strokeWidth: "12.5",
|
|
422
|
-
stroke:
|
|
423
|
-
},
|
|
424
|
-
fill:
|
|
425
|
-
},
|
|
426
|
-
color:
|
|
427
|
-
cursor:
|
|
422
|
+
stroke: c.radioColor
|
|
423
|
+
}, S = {
|
|
424
|
+
fill: c.radioColor
|
|
425
|
+
}, w = {
|
|
426
|
+
color: c.radioColor,
|
|
427
|
+
cursor: c.cursor,
|
|
428
428
|
fontSize: s || d.fonts.size,
|
|
429
429
|
...l
|
|
430
430
|
};
|
|
431
|
-
return /* @__PURE__ */
|
|
432
|
-
/* @__PURE__ */
|
|
431
|
+
return /* @__PURE__ */ z("div", { className: M.container, style: f, ...y, children: [
|
|
432
|
+
/* @__PURE__ */ _(
|
|
433
433
|
"input",
|
|
434
434
|
{
|
|
435
|
-
id:
|
|
435
|
+
id: m,
|
|
436
436
|
checked: e,
|
|
437
437
|
disabled: o,
|
|
438
|
-
name:
|
|
439
|
-
onChange: (
|
|
438
|
+
name: a,
|
|
439
|
+
onChange: (x) => p({ target: { checked: x.target.checked, name: a, type: "radio" } }),
|
|
440
440
|
style: { display: "none" },
|
|
441
441
|
type: "radio"
|
|
442
442
|
}
|
|
443
443
|
),
|
|
444
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ z(
|
|
445
445
|
"svg",
|
|
446
446
|
{
|
|
447
447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
448
448
|
viewBox: "0 0 100 100",
|
|
449
|
-
onClick: () => p({ target: { checked: !e, name:
|
|
450
|
-
className:
|
|
451
|
-
style:
|
|
449
|
+
onClick: () => p({ target: { checked: !e, name: a, type: "radio" } }),
|
|
450
|
+
className: M.svg,
|
|
451
|
+
style: b,
|
|
452
452
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ _(
|
|
454
454
|
"circle",
|
|
455
455
|
{
|
|
456
456
|
cx: "50",
|
|
457
457
|
cy: "50",
|
|
458
458
|
r: "42.5",
|
|
459
459
|
width: "100%",
|
|
460
|
-
style:
|
|
460
|
+
style: g
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
|
-
e && /* @__PURE__ */
|
|
463
|
+
e && /* @__PURE__ */ _(
|
|
464
464
|
"circle",
|
|
465
465
|
{
|
|
466
466
|
cx: "50",
|
|
467
467
|
cy: "50",
|
|
468
468
|
r: "25",
|
|
469
|
-
style:
|
|
469
|
+
style: S
|
|
470
470
|
}
|
|
471
471
|
)
|
|
472
472
|
]
|
|
473
473
|
}
|
|
474
474
|
),
|
|
475
|
-
|
|
475
|
+
r && /* @__PURE__ */ _(
|
|
476
476
|
"label",
|
|
477
477
|
{
|
|
478
|
-
htmlFor:
|
|
479
|
-
className:
|
|
480
|
-
style:
|
|
481
|
-
children:
|
|
478
|
+
htmlFor: m,
|
|
479
|
+
className: M.label,
|
|
480
|
+
style: w,
|
|
481
|
+
children: r
|
|
482
482
|
}
|
|
483
483
|
)
|
|
484
484
|
] });
|
|
485
|
-
},
|
|
486
|
-
select:
|
|
487
|
-
sizeSmall:
|
|
488
|
-
sizeDefault:
|
|
489
|
-
},
|
|
485
|
+
}, Ce = "Select-module__select___cjdcr", He = "Select-module__sizeSmall___i1quj", Pe = "Select-module__sizeDefault___EiWvW", I = {
|
|
486
|
+
select: Ce,
|
|
487
|
+
sizeSmall: He,
|
|
488
|
+
sizeDefault: Pe
|
|
489
|
+
}, Ne = ({
|
|
490
490
|
color: e = "#000",
|
|
491
491
|
disabled: t = !1
|
|
492
492
|
}) => ({
|
|
@@ -494,18 +494,18 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
494
494
|
borderColor: e,
|
|
495
495
|
cursor: t ? "default" : "pointer",
|
|
496
496
|
opacity: t ? 0.3 : 1,
|
|
497
|
-
backgroundImage: ((
|
|
497
|
+
backgroundImage: ((r) => {
|
|
498
498
|
const l = `
|
|
499
499
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
500
500
|
<path
|
|
501
501
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
502
|
-
stroke="${
|
|
502
|
+
stroke="${r}"
|
|
503
503
|
stroke-width="11"
|
|
504
504
|
fill="transparent"
|
|
505
505
|
/>
|
|
506
506
|
<path
|
|
507
507
|
d="M 30 58.5 L 50 78.5 L 70 58.5"
|
|
508
|
-
stroke="${
|
|
508
|
+
stroke="${r}"
|
|
509
509
|
stroke-width="11"
|
|
510
510
|
fill="transparent"
|
|
511
511
|
/>
|
|
@@ -513,59 +513,59 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
513
513
|
`.trim();
|
|
514
514
|
return `url("data:image/svg+xml,${encodeURIComponent(l)}")`;
|
|
515
515
|
})(e)
|
|
516
|
-
}),
|
|
516
|
+
}), ot = ({
|
|
517
517
|
children: e,
|
|
518
518
|
color: t,
|
|
519
519
|
disabled: o = !1,
|
|
520
520
|
fontSize: s,
|
|
521
|
-
name:
|
|
522
|
-
onChange:
|
|
521
|
+
name: n = "",
|
|
522
|
+
onChange: r,
|
|
523
523
|
placeholder: l = "",
|
|
524
|
-
size:
|
|
524
|
+
size: a,
|
|
525
525
|
style: i,
|
|
526
|
-
value:
|
|
527
|
-
...
|
|
526
|
+
value: u = "",
|
|
527
|
+
...y
|
|
528
528
|
}) => {
|
|
529
|
-
const d =
|
|
529
|
+
const d = h(), m = Ne({
|
|
530
530
|
color: t || d.colors.primary,
|
|
531
531
|
disabled: o
|
|
532
|
-
}),
|
|
533
|
-
backgroundImage:
|
|
532
|
+
}), c = {
|
|
533
|
+
backgroundImage: m.backgroundImage,
|
|
534
534
|
backgroundPosition: "right center",
|
|
535
535
|
backgroundRepeat: "no-repeat",
|
|
536
536
|
backgroundSize: "auto 85%",
|
|
537
537
|
backgroundColor: "transparent",
|
|
538
|
-
borderColor:
|
|
539
|
-
color:
|
|
540
|
-
cursor:
|
|
538
|
+
borderColor: m.borderColor,
|
|
539
|
+
color: m.color,
|
|
540
|
+
cursor: m.cursor,
|
|
541
541
|
fontSize: s || d.fonts.size,
|
|
542
|
-
opacity:
|
|
542
|
+
opacity: m.opacity,
|
|
543
543
|
...i
|
|
544
544
|
}, p = [
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
I.select,
|
|
546
|
+
a === "small" ? I.sizeSmall : I.sizeDefault
|
|
547
547
|
].filter(Boolean).join(" ");
|
|
548
|
-
return /* @__PURE__ */
|
|
548
|
+
return /* @__PURE__ */ z(
|
|
549
549
|
"select",
|
|
550
550
|
{
|
|
551
551
|
className: p,
|
|
552
552
|
disabled: o,
|
|
553
|
-
name:
|
|
554
|
-
onChange:
|
|
555
|
-
style:
|
|
556
|
-
value:
|
|
557
|
-
...
|
|
553
|
+
name: n,
|
|
554
|
+
onChange: r,
|
|
555
|
+
style: c,
|
|
556
|
+
value: u,
|
|
557
|
+
...y,
|
|
558
558
|
children: [
|
|
559
|
-
l !== "" && /* @__PURE__ */
|
|
559
|
+
l !== "" && /* @__PURE__ */ _("option", { disabled: !0, value: "", children: l }),
|
|
560
560
|
e
|
|
561
561
|
]
|
|
562
562
|
}
|
|
563
563
|
);
|
|
564
|
-
},
|
|
565
|
-
textarea:
|
|
566
|
-
sizeSmall:
|
|
567
|
-
sizeDefault:
|
|
568
|
-
},
|
|
564
|
+
}, $e = "Textarea-module__textarea___Z-y6g", Re = "Textarea-module__sizeSmall___HHFEM", Fe = "Textarea-module__sizeDefault___LL2Uc", B = {
|
|
565
|
+
textarea: $e,
|
|
566
|
+
sizeSmall: Re,
|
|
567
|
+
sizeDefault: Fe
|
|
568
|
+
}, Me = ({
|
|
569
569
|
color: e = "#000",
|
|
570
570
|
disabled: t = !1,
|
|
571
571
|
placeholderOpacity: o = 0.3
|
|
@@ -574,116 +574,265 @@ const X = "Checkbox-module__container___aV9qz", Y = "Checkbox-module__svg___kklu
|
|
|
574
574
|
borderColor: e,
|
|
575
575
|
opacity: t ? 0.3 : 1,
|
|
576
576
|
placeholderOpacity: o
|
|
577
|
-
}),
|
|
577
|
+
}), st = ({
|
|
578
578
|
color: e,
|
|
579
579
|
disabled: t = !1,
|
|
580
580
|
fontSize: o,
|
|
581
581
|
name: s = "",
|
|
582
|
-
onChange:
|
|
583
|
-
placeholder:
|
|
582
|
+
onChange: n,
|
|
583
|
+
placeholder: r,
|
|
584
584
|
placeholderOpacity: l = 0.3,
|
|
585
|
-
rows:
|
|
585
|
+
rows: a = 3,
|
|
586
586
|
size: i,
|
|
587
|
-
style:
|
|
588
|
-
value:
|
|
587
|
+
style: u,
|
|
588
|
+
value: y = "",
|
|
589
589
|
...d
|
|
590
590
|
}) => {
|
|
591
|
-
const
|
|
592
|
-
color: e ||
|
|
591
|
+
const m = h(), c = Me({
|
|
592
|
+
color: e || m.colors.primary,
|
|
593
593
|
disabled: t,
|
|
594
594
|
placeholderOpacity: l
|
|
595
|
-
}), p = `textarea-placeholder-${
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
return
|
|
595
|
+
}), p = `textarea-placeholder-${$.useId ? $.useId() : Math.random().toString(36)}`;
|
|
596
|
+
$.useEffect(() => {
|
|
597
|
+
const g = document.createElement("style");
|
|
598
|
+
return g.id = p, g.textContent = `
|
|
599
599
|
.${p}::placeholder {
|
|
600
600
|
color: inherit;
|
|
601
|
-
opacity: ${
|
|
601
|
+
opacity: ${c.placeholderOpacity};
|
|
602
602
|
}
|
|
603
|
-
`, document.head.appendChild(
|
|
604
|
-
const
|
|
605
|
-
|
|
603
|
+
`, document.head.appendChild(g), () => {
|
|
604
|
+
const S = document.getElementById(p);
|
|
605
|
+
S && S.remove();
|
|
606
606
|
};
|
|
607
|
-
}, [p,
|
|
608
|
-
const
|
|
609
|
-
borderColor:
|
|
610
|
-
color:
|
|
611
|
-
fontSize: o ||
|
|
612
|
-
opacity:
|
|
613
|
-
...
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
i === "small" ?
|
|
607
|
+
}, [p, c.placeholderOpacity]);
|
|
608
|
+
const f = {
|
|
609
|
+
borderColor: c.borderColor,
|
|
610
|
+
color: c.color,
|
|
611
|
+
fontSize: o || m.fonts.size,
|
|
612
|
+
opacity: c.opacity,
|
|
613
|
+
...u
|
|
614
|
+
}, b = [
|
|
615
|
+
B.textarea,
|
|
616
|
+
i === "small" ? B.sizeSmall : B.sizeDefault,
|
|
617
617
|
p
|
|
618
618
|
].filter(Boolean).join(" ");
|
|
619
|
-
return /* @__PURE__ */
|
|
619
|
+
return /* @__PURE__ */ _(
|
|
620
620
|
"textarea",
|
|
621
621
|
{
|
|
622
|
-
className:
|
|
622
|
+
className: b,
|
|
623
623
|
disabled: t,
|
|
624
624
|
name: s,
|
|
625
|
-
onChange:
|
|
626
|
-
placeholder:
|
|
627
|
-
rows:
|
|
628
|
-
style:
|
|
629
|
-
value:
|
|
625
|
+
onChange: n,
|
|
626
|
+
placeholder: r,
|
|
627
|
+
rows: a,
|
|
628
|
+
style: f,
|
|
629
|
+
value: y,
|
|
630
630
|
...d
|
|
631
631
|
}
|
|
632
632
|
);
|
|
633
|
-
},
|
|
634
|
-
header:
|
|
635
|
-
container:
|
|
636
|
-
},
|
|
633
|
+
}, Ie = "Header-module__header___RUooH", Be = "Header-module__container___t68M9", U = {
|
|
634
|
+
header: Ie,
|
|
635
|
+
container: Be
|
|
636
|
+
}, De = ({
|
|
637
637
|
isSmallScreen: e = !1,
|
|
638
638
|
maxWidth: t,
|
|
639
639
|
paddingSm: o,
|
|
640
640
|
padding: s,
|
|
641
|
-
fontSize:
|
|
641
|
+
fontSize: n
|
|
642
642
|
} = {}) => {
|
|
643
|
-
const
|
|
643
|
+
const r = h();
|
|
644
644
|
return {
|
|
645
|
-
"--header-max-width": t ||
|
|
646
|
-
"--header-padding": e ? o ||
|
|
647
|
-
"--header-font-size": e ? "0.75rem" :
|
|
645
|
+
"--header-max-width": t || r.layout.maxWidth,
|
|
646
|
+
"--header-padding": e ? o || r.layout.wrapperPaddingSm : s || r.layout.wrapperPadding,
|
|
647
|
+
"--header-font-size": e ? "0.75rem" : n || r.fonts.size
|
|
648
648
|
};
|
|
649
|
-
},
|
|
649
|
+
}, W = (e) => {
|
|
650
650
|
const t = typeof window < "u" && typeof window.matchMedia == "function";
|
|
651
|
-
return
|
|
651
|
+
return se((r) => {
|
|
652
652
|
if (!t) return () => {
|
|
653
653
|
};
|
|
654
654
|
const l = window.matchMedia(e);
|
|
655
|
-
return l.addEventListener("change",
|
|
655
|
+
return l.addEventListener("change", r), () => l.removeEventListener("change", r);
|
|
656
656
|
}, () => t ? window.matchMedia(e).matches : !1, () => !1);
|
|
657
|
-
},
|
|
657
|
+
}, nt = ({
|
|
658
658
|
children: e,
|
|
659
659
|
breakPointSm: t,
|
|
660
660
|
maxWidth: o,
|
|
661
661
|
paddingSm: s,
|
|
662
|
-
padding:
|
|
663
|
-
fontSize:
|
|
662
|
+
padding: n,
|
|
663
|
+
fontSize: r,
|
|
664
664
|
style: l = {},
|
|
665
|
-
headerProps:
|
|
665
|
+
headerProps: a = {},
|
|
666
666
|
headerRef: i
|
|
667
667
|
}) => {
|
|
668
|
-
const
|
|
668
|
+
const u = h(), d = (t || u.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), m = d ? parseInt(d[1], 10) - 1 : 474, c = d ? d[2] : "px", p = W(`(max-width: ${m}${c})`), f = De({
|
|
669
669
|
isSmallScreen: p,
|
|
670
670
|
maxWidth: o,
|
|
671
671
|
paddingSm: s,
|
|
672
|
-
padding:
|
|
673
|
-
fontSize:
|
|
672
|
+
padding: n,
|
|
673
|
+
fontSize: r
|
|
674
674
|
});
|
|
675
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ _("header", { ref: i, className: U.header, ...a, children: /* @__PURE__ */ _("div", { className: U.container, style: { ...f, ...l }, children: e }) });
|
|
676
|
+
}, We = "ResponsiveNav-module__nav___xOfv5", Le = "ResponsiveNav-module__navMobile___h795P", Ee = "ResponsiveNav-module__open___WDCAf", Te = "ResponsiveNav-module__navDesktop___9wscZ", N = {
|
|
677
|
+
nav: We,
|
|
678
|
+
navMobile: Le,
|
|
679
|
+
open: Ee,
|
|
680
|
+
navDesktop: Te
|
|
681
|
+
}, je = ({
|
|
682
|
+
isMobile: e,
|
|
683
|
+
isCompact: t,
|
|
684
|
+
mobileBackground: o,
|
|
685
|
+
mobileColor: s,
|
|
686
|
+
mobileActiveBackground: n,
|
|
687
|
+
mobileActiveColor: r,
|
|
688
|
+
mobileButtonHoverColor: l
|
|
689
|
+
}) => {
|
|
690
|
+
const a = h();
|
|
691
|
+
return q(() => ({
|
|
692
|
+
...e ? {
|
|
693
|
+
"--mobile-nav-background": o || a.colors.accent,
|
|
694
|
+
"--mobile-nav-color": s || a.colors.primary,
|
|
695
|
+
"--mobile-nav-active-background": n || a.colors.primary,
|
|
696
|
+
"--mobile-nav-active-color": r || a.colors.accent,
|
|
697
|
+
"--mobile-nav-button-hover-text-color": l || o || a.colors.accent
|
|
698
|
+
} : {}
|
|
699
|
+
}), [
|
|
700
|
+
o,
|
|
701
|
+
s,
|
|
702
|
+
n,
|
|
703
|
+
r,
|
|
704
|
+
l,
|
|
705
|
+
a.colors.accent,
|
|
706
|
+
a.colors.primary,
|
|
707
|
+
e,
|
|
708
|
+
t
|
|
709
|
+
]);
|
|
710
|
+
}, Ve = "Hamburger-module__hamburger___Tf4-t", Ae = "Hamburger-module__line___gybZM", Oe = "Hamburger-module__open___gRswh", C = {
|
|
711
|
+
hamburger: Ve,
|
|
712
|
+
line: Ae,
|
|
713
|
+
open: Oe
|
|
714
|
+
}, Ue = ({ compact: e, color: t, visible: o, borderRadius: s }) => {
|
|
715
|
+
const n = h();
|
|
716
|
+
return q(() => {
|
|
717
|
+
const r = e ? { right: ".5em" } : {};
|
|
718
|
+
return {
|
|
719
|
+
"--hamburger-border-radius": s || n.borderRadius || "10px",
|
|
720
|
+
color: t || "inherit",
|
|
721
|
+
display: o ? "flex" : "none",
|
|
722
|
+
...r
|
|
723
|
+
};
|
|
724
|
+
}, [t, o, e, s, n.borderRadius]);
|
|
725
|
+
}, Qe = ({
|
|
726
|
+
visible: e,
|
|
727
|
+
compact: t,
|
|
728
|
+
color: o,
|
|
729
|
+
hamburgerRef: s,
|
|
730
|
+
open: n = !1,
|
|
731
|
+
setOpen: r,
|
|
732
|
+
buttonProps: l,
|
|
733
|
+
borderRadius: a
|
|
734
|
+
}) => {
|
|
735
|
+
const i = Ue({
|
|
736
|
+
compact: t,
|
|
737
|
+
color: o,
|
|
738
|
+
visible: e,
|
|
739
|
+
borderRadius: a
|
|
740
|
+
}), u = [
|
|
741
|
+
C.hamburger,
|
|
742
|
+
n ? C.open : ""
|
|
743
|
+
].filter(Boolean).join(" ");
|
|
744
|
+
return /* @__PURE__ */ z(
|
|
745
|
+
"button",
|
|
746
|
+
{
|
|
747
|
+
ref: s,
|
|
748
|
+
className: u,
|
|
749
|
+
onClick: () => r(!n),
|
|
750
|
+
style: i,
|
|
751
|
+
"aria-label": "Toggle menu",
|
|
752
|
+
"aria-expanded": n,
|
|
753
|
+
...l,
|
|
754
|
+
children: [
|
|
755
|
+
/* @__PURE__ */ _("div", { className: C.line }),
|
|
756
|
+
/* @__PURE__ */ _("div", { className: C.line }),
|
|
757
|
+
/* @__PURE__ */ _("div", { className: C.line })
|
|
758
|
+
]
|
|
759
|
+
}
|
|
760
|
+
);
|
|
761
|
+
};
|
|
762
|
+
function Q(e) {
|
|
763
|
+
const o = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
|
|
764
|
+
return { maxWidth: o, unit: s };
|
|
765
|
+
}
|
|
766
|
+
const rt = ({
|
|
767
|
+
breakPointMd: e,
|
|
768
|
+
breakPointSm: t,
|
|
769
|
+
children: o,
|
|
770
|
+
mobileBackground: s,
|
|
771
|
+
mobileColor: n,
|
|
772
|
+
mobileActiveBackground: r,
|
|
773
|
+
mobileActiveColor: l,
|
|
774
|
+
mobileButtonHoverColor: a,
|
|
775
|
+
style: i,
|
|
776
|
+
navProps: u
|
|
777
|
+
}) => {
|
|
778
|
+
const [y, d] = Z(!1), m = j(null), c = j(null), p = h(), f = e || p.breakpoints.md, b = t || p.breakpoints.sm, { maxWidth: g, unit: S } = Q(f), { maxWidth: w, unit: x } = Q(b), k = W(`(max-width: ${g}${S})`), L = W(`(max-width: ${w}${x})`), X = je({
|
|
779
|
+
isMobile: k,
|
|
780
|
+
isCompact: L,
|
|
781
|
+
mobileBackground: s,
|
|
782
|
+
mobileColor: n,
|
|
783
|
+
mobileActiveBackground: r,
|
|
784
|
+
mobileActiveColor: l,
|
|
785
|
+
mobileButtonHoverColor: a
|
|
786
|
+
});
|
|
787
|
+
D(() => {
|
|
788
|
+
k || d(!1);
|
|
789
|
+
}, [k]), D(() => {
|
|
790
|
+
const E = (T) => {
|
|
791
|
+
!c.current || c.current.contains(T.target) || m.current && m.current.contains(T.target) || d(!1);
|
|
792
|
+
};
|
|
793
|
+
return document.addEventListener("mousedown", E), () => {
|
|
794
|
+
document.removeEventListener("mousedown", E);
|
|
795
|
+
};
|
|
796
|
+
}, [m, c, d]);
|
|
797
|
+
const Y = [
|
|
798
|
+
N.nav,
|
|
799
|
+
k ? N.navMobile : N.navDesktop,
|
|
800
|
+
k && y ? N.open : ""
|
|
801
|
+
].filter(Boolean).join(" ");
|
|
802
|
+
return /* @__PURE__ */ z(ee, { children: [
|
|
803
|
+
/* @__PURE__ */ _(
|
|
804
|
+
Qe,
|
|
805
|
+
{
|
|
806
|
+
hamburgerRef: m,
|
|
807
|
+
visible: k,
|
|
808
|
+
compact: L,
|
|
809
|
+
open: y,
|
|
810
|
+
setOpen: d
|
|
811
|
+
}
|
|
812
|
+
),
|
|
813
|
+
/* @__PURE__ */ _(
|
|
814
|
+
"nav",
|
|
815
|
+
{
|
|
816
|
+
ref: c,
|
|
817
|
+
className: Y,
|
|
818
|
+
style: { ...X, ...i },
|
|
819
|
+
...u,
|
|
820
|
+
children: typeof o == "function" ? o({ setOpen: d }) : o
|
|
821
|
+
}
|
|
822
|
+
)
|
|
823
|
+
] });
|
|
676
824
|
};
|
|
677
825
|
export {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
826
|
+
Je as Button,
|
|
827
|
+
Xe as CSSReset,
|
|
828
|
+
Ke as Checkbox,
|
|
829
|
+
Ye as FormLabel,
|
|
830
|
+
nt as Header,
|
|
831
|
+
et as Input,
|
|
832
|
+
tt as Radio,
|
|
833
|
+
rt as ResponsiveNav,
|
|
834
|
+
ot as Select,
|
|
835
|
+
st as Textarea,
|
|
836
|
+
Ge as ThemeProvider,
|
|
837
|
+
h as useTheme
|
|
689
838
|
};
|