@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,13 +1,16 @@
|
|
|
1
1
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
-
import { type ReactNode } from "react";
|
|
2
|
+
import { type ReactElement, type ReactNode, type RefAttributes } from "react";
|
|
3
3
|
import { type SearchInputModelProps } from "../../../shared/package-runtime/search-input.js";
|
|
4
|
+
import { type SearchFieldInputProps } from "./combobox.js";
|
|
4
5
|
import { SelectOption } from "./select-options.js";
|
|
5
|
-
export interface KjunSearchInputProps<T extends SelectOption = SelectOption> extends SearchInputModelProps<T> {
|
|
6
|
+
export interface KjunSearchInputProps<T extends SelectOption = SelectOption> extends SearchInputModelProps<T>, Pick<SearchFieldInputProps, "id" | "name" | "className" | "style" | "autoFocus" | "autoComplete" | "readOnly" | "required" | "inputMode" | "enterKeyHint" | "onFocus" | "onBlur" | "aria-describedby" | "aria-labelledby"> {
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
ariaLabel?: string;
|
|
8
9
|
error?: boolean;
|
|
9
10
|
clearable?: boolean;
|
|
10
11
|
size?: InputSize;
|
|
12
|
+
/** Plain mode: the search icon turns into a spinner while results load elsewhere on the page (a table, a grid). */
|
|
13
|
+
loading?: boolean;
|
|
11
14
|
itemKey?: string;
|
|
12
15
|
labelField?: string;
|
|
13
16
|
emptyText?: string;
|
|
@@ -18,4 +21,4 @@ export interface KjunSearchInputProps<T extends SelectOption = SelectOption> ext
|
|
|
18
21
|
onEnter?: () => void;
|
|
19
22
|
onClear?: () => void;
|
|
20
23
|
}
|
|
21
|
-
export declare
|
|
24
|
+
export declare const KjunSearchInput: <T extends SelectOption = SelectOption>(props: KjunSearchInputProps<T> & RefAttributes<HTMLInputElement>) => ReactElement;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
+
import type { SelectMultipleDisplay } from "../../../shared/package-runtime/options.cjs";
|
|
3
4
|
import { type FocusReturn } from "./floating-panel.cjs";
|
|
4
5
|
import { OptionValue, SelectOption } from "./select-options.cjs";
|
|
5
6
|
export interface KjunSelectProps<T extends SelectOption = SelectOption> {
|
|
6
7
|
value: OptionValue | OptionValue[] | null;
|
|
8
|
+
/** Options, or groups `{ label, options }` that put a title over their options. */
|
|
7
9
|
options?: T[];
|
|
8
10
|
placeholder?: string;
|
|
9
11
|
ariaLabel?: string;
|
|
@@ -24,10 +26,13 @@ export interface KjunSelectProps<T extends SelectOption = SelectOption> {
|
|
|
24
26
|
optionPageSize?: number;
|
|
25
27
|
clearable?: boolean;
|
|
26
28
|
multiple?: boolean;
|
|
29
|
+
/** With multiple: "count" shows "N selected" for two or more, "labels" names them and counts the ones that do not fit. */
|
|
30
|
+
multipleDisplay?: SelectMultipleDisplay;
|
|
27
31
|
error?: boolean;
|
|
28
32
|
menuHeader?: ReactNode;
|
|
29
33
|
renderOption?: (option: T, selected: boolean) => ReactNode;
|
|
30
|
-
|
|
34
|
+
/** `value` lets a value whose option has not loaded yet still show something. */
|
|
35
|
+
renderSelected?: (option: T | undefined, value: OptionValue | OptionValue[] | null) => ReactNode;
|
|
31
36
|
onValueChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
32
37
|
onChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
33
38
|
onOpenChange?: (v: boolean) => void;
|
|
@@ -40,4 +45,4 @@ export interface KjunSelectProps<T extends SelectOption = SelectOption> {
|
|
|
40
45
|
/** Where focus goes when the menu closes by choosing or Escape, instead of the trigger (e.g. an edited cell). Web only. */
|
|
41
46
|
returnFocus?: FocusReturn;
|
|
42
47
|
}
|
|
43
|
-
export declare function KjunSelect<T extends SelectOption = SelectOption>({ value, options, placeholder, ariaLabel, labelKey, id: triggerId, ariaDescribedBy, valueKey, size, disabled, readOnly, searchable, open: controlled, loading, searchPlaceholder, optionPageSize, clearable, multiple, error, menuHeader, renderOption, renderSelected, onValueChange, onChange, onOpenChange, onSearch, onClear, filterFn, searchKeys, returnFocus, }: KjunSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function KjunSelect<T extends SelectOption = SelectOption>({ value, options, placeholder, ariaLabel, labelKey, id: triggerId, ariaDescribedBy, valueKey, size, disabled, readOnly, searchable, open: controlled, loading, searchPlaceholder, optionPageSize, clearable, multiple, multipleDisplay, error, menuHeader, renderOption, renderSelected, onValueChange, onChange, onOpenChange, onSearch, onClear, filterFn, searchKeys, returnFocus, }: KjunSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
+
import type { SelectMultipleDisplay } from "../../../shared/package-runtime/options.js";
|
|
3
4
|
import { type FocusReturn } from "./floating-panel.js";
|
|
4
5
|
import { OptionValue, SelectOption } from "./select-options.js";
|
|
5
6
|
export interface KjunSelectProps<T extends SelectOption = SelectOption> {
|
|
6
7
|
value: OptionValue | OptionValue[] | null;
|
|
8
|
+
/** Options, or groups `{ label, options }` that put a title over their options. */
|
|
7
9
|
options?: T[];
|
|
8
10
|
placeholder?: string;
|
|
9
11
|
ariaLabel?: string;
|
|
@@ -24,10 +26,13 @@ export interface KjunSelectProps<T extends SelectOption = SelectOption> {
|
|
|
24
26
|
optionPageSize?: number;
|
|
25
27
|
clearable?: boolean;
|
|
26
28
|
multiple?: boolean;
|
|
29
|
+
/** With multiple: "count" shows "N selected" for two or more, "labels" names them and counts the ones that do not fit. */
|
|
30
|
+
multipleDisplay?: SelectMultipleDisplay;
|
|
27
31
|
error?: boolean;
|
|
28
32
|
menuHeader?: ReactNode;
|
|
29
33
|
renderOption?: (option: T, selected: boolean) => ReactNode;
|
|
30
|
-
|
|
34
|
+
/** `value` lets a value whose option has not loaded yet still show something. */
|
|
35
|
+
renderSelected?: (option: T | undefined, value: OptionValue | OptionValue[] | null) => ReactNode;
|
|
31
36
|
onValueChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
32
37
|
onChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
33
38
|
onOpenChange?: (v: boolean) => void;
|
|
@@ -40,4 +45,4 @@ export interface KjunSelectProps<T extends SelectOption = SelectOption> {
|
|
|
40
45
|
/** Where focus goes when the menu closes by choosing or Escape, instead of the trigger (e.g. an edited cell). Web only. */
|
|
41
46
|
returnFocus?: FocusReturn;
|
|
42
47
|
}
|
|
43
|
-
export declare function KjunSelect<T extends SelectOption = SelectOption>({ value, options, placeholder, ariaLabel, labelKey, id: triggerId, ariaDescribedBy, valueKey, size, disabled, readOnly, searchable, open: controlled, loading, searchPlaceholder, optionPageSize, clearable, multiple, error, menuHeader, renderOption, renderSelected, onValueChange, onChange, onOpenChange, onSearch, onClear, filterFn, searchKeys, returnFocus, }: KjunSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function KjunSelect<T extends SelectOption = SelectOption>({ value, options, placeholder, ariaLabel, labelKey, id: triggerId, ariaDescribedBy, valueKey, size, disabled, readOnly, searchable, open: controlled, loading, searchPlaceholder, optionPageSize, clearable, multiple, multipleDisplay, error, menuHeader, renderOption, renderSelected, onValueChange, onChange, onOpenChange, onSearch, onClear, filterFn, searchKeys, returnFocus, }: KjunSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.cjs";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export type { SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.cjs";
|
|
4
|
+
/** Where the menu is drawn: in the column (collapsed or open) or in the drawer of a narrow screen, which is always open.
|
|
5
|
+
* closeDrawer closes that drawer, e.g. in the menu's onNavigate; in the column it does nothing. */
|
|
6
|
+
export type SideNavigationLayoutState = {
|
|
7
|
+
collapsed: boolean;
|
|
8
|
+
drawer: boolean;
|
|
9
|
+
closeDrawer: () => void;
|
|
10
|
+
};
|
|
11
|
+
export interface KjunSideNavigationLayoutProps {
|
|
12
|
+
/** The menu, usually a KjunSideNavigation. A function receives where it is drawn, so it can pass collapsed on, show
|
|
13
|
+
* the full menu in the drawer and close the drawer after navigating. */
|
|
14
|
+
nav: ReactNode | ((state: SideNavigationLayoutState) => ReactNode);
|
|
15
|
+
/** The page beside the menu. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
/** The column shrinks to the rail of icons. Pass the same value to the menu. */
|
|
18
|
+
collapsed?: boolean;
|
|
19
|
+
/** railBreakpoint asks to collapse or widen the column as the viewport crosses it. */
|
|
20
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
21
|
+
/** Below this viewport width the column asks to shrink to the rail (onCollapsedChange(true)), and above it to widen
|
|
22
|
+
* again; between crossings the menu's own toggle stands. Default 0, off. */
|
|
23
|
+
railBreakpoint?: number;
|
|
24
|
+
/** The menu shows names under its icons while collapsed (KjunSideNavigation railLabels), so the rail is wider. */
|
|
25
|
+
railLabels?: boolean;
|
|
26
|
+
/** The open column's width: sm 224, md 256 (default), lg 288. */
|
|
27
|
+
width?: SideNavigationWidth;
|
|
28
|
+
/** The column stays in view as the page scrolls (default), the viewport's height, scrolling on its own. false lets it
|
|
29
|
+
* scroll away with the page. */
|
|
30
|
+
sticky?: boolean;
|
|
31
|
+
/** How far below the viewport's top the sticky column stays, such as the height of a fixed top bar; the column is
|
|
32
|
+
* that much shorter than the viewport. Default 0. */
|
|
33
|
+
stickyOffset?: number;
|
|
34
|
+
/** Below this viewport width the column goes away and the menu opens in a drawer from the start edge (navOpen).
|
|
35
|
+
* Default tokens.responsive.sideNavigationLayout (768); 0 keeps the column at every width. */
|
|
36
|
+
breakpoint?: number;
|
|
37
|
+
/** The drawer of a narrow screen. Open it from the app's own menu button, and close it with the nav state's
|
|
38
|
+
* closeDrawer. Widening past the breakpoint closes it (onNavOpenChange(false)). */
|
|
39
|
+
navOpen?: boolean;
|
|
40
|
+
onNavOpenChange?: (open: boolean) => void;
|
|
41
|
+
/** The drawer's name for assistive technology; the menu's name by default. */
|
|
42
|
+
drawerLabel?: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/** A page with a side menu: a column that keeps the menu's width tokens (open or collapsed, sticky by default) beside the
|
|
46
|
+
* page, and a drawer for the menu below a breakpoint. The column's width follows collapsed with the collapse motion. */
|
|
47
|
+
export declare function KjunSideNavigationLayout({ nav, children, collapsed, onCollapsedChange, railBreakpoint, railLabels, width, sticky, stickyOffset, breakpoint, navOpen, onNavOpenChange, drawerLabel, className }: KjunSideNavigationLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.js";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export type { SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.js";
|
|
4
|
+
/** Where the menu is drawn: in the column (collapsed or open) or in the drawer of a narrow screen, which is always open.
|
|
5
|
+
* closeDrawer closes that drawer, e.g. in the menu's onNavigate; in the column it does nothing. */
|
|
6
|
+
export type SideNavigationLayoutState = {
|
|
7
|
+
collapsed: boolean;
|
|
8
|
+
drawer: boolean;
|
|
9
|
+
closeDrawer: () => void;
|
|
10
|
+
};
|
|
11
|
+
export interface KjunSideNavigationLayoutProps {
|
|
12
|
+
/** The menu, usually a KjunSideNavigation. A function receives where it is drawn, so it can pass collapsed on, show
|
|
13
|
+
* the full menu in the drawer and close the drawer after navigating. */
|
|
14
|
+
nav: ReactNode | ((state: SideNavigationLayoutState) => ReactNode);
|
|
15
|
+
/** The page beside the menu. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
/** The column shrinks to the rail of icons. Pass the same value to the menu. */
|
|
18
|
+
collapsed?: boolean;
|
|
19
|
+
/** railBreakpoint asks to collapse or widen the column as the viewport crosses it. */
|
|
20
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
21
|
+
/** Below this viewport width the column asks to shrink to the rail (onCollapsedChange(true)), and above it to widen
|
|
22
|
+
* again; between crossings the menu's own toggle stands. Default 0, off. */
|
|
23
|
+
railBreakpoint?: number;
|
|
24
|
+
/** The menu shows names under its icons while collapsed (KjunSideNavigation railLabels), so the rail is wider. */
|
|
25
|
+
railLabels?: boolean;
|
|
26
|
+
/** The open column's width: sm 224, md 256 (default), lg 288. */
|
|
27
|
+
width?: SideNavigationWidth;
|
|
28
|
+
/** The column stays in view as the page scrolls (default), the viewport's height, scrolling on its own. false lets it
|
|
29
|
+
* scroll away with the page. */
|
|
30
|
+
sticky?: boolean;
|
|
31
|
+
/** How far below the viewport's top the sticky column stays, such as the height of a fixed top bar; the column is
|
|
32
|
+
* that much shorter than the viewport. Default 0. */
|
|
33
|
+
stickyOffset?: number;
|
|
34
|
+
/** Below this viewport width the column goes away and the menu opens in a drawer from the start edge (navOpen).
|
|
35
|
+
* Default tokens.responsive.sideNavigationLayout (768); 0 keeps the column at every width. */
|
|
36
|
+
breakpoint?: number;
|
|
37
|
+
/** The drawer of a narrow screen. Open it from the app's own menu button, and close it with the nav state's
|
|
38
|
+
* closeDrawer. Widening past the breakpoint closes it (onNavOpenChange(false)). */
|
|
39
|
+
navOpen?: boolean;
|
|
40
|
+
onNavOpenChange?: (open: boolean) => void;
|
|
41
|
+
/** The drawer's name for assistive technology; the menu's name by default. */
|
|
42
|
+
drawerLabel?: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/** A page with a side menu: a column that keeps the menu's width tokens (open or collapsed, sticky by default) beside the
|
|
46
|
+
* page, and a drawer for the menu below a breakpoint. The column's width follows collapsed with the collapse motion. */
|
|
47
|
+
export declare function KjunSideNavigationLayout({ nav, children, collapsed, onCollapsedChange, railBreakpoint, railLabels, width, sticky, stickyOffset, breakpoint, navOpen, onNavOpenChange, drawerLabel, className }: KjunSideNavigationLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type SideNavigationCollapsedParent, type SideNavigationEntry, type SideNavigationHeadingLevel, type SideNavigationRail } from "../../../shared/package-runtime/side-navigation.cjs";
|
|
2
|
+
import { type ElementType, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
export type { SideNavigationAction, SideNavigationBadgeTone, SideNavigationCollapsedParent, SideNavigationDestination, SideNavigationHeadingLevel, SideNavigationParent, SideNavigationSubParent, SideNavigationItem, SideNavigationGroup, SideNavigationEntry, SideNavigationRail } from "../../../shared/package-runtime/side-navigation.cjs";
|
|
4
|
+
type Navigate = (key: string, event: MouseEvent<HTMLAnchorElement>) => void;
|
|
5
|
+
/** A header or footer: content, or a function of collapsed so it can swap to an icon-only form. */
|
|
6
|
+
export type SideNavigationSlot = ReactNode | ((collapsed: boolean) => ReactNode);
|
|
7
|
+
export interface KjunSideNavigationProps {
|
|
8
|
+
/** Destinations, parents with up to two levels under them, and titled groups of either. A destination has the bottom
|
|
9
|
+
* navigation's shape. */
|
|
10
|
+
items: SideNavigationEntry[];
|
|
11
|
+
/** The current destination's key (a child's key when the page is under a parent); null for a page outside the menu. */
|
|
12
|
+
value: string | null;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** A plain click on a destination of this tab. Modified clicks (new tab) and target links are left to the browser.
|
|
15
|
+
* With linkAs the router link already navigates: use this only for side effects such as closing a drawer. */
|
|
16
|
+
onNavigate?: Navigate;
|
|
17
|
+
/** The current destination was pressed again, e.g. to scroll its page back to the top. */
|
|
18
|
+
onReselect?: Navigate;
|
|
19
|
+
/** The open parents, at both levels. Without it the navigation keeps the list itself, starting with the parents of the
|
|
20
|
+
* current destination open. */
|
|
21
|
+
expanded?: string[];
|
|
22
|
+
/** Also called when moving to a page under a closed parent opens it. */
|
|
23
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
24
|
+
/** Icons only, for a narrowed column. Names show as tooltips, and children stay hidden behind their parent. */
|
|
25
|
+
collapsed?: boolean;
|
|
26
|
+
/** A parent or group was pressed while collapsed (collapsedParent="widen"), or the collapse toggle was pressed. */
|
|
27
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
28
|
+
/** Group titles become toggles that show or hide their group. A group's own collapsible overrides this. The group of
|
|
29
|
+
* the current destination starts open, and so do groups marked defaultOpen. */
|
|
30
|
+
collapsibleGroups?: boolean;
|
|
31
|
+
/** The open groups by key (a group's key, else its title). Without it the navigation keeps the list itself. */
|
|
32
|
+
expandedGroups?: string[];
|
|
33
|
+
/** Also called when moving to a page in a closed group opens it. */
|
|
34
|
+
onExpandedGroupsChange?: (expandedGroups: string[]) => void;
|
|
35
|
+
/** A group title that opens and closes ends with how many rows its group holds (a dot instead while a closed group has
|
|
36
|
+
* a badge inside). */
|
|
37
|
+
groupCounts?: boolean;
|
|
38
|
+
/** The groups (by key) showing every row past their limit. Without it the navigation keeps the list itself. */
|
|
39
|
+
showAll?: string[];
|
|
40
|
+
onShowAllChange?: (showAll: string[]) => void;
|
|
41
|
+
/** While collapsed: one icon per top-level item ("items"), or one per group ("groups", from the group's icon).
|
|
42
|
+
* Loose items between groups keep their own row. */
|
|
43
|
+
rail?: SideNavigationRail;
|
|
44
|
+
/** While collapsed: a short name (shortLabel, else the label) under each icon, in a 72 wide column. The current page,
|
|
45
|
+
* hover and press fill a 56 by 32 indicator around the icon, a count stays a number, and a tooltip shows only a name
|
|
46
|
+
* that was shortened. */
|
|
47
|
+
railLabels?: boolean;
|
|
48
|
+
/** While collapsed, pressing a parent or a rail group: "widen" asks for the full width with it open (onCollapsedChange);
|
|
49
|
+
* "flyout" shows its rows in a panel beside the icon and keeps the column narrow. */
|
|
50
|
+
collapsedParent?: SideNavigationCollapsedParent;
|
|
51
|
+
/** While collapsed, a hairline the icon's width between groups, on top of the gap that separates them. Off: the gap alone. */
|
|
52
|
+
railDividers?: boolean;
|
|
53
|
+
/** "compact": 32 tall rows and 30 tall children under a mouse, and counts as quiet numbers, for long lists (documentation,
|
|
54
|
+
* settings). A touch pointer keeps the touch heights. */
|
|
55
|
+
density?: "default" | "compact";
|
|
56
|
+
/** The level of the group titles' headings (default 2), to fit the page's outline. */
|
|
57
|
+
headingLevel?: SideNavigationHeadingLevel;
|
|
58
|
+
/** Above the list, such as a logo, a workspace switcher or search. With a header or footer only the list scrolls. */
|
|
59
|
+
header?: SideNavigationSlot;
|
|
60
|
+
/** Below the list, such as the account. */
|
|
61
|
+
footer?: SideNavigationSlot;
|
|
62
|
+
/** A button at the end of the footer that asks to collapse or widen the column (onCollapsedChange). */
|
|
63
|
+
collapseToggle?: boolean;
|
|
64
|
+
/** An action button of a row (the row's key) or a group title (the group's key) was pressed. */
|
|
65
|
+
onAction?: (key: string, action: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
66
|
+
/** Renders enabled links with the app's router link (Next.js Link, React Router Link) instead of <a>. It receives href,
|
|
67
|
+
* className, the aria-* and data-* attributes, onClick and children, and must render an <a> with them. */
|
|
68
|
+
linkAs?: ElementType;
|
|
69
|
+
/** Brings the current row into the menu's own scrolling column when the menu mounts, when the page changes and when
|
|
70
|
+
* items that hold it arrive. */
|
|
71
|
+
scrollToCurrent?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** A vertical menu for the side of a wide screen: links aligned to the start, the current one filled, groups with titles and up to two levels of children. */
|
|
74
|
+
export declare function KjunSideNavigation({ items, value, ariaLabel, onNavigate, onReselect, expanded, onExpandedChange, collapsed, onCollapsedChange, collapsibleGroups, expandedGroups, onExpandedGroupsChange, groupCounts, showAll, onShowAllChange, rail, railLabels, collapsedParent, railDividers, density, headingLevel, header, footer, collapseToggle, onAction, linkAs, scrollToCurrent }: KjunSideNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type SideNavigationCollapsedParent, type SideNavigationEntry, type SideNavigationHeadingLevel, type SideNavigationRail } from "../../../shared/package-runtime/side-navigation.js";
|
|
2
|
+
import { type ElementType, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
export type { SideNavigationAction, SideNavigationBadgeTone, SideNavigationCollapsedParent, SideNavigationDestination, SideNavigationHeadingLevel, SideNavigationParent, SideNavigationSubParent, SideNavigationItem, SideNavigationGroup, SideNavigationEntry, SideNavigationRail } from "../../../shared/package-runtime/side-navigation.js";
|
|
4
|
+
type Navigate = (key: string, event: MouseEvent<HTMLAnchorElement>) => void;
|
|
5
|
+
/** A header or footer: content, or a function of collapsed so it can swap to an icon-only form. */
|
|
6
|
+
export type SideNavigationSlot = ReactNode | ((collapsed: boolean) => ReactNode);
|
|
7
|
+
export interface KjunSideNavigationProps {
|
|
8
|
+
/** Destinations, parents with up to two levels under them, and titled groups of either. A destination has the bottom
|
|
9
|
+
* navigation's shape. */
|
|
10
|
+
items: SideNavigationEntry[];
|
|
11
|
+
/** The current destination's key (a child's key when the page is under a parent); null for a page outside the menu. */
|
|
12
|
+
value: string | null;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** A plain click on a destination of this tab. Modified clicks (new tab) and target links are left to the browser.
|
|
15
|
+
* With linkAs the router link already navigates: use this only for side effects such as closing a drawer. */
|
|
16
|
+
onNavigate?: Navigate;
|
|
17
|
+
/** The current destination was pressed again, e.g. to scroll its page back to the top. */
|
|
18
|
+
onReselect?: Navigate;
|
|
19
|
+
/** The open parents, at both levels. Without it the navigation keeps the list itself, starting with the parents of the
|
|
20
|
+
* current destination open. */
|
|
21
|
+
expanded?: string[];
|
|
22
|
+
/** Also called when moving to a page under a closed parent opens it. */
|
|
23
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
24
|
+
/** Icons only, for a narrowed column. Names show as tooltips, and children stay hidden behind their parent. */
|
|
25
|
+
collapsed?: boolean;
|
|
26
|
+
/** A parent or group was pressed while collapsed (collapsedParent="widen"), or the collapse toggle was pressed. */
|
|
27
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
28
|
+
/** Group titles become toggles that show or hide their group. A group's own collapsible overrides this. The group of
|
|
29
|
+
* the current destination starts open, and so do groups marked defaultOpen. */
|
|
30
|
+
collapsibleGroups?: boolean;
|
|
31
|
+
/** The open groups by key (a group's key, else its title). Without it the navigation keeps the list itself. */
|
|
32
|
+
expandedGroups?: string[];
|
|
33
|
+
/** Also called when moving to a page in a closed group opens it. */
|
|
34
|
+
onExpandedGroupsChange?: (expandedGroups: string[]) => void;
|
|
35
|
+
/** A group title that opens and closes ends with how many rows its group holds (a dot instead while a closed group has
|
|
36
|
+
* a badge inside). */
|
|
37
|
+
groupCounts?: boolean;
|
|
38
|
+
/** The groups (by key) showing every row past their limit. Without it the navigation keeps the list itself. */
|
|
39
|
+
showAll?: string[];
|
|
40
|
+
onShowAllChange?: (showAll: string[]) => void;
|
|
41
|
+
/** While collapsed: one icon per top-level item ("items"), or one per group ("groups", from the group's icon).
|
|
42
|
+
* Loose items between groups keep their own row. */
|
|
43
|
+
rail?: SideNavigationRail;
|
|
44
|
+
/** While collapsed: a short name (shortLabel, else the label) under each icon, in a 72 wide column. The current page,
|
|
45
|
+
* hover and press fill a 56 by 32 indicator around the icon, a count stays a number, and a tooltip shows only a name
|
|
46
|
+
* that was shortened. */
|
|
47
|
+
railLabels?: boolean;
|
|
48
|
+
/** While collapsed, pressing a parent or a rail group: "widen" asks for the full width with it open (onCollapsedChange);
|
|
49
|
+
* "flyout" shows its rows in a panel beside the icon and keeps the column narrow. */
|
|
50
|
+
collapsedParent?: SideNavigationCollapsedParent;
|
|
51
|
+
/** While collapsed, a hairline the icon's width between groups, on top of the gap that separates them. Off: the gap alone. */
|
|
52
|
+
railDividers?: boolean;
|
|
53
|
+
/** "compact": 32 tall rows and 30 tall children under a mouse, and counts as quiet numbers, for long lists (documentation,
|
|
54
|
+
* settings). A touch pointer keeps the touch heights. */
|
|
55
|
+
density?: "default" | "compact";
|
|
56
|
+
/** The level of the group titles' headings (default 2), to fit the page's outline. */
|
|
57
|
+
headingLevel?: SideNavigationHeadingLevel;
|
|
58
|
+
/** Above the list, such as a logo, a workspace switcher or search. With a header or footer only the list scrolls. */
|
|
59
|
+
header?: SideNavigationSlot;
|
|
60
|
+
/** Below the list, such as the account. */
|
|
61
|
+
footer?: SideNavigationSlot;
|
|
62
|
+
/** A button at the end of the footer that asks to collapse or widen the column (onCollapsedChange). */
|
|
63
|
+
collapseToggle?: boolean;
|
|
64
|
+
/** An action button of a row (the row's key) or a group title (the group's key) was pressed. */
|
|
65
|
+
onAction?: (key: string, action: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
66
|
+
/** Renders enabled links with the app's router link (Next.js Link, React Router Link) instead of <a>. It receives href,
|
|
67
|
+
* className, the aria-* and data-* attributes, onClick and children, and must render an <a> with them. */
|
|
68
|
+
linkAs?: ElementType;
|
|
69
|
+
/** Brings the current row into the menu's own scrolling column when the menu mounts, when the page changes and when
|
|
70
|
+
* items that hold it arrive. */
|
|
71
|
+
scrollToCurrent?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** A vertical menu for the side of a wide screen: links aligned to the start, the current one filled, groups with titles and up to two levels of children. */
|
|
74
|
+
export declare function KjunSideNavigation({ items, value, ariaLabel, onNavigate, onReselect, expanded, onExpandedChange, collapsed, onCollapsedChange, collapsibleGroups, expandedGroups, onExpandedGroupsChange, groupCounts, showAll, onShowAllChange, rail, railLabels, collapsedParent, railDividers, density, headingLevel, header, footer, collapseToggle, onAction, linkAs, scrollToCurrent }: KjunSideNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,7 @@ export interface KjunListSkeletonProps {
|
|
|
6
6
|
/** "row" is the silhouette of KjunListRow: title and description lines, a text-start divider, no avatar unless asked. */
|
|
7
7
|
variant?: "market" | "compact" | "notification" | "row";
|
|
8
8
|
avatar?: boolean;
|
|
9
|
+
/** Default: ListRow's sm leading square (32) for the row variant, the market avatar (36) otherwise. */
|
|
9
10
|
avatarSize?: CSSProperties["width"];
|
|
10
11
|
quote?: boolean;
|
|
11
12
|
/** Row variant: draws the description line (default true). */
|
|
@@ -14,8 +15,11 @@ export interface KjunListSkeletonProps {
|
|
|
14
15
|
trailing?: "value" | "switch" | "chevron";
|
|
15
16
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
16
17
|
loadingText?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
id?: string;
|
|
17
21
|
}
|
|
18
|
-
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize, quote, description, trailing, loadingText, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, className, style, id, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
23
|
export interface KjunFormSkeletonProps {
|
|
20
24
|
fields?: (string | {
|
|
21
25
|
label?: string;
|
|
@@ -24,10 +28,18 @@ export interface KjunFormSkeletonProps {
|
|
|
24
28
|
columns?: number;
|
|
25
29
|
multiline?: boolean;
|
|
26
30
|
size?: InputSize;
|
|
31
|
+
/**
|
|
32
|
+
* Bars for a FormActions row under the fields, end-aligned at the size's button height; the last is the primary
|
|
33
|
+
* button. Give the real FormActions the same size so nothing moves when the form arrives. Default 0.
|
|
34
|
+
*/
|
|
35
|
+
actions?: number;
|
|
27
36
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
28
37
|
loadingText?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
id?: string;
|
|
29
41
|
}
|
|
30
|
-
export declare function KjunFormSkeleton({ fields, columns, multiline, size, loadingText, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunFormSkeleton({ fields, columns, multiline, size, actions, loadingText, className, style, id, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
43
|
export interface KjunChartSkeletonProps {
|
|
32
44
|
kind?: KjunChartSkeletonKind;
|
|
33
45
|
height?: CSSProperties["height"];
|
|
@@ -42,7 +54,11 @@ export interface KjunChartSkeletonProps {
|
|
|
42
54
|
xTicks?: number;
|
|
43
55
|
/** Frame: y-axis label width in px (default 40); label bars fill it, less the label gap. */
|
|
44
56
|
axisWidth?: number;
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Merged over the root's height and reveal styles. */
|
|
59
|
+
style?: CSSProperties;
|
|
60
|
+
id?: string;
|
|
45
61
|
}
|
|
46
|
-
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, className, style, id, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
47
63
|
export { KjunMarketTableSkeleton } from "./market-skeleton.cjs";
|
|
48
64
|
export type { KjunMarketTableSkeletonProps } from "./market-skeleton.cjs";
|
|
@@ -6,6 +6,7 @@ export interface KjunListSkeletonProps {
|
|
|
6
6
|
/** "row" is the silhouette of KjunListRow: title and description lines, a text-start divider, no avatar unless asked. */
|
|
7
7
|
variant?: "market" | "compact" | "notification" | "row";
|
|
8
8
|
avatar?: boolean;
|
|
9
|
+
/** Default: ListRow's sm leading square (32) for the row variant, the market avatar (36) otherwise. */
|
|
9
10
|
avatarSize?: CSSProperties["width"];
|
|
10
11
|
quote?: boolean;
|
|
11
12
|
/** Row variant: draws the description line (default true). */
|
|
@@ -14,8 +15,11 @@ export interface KjunListSkeletonProps {
|
|
|
14
15
|
trailing?: "value" | "switch" | "chevron";
|
|
15
16
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
16
17
|
loadingText?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
id?: string;
|
|
17
21
|
}
|
|
18
|
-
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize, quote, description, trailing, loadingText, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, className, style, id, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
23
|
export interface KjunFormSkeletonProps {
|
|
20
24
|
fields?: (string | {
|
|
21
25
|
label?: string;
|
|
@@ -24,10 +28,18 @@ export interface KjunFormSkeletonProps {
|
|
|
24
28
|
columns?: number;
|
|
25
29
|
multiline?: boolean;
|
|
26
30
|
size?: InputSize;
|
|
31
|
+
/**
|
|
32
|
+
* Bars for a FormActions row under the fields, end-aligned at the size's button height; the last is the primary
|
|
33
|
+
* button. Give the real FormActions the same size so nothing moves when the form arrives. Default 0.
|
|
34
|
+
*/
|
|
35
|
+
actions?: number;
|
|
27
36
|
/** Announces loading to screen readers (a status); the skeleton itself stays silent. */
|
|
28
37
|
loadingText?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
id?: string;
|
|
29
41
|
}
|
|
30
|
-
export declare function KjunFormSkeleton({ fields, columns, multiline, size, loadingText, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunFormSkeleton({ fields, columns, multiline, size, actions, loadingText, className, style, id, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
43
|
export interface KjunChartSkeletonProps {
|
|
32
44
|
kind?: KjunChartSkeletonKind;
|
|
33
45
|
height?: CSSProperties["height"];
|
|
@@ -42,7 +54,11 @@ export interface KjunChartSkeletonProps {
|
|
|
42
54
|
xTicks?: number;
|
|
43
55
|
/** Frame: y-axis label width in px (default 40); label bars fill it, less the label gap. */
|
|
44
56
|
axisWidth?: number;
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Merged over the root's height and reveal styles. */
|
|
59
|
+
style?: CSSProperties;
|
|
60
|
+
id?: string;
|
|
45
61
|
}
|
|
46
|
-
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, className, style, id, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
47
63
|
export { KjunMarketTableSkeleton } from "./market-skeleton.js";
|
|
48
64
|
export type { KjunMarketTableSkeletonProps } from "./market-skeleton.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/** Internal loading ring shared by Spinner, Button, Fab, List, Switch and Toast. Decorative: the owner announces the state. */
|
|
3
|
+
export declare function KjunSpinnerGlyph({ size, stroke, className, style }: {
|
|
4
|
+
size: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/** Internal loading ring shared by Spinner, Button, Fab, List, Switch and Toast. Decorative: the owner announces the state. */
|
|
3
|
+
export declare function KjunSpinnerGlyph({ size, stroke, className, style }: {
|
|
4
|
+
size: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type SplitDirection, type SplitMax, type SplitMin, type SplitUnit } from "../../../shared/package-runtime/split-pane.cjs";
|
|
2
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
3
|
+
export interface KjunSplitPaneProps {
|
|
4
|
+
/** horizontal puts the panes side by side; vertical stacks them and needs a height from its parent. */
|
|
5
|
+
direction?: SplitDirection;
|
|
6
|
+
/**
|
|
7
|
+
* "ratio": sizes are the first pane's share (0–1) of the room beside the handle, so the split keeps its proportion as
|
|
8
|
+
* the container resizes. "px": sizes are the first pane's pixels, so a side list keeps its width.
|
|
9
|
+
*/
|
|
10
|
+
sizeUnit?: SplitUnit;
|
|
11
|
+
/** Controlled size of the first pane in sizeUnit; pair with onSizeChange. */
|
|
12
|
+
size?: number;
|
|
13
|
+
/** The starting size without size, and the size a double press (or Enter, when the pane does not collapse) restores. Half the room without it. */
|
|
14
|
+
defaultSize?: number;
|
|
15
|
+
/** Smallest pixels of the first and second pane. A minimum beats the size and the maximums. */
|
|
16
|
+
minSize?: SplitMin;
|
|
17
|
+
/** Largest pixels of the first and second pane; null leaves a pane unlimited. */
|
|
18
|
+
maxSize?: SplitMax;
|
|
19
|
+
/** Names the handle, e.g. "메시지 목록 크기". */
|
|
20
|
+
ariaLabel: string;
|
|
21
|
+
/** Keeps the split where it is: the handle takes no pointer, key or focus. */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** The first pane collapses to collapsedSize when dragged past half its minimum, or with Enter or Home. */
|
|
24
|
+
collapsible?: boolean;
|
|
25
|
+
/** Pixels a collapsed first pane keeps, e.g. 48 for an icon rail the app draws in first. 0 hides the pane. */
|
|
26
|
+
collapsedSize?: number;
|
|
27
|
+
/** Controlled collapsed state; pair with onCollapsedChange. */
|
|
28
|
+
collapsed?: boolean;
|
|
29
|
+
defaultCollapsed?: boolean;
|
|
30
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
31
|
+
/** Every step of a drag or key press. */
|
|
32
|
+
onSizeChange?: (size: number) => void;
|
|
33
|
+
/** Once when a drag ends or a key moves the handle; the place to save the size. */
|
|
34
|
+
onChangeCommit?: (size: number) => void;
|
|
35
|
+
first: ReactNode;
|
|
36
|
+
second: ReactNode;
|
|
37
|
+
className?: string;
|
|
38
|
+
/** Outer size and margins only: padding or a border on the root would shift the panes away from the measured sizes. */
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
id?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Two panes with a handle between them; dragging it or pressing arrow keys, Home, End or Enter resizes the first pane. */
|
|
43
|
+
export declare function KjunSplitPane({ direction, sizeUnit, size, defaultSize, minSize, maxSize, ariaLabel, disabled, collapsible, collapsedSize, collapsed, defaultCollapsed, onCollapsedChange, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type SplitDirection, type SplitMax, type SplitMin, type SplitUnit } from "../../../shared/package-runtime/split-pane.js";
|
|
2
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
3
|
+
export interface KjunSplitPaneProps {
|
|
4
|
+
/** horizontal puts the panes side by side; vertical stacks them and needs a height from its parent. */
|
|
5
|
+
direction?: SplitDirection;
|
|
6
|
+
/**
|
|
7
|
+
* "ratio": sizes are the first pane's share (0–1) of the room beside the handle, so the split keeps its proportion as
|
|
8
|
+
* the container resizes. "px": sizes are the first pane's pixels, so a side list keeps its width.
|
|
9
|
+
*/
|
|
10
|
+
sizeUnit?: SplitUnit;
|
|
11
|
+
/** Controlled size of the first pane in sizeUnit; pair with onSizeChange. */
|
|
12
|
+
size?: number;
|
|
13
|
+
/** The starting size without size, and the size a double press (or Enter, when the pane does not collapse) restores. Half the room without it. */
|
|
14
|
+
defaultSize?: number;
|
|
15
|
+
/** Smallest pixels of the first and second pane. A minimum beats the size and the maximums. */
|
|
16
|
+
minSize?: SplitMin;
|
|
17
|
+
/** Largest pixels of the first and second pane; null leaves a pane unlimited. */
|
|
18
|
+
maxSize?: SplitMax;
|
|
19
|
+
/** Names the handle, e.g. "메시지 목록 크기". */
|
|
20
|
+
ariaLabel: string;
|
|
21
|
+
/** Keeps the split where it is: the handle takes no pointer, key or focus. */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** The first pane collapses to collapsedSize when dragged past half its minimum, or with Enter or Home. */
|
|
24
|
+
collapsible?: boolean;
|
|
25
|
+
/** Pixels a collapsed first pane keeps, e.g. 48 for an icon rail the app draws in first. 0 hides the pane. */
|
|
26
|
+
collapsedSize?: number;
|
|
27
|
+
/** Controlled collapsed state; pair with onCollapsedChange. */
|
|
28
|
+
collapsed?: boolean;
|
|
29
|
+
defaultCollapsed?: boolean;
|
|
30
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
31
|
+
/** Every step of a drag or key press. */
|
|
32
|
+
onSizeChange?: (size: number) => void;
|
|
33
|
+
/** Once when a drag ends or a key moves the handle; the place to save the size. */
|
|
34
|
+
onChangeCommit?: (size: number) => void;
|
|
35
|
+
first: ReactNode;
|
|
36
|
+
second: ReactNode;
|
|
37
|
+
className?: string;
|
|
38
|
+
/** Outer size and margins only: padding or a border on the root would shift the panes away from the measured sizes. */
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
id?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Two panes with a handle between them; dragging it or pressing arrow keys, Home, End or Enter resizes the first pane. */
|
|
43
|
+
export declare function KjunSplitPane({ direction, sizeUnit, size, defaultSize, minSize, maxSize, ariaLabel, disabled, collapsible, collapsedSize, collapsed, defaultCollapsed, onCollapsedChange, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type StackedItem } from "../../../shared/package-runtime/distribution.cjs";
|
|
2
|
+
import type { CSSProperties } from "react";
|
|
3
|
+
export type KjunStackedBarItem = StackedItem;
|
|
4
|
+
export interface KjunStackedBarProps {
|
|
5
|
+
/** The parts in order. No items, or only missing values, draws the empty rail with the missing mark and no legend; values that add up to 0 draw the empty rail. */
|
|
6
|
+
items: readonly StackedItem[] | null | undefined;
|
|
7
|
+
/** Shown above the bar and read first. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** The accessible name when there is no visible label, or a fuller one than it. */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** The app's summary at the end of the caption line, such as a total or a verdict; read after the name. Data that is missing shows missingText there instead. */
|
|
12
|
+
valueText?: string;
|
|
13
|
+
size?: "sm" | "md";
|
|
14
|
+
/** Each part's colour, name, value and share under the bar, so parts are not told apart by colour alone. */
|
|
15
|
+
legend?: boolean;
|
|
16
|
+
formatValue?: (value: number) => string;
|
|
17
|
+
/** Shown for missing data and for a part without a value; defaults to an em dash. */
|
|
18
|
+
missingText?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
id?: string;
|
|
22
|
+
}
|
|
23
|
+
/** The parts of a whole: each segment is as long as its share. It shows a breakdown; it is not a control. */
|
|
24
|
+
export declare function KjunStackedBar({ items, label, ariaLabel, valueText, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type StackedItem } from "../../../shared/package-runtime/distribution.js";
|
|
2
|
+
import type { CSSProperties } from "react";
|
|
3
|
+
export type KjunStackedBarItem = StackedItem;
|
|
4
|
+
export interface KjunStackedBarProps {
|
|
5
|
+
/** The parts in order. No items, or only missing values, draws the empty rail with the missing mark and no legend; values that add up to 0 draw the empty rail. */
|
|
6
|
+
items: readonly StackedItem[] | null | undefined;
|
|
7
|
+
/** Shown above the bar and read first. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** The accessible name when there is no visible label, or a fuller one than it. */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** The app's summary at the end of the caption line, such as a total or a verdict; read after the name. Data that is missing shows missingText there instead. */
|
|
12
|
+
valueText?: string;
|
|
13
|
+
size?: "sm" | "md";
|
|
14
|
+
/** Each part's colour, name, value and share under the bar, so parts are not told apart by colour alone. */
|
|
15
|
+
legend?: boolean;
|
|
16
|
+
formatValue?: (value: number) => string;
|
|
17
|
+
/** Shown for missing data and for a part without a value; defaults to an em dash. */
|
|
18
|
+
missingText?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
id?: string;
|
|
22
|
+
}
|
|
23
|
+
/** The parts of a whole: each segment is as long as its share. It shows a breakdown; it is not a control. */
|
|
24
|
+
export declare function KjunStackedBar({ items, label, ariaLabel, valueText, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
|