@kjun-ui/react 0.18.0 → 0.19.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.
- package/dist/index.cjs +1911 -1281
- package/dist/index.js +1998 -1366
- package/dist/styles.css +644 -411
- package/dist/types/packages/react/src/app-navigation.d.cts +12 -8
- package/dist/types/packages/react/src/app-navigation.d.ts +12 -8
- package/dist/types/packages/react/src/display.d.cts +8 -2
- package/dist/types/packages/react/src/display.d.ts +8 -2
- package/dist/types/packages/react/src/drawer.d.cts +3 -5
- package/dist/types/packages/react/src/drawer.d.ts +3 -5
- package/dist/types/packages/react/src/fab.d.cts +3 -3
- package/dist/types/packages/react/src/fab.d.ts +3 -3
- package/dist/types/packages/react/src/feedback.d.cts +12 -3
- package/dist/types/packages/react/src/feedback.d.ts +12 -3
- package/dist/types/packages/react/src/index.d.cts +2 -0
- package/dist/types/packages/react/src/index.d.ts +2 -0
- package/dist/types/packages/react/src/layout-primitives.d.cts +24 -24
- package/dist/types/packages/react/src/layout-primitives.d.ts +24 -24
- package/dist/types/packages/react/src/modal.d.cts +3 -1
- package/dist/types/packages/react/src/modal.d.ts +3 -1
- package/dist/types/packages/react/src/provider.d.cts +4 -1
- package/dist/types/packages/react/src/provider.d.ts +4 -1
- package/dist/types/packages/react/src/skeleton-phase.d.cts +2 -0
- package/dist/types/packages/react/src/skeleton-phase.d.ts +2 -0
- package/dist/types/packages/react/src/skeletons.d.cts +19 -4
- package/dist/types/packages/react/src/skeletons.d.ts +19 -4
- package/dist/types/packages/react/src/table-cards.d.cts +6 -3
- package/dist/types/packages/react/src/table-cards.d.ts +6 -3
- package/dist/types/packages/react/src/table-list.d.cts +2 -6
- package/dist/types/packages/react/src/table-list.d.ts +2 -6
- package/dist/types/packages/react/src/table-model.d.cts +1 -0
- package/dist/types/packages/react/src/table-model.d.ts +1 -0
- package/dist/types/packages/react/src/table-toolbar.d.cts +1 -1
- package/dist/types/packages/react/src/table-toolbar.d.ts +1 -1
- package/dist/types/packages/react/src/table-totals.d.cts +5 -0
- package/dist/types/packages/react/src/table-totals.d.ts +5 -0
- package/dist/types/packages/react/src/toast-stack.d.cts +7 -2
- package/dist/types/packages/react/src/toast-stack.d.ts +7 -2
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +15 -3
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +15 -3
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +2 -3
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +2 -3
- package/dist/types/shared/package-runtime/feedback-dialog.d.cts +5 -4
- package/dist/types/shared/package-runtime/feedback-dialog.d.ts +5 -4
- package/dist/types/shared/package-runtime/feedback-motion.d.cts +2 -5
- package/dist/types/shared/package-runtime/feedback-motion.d.ts +2 -5
- package/dist/types/shared/package-runtime/feedback-prompt.d.cts +58 -0
- package/dist/types/shared/package-runtime/feedback-prompt.d.ts +58 -0
- package/dist/types/shared/package-runtime/market-layout.d.cts +0 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +0 -1
- package/dist/types/shared/package-runtime/messages/ko.d.cts +7 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +7 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +7 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +7 -0
- package/dist/types/shared/package-runtime/safe-area.d.cts +20 -0
- package/dist/types/shared/package-runtime/safe-area.d.ts +20 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +12 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +12 -0
- package/dist/types/shared/package-runtime/stable-value.d.cts +3 -0
- package/dist/types/shared/package-runtime/stable-value.d.ts +3 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +38 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +38 -2
- package/dist/types/shared/package-runtime/table.d.cts +6 -0
- package/dist/types/shared/package-runtime/table.d.ts +6 -0
- package/dist/types/shared/package-runtime/toast-entry.d.cts +3 -0
- package/dist/types/shared/package-runtime/toast-entry.d.ts +3 -0
- package/dist/types/shared/package-runtime/toast-placement.d.cts +4 -0
- package/dist/types/shared/package-runtime/toast-placement.d.ts +4 -0
- package/dist/types/shared/package-runtime/toast-presence.d.cts +12 -0
- package/dist/types/shared/package-runtime/toast-presence.d.ts +12 -0
- package/dist/types/shared/package-runtime/toast-presentation.d.cts +42 -0
- package/dist/types/shared/package-runtime/toast-presentation.d.ts +42 -0
- package/dist/types/shared/package-runtime/toast-swipe.d.cts +20 -0
- package/dist/types/shared/package-runtime/toast-swipe.d.ts +20 -0
- package/dist/types/shared/package-runtime/use-toast-stack.d.cts +22 -0
- package/dist/types/shared/package-runtime/use-toast-stack.d.ts +22 -0
- package/package.json +3 -3
|
@@ -5,11 +5,12 @@ export interface KjunTopNavigationProps {
|
|
|
5
5
|
description?: string;
|
|
6
6
|
leading?: ReactNode;
|
|
7
7
|
actions?: ReactNode;
|
|
8
|
-
|
|
8
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
9
|
+
safeArea?: boolean;
|
|
9
10
|
/** Paints the surface background (default true); false lets the page background show through, so the bar does not read as a separate band. */
|
|
10
11
|
surface?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare function KjunTopNavigation({ title, description, leading, actions,
|
|
13
|
+
export declare function KjunTopNavigation({ title, description, leading, actions, safeArea, surface }: KjunTopNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export interface NavigationDestination {
|
|
14
15
|
key: string;
|
|
15
16
|
label: string;
|
|
@@ -24,7 +25,8 @@ export interface KjunBottomNavigationProps {
|
|
|
24
25
|
items: NavigationDestination[];
|
|
25
26
|
value: string;
|
|
26
27
|
ariaLabel?: string;
|
|
27
|
-
|
|
28
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
29
|
+
safeArea?: boolean;
|
|
28
30
|
keyboardVisible?: boolean;
|
|
29
31
|
hideOnKeyboard?: boolean;
|
|
30
32
|
onNavigate?: Navigate;
|
|
@@ -33,12 +35,13 @@ export interface KjunBottomNavigationProps {
|
|
|
33
35
|
/** Paints the surface background (default true); false lets the page background show through, so the bar does not read as a separate band. */
|
|
34
36
|
surface?: boolean;
|
|
35
37
|
}
|
|
36
|
-
export declare function KjunBottomNavigation({ items, value, ariaLabel,
|
|
38
|
+
export declare function KjunBottomNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, surface }: KjunBottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
37
39
|
export interface KjunFloatingNavigationProps {
|
|
38
40
|
items: NavigationDestination[];
|
|
39
41
|
value: string;
|
|
40
42
|
ariaLabel?: string;
|
|
41
|
-
|
|
43
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
44
|
+
safeArea?: boolean;
|
|
42
45
|
keyboardVisible?: boolean;
|
|
43
46
|
hideOnKeyboard?: boolean;
|
|
44
47
|
onNavigate?: Navigate;
|
|
@@ -46,15 +49,16 @@ export interface KjunFloatingNavigationProps {
|
|
|
46
49
|
onReselect?: Navigate;
|
|
47
50
|
}
|
|
48
51
|
/** A capsule detached from the screen edge. Destinations with an icon show only the icon; the label stays their accessible name. */
|
|
49
|
-
export declare function KjunFloatingNavigation({ items, value, ariaLabel,
|
|
52
|
+
export declare function KjunFloatingNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect }: KjunFloatingNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
53
|
export interface KjunBottomActionBarProps {
|
|
51
54
|
description?: string;
|
|
52
55
|
children: ReactNode;
|
|
53
|
-
|
|
56
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
57
|
+
safeArea?: boolean;
|
|
54
58
|
keyboardVisible?: boolean;
|
|
55
59
|
hideOnKeyboard?: boolean;
|
|
56
60
|
/** Paints the surface background (default true); false lets the page background show through, so the bar does not read as a separate band. */
|
|
57
61
|
surface?: boolean;
|
|
58
62
|
}
|
|
59
|
-
export declare function KjunBottomActionBar({ description, children,
|
|
63
|
+
export declare function KjunBottomActionBar({ description, children, safeArea, keyboardVisible, hideOnKeyboard, surface }: KjunBottomActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
64
|
export {};
|
|
@@ -5,11 +5,12 @@ export interface KjunTopNavigationProps {
|
|
|
5
5
|
description?: string;
|
|
6
6
|
leading?: ReactNode;
|
|
7
7
|
actions?: ReactNode;
|
|
8
|
-
|
|
8
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
9
|
+
safeArea?: boolean;
|
|
9
10
|
/** Paints the surface background (default true); false lets the page background show through, so the bar does not read as a separate band. */
|
|
10
11
|
surface?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare function KjunTopNavigation({ title, description, leading, actions,
|
|
13
|
+
export declare function KjunTopNavigation({ title, description, leading, actions, safeArea, surface }: KjunTopNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export interface NavigationDestination {
|
|
14
15
|
key: string;
|
|
15
16
|
label: string;
|
|
@@ -24,7 +25,8 @@ export interface KjunBottomNavigationProps {
|
|
|
24
25
|
items: NavigationDestination[];
|
|
25
26
|
value: string;
|
|
26
27
|
ariaLabel?: string;
|
|
27
|
-
|
|
28
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
29
|
+
safeArea?: boolean;
|
|
28
30
|
keyboardVisible?: boolean;
|
|
29
31
|
hideOnKeyboard?: boolean;
|
|
30
32
|
onNavigate?: Navigate;
|
|
@@ -33,12 +35,13 @@ export interface KjunBottomNavigationProps {
|
|
|
33
35
|
/** Paints the surface background (default true); false lets the page background show through, so the bar does not read as a separate band. */
|
|
34
36
|
surface?: boolean;
|
|
35
37
|
}
|
|
36
|
-
export declare function KjunBottomNavigation({ items, value, ariaLabel,
|
|
38
|
+
export declare function KjunBottomNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, surface }: KjunBottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
37
39
|
export interface KjunFloatingNavigationProps {
|
|
38
40
|
items: NavigationDestination[];
|
|
39
41
|
value: string;
|
|
40
42
|
ariaLabel?: string;
|
|
41
|
-
|
|
43
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
44
|
+
safeArea?: boolean;
|
|
42
45
|
keyboardVisible?: boolean;
|
|
43
46
|
hideOnKeyboard?: boolean;
|
|
44
47
|
onNavigate?: Navigate;
|
|
@@ -46,15 +49,16 @@ export interface KjunFloatingNavigationProps {
|
|
|
46
49
|
onReselect?: Navigate;
|
|
47
50
|
}
|
|
48
51
|
/** A capsule detached from the screen edge. Destinations with an icon show only the icon; the label stays their accessible name. */
|
|
49
|
-
export declare function KjunFloatingNavigation({ items, value, ariaLabel,
|
|
52
|
+
export declare function KjunFloatingNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect }: KjunFloatingNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
53
|
export interface KjunBottomActionBarProps {
|
|
51
54
|
description?: string;
|
|
52
55
|
children: ReactNode;
|
|
53
|
-
|
|
56
|
+
/** Keeps clear of the screen's safe area from KjunProvider (default true); false where the app already reserved it. */
|
|
57
|
+
safeArea?: boolean;
|
|
54
58
|
keyboardVisible?: boolean;
|
|
55
59
|
hideOnKeyboard?: boolean;
|
|
56
60
|
/** Paints the surface background (default true); false lets the page background show through, so the bar does not read as a separate band. */
|
|
57
61
|
surface?: boolean;
|
|
58
62
|
}
|
|
59
|
-
export declare function KjunBottomActionBar({ description, children,
|
|
63
|
+
export declare function KjunBottomActionBar({ description, children, safeArea, keyboardVisible, hideOnKeyboard, surface }: KjunBottomActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
64
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AlertLive } from "../../../shared/package-runtime/alert-live.cjs";
|
|
2
|
+
import { type TypographyRole } from "@kjun-ui/tokens";
|
|
2
3
|
import { type CSSProperties, type HTMLAttributes, type ReactNode } from "react";
|
|
3
4
|
export type DisplaySize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
5
|
export type SemanticTone = "primary" | "success" | "warning" | "danger" | "info";
|
|
@@ -57,7 +58,12 @@ export interface KjunProgressProps {
|
|
|
57
58
|
}
|
|
58
59
|
export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
export interface KjunSkeletonProps {
|
|
60
|
-
|
|
61
|
+
/** "line" is one line of text: a bar in the line box of `role`, or of the surrounding text when no role is given. */
|
|
62
|
+
type?: "text" | "line" | "avatar" | "card" | "table" | "stat" | "block";
|
|
63
|
+
/** Typography role for type="line"; omit it to take the surrounding text's line height. */
|
|
64
|
+
role?: TypographyRole;
|
|
65
|
+
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
66
|
+
loadingText?: string;
|
|
61
67
|
rows?: number;
|
|
62
68
|
columns?: number;
|
|
63
69
|
height?: CSSProperties["height"];
|
|
@@ -65,4 +71,4 @@ export interface KjunSkeletonProps {
|
|
|
65
71
|
animated?: boolean;
|
|
66
72
|
rounded?: boolean;
|
|
67
73
|
}
|
|
68
|
-
export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, role, loadingText, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AlertLive } from "../../../shared/package-runtime/alert-live.js";
|
|
2
|
+
import { type TypographyRole } from "@kjun-ui/tokens";
|
|
2
3
|
import { type CSSProperties, type HTMLAttributes, type ReactNode } from "react";
|
|
3
4
|
export type DisplaySize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
5
|
export type SemanticTone = "primary" | "success" | "warning" | "danger" | "info";
|
|
@@ -57,7 +58,12 @@ export interface KjunProgressProps {
|
|
|
57
58
|
}
|
|
58
59
|
export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
export interface KjunSkeletonProps {
|
|
60
|
-
|
|
61
|
+
/** "line" is one line of text: a bar in the line box of `role`, or of the surrounding text when no role is given. */
|
|
62
|
+
type?: "text" | "line" | "avatar" | "card" | "table" | "stat" | "block";
|
|
63
|
+
/** Typography role for type="line"; omit it to take the surrounding text's line height. */
|
|
64
|
+
role?: TypographyRole;
|
|
65
|
+
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
66
|
+
loadingText?: string;
|
|
61
67
|
rows?: number;
|
|
62
68
|
columns?: number;
|
|
63
69
|
height?: CSSProperties["height"];
|
|
@@ -65,4 +71,4 @@ export interface KjunSkeletonProps {
|
|
|
65
71
|
animated?: boolean;
|
|
66
72
|
rounded?: boolean;
|
|
67
73
|
}
|
|
68
|
-
export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, role, loadingText, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,11 +16,9 @@ export interface KjunDrawerProps {
|
|
|
16
16
|
/** Called once after the close finishes and the layer has left the screen (not when it mounts closed or reopens during the exit). */
|
|
17
17
|
onAfterClose?: () => void;
|
|
18
18
|
ariaLabel?: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/** Bottom safe area in px, padded inside bottom and side drawers and kept clear below a top sheet. */
|
|
22
|
-
safeAreaBottom?: number;
|
|
19
|
+
/** Keeps clear of KjunProvider's safe area (default true): padded inside the panel and kept clear beyond a sheet. */
|
|
20
|
+
safeArea?: boolean;
|
|
23
21
|
/** Height limit in px for top and bottom drawers; by default they stop a sheet gap short of the opposite edge. */
|
|
24
22
|
maxHeight?: number;
|
|
25
23
|
}
|
|
26
|
-
export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, footer, children, onClose, onAfterClose, ariaLabel,
|
|
24
|
+
export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, footer, children, onClose, onAfterClose, ariaLabel, safeArea, maxHeight, }: KjunDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -16,11 +16,9 @@ export interface KjunDrawerProps {
|
|
|
16
16
|
/** Called once after the close finishes and the layer has left the screen (not when it mounts closed or reopens during the exit). */
|
|
17
17
|
onAfterClose?: () => void;
|
|
18
18
|
ariaLabel?: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/** Bottom safe area in px, padded inside bottom and side drawers and kept clear below a top sheet. */
|
|
22
|
-
safeAreaBottom?: number;
|
|
19
|
+
/** Keeps clear of KjunProvider's safe area (default true): padded inside the panel and kept clear beyond a sheet. */
|
|
20
|
+
safeArea?: boolean;
|
|
23
21
|
/** Height limit in px for top and bottom drawers; by default they stop a sheet gap short of the opposite edge. */
|
|
24
22
|
maxHeight?: number;
|
|
25
23
|
}
|
|
26
|
-
export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, footer, children, onClose, onAfterClose, ariaLabel,
|
|
24
|
+
export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, footer, children, onClose, onAfterClose, ariaLabel, safeArea, maxHeight, }: KjunDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -4,11 +4,11 @@ export interface KjunFabProps {
|
|
|
4
4
|
/** The FAB has no visible text, so it needs a name. */
|
|
5
5
|
ariaLabel: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Stays above the bottom safe area from KjunProvider (default true). */
|
|
8
|
+
safeArea?: boolean;
|
|
9
9
|
/** Extra space below, e.g. a bottom navigation's height. */
|
|
10
10
|
offsetBottom?: number;
|
|
11
11
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
12
12
|
}
|
|
13
13
|
/** A round primary action pinned to the bottom end of the viewport. */
|
|
14
|
-
export declare function KjunFab({ icon, ariaLabel, disabled,
|
|
14
|
+
export declare function KjunFab({ icon, ariaLabel, disabled, safeArea, offsetBottom, onClick }: KjunFabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,11 @@ export interface KjunFabProps {
|
|
|
4
4
|
/** The FAB has no visible text, so it needs a name. */
|
|
5
5
|
ariaLabel: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Stays above the bottom safe area from KjunProvider (default true). */
|
|
8
|
+
safeArea?: boolean;
|
|
9
9
|
/** Extra space below, e.g. a bottom navigation's height. */
|
|
10
10
|
offsetBottom?: number;
|
|
11
11
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
12
12
|
}
|
|
13
13
|
/** A round primary action pinned to the bottom end of the viewport. */
|
|
14
|
-
export declare function KjunFab({ icon, ariaLabel, disabled,
|
|
14
|
+
export declare function KjunFab({ icon, ariaLabel, disabled, safeArea, offsetBottom, onClick }: KjunFabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import type { ToastPlacement } from "../../../shared/package-runtime/toast-placement.cjs";
|
|
1
2
|
import { type KjunFeedback } from "@kjun-ui/tokens";
|
|
2
3
|
import { type ReactNode } from "react";
|
|
3
4
|
export declare function useKjunFeedback(): KjunFeedback;
|
|
4
|
-
export
|
|
5
|
-
children: ReactNode;
|
|
5
|
+
export interface KjunFeedbackProviderProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** A feedback API from createKjunFeedback(), for calls outside components. */
|
|
6
8
|
controller?: KjunFeedback;
|
|
7
|
-
|
|
9
|
+
/** Stacks toasts at the top (default) or the bottom of the screen, right-aligned on wide screens; both keep clear of the safe area. */
|
|
10
|
+
placement?: ToastPlacement;
|
|
11
|
+
/** Extra px between the toasts and their edge, e.g. a bottom navigation's height. */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** How many toasts stay on screen at once (default 3); a fuller stack closes the oldest self-closing toast first. */
|
|
14
|
+
maxToasts?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function KjunFeedbackProvider({ children, controller: controllerProp, placement, offset, maxToasts }: KjunFeedbackProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
17
|
export type { ConfirmOptions, KjunFeedback, PromptOptions, ToastOptions } from "@kjun-ui/tokens";
|
|
9
18
|
/** An app-owned feedback API that plain functions can call; pass it to KjunFeedbackProvider controller. */
|
|
10
19
|
export { createKjunFeedback } from "@kjun-ui/tokens";
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import type { ToastPlacement } from "../../../shared/package-runtime/toast-placement.js";
|
|
1
2
|
import { type KjunFeedback } from "@kjun-ui/tokens";
|
|
2
3
|
import { type ReactNode } from "react";
|
|
3
4
|
export declare function useKjunFeedback(): KjunFeedback;
|
|
4
|
-
export
|
|
5
|
-
children: ReactNode;
|
|
5
|
+
export interface KjunFeedbackProviderProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** A feedback API from createKjunFeedback(), for calls outside components. */
|
|
6
8
|
controller?: KjunFeedback;
|
|
7
|
-
|
|
9
|
+
/** Stacks toasts at the top (default) or the bottom of the screen, right-aligned on wide screens; both keep clear of the safe area. */
|
|
10
|
+
placement?: ToastPlacement;
|
|
11
|
+
/** Extra px between the toasts and their edge, e.g. a bottom navigation's height. */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** How many toasts stay on screen at once (default 3); a fuller stack closes the oldest self-closing toast first. */
|
|
14
|
+
maxToasts?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function KjunFeedbackProvider({ children, controller: controllerProp, placement, offset, maxToasts }: KjunFeedbackProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
17
|
export type { ConfirmOptions, KjunFeedback, PromptOptions, ToastOptions } from "@kjun-ui/tokens";
|
|
9
18
|
/** An app-owned feedback API that plain functions can call; pass it to KjunFeedbackProvider controller. */
|
|
10
19
|
export { createKjunFeedback } from "@kjun-ui/tokens";
|
|
@@ -42,3 +42,5 @@ export * from "./quantity-stepper.cjs";
|
|
|
42
42
|
export * from "./time-picker.cjs";
|
|
43
43
|
export type { ShadowLayer, ElevationRole, CardElevation } from "@kjun-ui/tokens";
|
|
44
44
|
export { kjunMessagesKo, kjunMessagesEn, type KjunMessages } from "../../../shared/package-runtime/messages/index.cjs";
|
|
45
|
+
export type { KjunSafeArea } from "../../../shared/package-runtime/safe-area.cjs";
|
|
46
|
+
export type { ToastPlacement } from "../../../shared/package-runtime/toast-placement.cjs";
|
|
@@ -42,3 +42,5 @@ export * from "./quantity-stepper.js";
|
|
|
42
42
|
export * from "./time-picker.js";
|
|
43
43
|
export type { ShadowLayer, ElevationRole, CardElevation } from "@kjun-ui/tokens";
|
|
44
44
|
export { kjunMessagesKo, kjunMessagesEn, type KjunMessages } from "../../../shared/package-runtime/messages/index.js";
|
|
45
|
+
export type { KjunSafeArea } from "../../../shared/package-runtime/safe-area.js";
|
|
46
|
+
export type { ToastPlacement } from "../../../shared/package-runtime/toast-placement.js";
|
|
@@ -27,11 +27,11 @@ export declare function KjunText({ variant, tone, as, align, maxLines, className
|
|
|
27
27
|
style: CSSProperties | undefined;
|
|
28
28
|
id?: string;
|
|
29
29
|
"aria-activedescendant"?: string | undefined;
|
|
30
|
-
"aria-atomic"?: (boolean | "
|
|
30
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
31
31
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
32
32
|
"aria-braillelabel"?: string | undefined;
|
|
33
33
|
"aria-brailleroledescription"?: string | undefined;
|
|
34
|
-
"aria-busy"?: (boolean | "
|
|
34
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
35
35
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
36
36
|
"aria-colcount"?: number | undefined;
|
|
37
37
|
"aria-colindex"?: number | undefined;
|
|
@@ -42,37 +42,37 @@ export declare function KjunText({ variant, tone, as, align, maxLines, className
|
|
|
42
42
|
"aria-describedby"?: string | undefined;
|
|
43
43
|
"aria-description"?: string | undefined;
|
|
44
44
|
"aria-details"?: string | undefined;
|
|
45
|
-
"aria-disabled"?: (boolean | "
|
|
45
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
46
46
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
47
47
|
"aria-errormessage"?: string | undefined;
|
|
48
|
-
"aria-expanded"?: (boolean | "
|
|
48
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
49
49
|
"aria-flowto"?: string | undefined;
|
|
50
|
-
"aria-grabbed"?: (boolean | "
|
|
50
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
51
51
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
52
|
-
"aria-hidden"?: (boolean | "
|
|
52
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
53
53
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
54
54
|
"aria-keyshortcuts"?: string | undefined;
|
|
55
55
|
"aria-label"?: string | undefined;
|
|
56
56
|
"aria-labelledby"?: string | undefined;
|
|
57
57
|
"aria-level"?: number | undefined;
|
|
58
58
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
-
"aria-modal"?: (boolean | "
|
|
60
|
-
"aria-multiline"?: (boolean | "
|
|
61
|
-
"aria-multiselectable"?: (boolean | "
|
|
59
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
60
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
61
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
62
62
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
63
63
|
"aria-owns"?: string | undefined;
|
|
64
64
|
"aria-placeholder"?: string | undefined;
|
|
65
65
|
"aria-posinset"?: number | undefined;
|
|
66
66
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
67
|
-
"aria-readonly"?: (boolean | "
|
|
67
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
68
68
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
69
|
-
"aria-required"?: (boolean | "
|
|
69
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
70
70
|
"aria-roledescription"?: string | undefined;
|
|
71
71
|
"aria-rowcount"?: number | undefined;
|
|
72
72
|
"aria-rowindex"?: number | undefined;
|
|
73
73
|
"aria-rowindextext"?: string | undefined;
|
|
74
74
|
"aria-rowspan"?: number | undefined;
|
|
75
|
-
"aria-selected"?: (boolean | "
|
|
75
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
76
76
|
"aria-setsize"?: number | undefined;
|
|
77
77
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
78
78
|
"aria-valuemax"?: number | undefined;
|
|
@@ -98,11 +98,11 @@ export declare function KjunStack({ gap, align, as, className, style, children,
|
|
|
98
98
|
"data-align": StackAlign;
|
|
99
99
|
id?: string;
|
|
100
100
|
"aria-activedescendant"?: string | undefined;
|
|
101
|
-
"aria-atomic"?: (boolean | "
|
|
101
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
102
102
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
103
103
|
"aria-braillelabel"?: string | undefined;
|
|
104
104
|
"aria-brailleroledescription"?: string | undefined;
|
|
105
|
-
"aria-busy"?: (boolean | "
|
|
105
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
106
106
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
107
107
|
"aria-colcount"?: number | undefined;
|
|
108
108
|
"aria-colindex"?: number | undefined;
|
|
@@ -113,37 +113,37 @@ export declare function KjunStack({ gap, align, as, className, style, children,
|
|
|
113
113
|
"aria-describedby"?: string | undefined;
|
|
114
114
|
"aria-description"?: string | undefined;
|
|
115
115
|
"aria-details"?: string | undefined;
|
|
116
|
-
"aria-disabled"?: (boolean | "
|
|
116
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
117
117
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
118
118
|
"aria-errormessage"?: string | undefined;
|
|
119
|
-
"aria-expanded"?: (boolean | "
|
|
119
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
120
120
|
"aria-flowto"?: string | undefined;
|
|
121
|
-
"aria-grabbed"?: (boolean | "
|
|
121
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
122
122
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
123
|
-
"aria-hidden"?: (boolean | "
|
|
123
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
124
124
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
125
125
|
"aria-keyshortcuts"?: string | undefined;
|
|
126
126
|
"aria-label"?: string | undefined;
|
|
127
127
|
"aria-labelledby"?: string | undefined;
|
|
128
128
|
"aria-level"?: number | undefined;
|
|
129
129
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
-
"aria-modal"?: (boolean | "
|
|
131
|
-
"aria-multiline"?: (boolean | "
|
|
132
|
-
"aria-multiselectable"?: (boolean | "
|
|
130
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
131
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
132
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
133
133
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
134
|
"aria-owns"?: string | undefined;
|
|
135
135
|
"aria-placeholder"?: string | undefined;
|
|
136
136
|
"aria-posinset"?: number | undefined;
|
|
137
137
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
138
|
-
"aria-readonly"?: (boolean | "
|
|
138
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
139
139
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
140
|
-
"aria-required"?: (boolean | "
|
|
140
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
141
141
|
"aria-roledescription"?: string | undefined;
|
|
142
142
|
"aria-rowcount"?: number | undefined;
|
|
143
143
|
"aria-rowindex"?: number | undefined;
|
|
144
144
|
"aria-rowindextext"?: string | undefined;
|
|
145
145
|
"aria-rowspan"?: number | undefined;
|
|
146
|
-
"aria-selected"?: (boolean | "
|
|
146
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
147
147
|
"aria-setsize"?: number | undefined;
|
|
148
148
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
149
|
"aria-valuemax"?: number | undefined;
|
|
@@ -27,11 +27,11 @@ export declare function KjunText({ variant, tone, as, align, maxLines, className
|
|
|
27
27
|
style: CSSProperties | undefined;
|
|
28
28
|
id?: string;
|
|
29
29
|
"aria-activedescendant"?: string | undefined;
|
|
30
|
-
"aria-atomic"?: (boolean | "
|
|
30
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
31
31
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
32
32
|
"aria-braillelabel"?: string | undefined;
|
|
33
33
|
"aria-brailleroledescription"?: string | undefined;
|
|
34
|
-
"aria-busy"?: (boolean | "
|
|
34
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
35
35
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
36
36
|
"aria-colcount"?: number | undefined;
|
|
37
37
|
"aria-colindex"?: number | undefined;
|
|
@@ -42,37 +42,37 @@ export declare function KjunText({ variant, tone, as, align, maxLines, className
|
|
|
42
42
|
"aria-describedby"?: string | undefined;
|
|
43
43
|
"aria-description"?: string | undefined;
|
|
44
44
|
"aria-details"?: string | undefined;
|
|
45
|
-
"aria-disabled"?: (boolean | "
|
|
45
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
46
46
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
47
47
|
"aria-errormessage"?: string | undefined;
|
|
48
|
-
"aria-expanded"?: (boolean | "
|
|
48
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
49
49
|
"aria-flowto"?: string | undefined;
|
|
50
|
-
"aria-grabbed"?: (boolean | "
|
|
50
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
51
51
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
52
|
-
"aria-hidden"?: (boolean | "
|
|
52
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
53
53
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
54
54
|
"aria-keyshortcuts"?: string | undefined;
|
|
55
55
|
"aria-label"?: string | undefined;
|
|
56
56
|
"aria-labelledby"?: string | undefined;
|
|
57
57
|
"aria-level"?: number | undefined;
|
|
58
58
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
-
"aria-modal"?: (boolean | "
|
|
60
|
-
"aria-multiline"?: (boolean | "
|
|
61
|
-
"aria-multiselectable"?: (boolean | "
|
|
59
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
60
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
61
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
62
62
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
63
63
|
"aria-owns"?: string | undefined;
|
|
64
64
|
"aria-placeholder"?: string | undefined;
|
|
65
65
|
"aria-posinset"?: number | undefined;
|
|
66
66
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
67
|
-
"aria-readonly"?: (boolean | "
|
|
67
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
68
68
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
69
|
-
"aria-required"?: (boolean | "
|
|
69
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
70
70
|
"aria-roledescription"?: string | undefined;
|
|
71
71
|
"aria-rowcount"?: number | undefined;
|
|
72
72
|
"aria-rowindex"?: number | undefined;
|
|
73
73
|
"aria-rowindextext"?: string | undefined;
|
|
74
74
|
"aria-rowspan"?: number | undefined;
|
|
75
|
-
"aria-selected"?: (boolean | "
|
|
75
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
76
76
|
"aria-setsize"?: number | undefined;
|
|
77
77
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
78
78
|
"aria-valuemax"?: number | undefined;
|
|
@@ -98,11 +98,11 @@ export declare function KjunStack({ gap, align, as, className, style, children,
|
|
|
98
98
|
"data-align": StackAlign;
|
|
99
99
|
id?: string;
|
|
100
100
|
"aria-activedescendant"?: string | undefined;
|
|
101
|
-
"aria-atomic"?: (boolean | "
|
|
101
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
102
102
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
103
103
|
"aria-braillelabel"?: string | undefined;
|
|
104
104
|
"aria-brailleroledescription"?: string | undefined;
|
|
105
|
-
"aria-busy"?: (boolean | "
|
|
105
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
106
106
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
107
107
|
"aria-colcount"?: number | undefined;
|
|
108
108
|
"aria-colindex"?: number | undefined;
|
|
@@ -113,37 +113,37 @@ export declare function KjunStack({ gap, align, as, className, style, children,
|
|
|
113
113
|
"aria-describedby"?: string | undefined;
|
|
114
114
|
"aria-description"?: string | undefined;
|
|
115
115
|
"aria-details"?: string | undefined;
|
|
116
|
-
"aria-disabled"?: (boolean | "
|
|
116
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
117
117
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
118
118
|
"aria-errormessage"?: string | undefined;
|
|
119
|
-
"aria-expanded"?: (boolean | "
|
|
119
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
120
120
|
"aria-flowto"?: string | undefined;
|
|
121
|
-
"aria-grabbed"?: (boolean | "
|
|
121
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
122
122
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
123
|
-
"aria-hidden"?: (boolean | "
|
|
123
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
124
124
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
125
125
|
"aria-keyshortcuts"?: string | undefined;
|
|
126
126
|
"aria-label"?: string | undefined;
|
|
127
127
|
"aria-labelledby"?: string | undefined;
|
|
128
128
|
"aria-level"?: number | undefined;
|
|
129
129
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
-
"aria-modal"?: (boolean | "
|
|
131
|
-
"aria-multiline"?: (boolean | "
|
|
132
|
-
"aria-multiselectable"?: (boolean | "
|
|
130
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
131
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
132
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
133
133
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
134
|
"aria-owns"?: string | undefined;
|
|
135
135
|
"aria-placeholder"?: string | undefined;
|
|
136
136
|
"aria-posinset"?: number | undefined;
|
|
137
137
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
138
|
-
"aria-readonly"?: (boolean | "
|
|
138
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
139
139
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
140
|
-
"aria-required"?: (boolean | "
|
|
140
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
141
141
|
"aria-roledescription"?: string | undefined;
|
|
142
142
|
"aria-rowcount"?: number | undefined;
|
|
143
143
|
"aria-rowindex"?: number | undefined;
|
|
144
144
|
"aria-rowindextext"?: string | undefined;
|
|
145
145
|
"aria-rowspan"?: number | undefined;
|
|
146
|
-
"aria-selected"?: (boolean | "
|
|
146
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
147
147
|
"aria-setsize"?: number | undefined;
|
|
148
148
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
149
|
"aria-valuemax"?: number | undefined;
|
|
@@ -44,5 +44,7 @@ export interface KjunModalProps {
|
|
|
44
44
|
footer?: ReactNode;
|
|
45
45
|
children: ReactNode;
|
|
46
46
|
ariaLabel?: string;
|
|
47
|
+
/** Id of the element that describes the dialog (e.g. its message), read after its name. */
|
|
48
|
+
ariaDescribedBy?: string;
|
|
47
49
|
}
|
|
48
|
-
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -44,5 +44,7 @@ export interface KjunModalProps {
|
|
|
44
44
|
footer?: ReactNode;
|
|
45
45
|
children: ReactNode;
|
|
46
46
|
ariaLabel?: string;
|
|
47
|
+
/** Id of the element that describes the dialog (e.g. its message), read after its name. */
|
|
48
|
+
ariaDescribedBy?: string;
|
|
47
49
|
}
|
|
48
|
-
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type KjunMessages } from "../../../shared/package-runtime/messages/index.cjs";
|
|
2
2
|
import type { KjunIconRegistry } from "@kjun-ui/icons";
|
|
3
|
+
import { type KjunSafeArea } from "../../../shared/package-runtime/safe-area.cjs";
|
|
3
4
|
import { type HTMLAttributes, type ReactNode } from "react";
|
|
4
5
|
export declare const useKjunPortalContainer: () => HTMLElement | null | undefined;
|
|
5
6
|
export interface KjunProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -9,5 +10,7 @@ export interface KjunProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
9
10
|
locale?: string;
|
|
10
11
|
/** Replaces part of KJUN's copy, e.g. with the app's own translations. */
|
|
11
12
|
messages?: Partial<KjunMessages>;
|
|
13
|
+
/** Screen insets in px for toasts, modals, menus and edge components; without it the browser's env(safe-area-inset-*) applies. */
|
|
14
|
+
safeArea?: KjunSafeArea;
|
|
12
15
|
}
|
|
13
|
-
export declare function KjunProvider({ icons, locale, messages, children, className, ...props }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function KjunProvider({ icons, locale, messages, children, className, safeArea, style, ...props }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|