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