@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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CheckboxGroupProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/checkbox/group.d.ts
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
|
47
47
|
declare function CheckboxGroup({
|
|
48
48
|
ref,
|
|
49
49
|
...props
|
|
50
|
-
}: CheckboxGroupProps):
|
|
50
|
+
}: CheckboxGroupProps): react_jsx_runtime23.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { CheckboxGroup };
|
|
53
53
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
|
|
14
14
|
'use client';
|
|
15
15
|
|
|
16
|
-
import { Label
|
|
16
|
+
import { Label } from "../label/index.js";
|
|
17
17
|
import { CheckboxContext, CheckboxGroupContext } from "./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, jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
23
|
+
import { CheckboxGroup as CheckboxGroup$1 } from "react-aria-components/CheckboxGroup";
|
|
22
24
|
import styles from "./styles.module.css";
|
|
23
25
|
|
|
24
26
|
//#region src/components/checkbox/group.tsx
|
|
@@ -60,7 +62,7 @@ function CheckboxGroup({ ref, ...props }) {
|
|
|
60
62
|
"data-orientation": orientation,
|
|
61
63
|
children: composeRenderProps(children, (children$1, { isDisabled, isRequired }) => /* @__PURE__ */ jsxs(CheckboxContext, {
|
|
62
64
|
value: { labelPosition },
|
|
63
|
-
children: [label && /* @__PURE__ */ jsx(Label
|
|
65
|
+
children: [label && /* @__PURE__ */ jsx(Label, {
|
|
64
66
|
className: clsx(styles.label, classNames?.label),
|
|
65
67
|
isDisabled,
|
|
66
68
|
isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","names":["AriaCheckboxGroup","
|
|
1
|
+
{"version":3,"file":"group.js","names":["AriaCheckboxGroup","children"],"sources":["../../../src/components/checkbox/group.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { CheckboxGroup as AriaCheckboxGroup } from 'react-aria-components/CheckboxGroup';\nimport { Label } from '../label';\nimport { CheckboxContext, CheckboxGroupContext } from './context';\nimport styles from './styles.module.css';\nimport type { CheckboxGroupProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\n\n/**\n * Groups multiple checkboxes with shared state and configuration.\n *\n * @param props - The checkbox group props.\n * @param props.ref - Reference to the group container element.\n * @param props.children - Checkbox components to render within the group.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.label - Label text displayed above the group.\n * @param props.orientation - Layout orientation ('vertical' or 'horizontal').\n * @returns The checkbox group component.\n *\n * @example\n * ```tsx\n * <CheckboxGroup label=\"Preferences\">\n * <Checkbox value=\"email\">Email</Checkbox>\n * <Checkbox value=\"sms\">SMS</Checkbox>\n * </CheckboxGroup>\n * ```\n *\n * @example\n * ```tsx\n * // Horizontal layout\n * <CheckboxGroup label=\"Features\" orientation=\"horizontal\">\n * <Checkbox value=\"a\">Feature A</Checkbox>\n * <Checkbox value=\"b\">Feature B</Checkbox>\n * </CheckboxGroup>\n * ```\n */\nexport function CheckboxGroup({ ref, ...props }: CheckboxGroupProps) {\n [props, ref] = useContextProps(props, ref ?? null, CheckboxGroupContext);\n\n const {\n children,\n classNames,\n label,\n labelPosition,\n orientation = 'vertical',\n ...rest\n } = props;\n\n return (\n <AriaCheckboxGroup\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.group, (className) =>\n clsx('group/checkbox-group', styles.group, className),\n )}\n data-orientation={orientation}\n >\n {composeRenderProps(children, (children, { isDisabled, isRequired }) => (\n <CheckboxContext value={{ labelPosition }}>\n {label && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {label}\n </Label>\n )}\n {children}\n </CheckboxContext>\n ))}\n </AriaCheckboxGroup>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgB,cAAc,EAAE,KAAK,GAAG,SAA6B;AACnE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,qBAAqB;CAExE,MAAM,EACJ,UACA,YACA,OACA,eACA,cAAc,YACd,GAAG,SACD;AAEJ,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,wBAAwB,OAAO,OAAO,UAAU,CACtD;EACD,oBAAkB;YAEjB,mBAAmB,WAAW,YAAU,EAAE,YAAY,iBACrD,qBAAC;GAAgB,OAAO,EAAE,eAAe;cACtC,SACC,oBAAC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK,EAETC;IACe,CAClB;GACgB"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { CheckboxProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/checkbox/index.d.ts
|
|
18
18
|
|
|
@@ -69,7 +69,7 @@ import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
|
69
69
|
declare function Checkbox({
|
|
70
70
|
ref,
|
|
71
71
|
...props
|
|
72
|
-
}: CheckboxProps):
|
|
72
|
+
}: CheckboxProps): react_jsx_runtime22.JSX.Element;
|
|
73
73
|
//#endregion
|
|
74
74
|
export { Checkbox };
|
|
75
75
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,11 +17,13 @@ import { Icon } from "../icon/index.js";
|
|
|
17
17
|
import { CheckboxContext } from "./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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
23
24
|
import Check from "@accelint/icons/check";
|
|
24
25
|
import Remove from "@accelint/icons/remove";
|
|
26
|
+
import { Checkbox as Checkbox$1 } from "react-aria-components/Checkbox";
|
|
25
27
|
|
|
26
28
|
//#region src/components/checkbox/index.tsx
|
|
27
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaCheckbox","children"],"sources":["../../../src/components/checkbox/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';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Check from '@accelint/icons/check';\nimport Remove from '@accelint/icons/remove';\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaCheckbox","children"],"sources":["../../../src/components/checkbox/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';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport Check from '@accelint/icons/check';\nimport Remove from '@accelint/icons/remove';\nimport { Checkbox as AriaCheckbox } from 'react-aria-components/Checkbox';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { Icon } from '../icon';\nimport { CheckboxContext } from './context';\nimport styles from './styles.module.css';\nimport type { CheckboxProps } from './types';\n\n/**\n * Checkbox - A form control for binary or multiple selection with group support\n *\n * Provides accessible checkbox functionality with support for individual checkboxes\n * or grouped selections. Includes visual feedback for checked, indeterminate, and\n * disabled states with integrated labeling and validation support.\n *\n * @param props - The checkbox props.\n * @param props.ref - Reference to the label element.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.children - Label content for the checkbox.\n * @param props.isSelected - Whether the checkbox is checked.\n * @param props.isIndeterminate - Whether the checkbox is in indeterminate state.\n * @param props.isDisabled - Whether the checkbox is disabled.\n * @returns The checkbox component.\n *\n * @example\n * ```tsx\n * // Basic checkbox\n * <Checkbox>\n * Accept terms and conditions\n * </Checkbox>\n * ```\n *\n * @example\n * ```tsx\n * // Checkbox group with multiple options\n * <CheckboxGroup label=\"Select preferences\">\n * <Checkbox value=\"notifications\">Email notifications</Checkbox>\n * <Checkbox value=\"marketing\">Marketing emails</Checkbox>\n * <Checkbox value=\"updates\">Product updates</Checkbox>\n * </CheckboxGroup>\n * ```\n *\n * @example\n * ```tsx\n * // Disabled checkbox\n * <Checkbox isDisabled>\n * Unavailable option\n * </Checkbox>\n * ```\n *\n * @example\n * ```tsx\n * // Indeterminate checkbox (partial selection)\n * <Checkbox isIndeterminate>\n * Select all items\n * </Checkbox>\n * ```\n */\nexport function Checkbox({ ref, ...props }: CheckboxProps) {\n [props, ref] = useContextProps(props, ref ?? null, CheckboxContext);\n\n const { classNames, children, labelPosition = 'end', ...rest } = props;\n\n return (\n <AriaCheckbox\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.checkbox, (className) =>\n clsx(\n 'group/checkbox',\n styles.checkbox,\n labelPosition === 'start' && styles.labelStart,\n className,\n ),\n )}\n >\n {composeRenderProps(\n children,\n (children, { isIndeterminate, isSelected }) => (\n <>\n <span className={clsx(styles.control, classNames?.control)}>\n <Icon size='small'>\n {isIndeterminate && !isSelected && <Remove />}\n {isSelected && <Check />}\n </Icon>\n </span>\n {children && (\n <span className={clsx(styles.label, classNames?.label)}>\n {children}\n </span>\n )}\n </>\n ),\n )}\n </AriaCheckbox>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EA,SAAgB,SAAS,EAAE,KAAK,GAAG,SAAwB;AACzD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,gBAAgB;CAEnE,MAAM,EAAE,YAAY,UAAU,gBAAgB,OAAO,GAAG,SAAS;AAEjE,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,WAAW,cACnD,KACE,kBACA,OAAO,UACP,kBAAkB,WAAW,OAAO,YACpC,UACD,CACF;YAEA,mBACC,WACC,YAAU,EAAE,iBAAiB,iBAC5B,4CACE,oBAAC;GAAK,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;aACxD,qBAAC;IAAK,MAAK;eACR,mBAAmB,CAAC,cAAc,oBAAC,WAAS,EAC5C,cAAc,oBAAC,UAAQ;KACnB;IACF,EACNC,cACC,oBAAC;GAAK,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;aACnDA;IACI,IAER,CAEN;GACY"}
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { LabelProps
|
|
13
|
+
import { LabelProps } from "../label/types.js";
|
|
14
14
|
import { RefAttributes } from "react";
|
|
15
|
-
import { CheckboxGroupProps as CheckboxGroupProps$1
|
|
15
|
+
import { CheckboxGroupProps as CheckboxGroupProps$1 } from "react-aria-components/CheckboxGroup";
|
|
16
|
+
import { CheckboxProps as CheckboxProps$1 } from "react-aria-components/Checkbox";
|
|
16
17
|
import { Orientation } from "@react-types/shared";
|
|
17
18
|
|
|
18
19
|
//#region src/components/checkbox/types.d.ts
|
|
@@ -27,7 +28,7 @@ type CheckboxGroupProps = Omit<CheckboxGroupProps$1, 'className'> & RefAttribute
|
|
|
27
28
|
/** Class name for the group container. */
|
|
28
29
|
group?: CheckboxGroupProps$1['className'];
|
|
29
30
|
/** Class name for the group label. */
|
|
30
|
-
label?: LabelProps
|
|
31
|
+
label?: LabelProps['className'];
|
|
31
32
|
};
|
|
32
33
|
/** Label text displayed above the checkbox group. */
|
|
33
34
|
label?: string;
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { ChipContextValue } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import * as react6 from "react";
|
|
17
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/chip/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* React context for sharing Chip configuration across components.
|
|
23
23
|
*/
|
|
24
|
-
declare const ChipContext:
|
|
24
|
+
declare const ChipContext: react6.Context<ContextValue<ChipContextValue, HTMLDivElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* Context provider for setting default props across multiple Chip components.
|
|
27
27
|
*
|
|
@@ -40,7 +40,7 @@ declare const ChipContext: react13.Context<ContextValue<ChipContextValue, HTMLDi
|
|
|
40
40
|
declare function ChipProvider({
|
|
41
41
|
children,
|
|
42
42
|
...props
|
|
43
|
-
}: ProviderProps<ChipContextValue>):
|
|
43
|
+
}: ProviderProps<ChipContextValue>): react_jsx_runtime24.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ChipContext, ChipProvider };
|
|
46
46
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/chip/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 { ChipContextValue } from './types';\n\n/**\n * React context for sharing Chip configuration across components.\n */\nexport const ChipContext =\n createContext<ContextValue<ChipContextValue, HTMLDivElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Chip components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the chip context.\n * @returns The chip context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ChipProvider size=\"small\" color=\"info\">\n * <Chip>Chip 1</Chip>\n * <Chip>Chip 2</Chip>\n * </ChipProvider>\n * ```\n */\nexport function ChipProvider({\n children,\n ...props\n}: ProviderProps<ChipContextValue>) {\n return <ChipContext.Provider value={props}>{children}</ChipContext.Provider>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,cACX,cAA8D,KAAK;;;;;;;;;;;;;;;;AAiBrE,SAAgB,aAAa,EAC3B,UACA,GAAG,SAC+B;AAClC,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAQ;GAAgC"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/chip/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 { ChipContextValue } from './types';\n\n/**\n * React context for sharing Chip configuration across components.\n */\nexport const ChipContext =\n createContext<ContextValue<ChipContextValue, HTMLDivElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Chip components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the chip context.\n * @returns The chip context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ChipProvider size=\"small\" color=\"info\">\n * <Chip>Chip 1</Chip>\n * <Chip>Chip 2</Chip>\n * </ChipProvider>\n * ```\n */\nexport function ChipProvider({\n children,\n ...props\n}: ProviderProps<ChipContextValue>) {\n return <ChipContext.Provider value={props}>{children}</ChipContext.Provider>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,cACX,cAA8D,KAAK;;;;;;;;;;;;;;;;AAiBrE,SAAgB,aAAa,EAC3B,UACA,GAAG,SAC+B;AAClC,QAAO,oBAAC,YAAY;EAAS,OAAO;EAAQ;GAAgC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DeletableChipProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/chip/deletable.d.ts
|
|
18
18
|
|
|
@@ -54,7 +54,7 @@ import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
|
54
54
|
declare function DeletableChip({
|
|
55
55
|
ref,
|
|
56
56
|
...props
|
|
57
|
-
}: DeletableChipProps):
|
|
57
|
+
}: DeletableChipProps): react_jsx_runtime26.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { DeletableChip };
|
|
60
60
|
//# sourceMappingURL=deletable.d.ts.map
|
|
@@ -14,13 +14,15 @@
|
|
|
14
14
|
'use client';
|
|
15
15
|
|
|
16
16
|
import { Icon } from "../icon/index.js";
|
|
17
|
-
import { Button
|
|
17
|
+
import { Button } from "../button/index.js";
|
|
18
18
|
import { ChipContext } from "./context.js";
|
|
19
19
|
import "client-only";
|
|
20
20
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
21
|
-
import {
|
|
21
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
23
24
|
import CancelFill from "@accelint/icons/cancel-fill";
|
|
25
|
+
import { Tag } from "react-aria-components/TagGroup";
|
|
24
26
|
import styles from "./styles.module.css";
|
|
25
27
|
|
|
26
28
|
//#region src/components/chip/deletable.tsx
|
|
@@ -71,7 +73,7 @@ function DeletableChip({ ref, ...props }) {
|
|
|
71
73
|
"data-size": size,
|
|
72
74
|
children: composeRenderProps(children, (children$1, { allowsRemoving }) => {
|
|
73
75
|
if (!allowsRemoving) throw new Error("You have a <DeletableChip> in a <ChipList> that does not specify an onRemove handler.");
|
|
74
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [children$1, /* @__PURE__ */ jsx(Button
|
|
76
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [children$1, /* @__PURE__ */ jsx(Button, {
|
|
75
77
|
slot: "remove",
|
|
76
78
|
color: "mono-muted",
|
|
77
79
|
size,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletable.js","names":["AriaTag","children"
|
|
1
|
+
{"version":3,"file":"deletable.js","names":["AriaTag","children"],"sources":["../../../src/components/chip/deletable.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 CancelFill from '@accelint/icons/cancel-fill';\nimport { Tag as AriaTag } from 'react-aria-components/TagGroup';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { ChipContext } from './context';\nimport styles from './styles.module.css';\nimport type { DeletableChipProps } from './types';\n\n/**\n * DeletableChip - Chip with built-in remove button for dynamic content management.\n *\n * Must be used inside a ChipList with an onRemove handler.\n *\n * @param props - The deletable chip props.\n * @param props.ref - Reference to the chip element.\n * @param props.id - Unique identifier for removal tracking.\n * @param props.children - Chip content.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.size - Size of the chip.\n * @param props.textValue - Accessible text value for the chip.\n * @returns The deletable chip component.\n *\n * @example\n * ```tsx\n * <ChipList onRemove={(keys) => console.log('Removed:', keys)}>\n * <DeletableChip id=\"tag1\">JavaScript</DeletableChip>\n * <DeletableChip id=\"tag2\">Python</DeletableChip>\n * </ChipList>\n * ```\n *\n * @example\n * ```tsx\n * // With custom classNames\n * <ChipList onRemove={handleRemove}>\n * <DeletableChip\n * id=\"tag1\"\n * classNames={{ chip: 'custom-chip', remove: 'custom-remove' }}\n * >\n * Styled Tag\n * </DeletableChip>\n * </ChipList>\n * ```\n */\nexport function DeletableChip({ ref, ...props }: DeletableChipProps) {\n [props, ref] = useContextProps(props, ref ?? null, ChipContext);\n\n const {\n children,\n classNames,\n size = 'medium',\n textValue = typeof children === 'string' ? children : undefined,\n ...rest\n } = props;\n\n const iconSize = size === 'small' ? 'xsmall' : 'small';\n\n return (\n <AriaTag\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.chip, (className) =>\n clsx('group/chip', styles.chip, styles.deletable, className),\n )}\n textValue={textValue}\n data-size={size}\n >\n {composeRenderProps(children, (children, { allowsRemoving }) => {\n if (!allowsRemoving) {\n throw new Error(\n 'You have a <DeletableChip> in a <ChipList> that does not specify an onRemove handler.',\n );\n }\n\n return (\n <>\n {children}\n <Button\n slot='remove'\n color='mono-muted'\n size={size}\n variant='icon'\n className={composeRenderProps(classNames?.remove, (className) =>\n clsx(styles.remove, className),\n )}\n >\n <Icon size={iconSize}>\n <CancelFill />\n </Icon>\n </Button>\n </>\n );\n })}\n </AriaTag>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,SAAgB,cAAc,EAAE,KAAK,GAAG,SAA6B;AACnE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EACJ,UACA,YACA,OAAO,UACP,YAAY,OAAO,aAAa,WAAW,WAAW,QACtD,GAAG,SACD;CAEJ,MAAM,WAAW,SAAS,UAAU,WAAW;AAE/C,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,cAAc,OAAO,MAAM,OAAO,WAAW,UAAU,CAC7D;EACU;EACX,aAAW;YAEV,mBAAmB,WAAW,YAAU,EAAE,qBAAqB;AAC9D,OAAI,CAAC,eACH,OAAM,IAAI,MACR,wFACD;AAGH,UACE,4CACGC,YACD,oBAAC;IACC,MAAK;IACL,OAAM;IACA;IACN,SAAQ;IACR,WAAW,mBAAmB,YAAY,SAAS,cACjD,KAAK,OAAO,QAAQ,UAAU,CAC/B;cAED,oBAAC;KAAK,MAAM;eACV,oBAAC,eAAa;MACT;KACA,IACR;IAEL;GACM"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ChipProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/chip/index.d.ts
|
|
18
18
|
|
|
@@ -93,7 +93,7 @@ import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
|
93
93
|
declare function Chip({
|
|
94
94
|
ref,
|
|
95
95
|
...props
|
|
96
|
-
}: ChipProps):
|
|
96
|
+
}: ChipProps): react_jsx_runtime25.JSX.Element;
|
|
97
97
|
//#endregion
|
|
98
98
|
export { Chip };
|
|
99
99
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -19,8 +19,9 @@ import { ChipListRenderingContext } from "./list.js";
|
|
|
19
19
|
import "client-only";
|
|
20
20
|
import { useContext } from "react";
|
|
21
21
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
22
|
-
import { Tag, useContextProps } from "react-aria-components";
|
|
23
22
|
import { jsx } from "react/jsx-runtime";
|
|
23
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
24
|
+
import { Tag } from "react-aria-components/TagGroup";
|
|
24
25
|
import styles from "./styles.module.css";
|
|
25
26
|
|
|
26
27
|
//#region src/components/chip/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaTag"],"sources":["../../../src/components/chip/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 { useContext } from 'react';\nimport { Tag as AriaTag
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaTag"],"sources":["../../../src/components/chip/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 { useContext } from 'react';\nimport { Tag as AriaTag } from 'react-aria-components/TagGroup';\nimport { IconProvider } from '../icon/context';\nimport { ChipContext } from './context';\nimport { ChipListRenderingContext } from './list';\nimport styles from './styles.module.css';\nimport type { ChipProps } from './types';\nimport { useContextProps } from 'react-aria-components/slots';\n\n/**\n * Chip - A compact element for displaying tags, filters, or selectable items\n *\n * Provides flexible chip functionality supporting both individual chips and chip lists.\n * Includes variants for deletable and selectable chips with keyboard navigation and\n * accessibility features. Perfect for tags, filters, or multi-selection interfaces.\n *\n * @param props - The chip props.\n * @param props.ref - Reference to the chip element.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the chip.\n * @param props.children - Chip content (text, icons, or both).\n * @returns The chip component.\n *\n * @example\n * ```tsx\n * // Basic chip\n * <Chip>JavaScript</Chip>\n * ```\n *\n * @example\n * ```tsx\n * // Chip with color variants\n * <Chip color=\"info\">Information</Chip>\n * <Chip color=\"advisory\">Warning</Chip>\n * <Chip color=\"normal\">Success</Chip>\n * <Chip color=\"serious\">Caution</Chip>\n * <Chip color=\"critical\">Error</Chip>\n * ```\n *\n * @example\n * ```tsx\n * // Chip with icon\n * <Chip color=\"info\">\n * <Icon><Placeholder /></Icon>\n * With Icon\n * </Chip>\n * ```\n *\n * @example\n * ```tsx\n * // Chip with size variants\n * <Chip size=\"medium\">Medium Chip</Chip>\n * <Chip size=\"small\">Small Chip</Chip>\n * ```\n *\n * @example\n * ```tsx\n * // Chip list with multiple items\n * <ChipList>\n * <Chip color=\"info\">React</Chip>\n * <Chip color=\"advisory\">TypeScript</Chip>\n * <Chip color=\"normal\">Node.js</Chip>\n * </ChipList>\n * ```\n *\n * @example\n * ```tsx\n * // Deletable chips\n * <ChipList onRemove={(keys) => console.log('removed', keys)}>\n * <DeletableChip id=\"tag1\">Removable Tag</DeletableChip>\n * </ChipList>\n * ```\n *\n * @example\n * ```tsx\n * // Selectable chips with color\n * <ChipList selectionMode=\"single\">\n * <SelectableChip id=\"up\" color=\"normal\">UP</SelectableChip>\n * <SelectableChip id=\"down\" color=\"critical\">DOWN</SelectableChip>\n * </ChipList>\n * ```\n */\nexport function Chip({ ref, ...props }: ChipProps) {\n [props, ref] = useContextProps(props, ref ?? null, ChipContext);\n\n const context = useContext(ChipListRenderingContext);\n const Component = context ? AriaTag : 'div';\n const { className, color = 'info', size = 'medium', ...rest } = props;\n\n return (\n <IconProvider size={size === 'medium' ? 'small' : 'xsmall'}>\n <Component\n {...rest}\n ref={ref}\n className={clsx('group/chip', styles.chip, className)}\n data-color={color}\n data-size={size}\n />\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA,SAAgB,KAAK,EAAE,KAAK,GAAG,SAAoB;AACjD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAG/D,MAAM,YADU,WAAW,yBAAyB,GACxBA,MAAU;CACtC,MAAM,EAAE,WAAW,QAAQ,QAAQ,OAAO,UAAU,GAAG,SAAS;AAEhE,QACE,oBAAC;EAAa,MAAM,SAAS,WAAW,UAAU;YAChD,oBAAC;GACC,GAAI;GACC;GACL,WAAW,KAAK,cAAc,OAAO,MAAM,UAAU;GACrD,cAAY;GACZ,aAAW;IACX;GACW"}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { ChipListProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as react7 from "react";
|
|
16
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/chip/list.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* React context indicating whether chips are being rendered inside a ChipList.
|
|
21
21
|
*/
|
|
22
|
-
declare const ChipListRenderingContext:
|
|
22
|
+
declare const ChipListRenderingContext: react7.Context<boolean>;
|
|
23
23
|
/**
|
|
24
24
|
* ChipList - Container component for grouping multiple chips with shared behavior.
|
|
25
25
|
*
|
|
@@ -65,7 +65,7 @@ declare const ChipListRenderingContext: react14.Context<boolean>;
|
|
|
65
65
|
declare function ChipList<T extends object>({
|
|
66
66
|
ref,
|
|
67
67
|
...props
|
|
68
|
-
}: ChipListProps<T>):
|
|
68
|
+
}: ChipListProps<T>): react_jsx_runtime27.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { ChipList, ChipListRenderingContext };
|
|
71
71
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -17,8 +17,10 @@ import { ChipContext, ChipProvider } from "./context.js";
|
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { createContext } from "react";
|
|
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 { TagGroup, TagList } from "react-aria-components/TagGroup";
|
|
22
24
|
import styles from "./styles.module.css";
|
|
23
25
|
|
|
24
26
|
//#region src/components/chip/list.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","names":["AriaTagGroup","AriaTagList","className"],"sources":["../../../src/components/chip/list.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 { createContext } from 'react';\nimport {\n TagGroup as AriaTagGroup,\n TagList as AriaTagList,\n
|
|
1
|
+
{"version":3,"file":"list.js","names":["AriaTagGroup","AriaTagList","className"],"sources":["../../../src/components/chip/list.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 { createContext } from 'react';\nimport {\n TagGroup as AriaTagGroup,\n TagList as AriaTagList,\n} from 'react-aria-components/TagGroup';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { ChipContext, ChipProvider } from './context';\nimport styles from './styles.module.css';\nimport type { ChipListProps } from './types';\n\n/**\n * React context indicating whether chips are being rendered inside a ChipList.\n */\nexport const ChipListRenderingContext = createContext(false);\n\n/**\n * ChipList - Container component for grouping multiple chips with shared behavior.\n *\n * Provides context for size and color, and enables selection and removal functionality.\n *\n * @param props - The chip list props.\n * @param props.ref - Reference to the list container element.\n * @param props.children - Chip components to render in the list.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Default color for all chips in the list.\n * @param props.size - Default size for all chips in the list.\n * @param props.selectionMode - Enable single or multiple selection.\n * @param props.onRemove - Callback when chips are removed.\n * @returns The chip list component.\n *\n * @example\n * ```tsx\n * // Basic list\n * <ChipList>\n * <Chip color=\"info\">React</Chip>\n * <Chip color=\"advisory\">TypeScript</Chip>\n * </ChipList>\n * ```\n *\n * @example\n * ```tsx\n * // Selectable chips\n * <ChipList selectionMode=\"multiple\" onSelectionChange={handleChange}>\n * <SelectableChip id=\"react\">React</SelectableChip>\n * <SelectableChip id=\"vue\">Vue</SelectableChip>\n * </ChipList>\n * ```\n *\n * @example\n * ```tsx\n * // Deletable chips\n * <ChipList onRemove={(keys) => console.log('Removed:', keys)}>\n * <DeletableChip id=\"tag1\">Tag 1</DeletableChip>\n * <DeletableChip id=\"tag2\">Tag 2</DeletableChip>\n * </ChipList>\n * ```\n */\nexport function ChipList<T extends object>({\n ref,\n ...props\n}: ChipListProps<T>) {\n [props, ref] = useContextProps(props, ref ?? null, ChipContext);\n\n const {\n children,\n className,\n color,\n dependencies,\n items,\n renderEmptyState,\n size = 'small',\n ...rest\n } = props;\n\n return (\n <ChipListRenderingContext.Provider value>\n <ChipProvider color={color} size={size}>\n <AriaTagGroup {...rest}>\n <AriaTagList<T>\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/chip-list', styles.list, className),\n )}\n dependencies={dependencies}\n items={items}\n renderEmptyState={renderEmptyState}\n >\n {children}\n </AriaTagList>\n </AriaTagGroup>\n </ChipProvider>\n </ChipListRenderingContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAa,2BAA2B,cAAc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4C5D,SAAgB,SAA2B,EACzC,KACA,GAAG,SACgB;AACnB,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EACJ,UACA,WACA,OACA,cACA,OACA,kBACA,OAAO,SACP,GAAG,SACD;AAEJ,QACE,oBAAC,yBAAyB;EAAS;YACjC,oBAAC;GAAoB;GAAa;aAChC,oBAACA;IAAa,GAAI;cAChB,oBAACC;KACM;KACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,mBAAmB,OAAO,MAAMC,YAAU,CAChD;KACa;KACP;KACW;KAEjB;MACW;KACD;IACF;GACmB"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SelectableChipProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/chip/selectable.d.ts
|
|
18
18
|
|
|
@@ -50,7 +50,7 @@ import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
|
50
50
|
declare function SelectableChip({
|
|
51
51
|
ref,
|
|
52
52
|
...props
|
|
53
|
-
}: SelectableChipProps):
|
|
53
|
+
}: SelectableChipProps): react_jsx_runtime28.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { SelectableChip };
|
|
56
56
|
//# sourceMappingURL=selectable.d.ts.map
|
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
import { ChipContext } from "./context.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 { useContextProps } from "react-aria-components/slots";
|
|
22
|
+
import { Tag } from "react-aria-components/TagGroup";
|
|
21
23
|
import styles from "./styles.module.css";
|
|
22
24
|
|
|
23
25
|
//#region src/components/chip/selectable.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectable.js","names":["AriaTag","className"],"sources":["../../../src/components/chip/selectable.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":"selectable.js","names":["AriaTag","className"],"sources":["../../../src/components/chip/selectable.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 { Tag as AriaTag } from 'react-aria-components/TagGroup';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { ChipContext } from './context';\nimport styles from './styles.module.css';\nimport type { SelectableChipProps } from './types';\n\n/**\n * SelectableChip - Interactive chip that can be selected/deselected for filtering.\n *\n * Must be used inside a ChipList with selectionMode set to \"single\" or \"multiple\".\n *\n * @param props - The selectable chip props.\n * @param props.ref - Reference to the chip element.\n * @param props.id - Unique identifier for selection tracking.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the chip.\n * @param props.children - Chip content.\n * @returns The selectable chip component.\n *\n * @example\n * ```tsx\n * <ChipList selectionMode=\"multiple\">\n * <SelectableChip id=\"react\">React</SelectableChip>\n * <SelectableChip id=\"vue\">Vue</SelectableChip>\n * </ChipList>\n * ```\n *\n * @example\n * ```tsx\n * // With colors\n * <ChipList selectionMode=\"single\">\n * <SelectableChip id=\"up\" color=\"normal\">UP</SelectableChip>\n * <SelectableChip id=\"down\" color=\"critical\">DOWN</SelectableChip>\n * </ChipList>\n * ```\n */\nexport function SelectableChip({ ref, ...props }: SelectableChipProps) {\n [props, ref] = useContextProps(props, ref ?? null, ChipContext);\n\n const { className, color, size = 'medium', ...rest } = props;\n\n return (\n <AriaTag\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/chip', styles.chip, styles.selectable, className),\n )}\n data-color={color}\n data-size={size}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,eAAe,EAAE,KAAK,GAAG,SAA8B;AACrE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EAAE,WAAW,OAAO,OAAO,UAAU,GAAG,SAAS;AAEvD,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,cAAc,OAAO,MAAM,OAAO,YAAYC,YAAU,CAC9D;EACD,cAAY;EACZ,aAAW;GACX"}
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { ButtonProps } from "../button/types.js";
|
|
13
14
|
import { ComponentPropsWithRef, RefAttributes } from "react";
|
|
14
|
-
import {
|
|
15
|
+
import { TagGroupProps, TagListProps, TagProps } from "react-aria-components/TagGroup";
|
|
15
16
|
|
|
16
17
|
//#region src/components/chip/types.d.ts
|
|
17
18
|
type BaseChipProps = {
|
|
@@ -29,7 +30,7 @@ type ChipListProps<T> = Omit<TagGroupProps, 'children'> & Pick<TagListProps<T>,
|
|
|
29
30
|
*
|
|
30
31
|
* Basic chip with color and size variants, can be used standalone or in a ChipList.
|
|
31
32
|
*/
|
|
32
|
-
type ChipProps = Omit<ComponentPropsWithRef<'div'>, 'size' | 'onClick'> & BaseChipProps & {
|
|
33
|
+
type ChipProps = Omit<ComponentPropsWithRef<'div'>, 'size' | 'onClick' | 'onFocus' | 'onBlur'> & BaseChipProps & {
|
|
33
34
|
/** Additional CSS class name for styling. */
|
|
34
35
|
className?: string;
|
|
35
36
|
};
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { ClassificationBadgeProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import * as react9 from "react";
|
|
17
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/classification-badge/context.d.ts
|
|
21
21
|
/** React context for sharing ClassificationBadge configuration across components. */
|
|
22
|
-
declare const ClassificationBadgeContext:
|
|
22
|
+
declare const ClassificationBadgeContext: react9.Context<ContextValue<ClassificationBadgeProps, HTMLSpanElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Context provider for setting default props across multiple ClassificationBadge components.
|
|
25
25
|
*
|
|
@@ -38,7 +38,7 @@ declare const ClassificationBadgeContext: react0.Context<ContextValue<Classifica
|
|
|
38
38
|
declare function ClassificationBadgeProvider({
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: ProviderProps<ClassificationBadgeProps>):
|
|
41
|
+
}: ProviderProps<ClassificationBadgeProps>): react_jsx_runtime32.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { ClassificationBadgeContext, ClassificationBadgeProvider };
|
|
44
44
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/classification-badge/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ClassificationBadgeProps } from './types';\n\n/** React context for sharing ClassificationBadge configuration across components. */\nexport const ClassificationBadgeContext =\n createContext<ContextValue<ClassificationBadgeProps, HTMLSpanElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ClassificationBadge components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the classification badge context.\n * @returns The classification badge context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ClassificationBadgeProvider variant=\"secret\" size=\"small\">\n * <ClassificationBadge />\n * <ClassificationBadge />\n * </ClassificationBadgeProvider>\n * ```\n */\nexport function ClassificationBadgeProvider({\n children,\n ...props\n}: ProviderProps<ClassificationBadgeProps>) {\n return (\n <ClassificationBadgeContext.Provider value={props}>\n {children}\n </ClassificationBadgeContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,6BACX,cAAuE,KAAK;;;;;;;;;;;;;;;;AAiB9E,SAAgB,4BAA4B,EAC1C,UACA,GAAG,SACuC;AAC1C,QACE,oBAAC,2BAA2B;EAAS,OAAO;EACzC;GACmC"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/classification-badge/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components/slots';\nimport type { ClassificationBadgeProps } from './types';\n\n/** React context for sharing ClassificationBadge configuration across components. */\nexport const ClassificationBadgeContext =\n createContext<ContextValue<ClassificationBadgeProps, HTMLSpanElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ClassificationBadge components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the classification badge context.\n * @returns The classification badge context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ClassificationBadgeProvider variant=\"secret\" size=\"small\">\n * <ClassificationBadge />\n * <ClassificationBadge />\n * </ClassificationBadgeProvider>\n * ```\n */\nexport function ClassificationBadgeProvider({\n children,\n ...props\n}: ProviderProps<ClassificationBadgeProps>) {\n return (\n <ClassificationBadgeContext.Provider value={props}>\n {children}\n </ClassificationBadgeContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,6BACX,cAAuE,KAAK;;;;;;;;;;;;;;;;AAiB9E,SAAgB,4BAA4B,EAC1C,UACA,GAAG,SACuC;AAC1C,QACE,oBAAC,2BAA2B;EAAS,OAAO;EACzC;GACmC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ClassificationBadgeProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/classification-badge/index.d.ts
|
|
18
18
|
|
|
@@ -51,7 +51,7 @@ import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
|
51
51
|
declare function ClassificationBadge({
|
|
52
52
|
ref,
|
|
53
53
|
...props
|
|
54
|
-
}: ClassificationBadgeProps):
|
|
54
|
+
}: ClassificationBadgeProps): react_jsx_runtime33.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { ClassificationBadge };
|
|
57
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
import { ClassificationBadgeContext } from "./context.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import { useContextProps } from "react-aria-components";
|
|
20
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
21
21
|
import styles from "./styles.module.css";
|
|
22
22
|
|
|
23
23
|
//#region src/components/classification-badge/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/classification-badge/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContextProps } from 'react-aria-components';\nimport { ClassificationBadgeContext } from './context';\nimport styles from './styles.module.css';\nimport type { ClassificationBadgeProps } from './types';\n\nconst fallbackContent = {\n missing: 'Missing',\n unclassified: 'Unclassified',\n cui: 'CUI',\n confidential: 'Confidential',\n secret: 'Secret',\n 'top-secret': 'Top Secret',\n 'ts-sci': 'TS/SCI',\n} as const;\n\n/**\n * ClassificationBadge - Displays security classification levels for documents and data.\n *\n * Provides standardized visual indicators for classification levels such as\n * unclassified, confidential, secret, and top-secret. Designed for compliance\n * with security standards in government and secure environments.\n *\n * @param props - The classification badge props.\n * @param props.ref - Reference to the badge element.\n * @param props.children - Custom text content (defaults to variant label).\n * @param props.className - Additional CSS class names for styling.\n * @param props.size - Size of the badge.\n * @param props.variant - Classification level variant.\n * @returns The classification badge component.\n *\n * @example\n * ```tsx\n * <ClassificationBadge variant=\"secret\" />\n * ```\n *\n * @example\n * ```tsx\n * // With custom text\n * <ClassificationBadge variant=\"top-secret\">TOP SECRET//NOFORN</ClassificationBadge>\n * ```\n *\n * @example\n * ```tsx\n * // Different sizes\n * <ClassificationBadge variant=\"confidential\" size=\"small\" />\n * ```\n */\nexport function ClassificationBadge({\n ref,\n ...props\n}: ClassificationBadgeProps) {\n [props, ref] = useContextProps(\n props,\n ref ?? null,\n ClassificationBadgeContext,\n );\n\n const {\n children,\n className,\n size = 'medium',\n variant = 'missing',\n ...rest\n } = props;\n\n return (\n <span\n {...rest}\n className={clsx(\n 'group/classification-badge',\n styles.badge,\n styles[variant],\n className,\n )}\n data-size={size}\n >\n {children || fallbackContent[variant]}\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,kBAAkB;CACtB,SAAS;CACT,cAAc;CACd,KAAK;CACL,cAAc;CACd,QAAQ;CACR,cAAc;CACd,UAAU;CACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCD,SAAgB,oBAAoB,EAClC,KACA,GAAG,SACwB;AAC3B,EAAC,OAAO,OAAO,gBACb,OACA,OAAO,MACP,2BACD;CAED,MAAM,EACJ,UACA,WACA,OAAO,UACP,UAAU,WACV,GAAG,SACD;AAEJ,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KACT,8BACA,OAAO,OACP,OAAO,UACP,UACD;EACD,aAAW;YAEV,YAAY,gBAAgB;GACxB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/classification-badge/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { ClassificationBadgeContext } from './context';\nimport styles from './styles.module.css';\nimport type { ClassificationBadgeProps } from './types';\n\nconst fallbackContent = {\n missing: 'Missing',\n unclassified: 'Unclassified',\n cui: 'CUI',\n confidential: 'Confidential',\n secret: 'Secret',\n 'top-secret': 'Top Secret',\n 'ts-sci': 'TS/SCI',\n} as const;\n\n/**\n * ClassificationBadge - Displays security classification levels for documents and data.\n *\n * Provides standardized visual indicators for classification levels such as\n * unclassified, confidential, secret, and top-secret. Designed for compliance\n * with security standards in government and secure environments.\n *\n * @param props - The classification badge props.\n * @param props.ref - Reference to the badge element.\n * @param props.children - Custom text content (defaults to variant label).\n * @param props.className - Additional CSS class names for styling.\n * @param props.size - Size of the badge.\n * @param props.variant - Classification level variant.\n * @returns The classification badge component.\n *\n * @example\n * ```tsx\n * <ClassificationBadge variant=\"secret\" />\n * ```\n *\n * @example\n * ```tsx\n * // With custom text\n * <ClassificationBadge variant=\"top-secret\">TOP SECRET//NOFORN</ClassificationBadge>\n * ```\n *\n * @example\n * ```tsx\n * // Different sizes\n * <ClassificationBadge variant=\"confidential\" size=\"small\" />\n * ```\n */\nexport function ClassificationBadge({\n ref,\n ...props\n}: ClassificationBadgeProps) {\n [props, ref] = useContextProps(\n props,\n ref ?? null,\n ClassificationBadgeContext,\n );\n\n const {\n children,\n className,\n size = 'medium',\n variant = 'missing',\n ...rest\n } = props;\n\n return (\n <span\n {...rest}\n className={clsx(\n 'group/classification-badge',\n styles.badge,\n styles[variant],\n className,\n )}\n data-size={size}\n >\n {children || fallbackContent[variant]}\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,kBAAkB;CACtB,SAAS;CACT,cAAc;CACd,KAAK;CACL,cAAc;CACd,QAAQ;CACR,cAAc;CACd,UAAU;CACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCD,SAAgB,oBAAoB,EAClC,KACA,GAAG,SACwB;AAC3B,EAAC,OAAO,OAAO,gBACb,OACA,OAAO,MACP,2BACD;CAED,MAAM,EACJ,UACA,WACA,OAAO,UACP,UAAU,WACV,GAAG,SACD;AAEJ,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KACT,8BACA,OAAO,OACP,OAAO,UACP,UACD;EACD,aAAW;YAEV,YAAY,gBAAgB;GACxB"}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { ClassificationBannerProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import * as react10 from "react";
|
|
17
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/classification-banner/context.d.ts
|
|
21
21
|
/** React context for sharing ClassificationBanner configuration across components. */
|
|
22
|
-
declare const ClassificationBannerContext:
|
|
22
|
+
declare const ClassificationBannerContext: react10.Context<ContextValue<ClassificationBannerProps, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Context provider for setting default props across multiple ClassificationBanner components.
|
|
25
25
|
*
|
|
@@ -38,7 +38,7 @@ declare const ClassificationBannerContext: react1.Context<ContextValue<Classific
|
|
|
38
38
|
declare function ClassificationBannerProvider({
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: ProviderProps<ClassificationBannerProps>):
|
|
41
|
+
}: ProviderProps<ClassificationBannerProps>): react_jsx_runtime34.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { ClassificationBannerContext, ClassificationBannerProvider };
|
|
44
44
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/classification-banner/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 { ClassificationBannerProps } from './types';\n\n/** React context for sharing ClassificationBanner configuration across components. */\nexport const ClassificationBannerContext =\n createContext<ContextValue<ClassificationBannerProps, HTMLDivElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ClassificationBanner components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the classification banner context.\n * @returns The classification banner context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ClassificationBannerProvider variant=\"secret\">\n * <ClassificationBanner />\n * <ClassificationBanner />\n * </ClassificationBannerProvider>\n * ```\n */\nexport function ClassificationBannerProvider({\n children,\n ...props\n}: ProviderProps<ClassificationBannerProps>) {\n return (\n <ClassificationBannerContext.Provider value={props}>\n {children}\n </ClassificationBannerContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,8BACX,cAAuE,KAAK;;;;;;;;;;;;;;;;AAiB9E,SAAgB,6BAA6B,EAC3C,UACA,GAAG,SACwC;AAC3C,QACE,oBAAC,4BAA4B;EAAS,OAAO;EAC1C;GACoC"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/classification-banner/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 { ClassificationBannerProps } from './types';\n\n/** React context for sharing ClassificationBanner configuration across components. */\nexport const ClassificationBannerContext =\n createContext<ContextValue<ClassificationBannerProps, HTMLDivElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ClassificationBanner components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the classification banner context.\n * @returns The classification banner context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ClassificationBannerProvider variant=\"secret\">\n * <ClassificationBanner />\n * <ClassificationBanner />\n * </ClassificationBannerProvider>\n * ```\n */\nexport function ClassificationBannerProvider({\n children,\n ...props\n}: ProviderProps<ClassificationBannerProps>) {\n return (\n <ClassificationBannerContext.Provider value={props}>\n {children}\n </ClassificationBannerContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,8BACX,cAAuE,KAAK;;;;;;;;;;;;;;;;AAiB9E,SAAgB,6BAA6B,EAC3C,UACA,GAAG,SACwC;AAC3C,QACE,oBAAC,4BAA4B;EAAS,OAAO;EAC1C;GACoC"}
|