@povio/ui 2.3.0-rc.29 → 2.3.0-rc.31

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.
@@ -199,6 +199,8 @@ var DatePickerBase = (props) => {
199
199
  as,
200
200
  groupProps,
201
201
  fieldProps,
202
+ fieldValue: normalizedValue,
203
+ hasValue: normalizedValue != null,
202
204
  buttonProps,
203
205
  isDirty,
204
206
  isDisabled,
@@ -505,6 +505,9 @@ var DateRangePickerBase = (props) => {
505
505
  groupProps,
506
506
  fieldProps: startFieldProps,
507
507
  endFieldProps,
508
+ fieldValue: normalizedValue?.start ?? null,
509
+ endFieldValue: normalizedValue?.end ?? null,
510
+ hasValue: normalizedValue?.start != null || normalizedValue?.end != null,
508
511
  buttonProps,
509
512
  isDisabled,
510
513
  isInvalid: !!error,
@@ -196,6 +196,8 @@ var DateTimePickerBase = (props) => {
196
196
  onInputBlur(e_0);
197
197
  }
198
198
  },
199
+ fieldValue: normalizedValue,
200
+ hasValue: normalizedValue != null,
199
201
  buttonProps,
200
202
  isDirty,
201
203
  isDisabled,
@@ -12,6 +12,9 @@ interface DatePickerInputProps extends InputVariantProps {
12
12
  groupProps: DatePickerAria["groupProps"];
13
13
  fieldProps: DatePickerAria["fieldProps"];
14
14
  endFieldProps?: DatePickerAria["fieldProps"];
15
+ fieldValue?: DatePickerAria["fieldProps"]["value"];
16
+ endFieldValue?: DatePickerAria["fieldProps"]["value"];
17
+ hasValue?: boolean;
15
18
  buttonProps: DatePickerAria["buttonProps"];
16
19
  isDisabled?: boolean;
17
20
  isInvalid?: boolean;
@@ -36,5 +39,5 @@ interface DatePickerInputProps extends InputVariantProps {
36
39
  fireBlurOnChange?: boolean;
37
40
  onClear?: () => void;
38
41
  }
39
- export declare const DatePickerInput: ({ ref, as, groupProps, fieldProps, endFieldProps, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, todayIconButtonSize, todayIconPlacement, isDirty, isRequired, disableManualEntry, autoFixYear, placeholder, className, onOpenDropdown, dateGranularity, timeZone, isTimeOptional, format, fireBlurOnChange, onClear: onClearProp, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
42
+ export declare const DatePickerInput: ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, todayIconButtonSize, todayIconPlacement, isDirty, isRequired, disableManualEntry, autoFixYear, placeholder, className, onOpenDropdown, dateGranularity, timeZone, isTimeOptional, format, fireBlurOnChange, onClear: onClearProp, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
40
43
  export {};
@@ -18,8 +18,8 @@ import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
18
18
  import { today } from "@internationalized/date";
19
19
  //#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
20
20
  var DatePickerInput = (t0) => {
21
- const $ = c(99);
22
- const { ref, as, groupProps, fieldProps, endFieldProps, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, todayIconButtonSize: t1, todayIconPlacement: t2, isDirty, isRequired, disableManualEntry, autoFixYear: t3, placeholder, className, onOpenDropdown, dateGranularity: t4, timeZone, isTimeOptional: t5, format, fireBlurOnChange, onClear: onClearProp, ...props } = t0;
21
+ const $ = c(106);
22
+ const { ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, todayIconButtonSize: t1, todayIconPlacement: t2, isDirty, isRequired, disableManualEntry, autoFixYear: t3, placeholder, className, onOpenDropdown, dateGranularity: t4, timeZone, isTimeOptional: t5, format, fireBlurOnChange, onClear: onClearProp, ...props } = t0;
23
23
  const todayIconButtonSize = t1 === void 0 ? "none" : t1;
24
24
  const todayIconPlacement = t2 === void 0 ? "content" : t2;
25
25
  const autoFixYear = t3 === void 0 ? false : t3;
@@ -56,9 +56,32 @@ var DatePickerInput = (t0) => {
56
56
  const dateFieldRef = useRef(null);
57
57
  const endDateFieldRef = useRef(null);
58
58
  const containerRef = useRef(null);
59
- let t8;
60
- if ($[4] !== endFieldProps || $[5] !== fieldProps || $[6] !== fireBlurOnChange || $[7] !== onClearProp) {
61
- t8 = () => {
59
+ const t8 = fieldValue !== void 0 ? fieldValue : fieldProps.value ?? null;
60
+ let t9;
61
+ if ($[4] !== fieldProps || $[5] !== t8) {
62
+ t9 = {
63
+ ...fieldProps,
64
+ value: t8
65
+ };
66
+ $[4] = fieldProps;
67
+ $[5] = t8;
68
+ $[6] = t9;
69
+ } else t9 = $[6];
70
+ const normalizedFieldProps = t9;
71
+ let t10;
72
+ if ($[7] !== endFieldProps || $[8] !== endFieldValue) {
73
+ t10 = endFieldProps ? {
74
+ ...endFieldProps,
75
+ value: endFieldValue !== void 0 ? endFieldValue : endFieldProps.value ?? null
76
+ } : void 0;
77
+ $[7] = endFieldProps;
78
+ $[8] = endFieldValue;
79
+ $[9] = t10;
80
+ } else t10 = $[9];
81
+ const normalizedEndFieldProps = t10;
82
+ let t11;
83
+ if ($[10] !== endFieldProps || $[11] !== fieldProps || $[12] !== fireBlurOnChange || $[13] !== onClearProp) {
84
+ t11 = () => {
62
85
  dateFieldRef.current?.clearField();
63
86
  endDateFieldRef.current?.clearField();
64
87
  fieldProps.onChange?.(null);
@@ -70,40 +93,41 @@ var DatePickerInput = (t0) => {
70
93
  }
71
94
  setCanClear(false);
72
95
  };
73
- $[4] = endFieldProps;
74
- $[5] = fieldProps;
75
- $[6] = fireBlurOnChange;
76
- $[7] = onClearProp;
77
- $[8] = t8;
78
- } else t8 = $[8];
79
- const clearInput = t8;
80
- let t10;
81
- let t9;
82
- if ($[9] !== clearInput) {
83
- t9 = () => ({
96
+ $[10] = endFieldProps;
97
+ $[11] = fieldProps;
98
+ $[12] = fireBlurOnChange;
99
+ $[13] = onClearProp;
100
+ $[14] = t11;
101
+ } else t11 = $[14];
102
+ const clearInput = t11;
103
+ let t12;
104
+ let t13;
105
+ if ($[15] !== clearInput) {
106
+ t12 = () => ({
84
107
  clear: clearInput,
85
108
  getContainer: () => containerRef.current
86
109
  });
87
- t10 = [clearInput];
88
- $[9] = clearInput;
89
- $[10] = t10;
90
- $[11] = t9;
110
+ t13 = [clearInput];
111
+ $[15] = clearInput;
112
+ $[16] = t12;
113
+ $[17] = t13;
91
114
  } else {
92
- t10 = $[10];
93
- t9 = $[11];
115
+ t12 = $[16];
116
+ t13 = $[17];
94
117
  }
95
- useImperativeHandle(ref, t9, t10);
96
- let t11;
97
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
98
- t11 = (canClearInput) => {
118
+ useImperativeHandle(ref, t12, t13);
119
+ let t14;
120
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
121
+ t14 = (canClearInput) => {
99
122
  setCanClear(canClearInput);
100
123
  };
101
- $[12] = t11;
102
- } else t11 = $[12];
103
- const onClearChange = t11;
104
- let t12;
105
- if ($[13] !== effectiveTimeZone || $[14] !== endFieldProps || $[15] !== fieldProps || $[16] !== fireBlurOnChange || $[17] !== isDateTime) {
106
- t12 = () => {
124
+ $[18] = t14;
125
+ } else t14 = $[18];
126
+ const onClearChange = t14;
127
+ const showClear = canClear || hasValue || normalizedFieldProps.value != null || normalizedEndFieldProps?.value != null;
128
+ let t15;
129
+ if ($[19] !== effectiveTimeZone || $[20] !== endFieldProps || $[21] !== fieldProps || $[22] !== fireBlurOnChange || $[23] !== isDateTime) {
130
+ t15 = () => {
107
131
  if (isDateTime) {
108
132
  const calendarDateTime = DateTimeUtils.getCurrentWallClockCalendarDateTime();
109
133
  fieldProps.onChange?.(calendarDateTime);
@@ -117,106 +141,106 @@ var DatePickerInput = (t0) => {
117
141
  endFieldProps?.onBlur?.(null);
118
142
  }
119
143
  };
120
- $[13] = effectiveTimeZone;
121
- $[14] = endFieldProps;
122
- $[15] = fieldProps;
123
- $[16] = fireBlurOnChange;
124
- $[17] = isDateTime;
125
- $[18] = t12;
126
- } else t12 = $[18];
127
- const onToday = t12;
144
+ $[19] = effectiveTimeZone;
145
+ $[20] = endFieldProps;
146
+ $[21] = fieldProps;
147
+ $[22] = fireBlurOnChange;
148
+ $[23] = isDateTime;
149
+ $[24] = t15;
150
+ } else t15 = $[24];
151
+ const onToday = t15;
128
152
  const hidePlaceholder = as === "floating" && !fieldProps.value && !isFocused;
129
- let t13;
130
- if ($[19] !== todayIcon) {
131
- t13 = getDatePickerTodayIcon(todayIcon);
132
- $[19] = todayIcon;
133
- $[20] = t13;
134
- } else t13 = $[20];
135
- const todayIconComponent = t13;
136
- let t14;
137
- if ($[21] !== onToday || $[22] !== todayIconButtonSize || $[23] !== todayIconComponent) {
138
- t14 = todayIconComponent ? /* @__PURE__ */ jsx(InlineIconButton, {
153
+ let t16;
154
+ if ($[25] !== todayIcon) {
155
+ t16 = getDatePickerTodayIcon(todayIcon);
156
+ $[25] = todayIcon;
157
+ $[26] = t16;
158
+ } else t16 = $[26];
159
+ const todayIconComponent = t16;
160
+ let t17;
161
+ if ($[27] !== onToday || $[28] !== todayIconButtonSize || $[29] !== todayIconComponent) {
162
+ t17 = todayIconComponent ? /* @__PURE__ */ jsx(InlineIconButton, {
139
163
  label: "",
140
164
  icon: todayIconComponent,
141
165
  size: todayIconButtonSize,
142
166
  onPress: onToday,
143
167
  className: "relative z-1 !border-none"
144
168
  }) : null;
145
- $[21] = onToday;
146
- $[22] = todayIconButtonSize;
147
- $[23] = todayIconComponent;
148
- $[24] = t14;
149
- } else t14 = $[24];
150
- const todayIconButton = t14;
169
+ $[27] = onToday;
170
+ $[28] = todayIconButtonSize;
171
+ $[29] = todayIconComponent;
172
+ $[30] = t17;
173
+ } else t17 = $[30];
174
+ const todayIconButton = t17;
151
175
  const shouldRenderTodayIconWithFieldLabel = todayIconPlacement === "fieldLabel";
152
176
  const pickerIcon = isDateTime ? uiConfig.dateInput.dateTimeIcon : uiConfig.dateInput.calendarIcon;
153
- const t15 = clsx("group/date-picker-content relative flex min-w-input-width-min-width items-center justify-between gap-2", inputBaseCva({
177
+ const t18 = clsx("group group/date-picker-content relative flex min-w-input-width-min-width items-center justify-between gap-2", groupProps.className, inputBaseCva({
154
178
  variant,
155
179
  as,
156
180
  ...props
157
181
  }), className);
158
- const t16 = isHovered || void 0;
159
- const t17 = isDisabled || void 0;
160
- const t18 = isDisabled || void 0;
161
- const t19 = isInvalid || void 0;
162
- const t20 = fieldProps.value == null || void 0;
163
- const t21 = isFocused || void 0;
164
- const t22 = isFocused && isFocusVisible || void 0;
165
- const t23 = fieldProps.value != null || void 0;
166
- const t24 = isDirty || void 0;
167
- const t25 = isRequired || void 0;
168
- const t26 = fieldProps.value != null || void 0;
169
- let t27;
170
- if ($[25] !== as || $[26] !== inputSizeCva || $[27] !== size) {
171
- t27 = clsx("flex w-full items-center gap-input-gap-input-text-to-elements pr-0!", inputSizeCva({
182
+ const t19 = isHovered || void 0;
183
+ const t20 = isDisabled || void 0;
184
+ const t21 = isDisabled || void 0;
185
+ const t22 = isInvalid || void 0;
186
+ const t23 = normalizedFieldProps.value == null || void 0;
187
+ const t24 = isFocused || void 0;
188
+ const t25 = isFocused && isFocusVisible || void 0;
189
+ const t26 = normalizedFieldProps.value != null || void 0;
190
+ const t27 = isDirty || void 0;
191
+ const t28 = isRequired || void 0;
192
+ const t29 = normalizedFieldProps.value != null || void 0;
193
+ let t30;
194
+ if ($[31] !== as || $[32] !== inputSizeCva || $[33] !== size) {
195
+ t30 = clsx("flex w-full items-center gap-input-gap-input-text-to-elements pr-0!", inputSizeCva({
172
196
  size,
173
197
  as
174
198
  }));
175
- $[25] = as;
176
- $[26] = inputSizeCva;
177
- $[27] = size;
178
- $[28] = t27;
179
- } else t27 = $[28];
180
- let t28;
181
- if ($[29] !== as || $[30] !== headerProps) {
182
- t28 = as && ["filter", "floating"].includes(as) && headerProps && /* @__PURE__ */ jsx(FormFieldLabel, {
183
- as,
184
- ...headerProps
185
- });
186
- $[29] = as;
187
- $[30] = headerProps;
188
- $[31] = t28;
189
- } else t28 = $[31];
190
- const t29 = shouldRenderTodayIconWithFieldLabel && todayIconButton;
191
- let t30;
192
- if ($[32] !== datePickerInputContentRowCva || $[33] !== size) {
193
- t30 = datePickerInputContentRowCva({ size });
194
- $[32] = datePickerInputContentRowCva;
199
+ $[31] = as;
200
+ $[32] = inputSizeCva;
195
201
  $[33] = size;
196
202
  $[34] = t30;
197
203
  } else t30 = $[34];
198
204
  let t31;
199
- if ($[35] !== disableManualEntry || $[36] !== isDisabled || $[37] !== onOpenDropdown) {
200
- t31 = disableManualEntry && /* @__PURE__ */ jsx(Button, {
205
+ if ($[35] !== as || $[36] !== headerProps) {
206
+ t31 = as && ["filter", "floating"].includes(as) && headerProps && /* @__PURE__ */ jsx(FormFieldLabel, {
207
+ as,
208
+ ...headerProps
209
+ });
210
+ $[35] = as;
211
+ $[36] = headerProps;
212
+ $[37] = t31;
213
+ } else t31 = $[37];
214
+ const t32 = shouldRenderTodayIconWithFieldLabel && todayIconButton;
215
+ let t33;
216
+ if ($[38] !== datePickerInputContentRowCva || $[39] !== size) {
217
+ t33 = datePickerInputContentRowCva({ size });
218
+ $[38] = datePickerInputContentRowCva;
219
+ $[39] = size;
220
+ $[40] = t33;
221
+ } else t33 = $[40];
222
+ let t34;
223
+ if ($[41] !== disableManualEntry || $[42] !== isDisabled || $[43] !== onOpenDropdown) {
224
+ t34 = disableManualEntry && /* @__PURE__ */ jsx(Button, {
201
225
  onPress: onOpenDropdown,
202
226
  className: "absolute inset-0 z-0",
203
227
  isDisabled
204
228
  });
205
- $[35] = disableManualEntry;
206
- $[36] = isDisabled;
207
- $[37] = onOpenDropdown;
208
- $[38] = t31;
209
- } else t31 = $[38];
210
- const t32 = !shouldRenderTodayIconWithFieldLabel && todayIconButton;
211
- let t33;
212
- if ($[39] !== as || $[40] !== dateGranularity || $[41] !== disableManualEntry || $[42] !== effectiveTimeZone || $[43] !== endFieldProps || $[44] !== fieldProps || $[45] !== format || $[46] !== hidePlaceholder || $[47] !== isDisabled || $[48] !== isInvalid || $[49] !== isTimeOptional || $[50] !== onClearChange || $[51] !== placeholder) {
213
- t33 = disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
229
+ $[41] = disableManualEntry;
230
+ $[42] = isDisabled;
231
+ $[43] = onOpenDropdown;
232
+ $[44] = t34;
233
+ } else t34 = $[44];
234
+ const t35 = !shouldRenderTodayIconWithFieldLabel && todayIconButton;
235
+ let t36;
236
+ if ($[45] !== as || $[46] !== dateGranularity || $[47] !== disableManualEntry || $[48] !== effectiveTimeZone || $[49] !== fieldProps.value || $[50] !== format || $[51] !== hidePlaceholder || $[52] !== isDisabled || $[53] !== isInvalid || $[54] !== isTimeOptional || $[55] !== normalizedEndFieldProps || $[56] !== normalizedFieldProps || $[57] !== onClearChange || $[58] !== placeholder) {
237
+ t36 = disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
214
238
  size: "label-1",
215
239
  className: "text-text-default-3",
216
240
  children: placeholder
217
241
  }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DateField, {
218
242
  ref: dateFieldRef,
219
- ...fieldProps,
243
+ ...normalizedFieldProps,
220
244
  isDisabled,
221
245
  isInvalid,
222
246
  onClearChange,
@@ -226,12 +250,12 @@ var DatePickerInput = (t0) => {
226
250
  isTimeOptional,
227
251
  format,
228
252
  timeZone: effectiveTimeZone
229
- }), endFieldProps && /* @__PURE__ */ jsxs(Fragment, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
253
+ }), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
230
254
  className: clsx("pointer-events-none select-none", isDisabled && "text-interactive-text-secondary-disabled"),
231
255
  children: "–"
232
256
  }), /* @__PURE__ */ jsx(DateField, {
233
257
  ref: endDateFieldRef,
234
- ...endFieldProps,
258
+ ...normalizedEndFieldProps,
235
259
  isDisabled,
236
260
  isInvalid,
237
261
  onClearChange,
@@ -241,78 +265,80 @@ var DatePickerInput = (t0) => {
241
265
  format,
242
266
  timeZone: effectiveTimeZone
243
267
  })] })] });
244
- $[39] = as;
245
- $[40] = dateGranularity;
246
- $[41] = disableManualEntry;
247
- $[42] = effectiveTimeZone;
248
- $[43] = endFieldProps;
249
- $[44] = fieldProps;
250
- $[45] = format;
251
- $[46] = hidePlaceholder;
252
- $[47] = isDisabled;
253
- $[48] = isInvalid;
254
- $[49] = isTimeOptional;
255
- $[50] = onClearChange;
256
- $[51] = placeholder;
257
- $[52] = t33;
258
- } else t33 = $[52];
259
- let t34;
260
- if ($[53] !== t30 || $[54] !== t31 || $[55] !== t32 || $[56] !== t33) {
261
- t34 = /* @__PURE__ */ jsxs("div", {
262
- className: t30,
268
+ $[45] = as;
269
+ $[46] = dateGranularity;
270
+ $[47] = disableManualEntry;
271
+ $[48] = effectiveTimeZone;
272
+ $[49] = fieldProps.value;
273
+ $[50] = format;
274
+ $[51] = hidePlaceholder;
275
+ $[52] = isDisabled;
276
+ $[53] = isInvalid;
277
+ $[54] = isTimeOptional;
278
+ $[55] = normalizedEndFieldProps;
279
+ $[56] = normalizedFieldProps;
280
+ $[57] = onClearChange;
281
+ $[58] = placeholder;
282
+ $[59] = t36;
283
+ } else t36 = $[59];
284
+ let t37;
285
+ if ($[60] !== t33 || $[61] !== t34 || $[62] !== t35 || $[63] !== t36) {
286
+ t37 = /* @__PURE__ */ jsxs("div", {
287
+ className: t33,
263
288
  children: [
264
- t31,
265
- t32,
266
- t33
289
+ t34,
290
+ t35,
291
+ t36
267
292
  ]
268
293
  });
269
- $[53] = t30;
270
- $[54] = t31;
271
- $[55] = t32;
272
- $[56] = t33;
273
- $[57] = t34;
274
- } else t34 = $[57];
275
- let t35;
276
- if ($[58] !== t27 || $[59] !== t28 || $[60] !== t29 || $[61] !== t34) {
277
- t35 = /* @__PURE__ */ jsxs("div", {
278
- className: t27,
294
+ $[60] = t33;
295
+ $[61] = t34;
296
+ $[62] = t35;
297
+ $[63] = t36;
298
+ $[64] = t37;
299
+ } else t37 = $[64];
300
+ let t38;
301
+ if ($[65] !== t30 || $[66] !== t31 || $[67] !== t32 || $[68] !== t37) {
302
+ t38 = /* @__PURE__ */ jsxs("div", {
303
+ className: t30,
279
304
  children: [
280
- t28,
281
- t29,
282
- t34
305
+ t31,
306
+ t32,
307
+ t37
283
308
  ]
284
309
  });
285
- $[58] = t27;
286
- $[59] = t28;
287
- $[60] = t29;
288
- $[61] = t34;
289
- $[62] = t35;
290
- } else t35 = $[62];
291
- let t36;
292
- if ($[63] !== as || $[64] !== inputSizeCva || $[65] !== size) {
293
- t36 = clsx(inputSizeCva({
310
+ $[65] = t30;
311
+ $[66] = t31;
312
+ $[67] = t32;
313
+ $[68] = t37;
314
+ $[69] = t38;
315
+ } else t38 = $[69];
316
+ let t39;
317
+ if ($[70] !== as || $[71] !== inputSizeCva || $[72] !== size) {
318
+ t39 = clsx(inputSizeCva({
294
319
  size,
295
320
  as
296
321
  }), "flex items-center gap-input-gap-trailing-elements py-0! pl-0!");
297
- $[63] = as;
298
- $[64] = inputSizeCva;
299
- $[65] = size;
300
- $[66] = t36;
301
- } else t36 = $[66];
302
- let t37;
303
- if ($[67] !== canClear || $[68] !== clearInput || $[69] !== isClearable) {
304
- t37 = isClearable && /* @__PURE__ */ jsx(InputClear, {
322
+ $[70] = as;
323
+ $[71] = inputSizeCva;
324
+ $[72] = size;
325
+ $[73] = t39;
326
+ } else t39 = $[73];
327
+ let t40;
328
+ if ($[74] !== clearInput || $[75] !== isClearable || $[76] !== showClear) {
329
+ t40 = isClearable && /* @__PURE__ */ jsx(InputClear, {
305
330
  onClear: clearInput,
306
- show: canClear
331
+ show: showClear,
332
+ style: showClear ? { visibility: "visible" } : void 0
307
333
  });
308
- $[67] = canClear;
309
- $[68] = clearInput;
310
- $[69] = isClearable;
311
- $[70] = t37;
312
- } else t37 = $[70];
313
- let t38;
314
- if ($[71] !== buttonProps || $[72] !== disableDropdown || $[73] !== disableManualEntry || $[74] !== isDisabled || $[75] !== pickerIcon) {
315
- t38 = (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(InlineIconButton, {
334
+ $[74] = clearInput;
335
+ $[75] = isClearable;
336
+ $[76] = showClear;
337
+ $[77] = t40;
338
+ } else t40 = $[77];
339
+ let t41;
340
+ if ($[78] !== buttonProps || $[79] !== disableDropdown || $[80] !== disableManualEntry || $[81] !== isDisabled || $[82] !== pickerIcon) {
341
+ t41 = (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(InlineIconButton, {
316
342
  label: "",
317
343
  color: "secondary",
318
344
  ...buttonProps,
@@ -320,67 +346,67 @@ var DatePickerInput = (t0) => {
320
346
  isDisabled,
321
347
  className: "border-0!"
322
348
  });
323
- $[71] = buttonProps;
324
- $[72] = disableDropdown;
325
- $[73] = disableManualEntry;
326
- $[74] = isDisabled;
327
- $[75] = pickerIcon;
328
- $[76] = t38;
329
- } else t38 = $[76];
330
- let t39;
331
- if ($[77] !== t36 || $[78] !== t37 || $[79] !== t38) {
332
- t39 = /* @__PURE__ */ jsxs("div", {
333
- className: t36,
334
- children: [t37, t38]
349
+ $[78] = buttonProps;
350
+ $[79] = disableDropdown;
351
+ $[80] = disableManualEntry;
352
+ $[81] = isDisabled;
353
+ $[82] = pickerIcon;
354
+ $[83] = t41;
355
+ } else t41 = $[83];
356
+ let t42;
357
+ if ($[84] !== t39 || $[85] !== t40 || $[86] !== t41) {
358
+ t42 = /* @__PURE__ */ jsxs("div", {
359
+ className: t39,
360
+ children: [t40, t41]
335
361
  });
336
- $[77] = t36;
337
- $[78] = t37;
338
- $[79] = t38;
339
- $[80] = t39;
340
- } else t39 = $[80];
341
- let t40;
342
- if ($[81] !== focusWithinProps || $[82] !== groupProps || $[83] !== hoverProps || $[84] !== t15 || $[85] !== t16 || $[86] !== t17 || $[87] !== t18 || $[88] !== t19 || $[89] !== t20 || $[90] !== t21 || $[91] !== t22 || $[92] !== t23 || $[93] !== t24 || $[94] !== t25 || $[95] !== t26 || $[96] !== t35 || $[97] !== t39) {
343
- t40 = /* @__PURE__ */ jsxs("div", {
362
+ $[84] = t39;
363
+ $[85] = t40;
364
+ $[86] = t41;
365
+ $[87] = t42;
366
+ } else t42 = $[87];
367
+ let t43;
368
+ if ($[88] !== focusWithinProps || $[89] !== groupProps || $[90] !== hoverProps || $[91] !== t18 || $[92] !== t19 || $[93] !== t20 || $[94] !== t21 || $[95] !== t22 || $[96] !== t23 || $[97] !== t24 || $[98] !== t25 || $[99] !== t26 || $[100] !== t27 || $[101] !== t28 || $[102] !== t29 || $[103] !== t38 || $[104] !== t42) {
369
+ t43 = /* @__PURE__ */ jsxs("div", {
344
370
  ref: containerRef,
345
- className: t15,
346
- "data-rac": "",
347
- "data-datetime-input": "",
348
- "data-hovered": t16,
349
- "data-disabled": t17,
350
- "data-is-disabled": t18,
351
- "data-invalid": t19,
352
- "data-is-empty": t20,
353
- "data-focus-within": t21,
354
- "data-focus-visible": t22,
355
- "data-has-selection": t23,
356
- "data-is-dirty": t24,
357
- "data-is-required": t25,
358
- "data-is-filled": t26,
359
371
  ...groupProps,
360
372
  ...focusWithinProps,
361
373
  ...hoverProps,
362
- children: [t35, t39]
374
+ className: t18,
375
+ "data-rac": "",
376
+ "data-datetime-input": "",
377
+ "data-hovered": t19,
378
+ "data-disabled": t20,
379
+ "data-is-disabled": t21,
380
+ "data-invalid": t22,
381
+ "data-is-empty": t23,
382
+ "data-focus-within": t24,
383
+ "data-focus-visible": t25,
384
+ "data-has-selection": t26,
385
+ "data-is-dirty": t27,
386
+ "data-is-required": t28,
387
+ "data-is-filled": t29,
388
+ children: [t38, t42]
363
389
  });
364
- $[81] = focusWithinProps;
365
- $[82] = groupProps;
366
- $[83] = hoverProps;
367
- $[84] = t15;
368
- $[85] = t16;
369
- $[86] = t17;
370
- $[87] = t18;
371
- $[88] = t19;
372
- $[89] = t20;
373
- $[90] = t21;
374
- $[91] = t22;
375
- $[92] = t23;
376
- $[93] = t24;
377
- $[94] = t25;
378
- $[95] = t26;
379
- $[96] = t35;
380
- $[97] = t39;
381
- $[98] = t40;
382
- } else t40 = $[98];
383
- return t40;
390
+ $[88] = focusWithinProps;
391
+ $[89] = groupProps;
392
+ $[90] = hoverProps;
393
+ $[91] = t18;
394
+ $[92] = t19;
395
+ $[93] = t20;
396
+ $[94] = t21;
397
+ $[95] = t22;
398
+ $[96] = t23;
399
+ $[97] = t24;
400
+ $[98] = t25;
401
+ $[99] = t26;
402
+ $[100] = t27;
403
+ $[101] = t28;
404
+ $[102] = t29;
405
+ $[103] = t38;
406
+ $[104] = t42;
407
+ $[105] = t43;
408
+ } else t43 = $[105];
409
+ return t43;
384
410
  };
385
411
  //#endregion
386
412
  export { DatePickerInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "2.3.0-rc.29",
3
+ "version": "2.3.0-rc.31",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",