@vygruppen/spor-react 12.12.1 → 12.13.1
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 +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +13 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.mjs +12 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/CountryCodeSelect.tsx +1 -1
- package/src/input/NumericStepper.tsx +4 -14
- package/src/input/Popover.tsx +8 -1
- package/src/theme/recipes/button.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.
|
2
|
+
> @vygruppen/spor-react@12.13.1 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.
|
14
|
+
CJS dist/index.cjs 315.62 KB
|
15
15
|
CJS dist/icons/index.cjs 381.00 B
|
16
|
+
CJS dist/index.cjs.map 630.07 KB
|
16
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
17
|
-
CJS
|
18
|
-
|
19
|
-
ESM dist/index.mjs 294.12 KB
|
18
|
+
CJS ⚡️ Build success in 2628ms
|
19
|
+
ESM dist/index.mjs 294.13 KB
|
20
20
|
ESM dist/icons/index.mjs 110.00 B
|
21
|
-
ESM dist/index.mjs.map 630.
|
21
|
+
ESM dist/index.mjs.map 630.07 KB
|
22
22
|
ESM dist/icons/index.mjs.map 157.00 B
|
23
|
-
ESM ⚡️ Build success in
|
24
|
-
DTS ⚡️ Build success in
|
23
|
+
ESM ⚡️ Build success in 2629ms
|
24
|
+
DTS ⚡️ Build success in 18484ms
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
26
|
-
DTS dist/index.d.ts 156.
|
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.
|
28
|
+
DTS dist/index.d.cts 156.05 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.13.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 63931d2: Remove casting SelectItem to option in phonenumber-input. Does not work in in Safari.
|
8
|
+
- 16807cd: Remove casting SelectItem to option in phonenumber-input. Does not work in in Safari.
|
9
|
+
- 699acdf: Fix changeset error
|
10
|
+
|
11
|
+
## 12.13.0
|
12
|
+
|
13
|
+
### Minor Changes
|
14
|
+
|
15
|
+
- 7ee3d63: Update design for NumericStepper, disable not hide buttons.
|
16
|
+
|
17
|
+
### Patch Changes
|
18
|
+
|
19
|
+
- 39d7fd8: Fix floating button use floating background.
|
20
|
+
|
3
21
|
## 12.12.1
|
4
22
|
|
5
23
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
@@ -13,6 +13,7 @@ var lu = require('react-icons/lu');
|
|
13
13
|
var reactStately = require('react-stately');
|
14
14
|
var date = require('@internationalized/date');
|
15
15
|
var reactSwipeable = require('react-swipeable');
|
16
|
+
var ReactDOM = require('react-dom');
|
16
17
|
var awesomePhonenumber = require('awesome-phonenumber');
|
17
18
|
var react$1 = require('@emotion/react');
|
18
19
|
var tokens23 = require('@vygruppen/spor-design-tokens');
|
@@ -43,6 +44,7 @@ function _interopNamespace(e) {
|
|
43
44
|
|
44
45
|
var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
|
45
46
|
var ReactLottie__default = /*#__PURE__*/_interopDefault(ReactLottie);
|
47
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);
|
46
48
|
var tokens23__namespace = /*#__PURE__*/_interopNamespace(tokens23);
|
47
49
|
var tokens4__default = /*#__PURE__*/_interopDefault(tokens4);
|
48
50
|
|
@@ -2580,6 +2582,8 @@ var Popover = React27.forwardRef(
|
|
2580
2582
|
...popoverProps,
|
2581
2583
|
ref: popoverRef,
|
2582
2584
|
minWidth: ((_a5 = triggerRef.current) == null ? void 0 : _a5.clientWidth) ?? "auto",
|
2585
|
+
position: "absolute",
|
2586
|
+
zIndex: 1400,
|
2583
2587
|
children: [
|
2584
2588
|
/* @__PURE__ */ jsxRuntime.jsx(reactAria.DismissButton, { onDismiss: state.close }),
|
2585
2589
|
children,
|
@@ -2588,6 +2592,9 @@ var Popover = React27.forwardRef(
|
|
2588
2592
|
}
|
2589
2593
|
);
|
2590
2594
|
if (isNonModal) {
|
2595
|
+
if (globalThis.window !== void 0 && typeof document !== "undefined") {
|
2596
|
+
return ReactDOM__default.default.createPortal(popoverBox, document.body);
|
2597
|
+
}
|
2591
2598
|
return popoverBox;
|
2592
2599
|
}
|
2593
2600
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactAria.Overlay, { children: [
|
@@ -3048,7 +3055,6 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3048
3055
|
disabled,
|
3049
3056
|
withInput = true,
|
3050
3057
|
stepSize = 1,
|
3051
|
-
showZero = false,
|
3052
3058
|
ariaLabelContext = { singular: "", plural: "" },
|
3053
3059
|
...rest
|
3054
3060
|
} = props;
|
@@ -3083,8 +3089,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3083
3089
|
focusOnAddButton();
|
3084
3090
|
}
|
3085
3091
|
},
|
3086
|
-
|
3087
|
-
disabled,
|
3092
|
+
disabled: disabled || value <= minValue,
|
3088
3093
|
id: value <= minValue ? void 0 : idProp
|
3089
3094
|
}
|
3090
3095
|
),
|
@@ -3096,10 +3101,9 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3096
3101
|
name: nameProp,
|
3097
3102
|
value,
|
3098
3103
|
disabled,
|
3099
|
-
id:
|
3104
|
+
id: value === 0 ? void 0 : idProp,
|
3100
3105
|
css: styles.input,
|
3101
3106
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
3102
|
-
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
3103
3107
|
"aria-live": "assertive",
|
3104
3108
|
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
|
3105
3109
|
onChange: (e) => {
|
@@ -3108,7 +3112,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3108
3112
|
return;
|
3109
3113
|
}
|
3110
3114
|
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
3111
|
-
if (
|
3115
|
+
if (Math.max(Math.min(numericInput, maxValue), minValue) === 0) {
|
3112
3116
|
focusOnAddButton();
|
3113
3117
|
}
|
3114
3118
|
}
|
@@ -3116,7 +3120,6 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3116
3120
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
3117
3121
|
Text3,
|
3118
3122
|
{
|
3119
|
-
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
3120
3123
|
"aria-live": "assertive",
|
3121
3124
|
paddingX: "0.95rem",
|
3122
3125
|
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
|
@@ -3135,8 +3138,7 @@ var NumericStepper = React27__namespace.default.forwardRef((props, ref) => {
|
|
3135
3138
|
)
|
3136
3139
|
),
|
3137
3140
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
3138
|
-
|
3139
|
-
disabled,
|
3141
|
+
disabled: disabled || value >= maxValue,
|
3140
3142
|
id: value >= maxValue ? void 0 : idProp
|
3141
3143
|
}
|
3142
3144
|
)
|
@@ -3337,7 +3339,7 @@ var CountryCodeSelect = React27.forwardRef((props, ref) => {
|
|
3337
3339
|
lazyMount: true,
|
3338
3340
|
"aria-label": t(texts15.countryCode),
|
3339
3341
|
sideRadiusVariant: "rightSideSquare",
|
3340
|
-
children: callingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, {
|
3342
|
+
children: callingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
|
3341
3343
|
}
|
3342
3344
|
);
|
3343
3345
|
});
|
@@ -5518,6 +5520,7 @@ var buttonRecipe = react.defineRecipe({
|
|
5518
5520
|
},
|
5519
5521
|
floating: {
|
5520
5522
|
color: "floating.text",
|
5523
|
+
background: "floating.surface",
|
5521
5524
|
border: "sm",
|
5522
5525
|
borderColor: "floating.outline",
|
5523
5526
|
boxShadow: "0px 1px 3px 0px var(--spor-colors-surface-disabled, rgba(0, 0, 0, 0.10))",
|