@arthurzakharov/ui-kit 1.0.104 → 1.0.106
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/control-Cl7kWdan.css +1 -0
- package/dist/assets/information-DQPFVabC.css +1 -0
- package/dist/assets/{control-CbEqz7fh.css → main--usgu9xb.css} +1 -1
- package/dist/components/animation/animation.component.d.ts +2 -2
- package/dist/components/control/components/box/box.component.d.ts +1 -1
- package/dist/components/control/components/button/button.component.js +1 -1
- package/dist/components/control/components/button-card/button-card.component.d.ts +1 -1
- package/dist/components/control/components/button-card/button-card.component.js +2 -4
- package/dist/components/control/components/button-radio/button-radio.component.js +5 -57
- package/dist/components/control/components/button-text/button-text.component.d.ts +3 -2
- package/dist/components/control/components/button-text/button-text.component.js +21 -22
- package/dist/components/control/components/card-image/card-image.component.d.ts +1 -1
- package/dist/components/control/components/card-image/card-image.component.js +5 -57
- package/dist/components/control/components/card-text/card-text.component.d.ts +1 -1
- package/dist/components/control/components/card-text/card-text.component.js +5 -45
- package/dist/components/control/components/checkbox/checkbox.component.d.ts +2 -2
- package/dist/components/control/components/checkbox/checkbox.component.js +6 -83
- package/dist/components/control/components/dropdown/dropdown.component.d.ts +1 -1
- package/dist/components/control/components/dropdown/dropdown.component.js +9 -95
- package/dist/components/control/components/hidden-input/hidden-input.component.d.ts +1 -1
- package/dist/components/control/components/input/input.component.d.ts +1 -1
- package/dist/components/control/components/label/label.component.d.ts +1 -1
- package/dist/components/control/components/radio/radio.component.d.ts +2 -2
- package/dist/components/control/components/radio/radio.component.js +5 -55
- package/dist/components/control/components/radio-label/radio-label.component.d.ts +1 -1
- package/dist/components/control/components/status/status.component.d.ts +1 -1
- package/dist/components/control/components/status/status.component.js +6 -6
- package/dist/components/control/components/text/text.component.d.ts +2 -2
- package/dist/components/control/components/text/text.component.js +5 -47
- package/dist/components/control/components/textarea/textarea.component.d.ts +1 -1
- package/dist/components/control/components/textarea/textarea.component.js +4 -34
- package/dist/components/control/control.component.d.ts +19 -1
- package/dist/components/control/control.component.js +2 -10
- package/dist/components/control/hooks/useChoice/useChoice.hook.d.ts +1 -1
- package/dist/components/dialog/dialog.component.js +19208 -158
- package/dist/components/dialog-article/dialog-article.component.d.ts +3 -4
- package/dist/components/dialog-article/dialog-article.component.js +1 -1
- package/dist/components/footer/footer.component.d.ts +1 -2
- package/dist/components/header/header.component.d.ts +2 -3
- package/dist/components/information/information.component.d.ts +6 -0
- package/dist/components/information/information.component.js +19 -0
- package/dist/components/sidebar/components/step/step.component.d.ts +1 -1
- package/dist/components/sidebar/components/step/step.component.js +5 -25
- package/dist/components/sidebar/components/steps/steps.component.js +6 -8
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/sidebar/sidebar.component.js +6 -6
- package/dist/control.component-B7FJlGM2.js +539 -0
- package/dist/main.d.ts +5 -4
- package/dist/main.js +37 -35
- package/dist/step.component-DpshvxLJ.js +25 -0
- package/dist/utils/converter/{converter.js → converter.util.js} +1 -1
- package/dist/utils/time/{time.d.ts → time.util.d.ts} +1 -2
- package/package.json +4 -1
- package/dist/assets/button-radio-DEQGW1L-.css +0 -1
- package/dist/assets/card-image-DQ9c4G_r.css +0 -1
- package/dist/assets/card-text-fgHu9TyO.css +0 -1
- package/dist/assets/checkbox-BOAgvTCW.css +0 -1
- package/dist/assets/dropdown-DLXy_DVj.css +0 -1
- package/dist/assets/radio-BkD7BKk0.css +0 -1
- package/dist/assets/step-Bq2nontX.css +0 -1
- package/dist/assets/text-Dt0DeN-I.css +0 -1
- package/dist/assets/textarea-ByqzZaxm.css +0 -1
- package/dist/control.component-DdhOE4Q9.js +0 -103
- package/dist/index-Dvmr246i.js +0 -19054
- /package/dist/assets/{steps-DFGoeyXm.css → step-DFGoeyXm.css} +0 -0
- /package/dist/components/control/{types.d.ts → control.types.d.ts} +0 -0
- /package/dist/components/control/utils/{utils.d.ts → functions/functions.util.d.ts} +0 -0
- /package/dist/components/control/utils/{utils.js → functions/functions.util.js} +0 -0
- /package/dist/utils/converter/{converter.d.ts → converter.util.d.ts} +0 -0
- /package/dist/utils/time/{time.js → time.util.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._ButtonCard_b9zpw_1{--icon-size: 24px;flex-basis:100%;padding:var(--rm-ui-padding-md);outline:none;display:flex;flex-wrap:nowrap}._ButtonCard_b9zpw_1:disabled ._ButtonCardIcon_b9zpw_10{stroke:var(--rm-ui-color-text-secondary)}._ButtonCardIconTop_b9zpw_14{flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--rm-ui-padding-xxs)}._ButtonCardIconTop_b9zpw_14 ._ButtonCardText_b9zpw_21{flex-basis:100%}._ButtonCardIconLeft_b9zpw_25{flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-sm)}._ButtonCardIconLeft_b9zpw_25 ._ButtonCardText_b9zpw_21{flex-basis:calc(100% - var(--rm-ui-padding-sm) - var(--icon-size));justify-content:flex-start}._ButtonCardIcon_b9zpw_10{width:var(--icon-size);height:var(--icon-size);stroke:var(--rm-ui-color-text-primary);transition:stroke var(--rm-ui-amimation-speed-secondary) var(--rm-ui-amimation-cubic-primary)}._ButtonRadio_1rilo_1{--icon-size: 24px;--icon-gap: var(--rm-ui-padding-sm);flex-basis:100%;padding:var(--rm-ui-padding-md);outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start}._ButtonRadioRow_1rilo_14{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-sm)}._ButtonRadioWrap_1rilo_23{display:flex;flex-direction:row;flex-wrap:wrap;flex-grow:1;align-items:flex-start;justify-content:flex-start}._ButtonRadioContent_1rilo_32{margin-left:var(--icon-gap);flex-basis:calc(100% - var(--icon-size) - var(--icon-gap));display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._ButtonRadioText_1rilo_42{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-accent-primary);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);text-align:left}._ButtonRadioHint_1rilo_50{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)}._CardImage_dw1xq_1{--font-size: 12px;--line-height: 14px;--img-size: 110px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--rm-ui-padding-xs)}._CardImageContent_dw1xq_13{width:135px;height:130px;padding:6px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}._CardImageContent_dw1xq_13:hover{cursor:pointer}._CardImageTop_dw1xq_27{position:relative;flex-grow:1}._CardImageWrap_dw1xq_32{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:var(--img-size);height:var(--img-size);background-repeat:no-repeat;background-size:700%}._CardImageBottom_dw1xq_43{flex-basis:calc(var(--line-height) * 2);display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:var(--rm-ui-padding-xs)}._CardText_1eht8_1{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-sm)}._CardTextLabel_1eht8_9{position:relative;padding:var(--rm-ui-padding-md) var(--rm-ui-padding-sm);flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._CardTextLabel_1eht8_9:hover{cursor:pointer}._CardTextChoice_1eht8_24{display:flex;flex-direction:row;align-items:center;justify-content:center}._Checkbox_1ez0v_1{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Checkbox_1ez0v_1:hover{cursor:pointer}._CheckboxChoice_1ez0v_14{position:relative;left:0;top:3px}._CheckboxContent_1ez0v_20{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._CheckboxContent_1ez0v_20 button{color:var(--rm-ui-color-link);outline-offset:2px}._CheckboxContent_1ez0v_20 button:hover{cursor:pointer;text-decoration:underline}._CheckboxContent_1ez0v_20 button:focus-visible{outline-color:var(--rm-ui-color-focus)}._CheckboxContentTextBody_1ez0v_39{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._CheckboxContentTextBodySmall_1ez0v_44{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._Dropdown_1bylm_1{--transition-time: .2s;--under-chevron: linear-gradient(90deg, rgba(255, 255, 255, 0) -10%, rgba(255, 255, 255, .5411764706) 25%, #fff 50%);--border-radius: 3px;position:relative;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-primary);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._DropdownBorder_1bylm_17{position:relative;min-height:60px;flex-grow:1;display:flex;align-items:center;justify-content:flex-start;padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);overflow:hidden}._DropdownContent_1bylm_28{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}._DropdownBorder_1bylm_17:hover{cursor:pointer}._DropdownChevron_1bylm_39{width:24px;height:24px;transition:transform var(--transition-time) ease-out}._DropdownChevron_1bylm_39[data-open=false]{transform:rotate(0)}._DropdownChevron_1bylm_39[data-open=true]{transform:rotate(180deg)}._DropdownChevronWrap_1bylm_53{position:absolute;z-index:1;right:0;top:50%;transform:translateY(-50%);background:var(--under-chevron);border-radius:10px;width:80px;height:100%;padding-right:var(--rm-ui-padding-sm);display:flex;justify-content:flex-end;align-items:center}._DropdownBox_1bylm_69{flex-grow:1;border-radius:10px;background-color:var(--rm-ui-grey-50)}._DropdownBoxVisible_1bylm_75{display:block}._DropdownBoxHidden_1bylm_79{display:none}._DropdownSearch_1bylm_83{position:relative;border-bottom:1px var(--rm-ui-grey-300) solid;padding:var(--rm-ui-padding-sm)}._DropdownSearchVisible_1bylm_89{display:block}._DropdownSearchHidden_1bylm_93{display:none}._DropdownClose_1bylm_97{border-top:1px var(--rm-ui-grey-300) solid;padding:var(--rm-ui-padding-sm);display:flex;flex-direction:row;align-items:center;justify-content:flex-end}._DropdownInput_1bylm_106{width:100%;border-radius:10px;padding:var(--rm-ui-padding-xs) calc(var(--rm-ui-padding-sm) * 2 + 12px) var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);border:1px var(--rm-ui-grey-300) solid;box-sizing:border-box;font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary);outline-color:var(--rm-ui-color-accent-primary)}._DropdownGlass_1bylm_120{position:absolute;z-index:1;right:calc(var(--rm-ui-padding-sm) * 2);top:50%;transform:translateY(-50%);width:24px;height:24px;color:var(--rm-ui-grey-300)}._DropdownChoices_1bylm_131{max-height:228px;overflow-y:scroll;border-radius:10px}._DropdownChoice_1bylm_131{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-sm);padding:6px var(--rm-ui-padding-sm)}._DropdownChoice_1bylm_131:hover{cursor:pointer;background-color:#fff}._DropdownChoiceNoResult_1bylm_151{color:var(--rm-ui-grey-600);text-align:center}html[dir=rtl] ._DropdownGlass_1bylm_120{left:31px;right:initial}html[dir=rtl] ._DropdownChevronWrap_1bylm_53{left:19px;right:initial}._Radio_1wc8m_1{display:inline-flex}._RadioOrientationHorizontal_1wc8m_5{flex-direction:row;gap:var(--rm-ui-padding-lg)}._RadioOrientationVertical_1wc8m_10{flex-direction:column;gap:var(--rm-ui-padding-xxs)}._RadioLabel_1wc8m_15{position:relative;display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._RadioLabel_1wc8m_15:hover{cursor:pointer}._Text_1ble1_1{box-sizing:border-box;position:relative;flex-grow:1;height:58px;padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);display:flex;flex-direction:row;justify-content:stretch;align-items:flex-end}._Text_1ble1_1:hover{cursor:pointer}._TextLabel_1ble1_17{position:absolute;left:var(--rm-ui-padding-sm);transition:top .15s ease-out}._TextLabelIdle_1ble1_23{top:50%;transform:translateY(-50%)}._TextLabelActive_1ble1_28{top:var(--rm-ui-padding-xs);transform:translateY(0)}._Textarea_1eevb_1{resize:none;outline:none;box-sizing:border-box;width:100%;border:none;border-radius:10px;padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._Textarea_1eevb_1:hover{cursor:pointer}._Textarea_1eevb_1:disabled{opacity:.33}._Textarea_1eevb_1:disabled,._Textarea_1eevb_1:-webkit-autofill,._Textarea_1eevb_1:-webkit-autofill:hover,._Textarea_1eevb_1:-webkit-autofill:focus,._Textarea_1eevb_1:-webkit-autofill:active,._Textarea_1eevb_1:autofill,._Textarea_1eevb_1:autofill:hover,._Textarea_1eevb_1:autofill:focus,._Textarea_1eevb_1:autofill:active{background:transparent;transition:background 7200s ease-in-out 0s}._Textarea_1eevb_1:-webkit-autofill{animation-name:_autofill-start_1eevb_1;animation-duration:.1s;-webkit-text-fill-color:var(--rm-ui-grey-500)}._Textarea_1eevb_1:not(:-webkit-autofill){animation-name:_autofill-cancel_1eevb_1;animation-duration:.1s}@keyframes _autofill-start_1eevb_1{}@keyframes _autofill-cancel_1eevb_1{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Information_1qbj2_1{--icon: 24px;--gap: var(--rm-ui-padding-sm);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--gap);color:var(--rm-ui-color-text-primary);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._InformationAccent_1qbj2_16{color:var(--rm-ui-color-accent-primary)}._InformationIcon_1qbj2_21{position:relative;top:2px;left:0;width:var(--icon);height:var(--icon)}._InformationText_1qbj2_29{flex-basis:calc(100% - var(--icon) - var(--gap))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--rm-ui-body-bg);font-family:Lato,sans-serif;font-weight:var(--rm-ui-font-weight-regular);font-size:16px;line-height:24px;-webkit-hyphens:manual;hyphens:manual;white-space:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}h1,h2,h3,h4,h5,h6,b,strong{font-weight:var(--rm-ui-font-weight-medium)}h1{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}h2{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}h3{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}h4{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}h5,h6{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}a{text-decoration:none;color:inherit;border-radius:var(--rm-ui-border-radius-sm);outline:2px solid transparent}button,*[role=button]{border:none;border-radius:0;background-color:transparent;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;-webkit-hyphens:inherit;hyphens:inherit;white-space:inherit;outline-offset:-2px;outline:2px solid transparent}a:hover,button:hover,*[role=button]:hover{cursor:pointer}a:active,button:active,*[role=button]:active{outline:none}a:focus-visible,button:focus-visible,*[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus);outline-offset:-2px;transition:outline-color var(--rm-ui-amimation-speed-primary) ease-in-out;transition-delay:calc(var(--rm-ui-amimation-speed-primary) / 2)}.text-primary{color:var(--rm-ui-color-text-primary)}.text-secondary{color:var(--rm-ui-color-text-secondary)}.fw-light{font-weight:var(--rm-ui-font-weight-light)}.fw-regular{font-weight:var(--rm-ui-font-weight-regular)}.fw-medium{font-weight:var(--rm-ui-font-weight-medium)}.fw-bold{font-weight:var(--rm-ui-font-weight-bold)}:root{--rm-ui-padding-xxs: 4px;--rm-ui-padding-xs: 8px;--rm-ui-padding-sm: 12px;--rm-ui-padding-md: 16px;--rm-ui-padding-lg: 24px;--rm-ui-padding-xl: 32px;--rm-ui-padding-xxl: 40px;--rm-ui-padding-xxxl: 48px;--rm-ui-border-radius-sm: 8px;--rm-ui-border-radius-md: 12px;--rm-ui-border-radius-lg: 16px;--rm-ui-border-radius-xl: 24px;--rm-ui-font-size-body-extra-small: 12px;--rm-ui-line-height-body-extra-small: 16px;--rm-ui-font-size-body-small: 14px;--rm-ui-line-height-body-small: 20px;--rm-ui-font-size-body: 16px;--rm-ui-line-height-body: 24px;--rm-ui-font-size-body-large: 20px;--rm-ui-line-height-body-large: 30px;--rm-ui-font-size-hl5: 14px;--rm-ui-line-height-hl5: 22px;--rm-ui-font-size-hl4: 18px;--rm-ui-line-height-hl4: 24px;--rm-ui-font-size-hl3: 20px;--rm-ui-line-height-hl3: 30px;--rm-ui-font-size-hl2: 24px;--rm-ui-line-height-hl2: 32px;--rm-ui-font-size-hl1: 28px;--rm-ui-line-height-hl1: 36px;--rm-ui-font-weight-light: 300;--rm-ui-font-weight-regular: 400;--rm-ui-font-weight-medium: 700;--rm-ui-font-weight-bold: 900;--rm-ui-grey-950: #0a0a0a;--rm-ui-grey-900: #171717;--rm-ui-grey-800: #262626;--rm-ui-grey-700: #404040;--rm-ui-grey-600: #525252;--rm-ui-grey-500: #737373;--rm-ui-grey-400: #a3a3a3;--rm-ui-grey-300: #d4d4d4;--rm-ui-grey-200: #e5e5e5;--rm-ui-grey-100: #f5f5f5;--rm-ui-grey-50: #fafafa;--rm-ui-color-text-primary: var(--rm-ui-grey-800);--rm-ui-color-text-secondary: var(--rm-ui-grey-500);--rm-ui-color-accent-primary: #23bf96;--rm-ui-color-accent-secondary: #23bf96;--rm-ui-color-theme-primary: #302677;--rm-ui-color-theme-secondary: #302677;--rm-ui-color-action: #006cff;--rm-ui-color-inverted: #ffffff;--rm-ui-color-error: #dc2626;--rm-ui-color-success: #00b649;--rm-ui-color-focus: #ff8d02;--rm-ui-color-link: #ff8206;--rm-ui-body-color: #f0faff;--rm-ui-header-logo-height: 30px;--rm-ui-header-phone: #ff9900;--rm-ui-header-phone-size: 22px;--rm-ui-header-text: var(--rm-ui-color-text-primary);--rm-ui-header-check-icon: var(--rm-ui-color-text-primary);--rm-ui-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-message-success-primary: #29c667;--rm-ui-message-success-secondary: #f1fdf4;--rm-ui-message-question-primary: #a76000;--rm-ui-message-question-secondary: #fefce8;--rm-ui-message-error-primary: var(--rm-ui-color-error);--rm-ui-message-error-secondary: #fef3f3;--rm-ui-message-info-primary: #3289c4;--rm-ui-message-info-secondary: #f3f7fe;--rm-ui-payment-sidebar-bg: #f8fcff;--rm-ui-payment-text-blocks-gap: var(--rm-ui-padding-lg);--rm-ui-data-protected-label-icon: var(--rm-ui-next-btn-bg);--rm-ui-data-protected-label-text: var(--rm-ui-color-text-primary);--rm-ui-status-idle-color: #82868f;--rm-ui-status-success-color: var(--rm-ui-color-accent-primary);--rm-ui-status-error-color: var(--rm-ui-color-error);--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: #23bf96;--rm-ui-next-btn-bg-hover: #3adbb1;--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-sidebar-bg: #f6f6f6;--rm-ui-sidebar-line-color: var(--rm-ui-grey-200);--rm-ui-loading-screen-height: 400px;--rm-ui-body-bg: #
|
|
1
|
+
*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--rm-ui-body-bg);font-family:Lato,sans-serif;font-weight:var(--rm-ui-font-weight-regular);font-size:16px;line-height:24px;-webkit-hyphens:manual;hyphens:manual;white-space:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}h1,h2,h3,h4,h5,h6,b,strong{font-weight:var(--rm-ui-font-weight-medium)}h1{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}h2{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}h3{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}h4{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}h5,h6{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}a{text-decoration:none;color:inherit;border-radius:var(--rm-ui-border-radius-sm);outline:2px solid transparent}button,*[role=button]{border:none;border-radius:0;background-color:transparent;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;-webkit-hyphens:inherit;hyphens:inherit;white-space:inherit;outline-offset:-2px;outline:2px solid transparent}a:hover,button:hover,*[role=button]:hover{cursor:pointer}a:active,button:active,*[role=button]:active{outline:none}a:focus-visible,button:focus-visible,*[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus);outline-offset:-2px;transition:outline-color var(--rm-ui-amimation-speed-primary) ease-in-out;transition-delay:calc(var(--rm-ui-amimation-speed-primary) / 2)}.text-primary{color:var(--rm-ui-color-text-primary)}.text-secondary{color:var(--rm-ui-color-text-secondary)}.fw-light{font-weight:var(--rm-ui-font-weight-light)}.fw-regular{font-weight:var(--rm-ui-font-weight-regular)}.fw-medium{font-weight:var(--rm-ui-font-weight-medium)}.fw-bold{font-weight:var(--rm-ui-font-weight-bold)}:root{--rm-ui-padding-xxs: 4px;--rm-ui-padding-xs: 8px;--rm-ui-padding-sm: 12px;--rm-ui-padding-md: 16px;--rm-ui-padding-lg: 24px;--rm-ui-padding-xl: 32px;--rm-ui-padding-xxl: 40px;--rm-ui-padding-xxxl: 48px;--rm-ui-border-radius-sm: 8px;--rm-ui-border-radius-md: 12px;--rm-ui-border-radius-lg: 16px;--rm-ui-border-radius-xl: 24px;--rm-ui-font-size-body-extra-small: 12px;--rm-ui-line-height-body-extra-small: 16px;--rm-ui-font-size-body-small: 14px;--rm-ui-line-height-body-small: 20px;--rm-ui-font-size-body: 16px;--rm-ui-line-height-body: 24px;--rm-ui-font-size-body-large: 20px;--rm-ui-line-height-body-large: 30px;--rm-ui-font-size-hl5: 14px;--rm-ui-line-height-hl5: 22px;--rm-ui-font-size-hl4: 18px;--rm-ui-line-height-hl4: 24px;--rm-ui-font-size-hl3: 20px;--rm-ui-line-height-hl3: 30px;--rm-ui-font-size-hl2: 24px;--rm-ui-line-height-hl2: 32px;--rm-ui-font-size-hl1: 28px;--rm-ui-line-height-hl1: 36px;--rm-ui-font-weight-light: 300;--rm-ui-font-weight-regular: 400;--rm-ui-font-weight-medium: 700;--rm-ui-font-weight-bold: 900;--rm-ui-grey-950: #0a0a0a;--rm-ui-grey-900: #171717;--rm-ui-grey-800: #262626;--rm-ui-grey-700: #404040;--rm-ui-grey-600: #525252;--rm-ui-grey-500: #737373;--rm-ui-grey-400: #a3a3a3;--rm-ui-grey-300: #d4d4d4;--rm-ui-grey-200: #e5e5e5;--rm-ui-grey-100: #f5f5f5;--rm-ui-grey-50: #fafafa;--rm-ui-color-text-primary: var(--rm-ui-grey-800);--rm-ui-color-text-secondary: var(--rm-ui-grey-500);--rm-ui-color-accent-primary: #23bf96;--rm-ui-color-accent-secondary: #23bf96;--rm-ui-color-theme-primary: #302677;--rm-ui-color-theme-secondary: #302677;--rm-ui-color-action: #006cff;--rm-ui-color-inverted: #ffffff;--rm-ui-color-error: #dc2626;--rm-ui-color-success: #00b649;--rm-ui-color-focus: #ff8d02;--rm-ui-color-link: #ff8206;--rm-ui-body-color: #f0faff;--rm-ui-header-logo-height: 30px;--rm-ui-header-phone: #ff9900;--rm-ui-header-phone-size: 22px;--rm-ui-header-text: var(--rm-ui-color-text-primary);--rm-ui-header-check-icon: var(--rm-ui-color-text-primary);--rm-ui-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-message-success-primary: #29c667;--rm-ui-message-success-secondary: #f1fdf4;--rm-ui-message-question-primary: #a76000;--rm-ui-message-question-secondary: #fefce8;--rm-ui-message-error-primary: var(--rm-ui-color-error);--rm-ui-message-error-secondary: #fef3f3;--rm-ui-message-info-primary: #3289c4;--rm-ui-message-info-secondary: #f3f7fe;--rm-ui-payment-sidebar-bg: #f8fcff;--rm-ui-payment-text-blocks-gap: var(--rm-ui-padding-lg);--rm-ui-data-protected-label-icon: var(--rm-ui-next-btn-bg);--rm-ui-data-protected-label-text: var(--rm-ui-color-text-primary);--rm-ui-status-idle-color: #82868f;--rm-ui-status-success-color: var(--rm-ui-color-accent-primary);--rm-ui-status-error-color: var(--rm-ui-color-error);--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: #23bf96;--rm-ui-next-btn-bg-hover: #3adbb1;--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-sidebar-bg: #f6f6f6;--rm-ui-sidebar-line-color: var(--rm-ui-grey-200);--rm-ui-loading-screen-height: 400px;--rm-ui-body-bg: #f9fcff;--rm-ui-content-bg: #ffffff;--rm-ui-amimation-speed-primary: .15s;--rm-ui-amimation-speed-secondary: .3s;--rm-ui-amimation-speed-tertiary: .4s;--rm-ui-amimation-cubic-primary: cubic-bezier(.3, 0, 0, 1);--rm-ui-amimation-cubic-secondary: cubic-bezier(.65, 0, .35, 1);--rm-ui-amimation-cubic-tertiary: cubic-bezier(.68, -.6, .32, 1.6);--rm-ui-warranty-bg: #f9fcff}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { FadeScaleProps } from './fade-scale/fade-scale.component';
|
|
2
2
|
export type { FadeSlideProps } from './fade-slide/fade-slide.component';
|
|
3
3
|
export declare const Animation: {
|
|
4
|
-
FadeScale: (props: import('./
|
|
5
|
-
FadeSlide: (props: import('./
|
|
4
|
+
FadeScale: (props: import('./fade-scale/fade-scale.component').FadeScaleProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
FadeSlide: (props: import('./fade-slide/fade-slide.component').FadeSlideProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "clsx";
|
|
3
3
|
import { Animation as S } from "../../../animation/animation.component.js";
|
|
4
4
|
import { Loader as p } from "../../../loader/loader.component.js";
|
|
5
|
-
import { containsHtml as y } from "../../utils/
|
|
5
|
+
import { containsHtml as y } from "../../utils/functions/functions.util.js";
|
|
6
6
|
import '../../../../assets/button-4MJZ7yPE.css';const g = "_Button_1utzs_1", h = "_ButtonSizeSm_1utzs_11", W = "_ButtonSizeLg_1utzs_16", I = "_ButtonColorTertiary_1utzs_16", T = "_ButtonText_1utzs_20", x = "_ButtonSizeMd_1utzs_26", b = "_ButtonColorPrimary_1utzs_54", F = "_ButtonColorSecondary_1utzs_62", N = "_ButtonLoading_1utzs_79", A = "_ButtonFullWidth_1utzs_87", M = "_ButtonInfo_1utzs_95", v = "_ButtonContent_1utzs_102", P = "_ButtonContentLoading_1utzs_106", k = "_ButtonContentIdle_1utzs_110", j = "_ButtonLoaderWrap_1utzs_114", D = "_ButtonLoaderAnimationWrap_1utzs_121", t = {
|
|
7
7
|
Button: g,
|
|
8
8
|
ButtonSizeSm: h,
|
|
@@ -2,10 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "usehooks-ts";
|
|
4
4
|
import "clsx";
|
|
5
|
-
import { B
|
|
6
|
-
import "lucide-react";
|
|
7
|
-
import "../../../../index-Dvmr246i.js";
|
|
5
|
+
import { B } from "../../../../control.component-B7FJlGM2.js";
|
|
8
6
|
import "../../../svg/svg.component.js";
|
|
9
7
|
export {
|
|
10
|
-
|
|
8
|
+
B as ButtonCard
|
|
11
9
|
};
|
|
@@ -1,59 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Status as N } from "../status/status.component.js";
|
|
6
|
-
import { RadioText as C } from "../radio-text/radio-text.component.js";
|
|
7
|
-
import '../../../../assets/button-radio-DEQGW1L-.css';const H = "_ButtonRadio_1rilo_1", T = "_ButtonRadioRow_1rilo_14", b = "_ButtonRadioWrap_1rilo_23", k = "_ButtonRadioContent_1rilo_32", w = "_ButtonRadioText_1rilo_42", L = "_ButtonRadioHint_1rilo_50", t = {
|
|
8
|
-
ButtonRadio: H,
|
|
9
|
-
ButtonRadioRow: T,
|
|
10
|
-
ButtonRadioWrap: b,
|
|
11
|
-
ButtonRadioContent: k,
|
|
12
|
-
ButtonRadioText: w,
|
|
13
|
-
ButtonRadioHint: L
|
|
14
|
-
}, A = (u) => {
|
|
15
|
-
const {
|
|
16
|
-
children: c,
|
|
17
|
-
onClick: d,
|
|
18
|
-
onFocus: R,
|
|
19
|
-
onBlur: B,
|
|
20
|
-
info: n,
|
|
21
|
-
active: e = !1,
|
|
22
|
-
disabled: a = !1,
|
|
23
|
-
preventDefault: f = !1,
|
|
24
|
-
blurAfterCLick: m = !1
|
|
25
|
-
} = u, l = _(null), h = x(l), [p, s] = v(!1);
|
|
26
|
-
return /* @__PURE__ */ o(g, { ref: l, checked: e || h, state: "idle", focused: p, children: /* @__PURE__ */ o(
|
|
27
|
-
"button",
|
|
28
|
-
{
|
|
29
|
-
type: "button",
|
|
30
|
-
disabled: a,
|
|
31
|
-
className: t.ButtonRadio,
|
|
32
|
-
onClick: (r) => {
|
|
33
|
-
f && r.preventDefault(), m && r.currentTarget.blur(), d?.call(null);
|
|
34
|
-
},
|
|
35
|
-
onFocus: () => {
|
|
36
|
-
s(), R?.call(null);
|
|
37
|
-
},
|
|
38
|
-
onBlur: () => {
|
|
39
|
-
s(), B?.call(null);
|
|
40
|
-
},
|
|
41
|
-
children: /* @__PURE__ */ i("div", { className: t.ButtonRadioWrap, children: [
|
|
42
|
-
/* @__PURE__ */ o(N, { state: e ? "success" : "idle" }),
|
|
43
|
-
/* @__PURE__ */ i("div", { className: t.ButtonRadioContent, children: [
|
|
44
|
-
/* @__PURE__ */ i("div", { className: t.ButtonRadioRow, children: [
|
|
45
|
-
/* @__PURE__ */ o(C, { oneLine: !0, size: "lg", checked: e, color: a ? "secondary" : "primary", children: c }),
|
|
46
|
-
n?.text ? /* @__PURE__ */ o("span", { className: t.ButtonRadioText, children: n.text }) : null
|
|
47
|
-
] }),
|
|
48
|
-
(n?.hintLeft || n?.hintRight) && /* @__PURE__ */ i("div", { className: t.ButtonRadioRow, children: [
|
|
49
|
-
/* @__PURE__ */ o("span", { className: t.ButtonRadioHint, children: n.hintLeft }),
|
|
50
|
-
/* @__PURE__ */ o("span", { className: t.ButtonRadioHint, children: n.hintRight })
|
|
51
|
-
] })
|
|
52
|
-
] })
|
|
53
|
-
] })
|
|
54
|
-
}
|
|
55
|
-
) });
|
|
56
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "usehooks-ts";
|
|
4
|
+
import { a as p } from "../../../../control.component-B7FJlGM2.js";
|
|
57
5
|
export {
|
|
58
|
-
|
|
6
|
+
p as ButtonRadio
|
|
59
7
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { PropsWithChildren
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { SvgProps } from '../../../svg/svg.component';
|
|
2
3
|
export interface ButtonTextProps extends PropsWithChildren {
|
|
3
4
|
size?: 'sm' | 'md' | 'lg';
|
|
4
5
|
type?: 'submit' | 'reset' | 'button';
|
|
5
|
-
icon?:
|
|
6
|
+
icon?: SvgProps['icon'];
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
preventDefault?: boolean;
|
|
8
9
|
blurAfterCLick?: boolean;
|
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import m from "clsx";
|
|
4
|
+
import { Svg as S } from "../../../svg/svg.component.js";
|
|
5
|
+
import '../../../../assets/button-text-B5BDeF9b.css';const g = "_ButtonText_1g53u_1", z = "_ButtonTextSizeSm_1g53u_13", f = "_ButtonTextIcon_1g53u_13", d = "_ButtonTextSizeMd_1g53u_18", p = "_ButtonTextSizeLg_1g53u_19", C = "_ButtonTextContent_1g53u_24", t = {
|
|
5
6
|
ButtonText: g,
|
|
6
|
-
ButtonTextSizeSm:
|
|
7
|
+
ButtonTextSizeSm: z,
|
|
7
8
|
ButtonTextIcon: f,
|
|
8
|
-
ButtonTextSizeMd:
|
|
9
|
-
ButtonTextSizeLg:
|
|
10
|
-
ButtonTextContent:
|
|
9
|
+
ButtonTextSizeMd: d,
|
|
10
|
+
ButtonTextSizeLg: p,
|
|
11
|
+
ButtonTextContent: C
|
|
11
12
|
}, k = (u) => {
|
|
12
13
|
const {
|
|
13
14
|
children: l,
|
|
14
15
|
size: n = "md",
|
|
15
16
|
type: c = "button",
|
|
16
|
-
icon:
|
|
17
|
+
icon: x = null,
|
|
17
18
|
disabled: s = !1,
|
|
18
|
-
preventDefault:
|
|
19
|
+
preventDefault: B = !1,
|
|
19
20
|
blurAfterCLick: i = !1,
|
|
20
|
-
onClick:
|
|
21
|
-
onFocus:
|
|
22
|
-
onBlur:
|
|
21
|
+
onClick: T,
|
|
22
|
+
onFocus: r,
|
|
23
|
+
onBlur: _
|
|
23
24
|
} = u;
|
|
24
25
|
return /* @__PURE__ */ a(
|
|
25
26
|
"button",
|
|
26
27
|
{
|
|
27
28
|
type: c,
|
|
28
29
|
disabled: s,
|
|
29
|
-
className:
|
|
30
|
+
className: m(t.ButtonText, {
|
|
30
31
|
[t.ButtonTextSizeSm]: n === "sm",
|
|
31
32
|
[t.ButtonTextSizeMd]: n === "md",
|
|
32
33
|
[t.ButtonTextSizeLg]: n === "lg"
|
|
33
34
|
}),
|
|
34
|
-
onClick: (
|
|
35
|
-
|
|
35
|
+
onClick: (e) => {
|
|
36
|
+
B && e.preventDefault(), i && e.currentTarget.blur(), T?.call(null);
|
|
36
37
|
},
|
|
37
|
-
onFocus: () =>
|
|
38
|
-
onBlur: () =>
|
|
38
|
+
onFocus: () => r?.call(null),
|
|
39
|
+
onBlur: () => _?.call(null),
|
|
39
40
|
children: [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}) : e,
|
|
43
|
-
/* @__PURE__ */ m("span", { className: t.ButtonTextContent, children: l })
|
|
41
|
+
/* @__PURE__ */ o(S, { icon: x, className: t.ButtonTextIcon }),
|
|
42
|
+
/* @__PURE__ */ o("span", { className: t.ButtonTextContent, children: l })
|
|
44
43
|
]
|
|
45
44
|
}
|
|
46
45
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Interactive, RadioChoice, ChoiceValue, State } from '../../types';
|
|
1
|
+
import { Interactive, RadioChoice, ChoiceValue, State } from '../../control.types';
|
|
2
2
|
export interface CardImageProps extends Interactive<ChoiceValue> {
|
|
3
3
|
sprite: string;
|
|
4
4
|
choices: RadioChoice[];
|
|
@@ -1,59 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { RadioLabel as B } from "../radio-label/radio-label.component.js";
|
|
6
|
-
import { RadioText as N } from "../radio-text/radio-text.component.js";
|
|
7
|
-
import { useChoice as T } from "../../hooks/useChoice/useChoice.hook.js";
|
|
8
|
-
import { getChoiceId as b } from "../../utils/utils.js";
|
|
9
|
-
import '../../../../assets/card-image-DQ9c4G_r.css';const W = "_CardImage_dw1xq_1", j = "_CardImageContent_dw1xq_13", y = "_CardImageTop_dw1xq_27", R = "_CardImageWrap_dw1xq_32", $ = "_CardImageBottom_dw1xq_43", r = {
|
|
10
|
-
CardImage: W,
|
|
11
|
-
CardImageContent: j,
|
|
12
|
-
CardImageTop: y,
|
|
13
|
-
CardImageWrap: R,
|
|
14
|
-
CardImageBottom: $
|
|
15
|
-
}, J = (l) => {
|
|
16
|
-
const { sprite: I, choices: p, state: c = "idle", id: d, value: t, disabled: n, onChange: _ } = l, { type: i, onChoiceChange: v } = T(t, d, _);
|
|
17
|
-
return /* @__PURE__ */ a("div", { className: r.CardImage, children: p.map((e, h, u) => {
|
|
18
|
-
const m = b(d, e.value, h);
|
|
19
|
-
return /* @__PURE__ */ a(B, { id: m, value: t, state: c, choice: e, choices: u, children: ({ focused: s, hovered: x, checked: o, state: C }) => /* @__PURE__ */ a(f, { state: C, checked: o, focused: s, children: /* @__PURE__ */ g("div", { className: r.CardImageContent, children: [
|
|
20
|
-
/* @__PURE__ */ a(
|
|
21
|
-
w,
|
|
22
|
-
{
|
|
23
|
-
type: i,
|
|
24
|
-
id: m,
|
|
25
|
-
name: d,
|
|
26
|
-
value: e.value,
|
|
27
|
-
checked: o,
|
|
28
|
-
disabled: n,
|
|
29
|
-
onChange: () => v(e.value)
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ a("div", { className: r.CardImageTop, children: /* @__PURE__ */ a(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
"data-image": e.icon,
|
|
36
|
-
style: { backgroundImage: `url(${I})` },
|
|
37
|
-
className: r.CardImageWrap
|
|
38
|
-
}
|
|
39
|
-
) }),
|
|
40
|
-
/* @__PURE__ */ g("div", { className: r.CardImageBottom, children: [
|
|
41
|
-
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
42
|
-
q,
|
|
43
|
-
{
|
|
44
|
-
type: i,
|
|
45
|
-
state: C,
|
|
46
|
-
checked: o,
|
|
47
|
-
focused: s,
|
|
48
|
-
hovered: x,
|
|
49
|
-
disabled: n
|
|
50
|
-
}
|
|
51
|
-
) }),
|
|
52
|
-
/* @__PURE__ */ a(N, { size: "md", checked: o, children: e.label })
|
|
53
|
-
] })
|
|
54
|
-
] }) }) }, m);
|
|
55
|
-
}) });
|
|
56
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { b as a } from "../../../../control.component-B7FJlGM2.js";
|
|
3
|
+
import "../../hooks/useChoice/useChoice.hook.js";
|
|
4
|
+
import "../../utils/functions/functions.util.js";
|
|
57
5
|
export {
|
|
58
|
-
|
|
6
|
+
a as CardImage
|
|
59
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Interactive, RadioChoice, ChoiceValue, State } from '../../types';
|
|
1
|
+
import { Interactive, RadioChoice, ChoiceValue, State } from '../../control.types';
|
|
2
2
|
export interface CardTextProps extends Interactive<ChoiceValue> {
|
|
3
3
|
choices: RadioChoice[];
|
|
4
4
|
state?: State;
|
|
@@ -1,47 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { RadioLabel as I } from "../radio-label/radio-label.component.js";
|
|
6
|
-
import { RadioText as N } from "../radio-text/radio-text.component.js";
|
|
7
|
-
import { useChoice as j } from "../../hooks/useChoice/useChoice.hook.js";
|
|
8
|
-
import { getChoiceId as R } from "../../utils/utils.js";
|
|
9
|
-
import '../../../../assets/card-text-fgHu9TyO.css';const y = "_CardText_1eht8_1", z = "_CardTextLabel_1eht8_9", B = "_CardTextChoice_1eht8_24", i = {
|
|
10
|
-
CardText: y,
|
|
11
|
-
CardTextLabel: z,
|
|
12
|
-
CardTextChoice: B
|
|
13
|
-
}, J = (m) => {
|
|
14
|
-
const { choices: x, state: c = "idle", id: r, value: d, disabled: n = !1, onChange: h } = m, { type: l, onChoiceChange: T } = j(d, r, h);
|
|
15
|
-
return /* @__PURE__ */ e("div", { className: i.CardText, children: x.map((t, p, _) => {
|
|
16
|
-
const o = R(r, t.value, p);
|
|
17
|
-
return /* @__PURE__ */ e(I, { id: o, value: d, state: c, choice: t, choices: _, children: ({ focused: s, hovered: f, checked: a, state: C }) => /* @__PURE__ */ e(b, { state: C, checked: a, focused: s, children: /* @__PURE__ */ v("div", { className: i.CardTextLabel, children: [
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
L,
|
|
20
|
-
{
|
|
21
|
-
type: l,
|
|
22
|
-
id: o,
|
|
23
|
-
name: r,
|
|
24
|
-
value: t.value,
|
|
25
|
-
checked: a,
|
|
26
|
-
disabled: n,
|
|
27
|
-
onChange: (H, u) => T(t.value, u)
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
/* @__PURE__ */ e("div", { className: i.CardTextChoice, children: /* @__PURE__ */ e(
|
|
31
|
-
g,
|
|
32
|
-
{
|
|
33
|
-
type: l,
|
|
34
|
-
state: C,
|
|
35
|
-
checked: a,
|
|
36
|
-
focused: s,
|
|
37
|
-
hovered: f,
|
|
38
|
-
disabled: n
|
|
39
|
-
}
|
|
40
|
-
) }),
|
|
41
|
-
/* @__PURE__ */ e(N, { size: "lg", checked: a, children: t.label })
|
|
42
|
-
] }) }) }, o);
|
|
43
|
-
}) });
|
|
44
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../../../control.component-B7FJlGM2.js";
|
|
3
|
+
import "../../hooks/useChoice/useChoice.hook.js";
|
|
4
|
+
import "../../utils/functions/functions.util.js";
|
|
45
5
|
export {
|
|
46
|
-
|
|
6
|
+
i as CardText
|
|
47
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Interactive, State } from '../../types';
|
|
3
|
-
import { ChoiceProps } from '
|
|
2
|
+
import { Interactive, State } from '../../control.types';
|
|
3
|
+
import { ChoiceProps } from '../../control.component';
|
|
4
4
|
export interface CheckboxProps extends PropsWithChildren, Interactive<boolean> {
|
|
5
5
|
state?: State;
|
|
6
6
|
icon?: ChoiceProps['size'];
|
|
@@ -1,85 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { Converter as F } from "../../../../utils/converter/converter.js";
|
|
7
|
-
import '../../../../assets/checkbox-BOAgvTCW.css';const S = "_Checkbox_1ez0v_1", I = "_CheckboxChoice_1ez0v_14", N = "_CheckboxContent_1ez0v_20", j = "_CheckboxContentTextBody_1ez0v_39", H = "_CheckboxContentTextBodySmall_1ez0v_44", t = {
|
|
8
|
-
Checkbox: S,
|
|
9
|
-
CheckboxChoice: I,
|
|
10
|
-
CheckboxContent: N,
|
|
11
|
-
CheckboxContentTextBody: j,
|
|
12
|
-
CheckboxContentTextBodySmall: H
|
|
13
|
-
}, q = (i) => {
|
|
14
|
-
const {
|
|
15
|
-
children: b,
|
|
16
|
-
state: d = "idle",
|
|
17
|
-
icon: k = "md",
|
|
18
|
-
text: C = "body-small",
|
|
19
|
-
id: o,
|
|
20
|
-
value: n,
|
|
21
|
-
disabled: e = !1,
|
|
22
|
-
onChange: s,
|
|
23
|
-
onFocus: u,
|
|
24
|
-
onBlur: m
|
|
25
|
-
} = i, [h, r] = a(!1), [p, x] = a(!1), f = (l) => {
|
|
26
|
-
e || h || (l.preventDefault(), s(!n, o));
|
|
27
|
-
}, _ = (l) => {
|
|
28
|
-
e || (l.stopPropagation(), s(!n, o));
|
|
29
|
-
}, v = () => {
|
|
30
|
-
e || (r(), u?.call(null, o));
|
|
31
|
-
}, y = () => {
|
|
32
|
-
e || (r(), m?.call(null, o));
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ B(
|
|
35
|
-
"label",
|
|
36
|
-
{
|
|
37
|
-
htmlFor: o,
|
|
38
|
-
className: t.Checkbox,
|
|
39
|
-
onClick: f,
|
|
40
|
-
onFocus: v,
|
|
41
|
-
onBlur: y,
|
|
42
|
-
onMouseEnter: () => x(),
|
|
43
|
-
onMouseLeave: () => x(),
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ c(
|
|
46
|
-
z,
|
|
47
|
-
{
|
|
48
|
-
type: "checkbox",
|
|
49
|
-
id: o,
|
|
50
|
-
name: o,
|
|
51
|
-
value: F.Boolean.ToBooleanString(n),
|
|
52
|
-
checked: n,
|
|
53
|
-
disabled: e,
|
|
54
|
-
onChange: _
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
/* @__PURE__ */ c("div", { className: t.CheckboxChoice, children: /* @__PURE__ */ c(
|
|
58
|
-
T,
|
|
59
|
-
{
|
|
60
|
-
type: "checkbox",
|
|
61
|
-
size: k,
|
|
62
|
-
state: d,
|
|
63
|
-
checked: n,
|
|
64
|
-
focused: h,
|
|
65
|
-
hovered: p,
|
|
66
|
-
disabled: e
|
|
67
|
-
}
|
|
68
|
-
) }),
|
|
69
|
-
/* @__PURE__ */ c(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
className: g(t.CheckboxContent, {
|
|
73
|
-
[t.CheckboxContentTextBody]: C === "body",
|
|
74
|
-
[t.CheckboxContentTextBodySmall]: C === "body-small"
|
|
75
|
-
}),
|
|
76
|
-
children: b
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "usehooks-ts";
|
|
3
|
+
import "clsx";
|
|
4
|
+
import { d as e } from "../../../../control.component-B7FJlGM2.js";
|
|
5
|
+
import "../../../../utils/converter/converter.util.js";
|
|
83
6
|
export {
|
|
84
|
-
|
|
7
|
+
e as Checkbox
|
|
85
8
|
};
|
|
@@ -1,97 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { Label as Q } from "../label/label.component.js";
|
|
10
|
-
import { RadioText as b } from "../radio-text/radio-text.component.js";
|
|
11
|
-
import { clickHasNode as U } from "../../utils/utils.js";
|
|
12
|
-
import { Converter as X } from "../../../../utils/converter/converter.js";
|
|
13
|
-
import '../../../../assets/dropdown-DLXy_DVj.css';const Y = "_Dropdown_1bylm_1", Z = "_DropdownBorder_1bylm_17", oo = "_DropdownContent_1bylm_28", eo = "_DropdownChevron_1bylm_39", no = "_DropdownChevronWrap_1bylm_53", ro = "_DropdownBox_1bylm_69", so = "_DropdownBoxVisible_1bylm_75", lo = "_DropdownBoxHidden_1bylm_79", co = "_DropdownSearch_1bylm_83", io = "_DropdownSearchVisible_1bylm_89", to = "_DropdownSearchHidden_1bylm_93", po = "_DropdownClose_1bylm_97", ao = "_DropdownInput_1bylm_106", ho = "_DropdownGlass_1bylm_120", wo = "_DropdownChoices_1bylm_131", Do = "_DropdownChoice_1bylm_131", mo = "_DropdownChoiceNoResult_1bylm_151", e = {
|
|
14
|
-
Dropdown: Y,
|
|
15
|
-
DropdownBorder: Z,
|
|
16
|
-
DropdownContent: oo,
|
|
17
|
-
DropdownChevron: eo,
|
|
18
|
-
DropdownChevronWrap: no,
|
|
19
|
-
DropdownBox: ro,
|
|
20
|
-
DropdownBoxVisible: so,
|
|
21
|
-
DropdownBoxHidden: lo,
|
|
22
|
-
DropdownSearch: co,
|
|
23
|
-
DropdownSearchVisible: io,
|
|
24
|
-
DropdownSearchHidden: to,
|
|
25
|
-
DropdownClose: po,
|
|
26
|
-
DropdownInput: ao,
|
|
27
|
-
DropdownGlass: ho,
|
|
28
|
-
DropdownChoices: wo,
|
|
29
|
-
DropdownChoice: Do,
|
|
30
|
-
DropdownChoiceNoResult: mo
|
|
31
|
-
}, Ro = (s) => {
|
|
32
|
-
const { choices: f = [], value: a = [], isSearchHidden: k = !1, multiple: i = !1, onChange: h, onOpen: H, onClose: z } = s, V = s.label || "", I = s.placeholder || "Wählen Sie Ihre private Krankenversicherung...", O = s.noResult || "Keine Versicherung gefunden.", W = s.closeButton || "Schließen", v = u(null), w = u(null), y = u(null), { value: t, setFalse: D, toggle: A } = M(!1), [m, G] = C(""), [l, L] = C({ width: 0, height: 0 }), [p, x] = C([]);
|
|
33
|
-
T({
|
|
34
|
-
ref: w,
|
|
35
|
-
onResize: (o) => L({ width: o.width || 0, height: o.height || 0 })
|
|
36
|
-
}), E(w, (o) => {
|
|
37
|
-
U(o, v) || (i && h(p), D());
|
|
38
|
-
}), g(() => x(Array.isArray(a) ? a : []), [a]), g(() => {
|
|
39
|
-
t && l.width && l.height ? (y.current?.focus(), H?.call(null, l.height, l.width)) : z?.call(null);
|
|
40
|
-
}, [t, l]);
|
|
41
|
-
const j = (o, c) => {
|
|
42
|
-
x((d) => d.some(({ value: _ }) => _ === o) ? d.filter(({ value: _ }) => _ !== o) : [...d, { value: o, label: c }]);
|
|
43
|
-
}, F = () => {
|
|
44
|
-
D(), h(p);
|
|
45
|
-
}, B = K(
|
|
46
|
-
() => f.filter(({ label: o }) => o.toLowerCase().includes(m.toLowerCase())),
|
|
47
|
-
[m, f]
|
|
48
|
-
);
|
|
49
|
-
return /* @__PURE__ */ r("div", { className: e.Dropdown, children: [
|
|
50
|
-
/* @__PURE__ */ n(R, { ref: v, onClick: A, children: /* @__PURE__ */ r("div", { className: e.DropdownBorder, children: [
|
|
51
|
-
/* @__PURE__ */ r("div", { className: e.DropdownContent, children: [
|
|
52
|
-
/* @__PURE__ */ n(Q, { position: "active", children: V }),
|
|
53
|
-
/* @__PURE__ */ n(b, { size: "lg", checked: !0, oneLine: !0, children: X.Answer.FromArrayToMultiple(p.map(({ label: o }) => o)) || I })
|
|
54
|
-
] }),
|
|
55
|
-
/* @__PURE__ */ n("div", { className: e.DropdownChevronWrap, children: /* @__PURE__ */ n($, { "data-open": t, className: e.DropdownChevron }) })
|
|
56
|
-
] }) }),
|
|
57
|
-
/* @__PURE__ */ n(R, { ref: w, className: t ? e.DropdownBoxVisible : e.DropdownBoxHidden, children: /* @__PURE__ */ r("div", { className: e.DropdownBox, children: [
|
|
58
|
-
/* @__PURE__ */ r("div", { className: N(e.DropdownSearch, k ? e.DropdownSearchHidden : e.DropdownSearchVisible), children: [
|
|
59
|
-
/* @__PURE__ */ n(
|
|
60
|
-
"input",
|
|
61
|
-
{
|
|
62
|
-
ref: y,
|
|
63
|
-
value: m,
|
|
64
|
-
type: "text",
|
|
65
|
-
className: e.DropdownInput,
|
|
66
|
-
onChange: (o) => G(o.target.value)
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ n(q, { className: e.DropdownGlass })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ n("ul", { className: e.DropdownChoices, children: B.length ? B.map(({ value: o, label: c }, d) => /* @__PURE__ */ r(
|
|
72
|
-
"li",
|
|
73
|
-
{
|
|
74
|
-
className: e.DropdownChoice,
|
|
75
|
-
onClick: () => {
|
|
76
|
-
i ? j(o, c) : (D(), h([{ value: o, label: c }]));
|
|
77
|
-
},
|
|
78
|
-
children: [
|
|
79
|
-
i && /* @__PURE__ */ n(
|
|
80
|
-
P,
|
|
81
|
-
{
|
|
82
|
-
type: "checkbox",
|
|
83
|
-
checked: p.some((S) => S.value === o)
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ n(b, { size: "lg", checked: !1, children: c })
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
o + d
|
|
90
|
-
)) : /* @__PURE__ */ n("li", { className: N(e.DropdownChoice, e.DropdownChoiceNoResult), children: /* @__PURE__ */ n(b, { size: "lg", checked: !1, children: O }) }) }),
|
|
91
|
-
i && /* @__PURE__ */ n("div", { className: e.DropdownClose, children: /* @__PURE__ */ n(J, { color: "primary", size: "sm", type: "button", onClick: () => F(), children: W }) })
|
|
92
|
-
] }) })
|
|
93
|
-
] });
|
|
94
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "usehooks-ts";
|
|
4
|
+
import "lucide-react";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import { D as e } from "../../../../control.component-B7FJlGM2.js";
|
|
7
|
+
import "../../utils/functions/functions.util.js";
|
|
8
|
+
import "../../../../utils/converter/converter.util.js";
|
|
95
9
|
export {
|
|
96
|
-
|
|
10
|
+
e as Dropdown
|
|
97
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { Interactive } from '../../types';
|
|
2
|
+
import { Interactive } from '../../control.types';
|
|
3
3
|
export interface InputProps extends Interactive<string> {
|
|
4
4
|
type?: HTMLInputTypeAttribute;
|
|
5
5
|
onAutofill?: (id: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Interactive, RadioChoice, State } from '../../types';
|
|
2
|
-
import { ChoiceProps } from '
|
|
1
|
+
import { Interactive, RadioChoice, State } from '../../control.types';
|
|
2
|
+
import { ChoiceProps } from '../../control.component';
|
|
3
3
|
export interface RadioProps extends Interactive<string> {
|
|
4
4
|
orientation: 'horizontal' | 'vertical';
|
|
5
5
|
choices: RadioChoice[];
|