@arthurzakharov/ui-kit 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-CqEciG1_.js +31 -0
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.d.ts +2 -0
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.js +34 -0
- package/dist/animations/animation-fade-grow/index.d.ts +1 -0
- package/dist/animations/animation-fade-grow/index.js +4 -0
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.d.ts +2 -0
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.js +33 -0
- package/dist/animations/animation-fade-scale/index.d.ts +1 -0
- package/dist/animations/animation-fade-scale/index.js +4 -0
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.d.ts +6 -0
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.js +33 -0
- package/dist/animations/animation-fade-slide/index.d.ts +1 -0
- package/dist/animations/animation-fade-slide/index.js +4 -0
- package/dist/animations/animation-rotate/animation-rotate.component.d.ts +8 -0
- package/dist/animations/animation-rotate/animation-rotate.component.js +38 -0
- package/dist/animations/animation-rotate/index.d.ts +1 -0
- package/dist/animations/animation-rotate/index.js +4 -0
- package/dist/animations/hook/index.d.ts +1 -0
- package/dist/animations/hook/index.js +4 -0
- package/dist/animations/hook/use-animation-lifecycle/index.d.ts +1 -0
- package/dist/animations/hook/use-animation-lifecycle/index.js +4 -0
- package/dist/animations/hook/use-animation-lifecycle/use-animation-lifecycle.hook.d.ts +12 -0
- package/dist/animations/hook/use-animation-lifecycle/use-animation-lifecycle.hook.js +31 -0
- package/dist/animations/utils/default-props.d.ts +5 -0
- package/dist/animations/utils/default-props.js +17 -0
- package/dist/animations/utils/index.d.ts +2 -0
- package/dist/animations/utils/index.js +4 -0
- package/dist/animations/utils/types.d.ts +15 -0
- package/dist/animations/utils/types.js +1 -0
- package/dist/assets/control-box-Dx-QKPgf.css +1 -0
- package/dist/assets/control-button-Tzg6F5Dp.css +1 -0
- package/dist/assets/control-button-card-Cb8_vJbQ.css +1 -0
- package/dist/assets/control-button-radio-BodzD0rU.css +1 -0
- package/dist/assets/control-button-text-BbE_5ebO.css +1 -0
- package/dist/assets/control-card-image-BYT3bzTE.css +1 -0
- package/dist/assets/control-card-text-Cvv3bL2p.css +1 -0
- package/dist/assets/control-checkbox-uLtXjmYN.css +1 -0
- package/dist/assets/control-choice-BAHN-VTm.css +1 -0
- package/dist/assets/control-dropdown-DaS5KsvG.css +1 -0
- package/dist/assets/control-error-message-CKgqmo1U.css +1 -0
- package/dist/assets/control-hidden-input-BhMdNmnP.css +1 -0
- package/dist/assets/control-input-nR0XQHHp.css +1 -0
- package/dist/assets/control-label-C8pjaWEU.css +1 -0
- package/dist/assets/control-radio-Bo1rvcg2.css +1 -0
- package/dist/assets/control-radio-label-CgZ-FNj0.css +1 -0
- package/dist/assets/control-radio-text-S7MEO4a2.css +1 -0
- package/dist/assets/control-status-DPNvkGlM.css +1 -0
- package/dist/assets/control-text-n-qi7e2Y.css +1 -0
- package/dist/assets/control-textarea-B6gWlJs3.css +1 -0
- package/dist/assets/data-protected-label-BN19_NZF.css +1 -0
- package/dist/assets/dialog-article-WnyHZI47.css +1 -0
- package/dist/assets/expenses-AU5q4idk.css +1 -0
- package/dist/assets/loader-DadlBlOF.css +1 -0
- package/dist/assets/main-DlyWXITA.css +1 -0
- package/dist/assets/message-block-DG1cePyB.css +1 -0
- package/dist/components/accordion-table/accordion-table.component.d.ts +9 -7
- package/dist/components/accordion-table/accordion-table.component.js +44 -41
- package/dist/components/bottom-bar/bottom-bar.component.js +2 -2
- package/dist/components/certifications/certifications.component.d.ts +6 -3
- package/dist/components/certifications/certifications.component.js +54 -46
- package/dist/components/data-protected-label/data-protected-label.component.d.ts +8 -3
- package/dist/components/data-protected-label/data-protected-label.component.js +31 -28
- package/dist/components/data-protected-label/index.d.ts +1 -0
- package/dist/components/data-protected-label/index.js +4 -0
- package/dist/components/dialog-article/dialog-article.component.d.ts +9 -3
- package/dist/components/dialog-article/dialog-article.component.js +51 -21
- package/dist/components/dialog-article/index.d.ts +1 -0
- package/dist/components/dialog-article/index.js +4 -0
- package/dist/components/expenses/expenses.component.d.ts +12 -7
- package/dist/components/expenses/expenses.component.js +26 -20
- package/dist/components/expenses/index.d.ts +1 -0
- package/dist/components/expenses/index.js +4 -0
- package/dist/components/flex/flex.component.d.ts +158 -158
- package/dist/components/footer/footer.component.d.ts +6 -3
- package/dist/components/footer/footer.component.js +39 -31
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/info-panel/info-panel.component.d.ts +6 -3
- package/dist/components/info-panel/info-panel.component.js +20 -12
- package/dist/components/information/index.d.ts +1 -1
- package/dist/components/information/information.component.d.ts +5 -4
- package/dist/components/information/information.component.js +21 -12
- package/dist/components/loader/index.d.ts +1 -1
- package/dist/components/loader/loader.component.d.ts +9 -5
- package/dist/components/loader/loader.component.js +42 -55
- package/dist/components/loader/loader.utils.d.ts +2 -0
- package/dist/components/loader/loader.utils.js +13 -0
- package/dist/components/main-attachment/main-attachment.component.js +2 -2
- package/dist/components/message/index.d.ts +1 -1
- package/dist/components/message/message.component.d.ts +6 -3
- package/dist/components/message/message.component.js +23 -22
- package/dist/components/message-block/index.d.ts +1 -0
- package/dist/components/message-block/index.js +4 -0
- package/dist/components/message-block/message-block.component.d.ts +7 -2
- package/dist/components/message-block/message-block.component.js +36 -18
- package/dist/components/not-found/not-found.component.d.ts +6 -3
- package/dist/components/not-found/not-found.component.js +35 -27
- package/dist/components/payment/components/glass/glass.component.js +1 -1
- package/dist/components/sidebar/components/step/step.component.d.ts +1 -1
- package/dist/components/sidebar/components/step/step.component.js +6 -6
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/sidebar/sidebar.component.js +9 -9
- package/dist/components/signature/index.d.ts +1 -1
- package/dist/components/signature/signature.component.d.ts +4 -4
- package/dist/components/signature/signature.component.js +255 -263
- package/dist/components/text/components/tag/tag.component.d.ts +316 -316
- package/dist/components/text/text.component.d.ts +316 -316
- package/dist/components/user-panel/user-panel.component.d.ts +6 -3
- package/dist/components/user-panel/user-panel.component.js +35 -27
- package/dist/components/warranty/warranty.component.d.ts +6 -3
- package/dist/components/warranty/warranty.component.js +26 -19
- package/dist/controls/control-box/control-box.component.d.ts +15 -0
- package/dist/controls/control-box/control-box.component.js +33 -0
- package/dist/controls/control-box/index.d.ts +2 -0
- package/dist/controls/control-box/index.js +4 -0
- package/dist/controls/control-button/control-button.component.d.ts +18 -0
- package/dist/controls/control-button/control-button.component.js +84 -0
- package/dist/controls/control-button/index.d.ts +2 -0
- package/dist/controls/control-button/index.js +4 -0
- package/dist/{components/control/components/button-card/button-card.component.d.ts → controls/control-button-card/control-button-card.component.d.ts} +4 -3
- package/dist/controls/control-button-card/control-button-card.component.js +65 -0
- package/dist/controls/control-button-card/index.d.ts +2 -0
- package/dist/controls/control-button-card/index.js +4 -0
- package/dist/controls/control-button-radio/control-button-radio.component.d.ts +19 -0
- package/dist/controls/control-button-radio/control-button-radio.component.js +69 -0
- package/dist/controls/control-button-radio/index.d.ts +2 -0
- package/dist/controls/control-button-radio/index.js +4 -0
- package/dist/controls/control-button-text/control-button-text.component.d.ts +20 -0
- package/dist/controls/control-button-text/control-button-text.component.js +87 -0
- package/dist/controls/control-button-text/index.d.ts +2 -0
- package/dist/controls/control-button-text/index.js +4 -0
- package/dist/controls/control-card-image/control-card-image.component.d.ts +8 -0
- package/dist/controls/control-card-image/control-card-image.component.js +53 -0
- package/dist/controls/control-card-image/index.d.ts +2 -0
- package/dist/controls/control-card-image/index.js +4 -0
- package/dist/controls/control-card-text/control-card-text.component.d.ts +7 -0
- package/dist/controls/control-card-text/control-card-text.component.js +48 -0
- package/dist/controls/control-card-text/index.d.ts +2 -0
- package/dist/controls/control-card-text/index.js +4 -0
- package/dist/controls/control-checkbox/control-checkbox.component.d.ts +11 -0
- package/dist/controls/control-checkbox/control-checkbox.component.js +96 -0
- package/dist/controls/control-checkbox/index.d.ts +2 -0
- package/dist/controls/control-checkbox/index.js +4 -0
- package/dist/controls/control-choice/control-choice.component.d.ts +12 -0
- package/dist/controls/control-choice/control-choice.component.js +64 -0
- package/dist/controls/control-choice/index.d.ts +2 -0
- package/dist/controls/control-choice/index.js +4 -0
- package/dist/{components/control/components/dropdown/dropdown.component.d.ts → controls/control-dropdown/control-dropdown.component.d.ts} +4 -3
- package/dist/controls/control-dropdown/control-dropdown.component.js +106 -0
- package/dist/controls/control-dropdown/index.d.ts +2 -0
- package/dist/controls/control-dropdown/index.js +4 -0
- package/dist/controls/control-error-message/control-error-message.component.d.ts +7 -0
- package/dist/controls/control-error-message/control-error-message.component.js +16 -0
- package/dist/controls/control-error-message/index.d.ts +1 -0
- package/dist/controls/control-error-message/index.js +4 -0
- package/dist/controls/control-hidden-input/control-hidden-input.component.d.ts +15 -0
- package/dist/controls/control-hidden-input/control-hidden-input.component.js +41 -0
- package/dist/controls/control-hidden-input/index.d.ts +2 -0
- package/dist/controls/control-hidden-input/index.js +4 -0
- package/dist/controls/control-input/control-input.component.d.ts +11 -0
- package/dist/controls/control-input/control-input.component.js +973 -0
- package/dist/controls/control-input/index.d.ts +2 -0
- package/dist/controls/control-input/index.js +4 -0
- package/dist/controls/control-label/control-label.component.d.ts +13 -0
- package/dist/controls/control-label/control-label.component.js +30 -0
- package/dist/controls/control-label/index.d.ts +1 -0
- package/dist/controls/control-label/index.js +4 -0
- package/dist/controls/control-radio/control-radio.component.d.ts +14 -0
- package/dist/controls/control-radio/control-radio.component.js +79 -0
- package/dist/controls/control-radio/index.d.ts +2 -0
- package/dist/controls/control-radio/index.js +4 -0
- package/dist/controls/control-radio-label/control-radio-label.component.d.ts +22 -0
- package/dist/controls/control-radio-label/control-radio-label.component.js +39 -0
- package/dist/controls/control-radio-label/index.d.ts +1 -0
- package/dist/controls/control-radio-label/index.js +4 -0
- package/dist/controls/control-radio-text/control-radio-text.component.d.ts +10 -0
- package/dist/controls/control-radio-text/control-radio-text.component.js +45 -0
- package/dist/controls/control-radio-text/index.d.ts +2 -0
- package/dist/controls/control-radio-text/index.js +4 -0
- package/dist/controls/control-status/control-status.component.d.ts +11 -0
- package/dist/controls/control-status/control-status.component.js +42 -0
- package/dist/controls/control-status/index.d.ts +1 -0
- package/dist/controls/control-status/index.js +4 -0
- package/dist/controls/control-text/control-text.component.d.ts +11 -0
- package/dist/controls/control-text/control-text.component.js +70 -0
- package/dist/controls/control-text/index.d.ts +2 -0
- package/dist/controls/control-text/index.js +4 -0
- package/dist/controls/control-textarea/control-textarea.component.d.ts +15 -0
- package/dist/controls/control-textarea/control-textarea.component.js +63 -0
- package/dist/controls/control-textarea/index.d.ts +1 -0
- package/dist/controls/control-textarea/index.js +4 -0
- package/dist/controls/hooks/index.d.ts +1 -0
- package/dist/controls/hooks/index.js +4 -0
- package/dist/controls/hooks/use-choice/index.d.ts +1 -0
- package/dist/controls/hooks/use-choice/index.js +4 -0
- package/dist/{components/control/hooks/useChoice/useChoice.hook.d.ts → controls/hooks/use-choice/use-choice.hook.d.ts} +2 -2
- package/dist/controls/utils/functions/index.d.ts +1 -0
- package/dist/controls/utils/functions/index.js +7 -0
- package/dist/controls/utils/index.d.ts +2 -0
- package/dist/controls/utils/index.js +7 -0
- package/dist/{components/control/control.types.d.ts → controls/utils/types.d.ts} +11 -3
- package/dist/main.d.ts +35 -13
- package/dist/main.js +101 -59
- package/dist/utils/functions/functions.util.d.ts +12 -2
- package/dist/utils/functions/functions.util.js +7 -3
- package/dist/utils/functions/index.js +5 -4
- package/dist/utils/svg/svg.component.d.ts +2 -2
- package/dist/utils/types.d.ts +6 -1
- package/package.json +6 -1
- package/dist/animations/animation.component.d.ts +0 -10
- package/dist/animations/animation.component.js +0 -13
- package/dist/animations/fade-grow/fade-grow.component.d.ts +0 -14
- package/dist/animations/fade-grow/fade-grow.component.js +0 -40
- package/dist/animations/fade-scale/fade-scale.component.d.ts +0 -14
- package/dist/animations/fade-scale/fade-scale.component.js +0 -40
- package/dist/animations/fade-slide/fade-slide.component.d.ts +0 -15
- package/dist/animations/fade-slide/fade-slide.component.js +0 -41
- package/dist/animations/rotate/rotate.component.d.ts +0 -18
- package/dist/animations/rotate/rotate.component.js +0 -43
- package/dist/assets/box-b_yPaNPs.css +0 -1
- package/dist/assets/button-4MJZ7yPE.css +0 -1
- package/dist/assets/button-text-CNXFsTky.css +0 -1
- package/dist/assets/choice-pCBafXqx.css +0 -1
- package/dist/assets/control-Dk23qyF8.css +0 -1
- package/dist/assets/data-protected-label-zRn9upL6.css +0 -1
- package/dist/assets/dialog-article-lpJC_c40.css +0 -1
- package/dist/assets/expenses-8eaHjdlH.css +0 -1
- package/dist/assets/fade-grow-B23oZuuD.css +0 -1
- package/dist/assets/hidden-input-DHJQHUKd.css +0 -1
- package/dist/assets/input-Cckwgcro.css +0 -1
- package/dist/assets/label-bo2ALC-X.css +0 -1
- package/dist/assets/loader-C0f3AvRU.css +0 -1
- package/dist/assets/main-BK_1RcKG.css +0 -1
- package/dist/assets/message-block-BVk5u9rO.css +0 -1
- package/dist/assets/radio-label-Bd5UiESO.css +0 -1
- package/dist/assets/radio-text-BI17l0wD.css +0 -1
- package/dist/assets/status-6MH80dkz.css +0 -1
- package/dist/components/control/components/box/box.component.d.ts +0 -10
- package/dist/components/control/components/box/box.component.js +0 -32
- package/dist/components/control/components/button/button.component.d.ts +0 -16
- package/dist/components/control/components/button/button.component.js +0 -82
- package/dist/components/control/components/button-card/button-card.component.js +0 -9
- package/dist/components/control/components/button-radio/button-radio.component.d.ts +0 -17
- package/dist/components/control/components/button-radio/button-radio.component.js +0 -7
- package/dist/components/control/components/button-text/button-text.component.d.ts +0 -18
- package/dist/components/control/components/button-text/button-text.component.js +0 -86
- package/dist/components/control/components/card-image/card-image.component.d.ts +0 -7
- package/dist/components/control/components/card-image/card-image.component.js +0 -7
- package/dist/components/control/components/card-text/card-text.component.d.ts +0 -6
- package/dist/components/control/components/card-text/card-text.component.js +0 -7
- package/dist/components/control/components/checkbox/checkbox.component.d.ts +0 -9
- package/dist/components/control/components/checkbox/checkbox.component.js +0 -8
- package/dist/components/control/components/choice/choice.component.d.ts +0 -10
- package/dist/components/control/components/choice/choice.component.js +0 -52
- package/dist/components/control/components/dropdown/dropdown.component.js +0 -11
- package/dist/components/control/components/hidden-input/hidden-input.component.d.ts +0 -12
- package/dist/components/control/components/hidden-input/hidden-input.component.js +0 -25
- package/dist/components/control/components/input/input.component.d.ts +0 -10
- package/dist/components/control/components/input/input.component.js +0 -7
- package/dist/components/control/components/label/label.component.d.ts +0 -7
- package/dist/components/control/components/label/label.component.js +0 -28
- package/dist/components/control/components/radio/radio.component.d.ts +0 -9
- package/dist/components/control/components/radio/radio.component.js +0 -7
- package/dist/components/control/components/radio-label/radio-label.component.d.ts +0 -17
- package/dist/components/control/components/radio-label/radio-label.component.js +0 -37
- package/dist/components/control/components/radio-text/radio-text.component.d.ts +0 -9
- package/dist/components/control/components/radio-text/radio-text.component.js +0 -29
- package/dist/components/control/components/status/status.component.d.ts +0 -6
- package/dist/components/control/components/status/status.component.js +0 -37
- package/dist/components/control/components/text/text.component.d.ts +0 -9
- package/dist/components/control/components/text/text.component.js +0 -8
- package/dist/components/control/components/textarea/textarea.component.d.ts +0 -9
- package/dist/components/control/components/textarea/textarea.component.js +0 -6
- package/dist/components/control/control.component.d.ts +0 -41
- package/dist/components/control/control.component.js +0 -14
- package/dist/control.component-B9Ao9mfl.js +0 -557
- package/dist/input.component-C5xcmnfu.js +0 -999
- /package/dist/{components/control/hooks/useChoice/useChoice.hook.js → controls/hooks/use-choice/use-choice.hook.js} +0 -0
- /package/dist/{components/control → controls}/utils/functions/functions.util.d.ts +0 -0
- /package/dist/{components/control → controls}/utils/functions/functions.util.js +0 -0
|
@@ -1,557 +0,0 @@
|
|
|
1
|
-
import { Box as oe } from "./components/control/components/box/box.component.js";
|
|
2
|
-
import { Button as te } from "./components/control/components/button/button.component.js";
|
|
3
|
-
import { jsx as e, jsxs as T } from "react/jsx-runtime";
|
|
4
|
-
import { useRef as A, useState as G, useEffect as U, useMemo as ne } from "react";
|
|
5
|
-
import { useHover as Y, useToggle as L, useBoolean as P, useResizeObserver as ae, useOnClickOutside as le } from "usehooks-ts";
|
|
6
|
-
import S from "clsx";
|
|
7
|
-
import { ButtonText as re } from "./components/control/components/button-text/button-text.component.js";
|
|
8
|
-
import { useChoice as Z } from "./components/control/hooks/useChoice/useChoice.hook.js";
|
|
9
|
-
import { getChoiceId as J, clickHasNode as ie } from "./components/control/utils/functions/functions.util.js";
|
|
10
|
-
import { Converter as ee } from "./utils/converter/converter.util.js";
|
|
11
|
-
import { Choice as se } from "./components/control/components/choice/choice.component.js";
|
|
12
|
-
import { ChevronDown as ce, Search as de } from "lucide-react";
|
|
13
|
-
import { HiddenInput as ue } from "./components/control/components/hidden-input/hidden-input.component.js";
|
|
14
|
-
import { I as he } from "./input.component-C5xcmnfu.js";
|
|
15
|
-
import { Label as Ce } from "./components/control/components/label/label.component.js";
|
|
16
|
-
import { RadioLabel as me } from "./components/control/components/radio-label/radio-label.component.js";
|
|
17
|
-
import { RadioText as pe } from "./components/control/components/radio-text/radio-text.component.js";
|
|
18
|
-
import { Status as _e } from "./components/control/components/status/status.component.js";
|
|
19
|
-
import { Animation as X } from "./animations/animation.component.js";
|
|
20
|
-
import { Svg as xe } from "./utils/svg/svg.component.js";
|
|
21
|
-
import './assets/control-Dk23qyF8.css';const be = "_ButtonCard_1qq7t_1", fe = "_ButtonCardIcon_1qq7t_10", Be = "_ButtonCardIconTop_1qq7t_14", ve = "_ButtonCardText_1qq7t_21", Te = "_ButtonCardIconLeft_1qq7t_25", z = {
|
|
22
|
-
ButtonCard: be,
|
|
23
|
-
ButtonCardIcon: fe,
|
|
24
|
-
ButtonCardIconTop: Be,
|
|
25
|
-
ButtonCardText: ve,
|
|
26
|
-
ButtonCardIconLeft: Te
|
|
27
|
-
}, we = (h) => {
|
|
28
|
-
const {
|
|
29
|
-
children: f,
|
|
30
|
-
onClick: p,
|
|
31
|
-
onFocus: _,
|
|
32
|
-
onBlur: a,
|
|
33
|
-
icon: o = null,
|
|
34
|
-
iconPosition: l = "top",
|
|
35
|
-
active: r = !1,
|
|
36
|
-
disabled: C = !1,
|
|
37
|
-
preventDefault: n = !1,
|
|
38
|
-
blurAfterClick: d = !1
|
|
39
|
-
} = h, x = A(null), c = Y(x), [u, i] = L(!1);
|
|
40
|
-
return /* @__PURE__ */ e(t.Box, { ref: x, checked: r || c, state: "idle", focused: u, children: /* @__PURE__ */ T(
|
|
41
|
-
"button",
|
|
42
|
-
{
|
|
43
|
-
type: "button",
|
|
44
|
-
disabled: C,
|
|
45
|
-
className: S(z.ButtonCard, {
|
|
46
|
-
[z.ButtonCardIconTop]: l === "top",
|
|
47
|
-
[z.ButtonCardIconLeft]: l === "left"
|
|
48
|
-
}),
|
|
49
|
-
onClick: (s) => {
|
|
50
|
-
n && s.preventDefault(), d && s.currentTarget.blur(), p?.call(null);
|
|
51
|
-
},
|
|
52
|
-
onFocus: () => {
|
|
53
|
-
i(), _?.call(null);
|
|
54
|
-
},
|
|
55
|
-
onBlur: () => {
|
|
56
|
-
i(), a?.call(null);
|
|
57
|
-
},
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ e(xe, { icon: o, className: z.ButtonCardIcon }),
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
t.RadioText,
|
|
62
|
-
{
|
|
63
|
-
oneLine: !0,
|
|
64
|
-
size: "lg",
|
|
65
|
-
checked: r,
|
|
66
|
-
color: C ? "secondary" : "primary",
|
|
67
|
-
className: z.ButtonCardText,
|
|
68
|
-
children: f
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
) });
|
|
74
|
-
}, ge = "_ButtonRadio_1rilo_1", Re = "_ButtonRadioRow_1rilo_14", De = "_ButtonRadioWrap_1rilo_23", Ie = "_ButtonRadioContent_1rilo_32", Ne = "_ButtonRadioText_1rilo_42", ke = "_ButtonRadioHint_1rilo_50", R = {
|
|
75
|
-
ButtonRadio: ge,
|
|
76
|
-
ButtonRadioRow: Re,
|
|
77
|
-
ButtonRadioWrap: De,
|
|
78
|
-
ButtonRadioContent: Ie,
|
|
79
|
-
ButtonRadioText: Ne,
|
|
80
|
-
ButtonRadioHint: ke
|
|
81
|
-
}, ye = (h) => {
|
|
82
|
-
const {
|
|
83
|
-
children: f,
|
|
84
|
-
onClick: p,
|
|
85
|
-
onFocus: _,
|
|
86
|
-
onBlur: a,
|
|
87
|
-
info: o,
|
|
88
|
-
active: l = !1,
|
|
89
|
-
disabled: r = !1,
|
|
90
|
-
preventDefault: C = !1,
|
|
91
|
-
blurAfterClick: n = !1
|
|
92
|
-
} = h, d = A(null), x = Y(d), [c, u] = L(!1);
|
|
93
|
-
return /* @__PURE__ */ e(t.Box, { ref: d, checked: l || x, state: "idle", focused: c, children: /* @__PURE__ */ e(
|
|
94
|
-
"button",
|
|
95
|
-
{
|
|
96
|
-
type: "button",
|
|
97
|
-
disabled: r,
|
|
98
|
-
className: R.ButtonRadio,
|
|
99
|
-
onClick: (i) => {
|
|
100
|
-
C && i.preventDefault(), n && i.currentTarget.blur(), p?.call(null);
|
|
101
|
-
},
|
|
102
|
-
onFocus: () => {
|
|
103
|
-
u(), _?.call(null);
|
|
104
|
-
},
|
|
105
|
-
onBlur: () => {
|
|
106
|
-
u(), a?.call(null);
|
|
107
|
-
},
|
|
108
|
-
children: /* @__PURE__ */ T("div", { className: R.ButtonRadioWrap, children: [
|
|
109
|
-
/* @__PURE__ */ e(t.Status, { state: l ? "success" : "idle" }),
|
|
110
|
-
/* @__PURE__ */ T("div", { className: R.ButtonRadioContent, children: [
|
|
111
|
-
/* @__PURE__ */ T("div", { className: R.ButtonRadioRow, children: [
|
|
112
|
-
/* @__PURE__ */ e(t.RadioText, { oneLine: !0, size: "lg", checked: l, color: r ? "secondary" : "primary", children: f }),
|
|
113
|
-
o?.text ? /* @__PURE__ */ e("span", { className: R.ButtonRadioText, children: o.text }) : null
|
|
114
|
-
] }),
|
|
115
|
-
(o?.hintLeft || o?.hintRight) && /* @__PURE__ */ T("div", { className: R.ButtonRadioRow, children: [
|
|
116
|
-
/* @__PURE__ */ e("span", { className: R.ButtonRadioHint, children: o.hintLeft }),
|
|
117
|
-
/* @__PURE__ */ e("span", { className: R.ButtonRadioHint, children: o.hintRight })
|
|
118
|
-
] })
|
|
119
|
-
] })
|
|
120
|
-
] })
|
|
121
|
-
}
|
|
122
|
-
) });
|
|
123
|
-
}, Le = "_CardImage_dw1xq_1", Se = "_CardImageContent_dw1xq_13", ze = "_CardImageTop_dw1xq_27", He = "_CardImageWrap_dw1xq_32", Fe = "_CardImageBottom_dw1xq_43", H = {
|
|
124
|
-
CardImage: Le,
|
|
125
|
-
CardImageContent: Se,
|
|
126
|
-
CardImageTop: ze,
|
|
127
|
-
CardImageWrap: He,
|
|
128
|
-
CardImageBottom: Fe
|
|
129
|
-
}, Ae = (h) => {
|
|
130
|
-
const { sprite: f, choices: p, state: _ = "idle", id: a, value: o, disabled: l, onChange: r } = h, { type: C, onChoiceChange: n } = Z(o, a, r);
|
|
131
|
-
return /* @__PURE__ */ e("div", { className: H.CardImage, children: p.map((d, x, c) => {
|
|
132
|
-
const u = J(a, d.value, x);
|
|
133
|
-
return /* @__PURE__ */ e(
|
|
134
|
-
t.RadioLabel,
|
|
135
|
-
{
|
|
136
|
-
id: u,
|
|
137
|
-
value: o,
|
|
138
|
-
state: _,
|
|
139
|
-
choice: d,
|
|
140
|
-
choices: c,
|
|
141
|
-
children: ({ focused: i, hovered: s, checked: b, state: w }) => /* @__PURE__ */ e(t.Box, { state: w, checked: b, focused: i, children: /* @__PURE__ */ T("div", { className: H.CardImageContent, children: [
|
|
142
|
-
/* @__PURE__ */ e(
|
|
143
|
-
t.HiddenInput,
|
|
144
|
-
{
|
|
145
|
-
type: C,
|
|
146
|
-
id: u,
|
|
147
|
-
name: a,
|
|
148
|
-
value: d.value,
|
|
149
|
-
checked: b,
|
|
150
|
-
disabled: l,
|
|
151
|
-
onChange: () => n(d.value)
|
|
152
|
-
}
|
|
153
|
-
),
|
|
154
|
-
/* @__PURE__ */ e("div", { className: H.CardImageTop, children: /* @__PURE__ */ e(
|
|
155
|
-
"div",
|
|
156
|
-
{
|
|
157
|
-
"data-image": d.icon,
|
|
158
|
-
style: { backgroundImage: `url(${f})` },
|
|
159
|
-
className: H.CardImageWrap
|
|
160
|
-
}
|
|
161
|
-
) }),
|
|
162
|
-
/* @__PURE__ */ T("div", { className: H.CardImageBottom, children: [
|
|
163
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
164
|
-
t.Choice,
|
|
165
|
-
{
|
|
166
|
-
type: C,
|
|
167
|
-
state: w,
|
|
168
|
-
checked: b,
|
|
169
|
-
focused: i,
|
|
170
|
-
hovered: s,
|
|
171
|
-
disabled: l
|
|
172
|
-
}
|
|
173
|
-
) }),
|
|
174
|
-
/* @__PURE__ */ e(t.RadioText, { size: "md", checked: b, children: d.label })
|
|
175
|
-
] })
|
|
176
|
-
] }) })
|
|
177
|
-
},
|
|
178
|
-
u
|
|
179
|
-
);
|
|
180
|
-
}) });
|
|
181
|
-
}, $e = "_CardText_1eht8_1", qe = "_CardTextLabel_1eht8_9", Oe = "_CardTextChoice_1eht8_24", j = {
|
|
182
|
-
CardText: $e,
|
|
183
|
-
CardTextLabel: qe,
|
|
184
|
-
CardTextChoice: Oe
|
|
185
|
-
}, We = (h) => {
|
|
186
|
-
const { choices: f, state: p = "idle", id: _, value: a, disabled: o = !1, onChange: l } = h, { type: r, onChoiceChange: C } = Z(a, _, l);
|
|
187
|
-
return /* @__PURE__ */ e("div", { className: j.CardText, children: f.map((n, d, x) => {
|
|
188
|
-
const c = J(_, n.value, d);
|
|
189
|
-
return /* @__PURE__ */ e(
|
|
190
|
-
t.RadioLabel,
|
|
191
|
-
{
|
|
192
|
-
id: c,
|
|
193
|
-
value: a,
|
|
194
|
-
state: p,
|
|
195
|
-
choice: n,
|
|
196
|
-
choices: x,
|
|
197
|
-
children: ({ focused: u, hovered: i, checked: s, state: b }) => /* @__PURE__ */ e(t.Box, { state: b, checked: s, focused: u, children: /* @__PURE__ */ T("div", { className: j.CardTextLabel, children: [
|
|
198
|
-
/* @__PURE__ */ e(
|
|
199
|
-
t.HiddenInput,
|
|
200
|
-
{
|
|
201
|
-
type: r,
|
|
202
|
-
id: c,
|
|
203
|
-
name: _,
|
|
204
|
-
value: n.value,
|
|
205
|
-
checked: s,
|
|
206
|
-
disabled: o,
|
|
207
|
-
onChange: (w, B) => C(n.value, B)
|
|
208
|
-
}
|
|
209
|
-
),
|
|
210
|
-
/* @__PURE__ */ e("div", { className: j.CardTextChoice, children: /* @__PURE__ */ e(
|
|
211
|
-
t.Choice,
|
|
212
|
-
{
|
|
213
|
-
type: r,
|
|
214
|
-
state: b,
|
|
215
|
-
checked: s,
|
|
216
|
-
focused: u,
|
|
217
|
-
hovered: i,
|
|
218
|
-
disabled: o
|
|
219
|
-
}
|
|
220
|
-
) }),
|
|
221
|
-
/* @__PURE__ */ e(t.RadioText, { size: "lg", checked: s, children: n.label })
|
|
222
|
-
] }) })
|
|
223
|
-
},
|
|
224
|
-
c
|
|
225
|
-
);
|
|
226
|
-
}) });
|
|
227
|
-
}, Pe = "_Checkbox_1ez0v_1", Ve = "_CheckboxChoice_1ez0v_14", Me = "_CheckboxContent_1ez0v_20", Ee = "_CheckboxContentTextBody_1ez0v_39", Ge = "_CheckboxContentTextBodySmall_1ez0v_44", F = {
|
|
228
|
-
Checkbox: Pe,
|
|
229
|
-
CheckboxChoice: Ve,
|
|
230
|
-
CheckboxContent: Me,
|
|
231
|
-
CheckboxContentTextBody: Ee,
|
|
232
|
-
CheckboxContentTextBodySmall: Ge
|
|
233
|
-
}, je = (h) => {
|
|
234
|
-
const {
|
|
235
|
-
children: f,
|
|
236
|
-
state: p = "idle",
|
|
237
|
-
icon: _ = "md",
|
|
238
|
-
text: a = "body-small",
|
|
239
|
-
id: o,
|
|
240
|
-
value: l,
|
|
241
|
-
disabled: r = !1,
|
|
242
|
-
onChange: C,
|
|
243
|
-
onFocus: n,
|
|
244
|
-
onBlur: d
|
|
245
|
-
} = h, [x, c] = L(!1), [u, i] = L(!1), s = (I) => {
|
|
246
|
-
r || x || (I.preventDefault(), C(!l, o));
|
|
247
|
-
}, b = (I) => {
|
|
248
|
-
r || (I.stopPropagation(), C(!l, o));
|
|
249
|
-
}, w = () => {
|
|
250
|
-
r || (c(), n?.call(null, o));
|
|
251
|
-
}, B = () => {
|
|
252
|
-
r || (c(), d?.call(null, o));
|
|
253
|
-
};
|
|
254
|
-
return /* @__PURE__ */ T(
|
|
255
|
-
"label",
|
|
256
|
-
{
|
|
257
|
-
htmlFor: o,
|
|
258
|
-
className: F.Checkbox,
|
|
259
|
-
onClick: s,
|
|
260
|
-
onFocus: w,
|
|
261
|
-
onBlur: B,
|
|
262
|
-
onMouseEnter: () => i(),
|
|
263
|
-
onMouseLeave: () => i(),
|
|
264
|
-
children: [
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
-
t.HiddenInput,
|
|
267
|
-
{
|
|
268
|
-
type: "checkbox",
|
|
269
|
-
id: o,
|
|
270
|
-
name: o,
|
|
271
|
-
value: ee.Boolean.ToBooleanString(l),
|
|
272
|
-
checked: l,
|
|
273
|
-
disabled: r,
|
|
274
|
-
onChange: b
|
|
275
|
-
}
|
|
276
|
-
),
|
|
277
|
-
/* @__PURE__ */ e("div", { className: F.CheckboxChoice, children: /* @__PURE__ */ e(
|
|
278
|
-
t.Choice,
|
|
279
|
-
{
|
|
280
|
-
type: "checkbox",
|
|
281
|
-
size: _,
|
|
282
|
-
state: p,
|
|
283
|
-
checked: l,
|
|
284
|
-
focused: x,
|
|
285
|
-
hovered: u,
|
|
286
|
-
disabled: r
|
|
287
|
-
}
|
|
288
|
-
) }),
|
|
289
|
-
/* @__PURE__ */ e(
|
|
290
|
-
"div",
|
|
291
|
-
{
|
|
292
|
-
className: S(F.CheckboxContent, {
|
|
293
|
-
[F.CheckboxContentTextBody]: a === "body",
|
|
294
|
-
[F.CheckboxContentTextBodySmall]: a === "body-small"
|
|
295
|
-
}),
|
|
296
|
-
children: f
|
|
297
|
-
}
|
|
298
|
-
)
|
|
299
|
-
]
|
|
300
|
-
}
|
|
301
|
-
);
|
|
302
|
-
}, Ke = "_Dropdown_1bylm_1", Je = "_DropdownBorder_1bylm_17", Qe = "_DropdownContent_1bylm_28", Ue = "_DropdownChevron_1bylm_39", Xe = "_DropdownChevronWrap_1bylm_53", Ye = "_DropdownBox_1bylm_69", Ze = "_DropdownBoxVisible_1bylm_75", eo = "_DropdownBoxHidden_1bylm_79", oo = "_DropdownSearch_1bylm_83", to = "_DropdownSearchVisible_1bylm_89", no = "_DropdownSearchHidden_1bylm_93", ao = "_DropdownClose_1bylm_97", lo = "_DropdownInput_1bylm_106", ro = "_DropdownGlass_1bylm_120", io = "_DropdownChoices_1bylm_131", so = "_DropdownChoice_1bylm_131", co = "_DropdownChoiceNoResult_1bylm_151", v = {
|
|
303
|
-
Dropdown: Ke,
|
|
304
|
-
DropdownBorder: Je,
|
|
305
|
-
DropdownContent: Qe,
|
|
306
|
-
DropdownChevron: Ue,
|
|
307
|
-
DropdownChevronWrap: Xe,
|
|
308
|
-
DropdownBox: Ye,
|
|
309
|
-
DropdownBoxVisible: Ze,
|
|
310
|
-
DropdownBoxHidden: eo,
|
|
311
|
-
DropdownSearch: oo,
|
|
312
|
-
DropdownSearchVisible: to,
|
|
313
|
-
DropdownSearchHidden: no,
|
|
314
|
-
DropdownClose: ao,
|
|
315
|
-
DropdownInput: lo,
|
|
316
|
-
DropdownGlass: ro,
|
|
317
|
-
DropdownChoices: io,
|
|
318
|
-
DropdownChoice: so,
|
|
319
|
-
DropdownChoiceNoResult: co
|
|
320
|
-
}, uo = (h) => {
|
|
321
|
-
const { choices: f = [], value: p = [], isSearchHidden: _ = !1, multiple: a = !1, onChange: o, onOpen: l, onClose: r } = h, C = h.label || "", n = h.placeholder || "Wählen Sie Ihre private Krankenversicherung...", d = h.noResult || "Keine Versicherung gefunden.", x = h.closeButton || "Schließen", c = A(null), u = A(null), i = A(null), { value: s, setFalse: b, toggle: w } = P(!1), [B, I] = G(""), [N, $] = G({ width: 0, height: 0 }), [y, q] = G([]);
|
|
322
|
-
ae({
|
|
323
|
-
ref: u,
|
|
324
|
-
onResize: (m) => $({ width: m.width || 0, height: m.height || 0 })
|
|
325
|
-
}), le(u, (m) => {
|
|
326
|
-
ie(m, c) || (a && o(y), b());
|
|
327
|
-
}), U(() => q(Array.isArray(p) ? p : []), [p]), U(() => {
|
|
328
|
-
s && N.width && N.height ? (i.current?.focus(), l?.call(null, N.height, N.width)) : r?.call(null);
|
|
329
|
-
}, [s, N]);
|
|
330
|
-
const V = (m, k) => {
|
|
331
|
-
q((g) => g.some(({ value: E }) => E === m) ? g.filter(({ value: E }) => E !== m) : [...g, { value: m, label: k }]);
|
|
332
|
-
}, M = () => {
|
|
333
|
-
b(), o(y);
|
|
334
|
-
}, O = ne(
|
|
335
|
-
() => f.filter(({ label: m }) => m.toLowerCase().includes(B.toLowerCase())),
|
|
336
|
-
[B, f]
|
|
337
|
-
);
|
|
338
|
-
return /* @__PURE__ */ T("div", { className: v.Dropdown, children: [
|
|
339
|
-
/* @__PURE__ */ e(t.Box, { ref: c, onClick: w, children: /* @__PURE__ */ T("div", { className: v.DropdownBorder, children: [
|
|
340
|
-
/* @__PURE__ */ T("div", { className: v.DropdownContent, children: [
|
|
341
|
-
/* @__PURE__ */ e(t.Label, { position: "active", children: C }),
|
|
342
|
-
/* @__PURE__ */ e(t.RadioText, { size: "lg", checked: !0, oneLine: !0, children: ee.Answer.FromArrayToMultiple(y.map(({ label: m }) => m)) || n })
|
|
343
|
-
] }),
|
|
344
|
-
/* @__PURE__ */ e("div", { className: v.DropdownChevronWrap, children: /* @__PURE__ */ e(ce, { "data-open": s, className: v.DropdownChevron }) })
|
|
345
|
-
] }) }),
|
|
346
|
-
/* @__PURE__ */ e(t.Box, { ref: u, className: s ? v.DropdownBoxVisible : v.DropdownBoxHidden, children: /* @__PURE__ */ T("div", { className: v.DropdownBox, children: [
|
|
347
|
-
/* @__PURE__ */ T("div", { className: S(v.DropdownSearch, _ ? v.DropdownSearchHidden : v.DropdownSearchVisible), children: [
|
|
348
|
-
/* @__PURE__ */ e(
|
|
349
|
-
"input",
|
|
350
|
-
{
|
|
351
|
-
ref: i,
|
|
352
|
-
value: B,
|
|
353
|
-
type: "text",
|
|
354
|
-
className: v.DropdownInput,
|
|
355
|
-
onChange: (m) => I(m.target.value)
|
|
356
|
-
}
|
|
357
|
-
),
|
|
358
|
-
/* @__PURE__ */ e(de, { className: v.DropdownGlass })
|
|
359
|
-
] }),
|
|
360
|
-
/* @__PURE__ */ e("ul", { className: v.DropdownChoices, children: O.length ? O.map(({ value: m, label: k }, g) => /* @__PURE__ */ T(
|
|
361
|
-
"li",
|
|
362
|
-
{
|
|
363
|
-
className: v.DropdownChoice,
|
|
364
|
-
onClick: () => {
|
|
365
|
-
a ? V(m, k) : (b(), o([{ value: m, label: k }]));
|
|
366
|
-
},
|
|
367
|
-
children: [
|
|
368
|
-
a && /* @__PURE__ */ e(
|
|
369
|
-
t.Choice,
|
|
370
|
-
{
|
|
371
|
-
type: "checkbox",
|
|
372
|
-
checked: y.some((Q) => Q.value === m)
|
|
373
|
-
}
|
|
374
|
-
),
|
|
375
|
-
/* @__PURE__ */ e(t.RadioText, { size: "lg", checked: !1, children: k })
|
|
376
|
-
]
|
|
377
|
-
},
|
|
378
|
-
m + g
|
|
379
|
-
)) : /* @__PURE__ */ e("li", { className: S(v.DropdownChoice, v.DropdownChoiceNoResult), children: /* @__PURE__ */ e(t.RadioText, { size: "lg", checked: !1, children: d }) }) }),
|
|
380
|
-
a && /* @__PURE__ */ e("div", { className: v.DropdownClose, children: /* @__PURE__ */ e(t.Button, { color: "primary", size: "sm", type: "button", onClick: () => M(), children: x }) })
|
|
381
|
-
] }) })
|
|
382
|
-
] });
|
|
383
|
-
}, ho = "_Radio_1wc8m_1", Co = "_RadioOrientationHorizontal_1wc8m_5", mo = "_RadioOrientationVertical_1wc8m_10", po = "_RadioLabel_1wc8m_15", W = {
|
|
384
|
-
Radio: ho,
|
|
385
|
-
RadioOrientationHorizontal: Co,
|
|
386
|
-
RadioOrientationVertical: mo,
|
|
387
|
-
RadioLabel: po
|
|
388
|
-
}, _o = (h) => {
|
|
389
|
-
const { orientation: f, choices: p, state: _ = "idle", icon: a = "md", id: o, value: l, disabled: r = !1, onChange: C } = h;
|
|
390
|
-
return /* @__PURE__ */ e(
|
|
391
|
-
"div",
|
|
392
|
-
{
|
|
393
|
-
className: S(W.Radio, {
|
|
394
|
-
[W.RadioOrientationHorizontal]: f === "horizontal",
|
|
395
|
-
[W.RadioOrientationVertical]: f === "vertical"
|
|
396
|
-
}),
|
|
397
|
-
children: p.map((n, d, x) => {
|
|
398
|
-
const c = J(o, n.value, d);
|
|
399
|
-
return /* @__PURE__ */ e(
|
|
400
|
-
t.RadioLabel,
|
|
401
|
-
{
|
|
402
|
-
id: c,
|
|
403
|
-
value: l,
|
|
404
|
-
state: _,
|
|
405
|
-
choice: n,
|
|
406
|
-
choices: x,
|
|
407
|
-
children: ({ focused: u, hovered: i, checked: s, state: b }) => /* @__PURE__ */ T("div", { className: W.RadioLabel, children: [
|
|
408
|
-
/* @__PURE__ */ e(
|
|
409
|
-
t.Choice,
|
|
410
|
-
{
|
|
411
|
-
type: "radio",
|
|
412
|
-
size: a,
|
|
413
|
-
state: b,
|
|
414
|
-
checked: s,
|
|
415
|
-
focused: u,
|
|
416
|
-
hovered: i,
|
|
417
|
-
disabled: r
|
|
418
|
-
}
|
|
419
|
-
),
|
|
420
|
-
/* @__PURE__ */ e(
|
|
421
|
-
t.HiddenInput,
|
|
422
|
-
{
|
|
423
|
-
type: "radio",
|
|
424
|
-
id: c,
|
|
425
|
-
value: n.value,
|
|
426
|
-
name: o,
|
|
427
|
-
checked: s,
|
|
428
|
-
disabled: r,
|
|
429
|
-
onChange: () => C(n.value, o)
|
|
430
|
-
}
|
|
431
|
-
),
|
|
432
|
-
/* @__PURE__ */ e(t.RadioText, { size: "lg", checked: s, children: n.label })
|
|
433
|
-
] })
|
|
434
|
-
},
|
|
435
|
-
c
|
|
436
|
-
);
|
|
437
|
-
})
|
|
438
|
-
}
|
|
439
|
-
);
|
|
440
|
-
}, xo = "_Text_biltz_1", bo = "_TextContent_biltz_14", fo = "_TextLabel_biltz_26", Bo = "_TextLabelIdle_biltz_32", vo = "_TextLabelActive_biltz_37", To = "_TextPlaceholder_biltz_42", wo = "_TextPlaceholderText_biltz_49", go = "_TextErrorMessage_biltz_57", D = {
|
|
441
|
-
Text: xo,
|
|
442
|
-
TextContent: bo,
|
|
443
|
-
TextLabel: fo,
|
|
444
|
-
TextLabelIdle: Bo,
|
|
445
|
-
TextLabelActive: vo,
|
|
446
|
-
TextPlaceholder: To,
|
|
447
|
-
TextPlaceholderText: wo,
|
|
448
|
-
TextErrorMessage: go
|
|
449
|
-
}, Ro = (h) => {
|
|
450
|
-
const {
|
|
451
|
-
label: f,
|
|
452
|
-
message: p = "",
|
|
453
|
-
placeholder: _ = "",
|
|
454
|
-
dateMask: a = !1,
|
|
455
|
-
maxLength: o,
|
|
456
|
-
state: l = "idle",
|
|
457
|
-
type: r = "text",
|
|
458
|
-
id: C,
|
|
459
|
-
value: n,
|
|
460
|
-
disabled: d = !1,
|
|
461
|
-
onChange: x,
|
|
462
|
-
onFocus: c,
|
|
463
|
-
onBlur: u
|
|
464
|
-
} = h, { value: i, setTrue: s, setFalse: b } = P(!0), { value: w, setTrue: B, setFalse: I } = P(!0), [N, $] = L(), y = !i || !!n, q = !!_ && !i && !n && !w, V = !!p && l === "error", M = () => {
|
|
465
|
-
B(), b();
|
|
466
|
-
}, O = () => {
|
|
467
|
-
n || (I(), s());
|
|
468
|
-
}, m = (g) => {
|
|
469
|
-
n || b(), $(), c?.call(null, g);
|
|
470
|
-
}, k = (g) => {
|
|
471
|
-
n || s(), $(), u?.call(null, g);
|
|
472
|
-
};
|
|
473
|
-
return /* @__PURE__ */ T("div", { className: D.Text, children: [
|
|
474
|
-
/* @__PURE__ */ e(t.Box, { state: l, focused: N, children: /* @__PURE__ */ T("label", { htmlFor: C, className: D.TextContent, children: [
|
|
475
|
-
/* @__PURE__ */ e("div", { className: S(D.TextLabel, y ? D.TextLabelActive : D.TextLabelIdle), children: /* @__PURE__ */ e(t.Label, { position: i ? "idle" : "active", state: i ? "idle" : l, children: f }) }),
|
|
476
|
-
/* @__PURE__ */ e(X.FadeScale, { name: "text-placeholder", condition: q, className: D.TextPlaceholder, children: /* @__PURE__ */ e("span", { className: D.TextPlaceholderText, children: _ }) }),
|
|
477
|
-
/* @__PURE__ */ e(
|
|
478
|
-
t.Input,
|
|
479
|
-
{
|
|
480
|
-
dateMask: a,
|
|
481
|
-
maxLength: o,
|
|
482
|
-
disabled: d,
|
|
483
|
-
type: r,
|
|
484
|
-
id: C,
|
|
485
|
-
value: n,
|
|
486
|
-
onChange: x,
|
|
487
|
-
onAutofill: M,
|
|
488
|
-
onAutofillCancel: O,
|
|
489
|
-
onFocus: m,
|
|
490
|
-
onBlur: k
|
|
491
|
-
}
|
|
492
|
-
)
|
|
493
|
-
] }) }),
|
|
494
|
-
/* @__PURE__ */ e(X.FadeSlide, { flex: !0, name: "text-message", condition: V, children: /* @__PURE__ */ e("span", { className: D.TextErrorMessage, children: p }) })
|
|
495
|
-
] });
|
|
496
|
-
}, Do = "_Textarea_1eevb_1", K = {
|
|
497
|
-
Textarea: Do,
|
|
498
|
-
"autofill-start": "_autofill-start_1eevb_1",
|
|
499
|
-
"autofill-cancel": "_autofill-cancel_1eevb_1"
|
|
500
|
-
}, Io = (h) => {
|
|
501
|
-
const { state: f = "idle", placeholder: p = "", rows: _ = 5, id: a, value: o, disabled: l = !1, onChange: r, onFocus: C, onBlur: n } = h, { value: d, setTrue: x, setFalse: c } = P(!0), [u, i] = L(!1), s = (B) => {
|
|
502
|
-
B.animationName === K["autofill-start"] && c(), B.animationName === K["autofill-cancel"] && !o && x();
|
|
503
|
-
}, b = (B) => {
|
|
504
|
-
o || c(), i(), C?.call(null, B);
|
|
505
|
-
}, w = (B) => {
|
|
506
|
-
o || x(), i(), n?.call(null, B);
|
|
507
|
-
};
|
|
508
|
-
return /* @__PURE__ */ e(t.Box, { state: f, focused: u, children: /* @__PURE__ */ e(
|
|
509
|
-
"textarea",
|
|
510
|
-
{
|
|
511
|
-
"data-testid": "textarea",
|
|
512
|
-
"data-is-idle": d,
|
|
513
|
-
disabled: l,
|
|
514
|
-
id: a,
|
|
515
|
-
rows: _,
|
|
516
|
-
placeholder: p,
|
|
517
|
-
value: o,
|
|
518
|
-
className: K.Textarea,
|
|
519
|
-
onChange: (B) => r(B.target.value, a, "keyboard"),
|
|
520
|
-
onAnimationStart: s,
|
|
521
|
-
onFocus: () => b(a),
|
|
522
|
-
onBlur: () => w(a)
|
|
523
|
-
}
|
|
524
|
-
) });
|
|
525
|
-
}, t = {
|
|
526
|
-
Box: oe,
|
|
527
|
-
Button: te,
|
|
528
|
-
ButtonCard: we,
|
|
529
|
-
ButtonRadio: ye,
|
|
530
|
-
ButtonText: re,
|
|
531
|
-
CardImage: Ae,
|
|
532
|
-
CardText: We,
|
|
533
|
-
Checkbox: je,
|
|
534
|
-
Choice: se,
|
|
535
|
-
Dropdown: uo,
|
|
536
|
-
HiddenInput: ue,
|
|
537
|
-
Input: he,
|
|
538
|
-
Label: Ce,
|
|
539
|
-
Radio: _o,
|
|
540
|
-
RadioLabel: me,
|
|
541
|
-
RadioText: pe,
|
|
542
|
-
Status: _e,
|
|
543
|
-
Text: Ro,
|
|
544
|
-
Textarea: Io
|
|
545
|
-
};
|
|
546
|
-
export {
|
|
547
|
-
we as B,
|
|
548
|
-
t as C,
|
|
549
|
-
uo as D,
|
|
550
|
-
_o as R,
|
|
551
|
-
Ro as T,
|
|
552
|
-
ye as a,
|
|
553
|
-
Ae as b,
|
|
554
|
-
We as c,
|
|
555
|
-
je as d,
|
|
556
|
-
Io as e
|
|
557
|
-
};
|