@accelint/design-toolkit 9.10.0 → 9.11.1
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/context.d.ts +3 -3
- package/dist/components/accordion/context.js.map +1 -1
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/group.js +2 -1
- package/dist/components/accordion/group.js.map +1 -1
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/header.js +2 -1
- package/dist/components/accordion/header.js.map +1 -1
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/index.js +3 -1
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/panel.js +2 -1
- package/dist/components/accordion/panel.js.map +1 -1
- package/dist/components/accordion/trigger.d.ts +2 -2
- package/dist/components/accordion/trigger.js +4 -3
- package/dist/components/accordion/trigger.js.map +1 -1
- package/dist/components/accordion/types.d.ts +3 -1
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/audio/index.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +5 -5
- package/dist/components/avatar/context.js.map +1 -1
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/badge/context.d.ts +5 -5
- package/dist/components/badge/context.js.map +1 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/breadcrumbs/index.d.ts +3 -3
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/breadcrumbs/item.d.ts +2 -2
- package/dist/components/breadcrumbs/item.js +3 -1
- package/dist/components/breadcrumbs/item.js.map +1 -1
- package/dist/components/breadcrumbs/types.d.ts +2 -1
- package/dist/components/button/__internal__/clear.js +2 -1
- package/dist/components/button/__internal__/clear.js.map +1 -1
- package/dist/components/button/context.d.ts +10 -10
- package/dist/components/button/context.js.map +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +3 -1
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/link.js +3 -1
- package/dist/components/button/link.js.map +1 -1
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/button/toggle.js +3 -1
- package/dist/components/button/toggle.js.map +1 -1
- package/dist/components/button/types.d.ts +3 -1
- package/dist/components/carousel/context.d.ts +4 -4
- package/dist/components/carousel/gallery.d.ts +2 -2
- package/dist/components/carousel/index.d.ts +2 -2
- package/dist/components/carousel/navigation.d.ts +3 -3
- package/dist/components/carousel/position.d.ts +2 -2
- package/dist/components/carousel/select.d.ts +2 -2
- package/dist/components/carousel/select.js.map +1 -1
- package/dist/components/carousel/viewer.d.ts +2 -2
- package/dist/components/checkbox/context.d.ts +5 -5
- package/dist/components/checkbox/context.js.map +1 -1
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/group.js +5 -3
- package/dist/components/checkbox/group.js.map +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.js +3 -1
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/types.d.ts +4 -3
- package/dist/components/chip/context.d.ts +5 -5
- package/dist/components/chip/context.js.map +1 -1
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/deletable.js +5 -3
- package/dist/components/chip/deletable.js.map +1 -1
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/index.js +2 -1
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/list.js +3 -1
- package/dist/components/chip/list.js.map +1 -1
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/chip/selectable.js +3 -1
- package/dist/components/chip/selectable.js.map +1 -1
- package/dist/components/chip/types.d.ts +3 -2
- package/dist/components/classification-badge/context.d.ts +5 -5
- package/dist/components/classification-badge/context.js.map +1 -1
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-badge/index.js +1 -1
- package/dist/components/classification-badge/index.js.map +1 -1
- package/dist/components/classification-banner/context.d.ts +5 -5
- package/dist/components/classification-banner/context.js.map +1 -1
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/classification-banner/index.js +1 -1
- package/dist/components/classification-banner/index.js.map +1 -1
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/color-picker/index.js +4 -3
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/types.d.ts +2 -1
- package/dist/components/combobox-field/context.d.ts +5 -5
- package/dist/components/combobox-field/context.js.map +1 -1
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/combobox-field/index.js +11 -11
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +11 -2
- package/dist/components/combobox-field/types.d.ts +8 -4
- package/dist/components/coordinate-field/context.d.ts +7 -7
- package/dist/components/coordinate-field/context.js.map +1 -1
- package/dist/components/coordinate-field/coordinate-utils.js +2 -0
- package/dist/components/coordinate-field/coordinate-utils.js.map +1 -1
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/index.js +29 -23
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/coordinate-field/types.d.ts +3 -1
- package/dist/components/coordinate-field/types.js.map +1 -1
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/date-field/index.js +4 -3
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-field/types.d.ts +1 -1
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +3 -3
- package/dist/components/details-list/context.js.map +1 -1
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/index.js +2 -1
- package/dist/components/details-list/index.js.map +1 -1
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/label.js +1 -1
- package/dist/components/details-list/label.js.map +1 -1
- package/dist/components/details-list/types.d.ts +1 -1
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/details-list/value.js +1 -1
- package/dist/components/details-list/value.js.map +1 -1
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +3 -3
- package/dist/components/dialog/context.js.map +1 -1
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/footer.js +1 -1
- package/dist/components/dialog/footer.js.map +1 -1
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/index.js +3 -1
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/title.d.ts +3 -3
- package/dist/components/dialog/title.js +1 -1
- package/dist/components/dialog/title.js.map +1 -1
- package/dist/components/dialog/trigger.d.ts +1 -1
- package/dist/components/dialog/trigger.js +1 -1
- package/dist/components/dialog/trigger.js.map +1 -1
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/divider/context.d.ts +5 -5
- package/dist/components/divider/context.js.map +1 -1
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/divider/index.js +1 -1
- package/dist/components/divider/index.js.map +1 -1
- 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-title.js +1 -1
- package/dist/components/drawer/header-title.js.map +1 -1
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/header.js +3 -3
- package/dist/components/drawer/header.js.map +1 -1
- 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-item.js +7 -7
- package/dist/components/drawer/menu-item.js.map +1 -1
- 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 +60 -113
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/trigger.js +1 -1
- package/dist/components/drawer/trigger.js.map +1 -1
- package/dist/components/drawer/types.d.ts +3 -3
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/flashcard/index.js +2 -1
- package/dist/components/flashcard/index.js.map +1 -1
- package/dist/components/floating-card/context.d.ts +4 -29
- package/dist/components/floating-card/context.js.map +1 -1
- package/dist/components/floating-card/index.d.ts +3 -48
- package/dist/components/floating-card/index.js.map +1 -1
- package/dist/components/floating-card/provider.d.ts +5 -84
- package/dist/components/floating-card/provider.js +6 -41
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +15 -2
- package/dist/components/floating-card/types.d.ts +161 -0
- package/dist/components/floating-card/types.js +12 -0
- package/dist/components/floating-card/utils.d.ts +104 -0
- package/dist/components/floating-card/utils.js +60 -0
- package/dist/components/floating-card/utils.js.map +1 -0
- package/dist/components/gantt/components/base-elements/point.d.ts +2 -2
- package/dist/components/gantt/components/base-elements/range.d.ts +2 -2
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +2 -2
- package/dist/components/gantt/components/content-row/block.d.ts +2 -2
- package/dist/components/gantt/components/content-row/bracket.d.ts +3 -3
- package/dist/components/gantt/components/content-row/icon-marker.d.ts +2 -2
- package/dist/components/gantt/components/content-row/index.d.ts +2 -2
- package/dist/components/gantt/components/content-row/marker.d.ts +2 -2
- package/dist/components/gantt/components/content-row/spacer.d.ts +2 -2
- package/dist/components/gantt/components/current-time/index.d.ts +2 -2
- package/dist/components/gantt/components/header/index.d.ts +3 -3
- package/dist/components/gantt/components/panel-row/index.d.ts +2 -2
- package/dist/components/gantt/components/rows-virtualizer/index.d.ts +3 -3
- package/dist/components/gantt/components/timeline/index.d.ts +2 -2
- package/dist/components/gantt/components/timeline-chunk/index.d.ts +3 -3
- package/dist/components/gantt/context/index.d.ts +4 -4
- package/dist/components/gantt/context/store/index.d.ts +4 -4
- package/dist/components/gantt/context/temporal-data/index.d.ts +4 -4
- package/dist/components/hero/context.d.ts +3 -3
- package/dist/components/hero/context.js.map +1 -1
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/index.js +4 -1
- package/dist/components/hero/index.js.map +1 -1
- package/dist/components/hero/subtitle.d.ts +3 -3
- package/dist/components/hero/subtitle.js +1 -1
- package/dist/components/hero/subtitle.js.map +1 -1
- package/dist/components/hero/title.d.ts +3 -3
- package/dist/components/hero/title.js +1 -1
- package/dist/components/hero/title.js.map +1 -1
- package/dist/components/hotkey/context.d.ts +5 -5
- package/dist/components/hotkey/context.js.map +1 -1
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/index.js +2 -1
- package/dist/components/hotkey/index.js.map +1 -1
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +5 -5
- package/dist/components/icon/context.js.map +1 -1
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/input/context.d.ts +4 -4
- package/dist/components/input/context.js.map +1 -1
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/index.js +4 -2
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/types.d.ts +3 -3
- 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.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-title.js +1 -1
- package/dist/components/kanban/header-title.js.map +1 -1
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/label/context.d.ts +6 -6
- package/dist/components/label/context.js.map +1 -1
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/label/index.js +2 -1
- package/dist/components/label/index.js.map +1 -1
- package/dist/components/label/types.d.ts +1 -1
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/context.js +1 -1
- package/dist/components/link/context.js.map +1 -1
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +3 -1
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/link/types.d.ts +1 -1
- package/dist/components/list/context.d.ts +3 -3
- package/dist/components/list/context.js.map +1 -1
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/index.js +3 -1
- package/dist/components/list/index.js.map +1 -1
- 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/list/item.js +2 -1
- package/dist/components/list/item.js.map +1 -1
- package/dist/components/list/types.d.ts +1 -1
- 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/mute-button.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 +4 -4
- package/dist/components/menu/context.js.map +1 -1
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/index.js +4 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/item-description.d.ts +3 -3
- package/dist/components/menu/item-description.js +1 -1
- package/dist/components/menu/item-description.js.map +1 -1
- package/dist/components/menu/item-label.d.ts +3 -3
- package/dist/components/menu/item-label.js +1 -1
- package/dist/components/menu/item-label.js.map +1 -1
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/item.js +5 -1
- package/dist/components/menu/item.js.map +1 -1
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/section.js +1 -1
- package/dist/components/menu/section.js.map +1 -1
- package/dist/components/menu/separator.d.ts +3 -3
- package/dist/components/menu/separator.js +1 -1
- package/dist/components/menu/separator.js.map +1 -1
- package/dist/components/menu/submenu.d.ts +3 -3
- package/dist/components/menu/submenu.js +1 -1
- package/dist/components/menu/submenu.js.map +1 -1
- package/dist/components/menu/trigger.d.ts +1 -1
- package/dist/components/menu/trigger.js +1 -1
- package/dist/components/menu/trigger.js.map +1 -1
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/index.js +5 -5
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/list.js +7 -6
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/types.d.ts +4 -4
- package/dist/components/options/context.d.ts +3 -3
- package/dist/components/options/context.js.map +1 -1
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/index.js +3 -1
- package/dist/components/options/index.js.map +1 -1
- package/dist/components/options/item-content.d.ts +3 -3
- package/dist/components/options/item-content.js.map +1 -1
- package/dist/components/options/item-description.d.ts +3 -3
- package/dist/components/options/item-description.js +1 -1
- package/dist/components/options/item-description.js.map +1 -1
- package/dist/components/options/item-label.d.ts +3 -3
- package/dist/components/options/item-label.js +2 -1
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/item.js +2 -1
- package/dist/components/options/item.js.map +1 -1
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/options/section.js +1 -1
- package/dist/components/options/section.js.map +1 -1
- package/dist/components/options/types.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/index.js +1 -1
- package/dist/components/pagination/index.js.map +1 -1
- package/dist/components/pagination/next.d.ts +2 -2
- package/dist/components/pagination/next.js +3 -3
- package/dist/components/pagination/next.js.map +1 -1
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/pagination/pages.js +3 -3
- package/dist/components/pagination/pages.js.map +1 -1
- package/dist/components/pagination/prev.d.ts +2 -2
- package/dist/components/pagination/prev.js +3 -3
- package/dist/components/pagination/prev.js.map +1 -1
- 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/index.js +1 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/title.d.ts +3 -3
- package/dist/components/popover/title.js +1 -1
- package/dist/components/popover/title.js.map +1 -1
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/popover/trigger.js +3 -3
- package/dist/components/popover/trigger.js.map +1 -1
- package/dist/components/popover/types.d.ts +1 -1
- 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/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/radio/context.d.ts +5 -5
- package/dist/components/radio/context.js.map +1 -1
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/group.js +5 -3
- package/dist/components/radio/group.js.map +1 -1
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/radio/index.js +3 -1
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/types.d.ts +3 -3
- package/dist/components/search-field/context.d.ts +6 -6
- package/dist/components/search-field/context.js.map +1 -1
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/search-field/index.js +3 -1
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/search-field/types.d.ts +3 -3
- package/dist/components/select-field/context.d.ts +5 -5
- package/dist/components/select-field/context.js.map +1 -1
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/select-field/index.js +6 -3
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/types.d.ts +8 -5
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/avatar.js +3 -1
- package/dist/components/sidenav/avatar.js.map +1 -1
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/content.js +1 -1
- package/dist/components/sidenav/content.js.map +1 -1
- 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/header.js +3 -1
- package/dist/components/sidenav/header.js.map +1 -1
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/index.js +2 -1
- package/dist/components/sidenav/index.js.map +1 -1
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/item.js +8 -5
- package/dist/components/sidenav/item.js.map +1 -1
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/link.js +8 -5
- package/dist/components/sidenav/link.js.map +1 -1
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu-item.js +2 -1
- package/dist/components/sidenav/menu-item.js.map +1 -1
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/menu.js +10 -5
- package/dist/components/sidenav/menu.js.map +1 -1
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/sidenav/trigger.js +1 -1
- package/dist/components/sidenav/trigger.js.map +1 -1
- package/dist/components/sidenav/types.d.ts +6 -1
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/index.js +9 -6
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/types.d.ts +1 -1
- package/dist/components/status-indicator/index.d.ts +2 -2
- package/dist/components/switch/context.d.ts +6 -6
- package/dist/components/switch/context.js.map +1 -1
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +3 -1
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- 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 +2 -2
- package/dist/components/table/index.js +2 -2
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +8 -8
- package/dist/components/tabs/context.js.map +1 -1
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/index.js +3 -1
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.d.ts +3 -3
- package/dist/components/tabs/list.js +2 -1
- package/dist/components/tabs/list.js.map +1 -1
- package/dist/components/tabs/panel.d.ts +3 -3
- package/dist/components/tabs/panel.js +2 -1
- package/dist/components/tabs/panel.js.map +1 -1
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/tabs/tab.js +3 -1
- package/dist/components/tabs/tab.js.map +1 -1
- package/dist/components/tabs/types.d.ts +1 -1
- package/dist/components/text-area-field/context.d.ts +5 -5
- package/dist/components/text-area-field/context.js.map +1 -1
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-area-field/index.js +8 -3
- package/dist/components/text-area-field/index.js.map +1 -1
- package/dist/components/text-area-field/types.d.ts +3 -1
- package/dist/components/text-field/context.d.ts +6 -6
- package/dist/components/text-field/context.js.map +1 -1
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/index.js +9 -5
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/text-field/types.d.ts +7 -6
- package/dist/components/time-field/index.d.ts +3 -3
- package/dist/components/time-field/index.js +4 -3
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/types.d.ts +1 -1
- package/dist/components/tooltip/context.d.ts +3 -3
- package/dist/components/tooltip/context.js.map +1 -1
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/index.js +3 -2
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tooltip/trigger.js +6 -3
- package/dist/components/tooltip/trigger.js.map +1 -1
- package/dist/components/tooltip/types.d.ts +8 -3
- package/dist/components/tree/context.d.ts +3 -3
- package/dist/components/tree/index.d.ts +4 -2
- package/dist/components/tree/index.js +11 -6
- 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 +7 -7
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +3 -3
- package/dist/components/tree/item-description.js +1 -1
- package/dist/components/tree/item-description.js.map +1 -1
- package/dist/components/tree/item-label.d.ts +3 -3
- package/dist/components/tree/item-label.js +1 -1
- package/dist/components/tree/item-label.js.map +1 -1
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/item.js +14 -7
- package/dist/components/tree/item.js.map +1 -1
- package/dist/components/tree/lines.d.ts +2 -2
- package/dist/components/tree/types.d.ts +30 -16
- 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/trigger.js +1 -1
- package/dist/components/view-stack/trigger.js.map +1 -1
- package/dist/components/view-stack/types.d.ts +1 -1
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/hooks/coordinate-field/use-coordinate-field-state.d.ts +2 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js +15 -2
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.js +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-paste.js +27 -4
- package/dist/hooks/coordinate-field/use-coordinate-paste.js.map +1 -1
- package/dist/hooks/use-tree/actions/cache.d.ts +390 -18
- package/dist/hooks/use-tree/actions/cache.js +382 -18
- package/dist/hooks/use-tree/actions/cache.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +34 -21
- package/dist/hooks/use-tree/actions/index.js +34 -26
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +5 -1
- package/dist/hooks/use-tree/state/index.js +5 -1
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/hooks/use-tree/state/utils.d.ts +28 -0
- package/dist/hooks/use-tree/state/utils.js +29 -1
- package/dist/hooks/use-tree/state/utils.js.map +1 -1
- package/dist/hooks/use-tree/types.d.ts +52 -24
- package/dist/index.d.ts +5 -4
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/portal.js +2 -2
- package/dist/providers/portal.js.map +1 -1
- package/dist/providers/theme-provider.d.ts +4 -4
- package/dist/providers/theme-provider.js +6 -7
- package/dist/providers/theme-provider.js.map +1 -1
- package/package.json +22 -39
- package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js +0 -134
- package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js.map +0 -1
package/catalog-info.yaml
CHANGED
|
@@ -12,15 +12,15 @@ metadata:
|
|
|
12
12
|
Dependencies:
|
|
13
13
|
|
|
14
14
|
accelint_biome-config@1.1.0, accelint_bus@4.0.0, accelint_converters@1.0.1,
|
|
15
|
-
accelint_core@0.6.0, accelint_design-foundation@3.
|
|
15
|
+
accelint_core@0.6.0, accelint_design-foundation@3.2.0, accelint_geo@0.6.0,
|
|
16
16
|
accelint_icons@3.0.0, accelint_logger@1.1.0,
|
|
17
|
-
accelint_postcss-tailwind-css-modules@1.0
|
|
17
|
+
accelint_postcss-tailwind-css-modules@1.1.0, accelint_predicates@0.5.2,
|
|
18
18
|
accelint_prettier-config@0.2.1, accelint_temporal@0.1.4,
|
|
19
19
|
accelint_typescript-config@0.1.4, accelint_vitest-config@0.1.6
|
|
20
20
|
annotations:
|
|
21
21
|
backstage.io/edit-url: https://github.com/gohypergiant/standard-toolkit/blob/main/packages/design-toolkit/catalog-info.yaml
|
|
22
22
|
backstage.io/techdocs-ref: dir:.
|
|
23
|
-
package/version: 9.
|
|
23
|
+
package/version: 9.11.1
|
|
24
24
|
github.com/project-slug: gohypergiant/standard-toolkit
|
|
25
25
|
links:
|
|
26
26
|
- url: https://github.com/gohypergiant/standard-toolkit/tree/main/packages/design-toolkit
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
import { AccordionProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import { ContextValue } from "react-aria-components";
|
|
15
|
+
import * as react8 from "react";
|
|
16
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
17
17
|
|
|
18
18
|
//#region src/components/accordion/context.d.ts
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ import { ContextValue } from "react-aria-components";
|
|
|
22
22
|
* Provides variant and disabled state to nested accordion components
|
|
23
23
|
* (header, trigger, panel) without explicit prop drilling.
|
|
24
24
|
*/
|
|
25
|
-
declare const AccordionContext:
|
|
25
|
+
declare const AccordionContext: react8.Context<ContextValue<AccordionProps, HTMLDivElement>>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { AccordionContext };
|
|
28
28
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/accordion/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { AccordionProps } from './types';\n\n/**\n * React context for sharing accordion configuration across components.\n *\n * Provides variant and disabled state to nested accordion components\n * (header, trigger, panel) without explicit prop drilling.\n */\nexport const AccordionContext =\n createContext<ContextValue<AccordionProps, HTMLDivElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,mBACX,cAA4D,KAAK"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/accordion/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components/slots';\nimport type { AccordionProps } from './types';\n\n/**\n * React context for sharing accordion configuration across components.\n *\n * Provides variant and disabled state to nested accordion components\n * (header, trigger, panel) without explicit prop drilling.\n */\nexport const AccordionContext =\n createContext<ContextValue<AccordionProps, HTMLDivElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,mBACX,cAA4D,KAAK"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AccordionGroupProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/accordion/group.d.ts
|
|
18
18
|
|
|
@@ -57,7 +57,7 @@ declare function AccordionGroup({
|
|
|
57
57
|
variant,
|
|
58
58
|
isDisabled,
|
|
59
59
|
...rest
|
|
60
|
-
}: AccordionGroupProps):
|
|
60
|
+
}: AccordionGroupProps): react_jsx_runtime29.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { AccordionGroup };
|
|
63
63
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
import { AccordionContext } from "./context.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import { DisclosureGroup
|
|
19
|
+
import { DisclosureGroup } from "react-aria-components/DisclosureGroup";
|
|
20
20
|
import styles from "./styles.module.css";
|
|
21
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
22
|
import { jsx } from "react/jsx-runtime";
|
|
22
23
|
|
|
23
24
|
//#region src/components/accordion/group.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","names":["className"],"sources":["../../../src/components/accordion/group.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"group.js","names":["className"],"sources":["../../../src/components/accordion/group.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { DisclosureGroup } from 'react-aria-components/DisclosureGroup';\nimport { AccordionContext } from './context';\nimport styles from './styles.module.css';\nimport type { AccordionGroupProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * Container component for grouping multiple accordions with shared configuration.\n *\n * Provides coordinated behavior for multiple accordions, controlling\n * whether multiple sections can be expanded simultaneously.\n *\n * Wraps react-aria-components DisclosureGroup and provides variant context.\n *\n * @param props - The accordion group props.\n * @param props.ref - Reference to the root div element.\n * @param props.children - Accordion components to render within the group.\n * @param props.className - Additional CSS class names for styling.\n * @param props.variant - Visual variant of the accordions ('compact' or 'cozy').\n * @param props.isDisabled - Whether all accordions in the group are disabled.\n * @returns The accordion group component.\n *\n * @example\n * ```tsx\n * <AccordionGroup variant=\"compact\">\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Section 1</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>Content 1</AccordionPanel>\n * </Accordion>\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Section 2</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>Content 2</AccordionPanel>\n * </Accordion>\n * </AccordionGroup>\n * ```\n */\nexport function AccordionGroup({\n ref,\n children,\n className,\n variant = 'cozy',\n isDisabled,\n ...rest\n}: AccordionGroupProps) {\n return (\n <AccordionContext.Provider value={{ variant, isDisabled }}>\n <DisclosureGroup\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/accordion-group', styles.group, className),\n )}\n >\n {children}\n </DisclosureGroup>\n </AccordionContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,SAAgB,eAAe,EAC7B,KACA,UACA,WACA,UAAU,QACV,YACA,GAAG,QACmB;AACtB,QACE,oBAAC,iBAAiB;EAAS,OAAO;GAAE;GAAS;GAAY;YACvD,oBAAC;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,yBAAyB,OAAO,OAAOA,YAAU,CACvD;GAEA;IACe;GACQ"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AccordionHeaderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/accordion/header.d.ts
|
|
18
18
|
|
|
@@ -44,7 +44,7 @@ declare function AccordionHeader({
|
|
|
44
44
|
ref,
|
|
45
45
|
children,
|
|
46
46
|
className
|
|
47
|
-
}: AccordionHeaderProps):
|
|
47
|
+
}: AccordionHeaderProps): react_jsx_runtime30.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { AccordionHeader };
|
|
50
50
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -21,10 +21,11 @@ import { Icon } from "../icon/index.js";
|
|
|
21
21
|
import "client-only";
|
|
22
22
|
import { useContext } from "react";
|
|
23
23
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
24
|
-
import { Header, Provider } from "react-aria-components";
|
|
25
24
|
import styles from "./styles.module.css";
|
|
26
25
|
import { jsx } from "react/jsx-runtime";
|
|
27
26
|
import Kebab from "@accelint/icons/kebab";
|
|
27
|
+
import { Header } from "react-aria-components/Header";
|
|
28
|
+
import { Provider } from "react-aria-components/slots";
|
|
28
29
|
|
|
29
30
|
//#region src/components/accordion/header.tsx
|
|
30
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","names":[],"sources":["../../../src/components/accordion/header.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Kebab from '@accelint/icons/kebab';\nimport { useContext } from 'react';\nimport { Header
|
|
1
|
+
{"version":3,"file":"header.js","names":[],"sources":["../../../src/components/accordion/header.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Kebab from '@accelint/icons/kebab';\nimport { useContext } from 'react';\nimport { Header } from 'react-aria-components/Header';\nimport { isSlottedContextValue } from '../../lib/utils';\nimport { ButtonContext } from '../button/context';\nimport { Icon } from '../icon';\nimport { IconContext } from '../icon/context';\nimport { AccordionContext } from './context';\nimport styles from './styles.module.css';\nimport type { AccordionHeaderProps } from './types';\nimport { Provider } from 'react-aria-components/slots';\n\n/**\n * Header component for accordion sections.\n *\n * Provides context and styling for the accordion trigger button and\n * optional menu actions. Automatically adjusts icon sizes based on\n * the accordion variant.\n *\n * @param props - The accordion header props.\n * @param props.ref - Reference to the header element.\n * @param props.children - Content to display in the header, typically an AccordionTrigger.\n * @param props.className - Additional CSS class names for styling.\n * @returns The accordion header component.\n *\n * @example\n * ```tsx\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Section Title</AccordionTrigger>\n * <Button>Action</Button>\n * </AccordionHeader>\n * <AccordionPanel>Content</AccordionPanel>\n * </Accordion>\n * ```\n */\nexport function AccordionHeader({\n ref,\n children,\n className,\n}: AccordionHeaderProps) {\n const context = useContext(AccordionContext);\n const variant =\n (isSlottedContextValue(context) ? undefined : context?.variant) ?? 'cozy';\n const isDisabled =\n (isSlottedContextValue(context) ? undefined : context?.isDisabled) ?? false;\n\n return (\n <Provider\n values={[\n [IconContext, { size: variant === 'compact' ? 'small' : 'large' }],\n [\n ButtonContext,\n {\n children: (\n <Icon>\n <Kebab />\n </Icon>\n ),\n variant: 'icon',\n isDisabled,\n className: styles.menu,\n },\n ],\n ]}\n >\n <Header ref={ref} className={clsx(styles.header, className)}>\n {children}\n </Header>\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgB,gBAAgB,EAC9B,KACA,UACA,aACuB;CACvB,MAAM,UAAU,WAAW,iBAAiB;CAC5C,MAAM,WACH,sBAAsB,QAAQ,GAAG,SAAY,SAAS,YAAY;CACrE,MAAM,cACH,sBAAsB,QAAQ,GAAG,SAAY,SAAS,eAAe;AAExE,QACE,oBAAC;EACC,QAAQ,CACN,CAAC,aAAa,EAAE,MAAM,YAAY,YAAY,UAAU,SAAS,CAAC,EAClE,CACE,eACA;GACE,UACE,oBAAC,kBACC,oBAAC,UAAQ,GACJ;GAET,SAAS;GACT;GACA,WAAW,OAAO;GACnB,CACF,CACF;YAED,oBAAC;GAAY;GAAK,WAAW,KAAK,OAAO,QAAQ,UAAU;GACxD;IACM;GACA"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AccordionProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/accordion/index.d.ts
|
|
18
18
|
|
|
@@ -75,7 +75,7 @@ import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
|
75
75
|
declare function Accordion({
|
|
76
76
|
ref,
|
|
77
77
|
...props
|
|
78
|
-
}: AccordionProps):
|
|
78
|
+
}: AccordionProps): react_jsx_runtime31.JSX.Element;
|
|
79
79
|
//#endregion
|
|
80
80
|
export { Accordion };
|
|
81
81
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
import { AccordionContext } from "./context.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import { Disclosure, composeRenderProps, useContextProps } from "react-aria-components";
|
|
20
19
|
import styles from "./styles.module.css";
|
|
20
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
23
|
+
import { Disclosure } from "react-aria-components/Disclosure";
|
|
22
24
|
|
|
23
25
|
//#region src/components/accordion/index.tsx
|
|
24
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["className"],"sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","names":["className"],"sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Disclosure } from 'react-aria-components/Disclosure';\nimport { AccordionContext } from './context';\nimport styles from './styles.module.css';\nimport type { AccordionProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\n\n/**\n * Accordion - A collapsible content component with expandable sections.\n *\n * Provides an accessible accordion interface for organizing content into\n * collapsible sections. Supports both compact and cozy variants with\n * integrated controls for expanding/collapsing content areas.\n *\n * @param props - The accordion props.\n * @param props.ref - Reference to the root div element.\n * @param props.children - Content to render within the accordion, typically AccordionHeader and AccordionPanel.\n * @param props.className - Additional CSS class names for styling.\n * @param props.variant - Visual variant of the accordion ('compact' or 'cozy').\n * @param props.isDisabled - Whether the accordion is disabled.\n * @returns The accordion component.\n *\n * @example\n * ```tsx\n * // Basic accordion\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Section Title</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>Content goes here</AccordionPanel>\n * </Accordion>\n * ```\n *\n * @example\n * ```tsx\n * // Compact variant\n * <Accordion variant=\"compact\">\n * <AccordionHeader>\n * <AccordionTrigger>Compact Section</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>Compact content</AccordionPanel>\n * </Accordion>\n * ```\n *\n * @example\n * ```tsx\n * // Multiple accordions in a group\n * <AccordionGroup>\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>First Section</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>First content</AccordionPanel>\n * </Accordion>\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Second Section</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>Second content</AccordionPanel>\n * </Accordion>\n * </AccordionGroup>\n * ```\n */\nexport function Accordion({ ref, ...props }: AccordionProps) {\n [props, ref] = useContextProps(props, ref ?? null, AccordionContext);\n\n const { children, className, variant = 'cozy', isDisabled, ...rest } = props;\n\n return (\n <AccordionContext.Provider\n value={{\n variant,\n isDisabled,\n }}\n >\n <Disclosure\n {...rest}\n className={composeRenderProps(className, (className) =>\n clsx('group/accordion', styles.accordion, className),\n )}\n isDisabled={isDisabled}\n >\n {children}\n </Disclosure>\n </AccordionContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,SAAgB,UAAU,EAAE,KAAK,GAAG,SAAyB;AAC3D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,iBAAiB;CAEpE,MAAM,EAAE,UAAU,WAAW,UAAU,QAAQ,YAAY,GAAG,SAAS;AAEvE,QACE,oBAAC,iBAAiB;EAChB,OAAO;GACL;GACA;GACD;YAED,oBAAC;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,gBACxC,KAAK,mBAAmB,OAAO,WAAWA,YAAU,CACrD;GACW;GAEX;IACU;GACa"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AccordionPanelProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/accordion/panel.d.ts
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ declare function AccordionPanel({
|
|
|
47
47
|
children,
|
|
48
48
|
className,
|
|
49
49
|
...rest
|
|
50
|
-
}: AccordionPanelProps):
|
|
50
|
+
}: AccordionPanelProps): react_jsx_runtime0.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { AccordionPanel };
|
|
53
53
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import "client-only";
|
|
17
17
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
18
|
-
import { DisclosurePanel, composeRenderProps } from "react-aria-components";
|
|
19
18
|
import styles from "./styles.module.css";
|
|
19
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
20
20
|
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
import { DisclosurePanel } from "react-aria-components/Disclosure";
|
|
21
22
|
|
|
22
23
|
//#region src/components/accordion/panel.tsx
|
|
23
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.js","names":["className"],"sources":["../../../src/components/accordion/panel.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"panel.js","names":["className"],"sources":["../../../src/components/accordion/panel.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { DisclosurePanel } from 'react-aria-components/Disclosure';\nimport styles from './styles.module.css';\nimport type { AccordionPanelProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * Content panel component for accordion sections.\n *\n * Wraps collapsible content that is shown or hidden when the\n * corresponding accordion trigger is activated.\n *\n * Wraps react-aria-components DisclosurePanel with consistent styling.\n *\n * @param props - The accordion panel props.\n * @param props.ref - Reference to the panel div element.\n * @param props.children - Content to display within the panel.\n * @param props.className - Additional CSS class names for styling.\n * @returns The accordion panel component.\n *\n * @example\n * ```tsx\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Details</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>\n * <p>This content is collapsible.</p>\n * </AccordionPanel>\n * </Accordion>\n * ```\n */\nexport function AccordionPanel({\n ref,\n children,\n className,\n ...rest\n}: AccordionPanelProps) {\n return (\n <DisclosurePanel\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx(styles.panel, className),\n )}\n >\n {children}\n </DisclosurePanel>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,eAAe,EAC7B,KACA,UACA,WACA,GAAG,QACmB;AACtB,QACE,oBAAC;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,OAAOA,YAAU,CAC9B;EAEA;GACe"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AccordionTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/accordion/trigger.d.ts
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ declare function AccordionTrigger({
|
|
|
42
42
|
ref,
|
|
43
43
|
children,
|
|
44
44
|
classNames
|
|
45
|
-
}: AccordionTriggerProps):
|
|
45
|
+
}: AccordionTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AccordionTrigger };
|
|
48
48
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -17,14 +17,15 @@ import { AccordionContext } from "./context.js";
|
|
|
17
17
|
import { isSlottedContextValue } from "../../lib/utils.js";
|
|
18
18
|
import { IconContext } from "../icon/context.js";
|
|
19
19
|
import { Icon } from "../icon/index.js";
|
|
20
|
-
import { Button
|
|
20
|
+
import { Button } from "../button/index.js";
|
|
21
21
|
import "client-only";
|
|
22
22
|
import { useContext } from "react";
|
|
23
23
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
24
|
-
import { Heading, composeRenderProps } from "react-aria-components";
|
|
25
24
|
import styles from "./styles.module.css";
|
|
25
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
26
26
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
27
|
import ChevronDown from "@accelint/icons/chevron-down";
|
|
28
|
+
import { Heading } from "react-aria-components/Heading";
|
|
28
29
|
|
|
29
30
|
//#region src/components/accordion/trigger.tsx
|
|
30
31
|
/**
|
|
@@ -55,7 +56,7 @@ function AccordionTrigger({ ref, children, classNames }) {
|
|
|
55
56
|
return /* @__PURE__ */ jsx(Heading, {
|
|
56
57
|
ref,
|
|
57
58
|
className: clsx(styles.heading, classNames?.heading),
|
|
58
|
-
children: /* @__PURE__ */ jsx(Button
|
|
59
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
59
60
|
slot: "trigger",
|
|
60
61
|
className: composeRenderProps(classNames?.trigger, (className) => clsx(styles.trigger, styles[variant], className)),
|
|
61
62
|
variant: "flat",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","names":[
|
|
1
|
+
{"version":3,"file":"trigger.js","names":[],"sources":["../../../src/components/accordion/trigger.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport { useContext } from 'react';\nimport { Heading } from 'react-aria-components/Heading';\nimport { isSlottedContextValue } from '../../lib/utils';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { IconContext } from '../icon/context';\nimport { AccordionContext } from './context';\nimport styles from './styles.module.css';\nimport type { AccordionTriggerProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * Trigger button component for expanding/collapsing accordion sections.\n *\n * Renders a clickable button that toggles the visibility of the associated\n * accordion panel. Includes a chevron icon that rotates to indicate state.\n *\n * @param props - The accordion trigger props.\n * @param props.ref - Reference to the heading element.\n * @param props.children - Content to display in the trigger button.\n * @param props.classNames - Custom class names for the heading and trigger elements.\n * @returns The accordion trigger component.\n *\n * @example\n * ```tsx\n * <Accordion>\n * <AccordionHeader>\n * <AccordionTrigger>Click to expand</AccordionTrigger>\n * </AccordionHeader>\n * <AccordionPanel>Hidden content</AccordionPanel>\n * </Accordion>\n * ```\n */\nexport function AccordionTrigger({\n ref,\n children,\n classNames,\n}: AccordionTriggerProps) {\n const context = useContext(AccordionContext);\n const variant =\n (isSlottedContextValue(context) ? undefined : context?.variant) ?? 'cozy';\n\n return (\n <Heading ref={ref} className={clsx(styles.heading, classNames?.heading)}>\n <Button\n slot='trigger'\n className={composeRenderProps(classNames?.trigger, (className) =>\n clsx(styles.trigger, styles[variant], className),\n )}\n variant='flat'\n >\n <IconContext.Provider\n value={{ size: variant === 'compact' ? 'small' : 'medium' }}\n >\n <Icon>\n <ChevronDown className={styles.triggerChevron} />\n </Icon>\n {children}\n </IconContext.Provider>\n </Button>\n </Heading>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAgB,iBAAiB,EAC/B,KACA,UACA,cACwB;CACxB,MAAM,UAAU,WAAW,iBAAiB;CAC5C,MAAM,WACH,sBAAsB,QAAQ,GAAG,SAAY,SAAS,YAAY;AAErE,QACE,oBAAC;EAAa;EAAK,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;YACrE,oBAAC;GACC,MAAK;GACL,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,OAAO,UAAU,UAAU,CACjD;GACD,SAAQ;aAER,qBAAC,YAAY;IACX,OAAO,EAAE,MAAM,YAAY,YAAY,UAAU,UAAU;eAE3D,oBAAC,kBACC,oBAAC,eAAY,WAAW,OAAO,iBAAkB,GAC5C,EACN;KACoB;IAChB;GACD"}
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
import { RenderPropsClassName } from "../../lib/types.js";
|
|
14
14
|
import { ComponentPropsWithRef, RefAttributes } from "react";
|
|
15
|
-
import {
|
|
15
|
+
import { DisclosureGroupProps } from "react-aria-components/DisclosureGroup";
|
|
16
|
+
import { ButtonRenderProps, DisclosurePanelProps, DisclosureProps } from "react-aria-components/Disclosure";
|
|
17
|
+
import { Heading } from "react-aria-components/Heading";
|
|
16
18
|
|
|
17
19
|
//#region src/components/accordion/types.d.ts
|
|
18
20
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ActionBarProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/action-bar/index.d.ts
|
|
18
18
|
|
|
@@ -59,7 +59,7 @@ declare function ActionBar({
|
|
|
59
59
|
elevation,
|
|
60
60
|
size,
|
|
61
61
|
...rest
|
|
62
|
-
}: ActionBarProps):
|
|
62
|
+
}: ActionBarProps): react_jsx_runtime1.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { ActionBar };
|
|
65
65
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
import { ButtonContext, ToggleButtonContext } from "../button/context.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import { Provider } from "react-aria-components";
|
|
20
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import { Provider } from "react-aria-components/slots";
|
|
21
21
|
import styles from "./styles.module.css";
|
|
22
22
|
|
|
23
23
|
//#region src/components/action-bar/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/action-bar/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Provider } from 'react-aria-components';\nimport { ButtonContext, ToggleButtonContext } from '../button/context';\nimport styles from './styles.module.css';\nimport type { ActionBarProps } from './types';\n\n/**\n * Container for icon action buttons with consistent spacing and alignment.\n * Commonly used in toolbars, editors, or command interfaces.\n *\n * Renders as a `<nav>` element and provides `variant=\"icon\"` context to child buttons.\n *\n * @param props - The action bar props.\n * @param props.className - Additional CSS class names for styling.\n * @param props.elevation - Visual elevation style ('flat', 'overlay', or 'raised').\n * @param props.size - Size of action buttons within the bar ('medium' or 'small').\n * @param props.children - Action buttons to render within the bar.\n * @returns The action bar navigation element.\n *\n * @example\n * ```tsx\n * <ActionBar>\n * <Button><Icon><Copy /></Icon></Button>\n * <Button><Icon><Delete /></Icon></Button>\n * </ActionBar>\n * ```\n *\n * @example\n * ```tsx\n * // With ToggleButton\n * <ActionBar>\n * <ToggleButton><Icon><Bold /></Icon></ToggleButton>\n * <ToggleButton><Icon><Italic /></Icon></ToggleButton>\n * </ActionBar>\n * ```\n *\n * @example\n * ```tsx\n * // Flat elevation for embedded contexts\n * <ActionBar elevation=\"flat\">\n * <Button><Icon><Copy /></Icon></Button>\n * </ActionBar>\n * ```\n */\nexport function ActionBar({\n className,\n elevation = 'overlay',\n size = 'medium',\n ...rest\n}: ActionBarProps) {\n return (\n <Provider\n values={[\n [ButtonContext, { size, variant: 'icon' }],\n [ToggleButtonContext, { size, variant: 'icon' }],\n ]}\n >\n <nav\n {...rest}\n className={clsx(styles.bar, className)}\n data-elevation={elevation}\n data-size={size}\n />\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,UAAU,EACxB,WACA,YAAY,WACZ,OAAO,UACP,GAAG,QACc;AACjB,QACE,oBAAC;EACC,QAAQ,CACN,CAAC,eAAe;GAAE;GAAM,SAAS;GAAQ,CAAC,EAC1C,CAAC,qBAAqB;GAAE;GAAM,SAAS;GAAQ,CAAC,CACjD;YAED,oBAAC;GACC,GAAI;GACJ,WAAW,KAAK,OAAO,KAAK,UAAU;GACtC,kBAAgB;GAChB,aAAW;IACX;GACO"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/action-bar/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Provider } from 'react-aria-components/slots';\nimport { ButtonContext, ToggleButtonContext } from '../button/context';\nimport styles from './styles.module.css';\nimport type { ActionBarProps } from './types';\n\n/**\n * Container for icon action buttons with consistent spacing and alignment.\n * Commonly used in toolbars, editors, or command interfaces.\n *\n * Renders as a `<nav>` element and provides `variant=\"icon\"` context to child buttons.\n *\n * @param props - The action bar props.\n * @param props.className - Additional CSS class names for styling.\n * @param props.elevation - Visual elevation style ('flat', 'overlay', or 'raised').\n * @param props.size - Size of action buttons within the bar ('medium' or 'small').\n * @param props.children - Action buttons to render within the bar.\n * @returns The action bar navigation element.\n *\n * @example\n * ```tsx\n * <ActionBar>\n * <Button><Icon><Copy /></Icon></Button>\n * <Button><Icon><Delete /></Icon></Button>\n * </ActionBar>\n * ```\n *\n * @example\n * ```tsx\n * // With ToggleButton\n * <ActionBar>\n * <ToggleButton><Icon><Bold /></Icon></ToggleButton>\n * <ToggleButton><Icon><Italic /></Icon></ToggleButton>\n * </ActionBar>\n * ```\n *\n * @example\n * ```tsx\n * // Flat elevation for embedded contexts\n * <ActionBar elevation=\"flat\">\n * <Button><Icon><Copy /></Icon></Button>\n * </ActionBar>\n * ```\n */\nexport function ActionBar({\n className,\n elevation = 'overlay',\n size = 'medium',\n ...rest\n}: ActionBarProps) {\n return (\n <Provider\n values={[\n [ButtonContext, { size, variant: 'icon' }],\n [ToggleButtonContext, { size, variant: 'icon' }],\n ]}\n >\n <nav\n {...rest}\n className={clsx(styles.bar, className)}\n data-elevation={elevation}\n data-size={size}\n />\n </Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,UAAU,EACxB,WACA,YAAY,WACZ,OAAO,UACP,GAAG,QACc;AACjB,QACE,oBAAC;EACC,QAAQ,CACN,CAAC,eAAe;GAAE;GAAM,SAAS;GAAQ,CAAC,EAC1C,CAAC,qBAAqB;GAAE;GAAM,SAAS;GAAQ,CAAC,CACjD;YAED,oBAAC;GACC,GAAI;GACJ,WAAW,KAAK,OAAO,KAAK,UAAU;GACtC,kBAAgB;GAChB,aAAW;IACX;GACO"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AudioProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/audio/index.d.ts
|
|
18
18
|
|
|
@@ -98,7 +98,7 @@ declare function Audio({
|
|
|
98
98
|
noMutedPref,
|
|
99
99
|
lang,
|
|
100
100
|
...rest
|
|
101
|
-
}: AudioProps):
|
|
101
|
+
}: AudioProps): react_jsx_runtime4.JSX.Element;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { Audio };
|
|
104
104
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { AvatarProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import * as react0 from "react";
|
|
17
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/avatar/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* React context for sharing avatar configuration across components.
|
|
23
23
|
*/
|
|
24
|
-
declare const AvatarContext:
|
|
24
|
+
declare const AvatarContext: react0.Context<ContextValue<AvatarProps, HTMLSpanElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* Context provider for setting default props across multiple Avatar components.
|
|
27
27
|
*
|
|
@@ -40,7 +40,7 @@ declare const AvatarContext: react2.Context<ContextValue<AvatarProps, HTMLSpanEl
|
|
|
40
40
|
declare function AvatarProvider({
|
|
41
41
|
children,
|
|
42
42
|
...props
|
|
43
|
-
}: ProviderProps<AvatarProps>):
|
|
43
|
+
}: ProviderProps<AvatarProps>): react_jsx_runtime2.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { AvatarContext, AvatarProvider };
|
|
46
46
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/avatar/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { AvatarProps } from './types';\n\n/**\n * React context for sharing avatar configuration across components.\n */\nexport const AvatarContext =\n createContext<ContextValue<AvatarProps, HTMLSpanElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Avatar components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the avatar context.\n * @returns The avatar context provider wrapping children.\n *\n * @example\n * ```tsx\n * <AvatarProvider size=\"small\">\n * <Avatar imageProps={{ alt: \"User 1\", src: \"avatar1.jpg\" }} />\n * <Avatar imageProps={{ alt: \"User 2\", src: \"avatar2.jpg\" }} />\n * </AvatarProvider>\n * ```\n */\nexport function AvatarProvider({\n children,\n ...props\n}: ProviderProps<AvatarProps>) {\n return (\n <AvatarContext.Provider value={props}>{children}</AvatarContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,gBACX,cAA0D,KAAK;;;;;;;;;;;;;;;;AAiBjE,SAAgB,eAAe,EAC7B,UACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,cAAc;EAAS,OAAO;EAAQ;GAAkC"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/avatar/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components/slots';\nimport type { AvatarProps } from './types';\n\n/**\n * React context for sharing avatar configuration across components.\n */\nexport const AvatarContext =\n createContext<ContextValue<AvatarProps, HTMLSpanElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Avatar components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the avatar context.\n * @returns The avatar context provider wrapping children.\n *\n * @example\n * ```tsx\n * <AvatarProvider size=\"small\">\n * <Avatar imageProps={{ alt: \"User 1\", src: \"avatar1.jpg\" }} />\n * <Avatar imageProps={{ alt: \"User 2\", src: \"avatar2.jpg\" }} />\n * </AvatarProvider>\n * ```\n */\nexport function AvatarProvider({\n children,\n ...props\n}: ProviderProps<AvatarProps>) {\n return (\n <AvatarContext.Provider value={props}>{children}</AvatarContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,gBACX,cAA0D,KAAK;;;;;;;;;;;;;;;;AAiBjE,SAAgB,eAAe,EAC7B,UACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,cAAc;EAAS,OAAO;EAAQ;GAAkC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { AvatarProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/avatar/index.d.ts
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
|
55
55
|
declare function Avatar({
|
|
56
56
|
ref,
|
|
57
57
|
...props
|
|
58
|
-
}: AvatarProps):
|
|
58
|
+
}: AvatarProps): react_jsx_runtime3.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { Avatar };
|
|
61
61
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -19,8 +19,8 @@ import { AvatarContext } from "./context.js";
|
|
|
19
19
|
import { BadgeProvider } from "../badge/context.js";
|
|
20
20
|
import "client-only";
|
|
21
21
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
22
|
-
import { useContextProps } from "react-aria-components";
|
|
23
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
24
24
|
import { designTokens } from "@accelint/design-foundation/tokens";
|
|
25
25
|
import Person from "@accelint/icons/person";
|
|
26
26
|
import { Fallback, Image, Root } from "@radix-ui/react-avatar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/avatar/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { designTokens } from '@accelint/design-foundation/tokens';\nimport Person from '@accelint/icons/person';\nimport { Fallback, Image, Root } from '@radix-ui/react-avatar';\nimport { useContextProps } from 'react-aria-components';\nimport { BadgeProvider } from '../badge/context';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { AvatarContext } from './context';\nimport styles from './styles.module.css';\nimport type { AvatarProps } from './types';\n\n/**\n * Displays a user's profile image with automatic fallback support.\n * Built on Radix UI Avatar.\n *\n * @param props - The avatar props.\n * @param props.ref - Reference to the root span element.\n * @param props.children - Optional content such as a Badge to overlay on the avatar.\n * @param props.classNames - Custom class names for avatar sub-elements.\n * @param props.fallbackProps - Props passed to the fallback element.\n * @param props.imageProps - Props passed to the image element.\n * @param props.size - Size variant ('medium' or 'small').\n * @returns The avatar component.\n *\n * @example\n * ```tsx\n * <Avatar imageProps={{ src: \"/user.jpg\", alt: \"User Name\" }} />\n * ```\n *\n * @example\n * ```tsx\n * // With initials fallback\n * <Avatar\n * size=\"small\"\n * imageProps={{ src: \"/user.jpg\", alt: \"User Name\" }}\n * fallbackProps={{ children: \"UN\" }}\n * />\n * ```\n *\n * @example\n * ```tsx\n * // With status badge\n * <Avatar imageProps={{ src: \"/user.jpg\", alt: \"User Name\" }}>\n * <Badge color=\"critical\">3</Badge>\n * </Avatar>\n * ```\n */\nexport function Avatar({ ref, ...props }: AvatarProps) {\n [props, ref] = useContextProps(props, ref ?? null, AvatarContext);\n\n const {\n children,\n classNames,\n fallbackProps,\n imageProps,\n size = 'medium',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size === 'medium' ? 'large' : 'medium'}>\n <Root\n {...rest}\n ref={ref}\n className={clsx('group/avatar', styles.avatar, classNames?.avatar)}\n role='img'\n data-size={size}\n >\n <Image\n {...imageProps}\n className={clsx(styles.image, classNames?.image)}\n />\n <Fallback\n {...fallbackProps}\n className={clsx(styles.fallback, classNames?.fallback)}\n >\n {fallbackProps?.children || (\n <Icon>\n <Person />\n </Icon>\n )}\n </Fallback>\n <BadgeProvider offset={designTokens.spacing.xs} placement='top right'>\n <span className={clsx(styles.content, classNames?.content)}>\n {children}\n </span>\n </BadgeProvider>\n </Root>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DA,SAAgB,OAAO,EAAE,KAAK,GAAG,SAAsB;AACrD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,cAAc;CAEjE,MAAM,EACJ,UACA,YACA,eACA,YACA,OAAO,UACP,GAAG,SACD;AAEJ,QACE,oBAAC;EAAa,MAAM,SAAS,WAAW,UAAU;YAChD,qBAAC;GACC,GAAI;GACC;GACL,WAAW,KAAK,gBAAgB,OAAO,QAAQ,YAAY,OAAO;GAClE,MAAK;GACL,aAAW;;IAEX,oBAAC;KACC,GAAI;KACJ,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;MAChD;IACF,oBAAC;KACC,GAAI;KACJ,WAAW,KAAK,OAAO,UAAU,YAAY,SAAS;eAErD,eAAe,YACd,oBAAC,kBACC,oBAAC,WAAS,GACL;MAEA;IACX,oBAAC;KAAc,QAAQ,aAAa,QAAQ;KAAI,WAAU;eACxD,oBAAC;MAAK,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;MACvD;OACI;MACO;;IACX;GACM"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/avatar/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { designTokens } from '@accelint/design-foundation/tokens';\nimport Person from '@accelint/icons/person';\nimport { Fallback, Image, Root } from '@radix-ui/react-avatar';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { BadgeProvider } from '../badge/context';\nimport { Icon } from '../icon';\nimport { IconProvider } from '../icon/context';\nimport { AvatarContext } from './context';\nimport styles from './styles.module.css';\nimport type { AvatarProps } from './types';\n\n/**\n * Displays a user's profile image with automatic fallback support.\n * Built on Radix UI Avatar.\n *\n * @param props - The avatar props.\n * @param props.ref - Reference to the root span element.\n * @param props.children - Optional content such as a Badge to overlay on the avatar.\n * @param props.classNames - Custom class names for avatar sub-elements.\n * @param props.fallbackProps - Props passed to the fallback element.\n * @param props.imageProps - Props passed to the image element.\n * @param props.size - Size variant ('medium' or 'small').\n * @returns The avatar component.\n *\n * @example\n * ```tsx\n * <Avatar imageProps={{ src: \"/user.jpg\", alt: \"User Name\" }} />\n * ```\n *\n * @example\n * ```tsx\n * // With initials fallback\n * <Avatar\n * size=\"small\"\n * imageProps={{ src: \"/user.jpg\", alt: \"User Name\" }}\n * fallbackProps={{ children: \"UN\" }}\n * />\n * ```\n *\n * @example\n * ```tsx\n * // With status badge\n * <Avatar imageProps={{ src: \"/user.jpg\", alt: \"User Name\" }}>\n * <Badge color=\"critical\">3</Badge>\n * </Avatar>\n * ```\n */\nexport function Avatar({ ref, ...props }: AvatarProps) {\n [props, ref] = useContextProps(props, ref ?? null, AvatarContext);\n\n const {\n children,\n classNames,\n fallbackProps,\n imageProps,\n size = 'medium',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size === 'medium' ? 'large' : 'medium'}>\n <Root\n {...rest}\n ref={ref}\n className={clsx('group/avatar', styles.avatar, classNames?.avatar)}\n role='img'\n data-size={size}\n >\n <Image\n {...imageProps}\n className={clsx(styles.image, classNames?.image)}\n />\n <Fallback\n {...fallbackProps}\n className={clsx(styles.fallback, classNames?.fallback)}\n >\n {fallbackProps?.children || (\n <Icon>\n <Person />\n </Icon>\n )}\n </Fallback>\n <BadgeProvider offset={designTokens.spacing.xs} placement='top right'>\n <span className={clsx(styles.content, classNames?.content)}>\n {children}\n </span>\n </BadgeProvider>\n </Root>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DA,SAAgB,OAAO,EAAE,KAAK,GAAG,SAAsB;AACrD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,cAAc;CAEjE,MAAM,EACJ,UACA,YACA,eACA,YACA,OAAO,UACP,GAAG,SACD;AAEJ,QACE,oBAAC;EAAa,MAAM,SAAS,WAAW,UAAU;YAChD,qBAAC;GACC,GAAI;GACC;GACL,WAAW,KAAK,gBAAgB,OAAO,QAAQ,YAAY,OAAO;GAClE,MAAK;GACL,aAAW;;IAEX,oBAAC;KACC,GAAI;KACJ,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;MAChD;IACF,oBAAC;KACC,GAAI;KACJ,WAAW,KAAK,OAAO,UAAU,YAAY,SAAS;eAErD,eAAe,YACd,oBAAC,kBACC,oBAAC,WAAS,GACL;MAEA;IACX,oBAAC;KAAc,QAAQ,aAAa,QAAQ;KAAI,WAAU;eACxD,oBAAC;MAAK,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;MACvD;OACI;MACO;;IACX;GACM"}
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { BadgeProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import * as react33 from "react";
|
|
17
|
+
import * as react_jsx_runtime129 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/badge/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* React context for sharing badge configuration across components.
|
|
23
23
|
*/
|
|
24
|
-
declare const BadgeContext:
|
|
24
|
+
declare const BadgeContext: react33.Context<ContextValue<BadgeProps, HTMLSpanElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* Context provider for setting default props across multiple Badge components.
|
|
27
27
|
*
|
|
@@ -40,7 +40,7 @@ declare const BadgeContext: react3.Context<ContextValue<BadgeProps, HTMLSpanElem
|
|
|
40
40
|
declare function BadgeProvider({
|
|
41
41
|
children,
|
|
42
42
|
...props
|
|
43
|
-
}: ProviderProps<BadgeProps>):
|
|
43
|
+
}: ProviderProps<BadgeProps>): react_jsx_runtime129.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { BadgeContext, BadgeProvider };
|
|
46
46
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/badge/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { BadgeProps } from './types';\n\n/**\n * React context for sharing badge configuration across components.\n */\nexport const BadgeContext =\n createContext<ContextValue<BadgeProps, HTMLSpanElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Badge components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the badge context.\n * @returns The badge context provider wrapping children.\n *\n * @example\n * ```tsx\n * <BadgeProvider color=\"critical\" placement=\"top right\">\n * <Badge>1</Badge>\n * <Badge>2</Badge>\n * </BadgeProvider>\n * ```\n */\nexport function BadgeProvider({\n children,\n ...props\n}: ProviderProps<BadgeProps>) {\n return (\n <BadgeContext.Provider value={props}>{children}</BadgeContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,eACX,cAAyD,KAAK;;;;;;;;;;;;;;;;AAiBhE,SAAgB,cAAc,EAC5B,UACA,GAAG,SACyB;AAC5B,QACE,oBAAC,aAAa;EAAS,OAAO;EAAQ;GAAiC"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/badge/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components/slots';\nimport type { BadgeProps } from './types';\n\n/**\n * React context for sharing badge configuration across components.\n */\nexport const BadgeContext =\n createContext<ContextValue<BadgeProps, HTMLSpanElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Badge components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the badge context.\n * @returns The badge context provider wrapping children.\n *\n * @example\n * ```tsx\n * <BadgeProvider color=\"critical\" placement=\"top right\">\n * <Badge>1</Badge>\n * <Badge>2</Badge>\n * </BadgeProvider>\n * ```\n */\nexport function BadgeProvider({\n children,\n ...props\n}: ProviderProps<BadgeProps>) {\n return (\n <BadgeContext.Provider value={props}>{children}</BadgeContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,eACX,cAAyD,KAAK;;;;;;;;;;;;;;;;AAiBhE,SAAgB,cAAc,EAC5B,UACA,GAAG,SACyB;AAC5B,QACE,oBAAC,aAAa;EAAS,OAAO;EAAQ;GAAiC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { BadgeProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/badge/index.d.ts
|
|
18
18
|
|
|
@@ -57,7 +57,7 @@ import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
|
57
57
|
declare function Badge({
|
|
58
58
|
ref,
|
|
59
59
|
...props
|
|
60
|
-
}: BadgeProps):
|
|
60
|
+
}: BadgeProps): react_jsx_runtime5.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { Badge };
|
|
63
63
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
import { BadgeContext } from "./context.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import { useContextProps } from "react-aria-components";
|
|
20
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
21
21
|
import styles from "./styles.module.css";
|
|
22
22
|
|
|
23
23
|
//#region src/components/badge/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/badge/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContextProps } from 'react-aria-components';\nimport { BadgeContext } from './context';\nimport styles from './styles.module.css';\nimport type { BadgeProps } from './types';\n\n/**\n * Small status indicator for labels, counts, and notifications.\n * Empty badges render as dot indicators.\n *\n * @param props - The badge props.\n * @param props.ref - Reference to the span element.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.offset - Offset from positioned edge in pixels.\n * @param props.placement - Position relative to container.\n * @param props.children - Badge content (text, number, or empty for dot).\n * @returns The badge span element.\n *\n * @example\n * ```tsx\n * <Badge>New</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Color variants\n * <Badge color=\"normal\">Active</Badge>\n * <Badge color=\"advisory\">Pending</Badge>\n * <Badge color=\"critical\">Error</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Dot indicator (no children)\n * <Badge color=\"normal\" />\n * ```\n *\n * @example\n * ```tsx\n * // Positioned badge\n * <Badge placement=\"top right\" offset={designTokens.spacing.xs}>3</Badge>\n * ```\n */\nexport function Badge({ ref, ...props }: BadgeProps) {\n [props, ref] = useContextProps(props, ref ?? null, BadgeContext);\n\n const { className, color = 'info', offset, placement, ...rest } = props;\n\n return (\n <span\n {...rest}\n ref={ref}\n className={clsx('group/badge', styles.badge, className)}\n data-color={color}\n data-offset-x={typeof offset === 'number' ? offset : offset?.x}\n data-offset-y={typeof offset === 'number' ? offset : offset?.y}\n data-placement={placement || null}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,MAAM,EAAE,KAAK,GAAG,SAAqB;AACnD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,aAAa;CAEhE,MAAM,EAAE,WAAW,QAAQ,QAAQ,QAAQ,WAAW,GAAG,SAAS;AAElE,QACE,oBAAC;EACC,GAAI;EACC;EACL,WAAW,KAAK,eAAe,OAAO,OAAO,UAAU;EACvD,cAAY;EACZ,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,kBAAgB,aAAa;GAC7B"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/badge/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { BadgeContext } from './context';\nimport styles from './styles.module.css';\nimport type { BadgeProps } from './types';\n\n/**\n * Small status indicator for labels, counts, and notifications.\n * Empty badges render as dot indicators.\n *\n * @param props - The badge props.\n * @param props.ref - Reference to the span element.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.offset - Offset from positioned edge in pixels.\n * @param props.placement - Position relative to container.\n * @param props.children - Badge content (text, number, or empty for dot).\n * @returns The badge span element.\n *\n * @example\n * ```tsx\n * <Badge>New</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Color variants\n * <Badge color=\"normal\">Active</Badge>\n * <Badge color=\"advisory\">Pending</Badge>\n * <Badge color=\"critical\">Error</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Dot indicator (no children)\n * <Badge color=\"normal\" />\n * ```\n *\n * @example\n * ```tsx\n * // Positioned badge\n * <Badge placement=\"top right\" offset={designTokens.spacing.xs}>3</Badge>\n * ```\n */\nexport function Badge({ ref, ...props }: BadgeProps) {\n [props, ref] = useContextProps(props, ref ?? null, BadgeContext);\n\n const { className, color = 'info', offset, placement, ...rest } = props;\n\n return (\n <span\n {...rest}\n ref={ref}\n className={clsx('group/badge', styles.badge, className)}\n data-color={color}\n data-offset-x={typeof offset === 'number' ? offset : offset?.x}\n data-offset-y={typeof offset === 'number' ? offset : offset?.y}\n data-placement={placement || null}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,MAAM,EAAE,KAAK,GAAG,SAAqB;AACnD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,aAAa;CAEhE,MAAM,EAAE,WAAW,QAAQ,QAAQ,QAAQ,WAAW,GAAG,SAAS;AAElE,QACE,oBAAC;EACC,GAAI;EACC;EACL,WAAW,KAAK,eAAe,OAAO,OAAO,UAAU;EACvD,cAAY;EACZ,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,kBAAgB,aAAa;GAC7B"}
|