@stenajs-webui/forms 19.0.0-next.34 → 19.0.0-next.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/radio/RadioButtonBox.d.ts +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +249 -221
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
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}._textInput_11y5a_1{--swui-textinput-text-color: var(--swui-field-text-color);--swui-textinput-text-color-disabled: var(--swui-field-text-color-disabled);--swui-textinput-letter-spacing: var(--swui-field-letter-spacing);--swui-textinput-line-height: var(--swui-field-text-line-height);--swui-textinput-indent: var(--swui-metrics-indent);--swui-textinput-spacing: calc(var(--swui-field-text-spacing) - 1px);--swui-textinput-font-size: var(--swui-font-size-inputs);--swui-textinput-font-family: var(--swui-font-input);--swui-textinput-font-weight: var(--swui-font-weight-inputs);--swui-textinput-placeholder-color: var(--swui-field-placeholder-color);--swui-textinput-placeholder-font-weight: var( --swui-field-placeholder-font-weight );--swui-textinput-animation-time: var(--swui-animation-time-medium);--swui-textinput-icon-color: var(--swui-field-icon-color);--swui-textinput-icon-hover-color: var(--swui-primary-action-color);--swui-textinput-icon-size: var(--swui-field-icon-size);--swui-textinput-icon-color-success: var(--swui-state-success-color);--swui-textinput-bg-loading: var(--swui-state-loading-light-color);--swui-textinput-border-color-loading: var(--swui-state-loading-color);--swui-textinput-bg-modified: var(--swui-state-modified-light-color);--swui-textinput-border-color-modified: var( --swui-state-modified-light-color );--swui-textinput-bg-warning: var(--swui-state-alert-light-color);--swui-textinput-border-color-warning: var(--swui-state-alert-light-color);--swui-textinput-bg-error: var(--swui-state-error-light-color);--swui-textinput-border-color-error: var(--swui-state-error-light-color);--swui-textinput-bg-color-disabled: var(--swui-field-bg-disabled);--swui-textinput-border-color-disabled: var(--swui-field-bg-disabled);--swui-textinput-bg-color: var(--swui-field-bg-enabled);--swui-textinput-border-radius: var(--swui-field-border-radius);--swui-textinput-border-color: var(--swui-field-border-color);--swui-textinput-border-color-hover: var(--swui-field-border-color-hover);--swui-textinput-focus-shadow: none;--current-bg: var(--swui-textinput-bg-color);--current-border-color: var(--swui-textinput-border-color);--current-icon-color: var(--swui-textinput-icon-color);display:flex;width:100%;align-items:center;background:var(--current-bg);border:1px solid var(--current-border-color);border-radius:var(--swui-textinput-border-radius);outline:none}._textInput_11y5a_1._textInput_11y5a_1:focus-within:not(._disabled_11y5a_65){box-shadow:var(--swui-textinput-focus-shadow);border:1px solid transparent;outline:var(--swui-focus-outline);--current-border-color: var(--swui-textinput-border-color-hover);--current-bg: var(--swui-textinput-bg-color)}._textInput_11y5a_1 ._input_11y5a_73{letter-spacing:var(--swui-textinput-letter-spacing);line-height:var(--swui-textinput-line-height);width:100%;padding:var(--swui-textinput-spacing) var(--swui-textinput-indent);color:var(--swui-textinput-text-color);font-size:var(--swui-textinput-font-size);font-family:var(--swui-textinput-font-family);font-weight:var(--swui-textinput-font-weight);background:var(--swui-hidden);border:none;min-width:0;margin:0;outline:none}._textInput_11y5a_1 ._input_11y5a_73:disabled{color:var(--swui-textinput-text-color-disabled)}._textInput_11y5a_1 ._input_11y5a_73::-webkit-input-placeholder{color:var(--swui-textinput-placeholder-color);font-weight:var(--swui-textinput-placeholder-font-weight)}._textInput_11y5a_1 ._input_11y5a_73::placeholder{color:var(--swui-textinput-placeholder-color);font-weight:var(--swui-textinput-placeholder-font-weight)}._textInput_11y5a_1 ._input_11y5a_73:focus::-webkit-input-placeholder{opacity:0}._textInput_11y5a_1 ._input_11y5a_73:focus::placeholder{opacity:0}._textInput_11y5a_1 ._input_11y5a_73::-webkit-calendar-picker-indicator{display:none}._textInput_11y5a_1._standard_11y5a_110:hover:not(._disabled_11y5a_65),._textInput_11y5a_1._success_11y5a_111:hover:not(._disabled_11y5a_65){--current-border-color: var(--swui-textinput-border-color-hover)}._textInput_11y5a_1._success_11y5a_111{--current-icon-color: var(--swui-textinput-icon-color-success)}._textInput_11y5a_1._loading_11y5a_123{--current-bg: var(--swui-textinput-bg-loading);--current-border-color: var(--swui-textinput-border-color-loading)}._textInput_11y5a_1._modified_11y5a_128{--current-bg: var(--swui-textinput-bg-modified);--current-border-color: var(--swui-textinput-border-color-modified);--current-icon-color: var(--lhds-color-blue-300)}._textInput_11y5a_1._error_11y5a_134{--current-bg: var(--swui-textinput-bg-error);--current-border-color: var(--swui-textinput-border-color-error);--current-icon-color: var(--swui-textinput-border-color-error)}._textInput_11y5a_1._warning_11y5a_140{--current-bg: var(--swui-textinput-bg-warning);--current-border-color: var(--swui-textinput-border-color-warning);--current-icon-color: var(--swui-textinput-border-color-warning)}._textInput_11y5a_1._disabled_11y5a_65{--current-bg: var(--swui-textinput-bg-color-disabled);--current-border-color: var(--swui-textinput-border-color-disabled)}._textInput_11y5a_1._textInput_11y5a_1._hideBorder_11y5a_151{border:none;box-shadow:none;background:none}._textInput_11y5a_1 ._clickable_11y5a_157:hover{--current-icon-color: var(--swui-textinput-icon-hover-color);cursor:pointer}._textInput_11y5a_1 ._icon_11y5a_162{transition:color var(--swui-textinput-animation-time);color:var(--current-icon-color);font-size:var(--swui-textinput-icon-size)}._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_1lpu2_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-spacing: calc(var(--swui-field-text-spacing) - 1px);--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:var(--swui-textarea-spacing) 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_1lpu2_1:focus:not(:focus-visible){outline:none}._textArea_1lpu2_1:focus{--current-border-color: var(--swui-textarea-border-color-hover);--current-bg: var(--swui-textarea-bg-color)}._textArea_1lpu2_1:focus-visible{outline:var(--swui-focus-outline)}._textArea_1lpu2_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
|
|
3
|
-
import { Box as
|
|
4
|
-
import { forwardRef as $, useRef as
|
|
5
|
-
import
|
|
6
|
-
import { FlatButton as
|
|
7
|
-
import { FontAwesomeIcon as
|
|
8
|
-
const
|
|
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_11y5a_1{--swui-textinput-text-color: var(--swui-field-text-color);--swui-textinput-text-color-disabled: var(--swui-field-text-color-disabled);--swui-textinput-letter-spacing: var(--swui-field-letter-spacing);--swui-textinput-line-height: var(--swui-field-text-line-height);--swui-textinput-indent: var(--swui-metrics-indent);--swui-textinput-spacing: calc(var(--swui-field-text-spacing) - 1px);--swui-textinput-font-size: var(--swui-font-size-inputs);--swui-textinput-font-family: var(--swui-font-input);--swui-textinput-font-weight: var(--swui-font-weight-inputs);--swui-textinput-placeholder-color: var(--swui-field-placeholder-color);--swui-textinput-placeholder-font-weight: var( --swui-field-placeholder-font-weight );--swui-textinput-animation-time: var(--swui-animation-time-medium);--swui-textinput-icon-color: var(--swui-field-icon-color);--swui-textinput-icon-hover-color: var(--swui-primary-action-color);--swui-textinput-icon-size: var(--swui-field-icon-size);--swui-textinput-icon-color-success: var(--swui-state-success-color);--swui-textinput-bg-loading: var(--swui-state-loading-light-color);--swui-textinput-border-color-loading: var(--swui-state-loading-color);--swui-textinput-bg-modified: var(--swui-state-modified-light-color);--swui-textinput-border-color-modified: var( --swui-state-modified-light-color );--swui-textinput-bg-warning: var(--swui-state-alert-light-color);--swui-textinput-border-color-warning: var(--swui-state-alert-light-color);--swui-textinput-bg-error: var(--swui-state-error-light-color);--swui-textinput-border-color-error: var(--swui-state-error-light-color);--swui-textinput-bg-color-disabled: var(--swui-field-bg-disabled);--swui-textinput-border-color-disabled: var(--swui-field-bg-disabled);--swui-textinput-bg-color: var(--swui-field-bg-enabled);--swui-textinput-border-radius: var(--swui-field-border-radius);--swui-textinput-border-color: var(--swui-field-border-color);--swui-textinput-border-color-hover: var(--swui-field-border-color-hover);--swui-textinput-focus-shadow: none;--current-bg: var(--swui-textinput-bg-color);--current-border-color: var(--swui-textinput-border-color);--current-icon-color: var(--swui-textinput-icon-color);display:flex;width:100%;align-items:center;background:var(--current-bg);border:1px solid var(--current-border-color);border-radius:var(--swui-textinput-border-radius);outline:none}._textInput_11y5a_1._textInput_11y5a_1:focus-within:not(._disabled_11y5a_65){box-shadow:var(--swui-textinput-focus-shadow);border:1px solid transparent;outline:var(--swui-focus-outline);--current-border-color: var(--swui-textinput-border-color-hover);--current-bg: var(--swui-textinput-bg-color)}._textInput_11y5a_1 ._input_11y5a_73{letter-spacing:var(--swui-textinput-letter-spacing);line-height:var(--swui-textinput-line-height);width:100%;padding:var(--swui-textinput-spacing) var(--swui-textinput-indent);color:var(--swui-textinput-text-color);font-size:var(--swui-textinput-font-size);font-family:var(--swui-textinput-font-family);font-weight:var(--swui-textinput-font-weight);background:var(--swui-hidden);border:none;min-width:0;margin:0;outline:none}._textInput_11y5a_1 ._input_11y5a_73:disabled{color:var(--swui-textinput-text-color-disabled)}._textInput_11y5a_1 ._input_11y5a_73::-webkit-input-placeholder{color:var(--swui-textinput-placeholder-color);font-weight:var(--swui-textinput-placeholder-font-weight)}._textInput_11y5a_1 ._input_11y5a_73::placeholder{color:var(--swui-textinput-placeholder-color);font-weight:var(--swui-textinput-placeholder-font-weight)}._textInput_11y5a_1 ._input_11y5a_73:focus::-webkit-input-placeholder{opacity:0}._textInput_11y5a_1 ._input_11y5a_73:focus::placeholder{opacity:0}._textInput_11y5a_1 ._input_11y5a_73::-webkit-calendar-picker-indicator{display:none}._textInput_11y5a_1._standard_11y5a_110:hover:not(._disabled_11y5a_65),._textInput_11y5a_1._success_11y5a_111:hover:not(._disabled_11y5a_65){--current-border-color: var(--swui-textinput-border-color-hover)}._textInput_11y5a_1._success_11y5a_111{--current-icon-color: var(--swui-textinput-icon-color-success)}._textInput_11y5a_1._loading_11y5a_123{--current-bg: var(--swui-textinput-bg-loading);--current-border-color: var(--swui-textinput-border-color-loading)}._textInput_11y5a_1._modified_11y5a_128{--current-bg: var(--swui-textinput-bg-modified);--current-border-color: var(--swui-textinput-border-color-modified);--current-icon-color: var(--lhds-color-blue-300)}._textInput_11y5a_1._error_11y5a_134{--current-bg: var(--swui-textinput-bg-error);--current-border-color: var(--swui-textinput-border-color-error);--current-icon-color: var(--swui-textinput-border-color-error)}._textInput_11y5a_1._warning_11y5a_140{--current-bg: var(--swui-textinput-bg-warning);--current-border-color: var(--swui-textinput-border-color-warning);--current-icon-color: var(--swui-textinput-border-color-warning)}._textInput_11y5a_1._disabled_11y5a_65{--current-bg: var(--swui-textinput-bg-color-disabled);--current-border-color: var(--swui-textinput-border-color-disabled)}._textInput_11y5a_1._textInput_11y5a_1._hideBorder_11y5a_151{border:none;box-shadow:none;background:none}._textInput_11y5a_1 ._clickable_11y5a_157:hover{--current-icon-color: var(--swui-textinput-icon-hover-color);cursor:pointer}._textInput_11y5a_1 ._icon_11y5a_162{transition:color var(--swui-textinput-animation-time);color:var(--current-icon-color);font-size:var(--swui-textinput-icon-size)}._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_1lpu2_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-spacing: calc(var(--swui-field-text-spacing) - 1px);--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:var(--swui-textarea-spacing) 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_1lpu2_1:focus:not(:focus-visible){outline:none}._textArea_1lpu2_1:focus{--current-border-color: var(--swui-textarea-border-color-hover);--current-bg: var(--swui-textarea-bg-color)}._textArea_1lpu2_1:focus-visible{outline:var(--swui-focus-outline)}._textArea_1lpu2_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 c, jsxs as y, Fragment as B } from "react/jsx-runtime";
|
|
3
|
+
import { Box as st, Space as x, 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 w, useEffect as K, useMemo as it, useState as lt } from "react";
|
|
5
|
+
import I from "classnames";
|
|
6
|
+
import { Icon as at, FlatButton as ut, stenaCheck as M, stenaExclamationTriangle as O, InputSpinner as j, UpDownButtons as dt, 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", yt = "_filler_1d6s8_61", gt = "_checked_1d6s8_75", S = {
|
|
9
9
|
switch: "_switch_1d6s8_1",
|
|
10
|
-
knob:
|
|
11
|
-
filler:
|
|
12
|
-
checked:
|
|
13
|
-
},
|
|
10
|
+
knob: ht,
|
|
11
|
+
filler: yt,
|
|
12
|
+
checked: gt
|
|
13
|
+
}, xt = `${S.switch} ${S.checked}`, mt = ({
|
|
14
14
|
value: t,
|
|
15
15
|
disabled: e,
|
|
16
16
|
onValueChange: n,
|
|
17
17
|
className: r,
|
|
18
|
-
wrapperRef:
|
|
18
|
+
wrapperRef: s,
|
|
19
19
|
...o
|
|
20
|
-
}) => /* @__PURE__ */
|
|
20
|
+
}) => /* @__PURE__ */ c("div", { className: r, ref: s, children: /* @__PURE__ */ y(
|
|
21
21
|
"button",
|
|
22
22
|
{
|
|
23
23
|
type: "button",
|
|
24
24
|
role: "switch",
|
|
25
25
|
"aria-checked": t,
|
|
26
|
-
className: t ?
|
|
26
|
+
className: t ? xt : S.switch,
|
|
27
27
|
disabled: e,
|
|
28
28
|
onClick: () => n && n(!t),
|
|
29
29
|
...o,
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ c("div", { className: S.filler }),
|
|
32
|
+
/* @__PURE__ */ c("div", { className: S.knob })
|
|
33
33
|
]
|
|
34
34
|
}
|
|
35
|
-
) }),
|
|
35
|
+
) }), ce = ({
|
|
36
36
|
label: t,
|
|
37
37
|
disabled: e,
|
|
38
38
|
textColor: n,
|
|
39
39
|
wrapperRef: r,
|
|
40
|
-
...
|
|
41
|
-
}) => /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
] }) }) }),
|
|
46
|
-
checkbox:
|
|
47
|
-
standard:
|
|
40
|
+
...s
|
|
41
|
+
}) => /* @__PURE__ */ c("div", { ref: r, children: /* @__PURE__ */ c("label", { children: /* @__PURE__ */ y(st, { row: !0, alignItems: "center", children: [
|
|
42
|
+
/* @__PURE__ */ c(mt, { disabled: e, ...s }),
|
|
43
|
+
/* @__PURE__ */ c(x, {}),
|
|
44
|
+
/* @__PURE__ */ c(N, { userSelect: "none", color: n, children: t })
|
|
45
|
+
] }) }) }), wt = "_checkbox_1ndou_1", It = "_standard_1ndou_39", bt = "_small_1ndou_51", W = {
|
|
46
|
+
checkbox: wt,
|
|
47
|
+
standard: It,
|
|
48
48
|
small: bt
|
|
49
|
-
},
|
|
49
|
+
}, kt = $(
|
|
50
50
|
({
|
|
51
51
|
indeterminate: t = !1,
|
|
52
52
|
onChange: e,
|
|
53
53
|
onValueChange: n,
|
|
54
54
|
value: r = !1,
|
|
55
|
-
size:
|
|
55
|
+
size: s = "standard",
|
|
56
56
|
className: o,
|
|
57
57
|
...l
|
|
58
58
|
}, a) => {
|
|
59
|
-
const i =
|
|
59
|
+
const i = P(), f = (p) => {
|
|
60
60
|
i.current = p, i.current && (i.current.indeterminate = Boolean(t)), a && (typeof a == "function" ? a(p) : a.current = p);
|
|
61
61
|
}, _ = w(
|
|
62
62
|
(p) => {
|
|
@@ -66,11 +66,11 @@ const dt = "_knob_1d6s8_56", pt = "_filler_1d6s8_61", ft = "_checked_1d6s8_75",
|
|
|
66
66
|
);
|
|
67
67
|
return K(() => {
|
|
68
68
|
i.current && (i.current.indeterminate = Boolean(t));
|
|
69
|
-
}, [t, i]), /* @__PURE__ */
|
|
69
|
+
}, [t, i]), /* @__PURE__ */ c(
|
|
70
70
|
"input",
|
|
71
71
|
{
|
|
72
72
|
type: "checkbox",
|
|
73
|
-
className:
|
|
73
|
+
className: I(W.checkbox, W[s], o),
|
|
74
74
|
checked: r,
|
|
75
75
|
onChange: _,
|
|
76
76
|
ref: f,
|
|
@@ -78,31 +78,31 @@ const dt = "_knob_1d6s8_56", pt = "_filler_1d6s8_61", ft = "_checked_1d6s8_75",
|
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
-
),
|
|
81
|
+
), se = ({
|
|
82
82
|
children: t,
|
|
83
83
|
label: e,
|
|
84
84
|
inputRef: n,
|
|
85
85
|
wrapperRef: r,
|
|
86
|
-
textColor:
|
|
86
|
+
textColor: s,
|
|
87
87
|
...o
|
|
88
|
-
}) => /* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
e && /* @__PURE__ */
|
|
88
|
+
}) => /* @__PURE__ */ c("div", { ref: r, children: /* @__PURE__ */ c("label", { children: /* @__PURE__ */ y(R, { alignItems: "center", children: [
|
|
89
|
+
/* @__PURE__ */ c(kt, { ...o, ref: n }),
|
|
90
|
+
/* @__PURE__ */ c(x, {}),
|
|
91
|
+
e && /* @__PURE__ */ c(N, { userSelect: "none", color: s, children: e }),
|
|
92
92
|
t
|
|
93
|
-
] }) }) }),
|
|
94
|
-
radiobutton:
|
|
95
|
-
standard:
|
|
96
|
-
small:
|
|
97
|
-
},
|
|
98
|
-
({ onChange: t, onValueChange: e, size: n = "standard", name: r, ...
|
|
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
99
|
const l = w(
|
|
100
100
|
(a) => {
|
|
101
101
|
t && t(a), e && e(a.target.value);
|
|
102
102
|
},
|
|
103
103
|
[t, e]
|
|
104
104
|
);
|
|
105
|
-
return /* @__PURE__ */
|
|
105
|
+
return /* @__PURE__ */ c(
|
|
106
106
|
"input",
|
|
107
107
|
{
|
|
108
108
|
type: "radio",
|
|
@@ -110,22 +110,49 @@ const dt = "_knob_1d6s8_56", pt = "_filler_1d6s8_61", ft = "_checked_1d6s8_75",
|
|
|
110
110
|
className: F.radiobutton + " " + F[n],
|
|
111
111
|
onChange: l,
|
|
112
112
|
ref: o,
|
|
113
|
-
...
|
|
113
|
+
...s
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
|
-
),
|
|
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 = ({
|
|
122
|
+
label: t,
|
|
123
|
+
screenReaderLabel: e,
|
|
124
|
+
variant: n = "normal",
|
|
125
|
+
icon: r,
|
|
126
|
+
className: s,
|
|
127
|
+
style: o,
|
|
128
|
+
...l
|
|
129
|
+
}) => /* @__PURE__ */ c(
|
|
130
|
+
"label",
|
|
131
|
+
{
|
|
132
|
+
className: I(L.radioButtonBox, L[n], s),
|
|
133
|
+
style: o,
|
|
134
|
+
children: /* @__PURE__ */ y(R, { justifyContent: "space-between", flexGrow: 1, children: [
|
|
135
|
+
/* @__PURE__ */ y(R, { alignItems: "center", children: [
|
|
136
|
+
/* @__PURE__ */ c(v, { ...l }),
|
|
137
|
+
/* @__PURE__ */ c(x, {}),
|
|
138
|
+
e ? /* @__PURE__ */ c(ot, { children: e }) : null,
|
|
139
|
+
/* @__PURE__ */ c(N, { "aria-hidden": Boolean(e), children: t })
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ c(R, { alignItems: "center", width: "48px", justifyContent: "center", children: r && /* @__PURE__ */ c(at, { icon: r, size: 24 }) })
|
|
142
|
+
] })
|
|
143
|
+
}
|
|
144
|
+
), ie = ({
|
|
118
145
|
label: t,
|
|
119
146
|
inputRef: e,
|
|
120
147
|
wrapperRef: n,
|
|
121
148
|
textColor: r,
|
|
122
|
-
...
|
|
123
|
-
}) => /* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
] }) }) }),
|
|
128
|
-
const i =
|
|
149
|
+
...s
|
|
150
|
+
}) => /* @__PURE__ */ c("div", { ref: n, children: /* @__PURE__ */ c("label", { children: /* @__PURE__ */ y(R, { alignItems: "center", children: [
|
|
151
|
+
/* @__PURE__ */ c(v, { ref: e, ...s }),
|
|
152
|
+
/* @__PURE__ */ c(x, {}),
|
|
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 = (u) => {
|
|
129
156
|
var d;
|
|
130
157
|
i.current || o == null || o((d = u.target.value) != null ? d : ""), l == null || l(u);
|
|
131
158
|
}, _ = (u) => {
|
|
@@ -134,41 +161,41 @@ const dt = "_knob_1d6s8_56", pt = "_filler_1d6s8_61", ft = "_checked_1d6s8_75",
|
|
|
134
161
|
return {
|
|
135
162
|
onKeyDownHandler: w(
|
|
136
163
|
(u) => {
|
|
137
|
-
var
|
|
164
|
+
var m;
|
|
138
165
|
const { key: d } = u;
|
|
139
166
|
if (d === "Enter")
|
|
140
|
-
i.current = !0, n == null || n(), o == null || o((
|
|
167
|
+
i.current = !0, n == null || n(), o == null || o((m = u.currentTarget.value) != null ? m : "");
|
|
141
168
|
else if (d === "Escape")
|
|
142
169
|
i.current = !0, r == null || r(), u.preventDefault(), u.stopPropagation();
|
|
143
|
-
else if (
|
|
144
|
-
const h = (
|
|
145
|
-
i.current = !0, t.current.blur(),
|
|
170
|
+
else if (s) {
|
|
171
|
+
const h = (k, b) => {
|
|
172
|
+
i.current = !0, t.current.blur(), s(k), b.preventDefault(), b.stopPropagation();
|
|
146
173
|
};
|
|
147
174
|
u.shiftKey && d === "Tab" ? h("left", u) : d === "Tab" ? h("right", u) : d === "ArrowUp" ? h("up", u) : d === "ArrowDown" ? h("down", u) : d === "ArrowRight" ? t.current.value.length === t.current.selectionStart && h("right", u) : d === "ArrowLeft" && t.current.selectionStart === 0 && h("left", u);
|
|
148
175
|
}
|
|
149
176
|
e && e(u);
|
|
150
177
|
},
|
|
151
|
-
[r,
|
|
178
|
+
[r, s, e, t, n, o]
|
|
152
179
|
),
|
|
153
180
|
onBlurHandler: f,
|
|
154
181
|
onFocusHandler: _
|
|
155
182
|
};
|
|
156
183
|
};
|
|
157
|
-
function
|
|
184
|
+
function $t(t) {
|
|
158
185
|
return t.tagName === "TEXTAREA" || t.tagName === "INPUT" && (t.type === "text" || t.type === "search" || t.type === "url" || t.type === "tel" || t.type === "password");
|
|
159
186
|
}
|
|
160
|
-
const
|
|
187
|
+
const Pt = (t, e, n) => {
|
|
161
188
|
K(() => {
|
|
162
|
-
!t.current ||
|
|
189
|
+
!t.current || !$t(t.current) || (n ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
|
|
163
190
|
t.current.value.length,
|
|
164
191
|
t.current.value.length
|
|
165
192
|
));
|
|
166
193
|
}, [e, t, n]);
|
|
167
|
-
},
|
|
194
|
+
}, Ut = (t, {
|
|
168
195
|
onEnter: e,
|
|
169
196
|
onEsc: n,
|
|
170
197
|
onChange: r,
|
|
171
|
-
onValueChange:
|
|
198
|
+
onValueChange: s,
|
|
172
199
|
selectAllOnMount: o,
|
|
173
200
|
moveCursorToEndOnMount: l,
|
|
174
201
|
onDone: a,
|
|
@@ -178,8 +205,8 @@ const Tt = (t, e, n) => {
|
|
|
178
205
|
onKeyDown: p,
|
|
179
206
|
autoFocus: u
|
|
180
207
|
}) => {
|
|
181
|
-
|
|
182
|
-
const { onKeyDownHandler: d, onFocusHandler:
|
|
208
|
+
Pt(t, !!l, !!o);
|
|
209
|
+
const { onKeyDownHandler: d, onFocusHandler: m, onBlurHandler: h } = Ht(
|
|
183
210
|
t,
|
|
184
211
|
p,
|
|
185
212
|
e,
|
|
@@ -188,70 +215,70 @@ const Tt = (t, e, n) => {
|
|
|
188
215
|
a,
|
|
189
216
|
_,
|
|
190
217
|
f
|
|
191
|
-
),
|
|
192
|
-
(
|
|
193
|
-
r == null || r(
|
|
218
|
+
), k = w(
|
|
219
|
+
(b) => {
|
|
220
|
+
r == null || r(b), s == null || s(b.target.value);
|
|
194
221
|
},
|
|
195
|
-
[r,
|
|
222
|
+
[r, s]
|
|
196
223
|
);
|
|
197
224
|
return {
|
|
198
225
|
onBlur: h,
|
|
199
|
-
onChange:
|
|
200
|
-
onFocus:
|
|
226
|
+
onChange: k,
|
|
227
|
+
onFocus: m,
|
|
201
228
|
onKeyDown: d,
|
|
202
229
|
autoFocus: o || u
|
|
203
230
|
};
|
|
204
|
-
},
|
|
205
|
-
textInput:
|
|
206
|
-
disabled:
|
|
207
|
-
input:
|
|
208
|
-
standard:
|
|
209
|
-
success:
|
|
210
|
-
loading:
|
|
211
|
-
modified:
|
|
212
|
-
error:
|
|
213
|
-
warning:
|
|
214
|
-
hideBorder:
|
|
215
|
-
clickable:
|
|
216
|
-
icon:
|
|
231
|
+
}, Wt = "_textInput_11y5a_1", Ft = "_disabled_11y5a_65", Lt = "_input_11y5a_73", Kt = "_standard_11y5a_110", Mt = "_success_11y5a_111", Ot = "_loading_11y5a_123", jt = "_modified_11y5a_128", vt = "_error_11y5a_134", Ct = "_warning_11y5a_140", zt = "_hideBorder_11y5a_151", Et = "_clickable_11y5a_157", Gt = "_icon_11y5a_162", g = {
|
|
232
|
+
textInput: Wt,
|
|
233
|
+
disabled: Ft,
|
|
234
|
+
input: Lt,
|
|
235
|
+
standard: Kt,
|
|
236
|
+
success: Mt,
|
|
237
|
+
loading: Ot,
|
|
238
|
+
modified: jt,
|
|
239
|
+
error: vt,
|
|
240
|
+
warning: Ct,
|
|
241
|
+
hideBorder: zt,
|
|
242
|
+
clickable: Et,
|
|
243
|
+
icon: Gt
|
|
217
244
|
}, T = ({
|
|
218
245
|
icon: t,
|
|
219
246
|
iconClassName: e,
|
|
220
247
|
content: n,
|
|
221
248
|
spaceOnLeft: r,
|
|
222
|
-
spaceOnRight:
|
|
249
|
+
spaceOnRight: s,
|
|
223
250
|
disableContentPadding: o,
|
|
224
251
|
disableContentPaddingLeft: l,
|
|
225
252
|
disableContentPaddingRight: a,
|
|
226
253
|
onClick: i
|
|
227
|
-
}) => !n && !t ? null : n ? /* @__PURE__ */
|
|
228
|
-
r && !(o || l) ? /* @__PURE__ */
|
|
229
|
-
i ? /* @__PURE__ */
|
|
230
|
-
|
|
231
|
-
] }) : /* @__PURE__ */
|
|
232
|
-
r ? /* @__PURE__ */
|
|
233
|
-
t && /* @__PURE__ */
|
|
234
|
-
|
|
254
|
+
}) => !n && !t ? null : n ? /* @__PURE__ */ y(B, { children: [
|
|
255
|
+
r && !(o || l) ? /* @__PURE__ */ c(x, {}) : null,
|
|
256
|
+
i ? /* @__PURE__ */ c("span", { onClick: i, className: g.clickable, children: n || null }) : /* @__PURE__ */ c(B, { children: n || null }),
|
|
257
|
+
s && !(o || a) ? /* @__PURE__ */ c(x, {}) : null
|
|
258
|
+
] }) : /* @__PURE__ */ y(B, { children: [
|
|
259
|
+
r ? /* @__PURE__ */ c(x, {}) : null,
|
|
260
|
+
t && /* @__PURE__ */ c(B, { children: i ? /* @__PURE__ */ c(
|
|
261
|
+
ut,
|
|
235
262
|
{
|
|
236
263
|
type: "button",
|
|
237
264
|
onClick: i,
|
|
238
265
|
leftIcon: t,
|
|
239
266
|
size: "small"
|
|
240
267
|
}
|
|
241
|
-
) : /* @__PURE__ */
|
|
242
|
-
|
|
268
|
+
) : /* @__PURE__ */ c(
|
|
269
|
+
_t,
|
|
243
270
|
{
|
|
244
271
|
icon: t,
|
|
245
|
-
className:
|
|
272
|
+
className: I(g.icon, e)
|
|
246
273
|
}
|
|
247
274
|
) }),
|
|
248
|
-
|
|
249
|
-
] }),
|
|
275
|
+
s ? /* @__PURE__ */ c(x, {}) : null
|
|
276
|
+
] }), C = (t) => {
|
|
250
277
|
const {
|
|
251
278
|
variant: e = "standard",
|
|
252
279
|
inputRef: n,
|
|
253
280
|
disabled: r,
|
|
254
|
-
className:
|
|
281
|
+
className: s,
|
|
255
282
|
contentLeft: o,
|
|
256
283
|
contentRight: l,
|
|
257
284
|
disableContentPadding: a,
|
|
@@ -261,53 +288,53 @@ const Tt = (t, e, n) => {
|
|
|
261
288
|
iconRight: p,
|
|
262
289
|
onClickLeft: u,
|
|
263
290
|
onClickRight: d,
|
|
264
|
-
moveCursorToEndOnMount:
|
|
291
|
+
moveCursorToEndOnMount: m,
|
|
265
292
|
selectAllOnMount: h,
|
|
266
|
-
autoFocus:
|
|
267
|
-
onValueChange:
|
|
268
|
-
wrapperClassName:
|
|
269
|
-
wrapperStyle:
|
|
270
|
-
onDone:
|
|
271
|
-
onEnter:
|
|
272
|
-
onEsc:
|
|
273
|
-
onMove:
|
|
274
|
-
onChange:
|
|
275
|
-
onKeyDown:
|
|
276
|
-
hideBorder:
|
|
277
|
-
onFocus:
|
|
278
|
-
onBlur:
|
|
279
|
-
...
|
|
280
|
-
} = t,
|
|
281
|
-
onEnter:
|
|
282
|
-
onEsc:
|
|
283
|
-
onChange:
|
|
284
|
-
onValueChange:
|
|
293
|
+
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,
|
|
285
312
|
selectAllOnMount: h,
|
|
286
|
-
moveCursorToEndOnMount:
|
|
287
|
-
onDone:
|
|
288
|
-
onMove:
|
|
289
|
-
onFocus:
|
|
290
|
-
onBlur:
|
|
291
|
-
onKeyDown:
|
|
292
|
-
autoFocus:
|
|
293
|
-
}),
|
|
294
|
-
return /* @__PURE__ */
|
|
313
|
+
moveCursorToEndOnMount: m,
|
|
314
|
+
onDone: G,
|
|
315
|
+
onMove: J,
|
|
316
|
+
onFocus: D,
|
|
317
|
+
onBlur: V,
|
|
318
|
+
onKeyDown: Y,
|
|
319
|
+
autoFocus: k
|
|
320
|
+
}), rt = e === "success" ? M : e === "warning" || e === "error" ? O : p, ct = e === "loading" ? /* @__PURE__ */ c(j, {}) : l;
|
|
321
|
+
return /* @__PURE__ */ y(
|
|
295
322
|
"div",
|
|
296
323
|
{
|
|
297
|
-
className:
|
|
298
|
-
|
|
299
|
-
|
|
324
|
+
className: I(
|
|
325
|
+
g.textInput,
|
|
326
|
+
g[e],
|
|
300
327
|
{
|
|
301
|
-
[
|
|
328
|
+
[g.disabled]: r
|
|
302
329
|
},
|
|
303
330
|
{
|
|
304
|
-
[
|
|
331
|
+
[g.hideBorder]: Z
|
|
305
332
|
},
|
|
306
|
-
|
|
333
|
+
z
|
|
307
334
|
),
|
|
308
|
-
style:
|
|
335
|
+
style: E,
|
|
309
336
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ c(
|
|
311
338
|
T,
|
|
312
339
|
{
|
|
313
340
|
content: o,
|
|
@@ -319,26 +346,26 @@ const Tt = (t, e, n) => {
|
|
|
319
346
|
onClick: u
|
|
320
347
|
}
|
|
321
348
|
),
|
|
322
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ c(
|
|
323
350
|
"input",
|
|
324
351
|
{
|
|
325
|
-
className:
|
|
352
|
+
className: I(g.input, s),
|
|
326
353
|
type: "text",
|
|
327
354
|
disabled: r,
|
|
328
|
-
ref:
|
|
329
|
-
autoFocus:
|
|
330
|
-
...
|
|
331
|
-
...
|
|
355
|
+
ref: U,
|
|
356
|
+
autoFocus: k,
|
|
357
|
+
...tt,
|
|
358
|
+
...nt
|
|
332
359
|
}
|
|
333
360
|
),
|
|
334
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ c(
|
|
335
362
|
T,
|
|
336
363
|
{
|
|
337
|
-
content:
|
|
364
|
+
content: ct,
|
|
338
365
|
disableContentPadding: a,
|
|
339
366
|
disableContentPaddingLeft: i,
|
|
340
367
|
disableContentPaddingRight: f,
|
|
341
|
-
icon:
|
|
368
|
+
icon: rt,
|
|
342
369
|
spaceOnRight: !0,
|
|
343
370
|
onClick: d
|
|
344
371
|
}
|
|
@@ -346,23 +373,23 @@ const Tt = (t, e, n) => {
|
|
|
346
373
|
]
|
|
347
374
|
}
|
|
348
375
|
);
|
|
349
|
-
},
|
|
350
|
-
numericTextInputInput:
|
|
351
|
-
},
|
|
376
|
+
}, Xt = "_numericTextInputInput_1tnr6_1", qt = {
|
|
377
|
+
numericTextInputInput: Xt
|
|
378
|
+
}, Jt = ({
|
|
352
379
|
onValueChange: t,
|
|
353
380
|
value: e,
|
|
354
381
|
numSteps: n,
|
|
355
382
|
min: r,
|
|
356
|
-
max:
|
|
383
|
+
max: s
|
|
357
384
|
}) => {
|
|
358
385
|
if (t)
|
|
359
386
|
if (!e)
|
|
360
|
-
t(String(
|
|
387
|
+
t(String(A(n, r, s)));
|
|
361
388
|
else {
|
|
362
389
|
const l = (H(e) || 0) + n;
|
|
363
|
-
t(String(
|
|
390
|
+
t(String(A(l, r, s)));
|
|
364
391
|
}
|
|
365
|
-
},
|
|
392
|
+
}, Qt = ({
|
|
366
393
|
onValueChange: t,
|
|
367
394
|
newValue: e,
|
|
368
395
|
min: n,
|
|
@@ -373,17 +400,17 @@ const Tt = (t, e, n) => {
|
|
|
373
400
|
t("");
|
|
374
401
|
else {
|
|
375
402
|
const o = H(e) || 0;
|
|
376
|
-
t(String(
|
|
403
|
+
t(String(A(o, n, r)));
|
|
377
404
|
}
|
|
378
|
-
},
|
|
405
|
+
}, A = (t, e, n) => {
|
|
379
406
|
let r = t;
|
|
380
407
|
return e != null && (r = Math.max(e, r)), n != null && (r = Math.min(n, r)), r;
|
|
381
|
-
},
|
|
408
|
+
}, le = ({
|
|
382
409
|
value: t,
|
|
383
410
|
onValueChange: e,
|
|
384
411
|
max: n,
|
|
385
412
|
min: r,
|
|
386
|
-
step:
|
|
413
|
+
step: s = 1,
|
|
387
414
|
contentRight: o,
|
|
388
415
|
disabled: l,
|
|
389
416
|
className: a,
|
|
@@ -392,28 +419,28 @@ const Tt = (t, e, n) => {
|
|
|
392
419
|
}) => {
|
|
393
420
|
const _ = w(
|
|
394
421
|
(d) => {
|
|
395
|
-
|
|
422
|
+
Jt({ onValueChange: e, value: t, numSteps: d, min: r, max: n });
|
|
396
423
|
},
|
|
397
424
|
[t, n, r, e]
|
|
398
425
|
), p = w(
|
|
399
426
|
(d) => {
|
|
400
|
-
|
|
427
|
+
Qt({ onValueChange: e, newValue: d, min: r, max: n });
|
|
401
428
|
},
|
|
402
429
|
[n, r, e]
|
|
403
430
|
);
|
|
404
|
-
return /* @__PURE__ */
|
|
405
|
-
|
|
431
|
+
return /* @__PURE__ */ c(
|
|
432
|
+
C,
|
|
406
433
|
{
|
|
407
|
-
contentRight: i ? o : /* @__PURE__ */
|
|
408
|
-
o && /* @__PURE__ */
|
|
434
|
+
contentRight: i ? o : /* @__PURE__ */ y(B, { children: [
|
|
435
|
+
o && /* @__PURE__ */ y(B, { children: [
|
|
409
436
|
o,
|
|
410
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ c(x, {})
|
|
411
438
|
] }),
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
|
|
439
|
+
/* @__PURE__ */ c(
|
|
440
|
+
dt,
|
|
414
441
|
{
|
|
415
|
-
onClickUp: l ? void 0 : () => _(
|
|
416
|
-
onClickDown: l ? void 0 : () => _(-
|
|
442
|
+
onClickUp: l ? void 0 : () => _(s),
|
|
443
|
+
onClickDown: l ? void 0 : () => _(-s),
|
|
417
444
|
iconColor: "var(--swui-textinput-text-color)",
|
|
418
445
|
disabled: l
|
|
419
446
|
}
|
|
@@ -425,50 +452,50 @@ const Tt = (t, e, n) => {
|
|
|
425
452
|
type: "number",
|
|
426
453
|
min: r,
|
|
427
454
|
max: n,
|
|
428
|
-
step:
|
|
429
|
-
className:
|
|
455
|
+
step: s,
|
|
456
|
+
className: I(qt.numericTextInputInput, a),
|
|
430
457
|
disabled: l,
|
|
431
458
|
...f
|
|
432
459
|
}
|
|
433
460
|
);
|
|
434
|
-
},
|
|
461
|
+
}, ae = (t, e) => {
|
|
435
462
|
const n = w(
|
|
436
|
-
(
|
|
463
|
+
(s) => {
|
|
437
464
|
if (e)
|
|
438
|
-
if (!
|
|
465
|
+
if (!s)
|
|
439
466
|
e(void 0);
|
|
440
467
|
else {
|
|
441
|
-
const o = H(
|
|
468
|
+
const o = H(s);
|
|
442
469
|
o !== void 0 && e(o);
|
|
443
470
|
}
|
|
444
471
|
},
|
|
445
472
|
[e]
|
|
446
|
-
), r =
|
|
473
|
+
), r = it(() => t === void 0 ? "" : String(t), [t]);
|
|
447
474
|
return {
|
|
448
475
|
onValueChange: n,
|
|
449
476
|
value: r
|
|
450
477
|
};
|
|
451
|
-
},
|
|
452
|
-
hiddenIcon: t =
|
|
453
|
-
visibleIcon: e =
|
|
478
|
+
}, ue = ({
|
|
479
|
+
hiddenIcon: t = pt,
|
|
480
|
+
visibleIcon: e = ft,
|
|
454
481
|
...n
|
|
455
482
|
}) => {
|
|
456
|
-
const [r,
|
|
457
|
-
return /* @__PURE__ */
|
|
458
|
-
|
|
483
|
+
const [r, s] = lt(!0);
|
|
484
|
+
return /* @__PURE__ */ c(
|
|
485
|
+
C,
|
|
459
486
|
{
|
|
460
487
|
iconRight: r ? t : e,
|
|
461
|
-
onClickRight: () =>
|
|
488
|
+
onClickRight: () => s((o) => !o),
|
|
462
489
|
type: r ? "password" : "text",
|
|
463
490
|
...n
|
|
464
491
|
}
|
|
465
492
|
);
|
|
466
|
-
},
|
|
493
|
+
}, de = ({
|
|
467
494
|
variant: t = "standard",
|
|
468
495
|
disabled: e,
|
|
469
496
|
wrapperClassName: n,
|
|
470
497
|
wrapperStyle: r,
|
|
471
|
-
contentLeft:
|
|
498
|
+
contentLeft: s,
|
|
472
499
|
contentRight: o,
|
|
473
500
|
disableContentPadding: l,
|
|
474
501
|
disableContentPaddingLeft: a,
|
|
@@ -479,25 +506,25 @@ const Tt = (t, e, n) => {
|
|
|
479
506
|
onClickRight: u,
|
|
480
507
|
children: d
|
|
481
508
|
}) => {
|
|
482
|
-
const
|
|
483
|
-
return /* @__PURE__ */
|
|
509
|
+
const m = t === "success" ? M : t === "warning" || t === "error" ? O : f, h = t === "loading" ? /* @__PURE__ */ c(j, {}) : o;
|
|
510
|
+
return /* @__PURE__ */ y(
|
|
484
511
|
"div",
|
|
485
512
|
{
|
|
486
|
-
className:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
513
|
+
className: I(
|
|
514
|
+
g.textInput,
|
|
515
|
+
g.inputContainer,
|
|
516
|
+
g[t],
|
|
490
517
|
{
|
|
491
|
-
[
|
|
518
|
+
[g.disabled]: e
|
|
492
519
|
},
|
|
493
520
|
n
|
|
494
521
|
),
|
|
495
522
|
style: r,
|
|
496
523
|
children: [
|
|
497
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ c(
|
|
498
525
|
T,
|
|
499
526
|
{
|
|
500
|
-
content:
|
|
527
|
+
content: s,
|
|
501
528
|
disableContentPadding: l,
|
|
502
529
|
disableContentPaddingLeft: a,
|
|
503
530
|
disableContentPaddingRight: i,
|
|
@@ -506,15 +533,15 @@ const Tt = (t, e, n) => {
|
|
|
506
533
|
onClick: p
|
|
507
534
|
}
|
|
508
535
|
),
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ c(R, { alignItems: "center", children: d }),
|
|
537
|
+
/* @__PURE__ */ c(
|
|
511
538
|
T,
|
|
512
539
|
{
|
|
513
540
|
content: h,
|
|
514
541
|
disableContentPadding: l,
|
|
515
542
|
disableContentPaddingLeft: a,
|
|
516
543
|
disableContentPaddingRight: i,
|
|
517
|
-
icon:
|
|
544
|
+
icon: m,
|
|
518
545
|
spaceOnRight: !0,
|
|
519
546
|
onClick: u
|
|
520
547
|
}
|
|
@@ -522,15 +549,15 @@ const Tt = (t, e, n) => {
|
|
|
522
549
|
]
|
|
523
550
|
}
|
|
524
551
|
);
|
|
525
|
-
},
|
|
526
|
-
textArea:
|
|
527
|
-
},
|
|
552
|
+
}, Yt = "_textArea_1lpu2_1", Zt = {
|
|
553
|
+
textArea: Yt
|
|
554
|
+
}, pe = $(
|
|
528
555
|
({
|
|
529
556
|
className: t,
|
|
530
557
|
value: e,
|
|
531
558
|
onValueChange: n,
|
|
532
559
|
onChange: r,
|
|
533
|
-
resize:
|
|
560
|
+
resize: s = "none",
|
|
534
561
|
readOnly: o = !1,
|
|
535
562
|
rows: l,
|
|
536
563
|
disabled: a,
|
|
@@ -542,14 +569,14 @@ const Tt = (t, e, n) => {
|
|
|
542
569
|
},
|
|
543
570
|
[r, n]
|
|
544
571
|
);
|
|
545
|
-
return /* @__PURE__ */
|
|
572
|
+
return /* @__PURE__ */ c(
|
|
546
573
|
"textarea",
|
|
547
574
|
{
|
|
548
575
|
disabled: a,
|
|
549
576
|
rows: l,
|
|
550
577
|
readOnly: o,
|
|
551
|
-
className:
|
|
552
|
-
style: { resize:
|
|
578
|
+
className: I(Zt.textArea, t),
|
|
579
|
+
style: { resize: s },
|
|
553
580
|
onChange: _,
|
|
554
581
|
value: e,
|
|
555
582
|
ref: f,
|
|
@@ -559,23 +586,24 @@ const Tt = (t, e, n) => {
|
|
|
559
586
|
}
|
|
560
587
|
);
|
|
561
588
|
export {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
589
|
+
kt as Checkbox,
|
|
590
|
+
se as CheckboxWithLabel,
|
|
591
|
+
le as NumericTextInput,
|
|
592
|
+
ue as PasswordInput,
|
|
593
|
+
v as RadioButton,
|
|
594
|
+
oe as RadioButtonBox,
|
|
595
|
+
ie as RadioButtonWithLabel,
|
|
596
|
+
mt as Switch,
|
|
597
|
+
ce as SwitchWithLabel,
|
|
598
|
+
pe as TextArea,
|
|
599
|
+
C as TextInput,
|
|
600
|
+
de 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
|
|
580
608
|
};
|
|
581
609
|
//# sourceMappingURL=index.es.js.map
|