@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
|
@@ -11,13 +11,25 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TextProps } from "react-aria-components";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-description.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* OptionsItemDescription - Secondary text description for an options item
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <OptionsItemDescription>Additional details about this option</OptionsItemDescription>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param props - TextProps from react-aria-components.
|
|
26
|
+
* @param props.className - Optional CSS class name.
|
|
27
|
+
* @returns The rendered OptionsItemDescription component.
|
|
28
|
+
*/
|
|
17
29
|
declare function OptionsItemDescription({
|
|
18
30
|
className,
|
|
19
31
|
...rest
|
|
20
|
-
}: TextProps):
|
|
32
|
+
}: TextProps): react_jsx_runtime104.JSX.Element;
|
|
21
33
|
//#endregion
|
|
22
34
|
export { OptionsItemDescription };
|
|
23
35
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -17,6 +17,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
17
17
|
import styles from "./styles.module.css";
|
|
18
18
|
|
|
19
19
|
//#region src/components/options/item-description.tsx
|
|
20
|
+
/**
|
|
21
|
+
* OptionsItemDescription - Secondary text description for an options item
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <OptionsItemDescription>Additional details about this option</OptionsItemDescription>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param props - TextProps from react-aria-components.
|
|
29
|
+
* @param props.className - Optional CSS class name.
|
|
30
|
+
* @returns The rendered OptionsItemDescription component.
|
|
31
|
+
*/
|
|
20
32
|
function OptionsItemDescription({ className, ...rest }) {
|
|
21
33
|
return /* @__PURE__ */ jsx(Text, {
|
|
22
34
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/options/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\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Text } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { TextProps } from 'react-aria-components';\n\nexport function OptionsItemDescription({ className, ...rest }: TextProps) {\n return (\n <Text\n {...rest}\n slot='description'\n className={clsx(styles.description, className)}\n />\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-description.js","names":[],"sources":["../../../src/components/options/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\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Text } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { TextProps } from 'react-aria-components';\n\n/**\n * OptionsItemDescription - Secondary text description for an options item\n *\n * @example\n * ```tsx\n * <OptionsItemDescription>Additional details about this option</OptionsItemDescription>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.className - Optional CSS class name.\n * @returns The rendered OptionsItemDescription component.\n */\nexport function OptionsItemDescription({ className, ...rest }: TextProps) {\n return (\n <Text\n {...rest}\n slot='description'\n className={clsx(styles.description, className)}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,uBAAuB,EAAE,WAAW,GAAG,QAAmB;AACxE,QACE,oBAAC;EACC,GAAI;EACJ,MAAK;EACL,WAAW,KAAK,OAAO,aAAa,UAAU;GAC9C"}
|
|
@@ -11,13 +11,25 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TextProps } from "react-aria-components";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-label.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* OptionsItemLabel - Primary text label for an options item
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <OptionsItemLabel>Option Name</OptionsItemLabel>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param props - TextProps from react-aria-components.
|
|
26
|
+
* @param props.className - Optional CSS class name.
|
|
27
|
+
* @returns The rendered OptionsItemLabel component.
|
|
28
|
+
*/
|
|
17
29
|
declare function OptionsItemLabel({
|
|
18
30
|
className,
|
|
19
31
|
...rest
|
|
20
|
-
}: TextProps):
|
|
32
|
+
}: TextProps): react_jsx_runtime103.JSX.Element;
|
|
21
33
|
//#endregion
|
|
22
34
|
export { OptionsItemLabel };
|
|
23
35
|
//# sourceMappingURL=item-label.d.ts.map
|
|
@@ -17,6 +17,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
17
17
|
import styles from "./styles.module.css";
|
|
18
18
|
|
|
19
19
|
//#region src/components/options/item-label.tsx
|
|
20
|
+
/**
|
|
21
|
+
* OptionsItemLabel - Primary text label for an options item
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <OptionsItemLabel>Option Name</OptionsItemLabel>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param props - TextProps from react-aria-components.
|
|
29
|
+
* @param props.className - Optional CSS class name.
|
|
30
|
+
* @returns The rendered OptionsItemLabel component.
|
|
31
|
+
*/
|
|
20
32
|
function OptionsItemLabel({ className, ...rest }) {
|
|
21
33
|
return /* @__PURE__ */ jsx(Text, {
|
|
22
34
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-label.js","names":[],"sources":["../../../src/components/options/item-label.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\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Text } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { TextProps } from 'react-aria-components';\n\nexport function OptionsItemLabel({ className, ...rest }: TextProps) {\n return (\n <Text {...rest} slot='label' className={clsx(styles.label, className)} />\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-label.js","names":[],"sources":["../../../src/components/options/item-label.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\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Text } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { TextProps } from 'react-aria-components';\n\n/**\n * OptionsItemLabel - Primary text label for an options item\n *\n * @example\n * ```tsx\n * <OptionsItemLabel>Option Name</OptionsItemLabel>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.className - Optional CSS class name.\n * @returns The rendered OptionsItemLabel component.\n */\nexport function OptionsItemLabel({ className, ...rest }: TextProps) {\n return (\n <Text {...rest} slot='label' className={clsx(styles.label, className)} />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,iBAAiB,EAAE,WAAW,GAAG,QAAmB;AAClE,QACE,oBAAC;EAAK,GAAI;EAAM,MAAK;EAAQ,WAAW,KAAK,OAAO,OAAO,UAAU;GAAI"}
|
|
@@ -12,16 +12,38 @@
|
|
|
12
12
|
|
|
13
13
|
import { OptionsDataItem, OptionsItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/options/item.d.ts
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* OptionsItem - Individual selectable item within an Options list
|
|
21
|
+
*
|
|
22
|
+
* Supports icons, labels, descriptions, and color variants.
|
|
23
|
+
* String children are automatically wrapped in OptionsItemLabel.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <OptionsItem textValue="Edit">
|
|
28
|
+
* <Icon><Edit /></Icon>
|
|
29
|
+
* <OptionsItemLabel>Edit</OptionsItemLabel>
|
|
30
|
+
* </OptionsItem>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param props - {@link OptionsItemProps}
|
|
34
|
+
* @param props.children - Content to render inside the item.
|
|
35
|
+
* @param props.classNames - CSS class names for item elements.
|
|
36
|
+
* @param props.color - Color variant for the item.
|
|
37
|
+
* @param props.textValue - Accessible text value for the item.
|
|
38
|
+
* @returns The rendered OptionsItem component.
|
|
39
|
+
*/
|
|
18
40
|
declare function OptionsItem<T extends OptionsDataItem>({
|
|
19
41
|
children,
|
|
20
42
|
classNames,
|
|
21
43
|
color,
|
|
22
44
|
textValue,
|
|
23
45
|
...rest
|
|
24
|
-
}: OptionsItemProps<T>):
|
|
46
|
+
}: OptionsItemProps<T>): react_jsx_runtime105.JSX.Element;
|
|
25
47
|
//#endregion
|
|
26
48
|
export { OptionsItem };
|
|
27
49
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -22,6 +22,27 @@ import { jsx } from "react/jsx-runtime";
|
|
|
22
22
|
import styles from "./styles.module.css";
|
|
23
23
|
|
|
24
24
|
//#region src/components/options/item.tsx
|
|
25
|
+
/**
|
|
26
|
+
* OptionsItem - Individual selectable item within an Options list
|
|
27
|
+
*
|
|
28
|
+
* Supports icons, labels, descriptions, and color variants.
|
|
29
|
+
* String children are automatically wrapped in OptionsItemLabel.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <OptionsItem textValue="Edit">
|
|
34
|
+
* <Icon><Edit /></Icon>
|
|
35
|
+
* <OptionsItemLabel>Edit</OptionsItemLabel>
|
|
36
|
+
* </OptionsItem>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @param props - {@link OptionsItemProps}
|
|
40
|
+
* @param props.children - Content to render inside the item.
|
|
41
|
+
* @param props.classNames - CSS class names for item elements.
|
|
42
|
+
* @param props.color - Color variant for the item.
|
|
43
|
+
* @param props.textValue - Accessible text value for the item.
|
|
44
|
+
* @returns The rendered OptionsItem component.
|
|
45
|
+
*/
|
|
25
46
|
function OptionsItem({ children, classNames, color = "info", textValue = typeof children === "string" ? children : "", ...rest }) {
|
|
26
47
|
return /* @__PURE__ */ jsx(ListBoxItem, {
|
|
27
48
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","names":["children"],"sources":["../../../src/components/options/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, ListBoxItem } from 'react-aria-components';\nimport { IconProvider } from '../icon/context';\nimport { OptionsItemLabel } from './item-label';\nimport styles from './styles.module.css';\nimport type { OptionsDataItem, OptionsItemProps } from './types';\n\nexport function OptionsItem<T extends OptionsDataItem>({\n children,\n classNames,\n color = 'info',\n textValue = typeof children === 'string' ? children : '',\n ...rest\n}: OptionsItemProps<T>) {\n return (\n <ListBoxItem\n {...rest}\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/options-item', styles.item, className),\n )}\n textValue={textValue}\n data-color={color}\n >\n {composeRenderProps(children, (children) => (\n <IconProvider\n className={clsx(styles.icon, classNames?.icon)}\n size='small'\n >\n {typeof children === 'string' ? (\n <OptionsItemLabel>{children}</OptionsItemLabel>\n ) : (\n children\n )}\n </IconProvider>\n ))}\n </ListBoxItem>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.js","names":["children"],"sources":["../../../src/components/options/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, ListBoxItem } from 'react-aria-components';\nimport { IconProvider } from '../icon/context';\nimport { OptionsItemLabel } from './item-label';\nimport styles from './styles.module.css';\nimport type { OptionsDataItem, OptionsItemProps } from './types';\n\n/**\n * OptionsItem - Individual selectable item within an Options list\n *\n * Supports icons, labels, descriptions, and color variants.\n * String children are automatically wrapped in OptionsItemLabel.\n *\n * @example\n * ```tsx\n * <OptionsItem textValue=\"Edit\">\n * <Icon><Edit /></Icon>\n * <OptionsItemLabel>Edit</OptionsItemLabel>\n * </OptionsItem>\n * ```\n *\n * @param props - {@link OptionsItemProps}\n * @param props.children - Content to render inside the item.\n * @param props.classNames - CSS class names for item elements.\n * @param props.color - Color variant for the item.\n * @param props.textValue - Accessible text value for the item.\n * @returns The rendered OptionsItem component.\n */\nexport function OptionsItem<T extends OptionsDataItem>({\n children,\n classNames,\n color = 'info',\n textValue = typeof children === 'string' ? children : '',\n ...rest\n}: OptionsItemProps<T>) {\n return (\n <ListBoxItem\n {...rest}\n className={composeRenderProps(classNames?.item, (className) =>\n clsx('group/options-item', styles.item, className),\n )}\n textValue={textValue}\n data-color={color}\n >\n {composeRenderProps(children, (children) => (\n <IconProvider\n className={clsx(styles.icon, classNames?.icon)}\n size='small'\n >\n {typeof children === 'string' ? (\n <OptionsItemLabel>{children}</OptionsItemLabel>\n ) : (\n children\n )}\n </IconProvider>\n ))}\n </ListBoxItem>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,YAAuC,EACrD,UACA,YACA,QAAQ,QACR,YAAY,OAAO,aAAa,WAAW,WAAW,IACtD,GAAG,QACmB;AACtB,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,sBAAsB,OAAO,MAAM,UAAU,CACnD;EACU;EACX,cAAY;YAEX,mBAAmB,WAAW,eAC7B,oBAAC;GACC,WAAW,KAAK,OAAO,MAAM,YAAY,KAAK;GAC9C,MAAK;aAEJ,OAAOA,eAAa,WACnB,oBAAC,8BAAkBA,aAA4B,GAE/CA;IAEW,CACf;GACU"}
|
|
@@ -11,15 +11,34 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { OptionsDataItem, OptionsSectionProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime106 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/section.d.ts
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* OptionsSection - Groups related options with an optional header
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <OptionsSection header="Recent">
|
|
24
|
+
* <OptionsItem>Item 1</OptionsItem>
|
|
25
|
+
* <OptionsItem>Item 2</OptionsItem>
|
|
26
|
+
* </OptionsSection>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param props - {@link OptionsSectionProps}
|
|
30
|
+
* @param props.children - Options items to render in the section.
|
|
31
|
+
* @param props.classNames - CSS class names for section elements.
|
|
32
|
+
* @param props.header - Header text for the section.
|
|
33
|
+
* @param props.items - Collection of items for dynamic rendering.
|
|
34
|
+
* @returns The rendered OptionsSection component.
|
|
35
|
+
*/
|
|
17
36
|
declare function OptionsSection<T extends OptionsDataItem>({
|
|
18
37
|
children,
|
|
19
38
|
classNames,
|
|
20
39
|
header,
|
|
21
40
|
items
|
|
22
|
-
}: OptionsSectionProps<T>):
|
|
41
|
+
}: OptionsSectionProps<T>): react_jsx_runtime106.JSX.Element;
|
|
23
42
|
//#endregion
|
|
24
43
|
export { OptionsSection };
|
|
25
44
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -17,6 +17,24 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
import styles from "./styles.module.css";
|
|
18
18
|
|
|
19
19
|
//#region src/components/options/section.tsx
|
|
20
|
+
/**
|
|
21
|
+
* OptionsSection - Groups related options with an optional header
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <OptionsSection header="Recent">
|
|
26
|
+
* <OptionsItem>Item 1</OptionsItem>
|
|
27
|
+
* <OptionsItem>Item 2</OptionsItem>
|
|
28
|
+
* </OptionsSection>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param props - {@link OptionsSectionProps}
|
|
32
|
+
* @param props.children - Options items to render in the section.
|
|
33
|
+
* @param props.classNames - CSS class names for section elements.
|
|
34
|
+
* @param props.header - Header text for the section.
|
|
35
|
+
* @param props.items - Collection of items for dynamic rendering.
|
|
36
|
+
* @returns The rendered OptionsSection component.
|
|
37
|
+
*/
|
|
20
38
|
function OptionsSection({ children, classNames, header, items }) {
|
|
21
39
|
return /* @__PURE__ */ jsxs(ListBoxSection, {
|
|
22
40
|
id: header,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.js","names":[],"sources":["../../../src/components/options/section.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\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Collection, Header, ListBoxSection } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { OptionsDataItem, OptionsSectionProps } from './types';\n\nexport function OptionsSection<T extends OptionsDataItem>({\n children,\n classNames,\n header,\n items,\n}: OptionsSectionProps<T>) {\n return (\n <ListBoxSection\n id={header}\n className={clsx(styles.section, classNames?.section)}\n >\n <Header className={clsx(styles.header, classNames?.header)}>\n {header}\n </Header>\n <Collection items={items}>{children}</Collection>\n </ListBoxSection>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"section.js","names":[],"sources":["../../../src/components/options/section.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\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Collection, Header, ListBoxSection } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { OptionsDataItem, OptionsSectionProps } from './types';\n\n/**\n * OptionsSection - Groups related options with an optional header\n *\n * @example\n * ```tsx\n * <OptionsSection header=\"Recent\">\n * <OptionsItem>Item 1</OptionsItem>\n * <OptionsItem>Item 2</OptionsItem>\n * </OptionsSection>\n * ```\n *\n * @param props - {@link OptionsSectionProps}\n * @param props.children - Options items to render in the section.\n * @param props.classNames - CSS class names for section elements.\n * @param props.header - Header text for the section.\n * @param props.items - Collection of items for dynamic rendering.\n * @returns The rendered OptionsSection component.\n */\nexport function OptionsSection<T extends OptionsDataItem>({\n children,\n classNames,\n header,\n items,\n}: OptionsSectionProps<T>) {\n return (\n <ListBoxSection\n id={header}\n className={clsx(styles.section, classNames?.section)}\n >\n <Header className={clsx(styles.header, classNames?.header)}>\n {header}\n </Header>\n <Collection items={items}>{children}</Collection>\n </ListBoxSection>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,SAAgB,eAA0C,EACxD,UACA,YACA,QACA,SACyB;AACzB,QACE,qBAAC;EACC,IAAI;EACJ,WAAW,KAAK,OAAO,SAAS,YAAY,QAAQ;aAEpD,oBAAC;GAAO,WAAW,KAAK,OAAO,QAAQ,YAAY,OAAO;aACvD;IACM,EACT,oBAAC;GAAkB;GAAQ;IAAsB;GAClC"}
|
|
@@ -15,26 +15,50 @@ import { RefAttributes } from "react";
|
|
|
15
15
|
import { Key, ListBoxItemProps, ListBoxProps, ListBoxSectionProps } from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/options/types.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* Data structure for options items supporting hierarchical collections.
|
|
20
|
+
*/
|
|
18
21
|
type OptionsDataItem = {
|
|
22
|
+
/** Unique identifier for the item. */
|
|
19
23
|
id: Key;
|
|
24
|
+
/** Display name for the item. */
|
|
20
25
|
name: string;
|
|
26
|
+
/** Nested child items for hierarchical structures. */
|
|
21
27
|
children?: OptionsDataItem[];
|
|
22
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Props for the OptionsItem component.
|
|
31
|
+
*/
|
|
23
32
|
type OptionsItemProps<T extends OptionsDataItem> = Omit<ListBoxItemProps<T>, 'className'> & RefAttributes<T> & {
|
|
33
|
+
/** CSS class names for item elements. */
|
|
24
34
|
classNames?: {
|
|
35
|
+
/** Class name for the item container. */
|
|
25
36
|
item?: ListBoxItemProps['className'];
|
|
37
|
+
/** Class name for the item icon. */
|
|
26
38
|
icon?: IconProps['className'];
|
|
27
39
|
};
|
|
40
|
+
/** Color variant for the item. */
|
|
28
41
|
color?: 'info' | 'serious' | 'critical';
|
|
29
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Props for the Options component.
|
|
45
|
+
*/
|
|
30
46
|
type OptionsProps<T extends OptionsDataItem> = Omit<ListBoxProps<T>, 'orientation' | 'layout'> & RefAttributes<HTMLDivElement> & {
|
|
47
|
+
/** Size variant for the options list. */
|
|
31
48
|
size?: 'small' | 'large';
|
|
32
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Props for the OptionsSection component.
|
|
52
|
+
*/
|
|
33
53
|
type OptionsSectionProps<T extends OptionsDataItem> = Omit<ListBoxSectionProps<T>, 'className'> & {
|
|
54
|
+
/** CSS class names for section elements. */
|
|
34
55
|
classNames?: {
|
|
56
|
+
/** Class name for the section container. */
|
|
35
57
|
section?: ListBoxSectionProps<T>['className'];
|
|
58
|
+
/** Class name for the section header. */
|
|
36
59
|
header?: string;
|
|
37
60
|
};
|
|
61
|
+
/** Header text for the section. */
|
|
38
62
|
header?: string;
|
|
39
63
|
};
|
|
40
64
|
//#endregion
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationContextValue } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react30 from "react";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/context.d.ts
|
|
18
|
-
|
|
18
|
+
/** Context for sharing pagination state with sub-components */
|
|
19
|
+
declare const PaginationContext: react30.Context<PaginationContextValue>;
|
|
19
20
|
//#endregion
|
|
20
21
|
export { PaginationContext };
|
|
21
22
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -18,6 +18,7 @@ import { createContext } from "react";
|
|
|
18
18
|
import { noop } from "radashi";
|
|
19
19
|
|
|
20
20
|
//#region src/components/pagination/context.ts
|
|
21
|
+
/** Context for sharing pagination state with sub-components */
|
|
21
22
|
const PaginationContext = createContext({
|
|
22
23
|
page: 0,
|
|
23
24
|
total: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/pagination/context.ts"],"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 { noop } from 'radashi';\nimport { createContext } from 'react';\nimport type { PaginationContextValue } from './types';\n\nexport const PaginationContext = createContext<PaginationContextValue>({\n page: 0,\n total: 0,\n setPage: noop,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/pagination/context.ts"],"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 { noop } from 'radashi';\nimport { createContext } from 'react';\nimport type { PaginationContextValue } from './types';\n\n/** Context for sharing pagination state with sub-components */\nexport const PaginationContext = createContext<PaginationContextValue>({\n page: 0,\n total: 0,\n setPage: noop,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,oBAAoB,cAAsC;CACrE,MAAM;CACN,OAAO;CACP,SAAS;CACV,CAAC"}
|
|
@@ -12,23 +12,30 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/index.d.ts
|
|
18
|
+
|
|
18
19
|
/**
|
|
20
|
+
* Pagination - Lightweight page navigation with prev/next controls
|
|
19
21
|
*
|
|
20
|
-
*
|
|
22
|
+
* Displays up to 5 page numbers at a time, automatically adjusting
|
|
23
|
+
* the visible range as the user navigates.
|
|
21
24
|
*
|
|
22
25
|
* @example
|
|
23
|
-
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <Pagination value={1} total={10} onChange={setPage} />
|
|
28
|
+
* ```
|
|
24
29
|
*
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* @param props - {@link PaginationProps}
|
|
31
|
+
* @param props.children - Custom pagination content (overrides default layout).
|
|
32
|
+
* @param props.classNames - CSS class names for pagination elements.
|
|
33
|
+
* @param props.defaultValue - Default page number for uncontrolled mode.
|
|
34
|
+
* @param props.total - Total number of pages.
|
|
35
|
+
* @param props.value - Current page number for controlled mode (1-indexed).
|
|
36
|
+
* @param props.isLoading - Whether the pagination is in a loading state.
|
|
37
|
+
* @param props.onChange - Handler called when the page changes.
|
|
38
|
+
* @returns The rendered Pagination component.
|
|
32
39
|
*/
|
|
33
40
|
declare function Pagination({
|
|
34
41
|
children,
|
|
@@ -39,7 +46,7 @@ declare function Pagination({
|
|
|
39
46
|
isLoading,
|
|
40
47
|
onChange,
|
|
41
48
|
...rest
|
|
42
|
-
}: PaginationProps):
|
|
49
|
+
}: PaginationProps): react_jsx_runtime107.JSX.Element;
|
|
43
50
|
//#endregion
|
|
44
51
|
export { Pagination };
|
|
45
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -25,19 +25,25 @@ import styles from "./styles.module.css";
|
|
|
25
25
|
|
|
26
26
|
//#region src/components/pagination/index.tsx
|
|
27
27
|
/**
|
|
28
|
+
* Pagination - Lightweight page navigation with prev/next controls
|
|
28
29
|
*
|
|
29
|
-
*
|
|
30
|
+
* Displays up to 5 page numbers at a time, automatically adjusting
|
|
31
|
+
* the visible range as the user navigates.
|
|
30
32
|
*
|
|
31
33
|
* @example
|
|
32
|
-
*
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <Pagination value={1} total={10} onChange={setPage} />
|
|
36
|
+
* ```
|
|
33
37
|
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* @param props - {@link PaginationProps}
|
|
39
|
+
* @param props.children - Custom pagination content (overrides default layout).
|
|
40
|
+
* @param props.classNames - CSS class names for pagination elements.
|
|
41
|
+
* @param props.defaultValue - Default page number for uncontrolled mode.
|
|
42
|
+
* @param props.total - Total number of pages.
|
|
43
|
+
* @param props.value - Current page number for controlled mode (1-indexed).
|
|
44
|
+
* @param props.isLoading - Whether the pagination is in a loading state.
|
|
45
|
+
* @param props.onChange - Handler called when the page changes.
|
|
46
|
+
* @returns The rendered Pagination component.
|
|
41
47
|
*/
|
|
42
48
|
function Pagination({ children, classNames, defaultValue = 1, total = 0, value, isLoading, onChange, ...rest }) {
|
|
43
49
|
const [page, setPage] = useControlledState(value, defaultValue, onChange);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/pagination/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 { useControlledState } from '@react-stately/utils';\nimport { PaginationContext } from './context';\nimport { PaginationNext } from './next';\nimport { PaginationPages } from './pages';\nimport { PaginationPrev } from './prev';\nimport styles from './styles.module.css';\nimport type { PaginationProps } from './types';\n\n/**\n
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/pagination/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 { useControlledState } from '@react-stately/utils';\nimport { PaginationContext } from './context';\nimport { PaginationNext } from './next';\nimport { PaginationPages } from './pages';\nimport { PaginationPrev } from './prev';\nimport styles from './styles.module.css';\nimport type { PaginationProps } from './types';\n\n/**\n * Pagination - Lightweight page navigation with prev/next controls\n *\n * Displays up to 5 page numbers at a time, automatically adjusting\n * the visible range as the user navigates.\n *\n * @example\n * ```tsx\n * <Pagination value={1} total={10} onChange={setPage} />\n * ```\n *\n * @param props - {@link PaginationProps}\n * @param props.children - Custom pagination content (overrides default layout).\n * @param props.classNames - CSS class names for pagination elements.\n * @param props.defaultValue - Default page number for uncontrolled mode.\n * @param props.total - Total number of pages.\n * @param props.value - Current page number for controlled mode (1-indexed).\n * @param props.isLoading - Whether the pagination is in a loading state.\n * @param props.onChange - Handler called when the page changes.\n * @returns The rendered Pagination component.\n */\nexport function Pagination({\n children,\n classNames,\n defaultValue = 1,\n total = 0,\n value,\n isLoading,\n onChange,\n ...rest\n}: PaginationProps) {\n const [page, setPage] = useControlledState(value, defaultValue, onChange);\n\n return (\n <PaginationContext.Provider value={{ page, total, isLoading, setPage }}>\n <nav\n {...rest}\n className={clsx(styles.container, classNames?.container)}\n aria-label={`Page ${page} of ${total}`}\n >\n {children || (\n <>\n <PaginationPrev className={classNames?.prev} />\n <PaginationPages className={classNames?.pages} />\n <PaginationNext className={classNames?.next} />\n </>\n )}\n </nav>\n </PaginationContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,WAAW,EACzB,UACA,YACA,eAAe,GACf,QAAQ,GACR,OACA,WACA,UACA,GAAG,QACe;CAClB,MAAM,CAAC,MAAM,WAAW,mBAAmB,OAAO,cAAc,SAAS;AAEzE,QACE,oBAAC,kBAAkB;EAAS,OAAO;GAAE;GAAM;GAAO;GAAW;GAAS;YACpE,oBAAC;GACC,GAAI;GACJ,WAAW,KAAK,OAAO,WAAW,YAAY,UAAU;GACxD,cAAY,QAAQ,KAAK,MAAM;aAE9B,YACC;IACE,oBAAC,kBAAe,WAAW,YAAY,OAAQ;IAC/C,oBAAC,mBAAgB,WAAW,YAAY,QAAS;IACjD,oBAAC,kBAAe,WAAW,YAAY,OAAQ;OAC9C;IAED;GACqB"}
|
|
@@ -12,13 +12,28 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationNextProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime108 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/next.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* PaginationNext - Next page navigation button
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Pagination page={1} total={10}>
|
|
24
|
+
* <PaginationNext onPress={(page) => console.log('Next page:', page)} />
|
|
25
|
+
* </Pagination>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param props - {@link PaginationNextProps}
|
|
29
|
+
* @param props.className - Optional CSS class name.
|
|
30
|
+
* @param props.onPress - Handler called when the next button is pressed.
|
|
31
|
+
* @returns The rendered PaginationNext component.
|
|
32
|
+
*/
|
|
18
33
|
declare function PaginationNext({
|
|
19
34
|
className,
|
|
20
35
|
onPress
|
|
21
|
-
}: PaginationNextProps):
|
|
36
|
+
}: PaginationNextProps): react_jsx_runtime108.JSX.Element;
|
|
22
37
|
//#endregion
|
|
23
38
|
export { PaginationNext };
|
|
24
39
|
//# sourceMappingURL=next.d.ts.map
|
|
@@ -26,6 +26,21 @@ import ChevronRight from "@accelint/icons/chevron-right";
|
|
|
26
26
|
import styles from "./styles.module.css";
|
|
27
27
|
|
|
28
28
|
//#region src/components/pagination/next.tsx
|
|
29
|
+
/**
|
|
30
|
+
* PaginationNext - Next page navigation button
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <Pagination page={1} total={10}>
|
|
35
|
+
* <PaginationNext onPress={(page) => console.log('Next page:', page)} />
|
|
36
|
+
* </Pagination>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @param props - {@link PaginationNextProps}
|
|
40
|
+
* @param props.className - Optional CSS class name.
|
|
41
|
+
* @param props.onPress - Handler called when the next button is pressed.
|
|
42
|
+
* @returns The rendered PaginationNext component.
|
|
43
|
+
*/
|
|
29
44
|
function PaginationNext({ className, onPress }) {
|
|
30
45
|
const { page, total, setPage } = useContext(PaginationContext);
|
|
31
46
|
return /* @__PURE__ */ jsx(Button$1, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","names":["Button","className"],"sources":["../../../src/components/pagination/next.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 ChevronRight from '@accelint/icons/chevron-right';\nimport { useContext } from 'react';\nimport { composeRenderProps } from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { PaginationContext } from './context';\nimport styles from './styles.module.css';\nimport { isNavigationDisabled } from './utils';\nimport type { PaginationNextProps } from './types';\n\nexport function PaginationNext({ className, onPress }: PaginationNextProps) {\n const { page, total, setPage } = useContext(PaginationContext);\n\n return (\n <Button\n className={composeRenderProps(className, (className) =>\n clsx(styles.button, className),\n )}\n color='mono-bold'\n variant='icon'\n isDisabled={page >= total || isNavigationDisabled(total, page)}\n onPress={() => {\n setPage(page + 1);\n onPress?.(page + 1);\n }}\n aria-label='Next page'\n >\n <Icon>\n <ChevronRight />\n </Icon>\n </Button>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"next.js","names":["Button","className"],"sources":["../../../src/components/pagination/next.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 ChevronRight from '@accelint/icons/chevron-right';\nimport { useContext } from 'react';\nimport { composeRenderProps } from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { PaginationContext } from './context';\nimport styles from './styles.module.css';\nimport { isNavigationDisabled } from './utils';\nimport type { PaginationNextProps } from './types';\n\n/**\n * PaginationNext - Next page navigation button\n *\n * @example\n * ```tsx\n * <Pagination page={1} total={10}>\n * <PaginationNext onPress={(page) => console.log('Next page:', page)} />\n * </Pagination>\n * ```\n *\n * @param props - {@link PaginationNextProps}\n * @param props.className - Optional CSS class name.\n * @param props.onPress - Handler called when the next button is pressed.\n * @returns The rendered PaginationNext component.\n */\nexport function PaginationNext({ className, onPress }: PaginationNextProps) {\n const { page, total, setPage } = useContext(PaginationContext);\n\n return (\n <Button\n className={composeRenderProps(className, (className) =>\n clsx(styles.button, className),\n )}\n color='mono-bold'\n variant='icon'\n isDisabled={page >= total || isNavigationDisabled(total, page)}\n onPress={() => {\n setPage(page + 1);\n onPress?.(page + 1);\n }}\n aria-label='Next page'\n >\n <Icon>\n <ChevronRight />\n </Icon>\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,SAAgB,eAAe,EAAE,WAAW,WAAgC;CAC1E,MAAM,EAAE,MAAM,OAAO,YAAY,WAAW,kBAAkB;AAE9D,QACE,oBAACA;EACC,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,QAAQC,YAAU,CAC/B;EACD,OAAM;EACN,SAAQ;EACR,YAAY,QAAQ,SAAS,qBAAqB,OAAO,KAAK;EAC9D,eAAe;AACb,WAAQ,OAAO,EAAE;AACjB,aAAU,OAAO,EAAE;;EAErB,cAAW;YAEX,oBAAC,kBACC,oBAAC,iBAAe,GACX;GACA"}
|
|
@@ -12,13 +12,32 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationPagesProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime110 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/pages.d.ts
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* PaginationPages - Page number toggle buttons
|
|
21
|
+
*
|
|
22
|
+
* Renders up to 5 page numbers, automatically adjusting the
|
|
23
|
+
* visible range based on current page position.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <Pagination page={3} total={20}>
|
|
28
|
+
* <PaginationPages onPress={(page) => console.log('Go to page:', page)} />
|
|
29
|
+
* </Pagination>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @param props - {@link PaginationPagesProps}
|
|
33
|
+
* @param props.className - Optional CSS class name.
|
|
34
|
+
* @param props.onPress - Handler called when a page button is pressed.
|
|
35
|
+
* @returns The rendered PaginationPages component, or null if invalid state.
|
|
36
|
+
*/
|
|
18
37
|
declare function PaginationPages({
|
|
19
38
|
className,
|
|
20
39
|
onPress
|
|
21
|
-
}: PaginationPagesProps):
|
|
40
|
+
}: PaginationPagesProps): react_jsx_runtime110.JSX.Element[] | null;
|
|
22
41
|
//#endregion
|
|
23
42
|
export { PaginationPages };
|
|
24
43
|
//# sourceMappingURL=pages.d.ts.map
|
|
@@ -24,6 +24,24 @@ import { jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import styles from "./styles.module.css";
|
|
25
25
|
|
|
26
26
|
//#region src/components/pagination/pages.tsx
|
|
27
|
+
/**
|
|
28
|
+
* PaginationPages - Page number toggle buttons
|
|
29
|
+
*
|
|
30
|
+
* Renders up to 5 page numbers, automatically adjusting the
|
|
31
|
+
* visible range based on current page position.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <Pagination page={3} total={20}>
|
|
36
|
+
* <PaginationPages onPress={(page) => console.log('Go to page:', page)} />
|
|
37
|
+
* </Pagination>
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @param props - {@link PaginationPagesProps}
|
|
41
|
+
* @param props.className - Optional CSS class name.
|
|
42
|
+
* @param props.onPress - Handler called when a page button is pressed.
|
|
43
|
+
* @returns The rendered PaginationPages component, or null if invalid state.
|
|
44
|
+
*/
|
|
27
45
|
function PaginationPages({ className, onPress }) {
|
|
28
46
|
const { page, total, isLoading, setPage } = useContext(PaginationContext);
|
|
29
47
|
const { minRange, maxRange } = useMemo(() => getPaginationRange(total, page), [total, page]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.js","names":["ToggleButton","className"],"sources":["../../../src/components/pagination/pages.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 { useContext, useMemo } from 'react';\nimport { composeRenderProps } from 'react-aria-components';\nimport { ToggleButton } from '../button/toggle';\nimport { PaginationContext } from './context';\nimport styles from './styles.module.css';\nimport { getPaginationRange, range } from './utils';\nimport type { PaginationPagesProps } from './types';\n\nexport function PaginationPages({ className, onPress }: PaginationPagesProps) {\n const { page, total, isLoading, setPage } = useContext(PaginationContext);\n const { minRange, maxRange } = useMemo(\n () => getPaginationRange(total, page),\n [total, page],\n );\n const pages = useMemo(() => range(minRange, maxRange), [minRange, maxRange]);\n\n // No display for invalid props.\n if (minRange === 0 || maxRange === 0 || isLoading) {\n return null;\n }\n\n return pages.map((number) => (\n <ToggleButton\n key={`page-${number}`}\n className={composeRenderProps(className, (className) =>\n clsx(styles.button, className),\n )}\n color='accent'\n variant='flat'\n isSelected={number === page}\n onPress={() => {\n setPage(number);\n onPress?.(number);\n }}\n aria-current={number === page ? 'page' : undefined}\n >\n {number}\n </ToggleButton>\n ));\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pages.js","names":["ToggleButton","className"],"sources":["../../../src/components/pagination/pages.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 { useContext, useMemo } from 'react';\nimport { composeRenderProps } from 'react-aria-components';\nimport { ToggleButton } from '../button/toggle';\nimport { PaginationContext } from './context';\nimport styles from './styles.module.css';\nimport { getPaginationRange, range } from './utils';\nimport type { PaginationPagesProps } from './types';\n\n/**\n * PaginationPages - Page number toggle buttons\n *\n * Renders up to 5 page numbers, automatically adjusting the\n * visible range based on current page position.\n *\n * @example\n * ```tsx\n * <Pagination page={3} total={20}>\n * <PaginationPages onPress={(page) => console.log('Go to page:', page)} />\n * </Pagination>\n * ```\n *\n * @param props - {@link PaginationPagesProps}\n * @param props.className - Optional CSS class name.\n * @param props.onPress - Handler called when a page button is pressed.\n * @returns The rendered PaginationPages component, or null if invalid state.\n */\nexport function PaginationPages({ className, onPress }: PaginationPagesProps) {\n const { page, total, isLoading, setPage } = useContext(PaginationContext);\n const { minRange, maxRange } = useMemo(\n () => getPaginationRange(total, page),\n [total, page],\n );\n const pages = useMemo(() => range(minRange, maxRange), [minRange, maxRange]);\n\n // No display for invalid props.\n if (minRange === 0 || maxRange === 0 || isLoading) {\n return null;\n }\n\n return pages.map((number) => (\n <ToggleButton\n key={`page-${number}`}\n className={composeRenderProps(className, (className) =>\n clsx(styles.button, className),\n )}\n color='accent'\n variant='flat'\n isSelected={number === page}\n onPress={() => {\n setPage(number);\n onPress?.(number);\n }}\n aria-current={number === page ? 'page' : undefined}\n >\n {number}\n </ToggleButton>\n ));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,gBAAgB,EAAE,WAAW,WAAiC;CAC5E,MAAM,EAAE,MAAM,OAAO,WAAW,YAAY,WAAW,kBAAkB;CACzE,MAAM,EAAE,UAAU,aAAa,cACvB,mBAAmB,OAAO,KAAK,EACrC,CAAC,OAAO,KAAK,CACd;CACD,MAAM,QAAQ,cAAc,MAAM,UAAU,SAAS,EAAE,CAAC,UAAU,SAAS,CAAC;AAG5E,KAAI,aAAa,KAAK,aAAa,KAAK,UACtC,QAAO;AAGT,QAAO,MAAM,KAAK,WAChB,oBAACA;EAEC,WAAW,mBAAmB,YAAY,gBACxC,KAAK,OAAO,QAAQC,YAAU,CAC/B;EACD,OAAM;EACN,SAAQ;EACR,YAAY,WAAW;EACvB,eAAe;AACb,WAAQ,OAAO;AACf,aAAU,OAAO;;EAEnB,gBAAc,WAAW,OAAO,SAAS;YAExC;IAbI,QAAQ,SAcA,CACf"}
|