@stenajs-webui/forms 23.11.1 → 23.11.3
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ButtonSize } from "@stenajs-webui/elements";
|
|
2
|
+
import { ButtonSize, ButtonVariant } from "@stenajs-webui/elements";
|
|
3
3
|
export interface AmountStepperButtonsProps {
|
|
4
4
|
value: number;
|
|
5
|
+
variant?: ButtonVariant;
|
|
5
6
|
inputId: string;
|
|
6
7
|
size?: ButtonSize;
|
|
7
8
|
ariaLabelIncrease: string;
|
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
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_vs9pj_1{border:1px solid var(--swui-field-border-color);position:relative;overflow:hidden;cursor:pointer}._labelledSelect_vs9pj_1._medium_vs9pj_7{border-radius:var(--swui-border-radius)}._labelledSelect_vs9pj_1._large_vs9pj_11{border-radius:var(--swui-border-radius-large)}._labelledSelect_vs9pj_1._error_vs9pj_15{border-color:var(--snackskal);background-color:var(--snackskal)}._labelledSelect_vs9pj_1._normal_vs9pj_20{border-color:var(--swui-field-border-color);background-color:var(--moln)}._labelledSelect_vs9pj_1._labelledSelect_vs9pj_1._onlyTopBorder_vs9pj_25{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-color:transparent}._labelledSelect_vs9pj_1._onlyBottomBorder_vs9pj_31{border-top-left-radius:0;border-top-right-radius:0}._labelledSelect_vs9pj_1._onlyLeftBorder_vs9pj_36{border-top-right-radius:0;border-bottom-right-radius:0;border-right-color:transparent}._labelledSelect_vs9pj_1._onlyRightBorder_vs9pj_42{border-top-left-radius:0;border-bottom-left-radius:0}._labelledSelect_vs9pj_1._labelledSelect_vs9pj_1:focus-within{border-color:var(--swui-field-border-color-hover);outline:var(--swui-focus-outline);outline-offset:0;z-index:10}._labelledSelect_vs9pj_1._labelledSelect_vs9pj_1:hover{border-color:var(--swui-field-border-color-hover)}._labelledSelect_vs9pj_1 ._label_vs9pj_1{display:flex;cursor:pointer;padding:calc(var(--swui-metrics-space) * 1) calc(var(--swui-metrics-space) * 2) 0}._labelledSelect_vs9pj_1 ._select_vs9pj_65{color:var(--swui-text-primary-color);display:block;margin:0;width:100%;-webkit-appearance:none;appearance:none;border:none;outline:none;line-height:1.5;box-sizing:border-box;cursor:pointer}._labelledSelect_vs9pj_1 ._select_vs9pj_65._error_vs9pj_15{background-color:var(--snackskal)}._labelledSelect_vs9pj_1 ._select_vs9pj_65._normal_vs9pj_20{background-color:var(--moln)}._labelledSelect_vs9pj_1 ._select_vs9pj_65._medium_vs9pj_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_vs9pj_1 ._select_vs9pj_65._large_vs9pj_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_vs9pj_1 ._iconWrapper_vs9pj_99{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 N } from "react/jsx-runtime";
|
|
3
|
-
import { Row as k, Box as xt, Space as g, ScreenReaderOnlyText as C, Text as
|
|
3
|
+
import { Row as k, Box as xt, Space as g, ScreenReaderOnlyText as C, Text as j, parseFloatElseUndefined as q, getDataProps as kt, useTimeoutState as Tt } from "@stenajs-webui/core";
|
|
4
4
|
import * as St from "react";
|
|
5
5
|
import { useCallback as m, forwardRef as W, useRef as D, useEffect as K, useMemo as Rt, useState as Nt, useId as z } from "react";
|
|
6
|
-
import { PrimaryButton as M, stenaMinus as G, stenaPlus as X, Icon as J, stenaCheck as Q, stenaExclamationTriangle as Y, InputSpinner as Z, UpDownButtons as $t, FlatButton as A, TextInputButton as H, stenaEyeShow as Ct, stenaEyeHide as
|
|
6
|
+
import { PrimaryButton as M, stenaMinus as G, stenaPlus as X, Icon as J, stenaCheck as Q, stenaExclamationTriangle as Y, InputSpinner as Z, UpDownButtons as $t, FlatButton as A, TextInputButton as H, stenaEyeShow as Ct, stenaEyeHide as jt, stenaAngleDown as qt, stenaCopy as vt } from "@stenajs-webui/elements";
|
|
7
7
|
import b from "classnames";
|
|
8
8
|
import { cssColor as E } from "@stenajs-webui/theme";
|
|
9
9
|
import { FontAwesomeIcon as Pt } from "@fortawesome/react-fontawesome";
|
|
@@ -28,53 +28,56 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
28
28
|
), sn = ({
|
|
29
29
|
value: t,
|
|
30
30
|
onValueChange: e,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
variant: n,
|
|
32
|
+
decreaseDisabled: r,
|
|
33
|
+
increaseDisabled: l,
|
|
34
|
+
inputId: c,
|
|
35
|
+
ariaLabelDecrease: i,
|
|
36
|
+
ariaLabelIncrease: a,
|
|
37
|
+
textValueAriaLabel: s,
|
|
38
|
+
increaseTestId: _,
|
|
39
|
+
decreaseTestId: h,
|
|
40
|
+
onIncrease: d,
|
|
41
|
+
onDecrease: u,
|
|
42
|
+
size: p
|
|
42
43
|
}) => {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
}, [
|
|
46
|
-
|
|
47
|
-
}, [
|
|
44
|
+
const f = m(() => {
|
|
45
|
+
d?.(), e?.(t + 1);
|
|
46
|
+
}, [d, e, t]), B = m(() => {
|
|
47
|
+
u?.(), e?.(t - 1);
|
|
48
|
+
}, [u, e, t]);
|
|
48
49
|
return /* @__PURE__ */ y(k, { alignItems: "center", children: [
|
|
49
50
|
/* @__PURE__ */ o(
|
|
50
51
|
M,
|
|
51
52
|
{
|
|
52
|
-
size:
|
|
53
|
-
"aria-label":
|
|
53
|
+
size: p,
|
|
54
|
+
"aria-label": i,
|
|
55
|
+
variant: n,
|
|
54
56
|
leftIcon: G,
|
|
55
|
-
"data-testid":
|
|
56
|
-
disabled:
|
|
57
|
-
onClick:
|
|
57
|
+
"data-testid": h ?? "decrease",
|
|
58
|
+
disabled: r,
|
|
59
|
+
onClick: B
|
|
58
60
|
}
|
|
59
61
|
),
|
|
60
62
|
/* @__PURE__ */ o(
|
|
61
63
|
Wt,
|
|
62
64
|
{
|
|
63
|
-
id:
|
|
65
|
+
id: c,
|
|
64
66
|
"data-testid": "amountStepperValue",
|
|
65
67
|
value: t.toString(),
|
|
66
|
-
"aria-label":
|
|
68
|
+
"aria-label": s
|
|
67
69
|
}
|
|
68
70
|
),
|
|
69
71
|
/* @__PURE__ */ o(
|
|
70
72
|
M,
|
|
71
73
|
{
|
|
72
|
-
size:
|
|
74
|
+
size: p,
|
|
73
75
|
leftIcon: X,
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
variant: n,
|
|
77
|
+
"aria-label": a,
|
|
78
|
+
"data-testid": _ ?? "increase",
|
|
79
|
+
disabled: l,
|
|
80
|
+
onClick: f
|
|
78
81
|
}
|
|
79
82
|
)
|
|
80
83
|
] });
|
|
@@ -117,7 +120,7 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
117
120
|
/* @__PURE__ */ o(g, {}),
|
|
118
121
|
l ? /* @__PURE__ */ o(C, { children: l }) : null,
|
|
119
122
|
/* @__PURE__ */ o(
|
|
120
|
-
|
|
123
|
+
j,
|
|
121
124
|
{
|
|
122
125
|
color: n,
|
|
123
126
|
"aria-hidden": !!l,
|
|
@@ -141,7 +144,7 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
141
144
|
}, a) => {
|
|
142
145
|
const s = D(null), _ = (d) => {
|
|
143
146
|
s.current = d, s.current && (s.current.indeterminate = !!t), a && (typeof a == "function" ? a(d) : a.current = d);
|
|
144
|
-
},
|
|
147
|
+
}, h = m(
|
|
145
148
|
(d) => {
|
|
146
149
|
e && e(d), n && n(d.target.checked);
|
|
147
150
|
},
|
|
@@ -155,7 +158,7 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
155
158
|
type: "checkbox",
|
|
156
159
|
className: b(O.checkbox, O[l], c),
|
|
157
160
|
checked: r,
|
|
158
|
-
onChange:
|
|
161
|
+
onChange: h,
|
|
159
162
|
ref: _,
|
|
160
163
|
...i
|
|
161
164
|
}
|
|
@@ -174,7 +177,7 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
174
177
|
/* @__PURE__ */ o(g, {}),
|
|
175
178
|
c ? /* @__PURE__ */ o(C, { children: c }) : null,
|
|
176
179
|
/* @__PURE__ */ o(
|
|
177
|
-
|
|
180
|
+
j,
|
|
178
181
|
{
|
|
179
182
|
color: l,
|
|
180
183
|
"aria-hidden": !!c,
|
|
@@ -231,7 +234,7 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
231
234
|
style: a,
|
|
232
235
|
disabled: s,
|
|
233
236
|
radioButtonClassName: _,
|
|
234
|
-
...
|
|
237
|
+
...h
|
|
235
238
|
}) => {
|
|
236
239
|
const d = s ? E("--swui-text-disabled-color") : void 0;
|
|
237
240
|
return /* @__PURE__ */ o(
|
|
@@ -249,14 +252,14 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
249
252
|
/* @__PURE__ */ o(
|
|
250
253
|
V,
|
|
251
254
|
{
|
|
252
|
-
...
|
|
255
|
+
...h,
|
|
253
256
|
disabled: s,
|
|
254
257
|
className: _
|
|
255
258
|
}
|
|
256
259
|
),
|
|
257
260
|
/* @__PURE__ */ o(g, {}),
|
|
258
261
|
e ? /* @__PURE__ */ o(C, { children: e }) : null,
|
|
259
|
-
/* @__PURE__ */ o(
|
|
262
|
+
/* @__PURE__ */ o(j, { color: d, "aria-hidden": !!e, children: t })
|
|
260
263
|
] }),
|
|
261
264
|
/* @__PURE__ */ y(
|
|
262
265
|
k,
|
|
@@ -285,7 +288,7 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
285
288
|
/* @__PURE__ */ o(g, {}),
|
|
286
289
|
l ? /* @__PURE__ */ o(C, { children: l }) : null,
|
|
287
290
|
/* @__PURE__ */ o(
|
|
288
|
-
|
|
291
|
+
j,
|
|
289
292
|
{
|
|
290
293
|
color: r,
|
|
291
294
|
"aria-hidden": !!l,
|
|
@@ -296,29 +299,29 @@ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
|
|
|
296
299
|
] }) }) }), ne = (t, e, n, r, l, c, i, a) => {
|
|
297
300
|
const s = D(!1), _ = (u) => {
|
|
298
301
|
s.current || c?.(u.target.value ?? ""), i?.(u);
|
|
299
|
-
},
|
|
302
|
+
}, h = (u) => {
|
|
300
303
|
s.current = !1, a?.(u);
|
|
301
304
|
};
|
|
302
305
|
return {
|
|
303
306
|
onKeyDownHandler: m(
|
|
304
307
|
(u) => {
|
|
305
|
-
const { key:
|
|
306
|
-
if (
|
|
308
|
+
const { key: p } = u;
|
|
309
|
+
if (p === "Enter")
|
|
307
310
|
s.current = !0, n?.(), c?.(u.currentTarget.value ?? "");
|
|
308
|
-
else if (
|
|
311
|
+
else if (p === "Escape")
|
|
309
312
|
s.current = !0, r?.(), u.preventDefault(), u.stopPropagation();
|
|
310
313
|
else if (l) {
|
|
311
|
-
const f = (
|
|
312
|
-
s.current = !0, t.current.blur(), l(
|
|
314
|
+
const f = (B, w) => {
|
|
315
|
+
s.current = !0, t.current.blur(), l(B), w.preventDefault(), w.stopPropagation();
|
|
313
316
|
};
|
|
314
|
-
u.shiftKey &&
|
|
317
|
+
u.shiftKey && p === "Tab" ? f("left", u) : p === "Tab" ? f("right", u) : p === "ArrowUp" ? f("up", u) : p === "ArrowDown" ? f("down", u) : p === "ArrowRight" ? t.current.value.length === t.current.selectionStart && f("right", u) : p === "ArrowLeft" && t.current.selectionStart === 0 && f("left", u);
|
|
315
318
|
}
|
|
316
319
|
e && e(u);
|
|
317
320
|
},
|
|
318
321
|
[r, l, e, t, n, c]
|
|
319
322
|
),
|
|
320
323
|
onBlurHandler: _,
|
|
321
|
-
onFocusHandler:
|
|
324
|
+
onFocusHandler: h
|
|
322
325
|
};
|
|
323
326
|
};
|
|
324
327
|
function oe(t) {
|
|
@@ -341,19 +344,19 @@ const re = (t, e, n) => {
|
|
|
341
344
|
onDone: a,
|
|
342
345
|
onMove: s,
|
|
343
346
|
onFocus: _,
|
|
344
|
-
onBlur:
|
|
347
|
+
onBlur: h,
|
|
345
348
|
onKeyDown: d,
|
|
346
349
|
autoFocus: u
|
|
347
350
|
}) => {
|
|
348
351
|
re(t, !!i, !!c);
|
|
349
|
-
const { onKeyDownHandler:
|
|
352
|
+
const { onKeyDownHandler: p, onFocusHandler: f, onBlurHandler: B } = ne(
|
|
350
353
|
t,
|
|
351
354
|
d,
|
|
352
355
|
e,
|
|
353
356
|
n,
|
|
354
357
|
s,
|
|
355
358
|
a,
|
|
356
|
-
|
|
359
|
+
h,
|
|
357
360
|
_
|
|
358
361
|
), w = m(
|
|
359
362
|
(T) => {
|
|
@@ -362,13 +365,13 @@ const re = (t, e, n) => {
|
|
|
362
365
|
[r, l]
|
|
363
366
|
);
|
|
364
367
|
return {
|
|
365
|
-
onBlur:
|
|
368
|
+
onBlur: B,
|
|
366
369
|
onChange: w,
|
|
367
370
|
onFocus: f,
|
|
368
|
-
onKeyDown:
|
|
371
|
+
onKeyDown: p,
|
|
369
372
|
autoFocus: c || u
|
|
370
373
|
};
|
|
371
|
-
}, ce = "_textInput_1qe61_1", se = "_onlyTop_1qe61_11", ie = "_disabled_1qe61_15", ae = "_onlyBottom_1qe61_20", de = "_onlyLeft_1qe61_28", ue = "_onlyRight_1qe61_37", _e = "_input_1qe61_50", pe = "_alwaysShowPlaceholder_1qe61_74", he = "_icon_1qe61_85", ye = "_standard_1qe61_95", fe = "_success_1qe61_96", me = "_loading_1qe61_108", ge = "_modified_1qe61_113", be = "_error_1qe61_122", Be = "_warning_1qe61_131", Ie = "_hideBorder_1qe61_145", we = "_clickable_1qe61_152",
|
|
374
|
+
}, ce = "_textInput_1qe61_1", se = "_onlyTop_1qe61_11", ie = "_disabled_1qe61_15", ae = "_onlyBottom_1qe61_20", de = "_onlyLeft_1qe61_28", ue = "_onlyRight_1qe61_37", _e = "_input_1qe61_50", pe = "_alwaysShowPlaceholder_1qe61_74", he = "_icon_1qe61_85", ye = "_standard_1qe61_95", fe = "_success_1qe61_96", me = "_loading_1qe61_108", ge = "_modified_1qe61_113", be = "_error_1qe61_122", Be = "_warning_1qe61_131", Ie = "_hideBorder_1qe61_145", we = "_clickable_1qe61_152", I = {
|
|
372
375
|
textInput: ce,
|
|
373
376
|
onlyTop: se,
|
|
374
377
|
disabled: ie,
|
|
@@ -386,7 +389,7 @@ const re = (t, e, n) => {
|
|
|
386
389
|
warning: Be,
|
|
387
390
|
hideBorder: Ie,
|
|
388
391
|
clickable: we
|
|
389
|
-
},
|
|
392
|
+
}, v = ({
|
|
390
393
|
button: t,
|
|
391
394
|
icon: e,
|
|
392
395
|
iconClassName: n,
|
|
@@ -410,7 +413,7 @@ const re = (t, e, n) => {
|
|
|
410
413
|
Pt,
|
|
411
414
|
{
|
|
412
415
|
icon: e,
|
|
413
|
-
className: b(
|
|
416
|
+
className: b(I.icon, n)
|
|
414
417
|
}
|
|
415
418
|
),
|
|
416
419
|
c ? /* @__PURE__ */ o(g, {}) : null
|
|
@@ -425,12 +428,12 @@ const re = (t, e, n) => {
|
|
|
425
428
|
contentLeft: a,
|
|
426
429
|
contentRight: s,
|
|
427
430
|
disableContentPadding: _,
|
|
428
|
-
disableContentPaddingLeft:
|
|
431
|
+
disableContentPaddingLeft: h,
|
|
429
432
|
disableContentPaddingRight: d,
|
|
430
433
|
iconLeft: u,
|
|
431
|
-
iconRight:
|
|
434
|
+
iconRight: p,
|
|
432
435
|
moveCursorToEndOnMount: f,
|
|
433
|
-
selectAllOnMount:
|
|
436
|
+
selectAllOnMount: B,
|
|
434
437
|
autoFocus: w,
|
|
435
438
|
onValueChange: T,
|
|
436
439
|
wrapperClassName: rt,
|
|
@@ -453,7 +456,7 @@ const re = (t, e, n) => {
|
|
|
453
456
|
onEsc: it,
|
|
454
457
|
onChange: dt,
|
|
455
458
|
onValueChange: T,
|
|
456
|
-
selectAllOnMount:
|
|
459
|
+
selectAllOnMount: B,
|
|
457
460
|
moveCursorToEndOnMount: f,
|
|
458
461
|
onDone: ct,
|
|
459
462
|
onMove: at,
|
|
@@ -461,30 +464,30 @@ const re = (t, e, n) => {
|
|
|
461
464
|
onBlur: ht,
|
|
462
465
|
onKeyDown: ut,
|
|
463
466
|
autoFocus: w
|
|
464
|
-
}), It = e === "success" ? Q : e === "warning" || e === "error" ? Y :
|
|
467
|
+
}), It = e === "success" ? Q : e === "warning" || e === "error" ? Y : p, wt = e === "loading" ? /* @__PURE__ */ o(Z, {}) : s;
|
|
465
468
|
return /* @__PURE__ */ y(
|
|
466
469
|
"div",
|
|
467
470
|
{
|
|
468
471
|
className: b(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
+
I.textInput,
|
|
473
|
+
I[e],
|
|
474
|
+
I[yt],
|
|
472
475
|
{
|
|
473
|
-
[
|
|
476
|
+
[I.disabled]: r
|
|
474
477
|
},
|
|
475
478
|
{
|
|
476
|
-
[
|
|
479
|
+
[I.hideBorder]: _t
|
|
477
480
|
},
|
|
478
481
|
rt
|
|
479
482
|
),
|
|
480
483
|
style: { width: ft, ...lt },
|
|
481
484
|
children: [
|
|
482
485
|
/* @__PURE__ */ o(
|
|
483
|
-
|
|
486
|
+
v,
|
|
484
487
|
{
|
|
485
488
|
content: a,
|
|
486
489
|
disableContentPadding: _,
|
|
487
|
-
disableContentPaddingLeft:
|
|
490
|
+
disableContentPaddingLeft: h,
|
|
488
491
|
disableContentPaddingRight: d,
|
|
489
492
|
icon: u,
|
|
490
493
|
spaceOnLeft: !0,
|
|
@@ -495,9 +498,9 @@ const re = (t, e, n) => {
|
|
|
495
498
|
"input",
|
|
496
499
|
{
|
|
497
500
|
className: b(
|
|
498
|
-
|
|
501
|
+
I.input,
|
|
499
502
|
{
|
|
500
|
-
[
|
|
503
|
+
[I.alwaysShowPlaceholder]: mt
|
|
501
504
|
},
|
|
502
505
|
l
|
|
503
506
|
),
|
|
@@ -510,11 +513,11 @@ const re = (t, e, n) => {
|
|
|
510
513
|
}
|
|
511
514
|
),
|
|
512
515
|
/* @__PURE__ */ o(
|
|
513
|
-
|
|
516
|
+
v,
|
|
514
517
|
{
|
|
515
518
|
content: wt,
|
|
516
519
|
disableContentPadding: _,
|
|
517
|
-
disableContentPaddingLeft:
|
|
520
|
+
disableContentPaddingLeft: h,
|
|
518
521
|
disableContentPaddingRight: d,
|
|
519
522
|
icon: It,
|
|
520
523
|
spaceOnRight: !0,
|
|
@@ -537,7 +540,7 @@ const re = (t, e, n) => {
|
|
|
537
540
|
if (!e)
|
|
538
541
|
t(String(F(n, r, l)));
|
|
539
542
|
else {
|
|
540
|
-
const i = (
|
|
543
|
+
const i = (q(e) || 0) + n;
|
|
541
544
|
t(String(F(i, r, l)));
|
|
542
545
|
}
|
|
543
546
|
}, nt = ({
|
|
@@ -550,7 +553,7 @@ const re = (t, e, n) => {
|
|
|
550
553
|
if (e === "")
|
|
551
554
|
t("");
|
|
552
555
|
else {
|
|
553
|
-
const c =
|
|
556
|
+
const c = q(e) || 0;
|
|
554
557
|
t(String(F(c, n, r)));
|
|
555
558
|
}
|
|
556
559
|
}, F = (t, e, n) => {
|
|
@@ -568,14 +571,14 @@ const re = (t, e, n) => {
|
|
|
568
571
|
hideButtons: s,
|
|
569
572
|
..._
|
|
570
573
|
}) => {
|
|
571
|
-
const
|
|
572
|
-
(
|
|
573
|
-
et({ onValueChange: e, value: t, numSteps:
|
|
574
|
+
const h = m(
|
|
575
|
+
(p) => {
|
|
576
|
+
et({ onValueChange: e, value: t, numSteps: p, min: r, max: n });
|
|
574
577
|
},
|
|
575
578
|
[t, n, r, e]
|
|
576
579
|
), d = m(
|
|
577
|
-
(
|
|
578
|
-
nt({ onValueChange: e, newValue:
|
|
580
|
+
(p) => {
|
|
581
|
+
nt({ onValueChange: e, newValue: p, min: r, max: n });
|
|
579
582
|
},
|
|
580
583
|
[n, r, e]
|
|
581
584
|
);
|
|
@@ -590,8 +593,8 @@ const re = (t, e, n) => {
|
|
|
590
593
|
/* @__PURE__ */ o(
|
|
591
594
|
$t,
|
|
592
595
|
{
|
|
593
|
-
onClickUp: i ? void 0 : () =>
|
|
594
|
-
onClickDown: i ? void 0 : () =>
|
|
596
|
+
onClickUp: i ? void 0 : () => h(l),
|
|
597
|
+
onClickDown: i ? void 0 : () => h(-l),
|
|
595
598
|
iconColor: "var(--swui-textinput-text-color)",
|
|
596
599
|
disabled: i
|
|
597
600
|
}
|
|
@@ -616,7 +619,7 @@ const re = (t, e, n) => {
|
|
|
616
619
|
if (!l)
|
|
617
620
|
e(void 0);
|
|
618
621
|
else {
|
|
619
|
-
const c =
|
|
622
|
+
const c = q(l);
|
|
620
623
|
c !== void 0 && e(c);
|
|
621
624
|
}
|
|
622
625
|
},
|
|
@@ -630,14 +633,14 @@ const re = (t, e, n) => {
|
|
|
630
633
|
if (S(t))
|
|
631
634
|
return !1;
|
|
632
635
|
{
|
|
633
|
-
const n =
|
|
636
|
+
const n = q(t);
|
|
634
637
|
return !S(n) && !S(e) && n <= e;
|
|
635
638
|
}
|
|
636
639
|
}, Re = (t, e) => {
|
|
637
640
|
if (S(t))
|
|
638
641
|
return !1;
|
|
639
642
|
{
|
|
640
|
-
const n =
|
|
643
|
+
const n = q(t);
|
|
641
644
|
return !S(n) && !S(e) && n >= e;
|
|
642
645
|
}
|
|
643
646
|
}, hn = ({
|
|
@@ -697,7 +700,7 @@ const re = (t, e, n) => {
|
|
|
697
700
|
] });
|
|
698
701
|
}, yn = ({
|
|
699
702
|
hiddenIcon: t = Ct,
|
|
700
|
-
visibleIcon: e =
|
|
703
|
+
visibleIcon: e = jt,
|
|
701
704
|
...n
|
|
702
705
|
}) => {
|
|
703
706
|
const [r, l] = Nt(!0);
|
|
@@ -720,7 +723,7 @@ const re = (t, e, n) => {
|
|
|
720
723
|
text: e,
|
|
721
724
|
...n
|
|
722
725
|
}) => /* @__PURE__ */ o(
|
|
723
|
-
|
|
726
|
+
j,
|
|
724
727
|
{
|
|
725
728
|
variant: "bold",
|
|
726
729
|
color: E(t ? "--silver" : "--tjara"),
|
|
@@ -744,12 +747,12 @@ const re = (t, e, n) => {
|
|
|
744
747
|
disabled: r
|
|
745
748
|
}
|
|
746
749
|
)
|
|
747
|
-
] }), $e = "_labelledSelect_vs9pj_1", Ce = "_medium_vs9pj_7",
|
|
750
|
+
] }), $e = "_labelledSelect_vs9pj_1", Ce = "_medium_vs9pj_7", je = "_large_vs9pj_11", qe = "_error_vs9pj_15", ve = "_normal_vs9pj_20", Pe = "_onlyTopBorder_vs9pj_25", Ae = "_onlyBottomBorder_vs9pj_31", He = "_onlyLeftBorder_vs9pj_36", Fe = "_onlyRightBorder_vs9pj_42", We = "_label_vs9pj_1", De = "_select_vs9pj_65", Ee = "_iconWrapper_vs9pj_99", x = {
|
|
748
751
|
labelledSelect: $e,
|
|
749
752
|
medium: Ce,
|
|
750
|
-
large:
|
|
751
|
-
error:
|
|
752
|
-
normal:
|
|
753
|
+
large: je,
|
|
754
|
+
error: qe,
|
|
755
|
+
normal: ve,
|
|
753
756
|
onlyTopBorder: Pe,
|
|
754
757
|
onlyBottomBorder: Ae,
|
|
755
758
|
onlyLeftBorder: He,
|
|
@@ -769,9 +772,9 @@ const re = (t, e, n) => {
|
|
|
769
772
|
children: s,
|
|
770
773
|
..._
|
|
771
774
|
}) => {
|
|
772
|
-
const
|
|
773
|
-
(
|
|
774
|
-
t?.(
|
|
775
|
+
const h = z(), d = n ?? h, u = m(
|
|
776
|
+
(p) => {
|
|
777
|
+
t?.(p), e?.(p.target.value);
|
|
775
778
|
},
|
|
776
779
|
[t, e]
|
|
777
780
|
);
|
|
@@ -807,7 +810,7 @@ const re = (t, e, n) => {
|
|
|
807
810
|
/* @__PURE__ */ o("div", { className: b(x.iconWrapper), children: /* @__PURE__ */ o(
|
|
808
811
|
J,
|
|
809
812
|
{
|
|
810
|
-
icon:
|
|
813
|
+
icon: qt,
|
|
811
814
|
size: 24,
|
|
812
815
|
color: E("--modern-blue")
|
|
813
816
|
}
|
|
@@ -837,11 +840,11 @@ const re = (t, e, n) => {
|
|
|
837
840
|
disabled: a,
|
|
838
841
|
onValueChange: s,
|
|
839
842
|
borderRadiusVariant: _ = "normalBorder",
|
|
840
|
-
variant:
|
|
843
|
+
variant: h = "normal",
|
|
841
844
|
width: d,
|
|
842
845
|
...u
|
|
843
|
-
},
|
|
844
|
-
const f = z(),
|
|
846
|
+
}, p) => {
|
|
847
|
+
const f = z(), B = n ?? f, w = m(
|
|
845
848
|
(T) => {
|
|
846
849
|
i?.(T), s?.(T.target.value);
|
|
847
850
|
},
|
|
@@ -852,7 +855,7 @@ const re = (t, e, n) => {
|
|
|
852
855
|
{
|
|
853
856
|
className: b(
|
|
854
857
|
R.labelledTextInput,
|
|
855
|
-
R[
|
|
858
|
+
R[h],
|
|
856
859
|
R[_],
|
|
857
860
|
R[l],
|
|
858
861
|
a && R.disabled
|
|
@@ -862,7 +865,7 @@ const re = (t, e, n) => {
|
|
|
862
865
|
/* @__PURE__ */ o(
|
|
863
866
|
ot,
|
|
864
867
|
{
|
|
865
|
-
htmlFor:
|
|
868
|
+
htmlFor: B,
|
|
866
869
|
screenReaderLabel: r,
|
|
867
870
|
label: e
|
|
868
871
|
}
|
|
@@ -870,8 +873,8 @@ const re = (t, e, n) => {
|
|
|
870
873
|
/* @__PURE__ */ o(
|
|
871
874
|
"input",
|
|
872
875
|
{
|
|
873
|
-
ref:
|
|
874
|
-
id:
|
|
876
|
+
ref: p,
|
|
877
|
+
id: B,
|
|
875
878
|
autoComplete: t,
|
|
876
879
|
type: "text",
|
|
877
880
|
value: c,
|
|
@@ -895,42 +898,42 @@ const re = (t, e, n) => {
|
|
|
895
898
|
disableContentPaddingLeft: a,
|
|
896
899
|
disableContentPaddingRight: s,
|
|
897
900
|
iconRight: _,
|
|
898
|
-
iconLeft:
|
|
901
|
+
iconLeft: h,
|
|
899
902
|
onClickLeft: d,
|
|
900
903
|
onClickRight: u,
|
|
901
|
-
children:
|
|
904
|
+
children: p
|
|
902
905
|
}) => {
|
|
903
|
-
const f = t === "success" ? Q : t === "warning" || t === "error" ? Y : _,
|
|
906
|
+
const f = t === "success" ? Q : t === "warning" || t === "error" ? Y : _, B = t === "loading" ? /* @__PURE__ */ o(Z, {}) : c;
|
|
904
907
|
return /* @__PURE__ */ y(
|
|
905
908
|
"div",
|
|
906
909
|
{
|
|
907
910
|
className: b(
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
+
I.textInput,
|
|
912
|
+
I.inputContainer,
|
|
913
|
+
I[t],
|
|
911
914
|
{
|
|
912
|
-
[
|
|
915
|
+
[I.disabled]: e
|
|
913
916
|
},
|
|
914
917
|
n
|
|
915
918
|
),
|
|
916
919
|
style: r,
|
|
917
920
|
children: [
|
|
918
921
|
/* @__PURE__ */ o(
|
|
919
|
-
|
|
922
|
+
v,
|
|
920
923
|
{
|
|
921
924
|
content: l,
|
|
922
925
|
disableContentPadding: i,
|
|
923
926
|
disableContentPaddingLeft: a,
|
|
924
927
|
disableContentPaddingRight: s,
|
|
925
928
|
spaceOnLeft: !0,
|
|
926
|
-
button:
|
|
929
|
+
button: h ? /* @__PURE__ */ o(H, { onClick: d, icon: h }) : void 0
|
|
927
930
|
}
|
|
928
931
|
),
|
|
929
|
-
/* @__PURE__ */ o(k, { alignItems: "center", children:
|
|
932
|
+
/* @__PURE__ */ o(k, { alignItems: "center", children: p }),
|
|
930
933
|
/* @__PURE__ */ o(
|
|
931
|
-
|
|
934
|
+
v,
|
|
932
935
|
{
|
|
933
|
-
content:
|
|
936
|
+
content: B,
|
|
934
937
|
disableContentPadding: i,
|
|
935
938
|
disableContentPaddingLeft: a,
|
|
936
939
|
disableContentPaddingRight: s,
|
|
@@ -955,7 +958,7 @@ const re = (t, e, n) => {
|
|
|
955
958
|
disabled: a,
|
|
956
959
|
...s
|
|
957
960
|
}, _) => {
|
|
958
|
-
const
|
|
961
|
+
const h = m(
|
|
959
962
|
(d) => {
|
|
960
963
|
r && r(d), n && n(d.target.value);
|
|
961
964
|
},
|
|
@@ -969,7 +972,7 @@ const re = (t, e, n) => {
|
|
|
969
972
|
readOnly: c,
|
|
970
973
|
className: b(Ye.textArea, t),
|
|
971
974
|
style: { resize: l },
|
|
972
|
-
onChange:
|
|
975
|
+
onChange: h,
|
|
973
976
|
value: e,
|
|
974
977
|
ref: _,
|
|
975
978
|
...s
|
|
@@ -990,7 +993,7 @@ function Bn({
|
|
|
990
993
|
{
|
|
991
994
|
size: n,
|
|
992
995
|
onClick: c,
|
|
993
|
-
leftIcon:
|
|
996
|
+
leftIcon: vt,
|
|
994
997
|
disabled: t == null
|
|
995
998
|
}
|
|
996
999
|
) });
|