@vygruppen/spor-react 12.24.6 → 12.24.7
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +9 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +9 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/datepicker/CalendarTriggerButton.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +1 -1
- package/src/input/Autocomplete.tsx +4 -9
package/dist/index.d.cts
CHANGED
|
@@ -1286,7 +1286,7 @@ type Props = {
|
|
|
1286
1286
|
emptyLabel?: React__default.ReactNode;
|
|
1287
1287
|
openOnFocus?: boolean;
|
|
1288
1288
|
} & Omit<ComboboxRootProps, "collection"> & FieldProps;
|
|
1289
|
-
declare const Autocomplete: ({ variant, children, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, openOnClick, openOnFocus, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
1289
|
+
declare const Autocomplete: ({ variant, children, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
1290
1290
|
declare const AutocompleteItemGroup: React__default.ForwardRefExoticComponent<Combobox$1.ItemGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1291
1291
|
declare const AutocompleteItemGroupLabel: React__default.ForwardRefExoticComponent<_chakra_ui_react.ComboboxItemGroupLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1292
1292
|
declare const AutocompleteItem: React__default.ForwardRefExoticComponent<Combobox$1.ItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1286,7 +1286,7 @@ type Props = {
|
|
|
1286
1286
|
emptyLabel?: React__default.ReactNode;
|
|
1287
1287
|
openOnFocus?: boolean;
|
|
1288
1288
|
} & Omit<ComboboxRootProps, "collection"> & FieldProps;
|
|
1289
|
-
declare const Autocomplete: ({ variant, children, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, openOnClick, openOnFocus, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
1289
|
+
declare const Autocomplete: ({ variant, children, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
1290
1290
|
declare const AutocompleteItemGroup: React__default.ForwardRefExoticComponent<Combobox$1.ItemGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1291
1291
|
declare const AutocompleteItemGroupLabel: React__default.ForwardRefExoticComponent<_chakra_ui_react.ComboboxItemGroupLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1292
1292
|
declare const AutocompleteItem: React__default.ForwardRefExoticComponent<Combobox$1.ItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
package/dist/index.mjs
CHANGED
|
@@ -2292,7 +2292,7 @@ var CalendarTriggerButton = forwardRef(({ variant, disabled, onPress: _, ...butt
|
|
|
2292
2292
|
key: "datePicker"
|
|
2293
2293
|
});
|
|
2294
2294
|
const styles = recipe({ variant });
|
|
2295
|
-
return /* @__PURE__ */ jsx(PopoverAnchor, { ...buttonProps, ref, children: /* @__PURE__ */ jsx(
|
|
2295
|
+
return /* @__PURE__ */ jsx(PopoverAnchor, { ...buttonProps, ref, asChild: true, children: /* @__PURE__ */ jsx(
|
|
2296
2296
|
IconButton,
|
|
2297
2297
|
{
|
|
2298
2298
|
icon: /* @__PURE__ */ jsx(CalendarOutline24Icon, {}),
|
|
@@ -2341,7 +2341,7 @@ var DateTimeSegment = forwardRef(
|
|
|
2341
2341
|
borderRadius: "xs",
|
|
2342
2342
|
fontSize: ["mobile.sm", "desktop.sm"],
|
|
2343
2343
|
css: styles.dateTimeSegment,
|
|
2344
|
-
"aria-
|
|
2344
|
+
"aria-label": ariaDescription,
|
|
2345
2345
|
"aria-labelledby": ariaLabel,
|
|
2346
2346
|
children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
|
|
2347
2347
|
}
|
|
@@ -3306,6 +3306,7 @@ var Autocomplete = ({
|
|
|
3306
3306
|
loading,
|
|
3307
3307
|
disabled,
|
|
3308
3308
|
emptyLabel,
|
|
3309
|
+
onFocus,
|
|
3309
3310
|
openOnClick = true,
|
|
3310
3311
|
openOnFocus = true,
|
|
3311
3312
|
...rest
|
|
@@ -3361,7 +3362,8 @@ var Autocomplete = ({
|
|
|
3361
3362
|
helperText,
|
|
3362
3363
|
errorText,
|
|
3363
3364
|
required,
|
|
3364
|
-
onFocus: () => {
|
|
3365
|
+
onFocus: (event) => {
|
|
3366
|
+
onFocus == null ? void 0 : onFocus(event);
|
|
3365
3367
|
if (openOnFocus)
|
|
3366
3368
|
combobox.setOpen(true);
|
|
3367
3369
|
}
|
|
@@ -3369,20 +3371,10 @@ var Autocomplete = ({
|
|
|
3369
3371
|
) }),
|
|
3370
3372
|
/* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs" }) }) })
|
|
3371
3373
|
] }),
|
|
3372
|
-
/* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(
|
|
3373
|
-
Combobox.
|
|
3374
|
-
{
|
|
3375
|
-
|
|
3376
|
-
if (!event.currentTarget.contains(event.relatedTarget)) {
|
|
3377
|
-
combobox.setOpen(false);
|
|
3378
|
-
}
|
|
3379
|
-
},
|
|
3380
|
-
children: [
|
|
3381
|
-
/* @__PURE__ */ jsx(Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
|
|
3382
|
-
loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsx(Fragment, { children: filteredChildren })
|
|
3383
|
-
]
|
|
3384
|
-
}
|
|
3385
|
-
) })
|
|
3374
|
+
/* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [
|
|
3375
|
+
/* @__PURE__ */ jsx(Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
|
|
3376
|
+
loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsx(Fragment, { children: filteredChildren })
|
|
3377
|
+
] }) })
|
|
3386
3378
|
] });
|
|
3387
3379
|
};
|
|
3388
3380
|
var AutocompleteItemGroup = Combobox.ItemGroup;
|