@stenajs-webui/forms 19.0.0-next.59 → 19.0.0-next.60

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