@arkitektbedriftene/fe-lib 2.5.2 → 2.5.4
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/icons/icons.d.ts +1 -2
- package/dist/oidc/impersonate.d.ts +1 -1
- package/dist/oidc/oidc.d.ts +1 -1
- package/dist/rich-text/Editor.d.ts +1 -1
- package/dist/rich-text/Plugins/AlignPlugin.d.ts +1 -2
- package/dist/rich-text/Plugins/Image/ImageComponent.d.ts +2 -2
- package/dist/rich-text/Plugins/Image/ImageNode.d.ts +3 -3
- package/dist/rich-text/Plugins/Image/ImagePlugin.d.ts +2 -2
- package/dist/rich-text/Plugins/LinkEditPlugin.d.ts +1 -2
- package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +1 -2
- package/dist/rich-text/Plugins/Plugins.d.ts +1 -2
- package/dist/rich-text/Plugins/RutineLinkNode.d.ts +2 -2
- package/dist/rich-text/Plugins/TableEditPlugin.d.ts +1 -2
- package/dist/rich-text/Toolbar/BlockTypeSelector.d.ts +1 -2
- package/dist/rich-text/Toolbar/InsertSelector.d.ts +1 -2
- package/dist/rich-text/Toolbar/TextFormatToggleGroup.d.ts +1 -2
- package/dist/rich-text/Toolbar/Toolbar.d.ts +2 -2
- package/dist/rich-text.es.js +1 -1
- package/dist/ui/components/Avatar.d.ts +2 -4
- package/dist/ui/components/Dialog.d.ts +1 -1
- package/dist/ui/components/Form/Checkbox.d.ts +1 -1
- package/dist/ui/components/Form/Combobox.d.ts +1 -2
- package/dist/ui/components/Form/ReactSelect.d.ts +2 -97
- package/dist/ui/components/Form/Select.d.ts +1 -2
- package/dist/ui/components/Form/Switch.d.ts +4 -8
- package/dist/ui/components/Menu/DropdownMenu.d.ts +3 -3
- package/dist/ui/components/NavBar.d.ts +4 -6
- package/dist/ui/components/Popover.d.ts +4 -6
- package/dist/ui/components/Spinner.d.ts +1 -3
- package/dist/ui/components/Stack.d.ts +1 -1
- package/dist/ui/components/Toolbar.d.ts +2 -4
- package/dist/ui/components/Tooltip.d.ts +1 -2
- package/dist/ui/stitches.config.d.ts +1 -1
- package/package.json +3 -3
package/dist/icons/icons.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type ImpersonationContextType = {
|
|
|
16
16
|
export declare const useImpersonationContext: () => ImpersonationContextType;
|
|
17
17
|
export declare const ImpersonationContextProvider: ({ children, }: {
|
|
18
18
|
children: ReactNode;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
* This hook is used to pick up the impersonation access token from the URL.
|
|
22
22
|
* The access token must be provided in the query string as "impersonateAccessToken".
|
package/dist/oidc/oidc.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const createAuthContext: (userManager: UserManager) => {
|
|
|
25
25
|
AuthContext: Context<AuthContextData | null>;
|
|
26
26
|
AuthProvider: ({ children }: {
|
|
27
27
|
children: ReactNode;
|
|
28
|
-
}) => JSX.Element;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
useAuthContext: () => AuthContextData;
|
|
30
30
|
useAuthState: () => AuthState;
|
|
31
31
|
useSigninCallback: (onDone?: ((user?: User) => void) | undefined) => AuthState;
|
|
@@ -24,4 +24,4 @@ export declare const RichTextEditor: ({ isLoading, children, placeholderText, no
|
|
|
24
24
|
}> | undefined;
|
|
25
25
|
signUrl?: ((url: string) => Promise<string>) | undefined;
|
|
26
26
|
fileUpload?: UploadFn | undefined;
|
|
27
|
-
}) => JSX.Element;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AlignToolbarDropdown: () => JSX.Element;
|
|
1
|
+
export declare const AlignToolbarDropdown: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
2
|
export declare function ImageComponent({ src, altText, width, height, nodeKey, }: {
|
|
3
3
|
src: string;
|
|
4
4
|
altText: string;
|
|
5
5
|
width: "inherit" | number;
|
|
6
6
|
height: "inherit" | number;
|
|
7
7
|
nodeKey: string;
|
|
8
|
-
}):
|
|
8
|
+
}): ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from "lexical";
|
|
3
2
|
import { DecoratorNode } from "lexical";
|
|
3
|
+
import type { ReactElement } from "react";
|
|
4
4
|
export interface ImagePayload {
|
|
5
5
|
src: string;
|
|
6
6
|
altText: string;
|
|
@@ -22,7 +22,7 @@ export type SerializedImageNode = Spread<{
|
|
|
22
22
|
height: number;
|
|
23
23
|
};
|
|
24
24
|
}, SerializedLexicalNode>;
|
|
25
|
-
export declare class ImageNode extends DecoratorNode<
|
|
25
|
+
export declare class ImageNode extends DecoratorNode<ReactElement> {
|
|
26
26
|
__src: string;
|
|
27
27
|
__altText: string;
|
|
28
28
|
__width: "inherit" | number;
|
|
@@ -51,7 +51,7 @@ export declare class ImageNode extends DecoratorNode<JSX.Element> {
|
|
|
51
51
|
updateDOM(): false;
|
|
52
52
|
getSrc(): string;
|
|
53
53
|
getAltText(): string;
|
|
54
|
-
decorate():
|
|
54
|
+
decorate(): ReactElement;
|
|
55
55
|
}
|
|
56
56
|
export declare function $createImageNode({ altText, height, src, width, meta, key, }: ImagePayload): ImageNode;
|
|
57
57
|
export declare function $isImageNode(node: LexicalNode | null | undefined): node is ImageNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type LexicalCommand } from "lexical";
|
|
2
|
+
import { type ReactElement } from "react";
|
|
3
3
|
import { type ImagePayload } from "./ImageNode";
|
|
4
4
|
export type InsertImagePayload = Readonly<ImagePayload>;
|
|
5
5
|
export declare const INSERT_IMAGE_COMMAND: LexicalCommand<InsertImagePayload>;
|
|
6
|
-
export declare function ImagePlugin():
|
|
6
|
+
export declare function ImagePlugin(): ReactElement | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LinkEditPlugin: () => JSX.Element | null;
|
|
1
|
+
export declare const LinkEditPlugin: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const LinkToolbarButton: ({ getDocs, filePrefix, }: {
|
|
3
2
|
getDocs?: (() => {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
6
5
|
}[]) | undefined;
|
|
7
6
|
filePrefix?: string | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Plugins: () => JSX.Element;
|
|
1
|
+
export declare const Plugins: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,24 +11,24 @@ export declare class RutineLinkNode extends LinkNode {
|
|
|
11
11
|
type: string;
|
|
12
12
|
url: string;
|
|
13
13
|
version: number;
|
|
14
|
-
title?: string | null | undefined;
|
|
15
14
|
children: import("lexical").SerializedLexicalNode[];
|
|
16
15
|
direction: "ltr" | "rtl" | null;
|
|
17
16
|
format: import("lexical").ElementFormatType;
|
|
18
17
|
indent: number;
|
|
19
18
|
rel?: string | null | undefined;
|
|
20
19
|
target?: string | null | undefined;
|
|
20
|
+
title?: string | null | undefined;
|
|
21
21
|
} | {
|
|
22
22
|
type: string;
|
|
23
23
|
url: string;
|
|
24
24
|
version: number;
|
|
25
|
-
title?: string | null | undefined;
|
|
26
25
|
children: import("lexical").SerializedLexicalNode[];
|
|
27
26
|
direction: "ltr" | "rtl" | null;
|
|
28
27
|
format: import("lexical").ElementFormatType;
|
|
29
28
|
indent: number;
|
|
30
29
|
rel?: string | null | undefined;
|
|
31
30
|
target?: string | null | undefined;
|
|
31
|
+
title?: string | null | undefined;
|
|
32
32
|
isUnlinked: boolean;
|
|
33
33
|
};
|
|
34
34
|
getURL(): string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const TableEditPlugin: () => JSX.Element | null;
|
|
1
|
+
export declare const TableEditPlugin: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const BlockTypeSelector: () => JSX.Element;
|
|
1
|
+
export declare const BlockTypeSelector: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const InsertSelector: () => JSX.Element;
|
|
1
|
+
export declare const InsertSelector: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const TextFormatToggleGroup: () => JSX.Element;
|
|
1
|
+
export declare const TextFormatToggleGroup: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Toolbar } from "@ui";
|
|
|
3
3
|
type ToolbarProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
-
export declare const FloatingToolbar: ({ children }: ToolbarProps) => JSX.Element | null;
|
|
6
|
+
export declare const FloatingToolbar: ({ children }: ToolbarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export declare const RichTextToolbar: ({ children, ...props }: {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
} & Omit<import("@radix-ui/react-toolbar").ToolbarProps & import("react").RefAttributes<HTMLDivElement>, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
@@ -122,5 +122,5 @@ export declare const RichTextToolbar: ({ children, ...props }: {
|
|
|
122
122
|
overlayCard: number;
|
|
123
123
|
};
|
|
124
124
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
125
|
-
}) => JSX.Element;
|
|
125
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
126
126
|
export {};
|
package/dist/rich-text.es.js
CHANGED
|
@@ -118,9 +118,7 @@ declare const AvatarCircle: import("@stitches/react/types/styled-component").Sty
|
|
|
118
118
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
119
119
|
export declare const Avatar: ({ css, colorString, ...props }: {
|
|
120
120
|
colorString?: string | undefined;
|
|
121
|
-
} & Omit<
|
|
122
|
-
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
123
|
-
}, "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
121
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
124
122
|
size?: "xs" | "sm" | "md" | undefined;
|
|
125
123
|
}, {
|
|
126
124
|
lg: "(min-width: 1200px)";
|
|
@@ -238,5 +236,5 @@ export declare const Avatar: ({ css, colorString, ...props }: {
|
|
|
238
236
|
overlayCard: number;
|
|
239
237
|
};
|
|
240
238
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
241
|
-
}) => JSX.Element;
|
|
239
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
242
240
|
export {};
|
|
@@ -238,7 +238,7 @@ export declare const Dialog: ({ children, open, onOpenChange, trigger, css, cont
|
|
|
238
238
|
};
|
|
239
239
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
240
240
|
}) | undefined;
|
|
241
|
-
}) => JSX.Element;
|
|
241
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
242
242
|
export declare const DialogHeader: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RDialog.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, {}, {
|
|
243
243
|
lg: "(min-width: 1200px)";
|
|
244
244
|
print: "print";
|
|
@@ -237,5 +237,5 @@ export declare const Checkbox: ({ id, size, label, ...props }: {
|
|
|
237
237
|
overlayCard: number;
|
|
238
238
|
};
|
|
239
239
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
240
|
-
}) => JSX.Element;
|
|
240
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
241
241
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { GroupBase, Props } from "react-select";
|
|
3
|
-
export declare const Combobox: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<
|
|
2
|
+
export declare const Combobox: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<any, "isSearchable">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,97 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const ReactSelect: ({ styles, components, error, ...props }: Omit<Pick<import("react-select/dist/declarations/src/Select").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "form" | "value" | "theme" | "onBlur" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onChange" | "onKeyDown" | "autoFocus" | "name" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom" | "required"> & {
|
|
4
|
-
isLoading?: boolean | undefined;
|
|
5
|
-
placeholder?: import("react").ReactNode;
|
|
6
|
-
tabIndex?: number | undefined;
|
|
7
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
8
|
-
options?: import("react-select").OptionsOrGroups<unknown, import("react-select").GroupBase<unknown>> | undefined;
|
|
9
|
-
backspaceRemovesValue?: boolean | undefined;
|
|
10
|
-
blurInputOnSelect?: boolean | undefined;
|
|
11
|
-
captureMenuScroll?: boolean | undefined;
|
|
12
|
-
classNames?: import("react-select").ClassNamesConfig<unknown, boolean, import("react-select").GroupBase<unknown>> | undefined;
|
|
13
|
-
closeMenuOnSelect?: boolean | undefined;
|
|
14
|
-
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
15
|
-
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<unknown, boolean, import("react-select").GroupBase<unknown>>> | undefined;
|
|
16
|
-
controlShouldRenderValue?: boolean | undefined;
|
|
17
|
-
escapeClearsValue?: boolean | undefined;
|
|
18
|
-
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, inputValue: string) => boolean) | null | undefined;
|
|
19
|
-
formatGroupLabel?: ((group: import("react-select").GroupBase<unknown>) => import("react").ReactNode) | undefined;
|
|
20
|
-
getOptionLabel?: import("react-select").GetOptionLabel<unknown> | undefined;
|
|
21
|
-
getOptionValue?: import("react-select").GetOptionValue<unknown> | undefined;
|
|
22
|
-
isDisabled?: boolean | undefined;
|
|
23
|
-
isOptionDisabled?: ((option: unknown, selectValue: import("react-select").Options<unknown>) => boolean) | undefined;
|
|
24
|
-
isMulti?: boolean | undefined;
|
|
25
|
-
isRtl?: boolean | undefined;
|
|
26
|
-
isSearchable?: boolean | undefined;
|
|
27
|
-
loadingMessage?: ((obj: {
|
|
28
|
-
inputValue: string;
|
|
29
|
-
}) => import("react").ReactNode) | undefined;
|
|
30
|
-
minMenuHeight?: number | undefined;
|
|
31
|
-
maxMenuHeight?: number | undefined;
|
|
32
|
-
menuIsOpen?: boolean | undefined;
|
|
33
|
-
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
34
|
-
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
35
|
-
menuShouldBlockScroll?: boolean | undefined;
|
|
36
|
-
menuShouldScrollIntoView?: boolean | undefined;
|
|
37
|
-
noOptionsMessage?: ((obj: {
|
|
38
|
-
inputValue: string;
|
|
39
|
-
}) => import("react").ReactNode) | undefined;
|
|
40
|
-
openMenuOnFocus?: boolean | undefined;
|
|
41
|
-
openMenuOnClick?: boolean | undefined;
|
|
42
|
-
pageSize?: number | undefined;
|
|
43
|
-
screenReaderStatus?: ((obj: {
|
|
44
|
-
count: number;
|
|
45
|
-
}) => string) | undefined;
|
|
46
|
-
styles?: StylesConfig<unknown, boolean, import("react-select").GroupBase<unknown>> | undefined;
|
|
47
|
-
tabSelectsValue?: boolean | undefined;
|
|
48
|
-
unstyled?: boolean | undefined;
|
|
49
|
-
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "form" | "value" | "theme" | "onBlur" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onChange" | "onKeyDown" | "autoFocus" | "name" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom" | "required"> & {
|
|
50
|
-
isLoading?: boolean | undefined;
|
|
51
|
-
placeholder?: import("react").ReactNode;
|
|
52
|
-
tabIndex?: number | undefined;
|
|
53
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
54
|
-
options?: import("react-select").OptionsOrGroups<unknown, import("react-select").GroupBase<unknown>> | undefined;
|
|
55
|
-
backspaceRemovesValue?: boolean | undefined;
|
|
56
|
-
blurInputOnSelect?: boolean | undefined;
|
|
57
|
-
captureMenuScroll?: boolean | undefined;
|
|
58
|
-
classNames?: import("react-select").ClassNamesConfig<unknown, boolean, import("react-select").GroupBase<unknown>> | undefined;
|
|
59
|
-
closeMenuOnSelect?: boolean | undefined;
|
|
60
|
-
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
61
|
-
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<unknown, boolean, import("react-select").GroupBase<unknown>>> | undefined;
|
|
62
|
-
controlShouldRenderValue?: boolean | undefined;
|
|
63
|
-
escapeClearsValue?: boolean | undefined;
|
|
64
|
-
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, inputValue: string) => boolean) | null | undefined;
|
|
65
|
-
formatGroupLabel?: ((group: import("react-select").GroupBase<unknown>) => import("react").ReactNode) | undefined;
|
|
66
|
-
getOptionLabel?: import("react-select").GetOptionLabel<unknown> | undefined;
|
|
67
|
-
getOptionValue?: import("react-select").GetOptionValue<unknown> | undefined;
|
|
68
|
-
isDisabled?: boolean | undefined;
|
|
69
|
-
isOptionDisabled?: ((option: unknown, selectValue: import("react-select").Options<unknown>) => boolean) | undefined;
|
|
70
|
-
isMulti?: boolean | undefined;
|
|
71
|
-
isRtl?: boolean | undefined;
|
|
72
|
-
isSearchable?: boolean | undefined;
|
|
73
|
-
loadingMessage?: ((obj: {
|
|
74
|
-
inputValue: string;
|
|
75
|
-
}) => import("react").ReactNode) | undefined;
|
|
76
|
-
minMenuHeight?: number | undefined;
|
|
77
|
-
maxMenuHeight?: number | undefined;
|
|
78
|
-
menuIsOpen?: boolean | undefined;
|
|
79
|
-
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
80
|
-
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
81
|
-
menuShouldBlockScroll?: boolean | undefined;
|
|
82
|
-
menuShouldScrollIntoView?: boolean | undefined;
|
|
83
|
-
noOptionsMessage?: ((obj: {
|
|
84
|
-
inputValue: string;
|
|
85
|
-
}) => import("react").ReactNode) | undefined;
|
|
86
|
-
openMenuOnFocus?: boolean | undefined;
|
|
87
|
-
openMenuOnClick?: boolean | undefined;
|
|
88
|
-
pageSize?: number | undefined;
|
|
89
|
-
screenReaderStatus?: ((obj: {
|
|
90
|
-
count: number;
|
|
91
|
-
}) => string) | undefined;
|
|
92
|
-
styles?: StylesConfig<unknown, boolean, import("react-select").GroupBase<unknown>> | undefined;
|
|
93
|
-
tabSelectsValue?: boolean | undefined;
|
|
94
|
-
unstyled?: boolean | undefined;
|
|
95
|
-
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("react").RefAttributes<import("react-select/dist/declarations/src/Select").default<unknown, boolean, import("react-select").GroupBase<unknown>>> & {
|
|
96
|
-
error?: string | boolean | undefined;
|
|
97
|
-
}) => JSX.Element;
|
|
1
|
+
import Select from "react-select";
|
|
2
|
+
export declare const ReactSelect: ({ styles, components, error, ...props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CSS } from "../../stitches.config";
|
|
3
2
|
import type { GroupBase, Props } from "react-select";
|
|
4
3
|
type SelectProps = {
|
|
@@ -6,5 +5,5 @@ type SelectProps = {
|
|
|
6
5
|
css?: CSS;
|
|
7
6
|
error?: boolean | string;
|
|
8
7
|
};
|
|
9
|
-
export declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ label, css, error, ...props }: SelectProps & Omit<
|
|
8
|
+
export declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ label, css, error, ...props }: SelectProps & Omit<any, "isSearchable" | "isMulti">) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -235,11 +235,9 @@ declare const Label: import("@stitches/react/types/styled-component").StyledComp
|
|
|
235
235
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
236
236
|
export declare const Switch: ({ label, stackProps, labelProps, size, ...props }: {
|
|
237
237
|
label?: string | undefined;
|
|
238
|
-
stackProps?: (Omit<
|
|
239
|
-
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
240
|
-
}, "direction" | "gap" | "css" | "align"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
238
|
+
stackProps?: (Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "direction" | "gap" | "css" | "align"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
241
239
|
direction?: "column" | "row" | undefined;
|
|
242
|
-
align?: "
|
|
240
|
+
align?: "start" | "center" | undefined;
|
|
243
241
|
gap?: 0 | 1 | "0" | "1" | "2" | "3" | 2 | 3 | 4 | "4" | "5" | "6" | "8" | 6 | 8 | 5 | 7 | "7" | undefined;
|
|
244
242
|
}, {
|
|
245
243
|
lg: "(min-width: 1200px)";
|
|
@@ -358,9 +356,7 @@ export declare const Switch: ({ label, stackProps, labelProps, size, ...props }:
|
|
|
358
356
|
};
|
|
359
357
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
360
358
|
}) | undefined;
|
|
361
|
-
labelProps?: (Omit<
|
|
362
|
-
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
363
|
-
}, "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
359
|
+
labelProps?: (Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
364
360
|
size?: "sm" | "md" | "lg" | undefined;
|
|
365
361
|
}, {
|
|
366
362
|
lg: "(min-width: 1200px)";
|
|
@@ -596,5 +592,5 @@ export declare const Switch: ({ label, stackProps, labelProps, size, ...props }:
|
|
|
596
592
|
overlayCard: number;
|
|
597
593
|
};
|
|
598
594
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
599
|
-
}) => JSX.Element;
|
|
595
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
600
596
|
export {};
|
|
@@ -2,12 +2,12 @@ import * as RDropdown from "@radix-ui/react-dropdown-menu";
|
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
export declare const DropdownMenu: ({ side, align, trigger, children, sideOffset, modal, }: {
|
|
4
4
|
side?: "left" | "right" | "bottom" | "top" | undefined;
|
|
5
|
-
align?: "
|
|
5
|
+
align?: "start" | "center" | "end" | undefined;
|
|
6
6
|
trigger: ReactNode;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
sideOffset?: number | undefined;
|
|
9
9
|
modal?: boolean | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const DropdownMenuSeparator: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RDropdown.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
|
|
12
12
|
lg: "(min-width: 1200px)";
|
|
13
13
|
print: "print";
|
|
@@ -357,4 +357,4 @@ export declare const DropdownMenuCheckboxItem: ({ value, onChange, children, }:
|
|
|
357
357
|
value: boolean;
|
|
358
358
|
onChange: (value: boolean) => void;
|
|
359
359
|
children: ReactNode;
|
|
360
|
-
}) => JSX.Element;
|
|
360
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -115,13 +115,11 @@ declare const Bar: import("@stitches/react/types/styled-component").StyledCompon
|
|
|
115
115
|
overlayCard: number;
|
|
116
116
|
};
|
|
117
117
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
118
|
-
export declare const NavBar: (props: React.ComponentProps<typeof Bar>) => JSX.Element;
|
|
118
|
+
export declare const NavBar: (props: React.ComponentProps<typeof Bar>) => import("react/jsx-runtime").JSX.Element;
|
|
119
119
|
export declare const NavBarItem: ({ children, active, ...props }: {
|
|
120
120
|
children: ReactNode;
|
|
121
121
|
active?: boolean | undefined;
|
|
122
|
-
} & Omit<Omit<
|
|
123
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
124
|
-
}, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
122
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
125
123
|
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
126
124
|
size?: "sm" | "md" | "lg" | undefined;
|
|
127
125
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
@@ -243,7 +241,7 @@ export declare const NavBarItem: ({ children, active, ...props }: {
|
|
|
243
241
|
};
|
|
244
242
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
245
243
|
} & {
|
|
246
|
-
as?: import("react").ElementType<any> | undefined;
|
|
244
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
247
245
|
isLoading?: boolean | undefined;
|
|
248
|
-
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>) => JSX.Element;
|
|
246
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
249
247
|
export {};
|
|
@@ -13,15 +13,13 @@ export declare const Popover: ({ children, offset: offsetOptions, open, onOpenCh
|
|
|
13
13
|
} | undefined;
|
|
14
14
|
placement?: Placement | undefined;
|
|
15
15
|
role?: UseRoleProps["role"];
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare const PopoverTrigger: ({ children }: {
|
|
18
18
|
children: React.ReactNode;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare const PopoverContent: ({ children, overlayCardProps }: {
|
|
21
21
|
children: React.ReactNode;
|
|
22
|
-
overlayCardProps?: (Omit<
|
|
23
|
-
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
24
|
-
}, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
22
|
+
overlayCardProps?: (Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
25
23
|
lg: "(min-width: 1200px)";
|
|
26
24
|
print: "print";
|
|
27
25
|
}> & {
|
|
@@ -138,4 +136,4 @@ export declare const PopoverContent: ({ children, overlayCardProps }: {
|
|
|
138
136
|
};
|
|
139
137
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
140
138
|
}) | undefined;
|
|
141
|
-
}) => JSX.Element | null;
|
|
139
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Spinner: import("react").ForwardRefExoticComponent<Omit<Omit<
|
|
3
|
-
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
4
|
-
}, "color" | "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
2
|
+
export declare const Spinner: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color" | "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
5
3
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
6
4
|
color?: "inherit" | "dark" | "light" | undefined;
|
|
7
5
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Stack: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
2
2
|
direction?: "column" | "row" | undefined;
|
|
3
|
-
align?: "
|
|
3
|
+
align?: "start" | "center" | undefined;
|
|
4
4
|
gap?: 0 | 1 | "0" | "1" | "2" | "3" | 2 | 3 | 4 | "4" | "5" | "6" | "8" | 6 | 8 | 5 | 7 | "7" | undefined;
|
|
5
5
|
}, {
|
|
6
6
|
lg: "(min-width: 1200px)";
|
|
@@ -345,9 +345,7 @@ export declare const ToolbarSeparator: import("@stitches/react/types/styled-comp
|
|
|
345
345
|
overlayCard: number;
|
|
346
346
|
};
|
|
347
347
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
348
|
-
export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
349
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
350
|
-
}, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
348
|
+
export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
351
349
|
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
352
350
|
size?: "sm" | "md" | "lg" | undefined;
|
|
353
351
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
@@ -469,7 +467,7 @@ export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<
|
|
|
469
467
|
};
|
|
470
468
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
471
469
|
} & {
|
|
472
|
-
as?: import("react").ElementType<any> | undefined;
|
|
470
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
473
471
|
isLoading?: boolean | undefined;
|
|
474
472
|
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
475
473
|
type ToolbarButtonProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type { CSS } from "@stitches/react";
|
|
3
|
-
export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
3
|
+
export declare const styled: <Type extends string | number | symbol | import("react").ComponentType<any> | import("@stitches/react/types/util").Function, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | {
|
|
4
4
|
[name: string]: unknown;
|
|
5
5
|
})[], CSS = import("@stitches/react/types/css-util").CSS<{
|
|
6
6
|
lg: "(min-width: 1200px)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkitektbedriftene/fe-lib",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"test": "tsc"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@types/react": "*",
|
|
65
|
-
"@types/react-dom": "*",
|
|
66
64
|
"react": "^18.2.0 || ^19.0.0",
|
|
67
65
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
68
66
|
},
|
|
69
67
|
"devDependencies": {
|
|
70
68
|
"@biomejs/biome": "^1.6.2",
|
|
71
69
|
"@types/node": "^20.12.3",
|
|
70
|
+
"@types/react": "^19.0.3",
|
|
71
|
+
"@types/react-dom": "^19.0.2",
|
|
72
72
|
"@vitejs/plugin-react-swc": "^3.0.0",
|
|
73
73
|
"typescript": "^4.9.3",
|
|
74
74
|
"vite": "^4.2.0",
|