@bi-digital/react 0.12.5 → 0.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.
|
@@ -3,7 +3,6 @@ import { Ref, RefCallback } from "react";
|
|
|
3
3
|
/**
|
|
4
4
|
* Merges an array of refs into a single memoized callback ref or `null`.
|
|
5
5
|
*/
|
|
6
|
-
declare function useMergeRefs<Instance>(refs: Array<Ref<Instance> | undefined>): null | RefCallback<Instance>;
|
|
6
|
+
export declare function useMergeRefs<Instance>(refs: Array<Ref<Instance> | undefined>): null | RefCallback<Instance>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { useMergeRefs };
|
|
9
8
|
//# sourceMappingURL=useMergeRefs.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Middleware, Placement } from "@floating-ui/dom";
|
|
2
2
|
//#region src/vanilla/dropdown/index.d.ts
|
|
3
|
-
type InitDropdownOptions = {
|
|
3
|
+
export type InitDropdownOptions = {
|
|
4
4
|
/** The id of the dropdown to initialize. The trigger element should have a `aria-controls` attribute with the same id. */
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
@@ -45,7 +45,6 @@ type InitDropdownOptions = {
|
|
|
45
45
|
* @param options - InitDropdownOptions
|
|
46
46
|
* @returns A function to programmatically toggle the dropdown.
|
|
47
47
|
*/
|
|
48
|
-
declare const initDropdown: ({ id, disableAutoPlacement, placement, positionMiddleware, padding }: InitDropdownOptions) => ((open: boolean) => void) | undefined;
|
|
48
|
+
export declare const initDropdown: ({ id, disableAutoPlacement, placement, positionMiddleware, padding }: InitDropdownOptions) => ((open: boolean) => void) | undefined;
|
|
49
49
|
//#endregion
|
|
50
|
-
export { InitDropdownOptions, initDropdown };
|
|
51
50
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Middleware, Placement } from "@floating-ui/dom";
|
|
2
2
|
//#region src/vanilla/popover/index.d.ts
|
|
3
|
-
type InitPopoverOptions = {
|
|
3
|
+
export type InitPopoverOptions = {
|
|
4
4
|
/** The id of the popover to initialize. The trigger element should have a `aria-controls` attribute with the same id. */
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
@@ -45,8 +45,7 @@ type InitPopoverOptions = {
|
|
|
45
45
|
* @param options - InitPopoverOptions
|
|
46
46
|
* @returns A function to programmatically toggle the popover.
|
|
47
47
|
*/
|
|
48
|
-
declare const initPopover: ({ id, disableAutoPlacement, placement, positionMiddleware, padding }: InitPopoverOptions) => ((open: boolean) => void) | undefined;
|
|
49
|
-
declare const arrowPseudoElement: Middleware;
|
|
48
|
+
export declare const initPopover: ({ id, disableAutoPlacement, placement, positionMiddleware, padding }: InitPopoverOptions) => ((open: boolean) => void) | undefined;
|
|
49
|
+
export declare const arrowPseudoElement: Middleware;
|
|
50
50
|
//#endregion
|
|
51
|
-
export { InitPopoverOptions, arrowPseudoElement, initPopover };
|
|
52
51
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/vanilla/sub-navbar/index.d.ts
|
|
2
|
-
type InitSubNavbarOptions = {
|
|
2
|
+
export type InitSubNavbarOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* Custom selector to find sub-navbars.
|
|
5
5
|
* @default '.bi-sub-navbar'
|
|
@@ -15,7 +15,6 @@ type InitSubNavbarOptions = {
|
|
|
15
15
|
* @param options Configuration options
|
|
16
16
|
* @returns Cleanup function to remove all event listeners and observers
|
|
17
17
|
*/
|
|
18
|
-
declare const initSubNavbar: ({ selector }?: InitSubNavbarOptions) => () => void;
|
|
18
|
+
export declare const initSubNavbar: ({ selector }?: InitSubNavbarOptions) => () => void;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { InitSubNavbarOptions, initSubNavbar };
|
|
21
20
|
//# sourceMappingURL=index.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bi-digital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"description": "React components from BI Digital",
|
|
6
6
|
"author": "BI Digital",
|
|
7
7
|
"homepage": "https://designsystem.bi.no/",
|
|
@@ -36,30 +36,29 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@digdir/designsystemet-web": "~1.
|
|
39
|
+
"@digdir/designsystemet-web": "~1.21.0",
|
|
40
40
|
"@floating-ui/dom": "^1.8.0",
|
|
41
41
|
"@radix-ui/react-slot": "^1.3.3",
|
|
42
42
|
"@radix-ui/react-use-controllable-state": "^1.2.6",
|
|
43
43
|
"clsx": "~2.1.1",
|
|
44
|
-
"@bi-digital/icons": "0.
|
|
44
|
+
"@bi-digital/icons": "0.13.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/react": "^19.
|
|
48
|
-
"@types/react-dom": "^19.
|
|
49
|
-
"@vitest/browser-playwright": "
|
|
50
|
-
"@vitest/coverage-v8": "
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"react": "^19.
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"vitest": "
|
|
57
|
-
"vitest-browser-react": "2.2.0"
|
|
47
|
+
"@types/react": "^19.3.0",
|
|
48
|
+
"@types/react-dom": "^19.3.0",
|
|
49
|
+
"@vitest/browser-playwright": "5.0.0",
|
|
50
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
51
|
+
"playwright": "1.63.0",
|
|
52
|
+
"react": "^19.3.0",
|
|
53
|
+
"react-dom": "^19.3.0",
|
|
54
|
+
"tsdown": "0.23.0",
|
|
55
|
+
"vitest": "5.0.0",
|
|
56
|
+
"vitest-browser-react": "2.3.0"
|
|
58
57
|
},
|
|
59
58
|
"peerDependencies": {
|
|
60
59
|
"react": "^19",
|
|
61
60
|
"react-dom": "^19",
|
|
62
|
-
"@bi-digital/css": "0.
|
|
61
|
+
"@bi-digital/css": "0.13.1"
|
|
63
62
|
},
|
|
64
63
|
"scripts": {
|
|
65
64
|
"build": "tsdown",
|