@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
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SparklineData } from "../../../shared/package-runtime/sparkline.cjs";
|
|
2
|
+
import { type HeatCellColor, type HeatCellMode, type ProgressCellColor } from "../../../shared/package-runtime/data-cells.cjs";
|
|
3
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
4
|
import { type DisplaySize } from "./display.cjs";
|
|
3
5
|
export interface KjunDeviationProps {
|
|
4
6
|
value?: number | null;
|
|
@@ -9,29 +11,43 @@ export interface KjunDeviationProps {
|
|
|
9
11
|
}
|
|
10
12
|
export declare function KjunDeviation({ value, variant, signalThreshold, decimals, formatter, }: KjunDeviationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export interface KjunHeatmapCellProps {
|
|
12
|
-
|
|
14
|
+
/** null or a number that is not finite shows a dash on no fill. */
|
|
15
|
+
value?: number | null;
|
|
13
16
|
min?: number;
|
|
14
17
|
max?: number;
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
/** Where diverging and price cells change side (default the middle of min and max). Both sides share one scale. */
|
|
19
|
+
center?: number;
|
|
20
|
+
mode?: HeatCellMode;
|
|
21
|
+
color?: HeatCellColor;
|
|
17
22
|
children?: ReactNode;
|
|
18
23
|
}
|
|
19
|
-
export declare function KjunHeatmapCell({ value, min, max, mode, color, children, }: KjunHeatmapCellProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunHeatmapCell({ value, min, max, center, mode, color, children, }: KjunHeatmapCellProps): import("react/jsx-runtime").JSX.Element;
|
|
20
25
|
export interface KjunProgressCellProps {
|
|
21
26
|
value?: number;
|
|
22
27
|
max?: number;
|
|
23
28
|
showLabel?: boolean;
|
|
24
|
-
|
|
29
|
+
/** "custom" (or customColor alone) takes customColor; without one "custom" falls back to the auto colours. */
|
|
30
|
+
color?: ProgressCellColor;
|
|
25
31
|
customColor?: string;
|
|
26
32
|
height?: number;
|
|
33
|
+
/** Shown and read in place of the rounded percent, e.g. "12/20건"; the bar's length still comes from value and max. */
|
|
34
|
+
valueText?: string;
|
|
35
|
+
/** The bar's name for screen readers, e.g. the row's name ("A팀 진척"). */
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/** A reference point across the bar on the value's own scale (0 to max), such as today's share of a budget. */
|
|
38
|
+
marker?: number;
|
|
39
|
+
/** Read by screen readers as the bar's description, e.g. "오늘 기준 53%". */
|
|
40
|
+
markerLabel?: string;
|
|
27
41
|
}
|
|
28
|
-
export declare function KjunProgressCell({ value, max, showLabel, color, customColor, height, }: KjunProgressCellProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunProgressCell({ value, max, showLabel, color, customColor, height, valueText, ariaLabel, marker, markerLabel, }: KjunProgressCellProps): import("react/jsx-runtime").JSX.Element;
|
|
29
43
|
export interface KjunCollectionMarkProps {
|
|
30
44
|
kind: "favorite" | "interest";
|
|
31
45
|
active?: boolean;
|
|
32
46
|
size?: "sm" | "md" | "lg";
|
|
47
|
+
/** What an active mark says to a screen reader (default "즐겨찾기" or "관심"). An inactive mark stays hidden. */
|
|
48
|
+
label?: string;
|
|
33
49
|
}
|
|
34
|
-
export declare function KjunCollectionMark({ kind, active, size, }: KjunCollectionMarkProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare function KjunCollectionMark({ kind, active, size, label, }: KjunCollectionMarkProps): import("react/jsx-runtime").JSX.Element;
|
|
35
51
|
export declare const executionStates: {
|
|
36
52
|
readonly queued: readonly [
|
|
37
53
|
"secondary",
|
|
@@ -73,12 +89,13 @@ export interface KjunExecutionStatusBadgeProps {
|
|
|
73
89
|
}
|
|
74
90
|
export declare function KjunExecutionStatusBadge({ status, label, size, }: KjunExecutionStatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
75
91
|
export interface KjunSparklineProps {
|
|
76
|
-
|
|
92
|
+
/** Values in time order. null, undefined and non-finite numbers are gaps: the line breaks there. */
|
|
93
|
+
data?: SparklineData;
|
|
77
94
|
width?: number;
|
|
78
95
|
height?: number;
|
|
79
96
|
color?: string;
|
|
80
97
|
semantic?: "price" | "status";
|
|
81
|
-
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color. */
|
|
98
|
+
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color and the others stay quiet. */
|
|
82
99
|
variant?: "line" | "bar";
|
|
83
100
|
fill?: boolean;
|
|
84
101
|
strokeWidth?: number;
|
|
@@ -90,6 +107,10 @@ export interface KjunSparklineProps {
|
|
|
90
107
|
max?: number;
|
|
91
108
|
/** Marks the last value with a dot (line variant; default true). */
|
|
92
109
|
endDot?: boolean;
|
|
110
|
+
/** Names the chart for screen readers; without it the chart is decorative. With no data, the no-data message follows it. */
|
|
93
111
|
ariaLabel?: string;
|
|
112
|
+
className?: string;
|
|
113
|
+
style?: CSSProperties;
|
|
114
|
+
id?: string;
|
|
94
115
|
}
|
|
95
|
-
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, className, style, id, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SparklineData } from "../../../shared/package-runtime/sparkline.js";
|
|
2
|
+
import { type HeatCellColor, type HeatCellMode, type ProgressCellColor } from "../../../shared/package-runtime/data-cells.js";
|
|
3
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
4
|
import { type DisplaySize } from "./display.js";
|
|
3
5
|
export interface KjunDeviationProps {
|
|
4
6
|
value?: number | null;
|
|
@@ -9,29 +11,43 @@ export interface KjunDeviationProps {
|
|
|
9
11
|
}
|
|
10
12
|
export declare function KjunDeviation({ value, variant, signalThreshold, decimals, formatter, }: KjunDeviationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export interface KjunHeatmapCellProps {
|
|
12
|
-
|
|
14
|
+
/** null or a number that is not finite shows a dash on no fill. */
|
|
15
|
+
value?: number | null;
|
|
13
16
|
min?: number;
|
|
14
17
|
max?: number;
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
/** Where diverging and price cells change side (default the middle of min and max). Both sides share one scale. */
|
|
19
|
+
center?: number;
|
|
20
|
+
mode?: HeatCellMode;
|
|
21
|
+
color?: HeatCellColor;
|
|
17
22
|
children?: ReactNode;
|
|
18
23
|
}
|
|
19
|
-
export declare function KjunHeatmapCell({ value, min, max, mode, color, children, }: KjunHeatmapCellProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunHeatmapCell({ value, min, max, center, mode, color, children, }: KjunHeatmapCellProps): import("react/jsx-runtime").JSX.Element;
|
|
20
25
|
export interface KjunProgressCellProps {
|
|
21
26
|
value?: number;
|
|
22
27
|
max?: number;
|
|
23
28
|
showLabel?: boolean;
|
|
24
|
-
|
|
29
|
+
/** "custom" (or customColor alone) takes customColor; without one "custom" falls back to the auto colours. */
|
|
30
|
+
color?: ProgressCellColor;
|
|
25
31
|
customColor?: string;
|
|
26
32
|
height?: number;
|
|
33
|
+
/** Shown and read in place of the rounded percent, e.g. "12/20건"; the bar's length still comes from value and max. */
|
|
34
|
+
valueText?: string;
|
|
35
|
+
/** The bar's name for screen readers, e.g. the row's name ("A팀 진척"). */
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/** A reference point across the bar on the value's own scale (0 to max), such as today's share of a budget. */
|
|
38
|
+
marker?: number;
|
|
39
|
+
/** Read by screen readers as the bar's description, e.g. "오늘 기준 53%". */
|
|
40
|
+
markerLabel?: string;
|
|
27
41
|
}
|
|
28
|
-
export declare function KjunProgressCell({ value, max, showLabel, color, customColor, height, }: KjunProgressCellProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunProgressCell({ value, max, showLabel, color, customColor, height, valueText, ariaLabel, marker, markerLabel, }: KjunProgressCellProps): import("react/jsx-runtime").JSX.Element;
|
|
29
43
|
export interface KjunCollectionMarkProps {
|
|
30
44
|
kind: "favorite" | "interest";
|
|
31
45
|
active?: boolean;
|
|
32
46
|
size?: "sm" | "md" | "lg";
|
|
47
|
+
/** What an active mark says to a screen reader (default "즐겨찾기" or "관심"). An inactive mark stays hidden. */
|
|
48
|
+
label?: string;
|
|
33
49
|
}
|
|
34
|
-
export declare function KjunCollectionMark({ kind, active, size, }: KjunCollectionMarkProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare function KjunCollectionMark({ kind, active, size, label, }: KjunCollectionMarkProps): import("react/jsx-runtime").JSX.Element;
|
|
35
51
|
export declare const executionStates: {
|
|
36
52
|
readonly queued: readonly [
|
|
37
53
|
"secondary",
|
|
@@ -73,12 +89,13 @@ export interface KjunExecutionStatusBadgeProps {
|
|
|
73
89
|
}
|
|
74
90
|
export declare function KjunExecutionStatusBadge({ status, label, size, }: KjunExecutionStatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
75
91
|
export interface KjunSparklineProps {
|
|
76
|
-
|
|
92
|
+
/** Values in time order. null, undefined and non-finite numbers are gaps: the line breaks there. */
|
|
93
|
+
data?: SparklineData;
|
|
77
94
|
width?: number;
|
|
78
95
|
height?: number;
|
|
79
96
|
color?: string;
|
|
80
97
|
semantic?: "price" | "status";
|
|
81
|
-
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color. */
|
|
98
|
+
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color and the others stay quiet. */
|
|
82
99
|
variant?: "line" | "bar";
|
|
83
100
|
fill?: boolean;
|
|
84
101
|
strokeWidth?: number;
|
|
@@ -90,6 +107,10 @@ export interface KjunSparklineProps {
|
|
|
90
107
|
max?: number;
|
|
91
108
|
/** Marks the last value with a dot (line variant; default true). */
|
|
92
109
|
endDot?: boolean;
|
|
110
|
+
/** Names the chart for screen readers; without it the chart is decorative. With no data, the no-data message follows it. */
|
|
93
111
|
ariaLabel?: string;
|
|
112
|
+
className?: string;
|
|
113
|
+
style?: CSSProperties;
|
|
114
|
+
id?: string;
|
|
94
115
|
}
|
|
95
|
-
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, className, style, id, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode, type RefObject } from "react";
|
|
2
|
-
export type Placement = "top" | "bottom" | "left" | "right" | "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
3
|
-
export declare function FloatingPanel({ open, onOpenChange, triggerRef, children, placement, className, matchTriggerWidth, maxHeight, field, flip, nonModal, ownsDismiss, returnFocus, repositionKey, inside, }: {
|
|
2
|
+
export type Placement = "top" | "bottom" | "left" | "right" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
3
|
+
export declare function FloatingPanel({ open, onOpenChange, triggerRef, children, placement, className, matchTriggerWidth, maxHeight, field, flip, nonModal, ownsDismiss, returnFocus, repositionKey, inside, labelledBy, ariaLabel, }: {
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange: (v: boolean) => void;
|
|
6
6
|
triggerRef: RefObject<HTMLElement | null>;
|
|
@@ -19,6 +19,10 @@ export declare function FloatingPanel({ open, onOpenChange, triggerRef, children
|
|
|
19
19
|
repositionKey?: number;
|
|
20
20
|
/** Another element that counts as inside (an anchored Popover's trigger area): pressing it is not an outside press. */
|
|
21
21
|
inside?: RefObject<HTMLElement | null>;
|
|
22
|
+
/** The id of the element that names the panel when it is a dialog. */
|
|
23
|
+
labelledBy?: string;
|
|
24
|
+
/** The panel dialog's name when no element names it. */
|
|
25
|
+
ariaLabel?: string;
|
|
22
26
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
23
27
|
/** A focus target given as an element, a ref or a function read when the panel closes. */
|
|
24
28
|
export type FocusReturn = HTMLElement | RefObject<HTMLElement | null> | (() => HTMLElement | null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode, type RefObject } from "react";
|
|
2
|
-
export type Placement = "top" | "bottom" | "left" | "right" | "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
3
|
-
export declare function FloatingPanel({ open, onOpenChange, triggerRef, children, placement, className, matchTriggerWidth, maxHeight, field, flip, nonModal, ownsDismiss, returnFocus, repositionKey, inside, }: {
|
|
2
|
+
export type Placement = "top" | "bottom" | "left" | "right" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
3
|
+
export declare function FloatingPanel({ open, onOpenChange, triggerRef, children, placement, className, matchTriggerWidth, maxHeight, field, flip, nonModal, ownsDismiss, returnFocus, repositionKey, inside, labelledBy, ariaLabel, }: {
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange: (v: boolean) => void;
|
|
6
6
|
triggerRef: RefObject<HTMLElement | null>;
|
|
@@ -19,6 +19,10 @@ export declare function FloatingPanel({ open, onOpenChange, triggerRef, children
|
|
|
19
19
|
repositionKey?: number;
|
|
20
20
|
/** Another element that counts as inside (an anchored Popover's trigger area): pressing it is not an outside press. */
|
|
21
21
|
inside?: RefObject<HTMLElement | null>;
|
|
22
|
+
/** The id of the element that names the panel when it is a dialog. */
|
|
23
|
+
labelledBy?: string;
|
|
24
|
+
/** The panel dialog's name when no element names it. */
|
|
25
|
+
ariaLabel?: string;
|
|
22
26
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
23
27
|
/** A focus target given as an element, a ref or a function read when the panel closes. */
|
|
24
28
|
export type FocusReturn = HTMLElement | RefObject<HTMLElement | null> | (() => HTMLElement | null);
|
|
@@ -10,6 +10,7 @@ export type { KjunModalProps, KjunFormActionsProps } from "./modal.cjs";
|
|
|
10
10
|
export type { KjunColors, KjunDomainColors, ColorRole, DomainColorRole, ButtonSize, InputSize, ButtonVariant, } from "@kjun-ui/tokens";
|
|
11
11
|
export * from "./display.cjs";
|
|
12
12
|
export * from "./layout-primitives.cjs";
|
|
13
|
+
export * from "./tiles.cjs";
|
|
13
14
|
export * from "./feedback.cjs";
|
|
14
15
|
export * from "./controls.cjs";
|
|
15
16
|
export { KjunPopover, KjunTooltip, KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunDropdownSection, KjunDropdownSubmenu, KjunMenuButton, KjunDrawer, } from "./layers.cjs";
|
|
@@ -21,12 +22,16 @@ export { KjunIconToggle, KjunCopyButton, KjunRefreshButton, KjunExternalLink, Kj
|
|
|
21
22
|
export type { KjunIconToggleProps, KjunCopyButtonProps, KjunRefreshButtonProps, KjunExternalLinkProps, } from "./actions.cjs";
|
|
22
23
|
export { KjunCarousel } from "./carousel.cjs";
|
|
23
24
|
export { KjunColorPicker, type KjunColorPickerProps, type KjunColorSwatch } from "./color-picker.cjs";
|
|
25
|
+
export { KjunFileUpload, type KjunFileUploadProps, type KjunUploadFile, type KjunUploadStatus, type KjunRejectedFile, type KjunRejectReason, type KjunUploadSize, type KjunUploadTrigger, type KjunUploadLayout } from "./file-upload.cjs";
|
|
24
26
|
export type { KjunCarouselProps } from "./carousel.cjs";
|
|
27
|
+
export { KjunSteps, type KjunStepsProps, type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "./steps.cjs";
|
|
28
|
+
export { KjunEventCalendar, type KjunEventCalendarProps, type DayMarks, type DaySpan, type HolidayTest } from "./event-calendar.cjs";
|
|
29
|
+
export { kjunCalendarPeriod } from "../../../shared/package-runtime/event-calendar.cjs";
|
|
25
30
|
export { KjunSplitPane, type KjunSplitPaneProps } from "./split-pane.cjs";
|
|
26
31
|
export { KjunZoneGauge, type KjunZoneGaugeProps, type KjunGaugeZone } from "./zone-gauge.cjs";
|
|
27
32
|
export { KjunStackedBar, type KjunStackedBarProps, type KjunStackedBarItem } from "./stacked-bar.cjs";
|
|
28
33
|
export { KjunDataState, KjunErrorBoundary } from "./data-state.cjs";
|
|
29
|
-
export type { KjunDataStateProps, KjunErrorBoundaryProps } from "./data-state.cjs";
|
|
34
|
+
export type { KjunDataStateProps, KjunErrorBoundaryProps, KjunErrorFallbackProps } from "./data-state.cjs";
|
|
30
35
|
export * from "./skeletons.cjs";
|
|
31
36
|
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, KjunDeviation, KjunHeatmapCell, KjunProgressCell, KjunCollectionMark, KjunExecutionStatusBadge, KjunSparkline, } from "./financial.cjs";
|
|
32
37
|
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps, KjunDeviationProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunCollectionMarkProps, KjunExecutionStatusBadgeProps, KjunSparklineProps, } from "./financial.cjs";
|
|
@@ -38,11 +43,17 @@ export { KjunMarketCards, KjunMarketSimpleList, KjunMarketTable, KjunMarketListP
|
|
|
38
43
|
export type { KjunMarketCardsProps, KjunMarketSimpleListProps, KjunMarketTableProps, MarketBaseProps, MarketColumn, MarketMetric, MarketPagination, MarketFormatter, } from "./market.cjs";
|
|
39
44
|
export * from "./list.cjs";
|
|
40
45
|
export * from "./app-navigation.cjs";
|
|
46
|
+
export * from "./side-navigation.cjs";
|
|
47
|
+
export * from "./side-navigation-layout.cjs";
|
|
48
|
+
export * from "./pressable.cjs";
|
|
41
49
|
export * from "./media.cjs";
|
|
50
|
+
export * from "./avatar-group.cjs";
|
|
42
51
|
export * from "./chip.cjs";
|
|
43
52
|
export * from "./fab.cjs";
|
|
44
53
|
export * from "./range-input.cjs";
|
|
45
54
|
export * from "./quantity-stepper.cjs";
|
|
55
|
+
export { KjunNumberInput } from "./number-input.cjs";
|
|
56
|
+
export type { KjunNumberInputProps } from "./number-input.cjs";
|
|
46
57
|
export * from "./time-picker.cjs";
|
|
47
58
|
export type { ShadowLayer, ElevationRole, CardElevation } from "@kjun-ui/tokens";
|
|
48
59
|
export { kjunMessagesKo, kjunMessagesEn, type KjunMessages } from "../../../shared/package-runtime/messages/index.cjs";
|
|
@@ -10,6 +10,7 @@ export type { KjunModalProps, KjunFormActionsProps } from "./modal.js";
|
|
|
10
10
|
export type { KjunColors, KjunDomainColors, ColorRole, DomainColorRole, ButtonSize, InputSize, ButtonVariant, } from "@kjun-ui/tokens";
|
|
11
11
|
export * from "./display.js";
|
|
12
12
|
export * from "./layout-primitives.js";
|
|
13
|
+
export * from "./tiles.js";
|
|
13
14
|
export * from "./feedback.js";
|
|
14
15
|
export * from "./controls.js";
|
|
15
16
|
export { KjunPopover, KjunTooltip, KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunDropdownSection, KjunDropdownSubmenu, KjunMenuButton, KjunDrawer, } from "./layers.js";
|
|
@@ -21,12 +22,16 @@ export { KjunIconToggle, KjunCopyButton, KjunRefreshButton, KjunExternalLink, Kj
|
|
|
21
22
|
export type { KjunIconToggleProps, KjunCopyButtonProps, KjunRefreshButtonProps, KjunExternalLinkProps, } from "./actions.js";
|
|
22
23
|
export { KjunCarousel } from "./carousel.js";
|
|
23
24
|
export { KjunColorPicker, type KjunColorPickerProps, type KjunColorSwatch } from "./color-picker.js";
|
|
25
|
+
export { KjunFileUpload, type KjunFileUploadProps, type KjunUploadFile, type KjunUploadStatus, type KjunRejectedFile, type KjunRejectReason, type KjunUploadSize, type KjunUploadTrigger, type KjunUploadLayout } from "./file-upload.js";
|
|
24
26
|
export type { KjunCarouselProps } from "./carousel.js";
|
|
27
|
+
export { KjunSteps, type KjunStepsProps, type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "./steps.js";
|
|
28
|
+
export { KjunEventCalendar, type KjunEventCalendarProps, type DayMarks, type DaySpan, type HolidayTest } from "./event-calendar.js";
|
|
29
|
+
export { kjunCalendarPeriod } from "../../../shared/package-runtime/event-calendar.js";
|
|
25
30
|
export { KjunSplitPane, type KjunSplitPaneProps } from "./split-pane.js";
|
|
26
31
|
export { KjunZoneGauge, type KjunZoneGaugeProps, type KjunGaugeZone } from "./zone-gauge.js";
|
|
27
32
|
export { KjunStackedBar, type KjunStackedBarProps, type KjunStackedBarItem } from "./stacked-bar.js";
|
|
28
33
|
export { KjunDataState, KjunErrorBoundary } from "./data-state.js";
|
|
29
|
-
export type { KjunDataStateProps, KjunErrorBoundaryProps } from "./data-state.js";
|
|
34
|
+
export type { KjunDataStateProps, KjunErrorBoundaryProps, KjunErrorFallbackProps } from "./data-state.js";
|
|
30
35
|
export * from "./skeletons.js";
|
|
31
36
|
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, KjunDeviation, KjunHeatmapCell, KjunProgressCell, KjunCollectionMark, KjunExecutionStatusBadge, KjunSparkline, } from "./financial.js";
|
|
32
37
|
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps, KjunDeviationProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunCollectionMarkProps, KjunExecutionStatusBadgeProps, KjunSparklineProps, } from "./financial.js";
|
|
@@ -38,11 +43,17 @@ export { KjunMarketCards, KjunMarketSimpleList, KjunMarketTable, KjunMarketListP
|
|
|
38
43
|
export type { KjunMarketCardsProps, KjunMarketSimpleListProps, KjunMarketTableProps, MarketBaseProps, MarketColumn, MarketMetric, MarketPagination, MarketFormatter, } from "./market.js";
|
|
39
44
|
export * from "./list.js";
|
|
40
45
|
export * from "./app-navigation.js";
|
|
46
|
+
export * from "./side-navigation.js";
|
|
47
|
+
export * from "./side-navigation-layout.js";
|
|
48
|
+
export * from "./pressable.js";
|
|
41
49
|
export * from "./media.js";
|
|
50
|
+
export * from "./avatar-group.js";
|
|
42
51
|
export * from "./chip.js";
|
|
43
52
|
export * from "./fab.js";
|
|
44
53
|
export * from "./range-input.js";
|
|
45
54
|
export * from "./quantity-stepper.js";
|
|
55
|
+
export { KjunNumberInput } from "./number-input.js";
|
|
56
|
+
export type { KjunNumberInputProps } from "./number-input.js";
|
|
46
57
|
export * from "./time-picker.js";
|
|
47
58
|
export type { ShadowLayer, ElevationRole, CardElevation } from "@kjun-ui/tokens";
|
|
48
59
|
export { kjunMessagesKo, kjunMessagesEn, type KjunMessages } from "../../../shared/package-runtime/messages/index.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type InputVariant } from "../../../shared/package-runtime/input-variant.cjs";
|
|
2
3
|
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
3
4
|
interface FieldContextValue {
|
|
4
5
|
id: string;
|
|
@@ -8,6 +9,8 @@ interface FieldContextValue {
|
|
|
8
9
|
required?: boolean;
|
|
9
10
|
/** A control with its own id registers it so the group label points at it. */
|
|
10
11
|
setControlId?: (id: string | undefined) => void;
|
|
12
|
+
/** A control's own message (NumberInput's range) shown in the group's error slot; "" clears it. The group's error wins. */
|
|
13
|
+
reportError?: (owner: string, message: string) => void;
|
|
11
14
|
}
|
|
12
15
|
export declare const FieldContext: import("react").Context<FieldContextValue | null>;
|
|
13
16
|
export declare const useKjunField: () => FieldContextValue | null;
|
|
@@ -21,15 +24,25 @@ export interface KjunFormGroupProps {
|
|
|
21
24
|
hint?: string;
|
|
22
25
|
/** Hides the label visually while it still names the field. */
|
|
23
26
|
labelHidden?: boolean;
|
|
27
|
+
/** Content at the end of the label row: a character count, or a small action such as "전액". Stays put when an error shows. */
|
|
28
|
+
labelEnd?: ReactNode;
|
|
29
|
+
/** Extra class on the group root, for placement in the page layout. */
|
|
30
|
+
className?: string;
|
|
24
31
|
children: ReactNode;
|
|
25
32
|
}
|
|
26
|
-
export declare function KjunFormGroup({ label, id, required, optional, error, hint, labelHidden, children, }: KjunFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function KjunFormGroup({ label, id, required, optional, error, hint, labelHidden, labelEnd, className, children, }: KjunFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
27
34
|
export interface KjunInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue"> {
|
|
28
35
|
size?: InputSize;
|
|
36
|
+
/** "plain" drops the surface, side border and side inset for text edited in place, such as a document title. */
|
|
37
|
+
variant?: InputVariant;
|
|
29
38
|
value: string | number;
|
|
30
39
|
error?: boolean;
|
|
31
40
|
errorMessage?: string;
|
|
32
41
|
clearable?: boolean;
|
|
42
|
+
/** With type="password", a 보기/숨기기 button at the end shows the typed password as text and hides it again. */
|
|
43
|
+
revealable?: boolean;
|
|
44
|
+
/** Shows the character count at the end of the field, as "length/maxLength" when maxLength is set; a longer value reads as an error. */
|
|
45
|
+
showCount?: boolean;
|
|
33
46
|
prefixIcon?: string;
|
|
34
47
|
suffixIcon?: string;
|
|
35
48
|
prefix?: ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type InputVariant } from "../../../shared/package-runtime/input-variant.js";
|
|
2
3
|
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
3
4
|
interface FieldContextValue {
|
|
4
5
|
id: string;
|
|
@@ -8,6 +9,8 @@ interface FieldContextValue {
|
|
|
8
9
|
required?: boolean;
|
|
9
10
|
/** A control with its own id registers it so the group label points at it. */
|
|
10
11
|
setControlId?: (id: string | undefined) => void;
|
|
12
|
+
/** A control's own message (NumberInput's range) shown in the group's error slot; "" clears it. The group's error wins. */
|
|
13
|
+
reportError?: (owner: string, message: string) => void;
|
|
11
14
|
}
|
|
12
15
|
export declare const FieldContext: import("react").Context<FieldContextValue | null>;
|
|
13
16
|
export declare const useKjunField: () => FieldContextValue | null;
|
|
@@ -21,15 +24,25 @@ export interface KjunFormGroupProps {
|
|
|
21
24
|
hint?: string;
|
|
22
25
|
/** Hides the label visually while it still names the field. */
|
|
23
26
|
labelHidden?: boolean;
|
|
27
|
+
/** Content at the end of the label row: a character count, or a small action such as "전액". Stays put when an error shows. */
|
|
28
|
+
labelEnd?: ReactNode;
|
|
29
|
+
/** Extra class on the group root, for placement in the page layout. */
|
|
30
|
+
className?: string;
|
|
24
31
|
children: ReactNode;
|
|
25
32
|
}
|
|
26
|
-
export declare function KjunFormGroup({ label, id, required, optional, error, hint, labelHidden, children, }: KjunFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function KjunFormGroup({ label, id, required, optional, error, hint, labelHidden, labelEnd, className, children, }: KjunFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
27
34
|
export interface KjunInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue"> {
|
|
28
35
|
size?: InputSize;
|
|
36
|
+
/** "plain" drops the surface, side border and side inset for text edited in place, such as a document title. */
|
|
37
|
+
variant?: InputVariant;
|
|
29
38
|
value: string | number;
|
|
30
39
|
error?: boolean;
|
|
31
40
|
errorMessage?: string;
|
|
32
41
|
clearable?: boolean;
|
|
42
|
+
/** With type="password", a 보기/숨기기 button at the end shows the typed password as text and hides it again. */
|
|
43
|
+
revealable?: boolean;
|
|
44
|
+
/** Shows the character count at the end of the field, as "length/maxLength" when maxLength is set; a longer value reads as an error. */
|
|
45
|
+
showCount?: boolean;
|
|
33
46
|
prefixIcon?: string;
|
|
34
47
|
suffixIcon?: string;
|
|
35
48
|
prefix?: ReactNode;
|
|
@@ -40,6 +40,8 @@ export interface KjunKpiHeroProps {
|
|
|
40
40
|
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
41
41
|
surface?: "card" | "none";
|
|
42
42
|
aside?: ReactNode;
|
|
43
|
+
/** An app control after the label, such as a mask toggle or an info tooltip trigger; it keeps the label's line height. */
|
|
44
|
+
labelAside?: ReactNode;
|
|
43
45
|
/** Narrow screens: "below" (default) moves the aside under the delta line at full width; "hidden" drops it. */
|
|
44
46
|
asideMobile?: "below" | "hidden";
|
|
45
47
|
/** Draws the direction as a filled caret before the first delta number, in place of its sign. */
|
|
@@ -40,6 +40,8 @@ export interface KjunKpiHeroProps {
|
|
|
40
40
|
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
41
41
|
surface?: "card" | "none";
|
|
42
42
|
aside?: ReactNode;
|
|
43
|
+
/** An app control after the label, such as a mask toggle or an info tooltip trigger; it keeps the label's line height. */
|
|
44
|
+
labelAside?: ReactNode;
|
|
43
45
|
/** Narrow screens: "below" (default) moves the aside under the delta line at full width; "hidden" drops it. */
|
|
44
46
|
asideMobile?: "below" | "hidden";
|
|
45
47
|
/** Draws the direction as a filled caret before the first delta number, in place of its sign. */
|
|
@@ -24,6 +24,11 @@ export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
|
24
24
|
variant?: KpiBadgeVariant;
|
|
25
25
|
} | null;
|
|
26
26
|
badgePlacement?: "label" | "value";
|
|
27
|
+
/**
|
|
28
|
+
* An app control after the label, such as an info tooltip trigger or a mask toggle. It keeps the label's line
|
|
29
|
+
* height, and its clicks and keys stay with it: they never open a clickable or link cell.
|
|
30
|
+
*/
|
|
31
|
+
labelAside?: ReactNode;
|
|
27
32
|
}
|
|
28
33
|
export interface KjunKpiRowProps {
|
|
29
34
|
loading?: boolean;
|
|
@@ -24,6 +24,11 @@ export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
|
24
24
|
variant?: KpiBadgeVariant;
|
|
25
25
|
} | null;
|
|
26
26
|
badgePlacement?: "label" | "value";
|
|
27
|
+
/**
|
|
28
|
+
* An app control after the label, such as an info tooltip trigger or a mask toggle. It keeps the label's line
|
|
29
|
+
* height, and its clicks and keys stay with it: they never open a clickable or link cell.
|
|
30
|
+
*/
|
|
31
|
+
labelAside?: ReactNode;
|
|
27
32
|
}
|
|
28
33
|
export interface KjunKpiRowProps {
|
|
29
34
|
loading?: boolean;
|