@kjun-ui/react 0.16.0 → 0.18.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 +3406 -1486
- package/dist/index.js +3401 -1479
- package/dist/styles.css +1065 -219
- package/dist/types/packages/react/src/actions.d.cts +12 -3
- package/dist/types/packages/react/src/actions.d.ts +12 -3
- package/dist/types/packages/react/src/app-navigation.d.cts +30 -5
- package/dist/types/packages/react/src/app-navigation.d.ts +30 -5
- package/dist/types/packages/react/src/calendar.d.cts +30 -0
- package/dist/types/packages/react/src/calendar.d.ts +30 -0
- package/dist/types/packages/react/src/carousel.d.cts +39 -0
- package/dist/types/packages/react/src/carousel.d.ts +39 -0
- package/dist/types/packages/react/src/controls.d.cts +19 -12
- package/dist/types/packages/react/src/controls.d.ts +19 -12
- package/dist/types/packages/react/src/date-picker.d.cts +34 -6
- package/dist/types/packages/react/src/date-picker.d.ts +34 -6
- package/dist/types/packages/react/src/display.d.cts +12 -3
- package/dist/types/packages/react/src/display.d.ts +12 -3
- package/dist/types/packages/react/src/dropdown.d.cts +35 -3
- package/dist/types/packages/react/src/dropdown.d.ts +35 -3
- package/dist/types/packages/react/src/financial-display.d.cts +10 -1
- package/dist/types/packages/react/src/financial-display.d.ts +10 -1
- package/dist/types/packages/react/src/financial.d.cts +2 -2
- package/dist/types/packages/react/src/financial.d.ts +2 -2
- package/dist/types/packages/react/src/index.d.cts +8 -6
- package/dist/types/packages/react/src/index.d.ts +8 -6
- package/dist/types/packages/react/src/kpi.d.cts +6 -2
- package/dist/types/packages/react/src/kpi.d.ts +6 -2
- package/dist/types/packages/react/src/layers.d.cts +1 -1
- package/dist/types/packages/react/src/layers.d.ts +1 -1
- package/dist/types/packages/react/src/list.d.cts +29 -4
- package/dist/types/packages/react/src/list.d.ts +29 -4
- package/dist/types/packages/react/src/market-model.d.cts +8 -1
- package/dist/types/packages/react/src/market-model.d.ts +8 -1
- package/dist/types/packages/react/src/media.d.cts +1 -1
- package/dist/types/packages/react/src/media.d.ts +1 -1
- package/dist/types/packages/react/src/navigation.d.cts +24 -38
- package/dist/types/packages/react/src/navigation.d.ts +24 -38
- package/dist/types/packages/react/src/number-display.d.cts +12 -12
- package/dist/types/packages/react/src/number-display.d.ts +12 -12
- package/dist/types/packages/react/src/popover.d.cts +9 -4
- package/dist/types/packages/react/src/popover.d.ts +9 -4
- package/dist/types/packages/react/src/range-input.d.cts +4 -0
- package/dist/types/packages/react/src/range-input.d.ts +4 -0
- package/dist/types/packages/react/src/select-control.d.cts +3 -1
- package/dist/types/packages/react/src/select-control.d.ts +3 -1
- package/dist/types/packages/react/src/select.d.cts +2 -2
- package/dist/types/packages/react/src/select.d.ts +2 -2
- package/dist/types/packages/react/src/table-cards.d.cts +1 -1
- package/dist/types/packages/react/src/table-cards.d.ts +1 -1
- 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/table-list.d.cts +14 -0
- package/dist/types/packages/react/src/table-list.d.ts +14 -0
- 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/tabs.d.cts +38 -0
- package/dist/types/packages/react/src/tabs.d.ts +38 -0
- package/dist/types/packages/react/src/textarea.d.cts +29 -0
- package/dist/types/packages/react/src/textarea.d.ts +29 -0
- package/dist/types/packages/react/src/time-picker.d.cts +10 -1
- package/dist/types/packages/react/src/time-picker.d.ts +10 -1
- package/dist/types/shared/package-runtime/accordion-state.d.cts +11 -0
- package/dist/types/shared/package-runtime/accordion-state.d.ts +11 -0
- package/dist/types/shared/package-runtime/action-size.d.cts +1 -1
- package/dist/types/shared/package-runtime/action-size.d.ts +1 -1
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +2 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +2 -0
- package/dist/types/shared/package-runtime/alert-exit.d.cts +5 -0
- package/dist/types/shared/package-runtime/alert-exit.d.ts +5 -0
- package/dist/types/shared/package-runtime/alert-tone.d.cts +11 -0
- package/dist/types/shared/package-runtime/alert-tone.d.ts +11 -0
- package/dist/types/shared/package-runtime/badge-tone.d.cts +59 -0
- package/dist/types/shared/package-runtime/badge-tone.d.ts +59 -0
- package/dist/types/shared/package-runtime/breadcrumb.d.cts +20 -0
- package/dist/types/shared/package-runtime/breadcrumb.d.ts +20 -0
- package/dist/types/shared/package-runtime/calendar.d.cts +106 -0
- package/dist/types/shared/package-runtime/calendar.d.ts +106 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.cts +22 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.ts +22 -0
- package/dist/types/shared/package-runtime/carousel.d.cts +47 -0
- package/dist/types/shared/package-runtime/carousel.d.ts +47 -0
- package/dist/types/shared/package-runtime/center-option.d.cts +1 -0
- package/dist/types/shared/package-runtime/center-option.d.ts +1 -0
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +10 -4
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +10 -4
- package/dist/types/shared/package-runtime/list-row.d.cts +14 -0
- package/dist/types/shared/package-runtime/list-row.d.ts +14 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +38 -5
- package/dist/types/shared/package-runtime/messages/ko.d.ts +38 -5
- package/dist/types/shared/package-runtime/messages-context.d.cts +38 -5
- package/dist/types/shared/package-runtime/messages-context.d.ts +38 -5
- package/dist/types/shared/package-runtime/navigation-badge.d.cts +12 -0
- package/dist/types/shared/package-runtime/navigation-badge.d.ts +12 -0
- package/dist/types/shared/package-runtime/navigation.d.cts +1 -1
- package/dist/types/shared/package-runtime/navigation.d.ts +1 -1
- package/dist/types/shared/package-runtime/progress-circle.d.cts +5 -0
- package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -0
- package/dist/types/shared/package-runtime/scroll-fade.d.cts +25 -0
- package/dist/types/shared/package-runtime/scroll-fade.d.ts +25 -0
- package/dist/types/shared/package-runtime/sparkline.d.cts +58 -0
- package/dist/types/shared/package-runtime/sparkline.d.ts +58 -0
- package/dist/types/shared/package-runtime/table-groups.d.cts +11 -0
- package/dist/types/shared/package-runtime/table-groups.d.ts +11 -0
- package/dist/types/shared/package-runtime/table-model.d.cts +25 -2
- package/dist/types/shared/package-runtime/table-model.d.ts +25 -2
- package/dist/types/shared/package-runtime/table-presentation.d.cts +30 -4
- package/dist/types/shared/package-runtime/table-presentation.d.ts +30 -4
- package/dist/types/shared/package-runtime/table.d.cts +18 -2
- package/dist/types/shared/package-runtime/table.d.ts +18 -2
- package/dist/types/shared/package-runtime/textarea-grow.d.cts +1 -0
- package/dist/types/shared/package-runtime/textarea-grow.d.ts +1 -0
- package/dist/types/shared/package-runtime/textarea.d.cts +53 -0
- package/dist/types/shared/package-runtime/textarea.d.ts +53 -0
- package/dist/types/shared/package-runtime/time-segments.d.cts +25 -0
- package/dist/types/shared/package-runtime/time-segments.d.ts +25 -0
- package/package.json +3 -3
- package/dist/types/shared/package-runtime/relative-time.d.cts +0 -1
- package/dist/types/shared/package-runtime/relative-time.d.ts +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type OpenedItems = ReadonlySet<string>;
|
|
2
|
+
/** Opens or closes one item; a single-open Accordion closes the others. */
|
|
3
|
+
export declare function toggleOpened(opened: OpenedItems, id: string, multiple: boolean): Set<string>;
|
|
4
|
+
/** A defaultOpen item joins the open set, unless a single-open Accordion already has one open. */
|
|
5
|
+
export declare function registerOpened(opened: OpenedItems, id: string, defaultOpen: boolean, multiple: boolean): OpenedItems;
|
|
6
|
+
/** An item that unmounts leaves the open set. */
|
|
7
|
+
export declare function unregisterOpened(opened: OpenedItems, id: string): OpenedItems;
|
|
8
|
+
/** Switching to single-open keeps only the most recently opened item. */
|
|
9
|
+
export declare const trimToSingle: (opened: OpenedItems) => OpenedItems;
|
|
10
|
+
/** Up/Down/Home/End move between the headers of an Accordion, as in the WAI-ARIA accordion pattern. */
|
|
11
|
+
export declare function accordionKeyTarget(key: string, index: number, count: number): number | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type OpenedItems = ReadonlySet<string>;
|
|
2
|
+
/** Opens or closes one item; a single-open Accordion closes the others. */
|
|
3
|
+
export declare function toggleOpened(opened: OpenedItems, id: string, multiple: boolean): Set<string>;
|
|
4
|
+
/** A defaultOpen item joins the open set, unless a single-open Accordion already has one open. */
|
|
5
|
+
export declare function registerOpened(opened: OpenedItems, id: string, defaultOpen: boolean, multiple: boolean): OpenedItems;
|
|
6
|
+
/** An item that unmounts leaves the open set. */
|
|
7
|
+
export declare function unregisterOpened(opened: OpenedItems, id: string): OpenedItems;
|
|
8
|
+
/** Switching to single-open keeps only the most recently opened item. */
|
|
9
|
+
export declare const trimToSingle: (opened: OpenedItems) => OpenedItems;
|
|
10
|
+
/** Up/Down/Home/End move between the headers of an Accordion, as in the WAI-ARIA accordion pattern. */
|
|
11
|
+
export declare function accordionKeyTarget(key: string, index: number, count: number): number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonSize } from "@kjun-ui/tokens";
|
|
2
|
-
export { alertActionSizes } from "./alert-action-size.cjs";
|
|
2
|
+
export { alertActionSizes, popoverActionSize } from "./alert-action-size.cjs";
|
|
3
3
|
/** A container's default size for buttons that leave `size` unset; an explicit size always wins. */
|
|
4
4
|
export declare const ActionSizeContext: import("react").Context<"xs" | "sm" | "md" | "lg" | "xl" | null>;
|
|
5
5
|
export declare function useActionSize(requested: ButtonSize | undefined, fallback: ButtonSize): ButtonSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonSize } from "@kjun-ui/tokens";
|
|
2
|
-
export { alertActionSizes } from "./alert-action-size.js";
|
|
2
|
+
export { alertActionSizes, popoverActionSize } from "./alert-action-size.js";
|
|
3
3
|
/** A container's default size for buttons that leave `size` unset; an explicit size always wins. */
|
|
4
4
|
export declare const ActionSizeContext: import("react").Context<"xs" | "sm" | "md" | "lg" | "xl" | null>;
|
|
5
5
|
export declare function useActionSize(requested: ButtonSize | undefined, fallback: ButtonSize): ButtonSize;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collapses a dismissed web Alert's height and padding while it fades, so the content below slides up
|
|
3
|
+
* instead of jumping; `done` runs once it is gone. Reduced motion (or no Web Animations) finishes at once.
|
|
4
|
+
*/
|
|
5
|
+
export declare function collapseAlert(el: HTMLElement | null, reduced: boolean, done: () => void): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collapses a dismissed web Alert's height and padding while it fades, so the content below slides up
|
|
3
|
+
* instead of jumping; `done` runs once it is gone. Reduced motion (or no Web Animations) finishes at once.
|
|
4
|
+
*/
|
|
5
|
+
export declare function collapseAlert(el: HTMLElement | null, reduced: boolean, done: () => void): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color roles a soft-fill Alert paints per tone. Info has no fill role: it uses a translucent text tint so it
|
|
3
|
+
* stays visible on any page background; the semantic tones carry the color, titles stay on the text role.
|
|
4
|
+
*/
|
|
5
|
+
export declare function alertToneRoles(tone: string): {
|
|
6
|
+
bg: string | null;
|
|
7
|
+
icon: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const alertIcons: Record<string, string>;
|
|
10
|
+
/** Native has no color-mix: tints a hex or rgb() color with alpha, or returns undefined for other formats. */
|
|
11
|
+
export declare function tintColor(color: string, alpha: number): string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color roles a soft-fill Alert paints per tone. Info has no fill role: it uses a translucent text tint so it
|
|
3
|
+
* stays visible on any page background; the semantic tones carry the color, titles stay on the text role.
|
|
4
|
+
*/
|
|
5
|
+
export declare function alertToneRoles(tone: string): {
|
|
6
|
+
bg: string | null;
|
|
7
|
+
icon: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const alertIcons: Record<string, string>;
|
|
10
|
+
/** Native has no color-mix: tints a hex or rgb() color with alpha, or returns undefined for other formats. */
|
|
11
|
+
export declare function tintColor(color: string, alpha: number): string | undefined;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { tokens } from "@kjun-ui/tokens";
|
|
2
|
+
type BadgeSize = keyof typeof tokens.extensions.badge.padding;
|
|
3
|
+
export type BadgeVariant = "default" | "secondary" | "primary" | "success" | "warning" | "danger" | "info" | "price-up" | "price-down";
|
|
4
|
+
export interface BadgeToneRoles {
|
|
5
|
+
bg: string;
|
|
6
|
+
text: string;
|
|
7
|
+
dot: string;
|
|
8
|
+
}
|
|
9
|
+
/** Color roles a badge paints: the tone's subtle fill, its darker text and its accent dot. */
|
|
10
|
+
export declare function badgeToneRoles(variant: BadgeVariant): BadgeToneRoles;
|
|
11
|
+
/** Size geometry shared by every platform: one type step, radius, gap and dot per size. */
|
|
12
|
+
export declare function badgeGeometry(size: BadgeSize): {
|
|
13
|
+
padding: {
|
|
14
|
+
readonly x: 6;
|
|
15
|
+
readonly y: 0;
|
|
16
|
+
} | {
|
|
17
|
+
readonly x: 8;
|
|
18
|
+
readonly y: 2;
|
|
19
|
+
} | {
|
|
20
|
+
readonly x: 8;
|
|
21
|
+
readonly y: 2;
|
|
22
|
+
} | {
|
|
23
|
+
readonly x: 10;
|
|
24
|
+
readonly y: 4;
|
|
25
|
+
} | {
|
|
26
|
+
readonly x: 12;
|
|
27
|
+
readonly y: 4;
|
|
28
|
+
};
|
|
29
|
+
radius: 4 | 10 | 8 | 6;
|
|
30
|
+
gap: 4 | 6;
|
|
31
|
+
dotSize: 8 | 6;
|
|
32
|
+
type: {
|
|
33
|
+
fontWeight: 500;
|
|
34
|
+
fontSizePx: 12;
|
|
35
|
+
lineHeightPx: 16;
|
|
36
|
+
letterSpacingEm: 0;
|
|
37
|
+
} | {
|
|
38
|
+
fontWeight: 500;
|
|
39
|
+
fontSizePx: 12;
|
|
40
|
+
lineHeightPx: 16;
|
|
41
|
+
letterSpacingEm: 0;
|
|
42
|
+
} | {
|
|
43
|
+
fontWeight: 500;
|
|
44
|
+
fontSizePx: 14;
|
|
45
|
+
lineHeightPx: 20;
|
|
46
|
+
letterSpacingEm: 0;
|
|
47
|
+
} | {
|
|
48
|
+
fontWeight: 500;
|
|
49
|
+
fontSizePx: 14;
|
|
50
|
+
lineHeightPx: 20;
|
|
51
|
+
letterSpacingEm: 0;
|
|
52
|
+
} | {
|
|
53
|
+
fontWeight: 500;
|
|
54
|
+
fontSizePx: 16;
|
|
55
|
+
lineHeightPx: 24;
|
|
56
|
+
letterSpacingEm: 0;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { tokens } from "@kjun-ui/tokens";
|
|
2
|
+
type BadgeSize = keyof typeof tokens.extensions.badge.padding;
|
|
3
|
+
export type BadgeVariant = "default" | "secondary" | "primary" | "success" | "warning" | "danger" | "info" | "price-up" | "price-down";
|
|
4
|
+
export interface BadgeToneRoles {
|
|
5
|
+
bg: string;
|
|
6
|
+
text: string;
|
|
7
|
+
dot: string;
|
|
8
|
+
}
|
|
9
|
+
/** Color roles a badge paints: the tone's subtle fill, its darker text and its accent dot. */
|
|
10
|
+
export declare function badgeToneRoles(variant: BadgeVariant): BadgeToneRoles;
|
|
11
|
+
/** Size geometry shared by every platform: one type step, radius, gap and dot per size. */
|
|
12
|
+
export declare function badgeGeometry(size: BadgeSize): {
|
|
13
|
+
padding: {
|
|
14
|
+
readonly x: 6;
|
|
15
|
+
readonly y: 0;
|
|
16
|
+
} | {
|
|
17
|
+
readonly x: 8;
|
|
18
|
+
readonly y: 2;
|
|
19
|
+
} | {
|
|
20
|
+
readonly x: 8;
|
|
21
|
+
readonly y: 2;
|
|
22
|
+
} | {
|
|
23
|
+
readonly x: 10;
|
|
24
|
+
readonly y: 4;
|
|
25
|
+
} | {
|
|
26
|
+
readonly x: 12;
|
|
27
|
+
readonly y: 4;
|
|
28
|
+
};
|
|
29
|
+
radius: 4 | 10 | 8 | 6;
|
|
30
|
+
gap: 4 | 6;
|
|
31
|
+
dotSize: 8 | 6;
|
|
32
|
+
type: {
|
|
33
|
+
fontWeight: 500;
|
|
34
|
+
fontSizePx: 12;
|
|
35
|
+
lineHeightPx: 16;
|
|
36
|
+
letterSpacingEm: 0;
|
|
37
|
+
} | {
|
|
38
|
+
fontWeight: 500;
|
|
39
|
+
fontSizePx: 12;
|
|
40
|
+
lineHeightPx: 16;
|
|
41
|
+
letterSpacingEm: 0;
|
|
42
|
+
} | {
|
|
43
|
+
fontWeight: 500;
|
|
44
|
+
fontSizePx: 14;
|
|
45
|
+
lineHeightPx: 20;
|
|
46
|
+
letterSpacingEm: 0;
|
|
47
|
+
} | {
|
|
48
|
+
fontWeight: 500;
|
|
49
|
+
fontSizePx: 14;
|
|
50
|
+
lineHeightPx: 20;
|
|
51
|
+
letterSpacingEm: 0;
|
|
52
|
+
} | {
|
|
53
|
+
fontWeight: 500;
|
|
54
|
+
fontSizePx: 16;
|
|
55
|
+
lineHeightPx: 24;
|
|
56
|
+
letterSpacingEm: 0;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
to?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
/** Marks this step as the current page; by default that is a last step without `to`. */
|
|
6
|
+
current?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const breadcrumbCurrent: (item: BreadcrumbItem, index: number, count: number) => boolean;
|
|
9
|
+
/** With maxItems, a long trail keeps its first step and the last maxItems - 1, and the steps between fold into a menu. */
|
|
10
|
+
export declare function collapseBreadcrumb<T>(items: readonly T[], maxItems?: number): {
|
|
11
|
+
shown: {
|
|
12
|
+
item: T;
|
|
13
|
+
index: number;
|
|
14
|
+
}[];
|
|
15
|
+
hidden: {
|
|
16
|
+
item: T;
|
|
17
|
+
index: number;
|
|
18
|
+
}[];
|
|
19
|
+
at: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
to?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
/** Marks this step as the current page; by default that is a last step without `to`. */
|
|
6
|
+
current?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const breadcrumbCurrent: (item: BreadcrumbItem, index: number, count: number) => boolean;
|
|
9
|
+
/** With maxItems, a long trail keeps its first step and the last maxItems - 1, and the steps between fold into a menu. */
|
|
10
|
+
export declare function collapseBreadcrumb<T>(items: readonly T[], maxItems?: number): {
|
|
11
|
+
shown: {
|
|
12
|
+
item: T;
|
|
13
|
+
index: number;
|
|
14
|
+
}[];
|
|
15
|
+
hidden: {
|
|
16
|
+
item: T;
|
|
17
|
+
index: number;
|
|
18
|
+
}[];
|
|
19
|
+
at: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { KjunMessageScope } from "./messages/index.cjs";
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
start: string;
|
|
4
|
+
end: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CalendarDay {
|
|
7
|
+
iso: string;
|
|
8
|
+
day: number;
|
|
9
|
+
weekday: number;
|
|
10
|
+
outside: boolean;
|
|
11
|
+
blocked: boolean;
|
|
12
|
+
today: boolean;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
rangeStart: boolean;
|
|
15
|
+
rangeEnd: boolean;
|
|
16
|
+
inRange: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function parseDate(iso: string | null | undefined): {
|
|
19
|
+
year: number;
|
|
20
|
+
month: number;
|
|
21
|
+
day: number;
|
|
22
|
+
} | null;
|
|
23
|
+
export declare const toIsoDate: (year: number, month: number, day: number) => string;
|
|
24
|
+
export declare function todayIso(now?: Date): string;
|
|
25
|
+
export declare const isBlocked: (iso: string, min?: string, max?: string) => boolean;
|
|
26
|
+
/** An app rule for days that cannot be picked inside the bounds, such as holidays or booked days. */
|
|
27
|
+
export type DateUnavailable = (iso: string) => boolean;
|
|
28
|
+
/** The first column of the week: 0 is Sunday, 1 is Monday. */
|
|
29
|
+
export type WeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
30
|
+
export declare function clampDate(iso: string, min?: string, max?: string): string;
|
|
31
|
+
export declare function addDays(iso: string, days: number): string;
|
|
32
|
+
/** The same day in another month, kept inside that month (Jan 31 + 1 month = Feb 28). */
|
|
33
|
+
export declare function addMonths(iso: string, months: number): string;
|
|
34
|
+
/** The band a range draws: the committed range, or while only the start is picked, the start to the previewed day. */
|
|
35
|
+
export declare function rangeBand(range: DateRange | undefined, preview?: string): DateRange | null;
|
|
36
|
+
/** Whole weeks covering the month from weekStart (Sunday by default), with the neighbouring months' days marked outside. */
|
|
37
|
+
export declare function calendarDays(year: number, month: number, { value, range, min, max, today, weekStart, unavailable, preview }: {
|
|
38
|
+
value?: string;
|
|
39
|
+
range?: DateRange;
|
|
40
|
+
min?: string;
|
|
41
|
+
max?: string;
|
|
42
|
+
today?: string;
|
|
43
|
+
weekStart?: WeekStart;
|
|
44
|
+
unavailable?: DateUnavailable;
|
|
45
|
+
preview?: string;
|
|
46
|
+
}): CalendarDay[];
|
|
47
|
+
/** Weekday names (given Sunday first) turned to start on weekStart. */
|
|
48
|
+
export declare const orderWeekdays: <T>(names: readonly T[], weekStart?: WeekStart) => T[];
|
|
49
|
+
/** Whether a whole month lies outside the bounds (for month cells and the previous/next buttons). */
|
|
50
|
+
export declare function monthOutside(year: number, month: number, min?: string, max?: string): boolean;
|
|
51
|
+
/** Keyboard movement inside the day grid, as in the ARIA date picker pattern; Home and End go to the week's ends. */
|
|
52
|
+
export declare function moveDate(iso: string, key: string, shift?: boolean, weekStart?: WeekStart): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The next range after picking a day: a fresh pick starts a range, the second pick ends it (in either order).
|
|
55
|
+
* A range may not run across an unavailable day; picking past one starts a new range there.
|
|
56
|
+
*/
|
|
57
|
+
export declare function pickRange(range: DateRange, iso: string, unavailable?: DateUnavailable): DateRange;
|
|
58
|
+
/** A range Apply can commit: both ends, or neither (which clears it). */
|
|
59
|
+
export declare const canApplyRange: (range: DateRange) => boolean;
|
|
60
|
+
/** A range from the app put in order and inside the bounds; a malformed one reads as empty. */
|
|
61
|
+
export declare function normalizeRange(range: DateRange | null | undefined, min?: string, max?: string): DateRange;
|
|
62
|
+
/** The calendar's three views: days, the months of a year, and a grid of twelve years. */
|
|
63
|
+
export type CalendarMode = "days" | "months" | "years";
|
|
64
|
+
/** Where the previous and next buttons move the focused day in each view. */
|
|
65
|
+
export declare const stepTarget: (focus: string, mode: CalendarMode, delta: number) => string;
|
|
66
|
+
/** Whether the previous or next button leads only outside the bounds. */
|
|
67
|
+
export declare function stepDisabled(focus: string, mode: CalendarMode, delta: number, min?: string, max?: string): boolean;
|
|
68
|
+
/** The focused day moved into another month of the shown year, kept inside that month. */
|
|
69
|
+
export declare const pickMonth: (focus: string, month: number) => string;
|
|
70
|
+
/** The focused day moved into another year. */
|
|
71
|
+
export declare const pickYear: (focus: string, year: number) => string;
|
|
72
|
+
/** Twelve years around the shown one, aligned to multiples of twelve, for the year view. */
|
|
73
|
+
export declare const yearGrid: (year: number) => number[];
|
|
74
|
+
export declare const yearOutside: (year: number, min?: string, max?: string) => boolean;
|
|
75
|
+
/** What the footer holds: a clear button when clearing is allowed, then Apply for ranges (unless they commit on the second pick) or Today when today can be picked. */
|
|
76
|
+
export declare function calendarFooter({ range, apply, clearable, todayBlocked }: {
|
|
77
|
+
range: boolean;
|
|
78
|
+
apply?: boolean;
|
|
79
|
+
clearable: boolean;
|
|
80
|
+
todayBlocked: boolean;
|
|
81
|
+
}): {
|
|
82
|
+
clear: boolean;
|
|
83
|
+
action: "today" | "apply" | null;
|
|
84
|
+
shown: boolean;
|
|
85
|
+
};
|
|
86
|
+
/** The day a calendar opens on: the value (or range start), else today, kept inside the bounds. */
|
|
87
|
+
export declare function initialFocus(value: string | undefined, min?: string, max?: string): string;
|
|
88
|
+
/** A spoken name for a day, such as "2026년 9월 12일 토요일". */
|
|
89
|
+
export declare function dateLabel(iso: string, scope?: KjunMessageScope): string;
|
|
90
|
+
/** Month cell names and the heading of the month view. */
|
|
91
|
+
export declare function monthNames(year: number, scope?: KjunMessageScope): {
|
|
92
|
+
title: string;
|
|
93
|
+
months: string[];
|
|
94
|
+
};
|
|
95
|
+
/** Five years around the shown one for the month view's year chips, kept inside the bounds. */
|
|
96
|
+
export declare function yearChoices(year: number, min?: string, max?: string): number[];
|
|
97
|
+
/** Range field text: the end drops a repeated year ("2026. 09. 08. – 09. 16."). */
|
|
98
|
+
export declare function formatRange(range: DateRange, format: (iso: string) => string): string;
|
|
99
|
+
/** The spoken range for the field: both ends' day names. */
|
|
100
|
+
export declare function rangeSpoken(range: DateRange, scope?: KjunMessageScope): string;
|
|
101
|
+
/** The range a form submits: "start/end", or empty until both ends are set. */
|
|
102
|
+
export declare const rangeSubmitted: (range: DateRange) => string;
|
|
103
|
+
/** The part a day plays in a range, for its description: start, end or a day between. */
|
|
104
|
+
export declare function rangeRole(day: CalendarDay): "start" | "end" | "between" | null;
|
|
105
|
+
/** A one-time development warning shared by the date and time pickers. */
|
|
106
|
+
export declare function warnPicker(message: string): void;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { KjunMessageScope } from "./messages/index.js";
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
start: string;
|
|
4
|
+
end: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CalendarDay {
|
|
7
|
+
iso: string;
|
|
8
|
+
day: number;
|
|
9
|
+
weekday: number;
|
|
10
|
+
outside: boolean;
|
|
11
|
+
blocked: boolean;
|
|
12
|
+
today: boolean;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
rangeStart: boolean;
|
|
15
|
+
rangeEnd: boolean;
|
|
16
|
+
inRange: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function parseDate(iso: string | null | undefined): {
|
|
19
|
+
year: number;
|
|
20
|
+
month: number;
|
|
21
|
+
day: number;
|
|
22
|
+
} | null;
|
|
23
|
+
export declare const toIsoDate: (year: number, month: number, day: number) => string;
|
|
24
|
+
export declare function todayIso(now?: Date): string;
|
|
25
|
+
export declare const isBlocked: (iso: string, min?: string, max?: string) => boolean;
|
|
26
|
+
/** An app rule for days that cannot be picked inside the bounds, such as holidays or booked days. */
|
|
27
|
+
export type DateUnavailable = (iso: string) => boolean;
|
|
28
|
+
/** The first column of the week: 0 is Sunday, 1 is Monday. */
|
|
29
|
+
export type WeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
30
|
+
export declare function clampDate(iso: string, min?: string, max?: string): string;
|
|
31
|
+
export declare function addDays(iso: string, days: number): string;
|
|
32
|
+
/** The same day in another month, kept inside that month (Jan 31 + 1 month = Feb 28). */
|
|
33
|
+
export declare function addMonths(iso: string, months: number): string;
|
|
34
|
+
/** The band a range draws: the committed range, or while only the start is picked, the start to the previewed day. */
|
|
35
|
+
export declare function rangeBand(range: DateRange | undefined, preview?: string): DateRange | null;
|
|
36
|
+
/** Whole weeks covering the month from weekStart (Sunday by default), with the neighbouring months' days marked outside. */
|
|
37
|
+
export declare function calendarDays(year: number, month: number, { value, range, min, max, today, weekStart, unavailable, preview }: {
|
|
38
|
+
value?: string;
|
|
39
|
+
range?: DateRange;
|
|
40
|
+
min?: string;
|
|
41
|
+
max?: string;
|
|
42
|
+
today?: string;
|
|
43
|
+
weekStart?: WeekStart;
|
|
44
|
+
unavailable?: DateUnavailable;
|
|
45
|
+
preview?: string;
|
|
46
|
+
}): CalendarDay[];
|
|
47
|
+
/** Weekday names (given Sunday first) turned to start on weekStart. */
|
|
48
|
+
export declare const orderWeekdays: <T>(names: readonly T[], weekStart?: WeekStart) => T[];
|
|
49
|
+
/** Whether a whole month lies outside the bounds (for month cells and the previous/next buttons). */
|
|
50
|
+
export declare function monthOutside(year: number, month: number, min?: string, max?: string): boolean;
|
|
51
|
+
/** Keyboard movement inside the day grid, as in the ARIA date picker pattern; Home and End go to the week's ends. */
|
|
52
|
+
export declare function moveDate(iso: string, key: string, shift?: boolean, weekStart?: WeekStart): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The next range after picking a day: a fresh pick starts a range, the second pick ends it (in either order).
|
|
55
|
+
* A range may not run across an unavailable day; picking past one starts a new range there.
|
|
56
|
+
*/
|
|
57
|
+
export declare function pickRange(range: DateRange, iso: string, unavailable?: DateUnavailable): DateRange;
|
|
58
|
+
/** A range Apply can commit: both ends, or neither (which clears it). */
|
|
59
|
+
export declare const canApplyRange: (range: DateRange) => boolean;
|
|
60
|
+
/** A range from the app put in order and inside the bounds; a malformed one reads as empty. */
|
|
61
|
+
export declare function normalizeRange(range: DateRange | null | undefined, min?: string, max?: string): DateRange;
|
|
62
|
+
/** The calendar's three views: days, the months of a year, and a grid of twelve years. */
|
|
63
|
+
export type CalendarMode = "days" | "months" | "years";
|
|
64
|
+
/** Where the previous and next buttons move the focused day in each view. */
|
|
65
|
+
export declare const stepTarget: (focus: string, mode: CalendarMode, delta: number) => string;
|
|
66
|
+
/** Whether the previous or next button leads only outside the bounds. */
|
|
67
|
+
export declare function stepDisabled(focus: string, mode: CalendarMode, delta: number, min?: string, max?: string): boolean;
|
|
68
|
+
/** The focused day moved into another month of the shown year, kept inside that month. */
|
|
69
|
+
export declare const pickMonth: (focus: string, month: number) => string;
|
|
70
|
+
/** The focused day moved into another year. */
|
|
71
|
+
export declare const pickYear: (focus: string, year: number) => string;
|
|
72
|
+
/** Twelve years around the shown one, aligned to multiples of twelve, for the year view. */
|
|
73
|
+
export declare const yearGrid: (year: number) => number[];
|
|
74
|
+
export declare const yearOutside: (year: number, min?: string, max?: string) => boolean;
|
|
75
|
+
/** What the footer holds: a clear button when clearing is allowed, then Apply for ranges (unless they commit on the second pick) or Today when today can be picked. */
|
|
76
|
+
export declare function calendarFooter({ range, apply, clearable, todayBlocked }: {
|
|
77
|
+
range: boolean;
|
|
78
|
+
apply?: boolean;
|
|
79
|
+
clearable: boolean;
|
|
80
|
+
todayBlocked: boolean;
|
|
81
|
+
}): {
|
|
82
|
+
clear: boolean;
|
|
83
|
+
action: "today" | "apply" | null;
|
|
84
|
+
shown: boolean;
|
|
85
|
+
};
|
|
86
|
+
/** The day a calendar opens on: the value (or range start), else today, kept inside the bounds. */
|
|
87
|
+
export declare function initialFocus(value: string | undefined, min?: string, max?: string): string;
|
|
88
|
+
/** A spoken name for a day, such as "2026년 9월 12일 토요일". */
|
|
89
|
+
export declare function dateLabel(iso: string, scope?: KjunMessageScope): string;
|
|
90
|
+
/** Month cell names and the heading of the month view. */
|
|
91
|
+
export declare function monthNames(year: number, scope?: KjunMessageScope): {
|
|
92
|
+
title: string;
|
|
93
|
+
months: string[];
|
|
94
|
+
};
|
|
95
|
+
/** Five years around the shown one for the month view's year chips, kept inside the bounds. */
|
|
96
|
+
export declare function yearChoices(year: number, min?: string, max?: string): number[];
|
|
97
|
+
/** Range field text: the end drops a repeated year ("2026. 09. 08. – 09. 16."). */
|
|
98
|
+
export declare function formatRange(range: DateRange, format: (iso: string) => string): string;
|
|
99
|
+
/** The spoken range for the field: both ends' day names. */
|
|
100
|
+
export declare function rangeSpoken(range: DateRange, scope?: KjunMessageScope): string;
|
|
101
|
+
/** The range a form submits: "start/end", or empty until both ends are set. */
|
|
102
|
+
export declare const rangeSubmitted: (range: DateRange) => string;
|
|
103
|
+
/** The part a day plays in a range, for its description: start, end or a day between. */
|
|
104
|
+
export declare function rangeRole(day: CalendarDay): "start" | "end" | "between" | null;
|
|
105
|
+
/** A one-time development warning shared by the date and time pickers. */
|
|
106
|
+
export declare function warnPicker(message: string): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type CarouselSnapAlign } from "./carousel.cjs";
|
|
2
|
+
export interface CarouselScrollerOptions {
|
|
3
|
+
/** The scroll position came to rest on this slide. */
|
|
4
|
+
onSettle: (index: number) => void;
|
|
5
|
+
/** A mouse drag ended; move to this slide. */
|
|
6
|
+
onDragEnd: (index: number) => void;
|
|
7
|
+
/** The places the slides stop changed; slides that share a stop share a dot. */
|
|
8
|
+
onStops: (stops: number[]) => void;
|
|
9
|
+
current: () => number;
|
|
10
|
+
mouseDrag: () => boolean;
|
|
11
|
+
align: () => CarouselSnapAlign;
|
|
12
|
+
}
|
|
13
|
+
export interface CarouselScroller {
|
|
14
|
+
scrollTo: (target: number, smooth: boolean) => void;
|
|
15
|
+
nearest: () => number;
|
|
16
|
+
/** A smooth scroll toward this slide is still under way; starting it again would end it early with a midway scrollend. */
|
|
17
|
+
heading: () => number | undefined;
|
|
18
|
+
/** Call after every render: picks up added or removed slides. */
|
|
19
|
+
refresh: () => void;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function createCarouselScroller(el: HTMLElement, options: CarouselScrollerOptions): CarouselScroller;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type CarouselSnapAlign } from "./carousel.js";
|
|
2
|
+
export interface CarouselScrollerOptions {
|
|
3
|
+
/** The scroll position came to rest on this slide. */
|
|
4
|
+
onSettle: (index: number) => void;
|
|
5
|
+
/** A mouse drag ended; move to this slide. */
|
|
6
|
+
onDragEnd: (index: number) => void;
|
|
7
|
+
/** The places the slides stop changed; slides that share a stop share a dot. */
|
|
8
|
+
onStops: (stops: number[]) => void;
|
|
9
|
+
current: () => number;
|
|
10
|
+
mouseDrag: () => boolean;
|
|
11
|
+
align: () => CarouselSnapAlign;
|
|
12
|
+
}
|
|
13
|
+
export interface CarouselScroller {
|
|
14
|
+
scrollTo: (target: number, smooth: boolean) => void;
|
|
15
|
+
nearest: () => number;
|
|
16
|
+
/** A smooth scroll toward this slide is still under way; starting it again would end it early with a midway scrollend. */
|
|
17
|
+
heading: () => number | undefined;
|
|
18
|
+
/** Call after every render: picks up added or removed slides. */
|
|
19
|
+
refresh: () => void;
|
|
20
|
+
destroy: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function createCarouselScroller(el: HTMLElement, options: CarouselScrollerOptions): CarouselScroller;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type CarouselSlideSize = "full" | "peek" | "auto";
|
|
2
|
+
export type CarouselGap = "none" | "sm" | "md" | "lg";
|
|
3
|
+
export type CarouselMove = "previous" | "next" | "first" | "last";
|
|
4
|
+
export type CarouselIndicators = boolean | "dots" | "count";
|
|
5
|
+
export type CarouselTitleTag = "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6
|
+
export type CarouselSnapAlign = "start" | "center";
|
|
7
|
+
export type CarouselBleed = "none" | "sm" | "md" | "lg";
|
|
8
|
+
export type CarouselIndicatorPlacement = "below" | "overlay";
|
|
9
|
+
/** true means dots; false means none. */
|
|
10
|
+
export declare function indicatorMode(indicators: CarouselIndicators): "dots" | "count" | undefined;
|
|
11
|
+
export declare function clampSlide(index: number, count: number): number;
|
|
12
|
+
/**
|
|
13
|
+
* The slide whose start edge is nearest the scroll position. Narrow slides near the end can never reach the start
|
|
14
|
+
* edge, so a position at the end of the scroll range (`max`) settles on the last slide.
|
|
15
|
+
*/
|
|
16
|
+
export declare function nearestSlide(offsets: readonly number[], position: number, max?: number): number;
|
|
17
|
+
/** Like nearestSlide, but a current slide that already sits at the position stays current (several narrow cards share the end). */
|
|
18
|
+
export declare function settleSlide(offsets: readonly number[], position: number, max: number, current: number): number;
|
|
19
|
+
/** Numbers the distinct places the slides stop, so slides that share a stop share one dot. */
|
|
20
|
+
export declare function slideStops(offsets: readonly number[]): number[];
|
|
21
|
+
/** One dot per stop: the first slide at that stop is where the dot leads, and the current slide's stop is lit. */
|
|
22
|
+
export declare function stopDots(stops: readonly number[] | undefined, count: number, current: number): {
|
|
23
|
+
target: number;
|
|
24
|
+
current: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
/** Where focus goes after a button moves to an end: the scroller for side buttons, which vanish, or the other header button. */
|
|
27
|
+
export declare function stepFocus(target: number, count: number, header: boolean): "viewport" | "previous" | "next" | undefined;
|
|
28
|
+
/** Slide starts as scroll positions the scroller can actually reach; starts past the end stop at the end. */
|
|
29
|
+
export declare function reachableOffsets(offsets: readonly number[], max: number): number[];
|
|
30
|
+
/** Where a mouse drag lands: wherever the position is nearest, or one slide on once the drag passes a fifth of the view. */
|
|
31
|
+
export declare function dragTarget({ start, nearest, distance, width, count }: {
|
|
32
|
+
start: number;
|
|
33
|
+
nearest: number;
|
|
34
|
+
distance: number;
|
|
35
|
+
width: number;
|
|
36
|
+
count: number;
|
|
37
|
+
}): number;
|
|
38
|
+
export declare function carouselKey(key: string): CarouselMove | undefined;
|
|
39
|
+
export declare function carouselTarget(move: CarouselMove, index: number, count: number): number;
|
|
40
|
+
export declare function warnUnnamedCarousel(named: boolean): void;
|
|
41
|
+
/** Development-only hints for setups that leave some people unable to move or name the carousel. */
|
|
42
|
+
export declare function warnCarouselSetup({ controls, dots, mouseDrag, named }: {
|
|
43
|
+
controls: boolean;
|
|
44
|
+
dots: boolean;
|
|
45
|
+
mouseDrag: boolean;
|
|
46
|
+
named: boolean;
|
|
47
|
+
}): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type CarouselSlideSize = "full" | "peek" | "auto";
|
|
2
|
+
export type CarouselGap = "none" | "sm" | "md" | "lg";
|
|
3
|
+
export type CarouselMove = "previous" | "next" | "first" | "last";
|
|
4
|
+
export type CarouselIndicators = boolean | "dots" | "count";
|
|
5
|
+
export type CarouselTitleTag = "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6
|
+
export type CarouselSnapAlign = "start" | "center";
|
|
7
|
+
export type CarouselBleed = "none" | "sm" | "md" | "lg";
|
|
8
|
+
export type CarouselIndicatorPlacement = "below" | "overlay";
|
|
9
|
+
/** true means dots; false means none. */
|
|
10
|
+
export declare function indicatorMode(indicators: CarouselIndicators): "dots" | "count" | undefined;
|
|
11
|
+
export declare function clampSlide(index: number, count: number): number;
|
|
12
|
+
/**
|
|
13
|
+
* The slide whose start edge is nearest the scroll position. Narrow slides near the end can never reach the start
|
|
14
|
+
* edge, so a position at the end of the scroll range (`max`) settles on the last slide.
|
|
15
|
+
*/
|
|
16
|
+
export declare function nearestSlide(offsets: readonly number[], position: number, max?: number): number;
|
|
17
|
+
/** Like nearestSlide, but a current slide that already sits at the position stays current (several narrow cards share the end). */
|
|
18
|
+
export declare function settleSlide(offsets: readonly number[], position: number, max: number, current: number): number;
|
|
19
|
+
/** Numbers the distinct places the slides stop, so slides that share a stop share one dot. */
|
|
20
|
+
export declare function slideStops(offsets: readonly number[]): number[];
|
|
21
|
+
/** One dot per stop: the first slide at that stop is where the dot leads, and the current slide's stop is lit. */
|
|
22
|
+
export declare function stopDots(stops: readonly number[] | undefined, count: number, current: number): {
|
|
23
|
+
target: number;
|
|
24
|
+
current: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
/** Where focus goes after a button moves to an end: the scroller for side buttons, which vanish, or the other header button. */
|
|
27
|
+
export declare function stepFocus(target: number, count: number, header: boolean): "viewport" | "previous" | "next" | undefined;
|
|
28
|
+
/** Slide starts as scroll positions the scroller can actually reach; starts past the end stop at the end. */
|
|
29
|
+
export declare function reachableOffsets(offsets: readonly number[], max: number): number[];
|
|
30
|
+
/** Where a mouse drag lands: wherever the position is nearest, or one slide on once the drag passes a fifth of the view. */
|
|
31
|
+
export declare function dragTarget({ start, nearest, distance, width, count }: {
|
|
32
|
+
start: number;
|
|
33
|
+
nearest: number;
|
|
34
|
+
distance: number;
|
|
35
|
+
width: number;
|
|
36
|
+
count: number;
|
|
37
|
+
}): number;
|
|
38
|
+
export declare function carouselKey(key: string): CarouselMove | undefined;
|
|
39
|
+
export declare function carouselTarget(move: CarouselMove, index: number, count: number): number;
|
|
40
|
+
export declare function warnUnnamedCarousel(named: boolean): void;
|
|
41
|
+
/** Development-only hints for setups that leave some people unable to move or name the carousel. */
|
|
42
|
+
export declare function warnCarouselSetup({ controls, dots, mouseDrag, named }: {
|
|
43
|
+
controls: boolean;
|
|
44
|
+
dots: boolean;
|
|
45
|
+
mouseDrag: boolean;
|
|
46
|
+
named: boolean;
|
|
47
|
+
}): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function centerSelectedOption(list: HTMLElement | null | undefined): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function centerSelectedOption(list: HTMLElement | null | undefined): void;
|