@biblioteksentralen/react 4.0.0-beta.1 → 4.0.0-beta.3
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/dist/index.d.mts +106 -15
- package/dist/index.d.ts +106 -15
- package/dist/index.js +739 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +646 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -12
- package/dist/ButtonStyles-CRAk2YIJ.d.mts +0 -3
- package/dist/ButtonStyles-CRAk2YIJ.d.ts +0 -3
- package/dist/chunk-2KZDHLEJ.mjs +0 -9
- package/dist/chunk-2KZDHLEJ.mjs.map +0 -1
- package/dist/chunk-3IJ454KG.mjs +0 -185
- package/dist/chunk-3IJ454KG.mjs.map +0 -1
- package/dist/chunk-5GJBW3WE.mjs +0 -270
- package/dist/chunk-5GJBW3WE.mjs.map +0 -1
- package/dist/chunk-7MKFY66H.mjs +0 -65
- package/dist/chunk-7MKFY66H.mjs.map +0 -1
- package/dist/chunk-BCT5QU5W.js +0 -142
- package/dist/chunk-BCT5QU5W.js.map +0 -1
- package/dist/chunk-BN5W6FVN.mjs +0 -50
- package/dist/chunk-BN5W6FVN.mjs.map +0 -1
- package/dist/chunk-BRFRPPOW.js +0 -10
- package/dist/chunk-BRFRPPOW.js.map +0 -1
- package/dist/chunk-BZS3AX26.mjs +0 -6
- package/dist/chunk-BZS3AX26.mjs.map +0 -1
- package/dist/chunk-CGCBID7S.mjs +0 -41
- package/dist/chunk-CGCBID7S.mjs.map +0 -1
- package/dist/chunk-J5IF7WUN.js +0 -10
- package/dist/chunk-J5IF7WUN.js.map +0 -1
- package/dist/chunk-NSYSPEHR.js +0 -86
- package/dist/chunk-NSYSPEHR.js.map +0 -1
- package/dist/chunk-NYKSRUWF.js +0 -51
- package/dist/chunk-NYKSRUWF.js.map +0 -1
- package/dist/chunk-O4EXBCND.js +0 -19
- package/dist/chunk-O4EXBCND.js.map +0 -1
- package/dist/chunk-PLWK7HEC.js +0 -75
- package/dist/chunk-PLWK7HEC.js.map +0 -1
- package/dist/chunk-PQLTQYZ3.mjs +0 -41
- package/dist/chunk-PQLTQYZ3.mjs.map +0 -1
- package/dist/chunk-QAW4IRLI.js +0 -55
- package/dist/chunk-QAW4IRLI.js.map +0 -1
- package/dist/chunk-QBXCCJ24.js +0 -344
- package/dist/chunk-QBXCCJ24.js.map +0 -1
- package/dist/chunk-QX75QJ7F.mjs +0 -132
- package/dist/chunk-QX75QJ7F.mjs.map +0 -1
- package/dist/chunk-RZUGRIUF.mjs +0 -76
- package/dist/chunk-RZUGRIUF.mjs.map +0 -1
- package/dist/chunk-UFIMO32F.js +0 -275
- package/dist/chunk-UFIMO32F.js.map +0 -1
- package/dist/chunk-VSICUYFB.js +0 -51
- package/dist/chunk-VSICUYFB.js.map +0 -1
- package/dist/chunk-WYQNSPEX.mjs +0 -6
- package/dist/chunk-WYQNSPEX.mjs.map +0 -1
- package/dist/components/AlertBS.d.mts +0 -18
- package/dist/components/AlertBS.d.ts +0 -18
- package/dist/components/AlertBS.js +0 -9
- package/dist/components/AlertBS.js.map +0 -1
- package/dist/components/AlertBS.mjs +0 -5
- package/dist/components/AlertBS.mjs.map +0 -1
- package/dist/components/BiblioteksentralenProvider.d.mts +0 -10
- package/dist/components/BiblioteksentralenProvider.d.ts +0 -10
- package/dist/components/BiblioteksentralenProvider.js +0 -10
- package/dist/components/BiblioteksentralenProvider.js.map +0 -1
- package/dist/components/BiblioteksentralenProvider.mjs +0 -6
- package/dist/components/BiblioteksentralenProvider.mjs.map +0 -1
- package/dist/components/ButtonBS.d.mts +0 -16
- package/dist/components/ButtonBS.d.ts +0 -16
- package/dist/components/ButtonBS.js +0 -8
- package/dist/components/ButtonBS.js.map +0 -1
- package/dist/components/ButtonBS.mjs +0 -4
- package/dist/components/ButtonBS.mjs.map +0 -1
- package/dist/components/ConditionalWrapperBS.d.mts +0 -15
- package/dist/components/ConditionalWrapperBS.d.ts +0 -15
- package/dist/components/ConditionalWrapperBS.js +0 -8
- package/dist/components/ConditionalWrapperBS.js.map +0 -1
- package/dist/components/ConditionalWrapperBS.mjs +0 -4
- package/dist/components/ConditionalWrapperBS.mjs.map +0 -1
- package/dist/components/ErrorBoundaryBS.d.mts +0 -21
- package/dist/components/ErrorBoundaryBS.d.ts +0 -21
- package/dist/components/ErrorBoundaryBS.js +0 -10
- package/dist/components/ErrorBoundaryBS.js.map +0 -1
- package/dist/components/ErrorBoundaryBS.mjs +0 -6
- package/dist/components/ErrorBoundaryBS.mjs.map +0 -1
- package/dist/components/HashLinkTargetBS.d.mts +0 -16
- package/dist/components/HashLinkTargetBS.d.ts +0 -16
- package/dist/components/HashLinkTargetBS.js +0 -10
- package/dist/components/HashLinkTargetBS.js.map +0 -1
- package/dist/components/HashLinkTargetBS.mjs +0 -6
- package/dist/components/HashLinkTargetBS.mjs.map +0 -1
- package/dist/components/IconButtonBS.d.mts +0 -16
- package/dist/components/IconButtonBS.d.ts +0 -16
- package/dist/components/IconButtonBS.js +0 -8
- package/dist/components/IconButtonBS.js.map +0 -1
- package/dist/components/IconButtonBS.mjs +0 -4
- package/dist/components/IconButtonBS.mjs.map +0 -1
- package/dist/components/InputBS.d.mts +0 -18
- package/dist/components/InputBS.d.ts +0 -18
- package/dist/components/InputBS.js +0 -8
- package/dist/components/InputBS.js.map +0 -1
- package/dist/components/InputBS.mjs +0 -4
- package/dist/components/InputBS.mjs.map +0 -1
- package/dist/components/withErrorBoundaryBS.d.mts +0 -5
- package/dist/components/withErrorBoundaryBS.d.ts +0 -5
- package/dist/components/withErrorBoundaryBS.js +0 -11
- package/dist/components/withErrorBoundaryBS.js.map +0 -1
- package/dist/components/withErrorBoundaryBS.mjs +0 -7
- package/dist/components/withErrorBoundaryBS.mjs.map +0 -1
- /package/{dist/LICENSE → LICENSE} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/AlertBS.mjs"],"names":["AlertBS"],"mappings":"AAAA;AACA,SACEA,OAAO,QACF,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,SACEA,OAAO,GACP","sourcesContent":["\"use client\";\nimport {\n AlertBS\n} from \"../chunk-QX75QJ7F.mjs\";\nimport \"../chunk-BN5W6FVN.mjs\";\nexport {\n AlertBS\n};\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { SystemConfig } from '@chakra-ui/react';
|
|
3
|
-
|
|
4
|
-
interface Props {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
customTheme?: SystemConfig;
|
|
7
|
-
}
|
|
8
|
-
declare const BiblioteksentralenProvider: (props: Props) => React.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { BiblioteksentralenProvider };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { SystemConfig } from '@chakra-ui/react';
|
|
3
|
-
|
|
4
|
-
interface Props {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
customTheme?: SystemConfig;
|
|
7
|
-
}
|
|
8
|
-
declare const BiblioteksentralenProvider: (props: Props) => React.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { BiblioteksentralenProvider };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
"use client";
|
|
6
|
-
var _chunkNYKSRUWFjs = require("../chunk-NYKSRUWF.js");
|
|
7
|
-
require("../chunk-QBXCCJ24.js");
|
|
8
|
-
require("../chunk-QAW4IRLI.js");
|
|
9
|
-
exports.BiblioteksentralenProvider = _chunkNYKSRUWFjs.BiblioteksentralenProvider;
|
|
10
|
-
//# sourceMappingURL=BiblioteksentralenProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/BiblioteksentralenProvider.js"],"names":["Object","defineProperty","exports","value","_chunkNYKSRUWFjs","require","BiblioteksentralenProvider"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AACAA,QAAA;AACAA,QAAA;AAGAH,QAAAI,0BAAA,GAAAF,iBAAAE,0BAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkNYKSRUWFjs = require('../chunk-NYKSRUWF.js');\nrequire('../chunk-QBXCCJ24.js');\nrequire('../chunk-QAW4IRLI.js');\n\n\nexports.BiblioteksentralenProvider = _chunkNYKSRUWFjs.BiblioteksentralenProvider;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/BiblioteksentralenProvider.mjs"],"names":["BiblioteksentralenProvider"],"mappings":"AAAA;AACA,SACEA,0BAA0B,QACrB,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,SACEA,0BAA0B,GAC1B","sourcesContent":["\"use client\";\nimport {\n BiblioteksentralenProvider\n} from \"../chunk-PQLTQYZ3.mjs\";\nimport \"../chunk-5GJBW3WE.mjs\";\nimport \"../chunk-BN5W6FVN.mjs\";\nexport {\n BiblioteksentralenProvider\n};\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Modify } from '@biblioteksentralen/types';
|
|
2
|
-
import { ButtonProps } from '@chakra-ui/react';
|
|
3
|
-
import { ComponentWithAs } from '@chakra-ui/system';
|
|
4
|
-
import { C as CustomButtonVariants } from '../ButtonStyles-CRAk2YIJ.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Re-exporting chackras Button with a customised types
|
|
8
|
-
* This causes both chakras native variants and our home-made variants to show up in auto-complete
|
|
9
|
-
*/
|
|
10
|
-
type ButtonVariants = ButtonProps["variant"] | CustomButtonVariants;
|
|
11
|
-
type ButtonBSProps = Modify<ButtonProps, {
|
|
12
|
-
variant?: ButtonVariants;
|
|
13
|
-
}>;
|
|
14
|
-
declare const ButtonBS: ComponentWithAs<"button", ButtonBSProps>;
|
|
15
|
-
|
|
16
|
-
export { ButtonBS, type ButtonBSProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Modify } from '@biblioteksentralen/types';
|
|
2
|
-
import { ButtonProps } from '@chakra-ui/react';
|
|
3
|
-
import { ComponentWithAs } from '@chakra-ui/system';
|
|
4
|
-
import { C as CustomButtonVariants } from '../ButtonStyles-CRAk2YIJ.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Re-exporting chackras Button with a customised types
|
|
8
|
-
* This causes both chakras native variants and our home-made variants to show up in auto-complete
|
|
9
|
-
*/
|
|
10
|
-
type ButtonVariants = ButtonProps["variant"] | CustomButtonVariants;
|
|
11
|
-
type ButtonBSProps = Modify<ButtonProps, {
|
|
12
|
-
variant?: ButtonVariants;
|
|
13
|
-
}>;
|
|
14
|
-
declare const ButtonBS: ComponentWithAs<"button", ButtonBSProps>;
|
|
15
|
-
|
|
16
|
-
export { ButtonBS, type ButtonBSProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/ButtonBS.js"],"names":["Object","defineProperty","exports","value","_chunkBRFRPPOWjs","require","ButtonBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AAGAH,QAAAI,QAAA,GAAAF,iBAAAE,QAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkBRFRPPOWjs = require('../chunk-BRFRPPOW.js');\n\n\nexports.ButtonBS = _chunkBRFRPPOWjs.ButtonBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/ButtonBS.mjs"],"names":["ButtonBS"],"mappings":"AAAA;AACA,SACEA,QAAQ,QACH,wBAAwB;AAC/B,SACEA,QAAQ,GACR","sourcesContent":["\"use client\";\nimport {\n ButtonBS\n} from \"../chunk-WYQNSPEX.mjs\";\nexport {\n ButtonBS\n};\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
wrapper: FunctionComponent<{
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}>;
|
|
8
|
-
condition: boolean;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Conditionally wrapps children with a component. If conditions are not met children mounted without the wrapper.
|
|
12
|
-
*/
|
|
13
|
-
declare const ConditionalWrapperBS: FunctionComponent<Props>;
|
|
14
|
-
|
|
15
|
-
export { ConditionalWrapperBS };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
wrapper: FunctionComponent<{
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}>;
|
|
8
|
-
condition: boolean;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Conditionally wrapps children with a component. If conditions are not met children mounted without the wrapper.
|
|
12
|
-
*/
|
|
13
|
-
declare const ConditionalWrapperBS: FunctionComponent<Props>;
|
|
14
|
-
|
|
15
|
-
export { ConditionalWrapperBS };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
"use client";
|
|
6
|
-
var _chunkO4EXBCNDjs = require("../chunk-O4EXBCND.js");
|
|
7
|
-
exports.ConditionalWrapperBS = _chunkO4EXBCNDjs.ConditionalWrapperBS;
|
|
8
|
-
//# sourceMappingURL=ConditionalWrapperBS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/ConditionalWrapperBS.js"],"names":["Object","defineProperty","exports","value","_chunkO4EXBCNDjs","require","ConditionalWrapperBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AAGAH,QAAAI,oBAAA,GAAAF,iBAAAE,oBAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkO4EXBCNDjs = require('../chunk-O4EXBCND.js');\n\n\nexports.ConditionalWrapperBS = _chunkO4EXBCNDjs.ConditionalWrapperBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/ConditionalWrapperBS.mjs"],"names":["ConditionalWrapperBS"],"mappings":"AAAA;AACA,SACEA,oBAAoB,QACf,wBAAwB;AAC/B,SACEA,oBAAoB,GACpB","sourcesContent":["\"use client\";\nimport {\n ConditionalWrapperBS\n} from \"../chunk-2KZDHLEJ.mjs\";\nexport {\n ConditionalWrapperBS\n};\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, ErrorInfo } from 'react';
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
boundaryName?: string;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
interface State {
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
error?: Error;
|
|
10
|
-
errorInfo?: ErrorInfo;
|
|
11
|
-
}
|
|
12
|
-
declare class ErrorBoundaryBS extends React.Component<Props, State> {
|
|
13
|
-
constructor(props: any);
|
|
14
|
-
static getDerivedStateFromError(error: any): {
|
|
15
|
-
hasError: boolean;
|
|
16
|
-
};
|
|
17
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
|
18
|
-
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { ErrorBoundaryBS };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, ErrorInfo } from 'react';
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
boundaryName?: string;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
interface State {
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
error?: Error;
|
|
10
|
-
errorInfo?: ErrorInfo;
|
|
11
|
-
}
|
|
12
|
-
declare class ErrorBoundaryBS extends React.Component<Props, State> {
|
|
13
|
-
constructor(props: any);
|
|
14
|
-
static getDerivedStateFromError(error: any): {
|
|
15
|
-
hasError: boolean;
|
|
16
|
-
};
|
|
17
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
|
18
|
-
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { ErrorBoundaryBS };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
"use client";
|
|
6
|
-
var _chunkUFIMO32Fjs = require("../chunk-UFIMO32F.js");
|
|
7
|
-
require("../chunk-BCT5QU5W.js");
|
|
8
|
-
require("../chunk-QAW4IRLI.js");
|
|
9
|
-
exports.ErrorBoundaryBS = _chunkUFIMO32Fjs.ErrorBoundaryBS;
|
|
10
|
-
//# sourceMappingURL=ErrorBoundaryBS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/ErrorBoundaryBS.js"],"names":["Object","defineProperty","exports","value","_chunkUFIMO32Fjs","require","ErrorBoundaryBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AACAA,QAAA;AACAA,QAAA;AAGAH,QAAAI,eAAA,GAAAF,iBAAAE,eAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkUFIMO32Fjs = require('../chunk-UFIMO32F.js');\nrequire('../chunk-BCT5QU5W.js');\nrequire('../chunk-QAW4IRLI.js');\n\n\nexports.ErrorBoundaryBS = _chunkUFIMO32Fjs.ErrorBoundaryBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/ErrorBoundaryBS.mjs"],"names":["ErrorBoundaryBS"],"mappings":"AAAA;AACA,SACEA,eAAe,QACV,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,SACEA,eAAe,GACf","sourcesContent":["\"use client\";\nimport {\n ErrorBoundaryBS\n} from \"../chunk-3IJ454KG.mjs\";\nimport \"../chunk-QX75QJ7F.mjs\";\nimport \"../chunk-BN5W6FVN.mjs\";\nexport {\n ErrorBoundaryBS\n};\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
id: string;
|
|
5
|
-
/**
|
|
6
|
-
* angir hvor mye luft til vil ha over HashLinkTarget ved bruk av hash-lenke, eks '4rem'
|
|
7
|
-
*/
|
|
8
|
-
spaceAbove?: string;
|
|
9
|
-
/**
|
|
10
|
-
* angir om du vil ha fokusramme rundt komponenten som mounter HashLinkTarget. Da må komponenten du wrapper med ha position: relative | absolute el
|
|
11
|
-
*/
|
|
12
|
-
focusOnParent?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare function HashLinkTargetBS(props: Props): React.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { HashLinkTargetBS };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
id: string;
|
|
5
|
-
/**
|
|
6
|
-
* angir hvor mye luft til vil ha over HashLinkTarget ved bruk av hash-lenke, eks '4rem'
|
|
7
|
-
*/
|
|
8
|
-
spaceAbove?: string;
|
|
9
|
-
/**
|
|
10
|
-
* angir om du vil ha fokusramme rundt komponenten som mounter HashLinkTarget. Da må komponenten du wrapper med ha position: relative | absolute el
|
|
11
|
-
*/
|
|
12
|
-
focusOnParent?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare function HashLinkTargetBS(props: Props): React.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { HashLinkTargetBS };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
"use client";
|
|
6
|
-
var _chunkPLWK7HECjs = require("../chunk-PLWK7HEC.js");
|
|
7
|
-
require("../chunk-QBXCCJ24.js");
|
|
8
|
-
require("../chunk-QAW4IRLI.js");
|
|
9
|
-
exports.HashLinkTargetBS = _chunkPLWK7HECjs.HashLinkTargetBS;
|
|
10
|
-
//# sourceMappingURL=HashLinkTargetBS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/HashLinkTargetBS.js"],"names":["Object","defineProperty","exports","value","_chunkPLWK7HECjs","require","HashLinkTargetBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AACAA,QAAA;AACAA,QAAA;AAGAH,QAAAI,gBAAA,GAAAF,iBAAAE,gBAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkPLWK7HECjs = require('../chunk-PLWK7HEC.js');\nrequire('../chunk-QBXCCJ24.js');\nrequire('../chunk-QAW4IRLI.js');\n\n\nexports.HashLinkTargetBS = _chunkPLWK7HECjs.HashLinkTargetBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/HashLinkTargetBS.mjs"],"names":["HashLinkTargetBS"],"mappings":"AAAA;AACA,SACEA,gBAAgB,QACX,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,SACEA,gBAAgB,GAChB","sourcesContent":["\"use client\";\nimport {\n HashLinkTargetBS\n} from \"../chunk-7MKFY66H.mjs\";\nimport \"../chunk-5GJBW3WE.mjs\";\nimport \"../chunk-BN5W6FVN.mjs\";\nexport {\n HashLinkTargetBS\n};\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Modify } from '@biblioteksentralen/types';
|
|
2
|
-
import { IconButtonProps } from '@chakra-ui/react';
|
|
3
|
-
import { ComponentWithAs } from '@chakra-ui/system';
|
|
4
|
-
import { C as CustomButtonVariants } from '../ButtonStyles-CRAk2YIJ.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Re-exporting chackras IconButton with a customised types
|
|
8
|
-
* This causes both chakras native variants and our home-made variants to show up in auto-complete
|
|
9
|
-
*/
|
|
10
|
-
type IconButtonVariants = IconButtonProps["variant"] | CustomButtonVariants;
|
|
11
|
-
type IconButtonBSProps = Modify<IconButtonProps, {
|
|
12
|
-
variant?: IconButtonVariants;
|
|
13
|
-
}>;
|
|
14
|
-
declare const IconButtonBS: ComponentWithAs<"button", IconButtonBSProps>;
|
|
15
|
-
|
|
16
|
-
export { IconButtonBS, type IconButtonBSProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Modify } from '@biblioteksentralen/types';
|
|
2
|
-
import { IconButtonProps } from '@chakra-ui/react';
|
|
3
|
-
import { ComponentWithAs } from '@chakra-ui/system';
|
|
4
|
-
import { C as CustomButtonVariants } from '../ButtonStyles-CRAk2YIJ.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Re-exporting chackras IconButton with a customised types
|
|
8
|
-
* This causes both chakras native variants and our home-made variants to show up in auto-complete
|
|
9
|
-
*/
|
|
10
|
-
type IconButtonVariants = IconButtonProps["variant"] | CustomButtonVariants;
|
|
11
|
-
type IconButtonBSProps = Modify<IconButtonProps, {
|
|
12
|
-
variant?: IconButtonVariants;
|
|
13
|
-
}>;
|
|
14
|
-
declare const IconButtonBS: ComponentWithAs<"button", IconButtonBSProps>;
|
|
15
|
-
|
|
16
|
-
export { IconButtonBS, type IconButtonBSProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/IconButtonBS.js"],"names":["Object","defineProperty","exports","value","_chunkJ5IF7WUNjs","require","IconButtonBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AAGAH,QAAAI,YAAA,GAAAF,iBAAAE,YAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkJ5IF7WUNjs = require('../chunk-J5IF7WUN.js');\n\n\nexports.IconButtonBS = _chunkJ5IF7WUNjs.IconButtonBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/IconButtonBS.mjs"],"names":["IconButtonBS"],"mappings":"AAAA;AACA,SACEA,YAAY,QACP,wBAAwB;AAC/B,SACEA,YAAY,GACZ","sourcesContent":["\"use client\";\nimport {\n IconButtonBS\n} from \"../chunk-BZS3AX26.mjs\";\nexport {\n IconButtonBS\n};\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { InputProps, FieldLabelProps } from '@chakra-ui/react';
|
|
2
|
-
import React, { RefObject } from 'react';
|
|
3
|
-
|
|
4
|
-
interface Props extends InputProps {
|
|
5
|
-
label: string;
|
|
6
|
-
hideLabel?: boolean;
|
|
7
|
-
labelProps?: FieldLabelProps;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
errorMessage?: string;
|
|
10
|
-
ref?: RefObject<HTMLInputElement | null>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Creating custom input-component to make sure label is always set (for accessibility)
|
|
14
|
-
* Also handles some common needs (helper text and error message. For more advanced input-components we leave it to the consumers to compose custom input-components based on Chakra
|
|
15
|
-
*/
|
|
16
|
-
declare const InputBS: (props: Props) => React.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { InputBS };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { InputProps, FieldLabelProps } from '@chakra-ui/react';
|
|
2
|
-
import React, { RefObject } from 'react';
|
|
3
|
-
|
|
4
|
-
interface Props extends InputProps {
|
|
5
|
-
label: string;
|
|
6
|
-
hideLabel?: boolean;
|
|
7
|
-
labelProps?: FieldLabelProps;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
errorMessage?: string;
|
|
10
|
-
ref?: RefObject<HTMLInputElement | null>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Creating custom input-component to make sure label is always set (for accessibility)
|
|
14
|
-
* Also handles some common needs (helper text and error message. For more advanced input-components we leave it to the consumers to compose custom input-components based on Chakra
|
|
15
|
-
*/
|
|
16
|
-
declare const InputBS: (props: Props) => React.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { InputBS };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/InputBS.js"],"names":["Object","defineProperty","exports","value","_chunkNSYSPEHRjs","require","InputBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AAGAH,QAAAI,OAAA,GAAAF,iBAAAE,OAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkNSYSPEHRjs = require('../chunk-NSYSPEHR.js');\n\n\nexports.InputBS = _chunkNSYSPEHRjs.InputBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/InputBS.mjs"],"names":["InputBS"],"mappings":"AAAA;AACA,SACEA,OAAO,QACF,wBAAwB;AAC/B,SACEA,OAAO,GACP","sourcesContent":["\"use client\";\nimport {\n InputBS\n} from \"../chunk-RZUGRIUF.mjs\";\nexport {\n InputBS\n};\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
"use client";
|
|
6
|
-
var _chunkVSICUYFBjs = require("../chunk-VSICUYFB.js");
|
|
7
|
-
require("../chunk-UFIMO32F.js");
|
|
8
|
-
require("../chunk-BCT5QU5W.js");
|
|
9
|
-
require("../chunk-QAW4IRLI.js");
|
|
10
|
-
exports.withErrorBoundaryBS = _chunkVSICUYFBjs.withErrorBoundaryBS;
|
|
11
|
-
//# sourceMappingURL=withErrorBoundaryBS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/withErrorBoundaryBS.js"],"names":["Object","defineProperty","exports","value","_chunkVSICUYFBjs","require","withErrorBoundaryBS"],"mappings":"AAAA;AAAAA,OAAAC,cAAA,CAAAC,SAAA,cAAA;IAAAC,OAAA;AAAA;AAAA;AAGA,IAAAC,mBAAAC,QAAA;AACAA,QAAA;AACAA,QAAA;AACAA,QAAA;AAGAH,QAAAI,mBAAA,GAAAF,iBAAAE,mBAAA","sourcesContent":["\"use strict\";Object.defineProperty(exports, \"__esModule\", {value: true});\"use client\";\n\n\nvar _chunkVSICUYFBjs = require('../chunk-VSICUYFB.js');\nrequire('../chunk-UFIMO32F.js');\nrequire('../chunk-BCT5QU5W.js');\nrequire('../chunk-QAW4IRLI.js');\n\n\nexports.withErrorBoundaryBS = _chunkVSICUYFBjs.withErrorBoundaryBS;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/danielwinsvold/Code/js-utils/packages/react/dist/components/withErrorBoundaryBS.mjs"],"names":["withErrorBoundaryBS"],"mappings":"AAAA;AACA,SACEA,mBAAmB,QACd,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,OAAO,wBAAwB;AAC/B,SACEA,mBAAmB,GACnB","sourcesContent":["\"use client\";\nimport {\n withErrorBoundaryBS\n} from \"../chunk-CGCBID7S.mjs\";\nimport \"../chunk-3IJ454KG.mjs\";\nimport \"../chunk-QX75QJ7F.mjs\";\nimport \"../chunk-BN5W6FVN.mjs\";\nexport {\n withErrorBoundaryBS\n};\n"]}
|
|
File without changes
|