@accelint/design-toolkit 9.3.0 → 9.4.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 +1 -1
- package/dist/components/accordion/context.d.ts +6 -0
- package/dist/components/accordion/context.js +6 -0
- package/dist/components/accordion/context.js.map +1 -1
- package/dist/components/accordion/group.d.ts +37 -2
- package/dist/components/accordion/group.js +34 -0
- package/dist/components/accordion/group.js.map +1 -1
- package/dist/components/accordion/header.d.ts +27 -2
- package/dist/components/accordion/header.js +25 -1
- package/dist/components/accordion/header.js.map +1 -1
- package/dist/components/accordion/index.d.ts +18 -4
- package/dist/components/accordion/index.js +16 -2
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/accordion/panel.d.ts +29 -2
- package/dist/components/accordion/panel.js +26 -0
- package/dist/components/accordion/panel.js.map +1 -1
- package/dist/components/accordion/trigger.d.ts +25 -2
- package/dist/components/accordion/trigger.js +23 -1
- package/dist/components/accordion/trigger.js.map +1 -1
- package/dist/components/accordion/types.d.ts +33 -0
- package/dist/components/action-bar/index.d.ts +29 -8
- package/dist/components/action-bar/index.js +27 -6
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/action-bar/types.d.ts +7 -0
- package/dist/components/avatar/context.d.ts +22 -4
- package/dist/components/avatar/context.js +18 -0
- package/dist/components/avatar/context.js.map +1 -1
- package/dist/components/avatar/index.d.ts +22 -15
- package/dist/components/avatar/index.js +21 -14
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/avatar/types.d.ts +13 -0
- package/dist/components/badge/context.d.ts +20 -2
- package/dist/components/badge/context.js +18 -0
- package/dist/components/badge/context.js.map +1 -1
- package/dist/components/badge/index.d.ts +28 -14
- package/dist/components/badge/index.js +28 -14
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/badge/types.d.ts +9 -0
- package/dist/components/breadcrumbs/index.d.ts +8 -0
- package/dist/components/breadcrumbs/index.js +7 -0
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/breadcrumbs/item.d.ts +23 -0
- package/dist/components/breadcrumbs/item.js +23 -1
- package/dist/components/breadcrumbs/item.js.map +1 -1
- package/dist/components/breadcrumbs/types.d.ts +17 -0
- package/dist/components/button/context.d.ts +62 -8
- package/dist/components/button/context.js +54 -0
- package/dist/components/button/context.js.map +1 -1
- package/dist/components/button/index.d.ts +21 -2
- package/dist/components/button/index.js +19 -0
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button/link.d.ts +20 -0
- package/dist/components/button/link.js +20 -0
- package/dist/components/button/link.js.map +1 -1
- package/dist/components/button/toggle.d.ts +23 -2
- package/dist/components/button/toggle.js +22 -1
- package/dist/components/button/toggle.js.map +1 -1
- package/dist/components/button/types.d.ts +26 -0
- package/dist/components/checkbox/context.d.ts +9 -3
- package/dist/components/checkbox/context.js +6 -0
- package/dist/components/checkbox/context.js.map +1 -1
- package/dist/components/checkbox/group.d.ts +31 -2
- package/dist/components/checkbox/group.js +28 -0
- package/dist/components/checkbox/group.js.map +1 -1
- package/dist/components/checkbox/index.d.ts +19 -2
- package/dist/components/checkbox/index.js +19 -1
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/types.d.ts +19 -0
- package/dist/components/chip/context.d.ts +22 -4
- package/dist/components/chip/context.js +18 -0
- package/dist/components/chip/context.js.map +1 -1
- package/dist/components/chip/deletable.d.ts +38 -2
- package/dist/components/chip/deletable.js +36 -1
- package/dist/components/chip/deletable.js.map +1 -1
- package/dist/components/chip/index.d.ts +24 -2
- package/dist/components/chip/index.js +22 -0
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/chip/list.d.ts +47 -2
- package/dist/components/chip/list.js +45 -0
- package/dist/components/chip/list.js.map +1 -1
- package/dist/components/chip/selectable.d.ts +32 -0
- package/dist/components/chip/selectable.js +31 -0
- package/dist/components/chip/selectable.js.map +1 -1
- package/dist/components/chip/types.d.ts +27 -0
- package/dist/components/classification-badge/context.d.ts +18 -2
- package/dist/components/classification-badge/context.js +16 -0
- package/dist/components/classification-badge/context.js.map +1 -1
- package/dist/components/classification-badge/index.d.ts +26 -8
- package/dist/components/classification-badge/index.js +25 -8
- package/dist/components/classification-badge/index.js.map +1 -1
- package/dist/components/classification-badge/types.d.ts +4 -0
- package/dist/components/classification-banner/context.d.ts +20 -4
- package/dist/components/classification-banner/context.js +16 -0
- package/dist/components/classification-banner/context.js.map +1 -1
- package/dist/components/classification-banner/index.d.ts +12 -2
- package/dist/components/classification-banner/index.js +9 -0
- package/dist/components/classification-banner/index.js.map +1 -1
- package/dist/components/classification-banner/types.d.ts +4 -0
- package/dist/components/clock/index.d.ts +12 -2
- package/dist/components/clock/index.js +10 -0
- package/dist/components/clock/index.js.map +1 -1
- package/dist/components/clock/types.d.ts +4 -0
- package/dist/components/color-picker/index.d.ts +12 -10
- package/dist/components/color-picker/index.js +10 -8
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/types.d.ts +8 -0
- package/dist/components/combobox-field/context.d.ts +20 -4
- package/dist/components/combobox-field/context.js +16 -0
- package/dist/components/combobox-field/context.js.map +1 -1
- package/dist/components/combobox-field/index.d.ts +15 -2
- package/dist/components/combobox-field/index.js +13 -1
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/types.d.ts +19 -0
- package/dist/components/coordinate-field/context.d.ts +15 -6
- package/dist/components/coordinate-field/context.js +9 -0
- package/dist/components/coordinate-field/context.js.map +1 -1
- package/dist/components/coordinate-field/coordinate-utils.d.ts +8 -0
- package/dist/components/coordinate-field/coordinate-utils.js +8 -0
- package/dist/components/coordinate-field/coordinate-utils.js.map +1 -1
- package/dist/components/coordinate-field/index.d.ts +29 -2
- package/dist/components/coordinate-field/index.js +29 -3
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +27 -2
- package/dist/components/coordinate-field/segment.js +25 -0
- package/dist/components/coordinate-field/segment.js.map +1 -1
- package/dist/components/coordinate-field/styles.module.css +5 -1
- package/dist/components/date-field/index.d.ts +27 -2
- package/dist/components/date-field/index.js +25 -0
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-field/types.d.ts +19 -3
- package/dist/components/deferred-collection/index.d.ts +10 -2
- package/dist/components/deferred-collection/index.js +8 -0
- package/dist/components/deferred-collection/index.js.map +1 -1
- package/dist/components/deferred-collection/types.d.ts +6 -3
- package/dist/components/details-list/context.d.ts +25 -4
- package/dist/components/details-list/context.js +21 -0
- package/dist/components/details-list/context.js.map +1 -1
- package/dist/components/details-list/index.d.ts +9 -2
- package/dist/components/details-list/index.js +7 -0
- package/dist/components/details-list/index.js.map +1 -1
- package/dist/components/details-list/label.d.ts +18 -2
- package/dist/components/details-list/label.js +16 -0
- package/dist/components/details-list/label.js.map +1 -1
- package/dist/components/details-list/types.d.ts +14 -0
- package/dist/components/details-list/value.d.ts +20 -2
- package/dist/components/details-list/value.js +17 -0
- package/dist/components/details-list/value.js.map +1 -1
- package/dist/components/dialog/content.d.ts +23 -2
- package/dist/components/dialog/content.js +20 -0
- package/dist/components/dialog/content.js.map +1 -1
- package/dist/components/dialog/context.d.ts +5 -2
- package/dist/components/dialog/context.js +3 -0
- package/dist/components/dialog/context.js.map +1 -1
- package/dist/components/dialog/footer.d.ts +26 -2
- package/dist/components/dialog/footer.js +23 -0
- package/dist/components/dialog/footer.js.map +1 -1
- package/dist/components/dialog/index.d.ts +12 -2
- package/dist/components/dialog/index.js +10 -0
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/title.d.ts +21 -2
- package/dist/components/dialog/title.js +18 -0
- package/dist/components/dialog/title.js.map +1 -1
- package/dist/components/dialog/trigger.d.ts +18 -0
- package/dist/components/dialog/trigger.js +17 -0
- package/dist/components/dialog/trigger.js.map +1 -1
- package/dist/components/dialog/types.d.ts +12 -0
- package/dist/components/divider/context.d.ts +24 -4
- package/dist/components/divider/context.js +20 -0
- package/dist/components/divider/context.js.map +1 -1
- package/dist/components/divider/index.d.ts +13 -2
- package/dist/components/divider/index.js +10 -0
- package/dist/components/divider/index.js.map +1 -1
- package/dist/components/divider/types.d.ts +4 -4
- package/dist/components/drawer/back.d.ts +21 -2
- package/dist/components/drawer/back.js +19 -1
- package/dist/components/drawer/back.js.map +1 -1
- package/dist/components/drawer/close.d.ts +25 -2
- package/dist/components/drawer/close.js +28 -3
- package/dist/components/drawer/close.js.map +1 -1
- package/dist/components/drawer/content.d.ts +22 -2
- package/dist/components/drawer/content.js +19 -0
- package/dist/components/drawer/content.js.map +1 -1
- package/dist/components/drawer/context.d.ts +46 -4
- package/dist/components/drawer/context.js +45 -2
- package/dist/components/drawer/context.js.map +1 -1
- package/dist/components/drawer/events.d.ts +2 -0
- package/dist/components/drawer/events.js +2 -0
- package/dist/components/drawer/events.js.map +1 -1
- package/dist/components/drawer/footer.d.ts +24 -2
- package/dist/components/drawer/footer.js +21 -0
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header-title.d.ts +22 -4
- package/dist/components/drawer/header-title.js +19 -2
- package/dist/components/drawer/header-title.js.map +1 -1
- package/dist/components/drawer/header.d.ts +34 -2
- package/dist/components/drawer/header.js +42 -2
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer/index.d.ts +14 -2
- package/dist/components/drawer/index.js +16 -0
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/drawer/layout-main.d.ts +23 -2
- package/dist/components/drawer/layout-main.js +20 -0
- package/dist/components/drawer/layout-main.js.map +1 -1
- package/dist/components/drawer/layout.d.ts +25 -2
- package/dist/components/drawer/layout.js +22 -0
- package/dist/components/drawer/layout.js.map +1 -1
- package/dist/components/drawer/menu-item.d.ts +25 -2
- package/dist/components/drawer/menu-item.js +22 -0
- package/dist/components/drawer/menu-item.js.map +1 -1
- package/dist/components/drawer/menu.d.ts +22 -2
- package/dist/components/drawer/menu.js +19 -0
- package/dist/components/drawer/menu.js.map +1 -1
- package/dist/components/drawer/panel.d.ts +21 -2
- package/dist/components/drawer/panel.js +18 -0
- package/dist/components/drawer/panel.js.map +1 -1
- package/dist/components/drawer/trigger.d.ts +31 -2
- package/dist/components/drawer/trigger.js +29 -1
- package/dist/components/drawer/trigger.js.map +1 -1
- package/dist/components/drawer/types.d.ts +149 -2
- package/dist/components/drawer/view.d.ts +25 -2
- package/dist/components/drawer/view.js +22 -0
- package/dist/components/drawer/view.js.map +1 -1
- package/dist/components/flashcard/index.d.ts +129 -27
- package/dist/components/flashcard/index.js +120 -18
- package/dist/components/flashcard/index.js.map +1 -1
- package/dist/components/flashcard/styles.module.css +1 -1
- package/dist/components/flashcard/types.d.ts +12 -0
- package/dist/components/hero/context.d.ts +5 -2
- package/dist/components/hero/context.js +3 -0
- package/dist/components/hero/context.js.map +1 -1
- package/dist/components/hero/index.d.ts +9 -2
- package/dist/components/hero/index.js +7 -0
- package/dist/components/hero/index.js.map +1 -1
- package/dist/components/hero/subtitle.d.ts +17 -2
- package/dist/components/hero/subtitle.js +15 -0
- package/dist/components/hero/subtitle.js.map +1 -1
- package/dist/components/hero/title.d.ts +15 -2
- package/dist/components/hero/title.js +13 -0
- package/dist/components/hero/title.js.map +1 -1
- package/dist/components/hero/types.d.ts +9 -0
- package/dist/components/hotkey/context.d.ts +24 -4
- package/dist/components/hotkey/context.js +20 -0
- package/dist/components/hotkey/context.js.map +1 -1
- package/dist/components/hotkey/index.d.ts +17 -2
- package/dist/components/hotkey/index.js +15 -0
- package/dist/components/hotkey/index.js.map +1 -1
- package/dist/components/hotkey/set.d.ts +21 -2
- package/dist/components/hotkey/set.js +18 -0
- package/dist/components/hotkey/set.js.map +1 -1
- package/dist/components/hotkey/types.d.ts +4 -0
- package/dist/components/icon/context.d.ts +24 -4
- package/dist/components/icon/context.js +20 -0
- package/dist/components/icon/context.js.map +1 -1
- package/dist/components/icon/index.d.ts +15 -2
- package/dist/components/icon/index.js +13 -0
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/icon/types.d.ts +4 -0
- package/dist/components/input/context.d.ts +4 -0
- package/dist/components/input/context.js +4 -0
- package/dist/components/input/context.js.map +1 -1
- package/dist/components/input/index.d.ts +17 -2
- package/dist/components/input/index.js +16 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/types.d.ts +16 -0
- package/dist/components/kanban/card-body.d.ts +10 -2
- package/dist/components/kanban/card-body.js +8 -0
- package/dist/components/kanban/card-body.js.map +1 -1
- package/dist/components/kanban/card-header-actions.d.ts +10 -2
- package/dist/components/kanban/card-header-actions.js +8 -0
- package/dist/components/kanban/card-header-actions.js.map +1 -1
- package/dist/components/kanban/card-header-title.d.ts +10 -2
- package/dist/components/kanban/card-header-title.js +8 -0
- package/dist/components/kanban/card-header-title.js.map +1 -1
- package/dist/components/kanban/card-header.d.ts +12 -2
- package/dist/components/kanban/card-header.js +10 -0
- package/dist/components/kanban/card-header.js.map +1 -1
- package/dist/components/kanban/card.d.ts +26 -2
- package/dist/components/kanban/card.js +23 -0
- package/dist/components/kanban/card.js.map +1 -1
- package/dist/components/kanban/column-actions.d.ts +10 -2
- package/dist/components/kanban/column-actions.js +9 -1
- package/dist/components/kanban/column-actions.js.map +1 -1
- package/dist/components/kanban/column-container.d.ts +10 -2
- package/dist/components/kanban/column-container.js +8 -0
- package/dist/components/kanban/column-container.js.map +1 -1
- package/dist/components/kanban/column-content.d.ts +13 -2
- package/dist/components/kanban/column-content.js +11 -0
- package/dist/components/kanban/column-content.js.map +1 -1
- package/dist/components/kanban/column-header-actions.d.ts +13 -2
- package/dist/components/kanban/column-header-actions.js +11 -0
- package/dist/components/kanban/column-header-actions.js.map +1 -1
- package/dist/components/kanban/column-header-drag-handle.d.ts +7 -2
- package/dist/components/kanban/column-header-drag-handle.js +6 -1
- package/dist/components/kanban/column-header-drag-handle.js.map +1 -1
- package/dist/components/kanban/column-header-title.d.ts +10 -2
- package/dist/components/kanban/column-header-title.js +8 -0
- package/dist/components/kanban/column-header-title.js.map +1 -1
- package/dist/components/kanban/column-header.d.ts +12 -2
- package/dist/components/kanban/column-header.js +10 -0
- package/dist/components/kanban/column-header.js.map +1 -1
- package/dist/components/kanban/column.d.ts +22 -2
- package/dist/components/kanban/column.js +19 -0
- package/dist/components/kanban/column.js.map +1 -1
- package/dist/components/kanban/context.d.ts +49 -2
- package/dist/components/kanban/context.js +30 -0
- package/dist/components/kanban/context.js.map +1 -1
- package/dist/components/kanban/header-actions.d.ts +10 -2
- package/dist/components/kanban/header-actions.js +8 -0
- package/dist/components/kanban/header-actions.js.map +1 -1
- package/dist/components/kanban/header-search.d.ts +9 -2
- package/dist/components/kanban/header-search.js +7 -0
- package/dist/components/kanban/header-search.js.map +1 -1
- package/dist/components/kanban/header-title.d.ts +10 -2
- package/dist/components/kanban/header-title.js +8 -0
- package/dist/components/kanban/header-title.js.map +1 -1
- package/dist/components/kanban/header.d.ts +12 -2
- package/dist/components/kanban/header.js +10 -0
- package/dist/components/kanban/header.js.map +1 -1
- package/dist/components/kanban/kanban.d.ts +33 -4
- package/dist/components/kanban/kanban.js +29 -0
- package/dist/components/kanban/kanban.js.map +1 -1
- package/dist/components/kanban/types.d.ts +51 -0
- package/dist/components/label/context.d.ts +25 -4
- package/dist/components/label/context.js +21 -0
- package/dist/components/label/context.js.map +1 -1
- package/dist/components/label/index.d.ts +16 -2
- package/dist/components/label/index.js +14 -0
- package/dist/components/label/index.js.map +1 -1
- package/dist/components/label/types.d.ts +5 -0
- package/dist/components/lines/index.d.ts +10 -0
- package/dist/components/lines/index.js +9 -0
- package/dist/components/lines/index.js.map +1 -1
- package/dist/components/lines/types.d.ts +6 -0
- package/dist/components/link/context.d.ts +21 -2
- package/dist/components/link/context.js +18 -0
- package/dist/components/link/context.js.map +1 -1
- package/dist/components/link/index.d.ts +12 -2
- package/dist/components/link/index.js +9 -0
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/link/types.d.ts +5 -0
- package/dist/components/list/context.d.ts +11 -2
- package/dist/components/list/context.js +9 -0
- package/dist/components/list/context.js.map +1 -1
- package/dist/components/list/index.d.ts +11 -2
- package/dist/components/list/index.js +9 -0
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/list/item-content.d.ts +9 -2
- package/dist/components/list/item-content.js +6 -0
- package/dist/components/list/item-content.js.map +1 -1
- package/dist/components/list/item-description.d.ts +9 -2
- package/dist/components/list/item-description.js +7 -0
- package/dist/components/list/item-description.js.map +1 -1
- package/dist/components/list/item-title.d.ts +9 -2
- package/dist/components/list/item-title.js +7 -0
- package/dist/components/list/item-title.js.map +1 -1
- package/dist/components/list/item.d.ts +10 -2
- package/dist/components/list/item.js +8 -0
- package/dist/components/list/item.js.map +1 -1
- package/dist/components/list/types.d.ts +22 -0
- package/dist/components/menu/context.d.ts +6 -2
- package/dist/components/menu/context.js +4 -0
- package/dist/components/menu/context.js.map +1 -1
- package/dist/components/menu/index.d.ts +24 -3
- package/dist/components/menu/index.js +22 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/item-description.d.ts +17 -2
- package/dist/components/menu/item-description.js +15 -0
- package/dist/components/menu/item-description.js.map +1 -1
- package/dist/components/menu/item-label.d.ts +17 -2
- package/dist/components/menu/item-label.js +15 -0
- package/dist/components/menu/item-label.js.map +1 -1
- package/dist/components/menu/item.d.ts +23 -2
- package/dist/components/menu/item.js +21 -1
- package/dist/components/menu/item.js.map +1 -1
- package/dist/components/menu/section.d.ts +23 -2
- package/dist/components/menu/section.js +20 -0
- package/dist/components/menu/section.js.map +1 -1
- package/dist/components/menu/separator.d.ts +16 -2
- package/dist/components/menu/separator.js +14 -0
- package/dist/components/menu/separator.js.map +1 -1
- package/dist/components/menu/submenu.d.ts +18 -2
- package/dist/components/menu/submenu.js +16 -0
- package/dist/components/menu/submenu.js.map +1 -1
- package/dist/components/menu/trigger.d.ts +15 -0
- package/dist/components/menu/trigger.js +15 -0
- package/dist/components/menu/trigger.js.map +1 -1
- package/dist/components/menu/types.d.ts +25 -0
- package/dist/components/notice/events.d.ts +9 -0
- package/dist/components/notice/events.js +9 -0
- package/dist/components/notice/events.js.map +1 -1
- package/dist/components/notice/index.d.ts +34 -2
- package/dist/components/notice/index.js +32 -1
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +31 -2
- package/dist/components/notice/list.js +28 -0
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +22 -2
- package/dist/components/notice/notice-icon.js +23 -1
- package/dist/components/notice/notice-icon.js.map +1 -1
- package/dist/components/notice/types.d.ts +60 -0
- package/dist/components/notice/utils.d.ts +8 -0
- package/dist/components/notice/utils.js +8 -0
- package/dist/components/notice/utils.js.map +1 -1
- package/dist/components/options/context.d.ts +1 -0
- package/dist/components/options/context.js +1 -0
- package/dist/components/options/context.js.map +1 -1
- package/dist/components/options/index.d.ts +15 -2
- package/dist/components/options/index.js +13 -0
- package/dist/components/options/index.js.map +1 -1
- package/dist/components/options/item-content.d.ts +22 -2
- package/dist/components/options/item-content.js +19 -0
- package/dist/components/options/item-content.js.map +1 -1
- package/dist/components/options/item-description.d.ts +14 -2
- package/dist/components/options/item-description.js +12 -0
- package/dist/components/options/item-description.js.map +1 -1
- package/dist/components/options/item-label.d.ts +14 -2
- package/dist/components/options/item-label.js +12 -0
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.d.ts +24 -2
- package/dist/components/options/item.js +21 -0
- package/dist/components/options/item.js.map +1 -1
- package/dist/components/options/section.d.ts +21 -2
- package/dist/components/options/section.js +18 -0
- package/dist/components/options/section.js.map +1 -1
- package/dist/components/options/types.d.ts +24 -0
- package/dist/components/pagination/context.d.ts +3 -2
- package/dist/components/pagination/context.js +1 -0
- package/dist/components/pagination/context.js.map +1 -1
- package/dist/components/pagination/index.d.ts +18 -11
- package/dist/components/pagination/index.js +15 -9
- package/dist/components/pagination/index.js.map +1 -1
- package/dist/components/pagination/next.d.ts +17 -2
- package/dist/components/pagination/next.js +15 -0
- package/dist/components/pagination/next.js.map +1 -1
- package/dist/components/pagination/pages.d.ts +21 -2
- package/dist/components/pagination/pages.js +18 -0
- package/dist/components/pagination/pages.js.map +1 -1
- package/dist/components/pagination/prev.d.ts +17 -2
- package/dist/components/pagination/prev.js +16 -1
- package/dist/components/pagination/prev.js.map +1 -1
- package/dist/components/pagination/types.d.ts +32 -0
- package/dist/components/pagination/utils.d.ts +35 -0
- package/dist/components/pagination/utils.js +35 -0
- package/dist/components/pagination/utils.js.map +1 -1
- package/dist/components/popover/content.d.ts +20 -2
- package/dist/components/popover/content.js +17 -0
- package/dist/components/popover/content.js.map +1 -1
- package/dist/components/popover/footer.d.ts +22 -2
- package/dist/components/popover/footer.js +19 -0
- package/dist/components/popover/footer.js.map +1 -1
- package/dist/components/popover/index.d.ts +9 -2
- package/dist/components/popover/index.js +8 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/styles.module.css +6 -0
- package/dist/components/popover/title.d.ts +17 -2
- package/dist/components/popover/title.js +15 -0
- package/dist/components/popover/title.js.map +1 -1
- package/dist/components/popover/trigger.d.ts +24 -2
- package/dist/components/popover/trigger.js +21 -0
- package/dist/components/popover/trigger.js.map +1 -1
- package/dist/components/popover/types.d.ts +10 -0
- package/dist/components/query-builder/action-element.d.ts +20 -2
- package/dist/components/query-builder/action-element.js +17 -0
- package/dist/components/query-builder/action-element.js.map +1 -1
- package/dist/components/query-builder/actions.d.ts +37 -4
- package/dist/components/query-builder/actions.js +36 -1
- package/dist/components/query-builder/actions.js.map +1 -1
- package/dist/components/query-builder/combinator-selector.d.ts +10 -2
- package/dist/components/query-builder/combinator-selector.js +8 -0
- package/dist/components/query-builder/combinator-selector.js.map +1 -1
- package/dist/components/query-builder/constants.d.ts +1 -0
- package/dist/components/query-builder/constants.js +1 -0
- package/dist/components/query-builder/constants.js.map +1 -1
- package/dist/components/query-builder/index.d.ts +11 -2
- package/dist/components/query-builder/index.js +9 -0
- package/dist/components/query-builder/index.js.map +1 -1
- package/dist/components/query-builder/rule-group.d.ts +52 -4
- package/dist/components/query-builder/rule-group.js +47 -0
- package/dist/components/query-builder/rule-group.js.map +1 -1
- package/dist/components/query-builder/rule.d.ts +20 -2
- package/dist/components/query-builder/rule.js +18 -0
- package/dist/components/query-builder/rule.js.map +1 -1
- package/dist/components/query-builder/types.d.ts +9 -0
- package/dist/components/query-builder/utils.d.ts +15 -0
- package/dist/components/query-builder/utils.js +15 -0
- package/dist/components/query-builder/utils.js.map +1 -1
- package/dist/components/query-builder/value-editor.d.ts +23 -2
- package/dist/components/query-builder/value-editor.js +20 -0
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/query-builder/value-selector.d.ts +23 -2
- package/dist/components/query-builder/value-selector.js +20 -0
- package/dist/components/query-builder/value-selector.js.map +1 -1
- package/dist/components/radio/context.d.ts +2 -2
- package/dist/components/radio/group.d.ts +19 -2
- package/dist/components/radio/group.js +16 -0
- package/dist/components/radio/group.js.map +1 -1
- package/dist/components/radio/index.d.ts +13 -26
- package/dist/components/radio/index.js +11 -24
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/types.d.ts +16 -0
- package/dist/components/search-field/context.d.ts +7 -4
- package/dist/components/search-field/context.js +3 -0
- package/dist/components/search-field/context.js.map +1 -1
- package/dist/components/search-field/index.d.ts +15 -24
- package/dist/components/search-field/index.js +16 -23
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/search-field/types.d.ts +13 -0
- package/dist/components/select-field/context.d.ts +11 -4
- package/dist/components/select-field/context.js +7 -0
- package/dist/components/select-field/context.js.map +1 -1
- package/dist/components/select-field/index.d.ts +19 -39
- package/dist/components/select-field/index.js +18 -38
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/styles.module.css +8 -0
- package/dist/components/select-field/types.d.ts +18 -0
- package/dist/components/sidenav/avatar.d.ts +19 -2
- package/dist/components/sidenav/avatar.js +16 -0
- package/dist/components/sidenav/avatar.js.map +1 -1
- package/dist/components/sidenav/content.d.ts +23 -2
- package/dist/components/sidenav/content.js +20 -0
- package/dist/components/sidenav/content.js.map +1 -1
- package/dist/components/sidenav/context.d.ts +3 -2
- package/dist/components/sidenav/context.js +1 -0
- package/dist/components/sidenav/context.js.map +1 -1
- package/dist/components/sidenav/events.d.ts +2 -0
- package/dist/components/sidenav/events.js +2 -0
- package/dist/components/sidenav/events.js.map +1 -1
- package/dist/components/sidenav/footer.d.ts +16 -2
- package/dist/components/sidenav/footer.js +13 -0
- package/dist/components/sidenav/footer.js.map +1 -1
- package/dist/components/sidenav/header.d.ts +20 -2
- package/dist/components/sidenav/header.js +18 -1
- package/dist/components/sidenav/header.js.map +1 -1
- package/dist/components/sidenav/index.d.ts +11 -2
- package/dist/components/sidenav/index.js +9 -0
- package/dist/components/sidenav/index.js.map +1 -1
- package/dist/components/sidenav/item.d.ts +17 -2
- package/dist/components/sidenav/item.js +14 -0
- package/dist/components/sidenav/item.js.map +1 -1
- package/dist/components/sidenav/link.d.ts +17 -2
- package/dist/components/sidenav/link.js +15 -1
- package/dist/components/sidenav/link.js.map +1 -1
- package/dist/components/sidenav/menu-item.d.ts +16 -2
- package/dist/components/sidenav/menu-item.js +13 -0
- package/dist/components/sidenav/menu-item.js.map +1 -1
- package/dist/components/sidenav/menu.d.ts +19 -2
- package/dist/components/sidenav/menu.js +17 -1
- package/dist/components/sidenav/menu.js.map +1 -1
- package/dist/components/sidenav/trigger.d.ts +17 -2
- package/dist/components/sidenav/trigger.js +14 -0
- package/dist/components/sidenav/trigger.js.map +1 -1
- package/dist/components/sidenav/types.d.ts +53 -0
- package/dist/components/skeleton/index.d.ts +12 -27
- package/dist/components/skeleton/index.js +10 -24
- package/dist/components/skeleton/index.js.map +1 -1
- package/dist/components/skeleton/types.d.ts +4 -0
- package/dist/components/slider/index.d.ts +30 -29
- package/dist/components/slider/index.js +28 -27
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/types.d.ts +18 -0
- package/dist/components/switch/context.d.ts +16 -10
- package/dist/components/switch/context.js +13 -7
- package/dist/components/switch/context.js.map +1 -1
- package/dist/components/switch/index.d.ts +14 -31
- package/dist/components/switch/index.js +12 -29
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/types.d.ts +5 -0
- package/dist/components/table/body.d.ts +21 -2
- package/dist/components/table/body.js +18 -0
- package/dist/components/table/body.js.map +1 -1
- package/dist/components/table/cell.d.ts +22 -2
- package/dist/components/table/cell.js +19 -0
- package/dist/components/table/cell.js.map +1 -1
- package/dist/components/table/constants/table.d.ts +6 -0
- package/dist/components/table/constants/table.js +4 -0
- package/dist/components/table/constants/table.js.map +1 -1
- package/dist/components/table/context.d.ts +3 -2
- package/dist/components/table/context.js +1 -0
- package/dist/components/table/context.js.map +1 -1
- package/dist/components/table/header-cell.d.ts +24 -2
- package/dist/components/table/header-cell.js +24 -1
- package/dist/components/table/header-cell.js.map +1 -1
- package/dist/components/table/header.d.ts +20 -0
- package/dist/components/table/header.js +19 -0
- package/dist/components/table/header.js.map +1 -1
- package/dist/components/table/index.d.ts +28 -6
- package/dist/components/table/index.js +27 -5
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +26 -2
- package/dist/components/table/row.js +23 -0
- package/dist/components/table/row.js.map +1 -1
- package/dist/components/table/types.d.ts +3 -0
- package/dist/components/tabs/context.d.ts +20 -10
- package/dist/components/tabs/context.js +17 -7
- package/dist/components/tabs/context.js.map +1 -1
- package/dist/components/tabs/index.d.ts +17 -40
- package/dist/components/tabs/index.js +15 -38
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.d.ts +20 -4
- package/dist/components/tabs/list.js +17 -2
- package/dist/components/tabs/list.js.map +1 -1
- package/dist/components/tabs/panel.d.ts +21 -4
- package/dist/components/tabs/panel.js +18 -2
- package/dist/components/tabs/panel.js.map +1 -1
- package/dist/components/tabs/tab.d.ts +17 -4
- package/dist/components/tabs/tab.js +14 -2
- package/dist/components/tabs/tab.js.map +1 -1
- package/dist/components/tabs/types.d.ts +3 -0
- package/dist/components/text-area-field/context.d.ts +20 -10
- package/dist/components/text-area-field/context.js +17 -7
- package/dist/components/text-area-field/context.js.map +1 -1
- package/dist/components/text-area-field/index.d.ts +20 -15
- package/dist/components/text-area-field/index.js +18 -13
- package/dist/components/text-area-field/index.js.map +1 -1
- package/dist/components/text-area-field/styles.module.css +1 -1
- package/dist/components/text-area-field/types.d.ts +9 -0
- package/dist/components/text-field/context.d.ts +24 -4
- package/dist/components/text-field/context.js +20 -0
- package/dist/components/text-field/context.js.map +1 -1
- package/dist/components/text-field/index.d.ts +17 -82
- package/dist/components/text-field/index.js +15 -80
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/text-field/types.d.ts +9 -0
- package/dist/components/time-field/index.d.ts +23 -5
- package/dist/components/time-field/index.js +21 -4
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/types.d.ts +9 -0
- package/dist/components/tooltip/context.d.ts +3 -2
- package/dist/components/tooltip/context.js +1 -0
- package/dist/components/tooltip/context.js.map +1 -1
- package/dist/components/tooltip/index.d.ts +15 -30
- package/dist/components/tooltip/index.js +13 -28
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/trigger.d.ts +22 -2
- package/dist/components/tooltip/trigger.js +19 -0
- package/dist/components/tooltip/trigger.js.map +1 -1
- package/dist/components/tooltip/types.d.ts +7 -0
- package/dist/components/tree/context.d.ts +5 -9
- package/dist/components/tree/context.js +2 -6
- package/dist/components/tree/context.js.map +1 -1
- package/dist/components/tree/index.d.ts +30 -8
- package/dist/components/tree/index.js +28 -6
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +19 -4
- package/dist/components/tree/item-actions.js +16 -2
- package/dist/components/tree/item-actions.js.map +1 -1
- package/dist/components/tree/item-content.d.ts +18 -4
- package/dist/components/tree/item-content.js +20 -3
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +15 -4
- package/dist/components/tree/item-description.js +13 -2
- package/dist/components/tree/item-description.js.map +1 -1
- package/dist/components/tree/item-label.d.ts +15 -4
- package/dist/components/tree/item-label.js +13 -2
- package/dist/components/tree/item-label.js.map +1 -1
- package/dist/components/tree/item-prefix-icon.d.ts +15 -4
- package/dist/components/tree/item-prefix-icon.js +13 -2
- package/dist/components/tree/item-prefix-icon.js.map +1 -1
- package/dist/components/tree/item.d.ts +24 -4
- package/dist/components/tree/item.js +21 -2
- package/dist/components/tree/item.js.map +1 -1
- package/dist/components/tree/lines.d.ts +10 -2
- package/dist/components/tree/lines.js +8 -0
- package/dist/components/tree/lines.js.map +1 -1
- package/dist/components/tree/types.d.ts +26 -0
- package/dist/components/view-stack/context.d.ts +20 -9
- package/dist/components/view-stack/context.js +18 -7
- package/dist/components/view-stack/context.js.map +1 -1
- package/dist/components/view-stack/events.d.ts +2 -0
- package/dist/components/view-stack/events.js +2 -0
- package/dist/components/view-stack/events.js.map +1 -1
- package/dist/components/view-stack/index.d.ts +16 -24
- package/dist/components/view-stack/index.js +14 -22
- package/dist/components/view-stack/index.js.map +1 -1
- package/dist/components/view-stack/trigger.d.ts +26 -4
- package/dist/components/view-stack/trigger.js +23 -2
- package/dist/components/view-stack/trigger.js.map +1 -1
- package/dist/components/view-stack/types.d.ts +29 -0
- package/dist/components/view-stack/view.d.ts +22 -2
- package/dist/components/view-stack/view.js +19 -0
- package/dist/components/view-stack/view.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-copy.d.ts +44 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.js +35 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field-state.d.ts +69 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js +50 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +61 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.js +47 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-focus.d.ts +51 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.js +39 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-paste.d.ts +63 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.js +51 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.js.map +1 -1
- package/dist/hooks/coordinate-field/use-timeout-cleanup.d.ts +32 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js +30 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js.map +1 -1
- package/dist/hooks/use-frame-delay/index.d.ts +5 -0
- package/dist/hooks/use-frame-delay/index.js +5 -0
- package/dist/hooks/use-frame-delay/index.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +4 -2
- package/dist/hooks/use-tree/actions/index.js +4 -2
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +7 -0
- package/dist/hooks/use-tree/state/index.js +7 -0
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/hooks/use-tree/types.d.ts +22 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/lib/types.d.ts +17 -0
- package/dist/lib/utils.d.ts +15 -0
- package/dist/lib/utils.js +15 -0
- package/dist/lib/utils.js.map +1 -1
- package/dist/providers/portal.d.ts +11 -2
- package/dist/providers/portal.js +9 -0
- package/dist/providers/portal.js.map +1 -1
- package/dist/providers/theme-provider.d.ts +18 -2
- package/dist/providers/theme-provider.js +15 -0
- package/dist/providers/theme-provider.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["className"],"sources":["../../../src/components/list/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 composeRenderProps,\n GridList,\n useContextProps,\n} from 'react-aria-components';\nimport { IconProvider } from '../icon/context';\nimport { ListContext } from './context';\nimport styles from './styles.module.css';\nimport type { ListProps } from './types';\n\n/**\n * List - A flexible grid list component for selectable items with rich content\n *\n * Provides accessible grid list functionality with support for selection,\n * and rich item content including labels, descriptions, icons, and actions. Perfect for\n * data tables, file lists, or any selectable grid interface.\n *\n * @example\n * // Basic list view with sizing\n * <div className='h-[400px] w-[300px]'>\n * <List className='h-full' aria-label='Items'>\n * <ListItem>\n * <ListItemContent>\n * <ListItemTitle>Item 1</ListItemTitle>\n * </ListItemContent>\n * </ListItem>\n * </List>\n * </div>\n */\nexport function List<T extends object>({ ref, ...props }: ListProps<T>) {\n [props, ref] = useContextProps(props, ref ?? null, ListContext);\n\n const { children, className, variant, ...rest } = props;\n\n return (\n <ListContext.Provider value={{ variant }}>\n <IconProvider size={variant === 'cozy' ? 'large' : 'small'}>\n <GridList<T>\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/list', styles.list, className),\n )}\n >\n {children}\n </GridList>\n </IconProvider>\n </ListContext.Provider>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["className"],"sources":["../../../src/components/list/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 composeRenderProps,\n GridList,\n useContextProps,\n} from 'react-aria-components';\nimport { IconProvider } from '../icon/context';\nimport { ListContext } from './context';\nimport styles from './styles.module.css';\nimport type { ListProps } from './types';\n\n/**\n * List - A flexible grid list component for selectable items with rich content\n *\n * Provides accessible grid list functionality with support for selection,\n * and rich item content including labels, descriptions, icons, and actions. Perfect for\n * data tables, file lists, or any selectable grid interface.\n *\n * @example\n * ```tsx\n * // Basic list view with sizing\n * <div className='h-[400px] w-[300px]'>\n * <List className='h-full' aria-label='Items'>\n * <ListItem>\n * <ListItemContent>\n * <ListItemTitle>Item 1</ListItemTitle>\n * </ListItemContent>\n * </ListItem>\n * </List>\n * </div>\n * ```\n *\n * @param props - {@link ListProps}\n * @param props.ref - Forwarded ref to the underlying GridList element.\n * @param props.children - List item elements to render.\n * @param props.className - Optional CSS class name.\n * @param props.variant - Visual density variant for list items.\n * @returns The rendered List component.\n */\nexport function List<T extends object>({ ref, ...props }: ListProps<T>) {\n [props, ref] = useContextProps(props, ref ?? null, ListContext);\n\n const { children, className, variant, ...rest } = props;\n\n return (\n <ListContext.Provider value={{ variant }}>\n <IconProvider size={variant === 'cozy' ? 'large' : 'small'}>\n <GridList<T>\n {...rest}\n ref={ref}\n className={composeRenderProps(className, (className) =>\n clsx('group/list', styles.list, className),\n )}\n >\n {children}\n </GridList>\n </IconProvider>\n </ListContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,KAAuB,EAAE,KAAK,GAAG,SAAuB;AACtE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EAAE,UAAU,WAAW,SAAS,GAAG,SAAS;AAElD,QACE,oBAAC,YAAY;EAAS,OAAO,EAAE,SAAS;YACtC,oBAAC;GAAa,MAAM,YAAY,SAAS,UAAU;aACjD,oBAAC;IACC,GAAI;IACC;IACL,WAAW,mBAAmB,YAAY,gBACxC,KAAK,cAAc,OAAO,MAAMA,YAAU,CAC3C;IAEA;KACQ;IACE;GACM"}
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemContentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item-content.d.ts
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* ListItemContent - Container for list item title and description
|
|
20
21
|
*
|
|
@@ -22,15 +23,21 @@ import * as react_jsx_runtime100 from "react/jsx-runtime";
|
|
|
22
23
|
* Should contain ListItemTitle and optionally ListItemDescription components.
|
|
23
24
|
*
|
|
24
25
|
* @example
|
|
26
|
+
* ```tsx
|
|
25
27
|
* <ListItemContent>
|
|
26
28
|
* <ListItemTitle>Item Title</ListItemTitle>
|
|
27
29
|
* <ListItemDescription>Optional description text</ListItemDescription>
|
|
28
30
|
* </ListItemContent>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - {@link ListItemContentProps}
|
|
34
|
+
* @param props.className - Optional CSS class name.
|
|
35
|
+
* @returns The rendered ListItemContent component.
|
|
29
36
|
*/
|
|
30
37
|
declare function ListItemContent({
|
|
31
38
|
className,
|
|
32
39
|
...rest
|
|
33
|
-
}: ListItemContentProps):
|
|
40
|
+
}: ListItemContentProps): react_jsx_runtime97.JSX.Element;
|
|
34
41
|
//#endregion
|
|
35
42
|
export { ListItemContent };
|
|
36
43
|
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -26,10 +26,16 @@ import styles from "./styles.module.css";
|
|
|
26
26
|
* Should contain ListItemTitle and optionally ListItemDescription components.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
+
* ```tsx
|
|
29
30
|
* <ListItemContent>
|
|
30
31
|
* <ListItemTitle>Item Title</ListItemTitle>
|
|
31
32
|
* <ListItemDescription>Optional description text</ListItemDescription>
|
|
32
33
|
* </ListItemContent>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @param props - {@link ListItemContentProps}
|
|
37
|
+
* @param props.className - Optional CSS class name.
|
|
38
|
+
* @returns The rendered ListItemContent component.
|
|
33
39
|
*/
|
|
34
40
|
function ListItemContent({ className, ...rest }) {
|
|
35
41
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-content.js","names":[],"sources":["../../../src/components/list/item-content.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 styles from './styles.module.css';\nimport type { ListItemContentProps } from './types';\n\n/**\n * ListItemContent - Container for list item title and description\n *\n * Provides consistent spacing and layout for text content within list items.\n * Should contain ListItemTitle and optionally ListItemDescription components.\n *\n * @example\n * <ListItemContent>\n * <ListItemTitle>Item Title</ListItemTitle>\n * <ListItemDescription>Optional description text</ListItemDescription>\n * </ListItemContent>\n */\nexport function ListItemContent({ className, ...rest }: ListItemContentProps) {\n return <div {...rest} className={clsx(styles.content, className)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-content.js","names":[],"sources":["../../../src/components/list/item-content.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 styles from './styles.module.css';\nimport type { ListItemContentProps } from './types';\n\n/**\n * ListItemContent - Container for list item title and description\n *\n * Provides consistent spacing and layout for text content within list items.\n * Should contain ListItemTitle and optionally ListItemDescription components.\n *\n * @example\n * ```tsx\n * <ListItemContent>\n * <ListItemTitle>Item Title</ListItemTitle>\n * <ListItemDescription>Optional description text</ListItemDescription>\n * </ListItemContent>\n * ```\n *\n * @param props - {@link ListItemContentProps}\n * @param props.className - Optional CSS class name.\n * @returns The rendered ListItemContent component.\n */\nexport function ListItemContent({ className, ...rest }: ListItemContentProps) {\n return <div {...rest} className={clsx(styles.content, className)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,gBAAgB,EAAE,WAAW,GAAG,QAA8B;AAC5E,QAAO,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,SAAS,UAAU;GAAI"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemDescriptionProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item-description.d.ts
|
|
18
18
|
/**
|
|
@@ -22,13 +22,20 @@ import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
|
22
22
|
* Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
+
* ```tsx
|
|
25
26
|
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param props - {@link ListItemDescriptionProps}
|
|
30
|
+
* @param props.children - Description text content.
|
|
31
|
+
* @param props.className - Optional CSS class name.
|
|
32
|
+
* @returns The rendered ListItemDescription component.
|
|
26
33
|
*/
|
|
27
34
|
declare function ListItemDescription({
|
|
28
35
|
children,
|
|
29
36
|
className,
|
|
30
37
|
...rest
|
|
31
|
-
}: ListItemDescriptionProps):
|
|
38
|
+
}: ListItemDescriptionProps): react_jsx_runtime99.JSX.Element;
|
|
32
39
|
//#endregion
|
|
33
40
|
export { ListItemDescription };
|
|
34
41
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -27,7 +27,14 @@ import styles from "./styles.module.css";
|
|
|
27
27
|
* Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
+
* ```tsx
|
|
30
31
|
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @param props - {@link ListItemDescriptionProps}
|
|
35
|
+
* @param props.children - Description text content.
|
|
36
|
+
* @param props.className - Optional CSS class name.
|
|
37
|
+
* @returns The rendered ListItemDescription component.
|
|
31
38
|
*/
|
|
32
39
|
function ListItemDescription({ children, className, ...rest }) {
|
|
33
40
|
const variant = useListItemVariant();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/list/item-description.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { useListItemVariant } from './context';\nimport styles from './styles.module.css';\nimport type { ListItemDescriptionProps } from './types';\n\n/**\n * ListItemDescription - Secondary descriptive text for list items\n *\n * Renders supplementary information below the title with muted styling.\n * Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.\n *\n * @example\n * <ListItemDescription>Software Engineer</ListItemDescription>\n */\nexport function ListItemDescription({\n children,\n className,\n ...rest\n}: ListItemDescriptionProps) {\n const variant = useListItemVariant();\n\n return (\n <div\n {...rest}\n className={clsx(styles.description, styles[variant], className)}\n >\n {children}\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/list/item-description.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { useListItemVariant } from './context';\nimport styles from './styles.module.css';\nimport type { ListItemDescriptionProps } from './types';\n\n/**\n * ListItemDescription - Secondary descriptive text for list items\n *\n * Renders supplementary information below the title with muted styling.\n * Automatically adjusts font size for cozy (body-s) and compact (body-xs) variants.\n *\n * @example\n * ```tsx\n * <ListItemDescription>Software Engineer</ListItemDescription>\n * ```\n *\n * @param props - {@link ListItemDescriptionProps}\n * @param props.children - Description text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered ListItemDescription component.\n */\nexport function ListItemDescription({\n children,\n className,\n ...rest\n}: ListItemDescriptionProps) {\n const variant = useListItemVariant();\n\n return (\n <div\n {...rest}\n className={clsx(styles.description, styles[variant], className)}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,SAAgB,oBAAoB,EAClC,UACA,WACA,GAAG,QACwB;CAC3B,MAAM,UAAU,oBAAoB;AAEpC,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,OAAO,aAAa,OAAO,UAAU,UAAU;EAE9D;GACG"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemTitleProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item-title.d.ts
|
|
18
18
|
/**
|
|
@@ -22,13 +22,20 @@ import * as react_jsx_runtime96 from "react/jsx-runtime";
|
|
|
22
22
|
* Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
+
* ```tsx
|
|
25
26
|
* <ListItemTitle>John Doe</ListItemTitle>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param props - {@link ListItemTitleProps}
|
|
30
|
+
* @param props.children - Title text content.
|
|
31
|
+
* @param props.className - Optional CSS class name.
|
|
32
|
+
* @returns The rendered ListItemTitle component.
|
|
26
33
|
*/
|
|
27
34
|
declare function ListItemTitle({
|
|
28
35
|
children,
|
|
29
36
|
className,
|
|
30
37
|
...rest
|
|
31
|
-
}: ListItemTitleProps):
|
|
38
|
+
}: ListItemTitleProps): react_jsx_runtime135.JSX.Element;
|
|
32
39
|
//#endregion
|
|
33
40
|
export { ListItemTitle };
|
|
34
41
|
//# sourceMappingURL=item-title.d.ts.map
|
|
@@ -27,7 +27,14 @@ import styles from "./styles.module.css";
|
|
|
27
27
|
* Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
+
* ```tsx
|
|
30
31
|
* <ListItemTitle>John Doe</ListItemTitle>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @param props - {@link ListItemTitleProps}
|
|
35
|
+
* @param props.children - Title text content.
|
|
36
|
+
* @param props.className - Optional CSS class name.
|
|
37
|
+
* @returns The rendered ListItemTitle component.
|
|
31
38
|
*/
|
|
32
39
|
function ListItemTitle({ children, className, ...rest }) {
|
|
33
40
|
const variant = useListItemVariant();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-title.js","names":[],"sources":["../../../src/components/list/item-title.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { useListItemVariant } from './context';\nimport styles from './styles.module.css';\nimport type { ListItemTitleProps } from './types';\n\n/**\n * ListItemTitle - Primary text label for list items\n *\n * Renders the main title text with appropriate typography based on the list variant.\n * Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.\n *\n * @example\n * <ListItemTitle>John Doe</ListItemTitle>\n */\nexport function ListItemTitle({\n children,\n className,\n ...rest\n}: ListItemTitleProps) {\n const variant = useListItemVariant();\n\n return (\n <div {...rest} className={clsx(styles.title, styles[variant], className)}>\n {children}\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-title.js","names":[],"sources":["../../../src/components/list/item-title.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { useListItemVariant } from './context';\nimport styles from './styles.module.css';\nimport type { ListItemTitleProps } from './types';\n\n/**\n * ListItemTitle - Primary text label for list items\n *\n * Renders the main title text with appropriate typography based on the list variant.\n * Automatically adjusts font size for cozy (header-m) and compact (header-s) variants.\n *\n * @example\n * ```tsx\n * <ListItemTitle>John Doe</ListItemTitle>\n * ```\n *\n * @param props - {@link ListItemTitleProps}\n * @param props.children - Title text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered ListItemTitle component.\n */\nexport function ListItemTitle({\n children,\n className,\n ...rest\n}: ListItemTitleProps) {\n const variant = useListItemVariant();\n\n return (\n <div {...rest} className={clsx(styles.title, styles[variant], className)}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,SAAgB,cAAc,EAC5B,UACA,WACA,GAAG,QACkB;CACrB,MAAM,UAAU,oBAAoB;AAEpC,QACE,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,OAAO,OAAO,UAAU,UAAU;EACrE;GACG"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item.d.ts
|
|
18
18
|
|
|
@@ -25,6 +25,7 @@ import * as react_jsx_runtime189 from "react/jsx-runtime";
|
|
|
25
25
|
* wrapped in a ListItemTitle.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
+
* ```tsx
|
|
28
29
|
* <ListItem textValue="User item">
|
|
29
30
|
* <Icon><Avatar /></Icon>
|
|
30
31
|
* <ListItemContent>
|
|
@@ -32,13 +33,20 @@ import * as react_jsx_runtime189 from "react/jsx-runtime";
|
|
|
32
33
|
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
33
34
|
* </ListItemContent>
|
|
34
35
|
* </ListItem>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @param props - {@link ListItemProps}
|
|
39
|
+
* @param props.children - Content to render inside the list item.
|
|
40
|
+
* @param props.classNames - CSS class names for list item elements.
|
|
41
|
+
* @param props.textValue - Accessible text value for the item.
|
|
42
|
+
* @returns The rendered ListItem component.
|
|
35
43
|
*/
|
|
36
44
|
declare function ListItem<T extends object>({
|
|
37
45
|
children,
|
|
38
46
|
classNames,
|
|
39
47
|
textValue,
|
|
40
48
|
...rest
|
|
41
|
-
}: ListItemProps<T>):
|
|
49
|
+
}: ListItemProps<T>): react_jsx_runtime138.JSX.Element;
|
|
42
50
|
//#endregion
|
|
43
51
|
export { ListItem };
|
|
44
52
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -30,6 +30,7 @@ import styles from "./styles.module.css";
|
|
|
30
30
|
* wrapped in a ListItemTitle.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
+
* ```tsx
|
|
33
34
|
* <ListItem textValue="User item">
|
|
34
35
|
* <Icon><Avatar /></Icon>
|
|
35
36
|
* <ListItemContent>
|
|
@@ -37,6 +38,13 @@ import styles from "./styles.module.css";
|
|
|
37
38
|
* <ListItemDescription>Software Engineer</ListItemDescription>
|
|
38
39
|
* </ListItemContent>
|
|
39
40
|
* </ListItem>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param props - {@link ListItemProps}
|
|
44
|
+
* @param props.children - Content to render inside the list item.
|
|
45
|
+
* @param props.classNames - CSS class names for list item elements.
|
|
46
|
+
* @param props.textValue - Accessible text value for the item.
|
|
47
|
+
* @returns The rendered ListItem component.
|
|
40
48
|
*/
|
|
41
49
|
function ListItem({ children, classNames, textValue = typeof children === "string" ? children : "", ...rest }) {
|
|
42
50
|
return /* @__PURE__ */ jsx(GridListItem, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":["children"],"sources":["../../../src/components/list/item.tsx"],"sourcesContent":["/*\n * Copyright 2025 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, GridListItem } from 'react-aria-components';\nimport { ListItemTitle } from './item-title';\nimport styles from './styles.module.css';\nimport type { ListItemProps } from './types';\n\n/**\n * ListItem - Individual selectable item within a List\n *\n * Represents a single row in the grid list with full interaction support including\n * selection, hover states, and keyboard navigation. Can contain icons, content,\n * indicators, and action elements. If children is a string, it will be automatically\n * wrapped in a ListItemTitle.\n *\n * @example\n * <ListItem textValue=\"User item\">\n * <Icon><Avatar /></Icon>\n * <ListItemContent>\n * <ListItemTitle>John Doe</ListItemTitle>\n * <ListItemDescription>Software Engineer</ListItemDescription>\n * </ListItemContent>\n * </ListItem>\n */\nexport function ListItem<T extends object>({\n children,\n classNames,\n textValue = typeof children === 'string' ? children : '',\n ...rest\n}: ListItemProps<T>) {\n return (\n <GridListItem\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/list-item', styles.item, className),\n )}\n textValue={textValue}\n {...rest}\n >\n {composeRenderProps(children, (children) =>\n typeof children === 'string' ? (\n <ListItemTitle>{children}</ListItemTitle>\n ) : (\n children\n ),\n )}\n </GridListItem>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.js","names":["children"],"sources":["../../../src/components/list/item.tsx"],"sourcesContent":["/*\n * Copyright 2025 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, GridListItem } from 'react-aria-components';\nimport { ListItemTitle } from './item-title';\nimport styles from './styles.module.css';\nimport type { ListItemProps } from './types';\n\n/**\n * ListItem - Individual selectable item within a List\n *\n * Represents a single row in the grid list with full interaction support including\n * selection, hover states, and keyboard navigation. Can contain icons, content,\n * indicators, and action elements. If children is a string, it will be automatically\n * wrapped in a ListItemTitle.\n *\n * @example\n * ```tsx\n * <ListItem textValue=\"User item\">\n * <Icon><Avatar /></Icon>\n * <ListItemContent>\n * <ListItemTitle>John Doe</ListItemTitle>\n * <ListItemDescription>Software Engineer</ListItemDescription>\n * </ListItemContent>\n * </ListItem>\n * ```\n *\n * @param props - {@link ListItemProps}\n * @param props.children - Content to render inside the list item.\n * @param props.classNames - CSS class names for list item elements.\n * @param props.textValue - Accessible text value for the item.\n * @returns The rendered ListItem component.\n */\nexport function ListItem<T extends object>({\n children,\n classNames,\n textValue = typeof children === 'string' ? children : '',\n ...rest\n}: ListItemProps<T>) {\n return (\n <GridListItem\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/list-item', styles.item, className),\n )}\n textValue={textValue}\n {...rest}\n >\n {composeRenderProps(children, (children) =>\n typeof children === 'string' ? (\n <ListItemTitle>{children}</ListItemTitle>\n ) : (\n children\n ),\n )}\n </GridListItem>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,SAA2B,EACzC,UACA,YACA,YAAY,OAAO,aAAa,WAAW,WAAW,IACtD,GAAG,QACgB;AACnB,QACE,oBAAC;EACC,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,mBAAmB,OAAO,MAAM,UAAU,CAChD;EACU;EACX,GAAI;YAEH,mBAAmB,WAAW,eAC7B,OAAOA,eAAa,WAClB,oBAAC,2BAAeA,aAAyB,GAEzCA,WAEH;GACY"}
|
|
@@ -15,17 +15,39 @@ import { ComponentPropsWithRef, RefAttributes } from "react";
|
|
|
15
15
|
import { GridListItemProps, GridListProps } from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/types.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* Visual density variant for list items.
|
|
20
|
+
*/
|
|
18
21
|
type ListItemVariant = 'cozy' | 'compact';
|
|
22
|
+
/**
|
|
23
|
+
* Props for the ListItem component.
|
|
24
|
+
*/
|
|
19
25
|
type ListItemProps<T extends object> = Omit<GridListItemProps<T>, 'className'> & {
|
|
26
|
+
/** CSS class names for list item elements. */
|
|
20
27
|
classNames?: {
|
|
28
|
+
/** Class name for the list item container. */
|
|
21
29
|
item?: GridListItemProps['className'];
|
|
30
|
+
/** Class name for the list item icon. */
|
|
22
31
|
icon?: IconProps['className'];
|
|
23
32
|
};
|
|
24
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Props for the ListItemTitle component.
|
|
36
|
+
*/
|
|
25
37
|
type ListItemTitleProps = ComponentPropsWithRef<'div'>;
|
|
38
|
+
/**
|
|
39
|
+
* Props for the ListItemDescription component.
|
|
40
|
+
*/
|
|
26
41
|
type ListItemDescriptionProps = ComponentPropsWithRef<'div'>;
|
|
42
|
+
/**
|
|
43
|
+
* Props for the ListItemContent component.
|
|
44
|
+
*/
|
|
27
45
|
type ListItemContentProps = ComponentPropsWithRef<'div'>;
|
|
46
|
+
/**
|
|
47
|
+
* Props for the List component.
|
|
48
|
+
*/
|
|
28
49
|
type ListProps<T> = Omit<GridListProps<T>, 'orientation' | 'layout' | 'dragAndDropHooks'> & RefAttributes<HTMLDivElement> & {
|
|
50
|
+
/** Visual density variant for list items. */
|
|
29
51
|
variant?: ListItemVariant;
|
|
30
52
|
};
|
|
31
53
|
//#endregion
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
|
|
13
13
|
import { MenuProps as MenuProps$1 } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react33 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/menu/context.d.ts
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Context for sharing Menu props across component tree.
|
|
21
|
+
* Used internally by Menu subcomponents for variant and state coordination.
|
|
22
|
+
*/
|
|
23
|
+
declare const MenuContext: react33.Context<ContextValue<MenuProps$1<unknown>, HTMLDivElement>>;
|
|
20
24
|
//#endregion
|
|
21
25
|
export { MenuContext };
|
|
22
26
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -17,6 +17,10 @@ import "client-only";
|
|
|
17
17
|
import { createContext } from "react";
|
|
18
18
|
|
|
19
19
|
//#region src/components/menu/context.tsx
|
|
20
|
+
/**
|
|
21
|
+
* Context for sharing Menu props across component tree.
|
|
22
|
+
* Used internally by Menu subcomponents for variant and state coordination.
|
|
23
|
+
*/
|
|
20
24
|
const MenuContext = createContext(null);
|
|
21
25
|
|
|
22
26
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/menu/context.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { MenuProps } from './types';\n\nexport const MenuContext =\n createContext<ContextValue<MenuProps<unknown>, HTMLDivElement>>(null);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/menu/context.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { MenuProps } from './types';\n\n/**\n * Context for sharing Menu props across component tree.\n * Used internally by Menu subcomponents for variant and state coordination.\n */\nexport const MenuContext =\n createContext<ContextValue<MenuProps<unknown>, HTMLDivElement>>(null);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,cACX,cAAgE,KAAK"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MenuProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime180 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/index.d.ts
|
|
18
18
|
|
|
@@ -28,6 +28,7 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
28
28
|
* other popover settings.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
+
* ```tsx
|
|
31
32
|
* // Basic menu with trigger
|
|
32
33
|
* <MenuTrigger>
|
|
33
34
|
* <Button>Open Menu</Button>
|
|
@@ -37,8 +38,10 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
37
38
|
* <MenuItem>Delete</MenuItem>
|
|
38
39
|
* </Menu>
|
|
39
40
|
* </MenuTrigger>
|
|
40
|
-
*
|
|
41
|
+
* ```
|
|
42
|
+
|
|
41
43
|
* @example
|
|
44
|
+
* ```tsx
|
|
42
45
|
* // Menu with custom placement
|
|
43
46
|
* <MenuTrigger>
|
|
44
47
|
* <Button>Open Menu</Button>
|
|
@@ -47,8 +50,10 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
47
50
|
* <MenuItem>Copy</MenuItem>
|
|
48
51
|
* </Menu>
|
|
49
52
|
* </MenuTrigger>
|
|
53
|
+
* ```
|
|
50
54
|
*
|
|
51
55
|
* @example
|
|
56
|
+
* ```tsx
|
|
52
57
|
* // Menu with action handler
|
|
53
58
|
* <MenuTrigger>
|
|
54
59
|
* <Button>Actions</Button>
|
|
@@ -57,8 +62,10 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
57
62
|
* <MenuItem id="delete">Delete</MenuItem>
|
|
58
63
|
* </Menu>
|
|
59
64
|
* </MenuTrigger>
|
|
65
|
+
* ```
|
|
60
66
|
*
|
|
61
67
|
* @example
|
|
68
|
+
* ```tsx
|
|
62
69
|
* // Menu with sections and separators
|
|
63
70
|
* <MenuTrigger>
|
|
64
71
|
* <Button>Open</Button>
|
|
@@ -73,8 +80,10 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
73
80
|
* <MenuItem>Settings</MenuItem>
|
|
74
81
|
* </Menu>
|
|
75
82
|
* </MenuTrigger>
|
|
83
|
+
* ```
|
|
76
84
|
*
|
|
77
85
|
* @example
|
|
86
|
+
* ```tsx
|
|
78
87
|
* // Menu with selection
|
|
79
88
|
* <MenuTrigger>
|
|
80
89
|
* <Button>Group</Button>
|
|
@@ -83,8 +92,10 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
83
92
|
* <MenuItem>Option 2</MenuItem>
|
|
84
93
|
* </Menu>
|
|
85
94
|
* </MenuTrigger>
|
|
95
|
+
* ```
|
|
86
96
|
*
|
|
87
97
|
* @example
|
|
98
|
+
* ```tsx
|
|
88
99
|
* // Menu with submenu
|
|
89
100
|
* <MenuTrigger>
|
|
90
101
|
* <Button>Actions</Button>
|
|
@@ -101,11 +112,21 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
|
101
112
|
* <MenuItem>Delete</MenuItem>
|
|
102
113
|
* </Menu>
|
|
103
114
|
* </MenuTrigger>
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param props - {@link MenuProps}
|
|
118
|
+
* @param props.ref - Forwarded ref to the underlying Menu element.
|
|
119
|
+
* @param props.children - Menu items and sections to render.
|
|
120
|
+
* @param props.classNames - CSS class names for menu elements.
|
|
121
|
+
* @param props.popoverProps - Props passed to the internal Popover component.
|
|
122
|
+
* @param props.selectionMode - Selection mode for menu items.
|
|
123
|
+
* @param props.variant - Visual density variant for the menu.
|
|
124
|
+
* @returns The rendered Menu component.
|
|
104
125
|
*/
|
|
105
126
|
declare function Menu<T extends object>({
|
|
106
127
|
ref,
|
|
107
128
|
...props
|
|
108
|
-
}: MenuProps<T>):
|
|
129
|
+
}: MenuProps<T>): react_jsx_runtime180.JSX.Element;
|
|
109
130
|
//#endregion
|
|
110
131
|
export { Menu };
|
|
111
132
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -33,6 +33,7 @@ import styles from "./styles.module.css";
|
|
|
33
33
|
* other popover settings.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
|
+
* ```tsx
|
|
36
37
|
* // Basic menu with trigger
|
|
37
38
|
* <MenuTrigger>
|
|
38
39
|
* <Button>Open Menu</Button>
|
|
@@ -42,8 +43,10 @@ import styles from "./styles.module.css";
|
|
|
42
43
|
* <MenuItem>Delete</MenuItem>
|
|
43
44
|
* </Menu>
|
|
44
45
|
* </MenuTrigger>
|
|
45
|
-
*
|
|
46
|
+
* ```
|
|
47
|
+
|
|
46
48
|
* @example
|
|
49
|
+
* ```tsx
|
|
47
50
|
* // Menu with custom placement
|
|
48
51
|
* <MenuTrigger>
|
|
49
52
|
* <Button>Open Menu</Button>
|
|
@@ -52,8 +55,10 @@ import styles from "./styles.module.css";
|
|
|
52
55
|
* <MenuItem>Copy</MenuItem>
|
|
53
56
|
* </Menu>
|
|
54
57
|
* </MenuTrigger>
|
|
58
|
+
* ```
|
|
55
59
|
*
|
|
56
60
|
* @example
|
|
61
|
+
* ```tsx
|
|
57
62
|
* // Menu with action handler
|
|
58
63
|
* <MenuTrigger>
|
|
59
64
|
* <Button>Actions</Button>
|
|
@@ -62,8 +67,10 @@ import styles from "./styles.module.css";
|
|
|
62
67
|
* <MenuItem id="delete">Delete</MenuItem>
|
|
63
68
|
* </Menu>
|
|
64
69
|
* </MenuTrigger>
|
|
70
|
+
* ```
|
|
65
71
|
*
|
|
66
72
|
* @example
|
|
73
|
+
* ```tsx
|
|
67
74
|
* // Menu with sections and separators
|
|
68
75
|
* <MenuTrigger>
|
|
69
76
|
* <Button>Open</Button>
|
|
@@ -78,8 +85,10 @@ import styles from "./styles.module.css";
|
|
|
78
85
|
* <MenuItem>Settings</MenuItem>
|
|
79
86
|
* </Menu>
|
|
80
87
|
* </MenuTrigger>
|
|
88
|
+
* ```
|
|
81
89
|
*
|
|
82
90
|
* @example
|
|
91
|
+
* ```tsx
|
|
83
92
|
* // Menu with selection
|
|
84
93
|
* <MenuTrigger>
|
|
85
94
|
* <Button>Group</Button>
|
|
@@ -88,8 +97,10 @@ import styles from "./styles.module.css";
|
|
|
88
97
|
* <MenuItem>Option 2</MenuItem>
|
|
89
98
|
* </Menu>
|
|
90
99
|
* </MenuTrigger>
|
|
100
|
+
* ```
|
|
91
101
|
*
|
|
92
102
|
* @example
|
|
103
|
+
* ```tsx
|
|
93
104
|
* // Menu with submenu
|
|
94
105
|
* <MenuTrigger>
|
|
95
106
|
* <Button>Actions</Button>
|
|
@@ -106,6 +117,16 @@ import styles from "./styles.module.css";
|
|
|
106
117
|
* <MenuItem>Delete</MenuItem>
|
|
107
118
|
* </Menu>
|
|
108
119
|
* </MenuTrigger>
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* @param props - {@link MenuProps}
|
|
123
|
+
* @param props.ref - Forwarded ref to the underlying Menu element.
|
|
124
|
+
* @param props.children - Menu items and sections to render.
|
|
125
|
+
* @param props.classNames - CSS class names for menu elements.
|
|
126
|
+
* @param props.popoverProps - Props passed to the internal Popover component.
|
|
127
|
+
* @param props.selectionMode - Selection mode for menu items.
|
|
128
|
+
* @param props.variant - Visual density variant for the menu.
|
|
129
|
+
* @returns The rendered Menu component.
|
|
109
130
|
*/
|
|
110
131
|
function Menu({ ref, ...props }) {
|
|
111
132
|
[props, ref] = useContextProps(props, ref ?? null, MenuContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaMenu"],"sources":["../../../src/components/menu/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 {\n Menu as AriaMenu,\n composeRenderProps,\n Popover,\n useContextProps,\n} from 'react-aria-components';\nimport { MenuContext } from './context';\nimport styles from './styles.module.css';\nimport type { MenuProps } from './types';\n\n/**\n * Menu - A dropdown menu component with keyboard navigation and selection\n *\n * Provides accessible dropdown menu functionality with support for single and\n * multiple selection modes. Includes sections, separators, and submenu support\n * with comprehensive keyboard navigation and ARIA compliance.\n *\n * IMPORTANT: Menu includes its own internal Popover. Do NOT wrap Menu in a\n * Popover component. Use the `popoverProps` prop to configure placement and\n * other popover settings.\n *\n * @example\n * // Basic menu with trigger\n * <MenuTrigger>\n * <Button>Open Menu</Button>\n * <Menu>\n * <MenuItem>Edit</MenuItem>\n * <MenuItem>Copy</MenuItem>\n * <MenuItem>Delete</MenuItem>\n * </Menu>\n * </MenuTrigger>\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaMenu"],"sources":["../../../src/components/menu/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 {\n Menu as AriaMenu,\n composeRenderProps,\n Popover,\n useContextProps,\n} from 'react-aria-components';\nimport { MenuContext } from './context';\nimport styles from './styles.module.css';\nimport type { MenuProps } from './types';\n\n/**\n * Menu - A dropdown menu component with keyboard navigation and selection\n *\n * Provides accessible dropdown menu functionality with support for single and\n * multiple selection modes. Includes sections, separators, and submenu support\n * with comprehensive keyboard navigation and ARIA compliance.\n *\n * IMPORTANT: Menu includes its own internal Popover. Do NOT wrap Menu in a\n * Popover component. Use the `popoverProps` prop to configure placement and\n * other popover settings.\n *\n * @example\n * ```tsx\n * // Basic menu with trigger\n * <MenuTrigger>\n * <Button>Open Menu</Button>\n * <Menu>\n * <MenuItem>Edit</MenuItem>\n * <MenuItem>Copy</MenuItem>\n * <MenuItem>Delete</MenuItem>\n * </Menu>\n * </MenuTrigger>\n * ```\n\n * @example\n * ```tsx\n * // Menu with custom placement\n * <MenuTrigger>\n * <Button>Open Menu</Button>\n * <Menu popoverProps={{ placement: 'top end' }}>\n * <MenuItem>Edit</MenuItem>\n * <MenuItem>Copy</MenuItem>\n * </Menu>\n * </MenuTrigger>\n * ```\n *\n * @example\n * ```tsx\n * // Menu with action handler\n * <MenuTrigger>\n * <Button>Actions</Button>\n * <Menu onAction={(key) => console.log(key)}>\n * <MenuItem id=\"edit\">Edit</MenuItem>\n * <MenuItem id=\"delete\">Delete</MenuItem>\n * </Menu>\n * </MenuTrigger>\n * ```\n *\n * @example\n * ```tsx\n * // Menu with sections and separators\n * <MenuTrigger>\n * <Button>Open</Button>\n * <Menu>\n * <MenuSection>\n * <MenuItem>New File</MenuItem>\n * <MenuItem>Open File</MenuItem>\n * </MenuSection>\n *\n * <MenuSeparator />\n *\n * <MenuItem>Settings</MenuItem>\n * </Menu>\n * </MenuTrigger>\n * ```\n *\n * @example\n * ```tsx\n * // Menu with selection\n * <MenuTrigger>\n * <Button>Group</Button>\n * <Menu selectionMode='multiple'>\n * <MenuItem>Option 1</MenuItem>\n * <MenuItem>Option 2</MenuItem>\n * </Menu>\n * </MenuTrigger>\n * ```\n *\n * @example\n * ```tsx\n * // Menu with submenu\n * <MenuTrigger>\n * <Button>Actions</Button>\n * <Menu>\n * <MenuItem>New File</MenuItem>\n * <MenuSubmenu>\n * <MenuItem>Export</MenuItem>\n * <Menu>\n * <MenuItem>Export as PDF</MenuItem>\n * <MenuItem>Export as CSV</MenuItem>\n * <MenuItem>Export as JSON</MenuItem>\n * </Menu>\n * </MenuSubmenu>\n * <MenuItem>Delete</MenuItem>\n * </Menu>\n * </MenuTrigger>\n * ```\n *\n * @param props - {@link MenuProps}\n * @param props.ref - Forwarded ref to the underlying Menu element.\n * @param props.children - Menu items and sections to render.\n * @param props.classNames - CSS class names for menu elements.\n * @param props.popoverProps - Props passed to the internal Popover component.\n * @param props.selectionMode - Selection mode for menu items.\n * @param props.variant - Visual density variant for the menu.\n * @returns The rendered Menu component.\n */\nexport function Menu<T extends object>({ ref, ...props }: MenuProps<T>) {\n [props, ref] = useContextProps(props, ref ?? null, MenuContext);\n\n const {\n children,\n classNames,\n popoverProps,\n selectionMode = 'single',\n variant = 'cozy',\n ...rest\n } = props;\n\n return (\n <Popover\n {...popoverProps}\n className={composeRenderProps(classNames?.popover, (className) =>\n clsx(styles.popover, className),\n )}\n >\n <MenuContext.Provider value={{ variant }}>\n <AriaMenu\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.menu, (className) =>\n clsx('group/menu', styles.menu, styles[variant], className),\n )}\n selectionMode={selectionMode}\n >\n {children}\n </AriaMenu>\n </MenuContext.Provider>\n </Popover>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIA,SAAgB,KAAuB,EAAE,KAAK,GAAG,SAAuB;AACtE,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,YAAY;CAE/D,MAAM,EACJ,UACA,YACA,cACA,gBAAgB,UAChB,UAAU,QACV,GAAG,SACD;AAEJ,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;YAED,oBAAC,YAAY;GAAS,OAAO,EAAE,SAAS;aACtC,oBAACA;IACC,GAAI;IACC;IACL,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,cAAc,OAAO,MAAM,OAAO,UAAU,UAAU,CAC5D;IACc;IAEd;KACQ;IACU;GACf"}
|
|
@@ -12,14 +12,29 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { TextProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime134 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/item-description.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* MenuItemDescription - Secondary descriptive text for menu items
|
|
20
|
+
*
|
|
21
|
+
* Renders as a Text component with the 'description' slot.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <MenuItemDescription>Open the document for editing</MenuItemDescription>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param props - TextProps from react-aria-components.
|
|
29
|
+
* @param props.children - Description text content.
|
|
30
|
+
* @param props.className - Optional CSS class name.
|
|
31
|
+
* @returns The rendered MenuItemDescription component.
|
|
32
|
+
*/
|
|
18
33
|
declare function MenuItemDescription({
|
|
19
34
|
children,
|
|
20
35
|
className,
|
|
21
36
|
...rest
|
|
22
|
-
}: TextProps):
|
|
37
|
+
}: TextProps): react_jsx_runtime134.JSX.Element;
|
|
23
38
|
//#endregion
|
|
24
39
|
export { MenuItemDescription };
|
|
25
40
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -20,6 +20,21 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
import styles from "./styles.module.css";
|
|
21
21
|
|
|
22
22
|
//#region src/components/menu/item-description.tsx
|
|
23
|
+
/**
|
|
24
|
+
* MenuItemDescription - Secondary descriptive text for menu items
|
|
25
|
+
*
|
|
26
|
+
* Renders as a Text component with the 'description' slot.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <MenuItemDescription>Open the document for editing</MenuItemDescription>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - TextProps from react-aria-components.
|
|
34
|
+
* @param props.children - Description text content.
|
|
35
|
+
* @param props.className - Optional CSS class name.
|
|
36
|
+
* @returns The rendered MenuItemDescription component.
|
|
37
|
+
*/
|
|
23
38
|
function MenuItemDescription({ children, className, ...rest }) {
|
|
24
39
|
return /* @__PURE__ */ jsx(Text, {
|
|
25
40
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/menu/item-description.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { Text, type TextProps } from 'react-aria-components';\nimport styles from './styles.module.css';\n\nexport function MenuItemDescription({\n children,\n className,\n ...rest\n}: TextProps) {\n return (\n <Text\n {...rest}\n slot='description'\n className={clsx(styles.description, className)}\n >\n {children}\n </Text>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/menu/item-description.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { Text, type TextProps } from 'react-aria-components';\nimport styles from './styles.module.css';\n\n/**\n * MenuItemDescription - Secondary descriptive text for menu items\n *\n * Renders as a Text component with the 'description' slot.\n *\n * @example\n * ```tsx\n * <MenuItemDescription>Open the document for editing</MenuItemDescription>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.children - Description text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered MenuItemDescription component.\n */\nexport function MenuItemDescription({\n children,\n className,\n ...rest\n}: TextProps) {\n return (\n <Text\n {...rest}\n slot='description'\n className={clsx(styles.description, className)}\n >\n {children}\n </Text>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,SAAgB,oBAAoB,EAClC,UACA,WACA,GAAG,QACS;AACZ,QACE,oBAAC;EACC,GAAI;EACJ,MAAK;EACL,WAAW,KAAK,OAAO,aAAa,UAAU;EAE7C;GACI"}
|