@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.24.6 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.24.7 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -11,18 +11,18 @@
11
11
  ESM Build start
12
12
  CJS Build start
13
13
  DTS Build start
14
- CJS dist/index.cjs 355.97 KB
14
+ CJS dist/index.cjs 355.85 KB
15
15
  CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/index.cjs.map 701.87 KB
17
16
  CJS dist/icons/index.cjs.map 157.00 B
18
- CJS ⚡️ Build success in 2437ms
19
- ESM dist/index.mjs 331.80 KB
17
+ CJS dist/index.cjs.map 701.54 KB
18
+ CJS ⚡️ Build success in 2891ms
20
19
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 701.87 KB
20
+ ESM dist/index.mjs 331.68 KB
22
21
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2439ms
24
- DTS ⚡️ Build success in 20232ms
22
+ ESM dist/index.mjs.map 701.54 KB
23
+ ESM ⚡️ Build success in 2892ms
24
+ DTS ⚡️ Build success in 21602ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 147.46 KB
26
+ DTS dist/index.d.ts 147.47 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 147.46 KB
28
+ DTS dist/index.d.cts 147.47 KB
@@ -1,8 +1,8 @@
1
1
 
2
- > @vygruppen/spor-react@12.24.6 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.24.7 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
- [dotenv@17.3.1] injecting env (0) from .env -- tip: 🛠️ run anywhere with `dotenvx run -- yourcommand`
5
+ [dotenv@17.3.1] injecting env (0) from .env -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' }
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
8
  ◒ Generating conditions types...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.24.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 17c0938: Ensure onFocus is passed to Autocomplete
8
+
3
9
  ## 12.24.6
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2312,7 +2312,7 @@ var CalendarTriggerButton = React20.forwardRef(({ variant, disabled, onPress: _,
2312
2312
  key: "datePicker"
2313
2313
  });
2314
2314
  const styles = recipe({ variant });
2315
- return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverAnchor, { ...buttonProps, ref, children: /* @__PURE__ */ jsxRuntime.jsx(
2315
+ return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverAnchor, { ...buttonProps, ref, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
2316
2316
  IconButton,
2317
2317
  {
2318
2318
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CalendarOutline24Icon, {}),
@@ -2361,7 +2361,7 @@ var DateTimeSegment = React20.forwardRef(
2361
2361
  borderRadius: "xs",
2362
2362
  fontSize: ["mobile.sm", "desktop.sm"],
2363
2363
  css: styles.dateTimeSegment,
2364
- "aria-description": ariaDescription,
2364
+ "aria-label": ariaDescription,
2365
2365
  "aria-labelledby": ariaLabel,
2366
2366
  children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
2367
2367
  }
@@ -3326,6 +3326,7 @@ var Autocomplete = ({
3326
3326
  loading,
3327
3327
  disabled,
3328
3328
  emptyLabel,
3329
+ onFocus,
3329
3330
  openOnClick = true,
3330
3331
  openOnFocus = true,
3331
3332
  ...rest
@@ -3381,7 +3382,8 @@ var Autocomplete = ({
3381
3382
  helperText,
3382
3383
  errorText,
3383
3384
  required,
3384
- onFocus: () => {
3385
+ onFocus: (event) => {
3386
+ onFocus == null ? void 0 : onFocus(event);
3385
3387
  if (openOnFocus)
3386
3388
  combobox.setOpen(true);
3387
3389
  }
@@ -3389,20 +3391,10 @@ var Autocomplete = ({
3389
3391
  ) }),
3390
3392
  /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs" }) }) })
3391
3393
  ] }),
3392
- /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(
3393
- react.Combobox.Content,
3394
- {
3395
- onBlur: (event) => {
3396
- if (!event.currentTarget.contains(event.relatedTarget)) {
3397
- combobox.setOpen(false);
3398
- }
3399
- },
3400
- children: [
3401
- /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
3402
- loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredChildren })
3403
- ]
3404
- }
3405
- ) })
3394
+ /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
3395
+ /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
3396
+ loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredChildren })
3397
+ ] }) })
3406
3398
  ] });
3407
3399
  };
3408
3400
  var AutocompleteItemGroup = react.Combobox.ItemGroup;