@stenajs-webui/forms 19.0.0-next.49 → 19.0.0-next.50

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