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