@vygruppen/spor-react 12.13.1 → 12.13.2
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 +8 -8
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +4 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/input/Popover.tsx +0 -7
- package/src/theme/slot-recipes/collapsible.ts +2 -0
- package/src/theme/slot-recipes/datepicker.ts +1 -0
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "12.13.
|
4
|
+
"version": "12.13.2",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
7
7
|
"types": "./dist/index.d.ts",
|
@@ -46,8 +46,8 @@
|
|
46
46
|
"react-stately": "^3.31.1",
|
47
47
|
"react-swipeable": "^7.0.1",
|
48
48
|
"usehooks-ts": "^3.1.0",
|
49
|
-
"@vygruppen/spor-design-tokens": "4.1.0",
|
50
49
|
"@vygruppen/spor-icon-react": "4.2.1",
|
50
|
+
"@vygruppen/spor-design-tokens": "4.1.0",
|
51
51
|
"@vygruppen/spor-loader": "0.7.0"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
@@ -68,8 +68,8 @@
|
|
68
68
|
"vitest": "^0.26.3",
|
69
69
|
"vitest-axe": "^0.1.0",
|
70
70
|
"vitest-canvas-mock": "^0.2.2",
|
71
|
-
"@vygruppen/
|
72
|
-
"@vygruppen/
|
71
|
+
"@vygruppen/eslint-config": "1.2.3",
|
72
|
+
"@vygruppen/tsconfig": "0.1.1"
|
73
73
|
},
|
74
74
|
"peerDependencies": {
|
75
75
|
"react": ">=18.0.0 <19.0.0",
|
package/src/input/Popover.tsx
CHANGED
@@ -7,7 +7,6 @@ import {
|
|
7
7
|
Overlay,
|
8
8
|
usePopover,
|
9
9
|
} from "react-aria";
|
10
|
-
import ReactDOM from "react-dom";
|
11
10
|
import { OverlayTriggerState } from "react-stately";
|
12
11
|
|
13
12
|
type PopoverProps = {
|
@@ -96,8 +95,6 @@ export const Popover = forwardRef<HTMLDivElement, PopoverProps>(
|
|
96
95
|
{...popoverProps}
|
97
96
|
ref={popoverRef}
|
98
97
|
minWidth={triggerRef.current?.clientWidth ?? "auto"}
|
99
|
-
position="absolute"
|
100
|
-
zIndex={1400}
|
101
98
|
>
|
102
99
|
<DismissButton onDismiss={state.close} />
|
103
100
|
{children}
|
@@ -106,10 +103,6 @@ export const Popover = forwardRef<HTMLDivElement, PopoverProps>(
|
|
106
103
|
);
|
107
104
|
|
108
105
|
if (isNonModal) {
|
109
|
-
// Render in a portal to ensure it does not take up semantic space
|
110
|
-
if (globalThis.window !== undefined && typeof document !== "undefined") {
|
111
|
-
return ReactDOM.createPortal(popoverBox, document.body);
|
112
|
-
}
|
113
106
|
return popoverBox;
|
114
107
|
}
|
115
108
|
return (
|