@stenajs-webui/forms 19.0.0-next.40 → 19.0.0-next.42

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