@kjun-ui/react 0.12.2 → 0.14.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 +1721 -1204
- package/dist/index.js +1458 -940
- package/dist/styles.css +102 -3
- package/dist/types/packages/react/src/button.d.cts +2 -0
- package/dist/types/packages/react/src/button.d.ts +2 -0
- package/dist/types/packages/react/src/card.d.cts +8 -2
- package/dist/types/packages/react/src/card.d.ts +8 -2
- package/dist/types/packages/react/src/controls.d.cts +3 -1
- package/dist/types/packages/react/src/controls.d.ts +3 -1
- package/dist/types/packages/react/src/data-state.d.cts +3 -0
- package/dist/types/packages/react/src/data-state.d.ts +3 -0
- package/dist/types/packages/react/src/date-picker.d.cts +3 -1
- package/dist/types/packages/react/src/date-picker.d.ts +3 -1
- package/dist/types/packages/react/src/display.d.cts +2 -1
- package/dist/types/packages/react/src/display.d.ts +2 -1
- package/dist/types/packages/react/src/fab.d.cts +14 -0
- package/dist/types/packages/react/src/fab.d.ts +14 -0
- package/dist/types/packages/react/src/feedback.d.cts +5 -2
- package/dist/types/packages/react/src/feedback.d.ts +5 -2
- package/dist/types/packages/react/src/financial-display.d.cts +8 -8
- package/dist/types/packages/react/src/financial-display.d.ts +8 -8
- 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/input.d.cts +3 -1
- package/dist/types/packages/react/src/input.d.ts +3 -1
- package/dist/types/packages/react/src/layout-primitives.d.cts +1 -1
- package/dist/types/packages/react/src/layout-primitives.d.ts +1 -1
- package/dist/types/packages/react/src/list.d.cts +17 -2
- package/dist/types/packages/react/src/list.d.ts +17 -2
- package/dist/types/packages/react/src/media.d.cts +4 -2
- package/dist/types/packages/react/src/media.d.ts +4 -2
- package/dist/types/packages/react/src/provider.d.cts +6 -1
- package/dist/types/packages/react/src/provider.d.ts +6 -1
- package/dist/types/shared/package-runtime/feedback-dialog.d.cts +2 -1
- package/dist/types/shared/package-runtime/feedback-dialog.d.ts +2 -1
- package/dist/types/shared/package-runtime/layout-primitives.d.cts +1 -1
- package/dist/types/shared/package-runtime/layout-primitives.d.ts +1 -1
- package/dist/types/shared/package-runtime/messages/en.d.cts +2 -0
- package/dist/types/shared/package-runtime/messages/en.d.ts +2 -0
- package/dist/types/shared/package-runtime/messages/index.d.cts +26 -0
- package/dist/types/shared/package-runtime/messages/index.d.ts +26 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +116 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +116 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +124 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +124 -0
- package/dist/types/shared/package-runtime/options.d.cts +4 -2
- package/dist/types/shared/package-runtime/options.d.ts +4 -2
- package/dist/types/shared/package-runtime/progress-circle.d.cts +11 -0
- package/dist/types/shared/package-runtime/progress-circle.d.ts +11 -0
- package/dist/types/shared/package-runtime/relative-time.d.cts +1 -1
- package/dist/types/shared/package-runtime/relative-time.d.ts +1 -1
- package/package.json +3 -3
|
@@ -7,14 +7,29 @@ export interface KjunListRowProps {
|
|
|
7
7
|
actions?: ReactNode;
|
|
8
8
|
href?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
/** Draws the title in the danger role, for rows such as "Delete account". */
|
|
11
|
+
destructive?: boolean;
|
|
12
|
+
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
13
|
+
chevron?: boolean;
|
|
10
14
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
11
15
|
}
|
|
12
|
-
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, destructive, chevron, onClick }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
17
|
export interface KjunListSectionProps {
|
|
14
18
|
title?: string;
|
|
15
19
|
description?: string;
|
|
16
20
|
actions?: ReactNode;
|
|
17
21
|
children: ReactNode;
|
|
18
22
|
ariaLabel?: string;
|
|
23
|
+
/** Paints the surface background (default true); false lets the page background show through. */
|
|
24
|
+
surface?: boolean;
|
|
25
|
+
/** Draws dividers between rows (default true). */
|
|
26
|
+
divider?: boolean;
|
|
27
|
+
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
28
|
+
density?: "default" | "compact";
|
|
19
29
|
}
|
|
20
|
-
export declare function KjunListSection({ title, description, actions, children, ariaLabel }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel, surface, divider, density }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export interface KjunListItemProps {
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
/** Non-row content inside a KjunListSection (a theme switcher, a note) on the rows' inset and dividers. */
|
|
35
|
+
export declare function KjunListItem({ children }: KjunListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,14 +7,29 @@ export interface KjunListRowProps {
|
|
|
7
7
|
actions?: ReactNode;
|
|
8
8
|
href?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
/** Draws the title in the danger role, for rows such as "Delete account". */
|
|
11
|
+
destructive?: boolean;
|
|
12
|
+
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
13
|
+
chevron?: boolean;
|
|
10
14
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
11
15
|
}
|
|
12
|
-
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, destructive, chevron, onClick }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
17
|
export interface KjunListSectionProps {
|
|
14
18
|
title?: string;
|
|
15
19
|
description?: string;
|
|
16
20
|
actions?: ReactNode;
|
|
17
21
|
children: ReactNode;
|
|
18
22
|
ariaLabel?: string;
|
|
23
|
+
/** Paints the surface background (default true); false lets the page background show through. */
|
|
24
|
+
surface?: boolean;
|
|
25
|
+
/** Draws dividers between rows (default true). */
|
|
26
|
+
divider?: boolean;
|
|
27
|
+
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
28
|
+
density?: "default" | "compact";
|
|
19
29
|
}
|
|
20
|
-
export declare function KjunListSection({ title, description, actions, children, ariaLabel }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel, surface, divider, density }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export interface KjunListItemProps {
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
/** Non-row content inside a KjunListSection (a theme switcher, a note) on the rows' inset and dividers. */
|
|
35
|
+
export declare function KjunListItem({ children }: KjunListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
2
|
export interface KjunImageProps {
|
|
3
3
|
src?: string;
|
|
4
4
|
alt: string;
|
|
@@ -18,8 +18,10 @@ export interface KjunAvatarProps {
|
|
|
18
18
|
decorative?: boolean;
|
|
19
19
|
size?: "sm" | "md" | "lg";
|
|
20
20
|
shape?: "circle" | "square";
|
|
21
|
+
color?: CSSProperties["color"];
|
|
22
|
+
textColor?: CSSProperties["color"];
|
|
21
23
|
fallback?: ReactNode;
|
|
22
24
|
onLoad?: () => void;
|
|
23
25
|
onError?: () => void;
|
|
24
26
|
}
|
|
25
|
-
export declare function KjunAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function KjunAvatar({ src, name, alt, decorative, size, shape, color, textColor, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
2
|
export interface KjunImageProps {
|
|
3
3
|
src?: string;
|
|
4
4
|
alt: string;
|
|
@@ -18,8 +18,10 @@ export interface KjunAvatarProps {
|
|
|
18
18
|
decorative?: boolean;
|
|
19
19
|
size?: "sm" | "md" | "lg";
|
|
20
20
|
shape?: "circle" | "square";
|
|
21
|
+
color?: CSSProperties["color"];
|
|
22
|
+
textColor?: CSSProperties["color"];
|
|
21
23
|
fallback?: ReactNode;
|
|
22
24
|
onLoad?: () => void;
|
|
23
25
|
onError?: () => void;
|
|
24
26
|
}
|
|
25
|
-
export declare function KjunAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function KjunAvatar({ src, name, alt, decorative, size, shape, color, textColor, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { type KjunMessages } from "../../../shared/package-runtime/messages/index.cjs";
|
|
1
2
|
import type { KjunIconRegistry } from "@kjun-ui/icons";
|
|
2
3
|
import { type HTMLAttributes, type ReactNode } from "react";
|
|
3
4
|
export declare const useKjunPortalContainer: () => HTMLElement | null | undefined;
|
|
4
5
|
export interface KjunProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
icons?: KjunIconRegistry;
|
|
8
|
+
/** BCP 47 tag (e.g. "en-US") for KJUN copy and Intl formats; without it KJUN stays Korean. */
|
|
9
|
+
locale?: string;
|
|
10
|
+
/** Replaces part of KJUN's copy, e.g. with the app's own translations. */
|
|
11
|
+
messages?: Partial<KjunMessages>;
|
|
7
12
|
}
|
|
8
|
-
export declare function KjunProvider({ icons, children, className, ...props }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function KjunProvider({ icons, locale, messages, children, className, ...props }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { type KjunMessages } from "../../../shared/package-runtime/messages/index.js";
|
|
1
2
|
import type { KjunIconRegistry } from "@kjun-ui/icons";
|
|
2
3
|
import { type HTMLAttributes, type ReactNode } from "react";
|
|
3
4
|
export declare const useKjunPortalContainer: () => HTMLElement | null | undefined;
|
|
4
5
|
export interface KjunProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
icons?: KjunIconRegistry;
|
|
8
|
+
/** BCP 47 tag (e.g. "en-US") for KJUN copy and Intl formats; without it KJUN stays Korean. */
|
|
9
|
+
locale?: string;
|
|
10
|
+
/** Replaces part of KJUN's copy, e.g. with the app's own translations. */
|
|
11
|
+
messages?: Partial<KjunMessages>;
|
|
7
12
|
}
|
|
8
|
-
export declare function KjunProvider({ icons, children, className, ...props }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function KjunProvider({ icons, locale, messages, children, className, ...props }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type KjunMessages } from "./messages/index.cjs";
|
|
1
2
|
import type { createFeedbackController, ConfirmOptions, FeedbackRequest, PromptOptions } from "@kjun-ui/tokens";
|
|
2
|
-
export declare function useFeedbackDialog(controller: ReturnType<typeof createFeedbackController>, request: FeedbackRequest): {
|
|
3
|
+
export declare function useFeedbackDialog(controller: ReturnType<typeof createFeedbackController>, request: FeedbackRequest, messages?: KjunMessages): {
|
|
3
4
|
options: PromptOptions & ConfirmOptions;
|
|
4
5
|
value: string;
|
|
5
6
|
error: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type KjunMessages } from "./messages/index.js";
|
|
1
2
|
import type { createFeedbackController, ConfirmOptions, FeedbackRequest, PromptOptions } from "@kjun-ui/tokens";
|
|
2
|
-
export declare function useFeedbackDialog(controller: ReturnType<typeof createFeedbackController>, request: FeedbackRequest): {
|
|
3
|
+
export declare function useFeedbackDialog(controller: ReturnType<typeof createFeedbackController>, request: FeedbackRequest, messages?: KjunMessages): {
|
|
3
4
|
options: PromptOptions & ConfirmOptions;
|
|
4
5
|
value: string;
|
|
5
6
|
error: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type TextVariant = "pageTitle" | "sectionTitle" | "cardTitle" | "body" | "label" | "meta" | "caption" | "numberSm" | "numberMd" | "numberLg" | "displaySm" | "displayMd" | "displayLg";
|
|
2
|
-
export type TextTone = "default" | "secondary" | "tertiary" | "disabled";
|
|
2
|
+
export type TextTone = "default" | "secondary" | "tertiary" | "disabled" | "brand" | "danger" | "success" | "warning" | "inverse";
|
|
3
3
|
export type TextAlign = "start" | "center" | "end";
|
|
4
4
|
export type TextTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div";
|
|
5
5
|
export type StackGap = "none" | "sm" | "md" | "lg" | "section-sm" | "section-md" | "section-lg";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type TextVariant = "pageTitle" | "sectionTitle" | "cardTitle" | "body" | "label" | "meta" | "caption" | "numberSm" | "numberMd" | "numberLg" | "displaySm" | "displayMd" | "displayLg";
|
|
2
|
-
export type TextTone = "default" | "secondary" | "tertiary" | "disabled";
|
|
2
|
+
export type TextTone = "default" | "secondary" | "tertiary" | "disabled" | "brand" | "danger" | "success" | "warning" | "inverse";
|
|
3
3
|
export type TextAlign = "start" | "center" | "end";
|
|
4
4
|
export type TextTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div";
|
|
5
5
|
export type StackGap = "none" | "sm" | "md" | "lg" | "section-sm" | "section-md" | "section-lg";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { kjunMessagesEn } from "./en.cjs";
|
|
2
|
+
import { kjunMessagesKo, type KjunMessages } from "./ko.cjs";
|
|
3
|
+
export { kjunMessagesEn, kjunMessagesKo, type KjunMessages };
|
|
4
|
+
/** What KjunProvider resolved: the copy to render and the locale handed to Intl (undefined keeps each call site's old default). */
|
|
5
|
+
export interface KjunMessageScope {
|
|
6
|
+
intl?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
messages: KjunMessages;
|
|
9
|
+
overrides: Partial<KjunMessages>;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultMessageScope: KjunMessageScope;
|
|
12
|
+
/** "en_US" becomes "en-US"; a tag Intl rejects keeps its language for the copy but no Intl locale, and never throws. */
|
|
13
|
+
export declare function normalizeLocale(locale?: string): {
|
|
14
|
+
intl?: string;
|
|
15
|
+
language?: string;
|
|
16
|
+
};
|
|
17
|
+
/** Props > messages > the locale's pack (ko, en, otherwise en) > Korean. A nested scope in another language drops the outer overrides. */
|
|
18
|
+
export declare function resolveMessageScope(parent: KjunMessageScope | undefined, locale?: string, messages?: Partial<KjunMessages>): KjunMessageScope;
|
|
19
|
+
export declare function formatRelativeTime(value: string | number | Date, now?: number, scope?: KjunMessageScope): string;
|
|
20
|
+
/** A "YYYY-MM-DD" value for display; without a locale it keeps KJUN's "2026. 10. 23." form. */
|
|
21
|
+
export declare function formatDateValue(iso: string, scope?: KjunMessageScope): string;
|
|
22
|
+
/** Calendar heading and Sunday-first weekday names; month is 0-based. */
|
|
23
|
+
export declare function calendarLabels(year: number, month: number, scope?: KjunMessageScope): {
|
|
24
|
+
title: string;
|
|
25
|
+
weekdays: string[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { kjunMessagesEn } from "./en.js";
|
|
2
|
+
import { kjunMessagesKo, type KjunMessages } from "./ko.js";
|
|
3
|
+
export { kjunMessagesEn, kjunMessagesKo, type KjunMessages };
|
|
4
|
+
/** What KjunProvider resolved: the copy to render and the locale handed to Intl (undefined keeps each call site's old default). */
|
|
5
|
+
export interface KjunMessageScope {
|
|
6
|
+
intl?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
messages: KjunMessages;
|
|
9
|
+
overrides: Partial<KjunMessages>;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultMessageScope: KjunMessageScope;
|
|
12
|
+
/** "en_US" becomes "en-US"; a tag Intl rejects keeps its language for the copy but no Intl locale, and never throws. */
|
|
13
|
+
export declare function normalizeLocale(locale?: string): {
|
|
14
|
+
intl?: string;
|
|
15
|
+
language?: string;
|
|
16
|
+
};
|
|
17
|
+
/** Props > messages > the locale's pack (ko, en, otherwise en) > Korean. A nested scope in another language drops the outer overrides. */
|
|
18
|
+
export declare function resolveMessageScope(parent: KjunMessageScope | undefined, locale?: string, messages?: Partial<KjunMessages>): KjunMessageScope;
|
|
19
|
+
export declare function formatRelativeTime(value: string | number | Date, now?: number, scope?: KjunMessageScope): string;
|
|
20
|
+
/** A "YYYY-MM-DD" value for display; without a locale it keeps KJUN's "2026. 10. 23." form. */
|
|
21
|
+
export declare function formatDateValue(iso: string, scope?: KjunMessageScope): string;
|
|
22
|
+
/** Calendar heading and Sunday-first weekday names; month is 0-based. */
|
|
23
|
+
export declare function calendarLabels(year: number, month: number, scope?: KjunMessageScope): {
|
|
24
|
+
title: string;
|
|
25
|
+
weekdays: string[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const kjunMessagesKo: {
|
|
2
|
+
cancel: string;
|
|
3
|
+
confirm: string;
|
|
4
|
+
save: string;
|
|
5
|
+
close: string;
|
|
6
|
+
closeNotification: string;
|
|
7
|
+
confirmTitle: string;
|
|
8
|
+
promptTitle: string;
|
|
9
|
+
invalidInput: string;
|
|
10
|
+
dialog: string;
|
|
11
|
+
panel: string;
|
|
12
|
+
details: string;
|
|
13
|
+
menu: string;
|
|
14
|
+
remove: (label: string) => string;
|
|
15
|
+
user: string;
|
|
16
|
+
loading: string;
|
|
17
|
+
loadingEllipsis: string;
|
|
18
|
+
refreshing: string;
|
|
19
|
+
chartLoading: string;
|
|
20
|
+
noData: string;
|
|
21
|
+
noItems: string;
|
|
22
|
+
noResults: string;
|
|
23
|
+
errorTitle: string;
|
|
24
|
+
retry: string;
|
|
25
|
+
somethingWentWrong: string;
|
|
26
|
+
retryHint: string;
|
|
27
|
+
refreshError: (error: string) => string;
|
|
28
|
+
progress: string;
|
|
29
|
+
search: string;
|
|
30
|
+
searching: string;
|
|
31
|
+
searchOrSelect: string;
|
|
32
|
+
searchFailed: string;
|
|
33
|
+
minChars: (count: number) => string;
|
|
34
|
+
select: string;
|
|
35
|
+
optional: string;
|
|
36
|
+
clearSelection: string;
|
|
37
|
+
searchOptions: string;
|
|
38
|
+
selectedCount: (count: number) => string;
|
|
39
|
+
loadMore: string;
|
|
40
|
+
clearInput: string;
|
|
41
|
+
clearValue: (label: string) => string;
|
|
42
|
+
datePlaceholder: string;
|
|
43
|
+
clearDate: string;
|
|
44
|
+
calendarTitle: (year: number, month: number) => string;
|
|
45
|
+
weekdays: string;
|
|
46
|
+
previousMonth: string;
|
|
47
|
+
nextMonth: string;
|
|
48
|
+
time: string;
|
|
49
|
+
hour: string;
|
|
50
|
+
minute: string;
|
|
51
|
+
second: string;
|
|
52
|
+
value: string;
|
|
53
|
+
minimum: string;
|
|
54
|
+
maximum: string;
|
|
55
|
+
increase: string;
|
|
56
|
+
decrease: string;
|
|
57
|
+
increaseQuantity: string;
|
|
58
|
+
decreaseQuantity: string;
|
|
59
|
+
quantity: string;
|
|
60
|
+
relativeTimeFallback: (amount: number, unit: string) => string;
|
|
61
|
+
copy: string;
|
|
62
|
+
copied: string;
|
|
63
|
+
copyFailed: string;
|
|
64
|
+
refresh: string;
|
|
65
|
+
externalLink: string;
|
|
66
|
+
newWindow: string;
|
|
67
|
+
dataTable: string;
|
|
68
|
+
selectRow: (row: number) => string;
|
|
69
|
+
selectAll: string;
|
|
70
|
+
selectAllPartial: string;
|
|
71
|
+
deselectAll: string;
|
|
72
|
+
selectionActions: string;
|
|
73
|
+
selectedItems: (count: number) => string;
|
|
74
|
+
searchTable: string;
|
|
75
|
+
expandRow: string;
|
|
76
|
+
collapse: string;
|
|
77
|
+
showDetails: string;
|
|
78
|
+
ascending: string;
|
|
79
|
+
descending: string;
|
|
80
|
+
tabs: string;
|
|
81
|
+
breadcrumb: string;
|
|
82
|
+
mainNavigation: string;
|
|
83
|
+
pagination: string;
|
|
84
|
+
itemsPerPage: string;
|
|
85
|
+
perPage: (count: number) => string;
|
|
86
|
+
pageRange: (from: number, to: number, total: string) => string;
|
|
87
|
+
page: (page: number) => string;
|
|
88
|
+
firstPage: string;
|
|
89
|
+
previousPage: string;
|
|
90
|
+
nextPage: string;
|
|
91
|
+
lastPage: string;
|
|
92
|
+
marketData: string;
|
|
93
|
+
metrics: string;
|
|
94
|
+
watchToggle: (name: string, active: boolean) => string;
|
|
95
|
+
favoriteToggle: (name: string, active: boolean) => string;
|
|
96
|
+
lastUpdated: string;
|
|
97
|
+
unitLabel: string;
|
|
98
|
+
totalCount: (count: number, unit: string) => string;
|
|
99
|
+
closePrice: string;
|
|
100
|
+
delayed: string;
|
|
101
|
+
noRealtimeQuote: string;
|
|
102
|
+
realtimeDelayed: string;
|
|
103
|
+
arbitrage: string;
|
|
104
|
+
deviationWarning: (threshold: number) => string;
|
|
105
|
+
statusQueued: string;
|
|
106
|
+
statusStarting: string;
|
|
107
|
+
statusRunning: string;
|
|
108
|
+
statusStopping: string;
|
|
109
|
+
statusStopped: string;
|
|
110
|
+
statusCompleted: string;
|
|
111
|
+
statusCompletedWithErrors: string;
|
|
112
|
+
statusFailed: string;
|
|
113
|
+
statusUnknown: string;
|
|
114
|
+
statusNoRuns: string;
|
|
115
|
+
};
|
|
116
|
+
export type KjunMessages = typeof kjunMessagesKo;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const kjunMessagesKo: {
|
|
2
|
+
cancel: string;
|
|
3
|
+
confirm: string;
|
|
4
|
+
save: string;
|
|
5
|
+
close: string;
|
|
6
|
+
closeNotification: string;
|
|
7
|
+
confirmTitle: string;
|
|
8
|
+
promptTitle: string;
|
|
9
|
+
invalidInput: string;
|
|
10
|
+
dialog: string;
|
|
11
|
+
panel: string;
|
|
12
|
+
details: string;
|
|
13
|
+
menu: string;
|
|
14
|
+
remove: (label: string) => string;
|
|
15
|
+
user: string;
|
|
16
|
+
loading: string;
|
|
17
|
+
loadingEllipsis: string;
|
|
18
|
+
refreshing: string;
|
|
19
|
+
chartLoading: string;
|
|
20
|
+
noData: string;
|
|
21
|
+
noItems: string;
|
|
22
|
+
noResults: string;
|
|
23
|
+
errorTitle: string;
|
|
24
|
+
retry: string;
|
|
25
|
+
somethingWentWrong: string;
|
|
26
|
+
retryHint: string;
|
|
27
|
+
refreshError: (error: string) => string;
|
|
28
|
+
progress: string;
|
|
29
|
+
search: string;
|
|
30
|
+
searching: string;
|
|
31
|
+
searchOrSelect: string;
|
|
32
|
+
searchFailed: string;
|
|
33
|
+
minChars: (count: number) => string;
|
|
34
|
+
select: string;
|
|
35
|
+
optional: string;
|
|
36
|
+
clearSelection: string;
|
|
37
|
+
searchOptions: string;
|
|
38
|
+
selectedCount: (count: number) => string;
|
|
39
|
+
loadMore: string;
|
|
40
|
+
clearInput: string;
|
|
41
|
+
clearValue: (label: string) => string;
|
|
42
|
+
datePlaceholder: string;
|
|
43
|
+
clearDate: string;
|
|
44
|
+
calendarTitle: (year: number, month: number) => string;
|
|
45
|
+
weekdays: string;
|
|
46
|
+
previousMonth: string;
|
|
47
|
+
nextMonth: string;
|
|
48
|
+
time: string;
|
|
49
|
+
hour: string;
|
|
50
|
+
minute: string;
|
|
51
|
+
second: string;
|
|
52
|
+
value: string;
|
|
53
|
+
minimum: string;
|
|
54
|
+
maximum: string;
|
|
55
|
+
increase: string;
|
|
56
|
+
decrease: string;
|
|
57
|
+
increaseQuantity: string;
|
|
58
|
+
decreaseQuantity: string;
|
|
59
|
+
quantity: string;
|
|
60
|
+
relativeTimeFallback: (amount: number, unit: string) => string;
|
|
61
|
+
copy: string;
|
|
62
|
+
copied: string;
|
|
63
|
+
copyFailed: string;
|
|
64
|
+
refresh: string;
|
|
65
|
+
externalLink: string;
|
|
66
|
+
newWindow: string;
|
|
67
|
+
dataTable: string;
|
|
68
|
+
selectRow: (row: number) => string;
|
|
69
|
+
selectAll: string;
|
|
70
|
+
selectAllPartial: string;
|
|
71
|
+
deselectAll: string;
|
|
72
|
+
selectionActions: string;
|
|
73
|
+
selectedItems: (count: number) => string;
|
|
74
|
+
searchTable: string;
|
|
75
|
+
expandRow: string;
|
|
76
|
+
collapse: string;
|
|
77
|
+
showDetails: string;
|
|
78
|
+
ascending: string;
|
|
79
|
+
descending: string;
|
|
80
|
+
tabs: string;
|
|
81
|
+
breadcrumb: string;
|
|
82
|
+
mainNavigation: string;
|
|
83
|
+
pagination: string;
|
|
84
|
+
itemsPerPage: string;
|
|
85
|
+
perPage: (count: number) => string;
|
|
86
|
+
pageRange: (from: number, to: number, total: string) => string;
|
|
87
|
+
page: (page: number) => string;
|
|
88
|
+
firstPage: string;
|
|
89
|
+
previousPage: string;
|
|
90
|
+
nextPage: string;
|
|
91
|
+
lastPage: string;
|
|
92
|
+
marketData: string;
|
|
93
|
+
metrics: string;
|
|
94
|
+
watchToggle: (name: string, active: boolean) => string;
|
|
95
|
+
favoriteToggle: (name: string, active: boolean) => string;
|
|
96
|
+
lastUpdated: string;
|
|
97
|
+
unitLabel: string;
|
|
98
|
+
totalCount: (count: number, unit: string) => string;
|
|
99
|
+
closePrice: string;
|
|
100
|
+
delayed: string;
|
|
101
|
+
noRealtimeQuote: string;
|
|
102
|
+
realtimeDelayed: string;
|
|
103
|
+
arbitrage: string;
|
|
104
|
+
deviationWarning: (threshold: number) => string;
|
|
105
|
+
statusQueued: string;
|
|
106
|
+
statusStarting: string;
|
|
107
|
+
statusRunning: string;
|
|
108
|
+
statusStopping: string;
|
|
109
|
+
statusStopped: string;
|
|
110
|
+
statusCompleted: string;
|
|
111
|
+
statusCompletedWithErrors: string;
|
|
112
|
+
statusFailed: string;
|
|
113
|
+
statusUnknown: string;
|
|
114
|
+
statusNoRuns: string;
|
|
115
|
+
};
|
|
116
|
+
export type KjunMessages = typeof kjunMessagesKo;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type KjunMessages, type KjunMessageScope } from "./messages/index.cjs";
|
|
3
|
+
export declare const KjunMessageContext: import("react").Context<KjunMessageScope>;
|
|
4
|
+
export declare function KjunMessagesProvider({ locale, messages, children }: {
|
|
5
|
+
locale?: string;
|
|
6
|
+
messages?: Partial<KjunMessages>;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useKjunMessageScope: () => KjunMessageScope;
|
|
10
|
+
export declare const useKjunMessages: () => {
|
|
11
|
+
cancel: string;
|
|
12
|
+
confirm: string;
|
|
13
|
+
save: string;
|
|
14
|
+
close: string;
|
|
15
|
+
closeNotification: string;
|
|
16
|
+
confirmTitle: string;
|
|
17
|
+
promptTitle: string;
|
|
18
|
+
invalidInput: string;
|
|
19
|
+
dialog: string;
|
|
20
|
+
panel: string;
|
|
21
|
+
details: string;
|
|
22
|
+
menu: string;
|
|
23
|
+
remove: (label: string) => string;
|
|
24
|
+
user: string;
|
|
25
|
+
loading: string;
|
|
26
|
+
loadingEllipsis: string;
|
|
27
|
+
refreshing: string;
|
|
28
|
+
chartLoading: string;
|
|
29
|
+
noData: string;
|
|
30
|
+
noItems: string;
|
|
31
|
+
noResults: string;
|
|
32
|
+
errorTitle: string;
|
|
33
|
+
retry: string;
|
|
34
|
+
somethingWentWrong: string;
|
|
35
|
+
retryHint: string;
|
|
36
|
+
refreshError: (error: string) => string;
|
|
37
|
+
progress: string;
|
|
38
|
+
search: string;
|
|
39
|
+
searching: string;
|
|
40
|
+
searchOrSelect: string;
|
|
41
|
+
searchFailed: string;
|
|
42
|
+
minChars: (count: number) => string;
|
|
43
|
+
select: string;
|
|
44
|
+
optional: string;
|
|
45
|
+
clearSelection: string;
|
|
46
|
+
searchOptions: string;
|
|
47
|
+
selectedCount: (count: number) => string;
|
|
48
|
+
loadMore: string;
|
|
49
|
+
clearInput: string;
|
|
50
|
+
clearValue: (label: string) => string;
|
|
51
|
+
datePlaceholder: string;
|
|
52
|
+
clearDate: string;
|
|
53
|
+
calendarTitle: (year: number, month: number) => string;
|
|
54
|
+
weekdays: string;
|
|
55
|
+
previousMonth: string;
|
|
56
|
+
nextMonth: string;
|
|
57
|
+
time: string;
|
|
58
|
+
hour: string;
|
|
59
|
+
minute: string;
|
|
60
|
+
second: string;
|
|
61
|
+
value: string;
|
|
62
|
+
minimum: string;
|
|
63
|
+
maximum: string;
|
|
64
|
+
increase: string;
|
|
65
|
+
decrease: string;
|
|
66
|
+
increaseQuantity: string;
|
|
67
|
+
decreaseQuantity: string;
|
|
68
|
+
quantity: string;
|
|
69
|
+
relativeTimeFallback: (amount: number, unit: string) => string;
|
|
70
|
+
copy: string;
|
|
71
|
+
copied: string;
|
|
72
|
+
copyFailed: string;
|
|
73
|
+
refresh: string;
|
|
74
|
+
externalLink: string;
|
|
75
|
+
newWindow: string;
|
|
76
|
+
dataTable: string;
|
|
77
|
+
selectRow: (row: number) => string;
|
|
78
|
+
selectAll: string;
|
|
79
|
+
selectAllPartial: string;
|
|
80
|
+
deselectAll: string;
|
|
81
|
+
selectionActions: string;
|
|
82
|
+
selectedItems: (count: number) => string;
|
|
83
|
+
searchTable: string;
|
|
84
|
+
expandRow: string;
|
|
85
|
+
collapse: string;
|
|
86
|
+
showDetails: string;
|
|
87
|
+
ascending: string;
|
|
88
|
+
descending: string;
|
|
89
|
+
tabs: string;
|
|
90
|
+
breadcrumb: string;
|
|
91
|
+
mainNavigation: string;
|
|
92
|
+
pagination: string;
|
|
93
|
+
itemsPerPage: string;
|
|
94
|
+
perPage: (count: number) => string;
|
|
95
|
+
pageRange: (from: number, to: number, total: string) => string;
|
|
96
|
+
page: (page: number) => string;
|
|
97
|
+
firstPage: string;
|
|
98
|
+
previousPage: string;
|
|
99
|
+
nextPage: string;
|
|
100
|
+
lastPage: string;
|
|
101
|
+
marketData: string;
|
|
102
|
+
metrics: string;
|
|
103
|
+
watchToggle: (name: string, active: boolean) => string;
|
|
104
|
+
favoriteToggle: (name: string, active: boolean) => string;
|
|
105
|
+
lastUpdated: string;
|
|
106
|
+
unitLabel: string;
|
|
107
|
+
totalCount: (count: number, unit: string) => string;
|
|
108
|
+
closePrice: string;
|
|
109
|
+
delayed: string;
|
|
110
|
+
noRealtimeQuote: string;
|
|
111
|
+
realtimeDelayed: string;
|
|
112
|
+
arbitrage: string;
|
|
113
|
+
deviationWarning: (threshold: number) => string;
|
|
114
|
+
statusQueued: string;
|
|
115
|
+
statusStarting: string;
|
|
116
|
+
statusRunning: string;
|
|
117
|
+
statusStopping: string;
|
|
118
|
+
statusStopped: string;
|
|
119
|
+
statusCompleted: string;
|
|
120
|
+
statusCompletedWithErrors: string;
|
|
121
|
+
statusFailed: string;
|
|
122
|
+
statusUnknown: string;
|
|
123
|
+
statusNoRuns: string;
|
|
124
|
+
};
|