@stenajs-webui/forms 21.6.0 → 21.7.1

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