@kjun-ui/react 0.20.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 +11354 -4458
- package/dist/index.js +10951 -4033
- package/dist/styles.css +3948 -738
- 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 +14 -5
- package/dist/types/packages/react/src/app-navigation.d.ts +14 -5
- 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-actions-context.d.cts +2 -0
- package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
- package/dist/types/packages/react/src/card.d.cts +23 -6
- package/dist/types/packages/react/src/card.d.ts +23 -6
- 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/chip.d.cts +4 -2
- package/dist/types/packages/react/src/chip.d.ts +4 -2
- 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-parts.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
- package/dist/types/packages/react/src/color-picker.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker.d.ts +58 -0
- 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 +22 -9
- package/dist/types/packages/react/src/data-state.d.ts +22 -9
- 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 +40 -11
- package/dist/types/packages/react/src/display.d.ts +40 -11
- 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 +18 -7
- package/dist/types/packages/react/src/fab.d.ts +18 -7
- 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 +16 -1
- package/dist/types/packages/react/src/index.d.ts +16 -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 +55 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +55 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +46 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +46 -0
- package/dist/types/packages/react/src/kpi.d.cts +2 -72
- package/dist/types/packages/react/src/kpi.d.ts +2 -72
- package/dist/types/packages/react/src/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 +9 -0
- package/dist/types/packages/react/src/list-context.d.ts +9 -0
- package/dist/types/packages/react/src/list.d.cts +84 -11
- package/dist/types/packages/react/src/list.d.ts +84 -11
- 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 +14 -2
- package/dist/types/packages/react/src/modal.d.ts +14 -2
- package/dist/types/packages/react/src/navigation.d.cts +36 -6
- package/dist/types/packages/react/src/navigation.d.ts +36 -6
- package/dist/types/packages/react/src/number-display.d.cts +10 -5
- package/dist/types/packages/react/src/number-display.d.ts +10 -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/reorder-controls.d.cts +43 -0
- package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
- 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 +19 -3
- package/dist/types/packages/react/src/skeletons.d.ts +19 -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 +43 -0
- package/dist/types/packages/react/src/split-pane.d.ts +43 -0
- package/dist/types/packages/react/src/stacked-bar.d.cts +24 -0
- package/dist/types/packages/react/src/stacked-bar.d.ts +24 -0
- 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/packages/react/src/zone-gauge.d.cts +28 -0
- package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
- package/dist/types/shared/package-runtime/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-action-size.d.cts +1 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
- package/dist/types/shared/package-runtime/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 +15 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +30 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +30 -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 +42 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +42 -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 +2 -2
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +2 -2
- package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/clipboard.d.cts +6 -0
- package/dist/types/shared/package-runtime/clipboard.d.ts +6 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
- package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
- package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
- package/dist/types/shared/package-runtime/color.d.cts +22 -0
- package/dist/types/shared/package-runtime/color.d.ts +22 -0
- package/dist/types/shared/package-runtime/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 +168 -0
- package/dist/types/shared/package-runtime/distribution.d.ts +168 -0
- 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/empty-geometry.d.cts +19 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -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 +102 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +102 -0
- package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
- package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
- package/dist/types/shared/package-runtime/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-leading.d.cts +38 -0
- package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +152 -4
- package/dist/types/shared/package-runtime/list-row.d.ts +152 -4
- package/dist/types/shared/package-runtime/market-layout.d.cts +6 -2
- package/dist/types/shared/package-runtime/market-layout.d.ts +6 -2
- package/dist/types/shared/package-runtime/market-query.d.cts +21 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +21 -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 +101 -1
- package/dist/types/shared/package-runtime/messages/ko.d.ts +101 -1
- package/dist/types/shared/package-runtime/messages-context.d.cts +93 -1
- package/dist/types/shared/package-runtime/messages-context.d.ts +93 -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/number-sign.d.cts +9 -0
- package/dist/types/shared/package-runtime/number-sign.d.ts +9 -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/popover-scroll.d.cts +3 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -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/radio-keyboard.d.cts +2 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
- package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
- package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
- package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
- package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
- package/dist/types/shared/package-runtime/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 +18 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +18 -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 +85 -0
- package/dist/types/shared/package-runtime/split-pane.d.ts +85 -0
- 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 +36 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +36 -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 +33 -4
- package/dist/types/shared/package-runtime/table-presentation.d.ts +33 -4
- package/dist/types/shared/package-runtime/table.d.cts +44 -2
- package/dist/types/shared/package-runtime/table.d.ts +44 -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 +54 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +54 -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-layer.d.cts +4 -2
- package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
- 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.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";
|
|
@@ -20,9 +21,17 @@ export * from "./navigation.cjs";
|
|
|
20
21
|
export { KjunIconToggle, KjunCopyButton, KjunRefreshButton, KjunExternalLink, KjunScrollFade, } from "./actions.cjs";
|
|
21
22
|
export type { KjunIconToggleProps, KjunCopyButtonProps, KjunRefreshButtonProps, KjunExternalLinkProps, } from "./actions.cjs";
|
|
22
23
|
export { KjunCarousel } from "./carousel.cjs";
|
|
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";
|
|
23
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";
|
|
30
|
+
export { KjunSplitPane, type KjunSplitPaneProps } from "./split-pane.cjs";
|
|
31
|
+
export { KjunZoneGauge, type KjunZoneGaugeProps, type KjunGaugeZone } from "./zone-gauge.cjs";
|
|
32
|
+
export { KjunStackedBar, type KjunStackedBarProps, type KjunStackedBarItem } from "./stacked-bar.cjs";
|
|
24
33
|
export { KjunDataState, KjunErrorBoundary } from "./data-state.cjs";
|
|
25
|
-
export type { KjunDataStateProps, KjunErrorBoundaryProps } from "./data-state.cjs";
|
|
34
|
+
export type { KjunDataStateProps, KjunErrorBoundaryProps, KjunErrorFallbackProps } from "./data-state.cjs";
|
|
26
35
|
export * from "./skeletons.cjs";
|
|
27
36
|
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, KjunDeviation, KjunHeatmapCell, KjunProgressCell, KjunCollectionMark, KjunExecutionStatusBadge, KjunSparkline, } from "./financial.cjs";
|
|
28
37
|
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps, KjunDeviationProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunCollectionMarkProps, KjunExecutionStatusBadgeProps, KjunSparklineProps, } from "./financial.cjs";
|
|
@@ -34,11 +43,17 @@ export { KjunMarketCards, KjunMarketSimpleList, KjunMarketTable, KjunMarketListP
|
|
|
34
43
|
export type { KjunMarketCardsProps, KjunMarketSimpleListProps, KjunMarketTableProps, MarketBaseProps, MarketColumn, MarketMetric, MarketPagination, MarketFormatter, } from "./market.cjs";
|
|
35
44
|
export * from "./list.cjs";
|
|
36
45
|
export * from "./app-navigation.cjs";
|
|
46
|
+
export * from "./side-navigation.cjs";
|
|
47
|
+
export * from "./side-navigation-layout.cjs";
|
|
48
|
+
export * from "./pressable.cjs";
|
|
37
49
|
export * from "./media.cjs";
|
|
50
|
+
export * from "./avatar-group.cjs";
|
|
38
51
|
export * from "./chip.cjs";
|
|
39
52
|
export * from "./fab.cjs";
|
|
40
53
|
export * from "./range-input.cjs";
|
|
41
54
|
export * from "./quantity-stepper.cjs";
|
|
55
|
+
export { KjunNumberInput } from "./number-input.cjs";
|
|
56
|
+
export type { KjunNumberInputProps } from "./number-input.cjs";
|
|
42
57
|
export * from "./time-picker.cjs";
|
|
43
58
|
export type { ShadowLayer, ElevationRole, CardElevation } from "@kjun-ui/tokens";
|
|
44
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";
|
|
@@ -20,9 +21,17 @@ export * from "./navigation.js";
|
|
|
20
21
|
export { KjunIconToggle, KjunCopyButton, KjunRefreshButton, KjunExternalLink, KjunScrollFade, } from "./actions.js";
|
|
21
22
|
export type { KjunIconToggleProps, KjunCopyButtonProps, KjunRefreshButtonProps, KjunExternalLinkProps, } from "./actions.js";
|
|
22
23
|
export { KjunCarousel } from "./carousel.js";
|
|
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";
|
|
23
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";
|
|
30
|
+
export { KjunSplitPane, type KjunSplitPaneProps } from "./split-pane.js";
|
|
31
|
+
export { KjunZoneGauge, type KjunZoneGaugeProps, type KjunGaugeZone } from "./zone-gauge.js";
|
|
32
|
+
export { KjunStackedBar, type KjunStackedBarProps, type KjunStackedBarItem } from "./stacked-bar.js";
|
|
24
33
|
export { KjunDataState, KjunErrorBoundary } from "./data-state.js";
|
|
25
|
-
export type { KjunDataStateProps, KjunErrorBoundaryProps } from "./data-state.js";
|
|
34
|
+
export type { KjunDataStateProps, KjunErrorBoundaryProps, KjunErrorFallbackProps } from "./data-state.js";
|
|
26
35
|
export * from "./skeletons.js";
|
|
27
36
|
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, KjunDeviation, KjunHeatmapCell, KjunProgressCell, KjunCollectionMark, KjunExecutionStatusBadge, KjunSparkline, } from "./financial.js";
|
|
28
37
|
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps, KjunDeviationProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunCollectionMarkProps, KjunExecutionStatusBadgeProps, KjunSparklineProps, } from "./financial.js";
|
|
@@ -34,11 +43,17 @@ export { KjunMarketCards, KjunMarketSimpleList, KjunMarketTable, KjunMarketListP
|
|
|
34
43
|
export type { KjunMarketCardsProps, KjunMarketSimpleListProps, KjunMarketTableProps, MarketBaseProps, MarketColumn, MarketMetric, MarketPagination, MarketFormatter, } from "./market.js";
|
|
35
44
|
export * from "./list.js";
|
|
36
45
|
export * from "./app-navigation.js";
|
|
46
|
+
export * from "./side-navigation.js";
|
|
47
|
+
export * from "./side-navigation-layout.js";
|
|
48
|
+
export * from "./pressable.js";
|
|
37
49
|
export * from "./media.js";
|
|
50
|
+
export * from "./avatar-group.js";
|
|
38
51
|
export * from "./chip.js";
|
|
39
52
|
export * from "./fab.js";
|
|
40
53
|
export * from "./range-input.js";
|
|
41
54
|
export * from "./quantity-stepper.js";
|
|
55
|
+
export { KjunNumberInput } from "./number-input.js";
|
|
56
|
+
export type { KjunNumberInputProps } from "./number-input.js";
|
|
42
57
|
export * from "./time-picker.js";
|
|
43
58
|
export type { ShadowLayer, ElevationRole, CardElevation } from "@kjun-ui/tokens";
|
|
44
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface KpiValue {
|
|
3
|
+
label?: string;
|
|
4
|
+
/** null, undefined and non-finite numbers are missing and show missingText. */
|
|
5
|
+
value: number | string | null;
|
|
6
|
+
decimals?: number;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
semantic?: "price" | "status";
|
|
10
|
+
showSign?: boolean;
|
|
11
|
+
formatter?: (value: number) => string;
|
|
12
|
+
/** Shown for a missing value; defaults to an em dash. */
|
|
13
|
+
missingText?: string;
|
|
14
|
+
desc?: string;
|
|
15
|
+
descClass?: string;
|
|
16
|
+
valueClass?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Masked digits: the mask is drawn, screen readers hear the hidden word. */
|
|
19
|
+
export declare function KpiMasked({ label }: {
|
|
20
|
+
label: string;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export interface KjunKpiHeroProps {
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
label: string;
|
|
25
|
+
/** null, undefined and non-finite numbers are missing and show missingText. */
|
|
26
|
+
value: number | string | null;
|
|
27
|
+
/** Shown for a missing value; defaults to an em dash. */
|
|
28
|
+
missingText?: string;
|
|
29
|
+
prefix?: string;
|
|
30
|
+
suffix?: string;
|
|
31
|
+
decimals?: number;
|
|
32
|
+
deltaAbsolute?: number | null;
|
|
33
|
+
deltaPercent?: number | null;
|
|
34
|
+
/** Digits after the point in the percent change. Defaults to 1. */
|
|
35
|
+
deltaPercentDecimals?: number;
|
|
36
|
+
deltaDescription?: string;
|
|
37
|
+
secondary?: KpiValue[];
|
|
38
|
+
animated?: boolean;
|
|
39
|
+
size?: "md" | "sm";
|
|
40
|
+
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
41
|
+
surface?: "card" | "none";
|
|
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;
|
|
45
|
+
/** Narrow screens: "below" (default) moves the aside under the delta line at full width; "hidden" drops it. */
|
|
46
|
+
asideMobile?: "below" | "hidden";
|
|
47
|
+
/** Draws the direction as a filled caret before the first delta number, in place of its sign. */
|
|
48
|
+
deltaIcon?: boolean;
|
|
49
|
+
/** Hides every amount behind a mask, with no direction colour; screen readers hear "hidden". */
|
|
50
|
+
masked?: boolean;
|
|
51
|
+
formatter?: (value: number) => string;
|
|
52
|
+
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
53
|
+
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface KpiValue {
|
|
3
|
+
label?: string;
|
|
4
|
+
/** null, undefined and non-finite numbers are missing and show missingText. */
|
|
5
|
+
value: number | string | null;
|
|
6
|
+
decimals?: number;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
semantic?: "price" | "status";
|
|
10
|
+
showSign?: boolean;
|
|
11
|
+
formatter?: (value: number) => string;
|
|
12
|
+
/** Shown for a missing value; defaults to an em dash. */
|
|
13
|
+
missingText?: string;
|
|
14
|
+
desc?: string;
|
|
15
|
+
descClass?: string;
|
|
16
|
+
valueClass?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Masked digits: the mask is drawn, screen readers hear the hidden word. */
|
|
19
|
+
export declare function KpiMasked({ label }: {
|
|
20
|
+
label: string;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export interface KjunKpiHeroProps {
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
label: string;
|
|
25
|
+
/** null, undefined and non-finite numbers are missing and show missingText. */
|
|
26
|
+
value: number | string | null;
|
|
27
|
+
/** Shown for a missing value; defaults to an em dash. */
|
|
28
|
+
missingText?: string;
|
|
29
|
+
prefix?: string;
|
|
30
|
+
suffix?: string;
|
|
31
|
+
decimals?: number;
|
|
32
|
+
deltaAbsolute?: number | null;
|
|
33
|
+
deltaPercent?: number | null;
|
|
34
|
+
/** Digits after the point in the percent change. Defaults to 1. */
|
|
35
|
+
deltaPercentDecimals?: number;
|
|
36
|
+
deltaDescription?: string;
|
|
37
|
+
secondary?: KpiValue[];
|
|
38
|
+
animated?: boolean;
|
|
39
|
+
size?: "md" | "sm";
|
|
40
|
+
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
41
|
+
surface?: "card" | "none";
|
|
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;
|
|
45
|
+
/** Narrow screens: "below" (default) moves the aside under the delta line at full width; "hidden" drops it. */
|
|
46
|
+
asideMobile?: "below" | "hidden";
|
|
47
|
+
/** Draws the direction as a filled caret before the first delta number, in place of its sign. */
|
|
48
|
+
deltaIcon?: boolean;
|
|
49
|
+
/** Hides every amount behind a mask, with no direction colour; screen readers hear "hidden". */
|
|
50
|
+
masked?: boolean;
|
|
51
|
+
formatter?: (value: number) => string;
|
|
52
|
+
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
53
|
+
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type KpiBadgeVariant } from "../../../shared/package-runtime/kpi.cjs";
|
|
2
|
+
import { type KeyboardEvent, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
import { type KpiValue } from "./kpi-hero.cjs";
|
|
4
|
+
export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
5
|
+
/** null/undefined and non-finite numbers are missing, never zero. Loading still takes precedence. */
|
|
6
|
+
value?: number | string | null;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
clickable?: boolean;
|
|
9
|
+
/** Draws the cell as a link to this address; it is clickable, and onItemClick still runs with the click event. */
|
|
10
|
+
href?: string;
|
|
11
|
+
mobileFull?: boolean;
|
|
12
|
+
mobileSecondary?: boolean;
|
|
13
|
+
mobileNeutral?: boolean;
|
|
14
|
+
valueKind?: "text" | "number";
|
|
15
|
+
animated?: boolean;
|
|
16
|
+
valueSegments?: {
|
|
17
|
+
text: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
separator?: boolean;
|
|
20
|
+
class?: string;
|
|
21
|
+
}[];
|
|
22
|
+
badge?: {
|
|
23
|
+
text: string;
|
|
24
|
+
variant?: KpiBadgeVariant;
|
|
25
|
+
} | null;
|
|
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;
|
|
32
|
+
}
|
|
33
|
+
export interface KjunKpiRowProps {
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
items: KpiRowItem[];
|
|
36
|
+
size?: "md" | "sm";
|
|
37
|
+
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
38
|
+
surface?: "card" | "none";
|
|
39
|
+
mobileSummary?: boolean;
|
|
40
|
+
/** Hides number values and segments behind a mask, with no direction colour; text values, badges and descriptions stay. */
|
|
41
|
+
masked?: boolean;
|
|
42
|
+
/** The event lets a link cell's router call preventDefault. */
|
|
43
|
+
onItemClick?: (item: KpiRowItem, index: number, event: MouseEvent | KeyboardEvent) => void;
|
|
44
|
+
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
45
|
+
}
|
|
46
|
+
export declare function KjunKpiRow({ loading, items, size, surface, mobileSummary, masked, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type KpiBadgeVariant } from "../../../shared/package-runtime/kpi.js";
|
|
2
|
+
import { type KeyboardEvent, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
import { type KpiValue } from "./kpi-hero.js";
|
|
4
|
+
export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
5
|
+
/** null/undefined and non-finite numbers are missing, never zero. Loading still takes precedence. */
|
|
6
|
+
value?: number | string | null;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
clickable?: boolean;
|
|
9
|
+
/** Draws the cell as a link to this address; it is clickable, and onItemClick still runs with the click event. */
|
|
10
|
+
href?: string;
|
|
11
|
+
mobileFull?: boolean;
|
|
12
|
+
mobileSecondary?: boolean;
|
|
13
|
+
mobileNeutral?: boolean;
|
|
14
|
+
valueKind?: "text" | "number";
|
|
15
|
+
animated?: boolean;
|
|
16
|
+
valueSegments?: {
|
|
17
|
+
text: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
separator?: boolean;
|
|
20
|
+
class?: string;
|
|
21
|
+
}[];
|
|
22
|
+
badge?: {
|
|
23
|
+
text: string;
|
|
24
|
+
variant?: KpiBadgeVariant;
|
|
25
|
+
} | null;
|
|
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;
|
|
32
|
+
}
|
|
33
|
+
export interface KjunKpiRowProps {
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
items: KpiRowItem[];
|
|
36
|
+
size?: "md" | "sm";
|
|
37
|
+
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
38
|
+
surface?: "card" | "none";
|
|
39
|
+
mobileSummary?: boolean;
|
|
40
|
+
/** Hides number values and segments behind a mask, with no direction colour; text values, badges and descriptions stay. */
|
|
41
|
+
masked?: boolean;
|
|
42
|
+
/** The event lets a link cell's router call preventDefault. */
|
|
43
|
+
onItemClick?: (item: KpiRowItem, index: number, event: MouseEvent | KeyboardEvent) => void;
|
|
44
|
+
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
45
|
+
}
|
|
46
|
+
export declare function KjunKpiRow({ loading, items, size, surface, mobileSummary, masked, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,72 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
label?: string;
|
|
4
|
-
value: number | string;
|
|
5
|
-
decimals?: number;
|
|
6
|
-
prefix?: string;
|
|
7
|
-
suffix?: string;
|
|
8
|
-
semantic?: "price" | "status";
|
|
9
|
-
showSign?: boolean;
|
|
10
|
-
formatter?: (value: number) => string;
|
|
11
|
-
desc?: string;
|
|
12
|
-
descClass?: string;
|
|
13
|
-
valueClass?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
16
|
-
export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
|
|
17
|
-
export interface KjunKpiHeroProps {
|
|
18
|
-
loading?: boolean;
|
|
19
|
-
label: string;
|
|
20
|
-
value: number | string;
|
|
21
|
-
prefix?: string;
|
|
22
|
-
suffix?: string;
|
|
23
|
-
decimals?: number;
|
|
24
|
-
deltaAbsolute?: number | null;
|
|
25
|
-
deltaPercent?: number | null;
|
|
26
|
-
deltaDescription?: string;
|
|
27
|
-
secondary?: KpiValue[];
|
|
28
|
-
animated?: boolean;
|
|
29
|
-
size?: "md" | "sm";
|
|
30
|
-
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
31
|
-
surface?: "card" | "none";
|
|
32
|
-
aside?: ReactNode;
|
|
33
|
-
formatter?: (value: number) => string;
|
|
34
|
-
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
35
|
-
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
36
|
-
}
|
|
37
|
-
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
39
|
-
/** null/undefined and non-finite numbers are missing, never zero. Loading still takes precedence. */
|
|
40
|
-
value?: number | string | null;
|
|
41
|
-
/** Shown for a missing value; defaults to an em dash. */
|
|
42
|
-
missingText?: string;
|
|
43
|
-
loading?: boolean;
|
|
44
|
-
clickable?: boolean;
|
|
45
|
-
mobileFull?: boolean;
|
|
46
|
-
mobileSecondary?: boolean;
|
|
47
|
-
mobileNeutral?: boolean;
|
|
48
|
-
valueKind?: "text" | "number";
|
|
49
|
-
animated?: boolean;
|
|
50
|
-
valueSegments?: {
|
|
51
|
-
text: string;
|
|
52
|
-
label?: string;
|
|
53
|
-
separator?: boolean;
|
|
54
|
-
class?: string;
|
|
55
|
-
}[];
|
|
56
|
-
badge?: {
|
|
57
|
-
text: string;
|
|
58
|
-
variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
59
|
-
} | null;
|
|
60
|
-
badgePlacement?: "label" | "value";
|
|
61
|
-
}
|
|
62
|
-
export interface KjunKpiRowProps {
|
|
63
|
-
loading?: boolean;
|
|
64
|
-
items: KpiRowItem[];
|
|
65
|
-
size?: "md" | "sm";
|
|
66
|
-
/** "none" drops the card background, padding and radius, for a KPI placed inside a card, modal or full-width list. */
|
|
67
|
-
surface?: "card" | "none";
|
|
68
|
-
mobileSummary?: boolean;
|
|
69
|
-
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
70
|
-
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
71
|
-
}
|
|
72
|
-
export declare function KjunKpiRow({ loading, items, size, surface, mobileSummary, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { KjunKpiHero, type KjunKpiHeroProps, type KpiValue } from "./kpi-hero.cjs";
|
|
2
|
+
export { KjunKpiRow, type KjunKpiRowProps, type KpiRowItem } from "./kpi-row.cjs";
|