@stenajs-webui/forms 23.7.0 → 23.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,16 +1,17 @@
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 v, Text as j, parseFloatElseUndefined as q, getDataProps as kt } from "@stenajs-webui/core";
4
- import * as Tt from "react";
5
- import { useCallback as m, forwardRef as F, useRef as W, useEffect as K, useMemo as St, useState as Rt, useId as z } from "react";
6
- import { PrimaryButton as L, stenaMinus as G, stenaPlus as X, Icon as J, stenaCheck as Q, stenaExclamationTriangle as Y, InputSpinner as Z, UpDownButtons as Nt, FlatButton as M, TextInputButton as C, stenaEyeShow as $t, stenaEyeHide as vt, stenaAngleDown as jt } from "@stenajs-webui/elements";
3
+ import { Row as k, Box as xt, Space as g, ScreenReaderOnlyText as C, Text as v, parseFloatElseUndefined as j, getDataProps as kt, useTimeoutState as Tt } from "@stenajs-webui/core";
4
+ import * as St from "react";
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 vt, stenaAngleDown as jt, stenaCopy as qt } from "@stenajs-webui/elements";
7
7
  import b from "classnames";
8
- import { cssColor as D } from "@stenajs-webui/theme";
9
- import { FontAwesomeIcon as qt } from "@fortawesome/react-fontawesome";
8
+ import { cssColor as E } from "@stenajs-webui/theme";
9
+ import { FontAwesomeIcon as Pt } from "@fortawesome/react-fontawesome";
10
10
  import { isNil as S } from "lodash-es";
11
- const Pt = "_readOnlyInput_7bzmw_1", At = {
12
- readOnlyInput: Pt
13
- }, Ct = ({
11
+ import { Tooltip as At } from "@stenajs-webui/tooltip";
12
+ const Ht = "_readOnlyInput_7bzmw_1", Ft = {
13
+ readOnlyInput: Ht
14
+ }, Wt = ({
14
15
  value: t,
15
16
  id: e,
16
17
  ...n
@@ -22,9 +23,9 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
22
23
  id: e,
23
24
  value: t,
24
25
  readOnly: !0,
25
- className: At.readOnlyInput
26
+ className: Ft.readOnlyInput
26
27
  }
27
- ), on = ({
28
+ ), sn = ({
28
29
  value: t,
29
30
  onValueChange: e,
30
31
  decreaseDisabled: n,
@@ -46,7 +47,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
46
47
  }, [d, e, t]);
47
48
  return /* @__PURE__ */ y(k, { alignItems: "center", children: [
48
49
  /* @__PURE__ */ o(
49
- L,
50
+ M,
50
51
  {
51
52
  size: u,
52
53
  "aria-label": c,
@@ -57,7 +58,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
57
58
  }
58
59
  ),
59
60
  /* @__PURE__ */ o(
60
- Ct,
61
+ Wt,
61
62
  {
62
63
  id: l,
63
64
  "data-testid": "amountStepperValue",
@@ -66,7 +67,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
66
67
  }
67
68
  ),
68
69
  /* @__PURE__ */ o(
69
- L,
70
+ M,
70
71
  {
71
72
  size: u,
72
73
  leftIcon: X,
@@ -77,12 +78,12 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
77
78
  }
78
79
  )
79
80
  ] });
80
- }, Ht = "_knob_1d6s8_56", Ft = "_filler_1d6s8_61", Wt = "_checked_1d6s8_75", $ = {
81
+ }, Dt = "_knob_1d6s8_56", Et = "_filler_1d6s8_61", Lt = "_checked_1d6s8_75", $ = {
81
82
  switch: "_switch_1d6s8_1",
82
- knob: Ht,
83
- filler: Ft,
84
- checked: Wt
85
- }, Dt = `${$.switch} ${$.checked}`, Et = ({
83
+ knob: Dt,
84
+ filler: Et,
85
+ checked: Lt
86
+ }, Mt = `${$.switch} ${$.checked}`, Ot = ({
86
87
  value: t,
87
88
  disabled: e,
88
89
  onValueChange: n,
@@ -95,7 +96,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
95
96
  type: "button",
96
97
  role: "switch",
97
98
  "aria-checked": t,
98
- className: t ? Dt : $.switch,
99
+ className: t ? Mt : $.switch,
99
100
  disabled: e,
100
101
  onClick: () => n && n(!t),
101
102
  ...c,
@@ -104,7 +105,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
104
105
  /* @__PURE__ */ o("div", { className: $.knob })
105
106
  ]
106
107
  }
107
- ) }), rn = ({
108
+ ) }), an = ({
108
109
  label: t,
109
110
  disabled: e,
110
111
  textColor: n,
@@ -112,11 +113,11 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
112
113
  screenReaderLabel: l,
113
114
  ...c
114
115
  }) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ y(xt, { row: !0, alignItems: "center", children: [
115
- /* @__PURE__ */ o(Et, { disabled: e, ...c }),
116
+ /* @__PURE__ */ o(Ot, { disabled: e, ...c }),
116
117
  /* @__PURE__ */ o(g, {}),
117
- l ? /* @__PURE__ */ o(v, { children: l }) : null,
118
+ l ? /* @__PURE__ */ o(C, { children: l }) : null,
118
119
  /* @__PURE__ */ o(
119
- j,
120
+ v,
120
121
  {
121
122
  color: n,
122
123
  "aria-hidden": !!l,
@@ -124,11 +125,11 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
124
125
  children: t
125
126
  }
126
127
  )
127
- ] }) }) }), Lt = "_checkbox_1t23r_1", Mt = "_standard_1t23r_40", Ot = "_small_1t23r_52", O = {
128
- checkbox: Lt,
129
- standard: Mt,
130
- small: Ot
131
- }, Ut = F(
128
+ ] }) }) }), Ut = "_checkbox_1t23r_1", Kt = "_standard_1t23r_40", zt = "_small_1t23r_52", O = {
129
+ checkbox: Ut,
130
+ standard: Kt,
131
+ small: zt
132
+ }, Gt = W(
132
133
  ({
133
134
  indeterminate: t = !1,
134
135
  onChange: e,
@@ -138,7 +139,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
138
139
  className: c,
139
140
  ...i
140
141
  }, a) => {
141
- const s = W(null), _ = (d) => {
142
+ const s = D(null), _ = (d) => {
142
143
  s.current = d, s.current && (s.current.indeterminate = !!t), a && (typeof a == "function" ? a(d) : a.current = d);
143
144
  }, p = m(
144
145
  (d) => {
@@ -160,7 +161,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
160
161
  }
161
162
  );
162
163
  }
163
- ), ln = ({
164
+ ), dn = ({
164
165
  children: t,
165
166
  label: e,
166
167
  inputRef: n,
@@ -169,11 +170,11 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
169
170
  screenReaderLabel: c,
170
171
  ...i
171
172
  }) => /* @__PURE__ */ o("div", { ref: r, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ y(k, { alignItems: "center", children: [
172
- /* @__PURE__ */ o(Ut, { ...i, ref: n }),
173
+ /* @__PURE__ */ o(Gt, { ...i, ref: n }),
173
174
  /* @__PURE__ */ o(g, {}),
174
- c ? /* @__PURE__ */ o(v, { children: c }) : null,
175
+ c ? /* @__PURE__ */ o(C, { children: c }) : null,
175
176
  /* @__PURE__ */ o(
176
- j,
177
+ v,
177
178
  {
178
179
  color: l,
179
180
  "aria-hidden": !!c,
@@ -182,11 +183,11 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
182
183
  }
183
184
  ),
184
185
  t
185
- ] }) }) }), Kt = "_radiobutton_a19yk_1", zt = "_standard_a19yk_46", Gt = "_small_a19yk_56", U = {
186
- radiobutton: Kt,
187
- standard: zt,
188
- small: Gt
189
- }, V = F(
186
+ ] }) }) }), Xt = "_radiobutton_a19yk_1", Jt = "_standard_a19yk_46", Qt = "_small_a19yk_56", U = {
187
+ radiobutton: Xt,
188
+ standard: Jt,
189
+ small: Qt
190
+ }, V = W(
190
191
  ({
191
192
  onChange: t,
192
193
  onValueChange: e,
@@ -213,13 +214,13 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
213
214
  }
214
215
  );
215
216
  }
216
- ), Xt = "_radioButtonBox_yl38n_1", Jt = "_medium_yl38n_14", Qt = "_large_yl38n_19", Yt = "_danger_yl38n_28", Zt = "_radioButtonWrapper_yl38n_39", A = {
217
- radioButtonBox: Xt,
218
- medium: Jt,
219
- large: Qt,
220
- danger: Yt,
221
- radioButtonWrapper: Zt
222
- }, cn = ({
217
+ ), Yt = "_radioButtonBox_yl38n_1", Zt = "_medium_yl38n_14", Vt = "_large_yl38n_19", te = "_danger_yl38n_28", ee = "_radioButtonWrapper_yl38n_39", P = {
218
+ radioButtonBox: Yt,
219
+ medium: Zt,
220
+ large: Vt,
221
+ danger: te,
222
+ radioButtonWrapper: ee
223
+ }, un = ({
223
224
  label: t,
224
225
  screenReaderLabel: e,
225
226
  variant: n = "normal",
@@ -232,14 +233,14 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
232
233
  radioButtonClassName: _,
233
234
  ...p
234
235
  }) => {
235
- const d = s ? D("--swui-text-disabled-color") : void 0;
236
+ const d = s ? E("--swui-text-disabled-color") : void 0;
236
237
  return /* @__PURE__ */ o(
237
238
  "label",
238
239
  {
239
240
  className: b(
240
- A.radioButtonBox,
241
- A[n],
242
- A[r],
241
+ P.radioButtonBox,
242
+ P[n],
243
+ P[r],
243
244
  l
244
245
  ),
245
246
  style: a,
@@ -254,8 +255,8 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
254
255
  }
255
256
  ),
256
257
  /* @__PURE__ */ o(g, {}),
257
- e ? /* @__PURE__ */ o(v, { children: e }) : null,
258
- /* @__PURE__ */ o(j, { color: d, "aria-hidden": !!e, children: t })
258
+ e ? /* @__PURE__ */ o(C, { children: e }) : null,
259
+ /* @__PURE__ */ o(v, { color: d, "aria-hidden": !!e, children: t })
259
260
  ] }),
260
261
  /* @__PURE__ */ y(
261
262
  k,
@@ -272,7 +273,7 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
272
273
  ] })
273
274
  }
274
275
  );
275
- }, sn = ({
276
+ }, _n = ({
276
277
  label: t,
277
278
  inputRef: e,
278
279
  wrapperRef: n,
@@ -282,9 +283,9 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
282
283
  }) => /* @__PURE__ */ o("div", { ref: n, children: /* @__PURE__ */ o("label", { children: /* @__PURE__ */ y(k, { alignItems: "center", children: [
283
284
  /* @__PURE__ */ o(V, { ref: e, ...c }),
284
285
  /* @__PURE__ */ o(g, {}),
285
- l ? /* @__PURE__ */ o(v, { children: l }) : null,
286
+ l ? /* @__PURE__ */ o(C, { children: l }) : null,
286
287
  /* @__PURE__ */ o(
287
- j,
288
+ v,
288
289
  {
289
290
  color: r,
290
291
  "aria-hidden": !!l,
@@ -292,8 +293,8 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
292
293
  children: t
293
294
  }
294
295
  )
295
- ] }) }) }), Vt = (t, e, n, r, l, c, i, a) => {
296
- const s = W(!1), _ = (u) => {
296
+ ] }) }) }), ne = (t, e, n, r, l, c, i, a) => {
297
+ const s = D(!1), _ = (u) => {
297
298
  s.current || c?.(u.target.value ?? ""), i?.(u);
298
299
  }, p = (u) => {
299
300
  s.current = !1, a?.(u);
@@ -320,17 +321,17 @@ const Pt = "_readOnlyInput_7bzmw_1", At = {
320
321
  onFocusHandler: p
321
322
  };
322
323
  };
323
- function te(t) {
324
+ function oe(t) {
324
325
  return t.tagName === "TEXTAREA" || t.tagName === "INPUT" && (t.type === "text" || t.type === "search" || t.type === "url" || t.type === "tel" || t.type === "password");
325
326
  }
326
- const ee = (t, e, n) => {
327
+ const re = (t, e, n) => {
327
328
  K(() => {
328
- t.current && te(t.current) && (n ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
329
+ t.current && oe(t.current) && (n ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
329
330
  t.current.value.length,
330
331
  t.current.value.length
331
332
  ));
332
333
  }, [e, t, n]);
333
- }, ne = (t, {
334
+ }, le = (t, {
334
335
  onEnter: e,
335
336
  onEsc: n,
336
337
  onChange: r,
@@ -344,8 +345,8 @@ const ee = (t, e, n) => {
344
345
  onKeyDown: d,
345
346
  autoFocus: u
346
347
  }) => {
347
- ee(t, !!i, !!c);
348
- const { onKeyDownHandler: h, onFocusHandler: f, onBlurHandler: I } = Vt(
348
+ re(t, !!i, !!c);
349
+ const { onKeyDownHandler: h, onFocusHandler: f, onBlurHandler: I } = ne(
349
350
  t,
350
351
  d,
351
352
  e,
@@ -367,25 +368,25 @@ const ee = (t, e, n) => {
367
368
  onKeyDown: h,
368
369
  autoFocus: c || u
369
370
  };
370
- }, oe = "_textInput_1qe61_1", re = "_onlyTop_1qe61_11", le = "_disabled_1qe61_15", ce = "_onlyBottom_1qe61_20", se = "_onlyLeft_1qe61_28", ie = "_onlyRight_1qe61_37", ae = "_input_1qe61_50", de = "_alwaysShowPlaceholder_1qe61_74", ue = "_icon_1qe61_85", _e = "_standard_1qe61_95", pe = "_success_1qe61_96", he = "_loading_1qe61_108", ye = "_modified_1qe61_113", fe = "_error_1qe61_122", me = "_warning_1qe61_131", ge = "_hideBorder_1qe61_145", be = "_clickable_1qe61_152", B = {
371
- textInput: oe,
372
- onlyTop: re,
373
- disabled: le,
374
- onlyBottom: ce,
375
- onlyLeft: se,
376
- onlyRight: ie,
377
- input: ae,
378
- alwaysShowPlaceholder: de,
379
- icon: ue,
380
- standard: _e,
381
- success: pe,
382
- loading: he,
383
- modified: ye,
384
- error: fe,
385
- warning: me,
386
- hideBorder: ge,
387
- clickable: be
388
- }, P = ({
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", B = {
372
+ textInput: ce,
373
+ onlyTop: se,
374
+ disabled: ie,
375
+ onlyBottom: ae,
376
+ onlyLeft: de,
377
+ onlyRight: ue,
378
+ input: _e,
379
+ alwaysShowPlaceholder: pe,
380
+ icon: he,
381
+ standard: ye,
382
+ success: fe,
383
+ loading: me,
384
+ modified: ge,
385
+ error: be,
386
+ warning: Be,
387
+ hideBorder: Ie,
388
+ clickable: we
389
+ }, q = ({
389
390
  button: t,
390
391
  icon: e,
391
392
  iconClassName: n,
@@ -406,7 +407,7 @@ const ee = (t, e, n) => {
406
407
  ] }) : /* @__PURE__ */ y(N, { children: [
407
408
  l ? /* @__PURE__ */ o(g, {}) : null,
408
409
  e && /* @__PURE__ */ o(
409
- qt,
410
+ Pt,
410
411
  {
411
412
  icon: e,
412
413
  className: b(B.icon, n)
@@ -447,7 +448,7 @@ const ee = (t, e, n) => {
447
448
  width: ft,
448
449
  alwaysShowPlaceholder: mt,
449
450
  ...gt
450
- } = t, bt = W(null), E = n ?? bt, Bt = ne(E, {
451
+ } = t, bt = D(null), L = n ?? bt, Bt = le(L, {
451
452
  onEnter: st,
452
453
  onEsc: it,
453
454
  onChange: dt,
@@ -479,7 +480,7 @@ const ee = (t, e, n) => {
479
480
  style: { width: ft, ...lt },
480
481
  children: [
481
482
  /* @__PURE__ */ o(
482
- P,
483
+ q,
483
484
  {
484
485
  content: a,
485
486
  disableContentPadding: _,
@@ -502,14 +503,14 @@ const ee = (t, e, n) => {
502
503
  ),
503
504
  type: "text",
504
505
  disabled: r,
505
- ref: E,
506
+ ref: L,
506
507
  autoFocus: w,
507
508
  ...gt,
508
509
  ...Bt
509
510
  }
510
511
  ),
511
512
  /* @__PURE__ */ o(
512
- P,
513
+ q,
513
514
  {
514
515
  content: wt,
515
516
  disableContentPadding: _,
@@ -523,8 +524,8 @@ const ee = (t, e, n) => {
523
524
  ]
524
525
  }
525
526
  );
526
- }, Be = "_numericTextInputInput_1tnr6_1", Ie = {
527
- numericTextInputInput: Be
527
+ }, xe = "_numericTextInputInput_1tnr6_1", ke = {
528
+ numericTextInputInput: xe
528
529
  }, et = ({
529
530
  onValueChange: t,
530
531
  value: e,
@@ -534,10 +535,10 @@ const ee = (t, e, n) => {
534
535
  }) => {
535
536
  if (t)
536
537
  if (!e)
537
- t(String(H(n, r, l)));
538
+ t(String(F(n, r, l)));
538
539
  else {
539
- const i = (q(e) || 0) + n;
540
- t(String(H(i, r, l)));
540
+ const i = (j(e) || 0) + n;
541
+ t(String(F(i, r, l)));
541
542
  }
542
543
  }, nt = ({
543
544
  onValueChange: t,
@@ -549,13 +550,13 @@ const ee = (t, e, n) => {
549
550
  if (e === "")
550
551
  t("");
551
552
  else {
552
- const c = q(e) || 0;
553
- t(String(H(c, n, r)));
553
+ const c = j(e) || 0;
554
+ t(String(F(c, n, r)));
554
555
  }
555
- }, H = (t, e, n) => {
556
+ }, F = (t, e, n) => {
556
557
  let r = t;
557
558
  return e != null && (r = Math.max(e, r)), n != null && (r = Math.min(n, r)), r;
558
- }, we = ({
559
+ }, Te = ({
559
560
  value: t,
560
561
  onValueChange: e,
561
562
  max: n,
@@ -587,7 +588,7 @@ const ee = (t, e, n) => {
587
588
  /* @__PURE__ */ o(g, {})
588
589
  ] }),
589
590
  /* @__PURE__ */ o(
590
- Nt,
591
+ $t,
591
592
  {
592
593
  onClickUp: i ? void 0 : () => p(l),
593
594
  onClickDown: i ? void 0 : () => p(-l),
@@ -603,43 +604,43 @@ const ee = (t, e, n) => {
603
604
  min: r,
604
605
  max: n,
605
606
  step: l,
606
- className: b(Ie.numericTextInputInput, a),
607
+ className: b(ke.numericTextInputInput, a),
607
608
  disabled: i,
608
609
  ..._
609
610
  }
610
611
  );
611
- }, an = (t, e) => {
612
+ }, pn = (t, e) => {
612
613
  const n = m(
613
614
  (l) => {
614
615
  if (e)
615
616
  if (!l)
616
617
  e(void 0);
617
618
  else {
618
- const c = q(l);
619
+ const c = j(l);
619
620
  c !== void 0 && e(c);
620
621
  }
621
622
  },
622
623
  [e]
623
- ), r = St(() => t === void 0 ? "" : String(t), [t]);
624
+ ), r = Rt(() => t === void 0 ? "" : String(t), [t]);
624
625
  return {
625
626
  onValueChange: n,
626
627
  value: r
627
628
  };
628
- }, xe = (t, e) => {
629
+ }, Se = (t, e) => {
629
630
  if (S(t))
630
631
  return !1;
631
632
  {
632
- const n = q(t);
633
+ const n = j(t);
633
634
  return !S(n) && !S(e) && n <= e;
634
635
  }
635
- }, ke = (t, e) => {
636
+ }, Re = (t, e) => {
636
637
  if (S(t))
637
638
  return !1;
638
639
  {
639
- const n = q(t);
640
+ const n = j(t);
640
641
  return !S(n) && !S(e) && n >= e;
641
642
  }
642
- }, dn = ({
643
+ }, hn = ({
643
644
  disabled: t,
644
645
  onValueChange: e,
645
646
  value: n,
@@ -661,17 +662,17 @@ const ee = (t, e, n) => {
661
662
  );
662
663
  return /* @__PURE__ */ y(k, { role: "group", children: [
663
664
  /* @__PURE__ */ o(
664
- M,
665
+ A,
665
666
  {
666
667
  leftIcon: G,
667
668
  "aria-label": "Decrease",
668
- disabled: t || xe(n, l),
669
+ disabled: t || Se(n, l),
669
670
  onClick: () => a(-c)
670
671
  }
671
672
  ),
672
673
  /* @__PURE__ */ o(g, {}),
673
674
  /* @__PURE__ */ o(
674
- we,
675
+ Te,
675
676
  {
676
677
  hideButtons: !0,
677
678
  onValueChange: s,
@@ -685,26 +686,26 @@ const ee = (t, e, n) => {
685
686
  ),
686
687
  /* @__PURE__ */ o(g, {}),
687
688
  /* @__PURE__ */ o(
688
- M,
689
+ A,
689
690
  {
690
691
  leftIcon: X,
691
692
  "aria-label": "Increase",
692
- disabled: t || ke(n, r),
693
+ disabled: t || Re(n, r),
693
694
  onClick: () => a(c)
694
695
  }
695
696
  )
696
697
  ] });
697
- }, un = ({
698
- hiddenIcon: t = $t,
698
+ }, yn = ({
699
+ hiddenIcon: t = Ct,
699
700
  visibleIcon: e = vt,
700
701
  ...n
701
702
  }) => {
702
- const [r, l] = Rt(!0);
703
+ const [r, l] = Nt(!0);
703
704
  return /* @__PURE__ */ o(
704
705
  tt,
705
706
  {
706
707
  buttonRight: /* @__PURE__ */ o(
707
- C,
708
+ H,
708
709
  {
709
710
  icon: r ? t : e,
710
711
  onClick: () => l((c) => !c)
@@ -714,15 +715,15 @@ const ee = (t, e, n) => {
714
715
  ...n
715
716
  }
716
717
  );
717
- }, Te = ({
718
+ }, Ne = ({
718
719
  disabled: t,
719
720
  text: e,
720
721
  ...n
721
722
  }) => /* @__PURE__ */ o(
722
- j,
723
+ v,
723
724
  {
724
725
  variant: "bold",
725
- color: D(t ? "--silver" : "--tjara"),
726
+ color: E(t ? "--silver" : "--tjara"),
726
727
  size: "small",
727
728
  ...kt(n),
728
729
  children: e
@@ -734,29 +735,29 @@ const ee = (t, e, n) => {
734
735
  disabled: r,
735
736
  className: l
736
737
  }) => /* @__PURE__ */ y("label", { htmlFor: t, className: l, children: [
737
- e ? /* @__PURE__ */ o(v, { children: e }) : null,
738
+ e ? /* @__PURE__ */ o(C, { children: e }) : null,
738
739
  /* @__PURE__ */ o(
739
- Te,
740
+ Ne,
740
741
  {
741
742
  "aria-hidden": !!e,
742
743
  text: n,
743
744
  disabled: r
744
745
  }
745
746
  )
746
- ] }), Se = "_labelledSelect_vs9pj_1", Re = "_medium_vs9pj_7", Ne = "_large_vs9pj_11", $e = "_error_vs9pj_15", ve = "_normal_vs9pj_20", je = "_onlyTopBorder_vs9pj_25", qe = "_onlyBottomBorder_vs9pj_31", Pe = "_onlyLeftBorder_vs9pj_36", Ae = "_onlyRightBorder_vs9pj_42", Ce = "_label_vs9pj_1", He = "_select_vs9pj_65", Fe = "_iconWrapper_vs9pj_99", x = {
747
- labelledSelect: Se,
748
- medium: Re,
749
- large: Ne,
750
- error: $e,
751
- normal: ve,
752
- onlyTopBorder: je,
753
- onlyBottomBorder: qe,
754
- onlyLeftBorder: Pe,
755
- onlyRightBorder: Ae,
756
- label: Ce,
757
- select: He,
758
- iconWrapper: Fe
759
- }, _n = ({
747
+ ] }), $e = "_labelledSelect_vs9pj_1", Ce = "_medium_vs9pj_7", ve = "_large_vs9pj_11", je = "_error_vs9pj_15", qe = "_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
+ labelledSelect: $e,
749
+ medium: Ce,
750
+ large: ve,
751
+ error: je,
752
+ normal: qe,
753
+ onlyTopBorder: Pe,
754
+ onlyBottomBorder: Ae,
755
+ onlyLeftBorder: He,
756
+ onlyRightBorder: Fe,
757
+ label: We,
758
+ select: De,
759
+ iconWrapper: Ee
760
+ }, fn = ({
760
761
  onChange: t,
761
762
  onValueChange: e,
762
763
  id: n,
@@ -808,23 +809,23 @@ const ee = (t, e, n) => {
808
809
  {
809
810
  icon: jt,
810
811
  size: 24,
811
- color: D("--modern-blue")
812
+ color: E("--modern-blue")
812
813
  }
813
814
  ) })
814
815
  ]
815
816
  }
816
817
  );
817
- }, We = "_labelledTextInput_1uyc3_1", De = "_onlyTop_1uyc3_21", Ee = "_onlyBottom_1uyc3_27", Le = "_onlyLeft_1uyc3_32", Me = "_onlyRight_1uyc3_38", Oe = "_disabled_1uyc3_53", Ue = "_medium_1uyc3_61", Ke = "_large_1uyc3_73", ze = "_error_1uyc3_87", R = {
818
- labelledTextInput: We,
819
- onlyTop: De,
820
- onlyBottom: Ee,
821
- onlyLeft: Le,
822
- onlyRight: Me,
823
- disabled: Oe,
824
- medium: Ue,
825
- large: Ke,
826
- error: ze
827
- }, pn = Tt.forwardRef(
818
+ }, Le = "_labelledTextInput_1uyc3_1", Me = "_onlyTop_1uyc3_21", Oe = "_onlyBottom_1uyc3_27", Ue = "_onlyLeft_1uyc3_32", Ke = "_onlyRight_1uyc3_38", ze = "_disabled_1uyc3_53", Ge = "_medium_1uyc3_61", Xe = "_large_1uyc3_73", Je = "_error_1uyc3_87", R = {
819
+ labelledTextInput: Le,
820
+ onlyTop: Me,
821
+ onlyBottom: Oe,
822
+ onlyLeft: Ue,
823
+ onlyRight: Ke,
824
+ disabled: ze,
825
+ medium: Ge,
826
+ large: Xe,
827
+ error: Je
828
+ }, mn = St.forwardRef(
828
829
  ({
829
830
  autoComplete: t = "off",
830
831
  label: e,
@@ -883,7 +884,7 @@ const ee = (t, e, n) => {
883
884
  }
884
885
  );
885
886
  }
886
- ), hn = ({
887
+ ), gn = ({
887
888
  variant: t = "standard",
888
889
  disabled: e,
889
890
  wrapperClassName: n,
@@ -915,34 +916,34 @@ const ee = (t, e, n) => {
915
916
  style: r,
916
917
  children: [
917
918
  /* @__PURE__ */ o(
918
- P,
919
+ q,
919
920
  {
920
921
  content: l,
921
922
  disableContentPadding: i,
922
923
  disableContentPaddingLeft: a,
923
924
  disableContentPaddingRight: s,
924
925
  spaceOnLeft: !0,
925
- button: p ? /* @__PURE__ */ o(C, { onClick: d, icon: p }) : void 0
926
+ button: p ? /* @__PURE__ */ o(H, { onClick: d, icon: p }) : void 0
926
927
  }
927
928
  ),
928
929
  /* @__PURE__ */ o(k, { alignItems: "center", children: h }),
929
930
  /* @__PURE__ */ o(
930
- P,
931
+ q,
931
932
  {
932
933
  content: I,
933
934
  disableContentPadding: i,
934
935
  disableContentPaddingLeft: a,
935
936
  disableContentPaddingRight: s,
936
937
  spaceOnRight: !0,
937
- button: f ? /* @__PURE__ */ o(C, { onClick: u, icon: f }) : void 0
938
+ button: f ? /* @__PURE__ */ o(H, { onClick: u, icon: f }) : void 0
938
939
  }
939
940
  )
940
941
  ]
941
942
  }
942
943
  );
943
- }, Ge = "_textArea_6n6nc_1", Xe = {
944
- textArea: Ge
945
- }, yn = F(
944
+ }, Qe = "_textArea_6n6nc_1", Ye = {
945
+ textArea: Qe
946
+ }, bn = W(
946
947
  ({
947
948
  className: t,
948
949
  value: e,
@@ -966,7 +967,7 @@ const ee = (t, e, n) => {
966
967
  disabled: a,
967
968
  rows: i,
968
969
  readOnly: c,
969
- className: b(Xe.textArea, t),
970
+ className: b(Ye.textArea, t),
970
971
  style: { resize: l },
971
972
  onChange: p,
972
973
  value: e,
@@ -976,32 +977,51 @@ const ee = (t, e, n) => {
976
977
  );
977
978
  }
978
979
  );
980
+ function Bn({
981
+ value: t,
982
+ tooltipLabel: e = "Copied to clipboard!",
983
+ size: n = "small"
984
+ }) {
985
+ const [r, l] = Tt(!1, 2e3), c = m(async () => {
986
+ t != null && (await navigator.clipboard.writeText(t), l(!0));
987
+ }, [l, t]);
988
+ return /* @__PURE__ */ o(At, { visible: r, label: e, children: /* @__PURE__ */ o(
989
+ A,
990
+ {
991
+ size: n,
992
+ onClick: c,
993
+ leftIcon: qt,
994
+ disabled: t == null
995
+ }
996
+ ) });
997
+ }
979
998
  export {
980
- on as AmountStepperButtons,
981
- Ut as Checkbox,
982
- ln as CheckboxWithLabel,
999
+ sn as AmountStepperButtons,
1000
+ Gt as Checkbox,
1001
+ dn as CheckboxWithLabel,
1002
+ Bn as CopyToClipboardButton,
983
1003
  ot as InputLabel,
984
- Te as InputLabelText,
985
- _n as LabelledSelect,
986
- pn as LabelledTextInput,
987
- dn as NumericStepper,
988
- we as NumericTextInput,
989
- un as PasswordInput,
1004
+ Ne as InputLabelText,
1005
+ fn as LabelledSelect,
1006
+ mn as LabelledTextInput,
1007
+ hn as NumericStepper,
1008
+ Te as NumericTextInput,
1009
+ yn as PasswordInput,
990
1010
  V as RadioButton,
991
- cn as RadioButtonBox,
992
- sn as RadioButtonWithLabel,
993
- Ct as ReadOnlyNumericInput,
994
- Et as Switch,
995
- rn as SwitchWithLabel,
996
- yn as TextArea,
1011
+ un as RadioButtonBox,
1012
+ _n as RadioButtonWithLabel,
1013
+ Wt as ReadOnlyNumericInput,
1014
+ Ot as Switch,
1015
+ an as SwitchWithLabel,
1016
+ bn as TextArea,
997
1017
  tt as TextInput,
998
- hn as TextInputBox,
999
- te as elementHasSelectionRange,
1018
+ gn as TextInputBox,
1019
+ oe as elementHasSelectionRange,
1000
1020
  et as onStepValueChange,
1001
1021
  nt as onTextValueChange,
1002
- Vt as useKeyboardNavigation,
1003
- an as useNumericInputValue,
1004
- ee as useSelectAllOnMount,
1005
- ne as useTextInput
1022
+ ne as useKeyboardNavigation,
1023
+ pn as useNumericInputValue,
1024
+ re as useSelectAllOnMount,
1025
+ le as useTextInput
1006
1026
  };
1007
1027
  //# sourceMappingURL=index.es.js.map