@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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** auto is compact in a container narrower than the breakpoint (tokens.responsive.tilesGap) and regular from it. */
|
|
2
|
+
export type TilesGap = "auto" | "compact" | "regular";
|
|
3
|
+
/** A cell's narrowest width before a column is dropped: tokens.extensions.tiles.minItem. */
|
|
4
|
+
export type TilesMinItem = "sm" | "md" | "lg";
|
|
5
|
+
export type TilesMaxColumns = 2 | 3 | 4;
|
|
6
|
+
/** The gap step that applies at a container width. */
|
|
7
|
+
export declare const tilesGapStep: (gap: TilesGap, width: number, breakpoint: number) => "compact" | "regular";
|
|
8
|
+
/** As many columns as keep each cell at least minItem wide, between one and maxColumns. Unmeasured widths get one. */
|
|
9
|
+
export declare function tilesColumns(width: number, minItem: number, gap: number, maxColumns: number): number;
|
|
10
|
+
/** Each cell's share of the width after the gaps, like a grid track; undefined until the container has a width. */
|
|
11
|
+
export declare const tilesCellWidth: (width: number, columns: number, gap: number) => number | undefined;
|
|
12
|
+
/** The props with their defaults; a maxColumns outside 2·3·4 falls back to 4. A Vue template's max-columns="3"
|
|
13
|
+
* arrives as the string "3" and counts as 3. */
|
|
14
|
+
export declare const tilesProps: (gap?: TilesGap, minItem?: TilesMinItem, maxColumns?: number | string) => {
|
|
15
|
+
gap: TilesGap;
|
|
16
|
+
minItem: TilesMinItem;
|
|
17
|
+
maxColumns: TilesMaxColumns;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** auto is compact in a container narrower than the breakpoint (tokens.responsive.tilesGap) and regular from it. */
|
|
2
|
+
export type TilesGap = "auto" | "compact" | "regular";
|
|
3
|
+
/** A cell's narrowest width before a column is dropped: tokens.extensions.tiles.minItem. */
|
|
4
|
+
export type TilesMinItem = "sm" | "md" | "lg";
|
|
5
|
+
export type TilesMaxColumns = 2 | 3 | 4;
|
|
6
|
+
/** The gap step that applies at a container width. */
|
|
7
|
+
export declare const tilesGapStep: (gap: TilesGap, width: number, breakpoint: number) => "compact" | "regular";
|
|
8
|
+
/** As many columns as keep each cell at least minItem wide, between one and maxColumns. Unmeasured widths get one. */
|
|
9
|
+
export declare function tilesColumns(width: number, minItem: number, gap: number, maxColumns: number): number;
|
|
10
|
+
/** Each cell's share of the width after the gaps, like a grid track; undefined until the container has a width. */
|
|
11
|
+
export declare const tilesCellWidth: (width: number, columns: number, gap: number) => number | undefined;
|
|
12
|
+
/** The props with their defaults; a maxColumns outside 2·3·4 falls back to 4. A Vue template's max-columns="3"
|
|
13
|
+
* arrives as the string "3" and counts as 3. */
|
|
14
|
+
export declare const tilesProps: (gap?: TilesGap, minItem?: TilesMinItem, maxColumns?: number | string) => {
|
|
15
|
+
gap: TilesGap;
|
|
16
|
+
minItem: TilesMinItem;
|
|
17
|
+
maxColumns: TilesMaxColumns;
|
|
18
|
+
};
|
|
@@ -22,4 +22,28 @@ export declare function timeSegments(domain: TimeDomain, value: string | null, {
|
|
|
22
22
|
}): TimeSegmentModel[];
|
|
23
23
|
/** Korean and other East Asian clocks put 오전/오후 before the hour; most others put AM/PM after it. */
|
|
24
24
|
export declare const periodLeads: (language?: string) => boolean;
|
|
25
|
+
/** Typing digits into a focused segment: a digit picks at once when no two-digit option starts with it; otherwise it waits for a
|
|
26
|
+
* second digit (and picks the single digit meanwhile when that is an option). A pair that is no option starts over from the new digit.
|
|
27
|
+
* `typed` is the waiting digit ("" for none); `value` the option to pick (null for none); `advance` moves focus to the next segment. */
|
|
28
|
+
export declare function typeSegmentDigit(options: readonly number[], typed: string, digit: string): {
|
|
29
|
+
typed: string;
|
|
30
|
+
value: number | null;
|
|
31
|
+
advance: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** A period segment answers the first letter of its labels (a/p, or the label's own first letter when the two differ). */
|
|
34
|
+
export declare function typeSegmentPeriod(options: readonly {
|
|
35
|
+
value: number;
|
|
36
|
+
label: string;
|
|
37
|
+
}[], key: string): number | null;
|
|
38
|
+
/** Keeps the waiting digit of a TimePicker for a second, like a typeahead. */
|
|
39
|
+
export declare function createSegmentTyping(timeout?: number): {
|
|
40
|
+
key(segment: TimeSegmentModel, segmentIndex: number, key: string, now?: number): {
|
|
41
|
+
value: number | null;
|
|
42
|
+
advance: boolean;
|
|
43
|
+
} | null;
|
|
44
|
+
reset(): void;
|
|
45
|
+
};
|
|
46
|
+
/** A segment's spinbutton keys: ↑ and ↓ take the next and previous option and go round, Home and End the first and last.
|
|
47
|
+
* An empty segment starts from its first option (↑) or its last (↓). Returns the option, or null when the key does nothing. */
|
|
48
|
+
export declare function segmentStep(segment: TimeSegmentModel, key: string): number | null;
|
|
25
49
|
export {};
|
|
@@ -22,4 +22,28 @@ export declare function timeSegments(domain: TimeDomain, value: string | null, {
|
|
|
22
22
|
}): TimeSegmentModel[];
|
|
23
23
|
/** Korean and other East Asian clocks put 오전/오후 before the hour; most others put AM/PM after it. */
|
|
24
24
|
export declare const periodLeads: (language?: string) => boolean;
|
|
25
|
+
/** Typing digits into a focused segment: a digit picks at once when no two-digit option starts with it; otherwise it waits for a
|
|
26
|
+
* second digit (and picks the single digit meanwhile when that is an option). A pair that is no option starts over from the new digit.
|
|
27
|
+
* `typed` is the waiting digit ("" for none); `value` the option to pick (null for none); `advance` moves focus to the next segment. */
|
|
28
|
+
export declare function typeSegmentDigit(options: readonly number[], typed: string, digit: string): {
|
|
29
|
+
typed: string;
|
|
30
|
+
value: number | null;
|
|
31
|
+
advance: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** A period segment answers the first letter of its labels (a/p, or the label's own first letter when the two differ). */
|
|
34
|
+
export declare function typeSegmentPeriod(options: readonly {
|
|
35
|
+
value: number;
|
|
36
|
+
label: string;
|
|
37
|
+
}[], key: string): number | null;
|
|
38
|
+
/** Keeps the waiting digit of a TimePicker for a second, like a typeahead. */
|
|
39
|
+
export declare function createSegmentTyping(timeout?: number): {
|
|
40
|
+
key(segment: TimeSegmentModel, segmentIndex: number, key: string, now?: number): {
|
|
41
|
+
value: number | null;
|
|
42
|
+
advance: boolean;
|
|
43
|
+
} | null;
|
|
44
|
+
reset(): void;
|
|
45
|
+
};
|
|
46
|
+
/** A segment's spinbutton keys: ↑ and ↓ take the next and previous option and go round, Home and End the first and last.
|
|
47
|
+
* An empty segment starts from its first option (↑) or its last (↓). Returns the option, or null when the key does nothing. */
|
|
48
|
+
export declare function segmentStep(segment: TimeSegmentModel, key: string): number | null;
|
|
25
49
|
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { createTimeDomain, TimePrecision } from "@kjun-ui/tokens";
|
|
2
|
+
import type { KjunMessages } from "./messages/ko.cjs";
|
|
3
|
+
import type { HourCycle } from "./time-segments.cjs";
|
|
4
|
+
type TimeDomain = ReturnType<typeof createTimeDomain>;
|
|
5
|
+
export type TimeLayout = "auto" | "popover" | "sheet" | "inline";
|
|
6
|
+
export type TimeTrigger = "segments" | "button";
|
|
7
|
+
export type WheelColumnKey = "period" | "hour" | "minute" | "second";
|
|
8
|
+
export interface WheelItem {
|
|
9
|
+
value: number;
|
|
10
|
+
label: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface WheelColumn {
|
|
14
|
+
key: WheelColumnKey;
|
|
15
|
+
label: string;
|
|
16
|
+
items: WheelItem[];
|
|
17
|
+
/** The index of the draft's item. */
|
|
18
|
+
index: number;
|
|
19
|
+
/** Hours, minutes and seconds go round; AM/PM stops at its ends. */
|
|
20
|
+
loop: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface TimeWheelOptions {
|
|
23
|
+
precision: TimePrecision;
|
|
24
|
+
hourCycle?: HourCycle;
|
|
25
|
+
minuteStep?: number;
|
|
26
|
+
secondStep?: number;
|
|
27
|
+
messages: KjunMessages;
|
|
28
|
+
periodFirst?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** The wheel's columns for a draft time, in the order the segments read. */
|
|
31
|
+
export declare function timeWheel(domain: TimeDomain, draft: string, { precision, hourCycle, minuteStep, secondStep, messages, periodFirst }: TimeWheelOptions): WheelColumn[];
|
|
32
|
+
/** The draft after a column stops on a value: that time when it is allowed, otherwise the closest allowed one. */
|
|
33
|
+
export declare function wheelPick(domain: TimeDomain, draft: string, key: WheelColumnKey, value: number, { precision, hourCycle }: Pick<TimeWheelOptions, "precision" | "hourCycle">): string;
|
|
34
|
+
/** Where the wheel starts: the value, the allowed time closest to it, or the allowed time closest to now (which rounds now to the step). */
|
|
35
|
+
export declare function wheelStart(domain: TimeDomain, value: string | null, now?: Date): string;
|
|
36
|
+
/** A time as it reads on the button trigger: "09:30" on a 24-hour clock, "오전 9:30" or "9:30 AM" on a 12-hour one. */
|
|
37
|
+
export declare function timeText(domain: TimeDomain, value: string | null, { precision, hourCycle, messages, periodFirst }: Pick<TimeWheelOptions, "precision" | "hourCycle" | "messages" | "periodFirst">): string;
|
|
38
|
+
/** The value a key moves a column to, skipping faded items; null when the key does nothing or the column cannot move. */
|
|
39
|
+
export declare function wheelKey(column: WheelColumn, key: string): number | null;
|
|
40
|
+
/** auto takes the sheet on touch screens and devices, the popover elsewhere. */
|
|
41
|
+
export declare const resolveTimeLayout: (layout: TimeLayout, coarse: boolean) => Exclude<TimeLayout, "auto">;
|
|
42
|
+
/** Segments keep typing on a keyboard; a sheet opens from a one-line button. */
|
|
43
|
+
export declare const resolveTimeTrigger: (trigger: TimeTrigger | undefined, layout: Exclude<TimeLayout, "auto">) => TimeTrigger;
|
|
44
|
+
/** A ":" goes before a digit column that follows another (hour:minute:second); AM/PM reads as a word and takes none, as in the field. */
|
|
45
|
+
export declare const wheelSeparated: (columns: Pick<WheelColumn, "key">[], index: number) => boolean;
|
|
46
|
+
/** A looping column draws its items three times and stays in the middle copy, so it turns either way without an end. */
|
|
47
|
+
export declare const wheelCopies: (column: Pick<WheelColumn, "loop">) => 1 | 3;
|
|
48
|
+
/** The row to show an item on: the copy nearest to the row now in the middle, so a move takes the short way round. */
|
|
49
|
+
export declare function wheelRow(column: WheelColumn, index: number, current: number | null): number;
|
|
50
|
+
/** The same item's row in the middle copy, where a looping column settles after a turn. */
|
|
51
|
+
export declare const wheelHome: (column: WheelColumn, row: number) => number;
|
|
52
|
+
/** The item a settled row shows. */
|
|
53
|
+
export declare const wheelItemAt: (column: WheelColumn, row: number) => WheelItem;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { createTimeDomain, TimePrecision } from "@kjun-ui/tokens";
|
|
2
|
+
import type { KjunMessages } from "./messages/ko.js";
|
|
3
|
+
import type { HourCycle } from "./time-segments.js";
|
|
4
|
+
type TimeDomain = ReturnType<typeof createTimeDomain>;
|
|
5
|
+
export type TimeLayout = "auto" | "popover" | "sheet" | "inline";
|
|
6
|
+
export type TimeTrigger = "segments" | "button";
|
|
7
|
+
export type WheelColumnKey = "period" | "hour" | "minute" | "second";
|
|
8
|
+
export interface WheelItem {
|
|
9
|
+
value: number;
|
|
10
|
+
label: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface WheelColumn {
|
|
14
|
+
key: WheelColumnKey;
|
|
15
|
+
label: string;
|
|
16
|
+
items: WheelItem[];
|
|
17
|
+
/** The index of the draft's item. */
|
|
18
|
+
index: number;
|
|
19
|
+
/** Hours, minutes and seconds go round; AM/PM stops at its ends. */
|
|
20
|
+
loop: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface TimeWheelOptions {
|
|
23
|
+
precision: TimePrecision;
|
|
24
|
+
hourCycle?: HourCycle;
|
|
25
|
+
minuteStep?: number;
|
|
26
|
+
secondStep?: number;
|
|
27
|
+
messages: KjunMessages;
|
|
28
|
+
periodFirst?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** The wheel's columns for a draft time, in the order the segments read. */
|
|
31
|
+
export declare function timeWheel(domain: TimeDomain, draft: string, { precision, hourCycle, minuteStep, secondStep, messages, periodFirst }: TimeWheelOptions): WheelColumn[];
|
|
32
|
+
/** The draft after a column stops on a value: that time when it is allowed, otherwise the closest allowed one. */
|
|
33
|
+
export declare function wheelPick(domain: TimeDomain, draft: string, key: WheelColumnKey, value: number, { precision, hourCycle }: Pick<TimeWheelOptions, "precision" | "hourCycle">): string;
|
|
34
|
+
/** Where the wheel starts: the value, the allowed time closest to it, or the allowed time closest to now (which rounds now to the step). */
|
|
35
|
+
export declare function wheelStart(domain: TimeDomain, value: string | null, now?: Date): string;
|
|
36
|
+
/** A time as it reads on the button trigger: "09:30" on a 24-hour clock, "오전 9:30" or "9:30 AM" on a 12-hour one. */
|
|
37
|
+
export declare function timeText(domain: TimeDomain, value: string | null, { precision, hourCycle, messages, periodFirst }: Pick<TimeWheelOptions, "precision" | "hourCycle" | "messages" | "periodFirst">): string;
|
|
38
|
+
/** The value a key moves a column to, skipping faded items; null when the key does nothing or the column cannot move. */
|
|
39
|
+
export declare function wheelKey(column: WheelColumn, key: string): number | null;
|
|
40
|
+
/** auto takes the sheet on touch screens and devices, the popover elsewhere. */
|
|
41
|
+
export declare const resolveTimeLayout: (layout: TimeLayout, coarse: boolean) => Exclude<TimeLayout, "auto">;
|
|
42
|
+
/** Segments keep typing on a keyboard; a sheet opens from a one-line button. */
|
|
43
|
+
export declare const resolveTimeTrigger: (trigger: TimeTrigger | undefined, layout: Exclude<TimeLayout, "auto">) => TimeTrigger;
|
|
44
|
+
/** A ":" goes before a digit column that follows another (hour:minute:second); AM/PM reads as a word and takes none, as in the field. */
|
|
45
|
+
export declare const wheelSeparated: (columns: Pick<WheelColumn, "key">[], index: number) => boolean;
|
|
46
|
+
/** A looping column draws its items three times and stays in the middle copy, so it turns either way without an end. */
|
|
47
|
+
export declare const wheelCopies: (column: Pick<WheelColumn, "loop">) => 1 | 3;
|
|
48
|
+
/** The row to show an item on: the copy nearest to the row now in the middle, so a move takes the short way round. */
|
|
49
|
+
export declare function wheelRow(column: WheelColumn, index: number, current: number | null): number;
|
|
50
|
+
/** The same item's row in the middle copy, where a looping column settles after a turn. */
|
|
51
|
+
export declare const wheelHome: (column: WheelColumn, row: number) => number;
|
|
52
|
+
/** The item a settled row shows. */
|
|
53
|
+
export declare const wheelItemAt: (column: WheelColumn, row: number) => WheelItem;
|
|
54
|
+
export {};
|
|
@@ -17,6 +17,8 @@ export interface ColorPickerModelOptions {
|
|
|
17
17
|
recentColors?: ColorSwatchInput[];
|
|
18
18
|
onRecentColorsChange?: (colors: string[]) => void;
|
|
19
19
|
eyeDropper?: boolean;
|
|
20
|
+
/** The panel sits in the page: it never opens, and recent colors move after each finished pick instead of on closing. */
|
|
21
|
+
inline?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export declare function useColorPickerModel(o: ColorPickerModelOptions): {
|
|
22
24
|
value: string | null;
|
|
@@ -36,6 +38,7 @@ export declare function useColorPickerModel(o: ColorPickerModelOptions): {
|
|
|
36
38
|
selected: number;
|
|
37
39
|
recentSelected: number;
|
|
38
40
|
pick: (next: string | null) => void;
|
|
41
|
+
pickRecent: (next: string | null) => void;
|
|
39
42
|
moveTo: (next: PickerState) => void;
|
|
40
43
|
pickState: (next: PickerState) => void;
|
|
41
44
|
drag: {
|
|
@@ -17,6 +17,8 @@ export interface ColorPickerModelOptions {
|
|
|
17
17
|
recentColors?: ColorSwatchInput[];
|
|
18
18
|
onRecentColorsChange?: (colors: string[]) => void;
|
|
19
19
|
eyeDropper?: boolean;
|
|
20
|
+
/** The panel sits in the page: it never opens, and recent colors move after each finished pick instead of on closing. */
|
|
21
|
+
inline?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export declare function useColorPickerModel(o: ColorPickerModelOptions): {
|
|
22
24
|
value: string | null;
|
|
@@ -36,6 +38,7 @@ export declare function useColorPickerModel(o: ColorPickerModelOptions): {
|
|
|
36
38
|
selected: number;
|
|
37
39
|
recentSelected: number;
|
|
38
40
|
pick: (next: string | null) => void;
|
|
41
|
+
pickRecent: (next: string | null) => void;
|
|
39
42
|
moveTo: (next: PickerState) => void;
|
|
40
43
|
pickState: (next: PickerState) => void;
|
|
41
44
|
drag: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** The copy button state machine shared by React and Native (Vue keeps its own form in runtime/copy-feedback.ts).
|
|
2
|
+
* One copy runs at a time; success shows for copyFeedbackDuration; callbacks run only while mounted. */
|
|
3
|
+
export declare function useCopyFeedback(copyText: (value: string) => void | Promise<void>, handlers: {
|
|
4
|
+
onSuccess(value: string): void;
|
|
5
|
+
onError(error: unknown): void;
|
|
6
|
+
}): {
|
|
7
|
+
copied: boolean;
|
|
8
|
+
failed: boolean;
|
|
9
|
+
copy: (value: string) => Promise<void>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** The copy button state machine shared by React and Native (Vue keeps its own form in runtime/copy-feedback.ts).
|
|
2
|
+
* One copy runs at a time; success shows for copyFeedbackDuration; callbacks run only while mounted. */
|
|
3
|
+
export declare function useCopyFeedback(copyText: (value: string) => void | Promise<void>, handlers: {
|
|
4
|
+
onSuccess(value: string): void;
|
|
5
|
+
onError(error: unknown): void;
|
|
6
|
+
}): {
|
|
7
|
+
copied: boolean;
|
|
8
|
+
failed: boolean;
|
|
9
|
+
copy: (value: string) => Promise<void>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** A popup's open state: controlled when `open` is a boolean, otherwise kept here; a disabled field reads closed. */
|
|
2
|
+
export declare function useOpenState(controlled: boolean | undefined, disabled: boolean, onOpenChange?: (open: boolean) => void): readonly [
|
|
3
|
+
boolean,
|
|
4
|
+
(next: boolean) => void
|
|
5
|
+
];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** A popup's open state: controlled when `open` is a boolean, otherwise kept here; a disabled field reads closed. */
|
|
2
|
+
export declare function useOpenState(controlled: boolean | undefined, disabled: boolean, onOpenChange?: (open: boolean) => void): readonly [
|
|
3
|
+
boolean,
|
|
4
|
+
(next: boolean) => void
|
|
5
|
+
];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Runs a handler and stays pending until a returned promise settles (RefreshButton's automatic loading).
|
|
2
|
+
* A plain handler result leaves it idle. Vue keeps its own form in runtime/pending-action.ts. */
|
|
3
|
+
export declare function usePendingAction(): {
|
|
4
|
+
pending: boolean;
|
|
5
|
+
run: (action: (() => unknown) | undefined) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Runs a handler and stays pending until a returned promise settles (RefreshButton's automatic loading).
|
|
2
|
+
* A plain handler result leaves it idle. Vue keeps its own form in runtime/pending-action.ts. */
|
|
3
|
+
export declare function usePendingAction(): {
|
|
4
|
+
pending: boolean;
|
|
5
|
+
run: (action: (() => unknown) | undefined) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type SideNavigationAnyDestination, type SideNavigationEntry } from "./side-navigation.cjs";
|
|
2
|
+
type Lists = {
|
|
3
|
+
expanded?: string[];
|
|
4
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
5
|
+
expandedGroups?: string[];
|
|
6
|
+
onExpandedGroupsChange?: (expandedGroups: string[]) => void;
|
|
7
|
+
showAll?: string[];
|
|
8
|
+
onShowAllChange?: (showAll: string[]) => void;
|
|
9
|
+
collapsibleGroups: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** KjunSideNavigation's lists for React and Native (Vue 3 keeps its own form): the open parents, the open groups and the
|
|
12
|
+
* groups showing every row, each kept here unless the app holds it, and reported on change. Moving to a page under a
|
|
13
|
+
* closed parent opens it, also when the items arrive after the value; parents the person opened stay as they are. The
|
|
14
|
+
* first render already starts open, so only later changes are applied and reported. Groups do the same while any can be
|
|
15
|
+
* closed. */
|
|
16
|
+
export declare function useSideNavigationState<D extends SideNavigationAnyDestination>(items: readonly SideNavigationEntry<D>[], value: string | null, lists: Lists): {
|
|
17
|
+
sections: import("./side-navigation.cjs").SideNavigationSection<D>[];
|
|
18
|
+
open: string[];
|
|
19
|
+
update: (next: string[]) => void;
|
|
20
|
+
openGroups: string[];
|
|
21
|
+
updateGroups: (next: string[]) => void;
|
|
22
|
+
allShown: string[];
|
|
23
|
+
updateShowAll: (next: string[]) => void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type SideNavigationAnyDestination, type SideNavigationEntry } from "./side-navigation.js";
|
|
2
|
+
type Lists = {
|
|
3
|
+
expanded?: string[];
|
|
4
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
5
|
+
expandedGroups?: string[];
|
|
6
|
+
onExpandedGroupsChange?: (expandedGroups: string[]) => void;
|
|
7
|
+
showAll?: string[];
|
|
8
|
+
onShowAllChange?: (showAll: string[]) => void;
|
|
9
|
+
collapsibleGroups: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** KjunSideNavigation's lists for React and Native (Vue 3 keeps its own form): the open parents, the open groups and the
|
|
12
|
+
* groups showing every row, each kept here unless the app holds it, and reported on change. Moving to a page under a
|
|
13
|
+
* closed parent opens it, also when the items arrive after the value; parents the person opened stay as they are. The
|
|
14
|
+
* first render already starts open, so only later changes are applied and reported. Groups do the same while any can be
|
|
15
|
+
* closed. */
|
|
16
|
+
export declare function useSideNavigationState<D extends SideNavigationAnyDestination>(items: readonly SideNavigationEntry<D>[], value: string | null, lists: Lists): {
|
|
17
|
+
sections: import("./side-navigation.js").SideNavigationSection<D>[];
|
|
18
|
+
open: string[];
|
|
19
|
+
update: (next: string[]) => void;
|
|
20
|
+
openGroups: string[];
|
|
21
|
+
updateGroups: (next: string[]) => void;
|
|
22
|
+
allShown: string[];
|
|
23
|
+
updateShowAll: (next: string[]) => void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SlideState } from "./event-calendar.cjs";
|
|
2
|
+
/** The month slide for React and Native: follows key, leaving for slideOut ms and entering for slideIn ms; reduced motion switches at once. */
|
|
3
|
+
export declare function useSlide(key: string, reduceMotion: boolean): SlideState;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SlideState } from "./event-calendar.js";
|
|
2
|
+
/** The month slide for React and Native: follows key, leaving for slideOut ms and entering for slideIn ms; reduced motion switches at once. */
|
|
3
|
+
export declare function useSlide(key: string, reduceMotion: boolean): SlideState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kjun-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://ui.kjun.dev",
|
|
6
6
|
"repository": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@kjun-ui/tokens": "0.
|
|
44
|
+
"@kjun-ui/tokens": "0.23.0",
|
|
45
45
|
"react-aria-components": "1.21.1",
|
|
46
|
-
"@kjun-ui/icons": "0.
|
|
46
|
+
"@kjun-ui/icons": "0.23.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^19.2.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CompoundControlContext: import("react").Context<"sm" | "md" | "lg" | null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CompoundControlContext: import("react").Context<"sm" | "md" | "lg" | null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function centerSelectedOption(list: HTMLElement | null | undefined): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function centerSelectedOption(list: HTMLElement | null | undefined): void;
|