@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
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
15
|
+
import { BreadcrumbProps, BreadcrumbsProps } from "react-aria-components/Breadcrumbs";
|
|
16
16
|
|
|
17
17
|
//#region src/components/breadcrumbs/index.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
|
38
38
|
declare function Breadcrumbs({
|
|
39
39
|
children,
|
|
40
40
|
className
|
|
41
|
-
}: BreadcrumbsProps<BreadcrumbProps>):
|
|
41
|
+
}: BreadcrumbsProps<BreadcrumbProps>): react_jsx_runtime6.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Breadcrumbs };
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import "client-only";
|
|
17
17
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
18
|
-
import { Breadcrumbs as Breadcrumbs$1 } from "react-aria-components";
|
|
19
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
import { Breadcrumbs as Breadcrumbs$1 } from "react-aria-components/Breadcrumbs";
|
|
20
20
|
import styles from "./styles.module.css";
|
|
21
21
|
|
|
22
22
|
//#region src/components/breadcrumbs/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaBreadcrumbs"],"sources":["../../../src/components/breadcrumbs/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 {\n Breadcrumbs as AriaBreadcrumbs,\n type BreadcrumbProps,\n type BreadcrumbsProps,\n} from 'react-aria-components';\nimport styles from './styles.module.css';\n\n/**\n * Breadcrumbs - Accessible breadcrumb navigation\n *\n * Displays the user's location within an application hierarchy and provides\n * links back to parent pages. The final item represents the current page.\n *\n * @param props - The breadcrumbs props.\n * @param props.children - BreadcrumbItem components representing the navigation path.\n * @param props.className - Additional CSS class names for styling.\n * @returns The breadcrumbs navigation component.\n *\n * @example\n * ```tsx\n * <Breadcrumbs>\n * <BreadcrumbItem linkProps={{ href: '/' }}>Home</BreadcrumbItem>\n * <BreadcrumbItem>Current</BreadcrumbItem>\n * </Breadcrumbs>\n * ```\n */\nexport function Breadcrumbs({\n children,\n className,\n}: BreadcrumbsProps<BreadcrumbProps>) {\n return (\n <AriaBreadcrumbs className={clsx(styles.list, className)}>\n {children}\n </AriaBreadcrumbs>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,SAAgB,YAAY,EAC1B,UACA,aACoC;AACpC,QACE,oBAACA;EAAgB,WAAW,KAAK,OAAO,MAAM,UAAU;EACrD;GACe"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaBreadcrumbs"],"sources":["../../../src/components/breadcrumbs/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 {\n Breadcrumbs as AriaBreadcrumbs,\n type BreadcrumbProps,\n type BreadcrumbsProps,\n} from 'react-aria-components/Breadcrumbs';\nimport styles from './styles.module.css';\n\n/**\n * Breadcrumbs - Accessible breadcrumb navigation\n *\n * Displays the user's location within an application hierarchy and provides\n * links back to parent pages. The final item represents the current page.\n *\n * @param props - The breadcrumbs props.\n * @param props.children - BreadcrumbItem components representing the navigation path.\n * @param props.className - Additional CSS class names for styling.\n * @returns The breadcrumbs navigation component.\n *\n * @example\n * ```tsx\n * <Breadcrumbs>\n * <BreadcrumbItem linkProps={{ href: '/' }}>Home</BreadcrumbItem>\n * <BreadcrumbItem>Current</BreadcrumbItem>\n * </Breadcrumbs>\n * ```\n */\nexport function Breadcrumbs({\n children,\n className,\n}: BreadcrumbsProps<BreadcrumbProps>) {\n return (\n <AriaBreadcrumbs className={clsx(styles.list, className)}>\n {children}\n </AriaBreadcrumbs>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,SAAgB,YAAY,EAC1B,UACA,aACoC;AACpC,QACE,oBAACA;EAAgB,WAAW,KAAK,OAAO,MAAM,UAAU;EACrD;GACe"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { BreadcrumbItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/breadcrumbs/item.d.ts
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ declare function BreadcrumbItem({
|
|
|
43
43
|
classNames,
|
|
44
44
|
linkProps,
|
|
45
45
|
...rest
|
|
46
|
-
}: BreadcrumbItemProps):
|
|
46
|
+
}: BreadcrumbItemProps): react_jsx_runtime7.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { BreadcrumbItem };
|
|
49
49
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
import { Icon } from "../icon/index.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import {
|
|
19
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
20
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { Breadcrumb } from "react-aria-components/Breadcrumbs";
|
|
21
22
|
import styles from "./styles.module.css";
|
|
22
23
|
import ChevronRight from "@accelint/icons/chevron-right";
|
|
24
|
+
import { Link } from "react-aria-components/Link";
|
|
23
25
|
|
|
24
26
|
//#region src/components/breadcrumbs/item.tsx
|
|
25
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../../src/components/breadcrumbs/item.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 ChevronRight from '@accelint/icons/chevron-right';\nimport { Breadcrumb
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../src/components/breadcrumbs/item.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 ChevronRight from '@accelint/icons/chevron-right';\nimport { Breadcrumb } from 'react-aria-components/Breadcrumbs';\nimport { Link } from 'react-aria-components/Link';\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\nimport type { BreadcrumbItemProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * Individual breadcrumb item. Renders as a link when `linkProps` is provided,\n * or as plain text for the current page.\n *\n * @param props - The breadcrumb item props.\n * @param props.children - Content to display in the breadcrumb.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.linkProps - Props for the Link component (omit for current page).\n * @returns The breadcrumb item component.\n *\n * @example\n * ```tsx\n * // Link item\n * <BreadcrumbItem linkProps={{ href: '/home' }}>Home</BreadcrumbItem>\n * ```\n *\n * @example\n * ```tsx\n * // Current page (no link)\n * <BreadcrumbItem>Current Page</BreadcrumbItem>\n * ```\n */\nexport function BreadcrumbItem({\n children,\n classNames,\n linkProps,\n ...rest\n}: BreadcrumbItemProps) {\n return (\n <Breadcrumb\n {...rest}\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/breadcrumb', styles.item, className),\n )}\n >\n {composeRenderProps(linkProps ? null : children, (itemChildren) => (\n <>\n {linkProps ? (\n <Link\n {...linkProps}\n className={composeRenderProps(classNames?.link, (className) =>\n clsx(styles.link, className),\n )}\n >\n {children}\n </Link>\n ) : (\n itemChildren\n )}\n <Icon\n aria-hidden='true'\n className={clsx(styles.separator, classNames?.separator)}\n >\n <ChevronRight />\n </Icon>\n </>\n ))}\n </Breadcrumb>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,eAAe,EAC7B,UACA,YACA,WACA,GAAG,QACmB;AACtB,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,oBAAoB,OAAO,MAAM,UAAU,CACjD;YAEA,mBAAmB,YAAY,OAAO,WAAW,iBAChD,4CACG,YACC,oBAAC;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,OAAO,MAAM,UAAU,CAC7B;GAEA;IACI,GAEP,cAEF,oBAAC;GACC,eAAY;GACZ,WAAW,KAAK,OAAO,WAAW,YAAY,UAAU;aAExD,oBAAC,iBAAe;IACX,IACN,CACH;GACS"}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { BreadcrumbProps
|
|
13
|
+
import { BreadcrumbProps } from "react-aria-components/Breadcrumbs";
|
|
14
|
+
import { LinkProps } from "react-aria-components/Link";
|
|
14
15
|
|
|
15
16
|
//#region src/components/breadcrumbs/types.d.ts
|
|
16
17
|
/**
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
import { Icon } from "../../icon/index.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import {
|
|
19
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
20
20
|
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
import { Button } from "react-aria-components/Button";
|
|
21
22
|
import CancelFill from "@accelint/icons/cancel-fill";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
23
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clear.js","names":["className"],"sources":["../../../../src/components/button/__internal__/clear.tsx"],"sourcesContent":["// __private-exports\n/*\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\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport CancelFill from '@accelint/icons/cancel-fill';\nimport {\n type ButtonProps as AriaButtonProps,\n Button,\n
|
|
1
|
+
{"version":3,"file":"clear.js","names":["className"],"sources":["../../../../src/components/button/__internal__/clear.tsx"],"sourcesContent":["// __private-exports\n/*\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\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport CancelFill from '@accelint/icons/cancel-fill';\nimport {\n type ButtonProps as AriaButtonProps,\n Button,\n} from 'react-aria-components/Button';\nimport { Icon } from '../../icon';\nimport styles from './styles.module.css';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * ClearButton - Internal-only button for clearing input values\n *\n * A lightweight button component used internally by input\n * components to provide clear functionality. This component is not exported\n * from the design-toolkit package and should not be used directly by consumers.\n *\n * @internal\n */\nexport type ClearButtonProps = Readonly<\n Omit<AriaButtonProps, 'children' | 'size' | 'variant'>\n>;\n\n/**\n * @internal\n */\nexport function ClearButton({ className, ...rest }: ClearButtonProps) {\n return (\n <Button\n {...rest}\n slot={null}\n excludeFromTabOrder\n className={composeRenderProps(className, (className) =>\n clsx(styles.clearButton, className),\n )}\n >\n <Icon size='small'>\n <CancelFill />\n </Icon>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,YAAY,EAAE,WAAW,GAAG,QAA0B;AACpE,QACE,oBAAC;EACC,GAAI;EACJ,MAAM;EACN;EACA,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,aAAaA,YAAU,CACpC;YAED,oBAAC;GAAK,MAAK;aACT,oBAAC,eAAa;IACT;GACA"}
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
|
-
import { ButtonProps
|
|
14
|
+
import { ButtonProps, LinkButtonProps, ToggleButtonProps } 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_runtime8 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/button/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* React context for sharing Button configuration across components.
|
|
23
23
|
*/
|
|
24
|
-
declare const ButtonContext:
|
|
24
|
+
declare const ButtonContext: react0.Context<ContextValue<ButtonProps, HTMLButtonElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* Context provider for setting default props across multiple Button components.
|
|
27
27
|
*
|
|
@@ -40,11 +40,11 @@ declare const ButtonContext: react5.Context<ContextValue<ButtonProps$1, HTMLButt
|
|
|
40
40
|
declare function ButtonProvider({
|
|
41
41
|
children,
|
|
42
42
|
...props
|
|
43
|
-
}: ProviderProps<ButtonProps
|
|
43
|
+
}: ProviderProps<ButtonProps>): react_jsx_runtime8.JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* React context for sharing LinkButton configuration across components.
|
|
46
46
|
*/
|
|
47
|
-
declare const LinkButtonContext:
|
|
47
|
+
declare const LinkButtonContext: react0.Context<ContextValue<LinkButtonProps, HTMLAnchorElement>>;
|
|
48
48
|
/**
|
|
49
49
|
* Context provider for setting default props across multiple LinkButton components.
|
|
50
50
|
*
|
|
@@ -63,11 +63,11 @@ declare const LinkButtonContext: react5.Context<ContextValue<LinkButtonProps, HT
|
|
|
63
63
|
declare function LinkButtonProvider({
|
|
64
64
|
children,
|
|
65
65
|
...props
|
|
66
|
-
}: ProviderProps<LinkButtonProps>):
|
|
66
|
+
}: ProviderProps<LinkButtonProps>): react_jsx_runtime8.JSX.Element;
|
|
67
67
|
/**
|
|
68
68
|
* React context for sharing ToggleButton configuration across components.
|
|
69
69
|
*/
|
|
70
|
-
declare const ToggleButtonContext:
|
|
70
|
+
declare const ToggleButtonContext: react0.Context<ContextValue<ToggleButtonProps, HTMLButtonElement>>;
|
|
71
71
|
/**
|
|
72
72
|
* Context provider for setting default props across multiple ToggleButton components.
|
|
73
73
|
*
|
|
@@ -86,7 +86,7 @@ declare const ToggleButtonContext: react5.Context<ContextValue<ToggleButtonProps
|
|
|
86
86
|
declare function ToggleButtonProvider({
|
|
87
87
|
children,
|
|
88
88
|
...props
|
|
89
|
-
}: ProviderProps<ToggleButtonProps
|
|
89
|
+
}: ProviderProps<ToggleButtonProps>): react_jsx_runtime8.JSX.Element;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { ButtonContext, ButtonProvider, LinkButtonContext, LinkButtonProvider, ToggleButtonContext, ToggleButtonProvider };
|
|
92
92
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/button/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 { ButtonProps, LinkButtonProps, ToggleButtonProps } from './types';\n\n/**\n * React context for sharing Button configuration across components.\n */\nexport const ButtonContext =\n createContext<ContextValue<ButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Button components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the button context.\n * @returns The button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ButtonProvider size=\"small\" variant=\"outline\">\n * <Button>Button 1</Button>\n * <Button>Button 2</Button>\n * </ButtonProvider>\n * ```\n */\nexport function ButtonProvider({\n children,\n ...props\n}: ProviderProps<ButtonProps>) {\n return (\n <ButtonContext.Provider value={props}>{children}</ButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing LinkButton configuration across components.\n */\nexport const LinkButtonContext =\n createContext<ContextValue<LinkButtonProps, HTMLAnchorElement>>(null);\n\n/**\n * Context provider for setting default props across multiple LinkButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the link button context.\n * @returns The link button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <LinkButtonProvider size=\"small\" variant=\"outline\">\n * <LinkButton href=\"/page1\">Link 1</LinkButton>\n * <LinkButton href=\"/page2\">Link 2</LinkButton>\n * </LinkButtonProvider>\n * ```\n */\nexport function LinkButtonProvider({\n children,\n ...props\n}: ProviderProps<LinkButtonProps>) {\n return (\n <LinkButtonContext.Provider value={props}>\n {children}\n </LinkButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing ToggleButton configuration across components.\n */\nexport const ToggleButtonContext =\n createContext<ContextValue<ToggleButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ToggleButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the toggle button context.\n * @returns The toggle button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ToggleButtonProvider size=\"small\" variant=\"flat\">\n * <ToggleButton>Toggle 1</ToggleButton>\n * <ToggleButton>Toggle 2</ToggleButton>\n * </ToggleButtonProvider>\n * ```\n */\nexport function ToggleButtonProvider({\n children,\n ...props\n}: ProviderProps<ToggleButtonProps>) {\n return (\n <ToggleButtonContext.Provider value={props}>\n {children}\n </ToggleButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,gBACX,cAA4D,KAAK;;;;;;;;;;;;;;;;AAiBnE,SAAgB,eAAe,EAC7B,UACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,cAAc;EAAS,OAAO;EAAQ;GAAkC;;;;;AAO7E,MAAa,oBACX,cAAgE,KAAK;;;;;;;;;;;;;;;;AAiBvE,SAAgB,mBAAmB,EACjC,UACA,GAAG,SAC8B;AACjC,QACE,oBAAC,kBAAkB;EAAS,OAAO;EAChC;GAC0B;;;;;AAOjC,MAAa,sBACX,cAAkE,KAAK;;;;;;;;;;;;;;;;AAiBzE,SAAgB,qBAAqB,EACnC,UACA,GAAG,SACgC;AACnC,QACE,oBAAC,oBAAoB;EAAS,OAAO;EAClC;GAC4B"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/button/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 { ButtonProps, LinkButtonProps, ToggleButtonProps } from './types';\n\n/**\n * React context for sharing Button configuration across components.\n */\nexport const ButtonContext =\n createContext<ContextValue<ButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Button components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the button context.\n * @returns The button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ButtonProvider size=\"small\" variant=\"outline\">\n * <Button>Button 1</Button>\n * <Button>Button 2</Button>\n * </ButtonProvider>\n * ```\n */\nexport function ButtonProvider({\n children,\n ...props\n}: ProviderProps<ButtonProps>) {\n return (\n <ButtonContext.Provider value={props}>{children}</ButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing LinkButton configuration across components.\n */\nexport const LinkButtonContext =\n createContext<ContextValue<LinkButtonProps, HTMLAnchorElement>>(null);\n\n/**\n * Context provider for setting default props across multiple LinkButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the link button context.\n * @returns The link button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <LinkButtonProvider size=\"small\" variant=\"outline\">\n * <LinkButton href=\"/page1\">Link 1</LinkButton>\n * <LinkButton href=\"/page2\">Link 2</LinkButton>\n * </LinkButtonProvider>\n * ```\n */\nexport function LinkButtonProvider({\n children,\n ...props\n}: ProviderProps<LinkButtonProps>) {\n return (\n <LinkButtonContext.Provider value={props}>\n {children}\n </LinkButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing ToggleButton configuration across components.\n */\nexport const ToggleButtonContext =\n createContext<ContextValue<ToggleButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ToggleButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the toggle button context.\n * @returns The toggle button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ToggleButtonProvider size=\"small\" variant=\"flat\">\n * <ToggleButton>Toggle 1</ToggleButton>\n * <ToggleButton>Toggle 2</ToggleButton>\n * </ToggleButtonProvider>\n * ```\n */\nexport function ToggleButtonProvider({\n children,\n ...props\n}: ProviderProps<ToggleButtonProps>) {\n return (\n <ToggleButtonContext.Provider value={props}>\n {children}\n </ToggleButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,gBACX,cAA4D,KAAK;;;;;;;;;;;;;;;;AAiBnE,SAAgB,eAAe,EAC7B,UACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,cAAc;EAAS,OAAO;EAAQ;GAAkC;;;;;AAO7E,MAAa,oBACX,cAAgE,KAAK;;;;;;;;;;;;;;;;AAiBvE,SAAgB,mBAAmB,EACjC,UACA,GAAG,SAC8B;AACjC,QACE,oBAAC,kBAAkB;EAAS,OAAO;EAChC;GAC0B;;;;;AAOjC,MAAa,sBACX,cAAkE,KAAK;;;;;;;;;;;;;;;;AAiBzE,SAAgB,qBAAqB,EACnC,UACA,GAAG,SACgC;AACnC,QACE,oBAAC,oBAAoB;EAAS,OAAO;EAClC;GAC4B"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/button/index.d.ts
|
|
18
18
|
|
|
@@ -72,7 +72,7 @@ import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
|
72
72
|
declare function Button({
|
|
73
73
|
ref,
|
|
74
74
|
...props
|
|
75
|
-
}: ButtonProps):
|
|
75
|
+
}: ButtonProps): react_jsx_runtime11.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { Button };
|
|
78
78
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,8 +17,10 @@ import { ButtonContext } from "./context.js";
|
|
|
17
17
|
import { IconProvider } from "../icon/context.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
-
import {
|
|
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 { Button as Button$1 } from "react-aria-components/Button";
|
|
22
24
|
import styles from "./styles.module.css";
|
|
23
25
|
|
|
24
26
|
//#region src/components/button/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaButton","className"],"sources":["../../../src/components/button/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":["AriaButton","className"],"sources":["../../../src/components/button/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 { Button as AriaButton } from 'react-aria-components/Button';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { IconProvider } from '../icon/context';\nimport { ButtonContext } from './context';\nimport styles from './styles.module.css';\nimport type { ButtonProps } from './types';\n\n/**\n * Button - A versatile interactive button component with multiple variants\n *\n * Provides accessible button functionality with support for different visual styles,\n * sizes, and interactive states. Includes icon support and integrates with React Aria\n * for keyboard navigation and accessibility features.\n *\n * @param props - The button props.\n * @param props.ref - Reference to the button element.\n * @param props.children - Button content (text, icons, or both).\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the button.\n * @param props.variant - Visual style variant.\n * @returns The button component.\n *\n * @example\n * ```tsx\n * // Basic button\n * <Button>Click me</Button>\n * ```\n *\n * @example\n * ```tsx\n * // Primary button with different sizes\n * <Button variant=\"filled\" size=\"large\">Large Filled</Button>\n * <Button variant=\"outline\" size=\"small\">Small Outline</Button>\n * ```\n *\n * @example\n * ```tsx\n * // Button with icon\n * <Button variant=\"flat\">\n * <Icon><Plus /></Icon>\n * Add Item\n * </Button>\n * ```\n *\n * @example\n * ```tsx\n * // Icon-only button\n * <Button variant=\"icon\">\n * <Icon><Settings /></Icon>\n * </Button>\n * ```\n *\n * @example\n * ```tsx\n * // Button with different colors\n * <Button color=\"critical\">Critical Button</Button>\n * <Button color=\"serious\">Delete</Button>\n * ```\n */\nexport function Button({ ref, ...props }: ButtonProps) {\n [props, ref] = useContextProps(props, ref ?? null, ButtonContext);\n\n const {\n children,\n className,\n color = 'mono-muted',\n size = 'medium',\n variant = 'filled',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size}>\n <AriaButton\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/button', styles.button, styles[variant], className),\n )}\n data-color={color}\n data-size={size}\n >\n {children}\n </AriaButton>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EA,SAAgB,OAAO,EAAE,KAAK,GAAG,SAAsB;AACrD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,cAAc;CAEjE,MAAM,EACJ,UACA,WACA,QAAQ,cACR,OAAO,UACP,UAAU,UACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAmB;YAClB,oBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,gBAAgB,OAAO,QAAQ,OAAO,UAAUC,YAAU,CAChE;GACD,cAAY;GACZ,aAAW;GAEV;IACU;GACA"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { LinkButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/button/link.d.ts
|
|
18
18
|
|
|
@@ -73,7 +73,7 @@ import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
|
73
73
|
declare function LinkButton({
|
|
74
74
|
ref,
|
|
75
75
|
...props
|
|
76
|
-
}: LinkButtonProps):
|
|
76
|
+
}: LinkButtonProps): react_jsx_runtime12.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { LinkButton };
|
|
79
79
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -17,9 +17,11 @@ import { LinkButtonContext } from "./context.js";
|
|
|
17
17
|
import { IconProvider } from "../icon/context.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
-
import {
|
|
20
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
24
|
+
import { Link } from "react-aria-components/Link";
|
|
23
25
|
|
|
24
26
|
//#region src/components/button/link.tsx
|
|
25
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","names":["className"],"sources":["../../../src/components/button/link.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":"link.js","names":["className"],"sources":["../../../src/components/button/link.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 { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { Link } from 'react-aria-components/Link';\nimport { IconProvider } from '../icon/context';\nimport { LinkButtonContext } from './context';\nimport styles from './styles.module.css';\nimport type { LinkButtonProps } from './types';\n\n/**\n * LinkButton - A button component that renders as a link element\n *\n * Provides accessible link functionality with button-like styling and visual feedback.\n * Perfect for navigation actions that should look like buttons but behave as links.\n * Includes icon support and integrates with React Aria for keyboard navigation and accessibility.\n *\n * @param props - The link button props.\n * @param props.ref - Reference to the anchor element.\n * @param props.children - Link button content (text, icons, or both).\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the link button.\n * @param props.variant - Visual style variant.\n * @param props.href - Navigation destination URL.\n * @returns The link button component.\n *\n * @example\n * ```tsx\n * // Basic link button\n * <LinkButton href=\"/dashboard\">Go to Dashboard</LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Link button with different variants and sizes\n * <LinkButton variant=\"filled\" size=\"large\" href=\"/create\">Create New</LinkButton>\n * <LinkButton variant=\"outline\" size=\"small\" href=\"/settings\">Settings</LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Link button with icon\n * <LinkButton variant=\"flat\" href=\"/profile\">\n * <Icon><User /></Icon>\n * View Profile\n * </LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Icon-only link button\n * <LinkButton variant=\"icon\" href=\"/help\">\n * <Icon><HelpCircle /></Icon>\n * </LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Link button with different colors\n * <LinkButton color=\"critical\" href=\"/delete\">Delete Account</LinkButton>\n * <LinkButton color=\"serious\" href=\"/reset\">Reset Data</LinkButton>\n * ```\n */\nexport function LinkButton({ ref, ...props }: LinkButtonProps) {\n [props, ref] = useContextProps(props, ref ?? null, LinkButtonContext);\n\n const {\n children,\n className,\n color = 'mono-muted',\n size = 'medium',\n variant = 'filled',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size}>\n <Link\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/button', styles.button, styles[variant], className),\n )}\n data-color={color}\n data-size={size}\n >\n {children}\n </Link>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,SAAgB,WAAW,EAAE,KAAK,GAAG,SAA0B;AAC7D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,kBAAkB;CAErE,MAAM,EACJ,UACA,WACA,QAAQ,cACR,OAAO,UACP,UAAU,UACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAmB;YAClB,oBAAC;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,gBAAgB,OAAO,QAAQ,OAAO,UAAUA,YAAU,CAChE;GACD,cAAY;GACZ,aAAW;GAEV;IACI;GACM"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ToggleButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/button/toggle.d.ts
|
|
18
18
|
|
|
@@ -76,7 +76,7 @@ import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
|
76
76
|
declare function ToggleButton({
|
|
77
77
|
ref,
|
|
78
78
|
...props
|
|
79
|
-
}: ToggleButtonProps):
|
|
79
|
+
}: ToggleButtonProps): react_jsx_runtime13.JSX.Element;
|
|
80
80
|
//#endregion
|
|
81
81
|
export { ToggleButton };
|
|
82
82
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -17,9 +17,11 @@ import { ToggleButtonContext } from "./context.js";
|
|
|
17
17
|
import { IconProvider } from "../icon/context.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
-
import {
|
|
20
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
24
|
+
import { ToggleButton as ToggleButton$1 } from "react-aria-components/ToggleButton";
|
|
23
25
|
|
|
24
26
|
//#region src/components/button/toggle.tsx
|
|
25
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","names":["AriaToggleButton","className"],"sources":["../../../src/components/button/toggle.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":"toggle.js","names":["AriaToggleButton","className"],"sources":["../../../src/components/button/toggle.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 { ToggleButton as AriaToggleButton } from 'react-aria-components/ToggleButton';\nimport { IconProvider } from '../icon/context';\nimport { ToggleButtonContext } from './context';\nimport styles from './styles.module.css';\nimport type { ToggleButtonProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\n\n/**\n * ToggleButton - A button component that maintains pressed/unpressed state\n *\n * Provides accessible toggle functionality with visual feedback for the current state.\n * Perfect for features like favorites, bookmarks, switches, or any binary state controls.\n * Includes icon support and integrates with React Aria for keyboard navigation and accessibility.\n *\n * @param props - The toggle button props.\n * @param props.ref - Reference to the button element.\n * @param props.children - Toggle button content (text, icons, or both).\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the toggle button.\n * @param props.variant - Visual style variant (filled not available).\n * @param props.isSelected - Whether the toggle is currently selected.\n * @param props.onChange - Callback when the toggle state changes.\n * @returns The toggle button component.\n *\n * @example\n * ```tsx\n * // Basic toggle button\n * <ToggleButton>Toggle Feature</ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Controlled toggle button with different variants\n * <ToggleButton variant=\"flat\" isSelected={isEnabled} onChange={setIsEnabled}>\n * Enable Notifications\n * </ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Toggle button with icon and state\n * <ToggleButton variant=\"outline\" isSelected={isFavorite} onChange={setIsFavorite}>\n * <Icon><Heart /></Icon>\n * {isFavorite ? 'Favorite' : 'Add to Favorites'}\n * </ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Icon-only toggle button\n * <ToggleButton variant=\"icon\" isSelected={isBookmarked} onChange={setIsBookmarked}>\n * <Icon><Bookmark /></Icon>\n * </ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Toggle button with different colors and sizes\n * <ToggleButton color=\"critical\" size=\"small\" isSelected={isEnabled}>\n * Critical Toggle\n * </ToggleButton>\n * ```\n */\nexport function ToggleButton({ ref, ...props }: ToggleButtonProps) {\n [props, ref] = useContextProps(props, ref ?? null, ToggleButtonContext);\n\n const {\n children,\n className,\n color = 'mono-muted',\n size = 'medium',\n variant = 'flat',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size}>\n <AriaToggleButton\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx(\n 'group/button',\n styles.button,\n styles.toggle,\n styles[variant],\n className,\n ),\n )}\n data-color={color}\n data-size={size}\n >\n {children}\n </AriaToggleButton>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAAgB,aAAa,EAAE,KAAK,GAAG,SAA4B;AACjE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,oBAAoB;CAEvE,MAAM,EACJ,UACA,WACA,QAAQ,cACR,OAAO,UACP,UAAU,QACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAmB;YAClB,oBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KACE,gBACA,OAAO,QACP,OAAO,QACP,OAAO,UACPC,YACD,CACF;GACD,cAAY;GACZ,aAAW;GAEV;IACgB;GACN"}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { AriaAttributesWithRef } from "../../lib/types.js";
|
|
14
|
-
import { ButtonProps as ButtonProps$1
|
|
14
|
+
import { ButtonProps as ButtonProps$1 } from "react-aria-components/Button";
|
|
15
|
+
import { LinkProps } from "react-aria-components/Link";
|
|
16
|
+
import { ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components/ToggleButton";
|
|
15
17
|
|
|
16
18
|
//#region src/components/button/types.d.ts
|
|
17
19
|
type Variants = 'filled' | 'flat' | 'icon' | 'outline';
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { CarouselProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
16
|
+
import * as react3 from "react";
|
|
17
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
18
18
|
|
|
19
19
|
//#region src/components/carousel/context.d.ts
|
|
20
20
|
/** React context providing carousel state to sub-components. */
|
|
21
|
-
declare const CarouselContext:
|
|
21
|
+
declare const CarouselContext: react3.Context<CarouselProps>;
|
|
22
22
|
/**
|
|
23
23
|
* Provides carousel state to child components via CarouselContext.
|
|
24
24
|
*
|
|
@@ -34,7 +34,7 @@ declare function CarouselProvider({
|
|
|
34
34
|
items,
|
|
35
35
|
currentPosition,
|
|
36
36
|
setCurrentPosition
|
|
37
|
-
}: ProviderProps<CarouselProps>):
|
|
37
|
+
}: ProviderProps<CarouselProps>): react_jsx_runtime14.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { CarouselContext, CarouselProvider };
|
|
40
40
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CarouselGalleryProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/carousel/gallery.d.ts
|
|
18
18
|
/**
|
|
@@ -32,7 +32,7 @@ import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
|
32
32
|
declare function CarouselGallery({
|
|
33
33
|
classNames,
|
|
34
34
|
...rest
|
|
35
|
-
}: CarouselGalleryProps):
|
|
35
|
+
}: CarouselGalleryProps): react_jsx_runtime16.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { CarouselGallery };
|
|
38
38
|
//# sourceMappingURL=gallery.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CarouselProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/carousel/index.d.ts
|
|
18
18
|
|
|
@@ -50,7 +50,7 @@ declare function Carousel({
|
|
|
50
50
|
currentPosition,
|
|
51
51
|
setCurrentPosition,
|
|
52
52
|
...rest
|
|
53
|
-
}: CarouselProps):
|
|
53
|
+
}: CarouselProps): react_jsx_runtime15.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { Carousel };
|
|
56
56
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ButtonProps } from "../button/types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/carousel/navigation.d.ts
|
|
18
18
|
/**
|
|
@@ -30,7 +30,7 @@ declare function CarouselPrevious({
|
|
|
30
30
|
variant,
|
|
31
31
|
isDisabled,
|
|
32
32
|
...rest
|
|
33
|
-
}: ButtonProps):
|
|
33
|
+
}: ButtonProps): react_jsx_runtime17.JSX.Element;
|
|
34
34
|
/**
|
|
35
35
|
* Navigates the carousel to the next item. Automatically disables when at the last item.
|
|
36
36
|
* Note that it relies on the <Carousel/> component to supply context and must be used
|
|
@@ -45,7 +45,7 @@ declare function CarouselNext({
|
|
|
45
45
|
variant,
|
|
46
46
|
isDisabled,
|
|
47
47
|
...rest
|
|
48
|
-
}: ButtonProps):
|
|
48
|
+
}: ButtonProps): react_jsx_runtime17.JSX.Element;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { CarouselNext, CarouselPrevious };
|
|
51
51
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { HTMLAttributes } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/carousel/position.d.ts
|
|
18
18
|
/**
|
|
@@ -27,7 +27,7 @@ import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
|
27
27
|
declare function CarouselPosition({
|
|
28
28
|
className,
|
|
29
29
|
...rest
|
|
30
|
-
}: HTMLAttributes<HTMLDivElement>):
|
|
30
|
+
}: HTMLAttributes<HTMLDivElement>): react_jsx_runtime19.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { CarouselPosition };
|
|
33
33
|
//# sourceMappingURL=position.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CarouselSelectProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/carousel/select.d.ts
|
|
18
18
|
/**
|
|
@@ -32,7 +32,7 @@ import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
|
32
32
|
declare function CarouselSelect({
|
|
33
33
|
classNames,
|
|
34
34
|
...rest
|
|
35
|
-
}: CarouselSelectProps):
|
|
35
|
+
}: CarouselSelectProps): react_jsx_runtime20.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { CarouselSelect };
|
|
38
38
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","names":[],"sources":["../../../src/components/carousel/select.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\n'use client';\nimport 'client-only';\nimport { useContext } from 'react';\nimport { OptionsItem } from '../options/item';\nimport { SelectField } from '../select-field';\nimport { CarouselContext } from './context';\nimport type { Key } from 'react-aria-components';\nimport type { CarouselSelectProps } from './types';\nimport styles from './style.module.css';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\n\n/**\n * Renders a dropdown select for navigating the carousel by item title.\n * Note that it relies on the <Carousel/> component to supply context and must be used\n * as a child of that component.\n *\n * Displays the current item's title and allows the user to jump to any\n * item in the carousel via a select dropdown.\n *\n * @param props - The select props.\n * @param props.classNames - Custom class names for select elements.\n * @param props.classNames.field - Class names passed to the SelectField.\n * @param props.classNames.optionItem - Class names passed to each OptionsItem.\n * @returns The carousel select component.\n */\nexport function CarouselSelect({ classNames, ...rest }: CarouselSelectProps) {\n const { items, currentPosition, setCurrentPosition } =\n useContext(CarouselContext);\n\n const onChange = (key: Key | null) => {\n const index = items.findIndex((i) => i.id === key);\n if (index >= 0) {\n setCurrentPosition(index);\n }\n };\n\n return (\n <SelectField\n {...rest}\n aria-label='Carousel item select'\n value={items[currentPosition]?.title}\n placeholder={items[currentPosition]?.title}\n onChange={onChange}\n classNames={{\n ...classNames?.select,\n field: clsx(styles['gallery-select'], classNames?.select?.field),\n trigger: clsx(styles['gallery-select'], classNames?.select?.trigger),\n }}\n >\n {items.map((item) => (\n <OptionsItem\n textValue={item.title}\n key={item.id}\n aria-label={item.title}\n id={item.id}\n classNames={classNames?.optionItem}\n >\n {item.title}\n </OptionsItem>\n ))}\n </SelectField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,eAAe,EAAE,YAAY,GAAG,QAA6B;CAC3E,MAAM,EAAE,OAAO,iBAAiB,uBAC9B,WAAW,gBAAgB;CAE7B,MAAM,YAAY,QAAoB;EACpC,MAAM,QAAQ,MAAM,WAAW,MAAM,EAAE,OAAO,IAAI;AAClD,MAAI,SAAS,EACX,oBAAmB,MAAM;;AAI7B,QACE,oBAAC;EACC,GAAI;EACJ,cAAW;EACX,OAAO,MAAM,kBAAkB;EAC/B,aAAa,MAAM,kBAAkB;EAC3B;EACV,YAAY;GACV,GAAG,YAAY;GACf,OAAO,KAAK,OAAO,mBAAmB,YAAY,QAAQ,MAAM;GAChE,SAAS,KAAK,OAAO,mBAAmB,YAAY,QAAQ,QAAQ;GACrE;YAEA,MAAM,KAAK,SACV,oBAAC;GACC,WAAW,KAAK;GAEhB,cAAY,KAAK;GACjB,IAAI,KAAK;GACT,YAAY,YAAY;aAEvB,KAAK;KALD,KAAK,GAME,CACd;GACU"}
|
|
1
|
+
{"version":3,"file":"select.js","names":[],"sources":["../../../src/components/carousel/select.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\n'use client';\nimport 'client-only';\nimport { useContext } from 'react';\nimport { OptionsItem } from '../options/item';\nimport { SelectField } from '../select-field';\nimport { CarouselContext } from './context';\nimport type { Key } from 'react-aria-components/Select';\nimport type { CarouselSelectProps } from './types';\nimport styles from './style.module.css';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\n\n/**\n * Renders a dropdown select for navigating the carousel by item title.\n * Note that it relies on the <Carousel/> component to supply context and must be used\n * as a child of that component.\n *\n * Displays the current item's title and allows the user to jump to any\n * item in the carousel via a select dropdown.\n *\n * @param props - The select props.\n * @param props.classNames - Custom class names for select elements.\n * @param props.classNames.field - Class names passed to the SelectField.\n * @param props.classNames.optionItem - Class names passed to each OptionsItem.\n * @returns The carousel select component.\n */\nexport function CarouselSelect({ classNames, ...rest }: CarouselSelectProps) {\n const { items, currentPosition, setCurrentPosition } =\n useContext(CarouselContext);\n\n const onChange = (key: Key | null) => {\n const index = items.findIndex((i) => i.id === key);\n if (index >= 0) {\n setCurrentPosition(index);\n }\n };\n\n return (\n <SelectField\n {...rest}\n aria-label='Carousel item select'\n value={items[currentPosition]?.title}\n placeholder={items[currentPosition]?.title}\n onChange={onChange}\n classNames={{\n ...classNames?.select,\n field: clsx(styles['gallery-select'], classNames?.select?.field),\n trigger: clsx(styles['gallery-select'], classNames?.select?.trigger),\n }}\n >\n {items.map((item) => (\n <OptionsItem\n textValue={item.title}\n key={item.id}\n aria-label={item.title}\n id={item.id}\n classNames={classNames?.optionItem}\n >\n {item.title}\n </OptionsItem>\n ))}\n </SelectField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,eAAe,EAAE,YAAY,GAAG,QAA6B;CAC3E,MAAM,EAAE,OAAO,iBAAiB,uBAC9B,WAAW,gBAAgB;CAE7B,MAAM,YAAY,QAAoB;EACpC,MAAM,QAAQ,MAAM,WAAW,MAAM,EAAE,OAAO,IAAI;AAClD,MAAI,SAAS,EACX,oBAAmB,MAAM;;AAI7B,QACE,oBAAC;EACC,GAAI;EACJ,cAAW;EACX,OAAO,MAAM,kBAAkB;EAC/B,aAAa,MAAM,kBAAkB;EAC3B;EACV,YAAY;GACV,GAAG,YAAY;GACf,OAAO,KAAK,OAAO,mBAAmB,YAAY,QAAQ,MAAM;GAChE,SAAS,KAAK,OAAO,mBAAmB,YAAY,QAAQ,QAAQ;GACrE;YAEA,MAAM,KAAK,SACV,oBAAC;GACC,WAAW,KAAK;GAEhB,cAAY,KAAK;GACjB,IAAI,KAAK;GACT,YAAY,YAAY;aAEvB,KAAK;KALD,KAAK,GAME,CACd;GACU"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CarouselViewerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/carousel/viewer.d.ts
|
|
18
18
|
/**
|
|
@@ -34,7 +34,7 @@ declare function CarouselViewer({
|
|
|
34
34
|
children,
|
|
35
35
|
classNames,
|
|
36
36
|
...rest
|
|
37
|
-
}: CarouselViewerProps):
|
|
37
|
+
}: CarouselViewerProps): react_jsx_runtime21.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { CarouselViewer };
|
|
40
40
|
//# sourceMappingURL=viewer.d.ts.map
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { CheckboxGroupProps
|
|
13
|
+
import { CheckboxGroupProps, CheckboxProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import { ContextValue } from "react-aria-components";
|
|
15
|
+
import * as react4 from "react";
|
|
16
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
17
17
|
|
|
18
18
|
//#region src/components/checkbox/context.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* React context for sharing CheckboxGroup configuration across components.
|
|
21
21
|
*/
|
|
22
|
-
declare const CheckboxGroupContext:
|
|
22
|
+
declare const CheckboxGroupContext: react4.Context<ContextValue<CheckboxGroupProps, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* React context for sharing Checkbox configuration across components.
|
|
25
25
|
*/
|
|
26
|
-
declare const CheckboxContext:
|
|
26
|
+
declare const CheckboxContext: react4.Context<ContextValue<CheckboxProps, HTMLLabelElement>>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { CheckboxContext, CheckboxGroupContext };
|
|
29
29
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/checkbox/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 { CheckboxGroupProps, CheckboxProps } from './types';\n\n/**\n * React context for sharing CheckboxGroup configuration across components.\n */\nexport const CheckboxGroupContext =\n createContext<ContextValue<CheckboxGroupProps, HTMLDivElement>>(null);\n\n/**\n * React context for sharing Checkbox configuration across components.\n */\nexport const CheckboxContext =\n createContext<ContextValue<CheckboxProps, HTMLLabelElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,uBACX,cAAgE,KAAK;;;;AAKvE,MAAa,kBACX,cAA6D,KAAK"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/checkbox/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 { CheckboxGroupProps, CheckboxProps } from './types';\n\n/**\n * React context for sharing CheckboxGroup configuration across components.\n */\nexport const CheckboxGroupContext =\n createContext<ContextValue<CheckboxGroupProps, HTMLDivElement>>(null);\n\n/**\n * React context for sharing Checkbox configuration across components.\n */\nexport const CheckboxContext =\n createContext<ContextValue<CheckboxProps, HTMLLabelElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,uBACX,cAAgE,KAAK;;;;AAKvE,MAAa,kBACX,cAA6D,KAAK"}
|