@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
|
@@ -29,6 +29,9 @@ type Right = 'right';
|
|
|
29
29
|
type Left = 'left';
|
|
30
30
|
type XAxisUnion = Right | Left;
|
|
31
31
|
type XAxisIntersection = `${Right} ${Left}` | `${Left} ${Right}`;
|
|
32
|
+
/**
|
|
33
|
+
* Props for the DrawerLayout component.
|
|
34
|
+
*/
|
|
32
35
|
type DrawerLayoutProps = ComponentPropsWithRef<'div'> & {
|
|
33
36
|
/**
|
|
34
37
|
* Which drawers should extend to full container dimensions.
|
|
@@ -106,8 +109,13 @@ type DrawerLayoutProps = ComponentPropsWithRef<'div'> & {
|
|
|
106
109
|
*/
|
|
107
110
|
push?: XAxisUnion | YAxisUnion | XAxisIntersection | YAxisIntersection | `${XAxisUnion} ${YAxisUnion}` | `${YAxisUnion} ${XAxisUnion}` | `${XAxisUnion} ${YAxisIntersection}` | `${YAxisIntersection} ${XAxisUnion}` | `${YAxisUnion} ${XAxisIntersection}` | `${XAxisIntersection} ${YAxisUnion}` | `${XAxisIntersection} ${YAxisIntersection}` | `${YAxisIntersection} ${XAxisIntersection}`;
|
|
108
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* Props for the Drawer component.
|
|
114
|
+
*/
|
|
109
115
|
type DrawerProps = Omit<ComponentPropsWithRef<'div'>, 'onChange'> & {
|
|
116
|
+
/** Unique identifier for the drawer. */
|
|
110
117
|
id: UniqueId;
|
|
118
|
+
/** ID of the view to display initially. */
|
|
111
119
|
defaultView?: UniqueId;
|
|
112
120
|
/**
|
|
113
121
|
* The placement of the drawer.
|
|
@@ -121,6 +129,9 @@ type DrawerProps = Omit<ComponentPropsWithRef<'div'>, 'onChange'> & {
|
|
|
121
129
|
size?: 'small' | 'medium' | 'large';
|
|
122
130
|
onChange?: (view: UniqueId | null) => void;
|
|
123
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* Props for the DrawerMenu component.
|
|
134
|
+
*/
|
|
124
135
|
type DrawerMenuProps = ComponentPropsWithRef<'nav'> & {
|
|
125
136
|
/**
|
|
126
137
|
* The position of the menu.
|
|
@@ -161,18 +172,128 @@ type DrawerMenuItemProps = Omit<ToggleButtonProps$1, 'id' | 'isSelected' | 'clas
|
|
|
161
172
|
tooltip?: string;
|
|
162
173
|
};
|
|
163
174
|
};
|
|
175
|
+
/**
|
|
176
|
+
* Props for the DrawerHeaderTitle component.
|
|
177
|
+
*/
|
|
164
178
|
type DrawerTitleProps = Omit<HeadingProps, 'level'> & AriaAttributesWithRef<HTMLHeadingElement> & {
|
|
165
179
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
166
180
|
};
|
|
181
|
+
/**
|
|
182
|
+
* Event payload for opening a drawer view.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* ```ts
|
|
186
|
+
* const event: DrawerOpenEvent = {
|
|
187
|
+
* type: 'Drawer:open',
|
|
188
|
+
* payload: { view: viewId }
|
|
189
|
+
* };
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
167
192
|
type DrawerOpenEvent = Payload<typeof DrawerEventTypes.open, {
|
|
168
193
|
view: UniqueId;
|
|
169
194
|
}>;
|
|
195
|
+
/**
|
|
196
|
+
* Event payload for closing a drawer view.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* const event: DrawerCloseEvent = {
|
|
201
|
+
* type: 'Drawer:close',
|
|
202
|
+
* payload: { view: viewId }
|
|
203
|
+
* };
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
206
|
+
type DrawerCloseEvent = Payload<typeof DrawerEventTypes.close, {
|
|
207
|
+
view: UniqueId;
|
|
208
|
+
}>;
|
|
209
|
+
/**
|
|
210
|
+
* Event payload for toggling a drawer view's visibility.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* const event: DrawerToggleEvent = {
|
|
215
|
+
* type: 'Drawer:toggle',
|
|
216
|
+
* payload: { view: viewId }
|
|
217
|
+
* };
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
170
220
|
type DrawerToggleEvent = Payload<typeof DrawerEventTypes.toggle, {
|
|
171
221
|
view: UniqueId;
|
|
172
222
|
}>;
|
|
173
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Union type of all possible drawer and view stack events.
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```ts
|
|
228
|
+
* import type { DrawerEvent } from './types';
|
|
229
|
+
*
|
|
230
|
+
* function handleEvent(event: DrawerEvent) {
|
|
231
|
+
* if (event.type === 'Drawer:open') {
|
|
232
|
+
* console.log('Opening view:', event.payload.view);
|
|
233
|
+
* }
|
|
234
|
+
* }
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
type DrawerEvent = DrawerOpenEvent | DrawerCloseEvent | DrawerToggleEvent | ViewStackEvent;
|
|
238
|
+
/**
|
|
239
|
+
* Simple event types for drawer actions within a drawer context.
|
|
240
|
+
*
|
|
241
|
+
* @example
|
|
242
|
+
* ```tsx
|
|
243
|
+
* // Trigger back navigation
|
|
244
|
+
* <DrawerTrigger for="back">
|
|
245
|
+
* <Button>Back</Button>
|
|
246
|
+
* </DrawerTrigger>
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```tsx
|
|
251
|
+
* // Push a specific view by ID
|
|
252
|
+
* <DrawerTrigger for={viewId}>
|
|
253
|
+
* <Button>Open View</Button>
|
|
254
|
+
* </DrawerTrigger>
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
174
257
|
type SimpleEvents = 'back' | 'clear' | 'close' | 'reset' | UniqueId;
|
|
258
|
+
/**
|
|
259
|
+
* Targeted event types for controlling specific drawers from outside their context.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```tsx
|
|
263
|
+
* // Open a specific drawer view
|
|
264
|
+
* <DrawerTrigger for={`open:${viewId}`}>
|
|
265
|
+
* <Button>Open Settings</Button>
|
|
266
|
+
* </DrawerTrigger>
|
|
267
|
+
* ```
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```tsx
|
|
271
|
+
* // Close a specific drawer
|
|
272
|
+
* <DrawerTrigger for={`close:${drawerId}`}>
|
|
273
|
+
* <Button>Close</Button>
|
|
274
|
+
* </DrawerTrigger>
|
|
275
|
+
* ```
|
|
276
|
+
*/
|
|
175
277
|
type TargetedEvents = `back:${UniqueId}` | `clear:${UniqueId}` | `close:${UniqueId}` | `open:${UniqueId}` | `toggle:${UniqueId}` | `reset:${UniqueId}`;
|
|
278
|
+
/**
|
|
279
|
+
* Array of events to trigger sequentially from a single interaction.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```tsx
|
|
283
|
+
* // Reset and then open a view
|
|
284
|
+
* <DrawerTrigger for={['reset', viewId]}>
|
|
285
|
+
* <Button>Reset & Open</Button>
|
|
286
|
+
* </DrawerTrigger>
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* ```tsx
|
|
291
|
+
* // Open multiple drawers
|
|
292
|
+
* <DrawerTrigger for={[`open:${drawerA}`, `open:${drawerB}`]}>
|
|
293
|
+
* <Button>Open Both</Button>
|
|
294
|
+
* </DrawerTrigger>
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
176
297
|
type ChainedEvents = (SimpleEvents | TargetedEvents)[];
|
|
177
298
|
type DrawerTriggerProps = RefAttributes<FocusableElement> & {
|
|
178
299
|
children: ReactElement<DOMAttributes<FocusableElement>, string>;
|
|
@@ -188,6 +309,7 @@ type DrawerTriggerProps = RefAttributes<FocusableElement> & {
|
|
|
188
309
|
* _NOTE_: Open differs from Push (just a UniqueId), Open clears the stack before pushing the new view
|
|
189
310
|
*
|
|
190
311
|
* @example
|
|
312
|
+
* ```ts
|
|
191
313
|
* // Reset a drawer stack and then push a view on:
|
|
192
314
|
* ['reset', myViewId]
|
|
193
315
|
*
|
|
@@ -199,14 +321,39 @@ type DrawerTriggerProps = RefAttributes<FocusableElement> & {
|
|
|
199
321
|
*
|
|
200
322
|
* // Close the current drawer from inside its context:
|
|
201
323
|
* 'close'
|
|
324
|
+
* ```
|
|
202
325
|
*/
|
|
203
326
|
for: SimpleEvents | TargetedEvents | ChainedEvents;
|
|
204
327
|
};
|
|
328
|
+
/**
|
|
329
|
+
* Context value for sharing Drawer state across child components.
|
|
330
|
+
*/
|
|
205
331
|
type DrawerContextValue = {
|
|
332
|
+
/** Registers a view ID with the drawer. */
|
|
206
333
|
register: (view: UniqueId) => void;
|
|
334
|
+
/** Unregisters a view ID from the drawer. */
|
|
207
335
|
unregister: (view: UniqueId) => void;
|
|
336
|
+
/** The placement of the drawer relative to the viewport. */
|
|
208
337
|
placement: XAxisUnion | YAxisUnion;
|
|
209
338
|
};
|
|
339
|
+
/**
|
|
340
|
+
* Props for the DrawerClose component.
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* ```tsx
|
|
344
|
+
* // Close current drawer
|
|
345
|
+
* <DrawerClose />
|
|
346
|
+
* ```
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* ```tsx
|
|
350
|
+
* // Close specific drawer
|
|
351
|
+
* <DrawerClose for={drawerId} aria-label="Close settings" />
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
type DrawerCloseProps = AriaAttributesWithRef<FocusableElement> & {
|
|
355
|
+
for?: UniqueId;
|
|
356
|
+
};
|
|
210
357
|
//#endregion
|
|
211
|
-
export { DrawerContextValue, DrawerEvent, DrawerLayoutProps, DrawerMenuItemProps, DrawerMenuProps, DrawerOpenEvent, DrawerProps, DrawerTitleProps, DrawerToggleEvent, DrawerTriggerProps };
|
|
358
|
+
export { ChainedEvents, DrawerCloseEvent, DrawerCloseProps, DrawerContextValue, DrawerEvent, DrawerLayoutProps, DrawerMenuItemProps, DrawerMenuProps, DrawerOpenEvent, DrawerProps, DrawerTitleProps, DrawerToggleEvent, DrawerTriggerProps, SimpleEvents, TargetedEvents };
|
|
212
359
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -13,15 +13,38 @@
|
|
|
13
13
|
import { ViewStackViewProps } from "../view-stack/types.js";
|
|
14
14
|
import "client-only";
|
|
15
15
|
import { ComponentPropsWithRef } from "react";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/drawer/view.d.ts
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* DrawerView - Content region for a specific drawer view.
|
|
22
|
+
*
|
|
23
|
+
* Each view is identified by a unique `id` and displayed when that
|
|
24
|
+
* view is active in the stack. Contains DrawerHeader, DrawerContent,
|
|
25
|
+
* and optionally DrawerFooter.
|
|
26
|
+
*
|
|
27
|
+
* @param props - ViewStackViewProps & ComponentPropsWithRef<'div'>
|
|
28
|
+
* @param props.id - Unique identifier for the view.
|
|
29
|
+
* @param props.children - Content to render inside the view.
|
|
30
|
+
* @param props.className - Optional CSS class name.
|
|
31
|
+
* @returns The rendered DrawerView component.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <DrawerView id={viewId}>
|
|
36
|
+
* <DrawerHeader title="Settings" />
|
|
37
|
+
* <DrawerContent>View content here</DrawerContent>
|
|
38
|
+
* <DrawerFooter>Footer actions</DrawerFooter>
|
|
39
|
+
* </DrawerView>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
19
42
|
declare function DrawerView({
|
|
20
43
|
id,
|
|
21
44
|
children,
|
|
22
45
|
className,
|
|
23
46
|
...rest
|
|
24
|
-
}: ViewStackViewProps & ComponentPropsWithRef<'div'>):
|
|
47
|
+
}: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime73.JSX.Element;
|
|
25
48
|
//#endregion
|
|
26
49
|
export { DrawerView };
|
|
27
50
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -22,6 +22,28 @@ import { jsx } from "react/jsx-runtime";
|
|
|
22
22
|
import styles from "./styles.module.css";
|
|
23
23
|
|
|
24
24
|
//#region src/components/drawer/view.tsx
|
|
25
|
+
/**
|
|
26
|
+
* DrawerView - Content region for a specific drawer view.
|
|
27
|
+
*
|
|
28
|
+
* Each view is identified by a unique `id` and displayed when that
|
|
29
|
+
* view is active in the stack. Contains DrawerHeader, DrawerContent,
|
|
30
|
+
* and optionally DrawerFooter.
|
|
31
|
+
*
|
|
32
|
+
* @param props - ViewStackViewProps & ComponentPropsWithRef<'div'>
|
|
33
|
+
* @param props.id - Unique identifier for the view.
|
|
34
|
+
* @param props.children - Content to render inside the view.
|
|
35
|
+
* @param props.className - Optional CSS class name.
|
|
36
|
+
* @returns The rendered DrawerView component.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <DrawerView id={viewId}>
|
|
41
|
+
* <DrawerHeader title="Settings" />
|
|
42
|
+
* <DrawerContent>View content here</DrawerContent>
|
|
43
|
+
* <DrawerFooter>Footer actions</DrawerFooter>
|
|
44
|
+
* </DrawerView>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
25
47
|
function DrawerView({ id, children, className, ...rest }) {
|
|
26
48
|
const { register, unregister } = useContext(DrawerContext);
|
|
27
49
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","names":[],"sources":["../../../src/components/drawer/view.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 { type ComponentPropsWithRef, useContext, useEffect } from 'react';\nimport { ViewStackView } from '../view-stack/view';\nimport { DrawerContext } from './context';\nimport styles from './styles.module.css';\nimport type { ViewStackViewProps } from '../view-stack/types';\n\nexport function DrawerView({\n id,\n children,\n className,\n ...rest\n}: ViewStackViewProps & ComponentPropsWithRef<'div'>) {\n const { register, unregister } = useContext(DrawerContext);\n\n useEffect(() => {\n register(id);\n\n return () => unregister(id);\n }, [register, unregister, id]);\n\n return (\n <ViewStackView id={id}>\n <div {...rest} className={clsx(styles.view, className)} role='tabpanel'>\n {children}\n </div>\n </ViewStackView>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view.js","names":[],"sources":["../../../src/components/drawer/view.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 { type ComponentPropsWithRef, useContext, useEffect } from 'react';\nimport { ViewStackView } from '../view-stack/view';\nimport { DrawerContext } from './context';\nimport styles from './styles.module.css';\nimport type { ViewStackViewProps } from '../view-stack/types';\n\n/**\n * DrawerView - Content region for a specific drawer view.\n *\n * Each view is identified by a unique `id` and displayed when that\n * view is active in the stack. Contains DrawerHeader, DrawerContent,\n * and optionally DrawerFooter.\n *\n * @param props - ViewStackViewProps & ComponentPropsWithRef<'div'>\n * @param props.id - Unique identifier for the view.\n * @param props.children - Content to render inside the view.\n * @param props.className - Optional CSS class name.\n * @returns The rendered DrawerView component.\n *\n * @example\n * ```tsx\n * <DrawerView id={viewId}>\n * <DrawerHeader title=\"Settings\" />\n * <DrawerContent>View content here</DrawerContent>\n * <DrawerFooter>Footer actions</DrawerFooter>\n * </DrawerView>\n * ```\n */\nexport function DrawerView({\n id,\n children,\n className,\n ...rest\n}: ViewStackViewProps & ComponentPropsWithRef<'div'>) {\n const { register, unregister } = useContext(DrawerContext);\n\n useEffect(() => {\n register(id);\n\n return () => unregister(id);\n }, [register, unregister, id]);\n\n return (\n <ViewStackView id={id}>\n <div {...rest} className={clsx(styles.view, className)} role='tabpanel'>\n {children}\n </div>\n </ViewStackView>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SAAgB,WAAW,EACzB,IACA,UACA,WACA,GAAG,QACiD;CACpD,MAAM,EAAE,UAAU,eAAe,WAAW,cAAc;AAE1D,iBAAgB;AACd,WAAS,GAAG;AAEZ,eAAa,WAAW,GAAG;IAC1B;EAAC;EAAU;EAAY;EAAG,CAAC;AAE9B,QACE,oBAAC;EAAkB;YACjB,oBAAC;GAAI,GAAI;GAAM,WAAW,KAAK,OAAO,MAAM,UAAU;GAAE,MAAK;GAC1D;IACG;GACQ"}
|
|
@@ -12,56 +12,158 @@
|
|
|
12
12
|
|
|
13
13
|
import { FlashcardComponentProps, FlashcardDetailsListProps, FlashcardProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as react24 from "react";
|
|
16
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/flashcard/index.d.ts
|
|
19
|
-
declare const FlashcardContext: react14.Context<FlashcardProps>;
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
20
|
+
* Context for sharing Flashcard state across child components.
|
|
21
|
+
*/
|
|
22
|
+
declare const FlashcardContext: react24.Context<FlashcardProps>;
|
|
23
|
+
/**
|
|
24
|
+
* Flashcard - A quick visual identifier for map entity data.
|
|
25
|
+
*
|
|
26
|
+
* Container component that provides loading state and header/subheader
|
|
27
|
+
* to child components via context.
|
|
22
28
|
*
|
|
29
|
+
* @param props - {@link FlashcardProps}
|
|
30
|
+
* @param props.isLoading - Whether the flashcard is in a loading state.
|
|
31
|
+
* @param props.header - Primary header text.
|
|
32
|
+
* @param props.subheader - Secondary text below the header.
|
|
33
|
+
* @param props.children - Child components to render.
|
|
34
|
+
* @param props.className - Optional CSS class name.
|
|
35
|
+
* @returns The rendered Flashcard component.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
23
38
|
* ```tsx
|
|
24
|
-
* <Flashcard isLoading={
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* <Fragment key={detail.id}>
|
|
32
|
-
* <FlashcardDetailsLabel>
|
|
33
|
-
* {detail.label}
|
|
34
|
-
* </FlashcardDetailsLabel>
|
|
35
|
-
* <FlashcardDetailsValue>
|
|
36
|
-
* {detail.value}
|
|
37
|
-
* </FlashcardDetailsValue>
|
|
38
|
-
* </Fragment>
|
|
39
|
-
* ))}
|
|
40
|
-
* </FlashcardDetailsList>
|
|
39
|
+
* <Flashcard isLoading={false} header="Identifier" subheader="DATA">
|
|
40
|
+
* <FlashcardHero />
|
|
41
|
+
* <FlashcardAdditionalData>Secondary info</FlashcardAdditionalData>
|
|
42
|
+
* <FlashcardDetailsList>
|
|
43
|
+
* <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>
|
|
44
|
+
* <FlashcardDetailsValue>Active</FlashcardDetailsValue>
|
|
45
|
+
* </FlashcardDetailsList>
|
|
41
46
|
* </Flashcard>
|
|
42
47
|
* ```
|
|
43
48
|
*/
|
|
44
|
-
declare function Flashcard(props: FlashcardProps):
|
|
49
|
+
declare function Flashcard(props: FlashcardProps): react_jsx_runtime75.JSX.Element;
|
|
45
50
|
declare namespace Flashcard {
|
|
46
51
|
var displayName: string;
|
|
47
52
|
}
|
|
48
|
-
|
|
53
|
+
/**
|
|
54
|
+
* FlashcardHero - Upper section displaying header and subheader.
|
|
55
|
+
*
|
|
56
|
+
* Reads header and subheader from Flashcard context. Shows skeleton
|
|
57
|
+
* placeholders when the parent Flashcard has isLoading=true.
|
|
58
|
+
*
|
|
59
|
+
* @param props - {@link FlashcardComponentProps}
|
|
60
|
+
* @param props.children - Optional child content.
|
|
61
|
+
* @param props.className - Optional CSS class name.
|
|
62
|
+
* @returns The rendered FlashcardHero component.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* <Flashcard header="Entity Name" subheader="Type">
|
|
67
|
+
* <FlashcardHero />
|
|
68
|
+
* </Flashcard>
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
declare function FlashcardHero(props: FlashcardComponentProps): react_jsx_runtime75.JSX.Element;
|
|
49
72
|
declare namespace FlashcardHero {
|
|
50
73
|
var displayName: string;
|
|
51
74
|
}
|
|
52
|
-
|
|
75
|
+
/**
|
|
76
|
+
* FlashcardAdditionalData - Secondary data section below the hero.
|
|
77
|
+
*
|
|
78
|
+
* Hidden when the parent Flashcard has isLoading=true.
|
|
79
|
+
*
|
|
80
|
+
* @param props - {@link FlashcardComponentProps}
|
|
81
|
+
* @param props.children - Content to display in the section.
|
|
82
|
+
* @param props.className - Optional CSS class name.
|
|
83
|
+
* @returns The rendered FlashcardAdditionalData component, or null if loading.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* <Flashcard header="Entity" subheader="Data">
|
|
88
|
+
* <FlashcardHero />
|
|
89
|
+
* <FlashcardAdditionalData>
|
|
90
|
+
* Last updated: 2024-01-15
|
|
91
|
+
* </FlashcardAdditionalData>
|
|
92
|
+
* </Flashcard>
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function FlashcardAdditionalData(props: FlashcardComponentProps): react_jsx_runtime75.JSX.Element | null;
|
|
53
96
|
declare namespace FlashcardAdditionalData {
|
|
54
97
|
var displayName: string;
|
|
55
98
|
}
|
|
56
|
-
|
|
99
|
+
/**
|
|
100
|
+
* FlashcardDetailsList - Wrapper for key-value detail pairs.
|
|
101
|
+
*
|
|
102
|
+
* Wraps DetailsList with justify alignment for flashcard styling.
|
|
103
|
+
*
|
|
104
|
+
* @param props - {@link FlashcardDetailsListProps}
|
|
105
|
+
* @param props.children - FlashcardDetailsLabel and FlashcardDetailsValue pairs.
|
|
106
|
+
* @param props.className - Optional CSS class name.
|
|
107
|
+
* @returns The rendered FlashcardDetailsList component.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```tsx
|
|
111
|
+
* <Flashcard header="Aircraft" subheader="Entity">
|
|
112
|
+
* <FlashcardHero />
|
|
113
|
+
* <FlashcardDetailsList>
|
|
114
|
+
* <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>
|
|
115
|
+
* <FlashcardDetailsValue>Active</FlashcardDetailsValue>
|
|
116
|
+
* <FlashcardDetailsLabel>Speed</FlashcardDetailsLabel>
|
|
117
|
+
* <FlashcardDetailsValue>450 kts</FlashcardDetailsValue>
|
|
118
|
+
* </FlashcardDetailsList>
|
|
119
|
+
* </Flashcard>
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
declare function FlashcardDetailsList(props: FlashcardDetailsListProps): react_jsx_runtime75.JSX.Element;
|
|
57
123
|
declare namespace FlashcardDetailsList {
|
|
58
124
|
var displayName: string;
|
|
59
125
|
}
|
|
60
|
-
|
|
126
|
+
/**
|
|
127
|
+
* FlashcardDetailsLabel - Label for detail items.
|
|
128
|
+
*
|
|
129
|
+
* Shows skeleton placeholder when the parent Flashcard has isLoading=true.
|
|
130
|
+
*
|
|
131
|
+
* @param props - {@link FlashcardComponentProps}
|
|
132
|
+
* @param props.children - Label text content.
|
|
133
|
+
* @param props.className - Optional CSS class name.
|
|
134
|
+
* @returns The rendered FlashcardDetailsLabel component.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```tsx
|
|
138
|
+
* <FlashcardDetailsList>
|
|
139
|
+
* <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>
|
|
140
|
+
* <FlashcardDetailsValue>Active</FlashcardDetailsValue>
|
|
141
|
+
* </FlashcardDetailsList>
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
declare function FlashcardDetailsLabel(props: FlashcardComponentProps): react_jsx_runtime75.JSX.Element;
|
|
61
145
|
declare namespace FlashcardDetailsLabel {
|
|
62
146
|
var displayName: string;
|
|
63
147
|
}
|
|
64
|
-
|
|
148
|
+
/**
|
|
149
|
+
* FlashcardDetailsValue - Value for detail items.
|
|
150
|
+
*
|
|
151
|
+
* Shows skeleton placeholder when the parent Flashcard has isLoading=true.
|
|
152
|
+
*
|
|
153
|
+
* @param props - {@link FlashcardComponentProps}
|
|
154
|
+
* @param props.children - Value text content.
|
|
155
|
+
* @param props.className - Optional CSS class name.
|
|
156
|
+
* @returns The rendered FlashcardDetailsValue component.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```tsx
|
|
160
|
+
* <FlashcardDetailsList>
|
|
161
|
+
* <FlashcardDetailsLabel>Type</FlashcardDetailsLabel>
|
|
162
|
+
* <FlashcardDetailsValue>Aircraft</FlashcardDetailsValue>
|
|
163
|
+
* </FlashcardDetailsList>
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
declare function FlashcardDetailsValue(props: FlashcardComponentProps): react_jsx_runtime75.JSX.Element;
|
|
65
167
|
declare namespace FlashcardDetailsValue {
|
|
66
168
|
var displayName: string;
|
|
67
169
|
}
|
|
@@ -25,32 +25,37 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
25
25
|
import styles from "./styles.module.css";
|
|
26
26
|
|
|
27
27
|
//#region src/components/flashcard/index.tsx
|
|
28
|
+
/**
|
|
29
|
+
* Context for sharing Flashcard state across child components.
|
|
30
|
+
*/
|
|
28
31
|
const FlashcardContext = createContext({
|
|
29
32
|
isLoading: false,
|
|
30
33
|
header: "",
|
|
31
34
|
subheader: ""
|
|
32
35
|
});
|
|
33
36
|
/**
|
|
34
|
-
*
|
|
37
|
+
* Flashcard - A quick visual identifier for map entity data.
|
|
38
|
+
*
|
|
39
|
+
* Container component that provides loading state and header/subheader
|
|
40
|
+
* to child components via context.
|
|
35
41
|
*
|
|
42
|
+
* @param props - {@link FlashcardProps}
|
|
43
|
+
* @param props.isLoading - Whether the flashcard is in a loading state.
|
|
44
|
+
* @param props.header - Primary header text.
|
|
45
|
+
* @param props.subheader - Secondary text below the header.
|
|
46
|
+
* @param props.children - Child components to render.
|
|
47
|
+
* @param props.className - Optional CSS class name.
|
|
48
|
+
* @returns The rendered Flashcard component.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
36
51
|
* ```tsx
|
|
37
|
-
* <Flashcard isLoading={
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* <Fragment key={detail.id}>
|
|
45
|
-
* <FlashcardDetailsLabel>
|
|
46
|
-
* {detail.label}
|
|
47
|
-
* </FlashcardDetailsLabel>
|
|
48
|
-
* <FlashcardDetailsValue>
|
|
49
|
-
* {detail.value}
|
|
50
|
-
* </FlashcardDetailsValue>
|
|
51
|
-
* </Fragment>
|
|
52
|
-
* ))}
|
|
53
|
-
* </FlashcardDetailsList>
|
|
52
|
+
* <Flashcard isLoading={false} header="Identifier" subheader="DATA">
|
|
53
|
+
* <FlashcardHero />
|
|
54
|
+
* <FlashcardAdditionalData>Secondary info</FlashcardAdditionalData>
|
|
55
|
+
* <FlashcardDetailsList>
|
|
56
|
+
* <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>
|
|
57
|
+
* <FlashcardDetailsValue>Active</FlashcardDetailsValue>
|
|
58
|
+
* </FlashcardDetailsList>
|
|
54
59
|
* </Flashcard>
|
|
55
60
|
* ```
|
|
56
61
|
*/
|
|
@@ -70,6 +75,24 @@ function Flashcard(props) {
|
|
|
70
75
|
});
|
|
71
76
|
}
|
|
72
77
|
Flashcard.displayName = "Flashcard";
|
|
78
|
+
/**
|
|
79
|
+
* FlashcardHero - Upper section displaying header and subheader.
|
|
80
|
+
*
|
|
81
|
+
* Reads header and subheader from Flashcard context. Shows skeleton
|
|
82
|
+
* placeholders when the parent Flashcard has isLoading=true.
|
|
83
|
+
*
|
|
84
|
+
* @param props - {@link FlashcardComponentProps}
|
|
85
|
+
* @param props.children - Optional child content.
|
|
86
|
+
* @param props.className - Optional CSS class name.
|
|
87
|
+
* @returns The rendered FlashcardHero component.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```tsx
|
|
91
|
+
* <Flashcard header="Entity Name" subheader="Type">
|
|
92
|
+
* <FlashcardHero />
|
|
93
|
+
* </Flashcard>
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
73
96
|
function FlashcardHero(props) {
|
|
74
97
|
const { children, className, ...rest } = props;
|
|
75
98
|
const { isLoading, header, subheader } = useContext(FlashcardContext);
|
|
@@ -96,6 +119,26 @@ function FlashcardHero(props) {
|
|
|
96
119
|
FlashcardHero.displayName = "FlashcardHero";
|
|
97
120
|
const FlashcardHeader = Heading;
|
|
98
121
|
const FlashcardSubheader = Text;
|
|
122
|
+
/**
|
|
123
|
+
* FlashcardAdditionalData - Secondary data section below the hero.
|
|
124
|
+
*
|
|
125
|
+
* Hidden when the parent Flashcard has isLoading=true.
|
|
126
|
+
*
|
|
127
|
+
* @param props - {@link FlashcardComponentProps}
|
|
128
|
+
* @param props.children - Content to display in the section.
|
|
129
|
+
* @param props.className - Optional CSS class name.
|
|
130
|
+
* @returns The rendered FlashcardAdditionalData component, or null if loading.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```tsx
|
|
134
|
+
* <Flashcard header="Entity" subheader="Data">
|
|
135
|
+
* <FlashcardHero />
|
|
136
|
+
* <FlashcardAdditionalData>
|
|
137
|
+
* Last updated: 2024-01-15
|
|
138
|
+
* </FlashcardAdditionalData>
|
|
139
|
+
* </Flashcard>
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
99
142
|
function FlashcardAdditionalData(props) {
|
|
100
143
|
const { children, className, ...rest } = props;
|
|
101
144
|
const { isLoading } = useContext(FlashcardContext);
|
|
@@ -107,6 +150,29 @@ function FlashcardAdditionalData(props) {
|
|
|
107
150
|
});
|
|
108
151
|
}
|
|
109
152
|
FlashcardAdditionalData.displayName = "FlashcardAdditionalData";
|
|
153
|
+
/**
|
|
154
|
+
* FlashcardDetailsList - Wrapper for key-value detail pairs.
|
|
155
|
+
*
|
|
156
|
+
* Wraps DetailsList with justify alignment for flashcard styling.
|
|
157
|
+
*
|
|
158
|
+
* @param props - {@link FlashcardDetailsListProps}
|
|
159
|
+
* @param props.children - FlashcardDetailsLabel and FlashcardDetailsValue pairs.
|
|
160
|
+
* @param props.className - Optional CSS class name.
|
|
161
|
+
* @returns The rendered FlashcardDetailsList component.
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```tsx
|
|
165
|
+
* <Flashcard header="Aircraft" subheader="Entity">
|
|
166
|
+
* <FlashcardHero />
|
|
167
|
+
* <FlashcardDetailsList>
|
|
168
|
+
* <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>
|
|
169
|
+
* <FlashcardDetailsValue>Active</FlashcardDetailsValue>
|
|
170
|
+
* <FlashcardDetailsLabel>Speed</FlashcardDetailsLabel>
|
|
171
|
+
* <FlashcardDetailsValue>450 kts</FlashcardDetailsValue>
|
|
172
|
+
* </FlashcardDetailsList>
|
|
173
|
+
* </Flashcard>
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
110
176
|
function FlashcardDetailsList(props) {
|
|
111
177
|
const { children, className, ...rest } = props;
|
|
112
178
|
return /* @__PURE__ */ jsx(DetailsList, {
|
|
@@ -117,6 +183,24 @@ function FlashcardDetailsList(props) {
|
|
|
117
183
|
});
|
|
118
184
|
}
|
|
119
185
|
FlashcardDetailsList.displayName = "FlashcardDetailsList";
|
|
186
|
+
/**
|
|
187
|
+
* FlashcardDetailsLabel - Label for detail items.
|
|
188
|
+
*
|
|
189
|
+
* Shows skeleton placeholder when the parent Flashcard has isLoading=true.
|
|
190
|
+
*
|
|
191
|
+
* @param props - {@link FlashcardComponentProps}
|
|
192
|
+
* @param props.children - Label text content.
|
|
193
|
+
* @param props.className - Optional CSS class name.
|
|
194
|
+
* @returns The rendered FlashcardDetailsLabel component.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```tsx
|
|
198
|
+
* <FlashcardDetailsList>
|
|
199
|
+
* <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>
|
|
200
|
+
* <FlashcardDetailsValue>Active</FlashcardDetailsValue>
|
|
201
|
+
* </FlashcardDetailsList>
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
120
204
|
function FlashcardDetailsLabel(props) {
|
|
121
205
|
const { isLoading } = useContext(FlashcardContext);
|
|
122
206
|
const { className, children, ...rest } = props;
|
|
@@ -127,6 +211,24 @@ function FlashcardDetailsLabel(props) {
|
|
|
127
211
|
});
|
|
128
212
|
}
|
|
129
213
|
FlashcardDetailsLabel.displayName = "FlashcardDetailsLabel";
|
|
214
|
+
/**
|
|
215
|
+
* FlashcardDetailsValue - Value for detail items.
|
|
216
|
+
*
|
|
217
|
+
* Shows skeleton placeholder when the parent Flashcard has isLoading=true.
|
|
218
|
+
*
|
|
219
|
+
* @param props - {@link FlashcardComponentProps}
|
|
220
|
+
* @param props.children - Value text content.
|
|
221
|
+
* @param props.className - Optional CSS class name.
|
|
222
|
+
* @returns The rendered FlashcardDetailsValue component.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```tsx
|
|
226
|
+
* <FlashcardDetailsList>
|
|
227
|
+
* <FlashcardDetailsLabel>Type</FlashcardDetailsLabel>
|
|
228
|
+
* <FlashcardDetailsValue>Aircraft</FlashcardDetailsValue>
|
|
229
|
+
* </FlashcardDetailsList>
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
130
232
|
function FlashcardDetailsValue(props) {
|
|
131
233
|
const { isLoading } = useContext(FlashcardContext);
|
|
132
234
|
const { className, children, ...rest } = props;
|