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