zcomponents-ui 1.2.4 → 1.4.0
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/README.md +20 -0
- package/dist/{index-DC_KVC71.js → index-DJALegom.js} +3 -9
- package/dist/index-DJALegom.js.map +1 -0
- package/dist/{index-CfSBwowY.js → index-zSB3Isbi.js} +3 -9
- package/dist/index-zSB3Isbi.js.map +1 -0
- package/dist/index.cjs.js +647 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +142 -6
- package/dist/index.esm.js +649 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/integrations-react-hook-form.d-ChOcioDB.d.ts +266 -0
- package/dist/react-hook-form.cjs.js +1 -1
- package/dist/react-hook-form.d.ts +4 -265
- package/dist/react-hook-form.esm.js +1 -1
- package/dist/types/components/ZDrop/integrations/react-hook-form/ZDropField/index.d.ts +3 -12
- package/dist/types/components/ZDrop/integrations/react-hook-form/ZDropField/types/zDropFieldTypes.d.ts +12 -0
- package/dist/types/components/ZDrop/types/zDropTypes.d.ts +2 -2
- package/dist/types/components/ZRange/components/ZRangeIndicator/index.d.ts +3 -0
- package/dist/types/components/ZRange/components/ZRangeInputs/index.d.ts +3 -0
- package/dist/types/components/ZRange/components/ZRangeLabel/index.d.ts +3 -0
- package/dist/types/components/ZRange/components/ZRangeSliderValue/index.d.ts +3 -0
- package/dist/types/components/ZRange/components/ZRangeTrack/index.d.ts +3 -0
- package/dist/types/components/ZRange/helpers/calculateStepPosition.d.ts +1 -0
- package/dist/types/components/ZRange/helpers/checkIsInputSwapAllowed.d.ts +1 -0
- package/dist/types/components/ZRange/helpers/convertToUnit.d.ts +6 -0
- package/dist/types/components/ZRange/helpers/getCssVariablePxValue.d.ts +1 -0
- package/dist/types/components/ZRange/helpers/getFractionDigitsFromStep.d.ts +1 -0
- package/dist/types/components/ZRange/helpers/getMinMax.d.ts +4 -0
- package/dist/types/components/ZRange/index.d.ts +3 -0
- package/dist/types/components/ZRange/integrations/react-hook-form/ZRangeField/index.d.ts +7 -0
- package/dist/types/components/ZRange/integrations/react-hook-form/ZRangeField/types/zRangeFieldTypes.d.ts +17 -0
- package/dist/types/components/ZRange/rangeValue.d.ts +13 -0
- package/dist/types/components/ZRange/types/zRangeTypes.d.ts +103 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/zcomponents-ui.css +1 -1
- package/dist/zcomponents-ui.css.map +1 -1
- package/package.json +1 -1
- package/dist/index-CfSBwowY.js.map +0 -1
- package/dist/index-DC_KVC71.js.map +0 -1
|
@@ -1,265 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
type ZDropOption = string | number | {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
type ZDropSingleValue = ZDropOption | null | undefined;
|
|
9
|
-
type ZDropMultipleValue = ZDropOption[];
|
|
10
|
-
type ZDropValue = ZDropSingleValue | ZDropMultipleValue;
|
|
11
|
-
type OptionsRef = {
|
|
12
|
-
current: (HTMLLIElement | null)[];
|
|
13
|
-
};
|
|
14
|
-
type ValueRenderer = ({ option, onRemove, }: {
|
|
15
|
-
option: ZDropOption;
|
|
16
|
-
onRemove: MouseEventHandler;
|
|
17
|
-
}) => ReactElement;
|
|
18
|
-
type OptionRenderer = (option: ZDropOption, isSelected: boolean, currentSearchedValue: string | undefined) => ReactElement;
|
|
19
|
-
type ExpandToggleRenderer = (isListVisible: boolean) => ReactElement;
|
|
20
|
-
type InputOptionRemove = (e: React.MouseEvent | React.KeyboardEvent, option: ZDropOption) => void;
|
|
21
|
-
type Clear = "always" | "whenChanged" | "whenSearched" | "none";
|
|
22
|
-
interface InputStyleClasses {
|
|
23
|
-
input?: string;
|
|
24
|
-
inputValue?: string;
|
|
25
|
-
inputMultipleValue?: string;
|
|
26
|
-
inputMultipleSearch?: string;
|
|
27
|
-
}
|
|
28
|
-
interface ToggleStyleClasses {
|
|
29
|
-
expandToggle?: string;
|
|
30
|
-
expandToggleIcon?: string;
|
|
31
|
-
}
|
|
32
|
-
interface ListStyleClasses {
|
|
33
|
-
list?: string;
|
|
34
|
-
listItem?: string;
|
|
35
|
-
noData?: string;
|
|
36
|
-
}
|
|
37
|
-
interface StyleClasses extends InputStyleClasses, ToggleStyleClasses, ListStyleClasses {
|
|
38
|
-
container?: string;
|
|
39
|
-
label?: string;
|
|
40
|
-
inputField?: string;
|
|
41
|
-
clearButton?: string;
|
|
42
|
-
removeButton?: string;
|
|
43
|
-
}
|
|
44
|
-
type SearchFilter = ({ options, currentValue, labelKey, }: {
|
|
45
|
-
options: ZDropOption[];
|
|
46
|
-
currentValue: string;
|
|
47
|
-
labelKey: string;
|
|
48
|
-
}) => ZDropOption[];
|
|
49
|
-
interface ZDropBaseProps {
|
|
50
|
-
name: string;
|
|
51
|
-
options?: ZDropOption[];
|
|
52
|
-
value?: ZDropValue;
|
|
53
|
-
valueKey?: string;
|
|
54
|
-
label?: string | ReactElement;
|
|
55
|
-
labelKey?: string;
|
|
56
|
-
placeholder?: string;
|
|
57
|
-
isMultiple?: boolean;
|
|
58
|
-
isDisabled?: boolean;
|
|
59
|
-
isSearchable?: boolean;
|
|
60
|
-
clear?: Clear;
|
|
61
|
-
searchFilterDelay?: number;
|
|
62
|
-
searchFilter?: SearchFilter;
|
|
63
|
-
shouldReturnObjectOnChange?: boolean;
|
|
64
|
-
onChange?: Function;
|
|
65
|
-
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
66
|
-
onClear?: Function;
|
|
67
|
-
valueRenderer?: ValueRenderer;
|
|
68
|
-
optionRenderer?: OptionRenderer;
|
|
69
|
-
expandToggleRenderer?: ExpandToggleRenderer;
|
|
70
|
-
clearIcon?: ReactElement;
|
|
71
|
-
noDataContent?: string | ReactElement;
|
|
72
|
-
isAutoHeightEnabled?: boolean;
|
|
73
|
-
autoHeightPosition?: "top" | "bottom";
|
|
74
|
-
listMaxHeightLimiter?: number;
|
|
75
|
-
styleClasses?: StyleClasses;
|
|
76
|
-
}
|
|
77
|
-
interface ZDropWithReferenceElementProps extends ZDropBaseProps {
|
|
78
|
-
referenceElementClassName?: string;
|
|
79
|
-
positionToReferenceElement?: "top" | "bottom";
|
|
80
|
-
isAutoHeightEnabled?: never;
|
|
81
|
-
autoHeightPosition?: never;
|
|
82
|
-
}
|
|
83
|
-
interface ZDropWithAutoHeightProps extends ZDropBaseProps {
|
|
84
|
-
referenceElementClassName?: never;
|
|
85
|
-
positionToReferenceElement?: never;
|
|
86
|
-
isAutoHeightEnabled?: true;
|
|
87
|
-
autoHeightPosition?: "top" | "bottom";
|
|
88
|
-
}
|
|
89
|
-
type ZDropProps = ZDropWithReferenceElementProps | ZDropWithAutoHeightProps;
|
|
90
|
-
interface ZDropLabelProps {
|
|
91
|
-
name?: string;
|
|
92
|
-
label?: string | ReactElement;
|
|
93
|
-
className?: string;
|
|
94
|
-
}
|
|
95
|
-
interface ZDropListAutoHeightWrapperProps {
|
|
96
|
-
containerRef: RefObject<HTMLDivElement | null>;
|
|
97
|
-
position?: "top" | "bottom";
|
|
98
|
-
children: ReactNode;
|
|
99
|
-
}
|
|
100
|
-
interface ZDropListWrapperProps {
|
|
101
|
-
referenceElementClassName: string;
|
|
102
|
-
positionToReferenceElement?: "top" | "bottom";
|
|
103
|
-
listMaxHeightLimiter?: number;
|
|
104
|
-
children: ReactNode;
|
|
105
|
-
}
|
|
106
|
-
interface ZDropListProps {
|
|
107
|
-
options: ZDropOption[];
|
|
108
|
-
selectedValue: ZDropValue;
|
|
109
|
-
valueKey: string;
|
|
110
|
-
labelKey: string;
|
|
111
|
-
optionsRef: OptionsRef;
|
|
112
|
-
optionRenderer?: OptionRenderer;
|
|
113
|
-
onOptionClick: Function;
|
|
114
|
-
onOptionKeyDown: Function;
|
|
115
|
-
noDataContent?: string | ReactElement;
|
|
116
|
-
currentSearchedValue?: string;
|
|
117
|
-
listStyleClasses?: ListStyleClasses;
|
|
118
|
-
isListWrapperEnabled?: boolean;
|
|
119
|
-
isAutoHeightEnabled?: boolean;
|
|
120
|
-
}
|
|
121
|
-
interface ZDropListItemProps {
|
|
122
|
-
option: ZDropOption;
|
|
123
|
-
index: number;
|
|
124
|
-
children?: ReactElement;
|
|
125
|
-
labelKey?: string;
|
|
126
|
-
innerRef: Ref<HTMLLIElement | null>;
|
|
127
|
-
onOptionClick: Function;
|
|
128
|
-
onOptionKeyDown: Function;
|
|
129
|
-
className?: string;
|
|
130
|
-
optionClassName?: string;
|
|
131
|
-
}
|
|
132
|
-
interface ZDropListNoDataProps {
|
|
133
|
-
noDataContent?: string | ReactElement;
|
|
134
|
-
className?: string;
|
|
135
|
-
}
|
|
136
|
-
interface ZDropListVisibilityToggleProps {
|
|
137
|
-
expandToggleRenderer?: ExpandToggleRenderer;
|
|
138
|
-
onClick: MouseEventHandler<HTMLSpanElement>;
|
|
139
|
-
isListVisible: boolean;
|
|
140
|
-
toggleStyleClasses?: ToggleStyleClasses;
|
|
141
|
-
}
|
|
142
|
-
interface ZDropClearButtonProps {
|
|
143
|
-
hasValueChanged: boolean;
|
|
144
|
-
currentSearchedValue: string;
|
|
145
|
-
onInputClear: Function;
|
|
146
|
-
isListVisible: boolean;
|
|
147
|
-
isClearableOnlyWhenChange: boolean;
|
|
148
|
-
isClearableOnlyWhenSearch: boolean;
|
|
149
|
-
className?: string;
|
|
150
|
-
clearIcon?: ReactElement;
|
|
151
|
-
}
|
|
152
|
-
interface ZDropInputProps {
|
|
153
|
-
name: string;
|
|
154
|
-
options: ZDropOption[];
|
|
155
|
-
selectedValue: ZDropValue;
|
|
156
|
-
currentSearchedValue?: string;
|
|
157
|
-
setCurrentSearchedValue?: Function;
|
|
158
|
-
valueKey: string;
|
|
159
|
-
labelKey: string;
|
|
160
|
-
placeholder?: string;
|
|
161
|
-
isMultiple: boolean;
|
|
162
|
-
isDisabled: boolean;
|
|
163
|
-
isSearchable: boolean;
|
|
164
|
-
isListVisible: boolean;
|
|
165
|
-
setIsListVisible: Function;
|
|
166
|
-
isInputItemVisible: boolean;
|
|
167
|
-
valueRenderer?: ValueRenderer;
|
|
168
|
-
inputRef: RefObject<HTMLInputElement | null>;
|
|
169
|
-
inputRefMultipleValueRenderer: RefObject<HTMLInputElement | null>;
|
|
170
|
-
inputRefSingleValueRenderer: RefObject<HTMLInputElement | null>;
|
|
171
|
-
onInputClick: MouseEventHandler;
|
|
172
|
-
onInputItemClick: MouseEventHandler;
|
|
173
|
-
onInputKeyDown: KeyboardEventHandler;
|
|
174
|
-
onInputChange: ChangeEventHandler;
|
|
175
|
-
onInputOptionRemove: InputOptionRemove;
|
|
176
|
-
inputStyleClasses?: InputStyleClasses;
|
|
177
|
-
}
|
|
178
|
-
interface ZDropSingleInputProps {
|
|
179
|
-
name: string;
|
|
180
|
-
options: ZDropOption[];
|
|
181
|
-
selectedValue: ZDropSingleValue;
|
|
182
|
-
currentSearchedValue?: string;
|
|
183
|
-
setCurrentSearchedValue?: Function;
|
|
184
|
-
valueKey: string;
|
|
185
|
-
labelKey: string;
|
|
186
|
-
placeholder?: string;
|
|
187
|
-
isListVisible: boolean;
|
|
188
|
-
isDisabled?: boolean;
|
|
189
|
-
isSearchable?: boolean;
|
|
190
|
-
valueRenderer?: ValueRenderer;
|
|
191
|
-
inputRef: RefObject<HTMLInputElement | null>;
|
|
192
|
-
inputRefSingleValueRenderer: RefObject<HTMLInputElement | null>;
|
|
193
|
-
isInputItemVisible?: boolean;
|
|
194
|
-
onInputClick: MouseEventHandler;
|
|
195
|
-
onInputItemClick: MouseEventHandler;
|
|
196
|
-
onInputKeyDown: KeyboardEventHandler;
|
|
197
|
-
onInputChange: ChangeEventHandler;
|
|
198
|
-
onInputOptionRemove: InputOptionRemove;
|
|
199
|
-
inputClassName?: string;
|
|
200
|
-
inputValueClassName?: string;
|
|
201
|
-
}
|
|
202
|
-
interface ZDropSingleInputValueRendererProps {
|
|
203
|
-
name: string;
|
|
204
|
-
selectedValue: ZDropSingleValue;
|
|
205
|
-
selectedOption?: ZDropOption;
|
|
206
|
-
isSearchable: boolean;
|
|
207
|
-
valueRenderer: ValueRenderer;
|
|
208
|
-
inputValue: string | number;
|
|
209
|
-
isListVisible: boolean;
|
|
210
|
-
placeholder?: string;
|
|
211
|
-
inputRefSingleValueRenderer?: RefObject<HTMLInputElement | null>;
|
|
212
|
-
isInputItemVisible?: boolean;
|
|
213
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
214
|
-
onInputItemClick: MouseEventHandler<HTMLDivElement>;
|
|
215
|
-
onInputOptionRemove: InputOptionRemove;
|
|
216
|
-
inputValueClassName?: string;
|
|
217
|
-
}
|
|
218
|
-
interface ZDropMultipleInputProps {
|
|
219
|
-
isListVisible: boolean;
|
|
220
|
-
setIsListVisible: Function;
|
|
221
|
-
name: string;
|
|
222
|
-
selectedValue: ZDropMultipleValue;
|
|
223
|
-
valueKey: string;
|
|
224
|
-
labelKey: string;
|
|
225
|
-
placeholder?: string;
|
|
226
|
-
isDisabled?: boolean;
|
|
227
|
-
isSearchable?: boolean;
|
|
228
|
-
currentSearchedValue?: string;
|
|
229
|
-
valueRenderer?: ValueRenderer;
|
|
230
|
-
inputRefMultipleValueRenderer: RefObject<HTMLInputElement | null>;
|
|
231
|
-
onInputClick: MouseEventHandler;
|
|
232
|
-
onInputKeyDown: KeyboardEventHandler;
|
|
233
|
-
onInputChange: ChangeEventHandler;
|
|
234
|
-
onInputOptionRemove: InputOptionRemove;
|
|
235
|
-
inputClassName?: string;
|
|
236
|
-
inputMultipleValueClassName?: string;
|
|
237
|
-
inputMultipleSearchClassName?: string;
|
|
238
|
-
}
|
|
239
|
-
interface ZDropMultipleInputItemProps {
|
|
240
|
-
option: ZDropOption;
|
|
241
|
-
labelType: string;
|
|
242
|
-
valueRenderer?: ValueRenderer;
|
|
243
|
-
onInputOptionRemove: InputOptionRemove;
|
|
244
|
-
inputMultipleValueClassName?: string;
|
|
245
|
-
isDisabled?: boolean;
|
|
246
|
-
}
|
|
247
|
-
interface ZDropDefaultSearchFilter {
|
|
248
|
-
options: ZDropOption[];
|
|
249
|
-
currentValue: string;
|
|
250
|
-
labelKey: string;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
type ZDropFieldProps<TFieldValues extends FieldValues = FieldValues> = Omit<ZDropProps, "value" | "onChange" | "name"> & {
|
|
254
|
-
control: Control<TFieldValues>;
|
|
255
|
-
name: Path<TFieldValues>;
|
|
256
|
-
rules?: RegisterOptions<TFieldValues, Path<TFieldValues>>;
|
|
257
|
-
onChangeTransform?: (zDropValue: unknown) => unknown;
|
|
258
|
-
valueSelector?: (fieldValue: unknown) => unknown;
|
|
259
|
-
errorClassName?: string;
|
|
260
|
-
errorRenderer?: (message: string) => React.ReactNode;
|
|
261
|
-
};
|
|
262
|
-
declare function ZDropField<TFieldValues extends FieldValues = FieldValues>(props: ZDropFieldProps<TFieldValues>): react_jsx_runtime.JSX.Element;
|
|
263
|
-
|
|
264
|
-
export { ZDropField };
|
|
265
|
-
export type { Clear, ExpandToggleRenderer, InputOptionRemove, InputStyleClasses, ListStyleClasses, OptionRenderer, OptionsRef, SearchFilter, StyleClasses, ToggleStyleClasses, ValueRenderer, ZDropBaseProps, ZDropClearButtonProps, ZDropDefaultSearchFilter, ZDropInputProps, ZDropLabelProps, ZDropListAutoHeightWrapperProps, ZDropListItemProps, ZDropListNoDataProps, ZDropListProps, ZDropListVisibilityToggleProps, ZDropListWrapperProps, ZDropMultipleInputItemProps, ZDropMultipleInputProps, ZDropMultipleValue, ZDropOption, ZDropProps, ZDropSingleInputProps, ZDropSingleInputValueRendererProps, ZDropSingleValue, ZDropValue, ZDropWithAutoHeightProps, ZDropWithReferenceElementProps };
|
|
1
|
+
export { C as Clear, E as ExpandToggleRenderer, I as InputOptionRemove, h as InputStyleClasses, L as ListStyleClasses, g as OptionRenderer, O as OptionsRef, S as SearchFilter, T as ToggleStyleClasses, V as ValueRenderer, j as ZDropBaseProps, t as ZDropClearButtonProps, z as ZDropDefaultSearchFilter, a as ZDropField, u as ZDropInputProps, m as ZDropLabelProps, n as ZDropListAutoHeightWrapperProps, q as ZDropListItemProps, r as ZDropListNoDataProps, p as ZDropListProps, s as ZDropListVisibilityToggleProps, o as ZDropListWrapperProps, y as ZDropMultipleInputItemProps, x as ZDropMultipleInputProps, e as ZDropMultipleValue, c as ZDropOption, Z as ZDropProps, v as ZDropSingleInputProps, w as ZDropSingleInputValueRendererProps, d as ZDropSingleValue, i as ZDropStyleClasses, f as ZDropValue, l as ZDropWithAutoHeightProps, k as ZDropWithReferenceElementProps } from './integrations-react-hook-form.d-ChOcioDB.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react-hook-form';
|
|
4
|
+
import 'react';
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
control: Control<TFieldValues>;
|
|
5
|
-
name: Path<TFieldValues>;
|
|
6
|
-
rules?: RegisterOptions<TFieldValues, Path<TFieldValues>>;
|
|
7
|
-
onChangeTransform?: (zDropValue: unknown) => unknown;
|
|
8
|
-
valueSelector?: (fieldValue: unknown) => unknown;
|
|
9
|
-
errorClassName?: string;
|
|
10
|
-
errorRenderer?: (message: string) => React.ReactNode;
|
|
11
|
-
};
|
|
12
|
-
export declare function ZDropField<TFieldValues extends FieldValues = FieldValues>(props: ZDropFieldProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { FieldValues } from "react-hook-form";
|
|
2
|
+
import { ZDropFieldProps } from "./types/zDropFieldTypes";
|
|
3
|
+
export declare const ZDropField: <TFieldValues extends FieldValues = FieldValues>(props: ZDropFieldProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
13
4
|
export default ZDropField;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { Control, FieldValues, Path, RegisterOptions } from "react-hook-form";
|
|
3
|
+
import type { ZDropProps } from "../../../../types/zDropTypes";
|
|
4
|
+
export type ZDropFieldProps<TFieldValues extends FieldValues = FieldValues> = Omit<ZDropProps, "value" | "onChange" | "name"> & {
|
|
5
|
+
control: Control<TFieldValues>;
|
|
6
|
+
name: Path<TFieldValues>;
|
|
7
|
+
rules?: RegisterOptions<TFieldValues, Path<TFieldValues>>;
|
|
8
|
+
onChangeTransform?: (zDropValue: unknown) => unknown;
|
|
9
|
+
valueSelector?: (fieldValue: unknown) => unknown;
|
|
10
|
+
errorClassName?: string;
|
|
11
|
+
errorRenderer?: (message: string) => React.ReactNode;
|
|
12
|
+
};
|
|
@@ -31,7 +31,7 @@ export interface ListStyleClasses {
|
|
|
31
31
|
listItem?: string;
|
|
32
32
|
noData?: string;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface ZDropStyleClasses extends InputStyleClasses, ToggleStyleClasses, ListStyleClasses {
|
|
35
35
|
container?: string;
|
|
36
36
|
label?: string;
|
|
37
37
|
inputField?: string;
|
|
@@ -69,7 +69,7 @@ export interface ZDropBaseProps {
|
|
|
69
69
|
isAutoHeightEnabled?: boolean;
|
|
70
70
|
autoHeightPosition?: "top" | "bottom";
|
|
71
71
|
listMaxHeightLimiter?: number;
|
|
72
|
-
styleClasses?:
|
|
72
|
+
styleClasses?: ZDropStyleClasses;
|
|
73
73
|
}
|
|
74
74
|
export interface ZDropWithReferenceElementProps extends ZDropBaseProps {
|
|
75
75
|
referenceElementClassName?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const calculateStepPosition: (currentValue: number, element: HTMLInputElement | null, min: number, max: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkIsInputSwapAllowed: (activeIndex: number, comparedIndex: number, clientPosition: number | null | undefined, valuePosition: number) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCssVariablePxValue: (element: HTMLElement, cssVariableName: string, fallbackPx: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFractionDigitsFromStep: (step: number) => number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FieldValues, type FieldPath } from "react-hook-form";
|
|
2
|
+
import type { ZRangeFieldProps } from "./types/zRangeFieldTypes";
|
|
3
|
+
type FormUpdateTrigger = "select" | "change";
|
|
4
|
+
export declare const ZRangeField: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>(props: ZRangeFieldProps<TFieldValues, TName> & {
|
|
5
|
+
commitMode?: FormUpdateTrigger;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ZRangeField;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Control, FieldPath, FieldValues, RegisterOptions } from "react-hook-form";
|
|
2
|
+
import type { ZRangeProps, ZRangeRangeValue } from "../../../../types/zRangeTypes";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
type ZRangeFieldBaseProps = Omit<ZRangeProps, "value" | "name" | "onChange" | "onSelect">;
|
|
5
|
+
export type ZRangeFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = ZRangeFieldBaseProps & {
|
|
6
|
+
control: Control<TFieldValues>;
|
|
7
|
+
name: TName;
|
|
8
|
+
rules?: RegisterOptions<TFieldValues, TName>;
|
|
9
|
+
defaultValue?: ZRangeRangeValue;
|
|
10
|
+
shouldUnregister?: boolean;
|
|
11
|
+
onValueChange?: (value: ZRangeRangeValue, name: string) => void;
|
|
12
|
+
onValueSelect?: (value: ZRangeRangeValue, name: string) => void;
|
|
13
|
+
hideError?: boolean;
|
|
14
|
+
errorClassName?: string;
|
|
15
|
+
errorRenderer?: (message: string) => ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ZRangeSingleValue, ScaleFunction, UnitList } from "./types/zRangeTypes";
|
|
2
|
+
export declare class ZRangeValue {
|
|
3
|
+
min: ZRangeSingleValue;
|
|
4
|
+
max: ZRangeSingleValue;
|
|
5
|
+
unitDivisors?: number[];
|
|
6
|
+
unitList?: UnitList[];
|
|
7
|
+
scale?: ScaleFunction;
|
|
8
|
+
constructor(min: ZRangeSingleValue, max: ZRangeSingleValue, unitDivisors?: number[], unitList?: UnitList[], scale?: ScaleFunction);
|
|
9
|
+
getMinPosition(): number;
|
|
10
|
+
getMaxPosition(): number;
|
|
11
|
+
getRangeMiddle(): number;
|
|
12
|
+
getValueLabel(forValue: "min" | "max"): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ChangeEventHandler, MouseEventHandler, ReactNode, RefObject, TouchEventHandler } from "react";
|
|
2
|
+
import { ZRangeValue } from "../rangeValue";
|
|
3
|
+
export interface UnitList {
|
|
4
|
+
unit: string;
|
|
5
|
+
fractionDigits: number;
|
|
6
|
+
}
|
|
7
|
+
export type ScaleFunction = (x: number) => number;
|
|
8
|
+
export type ScaleFunctionWithSchema = (x: number, scaleFunctionSchema: string) => number;
|
|
9
|
+
export interface ZRangeSingleValue {
|
|
10
|
+
value: number;
|
|
11
|
+
initialValue: number;
|
|
12
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
13
|
+
getPosition?: () => number;
|
|
14
|
+
}
|
|
15
|
+
export interface ZRangeRangeValue {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
}
|
|
19
|
+
export interface TrackStylesClasses {
|
|
20
|
+
trackContainer?: string;
|
|
21
|
+
trackRange?: string;
|
|
22
|
+
trackSelected?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IndicatorStylesClasses {
|
|
25
|
+
indicator?: string;
|
|
26
|
+
indicatorMin?: string;
|
|
27
|
+
indicatorMax?: string;
|
|
28
|
+
indicatorValue?: string;
|
|
29
|
+
indicatorIcon?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ZRangeStyleClasses extends TrackStylesClasses, IndicatorStylesClasses {
|
|
32
|
+
container?: string;
|
|
33
|
+
label?: string;
|
|
34
|
+
input?: string;
|
|
35
|
+
inputActive?: string;
|
|
36
|
+
sliderValue?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ZRangeProps {
|
|
39
|
+
value: ZRangeRangeValue;
|
|
40
|
+
name: string;
|
|
41
|
+
min: number;
|
|
42
|
+
max: number;
|
|
43
|
+
step?: number;
|
|
44
|
+
scale?: string;
|
|
45
|
+
unitDivisors?: number[];
|
|
46
|
+
unitList?: UnitList[];
|
|
47
|
+
label?: string | ReactNode;
|
|
48
|
+
onSelect?: Function;
|
|
49
|
+
onChange?: Function;
|
|
50
|
+
icons?: {
|
|
51
|
+
thumbMin?: ReactNode;
|
|
52
|
+
thumbMax?: ReactNode;
|
|
53
|
+
indicatorMin?: ReactNode;
|
|
54
|
+
indicatorMax?: ReactNode;
|
|
55
|
+
};
|
|
56
|
+
stylesClasses?: ZRangeStyleClasses;
|
|
57
|
+
isIndicatorUnitHidden?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface ZRangeLabelProps {
|
|
60
|
+
label: string | ReactNode;
|
|
61
|
+
labelClassName?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ZRangeThumbProps {
|
|
64
|
+
value: string;
|
|
65
|
+
icon?: ReactNode;
|
|
66
|
+
sliderValueClassName?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ZRangeTrackProps {
|
|
69
|
+
rangeTrackRef?: RefObject<HTMLDivElement | null>;
|
|
70
|
+
selectedRangeStyle?: React.CSSProperties;
|
|
71
|
+
trackStyles: TrackStylesClasses;
|
|
72
|
+
selectedRangeRef: RefObject<HTMLDivElement | null>;
|
|
73
|
+
}
|
|
74
|
+
export interface ZRangeIndicatorProps {
|
|
75
|
+
valueIndicatorRef: RefObject<HTMLDivElement | null>;
|
|
76
|
+
indicatorStyles: IndicatorStylesClasses;
|
|
77
|
+
indicatorValue?: number | string;
|
|
78
|
+
rangeTrackRef?: RefObject<HTMLDivElement | null>;
|
|
79
|
+
inputElement?: HTMLInputElement | null;
|
|
80
|
+
scaleFunction: ScaleFunction;
|
|
81
|
+
unitList?: UnitList[];
|
|
82
|
+
unitDivisors?: number[];
|
|
83
|
+
scale?: string;
|
|
84
|
+
icon?: ReactNode;
|
|
85
|
+
iconKey?: string;
|
|
86
|
+
isHighlighted: boolean;
|
|
87
|
+
isIndicatorUnitHidden?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface ZRangeInputsProps {
|
|
90
|
+
rangeValue: ZRangeValue;
|
|
91
|
+
min: number;
|
|
92
|
+
max: number;
|
|
93
|
+
step?: number;
|
|
94
|
+
inputMinClasses?: string;
|
|
95
|
+
inputMaxClasses?: string;
|
|
96
|
+
onInputChange?: ChangeEventHandler<HTMLInputElement>;
|
|
97
|
+
onMouseDown?: MouseEventHandler<HTMLInputElement>;
|
|
98
|
+
onTouchStart?: TouchEventHandler<HTMLInputElement>;
|
|
99
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement>;
|
|
100
|
+
onTouchMove?: TouchEventHandler<HTMLInputElement>;
|
|
101
|
+
onMouseUp?: MouseEventHandler<HTMLInputElement>;
|
|
102
|
+
onTouchEnd?: TouchEventHandler<HTMLInputElement>;
|
|
103
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export { default as ZDrop } from "./components/ZDrop";
|
|
2
|
-
export { ZDropField } from "./components/ZDrop/integrations/react-hook-form/ZDropField";
|
|
3
|
-
export { default as ZDropButton } from "./components/ZDropButton";
|
|
4
2
|
export type * from "./components/ZDrop/types/zDropTypes";
|
|
3
|
+
export { default as ZDropField } from "./components/ZDrop/integrations/react-hook-form/ZDropField";
|
|
4
|
+
export type { ZDropFieldProps } from "./components/ZDrop/integrations/react-hook-form/ZDropField/types/zDropFieldTypes";
|
|
5
|
+
export { default as ZDropButton } from "./components/ZDropButton";
|
|
5
6
|
export type * from "./components/ZDropButton/types/zDropButtonTypes";
|
|
7
|
+
export { default as ZRange } from "./components/ZRange";
|
|
8
|
+
export type * from "./components/ZRange/types/zRangeTypes";
|
|
9
|
+
export { default as ZRangeField } from "./components/ZRange/integrations/react-hook-form/ZRangeField";
|
|
10
|
+
export type { ZRangeFieldProps } from "./components/ZRange/integrations/react-hook-form/ZRangeField/types/zRangeFieldTypes";
|
package/dist/zcomponents-ui.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.ZDropButton-module_zd-button__XVZ-w *{box-sizing:border-box;margin:0;padding:0}.ZDropButton-module_zd-button__XVZ-w{max-height:-moz-fit-content;max-height:fit-content;min-width:-moz-fit-content;min-width:fit-content;position:relative}.ZDropButton-module_zd-button__toggle__0jdWn{align-items:center;cursor:pointer;display:flex;min-width:100%;padding:0 10px;width:100%}:where(.ZDropButton-module_zd-button__toggle__0jdWn){background:transparent;border:var(--zd-border);border-radius:var(--zd-radius);height:35px;outline:none;transition:border .15s ease-in-out,box-shadow .15s ease-in-out}:where(.ZDropButton-module_zd-button__toggle__0jdWn).ZDropButton-module_active__AHl3a,:where(.ZDropButton-module_zd-button__toggle__0jdWn):focus,:where(.ZDropButton-module_zd-button__toggle__0jdWn):hover{border-color:var(--zd-color-secondary)}:where(.ZDropButton-module_zd-button__toggle-title__OaiVF){color:var(--zd-color-primary);font-size:13px;font-weight:500}.ZDropButton-module_zd-button__toggle-icon__G4tnb{align-items:center;display:flex;justify-content:center;margin-right:6px}:where(.ZDropButton-module_zd-button__toggle-icon__G4tnb){height:30px;width:30px}:where(.ZDropButton-module_zd-button__toggle-icon__G4tnb) img,:where(.ZDropButton-module_zd-button__toggle-icon__G4tnb) svg{height:100%;width:100%}.ZDropButton-module_zd-button__content__FS-6m{margin:1px 0;min-width:100%;overflow-y:auto;position:absolute;width:100%}:where(.ZDropButton-module_zd-button__content__FS-6m){border:1px solid var(--zd-color-primary);border-radius:var(--zd-radius)}.ZDropButton-module_zd-button__search__6Nbrx{height:30px;max-width:100%;min-width:100%;padding:1px 0;width:100%}.ZDropButton-module_zd-button__search-input-field__K2avH{align-items:center;display:flex;height:100%;min-width:100%;position:relative;width:100%}:where(.ZDropButton-module_zd-button__search-input-field__K2avH){border:1px solid var(--zd-color-primary);border-radius:var(--zd-radius)}:where(.ZDropButton-module_zd-button__search-input-field__K2avH):focus-within{border-color:var(--zd-color-secondary)}.ZDropButton-module_zd-button__search-input__1e643{background:transparent;border:none;max-width:100%;padding:2px 5px;width:100%}.ZDropButton-module_zd-button__search-input__1e643:focus{outline:none}.ZDropButton-module_zd-button__search-clear-btn__hJo2h{background:transparent;border:none;cursor:pointer;margin:0 5px;max-height:-moz-fit-content;max-height:fit-content}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy){cursor:pointer;display:block;height:15px;max-width:14px;min-width:14px;position:relative}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):after,:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):before{background:var(--zd-color-primary);content:"";height:15px;left:6px;position:absolute;width:2px}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):before{transform:rotate(45deg)}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):after{transform:rotate(-45deg)}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):hover:after,:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):hover:before{background:var(--zd-color-secondary)}.ZDropButton-module_zd-button__list__prV7p{list-style:none;min-width:100%;overflow-y:auto;width:100%}:where(.ZDropButton-module_zd-button__list__prV7p){border-radius:var(--zd-radius)}.ZDropButton-module_zd-button__list-item__uRK0D{align-items:center;cursor:pointer;display:flex;padding:3px 5px;position:relative;width:100%}:where(.ZDropButton-module_zd-button__list-item__uRK0D){background-color:var(--zd-color-background-transp);color:var(--zd-color-primary);transition:background-color .2s linear}:where(.ZDropButton-module_zd-button__list-item__uRK0D):focus{outline:none}:where(.ZDropButton-module_zd-button__list-item__uRK0D):focus,:where(.ZDropButton-module_zd-button__list-item__uRK0D):hover{background-color:var(--zd-color-secondary-transp)}:where(.ZDropButton-module_zd-button__list-item--active__oPoZA){background-color:var(--zd-color-secondary-transp);color:var(--zd-color-secondary)}.ZDropButton-module_zd-button__list-item-icon__xgqOm{align-items:center;display:flex;justify-content:center;margin-right:10px}:where(.ZDropButton-module_zd-button__list-item-icon__xgqOm){height:40px;width:40px}.ZDropButton-module_zd-button__list-item-icon__xgqOm img,.ZDropButton-module_zd-button__list-item-icon__xgqOm svg{height:100%;width:100%}:where(.ZDropButton-module_zd-button__list-item-title__RHTpc){font-size:14px;font-weight:500}:root{--zd-color-primary:#676767;--zd-color-primary-transp:#67676775;--zd-color-secondary:#0079bd;--zd-color-secondary-transp:#0079bd50;--zd-color-disabled:#ddd;--zd-color-error:#ff4d4f;--zd-color-error-transp:#ffe6e6;--zd-color-background-transp:#ffffffdd;--zd-font-family:Helvetica,Arial,sans-serif;--zd-font-size:14px;--zd-radius:3px;--zd-border:1px solid var(--zd-color-primary);--zd-focus-ring:0 0 0 0.2rem var(--zd-color-secondary-transp)}:where(.ZDrop-module_zd__container__IrQTk) *{margin:0;padding:0}.ZDrop-module_zd__container__IrQTk *{box-sizing:border-box}.ZDrop-module_zd__container__IrQTk{position:relative}:where(.ZDrop-module_zd__container__IrQTk){font-family:var(--zd-font-family);font-size:var(--zd-font-size);height:-moz-fit-content;height:fit-content;max-height:-moz-fit-content;max-height:fit-content;max-width:500px;min-width:200px;width:-moz-fit-content;width:fit-content}.ZDrop-module_zd__label__keSwp{display:block}:where(.ZDrop-module_zd__label__keSwp){color:var(--zd-color-primary);margin:0 0 5px 10px}.ZDrop-module_zd__input-field__Ne8t8{position:relative}:where(.ZDrop-module_zd__input-field__Ne8t8){border:var(--zd-border);border-radius:var(--zd-radius);display:flex;min-height:35px;overflow-y:auto;padding-left:10px;transition:border .15s ease-in-out,box-shadow .15s ease-in-out}.ZDrop-module_zd__input-field__Ne8t8>input{cursor:pointer}:where(.ZDrop-module_zd__input-field__Ne8t8):hover{border-color:var(--zd-color-secondary)}:where(.ZDrop-module_zd__input-field__Ne8t8):focus-within{border-color:var(--zd-color-secondary);box-shadow:var(--zd-focus-ring)}.ZDrop-module_zd__input-field__Ne8t8:focus-within>input{cursor:text}:where(.ZDrop-module_zd__input-field--multiple__kDSP5){padding-left:4px}:where(.ZDrop-module_zd__input-field--disabled__LOUpU){background:var(--zd-color-disabled);cursor:default;pointer-events:none}:where(.ZDrop-module_zd__input__r3qdf){background:transparent;border:none;border-radius:var(--zd-radius);color:var(--zd-color-primary);min-height:100%;padding-right:10px;width:100%}:where(.ZDrop-module_zd__input__r3qdf):focus{outline:none}:where(.ZDrop-module_zd__input__r3qdf):disabled{background:var(--zd-color-disabled)}:where(.ZDrop-module_zd__input__r3qdf)::-moz-placeholder{color:var(--zd-color-primary-transp)}:where(.ZDrop-module_zd__input__r3qdf)::placeholder{color:var(--zd-color-primary-transp)}:where(.ZDrop-module_zd__input-single__tM76E){align-items:center;display:flex;height:auto;max-width:100%;min-height:35px;overflow:hidden;white-space:nowrap}:where(.ZDrop-module_zd__input-single-value__LjXQ3){border:var(--zd-border);border-radius:var(--zd-radius);height:100%;width:-moz-fit-content;width:fit-content}:where(.ZDrop-module_zd__input-single-value-renderer__fhahO){align-items:center;display:flex}:where(.ZDrop-module_zd__input-single-search__j4zof){align-items:center;background:transparent;border:none;color:var(--zd-color-primary);display:flex;flex:1;line-height:35px;max-width:100%;min-height:35px;overflow:hidden;white-space:nowrap}:where(.ZDrop-module_zd__input-single-search__j4zof):focus{outline:none}:where(.ZDrop-module_zd__input-multiple__AzD1G){align-items:center;display:flex;flex-wrap:wrap;height:auto;list-style:none;margin-right:5px;max-width:calc(100% - 47px)}:where(.ZDrop-module_zd__input-multiple-value__4ZAHf){align-items:center;background:var(--zd-color-disabled);border-radius:var(--zd-radius);color:var(--zd-color-primary);cursor:pointer;display:flex;margin:2px;min-width:-moz-fit-content;min-width:fit-content;padding:3px 6px;width:-moz-fit-content;width:fit-content}:where(.ZDrop-module_zd__input-multiple-value__4ZAHf) span{display:flex;min-width:-moz-fit-content;min-width:fit-content;white-space:nowrap;width:-moz-fit-content;width:fit-content}:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH){align-items:center;background:transparent;border:none;cursor:pointer;display:flex;justify-content:center;margin-left:3px;min-width:10px;position:relative;width:10px}:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):focus{outline:none}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv){align-items:center;display:flex;height:10px;justify-content:center;position:relative;width:10px}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):after,:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):before{background-color:var(--zd-color-primary);content:"";height:10px;position:absolute;width:2px}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):before{transform:rotate(45deg)}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):after{transform:rotate(-45deg)}:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):focus>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:after,:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):focus>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:before,:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):hover>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:after,:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):hover>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:before{background-color:var(--zd-color-secondary)}:where(.ZDrop-module_zd__input-multiple-search-wrapper__va0lS){flex:auto;min-width:100%}:where(.ZDrop-module_zd__input-multiple-search__5K3Z9){background:transparent;border:none;color:var(--zd-color-primary);min-width:40px;padding:3px;width:100%}:where(.ZDrop-module_zd__input-multiple-search__5K3Z9):focus{outline:none}:where(.ZDrop-module_zd__input-multiple-placeholder__tx34F){padding-left:6px}.ZDrop-module_inputClearBtnWrapper__S3uiC{position:relative}:where(.ZDrop-module_zd__input-clear-btn-wrapper__drnqP){align-items:center;display:flex;justify-content:center}:where(.ZDrop-module_zd__input-clear-btn__wqpAG){background:none;border:none;max-height:-moz-fit-content;max-height:fit-content}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa){cursor:pointer;display:block;height:15px;max-width:14px;min-width:14px;position:relative}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):after,:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):before{background:var(--zd-color-primary);content:"";height:15px;left:6px;position:absolute;width:2px}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):before{transform:rotate(45deg)}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):after{transform:rotate(-45deg)}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):hover:after,:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):hover:before{background:var(--zd-color-secondary)}.ZDrop-module_zd__expand-toggle__5-2LH{align-items:center;display:flex;min-width:-moz-fit-content;min-width:fit-content;padding:0 10px}.ZDrop-module_zd__expand-toggle-icon__Vznjq{border:solid var(--zd-color-primary);border-width:0 2px 2px 0;cursor:pointer;padding:4px;transform:rotate(135deg);transition:.3s}.ZDrop-module_zd__expand-toggle-icon--active__I4ZEa{color:var(--zd-color-secondary);transform:translateY(-30%) rotate(45deg)}:where(.ZDrop-module_zd__expand-toggle-icon__Vznjq):hover{border-color:var(--zd-color-secondary)}.ZDrop-module_zd__list__q8lwW{max-height:-moz-fit-content;max-height:fit-content;overflow:auto;position:absolute;width:100%;z-index:2}.ZDrop-module_zd__list-wrapper__dWpmK{margin-top:5px;min-width:100%;overflow:auto;position:absolute;z-index:2}:where(.ZDrop-module_zd__list-wrapper__dWpmK){border:var(--zd-border);border-radius:var(--zd-radius)}.ZDrop-module_zd__list-auto-height-wrapper__UxW3X{height:auto;margin-top:5px;overflow:auto;width:100%}:where(.ZDrop-module_zd__list-auto-height-wrapper__UxW3X){border:var(--zd-border);border-radius:var(--zd-radius)}.ZDrop-module_zd__list--auto-height-enabled__qwsev,.ZDrop-module_zd__list--reference-wrapper-enabled__Ufhb0{position:relative}:where(.ZDrop-module_zd__option__Zf2Fo,.ZDrop-module_zd__no-data__7cCZK){color:var(--zd-color-primary);list-style:none;padding:10px 8px}:where(.ZDrop-module_zd__option__Zf2Fo){cursor:pointer}:where(.ZDrop-module_zd__option__Zf2Fo):focus{background:var(--zd-color-secondary-transp);outline:none}:where(.ZDrop-module_zd__option__Zf2Fo):hover{font-weight:700}:where(.ZDrop-module_zd__option--active__u-S9s){color:var(--zd-color-secondary)}:where(.ZDrop-module_zd__error-message__XL-DS){background:var(--zd-color-error-transp);border:1px solid var(--zd-color-error);border-radius:var(--zd-radius);color:var(--zd-color-error);margin-top:5px;padding:8px}
|
|
1
|
+
.ZDropButton-module_zd-button__XVZ-w *{box-sizing:border-box;margin:0;padding:0}.ZDropButton-module_zd-button__XVZ-w{max-height:-moz-fit-content;max-height:fit-content;min-width:-moz-fit-content;min-width:fit-content;position:relative}.ZDropButton-module_zd-button__toggle__0jdWn{align-items:center;cursor:pointer;display:flex;min-width:100%;padding:0 10px;width:100%}:where(.ZDropButton-module_zd-button__toggle__0jdWn){background:transparent;border:var(--zd-border);border-radius:var(--zd-radius);height:35px;outline:none;transition:border .15s ease-in-out,box-shadow .15s ease-in-out}:where(.ZDropButton-module_zd-button__toggle__0jdWn).ZDropButton-module_active__AHl3a,:where(.ZDropButton-module_zd-button__toggle__0jdWn):focus,:where(.ZDropButton-module_zd-button__toggle__0jdWn):hover{border-color:var(--zd-color-secondary)}:where(.ZDropButton-module_zd-button__toggle-title__OaiVF){color:var(--zd-color-primary);font-size:13px;font-weight:500}.ZDropButton-module_zd-button__toggle-icon__G4tnb{align-items:center;display:flex;justify-content:center;margin-right:6px}:where(.ZDropButton-module_zd-button__toggle-icon__G4tnb){height:30px;width:30px}:where(.ZDropButton-module_zd-button__toggle-icon__G4tnb) img,:where(.ZDropButton-module_zd-button__toggle-icon__G4tnb) svg{height:100%;width:100%}.ZDropButton-module_zd-button__content__FS-6m{margin:1px 0;min-width:100%;overflow-y:auto;position:absolute;width:100%}:where(.ZDropButton-module_zd-button__content__FS-6m){border:1px solid var(--zd-color-primary);border-radius:var(--zd-radius)}.ZDropButton-module_zd-button__search__6Nbrx{height:30px;max-width:100%;min-width:100%;padding:1px 0;width:100%}.ZDropButton-module_zd-button__search-input-field__K2avH{align-items:center;display:flex;height:100%;min-width:100%;position:relative;width:100%}:where(.ZDropButton-module_zd-button__search-input-field__K2avH){border:1px solid var(--zd-color-primary);border-radius:var(--zd-radius)}:where(.ZDropButton-module_zd-button__search-input-field__K2avH):focus-within{border-color:var(--zd-color-secondary)}.ZDropButton-module_zd-button__search-input__1e643{background:transparent;border:none;max-width:100%;padding:2px 5px;width:100%}.ZDropButton-module_zd-button__search-input__1e643:focus{outline:none}.ZDropButton-module_zd-button__search-clear-btn__hJo2h{background:transparent;border:none;cursor:pointer;margin:0 5px;max-height:-moz-fit-content;max-height:fit-content}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy){cursor:pointer;display:block;height:15px;max-width:14px;min-width:14px;position:relative}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):after,:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):before{background:var(--zd-color-primary);content:"";height:15px;left:6px;position:absolute;width:2px}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):before{transform:rotate(45deg)}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):after{transform:rotate(-45deg)}:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):hover:after,:where(.ZDropButton-module_zd-button__search-clear-btn-icon__PWwHy):hover:before{background:var(--zd-color-secondary)}.ZDropButton-module_zd-button__list__prV7p{list-style:none;min-width:100%;overflow-y:auto;width:100%}:where(.ZDropButton-module_zd-button__list__prV7p){border-radius:var(--zd-radius)}.ZDropButton-module_zd-button__list-item__uRK0D{align-items:center;cursor:pointer;display:flex;padding:3px 5px;position:relative;width:100%}:where(.ZDropButton-module_zd-button__list-item__uRK0D){background-color:var(--zd-color-background-transp);color:var(--zd-color-primary);transition:background-color .2s linear}:where(.ZDropButton-module_zd-button__list-item__uRK0D):focus{outline:none}:where(.ZDropButton-module_zd-button__list-item__uRK0D):focus,:where(.ZDropButton-module_zd-button__list-item__uRK0D):hover{background-color:var(--zd-color-secondary-transp)}:where(.ZDropButton-module_zd-button__list-item--active__oPoZA){background-color:var(--zd-color-secondary-transp);color:var(--zd-color-secondary)}.ZDropButton-module_zd-button__list-item-icon__xgqOm{align-items:center;display:flex;justify-content:center;margin-right:10px}:where(.ZDropButton-module_zd-button__list-item-icon__xgqOm){height:40px;width:40px}.ZDropButton-module_zd-button__list-item-icon__xgqOm img,.ZDropButton-module_zd-button__list-item-icon__xgqOm svg{height:100%;width:100%}:where(.ZDropButton-module_zd-button__list-item-title__RHTpc){font-size:14px;font-weight:500}:root{--thumb-size:8px;--track-height:4px}.ZRange-module_zr__zQajG{margin-top:20px;position:relative}.ZRange-module_zr__container__XLdRx{position:relative}.ZRange-module_input-label__wrapper__btU-4{pointer-events:none;touch-action:none}.ZRange-module_zr__label__eddhI{background:transparent}:where(.ZRange-module_zr__label__eddhI){color:var(--zd-color-primary);font-size:var(--zd-font-size);font-weight:500}.ZRange-module_zr__value-indicator__xK4H8{border-radius:4px;display:none;font-size:var(--zd-font-size);font-weight:500;left:50%;margin-bottom:5px;min-height:-moz-fit-content;min-height:fit-content;min-width:-moz-fit-content;min-width:fit-content;padding:2px 8px;position:absolute;transform:translateX(-50%);z-index:6}@media (max-width:599px){.ZRange-module_zr__value-indicator__xK4H8{padding:2px 4px}}:where(.ZRange-module_zr__value-indicator__xK4H8){background-color:var(--zd-color-primary);font-size:var(--zd-font-size);white-space:nowrap;width:-moz-fit-content;width:fit-content}@media (max-width:599px){:where(.ZRange-module_zr__value-indicator__xK4H8){font-size:var(--zd-font-size)}}.ZRange-module_zr__value-indicator__xK4H8:before{border-style:solid;border-width:5px 5px 0;content:"";display:block;height:0;left:50%;position:absolute;top:100%;transform:translateX(-50%);width:0}:where(.ZRange-module_zr__value-indicator__xK4H8):before{border-color:var(--zd-color-primary) transparent transparent transparent}.ZRange-module_zr__value-indicator--active__Nb6d5{align-items:center;display:flex;justify-content:space-around}:where(.ZRange-module_zr__value-indicator-icon__iCqcS){align-items:center;display:flex;height:40px;justify-content:center;width:40px}:where(.ZRange-module_zr__value-indicator-icon__iCqcS) img{height:100%;width:100%}.ZRange-module_zr__inputs-wrapper__yzQxk{max-width:100%;position:relative;width:100%}.ZRange-module_zr__input__FOHCA,.ZRange-module_zr__input__FOHCA::-webkit-slider-thumb{-webkit-tap-highlight-color:transparent;appearance:none;-webkit-appearance:none;padding:0}.ZRange-module_zr__input__FOHCA{background:transparent;border:0;box-sizing:border-box;height:0;margin:0;outline:none;padding:0;position:absolute;touch-action:none;transition:.2s ease-in-out;width:100%}.ZRange-module_zr__input-first__m1Qt9{z-index:3}.ZRange-module_zr__input-second__HMhTG{z-index:4}.ZRange-module_zr__input--active__pxd3x{pointer-events:all;z-index:5}:where(.ZRange-module_zr__input--active__pxd3x)::-webkit-slider-thumb{outline:2px solid var(--zd-color-secondary)}.ZRange-module_zr__input__FOHCA::-webkit-slider-runnable-track{background:transparent;border:0;cursor:pointer;height:var(--track-height);margin:auto 0;width:100%}.ZRange-module_zr__input__FOHCA::-mozr-track{background:transparent;border:0;height:var(--track-height);width:100%}.ZRange-module_zr__input__FOHCA::-moz-focus-outer{border:0}.ZRange-module_zr__input__FOHCA::-webkit-slider-thumb{cursor:pointer;height:var(--thumb-size);margin-top:calc((var(--track-height) - var(--thumb-size))/2);pointer-events:all;width:var(--thumb-size)}:where(.ZRange-module_zr__input__FOHCA)::-webkit-slider-thumb{background-color:var(--zd-color-primary);border-radius:4px;box-shadow:0 0 4px 0 #000;-webkit-transition:.2s ease-in-out;transition:.2s ease-in-out}.ZRange-module_zr__input__FOHCA::-mozr-thumb{cursor:pointer;height:var(--thumb-size);pointer-events:all;width:var(--thumb-size)}:where(.ZRange-module_zr__input__FOHCA::-mozr-thumb){background-color:var(--zd-color-primary);border-radius:4px;box-shadow:0 0 4px 0 #000;transition:.2s ease-in-out}.ZRange-module_zr__slider__pD1kE{height:var(--track-height);overflow:hidden;position:relative;width:100%}.ZRange-module_zr__slider-track__sZvOt{height:var(--track-height);position:absolute;top:0;width:100%}:where(.ZRange-module_zr__slider-track__sZvOt){background-color:var(--zd-color-primary);border-radius:2px}.ZRange-module_zr__slider-track-selected-range__lXJE1{height:var(--track-height);pointer-events:none;position:relative}:where(.ZRange-module_zr__slider-track-selected-range__lXJE1){background-color:var(--zd-color-secondary);border-radius:2px}.ZRange-module_zr__slider-values-wrapper__vxSnT{align-items:center;display:flex;justify-content:space-between;padding:15px 0 10px}:where(.ZRange-module_zr__slider-value__W9jMF){font-weight:500}:where(.ZRange-module_zr__slider-first-value__e7Ik6),:where(.ZRange-module_zr__slider-second-value__itzcB){color:var(--zd-color-primary);font-size:var(--zd-font-size)}:where(.ZRange-module_zr__error-message__QMDqT){background:var(--zd-color-error-transp);border:1px solid var(--zd-color-error);border-radius:var(--zd-radius);color:var(--zd-color-error);margin-top:5px;padding:8px}:root{--zd-color-primary:#676767;--zd-color-primary-transp:#67676775;--zd-color-secondary:#0079bd;--zd-color-secondary-transp:#0079bd50;--zd-color-disabled:#ddd;--zd-color-error:#ff4d4f;--zd-color-error-transp:#ffe6e6;--zd-color-background-transp:#ffffffdd;--zd-font-family:Helvetica,Arial,sans-serif;--zd-font-size:14px;--zd-radius:3px;--zd-border:1px solid var(--zd-color-primary);--zd-focus-ring:0 0 0 0.2rem var(--zd-color-secondary-transp)}:where(.ZDrop-module_zd__container__IrQTk) *{margin:0;padding:0}.ZDrop-module_zd__container__IrQTk *{box-sizing:border-box}.ZDrop-module_zd__container__IrQTk{position:relative}:where(.ZDrop-module_zd__container__IrQTk){font-family:var(--zd-font-family);font-size:var(--zd-font-size);height:-moz-fit-content;height:fit-content;max-height:-moz-fit-content;max-height:fit-content;max-width:500px;min-width:200px;width:-moz-fit-content;width:fit-content}.ZDrop-module_zd__label__keSwp{display:block}:where(.ZDrop-module_zd__label__keSwp){color:var(--zd-color-primary);margin:0 0 5px 10px}.ZDrop-module_zd__input-field__Ne8t8{position:relative}:where(.ZDrop-module_zd__input-field__Ne8t8){border:var(--zd-border);border-radius:var(--zd-radius);display:flex;min-height:35px;overflow-y:auto;padding-left:10px;transition:border .15s ease-in-out,box-shadow .15s ease-in-out}.ZDrop-module_zd__input-field__Ne8t8>input{cursor:pointer}:where(.ZDrop-module_zd__input-field__Ne8t8):hover{border-color:var(--zd-color-secondary)}:where(.ZDrop-module_zd__input-field__Ne8t8):focus-within{border-color:var(--zd-color-secondary);box-shadow:var(--zd-focus-ring)}.ZDrop-module_zd__input-field__Ne8t8:focus-within>input{cursor:text}:where(.ZDrop-module_zd__input-field--multiple__kDSP5){padding-left:4px}:where(.ZDrop-module_zd__input-field--disabled__LOUpU){background:var(--zd-color-disabled);cursor:default;pointer-events:none}:where(.ZDrop-module_zd__input__r3qdf){background:transparent;border:none;border-radius:var(--zd-radius);color:var(--zd-color-primary);min-height:100%;padding-right:10px;width:100%}:where(.ZDrop-module_zd__input__r3qdf):focus{outline:none}:where(.ZDrop-module_zd__input__r3qdf):disabled{background:var(--zd-color-disabled)}:where(.ZDrop-module_zd__input__r3qdf)::-moz-placeholder{color:var(--zd-color-primary-transp)}:where(.ZDrop-module_zd__input__r3qdf)::placeholder{color:var(--zd-color-primary-transp)}:where(.ZDrop-module_zd__input-single__tM76E){align-items:center;display:flex;height:auto;max-width:100%;min-height:35px;overflow:hidden;white-space:nowrap}:where(.ZDrop-module_zd__input-single-value__LjXQ3){border:var(--zd-border);border-radius:var(--zd-radius);height:100%;width:-moz-fit-content;width:fit-content}:where(.ZDrop-module_zd__input-single-value-renderer__fhahO){align-items:center;display:flex}:where(.ZDrop-module_zd__input-single-search__j4zof){align-items:center;background:transparent;border:none;color:var(--zd-color-primary);display:flex;flex:1;line-height:35px;max-width:100%;min-height:35px;overflow:hidden;white-space:nowrap}:where(.ZDrop-module_zd__input-single-search__j4zof):focus{outline:none}:where(.ZDrop-module_zd__input-multiple__AzD1G){align-items:center;display:flex;flex-wrap:wrap;height:auto;list-style:none;margin-right:5px;max-width:calc(100% - 47px)}:where(.ZDrop-module_zd__input-multiple-value__4ZAHf){align-items:center;background:var(--zd-color-disabled);border-radius:var(--zd-radius);color:var(--zd-color-primary);cursor:pointer;display:flex;margin:2px;min-width:-moz-fit-content;min-width:fit-content;padding:3px 6px;width:-moz-fit-content;width:fit-content}:where(.ZDrop-module_zd__input-multiple-value__4ZAHf) span{display:flex;min-width:-moz-fit-content;min-width:fit-content;white-space:nowrap;width:-moz-fit-content;width:fit-content}:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH){align-items:center;background:transparent;border:none;cursor:pointer;display:flex;justify-content:center;margin-left:3px;min-width:10px;position:relative;width:10px}:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):focus{outline:none}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv){align-items:center;display:flex;height:10px;justify-content:center;position:relative;width:10px}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):after,:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):before{background-color:var(--zd-color-primary);content:"";height:10px;position:absolute;width:2px}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):before{transform:rotate(45deg)}:where(.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv):after{transform:rotate(-45deg)}:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):focus>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:after,:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):focus>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:before,:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):hover>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:after,:where(.ZDrop-module_zd__input-multiple-value-remove-btn__gSzGH):hover>.ZDrop-module_zd__input-multiple-value-remove-btn-icon__23GYv:before{background-color:var(--zd-color-secondary)}:where(.ZDrop-module_zd__input-multiple-search-wrapper__va0lS){flex:auto;min-width:100%}:where(.ZDrop-module_zd__input-multiple-search__5K3Z9){background:transparent;border:none;color:var(--zd-color-primary);min-width:40px;padding:3px;width:100%}:where(.ZDrop-module_zd__input-multiple-search__5K3Z9):focus{outline:none}:where(.ZDrop-module_zd__input-multiple-placeholder__tx34F){padding-left:6px}.ZDrop-module_inputClearBtnWrapper__S3uiC{position:relative}:where(.ZDrop-module_zd__input-clear-btn-wrapper__drnqP){align-items:center;display:flex;justify-content:center}:where(.ZDrop-module_zd__input-clear-btn__wqpAG){background:none;border:none;max-height:-moz-fit-content;max-height:fit-content}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa){cursor:pointer;display:block;height:15px;max-width:14px;min-width:14px;position:relative}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):after,:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):before{background:var(--zd-color-primary);content:"";height:15px;left:6px;position:absolute;width:2px}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):before{transform:rotate(45deg)}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):after{transform:rotate(-45deg)}:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):hover:after,:where(.ZDrop-module_zd__input-clear-btn-icon__4wsoa):hover:before{background:var(--zd-color-secondary)}.ZDrop-module_zd__expand-toggle__5-2LH{align-items:center;display:flex;min-width:-moz-fit-content;min-width:fit-content;padding:0 10px}.ZDrop-module_zd__expand-toggle-icon__Vznjq{border:solid var(--zd-color-primary);border-width:0 2px 2px 0;cursor:pointer;padding:4px;transform:rotate(135deg);transition:.3s}.ZDrop-module_zd__expand-toggle-icon--active__I4ZEa{color:var(--zd-color-secondary);transform:translateY(-30%) rotate(45deg)}:where(.ZDrop-module_zd__expand-toggle-icon__Vznjq):hover{border-color:var(--zd-color-secondary)}.ZDrop-module_zd__list__q8lwW{max-height:-moz-fit-content;max-height:fit-content;overflow:auto;position:absolute;width:100%;z-index:2}.ZDrop-module_zd__list-wrapper__dWpmK{margin-top:5px;min-width:100%;overflow:auto;position:absolute;z-index:2}:where(.ZDrop-module_zd__list-wrapper__dWpmK){border:var(--zd-border);border-radius:var(--zd-radius)}.ZDrop-module_zd__list-auto-height-wrapper__UxW3X{height:auto;margin-top:5px;overflow:auto;width:100%}:where(.ZDrop-module_zd__list-auto-height-wrapper__UxW3X){border:var(--zd-border);border-radius:var(--zd-radius)}.ZDrop-module_zd__list--auto-height-enabled__qwsev,.ZDrop-module_zd__list--reference-wrapper-enabled__Ufhb0{position:relative}:where(.ZDrop-module_zd__option__Zf2Fo,.ZDrop-module_zd__no-data__7cCZK){color:var(--zd-color-primary);list-style:none;padding:10px 8px}:where(.ZDrop-module_zd__option__Zf2Fo){cursor:pointer}:where(.ZDrop-module_zd__option__Zf2Fo):focus{background:var(--zd-color-secondary-transp);outline:none}:where(.ZDrop-module_zd__option__Zf2Fo):hover{font-weight:700}:where(.ZDrop-module_zd__option--active__u-S9s){color:var(--zd-color-secondary)}:where(.ZDrop-module_zd__error-message__XL-DS){background:var(--zd-color-error-transp);border:1px solid var(--zd-color-error);border-radius:var(--zd-radius);color:var(--zd-color-error);margin-top:5px;padding:8px}
|
|
2
2
|
/*# sourceMappingURL=zcomponents-ui.css.map */
|