@vygruppen/spor-react 12.12.1 → 12.13.0

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.12.1 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.13.0 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 @@ CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
13
  DTS Build start
14
- CJS dist/index.cjs 315.53 KB
15
- CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/icons/index.cjs.map 157.00 B
17
- CJS dist/index.cjs.map 630.24 KB
18
- CJS ⚡️ Build success in 2643ms
19
- ESM dist/index.mjs 294.12 KB
14
+ ESM dist/index.mjs 293.92 KB
20
15
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 630.24 KB
22
16
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2644ms
24
- DTS ⚡️ Build success in 18852ms
17
+ ESM dist/index.mjs.map 629.73 KB
18
+ ESM ⚡️ Build success in 2545ms
19
+ CJS dist/index.cjs 315.32 KB
20
+ CJS dist/icons/index.cjs 381.00 B
21
+ CJS dist/icons/index.cjs.map 157.00 B
22
+ CJS dist/index.cjs.map 629.73 KB
23
+ CJS ⚡️ Build success in 2546ms
24
+ DTS ⚡️ Build success in 18331ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 156.18 KB
26
+ DTS dist/index.d.ts 156.05 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 156.18 KB
28
+ DTS dist/index.d.cts 156.05 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.12.1 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.13.0 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7ee3d63: Update design for NumericStepper, disable not hide buttons.
8
+
9
+ ### Patch Changes
10
+
11
+ - 39d7fd8: Fix floating button use floating background.
12
+
3
13
  ## 12.12.1
4
14
 
5
15
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -3048,7 +3048,6 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
3048
3048
  disabled,
3049
3049
  withInput = true,
3050
3050
  stepSize = 1,
3051
- showZero = false,
3052
3051
  ariaLabelContext = { singular: "", plural: "" },
3053
3052
  ...rest
3054
3053
  } = props;
@@ -3083,8 +3082,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
3083
3082
  focusOnAddButton();
3084
3083
  }
3085
3084
  },
3086
- visibility: value <= minValue ? "hidden" : "visible",
3087
- disabled,
3085
+ disabled: disabled || value <= minValue,
3088
3086
  id: value <= minValue ? void 0 : idProp
3089
3087
  }
3090
3088
  ),
@@ -3096,10 +3094,9 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
3096
3094
  name: nameProp,
3097
3095
  value,
3098
3096
  disabled,
3099
- id: !showZero && value === 0 ? void 0 : idProp,
3097
+ id: value === 0 ? void 0 : idProp,
3100
3098
  css: styles.input,
3101
3099
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
3102
- visibility: !showZero && value === 0 ? "hidden" : "visible",
3103
3100
  "aria-live": "assertive",
3104
3101
  "aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
3105
3102
  onChange: (e) => {
@@ -3108,7 +3105,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
3108
3105
  return;
3109
3106
  }
3110
3107
  onChange(Math.max(Math.min(numericInput, maxValue), minValue));
3111
- if (!showZero && Math.max(Math.min(numericInput, maxValue), minValue) === 0) {
3108
+ if (Math.max(Math.min(numericInput, maxValue), minValue) === 0) {
3112
3109
  focusOnAddButton();
3113
3110
  }
3114
3111
  }
@@ -3116,7 +3113,6 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
3116
3113
  ) : /* @__PURE__ */ jsxRuntime.jsx(
3117
3114
  Text3,
3118
3115
  {
3119
- visibility: !showZero && value === 0 ? "hidden" : "visible",
3120
3116
  "aria-live": "assertive",
3121
3117
  paddingX: "0.95rem",
3122
3118
  "aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
@@ -3135,8 +3131,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
3135
3131
  )
3136
3132
  ),
3137
3133
  onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
3138
- visibility: value >= maxValue ? "hidden" : "visible",
3139
- disabled,
3134
+ disabled: disabled || value >= maxValue,
3140
3135
  id: value >= maxValue ? void 0 : idProp
3141
3136
  }
3142
3137
  )
@@ -5518,6 +5513,7 @@ var buttonRecipe = react.defineRecipe({
5518
5513
  },
5519
5514
  floating: {
5520
5515
  color: "floating.text",
5516
+ background: "floating.surface",
5521
5517
  border: "sm",
5522
5518
  borderColor: "floating.outline",
5523
5519
  boxShadow: "0px 1px 3px 0px var(--spor-colors-surface-disabled, rgba(0, 0, 0, 0.10))",