@accelint/design-toolkit 9.6.0 → 9.8.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 +4 -4
- package/dist/components/accordion/context.d.ts +3 -3
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/context.js.map +1 -1
- package/dist/components/accordion/group.d.ts +3 -3
- package/dist/components/accordion/group.js +1 -1
- package/dist/components/accordion/group.js.map +1 -1
- package/dist/components/accordion/header.d.ts +3 -3
- package/dist/components/accordion/header.js +1 -1
- package/dist/components/accordion/header.js.map +1 -1
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/accordion/panel.d.ts +3 -3
- package/dist/components/accordion/panel.js +1 -1
- package/dist/components/accordion/panel.js.map +1 -1
- package/dist/components/accordion/styles.module.css +1 -1
- package/dist/components/accordion/trigger.d.ts +3 -3
- package/dist/components/accordion/trigger.js +1 -1
- package/dist/components/accordion/trigger.js.map +1 -1
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/accordion/types.js +1 -1
- package/dist/components/action-bar/index.d.ts +3 -3
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/action-bar/styles.module.css +1 -1
- package/dist/components/action-bar/types.d.ts +1 -1
- package/dist/components/action-bar/types.js +1 -1
- package/dist/components/audio/index.d.ts +3 -3
- package/dist/components/audio/index.js +4 -9
- package/dist/components/audio/index.js.map +1 -1
- package/dist/components/audio/types.d.ts +1 -1
- package/dist/components/audio/types.js +1 -1
- package/dist/components/avatar/context.d.ts +5 -5
- package/dist/components/avatar/context.js +1 -1
- package/dist/components/avatar/context.js.map +1 -1
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/avatar/styles.module.css +1 -1
- package/dist/components/avatar/types.d.ts +1 -1
- package/dist/components/avatar/types.js +1 -1
- package/dist/components/badge/context.d.ts +5 -5
- package/dist/components/badge/context.js +1 -1
- package/dist/components/badge/context.js.map +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/badge/styles.module.css +1 -1
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/badge/types.js +1 -1
- package/dist/components/breadcrumbs/index.d.ts +3 -3
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/breadcrumbs/item.d.ts +3 -3
- package/dist/components/breadcrumbs/item.js +1 -1
- package/dist/components/breadcrumbs/item.js.map +1 -1
- package/dist/components/breadcrumbs/styles.module.css +1 -1
- package/dist/components/breadcrumbs/types.d.ts +1 -1
- package/dist/components/breadcrumbs/types.js +1 -1
- package/dist/components/button/__internal__/clear.js +1 -1
- package/dist/components/button/__internal__/clear.js.map +1 -1
- package/dist/components/button/__internal__/styles.module.css +1 -1
- package/dist/components/button/context.d.ts +9 -9
- package/dist/components/button/context.js +1 -1
- package/dist/components/button/context.js.map +1 -1
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button/link.d.ts +3 -3
- package/dist/components/button/link.js +1 -1
- package/dist/components/button/link.js.map +1 -1
- package/dist/components/button/styles.module.css +1 -1
- package/dist/components/button/toggle.d.ts +3 -3
- package/dist/components/button/toggle.js +1 -1
- package/dist/components/button/toggle.js.map +1 -1
- package/dist/components/button/types.d.ts +1 -1
- package/dist/components/button/types.js +1 -1
- package/dist/components/checkbox/context.d.ts +4 -4
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/context.js.map +1 -1
- package/dist/components/checkbox/group.d.ts +3 -3
- package/dist/components/checkbox/group.js +13 -10
- package/dist/components/checkbox/group.js.map +1 -1
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/index.js +3 -3
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/styles.module.css +8 -2
- package/dist/components/checkbox/types.d.ts +5 -1
- package/dist/components/checkbox/types.js +1 -1
- package/dist/components/chip/context.d.ts +5 -5
- package/dist/components/chip/context.js +1 -1
- package/dist/components/chip/context.js.map +1 -1
- package/dist/components/chip/deletable.d.ts +3 -3
- package/dist/components/chip/deletable.js +1 -1
- package/dist/components/chip/deletable.js.map +1 -1
- package/dist/components/chip/index.d.ts +3 -3
- package/dist/components/chip/index.js +1 -1
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/chip/list.d.ts +5 -5
- package/dist/components/chip/list.js +1 -1
- package/dist/components/chip/list.js.map +1 -1
- package/dist/components/chip/selectable.d.ts +3 -3
- package/dist/components/chip/selectable.js +1 -1
- package/dist/components/chip/selectable.js.map +1 -1
- package/dist/components/chip/styles.module.css +1 -1
- package/dist/components/chip/types.d.ts +1 -1
- package/dist/components/chip/types.js +1 -1
- package/dist/components/classification-badge/context.d.ts +5 -5
- package/dist/components/classification-badge/context.js +1 -1
- package/dist/components/classification-badge/context.js.map +1 -1
- package/dist/components/classification-badge/index.d.ts +3 -3
- package/dist/components/classification-badge/index.js +1 -1
- package/dist/components/classification-badge/index.js.map +1 -1
- package/dist/components/classification-badge/styles.module.css +1 -1
- package/dist/components/classification-badge/types.d.ts +1 -1
- package/dist/components/classification-badge/types.js +1 -1
- package/dist/components/classification-banner/context.d.ts +5 -5
- package/dist/components/classification-banner/context.js +1 -1
- package/dist/components/classification-banner/context.js.map +1 -1
- package/dist/components/classification-banner/index.d.ts +3 -3
- package/dist/components/classification-banner/index.js +1 -1
- package/dist/components/classification-banner/index.js.map +1 -1
- package/dist/components/classification-banner/styles.module.css +1 -1
- package/dist/components/classification-banner/types.d.ts +1 -1
- package/dist/components/classification-banner/types.js +1 -1
- package/dist/components/clock/index.d.ts +3 -3
- package/dist/components/clock/index.js +1 -1
- package/dist/components/clock/index.js.map +1 -1
- package/dist/components/clock/types.d.ts +1 -1
- package/dist/components/clock/types.js +1 -1
- package/dist/components/color-picker/index.d.ts +3 -3
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/styles.module.css +1 -1
- package/dist/components/color-picker/types.d.ts +1 -1
- package/dist/components/color-picker/types.js +1 -1
- package/dist/components/combobox-field/context.d.ts +5 -5
- package/dist/components/combobox-field/context.js +1 -1
- package/dist/components/combobox-field/context.js.map +1 -1
- package/dist/components/combobox-field/index.d.ts +3 -3
- package/dist/components/combobox-field/index.js +1 -1
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +1 -1
- package/dist/components/combobox-field/types.d.ts +1 -1
- package/dist/components/combobox-field/types.js +1 -1
- package/dist/components/coordinate-field/context.d.ts +7 -7
- package/dist/components/coordinate-field/context.js +1 -1
- package/dist/components/coordinate-field/context.js.map +1 -1
- package/dist/components/coordinate-field/coordinate-utils.d.ts +1 -1
- package/dist/components/coordinate-field/coordinate-utils.js +9 -14
- package/dist/components/coordinate-field/coordinate-utils.js.map +1 -1
- package/dist/components/coordinate-field/index.d.ts +3 -3
- package/dist/components/coordinate-field/index.js +2 -3
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment-configs.d.ts +1 -1
- package/dist/components/coordinate-field/segment-configs.js +1 -1
- package/dist/components/coordinate-field/segment-configs.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +3 -3
- package/dist/components/coordinate-field/segment.js +1 -1
- package/dist/components/coordinate-field/segment.js.map +1 -1
- package/dist/components/coordinate-field/styles.module.css +1 -1
- package/dist/components/coordinate-field/types.d.ts +1 -1
- package/dist/components/coordinate-field/types.js +1 -1
- package/dist/components/coordinate-field/types.js.map +1 -1
- package/dist/components/coordinate-field/width-utils.d.ts +1 -1
- package/dist/components/coordinate-field/width-utils.js +1 -1
- package/dist/components/coordinate-field/width-utils.js.map +1 -1
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/index.js +1 -1
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-field/styles.module.css +1 -1
- package/dist/components/date-field/types.d.ts +1 -1
- package/dist/components/date-field/types.js +1 -1
- package/dist/components/deferred-collection/index.d.ts +3 -3
- package/dist/components/deferred-collection/index.js +1 -1
- package/dist/components/deferred-collection/index.js.map +1 -1
- package/dist/components/deferred-collection/types.d.ts +1 -1
- package/dist/components/deferred-collection/types.js +1 -1
- package/dist/components/details-list/context.d.ts +5 -5
- package/dist/components/details-list/context.js +1 -1
- package/dist/components/details-list/context.js.map +1 -1
- package/dist/components/details-list/index.d.ts +3 -3
- package/dist/components/details-list/index.js +1 -1
- package/dist/components/details-list/index.js.map +1 -1
- package/dist/components/details-list/label.d.ts +3 -3
- package/dist/components/details-list/label.js +1 -1
- package/dist/components/details-list/label.js.map +1 -1
- package/dist/components/details-list/styles.module.css +1 -1
- package/dist/components/details-list/types.d.ts +1 -1
- package/dist/components/details-list/types.js +1 -1
- package/dist/components/details-list/value.d.ts +3 -3
- package/dist/components/details-list/value.js +1 -1
- package/dist/components/details-list/value.js.map +1 -1
- package/dist/components/dialog/content.d.ts +3 -3
- package/dist/components/dialog/content.js +1 -1
- package/dist/components/dialog/content.js.map +1 -1
- package/dist/components/dialog/context.d.ts +3 -3
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/context.js.map +1 -1
- package/dist/components/dialog/footer.d.ts +3 -3
- package/dist/components/dialog/footer.js +1 -1
- package/dist/components/dialog/footer.js.map +1 -1
- package/dist/components/dialog/index.d.ts +3 -3
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/styles.module.css +1 -1
- package/dist/components/dialog/title.d.ts +3 -3
- package/dist/components/dialog/title.js +1 -1
- package/dist/components/dialog/title.js.map +1 -1
- package/dist/components/dialog/trigger.d.ts +1 -1
- package/dist/components/dialog/trigger.js +1 -1
- package/dist/components/dialog/trigger.js.map +1 -1
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/dialog/types.js +1 -1
- package/dist/components/divider/context.d.ts +5 -5
- package/dist/components/divider/context.js +1 -1
- package/dist/components/divider/context.js.map +1 -1
- package/dist/components/divider/index.d.ts +3 -3
- package/dist/components/divider/index.js +1 -1
- package/dist/components/divider/index.js.map +1 -1
- package/dist/components/divider/styles.module.css +1 -1
- package/dist/components/divider/types.d.ts +1 -1
- package/dist/components/divider/types.js +1 -1
- package/dist/components/drawer/back.d.ts +3 -3
- package/dist/components/drawer/back.js +1 -1
- package/dist/components/drawer/back.js.map +1 -1
- package/dist/components/drawer/close.d.ts +3 -3
- package/dist/components/drawer/close.js +1 -1
- package/dist/components/drawer/close.js.map +1 -1
- package/dist/components/drawer/content.d.ts +3 -3
- package/dist/components/drawer/content.js +1 -1
- package/dist/components/drawer/content.js.map +1 -1
- package/dist/components/drawer/context.d.ts +3 -3
- package/dist/components/drawer/context.js +1 -1
- package/dist/components/drawer/context.js.map +1 -1
- package/dist/components/drawer/events.js +1 -1
- package/dist/components/drawer/events.js.map +1 -1
- package/dist/components/drawer/footer.d.ts +3 -3
- package/dist/components/drawer/footer.js +1 -1
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header-title.d.ts +3 -3
- package/dist/components/drawer/header-title.js +1 -1
- package/dist/components/drawer/header-title.js.map +1 -1
- package/dist/components/drawer/header.d.ts +3 -3
- package/dist/components/drawer/header.js +1 -1
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer/index.d.ts +3 -3
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/drawer/layout-main.d.ts +3 -3
- package/dist/components/drawer/layout-main.js +1 -1
- package/dist/components/drawer/layout-main.js.map +1 -1
- package/dist/components/drawer/layout.d.ts +3 -3
- package/dist/components/drawer/layout.js +1 -1
- package/dist/components/drawer/layout.js.map +1 -1
- package/dist/components/drawer/menu-item.d.ts +3 -3
- package/dist/components/drawer/menu-item.js +1 -1
- package/dist/components/drawer/menu-item.js.map +1 -1
- package/dist/components/drawer/menu.d.ts +3 -3
- package/dist/components/drawer/menu.js +1 -1
- package/dist/components/drawer/menu.js.map +1 -1
- package/dist/components/drawer/panel.d.ts +3 -3
- package/dist/components/drawer/panel.js +1 -1
- package/dist/components/drawer/panel.js.map +1 -1
- package/dist/components/drawer/styles.module.css +1 -1
- package/dist/components/drawer/trigger.d.ts +3 -3
- package/dist/components/drawer/trigger.js +1 -1
- package/dist/components/drawer/trigger.js.map +1 -1
- package/dist/components/drawer/types.d.ts +1 -1
- package/dist/components/drawer/types.js +1 -1
- package/dist/components/drawer/view.d.ts +3 -3
- package/dist/components/drawer/view.js +1 -1
- package/dist/components/drawer/view.js.map +1 -1
- package/dist/components/flashcard/index.d.ts +10 -10
- package/dist/components/flashcard/index.js +1 -1
- 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 +1 -1
- package/dist/components/flashcard/types.js +1 -1
- package/dist/components/floating-card/context.d.ts +36 -0
- package/dist/components/floating-card/context.js +33 -0
- package/dist/components/floating-card/context.js.map +1 -0
- package/dist/components/floating-card/index.d.ts +65 -0
- package/dist/components/floating-card/index.js +81 -0
- package/dist/components/floating-card/index.js.map +1 -0
- package/dist/components/floating-card/provider.d.ts +64 -0
- package/dist/components/floating-card/provider.js +198 -0
- package/dist/components/floating-card/provider.js.map +1 -0
- package/dist/components/floating-card/styles.module.css +60 -0
- package/dist/components/hero/context.d.ts +3 -3
- package/dist/components/hero/context.js +1 -1
- package/dist/components/hero/context.js.map +1 -1
- package/dist/components/hero/index.d.ts +3 -3
- package/dist/components/hero/index.js +1 -1
- package/dist/components/hero/index.js.map +1 -1
- package/dist/components/hero/styles.module.css +1 -1
- package/dist/components/hero/subtitle.d.ts +3 -3
- package/dist/components/hero/subtitle.js +1 -1
- package/dist/components/hero/subtitle.js.map +1 -1
- package/dist/components/hero/title.d.ts +3 -3
- package/dist/components/hero/title.js +1 -1
- package/dist/components/hero/title.js.map +1 -1
- package/dist/components/hero/types.d.ts +1 -1
- package/dist/components/hero/types.js +1 -1
- package/dist/components/hotkey/context.d.ts +5 -5
- package/dist/components/hotkey/context.js +1 -1
- package/dist/components/hotkey/context.js.map +1 -1
- package/dist/components/hotkey/index.d.ts +3 -3
- package/dist/components/hotkey/index.js +1 -1
- package/dist/components/hotkey/index.js.map +1 -1
- package/dist/components/hotkey/set.d.ts +1 -1
- package/dist/components/hotkey/set.js +1 -1
- package/dist/components/hotkey/set.js.map +1 -1
- package/dist/components/hotkey/styles.module.css +1 -1
- package/dist/components/hotkey/types.d.ts +1 -1
- package/dist/components/hotkey/types.js +1 -1
- package/dist/components/icon/context.d.ts +5 -5
- package/dist/components/icon/context.js +1 -1
- package/dist/components/icon/context.js.map +1 -1
- package/dist/components/icon/index.d.ts +3 -3
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/icon/styles.module.css +1 -1
- package/dist/components/icon/types.d.ts +1 -1
- package/dist/components/icon/types.js +1 -1
- package/dist/components/input/context.d.ts +3 -3
- package/dist/components/input/context.js +1 -1
- package/dist/components/input/context.js.map +1 -1
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/styles.module.css +1 -1
- package/dist/components/input/types.d.ts +1 -1
- package/dist/components/input/types.js +1 -1
- package/dist/components/kanban/card-body.d.ts +3 -3
- package/dist/components/kanban/card-body.js +1 -1
- package/dist/components/kanban/card-body.js.map +1 -1
- package/dist/components/kanban/card-header-actions.d.ts +3 -3
- package/dist/components/kanban/card-header-actions.js +1 -1
- package/dist/components/kanban/card-header-actions.js.map +1 -1
- package/dist/components/kanban/card-header-title.d.ts +3 -3
- package/dist/components/kanban/card-header-title.js +1 -1
- package/dist/components/kanban/card-header-title.js.map +1 -1
- package/dist/components/kanban/card-header.d.ts +3 -3
- package/dist/components/kanban/card-header.js +1 -1
- package/dist/components/kanban/card-header.js.map +1 -1
- package/dist/components/kanban/card.d.ts +3 -3
- package/dist/components/kanban/card.js +1 -1
- package/dist/components/kanban/card.js.map +1 -1
- package/dist/components/kanban/column-actions.d.ts +3 -3
- package/dist/components/kanban/column-actions.js +1 -1
- package/dist/components/kanban/column-actions.js.map +1 -1
- package/dist/components/kanban/column-container.d.ts +3 -3
- package/dist/components/kanban/column-container.js +1 -1
- package/dist/components/kanban/column-container.js.map +1 -1
- package/dist/components/kanban/column-content.d.ts +3 -3
- package/dist/components/kanban/column-content.js +1 -1
- package/dist/components/kanban/column-content.js.map +1 -1
- package/dist/components/kanban/column-header-actions.d.ts +3 -3
- package/dist/components/kanban/column-header-actions.js +1 -1
- package/dist/components/kanban/column-header-actions.js.map +1 -1
- package/dist/components/kanban/column-header-drag-handle.d.ts +3 -3
- package/dist/components/kanban/column-header-drag-handle.js +1 -1
- package/dist/components/kanban/column-header-drag-handle.js.map +1 -1
- package/dist/components/kanban/column-header-title.d.ts +3 -3
- package/dist/components/kanban/column-header-title.js +1 -1
- package/dist/components/kanban/column-header-title.js.map +1 -1
- package/dist/components/kanban/column-header.d.ts +3 -3
- package/dist/components/kanban/column-header.js +1 -1
- package/dist/components/kanban/column-header.js.map +1 -1
- package/dist/components/kanban/column.d.ts +3 -3
- package/dist/components/kanban/column.js +1 -1
- package/dist/components/kanban/column.js.map +1 -1
- package/dist/components/kanban/context.d.ts +3 -3
- package/dist/components/kanban/context.js +1 -1
- package/dist/components/kanban/context.js.map +1 -1
- package/dist/components/kanban/header-actions.d.ts +3 -3
- package/dist/components/kanban/header-actions.js +1 -1
- package/dist/components/kanban/header-actions.js.map +1 -1
- package/dist/components/kanban/header-search.d.ts +3 -3
- package/dist/components/kanban/header-search.js +1 -1
- package/dist/components/kanban/header-search.js.map +1 -1
- package/dist/components/kanban/header-title.d.ts +3 -3
- package/dist/components/kanban/header-title.js +1 -1
- package/dist/components/kanban/header-title.js.map +1 -1
- package/dist/components/kanban/header.d.ts +3 -3
- package/dist/components/kanban/header.js +1 -1
- package/dist/components/kanban/header.js.map +1 -1
- package/dist/components/kanban/index.d.ts +1 -1
- package/dist/components/kanban/index.js +1 -1
- package/dist/components/kanban/kanban.d.ts +5 -5
- package/dist/components/kanban/kanban.js +1 -1
- package/dist/components/kanban/kanban.js.map +1 -1
- package/dist/components/kanban/mock-data.js +1 -1
- package/dist/components/kanban/mock-data.js.map +1 -1
- package/dist/components/kanban/styles.module.css +1 -1
- package/dist/components/kanban/types.d.ts +1 -1
- package/dist/components/kanban/types.js +1 -1
- package/dist/components/label/context.d.ts +5 -5
- package/dist/components/label/context.js +1 -1
- package/dist/components/label/context.js.map +1 -1
- package/dist/components/label/index.d.ts +3 -3
- package/dist/components/label/index.js +1 -1
- package/dist/components/label/index.js.map +1 -1
- package/dist/components/label/styles.module.css +1 -1
- package/dist/components/label/types.d.ts +1 -1
- package/dist/components/label/types.js +1 -1
- package/dist/components/lines/index.d.ts +3 -3
- package/dist/components/lines/index.js +1 -1
- package/dist/components/lines/index.js.map +1 -1
- package/dist/components/lines/styles.module.css +1 -1
- package/dist/components/lines/types.d.ts +1 -1
- package/dist/components/lines/types.js +1 -1
- package/dist/components/link/context.d.ts +3 -3
- package/dist/components/link/context.js +1 -1
- package/dist/components/link/context.js.map +1 -1
- package/dist/components/link/index.d.ts +3 -3
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/link/styles.module.css +1 -1
- package/dist/components/link/types.d.ts +1 -1
- package/dist/components/link/types.js +1 -1
- package/dist/components/list/context.d.ts +3 -3
- package/dist/components/list/context.js +1 -1
- package/dist/components/list/context.js.map +1 -1
- package/dist/components/list/index.d.ts +3 -3
- package/dist/components/list/index.js +1 -1
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/list/item-content.d.ts +3 -3
- package/dist/components/list/item-content.js +1 -1
- package/dist/components/list/item-content.js.map +1 -1
- package/dist/components/list/item-description.d.ts +3 -3
- package/dist/components/list/item-description.js +1 -1
- package/dist/components/list/item-description.js.map +1 -1
- package/dist/components/list/item-title.d.ts +3 -3
- package/dist/components/list/item-title.js +1 -1
- package/dist/components/list/item-title.js.map +1 -1
- package/dist/components/list/item.d.ts +3 -3
- package/dist/components/list/item.js +1 -1
- package/dist/components/list/item.js.map +1 -1
- package/dist/components/list/styles.module.css +1 -1
- package/dist/components/list/types.d.ts +1 -1
- package/dist/components/list/types.js +1 -1
- package/dist/components/media-controls/context.d.ts +5 -5
- package/dist/components/media-controls/context.js +1 -1
- package/dist/components/media-controls/fullscreen-button.d.ts +3 -3
- package/dist/components/media-controls/fullscreen-button.js +1 -1
- package/dist/components/media-controls/index.d.ts +3 -3
- package/dist/components/media-controls/index.js +1 -1
- package/dist/components/media-controls/mute-button.d.ts +3 -3
- package/dist/components/media-controls/mute-button.js +1 -1
- package/dist/components/media-controls/play-button.d.ts +3 -3
- package/dist/components/media-controls/play-button.js +1 -1
- package/dist/components/media-controls/playback-rate.d.ts +3 -3
- package/dist/components/media-controls/playback-rate.js +3 -8
- package/dist/components/media-controls/playback-rate.js.map +1 -1
- package/dist/components/media-controls/seek-button.d.ts +3 -3
- package/dist/components/media-controls/seek-button.js +3 -8
- package/dist/components/media-controls/seek-button.js.map +1 -1
- package/dist/components/media-controls/time-display.d.ts +3 -3
- package/dist/components/media-controls/time-display.js +1 -1
- package/dist/components/media-controls/time-range.d.ts +3 -3
- package/dist/components/media-controls/time-range.js +1 -1
- package/dist/components/media-controls/types.d.ts +1 -1
- package/dist/components/media-controls/types.js +1 -1
- package/dist/components/media-controls/volume-slider.d.ts +3 -3
- package/dist/components/media-controls/volume-slider.js +1 -1
- package/dist/components/menu/context.d.ts +3 -3
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/context.js.map +1 -1
- package/dist/components/menu/index.d.ts +3 -3
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/item-description.d.ts +3 -3
- package/dist/components/menu/item-description.js +1 -1
- package/dist/components/menu/item-description.js.map +1 -1
- package/dist/components/menu/item-label.d.ts +3 -3
- package/dist/components/menu/item-label.js +1 -1
- package/dist/components/menu/item-label.js.map +1 -1
- package/dist/components/menu/item.d.ts +3 -3
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/item.js.map +1 -1
- package/dist/components/menu/section.d.ts +3 -3
- package/dist/components/menu/section.js +1 -1
- package/dist/components/menu/section.js.map +1 -1
- package/dist/components/menu/separator.d.ts +3 -3
- package/dist/components/menu/separator.js +1 -1
- package/dist/components/menu/separator.js.map +1 -1
- package/dist/components/menu/styles.module.css +1 -1
- package/dist/components/menu/submenu.d.ts +3 -3
- package/dist/components/menu/submenu.js +1 -1
- package/dist/components/menu/submenu.js.map +1 -1
- package/dist/components/menu/trigger.d.ts +1 -1
- package/dist/components/menu/trigger.js +1 -1
- package/dist/components/menu/trigger.js.map +1 -1
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/menu/types.js +1 -1
- package/dist/components/notice/events.js +1 -1
- package/dist/components/notice/events.js.map +1 -1
- package/dist/components/notice/index.d.ts +3 -3
- package/dist/components/notice/index.js +1 -1
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +3 -3
- package/dist/components/notice/list.js +1 -1
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +3 -3
- package/dist/components/notice/notice-icon.js +1 -1
- package/dist/components/notice/notice-icon.js.map +1 -1
- package/dist/components/notice/styles.module.css +1 -1
- package/dist/components/notice/types.d.ts +1 -1
- package/dist/components/notice/types.js +1 -1
- package/dist/components/notice/utils.d.ts +1 -1
- package/dist/components/notice/utils.js +1 -1
- package/dist/components/notice/utils.js.map +1 -1
- package/dist/components/options/context.d.ts +3 -3
- package/dist/components/options/context.js +1 -1
- package/dist/components/options/context.js.map +1 -1
- package/dist/components/options/index.d.ts +3 -3
- package/dist/components/options/index.js +1 -1
- package/dist/components/options/index.js.map +1 -1
- package/dist/components/options/item-content.d.ts +3 -3
- package/dist/components/options/item-content.js +1 -1
- package/dist/components/options/item-content.js.map +1 -1
- package/dist/components/options/item-description.d.ts +3 -3
- package/dist/components/options/item-description.js +1 -1
- package/dist/components/options/item-description.js.map +1 -1
- package/dist/components/options/item-label.d.ts +3 -3
- package/dist/components/options/item-label.js +1 -1
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.d.ts +3 -3
- package/dist/components/options/item.js +1 -1
- package/dist/components/options/item.js.map +1 -1
- package/dist/components/options/section.d.ts +3 -3
- package/dist/components/options/section.js +1 -1
- package/dist/components/options/section.js.map +1 -1
- package/dist/components/options/styles.module.css +77 -5
- package/dist/components/options/types.d.ts +1 -1
- package/dist/components/options/types.js +1 -1
- package/dist/components/pagination/context.d.ts +3 -3
- package/dist/components/pagination/context.js +1 -1
- package/dist/components/pagination/context.js.map +1 -1
- package/dist/components/pagination/index.d.ts +3 -3
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.js.map +1 -1
- package/dist/components/pagination/next.d.ts +3 -3
- package/dist/components/pagination/next.js +1 -1
- package/dist/components/pagination/next.js.map +1 -1
- package/dist/components/pagination/pages.d.ts +3 -3
- package/dist/components/pagination/pages.js +1 -1
- package/dist/components/pagination/pages.js.map +1 -1
- package/dist/components/pagination/prev.d.ts +3 -3
- package/dist/components/pagination/prev.js +1 -1
- package/dist/components/pagination/prev.js.map +1 -1
- package/dist/components/pagination/styles.module.css +1 -1
- package/dist/components/pagination/types.d.ts +1 -1
- package/dist/components/pagination/types.js +1 -1
- package/dist/components/pagination/utils.js +1 -1
- package/dist/components/pagination/utils.js.map +1 -1
- package/dist/components/popover/content.d.ts +3 -3
- package/dist/components/popover/content.js +1 -1
- package/dist/components/popover/content.js.map +1 -1
- package/dist/components/popover/footer.d.ts +3 -3
- package/dist/components/popover/footer.js +1 -1
- package/dist/components/popover/footer.js.map +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/styles.module.css +1 -1
- package/dist/components/popover/title.d.ts +3 -3
- package/dist/components/popover/title.js +1 -1
- package/dist/components/popover/title.js.map +1 -1
- package/dist/components/popover/trigger.d.ts +3 -3
- package/dist/components/popover/trigger.js +1 -1
- package/dist/components/popover/trigger.js.map +1 -1
- package/dist/components/popover/types.d.ts +1 -1
- package/dist/components/popover/types.js +1 -1
- package/dist/components/query-builder/action-element.d.ts +3 -3
- package/dist/components/query-builder/action-element.js +1 -1
- package/dist/components/query-builder/action-element.js.map +1 -1
- package/dist/components/query-builder/actions.d.ts +5 -5
- package/dist/components/query-builder/actions.js +1 -1
- package/dist/components/query-builder/actions.js.map +1 -1
- package/dist/components/query-builder/combinator-selector.d.ts +3 -3
- package/dist/components/query-builder/combinator-selector.js +1 -1
- package/dist/components/query-builder/combinator-selector.js.map +1 -1
- package/dist/components/query-builder/constants.js +1 -1
- package/dist/components/query-builder/constants.js.map +1 -1
- package/dist/components/query-builder/index.d.ts +3 -3
- package/dist/components/query-builder/index.js +2 -2
- package/dist/components/query-builder/index.js.map +1 -1
- package/dist/components/query-builder/rule-group.d.ts +5 -5
- package/dist/components/query-builder/rule-group.js +1 -1
- package/dist/components/query-builder/rule-group.js.map +1 -1
- package/dist/components/query-builder/rule.d.ts +3 -3
- package/dist/components/query-builder/rule.js +1 -1
- package/dist/components/query-builder/rule.js.map +1 -1
- package/dist/components/query-builder/styles.module.css +11 -2
- package/dist/components/query-builder/types.d.ts +1 -1
- package/dist/components/query-builder/types.js +1 -1
- package/dist/components/query-builder/utils.d.ts +1 -1
- package/dist/components/query-builder/utils.js +1 -1
- package/dist/components/query-builder/utils.js.map +1 -1
- package/dist/components/query-builder/value-editor.d.ts +3 -3
- package/dist/components/query-builder/value-editor.js +1 -1
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/query-builder/value-selector.d.ts +3 -3
- package/dist/components/query-builder/value-selector.js +12 -5
- package/dist/components/query-builder/value-selector.js.map +1 -1
- package/dist/components/radio/context.d.ts +11 -5
- package/dist/components/radio/context.js +8 -2
- package/dist/components/radio/context.js.map +1 -1
- package/dist/components/radio/group.d.ts +3 -3
- package/dist/components/radio/group.js +14 -11
- package/dist/components/radio/group.js.map +1 -1
- package/dist/components/radio/index.d.ts +5 -6
- package/dist/components/radio/index.js +8 -4
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/styles.module.css +7 -5
- package/dist/components/radio/types.d.ts +5 -1
- package/dist/components/radio/types.js +1 -1
- package/dist/components/search-field/context.d.ts +5 -5
- package/dist/components/search-field/context.js +1 -1
- package/dist/components/search-field/context.js.map +1 -1
- package/dist/components/search-field/index.d.ts +3 -3
- package/dist/components/search-field/index.js +1 -1
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/search-field/styles.module.css +1 -1
- package/dist/components/search-field/types.d.ts +1 -1
- package/dist/components/search-field/types.js +1 -1
- package/dist/components/select-field/context.d.ts +5 -5
- package/dist/components/select-field/context.js +1 -1
- package/dist/components/select-field/context.js.map +1 -1
- package/dist/components/select-field/index.d.ts +3 -3
- package/dist/components/select-field/index.js +1 -1
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/styles.module.css +1 -1
- package/dist/components/select-field/types.d.ts +1 -1
- package/dist/components/select-field/types.js +1 -1
- package/dist/components/sidenav/avatar.d.ts +3 -3
- package/dist/components/sidenav/avatar.js +1 -1
- package/dist/components/sidenav/avatar.js.map +1 -1
- package/dist/components/sidenav/content.d.ts +3 -3
- package/dist/components/sidenav/content.js +1 -1
- package/dist/components/sidenav/content.js.map +1 -1
- package/dist/components/sidenav/context.d.ts +3 -3
- package/dist/components/sidenav/context.js +1 -1
- package/dist/components/sidenav/context.js.map +1 -1
- package/dist/components/sidenav/events.js +1 -1
- package/dist/components/sidenav/events.js.map +1 -1
- package/dist/components/sidenav/footer.d.ts +3 -3
- package/dist/components/sidenav/footer.js +1 -1
- package/dist/components/sidenav/footer.js.map +1 -1
- package/dist/components/sidenav/header.d.ts +3 -3
- package/dist/components/sidenav/header.js +1 -1
- package/dist/components/sidenav/header.js.map +1 -1
- package/dist/components/sidenav/index.d.ts +3 -3
- package/dist/components/sidenav/index.js +1 -1
- package/dist/components/sidenav/index.js.map +1 -1
- package/dist/components/sidenav/item.d.ts +3 -3
- package/dist/components/sidenav/item.js +1 -1
- package/dist/components/sidenav/item.js.map +1 -1
- package/dist/components/sidenav/link.d.ts +3 -3
- package/dist/components/sidenav/link.js +1 -1
- package/dist/components/sidenav/link.js.map +1 -1
- package/dist/components/sidenav/menu-item.d.ts +3 -3
- package/dist/components/sidenav/menu-item.js +1 -1
- package/dist/components/sidenav/menu-item.js.map +1 -1
- package/dist/components/sidenav/menu.d.ts +3 -3
- package/dist/components/sidenav/menu.js +1 -1
- package/dist/components/sidenav/menu.js.map +1 -1
- package/dist/components/sidenav/styles.module.css +1 -1
- package/dist/components/sidenav/trigger.d.ts +3 -3
- package/dist/components/sidenav/trigger.js +1 -1
- package/dist/components/sidenav/trigger.js.map +1 -1
- package/dist/components/sidenav/types.d.ts +1 -1
- package/dist/components/sidenav/types.js +1 -1
- package/dist/components/skeleton/index.d.ts +3 -3
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.js.map +1 -1
- package/dist/components/skeleton/styles.module.css +3 -5
- package/dist/components/skeleton/types.d.ts +2 -2
- package/dist/components/skeleton/types.js +1 -1
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/styles.module.css +1 -1
- package/dist/components/slider/types.d.ts +1 -1
- package/dist/components/slider/types.js +1 -1
- package/dist/components/status-indicator/index.d.ts +3 -3
- package/dist/components/status-indicator/index.js +1 -1
- package/dist/components/status-indicator/types.d.ts +1 -1
- package/dist/components/status-indicator/types.js +1 -1
- package/dist/components/switch/context.d.ts +5 -5
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/context.js.map +1 -1
- package/dist/components/switch/index.d.ts +3 -3
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/styles.module.css +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/switch/types.js +1 -1
- package/dist/components/table/body.d.ts +3 -3
- package/dist/components/table/body.js +1 -1
- package/dist/components/table/body.js.map +1 -1
- package/dist/components/table/cell.d.ts +3 -3
- package/dist/components/table/cell.js +1 -1
- package/dist/components/table/cell.js.map +1 -1
- package/dist/components/table/constants/table.d.ts +1 -1
- package/dist/components/table/constants/table.js +1 -1
- package/dist/components/table/constants/table.js.map +1 -1
- package/dist/components/table/context.d.ts +3 -3
- package/dist/components/table/context.js +1 -1
- package/dist/components/table/context.js.map +1 -1
- package/dist/components/table/header-cell.d.ts +3 -3
- package/dist/components/table/header-cell.js +1 -1
- package/dist/components/table/header-cell.js.map +1 -1
- package/dist/components/table/header.d.ts +3 -3
- package/dist/components/table/header.js +1 -1
- package/dist/components/table/header.js.map +1 -1
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +3 -3
- package/dist/components/table/row.js +1 -1
- package/dist/components/table/row.js.map +1 -1
- package/dist/components/table/styles.module.css +1 -1
- package/dist/components/table/types.d.ts +1 -1
- package/dist/components/table/types.js +1 -1
- package/dist/components/tabs/constants.d.ts +19 -0
- package/dist/components/tabs/constants.js +23 -0
- package/dist/components/tabs/constants.js.map +1 -0
- package/dist/components/tabs/context.d.ts +12 -7
- package/dist/components/tabs/context.js +9 -2
- package/dist/components/tabs/context.js.map +1 -1
- package/dist/components/tabs/index.d.ts +5 -3
- package/dist/components/tabs/index.js +18 -8
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.d.ts +3 -3
- package/dist/components/tabs/list.js +1 -1
- package/dist/components/tabs/list.js.map +1 -1
- package/dist/components/tabs/panel.d.ts +3 -3
- package/dist/components/tabs/panel.js +1 -1
- package/dist/components/tabs/panel.js.map +1 -1
- package/dist/components/tabs/styles.module.css +28 -6
- package/dist/components/tabs/tab.d.ts +8 -7
- package/dist/components/tabs/tab.js +13 -4
- package/dist/components/tabs/tab.js.map +1 -1
- package/dist/components/tabs/types.d.ts +26 -4
- package/dist/components/tabs/types.js +1 -1
- package/dist/components/text-area-field/context.d.ts +5 -5
- package/dist/components/text-area-field/context.js +1 -1
- package/dist/components/text-area-field/context.js.map +1 -1
- package/dist/components/text-area-field/index.d.ts +3 -3
- package/dist/components/text-area-field/index.js +1 -1
- 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 +1 -1
- package/dist/components/text-area-field/types.js +1 -1
- package/dist/components/text-field/context.d.ts +5 -5
- package/dist/components/text-field/context.js +1 -1
- package/dist/components/text-field/context.js.map +1 -1
- package/dist/components/text-field/index.d.ts +3 -3
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/text-field/styles.module.css +1 -1
- package/dist/components/text-field/types.d.ts +1 -1
- package/dist/components/text-field/types.js +1 -1
- package/dist/components/time-field/index.d.ts +3 -3
- package/dist/components/time-field/index.js +1 -1
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/styles.module.css +1 -1
- package/dist/components/time-field/types.d.ts +1 -1
- package/dist/components/time-field/types.js +1 -1
- package/dist/components/tooltip/context.d.ts +3 -3
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/context.js.map +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/styles.module.css +1 -1
- package/dist/components/tooltip/trigger.d.ts +3 -3
- package/dist/components/tooltip/trigger.js +1 -1
- package/dist/components/tooltip/trigger.js.map +1 -1
- package/dist/components/tooltip/types.d.ts +1 -1
- package/dist/components/tooltip/types.js +1 -1
- package/dist/components/tree/context.d.ts +4 -4
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/context.js.map +1 -1
- package/dist/components/tree/index.d.ts +3 -3
- package/dist/components/tree/index.js +1 -1
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +3 -3
- package/dist/components/tree/item-actions.js +1 -1
- package/dist/components/tree/item-actions.js.map +1 -1
- package/dist/components/tree/item-content.d.ts +3 -3
- package/dist/components/tree/item-content.js +1 -1
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +3 -3
- package/dist/components/tree/item-description.js +1 -1
- package/dist/components/tree/item-description.js.map +1 -1
- package/dist/components/tree/item-label.d.ts +3 -3
- package/dist/components/tree/item-label.js +1 -1
- package/dist/components/tree/item-label.js.map +1 -1
- package/dist/components/tree/item-prefix-icon.d.ts +3 -3
- package/dist/components/tree/item-prefix-icon.js +1 -1
- package/dist/components/tree/item-prefix-icon.js.map +1 -1
- package/dist/components/tree/item.d.ts +3 -3
- package/dist/components/tree/item.js +1 -1
- package/dist/components/tree/item.js.map +1 -1
- package/dist/components/tree/lines.d.ts +3 -3
- package/dist/components/tree/lines.js +1 -1
- package/dist/components/tree/lines.js.map +1 -1
- package/dist/components/tree/styles.module.css +1 -1
- package/dist/components/tree/types.d.ts +1 -1
- package/dist/components/tree/types.js +1 -1
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components/video/index.js +4 -9
- package/dist/components/video/index.js.map +1 -1
- package/dist/components/video/types.d.ts +1 -1
- package/dist/components/video/types.js +1 -1
- package/dist/components/view-stack/context.d.ts +3 -3
- package/dist/components/view-stack/context.js +1 -1
- package/dist/components/view-stack/context.js.map +1 -1
- package/dist/components/view-stack/events.js +1 -1
- package/dist/components/view-stack/events.js.map +1 -1
- package/dist/components/view-stack/index.d.ts +3 -3
- package/dist/components/view-stack/index.js +1 -1
- package/dist/components/view-stack/index.js.map +1 -1
- package/dist/components/view-stack/trigger.d.ts +3 -3
- package/dist/components/view-stack/trigger.js +1 -1
- package/dist/components/view-stack/trigger.js.map +1 -1
- package/dist/components/view-stack/types.d.ts +1 -1
- package/dist/components/view-stack/types.js +1 -1
- package/dist/components/view-stack/view.d.ts +3 -3
- package/dist/components/view-stack/view.js +1 -1
- package/dist/components/view-stack/view.js.map +1 -1
- package/dist/hooks/coordinate-field/index.d.ts +1 -1
- package/dist/hooks/coordinate-field/index.js +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-copy.d.ts +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-copy.js +4 -9
- package/dist/hooks/coordinate-field/use-coordinate-copy.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field-state.d.ts +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.js +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-focus.d.ts +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-focus.js +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-focus.js.map +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-paste.d.ts +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-paste.js +1 -1
- package/dist/hooks/coordinate-field/use-coordinate-paste.js.map +1 -1
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js +1 -1
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js.map +1 -1
- package/dist/hooks/kanban/index.d.ts +1 -1
- package/dist/hooks/kanban/index.js +1 -1
- package/dist/hooks/kanban/index.js.map +1 -1
- package/dist/hooks/use-frame-delay/index.js +1 -1
- package/dist/hooks/use-frame-delay/index.js.map +1 -1
- package/dist/hooks/use-tree/actions/cache.d.ts +1 -1
- package/dist/hooks/use-tree/actions/cache.js +1 -1
- package/dist/hooks/use-tree/actions/cache.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +1 -1
- package/dist/hooks/use-tree/actions/index.js +1 -1
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +1 -1
- package/dist/hooks/use-tree/state/index.js +1 -1
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/hooks/use-tree/state/utils.d.ts +1 -1
- package/dist/hooks/use-tree/state/utils.js +1 -1
- package/dist/hooks/use-tree/state/utils.js.map +1 -1
- package/dist/hooks/use-tree/types.d.ts +1 -1
- package/dist/hooks/use-tree/types.js +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.js +7 -4
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/providers/portal.d.ts +3 -3
- package/dist/providers/portal.js +1 -1
- package/dist/providers/portal.js.map +1 -1
- package/dist/providers/theme-provider.d.ts +1 -1
- package/dist/providers/theme-provider.js +1 -1
- package/dist/providers/theme-provider.js.map +1 -1
- package/dist/utils/logger/index.js +31 -0
- package/dist/utils/logger/index.js.map +1 -0
- package/package.json +18 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","names":[],"sources":["../../../src/components/drawer/layout.tsx"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"layout.js","names":[],"sources":["../../../src/components/drawer/layout.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { DrawerLayoutProps } from './types';\n\n/**\n * DrawerLayout - CSS Grid layout container for positioning panels\n *\n * A shared layout primitive used by Drawer, Sidenav, and other panel components.\n * Controls how panels are positioned relative to the main content area.\n *\n * @param props - {@link DrawerLayoutProps}\n * @param props.className - Optional CSS class name.\n * @param props.extend - Which drawers should extend to full container dimensions.\n * @param props.push - Which drawers push the main content aside.\n * @returns The rendered DrawerLayout component.\n *\n * @example\n * ```tsx\n * <DrawerLayout extend=\"left right\" push=\"left\">\n * <DrawerLayoutMain>\n * // Main content here\n * </DrawerLayoutMain>\n * <Drawer placement=\"left\">...</Drawer>\n * </DrawerLayout>\n * ```\n */\nexport function DrawerLayout({\n className,\n extend = 'left right',\n push,\n ...rest\n}: DrawerLayoutProps) {\n return (\n <div\n {...rest}\n className={clsx('group/layout', styles.layout, className)}\n data-extend={extend}\n data-push={push || null}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,SAAgB,aAAa,EAC3B,WACA,SAAS,cACT,MACA,GAAG,QACiB;AACpB,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,gBAAgB,OAAO,QAAQ,UAAU;EACzD,eAAa;EACb,aAAW,QAAQ;GACnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerMenuItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/menu-item.d.ts
|
|
18
18
|
|
|
@@ -45,7 +45,7 @@ declare function DrawerMenuItem({
|
|
|
45
45
|
toggle,
|
|
46
46
|
textValue,
|
|
47
47
|
...rest
|
|
48
|
-
}: DrawerMenuItemProps):
|
|
48
|
+
}: DrawerMenuItemProps): react_jsx_runtime73.JSX.Element | null;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { DrawerMenuItem };
|
|
51
51
|
//# sourceMappingURL=menu-item.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.js","names":["TooltipTrigger","ToggleButton","children","Tooltip"],"sources":["../../../src/components/drawer/menu-item.tsx"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"menu-item.js","names":["TooltipTrigger","ToggleButton","children","Tooltip"],"sources":["../../../src/components/drawer/menu-item.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useContext, useRef } from 'react';\nimport { composeRenderProps } from 'react-aria-components';\nimport { ToggleButton } from '../button/toggle';\nimport { Icon } from '../icon';\nimport { Tooltip } from '../tooltip';\nimport { TooltipTrigger } from '../tooltip/trigger';\nimport { ViewStackContext } from '../view-stack/context';\nimport { DrawerContext } from './context';\nimport styles from './styles.module.css';\nimport { DrawerTrigger } from './trigger';\nimport type { DrawerMenuItemProps } from './types';\n\nconst tooltipPlacementMap = {\n left: 'right',\n right: 'left',\n top: 'bottom',\n bottom: 'top',\n} as const;\n\n/**\n * DrawerMenuItem - Individual navigation item within DrawerMenu.\n *\n * Renders as a toggle button with an icon and tooltip.\n * The `for` prop specifies which view to navigate to.\n * Use `toggle` prop to toggle the view open/closed instead of just opening.\n *\n * @param props - {@link DrawerMenuItemProps}\n * @param props.for - The unique ID of the view to navigate to.\n * @param props.children - Icon content to render inside the button.\n * @param props.classNames - Optional class names for item and tooltip.\n * @param props.toggle - Whether to toggle the view open/closed.\n * @param props.textValue - Text for the tooltip.\n * @returns The rendered DrawerMenuItem component, or null if outside a Drawer.\n *\n * @example\n * ```tsx\n * <DrawerMenuItem for={viewId} textValue=\"Settings\">\n * <SettingsIcon />\n * </DrawerMenuItem>\n * ```\n */\nexport function DrawerMenuItem({\n for: id,\n children,\n classNames,\n toggle,\n textValue,\n ...rest\n}: DrawerMenuItemProps) {\n const { parent, stack } = useContext(ViewStackContext);\n const { placement } = useContext(DrawerContext);\n const view = stack.at(-1);\n const action = toggle ? 'toggle' : 'open';\n const tooltipRef = useRef(null);\n\n if (!parent) {\n return null;\n }\n\n return (\n <TooltipTrigger>\n <DrawerTrigger for={`${action}:${id}`}>\n <ToggleButton\n ref={tooltipRef}\n className={composeRenderProps(classNames?.item, (className) =>\n clsx(styles.item, className),\n )}\n color='accent'\n role='tab'\n variant='icon'\n isSelected={id === view || (stack.length > 1 && stack.includes(id))}\n {...rest}\n >\n {composeRenderProps(children, (children) => (\n <Icon>{children}</Icon>\n ))}\n </ToggleButton>\n </DrawerTrigger>\n <Tooltip\n triggerRef={tooltipRef}\n placement={tooltipPlacementMap[placement]}\n offset={6}\n className={classNames?.tooltip}\n >\n {textValue}\n </Tooltip>\n </TooltipTrigger>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,sBAAsB;CAC1B,MAAM;CACN,OAAO;CACP,KAAK;CACL,QAAQ;CACT;;;;;;;;;;;;;;;;;;;;;;;AAwBD,SAAgB,eAAe,EAC7B,KAAK,IACL,UACA,YACA,QACA,WACA,GAAG,QACmB;CACtB,MAAM,EAAE,QAAQ,UAAU,WAAW,iBAAiB;CACtD,MAAM,EAAE,cAAc,WAAW,cAAc;CAC/C,MAAM,OAAO,MAAM,GAAG,GAAG;CACzB,MAAM,SAAS,SAAS,WAAW;CACnC,MAAM,aAAa,OAAO,KAAK;AAE/B,KAAI,CAAC,OACH,QAAO;AAGT,QACE,qBAACA,+BACC,oBAAC;EAAc,KAAK,GAAG,OAAO,GAAG;YAC/B,oBAACC;GACC,KAAK;GACL,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,OAAO,MAAM,UAAU,CAC7B;GACD,OAAM;GACN,MAAK;GACL,SAAQ;GACR,YAAY,OAAO,QAAS,MAAM,SAAS,KAAK,MAAM,SAAS,GAAG;GAClE,GAAI;aAEH,mBAAmB,WAAW,eAC7B,oBAAC,kBAAMC,aAAgB,CACvB;IACW;GACD,EAChB,oBAACC;EACC,YAAY;EACZ,WAAW,oBAAoB;EAC/B,QAAQ;EACR,WAAW,YAAY;YAEtB;GACO,IACK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerMenuProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/menu.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ declare function DrawerMenu({
|
|
|
39
39
|
position,
|
|
40
40
|
children,
|
|
41
41
|
...rest
|
|
42
|
-
}: DrawerMenuProps):
|
|
42
|
+
}: DrawerMenuProps): react_jsx_runtime78.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { DrawerMenu };
|
|
45
45
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","names":[],"sources":["../../../src/components/drawer/menu.tsx"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"menu.js","names":[],"sources":["../../../src/components/drawer/menu.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { DrawerMenuProps } from './types';\n\n/**\n * DrawerMenu - Navigation menu for switching between drawer views.\n *\n * Contains DrawerMenuItem components. Renders as a semantic `<nav>` element.\n *\n * @param props - {@link DrawerMenuProps}\n * @param props.className - Optional CSS class name.\n * @param props.position - Position of the menu within the layout.\n * @param props.children - DrawerMenuItem components to render.\n * @returns The rendered DrawerMenu component.\n *\n * @example\n * ```tsx\n * <DrawerMenu position=\"center\">\n * <DrawerMenuItem for={viewA}>View A</DrawerMenuItem>\n * <DrawerMenuItem for={viewB}>View B</DrawerMenuItem>\n * </DrawerMenu>\n * ```\n */\nexport function DrawerMenu({\n className,\n position = 'center',\n children,\n ...rest\n}: DrawerMenuProps) {\n return (\n <nav {...rest} className={clsx(styles.menu, styles[position], className)}>\n {children}\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,SAAgB,WAAW,EACzB,WACA,WAAW,UACX,UACA,GAAG,QACe;AAClB,QACE,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,OAAO,WAAW,UAAU;EACrE;GACG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/panel.d.ts
|
|
17
17
|
|
|
@@ -36,7 +36,7 @@ import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
|
36
36
|
declare function DrawerPanel({
|
|
37
37
|
className,
|
|
38
38
|
...rest
|
|
39
|
-
}: ComponentPropsWithRef<'div'>):
|
|
39
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime23.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { DrawerPanel };
|
|
42
42
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.js","names":[],"sources":["../../../src/components/drawer/panel.tsx"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"panel.js","names":[],"sources":["../../../src/components/drawer/panel.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { ComponentPropsWithRef } from 'react';\n\n/**\n * DrawerPanel - Main panel container for drawer content.\n *\n * Contains DrawerView components. Only one DrawerPanel allowed per Drawer.\n *\n * @param props - ComponentPropsWithRef<'div'>\n * @param props.className - Optional CSS class name.\n * @returns The rendered DrawerPanel component.\n *\n * @example\n * ```tsx\n * <Drawer id={drawerId} defaultView={viewId}>\n * <DrawerPanel>\n * <DrawerView id={viewId}>...</DrawerView>\n * </DrawerPanel>\n * </Drawer>\n * ```\n */\nexport function DrawerPanel({\n className,\n ...rest\n}: ComponentPropsWithRef<'div'>) {\n return <div {...rest} className={clsx(styles.panel, className)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,SAAgB,YAAY,EAC1B,WACA,GAAG,QAC4B;AAC/B,QAAO,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,OAAO,UAAU;GAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/trigger.d.ts
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
|
47
47
|
declare function DrawerTrigger({
|
|
48
48
|
for: events,
|
|
49
49
|
...rest
|
|
50
|
-
}: DrawerTriggerProps):
|
|
50
|
+
}: DrawerTriggerProps): react_jsx_runtime27.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { DrawerTrigger };
|
|
53
53
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","names":[],"sources":["../../../src/components/drawer/trigger.tsx"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"trigger.js","names":[],"sources":["../../../src/components/drawer/trigger.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { isUUID, type UniqueId } from '@accelint/core';\nimport { Pressable } from '@react-aria/interactions';\nimport 'client-only';\nimport { useContext } from 'react';\nimport { ViewStackContext } from '../view-stack/context';\nimport { useDrawerEmit } from './context';\nimport type { DrawerTriggerProps } from './types';\n\n/**\n * DrawerTrigger - Programmatic trigger for drawer actions.\n *\n * The `for` prop controls the behavior:\n * - `'open'`, `'toggle'`, `'close'`: Control drawer open state\n * - `'back'`: Pop the current view from the stack\n * - `UniqueId`: Push a specific view onto the stack\n * - `'action:viewId'`: Combine action with view ID (e.g., `'open:${viewId}'`)\n * - `Array`: Fire multiple events in sequence\n *\n * @param props - {@link DrawerTriggerProps}\n * @param props.for - The event(s) to fire when the trigger is pressed.\n * @returns The rendered DrawerTrigger component.\n *\n * @example\n * ```tsx\n * <DrawerTrigger for=\"close\">\n * <Button>Close</Button>\n * </DrawerTrigger>\n * ```\n\n * @example\n * ```tsx\n * <DrawerTrigger for={`open:${viewId}`}>\n * <Button>Open Settings</Button>\n * </DrawerTrigger>\n * ```\n */\nexport function DrawerTrigger({ for: events, ...rest }: DrawerTriggerProps) {\n const { parent } = useContext(ViewStackContext);\n const drawerEmit = useDrawerEmit();\n\n function handlePress() {\n for (const type of Array.isArray(events) ? events : [events]) {\n let [event, id] = (isUUID(type) ? ['push', type] : type.split(':')) as [\n 'back' | 'clear' | 'close' | 'open' | 'push' | 'reset' | 'toggle',\n UniqueId | undefined | null,\n ];\n\n id ??= parent;\n\n if (!id) {\n continue;\n }\n\n drawerEmit[event](id);\n }\n }\n\n return <Pressable {...rest} onPress={handlePress} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAgB,cAAc,EAAE,KAAK,QAAQ,GAAG,QAA4B;CAC1E,MAAM,EAAE,WAAW,WAAW,iBAAiB;CAC/C,MAAM,aAAa,eAAe;CAElC,SAAS,cAAc;AACrB,OAAK,MAAM,QAAQ,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE;GAC5D,IAAI,CAAC,OAAO,MAAO,OAAO,KAAK,GAAG,CAAC,QAAQ,KAAK,GAAG,KAAK,MAAM,IAAI;AAKlE,UAAO;AAEP,OAAI,CAAC,GACH;AAGF,cAAW,OAAO,GAAG;;;AAIzB,QAAO,oBAAC;EAAU,GAAI;EAAM,SAAS;GAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -13,7 +13,7 @@
|
|
|
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_runtime31 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/drawer/view.d.ts
|
|
19
19
|
|
|
@@ -44,7 +44,7 @@ declare function DrawerView({
|
|
|
44
44
|
children,
|
|
45
45
|
className,
|
|
46
46
|
...rest
|
|
47
|
-
}: ViewStackViewProps & ComponentPropsWithRef<'div'>):
|
|
47
|
+
}: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime31.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { DrawerView };
|
|
50
50
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","names":[],"sources":["../../../src/components/drawer/view.tsx"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"view.js","names":[],"sources":["../../../src/components/drawer/view.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { 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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -12,14 +12,14 @@
|
|
|
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 react14 from "react";
|
|
16
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/flashcard/index.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing Flashcard state across child components.
|
|
21
21
|
*/
|
|
22
|
-
declare const FlashcardContext:
|
|
22
|
+
declare const FlashcardContext: react14.Context<FlashcardProps>;
|
|
23
23
|
/**
|
|
24
24
|
* Flashcard - A quick visual identifier for map entity data.
|
|
25
25
|
*
|
|
@@ -46,7 +46,7 @@ declare const FlashcardContext: react9.Context<FlashcardProps>;
|
|
|
46
46
|
* </Flashcard>
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
declare function Flashcard(props: FlashcardProps):
|
|
49
|
+
declare function Flashcard(props: FlashcardProps): react_jsx_runtime35.JSX.Element;
|
|
50
50
|
declare namespace Flashcard {
|
|
51
51
|
var displayName: string;
|
|
52
52
|
}
|
|
@@ -68,7 +68,7 @@ declare namespace Flashcard {
|
|
|
68
68
|
* </Flashcard>
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare function FlashcardHero(props: FlashcardComponentProps):
|
|
71
|
+
declare function FlashcardHero(props: FlashcardComponentProps): react_jsx_runtime35.JSX.Element;
|
|
72
72
|
declare namespace FlashcardHero {
|
|
73
73
|
var displayName: string;
|
|
74
74
|
}
|
|
@@ -92,7 +92,7 @@ declare namespace FlashcardHero {
|
|
|
92
92
|
* </Flashcard>
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
|
-
declare function FlashcardAdditionalData(props: FlashcardComponentProps):
|
|
95
|
+
declare function FlashcardAdditionalData(props: FlashcardComponentProps): react_jsx_runtime35.JSX.Element | null;
|
|
96
96
|
declare namespace FlashcardAdditionalData {
|
|
97
97
|
var displayName: string;
|
|
98
98
|
}
|
|
@@ -119,7 +119,7 @@ declare namespace FlashcardAdditionalData {
|
|
|
119
119
|
* </Flashcard>
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
declare function FlashcardDetailsList(props: FlashcardDetailsListProps):
|
|
122
|
+
declare function FlashcardDetailsList(props: FlashcardDetailsListProps): react_jsx_runtime35.JSX.Element;
|
|
123
123
|
declare namespace FlashcardDetailsList {
|
|
124
124
|
var displayName: string;
|
|
125
125
|
}
|
|
@@ -141,7 +141,7 @@ declare namespace FlashcardDetailsList {
|
|
|
141
141
|
* </FlashcardDetailsList>
|
|
142
142
|
* ```
|
|
143
143
|
*/
|
|
144
|
-
declare function FlashcardDetailsLabel(props: FlashcardComponentProps):
|
|
144
|
+
declare function FlashcardDetailsLabel(props: FlashcardComponentProps): react_jsx_runtime35.JSX.Element;
|
|
145
145
|
declare namespace FlashcardDetailsLabel {
|
|
146
146
|
var displayName: string;
|
|
147
147
|
}
|
|
@@ -163,7 +163,7 @@ declare namespace FlashcardDetailsLabel {
|
|
|
163
163
|
* </FlashcardDetailsList>
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
declare function FlashcardDetailsValue(props: FlashcardComponentProps):
|
|
166
|
+
declare function FlashcardDetailsValue(props: FlashcardComponentProps): react_jsx_runtime35.JSX.Element;
|
|
167
167
|
declare namespace FlashcardDetailsValue {
|
|
168
168
|
var displayName: string;
|
|
169
169
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/flashcard/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';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport 'client-only';\nimport { createContext, useContext } from 'react';\nimport { Heading, Text } from 'react-aria-components';\nimport { DetailsList } from '../details-list';\nimport { DetailsListLabel } from '../details-list/label';\nimport { DetailsListValue } from '../details-list/value';\nimport { Skeleton } from '../skeleton';\nimport styles from './styles.module.css';\nimport type {\n FlashcardComponentProps,\n FlashcardDetailsListProps,\n FlashcardProps,\n} from './types';\n\n/**\n * Context for sharing Flashcard state across child components.\n */\nexport const FlashcardContext = createContext<FlashcardProps>({\n isLoading: false,\n header: '',\n subheader: '',\n});\n\n/**\n * Flashcard - A quick visual identifier for map entity data.\n *\n * Container component that provides loading state and header/subheader\n * to child components via context.\n *\n * @param props - {@link FlashcardProps}\n * @param props.isLoading - Whether the flashcard is in a loading state.\n * @param props.header - Primary header text.\n * @param props.subheader - Secondary text below the header.\n * @param props.children - Child components to render.\n * @param props.className - Optional CSS class name.\n * @returns The rendered Flashcard component.\n *\n * @example\n * ```tsx\n * <Flashcard isLoading={false} header=\"Identifier\" subheader=\"DATA\">\n * <FlashcardHero />\n * <FlashcardAdditionalData>Secondary info</FlashcardAdditionalData>\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Active</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * </Flashcard>\n * ```\n */\nexport function Flashcard(props: FlashcardProps) {\n const { isLoading, header, subheader, children, className, ...rest } = props;\n\n return (\n <FlashcardContext.Provider value={{ isLoading, header, subheader }}>\n <div {...rest} className={clsx(styles.container, className)}>\n {children}\n </div>\n </FlashcardContext.Provider>\n );\n}\nFlashcard.displayName = 'Flashcard';\n\n/**\n * FlashcardHero - Upper section displaying header and subheader.\n *\n * Reads header and subheader from Flashcard context. Shows skeleton\n * placeholders when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Optional child content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardHero component.\n *\n * @example\n * ```tsx\n * <Flashcard header=\"Entity Name\" subheader=\"Type\">\n * <FlashcardHero />\n * </Flashcard>\n * ```\n */\nexport function FlashcardHero(props: FlashcardComponentProps) {\n const { children, className, ...rest } = props;\n const { isLoading, header, subheader } = useContext(FlashcardContext);\n\n if (isLoading) {\n return (\n <div {...rest} className={clsx(styles.hero, className, 'gap-s')}>\n <Skeleton className={styles.skeleton} data-testid='hero-skeleton' />\n <Skeleton className={clsx(styles.skeleton, styles.half)} />\n </div>\n );\n }\n\n return (\n <div {...rest} className={clsx(styles.hero, className)}>\n <FlashcardHeader className={styles.header}>{header}</FlashcardHeader>\n <FlashcardSubheader className={styles.subheader}>\n {subheader}\n </FlashcardSubheader>\n </div>\n );\n}\nFlashcardHero.displayName = 'FlashcardHero';\n\nconst FlashcardHeader = Heading;\nconst FlashcardSubheader = Text;\n\n/**\n * FlashcardAdditionalData - Secondary data section below the hero.\n *\n * Hidden when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Content to display in the section.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardAdditionalData component, or null if loading.\n *\n * @example\n * ```tsx\n * <Flashcard header=\"Entity\" subheader=\"Data\">\n * <FlashcardHero />\n * <FlashcardAdditionalData>\n * Last updated: 2024-01-15\n * </FlashcardAdditionalData>\n * </Flashcard>\n * ```\n */\nexport function FlashcardAdditionalData(props: FlashcardComponentProps) {\n const { children, className, ...rest } = props;\n const { isLoading } = useContext(FlashcardContext);\n\n // While loading, don't display.\n if (isLoading) {\n return null;\n }\n\n return (\n <div {...rest} className={clsx(styles.data, className)}>\n {children}\n </div>\n );\n}\nFlashcardAdditionalData.displayName = 'FlashcardAdditionalData';\n\n/**\n * FlashcardDetailsList - Wrapper for key-value detail pairs.\n *\n * Wraps DetailsList with justify alignment for flashcard styling.\n *\n * @param props - {@link FlashcardDetailsListProps}\n * @param props.children - FlashcardDetailsLabel and FlashcardDetailsValue pairs.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardDetailsList component.\n *\n * @example\n * ```tsx\n * <Flashcard header=\"Aircraft\" subheader=\"Entity\">\n * <FlashcardHero />\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Active</FlashcardDetailsValue>\n * <FlashcardDetailsLabel>Speed</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>450 kts</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * </Flashcard>\n * ```\n */\nexport function FlashcardDetailsList(props: FlashcardDetailsListProps) {\n const { children, className, ...rest } = props;\n return (\n <DetailsList\n {...rest}\n align='justify'\n classNames={{ list: clsx(styles['details-list'], className) }}\n >\n {children}\n </DetailsList>\n );\n}\nFlashcardDetailsList.displayName = 'FlashcardDetailsList';\n\n/**\n * FlashcardDetailsLabel - Label for detail items.\n *\n * Shows skeleton placeholder when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Label text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardDetailsLabel component.\n *\n * @example\n * ```tsx\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Active</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * ```\n */\nexport function FlashcardDetailsLabel(props: FlashcardComponentProps) {\n const { isLoading } = useContext(FlashcardContext);\n const { className, children, ...rest } = props;\n return (\n <DetailsListLabel\n {...rest}\n className={clsx(styles['details-label'], className)}\n >\n {isLoading ? (\n <Skeleton className={clsx(styles.skeleton, styles.smaller)} />\n ) : (\n children\n )}\n </DetailsListLabel>\n );\n}\nFlashcardDetailsLabel.displayName = 'FlashcardDetailsLabel';\n\n/**\n * FlashcardDetailsValue - Value for detail items.\n *\n * Shows skeleton placeholder when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Value text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardDetailsValue component.\n *\n * @example\n * ```tsx\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Type</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Aircraft</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * ```\n */\nexport function FlashcardDetailsValue(props: FlashcardComponentProps) {\n const { isLoading } = useContext(FlashcardContext);\n const { className, children, ...rest } = props;\n return (\n <DetailsListValue\n {...rest}\n className={clsx(styles['details-value'], className)}\n >\n {isLoading ? (\n <Skeleton className={clsx(styles.skeleton, styles.smaller)} />\n ) : (\n children\n )}\n </DetailsListValue>\n );\n}\nFlashcardDetailsValue.displayName = 'FlashcardDetailsValue';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAa,mBAAmB,cAA8B;CAC5D,WAAW;CACX,QAAQ;CACR,WAAW;CACZ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BF,SAAgB,UAAU,OAAuB;CAC/C,MAAM,EAAE,WAAW,QAAQ,WAAW,UAAU,WAAW,GAAG,SAAS;AAEvE,QACE,oBAAC,iBAAiB;EAAS,OAAO;GAAE;GAAW;GAAQ;GAAW;YAChE,oBAAC;GAAI,GAAI;GAAM,WAAW,KAAK,OAAO,WAAW,UAAU;GACxD;IACG;GACoB;;AAGhC,UAAU,cAAc;;;;;;;;;;;;;;;;;;;AAoBxB,SAAgB,cAAc,OAAgC;CAC5D,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CACzC,MAAM,EAAE,WAAW,QAAQ,cAAc,WAAW,iBAAiB;AAErE,KAAI,UACF,QACE,qBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,WAAW,QAAQ;aAC7D,oBAAC;GAAS,WAAW,OAAO;GAAU,eAAY;IAAkB,EACpE,oBAAC,YAAS,WAAW,KAAK,OAAO,UAAU,OAAO,KAAK,GAAI;GACvD;AAIV,QACE,qBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,UAAU;aACpD,oBAAC;GAAgB,WAAW,OAAO;aAAS;IAAyB,EACrE,oBAAC;GAAmB,WAAW,OAAO;aACnC;IACkB;GACjB;;AAGV,cAAc,cAAc;AAE5B,MAAM,kBAAkB;AACxB,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;AAsB3B,SAAgB,wBAAwB,OAAgC;CACtE,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CACzC,MAAM,EAAE,cAAc,WAAW,iBAAiB;AAGlD,KAAI,UACF,QAAO;AAGT,QACE,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,UAAU;EACnD;GACG;;AAGV,wBAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;AAyBtC,SAAgB,qBAAqB,OAAkC;CACrE,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;AACzC,QACE,oBAAC;EACC,GAAI;EACJ,OAAM;EACN,YAAY,EAAE,MAAM,KAAK,OAAO,iBAAiB,UAAU,EAAE;EAE5D;GACW;;AAGlB,qBAAqB,cAAc;;;;;;;;;;;;;;;;;;;AAoBnC,SAAgB,sBAAsB,OAAgC;CACpE,MAAM,EAAE,cAAc,WAAW,iBAAiB;CAClD,MAAM,EAAE,WAAW,UAAU,GAAG,SAAS;AACzC,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,OAAO,kBAAkB,UAAU;YAElD,YACC,oBAAC,YAAS,WAAW,KAAK,OAAO,UAAU,OAAO,QAAQ,GAAI,GAE9D;GAEe;;AAGvB,sBAAsB,cAAc;;;;;;;;;;;;;;;;;;;AAoBpC,SAAgB,sBAAsB,OAAgC;CACpE,MAAM,EAAE,cAAc,WAAW,iBAAiB;CAClD,MAAM,EAAE,WAAW,UAAU,GAAG,SAAS;AACzC,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,OAAO,kBAAkB,UAAU;YAElD,YACC,oBAAC,YAAS,WAAW,KAAK,OAAO,UAAU,OAAO,QAAQ,GAAI,GAE9D;GAEe;;AAGvB,sBAAsB,cAAc"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/flashcard/index.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport 'client-only';\nimport { createContext, useContext } from 'react';\nimport { Heading, Text } from 'react-aria-components';\nimport { DetailsList } from '../details-list';\nimport { DetailsListLabel } from '../details-list/label';\nimport { DetailsListValue } from '../details-list/value';\nimport { Skeleton } from '../skeleton';\nimport styles from './styles.module.css';\nimport type {\n FlashcardComponentProps,\n FlashcardDetailsListProps,\n FlashcardProps,\n} from './types';\n\n/**\n * Context for sharing Flashcard state across child components.\n */\nexport const FlashcardContext = createContext<FlashcardProps>({\n isLoading: false,\n header: '',\n subheader: '',\n});\n\n/**\n * Flashcard - A quick visual identifier for map entity data.\n *\n * Container component that provides loading state and header/subheader\n * to child components via context.\n *\n * @param props - {@link FlashcardProps}\n * @param props.isLoading - Whether the flashcard is in a loading state.\n * @param props.header - Primary header text.\n * @param props.subheader - Secondary text below the header.\n * @param props.children - Child components to render.\n * @param props.className - Optional CSS class name.\n * @returns The rendered Flashcard component.\n *\n * @example\n * ```tsx\n * <Flashcard isLoading={false} header=\"Identifier\" subheader=\"DATA\">\n * <FlashcardHero />\n * <FlashcardAdditionalData>Secondary info</FlashcardAdditionalData>\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Active</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * </Flashcard>\n * ```\n */\nexport function Flashcard(props: FlashcardProps) {\n const { isLoading, header, subheader, children, className, ...rest } = props;\n\n return (\n <FlashcardContext.Provider value={{ isLoading, header, subheader }}>\n <div {...rest} className={clsx(styles.container, className)}>\n {children}\n </div>\n </FlashcardContext.Provider>\n );\n}\nFlashcard.displayName = 'Flashcard';\n\n/**\n * FlashcardHero - Upper section displaying header and subheader.\n *\n * Reads header and subheader from Flashcard context. Shows skeleton\n * placeholders when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Optional child content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardHero component.\n *\n * @example\n * ```tsx\n * <Flashcard header=\"Entity Name\" subheader=\"Type\">\n * <FlashcardHero />\n * </Flashcard>\n * ```\n */\nexport function FlashcardHero(props: FlashcardComponentProps) {\n const { children, className, ...rest } = props;\n const { isLoading, header, subheader } = useContext(FlashcardContext);\n\n if (isLoading) {\n return (\n <div {...rest} className={clsx(styles.hero, className, 'gap-s')}>\n <Skeleton className={styles.skeleton} data-testid='hero-skeleton' />\n <Skeleton className={clsx(styles.skeleton, styles.half)} />\n </div>\n );\n }\n\n return (\n <div {...rest} className={clsx(styles.hero, className)}>\n <FlashcardHeader className={styles.header}>{header}</FlashcardHeader>\n <FlashcardSubheader className={styles.subheader}>\n {subheader}\n </FlashcardSubheader>\n </div>\n );\n}\nFlashcardHero.displayName = 'FlashcardHero';\n\nconst FlashcardHeader = Heading;\nconst FlashcardSubheader = Text;\n\n/**\n * FlashcardAdditionalData - Secondary data section below the hero.\n *\n * Hidden when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Content to display in the section.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardAdditionalData component, or null if loading.\n *\n * @example\n * ```tsx\n * <Flashcard header=\"Entity\" subheader=\"Data\">\n * <FlashcardHero />\n * <FlashcardAdditionalData>\n * Last updated: 2024-01-15\n * </FlashcardAdditionalData>\n * </Flashcard>\n * ```\n */\nexport function FlashcardAdditionalData(props: FlashcardComponentProps) {\n const { children, className, ...rest } = props;\n const { isLoading } = useContext(FlashcardContext);\n\n // While loading, don't display.\n if (isLoading) {\n return null;\n }\n\n return (\n <div {...rest} className={clsx(styles.data, className)}>\n {children}\n </div>\n );\n}\nFlashcardAdditionalData.displayName = 'FlashcardAdditionalData';\n\n/**\n * FlashcardDetailsList - Wrapper for key-value detail pairs.\n *\n * Wraps DetailsList with justify alignment for flashcard styling.\n *\n * @param props - {@link FlashcardDetailsListProps}\n * @param props.children - FlashcardDetailsLabel and FlashcardDetailsValue pairs.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardDetailsList component.\n *\n * @example\n * ```tsx\n * <Flashcard header=\"Aircraft\" subheader=\"Entity\">\n * <FlashcardHero />\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Active</FlashcardDetailsValue>\n * <FlashcardDetailsLabel>Speed</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>450 kts</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * </Flashcard>\n * ```\n */\nexport function FlashcardDetailsList(props: FlashcardDetailsListProps) {\n const { children, className, ...rest } = props;\n return (\n <DetailsList\n {...rest}\n align='justify'\n classNames={{ list: clsx(styles['details-list'], className) }}\n >\n {children}\n </DetailsList>\n );\n}\nFlashcardDetailsList.displayName = 'FlashcardDetailsList';\n\n/**\n * FlashcardDetailsLabel - Label for detail items.\n *\n * Shows skeleton placeholder when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Label text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardDetailsLabel component.\n *\n * @example\n * ```tsx\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Status</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Active</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * ```\n */\nexport function FlashcardDetailsLabel(props: FlashcardComponentProps) {\n const { isLoading } = useContext(FlashcardContext);\n const { className, children, ...rest } = props;\n return (\n <DetailsListLabel\n {...rest}\n className={clsx(styles['details-label'], className)}\n >\n {isLoading ? (\n <Skeleton className={clsx(styles.skeleton, styles.smaller)} />\n ) : (\n children\n )}\n </DetailsListLabel>\n );\n}\nFlashcardDetailsLabel.displayName = 'FlashcardDetailsLabel';\n\n/**\n * FlashcardDetailsValue - Value for detail items.\n *\n * Shows skeleton placeholder when the parent Flashcard has isLoading=true.\n *\n * @param props - {@link FlashcardComponentProps}\n * @param props.children - Value text content.\n * @param props.className - Optional CSS class name.\n * @returns The rendered FlashcardDetailsValue component.\n *\n * @example\n * ```tsx\n * <FlashcardDetailsList>\n * <FlashcardDetailsLabel>Type</FlashcardDetailsLabel>\n * <FlashcardDetailsValue>Aircraft</FlashcardDetailsValue>\n * </FlashcardDetailsList>\n * ```\n */\nexport function FlashcardDetailsValue(props: FlashcardComponentProps) {\n const { isLoading } = useContext(FlashcardContext);\n const { className, children, ...rest } = props;\n return (\n <DetailsListValue\n {...rest}\n className={clsx(styles['details-value'], className)}\n >\n {isLoading ? (\n <Skeleton className={clsx(styles.skeleton, styles.smaller)} />\n ) : (\n children\n )}\n </DetailsListValue>\n );\n}\nFlashcardDetailsValue.displayName = 'FlashcardDetailsValue';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAa,mBAAmB,cAA8B;CAC5D,WAAW;CACX,QAAQ;CACR,WAAW;CACZ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BF,SAAgB,UAAU,OAAuB;CAC/C,MAAM,EAAE,WAAW,QAAQ,WAAW,UAAU,WAAW,GAAG,SAAS;AAEvE,QACE,oBAAC,iBAAiB;EAAS,OAAO;GAAE;GAAW;GAAQ;GAAW;YAChE,oBAAC;GAAI,GAAI;GAAM,WAAW,KAAK,OAAO,WAAW,UAAU;GACxD;IACG;GACoB;;AAGhC,UAAU,cAAc;;;;;;;;;;;;;;;;;;;AAoBxB,SAAgB,cAAc,OAAgC;CAC5D,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CACzC,MAAM,EAAE,WAAW,QAAQ,cAAc,WAAW,iBAAiB;AAErE,KAAI,UACF,QACE,qBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,WAAW,QAAQ;aAC7D,oBAAC;GAAS,WAAW,OAAO;GAAU,eAAY;IAAkB,EACpE,oBAAC,YAAS,WAAW,KAAK,OAAO,UAAU,OAAO,KAAK,GAAI;GACvD;AAIV,QACE,qBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,UAAU;aACpD,oBAAC;GAAgB,WAAW,OAAO;aAAS;IAAyB,EACrE,oBAAC;GAAmB,WAAW,OAAO;aACnC;IACkB;GACjB;;AAGV,cAAc,cAAc;AAE5B,MAAM,kBAAkB;AACxB,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;AAsB3B,SAAgB,wBAAwB,OAAgC;CACtE,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;CACzC,MAAM,EAAE,cAAc,WAAW,iBAAiB;AAGlD,KAAI,UACF,QAAO;AAGT,QACE,oBAAC;EAAI,GAAI;EAAM,WAAW,KAAK,OAAO,MAAM,UAAU;EACnD;GACG;;AAGV,wBAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;AAyBtC,SAAgB,qBAAqB,OAAkC;CACrE,MAAM,EAAE,UAAU,WAAW,GAAG,SAAS;AACzC,QACE,oBAAC;EACC,GAAI;EACJ,OAAM;EACN,YAAY,EAAE,MAAM,KAAK,OAAO,iBAAiB,UAAU,EAAE;EAE5D;GACW;;AAGlB,qBAAqB,cAAc;;;;;;;;;;;;;;;;;;;AAoBnC,SAAgB,sBAAsB,OAAgC;CACpE,MAAM,EAAE,cAAc,WAAW,iBAAiB;CAClD,MAAM,EAAE,WAAW,UAAU,GAAG,SAAS;AACzC,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,OAAO,kBAAkB,UAAU;YAElD,YACC,oBAAC,YAAS,WAAW,KAAK,OAAO,UAAU,OAAO,QAAQ,GAAI,GAE9D;GAEe;;AAGvB,sBAAsB,cAAc;;;;;;;;;;;;;;;;;;;AAoBpC,SAAgB,sBAAsB,OAAgC;CACpE,MAAM,EAAE,cAAc,WAAW,iBAAiB;CAClD,MAAM,EAAE,WAAW,UAAU,GAAG,SAAS;AACzC,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,OAAO,kBAAkB,UAAU;YAElD,YACC,oBAAC,YAAS,WAAW,KAAK,OAAO,UAAU,OAAO,QAAQ,GAAI,GAE9D;GAEe;;AAGvB,sBAAsB,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
3
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import * as react12 from "react";
|
|
14
|
+
import { DockviewApi } from "dockview-react";
|
|
15
|
+
import { UniqueId } from "@accelint/core/utility/uuid";
|
|
16
|
+
|
|
17
|
+
//#region src/components/floating-card/context.d.ts
|
|
18
|
+
type FloatingCardContextValue = {
|
|
19
|
+
cards: Record<UniqueId, HTMLDivElement>;
|
|
20
|
+
addRef: (id: UniqueId, ref: HTMLDivElement | null) => void;
|
|
21
|
+
removeRef: (view: UniqueId) => void;
|
|
22
|
+
closeCard: (id: UniqueId) => void;
|
|
23
|
+
api: DockviewApi | null;
|
|
24
|
+
};
|
|
25
|
+
declare const FloatingCardContext: react12.Context<FloatingCardContextValue | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Hook to access the floating card context.
|
|
28
|
+
* Must be used within a FloatingCardProvider.
|
|
29
|
+
*
|
|
30
|
+
* @throws {Error} If used outside of a FloatingCardProvider.
|
|
31
|
+
* @returns The floating card context value.
|
|
32
|
+
*/
|
|
33
|
+
declare function useFloatingCard(): FloatingCardContextValue;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { FloatingCardContext, FloatingCardContextValue, useFloatingCard };
|
|
36
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import { createContext, useContext } from "react";
|
|
15
|
+
|
|
16
|
+
//#region src/components/floating-card/context.tsx
|
|
17
|
+
const FloatingCardContext = createContext(null);
|
|
18
|
+
/**
|
|
19
|
+
* Hook to access the floating card context.
|
|
20
|
+
* Must be used within a FloatingCardProvider.
|
|
21
|
+
*
|
|
22
|
+
* @throws {Error} If used outside of a FloatingCardProvider.
|
|
23
|
+
* @returns The floating card context value.
|
|
24
|
+
*/
|
|
25
|
+
function useFloatingCard() {
|
|
26
|
+
const context = useContext(FloatingCardContext);
|
|
27
|
+
if (!context) throw new Error("useFloatingCard must be used within a FloatingCardProvider.");
|
|
28
|
+
return context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { FloatingCardContext, useFloatingCard };
|
|
33
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/floating-card/context.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { createContext, useContext } from 'react';\nimport type { UniqueId } from '@accelint/core/utility/uuid';\nimport type { DockviewApi } from 'dockview-react';\n\nexport type FloatingCardContextValue = {\n cards: Record<UniqueId, HTMLDivElement>;\n addRef: (id: UniqueId, ref: HTMLDivElement | null) => void;\n removeRef: (view: UniqueId) => void;\n closeCard: (id: UniqueId) => void;\n api: DockviewApi | null;\n};\n\nexport const FloatingCardContext =\n createContext<FloatingCardContextValue | null>(null);\n/**\n * Hook to access the floating card context.\n * Must be used within a FloatingCardProvider.\n *\n * @throws {Error} If used outside of a FloatingCardProvider.\n * @returns The floating card context value.\n */\nexport function useFloatingCard(): FloatingCardContextValue {\n const context = useContext(FloatingCardContext);\n if (!context) {\n throw new Error(\n 'useFloatingCard must be used within a FloatingCardProvider.',\n );\n }\n return context;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAyBA,MAAa,sBACX,cAA+C,KAAK;;;;;;;;AAQtD,SAAgB,kBAA4C;CAC1D,MAAM,UAAU,WAAW,oBAAoB;AAC/C,KAAI,CAAC,QACH,OAAM,IAAI,MACR,8DACD;AAEH,QAAO"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import * as react13 from "react";
|
|
14
|
+
import { PropsWithChildren } from "react";
|
|
15
|
+
import { UniqueId } from "@accelint/core";
|
|
16
|
+
|
|
17
|
+
//#region src/components/floating-card/index.d.ts
|
|
18
|
+
type FloatingCardProps = Readonly<{
|
|
19
|
+
id: UniqueId;
|
|
20
|
+
title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Controls whether the floating card is rendered.
|
|
23
|
+
*
|
|
24
|
+
* When `true`, the card registers with the floating card engine and renders its
|
|
25
|
+
* children via a portal. When `false`, the card is closed and removed.
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue true
|
|
28
|
+
*/
|
|
29
|
+
isOpen?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Initial dimensions of the floating card panel.
|
|
32
|
+
*
|
|
33
|
+
* @defaultValue { width: 300, height: 400 }
|
|
34
|
+
*/
|
|
35
|
+
initialDimensions?: Readonly<{
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
}>;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Renders its children into a floating card using React portals.
|
|
42
|
+
*
|
|
43
|
+
* The `FloatingCard` component registers itself with the floating card engine on mount
|
|
44
|
+
* and renders its children into the corresponding DOM node via a portal.
|
|
45
|
+
*
|
|
46
|
+
* @param id - Unique identifier for the floating card.
|
|
47
|
+
* @param title - Optional title displayed in the floating card header.
|
|
48
|
+
* @param isOpen - Whether the floating card is rendered. Defaults to `true`.
|
|
49
|
+
* @param initialDimensions - Initial width and height of the floating card. Defaults to `{ width: 300, height: 400 }`.
|
|
50
|
+
* @param children - React children to render inside the floating card.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* - Requires `FloatingCardProvider` as an ancestor.
|
|
54
|
+
* - The floating card is only rendered if a valid DOM reference exists for the given `id`.
|
|
55
|
+
*/
|
|
56
|
+
declare function FloatingCard({
|
|
57
|
+
id,
|
|
58
|
+
children,
|
|
59
|
+
title,
|
|
60
|
+
isOpen,
|
|
61
|
+
initialDimensions
|
|
62
|
+
}: PropsWithChildren<FloatingCardProps>): react13.ReactPortal | null;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { FloatingCard, FloatingCardProps };
|
|
65
|
+
//# sourceMappingURL=index.d.ts.map
|