@kjun-ui/react 0.21.0 → 0.22.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/README.md +19 -5
- package/dist/index.cjs +8405 -3740
- package/dist/index.js +8199 -3512
- package/dist/styles.css +2610 -454
- package/dist/types/packages/react/src/actions.d.cts +21 -16
- package/dist/types/packages/react/src/actions.d.ts +21 -16
- package/dist/types/packages/react/src/app-navigation.d.cts +6 -2
- package/dist/types/packages/react/src/app-navigation.d.ts +6 -2
- package/dist/types/packages/react/src/avatar-group.d.cts +36 -0
- package/dist/types/packages/react/src/avatar-group.d.ts +36 -0
- package/dist/types/packages/react/src/button.d.cts +14 -6
- package/dist/types/packages/react/src/button.d.ts +14 -6
- package/dist/types/packages/react/src/calendar.d.cts +6 -2
- package/dist/types/packages/react/src/calendar.d.ts +6 -2
- package/dist/types/packages/react/src/card.d.cts +10 -3
- package/dist/types/packages/react/src/card.d.ts +10 -3
- package/dist/types/packages/react/src/carousel.d.cts +8 -1
- package/dist/types/packages/react/src/carousel.d.ts +8 -1
- package/dist/types/packages/react/src/choice-controls.d.cts +99 -0
- package/dist/types/packages/react/src/choice-controls.d.ts +99 -0
- package/dist/types/packages/react/src/collapse.d.cts +4 -1
- package/dist/types/packages/react/src/collapse.d.ts +4 -1
- package/dist/types/packages/react/src/color-picker.d.cts +8 -1
- package/dist/types/packages/react/src/color-picker.d.ts +8 -1
- package/dist/types/packages/react/src/combobox.d.cts +18 -5
- package/dist/types/packages/react/src/combobox.d.ts +18 -5
- package/dist/types/packages/react/src/controls.d.cts +7 -74
- package/dist/types/packages/react/src/controls.d.ts +7 -74
- package/dist/types/packages/react/src/data-state.d.cts +19 -6
- package/dist/types/packages/react/src/data-state.d.ts +19 -6
- package/dist/types/packages/react/src/date-picker.d.cts +8 -2
- package/dist/types/packages/react/src/date-picker.d.ts +8 -2
- package/dist/types/packages/react/src/display.d.cts +26 -6
- package/dist/types/packages/react/src/display.d.ts +26 -6
- package/dist/types/packages/react/src/drawer.d.cts +11 -2
- package/dist/types/packages/react/src/drawer.d.ts +11 -2
- package/dist/types/packages/react/src/dropdown.d.cts +19 -5
- package/dist/types/packages/react/src/dropdown.d.ts +19 -5
- package/dist/types/packages/react/src/event-calendar.d.cts +47 -0
- package/dist/types/packages/react/src/event-calendar.d.ts +47 -0
- package/dist/types/packages/react/src/fab.d.cts +2 -0
- package/dist/types/packages/react/src/fab.d.ts +2 -0
- package/dist/types/packages/react/src/file-upload-row.d.cts +23 -0
- package/dist/types/packages/react/src/file-upload-row.d.ts +23 -0
- package/dist/types/packages/react/src/file-upload.d.cts +38 -0
- package/dist/types/packages/react/src/file-upload.d.ts +38 -0
- package/dist/types/packages/react/src/financial-display.d.cts +32 -11
- package/dist/types/packages/react/src/financial-display.d.ts +32 -11
- package/dist/types/packages/react/src/floating-panel.d.cts +6 -2
- package/dist/types/packages/react/src/floating-panel.d.ts +6 -2
- package/dist/types/packages/react/src/index.d.cts +12 -1
- package/dist/types/packages/react/src/index.d.ts +12 -1
- package/dist/types/packages/react/src/input.d.cts +14 -1
- package/dist/types/packages/react/src/input.d.ts +14 -1
- package/dist/types/packages/react/src/kpi-hero.d.cts +2 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +2 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +5 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +5 -0
- package/dist/types/packages/react/src/layout-primitives.d.cts +71 -139
- package/dist/types/packages/react/src/layout-primitives.d.ts +71 -139
- package/dist/types/packages/react/src/list-context.d.cts +2 -1
- package/dist/types/packages/react/src/list-context.d.ts +2 -1
- package/dist/types/packages/react/src/list.d.cts +39 -8
- package/dist/types/packages/react/src/list.d.ts +39 -8
- package/dist/types/packages/react/src/market-model.d.cts +13 -1
- package/dist/types/packages/react/src/market-model.d.ts +13 -1
- package/dist/types/packages/react/src/market-parts.d.cts +9 -0
- package/dist/types/packages/react/src/market-parts.d.ts +9 -0
- package/dist/types/packages/react/src/market-skeleton.d.cts +7 -1
- package/dist/types/packages/react/src/market-skeleton.d.ts +7 -1
- package/dist/types/packages/react/src/media.d.cts +6 -2
- package/dist/types/packages/react/src/media.d.ts +6 -2
- package/dist/types/packages/react/src/modal.d.cts +11 -2
- package/dist/types/packages/react/src/modal.d.ts +11 -2
- package/dist/types/packages/react/src/navigation.d.cts +34 -5
- package/dist/types/packages/react/src/navigation.d.ts +34 -5
- package/dist/types/packages/react/src/number-display.d.cts +8 -5
- package/dist/types/packages/react/src/number-display.d.ts +8 -5
- package/dist/types/packages/react/src/number-input.d.cts +28 -0
- package/dist/types/packages/react/src/number-input.d.ts +28 -0
- package/dist/types/packages/react/src/popover.d.cts +5 -2
- package/dist/types/packages/react/src/popover.d.ts +5 -2
- package/dist/types/packages/react/src/pressable.d.cts +17 -0
- package/dist/types/packages/react/src/pressable.d.ts +17 -0
- package/dist/types/packages/react/src/quantity-stepper.d.cts +3 -1
- package/dist/types/packages/react/src/quantity-stepper.d.ts +3 -1
- package/dist/types/packages/react/src/range-input.d.cts +15 -3
- package/dist/types/packages/react/src/range-input.d.ts +15 -3
- package/dist/types/packages/react/src/search-input.d.cts +6 -3
- package/dist/types/packages/react/src/search-input.d.ts +6 -3
- package/dist/types/packages/react/src/select-control.d.cts +7 -2
- package/dist/types/packages/react/src/select-control.d.ts +7 -2
- package/dist/types/packages/react/src/side-navigation-layout.d.cts +47 -0
- package/dist/types/packages/react/src/side-navigation-layout.d.ts +47 -0
- package/dist/types/packages/react/src/side-navigation.d.cts +74 -0
- package/dist/types/packages/react/src/side-navigation.d.ts +74 -0
- package/dist/types/packages/react/src/skeletons.d.cts +18 -3
- package/dist/types/packages/react/src/skeletons.d.ts +18 -3
- package/dist/types/packages/react/src/spinner-glyph.d.cts +8 -0
- package/dist/types/packages/react/src/spinner-glyph.d.ts +8 -0
- package/dist/types/packages/react/src/split-pane.d.cts +18 -5
- package/dist/types/packages/react/src/split-pane.d.ts +18 -5
- package/dist/types/packages/react/src/stacked-bar.d.cts +3 -1
- package/dist/types/packages/react/src/stacked-bar.d.ts +3 -1
- package/dist/types/packages/react/src/steps.d.cts +26 -0
- package/dist/types/packages/react/src/steps.d.ts +26 -0
- package/dist/types/packages/react/src/table-cards.d.cts +4 -12
- package/dist/types/packages/react/src/table-cards.d.ts +4 -12
- package/dist/types/packages/react/src/table-grid.d.cts +3 -7
- package/dist/types/packages/react/src/table-grid.d.ts +3 -7
- package/dist/types/packages/react/src/table-groups.d.cts +5 -0
- package/dist/types/packages/react/src/table-groups.d.ts +5 -0
- package/dist/types/packages/react/src/table-list.d.cts +2 -9
- package/dist/types/packages/react/src/table-list.d.ts +2 -9
- package/dist/types/packages/react/src/table-model.d.cts +6 -2
- package/dist/types/packages/react/src/table-model.d.ts +6 -2
- package/dist/types/packages/react/src/tabs.d.cts +3 -1
- package/dist/types/packages/react/src/tabs.d.ts +3 -1
- package/dist/types/packages/react/src/textarea.d.cts +6 -3
- package/dist/types/packages/react/src/textarea.d.ts +6 -3
- package/dist/types/packages/react/src/tiles.d.cts +18 -0
- package/dist/types/packages/react/src/tiles.d.ts +18 -0
- package/dist/types/packages/react/src/time-picker.d.cts +12 -2
- package/dist/types/packages/react/src/time-picker.d.ts +12 -2
- package/dist/types/packages/react/src/time-wheel.d.cts +18 -0
- package/dist/types/packages/react/src/time-wheel.d.ts +18 -0
- package/dist/types/packages/react/src/use-filter-scroll.d.cts +5 -0
- package/dist/types/packages/react/src/use-filter-scroll.d.ts +5 -0
- package/dist/types/shared/package-runtime/accordion-state.d.cts +2 -0
- package/dist/types/shared/package-runtime/accordion-state.d.ts +2 -0
- package/dist/types/shared/package-runtime/action-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/action-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/alert-actions.d.cts +7 -0
- package/dist/types/shared/package-runtime/alert-actions.d.ts +7 -0
- package/dist/types/shared/package-runtime/alert-exit.d.cts +6 -0
- package/dist/types/shared/package-runtime/alert-exit.d.ts +6 -0
- package/dist/types/shared/package-runtime/alert-live.d.cts +2 -0
- package/dist/types/shared/package-runtime/alert-live.d.ts +2 -0
- package/dist/types/shared/package-runtime/avatar-group.d.cts +18 -0
- package/dist/types/shared/package-runtime/avatar-group.d.ts +18 -0
- package/dist/types/shared/package-runtime/badge-tone.d.cts +8 -2
- package/dist/types/shared/package-runtime/badge-tone.d.ts +8 -2
- package/dist/types/shared/package-runtime/bottom-bar.d.cts +1 -1
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +1 -1
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +5 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +5 -0
- package/dist/types/shared/package-runtime/calendar.d.cts +21 -7
- package/dist/types/shared/package-runtime/calendar.d.ts +21 -7
- package/dist/types/shared/package-runtime/card-layout.d.cts +8 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +8 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.cts +2 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.ts +2 -0
- package/dist/types/shared/package-runtime/carousel.d.cts +12 -2
- package/dist/types/shared/package-runtime/carousel.d.ts +12 -2
- 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/clipboard.d.cts +6 -0
- package/dist/types/shared/package-runtime/clipboard.d.ts +6 -0
- package/dist/types/shared/package-runtime/combobox-options.d.cts +13 -0
- package/dist/types/shared/package-runtime/combobox-options.d.ts +13 -0
- package/dist/types/shared/package-runtime/combobox.d.cts +3 -1
- package/dist/types/shared/package-runtime/combobox.d.ts +3 -1
- package/dist/types/shared/package-runtime/copy-button.d.cts +11 -0
- package/dist/types/shared/package-runtime/copy-button.d.ts +11 -0
- package/dist/types/shared/package-runtime/data-cells.d.cts +36 -0
- package/dist/types/shared/package-runtime/data-cells.d.ts +36 -0
- package/dist/types/shared/package-runtime/development.d.cts +4 -0
- package/dist/types/shared/package-runtime/development.d.ts +4 -0
- package/dist/types/shared/package-runtime/distribution.d.cts +36 -1
- package/dist/types/shared/package-runtime/distribution.d.ts +36 -1
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +7 -0
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +7 -0
- package/dist/types/shared/package-runtime/event-calendar.d.cts +81 -0
- package/dist/types/shared/package-runtime/event-calendar.d.ts +81 -0
- package/dist/types/shared/package-runtime/external-link.d.cts +4 -0
- package/dist/types/shared/package-runtime/external-link.d.ts +4 -0
- package/dist/types/shared/package-runtime/file-upload.d.cts +128 -0
- package/dist/types/shared/package-runtime/file-upload.d.ts +128 -0
- package/dist/types/shared/package-runtime/filter-scroll.d.cts +5 -0
- package/dist/types/shared/package-runtime/filter-scroll.d.ts +5 -0
- package/dist/types/shared/package-runtime/filter-value.d.cts +2 -0
- package/dist/types/shared/package-runtime/filter-value.d.ts +2 -0
- package/dist/types/shared/package-runtime/input-field.d.cts +23 -0
- package/dist/types/shared/package-runtime/input-field.d.ts +23 -0
- package/dist/types/shared/package-runtime/input-variant.d.cts +7 -0
- package/dist/types/shared/package-runtime/input-variant.d.ts +7 -0
- package/dist/types/shared/package-runtime/kpi.d.cts +13 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +13 -0
- package/dist/types/shared/package-runtime/layout-primitives.d.cts +115 -6
- package/dist/types/shared/package-runtime/layout-primitives.d.ts +115 -6
- package/dist/types/shared/package-runtime/list-row.d.cts +43 -6
- package/dist/types/shared/package-runtime/list-row.d.ts +43 -6
- 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 +6 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +6 -0
- package/dist/types/shared/package-runtime/market-table.d.cts +32 -0
- package/dist/types/shared/package-runtime/market-table.d.ts +32 -0
- package/dist/types/shared/package-runtime/menu-button.d.cts +4 -0
- package/dist/types/shared/package-runtime/menu-button.d.ts +4 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +74 -1
- package/dist/types/shared/package-runtime/messages/ko.d.ts +74 -1
- package/dist/types/shared/package-runtime/messages-context.d.cts +66 -1
- package/dist/types/shared/package-runtime/messages-context.d.ts +66 -1
- package/dist/types/shared/package-runtime/minimum-loading.d.cts +3 -0
- package/dist/types/shared/package-runtime/minimum-loading.d.ts +3 -0
- package/dist/types/shared/package-runtime/modal-geometry.d.cts +15 -0
- package/dist/types/shared/package-runtime/modal-geometry.d.ts +15 -0
- package/dist/types/shared/package-runtime/navigation.d.cts +9 -2
- package/dist/types/shared/package-runtime/navigation.d.ts +9 -2
- package/dist/types/shared/package-runtime/nested-controls.d.cts +7 -0
- package/dist/types/shared/package-runtime/nested-controls.d.ts +7 -0
- package/dist/types/shared/package-runtime/number-input.d.cts +63 -0
- package/dist/types/shared/package-runtime/number-input.d.ts +63 -0
- package/dist/types/shared/package-runtime/options.d.cts +25 -5
- package/dist/types/shared/package-runtime/options.d.ts +25 -5
- package/dist/types/shared/package-runtime/pagination.d.cts +12 -0
- package/dist/types/shared/package-runtime/pagination.d.ts +12 -0
- package/dist/types/shared/package-runtime/press-repeat.d.cts +13 -0
- package/dist/types/shared/package-runtime/press-repeat.d.ts +13 -0
- 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/progress-marker.d.cts +7 -0
- package/dist/types/shared/package-runtime/progress-marker.d.ts +7 -0
- package/dist/types/shared/package-runtime/select-trigger.d.cts +23 -0
- package/dist/types/shared/package-runtime/select-trigger.d.ts +23 -0
- package/dist/types/shared/package-runtime/sheet-drag.d.cts +24 -0
- package/dist/types/shared/package-runtime/sheet-drag.d.ts +24 -0
- package/dist/types/shared/package-runtime/side-navigation-keys.d.cts +23 -0
- package/dist/types/shared/package-runtime/side-navigation-keys.d.ts +23 -0
- package/dist/types/shared/package-runtime/side-navigation-scroll.d.cts +7 -0
- package/dist/types/shared/package-runtime/side-navigation-scroll.d.ts +7 -0
- package/dist/types/shared/package-runtime/side-navigation.d.cts +277 -0
- package/dist/types/shared/package-runtime/side-navigation.d.ts +277 -0
- package/dist/types/shared/package-runtime/signed-number.d.cts +33 -0
- package/dist/types/shared/package-runtime/signed-number.d.ts +33 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +4 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +4 -0
- package/dist/types/shared/package-runtime/slider-view.d.cts +17 -2
- package/dist/types/shared/package-runtime/slider-view.d.ts +17 -2
- package/dist/types/shared/package-runtime/sparkline.d.cts +8 -4
- package/dist/types/shared/package-runtime/sparkline.d.ts +8 -4
- package/dist/types/shared/package-runtime/spinner-geometry.d.cts +14 -0
- package/dist/types/shared/package-runtime/spinner-geometry.d.ts +14 -0
- package/dist/types/shared/package-runtime/split-pane.d.cts +40 -1
- package/dist/types/shared/package-runtime/split-pane.d.ts +40 -1
- package/dist/types/shared/package-runtime/steps.d.cts +37 -0
- package/dist/types/shared/package-runtime/steps.d.ts +37 -0
- package/dist/types/shared/package-runtime/tab-keyboard.d.cts +6 -0
- package/dist/types/shared/package-runtime/tab-keyboard.d.ts +6 -0
- package/dist/types/shared/package-runtime/table-columns.d.cts +8 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +8 -0
- package/dist/types/shared/package-runtime/table-model.d.cts +23 -3
- package/dist/types/shared/package-runtime/table-model.d.ts +23 -3
- package/dist/types/shared/package-runtime/table-presentation.d.cts +11 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +11 -2
- package/dist/types/shared/package-runtime/table.d.cts +15 -2
- package/dist/types/shared/package-runtime/table.d.ts +15 -2
- package/dist/types/shared/package-runtime/textarea.d.cts +6 -4
- package/dist/types/shared/package-runtime/textarea.d.ts +6 -4
- package/dist/types/shared/package-runtime/tiles-children.d.cts +7 -0
- package/dist/types/shared/package-runtime/tiles-children.d.ts +7 -0
- package/dist/types/shared/package-runtime/tiles.d.cts +18 -0
- package/dist/types/shared/package-runtime/tiles.d.ts +18 -0
- package/dist/types/shared/package-runtime/time-segments.d.cts +24 -0
- package/dist/types/shared/package-runtime/time-segments.d.ts +24 -0
- package/dist/types/shared/package-runtime/time-wheel.d.cts +54 -0
- package/dist/types/shared/package-runtime/time-wheel.d.ts +54 -0
- package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
- package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.cts +3 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +3 -0
- package/dist/types/shared/package-runtime/use-copy-feedback.d.cts +10 -0
- package/dist/types/shared/package-runtime/use-copy-feedback.d.ts +10 -0
- package/dist/types/shared/package-runtime/use-open-state.d.cts +5 -0
- package/dist/types/shared/package-runtime/use-open-state.d.ts +5 -0
- package/dist/types/shared/package-runtime/use-pending-action.d.cts +6 -0
- package/dist/types/shared/package-runtime/use-pending-action.d.ts +6 -0
- package/dist/types/shared/package-runtime/use-side-navigation-state.d.cts +25 -0
- package/dist/types/shared/package-runtime/use-side-navigation-state.d.ts +25 -0
- package/dist/types/shared/package-runtime/use-slide.d.cts +3 -0
- package/dist/types/shared/package-runtime/use-slide.d.ts +3 -0
- package/package.json +3 -3
- package/dist/types/packages/react/src/compound-control.d.cts +0 -1
- package/dist/types/packages/react/src/compound-control.d.ts +0 -1
- package/dist/types/shared/package-runtime/center-option.d.cts +0 -1
- package/dist/types/shared/package-runtime/center-option.d.ts +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type SideNavigationCollapsedParent, type SideNavigationEntry, type SideNavigationHeadingLevel, type SideNavigationRail } from "../../../shared/package-runtime/side-navigation.js";
|
|
2
|
+
import { type ElementType, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
export type { SideNavigationAction, SideNavigationBadgeTone, SideNavigationCollapsedParent, SideNavigationDestination, SideNavigationHeadingLevel, SideNavigationParent, SideNavigationSubParent, SideNavigationItem, SideNavigationGroup, SideNavigationEntry, SideNavigationRail } from "../../../shared/package-runtime/side-navigation.js";
|
|
4
|
+
type Navigate = (key: string, event: MouseEvent<HTMLAnchorElement>) => void;
|
|
5
|
+
/** A header or footer: content, or a function of collapsed so it can swap to an icon-only form. */
|
|
6
|
+
export type SideNavigationSlot = ReactNode | ((collapsed: boolean) => ReactNode);
|
|
7
|
+
export interface KjunSideNavigationProps {
|
|
8
|
+
/** Destinations, parents with up to two levels under them, and titled groups of either. A destination has the bottom
|
|
9
|
+
* navigation's shape. */
|
|
10
|
+
items: SideNavigationEntry[];
|
|
11
|
+
/** The current destination's key (a child's key when the page is under a parent); null for a page outside the menu. */
|
|
12
|
+
value: string | null;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** A plain click on a destination of this tab. Modified clicks (new tab) and target links are left to the browser.
|
|
15
|
+
* With linkAs the router link already navigates: use this only for side effects such as closing a drawer. */
|
|
16
|
+
onNavigate?: Navigate;
|
|
17
|
+
/** The current destination was pressed again, e.g. to scroll its page back to the top. */
|
|
18
|
+
onReselect?: Navigate;
|
|
19
|
+
/** The open parents, at both levels. Without it the navigation keeps the list itself, starting with the parents of the
|
|
20
|
+
* current destination open. */
|
|
21
|
+
expanded?: string[];
|
|
22
|
+
/** Also called when moving to a page under a closed parent opens it. */
|
|
23
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
24
|
+
/** Icons only, for a narrowed column. Names show as tooltips, and children stay hidden behind their parent. */
|
|
25
|
+
collapsed?: boolean;
|
|
26
|
+
/** A parent or group was pressed while collapsed (collapsedParent="widen"), or the collapse toggle was pressed. */
|
|
27
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
28
|
+
/** Group titles become toggles that show or hide their group. A group's own collapsible overrides this. The group of
|
|
29
|
+
* the current destination starts open, and so do groups marked defaultOpen. */
|
|
30
|
+
collapsibleGroups?: boolean;
|
|
31
|
+
/** The open groups by key (a group's key, else its title). Without it the navigation keeps the list itself. */
|
|
32
|
+
expandedGroups?: string[];
|
|
33
|
+
/** Also called when moving to a page in a closed group opens it. */
|
|
34
|
+
onExpandedGroupsChange?: (expandedGroups: string[]) => void;
|
|
35
|
+
/** A group title that opens and closes ends with how many rows its group holds (a dot instead while a closed group has
|
|
36
|
+
* a badge inside). */
|
|
37
|
+
groupCounts?: boolean;
|
|
38
|
+
/** The groups (by key) showing every row past their limit. Without it the navigation keeps the list itself. */
|
|
39
|
+
showAll?: string[];
|
|
40
|
+
onShowAllChange?: (showAll: string[]) => void;
|
|
41
|
+
/** While collapsed: one icon per top-level item ("items"), or one per group ("groups", from the group's icon).
|
|
42
|
+
* Loose items between groups keep their own row. */
|
|
43
|
+
rail?: SideNavigationRail;
|
|
44
|
+
/** While collapsed: a short name (shortLabel, else the label) under each icon, in a 72 wide column. The current page,
|
|
45
|
+
* hover and press fill a 56 by 32 indicator around the icon, a count stays a number, and a tooltip shows only a name
|
|
46
|
+
* that was shortened. */
|
|
47
|
+
railLabels?: boolean;
|
|
48
|
+
/** While collapsed, pressing a parent or a rail group: "widen" asks for the full width with it open (onCollapsedChange);
|
|
49
|
+
* "flyout" shows its rows in a panel beside the icon and keeps the column narrow. */
|
|
50
|
+
collapsedParent?: SideNavigationCollapsedParent;
|
|
51
|
+
/** While collapsed, a hairline the icon's width between groups, on top of the gap that separates them. Off: the gap alone. */
|
|
52
|
+
railDividers?: boolean;
|
|
53
|
+
/** "compact": 32 tall rows and 30 tall children under a mouse, and counts as quiet numbers, for long lists (documentation,
|
|
54
|
+
* settings). A touch pointer keeps the touch heights. */
|
|
55
|
+
density?: "default" | "compact";
|
|
56
|
+
/** The level of the group titles' headings (default 2), to fit the page's outline. */
|
|
57
|
+
headingLevel?: SideNavigationHeadingLevel;
|
|
58
|
+
/** Above the list, such as a logo, a workspace switcher or search. With a header or footer only the list scrolls. */
|
|
59
|
+
header?: SideNavigationSlot;
|
|
60
|
+
/** Below the list, such as the account. */
|
|
61
|
+
footer?: SideNavigationSlot;
|
|
62
|
+
/** A button at the end of the footer that asks to collapse or widen the column (onCollapsedChange). */
|
|
63
|
+
collapseToggle?: boolean;
|
|
64
|
+
/** An action button of a row (the row's key) or a group title (the group's key) was pressed. */
|
|
65
|
+
onAction?: (key: string, action: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
66
|
+
/** Renders enabled links with the app's router link (Next.js Link, React Router Link) instead of <a>. It receives href,
|
|
67
|
+
* className, the aria-* and data-* attributes, onClick and children, and must render an <a> with them. */
|
|
68
|
+
linkAs?: ElementType;
|
|
69
|
+
/** Brings the current row into the menu's own scrolling column when the menu mounts, when the page changes and when
|
|
70
|
+
* items that hold it arrive. */
|
|
71
|
+
scrollToCurrent?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** A vertical menu for the side of a wide screen: links aligned to the start, the current one filled, groups with titles and up to two levels of children. */
|
|
74
|
+
export declare function KjunSideNavigation({ items, value, ariaLabel, onNavigate, onReselect, expanded, onExpandedChange, collapsed, onCollapsedChange, collapsibleGroups, expandedGroups, onExpandedGroupsChange, groupCounts, showAll, onShowAllChange, rail, railLabels, collapsedParent, railDividers, density, headingLevel, header, footer, collapseToggle, onAction, linkAs, scrollToCurrent }: KjunSideNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,8 +15,11 @@ export interface KjunListSkeletonProps {
|
|
|
15
15
|
trailing?: "value" | "switch" | "chevron";
|
|
16
16
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
17
17
|
loadingText?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
id?: string;
|
|
18
21
|
}
|
|
19
|
-
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, className, style, id, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
export interface KjunFormSkeletonProps {
|
|
21
24
|
fields?: (string | {
|
|
22
25
|
label?: string;
|
|
@@ -25,10 +28,18 @@ export interface KjunFormSkeletonProps {
|
|
|
25
28
|
columns?: number;
|
|
26
29
|
multiline?: boolean;
|
|
27
30
|
size?: InputSize;
|
|
31
|
+
/**
|
|
32
|
+
* Bars for a FormActions row under the fields, end-aligned at the size's button height; the last is the primary
|
|
33
|
+
* button. Give the real FormActions the same size so nothing moves when the form arrives. Default 0.
|
|
34
|
+
*/
|
|
35
|
+
actions?: number;
|
|
28
36
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
29
37
|
loadingText?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
id?: string;
|
|
30
41
|
}
|
|
31
|
-
export declare function KjunFormSkeleton({ fields, columns, multiline, size, loadingText, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunFormSkeleton({ fields, columns, multiline, size, actions, loadingText, className, style, id, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
32
43
|
export interface KjunChartSkeletonProps {
|
|
33
44
|
kind?: KjunChartSkeletonKind;
|
|
34
45
|
height?: CSSProperties["height"];
|
|
@@ -43,7 +54,11 @@ export interface KjunChartSkeletonProps {
|
|
|
43
54
|
xTicks?: number;
|
|
44
55
|
/** Frame: y-axis label width in px (default 40); label bars fill it, less the label gap. */
|
|
45
56
|
axisWidth?: number;
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Merged over the root's height and reveal styles. */
|
|
59
|
+
style?: CSSProperties;
|
|
60
|
+
id?: string;
|
|
46
61
|
}
|
|
47
|
-
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, className, style, id, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
48
63
|
export { KjunMarketTableSkeleton } from "./market-skeleton.cjs";
|
|
49
64
|
export type { KjunMarketTableSkeletonProps } from "./market-skeleton.cjs";
|
|
@@ -15,8 +15,11 @@ export interface KjunListSkeletonProps {
|
|
|
15
15
|
trailing?: "value" | "switch" | "chevron";
|
|
16
16
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
17
17
|
loadingText?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
id?: string;
|
|
18
21
|
}
|
|
19
|
-
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, className, style, id, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
export interface KjunFormSkeletonProps {
|
|
21
24
|
fields?: (string | {
|
|
22
25
|
label?: string;
|
|
@@ -25,10 +28,18 @@ export interface KjunFormSkeletonProps {
|
|
|
25
28
|
columns?: number;
|
|
26
29
|
multiline?: boolean;
|
|
27
30
|
size?: InputSize;
|
|
31
|
+
/**
|
|
32
|
+
* Bars for a FormActions row under the fields, end-aligned at the size's button height; the last is the primary
|
|
33
|
+
* button. Give the real FormActions the same size so nothing moves when the form arrives. Default 0.
|
|
34
|
+
*/
|
|
35
|
+
actions?: number;
|
|
28
36
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
29
37
|
loadingText?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
id?: string;
|
|
30
41
|
}
|
|
31
|
-
export declare function KjunFormSkeleton({ fields, columns, multiline, size, loadingText, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunFormSkeleton({ fields, columns, multiline, size, actions, loadingText, className, style, id, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
32
43
|
export interface KjunChartSkeletonProps {
|
|
33
44
|
kind?: KjunChartSkeletonKind;
|
|
34
45
|
height?: CSSProperties["height"];
|
|
@@ -43,7 +54,11 @@ export interface KjunChartSkeletonProps {
|
|
|
43
54
|
xTicks?: number;
|
|
44
55
|
/** Frame: y-axis label width in px (default 40); label bars fill it, less the label gap. */
|
|
45
56
|
axisWidth?: number;
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Merged over the root's height and reveal styles. */
|
|
59
|
+
style?: CSSProperties;
|
|
60
|
+
id?: string;
|
|
46
61
|
}
|
|
47
|
-
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, className, style, id, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
48
63
|
export { KjunMarketTableSkeleton } from "./market-skeleton.js";
|
|
49
64
|
export type { KjunMarketTableSkeletonProps } from "./market-skeleton.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/** Internal loading ring shared by Spinner, Button, Fab, List, Switch and Toast. Decorative: the owner announces the state. */
|
|
3
|
+
export declare function KjunSpinnerGlyph({ size, stroke, className, style }: {
|
|
4
|
+
size: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/** Internal loading ring shared by Spinner, Button, Fab, List, Switch and Toast. Decorative: the owner announces the state. */
|
|
3
|
+
export declare function KjunSpinnerGlyph({ size, stroke, className, style }: {
|
|
4
|
+
size: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { type SplitDirection, type SplitMax, type SplitMin } from "../../../shared/package-runtime/split-pane.cjs";
|
|
1
|
+
import { type SplitDirection, type SplitMax, type SplitMin, type SplitUnit } from "../../../shared/package-runtime/split-pane.cjs";
|
|
2
2
|
import { type CSSProperties, type ReactNode } from "react";
|
|
3
3
|
export interface KjunSplitPaneProps {
|
|
4
4
|
/** horizontal puts the panes side by side; vertical stacks them and needs a height from its parent. */
|
|
5
5
|
direction?: SplitDirection;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* "ratio": sizes are the first pane's share (0–1) of the room beside the handle, so the split keeps its proportion as
|
|
8
|
+
* the container resizes. "px": sizes are the first pane's pixels, so a side list keeps its width.
|
|
9
|
+
*/
|
|
10
|
+
sizeUnit?: SplitUnit;
|
|
11
|
+
/** Controlled size of the first pane in sizeUnit; pair with onSizeChange. */
|
|
7
12
|
size?: number;
|
|
8
|
-
/** The starting
|
|
13
|
+
/** The starting size without size, and the size a double press (or Enter, when the pane does not collapse) restores. Half the room without it. */
|
|
9
14
|
defaultSize?: number;
|
|
10
|
-
/** Smallest pixels of the first and second pane. A minimum beats the
|
|
15
|
+
/** Smallest pixels of the first and second pane. A minimum beats the size and the maximums. */
|
|
11
16
|
minSize?: SplitMin;
|
|
12
17
|
/** Largest pixels of the first and second pane; null leaves a pane unlimited. */
|
|
13
18
|
maxSize?: SplitMax;
|
|
@@ -15,6 +20,14 @@ export interface KjunSplitPaneProps {
|
|
|
15
20
|
ariaLabel: string;
|
|
16
21
|
/** Keeps the split where it is: the handle takes no pointer, key or focus. */
|
|
17
22
|
disabled?: boolean;
|
|
23
|
+
/** The first pane collapses to collapsedSize when dragged past half its minimum, or with Enter or Home. */
|
|
24
|
+
collapsible?: boolean;
|
|
25
|
+
/** Pixels a collapsed first pane keeps, e.g. 48 for an icon rail the app draws in first. 0 hides the pane. */
|
|
26
|
+
collapsedSize?: number;
|
|
27
|
+
/** Controlled collapsed state; pair with onCollapsedChange. */
|
|
28
|
+
collapsed?: boolean;
|
|
29
|
+
defaultCollapsed?: boolean;
|
|
30
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
18
31
|
/** Every step of a drag or key press. */
|
|
19
32
|
onSizeChange?: (size: number) => void;
|
|
20
33
|
/** Once when a drag ends or a key moves the handle; the place to save the size. */
|
|
@@ -27,4 +40,4 @@ export interface KjunSplitPaneProps {
|
|
|
27
40
|
id?: string;
|
|
28
41
|
}
|
|
29
42
|
/** Two panes with a handle between them; dragging it or pressing arrow keys, Home, End or Enter resizes the first pane. */
|
|
30
|
-
export declare function KjunSplitPane({ direction, size, defaultSize, minSize, maxSize, ariaLabel, disabled, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare function KjunSplitPane({ direction, sizeUnit, size, defaultSize, minSize, maxSize, ariaLabel, disabled, collapsible, collapsedSize, collapsed, defaultCollapsed, onCollapsedChange, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { type SplitDirection, type SplitMax, type SplitMin } from "../../../shared/package-runtime/split-pane.js";
|
|
1
|
+
import { type SplitDirection, type SplitMax, type SplitMin, type SplitUnit } from "../../../shared/package-runtime/split-pane.js";
|
|
2
2
|
import { type CSSProperties, type ReactNode } from "react";
|
|
3
3
|
export interface KjunSplitPaneProps {
|
|
4
4
|
/** horizontal puts the panes side by side; vertical stacks them and needs a height from its parent. */
|
|
5
5
|
direction?: SplitDirection;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* "ratio": sizes are the first pane's share (0–1) of the room beside the handle, so the split keeps its proportion as
|
|
8
|
+
* the container resizes. "px": sizes are the first pane's pixels, so a side list keeps its width.
|
|
9
|
+
*/
|
|
10
|
+
sizeUnit?: SplitUnit;
|
|
11
|
+
/** Controlled size of the first pane in sizeUnit; pair with onSizeChange. */
|
|
7
12
|
size?: number;
|
|
8
|
-
/** The starting
|
|
13
|
+
/** The starting size without size, and the size a double press (or Enter, when the pane does not collapse) restores. Half the room without it. */
|
|
9
14
|
defaultSize?: number;
|
|
10
|
-
/** Smallest pixels of the first and second pane. A minimum beats the
|
|
15
|
+
/** Smallest pixels of the first and second pane. A minimum beats the size and the maximums. */
|
|
11
16
|
minSize?: SplitMin;
|
|
12
17
|
/** Largest pixels of the first and second pane; null leaves a pane unlimited. */
|
|
13
18
|
maxSize?: SplitMax;
|
|
@@ -15,6 +20,14 @@ export interface KjunSplitPaneProps {
|
|
|
15
20
|
ariaLabel: string;
|
|
16
21
|
/** Keeps the split where it is: the handle takes no pointer, key or focus. */
|
|
17
22
|
disabled?: boolean;
|
|
23
|
+
/** The first pane collapses to collapsedSize when dragged past half its minimum, or with Enter or Home. */
|
|
24
|
+
collapsible?: boolean;
|
|
25
|
+
/** Pixels a collapsed first pane keeps, e.g. 48 for an icon rail the app draws in first. 0 hides the pane. */
|
|
26
|
+
collapsedSize?: number;
|
|
27
|
+
/** Controlled collapsed state; pair with onCollapsedChange. */
|
|
28
|
+
collapsed?: boolean;
|
|
29
|
+
defaultCollapsed?: boolean;
|
|
30
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
18
31
|
/** Every step of a drag or key press. */
|
|
19
32
|
onSizeChange?: (size: number) => void;
|
|
20
33
|
/** Once when a drag ends or a key moves the handle; the place to save the size. */
|
|
@@ -27,4 +40,4 @@ export interface KjunSplitPaneProps {
|
|
|
27
40
|
id?: string;
|
|
28
41
|
}
|
|
29
42
|
/** Two panes with a handle between them; dragging it or pressing arrow keys, Home, End or Enter resizes the first pane. */
|
|
30
|
-
export declare function KjunSplitPane({ direction, size, defaultSize, minSize, maxSize, ariaLabel, disabled, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare function KjunSplitPane({ direction, sizeUnit, size, defaultSize, minSize, maxSize, ariaLabel, disabled, collapsible, collapsedSize, collapsed, defaultCollapsed, onCollapsedChange, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,8 @@ export interface KjunStackedBarProps {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
/** The accessible name when there is no visible label, or a fuller one than it. */
|
|
10
10
|
ariaLabel?: string;
|
|
11
|
+
/** The app's summary at the end of the caption line, such as a total or a verdict; read after the name. Data that is missing shows missingText there instead. */
|
|
12
|
+
valueText?: string;
|
|
11
13
|
size?: "sm" | "md";
|
|
12
14
|
/** Each part's colour, name, value and share under the bar, so parts are not told apart by colour alone. */
|
|
13
15
|
legend?: boolean;
|
|
@@ -19,4 +21,4 @@ export interface KjunStackedBarProps {
|
|
|
19
21
|
id?: string;
|
|
20
22
|
}
|
|
21
23
|
/** The parts of a whole: each segment is as long as its share. It shows a breakdown; it is not a control. */
|
|
22
|
-
export declare function KjunStackedBar({ items, label, ariaLabel, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunStackedBar({ items, label, ariaLabel, valueText, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,8 @@ export interface KjunStackedBarProps {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
/** The accessible name when there is no visible label, or a fuller one than it. */
|
|
10
10
|
ariaLabel?: string;
|
|
11
|
+
/** The app's summary at the end of the caption line, such as a total or a verdict; read after the name. Data that is missing shows missingText there instead. */
|
|
12
|
+
valueText?: string;
|
|
11
13
|
size?: "sm" | "md";
|
|
12
14
|
/** Each part's colour, name, value and share under the bar, so parts are not told apart by colour alone. */
|
|
13
15
|
legend?: boolean;
|
|
@@ -19,4 +21,4 @@ export interface KjunStackedBarProps {
|
|
|
19
21
|
id?: string;
|
|
20
22
|
}
|
|
21
23
|
/** The parts of a whole: each segment is as long as its share. It shows a breakdown; it is not a control. */
|
|
22
|
-
export declare function KjunStackedBar({ items, label, ariaLabel, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunStackedBar({ items, label, ariaLabel, valueText, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "../../../shared/package-runtime/steps.cjs";
|
|
2
|
+
import { type CSSProperties } from "react";
|
|
3
|
+
export type { KjunStepItem, KjunStepStatus, KjunStepsCurrentStatus, KjunStepsLayout, KjunStepsSelectable };
|
|
4
|
+
export interface KjunStepsProps {
|
|
5
|
+
/** The steps in order. Two or more. */
|
|
6
|
+
items: KjunStepItem[];
|
|
7
|
+
/** Index of the current step, counted from 0. items.length means every step is complete. */
|
|
8
|
+
current: number;
|
|
9
|
+
/** error marks the current step as failed (a failed payment, a failed delivery). */
|
|
10
|
+
currentStatus?: KjunStepsCurrentStatus;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
/** Horizontal only. auto folds to a compact header and bare markers when the container is narrower than 80px per step. */
|
|
13
|
+
layout?: KjunStepsLayout;
|
|
14
|
+
/** Names the list; defaults to the "진행 단계" message. */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** Makes steps buttons in the wide horizontal layout and in the vertical one: completed ones, or with selectable="all" every step but the current one. */
|
|
17
|
+
onStepSelect?: (index: number) => void;
|
|
18
|
+
/** "complete" (default) lets onStepSelect go back only; "all" also lets it skip ahead to a later step. */
|
|
19
|
+
selectable?: KjunStepsSelectable;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
id?: string;
|
|
23
|
+
[data: `data-${string}`]: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Progress through an ordered flow: a wizard, a checkout, a delivery trail. */
|
|
26
|
+
export declare function KjunSteps({ items, current, currentStatus, orientation, layout, ariaLabel, onStepSelect, selectable, className, style, id, ...rest }: KjunStepsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "../../../shared/package-runtime/steps.js";
|
|
2
|
+
import { type CSSProperties } from "react";
|
|
3
|
+
export type { KjunStepItem, KjunStepStatus, KjunStepsCurrentStatus, KjunStepsLayout, KjunStepsSelectable };
|
|
4
|
+
export interface KjunStepsProps {
|
|
5
|
+
/** The steps in order. Two or more. */
|
|
6
|
+
items: KjunStepItem[];
|
|
7
|
+
/** Index of the current step, counted from 0. items.length means every step is complete. */
|
|
8
|
+
current: number;
|
|
9
|
+
/** error marks the current step as failed (a failed payment, a failed delivery). */
|
|
10
|
+
currentStatus?: KjunStepsCurrentStatus;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
/** Horizontal only. auto folds to a compact header and bare markers when the container is narrower than 80px per step. */
|
|
13
|
+
layout?: KjunStepsLayout;
|
|
14
|
+
/** Names the list; defaults to the "진행 단계" message. */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** Makes steps buttons in the wide horizontal layout and in the vertical one: completed ones, or with selectable="all" every step but the current one. */
|
|
17
|
+
onStepSelect?: (index: number) => void;
|
|
18
|
+
/** "complete" (default) lets onStepSelect go back only; "all" also lets it skip ahead to a later step. */
|
|
19
|
+
selectable?: KjunStepsSelectable;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
id?: string;
|
|
23
|
+
[data: `data-${string}`]: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Progress through an ordered flow: a wizard, a checkout, a delivery trail. */
|
|
26
|
+
export declare function KjunSteps({ items, current, currentStatus, orientation, layout, ariaLabel, onStepSelect, selectable, className, style, id, ...rest }: KjunStepsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import type { KeyboardEvent
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ariaLabel: string;
|
|
6
|
-
customClass: (row: Row, index: number) => string;
|
|
7
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
8
|
-
}
|
|
9
|
-
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
10
|
-
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
11
|
-
export declare function TableCards<Row extends object>(props: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import type { KeyboardEvent } from "react";
|
|
2
|
+
import type { TableCardsProps, TableViewParts } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
+
export type TableNarrowProps<Row extends object> = TableCardsProps<Row> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableCards<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import type { KeyboardEvent
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ariaLabel: string;
|
|
6
|
-
customClass: (row: Row, index: number) => string;
|
|
7
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
8
|
-
}
|
|
9
|
-
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
10
|
-
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
11
|
-
export declare function TableCards<Row extends object>(props: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import type { KeyboardEvent } from "react";
|
|
2
|
+
import type { TableCardsProps, TableViewParts } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
+
export type TableNarrowProps<Row extends object> = TableCardsProps<Row> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableCards<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type KeyboardEvent } from "react";
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function TableGrid<Row extends object>({ columnGroups, cellSpan, mover, initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { type TableGridProps, type TableViewParts } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
+
type Props<Row extends object> = TableGridProps<Row, CSSProperties["maxHeight"]> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableGrid<Row extends object>({ columnGroups, cellSpan, mover, initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, edgeInset, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
9
5
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type KeyboardEvent } from "react";
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function TableGrid<Row extends object>({ columnGroups, cellSpan, mover, initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { type TableGridProps, type TableViewParts } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
+
type Props<Row extends object> = TableGridProps<Row, CSSProperties["maxHeight"]> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableGrid<Row extends object>({ columnGroups, cellSpan, mover, initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, edgeInset, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
9
5
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TableCardsProps } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
+
import type { TableRowGroup } from "../../../shared/package-runtime/table-groups.cjs";
|
|
4
|
+
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
5
|
+
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TableCardsProps } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
+
import type { TableRowGroup } from "../../../shared/package-runtime/table-groups.js";
|
|
4
|
+
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
5
|
+
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TableCardsProps } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
-
interface Props<Row extends object> extends TableCardsProps<Row> {
|
|
4
|
-
ariaLabel: string;
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
1
|
+
import type { TableNarrowProps } from "./table-cards.cjs";
|
|
8
2
|
/** responsive="list": no header row; each row is a title over one meta line with its value and badges at the end. */
|
|
9
|
-
export declare function TableList<Row extends object>(props:
|
|
10
|
-
export {};
|
|
3
|
+
export declare function TableList<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TableCardsProps } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
-
interface Props<Row extends object> extends TableCardsProps<Row> {
|
|
4
|
-
ariaLabel: string;
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
1
|
+
import type { TableNarrowProps } from "./table-cards.js";
|
|
8
2
|
/** responsive="list": no header row; each row is a title over one meta line with its value and badges at the end. */
|
|
9
|
-
export declare function TableList<Row extends object>(props:
|
|
10
|
-
export {};
|
|
3
|
+
export declare function TableList<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,14 +10,18 @@ export declare function useTableModel<Row extends object>(props: KjunTableProps<
|
|
|
10
10
|
key: (row: Row, index?: number) => string | number;
|
|
11
11
|
sort: import("@kjun-ui/tokens").TableSort;
|
|
12
12
|
search: string;
|
|
13
|
+
selected: Row[];
|
|
13
14
|
all: boolean;
|
|
14
15
|
some: boolean;
|
|
16
|
+
selectableCount: number;
|
|
15
17
|
selectedRow: (row: Row) => boolean;
|
|
18
|
+
selectableRow: (row: Row) => boolean;
|
|
16
19
|
expanded: (string | number)[];
|
|
17
20
|
searchChange: (q: string) => void;
|
|
18
21
|
sortColumn: (col: import("./table-model.cjs").TableColumn<Row>) => void;
|
|
19
22
|
sortTo: (next: import("@kjun-ui/tokens").TableSort) => void;
|
|
20
|
-
toggleRow: (row: Row) => void
|
|
21
|
-
toggleAll: () => void
|
|
23
|
+
toggleRow: (row: Row) => void;
|
|
24
|
+
toggleAll: () => void;
|
|
25
|
+
clearSelection: () => void;
|
|
22
26
|
toggleExpand: (row: Row, index: number) => void;
|
|
23
27
|
};
|
|
@@ -10,14 +10,18 @@ export declare function useTableModel<Row extends object>(props: KjunTableProps<
|
|
|
10
10
|
key: (row: Row, index?: number) => string | number;
|
|
11
11
|
sort: import("@kjun-ui/tokens").TableSort;
|
|
12
12
|
search: string;
|
|
13
|
+
selected: Row[];
|
|
13
14
|
all: boolean;
|
|
14
15
|
some: boolean;
|
|
16
|
+
selectableCount: number;
|
|
15
17
|
selectedRow: (row: Row) => boolean;
|
|
18
|
+
selectableRow: (row: Row) => boolean;
|
|
16
19
|
expanded: (string | number)[];
|
|
17
20
|
searchChange: (q: string) => void;
|
|
18
21
|
sortColumn: (col: import("./table-model.js").TableColumn<Row>) => void;
|
|
19
22
|
sortTo: (next: import("@kjun-ui/tokens").TableSort) => void;
|
|
20
|
-
toggleRow: (row: Row) => void
|
|
21
|
-
toggleAll: () => void
|
|
23
|
+
toggleRow: (row: Row) => void;
|
|
24
|
+
toggleAll: () => void;
|
|
25
|
+
clearSelection: () => void;
|
|
22
26
|
toggleExpand: (row: Row, index: number) => void;
|
|
23
27
|
};
|
|
@@ -21,6 +21,8 @@ export interface KjunTabsProps {
|
|
|
21
21
|
stickyHeader?: boolean;
|
|
22
22
|
/** Top gap of the sticky header: a number in px or a CSS length. */
|
|
23
23
|
stickyOffset?: number | string;
|
|
24
|
+
/** Each TabPane draws its content the first time its tab is selected, then keeps it (hidden) like the others. */
|
|
25
|
+
lazy?: boolean;
|
|
24
26
|
ariaLabel?: string;
|
|
25
27
|
onValueChange?: (value: string) => void;
|
|
26
28
|
onChange?: (value: string) => void;
|
|
@@ -31,7 +33,7 @@ export interface KjunTabsProps {
|
|
|
31
33
|
pointer: "mouse" | "touch";
|
|
32
34
|
}) => void;
|
|
33
35
|
}
|
|
34
|
-
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, lazy, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
35
37
|
export interface KjunTabPaneProps extends TabItem {
|
|
36
38
|
children?: ReactNode;
|
|
37
39
|
}
|
|
@@ -21,6 +21,8 @@ export interface KjunTabsProps {
|
|
|
21
21
|
stickyHeader?: boolean;
|
|
22
22
|
/** Top gap of the sticky header: a number in px or a CSS length. */
|
|
23
23
|
stickyOffset?: number | string;
|
|
24
|
+
/** Each TabPane draws its content the first time its tab is selected, then keeps it (hidden) like the others. */
|
|
25
|
+
lazy?: boolean;
|
|
24
26
|
ariaLabel?: string;
|
|
25
27
|
onValueChange?: (value: string) => void;
|
|
26
28
|
onChange?: (value: string) => void;
|
|
@@ -31,7 +33,7 @@ export interface KjunTabsProps {
|
|
|
31
33
|
pointer: "mouse" | "touch";
|
|
32
34
|
}) => void;
|
|
33
35
|
}
|
|
34
|
-
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, lazy, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
35
37
|
export interface KjunTabPaneProps extends TabItem {
|
|
36
38
|
children?: ReactNode;
|
|
37
39
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { type TextareaSubmitKey } from "../../../shared/package-runtime/textarea.cjs";
|
|
1
|
+
import { type TextareaSubmitKey, type TextareaMaxRows } from "../../../shared/package-runtime/textarea.cjs";
|
|
2
|
+
import type { InputVariant } from "../../../shared/package-runtime/input-variant.cjs";
|
|
2
3
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
3
4
|
import { type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
4
5
|
export interface KjunTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "value" | "onSubmit"> {
|
|
5
6
|
value: string;
|
|
6
7
|
size?: InputSize;
|
|
8
|
+
/** "plain" drops the surface, side border and side inset for text edited in place, such as a note body. */
|
|
9
|
+
variant?: InputVariant;
|
|
7
10
|
error?: boolean;
|
|
8
11
|
/** Manual resizing (default "none"). A field the user can drag taller keeps that height instead of growing with its text. */
|
|
9
12
|
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
10
13
|
ariaLabel?: string;
|
|
11
|
-
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). */
|
|
12
|
-
maxRows?:
|
|
14
|
+
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). "none" grows without a limit. */
|
|
15
|
+
maxRows?: TextareaMaxRows;
|
|
13
16
|
/** Character limit (UTF-16 units, like the attribute); the count shows "length/maxLength" and a longer value reads as an error. */
|
|
14
17
|
maxLength?: number;
|
|
15
18
|
/** Shows the character count inside the field, as "length/maxLength" when maxLength is set. */
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { type TextareaSubmitKey } from "../../../shared/package-runtime/textarea.js";
|
|
1
|
+
import { type TextareaSubmitKey, type TextareaMaxRows } from "../../../shared/package-runtime/textarea.js";
|
|
2
|
+
import type { InputVariant } from "../../../shared/package-runtime/input-variant.js";
|
|
2
3
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
3
4
|
import { type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
4
5
|
export interface KjunTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "value" | "onSubmit"> {
|
|
5
6
|
value: string;
|
|
6
7
|
size?: InputSize;
|
|
8
|
+
/** "plain" drops the surface, side border and side inset for text edited in place, such as a note body. */
|
|
9
|
+
variant?: InputVariant;
|
|
7
10
|
error?: boolean;
|
|
8
11
|
/** Manual resizing (default "none"). A field the user can drag taller keeps that height instead of growing with its text. */
|
|
9
12
|
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
10
13
|
ariaLabel?: string;
|
|
11
|
-
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). */
|
|
12
|
-
maxRows?:
|
|
14
|
+
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). "none" grows without a limit. */
|
|
15
|
+
maxRows?: TextareaMaxRows;
|
|
13
16
|
/** Character limit (UTF-16 units, like the attribute); the count shows "length/maxLength" and a longer value reads as an error. */
|
|
14
17
|
maxLength?: number;
|
|
15
18
|
/** Shows the character count inside the field, as "length/maxLength" when maxLength is set. */
|