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