@vygruppen/spor-react 12.24.7 → 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.7 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.85 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 702.33 KB
16
17
  CJS dist/icons/index.cjs.map 157.00 B
17
- CJS dist/index.cjs.map 701.54 KB
18
- CJS ⚡️ Build success in 2891ms
18
+ CJS ⚡️ Build success in 2885ms
19
19
  ESM dist/icons/index.mjs 110.00 B
20
- ESM dist/index.mjs 331.68 KB
20
+ ESM dist/index.mjs 332.08 KB
21
21
  ESM dist/icons/index.mjs.map 157.00 B
22
- ESM dist/index.mjs.map 701.54 KB
23
- ESM ⚡️ Build success in 2892ms
24
- DTS ⚡️ Build success in 21602ms
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.47 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.47 KB
28
+ DTS dist/index.d.cts 147.64 KB
@@ -1,8 +1,8 @@
1
1
 
2
- > @vygruppen/spor-react@12.24.7 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: ⚙️ specify custom .env file path with { path: '/custom/path/.env' }
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,13 @@
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
+
3
11
  ## 12.24.7
4
12
 
5
13
  ### 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
  );
@@ -4060,7 +4067,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
4060
4067
  focusOnAddButton();
4061
4068
  }
4062
4069
  },
4063
- disabled: disabled || value <= minValue
4070
+ disabled: disabled || value <= minValue,
4071
+ withStepLabel: stepSize != 1
4064
4072
  }
4065
4073
  ),
4066
4074
  withInput ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -4109,7 +4117,8 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
4109
4117
  )
4110
4118
  ),
4111
4119
  onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
4112
- disabled: disabled || value >= maxValue
4120
+ disabled: disabled || value >= maxValue,
4121
+ withStepLabel: stepSize != 1
4113
4122
  }
4114
4123
  )
4115
4124
  ]
@@ -4118,8 +4127,9 @@ var NumericStepper = React20__namespace.default.forwardRef((props, ref) => {
4118
4127
  });
4119
4128
  NumericStepper.displayName = "NumericStepper";
4120
4129
  var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
4130
+ const { withStepLabel = false, ...rest } = props;
4121
4131
  const recipe = react.useSlotRecipe({ key: "numericStepper" });
4122
- const styles = recipe({ colorPalette: "default" });
4132
+ const styles = recipe({ withStepLabel });
4123
4133
  return /* @__PURE__ */ jsxRuntime.jsx(
4124
4134
  IconButton,
4125
4135
  {
@@ -4127,7 +4137,7 @@ var VerySmallButton = React20__namespace.default.forwardRef((props, ref) => {
4127
4137
  size: "xs",
4128
4138
  css: styles.button,
4129
4139
  ref,
4130
- ...props
4140
+ ...rest
4131
4141
  }
4132
4142
  );
4133
4143
  });
@@ -9831,6 +9841,16 @@ var numericStepperRecipe = react.defineSlotRecipe({
9831
9841
  height: "1.2rem"
9832
9842
  }
9833
9843
  }
9844
+ },
9845
+ variants: {
9846
+ withStepLabel: {
9847
+ true: {
9848
+ button: {
9849
+ paddingInline: "1 !important"
9850
+ }
9851
+ },
9852
+ false: {}
9853
+ }
9834
9854
  }
9835
9855
  });
9836
9856
  var paginationSlotRecipe = react.defineSlotRecipe({