@kreftforeningen/web-react 1.0.42 → 1.0.43
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/attachment/index.d.ts +9 -9
- package/dist/button-group/index.d.ts +3 -3
- package/dist/collapsible/index.d.ts +3 -3
- package/dist/direction/index.d.ts +1 -1
- package/dist/download/index.d.ts +9 -9
- package/dist/empty/index.d.ts +6 -6
- package/dist/field/index.d.ts +10 -10
- package/dist/footer/index.d.ts +9 -9
- package/dist/header/index.d.ts +13 -13
- package/dist/infographic/index.d.ts +7 -7
- package/dist/kbd/index.d.ts +2 -2
- package/dist/link-list/index.d.ts +4 -4
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +2 -2
- package/dist/mode-toggle/index.d.ts +1 -1
- package/dist/person/index.d.ts +8 -8
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/sonner/index.d.ts +1 -1
- package/dist/spinner/index.d.ts +1 -1
- package/dist/theme-provider/index.d.ts +1 -1
- package/package.json +16 -16
|
@@ -6,18 +6,18 @@ declare function Attachment({ className, state, size, orientation, ...props }: R
|
|
|
6
6
|
state?: AttachmentState;
|
|
7
7
|
size?: AttachmentSize;
|
|
8
8
|
orientation?: AttachmentOrientation;
|
|
9
|
-
}): import(
|
|
9
|
+
}): import('react').JSX.Element;
|
|
10
10
|
declare function AttachmentMedia({ className, variant, ...props }: React.ComponentProps<"div"> & {
|
|
11
11
|
variant?: AttachmentMediaVariant;
|
|
12
|
-
}): import(
|
|
13
|
-
declare function AttachmentContent({ className, ...props }: React.ComponentProps<"div">): import(
|
|
12
|
+
}): import('react').JSX.Element;
|
|
13
|
+
declare function AttachmentContent({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
14
14
|
declare function AttachmentTitle({ className, shimmer, ...props }: React.ComponentProps<"div"> & {
|
|
15
15
|
shimmer?: boolean;
|
|
16
|
-
}): import(
|
|
17
|
-
declare function AttachmentDescription({ className, ...props }: React.ComponentProps<"div">): import(
|
|
18
|
-
declare function AttachmentActions({ className, ...props }: React.ComponentProps<"div">): import(
|
|
19
|
-
declare function AttachmentAction({ className, ...props }: React.ComponentProps<"button">): import(
|
|
20
|
-
declare function AttachmentTrigger({ className, ...props }: React.ComponentProps<"button">): import(
|
|
21
|
-
declare function AttachmentGroup({ className, ...props }: React.ComponentProps<"div">): import(
|
|
16
|
+
}): import('react').JSX.Element;
|
|
17
|
+
declare function AttachmentDescription({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
18
|
+
declare function AttachmentActions({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
19
|
+
declare function AttachmentAction({ className, ...props }: React.ComponentProps<"button">): import('react').JSX.Element;
|
|
20
|
+
declare function AttachmentTrigger({ className, ...props }: React.ComponentProps<"button">): import('react').JSX.Element;
|
|
21
|
+
declare function AttachmentGroup({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
22
22
|
export { Attachment, AttachmentMedia, AttachmentContent, AttachmentTitle, AttachmentDescription, AttachmentActions, AttachmentAction, AttachmentTrigger, AttachmentGroup, };
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,10 +2,10 @@ import { Separator } from '../separator';
|
|
|
2
2
|
type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
3
3
|
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & {
|
|
4
4
|
orientation?: ButtonGroupOrientation;
|
|
5
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
6
6
|
declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
7
7
|
asChild?: boolean;
|
|
8
|
-
}): import(
|
|
9
|
-
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
9
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import('react').JSX.Element;
|
|
10
10
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
|
|
2
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import(
|
|
3
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import(
|
|
4
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import(
|
|
2
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import('react').JSX.Element;
|
|
3
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import('react').JSX.Element;
|
|
4
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import('react').JSX.Element;
|
|
5
5
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@ type DirectionProviderProps = {
|
|
|
3
3
|
direction: Direction;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
-
declare function DirectionProvider({ direction, children }: DirectionProviderProps): import(
|
|
6
|
+
declare function DirectionProvider({ direction, children }: DirectionProviderProps): import('react').JSX.Element;
|
|
7
7
|
declare function useDirection(): Direction;
|
|
8
8
|
export { DirectionProvider, useDirection };
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/download/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
type DownloadVariant = "default" | "destructive";
|
|
2
2
|
declare function Download({ className, variant, ...props }: React.ComponentProps<"div"> & {
|
|
3
3
|
variant?: DownloadVariant;
|
|
4
|
-
}): import(
|
|
5
|
-
declare function DownloadImage({ className, src, ...props }: React.ComponentProps<"img">): import(
|
|
6
|
-
declare function DownloadContent({ className, ...props }: React.ComponentProps<"div">): import(
|
|
7
|
-
declare function DownloadMain({ className, ...props }: React.ComponentProps<"div">): import(
|
|
8
|
-
declare function DownloadTitle({ className, children, ...props }: React.ComponentProps<"h3">): import(
|
|
9
|
-
declare function DownloadDescription({ className, children, ...props }: React.ComponentProps<"p">): import(
|
|
10
|
-
declare function DownloadFooter({ className, ...props }: React.ComponentProps<"footer">): import(
|
|
11
|
-
declare function DownloadDownloadUrl({ className, children, href, ...props }: React.ComponentProps<"a">): import(
|
|
12
|
-
declare function DownloadOrderUrl({ className, children, href, ...props }: React.ComponentProps<"a">): import(
|
|
4
|
+
}): import('react').JSX.Element;
|
|
5
|
+
declare function DownloadImage({ className, src, ...props }: React.ComponentProps<"img">): import('react').JSX.Element | null;
|
|
6
|
+
declare function DownloadContent({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
7
|
+
declare function DownloadMain({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
8
|
+
declare function DownloadTitle({ className, children, ...props }: React.ComponentProps<"h3">): import('react').JSX.Element | null;
|
|
9
|
+
declare function DownloadDescription({ className, children, ...props }: React.ComponentProps<"p">): import('react').JSX.Element | null;
|
|
10
|
+
declare function DownloadFooter({ className, ...props }: React.ComponentProps<"footer">): import('react').JSX.Element;
|
|
11
|
+
declare function DownloadDownloadUrl({ className, children, href, ...props }: React.ComponentProps<"a">): import('react').JSX.Element | null;
|
|
12
|
+
declare function DownloadOrderUrl({ className, children, href, ...props }: React.ComponentProps<"a">): import('react').JSX.Element | null;
|
|
13
13
|
export { Download, DownloadContent, DownloadImage, DownloadMain, DownloadTitle, DownloadDescription, DownloadFooter, DownloadDownloadUrl, DownloadOrderUrl, };
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/empty/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
type EmptyMediaVariant = "default" | "icon";
|
|
2
|
-
declare function Empty({ className, ...props }: React.ComponentProps<"div">): import(
|
|
3
|
-
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import(
|
|
2
|
+
declare function Empty({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
3
|
+
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
4
4
|
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & {
|
|
5
5
|
variant?: EmptyMediaVariant;
|
|
6
|
-
}): import(
|
|
7
|
-
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import(
|
|
8
|
-
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import(
|
|
9
|
-
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
7
|
+
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
8
|
+
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import('react').JSX.Element;
|
|
9
|
+
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
10
10
|
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/field/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Label } from '../label';
|
|
2
2
|
type FieldOrientation = "vertical" | "horizontal" | "responsive";
|
|
3
|
-
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import(
|
|
3
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import('react').JSX.Element;
|
|
4
4
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
5
5
|
variant?: "legend" | "label";
|
|
6
|
-
}): import(
|
|
7
|
-
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
7
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
8
8
|
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & {
|
|
9
9
|
orientation?: FieldOrientation;
|
|
10
|
-
}): import(
|
|
11
|
-
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import(
|
|
12
|
-
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import(
|
|
13
|
-
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import(
|
|
14
|
-
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import(
|
|
10
|
+
}): import('react').JSX.Element;
|
|
11
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
12
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import('react').JSX.Element;
|
|
13
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
14
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import('react').JSX.Element;
|
|
15
15
|
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
|
-
}): import(
|
|
17
|
+
}): import('react').JSX.Element;
|
|
18
18
|
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
19
19
|
errors?: Array<{
|
|
20
20
|
message?: string;
|
|
21
21
|
} | undefined>;
|
|
22
|
-
}): import(
|
|
22
|
+
}): import('react').JSX.Element | null;
|
|
23
23
|
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/footer/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
declare function FooterWrapper({ className, children, ...props }: React.ComponentProps<"footer"> & {
|
|
2
2
|
children?: React.ReactNode;
|
|
3
|
-
}): import(
|
|
3
|
+
}): import('react').JSX.Element;
|
|
4
4
|
declare function FooterActions({ children }: {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
7
7
|
declare function FooterSocial({ children }: {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
-
}): import(
|
|
9
|
+
}): import('react').JSX.Element;
|
|
10
10
|
declare function FooterNavigation({ children }: {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
|
-
}): import(
|
|
12
|
+
}): import('react').JSX.Element;
|
|
13
13
|
declare function FooterNavigationItem({ children }: {
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
-
}): import(
|
|
15
|
+
}): import('react').JSX.Element;
|
|
16
16
|
declare function FooterNavigationLink({ children, href, }: {
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
href: string;
|
|
19
|
-
}): import(
|
|
19
|
+
}): import('react').JSX.Element;
|
|
20
20
|
declare function FooterContact({ children }: {
|
|
21
21
|
children?: React.ReactNode;
|
|
22
|
-
}): import(
|
|
22
|
+
}): import('react').JSX.Element;
|
|
23
23
|
declare function FooterContactItem({ children, href, }: {
|
|
24
24
|
children?: React.ReactNode;
|
|
25
25
|
href: string;
|
|
26
|
-
}): import(
|
|
26
|
+
}): import('react').JSX.Element;
|
|
27
27
|
declare function FooterCopyright({ children }: {
|
|
28
28
|
children?: React.ReactNode;
|
|
29
|
-
}): import(
|
|
29
|
+
}): import('react').JSX.Element;
|
|
30
30
|
export { FooterWrapper, FooterSocial, FooterNavigation, FooterNavigationItem, FooterNavigationLink, FooterContact, FooterActions, FooterContactItem, FooterCopyright, };
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/header/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
declare function HeaderWrapper({ className, ...props }: React.ComponentProps<"header">): import(
|
|
1
|
+
declare function HeaderWrapper({ className, ...props }: React.ComponentProps<"header">): import('react').JSX.Element;
|
|
2
2
|
declare function HeaderLogo({ className, src, darkSrc, href, ...props }: React.ComponentProps<"img"> & {
|
|
3
3
|
darkSrc?: string;
|
|
4
4
|
href?: string;
|
|
5
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element | null;
|
|
6
6
|
declare function HeaderTitle({ className, href, ...props }: React.ComponentProps<"span"> & {
|
|
7
7
|
href?: string;
|
|
8
|
-
}): import(
|
|
9
|
-
declare function HeaderNavigation({ className, ...props }: React.ComponentProps<"main">): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
9
|
+
declare function HeaderNavigation({ className, ...props }: React.ComponentProps<"main">): import('react').JSX.Element;
|
|
10
10
|
declare function HeaderSearch({ placeholder, ...props }: React.ComponentProps<"input"> & {
|
|
11
11
|
placeholder?: string;
|
|
12
|
-
}): import(
|
|
12
|
+
}): import('react').JSX.Element;
|
|
13
13
|
declare function HeaderButton({ href, children, className, variant, }: React.ComponentProps<"p"> & {
|
|
14
14
|
href: string;
|
|
15
15
|
variant?: "default" | "outline" | "destructive";
|
|
16
|
-
}): import(
|
|
17
|
-
declare function HeaderMenu({ children }: React.ComponentProps<"div">): import(
|
|
18
|
-
declare function HeaderMenuTrigger({ children }: React.ComponentProps<"div">): import(
|
|
19
|
-
declare function HeaderMenuContent({ children }: React.ComponentProps<"div">): import(
|
|
20
|
-
declare function HeaderMenuFooter({ className, children, }: React.ComponentProps<"div">): import(
|
|
21
|
-
declare function HeaderMenuList({ children }: React.ComponentProps<"ul">): import(
|
|
16
|
+
}): import('react').JSX.Element | null;
|
|
17
|
+
declare function HeaderMenu({ children }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
18
|
+
declare function HeaderMenuTrigger({ children }: React.ComponentProps<"div">): import('react').JSX.Element | null;
|
|
19
|
+
declare function HeaderMenuContent({ children }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
20
|
+
declare function HeaderMenuFooter({ className, children, }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
21
|
+
declare function HeaderMenuList({ children }: React.ComponentProps<"ul">): import('react').JSX.Element;
|
|
22
22
|
declare function HeaderMenuListItem({ children, href, ...props }: React.ComponentProps<"a"> & {
|
|
23
23
|
href: string;
|
|
24
|
-
}): import(
|
|
25
|
-
declare function HeaderMenuClose(): import(
|
|
24
|
+
}): import('react').JSX.Element;
|
|
25
|
+
declare function HeaderMenuClose(): import('react').JSX.Element;
|
|
26
26
|
export { HeaderWrapper, HeaderLogo, HeaderNavigation, HeaderButton, HeaderSearch, HeaderMenu, HeaderMenuTrigger, HeaderMenuContent, HeaderMenuList, HeaderMenuListItem, HeaderMenuFooter, HeaderMenuClose, HeaderTitle, };
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HGrid } from '../lib/main';
|
|
2
|
-
declare function Infographic({ className, ...props }: React.ComponentProps<typeof HGrid>): import(
|
|
3
|
-
declare function InfographicItem({ className, ...props }: React.ComponentProps<"article">): import(
|
|
4
|
-
declare function InfographicItemIcon({ ...props }: React.ComponentProps<"div">): import(
|
|
5
|
-
declare function InfographicItemTitle({ className, ...props }: React.ComponentProps<"h3">): import(
|
|
6
|
-
declare function InfographicItemTitleNumber({ className, ...props }: React.ComponentProps<"span">): import(
|
|
7
|
-
declare function InfographicItemTitleText({ className, ...props }: React.ComponentProps<"span">): import(
|
|
8
|
-
declare function InfographicItemDescription({ className, ...props }: React.ComponentProps<"p">): import(
|
|
2
|
+
declare function Infographic({ className, ...props }: React.ComponentProps<typeof HGrid>): import('react').JSX.Element;
|
|
3
|
+
declare function InfographicItem({ className, ...props }: React.ComponentProps<"article">): import('react').JSX.Element;
|
|
4
|
+
declare function InfographicItemIcon({ ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
5
|
+
declare function InfographicItemTitle({ className, ...props }: React.ComponentProps<"h3">): import('react').JSX.Element;
|
|
6
|
+
declare function InfographicItemTitleNumber({ className, ...props }: React.ComponentProps<"span">): import('react').JSX.Element;
|
|
7
|
+
declare function InfographicItemTitleText({ className, ...props }: React.ComponentProps<"span">): import('react').JSX.Element;
|
|
8
|
+
declare function InfographicItemDescription({ className, ...props }: React.ComponentProps<"p">): import('react').JSX.Element;
|
|
9
9
|
export { Infographic, InfographicItem, InfographicItemIcon, InfographicItemTitle, InfographicItemTitleNumber, InfographicItemTitleText, InfographicItemDescription, };
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/kbd/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import(
|
|
2
|
-
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import(
|
|
1
|
+
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import('react').JSX.Element;
|
|
2
|
+
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
3
3
|
export { Kbd, KbdGroup };
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
type LinkListVariant = "default" | "list";
|
|
2
2
|
declare function LinkList({ className, variant, ...props }: React.ComponentProps<"div"> & {
|
|
3
3
|
variant?: LinkListVariant;
|
|
4
|
-
}): import(
|
|
5
|
-
declare function LinkListItem({ className, ...props }: React.ComponentProps<"a">): import(
|
|
6
|
-
declare function LinkListTitle({ className, ...props }: React.ComponentProps<"div">): import(
|
|
7
|
-
declare function LinkListDescription({ className, ...props }: React.ComponentProps<"p">): import(
|
|
4
|
+
}): import('react').JSX.Element;
|
|
5
|
+
declare function LinkListItem({ className, ...props }: React.ComponentProps<"a">): import('react').JSX.Element;
|
|
6
|
+
declare function LinkListTitle({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
7
|
+
declare function LinkListDescription({ className, ...props }: React.ComponentProps<"p">): import('react').JSX.Element;
|
|
8
8
|
export { LinkList, LinkListItem, LinkListTitle, LinkListDescription };
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/main.cjs.js
CHANGED
|
@@ -2383,7 +2383,7 @@ ${Object.entries(yt).map(([t,n])=>` ${n.css}: var(--kf-box-${t}-${e}, var(--k
|
|
|
2383
2383
|
white-space: nowrap;
|
|
2384
2384
|
border: 0;
|
|
2385
2385
|
}
|
|
2386
|
-
`;function B(){let e=u.useContext(Qt);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function en({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o}){let[s,c]=(0,g.default)({...t,axis:e===`horizontal`?`x`:`y`},r),[l,d]=u.useState(!1),[p,m]=u.useState(!1),[h,_]=u.useState(t?.startIndex||0),v=u.useCallback(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()),_(e.selectedScrollSnap()))},[]),y=u.useCallback(()=>{c?.scrollPrev()},[c]),b=u.useCallback(()=>{c?.scrollNext()},[c]),x=u.useCallback(e=>{e!==c?.selectedScrollSnap()&&((c?.plugins()?.autoplay)?.reset?.(),c?.scrollTo(e))},[c]),S=u.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return u.useEffect(()=>{
|
|
2386
|
+
`;function B(){let e=u.useContext(Qt);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function en({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o}){let[s,c]=(0,g.default)({...t,axis:e===`horizontal`?`x`:`y`},r),[l,d]=u.useState(!1),[p,m]=u.useState(!1),[h,_]=u.useState(t?.startIndex||0),v=u.useCallback(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()),_(e.selectedScrollSnap()))},[]),y=u.useCallback(()=>{c?.scrollPrev()},[c]),b=u.useCallback(()=>{c?.scrollNext()},[c]),x=u.useCallback(e=>{e!==c?.selectedScrollSnap()&&((c?.plugins()?.autoplay)?.reset?.(),c?.scrollTo(e))},[c]),S=u.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return u.useEffect(()=>{c&&n&&n(c)},[c,n]),u.useEffect(()=>c?(c.on(`reInit`,v),c.on(`select`,v),requestAnimationFrame(()=>v(c)),()=>{c.off(`reInit`,v),c.off(`select`,v)}):void 0,[c,v]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)($t,{}),(0,f.jsx)(Qt.Provider,{value:{carouselRef:s,api:c,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,scrollTo:x,canScrollPrev:l,canScrollNext:p,selectedIndex:h},children:(0,f.jsx)(`div`,{onKeyDownCapture:S,className:w(`kf-carousel`,i),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,"data-orientation":e||(t?.axis===`y`?`vertical`:`horizontal`),...o,children:a})})]})}function tn({children:e,className:t,...n}){return(0,f.jsx)(`div`,{className:w(`kf-carousel__viewport-wrapper`,t),...n,children:e})}function nn({className:e,...t}){let{carouselRef:n,orientation:r}=B();return(0,f.jsx)(`div`,{className:`kf-carousel__viewport-wrapper`,"data-slot":`carousel-content`,children:(0,f.jsx)(`div`,{ref:n,id:`carousel-content`,className:`kf-carousel__viewport`,"data-orientation":r,children:(0,f.jsx)(`div`,{className:w(`kf-carousel__track`,e),"data-orientation":r,...t})})})}function rn({className:e,...t}){let{selectedIndex:n,scrollTo:r,api:i}=B();return(0,f.jsx)(`div`,{role:`tablist`,className:w(`kf-carousel__dots`,e),...t,children:i?.scrollSnapList().map((e,t)=>(0,f.jsx)(`button`,{role:`tab`,"data-slot":`carousel-dot`,"aria-selected":t===n,"aria-controls":`carousel-content`,"aria-label":`Slide ${t+1}`,className:`kf-carousel__dot`,"data-selected":t===n?`true`:void 0,onClick:()=>r(t)},t))})}function an({className:e,...t}){let{orientation:n}=B();return(0,f.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:w(`kf-carousel__item`,e),"data-orientation":n,...t})}function on({className:e,children:t,...n}){return(0,f.jsx)(`div`,{"data-slot":`carousel-item-description`,className:w(`kf-carousel__item-description`,e),...n,children:(0,f.jsx)(`div`,{className:`kf-carousel__item-description-content`,children:t})})}function sn({className:e,variant:t=`default`,size:n=`icon`,...r}){let{orientation:i,scrollPrev:a,canScrollPrev:o}=B();return(0,f.jsxs)(P,{"data-slot":`carousel-previous`,variant:t,size:n,className:w(`kf-carousel__control kf-carousel__control--previous`,e),disabled:!o,onClick:a,"data-orientation":i,...r,children:[(0,f.jsx)(l.ArrowLeft,{}),(0,f.jsx)(`span`,{className:`kf-carousel__sr-only`,children:`Previous slide`})]})}function cn({className:e,variant:t=`default`,size:n=`icon`,...r}){let{orientation:i,scrollNext:a,canScrollNext:o}=B();return(0,f.jsxs)(P,{"data-slot":`carousel-next`,variant:t,size:n,className:w(`kf-carousel__control kf-carousel__control--next`,e),disabled:!o,onClick:a,"data-orientation":i,...r,children:[(0,f.jsx)(l.ArrowRight,{}),(0,f.jsx)(`span`,{className:`kf-carousel__sr-only`,children:`Next slide`})]})}var ln={light:``,dark:`.dark`},un=u.createContext(null);function dn(){let e=u.useContext(un);if(!e)throw Error(`useChart must be used within a <ChartContainer />`);return e}function fn({id:e,className:t,children:n,config:r,...i}){let a=u.useId(),o=`chart-${e||a.replace(/:/g,``)}`;return(0,f.jsx)(un.Provider,{value:{config:r},children:(0,f.jsxs)(`div`,{"data-slot":`chart`,"data-chart":o,className:w(`[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,t),...i,children:[(0,f.jsx)(pn,{id:o,config:r}),(0,f.jsx)(_.ResponsiveContainer,{children:n})]})})}var pn=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme||e.color);return n.length?(0,f.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(ln).map(([t,r])=>`
|
|
2387
2387
|
${r} [data-chart=${e}] {
|
|
2388
2388
|
${n.map(([e,n])=>{let r=n.theme?.[t]||n.color;return r?` --kf-color-${e}: ${r};`:null}).join(`
|
|
2389
2389
|
`)}
|
|
@@ -8447,7 +8447,7 @@ ${Object.entries(oo).map(([t,n])=>` ${n.css}: var(--kf-hstack-${t}-${e}, var(
|
|
|
8447
8447
|
flex: 1;
|
|
8448
8448
|
outline: none;
|
|
8449
8449
|
}
|
|
8450
|
-
`;function Ml({className:e,...t}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(jl,{}),(0,f.jsx)(p.Tabs.Root,{"data-slot":`tabs`,className:w(`kf-tabs`,e),...t})]})}function Nl({className:e,...t}){return(0,f.jsx)(p.Tabs.List,{"data-slot":`tabs-list`,className:w(`kf-tabs__list`,e),...t})}function Pl({className:e,...t}){return(0,f.jsx)(p.Tabs.Trigger,{"data-slot":`tabs-trigger`,className:w(`kf-tabs__trigger`,e),...t})}function Fl({className:e,...t}){return(0,f.jsx)(p.Tabs.Content,{"data-slot":`tabs-content`,className:w(`kf-tabs__content`,e),...t})}var Il=`[data-kreftforeningen-web-react]`;function Ll(e){if(e.includes(Il))return e;let t=e.trim();return t===`html`||t===`body`?Il:t.startsWith(`html `)||t.startsWith(`body `)?`${Il} ${t.slice(t.indexOf(` `)+1)}`:e.includes(`:root`)?e.replace(/:root/g,Il):`${Il} ${e}`}function Rl(e){e.type
|
|
8450
|
+
`;function Ml({className:e,...t}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(jl,{}),(0,f.jsx)(p.Tabs.Root,{"data-slot":`tabs`,className:w(`kf-tabs`,e),...t})]})}function Nl({className:e,...t}){return(0,f.jsx)(p.Tabs.List,{"data-slot":`tabs-list`,className:w(`kf-tabs__list`,e),...t})}function Pl({className:e,...t}){return(0,f.jsx)(p.Tabs.Trigger,{"data-slot":`tabs-trigger`,className:w(`kf-tabs__trigger`,e),...t})}function Fl({className:e,...t}){return(0,f.jsx)(p.Tabs.Content,{"data-slot":`tabs-content`,className:w(`kf-tabs__content`,e),...t})}var Il=`[data-kreftforeningen-web-react]`;function Ll(e){if(e.includes(Il))return e;let t=e.trim();return t===`html`||t===`body`?Il:t.startsWith(`html `)||t.startsWith(`body `)?`${Il} ${t.slice(t.indexOf(` `)+1)}`:e.includes(`:root`)?e.replace(/:root/g,Il):`${Il} ${e}`}function Rl(e){e.type===`rule`&&Array.isArray(e.props)&&(typeof e.parent?.value==`string`&&e.parent.value.includes(`@keyframes`)||(e.props=e.props.map(Ll)))}function zl({children:e,defaultTheme:t=`system`,storageKey:n=`vite-ui-theme`}){let[r,i]=(0,u.useState)(()=>typeof window>`u`?t:localStorage.getItem(n)||t),a=(0,u.useSyncExternalStore)(e=>{if(typeof window>`u`)return()=>{};let t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},()=>typeof window>`u`?!1:window.matchMedia(`(prefers-color-scheme: dark)`).matches,()=>!1),o=(0,u.useMemo)(()=>r===`system`?a?`dark`:`light`:r,[a,r]);(0,u.useEffect)(()=>{let e=window.document.documentElement,t=window.document.body;return e.classList.remove(`light`,`dark`),e.classList.add(o),t.setAttribute(`data-kreftforeningen-web-react`,``),t.classList.remove(`light`,`dark`),t.classList.add(o),()=>{e.classList.remove(`light`,`dark`),t.removeAttribute(`data-kreftforeningen-web-react`),t.classList.remove(`light`,`dark`)}},[o]);let s={theme:r,setTheme:e=>{localStorage.setItem(n,e),i(e)}};return(0,f.jsx)(d.StyleSheetManager,{stylisPlugins:[Rl],children:(0,f.jsx)(`div`,{"data-kreftforeningen-web-react":!0,className:o,children:(0,f.jsx)(Ji.Provider,{value:s,children:e})})})}var Bl=d.createGlobalStyle`
|
|
8451
8451
|
.kf-timeline {
|
|
8452
8452
|
display: flex;
|
|
8453
8453
|
flex-direction: column;
|
package/dist/main.es.js
CHANGED
|
@@ -3515,7 +3515,7 @@ function $n({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, cla
|
|
|
3515
3515
|
e.key === "ArrowLeft" ? (e.preventDefault(), g()) : e.key === "ArrowRight" && (e.preventDefault(), _());
|
|
3516
3516
|
}, [g, _]);
|
|
3517
3517
|
return x.useEffect(() => {
|
|
3518
|
-
|
|
3518
|
+
c && n && n(c);
|
|
3519
3519
|
}, [c, n]), x.useEffect(() => c ? (c.on("reInit", h), c.on("select", h), requestAnimationFrame(() => h(c)), () => {
|
|
3520
3520
|
c.off("reInit", h), c.off("select", h);
|
|
3521
3521
|
}) : void 0, [c, h]), /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(Zn, {}), /* @__PURE__ */ T(Xn.Provider, {
|
|
@@ -13031,7 +13031,7 @@ function Ru(e) {
|
|
|
13031
13031
|
return t === "html" || t === "body" ? Lu : t.startsWith("html ") || t.startsWith("body ") ? `${Lu} ${t.slice(t.indexOf(" ") + 1)}` : e.includes(":root") ? e.replace(/:root/g, Lu) : `${Lu} ${e}`;
|
|
13032
13032
|
}
|
|
13033
13033
|
function zu(e) {
|
|
13034
|
-
e.type
|
|
13034
|
+
e.type === "rule" && Array.isArray(e.props) && (typeof e.parent?.value == "string" && e.parent.value.includes("@keyframes") || (e.props = e.props.map(Ru)));
|
|
13035
13035
|
}
|
|
13036
13036
|
function Bu({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme" }) {
|
|
13037
13037
|
let [r, i] = ue(() => typeof window > "u" ? t : localStorage.getItem(n) || t), a = de((e) => {
|
|
@@ -3,6 +3,6 @@ declare function ModeToggle({ variant, align, children, size, }: {
|
|
|
3
3
|
align?: "start" | "end";
|
|
4
4
|
size?: "icon" | "default";
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
7
7
|
export { ModeToggle };
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/person/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare function Person({ className, ...props }: React.ComponentProps<"div">): import(
|
|
1
|
+
declare function Person({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
2
2
|
declare function PersonImage({ className, fallback, ...props }: React.ComponentPropsWithoutRef<"img"> & {
|
|
3
3
|
fallback?: string;
|
|
4
|
-
}): import(
|
|
5
|
-
declare function PersonContent({ className, ...props }: React.ComponentProps<"div">): import(
|
|
6
|
-
declare function PersonName({ className, ...props }: React.ComponentProps<"h3">): import(
|
|
7
|
-
declare function PersonTitle({ className, ...props }: React.ComponentProps<"p">): import(
|
|
8
|
-
declare function PersonEmail({ className, ...props }: React.ComponentProps<"a">): import(
|
|
9
|
-
declare function PersonPhone({ className, ...props }: React.ComponentProps<"a">): import(
|
|
10
|
-
declare function PersonDescription({ className, children, ...props }: React.ComponentPropsWithoutRef<"button">): import(
|
|
4
|
+
}): import('react').JSX.Element;
|
|
5
|
+
declare function PersonContent({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
6
|
+
declare function PersonName({ className, ...props }: React.ComponentProps<"h3">): import('react').JSX.Element;
|
|
7
|
+
declare function PersonTitle({ className, ...props }: React.ComponentProps<"p">): import('react').JSX.Element;
|
|
8
|
+
declare function PersonEmail({ className, ...props }: React.ComponentProps<"a">): import('react').JSX.Element;
|
|
9
|
+
declare function PersonPhone({ className, ...props }: React.ComponentProps<"a">): import('react').JSX.Element;
|
|
10
|
+
declare function PersonDescription({ className, children, ...props }: React.ComponentPropsWithoutRef<"button">): import('react').JSX.Element;
|
|
11
11
|
export { Person, PersonImage, PersonContent, PersonName, PersonTitle, PersonEmail, PersonPhone, PersonDescription, };
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/skeleton/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import(
|
|
1
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import('react').JSX.Element;
|
|
2
2
|
export { Skeleton };
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/sonner/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ToasterProps } from 'sonner';
|
|
2
|
-
declare const Toaster: ({ className, ...props }: ToasterProps) => import(
|
|
2
|
+
declare const Toaster: ({ className, ...props }: ToasterProps) => import('react').JSX.Element;
|
|
3
3
|
export { Toaster };
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/spinner/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): import(
|
|
1
|
+
declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): import('react').JSX.Element;
|
|
2
2
|
export { Spinner };
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,6 +4,6 @@ type ThemeProviderProps = {
|
|
|
4
4
|
defaultTheme?: Theme;
|
|
5
5
|
storageKey?: string;
|
|
6
6
|
};
|
|
7
|
-
declare function ThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): import(
|
|
7
|
+
declare function ThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): import('react').JSX.Element;
|
|
8
8
|
export { ThemeProvider };
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kreftforeningen/web-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"cmdk": "^1.1.1",
|
|
31
31
|
"date-fns": "^4.4.0",
|
|
32
32
|
"embla-carousel-react": "^8.6.0",
|
|
33
|
-
"input-otp": "^1.
|
|
34
|
-
"lucide-react": "^1.
|
|
33
|
+
"input-otp": "^1.5.0",
|
|
34
|
+
"lucide-react": "^1.48.0",
|
|
35
35
|
"next-themes": "^0.4.6",
|
|
36
36
|
"radix-ui": "^1.6.7",
|
|
37
37
|
"react-day-picker": "^10.0.1",
|
|
38
38
|
"react-icons": "^5.7.0",
|
|
39
|
-
"react-resizable-panels": "^4.
|
|
40
|
-
"react-router-dom": "^7.18.
|
|
39
|
+
"react-resizable-panels": "^4.13.3",
|
|
40
|
+
"react-router-dom": "^7.18.4",
|
|
41
41
|
"recharts": "^3.10.1",
|
|
42
42
|
"sonner": "^2.0.8",
|
|
43
43
|
"vaul": "^1.1.2"
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@eslint/js": "^10.0.1",
|
|
47
47
|
"@kreftforeningen/web-css": "^1.0.21",
|
|
48
|
-
"@types/node": "^26.2
|
|
49
|
-
"@types/react": "^19.
|
|
50
|
-
"@types/react-dom": "^19.
|
|
51
|
-
"@vitejs/plugin-react": "^6.
|
|
52
|
-
"eslint": "^10.
|
|
48
|
+
"@types/node": "^26.6.2",
|
|
49
|
+
"@types/react": "^19.3.0",
|
|
50
|
+
"@types/react-dom": "^19.3.0",
|
|
51
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
52
|
+
"eslint": "^10.11.0",
|
|
53
53
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
54
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
55
|
-
"globals": "^17.
|
|
56
|
-
"styled-components": "^6.5.
|
|
54
|
+
"eslint-plugin-react-refresh": "^0.5.7",
|
|
55
|
+
"globals": "^17.12.0",
|
|
56
|
+
"styled-components": "^6.5.3",
|
|
57
57
|
"typescript": "^6.0.3",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
59
|
-
"vite": "^8.
|
|
58
|
+
"typescript-eslint": "^8.70.1",
|
|
59
|
+
"vite": "^8.3.1",
|
|
60
60
|
"vite-plugin-css-injected-by-js": "^5.0.2",
|
|
61
|
-
"vite-plugin-dts": "^5.
|
|
61
|
+
"vite-plugin-dts": "^5.1.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@kreftforeningen/web-css": "^1.0.19",
|