digital-rabbit-cl 1.0.23 → 1.0.26
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.
|
@@ -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,24 +1,27 @@
|
|
|
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(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
2
|
import { jsx as _, jsxs as k } from "react/jsx-runtime";
|
|
2
|
-
import P, { createContext as j, useContext as E, useState as
|
|
3
|
+
import P, { createContext as j, useContext as E, useState as A, useEffect as M } from "react";
|
|
3
4
|
const V = "Button-module__button___2ZuB7", U = "Button-module__sizeSmall___DRT8P", q = "Button-module__sizeDefault___iwWOV", v = {
|
|
4
5
|
button: V,
|
|
5
6
|
sizeSmall: U,
|
|
6
7
|
sizeDefault: q
|
|
7
8
|
}, O = ({
|
|
8
|
-
isActive:
|
|
9
|
-
disabled:
|
|
10
|
-
buttonColor: o,
|
|
11
|
-
textColor: s,
|
|
9
|
+
isActive: e,
|
|
10
|
+
disabled: t,
|
|
11
|
+
buttonColor: o = "#FFF",
|
|
12
|
+
textColor: s = "#000",
|
|
12
13
|
hoverColor: r,
|
|
13
14
|
hoverTextColor: n,
|
|
14
|
-
outline:
|
|
15
|
+
outline: y
|
|
15
16
|
}) => {
|
|
16
17
|
let a, c, i;
|
|
17
|
-
|
|
18
|
+
y ? (a = "transparent", c = o, i = o, e && (a = r || o, c = r || o, i = n || s)) : (a = o, c = o, i = s, e && (a = r || o, c = r || o, i = n || s));
|
|
19
|
+
let f = 1;
|
|
20
|
+
return t ? f = 0.3 : e && (f = r || y ? 1 : 0.75), {
|
|
18
21
|
backgroundColor: a,
|
|
19
22
|
borderColor: c,
|
|
20
23
|
color: i,
|
|
21
|
-
opacity:
|
|
24
|
+
opacity: f
|
|
22
25
|
};
|
|
23
26
|
}, R = {
|
|
24
27
|
primary: "#FFF",
|
|
@@ -61,65 +64,65 @@ const V = "Button-module__button___2ZuB7", U = "Button-module__sizeSmall___DRT8P
|
|
|
61
64
|
wrapperPaddingSm: "0.5rem",
|
|
62
65
|
wrapperPadding: "1rem"
|
|
63
66
|
}
|
|
64
|
-
}, L = j(h),
|
|
67
|
+
}, L = j(h), xe = ({ theme: e = {}, children: t }) => {
|
|
65
68
|
var s;
|
|
66
69
|
const o = {
|
|
67
70
|
...h,
|
|
68
|
-
...
|
|
71
|
+
...e,
|
|
69
72
|
colors: {
|
|
70
73
|
...h.colors,
|
|
71
|
-
...
|
|
74
|
+
...e.colors
|
|
72
75
|
},
|
|
73
76
|
fonts: {
|
|
74
77
|
...h.fonts,
|
|
75
|
-
...
|
|
78
|
+
...e.fonts
|
|
76
79
|
},
|
|
77
80
|
buttons: {
|
|
78
81
|
...h.buttons,
|
|
79
|
-
...
|
|
82
|
+
...e.buttons,
|
|
80
83
|
primary: {
|
|
81
84
|
...h.buttons.primary,
|
|
82
|
-
...(s =
|
|
85
|
+
...(s = e.buttons) == null ? void 0 : s.primary
|
|
83
86
|
}
|
|
84
87
|
},
|
|
85
88
|
breakpoints: {
|
|
86
89
|
...h.breakpoints,
|
|
87
|
-
...
|
|
90
|
+
...e.breakpoints
|
|
88
91
|
},
|
|
89
92
|
layout: {
|
|
90
93
|
...h.layout,
|
|
91
|
-
...
|
|
94
|
+
...e.layout
|
|
92
95
|
}
|
|
93
96
|
};
|
|
94
|
-
return /* @__PURE__ */ _(L.Provider, { value: o, children:
|
|
95
|
-
}, z = () => E(L),
|
|
96
|
-
color:
|
|
97
|
-
hoverColor:
|
|
97
|
+
return /* @__PURE__ */ _(L.Provider, { value: o, children: t });
|
|
98
|
+
}, z = () => E(L), be = ({
|
|
99
|
+
color: e,
|
|
100
|
+
hoverColor: t,
|
|
98
101
|
hoverTextColor: o,
|
|
99
102
|
textColor: s,
|
|
100
103
|
outline: r = !1,
|
|
101
104
|
size: n,
|
|
102
|
-
type:
|
|
105
|
+
type: y = "button",
|
|
103
106
|
buttonProps: a = {},
|
|
104
107
|
children: c,
|
|
105
108
|
disabled: i = !1,
|
|
106
|
-
onClick:
|
|
107
|
-
fontSize:
|
|
109
|
+
onClick: f,
|
|
110
|
+
fontSize: d
|
|
108
111
|
}) => {
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
s ?
|
|
112
|
+
const u = z(), [l, p] = A(!1);
|
|
113
|
+
let m;
|
|
114
|
+
s ? m = s : m = e ? u.buttons.textColor : u.buttons.primary.textColor;
|
|
112
115
|
const S = {
|
|
113
116
|
...O({
|
|
114
117
|
isActive: l,
|
|
115
118
|
disabled: i,
|
|
116
|
-
buttonColor:
|
|
117
|
-
textColor:
|
|
118
|
-
hoverColor:
|
|
119
|
+
buttonColor: e || u.colors.primary,
|
|
120
|
+
textColor: m,
|
|
121
|
+
hoverColor: t,
|
|
119
122
|
hoverTextColor: o,
|
|
120
123
|
outline: r
|
|
121
124
|
}),
|
|
122
|
-
fontSize:
|
|
125
|
+
fontSize: d || u.fonts.size
|
|
123
126
|
}, g = [
|
|
124
127
|
v.button,
|
|
125
128
|
n === "small" ? v.sizeSmall : v.sizeDefault,
|
|
@@ -130,10 +133,10 @@ const V = "Button-module__button___2ZuB7", U = "Button-module__sizeSmall___DRT8P
|
|
|
130
133
|
{
|
|
131
134
|
className: g,
|
|
132
135
|
disabled: i,
|
|
133
|
-
onClick:
|
|
136
|
+
onClick: f,
|
|
134
137
|
onMouseEnter: () => p(!0),
|
|
135
138
|
onMouseLeave: () => p(!1),
|
|
136
|
-
type:
|
|
139
|
+
type: y,
|
|
137
140
|
...a,
|
|
138
141
|
style: {
|
|
139
142
|
...S,
|
|
@@ -152,77 +155,77 @@ function Q() {
|
|
|
152
155
|
var T = [];
|
|
153
156
|
for (var w = 0; w < 256; ++w)
|
|
154
157
|
T[w] = (w + 256).toString(16).substr(1);
|
|
155
|
-
function G(
|
|
158
|
+
function G(e, t) {
|
|
156
159
|
var o = 0, s = T;
|
|
157
|
-
return [s[
|
|
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("");
|
|
158
161
|
}
|
|
159
|
-
function W(
|
|
160
|
-
var s =
|
|
161
|
-
typeof
|
|
162
|
-
var r =
|
|
163
|
-
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
162
|
+
function W(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 || Q)();
|
|
166
|
+
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t)
|
|
164
167
|
for (var n = 0; n < 16; ++n)
|
|
165
|
-
|
|
166
|
-
return
|
|
168
|
+
t[s + n] = r[n];
|
|
169
|
+
return t || G(r);
|
|
167
170
|
}
|
|
168
171
|
const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kkluC", X = "Checkbox-module__label___cwRtI", H = {
|
|
169
172
|
container: J,
|
|
170
173
|
svg: K,
|
|
171
174
|
label: X
|
|
172
175
|
}, Y = ({
|
|
173
|
-
color:
|
|
174
|
-
checkmarkColor:
|
|
176
|
+
color: e = "#000",
|
|
177
|
+
checkmarkColor: t,
|
|
175
178
|
disabled: o = !1,
|
|
176
179
|
inverted: s = !1
|
|
177
180
|
}) => {
|
|
178
|
-
let r =
|
|
179
|
-
return
|
|
180
|
-
boxColor:
|
|
181
|
+
let r = e;
|
|
182
|
+
return t ? r = t : s && (r = "white"), {
|
|
183
|
+
boxColor: e,
|
|
181
184
|
checkmarkColor: r,
|
|
182
185
|
cursor: o ? "default" : "pointer",
|
|
183
186
|
opacity: o ? 0.3 : 1
|
|
184
187
|
};
|
|
185
|
-
},
|
|
186
|
-
checked:
|
|
187
|
-
checkmarkColor:
|
|
188
|
+
}, ke = ({
|
|
189
|
+
checked: e = !1,
|
|
190
|
+
checkmarkColor: t,
|
|
188
191
|
color: o,
|
|
189
192
|
disabled: s = !1,
|
|
190
193
|
fontSize: r,
|
|
191
194
|
id: n,
|
|
192
|
-
inverted:
|
|
195
|
+
inverted: y = !1,
|
|
193
196
|
label: a,
|
|
194
197
|
labelStyle: c,
|
|
195
198
|
name: i,
|
|
196
|
-
onChange:
|
|
197
|
-
style:
|
|
198
|
-
...
|
|
199
|
+
onChange: f,
|
|
200
|
+
style: d,
|
|
201
|
+
...u
|
|
199
202
|
}) => {
|
|
200
|
-
const l = z(), p = n || W(),
|
|
203
|
+
const l = z(), p = n || W(), m = Y({
|
|
201
204
|
color: o || l.colors.primary,
|
|
202
|
-
checkmarkColor:
|
|
205
|
+
checkmarkColor: t,
|
|
203
206
|
disabled: s,
|
|
204
|
-
inverted:
|
|
207
|
+
inverted: y
|
|
205
208
|
}), x = (b) => {
|
|
206
|
-
s ||
|
|
209
|
+
s || f(b);
|
|
207
210
|
}, S = {
|
|
208
|
-
cursor:
|
|
211
|
+
cursor: m.cursor,
|
|
209
212
|
fontSize: r || l.fonts.size,
|
|
210
|
-
opacity:
|
|
211
|
-
...
|
|
213
|
+
opacity: m.opacity,
|
|
214
|
+
...d
|
|
212
215
|
}, g = {
|
|
213
216
|
width: r || "1rem"
|
|
214
217
|
}, C = {
|
|
215
|
-
color:
|
|
216
|
-
cursor:
|
|
218
|
+
color: m.boxColor,
|
|
219
|
+
cursor: m.cursor,
|
|
217
220
|
fontSize: r || "1rem",
|
|
218
221
|
...c
|
|
219
222
|
};
|
|
220
|
-
return /* @__PURE__ */ k("div", { className: H.container, style: S, ...
|
|
223
|
+
return /* @__PURE__ */ k("div", { className: H.container, style: S, ...u, children: [
|
|
221
224
|
/* @__PURE__ */ _(
|
|
222
225
|
"input",
|
|
223
226
|
{
|
|
224
227
|
id: p,
|
|
225
|
-
checked:
|
|
228
|
+
checked: e,
|
|
226
229
|
disabled: s,
|
|
227
230
|
onChange: (b) => x({ target: { checked: b.target.checked, name: i, type: "checkbox" } }),
|
|
228
231
|
name: i,
|
|
@@ -235,7 +238,7 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
235
238
|
{
|
|
236
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
237
240
|
viewBox: "0 0 100 100",
|
|
238
|
-
onClick: () => x({ target: { checked: !
|
|
241
|
+
onClick: () => x({ target: { checked: !e, name: i, type: "checkbox" } }),
|
|
239
242
|
style: g,
|
|
240
243
|
className: H.svg,
|
|
241
244
|
children: [
|
|
@@ -247,17 +250,17 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
247
250
|
height: "100",
|
|
248
251
|
width: "100",
|
|
249
252
|
style: {
|
|
250
|
-
fill:
|
|
253
|
+
fill: y && e ? m.boxColor : "transparent",
|
|
251
254
|
strokeWidth: "25",
|
|
252
|
-
stroke:
|
|
255
|
+
stroke: m.boxColor
|
|
253
256
|
}
|
|
254
257
|
}
|
|
255
258
|
),
|
|
256
|
-
|
|
259
|
+
e && /* @__PURE__ */ _(
|
|
257
260
|
"path",
|
|
258
261
|
{
|
|
259
262
|
d: "M 25 45 L 45 65 L 75 30",
|
|
260
|
-
stroke:
|
|
263
|
+
stroke: m.checkmarkColor,
|
|
261
264
|
strokeWidth: "15",
|
|
262
265
|
fill: "transparent"
|
|
263
266
|
}
|
|
@@ -267,35 +270,35 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
267
270
|
),
|
|
268
271
|
a && /* @__PURE__ */ _("label", { htmlFor: p, className: H.label, style: C, children: a })
|
|
269
272
|
] });
|
|
270
|
-
},
|
|
271
|
-
const
|
|
272
|
-
return
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
}, [
|
|
276
|
-
},
|
|
277
|
-
label:
|
|
278
|
-
disabled:
|
|
279
|
-
},
|
|
280
|
-
color:
|
|
281
|
-
disabled:
|
|
273
|
+
}, ve = () => {
|
|
274
|
+
const e = z();
|
|
275
|
+
return M(() => {
|
|
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
|
+
}, ee = "FormLabel-module__label___0M-fo", te = "FormLabel-module__disabled___ktIFp", D = {
|
|
280
|
+
label: ee,
|
|
281
|
+
disabled: te
|
|
282
|
+
}, oe = ({
|
|
283
|
+
color: e = "#000",
|
|
284
|
+
disabled: t = !1,
|
|
282
285
|
fontSize: o = ".85em"
|
|
283
286
|
}) => ({
|
|
284
|
-
color: t,
|
|
285
|
-
fontSize: o,
|
|
286
|
-
opacity: e ? 0.5 : 1,
|
|
287
|
-
cursor: e ? "not-allowed" : "default"
|
|
288
|
-
}), wt = ({
|
|
289
|
-
children: t,
|
|
290
287
|
color: e,
|
|
288
|
+
fontSize: o,
|
|
289
|
+
opacity: t ? 0.5 : 1,
|
|
290
|
+
cursor: t ? "not-allowed" : "default"
|
|
291
|
+
}), we = ({
|
|
292
|
+
children: e,
|
|
293
|
+
color: t,
|
|
291
294
|
disabled: o = !1,
|
|
292
295
|
fontSize: s,
|
|
293
296
|
htmlFor: r,
|
|
294
297
|
style: n,
|
|
295
|
-
...
|
|
298
|
+
...y
|
|
296
299
|
}) => {
|
|
297
|
-
const a = z(), c =
|
|
298
|
-
color:
|
|
300
|
+
const a = z(), c = oe({
|
|
301
|
+
color: t || a.colors.primary,
|
|
299
302
|
disabled: o,
|
|
300
303
|
fontSize: s || ".85em"
|
|
301
304
|
}), i = {
|
|
@@ -304,54 +307,54 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
304
307
|
opacity: c.opacity,
|
|
305
308
|
cursor: c.cursor,
|
|
306
309
|
...n
|
|
307
|
-
},
|
|
310
|
+
}, f = [
|
|
308
311
|
D.label,
|
|
309
312
|
o ? D.disabled : ""
|
|
310
313
|
].filter(Boolean).join(" ");
|
|
311
314
|
return /* @__PURE__ */ _(
|
|
312
315
|
"label",
|
|
313
316
|
{
|
|
314
|
-
className:
|
|
317
|
+
className: f,
|
|
315
318
|
htmlFor: r,
|
|
316
319
|
style: i,
|
|
317
|
-
...
|
|
318
|
-
children:
|
|
320
|
+
...y,
|
|
321
|
+
children: e
|
|
319
322
|
}
|
|
320
323
|
);
|
|
321
|
-
},
|
|
322
|
-
input:
|
|
323
|
-
sizeSmall:
|
|
324
|
-
sizeDefault:
|
|
325
|
-
},
|
|
326
|
-
color:
|
|
327
|
-
disabled:
|
|
324
|
+
}, se = "Input-module__input___WjT81", re = "Input-module__sizeSmall___NFvsi", ne = "Input-module__sizeDefault___AxPA0", F = {
|
|
325
|
+
input: se,
|
|
326
|
+
sizeSmall: re,
|
|
327
|
+
sizeDefault: ne
|
|
328
|
+
}, le = ({
|
|
329
|
+
color: e = "#000",
|
|
330
|
+
disabled: t = !1,
|
|
328
331
|
fontSize: o = "1em",
|
|
329
332
|
placeholderOpacity: s = 0.3
|
|
330
333
|
}) => ({
|
|
331
|
-
borderColor:
|
|
332
|
-
color:
|
|
334
|
+
borderColor: e,
|
|
335
|
+
color: e,
|
|
333
336
|
fontSize: o,
|
|
334
|
-
opacity:
|
|
337
|
+
opacity: t ? 0.3 : 1,
|
|
335
338
|
placeholderOpacity: s
|
|
336
|
-
}),
|
|
337
|
-
color:
|
|
338
|
-
disabled:
|
|
339
|
+
}), Ce = ({
|
|
340
|
+
color: e,
|
|
341
|
+
disabled: t = !1,
|
|
339
342
|
fontSize: o,
|
|
340
343
|
name: s = "",
|
|
341
344
|
onChange: r,
|
|
342
345
|
placeholder: n,
|
|
343
|
-
placeholderOpacity:
|
|
346
|
+
placeholderOpacity: y = 0.3,
|
|
344
347
|
size: a,
|
|
345
348
|
style: c,
|
|
346
349
|
type: i = "text",
|
|
347
|
-
value:
|
|
348
|
-
...
|
|
350
|
+
value: f = "",
|
|
351
|
+
...d
|
|
349
352
|
}) => {
|
|
350
|
-
const
|
|
351
|
-
color:
|
|
352
|
-
disabled:
|
|
353
|
-
fontSize: o ||
|
|
354
|
-
placeholderOpacity:
|
|
353
|
+
const u = z(), l = le({
|
|
354
|
+
color: e || u.colors.primary,
|
|
355
|
+
disabled: t,
|
|
356
|
+
fontSize: o || u.fonts.size,
|
|
357
|
+
placeholderOpacity: y
|
|
355
358
|
}), p = {
|
|
356
359
|
"--placeholder-opacity": l.placeholderOpacity,
|
|
357
360
|
borderColor: l.borderColor,
|
|
@@ -359,60 +362,60 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
359
362
|
fontSize: l.fontSize,
|
|
360
363
|
opacity: l.opacity,
|
|
361
364
|
...c
|
|
362
|
-
},
|
|
365
|
+
}, m = [
|
|
363
366
|
F.input,
|
|
364
367
|
a === "small" ? F.sizeSmall : F.sizeDefault
|
|
365
368
|
].filter(Boolean).join(" ");
|
|
366
369
|
return /* @__PURE__ */ _(
|
|
367
370
|
"input",
|
|
368
371
|
{
|
|
369
|
-
className:
|
|
370
|
-
disabled:
|
|
372
|
+
className: m,
|
|
373
|
+
disabled: t,
|
|
371
374
|
name: s,
|
|
372
375
|
onChange: r,
|
|
373
376
|
placeholder: n,
|
|
374
377
|
style: p,
|
|
375
378
|
type: i,
|
|
376
|
-
value:
|
|
377
|
-
...
|
|
379
|
+
value: f,
|
|
380
|
+
...d
|
|
378
381
|
}
|
|
379
382
|
);
|
|
380
|
-
},
|
|
381
|
-
container:
|
|
382
|
-
svg:
|
|
383
|
-
label:
|
|
384
|
-
},
|
|
385
|
-
color:
|
|
386
|
-
disabled:
|
|
383
|
+
}, ae = "Radio-module__container___AQxhk", ce = "Radio-module__svg___zl5kF", ie = "Radio-module__label___vAFIP", $ = {
|
|
384
|
+
container: ae,
|
|
385
|
+
svg: ce,
|
|
386
|
+
label: ie
|
|
387
|
+
}, ye = ({
|
|
388
|
+
color: e = "#000",
|
|
389
|
+
disabled: t = !1
|
|
387
390
|
}) => ({
|
|
388
|
-
radioColor:
|
|
389
|
-
cursor:
|
|
390
|
-
opacity:
|
|
391
|
-
}),
|
|
392
|
-
checked:
|
|
393
|
-
color:
|
|
391
|
+
radioColor: e,
|
|
392
|
+
cursor: t ? "default" : "pointer",
|
|
393
|
+
opacity: t ? 0.3 : 1
|
|
394
|
+
}), Pe = ({
|
|
395
|
+
checked: e = !1,
|
|
396
|
+
color: t,
|
|
394
397
|
disabled: o = !1,
|
|
395
398
|
fontSize: s,
|
|
396
399
|
id: r,
|
|
397
400
|
label: n,
|
|
398
|
-
labelStyle:
|
|
401
|
+
labelStyle: y,
|
|
399
402
|
name: a,
|
|
400
403
|
onChange: c,
|
|
401
404
|
style: i,
|
|
402
|
-
...
|
|
405
|
+
...f
|
|
403
406
|
}) => {
|
|
404
|
-
const
|
|
405
|
-
color:
|
|
407
|
+
const d = z(), u = r || W(), l = ye({
|
|
408
|
+
color: t || d.colors.primary,
|
|
406
409
|
disabled: o
|
|
407
410
|
}), p = (b) => {
|
|
408
411
|
o || c(b);
|
|
409
|
-
},
|
|
412
|
+
}, m = {
|
|
410
413
|
cursor: l.cursor,
|
|
411
|
-
fontSize: s ||
|
|
414
|
+
fontSize: s || d.fonts.size,
|
|
412
415
|
opacity: l.opacity,
|
|
413
416
|
...i
|
|
414
417
|
}, x = {
|
|
415
|
-
width: s ||
|
|
418
|
+
width: s || d.fonts.size
|
|
416
419
|
}, S = {
|
|
417
420
|
fill: "transparent",
|
|
418
421
|
strokeWidth: "12.5",
|
|
@@ -422,15 +425,15 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
422
425
|
}, C = {
|
|
423
426
|
color: l.radioColor,
|
|
424
427
|
cursor: l.cursor,
|
|
425
|
-
fontSize: s ||
|
|
426
|
-
...
|
|
428
|
+
fontSize: s || d.fonts.size,
|
|
429
|
+
...y
|
|
427
430
|
};
|
|
428
|
-
return /* @__PURE__ */ k("div", { className: $.container, style:
|
|
431
|
+
return /* @__PURE__ */ k("div", { className: $.container, style: m, ...f, children: [
|
|
429
432
|
/* @__PURE__ */ _(
|
|
430
433
|
"input",
|
|
431
434
|
{
|
|
432
|
-
id:
|
|
433
|
-
checked:
|
|
435
|
+
id: u,
|
|
436
|
+
checked: e,
|
|
434
437
|
disabled: o,
|
|
435
438
|
name: a,
|
|
436
439
|
onChange: (b) => p({ target: { checked: b.target.checked, name: a, type: "radio" } }),
|
|
@@ -443,7 +446,7 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
443
446
|
{
|
|
444
447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
445
448
|
viewBox: "0 0 100 100",
|
|
446
|
-
onClick: () => p({ target: { checked: !
|
|
449
|
+
onClick: () => p({ target: { checked: !e, name: a, type: "radio" } }),
|
|
447
450
|
className: $.svg,
|
|
448
451
|
style: x,
|
|
449
452
|
children: [
|
|
@@ -457,7 +460,7 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
457
460
|
style: S
|
|
458
461
|
}
|
|
459
462
|
),
|
|
460
|
-
|
|
463
|
+
e && /* @__PURE__ */ _(
|
|
461
464
|
"circle",
|
|
462
465
|
{
|
|
463
466
|
cx: "50",
|
|
@@ -472,27 +475,27 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
472
475
|
n && /* @__PURE__ */ _(
|
|
473
476
|
"label",
|
|
474
477
|
{
|
|
475
|
-
htmlFor:
|
|
478
|
+
htmlFor: u,
|
|
476
479
|
className: $.label,
|
|
477
480
|
style: C,
|
|
478
481
|
children: n
|
|
479
482
|
}
|
|
480
483
|
)
|
|
481
484
|
] });
|
|
482
|
-
},
|
|
483
|
-
select:
|
|
484
|
-
sizeSmall:
|
|
485
|
-
sizeDefault:
|
|
486
|
-
},
|
|
487
|
-
color:
|
|
488
|
-
disabled:
|
|
485
|
+
}, ue = "Select-module__select___cjdcr", pe = "Select-module__sizeSmall___i1quj", fe = "Select-module__sizeDefault___EiWvW", I = {
|
|
486
|
+
select: ue,
|
|
487
|
+
sizeSmall: pe,
|
|
488
|
+
sizeDefault: fe
|
|
489
|
+
}, me = ({
|
|
490
|
+
color: e = "#000",
|
|
491
|
+
disabled: t = !1
|
|
489
492
|
}) => ({
|
|
490
|
-
color:
|
|
491
|
-
borderColor:
|
|
492
|
-
cursor:
|
|
493
|
-
opacity:
|
|
493
|
+
color: e,
|
|
494
|
+
borderColor: e,
|
|
495
|
+
cursor: t ? "default" : "pointer",
|
|
496
|
+
opacity: t ? 0.3 : 1,
|
|
494
497
|
backgroundImage: ((n) => {
|
|
495
|
-
const
|
|
498
|
+
const y = `
|
|
496
499
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
497
500
|
<path
|
|
498
501
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
@@ -508,35 +511,35 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
508
511
|
/>
|
|
509
512
|
</svg>
|
|
510
513
|
`.trim();
|
|
511
|
-
return `url("data:image/svg+xml,${encodeURIComponent(
|
|
512
|
-
})(
|
|
513
|
-
}),
|
|
514
|
-
children:
|
|
515
|
-
color:
|
|
514
|
+
return `url("data:image/svg+xml,${encodeURIComponent(y)}")`;
|
|
515
|
+
})(e)
|
|
516
|
+
}), He = ({
|
|
517
|
+
children: e,
|
|
518
|
+
color: t,
|
|
516
519
|
disabled: o = !1,
|
|
517
520
|
fontSize: s,
|
|
518
521
|
name: r = "",
|
|
519
522
|
onChange: n,
|
|
520
|
-
placeholder:
|
|
523
|
+
placeholder: y = "",
|
|
521
524
|
size: a,
|
|
522
525
|
style: c,
|
|
523
526
|
value: i = "",
|
|
524
|
-
...
|
|
527
|
+
...f
|
|
525
528
|
}) => {
|
|
526
|
-
const
|
|
527
|
-
color:
|
|
529
|
+
const d = z(), u = me({
|
|
530
|
+
color: t || d.colors.primary,
|
|
528
531
|
disabled: o
|
|
529
532
|
}), l = {
|
|
530
|
-
backgroundImage:
|
|
533
|
+
backgroundImage: u.backgroundImage,
|
|
531
534
|
backgroundPosition: "right center",
|
|
532
535
|
backgroundRepeat: "no-repeat",
|
|
533
536
|
backgroundSize: "auto 85%",
|
|
534
537
|
backgroundColor: "transparent",
|
|
535
|
-
borderColor:
|
|
536
|
-
color:
|
|
537
|
-
cursor:
|
|
538
|
-
fontSize: s ||
|
|
539
|
-
opacity:
|
|
538
|
+
borderColor: u.borderColor,
|
|
539
|
+
color: u.color,
|
|
540
|
+
cursor: u.cursor,
|
|
541
|
+
fontSize: s || d.fonts.size,
|
|
542
|
+
opacity: u.opacity,
|
|
540
543
|
...c
|
|
541
544
|
}, p = [
|
|
542
545
|
I.select,
|
|
@@ -551,44 +554,44 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
551
554
|
onChange: n,
|
|
552
555
|
style: l,
|
|
553
556
|
value: i,
|
|
554
|
-
...
|
|
557
|
+
...f,
|
|
555
558
|
children: [
|
|
556
|
-
|
|
557
|
-
|
|
559
|
+
y !== "" && /* @__PURE__ */ _("option", { disabled: !0, value: "", children: y }),
|
|
560
|
+
e
|
|
558
561
|
]
|
|
559
562
|
}
|
|
560
563
|
);
|
|
561
|
-
},
|
|
562
|
-
textarea:
|
|
563
|
-
sizeSmall:
|
|
564
|
-
sizeDefault:
|
|
565
|
-
},
|
|
566
|
-
color:
|
|
567
|
-
disabled:
|
|
564
|
+
}, de = "Textarea-module__textarea___Z-y6g", _e = "Textarea-module__sizeSmall___HHFEM", Se = "Textarea-module__sizeDefault___LL2Uc", B = {
|
|
565
|
+
textarea: de,
|
|
566
|
+
sizeSmall: _e,
|
|
567
|
+
sizeDefault: Se
|
|
568
|
+
}, ge = ({
|
|
569
|
+
color: e = "#000",
|
|
570
|
+
disabled: t = !1,
|
|
568
571
|
placeholderOpacity: o = 0.3
|
|
569
572
|
}) => ({
|
|
570
|
-
color:
|
|
571
|
-
borderColor:
|
|
572
|
-
opacity:
|
|
573
|
+
color: e,
|
|
574
|
+
borderColor: e,
|
|
575
|
+
opacity: t ? 0.3 : 1,
|
|
573
576
|
placeholderOpacity: o
|
|
574
|
-
}),
|
|
575
|
-
color:
|
|
576
|
-
disabled:
|
|
577
|
+
}), Fe = ({
|
|
578
|
+
color: e,
|
|
579
|
+
disabled: t = !1,
|
|
577
580
|
fontSize: o,
|
|
578
581
|
name: s = "",
|
|
579
582
|
onChange: r,
|
|
580
583
|
placeholder: n,
|
|
581
|
-
placeholderOpacity:
|
|
584
|
+
placeholderOpacity: y = 0.3,
|
|
582
585
|
rows: a = 3,
|
|
583
586
|
size: c,
|
|
584
587
|
style: i,
|
|
585
|
-
value:
|
|
586
|
-
...
|
|
588
|
+
value: f = "",
|
|
589
|
+
...d
|
|
587
590
|
}) => {
|
|
588
|
-
const
|
|
589
|
-
color:
|
|
590
|
-
disabled:
|
|
591
|
-
placeholderOpacity:
|
|
591
|
+
const u = z(), l = ge({
|
|
592
|
+
color: e || u.colors.primary,
|
|
593
|
+
disabled: t,
|
|
594
|
+
placeholderOpacity: y
|
|
592
595
|
}), p = `textarea-placeholder-${P.useId ? P.useId() : Math.random().toString(36)}`;
|
|
593
596
|
P.useEffect(() => {
|
|
594
597
|
const S = document.createElement("style");
|
|
@@ -602,10 +605,10 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
602
605
|
g && g.remove();
|
|
603
606
|
};
|
|
604
607
|
}, [p, l.placeholderOpacity]);
|
|
605
|
-
const
|
|
608
|
+
const m = {
|
|
606
609
|
borderColor: l.borderColor,
|
|
607
610
|
color: l.color,
|
|
608
|
-
fontSize: o ||
|
|
611
|
+
fontSize: o || u.fonts.size,
|
|
609
612
|
opacity: l.opacity,
|
|
610
613
|
...i
|
|
611
614
|
}, x = [
|
|
@@ -617,26 +620,26 @@ const J = "Checkbox-module__container___aV9qz", K = "Checkbox-module__svg___kklu
|
|
|
617
620
|
"textarea",
|
|
618
621
|
{
|
|
619
622
|
className: x,
|
|
620
|
-
disabled:
|
|
623
|
+
disabled: t,
|
|
621
624
|
name: s,
|
|
622
625
|
onChange: r,
|
|
623
626
|
placeholder: n,
|
|
624
627
|
rows: a,
|
|
625
|
-
style:
|
|
626
|
-
value:
|
|
627
|
-
...
|
|
628
|
+
style: m,
|
|
629
|
+
value: f,
|
|
630
|
+
...d
|
|
628
631
|
}
|
|
629
632
|
);
|
|
630
633
|
};
|
|
631
634
|
export {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
635
|
+
be as Button,
|
|
636
|
+
ve as CSSReset,
|
|
637
|
+
ke as Checkbox,
|
|
638
|
+
we as FormLabel,
|
|
639
|
+
Ce as Input,
|
|
640
|
+
Pe as Radio,
|
|
641
|
+
He as Select,
|
|
642
|
+
Fe as Textarea,
|
|
643
|
+
xe as ThemeProvider,
|
|
641
644
|
z as useTheme
|
|
642
645
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
(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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function(d,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],a):(d=typeof globalThis<"u"?globalThis:d||self,a(d.DigitalRabbitCL={},d.jsxRuntime,d.React))})(this,(function(d,a,x){"use strict";const C={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:l,outline:u})=>{let c,i,y;u?(c="transparent",i=o,y=o,e&&(c=r||o,i=r||o,y=l||s)):(c=o,i=o,y=s,e&&(c=r||o,i=r||o,y=l||s));let m=1;return t?m=.3:e&&(m=r||u?1:.75),{backgroundColor:c,borderColor:i,color:y,opacity:m}},B={primary:"#FFF",secondary:"#000",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},z={colors:B,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:B.secondary}},borderRadius:"0px",breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",wrapperPaddingSm:"0.5rem",wrapperPadding:"1rem"}},T=x.createContext(z),M=({theme:e={},children:t})=>{var s;const o={...z,...e,colors:{...z.colors,...e.colors},fonts:{...z.fonts,...e.fonts},buttons:{...z.buttons,...e.buttons,primary:{...z.buttons.primary,...(s=e.buttons)==null?void 0:s.primary}},breakpoints:{...z.breakpoints,...e.breakpoints},layout:{...z.layout,...e.layout}};return a.jsx(T.Provider,{value:o,children:t})},g=()=>x.useContext(T),A=({color:e,hoverColor:t,hoverTextColor:o,textColor:s,outline:r=!1,size:l,type:u="button",buttonProps:c={},children:i,disabled:y=!1,onClick:m,fontSize:_})=>{const f=g(),[n,p]=x.useState(!1);let S;s?S=s:S=e?f.buttons.textColor:f.buttons.primary.textColor;const h={...E({isActive:n,disabled:y,buttonColor:e||f.colors.primary,textColor:S,hoverColor:t,hoverTextColor:o,outline:r}),fontSize:_||f.fonts.size},b=[C.button,l==="small"?C.sizeSmall:C.sizeDefault,r?C.outline:""].filter(Boolean).join(" ");return a.jsx("button",{className:b,disabled:y,onClick:m,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),type:u,...c,style:{...h,...c.style},children:i})};var N=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),V=new Uint8Array(16);function q(){if(!N)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return N(V)}for(var j=[],w=0;w<256;++w)j[w]=(w+256).toString(16).substr(1);function O(e,t){var o=0,s=j;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 L(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 l=0;l<16;++l)t[s+l]=r[l];return t||O(r)}const P={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},U=({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:l,inverted:u=!1,label:c,labelStyle:i,name:y,onChange:m,style:_,...f})=>{const n=g(),p=l||L(),S=U({color:o||n.colors.primary,checkmarkColor:t,disabled:s,inverted:u}),k=v=>{s||m(v)},h={cursor:S.cursor,fontSize:r||n.fonts.size,opacity:S.opacity,..._},b={width:r||"1rem"},I={color:S.boxColor,cursor:S.cursor,fontSize:r||"1rem",...i};return a.jsxs("div",{className:P.container,style:h,...f,children:[a.jsx("input",{id:p,checked:e,disabled:s,onChange:v=>k({target:{checked:v.target.checked,name:y,type:"checkbox"}}),name:y,style:{display:"none"},type:"checkbox"}),a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>k({target:{checked:!e,name:y,type:"checkbox"}}),style:b,className:P.svg,children:[a.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:{fill:u&&e?S.boxColor:"transparent",strokeWidth:"25",stroke:S.boxColor}}),e&&a.jsx("path",{d:"M 25 45 L 45 65 L 75 30",stroke:S.checkmarkColor,strokeWidth:"15",fill:"transparent"})]}),c&&a.jsx("label",{htmlFor:p,className:P.label,style:I,children:c})]})},Q=()=>{const e=g();return x.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},W={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},G=({color:e="#000",disabled:t=!1,fontSize:o=".85em"})=>({color:e,fontSize:o,opacity:t?.5:1,cursor:t?"not-allowed":"default"}),J=({children:e,color:t,disabled:o=!1,fontSize:s,htmlFor:r,style:l,...u})=>{const c=g(),i=G({color:t||c.colors.primary,disabled:o,fontSize:s||".85em"}),y={color:i.color,fontSize:i.fontSize,opacity:i.opacity,cursor:i.cursor,...l},m=[W.label,o?W.disabled:""].filter(Boolean).join(" ");return a.jsx("label",{className:m,htmlFor:r,style:y,...u,children:e})},$={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeDefault:"Input-module__sizeDefault___AxPA0"},K=({color:e="#000",disabled:t=!1,fontSize:o="1em",placeholderOpacity:s=.3})=>({borderColor:e,color:e,fontSize:o,opacity:t?.3:1,placeholderOpacity:s}),X=({color:e,disabled:t=!1,fontSize:o,name:s="",onChange:r,placeholder:l,placeholderOpacity:u=.3,size:c,style:i,type:y="text",value:m="",..._})=>{const f=g(),n=K({color:e||f.colors.primary,disabled:t,fontSize:o||f.fonts.size,placeholderOpacity:u}),p={"--placeholder-opacity":n.placeholderOpacity,borderColor:n.borderColor,color:n.color,fontSize:n.fontSize,opacity:n.opacity,...i},S=[$.input,c==="small"?$.sizeSmall:$.sizeDefault].filter(Boolean).join(" ");return a.jsx("input",{className:S,disabled:t,name:s,onChange:r,placeholder:l,style:p,type:y,value:m,..._})},F={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Y=({color:e="#000",disabled:t=!1})=>({radioColor:e,cursor:t?"default":"pointer",opacity:t?.3:1}),R=({checked:e=!1,color:t,disabled:o=!1,fontSize:s,id:r,label:l,labelStyle:u,name:c,onChange:i,style:y,...m})=>{const _=g(),f=r||L(),n=Y({color:t||_.colors.primary,disabled:o}),p=v=>{o||i(v)},S={cursor:n.cursor,fontSize:s||_.fonts.size,opacity:n.opacity,...y},k={width:s||_.fonts.size},h={fill:"transparent",strokeWidth:"12.5",stroke:n.radioColor},b={fill:n.radioColor},I={color:n.radioColor,cursor:n.cursor,fontSize:s||_.fonts.size,...u};return a.jsxs("div",{className:F.container,style:S,...m,children:[a.jsx("input",{id:f,checked:e,disabled:o,name:c,onChange:v=>p({target:{checked:v.target.checked,name:c,type:"radio"}}),style:{display:"none"},type:"radio"}),a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>p({target:{checked:!e,name:c,type:"radio"}}),className:F.svg,style:k,children:[a.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:h}),e&&a.jsx("circle",{cx:"50",cy:"50",r:"25",style:b})]}),l&&a.jsx("label",{htmlFor:f,className:F.label,style:I,children:l})]})},H={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeDefault:"Select-module__sizeDefault___EiWvW"},ee=({color:e="#000",disabled:t=!1})=>({color:e,borderColor:e,cursor:t?"default":"pointer",opacity:t?.3:1,backgroundImage:(l=>{const u=`
|
|
2
3
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
3
4
|
<path
|
|
4
5
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
@@ -13,9 +14,9 @@
|
|
|
13
14
|
fill="transparent"
|
|
14
15
|
/>
|
|
15
16
|
</svg>
|
|
16
|
-
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(
|
|
17
|
+
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(u)}")`})(e)}),te=({children:e,color:t,disabled:o=!1,fontSize:s,name:r="",onChange:l,placeholder:u="",size:c,style:i,value:y="",...m})=>{const _=g(),f=ee({color:t||_.colors.primary,disabled:o}),n={backgroundImage:f.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:f.borderColor,color:f.color,cursor:f.cursor,fontSize:s||_.fonts.size,opacity:f.opacity,...i},p=[H.select,c==="small"?H.sizeSmall:H.sizeDefault].filter(Boolean).join(" ");return a.jsxs("select",{className:p,disabled:o,name:r,onChange:l,style:n,value:y,...m,children:[u!==""&&a.jsx("option",{disabled:!0,value:"",children:u}),e]})},D={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeDefault:"Textarea-module__sizeDefault___LL2Uc"},oe=({color:e="#000",disabled:t=!1,placeholderOpacity:o=.3})=>({color:e,borderColor:e,opacity:t?.3:1,placeholderOpacity:o}),se=({color:e,disabled:t=!1,fontSize:o,name:s="",onChange:r,placeholder:l,placeholderOpacity:u=.3,rows:c=3,size:i,style:y,value:m="",..._})=>{const f=g(),n=oe({color:e||f.colors.primary,disabled:t,placeholderOpacity:u}),p=`textarea-placeholder-${x.useId?x.useId():Math.random().toString(36)}`;x.useEffect(()=>{const h=document.createElement("style");return h.id=p,h.textContent=`
|
|
17
18
|
.${p}::placeholder {
|
|
18
19
|
color: inherit;
|
|
19
20
|
opacity: ${n.placeholderOpacity};
|
|
20
21
|
}
|
|
21
|
-
`,document.head.appendChild(h),()=>{const b=document.getElementById(p);b&&b.remove()}},[p,n.placeholderOpacity]);const
|
|
22
|
+
`,document.head.appendChild(h),()=>{const b=document.getElementById(p);b&&b.remove()}},[p,n.placeholderOpacity]);const S={borderColor:n.borderColor,color:n.color,fontSize:o||f.fonts.size,opacity:n.opacity,...y},k=[D.textarea,i==="small"?D.sizeSmall:D.sizeDefault,p].filter(Boolean).join(" ");return a.jsx("textarea",{className:k,disabled:t,name:s,onChange:r,placeholder:l,rows:c,style:S,value:m,..._})};d.Button=A,d.CSSReset=Q,d.Checkbox=Z,d.FormLabel=J,d.Input=X,d.Radio=R,d.Select=te,d.Textarea=se,d.ThemeProvider=M,d.useTheme=g,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digital-rabbit-cl",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"uuid": "^7.0.3"
|
|
6
6
|
},
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"import": "./dist/digital-rabbit-cl.es.js",
|
|
29
29
|
"require": "./dist/digital-rabbit-cl.umd.js"
|
|
30
|
-
}
|
|
31
|
-
"./style.css": "./dist/style.css"
|
|
30
|
+
}
|
|
32
31
|
},
|
|
33
32
|
"files": [
|
|
34
33
|
"dist"
|
|
@@ -54,6 +53,7 @@
|
|
|
54
53
|
"@testing-library/jest-dom": "^6.9.1",
|
|
55
54
|
"@testing-library/react": "^16.3.0",
|
|
56
55
|
"@testing-library/user-event": "^14.6.1",
|
|
56
|
+
"@types/jest": "^30.0.0",
|
|
57
57
|
"@types/react": "^18.3.26",
|
|
58
58
|
"@types/react-dom": "^18.3.7",
|
|
59
59
|
"@types/uuid": "^10.0.0",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"storybook": "^10.0.7",
|
|
65
65
|
"typescript": "^5.9.3",
|
|
66
66
|
"vite": "^6.4.1",
|
|
67
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
67
68
|
"vite-plugin-dts": "^4.5.4"
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.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}
|