@accelint/design-toolkit 7.0.1 → 8.0.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/README.md +1 -1
- package/catalog-info.yaml +12 -6
- package/dist/components/accordion/context.d.ts +0 -2
- package/dist/components/accordion/group.d.ts +0 -2
- package/dist/components/accordion/group.js +1 -1
- package/dist/components/accordion/group.js.map +1 -1
- package/dist/components/accordion/header.d.ts +0 -2
- package/dist/components/accordion/header.js +1 -1
- package/dist/components/accordion/header.js.map +1 -1
- package/dist/components/accordion/index.d.ts +0 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/accordion/panel.d.ts +0 -2
- package/dist/components/accordion/panel.js +1 -1
- package/dist/components/accordion/panel.js.map +1 -1
- package/dist/components/accordion/styles.module.css +65 -0
- package/dist/components/accordion/trigger.d.ts +0 -2
- package/dist/components/accordion/trigger.js +1 -1
- package/dist/components/accordion/trigger.js.map +1 -1
- package/dist/components/accordion/types.d.ts +5 -5
- package/dist/components/action-bar/index.d.ts +1 -1
- 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 +27 -0
- package/dist/components/action-bar/types.d.ts +3 -1
- package/dist/components/avatar/context.d.ts +0 -3
- package/dist/components/avatar/index.d.ts +0 -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 +45 -0
- package/dist/components/avatar/types.d.ts +1 -4
- package/dist/components/badge/context.d.ts +0 -2
- package/dist/components/badge/index.d.ts +0 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/badge/styles.module.css +67 -0
- package/dist/components/badge/types.d.ts +3 -4
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/breadcrumbs/item.js +1 -1
- package/dist/components/breadcrumbs/item.js.map +1 -1
- package/dist/components/breadcrumbs/styles.module.css +41 -0
- package/dist/components/button/context.d.ts +0 -3
- package/dist/components/button/index.d.ts +0 -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 +0 -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 +917 -0
- package/dist/components/button/toggle.d.ts +0 -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 +6 -6
- package/dist/components/checkbox/group.js +1 -1
- package/dist/components/checkbox/group.js.map +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/styles.module.css +111 -0
- package/dist/components/chip/context.d.ts +3 -6
- package/dist/components/chip/context.js +1 -1
- package/dist/components/chip/context.js.map +1 -1
- package/dist/components/chip/deletable.d.ts +0 -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 +0 -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 +0 -3
- package/dist/components/chip/list.js +1 -1
- package/dist/components/chip/list.js.map +1 -1
- package/dist/components/chip/selectable.d.ts +0 -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 +129 -0
- package/dist/components/chip/types.d.ts +7 -8
- package/dist/components/classification-badge/context.d.ts +1 -2
- package/dist/components/classification-badge/index.d.ts +1 -2
- 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 +63 -0
- package/dist/components/classification-badge/types.d.ts +3 -5
- package/dist/components/classification-banner/context.d.ts +0 -2
- package/dist/components/classification-banner/index.d.ts +0 -2
- 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 +55 -0
- package/dist/components/classification-banner/types.d.ts +4 -5
- 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 +43 -0
- package/dist/components/combobox-field/context.d.ts +0 -3
- package/dist/components/combobox-field/index.d.ts +0 -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 +101 -0
- package/dist/components/combobox-field/types.d.ts +0 -3
- package/dist/components/coordinate-field/context.d.ts +77 -0
- package/dist/components/coordinate-field/context.js +2 -0
- package/dist/components/coordinate-field/context.js.map +1 -0
- package/dist/components/coordinate-field/coordinate-utils.d.ts +282 -0
- package/dist/components/coordinate-field/coordinate-utils.js +2 -0
- package/dist/components/coordinate-field/coordinate-utils.js.map +1 -0
- package/dist/components/coordinate-field/index.d.ts +66 -0
- package/dist/components/coordinate-field/index.js +4 -0
- package/dist/components/coordinate-field/index.js.map +1 -0
- package/dist/components/coordinate-field/segment-configs.d.ts +163 -0
- package/dist/components/coordinate-field/segment-configs.js +2 -0
- package/dist/components/coordinate-field/segment-configs.js.map +1 -0
- package/dist/components/coordinate-field/segment.d.ts +39 -0
- package/dist/components/coordinate-field/segment.js +4 -0
- package/dist/components/coordinate-field/segment.js.map +1 -0
- package/dist/components/coordinate-field/styles.module.css +129 -0
- package/dist/components/coordinate-field/types.d.ts +194 -0
- package/dist/components/coordinate-field/types.js +2 -0
- package/dist/components/coordinate-field/types.js.map +1 -0
- package/dist/components/coordinate-field/width-utils.d.ts +29 -0
- package/dist/components/coordinate-field/width-utils.js +2 -0
- package/dist/components/coordinate-field/width-utils.js.map +1 -0
- package/dist/components/date-field/index.d.ts +0 -2
- 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 +103 -0
- package/dist/components/date-field/types.d.ts +1 -3
- package/dist/components/details-list/context.d.ts +0 -2
- package/dist/components/details-list/index.d.ts +0 -2
- 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 +0 -2
- package/dist/components/details-list/styles.module.css +52 -0
- package/dist/components/details-list/types.d.ts +2 -3
- package/dist/components/details-list/value.d.ts +0 -2
- package/dist/components/dialog/content.js +1 -1
- package/dist/components/dialog/content.js.map +1 -1
- package/dist/components/dialog/footer.js +1 -1
- package/dist/components/dialog/footer.js.map +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/styles.module.css +86 -0
- package/dist/components/dialog/title.js +1 -1
- package/dist/components/dialog/title.js.map +1 -1
- package/dist/components/dialog/trigger.d.ts +5 -1
- package/dist/components/dialog/trigger.js +1 -1
- package/dist/components/dialog/trigger.js.map +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/divider/index.js.map +1 -1
- package/dist/components/divider/styles.module.css +44 -0
- package/dist/components/drawer/back.js +1 -1
- package/dist/components/drawer/back.js.map +1 -1
- package/dist/components/drawer/close.js +1 -1
- package/dist/components/drawer/close.js.map +1 -1
- package/dist/components/drawer/content.js +1 -3
- package/dist/components/drawer/content.js.map +1 -1
- package/dist/components/drawer/context.d.ts +0 -4
- package/dist/components/drawer/footer.js +1 -3
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header-title.d.ts +0 -4
- package/dist/components/drawer/header-title.js +1 -3
- package/dist/components/drawer/header-title.js.map +1 -1
- package/dist/components/drawer/header.js +1 -1
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer/index.d.ts +0 -4
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/drawer/layout-main.js +1 -3
- package/dist/components/drawer/layout-main.js.map +1 -1
- package/dist/components/drawer/layout.d.ts +0 -4
- package/dist/components/drawer/layout.js +1 -3
- package/dist/components/drawer/layout.js.map +1 -1
- package/dist/components/drawer/menu-item.d.ts +0 -4
- 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 +0 -4
- package/dist/components/drawer/menu.js +1 -3
- package/dist/components/drawer/menu.js.map +1 -1
- package/dist/components/drawer/panel.js +1 -3
- package/dist/components/drawer/panel.js.map +1 -1
- package/dist/components/drawer/styles.module.css +304 -0
- package/dist/components/drawer/trigger.d.ts +0 -4
- package/dist/components/drawer/trigger.js +1 -1
- package/dist/components/drawer/trigger.js.map +1 -1
- package/dist/components/drawer/types.d.ts +3 -5
- package/dist/components/drawer/view.js +1 -1
- package/dist/components/drawer/view.js.map +1 -1
- package/dist/components/hero/index.js +1 -1
- package/dist/components/hero/index.js.map +1 -1
- package/dist/components/hero/styles.module.css +51 -0
- package/dist/components/hotkey/context.d.ts +0 -2
- package/dist/components/hotkey/index.d.ts +0 -2
- package/dist/components/hotkey/index.js +1 -1
- package/dist/components/hotkey/index.js.map +1 -1
- package/dist/components/hotkey/set.d.ts +6 -0
- package/dist/components/hotkey/set.js +4 -0
- package/dist/components/hotkey/set.js.map +1 -0
- package/dist/components/hotkey/styles.module.css +36 -0
- package/dist/components/hotkey/types.d.ts +5 -6
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/icon/styles.module.css +38 -0
- package/dist/components/input/context.d.ts +0 -4
- package/dist/components/input/index.d.ts +0 -4
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/styles.module.css +175 -0
- package/dist/components/input/types.d.ts +7 -6
- package/dist/components/kanban/card-body.d.ts +12 -0
- package/dist/components/kanban/card-body.js +4 -0
- package/dist/components/kanban/card-body.js.map +1 -0
- package/dist/components/kanban/card-header-actions.d.ts +12 -0
- package/dist/components/kanban/card-header-actions.js +4 -0
- package/dist/components/kanban/card-header-actions.js.map +1 -0
- package/dist/components/kanban/card-header-title.d.ts +12 -0
- package/dist/components/kanban/card-header-title.js +4 -0
- package/dist/components/kanban/card-header-title.js.map +1 -0
- package/dist/components/kanban/card-header.d.ts +12 -0
- package/dist/components/kanban/card-header.js +4 -0
- package/dist/components/kanban/card-header.js.map +1 -0
- package/dist/components/kanban/card.d.ts +12 -0
- package/dist/components/kanban/card.js +4 -0
- package/dist/components/kanban/card.js.map +1 -0
- package/dist/components/kanban/column-actions.d.ts +12 -0
- package/dist/components/kanban/column-actions.js +4 -0
- package/dist/components/kanban/column-actions.js.map +1 -0
- package/dist/components/kanban/column-container.d.ts +12 -0
- package/dist/components/kanban/column-container.js +4 -0
- package/dist/components/kanban/column-container.js.map +1 -0
- package/dist/components/kanban/column-content.d.ts +12 -0
- package/dist/components/kanban/column-content.js +4 -0
- package/dist/components/kanban/column-content.js.map +1 -0
- package/dist/components/kanban/column-header-actions.d.ts +12 -0
- package/dist/components/kanban/column-header-actions.js +4 -0
- package/dist/components/kanban/column-header-actions.js.map +1 -0
- package/dist/components/kanban/column-header-drag-handle.d.ts +5 -0
- package/dist/components/kanban/column-header-drag-handle.js +4 -0
- package/dist/components/kanban/column-header-drag-handle.js.map +1 -0
- package/dist/components/kanban/column-header-title.d.ts +12 -0
- package/dist/components/kanban/column-header-title.js +4 -0
- package/dist/components/kanban/column-header-title.js.map +1 -0
- package/dist/components/kanban/column-header.d.ts +12 -0
- package/dist/components/kanban/column-header.js +4 -0
- package/dist/components/kanban/column-header.js.map +1 -0
- package/dist/components/kanban/column.d.ts +12 -0
- package/dist/components/kanban/column.js +4 -0
- package/dist/components/kanban/column.js.map +1 -0
- package/dist/components/kanban/context.d.ts +101 -0
- package/dist/components/kanban/context.js +2 -0
- package/dist/components/kanban/context.js.map +1 -0
- package/dist/components/kanban/header-actions.d.ts +12 -0
- package/dist/components/kanban/header-actions.js +4 -0
- package/dist/components/kanban/header-actions.js.map +1 -0
- package/dist/components/kanban/header-search.d.ts +12 -0
- package/dist/components/kanban/header-search.js +4 -0
- package/dist/components/kanban/header-search.js.map +1 -0
- package/dist/components/kanban/header-title.d.ts +12 -0
- package/dist/components/kanban/header-title.js +4 -0
- package/dist/components/kanban/header-title.js.map +1 -0
- package/dist/components/kanban/header.d.ts +12 -0
- package/dist/components/kanban/header.js +4 -0
- package/dist/components/kanban/header.js.map +1 -0
- package/dist/components/kanban/index.d.ts +9 -0
- package/dist/components/kanban/index.js +2 -0
- package/dist/components/kanban/index.js.map +1 -0
- package/dist/components/kanban/kanban.d.ts +18 -0
- package/dist/components/kanban/kanban.js +4 -0
- package/dist/components/kanban/kanban.js.map +1 -0
- package/dist/components/kanban/mock-data.d.ts +14 -0
- package/dist/components/kanban/mock-data.js +2 -0
- package/dist/components/kanban/mock-data.js.map +1 -0
- package/dist/components/kanban/styles.module.css +117 -0
- package/dist/components/kanban/types.d.ts +50 -0
- package/dist/components/label/index.js +1 -1
- package/dist/components/label/index.js.map +1 -1
- package/dist/components/label/styles.module.css +23 -0
- package/dist/components/lines/index.d.ts +0 -2
- package/dist/components/lines/index.js +1 -1
- package/dist/components/lines/index.js.map +1 -1
- package/dist/components/lines/styles.module.css +95 -0
- package/dist/components/lines/types.d.ts +4 -5
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/link/styles.module.css +37 -0
- package/dist/components/menu/context.d.ts +0 -2
- package/dist/components/menu/index.d.ts +0 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.js.map +1 -1
- 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.js +1 -1
- package/dist/components/menu/item-label.js.map +1 -1
- package/dist/components/menu/item.d.ts +0 -2
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/item.js.map +1 -1
- package/dist/components/menu/section.d.ts +0 -2
- package/dist/components/menu/section.js +1 -1
- package/dist/components/menu/section.js.map +1 -1
- package/dist/components/menu/separator.js +1 -1
- package/dist/components/menu/separator.js.map +1 -1
- package/dist/components/menu/styles.module.css +415 -0
- package/dist/components/menu/trigger.d.ts +5 -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 +2 -3
- package/dist/components/notice/index.d.ts +0 -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 +0 -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 +0 -3
- package/dist/components/notice/styles.module.css +133 -0
- package/dist/components/notice/types.d.ts +3 -6
- 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 +2 -5
- package/dist/components/options/item-content.js +1 -3
- package/dist/components/options/item-content.js.map +1 -1
- package/dist/components/options/item-description.d.ts +2 -5
- package/dist/components/options/item-description.js +1 -3
- package/dist/components/options/item-description.js.map +1 -1
- package/dist/components/options/item-label.d.ts +2 -5
- package/dist/components/options/item-label.js +1 -3
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.js +1 -1
- package/dist/components/options/item.js.map +1 -1
- package/dist/components/options/section.js +1 -3
- package/dist/components/options/section.js.map +1 -1
- package/dist/components/options/styles.module.css +397 -0
- package/dist/components/options/types.d.ts +2 -3
- package/dist/components/pagination/context.d.ts +9 -0
- package/dist/components/pagination/context.js +4 -0
- package/dist/components/pagination/context.js.map +1 -0
- package/dist/components/pagination/index.d.ts +25 -0
- package/dist/components/pagination/index.js +4 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/pagination/next.d.ts +10 -0
- package/dist/components/pagination/next.js +4 -0
- package/dist/components/pagination/next.js.map +1 -0
- package/dist/components/pagination/pages.d.ts +10 -0
- package/dist/components/pagination/pages.js +4 -0
- package/dist/components/pagination/pages.js.map +1 -0
- package/dist/components/pagination/prev.d.ts +10 -0
- package/dist/components/pagination/prev.js +4 -0
- package/dist/components/pagination/prev.js.map +1 -0
- package/dist/components/pagination/styles.module.css +25 -0
- package/dist/components/pagination/types.d.ts +35 -0
- package/dist/components/pagination/types.js +2 -0
- package/dist/components/pagination/types.js.map +1 -0
- package/dist/components/pagination/utils.d.ts +16 -0
- package/dist/components/pagination/utils.js +2 -0
- package/dist/components/pagination/utils.js.map +1 -0
- package/dist/components/popover/content.d.ts +2 -4
- package/dist/components/popover/content.js +1 -1
- package/dist/components/popover/content.js.map +1 -1
- package/dist/components/popover/footer.d.ts +2 -5
- package/dist/components/popover/footer.js +1 -1
- package/dist/components/popover/footer.js.map +1 -1
- package/dist/components/popover/index.d.ts +15 -19
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/styles.module.css +32 -0
- package/dist/components/popover/title.d.ts +2 -4
- package/dist/components/popover/title.js +1 -1
- package/dist/components/popover/title.js.map +1 -1
- package/dist/components/popover/trigger.d.ts +1 -1
- package/dist/components/popover/trigger.js +1 -1
- package/dist/components/popover/trigger.js.map +1 -1
- package/dist/components/popover/types.d.ts +11 -22
- package/dist/components/query-builder/index.js +1 -1
- package/dist/components/query-builder/index.js.map +1 -1
- 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.js +1 -1
- package/dist/components/query-builder/rule.js.map +1 -1
- package/dist/components/query-builder/styles.module.css +87 -0
- package/dist/components/query-builder/value-editor.js +1 -1
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/radio/group.js +1 -1
- package/dist/components/radio/group.js.map +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/styles.module.css +118 -0
- package/dist/components/search-field/context.d.ts +0 -4
- package/dist/components/search-field/index.d.ts +0 -4
- 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 +104 -0
- package/dist/components/search-field/types.d.ts +2 -7
- package/dist/components/select-field/context.d.ts +0 -3
- package/dist/components/select-field/index.d.ts +0 -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 +78 -0
- package/dist/components/select-field/types.d.ts +0 -3
- package/dist/components/sidenav/avatar.js +1 -1
- package/dist/components/sidenav/avatar.js.map +1 -1
- package/dist/components/sidenav/content.js +1 -1
- package/dist/components/sidenav/content.js.map +1 -1
- package/dist/components/sidenav/footer.js +1 -3
- package/dist/components/sidenav/footer.js.map +1 -1
- package/dist/components/sidenav/header.js +1 -1
- package/dist/components/sidenav/header.js.map +1 -1
- package/dist/components/sidenav/index.js +1 -1
- package/dist/components/sidenav/index.js.map +1 -1
- package/dist/components/sidenav/item.js +1 -1
- package/dist/components/sidenav/item.js.map +1 -1
- package/dist/components/sidenav/link.js +1 -1
- package/dist/components/sidenav/link.js.map +1 -1
- package/dist/components/sidenav/menu-item.js +1 -3
- package/dist/components/sidenav/menu-item.js.map +1 -1
- package/dist/components/sidenav/menu.js +1 -1
- package/dist/components/sidenav/menu.js.map +1 -1
- package/dist/components/sidenav/styles.module.css +311 -0
- package/dist/components/sidenav/types.d.ts +1 -2
- package/dist/components/skeleton/index.d.ts +2 -4
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.js.map +1 -1
- package/dist/components/skeleton/styles.module.css +33 -0
- package/dist/components/skeleton/types.d.ts +4 -5
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/styles.module.css +220 -0
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/styles.module.css +116 -0
- package/dist/components/table/body.d.ts +0 -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 +0 -3
- package/dist/components/table/cell.js +1 -1
- package/dist/components/table/cell.js.map +1 -1
- package/dist/components/table/context.d.ts +0 -3
- package/dist/components/table/header-cell.d.ts +0 -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 +0 -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 +0 -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 +0 -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 +95 -0
- package/dist/components/table/types.d.ts +5 -15
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.js +1 -1
- package/dist/components/tabs/list.js.map +1 -1
- package/dist/components/tabs/panel.js +1 -1
- package/dist/components/tabs/panel.js.map +1 -1
- package/dist/components/tabs/styles.module.css +140 -0
- package/dist/components/tabs/tab.js +1 -1
- package/dist/components/tabs/tab.js.map +1 -1
- 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 +67 -0
- package/dist/components/text-field/context.d.ts +0 -4
- package/dist/components/text-field/index.d.ts +24 -4
- 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 +37 -0
- package/dist/components/text-field/types.d.ts +0 -4
- package/dist/components/time-field/index.d.ts +0 -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 +75 -0
- package/dist/components/time-field/types.d.ts +2 -5
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/styles.module.css +20 -0
- package/dist/components/tree/context.d.ts +0 -2
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/context.js.map +1 -1
- package/dist/components/tree/index.d.ts +0 -2
- package/dist/components/tree/index.js +1 -1
- package/dist/components/tree/index.js.map +1 -1
- 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 +0 -2
- 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.js +1 -1
- package/dist/components/tree/item-description.js.map +1 -1
- 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.js +1 -1
- package/dist/components/tree/item-prefix-icon.js.map +1 -1
- package/dist/components/tree/item.d.ts +0 -2
- package/dist/components/tree/item.js +1 -1
- package/dist/components/tree/item.js.map +1 -1
- package/dist/components/tree/lines.js +1 -1
- package/dist/components/tree/lines.js.map +1 -1
- package/dist/components/tree/styles.module.css +183 -0
- package/dist/components/tree/types.d.ts +6 -5
- package/dist/hooks/coordinate-field/index.d.ts +9 -0
- package/dist/hooks/coordinate-field/index.js +2 -0
- package/dist/hooks/coordinate-field/index.js.map +1 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.d.ts +19 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.js +2 -0
- package/dist/hooks/coordinate-field/use-coordinate-copy.js.map +1 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.d.ts +28 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js +2 -0
- package/dist/hooks/coordinate-field/use-coordinate-field-state.js.map +1 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.d.ts +49 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.js +2 -0
- package/dist/hooks/coordinate-field/use-coordinate-field.js.map +1 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.d.ts +21 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.js +2 -0
- package/dist/hooks/coordinate-field/use-coordinate-focus.js.map +1 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.d.ts +21 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.js +2 -0
- package/dist/hooks/coordinate-field/use-coordinate-paste.js.map +1 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.d.ts +6 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js +2 -0
- package/dist/hooks/coordinate-field/use-timeout-cleanup.js.map +1 -0
- package/dist/hooks/kanban/index.d.ts +93 -0
- package/dist/hooks/kanban/index.js +2 -0
- package/dist/hooks/kanban/index.js.map +1 -0
- package/dist/index.d.ts +58 -61
- package/dist/index.js +1 -1
- package/dist/index.module.css +19 -0
- package/dist/lib/utils.d.ts +1 -17
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/metafile-esm.json +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/package.json +36 -49
- package/dist/components/accordion/styles.d.ts +0 -56
- package/dist/components/accordion/styles.js +0 -2
- package/dist/components/accordion/styles.js.map +0 -1
- package/dist/components/action-bar/styles.d.ts +0 -5
- package/dist/components/action-bar/styles.js +0 -2
- package/dist/components/action-bar/styles.js.map +0 -1
- package/dist/components/avatar/styles.d.ts +0 -48
- package/dist/components/avatar/styles.js +0 -2
- package/dist/components/avatar/styles.js.map +0 -1
- package/dist/components/badge/styles.d.ts +0 -32
- package/dist/components/badge/styles.js +0 -2
- package/dist/components/badge/styles.js.map +0 -1
- package/dist/components/breadcrumbs/styles.d.ts +0 -48
- package/dist/components/breadcrumbs/styles.js +0 -2
- package/dist/components/breadcrumbs/styles.js.map +0 -1
- package/dist/components/button/styles.d.ts +0 -129
- package/dist/components/button/styles.js +0 -2
- package/dist/components/button/styles.js.map +0 -1
- package/dist/components/checkbox/styles.d.ts +0 -54
- package/dist/components/checkbox/styles.js +0 -2
- package/dist/components/checkbox/styles.js.map +0 -1
- package/dist/components/chip/styles.d.ts +0 -247
- package/dist/components/chip/styles.js +0 -2
- package/dist/components/chip/styles.js.map +0 -1
- package/dist/components/classification-badge/styles.d.ts +0 -38
- package/dist/components/classification-badge/styles.js +0 -2
- package/dist/components/classification-badge/styles.js.map +0 -1
- package/dist/components/classification-banner/styles.d.ts +0 -38
- package/dist/components/classification-banner/styles.js +0 -2
- package/dist/components/classification-banner/styles.js.map +0 -1
- package/dist/components/color-picker/styles.d.ts +0 -42
- package/dist/components/color-picker/styles.js +0 -2
- package/dist/components/color-picker/styles.js.map +0 -1
- package/dist/components/combobox-field/styles.d.ts +0 -72
- package/dist/components/combobox-field/styles.js +0 -2
- package/dist/components/combobox-field/styles.js.map +0 -1
- package/dist/components/date-field/styles.d.ts +0 -59
- package/dist/components/date-field/styles.js +0 -2
- package/dist/components/date-field/styles.js.map +0 -1
- package/dist/components/details-list/styles.d.ts +0 -65
- package/dist/components/details-list/styles.js +0 -2
- package/dist/components/details-list/styles.js.map +0 -1
- package/dist/components/dialog/styles.d.ts +0 -60
- package/dist/components/dialog/styles.js +0 -2
- package/dist/components/dialog/styles.js.map +0 -1
- package/dist/components/divider/styles.d.ts +0 -5
- package/dist/components/divider/styles.js +0 -2
- package/dist/components/divider/styles.js.map +0 -1
- package/dist/components/drawer/styles.d.ts +0 -152
- package/dist/components/drawer/styles.js +0 -2
- package/dist/components/drawer/styles.js.map +0 -1
- package/dist/components/hero/styles.d.ts +0 -48
- package/dist/components/hero/styles.js +0 -2
- package/dist/components/hero/styles.js.map +0 -1
- package/dist/components/hotkey/hotkey-set.d.ts +0 -9
- package/dist/components/hotkey/hotkey-set.js +0 -4
- package/dist/components/hotkey/hotkey-set.js.map +0 -1
- package/dist/components/hotkey/styles.d.ts +0 -53
- package/dist/components/hotkey/styles.js +0 -2
- package/dist/components/hotkey/styles.js.map +0 -1
- package/dist/components/icon/styles.d.ts +0 -5
- package/dist/components/icon/styles.js +0 -2
- package/dist/components/icon/styles.js.map +0 -1
- package/dist/components/input/styles.d.ts +0 -142
- package/dist/components/input/styles.js +0 -2
- package/dist/components/input/styles.js.map +0 -1
- package/dist/components/label/styles.d.ts +0 -5
- package/dist/components/label/styles.js +0 -2
- package/dist/components/label/styles.js.map +0 -1
- package/dist/components/lines/styles.d.ts +0 -32
- package/dist/components/lines/styles.js +0 -2
- package/dist/components/lines/styles.js.map +0 -1
- package/dist/components/link/styles.d.ts +0 -5
- package/dist/components/link/styles.js +0 -2
- package/dist/components/link/styles.js.map +0 -1
- package/dist/components/menu/styles.d.ts +0 -71
- package/dist/components/menu/styles.js +0 -2
- package/dist/components/menu/styles.js.map +0 -1
- package/dist/components/notice/styles.d.ts +0 -60
- package/dist/components/notice/styles.js +0 -2
- package/dist/components/notice/styles.js.map +0 -1
- package/dist/components/options/styles.d.ts +0 -72
- package/dist/components/options/styles.js +0 -2
- package/dist/components/options/styles.js.map +0 -1
- package/dist/components/popover/body.d.ts +0 -8
- package/dist/components/popover/body.js +0 -4
- package/dist/components/popover/body.js.map +0 -1
- package/dist/components/popover/styles.d.ts +0 -48
- package/dist/components/popover/styles.js +0 -2
- package/dist/components/popover/styles.js.map +0 -1
- package/dist/components/query-builder/styles.d.ts +0 -152
- package/dist/components/query-builder/styles.js +0 -2
- package/dist/components/query-builder/styles.js.map +0 -1
- package/dist/components/radio/styles.d.ts +0 -54
- package/dist/components/radio/styles.js +0 -2
- package/dist/components/radio/styles.js.map +0 -1
- package/dist/components/search-field/styles.d.ts +0 -53
- package/dist/components/search-field/styles.js +0 -2
- package/dist/components/search-field/styles.js.map +0 -1
- package/dist/components/select-field/styles.d.ts +0 -66
- package/dist/components/select-field/styles.js +0 -2
- package/dist/components/select-field/styles.js.map +0 -1
- package/dist/components/sidenav/styles.d.ts +0 -156
- package/dist/components/sidenav/styles.js +0 -2
- package/dist/components/sidenav/styles.js.map +0 -1
- package/dist/components/skeleton/styles.d.ts +0 -23
- package/dist/components/skeleton/styles.js +0 -2
- package/dist/components/skeleton/styles.js.map +0 -1
- package/dist/components/slider/styles.d.ts +0 -84
- package/dist/components/slider/styles.js +0 -2
- package/dist/components/slider/styles.js.map +0 -1
- package/dist/components/switch/styles.d.ts +0 -44
- package/dist/components/switch/styles.js +0 -2
- package/dist/components/switch/styles.js.map +0 -1
- package/dist/components/table/styles.d.ts +0 -134
- package/dist/components/table/styles.js +0 -2
- package/dist/components/table/styles.js.map +0 -1
- package/dist/components/tabs/styles.d.ts +0 -48
- package/dist/components/tabs/styles.js +0 -2
- package/dist/components/tabs/styles.js.map +0 -1
- package/dist/components/text-area-field/styles.d.ts +0 -54
- package/dist/components/text-area-field/styles.js +0 -2
- package/dist/components/text-area-field/styles.js.map +0 -1
- package/dist/components/text-field/styles.d.ts +0 -54
- package/dist/components/text-field/styles.js +0 -2
- package/dist/components/text-field/styles.js.map +0 -1
- package/dist/components/time-field/styles.d.ts +0 -69
- package/dist/components/time-field/styles.js +0 -2
- package/dist/components/time-field/styles.js.map +0 -1
- package/dist/components/tooltip/styles.d.ts +0 -5
- package/dist/components/tooltip/styles.js +0 -2
- package/dist/components/tooltip/styles.js.map +0 -1
- package/dist/components/tree/styles.d.ts +0 -128
- package/dist/components/tree/styles.js +0 -2
- package/dist/components/tree/styles.js.map +0 -1
- package/dist/index.css +0 -196
- package/dist/styles.css +0 -9484
- package/dist/tokens/themes.css +0 -882
- package/dist/tokens/themes.d.ts +0 -1
- package/dist/tokens/tokens.css +0 -202
- package/dist/tokens/tokens.d.ts +0 -468
- package/dist/tokens/tokens.js +0 -2
- package/dist/tokens/tokens.js.map +0 -1
- package/dist/tokens/types.d.ts +0 -308
- package/dist/variants/variants.css +0 -86
- package/dist/variants/variants.d.ts +0 -2
- /package/dist/{tokens → components/kanban}/types.js +0 -0
- /package/dist/{tokens → components/kanban}/types.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/dialog/content.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/dialog/content.tsx"],"names":["children","className","clsx","styles"],"mappings":"oJAkBO,UAAuB,CAAE,CAAA,QAAAA,CAAAA,CAAU,CAAA,SAAAC,CAAU,CAAA,CAA0B,CAC5E,CAAA,UAAQ,CAAA,KAAA,CAAI,CAAA,SAAWC,CAAAA,IAAKC,CAAAA,CAAO,CAAA,OAASF,CAAS,CAAA,CAAI,CAAA,QAAAD,EAAS,CACpE,CAAA","file":"content.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { ComponentProps } from 'react';\n\nexport function DialogContent({ children, className }: ComponentProps<'div'>) {\n return <div className={clsx(styles.content, className)}>{children}</div>;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {useContext}from'react';import {OverlayTriggerStateContext}from'react-aria-components';import {isSlottedContextValue}from'../../lib/utils.js';import {ButtonContext}from'../button/context.js';import {DialogContext}from'./context.js';import
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {clsx}from'@accelint/design-foundation/lib/utils';import {useContext}from'react';import {OverlayTriggerStateContext}from'react-aria-components';import {isSlottedContextValue}from'../../lib/utils.js';import {ButtonContext}from'../button/context.js';import {DialogContext}from'./context.js';import u from'./styles.module.css';function z({children:r,className:n}){const o=useContext(DialogContext),s=(isSlottedContextValue(o)?null:o?.size)??"small",i=useContext(OverlayTriggerStateContext);return jsx("footer",{className:clsx(u.footer,n),children:jsx(ButtonContext.Provider,{value:{size:s,onPress:i?.close??void 0},children:r})})}export{z as DialogFooter};//# sourceMappingURL=footer.js.map
|
|
4
4
|
//# sourceMappingURL=footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/dialog/footer.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/dialog/footer.tsx"],"names":["className","useContext","DialogContext","size","t","context","p","jsx","l","clsx","styles","ButtonContext","e"],"mappings":"mYAuBE,UACA,CAAA,CAAA,QAAAA,CACF,EAA6B,SACXC,CAAAA,CAAWC,CAAa,CAAA,CAClCC,MAC0B,CAAA,CAAIC,0BAAOC,CAAAA,CAAAA,CAASC,qBAAA,CAAA,CAAA,CAAA,CAAA,IAAS,CAAA,CAAA,EAAA,IAC/CL,GAAqC,SAGjDM,CAAAA,UAAC,CAAAC,0BAAA,CAAA,CAAA,mBAAkBC,CAAKC,CAAAA,SAAwB,KAC9C,CAAA,CAAA,CAAA,MAAAH,CAAAA,CAACI,EAAc,QAAA,CAAdC,GACC,uBACE,CAAAT,CAAAA,KACA,CAAA,CAAA,KAAgB,CAAA,CAAA,OAAS,CAAA,CAAA,EAC3B,KAEC,EAAA,MACH,EACF,QAEJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"footer.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { type ComponentProps, useContext } from 'react';\nimport { OverlayTriggerStateContext } from 'react-aria-components';\nimport { isSlottedContextValue } from '../../lib/utils';\nimport { ButtonContext } from '../button/context';\nimport { DialogContext } from './context';\nimport styles from './styles.module.css';\n\nexport function DialogFooter({\n children,\n className,\n}: ComponentProps<'footer'>) {\n const context = useContext(DialogContext);\n const size =\n (isSlottedContextValue(context) ? null : context?.size) ?? 'small';\n const state = useContext(OverlayTriggerStateContext);\n\n return (\n <footer className={clsx(styles.footer, className)}>\n <ButtonContext.Provider\n value={{\n size,\n onPress: state?.close ?? undefined,\n }}\n >\n {children}\n </ButtonContext.Provider>\n </footer>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import {
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {clsx}from'@accelint/design-foundation/lib/utils';import {useContextProps,ModalOverlay,composeRenderProps,Modal,Dialog}from'react-aria-components';import {PortalProvider}from'./../../providers/portal.js';import {DialogContext}from'./context.js';import t from'./styles.module.css';function R({ref:l,...a}){[a,l]=useContextProps(a,l??null,DialogContext);const{children:d,classNames:r,parentRef:g,size:n="small",...p}=a;return jsx(DialogContext.Provider,{value:a,children:jsx(PortalProvider,{parentRef:g,children:jsx(ModalOverlay,{...p,ref:l,className:composeRenderProps(r?.overlay,e=>clsx("group/dialog",t.overlay,e)),"data-size":n,children:jsx(Modal,{className:composeRenderProps(r?.modal,e=>clsx(t.modal,e)),children:jsx(Dialog,{className:clsx(t.dialog,r?.dialog),children:d})})})})})}export{R as Dialog};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/dialog/index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/dialog/index.tsx"],"names":["props","useContextProps","DialogContext","f","m","children","classNames","jsx","o","PortalProvider","parentRef","D","ref","v","className","clsx","i","styles","size","Modal","composeRenderProps","AriaDialog"],"mappings":"uVAmDyB,SAA8B,CACrD,CAACA,CAAAA,GAAU,CAAIC,CAAAA,CAAgBD,KAAc,CAAA,CAAA,CAAA,CAAA,CAAME,CAAa,CAAA,CAEhEC,eAAA,CAAA,CAAA,CAAA,CAAM,EAAE,IAAA,CAAAC,aAAA,CAAA,CAAAC,KAAU,CAAA,QAAAC,CAAY,CAAA,CAAA,UAAW,CAAA,CAAA,CAAA,SAAO,CAAA,CAAA,CAAS,IAAQ,EAAIN,CAAAA,OAErE,CACEO,GAACL,CAAc,CAAA,CAAA,CAAA,CAAA,OAASM,GAAA,CAAAJ,aAAA,CAAA,QACtB,CAAA,CAAA,KAACK,CAAA,CAAe,CAAA,QAAA,CAAWC,GAAAA,CACzBC,cAAA,CAAA,CAAA,UAAC,CACE,CAAA,QACIC,CAAAA,GACL,CAAAC,YAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GAA8BP,CAAAA,CAAAA,CAAY,SAAUQ,CAAAA,kBAClDC,CAAAA,CAAK,EAAA,OAAA,CAAA,CAAA,EAAAC,IAAA,CAAgBC,cAEvB,CAAA,CAAA,CAAA,OAAA,CAAA,CAAWC,CAAAA,CAEX,CAAA,WAACC,CAAA,CACC,CAAA,QAAA,CAAWC,GAAAA,CAAmBd,KAAAA,CAAAA,CAAY,SACxCS,CAAAA,kBAAKE,CAAAA,CAAO,EAAA,KAAgB,CAC9B,GAEAD,IAAA,CAAA,CAAA,CAAA,KAAAT,CAACc,CAAAA,CAAA,CAAW,CAAA,QAAA,CAAWN,GAAAA,CAAKE,MAAAA,CAAO,CAAA,SAAoB,CAAAD,IAAA,CAAA,CAAA,CAAA,MACpD,CAAA,CAAA,EAAA,MAEL,CAAA,CACF,QAIR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport {\n Dialog as AriaDialog,\n composeRenderProps,\n Modal,\n ModalOverlay,\n useContextProps,\n} from 'react-aria-components';\nimport { PortalProvider } from '@/providers/portal';\nimport { DialogContext } from './context';\nimport styles from './styles.module.css';\nimport type { DialogProps } from './types';\n\n/**\n * Dialog - A modal dialog component for important content and interactions\n *\n * Provides accessible modal functionality with focus management, backdrop handling,\n * and keyboard navigation. Supports multiple sizes and customizable dismissal behavior.\n * Perfect for confirmations, forms, or any content requiring user focus.\n *\n * @example\n * // Basic dialog with trigger\n * <DialogTrigger>\n * <Button>Open Dialog</Button>\n * <Dialog>\n * {({ close }) => (\n * <>\n * <DialogTitle>Confirm Action</DialogTitle>\n * <p>Are you sure you want to continue?</p>\n * <DialogFooter>\n * <Button onPress={close}>Confirm</Button>\n * </DialogFooter>\n * </>\n * )}\n * </Dialog>\n * </DialogTrigger>\n */\nexport function Dialog({ ref, ...props }: DialogProps) {\n [props, ref] = useContextProps(props, ref ?? null, DialogContext);\n\n const { children, classNames, parentRef, size = 'small', ...rest } = props;\n\n return (\n <DialogContext.Provider value={props}>\n <PortalProvider parentRef={parentRef}>\n <ModalOverlay\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.overlay, (className) =>\n clsx('group/dialog', styles.overlay, className),\n )}\n data-size={size}\n >\n <Modal\n className={composeRenderProps(classNames?.modal, (className) =>\n clsx(styles.modal, className),\n )}\n >\n <AriaDialog className={clsx(styles.dialog, classNames?.dialog)}>\n {children}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n </PortalProvider>\n </DialogContext.Provider>\n );\n}\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 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
|
+
@reference '../../index.module.css';
|
|
14
|
+
|
|
15
|
+
@layer components.l1 {
|
|
16
|
+
.overlay {
|
|
17
|
+
@apply absolute inset-0 flex items-center justify-center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.modal {
|
|
21
|
+
@apply bg-surface-overlay shadow-elevation-overlay flex flex-col justify-center;
|
|
22
|
+
|
|
23
|
+
@variant group-size-small/dialog {
|
|
24
|
+
@apply rounded-medium;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@variant group-size-large/dialog {
|
|
28
|
+
@apply rounded-large;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dialog {
|
|
33
|
+
@apply fg-primary-muted text-body-m flex flex-col font-light;
|
|
34
|
+
|
|
35
|
+
@variant focus-visible {
|
|
36
|
+
@apply outline-none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@variant group-size-small/dialog {
|
|
40
|
+
@apply rounded-medium p-l;
|
|
41
|
+
width: 280px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@variant group-size-large/dialog {
|
|
45
|
+
@apply rounded-medium p-xl;
|
|
46
|
+
min-width: 320px;
|
|
47
|
+
max-width: 720px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.title {
|
|
52
|
+
@apply fg-primary-bold;
|
|
53
|
+
|
|
54
|
+
@variant group-size-small/dialog {
|
|
55
|
+
@apply mb-s text-header-m;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@variant group-size-large/dialog {
|
|
59
|
+
@apply mb-m text-header-l;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.content {
|
|
64
|
+
@apply fg-primary-muted flex flex-col;
|
|
65
|
+
|
|
66
|
+
@variant group-size-small/dialog {
|
|
67
|
+
@apply gap-xs;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@variant group-size-large/dialog {
|
|
71
|
+
@apply gap-l;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.footer {
|
|
76
|
+
@apply gap-xs flex justify-end;
|
|
77
|
+
|
|
78
|
+
@variant group-size-small/dialog {
|
|
79
|
+
@apply mt-l;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@variant group-size-large/dialog {
|
|
83
|
+
@apply mt-xl;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {Heading}from'react-aria-components';import
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {clsx}from'@accelint/design-foundation/lib/utils';import {Heading}from'react-aria-components';import r from'./styles.module.css';function a({children:t,className:i}){return jsx(Heading,{slot:"title",className:clsx(r.title,i),children:t})}export{a as DialogTitle};//# sourceMappingURL=title.js.map
|
|
4
4
|
//# sourceMappingURL=title.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/dialog/title.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/dialog/title.tsx"],"names":["children","className","jsx","Heading","clsx","styles"],"mappings":"gMAkBO,UAAqB,CAAE,CAAA,QAAAA,CAAAA,CAAU,CAAA,SAAAC,CAAU,CAAA,CAAiB,CACjE,CAAA,OACEC,GAACC,QAAA,CAAQ,CAAA,IAAK,CAAA,OAAQ,CAAA,SAAWC,KAAKC,CAAAA,CAAO,CAAA,KAAOJ,CAAS,CAAA,CAC1D,CAAA,QAAAD,EACH,CAEJ,CAAA","file":"title.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Heading, type HeadingProps } from 'react-aria-components';\nimport styles from './styles.module.css';\n\nexport function DialogTitle({ children, className }: HeadingProps) {\n return (\n <Heading slot='title' className={clsx(styles.title, className)}>\n {children}\n </Heading>\n );\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {DialogTrigger}from'react-aria-components';const i=DialogTrigger;export{i as DialogTrigger};//# sourceMappingURL=trigger.js.map
|
|
2
2
|
//# sourceMappingURL=trigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"trigger.js","sourcesContent":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/dialog/trigger.tsx"],"names":["DialogTrigger","AriaDialogTrigger"],"mappings":"kDAcO,MAAMA,CAAAA,CAAgBC","file":"trigger.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { DialogTrigger as AriaDialogTrigger } from 'react-aria-components';\n\nexport const DialogTrigger = AriaDialogTrigger;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {useContextProps}from'react-aria-components';import {DividerContext}from'./context.js';import
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {clsx}from'@accelint/design-foundation/lib/utils';import {useState,useLayoutEffect}from'react';import {useContextProps}from'react-aria-components';import {DividerContext}from'./context.js';import o from'./styles.module.css';function C({ref:t,...e}){[e,t]=useContextProps(e,t??null,DividerContext);const{className:i,orientation:s="horizontal",...n}=e,[m,a]=useState(false);return useLayoutEffect(()=>{const r=t.current?.parentElement;r&&window.getComputedStyle(r).getPropertyValue("display").includes("flex")&&a(true);},[t.current]),jsx("hr",{...n,ref:t,className:clsx(o.divider,m&&o.stretch,i),"data-orientation":s})}export{C as Divider};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/divider/index.tsx"],"names":["ref","props","useContextProps","
|
|
1
|
+
{"version":3,"sources":["../../../src/components/divider/index.tsx"],"names":["ref","props","useContextProps","DividerContext","d","stretch","setStretch","useState","c","f","rest","l","styles"],"mappings":"+RAoCO,SAAmB,CAAA,CAAAA,CAAAA,GAAK,CAAGC,CAAM,CAAA,GACrCA,CAAAA,CAAOD,CAAG,CAAA,CAAIE,CAAAA,CAAgBD,CAAAA,CAAOD,iBAAO,CAAA,CAAA,CAAA,EAAMG,IAEnD,CAAAC,cAAA,CAAA,CAAM,KAAE,CAAA,SAAW,CAAA,CAAA,CAAA,WAAc,CAAA,CAAA,CAAA,YAAsB,CAAA,GAEjD,CAACC,CAAAA,CAASC,CAAU,CAAA,CAAIC,CAAAA,CAAS,CAAA,CAAK,SAO5C,CAAA,KAAA,CAAA,CAAA,OAAgBC,eAAM,CACpB,IAAA,CAAA,MAAmB,CAAA,CAAA,CAAA,CAAA,OAAS,EAAA,aAI1B,CAAA,CAAA,EAAA,MACG,CAAA,gBACA,CAAA,CAAA,CAAA,CAAA,gBAAiB,CAAA,SACjB,CAAA,CAAA,QAAS,CAAA,MAED,CAAA,EAEf,CAAA,CAAG,IAACR,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,OAGL,CAAA,CAAA,CAAAS,GAAA,CAAA,IACKC,CAAAA,CACJ,GAAA,CAAKV,IACL,CAAA,CAAA,CAAA,SAAuB,CAAAW,IAAA,CAAA,CAAA,CAAA,OAAoBC,CAAO,YAClD,CAAA,CAAA,CAAA,CAAA,kBAGN,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useLayoutEffect, useState } from 'react';\nimport { useContextProps } from 'react-aria-components';\nimport { DividerContext } from './context';\nimport styles from './styles.module.css';\nimport type { DividerProps } from './types';\n\n/**\n * Divider - A simple horizontal or vertical rule component\n *\n * Provides a visual separator between content sections with support for both\n * horizontal and vertical orientations.\n *\n * @example\n * // Basic horizontal divider\n * <Divider />\n *\n * @example\n * // Vertical divider\n * <Divider orientation=\"vertical\" />\n */\nexport function Divider({ ref, ...props }: DividerProps) {\n [props, ref] = useContextProps(props, ref ?? null, DividerContext);\n\n const { className, orientation = 'horizontal', ...rest } = props;\n\n const [stretch, setStretch] = useState(false);\n\n /**\n * CSS flexbox doesn't play nice with height. Unfortunately, there's no\n * way to detect if a parent element is using CSS flexbox, so we have\n * to detect it using JS\n */\n useLayoutEffect(() => {\n const parent = ref.current?.parentElement;\n\n if (\n parent &&\n window\n .getComputedStyle(parent)\n .getPropertyValue('display')\n .includes('flex')\n ) {\n setStretch(true);\n }\n }, [ref.current]);\n\n return (\n <hr\n {...rest}\n ref={ref}\n className={clsx(styles.divider, stretch && styles.stretch, className)}\n data-orientation={orientation}\n />\n );\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 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
|
+
@reference '../../index.module.css';
|
|
14
|
+
|
|
15
|
+
@layer components.l1 {
|
|
16
|
+
.divider {
|
|
17
|
+
@apply shrink-0 grow-0 border-0;
|
|
18
|
+
background-color: var(--outline-static);
|
|
19
|
+
|
|
20
|
+
@variant orientation-horizontal {
|
|
21
|
+
@apply h-px w-full;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@variant orientation-vertical {
|
|
25
|
+
@apply h-full w-px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
CSS flexbox breaks height: 100%, so we utilize align-self: stretch & height: auto instead.
|
|
30
|
+
While width isn't broken, for consistency it's implemented the same way
|
|
31
|
+
*/
|
|
32
|
+
&.stretch {
|
|
33
|
+
@apply self-stretch;
|
|
34
|
+
|
|
35
|
+
@variant orientation-horizontal {
|
|
36
|
+
@apply w-auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@variant orientation-vertical {
|
|
40
|
+
@apply h-auto;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import {ChevronLeft}from'@accelint/icons';import
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {ChevronLeft}from'@accelint/icons';import {useContext}from'react';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';import {ViewStackContext}from'../view-stack/context.js';import {DrawerTrigger}from'./trigger.js';function w(){const{stack:o}=useContext(ViewStackContext);return o.length>1?jsx(DrawerTrigger,{for:"back",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(ChevronLeft,{})})})}):null}export{w as DrawerBack};//# sourceMappingURL=back.js.map
|
|
4
4
|
//# sourceMappingURL=back.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/back.tsx"],"names":["useContext","stack","jsx","DrawerTrigger","n","m","Button","c","r","Icon","i","t"],"mappings":"8SAuBoBA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/back.tsx"],"names":["useContext","stack","jsx","DrawerTrigger","n","m","Button","c","r","Icon","i","t"],"mappings":"8SAuBoBA,SAElB,CAAA,EAAOC,CAAAA,KAAM,CAAA,KACXC,CAACC,CAAAA,CAAA,CAAcC,UAAA,CAAAC,gBAAA,CAAI,QACjB,CAAA,CAAA,MAAAH,CAAAA,CAACI,CAAAA,GAAA,CAAOC,aAAA,CAAA,CAAA,GAAA,CAAA,MAAQ,CAAA,QACd,CAAAC,GAAAN,CAAAA,MAACO,EAAA,OACC,CAAA,MAAC,CAAA,SAILD,GAAA,CAAAE,IAAA,CACN,CAAA,QAAA,CAAAF,GAAA,CAAAG,WAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA","file":"back.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { ChevronLeft } from '@accelint/icons';\nimport { useContext } from 'react';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { ViewStackContext } from '../view-stack/context';\nimport { DrawerTrigger } from './trigger';\n\nexport function DrawerBack() {\n const { stack } = useContext(ViewStackContext);\n\n return stack.length > 1 ? (\n <DrawerTrigger for='back'>\n <Button variant='icon'>\n <Icon>\n <ChevronLeft />\n </Icon>\n </Button>\n </DrawerTrigger>\n ) : null;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import {Cancel}from'@accelint/icons';import
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {Cancel}from'@accelint/icons';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';import {DrawerTrigger}from'./trigger.js';function a(){return jsx(DrawerTrigger,{for:"close",children:jsx(Button,{variant:"icon",children:jsx(Icon,{children:jsx(Cancel,{})})})})}export{a as DrawerClose};//# sourceMappingURL=close.js.map
|
|
4
4
|
//# sourceMappingURL=close.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/close.tsx"],"names":["jsx","Button","r","e","o"],"mappings":"kNAsBK,SAAkB,CAAA,EAAA,CACjB,WAAAA,aAAAA,CAACC,CAAAA,GAAO,CAAA,OAAQ,CAAA,qBACdD,OACE,CAAA,MAAAA,CAAAA,QACF,CACFE,GAAA,CACFC,IAEJ,CAAA,CAAA,QAAA,CAAAD,GAAA,CAAAE,MAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"close.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport { Cancel } from '@accelint/icons';\nimport
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/close.tsx"],"names":["jsx","Button","r","e","o"],"mappings":"kNAsBK,SAAkB,CAAA,EAAA,CACjB,WAAAA,aAAAA,CAACC,CAAAA,GAAO,CAAA,OAAQ,CAAA,qBACdD,OACE,CAAA,MAAAA,CAAAA,QACF,CACFE,GAAA,CACFC,IAEJ,CAAA,CAAA,QAAA,CAAAD,GAAA,CAAAE,MAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"close.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { Cancel } from '@accelint/icons';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { DrawerTrigger } from './trigger';\n\nexport function DrawerClose() {\n return (\n <DrawerTrigger for='close'>\n <Button variant='icon'>\n <Icon>\n <Cancel />\n </Icon>\n </Button>\n </DrawerTrigger>\n );\n}\n"]}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{content:r}=DrawerStyles();function m({className:t,...o}){return jsx("div",{...o,className:r({className:t})})}export{m as DrawerContent};//# sourceMappingURL=content.js.map
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {clsx}from'@accelint/design-foundation/lib/utils';import e from'./styles.module.css';function i({className:o,...t}){return jsx("div",{...t,className:clsx(e.content,o)})}export{i as DrawerContent};//# sourceMappingURL=content.js.map
|
|
4
2
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/content.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/content.tsx"],"names":["DrawerContent","className","jsx","rest","clsx","styles"],"mappings":"gIAeO,SAASA,CAAc,CAC5B,CAAA,SAAAC,CAAAA,CACA,CAAA,GACF,CAAA,CAAiC,CAC/B,CAAA,OAAOC,GAAC,CAAA,KAAA,CAAK,CAAA,GAAGC,CAAM,CAAA,SAAWC,CAAAA,IAAKC,CAAAA,CAAO,CAAA,OAASJ,CAAS,EAAG,CACpE,CAAA","file":"content.js","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 */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { ComponentPropsWithRef } from 'react';\n\nexport function DrawerContent({\n className,\n ...rest\n}: ComponentPropsWithRef<'div'>) {\n return <div {...rest} className={clsx(styles.content, className)} />;\n}\n"]}
|
|
@@ -4,15 +4,11 @@ import { UniqueId } from '@accelint/core';
|
|
|
4
4
|
import { DrawerContextValue, DrawerEvent } from './types.js';
|
|
5
5
|
import '@react-types/shared';
|
|
6
6
|
import 'react-aria-components';
|
|
7
|
-
import 'tailwind-variants';
|
|
8
7
|
import '../../lib/types.js';
|
|
9
8
|
import '../button/types.js';
|
|
10
|
-
import '../button/styles.js';
|
|
11
|
-
import 'tailwind-merge';
|
|
12
9
|
import '../view-stack/types.js';
|
|
13
10
|
import '../view-stack/events.js';
|
|
14
11
|
import './events.js';
|
|
15
|
-
import './styles.js';
|
|
16
12
|
|
|
17
13
|
declare const DrawerContext: react.Context<DrawerContextValue>;
|
|
18
14
|
declare const bus: Broadcast<DrawerEvent>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{footer:e}=DrawerStyles();function m({className:o,...r}){return jsx("footer",{...r,className:e({className:o})})}export{m as DrawerFooter};//# sourceMappingURL=footer.js.map
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {clsx}from'@accelint/design-foundation/lib/utils';import e from'./styles.module.css';function n({className:o,...r}){return jsx("footer",{...r,className:clsx(e.footer,o)})}export{n as DrawerFooter};//# sourceMappingURL=footer.js.map
|
|
4
2
|
//# sourceMappingURL=footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/footer.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/footer.tsx"],"names":["DrawerFooter","className","jsx","rest","clsx","styles"],"mappings":"gIAeO,SAASA,CAAa,CAC3B,CAAA,SAAAC,CAAAA,CACA,CAAA,GACF,CAAA,CAAoC,CAClC,CAAA,OAAOC,GAAC,CAAA,QAAA,CAAQ,CAAA,GAAGC,CAAM,CAAA,SAAWC,CAAAA,IAAKC,CAAAA,CAAO,CAAA,MAAQJ,CAAS,EAAG,CACtE,CAAA","file":"footer.js","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 */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { ComponentPropsWithRef } from 'react';\n\nexport function DrawerFooter({\n className,\n ...rest\n}: ComponentPropsWithRef<'footer'>) {\n return <footer {...rest} className={clsx(styles.footer, className)} />;\n}\n"]}
|
|
@@ -5,15 +5,11 @@ import '@accelint/core';
|
|
|
5
5
|
import '@react-types/shared';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'react-aria-components';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
8
|
import '../../lib/types.js';
|
|
10
9
|
import '../button/types.js';
|
|
11
|
-
import '../button/styles.js';
|
|
12
|
-
import 'tailwind-merge';
|
|
13
10
|
import '../view-stack/types.js';
|
|
14
11
|
import '../view-stack/events.js';
|
|
15
12
|
import './events.js';
|
|
16
|
-
import './styles.js';
|
|
17
13
|
|
|
18
14
|
/**
|
|
19
15
|
* To change size of title, use the `level` prop: `1`-`3` (large), `4`-`6` (medium).
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {Heading}from'react-aria-components';import {DrawerTitleStyles}from'./styles.js';function s({className:e,level:r,...t}){return jsx(Heading,{...t,className:DrawerTitleStyles({className:e,level:r}),level:r})}export{s as DrawerHeaderTitle};//# sourceMappingURL=header-title.js.map
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {clsx}from'@accelint/design-foundation/lib/utils';import {Heading}from'react-aria-components';import r from'./styles.module.css';function f({className:t,level:e=2,...o}){return jsx(Heading,{...o,className:clsx(r.title,e<=3?r.large:r.medium,t),level:e})}export{f as DrawerHeaderTitle};//# sourceMappingURL=header-title.js.map
|
|
4
2
|
//# sourceMappingURL=header-title.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/header-title.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/header-title.tsx"],"names":["DrawerHeaderTitle","className","level","jsx","Heading","rest","clsx","styles"],"mappings":"qLAsBgBA,CAAkB,CAChC,UAAAC,CAAAA,CACA,CAAA,KAAAC,EAAQ,CAAA,CACR,CAAA,GACF,CAAA,CAAqB,CACnB,QACEC,GAACC,CAAAA,OAAA,CACE,CAAA,GAAGC,CACJ,UAAWC,CAAAA,IACTC,CAAAA,CAAO,MACPL,CAAAA,CAAAA,EAAS,CAAIK,EAAO,CAAA,KAAQA,CAAAA,CAAO,OACnCN,CACF,CAAA,CACA,CAAA,KAAOC,CAAAA,CACT,CAEJ,CAAA","file":"header-title.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Heading } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { DrawerTitleProps } from './types';\n\n/**\n * To change size of title, use the `level` prop: `1`-`3` (large), `4`-`6` (medium).\n *\n * `level` also changes the semantic heading tag number `h1`-`h6`\n */\nexport function DrawerHeaderTitle({\n className,\n level = 2,\n ...rest\n}: DrawerTitleProps) {\n return (\n <Heading\n {...rest}\n className={clsx(\n styles.title,\n level <= 3 ? styles.large : styles.medium,\n className,\n )}\n level={level}\n />\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {useContext}from'react';import {Header}from'react-aria-components';import {ViewStackContext}from'../view-stack/context.js';import {DrawerBack}from'./back.js';import {DrawerClose}from'./close.js';import {DrawerHeaderTitle}from'./header-title.js';import
|
|
3
|
+
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {clsx}from'@accelint/design-foundation/lib/utils';import {useContext}from'react';import {Header}from'react-aria-components';import {ViewStackContext}from'../view-stack/context.js';import {DrawerBack}from'./back.js';import {DrawerClose}from'./close.js';import {DrawerHeaderTitle}from'./header-title.js';import w from'./styles.module.css';function T({className:o,title:t,children:r,...m}){const{stack:a}=useContext(ViewStackContext),p=a.length>1?4:2;return jsx(Header,{...m,className:clsx(w.header,o),children:r??jsxs(Fragment,{children:[jsx(DrawerBack,{}),jsx(DrawerHeaderTitle,{level:p,children:t}),jsx(DrawerClose,{})]})})}export{T as DrawerHeader};//# sourceMappingURL=header.js.map
|
|
4
4
|
//# sourceMappingURL=header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/header.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/header.tsx"],"names":["children","rest","useContext","ViewStackContext","stack","s","Header","e","n","clsx","styles","i","jsxs","Fragment","jsx","DrawerBack","C","level","d","title","DrawerClose","c"],"mappings":"8ZAwBE,SACA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAAA,KACGC,CACL,EAAoC,QAC1B,CAAA,CAAA,CAAA,GAAM,EAAIC,CAAAA,CAAWC,KACfC,CAAAA,KAAM,CAAA,CAAA,CAAS,WAAI,CAAAC,gBAAI,CAAA,CAErC,UACGC,CAAA,CAAQ,CAAA,CAAA,CAAGL,CAAAA,CAAM,OAAAM,GAAA,CAAAC,MAAWC,CAAAA,CAAKC,GAAO,CAAA,CAAA,SACtC,CAAAC,IAAA,CAAA,CAAA,CAAA,MACCC,CAAAC,CAAAA,CAAA,CACE,QAAA,CAAA,CAAAC,EAACC,IAAAA,CAAAC,QAAA,CAAW,CAAA,QACO,CAAA,CAAAT,GAAA,CAAOU,UAAAA,CAAQ,EAAA,CAAA,CAAAV,GAAA,CAAAW,iBAAA,CAAA,CAAAC,MACjCC,CAAAA,CAAA,QAOX,CAAA,CAAA,CAAA,CAAA,CAAAb,GAAA,CAAAc,WAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"header.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { type ComponentPropsWithRef, useContext } from 'react';\nimport { Header } from 'react-aria-components';\nimport { ViewStackContext } from '../view-stack/context';\nimport { DrawerBack } from './back';\nimport { DrawerClose } from './close';\nimport { DrawerHeaderTitle } from './header-title';\nimport styles from './styles.module.css';\n\nexport function DrawerHeader({\n className,\n title,\n children,\n ...rest\n}: ComponentPropsWithRef<'header'>) {\n const { stack } = useContext(ViewStackContext);\n const level = stack.length > 1 ? 4 : 2;\n\n return (\n <Header {...rest} className={clsx(styles.header, className)}>\n {children == null ? (\n <>\n <DrawerBack />\n <DrawerHeaderTitle level={level}>{title}</DrawerHeaderTitle>\n <DrawerClose />\n </>\n ) : (\n children\n )}\n </Header>\n );\n}\n"]}
|
|
@@ -5,15 +5,11 @@ import '@accelint/core';
|
|
|
5
5
|
import '@react-types/shared';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'react-aria-components';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
8
|
import '../../lib/types.js';
|
|
10
9
|
import '../button/types.js';
|
|
11
|
-
import '../button/styles.js';
|
|
12
|
-
import 'tailwind-merge';
|
|
13
10
|
import '../view-stack/types.js';
|
|
14
11
|
import '../view-stack/events.js';
|
|
15
12
|
import './events.js';
|
|
16
|
-
import './styles.js';
|
|
17
13
|
|
|
18
14
|
/**
|
|
19
15
|
* Drawer - Slide-in panel for navigation or contextual content
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import {useOn}from'@accelint/bus/react';import'client-only';import {useRef,useState,useCallback}from'react';import {ViewStack}from'../view-stack/index.js';import {useViewStackEmit}from'../view-stack/context.js';import {DrawerContext}from'./context.js';import {DrawerEventTypes}from'./events.js';import
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import {useOn}from'@accelint/bus/react';import'client-only';import {clsx}from'@accelint/design-foundation/lib/utils';import {useRef,useState,useCallback}from'react';import {ViewStack}from'../view-stack/index.js';import {useViewStackEmit}from'../view-stack/context.js';import {DrawerContext}from'./context.js';import {DrawerEventTypes}from'./events.js';import I from'./styles.module.css';function A({id:t,children:c,className:m,defaultView:n,placement:p="left",size:w="medium",onChange:d,...v}){const o=useRef(new Set),[a,f]=useState(n||null),r=useViewStackEmit(),g=useCallback(e=>{o.current.has(e?.payload?.view)&&(r.clear(t),r.push(e.payload.view));},[t,r.clear,r.push]),y=useCallback(e=>{o.current.has(e?.payload?.view)&&(r.clear(t),a!==e?.payload?.view&&r.push(e.payload.view));},[t,a,r.clear,r.push]);return useOn(DrawerEventTypes.open,g),useOn(DrawerEventTypes.toggle,y),jsx(DrawerContext.Provider,{value:{register:e=>o.current.add(e),unregister:e=>o.current.delete(e),placement:p},children:jsx(ViewStack,{id:t,defaultView:n,onChange:e=>{f(e),d?.(e);},children:jsx("div",{...v,className:clsx("group/drawer",I.drawer,m),"data-open":!!a||null,"data-placement":p,"data-size":w,children:c})})})}export{A as Drawer};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/index.tsx"],"names":["className","rest","activeView","setActiveView","defaultView","h","viewStackEmit","handleOpen","useCallback","data","views","k","s","handleToggle","useOn","DrawerEventTypes","u","jsx","l","i","q","S","view","onChange","clsx","D","placement","children"],"mappings":"uaAqDE,SACA,CAAA,CAAA,CAAA,EAAA,CAAAA,EACA,QAAA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,WACA,CAAA,CAAA,CAAA,SAAO,CAAA,CAAA,CACP,MAAA,CAAA,IACA,CAAA,CAAA,CAAGC,QAEH,CAAA,QAAqB,CAAI,CAAA,CAAA,GACnB,CAACC,CAAAA,CAAYC,CAAa,MAC9BC,CAAe,CAAAC,MAAA,CAAA,IAGXC,GAAiC,CAAA,CAEjCC,CAAAA,CAAaC,CAAAA,CAChBC,CAAAA,CAAAA,QAA0B,CACrBC,CAAAA,EAAM,IAAA,CAAA,CAAA,CAAQ,CAAAC,gBAAA,EAAIF,CAAAA,CAAAA,CAAMG,WAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,WACZ,CAAA,CAAA,EAAA,OACA,EAAA,KAAU,GAAA,CAAA,CAAA,KAAQ,CAAA,CAAI,CAAA,CAExC,CAAA,CACA,KAAmB,CAAA,CAAA,OAAqB,CAAA,IAC1C,CACMC,EAAAA,CAAeL,EAClBC,CAAAA,CAAAA,CAA4B,CACvBC,KAAM,CAAA,CAAA,CAAA,IAAQ,CAAA,CAAID,CAAAA,CAAAA,CAAMG,yBAAa,CAAA,GACzB,CAAA,CAAA,EAAA,SACKH,IAAM,CAAA,GAAA,CAAA,CAAA,KAAS,CAAA,CAAA,CAChCH,CAAAA,CAAc,GAAA,CAAA,EAAKG,SAAa,IAAI,EAG1C,CAAA,CACA,IAAKP,CAAYI,EAAc,OAAOA,CAAc,IAAI,CAC1D,EAAA,CAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAQ,MAAuB,CAAA,CAAA,CAAMP,IAC7BO,CAAMC,CAAAA,CAAiB,OAAQF,KAAY,CAAAG,gBAGzCC,CAAAA,IAAe,CAAA,CAAA,CAAA,CAAAC,KAAA,CAAAF,gBAAA,CAAd,OACQ,CACL,CAAA,CAAAG,GAAA,CAAAC,aAAA,CAAA,QAAoC,CAAA,CAAA,KAAA,CAAQ,CAAA,QAC5C,CAAA,CAAA,EAAA,CAAA,CAAA,OAAgCV,CAAM,GAAA,CAAA,CAAA,CAAA,CAAA,UAAmB,CACzD,CAAA,EAAA,CAAA,CAAA,OACF,CAEA,MAAA,CAAA,CAAA,CAAAO,CAAAA,SAEE,CAAA,CAAA,CAAA,CAAA,QAAab,CAAAA,GACb,CAAAiB,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAWC,WAETC,CAAAA,CAAWD,CAAI,QAGjB,CAAA,CAAA,EAAAL,CAAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,GACE,CAAA,EAAGhB,CAAAA,CACJ,YAAWuB,CAAAA,KAAK,CAAA,CAAA,GAAA,CAAA,CAAA,SAAuB,CAAAC,IAAA,CAAA,gBAC5B,CAAC,MAAe,CAAA,CAAA,CAC3B,CAAA,WAAA,CAAA,CAAA,CAAA,CAAA,EAAgBC,IAChB,CAAA,gBAEC,CAAA,CAAA,CAAAC,WAKX,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport { useOn } from '@accelint/bus/react';\nimport type { UniqueId } from '@accelint/core';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useCallback, useRef, useState } from 'react';\nimport { ViewStack } from '../view-stack';\nimport { useViewStackEmit } from '../view-stack/context';\nimport { DrawerContext } from './context';\nimport { DrawerEventTypes } from './events';\nimport styles from './styles.module.css';\nimport type { DrawerOpenEvent, DrawerProps, DrawerToggleEvent } from './types';\n\n/**\n * Drawer - Slide-in panel for navigation or contextual content\n *\n * A flexible panel that slides in from the viewport edge and supports\n * stacked views, headers, footers, and programmatic triggers.\n *\n * @example\n * const ids = { drawer: uuid(), a: uuid() };\n *\n * <DrawerLayout push=\"left\">\n * <DrawerLayoutMain>\n * <DrawerTrigger for={`open:${ids.a}`}>\n * <Button variant=\"icon\">Open</Button>\n * </DrawerTrigger>\n * </DrawerLayoutMain>\n *\n * <Drawer id={ids.drawer} defaultView={ids.a}>\n * <DrawerPanel>\n * <DrawerView id={ids.a}>\n * <DrawerHeader title=\"Title A\" />\n * <DrawerContent>Content for View A</DrawerContent>\n * </DrawerView>\n * </DrawerPanel>\n * </Drawer>\n * </DrawerLayout>\n */\nexport function Drawer({\n id,\n children,\n className,\n defaultView,\n placement = 'left',\n size = 'medium',\n onChange,\n ...rest\n}: DrawerProps) {\n const views = useRef(new Set<UniqueId>());\n const [activeView, setActiveView] = useState<UniqueId | null>(\n defaultView || null,\n );\n\n const viewStackEmit = useViewStackEmit();\n\n const handleOpen = useCallback(\n (data: DrawerOpenEvent) => {\n if (views.current.has(data?.payload?.view)) {\n viewStackEmit.clear(id);\n viewStackEmit.push(data.payload.view);\n }\n },\n [id, viewStackEmit.clear, viewStackEmit.push],\n );\n const handleToggle = useCallback(\n (data: DrawerToggleEvent) => {\n if (views.current.has(data?.payload?.view)) {\n viewStackEmit.clear(id);\n if (activeView !== data?.payload?.view) {\n viewStackEmit.push(data.payload.view);\n }\n }\n },\n [id, activeView, viewStackEmit.clear, viewStackEmit.push],\n );\n\n useOn(DrawerEventTypes.open, handleOpen);\n useOn(DrawerEventTypes.toggle, handleToggle);\n\n return (\n <DrawerContext.Provider\n value={{\n register: (view: UniqueId) => views.current.add(view),\n unregister: (view: UniqueId) => views.current.delete(view),\n placement,\n }}\n >\n <ViewStack\n id={id}\n defaultView={defaultView}\n onChange={(view) => {\n setActiveView(view);\n onChange?.(view);\n }}\n >\n <div\n {...rest}\n className={clsx('group/drawer', styles.drawer, className)}\n data-open={!!activeView || null}\n data-placement={placement}\n data-size={size}\n >\n {children}\n </div>\n </ViewStack>\n </DrawerContext.Provider>\n );\n}\n"]}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{main:e}=DrawerStyles();function a({className:o,...t}){return jsx("main",{...t,className:e({className:o})})}export{a as DrawerLayoutMain};//# sourceMappingURL=layout-main.js.map
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {clsx}from'@accelint/design-foundation/lib/utils';import m from'./styles.module.css';function p({className:o,...r}){return jsx("main",{...r,className:clsx(m.main,o)})}export{p as DrawerLayoutMain};//# sourceMappingURL=layout-main.js.map
|
|
4
2
|
//# sourceMappingURL=layout-main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/layout-main.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/layout-main.tsx"],"names":["DrawerLayoutMain","className","jsx","rest","clsx","styles"],"mappings":"gIAeO,SAASA,CAAiB,CAC/B,CAAA,SAAAC,CAAAA,CACA,CAAA,GACF,CAAA,CAAkC,CAChC,CAAA,OAAOC,GAAC,CAAA,MAAA,CAAM,CAAA,GAAGC,CAAM,CAAA,SAAWC,CAAAA,IAAKC,CAAAA,CAAO,CAAA,IAAMJ,CAAS,EAAG,CAClE,CAAA","file":"layout-main.js","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 */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { ComponentPropsWithRef } from 'react';\n\nexport function DrawerLayoutMain({\n className,\n ...rest\n}: ComponentPropsWithRef<'main'>) {\n return <main {...rest} className={clsx(styles.main, className)} />;\n}\n"]}
|
|
@@ -5,15 +5,11 @@ import '@accelint/core';
|
|
|
5
5
|
import '@react-types/shared';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'react-aria-components';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
8
|
import '../../lib/types.js';
|
|
10
9
|
import '../button/types.js';
|
|
11
|
-
import '../button/styles.js';
|
|
12
|
-
import 'tailwind-merge';
|
|
13
10
|
import '../view-stack/types.js';
|
|
14
11
|
import '../view-stack/events.js';
|
|
15
12
|
import './events.js';
|
|
16
|
-
import './styles.js';
|
|
17
13
|
|
|
18
14
|
declare function DrawerLayout({ className, extend, push, ...rest }: DrawerLayoutProps): react_jsx_runtime.JSX.Element;
|
|
19
15
|
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {DrawerStyles}from'./styles.js';const{layout:p}=DrawerStyles();function i({className:t,extend:r="left right",push:o,...a}){return jsx("div",{...a,className:p({className:t}),"data-extend":r,"data-push":o})}export{i as DrawerLayout};//# sourceMappingURL=layout.js.map
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {clsx}from'@accelint/design-foundation/lib/utils';import p from'./styles.module.css';function y({className:r,extend:t="left right",push:o,...a}){return jsx("div",{...a,className:clsx("group/layout",p.layout,r),"data-extend":t,"data-push":o||null})}export{y as DrawerLayout};//# sourceMappingURL=layout.js.map
|
|
4
2
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/drawer/layout.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/drawer/layout.tsx"],"names":["DrawerLayout","className","extend","push","jsx","rest","clsx","styles"],"mappings":"gIAeO,SAASA,CAAa,CAC3B,CAAA,SAAAC,CAAAA,CACA,OAAAC,CAAAA,CAAS,CAAA,YACT,KAAAC,CAAAA,CACA,CAAA,GACF,CAAA,CAAsB,CACpB,CAAA,OACEC,GAAC,OACE,CAAA,GAAGC,CACJ,UAAWC,CAAAA,IAAK,CAAA,cAAgBC,CAAAA,CAAO,CAAA,MAAQN,CAAS,CAAA,CACxD,CAAA,aAAaC,EACb,CAAA,WAAWC,CAAAA,CAAAA,MACb,CAEJ,CAAA","file":"layout.js","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 */\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport styles from './styles.module.css';\nimport type { DrawerLayoutProps } from './types';\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"]}
|