@kjun-ui/react 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -5
- package/dist/index.cjs +11354 -4458
- package/dist/index.js +10951 -4033
- package/dist/styles.css +3948 -738
- package/dist/types/packages/react/src/actions.d.cts +21 -16
- package/dist/types/packages/react/src/actions.d.ts +21 -16
- package/dist/types/packages/react/src/app-navigation.d.cts +14 -5
- package/dist/types/packages/react/src/app-navigation.d.ts +14 -5
- package/dist/types/packages/react/src/avatar-group.d.cts +36 -0
- package/dist/types/packages/react/src/avatar-group.d.ts +36 -0
- package/dist/types/packages/react/src/button.d.cts +14 -6
- package/dist/types/packages/react/src/button.d.ts +14 -6
- package/dist/types/packages/react/src/calendar.d.cts +6 -2
- package/dist/types/packages/react/src/calendar.d.ts +6 -2
- package/dist/types/packages/react/src/card-actions-context.d.cts +2 -0
- package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
- package/dist/types/packages/react/src/card.d.cts +23 -6
- package/dist/types/packages/react/src/card.d.ts +23 -6
- package/dist/types/packages/react/src/carousel.d.cts +8 -1
- package/dist/types/packages/react/src/carousel.d.ts +8 -1
- package/dist/types/packages/react/src/chip.d.cts +4 -2
- package/dist/types/packages/react/src/chip.d.ts +4 -2
- package/dist/types/packages/react/src/choice-controls.d.cts +99 -0
- package/dist/types/packages/react/src/choice-controls.d.ts +99 -0
- package/dist/types/packages/react/src/collapse.d.cts +4 -1
- package/dist/types/packages/react/src/collapse.d.ts +4 -1
- package/dist/types/packages/react/src/color-picker-parts.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
- package/dist/types/packages/react/src/color-picker.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker.d.ts +58 -0
- package/dist/types/packages/react/src/combobox.d.cts +18 -5
- package/dist/types/packages/react/src/combobox.d.ts +18 -5
- package/dist/types/packages/react/src/controls.d.cts +7 -74
- package/dist/types/packages/react/src/controls.d.ts +7 -74
- package/dist/types/packages/react/src/data-state.d.cts +22 -9
- package/dist/types/packages/react/src/data-state.d.ts +22 -9
- package/dist/types/packages/react/src/date-picker.d.cts +8 -2
- package/dist/types/packages/react/src/date-picker.d.ts +8 -2
- package/dist/types/packages/react/src/display.d.cts +40 -11
- package/dist/types/packages/react/src/display.d.ts +40 -11
- package/dist/types/packages/react/src/drawer.d.cts +11 -2
- package/dist/types/packages/react/src/drawer.d.ts +11 -2
- package/dist/types/packages/react/src/dropdown.d.cts +19 -5
- package/dist/types/packages/react/src/dropdown.d.ts +19 -5
- package/dist/types/packages/react/src/event-calendar.d.cts +47 -0
- package/dist/types/packages/react/src/event-calendar.d.ts +47 -0
- package/dist/types/packages/react/src/fab.d.cts +18 -7
- package/dist/types/packages/react/src/fab.d.ts +18 -7
- package/dist/types/packages/react/src/file-upload-row.d.cts +23 -0
- package/dist/types/packages/react/src/file-upload-row.d.ts +23 -0
- package/dist/types/packages/react/src/file-upload.d.cts +38 -0
- package/dist/types/packages/react/src/file-upload.d.ts +38 -0
- package/dist/types/packages/react/src/financial-display.d.cts +32 -11
- package/dist/types/packages/react/src/financial-display.d.ts +32 -11
- package/dist/types/packages/react/src/floating-panel.d.cts +6 -2
- package/dist/types/packages/react/src/floating-panel.d.ts +6 -2
- package/dist/types/packages/react/src/index.d.cts +16 -1
- package/dist/types/packages/react/src/index.d.ts +16 -1
- package/dist/types/packages/react/src/input.d.cts +14 -1
- package/dist/types/packages/react/src/input.d.ts +14 -1
- package/dist/types/packages/react/src/kpi-hero.d.cts +55 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +55 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +46 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +46 -0
- package/dist/types/packages/react/src/kpi.d.cts +2 -72
- package/dist/types/packages/react/src/kpi.d.ts +2 -72
- package/dist/types/packages/react/src/layout-primitives.d.cts +71 -139
- package/dist/types/packages/react/src/layout-primitives.d.ts +71 -139
- package/dist/types/packages/react/src/list-context.d.cts +9 -0
- package/dist/types/packages/react/src/list-context.d.ts +9 -0
- package/dist/types/packages/react/src/list.d.cts +84 -11
- package/dist/types/packages/react/src/list.d.ts +84 -11
- package/dist/types/packages/react/src/market-model.d.cts +13 -1
- package/dist/types/packages/react/src/market-model.d.ts +13 -1
- package/dist/types/packages/react/src/market-parts.d.cts +9 -0
- package/dist/types/packages/react/src/market-parts.d.ts +9 -0
- package/dist/types/packages/react/src/market-skeleton.d.cts +7 -1
- package/dist/types/packages/react/src/market-skeleton.d.ts +7 -1
- package/dist/types/packages/react/src/media.d.cts +6 -2
- package/dist/types/packages/react/src/media.d.ts +6 -2
- package/dist/types/packages/react/src/modal.d.cts +14 -2
- package/dist/types/packages/react/src/modal.d.ts +14 -2
- package/dist/types/packages/react/src/navigation.d.cts +36 -6
- package/dist/types/packages/react/src/navigation.d.ts +36 -6
- package/dist/types/packages/react/src/number-display.d.cts +10 -5
- package/dist/types/packages/react/src/number-display.d.ts +10 -5
- package/dist/types/packages/react/src/number-input.d.cts +28 -0
- package/dist/types/packages/react/src/number-input.d.ts +28 -0
- package/dist/types/packages/react/src/popover.d.cts +5 -2
- package/dist/types/packages/react/src/popover.d.ts +5 -2
- package/dist/types/packages/react/src/pressable.d.cts +17 -0
- package/dist/types/packages/react/src/pressable.d.ts +17 -0
- package/dist/types/packages/react/src/quantity-stepper.d.cts +3 -1
- package/dist/types/packages/react/src/quantity-stepper.d.ts +3 -1
- package/dist/types/packages/react/src/range-input.d.cts +15 -3
- package/dist/types/packages/react/src/range-input.d.ts +15 -3
- package/dist/types/packages/react/src/reorder-controls.d.cts +43 -0
- package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
- package/dist/types/packages/react/src/search-input.d.cts +6 -3
- package/dist/types/packages/react/src/search-input.d.ts +6 -3
- package/dist/types/packages/react/src/select-control.d.cts +7 -2
- package/dist/types/packages/react/src/select-control.d.ts +7 -2
- package/dist/types/packages/react/src/side-navigation-layout.d.cts +47 -0
- package/dist/types/packages/react/src/side-navigation-layout.d.ts +47 -0
- package/dist/types/packages/react/src/side-navigation.d.cts +74 -0
- package/dist/types/packages/react/src/side-navigation.d.ts +74 -0
- package/dist/types/packages/react/src/skeletons.d.cts +19 -3
- package/dist/types/packages/react/src/skeletons.d.ts +19 -3
- package/dist/types/packages/react/src/spinner-glyph.d.cts +8 -0
- package/dist/types/packages/react/src/spinner-glyph.d.ts +8 -0
- package/dist/types/packages/react/src/split-pane.d.cts +43 -0
- package/dist/types/packages/react/src/split-pane.d.ts +43 -0
- package/dist/types/packages/react/src/stacked-bar.d.cts +24 -0
- package/dist/types/packages/react/src/stacked-bar.d.ts +24 -0
- package/dist/types/packages/react/src/steps.d.cts +26 -0
- package/dist/types/packages/react/src/steps.d.ts +26 -0
- package/dist/types/packages/react/src/table-cards.d.cts +4 -12
- package/dist/types/packages/react/src/table-cards.d.ts +4 -12
- package/dist/types/packages/react/src/table-grid.d.cts +3 -7
- package/dist/types/packages/react/src/table-grid.d.ts +3 -7
- package/dist/types/packages/react/src/table-groups.d.cts +5 -0
- package/dist/types/packages/react/src/table-groups.d.ts +5 -0
- package/dist/types/packages/react/src/table-list.d.cts +2 -9
- package/dist/types/packages/react/src/table-list.d.ts +2 -9
- package/dist/types/packages/react/src/table-model.d.cts +6 -2
- package/dist/types/packages/react/src/table-model.d.ts +6 -2
- package/dist/types/packages/react/src/tabs.d.cts +3 -1
- package/dist/types/packages/react/src/tabs.d.ts +3 -1
- package/dist/types/packages/react/src/textarea.d.cts +6 -3
- package/dist/types/packages/react/src/textarea.d.ts +6 -3
- package/dist/types/packages/react/src/tiles.d.cts +18 -0
- package/dist/types/packages/react/src/tiles.d.ts +18 -0
- package/dist/types/packages/react/src/time-picker.d.cts +12 -2
- package/dist/types/packages/react/src/time-picker.d.ts +12 -2
- package/dist/types/packages/react/src/time-wheel.d.cts +18 -0
- package/dist/types/packages/react/src/time-wheel.d.ts +18 -0
- package/dist/types/packages/react/src/use-filter-scroll.d.cts +5 -0
- package/dist/types/packages/react/src/use-filter-scroll.d.ts +5 -0
- package/dist/types/packages/react/src/zone-gauge.d.cts +28 -0
- package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
- package/dist/types/shared/package-runtime/accordion-state.d.cts +2 -0
- package/dist/types/shared/package-runtime/accordion-state.d.ts +2 -0
- package/dist/types/shared/package-runtime/action-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/action-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +1 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
- package/dist/types/shared/package-runtime/alert-actions.d.cts +7 -0
- package/dist/types/shared/package-runtime/alert-actions.d.ts +7 -0
- package/dist/types/shared/package-runtime/alert-exit.d.cts +6 -0
- package/dist/types/shared/package-runtime/alert-exit.d.ts +6 -0
- package/dist/types/shared/package-runtime/alert-live.d.cts +2 -0
- package/dist/types/shared/package-runtime/alert-live.d.ts +2 -0
- package/dist/types/shared/package-runtime/avatar-group.d.cts +18 -0
- package/dist/types/shared/package-runtime/avatar-group.d.ts +18 -0
- package/dist/types/shared/package-runtime/badge-tone.d.cts +8 -2
- package/dist/types/shared/package-runtime/badge-tone.d.ts +8 -2
- package/dist/types/shared/package-runtime/bottom-bar.d.cts +15 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +30 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +30 -0
- package/dist/types/shared/package-runtime/calendar.d.cts +21 -7
- package/dist/types/shared/package-runtime/calendar.d.ts +21 -7
- package/dist/types/shared/package-runtime/card-layout.d.cts +42 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +42 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.cts +2 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.ts +2 -0
- package/dist/types/shared/package-runtime/carousel.d.cts +12 -2
- package/dist/types/shared/package-runtime/carousel.d.ts +12 -2
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +2 -2
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +2 -2
- package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/clipboard.d.cts +6 -0
- package/dist/types/shared/package-runtime/clipboard.d.ts +6 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
- package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
- package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
- package/dist/types/shared/package-runtime/color.d.cts +22 -0
- package/dist/types/shared/package-runtime/color.d.ts +22 -0
- package/dist/types/shared/package-runtime/combobox-options.d.cts +13 -0
- package/dist/types/shared/package-runtime/combobox-options.d.ts +13 -0
- package/dist/types/shared/package-runtime/combobox.d.cts +3 -1
- package/dist/types/shared/package-runtime/combobox.d.ts +3 -1
- package/dist/types/shared/package-runtime/copy-button.d.cts +11 -0
- package/dist/types/shared/package-runtime/copy-button.d.ts +11 -0
- package/dist/types/shared/package-runtime/data-cells.d.cts +36 -0
- package/dist/types/shared/package-runtime/data-cells.d.ts +36 -0
- package/dist/types/shared/package-runtime/development.d.cts +4 -0
- package/dist/types/shared/package-runtime/development.d.ts +4 -0
- package/dist/types/shared/package-runtime/distribution.d.cts +168 -0
- package/dist/types/shared/package-runtime/distribution.d.ts +168 -0
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +7 -0
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +7 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.cts +19 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -0
- package/dist/types/shared/package-runtime/event-calendar.d.cts +81 -0
- package/dist/types/shared/package-runtime/event-calendar.d.ts +81 -0
- package/dist/types/shared/package-runtime/external-link.d.cts +4 -0
- package/dist/types/shared/package-runtime/external-link.d.ts +4 -0
- package/dist/types/shared/package-runtime/file-upload.d.cts +128 -0
- package/dist/types/shared/package-runtime/file-upload.d.ts +128 -0
- package/dist/types/shared/package-runtime/filter-scroll.d.cts +5 -0
- package/dist/types/shared/package-runtime/filter-scroll.d.ts +5 -0
- package/dist/types/shared/package-runtime/filter-value.d.cts +2 -0
- package/dist/types/shared/package-runtime/filter-value.d.ts +2 -0
- package/dist/types/shared/package-runtime/input-field.d.cts +23 -0
- package/dist/types/shared/package-runtime/input-field.d.ts +23 -0
- package/dist/types/shared/package-runtime/input-variant.d.cts +7 -0
- package/dist/types/shared/package-runtime/input-variant.d.ts +7 -0
- package/dist/types/shared/package-runtime/kpi.d.cts +102 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +102 -0
- package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
- package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
- package/dist/types/shared/package-runtime/layout-primitives.d.cts +115 -6
- package/dist/types/shared/package-runtime/layout-primitives.d.ts +115 -6
- package/dist/types/shared/package-runtime/list-leading.d.cts +38 -0
- package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +152 -4
- package/dist/types/shared/package-runtime/list-row.d.ts +152 -4
- package/dist/types/shared/package-runtime/market-layout.d.cts +6 -2
- package/dist/types/shared/package-runtime/market-layout.d.ts +6 -2
- package/dist/types/shared/package-runtime/market-query.d.cts +21 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +21 -0
- package/dist/types/shared/package-runtime/market-table.d.cts +32 -0
- package/dist/types/shared/package-runtime/market-table.d.ts +32 -0
- package/dist/types/shared/package-runtime/menu-button.d.cts +4 -0
- package/dist/types/shared/package-runtime/menu-button.d.ts +4 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +101 -1
- package/dist/types/shared/package-runtime/messages/ko.d.ts +101 -1
- package/dist/types/shared/package-runtime/messages-context.d.cts +93 -1
- package/dist/types/shared/package-runtime/messages-context.d.ts +93 -1
- package/dist/types/shared/package-runtime/minimum-loading.d.cts +3 -0
- package/dist/types/shared/package-runtime/minimum-loading.d.ts +3 -0
- package/dist/types/shared/package-runtime/modal-geometry.d.cts +15 -0
- package/dist/types/shared/package-runtime/modal-geometry.d.ts +15 -0
- package/dist/types/shared/package-runtime/navigation.d.cts +9 -2
- package/dist/types/shared/package-runtime/navigation.d.ts +9 -2
- package/dist/types/shared/package-runtime/nested-controls.d.cts +7 -0
- package/dist/types/shared/package-runtime/nested-controls.d.ts +7 -0
- package/dist/types/shared/package-runtime/number-input.d.cts +63 -0
- package/dist/types/shared/package-runtime/number-input.d.ts +63 -0
- package/dist/types/shared/package-runtime/number-sign.d.cts +9 -0
- package/dist/types/shared/package-runtime/number-sign.d.ts +9 -0
- package/dist/types/shared/package-runtime/options.d.cts +25 -5
- package/dist/types/shared/package-runtime/options.d.ts +25 -5
- package/dist/types/shared/package-runtime/pagination.d.cts +12 -0
- package/dist/types/shared/package-runtime/pagination.d.ts +12 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.cts +3 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -0
- package/dist/types/shared/package-runtime/press-repeat.d.cts +13 -0
- package/dist/types/shared/package-runtime/press-repeat.d.ts +13 -0
- package/dist/types/shared/package-runtime/progress-circle.d.cts +5 -0
- package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -0
- package/dist/types/shared/package-runtime/progress-marker.d.cts +7 -0
- package/dist/types/shared/package-runtime/progress-marker.d.ts +7 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.cts +2 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
- package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
- package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
- package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
- package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
- package/dist/types/shared/package-runtime/select-trigger.d.cts +23 -0
- package/dist/types/shared/package-runtime/select-trigger.d.ts +23 -0
- package/dist/types/shared/package-runtime/sheet-drag.d.cts +24 -0
- package/dist/types/shared/package-runtime/sheet-drag.d.ts +24 -0
- package/dist/types/shared/package-runtime/side-navigation-keys.d.cts +23 -0
- package/dist/types/shared/package-runtime/side-navigation-keys.d.ts +23 -0
- package/dist/types/shared/package-runtime/side-navigation-scroll.d.cts +7 -0
- package/dist/types/shared/package-runtime/side-navigation-scroll.d.ts +7 -0
- package/dist/types/shared/package-runtime/side-navigation.d.cts +277 -0
- package/dist/types/shared/package-runtime/side-navigation.d.ts +277 -0
- package/dist/types/shared/package-runtime/signed-number.d.cts +33 -0
- package/dist/types/shared/package-runtime/signed-number.d.ts +33 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +18 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +18 -0
- package/dist/types/shared/package-runtime/slider-view.d.cts +17 -2
- package/dist/types/shared/package-runtime/slider-view.d.ts +17 -2
- package/dist/types/shared/package-runtime/sparkline.d.cts +8 -4
- package/dist/types/shared/package-runtime/sparkline.d.ts +8 -4
- package/dist/types/shared/package-runtime/spinner-geometry.d.cts +14 -0
- package/dist/types/shared/package-runtime/spinner-geometry.d.ts +14 -0
- package/dist/types/shared/package-runtime/split-pane.d.cts +85 -0
- package/dist/types/shared/package-runtime/split-pane.d.ts +85 -0
- package/dist/types/shared/package-runtime/steps.d.cts +37 -0
- package/dist/types/shared/package-runtime/steps.d.ts +37 -0
- package/dist/types/shared/package-runtime/tab-keyboard.d.cts +6 -0
- package/dist/types/shared/package-runtime/tab-keyboard.d.ts +6 -0
- package/dist/types/shared/package-runtime/table-columns.d.cts +36 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +36 -0
- package/dist/types/shared/package-runtime/table-model.d.cts +23 -3
- package/dist/types/shared/package-runtime/table-model.d.ts +23 -3
- package/dist/types/shared/package-runtime/table-presentation.d.cts +33 -4
- package/dist/types/shared/package-runtime/table-presentation.d.ts +33 -4
- package/dist/types/shared/package-runtime/table.d.cts +44 -2
- package/dist/types/shared/package-runtime/table.d.ts +44 -2
- package/dist/types/shared/package-runtime/textarea.d.cts +6 -4
- package/dist/types/shared/package-runtime/textarea.d.ts +6 -4
- package/dist/types/shared/package-runtime/tiles-children.d.cts +7 -0
- package/dist/types/shared/package-runtime/tiles-children.d.ts +7 -0
- package/dist/types/shared/package-runtime/tiles.d.cts +18 -0
- package/dist/types/shared/package-runtime/tiles.d.ts +18 -0
- package/dist/types/shared/package-runtime/time-segments.d.cts +24 -0
- package/dist/types/shared/package-runtime/time-segments.d.ts +24 -0
- package/dist/types/shared/package-runtime/time-wheel.d.cts +54 -0
- package/dist/types/shared/package-runtime/time-wheel.d.ts +54 -0
- package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
- package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.cts +54 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +54 -0
- package/dist/types/shared/package-runtime/use-copy-feedback.d.cts +10 -0
- package/dist/types/shared/package-runtime/use-copy-feedback.d.ts +10 -0
- package/dist/types/shared/package-runtime/use-layer.d.cts +4 -2
- package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
- package/dist/types/shared/package-runtime/use-open-state.d.cts +5 -0
- package/dist/types/shared/package-runtime/use-open-state.d.ts +5 -0
- package/dist/types/shared/package-runtime/use-pending-action.d.cts +6 -0
- package/dist/types/shared/package-runtime/use-pending-action.d.ts +6 -0
- package/dist/types/shared/package-runtime/use-side-navigation-state.d.cts +25 -0
- package/dist/types/shared/package-runtime/use-side-navigation-state.d.ts +25 -0
- package/dist/types/shared/package-runtime/use-slide.d.cts +3 -0
- package/dist/types/shared/package-runtime/use-slide.d.ts +3 -0
- package/package.json +3 -3
- package/dist/types/packages/react/src/compound-control.d.cts +0 -1
- package/dist/types/packages/react/src/compound-control.d.ts +0 -1
- package/dist/types/shared/package-runtime/center-option.d.cts +0 -1
- package/dist/types/shared/package-runtime/center-option.d.ts +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type FocusReturn } from "./floating-panel.js";
|
|
2
3
|
export interface KjunDrawerProps {
|
|
3
4
|
open: boolean;
|
|
4
5
|
onOpenChange: (v: boolean) => void;
|
|
@@ -10,15 +11,23 @@ export interface KjunDrawerProps {
|
|
|
10
11
|
closeOnEsc?: boolean;
|
|
11
12
|
noPadding?: boolean;
|
|
12
13
|
header?: ReactNode;
|
|
14
|
+
/** Secondary actions in the title row, before the close button (such as a reset button). */
|
|
15
|
+
headerActions?: ReactNode;
|
|
13
16
|
footer?: ReactNode;
|
|
14
17
|
children: ReactNode;
|
|
15
18
|
onClose?: () => void;
|
|
16
19
|
/** Called once after the close finishes and the layer has left the screen (not when it mounts closed or reopens during the exit). */
|
|
17
20
|
onAfterClose?: () => void;
|
|
18
21
|
ariaLabel?: string;
|
|
22
|
+
/** Id of the element that describes the drawer, read after its name. */
|
|
23
|
+
ariaDescribedBy?: string;
|
|
24
|
+
/** Read after the exit finishes; a missing target falls back to the opener or parent window. */
|
|
25
|
+
returnFocus?: FocusReturn;
|
|
26
|
+
/** Bottom drawers: a grab handle above the header; dragging the handle or header down closes the drawer. */
|
|
27
|
+
handle?: boolean;
|
|
19
28
|
/** Keeps clear of KjunProvider's safe area (default true): padded inside the panel and kept clear beyond a sheet. */
|
|
20
29
|
safeArea?: boolean;
|
|
21
30
|
/** Height limit in px for top and bottom drawers; by default they stop a sheet gap short of the opposite edge. */
|
|
22
31
|
maxHeight?: number;
|
|
23
32
|
}
|
|
24
|
-
export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, footer, children, onClose, onAfterClose, ariaLabel, safeArea, maxHeight, }: KjunDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, headerActions, footer, children, onClose, onAfterClose, ariaLabel, ariaDescribedBy, returnFocus, handle, safeArea, maxHeight, }: KjunDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -3,6 +3,10 @@ import { type KjunButtonProps } from "./button.cjs";
|
|
|
3
3
|
import { type FocusReturn, type Placement } from "./floating-panel.cjs";
|
|
4
4
|
import { type KjunTooltipProps } from "./popover.cjs";
|
|
5
5
|
export interface KjunDropdownProps {
|
|
6
|
+
/** Controls visibility; omit for internal state. */
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** Asked to open or close; with `open`, update it to accept. onOpen and onClose report the visibility that follows. */
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
10
|
disabled?: boolean;
|
|
7
11
|
placement?: Extract<Placement, "bottom-start" | "bottom-end" | "top-start" | "top-end">;
|
|
8
12
|
menuId?: string;
|
|
@@ -17,7 +21,7 @@ export interface KjunDropdownProps {
|
|
|
17
21
|
/** Where focus goes when the menu closes by choosing or Escape, instead of the trigger (e.g. an edited cell). Web only. */
|
|
18
22
|
returnFocus?: FocusReturn;
|
|
19
23
|
}
|
|
20
|
-
export declare function KjunDropdown({ disabled, placement, menuId, triggerId, menuClass, density, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunDropdown({ open: openProp, onOpenChange, disabled, placement, menuId, triggerId, menuClass, density, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export interface KjunDropdownItemProps {
|
|
22
26
|
id?: string;
|
|
23
27
|
variant?: "default" | "danger";
|
|
@@ -34,23 +38,29 @@ export interface KjunDropdownItemProps {
|
|
|
34
38
|
textValue?: string;
|
|
35
39
|
/** Keeps the menu open after choosing, for toggles the user flips several times. */
|
|
36
40
|
keepOpen?: boolean;
|
|
41
|
+
/** Inside a KjunDropdownSection with `value`: the value this single choice stands for. */
|
|
42
|
+
value?: string;
|
|
37
43
|
/** Makes the item a link; the browser follows it. */
|
|
38
44
|
href?: string;
|
|
39
45
|
target?: string;
|
|
40
46
|
children: ReactNode;
|
|
41
47
|
onClick?: () => void;
|
|
42
48
|
}
|
|
43
|
-
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, checked, description, shortcut, textValue, keepOpen, href, target, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
49
|
+
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, checked, description, shortcut, textValue, keepOpen, value, href, target, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
44
50
|
export interface KjunDropdownSectionProps {
|
|
45
51
|
/** Small heading over the group; it names the group for screen readers. */
|
|
46
52
|
title?: string;
|
|
47
53
|
/** Names the group for screen readers when it has no visible title. */
|
|
48
54
|
ariaLabel?: string;
|
|
55
|
+
/** Makes the items with a `value` one single choice: the item whose value matches shows the check. null chooses none. */
|
|
56
|
+
value?: string | null;
|
|
57
|
+
/** Called with the chosen item's value. */
|
|
58
|
+
onValueChange?: (value: string) => void;
|
|
49
59
|
children: ReactNode;
|
|
50
60
|
}
|
|
51
|
-
export declare function KjunDropdownSection({ title, ariaLabel, children }: KjunDropdownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function KjunDropdownSection({ title, ariaLabel, value, onValueChange, children }: KjunDropdownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
52
62
|
export interface KjunDropdownSubmenuProps {
|
|
53
|
-
/** Stable key for the submenu; defaults to the label. */
|
|
63
|
+
/** Stable key for the submenu; defaults to the label. Give each submenu its own id when two at one level share a label. */
|
|
54
64
|
id?: string;
|
|
55
65
|
label: string;
|
|
56
66
|
icon?: string;
|
|
@@ -66,10 +76,14 @@ export interface KjunMenuButtonProps extends Omit<KjunDropdownProps, "trigger">
|
|
|
66
76
|
variant?: KjunButtonProps["variant"];
|
|
67
77
|
/** Show a square dots-vertical button; label remains its accessible name. */
|
|
68
78
|
compact?: boolean;
|
|
79
|
+
/** Icon before the label, or in place of dots-vertical when compact or unlabelled. */
|
|
80
|
+
icon?: string;
|
|
81
|
+
/** Show the chevron after a visible label (default true); false where the icon already says it opens a menu. */
|
|
82
|
+
chevron?: boolean;
|
|
69
83
|
loading?: boolean;
|
|
70
84
|
tooltip?: string;
|
|
71
85
|
tooltipPlacement?: KjunTooltipProps["placement"];
|
|
72
86
|
tooltipDelay?: number;
|
|
73
87
|
ariaLabel?: string;
|
|
74
88
|
}
|
|
75
|
-
export declare function KjunMenuButton({ label, size, variant, compact, loading, tooltip, tooltipPlacement, tooltipDelay, ariaLabel, onOpen, onClose, ...props }: KjunMenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
export declare function KjunMenuButton({ label, size, variant, compact, icon, chevron, loading, tooltip, tooltipPlacement, tooltipDelay, ariaLabel, onOpen, onClose, ...props }: KjunMenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,10 @@ import { type KjunButtonProps } from "./button.js";
|
|
|
3
3
|
import { type FocusReturn, type Placement } from "./floating-panel.js";
|
|
4
4
|
import { type KjunTooltipProps } from "./popover.js";
|
|
5
5
|
export interface KjunDropdownProps {
|
|
6
|
+
/** Controls visibility; omit for internal state. */
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** Asked to open or close; with `open`, update it to accept. onOpen and onClose report the visibility that follows. */
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
10
|
disabled?: boolean;
|
|
7
11
|
placement?: Extract<Placement, "bottom-start" | "bottom-end" | "top-start" | "top-end">;
|
|
8
12
|
menuId?: string;
|
|
@@ -17,7 +21,7 @@ export interface KjunDropdownProps {
|
|
|
17
21
|
/** Where focus goes when the menu closes by choosing or Escape, instead of the trigger (e.g. an edited cell). Web only. */
|
|
18
22
|
returnFocus?: FocusReturn;
|
|
19
23
|
}
|
|
20
|
-
export declare function KjunDropdown({ disabled, placement, menuId, triggerId, menuClass, density, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunDropdown({ open: openProp, onOpenChange, disabled, placement, menuId, triggerId, menuClass, density, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export interface KjunDropdownItemProps {
|
|
22
26
|
id?: string;
|
|
23
27
|
variant?: "default" | "danger";
|
|
@@ -34,23 +38,29 @@ export interface KjunDropdownItemProps {
|
|
|
34
38
|
textValue?: string;
|
|
35
39
|
/** Keeps the menu open after choosing, for toggles the user flips several times. */
|
|
36
40
|
keepOpen?: boolean;
|
|
41
|
+
/** Inside a KjunDropdownSection with `value`: the value this single choice stands for. */
|
|
42
|
+
value?: string;
|
|
37
43
|
/** Makes the item a link; the browser follows it. */
|
|
38
44
|
href?: string;
|
|
39
45
|
target?: string;
|
|
40
46
|
children: ReactNode;
|
|
41
47
|
onClick?: () => void;
|
|
42
48
|
}
|
|
43
|
-
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, checked, description, shortcut, textValue, keepOpen, href, target, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
49
|
+
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, checked, description, shortcut, textValue, keepOpen, value, href, target, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
44
50
|
export interface KjunDropdownSectionProps {
|
|
45
51
|
/** Small heading over the group; it names the group for screen readers. */
|
|
46
52
|
title?: string;
|
|
47
53
|
/** Names the group for screen readers when it has no visible title. */
|
|
48
54
|
ariaLabel?: string;
|
|
55
|
+
/** Makes the items with a `value` one single choice: the item whose value matches shows the check. null chooses none. */
|
|
56
|
+
value?: string | null;
|
|
57
|
+
/** Called with the chosen item's value. */
|
|
58
|
+
onValueChange?: (value: string) => void;
|
|
49
59
|
children: ReactNode;
|
|
50
60
|
}
|
|
51
|
-
export declare function KjunDropdownSection({ title, ariaLabel, children }: KjunDropdownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function KjunDropdownSection({ title, ariaLabel, value, onValueChange, children }: KjunDropdownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
52
62
|
export interface KjunDropdownSubmenuProps {
|
|
53
|
-
/** Stable key for the submenu; defaults to the label. */
|
|
63
|
+
/** Stable key for the submenu; defaults to the label. Give each submenu its own id when two at one level share a label. */
|
|
54
64
|
id?: string;
|
|
55
65
|
label: string;
|
|
56
66
|
icon?: string;
|
|
@@ -66,10 +76,14 @@ export interface KjunMenuButtonProps extends Omit<KjunDropdownProps, "trigger">
|
|
|
66
76
|
variant?: KjunButtonProps["variant"];
|
|
67
77
|
/** Show a square dots-vertical button; label remains its accessible name. */
|
|
68
78
|
compact?: boolean;
|
|
79
|
+
/** Icon before the label, or in place of dots-vertical when compact or unlabelled. */
|
|
80
|
+
icon?: string;
|
|
81
|
+
/** Show the chevron after a visible label (default true); false where the icon already says it opens a menu. */
|
|
82
|
+
chevron?: boolean;
|
|
69
83
|
loading?: boolean;
|
|
70
84
|
tooltip?: string;
|
|
71
85
|
tooltipPlacement?: KjunTooltipProps["placement"];
|
|
72
86
|
tooltipDelay?: number;
|
|
73
87
|
ariaLabel?: string;
|
|
74
88
|
}
|
|
75
|
-
export declare function KjunMenuButton({ label, size, variant, compact, loading, tooltip, tooltipPlacement, tooltipDelay, ariaLabel, onOpen, onClose, ...props }: KjunMenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
export declare function KjunMenuButton({ label, size, variant, compact, icon, chevron, loading, tooltip, tooltipPlacement, tooltipDelay, ariaLabel, onOpen, onClose, ...props }: KjunMenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type WeekStart } from "../../../shared/package-runtime/calendar.cjs";
|
|
2
|
+
import { type DayMarks, type HolidayTest } from "../../../shared/package-runtime/event-calendar.cjs";
|
|
3
|
+
import { type CSSProperties } from "react";
|
|
4
|
+
export type { DayMarks, DaySpan, HolidayTest } from "../../../shared/package-runtime/event-calendar.cjs";
|
|
5
|
+
export interface KjunEventCalendarProps {
|
|
6
|
+
/** A whole month (default) or one week. */
|
|
7
|
+
view?: "month" | "week";
|
|
8
|
+
/** The month shown, "YYYY-MM" (controlled; this month when missing or malformed). */
|
|
9
|
+
month?: string;
|
|
10
|
+
/** Asked for another month by a swipe, the keyboard or an outside day; without it the month does not change. */
|
|
11
|
+
onMonthChange?: (month: string) => void;
|
|
12
|
+
/** Week view: any day of the week shown, "YYYY-MM-DD" (controlled; this week when missing). */
|
|
13
|
+
week?: string;
|
|
14
|
+
/** Asked for another week with that week's first day; without it the week does not change. */
|
|
15
|
+
onWeekChange?: (week: string) => void;
|
|
16
|
+
/** The picked day, "YYYY-MM-DD"; null picks nothing. Clearing it is up to the app. */
|
|
17
|
+
value?: string | null;
|
|
18
|
+
/** A day was pressed; the app decides whether it becomes the value. */
|
|
19
|
+
onSelect?: (iso: string) => void;
|
|
20
|
+
/** Touch hold, right click or Shift+Enter on a day; without it these are left to the browser. */
|
|
21
|
+
onDayLongPress?: (iso: string) => void;
|
|
22
|
+
/** Describes the long press to screen readers, e.g. "이날 약속 추가". */
|
|
23
|
+
dayLongPressLabel?: string;
|
|
24
|
+
/** What a day shows under its number: the first span, an icon and up to three dots; count is spoken only. */
|
|
25
|
+
marks?: (iso: string) => DayMarks | undefined;
|
|
26
|
+
/** Holidays draw a danger number; a string also names the day for screen readers. */
|
|
27
|
+
isHoliday?: HolidayTest;
|
|
28
|
+
/** Fades the numbers and marks of days before today (default true); span bars keep their colour. */
|
|
29
|
+
dimPast?: boolean;
|
|
30
|
+
/** The first column of the week: 0 Sunday (default), 1 Monday. */
|
|
31
|
+
weekStart?: WeekStart;
|
|
32
|
+
/** Paints Sundays with the danger role (default true). */
|
|
33
|
+
markSunday?: boolean;
|
|
34
|
+
/** Paints Saturdays with the info role (default true). */
|
|
35
|
+
markSaturday?: boolean;
|
|
36
|
+
/** The app's today, "YYYY-MM-DD" (server time, another time zone); the device's today when missing or malformed. */
|
|
37
|
+
today?: string;
|
|
38
|
+
/** The app is still fetching the period's events: day numbers step back to the past fade and the grid is busy. Days stay pressable. */
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
/** A horizontal touch swipe asks for the next or previous month or week (default true). Mouse drags never do. */
|
|
41
|
+
swipeable?: boolean;
|
|
42
|
+
className?: string;
|
|
43
|
+
style?: CSSProperties;
|
|
44
|
+
id?: string;
|
|
45
|
+
}
|
|
46
|
+
/** A month or week of days that show events as dots, an icon and a span bar. It draws no card or heading. */
|
|
47
|
+
export declare function KjunEventCalendar({ view, month, onMonthChange, week, onWeekChange, value, onSelect, onDayLongPress, dayLongPressLabel, marks, isHoliday, dimPast, weekStart, markSunday, markSaturday, swipeable, today: todayProp, loading, className, style, id }: KjunEventCalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type WeekStart } from "../../../shared/package-runtime/calendar.js";
|
|
2
|
+
import { type DayMarks, type HolidayTest } from "../../../shared/package-runtime/event-calendar.js";
|
|
3
|
+
import { type CSSProperties } from "react";
|
|
4
|
+
export type { DayMarks, DaySpan, HolidayTest } from "../../../shared/package-runtime/event-calendar.js";
|
|
5
|
+
export interface KjunEventCalendarProps {
|
|
6
|
+
/** A whole month (default) or one week. */
|
|
7
|
+
view?: "month" | "week";
|
|
8
|
+
/** The month shown, "YYYY-MM" (controlled; this month when missing or malformed). */
|
|
9
|
+
month?: string;
|
|
10
|
+
/** Asked for another month by a swipe, the keyboard or an outside day; without it the month does not change. */
|
|
11
|
+
onMonthChange?: (month: string) => void;
|
|
12
|
+
/** Week view: any day of the week shown, "YYYY-MM-DD" (controlled; this week when missing). */
|
|
13
|
+
week?: string;
|
|
14
|
+
/** Asked for another week with that week's first day; without it the week does not change. */
|
|
15
|
+
onWeekChange?: (week: string) => void;
|
|
16
|
+
/** The picked day, "YYYY-MM-DD"; null picks nothing. Clearing it is up to the app. */
|
|
17
|
+
value?: string | null;
|
|
18
|
+
/** A day was pressed; the app decides whether it becomes the value. */
|
|
19
|
+
onSelect?: (iso: string) => void;
|
|
20
|
+
/** Touch hold, right click or Shift+Enter on a day; without it these are left to the browser. */
|
|
21
|
+
onDayLongPress?: (iso: string) => void;
|
|
22
|
+
/** Describes the long press to screen readers, e.g. "이날 약속 추가". */
|
|
23
|
+
dayLongPressLabel?: string;
|
|
24
|
+
/** What a day shows under its number: the first span, an icon and up to three dots; count is spoken only. */
|
|
25
|
+
marks?: (iso: string) => DayMarks | undefined;
|
|
26
|
+
/** Holidays draw a danger number; a string also names the day for screen readers. */
|
|
27
|
+
isHoliday?: HolidayTest;
|
|
28
|
+
/** Fades the numbers and marks of days before today (default true); span bars keep their colour. */
|
|
29
|
+
dimPast?: boolean;
|
|
30
|
+
/** The first column of the week: 0 Sunday (default), 1 Monday. */
|
|
31
|
+
weekStart?: WeekStart;
|
|
32
|
+
/** Paints Sundays with the danger role (default true). */
|
|
33
|
+
markSunday?: boolean;
|
|
34
|
+
/** Paints Saturdays with the info role (default true). */
|
|
35
|
+
markSaturday?: boolean;
|
|
36
|
+
/** The app's today, "YYYY-MM-DD" (server time, another time zone); the device's today when missing or malformed. */
|
|
37
|
+
today?: string;
|
|
38
|
+
/** The app is still fetching the period's events: day numbers step back to the past fade and the grid is busy. Days stay pressable. */
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
/** A horizontal touch swipe asks for the next or previous month or week (default true). Mouse drags never do. */
|
|
41
|
+
swipeable?: boolean;
|
|
42
|
+
className?: string;
|
|
43
|
+
style?: CSSProperties;
|
|
44
|
+
id?: string;
|
|
45
|
+
}
|
|
46
|
+
/** A month or week of days that show events as dots, an icon and a span bar. It draws no card or heading. */
|
|
47
|
+
export declare function KjunEventCalendar({ view, month, onMonthChange, week, onWeekChange, value, onSelect, onDayLongPress, dayLongPressLabel, marks, isHoliday, dimPast, weekStart, markSunday, markSaturday, swipeable, today: todayProp, loading, className, style, id }: KjunEventCalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export
|
|
1
|
+
import { type ButtonHTMLAttributes, type MouseEvent } from "react";
|
|
2
|
+
export type KjunFabSize = "sm" | "md";
|
|
3
|
+
export interface KjunFabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "type" | "name" | "autoFocus" | "onChange" | "onClick"> {
|
|
3
4
|
icon: string;
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/** Visible text beside the icon; the circle becomes a capsule of the same height. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Folds a labelled FAB back into its circle (e.g. while the page scrolls); the label stays its name. */
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
/** The accessible name. Required without a label, since the icon alone says nothing. */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** "md" (default) is 56, "sm" is 48. Both take a label, loading and every state. */
|
|
12
|
+
size?: KjunFabSize;
|
|
13
|
+
/** Swaps the icon for a spinner and stops presses; the button keeps its colour. */
|
|
14
|
+
loading?: boolean;
|
|
6
15
|
disabled?: boolean;
|
|
7
16
|
/** Stays above the bottom safe area from KjunProvider (default true). */
|
|
8
17
|
safeArea?: boolean;
|
|
9
|
-
/**
|
|
18
|
+
/** Stays above the app's KjunBottomNavigation and KjunBottomActionBar (default true); false where the bar is not under the FAB. */
|
|
19
|
+
avoidBottomBar?: boolean;
|
|
20
|
+
/** Extra space below, in px. */
|
|
10
21
|
offsetBottom?: number;
|
|
11
22
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
12
23
|
}
|
|
13
|
-
/** A
|
|
14
|
-
export declare
|
|
24
|
+
/** A primary action pinned to the bottom end of the viewport: a circle, or a capsule with a label. */
|
|
25
|
+
export declare const KjunFab: import("react").ForwardRefExoticComponent<KjunFabProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export
|
|
1
|
+
import { type ButtonHTMLAttributes, type MouseEvent } from "react";
|
|
2
|
+
export type KjunFabSize = "sm" | "md";
|
|
3
|
+
export interface KjunFabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "type" | "name" | "autoFocus" | "onChange" | "onClick"> {
|
|
3
4
|
icon: string;
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/** Visible text beside the icon; the circle becomes a capsule of the same height. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Folds a labelled FAB back into its circle (e.g. while the page scrolls); the label stays its name. */
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
/** The accessible name. Required without a label, since the icon alone says nothing. */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** "md" (default) is 56, "sm" is 48. Both take a label, loading and every state. */
|
|
12
|
+
size?: KjunFabSize;
|
|
13
|
+
/** Swaps the icon for a spinner and stops presses; the button keeps its colour. */
|
|
14
|
+
loading?: boolean;
|
|
6
15
|
disabled?: boolean;
|
|
7
16
|
/** Stays above the bottom safe area from KjunProvider (default true). */
|
|
8
17
|
safeArea?: boolean;
|
|
9
|
-
/**
|
|
18
|
+
/** Stays above the app's KjunBottomNavigation and KjunBottomActionBar (default true); false where the bar is not under the FAB. */
|
|
19
|
+
avoidBottomBar?: boolean;
|
|
20
|
+
/** Extra space below, in px. */
|
|
10
21
|
offsetBottom?: number;
|
|
11
22
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
12
23
|
}
|
|
13
|
-
/** A
|
|
14
|
-
export declare
|
|
24
|
+
/** A primary action pinned to the bottom end of the viewport: a circle, or a capsule with a label. */
|
|
25
|
+
export declare const KjunFab: import("react").ForwardRefExoticComponent<KjunFabProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { KjunMessages } from "../../../shared/package-runtime/messages/index.cjs";
|
|
2
|
+
import { type KjunUploadFile } from "../../../shared/package-runtime/file-upload.cjs";
|
|
3
|
+
export interface FileUploadRowProps {
|
|
4
|
+
file: KjunUploadFile;
|
|
5
|
+
m: KjunMessages;
|
|
6
|
+
intl?: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
onRemove?: (id: string) => void;
|
|
9
|
+
onRetry?: (id: string) => void;
|
|
10
|
+
/** Single-file mode: opens the picker to replace this file. */
|
|
11
|
+
onReplace?: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** One file: thumbnail, middle-truncated name, size and status in words, a bar while uploading, then its actions. */
|
|
14
|
+
export declare function FileUploadRow({ file, m, intl, disabled, onRemove, onRetry, onReplace }: FileUploadRowProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface FileUploadTileProps {
|
|
16
|
+
file: KjunUploadFile;
|
|
17
|
+
m: KjunMessages;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
onRemove?: (id: string) => void;
|
|
20
|
+
onRetry?: (id: string) => void;
|
|
21
|
+
}
|
|
22
|
+
/** layout="grid": a square tile with the preview, a bar while uploading, a fill and retry when failed, × at the corner. */
|
|
23
|
+
export declare function FileUploadTile({ file, m, disabled, onRemove, onRetry }: FileUploadTileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { KjunMessages } from "../../../shared/package-runtime/messages/index.js";
|
|
2
|
+
import { type KjunUploadFile } from "../../../shared/package-runtime/file-upload.js";
|
|
3
|
+
export interface FileUploadRowProps {
|
|
4
|
+
file: KjunUploadFile;
|
|
5
|
+
m: KjunMessages;
|
|
6
|
+
intl?: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
onRemove?: (id: string) => void;
|
|
9
|
+
onRetry?: (id: string) => void;
|
|
10
|
+
/** Single-file mode: opens the picker to replace this file. */
|
|
11
|
+
onReplace?: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** One file: thumbnail, middle-truncated name, size and status in words, a bar while uploading, then its actions. */
|
|
14
|
+
export declare function FileUploadRow({ file, m, intl, disabled, onRemove, onRetry, onReplace }: FileUploadRowProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface FileUploadTileProps {
|
|
16
|
+
file: KjunUploadFile;
|
|
17
|
+
m: KjunMessages;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
onRemove?: (id: string) => void;
|
|
20
|
+
onRetry?: (id: string) => void;
|
|
21
|
+
}
|
|
22
|
+
/** layout="grid": a square tile with the preview, a bar while uploading, a fill and retry when failed, × at the corner. */
|
|
23
|
+
export declare function FileUploadTile({ file, m, disabled, onRemove, onRetry }: FileUploadTileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
import { type KjunRejectedFile, type KjunUploadFile, type KjunUploadLayout, type KjunUploadSize, type KjunUploadTrigger } from "../../../shared/package-runtime/file-upload.cjs";
|
|
3
|
+
export type { KjunUploadFile, KjunUploadStatus, KjunRejectedFile, KjunRejectReason, KjunUploadSize, KjunUploadTrigger, KjunUploadLayout, } from "../../../shared/package-runtime/file-upload.cjs";
|
|
4
|
+
export interface KjunFileUploadProps {
|
|
5
|
+
/** The app's files. Empty shows the pick zone; any file folds it into a list with an add row. */
|
|
6
|
+
files?: KjunUploadFile[];
|
|
7
|
+
/** <input accept> rules such as ".pdf,image/*". Also lists the allowed types in the hint. */
|
|
8
|
+
accept?: string;
|
|
9
|
+
/** Largest file in bytes. */
|
|
10
|
+
maxSize?: number;
|
|
11
|
+
maxFiles?: number;
|
|
12
|
+
/** false: one file; a new pick replaces it. */
|
|
13
|
+
multiple?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Second line of the zone; built from accept, maxSize and maxFiles when left out. */
|
|
16
|
+
hint?: string;
|
|
17
|
+
/** "compact": the empty field is the one-line add row (80px card) instead of the tall zone. */
|
|
18
|
+
size?: KjunUploadSize;
|
|
19
|
+
/** "button": a "Choose files" button at the end of a text line picks instead of a pressable area; drops still land on the card. */
|
|
20
|
+
trigger?: KjunUploadTrigger;
|
|
21
|
+
/** "grid": files show as square tiles (photos) with an add tile, instead of rows. */
|
|
22
|
+
layout?: KjunUploadLayout;
|
|
23
|
+
/** Picks that passed the pre-screen, and the ones that did not. The app adds `accepted` to `files` and uploads them. */
|
|
24
|
+
onSelect: (accepted: File[], rejected: KjunRejectedFile<File>[]) => void;
|
|
25
|
+
/** The × on a row: cancels a waiting or uploading file, removes a finished one. Server-side deletion is the app's call. */
|
|
26
|
+
onRemove?: (id: string) => void;
|
|
27
|
+
/** Retry on a failed row; the head's retry calls it for each failed row. */
|
|
28
|
+
onRetry?: (id: string) => void;
|
|
29
|
+
/** Id of the hidden file input, for an outside <label for>; defaults to the FormGroup's id. */
|
|
30
|
+
id?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
/** Names the field when no FormGroup label does. */
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
/** Extra description ids, merged with the FormGroup's hint and error. */
|
|
36
|
+
ariaDescribedBy?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function KjunFileUpload({ files, accept, maxSize, maxFiles, multiple, disabled, hint, size, trigger, layout, onSelect, onRemove, onRetry, id, className, style, ariaLabel, ariaDescribedBy, }: KjunFileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
import { type KjunRejectedFile, type KjunUploadFile, type KjunUploadLayout, type KjunUploadSize, type KjunUploadTrigger } from "../../../shared/package-runtime/file-upload.js";
|
|
3
|
+
export type { KjunUploadFile, KjunUploadStatus, KjunRejectedFile, KjunRejectReason, KjunUploadSize, KjunUploadTrigger, KjunUploadLayout, } from "../../../shared/package-runtime/file-upload.js";
|
|
4
|
+
export interface KjunFileUploadProps {
|
|
5
|
+
/** The app's files. Empty shows the pick zone; any file folds it into a list with an add row. */
|
|
6
|
+
files?: KjunUploadFile[];
|
|
7
|
+
/** <input accept> rules such as ".pdf,image/*". Also lists the allowed types in the hint. */
|
|
8
|
+
accept?: string;
|
|
9
|
+
/** Largest file in bytes. */
|
|
10
|
+
maxSize?: number;
|
|
11
|
+
maxFiles?: number;
|
|
12
|
+
/** false: one file; a new pick replaces it. */
|
|
13
|
+
multiple?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Second line of the zone; built from accept, maxSize and maxFiles when left out. */
|
|
16
|
+
hint?: string;
|
|
17
|
+
/** "compact": the empty field is the one-line add row (80px card) instead of the tall zone. */
|
|
18
|
+
size?: KjunUploadSize;
|
|
19
|
+
/** "button": a "Choose files" button at the end of a text line picks instead of a pressable area; drops still land on the card. */
|
|
20
|
+
trigger?: KjunUploadTrigger;
|
|
21
|
+
/** "grid": files show as square tiles (photos) with an add tile, instead of rows. */
|
|
22
|
+
layout?: KjunUploadLayout;
|
|
23
|
+
/** Picks that passed the pre-screen, and the ones that did not. The app adds `accepted` to `files` and uploads them. */
|
|
24
|
+
onSelect: (accepted: File[], rejected: KjunRejectedFile<File>[]) => void;
|
|
25
|
+
/** The × on a row: cancels a waiting or uploading file, removes a finished one. Server-side deletion is the app's call. */
|
|
26
|
+
onRemove?: (id: string) => void;
|
|
27
|
+
/** Retry on a failed row; the head's retry calls it for each failed row. */
|
|
28
|
+
onRetry?: (id: string) => void;
|
|
29
|
+
/** Id of the hidden file input, for an outside <label for>; defaults to the FormGroup's id. */
|
|
30
|
+
id?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
/** Names the field when no FormGroup label does. */
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
/** Extra description ids, merged with the FormGroup's hint and error. */
|
|
36
|
+
ariaDescribedBy?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function KjunFileUpload({ files, accept, maxSize, maxFiles, multiple, disabled, hint, size, trigger, layout, onSelect, onRemove, onRetry, id, className, style, ariaLabel, ariaDescribedBy, }: KjunFileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SparklineData } from "../../../shared/package-runtime/sparkline.cjs";
|
|
2
|
+
import { type HeatCellColor, type HeatCellMode, type ProgressCellColor } from "../../../shared/package-runtime/data-cells.cjs";
|
|
3
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
4
|
import { type DisplaySize } from "./display.cjs";
|
|
3
5
|
export interface KjunDeviationProps {
|
|
4
6
|
value?: number | null;
|
|
@@ -9,29 +11,43 @@ export interface KjunDeviationProps {
|
|
|
9
11
|
}
|
|
10
12
|
export declare function KjunDeviation({ value, variant, signalThreshold, decimals, formatter, }: KjunDeviationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export interface KjunHeatmapCellProps {
|
|
12
|
-
|
|
14
|
+
/** null or a number that is not finite shows a dash on no fill. */
|
|
15
|
+
value?: number | null;
|
|
13
16
|
min?: number;
|
|
14
17
|
max?: number;
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
/** Where diverging and price cells change side (default the middle of min and max). Both sides share one scale. */
|
|
19
|
+
center?: number;
|
|
20
|
+
mode?: HeatCellMode;
|
|
21
|
+
color?: HeatCellColor;
|
|
17
22
|
children?: ReactNode;
|
|
18
23
|
}
|
|
19
|
-
export declare function KjunHeatmapCell({ value, min, max, mode, color, children, }: KjunHeatmapCellProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function KjunHeatmapCell({ value, min, max, center, mode, color, children, }: KjunHeatmapCellProps): import("react/jsx-runtime").JSX.Element;
|
|
20
25
|
export interface KjunProgressCellProps {
|
|
21
26
|
value?: number;
|
|
22
27
|
max?: number;
|
|
23
28
|
showLabel?: boolean;
|
|
24
|
-
|
|
29
|
+
/** "custom" (or customColor alone) takes customColor; without one "custom" falls back to the auto colours. */
|
|
30
|
+
color?: ProgressCellColor;
|
|
25
31
|
customColor?: string;
|
|
26
32
|
height?: number;
|
|
33
|
+
/** Shown and read in place of the rounded percent, e.g. "12/20건"; the bar's length still comes from value and max. */
|
|
34
|
+
valueText?: string;
|
|
35
|
+
/** The bar's name for screen readers, e.g. the row's name ("A팀 진척"). */
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/** A reference point across the bar on the value's own scale (0 to max), such as today's share of a budget. */
|
|
38
|
+
marker?: number;
|
|
39
|
+
/** Read by screen readers as the bar's description, e.g. "오늘 기준 53%". */
|
|
40
|
+
markerLabel?: string;
|
|
27
41
|
}
|
|
28
|
-
export declare function KjunProgressCell({ value, max, showLabel, color, customColor, height, }: KjunProgressCellProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function KjunProgressCell({ value, max, showLabel, color, customColor, height, valueText, ariaLabel, marker, markerLabel, }: KjunProgressCellProps): import("react/jsx-runtime").JSX.Element;
|
|
29
43
|
export interface KjunCollectionMarkProps {
|
|
30
44
|
kind: "favorite" | "interest";
|
|
31
45
|
active?: boolean;
|
|
32
46
|
size?: "sm" | "md" | "lg";
|
|
47
|
+
/** What an active mark says to a screen reader (default "즐겨찾기" or "관심"). An inactive mark stays hidden. */
|
|
48
|
+
label?: string;
|
|
33
49
|
}
|
|
34
|
-
export declare function KjunCollectionMark({ kind, active, size, }: KjunCollectionMarkProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare function KjunCollectionMark({ kind, active, size, label, }: KjunCollectionMarkProps): import("react/jsx-runtime").JSX.Element;
|
|
35
51
|
export declare const executionStates: {
|
|
36
52
|
readonly queued: readonly [
|
|
37
53
|
"secondary",
|
|
@@ -73,12 +89,13 @@ export interface KjunExecutionStatusBadgeProps {
|
|
|
73
89
|
}
|
|
74
90
|
export declare function KjunExecutionStatusBadge({ status, label, size, }: KjunExecutionStatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
75
91
|
export interface KjunSparklineProps {
|
|
76
|
-
|
|
92
|
+
/** Values in time order. null, undefined and non-finite numbers are gaps: the line breaks there. */
|
|
93
|
+
data?: SparklineData;
|
|
77
94
|
width?: number;
|
|
78
95
|
height?: number;
|
|
79
96
|
color?: string;
|
|
80
97
|
semantic?: "price" | "status";
|
|
81
|
-
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color. */
|
|
98
|
+
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color and the others stay quiet. */
|
|
82
99
|
variant?: "line" | "bar";
|
|
83
100
|
fill?: boolean;
|
|
84
101
|
strokeWidth?: number;
|
|
@@ -90,6 +107,10 @@ export interface KjunSparklineProps {
|
|
|
90
107
|
max?: number;
|
|
91
108
|
/** Marks the last value with a dot (line variant; default true). */
|
|
92
109
|
endDot?: boolean;
|
|
110
|
+
/** Names the chart for screen readers; without it the chart is decorative. With no data, the no-data message follows it. */
|
|
93
111
|
ariaLabel?: string;
|
|
112
|
+
className?: string;
|
|
113
|
+
style?: CSSProperties;
|
|
114
|
+
id?: string;
|
|
94
115
|
}
|
|
95
|
-
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, className, style, id, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|