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