@stenajs-webui/forms 20.11.5 → 20.12.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_lnht8_1{position:relative;background:var(--moln);overflow:hidden;cursor:text;border:1px solid var(--silver-light);border-radius:var(--swui-border-radius)}._labelledTextInput_lnht8_1 input{outline:none;border:none;margin:0;color:var(--swui-text-primary-color);background-color:transparent;line-height:var(--swui-line-height);width:100%;box-sizing:border-box;cursor:text}._labelledTextInput_lnht8_1._labelledTextInput_lnht8_1._onlyTop_lnht8_21{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-color:transparent}._labelledTextInput_lnht8_1._labelledTextInput_lnht8_1._onlyBottom_lnht8_27{border-top-left-radius:0;border-top-right-radius:0}._labelledTextInput_lnht8_1:focus-within{outline:var(--swui-focus-outline);outline-offset:-1px;border-color:transparent}._labelledTextInput_lnht8_1:hover:not(:focus-within){border-color:var(--hav)}._labelledTextInput_lnht8_1._disabled_lnht8_42{background-color:var(--silver-lighter)}._labelledTextInput_lnht8_1._disabled_lnht8_42 input{color:var(--silver)}._labelledTextInput_lnht8_1._medium_lnht8_50:focus-within{outline-width:2px}._labelledTextInput_lnht8_1._medium_lnht8_50 input{font-size:var(--swui-font-size-inputs);padding:calc(var(--swui-metrics-space) * 4) calc(var(--swui-metrics-space) * 2) calc(var(--swui-metrics-space) * 1)}._labelledTextInput_lnht8_1._large_lnht8_62{border-radius:var(--swui-border-radius-large)}._labelledTextInput_lnht8_1._large_lnht8_62:focus-within{outline-width:3px}._labelledTextInput_lnht8_1._large_lnht8_62 input{font-size:var(--swui-font-size-inputs-large);padding:calc(var(--swui-metrics-space) * 5) calc(var(--swui-metrics-space) * 2) calc(var(--swui-metrics-space) * 2)}._labelledTextInput_lnht8_1._error_lnht8_76{border-color:var(--swui-state-error-light-color)}._labelledTextInput_lnht8_1._error_lnht8_76:hover:not(:focus-within){border-color:var(--modern-red)}._labelledTextInput_lnht8_1._error_lnht8_76 input{background-color:var(--swui-state-error-light-color)}._labelledTextInput_lnht8_1 label{display:flex;position:absolute;top:var(--swui-metrics-space);left:calc(var(--swui-metrics-space) * 2);cursor:text}._textArea_6n6nc_1{--swui-textarea-text-color: var(--swui-field-text-color);--swui-textarea-text-color-disabled: var(--swui-field-text-color-disabled);--swui-textarea-letter-spacing: var(--swui-field-letter-spacing);--swui-textarea-line-height: var(--swui-field-text-line-height);--swui-textarea-indent: var(--swui-metrics-indent);--swui-textarea-font-size: var(--swui-font-size-inputs);--swui-textarea-font-family: var(--swui-font-input);--swui-textarea-font-weight: var(--swui-font-weight-inputs);--swui-textarea-placeholder-color: var(--swui-text-disabled-color);--swui-textarea-animation-time: var(--swui-animation-time-medium);--swui-textarea-icon-color: var(--swui-field-border-color-disabled);--swui-textarea-icon-size: var(--swui-field-icon-size);--swui-textarea-icon-color-success: var(--swui-state-success-color);--swui-textarea-bg-loading: var(--swui-state-loading-light-color);--swui-textarea-border-color-loading: var(--swui-state-loading-color);--swui-textarea-bg-modified: var(--swui-state-modified-light-color);--swui-textarea-border-color-modified: var(--swui-state-modified-color);--swui-textarea-bg-warning: var(--swui-state-alert-light-color);--swui-textarea-border-color-warning: var(--swui-state-alert-color);--swui-textarea-bg-error: var(--swui-state-error-light-color);--swui-textarea-border-color-error: var(--swui-state-error-color);--swui-textarea-bg-color: var(--swui-field-bg-enabled);--swui-textarea-bg-color-disabled: var(--swui-field-bg-disabled);--swui-textarea-border-radius: var(--swui-field-border-radius);--swui-textarea-border-color: var(--swui-field-border-color);--swui-textarea-border-color-hover: var(--swui-field-border-color-hover);--swui-textarea-border-color-disabled: var( --swui-field-border-color-disabled );max-width:100%;letter-spacing:var(--swui-textarea-letter-spacing);line-height:var(--swui-textarea-line-height);padding:2px var(--swui-textarea-indent);color:var(--swui-textarea-text-color);font-size:var(--swui-textarea-font-size);font-family:var(--swui-textarea-font-family);font-weight:var(--swui-textarea-font-weight);background:var(--current-bg, var(--swui-textarea-bg-color));border:1px solid var(--current-border-color, var(--swui-textarea-border-color));border-radius:var(--swui-textarea-border-radius);transition:border var(--swui-textarea-animation-time);--current-icon-color: var(--swui-textarea-icon-color)}._textArea_6n6nc_1:focus:not(:focus-visible){outline:none}._textArea_6n6nc_1:focus{--current-border-color: var(--swui-textarea-border-color-hover);--current-bg: var(--swui-textarea-bg-color)}._textArea_6n6nc_1:focus-visible{outline:var(--swui-focus-outline)}._textArea_6n6nc_1:disabled{color:var(--swui-textarea-text-color-disabled);--current-bg: var(--swui-textarea-bg-color-disabled);--current-border-color: var(--swui-textarea-border-color-disabled)}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { jsx as o, jsxs as m, Fragment as
|
|
3
|
-
import { Box as pt, Space as x, Text as N, Row as
|
|
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";
|
|
4
4
|
import * as mt from "react";
|
|
5
|
-
import { forwardRef as W, useRef as
|
|
6
|
-
import
|
|
7
|
-
import { Icon as D, stenaCheck as E, stenaExclamationTriangle as G, InputSpinner as X, UpDownButtons as xt, TextInputButton as $, stenaEyeShow as yt, stenaEyeHide as
|
|
8
|
-
import { FontAwesomeIcon as
|
|
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";
|
|
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";
|
|
9
9
|
import { cssColor as q } from "@stenajs-webui/theme";
|
|
10
10
|
const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75", S = {
|
|
11
11
|
switch: "_switch_1d6s8_1",
|
|
12
12
|
knob: Bt,
|
|
13
13
|
filler: Tt,
|
|
14
14
|
checked: kt
|
|
15
|
-
}, vt = `${S.switch} ${S.checked}`,
|
|
15
|
+
}, vt = `${S.switch} ${S.checked}`, Rt = ({
|
|
16
16
|
value: t,
|
|
17
17
|
disabled: e,
|
|
18
18
|
onValueChange: n,
|
|
@@ -34,19 +34,19 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
34
34
|
/* @__PURE__ */ o("div", { className: S.knob })
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
|
-
) }),
|
|
37
|
+
) }), $e = ({
|
|
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(
|
|
44
|
+
/* @__PURE__ */ o(Rt, { disabled: e, ...c }),
|
|
45
45
|
/* @__PURE__ */ o(x, {}),
|
|
46
46
|
/* @__PURE__ */ o(N, { userSelect: "none", color: n, children: t })
|
|
47
|
-
] }) }) }),
|
|
48
|
-
checkbox:
|
|
49
|
-
standard:
|
|
47
|
+
] }) }) }), St = "_checkbox_1ndou_1", Nt = "_standard_1ndou_39", jt = "_small_1ndou_51", U = {
|
|
48
|
+
checkbox: St,
|
|
49
|
+
standard: Nt,
|
|
50
50
|
small: jt
|
|
51
51
|
}, $t = W(
|
|
52
52
|
({
|
|
@@ -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 =
|
|
61
|
+
const l = L(), f = (u) => {
|
|
62
62
|
l.current = u, l.current && (l.current.indeterminate = !!t), d && (typeof d == "function" ? d(u) : d.current = u);
|
|
63
|
-
}, _ =
|
|
63
|
+
}, _ = I(
|
|
64
64
|
(u) => {
|
|
65
65
|
e && e(u), n && n(u.target.checked);
|
|
66
66
|
},
|
|
@@ -72,7 +72,7 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
72
72
|
"input",
|
|
73
73
|
{
|
|
74
74
|
type: "checkbox",
|
|
75
|
-
className:
|
|
75
|
+
className: b(U.checkbox, U[c], s),
|
|
76
76
|
checked: r,
|
|
77
77
|
onChange: _,
|
|
78
78
|
ref: f,
|
|
@@ -80,19 +80,19 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
),
|
|
83
|
+
), Ae = ({
|
|
84
84
|
children: t,
|
|
85
85
|
label: e,
|
|
86
86
|
inputRef: n,
|
|
87
87
|
wrapperRef: r,
|
|
88
88
|
textColor: c,
|
|
89
89
|
...s
|
|
90
|
-
}) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(
|
|
90
|
+
}) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(k, { alignItems: "center", children: [
|
|
91
91
|
/* @__PURE__ */ o($t, { ...s, ref: n }),
|
|
92
92
|
/* @__PURE__ */ o(x, {}),
|
|
93
93
|
e && /* @__PURE__ */ o(N, { userSelect: "none", color: c, children: e }),
|
|
94
94
|
t
|
|
95
|
-
] }) }) }), At = "_radiobutton_foy83_1", Ht = "_standard_foy83_45", Wt = "_small_foy83_55",
|
|
95
|
+
] }) }) }), At = "_radiobutton_foy83_1", Ht = "_standard_foy83_45", Wt = "_small_foy83_55", F = {
|
|
96
96
|
radiobutton: At,
|
|
97
97
|
standard: Ht,
|
|
98
98
|
small: Wt
|
|
@@ -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 =
|
|
108
|
+
const d = I(
|
|
109
109
|
(l) => {
|
|
110
110
|
t && t(l), e && e(l.target.value);
|
|
111
111
|
},
|
|
@@ -116,18 +116,18 @@ 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:
|
|
119
|
+
className: b(F.radiobutton, F[n], c),
|
|
120
120
|
onChange: d,
|
|
121
121
|
ref: i,
|
|
122
122
|
...s
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
|
-
),
|
|
127
|
-
radioButtonBox:
|
|
128
|
-
danger:
|
|
129
|
-
radioButtonWrapper:
|
|
130
|
-
},
|
|
126
|
+
), Lt = "_radioButtonBox_vpn6v_1", Pt = "_danger_vpn6v_19", Ut = "_radioButtonWrapper_vpn6v_30", K = {
|
|
127
|
+
radioButtonBox: Lt,
|
|
128
|
+
danger: Pt,
|
|
129
|
+
radioButtonWrapper: Ut
|
|
130
|
+
}, He = ({
|
|
131
131
|
label: t,
|
|
132
132
|
screenReaderLabel: e,
|
|
133
133
|
variant: n = "normal",
|
|
@@ -140,17 +140,17 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
140
140
|
}) => /* @__PURE__ */ o(
|
|
141
141
|
"label",
|
|
142
142
|
{
|
|
143
|
-
className:
|
|
143
|
+
className: b(K.radioButtonBox, K[n], r),
|
|
144
144
|
style: i,
|
|
145
|
-
children: /* @__PURE__ */ m(
|
|
146
|
-
/* @__PURE__ */ m(
|
|
145
|
+
children: /* @__PURE__ */ m(k, { justifyContent: "space-between", flexGrow: 1, children: [
|
|
146
|
+
/* @__PURE__ */ m(k, { alignItems: "center", children: [
|
|
147
147
|
/* @__PURE__ */ o(J, { ...l, className: d }),
|
|
148
148
|
/* @__PURE__ */ o(x, {}),
|
|
149
149
|
e ? /* @__PURE__ */ o(M, { children: e }) : null,
|
|
150
150
|
/* @__PURE__ */ o(N, { "aria-hidden": !!e, children: t })
|
|
151
151
|
] }),
|
|
152
152
|
/* @__PURE__ */ m(
|
|
153
|
-
|
|
153
|
+
k,
|
|
154
154
|
{
|
|
155
155
|
alignItems: "center",
|
|
156
156
|
width: c ? "48px" : void 0,
|
|
@@ -163,24 +163,24 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
163
163
|
)
|
|
164
164
|
] })
|
|
165
165
|
}
|
|
166
|
-
),
|
|
166
|
+
), We = ({
|
|
167
167
|
label: t,
|
|
168
168
|
inputRef: e,
|
|
169
169
|
wrapperRef: n,
|
|
170
170
|
textColor: r,
|
|
171
171
|
...c
|
|
172
|
-
}) => /* @__PURE__ */ o("div", { ref: n, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(
|
|
172
|
+
}) => /* @__PURE__ */ o("div", { ref: n, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ m(k, { alignItems: "center", children: [
|
|
173
173
|
/* @__PURE__ */ o(J, { ref: e, ...c }),
|
|
174
174
|
/* @__PURE__ */ o(x, {}),
|
|
175
175
|
/* @__PURE__ */ o(N, { color: r, userSelect: "none", children: t })
|
|
176
|
-
] }) }) }),
|
|
177
|
-
const l =
|
|
176
|
+
] }) }) }), Ft = (t, e, n, r, c, s, i, d) => {
|
|
177
|
+
const l = L(!1), f = (a) => {
|
|
178
178
|
l.current || s == null || s(a.target.value ?? ""), i == null || i(a);
|
|
179
179
|
}, _ = (a) => {
|
|
180
180
|
l.current = !1, d == null || d(a);
|
|
181
181
|
};
|
|
182
182
|
return {
|
|
183
|
-
onKeyDownHandler:
|
|
183
|
+
onKeyDownHandler: I(
|
|
184
184
|
(a) => {
|
|
185
185
|
const { key: p } = a;
|
|
186
186
|
if (p === "Enter")
|
|
@@ -188,10 +188,10 @@ const Bt = "_knob_1d6s8_56", Tt = "_filler_1d6s8_61", kt = "_checked_1d6s8_75",
|
|
|
188
188
|
else if (p === "Escape")
|
|
189
189
|
l.current = !0, r == null || r(), a.preventDefault(), a.stopPropagation();
|
|
190
190
|
else if (c) {
|
|
191
|
-
const
|
|
192
|
-
l.current = !0, t.current.blur(), c(
|
|
191
|
+
const h = (y, g) => {
|
|
192
|
+
l.current = !0, t.current.blur(), c(y), g.preventDefault(), g.stopPropagation();
|
|
193
193
|
};
|
|
194
|
-
a.shiftKey && p === "Tab" ?
|
|
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);
|
|
195
195
|
}
|
|
196
196
|
e && e(a);
|
|
197
197
|
},
|
|
@@ -226,7 +226,7 @@ const Mt = (t, e, n) => {
|
|
|
226
226
|
autoFocus: a
|
|
227
227
|
}) => {
|
|
228
228
|
Mt(t, !!i, !!s);
|
|
229
|
-
const { onKeyDownHandler: p, onFocusHandler:
|
|
229
|
+
const { onKeyDownHandler: p, onFocusHandler: h, onBlurHandler: y } = Ft(
|
|
230
230
|
t,
|
|
231
231
|
u,
|
|
232
232
|
e,
|
|
@@ -235,20 +235,20 @@ const Mt = (t, e, n) => {
|
|
|
235
235
|
d,
|
|
236
236
|
_,
|
|
237
237
|
f
|
|
238
|
-
),
|
|
239
|
-
(
|
|
240
|
-
r == null || r(
|
|
238
|
+
), g = I(
|
|
239
|
+
(B) => {
|
|
240
|
+
r == null || r(B), c == null || c(B.target.value);
|
|
241
241
|
},
|
|
242
242
|
[r, c]
|
|
243
243
|
);
|
|
244
244
|
return {
|
|
245
|
-
onBlur:
|
|
246
|
-
onChange:
|
|
247
|
-
onFocus:
|
|
245
|
+
onBlur: y,
|
|
246
|
+
onChange: g,
|
|
247
|
+
onFocus: h,
|
|
248
248
|
onKeyDown: p,
|
|
249
249
|
autoFocus: s || a
|
|
250
250
|
};
|
|
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",
|
|
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
252
|
textInput: Ot,
|
|
253
253
|
disabled: Dt,
|
|
254
254
|
input: Et,
|
|
@@ -271,21 +271,21 @@ const Mt = (t, e, n) => {
|
|
|
271
271
|
disableContentPadding: i,
|
|
272
272
|
disableContentPaddingLeft: d,
|
|
273
273
|
disableContentPaddingRight: l
|
|
274
|
-
}) => !r && !e && !t ? null : t ? /* @__PURE__ */ m(
|
|
274
|
+
}) => !r && !e && !t ? null : t ? /* @__PURE__ */ m(R, { children: [
|
|
275
275
|
c ? /* @__PURE__ */ o(x, { num: 0.25 }) : null,
|
|
276
276
|
t,
|
|
277
277
|
s ? /* @__PURE__ */ o(x, { num: 0.25 }) : null
|
|
278
|
-
] }) : r ? /* @__PURE__ */ m(
|
|
278
|
+
] }) : r ? /* @__PURE__ */ m(R, { children: [
|
|
279
279
|
c && !(i || d) ? /* @__PURE__ */ o(x, {}) : null,
|
|
280
280
|
r || null,
|
|
281
281
|
s && !(i || l) ? /* @__PURE__ */ o(x, {}) : null
|
|
282
|
-
] }) : /* @__PURE__ */ m(
|
|
282
|
+
] }) : /* @__PURE__ */ m(R, { children: [
|
|
283
283
|
c ? /* @__PURE__ */ o(x, {}) : null,
|
|
284
284
|
e && /* @__PURE__ */ o(
|
|
285
|
-
|
|
285
|
+
gt,
|
|
286
286
|
{
|
|
287
287
|
icon: e,
|
|
288
|
-
className:
|
|
288
|
+
className: b(w.icon, n)
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
291
|
s ? /* @__PURE__ */ o(x, {}) : null
|
|
@@ -304,10 +304,10 @@ const Mt = (t, e, n) => {
|
|
|
304
304
|
disableContentPaddingRight: u,
|
|
305
305
|
iconLeft: a,
|
|
306
306
|
iconRight: p,
|
|
307
|
-
moveCursorToEndOnMount:
|
|
308
|
-
selectAllOnMount:
|
|
309
|
-
autoFocus:
|
|
310
|
-
onValueChange:
|
|
307
|
+
moveCursorToEndOnMount: h,
|
|
308
|
+
selectAllOnMount: y,
|
|
309
|
+
autoFocus: g,
|
|
310
|
+
onValueChange: B,
|
|
311
311
|
wrapperClassName: Z,
|
|
312
312
|
wrapperStyle: C,
|
|
313
313
|
onDone: V,
|
|
@@ -320,31 +320,31 @@ const Mt = (t, e, n) => {
|
|
|
320
320
|
onFocus: st,
|
|
321
321
|
onBlur: lt,
|
|
322
322
|
...it
|
|
323
|
-
} = t, dt =
|
|
323
|
+
} = t, dt = L(null), P = n ?? dt, at = zt(P, {
|
|
324
324
|
onEnter: tt,
|
|
325
325
|
onEsc: et,
|
|
326
326
|
onChange: nt,
|
|
327
|
-
onValueChange:
|
|
328
|
-
selectAllOnMount:
|
|
329
|
-
moveCursorToEndOnMount:
|
|
327
|
+
onValueChange: B,
|
|
328
|
+
selectAllOnMount: y,
|
|
329
|
+
moveCursorToEndOnMount: h,
|
|
330
330
|
onDone: V,
|
|
331
331
|
onMove: rt,
|
|
332
332
|
onFocus: st,
|
|
333
333
|
onBlur: lt,
|
|
334
334
|
onKeyDown: ot,
|
|
335
|
-
autoFocus:
|
|
335
|
+
autoFocus: g
|
|
336
336
|
}), ut = e === "success" ? E : e === "warning" || e === "error" ? G : p, _t = e === "loading" ? /* @__PURE__ */ o(X, {}) : l;
|
|
337
337
|
return /* @__PURE__ */ m(
|
|
338
338
|
"div",
|
|
339
339
|
{
|
|
340
|
-
className:
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
className: b(
|
|
341
|
+
w.textInput,
|
|
342
|
+
w[e],
|
|
343
343
|
{
|
|
344
|
-
[
|
|
344
|
+
[w.disabled]: r
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
[
|
|
347
|
+
[w.hideBorder]: ct
|
|
348
348
|
},
|
|
349
349
|
Z
|
|
350
350
|
),
|
|
@@ -365,11 +365,11 @@ const Mt = (t, e, n) => {
|
|
|
365
365
|
/* @__PURE__ */ o(
|
|
366
366
|
"input",
|
|
367
367
|
{
|
|
368
|
-
className:
|
|
368
|
+
className: b(w.input, c),
|
|
369
369
|
type: "text",
|
|
370
370
|
disabled: r,
|
|
371
|
-
ref:
|
|
372
|
-
autoFocus:
|
|
371
|
+
ref: P,
|
|
372
|
+
autoFocus: g,
|
|
373
373
|
...it,
|
|
374
374
|
...at
|
|
375
375
|
}
|
|
@@ -421,7 +421,7 @@ const Mt = (t, e, n) => {
|
|
|
421
421
|
}, A = (t, e, n) => {
|
|
422
422
|
let r = t;
|
|
423
423
|
return e != null && (r = Math.max(e, r)), n != null && (r = Math.min(n, r)), r;
|
|
424
|
-
},
|
|
424
|
+
}, Le = ({
|
|
425
425
|
value: t,
|
|
426
426
|
onValueChange: e,
|
|
427
427
|
max: n,
|
|
@@ -433,12 +433,12 @@ const Mt = (t, e, n) => {
|
|
|
433
433
|
hideButtons: l,
|
|
434
434
|
...f
|
|
435
435
|
}) => {
|
|
436
|
-
const _ =
|
|
436
|
+
const _ = I(
|
|
437
437
|
(p) => {
|
|
438
438
|
re({ onValueChange: e, value: t, numSteps: p, min: r, max: n });
|
|
439
439
|
},
|
|
440
440
|
[t, n, r, e]
|
|
441
|
-
), u =
|
|
441
|
+
), u = I(
|
|
442
442
|
(p) => {
|
|
443
443
|
ne({ onValueChange: e, newValue: p, min: r, max: n });
|
|
444
444
|
},
|
|
@@ -447,8 +447,8 @@ const Mt = (t, e, n) => {
|
|
|
447
447
|
return /* @__PURE__ */ o(
|
|
448
448
|
Q,
|
|
449
449
|
{
|
|
450
|
-
contentRight: l ? s : /* @__PURE__ */ m(
|
|
451
|
-
s && /* @__PURE__ */ m(
|
|
450
|
+
contentRight: l ? s : /* @__PURE__ */ m(R, { children: [
|
|
451
|
+
s && /* @__PURE__ */ m(R, { children: [
|
|
452
452
|
s,
|
|
453
453
|
/* @__PURE__ */ o(x, {})
|
|
454
454
|
] }),
|
|
@@ -469,13 +469,13 @@ const Mt = (t, e, n) => {
|
|
|
469
469
|
min: r,
|
|
470
470
|
max: n,
|
|
471
471
|
step: c,
|
|
472
|
-
className:
|
|
472
|
+
className: b(ee.numericTextInputInput, d),
|
|
473
473
|
disabled: i,
|
|
474
474
|
...f
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
|
-
},
|
|
478
|
-
const n =
|
|
477
|
+
}, Pe = (t, e) => {
|
|
478
|
+
const n = I(
|
|
479
479
|
(c) => {
|
|
480
480
|
if (e)
|
|
481
481
|
if (!c)
|
|
@@ -486,17 +486,17 @@ const Mt = (t, e, n) => {
|
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
[e]
|
|
489
|
-
), r =
|
|
489
|
+
), r = ht(() => t === void 0 ? "" : String(t), [t]);
|
|
490
490
|
return {
|
|
491
491
|
onValueChange: n,
|
|
492
492
|
value: r
|
|
493
493
|
};
|
|
494
|
-
},
|
|
494
|
+
}, Ue = ({
|
|
495
495
|
hiddenIcon: t = yt,
|
|
496
|
-
visibleIcon: e =
|
|
496
|
+
visibleIcon: e = wt,
|
|
497
497
|
...n
|
|
498
498
|
}) => {
|
|
499
|
-
const [r, c] =
|
|
499
|
+
const [r, c] = bt(!0);
|
|
500
500
|
return /* @__PURE__ */ o(
|
|
501
501
|
Q,
|
|
502
502
|
{
|
|
@@ -540,7 +540,7 @@ const Mt = (t, e, n) => {
|
|
|
540
540
|
disabled: r
|
|
541
541
|
}
|
|
542
542
|
)
|
|
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",
|
|
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
544
|
labelledSelect: ce,
|
|
545
545
|
onlyTopBorder: se,
|
|
546
546
|
onlyBottomBorder: le,
|
|
@@ -549,7 +549,7 @@ const Mt = (t, e, n) => {
|
|
|
549
549
|
label: ae,
|
|
550
550
|
select: ue,
|
|
551
551
|
iconWrapper: _e
|
|
552
|
-
},
|
|
552
|
+
}, Fe = ({
|
|
553
553
|
onChange: t,
|
|
554
554
|
onValueChange: e,
|
|
555
555
|
id: n,
|
|
@@ -560,7 +560,7 @@ const Mt = (t, e, n) => {
|
|
|
560
560
|
children: d,
|
|
561
561
|
...l
|
|
562
562
|
}) => {
|
|
563
|
-
const f = O(), _ = n ?? f, u =
|
|
563
|
+
const f = O(), _ = n ?? f, u = I(
|
|
564
564
|
(a) => {
|
|
565
565
|
t == null || t(a), e == null || e(a.target.value);
|
|
566
566
|
},
|
|
@@ -569,17 +569,17 @@ const Mt = (t, e, n) => {
|
|
|
569
569
|
return /* @__PURE__ */ m(
|
|
570
570
|
"div",
|
|
571
571
|
{
|
|
572
|
-
className:
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
572
|
+
className: b(
|
|
573
|
+
T.labelledSelect,
|
|
574
|
+
T[i],
|
|
575
|
+
T[s]
|
|
576
576
|
),
|
|
577
577
|
children: [
|
|
578
578
|
/* @__PURE__ */ o(
|
|
579
579
|
Y,
|
|
580
580
|
{
|
|
581
581
|
htmlFor: _,
|
|
582
|
-
className:
|
|
582
|
+
className: T.label,
|
|
583
583
|
label: r,
|
|
584
584
|
screenReaderLabel: c
|
|
585
585
|
}
|
|
@@ -589,15 +589,15 @@ const Mt = (t, e, n) => {
|
|
|
589
589
|
{
|
|
590
590
|
id: _,
|
|
591
591
|
onChange: u,
|
|
592
|
-
className:
|
|
592
|
+
className: b(T.select, T[i]),
|
|
593
593
|
...l,
|
|
594
594
|
children: d
|
|
595
595
|
}
|
|
596
596
|
),
|
|
597
|
-
/* @__PURE__ */ o("div", { className:
|
|
597
|
+
/* @__PURE__ */ o("div", { className: b(T.iconWrapper), children: /* @__PURE__ */ o(
|
|
598
598
|
D,
|
|
599
599
|
{
|
|
600
|
-
icon:
|
|
600
|
+
icon: It,
|
|
601
601
|
size: 24,
|
|
602
602
|
color: q("--modern-blue")
|
|
603
603
|
}
|
|
@@ -605,15 +605,17 @@ const Mt = (t, e, n) => {
|
|
|
605
605
|
]
|
|
606
606
|
}
|
|
607
607
|
);
|
|
608
|
-
}, pe = "
|
|
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
609
|
labelledTextInput: pe,
|
|
610
610
|
onlyTop: fe,
|
|
611
611
|
onlyBottom: me,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
612
|
+
onlyLeft: he,
|
|
613
|
+
onlyRight: be,
|
|
614
|
+
disabled: xe,
|
|
615
|
+
medium: ye,
|
|
616
|
+
large: we,
|
|
617
|
+
error: Ie
|
|
618
|
+
}, Ke = mt.forwardRef(
|
|
617
619
|
({
|
|
618
620
|
autoComplete: t = "off",
|
|
619
621
|
label: e,
|
|
@@ -626,29 +628,31 @@ const Mt = (t, e, n) => {
|
|
|
626
628
|
onValueChange: l,
|
|
627
629
|
borderRadiusVariant: f = "normalBorder",
|
|
628
630
|
variant: _ = "normal",
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
631
|
+
width: u,
|
|
632
|
+
...a
|
|
633
|
+
}, p) => {
|
|
634
|
+
const h = O(), y = n ?? h, g = I(
|
|
635
|
+
(B) => {
|
|
636
|
+
i == null || i(B), l == null || l(B.target.value);
|
|
634
637
|
},
|
|
635
638
|
[i, l]
|
|
636
639
|
);
|
|
637
640
|
return /* @__PURE__ */ m(
|
|
638
641
|
"div",
|
|
639
642
|
{
|
|
640
|
-
className:
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
d &&
|
|
643
|
+
className: b(
|
|
644
|
+
v.labelledTextInput,
|
|
645
|
+
v[_],
|
|
646
|
+
v[f],
|
|
647
|
+
v[c],
|
|
648
|
+
d && v.disabled
|
|
646
649
|
),
|
|
650
|
+
style: u ? { width: u } : void 0,
|
|
647
651
|
children: [
|
|
648
652
|
/* @__PURE__ */ o(
|
|
649
653
|
Y,
|
|
650
654
|
{
|
|
651
|
-
htmlFor:
|
|
655
|
+
htmlFor: y,
|
|
652
656
|
screenReaderLabel: r,
|
|
653
657
|
label: e
|
|
654
658
|
}
|
|
@@ -656,21 +660,21 @@ const Mt = (t, e, n) => {
|
|
|
656
660
|
/* @__PURE__ */ o(
|
|
657
661
|
"input",
|
|
658
662
|
{
|
|
659
|
-
ref:
|
|
660
|
-
id:
|
|
663
|
+
ref: p,
|
|
664
|
+
id: y,
|
|
661
665
|
autoComplete: t,
|
|
662
666
|
type: "text",
|
|
663
667
|
value: s,
|
|
664
|
-
onChange:
|
|
668
|
+
onChange: g,
|
|
665
669
|
disabled: d,
|
|
666
|
-
...
|
|
670
|
+
...a
|
|
667
671
|
}
|
|
668
672
|
)
|
|
669
673
|
]
|
|
670
674
|
}
|
|
671
675
|
);
|
|
672
676
|
}
|
|
673
|
-
),
|
|
677
|
+
), Me = ({
|
|
674
678
|
variant: t = "standard",
|
|
675
679
|
disabled: e,
|
|
676
680
|
wrapperClassName: n,
|
|
@@ -686,16 +690,16 @@ const Mt = (t, e, n) => {
|
|
|
686
690
|
onClickRight: a,
|
|
687
691
|
children: p
|
|
688
692
|
}) => {
|
|
689
|
-
const
|
|
693
|
+
const h = t === "success" ? E : t === "warning" || t === "error" ? G : f, y = t === "loading" ? /* @__PURE__ */ o(X, {}) : s;
|
|
690
694
|
return /* @__PURE__ */ m(
|
|
691
695
|
"div",
|
|
692
696
|
{
|
|
693
|
-
className:
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
+
className: b(
|
|
698
|
+
w.textInput,
|
|
699
|
+
w.inputContainer,
|
|
700
|
+
w[t],
|
|
697
701
|
{
|
|
698
|
-
[
|
|
702
|
+
[w.disabled]: e
|
|
699
703
|
},
|
|
700
704
|
n
|
|
701
705
|
),
|
|
@@ -712,24 +716,24 @@ const Mt = (t, e, n) => {
|
|
|
712
716
|
button: _ ? /* @__PURE__ */ o($, { onClick: u, icon: _ }) : void 0
|
|
713
717
|
}
|
|
714
718
|
),
|
|
715
|
-
/* @__PURE__ */ o(
|
|
719
|
+
/* @__PURE__ */ o(k, { alignItems: "center", children: p }),
|
|
716
720
|
/* @__PURE__ */ o(
|
|
717
721
|
j,
|
|
718
722
|
{
|
|
719
|
-
content:
|
|
723
|
+
content: y,
|
|
720
724
|
disableContentPadding: i,
|
|
721
725
|
disableContentPaddingLeft: d,
|
|
722
726
|
disableContentPaddingRight: l,
|
|
723
727
|
spaceOnRight: !0,
|
|
724
|
-
button:
|
|
728
|
+
button: h ? /* @__PURE__ */ o($, { onClick: a, icon: h }) : void 0
|
|
725
729
|
}
|
|
726
730
|
)
|
|
727
731
|
]
|
|
728
732
|
}
|
|
729
733
|
);
|
|
730
|
-
},
|
|
731
|
-
textArea:
|
|
732
|
-
},
|
|
734
|
+
}, ge = "_textArea_6n6nc_1", Be = {
|
|
735
|
+
textArea: ge
|
|
736
|
+
}, ze = W(
|
|
733
737
|
({
|
|
734
738
|
className: t,
|
|
735
739
|
value: e,
|
|
@@ -741,7 +745,7 @@ const Mt = (t, e, n) => {
|
|
|
741
745
|
disabled: d,
|
|
742
746
|
...l
|
|
743
747
|
}, f) => {
|
|
744
|
-
const _ =
|
|
748
|
+
const _ = I(
|
|
745
749
|
(u) => {
|
|
746
750
|
r && r(u), n && n(u.target.value);
|
|
747
751
|
},
|
|
@@ -753,7 +757,7 @@ const Mt = (t, e, n) => {
|
|
|
753
757
|
disabled: d,
|
|
754
758
|
rows: i,
|
|
755
759
|
readOnly: s,
|
|
756
|
-
className:
|
|
760
|
+
className: b(Be.textArea, t),
|
|
757
761
|
style: { resize: c },
|
|
758
762
|
onChange: _,
|
|
759
763
|
value: e,
|
|
@@ -765,26 +769,26 @@ const Mt = (t, e, n) => {
|
|
|
765
769
|
);
|
|
766
770
|
export {
|
|
767
771
|
$t as Checkbox,
|
|
768
|
-
|
|
772
|
+
Ae as CheckboxWithLabel,
|
|
769
773
|
Y as InputLabel,
|
|
770
774
|
oe as InputLabelText,
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
+
Fe as LabelledSelect,
|
|
776
|
+
Ke as LabelledTextInput,
|
|
777
|
+
Le as NumericTextInput,
|
|
778
|
+
Ue as PasswordInput,
|
|
775
779
|
J as RadioButton,
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
780
|
+
He as RadioButtonBox,
|
|
781
|
+
We as RadioButtonWithLabel,
|
|
782
|
+
Rt as Switch,
|
|
783
|
+
$e as SwitchWithLabel,
|
|
784
|
+
ze as TextArea,
|
|
781
785
|
Q as TextInput,
|
|
782
|
-
|
|
786
|
+
Me as TextInputBox,
|
|
783
787
|
Kt as elementHasSelectionRange,
|
|
784
788
|
re as onStepValueChange,
|
|
785
789
|
ne as onTextValueChange,
|
|
786
|
-
|
|
787
|
-
|
|
790
|
+
Ft as useKeyboardNavigation,
|
|
791
|
+
Pe as useNumericInputValue,
|
|
788
792
|
Mt as useSelectAllOnMount,
|
|
789
793
|
zt as useTextInput
|
|
790
794
|
};
|