@stenajs-webui/forms 19.0.0-next.5 → 19.0.0-next.51

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/index.es.js CHANGED
@@ -1,556 +1,791 @@
1
- (function(){"use strict";try{var r=document.createElement("style");r.appendChild(document.createTextNode('._switch_17tiq_1{--swui-switch-width: 50px;--swui-switch-height: var(--swui-field-box-size-medium);--swui-switch-animation-time: var(--swui-animation-time-medium);--swui-switch-selected-highlight-color: var(--swui-primary-action-color);--swui-switch-knob-width: calc(var(--swui-switch-height) - 2px);--swui-switch-knob-bg-color-enabled: var(--swui-handle-bg-enabled-color);--swui-switch-knob-bg-color-disabled: var(--swui-handle-bg-disabled-color);--swui-switch-container-bg-color-enabled: var(--swui-field-bg-enabled);--swui-switch-container-bg-color-disabled: var(--swui-field-bg-disabled);--swui-switch-knob-border-color-enabled: var(--swui-separator-color);--swui-switch-container-border-color: var(--swui-field-border-color);--swui-switch-container-border-color-hover: var( --swui-field-border-color-hover );--swui-switch-container-border-color-disabled: var( --swui-field-border-color-disabled );--swui-switch-knob-shadow-color: var(--swui-field-shadow-color);display:flex;flex-direction:row;border:1px solid var(--swui-switch-container-border-color);box-sizing:border-box;background-color:var(--swui-switch-container-bg-color-enabled);height:var(--swui-switch-height);width:var(--swui-switch-width);border-radius:calc(var(--swui-switch-height) / 2);padding:0;margin:0;cursor:pointer;transition:background-color var(--swui-switch-animation-time)}._switch_17tiq_1:focus{outline:0}._switch_17tiq_1:focus-visible{border:1px solid var(--swui-switch-selected-highlight-color);box-shadow:inset var(--swui-switch-selected-highlight-color) 0 0 4px 0}._switch_17tiq_1:hover{border:1px solid var(--swui-switch-selected-highlight-color)}._switch_17tiq_1:disabled{cursor:default;background-color:var(--swui-switch-container-bg-color-disabled);border:1px solid var(--swui-switch-container-border-color-disabled)}._switch_17tiq_1:disabled ._knob_17tiq_55{background-color:var(--swui-switch-knob-bg-color-disabled)}._switch_17tiq_1 ._filler_17tiq_60{flex:none;transition:flex var(--swui-switch-animation-time)}._switch_17tiq_1 ._knob_17tiq_55{width:var(--swui-switch-knob-width);height:var(--swui-switch-knob-width);border-radius:50%;background-color:var(--swui-switch-knob-bg-color-enabled);box-shadow:var(--swui-switch-knob-shadow-color) 0 0 4px 1px}._checked_17tiq_74{border:1px solid var(--swui-switch-selected-highlight-color);background-color:var(--swui-switch-selected-highlight-color)}._checked_17tiq_74 ._filler_17tiq_60{flex:1}._checkbox_14k6d_1{--swui-checkbox-height: var(--swui-field-box-size-medium);--swui-checkbox-height-small: var(--swui-field-box-size-small);--swui-checkbox-border-radius: var(--swui-field-border-radius);--swui-checkbox-animation-time: var(--swui-animation-time-medium);--swui-checkbox-icon-color: var(--swui-field-indicator-active-color);--swui-checkbox-disabled-icon-color: var(--swui-text-disabled-color);--swui-checkbox-unchecked-icon-color: var( --swui-field-indicator-inactive-color );--swui-checkbox-unchecked-bg-color: var(--swui-white);--swui-checkbox-checked-bg-color: var(--swui-primary-action-color);--swui-checkbox-disabled-bg-color: var(--swui-field-bg-disabled);--swui-checkbox-disabled-checked-bg-color: var(--swui-field-bg-disabled);--swui-checkbox-border-color: var(--swui-field-border-color);--swui-checkbox-border-hover-color: var(--swui-field-border-color-hover);--swui-checkbox-disabled-border-color: var(--swui-checkbox-disabled-bg-color);--swui-checkbox-checked-focus-shadow: var(--swui-field-focus-shadow-inverted);--swui-checkbox-unchecked-focus-shadow: var(--swui-field-focus-shadow);-webkit-appearance:none;-moz-appearance:none;border-radius:var(--swui-checkbox-border-radius);outline:none;display:inline-block;vertical-align:top;position:relative;margin:0;cursor:pointer;border:1px solid var(--current-border-color, var(--swui-checkbox-border-color));background:var(--current-bg-color, var(--swui-checkbox-unchecked-bg-color));transition:background var(--swui-checkbox-animation-time),border-color var(--swui-checkbox-animation-time),box-shadow var(--swui-checkbox-animation-time);flex-shrink:0}._checkbox_14k6d_1._standard_14k6d_44{width:var(--swui-checkbox-height);height:var(--swui-checkbox-height)}._checkbox_14k6d_1._standard_14k6d_44:after{width:3px;height:6px;left:9px;top:6px}._checkbox_14k6d_1._small_14k6d_56{width:var(--swui-checkbox-height-small);height:var(--swui-checkbox-height-small)}._checkbox_14k6d_1._small_14k6d_56:after{width:3px;height:6px;left:5px;top:2px}._checkbox_14k6d_1:after{content:"";display:block;position:absolute;transition:opacity var(--swui-checkbox-animation-time),width var(--swui-checkbox-animation-time),top var(--swui-checkbox-animation-time),-webkit-transform var(--swui-checkbox-animation-time) var(--d-t-e, ease);transition:transform var(--swui-checkbox-animation-time) var(--d-t-e, ease),opacity var(--swui-checkbox-animation-time),width var(--swui-checkbox-animation-time),top var(--swui-checkbox-animation-time);transition:transform var(--swui-checkbox-animation-time) var(--d-t-e, ease),opacity var(--swui-checkbox-animation-time),width var(--swui-checkbox-animation-time),top var(--swui-checkbox-animation-time),-webkit-transform var(--swui-checkbox-animation-time) var(--d-t-e, ease);border:2px solid var( --current-checkbox-icon-color, var(--swui-checkbox-unchecked-icon-color) );border-top:0;border-left:0;-webkit-transform:rotate(var(--current-check-rotation, 20deg));transform:rotate(var(--current-check-rotation, 20deg));box-sizing:content-box}._checkbox_14k6d_1:checked{--current-check-rotation: 43deg;--current-bg-color: var(--swui-checkbox-checked-bg-color);--current-border-color: var(--swui-checkbox-checked-bg-color);--d-t-e: cubic-bezier(.2, .85, .32, 1.2)}._checkbox_14k6d_1:checked:after{--current-checkbox-icon-color: var(--swui-checkbox-icon-color)}._checkbox_14k6d_1:disabled:not(:checked){--current-bg-color: var(--swui-checkbox-disabled-bg-color);--current-border-color: var(--swui-checkbox-disabled-border-color)}._checkbox_14k6d_1:disabled:not(:checked):after{--current-checkbox-icon-color: --swui-checkbox-unchecked-icon-color}._checkbox_14k6d_1:disabled:checked{--current-bg-color: var(--swui-checkbox-disabled-checked-bg-color);--current-border-color: var(--swui-checkbox-disabled-border-color)}._checkbox_14k6d_1:disabled:checked:after{--current-checkbox-icon-color: var(--swui-checkbox-disabled-icon-color)}._checkbox_14k6d_1:indeterminate{--current-check-rotation: 43deg;--current-bg-color: var(--swui-checkbox-checked-bg-color);--current-border-color: var(--swui-checkbox-checked-bg-color);--d-t-e: cubic-bezier(.2, .85, .32, 1.2)}._checkbox_14k6d_1:indeterminate:after{--current-checkbox-icon-color: var(--swui-checkbox-icon-color);border-right:0;-webkit-transform:rotate(0deg);transform:rotate(0);width:6px}._checkbox_14k6d_1:indeterminate._standard_14k6d_44:after{top:4px;left:8px}._checkbox_14k6d_1:indeterminate._small_14k6d_56:after{top:0;left:4px}._checkbox_14k6d_1:indeterminate:disabled:after{--current-checkbox-icon-color: var(--swui-checkbox-disabled-icon-color)}._checkbox_14k6d_1:hover:not(:checked):not(:disabled){--current-border-color: var(--swui-checkbox-border-hover-color)}._checkbox_14k6d_1:focus-visible:checked{box-shadow:var(--swui-checkbox-checked-focus-shadow)}._checkbox_14k6d_1:focus-visible:not(:checked){box-shadow:var(--swui-checkbox-unchecked-focus-shadow)}._checkbox_14k6d_1+label{font-size:1.4rem;line-height:var(--swui-checkbox-height);display:inline-block;vertical-align:top;cursor:pointer;margin-left:4px}._radiobutton_i2gqw_1{--swui-radiobutton-size-standard: var(--swui-field-box-size-medium);--swui-radiobutton-size-small: var(--swui-field-box-size-small);--swui-radiobutton-animation-time: var(--swui-animation-time-medium);--swui-radiobutton-icon-color: var(--swui-field-indicator-active-color);--swui-radiobutton-disabled-icon-color: var(--swui-field-text-color-disabled);--swui-radiobutton-unchecked-icon-color: var( --swui-field-indicator-inactive-color );--swui-radiobutton-checked-bg-color: var(--swui-primary-action-color);--swui-radiobutton-checked-disabled-bg-color: var(--swui-field-bg-disabled);--swui-radiobutton-unchecked-bg-color: var(--swui-white);--swui-radiobutton-unchecked-disabled-bg-color: var(--swui-field-bg-disabled);--swui-radiobutton-unchecked-border-color: var(--swui-field-border-color);--swui-radiobutton-unchecked-hover-border-color: var( --swui-field-border-color-hover );--swui-radiobutton-disabled-border-color: var( --swui-radiobutton-checked-disabled-bg-color );--swui-radiobutton-checked-focus-shadow: var( --swui-field-focus-shadow-inverted );--swui-radiobutton-unchecked-focus-shadow: var(--swui-field-focus-shadow);-webkit-appearance:none;-moz-appearance:none;outline:none;display:inline-block;vertical-align:top;position:relative;margin:0;flex:none;cursor:pointer;border:1px solid var(--current-border-color, var(--swui-radiobutton-unchecked-border-color));border-radius:50%;background:var( --current-bg-color, var(--swui-radiobutton-unchecked-bg-color) );transition:background var(--swui-radiobutton-animation-time),border-color var(--swui-radiobutton-animation-time),box-shadow var(--swui-radiobutton-animation-time)}._radiobutton_i2gqw_1._standard_i2gqw_52{height:var(--swui-radiobutton-size-standard);width:var(--swui-radiobutton-size-standard)}._radiobutton_i2gqw_1._standard_i2gqw_52:after{left:7px;top:7px}._radiobutton_i2gqw_1._small_i2gqw_62{height:var(--swui-radiobutton-size-small);width:var(--swui-radiobutton-size-small)}._radiobutton_i2gqw_1._small_i2gqw_62:after{left:3px;top:3px}._radiobutton_i2gqw_1:after{content:"";display:block;position:absolute;transition:opacity var(--current-opacity-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),-webkit-transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease);transition:transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),opacity var(--current-opacity-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease);transition:transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),opacity var(--current-opacity-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),-webkit-transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease);-webkit-transform:scale(var(--current-scale, 0));transform:scale(var(--current-scale, 0));width:8px;height:8px;border-radius:50%;background:var( --current-icon-color, var(--swui-radiobutton-unchecked-icon-color) );opacity:var(--current-opacity, 0)}._radiobutton_i2gqw_1:checked{--current-bg-color: var(--swui-radiobutton-checked-bg-color);--current-border-color: var(--swui-radiobutton-checked-bg-color);--current-opacity-time: var(--swui-radiobutton-animation-time);--current-transform-time: .6s;--current-transform-type: cubic-bezier(.2, .85, .32, 1.2);--current-opacity: 1;--current-scale: 1}._radiobutton_i2gqw_1:checked:after{--current-icon-color: var(--swui-radiobutton-icon-color)}._radiobutton_i2gqw_1:disabled{--current-bg-color: var(--swui-radiobutton-unchecked-disabled-bg-color);--current-border-color: var(--swui-radiobutton-disabled-border-color)}._radiobutton_i2gqw_1:disabled:checked{--current-bg-color: var(--swui-radiobutton-checked-disabled-bg-color)}._radiobutton_i2gqw_1:disabled:checked:after{--current-icon-color: var(--swui-radiobutton-disabled-icon-color)}._radiobutton_i2gqw_1:hover:not(:checked):not(:disabled){--current-border-color: var( --swui-radiobutton-unchecked-hover-border-color )}._radiobutton_i2gqw_1:focus-visible:checked{box-shadow:var(--swui-radiobutton-checked-focus-shadow)}._radiobutton_i2gqw_1:focus-visible:not(:checked){box-shadow:var(--swui-radiobutton-unchecked-focus-shadow)}._radiobutton_i2gqw_1+label{font-size:1.4rem;line-height:var(--swui-radiobutton-size-standard);display:inline-block;vertical-align:top;cursor:pointer;margin-left:4px}._textInput_ijduv_1{--swui-textinput-text-color: var(--swui-field-text-color);--swui-textinput-text-color-disabled: var(--swui-field-text-color-disabled);--swui-textinput-letter-spacing: var(--swui-field-letter-spacing);--swui-textinput-line-height: var(--swui-field-text-line-height);--swui-textinput-indent: var(--swui-metrics-indent);--swui-textinput-spacing: calc(var(--swui-field-text-spacing) - 1px);--swui-textinput-font-size: var(--swui-font-size-inputs);--swui-textinput-font-family: var(--swui-font-input);--swui-textinput-font-weight: var(--swui-font-weight-inputs);--swui-textinput-placeholder-color: var(--swui-field-placeholder-color);--swui-textinput-animation-time: var(--swui-animation-time-medium);--swui-textinput-icon-color: var(--swui-field-border-color-disabled);--swui-textinput-icon-hover-color: var(--swui-primary-action-color);--swui-textinput-icon-size: var(--swui-field-icon-size);--swui-textinput-icon-color-success: var(--swui-state-success-color);--swui-textinput-bg-loading: var(--swui-state-loading-light-color);--swui-textinput-border-color-loading: var(--swui-state-loading-color);--swui-textinput-bg-modified: var(--swui-state-modified-light-color);--swui-textinput-border-color-modified: var(--swui-state-modified-color);--swui-textinput-bg-warning: var(--swui-state-alert-light-color);--swui-textinput-border-color-warning: var(--swui-state-alert-color);--swui-textinput-bg-error: var(--swui-state-error-light-color);--swui-textinput-border-color-error: var(--swui-state-error-color);--swui-textinput-bg-color: var(--swui-field-bg-enabled);--swui-textinput-bg-color-disabled: var(--swui-field-bg-disabled);--swui-textinput-border-radius: var(--swui-field-border-radius);--swui-textinput-border-color: var(--swui-field-border-color);--swui-textinput-border-color-hover: var(--swui-field-border-color-hover);--swui-textinput-border-color-disabled: var( --swui-field-border-color-disabled );--swui-textinput-focus-shadow: var(--swui-field-focus-shadow);--current-bg: var(--swui-textinput-bg-color);--current-border-color: var(--swui-textinput-border-color);--current-icon-color: var(--swui-textinput-icon-color);display:flex;width:100%;align-items:center;background:var(--current-bg);border:1px solid var(--current-border-color);border-radius:var(--swui-textinput-border-radius);transition:all var(--swui-textinput-animation-time)}._textInput_ijduv_1._textInput_ijduv_1:focus-within:not(._disabled_ijduv_61){box-shadow:var(--swui-textinput-focus-shadow);--current-border-color: var(--swui-textinput-border-color-hover);--current-bg: var(--swui-textinput-bg-color)}._textInput_ijduv_1 ._input_ijduv_67{letter-spacing:var(--swui-textinput-letter-spacing);line-height:var(--swui-textinput-line-height);width:100%;padding:var(--swui-textinput-spacing) var(--swui-textinput-indent);color:var(--swui-textinput-text-color);font-size:var(--swui-textinput-font-size);font-family:var(--swui-textinput-font-family);font-weight:var(--swui-textinput-font-weight);background:var(--swui-hidden);border:none;min-width:0;margin:0}._textInput_ijduv_1 ._input_ijduv_67:disabled{color:var(--swui-textinput-text-color-disabled)}._textInput_ijduv_1 ._input_ijduv_67::-webkit-input-placeholder{color:var(--swui-textinput-placeholder-color)}._textInput_ijduv_1 ._input_ijduv_67:-ms-input-placeholder{color:var(--swui-textinput-placeholder-color)}._textInput_ijduv_1 ._input_ijduv_67::placeholder{color:var(--swui-textinput-placeholder-color)}._textInput_ijduv_1 ._input_ijduv_67:focus{outline:none}._textInput_ijduv_1 ._input_ijduv_67::-webkit-calendar-picker-indicator{display:none}._textInput_ijduv_1._standard_ijduv_102:hover:not(._disabled_ijduv_61),._textInput_ijduv_1._success_ijduv_103:hover:not(._disabled_ijduv_61){--current-border-color: var(--swui-textinput-border-color-hover)}._textInput_ijduv_1._success_ijduv_103{--current-icon-color: var(--swui-textinput-icon-color-success)}._textInput_ijduv_1._loading_ijduv_115{--current-bg: var(--swui-textinput-bg-loading);--current-border-color: var(--swui-textinput-border-color-loading)}._textInput_ijduv_1._modified_ijduv_120{--current-bg: var(--swui-textinput-bg-modified);--current-border-color: var(--swui-textinput-border-color-modified);--current-icon-color: var(--lhds-color-blue-300)}._textInput_ijduv_1._error_ijduv_126{--current-bg: var(--swui-textinput-bg-error);--current-border-color: var(--swui-textinput-border-color-error);--current-icon-color: var(--swui-textinput-border-color-error)}._textInput_ijduv_1._warning_ijduv_132{--current-bg: var(--swui-textinput-bg-warning);--current-border-color: var(--swui-textinput-border-color-warning);--current-icon-color: var(--swui-textinput-border-color-warning)}._textInput_ijduv_1._disabled_ijduv_61{--current-bg: var(--swui-textinput-bg-color-disabled);--current-border-color: var(--swui-textinput-border-color-disabled)}._textInput_ijduv_1._textInput_ijduv_1._hideBorder_ijduv_143{border:none;box-shadow:none;background:none}._textInput_ijduv_1 ._clickable_ijduv_149:hover{--current-icon-color: var(--swui-textinput-icon-hover-color);cursor:pointer}._textInput_ijduv_1 ._icon_ijduv_154{transition:color var(--swui-textinput-animation-time);color:var(--current-icon-color);font-size:var(--swui-textinput-icon-size)}._numericTextInputInput_1tnr6_1{-moz-appearance:textfield}._numericTextInputInput_1tnr6_1::-webkit-outer-spin-button,._numericTextInputInput_1tnr6_1::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}._textArea_1ta4a_1{--swui-textarea-text-color: var(--swui-field-text-color);--swui-textarea-text-color-disabled: var(--swui-field-text-color-disabled);--swui-textarea-letter-spacing: var(--swui-field-letter-spacing);--swui-textarea-line-height: var(--swui-field-text-line-height);--swui-textarea-indent: var(--swui-metrics-indent);--swui-textarea-spacing: calc(var(--swui-field-text-spacing) - 1px);--swui-textarea-font-size: var(--swui-font-size-inputs);--swui-textarea-font-family: var(--swui-font-input);--swui-textarea-font-weight: var(--swui-font-weight-inputs);--swui-textarea-placeholder-color: var(--swui-text-disabled-color);--swui-textarea-animation-time: var(--swui-animation-time-medium);--swui-textarea-icon-color: var(--swui-field-border-color-disabled);--swui-textarea-icon-size: var(--swui-field-icon-size);--swui-textarea-icon-color-success: var(--swui-state-success-color);--swui-textarea-bg-loading: var(--swui-state-loading-light-color);--swui-textarea-border-color-loading: var(--swui-state-loading-color);--swui-textarea-bg-modified: var(--swui-state-modified-light-color);--swui-textarea-border-color-modified: var(--swui-state-modified-color);--swui-textarea-bg-warning: var(--swui-state-alert-light-color);--swui-textarea-border-color-warning: var(--swui-state-alert-color);--swui-textarea-bg-error: var(--swui-state-error-light-color);--swui-textarea-border-color-error: var(--swui-state-error-color);--swui-textarea-bg-color: var(--swui-field-bg-enabled);--swui-textarea-bg-color-disabled: var(--swui-field-bg-disabled);--swui-textarea-border-radius: var(--swui-field-border-radius);--swui-textarea-border-color: var(--swui-field-border-color);--swui-textarea-border-color-hover: var(--swui-field-border-color-hover);--swui-textarea-border-color-disabled: var( --swui-field-border-color-disabled );--swui-textarea-focus-shadow: var(--swui-field-focus-shadow);max-width:100%;letter-spacing:var(--swui-textarea-letter-spacing);line-height:var(--swui-textarea-line-height);padding:var(--swui-textarea-spacing) var(--swui-textarea-indent);color:var(--swui-textarea-text-color);font-size:var(--swui-textarea-font-size);font-family:var(--swui-textarea-font-family);font-weight:var(--swui-textarea-font-weight);background:var(--current-bg, var(--swui-textarea-bg-color));border:1px solid var(--current-border-color, var(--swui-textarea-border-color));border-radius:var(--swui-textarea-border-radius);transition:border var(--swui-textarea-animation-time);--current-icon-color: var(--swui-textarea-icon-color)}._textArea_1ta4a_1:focus{outline:none;box-shadow:var(--swui-textarea-focus-shadow);--current-border-color: var(--swui-textarea-border-color-hover);--current-bg: var(--swui-textarea-bg-color)}._textArea_1ta4a_1:disabled{color:var(--swui-textarea-text-color-disabled);--current-bg: var(--swui-textarea-bg-color-disabled);--current-border-color: var(--swui-textarea-border-color-disabled)}')),document.head.appendChild(r)}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { jsx as s, jsxs as m, Fragment as R } from "react/jsx-runtime";
3
- import { Box as rt, Space as w, Text as v, Row as j, parseFloatElseUndefined as A } from "@stenajs-webui/core";
4
- import { forwardRef as B, useRef as H, useCallback as x, useEffect as U, useMemo as nt, useState as ct } from "react";
5
- import I from "classnames";
6
- import { FlatButton as st, stenaCheck as q, stenaExclamationTriangle as it, InputSpinner as F, UpDownButtons as ot } from "@stenajs-webui/elements";
7
- import { FontAwesomeIcon as lt } from "@fortawesome/react-fontawesome";
8
- import { faEye as at } from "@fortawesome/free-solid-svg-icons/faEye";
9
- import { faEyeSlash as ut } from "@fortawesome/free-solid-svg-icons/faEyeSlash";
10
- import { faExclamationTriangle as dt } from "@fortawesome/free-solid-svg-icons/faExclamationTriangle";
11
- const ft = "_knob_17tiq_55", pt = "_filler_17tiq_60", _t = "_checked_17tiq_74", T = {
12
- switch: "_switch_17tiq_1",
13
- knob: ft,
14
- filler: pt,
15
- checked: _t
16
- }, ht = `${T.switch} ${T.checked}`, gt = ({
1
+ (function(){"use strict";try{var r=document.createElement("style");r.appendChild(document.createTextNode('._switch_1d6s8_1{--swui-switch-width: 50px;--swui-switch-height: var(--swui-field-box-size-medium);--swui-switch-animation-time: var(--swui-animation-time-medium);--swui-switch-selected-highlight-color: var(--lhds-color-blue-500);--swui-switch-knob-width: calc(var(--swui-switch-height) - 2px);--swui-switch-knob-bg-color-enabled: var(--swui-handle-bg-enabled-color);--swui-switch-knob-bg-color-disabled: var(--swui-handle-bg-disabled-color);--swui-switch-container-bg-color-enabled: var(--swui-field-bg-enabled);--swui-switch-container-bg-color-disabled: var(--swui-field-bg-disabled);--swui-switch-knob-border-color-enabled: var(--swui-separator-color);--swui-switch-container-border-color: var(--swui-field-border-color);--swui-switch-container-border-color-hover: var( --swui-field-border-color-hover );--swui-switch-container-border-color-disabled: var( --swui-field-border-color-disabled );--swui-switch-knob-shadow-color: var(--swui-field-shadow-color);display:flex;flex-direction:row;border:1px solid var(--swui-switch-container-border-color);box-sizing:border-box;background-color:var(--swui-switch-container-bg-color-enabled);height:var(--swui-switch-height);width:var(--swui-switch-width);border-radius:calc(var(--swui-switch-height) / 2);padding:0;margin:0;cursor:pointer;transition:background-color var(--swui-switch-animation-time)}._switch_1d6s8_1:focus{outline:0}._switch_1d6s8_1:focus-visible{outline:var(--swui-focus-outline);outline-offset:2px;border:1px solid var(--swui-switch-selected-highlight-color)}._switch_1d6s8_1:hover{border:1px solid var(--swui-switch-selected-highlight-color)}._switch_1d6s8_1:disabled{cursor:default;background-color:var(--swui-switch-container-bg-color-disabled);border:1px solid var(--swui-switch-container-border-color-disabled)}._switch_1d6s8_1:disabled ._knob_1d6s8_56{background-color:var(--swui-switch-knob-bg-color-disabled)}._switch_1d6s8_1 ._filler_1d6s8_61{flex:none;transition:flex var(--swui-switch-animation-time)}._switch_1d6s8_1 ._knob_1d6s8_56{width:var(--swui-switch-knob-width);height:var(--swui-switch-knob-width);border-radius:50%;background-color:var(--swui-switch-knob-bg-color-enabled);box-shadow:var(--swui-switch-knob-shadow-color) 0 0 4px 1px}._checked_1d6s8_75{border:1px solid var(--swui-switch-selected-highlight-color);background-color:var(--swui-switch-selected-highlight-color)}._checked_1d6s8_75 ._filler_1d6s8_61{flex:1}._checkbox_1ndou_1{--swui-checkbox-height: var(--swui-field-box-size-medium);--swui-checkbox-height-small: var(--swui-field-box-size-small);--swui-checkbox-border-radius: var(--swui-field-border-radius);--swui-checkbox-animation-time: var(--swui-animation-time-medium);--swui-checkbox-icon-color: var(--swui-field-indicator-active-color);--swui-checkbox-disabled-icon-color: var(--swui-text-disabled-color);--swui-checkbox-unchecked-icon-color: var( --swui-field-indicator-inactive-color );--swui-checkbox-unchecked-bg-color: var(--swui-white);--swui-checkbox-checked-bg-color: var(--lhds-color-blue-500);--swui-checkbox-disabled-bg-color: var(--swui-field-bg-disabled);--swui-checkbox-disabled-checked-bg-color: var(--swui-field-bg-disabled);--swui-checkbox-border-color: var(--swui-field-border-color);--swui-checkbox-border-hover-color: var(--swui-field-border-color-hover);--swui-checkbox-disabled-border-color: var(--swui-checkbox-disabled-bg-color);-webkit-appearance:none;-moz-appearance:none;border-radius:var(--swui-checkbox-border-radius);outline:none;display:inline-block;vertical-align:top;position:relative;margin:0;cursor:pointer;border:1px solid var(--current-border-color, var(--swui-checkbox-border-color));background:var(--current-bg-color, var(--swui-checkbox-unchecked-bg-color));transition:background var(--swui-checkbox-animation-time),border-color var(--swui-checkbox-animation-time);flex-shrink:0}._checkbox_1ndou_1._standard_1ndou_39{width:var(--swui-checkbox-height);height:var(--swui-checkbox-height)}._checkbox_1ndou_1._standard_1ndou_39:after{width:3px;height:6px;left:9px;top:6px}._checkbox_1ndou_1._small_1ndou_51{width:var(--swui-checkbox-height-small);height:var(--swui-checkbox-height-small)}._checkbox_1ndou_1._small_1ndou_51:after{width:3px;height:6px;left:5px;top:2px}._checkbox_1ndou_1:after{content:"";display:block;position:absolute;transition:opacity var(--swui-checkbox-animation-time),width var(--swui-checkbox-animation-time),top var(--swui-checkbox-animation-time),-webkit-transform var(--swui-checkbox-animation-time) var(--d-t-e, ease);transition:transform var(--swui-checkbox-animation-time) var(--d-t-e, ease),opacity var(--swui-checkbox-animation-time),width var(--swui-checkbox-animation-time),top var(--swui-checkbox-animation-time);transition:transform var(--swui-checkbox-animation-time) var(--d-t-e, ease),opacity var(--swui-checkbox-animation-time),width var(--swui-checkbox-animation-time),top var(--swui-checkbox-animation-time),-webkit-transform var(--swui-checkbox-animation-time) var(--d-t-e, ease);border:2px solid var( --current-checkbox-icon-color, var(--swui-checkbox-unchecked-icon-color) );border-top:0;border-left:0;-webkit-transform:rotate(var(--current-check-rotation, 20deg));transform:rotate(var(--current-check-rotation, 20deg));box-sizing:content-box}._checkbox_1ndou_1:checked{--current-check-rotation: 43deg;--current-bg-color: var(--swui-checkbox-checked-bg-color);--current-border-color: var(--swui-checkbox-checked-bg-color);--d-t-e: cubic-bezier(.2, .85, .32, 1.2)}._checkbox_1ndou_1:checked:after{--current-checkbox-icon-color: var(--swui-checkbox-icon-color)}._checkbox_1ndou_1:disabled:not(:checked){--current-bg-color: var(--swui-checkbox-disabled-bg-color);--current-border-color: var(--swui-checkbox-disabled-border-color)}._checkbox_1ndou_1:disabled:not(:checked):after{--current-checkbox-icon-color: --swui-checkbox-unchecked-icon-color}._checkbox_1ndou_1:disabled:checked{--current-bg-color: var(--swui-checkbox-disabled-checked-bg-color);--current-border-color: var(--swui-checkbox-disabled-border-color)}._checkbox_1ndou_1:disabled:checked:after{--current-checkbox-icon-color: var(--swui-checkbox-disabled-icon-color)}._checkbox_1ndou_1:indeterminate{--current-check-rotation: 43deg;--current-bg-color: var(--swui-checkbox-checked-bg-color);--current-border-color: var(--swui-checkbox-checked-bg-color);--d-t-e: cubic-bezier(.2, .85, .32, 1.2)}._checkbox_1ndou_1:indeterminate:after{--current-checkbox-icon-color: var(--swui-checkbox-icon-color);border-right:0;-webkit-transform:rotate(0deg);transform:rotate(0);width:6px}._checkbox_1ndou_1:indeterminate._standard_1ndou_39:after{top:4px;left:8px}._checkbox_1ndou_1:indeterminate._small_1ndou_51:after{top:0;left:4px}._checkbox_1ndou_1:indeterminate:disabled:after{--current-checkbox-icon-color: var(--swui-checkbox-disabled-icon-color)}._checkbox_1ndou_1:hover:not(:checked):not(:disabled){--current-border-color: var(--swui-checkbox-border-hover-color)}._checkbox_1ndou_1:focus-visible{outline:var(--swui-focus-outline)}._checkbox_1ndou_1+label{font-size:1.4rem;line-height:var(--swui-checkbox-height);display:inline-block;vertical-align:top;cursor:pointer;margin-left:4px}._radiobutton_foy83_1{--swui-radiobutton-size-standard: var(--swui-field-box-size-medium);--swui-radiobutton-size-small: var(--swui-field-box-size-small);--swui-radiobutton-animation-time: var(--swui-animation-time-medium);--swui-radiobutton-icon-color: var(--swui-field-indicator-active-color);--swui-radiobutton-disabled-icon-color: var(--swui-field-text-color-disabled);--swui-radiobutton-unchecked-icon-color: var( --swui-field-indicator-inactive-color );--swui-radiobutton-checked-bg-color: var(--lhds-color-blue-500);--swui-radiobutton-checked-disabled-bg-color: var(--swui-field-bg-disabled);--swui-radiobutton-unchecked-bg-color: var(--swui-white);--swui-radiobutton-unchecked-disabled-bg-color: var(--swui-field-bg-disabled);--swui-radiobutton-unchecked-border-color: var(--swui-field-border-color);--swui-radiobutton-unchecked-hover-border-color: var( --swui-field-border-color-hover );--swui-radiobutton-disabled-border-color: var( --swui-radiobutton-checked-disabled-bg-color );-webkit-appearance:none;-moz-appearance:none;outline:none;display:inline-block;vertical-align:top;position:relative;margin:0;flex:none;cursor:pointer;border:1px solid var(--current-border-color, var(--swui-radiobutton-unchecked-border-color));border-radius:50%;background:var( --current-bg-color, var(--swui-radiobutton-unchecked-bg-color) );transition:background var(--swui-radiobutton-animation-time),border-color var(--swui-radiobutton-animation-time)}._radiobutton_foy83_1._standard_foy83_45{height:var(--swui-radiobutton-size-standard);width:var(--swui-radiobutton-size-standard)}._radiobutton_foy83_1._standard_foy83_45:after{left:7px;top:7px}._radiobutton_foy83_1._small_foy83_55{height:var(--swui-radiobutton-size-small);width:var(--swui-radiobutton-size-small)}._radiobutton_foy83_1._small_foy83_55:after{left:3px;top:3px}._radiobutton_foy83_1:after{content:"";display:block;position:absolute;transition:opacity var(--current-opacity-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),-webkit-transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease);transition:transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),opacity var(--current-opacity-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease);transition:transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),opacity var(--current-opacity-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease),-webkit-transform var(--current-transform-time, var(--swui-radiobutton-animation-time)) var(--current-transform-type, ease);-webkit-transform:scale(var(--current-scale, 0));transform:scale(var(--current-scale, 0));width:8px;height:8px;border-radius:50%;background:var( --current-icon-color, var(--swui-radiobutton-unchecked-icon-color) );opacity:var(--current-opacity, 0)}._radiobutton_foy83_1:checked{--current-bg-color: var(--swui-radiobutton-checked-bg-color);--current-border-color: var(--swui-radiobutton-checked-bg-color);--current-opacity-time: var(--swui-radiobutton-animation-time);--current-transform-time: .6s;--current-transform-type: cubic-bezier(.2, .85, .32, 1.2);--current-opacity: 1;--current-scale: 1}._radiobutton_foy83_1:checked:after{--current-icon-color: var(--swui-radiobutton-icon-color)}._radiobutton_foy83_1:disabled{--current-bg-color: var(--swui-radiobutton-unchecked-disabled-bg-color);--current-border-color: var(--swui-radiobutton-disabled-border-color)}._radiobutton_foy83_1:disabled:checked{--current-bg-color: var(--swui-radiobutton-checked-disabled-bg-color)}._radiobutton_foy83_1:disabled:checked:after{--current-icon-color: var(--swui-radiobutton-disabled-icon-color)}._radiobutton_foy83_1:hover:not(:checked):not(:disabled){--current-border-color: var( --swui-radiobutton-unchecked-hover-border-color )}._radiobutton_foy83_1:focus-visible{outline:var(--swui-focus-outline)}._radiobutton_foy83_1+label{font-size:1.4rem;line-height:var(--swui-radiobutton-size-standard);display:inline-block;vertical-align:top;cursor:pointer;margin-left:4px}._radioButtonBox_1h0yy_1{--swui-radio-button-box-background: var(--lhds-color-ui-200);--swui-radio-button-box-background-danger: var(--snackskal-light);--swui-radio-button-box-border-color: var(--snackskal-light);--swui-radio-button-box-border-color-hover: var(--hav);--swui-radio-button-box-border-color-danger: var(--snackskal-light);--swui-radio-button-box-border-color-danger-hover: var(--lhds-color-red-500);--current-border-color: var(--swui-radio-button-box-border-color);box-sizing:border-box;background-color:var(--swui-radio-button-box-background);position:relative;border:1px solid var(--current-border-color);width:100%;border-radius:16px;padding:var(--swui-metrics-space);font-size:var(--swui-font-size-inputs);align-items:center;display:flex;cursor:pointer;outline:none}._radioButtonBox_1h0yy_1:hover{--current-border-color: var(--swui-radio-button-box-border-color-hover)}._radioButtonBox_1h0yy_1._danger_1h0yy_29{background-color:var(--swui-radio-button-box-background-danger);--current-border-color: var(--swui-radio-button-box-border-color-danger)}._radioButtonBox_1h0yy_1._danger_1h0yy_29:hover{--current-border-color: var( --swui-radio-button-box-border-color-danger-hover )}@media (max-width: 768px){._radioButtonWrapper_1h0yy_42{width:100%}}._textInput_axgdw_1{display:flex;height:36px;width:100%;align-items:center;background:var(--swui-field-bg-enabled);border:1px solid var(--swui-field-border-color);border-radius:var(--swui-field-border-radius);outline:none}._textInput_axgdw_1._textInput_axgdw_1:focus-within:not(._disabled_axgdw_11){outline:var(--swui-focus-outline);border-color:transparent}._textInput_axgdw_1 ._input_axgdw_16{letter-spacing:var(--swui-field-letter-spacing);line-height:var(--swui-field-text-line-height);width:100%;padding:2px var(--swui-metrics-indent);color:var(--swui-field-text-color);font-size:var(--swui-font-size-inputs);font-family:var(--swui-font-input);font-weight:var(--swui-font-weight-inputs);background:var(--swui-hidden);border:none;min-width:0;margin:0;outline:none}._textInput_axgdw_1 ._input_axgdw_16:disabled{color:var(--swui-field-text-color-disabled)}._textInput_axgdw_1 ._input_axgdw_16::-webkit-input-placeholder{color:var(--swui-field-placeholder-color);font-weight:var(--swui-field-placeholder-font-weight)}._textInput_axgdw_1 ._input_axgdw_16::placeholder{color:var(--swui-field-placeholder-color);font-weight:var(--swui-field-placeholder-font-weight)}._textInput_axgdw_1 ._input_axgdw_16:focus::-webkit-input-placeholder{opacity:0}._textInput_axgdw_1 ._input_axgdw_16:focus::placeholder{opacity:0}._textInput_axgdw_1 ._input_axgdw_16::-webkit-calendar-picker-indicator{display:none}._textInput_axgdw_1 ._icon_axgdw_49{transition:color var(--swui-animation-time-medium);color:var(--swui-field-icon-color);font-size:var(--swui-field-icon-size)}._textInput_axgdw_1._standard_axgdw_59:hover:not(:focus-within):not(._disabled_axgdw_11),._textInput_axgdw_1._success_axgdw_60:hover:not(:focus-within):not(._disabled_axgdw_11){border-color:var(--swui-field-border-color-hover)}._textInput_axgdw_1._success_axgdw_60 ._icon_axgdw_49{color:var(--swui-state-success-color)}._textInput_axgdw_1._loading_axgdw_72{background:var(--swui-state-loading-light-color);border-color:var(--swui-state-loading-color)}._textInput_axgdw_1._modified_axgdw_77{background:var(--swui-state-modified-light-color);border-color:var(--swui-state-modified-light-color)}._textInput_axgdw_1._modified_axgdw_77 ._icon_axgdw_49{color:var(--lhds-color-blue-300)}._textInput_axgdw_1._error_axgdw_86{background:var(--swui-state-error-light-color);border-color:var(--swui-state-error-light-color)}._textInput_axgdw_1._error_axgdw_86 ._icon_axgdw_49{color:var(--swui-state-error-light-color)}._textInput_axgdw_1._warning_axgdw_95{background:var(--swui-state-alert-light-color);border-color:var(--swui-state-alert-light-color)}._textInput_axgdw_1._warning_axgdw_95 ._icon_axgdw_49{color:var(--swui-state-alert-light-color)}._textInput_axgdw_1._disabled_axgdw_11{background:var(--swui-field-bg-disabled);border-color:var(--swui-field-bg-disabled)}._textInput_axgdw_1._textInput_axgdw_1._hideBorder_axgdw_109{border:none;box-shadow:none;background:none;outline:none}._textInput_axgdw_1 ._clickable_axgdw_116:hover{cursor:pointer}._textInput_axgdw_1 ._clickable_axgdw_116:hover ._icon_axgdw_49{color:var(--swui-primary-action-color)}._numericTextInputInput_1tnr6_1{-moz-appearance:textfield}._numericTextInputInput_1tnr6_1::-webkit-outer-spin-button,._numericTextInputInput_1tnr6_1::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}._textInputButton_t6d0j_1{border:none;outline:none;width:30px;height:30px;display:flex;border-radius:var(--swui-border-radius-small);justify-content:center;align-items:center;background:transparent;cursor:pointer}._textInputButton_t6d0j_1._normal_t6d0j_13:hover{background:var(--himmel-lighter)}._textInputButton_t6d0j_1._normal_t6d0j_13:active{background:var(--himmel)}._textInputButton_t6d0j_1._normal_t6d0j_13 ._icon_t6d0j_22{color:var(--core-blue)}._textInputButton_t6d0j_1._error_t6d0j_27:hover{background:var(--snackskal-light)}._textInputButton_t6d0j_1._error_t6d0j_27:active{background:var(--snackskal)}._textInputButton_t6d0j_1._error_t6d0j_27 ._icon_t6d0j_22{color:var(--modern-red)}._textInputButton_t6d0j_1:focus-visible{outline:var(--swui-focus-outline)}._labelledSelect_1evxo_1{border:1px solid var(--swui-field-border-color);border-radius:var(--swui-border-radius-large);position:relative;overflow:hidden;cursor:pointer}._labelledSelect_1evxo_1._labelledSelect_1evxo_1._onlyTopBorder_1evxo_8{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-color:transparent}._labelledSelect_1evxo_1._onlyBottomBorder_1evxo_14{border-top-left-radius:0;border-top-right-radius:0}._labelledSelect_1evxo_1._error_1evxo_19{border-color:var(--snackskal);background-color:var(--snackskal)}._labelledSelect_1evxo_1._normal_1evxo_24{border-color:var(--swui-field-border-color);background-color:var(--moln)}._labelledSelect_1evxo_1._labelledSelect_1evxo_1:focus-within{border-color:var(--swui-field-border-color-hover);outline:var(--swui-focus-outline);outline-offset:0;z-index:10}._labelledSelect_1evxo_1._labelledSelect_1evxo_1:hover{border-color:var(--swui-field-border-color-hover)}._labelledSelect_1evxo_1 ._label_1evxo_1{display:flex;position:absolute;top:var(--swui-metrics-space);left:calc(var(--swui-metrics-space) * 2);cursor:pointer}._labelledSelect_1evxo_1 ._select_1evxo_48{color:var(--swui-text-primary-color);display:block;margin:0;width:100%;-webkit-appearance:none;appearance:none;border:none;outline:none;font-size:var(--swui-font-size-inputs-large);line-height:1.5;box-sizing:border-box;cursor:pointer;padding:calc(var(--swui-metrics-space) * 5) calc(var(--swui-metrics-space) * 8) calc(var(--swui-metrics-space) * 2) calc(var(--swui-metrics-space) * 2)}._labelledSelect_1evxo_1 ._select_1evxo_48._error_1evxo_19{background-color:var(--snackskal)}._labelledSelect_1evxo_1 ._select_1evxo_48._normal_1evxo_24{background-color:var(--moln)}._labelledSelect_1evxo_1 ._iconWrapper_1evxo_73{border-radius:var(--swui-max-border-radius);width:40px;height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:calc(var(--swui-metrics-space) * 2);margin-top:auto;margin-bottom:auto;padding:0;background:var(--silver-lighter);pointer-events:none}._labelledTextInput_lnht8_1{position:relative;background:var(--moln);overflow:hidden;cursor:text;border:1px solid var(--silver-light);border-radius:var(--swui-border-radius)}._labelledTextInput_lnht8_1 input{outline:none;border:none;margin:0;color:var(--swui-text-primary-color);background-color:transparent;line-height:var(--swui-line-height);width:100%;box-sizing:border-box;cursor:text}._labelledTextInput_lnht8_1._labelledTextInput_lnht8_1._onlyTop_lnht8_21{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-color:transparent}._labelledTextInput_lnht8_1._labelledTextInput_lnht8_1._onlyBottom_lnht8_27{border-top-left-radius:0;border-top-right-radius:0}._labelledTextInput_lnht8_1:focus-within{outline:var(--swui-focus-outline);outline-offset:-1px;border-color:transparent}._labelledTextInput_lnht8_1:hover:not(:focus-within){border-color:var(--hav)}._labelledTextInput_lnht8_1._disabled_lnht8_42{background-color:var(--silver-lighter)}._labelledTextInput_lnht8_1._disabled_lnht8_42 input{color:var(--silver)}._labelledTextInput_lnht8_1._medium_lnht8_50:focus-within{outline-width:2px}._labelledTextInput_lnht8_1._medium_lnht8_50 input{font-size:var(--swui-font-size-inputs);padding:calc(var(--swui-metrics-space) * 4) calc(var(--swui-metrics-space) * 2) calc(var(--swui-metrics-space) * 1)}._labelledTextInput_lnht8_1._large_lnht8_62{border-radius:var(--swui-border-radius-large)}._labelledTextInput_lnht8_1._large_lnht8_62:focus-within{outline-width:3px}._labelledTextInput_lnht8_1._large_lnht8_62 input{font-size:var(--swui-font-size-inputs-large);padding:calc(var(--swui-metrics-space) * 5) calc(var(--swui-metrics-space) * 2) calc(var(--swui-metrics-space) * 2)}._labelledTextInput_lnht8_1._error_lnht8_76{border-color:var(--swui-state-error-light-color)}._labelledTextInput_lnht8_1._error_lnht8_76:hover:not(:focus-within){border-color:var(--modern-red)}._labelledTextInput_lnht8_1._error_lnht8_76 input{background-color:var(--swui-state-error-light-color)}._labelledTextInput_lnht8_1 label{display:flex;position:absolute;top:var(--swui-metrics-space);left:calc(var(--swui-metrics-space) * 2);cursor:text}._textArea_6n6nc_1{--swui-textarea-text-color: var(--swui-field-text-color);--swui-textarea-text-color-disabled: var(--swui-field-text-color-disabled);--swui-textarea-letter-spacing: var(--swui-field-letter-spacing);--swui-textarea-line-height: var(--swui-field-text-line-height);--swui-textarea-indent: var(--swui-metrics-indent);--swui-textarea-font-size: var(--swui-font-size-inputs);--swui-textarea-font-family: var(--swui-font-input);--swui-textarea-font-weight: var(--swui-font-weight-inputs);--swui-textarea-placeholder-color: var(--swui-text-disabled-color);--swui-textarea-animation-time: var(--swui-animation-time-medium);--swui-textarea-icon-color: var(--swui-field-border-color-disabled);--swui-textarea-icon-size: var(--swui-field-icon-size);--swui-textarea-icon-color-success: var(--swui-state-success-color);--swui-textarea-bg-loading: var(--swui-state-loading-light-color);--swui-textarea-border-color-loading: var(--swui-state-loading-color);--swui-textarea-bg-modified: var(--swui-state-modified-light-color);--swui-textarea-border-color-modified: var(--swui-state-modified-color);--swui-textarea-bg-warning: var(--swui-state-alert-light-color);--swui-textarea-border-color-warning: var(--swui-state-alert-color);--swui-textarea-bg-error: var(--swui-state-error-light-color);--swui-textarea-border-color-error: var(--swui-state-error-color);--swui-textarea-bg-color: var(--swui-field-bg-enabled);--swui-textarea-bg-color-disabled: var(--swui-field-bg-disabled);--swui-textarea-border-radius: var(--swui-field-border-radius);--swui-textarea-border-color: var(--swui-field-border-color);--swui-textarea-border-color-hover: var(--swui-field-border-color-hover);--swui-textarea-border-color-disabled: var( --swui-field-border-color-disabled );max-width:100%;letter-spacing:var(--swui-textarea-letter-spacing);line-height:var(--swui-textarea-line-height);padding:2px var(--swui-textarea-indent);color:var(--swui-textarea-text-color);font-size:var(--swui-textarea-font-size);font-family:var(--swui-textarea-font-family);font-weight:var(--swui-textarea-font-weight);background:var(--current-bg, var(--swui-textarea-bg-color));border:1px solid var(--current-border-color, var(--swui-textarea-border-color));border-radius:var(--swui-textarea-border-radius);transition:border var(--swui-textarea-animation-time);--current-icon-color: var(--swui-textarea-icon-color)}._textArea_6n6nc_1:focus:not(:focus-visible){outline:none}._textArea_6n6nc_1:focus{--current-border-color: var(--swui-textarea-border-color-hover);--current-bg: var(--swui-textarea-bg-color)}._textArea_6n6nc_1:focus-visible{outline:var(--swui-focus-outline)}._textArea_6n6nc_1:disabled{color:var(--swui-textarea-text-color-disabled);--current-bg: var(--swui-textarea-bg-color-disabled);--current-border-color: var(--swui-textarea-border-color-disabled)}')),document.head.appendChild(r)}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as o, jsxs as m, Fragment as N } from "react/jsx-runtime";
3
+ import { Box as ft, Space as y, Text as v, Row as k, ScreenReaderOnlyText as O, parseFloatElseUndefined as j, getDataProps as mt } from "@stenajs-webui/core";
4
+ import * as xt from "react";
5
+ import { forwardRef as P, useRef as U, useCallback as I, useEffect as D, useMemo as ht, useState as bt, useId as E } from "react";
6
+ import h from "classnames";
7
+ import { Icon as F, stenaCheck as G, stenaExclamationTriangle as X, InputSpinner as q, UpDownButtons as yt, stenaEyeShow as wt, stenaEyeHide as It, stenaAngleDown as gt } from "@stenajs-webui/elements";
8
+ import { FontAwesomeIcon as Bt } from "@fortawesome/react-fontawesome";
9
+ import { cssColor as J } from "@stenajs-webui/theme";
10
+ const Tt = "_knob_1d6s8_56", kt = "_filler_1d6s8_61", St = "_checked_1d6s8_75", R = {
11
+ switch: "_switch_1d6s8_1",
12
+ knob: Tt,
13
+ filler: kt,
14
+ checked: St
15
+ }, Nt = `${R.switch} ${R.checked}`, Rt = ({
17
16
  value: t,
18
17
  disabled: e,
19
- onValueChange: r,
20
- className: n,
18
+ onValueChange: n,
19
+ className: r,
21
20
  wrapperRef: c,
22
- ...i
23
- }) => /* @__PURE__ */ s("div", {
24
- className: n,
25
- ref: c,
26
- children: /* @__PURE__ */ m("button", {
21
+ ...s
22
+ }) => /* @__PURE__ */ o("div", { className: r, ref: c, children: /* @__PURE__ */ m(
23
+ "button",
24
+ {
27
25
  type: "button",
28
26
  role: "switch",
29
27
  "aria-checked": t,
30
- className: t ? ht : T.switch,
28
+ className: t ? Nt : R.switch,
31
29
  disabled: e,
32
- onClick: () => r && r(!t),
33
- ...i,
34
- children: [/* @__PURE__ */ s("div", {
35
- className: T.filler
36
- }), /* @__PURE__ */ s("div", {
37
- className: T.knob
38
- })]
39
- })
40
- }), re = ({
30
+ onClick: () => n && n(!t),
31
+ ...s,
32
+ children: [
33
+ /* @__PURE__ */ o("div", { className: R.filler }),
34
+ /* @__PURE__ */ o("div", { className: R.knob })
35
+ ]
36
+ }
37
+ ) }), je = ({
41
38
  label: t,
42
39
  disabled: e,
43
- textColor: r,
44
- wrapperRef: n,
40
+ textColor: n,
41
+ wrapperRef: r,
45
42
  ...c
46
- }) => /* @__PURE__ */ s("div", {
47
- ref: n,
48
- children: /* @__PURE__ */ s("label", {
49
- children: /* @__PURE__ */ m(rt, {
50
- row: !0,
51
- alignItems: "center",
52
- children: [/* @__PURE__ */ s(gt, {
53
- disabled: e,
54
- ...c
55
- }), /* @__PURE__ */ s(w, {}), /* @__PURE__ */ s(v, {
56
- userSelect: "none",
57
- color: r,
58
- children: t
59
- })]
60
- })
61
- })
62
- }), mt = "_checkbox_14k6d_1", kt = "_standard_14k6d_44", wt = "_small_14k6d_56", L = {
63
- checkbox: mt,
64
- standard: kt,
65
- small: wt
66
- }, xt = B(({
67
- indeterminate: t = !1,
68
- onChange: e,
69
- onValueChange: r,
70
- value: n = !1,
71
- size: c = "standard",
72
- ...i
73
- }, o) => {
74
- const l = H(), a = (f) => {
75
- l.current = f, l.current && (l.current.indeterminate = Boolean(t)), o && (typeof o == "function" ? o(f) : o.current = f);
76
- }, p = x((f) => {
77
- e && e(f), r && r(f.target.checked);
78
- }, [e, r]);
79
- return U(() => {
80
- l.current && (l.current.indeterminate = Boolean(t));
81
- }, [t, l]), /* @__PURE__ */ s("input", {
82
- type: "checkbox",
83
- className: I(L.checkbox, L[c]),
84
- checked: n,
85
- onChange: p,
86
- ref: a,
87
- ...i
88
- });
89
- }), ne = ({
43
+ }) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(ft, { row: !0, alignItems: "center", children: [
44
+ /* @__PURE__ */ o(Rt, { disabled: e, ...c }),
45
+ /* @__PURE__ */ o(y, {}),
46
+ /* @__PURE__ */ o(v, { userSelect: "none", color: n, children: t })
47
+ ] }) }) }), vt = "_checkbox_1ndou_1", $t = "_standard_1ndou_39", At = "_small_1ndou_51", K = {
48
+ checkbox: vt,
49
+ standard: $t,
50
+ small: At
51
+ }, Ht = P(
52
+ ({
53
+ indeterminate: t = !1,
54
+ onChange: e,
55
+ onValueChange: n,
56
+ value: r = !1,
57
+ size: c = "standard",
58
+ className: s,
59
+ ...l
60
+ }, a) => {
61
+ const i = U(), f = (u) => {
62
+ i.current = u, i.current && (i.current.indeterminate = Boolean(t)), a && (typeof a == "function" ? a(u) : a.current = u);
63
+ }, p = I(
64
+ (u) => {
65
+ e && e(u), n && n(u.target.checked);
66
+ },
67
+ [e, n]
68
+ );
69
+ return D(() => {
70
+ i.current && (i.current.indeterminate = Boolean(t));
71
+ }, [t, i]), /* @__PURE__ */ o(
72
+ "input",
73
+ {
74
+ type: "checkbox",
75
+ className: h(K.checkbox, K[c], s),
76
+ checked: r,
77
+ onChange: p,
78
+ ref: f,
79
+ ...l
80
+ }
81
+ );
82
+ }
83
+ ), Pe = ({
90
84
  children: t,
91
85
  label: e,
92
- inputRef: r,
93
- wrapperRef: n,
86
+ inputRef: n,
87
+ wrapperRef: r,
94
88
  textColor: c,
95
- ...i
96
- }) => /* @__PURE__ */ s("div", {
97
- ref: n,
98
- children: /* @__PURE__ */ s("label", {
99
- children: /* @__PURE__ */ m(j, {
100
- alignItems: "center",
101
- children: [/* @__PURE__ */ s(xt, {
102
- ...i,
103
- ref: r
104
- }), /* @__PURE__ */ s(w, {}), e && /* @__PURE__ */ s(v, {
105
- userSelect: "none",
106
- color: c,
107
- children: e
108
- }), t]
109
- })
110
- })
111
- }), bt = "_radiobutton_i2gqw_1", It = "_standard_i2gqw_52", yt = "_small_i2gqw_62", P = {
112
- radiobutton: bt,
113
- standard: It,
114
- small: yt
115
- }, Rt = B(({
116
- onChange: t,
117
- onValueChange: e,
118
- size: r = "standard",
119
- name: n,
120
- ...c
121
- }, i) => {
122
- const o = x((l) => {
123
- t && t(l), e && e(l.target.value);
124
- }, [t, e]);
125
- return /* @__PURE__ */ s("input", {
126
- type: "radio",
127
- name: n,
128
- className: P.radiobutton + " " + P[r],
129
- onChange: o,
130
- ref: i,
131
- ...c
132
- });
133
- }), ce = ({
89
+ ...s
90
+ }) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(k, { alignItems: "center", children: [
91
+ /* @__PURE__ */ o(Ht, { ...s, ref: n }),
92
+ /* @__PURE__ */ o(y, {}),
93
+ e && /* @__PURE__ */ o(v, { userSelect: "none", color: c, children: e }),
94
+ t
95
+ ] }) }) }), Wt = "_radiobutton_foy83_1", jt = "_standard_foy83_45", Pt = "_small_foy83_55", M = {
96
+ radiobutton: Wt,
97
+ standard: jt,
98
+ small: Pt
99
+ }, Q = P(
100
+ ({ onChange: t, onValueChange: e, size: n = "standard", name: r, ...c }, s) => {
101
+ const l = I(
102
+ (a) => {
103
+ t && t(a), e && e(a.target.value);
104
+ },
105
+ [t, e]
106
+ );
107
+ return /* @__PURE__ */ o(
108
+ "input",
109
+ {
110
+ type: "radio",
111
+ name: r,
112
+ className: M.radiobutton + " " + M[n],
113
+ onChange: l,
114
+ ref: s,
115
+ ...c
116
+ }
117
+ );
118
+ }
119
+ ), Ut = "_radioButtonBox_1h0yy_1", Ft = "_danger_1h0yy_29", Lt = "_radioButtonWrapper_1h0yy_42", z = {
120
+ radioButtonBox: Ut,
121
+ danger: Ft,
122
+ radioButtonWrapper: Lt
123
+ }, Ue = ({
124
+ label: t,
125
+ screenReaderLabel: e,
126
+ variant: n = "normal",
127
+ icon: r,
128
+ className: c,
129
+ style: s,
130
+ ...l
131
+ }) => /* @__PURE__ */ o(
132
+ "label",
133
+ {
134
+ className: h(z.radioButtonBox, z[n], c),
135
+ style: s,
136
+ children: /* @__PURE__ */ m(k, { justifyContent: "space-between", flexGrow: 1, children: [
137
+ /* @__PURE__ */ m(k, { alignItems: "center", children: [
138
+ /* @__PURE__ */ o(Q, { ...l }),
139
+ /* @__PURE__ */ o(y, {}),
140
+ e ? /* @__PURE__ */ o(O, { children: e }) : null,
141
+ /* @__PURE__ */ o(v, { "aria-hidden": Boolean(e), children: t })
142
+ ] }),
143
+ /* @__PURE__ */ o(k, { alignItems: "center", width: "48px", justifyContent: "center", children: r && /* @__PURE__ */ o(F, { icon: r, size: 24 }) })
144
+ ] })
145
+ }
146
+ ), Fe = ({
134
147
  label: t,
135
148
  inputRef: e,
136
- wrapperRef: r,
137
- textColor: n,
149
+ wrapperRef: n,
150
+ textColor: r,
138
151
  ...c
139
- }) => /* @__PURE__ */ s("div", {
140
- ref: r,
141
- children: /* @__PURE__ */ s("label", {
142
- children: /* @__PURE__ */ m(j, {
143
- alignItems: "center",
144
- children: [/* @__PURE__ */ s(Rt, {
145
- ref: e,
146
- ...c
147
- }), /* @__PURE__ */ s(w, {}), /* @__PURE__ */ s(v, {
148
- color: n,
149
- userSelect: "none",
150
- children: t
151
- })]
152
- })
153
- })
154
- }), Tt = (t, e, r, n, c, i, o, l) => {
155
- const a = H(!1), p = (u) => {
156
- var d;
157
- a.current || i == null || i((d = u.target.value) != null ? d : ""), o == null || o(u);
158
- }, f = (u) => {
159
- a.current = !1, l == null || l(u);
152
+ }) => /* @__PURE__ */ o("div", { ref: n, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(k, { alignItems: "center", children: [
153
+ /* @__PURE__ */ o(Q, { ref: e, ...c }),
154
+ /* @__PURE__ */ o(y, {}),
155
+ /* @__PURE__ */ o(v, { color: r, userSelect: "none", children: t })
156
+ ] }) }) }), Kt = (t, e, n, r, c, s, l, a) => {
157
+ const i = U(!1), f = (d) => {
158
+ var _;
159
+ i.current || s == null || s((_ = d.target.value) != null ? _ : ""), l == null || l(d);
160
+ }, p = (d) => {
161
+ i.current = !1, a == null || a(d);
160
162
  };
161
163
  return {
162
- onKeyDownHandler: x(
163
- (u) => {
164
- var k;
165
- const { key: d } = u;
166
- if (d === "Enter")
167
- a.current = !0, r == null || r(), i == null || i((k = u.currentTarget.value) != null ? k : "");
168
- else if (d === "Escape")
169
- a.current = !0, n == null || n(), u.preventDefault(), u.stopPropagation();
164
+ onKeyDownHandler: I(
165
+ (d) => {
166
+ var b;
167
+ const { key: _ } = d;
168
+ if (_ === "Enter")
169
+ i.current = !0, n == null || n(), s == null || s((b = d.currentTarget.value) != null ? b : "");
170
+ else if (_ === "Escape")
171
+ i.current = !0, r == null || r(), d.preventDefault(), d.stopPropagation();
170
172
  else if (c) {
171
- const _ = (y, b) => {
172
- a.current = !0, t.current.blur(), c(y), b.preventDefault(), b.stopPropagation();
173
+ const x = (g, B) => {
174
+ i.current = !0, t.current.blur(), c(g), B.preventDefault(), B.stopPropagation();
173
175
  };
174
- u.shiftKey && d === "Tab" ? _("left", u) : d === "Tab" ? _("right", u) : d === "ArrowUp" ? _("up", u) : d === "ArrowDown" ? _("down", u) : d === "ArrowRight" ? t.current.value.length === t.current.selectionStart && _("right", u) : d === "ArrowLeft" && t.current.selectionStart === 0 && _("left", u);
176
+ d.shiftKey && _ === "Tab" ? x("left", d) : _ === "Tab" ? x("right", d) : _ === "ArrowUp" ? x("up", d) : _ === "ArrowDown" ? x("down", d) : _ === "ArrowRight" ? t.current.value.length === t.current.selectionStart && x("right", d) : _ === "ArrowLeft" && t.current.selectionStart === 0 && x("left", d);
175
177
  }
176
- e && e(u);
178
+ e && e(d);
177
179
  },
178
- [n, c, e, t, r, i]
180
+ [r, c, e, t, n, s]
179
181
  ),
180
- onBlurHandler: p,
181
- onFocusHandler: f
182
+ onBlurHandler: f,
183
+ onFocusHandler: p
182
184
  };
183
185
  };
184
- function St(t) {
186
+ function Mt(t) {
185
187
  return t.tagName === "TEXTAREA" || t.tagName === "INPUT" && (t.type === "text" || t.type === "search" || t.type === "url" || t.type === "tel" || t.type === "password");
186
188
  }
187
- const Nt = (t, e, r) => {
188
- U(() => {
189
- !t.current || !St(t.current) || (r ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
189
+ const zt = (t, e, n) => {
190
+ D(() => {
191
+ !t.current || !Mt(t.current) || (n ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
190
192
  t.current.value.length,
191
193
  t.current.value.length
192
194
  ));
193
- }, [e, t, r]);
194
- }, vt = (t, {
195
+ }, [e, t, n]);
196
+ }, Ot = (t, {
195
197
  onEnter: e,
196
- onEsc: r,
197
- onChange: n,
198
+ onEsc: n,
199
+ onChange: r,
198
200
  onValueChange: c,
199
- selectAllOnMount: i,
200
- moveCursorToEndOnMount: o,
201
- onDone: l,
202
- onMove: a,
203
- onFocus: p,
204
- onBlur: f,
205
- onKeyDown: h,
206
- autoFocus: u
201
+ selectAllOnMount: s,
202
+ moveCursorToEndOnMount: l,
203
+ onDone: a,
204
+ onMove: i,
205
+ onFocus: f,
206
+ onBlur: p,
207
+ onKeyDown: u,
208
+ autoFocus: d
207
209
  }) => {
208
- Nt(t, !!o, !!i);
209
- const { onKeyDownHandler: d, onFocusHandler: k, onBlurHandler: _ } = Tt(
210
+ zt(t, !!l, !!s);
211
+ const { onKeyDownHandler: _, onFocusHandler: b, onBlurHandler: x } = Kt(
210
212
  t,
211
- h,
213
+ u,
212
214
  e,
213
- r,
215
+ n,
216
+ i,
214
217
  a,
215
- l,
216
- f,
217
- p
218
- ), y = x(
219
- (b) => {
220
- n == null || n(b), c == null || c(b.target.value);
218
+ p,
219
+ f
220
+ ), g = I(
221
+ (B) => {
222
+ r == null || r(B), c == null || c(B.target.value);
221
223
  },
222
- [n, c]
224
+ [r, c]
223
225
  );
224
226
  return {
225
- onBlur: _,
226
- onChange: y,
227
- onFocus: k,
228
- onKeyDown: d,
229
- autoFocus: i || u
227
+ onBlur: x,
228
+ onChange: g,
229
+ onFocus: b,
230
+ onKeyDown: _,
231
+ autoFocus: s || d
230
232
  };
231
- }, jt = "_textInput_ijduv_1", At = "_disabled_ijduv_61", Bt = "_input_ijduv_67", Ht = "_standard_ijduv_102", $t = "_success_ijduv_103", Lt = "_loading_ijduv_115", Pt = "_modified_ijduv_120", Ut = "_error_ijduv_126", qt = "_warning_ijduv_132", Ft = "_hideBorder_ijduv_143", Kt = "_clickable_ijduv_149", Mt = "_icon_ijduv_154", g = {
232
- textInput: jt,
233
- disabled: At,
234
- input: Bt,
235
- standard: Ht,
236
- success: $t,
237
- loading: Lt,
238
- modified: Pt,
239
- error: Ut,
240
- warning: qt,
241
- hideBorder: Ft,
242
- clickable: Kt,
243
- icon: Mt
244
- }, S = ({
245
- icon: t,
246
- iconClassName: e,
233
+ }, Dt = "_textInput_axgdw_1", Et = "_disabled_axgdw_11", Gt = "_input_axgdw_16", Xt = "_icon_axgdw_49", qt = "_standard_axgdw_59", Jt = "_success_axgdw_60", Qt = "_loading_axgdw_72", Yt = "_modified_axgdw_77", Zt = "_error_axgdw_86", Ct = "_warning_axgdw_95", Vt = "_hideBorder_axgdw_109", te = "_clickable_axgdw_116", w = {
234
+ textInput: Dt,
235
+ disabled: Et,
236
+ input: Gt,
237
+ icon: Xt,
238
+ standard: qt,
239
+ success: Jt,
240
+ loading: Qt,
241
+ modified: Yt,
242
+ error: Zt,
243
+ warning: Ct,
244
+ hideBorder: Vt,
245
+ clickable: te
246
+ }, $ = ({
247
+ button: t,
248
+ icon: e,
249
+ iconClassName: n,
247
250
  content: r,
248
- spaceOnLeft: n,
249
- spaceOnRight: c,
250
- disableContentPadding: i,
251
- disableContentPaddingLeft: o,
252
- disableContentPaddingRight: l,
253
- onClick: a
254
- }) => !r && !t ? null : r ? /* @__PURE__ */ m(R, {
255
- children: [n && !(i || o) ? /* @__PURE__ */ s(w, {}) : null, a ? /* @__PURE__ */ s("span", {
256
- onClick: a,
257
- className: g.clickable,
258
- children: r || null
259
- }) : /* @__PURE__ */ s(R, {
260
- children: r || null
261
- }), c && !(i || l) ? /* @__PURE__ */ s(w, {}) : null]
262
- }) : /* @__PURE__ */ m(R, {
263
- children: [n ? /* @__PURE__ */ s(w, {}) : null, t && /* @__PURE__ */ s(R, {
264
- children: a ? /* @__PURE__ */ s(st, {
265
- type: "button",
266
- onClick: a,
267
- leftIcon: t,
268
- size: "small"
269
- }) : /* @__PURE__ */ s(lt, {
270
- icon: t,
271
- className: I(g.icon, e)
272
- })
273
- }), c ? /* @__PURE__ */ s(w, {}) : null]
274
- }), K = (t) => {
251
+ spaceOnLeft: c,
252
+ spaceOnRight: s,
253
+ disableContentPadding: l,
254
+ disableContentPaddingLeft: a,
255
+ disableContentPaddingRight: i
256
+ }) => !r && !e && !t ? null : t ? /* @__PURE__ */ m(N, { children: [
257
+ c ? /* @__PURE__ */ o(y, { num: 0.25 }) : null,
258
+ t,
259
+ s ? /* @__PURE__ */ o(y, { num: 0.25 }) : null
260
+ ] }) : r ? /* @__PURE__ */ m(N, { children: [
261
+ c && !(l || a) ? /* @__PURE__ */ o(y, {}) : null,
262
+ r || null,
263
+ s && !(l || i) ? /* @__PURE__ */ o(y, {}) : null
264
+ ] }) : /* @__PURE__ */ m(N, { children: [
265
+ c ? /* @__PURE__ */ o(y, {}) : null,
266
+ e && /* @__PURE__ */ o(
267
+ Bt,
268
+ {
269
+ icon: e,
270
+ className: h(w.icon, n)
271
+ }
272
+ ),
273
+ s ? /* @__PURE__ */ o(y, {}) : null
274
+ ] }), Y = (t) => {
275
275
  const {
276
276
  variant: e = "standard",
277
- inputRef: r,
278
- disabled: n,
277
+ inputRef: n,
278
+ disabled: r,
279
279
  className: c,
280
- contentLeft: i,
281
- contentRight: o,
282
- disableContentPadding: l,
283
- disableContentPaddingLeft: a,
284
- disableContentPaddingRight: p,
285
- iconLeft: f,
286
- iconRight: h,
287
- onClickLeft: u,
288
- onClickRight: d,
289
- moveCursorToEndOnMount: k,
290
- selectAllOnMount: _,
291
- autoFocus: y,
292
- onValueChange: b,
293
- wrapperClassName: M,
294
- wrapperStyle: O,
295
- onDone: W,
296
- onEnter: C,
297
- onEsc: E,
298
- onMove: z,
299
- onChange: X,
300
- onKeyDown: G,
301
- hideBorder: J,
302
- onFocus: Q,
303
- onBlur: Y,
304
- ...Z
305
- } = t, D = H(null), $ = r != null ? r : D, V = vt($, {
306
- onEnter: C,
307
- onEsc: E,
308
- onChange: X,
309
- onValueChange: b,
310
- selectAllOnMount: _,
311
- moveCursorToEndOnMount: k,
312
- onDone: W,
313
- onMove: z,
314
- onFocus: Q,
315
- onBlur: Y,
316
- onKeyDown: G,
317
- autoFocus: y
318
- }), tt = e === "success" ? q : e === "warning" || e === "error" ? it : h, et = e === "loading" ? /* @__PURE__ */ s(F, {}) : o;
319
- return /* @__PURE__ */ m("div", {
320
- className: I(g.textInput, g[e], {
321
- [g.disabled]: n
322
- }, {
323
- [g.hideBorder]: J
324
- }, M),
325
- style: O,
326
- children: [/* @__PURE__ */ s(S, {
327
- content: i,
328
- disableContentPadding: l,
329
- disableContentPaddingLeft: a,
330
- disableContentPaddingRight: p,
331
- icon: f,
332
- spaceOnLeft: !0,
333
- onClick: u
334
- }), /* @__PURE__ */ s("input", {
335
- className: I(g.input, c),
336
- type: "text",
337
- disabled: n,
338
- ref: $,
339
- autoFocus: y,
340
- ...Z,
341
- ...V
342
- }), /* @__PURE__ */ s(S, {
343
- content: et,
344
- disableContentPadding: l,
345
- disableContentPaddingLeft: a,
346
- disableContentPaddingRight: p,
347
- icon: tt,
348
- spaceOnRight: !0,
349
- onClick: d
350
- })]
351
- });
352
- }, Ot = "_numericTextInputInput_1tnr6_1", Wt = {
353
- numericTextInputInput: Ot
354
- }, Ct = ({
280
+ buttonLeft: s,
281
+ buttonRight: l,
282
+ contentLeft: a,
283
+ contentRight: i,
284
+ disableContentPadding: f,
285
+ disableContentPaddingLeft: p,
286
+ disableContentPaddingRight: u,
287
+ iconLeft: d,
288
+ iconRight: _,
289
+ moveCursorToEndOnMount: b,
290
+ selectAllOnMount: x,
291
+ autoFocus: g,
292
+ onValueChange: B,
293
+ wrapperClassName: C,
294
+ wrapperStyle: V,
295
+ onDone: tt,
296
+ onEnter: et,
297
+ onEsc: nt,
298
+ onMove: rt,
299
+ onChange: ot,
300
+ onKeyDown: ct,
301
+ hideBorder: st,
302
+ onFocus: lt,
303
+ onBlur: it,
304
+ ...at
305
+ } = t, dt = U(null), L = n != null ? n : dt, ut = Ot(L, {
306
+ onEnter: et,
307
+ onEsc: nt,
308
+ onChange: ot,
309
+ onValueChange: B,
310
+ selectAllOnMount: x,
311
+ moveCursorToEndOnMount: b,
312
+ onDone: tt,
313
+ onMove: rt,
314
+ onFocus: lt,
315
+ onBlur: it,
316
+ onKeyDown: ct,
317
+ autoFocus: g
318
+ }), _t = e === "success" ? G : e === "warning" || e === "error" ? X : _, pt = e === "loading" ? /* @__PURE__ */ o(q, {}) : i;
319
+ return /* @__PURE__ */ m(
320
+ "div",
321
+ {
322
+ className: h(
323
+ w.textInput,
324
+ w[e],
325
+ {
326
+ [w.disabled]: r
327
+ },
328
+ {
329
+ [w.hideBorder]: st
330
+ },
331
+ C
332
+ ),
333
+ style: V,
334
+ children: [
335
+ /* @__PURE__ */ o(
336
+ $,
337
+ {
338
+ content: a,
339
+ disableContentPadding: f,
340
+ disableContentPaddingLeft: p,
341
+ disableContentPaddingRight: u,
342
+ icon: d,
343
+ spaceOnLeft: !0,
344
+ button: s
345
+ }
346
+ ),
347
+ /* @__PURE__ */ o(
348
+ "input",
349
+ {
350
+ className: h(w.input, c),
351
+ type: "text",
352
+ disabled: r,
353
+ ref: L,
354
+ autoFocus: g,
355
+ ...at,
356
+ ...ut
357
+ }
358
+ ),
359
+ /* @__PURE__ */ o(
360
+ $,
361
+ {
362
+ content: pt,
363
+ disableContentPadding: f,
364
+ disableContentPaddingLeft: p,
365
+ disableContentPaddingRight: u,
366
+ icon: _t,
367
+ spaceOnRight: !0,
368
+ button: l
369
+ }
370
+ )
371
+ ]
372
+ }
373
+ );
374
+ }, ee = "_numericTextInputInput_1tnr6_1", ne = {
375
+ numericTextInputInput: ee
376
+ }, re = ({
355
377
  onValueChange: t,
356
378
  value: e,
357
- numSteps: r,
358
- min: n,
379
+ numSteps: n,
380
+ min: r,
359
381
  max: c
360
382
  }) => {
361
383
  if (t)
362
384
  if (!e)
363
- t(String(N(r, n, c)));
385
+ t(String(H(n, r, c)));
364
386
  else {
365
- const o = (A(e) || 0) + r;
366
- t(String(N(o, n, c)));
387
+ const l = (j(e) || 0) + n;
388
+ t(String(H(l, r, c)));
367
389
  }
368
- }, Et = ({
390
+ }, oe = ({
369
391
  onValueChange: t,
370
392
  newValue: e,
371
- min: r,
372
- max: n
393
+ min: n,
394
+ max: r
373
395
  }) => {
374
396
  if (t)
375
397
  if (e === "")
376
398
  t("");
377
399
  else {
378
- const i = A(e) || 0;
379
- t(String(N(i, r, n)));
400
+ const s = j(e) || 0;
401
+ t(String(H(s, n, r)));
380
402
  }
381
- }, N = (t, e, r) => {
382
- let n = t;
383
- return e != null && (n = Math.max(e, n)), r != null && (n = Math.min(r, n)), n;
384
- }, se = ({
403
+ }, H = (t, e, n) => {
404
+ let r = t;
405
+ return e != null && (r = Math.max(e, r)), n != null && (r = Math.min(n, r)), r;
406
+ }, Le = ({
385
407
  value: t,
386
408
  onValueChange: e,
387
- max: r,
388
- min: n,
409
+ max: n,
410
+ min: r,
389
411
  step: c = 1,
390
- contentRight: i,
391
- disabled: o,
392
- className: l,
393
- hideButtons: a,
394
- ...p
412
+ contentRight: s,
413
+ disabled: l,
414
+ className: a,
415
+ hideButtons: i,
416
+ ...f
395
417
  }) => {
396
- const f = x((d) => {
397
- Ct({
398
- onValueChange: e,
418
+ const p = I(
419
+ (_) => {
420
+ re({ onValueChange: e, value: t, numSteps: _, min: r, max: n });
421
+ },
422
+ [t, n, r, e]
423
+ ), u = I(
424
+ (_) => {
425
+ oe({ onValueChange: e, newValue: _, min: r, max: n });
426
+ },
427
+ [n, r, e]
428
+ );
429
+ return /* @__PURE__ */ o(
430
+ Y,
431
+ {
432
+ contentRight: i ? s : /* @__PURE__ */ m(N, { children: [
433
+ s && /* @__PURE__ */ m(N, { children: [
434
+ s,
435
+ /* @__PURE__ */ o(y, {})
436
+ ] }),
437
+ /* @__PURE__ */ o(
438
+ yt,
439
+ {
440
+ onClickUp: l ? void 0 : () => p(c),
441
+ onClickDown: l ? void 0 : () => p(-c),
442
+ iconColor: "var(--swui-textinput-text-color)",
443
+ disabled: l
444
+ }
445
+ )
446
+ ] }),
399
447
  value: t,
400
- numSteps: d,
401
- min: n,
402
- max: r
403
- });
404
- }, [t, r, n, e]), h = x((d) => {
405
- Et({
406
- onValueChange: e,
407
- newValue: d,
408
- min: n,
409
- max: r
410
- });
411
- }, [r, n, e]);
412
- return /* @__PURE__ */ s(K, {
413
- contentRight: a ? i : /* @__PURE__ */ m(R, {
414
- children: [i && /* @__PURE__ */ m(R, {
415
- children: [i, /* @__PURE__ */ s(w, {})]
416
- }), /* @__PURE__ */ s(ot, {
417
- onClickUp: o ? void 0 : () => f(c),
418
- onClickDown: o ? void 0 : () => f(-c),
419
- iconColor: "var(--swui-textinput-text-color)",
420
- disabled: o
421
- })]
422
- }),
423
- value: t,
424
- onValueChange: h,
425
- disableContentPaddingRight: !a,
426
- type: "number",
427
- min: n,
428
- max: r,
429
- step: c,
430
- className: I(Wt.numericTextInputInput, l),
431
- disabled: o,
432
- ...p
433
- });
434
- }, ie = (t, e) => {
435
- const r = x(
448
+ onValueChange: u,
449
+ disableContentPaddingRight: !i,
450
+ type: "number",
451
+ min: r,
452
+ max: n,
453
+ step: c,
454
+ className: h(ne.numericTextInputInput, a),
455
+ disabled: l,
456
+ ...f
457
+ }
458
+ );
459
+ }, Ke = (t, e) => {
460
+ const n = I(
436
461
  (c) => {
437
462
  if (e)
438
463
  if (!c)
439
464
  e(void 0);
440
465
  else {
441
- const i = A(c);
442
- i !== void 0 && e(i);
466
+ const s = j(c);
467
+ s !== void 0 && e(s);
443
468
  }
444
469
  },
445
470
  [e]
446
- ), n = nt(() => t === void 0 ? "" : String(t), [t]);
471
+ ), r = ht(() => t === void 0 ? "" : String(t), [t]);
447
472
  return {
448
- onValueChange: r,
449
- value: n
473
+ onValueChange: n,
474
+ value: r
450
475
  };
451
- }, oe = ({
452
- hiddenIcon: t = at,
453
- visibleIcon: e = ut,
476
+ }, ce = "_textInputButton_t6d0j_1", se = "_normal_t6d0j_13", le = "_icon_t6d0j_22", ie = "_error_t6d0j_27", A = {
477
+ textInputButton: ce,
478
+ normal: se,
479
+ icon: le,
480
+ error: ie
481
+ }, W = ({
482
+ variant: t = "normal",
483
+ icon: e,
484
+ className: n,
454
485
  ...r
486
+ }) => /* @__PURE__ */ o(
487
+ "button",
488
+ {
489
+ ...r,
490
+ className: h(A.textInputButton, A[t], n),
491
+ children: /* @__PURE__ */ o(F, { icon: e, size: 20, className: A.icon })
492
+ }
493
+ ), Me = ({
494
+ hiddenIcon: t = wt,
495
+ visibleIcon: e = It,
496
+ ...n
455
497
  }) => {
456
- const [n, c] = ct(!0);
457
- return /* @__PURE__ */ s(K, {
458
- iconRight: n ? t : e,
459
- onClickRight: () => c((i) => !i),
460
- type: n ? "password" : "text",
461
- ...r
462
- });
463
- }, le = ({
498
+ const [r, c] = bt(!0);
499
+ return /* @__PURE__ */ o(
500
+ Y,
501
+ {
502
+ buttonRight: /* @__PURE__ */ o(
503
+ W,
504
+ {
505
+ icon: r ? t : e,
506
+ onClick: () => c((s) => !s)
507
+ }
508
+ ),
509
+ type: r ? "password" : "text",
510
+ ...n
511
+ }
512
+ );
513
+ }, ae = ({
514
+ disabled: t,
515
+ text: e,
516
+ ...n
517
+ }) => /* @__PURE__ */ o(
518
+ v,
519
+ {
520
+ variant: "bold",
521
+ color: J(t ? "--silver" : "--tjara"),
522
+ size: "small",
523
+ ...mt(n),
524
+ children: e
525
+ }
526
+ ), Z = ({
527
+ htmlFor: t,
528
+ screenReaderLabel: e,
529
+ label: n,
530
+ disabled: r,
531
+ className: c
532
+ }) => /* @__PURE__ */ m("label", { htmlFor: t, className: c, children: [
533
+ e ? /* @__PURE__ */ o(O, { children: e }) : null,
534
+ /* @__PURE__ */ o(
535
+ ae,
536
+ {
537
+ "aria-hidden": Boolean(e),
538
+ text: n,
539
+ disabled: r
540
+ }
541
+ )
542
+ ] }), de = "_labelledSelect_1evxo_1", ue = "_onlyTopBorder_1evxo_8", _e = "_onlyBottomBorder_1evxo_14", pe = "_error_1evxo_19", fe = "_normal_1evxo_24", me = "_label_1evxo_1", xe = "_select_1evxo_48", he = "_iconWrapper_1evxo_73", T = {
543
+ labelledSelect: de,
544
+ onlyTopBorder: ue,
545
+ onlyBottomBorder: _e,
546
+ error: pe,
547
+ normal: fe,
548
+ label: me,
549
+ select: xe,
550
+ iconWrapper: he
551
+ }, ze = ({
552
+ onChange: t,
553
+ onValueChange: e,
554
+ id: n,
555
+ label: r,
556
+ screenReaderLabel: c,
557
+ borderVariant: s = "normalBorder",
558
+ variant: l = "normal",
559
+ children: a,
560
+ ...i
561
+ }) => {
562
+ const f = E(), p = n != null ? n : f, u = I(
563
+ (d) => {
564
+ t == null || t(d), e == null || e(d.target.value);
565
+ },
566
+ [t, e]
567
+ );
568
+ return /* @__PURE__ */ m(
569
+ "div",
570
+ {
571
+ className: h(
572
+ T.labelledSelect,
573
+ T[l],
574
+ T[s]
575
+ ),
576
+ children: [
577
+ /* @__PURE__ */ o(
578
+ Z,
579
+ {
580
+ htmlFor: p,
581
+ className: T.label,
582
+ label: r,
583
+ screenReaderLabel: c
584
+ }
585
+ ),
586
+ /* @__PURE__ */ o(
587
+ "select",
588
+ {
589
+ id: p,
590
+ onChange: u,
591
+ className: h(T.select, T[l]),
592
+ ...i,
593
+ children: a
594
+ }
595
+ ),
596
+ /* @__PURE__ */ o("div", { className: h(T.iconWrapper), children: /* @__PURE__ */ o(
597
+ F,
598
+ {
599
+ icon: gt,
600
+ size: 24,
601
+ color: J("--modern-blue")
602
+ }
603
+ ) })
604
+ ]
605
+ }
606
+ );
607
+ }, be = "_labelledTextInput_lnht8_1", ye = "_onlyTop_lnht8_21", we = "_onlyBottom_lnht8_27", Ie = "_disabled_lnht8_42", ge = "_medium_lnht8_50", Be = "_large_lnht8_62", Te = "_error_lnht8_76", S = {
608
+ labelledTextInput: be,
609
+ onlyTop: ye,
610
+ onlyBottom: we,
611
+ disabled: Ie,
612
+ medium: ge,
613
+ large: Be,
614
+ error: Te
615
+ }, Oe = xt.forwardRef(
616
+ ({
617
+ autoComplete: t = "off",
618
+ label: e,
619
+ id: n,
620
+ screenReaderLabel: r,
621
+ size: c = "medium",
622
+ value: s,
623
+ onChange: l,
624
+ disabled: a,
625
+ onValueChange: i,
626
+ borderRadiusVariant: f = "normalBorder",
627
+ variant: p = "normal",
628
+ ...u
629
+ }, d) => {
630
+ const _ = E(), b = n != null ? n : _, x = I(
631
+ (g) => {
632
+ l == null || l(g), i == null || i(g.target.value);
633
+ },
634
+ [l, i]
635
+ );
636
+ return /* @__PURE__ */ m(
637
+ "div",
638
+ {
639
+ className: h(
640
+ S.labelledTextInput,
641
+ S[p],
642
+ S[f],
643
+ S[c],
644
+ a && S.disabled
645
+ ),
646
+ children: [
647
+ /* @__PURE__ */ o(
648
+ Z,
649
+ {
650
+ htmlFor: b,
651
+ screenReaderLabel: r,
652
+ label: e
653
+ }
654
+ ),
655
+ /* @__PURE__ */ o(
656
+ "input",
657
+ {
658
+ ref: d,
659
+ id: b,
660
+ autoComplete: t,
661
+ type: "text",
662
+ value: s,
663
+ onChange: x,
664
+ disabled: a,
665
+ ...u
666
+ }
667
+ )
668
+ ]
669
+ }
670
+ );
671
+ }
672
+ ), De = ({
464
673
  variant: t = "standard",
465
674
  disabled: e,
466
- wrapperClassName: r,
467
- wrapperStyle: n,
675
+ wrapperClassName: n,
676
+ wrapperStyle: r,
468
677
  contentLeft: c,
469
- contentRight: i,
470
- disableContentPadding: o,
471
- disableContentPaddingLeft: l,
472
- disableContentPaddingRight: a,
473
- iconRight: p,
474
- iconLeft: f,
475
- onClickLeft: h,
476
- onClickRight: u,
477
- children: d
678
+ contentRight: s,
679
+ disableContentPadding: l,
680
+ disableContentPaddingLeft: a,
681
+ disableContentPaddingRight: i,
682
+ iconRight: f,
683
+ iconLeft: p,
684
+ onClickLeft: u,
685
+ onClickRight: d,
686
+ children: _
478
687
  }) => {
479
- const k = t === "success" ? q : t === "warning" || t === "error" ? dt : p, _ = t === "loading" ? /* @__PURE__ */ s(F, {}) : i;
480
- return /* @__PURE__ */ m("div", {
481
- className: I(g.textInput, g.inputContainer, g[t], {
482
- [g.disabled]: e
483
- }, r),
484
- style: n,
485
- children: [/* @__PURE__ */ s(S, {
486
- content: c,
487
- disableContentPadding: o,
488
- disableContentPaddingLeft: l,
489
- disableContentPaddingRight: a,
490
- icon: f,
491
- spaceOnLeft: !0,
492
- onClick: h
493
- }), /* @__PURE__ */ s(j, {
494
- alignItems: "center",
495
- children: d
496
- }), /* @__PURE__ */ s(S, {
497
- content: _,
498
- disableContentPadding: o,
499
- disableContentPaddingLeft: l,
500
- disableContentPaddingRight: a,
501
- icon: k,
502
- spaceOnRight: !0,
503
- onClick: u
504
- })]
505
- });
506
- }, zt = "_textArea_1ta4a_1", Xt = {
507
- textArea: zt
508
- }, ae = B(({
509
- className: t,
510
- value: e,
511
- onValueChange: r,
512
- onChange: n,
513
- resize: c = "none",
514
- readOnly: i = !1,
515
- rows: o,
516
- disabled: l,
517
- ...a
518
- }, p) => {
519
- const f = x((h) => {
520
- n && n(h), r && r(h.target.value);
521
- }, [n, r]);
522
- return /* @__PURE__ */ s("textarea", {
523
- disabled: l,
524
- rows: o,
525
- readOnly: i,
526
- className: I(Xt.textArea, t),
527
- style: {
528
- resize: c
529
- },
530
- onChange: f,
688
+ const b = t === "success" ? G : t === "warning" || t === "error" ? X : f, x = t === "loading" ? /* @__PURE__ */ o(q, {}) : s;
689
+ return /* @__PURE__ */ m(
690
+ "div",
691
+ {
692
+ className: h(
693
+ w.textInput,
694
+ w.inputContainer,
695
+ w[t],
696
+ {
697
+ [w.disabled]: e
698
+ },
699
+ n
700
+ ),
701
+ style: r,
702
+ children: [
703
+ /* @__PURE__ */ o(
704
+ $,
705
+ {
706
+ content: c,
707
+ disableContentPadding: l,
708
+ disableContentPaddingLeft: a,
709
+ disableContentPaddingRight: i,
710
+ spaceOnLeft: !0,
711
+ button: p ? /* @__PURE__ */ o(W, { onClick: u, icon: p }) : void 0
712
+ }
713
+ ),
714
+ /* @__PURE__ */ o(k, { alignItems: "center", children: _ }),
715
+ /* @__PURE__ */ o(
716
+ $,
717
+ {
718
+ content: x,
719
+ disableContentPadding: l,
720
+ disableContentPaddingLeft: a,
721
+ disableContentPaddingRight: i,
722
+ spaceOnRight: !0,
723
+ button: b ? /* @__PURE__ */ o(W, { onClick: d, icon: b }) : void 0
724
+ }
725
+ )
726
+ ]
727
+ }
728
+ );
729
+ }, ke = "_textArea_6n6nc_1", Se = {
730
+ textArea: ke
731
+ }, Ee = P(
732
+ ({
733
+ className: t,
531
734
  value: e,
532
- ref: p,
533
- ...a
534
- });
535
- });
735
+ onValueChange: n,
736
+ onChange: r,
737
+ resize: c = "none",
738
+ readOnly: s = !1,
739
+ rows: l,
740
+ disabled: a,
741
+ ...i
742
+ }, f) => {
743
+ const p = I(
744
+ (u) => {
745
+ r && r(u), n && n(u.target.value);
746
+ },
747
+ [r, n]
748
+ );
749
+ return /* @__PURE__ */ o(
750
+ "textarea",
751
+ {
752
+ disabled: a,
753
+ rows: l,
754
+ readOnly: s,
755
+ className: h(Se.textArea, t),
756
+ style: { resize: c },
757
+ onChange: p,
758
+ value: e,
759
+ ref: f,
760
+ ...i
761
+ }
762
+ );
763
+ }
764
+ );
536
765
  export {
537
- xt as Checkbox,
538
- ne as CheckboxWithLabel,
539
- se as NumericTextInput,
540
- oe as PasswordInput,
541
- Rt as RadioButton,
542
- ce as RadioButtonWithLabel,
543
- gt as Switch,
544
- re as SwitchWithLabel,
545
- ae as TextArea,
546
- K as TextInput,
547
- le as TextInputBox,
548
- St as elementHasSelectionRange,
549
- Ct as onStepValueChange,
550
- Et as onTextValueChange,
551
- Tt as useKeyboardNavigation,
552
- ie as useNumericInputValue,
553
- Nt as useSelectAllOnMount,
554
- vt as useTextInput
766
+ Ht as Checkbox,
767
+ Pe as CheckboxWithLabel,
768
+ Z as InputLabel,
769
+ ae as InputLabelText,
770
+ ze as LabelledSelect,
771
+ Oe as LabelledTextInput,
772
+ Le as NumericTextInput,
773
+ Me as PasswordInput,
774
+ Q as RadioButton,
775
+ Ue as RadioButtonBox,
776
+ Fe as RadioButtonWithLabel,
777
+ Rt as Switch,
778
+ je as SwitchWithLabel,
779
+ Ee as TextArea,
780
+ Y as TextInput,
781
+ De as TextInputBox,
782
+ W as TextInputButton,
783
+ Mt as elementHasSelectionRange,
784
+ re as onStepValueChange,
785
+ oe as onTextValueChange,
786
+ Kt as useKeyboardNavigation,
787
+ Ke as useNumericInputValue,
788
+ zt as useSelectAllOnMount,
789
+ Ot as useTextInput
555
790
  };
556
791
  //# sourceMappingURL=index.es.js.map