@vygruppen/spor-react 12.24.6 → 12.24.8

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.8 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 356.25 KB
15
15
  CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/index.cjs.map 701.87 KB
16
+ CJS dist/index.cjs.map 702.33 KB
17
17
  CJS dist/icons/index.cjs.map 157.00 B
18
- CJS ⚡️ Build success in 2437ms
19
- ESM dist/index.mjs 331.80 KB
18
+ CJS ⚡️ Build success in 2885ms
20
19
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 701.87 KB
20
+ ESM dist/index.mjs 332.08 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 702.33 KB
23
+ ESM ⚡️ Build success in 2885ms
24
+ DTS ⚡️ Build success in 21486ms
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.64 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.64 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.8 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: ⚙️ suppress all logs with { quiet: true }
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
8
  ◒ Generating conditions types...
@@ -13,7 +13,8 @@
13
13
  [?25h[?25l│
14
14
  ◇ ✅ Generated utility typings
15
15
  [?25h[?25l│
16
- ◇ Generated token typings
16
+ ◒ Generating token types...
17
+ ◇ ✅ Generated token typings
17
18
  [?25h[?25l│
18
19
  ◒ Generating system types...
19
20
  ◇ ✅ Generated system types
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.24.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 65d79ba: add padding to numeric stepper when stepSize is visible
8
+ - e83b70a: improve the support of voiceover for RadioCards
9
+ - @vygruppen/spor-icon-react@4.5.2
10
+
11
+ ## 12.24.7
12
+
13
+ ### Patch Changes
14
+
15
+ - 17c0938: Ensure onFocus is passed to Autocomplete
16
+
3
17
  ## 12.24.6
4
18
 
5
19
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1523,10 +1523,17 @@ var PressableCard = React20.forwardRef(
1523
1523
  PressableCard.displayName = "PressableCard";
1524
1524
  var RadioCard = React20.forwardRef(
1525
1525
  (props, ref) => {
1526
- const { inputProps, children } = props;
1526
+ const { inputProps, children, value } = props;
1527
1527
  return /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Item, { ...props, children: [
1528
- /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemHiddenInput, { ref, ...inputProps }),
1529
- /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemControl, { children })
1528
+ /* @__PURE__ */ jsxRuntime.jsx(
1529
+ react.RadioCard.ItemHiddenInput,
1530
+ {
1531
+ ref,
1532
+ ...inputProps,
1533
+ "aria-label": value
1534
+ }
1535
+ ),
1536
+ /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemControl, { "aria-hidden": value ? true : false, children })
1530
1537
  ] });
1531
1538
  }
1532
1539
  );
@@ -2312,7 +2319,7 @@ var CalendarTriggerButton = React20.forwardRef(({ variant, disabled, onPress: _,
2312
2319
  key: "datePicker"
2313
2320
  });
2314
2321
  const styles = recipe({ variant });
2315
- return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverAnchor, { ...buttonProps, ref, children: /* @__PURE__ */ jsxRuntime.jsx(
2322
+ return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverAnchor, { ...buttonProps, ref, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
2316
2323
  IconButton,
2317
2324
  {
2318
2325
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CalendarOutline24Icon, {}),
@@ -2361,7 +2368,7 @@ var DateTimeSegment = React20.forwardRef(
2361
2368
  borderRadius: "xs",
2362
2369
  fontSize: ["mobile.sm", "desktop.sm"],
2363
2370
  css: styles.dateTimeSegment,
2364
- "aria-description": ariaDescription,
2371
+ "aria-label": ariaDescription,
2365
2372
  "aria-labelledby": ariaLabel,
2366
2373
  children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
2367
2374
  }
@@ -3326,6 +3333,7 @@ var Autocomplete = ({
3326
3333
  loading,
3327
3334
  disabled,
3328
3335
  emptyLabel,
3336
+ onFocus,
3329
3337
  openOnClick = true,
3330
3338
  openOnFocus = true,
3331
3339
  ...rest
@@ -3381,7 +3389,8 @@ var Autocomplete = ({
3381
3389
  helperText,
3382
3390
  errorText,
3383
3391
  required,
3384
- onFocus: () => {
3392
+ onFocus: (event) => {
3393
+ onFocus == null ? void 0 : onFocus(event);
3385
3394
  if (openOnFocus)
3386
3395
  combobox.setOpen(true);
3387
3396
  }
@@ -3389,20 +3398,10 @@ var Autocomplete = ({
3389
3398
  ) }),
3390
3399
  /* @__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
3400
  ] }),
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
- ) })
3401
+ /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
3402
+ /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: !loading && (emptyLabel ?? t(texts14.noItemsFound)) }),
3403
+ loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredChildren })
3404
+ ] }) })
3406
3405
  ] });
3407
3406
  };
3408
3407
  var AutocompleteItemGroup = react.Combobox.ItemGroup;
@@ -4068,7 +4067,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
4068
4067
  focusOnAddButton();
4069
4068
  }
4070
4069
  },
4071
- disabled: disabled || value <= minValue
4070
+ disabled: disabled || value <= minValue,
4071
+ withStepLabel: stepSize != 1
4072
4072
  }
4073
4073
  ),
4074
4074
  withInput ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -4117,7 +4117,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
4117
4117
  )
4118
4118
  ),
4119
4119
  onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
4120
- disabled: disabled || value >= maxValue
4120
+ disabled: disabled || value >= maxValue,
4121
+ withStepLabel: stepSize != 1
4121
4122
  }
4122
4123
  )
4123
4124
  ]
@@ -4126,8 +4127,9 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
4126
4127
  });
4127
4128
  NumericStepper.displayName = "NumericStepper";
4128
4129
  var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
4130
+ const { withStepLabel = false, ...rest } = props;
4129
4131
  const recipe = react.useSlotRecipe({ key: "numericStepper" });
4130
- const styles = recipe({ colorPalette: "default" });
4132
+ const styles = recipe({ withStepLabel });
4131
4133
  return /* @__PURE__ */ jsxRuntime.jsx(
4132
4134
  IconButton,
4133
4135
  {
@@ -4135,7 +4137,7 @@ var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
4135
4137
  size: "xs",
4136
4138
  css: styles.button,
4137
4139
  ref,
4138
- ...props
4140
+ ...rest
4139
4141
  }
4140
4142
  );
4141
4143
  });
@@ -9839,6 +9841,16 @@ var numericStepperRecipe = react.defineSlotRecipe({
9839
9841
  height: "1.2rem"
9840
9842
  }
9841
9843
  }
9844
+ },
9845
+ variants: {
9846
+ withStepLabel: {
9847
+ true: {
9848
+ button: {
9849
+ paddingInline: "1 !important"
9850
+ }
9851
+ },
9852
+ false: {}
9853
+ }
9842
9854
  }
9843
9855
  });
9844
9856
  var paginationSlotRecipe = react.defineSlotRecipe({