@kjun-ui/react 0.21.0 → 0.23.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 +8795 -3753
- package/dist/index.js +9349 -4284
- package/dist/styles.css +2736 -480
- 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 -4
- package/dist/types/packages/react/src/app-navigation.d.ts +14 -4
- 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 +15 -6
- package/dist/types/packages/react/src/button.d.ts +15 -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.d.cts +10 -3
- package/dist/types/packages/react/src/card.d.ts +10 -3
- 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/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.d.cts +8 -1
- package/dist/types/packages/react/src/color-picker.d.ts +8 -1
- 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 +19 -6
- package/dist/types/packages/react/src/data-state.d.ts +19 -6
- 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 +33 -8
- package/dist/types/packages/react/src/display.d.ts +33 -8
- 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 +21 -6
- package/dist/types/packages/react/src/dropdown.d.ts +21 -6
- 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 +2 -0
- package/dist/types/packages/react/src/fab.d.ts +2 -0
- 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 +12 -1
- package/dist/types/packages/react/src/index.d.ts +12 -1
- package/dist/types/packages/react/src/input.d.cts +27 -1
- package/dist/types/packages/react/src/input.d.ts +27 -1
- package/dist/types/packages/react/src/kpi-hero.d.cts +2 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +2 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +5 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +5 -0
- 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 +2 -1
- package/dist/types/packages/react/src/list-context.d.ts +2 -1
- package/dist/types/packages/react/src/list.d.cts +49 -12
- package/dist/types/packages/react/src/list.d.ts +49 -12
- package/dist/types/packages/react/src/market-model.d.cts +15 -1
- package/dist/types/packages/react/src/market-model.d.ts +15 -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 +11 -2
- package/dist/types/packages/react/src/modal.d.ts +11 -2
- package/dist/types/packages/react/src/navigation.d.cts +34 -5
- package/dist/types/packages/react/src/navigation.d.ts +34 -5
- package/dist/types/packages/react/src/number-display.d.cts +8 -5
- package/dist/types/packages/react/src/number-display.d.ts +8 -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/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-spaces.d.cts +31 -0
- package/dist/types/packages/react/src/side-navigation-layout-spaces.d.ts +31 -0
- package/dist/types/packages/react/src/side-navigation-layout.d.cts +63 -0
- package/dist/types/packages/react/src/side-navigation-layout.d.ts +63 -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 +18 -3
- package/dist/types/packages/react/src/skeletons.d.ts +18 -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 +20 -5
- package/dist/types/packages/react/src/split-pane.d.ts +20 -5
- package/dist/types/packages/react/src/stacked-bar.d.cts +3 -1
- package/dist/types/packages/react/src/stacked-bar.d.ts +3 -1
- package/dist/types/packages/react/src/steps.d.cts +27 -0
- package/dist/types/packages/react/src/steps.d.ts +27 -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/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-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 +1 -1
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +1 -1
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +10 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +10 -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 +8 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +8 -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 +1 -1
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
- 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/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 +36 -1
- package/dist/types/shared/package-runtime/distribution.d.ts +36 -1
- 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/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/field-group.d.cts +17 -0
- package/dist/types/shared/package-runtime/field-group.d.ts +17 -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 +13 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +13 -0
- 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-row.d.cts +71 -8
- package/dist/types/shared/package-runtime/list-row.d.ts +71 -8
- package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
- package/dist/types/shared/package-runtime/market-query.d.cts +6 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +6 -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 +77 -1
- package/dist/types/shared/package-runtime/messages/ko.d.ts +77 -1
- package/dist/types/shared/package-runtime/messages-context.d.cts +69 -1
- package/dist/types/shared/package-runtime/messages-context.d.ts +69 -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/node-text.d.cts +1 -0
- package/dist/types/shared/package-runtime/node-text.d.ts +1 -0
- package/dist/types/shared/package-runtime/number-input.d.cts +73 -0
- package/dist/types/shared/package-runtime/number-input.d.ts +73 -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/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/progress-tone.d.cts +6 -0
- package/dist/types/shared/package-runtime/progress-tone.d.ts +6 -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-layout.d.cts +24 -0
- package/dist/types/shared/package-runtime/side-navigation-layout.d.ts +24 -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 +4 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +4 -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 +40 -1
- package/dist/types/shared/package-runtime/split-pane.d.ts +40 -1
- package/dist/types/shared/package-runtime/steps.d.cts +51 -0
- package/dist/types/shared/package-runtime/steps.d.ts +51 -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 +8 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +8 -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 +12 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +12 -2
- package/dist/types/shared/package-runtime/table.d.cts +17 -2
- package/dist/types/shared/package-runtime/table.d.ts +17 -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 +3 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +3 -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-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
|
@@ -51,13 +51,21 @@ export declare const useKjunMessages: () => {
|
|
|
51
51
|
optional: string;
|
|
52
52
|
clearSelection: string;
|
|
53
53
|
searchOptions: string;
|
|
54
|
+
avatarGroupCount: (count: number) => string;
|
|
54
55
|
selectedCount: (count: number) => string;
|
|
56
|
+
eventCount: (count: number) => string;
|
|
57
|
+
holiday: string;
|
|
55
58
|
loadMore: string;
|
|
56
59
|
clearInput: string;
|
|
60
|
+
revealPassword: string;
|
|
61
|
+
concealPassword: string;
|
|
62
|
+
revealPasswordLabel: string;
|
|
63
|
+
concealPasswordLabel: string;
|
|
57
64
|
clearValue: (label: string) => string;
|
|
58
65
|
datePlaceholder: string;
|
|
59
66
|
clearDate: string;
|
|
60
67
|
calendarTitle: (year: number, month: number) => string;
|
|
68
|
+
weekTitle: (y1: number, m1: number, d1: number, y2: number, m2: number, d2: number) => string;
|
|
61
69
|
weekdays: string;
|
|
62
70
|
previousMonth: string;
|
|
63
71
|
nextMonth: string;
|
|
@@ -70,6 +78,8 @@ export declare const useKjunMessages: () => {
|
|
|
70
78
|
rangeEndDay: string;
|
|
71
79
|
inRangeDay: string;
|
|
72
80
|
chooseEndDate: string;
|
|
81
|
+
rangePresets: string;
|
|
82
|
+
rangeLength: (minDays?: number, maxDays?: number) => string;
|
|
73
83
|
today: string;
|
|
74
84
|
apply: string;
|
|
75
85
|
rangePlaceholder: string;
|
|
@@ -84,6 +94,8 @@ export declare const useKjunMessages: () => {
|
|
|
84
94
|
minute: string;
|
|
85
95
|
second: string;
|
|
86
96
|
timePlaceholder: string;
|
|
97
|
+
selectTime: string;
|
|
98
|
+
now: string;
|
|
87
99
|
value: string;
|
|
88
100
|
minimum: string;
|
|
89
101
|
maximum: string;
|
|
@@ -114,6 +126,7 @@ export declare const useKjunMessages: () => {
|
|
|
114
126
|
searchTable: string;
|
|
115
127
|
expandRow: string;
|
|
116
128
|
collapse: string;
|
|
129
|
+
expand: string;
|
|
117
130
|
showDetails: string;
|
|
118
131
|
ascending: string;
|
|
119
132
|
sortBy: string;
|
|
@@ -123,6 +136,15 @@ export declare const useKjunMessages: () => {
|
|
|
123
136
|
showPath: string;
|
|
124
137
|
breadcrumb: string;
|
|
125
138
|
mainNavigation: string;
|
|
139
|
+
collapseNavigation: string;
|
|
140
|
+
expandNavigation: string;
|
|
141
|
+
spacesPanel: string;
|
|
142
|
+
collapseSpacesPanel: string;
|
|
143
|
+
expandSpacesPanel: string;
|
|
144
|
+
showMoreItems: (count: number) => string;
|
|
145
|
+
showFewerItems: string;
|
|
146
|
+
showMoreText: string;
|
|
147
|
+
showLessText: string;
|
|
126
148
|
newCount: (count: number) => string;
|
|
127
149
|
saving: string;
|
|
128
150
|
charactersLeft: (count: number) => string;
|
|
@@ -130,8 +152,10 @@ export declare const useKjunMessages: () => {
|
|
|
130
152
|
pagination: string;
|
|
131
153
|
itemsPerPage: string;
|
|
132
154
|
perPage: (count: number) => string;
|
|
133
|
-
|
|
155
|
+
pageSizeMenu: (label: string) => string;
|
|
156
|
+
pageRange: (from: string, to: string, total: string) => string;
|
|
134
157
|
page: (page: number) => string;
|
|
158
|
+
filterCount: (label: string, count: string) => string;
|
|
135
159
|
firstPage: string;
|
|
136
160
|
previousPage: string;
|
|
137
161
|
nextPage: string;
|
|
@@ -143,6 +167,14 @@ export declare const useKjunMessages: () => {
|
|
|
143
167
|
nextSlide: string;
|
|
144
168
|
goToSlide: (slide: number) => string;
|
|
145
169
|
slideOf: (slide: number, total: number) => string;
|
|
170
|
+
steps: string;
|
|
171
|
+
stepComplete: string;
|
|
172
|
+
stepCurrent: string;
|
|
173
|
+
stepError: string;
|
|
174
|
+
stepUpcoming: string;
|
|
175
|
+
stepNext: string;
|
|
176
|
+
stepPosition: (index: number) => string;
|
|
177
|
+
stepCount: (index: number, total: number) => string;
|
|
146
178
|
moveUp: (name: string) => string;
|
|
147
179
|
moveDown: (name: string) => string;
|
|
148
180
|
reorderMoved: (name: string, position: number, total: number) => string;
|
|
@@ -150,6 +182,7 @@ export declare const useKjunMessages: () => {
|
|
|
150
182
|
reorderGrabbed: (name: string) => string;
|
|
151
183
|
reorderDropped: (name: string, position: number, total: number) => string;
|
|
152
184
|
reorderCancelled: (name: string) => string;
|
|
185
|
+
tableReorderColumn: string;
|
|
153
186
|
tableReorderLocked: string;
|
|
154
187
|
colorPlaceholder: string;
|
|
155
188
|
colorPicker: string;
|
|
@@ -173,6 +206,9 @@ export declare const useKjunMessages: () => {
|
|
|
173
206
|
metrics: string;
|
|
174
207
|
watchToggle: (name: string, active: boolean) => string;
|
|
175
208
|
favoriteToggle: (name: string, active: boolean) => string;
|
|
209
|
+
interestMark: string;
|
|
210
|
+
favoriteMark: string;
|
|
211
|
+
collectionMarks: string;
|
|
176
212
|
lastUpdated: string;
|
|
177
213
|
unitLabel: string;
|
|
178
214
|
totalCount: (count: number, unit: string) => string;
|
|
@@ -188,4 +224,36 @@ export declare const useKjunMessages: () => {
|
|
|
188
224
|
statusFailed: string;
|
|
189
225
|
statusUnknown: string;
|
|
190
226
|
statusNoRuns: string;
|
|
227
|
+
uploadDropOrSelect: string;
|
|
228
|
+
uploadSelect: string;
|
|
229
|
+
uploadAddOrDrop: string;
|
|
230
|
+
uploadAdd: string;
|
|
231
|
+
uploadDropHere: string;
|
|
232
|
+
uploadDropCount: (count: number) => string;
|
|
233
|
+
uploadDropOverflow: (room: number, extra: number) => string;
|
|
234
|
+
uploadTypeBlockedTitle: string;
|
|
235
|
+
uploadTypeBlocked: (types: string) => string;
|
|
236
|
+
uploadRejected: (name: string, reason: string, detail: string) => string;
|
|
237
|
+
uploadRejectedMore: (count: number) => string;
|
|
238
|
+
uploadFull: (max: number) => string;
|
|
239
|
+
uploadFullHint: string;
|
|
240
|
+
uploadQueued: string;
|
|
241
|
+
uploadDone: string;
|
|
242
|
+
uploadFailed: string;
|
|
243
|
+
uploadProgress: (name: string) => string;
|
|
244
|
+
uploadRetry: (name: string) => string;
|
|
245
|
+
uploadRetryFailed: string;
|
|
246
|
+
uploadCancel: (name: string) => string;
|
|
247
|
+
uploadEmpty: string;
|
|
248
|
+
uploadReplace: string;
|
|
249
|
+
uploadReplaceFile: (name: string) => string;
|
|
250
|
+
uploadFiles: string;
|
|
251
|
+
uploadFailedCount: (count: number) => string;
|
|
252
|
+
uploadHint: (types: string, size?: string, count?: number) => string;
|
|
253
|
+
uploadAnnounce: (name: string, status: string) => string;
|
|
254
|
+
uploadGroup: (group: string) => string;
|
|
255
|
+
numberRangeMin: (limit: string) => string;
|
|
256
|
+
numberRangeMax: (limit: string) => string;
|
|
257
|
+
numberUnitEok: string;
|
|
258
|
+
numberUnitMan: string;
|
|
191
259
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The web close button: a 32px square with its own radius. Inline, because the button sets its size and radius inline. */
|
|
2
|
+
export declare const modalCloseStyle: {
|
|
3
|
+
borderRadius: 8;
|
|
4
|
+
width: 32;
|
|
5
|
+
height: 32;
|
|
6
|
+
padding: number;
|
|
7
|
+
};
|
|
8
|
+
/** The Native close button: React Native's own padding keys, which the button's padding would otherwise win over. */
|
|
9
|
+
export declare const nativeModalCloseStyle: {
|
|
10
|
+
borderRadius: 8;
|
|
11
|
+
width: 32;
|
|
12
|
+
height: 32;
|
|
13
|
+
paddingHorizontal: number;
|
|
14
|
+
paddingVertical: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The web close button: a 32px square with its own radius. Inline, because the button sets its size and radius inline. */
|
|
2
|
+
export declare const modalCloseStyle: {
|
|
3
|
+
borderRadius: 8;
|
|
4
|
+
width: 32;
|
|
5
|
+
height: 32;
|
|
6
|
+
padding: number;
|
|
7
|
+
};
|
|
8
|
+
/** The Native close button: React Native's own padding keys, which the button's padding would otherwise win over. */
|
|
9
|
+
export declare const nativeModalCloseStyle: {
|
|
10
|
+
borderRadius: 8;
|
|
11
|
+
width: 32;
|
|
12
|
+
height: 32;
|
|
13
|
+
paddingHorizontal: number;
|
|
14
|
+
paddingVertical: number;
|
|
15
|
+
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare function useInitialTab(value: string, candidate: string | undefined, change: (name: string) => void): void;
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Which items of an Accordion are open. With value the group is controlled: it shows value only and onValueChange
|
|
3
|
+
* requests each change; without it the group keeps its own set (from defaultValue and the items' defaultOpen) and reports changes. */
|
|
4
|
+
export declare function useAccordionState(multiple: boolean, control?: {
|
|
5
|
+
value?: readonly string[];
|
|
6
|
+
defaultValue?: readonly string[];
|
|
7
|
+
onValueChange?: (value: string[]) => void;
|
|
8
|
+
}): {
|
|
9
|
+
opened: import("./accordion-state.cjs").OpenedItems;
|
|
10
|
+
controlled: boolean;
|
|
4
11
|
toggle: (id: string) => void;
|
|
5
12
|
register: (id: string, defaultOpen: boolean) => () => void;
|
|
6
13
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare function useInitialTab(value: string, candidate: string | undefined, change: (name: string) => void): void;
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** Which items of an Accordion are open. With value the group is controlled: it shows value only and onValueChange
|
|
3
|
+
* requests each change; without it the group keeps its own set (from defaultValue and the items' defaultOpen) and reports changes. */
|
|
4
|
+
export declare function useAccordionState(multiple: boolean, control?: {
|
|
5
|
+
value?: readonly string[];
|
|
6
|
+
defaultValue?: readonly string[];
|
|
7
|
+
onValueChange?: (value: string[]) => void;
|
|
8
|
+
}): {
|
|
9
|
+
opened: import("./accordion-state.js").OpenedItems;
|
|
10
|
+
controlled: boolean;
|
|
4
11
|
toggle: (id: string) => void;
|
|
5
12
|
register: (id: string, defaultOpen: boolean) => () => void;
|
|
6
13
|
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
/** Development only: warns once per call when `root` holds a control. */
|
|
2
2
|
export declare function warnNestedControls(root: Element | null | undefined, message: string): void;
|
|
3
|
+
/** Whether a click on a clickable row or card started on a control inside it (a button, link or field), which acts on its
|
|
4
|
+
* own, or came from outside the row's DOM (React bubbles portal events, such as a popover opened from a cell). The row
|
|
5
|
+
* then leaves the click alone. Controls do not stop clicks from bubbling, so page-level listeners still see them. */
|
|
6
|
+
export declare function fromNestedControl(event: {
|
|
7
|
+
target: EventTarget | null;
|
|
8
|
+
currentTarget: EventTarget | null;
|
|
9
|
+
}): boolean;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
/** Development only: warns once per call when `root` holds a control. */
|
|
2
2
|
export declare function warnNestedControls(root: Element | null | undefined, message: string): void;
|
|
3
|
+
/** Whether a click on a clickable row or card started on a control inside it (a button, link or field), which acts on its
|
|
4
|
+
* own, or came from outside the row's DOM (React bubbles portal events, such as a popover opened from a cell). The row
|
|
5
|
+
* then leaves the click alone. Controls do not stop clicks from bubbling, so page-level listeners still see them. */
|
|
6
|
+
export declare function fromNestedControl(event: {
|
|
7
|
+
target: EventTarget | null;
|
|
8
|
+
currentTarget: EventTarget | null;
|
|
9
|
+
}): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function nodeText(node: unknown): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function nodeText(node: unknown): string | undefined;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { KjunMessageScope } from "./messages/index.cjs";
|
|
2
|
+
export type NumberInputFormat = "number" | "amount" | "percent";
|
|
3
|
+
export interface NumberInputOptions {
|
|
4
|
+
format?: NumberInputFormat;
|
|
5
|
+
decimals?: number;
|
|
6
|
+
grouping?: boolean;
|
|
7
|
+
allowNegative?: boolean;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
suffix?: unknown;
|
|
11
|
+
/** Unit the committed value lands on, counted from `min` (or 0); ArrowUp/ArrowDown move by it. */
|
|
12
|
+
step?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ResolvedNumberInput {
|
|
15
|
+
format: NumberInputFormat;
|
|
16
|
+
decimals: number;
|
|
17
|
+
grouping: boolean;
|
|
18
|
+
allowNegative: boolean;
|
|
19
|
+
min?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
suffix?: string;
|
|
22
|
+
maxIntegerDigits: number;
|
|
23
|
+
/** A positive step rounded to `decimals`; undefined when not given or when it rounds to 0. */
|
|
24
|
+
step?: number;
|
|
25
|
+
}
|
|
26
|
+
/** Preset plus the caller's overrides; decimals are cut to a whole 0-6 so the scaled value stays a safe integer. */
|
|
27
|
+
export declare function resolveNumberInput(options: NumberInputOptions): ResolvedNumberInput;
|
|
28
|
+
/** A committed value moved to the nearest multiple of step from `min` (or 0); one that cannot be negative goes up a step instead.
|
|
29
|
+
* The range is not enforced: a value past min/max stays past it and shows the range message. No step, or "", returns `raw`. */
|
|
30
|
+
export declare function snapNumber(raw: string, o: ResolvedNumberInput): string;
|
|
31
|
+
/** ArrowUp (1) / ArrowDown (-1): the next multiple of step from `min` (or 0) in that direction, kept within min/max (and 0 when the
|
|
32
|
+
* value cannot be negative). An empty field starts at `min`, or 0 kept within range. Null when there is no step. */
|
|
33
|
+
export declare function stepNumber(raw: string, direction: 1 | -1, o: ResolvedNumberInput): string | null;
|
|
34
|
+
export interface SanitizeOptions {
|
|
35
|
+
/** Pasted or dropped text: with no decimals allowed, the fraction is dropped at the first "." ("1,234,000.00" → "1234000") instead of the dots being ignored. */
|
|
36
|
+
pasted?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** Keeps digits, one ".", and "-" when allowed; any "-" in the text makes the value negative. Returns the draft ("-12.5", "12.", "").
|
|
39
|
+
* A dot with no digits becomes "0." (or "-0.") when decimals are allowed, so ".5" can be typed. Integer digits past the limit are cut. */
|
|
40
|
+
export declare function sanitizeNumber(text: string, o: ResolvedNumberInput, options?: SanitizeOptions): string;
|
|
41
|
+
/** True when `next` holds more integer digits than the field keeps and more than `previous` did: a typed edit like that is refused, not cut. */
|
|
42
|
+
export declare function addsTooManyDigits(previous: string, next: string, o: ResolvedNumberInput): boolean;
|
|
43
|
+
/** An edit that inserted more than one character at once, or that the browser reports as a paste or drop. */
|
|
44
|
+
export declare function isPasteEdit(before: string, after: string, inputType?: string): boolean;
|
|
45
|
+
/** Whether two values name the same number: "12." and "12" do, "", "-" and "." are all empty, "" and "0" are not. */
|
|
46
|
+
export declare function sameNumber(a: string, b: string): boolean;
|
|
47
|
+
/** Display text: thousands commas only, nothing padded. */
|
|
48
|
+
export declare function formatNumber(raw: string, o: ResolvedNumberInput): string;
|
|
49
|
+
/** The value kept on blur/Enter: "" and "-" become "", a bare dot ("0.") is zero, "-0" becomes "0", the fraction is padded to decimals. */
|
|
50
|
+
export declare function commitNumber(raw: string, o: ResolvedNumberInput): string;
|
|
51
|
+
/** How many digits, "." and "-" sit before the caret. */
|
|
52
|
+
export declare function significantCount(text: string, caret: number): number;
|
|
53
|
+
/** The caret position right after that many digits, "." and "-". */
|
|
54
|
+
export declare function caretForCount(display: string, count: number): number;
|
|
55
|
+
/** Where the caret sits after an edit that turned `before` into `after`, from the text alone: right after the changed part.
|
|
56
|
+
* Platforms that report the selection separately from the text (React Native) can send the two in either order. */
|
|
57
|
+
export declare function caretAfterEdit(before: string, after: string): number;
|
|
58
|
+
/** Backspace right after a comma deletes the digit before it, Delete right before one deletes the digit after it. Returns the text without commas and the caret in it; null when the browser's default is right. */
|
|
59
|
+
export declare function deleteAcrossSeparator(display: string, start: number, end: number, key: "Backspace" | "Delete"): {
|
|
60
|
+
text: string;
|
|
61
|
+
caret: number;
|
|
62
|
+
} | null;
|
|
63
|
+
export declare function rangeIssue(raw: string, o: ResolvedNumberInput): "min" | "max" | null;
|
|
64
|
+
/** "100% 이하로 입력해 주세요": the limit is formatted like the value, with the suffix attached without a space. */
|
|
65
|
+
export declare function rangeMessage(kind: "min" | "max", o: ResolvedNumberInput, scope?: KjunMessageScope): string;
|
|
66
|
+
/** "1억 2,003만 5,000 원" for an integer part of 10,000 or more; empty for percent and for languages other than Korean. */
|
|
67
|
+
export declare function readingAid(raw: string, o: ResolvedNumberInput, scope?: KjunMessageScope): string;
|
|
68
|
+
/** Keyboard for a number field. A negative value needs a minus key, which the numeric pads lack (iOS shows none at all). */
|
|
69
|
+
export declare function numberKeyboard(o: Pick<ResolvedNumberInput, "allowNegative" | "decimals">): {
|
|
70
|
+
inputMode: "numeric" | "decimal" | "text";
|
|
71
|
+
ios: string;
|
|
72
|
+
android: string;
|
|
73
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { KjunMessageScope } from "./messages/index.js";
|
|
2
|
+
export type NumberInputFormat = "number" | "amount" | "percent";
|
|
3
|
+
export interface NumberInputOptions {
|
|
4
|
+
format?: NumberInputFormat;
|
|
5
|
+
decimals?: number;
|
|
6
|
+
grouping?: boolean;
|
|
7
|
+
allowNegative?: boolean;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
suffix?: unknown;
|
|
11
|
+
/** Unit the committed value lands on, counted from `min` (or 0); ArrowUp/ArrowDown move by it. */
|
|
12
|
+
step?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ResolvedNumberInput {
|
|
15
|
+
format: NumberInputFormat;
|
|
16
|
+
decimals: number;
|
|
17
|
+
grouping: boolean;
|
|
18
|
+
allowNegative: boolean;
|
|
19
|
+
min?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
suffix?: string;
|
|
22
|
+
maxIntegerDigits: number;
|
|
23
|
+
/** A positive step rounded to `decimals`; undefined when not given or when it rounds to 0. */
|
|
24
|
+
step?: number;
|
|
25
|
+
}
|
|
26
|
+
/** Preset plus the caller's overrides; decimals are cut to a whole 0-6 so the scaled value stays a safe integer. */
|
|
27
|
+
export declare function resolveNumberInput(options: NumberInputOptions): ResolvedNumberInput;
|
|
28
|
+
/** A committed value moved to the nearest multiple of step from `min` (or 0); one that cannot be negative goes up a step instead.
|
|
29
|
+
* The range is not enforced: a value past min/max stays past it and shows the range message. No step, or "", returns `raw`. */
|
|
30
|
+
export declare function snapNumber(raw: string, o: ResolvedNumberInput): string;
|
|
31
|
+
/** ArrowUp (1) / ArrowDown (-1): the next multiple of step from `min` (or 0) in that direction, kept within min/max (and 0 when the
|
|
32
|
+
* value cannot be negative). An empty field starts at `min`, or 0 kept within range. Null when there is no step. */
|
|
33
|
+
export declare function stepNumber(raw: string, direction: 1 | -1, o: ResolvedNumberInput): string | null;
|
|
34
|
+
export interface SanitizeOptions {
|
|
35
|
+
/** Pasted or dropped text: with no decimals allowed, the fraction is dropped at the first "." ("1,234,000.00" → "1234000") instead of the dots being ignored. */
|
|
36
|
+
pasted?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** Keeps digits, one ".", and "-" when allowed; any "-" in the text makes the value negative. Returns the draft ("-12.5", "12.", "").
|
|
39
|
+
* A dot with no digits becomes "0." (or "-0.") when decimals are allowed, so ".5" can be typed. Integer digits past the limit are cut. */
|
|
40
|
+
export declare function sanitizeNumber(text: string, o: ResolvedNumberInput, options?: SanitizeOptions): string;
|
|
41
|
+
/** True when `next` holds more integer digits than the field keeps and more than `previous` did: a typed edit like that is refused, not cut. */
|
|
42
|
+
export declare function addsTooManyDigits(previous: string, next: string, o: ResolvedNumberInput): boolean;
|
|
43
|
+
/** An edit that inserted more than one character at once, or that the browser reports as a paste or drop. */
|
|
44
|
+
export declare function isPasteEdit(before: string, after: string, inputType?: string): boolean;
|
|
45
|
+
/** Whether two values name the same number: "12." and "12" do, "", "-" and "." are all empty, "" and "0" are not. */
|
|
46
|
+
export declare function sameNumber(a: string, b: string): boolean;
|
|
47
|
+
/** Display text: thousands commas only, nothing padded. */
|
|
48
|
+
export declare function formatNumber(raw: string, o: ResolvedNumberInput): string;
|
|
49
|
+
/** The value kept on blur/Enter: "" and "-" become "", a bare dot ("0.") is zero, "-0" becomes "0", the fraction is padded to decimals. */
|
|
50
|
+
export declare function commitNumber(raw: string, o: ResolvedNumberInput): string;
|
|
51
|
+
/** How many digits, "." and "-" sit before the caret. */
|
|
52
|
+
export declare function significantCount(text: string, caret: number): number;
|
|
53
|
+
/** The caret position right after that many digits, "." and "-". */
|
|
54
|
+
export declare function caretForCount(display: string, count: number): number;
|
|
55
|
+
/** Where the caret sits after an edit that turned `before` into `after`, from the text alone: right after the changed part.
|
|
56
|
+
* Platforms that report the selection separately from the text (React Native) can send the two in either order. */
|
|
57
|
+
export declare function caretAfterEdit(before: string, after: string): number;
|
|
58
|
+
/** Backspace right after a comma deletes the digit before it, Delete right before one deletes the digit after it. Returns the text without commas and the caret in it; null when the browser's default is right. */
|
|
59
|
+
export declare function deleteAcrossSeparator(display: string, start: number, end: number, key: "Backspace" | "Delete"): {
|
|
60
|
+
text: string;
|
|
61
|
+
caret: number;
|
|
62
|
+
} | null;
|
|
63
|
+
export declare function rangeIssue(raw: string, o: ResolvedNumberInput): "min" | "max" | null;
|
|
64
|
+
/** "100% 이하로 입력해 주세요": the limit is formatted like the value, with the suffix attached without a space. */
|
|
65
|
+
export declare function rangeMessage(kind: "min" | "max", o: ResolvedNumberInput, scope?: KjunMessageScope): string;
|
|
66
|
+
/** "1억 2,003만 5,000 원" for an integer part of 10,000 or more; empty for percent and for languages other than Korean. */
|
|
67
|
+
export declare function readingAid(raw: string, o: ResolvedNumberInput, scope?: KjunMessageScope): string;
|
|
68
|
+
/** Keyboard for a number field. A negative value needs a minus key, which the numeric pads lack (iOS shows none at all). */
|
|
69
|
+
export declare function numberKeyboard(o: Pick<ResolvedNumberInput, "allowNegative" | "decimals">): {
|
|
70
|
+
inputMode: "numeric" | "decimal" | "text";
|
|
71
|
+
ios: string;
|
|
72
|
+
android: string;
|
|
73
|
+
};
|
|
@@ -10,7 +10,23 @@ export declare function optionSelected(value: OptionValue | OptionValue[] | null
|
|
|
10
10
|
export declare function nextOptionValue(value: OptionValue | OptionValue[] | null, option: SelectOption, key: string, multiple: boolean): OptionValue | OptionValue[];
|
|
11
11
|
/** 0 label starts with the query, 1 label contains it, 2 a searchKeys field contains it, -1 no match; an empty query matches as 0. */
|
|
12
12
|
export declare function optionMatchRank(option: SelectOption, query: string, labelKey: string, searchKeys?: readonly string[]): 0 | 1 | 2 | -1;
|
|
13
|
-
|
|
13
|
+
/** A group is an option object whose `options` field holds its options; its label is read with labelKey. */
|
|
14
|
+
export declare const isOptionGroup: (option: SelectOption) => option is {
|
|
15
|
+
options: SelectOption[];
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
export type SelectMultipleDisplay = "count" | "labels";
|
|
19
|
+
export interface SelectItem<T> {
|
|
20
|
+
option: T;
|
|
21
|
+
key: string;
|
|
22
|
+
}
|
|
23
|
+
/** Consecutive visible options that share a group; `label` is undefined for options outside any group. */
|
|
24
|
+
export interface SelectSection<T> {
|
|
25
|
+
key: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
items: SelectItem<T>[];
|
|
28
|
+
}
|
|
29
|
+
export declare function selectOptions<T extends SelectOption>({ options, value, labelKey, valueKey, query, pageSize, limit, loading, multiple, filterFn, searchKeys, selectedCount, multipleDisplay, }: {
|
|
14
30
|
options: T[];
|
|
15
31
|
value: OptionValue | OptionValue[] | null;
|
|
16
32
|
labelKey: string;
|
|
@@ -24,17 +40,21 @@ export declare function selectOptions<T extends SelectOption>({ options, value,
|
|
|
24
40
|
searchKeys?: readonly string[];
|
|
25
41
|
/** Trigger label for several selected options; platforms pass KjunProvider's messages.selectedCount. */
|
|
26
42
|
selectedCount?: (count: number) => string;
|
|
43
|
+
/** "labels" names every selected option in the trigger instead of counting them. */
|
|
44
|
+
multipleDisplay?: SelectMultipleDisplay;
|
|
27
45
|
}): {
|
|
28
46
|
selected: (option: T) => boolean;
|
|
29
47
|
matching: {
|
|
30
48
|
option: T;
|
|
49
|
+
group: number;
|
|
31
50
|
key: string;
|
|
32
51
|
}[];
|
|
33
|
-
visible:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}[];
|
|
52
|
+
visible: SelectItem<T>[];
|
|
53
|
+
sections: SelectSection<T>[];
|
|
54
|
+
grouped: boolean;
|
|
37
55
|
selectedOption: T | undefined;
|
|
38
56
|
label: string;
|
|
57
|
+
labels: string[];
|
|
58
|
+
hasValue: boolean;
|
|
39
59
|
nextValue: (option: T) => OptionValue | OptionValue[];
|
|
40
60
|
};
|
|
@@ -10,7 +10,23 @@ export declare function optionSelected(value: OptionValue | OptionValue[] | null
|
|
|
10
10
|
export declare function nextOptionValue(value: OptionValue | OptionValue[] | null, option: SelectOption, key: string, multiple: boolean): OptionValue | OptionValue[];
|
|
11
11
|
/** 0 label starts with the query, 1 label contains it, 2 a searchKeys field contains it, -1 no match; an empty query matches as 0. */
|
|
12
12
|
export declare function optionMatchRank(option: SelectOption, query: string, labelKey: string, searchKeys?: readonly string[]): 0 | 1 | 2 | -1;
|
|
13
|
-
|
|
13
|
+
/** A group is an option object whose `options` field holds its options; its label is read with labelKey. */
|
|
14
|
+
export declare const isOptionGroup: (option: SelectOption) => option is {
|
|
15
|
+
options: SelectOption[];
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
export type SelectMultipleDisplay = "count" | "labels";
|
|
19
|
+
export interface SelectItem<T> {
|
|
20
|
+
option: T;
|
|
21
|
+
key: string;
|
|
22
|
+
}
|
|
23
|
+
/** Consecutive visible options that share a group; `label` is undefined for options outside any group. */
|
|
24
|
+
export interface SelectSection<T> {
|
|
25
|
+
key: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
items: SelectItem<T>[];
|
|
28
|
+
}
|
|
29
|
+
export declare function selectOptions<T extends SelectOption>({ options, value, labelKey, valueKey, query, pageSize, limit, loading, multiple, filterFn, searchKeys, selectedCount, multipleDisplay, }: {
|
|
14
30
|
options: T[];
|
|
15
31
|
value: OptionValue | OptionValue[] | null;
|
|
16
32
|
labelKey: string;
|
|
@@ -24,17 +40,21 @@ export declare function selectOptions<T extends SelectOption>({ options, value,
|
|
|
24
40
|
searchKeys?: readonly string[];
|
|
25
41
|
/** Trigger label for several selected options; platforms pass KjunProvider's messages.selectedCount. */
|
|
26
42
|
selectedCount?: (count: number) => string;
|
|
43
|
+
/** "labels" names every selected option in the trigger instead of counting them. */
|
|
44
|
+
multipleDisplay?: SelectMultipleDisplay;
|
|
27
45
|
}): {
|
|
28
46
|
selected: (option: T) => boolean;
|
|
29
47
|
matching: {
|
|
30
48
|
option: T;
|
|
49
|
+
group: number;
|
|
31
50
|
key: string;
|
|
32
51
|
}[];
|
|
33
|
-
visible:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}[];
|
|
52
|
+
visible: SelectItem<T>[];
|
|
53
|
+
sections: SelectSection<T>[];
|
|
54
|
+
grouped: boolean;
|
|
37
55
|
selectedOption: T | undefined;
|
|
38
56
|
label: string;
|
|
57
|
+
labels: string[];
|
|
58
|
+
hasValue: boolean;
|
|
39
59
|
nextValue: (option: T) => OptionValue | OptionValue[];
|
|
40
60
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type PaginationItem = number | "start-ellipsis" | "end-ellipsis";
|
|
2
|
+
/**
|
|
3
|
+
* The first and last page, the current page with siblingCount pages each side, and an ellipsis for each gap.
|
|
4
|
+
* Once the pages outnumber the slots the list keeps one length on every page, so the arrows never move, and a gap
|
|
5
|
+
* of one page shows that page instead of an ellipsis (no "1 … 3").
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginationItems(current: number, total: number, siblingCount?: number): PaginationItem[];
|
|
8
|
+
/** The first and last row on the page, for the "81 - 100 / 195" line. */
|
|
9
|
+
export declare function pageRows(current: number, pageSize: number, totalRows: number): {
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type PaginationItem = number | "start-ellipsis" | "end-ellipsis";
|
|
2
|
+
/**
|
|
3
|
+
* The first and last page, the current page with siblingCount pages each side, and an ellipsis for each gap.
|
|
4
|
+
* Once the pages outnumber the slots the list keeps one length on every page, so the arrows never move, and a gap
|
|
5
|
+
* of one page shows that page instead of an ellipsis (no "1 … 3").
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginationItems(current: number, total: number, siblingCount?: number): PaginationItem[];
|
|
8
|
+
/** The first and last row on the page, for the "81 - 100 / 195" line. */
|
|
9
|
+
export declare function pageRows(current: number, pageSize: number, totalRows: number): {
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Hold-to-repeat for step buttons (QuantityStepper ±). A press still steps once through the button's click; holding it past
|
|
2
|
+
* `delay` steps again every `interval` until release, and the click that ends a repeating hold is then swallowed so the
|
|
3
|
+
* value does not move one extra step. `step` returns false when it can go no further, which ends the repeat. */
|
|
4
|
+
export interface PressRepeat {
|
|
5
|
+
/** Pointer or touch went down on the button. With a window, release anywhere (a disabled button gets no pointerup) ends it. */
|
|
6
|
+
start(view?: Window): void;
|
|
7
|
+
stop(): void;
|
|
8
|
+
/** Pointer or touch came up: ends the hold; the repeated mark lasts only for the click that follows in the same input event. */
|
|
9
|
+
release(): void;
|
|
10
|
+
/** Called from the click: true when this click ends a hold that already repeated, so it must not step again. */
|
|
11
|
+
takeRepeated(): boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function createPressRepeat(step: () => boolean, delay: number, interval: number): PressRepeat;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Hold-to-repeat for step buttons (QuantityStepper ±). A press still steps once through the button's click; holding it past
|
|
2
|
+
* `delay` steps again every `interval` until release, and the click that ends a repeating hold is then swallowed so the
|
|
3
|
+
* value does not move one extra step. `step` returns false when it can go no further, which ends the repeat. */
|
|
4
|
+
export interface PressRepeat {
|
|
5
|
+
/** Pointer or touch went down on the button. With a window, release anywhere (a disabled button gets no pointerup) ends it. */
|
|
6
|
+
start(view?: Window): void;
|
|
7
|
+
stop(): void;
|
|
8
|
+
/** Pointer or touch came up: ends the hold; the repeated mark lasts only for the click that follows in the same input event. */
|
|
9
|
+
release(): void;
|
|
10
|
+
/** Called from the click: true when this click ends a hold that already repeated, so it must not step again. */
|
|
11
|
+
takeRepeated(): boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function createPressRepeat(step: () => boolean, delay: number, interval: number): PressRepeat;
|
|
@@ -14,3 +14,8 @@ export declare function progressCircle(size: ProgressCircleSize, percentage: num
|
|
|
14
14
|
* missing data (never 0%). An omitted value keeps the 0 default before it reaches here.
|
|
15
15
|
*/
|
|
16
16
|
export declare function progressState(value: number | null, max: number, indeterminate: boolean): "indeterminate" | "missing" | "determinate";
|
|
17
|
+
/**
|
|
18
|
+
* Whole percent for a known value, clamped to 0–100. Unfinished work never rounds up to 100:
|
|
19
|
+
* 99.6% reads 99%, so "100%" always means done.
|
|
20
|
+
*/
|
|
21
|
+
export declare function progressPercent(value: number, max: number): number;
|
|
@@ -14,3 +14,8 @@ export declare function progressCircle(size: ProgressCircleSize, percentage: num
|
|
|
14
14
|
* missing data (never 0%). An omitted value keeps the 0 default before it reaches here.
|
|
15
15
|
*/
|
|
16
16
|
export declare function progressState(value: number | null, max: number, indeterminate: boolean): "indeterminate" | "missing" | "determinate";
|
|
17
|
+
/**
|
|
18
|
+
* Whole percent for a known value, clamped to 0–100. Unfinished work never rounds up to 100:
|
|
19
|
+
* 99.6% reads 99%, so "100%" always means done.
|
|
20
|
+
*/
|
|
21
|
+
export declare function progressPercent(value: number, max: number): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a reference marker stands on a bar (such as "today" on a budget), as a percent of the rail.
|
|
3
|
+
* `marker` is on the value's own scale, 0 to `max`; null means there is nothing to draw.
|
|
4
|
+
*/
|
|
5
|
+
export declare function progressMarker(marker: number | null | undefined, max: number): number | null;
|
|
6
|
+
/** How far the marker's left edge moves back from its percent, so that at 0 and at max the line stays whole inside the rail. */
|
|
7
|
+
export declare const progressMarkerInset: (percent: number) => number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a reference marker stands on a bar (such as "today" on a budget), as a percent of the rail.
|
|
3
|
+
* `marker` is on the value's own scale, 0 to `max`; null means there is nothing to draw.
|
|
4
|
+
*/
|
|
5
|
+
export declare function progressMarker(marker: number | null | undefined, max: number): number | null;
|
|
6
|
+
/** How far the marker's left edge moves back from its percent, so that at 0 and at max the line stays whole inside the rail. */
|
|
7
|
+
export declare const progressMarkerInset: (percent: number) => number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Progress fill colours: primary takes the brand role, neutral the tertiary text role, other tones their own role. */
|
|
2
|
+
export type ProgressTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
3
|
+
/** The KjunColors key a Native fill reads. */
|
|
4
|
+
export declare function progressColorKey(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info";
|
|
5
|
+
/** The web role name, read as var(--_kjun-color-<role>). */
|
|
6
|
+
export declare function progressColorRole(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info" | "text-tertiary";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Progress fill colours: primary takes the brand role, neutral the tertiary text role, other tones their own role. */
|
|
2
|
+
export type ProgressTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
3
|
+
/** The KjunColors key a Native fill reads. */
|
|
4
|
+
export declare function progressColorKey(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info";
|
|
5
|
+
/** The web role name, read as var(--_kjun-color-<role>). */
|
|
6
|
+
export declare function progressColorRole(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info" | "text-tertiary";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** How many labels end past the room left for them, given each label's right edge. */
|
|
2
|
+
export declare function hiddenLabelCount(rights: readonly number[], available: number): number;
|
|
3
|
+
/** Size and place of the clear button that sits over a select-like trigger, before its indicator. */
|
|
4
|
+
export declare function selectClearStyle(spec: {
|
|
5
|
+
padding: number;
|
|
6
|
+
iconSize: number;
|
|
7
|
+
affixGap: number;
|
|
8
|
+
clearSize: number;
|
|
9
|
+
}): {
|
|
10
|
+
right: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
minHeight: number;
|
|
14
|
+
};
|
|
15
|
+
/** The filled circle drawn inside the clear button; the button keeps the larger target. */
|
|
16
|
+
export declare function selectClearMarkStyle(spec: {
|
|
17
|
+
clearMarkSize: number;
|
|
18
|
+
}): {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
/** Web: how many of the label spans inside `text` end past its visible width. */
|
|
23
|
+
export declare function measureHiddenLabels(text: HTMLElement | null | undefined): number;
|