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