@arthurzakharov/ui-kit 1.6.4 → 1.6.6
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/assets/button-text-NCcWZ-LB.css +1 -0
- package/dist/assets/checkbox-bwnjS9qO.css +1 -0
- package/dist/assets/signature-CYVRZH6h.css +1 -0
- package/dist/components/signature/signature.component.js +84 -83
- package/dist/controls/buttons/button-text/button-text.component.js +57 -53
- package/dist/controls/interactives/checkbox/checkbox.component.js +21 -21
- package/dist/controls/utils/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/assets/button-text-D-i7Ce3y.css +0 -1
- package/dist/assets/checkbox-BVxmXTx8.css +0 -1
- package/dist/assets/signature-D9gYlpze.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._ButtonText_ruqqq_1{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);border-radius:var(--rm-ui-border-radius-sm)}._TextPrimary_ruqqq_10{color:var(--rm-ui-color-text-primary)}._TextSecondary_ruqqq_14{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_ruqqq_18{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_ruqqq_22{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_ruqqq_26{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_ruqqq_30{color:var(--rm-ui-color-theme-secondary)}._Link_ruqqq_34{color:var(--rm-ui-color-link)}._Left_ruqqq_38{flex-direction:row}._Right_ruqqq_42{flex-direction:row-reverse}._Icon_ruqqq_46{stroke-width:1.5}._SM_ruqqq_50 ._Icon_ruqqq_46{width:20px;height:20px}._MD_ruqqq_55 ._Icon_ruqqq_46{width:24px;height:24px}._LG_ruqqq_60 ._Icon_ruqqq_46{width:26px;height:26px}._SM_ruqqq_50 ._Content_ruqqq_65{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._SM_ruqqq_50._WithIcon_ruqqq_70 ._Content_ruqqq_65{line-height:calc(var(--rm-ui-line-height-body-small) - var(--rm-ui-padding-xxs) * 2)}._MD_ruqqq_55 ._Content_ruqqq_65{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._MD_ruqqq_55._WithIcon_ruqqq_70 ._Content_ruqqq_65{line-height:calc(var(--rm-ui-line-height-body) - var(--rm-ui-padding-xxs) * 2)}._LG_ruqqq_60 ._Content_ruqqq_65{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._LG_ruqqq_60._WithIcon_ruqqq_70 ._Content_ruqqq_65{line-height:calc(var(--rm-ui-line-height-hl4) - var(--rm-ui-padding-xxs) * 2)}._Content_ruqqq_65{text-decoration:none}._Light_ruqqq_96{font-weight:var(--rm-ui-font-weight-light)}._Regular_ruqqq_100{font-weight:var(--rm-ui-font-weight-regular)}._Medium_ruqqq_104{font-weight:var(--rm-ui-font-weight-medium)}._Bold_ruqqq_108{font-weight:var(--rm-ui-font-weight-bold)}._Underlined_ruqqq_112{text-decoration:underline}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Checkbox_d6btg_1{display:flex;flex-direction:column}._Label_d6btg_6{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_d6btg_6:hover{cursor:pointer}._Choice_d6btg_19{position:relative;left:0;top:3px}._Content_d6btg_25{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._Content_d6btg_25 button,._Content_d6btg_25 span[role=button]{color:var(--rm-ui-color-link);display:inline;background:none;font:inherit;font-size:inherit;line-height:inherit}._Content_d6btg_25 button:hover,._Content_d6btg_25 span[role=button]:hover{cursor:pointer;text-decoration:underline}._Content_d6btg_25 button:focus-visible,._Content_d6btg_25 span[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus)}._Body_d6btg_51{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodySmall_d6btg_56{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ErrorMessage_d6btg_61{padding-top:var(--rm-ui-padding-xxs)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Signature_1sp4s_1{background-color:transparent}._Main_1sp4s_7{--title-height: 40px;--top-padding: var(--rm-ui-padding-md);--horizontal-padding: var(--rm-ui-padding-md);overflow:hidden;position:relative;border:1px solid var(--rm-ui-grey-300);border-radius:var(--rm-ui-border-radius-sm)}._MainAuto_1sp4s_17{padding:var(--top-padding) var(--horizontal-padding) var(--rm-ui-padding-md)}._MainManual_1sp4s_21{padding:var(--top-padding) var(--horizontal-padding) var(--top-padding)}._Footer_1sp4s_27{margin-top:var(--rm-ui-padding-md);display:flex;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-md)}._Header_1sp4s_37{display:flex;margin-bottom:19px}._HeaderTitle_1sp4s_47{font-weight:var(--rm-ui-font-weight-medium);text-align:center}._HeaderManualDraw_1sp4s_52{justify-content:flex-end}._HeaderNotManualDraw_1sp4s_56{justify-content:center}._HeaderReset_1sp4s_60{position:relative;z-index:1}._HeaderReset_1sp4s_60:hover{cursor:pointer!important}._ManualPanel_1sp4s_71{height:134px}._ManualPanel_1sp4s_71>canvas,._ManualPanel_1sp4s_71>img{position:absolute;top:0;left:0}._ManualPanelButton_1sp4s_82{position:absolute;z-index:1;bottom:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center}._AutoPanel_1sp4s_97{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}._AutoPanelImage_1sp4s_104{height:46px;max-width:100%;display:block}._AutoPanelLoader_1sp4s_110{height:134px;display:inline-flex;align-items:center;padding:var(--rm-ui-padding-xs)}._AutoPanelButton_1sp4s_117{margin:var(--rm-ui-padding-sm) 0 var(--rm-ui-padding-sm) 0}._AutoPanelLabel_1sp4s_121{margin:var(--rm-ui-padding-xs) 0;display:flex;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xxs)}._AutoPanelLabelIcon_1sp4s_129{width:24px;height:24px;stroke:var(--rm-ui-color-success)}._AutoPanelLabelText_1sp4s_135{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}._AutoPanelError_1sp4s_142{height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs)}._AutoPanelErrorTitle_1sp4s_151{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}
|
|
@@ -8,7 +8,7 @@ import "../../controls/primitives/box/box.component.js";
|
|
|
8
8
|
import { baseProps as Ee } from "../../utils/functions/functions.util.js";
|
|
9
9
|
import { ButtonText as ie } from "../../controls/buttons/button-text/button-text.component.js";
|
|
10
10
|
import { Loader as Ue } from "../loader/loader.component.js";
|
|
11
|
-
import '../../assets/signature-
|
|
11
|
+
import '../../assets/signature-CYVRZH6h.css';function He(e) {
|
|
12
12
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
13
13
|
}
|
|
14
14
|
function Ye(e) {
|
|
@@ -71,12 +71,12 @@ function Ve() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function j(d) {
|
|
75
75
|
return $(d) === u;
|
|
76
76
|
}
|
|
77
77
|
return I.AsyncMode = f, I.ConcurrentMode = u, I.ContextConsumer = s, I.ContextProvider = c, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = T, I.Memo = b, I.Portal = r, I.Profiler = o, I.StrictMode = n, I.Suspense = v, I.isAsyncMode = function(d) {
|
|
78
|
-
return
|
|
79
|
-
}, I.isConcurrentMode =
|
|
78
|
+
return j(d) || $(d) === f;
|
|
79
|
+
}, I.isConcurrentMode = j, I.isContextConsumer = function(d) {
|
|
80
80
|
return $(d) === s;
|
|
81
81
|
}, I.isContextProvider = function(d) {
|
|
82
82
|
return $(d) === c;
|
|
@@ -111,7 +111,7 @@ function Xe() {
|
|
|
111
111
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
112
112
|
p === t || p === u || p === o || p === n || p === v || p === y || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === b || p.$$typeof === c || p.$$typeof === s || p.$$typeof === l || p.$$typeof === x || p.$$typeof === _ || p.$$typeof === q || p.$$typeof === g);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function j(p) {
|
|
115
115
|
if (typeof p == "object" && p !== null) {
|
|
116
116
|
var K = p.$$typeof;
|
|
117
117
|
switch (K) {
|
|
@@ -145,45 +145,45 @@ function Xe() {
|
|
|
145
145
|
}
|
|
146
146
|
var d = f, Z = u, re = s, Q = c, A = a, P = l, N = t, R = T, m = b, F = r, G = o, V = n, X = v, B = !1;
|
|
147
147
|
function J(p) {
|
|
148
|
-
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(p) ||
|
|
148
|
+
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(p) || j(p) === f;
|
|
149
149
|
}
|
|
150
150
|
function i(p) {
|
|
151
|
-
return
|
|
151
|
+
return j(p) === u;
|
|
152
152
|
}
|
|
153
153
|
function h(p) {
|
|
154
|
-
return
|
|
154
|
+
return j(p) === s;
|
|
155
155
|
}
|
|
156
156
|
function w(p) {
|
|
157
|
-
return
|
|
157
|
+
return j(p) === c;
|
|
158
158
|
}
|
|
159
159
|
function C(p) {
|
|
160
160
|
return typeof p == "object" && p !== null && p.$$typeof === a;
|
|
161
161
|
}
|
|
162
162
|
function E(p) {
|
|
163
|
-
return
|
|
163
|
+
return j(p) === l;
|
|
164
164
|
}
|
|
165
165
|
function M(p) {
|
|
166
|
-
return
|
|
166
|
+
return j(p) === t;
|
|
167
167
|
}
|
|
168
168
|
function S(p) {
|
|
169
|
-
return
|
|
169
|
+
return j(p) === T;
|
|
170
170
|
}
|
|
171
171
|
function O(p) {
|
|
172
|
-
return
|
|
172
|
+
return j(p) === b;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
174
|
+
function D(p) {
|
|
175
|
+
return j(p) === r;
|
|
176
176
|
}
|
|
177
177
|
function W(p) {
|
|
178
|
-
return
|
|
178
|
+
return j(p) === o;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
return
|
|
180
|
+
function k(p) {
|
|
181
|
+
return j(p) === n;
|
|
182
182
|
}
|
|
183
183
|
function Y(p) {
|
|
184
|
-
return
|
|
184
|
+
return j(p) === v;
|
|
185
185
|
}
|
|
186
|
-
L.AsyncMode = d, L.ConcurrentMode = Z, L.ContextConsumer = re, L.ContextProvider = Q, L.Element = A, L.ForwardRef = P, L.Fragment = N, L.Lazy = R, L.Memo = m, L.Portal = F, L.Profiler = G, L.StrictMode = V, L.Suspense = X, L.isAsyncMode = J, L.isConcurrentMode = i, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = C, L.isForwardRef = E, L.isFragment = M, L.isLazy = S, L.isMemo = O, L.isPortal =
|
|
186
|
+
L.AsyncMode = d, L.ConcurrentMode = Z, L.ContextConsumer = re, L.ContextProvider = Q, L.Element = A, L.ForwardRef = P, L.Fragment = N, L.Lazy = R, L.Memo = m, L.Portal = F, L.Profiler = G, L.StrictMode = V, L.Suspense = X, L.isAsyncMode = J, L.isConcurrentMode = i, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = C, L.isForwardRef = E, L.isFragment = M, L.isLazy = S, L.isMemo = O, L.isPortal = D, L.isProfiler = W, L.isStrictMode = k, L.isSuspense = Y, L.isValidElementType = $, L.typeOf = j;
|
|
187
187
|
})()), L;
|
|
188
188
|
}
|
|
189
189
|
var Ce;
|
|
@@ -296,10 +296,10 @@ function Ze() {
|
|
|
296
296
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
297
297
|
}, ve = n, ve;
|
|
298
298
|
}
|
|
299
|
-
var ye,
|
|
299
|
+
var ye, De;
|
|
300
300
|
function Ge() {
|
|
301
|
-
if (
|
|
302
|
-
|
|
301
|
+
if (De) return ye;
|
|
302
|
+
De = 1;
|
|
303
303
|
var e = $e(), a = Je(), r = /* @__PURE__ */ _e(), t = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ze(), o = function() {
|
|
304
304
|
};
|
|
305
305
|
process.env.NODE_ENV !== "production" && (o = function(s) {
|
|
@@ -331,7 +331,7 @@ function Ge() {
|
|
|
331
331
|
symbol: _("symbol"),
|
|
332
332
|
any: q(),
|
|
333
333
|
arrayOf: $,
|
|
334
|
-
element:
|
|
334
|
+
element: j(),
|
|
335
335
|
elementType: d(),
|
|
336
336
|
instanceOf: Z,
|
|
337
337
|
node: P(),
|
|
@@ -351,33 +351,33 @@ function Ge() {
|
|
|
351
351
|
function x(i) {
|
|
352
352
|
if (process.env.NODE_ENV !== "production")
|
|
353
353
|
var h = {}, w = 0;
|
|
354
|
-
function C(M, S, O,
|
|
355
|
-
if (
|
|
354
|
+
function C(M, S, O, D, W, k, Y) {
|
|
355
|
+
if (D = D || y, k = k || O, Y !== r) {
|
|
356
356
|
if (f) {
|
|
357
357
|
var p = new Error(
|
|
358
358
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
359
359
|
);
|
|
360
360
|
throw p.name = "Invariant Violation", p;
|
|
361
361
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
362
|
-
var K =
|
|
362
|
+
var K = D + ":" + O;
|
|
363
363
|
!h[K] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
364
364
|
w < 3 && (o(
|
|
365
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
365
|
+
"You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
366
366
|
), h[K] = !0, w++);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
return S[O] == null ? M ? S[O] === null ? new g("The " + W + " `" +
|
|
369
|
+
return S[O] == null ? M ? S[O] === null ? new g("The " + W + " `" + k + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new g("The " + W + " `" + k + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : i(S, O, D, W, k);
|
|
370
370
|
}
|
|
371
371
|
var E = C.bind(null, !1);
|
|
372
372
|
return E.isRequired = C.bind(null, !0), E;
|
|
373
373
|
}
|
|
374
374
|
function _(i) {
|
|
375
375
|
function h(w, C, E, M, S, O) {
|
|
376
|
-
var
|
|
376
|
+
var D = w[C], W = V(D);
|
|
377
377
|
if (W !== i) {
|
|
378
|
-
var
|
|
378
|
+
var k = X(D);
|
|
379
379
|
return new g(
|
|
380
|
-
"Invalid " + M + " `" + S + "` of type " + ("`" +
|
|
380
|
+
"Invalid " + M + " `" + S + "` of type " + ("`" + k + "` supplied to `" + E + "`, expected ") + ("`" + i + "`."),
|
|
381
381
|
{ expectedType: i }
|
|
382
382
|
);
|
|
383
383
|
}
|
|
@@ -394,19 +394,19 @@ function Ge() {
|
|
|
394
394
|
return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
395
395
|
var O = w[C];
|
|
396
396
|
if (!Array.isArray(O)) {
|
|
397
|
-
var
|
|
398
|
-
return new g("Invalid " + M + " `" + S + "` of type " + ("`" +
|
|
397
|
+
var D = V(O);
|
|
398
|
+
return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected an array."));
|
|
399
399
|
}
|
|
400
400
|
for (var W = 0; W < O.length; W++) {
|
|
401
|
-
var
|
|
402
|
-
if (
|
|
403
|
-
return
|
|
401
|
+
var k = i(O, W, E, M, S + "[" + W + "]", r);
|
|
402
|
+
if (k instanceof Error)
|
|
403
|
+
return k;
|
|
404
404
|
}
|
|
405
405
|
return null;
|
|
406
406
|
}
|
|
407
407
|
return x(h);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function j() {
|
|
410
410
|
function i(h, w, C, E, M) {
|
|
411
411
|
var S = h[w];
|
|
412
412
|
if (!s(S)) {
|
|
@@ -431,8 +431,8 @@ function Ge() {
|
|
|
431
431
|
function Z(i) {
|
|
432
432
|
function h(w, C, E, M, S) {
|
|
433
433
|
if (!(w[C] instanceof i)) {
|
|
434
|
-
var O = i.name || y,
|
|
435
|
-
return new g("Invalid " + M + " `" + S + "` of type " + ("`" +
|
|
434
|
+
var O = i.name || y, D = J(w[C]);
|
|
435
|
+
return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("instance of `" + O + "`."));
|
|
436
436
|
}
|
|
437
437
|
return null;
|
|
438
438
|
}
|
|
@@ -444,8 +444,8 @@ function Ge() {
|
|
|
444
444
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
445
445
|
) : o("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
446
446
|
function h(w, C, E, M, S) {
|
|
447
|
-
for (var O = w[C],
|
|
448
|
-
if (T(O, i[
|
|
447
|
+
for (var O = w[C], D = 0; D < i.length; D++)
|
|
448
|
+
if (T(O, i[D]))
|
|
449
449
|
return null;
|
|
450
450
|
var W = JSON.stringify(i, function(Y, p) {
|
|
451
451
|
var K = X(p);
|
|
@@ -459,14 +459,14 @@ function Ge() {
|
|
|
459
459
|
function h(w, C, E, M, S) {
|
|
460
460
|
if (typeof i != "function")
|
|
461
461
|
return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
462
|
-
var O = w[C],
|
|
463
|
-
if (
|
|
464
|
-
return new g("Invalid " + M + " `" + S + "` of type " + ("`" +
|
|
462
|
+
var O = w[C], D = V(O);
|
|
463
|
+
if (D !== "object")
|
|
464
|
+
return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected an object."));
|
|
465
465
|
for (var W in O)
|
|
466
466
|
if (t(O, W)) {
|
|
467
|
-
var
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
467
|
+
var k = i(O, W, E, M, S + "." + W, r);
|
|
468
|
+
if (k instanceof Error)
|
|
469
|
+
return k;
|
|
470
470
|
}
|
|
471
471
|
return null;
|
|
472
472
|
}
|
|
@@ -482,15 +482,15 @@ function Ge() {
|
|
|
482
482
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(w) + " at index " + h + "."
|
|
483
483
|
), c;
|
|
484
484
|
}
|
|
485
|
-
function C(E, M, S, O,
|
|
486
|
-
for (var W = [],
|
|
487
|
-
var Y = i[
|
|
485
|
+
function C(E, M, S, O, D) {
|
|
486
|
+
for (var W = [], k = 0; k < i.length; k++) {
|
|
487
|
+
var Y = i[k], p = Y(E, M, S, O, D, r);
|
|
488
488
|
if (p == null)
|
|
489
489
|
return null;
|
|
490
490
|
p.data && t(p.data, "expectedType") && W.push(p.data.expectedType);
|
|
491
491
|
}
|
|
492
492
|
var K = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
493
|
-
return new g("Invalid " + O + " `" +
|
|
493
|
+
return new g("Invalid " + O + " `" + D + "` supplied to " + ("`" + S + "`" + K + "."));
|
|
494
494
|
}
|
|
495
495
|
return x(C);
|
|
496
496
|
}
|
|
@@ -507,14 +507,14 @@ function Ge() {
|
|
|
507
507
|
}
|
|
508
508
|
function R(i) {
|
|
509
509
|
function h(w, C, E, M, S) {
|
|
510
|
-
var O = w[C],
|
|
511
|
-
if (
|
|
512
|
-
return new g("Invalid " + M + " `" + S + "` of type `" +
|
|
510
|
+
var O = w[C], D = V(O);
|
|
511
|
+
if (D !== "object")
|
|
512
|
+
return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
513
513
|
for (var W in i) {
|
|
514
|
-
var
|
|
515
|
-
if (typeof
|
|
516
|
-
return N(E, M, S, W, X(
|
|
517
|
-
var Y =
|
|
514
|
+
var k = i[W];
|
|
515
|
+
if (typeof k != "function")
|
|
516
|
+
return N(E, M, S, W, X(k));
|
|
517
|
+
var Y = k(O, W, E, M, S + "." + W, r);
|
|
518
518
|
if (Y)
|
|
519
519
|
return Y;
|
|
520
520
|
}
|
|
@@ -524,20 +524,20 @@ function Ge() {
|
|
|
524
524
|
}
|
|
525
525
|
function m(i) {
|
|
526
526
|
function h(w, C, E, M, S) {
|
|
527
|
-
var O = w[C],
|
|
528
|
-
if (
|
|
529
|
-
return new g("Invalid " + M + " `" + S + "` of type `" +
|
|
527
|
+
var O = w[C], D = V(O);
|
|
528
|
+
if (D !== "object")
|
|
529
|
+
return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
530
530
|
var W = a({}, w[C], i);
|
|
531
|
-
for (var
|
|
532
|
-
var Y = i[
|
|
533
|
-
if (t(i,
|
|
534
|
-
return N(E, M, S,
|
|
531
|
+
for (var k in W) {
|
|
532
|
+
var Y = i[k];
|
|
533
|
+
if (t(i, k) && typeof Y != "function")
|
|
534
|
+
return N(E, M, S, k, X(Y));
|
|
535
535
|
if (!Y)
|
|
536
536
|
return new g(
|
|
537
|
-
"Invalid " + M + " `" + S + "` key `" +
|
|
537
|
+
"Invalid " + M + " `" + S + "` key `" + k + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
|
|
538
538
|
Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
539
539
|
);
|
|
540
|
-
var p = Y(O,
|
|
540
|
+
var p = Y(O, k, E, M, S + "." + k, r);
|
|
541
541
|
if (p)
|
|
542
542
|
return p;
|
|
543
543
|
}
|
|
@@ -617,10 +617,10 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
617
617
|
return b.checkPropTypes = n, b.resetWarningCache = n.resetWarningCache, b.PropTypes = b, b;
|
|
618
618
|
}, ye;
|
|
619
619
|
}
|
|
620
|
-
var me,
|
|
620
|
+
var me, ke;
|
|
621
621
|
function Ke() {
|
|
622
|
-
if (
|
|
623
|
-
|
|
622
|
+
if (ke) return me;
|
|
623
|
+
ke = 1;
|
|
624
624
|
var e = /* @__PURE__ */ _e();
|
|
625
625
|
function a() {
|
|
626
626
|
}
|
|
@@ -665,10 +665,10 @@ function Ke() {
|
|
|
665
665
|
return o.PropTypes = o, o;
|
|
666
666
|
}, me;
|
|
667
667
|
}
|
|
668
|
-
var
|
|
668
|
+
var je;
|
|
669
669
|
function Qe() {
|
|
670
|
-
if (
|
|
671
|
-
if (
|
|
670
|
+
if (je) return se.exports;
|
|
671
|
+
if (je = 1, process.env.NODE_ENV !== "production") {
|
|
672
672
|
var e = $e(), a = !0;
|
|
673
673
|
se.exports = /* @__PURE__ */ Ge()(e.isElement, a);
|
|
674
674
|
} else
|
|
@@ -881,10 +881,10 @@ z.prototype._fromData = function(e, a, r) {
|
|
|
881
881
|
z.prototype._toSVG = function() {
|
|
882
882
|
var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, o = 0, c = r.width / t, s = r.height / t, f = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
883
883
|
f.setAttributeNS(null, "width", r.width), f.setAttributeNS(null, "height", r.height), this._fromData(a, function(_, q, $) {
|
|
884
|
-
var
|
|
884
|
+
var j = document.createElement("path");
|
|
885
885
|
if (!isNaN(_.control1.x) && !isNaN(_.control1.y) && !isNaN(_.control2.x) && !isNaN(_.control2.y)) {
|
|
886
886
|
var d = "M " + _.startPoint.x.toFixed(3) + "," + _.startPoint.y.toFixed(3) + " " + ("C " + _.control1.x.toFixed(3) + "," + _.control1.y.toFixed(3) + " ") + (_.control2.x.toFixed(3) + "," + _.control2.y.toFixed(3) + " ") + (_.endPoint.x.toFixed(3) + "," + _.endPoint.y.toFixed(3));
|
|
887
|
-
|
|
887
|
+
j.setAttribute("d", d), j.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), j.setAttribute("stroke", $), j.setAttribute("fill", "none"), j.setAttribute("stroke-linecap", "round"), f.appendChild(j);
|
|
888
888
|
}
|
|
889
889
|
}, function(_) {
|
|
890
890
|
var q = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
|
|
@@ -932,8 +932,8 @@ function at() {
|
|
|
932
932
|
return t.m = r, t.c = n, t.p = "", t(0);
|
|
933
933
|
})([function(r, t) {
|
|
934
934
|
function n(u) {
|
|
935
|
-
var l = u.getContext("2d"), v = u.width, y = u.height, b = l.getImageData(0, 0, v, y).data, T = s(!0, v, y, b), g = s(!1, v, y, b), x = f(!0, v, y, b), _ = f(!1, v, y, b), q = _ - x + 1, $ = g - T + 1,
|
|
936
|
-
return u.width = q, u.height = $, l.clearRect(0, 0, q, $), l.putImageData(
|
|
935
|
+
var l = u.getContext("2d"), v = u.width, y = u.height, b = l.getImageData(0, 0, v, y).data, T = s(!0, v, y, b), g = s(!1, v, y, b), x = f(!0, v, y, b), _ = f(!1, v, y, b), q = _ - x + 1, $ = g - T + 1, j = l.getImageData(x, T, q, $);
|
|
936
|
+
return u.width = q, u.height = $, l.clearRect(0, 0, q, $), l.putImageData(j, 0, 0), u;
|
|
937
937
|
}
|
|
938
938
|
function o(u, l, v, y) {
|
|
939
939
|
return { red: y[4 * (v * l + u)], green: y[4 * (v * l + u) + 1], blue: y[4 * (v * l + u) + 2], alpha: y[4 * (v * l + u) + 3] };
|
|
@@ -1005,7 +1005,7 @@ function it() {
|
|
|
1005
1005
|
return function(P, N, R) {
|
|
1006
1006
|
return N && A(P.prototype, N), R && A(P, R), P;
|
|
1007
1007
|
};
|
|
1008
|
-
})(), x = f(1), _ = u(x), q = f(2), $ = u(q),
|
|
1008
|
+
})(), x = f(1), _ = u(x), q = f(2), $ = u(q), j = f(3), d = u(j), Z = f(4), re = u(Z), Q = (function(A) {
|
|
1009
1009
|
function P() {
|
|
1010
1010
|
var N, R, m, F;
|
|
1011
1011
|
v(this, P);
|
|
@@ -1073,7 +1073,7 @@ function it() {
|
|
|
1073
1073
|
})(ce)), ce.exports;
|
|
1074
1074
|
}
|
|
1075
1075
|
var st = it();
|
|
1076
|
-
const ut = /* @__PURE__ */ He(st), ct = "
|
|
1076
|
+
const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", wt = "_AutoPanelLoader_1sp4s_110", Et = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ct = "_AutoPanelLabelText_1sp4s_135", Ot = "_AutoPanelError_1sp4s_142", Rt = "_AutoPanelErrorTitle_1sp4s_151", U = {
|
|
1077
1077
|
Signature: ct,
|
|
1078
1078
|
Main: lt,
|
|
1079
1079
|
MainAuto: ft,
|
|
@@ -1105,7 +1105,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1nnjp_1", lt = "_Main_1nnjp_
|
|
|
1105
1105
|
// Base props
|
|
1106
1106
|
...o
|
|
1107
1107
|
}) => {
|
|
1108
|
-
const c = xe(null), s = xe(!1), [f, u] = oe(null), [l, v] = oe(a ? "manual" : "auto"), [y, b] = oe(""), [T, g] = oe(!1), { width: x = 0, height: _ = 0 } = Ne({ ref: c, box: "border-box" }), q = l === "auto" ? e ? "auto-generated" : "auto-loading" : y ? "manual-drawn" : a ? "manual-stored" : "manual-blank", $ = e !== "" || T,
|
|
1108
|
+
const c = xe(null), s = xe(!1), [f, u] = oe(null), [l, v] = oe(a ? "manual" : "auto"), [y, b] = oe(""), [T, g] = oe(!1), { width: x = 0, height: _ = 0 } = Ne({ ref: c, box: "border-box" }), q = l === "auto" ? e ? "auto-generated" : "auto-loading" : y ? "manual-drawn" : a ? "manual-stored" : "manual-blank", $ = e !== "" || T, j = a || y, d = te(
|
|
1109
1109
|
(F) => {
|
|
1110
1110
|
!f || !x || !_ || !F || f.fromDataURL(F, {
|
|
1111
1111
|
width: +x.toFixed(),
|
|
@@ -1124,7 +1124,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1nnjp_1", lt = "_Main_1nnjp_
|
|
|
1124
1124
|
}, []), A = te(() => {
|
|
1125
1125
|
v("manual");
|
|
1126
1126
|
}, []), P = te(() => {
|
|
1127
|
-
v("
|
|
1127
|
+
v("auto"), b(""), t("");
|
|
1128
1128
|
}, [t]), N = te(() => {
|
|
1129
1129
|
y && b("");
|
|
1130
1130
|
}, [y]), R = (F) => F.includes(q);
|
|
@@ -1203,6 +1203,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1nnjp_1", lt = "_Main_1nnjp_
|
|
|
1203
1203
|
ie,
|
|
1204
1204
|
{
|
|
1205
1205
|
blurAfterClick: !0,
|
|
1206
|
+
color: "link",
|
|
1206
1207
|
text: "Per Hand/Maus unterschreiben",
|
|
1207
1208
|
underlined: !0,
|
|
1208
1209
|
className: U.AutoPanelButton,
|
|
@@ -1210,7 +1211,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1nnjp_1", lt = "_Main_1nnjp_
|
|
|
1210
1211
|
}
|
|
1211
1212
|
)
|
|
1212
1213
|
] }) : /* @__PURE__ */ ee("div", { className: U.ManualPanel, children: [
|
|
1213
|
-
R(["manual-stored"]) ? /* @__PURE__ */ H("img", { width: x, height: _, alt: "signature", src:
|
|
1214
|
+
R(["manual-stored"]) ? /* @__PURE__ */ H("img", { width: x, height: _, alt: "signature", src: j }) : /* @__PURE__ */ H(
|
|
1214
1215
|
ut,
|
|
1215
1216
|
{
|
|
1216
1217
|
penColor: "#262626",
|
|
@@ -1,87 +1,91 @@
|
|
|
1
1
|
import { jsxs as S, jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import a from "clsx";
|
|
3
|
-
import { withControl as
|
|
4
|
-
import { Svg as
|
|
5
|
-
import '../../../assets/button-text-
|
|
6
|
-
ButtonText:
|
|
7
|
-
TextPrimary:
|
|
3
|
+
import { withControl as L, baseProps as m } from "../../../utils/functions/functions.util.js";
|
|
4
|
+
import { Svg as f } from "../../../utils/svg/svg.component.js";
|
|
5
|
+
import '../../../assets/button-text-NCcWZ-LB.css';const g = "_ButtonText_ruqqq_1", p = "_TextPrimary_ruqqq_10", M = "_TextSecondary_ruqqq_14", P = "_AccentPrimary_ruqqq_18", B = "_AccentSecondary_ruqqq_22", A = "_ThemePrimary_ruqqq_26", I = "_ThemeSecondary_ruqqq_30", R = "_Link_ruqqq_34", k = "_Left_ruqqq_38", C = "_Right_ruqqq_42", b = "_Icon_ruqqq_46", D = "_SM_ruqqq_50", G = "_MD_ruqqq_55", N = "_LG_ruqqq_60", U = "_Content_ruqqq_65", W = "_WithIcon_ruqqq_70", j = "_Light_ruqqq_96", v = "_Regular_ruqqq_100", F = "_Medium_ruqqq_104", $ = "_Bold_ruqqq_108", E = "_Underlined_ruqqq_112", t = {
|
|
6
|
+
ButtonText: g,
|
|
7
|
+
TextPrimary: p,
|
|
8
8
|
TextSecondary: M,
|
|
9
9
|
AccentPrimary: P,
|
|
10
10
|
AccentSecondary: B,
|
|
11
11
|
ThemePrimary: A,
|
|
12
|
-
ThemeSecondary:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
ThemeSecondary: I,
|
|
13
|
+
Link: R,
|
|
14
|
+
Left: k,
|
|
15
|
+
Right: C,
|
|
16
|
+
Icon: b,
|
|
17
|
+
SM: D,
|
|
18
|
+
MD: G,
|
|
18
19
|
LG: N,
|
|
19
20
|
Content: U,
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
WithIcon: W,
|
|
22
|
+
Light: j,
|
|
23
|
+
Regular: v,
|
|
22
24
|
Medium: F,
|
|
23
25
|
Bold: $,
|
|
24
|
-
Underlined:
|
|
25
|
-
},
|
|
26
|
-
text:
|
|
26
|
+
Underlined: E
|
|
27
|
+
}, Q = ({
|
|
28
|
+
text: i,
|
|
27
29
|
size: r = "md",
|
|
28
|
-
color:
|
|
30
|
+
color: e = "text-primary",
|
|
29
31
|
weight: n = "medium",
|
|
30
32
|
type: s = "button",
|
|
31
|
-
icon:
|
|
32
|
-
iconPosition:
|
|
33
|
-
underlined:
|
|
34
|
-
disabled:
|
|
35
|
-
preventDefault:
|
|
36
|
-
blurAfterClick:
|
|
37
|
-
onClick:
|
|
33
|
+
icon: c = null,
|
|
34
|
+
iconPosition: o = "left",
|
|
35
|
+
underlined: u = !1,
|
|
36
|
+
disabled: d = !1,
|
|
37
|
+
preventDefault: y = !1,
|
|
38
|
+
blurAfterClick: l = !1,
|
|
39
|
+
onClick: h = () => {
|
|
38
40
|
},
|
|
39
|
-
onFocus:
|
|
41
|
+
onFocus: x = () => {
|
|
40
42
|
},
|
|
41
|
-
onBlur:
|
|
43
|
+
onBlur: T = () => {
|
|
42
44
|
},
|
|
43
45
|
// Base props
|
|
44
|
-
...
|
|
46
|
+
...q
|
|
45
47
|
}) => /* @__PURE__ */ S(
|
|
46
48
|
"button",
|
|
47
49
|
{
|
|
48
|
-
"data-testid":
|
|
50
|
+
"data-testid": m(q, "data-testid", "button-text"),
|
|
49
51
|
type: s,
|
|
50
|
-
disabled:
|
|
51
|
-
className: a(
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
52
|
+
disabled: d,
|
|
53
|
+
className: a(t.ButtonText, m(q, "className"), {
|
|
54
|
+
[t.WithIcon]: !!c,
|
|
55
|
+
[t.Left]: o === "left",
|
|
56
|
+
[t.Right]: o === "right",
|
|
57
|
+
[t.SM]: r === "sm",
|
|
58
|
+
[t.MD]: r === "md",
|
|
59
|
+
[t.LG]: r === "lg",
|
|
60
|
+
[t.TextPrimary]: e === "text-primary",
|
|
61
|
+
[t.TextSecondary]: e === "text-secondary",
|
|
62
|
+
[t.AccentPrimary]: e === "accent-primary",
|
|
63
|
+
[t.AccentSecondary]: e === "accent-secondary",
|
|
64
|
+
[t.ThemePrimary]: e === "theme-primary",
|
|
65
|
+
[t.ThemeSecondary]: e === "theme-secondary",
|
|
66
|
+
[t.Link]: e === "link"
|
|
63
67
|
}),
|
|
64
|
-
onClick:
|
|
65
|
-
onFocus: () =>
|
|
66
|
-
onBlur: () =>
|
|
68
|
+
onClick: L(h, { prevent: y, blur: l }),
|
|
69
|
+
onFocus: () => x(),
|
|
70
|
+
onBlur: () => T(),
|
|
67
71
|
children: [
|
|
68
|
-
/* @__PURE__ */ _(
|
|
72
|
+
/* @__PURE__ */ _(f, { icon: c, className: t.Icon }),
|
|
69
73
|
/* @__PURE__ */ _(
|
|
70
74
|
"span",
|
|
71
75
|
{
|
|
72
|
-
className: a(
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
77
|
-
[
|
|
76
|
+
className: a(t.Content, {
|
|
77
|
+
[t.Light]: n === "light",
|
|
78
|
+
[t.Regular]: n === "regular",
|
|
79
|
+
[t.Medium]: n === "medium",
|
|
80
|
+
[t.Bold]: n === "bold",
|
|
81
|
+
[t.Underlined]: u
|
|
78
82
|
}),
|
|
79
|
-
children:
|
|
83
|
+
children: i
|
|
80
84
|
}
|
|
81
85
|
)
|
|
82
86
|
]
|
|
83
87
|
}
|
|
84
88
|
);
|
|
85
89
|
export {
|
|
86
|
-
|
|
90
|
+
Q as ButtonText
|
|
87
91
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as M } from "react";
|
|
3
3
|
import { useHover as N } from "usehooks-ts";
|
|
4
|
-
import
|
|
4
|
+
import p from "clsx";
|
|
5
5
|
import { FadeSlide as S } from "../../../animations/fade-slide/fade-slide.component.js";
|
|
6
6
|
import "../../primitives/box/box.component.js";
|
|
7
|
-
import { baseProps as
|
|
7
|
+
import { baseProps as _ } from "../../../utils/functions/functions.util.js";
|
|
8
8
|
import { Choice as v } from "../../primitives/choice/choice.component.js";
|
|
9
9
|
import { ErrorMessage as F } from "../../primitives/error-message/error-message.component.js";
|
|
10
10
|
import { HiddenInput as L } from "../../primitives/hidden-input/hidden-input.component.js";
|
|
11
11
|
import "lucide-react";
|
|
12
12
|
import { useControlInteraction as $ } from "../../utils/hooks/use-control-interaction/use-control-interaction.hook.js";
|
|
13
13
|
import { Converter as j } from "../../../utils/converter/converter.util.js";
|
|
14
|
-
import '../../../assets/checkbox-
|
|
14
|
+
import '../../../assets/checkbox-bwnjS9qO.css';const H = "_Checkbox_d6btg_1", I = "_Label_d6btg_6", P = "_Choice_d6btg_19", D = "_Content_d6btg_25", R = "_Body_d6btg_51", T = "_BodySmall_d6btg_56", q = "_ErrorMessage_d6btg_61", o = {
|
|
15
15
|
Checkbox: H,
|
|
16
16
|
Label: I,
|
|
17
17
|
Choice: P,
|
|
@@ -25,38 +25,38 @@ import '../../../assets/checkbox-BVxmXTx8.css';const H = "_Checkbox_1ueio_1", I
|
|
|
25
25
|
value: r = !1,
|
|
26
26
|
disabled: s = !1,
|
|
27
27
|
state: n = "idle",
|
|
28
|
-
onChange:
|
|
29
|
-
onFocus:
|
|
30
|
-
onBlur:
|
|
28
|
+
onChange: C,
|
|
29
|
+
onFocus: f,
|
|
30
|
+
onBlur: g,
|
|
31
31
|
// Checkbox props
|
|
32
32
|
iconSize: x = "md",
|
|
33
33
|
textSize: a = "body-small",
|
|
34
|
-
message:
|
|
34
|
+
message: l = "",
|
|
35
35
|
// PropsWithChildren
|
|
36
36
|
children: y,
|
|
37
37
|
// Base props
|
|
38
|
-
...
|
|
38
|
+
...m
|
|
39
39
|
}) => {
|
|
40
|
-
const
|
|
40
|
+
const d = M(null), k = N(d), { focused: i, emitChange: h, handleFocus: B, handleBlur: u } = $({
|
|
41
41
|
id: t,
|
|
42
42
|
disabled: s,
|
|
43
|
-
onChange:
|
|
44
|
-
onFocus:
|
|
45
|
-
onBlur:
|
|
43
|
+
onChange: C,
|
|
44
|
+
onFocus: f,
|
|
45
|
+
onBlur: g
|
|
46
46
|
});
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ b("div", { "data-testid": _(m, "data-testid", "checkbox"), className: p(o.Checkbox, _(m, "className")), children: [
|
|
48
|
+
/* @__PURE__ */ b(
|
|
49
49
|
"label",
|
|
50
50
|
{
|
|
51
51
|
"data-testid": "checkbox-label",
|
|
52
|
-
ref:
|
|
52
|
+
ref: d,
|
|
53
53
|
htmlFor: t,
|
|
54
54
|
className: o.Label,
|
|
55
55
|
onClick: (c) => {
|
|
56
|
-
|
|
56
|
+
i || (c.preventDefault(), h(!r, "mouse"));
|
|
57
57
|
},
|
|
58
58
|
onFocus: B,
|
|
59
|
-
onBlur:
|
|
59
|
+
onBlur: u,
|
|
60
60
|
children: [
|
|
61
61
|
/* @__PURE__ */ e(
|
|
62
62
|
L,
|
|
@@ -79,7 +79,7 @@ import '../../../assets/checkbox-BVxmXTx8.css';const H = "_Checkbox_1ueio_1", I
|
|
|
79
79
|
size: x,
|
|
80
80
|
state: n,
|
|
81
81
|
checked: r,
|
|
82
|
-
focused:
|
|
82
|
+
focused: i,
|
|
83
83
|
hovered: k,
|
|
84
84
|
disabled: s
|
|
85
85
|
}
|
|
@@ -87,7 +87,7 @@ import '../../../assets/checkbox-BVxmXTx8.css';const H = "_Checkbox_1ueio_1", I
|
|
|
87
87
|
/* @__PURE__ */ e(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
className:
|
|
90
|
+
className: p(o.Content, {
|
|
91
91
|
[o.Body]: a === "body",
|
|
92
92
|
[o.BodySmall]: a === "body-small"
|
|
93
93
|
}),
|
|
@@ -97,7 +97,7 @@ import '../../../assets/checkbox-BVxmXTx8.css';const H = "_Checkbox_1ueio_1", I
|
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
|
-
/* @__PURE__ */ e(S, { name: "text-message", condition: n === "error" && !!
|
|
100
|
+
/* @__PURE__ */ e(S, { name: "text-message", condition: n === "error" && !!l, children: /* @__PURE__ */ e(F, { text: l, className: o.ErrorMessage }) })
|
|
101
101
|
] });
|
|
102
102
|
};
|
|
103
103
|
export {
|
|
@@ -23,7 +23,7 @@ export type ControlLabelPosition = 'idle' | 'active';
|
|
|
23
23
|
export type ControlCaptionSize = Extract<FontSize, 'body-extra-small' | 'body-small' | 'body' | 'body-large'>;
|
|
24
24
|
export type ControlCaptionColor = Extract<FontColor, 'text-primary' | 'text-secondary' | 'accent-primary' | 'accent-secondary'>;
|
|
25
25
|
export type ControlButtonColor = 'primary' | 'secondary' | 'tertiary';
|
|
26
|
-
export type ControlButtonTypeColor = Extract<FontColor, 'text-primary' | 'text-secondary' | 'accent-primary' | 'accent-secondary' | 'theme-primary' | 'theme-secondary'>;
|
|
26
|
+
export type ControlButtonTypeColor = Extract<FontColor, 'text-primary' | 'text-secondary' | 'accent-primary' | 'accent-secondary' | 'theme-primary' | 'theme-secondary' | 'link'>;
|
|
27
27
|
export type ControlButtonSize = 'sm' | 'md' | 'lg';
|
|
28
28
|
export type ControlButtonType = 'submit' | 'reset' | 'button';
|
|
29
29
|
export type QuestionPath = string[];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._ButtonText_lje93_1{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);border-radius:var(--rm-ui-border-radius-sm)}._TextPrimary_lje93_10{color:var(--rm-ui-color-text-primary)}._TextSecondary_lje93_14{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_lje93_18{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_lje93_22{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_lje93_26{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_lje93_30{color:var(--rm-ui-color-theme-secondary)}._Left_lje93_34{flex-direction:row}._Right_lje93_38{flex-direction:row-reverse}._Icon_lje93_42{stroke-width:1.5}._SM_lje93_46 ._Icon_lje93_42{width:20px;height:20px}._MD_lje93_51 ._Icon_lje93_42{width:24px;height:24px}._LG_lje93_56 ._Icon_lje93_42{width:26px;height:26px}._SM_lje93_46 ._Content_lje93_61{font-size:var(--rm-ui-font-size-body-small);line-height:calc(var(--rm-ui-line-height-body-small) - var(--rm-ui-padding-xxs) * 2)}._MD_lje93_51 ._Content_lje93_61{font-size:var(--rm-ui-font-size-body);line-height:calc(var(--rm-ui-line-height-body) - var(--rm-ui-padding-xxs) * 2)}._LG_lje93_56 ._Content_lje93_61{font-size:var(--rm-ui-font-size-hl4);line-height:calc(var(--rm-ui-line-height-hl4) - var(--rm-ui-padding-xxs) * 2)}._Content_lje93_61{text-decoration:none}._Light_lje93_80{font-weight:var(--rm-ui-font-weight-light)}._Regular_lje93_84{font-weight:var(--rm-ui-font-weight-regular)}._Medium_lje93_88{font-weight:var(--rm-ui-font-weight-medium)}._Bold_lje93_92{font-weight:var(--rm-ui-font-weight-bold)}._Underlined_lje93_96{text-decoration:underline}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Checkbox_1ueio_1{display:flex;flex-direction:column}._Label_1ueio_6{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_1ueio_6:hover{cursor:pointer}._Choice_1ueio_19{position:relative;left:0;top:3px}._Content_1ueio_25{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._Content_1ueio_25 button,._Content_1ueio_25 span[role=button]{color:var(--rm-ui-color-link);outline-offset:2px;display:inline;margin:0;padding:0;border:0;background:none;font:inherit;line-height:inherit;color:inherit;text-decoration:underline;vertical-align:baseline;cursor:pointer}._Content_1ueio_25 button:hover,._Content_1ueio_25 span[role=button]:hover{cursor:pointer;text-decoration:underline}._Content_1ueio_25 button:focus-visible,._Content_1ueio_25 span[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus)}._Body_1ueio_58{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodySmall_1ueio_63{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ErrorMessage_1ueio_68{padding-top:var(--rm-ui-padding-xxs)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Signature_1nnjp_1{background-color:transparent}._Main_1nnjp_7{--title-height: 40px;--top-padding: calc(var(--rm-ui-padding-md) + var(--title-height));--horizontal-padding: var(--rm-ui-padding-md);overflow:hidden;position:relative;border:1px solid var(--rm-ui-grey-300);border-radius:var(--rm-ui-border-radius-sm)}._MainAuto_1nnjp_17{padding:var(--top-padding) var(--horizontal-padding) var(--rm-ui-padding-md)}._MainManual_1nnjp_21{padding:var(--top-padding) var(--horizontal-padding) var(--top-padding)}._Footer_1nnjp_27{margin-top:var(--rm-ui-padding-md);display:flex;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-md)}._Header_1nnjp_37{position:absolute;z-index:1;top:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md);display:flex}._HeaderTitle_1nnjp_46{font-weight:var(--rm-ui-font-weight-medium);text-align:center}._HeaderManualDraw_1nnjp_51{justify-content:flex-end}._HeaderNotManualDraw_1nnjp_55{justify-content:center}._HeaderReset_1nnjp_59{position:relative;z-index:1}._HeaderReset_1nnjp_59:hover{cursor:pointer!important}._ManualPanel_1nnjp_70{height:94px}._ManualPanel_1nnjp_70>canvas,._ManualPanel_1nnjp_70>img{position:absolute;top:0;left:0}._ManualPanelButton_1nnjp_81{position:absolute;z-index:1;bottom:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center}._AutoPanel_1nnjp_96{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}._AutoPanelImage_1nnjp_103{height:46px;max-width:100%;display:block}._AutoPanelLoader_1nnjp_109{height:134px;display:inline-flex;align-items:center;padding:var(--rm-ui-padding-xs)}._AutoPanelButton_1nnjp_116{margin:8px 0}._AutoPanelLabel_1nnjp_120{margin:var(--rm-ui-padding-xs) 0;display:flex;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xxs)}._AutoPanelLabelIcon_1nnjp_128{width:24px;height:24px;stroke:var(--rm-ui-color-success)}._AutoPanelLabelText_1nnjp_134{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}._AutoPanelError_1nnjp_141{height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs)}._AutoPanelErrorTitle_1nnjp_150{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}
|