@povio/ui 3.3.0-rc.3 → 3.3.0-rc.4
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/buttons/Button/button.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +5 -1
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +234 -201
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +142 -127
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +2 -17
- package/dist/components/inputs/DateTime/shared/DateField.js +92 -87
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +2 -0
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +144 -134
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +2 -0
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +33 -0
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +2 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +56 -2
- package/dist/components/inputs/Selection/Select/QuerySelect.js +69 -15
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +1 -0
- package/dist/components/inputs/Selection/shared/select.context.js +19 -9
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
- package/dist/config/uiConfig.context.d.ts +1 -0
- package/dist/config/uiConfig.context.js +2 -1
- package/dist/helpers/dynamicColumns.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/utils/date-time.utils.d.ts +0 -1
- package/dist/utils/date-time.utils.js +21 -45
- package/dist/utils/intl.utils.d.ts +7 -0
- package/dist/utils/intl.utils.js +38 -0
- package/dist/utils/intl.utils.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -92,7 +92,7 @@ export declare const buttonIconSizeDefinition: {
|
|
|
92
92
|
export type ButtonIconSizeConfig = NonNullable<typeof buttonIconSizeDefinition.config>;
|
|
93
93
|
export declare const buttonTypography: (props: {
|
|
94
94
|
readonly width?: "fill" | "hug" | null | undefined;
|
|
95
|
-
readonly size?: "none" | "
|
|
95
|
+
readonly size?: "none" | "xs" | "s" | "m" | "l" | null | undefined;
|
|
96
96
|
readonly color?: "error" | "primary" | "dual" | "secondary" | "success" | "warning" | null | undefined;
|
|
97
97
|
readonly variant?: "text" | "contained" | "outlined" | "subtle" | "ghost" | null | undefined;
|
|
98
98
|
readonly inverted?: boolean | null | undefined;
|
|
@@ -5,12 +5,16 @@ import { CheckboxVariantProps } from './checkbox.cva';
|
|
|
5
5
|
import { FormFieldProps } from '../FormField/FormField';
|
|
6
6
|
import { ControlProps } from '../shared/form.types';
|
|
7
7
|
import { InputVariantProps } from '../shared/input.cva';
|
|
8
|
-
interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, CheckboxVariantProps, Omit<InputVariantProps, "variant">, Omit<AriaCheckboxGroupProps, "children" | "className" | "label"> {
|
|
8
|
+
interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, CheckboxVariantProps, Omit<InputVariantProps, "variant">, Omit<AriaCheckboxGroupProps, "children" | "className" | "defaultValue" | "label" | "onChange" | "value"> {
|
|
9
9
|
ref?: Ref<HTMLDivElement>;
|
|
10
10
|
options: {
|
|
11
11
|
label: string | ReactElement;
|
|
12
12
|
value: string;
|
|
13
13
|
}[];
|
|
14
|
+
allValue?: string[] | null;
|
|
15
|
+
value?: string[] | null;
|
|
16
|
+
defaultValue?: string[] | null;
|
|
17
|
+
onChange?: (value: string[] | null) => void;
|
|
14
18
|
isDirty?: boolean;
|
|
15
19
|
inputClassName?: string;
|
|
16
20
|
labelClassName?: string;
|
|
@@ -14,32 +14,59 @@ import { mergeRefs } from "@react-aria/utils";
|
|
|
14
14
|
import { Controller } from "react-hook-form";
|
|
15
15
|
//#region src/components/inputs/Checkbox/CheckboxGroup.tsx
|
|
16
16
|
var CheckboxGroupBase = (props) => {
|
|
17
|
-
const $ = c(
|
|
17
|
+
const $ = c(101);
|
|
18
18
|
const ui = UIConfig.useConfig();
|
|
19
19
|
const checkboxContentWrapperCva = UIOverrides.useCva("checkbox.contentWrapperCva", checkboxContentWrapperDefinition);
|
|
20
20
|
const checkboxContentRowCva = UIOverrides.useCva("checkbox.contentRowCva", checkboxContentRowDefinition);
|
|
21
21
|
const checkboxGroupLabelCva = UIOverrides.useCva("checkbox.groupLabelCva", checkboxGroupLabelDefinition);
|
|
22
22
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
23
23
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
24
|
-
const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName, isHeaderHidden, error, className, options, value, defaultValue, onChange, onBlur, fireBlurOnChange: fireBlurOnChangeProp, as: asProp, size: sizeProp, variant: variantProp, hideLabel: hideLabelProp, ...rest } = props;
|
|
24
|
+
const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName, isHeaderHidden, error, className, options, allValue, value, defaultValue, onChange, onBlur, fireBlurOnChange: fireBlurOnChangeProp, as: asProp, size: sizeProp, variant: variantProp, hideLabel: hideLabelProp, ...rest } = props;
|
|
25
25
|
const as = asProp ?? ui.input.as;
|
|
26
26
|
const size = sizeProp ?? ui.input.size;
|
|
27
27
|
const variant = variantProp ?? ui.checkbox.variant;
|
|
28
28
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
29
29
|
const fireBlurOnChange = fireBlurOnChangeProp ?? ui.checkbox.fireBlurOnChange;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
let optionValues;
|
|
31
|
+
let resolvedValue;
|
|
32
32
|
let t0;
|
|
33
|
-
if ($[0] !==
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
if ($[0] !== allValue || $[1] !== defaultValue || $[2] !== options || $[3] !== value) {
|
|
34
|
+
optionValues = options.map(_temp);
|
|
35
|
+
const expandAllValue = (currentValue) => {
|
|
36
|
+
if (allValue === null && currentValue === null) return optionValues;
|
|
37
|
+
if (allValue !== void 0 && allValue !== null && currentValue) {
|
|
38
|
+
if (currentValue.length === allValue.length && currentValue.every((item, index) => item === allValue[index])) return optionValues;
|
|
39
|
+
}
|
|
40
|
+
return currentValue ?? void 0;
|
|
41
|
+
};
|
|
42
|
+
resolvedValue = expandAllValue(value);
|
|
43
|
+
t0 = expandAllValue(defaultValue);
|
|
44
|
+
$[0] = allValue;
|
|
45
|
+
$[1] = defaultValue;
|
|
46
|
+
$[2] = options;
|
|
47
|
+
$[3] = value;
|
|
48
|
+
$[4] = optionValues;
|
|
49
|
+
$[5] = resolvedValue;
|
|
50
|
+
$[6] = t0;
|
|
51
|
+
} else {
|
|
52
|
+
optionValues = $[4];
|
|
53
|
+
resolvedValue = $[5];
|
|
54
|
+
t0 = $[6];
|
|
55
|
+
}
|
|
56
|
+
const resolvedDefaultValue = t0;
|
|
57
|
+
const selectedValue = resolvedValue ?? resolvedDefaultValue;
|
|
58
|
+
const shouldRenderInputFrame = as !== "default";
|
|
59
|
+
let t1;
|
|
60
|
+
if ($[7] !== label) {
|
|
61
|
+
t1 = { label };
|
|
62
|
+
$[7] = label;
|
|
63
|
+
$[8] = t1;
|
|
64
|
+
} else t1 = $[8];
|
|
65
|
+
const { labelProps, fieldProps } = useLabel(t1);
|
|
66
|
+
const t2 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
|
|
67
|
+
let t3;
|
|
68
|
+
if ($[9] !== className || $[10] !== error || $[11] !== errorClassName || $[12] !== headerClassName || $[13] !== helperText || $[14] !== hideLabel || $[15] !== isDisabled || $[16] !== isRequired || $[17] !== label || $[18] !== rightContent || $[19] !== t2 || $[20] !== tooltipText) {
|
|
69
|
+
t3 = {
|
|
43
70
|
className,
|
|
44
71
|
error,
|
|
45
72
|
errorClassName,
|
|
@@ -47,100 +74,103 @@ var CheckboxGroupBase = (props) => {
|
|
|
47
74
|
helperText,
|
|
48
75
|
hideLabel,
|
|
49
76
|
isDisabled,
|
|
50
|
-
isHeaderHidden:
|
|
77
|
+
isHeaderHidden: t2,
|
|
51
78
|
isRequired,
|
|
52
79
|
label,
|
|
53
80
|
rightContent,
|
|
54
81
|
tooltipText
|
|
55
82
|
};
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
} else
|
|
70
|
-
const formFieldProps =
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
if ($[
|
|
74
|
-
|
|
83
|
+
$[9] = className;
|
|
84
|
+
$[10] = error;
|
|
85
|
+
$[11] = errorClassName;
|
|
86
|
+
$[12] = headerClassName;
|
|
87
|
+
$[13] = helperText;
|
|
88
|
+
$[14] = hideLabel;
|
|
89
|
+
$[15] = isDisabled;
|
|
90
|
+
$[16] = isRequired;
|
|
91
|
+
$[17] = label;
|
|
92
|
+
$[18] = rightContent;
|
|
93
|
+
$[19] = t2;
|
|
94
|
+
$[20] = tooltipText;
|
|
95
|
+
$[21] = t3;
|
|
96
|
+
} else t3 = $[21];
|
|
97
|
+
const formFieldProps = t3;
|
|
98
|
+
const t4 = hideLabel || isHeaderHidden;
|
|
99
|
+
let t5;
|
|
100
|
+
if ($[22] !== headerClassName || $[23] !== helperText || $[24] !== isDisabled || $[25] !== isRequired || $[26] !== label || $[27] !== labelProps || $[28] !== rightContent || $[29] !== t4 || $[30] !== tooltipText) {
|
|
101
|
+
t5 = {
|
|
75
102
|
className: headerClassName,
|
|
76
103
|
helperText,
|
|
77
104
|
isDisabled,
|
|
78
|
-
isHeaderHidden:
|
|
105
|
+
isHeaderHidden: t4,
|
|
79
106
|
isRequired,
|
|
80
107
|
label,
|
|
81
108
|
labelProps,
|
|
82
109
|
rightContent,
|
|
83
110
|
tooltipText
|
|
84
111
|
};
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
} else
|
|
96
|
-
const headerProps =
|
|
97
|
-
let
|
|
98
|
-
if ($[
|
|
99
|
-
|
|
100
|
-
|
|
112
|
+
$[22] = headerClassName;
|
|
113
|
+
$[23] = helperText;
|
|
114
|
+
$[24] = isDisabled;
|
|
115
|
+
$[25] = isRequired;
|
|
116
|
+
$[26] = label;
|
|
117
|
+
$[27] = labelProps;
|
|
118
|
+
$[28] = rightContent;
|
|
119
|
+
$[29] = t4;
|
|
120
|
+
$[30] = tooltipText;
|
|
121
|
+
$[31] = t5;
|
|
122
|
+
} else t5 = $[31];
|
|
123
|
+
const headerProps = t5;
|
|
124
|
+
let t6;
|
|
125
|
+
if ($[32] !== allValue || $[33] !== fireBlurOnChange || $[34] !== onBlur || $[35] !== onChange || $[36] !== optionValues) {
|
|
126
|
+
t6 = (nextValue) => {
|
|
127
|
+
const hasAllOptions = allValue !== void 0 && optionValues.length > 0 && optionValues.every((optionValue) => nextValue.includes(optionValue));
|
|
128
|
+
onChange?.(hasAllOptions ? allValue : nextValue);
|
|
101
129
|
if (fireBlurOnChange) onBlur?.({});
|
|
102
130
|
};
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
|
|
108
|
-
|
|
131
|
+
$[32] = allValue;
|
|
132
|
+
$[33] = fireBlurOnChange;
|
|
133
|
+
$[34] = onBlur;
|
|
134
|
+
$[35] = onChange;
|
|
135
|
+
$[36] = optionValues;
|
|
136
|
+
$[37] = t6;
|
|
137
|
+
} else t6 = $[37];
|
|
138
|
+
const handleChange = t6;
|
|
109
139
|
const T0 = CheckboxGroup;
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
140
|
+
const t7 = !!error;
|
|
141
|
+
const t8 = isDirty || void 0;
|
|
142
|
+
const t9 = isRequired || void 0;
|
|
143
|
+
const t10 = "group";
|
|
114
144
|
const T1 = FormField;
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
if ($[
|
|
118
|
-
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
} else
|
|
123
|
-
const
|
|
124
|
-
let
|
|
125
|
-
if ($[
|
|
126
|
-
|
|
145
|
+
const t11 = as === "inline" && "h-full";
|
|
146
|
+
let t12;
|
|
147
|
+
if ($[38] !== className || $[39] !== t11) {
|
|
148
|
+
t12 = clsx("w-full", t11, className);
|
|
149
|
+
$[38] = className;
|
|
150
|
+
$[39] = t11;
|
|
151
|
+
$[40] = t12;
|
|
152
|
+
} else t12 = $[40];
|
|
153
|
+
const t13 = as === "inline" ? -1 : void 0;
|
|
154
|
+
let t14;
|
|
155
|
+
if ($[41] !== as || $[42] !== inputBaseCva || $[43] !== inputClassName || $[44] !== shouldRenderInputFrame || $[45] !== ui) {
|
|
156
|
+
t14 = clsx("group/checkbox-group-content relative", shouldRenderInputFrame && inputBaseCva({
|
|
127
157
|
variant: ui.input.variant,
|
|
128
158
|
as
|
|
129
159
|
}), inputClassName);
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
} else
|
|
137
|
-
const
|
|
138
|
-
const t15 = isDisabled || void 0;
|
|
160
|
+
$[41] = as;
|
|
161
|
+
$[42] = inputBaseCva;
|
|
162
|
+
$[43] = inputClassName;
|
|
163
|
+
$[44] = shouldRenderInputFrame;
|
|
164
|
+
$[45] = ui;
|
|
165
|
+
$[46] = t14;
|
|
166
|
+
} else t14 = $[46];
|
|
167
|
+
const t15 = "";
|
|
139
168
|
const t16 = isDisabled || void 0;
|
|
140
|
-
const t17 =
|
|
141
|
-
const t18 =
|
|
142
|
-
const t19 =
|
|
143
|
-
const t20 =
|
|
169
|
+
const t17 = isDisabled || void 0;
|
|
170
|
+
const t18 = !!error || void 0;
|
|
171
|
+
const t19 = selectedValue?.length ? true : void 0;
|
|
172
|
+
const t20 = "";
|
|
173
|
+
const t21 = clsx(checkboxContentWrapperCva({
|
|
144
174
|
variant,
|
|
145
175
|
as,
|
|
146
176
|
size,
|
|
@@ -150,152 +180,152 @@ var CheckboxGroupBase = (props) => {
|
|
|
150
180
|
as,
|
|
151
181
|
size
|
|
152
182
|
}));
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
183
|
+
const t22 = isDirty || void 0;
|
|
184
|
+
const t23 = isRequired || void 0;
|
|
185
|
+
let t24;
|
|
186
|
+
if ($[47] !== as || $[48] !== checkboxGroupLabelCva || $[49] !== headerClassName || $[50] !== headerProps || $[51] !== size) {
|
|
187
|
+
t24 = as && ["filter", "floating"].includes(as) && /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
158
188
|
...headerProps,
|
|
159
189
|
as: as === "floating" ? "filter" : as,
|
|
160
190
|
size,
|
|
161
191
|
className: clsx(headerClassName, checkboxGroupLabelCva({ as }))
|
|
162
192
|
});
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
} else
|
|
170
|
-
const
|
|
193
|
+
$[47] = as;
|
|
194
|
+
$[48] = checkboxGroupLabelCva;
|
|
195
|
+
$[49] = headerClassName;
|
|
196
|
+
$[50] = headerProps;
|
|
197
|
+
$[51] = size;
|
|
198
|
+
$[52] = t24;
|
|
199
|
+
} else t24 = $[52];
|
|
200
|
+
const t25 = checkboxContentRowCva({
|
|
171
201
|
variant,
|
|
172
202
|
as,
|
|
173
203
|
hasInputFrame: shouldRenderInputFrame,
|
|
174
204
|
...rest
|
|
175
205
|
});
|
|
176
|
-
let
|
|
177
|
-
if ($[
|
|
178
|
-
let
|
|
179
|
-
if ($[
|
|
180
|
-
|
|
181
|
-
value:
|
|
206
|
+
let t26;
|
|
207
|
+
if ($[53] !== hideLabel || $[54] !== labelClassName || $[55] !== options || $[56] !== variant) {
|
|
208
|
+
let t27;
|
|
209
|
+
if ($[58] !== hideLabel || $[59] !== labelClassName || $[60] !== variant) {
|
|
210
|
+
t27 = (option_0) => /* @__PURE__ */ jsx(CheckboxBase, {
|
|
211
|
+
value: option_0.value,
|
|
182
212
|
variant,
|
|
183
213
|
hideLabel,
|
|
184
214
|
hideError: true,
|
|
185
215
|
labelClassName,
|
|
186
|
-
children:
|
|
187
|
-
},
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
} else
|
|
193
|
-
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
} else
|
|
200
|
-
let t26;
|
|
201
|
-
if ($[53] !== t24 || $[54] !== t25) {
|
|
202
|
-
t26 = /* @__PURE__ */ jsx("div", {
|
|
203
|
-
className: t24,
|
|
204
|
-
children: t25
|
|
205
|
-
});
|
|
206
|
-
$[53] = t24;
|
|
207
|
-
$[54] = t25;
|
|
208
|
-
$[55] = t26;
|
|
209
|
-
} else t26 = $[55];
|
|
216
|
+
children: option_0.label
|
|
217
|
+
}, option_0.value);
|
|
218
|
+
$[58] = hideLabel;
|
|
219
|
+
$[59] = labelClassName;
|
|
220
|
+
$[60] = variant;
|
|
221
|
+
$[61] = t27;
|
|
222
|
+
} else t27 = $[61];
|
|
223
|
+
t26 = options.map(t27);
|
|
224
|
+
$[53] = hideLabel;
|
|
225
|
+
$[54] = labelClassName;
|
|
226
|
+
$[55] = options;
|
|
227
|
+
$[56] = variant;
|
|
228
|
+
$[57] = t26;
|
|
229
|
+
} else t26 = $[57];
|
|
210
230
|
let t27;
|
|
211
|
-
if ($[
|
|
212
|
-
t27 = /* @__PURE__ */
|
|
213
|
-
className:
|
|
214
|
-
|
|
215
|
-
"data-is-required": t22,
|
|
216
|
-
children: [t23, t26]
|
|
231
|
+
if ($[62] !== t25 || $[63] !== t26) {
|
|
232
|
+
t27 = /* @__PURE__ */ jsx("div", {
|
|
233
|
+
className: t25,
|
|
234
|
+
children: t26
|
|
217
235
|
});
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
|
|
222
|
-
$[60] = t26;
|
|
223
|
-
$[61] = t27;
|
|
224
|
-
} else t27 = $[61];
|
|
236
|
+
$[62] = t25;
|
|
237
|
+
$[63] = t26;
|
|
238
|
+
$[64] = t27;
|
|
239
|
+
} else t27 = $[64];
|
|
225
240
|
let t28;
|
|
226
|
-
if ($[
|
|
227
|
-
t28 = /* @__PURE__ */
|
|
228
|
-
className:
|
|
229
|
-
"data-
|
|
230
|
-
"data-
|
|
231
|
-
|
|
232
|
-
"data-invalid": t17,
|
|
233
|
-
"data-has-selection": t18,
|
|
234
|
-
"data-checkbox-group-content": t19,
|
|
235
|
-
children: t27
|
|
241
|
+
if ($[65] !== t21 || $[66] !== t22 || $[67] !== t23 || $[68] !== t24 || $[69] !== t27) {
|
|
242
|
+
t28 = /* @__PURE__ */ jsxs("div", {
|
|
243
|
+
className: t21,
|
|
244
|
+
"data-is-dirty": t22,
|
|
245
|
+
"data-is-required": t23,
|
|
246
|
+
children: [t24, t27]
|
|
236
247
|
});
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
|
|
244
|
-
} else t28 = $[68];
|
|
248
|
+
$[65] = t21;
|
|
249
|
+
$[66] = t22;
|
|
250
|
+
$[67] = t23;
|
|
251
|
+
$[68] = t24;
|
|
252
|
+
$[69] = t27;
|
|
253
|
+
$[70] = t28;
|
|
254
|
+
} else t28 = $[70];
|
|
245
255
|
let t29;
|
|
246
|
-
if ($[
|
|
247
|
-
t29 = /* @__PURE__ */ jsx(
|
|
256
|
+
if ($[71] !== t14 || $[72] !== t16 || $[73] !== t17 || $[74] !== t18 || $[75] !== t19 || $[76] !== t28) {
|
|
257
|
+
t29 = /* @__PURE__ */ jsx("div", {
|
|
258
|
+
className: t14,
|
|
259
|
+
"data-rac": t15,
|
|
260
|
+
"data-disabled": t16,
|
|
261
|
+
"data-is-disabled": t17,
|
|
262
|
+
"data-invalid": t18,
|
|
263
|
+
"data-has-selection": t19,
|
|
264
|
+
"data-checkbox-group-content": t20,
|
|
265
|
+
children: t28
|
|
266
|
+
});
|
|
267
|
+
$[71] = t14;
|
|
268
|
+
$[72] = t16;
|
|
269
|
+
$[73] = t17;
|
|
270
|
+
$[74] = t18;
|
|
271
|
+
$[75] = t19;
|
|
272
|
+
$[76] = t28;
|
|
273
|
+
$[77] = t29;
|
|
274
|
+
} else t29 = $[77];
|
|
275
|
+
let t30;
|
|
276
|
+
if ($[78] !== T1 || $[79] !== as || $[80] !== formFieldProps || $[81] !== labelProps || $[82] !== t12 || $[83] !== t13 || $[84] !== t29) {
|
|
277
|
+
t30 = /* @__PURE__ */ jsx(T1, {
|
|
248
278
|
...formFieldProps,
|
|
249
279
|
as,
|
|
250
280
|
labelProps,
|
|
251
|
-
className:
|
|
252
|
-
tabIndex:
|
|
253
|
-
children:
|
|
281
|
+
className: t12,
|
|
282
|
+
tabIndex: t13,
|
|
283
|
+
children: t29
|
|
254
284
|
});
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
} else
|
|
264
|
-
let
|
|
265
|
-
if ($[
|
|
266
|
-
|
|
285
|
+
$[78] = T1;
|
|
286
|
+
$[79] = as;
|
|
287
|
+
$[80] = formFieldProps;
|
|
288
|
+
$[81] = labelProps;
|
|
289
|
+
$[82] = t12;
|
|
290
|
+
$[83] = t13;
|
|
291
|
+
$[84] = t29;
|
|
292
|
+
$[85] = t30;
|
|
293
|
+
} else t30 = $[85];
|
|
294
|
+
let t31;
|
|
295
|
+
if ($[86] !== T0 || $[87] !== fieldProps || $[88] !== handleChange || $[89] !== isDisabled || $[90] !== isRequired || $[91] !== onBlur || $[92] !== ref || $[93] !== resolvedDefaultValue || $[94] !== resolvedValue || $[95] !== rest || $[96] !== t30 || $[97] !== t7 || $[98] !== t8 || $[99] !== t9) {
|
|
296
|
+
t31 = /* @__PURE__ */ jsx(T0, {
|
|
267
297
|
...rest,
|
|
268
298
|
...fieldProps,
|
|
269
299
|
ref,
|
|
270
|
-
value,
|
|
271
|
-
defaultValue,
|
|
300
|
+
value: resolvedValue,
|
|
301
|
+
defaultValue: resolvedDefaultValue,
|
|
272
302
|
onChange: handleChange,
|
|
273
303
|
onBlur,
|
|
274
304
|
isDisabled,
|
|
275
|
-
isInvalid:
|
|
305
|
+
isInvalid: t7,
|
|
276
306
|
isRequired,
|
|
277
|
-
"data-is-dirty":
|
|
278
|
-
"data-is-required":
|
|
279
|
-
className:
|
|
280
|
-
children:
|
|
307
|
+
"data-is-dirty": t8,
|
|
308
|
+
"data-is-required": t9,
|
|
309
|
+
className: t10,
|
|
310
|
+
children: t30
|
|
281
311
|
});
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
} else
|
|
298
|
-
return
|
|
312
|
+
$[86] = T0;
|
|
313
|
+
$[87] = fieldProps;
|
|
314
|
+
$[88] = handleChange;
|
|
315
|
+
$[89] = isDisabled;
|
|
316
|
+
$[90] = isRequired;
|
|
317
|
+
$[91] = onBlur;
|
|
318
|
+
$[92] = ref;
|
|
319
|
+
$[93] = resolvedDefaultValue;
|
|
320
|
+
$[94] = resolvedValue;
|
|
321
|
+
$[95] = rest;
|
|
322
|
+
$[96] = t30;
|
|
323
|
+
$[97] = t7;
|
|
324
|
+
$[98] = t8;
|
|
325
|
+
$[99] = t9;
|
|
326
|
+
$[100] = t31;
|
|
327
|
+
} else t31 = $[100];
|
|
328
|
+
return t31;
|
|
299
329
|
};
|
|
300
330
|
var CheckboxGroup$1 = (props) => {
|
|
301
331
|
const $ = c(15);
|
|
@@ -359,5 +389,8 @@ var CheckboxGroup$1 = (props) => {
|
|
|
359
389
|
} else t0 = $[14];
|
|
360
390
|
return t0;
|
|
361
391
|
};
|
|
392
|
+
function _temp(option) {
|
|
393
|
+
return option.value;
|
|
394
|
+
}
|
|
362
395
|
//#endregion
|
|
363
396
|
export { CheckboxGroup$1 as CheckboxGroup };
|
|
@@ -25,6 +25,7 @@ interface DateRangePickerBaseProps extends FormFieldProps, InputVariantProps, Om
|
|
|
25
25
|
inputClassName?: string;
|
|
26
26
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
27
27
|
fireBlurOnChange?: boolean;
|
|
28
|
+
allowPartialRange?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export interface DateRangePickerProps extends Omit<DateRangePickerBaseProps, "value" | "onChange" | "minValue" | "maxValue"> {
|
|
30
31
|
value?: {
|