@stenajs-webui/forms 19.0.0-next.4 → 19.0.0-next.40
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 +527 -474
- 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,556 +1,609 @@
|
|
|
1
|
-
(function(){"use strict";try{var r=document.createElement("style");r.appendChild(document.createTextNode('._switch_17tiq_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(--swui-primary-action-color);--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_17tiq_1:focus{outline:0}._switch_17tiq_1:focus-visible{border:1px solid var(--swui-switch-selected-highlight-color);box-shadow:inset var(--swui-switch-selected-highlight-color) 0 0 4px 0}._switch_17tiq_1:hover{border:1px solid var(--swui-switch-selected-highlight-color)}._switch_17tiq_1:disabled{cursor:default;background-color:var(--swui-switch-container-bg-color-disabled);border:1px solid var(--swui-switch-container-border-color-disabled)}._switch_17tiq_1:disabled ._knob_17tiq_55{background-color:var(--swui-switch-knob-bg-color-disabled)}._switch_17tiq_1 ._filler_17tiq_60{flex:none;transition:flex var(--swui-switch-animation-time)}._switch_17tiq_1 ._knob_17tiq_55{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_17tiq_74{border:1px solid var(--swui-switch-selected-highlight-color);background-color:var(--swui-switch-selected-highlight-color)}._checked_17tiq_74 ._filler_17tiq_60{flex:1}._checkbox_14k6d_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(--swui-primary-action-color);--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);--swui-checkbox-checked-focus-shadow: var(--swui-field-focus-shadow-inverted);--swui-checkbox-unchecked-focus-shadow: var(--swui-field-focus-shadow);-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),box-shadow var(--swui-checkbox-animation-time);flex-shrink:0}._checkbox_14k6d_1._standard_14k6d_44{width:var(--swui-checkbox-height);height:var(--swui-checkbox-height)}._checkbox_14k6d_1._standard_14k6d_44:after{width:3px;height:6px;left:9px;top:6px}._checkbox_14k6d_1._small_14k6d_56{width:var(--swui-checkbox-height-small);height:var(--swui-checkbox-height-small)}._checkbox_14k6d_1._small_14k6d_56:after{width:3px;height:6px;left:5px;top:2px}._checkbox_14k6d_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_14k6d_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_14k6d_1:checked:after{--current-checkbox-icon-color: var(--swui-checkbox-icon-color)}._checkbox_14k6d_1:disabled:not(:checked){--current-bg-color: var(--swui-checkbox-disabled-bg-color);--current-border-color: var(--swui-checkbox-disabled-border-color)}._checkbox_14k6d_1:disabled:not(:checked):after{--current-checkbox-icon-color: --swui-checkbox-unchecked-icon-color}._checkbox_14k6d_1:disabled:checked{--current-bg-color: var(--swui-checkbox-disabled-checked-bg-color);--current-border-color: var(--swui-checkbox-disabled-border-color)}._checkbox_14k6d_1:disabled:checked:after{--current-checkbox-icon-color: var(--swui-checkbox-disabled-icon-color)}._checkbox_14k6d_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_14k6d_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_14k6d_1:indeterminate._standard_14k6d_44:after{top:4px;left:8px}._checkbox_14k6d_1:indeterminate._small_14k6d_56:after{top:0;left:4px}._checkbox_14k6d_1:indeterminate:disabled:after{--current-checkbox-icon-color: var(--swui-checkbox-disabled-icon-color)}._checkbox_14k6d_1:hover:not(:checked):not(:disabled){--current-border-color: var(--swui-checkbox-border-hover-color)}._checkbox_14k6d_1:focus-visible:checked{box-shadow:var(--swui-checkbox-checked-focus-shadow)}._checkbox_14k6d_1:focus-visible:not(:checked){box-shadow:var(--swui-checkbox-unchecked-focus-shadow)}._checkbox_14k6d_1+label{font-size:1.4rem;line-height:var(--swui-checkbox-height);display:inline-block;vertical-align:top;cursor:pointer;margin-left:4px}._radiobutton_i2gqw_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(--swui-primary-action-color);--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 );--swui-radiobutton-checked-focus-shadow: var( --swui-field-focus-shadow-inverted );--swui-radiobutton-unchecked-focus-shadow: var(--swui-field-focus-shadow);-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),box-shadow var(--swui-radiobutton-animation-time)}._radiobutton_i2gqw_1._standard_i2gqw_52{height:var(--swui-radiobutton-size-standard);width:var(--swui-radiobutton-size-standard)}._radiobutton_i2gqw_1._standard_i2gqw_52:after{left:7px;top:7px}._radiobutton_i2gqw_1._small_i2gqw_62{height:var(--swui-radiobutton-size-small);width:var(--swui-radiobutton-size-small)}._radiobutton_i2gqw_1._small_i2gqw_62:after{left:3px;top:3px}._radiobutton_i2gqw_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_i2gqw_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_i2gqw_1:checked:after{--current-icon-color: var(--swui-radiobutton-icon-color)}._radiobutton_i2gqw_1:disabled{--current-bg-color: var(--swui-radiobutton-unchecked-disabled-bg-color);--current-border-color: var(--swui-radiobutton-disabled-border-color)}._radiobutton_i2gqw_1:disabled:checked{--current-bg-color: var(--swui-radiobutton-checked-disabled-bg-color)}._radiobutton_i2gqw_1:disabled:checked:after{--current-icon-color: var(--swui-radiobutton-disabled-icon-color)}._radiobutton_i2gqw_1:hover:not(:checked):not(:disabled){--current-border-color: var( --swui-radiobutton-unchecked-hover-border-color )}._radiobutton_i2gqw_1:focus-visible:checked{box-shadow:var(--swui-radiobutton-checked-focus-shadow)}._radiobutton_i2gqw_1:focus-visible:not(:checked){box-shadow:var(--swui-radiobutton-unchecked-focus-shadow)}._radiobutton_i2gqw_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_ijduv_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-animation-time: var(--swui-animation-time-medium);--swui-textinput-icon-color: var(--swui-field-border-color-disabled);--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-color);--swui-textinput-bg-warning: var(--swui-state-alert-light-color);--swui-textinput-border-color-warning: var(--swui-state-alert-color);--swui-textinput-bg-error: var(--swui-state-error-light-color);--swui-textinput-border-color-error: var(--swui-state-error-color);--swui-textinput-bg-color: var(--swui-field-bg-enabled);--swui-textinput-bg-color-disabled: var(--swui-field-bg-disabled);--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-border-color-disabled: var( --swui-field-border-color-disabled );--swui-textinput-focus-shadow: var(--swui-field-focus-shadow);--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);transition:all var(--swui-textinput-animation-time)}._textInput_ijduv_1._textInput_ijduv_1:focus-within:not(._disabled_ijduv_61){box-shadow:var(--swui-textinput-focus-shadow);--current-border-color: var(--swui-textinput-border-color-hover);--current-bg: var(--swui-textinput-bg-color)}._textInput_ijduv_1 ._input_ijduv_67{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}._textInput_ijduv_1 ._input_ijduv_67:disabled{color:var(--swui-textinput-text-color-disabled)}._textInput_ijduv_1 ._input_ijduv_67::-webkit-input-placeholder{color:var(--swui-textinput-placeholder-color)}._textInput_ijduv_1 ._input_ijduv_67:-ms-input-placeholder{color:var(--swui-textinput-placeholder-color)}._textInput_ijduv_1 ._input_ijduv_67::placeholder{color:var(--swui-textinput-placeholder-color)}._textInput_ijduv_1 ._input_ijduv_67:focus{outline:none}._textInput_ijduv_1 ._input_ijduv_67::-webkit-calendar-picker-indicator{display:none}._textInput_ijduv_1._standard_ijduv_102:hover:not(._disabled_ijduv_61),._textInput_ijduv_1._success_ijduv_103:hover:not(._disabled_ijduv_61){--current-border-color: var(--swui-textinput-border-color-hover)}._textInput_ijduv_1._success_ijduv_103{--current-icon-color: var(--swui-textinput-icon-color-success)}._textInput_ijduv_1._loading_ijduv_115{--current-bg: var(--swui-textinput-bg-loading);--current-border-color: var(--swui-textinput-border-color-loading)}._textInput_ijduv_1._modified_ijduv_120{--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_ijduv_1._error_ijduv_126{--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_ijduv_1._warning_ijduv_132{--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_ijduv_1._disabled_ijduv_61{--current-bg: var(--swui-textinput-bg-color-disabled);--current-border-color: var(--swui-textinput-border-color-disabled)}._textInput_ijduv_1._textInput_ijduv_1._hideBorder_ijduv_143{border:none;box-shadow:none;background:none}._textInput_ijduv_1 ._clickable_ijduv_149:hover{--current-icon-color: var(--swui-textinput-icon-hover-color);cursor:pointer}._textInput_ijduv_1 ._icon_ijduv_154{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_1ta4a_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 );--swui-textarea-focus-shadow: var(--swui-field-focus-shadow);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_1ta4a_1:focus{outline:none;box-shadow:var(--swui-textarea-focus-shadow);--current-border-color: var(--swui-textarea-border-color-hover);--current-bg: var(--swui-textarea-bg-color)}._textArea_1ta4a_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(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Box as
|
|
4
|
-
import { forwardRef as
|
|
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
5
|
import I from "classnames";
|
|
6
|
-
import { FlatButton as
|
|
7
|
-
import { FontAwesomeIcon as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
filler: pt,
|
|
15
|
-
checked: _t
|
|
16
|
-
}, ht = `${T.switch} ${T.checked}`, gt = ({
|
|
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 = {
|
|
9
|
+
switch: "_switch_1d6s8_1",
|
|
10
|
+
knob: ht,
|
|
11
|
+
filler: gt,
|
|
12
|
+
checked: xt
|
|
13
|
+
}, wt = `${S.switch} ${S.checked}`, yt = ({
|
|
17
14
|
value: t,
|
|
18
15
|
disabled: e,
|
|
19
|
-
onValueChange:
|
|
20
|
-
className:
|
|
21
|
-
wrapperRef:
|
|
22
|
-
...
|
|
23
|
-
}) => /* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
children: /* @__PURE__ */ m("button", {
|
|
16
|
+
onValueChange: n,
|
|
17
|
+
className: r,
|
|
18
|
+
wrapperRef: s,
|
|
19
|
+
...o
|
|
20
|
+
}) => /* @__PURE__ */ c("div", { className: r, ref: s, children: /* @__PURE__ */ g(
|
|
21
|
+
"button",
|
|
22
|
+
{
|
|
27
23
|
type: "button",
|
|
28
24
|
role: "switch",
|
|
29
25
|
"aria-checked": t,
|
|
30
|
-
className: t ?
|
|
26
|
+
className: t ? wt : S.switch,
|
|
31
27
|
disabled: e,
|
|
32
|
-
onClick: () =>
|
|
33
|
-
...
|
|
34
|
-
children: [
|
|
35
|
-
className:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}), re = ({
|
|
28
|
+
onClick: () => n && n(!t),
|
|
29
|
+
...o,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ c("div", { className: S.filler }),
|
|
32
|
+
/* @__PURE__ */ c("div", { className: S.knob })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
) }), ce = ({
|
|
41
36
|
label: t,
|
|
42
37
|
disabled: e,
|
|
43
|
-
textColor:
|
|
44
|
-
wrapperRef:
|
|
45
|
-
...
|
|
46
|
-
}) => /* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
alignItems: "center",
|
|
52
|
-
children: [/* @__PURE__ */ s(gt, {
|
|
53
|
-
disabled: e,
|
|
54
|
-
...c
|
|
55
|
-
}), /* @__PURE__ */ s(w, {}), /* @__PURE__ */ s(v, {
|
|
56
|
-
userSelect: "none",
|
|
57
|
-
color: r,
|
|
58
|
-
children: t
|
|
59
|
-
})]
|
|
60
|
-
})
|
|
61
|
-
})
|
|
62
|
-
}), mt = "_checkbox_14k6d_1", kt = "_standard_14k6d_44", wt = "_small_14k6d_56", L = {
|
|
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 = {
|
|
63
46
|
checkbox: mt,
|
|
64
|
-
standard:
|
|
65
|
-
small:
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
47
|
+
standard: It,
|
|
48
|
+
small: bt
|
|
49
|
+
}, kt = $(
|
|
50
|
+
({
|
|
51
|
+
indeterminate: t = !1,
|
|
52
|
+
onChange: e,
|
|
53
|
+
onValueChange: n,
|
|
54
|
+
value: r = !1,
|
|
55
|
+
size: s = "standard",
|
|
56
|
+
className: o,
|
|
57
|
+
...l
|
|
58
|
+
}, a) => {
|
|
59
|
+
const i = P(), f = (p) => {
|
|
60
|
+
i.current = p, i.current && (i.current.indeterminate = Boolean(t)), a && (typeof a == "function" ? a(p) : a.current = p);
|
|
61
|
+
}, _ = m(
|
|
62
|
+
(p) => {
|
|
63
|
+
e && e(p), n && n(p.target.checked);
|
|
64
|
+
},
|
|
65
|
+
[e, n]
|
|
66
|
+
);
|
|
67
|
+
return K(() => {
|
|
68
|
+
i.current && (i.current.indeterminate = Boolean(t));
|
|
69
|
+
}, [t, i]), /* @__PURE__ */ c(
|
|
70
|
+
"input",
|
|
71
|
+
{
|
|
72
|
+
type: "checkbox",
|
|
73
|
+
className: I(W.checkbox, W[s], o),
|
|
74
|
+
checked: r,
|
|
75
|
+
onChange: _,
|
|
76
|
+
ref: f,
|
|
77
|
+
...l
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
), se = ({
|
|
90
82
|
children: t,
|
|
91
83
|
label: e,
|
|
92
|
-
inputRef:
|
|
93
|
-
wrapperRef:
|
|
94
|
-
textColor:
|
|
95
|
-
...
|
|
96
|
-
}) => /* @__PURE__ */
|
|
97
|
-
ref: n,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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 }),
|
|
92
|
+
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(
|
|
100
|
+
(a) => {
|
|
101
|
+
t && t(a), e && e(a.target.value);
|
|
102
|
+
},
|
|
103
|
+
[t, e]
|
|
104
|
+
);
|
|
105
|
+
return /* @__PURE__ */ c(
|
|
106
|
+
"input",
|
|
107
|
+
{
|
|
108
|
+
type: "radio",
|
|
109
|
+
name: r,
|
|
110
|
+
className: F.radiobutton + " " + F[n],
|
|
111
|
+
onChange: l,
|
|
112
|
+
ref: o,
|
|
113
|
+
...s
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
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__ */ 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 })
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ c(R, { alignItems: "center", width: "48px", justifyContent: "center", children: r && /* @__PURE__ */ c(at, { icon: r, size: 24 }) })
|
|
142
|
+
] })
|
|
143
|
+
}
|
|
144
|
+
), ie = ({
|
|
134
145
|
label: t,
|
|
135
146
|
inputRef: e,
|
|
136
|
-
wrapperRef:
|
|
137
|
-
textColor:
|
|
138
|
-
...
|
|
139
|
-
}) => /* @__PURE__ */
|
|
140
|
-
ref:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
userSelect: "none",
|
|
150
|
-
children: t
|
|
151
|
-
})]
|
|
152
|
-
})
|
|
153
|
-
})
|
|
154
|
-
}), Tt = (t, e, r, n, c, i, o, l) => {
|
|
155
|
-
const a = H(!1), p = (u) => {
|
|
156
|
-
var d;
|
|
157
|
-
a.current || i == null || i((d = u.target.value) != null ? d : ""), o == null || o(u);
|
|
158
|
-
}, f = (u) => {
|
|
159
|
-
a.current = !1, l == null || l(u);
|
|
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) => {
|
|
156
|
+
var u;
|
|
157
|
+
i.current || o == null || o((u = d.target.value) != null ? u : ""), l == null || l(d);
|
|
158
|
+
}, _ = (d) => {
|
|
159
|
+
i.current = !1, a == null || a(d);
|
|
160
160
|
};
|
|
161
161
|
return {
|
|
162
|
-
onKeyDownHandler:
|
|
163
|
-
(
|
|
164
|
-
var
|
|
165
|
-
const { key:
|
|
166
|
-
if (
|
|
167
|
-
|
|
168
|
-
else if (
|
|
169
|
-
|
|
170
|
-
else if (
|
|
171
|
-
const
|
|
172
|
-
|
|
162
|
+
onKeyDownHandler: m(
|
|
163
|
+
(d) => {
|
|
164
|
+
var y;
|
|
165
|
+
const { key: u } = d;
|
|
166
|
+
if (u === "Enter")
|
|
167
|
+
i.current = !0, n == null || n(), o == null || o((y = d.currentTarget.value) != null ? y : "");
|
|
168
|
+
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();
|
|
173
173
|
};
|
|
174
|
-
|
|
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);
|
|
175
175
|
}
|
|
176
|
-
e && e(
|
|
176
|
+
e && e(d);
|
|
177
177
|
},
|
|
178
|
-
[
|
|
178
|
+
[r, s, e, t, n, o]
|
|
179
179
|
),
|
|
180
|
-
onBlurHandler:
|
|
181
|
-
onFocusHandler:
|
|
180
|
+
onBlurHandler: f,
|
|
181
|
+
onFocusHandler: _
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
|
-
function
|
|
184
|
+
function $t(t) {
|
|
185
185
|
return t.tagName === "TEXTAREA" || t.tagName === "INPUT" && (t.type === "text" || t.type === "search" || t.type === "url" || t.type === "tel" || t.type === "password");
|
|
186
186
|
}
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
!t.current ||
|
|
187
|
+
const Pt = (t, e, n) => {
|
|
188
|
+
K(() => {
|
|
189
|
+
!t.current || !$t(t.current) || (n ? t.current.setSelectionRange(0, t.current.value.length) : e && t.current.setSelectionRange(
|
|
190
190
|
t.current.value.length,
|
|
191
191
|
t.current.value.length
|
|
192
192
|
));
|
|
193
|
-
}, [e, t,
|
|
194
|
-
},
|
|
193
|
+
}, [e, t, n]);
|
|
194
|
+
}, Ut = (t, {
|
|
195
195
|
onEnter: e,
|
|
196
|
-
onEsc:
|
|
197
|
-
onChange:
|
|
198
|
-
onValueChange:
|
|
199
|
-
selectAllOnMount:
|
|
200
|
-
moveCursorToEndOnMount:
|
|
201
|
-
onDone:
|
|
202
|
-
onMove:
|
|
203
|
-
onFocus:
|
|
204
|
-
onBlur:
|
|
205
|
-
onKeyDown:
|
|
206
|
-
autoFocus:
|
|
196
|
+
onEsc: n,
|
|
197
|
+
onChange: r,
|
|
198
|
+
onValueChange: s,
|
|
199
|
+
selectAllOnMount: o,
|
|
200
|
+
moveCursorToEndOnMount: l,
|
|
201
|
+
onDone: a,
|
|
202
|
+
onMove: i,
|
|
203
|
+
onFocus: f,
|
|
204
|
+
onBlur: _,
|
|
205
|
+
onKeyDown: p,
|
|
206
|
+
autoFocus: d
|
|
207
207
|
}) => {
|
|
208
|
-
|
|
209
|
-
const { onKeyDownHandler:
|
|
208
|
+
Pt(t, !!l, !!o);
|
|
209
|
+
const { onKeyDownHandler: u, onFocusHandler: y, onBlurHandler: h } = Ht(
|
|
210
210
|
t,
|
|
211
|
-
|
|
211
|
+
p,
|
|
212
212
|
e,
|
|
213
|
-
|
|
213
|
+
n,
|
|
214
|
+
i,
|
|
214
215
|
a,
|
|
215
|
-
|
|
216
|
-
f
|
|
217
|
-
|
|
218
|
-
), y = x(
|
|
216
|
+
_,
|
|
217
|
+
f
|
|
218
|
+
), k = m(
|
|
219
219
|
(b) => {
|
|
220
|
-
|
|
220
|
+
r == null || r(b), s == null || s(b.target.value);
|
|
221
221
|
},
|
|
222
|
-
[
|
|
222
|
+
[r, s]
|
|
223
223
|
);
|
|
224
224
|
return {
|
|
225
|
-
onBlur:
|
|
226
|
-
onChange:
|
|
227
|
-
onFocus:
|
|
228
|
-
onKeyDown:
|
|
229
|
-
autoFocus:
|
|
225
|
+
onBlur: h,
|
|
226
|
+
onChange: k,
|
|
227
|
+
onFocus: y,
|
|
228
|
+
onKeyDown: u,
|
|
229
|
+
autoFocus: o || d
|
|
230
230
|
};
|
|
231
|
-
},
|
|
232
|
-
textInput:
|
|
233
|
-
disabled:
|
|
234
|
-
input:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
},
|
|
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 = ({
|
|
245
245
|
icon: t,
|
|
246
246
|
iconClassName: e,
|
|
247
|
-
content:
|
|
248
|
-
spaceOnLeft:
|
|
249
|
-
spaceOnRight:
|
|
250
|
-
disableContentPadding:
|
|
251
|
-
disableContentPaddingLeft:
|
|
252
|
-
disableContentPaddingRight:
|
|
253
|
-
onClick:
|
|
254
|
-
}) => !
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
children: [n ? /* @__PURE__ */ s(w, {}) : null, t && /* @__PURE__ */ s(R, {
|
|
264
|
-
children: a ? /* @__PURE__ */ s(st, {
|
|
247
|
+
content: n,
|
|
248
|
+
spaceOnLeft: r,
|
|
249
|
+
spaceOnRight: s,
|
|
250
|
+
disableContentPadding: o,
|
|
251
|
+
disableContentPaddingLeft: l,
|
|
252
|
+
disableContentPaddingRight: a,
|
|
253
|
+
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,
|
|
262
|
+
{
|
|
265
263
|
type: "button",
|
|
266
|
-
onClick:
|
|
264
|
+
onClick: i,
|
|
267
265
|
leftIcon: t,
|
|
268
266
|
size: "small"
|
|
269
|
-
}
|
|
267
|
+
}
|
|
268
|
+
) : /* @__PURE__ */ c(
|
|
269
|
+
_t,
|
|
270
|
+
{
|
|
270
271
|
icon: t,
|
|
271
|
-
className: I(
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
className: I(x.icon, e)
|
|
273
|
+
}
|
|
274
|
+
) }),
|
|
275
|
+
s ? /* @__PURE__ */ c(w, {}) : null
|
|
276
|
+
] }), C = (t) => {
|
|
275
277
|
const {
|
|
276
278
|
variant: e = "standard",
|
|
277
|
-
inputRef:
|
|
278
|
-
disabled:
|
|
279
|
-
className:
|
|
280
|
-
contentLeft:
|
|
281
|
-
contentRight:
|
|
282
|
-
disableContentPadding:
|
|
283
|
-
disableContentPaddingLeft:
|
|
284
|
-
disableContentPaddingRight:
|
|
285
|
-
iconLeft:
|
|
286
|
-
iconRight:
|
|
287
|
-
onClickLeft:
|
|
288
|
-
onClickRight:
|
|
289
|
-
moveCursorToEndOnMount:
|
|
290
|
-
selectAllOnMount:
|
|
291
|
-
autoFocus:
|
|
279
|
+
inputRef: n,
|
|
280
|
+
disabled: r,
|
|
281
|
+
className: s,
|
|
282
|
+
contentLeft: o,
|
|
283
|
+
contentRight: l,
|
|
284
|
+
disableContentPadding: a,
|
|
285
|
+
disableContentPaddingLeft: i,
|
|
286
|
+
disableContentPaddingRight: f,
|
|
287
|
+
iconLeft: _,
|
|
288
|
+
iconRight: p,
|
|
289
|
+
onClickLeft: d,
|
|
290
|
+
onClickRight: u,
|
|
291
|
+
moveCursorToEndOnMount: y,
|
|
292
|
+
selectAllOnMount: h,
|
|
293
|
+
autoFocus: k,
|
|
292
294
|
onValueChange: b,
|
|
293
|
-
wrapperClassName:
|
|
294
|
-
wrapperStyle:
|
|
295
|
-
onDone:
|
|
296
|
-
onEnter:
|
|
297
|
-
onEsc:
|
|
298
|
-
onMove:
|
|
299
|
-
onChange:
|
|
300
|
-
onKeyDown:
|
|
301
|
-
hideBorder:
|
|
302
|
-
onFocus:
|
|
303
|
-
onBlur:
|
|
304
|
-
...
|
|
305
|
-
} = t,
|
|
306
|
-
onEnter:
|
|
307
|
-
onEsc:
|
|
308
|
-
onChange:
|
|
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,
|
|
309
311
|
onValueChange: b,
|
|
310
|
-
selectAllOnMount:
|
|
311
|
-
moveCursorToEndOnMount:
|
|
312
|
-
onDone:
|
|
313
|
-
onMove:
|
|
314
|
-
onFocus:
|
|
315
|
-
onBlur:
|
|
316
|
-
onKeyDown:
|
|
317
|
-
autoFocus:
|
|
318
|
-
}),
|
|
319
|
-
return /* @__PURE__ */
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
312
|
+
selectAllOnMount: h,
|
|
313
|
+
moveCursorToEndOnMount: y,
|
|
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__ */ g(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
className: I(
|
|
325
|
+
x.textInput,
|
|
326
|
+
x[e],
|
|
327
|
+
{
|
|
328
|
+
[x.disabled]: r
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
[x.hideBorder]: Z
|
|
332
|
+
},
|
|
333
|
+
z
|
|
334
|
+
),
|
|
335
|
+
style: E,
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ c(
|
|
338
|
+
T,
|
|
339
|
+
{
|
|
340
|
+
content: o,
|
|
341
|
+
disableContentPadding: a,
|
|
342
|
+
disableContentPaddingLeft: i,
|
|
343
|
+
disableContentPaddingRight: f,
|
|
344
|
+
icon: _,
|
|
345
|
+
spaceOnLeft: !0,
|
|
346
|
+
onClick: d
|
|
347
|
+
}
|
|
348
|
+
),
|
|
349
|
+
/* @__PURE__ */ c(
|
|
350
|
+
"input",
|
|
351
|
+
{
|
|
352
|
+
className: I(x.input, s),
|
|
353
|
+
type: "text",
|
|
354
|
+
disabled: r,
|
|
355
|
+
ref: U,
|
|
356
|
+
autoFocus: k,
|
|
357
|
+
...tt,
|
|
358
|
+
...nt
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
/* @__PURE__ */ c(
|
|
362
|
+
T,
|
|
363
|
+
{
|
|
364
|
+
content: ct,
|
|
365
|
+
disableContentPadding: a,
|
|
366
|
+
disableContentPaddingLeft: i,
|
|
367
|
+
disableContentPaddingRight: f,
|
|
368
|
+
icon: rt,
|
|
369
|
+
spaceOnRight: !0,
|
|
370
|
+
onClick: u
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
}, Xt = "_numericTextInputInput_1tnr6_1", qt = {
|
|
377
|
+
numericTextInputInput: Xt
|
|
378
|
+
}, Jt = ({
|
|
355
379
|
onValueChange: t,
|
|
356
380
|
value: e,
|
|
357
|
-
numSteps:
|
|
358
|
-
min:
|
|
359
|
-
max:
|
|
381
|
+
numSteps: n,
|
|
382
|
+
min: r,
|
|
383
|
+
max: s
|
|
360
384
|
}) => {
|
|
361
385
|
if (t)
|
|
362
386
|
if (!e)
|
|
363
|
-
t(String(
|
|
387
|
+
t(String(A(n, r, s)));
|
|
364
388
|
else {
|
|
365
|
-
const
|
|
366
|
-
t(String(
|
|
389
|
+
const l = (H(e) || 0) + n;
|
|
390
|
+
t(String(A(l, r, s)));
|
|
367
391
|
}
|
|
368
|
-
},
|
|
392
|
+
}, Qt = ({
|
|
369
393
|
onValueChange: t,
|
|
370
394
|
newValue: e,
|
|
371
|
-
min:
|
|
372
|
-
max:
|
|
395
|
+
min: n,
|
|
396
|
+
max: r
|
|
373
397
|
}) => {
|
|
374
398
|
if (t)
|
|
375
399
|
if (e === "")
|
|
376
400
|
t("");
|
|
377
401
|
else {
|
|
378
|
-
const
|
|
379
|
-
t(String(
|
|
402
|
+
const o = H(e) || 0;
|
|
403
|
+
t(String(A(o, n, r)));
|
|
380
404
|
}
|
|
381
|
-
},
|
|
382
|
-
let
|
|
383
|
-
return e != null && (
|
|
384
|
-
},
|
|
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 = ({
|
|
385
409
|
value: t,
|
|
386
410
|
onValueChange: e,
|
|
387
|
-
max:
|
|
388
|
-
min:
|
|
389
|
-
step:
|
|
390
|
-
contentRight:
|
|
391
|
-
disabled:
|
|
392
|
-
className:
|
|
393
|
-
hideButtons:
|
|
394
|
-
...
|
|
411
|
+
max: n,
|
|
412
|
+
min: r,
|
|
413
|
+
step: s = 1,
|
|
414
|
+
contentRight: o,
|
|
415
|
+
disabled: l,
|
|
416
|
+
className: a,
|
|
417
|
+
hideButtons: i,
|
|
418
|
+
...f
|
|
395
419
|
}) => {
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
onValueChange: e,
|
|
420
|
+
const _ = m(
|
|
421
|
+
(u) => {
|
|
422
|
+
Jt({ onValueChange: e, value: t, numSteps: u, min: r, max: n });
|
|
423
|
+
},
|
|
424
|
+
[t, n, r, e]
|
|
425
|
+
), p = m(
|
|
426
|
+
(u) => {
|
|
427
|
+
Qt({ onValueChange: e, newValue: u, min: r, max: n });
|
|
428
|
+
},
|
|
429
|
+
[n, r, e]
|
|
430
|
+
);
|
|
431
|
+
return /* @__PURE__ */ c(
|
|
432
|
+
C,
|
|
433
|
+
{
|
|
434
|
+
contentRight: i ? o : /* @__PURE__ */ g(B, { children: [
|
|
435
|
+
o && /* @__PURE__ */ g(B, { children: [
|
|
436
|
+
o,
|
|
437
|
+
/* @__PURE__ */ c(w, {})
|
|
438
|
+
] }),
|
|
439
|
+
/* @__PURE__ */ c(
|
|
440
|
+
ut,
|
|
441
|
+
{
|
|
442
|
+
onClickUp: l ? void 0 : () => _(s),
|
|
443
|
+
onClickDown: l ? void 0 : () => _(-s),
|
|
444
|
+
iconColor: "var(--swui-textinput-text-color)",
|
|
445
|
+
disabled: l
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
] }),
|
|
399
449
|
value: t,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
children: [i && /* @__PURE__ */ m(R, {
|
|
415
|
-
children: [i, /* @__PURE__ */ s(w, {})]
|
|
416
|
-
}), /* @__PURE__ */ s(ot, {
|
|
417
|
-
onClickUp: o ? void 0 : () => f(c),
|
|
418
|
-
onClickDown: o ? void 0 : () => f(-c),
|
|
419
|
-
iconColor: "var(--swui-textinput-text-color)",
|
|
420
|
-
disabled: o
|
|
421
|
-
})]
|
|
422
|
-
}),
|
|
423
|
-
value: t,
|
|
424
|
-
onValueChange: h,
|
|
425
|
-
disableContentPaddingRight: !a,
|
|
426
|
-
type: "number",
|
|
427
|
-
min: n,
|
|
428
|
-
max: r,
|
|
429
|
-
step: c,
|
|
430
|
-
className: I(Wt.numericTextInputInput, l),
|
|
431
|
-
disabled: o,
|
|
432
|
-
...p
|
|
433
|
-
});
|
|
434
|
-
}, ie = (t, e) => {
|
|
435
|
-
const r = x(
|
|
436
|
-
(c) => {
|
|
450
|
+
onValueChange: p,
|
|
451
|
+
disableContentPaddingRight: !i,
|
|
452
|
+
type: "number",
|
|
453
|
+
min: r,
|
|
454
|
+
max: n,
|
|
455
|
+
step: s,
|
|
456
|
+
className: I(qt.numericTextInputInput, a),
|
|
457
|
+
disabled: l,
|
|
458
|
+
...f
|
|
459
|
+
}
|
|
460
|
+
);
|
|
461
|
+
}, ae = (t, e) => {
|
|
462
|
+
const n = m(
|
|
463
|
+
(s) => {
|
|
437
464
|
if (e)
|
|
438
|
-
if (!
|
|
465
|
+
if (!s)
|
|
439
466
|
e(void 0);
|
|
440
467
|
else {
|
|
441
|
-
const
|
|
442
|
-
|
|
468
|
+
const o = H(s);
|
|
469
|
+
o !== void 0 && e(o);
|
|
443
470
|
}
|
|
444
471
|
},
|
|
445
472
|
[e]
|
|
446
|
-
),
|
|
473
|
+
), r = it(() => t === void 0 ? "" : String(t), [t]);
|
|
447
474
|
return {
|
|
448
|
-
onValueChange:
|
|
449
|
-
value:
|
|
475
|
+
onValueChange: n,
|
|
476
|
+
value: r
|
|
450
477
|
};
|
|
451
|
-
},
|
|
452
|
-
hiddenIcon: t =
|
|
453
|
-
visibleIcon: e =
|
|
454
|
-
...
|
|
478
|
+
}, de = ({
|
|
479
|
+
hiddenIcon: t = pt,
|
|
480
|
+
visibleIcon: e = ft,
|
|
481
|
+
...n
|
|
455
482
|
}) => {
|
|
456
|
-
const [
|
|
457
|
-
return /* @__PURE__ */
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
483
|
+
const [r, s] = lt(!0);
|
|
484
|
+
return /* @__PURE__ */ c(
|
|
485
|
+
C,
|
|
486
|
+
{
|
|
487
|
+
iconRight: r ? t : e,
|
|
488
|
+
onClickRight: () => s((o) => !o),
|
|
489
|
+
type: r ? "password" : "text",
|
|
490
|
+
...n
|
|
491
|
+
}
|
|
492
|
+
);
|
|
493
|
+
}, ue = ({
|
|
464
494
|
variant: t = "standard",
|
|
465
495
|
disabled: e,
|
|
466
|
-
wrapperClassName:
|
|
467
|
-
wrapperStyle:
|
|
468
|
-
contentLeft:
|
|
469
|
-
contentRight:
|
|
470
|
-
disableContentPadding:
|
|
471
|
-
disableContentPaddingLeft:
|
|
472
|
-
disableContentPaddingRight:
|
|
473
|
-
iconRight:
|
|
474
|
-
iconLeft:
|
|
475
|
-
onClickLeft:
|
|
476
|
-
onClickRight:
|
|
477
|
-
children:
|
|
496
|
+
wrapperClassName: n,
|
|
497
|
+
wrapperStyle: r,
|
|
498
|
+
contentLeft: s,
|
|
499
|
+
contentRight: o,
|
|
500
|
+
disableContentPadding: l,
|
|
501
|
+
disableContentPaddingLeft: a,
|
|
502
|
+
disableContentPaddingRight: i,
|
|
503
|
+
iconRight: f,
|
|
504
|
+
iconLeft: _,
|
|
505
|
+
onClickLeft: p,
|
|
506
|
+
onClickRight: d,
|
|
507
|
+
children: u
|
|
478
508
|
}) => {
|
|
479
|
-
const
|
|
480
|
-
return /* @__PURE__ */
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
className:
|
|
527
|
-
style: {
|
|
528
|
-
resize: c
|
|
529
|
-
},
|
|
530
|
-
onChange: f,
|
|
509
|
+
const y = t === "success" ? M : t === "warning" || t === "error" ? O : f, h = t === "loading" ? /* @__PURE__ */ c(j, {}) : o;
|
|
510
|
+
return /* @__PURE__ */ g(
|
|
511
|
+
"div",
|
|
512
|
+
{
|
|
513
|
+
className: I(
|
|
514
|
+
x.textInput,
|
|
515
|
+
x.inputContainer,
|
|
516
|
+
x[t],
|
|
517
|
+
{
|
|
518
|
+
[x.disabled]: e
|
|
519
|
+
},
|
|
520
|
+
n
|
|
521
|
+
),
|
|
522
|
+
style: r,
|
|
523
|
+
children: [
|
|
524
|
+
/* @__PURE__ */ c(
|
|
525
|
+
T,
|
|
526
|
+
{
|
|
527
|
+
content: s,
|
|
528
|
+
disableContentPadding: l,
|
|
529
|
+
disableContentPaddingLeft: a,
|
|
530
|
+
disableContentPaddingRight: i,
|
|
531
|
+
icon: _,
|
|
532
|
+
spaceOnLeft: !0,
|
|
533
|
+
onClick: p
|
|
534
|
+
}
|
|
535
|
+
),
|
|
536
|
+
/* @__PURE__ */ c(R, { alignItems: "center", children: u }),
|
|
537
|
+
/* @__PURE__ */ c(
|
|
538
|
+
T,
|
|
539
|
+
{
|
|
540
|
+
content: h,
|
|
541
|
+
disableContentPadding: l,
|
|
542
|
+
disableContentPaddingLeft: a,
|
|
543
|
+
disableContentPaddingRight: i,
|
|
544
|
+
icon: y,
|
|
545
|
+
spaceOnRight: !0,
|
|
546
|
+
onClick: d
|
|
547
|
+
}
|
|
548
|
+
)
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
);
|
|
552
|
+
}, Yt = "_textArea_6n6nc_1", Zt = {
|
|
553
|
+
textArea: Yt
|
|
554
|
+
}, pe = $(
|
|
555
|
+
({
|
|
556
|
+
className: t,
|
|
531
557
|
value: e,
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
558
|
+
onValueChange: n,
|
|
559
|
+
onChange: r,
|
|
560
|
+
resize: s = "none",
|
|
561
|
+
readOnly: o = !1,
|
|
562
|
+
rows: l,
|
|
563
|
+
disabled: a,
|
|
564
|
+
...i
|
|
565
|
+
}, f) => {
|
|
566
|
+
const _ = m(
|
|
567
|
+
(p) => {
|
|
568
|
+
r && r(p), n && n(p.target.value);
|
|
569
|
+
},
|
|
570
|
+
[r, n]
|
|
571
|
+
);
|
|
572
|
+
return /* @__PURE__ */ c(
|
|
573
|
+
"textarea",
|
|
574
|
+
{
|
|
575
|
+
disabled: a,
|
|
576
|
+
rows: l,
|
|
577
|
+
readOnly: o,
|
|
578
|
+
className: I(Zt.textArea, t),
|
|
579
|
+
style: { resize: s },
|
|
580
|
+
onChange: _,
|
|
581
|
+
value: e,
|
|
582
|
+
ref: f,
|
|
583
|
+
...i
|
|
584
|
+
}
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
);
|
|
536
588
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
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
|
|
555
608
|
};
|
|
556
609
|
//# sourceMappingURL=index.es.js.map
|