@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "../../../shared/package-runtime/steps.cjs";
|
|
2
|
+
import { type CSSProperties } from "react";
|
|
3
|
+
export type { KjunStepItem, KjunStepStatus, KjunStepsCurrentStatus, KjunStepsLayout, KjunStepsSelectable };
|
|
4
|
+
export interface KjunStepsProps {
|
|
5
|
+
/** The steps in order. Two or more. */
|
|
6
|
+
items: KjunStepItem[];
|
|
7
|
+
/** Index of the current step, counted from 0. items.length means every step is complete. */
|
|
8
|
+
current: number;
|
|
9
|
+
/** error marks the current step as failed (a failed payment, a failed delivery). */
|
|
10
|
+
currentStatus?: KjunStepsCurrentStatus;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
/** Horizontal only. auto folds to a compact header and bare markers when the container is narrower than 80px per step. */
|
|
13
|
+
layout?: KjunStepsLayout;
|
|
14
|
+
/** Names the list; defaults to the "진행 단계" message. */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** Makes steps buttons in the wide horizontal layout and in the vertical one: completed ones, or with selectable="all" every step but the current one. */
|
|
17
|
+
onStepSelect?: (index: number) => void;
|
|
18
|
+
/** "complete" (default) lets onStepSelect go back only; "all" also lets it skip ahead to a later step. */
|
|
19
|
+
selectable?: KjunStepsSelectable;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
id?: string;
|
|
23
|
+
[data: `data-${string}`]: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Progress through an ordered flow: a wizard, a checkout, a delivery trail. */
|
|
26
|
+
export declare function KjunSteps({ items, current, currentStatus, orientation, layout, ariaLabel, onStepSelect, selectable, className, style, id, ...rest }: KjunStepsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "../../../shared/package-runtime/steps.js";
|
|
2
|
+
import { type CSSProperties } from "react";
|
|
3
|
+
export type { KjunStepItem, KjunStepStatus, KjunStepsCurrentStatus, KjunStepsLayout, KjunStepsSelectable };
|
|
4
|
+
export interface KjunStepsProps {
|
|
5
|
+
/** The steps in order. Two or more. */
|
|
6
|
+
items: KjunStepItem[];
|
|
7
|
+
/** Index of the current step, counted from 0. items.length means every step is complete. */
|
|
8
|
+
current: number;
|
|
9
|
+
/** error marks the current step as failed (a failed payment, a failed delivery). */
|
|
10
|
+
currentStatus?: KjunStepsCurrentStatus;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
/** Horizontal only. auto folds to a compact header and bare markers when the container is narrower than 80px per step. */
|
|
13
|
+
layout?: KjunStepsLayout;
|
|
14
|
+
/** Names the list; defaults to the "진행 단계" message. */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** Makes steps buttons in the wide horizontal layout and in the vertical one: completed ones, or with selectable="all" every step but the current one. */
|
|
17
|
+
onStepSelect?: (index: number) => void;
|
|
18
|
+
/** "complete" (default) lets onStepSelect go back only; "all" also lets it skip ahead to a later step. */
|
|
19
|
+
selectable?: KjunStepsSelectable;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
id?: string;
|
|
23
|
+
[data: `data-${string}`]: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Progress through an ordered flow: a wizard, a checkout, a delivery trail. */
|
|
26
|
+
export declare function KjunSteps({ items, current, currentStatus, orientation, layout, ariaLabel, onStepSelect, selectable, className, style, id, ...rest }: KjunStepsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import type { KeyboardEvent
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ariaLabel: string;
|
|
6
|
-
customClass: (row: Row, index: number) => string;
|
|
7
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
8
|
-
}
|
|
9
|
-
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
10
|
-
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
11
|
-
export declare function TableCards<Row extends object>(props: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import type { KeyboardEvent } from "react";
|
|
2
|
+
import type { TableCardsProps, TableViewParts } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
+
export type TableNarrowProps<Row extends object> = TableCardsProps<Row> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableCards<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import type { KeyboardEvent
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ariaLabel: string;
|
|
6
|
-
customClass: (row: Row, index: number) => string;
|
|
7
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
8
|
-
}
|
|
9
|
-
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
10
|
-
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
11
|
-
export declare function TableCards<Row extends object>(props: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import type { KeyboardEvent } from "react";
|
|
2
|
+
import type { TableCardsProps, TableViewParts } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
+
export type TableNarrowProps<Row extends object> = TableCardsProps<Row> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableCards<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type KeyboardEvent } from "react";
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function TableGrid<Row extends object>({ initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { type TableGridProps, type TableViewParts } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
+
type Props<Row extends object> = TableGridProps<Row, CSSProperties["maxHeight"]> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableGrid<Row extends object>({ columnGroups, cellSpan, mover, initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, edgeInset, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
9
5
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type KeyboardEvent } from "react";
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function TableGrid<Row extends object>({ initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
import { type TableGridProps, type TableViewParts } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
+
type Props<Row extends object> = TableGridProps<Row, CSSProperties["maxHeight"]> & TableViewParts<Row, KeyboardEvent<HTMLElement>>;
|
|
4
|
+
export declare function TableGrid<Row extends object>({ columnGroups, cellSpan, mover, initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown, groups, collapsed, toggleGroup, groupLabel, summary, edgeInset, stickyOffset }: Props<Row>): import("react/jsx-runtime").JSX.Element;
|
|
9
5
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TableCardsProps } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
+
import type { TableRowGroup } from "../../../shared/package-runtime/table-groups.cjs";
|
|
4
|
+
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
5
|
+
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TableCardsProps } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
+
import type { TableRowGroup } from "../../../shared/package-runtime/table-groups.js";
|
|
4
|
+
/** Groups as labelled groups, each a header line over its own list; ungrouped rows stay one list. */
|
|
5
|
+
export declare function useTableGroups<Row extends object>({ groupLabel, groupTotals, state, collapsed, toggleGroup }: Pick<TableCardsProps<Row>, "groupLabel" | "groupTotals" | "state" | "collapsed" | "toggleGroup">, className: string, itemsClass: string | undefined, item: (row: Row, index: number) => ReactNode): (list: TableRowGroup<Row>[]) => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TableCardsProps } from "../../../shared/package-runtime/table-presentation.cjs";
|
|
3
|
-
interface Props<Row extends object> extends TableCardsProps<Row> {
|
|
4
|
-
ariaLabel: string;
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
1
|
+
import type { TableNarrowProps } from "./table-cards.cjs";
|
|
8
2
|
/** responsive="list": no header row; each row is a title over one meta line with its value and badges at the end. */
|
|
9
|
-
export declare function TableList<Row extends object>(props:
|
|
10
|
-
export {};
|
|
3
|
+
export declare function TableList<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TableCardsProps } from "../../../shared/package-runtime/table-presentation.js";
|
|
3
|
-
interface Props<Row extends object> extends TableCardsProps<Row> {
|
|
4
|
-
ariaLabel: string;
|
|
5
|
-
customClass: (row: Row, index: number) => string;
|
|
6
|
-
rowKeyDown: (event: KeyboardEvent<HTMLElement>, row: Row, index: number) => void;
|
|
7
|
-
}
|
|
1
|
+
import type { TableNarrowProps } from "./table-cards.js";
|
|
8
2
|
/** responsive="list": no header row; each row is a title over one meta line with its value and badges at the end. */
|
|
9
|
-
export declare function TableList<Row extends object>(props:
|
|
10
|
-
export {};
|
|
3
|
+
export declare function TableList<Row extends object>(props: TableNarrowProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,14 +10,18 @@ export declare function useTableModel<Row extends object>(props: KjunTableProps<
|
|
|
10
10
|
key: (row: Row, index?: number) => string | number;
|
|
11
11
|
sort: import("@kjun-ui/tokens").TableSort;
|
|
12
12
|
search: string;
|
|
13
|
+
selected: Row[];
|
|
13
14
|
all: boolean;
|
|
14
15
|
some: boolean;
|
|
16
|
+
selectableCount: number;
|
|
15
17
|
selectedRow: (row: Row) => boolean;
|
|
18
|
+
selectableRow: (row: Row) => boolean;
|
|
16
19
|
expanded: (string | number)[];
|
|
17
20
|
searchChange: (q: string) => void;
|
|
18
21
|
sortColumn: (col: import("./table-model.cjs").TableColumn<Row>) => void;
|
|
19
22
|
sortTo: (next: import("@kjun-ui/tokens").TableSort) => void;
|
|
20
|
-
toggleRow: (row: Row) => void
|
|
21
|
-
toggleAll: () => void
|
|
23
|
+
toggleRow: (row: Row) => void;
|
|
24
|
+
toggleAll: () => void;
|
|
25
|
+
clearSelection: () => void;
|
|
22
26
|
toggleExpand: (row: Row, index: number) => void;
|
|
23
27
|
};
|
|
@@ -10,14 +10,18 @@ export declare function useTableModel<Row extends object>(props: KjunTableProps<
|
|
|
10
10
|
key: (row: Row, index?: number) => string | number;
|
|
11
11
|
sort: import("@kjun-ui/tokens").TableSort;
|
|
12
12
|
search: string;
|
|
13
|
+
selected: Row[];
|
|
13
14
|
all: boolean;
|
|
14
15
|
some: boolean;
|
|
16
|
+
selectableCount: number;
|
|
15
17
|
selectedRow: (row: Row) => boolean;
|
|
18
|
+
selectableRow: (row: Row) => boolean;
|
|
16
19
|
expanded: (string | number)[];
|
|
17
20
|
searchChange: (q: string) => void;
|
|
18
21
|
sortColumn: (col: import("./table-model.js").TableColumn<Row>) => void;
|
|
19
22
|
sortTo: (next: import("@kjun-ui/tokens").TableSort) => void;
|
|
20
|
-
toggleRow: (row: Row) => void
|
|
21
|
-
toggleAll: () => void
|
|
23
|
+
toggleRow: (row: Row) => void;
|
|
24
|
+
toggleAll: () => void;
|
|
25
|
+
clearSelection: () => void;
|
|
22
26
|
toggleExpand: (row: Row, index: number) => void;
|
|
23
27
|
};
|
|
@@ -21,6 +21,8 @@ export interface KjunTabsProps {
|
|
|
21
21
|
stickyHeader?: boolean;
|
|
22
22
|
/** Top gap of the sticky header: a number in px or a CSS length. */
|
|
23
23
|
stickyOffset?: number | string;
|
|
24
|
+
/** Each TabPane draws its content the first time its tab is selected, then keeps it (hidden) like the others. */
|
|
25
|
+
lazy?: boolean;
|
|
24
26
|
ariaLabel?: string;
|
|
25
27
|
onValueChange?: (value: string) => void;
|
|
26
28
|
onChange?: (value: string) => void;
|
|
@@ -31,7 +33,7 @@ export interface KjunTabsProps {
|
|
|
31
33
|
pointer: "mouse" | "touch";
|
|
32
34
|
}) => void;
|
|
33
35
|
}
|
|
34
|
-
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, lazy, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
35
37
|
export interface KjunTabPaneProps extends TabItem {
|
|
36
38
|
children?: ReactNode;
|
|
37
39
|
}
|
|
@@ -21,6 +21,8 @@ export interface KjunTabsProps {
|
|
|
21
21
|
stickyHeader?: boolean;
|
|
22
22
|
/** Top gap of the sticky header: a number in px or a CSS length. */
|
|
23
23
|
stickyOffset?: number | string;
|
|
24
|
+
/** Each TabPane draws its content the first time its tab is selected, then keeps it (hidden) like the others. */
|
|
25
|
+
lazy?: boolean;
|
|
24
26
|
ariaLabel?: string;
|
|
25
27
|
onValueChange?: (value: string) => void;
|
|
26
28
|
onChange?: (value: string) => void;
|
|
@@ -31,7 +33,7 @@ export interface KjunTabsProps {
|
|
|
31
33
|
pointer: "mouse" | "touch";
|
|
32
34
|
}) => void;
|
|
33
35
|
}
|
|
34
|
-
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function KjunTabs({ value, items, density, variant, fullWidth, actions, children, stickyHeader, stickyOffset, lazy, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
35
37
|
export interface KjunTabPaneProps extends TabItem {
|
|
36
38
|
children?: ReactNode;
|
|
37
39
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { type TextareaSubmitKey } from "../../../shared/package-runtime/textarea.cjs";
|
|
1
|
+
import { type TextareaSubmitKey, type TextareaMaxRows } from "../../../shared/package-runtime/textarea.cjs";
|
|
2
|
+
import type { InputVariant } from "../../../shared/package-runtime/input-variant.cjs";
|
|
2
3
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
3
4
|
import { type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
4
5
|
export interface KjunTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "value" | "onSubmit"> {
|
|
5
6
|
value: string;
|
|
6
7
|
size?: InputSize;
|
|
8
|
+
/** "plain" drops the surface, side border and side inset for text edited in place, such as a note body. */
|
|
9
|
+
variant?: InputVariant;
|
|
7
10
|
error?: boolean;
|
|
8
11
|
/** Manual resizing (default "none"). A field the user can drag taller keeps that height instead of growing with its text. */
|
|
9
12
|
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
10
13
|
ariaLabel?: string;
|
|
11
|
-
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). */
|
|
12
|
-
maxRows?:
|
|
14
|
+
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). "none" grows without a limit. */
|
|
15
|
+
maxRows?: TextareaMaxRows;
|
|
13
16
|
/** Character limit (UTF-16 units, like the attribute); the count shows "length/maxLength" and a longer value reads as an error. */
|
|
14
17
|
maxLength?: number;
|
|
15
18
|
/** Shows the character count inside the field, as "length/maxLength" when maxLength is set. */
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { type TextareaSubmitKey } from "../../../shared/package-runtime/textarea.js";
|
|
1
|
+
import { type TextareaSubmitKey, type TextareaMaxRows } from "../../../shared/package-runtime/textarea.js";
|
|
2
|
+
import type { InputVariant } from "../../../shared/package-runtime/input-variant.js";
|
|
2
3
|
import { type InputSize } from "@kjun-ui/tokens";
|
|
3
4
|
import { type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
4
5
|
export interface KjunTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "value" | "onSubmit"> {
|
|
5
6
|
value: string;
|
|
6
7
|
size?: InputSize;
|
|
8
|
+
/** "plain" drops the surface, side border and side inset for text edited in place, such as a note body. */
|
|
9
|
+
variant?: InputVariant;
|
|
7
10
|
error?: boolean;
|
|
8
11
|
/** Manual resizing (default "none"). A field the user can drag taller keeps that height instead of growing with its text. */
|
|
9
12
|
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
10
13
|
ariaLabel?: string;
|
|
11
|
-
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). */
|
|
12
|
-
maxRows?:
|
|
14
|
+
/** The field grows with its text from rows up to maxRows, then scrolls (default 6; rows keeps it fixed). "none" grows without a limit. */
|
|
15
|
+
maxRows?: TextareaMaxRows;
|
|
13
16
|
/** Character limit (UTF-16 units, like the attribute); the count shows "length/maxLength" and a longer value reads as an error. */
|
|
14
17
|
maxLength?: number;
|
|
15
18
|
/** Shows the character count inside the field, as "length/maxLength" when maxLength is set. */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
import { type TilesGap, type TilesMaxColumns, type TilesMinItem } from "../../../shared/package-runtime/tiles.cjs";
|
|
3
|
+
export type { TilesGap, TilesMaxColumns, TilesMinItem };
|
|
4
|
+
/** Other div attributes (aria-*, data-*, id, events) pass to the root, as on KjunStack; the root keeps role="list". */
|
|
5
|
+
export interface KjunTilesProps extends Omit<HTMLAttributes<HTMLDivElement>, "role" | "children"> {
|
|
6
|
+
/** Space between cells. auto is compact (16) in a container narrower than 768 and regular (24) from it. */
|
|
7
|
+
gap?: TilesGap;
|
|
8
|
+
/** A cell's narrowest width before a column is dropped: sm 160, md 240, lg 320. */
|
|
9
|
+
minItem?: TilesMinItem;
|
|
10
|
+
/** The most columns in a wide container. */
|
|
11
|
+
maxColumns?: TilesMaxColumns;
|
|
12
|
+
ref?: Ref<HTMLDivElement>;
|
|
13
|
+
/** Each child is one cell; false, null and blank strings add none, and fragments count their children. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** Same-width cards read as a list. Columns and gap follow the container, not the screen. Like KjunStack it is not KJUN
|
|
17
|
+
* markup (data attributes, no kjun- class), so app children keep their own styles. */
|
|
18
|
+
export declare function KjunTiles({ gap, minItem, maxColumns, className, children, ...rest }: KjunTilesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
import { type TilesGap, type TilesMaxColumns, type TilesMinItem } from "../../../shared/package-runtime/tiles.js";
|
|
3
|
+
export type { TilesGap, TilesMaxColumns, TilesMinItem };
|
|
4
|
+
/** Other div attributes (aria-*, data-*, id, events) pass to the root, as on KjunStack; the root keeps role="list". */
|
|
5
|
+
export interface KjunTilesProps extends Omit<HTMLAttributes<HTMLDivElement>, "role" | "children"> {
|
|
6
|
+
/** Space between cells. auto is compact (16) in a container narrower than 768 and regular (24) from it. */
|
|
7
|
+
gap?: TilesGap;
|
|
8
|
+
/** A cell's narrowest width before a column is dropped: sm 160, md 240, lg 320. */
|
|
9
|
+
minItem?: TilesMinItem;
|
|
10
|
+
/** The most columns in a wide container. */
|
|
11
|
+
maxColumns?: TilesMaxColumns;
|
|
12
|
+
ref?: Ref<HTMLDivElement>;
|
|
13
|
+
/** Each child is one cell; false, null and blank strings add none, and fragments count their children. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** Same-width cards read as a list. Columns and gap follow the container, not the screen. Like KjunStack it is not KJUN
|
|
17
|
+
* markup (data attributes, no kjun- class), so app children keep their own styles. */
|
|
18
|
+
export declare function KjunTiles({ gap, minItem, maxColumns, className, children, ...rest }: KjunTilesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type HourCycle } from "../../../shared/package-runtime/time-segments.cjs";
|
|
2
|
+
import { type TimeLayout, type TimeTrigger } from "../../../shared/package-runtime/time-wheel.cjs";
|
|
2
3
|
import { type TimePrecision, type InputSize } from "@kjun-ui/tokens";
|
|
4
|
+
export type { TimeLayout, TimeTrigger };
|
|
3
5
|
export interface KjunTimePickerProps {
|
|
4
6
|
value: string | null;
|
|
5
7
|
precision?: TimePrecision;
|
|
@@ -12,15 +14,23 @@ export interface KjunTimePickerProps {
|
|
|
12
14
|
clearable?: boolean;
|
|
13
15
|
size?: InputSize;
|
|
14
16
|
ariaLabel?: string;
|
|
15
|
-
/** 24 (default) shows 00–23; 12 adds an AM/PM
|
|
17
|
+
/** 24 (default) shows 00–23; 12 adds an AM/PM column and shows 1–12. The value stays "HH:mm". */
|
|
16
18
|
hourCycle?: HourCycle;
|
|
19
|
+
/** Where the wheel opens: auto (default) takes a popover on a mouse screen and a bottom sheet on a touch screen;
|
|
20
|
+
* inline shows the wheel in place with no field. */
|
|
21
|
+
layout?: TimeLayout;
|
|
22
|
+
/** The field that opens the wheel: segments (typing digits works; the popover default) or a one-line button (the sheet default). */
|
|
23
|
+
trigger?: TimeTrigger;
|
|
17
24
|
/** Shows the time without changing it. */
|
|
18
25
|
readOnly?: boolean;
|
|
19
26
|
/** Submits the value with a form through a hidden input. */
|
|
20
27
|
name?: string;
|
|
28
|
+
/** The first segment's (or the button's) id, for an outside <label for>; defaults to the FormGroup's id. */
|
|
29
|
+
id?: string;
|
|
21
30
|
/** Stretches the field to its container's width (default false: the field hugs the time). */
|
|
22
31
|
block?: boolean;
|
|
32
|
+
/** Each change: a confirmed wheel, a typed or stepped segment, a cleared field, or a stopped inline column. */
|
|
23
33
|
onValueChange?: (value: string | null) => void;
|
|
24
34
|
onChangeCommit?: (value: string | null) => void;
|
|
25
35
|
}
|
|
26
|
-
export declare function KjunTimePicker({ value, precision, min, max, minuteStep, secondStep, disabled, error, clearable, size, ariaLabel, hourCycle, readOnly, name, block, onValueChange, onChangeCommit }: KjunTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function KjunTimePicker({ value, precision, min, max, minuteStep, secondStep, disabled, error, clearable, size, ariaLabel, hourCycle, layout: layoutProp, trigger: triggerProp, readOnly, name, id, block, onValueChange, onChangeCommit }: KjunTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type HourCycle } from "../../../shared/package-runtime/time-segments.js";
|
|
2
|
+
import { type TimeLayout, type TimeTrigger } from "../../../shared/package-runtime/time-wheel.js";
|
|
2
3
|
import { type TimePrecision, type InputSize } from "@kjun-ui/tokens";
|
|
4
|
+
export type { TimeLayout, TimeTrigger };
|
|
3
5
|
export interface KjunTimePickerProps {
|
|
4
6
|
value: string | null;
|
|
5
7
|
precision?: TimePrecision;
|
|
@@ -12,15 +14,23 @@ export interface KjunTimePickerProps {
|
|
|
12
14
|
clearable?: boolean;
|
|
13
15
|
size?: InputSize;
|
|
14
16
|
ariaLabel?: string;
|
|
15
|
-
/** 24 (default) shows 00–23; 12 adds an AM/PM
|
|
17
|
+
/** 24 (default) shows 00–23; 12 adds an AM/PM column and shows 1–12. The value stays "HH:mm". */
|
|
16
18
|
hourCycle?: HourCycle;
|
|
19
|
+
/** Where the wheel opens: auto (default) takes a popover on a mouse screen and a bottom sheet on a touch screen;
|
|
20
|
+
* inline shows the wheel in place with no field. */
|
|
21
|
+
layout?: TimeLayout;
|
|
22
|
+
/** The field that opens the wheel: segments (typing digits works; the popover default) or a one-line button (the sheet default). */
|
|
23
|
+
trigger?: TimeTrigger;
|
|
17
24
|
/** Shows the time without changing it. */
|
|
18
25
|
readOnly?: boolean;
|
|
19
26
|
/** Submits the value with a form through a hidden input. */
|
|
20
27
|
name?: string;
|
|
28
|
+
/** The first segment's (or the button's) id, for an outside <label for>; defaults to the FormGroup's id. */
|
|
29
|
+
id?: string;
|
|
21
30
|
/** Stretches the field to its container's width (default false: the field hugs the time). */
|
|
22
31
|
block?: boolean;
|
|
32
|
+
/** Each change: a confirmed wheel, a typed or stepped segment, a cleared field, or a stopped inline column. */
|
|
23
33
|
onValueChange?: (value: string | null) => void;
|
|
24
34
|
onChangeCommit?: (value: string | null) => void;
|
|
25
35
|
}
|
|
26
|
-
export declare function KjunTimePicker({ value, precision, min, max, minuteStep, secondStep, disabled, error, clearable, size, ariaLabel, hourCycle, readOnly, name, block, onValueChange, onChangeCommit }: KjunTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function KjunTimePicker({ value, precision, min, max, minuteStep, secondStep, disabled, error, clearable, size, ariaLabel, hourCycle, layout: layoutProp, trigger: triggerProp, readOnly, name, id, block, onValueChange, onChangeCommit }: KjunTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type WheelColumn, type WheelColumnKey } from "../../../shared/package-runtime/time-wheel.cjs";
|
|
2
|
+
export interface TimeWheelProps {
|
|
3
|
+
columns: WheelColumn[];
|
|
4
|
+
label: string;
|
|
5
|
+
labelledBy?: string;
|
|
6
|
+
/** Inline wheels sit on the page: a field fill with a surface band. */
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
/** The column to focus when the wheel appears. */
|
|
11
|
+
focusColumn?: number | null;
|
|
12
|
+
/** The column the person is on: focused or turned. */
|
|
13
|
+
onFocusColumn?: (index: number) => void;
|
|
14
|
+
onPick: (key: WheelColumnKey, value: number) => void;
|
|
15
|
+
onEnter?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/** The hour, minute (and second, AM/PM) columns over one band that marks the chosen time. */
|
|
18
|
+
export declare function TimeWheel({ columns, label, labelledBy, inline, disabled, readOnly, focusColumn, onFocusColumn, onPick, onEnter }: TimeWheelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type WheelColumn, type WheelColumnKey } from "../../../shared/package-runtime/time-wheel.js";
|
|
2
|
+
export interface TimeWheelProps {
|
|
3
|
+
columns: WheelColumn[];
|
|
4
|
+
label: string;
|
|
5
|
+
labelledBy?: string;
|
|
6
|
+
/** Inline wheels sit on the page: a field fill with a surface band. */
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
/** The column to focus when the wheel appears. */
|
|
11
|
+
focusColumn?: number | null;
|
|
12
|
+
/** The column the person is on: focused or turned. */
|
|
13
|
+
onFocusColumn?: (index: number) => void;
|
|
14
|
+
onPick: (key: WheelColumnKey, value: number) => void;
|
|
15
|
+
onEnter?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/** The hour, minute (and second, AM/PM) columns over one band that marks the chosen time. */
|
|
18
|
+
export declare function TimeWheel({ columns, label, labelledBy, inline, disabled, readOnly, focusColumn, onFocusColumn, onPick, onEnter }: TimeWheelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll mode: fades the row's clipped edges and keeps the selected chip in view. In single mode it follows the value;
|
|
3
|
+
* in multiple mode it reveals only on mount, so turning a chip off does not pull the row elsewhere.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useFilterScroll(scroll: boolean, multiple: boolean, value: unknown): import("react").RefObject<HTMLDivElement | null>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll mode: fades the row's clipped edges and keeps the selected chip in view. In single mode it follows the value;
|
|
3
|
+
* in multiple mode it reveals only on mount, so turning a chip off does not pull the row elsewhere.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useFilterScroll(scroll: boolean, multiple: boolean, value: unknown): import("react").RefObject<HTMLDivElement | null>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type GaugeZone } from "../../../shared/package-runtime/distribution.cjs";
|
|
2
|
+
import type { CSSProperties } from "react";
|
|
3
|
+
export type KjunGaugeZone = GaugeZone;
|
|
4
|
+
export interface KjunZoneGaugeProps {
|
|
5
|
+
/** Where the marker sits. null, undefined and non-finite numbers are missing: the axis stays, without zone colours or a marker, and 0 is a real value. */
|
|
6
|
+
value: number | null | undefined;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
/** The axis from min to max in order: each zone ends at `to`, with the app's label and colour. */
|
|
10
|
+
zones: readonly GaugeZone[];
|
|
11
|
+
/** Shown above the axis and read first. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** The accessible name when there is no visible label, or a fuller one than it. */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
size?: "sm" | "md";
|
|
16
|
+
/** Zone names under the axis, so zones are not told apart by colour alone. */
|
|
17
|
+
zoneLabels?: boolean;
|
|
18
|
+
/** The value and its zone name at the end of the caption line. */
|
|
19
|
+
showValue?: boolean;
|
|
20
|
+
formatValue?: (value: number) => string;
|
|
21
|
+
/** Shown in place of the value when it is missing; defaults to an em dash. */
|
|
22
|
+
missingText?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: CSSProperties;
|
|
25
|
+
id?: string;
|
|
26
|
+
}
|
|
27
|
+
/** A value's place on a fixed axis of zones. It shows a reading; it is not a control. */
|
|
28
|
+
export declare function KjunZoneGauge({ value, min, max, zones, label, ariaLabel, size, zoneLabels, showValue, formatValue, missingText, className, style, id }: KjunZoneGaugeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type GaugeZone } from "../../../shared/package-runtime/distribution.js";
|
|
2
|
+
import type { CSSProperties } from "react";
|
|
3
|
+
export type KjunGaugeZone = GaugeZone;
|
|
4
|
+
export interface KjunZoneGaugeProps {
|
|
5
|
+
/** Where the marker sits. null, undefined and non-finite numbers are missing: the axis stays, without zone colours or a marker, and 0 is a real value. */
|
|
6
|
+
value: number | null | undefined;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
/** The axis from min to max in order: each zone ends at `to`, with the app's label and colour. */
|
|
10
|
+
zones: readonly GaugeZone[];
|
|
11
|
+
/** Shown above the axis and read first. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** The accessible name when there is no visible label, or a fuller one than it. */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
size?: "sm" | "md";
|
|
16
|
+
/** Zone names under the axis, so zones are not told apart by colour alone. */
|
|
17
|
+
zoneLabels?: boolean;
|
|
18
|
+
/** The value and its zone name at the end of the caption line. */
|
|
19
|
+
showValue?: boolean;
|
|
20
|
+
formatValue?: (value: number) => string;
|
|
21
|
+
/** Shown in place of the value when it is missing; defaults to an em dash. */
|
|
22
|
+
missingText?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: CSSProperties;
|
|
25
|
+
id?: string;
|
|
26
|
+
}
|
|
27
|
+
/** A value's place on a fixed axis of zones. It shows a reading; it is not a control. */
|
|
28
|
+
export declare function KjunZoneGauge({ value, min, max, zones, label, ariaLabel, size, zoneLabels, showValue, formatValue, missingText, className, style, id }: KjunZoneGaugeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,3 +9,5 @@ export declare function unregisterOpened(opened: OpenedItems, id: string): Opene
|
|
|
9
9
|
export declare const trimToSingle: (opened: OpenedItems) => OpenedItems;
|
|
10
10
|
/** Up/Down/Home/End move between the headers of an Accordion, as in the WAI-ARIA accordion pattern. */
|
|
11
11
|
export declare function accordionKeyTarget(key: string, index: number, count: number): number | null;
|
|
12
|
+
/** The open set an Accordion's value or defaultValue names; a single-open Accordion keeps only the last one. */
|
|
13
|
+
export declare function openedFromValue(value: readonly string[] | undefined, multiple: boolean): OpenedItems;
|
|
@@ -9,3 +9,5 @@ export declare function unregisterOpened(opened: OpenedItems, id: string): Opene
|
|
|
9
9
|
export declare const trimToSingle: (opened: OpenedItems) => OpenedItems;
|
|
10
10
|
/** Up/Down/Home/End move between the headers of an Accordion, as in the WAI-ARIA accordion pattern. */
|
|
11
11
|
export declare function accordionKeyTarget(key: string, index: number, count: number): number | null;
|
|
12
|
+
/** The open set an Accordion's value or defaultValue names; a single-open Accordion keeps only the last one. */
|
|
13
|
+
export declare function openedFromValue(value: readonly string[] | undefined, multiple: boolean): OpenedItems;
|
|
@@ -3,3 +3,7 @@ export { alertActionSizes, popoverActionSize } from "./alert-action-size.cjs";
|
|
|
3
3
|
/** A container's default size for buttons that leave `size` unset; an explicit size always wins. */
|
|
4
4
|
export declare const ActionSizeContext: import("react").Context<"xs" | "sm" | "md" | "lg" | "xl" | null>;
|
|
5
5
|
export declare function useActionSize(requested: ButtonSize | undefined, fallback: ButtonSize): ButtonSize;
|
|
6
|
+
/** A container that draws its buttons as pills (a floating action bar); a button's own circle or pill shape is unaffected. */
|
|
7
|
+
export declare const ActionShapeContext: import("react").Context<"pill" | null>;
|
|
8
|
+
/** Whether a button rounds to a pill: by its own shape, or because its container says so. */
|
|
9
|
+
export declare function useActionPill(shape: "default" | "circle" | "pill"): boolean;
|
|
@@ -3,3 +3,7 @@ export { alertActionSizes, popoverActionSize } from "./alert-action-size.js";
|
|
|
3
3
|
/** A container's default size for buttons that leave `size` unset; an explicit size always wins. */
|
|
4
4
|
export declare const ActionSizeContext: import("react").Context<"xs" | "sm" | "md" | "lg" | "xl" | null>;
|
|
5
5
|
export declare function useActionSize(requested: ButtonSize | undefined, fallback: ButtonSize): ButtonSize;
|
|
6
|
+
/** A container that draws its buttons as pills (a floating action bar); a button's own circle or pill shape is unaffected. */
|
|
7
|
+
export declare const ActionShapeContext: import("react").Context<"pill" | null>;
|
|
8
|
+
/** Whether a button rounds to a pill: by its own shape, or because its container says so. */
|
|
9
|
+
export declare function useActionPill(shape: "default" | "circle" | "pill"): boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const alertActionSizes: {
|
|
3
3
|
readonly sm: "xs";
|
|
4
4
|
readonly md: "sm";
|
|
5
|
+
readonly lg: "md";
|
|
5
6
|
};
|
|
6
7
|
/** Popover actions default one step below md so a button never outweighs the small panel; an explicit size wins. */
|
|
7
8
|
export declare const popoverActionSize: "sm";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const alertActionSizes: {
|
|
3
3
|
readonly sm: "xs";
|
|
4
4
|
readonly md: "sm";
|
|
5
|
+
readonly lg: "md";
|
|
5
6
|
};
|
|
6
7
|
/** Popover actions default one step below md so a button never outweighs the small panel; an explicit size wins. */
|
|
7
8
|
export declare const popoverActionSize: "sm";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** True when the actions have wrapped onto their own line under the message. */
|
|
2
|
+
export declare function alertActionsWrapped(content: HTMLElement | null): boolean;
|
|
3
|
+
/** Calls back with the wrapped state now and whenever the content resizes; returns the cleanup. */
|
|
4
|
+
export declare function observeAlertActions(content: HTMLElement | null, change: (wrapped: boolean) => void): () => void;
|
|
5
|
+
/** Native: the actions wrap when the content row cannot hold the message's minimum width, the gap and the actions.
|
|
6
|
+
* Widths only, since React Native Web reports a layout when a box resizes, not when it merely moves. */
|
|
7
|
+
export declare function alertActionsWrap(contentWidth: number | undefined, actionsWidth: number | undefined, gap: number, messageMinWidth: number): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** True when the actions have wrapped onto their own line under the message. */
|
|
2
|
+
export declare function alertActionsWrapped(content: HTMLElement | null): boolean;
|
|
3
|
+
/** Calls back with the wrapped state now and whenever the content resizes; returns the cleanup. */
|
|
4
|
+
export declare function observeAlertActions(content: HTMLElement | null, change: (wrapped: boolean) => void): () => void;
|
|
5
|
+
/** Native: the actions wrap when the content row cannot hold the message's minimum width, the gap and the actions.
|
|
6
|
+
* Widths only, since React Native Web reports a layout when a box resizes, not when it merely moves. */
|
|
7
|
+
export declare function alertActionsWrap(contentWidth: number | undefined, actionsWidth: number | undefined, gap: number, messageMinWidth: number): boolean;
|
|
@@ -3,3 +3,9 @@
|
|
|
3
3
|
* instead of jumping; `done` runs once it is gone. Reduced motion (or no Web Animations) finishes at once.
|
|
4
4
|
*/
|
|
5
5
|
export declare function collapseAlert(el: HTMLElement | null, reduced: boolean, done: () => void): void;
|
|
6
|
+
/**
|
|
7
|
+
* A dismissed Alert takes its focused close button with it: when focus is inside the alert, it moves to the next
|
|
8
|
+
* tabbable element after it, or the one before when the alert was last, so keyboard users keep their place.
|
|
9
|
+
* Call before the alert turns inert.
|
|
10
|
+
*/
|
|
11
|
+
export declare function keepFocusPastAlert(el: HTMLElement | null): void;
|