@arkitektbedriftene/fe-lib 2.5.3 → 3.0.0

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.
Files changed (35) hide show
  1. package/dist/icons/icons.d.ts +1 -2
  2. package/dist/oidc/impersonate.d.ts +1 -1
  3. package/dist/oidc/oidc.d.ts +1 -1
  4. package/dist/rich-text/Editor.d.ts +1 -1
  5. package/dist/rich-text/Plugins/AlignPlugin.d.ts +1 -2
  6. package/dist/rich-text/Plugins/Image/ImageComponent.d.ts +2 -2
  7. package/dist/rich-text/Plugins/Image/ImageNode.d.ts +3 -3
  8. package/dist/rich-text/Plugins/Image/ImagePlugin.d.ts +2 -2
  9. package/dist/rich-text/Plugins/LinkEditPlugin.d.ts +1 -2
  10. package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +1 -2
  11. package/dist/rich-text/Plugins/Plugins.d.ts +1 -2
  12. package/dist/rich-text/Plugins/RutineLinkNode.d.ts +6 -2
  13. package/dist/rich-text/Plugins/TableEditPlugin.d.ts +1 -2
  14. package/dist/rich-text/Toolbar/BlockTypeSelector.d.ts +1 -2
  15. package/dist/rich-text/Toolbar/InsertSelector.d.ts +1 -2
  16. package/dist/rich-text/Toolbar/TextFormatToggleGroup.d.ts +1 -2
  17. package/dist/rich-text/Toolbar/Toolbar.d.ts +2 -2
  18. package/dist/rich-text/rich-text.d.ts +1 -0
  19. package/dist/rich-text.es.js +282 -282
  20. package/dist/ui/components/Avatar.d.ts +2 -4
  21. package/dist/ui/components/Dialog.d.ts +1 -1
  22. package/dist/ui/components/Form/Checkbox.d.ts +1 -1
  23. package/dist/ui/components/Form/Combobox.d.ts +1 -2
  24. package/dist/ui/components/Form/ReactSelect.d.ts +2 -97
  25. package/dist/ui/components/Form/Select.d.ts +1 -2
  26. package/dist/ui/components/Form/Switch.d.ts +4 -8
  27. package/dist/ui/components/Menu/DropdownMenu.d.ts +3 -3
  28. package/dist/ui/components/NavBar.d.ts +4 -6
  29. package/dist/ui/components/Popover.d.ts +4 -6
  30. package/dist/ui/components/Spinner.d.ts +1 -3
  31. package/dist/ui/components/Stack.d.ts +1 -1
  32. package/dist/ui/components/Toolbar.d.ts +2 -4
  33. package/dist/ui/components/Tooltip.d.ts +1 -2
  34. package/dist/ui/stitches.config.d.ts +1 -1
  35. package/package.json +13 -13
@@ -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<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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<Props<Option, IsMulti, Group>, "isSearchable">) => JSX.Element;
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
- /// <reference types="react" />
2
- import Select, { type StylesConfig } from "react-select";
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<Props<Option, IsMulti, Group>, "isMulti" | "isSearchable">) => JSX.Element;
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<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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?: "center" | "start" | undefined;
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<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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?: "center" | "start" | "end" | undefined;
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<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
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<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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?: "center" | "start" | undefined;
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<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
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,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare const Tooltip: ({ children, content }: {
3
2
  children: React.ReactNode;
4
3
  content: React.ReactNode;
5
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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> | keyof JSX.IntrinsicElements | import("@stitches/react/types/util").Function, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | {
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",
3
+ "version": "3.0.0",
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",
@@ -76,15 +76,15 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@floating-ui/react": "^0.26.0",
79
- "@lexical/headless": "~0.17.0",
80
- "@lexical/html": "~0.17.0",
81
- "@lexical/link": "~0.17.0",
82
- "@lexical/list": "~0.17.0",
83
- "@lexical/react": "~0.17.0",
84
- "@lexical/rich-text": "~0.17.0",
85
- "@lexical/selection": "~0.17.0",
86
- "@lexical/table": "~0.17.0",
87
- "@lexical/utils": "~0.17.0",
79
+ "@lexical/headless": "~0.23.0",
80
+ "@lexical/html": "~0.23.0",
81
+ "@lexical/link": "~0.23.0",
82
+ "@lexical/list": "~0.23.0",
83
+ "@lexical/react": "~0.23.0",
84
+ "@lexical/rich-text": "~0.23.0",
85
+ "@lexical/selection": "~0.23.0",
86
+ "@lexical/table": "~0.23.0",
87
+ "@lexical/utils": "~0.23.0",
88
88
  "@radix-ui/react-checkbox": "^1.1.3",
89
89
  "@radix-ui/react-dialog": "^1.1.4",
90
90
  "@radix-ui/react-dropdown-menu": "^2.1.4",
@@ -92,7 +92,7 @@
92
92
  "@radix-ui/react-toolbar": "^1.1.1",
93
93
  "@stitches/react": "^1.2.8",
94
94
  "jwt-decode": "^4.0.0",
95
- "lexical": "~0.17.0",
95
+ "lexical": "~0.23.0",
96
96
  "oidc-client-ts": "^2.2.2",
97
97
  "react-icons": "^4.8.0",
98
98
  "react-select": "^5.8.0",