@accelint/design-toolkit 9.9.2 → 9.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog-info.yaml +3 -3
- package/dist/components/accordion/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/styles.module.css +19 -3
- 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/styles.module.css +16 -0
- 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 +40 -0
- package/dist/components/carousel/context.js +55 -0
- package/dist/components/carousel/context.js.map +1 -0
- package/dist/components/carousel/gallery.d.ts +38 -0
- package/dist/components/carousel/gallery.js +84 -0
- package/dist/components/carousel/gallery.js.map +1 -0
- package/dist/components/carousel/index.d.ts +56 -0
- package/dist/components/carousel/index.js +66 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/carousel/navigation.d.ts +51 -0
- package/dist/components/carousel/navigation.js +82 -0
- package/dist/components/carousel/navigation.js.map +1 -0
- package/dist/components/carousel/position.d.ts +33 -0
- package/dist/components/carousel/position.js +48 -0
- package/dist/components/carousel/position.js.map +1 -0
- package/dist/components/carousel/select.d.ts +38 -0
- package/dist/components/carousel/select.js +69 -0
- package/dist/components/carousel/select.js.map +1 -0
- package/dist/components/carousel/style.module.css +62 -0
- package/dist/components/carousel/types.d.ts +87 -0
- package/dist/components/carousel/types.js +12 -0
- package/dist/components/carousel/viewer.d.ts +40 -0
- package/dist/components/carousel/viewer.js +75 -0
- package/dist/components/carousel/viewer.js.map +1 -0
- package/dist/components/checkbox/context.d.ts +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 +3 -3
- 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 +12 -12
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +12 -0
- 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/index.d.ts +2 -2
- package/dist/components/coordinate-field/index.js +28 -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 +5 -5
- 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 +4 -4
- 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/styles.module.css +23 -0
- 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 +54 -2
- 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 +22 -15
- package/dist/components/floating-card/context.js +18 -3
- package/dist/components/floating-card/context.js.map +1 -1
- package/dist/components/floating-card/index.d.ts +32 -27
- package/dist/components/floating-card/index.js +41 -11
- package/dist/components/floating-card/index.js.map +1 -1
- package/dist/components/floating-card/provider.d.ts +30 -32
- package/dist/components/floating-card/provider.js +110 -49
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +20 -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 +28 -0
- package/dist/components/gantt/components/base-elements/point.js +44 -0
- package/dist/components/gantt/components/base-elements/point.js.map +1 -0
- package/dist/components/gantt/components/base-elements/range.d.ts +30 -0
- package/dist/components/gantt/components/base-elements/range.js +51 -0
- package/dist/components/gantt/components/base-elements/range.js.map +1 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.d.ts +12 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js +42 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js.map +1 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.d.ts +23 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js +50 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +23 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.js +40 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +23 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js +33 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/styles.module.css +32 -0
- package/dist/components/gantt/components/containers/internal/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/index.js +35 -0
- package/dist/components/gantt/components/containers/internal/index.js.map +1 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.js +27 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/internal/styles.module.css +35 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js +38 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/block.d.ts +27 -0
- package/dist/components/gantt/components/content-row/block.js +39 -0
- package/dist/components/gantt/components/content-row/block.js.map +1 -0
- package/dist/components/gantt/components/content-row/bracket.d.ts +23 -0
- package/dist/components/gantt/components/content-row/bracket.js +48 -0
- package/dist/components/gantt/components/content-row/bracket.js.map +1 -0
- package/dist/components/gantt/components/content-row/icon-marker.d.ts +27 -0
- package/dist/components/gantt/components/content-row/icon-marker.js +41 -0
- package/dist/components/gantt/components/content-row/icon-marker.js.map +1 -0
- package/dist/components/gantt/components/content-row/index.d.ts +24 -0
- package/dist/components/gantt/components/content-row/index.js +32 -0
- package/dist/components/gantt/components/content-row/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/marker.d.ts +21 -0
- package/dist/components/gantt/components/content-row/marker.js +35 -0
- package/dist/components/gantt/components/content-row/marker.js.map +1 -0
- package/dist/components/gantt/components/content-row/spacer.d.ts +23 -0
- package/dist/components/gantt/components/content-row/spacer.js +35 -0
- package/dist/components/gantt/components/content-row/spacer.js.map +1 -0
- package/dist/components/gantt/components/content-row/styles.module.css +198 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.d.ts +19 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js +27 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.d.ts +10 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.js +24 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.js.map +1 -0
- package/dist/components/gantt/components/current-time/index.d.ts +28 -0
- package/dist/components/gantt/components/current-time/index.js +63 -0
- package/dist/components/gantt/components/current-time/index.js.map +1 -0
- package/dist/components/gantt/components/current-time/styles.module.css +42 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.d.ts +31 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.js +58 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.js.map +1 -0
- package/dist/components/gantt/components/header/index.d.ts +25 -0
- package/dist/components/gantt/components/header/index.js +41 -0
- package/dist/components/gantt/components/header/index.js.map +1 -0
- package/dist/components/gantt/components/header/styles.module.css +23 -0
- package/dist/components/gantt/components/panel-row/index.d.ts +24 -0
- package/dist/components/gantt/components/panel-row/index.js +33 -0
- package/dist/components/gantt/components/panel-row/index.js.map +1 -0
- package/dist/components/gantt/components/panel-row/styles.module.css +24 -0
- package/dist/components/gantt/components/rows-virtualizer/index.d.ts +25 -0
- package/dist/components/gantt/components/rows-virtualizer/index.js +67 -0
- package/dist/components/gantt/components/rows-virtualizer/index.js.map +1 -0
- package/dist/components/gantt/components/rows-virtualizer/styles.module.css +30 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.d.ts +29 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js +57 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js.map +1 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.d.ts +10 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js +58 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js.map +1 -0
- package/dist/components/gantt/components/styles.module.css +46 -0
- package/dist/components/gantt/components/timeline/index.d.ts +19 -0
- package/dist/components/gantt/components/timeline/index.js +45 -0
- package/dist/components/gantt/components/timeline/index.js.map +1 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.d.ts +29 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.js +33 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.js.map +1 -0
- package/dist/components/gantt/components/timeline-chunk/index.d.ts +25 -0
- package/dist/components/gantt/components/timeline-chunk/index.js +43 -0
- package/dist/components/gantt/components/timeline-chunk/index.js.map +1 -0
- package/dist/components/gantt/constants.d.ts +31 -0
- package/dist/components/gantt/constants.js +57 -0
- package/dist/components/gantt/constants.js.map +1 -0
- package/dist/components/gantt/context/index.d.ts +60 -0
- package/dist/components/gantt/context/index.js +78 -0
- package/dist/components/gantt/context/index.js.map +1 -0
- package/dist/components/gantt/context/store/index.d.ts +45 -0
- package/dist/components/gantt/context/store/index.js +42 -0
- package/dist/components/gantt/context/store/index.js.map +1 -0
- package/dist/components/gantt/context/temporal-data/index.d.ts +48 -0
- package/dist/components/gantt/context/temporal-data/index.js +80 -0
- package/dist/components/gantt/context/temporal-data/index.js.map +1 -0
- package/dist/components/gantt/gantt.d.ts +50 -0
- package/dist/components/gantt/gantt.js +51 -0
- package/dist/components/gantt/gantt.js.map +1 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.d.ts +22 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js +36 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.d.ts +26 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.js +45 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.d.ts +26 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js +50 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.d.ts +5 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.js +24 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.d.ts +5 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.js +40 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.d.ts +19 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js +87 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.d.ts +22 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js +38 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js.map +1 -0
- package/dist/components/gantt/public-types.d.ts +31 -0
- package/dist/components/gantt/public-types.js +12 -0
- package/dist/components/gantt/store.d.ts +51 -0
- package/dist/components/gantt/store.js +46 -0
- package/dist/components/gantt/store.js.map +1 -0
- package/dist/components/gantt/styles.module.css +30 -0
- package/dist/components/gantt/types.d.ts +67 -0
- package/dist/components/gantt/types.js +12 -0
- package/dist/components/gantt/utils/conversions.d.ts +23 -0
- package/dist/components/gantt/utils/conversions.js +34 -0
- package/dist/components/gantt/utils/conversions.js.map +1 -0
- package/dist/components/gantt/utils/dates.d.ts +11 -0
- package/dist/components/gantt/utils/dates.js +41 -0
- package/dist/components/gantt/utils/dates.js.map +1 -0
- package/dist/components/gantt/utils/formatting.d.ts +5 -0
- package/dist/components/gantt/utils/formatting.js +54 -0
- package/dist/components/gantt/utils/formatting.js.map +1 -0
- package/dist/components/gantt/utils/generation.d.ts +19 -0
- package/dist/components/gantt/utils/generation.js +37 -0
- package/dist/components/gantt/utils/generation.js.map +1 -0
- package/dist/components/gantt/utils/helpers.d.ts +26 -0
- package/dist/components/gantt/utils/helpers.js +55 -0
- package/dist/components/gantt/utils/helpers.js.map +1 -0
- package/dist/components/gantt/utils/layout.d.ts +32 -0
- package/dist/components/gantt/utils/layout.js +55 -0
- package/dist/components/gantt/utils/layout.js.map +1 -0
- package/dist/components/gantt/utils/thresholds.d.ts +52 -0
- package/dist/components/gantt/utils/thresholds.js +116 -0
- package/dist/components/gantt/utils/thresholds.js.map +1 -0
- package/dist/components/hero/context.d.ts +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-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header-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/styles.module.css +12 -0
- 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 +6 -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 +16 -6
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/styles.module.css +27 -0
- 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/styles.module.css +34 -0
- 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/query-builder/value-selector.js +1 -1
- 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/styles.module.css +10 -2
- 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/styles.module.css +8 -0
- 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/context.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 +4 -4
- 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/styles.module.css +35 -0
- 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 +31 -16
- 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 +10 -9
- 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 -15
- 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.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/use-tree/actions/cache.d.ts +406 -17
- package/dist/hooks/use-tree/actions/cache.js +488 -16
- package/dist/hooks/use-tree/actions/cache.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +36 -22
- package/dist/hooks/use-tree/actions/index.js +103 -36
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +25 -2
- package/dist/hooks/use-tree/state/index.js +27 -3
- 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 +66 -24
- package/dist/index.d.ts +27 -7
- package/dist/index.js +27 -10
- 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 +77 -36
- 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
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
import { BadgeContext } from "./context.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import { useContextProps } from "react-aria-components";
|
|
20
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
21
21
|
import styles from "./styles.module.css";
|
|
22
22
|
|
|
23
23
|
//#region src/components/badge/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/badge/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContextProps } from 'react-aria-components';\nimport { BadgeContext } from './context';\nimport styles from './styles.module.css';\nimport type { BadgeProps } from './types';\n\n/**\n * Small status indicator for labels, counts, and notifications.\n * Empty badges render as dot indicators.\n *\n * @param props - The badge props.\n * @param props.ref - Reference to the span element.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.offset - Offset from positioned edge in pixels.\n * @param props.placement - Position relative to container.\n * @param props.children - Badge content (text, number, or empty for dot).\n * @returns The badge span element.\n *\n * @example\n * ```tsx\n * <Badge>New</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Color variants\n * <Badge color=\"normal\">Active</Badge>\n * <Badge color=\"advisory\">Pending</Badge>\n * <Badge color=\"critical\">Error</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Dot indicator (no children)\n * <Badge color=\"normal\" />\n * ```\n *\n * @example\n * ```tsx\n * // Positioned badge\n * <Badge placement=\"top right\" offset={designTokens.spacing.xs}>3</Badge>\n * ```\n */\nexport function Badge({ ref, ...props }: BadgeProps) {\n [props, ref] = useContextProps(props, ref ?? null, BadgeContext);\n\n const { className, color = 'info', offset, placement, ...rest } = props;\n\n return (\n <span\n {...rest}\n ref={ref}\n className={clsx('group/badge', styles.badge, className)}\n data-color={color}\n data-offset-x={typeof offset === 'number' ? offset : offset?.x}\n data-offset-y={typeof offset === 'number' ? offset : offset?.y}\n data-placement={placement || null}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,MAAM,EAAE,KAAK,GAAG,SAAqB;AACnD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,aAAa;CAEhE,MAAM,EAAE,WAAW,QAAQ,QAAQ,QAAQ,WAAW,GAAG,SAAS;AAElE,QACE,oBAAC;EACC,GAAI;EACC;EACL,WAAW,KAAK,eAAe,OAAO,OAAO,UAAU;EACvD,cAAY;EACZ,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,kBAAgB,aAAa;GAC7B"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/badge/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { BadgeContext } from './context';\nimport styles from './styles.module.css';\nimport type { BadgeProps } from './types';\n\n/**\n * Small status indicator for labels, counts, and notifications.\n * Empty badges render as dot indicators.\n *\n * @param props - The badge props.\n * @param props.ref - Reference to the span element.\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.offset - Offset from positioned edge in pixels.\n * @param props.placement - Position relative to container.\n * @param props.children - Badge content (text, number, or empty for dot).\n * @returns The badge span element.\n *\n * @example\n * ```tsx\n * <Badge>New</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Color variants\n * <Badge color=\"normal\">Active</Badge>\n * <Badge color=\"advisory\">Pending</Badge>\n * <Badge color=\"critical\">Error</Badge>\n * ```\n *\n * @example\n * ```tsx\n * // Dot indicator (no children)\n * <Badge color=\"normal\" />\n * ```\n *\n * @example\n * ```tsx\n * // Positioned badge\n * <Badge placement=\"top right\" offset={designTokens.spacing.xs}>3</Badge>\n * ```\n */\nexport function Badge({ ref, ...props }: BadgeProps) {\n [props, ref] = useContextProps(props, ref ?? null, BadgeContext);\n\n const { className, color = 'info', offset, placement, ...rest } = props;\n\n return (\n <span\n {...rest}\n ref={ref}\n className={clsx('group/badge', styles.badge, className)}\n data-color={color}\n data-offset-x={typeof offset === 'number' ? offset : offset?.x}\n data-offset-y={typeof offset === 'number' ? offset : offset?.y}\n data-placement={placement || null}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,MAAM,EAAE,KAAK,GAAG,SAAqB;AACnD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,aAAa;CAEhE,MAAM,EAAE,WAAW,QAAQ,QAAQ,QAAQ,WAAW,GAAG,SAAS;AAElE,QACE,oBAAC;EACC,GAAI;EACC;EACL,WAAW,KAAK,eAAe,OAAO,OAAO,UAAU;EACvD,cAAY;EACZ,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,iBAAe,OAAO,WAAW,WAAW,SAAS,QAAQ;EAC7D,kBAAgB,aAAa;GAC7B"}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
15
|
+
import { BreadcrumbProps, BreadcrumbsProps } from "react-aria-components/Breadcrumbs";
|
|
16
16
|
|
|
17
17
|
//#region src/components/breadcrumbs/index.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
|
38
38
|
declare function Breadcrumbs({
|
|
39
39
|
children,
|
|
40
40
|
className
|
|
41
|
-
}: BreadcrumbsProps<BreadcrumbProps>):
|
|
41
|
+
}: BreadcrumbsProps<BreadcrumbProps>): react_jsx_runtime80.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Breadcrumbs };
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import "client-only";
|
|
17
17
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
18
|
-
import { Breadcrumbs as Breadcrumbs$1 } from "react-aria-components";
|
|
19
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
import { Breadcrumbs as Breadcrumbs$1 } from "react-aria-components/Breadcrumbs";
|
|
20
20
|
import styles from "./styles.module.css";
|
|
21
21
|
|
|
22
22
|
//#region src/components/breadcrumbs/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaBreadcrumbs"],"sources":["../../../src/components/breadcrumbs/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n Breadcrumbs as AriaBreadcrumbs,\n type BreadcrumbProps,\n type BreadcrumbsProps,\n} from 'react-aria-components';\nimport styles from './styles.module.css';\n\n/**\n * Breadcrumbs - Accessible breadcrumb navigation\n *\n * Displays the user's location within an application hierarchy and provides\n * links back to parent pages. The final item represents the current page.\n *\n * @param props - The breadcrumbs props.\n * @param props.children - BreadcrumbItem components representing the navigation path.\n * @param props.className - Additional CSS class names for styling.\n * @returns The breadcrumbs navigation component.\n *\n * @example\n * ```tsx\n * <Breadcrumbs>\n * <BreadcrumbItem linkProps={{ href: '/' }}>Home</BreadcrumbItem>\n * <BreadcrumbItem>Current</BreadcrumbItem>\n * </Breadcrumbs>\n * ```\n */\nexport function Breadcrumbs({\n children,\n className,\n}: BreadcrumbsProps<BreadcrumbProps>) {\n return (\n <AriaBreadcrumbs className={clsx(styles.list, className)}>\n {children}\n </AriaBreadcrumbs>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,SAAgB,YAAY,EAC1B,UACA,aACoC;AACpC,QACE,oBAACA;EAAgB,WAAW,KAAK,OAAO,MAAM,UAAU;EACrD;GACe"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaBreadcrumbs"],"sources":["../../../src/components/breadcrumbs/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n Breadcrumbs as AriaBreadcrumbs,\n type BreadcrumbProps,\n type BreadcrumbsProps,\n} from 'react-aria-components/Breadcrumbs';\nimport styles from './styles.module.css';\n\n/**\n * Breadcrumbs - Accessible breadcrumb navigation\n *\n * Displays the user's location within an application hierarchy and provides\n * links back to parent pages. The final item represents the current page.\n *\n * @param props - The breadcrumbs props.\n * @param props.children - BreadcrumbItem components representing the navigation path.\n * @param props.className - Additional CSS class names for styling.\n * @returns The breadcrumbs navigation component.\n *\n * @example\n * ```tsx\n * <Breadcrumbs>\n * <BreadcrumbItem linkProps={{ href: '/' }}>Home</BreadcrumbItem>\n * <BreadcrumbItem>Current</BreadcrumbItem>\n * </Breadcrumbs>\n * ```\n */\nexport function Breadcrumbs({\n children,\n className,\n}: BreadcrumbsProps<BreadcrumbProps>) {\n return (\n <AriaBreadcrumbs className={clsx(styles.list, className)}>\n {children}\n </AriaBreadcrumbs>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,SAAgB,YAAY,EAC1B,UACA,aACoC;AACpC,QACE,oBAACA;EAAgB,WAAW,KAAK,OAAO,MAAM,UAAU;EACrD;GACe"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { BreadcrumbItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/breadcrumbs/item.d.ts
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ declare function BreadcrumbItem({
|
|
|
43
43
|
classNames,
|
|
44
44
|
linkProps,
|
|
45
45
|
...rest
|
|
46
|
-
}: BreadcrumbItemProps):
|
|
46
|
+
}: BreadcrumbItemProps): react_jsx_runtime49.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { BreadcrumbItem };
|
|
49
49
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
import { Icon } from "../icon/index.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import {
|
|
19
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
20
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { Breadcrumb } from "react-aria-components/Breadcrumbs";
|
|
21
22
|
import styles from "./styles.module.css";
|
|
22
23
|
import ChevronRight from "@accelint/icons/chevron-right";
|
|
24
|
+
import { Link } from "react-aria-components/Link";
|
|
23
25
|
|
|
24
26
|
//#region src/components/breadcrumbs/item.tsx
|
|
25
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":[],"sources":["../../../src/components/breadcrumbs/item.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronRight from '@accelint/icons/chevron-right';\nimport { Breadcrumb
|
|
1
|
+
{"version":3,"file":"item.js","names":[],"sources":["../../../src/components/breadcrumbs/item.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronRight from '@accelint/icons/chevron-right';\nimport { Breadcrumb } from 'react-aria-components/Breadcrumbs';\nimport { Link } from 'react-aria-components/Link';\nimport { Icon } from '../icon';\nimport styles from './styles.module.css';\nimport type { BreadcrumbItemProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * Individual breadcrumb item. Renders as a link when `linkProps` is provided,\n * or as plain text for the current page.\n *\n * @param props - The breadcrumb item props.\n * @param props.children - Content to display in the breadcrumb.\n * @param props.classNames - Custom class names for sub-elements.\n * @param props.linkProps - Props for the Link component (omit for current page).\n * @returns The breadcrumb item component.\n *\n * @example\n * ```tsx\n * // Link item\n * <BreadcrumbItem linkProps={{ href: '/home' }}>Home</BreadcrumbItem>\n * ```\n *\n * @example\n * ```tsx\n * // Current page (no link)\n * <BreadcrumbItem>Current Page</BreadcrumbItem>\n * ```\n */\nexport function BreadcrumbItem({\n children,\n classNames,\n linkProps,\n ...rest\n}: BreadcrumbItemProps) {\n return (\n <Breadcrumb\n {...rest}\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/breadcrumb', styles.item, className),\n )}\n >\n {composeRenderProps(linkProps ? null : children, (itemChildren) => (\n <>\n {linkProps ? (\n <Link\n {...linkProps}\n className={composeRenderProps(classNames?.link, (className) =>\n clsx(styles.link, className),\n )}\n >\n {children}\n </Link>\n ) : (\n itemChildren\n )}\n <Icon\n aria-hidden='true'\n className={clsx(styles.separator, classNames?.separator)}\n >\n <ChevronRight />\n </Icon>\n </>\n ))}\n </Breadcrumb>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,eAAe,EAC7B,UACA,YACA,WACA,GAAG,QACmB;AACtB,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,oBAAoB,OAAO,MAAM,UAAU,CACjD;YAEA,mBAAmB,YAAY,OAAO,WAAW,iBAChD,4CACG,YACC,oBAAC;GACC,GAAI;GACJ,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,OAAO,MAAM,UAAU,CAC7B;GAEA;IACI,GAEP,cAEF,oBAAC;GACC,eAAY;GACZ,WAAW,KAAK,OAAO,WAAW,YAAY,UAAU;aAExD,oBAAC,iBAAe;IACX,IACN,CACH;GACS"}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { BreadcrumbProps
|
|
13
|
+
import { BreadcrumbProps } from "react-aria-components/Breadcrumbs";
|
|
14
|
+
import { LinkProps } from "react-aria-components/Link";
|
|
14
15
|
|
|
15
16
|
//#region src/components/breadcrumbs/types.d.ts
|
|
16
17
|
/**
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
import { Icon } from "../../icon/index.js";
|
|
17
17
|
import "client-only";
|
|
18
18
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
19
|
-
import {
|
|
19
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
20
20
|
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
import { Button } from "react-aria-components/Button";
|
|
21
22
|
import CancelFill from "@accelint/icons/cancel-fill";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
23
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clear.js","names":["className"],"sources":["../../../../src/components/button/__internal__/clear.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport CancelFill from '@accelint/icons/cancel-fill';\nimport {\n type ButtonProps as AriaButtonProps,\n Button,\n
|
|
1
|
+
{"version":3,"file":"clear.js","names":["className"],"sources":["../../../../src/components/button/__internal__/clear.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport CancelFill from '@accelint/icons/cancel-fill';\nimport {\n type ButtonProps as AriaButtonProps,\n Button,\n} from 'react-aria-components/Button';\nimport { Icon } from '../../icon';\nimport styles from './styles.module.css';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * ClearButton - Internal-only button for clearing input values\n *\n * A lightweight button component used internally by input\n * components to provide clear functionality. This component is not exported\n * from the design-toolkit package and should not be used directly by consumers.\n *\n * @internal\n */\nexport type ClearButtonProps = Readonly<\n Omit<AriaButtonProps, 'children' | 'size' | 'variant'>\n>;\n\n/**\n * @internal\n */\nexport function ClearButton({ className, ...rest }: ClearButtonProps) {\n return (\n <Button\n {...rest}\n slot={null}\n excludeFromTabOrder\n className={composeRenderProps(className, (className) =>\n clsx(styles.clearButton, className),\n )}\n >\n <Icon size='small'>\n <CancelFill />\n </Icon>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,YAAY,EAAE,WAAW,GAAG,QAA0B;AACpE,QACE,oBAAC;EACC,GAAI;EACJ,MAAM;EACN;EACA,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,aAAaA,YAAU,CACpC;YAED,oBAAC;GAAK,MAAK;aACT,oBAAC,eAAa;IACT;GACA"}
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
|
-
import { ButtonProps
|
|
14
|
+
import { ButtonProps, LinkButtonProps, ToggleButtonProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import * as react31 from "react";
|
|
17
|
+
import * as react_jsx_runtime124 from "react/jsx-runtime";
|
|
18
|
+
import { ContextValue } from "react-aria-components/slots";
|
|
19
19
|
|
|
20
20
|
//#region src/components/button/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* React context for sharing Button configuration across components.
|
|
23
23
|
*/
|
|
24
|
-
declare const ButtonContext:
|
|
24
|
+
declare const ButtonContext: react31.Context<ContextValue<ButtonProps, HTMLButtonElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* Context provider for setting default props across multiple Button components.
|
|
27
27
|
*
|
|
@@ -40,11 +40,11 @@ declare const ButtonContext: react1.Context<ContextValue<ButtonProps$1, HTMLButt
|
|
|
40
40
|
declare function ButtonProvider({
|
|
41
41
|
children,
|
|
42
42
|
...props
|
|
43
|
-
}: ProviderProps<ButtonProps
|
|
43
|
+
}: ProviderProps<ButtonProps>): react_jsx_runtime124.JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* React context for sharing LinkButton configuration across components.
|
|
46
46
|
*/
|
|
47
|
-
declare const LinkButtonContext:
|
|
47
|
+
declare const LinkButtonContext: react31.Context<ContextValue<LinkButtonProps, HTMLAnchorElement>>;
|
|
48
48
|
/**
|
|
49
49
|
* Context provider for setting default props across multiple LinkButton components.
|
|
50
50
|
*
|
|
@@ -63,11 +63,11 @@ declare const LinkButtonContext: react1.Context<ContextValue<LinkButtonProps, HT
|
|
|
63
63
|
declare function LinkButtonProvider({
|
|
64
64
|
children,
|
|
65
65
|
...props
|
|
66
|
-
}: ProviderProps<LinkButtonProps>):
|
|
66
|
+
}: ProviderProps<LinkButtonProps>): react_jsx_runtime124.JSX.Element;
|
|
67
67
|
/**
|
|
68
68
|
* React context for sharing ToggleButton configuration across components.
|
|
69
69
|
*/
|
|
70
|
-
declare const ToggleButtonContext:
|
|
70
|
+
declare const ToggleButtonContext: react31.Context<ContextValue<ToggleButtonProps, HTMLButtonElement>>;
|
|
71
71
|
/**
|
|
72
72
|
* Context provider for setting default props across multiple ToggleButton components.
|
|
73
73
|
*
|
|
@@ -86,7 +86,7 @@ declare const ToggleButtonContext: react1.Context<ContextValue<ToggleButtonProps
|
|
|
86
86
|
declare function ToggleButtonProvider({
|
|
87
87
|
children,
|
|
88
88
|
...props
|
|
89
|
-
}: ProviderProps<ToggleButtonProps
|
|
89
|
+
}: ProviderProps<ToggleButtonProps>): react_jsx_runtime124.JSX.Element;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { ButtonContext, ButtonProvider, LinkButtonContext, LinkButtonProvider, ToggleButtonContext, ToggleButtonProvider };
|
|
92
92
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/button/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ButtonProps, LinkButtonProps, ToggleButtonProps } from './types';\n\n/**\n * React context for sharing Button configuration across components.\n */\nexport const ButtonContext =\n createContext<ContextValue<ButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Button components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the button context.\n * @returns The button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ButtonProvider size=\"small\" variant=\"outline\">\n * <Button>Button 1</Button>\n * <Button>Button 2</Button>\n * </ButtonProvider>\n * ```\n */\nexport function ButtonProvider({\n children,\n ...props\n}: ProviderProps<ButtonProps>) {\n return (\n <ButtonContext.Provider value={props}>{children}</ButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing LinkButton configuration across components.\n */\nexport const LinkButtonContext =\n createContext<ContextValue<LinkButtonProps, HTMLAnchorElement>>(null);\n\n/**\n * Context provider for setting default props across multiple LinkButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the link button context.\n * @returns The link button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <LinkButtonProvider size=\"small\" variant=\"outline\">\n * <LinkButton href=\"/page1\">Link 1</LinkButton>\n * <LinkButton href=\"/page2\">Link 2</LinkButton>\n * </LinkButtonProvider>\n * ```\n */\nexport function LinkButtonProvider({\n children,\n ...props\n}: ProviderProps<LinkButtonProps>) {\n return (\n <LinkButtonContext.Provider value={props}>\n {children}\n </LinkButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing ToggleButton configuration across components.\n */\nexport const ToggleButtonContext =\n createContext<ContextValue<ToggleButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ToggleButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the toggle button context.\n * @returns The toggle button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ToggleButtonProvider size=\"small\" variant=\"flat\">\n * <ToggleButton>Toggle 1</ToggleButton>\n * <ToggleButton>Toggle 2</ToggleButton>\n * </ToggleButtonProvider>\n * ```\n */\nexport function ToggleButtonProvider({\n children,\n ...props\n}: ProviderProps<ToggleButtonProps>) {\n return (\n <ToggleButtonContext.Provider value={props}>\n {children}\n </ToggleButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,gBACX,cAA4D,KAAK;;;;;;;;;;;;;;;;AAiBnE,SAAgB,eAAe,EAC7B,UACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,cAAc;EAAS,OAAO;EAAQ;GAAkC;;;;;AAO7E,MAAa,oBACX,cAAgE,KAAK;;;;;;;;;;;;;;;;AAiBvE,SAAgB,mBAAmB,EACjC,UACA,GAAG,SAC8B;AACjC,QACE,oBAAC,kBAAkB;EAAS,OAAO;EAChC;GAC0B;;;;;AAOjC,MAAa,sBACX,cAAkE,KAAK;;;;;;;;;;;;;;;;AAiBzE,SAAgB,qBAAqB,EACnC,UACA,GAAG,SACgC;AACnC,QACE,oBAAC,oBAAoB;EAAS,OAAO;EAClC;GAC4B"}
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/button/context.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components/slots';\nimport type { ButtonProps, LinkButtonProps, ToggleButtonProps } from './types';\n\n/**\n * React context for sharing Button configuration across components.\n */\nexport const ButtonContext =\n createContext<ContextValue<ButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple Button components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the button context.\n * @returns The button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ButtonProvider size=\"small\" variant=\"outline\">\n * <Button>Button 1</Button>\n * <Button>Button 2</Button>\n * </ButtonProvider>\n * ```\n */\nexport function ButtonProvider({\n children,\n ...props\n}: ProviderProps<ButtonProps>) {\n return (\n <ButtonContext.Provider value={props}>{children}</ButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing LinkButton configuration across components.\n */\nexport const LinkButtonContext =\n createContext<ContextValue<LinkButtonProps, HTMLAnchorElement>>(null);\n\n/**\n * Context provider for setting default props across multiple LinkButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the link button context.\n * @returns The link button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <LinkButtonProvider size=\"small\" variant=\"outline\">\n * <LinkButton href=\"/page1\">Link 1</LinkButton>\n * <LinkButton href=\"/page2\">Link 2</LinkButton>\n * </LinkButtonProvider>\n * ```\n */\nexport function LinkButtonProvider({\n children,\n ...props\n}: ProviderProps<LinkButtonProps>) {\n return (\n <LinkButtonContext.Provider value={props}>\n {children}\n </LinkButtonContext.Provider>\n );\n}\n\n/**\n * React context for sharing ToggleButton configuration across components.\n */\nexport const ToggleButtonContext =\n createContext<ContextValue<ToggleButtonProps, HTMLButtonElement>>(null);\n\n/**\n * Context provider for setting default props across multiple ToggleButton components.\n *\n * @param props - The provider props.\n * @param props.children - Child components that will receive the toggle button context.\n * @returns The toggle button context provider wrapping children.\n *\n * @example\n * ```tsx\n * <ToggleButtonProvider size=\"small\" variant=\"flat\">\n * <ToggleButton>Toggle 1</ToggleButton>\n * <ToggleButton>Toggle 2</ToggleButton>\n * </ToggleButtonProvider>\n * ```\n */\nexport function ToggleButtonProvider({\n children,\n ...props\n}: ProviderProps<ToggleButtonProps>) {\n return (\n <ToggleButtonContext.Provider value={props}>\n {children}\n </ToggleButtonContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,gBACX,cAA4D,KAAK;;;;;;;;;;;;;;;;AAiBnE,SAAgB,eAAe,EAC7B,UACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,cAAc;EAAS,OAAO;EAAQ;GAAkC;;;;;AAO7E,MAAa,oBACX,cAAgE,KAAK;;;;;;;;;;;;;;;;AAiBvE,SAAgB,mBAAmB,EACjC,UACA,GAAG,SAC8B;AACjC,QACE,oBAAC,kBAAkB;EAAS,OAAO;EAChC;GAC0B;;;;;AAOjC,MAAa,sBACX,cAAkE,KAAK;;;;;;;;;;;;;;;;AAiBzE,SAAgB,qBAAqB,EACnC,UACA,GAAG,SACgC;AACnC,QACE,oBAAC,oBAAoB;EAAS,OAAO;EAClC;GAC4B"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/button/index.d.ts
|
|
18
18
|
|
|
@@ -72,7 +72,7 @@ import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
|
72
72
|
declare function Button({
|
|
73
73
|
ref,
|
|
74
74
|
...props
|
|
75
|
-
}: ButtonProps):
|
|
75
|
+
}: ButtonProps): react_jsx_runtime40.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { Button };
|
|
78
78
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,8 +17,10 @@ import { ButtonContext } from "./context.js";
|
|
|
17
17
|
import { IconProvider } from "../icon/context.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
-
import {
|
|
20
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
23
|
+
import { Button as Button$1 } from "react-aria-components/Button";
|
|
22
24
|
import styles from "./styles.module.css";
|
|
23
25
|
|
|
24
26
|
//#region src/components/button/index.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaButton","className"],"sources":["../../../src/components/button/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaButton","className"],"sources":["../../../src/components/button/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Button as AriaButton } from 'react-aria-components/Button';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { IconProvider } from '../icon/context';\nimport { ButtonContext } from './context';\nimport styles from './styles.module.css';\nimport type { ButtonProps } from './types';\n\n/**\n * Button - A versatile interactive button component with multiple variants\n *\n * Provides accessible button functionality with support for different visual styles,\n * sizes, and interactive states. Includes icon support and integrates with React Aria\n * for keyboard navigation and accessibility features.\n *\n * @param props - The button props.\n * @param props.ref - Reference to the button element.\n * @param props.children - Button content (text, icons, or both).\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the button.\n * @param props.variant - Visual style variant.\n * @returns The button component.\n *\n * @example\n * ```tsx\n * // Basic button\n * <Button>Click me</Button>\n * ```\n *\n * @example\n * ```tsx\n * // Primary button with different sizes\n * <Button variant=\"filled\" size=\"large\">Large Filled</Button>\n * <Button variant=\"outline\" size=\"small\">Small Outline</Button>\n * ```\n *\n * @example\n * ```tsx\n * // Button with icon\n * <Button variant=\"flat\">\n * <Icon><Plus /></Icon>\n * Add Item\n * </Button>\n * ```\n *\n * @example\n * ```tsx\n * // Icon-only button\n * <Button variant=\"icon\">\n * <Icon><Settings /></Icon>\n * </Button>\n * ```\n *\n * @example\n * ```tsx\n * // Button with different colors\n * <Button color=\"critical\">Critical Button</Button>\n * <Button color=\"serious\">Delete</Button>\n * ```\n */\nexport function Button({ ref, ...props }: ButtonProps) {\n [props, ref] = useContextProps(props, ref ?? null, ButtonContext);\n\n const {\n children,\n className,\n color = 'mono-muted',\n size = 'medium',\n variant = 'filled',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size}>\n <AriaButton\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/button', styles.button, styles[variant], className),\n )}\n data-color={color}\n data-size={size}\n >\n {children}\n </AriaButton>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EA,SAAgB,OAAO,EAAE,KAAK,GAAG,SAAsB;AACrD,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,cAAc;CAEjE,MAAM,EACJ,UACA,WACA,QAAQ,cACR,OAAO,UACP,UAAU,UACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAmB;YAClB,oBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,gBAAgB,OAAO,QAAQ,OAAO,UAAUC,YAAU,CAChE;GACD,cAAY;GACZ,aAAW;GAEV;IACU;GACA"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { LinkButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/button/link.d.ts
|
|
18
18
|
|
|
@@ -73,7 +73,7 @@ import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
|
73
73
|
declare function LinkButton({
|
|
74
74
|
ref,
|
|
75
75
|
...props
|
|
76
|
-
}: LinkButtonProps):
|
|
76
|
+
}: LinkButtonProps): react_jsx_runtime8.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { LinkButton };
|
|
79
79
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -17,9 +17,11 @@ import { LinkButtonContext } from "./context.js";
|
|
|
17
17
|
import { IconProvider } from "../icon/context.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
-
import {
|
|
20
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
24
|
+
import { Link } from "react-aria-components/Link";
|
|
23
25
|
|
|
24
26
|
//#region src/components/button/link.tsx
|
|
25
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","names":["className"],"sources":["../../../src/components/button/link.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"link.js","names":["className"],"sources":["../../../src/components/button/link.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\nimport { Link } from 'react-aria-components/Link';\nimport { IconProvider } from '../icon/context';\nimport { LinkButtonContext } from './context';\nimport styles from './styles.module.css';\nimport type { LinkButtonProps } from './types';\n\n/**\n * LinkButton - A button component that renders as a link element\n *\n * Provides accessible link functionality with button-like styling and visual feedback.\n * Perfect for navigation actions that should look like buttons but behave as links.\n * Includes icon support and integrates with React Aria for keyboard navigation and accessibility.\n *\n * @param props - The link button props.\n * @param props.ref - Reference to the anchor element.\n * @param props.children - Link button content (text, icons, or both).\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the link button.\n * @param props.variant - Visual style variant.\n * @param props.href - Navigation destination URL.\n * @returns The link button component.\n *\n * @example\n * ```tsx\n * // Basic link button\n * <LinkButton href=\"/dashboard\">Go to Dashboard</LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Link button with different variants and sizes\n * <LinkButton variant=\"filled\" size=\"large\" href=\"/create\">Create New</LinkButton>\n * <LinkButton variant=\"outline\" size=\"small\" href=\"/settings\">Settings</LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Link button with icon\n * <LinkButton variant=\"flat\" href=\"/profile\">\n * <Icon><User /></Icon>\n * View Profile\n * </LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Icon-only link button\n * <LinkButton variant=\"icon\" href=\"/help\">\n * <Icon><HelpCircle /></Icon>\n * </LinkButton>\n * ```\n *\n * @example\n * ```tsx\n * // Link button with different colors\n * <LinkButton color=\"critical\" href=\"/delete\">Delete Account</LinkButton>\n * <LinkButton color=\"serious\" href=\"/reset\">Reset Data</LinkButton>\n * ```\n */\nexport function LinkButton({ ref, ...props }: LinkButtonProps) {\n [props, ref] = useContextProps(props, ref ?? null, LinkButtonContext);\n\n const {\n children,\n className,\n color = 'mono-muted',\n size = 'medium',\n variant = 'filled',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size}>\n <Link\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/button', styles.button, styles[variant], className),\n )}\n data-color={color}\n data-size={size}\n >\n {children}\n </Link>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,SAAgB,WAAW,EAAE,KAAK,GAAG,SAA0B;AAC7D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,kBAAkB;CAErE,MAAM,EACJ,UACA,WACA,QAAQ,cACR,OAAO,UACP,UAAU,UACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAmB;YAClB,oBAAC;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,gBAAgB,OAAO,QAAQ,OAAO,UAAUA,YAAU,CAChE;GACD,cAAY;GACZ,aAAW;GAEV;IACI;GACM"}
|
|
@@ -16,6 +16,14 @@
|
|
|
16
16
|
.button {
|
|
17
17
|
@apply rounded-medium flex w-fit shrink-0 cursor-pointer items-center justify-center outline outline-transparent select-none;
|
|
18
18
|
|
|
19
|
+
@variant motion-safe {
|
|
20
|
+
transition:
|
|
21
|
+
background-color var(--animation-duration-normal)
|
|
22
|
+
var(--animation-easing-standard),
|
|
23
|
+
outline-color var(--animation-duration-normal)
|
|
24
|
+
var(--animation-easing-standard);
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
@variant size-large {
|
|
20
28
|
@apply gap-xs px-l py-s text-button-l;
|
|
21
29
|
min-width: 96px;
|
|
@@ -404,6 +412,14 @@
|
|
|
404
412
|
}
|
|
405
413
|
|
|
406
414
|
.toggle {
|
|
415
|
+
@variant motion-safe {
|
|
416
|
+
transition:
|
|
417
|
+
background-color var(--animation-duration-normal)
|
|
418
|
+
var(--animation-easing-standard),
|
|
419
|
+
outline-color var(--animation-duration-normal)
|
|
420
|
+
var(--animation-easing-standard);
|
|
421
|
+
}
|
|
422
|
+
|
|
407
423
|
&.flat {
|
|
408
424
|
@variant color-mono-muted {
|
|
409
425
|
@apply fg-primary-muted bg-transparent;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ToggleButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/button/toggle.d.ts
|
|
18
18
|
|
|
@@ -76,7 +76,7 @@ import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
|
76
76
|
declare function ToggleButton({
|
|
77
77
|
ref,
|
|
78
78
|
...props
|
|
79
|
-
}: ToggleButtonProps):
|
|
79
|
+
}: ToggleButtonProps): react_jsx_runtime10.JSX.Element;
|
|
80
80
|
//#endregion
|
|
81
81
|
export { ToggleButton };
|
|
82
82
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -17,9 +17,11 @@ import { ToggleButtonContext } from "./context.js";
|
|
|
17
17
|
import { IconProvider } from "../icon/context.js";
|
|
18
18
|
import "client-only";
|
|
19
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
20
|
-
import {
|
|
20
|
+
import { composeRenderProps } from "react-aria-components/composeRenderProps";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useContextProps } from "react-aria-components/slots";
|
|
22
23
|
import styles from "./styles.module.css";
|
|
24
|
+
import { ToggleButton as ToggleButton$1 } from "react-aria-components/ToggleButton";
|
|
23
25
|
|
|
24
26
|
//#region src/components/button/toggle.tsx
|
|
25
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","names":["AriaToggleButton","className"],"sources":["../../../src/components/button/toggle.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {
|
|
1
|
+
{"version":3,"file":"toggle.js","names":["AriaToggleButton","className"],"sources":["../../../src/components/button/toggle.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { ToggleButton as AriaToggleButton } from 'react-aria-components/ToggleButton';\nimport { IconProvider } from '../icon/context';\nimport { ToggleButtonContext } from './context';\nimport styles from './styles.module.css';\nimport type { ToggleButtonProps } from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\nimport { useContextProps } from 'react-aria-components/slots';\n\n/**\n * ToggleButton - A button component that maintains pressed/unpressed state\n *\n * Provides accessible toggle functionality with visual feedback for the current state.\n * Perfect for features like favorites, bookmarks, switches, or any binary state controls.\n * Includes icon support and integrates with React Aria for keyboard navigation and accessibility.\n *\n * @param props - The toggle button props.\n * @param props.ref - Reference to the button element.\n * @param props.children - Toggle button content (text, icons, or both).\n * @param props.className - Additional CSS class names for styling.\n * @param props.color - Semantic color variant.\n * @param props.size - Size of the toggle button.\n * @param props.variant - Visual style variant (filled not available).\n * @param props.isSelected - Whether the toggle is currently selected.\n * @param props.onChange - Callback when the toggle state changes.\n * @returns The toggle button component.\n *\n * @example\n * ```tsx\n * // Basic toggle button\n * <ToggleButton>Toggle Feature</ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Controlled toggle button with different variants\n * <ToggleButton variant=\"flat\" isSelected={isEnabled} onChange={setIsEnabled}>\n * Enable Notifications\n * </ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Toggle button with icon and state\n * <ToggleButton variant=\"outline\" isSelected={isFavorite} onChange={setIsFavorite}>\n * <Icon><Heart /></Icon>\n * {isFavorite ? 'Favorite' : 'Add to Favorites'}\n * </ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Icon-only toggle button\n * <ToggleButton variant=\"icon\" isSelected={isBookmarked} onChange={setIsBookmarked}>\n * <Icon><Bookmark /></Icon>\n * </ToggleButton>\n * ```\n *\n * @example\n * ```tsx\n * // Toggle button with different colors and sizes\n * <ToggleButton color=\"critical\" size=\"small\" isSelected={isEnabled}>\n * Critical Toggle\n * </ToggleButton>\n * ```\n */\nexport function ToggleButton({ ref, ...props }: ToggleButtonProps) {\n [props, ref] = useContextProps(props, ref ?? null, ToggleButtonContext);\n\n const {\n children,\n className,\n color = 'mono-muted',\n size = 'medium',\n variant = 'flat',\n ...rest\n } = props;\n\n return (\n <IconProvider size={size}>\n <AriaToggleButton\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx(\n 'group/button',\n styles.button,\n styles.toggle,\n styles[variant],\n className,\n ),\n )}\n data-color={color}\n data-size={size}\n >\n {children}\n </AriaToggleButton>\n </IconProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAAgB,aAAa,EAAE,KAAK,GAAG,SAA4B;AACjE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,oBAAoB;CAEvE,MAAM,EACJ,UACA,WACA,QAAQ,cACR,OAAO,UACP,UAAU,QACV,GAAG,SACD;AAEJ,QACE,oBAAC;EAAmB;YAClB,oBAACA;GACC,GAAI;GACC;GACL,WAAW,mBAAmB,YAAY,gBACxC,KACE,gBACA,OAAO,QACP,OAAO,QACP,OAAO,UACPC,YACD,CACF;GACD,cAAY;GACZ,aAAW;GAEV;IACgB;GACN"}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { AriaAttributesWithRef } from "../../lib/types.js";
|
|
14
|
-
import { ButtonProps as ButtonProps$1
|
|
14
|
+
import { ButtonProps as ButtonProps$1 } from "react-aria-components/Button";
|
|
15
|
+
import { LinkProps } from "react-aria-components/Link";
|
|
16
|
+
import { ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components/ToggleButton";
|
|
15
17
|
|
|
16
18
|
//#region src/components/button/types.d.ts
|
|
17
19
|
type Variants = 'filled' | 'flat' | 'icon' | 'outline';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ProviderProps } from "../../lib/types.js";
|
|
14
|
+
import { CarouselProps } from "./types.js";
|
|
15
|
+
import "client-only";
|
|
16
|
+
import * as react3 from "react";
|
|
17
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
18
|
+
|
|
19
|
+
//#region src/components/carousel/context.d.ts
|
|
20
|
+
/** React context providing carousel state to sub-components. */
|
|
21
|
+
declare const CarouselContext: react3.Context<CarouselProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Provides carousel state to child components via CarouselContext.
|
|
24
|
+
*
|
|
25
|
+
* @param props - The provider props.
|
|
26
|
+
* @param props.children - Child components that consume carousel context.
|
|
27
|
+
* @param props.items - The carousel data items.
|
|
28
|
+
* @param props.currentPosition - Zero-based index of the active item.
|
|
29
|
+
* @param props.setCurrentPosition - Callback to update the active item.
|
|
30
|
+
* @returns The context provider wrapping children.
|
|
31
|
+
*/
|
|
32
|
+
declare function CarouselProvider({
|
|
33
|
+
children,
|
|
34
|
+
items,
|
|
35
|
+
currentPosition,
|
|
36
|
+
setCurrentPosition
|
|
37
|
+
}: ProviderProps<CarouselProps>): react_jsx_runtime18.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { CarouselContext, CarouselProvider };
|
|
40
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import "client-only";
|
|
17
|
+
import { createContext, useMemo } from "react";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
|
|
20
|
+
//#region src/components/carousel/context.tsx
|
|
21
|
+
/** React context providing carousel state to sub-components. */
|
|
22
|
+
const CarouselContext = createContext({
|
|
23
|
+
currentPosition: 0,
|
|
24
|
+
items: [],
|
|
25
|
+
setCurrentPosition: () => void 0
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Provides carousel state to child components via CarouselContext.
|
|
29
|
+
*
|
|
30
|
+
* @param props - The provider props.
|
|
31
|
+
* @param props.children - Child components that consume carousel context.
|
|
32
|
+
* @param props.items - The carousel data items.
|
|
33
|
+
* @param props.currentPosition - Zero-based index of the active item.
|
|
34
|
+
* @param props.setCurrentPosition - Callback to update the active item.
|
|
35
|
+
* @returns The context provider wrapping children.
|
|
36
|
+
*/
|
|
37
|
+
function CarouselProvider({ children, items, currentPosition, setCurrentPosition }) {
|
|
38
|
+
const value = useMemo(() => ({
|
|
39
|
+
currentPosition,
|
|
40
|
+
items,
|
|
41
|
+
setCurrentPosition
|
|
42
|
+
}), [
|
|
43
|
+
currentPosition,
|
|
44
|
+
items,
|
|
45
|
+
setCurrentPosition
|
|
46
|
+
]);
|
|
47
|
+
return /* @__PURE__ */ jsx(CarouselContext.Provider, {
|
|
48
|
+
value,
|
|
49
|
+
children
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { CarouselContext, CarouselProvider };
|
|
55
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/carousel/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\n'use client';\n\nimport 'client-only';\nimport { createContext, useMemo } from 'react';\nimport type { ProviderProps } from '@/lib/types';\nimport type { CarouselProps } from './types';\n\n/** React context providing carousel state to sub-components. */\nexport const CarouselContext = createContext<CarouselProps>({\n currentPosition: 0,\n items: [],\n setCurrentPosition: () => undefined,\n});\n\n/**\n * Provides carousel state to child components via CarouselContext.\n *\n * @param props - The provider props.\n * @param props.children - Child components that consume carousel context.\n * @param props.items - The carousel data items.\n * @param props.currentPosition - Zero-based index of the active item.\n * @param props.setCurrentPosition - Callback to update the active item.\n * @returns The context provider wrapping children.\n */\nexport function CarouselProvider({\n children,\n items,\n currentPosition,\n setCurrentPosition,\n}: ProviderProps<CarouselProps>) {\n const value = useMemo(\n () => ({ currentPosition, items, setCurrentPosition }),\n [currentPosition, items, setCurrentPosition],\n );\n\n return (\n <CarouselContext.Provider value={value}>\n {children}\n </CarouselContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,kBAAkB,cAA6B;CAC1D,iBAAiB;CACjB,OAAO,EAAE;CACT,0BAA0B;CAC3B,CAAC;;;;;;;;;;;AAYF,SAAgB,iBAAiB,EAC/B,UACA,OACA,iBACA,sBAC+B;CAC/B,MAAM,QAAQ,eACL;EAAE;EAAiB;EAAO;EAAoB,GACrD;EAAC;EAAiB;EAAO;EAAmB,CAC7C;AAED,QACE,oBAAC,gBAAgB;EAAgB;EAC9B;GACwB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { CarouselGalleryProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/carousel/gallery.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* Renders a horizontally-scrolling strip of thumbnail buttons for carousel navigation.
|
|
20
|
+
*
|
|
21
|
+
* Automatically scrolls to keep the selected thumbnail visible. Clicking a
|
|
22
|
+
* thumbnail navigates the carousel to that item. Note that it relies on the <Carousel/>
|
|
23
|
+
* component to supply context and must be used as a child of that component.
|
|
24
|
+
*
|
|
25
|
+
* @param props - The gallery props.
|
|
26
|
+
* @param props.classNames - Custom class names for gallery elements.
|
|
27
|
+
* @param props.classNames.container - Class name for the gallery container.
|
|
28
|
+
* @param props.classNames.item - Class name for individual gallery items.
|
|
29
|
+
* @returns The carousel gallery component.
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare function CarouselGallery({
|
|
33
|
+
classNames,
|
|
34
|
+
...rest
|
|
35
|
+
}: CarouselGalleryProps): react_jsx_runtime13.JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { CarouselGallery };
|
|
38
|
+
//# sourceMappingURL=gallery.d.ts.map
|