@vchasno/ui-kit 0.3.33 → 0.3.35
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/CHANGELOG.md +12 -0
- package/dist/Datepicker/index.cjs.js +4 -3
- package/dist/Datepicker/index.cjs.js.map +1 -1
- package/dist/Datepicker/index.d.ts +6 -1
- package/dist/Datepicker/index.js +4 -3
- package/dist/Datepicker/index.js.map +1 -1
- package/dist/Datepicker/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/Datepicker/types/components/Input/Input.d.ts +2 -3
- package/dist/Datepicker/types/components/Select/Select.d.ts +2 -2
- package/dist/Datepicker/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/Datepicker/types/components/types.d.ts +4 -0
- package/dist/Menu/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/Menu/types/components/Input/Input.d.ts +2 -3
- package/dist/Menu/types/components/Select/Select.d.ts +2 -2
- package/dist/Menu/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/Menu/types/components/types.d.ts +4 -0
- package/dist/ProjectsPopover/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/ProjectsPopover/types/components/Input/Input.d.ts +2 -3
- package/dist/ProjectsPopover/types/components/Select/Select.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/types.d.ts +4 -0
- package/dist/Select/index.cjs.js +2 -2
- package/dist/Select/index.cjs.js.map +1 -1
- package/dist/Select/index.d.ts +5 -1
- package/dist/Select/index.js +2 -2
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/Select/types/components/Input/Input.d.ts +2 -3
- package/dist/Select/types/components/Select/Select.d.ts +2 -2
- package/dist/Select/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/Select/types/components/types.d.ts +4 -0
- package/dist/SelectCreatable/index.cjs.js +2 -2
- package/dist/SelectCreatable/index.cjs.js.map +1 -1
- package/dist/SelectCreatable/index.d.ts +5 -1
- package/dist/SelectCreatable/index.js +2 -2
- package/dist/SelectCreatable/index.js.map +1 -1
- package/dist/SelectCreatable/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/SelectCreatable/types/components/Input/Input.d.ts +2 -3
- package/dist/SelectCreatable/types/components/Select/Select.d.ts +2 -2
- package/dist/SelectCreatable/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/SelectCreatable/types/components/types.d.ts +4 -0
- package/dist/Snackbar/index.cjs.js +3 -3
- package/dist/Snackbar/index.cjs.js.map +1 -1
- package/dist/Snackbar/index.js +3 -3
- package/dist/Snackbar/index.js.map +1 -1
- package/dist/Snackbar/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/Snackbar/types/components/Input/Input.d.ts +2 -3
- package/dist/Snackbar/types/components/Select/Select.d.ts +2 -2
- package/dist/Snackbar/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/Snackbar/types/components/types.d.ts +4 -0
- package/dist/css/DatePicker.global.css +4 -0
- package/dist/css/Switch.global.css +0 -1
- package/dist/css/_theme.css +2 -18
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/types/components/Datepicker/DatePicker.d.ts +3 -2
- package/dist/types/components/Input/Input.d.ts +2 -3
- package/dist/types/components/Select/Select.d.ts +2 -2
- package/dist/types/components/Select/SelectCreatable.d.ts +2 -2
- package/dist/types/components/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
3
|
import { MaskedInputProps } from 'react-text-mask';
|
|
4
|
-
import
|
|
4
|
+
import { DataQa, ErrorFeedback, HideEmptyMeta, LoadingFeedback, WithHint } from '../types';
|
|
5
5
|
import './DatePicker.global.css';
|
|
6
|
-
export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback & DataQa> {
|
|
6
|
+
export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback & DataQa & HideEmptyMeta> {
|
|
7
7
|
label?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
showMask?: boolean;
|
|
@@ -11,6 +11,7 @@ export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFe
|
|
|
11
11
|
onChange: ReactDatePickerProps['onChange'];
|
|
12
12
|
isClearable?: ReactDatePickerProps['isClearable'];
|
|
13
13
|
dateFormat?: ReactDatePickerProps['dateFormat'];
|
|
14
|
+
wide?: boolean;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* @see <https://reactdatepicker.com/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { DataQa, ErrorFeedback, HideEmptyMeta, LoadingFeedback, WithHint, WithLabel } from '../types';
|
|
3
3
|
import './Input.global.css';
|
|
4
|
-
export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
|
|
4
|
+
export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa & HideEmptyMeta> {
|
|
5
5
|
className?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
required?: boolean;
|
|
@@ -9,7 +9,6 @@ export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedba
|
|
|
9
9
|
startElement?: string | React.ReactElement;
|
|
10
10
|
endElement?: string | React.ReactElement;
|
|
11
11
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
12
|
-
hideEmptyMeta?: boolean;
|
|
13
12
|
children: React.ReactHTMLElement<HTMLInputElement> | React.ReactElement | JSX.Element[];
|
|
14
13
|
}
|
|
15
14
|
export declare const Input: React.FC<InputProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props as ReactSelectProps } from 'react-select';
|
|
3
3
|
import type { GroupBase } from 'react-select/dist/declarations/src/types';
|
|
4
|
-
import { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
|
|
4
|
+
import { DataQa, ErrorFeedback, HideEmptyMeta, LoadingFeedback, WithHint, WithLabel } from '../types';
|
|
5
5
|
import { Option } from './types';
|
|
6
6
|
import './Select.global.css';
|
|
7
7
|
export type SelectOption = Option;
|
|
8
|
-
export interface SelectProps extends ReactSelectProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
|
|
8
|
+
export interface SelectProps extends ReactSelectProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa & HideEmptyMeta> {
|
|
9
9
|
wide?: boolean;
|
|
10
10
|
}
|
|
11
11
|
declare const Select: React.FC<SelectProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { CreatableProps } from 'react-select/creatable';
|
|
3
3
|
import type { GroupBase } from 'react-select/dist/declarations/src/types';
|
|
4
|
-
import { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
|
|
4
|
+
import { DataQa, ErrorFeedback, HideEmptyMeta, LoadingFeedback, WithHint, WithLabel } from '../types';
|
|
5
5
|
import { Option } from './types';
|
|
6
6
|
import './Select.global.css';
|
|
7
7
|
export type SelectOption = Option;
|
|
8
|
-
export interface SelectCreatableProps extends CreatableProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
|
|
8
|
+
export interface SelectCreatableProps extends CreatableProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa & HideEmptyMeta> {
|
|
9
9
|
wide?: boolean;
|
|
10
10
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
11
11
|
}
|
|
@@ -26,6 +26,10 @@ export interface DataQa {
|
|
|
26
26
|
/** для тестування */
|
|
27
27
|
dataQa?: string;
|
|
28
28
|
}
|
|
29
|
+
export interface HideEmptyMeta {
|
|
30
|
+
/** приховувати пустий блок під інпутом - якщо не має повідомлень щоб не займав місце */
|
|
31
|
+
hideEmptyMeta?: boolean;
|
|
32
|
+
}
|
|
29
33
|
export interface TextAlign {
|
|
30
34
|
/** для центрування тексту **/
|
|
31
35
|
textAlign?: 'center' | 'start' | 'end' | 'justify';
|
package/dist/css/_theme.css
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--vchasno-ui-input-font-color-disabled: #b6cadb;
|
|
39
39
|
--vchasno-ui-label-color-default: #6b8091;
|
|
40
40
|
--vchasno-ui-label-color-focused: #6b5fff;
|
|
41
|
-
--vchasno-ui-checkbox-bg-color: #
|
|
41
|
+
--vchasno-ui-checkbox-bg-color: #087dc1;
|
|
42
42
|
--vchasno-ui-checkbox-outline-color: #d9eaff;
|
|
43
43
|
--vchasno-ui-checkbox-disabled-bg: #b6cadb;
|
|
44
44
|
--vchasno-ui-checkbox-border-color: #b6cadb;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
--vchasno-ui-switch-color-bg: #b6cadb;
|
|
73
73
|
--vchasno-ui-switch-spinner-color: #b6cadb;
|
|
74
74
|
--vchasno-ui-switch-circle-color: #fff;
|
|
75
|
-
--vchasno-ui-switch-active-color-bg: #
|
|
75
|
+
--vchasno-ui-switch-active-color-bg: #087dc1;
|
|
76
76
|
--vchasno-ui-pulse-dot-color: #604adf;
|
|
77
77
|
--vchasno-ui-pulse-dot-size: 35px;
|
|
78
78
|
--vchasno-ui-menu-button-bg: #f3f6f8;
|
|
@@ -147,10 +147,6 @@
|
|
|
147
147
|
--vchasno-ui-btn-primary-bg: #ffb200;
|
|
148
148
|
--vchasno-ui-btn-primary-hover-bg: #ff9c01;
|
|
149
149
|
--vchasno-ui-input-border-color-focused: #ffb200;
|
|
150
|
-
|
|
151
|
-
/* Checkbox */
|
|
152
|
-
--vchasno-ui-checkbox-bg-color: #1a66c8;
|
|
153
|
-
--vchasno-ui-checkbox-outline-color: #e0eeff;
|
|
154
150
|
--vchasno-ui-select-menu-border-color: #ffb200;
|
|
155
151
|
--vchasno-ui-calendar-color: #ffb200;
|
|
156
152
|
--vchasno-ui-pagination-border-color: #ffb200;
|
|
@@ -168,10 +164,6 @@
|
|
|
168
164
|
/* Button */
|
|
169
165
|
--vchasno-ui-btn-primary-bg: #00c5ff;
|
|
170
166
|
--vchasno-ui-btn-primary-hover-bg: #00aee2;
|
|
171
|
-
|
|
172
|
-
/* Checkbox */
|
|
173
|
-
--vchasno-ui-checkbox-bg-color: #00c5ff;
|
|
174
|
-
--vchasno-ui-checkbox-outline-color: #d8f4fc;
|
|
175
167
|
}
|
|
176
168
|
|
|
177
169
|
:root .vchasno-ui-kit-theme-kasa,
|
|
@@ -179,18 +171,10 @@
|
|
|
179
171
|
/* Button */
|
|
180
172
|
--vchasno-ui-btn-primary-bg: #e579ff;
|
|
181
173
|
--vchasno-ui-btn-primary-hover-bg: #c055da;
|
|
182
|
-
|
|
183
|
-
/* Checkbox */
|
|
184
|
-
--vchasno-ui-checkbox-bg-color: #e579ff;
|
|
185
|
-
--vchasno-ui-checkbox-outline-color: #fbe6ff;
|
|
186
174
|
}
|
|
187
175
|
|
|
188
176
|
:root .vchasno-ui-kit-theme-kep {
|
|
189
177
|
/* Button */
|
|
190
178
|
--vchasno-ui-btn-primary-bg: #ff5a5f;
|
|
191
179
|
--vchasno-ui-btn-primary-hover-bg: #e75459;
|
|
192
|
-
|
|
193
|
-
/* Checkbox */
|
|
194
|
-
--vchasno-ui-checkbox-bg-color: #47a0e4;
|
|
195
|
-
--vchasno-ui-checkbox-outline-color: #e0f1ff;
|
|
196
180
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ interface DataQa {
|
|
|
33
33
|
/** для тестування */
|
|
34
34
|
dataQa?: string;
|
|
35
35
|
}
|
|
36
|
+
interface HideEmptyMeta {
|
|
37
|
+
/** приховувати пустий блок під інпутом - якщо не має повідомлень щоб не займав місце */
|
|
38
|
+
hideEmptyMeta?: boolean;
|
|
39
|
+
}
|
|
36
40
|
interface TextAlign {
|
|
37
41
|
/** для центрування тексту **/
|
|
38
42
|
textAlign?: 'center' | 'start' | 'end' | 'justify';
|
|
@@ -61,7 +65,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<S
|
|
|
61
65
|
}
|
|
62
66
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
63
67
|
|
|
64
|
-
interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
|
|
68
|
+
interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa & HideEmptyMeta> {
|
|
65
69
|
className?: string;
|
|
66
70
|
disabled?: boolean;
|
|
67
71
|
required?: boolean;
|
|
@@ -69,7 +73,6 @@ interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & Er
|
|
|
69
73
|
startElement?: string | React.ReactElement;
|
|
70
74
|
endElement?: string | React.ReactElement;
|
|
71
75
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
72
|
-
hideEmptyMeta?: boolean;
|
|
73
76
|
children: React.ReactHTMLElement<HTMLInputElement> | React.ReactElement | JSX.Element[];
|
|
74
77
|
}
|
|
75
78
|
declare const Input: React.FC<InputProps>;
|
package/dist/index.js
CHANGED
|
@@ -312,8 +312,8 @@ var css_248z$h = ".vchasno-ui-mask-input {\n position: relative;\n font-si
|
|
|
312
312
|
styleInject(css_248z$h);
|
|
313
313
|
|
|
314
314
|
var MaskInput = function (_a) {
|
|
315
|
-
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, inputClassName = _a.inputClassName, labelProps = _a.labelProps, dataQa = _a.dataQa, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "inputClassName", "labelProps", "dataQa"]);
|
|
316
|
-
return (React$1.createElement(Input, { dataQa: dataQa, required: required, wide: wide, className: className, loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
|
|
315
|
+
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, inputClassName = _a.inputClassName, labelProps = _a.labelProps, _b = _a.hideEmptyMeta, hideEmptyMeta = _b === void 0 ? false : _b, dataQa = _a.dataQa, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "inputClassName", "labelProps", "hideEmptyMeta", "dataQa"]);
|
|
316
|
+
return (React$1.createElement(Input, { dataQa: dataQa, required: required, wide: wide, hideEmptyMeta: hideEmptyMeta, className: className, loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
|
|
317
317
|
React$1.createElement(MaskedInput, __assign({}, rest, { required: required, disabled: disabled, className: cn('vchasno-ui-mask-input', inputClassName) }))));
|
|
318
318
|
};
|
|
319
319
|
|
|
@@ -2872,8 +2872,8 @@ var css_248z$a = ".vchasno-ui-textarea-input-container .vchasno-ui-input__wrappe
|
|
|
2872
2872
|
styleInject(css_248z$a);
|
|
2873
2873
|
|
|
2874
2874
|
var TextAreaInput = React$1.forwardRef(function (_a, ref) {
|
|
2875
|
-
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, minRows = _a.minRows, maxRows = _a.maxRows, textareaClassName = _a.textareaClassName, labelProps = _a.labelProps, dataQa = _a.dataQa, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "minRows", "maxRows", "textareaClassName", "labelProps", "dataQa"]);
|
|
2876
|
-
return (React$1.createElement(Input, { dataQa: dataQa, required: required, wide: wide, className: cn(className, 'vchasno-ui-textarea-input-container'), loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
|
|
2875
|
+
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, minRows = _a.minRows, maxRows = _a.maxRows, textareaClassName = _a.textareaClassName, labelProps = _a.labelProps, dataQa = _a.dataQa, hideEmptyMeta = _a.hideEmptyMeta, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "minRows", "maxRows", "textareaClassName", "labelProps", "dataQa", "hideEmptyMeta"]);
|
|
2876
|
+
return (React$1.createElement(Input, { dataQa: dataQa, required: required, wide: wide, hideEmptyMeta: hideEmptyMeta, className: cn(className, 'vchasno-ui-textarea-input-container'), loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
|
|
2877
2877
|
React$1.createElement(TextareaAutosize, __assign({}, rest, { ref: ref, minRows: minRows, maxRows: maxRows, required: required, disabled: disabled, className: cn('vchasno-ui-textarea-input', textareaClassName) }))));
|
|
2878
2878
|
});
|
|
2879
2879
|
TextAreaInput.displayName = 'TextAreaInput';
|
|
@@ -2921,7 +2921,7 @@ var Alert = function (_a) {
|
|
|
2921
2921
|
closeNode));
|
|
2922
2922
|
};
|
|
2923
2923
|
|
|
2924
|
-
var css_248z$8 = ".vchasno-ui-switch {\n --vchasno-ui-switc-hcircle-size: calc(var(--vchasno-ui-switch-height) - 4px);\n\n display: inline-flex;\n align-content: center;\n cursor: pointer;\n line-height: var(--vchasno-ui-switch-height);\n}\n\n.vchasno-ui-switch.--sm {\n --vchasno-ui-switch-height: 20px;\n}\n\n.vchasno-ui-switch.--md {\n --vchasno-ui-switch-height: 30px;\n}\n\n.vchasno-ui-switch.--lg {\n --vchasno-ui-switch-height: 40px;\n}\n\n.vchasno-ui-switch--bg {\n position: relative;\n z-index: 0;\n display: inline-flex;\n height: var(--vchasno-ui-switch-height, 20px);\n box-sizing: border-box;\n flex-shrink: 0;\n border-radius: 100px;\n aspect-ratio: 36/20;\n background: var(--vchasno-ui-switch-color-bg);\n box-shadow: inset 0 2px 0 rgb(57 96 131 / 20%);\n transition: background-color 0.3s;\n}\n\n.vchasno-ui-switch__active .vchasno-ui-switch--bg {\n background: var(--vchasno-ui-switch-active-color-bg);\n
|
|
2924
|
+
var css_248z$8 = ".vchasno-ui-switch {\n --vchasno-ui-switc-hcircle-size: calc(var(--vchasno-ui-switch-height) - 4px);\n\n display: inline-flex;\n align-content: center;\n cursor: pointer;\n line-height: var(--vchasno-ui-switch-height);\n}\n\n.vchasno-ui-switch.--sm {\n --vchasno-ui-switch-height: 20px;\n}\n\n.vchasno-ui-switch.--md {\n --vchasno-ui-switch-height: 30px;\n}\n\n.vchasno-ui-switch.--lg {\n --vchasno-ui-switch-height: 40px;\n}\n\n.vchasno-ui-switch--bg {\n position: relative;\n z-index: 0;\n display: inline-flex;\n height: var(--vchasno-ui-switch-height, 20px);\n box-sizing: border-box;\n flex-shrink: 0;\n border-radius: 100px;\n aspect-ratio: 36/20;\n background: var(--vchasno-ui-switch-color-bg);\n box-shadow: inset 0 2px 0 rgb(57 96 131 / 20%);\n transition: background-color 0.3s;\n}\n\n.vchasno-ui-switch__active .vchasno-ui-switch--bg {\n background: var(--vchasno-ui-switch-active-color-bg);\n}\n\n.vchasno-ui-switch__disabled {\n cursor: default;\n opacity: 0.7;\n}\n\n.vchasno-ui-switch--circle {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--vchasno-ui-switc-hcircle-size);\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n aspect-ratio: 1/1;\n background-color: var(--vchasno-ui-switch-circle-color);\n transform: translate(2px, 2px);\n transition: transform 0.3s;\n}\n\n.vchasno-ui-switch--bg > input:checked + .vchasno-ui-switch--circle {\n transform: translate(18px, 2px);\n}\n\n.vchasno-ui-switch.--md .vchasno-ui-switch--bg > input:checked + .vchasno-ui-switch--circle {\n transform: translate(26px, 2px);\n}\n\n.vchasno-ui-switch.--lg .vchasno-ui-switch--bg > input:checked + .vchasno-ui-switch--circle {\n transform: translate(34px, 2px);\n}\n\n.vchasno-ui-spinner {\n color: var(--vchasno-ui-switch-spinner-color);\n}\n\n.vchasno-ui-switch--label {\n margin-left: 12px;\n color: var(--vchasno-ui-input-font-color);\n font-size: var(--vchasno-ui-input-font-size);\n user-select: none;\n}\n";
|
|
2925
2925
|
styleInject(css_248z$8);
|
|
2926
2926
|
|
|
2927
2927
|
var spinnerSizeMap = {
|