frontile 0.18.0-alpha.8 → 0.18.0-beta.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/declarations/-private/control-blur.d.ts +63 -0
- package/declarations/-private/dialog.d.ts +15 -0
- package/declarations/-private/intent-icons.d.ts +9 -0
- package/declarations/-private/manager.d.ts +10 -3
- package/declarations/-private/notification-stack.d.ts +76 -0
- package/declarations/-private/notification.d.ts +33 -8
- package/declarations/-private/types.d.ts +69 -3
- package/declarations/components/buttons/button.d.ts +30 -1
- package/declarations/components/buttons/chip.d.ts +36 -5
- package/declarations/components/buttons/index.d.ts +1 -0
- package/declarations/components/buttons/segmented-control/item.d.ts +50 -0
- package/declarations/components/buttons/segmented-control/segmented-control.d.ts +210 -0
- package/declarations/components/buttons/segmented-control.d.ts +3 -0
- package/declarations/components/collections/calendar/calendar.d.ts +585 -0
- package/declarations/components/collections/calendar/day-cell.d.ts +19 -0
- package/declarations/components/collections/calendar/header.d.ts +56 -0
- package/declarations/components/collections/calendar/icons.d.ts +14 -0
- package/declarations/components/collections/calendar/month-grid.d.ts +36 -0
- package/declarations/components/collections/calendar/types.d.ts +94 -0
- package/declarations/components/collections/calendar/utils.d.ts +51 -0
- package/declarations/components/collections/calendar/year-grid.d.ts +32 -0
- package/declarations/components/collections/calendar.d.ts +3 -0
- package/declarations/components/collections/command/command.d.ts +195 -0
- package/declarations/components/collections/command/dialog.d.ts +44 -0
- package/declarations/components/collections/command/footer.d.ts +61 -0
- package/declarations/components/collections/command/index.d.ts +6 -0
- package/declarations/components/collections/command/input.d.ts +131 -0
- package/declarations/components/collections/command/list.d.ts +135 -0
- package/declarations/components/collections/command.d.ts +2 -0
- package/declarations/components/collections/dropdown/dropdown.d.ts +190 -0
- package/declarations/components/collections/dropdown/menu-context.d.ts +64 -0
- package/declarations/components/collections/dropdown/sub.d.ts +195 -0
- package/declarations/components/collections/dropdown.d.ts +2 -99
- package/declarations/components/collections/index.d.ts +2 -0
- package/declarations/components/collections/listbox/group.d.ts +62 -0
- package/declarations/components/collections/listbox/item.d.ts +91 -2
- package/declarations/components/collections/listbox/listbox.d.ts +39 -12
- package/declarations/components/collections/simple-table/body.d.ts +55 -2
- package/declarations/components/collections/simple-table/cell.d.ts +52 -0
- package/declarations/components/collections/simple-table/column.d.ts +52 -0
- package/declarations/components/collections/simple-table/footer.d.ts +52 -0
- package/declarations/components/collections/simple-table/header.d.ts +52 -0
- package/declarations/components/collections/simple-table/index.d.ts +52 -0
- package/declarations/components/collections/simple-table/row.d.ts +54 -1
- package/declarations/components/collections/table/column-visibility.d.ts +53 -1
- package/declarations/components/collections/table/sort-button.d.ts +52 -0
- package/declarations/components/collections/table/table.d.ts +83 -11
- package/declarations/components/collections/table/types.d.ts +15 -3
- package/declarations/components/collections/table/utils.d.ts +3 -3
- package/declarations/components/disclosure/accordion/accordion.d.ts +247 -0
- package/declarations/components/disclosure/accordion/item.d.ts +96 -0
- package/declarations/components/disclosure/accordion.d.ts +3 -0
- package/declarations/components/disclosure/icons.d.ts +9 -0
- package/declarations/components/disclosure/index.d.ts +1 -0
- package/declarations/components/forms/autocomplete.d.ts +446 -0
- package/declarations/components/forms/checkbox-group.d.ts +20 -0
- package/declarations/components/forms/checkbox.d.ts +22 -0
- package/declarations/components/forms/field.d.ts +2 -0
- package/declarations/components/forms/form-control.d.ts +54 -0
- package/declarations/components/forms/form-description.d.ts +12 -0
- package/declarations/components/forms/form-feedback.d.ts +43 -1
- package/declarations/components/forms/form.d.ts +5 -4
- package/declarations/components/forms/index.d.ts +2 -0
- package/declarations/components/forms/input-otp.d.ts +321 -0
- package/declarations/components/forms/input.d.ts +44 -1
- package/declarations/components/forms/label.d.ts +13 -0
- package/declarations/components/forms/native-select.d.ts +103 -6
- package/declarations/components/forms/radio-group.d.ts +21 -0
- package/declarations/components/forms/radio.d.ts +27 -0
- package/declarations/components/forms/select/end-content.d.ts +31 -0
- package/declarations/components/forms/select/native-mirror.d.ts +44 -0
- package/declarations/components/forms/select/select.d.ts +454 -0
- package/declarations/components/forms/select/selected-items.d.ts +80 -0
- package/declarations/components/forms/select/trigger.d.ts +81 -0
- package/declarations/components/forms/select/types.d.ts +431 -0
- package/declarations/components/forms/select.d.ts +2 -531
- package/declarations/components/forms/switch.d.ts +16 -16
- package/declarations/components/forms/textarea.d.ts +35 -0
- package/declarations/components/navigation/external-link.d.ts +94 -0
- package/declarations/components/navigation/index.d.ts +4 -0
- package/declarations/components/navigation/pagination/icons.d.ts +13 -0
- package/declarations/components/navigation/pagination/pagination.d.ts +279 -0
- package/declarations/components/navigation/pagination/range.d.ts +34 -0
- package/declarations/components/navigation/pagination.d.ts +3 -0
- package/declarations/components/navigation/tab-nav/item.d.ts +79 -0
- package/declarations/components/navigation/tab-nav/tab-nav.d.ts +165 -0
- package/declarations/components/navigation/tab-nav.d.ts +3 -0
- package/declarations/components/navigation/tabs/panel.d.ts +28 -0
- package/declarations/components/navigation/tabs/tab.d.ts +46 -0
- package/declarations/components/navigation/tabs/tabs.d.ts +227 -0
- package/declarations/components/navigation/tabs.d.ts +4 -0
- package/declarations/components/notifications/icons.d.ts +9 -0
- package/declarations/components/notifications/index.d.ts +6 -3
- package/declarations/components/notifications/notification-card.d.ts +63 -12
- package/declarations/components/notifications/notifications-container.d.ts +109 -7
- package/declarations/components/overlays/drawer/drag-handle.d.ts +26 -0
- package/declarations/components/overlays/drawer/header.d.ts +120 -1
- package/declarations/components/overlays/drawer/selectors.d.ts +22 -0
- package/declarations/components/overlays/drawer.d.ts +180 -12
- package/declarations/components/overlays/index.d.ts +3 -1
- package/declarations/components/overlays/modal/header.d.ts +14 -0
- package/declarations/components/overlays/modal.d.ts +35 -13
- package/declarations/components/overlays/mount-animation.d.ts +81 -0
- package/declarations/components/overlays/overlay.d.ts +59 -2
- package/declarations/components/overlays/popover.d.ts +292 -5
- package/declarations/components/overlays/portal-target.d.ts +5 -1
- package/declarations/components/overlays/tooltip.d.ts +401 -0
- package/declarations/components/status/alert.d.ts +134 -0
- package/declarations/components/status/index.d.ts +1 -0
- package/declarations/components/status/progress-bar.d.ts +28 -3
- package/declarations/components/utilities/avatar.d.ts +6 -6
- package/declarations/components/utilities/collapsible.d.ts +20 -1
- package/declarations/components/utilities/divider.d.ts +14 -0
- package/declarations/components/utilities/index.d.ts +6 -0
- package/declarations/components/utilities/kbd.d.ts +92 -0
- package/declarations/components/utilities/skeleton.d.ts +31 -0
- package/declarations/components/utilities/spinner.d.ts +8 -0
- package/declarations/disclosure.d.ts +1 -0
- package/declarations/index.d.ts +3 -1
- package/declarations/modifiers/drag-to-dismiss.d.ts +22 -0
- package/declarations/navigation.d.ts +1 -0
- package/declarations/services/notifications.d.ts +3 -2
- package/declarations/template-registry.d.ts +21 -6
- package/declarations/test-support.d.ts +1 -0
- package/declarations/utils/deferred-work.d.ts +24 -0
- package/declarations/utils/filter.d.ts +87 -0
- package/declarations/utils/keys.d.ts +52 -0
- package/declarations/utils/listManager.d.ts +93 -9
- package/declarations/utils/prefers-reduced-motion.d.ts +3 -0
- package/declarations/utils/roving-focus.d.ts +66 -0
- package/declarations/utils/safe-area.d.ts +52 -0
- package/declarations/utils/selection-indicator.d.ts +65 -0
- package/declarations/utils/standard-validator.d.ts +28 -3
- package/dist/buttons.js +2 -0
- package/dist/buttons.js.map +1 -1
- package/dist/collections.js +8 -1
- package/dist/collections.js.map +1 -1
- package/dist/components/buttons/button-group.js +1 -1
- package/dist/components/buttons/button-group.js.map +1 -1
- package/dist/components/buttons/button.js +72 -7
- package/dist/components/buttons/button.js.map +1 -1
- package/dist/components/buttons/chip.js +1 -1
- package/dist/components/buttons/chip.js.map +1 -1
- package/dist/components/buttons/close-button.js +3 -3
- package/dist/components/buttons/close-button.js.map +1 -1
- package/dist/components/buttons/index.js +2 -0
- package/dist/components/buttons/index.js.map +1 -1
- package/dist/components/buttons/segmented-control/item.js +55 -0
- package/dist/components/buttons/segmented-control/item.js.map +1 -0
- package/dist/components/buttons/segmented-control/segmented-control.js +175 -0
- package/dist/components/buttons/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/buttons/segmented-control.js +3 -0
- package/dist/components/buttons/segmented-control.js.map +1 -0
- package/dist/components/buttons/toggle-button.js +2 -2
- package/dist/components/buttons/toggle-button.js.map +1 -1
- package/dist/components/collections/calendar/calendar.js +808 -0
- package/dist/components/collections/calendar/calendar.js.map +1 -0
- package/dist/components/collections/calendar/day-cell.js +16 -0
- package/dist/components/collections/calendar/day-cell.js.map +1 -0
- package/dist/components/collections/calendar/header.js +48 -0
- package/dist/components/collections/calendar/header.js.map +1 -0
- package/dist/components/collections/calendar/icons.js +23 -0
- package/dist/components/collections/calendar/icons.js.map +1 -0
- package/dist/components/collections/calendar/month-grid.js +14 -0
- package/dist/components/collections/calendar/month-grid.js.map +1 -0
- package/dist/components/collections/calendar/types.js +2 -0
- package/dist/components/collections/calendar/types.js.map +1 -0
- package/dist/components/collections/calendar/utils.js +199 -0
- package/dist/components/collections/calendar/utils.js.map +1 -0
- package/dist/components/collections/calendar/year-grid.js +117 -0
- package/dist/components/collections/calendar/year-grid.js.map +1 -0
- package/dist/components/collections/calendar.js +2 -0
- package/dist/components/collections/calendar.js.map +1 -0
- package/dist/components/collections/command/command.js +263 -0
- package/dist/components/collections/command/command.js.map +1 -0
- package/dist/components/collections/command/dialog.js +100 -0
- package/dist/components/collections/command/dialog.js.map +1 -0
- package/dist/components/collections/command/footer.js +60 -0
- package/dist/components/collections/command/footer.js.map +1 -0
- package/dist/components/collections/command/index.js +6 -0
- package/dist/components/collections/command/index.js.map +1 -0
- package/dist/components/collections/command/input.js +45 -0
- package/dist/components/collections/command/input.js.map +1 -0
- package/dist/components/collections/command/list.js +70 -0
- package/dist/components/collections/command/list.js.map +1 -0
- package/dist/components/collections/command.js +6 -0
- package/dist/components/collections/command.js.map +1 -0
- package/dist/components/collections/dropdown/dropdown.js +206 -0
- package/dist/components/collections/dropdown/dropdown.js.map +1 -0
- package/dist/components/collections/dropdown/menu-context.js +62 -0
- package/dist/components/collections/dropdown/menu-context.js.map +1 -0
- package/dist/components/collections/dropdown/sub.js +256 -0
- package/dist/components/collections/dropdown/sub.js.map +1 -0
- package/dist/components/collections/dropdown.js +1 -93
- package/dist/components/collections/dropdown.js.map +1 -1
- package/dist/components/collections/index.js +8 -1
- package/dist/components/collections/index.js.map +1 -1
- package/dist/components/collections/listbox/group.js +60 -0
- package/dist/components/collections/listbox/group.js.map +1 -0
- package/dist/components/collections/listbox/item.js +105 -12
- package/dist/components/collections/listbox/item.js.map +1 -1
- package/dist/components/collections/listbox/listbox.js +106 -28
- package/dist/components/collections/listbox/listbox.js.map +1 -1
- package/dist/components/collections/listbox.js +1 -0
- package/dist/components/collections/listbox.js.map +1 -1
- package/dist/components/collections/simple-table/body.js +1 -1
- package/dist/components/collections/simple-table/body.js.map +1 -1
- package/dist/components/collections/simple-table/cell.js +1 -1
- package/dist/components/collections/simple-table/cell.js.map +1 -1
- package/dist/components/collections/simple-table/column.js +1 -1
- package/dist/components/collections/simple-table/column.js.map +1 -1
- package/dist/components/collections/simple-table/footer.js +1 -1
- package/dist/components/collections/simple-table/footer.js.map +1 -1
- package/dist/components/collections/simple-table/header.js +1 -1
- package/dist/components/collections/simple-table/header.js.map +1 -1
- package/dist/components/collections/simple-table/index.js +1 -1
- package/dist/components/collections/simple-table/index.js.map +1 -1
- package/dist/components/collections/simple-table/row.js +1 -1
- package/dist/components/collections/simple-table/row.js.map +1 -1
- package/dist/components/collections/table/cell-default.js +1 -1
- package/dist/components/collections/table/cell-default.js.map +1 -1
- package/dist/components/collections/table/cell-for.js +1 -1
- package/dist/components/collections/table/cell-for.js.map +1 -1
- package/dist/components/collections/table/checkbox.js +2 -2
- package/dist/components/collections/table/checkbox.js.map +1 -1
- package/dist/components/collections/table/column-visibility.js +3 -3
- package/dist/components/collections/table/column-visibility.js.map +1 -1
- package/dist/components/collections/table/icons.js +3 -3
- package/dist/components/collections/table/icons.js.map +1 -1
- package/dist/components/collections/table/sort-button.js +2 -2
- package/dist/components/collections/table/sort-button.js.map +1 -1
- package/dist/components/collections/table/table.js +100 -54
- package/dist/components/collections/table/table.js.map +1 -1
- package/dist/components/collections/table/utils.js +1 -1
- package/dist/components/collections/table/utils.js.map +1 -1
- package/dist/components/disclosure/accordion/accordion.js +225 -0
- package/dist/components/disclosure/accordion/accordion.js.map +1 -0
- package/dist/components/disclosure/accordion/item.js +86 -0
- package/dist/components/disclosure/accordion/item.js.map +1 -0
- package/dist/components/disclosure/accordion.js +3 -0
- package/dist/components/disclosure/accordion.js.map +1 -0
- package/dist/components/disclosure/icons.js +13 -0
- package/dist/components/disclosure/icons.js.map +1 -0
- package/dist/components/disclosure/index.js +3 -0
- package/dist/components/disclosure/index.js.map +1 -0
- package/dist/components/forms/autocomplete.js +351 -0
- package/dist/components/forms/autocomplete.js.map +1 -0
- package/dist/components/forms/checkbox-group.js +1 -1
- package/dist/components/forms/checkbox-group.js.map +1 -1
- package/dist/components/forms/checkbox.js +2 -2
- package/dist/components/forms/checkbox.js.map +1 -1
- package/dist/components/forms/field.js +5 -3
- package/dist/components/forms/field.js.map +1 -1
- package/dist/components/forms/form-control.js +12 -3
- package/dist/components/forms/form-control.js.map +1 -1
- package/dist/components/forms/form-description.js +1 -1
- package/dist/components/forms/form-description.js.map +1 -1
- package/dist/components/forms/form-feedback.js +25 -8
- package/dist/components/forms/form-feedback.js.map +1 -1
- package/dist/components/forms/form.js +13 -9
- package/dist/components/forms/form.js.map +1 -1
- package/dist/components/forms/icons.js +2 -2
- package/dist/components/forms/icons.js.map +1 -1
- package/dist/components/forms/index.js +4 -2
- package/dist/components/forms/index.js.map +1 -1
- package/dist/components/forms/input-otp.js +407 -0
- package/dist/components/forms/input-otp.js.map +1 -0
- package/dist/components/forms/input.js +34 -3
- package/dist/components/forms/input.js.map +1 -1
- package/dist/components/forms/label.js +1 -1
- package/dist/components/forms/label.js.map +1 -1
- package/dist/components/forms/native-select.js +3 -3
- package/dist/components/forms/native-select.js.map +1 -1
- package/dist/components/forms/radio-group.js +1 -1
- package/dist/components/forms/radio-group.js.map +1 -1
- package/dist/components/forms/radio.js +2 -2
- package/dist/components/forms/radio.js.map +1 -1
- package/dist/components/forms/select/end-content.js +24 -0
- package/dist/components/forms/select/end-content.js.map +1 -0
- package/dist/components/forms/select/native-mirror.js +29 -0
- package/dist/components/forms/select/native-mirror.js.map +1 -0
- package/dist/components/forms/select/select.js +629 -0
- package/dist/components/forms/select/select.js.map +1 -0
- package/dist/components/forms/select/selected-items.js +63 -0
- package/dist/components/forms/select/selected-items.js.map +1 -0
- package/dist/components/forms/select/trigger.js +30 -0
- package/dist/components/forms/select/trigger.js.map +1 -0
- package/dist/components/forms/select/types.js +2 -0
- package/dist/components/forms/select/types.js.map +1 -0
- package/dist/components/forms/select.js +1 -387
- package/dist/components/forms/select.js.map +1 -1
- package/dist/components/forms/switch.js +2 -2
- package/dist/components/forms/switch.js.map +1 -1
- package/dist/components/forms/textarea.js +2 -2
- package/dist/components/forms/textarea.js.map +1 -1
- package/dist/components/navigation/external-link.js +107 -0
- package/dist/components/navigation/external-link.js.map +1 -0
- package/dist/components/navigation/index.js +9 -0
- package/dist/components/navigation/index.js.map +1 -0
- package/dist/components/navigation/pagination/icons.js +23 -0
- package/dist/components/navigation/pagination/icons.js.map +1 -0
- package/dist/components/navigation/pagination/pagination.js +216 -0
- package/dist/components/navigation/pagination/pagination.js.map +1 -0
- package/dist/components/navigation/pagination/range.js +58 -0
- package/dist/components/navigation/pagination/range.js.map +1 -0
- package/dist/components/navigation/pagination.js +3 -0
- package/dist/components/navigation/pagination.js.map +1 -0
- package/dist/components/navigation/tab-nav/item.js +90 -0
- package/dist/components/navigation/tab-nav/item.js.map +1 -0
- package/dist/components/navigation/tab-nav/tab-nav.js +79 -0
- package/dist/components/navigation/tab-nav/tab-nav.js.map +1 -0
- package/dist/components/navigation/tab-nav.js +3 -0
- package/dist/components/navigation/tab-nav.js.map +1 -0
- package/dist/components/navigation/tabs/panel.js +23 -0
- package/dist/components/navigation/tabs/panel.js.map +1 -0
- package/dist/components/navigation/tabs/tab.js +45 -0
- package/dist/components/navigation/tabs/tab.js.map +1 -0
- package/dist/components/navigation/tabs/tabs.js +156 -0
- package/dist/components/navigation/tabs/tabs.js.map +1 -0
- package/dist/components/navigation/tabs.js +4 -0
- package/dist/components/navigation/tabs.js.map +1 -0
- package/dist/components/notifications/index.js +2 -2
- package/dist/components/notifications/notification-card.js +15 -108
- package/dist/components/notifications/notification-card.js.map +1 -1
- package/dist/components/notifications/notifications-container.js +231 -23
- package/dist/components/notifications/notifications-container.js.map +1 -1
- package/dist/components/overlays/backdrop.js +1 -1
- package/dist/components/overlays/backdrop.js.map +1 -1
- package/dist/components/overlays/drawer/body.js +1 -1
- package/dist/components/overlays/drawer/body.js.map +1 -1
- package/dist/components/overlays/drawer/drag-handle.js +18 -0
- package/dist/components/overlays/drawer/drag-handle.js.map +1 -0
- package/dist/components/overlays/drawer/footer.js +1 -1
- package/dist/components/overlays/drawer/footer.js.map +1 -1
- package/dist/components/overlays/drawer/header.js +46 -3
- package/dist/components/overlays/drawer/header.js.map +1 -1
- package/dist/components/overlays/drawer/selectors.js +29 -0
- package/dist/components/overlays/drawer/selectors.js.map +1 -0
- package/dist/components/overlays/drawer.js +116 -2
- package/dist/components/overlays/drawer.js.map +1 -1
- package/dist/components/overlays/index.js +5 -3
- package/dist/components/overlays/index.js.map +1 -1
- package/dist/components/overlays/modal/body.js +1 -1
- package/dist/components/overlays/modal/body.js.map +1 -1
- package/dist/components/overlays/modal/footer.js +1 -1
- package/dist/components/overlays/modal/footer.js.map +1 -1
- package/dist/components/overlays/modal/header.js +8 -1
- package/dist/components/overlays/modal/header.js.map +1 -1
- package/dist/components/overlays/modal.js +69 -1
- package/dist/components/overlays/modal.js.map +1 -1
- package/dist/components/overlays/mount-animation.js +146 -0
- package/dist/components/overlays/mount-animation.js.map +1 -0
- package/dist/components/overlays/overlay.js +139 -24
- package/dist/components/overlays/overlay.js.map +1 -1
- package/dist/components/overlays/popover.js +451 -36
- package/dist/components/overlays/popover.js.map +1 -1
- package/dist/components/overlays/portal-target.js +1 -1
- package/dist/components/overlays/portal-target.js.map +1 -1
- package/dist/components/overlays/portal.js +110 -8
- package/dist/components/overlays/portal.js.map +1 -1
- package/dist/components/overlays/tooltip.js +377 -0
- package/dist/components/overlays/tooltip.js.map +1 -0
- package/dist/components/status/alert.js +146 -0
- package/dist/components/status/alert.js.map +1 -0
- package/dist/components/status/index.js +1 -0
- package/dist/components/status/index.js.map +1 -1
- package/dist/components/status/progress-bar.js +47 -6
- package/dist/components/status/progress-bar.js.map +1 -1
- package/dist/components/utilities/avatar.js +1 -1
- package/dist/components/utilities/avatar.js.map +1 -1
- package/dist/components/utilities/collapsible.js +110 -12
- package/dist/components/utilities/collapsible.js.map +1 -1
- package/dist/components/utilities/divider.js +8 -2
- package/dist/components/utilities/divider.js.map +1 -1
- package/dist/components/utilities/index.js +7 -1
- package/dist/components/utilities/index.js.map +1 -1
- package/dist/components/utilities/kbd.js +88 -0
- package/dist/components/utilities/kbd.js.map +1 -0
- package/dist/components/utilities/skeleton.js +14 -0
- package/dist/components/utilities/skeleton.js.map +1 -0
- package/dist/components/utilities/spinner.js +1 -1
- package/dist/components/utilities/spinner.js.map +1 -1
- package/dist/components/utilities/visually-hidden.js +1 -1
- package/dist/components/utilities/visually-hidden.js.map +1 -1
- package/dist/control-blur-C8OnSQR5.js +124 -0
- package/dist/control-blur-C8OnSQR5.js.map +1 -0
- package/dist/dialog-CreV7aPQ.js +27 -0
- package/dist/dialog-CreV7aPQ.js.map +1 -0
- package/dist/disclosure.js +3 -0
- package/dist/disclosure.js.map +1 -0
- package/dist/dom-cKWVvtkd.js +116 -0
- package/dist/dom-cKWVvtkd.js.map +1 -0
- package/dist/forms.js +4 -2
- package/dist/forms.js.map +1 -1
- package/dist/index.js +39 -9
- package/dist/index.js.map +1 -1
- package/dist/intent-icons-DpEViO8C.js +19 -0
- package/dist/intent-icons-DpEViO8C.js.map +1 -0
- package/dist/manager-CDIZzrQ9.js +388 -0
- package/dist/manager-CDIZzrQ9.js.map +1 -0
- package/dist/modifiers/drag-to-dismiss.js +392 -0
- package/dist/modifiers/drag-to-dismiss.js.map +1 -0
- package/dist/modifiers/press.js +51 -16
- package/dist/modifiers/press.js.map +1 -1
- package/dist/navigation.js +9 -0
- package/dist/navigation.js.map +1 -0
- package/dist/notification-card-D5fd-Sxa.js +330 -0
- package/dist/notification-card-D5fd-Sxa.js.map +1 -0
- package/dist/notifications.js +2 -2
- package/dist/overlays.js +5 -3
- package/dist/overlays.js.map +1 -1
- package/dist/{runtime-BPCpkOf1-B5Lbloj7.js → runtime--fcdnjmJ-BOdRhmsS.js} +2 -2
- package/dist/runtime--fcdnjmJ-BOdRhmsS.js.map +1 -0
- package/dist/services/notifications.js +6 -3
- package/dist/services/notifications.js.map +1 -1
- package/dist/status.js +1 -0
- package/dist/status.js.map +1 -1
- package/dist/test-support.js +10 -31
- package/dist/test-support.js.map +1 -1
- package/dist/utilities.js +7 -1
- package/dist/utilities.js.map +1 -1
- package/dist/utils/deferred-work.js +66 -0
- package/dist/utils/deferred-work.js.map +1 -0
- package/dist/utils/filter.js +166 -0
- package/dist/utils/filter.js.map +1 -0
- package/dist/utils/keys.js +259 -0
- package/dist/utils/keys.js.map +1 -0
- package/dist/utils/listManager.js +490 -105
- package/dist/utils/listManager.js.map +1 -1
- package/dist/utils/nested-data.js +60 -1
- package/dist/utils/nested-data.js.map +1 -1
- package/dist/utils/prefers-reduced-motion.js +21 -0
- package/dist/utils/prefers-reduced-motion.js.map +1 -0
- package/dist/utils/ref.js +1 -1
- package/dist/utils/ref.js.map +1 -1
- package/dist/utils/roving-focus.js +206 -0
- package/dist/utils/roving-focus.js.map +1 -0
- package/dist/utils/safe-area.js +133 -0
- package/dist/utils/safe-area.js.map +1 -0
- package/dist/utils/selection-indicator.js +189 -0
- package/dist/utils/selection-indicator.js.map +1 -0
- package/dist/utils/standard-validator.js +36 -6
- package/dist/utils/standard-validator.js.map +1 -1
- package/dist/utils/toggle.js +1 -1
- package/dist/utils/toggle.js.map +1 -1
- package/package.json +33 -22
- package/dist/manager-C1Vyhk-A.js +0 -175
- package/dist/manager-C1Vyhk-A.js.map +0 -1
- package/dist/portal-BTKv9EEY.js +0 -168
- package/dist/portal-BTKv9EEY.js.map +0 -1
- package/dist/runtime-BPCpkOf1-B5Lbloj7.js.map +0 -1
|
@@ -1,99 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { type ListboxSignature } from './listbox';
|
|
4
|
-
import { type PopoverSignature, type ContentSignature } from '../overlays/popover';
|
|
5
|
-
import type { ModifierLike } from '@glint/template';
|
|
6
|
-
import type { ListboxItem } from './listbox/item';
|
|
7
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
interface DropdownArgs extends Pick<PopoverSignature['Args'], 'placement' | 'flipOptions' | 'middleware' | 'shiftOptions' | 'offsetOptions' | 'strategy' | 'didClose'> {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the dropdown should close upon selecting an item.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue true
|
|
13
|
-
*/
|
|
14
|
-
closeOnItemSelect?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface DropdownSignature {
|
|
17
|
-
Args: DropdownArgs;
|
|
18
|
-
Element: HTMLUListElement;
|
|
19
|
-
Blocks: {
|
|
20
|
-
default: [
|
|
21
|
-
{
|
|
22
|
-
Trigger: WithBoundArgs<typeof Trigger, 'anchor' | 'toggle' | 'trigger'>;
|
|
23
|
-
Menu: WithBoundArgs<typeof Menu, 'toggle' | 'Content' | 'closeOnItemSelect'>;
|
|
24
|
-
}
|
|
25
|
-
];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
declare class Dropdown extends Component<DropdownSignature> {
|
|
29
|
-
}
|
|
30
|
-
interface TriggerArgs extends Pick<ButtonSignature['Args'], 'appearance' | 'intent' | 'size' | 'isInGroup' | 'class'> {
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
anchor: ModifierLike<{
|
|
35
|
-
Element: HTMLElement;
|
|
36
|
-
}>;
|
|
37
|
-
trigger: ModifierLike<{
|
|
38
|
-
Element: HTMLElement;
|
|
39
|
-
}>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
toggle: () => void;
|
|
44
|
-
}
|
|
45
|
-
export interface TriggerSignature {
|
|
46
|
-
Args: TriggerArgs;
|
|
47
|
-
Element: HTMLButtonElement;
|
|
48
|
-
Blocks: {
|
|
49
|
-
default: [];
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
declare class Trigger extends Component<TriggerSignature> {
|
|
53
|
-
get anchor(): ModifierLike<{
|
|
54
|
-
Element: HTMLElement;
|
|
55
|
-
}>;
|
|
56
|
-
get trigger(): ModifierLike<{
|
|
57
|
-
Element: HTMLElement;
|
|
58
|
-
}>;
|
|
59
|
-
handleKeyDown: (event: KeyboardEvent) => void;
|
|
60
|
-
handleKeyUp: (event: KeyboardEvent) => void;
|
|
61
|
-
}
|
|
62
|
-
interface MenuArgs extends Pick<ListboxSignature<unknown>['Args'], 'appearance' | 'intent' | 'class' | 'selectionMode' | 'selectedKeys' | 'disabledKeys' | 'allowEmpty' | 'onSelectionChange'>, Pick<ContentSignature['Args'], 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'transition'> {
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
closeOnItemSelect?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
Content: PopoverSignature['Blocks']['default'][0]['Content'];
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
toggle: () => void;
|
|
75
|
-
onAction?: (key: string) => void;
|
|
76
|
-
/**
|
|
77
|
-
* @defaultValue true
|
|
78
|
-
*/
|
|
79
|
-
blockScroll?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* @defaultValue false
|
|
82
|
-
*/
|
|
83
|
-
disableFocusTrap?: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface MenuSignature {
|
|
86
|
-
Args: MenuArgs;
|
|
87
|
-
Element: HTMLUListElement;
|
|
88
|
-
Blocks: {
|
|
89
|
-
default: [item: WithBoundArgs<typeof ListboxItem, 'manager'>];
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
declare class Menu extends Component<MenuSignature> {
|
|
93
|
-
get classNames(): string;
|
|
94
|
-
onAction: (key: string) => void;
|
|
95
|
-
get blockScroll(): boolean;
|
|
96
|
-
get disableFocusTrap(): boolean;
|
|
97
|
-
}
|
|
98
|
-
export { Dropdown, type DropdownSignature };
|
|
99
|
-
export default Dropdown;
|
|
1
|
+
export * from './dropdown/dropdown';
|
|
2
|
+
export { default } from './dropdown/dropdown';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { ListboxItem } from './item';
|
|
3
|
+
import type { ListManager } from '../../../utils/listManager';
|
|
4
|
+
import type { ListboxItemSignature } from './item';
|
|
5
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
6
|
+
type ItemCompBounded = WithBoundArgs<typeof ListboxItem, 'manager' | 'type' | 'appearance' | 'intent' | 'shortcutAppearance'>;
|
|
7
|
+
export interface ListboxGroupSignature {
|
|
8
|
+
Args: {
|
|
9
|
+
manager: ListManager;
|
|
10
|
+
/**
|
|
11
|
+
* The heading rendered above the group's options. When omitted, the group
|
|
12
|
+
* still groups its options but renders no heading — and carries no
|
|
13
|
+
* `aria-labelledby`, since there would be nothing to point at.
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
class?: string;
|
|
17
|
+
classes?: {
|
|
18
|
+
base?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
list?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Render a divider after the group. Groups in a palette are usually
|
|
24
|
+
* separated visually; the divider is a sibling of the group rather than a
|
|
25
|
+
* child so it does not sit inside the group's labelled region.
|
|
26
|
+
*/
|
|
27
|
+
withDivider?: boolean;
|
|
28
|
+
type?: ListboxItemSignature['Args']['type'];
|
|
29
|
+
appearance?: ListboxItemSignature['Args']['appearance'];
|
|
30
|
+
intent?: ListboxItemSignature['Args']['intent'];
|
|
31
|
+
shortcutAppearance?: ListboxItemSignature['Args']['shortcutAppearance'];
|
|
32
|
+
};
|
|
33
|
+
Element: HTMLLIElement;
|
|
34
|
+
Blocks: {
|
|
35
|
+
default: [{
|
|
36
|
+
Item: ItemCompBounded;
|
|
37
|
+
}];
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A labelled section of options within a `Listbox`.
|
|
42
|
+
*
|
|
43
|
+
* The markup nests the options one level deeper than an ungrouped listbox, so
|
|
44
|
+
* the intervening list is marked `role="none"` to keep the
|
|
45
|
+
* `listbox` -> `option` ownership chain intact.
|
|
46
|
+
*
|
|
47
|
+
* Grouping deliberately adds no concepts to `ListManager`: navigation order is
|
|
48
|
+
* derived from the live DOM via `compareDocumentPosition`, so nesting options
|
|
49
|
+
* inside a group leaves keyboard traversal across group boundaries correct by
|
|
50
|
+
* construction.
|
|
51
|
+
*/
|
|
52
|
+
declare class ListboxGroup extends Component<ListboxGroupSignature> {
|
|
53
|
+
titleId: string;
|
|
54
|
+
get classNames(): {
|
|
55
|
+
base: string;
|
|
56
|
+
title: string;
|
|
57
|
+
list: string;
|
|
58
|
+
divider: string;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export { ListboxGroup };
|
|
62
|
+
export default ListboxGroup;
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
+
import type { KbdSignature } from '../../utilities/kbd';
|
|
2
3
|
import type { ListManager, ListItem } from '../../../utils/listManager';
|
|
3
4
|
export interface ListboxItemSignature {
|
|
4
5
|
Args: {
|
|
5
6
|
manager: ListManager;
|
|
6
7
|
key: string;
|
|
7
8
|
textValue?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The entry of `@items` this option renders, remembered on the registered
|
|
11
|
+
* list item so a selection can hand it back. Bound for you on the Item
|
|
12
|
+
* yielded from the `:item` block; block-form options have no such entry.
|
|
13
|
+
*/
|
|
14
|
+
item?: unknown;
|
|
8
15
|
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* A keyboard shortcut shown at the end of the option, rendered by `Kbd`.
|
|
18
|
+
* Accepts named keys (`"mod+k"`) or a literal string (`"⌘K"`).
|
|
19
|
+
*/
|
|
9
20
|
shortcut?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The appearance of the rendered shortcut. Defaults to `inherit`, so the
|
|
23
|
+
* keycap follows the option's own colour on active and filled rows.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue 'inherit'
|
|
26
|
+
*/
|
|
27
|
+
shortcutAppearance?: KbdSignature['Args']['appearance'];
|
|
10
28
|
onClick?: () => void;
|
|
11
29
|
class?: string;
|
|
12
30
|
withDivider?: boolean;
|
|
@@ -19,8 +37,31 @@ export interface ListboxItemSignature {
|
|
|
19
37
|
/**
|
|
20
38
|
* The intent of each item
|
|
21
39
|
*/
|
|
22
|
-
intent?: 'default' | 'primary' | '
|
|
40
|
+
intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
23
41
|
type?: 'menu' | 'listbox';
|
|
42
|
+
/**
|
|
43
|
+
* Marks this option as the trigger for a submenu.
|
|
44
|
+
*
|
|
45
|
+
* It stops the option selecting: opening a submenu is not choosing
|
|
46
|
+
* anything, so `onAction` and `onSelectionChange` must not fire for it.
|
|
47
|
+
* The option still registers with the `ListManager` and so still takes
|
|
48
|
+
* part in arrow navigation, type-ahead and the roving tab stop.
|
|
49
|
+
*
|
|
50
|
+
* Renders `aria-haspopup="menu"` and a trailing chevron, unless an `:end`
|
|
51
|
+
* block supplies its own trailing content.
|
|
52
|
+
*/
|
|
53
|
+
hasSubmenu?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether this option's submenu is currently open. Only meaningful
|
|
56
|
+
* alongside `@hasSubmenu`; drives `aria-expanded` and the highlighted
|
|
57
|
+
* resting state via `data-submenu-open`.
|
|
58
|
+
*/
|
|
59
|
+
isSubmenuOpen?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The id of the `role="menu"` element this option opens, for
|
|
62
|
+
* `aria-controls`. Only meaningful alongside `@hasSubmenu`.
|
|
63
|
+
*/
|
|
64
|
+
submenuId?: string;
|
|
24
65
|
};
|
|
25
66
|
Element: HTMLLIElement;
|
|
26
67
|
Blocks: {
|
|
@@ -31,12 +72,19 @@ export interface ListboxItemSignature {
|
|
|
31
72
|
};
|
|
32
73
|
}
|
|
33
74
|
declare class ListboxItem extends Component<ListboxItemSignature> {
|
|
75
|
+
itemId: string;
|
|
34
76
|
labelId: string;
|
|
35
77
|
listItem?: ListItem;
|
|
36
78
|
get manager(): ListManager;
|
|
37
79
|
get key(): string;
|
|
38
80
|
onRegister(item: ListItem): void;
|
|
39
81
|
onClick(): void;
|
|
82
|
+
/**
|
|
83
|
+
* A roving tabindex: the manager nominates one option as the composite's tab
|
|
84
|
+
* stop and every other option stays out of the tab order, as the ARIA
|
|
85
|
+
* listbox pattern requires. Giving a `0` to each active *or selected* option
|
|
86
|
+
* turned a multi-select with eight selections into eight tab stops.
|
|
87
|
+
*/
|
|
40
88
|
get tabindex(): 0 | -1;
|
|
41
89
|
get classNames(): {
|
|
42
90
|
base: string;
|
|
@@ -44,8 +92,49 @@ declare class ListboxItem extends Component<ListboxItemSignature> {
|
|
|
44
92
|
label: string;
|
|
45
93
|
description: string;
|
|
46
94
|
selectedIcon: string;
|
|
47
|
-
shortcut: string;
|
|
48
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* The `submenuIndicator` slot is only ever rendered on a sub-trigger, so it
|
|
98
|
+
* is looked up here rather than in `classNames`, and only when
|
|
99
|
+
* `@hasSubmenu` is set — a plain item never pays for it.
|
|
100
|
+
*
|
|
101
|
+
* `registerCustomStyles` (`packages/theme/src/index.ts`) shallow-replaces:
|
|
102
|
+
* a consumer supplying their own `listboxItem` via `tv({...})` swaps out
|
|
103
|
+
* the whole config, not just the slots they mention. `tv()` in turn only
|
|
104
|
+
* produces a function for a slot it was actually given. So a third-party
|
|
105
|
+
* override written before this slot existed has no `submenuIndicator` key
|
|
106
|
+
* at all, and calling it would throw. A published component library must
|
|
107
|
+
* not crash a consumer's app over a stale override, so this stays
|
|
108
|
+
* defensive — but the check now only runs for sub-triggers, not for every
|
|
109
|
+
* item on every render.
|
|
110
|
+
*/
|
|
111
|
+
get submenuIndicatorClass(): string | undefined;
|
|
112
|
+
get shortcutAppearance(): "default" | "outlined" | "faded" | "inherit" | "plain";
|
|
49
113
|
get role(): "menuitem" | "option";
|
|
114
|
+
/**
|
|
115
|
+
* `aria-selected` belongs on `option`, and only there — a plain `menuitem`
|
|
116
|
+
* that carries it is invalid ARIA, since menu items convey state through
|
|
117
|
+
* `aria-checked` and only as `menuitemcheckbox`/`menuitemradio`. Returning
|
|
118
|
+
* undefined omits the attribute rather than rendering an empty one.
|
|
119
|
+
*/
|
|
120
|
+
get ariaSelected(): 'true' | 'false' | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* `aria-haspopup="menu"` rather than the bare `"true"`: both are valid, but
|
|
123
|
+
* the explicit role tells a screen reader what is about to open.
|
|
124
|
+
*/
|
|
125
|
+
get ariaHasPopup(): 'menu' | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Only a row that owns a popup has an expanded state. Rendering
|
|
128
|
+
* `aria-expanded` on a plain `menuitem` would be invalid ARIA, so this is
|
|
129
|
+
* undefined -- and therefore omitted -- unless `@hasSubmenu` is set.
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* `aria-expanded` and `data-submenu-open` share this same value — one is
|
|
133
|
+
* the ARIA state for assistive tech, the other a styling hook for the
|
|
134
|
+
* template's own resting/hover state — so both getters delegate here.
|
|
135
|
+
*/
|
|
136
|
+
get submenuOpenState(): 'true' | 'false' | undefined;
|
|
137
|
+
get ariaExpanded(): 'true' | 'false' | undefined;
|
|
138
|
+
get dataSubmenuOpen(): 'true' | 'false' | undefined;
|
|
50
139
|
}
|
|
51
140
|
export { ListboxItem };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { ListManager, type SelectionMode, type ListItem } from '../../../utils/listManager';
|
|
3
3
|
import { ListboxItem, type ListboxItemSignature } from './item';
|
|
4
|
+
import { ListboxGroup, type ListboxGroupSignature } from './group';
|
|
4
5
|
import type { WithBoundArgs } from '@glint/template';
|
|
5
6
|
type ItemCompBounded = WithBoundArgs<typeof ListboxItem, 'manager'>;
|
|
7
|
+
type GroupCompBounded = WithBoundArgs<typeof ListboxGroup, 'manager'>;
|
|
8
|
+
type ItemCompBoundedWithItem = WithBoundArgs<typeof ListboxItem, 'manager' | 'item'>;
|
|
6
9
|
interface ListboxSignature<T> {
|
|
7
10
|
Args: {
|
|
8
11
|
/**
|
|
@@ -23,12 +26,12 @@ interface ListboxSignature<T> {
|
|
|
23
26
|
*/
|
|
24
27
|
elementToAddKeyboardEvents?: HTMLElement;
|
|
25
28
|
/**
|
|
26
|
-
* @
|
|
29
|
+
* @defaultValue 'first'
|
|
27
30
|
*/
|
|
28
31
|
autoActivateMode?: 'none' | 'first' | 'selected';
|
|
29
32
|
onAction?: (key: string) => void;
|
|
30
33
|
onSelectionChange?: (key: string[]) => void;
|
|
31
|
-
onActiveItemChange?: (key?: string) => void;
|
|
34
|
+
onActiveItemChange?: (key?: string, item?: ListItem) => void;
|
|
32
35
|
/**
|
|
33
36
|
* The appearance of each item
|
|
34
37
|
*
|
|
@@ -38,26 +41,44 @@ interface ListboxSignature<T> {
|
|
|
38
41
|
/**
|
|
39
42
|
* The intent of each item
|
|
40
43
|
*/
|
|
41
|
-
intent?: 'default' | 'primary' | '
|
|
44
|
+
intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
45
|
+
/**
|
|
46
|
+
* The appearance of the keycap rendered for each item's `@shortcut`.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue 'inherit'
|
|
49
|
+
*/
|
|
50
|
+
shortcutAppearance?: ListboxItemSignature['Args']['shortcutAppearance'];
|
|
42
51
|
};
|
|
43
52
|
Element: HTMLUListElement;
|
|
44
53
|
Blocks: {
|
|
45
|
-
item: [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
item: [
|
|
55
|
+
{
|
|
56
|
+
item: T;
|
|
57
|
+
key: string;
|
|
58
|
+
label: string;
|
|
59
|
+
Item: ItemCompBoundedWithItem;
|
|
60
|
+
}
|
|
61
|
+
];
|
|
51
62
|
default: [{
|
|
52
63
|
Item: ItemCompBounded;
|
|
64
|
+
Group: GroupCompBounded;
|
|
53
65
|
}];
|
|
54
66
|
};
|
|
55
67
|
}
|
|
56
68
|
declare class Listbox<T = unknown> extends Component<ListboxSignature<T>> {
|
|
57
69
|
listManager: ListManager;
|
|
58
|
-
|
|
70
|
+
/**
|
|
71
|
+
* All keyboard behaviour lands on `keydown`.
|
|
72
|
+
*
|
|
73
|
+
* Selection and type-ahead used to live on a separate `keypress` listener.
|
|
74
|
+
* A browser fires `keypress` only when the preceding `keydown` was not
|
|
75
|
+
* canceled, so any co-located `keydown` handler calling `preventDefault()`
|
|
76
|
+
* -- `Dropdown`'s submenu keys, a consuming app's shortcut handler --
|
|
77
|
+
* silently deleted the event this component depended on, and Enter
|
|
78
|
+
* selection stopped working with no error at all. `keypress` is also absent
|
|
79
|
+
* from current spec guidance and inconsistent for non-printable keys.
|
|
80
|
+
*/
|
|
59
81
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
60
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
61
82
|
onKeyDown: (event: KeyboardEvent) => void;
|
|
62
83
|
setupEvents: import("ember-modifier").FunctionBasedModifier<{
|
|
63
84
|
Args: {
|
|
@@ -70,6 +91,12 @@ declare class Listbox<T = unknown> extends Component<ListboxSignature<T>> {
|
|
|
70
91
|
}>;
|
|
71
92
|
get classNames(): string;
|
|
72
93
|
get role(): "menu" | "listbox";
|
|
94
|
+
/**
|
|
95
|
+
* A listbox that accepts more than one selection has to say so, otherwise a
|
|
96
|
+
* screen reader presents it as a single-choice list. Only meaningful on
|
|
97
|
+
* `role="listbox"`; a `menu` conveys multi-select through its item roles.
|
|
98
|
+
*/
|
|
99
|
+
get ariaMultiselectable(): 'true' | undefined;
|
|
73
100
|
}
|
|
74
|
-
export { Listbox, ListboxItem, type ListboxSignature, type ListboxItemSignature, type ListItem };
|
|
101
|
+
export { Listbox, ListboxItem, ListboxGroup, type ListboxSignature, type ListboxItemSignature, type ListboxGroupSignature, type ListItem };
|
|
75
102
|
export default Listbox;
|
|
@@ -3,6 +3,7 @@ import { useStyles } from '@frontile/theme';
|
|
|
3
3
|
import { SimpleTableRow } from './row';
|
|
4
4
|
import { SimpleTableCell } from './cell';
|
|
5
5
|
import type { SlotsToClasses, TableSlots } from '../table/types';
|
|
6
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
6
7
|
interface SimpleTableBodySignature {
|
|
7
8
|
Args: {
|
|
8
9
|
/** Additional CSS class to apply to the body section */
|
|
@@ -22,8 +23,8 @@ interface SimpleTableBodySignature {
|
|
|
22
23
|
Blocks: {
|
|
23
24
|
default: [
|
|
24
25
|
{
|
|
25
|
-
Row: typeof SimpleTableRow
|
|
26
|
-
Cell: typeof SimpleTableCell
|
|
26
|
+
Row: WithBoundArgs<typeof SimpleTableRow, 'styleFns' | 'classes'>;
|
|
27
|
+
Cell: WithBoundArgs<typeof SimpleTableCell, 'styleFns' | 'classes'>;
|
|
27
28
|
}
|
|
28
29
|
];
|
|
29
30
|
};
|
|
@@ -225,6 +226,32 @@ declare class SimpleTableBody extends Component<SimpleTableBodySignature> {
|
|
|
225
226
|
hasStickyHeader?: boolean | undefined;
|
|
226
227
|
isInStickyRow?: boolean | undefined;
|
|
227
228
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
229
|
+
skeleton: (slotProps?: ({
|
|
230
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
231
|
+
isLoading?: boolean | undefined;
|
|
232
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
233
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
234
|
+
layout?: "fixed" | "auto" | undefined;
|
|
235
|
+
striped?: boolean | undefined;
|
|
236
|
+
isSticky?: boolean | undefined;
|
|
237
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
238
|
+
isScrollable?: boolean | undefined;
|
|
239
|
+
hasStickyHeader?: boolean | undefined;
|
|
240
|
+
isInStickyRow?: boolean | undefined;
|
|
241
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
242
|
+
skeletonRow: (slotProps?: ({
|
|
243
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
244
|
+
isLoading?: boolean | undefined;
|
|
245
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
246
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
247
|
+
layout?: "fixed" | "auto" | undefined;
|
|
248
|
+
striped?: boolean | undefined;
|
|
249
|
+
isSticky?: boolean | undefined;
|
|
250
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
251
|
+
isScrollable?: boolean | undefined;
|
|
252
|
+
hasStickyHeader?: boolean | undefined;
|
|
253
|
+
isInStickyRow?: boolean | undefined;
|
|
254
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
228
255
|
} & {
|
|
229
256
|
base: (slotProps?: ({
|
|
230
257
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -421,6 +448,32 @@ declare class SimpleTableBody extends Component<SimpleTableBodySignature> {
|
|
|
421
448
|
hasStickyHeader?: boolean | undefined;
|
|
422
449
|
isInStickyRow?: boolean | undefined;
|
|
423
450
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
451
|
+
skeleton: (slotProps?: ({
|
|
452
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
453
|
+
isLoading?: boolean | undefined;
|
|
454
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
455
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
456
|
+
layout?: "fixed" | "auto" | undefined;
|
|
457
|
+
striped?: boolean | undefined;
|
|
458
|
+
isSticky?: boolean | undefined;
|
|
459
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
460
|
+
isScrollable?: boolean | undefined;
|
|
461
|
+
hasStickyHeader?: boolean | undefined;
|
|
462
|
+
isInStickyRow?: boolean | undefined;
|
|
463
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
464
|
+
skeletonRow: (slotProps?: ({
|
|
465
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
466
|
+
isLoading?: boolean | undefined;
|
|
467
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
468
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
469
|
+
layout?: "fixed" | "auto" | undefined;
|
|
470
|
+
striped?: boolean | undefined;
|
|
471
|
+
isSticky?: boolean | undefined;
|
|
472
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
473
|
+
isScrollable?: boolean | undefined;
|
|
474
|
+
hasStickyHeader?: boolean | undefined;
|
|
475
|
+
isInStickyRow?: boolean | undefined;
|
|
476
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
424
477
|
} & {};
|
|
425
478
|
get classNames(): string;
|
|
426
479
|
}
|
|
@@ -224,6 +224,32 @@ declare class SimpleTableCell extends Component<SimpleTableCellSignature> {
|
|
|
224
224
|
hasStickyHeader?: boolean | undefined;
|
|
225
225
|
isInStickyRow?: boolean | undefined;
|
|
226
226
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
227
|
+
skeleton: (slotProps?: ({
|
|
228
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
229
|
+
isLoading?: boolean | undefined;
|
|
230
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
231
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
232
|
+
layout?: "fixed" | "auto" | undefined;
|
|
233
|
+
striped?: boolean | undefined;
|
|
234
|
+
isSticky?: boolean | undefined;
|
|
235
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
236
|
+
isScrollable?: boolean | undefined;
|
|
237
|
+
hasStickyHeader?: boolean | undefined;
|
|
238
|
+
isInStickyRow?: boolean | undefined;
|
|
239
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
240
|
+
skeletonRow: (slotProps?: ({
|
|
241
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
242
|
+
isLoading?: boolean | undefined;
|
|
243
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
244
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
245
|
+
layout?: "fixed" | "auto" | undefined;
|
|
246
|
+
striped?: boolean | undefined;
|
|
247
|
+
isSticky?: boolean | undefined;
|
|
248
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
249
|
+
isScrollable?: boolean | undefined;
|
|
250
|
+
hasStickyHeader?: boolean | undefined;
|
|
251
|
+
isInStickyRow?: boolean | undefined;
|
|
252
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
227
253
|
} & {
|
|
228
254
|
base: (slotProps?: ({
|
|
229
255
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -420,6 +446,32 @@ declare class SimpleTableCell extends Component<SimpleTableCellSignature> {
|
|
|
420
446
|
hasStickyHeader?: boolean | undefined;
|
|
421
447
|
isInStickyRow?: boolean | undefined;
|
|
422
448
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
449
|
+
skeleton: (slotProps?: ({
|
|
450
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
451
|
+
isLoading?: boolean | undefined;
|
|
452
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
453
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
454
|
+
layout?: "fixed" | "auto" | undefined;
|
|
455
|
+
striped?: boolean | undefined;
|
|
456
|
+
isSticky?: boolean | undefined;
|
|
457
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
458
|
+
isScrollable?: boolean | undefined;
|
|
459
|
+
hasStickyHeader?: boolean | undefined;
|
|
460
|
+
isInStickyRow?: boolean | undefined;
|
|
461
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
462
|
+
skeletonRow: (slotProps?: ({
|
|
463
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
464
|
+
isLoading?: boolean | undefined;
|
|
465
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
466
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
467
|
+
layout?: "fixed" | "auto" | undefined;
|
|
468
|
+
striped?: boolean | undefined;
|
|
469
|
+
isSticky?: boolean | undefined;
|
|
470
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
471
|
+
isScrollable?: boolean | undefined;
|
|
472
|
+
hasStickyHeader?: boolean | undefined;
|
|
473
|
+
isInStickyRow?: boolean | undefined;
|
|
474
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
423
475
|
} & {};
|
|
424
476
|
get classNames(): string;
|
|
425
477
|
}
|
|
@@ -216,6 +216,32 @@ declare class SimpleTableColumn extends Component<SimpleTableColumnSignature> {
|
|
|
216
216
|
hasStickyHeader?: boolean | undefined;
|
|
217
217
|
isInStickyRow?: boolean | undefined;
|
|
218
218
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
219
|
+
skeleton: (slotProps?: ({
|
|
220
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
221
|
+
isLoading?: boolean | undefined;
|
|
222
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
223
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
224
|
+
layout?: "fixed" | "auto" | undefined;
|
|
225
|
+
striped?: boolean | undefined;
|
|
226
|
+
isSticky?: boolean | undefined;
|
|
227
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
228
|
+
isScrollable?: boolean | undefined;
|
|
229
|
+
hasStickyHeader?: boolean | undefined;
|
|
230
|
+
isInStickyRow?: boolean | undefined;
|
|
231
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
232
|
+
skeletonRow: (slotProps?: ({
|
|
233
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
234
|
+
isLoading?: boolean | undefined;
|
|
235
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
236
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
237
|
+
layout?: "fixed" | "auto" | undefined;
|
|
238
|
+
striped?: boolean | undefined;
|
|
239
|
+
isSticky?: boolean | undefined;
|
|
240
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
241
|
+
isScrollable?: boolean | undefined;
|
|
242
|
+
hasStickyHeader?: boolean | undefined;
|
|
243
|
+
isInStickyRow?: boolean | undefined;
|
|
244
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
219
245
|
} & {
|
|
220
246
|
base: (slotProps?: ({
|
|
221
247
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -412,6 +438,32 @@ declare class SimpleTableColumn extends Component<SimpleTableColumnSignature> {
|
|
|
412
438
|
hasStickyHeader?: boolean | undefined;
|
|
413
439
|
isInStickyRow?: boolean | undefined;
|
|
414
440
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
441
|
+
skeleton: (slotProps?: ({
|
|
442
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
443
|
+
isLoading?: boolean | undefined;
|
|
444
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
445
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
446
|
+
layout?: "fixed" | "auto" | undefined;
|
|
447
|
+
striped?: boolean | undefined;
|
|
448
|
+
isSticky?: boolean | undefined;
|
|
449
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
450
|
+
isScrollable?: boolean | undefined;
|
|
451
|
+
hasStickyHeader?: boolean | undefined;
|
|
452
|
+
isInStickyRow?: boolean | undefined;
|
|
453
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
454
|
+
skeletonRow: (slotProps?: ({
|
|
455
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
456
|
+
isLoading?: boolean | undefined;
|
|
457
|
+
loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
458
|
+
selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
|
|
459
|
+
layout?: "fixed" | "auto" | undefined;
|
|
460
|
+
striped?: boolean | undefined;
|
|
461
|
+
isSticky?: boolean | undefined;
|
|
462
|
+
stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
|
|
463
|
+
isScrollable?: boolean | undefined;
|
|
464
|
+
hasStickyHeader?: boolean | undefined;
|
|
465
|
+
isInStickyRow?: boolean | undefined;
|
|
466
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
415
467
|
} & {};
|
|
416
468
|
get classNames(): string;
|
|
417
469
|
}
|