@stenajs-webui/forms 21.3.0 → 21.4.0

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