@kjun-ui/react 0.20.0 → 0.21.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 +3911 -1680
- package/dist/index.js +3591 -1360
- package/dist/styles.css +1410 -356
- package/dist/types/packages/react/src/app-navigation.d.cts +9 -4
- package/dist/types/packages/react/src/app-navigation.d.ts +9 -4
- package/dist/types/packages/react/src/card-actions-context.d.cts +2 -0
- package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
- package/dist/types/packages/react/src/card.d.cts +15 -5
- package/dist/types/packages/react/src/card.d.ts +15 -5
- package/dist/types/packages/react/src/chip.d.cts +4 -2
- package/dist/types/packages/react/src/chip.d.ts +4 -2
- package/dist/types/packages/react/src/color-picker-parts.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
- package/dist/types/packages/react/src/color-picker.d.cts +51 -0
- package/dist/types/packages/react/src/color-picker.d.ts +51 -0
- package/dist/types/packages/react/src/data-state.d.cts +3 -3
- package/dist/types/packages/react/src/data-state.d.ts +3 -3
- package/dist/types/packages/react/src/display.d.cts +14 -5
- package/dist/types/packages/react/src/display.d.ts +14 -5
- package/dist/types/packages/react/src/fab.d.cts +16 -7
- package/dist/types/packages/react/src/fab.d.ts +16 -7
- package/dist/types/packages/react/src/index.d.cts +4 -0
- package/dist/types/packages/react/src/index.d.ts +4 -0
- package/dist/types/packages/react/src/kpi-hero.d.cts +53 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +53 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +41 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +41 -0
- package/dist/types/packages/react/src/kpi.d.cts +2 -72
- package/dist/types/packages/react/src/kpi.d.ts +2 -72
- package/dist/types/packages/react/src/list-context.d.cts +8 -0
- package/dist/types/packages/react/src/list-context.d.ts +8 -0
- package/dist/types/packages/react/src/list.d.cts +50 -8
- package/dist/types/packages/react/src/list.d.ts +50 -8
- package/dist/types/packages/react/src/modal.d.cts +5 -2
- package/dist/types/packages/react/src/modal.d.ts +5 -2
- package/dist/types/packages/react/src/navigation.d.cts +2 -1
- package/dist/types/packages/react/src/navigation.d.ts +2 -1
- package/dist/types/packages/react/src/number-display.d.cts +2 -0
- package/dist/types/packages/react/src/number-display.d.ts +2 -0
- package/dist/types/packages/react/src/reorder-controls.d.cts +43 -0
- package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
- package/dist/types/packages/react/src/skeletons.d.cts +2 -1
- package/dist/types/packages/react/src/skeletons.d.ts +2 -1
- package/dist/types/packages/react/src/split-pane.d.cts +30 -0
- package/dist/types/packages/react/src/split-pane.d.ts +30 -0
- package/dist/types/packages/react/src/stacked-bar.d.cts +22 -0
- package/dist/types/packages/react/src/stacked-bar.d.ts +22 -0
- package/dist/types/packages/react/src/table-grid.d.cts +1 -1
- package/dist/types/packages/react/src/table-grid.d.ts +1 -1
- package/dist/types/packages/react/src/zone-gauge.d.cts +28 -0
- package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +1 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.cts +15 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +25 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +25 -0
- package/dist/types/shared/package-runtime/card-layout.d.cts +34 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +34 -0
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +1 -1
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
- package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
- package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
- package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
- package/dist/types/shared/package-runtime/color.d.cts +22 -0
- package/dist/types/shared/package-runtime/color.d.ts +22 -0
- package/dist/types/shared/package-runtime/distribution.d.cts +133 -0
- package/dist/types/shared/package-runtime/distribution.d.ts +133 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.cts +19 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -0
- package/dist/types/shared/package-runtime/kpi.d.cts +89 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +89 -0
- package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
- package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
- package/dist/types/shared/package-runtime/list-leading.d.cts +38 -0
- package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +115 -4
- package/dist/types/shared/package-runtime/list-row.d.ts +115 -4
- package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
- package/dist/types/shared/package-runtime/market-query.d.cts +15 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +15 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +27 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +27 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +27 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +27 -0
- package/dist/types/shared/package-runtime/number-sign.d.cts +9 -0
- package/dist/types/shared/package-runtime/number-sign.d.ts +9 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.cts +3 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.cts +2 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
- package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
- package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
- package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
- package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +14 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +14 -0
- package/dist/types/shared/package-runtime/split-pane.d.cts +46 -0
- package/dist/types/shared/package-runtime/split-pane.d.ts +46 -0
- package/dist/types/shared/package-runtime/table-columns.d.cts +28 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +28 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +22 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +22 -2
- package/dist/types/shared/package-runtime/table.d.cts +29 -0
- package/dist/types/shared/package-runtime/table.d.ts +29 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.cts +51 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +51 -0
- package/dist/types/shared/package-runtime/use-layer.d.cts +4 -2
- package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
- package/package.json +3 -3
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type BadgeToneRoles, type BadgeVariant } from "./badge-tone.cjs";
|
|
2
|
+
/** What a masked amount draws in place of its digits. */
|
|
3
|
+
export declare const KPI_MASK = "\u2022\u2022\u2022\u2022";
|
|
4
|
+
/** What a missing value draws unless the app gives its own text. */
|
|
5
|
+
export declare const KPI_MISSING = "\u2014";
|
|
6
|
+
/** Digit height as a share of the font size: Native KPI skeleton bars stand this tall, like Web's 1cap. */
|
|
7
|
+
export declare const KPI_NUMERAL_HEIGHT = 0.72;
|
|
8
|
+
export type KpiDirection = 1 | -1 | 0;
|
|
9
|
+
export type KpiBadgeVariant = "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
10
|
+
/** The parts of a KPI value the shared rules read; each platform adds its own class or color fields. */
|
|
11
|
+
export interface KpiNumberItem {
|
|
12
|
+
value?: number | string | null;
|
|
13
|
+
decimals?: number;
|
|
14
|
+
semantic?: "price" | "status";
|
|
15
|
+
showSign?: boolean;
|
|
16
|
+
formatter?: (value: number) => string;
|
|
17
|
+
missingText?: string;
|
|
18
|
+
}
|
|
19
|
+
/** One cached formatter per locale and precision; an undefined locale keeps the runtime's default. */
|
|
20
|
+
export declare function kpiNumber(value: number, decimals?: number, locale?: string): string;
|
|
21
|
+
/** The value as it will be shown at this precision, so direction and sign follow the drawn digits. */
|
|
22
|
+
export declare const kpiRound: (value: number, decimals?: number) => number;
|
|
23
|
+
/** null, undefined and non-finite numbers are missing, never zero. */
|
|
24
|
+
export declare const kpiPresent: (value: unknown) => value is number | string;
|
|
25
|
+
/** Up, down or flat as drawn: a number rounds at its decimals; a formatted or string value keeps its raw sign. */
|
|
26
|
+
export declare function kpiDirection(item: KpiNumberItem): KpiDirection;
|
|
27
|
+
/** The price tone a value paints, or null for neutral text. */
|
|
28
|
+
export declare const kpiTone: (item: KpiNumberItem) => "up" | "down" | null;
|
|
29
|
+
/** The value's text: missing text, the app's string or formatter, or the locale's digits with the KPI sign rule. */
|
|
30
|
+
export declare function kpiFormat(item: KpiNumberItem, value?: number | string | null | undefined, locale?: string): string;
|
|
31
|
+
export interface KpiDeltaOptions {
|
|
32
|
+
decimals?: number;
|
|
33
|
+
percentDecimals?: number;
|
|
34
|
+
locale?: string;
|
|
35
|
+
/** With the app's own delta text the digits are unknown, so direction keeps the raw sign. */
|
|
36
|
+
formatted?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface KpiDeltaParts {
|
|
39
|
+
direction: KpiDirection;
|
|
40
|
+
sign: string;
|
|
41
|
+
number: string;
|
|
42
|
+
}
|
|
43
|
+
/** One delta number: its drawn direction, its sign and its unsigned digits. */
|
|
44
|
+
export declare function kpiDelta(value: number, kind: "absolute" | "percent", options?: KpiDeltaOptions): KpiDeltaParts;
|
|
45
|
+
/** A finite delta number, or null when the app passed nothing, null or a non-finite value. */
|
|
46
|
+
export declare const kpiDeltaValue: (value: number | null | undefined) => number | null;
|
|
47
|
+
/** The caret marks the first delta number shown, and only when it has a direction. */
|
|
48
|
+
export declare const kpiDeltaIcon: (enabled: boolean, direction: KpiDirection, kind: "absolute" | "percent", hasAbsolute: boolean) => boolean;
|
|
49
|
+
/** The delta line shows with any delta, and while loading when the app passed a delta prop at all. */
|
|
50
|
+
export declare const kpiShowDelta: (absolute: number | null, percent: number | null, description: string, loading: boolean, passed: object | null | undefined) => boolean;
|
|
51
|
+
/** Whether any price colour is painted, so the domain colour contract must be present. */
|
|
52
|
+
export declare function kpiHeroNeedsDomain(options: {
|
|
53
|
+
loading: boolean;
|
|
54
|
+
masked: boolean;
|
|
55
|
+
absolute: number | null;
|
|
56
|
+
percent: number | null;
|
|
57
|
+
decimals?: number;
|
|
58
|
+
percentDecimals?: number;
|
|
59
|
+
formatted?: boolean;
|
|
60
|
+
secondary: KpiNumberItem[];
|
|
61
|
+
}): boolean;
|
|
62
|
+
export declare const kpiRowNeedsDomain: (loading: boolean, masked: boolean, items: (KpiNumberItem & {
|
|
63
|
+
loading?: boolean;
|
|
64
|
+
badge?: {
|
|
65
|
+
variant?: string;
|
|
66
|
+
} | null;
|
|
67
|
+
})[]) => boolean;
|
|
68
|
+
/** Only items marked mobileSecondary fold into the summary's inline footnote; an odd last primary cell takes the full width. */
|
|
69
|
+
export declare function kpiSummaryLayout(items: {
|
|
70
|
+
mobileSecondary?: boolean;
|
|
71
|
+
mobileFull?: boolean;
|
|
72
|
+
}[]): {
|
|
73
|
+
secondary: boolean[];
|
|
74
|
+
lastFull: number;
|
|
75
|
+
};
|
|
76
|
+
/** A row badge is KjunBadge's tone: neutral is the secondary badge. */
|
|
77
|
+
export declare const kpiBadgeVariant: (variant?: KpiBadgeVariant) => BadgeVariant;
|
|
78
|
+
export declare const kpiBadgeRoles: (variant?: KpiBadgeVariant) => BadgeToneRoles;
|
|
79
|
+
/**
|
|
80
|
+
* Keyboard activation for a clickable cell drawn as a button: Enter acts once on key down (never on auto-repeat),
|
|
81
|
+
* Space acts on key up like a native button, and its key down only stops the page from scrolling.
|
|
82
|
+
*/
|
|
83
|
+
export declare function kpiKeyAction(type: "keydown" | "keyup", key: string, repeat: boolean): "activate" | "prevent" | null;
|
|
84
|
+
/** A spoken cell: its non-empty parts in reading order. */
|
|
85
|
+
export declare const kpiSpoken: (...parts: (string | null | undefined | false)[]) => string;
|
|
86
|
+
/** Web: the CSS colour for a tone or direction, or the neutral role. */
|
|
87
|
+
export declare const kpiCssColor: (tone: "up" | "down" | KpiDirection | null, neutral?: string) => string;
|
|
88
|
+
/** Web: the percent chip's tint, the direction's soft fill or the neutral fill when flat. */
|
|
89
|
+
export declare const kpiCssTint: (direction: KpiDirection) => string;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type BadgeToneRoles, type BadgeVariant } from "./badge-tone.js";
|
|
2
|
+
/** What a masked amount draws in place of its digits. */
|
|
3
|
+
export declare const KPI_MASK = "\u2022\u2022\u2022\u2022";
|
|
4
|
+
/** What a missing value draws unless the app gives its own text. */
|
|
5
|
+
export declare const KPI_MISSING = "\u2014";
|
|
6
|
+
/** Digit height as a share of the font size: Native KPI skeleton bars stand this tall, like Web's 1cap. */
|
|
7
|
+
export declare const KPI_NUMERAL_HEIGHT = 0.72;
|
|
8
|
+
export type KpiDirection = 1 | -1 | 0;
|
|
9
|
+
export type KpiBadgeVariant = "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
10
|
+
/** The parts of a KPI value the shared rules read; each platform adds its own class or color fields. */
|
|
11
|
+
export interface KpiNumberItem {
|
|
12
|
+
value?: number | string | null;
|
|
13
|
+
decimals?: number;
|
|
14
|
+
semantic?: "price" | "status";
|
|
15
|
+
showSign?: boolean;
|
|
16
|
+
formatter?: (value: number) => string;
|
|
17
|
+
missingText?: string;
|
|
18
|
+
}
|
|
19
|
+
/** One cached formatter per locale and precision; an undefined locale keeps the runtime's default. */
|
|
20
|
+
export declare function kpiNumber(value: number, decimals?: number, locale?: string): string;
|
|
21
|
+
/** The value as it will be shown at this precision, so direction and sign follow the drawn digits. */
|
|
22
|
+
export declare const kpiRound: (value: number, decimals?: number) => number;
|
|
23
|
+
/** null, undefined and non-finite numbers are missing, never zero. */
|
|
24
|
+
export declare const kpiPresent: (value: unknown) => value is number | string;
|
|
25
|
+
/** Up, down or flat as drawn: a number rounds at its decimals; a formatted or string value keeps its raw sign. */
|
|
26
|
+
export declare function kpiDirection(item: KpiNumberItem): KpiDirection;
|
|
27
|
+
/** The price tone a value paints, or null for neutral text. */
|
|
28
|
+
export declare const kpiTone: (item: KpiNumberItem) => "up" | "down" | null;
|
|
29
|
+
/** The value's text: missing text, the app's string or formatter, or the locale's digits with the KPI sign rule. */
|
|
30
|
+
export declare function kpiFormat(item: KpiNumberItem, value?: number | string | null | undefined, locale?: string): string;
|
|
31
|
+
export interface KpiDeltaOptions {
|
|
32
|
+
decimals?: number;
|
|
33
|
+
percentDecimals?: number;
|
|
34
|
+
locale?: string;
|
|
35
|
+
/** With the app's own delta text the digits are unknown, so direction keeps the raw sign. */
|
|
36
|
+
formatted?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface KpiDeltaParts {
|
|
39
|
+
direction: KpiDirection;
|
|
40
|
+
sign: string;
|
|
41
|
+
number: string;
|
|
42
|
+
}
|
|
43
|
+
/** One delta number: its drawn direction, its sign and its unsigned digits. */
|
|
44
|
+
export declare function kpiDelta(value: number, kind: "absolute" | "percent", options?: KpiDeltaOptions): KpiDeltaParts;
|
|
45
|
+
/** A finite delta number, or null when the app passed nothing, null or a non-finite value. */
|
|
46
|
+
export declare const kpiDeltaValue: (value: number | null | undefined) => number | null;
|
|
47
|
+
/** The caret marks the first delta number shown, and only when it has a direction. */
|
|
48
|
+
export declare const kpiDeltaIcon: (enabled: boolean, direction: KpiDirection, kind: "absolute" | "percent", hasAbsolute: boolean) => boolean;
|
|
49
|
+
/** The delta line shows with any delta, and while loading when the app passed a delta prop at all. */
|
|
50
|
+
export declare const kpiShowDelta: (absolute: number | null, percent: number | null, description: string, loading: boolean, passed: object | null | undefined) => boolean;
|
|
51
|
+
/** Whether any price colour is painted, so the domain colour contract must be present. */
|
|
52
|
+
export declare function kpiHeroNeedsDomain(options: {
|
|
53
|
+
loading: boolean;
|
|
54
|
+
masked: boolean;
|
|
55
|
+
absolute: number | null;
|
|
56
|
+
percent: number | null;
|
|
57
|
+
decimals?: number;
|
|
58
|
+
percentDecimals?: number;
|
|
59
|
+
formatted?: boolean;
|
|
60
|
+
secondary: KpiNumberItem[];
|
|
61
|
+
}): boolean;
|
|
62
|
+
export declare const kpiRowNeedsDomain: (loading: boolean, masked: boolean, items: (KpiNumberItem & {
|
|
63
|
+
loading?: boolean;
|
|
64
|
+
badge?: {
|
|
65
|
+
variant?: string;
|
|
66
|
+
} | null;
|
|
67
|
+
})[]) => boolean;
|
|
68
|
+
/** Only items marked mobileSecondary fold into the summary's inline footnote; an odd last primary cell takes the full width. */
|
|
69
|
+
export declare function kpiSummaryLayout(items: {
|
|
70
|
+
mobileSecondary?: boolean;
|
|
71
|
+
mobileFull?: boolean;
|
|
72
|
+
}[]): {
|
|
73
|
+
secondary: boolean[];
|
|
74
|
+
lastFull: number;
|
|
75
|
+
};
|
|
76
|
+
/** A row badge is KjunBadge's tone: neutral is the secondary badge. */
|
|
77
|
+
export declare const kpiBadgeVariant: (variant?: KpiBadgeVariant) => BadgeVariant;
|
|
78
|
+
export declare const kpiBadgeRoles: (variant?: KpiBadgeVariant) => BadgeToneRoles;
|
|
79
|
+
/**
|
|
80
|
+
* Keyboard activation for a clickable cell drawn as a button: Enter acts once on key down (never on auto-repeat),
|
|
81
|
+
* Space acts on key up like a native button, and its key down only stops the page from scrolling.
|
|
82
|
+
*/
|
|
83
|
+
export declare function kpiKeyAction(type: "keydown" | "keyup", key: string, repeat: boolean): "activate" | "prevent" | null;
|
|
84
|
+
/** A spoken cell: its non-empty parts in reading order. */
|
|
85
|
+
export declare const kpiSpoken: (...parts: (string | null | undefined | false)[]) => string;
|
|
86
|
+
/** Web: the CSS colour for a tone or direction, or the neutral role. */
|
|
87
|
+
export declare const kpiCssColor: (tone: "up" | "down" | KpiDirection | null, neutral?: string) => string;
|
|
88
|
+
/** Web: the percent chip's tint, the direction's soft fill or the neutral fill when flat. */
|
|
89
|
+
export declare const kpiCssTint: (direction: KpiDirection) => string;
|
|
@@ -28,12 +28,13 @@ export declare function createLayerState(): {
|
|
|
28
28
|
top: () => LayerEntry | undefined;
|
|
29
29
|
topPopup: () => LayerEntry | undefined;
|
|
30
30
|
windowOf: (id?: string) => string | undefined;
|
|
31
|
+
markRestoredFocus(target: FocusTarget): void;
|
|
31
32
|
isRestoredFocus(target?: FocusTarget | null): boolean;
|
|
32
33
|
clearRestoredFocus(target?: FocusTarget | null): void;
|
|
33
34
|
markClosing(id: string): void;
|
|
34
35
|
subscribe(listener: () => void): () => void;
|
|
35
36
|
snapshot: () => number;
|
|
36
|
-
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null): LayerEntry;
|
|
37
|
+
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null, defaultFocus?: boolean): LayerEntry;
|
|
37
38
|
remove(id: string, focused?: FocusTarget | null): FocusTarget | null | undefined;
|
|
38
39
|
requestClose(id: string): void;
|
|
39
40
|
isActive(id: string): boolean;
|
|
@@ -28,12 +28,13 @@ export declare function createLayerState(): {
|
|
|
28
28
|
top: () => LayerEntry | undefined;
|
|
29
29
|
topPopup: () => LayerEntry | undefined;
|
|
30
30
|
windowOf: (id?: string) => string | undefined;
|
|
31
|
+
markRestoredFocus(target: FocusTarget): void;
|
|
31
32
|
isRestoredFocus(target?: FocusTarget | null): boolean;
|
|
32
33
|
clearRestoredFocus(target?: FocusTarget | null): void;
|
|
33
34
|
markClosing(id: string): void;
|
|
34
35
|
subscribe(listener: () => void): () => void;
|
|
35
36
|
snapshot: () => number;
|
|
36
|
-
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null): LayerEntry;
|
|
37
|
+
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null, defaultFocus?: boolean): LayerEntry;
|
|
37
38
|
remove(id: string, focused?: FocusTarget | null): FocusTarget | null | undefined;
|
|
38
39
|
requestClose(id: string): void;
|
|
39
40
|
isActive(id: string): boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type ListLeadingSize = "xs" | "sm" | "md" | "lg";
|
|
2
|
+
/**
|
|
3
|
+
* Explicit sizes reserve a square. Only a built-in icon background opts into sm automatically; in an open section a
|
|
4
|
+
* built-in icon always sits on a 40px rounded square (its own color, or the secondary role).
|
|
5
|
+
*/
|
|
6
|
+
export declare function listLeadingGeometry({ size, custom, background, open }: {
|
|
7
|
+
size?: ListLeadingSize;
|
|
8
|
+
custom: boolean;
|
|
9
|
+
background: boolean;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
}): {
|
|
12
|
+
size: ListLeadingSize | undefined;
|
|
13
|
+
/** The leading box itself (avatar or icon square). */
|
|
14
|
+
width: 40 | 24 | 32 | 56;
|
|
15
|
+
/** The column it sits in: a sized box smaller than the 40px leading column keeps that column (centered), so
|
|
16
|
+
* titles start on one line whether the row leads with an app avatar or a 32px icon square. */
|
|
17
|
+
column: number;
|
|
18
|
+
iconSize: 20 | 16 | 24 | 28;
|
|
19
|
+
tile: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The leading column a section's rows share (Web's --_kjun-list-shared-column): beside an avatar or a sized square, a
|
|
23
|
+
* plain icon centers in the 40px column (56px beside an lg box), so every title and divider starts on one line. A list
|
|
24
|
+
* of plain icons keeps their 24px column, and rows without leading content are not counted.
|
|
25
|
+
*/
|
|
26
|
+
export declare function listSharedColumn(rows: {
|
|
27
|
+
leading: boolean;
|
|
28
|
+
custom: boolean;
|
|
29
|
+
size?: ListLeadingSize;
|
|
30
|
+
background: boolean;
|
|
31
|
+
}[], open?: boolean): number;
|
|
32
|
+
/**
|
|
33
|
+
* How far a leading box, switch or mark may reach into a one-line row's vertical padding (a negative margin, the same
|
|
34
|
+
* on every platform; Web's --_kjun-list-bleed-limit). Anything up to the title line plus twice this fits without
|
|
35
|
+
* growing the row past its minimum height, and taller content still keeps `minimumInset` to the row's edge, whatever
|
|
36
|
+
* its size: an avatar, a leading square or a switch.
|
|
37
|
+
*/
|
|
38
|
+
export declare function listRowBleed(paddingY: number): number;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type ListLeadingSize = "xs" | "sm" | "md" | "lg";
|
|
2
|
+
/**
|
|
3
|
+
* Explicit sizes reserve a square. Only a built-in icon background opts into sm automatically; in an open section a
|
|
4
|
+
* built-in icon always sits on a 40px rounded square (its own color, or the secondary role).
|
|
5
|
+
*/
|
|
6
|
+
export declare function listLeadingGeometry({ size, custom, background, open }: {
|
|
7
|
+
size?: ListLeadingSize;
|
|
8
|
+
custom: boolean;
|
|
9
|
+
background: boolean;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
}): {
|
|
12
|
+
size: ListLeadingSize | undefined;
|
|
13
|
+
/** The leading box itself (avatar or icon square). */
|
|
14
|
+
width: 40 | 24 | 32 | 56;
|
|
15
|
+
/** The column it sits in: a sized box smaller than the 40px leading column keeps that column (centered), so
|
|
16
|
+
* titles start on one line whether the row leads with an app avatar or a 32px icon square. */
|
|
17
|
+
column: number;
|
|
18
|
+
iconSize: 20 | 16 | 24 | 28;
|
|
19
|
+
tile: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The leading column a section's rows share (Web's --_kjun-list-shared-column): beside an avatar or a sized square, a
|
|
23
|
+
* plain icon centers in the 40px column (56px beside an lg box), so every title and divider starts on one line. A list
|
|
24
|
+
* of plain icons keeps their 24px column, and rows without leading content are not counted.
|
|
25
|
+
*/
|
|
26
|
+
export declare function listSharedColumn(rows: {
|
|
27
|
+
leading: boolean;
|
|
28
|
+
custom: boolean;
|
|
29
|
+
size?: ListLeadingSize;
|
|
30
|
+
background: boolean;
|
|
31
|
+
}[], open?: boolean): number;
|
|
32
|
+
/**
|
|
33
|
+
* How far a leading box, switch or mark may reach into a one-line row's vertical padding (a negative margin, the same
|
|
34
|
+
* on every platform; Web's --_kjun-list-bleed-limit). Anything up to the title line plus twice this fits without
|
|
35
|
+
* growing the row past its minimum height, and taller content still keeps `minimumInset` to the row's edge, whatever
|
|
36
|
+
* its size: an avatar, a leading square or a switch.
|
|
37
|
+
*/
|
|
38
|
+
export declare function listRowBleed(paddingY: number): number;
|
|
@@ -1,14 +1,125 @@
|
|
|
1
|
-
export type ListRowKind = "switch" | "radio" | "link" | "button" | "static";
|
|
2
|
-
export
|
|
1
|
+
export type ListRowKind = "switch" | "radio" | "checkbox" | "link" | "button" | "static";
|
|
2
|
+
export type ListSelectionMode = "none" | "single" | "multiple";
|
|
3
|
+
export declare function listRowKind({ checked, selected, href, pressable, mode }: {
|
|
3
4
|
checked?: boolean;
|
|
4
5
|
selected?: boolean;
|
|
5
6
|
href?: string;
|
|
6
7
|
pressable: boolean;
|
|
8
|
+
mode?: ListSelectionMode;
|
|
7
9
|
}): ListRowKind;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* What a row draws at its end for its choice: a mark (an empty ring or box, filled when chosen) in an open section or a
|
|
12
|
+
* multiple-choice list, so every choice shows it can be picked; otherwise a check on the chosen row only. A busy
|
|
13
|
+
* pressable row (not a switch, whose thumb spins) draws a spinner in place of its mark, check and chevron.
|
|
14
|
+
*/
|
|
15
|
+
export declare function listRowEnd({ kind, selected, mode, open, busy }: {
|
|
16
|
+
kind: ListRowKind;
|
|
17
|
+
selected?: boolean;
|
|
18
|
+
mode: ListSelectionMode;
|
|
19
|
+
open: boolean;
|
|
20
|
+
busy?: boolean;
|
|
21
|
+
}): "mark" | "spinner" | "check" | null;
|
|
22
|
+
export type ListTypeRole = "label" | "input" | "caption" | "body";
|
|
23
|
+
/**
|
|
24
|
+
* A row's metrics for its section's variant and density, the numbers Web's row variables hold, for Native rows and
|
|
25
|
+
* row skeletons: vertical and horizontal padding, gap, minimum height, actions padding and the title, description and
|
|
26
|
+
* end value type roles.
|
|
27
|
+
*/
|
|
28
|
+
export declare function listRowMetrics({ open, compact }: {
|
|
29
|
+
open: boolean;
|
|
30
|
+
compact: boolean;
|
|
31
|
+
}): {
|
|
32
|
+
paddingY: 12 | 8;
|
|
33
|
+
paddingX: 12;
|
|
34
|
+
gap: 14;
|
|
35
|
+
minimumHeight: 56 | 64;
|
|
36
|
+
actionsPadding: 12;
|
|
37
|
+
title: ListTypeRole;
|
|
38
|
+
description: ListTypeRole;
|
|
39
|
+
trailing: ListTypeRole;
|
|
40
|
+
} | {
|
|
41
|
+
paddingY: 16 | 12;
|
|
42
|
+
paddingX: 16;
|
|
43
|
+
gap: 12;
|
|
44
|
+
minimumHeight: 56 | 44;
|
|
45
|
+
actionsPadding: 16;
|
|
46
|
+
title: ListTypeRole;
|
|
47
|
+
description: ListTypeRole;
|
|
48
|
+
trailing: ListTypeRole;
|
|
49
|
+
};
|
|
50
|
+
export type ListChoiceValue = string | number;
|
|
51
|
+
/** A section's selection: its mode and, when the section owns the value, that value and its change handler. */
|
|
52
|
+
export interface ListSelection {
|
|
53
|
+
mode: ListSelectionMode;
|
|
54
|
+
value?: ListChoiceValue | null | readonly ListChoiceValue[];
|
|
55
|
+
onValueChange?: (value: never) => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A row's choice state. A row with a `value` inside a section that owns its value (value given) reads its selection from
|
|
59
|
+
* the section and changes it when pressed; any other row keeps its own `selected` and press handler.
|
|
60
|
+
*/
|
|
61
|
+
export declare function listRowChoice(selection: ListSelection | undefined, rowValue: ListChoiceValue | undefined, selected: boolean | undefined): {
|
|
62
|
+
selected: boolean | undefined;
|
|
63
|
+
owned: boolean;
|
|
64
|
+
press: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
selected: boolean;
|
|
67
|
+
owned: boolean;
|
|
68
|
+
press: () => void | undefined;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Development warnings, once each, for props that cannot apply together. `deviceLink` (Native on a device: an href with
|
|
72
|
+
* no onPress) has nowhere to go, since only the web follows href; `looseChoice` is a choice row outside a section with a
|
|
73
|
+
* selection mode, so it cannot join one radio group.
|
|
74
|
+
*/
|
|
75
|
+
export declare function warnListRowProps({ checked, selected, href, chevron, deviceLink, looseChoice }: {
|
|
10
76
|
checked?: boolean;
|
|
11
77
|
selected?: boolean;
|
|
12
78
|
href?: string;
|
|
13
79
|
chevron?: boolean;
|
|
80
|
+
deviceLink?: boolean;
|
|
81
|
+
looseChoice?: boolean;
|
|
82
|
+
}): void;
|
|
83
|
+
/** Development warning, once: an open section draws no dividers, so an explicit `divider` does nothing there. */
|
|
84
|
+
export declare function warnListSectionProps({ open, divider }: {
|
|
85
|
+
open: boolean;
|
|
86
|
+
divider?: boolean;
|
|
87
|
+
}): void;
|
|
88
|
+
/**
|
|
89
|
+
* Development warnings, once each, for a section selection that would otherwise be ignored without a word: a value
|
|
90
|
+
* with no selection mode, a single value for "multiple" (read as none chosen), a list for "single", and a value with
|
|
91
|
+
* no change handler, whose rows look pressable but never change. Vue always has its update event, so it passes
|
|
92
|
+
* `handled`.
|
|
93
|
+
*/
|
|
94
|
+
export declare function warnListSelection({ mode, value, handled }: {
|
|
95
|
+
mode: ListSelectionMode;
|
|
96
|
+
value: unknown;
|
|
97
|
+
handled: boolean;
|
|
14
98
|
}): void;
|
|
99
|
+
export type ListSectionCorner = "none" | "sm" | "md" | "lg" | "xl";
|
|
100
|
+
export type ListGroupVariant = "inset" | "flush" | "open";
|
|
101
|
+
export type ListSectionVariant = "default" | "open";
|
|
102
|
+
/**
|
|
103
|
+
* How a section draws, the same on every platform: whether it is open (rows on the page with no card or dividers; the
|
|
104
|
+
* section's variant, or the KjunListGroup's), its card corner (the group's when unset; none when open), whether its title
|
|
105
|
+
* is the small label (a title without a description, unless titleVariant says otherwise) and whether its rows form a card
|
|
106
|
+
* with the heading and footer outside it.
|
|
107
|
+
*/
|
|
108
|
+
export declare function listSectionShape<R extends ListSectionCorner>({ radius, group, variant, title, description, titleVariant }: {
|
|
109
|
+
radius?: R;
|
|
110
|
+
group?: ListGroupVariant | null;
|
|
111
|
+
variant?: ListSectionVariant;
|
|
112
|
+
title?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
titleVariant?: "title" | "label";
|
|
115
|
+
}): {
|
|
116
|
+
open: boolean;
|
|
117
|
+
corner: "none" | "lg" | R;
|
|
118
|
+
bare: boolean;
|
|
119
|
+
outside: boolean;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Web heading actions: records the tallest action's height on the heading, so any control (not only a KjunButton, which
|
|
123
|
+
* the stylesheet already knows) centers on the title's first line. Returns the cleanup.
|
|
124
|
+
*/
|
|
125
|
+
export declare function observeListHeadingActions(actions: HTMLElement): () => void;
|
|
@@ -1,14 +1,125 @@
|
|
|
1
|
-
export type ListRowKind = "switch" | "radio" | "link" | "button" | "static";
|
|
2
|
-
export
|
|
1
|
+
export type ListRowKind = "switch" | "radio" | "checkbox" | "link" | "button" | "static";
|
|
2
|
+
export type ListSelectionMode = "none" | "single" | "multiple";
|
|
3
|
+
export declare function listRowKind({ checked, selected, href, pressable, mode }: {
|
|
3
4
|
checked?: boolean;
|
|
4
5
|
selected?: boolean;
|
|
5
6
|
href?: string;
|
|
6
7
|
pressable: boolean;
|
|
8
|
+
mode?: ListSelectionMode;
|
|
7
9
|
}): ListRowKind;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* What a row draws at its end for its choice: a mark (an empty ring or box, filled when chosen) in an open section or a
|
|
12
|
+
* multiple-choice list, so every choice shows it can be picked; otherwise a check on the chosen row only. A busy
|
|
13
|
+
* pressable row (not a switch, whose thumb spins) draws a spinner in place of its mark, check and chevron.
|
|
14
|
+
*/
|
|
15
|
+
export declare function listRowEnd({ kind, selected, mode, open, busy }: {
|
|
16
|
+
kind: ListRowKind;
|
|
17
|
+
selected?: boolean;
|
|
18
|
+
mode: ListSelectionMode;
|
|
19
|
+
open: boolean;
|
|
20
|
+
busy?: boolean;
|
|
21
|
+
}): "mark" | "spinner" | "check" | null;
|
|
22
|
+
export type ListTypeRole = "label" | "input" | "caption" | "body";
|
|
23
|
+
/**
|
|
24
|
+
* A row's metrics for its section's variant and density, the numbers Web's row variables hold, for Native rows and
|
|
25
|
+
* row skeletons: vertical and horizontal padding, gap, minimum height, actions padding and the title, description and
|
|
26
|
+
* end value type roles.
|
|
27
|
+
*/
|
|
28
|
+
export declare function listRowMetrics({ open, compact }: {
|
|
29
|
+
open: boolean;
|
|
30
|
+
compact: boolean;
|
|
31
|
+
}): {
|
|
32
|
+
paddingY: 12 | 8;
|
|
33
|
+
paddingX: 12;
|
|
34
|
+
gap: 14;
|
|
35
|
+
minimumHeight: 56 | 64;
|
|
36
|
+
actionsPadding: 12;
|
|
37
|
+
title: ListTypeRole;
|
|
38
|
+
description: ListTypeRole;
|
|
39
|
+
trailing: ListTypeRole;
|
|
40
|
+
} | {
|
|
41
|
+
paddingY: 16 | 12;
|
|
42
|
+
paddingX: 16;
|
|
43
|
+
gap: 12;
|
|
44
|
+
minimumHeight: 56 | 44;
|
|
45
|
+
actionsPadding: 16;
|
|
46
|
+
title: ListTypeRole;
|
|
47
|
+
description: ListTypeRole;
|
|
48
|
+
trailing: ListTypeRole;
|
|
49
|
+
};
|
|
50
|
+
export type ListChoiceValue = string | number;
|
|
51
|
+
/** A section's selection: its mode and, when the section owns the value, that value and its change handler. */
|
|
52
|
+
export interface ListSelection {
|
|
53
|
+
mode: ListSelectionMode;
|
|
54
|
+
value?: ListChoiceValue | null | readonly ListChoiceValue[];
|
|
55
|
+
onValueChange?: (value: never) => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A row's choice state. A row with a `value` inside a section that owns its value (value given) reads its selection from
|
|
59
|
+
* the section and changes it when pressed; any other row keeps its own `selected` and press handler.
|
|
60
|
+
*/
|
|
61
|
+
export declare function listRowChoice(selection: ListSelection | undefined, rowValue: ListChoiceValue | undefined, selected: boolean | undefined): {
|
|
62
|
+
selected: boolean | undefined;
|
|
63
|
+
owned: boolean;
|
|
64
|
+
press: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
selected: boolean;
|
|
67
|
+
owned: boolean;
|
|
68
|
+
press: () => void | undefined;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Development warnings, once each, for props that cannot apply together. `deviceLink` (Native on a device: an href with
|
|
72
|
+
* no onPress) has nowhere to go, since only the web follows href; `looseChoice` is a choice row outside a section with a
|
|
73
|
+
* selection mode, so it cannot join one radio group.
|
|
74
|
+
*/
|
|
75
|
+
export declare function warnListRowProps({ checked, selected, href, chevron, deviceLink, looseChoice }: {
|
|
10
76
|
checked?: boolean;
|
|
11
77
|
selected?: boolean;
|
|
12
78
|
href?: string;
|
|
13
79
|
chevron?: boolean;
|
|
80
|
+
deviceLink?: boolean;
|
|
81
|
+
looseChoice?: boolean;
|
|
82
|
+
}): void;
|
|
83
|
+
/** Development warning, once: an open section draws no dividers, so an explicit `divider` does nothing there. */
|
|
84
|
+
export declare function warnListSectionProps({ open, divider }: {
|
|
85
|
+
open: boolean;
|
|
86
|
+
divider?: boolean;
|
|
87
|
+
}): void;
|
|
88
|
+
/**
|
|
89
|
+
* Development warnings, once each, for a section selection that would otherwise be ignored without a word: a value
|
|
90
|
+
* with no selection mode, a single value for "multiple" (read as none chosen), a list for "single", and a value with
|
|
91
|
+
* no change handler, whose rows look pressable but never change. Vue always has its update event, so it passes
|
|
92
|
+
* `handled`.
|
|
93
|
+
*/
|
|
94
|
+
export declare function warnListSelection({ mode, value, handled }: {
|
|
95
|
+
mode: ListSelectionMode;
|
|
96
|
+
value: unknown;
|
|
97
|
+
handled: boolean;
|
|
14
98
|
}): void;
|
|
99
|
+
export type ListSectionCorner = "none" | "sm" | "md" | "lg" | "xl";
|
|
100
|
+
export type ListGroupVariant = "inset" | "flush" | "open";
|
|
101
|
+
export type ListSectionVariant = "default" | "open";
|
|
102
|
+
/**
|
|
103
|
+
* How a section draws, the same on every platform: whether it is open (rows on the page with no card or dividers; the
|
|
104
|
+
* section's variant, or the KjunListGroup's), its card corner (the group's when unset; none when open), whether its title
|
|
105
|
+
* is the small label (a title without a description, unless titleVariant says otherwise) and whether its rows form a card
|
|
106
|
+
* with the heading and footer outside it.
|
|
107
|
+
*/
|
|
108
|
+
export declare function listSectionShape<R extends ListSectionCorner>({ radius, group, variant, title, description, titleVariant }: {
|
|
109
|
+
radius?: R;
|
|
110
|
+
group?: ListGroupVariant | null;
|
|
111
|
+
variant?: ListSectionVariant;
|
|
112
|
+
title?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
titleVariant?: "title" | "label";
|
|
115
|
+
}): {
|
|
116
|
+
open: boolean;
|
|
117
|
+
corner: "none" | "lg" | R;
|
|
118
|
+
bare: boolean;
|
|
119
|
+
outside: boolean;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Web heading actions: records the tallest action's height on the heading, so any control (not only a KjunButton, which
|
|
123
|
+
* the stylesheet already knows) centers on the title's first line. Returns the cleanup.
|
|
124
|
+
*/
|
|
125
|
+
export declare function observeListHeadingActions(actions: HTMLElement): () => void;
|
|
@@ -19,6 +19,7 @@ export declare const marketGeometry: {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const isMarketIdentity: (key?: string) => boolean;
|
|
21
21
|
export declare const normalizeMarketColumns: (columns: (LayoutColumn | string)[]) => LayoutColumn[];
|
|
22
|
+
export declare const webMarketActionsWidth = "var(--_kjun-market-table-actions-width)";
|
|
22
23
|
/** Preserve CSS widths and Vue's historical class-based width overrides. */
|
|
23
24
|
export declare const isCssMarketWidth: (width: unknown) => width is string;
|
|
24
25
|
export declare const legacyMarketWidthClass: (column: LayoutColumn) => string;
|
|
@@ -33,7 +34,8 @@ export declare function webMarketLayout(columns: LayoutColumn[], showActions: bo
|
|
|
33
34
|
};
|
|
34
35
|
}[];
|
|
35
36
|
};
|
|
36
|
-
export declare function nativeMarketLayout(columns: LayoutColumn[], showActions: boolean, containerWidth: number): {
|
|
37
|
+
export declare function nativeMarketLayout(columns: LayoutColumn[], showActions: boolean, containerWidth: number, windowWidth?: number): {
|
|
37
38
|
widths: number[];
|
|
39
|
+
compact: boolean;
|
|
38
40
|
width: number;
|
|
39
41
|
};
|
|
@@ -19,6 +19,7 @@ export declare const marketGeometry: {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const isMarketIdentity: (key?: string) => boolean;
|
|
21
21
|
export declare const normalizeMarketColumns: (columns: (LayoutColumn | string)[]) => LayoutColumn[];
|
|
22
|
+
export declare const webMarketActionsWidth = "var(--_kjun-market-table-actions-width)";
|
|
22
23
|
/** Preserve CSS widths and Vue's historical class-based width overrides. */
|
|
23
24
|
export declare const isCssMarketWidth: (width: unknown) => width is string;
|
|
24
25
|
export declare const legacyMarketWidthClass: (column: LayoutColumn) => string;
|
|
@@ -33,7 +34,8 @@ export declare function webMarketLayout(columns: LayoutColumn[], showActions: bo
|
|
|
33
34
|
};
|
|
34
35
|
}[];
|
|
35
36
|
};
|
|
36
|
-
export declare function nativeMarketLayout(columns: LayoutColumn[], showActions: boolean, containerWidth: number): {
|
|
37
|
+
export declare function nativeMarketLayout(columns: LayoutColumn[], showActions: boolean, containerWidth: number, windowWidth?: number): {
|
|
37
38
|
widths: number[];
|
|
39
|
+
compact: boolean;
|
|
38
40
|
width: number;
|
|
39
41
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { QueryDisplayProps } from "@kjun-ui/tokens";
|
|
2
|
+
/**
|
|
3
|
+
* Market views refresh in place. Loading over rows already shown (hasLoadedOnce without a queryKey) keeps them at
|
|
4
|
+
* full strength under the refreshing status, like a query refresh, instead of a dim that reads as disabled.
|
|
5
|
+
* The first load still shows the skeleton.
|
|
6
|
+
*/
|
|
7
|
+
export declare function marketQueryState(props: QueryDisplayProps): {
|
|
8
|
+
loading: boolean;
|
|
9
|
+
refreshing: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** The footer count, update time and pagination describe the shown rows, so a blocking error hides them with the rows. */
|
|
12
|
+
export declare function marketBlockingError(props: QueryDisplayProps, status: {
|
|
13
|
+
usesQueryState: boolean;
|
|
14
|
+
hasCurrentResult: boolean;
|
|
15
|
+
}): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { QueryDisplayProps } from "@kjun-ui/tokens";
|
|
2
|
+
/**
|
|
3
|
+
* Market views refresh in place. Loading over rows already shown (hasLoadedOnce without a queryKey) keeps them at
|
|
4
|
+
* full strength under the refreshing status, like a query refresh, instead of a dim that reads as disabled.
|
|
5
|
+
* The first load still shows the skeleton.
|
|
6
|
+
*/
|
|
7
|
+
export declare function marketQueryState(props: QueryDisplayProps): {
|
|
8
|
+
loading: boolean;
|
|
9
|
+
refreshing: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** The footer count, update time and pagination describe the shown rows, so a blocking error hides them with the rows. */
|
|
12
|
+
export declare function marketBlockingError(props: QueryDisplayProps, status: {
|
|
13
|
+
usesQueryState: boolean;
|
|
14
|
+
hasCurrentResult: boolean;
|
|
15
|
+
}): boolean;
|
|
@@ -83,6 +83,7 @@ export declare const kjunMessagesKo: {
|
|
|
83
83
|
increaseQuantity: string;
|
|
84
84
|
decreaseQuantity: string;
|
|
85
85
|
quantity: string;
|
|
86
|
+
hiddenValue: string;
|
|
86
87
|
relativeTimeFallback: (amount: number, unit: string) => string;
|
|
87
88
|
copy: string;
|
|
88
89
|
copied: string;
|
|
@@ -133,6 +134,32 @@ export declare const kjunMessagesKo: {
|
|
|
133
134
|
nextSlide: string;
|
|
134
135
|
goToSlide: (slide: number) => string;
|
|
135
136
|
slideOf: (slide: number, total: number) => string;
|
|
137
|
+
moveUp: (name: string) => string;
|
|
138
|
+
moveDown: (name: string) => string;
|
|
139
|
+
reorderMoved: (name: string, position: number, total: number) => string;
|
|
140
|
+
reorderHandle: (name: string) => string;
|
|
141
|
+
reorderGrabbed: (name: string) => string;
|
|
142
|
+
reorderDropped: (name: string, position: number, total: number) => string;
|
|
143
|
+
reorderCancelled: (name: string) => string;
|
|
144
|
+
tableReorderLocked: string;
|
|
145
|
+
colorPlaceholder: string;
|
|
146
|
+
colorPicker: string;
|
|
147
|
+
colorArea: string;
|
|
148
|
+
colorAreaValue: (saturation: number, brightness: number) => string;
|
|
149
|
+
hue: string;
|
|
150
|
+
hueValue: (degrees: number) => string;
|
|
151
|
+
alpha: string;
|
|
152
|
+
hex: string;
|
|
153
|
+
swatches: string;
|
|
154
|
+
colorNone: string;
|
|
155
|
+
colorValue: (hex: string, alpha?: number) => string;
|
|
156
|
+
increaseSaturation: string;
|
|
157
|
+
decreaseSaturation: string;
|
|
158
|
+
increaseBrightness: string;
|
|
159
|
+
decreaseBrightness: string;
|
|
160
|
+
recentColors: string;
|
|
161
|
+
eyeDropper: string;
|
|
162
|
+
colorAreaHint: string;
|
|
136
163
|
marketData: string;
|
|
137
164
|
metrics: string;
|
|
138
165
|
watchToggle: (name: string, active: boolean) => string;
|