@accelint/design-toolkit 9.9.1 → 9.10.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/catalog-info.yaml +3 -3
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/styles.module.css +19 -3
- package/dist/components/accordion/trigger.d.ts +2 -2
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/audio/index.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/context.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/breadcrumbs/item.d.ts +2 -2
- package/dist/components/button/context.d.ts +8 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/styles.module.css +16 -0
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/carousel/context.d.ts +40 -0
- package/dist/components/carousel/context.js +55 -0
- package/dist/components/carousel/context.js.map +1 -0
- package/dist/components/carousel/gallery.d.ts +38 -0
- package/dist/components/carousel/gallery.js +84 -0
- package/dist/components/carousel/gallery.js.map +1 -0
- package/dist/components/carousel/index.d.ts +56 -0
- package/dist/components/carousel/index.js +66 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/carousel/navigation.d.ts +51 -0
- package/dist/components/carousel/navigation.js +82 -0
- package/dist/components/carousel/navigation.js.map +1 -0
- package/dist/components/carousel/position.d.ts +33 -0
- package/dist/components/carousel/position.js +48 -0
- package/dist/components/carousel/position.js.map +1 -0
- package/dist/components/carousel/select.d.ts +38 -0
- package/dist/components/carousel/select.js +69 -0
- package/dist/components/carousel/select.js.map +1 -0
- package/dist/components/carousel/style.module.css +62 -0
- package/dist/components/carousel/types.d.ts +87 -0
- package/dist/components/carousel/types.js +12 -0
- package/dist/components/carousel/viewer.d.ts +40 -0
- package/dist/components/carousel/viewer.js +75 -0
- package/dist/components/carousel/viewer.js.map +1 -0
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/group.js +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/context.d.ts +4 -4
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/classification-badge/context.d.ts +4 -4
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-banner/context.d.ts +4 -4
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/combobox-field/index.js +1 -1
- package/dist/components/combobox-field/styles.module.css +12 -0
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +4 -4
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/styles.module.css +23 -0
- package/dist/components/dialog/title.d.ts +2 -2
- package/dist/components/divider/context.d.ts +4 -4
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/drawer/back.d.ts +2 -2
- package/dist/components/drawer/close.d.ts +2 -2
- package/dist/components/drawer/content.d.ts +2 -2
- package/dist/components/drawer/context.d.ts +2 -2
- package/dist/components/drawer/footer.d.ts +2 -2
- package/dist/components/drawer/header-title.d.ts +2 -2
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/layout-main.d.ts +2 -2
- package/dist/components/drawer/layout.d.ts +2 -2
- package/dist/components/drawer/menu-item.d.ts +2 -2
- package/dist/components/drawer/menu.d.ts +2 -2
- package/dist/components/drawer/panel.d.ts +2 -2
- package/dist/components/drawer/styles.module.css +54 -2
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/floating-card/context.d.ts +37 -5
- package/dist/components/floating-card/context.js +18 -3
- package/dist/components/floating-card/context.js.map +1 -1
- package/dist/components/floating-card/index.d.ts +53 -3
- package/dist/components/floating-card/index.js +41 -11
- package/dist/components/floating-card/index.js.map +1 -1
- package/dist/components/floating-card/provider.d.ts +94 -17
- package/dist/components/floating-card/provider.js +116 -20
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +5 -0
- package/dist/components/gantt/components/base-elements/point.d.ts +28 -0
- package/dist/components/gantt/components/base-elements/point.js +44 -0
- package/dist/components/gantt/components/base-elements/point.js.map +1 -0
- package/dist/components/gantt/components/base-elements/range.d.ts +30 -0
- package/dist/components/gantt/components/base-elements/range.js +51 -0
- package/dist/components/gantt/components/base-elements/range.js.map +1 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.d.ts +12 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js +42 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js.map +1 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.d.ts +23 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js +50 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +23 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.js +40 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +23 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js +33 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/styles.module.css +32 -0
- package/dist/components/gantt/components/containers/internal/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/index.js +35 -0
- package/dist/components/gantt/components/containers/internal/index.js.map +1 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.js +27 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/internal/styles.module.css +35 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js +38 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/block.d.ts +27 -0
- package/dist/components/gantt/components/content-row/block.js +39 -0
- package/dist/components/gantt/components/content-row/block.js.map +1 -0
- package/dist/components/gantt/components/content-row/bracket.d.ts +23 -0
- package/dist/components/gantt/components/content-row/bracket.js +48 -0
- package/dist/components/gantt/components/content-row/bracket.js.map +1 -0
- package/dist/components/gantt/components/content-row/icon-marker.d.ts +27 -0
- package/dist/components/gantt/components/content-row/icon-marker.js +41 -0
- package/dist/components/gantt/components/content-row/icon-marker.js.map +1 -0
- package/dist/components/gantt/components/content-row/index.d.ts +24 -0
- package/dist/components/gantt/components/content-row/index.js +32 -0
- package/dist/components/gantt/components/content-row/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/marker.d.ts +21 -0
- package/dist/components/gantt/components/content-row/marker.js +35 -0
- package/dist/components/gantt/components/content-row/marker.js.map +1 -0
- package/dist/components/gantt/components/content-row/spacer.d.ts +23 -0
- package/dist/components/gantt/components/content-row/spacer.js +35 -0
- package/dist/components/gantt/components/content-row/spacer.js.map +1 -0
- package/dist/components/gantt/components/content-row/styles.module.css +198 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.d.ts +19 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js +27 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.d.ts +10 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.js +24 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.js.map +1 -0
- package/dist/components/gantt/components/current-time/index.d.ts +28 -0
- package/dist/components/gantt/components/current-time/index.js +63 -0
- package/dist/components/gantt/components/current-time/index.js.map +1 -0
- package/dist/components/gantt/components/current-time/styles.module.css +42 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.d.ts +31 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.js +58 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.js.map +1 -0
- package/dist/components/gantt/components/header/index.d.ts +25 -0
- package/dist/components/gantt/components/header/index.js +41 -0
- package/dist/components/gantt/components/header/index.js.map +1 -0
- package/dist/components/gantt/components/header/styles.module.css +23 -0
- package/dist/components/gantt/components/panel-row/index.d.ts +24 -0
- package/dist/components/gantt/components/panel-row/index.js +33 -0
- package/dist/components/gantt/components/panel-row/index.js.map +1 -0
- package/dist/components/gantt/components/panel-row/styles.module.css +24 -0
- package/dist/components/gantt/components/rows-virtualizer/index.d.ts +25 -0
- package/dist/components/gantt/components/rows-virtualizer/index.js +67 -0
- package/dist/components/gantt/components/rows-virtualizer/index.js.map +1 -0
- package/dist/components/gantt/components/rows-virtualizer/styles.module.css +30 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.d.ts +29 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js +57 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js.map +1 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.d.ts +10 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js +58 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js.map +1 -0
- package/dist/components/gantt/components/styles.module.css +46 -0
- package/dist/components/gantt/components/timeline/index.d.ts +19 -0
- package/dist/components/gantt/components/timeline/index.js +45 -0
- package/dist/components/gantt/components/timeline/index.js.map +1 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.d.ts +29 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.js +33 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.js.map +1 -0
- package/dist/components/gantt/components/timeline-chunk/index.d.ts +25 -0
- package/dist/components/gantt/components/timeline-chunk/index.js +43 -0
- package/dist/components/gantt/components/timeline-chunk/index.js.map +1 -0
- package/dist/components/gantt/constants.d.ts +31 -0
- package/dist/components/gantt/constants.js +57 -0
- package/dist/components/gantt/constants.js.map +1 -0
- package/dist/components/gantt/context/index.d.ts +60 -0
- package/dist/components/gantt/context/index.js +78 -0
- package/dist/components/gantt/context/index.js.map +1 -0
- package/dist/components/gantt/context/store/index.d.ts +45 -0
- package/dist/components/gantt/context/store/index.js +42 -0
- package/dist/components/gantt/context/store/index.js.map +1 -0
- package/dist/components/gantt/context/temporal-data/index.d.ts +48 -0
- package/dist/components/gantt/context/temporal-data/index.js +80 -0
- package/dist/components/gantt/context/temporal-data/index.js.map +1 -0
- package/dist/components/gantt/gantt.d.ts +50 -0
- package/dist/components/gantt/gantt.js +51 -0
- package/dist/components/gantt/gantt.js.map +1 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.d.ts +22 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js +36 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.d.ts +26 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.js +45 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.d.ts +26 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js +50 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.d.ts +5 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.js +24 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.d.ts +5 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.js +40 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.d.ts +19 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js +87 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.d.ts +22 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js +38 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js.map +1 -0
- package/dist/components/gantt/public-types.d.ts +31 -0
- package/dist/components/gantt/public-types.js +12 -0
- package/dist/components/gantt/store.d.ts +51 -0
- package/dist/components/gantt/store.js +46 -0
- package/dist/components/gantt/store.js.map +1 -0
- package/dist/components/gantt/styles.module.css +30 -0
- package/dist/components/gantt/types.d.ts +67 -0
- package/dist/components/gantt/types.js +12 -0
- package/dist/components/gantt/utils/conversions.d.ts +23 -0
- package/dist/components/gantt/utils/conversions.js +34 -0
- package/dist/components/gantt/utils/conversions.js.map +1 -0
- package/dist/components/gantt/utils/dates.d.ts +11 -0
- package/dist/components/gantt/utils/dates.js +41 -0
- package/dist/components/gantt/utils/dates.js.map +1 -0
- package/dist/components/gantt/utils/formatting.d.ts +5 -0
- package/dist/components/gantt/utils/formatting.js +54 -0
- package/dist/components/gantt/utils/formatting.js.map +1 -0
- package/dist/components/gantt/utils/generation.d.ts +19 -0
- package/dist/components/gantt/utils/generation.js +37 -0
- package/dist/components/gantt/utils/generation.js.map +1 -0
- package/dist/components/gantt/utils/helpers.d.ts +26 -0
- package/dist/components/gantt/utils/helpers.js +55 -0
- package/dist/components/gantt/utils/helpers.js.map +1 -0
- package/dist/components/gantt/utils/layout.d.ts +32 -0
- package/dist/components/gantt/utils/layout.js +55 -0
- package/dist/components/gantt/utils/layout.js.map +1 -0
- package/dist/components/gantt/utils/thresholds.d.ts +52 -0
- package/dist/components/gantt/utils/thresholds.js +116 -0
- package/dist/components/gantt/utils/thresholds.js.map +1 -0
- package/dist/components/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +3 -3
- package/dist/components/hero/title.d.ts +2 -2
- package/dist/components/hotkey/context.d.ts +4 -4
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +4 -4
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/kanban/card-body.d.ts +2 -2
- package/dist/components/kanban/card-header-actions.d.ts +2 -2
- package/dist/components/kanban/card-header-title.d.ts +2 -2
- package/dist/components/kanban/card-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/kanban/styles.module.css +5 -0
- package/dist/components/label/context.d.ts +4 -4
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/item-content.d.ts +2 -2
- package/dist/components/list/item-description.d.ts +2 -2
- package/dist/components/list/item-title.d.ts +2 -2
- package/dist/components/list/item.d.ts +2 -2
- package/dist/components/media-controls/context.d.ts +4 -4
- package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
- package/dist/components/media-controls/index.d.ts +2 -2
- package/dist/components/media-controls/play-button.d.ts +2 -2
- package/dist/components/media-controls/playback-rate.d.ts +2 -2
- package/dist/components/media-controls/seek-button.d.ts +2 -2
- package/dist/components/media-controls/time-display.d.ts +2 -2
- package/dist/components/media-controls/time-range.d.ts +2 -2
- package/dist/components/media-controls/volume-slider.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/item-description.d.ts +2 -2
- package/dist/components/menu/item-label.d.ts +2 -2
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/separator.d.ts +2 -2
- package/dist/components/menu/styles.module.css +12 -0
- package/dist/components/menu/submenu.d.ts +3 -3
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/index.js +1 -0
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.js +10 -1
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/styles.module.css +27 -0
- package/dist/components/options/context.d.ts +2 -2
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/item-content.d.ts +2 -2
- package/dist/components/options/item-description.d.ts +2 -2
- package/dist/components/options/item-label.d.ts +2 -2
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/next.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/pagination/prev.d.ts +2 -2
- package/dist/components/popover/content.d.ts +2 -2
- package/dist/components/popover/footer.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/styles.module.css +34 -0
- package/dist/components/popover/title.d.ts +2 -2
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/query-builder/action-element.d.ts +2 -2
- package/dist/components/query-builder/actions.d.ts +4 -4
- package/dist/components/query-builder/combinator-selector.d.ts +2 -2
- package/dist/components/query-builder/index.d.ts +2 -2
- package/dist/components/query-builder/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- package/dist/components/query-builder/styles.module.css +4 -1
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-editor.js +1 -1
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/query-builder/value-selector.js +1 -1
- package/dist/components/radio/context.d.ts +3 -3
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/search-field/context.d.ts +4 -4
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/select-field/context.d.ts +4 -4
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/styles.module.css +30 -10
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/status-indicator/index.d.ts +2 -2
- package/dist/components/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/styles.module.css +8 -0
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +6 -2
- package/dist/components/table/index.js +19 -6
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/table/types.d.ts +17 -0
- package/dist/components/tabs/context.d.ts +6 -6
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/text-area-field/context.d.ts +4 -4
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-field/context.d.ts +4 -4
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/time-field/index.d.ts +2 -2
- package/dist/components/tooltip/context.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/styles.module.css +35 -0
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tree/context.d.ts +3 -3
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/index.js +20 -10
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-content.js +3 -2
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +2 -2
- package/dist/components/tree/types.d.ts +1 -0
- package/dist/components/video/index.d.ts +2 -2
- package/dist/components/view-stack/context.d.ts +2 -2
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/hooks/use-tree/actions/cache.d.ts +20 -3
- package/dist/hooks/use-tree/actions/cache.js +110 -2
- package/dist/hooks/use-tree/actions/cache.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +2 -1
- package/dist/hooks/use-tree/actions/index.js +70 -11
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +20 -1
- package/dist/hooks/use-tree/state/index.js +22 -2
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/hooks/use-tree/types.d.ts +14 -0
- package/dist/index.d.ts +24 -5
- package/dist/index.js +27 -10
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +68 -10
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { SelectFieldProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react39 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime155 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/select-field/context.d.ts
|
|
21
21
|
/** Context for SelectField component */
|
|
22
|
-
declare const SelectFieldContext:
|
|
22
|
+
declare const SelectFieldContext: react39.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Provider for setting default props across multiple SelectField components
|
|
25
25
|
*
|
|
@@ -29,7 +29,7 @@ declare const SelectFieldContext: react30.Context<ContextValue<SelectFieldProps,
|
|
|
29
29
|
declare function SelectFieldProvider({
|
|
30
30
|
children,
|
|
31
31
|
...props
|
|
32
|
-
}: ProviderProps<SelectFieldProps>):
|
|
32
|
+
}: ProviderProps<SelectFieldProps>): react_jsx_runtime155.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { SelectFieldContext, SelectFieldProvider };
|
|
35
35
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SelectFieldProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime157 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/select-field/index.d.ts
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ import * as react_jsx_runtime142 from "react/jsx-runtime";
|
|
|
43
43
|
declare function SelectField({
|
|
44
44
|
ref,
|
|
45
45
|
...props
|
|
46
|
-
}: SelectFieldProps):
|
|
46
|
+
}: SelectFieldProps): react_jsx_runtime157.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { SelectField };
|
|
49
49
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavAvatarProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime164 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/avatar.d.ts
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ declare function SidenavAvatar({
|
|
|
41
41
|
children,
|
|
42
42
|
className,
|
|
43
43
|
...rest
|
|
44
|
-
}: SidenavAvatarProps):
|
|
44
|
+
}: SidenavAvatarProps): react_jsx_runtime164.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SidenavAvatar };
|
|
47
47
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavContentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime165 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/content.d.ts
|
|
18
18
|
|
|
@@ -45,7 +45,7 @@ declare function SidenavContent({
|
|
|
45
45
|
className,
|
|
46
46
|
children,
|
|
47
47
|
...rest
|
|
48
|
-
}: SidenavContentProps):
|
|
48
|
+
}: SidenavContentProps): react_jsx_runtime165.JSX.Element;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { SidenavContent };
|
|
51
51
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavContextValue } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react42 from "react";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/context.d.ts
|
|
18
18
|
/** Context for sidenav state and identification */
|
|
19
|
-
declare const SidenavContext:
|
|
19
|
+
declare const SidenavContext: react42.Context<SidenavContextValue>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SidenavContext };
|
|
22
22
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { SidenavFooterProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime168 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/sidenav/footer.d.ts
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ import * as react_jsx_runtime147 from "react/jsx-runtime";
|
|
|
33
33
|
* @param props - {@link SidenavFooterProps}
|
|
34
34
|
* @returns The rendered SidenavFooter component.
|
|
35
35
|
*/
|
|
36
|
-
declare function SidenavFooter(props: SidenavFooterProps):
|
|
36
|
+
declare function SidenavFooter(props: SidenavFooterProps): react_jsx_runtime168.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { SidenavFooter };
|
|
39
39
|
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavHeaderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime170 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/header.d.ts
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ declare function SidenavHeader({
|
|
|
42
42
|
children,
|
|
43
43
|
classNames,
|
|
44
44
|
...rest
|
|
45
|
-
}: SidenavHeaderProps):
|
|
45
|
+
}: SidenavHeaderProps): react_jsx_runtime170.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { SidenavHeader };
|
|
48
48
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime171 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/index.d.ts
|
|
18
18
|
|
|
@@ -87,7 +87,7 @@ declare function Sidenav({
|
|
|
87
87
|
isHiddenWhenClosed,
|
|
88
88
|
children,
|
|
89
89
|
...rest
|
|
90
|
-
}: SidenavProps):
|
|
90
|
+
}: SidenavProps): react_jsx_runtime171.JSX.Element | null;
|
|
91
91
|
//#endregion
|
|
92
92
|
export { Sidenav };
|
|
93
93
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime172 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/item.d.ts
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ declare function SidenavItem({
|
|
|
40
40
|
classNames,
|
|
41
41
|
textValue,
|
|
42
42
|
...rest
|
|
43
|
-
}: SidenavItemProps):
|
|
43
|
+
}: SidenavItemProps): react_jsx_runtime172.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { SidenavItem };
|
|
46
46
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavLinkProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime175 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/link.d.ts
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ declare function SidenavLink({
|
|
|
40
40
|
classNames,
|
|
41
41
|
textValue,
|
|
42
42
|
...rest
|
|
43
|
-
}: SidenavLinkProps):
|
|
43
|
+
}: SidenavLinkProps): react_jsx_runtime175.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { SidenavLink };
|
|
46
46
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { SidenavMenuItemProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime179 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/sidenav/menu-item.d.ts
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ declare function SidenavMenuItem({
|
|
|
37
37
|
className,
|
|
38
38
|
children,
|
|
39
39
|
...rest
|
|
40
|
-
}: SidenavMenuItemProps):
|
|
40
|
+
}: SidenavMenuItemProps): react_jsx_runtime179.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { SidenavMenuItem };
|
|
43
43
|
//# sourceMappingURL=menu-item.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavMenuProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime176 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/menu.d.ts
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ declare function SidenavMenu({
|
|
|
43
43
|
classNames,
|
|
44
44
|
children,
|
|
45
45
|
...rest
|
|
46
|
-
}: SidenavMenuProps):
|
|
46
|
+
}: SidenavMenuProps): react_jsx_runtime176.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { SidenavMenu };
|
|
49
49
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -14,14 +14,22 @@
|
|
|
14
14
|
|
|
15
15
|
@layer components.l1 {
|
|
16
16
|
.sidenav {
|
|
17
|
-
|
|
17
|
+
--sidenav-width: 64px;
|
|
18
|
+
@apply fg-primary-bold gap-xs bg-surface-default p-m absolute left-0 row-span-full flex h-full flex-col;
|
|
18
19
|
|
|
19
|
-
@variant
|
|
20
|
-
|
|
20
|
+
@variant motion-safe {
|
|
21
|
+
transition: transform var(--animation-duration-normal)
|
|
22
|
+
var(--animation-easing-standard);
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
@variant group-push-left/layout {
|
|
24
26
|
@apply relative;
|
|
27
|
+
transform: translateX(0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@variant closed {
|
|
31
|
+
@apply items-center;
|
|
32
|
+
transform: translateX(calc(-100% + var(--sidenav-width)));
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
35
|
|
|
@@ -81,11 +89,11 @@
|
|
|
81
89
|
}
|
|
82
90
|
|
|
83
91
|
@variant pressed {
|
|
84
|
-
@apply bg-accent-primary-pressed;
|
|
92
|
+
@apply fg-a11y-on-accent bg-accent-primary-pressed;
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
@variant selected {
|
|
88
|
-
@apply bg-accent-primary-bold;
|
|
96
|
+
@apply fg-a11y-on-accent bg-accent-primary-bold;
|
|
89
97
|
|
|
90
98
|
@variant hover {
|
|
91
99
|
@apply bg-accent-primary-hover;
|
|
@@ -98,6 +106,10 @@
|
|
|
98
106
|
@variant pressed {
|
|
99
107
|
@apply bg-accent-primary-pressed;
|
|
100
108
|
}
|
|
109
|
+
|
|
110
|
+
@variant disabled {
|
|
111
|
+
@apply fg-a11y-on-accent;
|
|
112
|
+
}
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
@variant disabled {
|
|
@@ -129,7 +141,7 @@
|
|
|
129
141
|
}
|
|
130
142
|
|
|
131
143
|
@variant pressed {
|
|
132
|
-
@apply bg-accent-primary-pressed;
|
|
144
|
+
@apply fg-a11y-on-accent bg-accent-primary-pressed;
|
|
133
145
|
}
|
|
134
146
|
|
|
135
147
|
@variant disabled {
|
|
@@ -164,11 +176,11 @@
|
|
|
164
176
|
}
|
|
165
177
|
|
|
166
178
|
@variant pressed {
|
|
167
|
-
@apply bg-accent-primary-pressed;
|
|
179
|
+
@apply fg-a11y-on-accent bg-accent-primary-pressed;
|
|
168
180
|
}
|
|
169
181
|
|
|
170
182
|
@variant selected {
|
|
171
|
-
@apply bg-accent-primary-bold;
|
|
183
|
+
@apply fg-a11y-on-accent bg-accent-primary-bold;
|
|
172
184
|
|
|
173
185
|
@variant hover {
|
|
174
186
|
@apply bg-accent-primary-hover;
|
|
@@ -181,6 +193,10 @@
|
|
|
181
193
|
@variant pressed {
|
|
182
194
|
@apply bg-accent-primary-pressed;
|
|
183
195
|
}
|
|
196
|
+
|
|
197
|
+
@variant disabled {
|
|
198
|
+
@apply fg-a11y-on-accent;
|
|
199
|
+
}
|
|
184
200
|
}
|
|
185
201
|
|
|
186
202
|
@variant disabled {
|
|
@@ -248,11 +264,11 @@
|
|
|
248
264
|
}
|
|
249
265
|
|
|
250
266
|
@variant pressed {
|
|
251
|
-
@apply bg-accent-primary-pressed;
|
|
267
|
+
@apply fg-a11y-on-accent bg-accent-primary-pressed;
|
|
252
268
|
}
|
|
253
269
|
|
|
254
270
|
@variant selected {
|
|
255
|
-
@apply bg-accent-primary-bold;
|
|
271
|
+
@apply fg-a11y-on-accent bg-accent-primary-bold;
|
|
256
272
|
|
|
257
273
|
@variant hover {
|
|
258
274
|
@apply bg-accent-primary-hover;
|
|
@@ -265,6 +281,10 @@
|
|
|
265
281
|
@variant pressed {
|
|
266
282
|
@apply bg-accent-primary-pressed;
|
|
267
283
|
}
|
|
284
|
+
|
|
285
|
+
@variant disabled {
|
|
286
|
+
@apply fg-a11y-on-accent;
|
|
287
|
+
}
|
|
268
288
|
}
|
|
269
289
|
|
|
270
290
|
@variant disabled {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime173 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/trigger.d.ts
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ declare function SidenavTrigger({
|
|
|
39
39
|
children,
|
|
40
40
|
for: type,
|
|
41
41
|
...rest
|
|
42
|
-
}: SidenavTriggerProps):
|
|
42
|
+
}: SidenavTriggerProps): react_jsx_runtime173.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { SidenavTrigger };
|
|
45
45
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { SkeletonProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime177 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/skeleton/index.d.ts
|
|
17
17
|
/**
|
|
@@ -34,7 +34,7 @@ declare function Skeleton({
|
|
|
34
34
|
className,
|
|
35
35
|
variant,
|
|
36
36
|
...rest
|
|
37
|
-
}: SkeletonProps):
|
|
37
|
+
}: SkeletonProps): react_jsx_runtime177.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Skeleton };
|
|
40
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SliderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime178 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/slider/index.d.ts
|
|
18
18
|
|
|
@@ -71,7 +71,7 @@ declare function Slider({
|
|
|
71
71
|
step: stepProp,
|
|
72
72
|
value: valueProp,
|
|
73
73
|
...rest
|
|
74
|
-
}: SliderProps):
|
|
74
|
+
}: SliderProps): react_jsx_runtime178.JSX.Element;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { Slider };
|
|
77
77
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { StatusIndicatorProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime184 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/status-indicator/index.d.ts
|
|
18
18
|
/**
|
|
@@ -35,7 +35,7 @@ declare function StatusIndicator({
|
|
|
35
35
|
className,
|
|
36
36
|
status,
|
|
37
37
|
...rest
|
|
38
|
-
}: StatusIndicatorProps):
|
|
38
|
+
}: StatusIndicatorProps): react_jsx_runtime184.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { StatusIndicator };
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { SwitchProps as SwitchProps$1 } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react43 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime180 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/switch/context.d.ts
|
|
21
21
|
/** Context for sharing props across Switch components */
|
|
22
|
-
declare const SwitchContext:
|
|
22
|
+
declare const SwitchContext: react43.Context<ContextValue<SwitchProps$1, HTMLLabelElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Sets default props for all Switch components within.
|
|
25
25
|
*
|
|
@@ -38,7 +38,7 @@ declare const SwitchContext: react31.Context<ContextValue<SwitchProps$1, HTMLLab
|
|
|
38
38
|
declare function SwitchProvider({
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: ProviderProps<SwitchProps$1>):
|
|
41
|
+
}: ProviderProps<SwitchProps$1>): react_jsx_runtime180.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { SwitchContext, SwitchProvider };
|
|
44
44
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SwitchProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime181 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/switch/index.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime163 from "react/jsx-runtime";
|
|
|
38
38
|
declare function Switch({
|
|
39
39
|
ref,
|
|
40
40
|
...props
|
|
41
|
-
}: SwitchProps):
|
|
41
|
+
}: SwitchProps): react_jsx_runtime181.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Switch };
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -35,6 +35,14 @@
|
|
|
35
35
|
&:before {
|
|
36
36
|
@apply size-m mr-l block rounded-full bg-(--fg-primary-muted);
|
|
37
37
|
content: '';
|
|
38
|
+
|
|
39
|
+
@variant motion-safe {
|
|
40
|
+
transition:
|
|
41
|
+
margin var(--animation-duration-normal)
|
|
42
|
+
var(--animation-easing-standard),
|
|
43
|
+
background-color var(--animation-duration-fast)
|
|
44
|
+
var(--animation-easing-standard);
|
|
45
|
+
}
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
@variant group-hover/switch {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableBodyProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime215 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/body.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ declare function TableBody<T>({
|
|
|
39
39
|
ref,
|
|
40
40
|
rows,
|
|
41
41
|
...rest
|
|
42
|
-
}: TableBodyProps<T>):
|
|
42
|
+
}: TableBodyProps<T>): react_jsx_runtime215.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { TableBody };
|
|
45
45
|
//# sourceMappingURL=body.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableCellProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime224 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/cell.d.ts
|
|
17
17
|
|
|
@@ -40,7 +40,7 @@ declare function TableCell<T>({
|
|
|
40
40
|
className,
|
|
41
41
|
cell,
|
|
42
42
|
...rest
|
|
43
|
-
}: TableCellProps<T>):
|
|
43
|
+
}: TableCellProps<T>): react_jsx_runtime224.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { TableCell };
|
|
46
46
|
//# sourceMappingURL=cell.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableHeaderCellProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime217 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/header-cell.d.ts
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ declare function TableHeaderCell<T>({
|
|
|
42
42
|
className,
|
|
43
43
|
header,
|
|
44
44
|
...rest
|
|
45
|
-
}: TableHeaderCellProps<T>):
|
|
45
|
+
}: TableHeaderCellProps<T>): react_jsx_runtime217.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { TableHeaderCell };
|
|
48
48
|
//# sourceMappingURL=header-cell.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TableHeaderProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime220 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/table/header.d.ts
|
|
17
17
|
|
|
@@ -41,7 +41,7 @@ declare function TableHeader<T>({
|
|
|
41
41
|
headerGroups,
|
|
42
42
|
columnSelection,
|
|
43
43
|
...rest
|
|
44
|
-
}: TableHeaderProps<T>):
|
|
44
|
+
}: TableHeaderProps<T>): react_jsx_runtime220.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { TableHeader };
|
|
47
47
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TableProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime221 from "react/jsx-runtime";
|
|
16
16
|
import { Key } from "@react-types/shared";
|
|
17
17
|
|
|
18
18
|
//#region src/components/table/index.d.ts
|
|
@@ -67,8 +67,12 @@ declare function Table<T extends {
|
|
|
67
67
|
onColumnReorderChange,
|
|
68
68
|
onRowSelectionChange,
|
|
69
69
|
fullWidth,
|
|
70
|
+
pageSize,
|
|
71
|
+
page: pageProp,
|
|
72
|
+
defaultPage,
|
|
73
|
+
onPageChange,
|
|
70
74
|
...rest
|
|
71
|
-
}: TableProps<T>):
|
|
75
|
+
}: TableProps<T>): react_jsx_runtime221.JSX.Element;
|
|
72
76
|
//#endregion
|
|
73
77
|
export { Table };
|
|
74
78
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -28,9 +28,10 @@ import { useCallback, useContext, useMemo, useState } from "react";
|
|
|
28
28
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
29
29
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
30
|
import Kebab from "@accelint/icons/kebab";
|
|
31
|
-
import
|
|
31
|
+
import { useControlledState } from "@react-stately/utils";
|
|
32
|
+
import PinIcon from "@accelint/icons/pin";
|
|
32
33
|
import { useListData } from "@react-stately/data";
|
|
33
|
-
import { getCoreRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
34
|
+
import { getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
34
35
|
import styles from "./styles.module.css";
|
|
35
36
|
|
|
36
37
|
//#region src/components/table/index.tsx
|
|
@@ -93,7 +94,7 @@ function RowActionsMenu({ moveRowsDown, moveRowsUp, row, rows }) {
|
|
|
93
94
|
* <Table columns={columns} data={rows} enableSorting showCheckbox />
|
|
94
95
|
* ```
|
|
95
96
|
*/
|
|
96
|
-
function Table({ children, columns: columnsProp, data: dataProp, showCheckbox, rowSelection: rowSelectionProp, kebabPosition = "right", persistRowKebabMenu = true, persistHeaderKebabMenu = true, persistNumerals = false, enableSorting = true, enableColumnReordering = true, enableRowActions = true, manualSorting = false, onSortChange, onColumnReorderChange, onRowSelectionChange, fullWidth = false, ...rest }) {
|
|
97
|
+
function Table({ children, columns: columnsProp, data: dataProp, showCheckbox, rowSelection: rowSelectionProp, kebabPosition = "right", persistRowKebabMenu = true, persistHeaderKebabMenu = true, persistNumerals = false, enableSorting = true, enableColumnReordering = true, enableRowActions = true, manualSorting = false, onSortChange, onColumnReorderChange, onRowSelectionChange, fullWidth = false, pageSize, page: pageProp, defaultPage = 1, onPageChange, ...rest }) {
|
|
97
98
|
const { items: data, moveAfter, moveBefore } = useListData({ initialItems: dataProp });
|
|
98
99
|
const [rowSelection, setRowSelection] = useState(rowSelectionProp ?? {});
|
|
99
100
|
const [columnSelection, setColumnSelection] = useState(null);
|
|
@@ -101,6 +102,15 @@ function Table({ children, columns: columnsProp, data: dataProp, showCheckbox, r
|
|
|
101
102
|
top: [],
|
|
102
103
|
bottom: []
|
|
103
104
|
});
|
|
105
|
+
const [currentPage, setCurrentPage] = useControlledState(pageProp, defaultPage, onPageChange);
|
|
106
|
+
const pagination = useMemo(() => pageSize != null ? {
|
|
107
|
+
pageIndex: currentPage - 1,
|
|
108
|
+
pageSize
|
|
109
|
+
} : void 0, [currentPage, pageSize]);
|
|
110
|
+
const handlePaginationChange = useCallback((updater) => {
|
|
111
|
+
if (pagination == null) return;
|
|
112
|
+
setCurrentPage((typeof updater === "function" ? updater(pagination) : updater).pageIndex + 1);
|
|
113
|
+
}, [pagination, setCurrentPage]);
|
|
104
114
|
/**
|
|
105
115
|
* moveUpSelectedRows moves the selected rows up in the table.
|
|
106
116
|
* It finds the first selected row, determines its index,
|
|
@@ -152,7 +162,7 @@ function Table({ children, columns: columnsProp, data: dataProp, showCheckbox, r
|
|
|
152
162
|
id: "numeral",
|
|
153
163
|
cell: ({ row }) => row.getIsPinned() ? /* @__PURE__ */ jsx(Icon, {
|
|
154
164
|
size: "small",
|
|
155
|
-
children: /* @__PURE__ */ jsx(
|
|
165
|
+
children: /* @__PURE__ */ jsx(PinIcon, {})
|
|
156
166
|
}) : /* @__PURE__ */ jsx("span", {
|
|
157
167
|
"data-testid": "numeral",
|
|
158
168
|
children: row.index + 1
|
|
@@ -202,7 +212,8 @@ function Table({ children, columns: columnsProp, data: dataProp, showCheckbox, r
|
|
|
202
212
|
},
|
|
203
213
|
state: {
|
|
204
214
|
rowSelection,
|
|
205
|
-
rowPinning
|
|
215
|
+
rowPinning,
|
|
216
|
+
...pagination != null && { pagination }
|
|
206
217
|
},
|
|
207
218
|
getRowId: (row, index) => {
|
|
208
219
|
return row.id ? row.id.toString() : index.toString();
|
|
@@ -212,8 +223,10 @@ function Table({ children, columns: columnsProp, data: dataProp, showCheckbox, r
|
|
|
212
223
|
manualSorting,
|
|
213
224
|
onRowSelectionChange: handleRowSelectionChange,
|
|
214
225
|
onRowPinningChange: setRowPinning,
|
|
226
|
+
onPaginationChange: handlePaginationChange,
|
|
215
227
|
getCoreRowModel: getCoreRowModel(),
|
|
216
|
-
getSortedRowModel: getSortedRowModel()
|
|
228
|
+
getSortedRowModel: getSortedRowModel(),
|
|
229
|
+
...pageSize != null && { getPaginationRowModel: getPaginationRowModel() }
|
|
217
230
|
});
|
|
218
231
|
const moveColumnLeft = useCallback((oldIndex) => {
|
|
219
232
|
setColumnOrder((order) => {
|