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