@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,48 +1,95 @@
|
|
|
1
1
|
import { type CardRadius } from "@kjun-ui/tokens";
|
|
2
|
-
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
import { type CSSProperties, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
import { type ListChoiceValue, type ListGroupVariant, type ListSectionVariant, type ListSelectionMode } from "../../../shared/package-runtime/list-row.cjs";
|
|
4
|
+
import { type KjunListReorderControls, type KjunListReorderMove } from "./reorder-controls.cjs";
|
|
5
|
+
import { type ListLeadingSize } from "../../../shared/package-runtime/list-leading.cjs";
|
|
6
|
+
export type { ListChoiceValue, ListGroupVariant, ListSectionVariant, ListTrailingPosition } from "../../../shared/package-runtime/list-row.cjs";
|
|
7
|
+
export type { ListLeadingSize } from "../../../shared/package-runtime/list-leading.cjs";
|
|
8
|
+
export type { KjunListReorderControls, KjunListReorderMove } from "./reorder-controls.cjs";
|
|
3
9
|
export interface KjunListRowProps {
|
|
4
10
|
title: string;
|
|
5
11
|
description?: string;
|
|
6
|
-
/**
|
|
12
|
+
/** Content after the title, centered on its first line, such as a KjunBadge ("New", a count); a screen reader hears it with the title. */
|
|
13
|
+
badge?: ReactNode;
|
|
14
|
+
/** Icon name drawn in a 24px column (on a 40px rounded square in an open section); custom `leading` content uses a minimum 40px column and takes priority. */
|
|
7
15
|
icon?: string;
|
|
16
|
+
/** Leading square/icon sizes: xs 24/16, sm 32/20, md 40/24, lg 56/28. Custom content keeps its own size. */
|
|
17
|
+
leadingSize?: ListLeadingSize;
|
|
18
|
+
/** App-owned CSS color for the built-in icon; overrides its default/destructive color. */
|
|
19
|
+
iconColor?: string;
|
|
20
|
+
/** App-owned circular background color for the built-in icon; defaults leadingSize to sm. */
|
|
21
|
+
iconBackground?: string;
|
|
8
22
|
leading?: ReactNode;
|
|
9
23
|
trailing?: ReactNode;
|
|
10
24
|
actions?: ReactNode;
|
|
11
25
|
href?: string;
|
|
26
|
+
/** Where the trailing value sits: "side" (default) is a column beside the whole text; "title" puts it on the title line, so the
|
|
27
|
+
* description and children keep the full text width whatever the value's length (rows with a budget bar line up);
|
|
28
|
+
* "below" gives it its own line under the title across the text width, for long values such as an address. */
|
|
29
|
+
trailingPosition?: "side" | "title" | "below";
|
|
30
|
+
/** Where a link row opens, e.g. "_blank" for a new tab; a new tab gets rel="noopener noreferrer" unless rel is given. */
|
|
31
|
+
target?: string;
|
|
32
|
+
/** The link's rel; by default "noopener noreferrer" for target="_blank". */
|
|
33
|
+
rel?: string;
|
|
12
34
|
disabled?: boolean;
|
|
13
35
|
/** Draws the title in the danger role, for rows such as "Delete account". */
|
|
14
36
|
destructive?: boolean;
|
|
37
|
+
/** The row the list leads to, such as a total or a balance: the title one weight up and the value in the large number
|
|
38
|
+
* type, size and weight only. One or two per section; a details section keeps a little more room above it when it is last. */
|
|
39
|
+
emphasized?: boolean;
|
|
15
40
|
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
16
41
|
chevron?: boolean;
|
|
17
|
-
/**
|
|
42
|
+
/** The item open now, such as the message shown beside its list or the settings page in view: the row takes the
|
|
43
|
+
* selected fill and its link or button aria-current ("page" on a link). Not for switch or choice rows. */
|
|
44
|
+
current?: boolean;
|
|
45
|
+
/** One choice in a single-choice list: true draws a check at the end (in an open section or a multiple-choice list, a filled mark; unchosen rows an empty one). A pressable row given it (true or false) reads as a radio. */
|
|
18
46
|
selected?: boolean;
|
|
19
47
|
/** Makes the whole row a switch: it draws one at the end and toggles on any press. */
|
|
20
48
|
checked?: boolean;
|
|
21
49
|
onCheckedChange?: (checked: boolean) => void;
|
|
50
|
+
/** The row's last press is still being handled (such as a switch saving): presses (and a link's navigation) are ignored, the row reads as busy and draws a spinner, in a switch row's thumb or in place of its mark, check or chevron. */
|
|
51
|
+
busy?: boolean;
|
|
52
|
+
/** This row's value in a section that owns its selection (`value` on the section): it is selected when the section's value holds it. */
|
|
53
|
+
value?: ListChoiceValue;
|
|
22
54
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
23
55
|
/** Name of a pressable or link row, e.g. with the amount a screen reader should hear. */
|
|
24
56
|
ariaLabel?: string;
|
|
25
57
|
/** Display-only content under the description (a budget bar); no buttons or links inside a pressable row. */
|
|
26
58
|
children?: ReactNode;
|
|
59
|
+
/** Makes the row open its own content: the row is a button that reports the next state, and ends with a chevron that turns over when open.
|
|
60
|
+
* Not with href, checked, selected or chevron. */
|
|
61
|
+
expanded?: boolean;
|
|
62
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
63
|
+
/** Shown under the row while expanded, from the line the title starts on. It is outside the button, so it may hold buttons and links. */
|
|
64
|
+
expandedContent?: ReactNode;
|
|
27
65
|
/** Clamps the title (and the description) to this many lines, ending in an ellipsis. */
|
|
28
66
|
titleLines?: number;
|
|
29
67
|
descriptionLines?: number;
|
|
30
68
|
}
|
|
31
|
-
export declare function KjunListRow({ title, description, icon, leading, trailing, actions, href, disabled, destructive, chevron, selected, checked, onCheckedChange, onClick, ariaLabel, children, titleLines, descriptionLines }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare function KjunListRow({ title, description, badge, icon, leadingSize, iconColor, iconBackground, leading, trailing, trailingPosition, actions, href, target, rel, disabled, destructive, emphasized, chevron, current, selected: ownSelected, checked, onCheckedChange, busy, value, onClick: ownClick, ariaLabel, children, titleLines, descriptionLines, expanded, onExpandedChange, expandedContent }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
32
70
|
export interface KjunListSectionProps {
|
|
33
71
|
title?: string;
|
|
34
72
|
description?: string;
|
|
35
73
|
actions?: ReactNode;
|
|
36
74
|
children?: ReactNode;
|
|
37
75
|
ariaLabel?: string;
|
|
76
|
+
/** A short mark after the title, such as a KjunBadge with the row count; centered on the title's first line and read with the title as the list's name. */
|
|
77
|
+
badge?: ReactNode;
|
|
78
|
+
/** id, class and style of the root section. */
|
|
79
|
+
id?: string;
|
|
80
|
+
className?: string;
|
|
81
|
+
style?: CSSProperties;
|
|
38
82
|
/** Paints the surface background (default true); false lets the page background show through. */
|
|
39
83
|
surface?: boolean;
|
|
40
|
-
/** Draws dividers between rows (default true). */
|
|
84
|
+
/** Draws dividers between rows (default true; false in a details section). An open section draws none; giving it true warns in development. */
|
|
41
85
|
divider?: boolean;
|
|
42
|
-
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
86
|
+
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. A details section keeps its own 32px rows. */
|
|
43
87
|
density?: "default" | "compact";
|
|
44
|
-
/** Rounds the
|
|
88
|
+
/** Rounds the rows into a card on the card radius steps; the title, actions and footer stay outside it (default "none", or the KjunListGroup's). An open section has no card. */
|
|
45
89
|
radius?: CardRadius;
|
|
90
|
+
/** "open" puts the rows on the page with no card or dividers: larger titles, icons on rounded squares, and a filled mark for the chosen row (default "default", or "open" in an open KjunListGroup).
|
|
91
|
+
* "details" is for rows that are read, not pressed ("Payment method / Visa"): 32 tall, no dividers, the label secondary and the value in the text color with the room the label leaves. */
|
|
92
|
+
variant?: ListSectionVariant;
|
|
46
93
|
/** "title" is the 16px heading, "label" the small caption above the rows; by default a title with a description is a heading and one without is a label. */
|
|
47
94
|
titleVariant?: "title" | "label";
|
|
48
95
|
/** Heading level of the title (default 3). */
|
|
@@ -51,15 +98,41 @@ export interface KjunListSectionProps {
|
|
|
51
98
|
empty?: ReactNode;
|
|
52
99
|
/** Supporting text under the rows, such as what a setting applies to. */
|
|
53
100
|
footer?: ReactNode;
|
|
101
|
+
/** Shown in place of the rows (and the empty content) while they load, such as a KjunListSkeleton with variant "row". */
|
|
102
|
+
loading?: ReactNode;
|
|
103
|
+
/** "single": the rows are one choice and the list a radio group with one Tab stop and arrow keys; "multiple": each row is a checkbox. Rows are choices when given `selected`, or a `value` with the section's `value`. */
|
|
104
|
+
selectionMode?: ListSelectionMode;
|
|
105
|
+
/** The chosen rows' values, owned by the app: one value (null for none) with "single", a list with "multiple". */
|
|
106
|
+
value?: ListChoiceValue | null | ListChoiceValue[];
|
|
107
|
+
/** Called with the next value (a list with "multiple") when a row with a `value` is pressed. */
|
|
108
|
+
onValueChange?: (value: ListChoiceValue | ListChoiceValue[]) => void;
|
|
109
|
+
/** Rows listed in `order` get up and down buttons. The app keeps the order, renders its rows in it and saves it. */
|
|
110
|
+
reorderable?: boolean;
|
|
111
|
+
/** The row values in the order shown; a row whose value is not listed cannot move. */
|
|
112
|
+
order?: readonly ListChoiceValue[];
|
|
113
|
+
/** Called with the next order when a row moves; the app applies it. */
|
|
114
|
+
onOrderChange?: (order: ListChoiceValue[]) => void;
|
|
115
|
+
/** The same move in detail: the row's value, where it was and where it went. */
|
|
116
|
+
onReorder?: (move: KjunListReorderMove) => void;
|
|
117
|
+
/** "buttons" (default): up and down buttons; "handle": a grip that drags with a pointer and is grabbed with Enter or Space, then moved with the arrow keys; "both". */
|
|
118
|
+
reorderControls?: KjunListReorderControls;
|
|
119
|
+
/** Turns the move controls off, such as while the list is sorted by a rule. */
|
|
120
|
+
reorderDisabled?: boolean;
|
|
121
|
+
/** Why moving is off, shown under the rows and read with the buttons. */
|
|
122
|
+
reorderDisabledText?: string;
|
|
54
123
|
}
|
|
55
|
-
export declare function KjunListSection({ title, description, actions, children, ariaLabel, surface, divider, density, radius, titleVariant, headingLevel, empty, footer }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
export declare function KjunListSection({ title, description, badge, id: rootId, className, style, actions, children, ariaLabel, surface, divider: dividerProp, density, radius, titleVariant, headingLevel, empty, footer, loading, selectionMode, value, onValueChange, variant, reorderable, order, onOrderChange, onReorder, reorderControls, reorderDisabled, reorderDisabledText }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
56
125
|
export interface KjunListGroupProps {
|
|
57
|
-
/**
|
|
58
|
-
|
|
126
|
+
/** id, class and style of the root. */
|
|
127
|
+
id?: string;
|
|
128
|
+
className?: string;
|
|
129
|
+
style?: CSSProperties;
|
|
130
|
+
/** "inset" (default) rounds every section and keeps them 24px apart; "flush" keeps square sections 8px apart; "open" puts every section's rows on the page with no card or dividers, 20px apart. */
|
|
131
|
+
variant?: ListGroupVariant;
|
|
59
132
|
children: ReactNode;
|
|
60
133
|
}
|
|
61
134
|
/** Stacks KjunListSections with one spacing and corner rule, so sections never set radius or gaps one by one. */
|
|
62
|
-
export declare function KjunListGroup({ variant, children }: KjunListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
export declare function KjunListGroup({ variant, children, id, className, style }: KjunListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
63
136
|
export interface KjunListItemProps {
|
|
64
137
|
children: ReactNode;
|
|
65
138
|
}
|
|
@@ -1,48 +1,95 @@
|
|
|
1
1
|
import { type CardRadius } from "@kjun-ui/tokens";
|
|
2
|
-
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
import { type CSSProperties, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
import { type ListChoiceValue, type ListGroupVariant, type ListSectionVariant, type ListSelectionMode } from "../../../shared/package-runtime/list-row.js";
|
|
4
|
+
import { type KjunListReorderControls, type KjunListReorderMove } from "./reorder-controls.js";
|
|
5
|
+
import { type ListLeadingSize } from "../../../shared/package-runtime/list-leading.js";
|
|
6
|
+
export type { ListChoiceValue, ListGroupVariant, ListSectionVariant, ListTrailingPosition } from "../../../shared/package-runtime/list-row.js";
|
|
7
|
+
export type { ListLeadingSize } from "../../../shared/package-runtime/list-leading.js";
|
|
8
|
+
export type { KjunListReorderControls, KjunListReorderMove } from "./reorder-controls.js";
|
|
3
9
|
export interface KjunListRowProps {
|
|
4
10
|
title: string;
|
|
5
11
|
description?: string;
|
|
6
|
-
/**
|
|
12
|
+
/** Content after the title, centered on its first line, such as a KjunBadge ("New", a count); a screen reader hears it with the title. */
|
|
13
|
+
badge?: ReactNode;
|
|
14
|
+
/** Icon name drawn in a 24px column (on a 40px rounded square in an open section); custom `leading` content uses a minimum 40px column and takes priority. */
|
|
7
15
|
icon?: string;
|
|
16
|
+
/** Leading square/icon sizes: xs 24/16, sm 32/20, md 40/24, lg 56/28. Custom content keeps its own size. */
|
|
17
|
+
leadingSize?: ListLeadingSize;
|
|
18
|
+
/** App-owned CSS color for the built-in icon; overrides its default/destructive color. */
|
|
19
|
+
iconColor?: string;
|
|
20
|
+
/** App-owned circular background color for the built-in icon; defaults leadingSize to sm. */
|
|
21
|
+
iconBackground?: string;
|
|
8
22
|
leading?: ReactNode;
|
|
9
23
|
trailing?: ReactNode;
|
|
10
24
|
actions?: ReactNode;
|
|
11
25
|
href?: string;
|
|
26
|
+
/** Where the trailing value sits: "side" (default) is a column beside the whole text; "title" puts it on the title line, so the
|
|
27
|
+
* description and children keep the full text width whatever the value's length (rows with a budget bar line up);
|
|
28
|
+
* "below" gives it its own line under the title across the text width, for long values such as an address. */
|
|
29
|
+
trailingPosition?: "side" | "title" | "below";
|
|
30
|
+
/** Where a link row opens, e.g. "_blank" for a new tab; a new tab gets rel="noopener noreferrer" unless rel is given. */
|
|
31
|
+
target?: string;
|
|
32
|
+
/** The link's rel; by default "noopener noreferrer" for target="_blank". */
|
|
33
|
+
rel?: string;
|
|
12
34
|
disabled?: boolean;
|
|
13
35
|
/** Draws the title in the danger role, for rows such as "Delete account". */
|
|
14
36
|
destructive?: boolean;
|
|
37
|
+
/** The row the list leads to, such as a total or a balance: the title one weight up and the value in the large number
|
|
38
|
+
* type, size and weight only. One or two per section; a details section keeps a little more room above it when it is last. */
|
|
39
|
+
emphasized?: boolean;
|
|
15
40
|
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
16
41
|
chevron?: boolean;
|
|
17
|
-
/**
|
|
42
|
+
/** The item open now, such as the message shown beside its list or the settings page in view: the row takes the
|
|
43
|
+
* selected fill and its link or button aria-current ("page" on a link). Not for switch or choice rows. */
|
|
44
|
+
current?: boolean;
|
|
45
|
+
/** One choice in a single-choice list: true draws a check at the end (in an open section or a multiple-choice list, a filled mark; unchosen rows an empty one). A pressable row given it (true or false) reads as a radio. */
|
|
18
46
|
selected?: boolean;
|
|
19
47
|
/** Makes the whole row a switch: it draws one at the end and toggles on any press. */
|
|
20
48
|
checked?: boolean;
|
|
21
49
|
onCheckedChange?: (checked: boolean) => void;
|
|
50
|
+
/** The row's last press is still being handled (such as a switch saving): presses (and a link's navigation) are ignored, the row reads as busy and draws a spinner, in a switch row's thumb or in place of its mark, check or chevron. */
|
|
51
|
+
busy?: boolean;
|
|
52
|
+
/** This row's value in a section that owns its selection (`value` on the section): it is selected when the section's value holds it. */
|
|
53
|
+
value?: ListChoiceValue;
|
|
22
54
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
23
55
|
/** Name of a pressable or link row, e.g. with the amount a screen reader should hear. */
|
|
24
56
|
ariaLabel?: string;
|
|
25
57
|
/** Display-only content under the description (a budget bar); no buttons or links inside a pressable row. */
|
|
26
58
|
children?: ReactNode;
|
|
59
|
+
/** Makes the row open its own content: the row is a button that reports the next state, and ends with a chevron that turns over when open.
|
|
60
|
+
* Not with href, checked, selected or chevron. */
|
|
61
|
+
expanded?: boolean;
|
|
62
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
63
|
+
/** Shown under the row while expanded, from the line the title starts on. It is outside the button, so it may hold buttons and links. */
|
|
64
|
+
expandedContent?: ReactNode;
|
|
27
65
|
/** Clamps the title (and the description) to this many lines, ending in an ellipsis. */
|
|
28
66
|
titleLines?: number;
|
|
29
67
|
descriptionLines?: number;
|
|
30
68
|
}
|
|
31
|
-
export declare function KjunListRow({ title, description, icon, leading, trailing, actions, href, disabled, destructive, chevron, selected, checked, onCheckedChange, onClick, ariaLabel, children, titleLines, descriptionLines }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare function KjunListRow({ title, description, badge, icon, leadingSize, iconColor, iconBackground, leading, trailing, trailingPosition, actions, href, target, rel, disabled, destructive, emphasized, chevron, current, selected: ownSelected, checked, onCheckedChange, busy, value, onClick: ownClick, ariaLabel, children, titleLines, descriptionLines, expanded, onExpandedChange, expandedContent }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
32
70
|
export interface KjunListSectionProps {
|
|
33
71
|
title?: string;
|
|
34
72
|
description?: string;
|
|
35
73
|
actions?: ReactNode;
|
|
36
74
|
children?: ReactNode;
|
|
37
75
|
ariaLabel?: string;
|
|
76
|
+
/** A short mark after the title, such as a KjunBadge with the row count; centered on the title's first line and read with the title as the list's name. */
|
|
77
|
+
badge?: ReactNode;
|
|
78
|
+
/** id, class and style of the root section. */
|
|
79
|
+
id?: string;
|
|
80
|
+
className?: string;
|
|
81
|
+
style?: CSSProperties;
|
|
38
82
|
/** Paints the surface background (default true); false lets the page background show through. */
|
|
39
83
|
surface?: boolean;
|
|
40
|
-
/** Draws dividers between rows (default true). */
|
|
84
|
+
/** Draws dividers between rows (default true; false in a details section). An open section draws none; giving it true warns in development. */
|
|
41
85
|
divider?: boolean;
|
|
42
|
-
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
86
|
+
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. A details section keeps its own 32px rows. */
|
|
43
87
|
density?: "default" | "compact";
|
|
44
|
-
/** Rounds the
|
|
88
|
+
/** Rounds the rows into a card on the card radius steps; the title, actions and footer stay outside it (default "none", or the KjunListGroup's). An open section has no card. */
|
|
45
89
|
radius?: CardRadius;
|
|
90
|
+
/** "open" puts the rows on the page with no card or dividers: larger titles, icons on rounded squares, and a filled mark for the chosen row (default "default", or "open" in an open KjunListGroup).
|
|
91
|
+
* "details" is for rows that are read, not pressed ("Payment method / Visa"): 32 tall, no dividers, the label secondary and the value in the text color with the room the label leaves. */
|
|
92
|
+
variant?: ListSectionVariant;
|
|
46
93
|
/** "title" is the 16px heading, "label" the small caption above the rows; by default a title with a description is a heading and one without is a label. */
|
|
47
94
|
titleVariant?: "title" | "label";
|
|
48
95
|
/** Heading level of the title (default 3). */
|
|
@@ -51,15 +98,41 @@ export interface KjunListSectionProps {
|
|
|
51
98
|
empty?: ReactNode;
|
|
52
99
|
/** Supporting text under the rows, such as what a setting applies to. */
|
|
53
100
|
footer?: ReactNode;
|
|
101
|
+
/** Shown in place of the rows (and the empty content) while they load, such as a KjunListSkeleton with variant "row". */
|
|
102
|
+
loading?: ReactNode;
|
|
103
|
+
/** "single": the rows are one choice and the list a radio group with one Tab stop and arrow keys; "multiple": each row is a checkbox. Rows are choices when given `selected`, or a `value` with the section's `value`. */
|
|
104
|
+
selectionMode?: ListSelectionMode;
|
|
105
|
+
/** The chosen rows' values, owned by the app: one value (null for none) with "single", a list with "multiple". */
|
|
106
|
+
value?: ListChoiceValue | null | ListChoiceValue[];
|
|
107
|
+
/** Called with the next value (a list with "multiple") when a row with a `value` is pressed. */
|
|
108
|
+
onValueChange?: (value: ListChoiceValue | ListChoiceValue[]) => void;
|
|
109
|
+
/** Rows listed in `order` get up and down buttons. The app keeps the order, renders its rows in it and saves it. */
|
|
110
|
+
reorderable?: boolean;
|
|
111
|
+
/** The row values in the order shown; a row whose value is not listed cannot move. */
|
|
112
|
+
order?: readonly ListChoiceValue[];
|
|
113
|
+
/** Called with the next order when a row moves; the app applies it. */
|
|
114
|
+
onOrderChange?: (order: ListChoiceValue[]) => void;
|
|
115
|
+
/** The same move in detail: the row's value, where it was and where it went. */
|
|
116
|
+
onReorder?: (move: KjunListReorderMove) => void;
|
|
117
|
+
/** "buttons" (default): up and down buttons; "handle": a grip that drags with a pointer and is grabbed with Enter or Space, then moved with the arrow keys; "both". */
|
|
118
|
+
reorderControls?: KjunListReorderControls;
|
|
119
|
+
/** Turns the move controls off, such as while the list is sorted by a rule. */
|
|
120
|
+
reorderDisabled?: boolean;
|
|
121
|
+
/** Why moving is off, shown under the rows and read with the buttons. */
|
|
122
|
+
reorderDisabledText?: string;
|
|
54
123
|
}
|
|
55
|
-
export declare function KjunListSection({ title, description, actions, children, ariaLabel, surface, divider, density, radius, titleVariant, headingLevel, empty, footer }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
export declare function KjunListSection({ title, description, badge, id: rootId, className, style, actions, children, ariaLabel, surface, divider: dividerProp, density, radius, titleVariant, headingLevel, empty, footer, loading, selectionMode, value, onValueChange, variant, reorderable, order, onOrderChange, onReorder, reorderControls, reorderDisabled, reorderDisabledText }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
56
125
|
export interface KjunListGroupProps {
|
|
57
|
-
/**
|
|
58
|
-
|
|
126
|
+
/** id, class and style of the root. */
|
|
127
|
+
id?: string;
|
|
128
|
+
className?: string;
|
|
129
|
+
style?: CSSProperties;
|
|
130
|
+
/** "inset" (default) rounds every section and keeps them 24px apart; "flush" keeps square sections 8px apart; "open" puts every section's rows on the page with no card or dividers, 20px apart. */
|
|
131
|
+
variant?: ListGroupVariant;
|
|
59
132
|
children: ReactNode;
|
|
60
133
|
}
|
|
61
134
|
/** Stacks KjunListSections with one spacing and corner rule, so sections never set radius or gaps one by one. */
|
|
62
|
-
export declare function KjunListGroup({ variant, children }: KjunListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
export declare function KjunListGroup({ variant, children, id, className, style }: KjunListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
63
136
|
export interface KjunListItemProps {
|
|
64
137
|
children: ReactNode;
|
|
65
138
|
}
|
|
@@ -25,6 +25,7 @@ export interface MarketBaseProps<Row extends object> extends QueryDisplayProps {
|
|
|
25
25
|
showFooter?: boolean;
|
|
26
26
|
calculatedAt?: string | null;
|
|
27
27
|
footerNote?: string;
|
|
28
|
+
/** The count in the footer. Default: pagination.total, else the number of rows. */
|
|
28
29
|
totalCount?: number;
|
|
29
30
|
unitLabel?: string;
|
|
30
31
|
formatDate?: (value: string) => string;
|
|
@@ -44,7 +45,8 @@ export interface MarketColumn {
|
|
|
44
45
|
width?: number | string;
|
|
45
46
|
sortable?: boolean;
|
|
46
47
|
defaultSort?: boolean;
|
|
47
|
-
flash
|
|
48
|
+
/** Price columns: true or "text" colours the digits, "background" fills the price for a moment after it moves (KjunPriceCell flash). "price" reads as true; "change" has no effect. */
|
|
49
|
+
flash?: boolean | "text" | "background" | "price" | "change";
|
|
48
50
|
weight?: string;
|
|
49
51
|
/** Sparkline columns: the row field with the reference value (a previous close), drawn as a dotted baseline. */
|
|
50
52
|
baselineKey?: string;
|
|
@@ -57,6 +59,8 @@ export type MarketFormatter<Row extends object> = (value: unknown, format: strin
|
|
|
57
59
|
column?: MarketColumn;
|
|
58
60
|
}) => string;
|
|
59
61
|
export interface KjunMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
62
|
+
/** The rowKey value of the row the app has open (a detail or chart beside the list); it takes the selected fill and aria-current, like MarketTable. */
|
|
63
|
+
activeKey?: unknown;
|
|
60
64
|
priceValue: (row: Row) => number | null;
|
|
61
65
|
changeValue: (row: Row) => number | null;
|
|
62
66
|
changeLoading?: (row: Row) => boolean;
|
|
@@ -76,6 +80,12 @@ export interface KjunMarketTableProps<Row extends object = Record<string, unknow
|
|
|
76
80
|
priceFormatter?: (value: number) => string;
|
|
77
81
|
currency?: string;
|
|
78
82
|
embedded?: boolean;
|
|
83
|
+
/** The toggle and identity columns stay in view while the other columns scroll sideways. Default true. */
|
|
84
|
+
stickyIdentity?: boolean;
|
|
85
|
+
/** false drops the lines between rows; the header keeps its line. Default true. */
|
|
86
|
+
divider?: boolean;
|
|
87
|
+
/** The rowKey value of the row the app has open (a detail beside the table); it takes the selected fill and aria-current. */
|
|
88
|
+
activeKey?: unknown;
|
|
79
89
|
formatMetric?: MarketFormatter<Row>;
|
|
80
90
|
renderCell?: (row: Row, column: MarketColumn) => ReactNode;
|
|
81
91
|
/** The row's quote status after the price column's value. */
|
|
@@ -85,6 +95,8 @@ export interface KjunMarketTableProps<Row extends object = Record<string, unknow
|
|
|
85
95
|
onToggleFavorite?: (row: Row) => void;
|
|
86
96
|
}
|
|
87
97
|
export interface KjunMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
|
|
98
|
+
/** The rowKey value of the row the app has open (a detail or chart beside the list); it takes the selected fill and aria-current, like MarketTable. */
|
|
99
|
+
activeKey?: unknown;
|
|
88
100
|
columns: MarketColumn[];
|
|
89
101
|
sortOrder?: "asc" | "desc";
|
|
90
102
|
currency?: string;
|
|
@@ -25,6 +25,7 @@ export interface MarketBaseProps<Row extends object> extends QueryDisplayProps {
|
|
|
25
25
|
showFooter?: boolean;
|
|
26
26
|
calculatedAt?: string | null;
|
|
27
27
|
footerNote?: string;
|
|
28
|
+
/** The count in the footer. Default: pagination.total, else the number of rows. */
|
|
28
29
|
totalCount?: number;
|
|
29
30
|
unitLabel?: string;
|
|
30
31
|
formatDate?: (value: string) => string;
|
|
@@ -44,7 +45,8 @@ export interface MarketColumn {
|
|
|
44
45
|
width?: number | string;
|
|
45
46
|
sortable?: boolean;
|
|
46
47
|
defaultSort?: boolean;
|
|
47
|
-
flash
|
|
48
|
+
/** Price columns: true or "text" colours the digits, "background" fills the price for a moment after it moves (KjunPriceCell flash). "price" reads as true; "change" has no effect. */
|
|
49
|
+
flash?: boolean | "text" | "background" | "price" | "change";
|
|
48
50
|
weight?: string;
|
|
49
51
|
/** Sparkline columns: the row field with the reference value (a previous close), drawn as a dotted baseline. */
|
|
50
52
|
baselineKey?: string;
|
|
@@ -57,6 +59,8 @@ export type MarketFormatter<Row extends object> = (value: unknown, format: strin
|
|
|
57
59
|
column?: MarketColumn;
|
|
58
60
|
}) => string;
|
|
59
61
|
export interface KjunMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
62
|
+
/** The rowKey value of the row the app has open (a detail or chart beside the list); it takes the selected fill and aria-current, like MarketTable. */
|
|
63
|
+
activeKey?: unknown;
|
|
60
64
|
priceValue: (row: Row) => number | null;
|
|
61
65
|
changeValue: (row: Row) => number | null;
|
|
62
66
|
changeLoading?: (row: Row) => boolean;
|
|
@@ -76,6 +80,12 @@ export interface KjunMarketTableProps<Row extends object = Record<string, unknow
|
|
|
76
80
|
priceFormatter?: (value: number) => string;
|
|
77
81
|
currency?: string;
|
|
78
82
|
embedded?: boolean;
|
|
83
|
+
/** The toggle and identity columns stay in view while the other columns scroll sideways. Default true. */
|
|
84
|
+
stickyIdentity?: boolean;
|
|
85
|
+
/** false drops the lines between rows; the header keeps its line. Default true. */
|
|
86
|
+
divider?: boolean;
|
|
87
|
+
/** The rowKey value of the row the app has open (a detail beside the table); it takes the selected fill and aria-current. */
|
|
88
|
+
activeKey?: unknown;
|
|
79
89
|
formatMetric?: MarketFormatter<Row>;
|
|
80
90
|
renderCell?: (row: Row, column: MarketColumn) => ReactNode;
|
|
81
91
|
/** The row's quote status after the price column's value. */
|
|
@@ -85,6 +95,8 @@ export interface KjunMarketTableProps<Row extends object = Record<string, unknow
|
|
|
85
95
|
onToggleFavorite?: (row: Row) => void;
|
|
86
96
|
}
|
|
87
97
|
export interface KjunMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
|
|
98
|
+
/** The rowKey value of the row the app has open (a detail or chart beside the list); it takes the selected fill and aria-current, like MarketTable. */
|
|
99
|
+
activeKey?: unknown;
|
|
88
100
|
columns: MarketColumn[];
|
|
89
101
|
sortOrder?: "asc" | "desc";
|
|
90
102
|
currency?: string;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { MarketBaseProps } from "./market-model.cjs";
|
|
2
3
|
export declare function MarketIdentity<Row extends object>({ row, props, }: {
|
|
3
4
|
row: Row;
|
|
4
5
|
props: MarketBaseProps<Row>;
|
|
5
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/** A list row: a button only when the app listens for clicks (Enter and Space too), with aria-current on the selected row. */
|
|
8
|
+
export declare function MarketRow<Row extends object>({ row, props, selectedKey, compact, children, }: {
|
|
9
|
+
row: Row;
|
|
10
|
+
props: MarketBaseProps<Row>;
|
|
11
|
+
selectedKey?: unknown;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
15
|
export declare function MarketFooter<Row extends object>({ props, }: {
|
|
7
16
|
props: MarketBaseProps<Row>;
|
|
8
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { MarketBaseProps } from "./market-model.js";
|
|
2
3
|
export declare function MarketIdentity<Row extends object>({ row, props, }: {
|
|
3
4
|
row: Row;
|
|
4
5
|
props: MarketBaseProps<Row>;
|
|
5
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/** A list row: a button only when the app listens for clicks (Enter and Space too), with aria-current on the selected row. */
|
|
8
|
+
export declare function MarketRow<Row extends object>({ row, props, selectedKey, compact, children, }: {
|
|
9
|
+
row: Row;
|
|
10
|
+
props: MarketBaseProps<Row>;
|
|
11
|
+
selectedKey?: unknown;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
15
|
export declare function MarketFooter<Row extends object>({ props, }: {
|
|
7
16
|
props: MarketBaseProps<Row>;
|
|
8
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
1
2
|
export interface KjunMarketTableSkeletonProps {
|
|
2
3
|
columns?: ({
|
|
3
4
|
key?: string;
|
|
@@ -9,5 +10,10 @@ export interface KjunMarketTableSkeletonProps {
|
|
|
9
10
|
showActions?: boolean;
|
|
10
11
|
alignClass?: (align: unknown) => string;
|
|
11
12
|
widthClass?: (column: unknown) => string;
|
|
13
|
+
/** Announces loading to screen readers (a status); the table itself stays silent. */
|
|
14
|
+
loadingText?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
id?: string;
|
|
12
18
|
}
|
|
13
|
-
export declare function KjunMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: KjunMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function KjunMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass, loadingText, className, style, id }: KjunMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
1
2
|
export interface KjunMarketTableSkeletonProps {
|
|
2
3
|
columns?: ({
|
|
3
4
|
key?: string;
|
|
@@ -9,5 +10,10 @@ export interface KjunMarketTableSkeletonProps {
|
|
|
9
10
|
showActions?: boolean;
|
|
10
11
|
alignClass?: (align: unknown) => string;
|
|
11
12
|
widthClass?: (column: unknown) => string;
|
|
13
|
+
/** Announces loading to screen readers (a status); the table itself stays silent. */
|
|
14
|
+
loadingText?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
id?: string;
|
|
12
18
|
}
|
|
13
|
-
export declare function KjunMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: KjunMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function KjunMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass, loadingText, className, style, id }: KjunMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
export type KjunImageShape = "square" | "rounded" | "circle";
|
|
2
3
|
export interface KjunImageProps {
|
|
3
4
|
src?: string;
|
|
4
5
|
alt: string;
|
|
5
6
|
decorative?: boolean;
|
|
6
|
-
|
|
7
|
+
/** Width ÷ height; "auto" lets the loaded image set the height (a missing or failed image stays square). */
|
|
8
|
+
aspectRatio?: number | "auto";
|
|
7
9
|
fit?: "cover" | "contain";
|
|
10
|
+
/** square (default), rounded corners, or a circle. */
|
|
11
|
+
shape?: KjunImageShape;
|
|
8
12
|
fallback?: ReactNode;
|
|
9
13
|
lazy?: boolean;
|
|
10
14
|
onLoad?: () => void;
|
|
11
15
|
onError?: () => void;
|
|
12
16
|
}
|
|
13
|
-
export declare function KjunImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function KjunImage({ src, alt, decorative, aspectRatio, fit, shape, fallback, lazy, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export interface KjunAvatarProps {
|
|
15
19
|
src?: string;
|
|
16
20
|
name?: string;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
export type KjunImageShape = "square" | "rounded" | "circle";
|
|
2
3
|
export interface KjunImageProps {
|
|
3
4
|
src?: string;
|
|
4
5
|
alt: string;
|
|
5
6
|
decorative?: boolean;
|
|
6
|
-
|
|
7
|
+
/** Width ÷ height; "auto" lets the loaded image set the height (a missing or failed image stays square). */
|
|
8
|
+
aspectRatio?: number | "auto";
|
|
7
9
|
fit?: "cover" | "contain";
|
|
10
|
+
/** square (default), rounded corners, or a circle. */
|
|
11
|
+
shape?: KjunImageShape;
|
|
8
12
|
fallback?: ReactNode;
|
|
9
13
|
lazy?: boolean;
|
|
10
14
|
onLoad?: () => void;
|
|
11
15
|
onError?: () => void;
|
|
12
16
|
}
|
|
13
|
-
export declare function KjunImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function KjunImage({ src, alt, decorative, aspectRatio, fit, shape, fallback, lazy, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export interface KjunAvatarProps {
|
|
15
19
|
src?: string;
|
|
16
20
|
name?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonVariant, type InputSize } from "@kjun-ui/tokens";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
+
import { type FocusReturn } from "./floating-panel.cjs";
|
|
3
4
|
export interface KjunFormActionsProps {
|
|
4
5
|
size?: InputSize;
|
|
5
6
|
cancelText?: string;
|
|
@@ -7,14 +8,20 @@ export interface KjunFormActionsProps {
|
|
|
7
8
|
showCancel?: boolean;
|
|
8
9
|
showConfirm?: boolean;
|
|
9
10
|
cancelDisabled?: boolean;
|
|
11
|
+
/** The id of a form elsewhere on the page: the confirm button then submits it (Enter in a field submits it too), so a form in a
|
|
12
|
+
* modal body needs no hidden submit button. Handle the save in the form's submit event. */
|
|
13
|
+
form?: string;
|
|
10
14
|
confirmDisabled?: boolean;
|
|
11
15
|
loading?: boolean;
|
|
12
16
|
variant?: Extract<ButtonVariant, "primary" | "danger" | "success">;
|
|
13
17
|
cancelVariant?: "ghost" | "secondary";
|
|
18
|
+
/** The buttons fill the row: true gives each the same width, "primary" makes the confirm button twice as wide as cancel.
|
|
19
|
+
* Stacked rows are full width either way. */
|
|
20
|
+
fill?: boolean | "primary";
|
|
14
21
|
onCancel?: () => void;
|
|
15
22
|
onConfirm?: () => void;
|
|
16
23
|
}
|
|
17
|
-
export declare function KjunFormActions({ size, cancelText, confirmText, showCancel, showConfirm, cancelDisabled, confirmDisabled, loading, variant, cancelVariant, onCancel, onConfirm, }: KjunFormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunFormActions({ size: requested, cancelText, confirmText, showCancel, showConfirm, cancelDisabled, form, confirmDisabled, loading, variant, cancelVariant, fill, onCancel, onConfirm, }: KjunFormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
25
|
export interface KjunModalProps {
|
|
19
26
|
open: boolean;
|
|
20
27
|
onOpenChange: (open: boolean) => void;
|
|
@@ -34,6 +41,9 @@ export interface KjunModalProps {
|
|
|
34
41
|
showCancelButton?: boolean;
|
|
35
42
|
confirmText?: string;
|
|
36
43
|
cancelText?: string;
|
|
44
|
+
/** The id of a form elsewhere on the page: the confirm button then submits it (Enter in a field submits it too), so a form in a
|
|
45
|
+
* modal body needs no hidden submit button. Handle the save in the form's submit event. */
|
|
46
|
+
form?: string;
|
|
37
47
|
confirmDisabled?: boolean;
|
|
38
48
|
loading?: boolean;
|
|
39
49
|
noPadding?: boolean;
|
|
@@ -46,5 +56,7 @@ export interface KjunModalProps {
|
|
|
46
56
|
ariaLabel?: string;
|
|
47
57
|
/** Id of the element that describes the dialog (e.g. its message), read after its name. */
|
|
48
58
|
ariaDescribedBy?: string;
|
|
59
|
+
/** Read after the exit finishes; a missing target falls back to the opener or parent window. */
|
|
60
|
+
returnFocus?: FocusReturn;
|
|
49
61
|
}
|
|
50
|
-
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
62
|
+
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, form, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, returnFocus, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonVariant, type InputSize } from "@kjun-ui/tokens";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
+
import { type FocusReturn } from "./floating-panel.js";
|
|
3
4
|
export interface KjunFormActionsProps {
|
|
4
5
|
size?: InputSize;
|
|
5
6
|
cancelText?: string;
|
|
@@ -7,14 +8,20 @@ export interface KjunFormActionsProps {
|
|
|
7
8
|
showCancel?: boolean;
|
|
8
9
|
showConfirm?: boolean;
|
|
9
10
|
cancelDisabled?: boolean;
|
|
11
|
+
/** The id of a form elsewhere on the page: the confirm button then submits it (Enter in a field submits it too), so a form in a
|
|
12
|
+
* modal body needs no hidden submit button. Handle the save in the form's submit event. */
|
|
13
|
+
form?: string;
|
|
10
14
|
confirmDisabled?: boolean;
|
|
11
15
|
loading?: boolean;
|
|
12
16
|
variant?: Extract<ButtonVariant, "primary" | "danger" | "success">;
|
|
13
17
|
cancelVariant?: "ghost" | "secondary";
|
|
18
|
+
/** The buttons fill the row: true gives each the same width, "primary" makes the confirm button twice as wide as cancel.
|
|
19
|
+
* Stacked rows are full width either way. */
|
|
20
|
+
fill?: boolean | "primary";
|
|
14
21
|
onCancel?: () => void;
|
|
15
22
|
onConfirm?: () => void;
|
|
16
23
|
}
|
|
17
|
-
export declare function KjunFormActions({ size, cancelText, confirmText, showCancel, showConfirm, cancelDisabled, confirmDisabled, loading, variant, cancelVariant, onCancel, onConfirm, }: KjunFormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunFormActions({ size: requested, cancelText, confirmText, showCancel, showConfirm, cancelDisabled, form, confirmDisabled, loading, variant, cancelVariant, fill, onCancel, onConfirm, }: KjunFormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
25
|
export interface KjunModalProps {
|
|
19
26
|
open: boolean;
|
|
20
27
|
onOpenChange: (open: boolean) => void;
|
|
@@ -34,6 +41,9 @@ export interface KjunModalProps {
|
|
|
34
41
|
showCancelButton?: boolean;
|
|
35
42
|
confirmText?: string;
|
|
36
43
|
cancelText?: string;
|
|
44
|
+
/** The id of a form elsewhere on the page: the confirm button then submits it (Enter in a field submits it too), so a form in a
|
|
45
|
+
* modal body needs no hidden submit button. Handle the save in the form's submit event. */
|
|
46
|
+
form?: string;
|
|
37
47
|
confirmDisabled?: boolean;
|
|
38
48
|
loading?: boolean;
|
|
39
49
|
noPadding?: boolean;
|
|
@@ -46,5 +56,7 @@ export interface KjunModalProps {
|
|
|
46
56
|
ariaLabel?: string;
|
|
47
57
|
/** Id of the element that describes the dialog (e.g. its message), read after its name. */
|
|
48
58
|
ariaDescribedBy?: string;
|
|
59
|
+
/** Read after the exit finishes; a missing target falls back to the opener or parent window. */
|
|
60
|
+
returnFocus?: FocusReturn;
|
|
49
61
|
}
|
|
50
|
-
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
62
|
+
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, form, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, returnFocus, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|