@box/blueprint-web 8.5.3 → 8.6.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/lib-esm/accordion/accordion.d.ts +19 -19
- package/lib-esm/accordion/accordion.js +11 -11
- package/lib-esm/accordion/index.d.ts +2 -2
- package/lib-esm/accordion/types.d.ts +48 -49
- package/lib-esm/actionable-inline-notice/actionable-inline-notice.d.ts +2 -3
- package/lib-esm/actionable-inline-notice/index.d.ts +17 -18
- package/lib-esm/actionable-inline-notice/types.d.ts +21 -21
- package/lib-esm/avatar/avatar.d.ts +29 -30
- package/lib-esm/avatar/consts.d.ts +6 -6
- package/lib-esm/avatar/index.d.ts +2 -2
- package/lib-esm/avatar/types.d.ts +36 -36
- package/lib-esm/badge/base-badge.d.ts +9 -10
- package/lib-esm/badge/icon-badge.d.ts +7 -7
- package/lib-esm/badge/index.d.ts +3 -3
- package/lib-esm/badge/numeric-badge.d.ts +11 -11
- package/lib-esm/badge/status-badge.d.ts +7 -7
- package/lib-esm/badge/types.d.ts +15 -15
- package/lib-esm/badge/utils/useSingleChildCheck.d.ts +2 -2
- package/lib-esm/branding-styles/branding-styles.d.ts +2 -2
- package/lib-esm/branding-styles/index.d.ts +3 -3
- package/lib-esm/branding-styles/types.d.ts +4 -4
- package/lib-esm/branding-styles/useCustomBranding.d.ts +1 -1
- package/lib-esm/branding-styles/utils/createTheme.d.ts +69 -69
- package/lib-esm/branding-styles/utils/theme.d.ts +41 -41
- package/lib-esm/branding-styles/utils/variables.d.ts +117 -117
- package/lib-esm/button/button.d.ts +7 -8
- package/lib-esm/button/index.d.ts +2 -2
- package/lib-esm/button/types.d.ts +8 -8
- package/lib-esm/button-wrapper/button-wrapper.d.ts +7 -7
- package/lib-esm/button-wrapper/index.d.ts +1 -1
- package/lib-esm/card/card.d.ts +5 -6
- package/lib-esm/card/card.js +2 -2
- package/lib-esm/card/index.d.ts +2 -2
- package/lib-esm/card/types.d.ts +10 -10
- package/lib-esm/card-tooltip/card-tooltip.d.ts +12 -12
- package/lib-esm/card-tooltip/card-tooltip.js +9 -9
- package/lib-esm/card-tooltip/index.d.ts +2 -2
- package/lib-esm/card-tooltip/types.d.ts +30 -30
- package/lib-esm/checkbox/checkbox-item.d.ts +4 -5
- package/lib-esm/checkbox/checkbox-item.js +1 -1
- package/lib-esm/checkbox/index.d.ts +6 -7
- package/lib-esm/checkbox/types.d.ts +31 -31
- package/lib-esm/collapsible/collapsible-section.d.ts +9 -10
- package/lib-esm/collapsible/index.d.ts +2 -2
- package/lib-esm/collapsible/types.d.ts +11 -12
- package/lib-esm/combobox/chips-group.d.ts +2 -2
- package/lib-esm/combobox/chips-group.types.d.ts +5 -5
- package/lib-esm/combobox/combobox.d.ts +14 -14
- package/lib-esm/combobox/combobox.js +4 -4
- package/lib-esm/combobox/index.d.ts +2 -2
- package/lib-esm/combobox/types.d.ts +240 -241
- package/lib-esm/combobox-group/combobox-group-combobox.d.ts +2 -3
- package/lib-esm/combobox-group/combobox-group-context.d.ts +24 -24
- package/lib-esm/combobox-group/combobox-group-select.d.ts +2 -3
- package/lib-esm/combobox-group/combobox-group.d.ts +6 -7
- package/lib-esm/combobox-group/index.d.ts +2 -2
- package/lib-esm/combobox-group/types.d.ts +21 -22
- package/lib-esm/content-card/content-card-body.d.ts +3 -4
- package/lib-esm/content-card/content-card-footer.d.ts +2 -3
- package/lib-esm/content-card/content-card-image.d.ts +2 -3
- package/lib-esm/content-card/content-card-title.d.ts +3 -4
- package/lib-esm/content-card/content-card.d.ts +10 -11
- package/lib-esm/content-card/index.d.ts +2 -2
- package/lib-esm/content-card/types.d.ts +27 -28
- package/lib-esm/content-field/content-field.d.ts +3 -4
- package/lib-esm/content-field/index.d.ts +2 -2
- package/lib-esm/content-field/messages.d.ts +7 -7
- package/lib-esm/content-field/types.d.ts +35 -35
- package/lib-esm/data-table/cell/sticky-cell.d.ts +6 -6
- package/lib-esm/data-table/data-table-wrapper.d.ts +5 -5
- package/lib-esm/data-table/data-table.d.ts +2 -3
- package/lib-esm/data-table/index.d.ts +5 -6
- package/lib-esm/date-picker/date-picker.d.ts +2 -3
- package/lib-esm/date-picker/index.d.ts +2 -2
- package/lib-esm/date-picker/types.d.ts +35 -36
- package/lib-esm/divider/divider.d.ts +2 -3
- package/lib-esm/divider/index.d.ts +1 -1
- package/lib-esm/empty-state/empty-state.d.ts +23 -24
- package/lib-esm/empty-state/empty-state.js +8 -8
- package/lib-esm/empty-state/index.d.ts +2 -2
- package/lib-esm/empty-state/types.d.ts +19 -19
- package/lib-esm/ghost/ghost.d.ts +26 -27
- package/lib-esm/ghost/ghost.js +9 -9
- package/lib-esm/ghost/index.d.ts +1 -1
- package/lib-esm/grid-list-item/grid-list.d.ts +2 -3
- package/lib-esm/grid-list-item/index.d.ts +68 -69
- package/lib-esm/grid-list-item/index.js +50 -50
- package/lib-esm/grid-list-item/types.d.ts +10 -10
- package/lib-esm/guided-tooltip/guided-tooltip-body.d.ts +9 -10
- package/lib-esm/guided-tooltip/guided-tooltip-body.js +4 -4
- package/lib-esm/guided-tooltip/guided-tooltip-footer.d.ts +27 -28
- package/lib-esm/guided-tooltip/guided-tooltip-footer.js +9 -9
- package/lib-esm/guided-tooltip/guided-tooltip-icon.d.ts +5 -5
- package/lib-esm/guided-tooltip/guided-tooltip-icon.js +2 -2
- package/lib-esm/guided-tooltip/guided-tooltip-illustration.d.ts +5 -5
- package/lib-esm/guided-tooltip/guided-tooltip-illustration.js +2 -2
- package/lib-esm/guided-tooltip/guided-tooltip-title.d.ts +5 -5
- package/lib-esm/guided-tooltip/guided-tooltip-title.js +2 -2
- package/lib-esm/guided-tooltip/guided-tooltip.d.ts +26 -27
- package/lib-esm/guided-tooltip/guided-tooltip.js +11 -11
- package/lib-esm/guided-tooltip/index.d.ts +3 -3
- package/lib-esm/guided-tooltip/types.d.ts +102 -102
- package/lib-esm/guided-tooltip/utils/guided-tooltip-context.d.ts +10 -11
- package/lib-esm/icon-dual-state-button/icon-dual-state-button.d.ts +2 -3
- package/lib-esm/icon-dual-state-button/index.d.ts +2 -2
- package/lib-esm/icon-dual-state-button/types.d.ts +41 -41
- package/lib-esm/icon-toggle-button/icon-toggle-button.d.ts +3 -4
- package/lib-esm/icon-toggle-button/index.d.ts +2 -2
- package/lib-esm/icon-toggle-button/types.d.ts +28 -28
- package/lib-esm/index.css +10 -2
- package/lib-esm/index.d.ts +76 -76
- package/lib-esm/inline-notice/inline-notice.d.ts +17 -17
- package/lib-esm/inline-notice/inline-notice.js +2 -2
- package/lib-esm/inline-table/index.d.ts +2 -2
- package/lib-esm/inline-table/inline-table.d.ts +10 -10
- package/lib-esm/inline-table/types.d.ts +13 -14
- package/lib-esm/input-chip/index.d.ts +2 -2
- package/lib-esm/input-chip/input-chip.d.ts +3 -3
- package/lib-esm/input-chip/types.d.ts +25 -25
- package/lib-esm/large-list-item/index.d.ts +81 -82
- package/lib-esm/large-list-item/index.js +57 -57
- package/lib-esm/large-list-item/large-list-item-description.d.ts +3 -4
- package/lib-esm/large-list-item/large-list-item-snippet.d.ts +2 -3
- package/lib-esm/large-list-item/large-list.d.ts +2 -3
- package/lib-esm/large-list-item/types.d.ts +15 -15
- package/lib-esm/list-item/cell/action-cell.d.ts +13 -13
- package/lib-esm/list-item/cell/action-cell.js +5 -5
- package/lib-esm/list-item/cell/cell.d.ts +13 -14
- package/lib-esm/list-item/cell/cell.js +3 -3
- package/lib-esm/list-item/drop-indicator.d.ts +2 -3
- package/lib-esm/list-item/index.d.ts +22 -25
- package/lib-esm/list-item/list-item.d.ts +22 -25
- package/lib-esm/list-item/row.d.ts +12 -12
- package/lib-esm/list-item/row.js +3 -3
- package/lib-esm/list-item/table-body.d.ts +14 -16
- package/lib-esm/list-item/table-body.js +3 -3
- package/lib-esm/list-item/table-column.d.ts +16 -16
- package/lib-esm/list-item/table-column.js +3 -3
- package/lib-esm/list-item/table-header.d.ts +12 -12
- package/lib-esm/list-item/table-header.js +3 -3
- package/lib-esm/list-item/table.d.ts +7 -8
- package/lib-esm/list-item/table.js +3 -3
- package/lib-esm/loading-indicator/loading-indicator.d.ts +17 -17
- package/lib-esm/modal/index.d.ts +2 -2
- package/lib-esm/modal/modal-body.d.ts +5 -6
- package/lib-esm/modal/modal-body.js +2 -2
- package/lib-esm/modal/modal-close.d.ts +5 -6
- package/lib-esm/modal/modal-close.js +2 -2
- package/lib-esm/modal/modal-content.d.ts +7 -8
- package/lib-esm/modal/modal-content.js +2 -2
- package/lib-esm/modal/modal-footer.d.ts +21 -22
- package/lib-esm/modal/modal-footer.js +3 -3
- package/lib-esm/modal/modal-header.d.ts +5 -6
- package/lib-esm/modal/modal-header.js +2 -2
- package/lib-esm/modal/modal-scrollable-container.d.ts +8 -9
- package/lib-esm/modal/modal-scrollable-container.js +3 -3
- package/lib-esm/modal/modal-title.d.ts +5 -6
- package/lib-esm/modal/modal-title.js +2 -2
- package/lib-esm/modal/modal-trigger.d.ts +5 -6
- package/lib-esm/modal/modal-trigger.js +2 -2
- package/lib-esm/modal/modal.d.ts +53 -54
- package/lib-esm/modal/modal.js +22 -22
- package/lib-esm/modal/types.d.ts +55 -55
- package/lib-esm/navigation-menu/index.d.ts +15 -16
- package/lib-esm/navigation-menu/navigation-menu-content.d.ts +6 -7
- package/lib-esm/navigation-menu/navigation-menu-content.js +2 -2
- package/lib-esm/navigation-menu/navigation-menu-item.d.ts +13 -13
- package/lib-esm/navigation-menu/navigation-menu-item.js +8 -8
- package/lib-esm/navigation-menu/navigation-menu-link.d.ts +6 -6
- package/lib-esm/navigation-menu/navigation-menu-link.js +2 -2
- package/lib-esm/navigation-menu/navigation-menu-root.d.ts +9 -9
- package/lib-esm/navigation-menu/navigation-menu-root.js +2 -2
- package/lib-esm/navigation-menu/navigation-menu-separator.d.ts +1 -2
- package/lib-esm/navigation-menu/navigation-menu-trigger.d.ts +6 -7
- package/lib-esm/navigation-menu/navigation-menu-trigger.js +2 -2
- package/lib-esm/page/index.d.ts +16 -17
- package/lib-esm/page/page-content.d.ts +2 -3
- package/lib-esm/page/page-context.d.ts +27 -27
- package/lib-esm/page/page-global-header-search-container.d.ts +2 -2
- package/lib-esm/page/page-global-header-side-content-container.d.ts +2 -2
- package/lib-esm/page/page-global-header.d.ts +12 -13
- package/lib-esm/page/page-navigation.d.ts +2 -3
- package/lib-esm/page/page-root.d.ts +2 -3
- package/lib-esm/page/types.d.ts +23 -23
- package/lib-esm/page-section/index.d.ts +6 -7
- package/lib-esm/page-section/page-section-container.d.ts +1 -2
- package/lib-esm/page-section/page-section-content.d.ts +1 -2
- package/lib-esm/page-section/page-section-divider.d.ts +1 -2
- package/lib-esm/page-section/page-section-header.d.ts +1 -2
- package/lib-esm/page-section/page-section.d.ts +1 -2
- package/lib-esm/password-input/index.d.ts +2 -2
- package/lib-esm/password-input/password-input.d.ts +9 -10
- package/lib-esm/password-input/types.d.ts +16 -16
- package/lib-esm/primitives/base-button/base-button-context.d.ts +3 -4
- package/lib-esm/primitives/base-button/base-button-icon.d.ts +2 -3
- package/lib-esm/primitives/base-button/base-button-label.d.ts +2 -3
- package/lib-esm/primitives/base-button/base-button.d.ts +1 -2
- package/lib-esm/primitives/base-button/index.d.ts +5 -6
- package/lib-esm/primitives/base-button/types.d.ts +28 -28
- package/lib-esm/primitives/base-button/utils.d.ts +8 -8
- package/lib-esm/primitives/base-inline-notice/base-inline-notice-actions.d.ts +31 -32
- package/lib-esm/primitives/base-inline-notice/base-inline-notice-content-container.d.ts +6 -7
- package/lib-esm/primitives/base-inline-notice/base-inline-notice-content-container.js +3 -3
- package/lib-esm/primitives/base-inline-notice/base-inline-notice-content.d.ts +5 -6
- package/lib-esm/primitives/base-inline-notice/base-inline-notice-icon.d.ts +2 -3
- package/lib-esm/primitives/base-inline-notice/base-inline-notice.d.ts +2 -3
- package/lib-esm/primitives/base-inline-notice/index.d.ts +25 -26
- package/lib-esm/primitives/base-inline-notice/types.d.ts +39 -39
- package/lib-esm/primitives/base-text-input/base-text-input.d.ts +8 -9
- package/lib-esm/primitives/base-text-input/base-text-input.js +5 -5
- package/lib-esm/primitives/base-text-input/index.d.ts +2 -2
- package/lib-esm/primitives/base-text-input/types.d.ts +24 -25
- package/lib-esm/primitives/calendar/calendar.d.ts +2 -3
- package/lib-esm/primitives/calendar/calendar.js +3 -3
- package/lib-esm/primitives/calendar/classes.util.d.ts +7 -7
- package/lib-esm/primitives/calendar/from-absolute.util.d.ts +6 -6
- package/lib-esm/primitives/calendar/from-absolute.util.js +4 -4
- package/lib-esm/primitives/calendar/get-local-timezone.util.d.ts +1 -1
- package/lib-esm/primitives/calendar/index.d.ts +11 -11
- package/lib-esm/primitives/calendar/parse-absolute-to-local.util.d.ts +5 -5
- package/lib-esm/primitives/calendar/parse-absolute-to-local.util.js +3 -3
- package/lib-esm/primitives/calendar/parse-absolute.util.d.ts +7 -7
- package/lib-esm/primitives/calendar/parse-absolute.util.js +5 -5
- package/lib-esm/primitives/calendar/parse-date.util.d.ts +7 -7
- package/lib-esm/primitives/calendar/parse-date.util.js +4 -4
- package/lib-esm/primitives/calendar/to-calendar-date-time.util.d.ts +8 -8
- package/lib-esm/primitives/calendar/to-calendar-date-time.util.js +5 -5
- package/lib-esm/primitives/calendar/to-calendar-date.util.d.ts +7 -7
- package/lib-esm/primitives/calendar/to-calendar-date.util.js +4 -4
- package/lib-esm/primitives/calendar/to-zoned.util.d.ts +9 -9
- package/lib-esm/primitives/calendar/to-zoned.util.js +6 -6
- package/lib-esm/primitives/calendar/types.d.ts +17 -17
- package/lib-esm/primitives/chips/chip-dropdown-indicator.d.ts +1 -2
- package/lib-esm/primitives/chips/chip-icon.d.ts +3 -3
- package/lib-esm/primitives/chips/chip-label.d.ts +2 -3
- package/lib-esm/primitives/chips/chip-status.d.ts +2 -3
- package/lib-esm/primitives/chips/chip.d.ts +2 -3
- package/lib-esm/primitives/chips/chips-group.d.ts +2 -3
- package/lib-esm/primitives/chips/filter-chip/filter-chip-button.d.ts +7 -8
- package/lib-esm/primitives/chips/filter-chip/filter-chip-button.js +3 -3
- package/lib-esm/primitives/chips/filter-chip/filter-chip-group-context.d.ts +10 -11
- package/lib-esm/primitives/chips/filter-chip/filter-chip.d.ts +13 -14
- package/lib-esm/primitives/chips/filter-chip/filter-chip.js +6 -6
- package/lib-esm/primitives/chips/filter-chip/filter-combo-chip.d.ts +27 -27
- package/lib-esm/primitives/chips/filter-chip/filter-combo-chip.js +3 -3
- package/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.d.ts +15 -16
- package/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.js +5 -5
- package/lib-esm/primitives/chips/filter-chip/index.d.ts +20 -21
- package/lib-esm/primitives/chips/types.d.ts +26 -27
- package/lib-esm/primitives/context-menu/context-menu-item.d.ts +16 -17
- package/lib-esm/primitives/context-menu/context-menu-item.js +7 -7
- package/lib-esm/primitives/context-menu/context-menu-items-separator.d.ts +4 -5
- package/lib-esm/primitives/context-menu/context-menu-items-separator.js +2 -2
- package/lib-esm/primitives/context-menu/context-menu-menu-content.d.ts +10 -11
- package/lib-esm/primitives/context-menu/context-menu-menu-content.js +2 -2
- package/lib-esm/primitives/context-menu/context-menu-menu-root.d.ts +7 -7
- package/lib-esm/primitives/context-menu/context-menu-menu-root.js +3 -3
- package/lib-esm/primitives/context-menu/context-menu-menu-trigger.d.ts +7 -8
- package/lib-esm/primitives/context-menu/context-menu-menu-trigger.js +3 -3
- package/lib-esm/primitives/context-menu/context-menu-sub-menu-content.d.ts +11 -12
- package/lib-esm/primitives/context-menu/context-menu-sub-menu-content.js +3 -3
- package/lib-esm/primitives/context-menu/context-menu-sub-menu-root.d.ts +10 -10
- package/lib-esm/primitives/context-menu/context-menu-sub-menu-root.js +3 -3
- package/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.d.ts +17 -18
- package/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.js +8 -8
- package/lib-esm/primitives/context-menu/index.d.ts +26 -27
- package/lib-esm/primitives/date-i18n-provider/date-i18n-provider.d.ts +15 -15
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.d.ts +7 -8
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-content.d.ts +11 -12
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-content.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-group.d.ts +7 -8
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-group.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-item.d.ts +6 -7
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-item.js +2 -2
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.d.ts +7 -8
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.d.ts +7 -8
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-root.d.ts +9 -9
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-root.js +2 -2
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-separator.d.ts +1 -2
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.d.ts +11 -12
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.d.ts +10 -10
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.js +3 -3
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.d.ts +16 -17
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.js +7 -7
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.d.ts +7 -8
- package/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.js +3 -3
- package/lib-esm/primitives/dropdown-menu/index.d.ts +29 -30
- package/lib-esm/primitives/icon-button/icon-button.d.ts +1 -2
- package/lib-esm/primitives/icon-button/index.d.ts +2 -2
- package/lib-esm/primitives/icon-button/types.d.ts +42 -42
- package/lib-esm/primitives/icon-button/utils.d.ts +3 -3
- package/lib-esm/primitives/inline-error/inline-error.d.ts +3 -4
- package/lib-esm/primitives/inline-error/types.d.ts +4 -5
- package/lib-esm/primitives/link/index.d.ts +2 -2
- package/lib-esm/primitives/link/link.d.ts +2 -3
- package/lib-esm/primitives/link/types.d.ts +39 -39
- package/lib-esm/primitives/notification/index.d.ts +11 -12
- package/lib-esm/primitives/notification/notification-button.d.ts +8 -8
- package/lib-esm/primitives/notification/notification-provider.d.ts +39 -39
- package/lib-esm/primitives/notification/notification-provider.js +5 -5
- package/lib-esm/primitives/notification/notification.viewport.d.ts +8 -9
- package/lib-esm/primitives/notification/notification.viewport.js +4 -4
- package/lib-esm/primitives/notification/private-notification-element.d.ts +33 -33
- package/lib-esm/primitives/notification/private-notification-element.js +7 -7
- package/lib-esm/primitives/page-header/index.d.ts +2 -2
- package/lib-esm/primitives/page-header/page-header.d.ts +11 -12
- package/lib-esm/primitives/page-header/types.d.ts +8 -8
- package/lib-esm/primitives/popover/index.d.ts +19 -20
- package/lib-esm/primitives/popover/popover-anchor.d.ts +7 -8
- package/lib-esm/primitives/popover/popover-anchor.js +3 -3
- package/lib-esm/primitives/popover/popover-close.d.ts +7 -8
- package/lib-esm/primitives/popover/popover-close.js +3 -3
- package/lib-esm/primitives/popover/popover-content-container.d.ts +11 -12
- package/lib-esm/primitives/popover/popover-content-container.js +3 -3
- package/lib-esm/primitives/popover/popover-focus-utils.d.ts +1 -1
- package/lib-esm/primitives/popover/popover-focus-utils.js +3 -3
- package/lib-esm/primitives/popover/popover-footer.d.ts +6 -7
- package/lib-esm/primitives/popover/popover-footer.js +2 -2
- package/lib-esm/primitives/popover/popover-main-content.d.ts +6 -7
- package/lib-esm/primitives/popover/popover-main-content.js +2 -2
- package/lib-esm/primitives/popover/popover-overflow-context.d.ts +6 -6
- package/lib-esm/primitives/popover/popover-root.d.ts +9 -9
- package/lib-esm/primitives/popover/popover-root.js +2 -2
- package/lib-esm/primitives/popover/popover-trigger.d.ts +8 -9
- package/lib-esm/primitives/popover/popover-trigger.js +4 -4
- package/lib-esm/primitives/select-menu-grid/index.d.ts +12 -12
- package/lib-esm/primitives/select-menu-grid/select-menu-grid-option.d.ts +131 -132
- package/lib-esm/primitives/select-menu-grid/select-menu-grid.d.ts +2 -3
- package/lib-esm/primitives/select-menu-grid/types.d.ts +34 -35
- package/lib-esm/primitives/slot.d.ts +5 -5
- package/lib-esm/primitives/supplementary-fonts/get-supplementary-font-faces-config.d.ts +5 -5
- package/lib-esm/primitives/supplementary-fonts/get-supplementary-font-faces-config.js +2 -2
- package/lib-esm/primitives/supplementary-fonts/index.d.ts +4 -4
- package/lib-esm/primitives/supplementary-fonts/supplementary-fonts.d.ts +5 -6
- package/lib-esm/primitives/supplementary-fonts/types.d.ts +2 -2
- package/lib-esm/primitives/supplementary-fonts/useSupplementaryFonts.hook.d.ts +2 -2
- package/lib-esm/primitives/tabs/content-switch-tab.d.ts +2 -3
- package/lib-esm/primitives/tabs/default-tab.d.ts +2 -3
- package/lib-esm/primitives/tabs/index.d.ts +16 -17
- package/lib-esm/primitives/tabs/index.js +6 -6
- package/lib-esm/primitives/tabs/tab-list.d.ts +2 -3
- package/lib-esm/primitives/tabs/tab-panel.d.ts +2 -3
- package/lib-esm/primitives/tabs/tab.d.ts +2 -2
- package/lib-esm/primitives/tabs/tabs.d.ts +2 -2
- package/lib-esm/primitives/tabs/types.d.ts +14 -14
- package/lib-esm/primitives/tabs/use-tabs.d.ts +1 -1
- package/lib-esm/radio-group/index.d.ts +7 -8
- package/lib-esm/radio-group/radio-group.d.ts +2 -3
- package/lib-esm/radio-group/radio-item.d.ts +2 -3
- package/lib-esm/radio-group/types.d.ts +14 -14
- package/lib-esm/radio-tiles/index.d.ts +3 -3
- package/lib-esm/radio-tiles/radio-tiles-option.d.ts +2 -2
- package/lib-esm/radio-tiles/radio-tiles.context.d.ts +9 -9
- package/lib-esm/radio-tiles/radio-tiles.d.ts +4 -4
- package/lib-esm/radio-tiles/types.d.ts +48 -48
- package/lib-esm/search-input/index.d.ts +12 -13
- package/lib-esm/search-input/index.js +2 -2
- package/lib-esm/search-input/search-input-action-button.d.ts +5 -6
- package/lib-esm/search-input/search-input-controlled/index.d.ts +2 -2
- package/lib-esm/search-input/search-input-controlled/search-input-controlled.d.ts +2 -3
- package/lib-esm/search-input/search-input-controlled/types.d.ts +21 -21
- package/lib-esm/search-input/search-input.d.ts +9 -10
- package/lib-esm/search-input/search-input.js +4 -4
- package/lib-esm/search-input/types.d.ts +50 -50
- package/lib-esm/select/index.d.ts +2 -2
- package/lib-esm/select/select.d.ts +42 -43
- package/lib-esm/select/select.js +29 -29
- package/lib-esm/select/types.d.ts +106 -106
- package/lib-esm/side-panel/index.d.ts +2 -2
- package/lib-esm/side-panel/side-panel-close.d.ts +5 -6
- package/lib-esm/side-panel/side-panel-close.js +2 -2
- package/lib-esm/side-panel/side-panel-content.d.ts +13 -14
- package/lib-esm/side-panel/side-panel-content.js +4 -4
- package/lib-esm/side-panel/side-panel-footer.d.ts +21 -22
- package/lib-esm/side-panel/side-panel-footer.js +3 -3
- package/lib-esm/side-panel/side-panel-header.d.ts +5 -6
- package/lib-esm/side-panel/side-panel-header.js +2 -2
- package/lib-esm/side-panel/side-panel-overlay.d.ts +6 -7
- package/lib-esm/side-panel/side-panel-overlay.js +3 -3
- package/lib-esm/side-panel/side-panel-scrollable-container.d.ts +6 -7
- package/lib-esm/side-panel/side-panel-scrollable-container.js +3 -3
- package/lib-esm/side-panel/side-panel-trigger.d.ts +5 -6
- package/lib-esm/side-panel/side-panel-trigger.js +2 -2
- package/lib-esm/side-panel/side-panel.d.ts +27 -28
- package/lib-esm/side-panel/types.d.ts +49 -49
- package/lib-esm/side-panel/variant-context.d.ts +6 -6
- package/lib-esm/slider/index.d.ts +2 -2
- package/lib-esm/slider/slider-incrementer.d.ts +5 -5
- package/lib-esm/slider/slider-incrementer.js +18 -5
- package/lib-esm/slider/slider-incrementer.module.js +1 -1
- package/lib-esm/slider/slider-range.d.ts +5 -6
- package/lib-esm/slider/slider-range.js +2 -2
- package/lib-esm/slider/slider.d.ts +4 -5
- package/lib-esm/slider/slider.js +7 -2
- package/lib-esm/slider/slider.module.js +1 -1
- package/lib-esm/slider/types.d.ts +181 -181
- package/lib-esm/small-list-item/index.d.ts +56 -57
- package/lib-esm/small-list-item/index.js +38 -38
- package/lib-esm/small-list-item/small-list.d.ts +2 -3
- package/lib-esm/small-list-item/types.d.ts +8 -8
- package/lib-esm/split-button/SplitTriggerButton.d.ts +10 -11
- package/lib-esm/split-button/index.d.ts +2 -2
- package/lib-esm/split-button/split-button.d.ts +25 -26
- package/lib-esm/split-button/types.d.ts +43 -44
- package/lib-esm/status/consts.d.ts +4 -4
- package/lib-esm/status/index.d.ts +2 -2
- package/lib-esm/status/status.d.ts +2 -3
- package/lib-esm/status/types.d.ts +31 -31
- package/lib-esm/switch/index.d.ts +7 -8
- package/lib-esm/switch/switch-item.d.ts +4 -5
- package/lib-esm/switch/switch-item.js +1 -1
- package/lib-esm/switch/switch-legend.d.ts +2 -2
- package/lib-esm/switch/types.d.ts +31 -31
- package/lib-esm/text/index.d.ts +2 -2
- package/lib-esm/text/text.d.ts +2 -3
- package/lib-esm/text/types.d.ts +37 -37
- package/lib-esm/text-area/index.d.ts +2 -2
- package/lib-esm/text-area/text-area-autosize/text-area-autosize.d.ts +2 -3
- package/lib-esm/text-area/text-area-autosize/text-area-autosize.js +4 -4
- package/lib-esm/text-area/text-area-autosize/types.d.ts +21 -21
- package/lib-esm/text-area/text-area.d.ts +11 -12
- package/lib-esm/text-area/types.d.ts +19 -20
- package/lib-esm/text-button/index.d.ts +2 -2
- package/lib-esm/text-button/text-button.d.ts +1 -2
- package/lib-esm/text-button/types.d.ts +24 -24
- package/lib-esm/text-input/index.d.ts +2 -2
- package/lib-esm/text-input/text-input.d.ts +1 -2
- package/lib-esm/text-input/types.d.ts +9 -9
- package/lib-esm/text-toggle-button/index.d.ts +2 -2
- package/lib-esm/text-toggle-button/text-toggle-button.d.ts +2 -3
- package/lib-esm/text-toggle-button/types.d.ts +7 -7
- package/lib-esm/toolbar/index.d.ts +55 -56
- package/lib-esm/toolbar/index.js +35 -35
- package/lib-esm/toolbar/toolbar-button.d.ts +2 -3
- package/lib-esm/toolbar/toolbar-dropdown-indicator.d.ts +2 -3
- package/lib-esm/toolbar/toolbar-icon.d.ts +3 -3
- package/lib-esm/toolbar/toolbar-root.d.ts +2 -3
- package/lib-esm/toolbar/toolbar-separator.d.ts +2 -3
- package/lib-esm/toolbar/toolbar-toggle-group.d.ts +2 -3
- package/lib-esm/toolbar/toolbar-toggle-item.d.ts +2 -3
- package/lib-esm/toolbar/toolbar-trigger-button.d.ts +2 -3
- package/lib-esm/toolbar/types.d.ts +41 -41
- package/lib-esm/tooltip/index.d.ts +2 -2
- package/lib-esm/tooltip/tooltip.d.ts +16 -16
- package/lib-esm/tooltip/tooltip.js +14 -14
- package/lib-esm/tooltip/types.d.ts +46 -46
- package/lib-esm/trigger-button/index.d.ts +1 -1
- package/lib-esm/trigger-button/trigger-button.d.ts +28 -29
- package/lib-esm/trigger-button/trigger-button.js +3 -3
- package/lib-esm/types/input-value-props.d.ts +22 -22
- package/lib-esm/types/modify.d.ts +1 -1
- package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-actions.d.ts +3 -4
- package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-header.d.ts +2 -3
- package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-subtitle.d.ts +3 -4
- package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-thumbnail.d.ts +2 -3
- package/lib-esm/util-components/base-grid-list-item/base-grid-list-item.d.ts +3 -4
- package/lib-esm/util-components/base-grid-list-item/base-grid-list.d.ts +3 -4
- package/lib-esm/util-components/base-grid-list-item/index.d.ts +36 -37
- package/lib-esm/util-components/base-grid-list-item/index.js +18 -18
- package/lib-esm/util-components/base-grid-list-item/static-grid-list-item.d.ts +4 -5
- package/lib-esm/util-components/base-grid-list-item/static-grid-list.d.ts +2 -3
- package/lib-esm/util-components/base-grid-list-item/types.d.ts +47 -47
- package/lib-esm/util-components/base-grid-list-item/utils/rac-button.d.ts +14 -14
- package/lib-esm/util-components/base-grid-list-item/utils/rac-button.js +6 -6
- package/lib-esm/util-components/base-grid-list-item/utils/rac-tooltip.d.ts +7 -7
- package/lib-esm/util-components/base-toggle-button/base-toggle-button.d.ts +2 -3
- package/lib-esm/util-components/base-toggle-button/types.d.ts +17 -17
- package/lib-esm/util-components/focus-trap/focus-trap.d.ts +2 -2
- package/lib-esm/util-components/focus-trap/index.d.ts +1 -1
- package/lib-esm/util-components/focus-trap/types.d.ts +8 -8
- package/lib-esm/util-components/interactive-icon/index.d.ts +1 -1
- package/lib-esm/util-components/interactive-icon/interactive-icon.d.ts +2 -3
- package/lib-esm/util-components/interactive-icon/types.d.ts +9 -9
- package/lib-esm/util-components/labelable/index.d.ts +1 -1
- package/lib-esm/util-components/labelable/types.d.ts +15 -15
- package/lib-esm/util-components/labelable/useLabelable.d.ts +2 -3
- package/lib-esm/util-components/legend/index.d.ts +1 -1
- package/lib-esm/util-components/legend/legend.d.ts +2 -2
- package/lib-esm/util-components/legend/types.d.ts +18 -18
- package/lib-esm/util-components/list-checkbox/index.d.ts +1 -1
- package/lib-esm/util-components/list-checkbox/list-checkbox.d.ts +13 -14
- package/lib-esm/util-components/list-checkbox/list-checkbox.js +6 -6
- package/lib-esm/util-components/menu-item-sections/menu-item-sections.d.ts +18 -19
- package/lib-esm/util-components/menu-item-sections/menu-item-sections.js +4 -4
- package/lib-esm/util-components/scrollable-container/scrollable-container.d.ts +31 -31
- package/lib-esm/util-components/search-term-string/index.d.ts +1 -1
- package/lib-esm/util-components/search-term-string/search-term-string.d.ts +3 -3
- package/lib-esm/util-components/search-term-string/types.d.ts +4 -4
- package/lib-esm/util-components/text-with-info-badge/index.d.ts +1 -1
- package/lib-esm/util-components/text-with-info-badge/text-with-info-badge.d.ts +2 -2
- package/lib-esm/util-components/text-with-info-badge/types.d.ts +15 -15
- package/lib-esm/utils/commonTypes.d.ts +2 -2
- package/lib-esm/utils/composeEventHandlers.d.ts +4 -4
- package/lib-esm/utils/createSetRefWithCallback.d.ts +10 -10
- package/lib-esm/utils/debounce.d.ts +4 -4
- package/lib-esm/utils/filterNonHtmlProps.d.ts +2 -2
- package/lib-esm/utils/getButtonOptions.d.ts +7 -7
- package/lib-esm/utils/isDefined.d.ts +1 -1
- package/lib-esm/utils/keyboardUtils.d.ts +8 -8
- package/lib-esm/utils/ownerWindow.d.ts +1 -1
- package/lib-esm/utils/processString.d.ts +13 -13
- package/lib-esm/utils/scroll-context.d.ts +12 -12
- package/lib-esm/utils/switchCase.d.ts +1 -1
- package/lib-esm/utils/use-debounce.d.ts +1 -1
- package/lib-esm/utils/useBreakpoint.d.ts +17 -17
- package/lib-esm/utils/useBreakpoint.js +8 -8
- package/lib-esm/utils/useCallbackRef.d.ts +6 -6
- package/lib-esm/utils/useCallbackRef.js +3 -3
- package/lib-esm/utils/useControllableState.d.ts +8 -8
- package/lib-esm/utils/useEnhancedEffect.d.ts +7 -7
- package/lib-esm/utils/useEnhancedEffect.js +4 -4
- package/lib-esm/utils/useForkRef.d.ts +12 -12
- package/lib-esm/utils/useForkRef.js +12 -12
- package/lib-esm/utils/useFullTextTooltip.d.ts +16 -16
- package/lib-esm/utils/useIsTriggerInteractive.d.ts +4 -5
- package/lib-esm/utils/useIsTriggerInteractive.js +2 -2
- package/lib-esm/utils/useMedia.d.ts +1 -1
- package/lib-esm/utils/useMobile.d.ts +1 -1
- package/lib-esm/utils/useNamedSlots.hook.d.ts +2 -2
- package/lib-esm/utils/useSubMenuFocus.hook.d.ts +2 -2
- package/lib-esm/utils/useUniqueId.d.ts +5 -5
- package/lib-esm/visually-hidden/index.d.ts +1 -1
- package/lib-esm/visually-hidden/visually-hidden.d.ts +3 -4
- package/package.json +2 -2
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import type * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
export declare const TooltipVariants: readonly ["standard", "error"];
|
|
4
|
-
export type TooltipVariant = (typeof TooltipVariants)[number];
|
|
5
|
-
export interface TooltipContentProps extends RadixTooltip.TooltipContentProps {
|
|
6
|
-
variant?: TooltipVariant;
|
|
7
|
-
}
|
|
8
|
-
export interface PropsOnlyChildren {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export interface TooltipProps extends Omit<React.ComponentProps<typeof RadixTooltip.TooltipContent>, 'content'> {
|
|
12
|
-
/** The anchor for the tooltip. */
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
/** The content of the tooltip. */
|
|
15
|
-
content: React.ReactNode;
|
|
16
|
-
/** The visual style of the button. */
|
|
17
|
-
variant?: TooltipVariant;
|
|
18
|
-
/** Event handler called when the open state of the tooltip changes. */
|
|
19
|
-
onOpenChange?: RadixTooltip.TooltipProps['onOpenChange'];
|
|
20
|
-
/** The controlled open state of the tooltip. Must be used in conjunction with onOpenChange. */
|
|
21
|
-
open?: RadixTooltip.TooltipProps['open'];
|
|
22
|
-
/** The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. */
|
|
23
|
-
defaultOpen?: RadixTooltip.TooltipProps['defaultOpen'];
|
|
24
|
-
/** Used to force mounting when more control is needed. */
|
|
25
|
-
forceMount?: RadixTooltip.TooltipPortalProps['forceMount'];
|
|
26
|
-
/** Blueprint internal prop. Checks whether the trigger element is interactive to provide a warning if it's not interactive. Defaults to `true`. */
|
|
27
|
-
__checkInteractivity?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface TooltipProviderProps {
|
|
30
|
-
/** The rest of the application */
|
|
31
|
-
children: React.ReactNode;
|
|
32
|
-
/** The container on which the tooltip should be mounted. */
|
|
33
|
-
container?: RadixTooltip.TooltipPortalProps['container'];
|
|
34
|
-
/** Prevents tooltip content from remaining open when hovering. Disabling this has accessibility consequences. */
|
|
35
|
-
disableHoverableContent?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface ArrowProps {
|
|
38
|
-
variant: TooltipVariant;
|
|
39
|
-
}
|
|
40
|
-
export interface TooltipTriggerProps {
|
|
41
|
-
children?: React.ReactNode;
|
|
42
|
-
/** The controlled open state of the tooltip. */
|
|
43
|
-
open?: TooltipProps['open'];
|
|
44
|
-
/** Blueprint internal prop. Checks whether the trigger element is interactive to provide a warning if it's not interactive. Defaults to `true`. */
|
|
45
|
-
__checkInteractivity?: boolean;
|
|
46
|
-
}
|
|
1
|
+
import type * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export declare const TooltipVariants: readonly ["standard", "error"];
|
|
4
|
+
export type TooltipVariant = (typeof TooltipVariants)[number];
|
|
5
|
+
export interface TooltipContentProps extends RadixTooltip.TooltipContentProps {
|
|
6
|
+
variant?: TooltipVariant;
|
|
7
|
+
}
|
|
8
|
+
export interface PropsOnlyChildren {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface TooltipProps extends Omit<React.ComponentProps<typeof RadixTooltip.TooltipContent>, 'content'> {
|
|
12
|
+
/** The anchor for the tooltip. */
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
/** The content of the tooltip. */
|
|
15
|
+
content: React.ReactNode;
|
|
16
|
+
/** The visual style of the button. */
|
|
17
|
+
variant?: TooltipVariant;
|
|
18
|
+
/** Event handler called when the open state of the tooltip changes. */
|
|
19
|
+
onOpenChange?: RadixTooltip.TooltipProps['onOpenChange'];
|
|
20
|
+
/** The controlled open state of the tooltip. Must be used in conjunction with onOpenChange. */
|
|
21
|
+
open?: RadixTooltip.TooltipProps['open'];
|
|
22
|
+
/** The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. */
|
|
23
|
+
defaultOpen?: RadixTooltip.TooltipProps['defaultOpen'];
|
|
24
|
+
/** Used to force mounting when more control is needed. */
|
|
25
|
+
forceMount?: RadixTooltip.TooltipPortalProps['forceMount'];
|
|
26
|
+
/** Blueprint internal prop. Checks whether the trigger element is interactive to provide a warning if it's not interactive. Defaults to `true`. */
|
|
27
|
+
__checkInteractivity?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface TooltipProviderProps {
|
|
30
|
+
/** The rest of the application */
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
/** The container on which the tooltip should be mounted. */
|
|
33
|
+
container?: RadixTooltip.TooltipPortalProps['container'];
|
|
34
|
+
/** Prevents tooltip content from remaining open when hovering. Disabling this has accessibility consequences. */
|
|
35
|
+
disableHoverableContent?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface ArrowProps {
|
|
38
|
+
variant: TooltipVariant;
|
|
39
|
+
}
|
|
40
|
+
export interface TooltipTriggerProps {
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
/** The controlled open state of the tooltip. */
|
|
43
|
+
open?: TooltipProps['open'];
|
|
44
|
+
/** Blueprint internal prop. Checks whether the trigger element is interactive to provide a warning if it's not interactive. Defaults to `true`. */
|
|
45
|
+
__checkInteractivity?: boolean;
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TriggerButton, type TriggerButtonProps } from './trigger-button';
|
|
1
|
+
export { TriggerButton, type TriggerButtonProps } from './trigger-button';
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import { type BaseButtonIconProps, type BaseButtonProps } from '../primitives/base-button';
|
|
2
|
+
export type TriggerButtonProps = BaseButtonProps & {
|
|
3
|
+
/** Trigger button label */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Icon to show up at the start of the trigger button */
|
|
6
|
+
startIcon?: BaseButtonIconProps['icon'];
|
|
7
|
+
/** Direction of caret icon */
|
|
8
|
+
caretDirection: 'up' | 'down';
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The TriggerButton is a stylized button that has an optional start icon, optional label, and a caret as the end icon.
|
|
12
|
+
* Caret direction can be changed from up to down. This component will most likely be used to trigger a dropdown.
|
|
13
|
+
*/
|
|
14
|
+
export declare const TriggerButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
15
|
+
/** Trigger button label */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Icon to show up at the start of the trigger button */
|
|
18
|
+
startIcon?: BaseButtonIconProps["icon"];
|
|
19
|
+
/** Direction of caret icon */
|
|
20
|
+
caretDirection: "up" | "down";
|
|
21
|
+
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
22
|
+
/** Trigger button label */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Icon to show up at the start of the trigger button */
|
|
25
|
+
startIcon?: BaseButtonIconProps["icon"];
|
|
26
|
+
/** Direction of caret icon */
|
|
27
|
+
caretDirection: "up" | "down";
|
|
28
|
+
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,9 +7,9 @@ const buttonSizeToStartIconSizeMap = {
|
|
|
7
7
|
small: 16,
|
|
8
8
|
large: 24
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
* The TriggerButton is a stylized button that has an optional start icon, optional label, and a caret as the end icon.
|
|
12
|
-
* Caret direction can be changed from up to down. This component will most likely be used to trigger a dropdown.
|
|
10
|
+
/**
|
|
11
|
+
* The TriggerButton is a stylized button that has an optional start icon, optional label, and a caret as the end icon.
|
|
12
|
+
* Caret direction can be changed from up to down. This component will most likely be used to trigger a dropdown.
|
|
13
13
|
*/
|
|
14
14
|
const TriggerButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
15
15
|
const {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface ControlledInputValueProps<ValueType, ChangedValueType = ValueType> {
|
|
2
|
-
defaultValue?: never;
|
|
3
|
-
onChange?: (value: ChangedValueType | null) => void;
|
|
4
|
-
value: ValueType | null;
|
|
5
|
-
}
|
|
6
|
-
export interface UncontrolledInputValueProps<ValueType, ChangedValueType = ValueType> {
|
|
7
|
-
defaultValue?: ValueType | null;
|
|
8
|
-
onChange?: (value: ChangedValueType | null) => void;
|
|
9
|
-
value?: never;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Represents the props for an input's value.
|
|
13
|
-
* It is a generic type that should be used for inputs that can be used as either controlled or uncontrolled.
|
|
14
|
-
*
|
|
15
|
-
* @template ValueType - The type of the value.
|
|
16
|
-
* @template ChangedValueType - The type of the changed value. By default, it is the same as ValueType.
|
|
17
|
-
*
|
|
18
|
-
* @property {ValueType | null} defaultValue - The default value of the uncontrolled input. Optional. Use `null` to signify no value.
|
|
19
|
-
* @property {(value: ChangedValueType | null) => void} onChange - The function to be called when the value changes. It is optional.
|
|
20
|
-
* @property {ValueType | null} value - The current value of the controlled input. Use `null` to signify no value. If both `value` and `defaultValue` are provided, `value` will be used.
|
|
21
|
-
*/
|
|
22
|
-
export type InputValueProps<ValueType, ChangedValueType = ValueType> = UncontrolledInputValueProps<ValueType, ChangedValueType> | ControlledInputValueProps<ValueType, ChangedValueType>;
|
|
1
|
+
export interface ControlledInputValueProps<ValueType, ChangedValueType = ValueType> {
|
|
2
|
+
defaultValue?: never;
|
|
3
|
+
onChange?: (value: ChangedValueType | null) => void;
|
|
4
|
+
value: ValueType | null;
|
|
5
|
+
}
|
|
6
|
+
export interface UncontrolledInputValueProps<ValueType, ChangedValueType = ValueType> {
|
|
7
|
+
defaultValue?: ValueType | null;
|
|
8
|
+
onChange?: (value: ChangedValueType | null) => void;
|
|
9
|
+
value?: never;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props for an input's value.
|
|
13
|
+
* It is a generic type that should be used for inputs that can be used as either controlled or uncontrolled.
|
|
14
|
+
*
|
|
15
|
+
* @template ValueType - The type of the value.
|
|
16
|
+
* @template ChangedValueType - The type of the changed value. By default, it is the same as ValueType.
|
|
17
|
+
*
|
|
18
|
+
* @property {ValueType | null} defaultValue - The default value of the uncontrolled input. Optional. Use `null` to signify no value.
|
|
19
|
+
* @property {(value: ChangedValueType | null) => void} onChange - The function to be called when the value changes. It is optional.
|
|
20
|
+
* @property {ValueType | null} value - The current value of the controlled input. Use `null` to signify no value. If both `value` and `defaultValue` are provided, `value` will be used.
|
|
21
|
+
*/
|
|
22
|
+
export type InputValueProps<ValueType, ChangedValueType = ValueType> = UncontrolledInputValueProps<ValueType, ChangedValueType> | ControlledInputValueProps<ValueType, ChangedValueType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
1
|
+
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const BaseGridListActions: import("react").ForwardRefExoticComponent<Omit<BaseGridListActionsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { type BaseGridListActionsProps } from './types';
|
|
2
|
+
export declare const BaseGridListActionIconButton: import("react").ForwardRefExoticComponent<(Omit<import("../../primitives/icon-button/types").IconButtonVariantsProps, "ref"> | Omit<import("../../primitives/icon-button/types").IconButtonSmallUtilityVariantProps, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export declare const BaseGridListActions: import("react").ForwardRefExoticComponent<Omit<BaseGridListActionsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const BaseGridListHeader: import("react").ForwardRefExoticComponent<Omit<BaseGridListHeaderProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
1
|
+
import { type BaseGridListHeaderProps } from './types';
|
|
2
|
+
export declare const BaseGridListHeader: import("react").ForwardRefExoticComponent<Omit<BaseGridListHeaderProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
1
|
+
export declare const BaseGridListSubtitle: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const BaseGridListThumbnail: import("react").ForwardRefExoticComponent<Omit<BaseGridListThumbnailProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { type BaseGridListThumbnailProps } from './types';
|
|
2
|
+
export declare const BaseGridListThumbnail: import("react").ForwardRefExoticComponent<Omit<BaseGridListThumbnailProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const BaseGridListItem: import("react").ForwardRefExoticComponent<BaseGridListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { type BaseGridListItemContextType, type BaseGridListItemProps } from './types';
|
|
2
|
+
export declare const useBaseGridListItemContext: () => BaseGridListItemContextType;
|
|
3
|
+
export declare const BaseGridListItem: import("react").ForwardRefExoticComponent<BaseGridListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const BaseGridList: import("react").ForwardRefExoticComponent<BaseGridListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { type BaseGridListProps } from './types';
|
|
2
|
+
export declare const useBaseGridListContext: () => BaseGridListProps;
|
|
3
|
+
export declare const BaseGridList: import("react").ForwardRefExoticComponent<BaseGridListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
export type { BaseGridListActionIconButtonProps, BaseGridListActionsProps, BaseGridListDescriptionProps, BaseGridListHeaderProps, BaseGridListItemProps, BaseGridListProps, BaseGridListSubtitleProps, BaseGridListThumbnailProps, } from './types';
|
|
1
|
+
/**
|
|
2
|
+
* Base Grid List can be used for showcasing various types of files in Box.
|
|
3
|
+
*
|
|
4
|
+
* It's based on GridList from react-aria-components with exposed subcomponents for easier styling.
|
|
5
|
+
*/
|
|
6
|
+
export declare const BaseGridList: import("react").ForwardRefExoticComponent<import("./types").BaseGridListProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
/**
|
|
8
|
+
* An individual item in the list.
|
|
9
|
+
*/
|
|
10
|
+
Item: import("react").ForwardRefExoticComponent<import("./types").BaseGridListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
/**
|
|
12
|
+
* Styled wrapper over and image or icon.
|
|
13
|
+
*/
|
|
14
|
+
Thumbnail: import("react").ForwardRefExoticComponent<Omit<import("./types").BaseGridListThumbnailProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
/**
|
|
16
|
+
* Styled wrapper over the title of an item and potential Status components.
|
|
17
|
+
*/
|
|
18
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("./types").BaseGridListHeaderProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
/**
|
|
20
|
+
* Styled wrapper over the subtitle of an item.
|
|
21
|
+
*/
|
|
22
|
+
Subtitle: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
23
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
24
|
+
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
25
|
+
/**
|
|
26
|
+
* Styled wrapper over the actions of an item.
|
|
27
|
+
* If `selectionMode` is passed, a checkbox will be rendered as well.
|
|
28
|
+
*/
|
|
29
|
+
Actions: import("react").ForwardRefExoticComponent<Omit<import("./types").BaseGridListActionsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
/**
|
|
31
|
+
* Styled wrapper over an icon button.
|
|
32
|
+
* Ensures proper behaviour when used in a grid list item.
|
|
33
|
+
*/
|
|
34
|
+
ActionIconButton: import("react").ForwardRefExoticComponent<(Omit<import("../../primitives/icon-button/types").IconButtonVariantsProps, "ref"> | Omit<import("../../primitives/icon-button/types").IconButtonSmallUtilityVariantProps, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
35
|
+
};
|
|
36
|
+
export type { BaseGridListActionIconButtonProps, BaseGridListActionsProps, BaseGridListDescriptionProps, BaseGridListHeaderProps, BaseGridListItemProps, BaseGridListProps, BaseGridListSubtitleProps, BaseGridListThumbnailProps, } from './types';
|
|
@@ -5,36 +5,36 @@ import { BaseGridListHeader } from './base-grid-list-item-header.js';
|
|
|
5
5
|
import { BaseGridListSubtitle } from './base-grid-list-item-subtitle.js';
|
|
6
6
|
import { BaseGridListThumbnail } from './base-grid-list-item-thumbnail.js';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Base Grid List can be used for showcasing various types of files in Box.
|
|
10
|
-
*
|
|
11
|
-
* It's based on GridList from react-aria-components with exposed subcomponents for easier styling.
|
|
8
|
+
/**
|
|
9
|
+
* Base Grid List can be used for showcasing various types of files in Box.
|
|
10
|
+
*
|
|
11
|
+
* It's based on GridList from react-aria-components with exposed subcomponents for easier styling.
|
|
12
12
|
*/
|
|
13
13
|
const BaseGridList = Object.assign(BaseGridList$1, {
|
|
14
|
-
/**
|
|
15
|
-
* An individual item in the list.
|
|
14
|
+
/**
|
|
15
|
+
* An individual item in the list.
|
|
16
16
|
*/
|
|
17
17
|
Item: BaseGridListItem,
|
|
18
|
-
/**
|
|
19
|
-
* Styled wrapper over and image or icon.
|
|
18
|
+
/**
|
|
19
|
+
* Styled wrapper over and image or icon.
|
|
20
20
|
*/
|
|
21
21
|
Thumbnail: BaseGridListThumbnail,
|
|
22
|
-
/**
|
|
23
|
-
* Styled wrapper over the title of an item and potential Status components.
|
|
22
|
+
/**
|
|
23
|
+
* Styled wrapper over the title of an item and potential Status components.
|
|
24
24
|
*/
|
|
25
25
|
Header: BaseGridListHeader,
|
|
26
|
-
/**
|
|
27
|
-
* Styled wrapper over the subtitle of an item.
|
|
26
|
+
/**
|
|
27
|
+
* Styled wrapper over the subtitle of an item.
|
|
28
28
|
*/
|
|
29
29
|
Subtitle: BaseGridListSubtitle,
|
|
30
|
-
/**
|
|
31
|
-
* Styled wrapper over the actions of an item.
|
|
32
|
-
* If `selectionMode` is passed, a checkbox will be rendered as well.
|
|
30
|
+
/**
|
|
31
|
+
* Styled wrapper over the actions of an item.
|
|
32
|
+
* If `selectionMode` is passed, a checkbox will be rendered as well.
|
|
33
33
|
*/
|
|
34
34
|
Actions: BaseGridListActions,
|
|
35
|
-
/**
|
|
36
|
-
* Styled wrapper over an icon button.
|
|
37
|
-
* Ensures proper behaviour when used in a grid list item.
|
|
35
|
+
/**
|
|
36
|
+
* Styled wrapper over an icon button.
|
|
37
|
+
* Ensures proper behaviour when used in a grid list item.
|
|
38
38
|
*/
|
|
39
39
|
ActionIconButton: BaseGridListActionIconButton
|
|
40
40
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { type GridListItemProps } from 'react-aria-components';
|
|
2
|
+
export declare const StaticGridListItem: import("react").ForwardRefExoticComponent<GridListItemProps<unknown> & {
|
|
3
|
+
children?: import("react").ReactNode | undefined;
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const StaticGridList: import("react").ForwardRefExoticComponent<GridListProps<object> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { type GridListProps } from 'react-aria-components';
|
|
2
|
+
export declare const StaticGridList: import("react").ForwardRefExoticComponent<GridListProps<object> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
-
import { type GridListItemProps, type GridListProps as RAGridListProps } from 'react-aria-components';
|
|
3
|
-
import { type IconButtonProps } from '../../primitives/icon-button';
|
|
4
|
-
import { type Modify } from '../../types/modify';
|
|
5
|
-
export interface BaseGridListLayoutProp {
|
|
6
|
-
layout: 'grid' | 'list' | 'small-list';
|
|
7
|
-
}
|
|
8
|
-
interface CustomGridListProps extends BaseGridListLayoutProp {
|
|
9
|
-
/**
|
|
10
|
-
* This flag allows the consumer to opt-out of the default
|
|
11
|
-
* accessiblity and keyboard handling provided by React Aria.
|
|
12
|
-
* See the Quick Search component in group shared features
|
|
13
|
-
* for an example of usage.
|
|
14
|
-
* @param {boolean} isInteractive
|
|
15
|
-
*/
|
|
16
|
-
isInteractive?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare enum ListLayout {
|
|
19
|
-
GRID = "Grid List",
|
|
20
|
-
LARGE_LIST = "Large List",
|
|
21
|
-
SMALL_LIST = "Small List"
|
|
22
|
-
}
|
|
23
|
-
export type BaseGridListHeaderProps = ComponentPropsWithRef<'span'> & {
|
|
24
|
-
textValue?: string;
|
|
25
|
-
};
|
|
26
|
-
export type BaseGridListThumbnailProps = ComponentPropsWithRef<'div'> & {
|
|
27
|
-
hasCustomSize?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export type BaseGridListSubtitleProps = ComponentPropsWithRef<'span'>;
|
|
30
|
-
export type BaseGridListDescriptionProps = ComponentPropsWithRef<'p'>;
|
|
31
|
-
export type BaseGridListActionsProps = Modify<ComponentPropsWithRef<'div'>, {
|
|
32
|
-
children: ReactNode | ((setIsInteracted: (open: boolean) => void) => ReactNode);
|
|
33
|
-
}>;
|
|
34
|
-
export type BaseGridListActionIconButtonProps = IconButtonProps;
|
|
35
|
-
export interface BaseGridListProps extends RAGridListProps<object>, CustomGridListProps {
|
|
36
|
-
}
|
|
37
|
-
export interface BaseGridListItemContextType {
|
|
38
|
-
loading?: boolean;
|
|
39
|
-
pinned?: boolean;
|
|
40
|
-
pinAriaLabel?: string;
|
|
41
|
-
isItemInteracted: boolean;
|
|
42
|
-
setIsItemInteracted: (isInteracted: boolean) => void;
|
|
43
|
-
}
|
|
44
|
-
export interface BaseGridListItemProps extends GridListItemProps, Omit<BaseGridListItemContextType, 'isItemInteracted' | 'setIsItemInteracted'> {
|
|
45
|
-
children?: ReactNode;
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
import { type GridListItemProps, type GridListProps as RAGridListProps } from 'react-aria-components';
|
|
3
|
+
import { type IconButtonProps } from '../../primitives/icon-button';
|
|
4
|
+
import { type Modify } from '../../types/modify';
|
|
5
|
+
export interface BaseGridListLayoutProp {
|
|
6
|
+
layout: 'grid' | 'list' | 'small-list';
|
|
7
|
+
}
|
|
8
|
+
interface CustomGridListProps extends BaseGridListLayoutProp {
|
|
9
|
+
/**
|
|
10
|
+
* This flag allows the consumer to opt-out of the default
|
|
11
|
+
* accessiblity and keyboard handling provided by React Aria.
|
|
12
|
+
* See the Quick Search component in group shared features
|
|
13
|
+
* for an example of usage.
|
|
14
|
+
* @param {boolean} isInteractive
|
|
15
|
+
*/
|
|
16
|
+
isInteractive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare enum ListLayout {
|
|
19
|
+
GRID = "Grid List",
|
|
20
|
+
LARGE_LIST = "Large List",
|
|
21
|
+
SMALL_LIST = "Small List"
|
|
22
|
+
}
|
|
23
|
+
export type BaseGridListHeaderProps = ComponentPropsWithRef<'span'> & {
|
|
24
|
+
textValue?: string;
|
|
25
|
+
};
|
|
26
|
+
export type BaseGridListThumbnailProps = ComponentPropsWithRef<'div'> & {
|
|
27
|
+
hasCustomSize?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type BaseGridListSubtitleProps = ComponentPropsWithRef<'span'>;
|
|
30
|
+
export type BaseGridListDescriptionProps = ComponentPropsWithRef<'p'>;
|
|
31
|
+
export type BaseGridListActionsProps = Modify<ComponentPropsWithRef<'div'>, {
|
|
32
|
+
children: ReactNode | ((setIsInteracted: (open: boolean) => void) => ReactNode);
|
|
33
|
+
}>;
|
|
34
|
+
export type BaseGridListActionIconButtonProps = IconButtonProps;
|
|
35
|
+
export interface BaseGridListProps extends RAGridListProps<object>, CustomGridListProps {
|
|
36
|
+
}
|
|
37
|
+
export interface BaseGridListItemContextType {
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
pinned?: boolean;
|
|
40
|
+
pinAriaLabel?: string;
|
|
41
|
+
isItemInteracted: boolean;
|
|
42
|
+
setIsItemInteracted: (isInteracted: boolean) => void;
|
|
43
|
+
}
|
|
44
|
+
export interface BaseGridListItemProps extends GridListItemProps, Omit<BaseGridListItemContextType, 'isItemInteracted' | 'setIsItemInteracted'> {
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type ComponentProps, type PropsWithChildren } from 'react';
|
|
2
|
-
import { type ButtonProps } from 'react-aria-components';
|
|
3
|
-
interface RACButtonProps extends PropsWithChildren<ButtonProps> {
|
|
4
|
-
onPointerDown: ComponentProps<'button'>['onPointerDown'];
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* RAC Button customized based on https://react-spectrum.adobe.com/react-aria/Button.html#hooks
|
|
8
|
-
*
|
|
9
|
-
* Extras:
|
|
10
|
-
* - Merge passed `onPointerDown` with RAC's pointerDown. Order is important. This is for handling the component being wrapped with Dropdown.Trigger,
|
|
11
|
-
* while still responding to clicks.
|
|
12
|
-
*/
|
|
13
|
-
export declare const RACButton: import("react").ForwardRefExoticComponent<RACButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
-
export {};
|
|
1
|
+
import { type ComponentProps, type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ButtonProps } from 'react-aria-components';
|
|
3
|
+
interface RACButtonProps extends PropsWithChildren<ButtonProps> {
|
|
4
|
+
onPointerDown: ComponentProps<'button'>['onPointerDown'];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* RAC Button customized based on https://react-spectrum.adobe.com/react-aria/Button.html#hooks
|
|
8
|
+
*
|
|
9
|
+
* Extras:
|
|
10
|
+
* - Merge passed `onPointerDown` with RAC's pointerDown. Order is important. This is for handling the component being wrapped with Dropdown.Trigger,
|
|
11
|
+
* while still responding to clicks.
|
|
12
|
+
*/
|
|
13
|
+
export declare const RACButton: import("react").ForwardRefExoticComponent<RACButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export {};
|
|
@@ -3,12 +3,12 @@ import { forwardRef } from 'react';
|
|
|
3
3
|
import { useButton, mergeProps } from 'react-aria';
|
|
4
4
|
import { useContextProps, ButtonContext } from 'react-aria-components';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* RAC Button customized based on https://react-spectrum.adobe.com/react-aria/Button.html#hooks
|
|
8
|
-
*
|
|
9
|
-
* Extras:
|
|
10
|
-
* - Merge passed `onPointerDown` with RAC's pointerDown. Order is important. This is for handling the component being wrapped with Dropdown.Trigger,
|
|
11
|
-
* while still responding to clicks.
|
|
6
|
+
/**
|
|
7
|
+
* RAC Button customized based on https://react-spectrum.adobe.com/react-aria/Button.html#hooks
|
|
8
|
+
*
|
|
9
|
+
* Extras:
|
|
10
|
+
* - Merge passed `onPointerDown` with RAC's pointerDown. Order is important. This is for handling the component being wrapped with Dropdown.Trigger,
|
|
11
|
+
* while still responding to clicks.
|
|
12
12
|
*/
|
|
13
13
|
const RACButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
14
14
|
// Merge the local props and ref with the ones provided via context.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type TooltipProps } from 'react-aria-components';
|
|
3
|
-
interface RATooltipProps extends Omit<TooltipProps, 'children'> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const RACTooltip: ({ children, ...props }: RATooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TooltipProps } from 'react-aria-components';
|
|
3
|
+
interface RATooltipProps extends Omit<TooltipProps, 'children'> {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const RACTooltip: ({ children, ...props }: RATooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const BaseToggleButton: import("react").ForwardRefExoticComponent<Omit<BaseToggleButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import { type BaseToggleButtonProps } from './types';
|
|
2
|
+
export declare const BaseToggleButton: import("react").ForwardRefExoticComponent<Omit<BaseToggleButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|