@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AriaAttributes, type CSSProperties, type ReactNode } from "react";
|
|
2
|
-
import { type InlineAlign, type InlineGap, type InlineJustify, type StackAlign, type StackGap, type TextAlign, type TextTag, type TextTone, type TextVariant } from "../../../shared/package-runtime/layout-primitives.cjs";
|
|
3
|
-
export type { InlineAlign, InlineGap, InlineJustify, StackAlign, StackGap, TextAlign, TextTag, TextTone, TextVariant };
|
|
1
|
+
import { type AriaAttributes, type AriaRole, type ComponentPropsWithRef, type CSSProperties, type ReactElement, type ReactNode, type Ref } from "react";
|
|
2
|
+
import { type DirectionValue, type FlexDirection, type InlineAlign, type InlineAlignValue, type InlineGap, type InlineGapValue, type InlineJustify, type InlineRowGap, type InlineRowGapValue, type InsetStep, type JustifyValue, type LegacyStackGap, type PaddingValue, type Responsive, type ResponsiveBasis, type StackAlign, type StackAlignValue, type StackBreakpoint, type StackDivider, type StackGap, type StackGapValue, type StackJustify, type StackTag, type TextAlign, type TextDecoration, type TextTag, type TextTone, type TextVariant } from "../../../shared/package-runtime/layout-primitives.cjs";
|
|
3
|
+
export type { DirectionValue, FlexDirection, InlineAlign, InlineAlignValue, InlineGap, InlineGapValue, InlineJustify, InlineRowGap, InlineRowGapValue, InsetStep, JustifyValue, LegacyStackGap, PaddingValue, Responsive, ResponsiveBasis, StackAlign, StackAlignValue, StackBreakpoint, StackDivider, StackGap, StackGapValue, StackJustify, StackTag, TextAlign, TextDecoration, TextTag, TextTone, TextVariant };
|
|
4
4
|
interface RootAttributes extends AriaAttributes {
|
|
5
5
|
id?: string;
|
|
6
6
|
}
|
|
@@ -14,153 +14,85 @@ export interface KjunTextProps extends RootAttributes {
|
|
|
14
14
|
align?: TextAlign;
|
|
15
15
|
/** Clamp to this many lines with an ellipsis; the full text stays in the DOM. */
|
|
16
16
|
maxLines?: number;
|
|
17
|
+
/** With maxLines, a "더보기" button under the text opens the rest and turns into "접기". It shows only while the text
|
|
18
|
+
* overflows (or is open). The text and the button sit in a wrapper div; the text element keeps the other props. */
|
|
19
|
+
expandable?: boolean;
|
|
20
|
+
/** Whether the expandable text is open; leave it out to let the text keep it. */
|
|
21
|
+
expanded?: boolean;
|
|
22
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
23
|
+
/** Fixed-width digits, so amounts in a column line up. Size and weight stay the variant's. */
|
|
24
|
+
numeric?: boolean;
|
|
25
|
+
/** "lineThrough" strikes the text, e.g. a price before a discount. */
|
|
26
|
+
decoration?: TextDecoration;
|
|
27
|
+
/** Browser tooltip, e.g. the full sentence of a clamped text. */
|
|
28
|
+
title?: string;
|
|
29
|
+
lang?: string;
|
|
30
|
+
dir?: "ltr" | "rtl" | "auto";
|
|
31
|
+
/** The element, e.g. to move focus to a heading after the screen changes (with tabIndex={-1}). */
|
|
32
|
+
ref?: Ref<HTMLElement>;
|
|
33
|
+
/** -1 lets code focus the text without adding it to the Tab order. */
|
|
34
|
+
tabIndex?: number;
|
|
35
|
+
/** An ARIA role for the element, such as "status" for a message that should be announced. */
|
|
36
|
+
role?: AriaRole;
|
|
17
37
|
className?: string;
|
|
18
38
|
style?: CSSProperties;
|
|
19
39
|
children?: ReactNode;
|
|
20
40
|
}
|
|
21
|
-
export declare function KjunText({ variant, tone, as, align, maxLines, className, style, children, ...rest }: KjunTextProps): import("react").
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"aria-colspan"?: number | undefined;
|
|
40
|
-
"aria-controls"?: string | undefined;
|
|
41
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
42
|
-
"aria-describedby"?: string | undefined;
|
|
43
|
-
"aria-description"?: string | undefined;
|
|
44
|
-
"aria-details"?: string | undefined;
|
|
45
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
46
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
47
|
-
"aria-errormessage"?: string | undefined;
|
|
48
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
49
|
-
"aria-flowto"?: string | undefined;
|
|
50
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
51
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
52
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
53
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
54
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
55
|
-
"aria-label"?: string | undefined;
|
|
56
|
-
"aria-labelledby"?: string | undefined;
|
|
57
|
-
"aria-level"?: number | undefined;
|
|
58
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
60
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
61
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
62
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
63
|
-
"aria-owns"?: string | undefined;
|
|
64
|
-
"aria-placeholder"?: string | undefined;
|
|
65
|
-
"aria-posinset"?: number | undefined;
|
|
66
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
67
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
68
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
69
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
70
|
-
"aria-roledescription"?: string | undefined;
|
|
71
|
-
"aria-rowcount"?: number | undefined;
|
|
72
|
-
"aria-rowindex"?: number | undefined;
|
|
73
|
-
"aria-rowindextext"?: string | undefined;
|
|
74
|
-
"aria-rowspan"?: number | undefined;
|
|
75
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
76
|
-
"aria-setsize"?: number | undefined;
|
|
77
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
78
|
-
"aria-valuemax"?: number | undefined;
|
|
79
|
-
"aria-valuemin"?: number | undefined;
|
|
80
|
-
"aria-valuenow"?: number | undefined;
|
|
81
|
-
"aria-valuetext"?: string | undefined;
|
|
82
|
-
}, HTMLElement>;
|
|
83
|
-
export interface KjunStackProps extends RootAttributes {
|
|
84
|
-
/** Space between children: space.stack (sm·md·lg) or space.section (section-sm·md·lg). */
|
|
85
|
-
gap?: StackGap;
|
|
86
|
-
align?: StackAlign;
|
|
87
|
-
as?: "div" | "section";
|
|
41
|
+
export declare function KjunText({ variant, tone, as, align, maxLines, numeric, decoration, expandable, expanded: given, onExpandedChange, className, style, children, ...rest }: KjunTextProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/** Props both KjunStack and KjunInline take. */
|
|
43
|
+
interface FlexOwnProps {
|
|
44
|
+
/** Lay the children out as a column or a row; an object changes it with the width, e.g. { base: "column", medium: "row" }. */
|
|
45
|
+
direction?: DirectionValue;
|
|
46
|
+
/** Inner space from space.inset (sm 12 · md 16 · lg 24) on every side; paddingX and paddingY replace one axis. Takes an object per width like gap. */
|
|
47
|
+
padding?: PaddingValue;
|
|
48
|
+
paddingX?: PaddingValue;
|
|
49
|
+
paddingY?: PaddingValue;
|
|
50
|
+
/** A divider between children: true or "full" a hairline, "inset" a hairline that starts after dividerInset, "strong" a band
|
|
51
|
+
* for sections. A hairline sits inside the gap, so the distance between children stays the gap; a band adds its thickness. */
|
|
52
|
+
divider?: StackDivider;
|
|
53
|
+
/** Where an inset divider starts: space.inset (sm 12 · md 16 · lg 24). Default md. */
|
|
54
|
+
dividerInset?: InsetStep;
|
|
55
|
+
/** What the responsive values follow: viewport (default, CSS media queries) or container, the element's own width, measured. */
|
|
56
|
+
responsive?: ResponsiveBasis;
|
|
57
|
+
/** Main-axis distribution; takes an object per width like gap. */
|
|
58
|
+
justify?: JustifyValue;
|
|
88
59
|
className?: string;
|
|
89
60
|
style?: CSSProperties;
|
|
90
61
|
children?: ReactNode;
|
|
91
62
|
}
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"aria-describedby"?: string | undefined;
|
|
114
|
-
"aria-description"?: string | undefined;
|
|
115
|
-
"aria-details"?: string | undefined;
|
|
116
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
117
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
118
|
-
"aria-errormessage"?: string | undefined;
|
|
119
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
120
|
-
"aria-flowto"?: string | undefined;
|
|
121
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
122
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
123
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
124
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
125
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
126
|
-
"aria-label"?: string | undefined;
|
|
127
|
-
"aria-labelledby"?: string | undefined;
|
|
128
|
-
"aria-level"?: number | undefined;
|
|
129
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
131
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
132
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
133
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
|
-
"aria-owns"?: string | undefined;
|
|
135
|
-
"aria-placeholder"?: string | undefined;
|
|
136
|
-
"aria-posinset"?: number | undefined;
|
|
137
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
138
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
139
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
140
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
141
|
-
"aria-roledescription"?: string | undefined;
|
|
142
|
-
"aria-rowcount"?: number | undefined;
|
|
143
|
-
"aria-rowindex"?: number | undefined;
|
|
144
|
-
"aria-rowindextext"?: string | undefined;
|
|
145
|
-
"aria-rowspan"?: number | undefined;
|
|
146
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
147
|
-
"aria-setsize"?: number | undefined;
|
|
148
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
|
-
"aria-valuemax"?: number | undefined;
|
|
150
|
-
"aria-valuemin"?: number | undefined;
|
|
151
|
-
"aria-valuenow"?: number | undefined;
|
|
152
|
-
"aria-valuetext"?: string | undefined;
|
|
153
|
-
}, HTMLElement>;
|
|
154
|
-
export interface KjunInlineProps extends RootAttributes {
|
|
155
|
-
/** Space between children: space.inline (xs·sm·md·lg). */
|
|
156
|
-
gap?: InlineGap;
|
|
157
|
-
align?: InlineAlign;
|
|
158
|
-
justify?: InlineJustify;
|
|
63
|
+
/** The tag's own attributes (onSubmit for a form, disabled for a fieldset…) come with as. */
|
|
64
|
+
type WithTag<Own, T extends StackTag> = Own & {
|
|
65
|
+
as?: T;
|
|
66
|
+
} & Omit<ComponentPropsWithRef<T>, keyof Own | "as">;
|
|
67
|
+
export interface KjunStackOwnProps extends FlexOwnProps {
|
|
68
|
+
/** Space between children: space.stack (xs 4 · sm 8 · smMd 12 · md 16 · lg 24) or space.section (sectionSm 32 · sectionMd 48 · sectionLg 64).
|
|
69
|
+
* An object changes it with the width, e.g. { base: "sm", medium: "lg" } (compact 640, medium 768, wide 1024 and up). */
|
|
70
|
+
gap?: StackGapValue;
|
|
71
|
+
/** Cross-axis alignment. With stretch (the default) blocks fill the width while buttons, badges, chips and other
|
|
72
|
+
* content-width controls keep their own; a full-width button says so with block. An object changes it with the width. */
|
|
73
|
+
align?: StackAlignValue;
|
|
74
|
+
}
|
|
75
|
+
/** Element to render with as (ul and ol drop bullets and indent; give them li children); the tag's attributes and ref follow it. */
|
|
76
|
+
export type KjunStackProps<T extends StackTag = "div"> = WithTag<KjunStackOwnProps, T>;
|
|
77
|
+
export interface KjunInlineOwnProps extends FlexOwnProps {
|
|
78
|
+
/** Space between children: space.inline (xs·sm·md·lg). An object changes it with the width like Stack's gap. */
|
|
79
|
+
gap?: InlineGapValue;
|
|
80
|
+
/** The space between wrapped lines: space.stack (xs 4 · sm 8 · smMd 12 · md 16 · lg 24); absent, the lines keep the gap. Takes an object per width. */
|
|
81
|
+
rowGap?: InlineRowGapValue;
|
|
82
|
+
/** Cross-axis alignment; an object changes it with the width. */
|
|
83
|
+
align?: InlineAlignValue;
|
|
159
84
|
/** Wrap onto new lines when the row runs out of width. Default true. */
|
|
160
85
|
wrap?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export type KjunInlineProps<T extends StackTag = "div"> = WithTag<KjunInlineOwnProps, T>;
|
|
88
|
+
export interface KjunSpacerProps {
|
|
161
89
|
className?: string;
|
|
162
90
|
style?: CSSProperties;
|
|
163
|
-
children?: ReactNode;
|
|
164
91
|
}
|
|
92
|
+
/** Takes the spare length of a Stack or Inline, pushing what follows to the far end: a menu at the top and a profile at the bottom. */
|
|
93
|
+
export declare function KjunSpacer({ className, style }: KjunSpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
/** Vertical stack (direction turns it into a row). It is not KJUN markup (a data attribute, no kjun- class), so app children keep
|
|
95
|
+
* the styles they would have without it; direct form groups drop their own bottom margin. */
|
|
96
|
+
export declare function KjunStack<T extends StackTag = "div">(props: KjunStackProps<T>): ReactElement;
|
|
165
97
|
/** Horizontal row that wraps by default. Like KjunStack it is not KJUN markup, so app children keep their own styles. */
|
|
166
|
-
export declare function KjunInline
|
|
98
|
+
export declare function KjunInline<T extends StackTag = "div">({ wrap, ...props }: KjunInlineProps<T>): ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AriaAttributes, type CSSProperties, type ReactNode } from "react";
|
|
2
|
-
import { type InlineAlign, type InlineGap, type InlineJustify, type StackAlign, type StackGap, type TextAlign, type TextTag, type TextTone, type TextVariant } from "../../../shared/package-runtime/layout-primitives.js";
|
|
3
|
-
export type { InlineAlign, InlineGap, InlineJustify, StackAlign, StackGap, TextAlign, TextTag, TextTone, TextVariant };
|
|
1
|
+
import { type AriaAttributes, type AriaRole, type ComponentPropsWithRef, type CSSProperties, type ReactElement, type ReactNode, type Ref } from "react";
|
|
2
|
+
import { type DirectionValue, type FlexDirection, type InlineAlign, type InlineAlignValue, type InlineGap, type InlineGapValue, type InlineJustify, type InlineRowGap, type InlineRowGapValue, type InsetStep, type JustifyValue, type LegacyStackGap, type PaddingValue, type Responsive, type ResponsiveBasis, type StackAlign, type StackAlignValue, type StackBreakpoint, type StackDivider, type StackGap, type StackGapValue, type StackJustify, type StackTag, type TextAlign, type TextDecoration, type TextTag, type TextTone, type TextVariant } from "../../../shared/package-runtime/layout-primitives.js";
|
|
3
|
+
export type { DirectionValue, FlexDirection, InlineAlign, InlineAlignValue, InlineGap, InlineGapValue, InlineJustify, InlineRowGap, InlineRowGapValue, InsetStep, JustifyValue, LegacyStackGap, PaddingValue, Responsive, ResponsiveBasis, StackAlign, StackAlignValue, StackBreakpoint, StackDivider, StackGap, StackGapValue, StackJustify, StackTag, TextAlign, TextDecoration, TextTag, TextTone, TextVariant };
|
|
4
4
|
interface RootAttributes extends AriaAttributes {
|
|
5
5
|
id?: string;
|
|
6
6
|
}
|
|
@@ -14,153 +14,85 @@ export interface KjunTextProps extends RootAttributes {
|
|
|
14
14
|
align?: TextAlign;
|
|
15
15
|
/** Clamp to this many lines with an ellipsis; the full text stays in the DOM. */
|
|
16
16
|
maxLines?: number;
|
|
17
|
+
/** With maxLines, a "더보기" button under the text opens the rest and turns into "접기". It shows only while the text
|
|
18
|
+
* overflows (or is open). The text and the button sit in a wrapper div; the text element keeps the other props. */
|
|
19
|
+
expandable?: boolean;
|
|
20
|
+
/** Whether the expandable text is open; leave it out to let the text keep it. */
|
|
21
|
+
expanded?: boolean;
|
|
22
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
23
|
+
/** Fixed-width digits, so amounts in a column line up. Size and weight stay the variant's. */
|
|
24
|
+
numeric?: boolean;
|
|
25
|
+
/** "lineThrough" strikes the text, e.g. a price before a discount. */
|
|
26
|
+
decoration?: TextDecoration;
|
|
27
|
+
/** Browser tooltip, e.g. the full sentence of a clamped text. */
|
|
28
|
+
title?: string;
|
|
29
|
+
lang?: string;
|
|
30
|
+
dir?: "ltr" | "rtl" | "auto";
|
|
31
|
+
/** The element, e.g. to move focus to a heading after the screen changes (with tabIndex={-1}). */
|
|
32
|
+
ref?: Ref<HTMLElement>;
|
|
33
|
+
/** -1 lets code focus the text without adding it to the Tab order. */
|
|
34
|
+
tabIndex?: number;
|
|
35
|
+
/** An ARIA role for the element, such as "status" for a message that should be announced. */
|
|
36
|
+
role?: AriaRole;
|
|
17
37
|
className?: string;
|
|
18
38
|
style?: CSSProperties;
|
|
19
39
|
children?: ReactNode;
|
|
20
40
|
}
|
|
21
|
-
export declare function KjunText({ variant, tone, as, align, maxLines, className, style, children, ...rest }: KjunTextProps): import("react").
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"aria-colspan"?: number | undefined;
|
|
40
|
-
"aria-controls"?: string | undefined;
|
|
41
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
42
|
-
"aria-describedby"?: string | undefined;
|
|
43
|
-
"aria-description"?: string | undefined;
|
|
44
|
-
"aria-details"?: string | undefined;
|
|
45
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
46
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
47
|
-
"aria-errormessage"?: string | undefined;
|
|
48
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
49
|
-
"aria-flowto"?: string | undefined;
|
|
50
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
51
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
52
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
53
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
54
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
55
|
-
"aria-label"?: string | undefined;
|
|
56
|
-
"aria-labelledby"?: string | undefined;
|
|
57
|
-
"aria-level"?: number | undefined;
|
|
58
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
60
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
61
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
62
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
63
|
-
"aria-owns"?: string | undefined;
|
|
64
|
-
"aria-placeholder"?: string | undefined;
|
|
65
|
-
"aria-posinset"?: number | undefined;
|
|
66
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
67
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
68
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
69
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
70
|
-
"aria-roledescription"?: string | undefined;
|
|
71
|
-
"aria-rowcount"?: number | undefined;
|
|
72
|
-
"aria-rowindex"?: number | undefined;
|
|
73
|
-
"aria-rowindextext"?: string | undefined;
|
|
74
|
-
"aria-rowspan"?: number | undefined;
|
|
75
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
76
|
-
"aria-setsize"?: number | undefined;
|
|
77
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
78
|
-
"aria-valuemax"?: number | undefined;
|
|
79
|
-
"aria-valuemin"?: number | undefined;
|
|
80
|
-
"aria-valuenow"?: number | undefined;
|
|
81
|
-
"aria-valuetext"?: string | undefined;
|
|
82
|
-
}, HTMLElement>;
|
|
83
|
-
export interface KjunStackProps extends RootAttributes {
|
|
84
|
-
/** Space between children: space.stack (sm·md·lg) or space.section (section-sm·md·lg). */
|
|
85
|
-
gap?: StackGap;
|
|
86
|
-
align?: StackAlign;
|
|
87
|
-
as?: "div" | "section";
|
|
41
|
+
export declare function KjunText({ variant, tone, as, align, maxLines, numeric, decoration, expandable, expanded: given, onExpandedChange, className, style, children, ...rest }: KjunTextProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/** Props both KjunStack and KjunInline take. */
|
|
43
|
+
interface FlexOwnProps {
|
|
44
|
+
/** Lay the children out as a column or a row; an object changes it with the width, e.g. { base: "column", medium: "row" }. */
|
|
45
|
+
direction?: DirectionValue;
|
|
46
|
+
/** Inner space from space.inset (sm 12 · md 16 · lg 24) on every side; paddingX and paddingY replace one axis. Takes an object per width like gap. */
|
|
47
|
+
padding?: PaddingValue;
|
|
48
|
+
paddingX?: PaddingValue;
|
|
49
|
+
paddingY?: PaddingValue;
|
|
50
|
+
/** A divider between children: true or "full" a hairline, "inset" a hairline that starts after dividerInset, "strong" a band
|
|
51
|
+
* for sections. A hairline sits inside the gap, so the distance between children stays the gap; a band adds its thickness. */
|
|
52
|
+
divider?: StackDivider;
|
|
53
|
+
/** Where an inset divider starts: space.inset (sm 12 · md 16 · lg 24). Default md. */
|
|
54
|
+
dividerInset?: InsetStep;
|
|
55
|
+
/** What the responsive values follow: viewport (default, CSS media queries) or container, the element's own width, measured. */
|
|
56
|
+
responsive?: ResponsiveBasis;
|
|
57
|
+
/** Main-axis distribution; takes an object per width like gap. */
|
|
58
|
+
justify?: JustifyValue;
|
|
88
59
|
className?: string;
|
|
89
60
|
style?: CSSProperties;
|
|
90
61
|
children?: ReactNode;
|
|
91
62
|
}
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"aria-describedby"?: string | undefined;
|
|
114
|
-
"aria-description"?: string | undefined;
|
|
115
|
-
"aria-details"?: string | undefined;
|
|
116
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
117
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
118
|
-
"aria-errormessage"?: string | undefined;
|
|
119
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
120
|
-
"aria-flowto"?: string | undefined;
|
|
121
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
122
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
123
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
124
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
125
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
126
|
-
"aria-label"?: string | undefined;
|
|
127
|
-
"aria-labelledby"?: string | undefined;
|
|
128
|
-
"aria-level"?: number | undefined;
|
|
129
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
131
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
132
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
133
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
|
-
"aria-owns"?: string | undefined;
|
|
135
|
-
"aria-placeholder"?: string | undefined;
|
|
136
|
-
"aria-posinset"?: number | undefined;
|
|
137
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
138
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
139
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
140
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
141
|
-
"aria-roledescription"?: string | undefined;
|
|
142
|
-
"aria-rowcount"?: number | undefined;
|
|
143
|
-
"aria-rowindex"?: number | undefined;
|
|
144
|
-
"aria-rowindextext"?: string | undefined;
|
|
145
|
-
"aria-rowspan"?: number | undefined;
|
|
146
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
147
|
-
"aria-setsize"?: number | undefined;
|
|
148
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
|
-
"aria-valuemax"?: number | undefined;
|
|
150
|
-
"aria-valuemin"?: number | undefined;
|
|
151
|
-
"aria-valuenow"?: number | undefined;
|
|
152
|
-
"aria-valuetext"?: string | undefined;
|
|
153
|
-
}, HTMLElement>;
|
|
154
|
-
export interface KjunInlineProps extends RootAttributes {
|
|
155
|
-
/** Space between children: space.inline (xs·sm·md·lg). */
|
|
156
|
-
gap?: InlineGap;
|
|
157
|
-
align?: InlineAlign;
|
|
158
|
-
justify?: InlineJustify;
|
|
63
|
+
/** The tag's own attributes (onSubmit for a form, disabled for a fieldset…) come with as. */
|
|
64
|
+
type WithTag<Own, T extends StackTag> = Own & {
|
|
65
|
+
as?: T;
|
|
66
|
+
} & Omit<ComponentPropsWithRef<T>, keyof Own | "as">;
|
|
67
|
+
export interface KjunStackOwnProps extends FlexOwnProps {
|
|
68
|
+
/** Space between children: space.stack (xs 4 · sm 8 · smMd 12 · md 16 · lg 24) or space.section (sectionSm 32 · sectionMd 48 · sectionLg 64).
|
|
69
|
+
* An object changes it with the width, e.g. { base: "sm", medium: "lg" } (compact 640, medium 768, wide 1024 and up). */
|
|
70
|
+
gap?: StackGapValue;
|
|
71
|
+
/** Cross-axis alignment. With stretch (the default) blocks fill the width while buttons, badges, chips and other
|
|
72
|
+
* content-width controls keep their own; a full-width button says so with block. An object changes it with the width. */
|
|
73
|
+
align?: StackAlignValue;
|
|
74
|
+
}
|
|
75
|
+
/** Element to render with as (ul and ol drop bullets and indent; give them li children); the tag's attributes and ref follow it. */
|
|
76
|
+
export type KjunStackProps<T extends StackTag = "div"> = WithTag<KjunStackOwnProps, T>;
|
|
77
|
+
export interface KjunInlineOwnProps extends FlexOwnProps {
|
|
78
|
+
/** Space between children: space.inline (xs·sm·md·lg). An object changes it with the width like Stack's gap. */
|
|
79
|
+
gap?: InlineGapValue;
|
|
80
|
+
/** The space between wrapped lines: space.stack (xs 4 · sm 8 · smMd 12 · md 16 · lg 24); absent, the lines keep the gap. Takes an object per width. */
|
|
81
|
+
rowGap?: InlineRowGapValue;
|
|
82
|
+
/** Cross-axis alignment; an object changes it with the width. */
|
|
83
|
+
align?: InlineAlignValue;
|
|
159
84
|
/** Wrap onto new lines when the row runs out of width. Default true. */
|
|
160
85
|
wrap?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export type KjunInlineProps<T extends StackTag = "div"> = WithTag<KjunInlineOwnProps, T>;
|
|
88
|
+
export interface KjunSpacerProps {
|
|
161
89
|
className?: string;
|
|
162
90
|
style?: CSSProperties;
|
|
163
|
-
children?: ReactNode;
|
|
164
91
|
}
|
|
92
|
+
/** Takes the spare length of a Stack or Inline, pushing what follows to the far end: a menu at the top and a profile at the bottom. */
|
|
93
|
+
export declare function KjunSpacer({ className, style }: KjunSpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
/** Vertical stack (direction turns it into a row). It is not KJUN markup (a data attribute, no kjun- class), so app children keep
|
|
95
|
+
* the styles they would have without it; direct form groups drop their own bottom margin. */
|
|
96
|
+
export declare function KjunStack<T extends StackTag = "div">(props: KjunStackProps<T>): ReactElement;
|
|
165
97
|
/** Horizontal row that wraps by default. Like KjunStack it is not KJUN markup, so app children keep their own styles. */
|
|
166
|
-
export declare function KjunInline
|
|
98
|
+
export declare function KjunInline<T extends StackTag = "div">({ wrap, ...props }: KjunInlineProps<T>): ReactElement;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The enclosing KjunListSection's shape: whether it is open
|
|
2
|
+
* The enclosing KjunListSection's shape: whether it is open, details or compact, so its rows and a row skeleton in its loading
|
|
3
3
|
* slot draw the same row (open rows' larger lines, compact rows' height).
|
|
4
4
|
*/
|
|
5
5
|
export declare const ListShapeContext: import("react").Context<{
|
|
6
6
|
open: boolean;
|
|
7
|
+
details?: boolean;
|
|
7
8
|
compact: boolean;
|
|
8
9
|
}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The enclosing KjunListSection's shape: whether it is open
|
|
2
|
+
* The enclosing KjunListSection's shape: whether it is open, details or compact, so its rows and a row skeleton in its loading
|
|
3
3
|
* slot draw the same row (open rows' larger lines, compact rows' height).
|
|
4
4
|
*/
|
|
5
5
|
export declare const ListShapeContext: import("react").Context<{
|
|
6
6
|
open: boolean;
|
|
7
|
+
details?: boolean;
|
|
7
8
|
compact: boolean;
|
|
8
9
|
}>;
|