@mattermost/compass-ui 0.1.0-alpha.26 → 0.1.0-alpha.28
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/dist/compass-ui.css +16 -0
- package/dist/components/admin-console-footer/AdminConsoleFooter.css +1 -1
- package/dist/components/admin-console-footer/AdminConsoleFooter.module.scss.cjs +1 -1
- package/dist/components/admin-console-footer/AdminConsoleFooter.module.scss.js +7 -7
- package/dist/components/admin-console-header/AdminConsoleHeader.css +1 -1
- package/dist/components/admin-console-header/AdminConsoleHeader.module.scss.cjs +1 -1
- package/dist/components/admin-console-header/AdminConsoleHeader.module.scss.js +8 -8
- package/dist/components/admin-panel/AdminPanel.css +1 -1
- package/dist/components/admin-panel/AdminPanel.module.scss.cjs +1 -1
- package/dist/components/admin-panel/AdminPanel.module.scss.js +5 -5
- package/dist/components/admin-panel-footer/AdminPanelFooter.css +1 -1
- package/dist/components/admin-panel-footer/AdminPanelFooter.module.scss.cjs +1 -1
- package/dist/components/admin-panel-footer/AdminPanelFooter.module.scss.js +5 -5
- package/dist/components/admin-panel-header/AdminPanelHeader.cjs +1 -1
- package/dist/components/admin-panel-header/AdminPanelHeader.cjs.map +1 -1
- package/dist/components/admin-panel-header/AdminPanelHeader.css +1 -1
- package/dist/components/admin-panel-header/AdminPanelHeader.d.ts +6 -0
- package/dist/components/admin-panel-header/AdminPanelHeader.d.ts.map +1 -1
- package/dist/components/admin-panel-header/AdminPanelHeader.js +145 -109
- package/dist/components/admin-panel-header/AdminPanelHeader.js.map +1 -1
- package/dist/components/admin-panel-header/AdminPanelHeader.module.scss.cjs +1 -1
- package/dist/components/admin-panel-header/AdminPanelHeader.module.scss.js +11 -10
- package/dist/components/admin-panel-header/AdminPanelHeader.module.scss.js.map +1 -1
- package/dist/components/attachment-card/AttachmentCard.css +1 -1
- package/dist/components/attachment-card/AttachmentCard.module.scss.cjs +1 -1
- package/dist/components/attachment-card/AttachmentCard.module.scss.js +22 -19
- package/dist/components/attachment-card/AttachmentCard.module.scss.js.map +1 -1
- package/dist/components/button/Button.css +1 -1
- package/dist/components/button/Button.module.scss.cjs +1 -1
- package/dist/components/button/Button.module.scss.js +20 -19
- package/dist/components/button/Button.module.scss.js.map +1 -1
- package/dist/components/card-button/CardButton.css +1 -1
- package/dist/components/card-button/CardButton.module.scss.cjs +1 -1
- package/dist/components/card-button/CardButton.module.scss.js +7 -7
- package/dist/components/card-button/CardButtonGroup.css +1 -1
- package/dist/components/card-button/CardButtonGroup.module.scss.cjs +1 -1
- package/dist/components/card-button/CardButtonGroup.module.scss.js +1 -1
- package/dist/components/channel-info-msg-header/ChannelInfoMsgHeader.css +1 -1
- package/dist/components/channel-info-msg-header/ChannelInfoMsgHeader.module.scss.cjs +1 -1
- package/dist/components/channel-info-msg-header/ChannelInfoMsgHeader.module.scss.js +8 -8
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.cjs +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.cjs.map +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.css +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.d.ts +66 -7
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.d.ts.map +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.js +163 -93
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.js.map +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.cjs +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.js +35 -22
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.js.map +1 -1
- package/dist/components/checkbox/Checkbox.css +1 -1
- package/dist/components/checkbox/Checkbox.module.scss.cjs +1 -1
- package/dist/components/checkbox/Checkbox.module.scss.js +7 -7
- package/dist/components/chip/Chip.cjs +1 -1
- package/dist/components/chip/Chip.cjs.map +1 -1
- package/dist/components/chip/Chip.css +1 -1
- package/dist/components/chip/Chip.d.ts.map +1 -1
- package/dist/components/chip/Chip.js +8 -8
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/Chip.module.scss.cjs +1 -1
- package/dist/components/chip/Chip.module.scss.js +13 -10
- package/dist/components/chip/Chip.module.scss.js.map +1 -1
- package/dist/components/chip/ChipGroup.cjs +1 -1
- package/dist/components/chip/ChipGroup.cjs.map +1 -1
- package/dist/components/chip/ChipGroup.css +1 -1
- package/dist/components/chip/ChipGroup.d.ts +1 -1
- package/dist/components/chip/ChipGroup.d.ts.map +1 -1
- package/dist/components/chip/ChipGroup.js +30 -30
- package/dist/components/chip/ChipGroup.js.map +1 -1
- package/dist/components/chip/ChipGroup.module.scss.cjs +1 -1
- package/dist/components/chip/ChipGroup.module.scss.js +1 -1
- package/dist/components/combobox/Combobox.cjs +1 -1
- package/dist/components/combobox/Combobox.cjs.map +1 -1
- package/dist/components/combobox/Combobox.css +1 -1
- package/dist/components/combobox/Combobox.d.ts +10 -0
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.js +269 -252
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/combobox/Combobox.module.scss.cjs +1 -1
- package/dist/components/combobox/Combobox.module.scss.js +34 -31
- package/dist/components/combobox/Combobox.module.scss.js.map +1 -1
- package/dist/components/date-range-picker/DateRangePicker.cjs +1 -1
- package/dist/components/date-range-picker/DateRangePicker.cjs.map +1 -1
- package/dist/components/date-range-picker/DateRangePicker.css +1 -1
- package/dist/components/date-range-picker/DateRangePicker.d.ts +14 -1
- package/dist/components/date-range-picker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/date-range-picker/DateRangePicker.js +217 -195
- package/dist/components/date-range-picker/DateRangePicker.js.map +1 -1
- package/dist/components/date-range-picker/DateRangePicker.module.scss.cjs +1 -1
- package/dist/components/date-range-picker/DateRangePicker.module.scss.js +29 -26
- package/dist/components/date-range-picker/DateRangePicker.module.scss.js.map +1 -1
- package/dist/components/divider/Divider.css +1 -1
- package/dist/components/divider/Divider.module.scss.cjs +1 -1
- package/dist/components/divider/Divider.module.scss.js +1 -1
- package/dist/components/dropdown/Dropdown.css +1 -1
- package/dist/components/dropdown/Dropdown.module.scss.cjs +1 -1
- package/dist/components/dropdown/Dropdown.module.scss.js +23 -22
- package/dist/components/dropdown/Dropdown.module.scss.js.map +1 -1
- package/dist/components/emoji/Emoji.css +1 -1
- package/dist/components/emoji/Emoji.module.scss.cjs +1 -1
- package/dist/components/emoji/Emoji.module.scss.js +12 -12
- package/dist/components/emoji-button/EmojiButton.css +1 -1
- package/dist/components/emoji-button/EmojiButton.module.scss.cjs +1 -1
- package/dist/components/emoji-button/EmojiButton.module.scss.js +12 -9
- package/dist/components/emoji-button/EmojiButton.module.scss.js.map +1 -1
- package/dist/components/emoji-popover/EmojiPopover.css +1 -1
- package/dist/components/emoji-popover/EmojiPopover.module.scss.cjs +1 -1
- package/dist/components/emoji-popover/EmojiPopover.module.scss.js +21 -21
- package/dist/components/empty-state/EmptyState.cjs +1 -1
- package/dist/components/empty-state/EmptyState.cjs.map +1 -1
- package/dist/components/empty-state/EmptyState.css +1 -1
- package/dist/components/empty-state/EmptyState.d.ts +21 -1
- package/dist/components/empty-state/EmptyState.d.ts.map +1 -1
- package/dist/components/empty-state/EmptyState.js +30 -23
- package/dist/components/empty-state/EmptyState.js.map +1 -1
- package/dist/components/empty-state/EmptyState.module.scss.cjs +1 -1
- package/dist/components/empty-state/EmptyState.module.scss.js +7 -7
- package/dist/components/empty-state/index.d.ts +1 -1
- package/dist/components/empty-state/index.d.ts.map +1 -1
- package/dist/components/feature-discovery-panel/FeatureDiscoveryPanel.css +1 -1
- package/dist/components/feature-discovery-panel/FeatureDiscoveryPanel.module.scss.cjs +1 -1
- package/dist/components/feature-discovery-panel/FeatureDiscoveryPanel.module.scss.js +9 -9
- package/dist/components/field/FieldClearButton.css +1 -1
- package/dist/components/field/FieldClearButton.module.scss.cjs +1 -1
- package/dist/components/field/FieldClearButton.module.scss.js +3 -3
- package/dist/components/field-message/FieldMessage.css +1 -1
- package/dist/components/field-message/FieldMessage.module.scss.cjs +1 -1
- package/dist/components/field-message/FieldMessage.module.scss.js +7 -7
- package/dist/components/global-banner/GlobalBanner.css +1 -1
- package/dist/components/global-banner/GlobalBanner.module.scss.cjs +1 -1
- package/dist/components/global-banner/GlobalBanner.module.scss.js +10 -10
- package/dist/components/icon/Icon.css +1 -1
- package/dist/components/icon/Icon.module.scss.cjs +1 -1
- package/dist/components/icon/Icon.module.scss.js +13 -13
- package/dist/components/icon-button/IconButton.css +1 -1
- package/dist/components/icon-button/IconButton.module.scss.cjs +1 -1
- package/dist/components/icon-button/IconButton.module.scss.js +19 -16
- package/dist/components/icon-button/IconButton.module.scss.js.map +1 -1
- package/dist/components/illustration/Illustration.css +1 -1
- package/dist/components/illustration/Illustration.module.scss.cjs +1 -1
- package/dist/components/illustration/Illustration.module.scss.js +1 -1
- package/dist/components/image-preview/ImagePreview.css +1 -1
- package/dist/components/image-preview/ImagePreview.module.scss.cjs +1 -1
- package/dist/components/image-preview/ImagePreview.module.scss.js +15 -15
- package/dist/components/link-preview/LinkPreview.css +1 -1
- package/dist/components/link-preview/LinkPreview.module.scss.cjs +1 -1
- package/dist/components/link-preview/LinkPreview.module.scss.js +14 -14
- package/dist/components/mention-badge/MentionBadge.css +1 -1
- package/dist/components/mention-badge/MentionBadge.module.scss.cjs +1 -1
- package/dist/components/mention-badge/MentionBadge.module.scss.js +9 -9
- package/dist/components/menu-group-heading/MenuGroupHeading.css +1 -1
- package/dist/components/menu-group-heading/MenuGroupHeading.module.scss.cjs +1 -1
- package/dist/components/menu-group-heading/MenuGroupHeading.module.scss.js +2 -2
- package/dist/components/menu-item/MenuItem.css +1 -1
- package/dist/components/menu-item/MenuItem.module.scss.cjs +1 -1
- package/dist/components/menu-item/MenuItem.module.scss.js +18 -18
- package/dist/components/message-actions/MessageActions.css +1 -1
- package/dist/components/message-actions/MessageActions.module.scss.cjs +1 -1
- package/dist/components/message-actions/MessageActions.module.scss.js +2 -2
- package/dist/components/message-header/MessageHeader.css +1 -1
- package/dist/components/message-header/MessageHeader.module.scss.cjs +1 -1
- package/dist/components/message-header/MessageHeader.module.scss.js +3 -3
- package/dist/components/message-separator/MessageSeparator.css +1 -1
- package/dist/components/message-separator/MessageSeparator.module.scss.cjs +1 -1
- package/dist/components/message-separator/MessageSeparator.module.scss.js +11 -11
- package/dist/components/modal/Modal.cjs +1 -1
- package/dist/components/modal/Modal.cjs.map +1 -1
- package/dist/components/modal/Modal.css +1 -1
- package/dist/components/modal/Modal.d.ts +11 -1
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +38 -36
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/modal/Modal.module.scss.cjs +1 -1
- package/dist/components/modal/Modal.module.scss.js +11 -11
- package/dist/components/modal/ModalOverlay.css +1 -1
- package/dist/components/modal/ModalOverlay.module.scss.cjs +1 -1
- package/dist/components/modal/ModalOverlay.module.scss.js +5 -5
- package/dist/components/modal-footer/ModalFooter.css +1 -1
- package/dist/components/modal-footer/ModalFooter.module.scss.cjs +1 -1
- package/dist/components/modal-footer/ModalFooter.module.scss.js +11 -11
- package/dist/components/modal-header/ModalHeader.cjs +1 -1
- package/dist/components/modal-header/ModalHeader.cjs.map +1 -1
- package/dist/components/modal-header/ModalHeader.css +1 -1
- package/dist/components/modal-header/ModalHeader.d.ts +13 -3
- package/dist/components/modal-header/ModalHeader.d.ts.map +1 -1
- package/dist/components/modal-header/ModalHeader.js +61 -55
- package/dist/components/modal-header/ModalHeader.js.map +1 -1
- package/dist/components/modal-header/ModalHeader.module.scss.cjs +1 -1
- package/dist/components/modal-header/ModalHeader.module.scss.js +18 -16
- package/dist/components/modal-header/ModalHeader.module.scss.js.map +1 -1
- package/dist/components/more-unreads-banner/MoreUnreadsBanner.css +1 -1
- package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.scss.cjs +1 -1
- package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.scss.js +8 -5
- package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.scss.js.map +1 -1
- package/dist/components/new-message-banner/NewMessageBanner.css +1 -1
- package/dist/components/new-message-banner/NewMessageBanner.module.scss.cjs +1 -1
- package/dist/components/new-message-banner/NewMessageBanner.module.scss.js +9 -9
- package/dist/components/pagination-dots/PaginationDots.css +1 -1
- package/dist/components/pagination-dots/PaginationDots.module.scss.cjs +1 -1
- package/dist/components/pagination-dots/PaginationDots.module.scss.js +10 -10
- package/dist/components/password-input/PasswordInput.css +1 -1
- package/dist/components/password-input/PasswordInput.module.scss.cjs +1 -1
- package/dist/components/password-input/PasswordInput.module.scss.js +15 -14
- package/dist/components/password-input/PasswordInput.module.scss.js.map +1 -1
- package/dist/components/permalink-preview/PermalinkPreview.css +1 -1
- package/dist/components/permalink-preview/PermalinkPreview.module.scss.cjs +1 -1
- package/dist/components/permalink-preview/PermalinkPreview.module.scss.js +13 -13
- package/dist/components/pinned-saved-indicators/PinnedSavedIndicators.css +1 -1
- package/dist/components/pinned-saved-indicators/PinnedSavedIndicators.module.scss.cjs +1 -1
- package/dist/components/pinned-saved-indicators/PinnedSavedIndicators.module.scss.js +7 -7
- package/dist/components/popover-menu/PopoverMenu.css +1 -1
- package/dist/components/popover-menu/PopoverMenu.module.scss.cjs +1 -1
- package/dist/components/popover-menu/PopoverMenu.module.scss.js +13 -13
- package/dist/components/popover-notice/PopoverNotice.css +1 -1
- package/dist/components/popover-notice/PopoverNotice.module.scss.cjs +1 -1
- package/dist/components/popover-notice/PopoverNotice.module.scss.js +14 -14
- package/dist/components/profile-popover/ProfilePopover.css +1 -1
- package/dist/components/profile-popover/ProfilePopover.module.scss.cjs +1 -1
- package/dist/components/profile-popover/ProfilePopover.module.scss.js +33 -33
- package/dist/components/progress-bar/ProgressBar.css +1 -1
- package/dist/components/progress-bar/ProgressBar.module.scss.cjs +1 -1
- package/dist/components/progress-bar/ProgressBar.module.scss.js +9 -9
- package/dist/components/radio/Radio.css +1 -1
- package/dist/components/radio/Radio.module.scss.cjs +1 -1
- package/dist/components/radio/Radio.module.scss.js +12 -12
- package/dist/components/reaction-button/ReactionButton.css +1 -1
- package/dist/components/reaction-button/ReactionButton.module.scss.cjs +1 -1
- package/dist/components/reaction-button/ReactionButton.module.scss.js +8 -8
- package/dist/components/reactions-row/ReactionsRow.css +1 -1
- package/dist/components/reactions-row/ReactionsRow.module.scss.cjs +1 -1
- package/dist/components/reactions-row/ReactionsRow.module.scss.js +8 -8
- package/dist/components/right-sidebar-header/RightSidebarHeader.cjs +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.cjs.map +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.css +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.d.ts.map +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.js +39 -36
- package/dist/components/right-sidebar-header/RightSidebarHeader.js.map +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.cjs +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.js +12 -13
- package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.js.map +1 -1
- package/dist/components/scrollbar/Scrollbar.css +1 -1
- package/dist/components/scrollbar/Scrollbar.module.scss.cjs +1 -1
- package/dist/components/scrollbar/Scrollbar.module.scss.js +5 -5
- package/dist/components/search-input/SearchInput.css +1 -1
- package/dist/components/search-input/SearchInput.module.scss.cjs +1 -1
- package/dist/components/search-input/SearchInput.module.scss.js +15 -15
- package/dist/components/search-tip-banner/SearchTipBanner.css +1 -1
- package/dist/components/search-tip-banner/SearchTipBanner.module.scss.cjs +1 -1
- package/dist/components/search-tip-banner/SearchTipBanner.module.scss.js +3 -3
- package/dist/components/section-notice/SectionNotice.css +1 -1
- package/dist/components/section-notice/SectionNotice.module.scss.cjs +1 -1
- package/dist/components/section-notice/SectionNotice.module.scss.js +12 -12
- package/dist/components/segmented-control/SegmentedControl.cjs +2 -0
- package/dist/components/segmented-control/SegmentedControl.cjs.map +1 -0
- package/dist/components/segmented-control/SegmentedControl.css +1 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +71 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/components/segmented-control/SegmentedControl.js +173 -0
- package/dist/components/segmented-control/SegmentedControl.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControl.module.scss.cjs +2 -0
- package/dist/components/segmented-control/SegmentedControl.module.scss.cjs.map +1 -0
- package/dist/components/segmented-control/SegmentedControl.module.scss.js +20 -0
- package/dist/components/segmented-control/SegmentedControl.module.scss.js.map +1 -0
- package/dist/components/segmented-control/index.cjs +2 -0
- package/dist/components/segmented-control/index.cjs.map +1 -0
- package/dist/components/segmented-control/index.d.ts +3 -0
- package/dist/components/segmented-control/index.d.ts.map +1 -0
- package/dist/components/segmented-control/index.js +5 -0
- package/dist/components/segmented-control/index.js.map +1 -0
- package/dist/components/select/Select.cjs +1 -1
- package/dist/components/select/Select.cjs.map +1 -1
- package/dist/components/select/Select.css +1 -1
- package/dist/components/select/Select.d.ts +14 -0
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +151 -130
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/Select.module.scss.cjs +1 -1
- package/dist/components/select/Select.module.scss.js +28 -26
- package/dist/components/select/Select.module.scss.js.map +1 -1
- package/dist/components/shortcut-tag/ShortcutTag.css +1 -1
- package/dist/components/shortcut-tag/ShortcutTag.module.scss.cjs +1 -1
- package/dist/components/shortcut-tag/ShortcutTag.module.scss.js +7 -7
- package/dist/components/spinner/Spinner.css +1 -1
- package/dist/components/spinner/Spinner.module.scss.cjs +1 -1
- package/dist/components/spinner/Spinner.module.scss.js +2 -2
- package/dist/components/status-badge/StatusBadge.cjs +1 -1
- package/dist/components/status-badge/StatusBadge.cjs.map +1 -1
- package/dist/components/status-badge/StatusBadge.css +1 -1
- package/dist/components/status-badge/StatusBadge.d.ts +3 -1
- package/dist/components/status-badge/StatusBadge.d.ts.map +1 -1
- package/dist/components/status-badge/StatusBadge.js +16 -15
- package/dist/components/status-badge/StatusBadge.js.map +1 -1
- package/dist/components/status-badge/StatusBadge.module.scss.cjs +1 -1
- package/dist/components/status-badge/StatusBadge.module.scss.js +11 -11
- package/dist/components/switch/Switch.css +1 -1
- package/dist/components/switch/Switch.module.scss.cjs +1 -1
- package/dist/components/switch/Switch.module.scss.js +8 -8
- package/dist/components/tabs/Tabs.css +1 -1
- package/dist/components/tabs/Tabs.module.scss.cjs +1 -1
- package/dist/components/tabs/Tabs.module.scss.js +16 -13
- package/dist/components/tabs/Tabs.module.scss.js.map +1 -1
- package/dist/components/tag/Tag.css +1 -1
- package/dist/components/tag/Tag.module.scss.cjs +1 -1
- package/dist/components/tag/Tag.module.scss.js +11 -11
- package/dist/components/team-avatar/TeamAvatar.css +1 -1
- package/dist/components/team-avatar/TeamAvatar.module.scss.cjs +1 -1
- package/dist/components/team-avatar/TeamAvatar.module.scss.js +17 -17
- package/dist/components/text-area/TextArea.css +1 -1
- package/dist/components/text-area/TextArea.module.scss.cjs +1 -1
- package/dist/components/text-area/TextArea.module.scss.js +12 -12
- package/dist/components/text-input/TextInput.css +1 -1
- package/dist/components/text-input/TextInput.module.scss.cjs +1 -1
- package/dist/components/text-input/TextInput.module.scss.js +19 -19
- package/dist/components/thread-footer/ThreadFooter.cjs +1 -1
- package/dist/components/thread-footer/ThreadFooter.cjs.map +1 -1
- package/dist/components/thread-footer/ThreadFooter.css +1 -1
- package/dist/components/thread-footer/ThreadFooter.d.ts.map +1 -1
- package/dist/components/thread-footer/ThreadFooter.js +14 -14
- package/dist/components/thread-footer/ThreadFooter.js.map +1 -1
- package/dist/components/thread-footer/ThreadFooter.module.scss.cjs +1 -1
- package/dist/components/thread-footer/ThreadFooter.module.scss.js +19 -20
- package/dist/components/thread-footer/ThreadFooter.module.scss.js.map +1 -1
- package/dist/components/thread-list-item/ThreadListItem.css +1 -1
- package/dist/components/thread-list-item/ThreadListItem.module.scss.cjs +1 -1
- package/dist/components/thread-list-item/ThreadListItem.module.scss.js +26 -26
- package/dist/components/tile-button/TileButton.css +1 -1
- package/dist/components/tile-button/TileButton.module.scss.cjs +1 -1
- package/dist/components/tile-button/TileButton.module.scss.js +6 -6
- package/dist/components/toast/Toast.css +1 -1
- package/dist/components/toast/Toast.module.scss.cjs +1 -1
- package/dist/components/toast/Toast.module.scss.js +11 -11
- package/dist/components/tooltip/Tooltip.cjs +1 -1
- package/dist/components/tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/tooltip/Tooltip.css +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +10 -1
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.js +29 -17
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/Tooltip.module.scss.cjs +1 -1
- package/dist/components/tooltip/Tooltip.module.scss.js +7 -6
- package/dist/components/tooltip/Tooltip.module.scss.js.map +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts.map +1 -1
- package/dist/components/tour-point/TourPoint.css +1 -1
- package/dist/components/tour-point/TourPoint.module.scss.cjs +1 -1
- package/dist/components/tour-point/TourPoint.module.scss.js +28 -28
- package/dist/components/unread-badge/UnreadBadge.css +1 -1
- package/dist/components/unread-badge/UnreadBadge.module.scss.cjs +1 -1
- package/dist/components/unread-badge/UnreadBadge.module.scss.js +5 -5
- package/dist/components/user-avatar/UserAvatar.cjs +1 -1
- package/dist/components/user-avatar/UserAvatar.cjs.map +1 -1
- package/dist/components/user-avatar/UserAvatar.css +1 -1
- package/dist/components/user-avatar/UserAvatar.d.ts +18 -8
- package/dist/components/user-avatar/UserAvatar.d.ts.map +1 -1
- package/dist/components/user-avatar/UserAvatar.js +84 -52
- package/dist/components/user-avatar/UserAvatar.js.map +1 -1
- package/dist/components/user-avatar/UserAvatar.module.scss.cjs +1 -1
- package/dist/components/user-avatar/UserAvatar.module.scss.js +33 -26
- package/dist/components/user-avatar/UserAvatar.module.scss.js.map +1 -1
- package/dist/components/user-avatar-group/UserAvatarGroup.css +1 -1
- package/dist/components/user-avatar-group/UserAvatarGroup.module.scss.cjs +1 -1
- package/dist/components/user-avatar-group/UserAvatarGroup.module.scss.js +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -55
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RightSidebarHeader.d.ts","sourceRoot":"","sources":["../../../src/components/right-sidebar-header/RightSidebarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RightSidebarHeader.d.ts","sourceRoot":"","sources":["../../../src/components/right-sidebar-header/RightSidebarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,GAAG,UAAU,GAAG,yBAAyB,CACjD;IACC,iFAAiF;IACjF,KAAK,EAAE,SAAS,CAAC;IACjB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,iMAAiM;IACjM,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACvE,+KAA+K;IAC/K,yBAAyB,CAAC,EAAE,kBAAkB,CAAC;IAC/C,6DAA6D;IAC7D,GAAG,CAAC,EAAE,SAA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I,EACR,EAAE,uBAAuB,2CAmHzB"}
|
|
@@ -4,15 +4,16 @@ import __R from "@mattermost/compass-icons/components/arrow-expand.js";const R=_
|
|
|
4
4
|
import __W from "@mattermost/compass-icons/components/arrow-left.js";const W=__W&&__W.default?__W.default:__W;
|
|
5
5
|
import __q from "@mattermost/compass-icons/components/close.js";const q=__q&&__q.default?__q.default:__q;
|
|
6
6
|
import __F from "@mattermost/compass-icons/components/dock-window.js";const F=__F&&__F.default?__F.default:__F;
|
|
7
|
-
import
|
|
8
|
-
import s from "../icon
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import G from "../button/Button.js";
|
|
8
|
+
import s from "../icon/Icon.js";
|
|
9
|
+
import l from "../icon-button/IconButton.js";
|
|
10
|
+
import J from "../tag/Tag.js";
|
|
11
|
+
import { mergeClassNames as K } from "../../utils/props.js";
|
|
11
12
|
import i from "./RightSidebarHeader.module.scss.js";
|
|
12
|
-
function
|
|
13
|
+
function B({
|
|
13
14
|
title: C,
|
|
14
|
-
secondaryTitle:
|
|
15
|
-
onSecondaryTitleClick:
|
|
15
|
+
secondaryTitle: m,
|
|
16
|
+
onSecondaryTitleClick: h,
|
|
16
17
|
secondaryTitleButtonProps: e,
|
|
17
18
|
tag: d,
|
|
18
19
|
tagType: z = "info",
|
|
@@ -20,14 +21,14 @@ function y({
|
|
|
20
21
|
onBack: _,
|
|
21
22
|
backLabel: k = "Back",
|
|
22
23
|
onExpand: b,
|
|
23
|
-
expanded:
|
|
24
|
+
expanded: o = !1,
|
|
24
25
|
expandLabel: w = "Expand",
|
|
25
26
|
collapseLabel: x = "Collapse",
|
|
26
|
-
onPopout:
|
|
27
|
+
onPopout: g,
|
|
27
28
|
popoutLabel: I = "Open in new window",
|
|
28
|
-
onClose:
|
|
29
|
+
onClose: f,
|
|
29
30
|
closeLabel: v = "Close",
|
|
30
|
-
actionLabel:
|
|
31
|
+
actionLabel: n,
|
|
31
32
|
onActionClick: j,
|
|
32
33
|
actionActive: p = !1,
|
|
33
34
|
actions: A,
|
|
@@ -39,19 +40,19 @@ function y({
|
|
|
39
40
|
/* @__PURE__ */ r("div", { className: i["right-sidebar-header__left"], children: [
|
|
40
41
|
/* @__PURE__ */ r("div", { className: i["right-sidebar-header__primary"], children: [
|
|
41
42
|
_ && /* @__PURE__ */ a(
|
|
42
|
-
|
|
43
|
+
l,
|
|
43
44
|
{
|
|
44
45
|
className: i["right-sidebar-header__back"],
|
|
45
46
|
size: "small",
|
|
46
47
|
"aria-label": k,
|
|
47
48
|
onClick: _,
|
|
48
|
-
icon: /* @__PURE__ */ a(
|
|
49
|
+
icon: /* @__PURE__ */ a(s, { size: "16", glyph: /* @__PURE__ */ a(W, {}) })
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
52
|
c && /* @__PURE__ */ a("span", { className: i["right-sidebar-header__leading-icon"], children: c }),
|
|
52
53
|
/* @__PURE__ */ a("span", { className: i["right-sidebar-header__title"], children: C }),
|
|
53
54
|
d && /* @__PURE__ */ a("span", { className: i["right-sidebar-header__tag"], children: /* @__PURE__ */ a(
|
|
54
|
-
|
|
55
|
+
J,
|
|
55
56
|
{
|
|
56
57
|
label: d,
|
|
57
58
|
type: z,
|
|
@@ -60,76 +61,78 @@ function y({
|
|
|
60
61
|
}
|
|
61
62
|
) })
|
|
62
63
|
] }),
|
|
63
|
-
|
|
64
|
+
m && /* @__PURE__ */ a("div", { className: i["right-sidebar-header__secondary"], children: h ? /* @__PURE__ */ a(
|
|
64
65
|
"button",
|
|
65
66
|
{
|
|
66
67
|
type: "button",
|
|
67
68
|
...e,
|
|
68
|
-
className:
|
|
69
|
+
className: K(
|
|
69
70
|
i["right-sidebar-header__secondary-text"],
|
|
70
71
|
i["right-sidebar-header__secondary-button"],
|
|
71
72
|
e == null ? void 0 : e.className
|
|
72
73
|
),
|
|
73
74
|
onClick: (N) => {
|
|
74
75
|
var t;
|
|
75
|
-
|
|
76
|
+
h(N), (t = e == null ? void 0 : e.onClick) == null || t.call(e, N);
|
|
76
77
|
},
|
|
77
|
-
children:
|
|
78
|
+
children: m
|
|
78
79
|
}
|
|
79
|
-
) : /* @__PURE__ */ a("span", { className: i["right-sidebar-header__secondary-text"], children:
|
|
80
|
+
) : /* @__PURE__ */ a("span", { className: i["right-sidebar-header__secondary-text"], children: m }) })
|
|
80
81
|
] }),
|
|
81
82
|
/* @__PURE__ */ r("div", { className: i["right-sidebar-header__actions"], children: [
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
n && /* @__PURE__ */ a(
|
|
84
|
+
G,
|
|
84
85
|
{
|
|
85
|
-
|
|
86
|
+
emphasis: "dim",
|
|
87
|
+
size: "small",
|
|
88
|
+
compact: !0,
|
|
86
89
|
className: [
|
|
87
90
|
i["right-sidebar-header__action"],
|
|
88
91
|
p ? i["right-sidebar-header__action--active"] : ""
|
|
89
92
|
].filter(Boolean).join(" "),
|
|
90
93
|
onClick: j,
|
|
91
94
|
"aria-pressed": p ? !0 : void 0,
|
|
92
|
-
children:
|
|
95
|
+
children: n
|
|
93
96
|
}
|
|
94
97
|
),
|
|
95
98
|
A,
|
|
96
99
|
b && /* @__PURE__ */ a(
|
|
97
|
-
|
|
100
|
+
l,
|
|
98
101
|
{
|
|
99
102
|
size: "small",
|
|
100
|
-
"aria-label":
|
|
103
|
+
"aria-label": o ? x : w,
|
|
101
104
|
onClick: b,
|
|
102
105
|
icon: /* @__PURE__ */ a(
|
|
103
|
-
|
|
106
|
+
s,
|
|
104
107
|
{
|
|
105
108
|
size: "16",
|
|
106
|
-
glyph:
|
|
109
|
+
glyph: o ? /* @__PURE__ */ a(O, {}) : /* @__PURE__ */ a(R, {})
|
|
107
110
|
}
|
|
108
111
|
)
|
|
109
112
|
}
|
|
110
113
|
),
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
g && /* @__PURE__ */ a(
|
|
115
|
+
l,
|
|
113
116
|
{
|
|
114
117
|
size: "small",
|
|
115
118
|
"aria-label": I,
|
|
116
|
-
onClick:
|
|
117
|
-
icon: /* @__PURE__ */ a(
|
|
119
|
+
onClick: g,
|
|
120
|
+
icon: /* @__PURE__ */ a(s, { size: "16", glyph: /* @__PURE__ */ a(F, {}) })
|
|
118
121
|
}
|
|
119
122
|
),
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
f && /* @__PURE__ */ a(
|
|
124
|
+
l,
|
|
122
125
|
{
|
|
123
126
|
size: "small",
|
|
124
127
|
"aria-label": v,
|
|
125
|
-
onClick:
|
|
126
|
-
icon: /* @__PURE__ */ a(
|
|
128
|
+
onClick: f,
|
|
129
|
+
icon: /* @__PURE__ */ a(s, { size: "16", glyph: /* @__PURE__ */ a(q, {}) })
|
|
127
130
|
}
|
|
128
131
|
)
|
|
129
132
|
] })
|
|
130
133
|
] });
|
|
131
134
|
}
|
|
132
135
|
export {
|
|
133
|
-
|
|
136
|
+
B as default
|
|
134
137
|
};
|
|
135
138
|
//# sourceMappingURL=RightSidebarHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RightSidebarHeader.js","sources":["../../../src/components/right-sidebar-header/RightSidebarHeader.tsx"],"sourcesContent":["import type { HTMLAttributes, MouseEvent, ReactNode } from 'react';\nimport ArrowCollapseIcon from '@mattermost/compass-icons/components/arrow-collapse';\nimport ArrowExpandIcon from '@mattermost/compass-icons/components/arrow-expand';\nimport ArrowLeftIcon from '@mattermost/compass-icons/components/arrow-left';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport DockWindowIcon from '@mattermost/compass-icons/components/dock-window';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport type { TagType } from '@/components/tag/Tag';\nimport { mergeClassNames } from '@/utils/props';\nimport type { BuiltInButtonProps } from '@/utils/props';\nimport styles from './RightSidebarHeader.module.scss';\n\nexport interface RightSidebarHeaderProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'title' | 'children' | 'dangerouslySetInnerHTML'\n> {\n /** Primary title text. Accepts translated nodes (e.g. `<FormattedMessage/>`). */\n title: ReactNode;\n /** Secondary title shown to the right of a vertical divider (e.g. parent channel name). */\n secondaryTitle?: ReactNode;\n /** When set, the secondary title renders as a button (e.g. to open the parent channel) and calls this on click with the event. It looks the same at rest and shows a dim background on hover. */\n onSecondaryTitleClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n /** Extra attributes for the secondary title button (e.g. `aria-label`, `data-testid`). Only used with `onSecondaryTitleClick`; its `onClick` also runs, after that handler. */\n secondaryTitleButtonProps?: BuiltInButtonProps;\n /** Optional tag rendered next to the title (e.g. \"BETA\"). */\n tag?: ReactNode;\n /** Tag visual style. Default: Info. */\n tagType?: TagType;\n /** Optional leading element shown before the title — typically a `UserAvatar` or an icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"20\" />` to align with the title text. */\n leadingIcon?: ReactNode;\n /** When set, shows a back button and calls this on click. */\n onBack?: () => void;\n /** Accessible name for the back button. Default: \"Back\". */\n backLabel?: string;\n /** When set, shows an expand/collapse button and calls this on click. */\n onExpand?: () => void;\n /** When true, the expand button shows the collapse icon. Requires `onExpand`. */\n expanded?: boolean;\n /** Accessible name for the expand button while collapsed. Default: \"Expand\". */\n expandLabel?: string;\n /** Accessible name for the expand button while expanded. Default: \"Collapse\". */\n collapseLabel?: string;\n /** When set, shows a pop out button (open in a new window) between expand and close, and calls this on click. */\n onPopout?: () => void;\n /** Accessible name for the pop out button. Default: \"Open in new window\". */\n popoutLabel?: string;\n /** When set, shows a close button and calls this on click. */\n onClose?: () => void;\n /** Accessible name for the close button. Default: \"Close\". */\n closeLabel?: string;\n /** Optional inline action label (e.g. \"Follow\"). Accepts translated nodes. */\n actionLabel?: ReactNode;\n /** Click handler for the action label. */\n onActionClick?: () => void;\n /** When true, the action button shows in its active state. */\n actionActive?: boolean;\n /** Optional custom actions (e.g. a Filters `Button` + popover) rendered in the actions region after `actionLabel` and before the expand / pop out / close buttons. */\n actions?: ReactNode;\n className?: string;\n}\n\nexport default function RightSidebarHeader({\n title,\n secondaryTitle,\n onSecondaryTitleClick,\n secondaryTitleButtonProps,\n tag,\n tagType = 'info',\n leadingIcon,\n onBack,\n backLabel = 'Back',\n onExpand,\n expanded = false,\n expandLabel = 'Expand',\n collapseLabel = 'Collapse',\n onPopout,\n popoutLabel = 'Open in new window',\n onClose,\n closeLabel = 'Close',\n actionLabel,\n onActionClick,\n actionActive = false,\n actions,\n className = '',\n ...rest\n}: RightSidebarHeaderProps) {\n const rootClass = [styles['right-sidebar-header'], className]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div {...rest} className={rootClass}>\n <div className={styles['right-sidebar-header__left']}>\n <div className={styles['right-sidebar-header__primary']}>\n {onBack && (\n <IconButton\n className={styles['right-sidebar-header__back']}\n size=\"small\"\n aria-label={backLabel}\n onClick={onBack}\n icon={<Icon size=\"16\" glyph={<ArrowLeftIcon />} />}\n />\n )}\n {leadingIcon && (\n <span className={styles['right-sidebar-header__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <span className={styles['right-sidebar-header__title']}>{title}</span>\n {tag && (\n <span className={styles['right-sidebar-header__tag']}>\n <Tag\n label={tag}\n type={tagType}\n size=\"x-small\"\n casing=\"all-caps\"\n />\n </span>\n )}\n </div>\n {secondaryTitle && (\n <div className={styles['right-sidebar-header__secondary']}>\n {onSecondaryTitleClick ? (\n <button\n type=\"button\"\n {...secondaryTitleButtonProps}\n className={mergeClassNames(\n styles['right-sidebar-header__secondary-text'],\n styles['right-sidebar-header__secondary-button'],\n secondaryTitleButtonProps?.className,\n )}\n onClick={(event) => {\n onSecondaryTitleClick(event);\n secondaryTitleButtonProps?.onClick?.(event);\n }}\n >\n {secondaryTitle}\n </button>\n ) : (\n <span className={styles['right-sidebar-header__secondary-text']}>\n {secondaryTitle}\n </span>\n )}\n </div>\n )}\n </div>\n\n <div className={styles['right-sidebar-header__actions']}>\n {actionLabel && (\n <button\n type=\"button\"\n className={[\n styles['right-sidebar-header__action'],\n actionActive\n ? styles['right-sidebar-header__action--active']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={onActionClick}\n aria-pressed={actionActive ? true : undefined}\n >\n {actionLabel}\n </button>\n )}\n {actions}\n {onExpand && (\n <IconButton\n size=\"small\"\n aria-label={expanded ? collapseLabel : expandLabel}\n onClick={onExpand}\n icon={\n <Icon\n size=\"16\"\n glyph={expanded ? <ArrowCollapseIcon /> : <ArrowExpandIcon />}\n />\n }\n />\n )}\n {onPopout && (\n <IconButton\n size=\"small\"\n aria-label={popoutLabel}\n onClick={onPopout}\n icon={<Icon size=\"16\" glyph={<DockWindowIcon />} />}\n />\n )}\n {onClose && (\n <IconButton\n size=\"small\"\n aria-label={closeLabel}\n onClick={onClose}\n icon={<Icon size=\"16\" glyph={<CloseIcon />} />}\n />\n )}\n </div>\n </div>\n );\n}\n"],"names":["RightSidebarHeader","title","secondaryTitle","onSecondaryTitleClick","secondaryTitleButtonProps","tag","tagType","leadingIcon","onBack","backLabel","onExpand","expanded","expandLabel","collapseLabel","onPopout","popoutLabel","onClose","closeLabel","actionLabel","onActionClick","actionActive","actions","className","rest","rootClass","styles","jsxs","jsx","IconButton","Icon","ArrowLeftIcon","Tag","mergeClassNames","event","_a","ArrowCollapseIcon","ArrowExpandIcon","DockWindowIcon","CloseIcon"],"mappings":";;;;;;;;;;;AA+DA,SAAwBA,EAAmB;AAAA,EACzC,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,2BAAAC;AAAA,EACA,KAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,aAAAC,IAAc;AAAA,EACd,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,aAAAC;AAAA,EACA,eAAAC;A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,gBAAAF,EAACU,KAAe,EAAA,CAAI;AAAA,QAAA;AAAA,MAAA;AAAA,MAGpDrB,KACC,gBAAAW;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,cAAYX;AAAA,UACZ,SAASD;AAAA,UACT,wBAAOa,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAF,EAACW,KAAU,EAAA,CAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAC9C,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"RightSidebarHeader.js","sources":["../../../src/components/right-sidebar-header/RightSidebarHeader.tsx"],"sourcesContent":["import type { HTMLAttributes, MouseEvent, ReactNode } from 'react';\nimport ArrowCollapseIcon from '@mattermost/compass-icons/components/arrow-collapse';\nimport ArrowExpandIcon from '@mattermost/compass-icons/components/arrow-expand';\nimport ArrowLeftIcon from '@mattermost/compass-icons/components/arrow-left';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport DockWindowIcon from '@mattermost/compass-icons/components/dock-window';\nimport Button from '@/components/button/Button';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport type { TagType } from '@/components/tag/Tag';\nimport { mergeClassNames } from '@/utils/props';\nimport type { BuiltInButtonProps } from '@/utils/props';\nimport styles from './RightSidebarHeader.module.scss';\n\nexport interface RightSidebarHeaderProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'title' | 'children' | 'dangerouslySetInnerHTML'\n> {\n /** Primary title text. Accepts translated nodes (e.g. `<FormattedMessage/>`). */\n title: ReactNode;\n /** Secondary title shown to the right of a vertical divider (e.g. parent channel name). */\n secondaryTitle?: ReactNode;\n /** When set, the secondary title renders as a button (e.g. to open the parent channel) and calls this on click with the event. It looks the same at rest and shows a dim background on hover. */\n onSecondaryTitleClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n /** Extra attributes for the secondary title button (e.g. `aria-label`, `data-testid`). Only used with `onSecondaryTitleClick`; its `onClick` also runs, after that handler. */\n secondaryTitleButtonProps?: BuiltInButtonProps;\n /** Optional tag rendered next to the title (e.g. \"BETA\"). */\n tag?: ReactNode;\n /** Tag visual style. Default: Info. */\n tagType?: TagType;\n /** Optional leading element shown before the title — typically a `UserAvatar` or an icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"20\" />` to align with the title text. */\n leadingIcon?: ReactNode;\n /** When set, shows a back button and calls this on click. */\n onBack?: () => void;\n /** Accessible name for the back button. Default: \"Back\". */\n backLabel?: string;\n /** When set, shows an expand/collapse button and calls this on click. */\n onExpand?: () => void;\n /** When true, the expand button shows the collapse icon. Requires `onExpand`. */\n expanded?: boolean;\n /** Accessible name for the expand button while collapsed. Default: \"Expand\". */\n expandLabel?: string;\n /** Accessible name for the expand button while expanded. Default: \"Collapse\". */\n collapseLabel?: string;\n /** When set, shows a pop out button (open in a new window) between expand and close, and calls this on click. */\n onPopout?: () => void;\n /** Accessible name for the pop out button. Default: \"Open in new window\". */\n popoutLabel?: string;\n /** When set, shows a close button and calls this on click. */\n onClose?: () => void;\n /** Accessible name for the close button. Default: \"Close\". */\n closeLabel?: string;\n /** Optional inline action label (e.g. \"Follow\"). Accepts translated nodes. */\n actionLabel?: ReactNode;\n /** Click handler for the action label. */\n onActionClick?: () => void;\n /** When true, the action button shows in its active state. */\n actionActive?: boolean;\n /** Optional custom actions (e.g. a Filters `Button` + popover) rendered in the actions region after `actionLabel` and before the expand / pop out / close buttons. */\n actions?: ReactNode;\n className?: string;\n}\n\nexport default function RightSidebarHeader({\n title,\n secondaryTitle,\n onSecondaryTitleClick,\n secondaryTitleButtonProps,\n tag,\n tagType = 'info',\n leadingIcon,\n onBack,\n backLabel = 'Back',\n onExpand,\n expanded = false,\n expandLabel = 'Expand',\n collapseLabel = 'Collapse',\n onPopout,\n popoutLabel = 'Open in new window',\n onClose,\n closeLabel = 'Close',\n actionLabel,\n onActionClick,\n actionActive = false,\n actions,\n className = '',\n ...rest\n}: RightSidebarHeaderProps) {\n const rootClass = [styles['right-sidebar-header'], className]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div {...rest} className={rootClass}>\n <div className={styles['right-sidebar-header__left']}>\n <div className={styles['right-sidebar-header__primary']}>\n {onBack && (\n <IconButton\n className={styles['right-sidebar-header__back']}\n size=\"small\"\n aria-label={backLabel}\n onClick={onBack}\n icon={<Icon size=\"16\" glyph={<ArrowLeftIcon />} />}\n />\n )}\n {leadingIcon && (\n <span className={styles['right-sidebar-header__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <span className={styles['right-sidebar-header__title']}>{title}</span>\n {tag && (\n <span className={styles['right-sidebar-header__tag']}>\n <Tag\n label={tag}\n type={tagType}\n size=\"x-small\"\n casing=\"all-caps\"\n />\n </span>\n )}\n </div>\n {secondaryTitle && (\n <div className={styles['right-sidebar-header__secondary']}>\n {onSecondaryTitleClick ? (\n <button\n type=\"button\"\n {...secondaryTitleButtonProps}\n className={mergeClassNames(\n styles['right-sidebar-header__secondary-text'],\n styles['right-sidebar-header__secondary-button'],\n secondaryTitleButtonProps?.className,\n )}\n onClick={(event) => {\n onSecondaryTitleClick(event);\n secondaryTitleButtonProps?.onClick?.(event);\n }}\n >\n {secondaryTitle}\n </button>\n ) : (\n <span className={styles['right-sidebar-header__secondary-text']}>\n {secondaryTitle}\n </span>\n )}\n </div>\n )}\n </div>\n\n <div className={styles['right-sidebar-header__actions']}>\n {actionLabel && (\n <Button\n emphasis=\"dim\"\n size=\"small\"\n compact\n className={[\n styles['right-sidebar-header__action'],\n actionActive\n ? styles['right-sidebar-header__action--active']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={onActionClick}\n aria-pressed={actionActive ? true : undefined}\n >\n {actionLabel}\n </Button>\n )}\n {actions}\n {onExpand && (\n <IconButton\n size=\"small\"\n aria-label={expanded ? collapseLabel : expandLabel}\n onClick={onExpand}\n icon={\n <Icon\n size=\"16\"\n glyph={expanded ? <ArrowCollapseIcon /> : <ArrowExpandIcon />}\n />\n }\n />\n )}\n {onPopout && (\n <IconButton\n size=\"small\"\n aria-label={popoutLabel}\n onClick={onPopout}\n icon={<Icon size=\"16\" glyph={<DockWindowIcon />} />}\n />\n )}\n {onClose && (\n <IconButton\n size=\"small\"\n aria-label={closeLabel}\n onClick={onClose}\n icon={<Icon size=\"16\" glyph={<CloseIcon />} />}\n />\n )}\n </div>\n </div>\n );\n}\n"],"names":["RightSidebarHeader","title","secondaryTitle","onSecondaryTitleClick","secondaryTitleButtonProps","tag","tagType","leadingIcon","onBack","backLabel","onExpand","expanded","expandLabel","collapseLabel","onPopout","popoutLabel","onClose","closeLabel","actionLabel","onActionClick","actionActive","actions","className","rest","rootClass","styles","jsxs","jsx","IconButton","Icon","ArrowLeftIcon","Tag","mergeClassNames","event","_a","Button","ArrowCollapseIcon","ArrowExpandIcon","DockWindowIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAgEA,SAAwBA,EAAmB;AAAA,EACzC,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,2BAAAC;AAAA,EACA,KAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,aAAAC,IAAc;AAAA,EACd,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,SAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAA4B;AAC1B,QAAMC,IAAY,CAACC,EAAO,sBAAsB,GAAGH,CAAS,EACzD,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAI,EAAC,OAAA,EAAK,GAA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K,MAAK,MAAK,OAAO,gBAAAF,EAACY,KAAU,EAAA,CAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAC9C,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./RightSidebarHeader.css');const e={"right-sidebar-header":"_right-sidebar-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./RightSidebarHeader.css');const e={"right-sidebar-header":"_right-sidebar-header_gkzgk_13","right-sidebar-header__left":"_right-sidebar-header__left_gkzgk_23","right-sidebar-header__primary":"_right-sidebar-header__primary_gkzgk_29","right-sidebar-header__back":"_right-sidebar-header__back_gkzgk_36","right-sidebar-header__leading-icon":"_right-sidebar-header__leading-icon_gkzgk_39","right-sidebar-header__tag":"_right-sidebar-header__tag_gkzgk_44","right-sidebar-header__title":"_right-sidebar-header__title_gkzgk_48","right-sidebar-header__secondary":"_right-sidebar-header__secondary_gkzgk_58","right-sidebar-header__secondary-button":"_right-sidebar-header__secondary-button_gkzgk_67","right-sidebar-header__secondary-text":"_right-sidebar-header__secondary-text_gkzgk_70","right-sidebar-header__actions":"_right-sidebar-header__actions_gkzgk_119","right-sidebar-header__action--active":"_right-sidebar-header__action--active_gkzgk_125"};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=RightSidebarHeader.module.scss.cjs.map
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import './RightSidebarHeader.css';const e = {
|
|
2
|
-
"right-sidebar-header": "_right-sidebar-
|
|
3
|
-
"right-sidebar-header__left": "_right-sidebar-
|
|
4
|
-
"right-sidebar-header__primary": "_right-sidebar-
|
|
5
|
-
"right-sidebar-header__back": "_right-sidebar-
|
|
6
|
-
"right-sidebar-header__leading-icon": "_right-sidebar-header__leading-
|
|
7
|
-
"right-sidebar-header__tag": "_right-sidebar-
|
|
8
|
-
"right-sidebar-header__title": "_right-sidebar-
|
|
9
|
-
"right-sidebar-header__secondary": "_right-sidebar-
|
|
10
|
-
"right-sidebar-header__secondary-button": "_right-sidebar-header__secondary-
|
|
11
|
-
"right-sidebar-header__secondary-text": "_right-sidebar-header__secondary-
|
|
12
|
-
"right-sidebar-header__actions": "_right-sidebar-
|
|
13
|
-
"right-sidebar-header__action": "_right-sidebar-
|
|
14
|
-
"right-sidebar-header__action--active": "_right-sidebar-header__action--active_1jogp_129"
|
|
2
|
+
"right-sidebar-header": "_right-sidebar-header_gkzgk_13",
|
|
3
|
+
"right-sidebar-header__left": "_right-sidebar-header__left_gkzgk_23",
|
|
4
|
+
"right-sidebar-header__primary": "_right-sidebar-header__primary_gkzgk_29",
|
|
5
|
+
"right-sidebar-header__back": "_right-sidebar-header__back_gkzgk_36",
|
|
6
|
+
"right-sidebar-header__leading-icon": "_right-sidebar-header__leading-icon_gkzgk_39",
|
|
7
|
+
"right-sidebar-header__tag": "_right-sidebar-header__tag_gkzgk_44",
|
|
8
|
+
"right-sidebar-header__title": "_right-sidebar-header__title_gkzgk_48",
|
|
9
|
+
"right-sidebar-header__secondary": "_right-sidebar-header__secondary_gkzgk_58",
|
|
10
|
+
"right-sidebar-header__secondary-button": "_right-sidebar-header__secondary-button_gkzgk_67",
|
|
11
|
+
"right-sidebar-header__secondary-text": "_right-sidebar-header__secondary-text_gkzgk_70",
|
|
12
|
+
"right-sidebar-header__actions": "_right-sidebar-header__actions_gkzgk_119",
|
|
13
|
+
"right-sidebar-header__action--active": "_right-sidebar-header__action--active_gkzgk_125"
|
|
15
14
|
};
|
|
16
15
|
export {
|
|
17
16
|
e as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RightSidebarHeader.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RightSidebarHeader.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._scrollbar_c4qaw_13{width:100%;height:100%;min-height:0;--scrollbar-color: var(--center-channel-color-rgb)}._scrollbar_c4qaw_13 .simplebar-track.simplebar-vertical{width:8px}._scrollbar_c4qaw_13 .simplebar-track.simplebar-horizontal{height:8px}._scrollbar--size-wide_c4qaw_25 .simplebar-track.simplebar-vertical{width:10px}._scrollbar--size-wide_c4qaw_25 .simplebar-track.simplebar-horizontal{height:10px}._scrollbar_c4qaw_13 .simplebar-scrollbar:before{left:2px;right:2px;top:2px;bottom:2px;border-radius:var(--radius-pill);background-color:rgba(var(--scrollbar-color, var(--center-channel-color-rgb)),.24);transition:opacity var(--duration-quick) var(--ease-exit),background-color var(--duration-quick) var(--ease-transition)}._scrollbar_c4qaw_13 .simplebar-scrollbar.simplebar-visible:before{opacity:1}._scrollbar_c4qaw_13 .simplebar-track:hover .simplebar-scrollbar:before,._scrollbar_c4qaw_13 .simplebar-scrollbar.simplebar-hover:before{opacity:1;background-color:rgba(var(--scrollbar-color, var(--center-channel-color-rgb)),.4)}._scrollbar_c4qaw_13 .simplebar-track{pointer-events:auto}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Scrollbar.css');const l="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./Scrollbar.css');const l="_scrollbar_c4qaw_13",e={scrollbar:l,"scrollbar--size-wide":"_scrollbar--size-wide_c4qaw_25"};exports.default=e;exports.scrollbar=l;
|
|
2
2
|
//# sourceMappingURL=Scrollbar.module.scss.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './Scrollbar.css';const
|
|
2
|
-
scrollbar:
|
|
3
|
-
"scrollbar--size-wide": "_scrollbar--size-
|
|
1
|
+
import './Scrollbar.css';const l = "_scrollbar_c4qaw_13", s = {
|
|
2
|
+
scrollbar: l,
|
|
3
|
+
"scrollbar--size-wide": "_scrollbar--size-wide_c4qaw_25"
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
s as default,
|
|
7
|
+
l as scrollbar
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=Scrollbar.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._search-
|
|
1
|
+
._search-input_1wqam_13{display:flex;flex-direction:column;gap:var(--spacing-xs);width:100%}._search-input__wrapper_1wqam_19{position:relative;display:flex;flex-direction:column;min-height:0;background-color:var(--center-channel-bg);border-radius:var(--radius-s);box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.16);transition:box-shadow var(--duration-quick) var(--ease-transition)}._search-input_1wqam_13:has(._search-input__input_1wqam_29:not(:disabled)):hover:not(:focus-within) ._search-input__wrapper_1wqam_19{box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.24)}._search-input_1wqam_13:has(._search-input__input_1wqam_29:focus-visible) ._search-input__wrapper_1wqam_19{box-shadow:inset 0 0 0 1px var(--focus-ring-color),0 0 0 1px var(--focus-ring-color)}._search-input_1wqam_13:has(._search-input__input_1wqam_29:disabled) ._search-input__wrapper_1wqam_19{background-color:var(--center-channel-bg);opacity:.56}._search-input__label_1wqam_39{position:absolute;left:var(--spacing-xs);top:50%;padding:0 var(--spacing-xxxs);transform:translateY(-50%);margin:0;font-family:var(--font-family-body);font-size:var(--font-size-75);line-height:var(--line-height-25);font-weight:var(--font-weight-regular);color:rgba(var(--center-channel-color-rgb),.64);background-color:var(--center-channel-bg);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 24px);transition:transform var(--duration-quick) var(--ease-transition),font-size var(--duration-quick) var(--ease-transition),color var(--duration-quick) var(--ease-transition),top var(--duration-quick) var(--ease-transition),left var(--duration-quick) var(--ease-transition)}._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:1.4;color:rgba(var(--center-channel-color-rgb),.64)}._search-input__inner_1wqam_66{display:flex;align-items:center;flex:1;min-width:0}._search-input__input_1wqam_29{flex:1 1 0;min-width:0;margin:0;padding:0;border:0;background:transparent;font-family:var(--font-family-body);font-size:var(--font-size-75);line-height:var(--line-height-25);font-weight:var(--font-weight-regular);color:var(--center-channel-color)}._search-input__input_1wqam_29::-webkit-search-decoration,._search-input__input_1wqam_29::-webkit-search-cancel-button{-webkit-appearance:none}._search-input__input_1wqam_29:focus{outline:none}._search-input__input_1wqam_29::placeholder{color:rgba(var(--center-channel-color-rgb),.64)}._search-input__input_1wqam_29:disabled{cursor:not-allowed}._search-input__leading-icon_1wqam_97,._search-input__trailing-icon_1wqam_97{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:rgba(var(--center-channel-color-rgb),.64)}._search-input__leading-icon_1wqam_97{margin-right:var(--spacing-xs);pointer-events:none}._search-input__trailing-icon_1wqam_97{margin-left:var(--spacing-xs)}._search-input--size-small_1wqam_111 ._search-input__wrapper_1wqam_19{min-height:32px}._search-input--size-small_1wqam_111 ._search-input__inner_1wqam_66{padding:var(--spacing-xs) var(--spacing-m)}._search-input--size-small_1wqam_111 ._search-input__input_1wqam_29{font-size:var(--font-size-75);line-height:var(--line-height-25)}._search-input--size-small_1wqam_111._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:1.4}._search-input--size-medium_1wqam_127 ._search-input__wrapper_1wqam_19{min-height:40px}._search-input--size-medium_1wqam_127 ._search-input__inner_1wqam_66{padding:var(--spacing-s) var(--spacing-l)}._search-input--size-medium_1wqam_127 ._search-input__input_1wqam_29{font-size:var(--font-size-100);line-height:var(--line-height-100)}._search-input--size-medium_1wqam_127 ._search-input__label_1wqam_39{font-size:var(--font-size-100);left:var(--spacing-m)}._search-input--size-medium_1wqam_127._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:1.4}._search-input--size-large_1wqam_147 ._search-input__wrapper_1wqam_19{min-height:48px}._search-input--size-large_1wqam_147 ._search-input__inner_1wqam_66{padding:var(--spacing-m) var(--spacing-l)}._search-input--size-large_1wqam_147 ._search-input__input_1wqam_29{font-size:var(--font-size-200);line-height:var(--line-height-200)}._search-input--size-large_1wqam_147 ._search-input__label_1wqam_39{font-size:var(--font-size-200);line-height:var(--line-height-200);left:var(--spacing-m)}._search-input--size-large_1wqam_147._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:1.4}._search-input--has-leading-icon_1wqam_168 ._search-input__label_1wqam_39{left:28px}._search-input--has-leading-icon_1wqam_168._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{left:var(--spacing-xs)}._search-input--has-leading-icon_1wqam_168._search-input--size-medium_1wqam_127 ._search-input__label_1wqam_39{left:36px}._search-input--has-leading-icon_1wqam_168._search-input--size-medium_1wqam_127._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{left:var(--spacing-m)}._search-input--has-leading-icon_1wqam_168._search-input--size-large_1wqam_147 ._search-input__label_1wqam_39{left:40px}._search-input--has-leading-icon_1wqam_168._search-input--size-large_1wqam_147._search-input--label-floated_1wqam_59 ._search-input__label_1wqam_39{left:var(--spacing-m)}._search-input_1wqam_13:has(._search-input__input_1wqam_29:focus-visible) ._search-input__label_1wqam_39{color:var(--button-bg)}._search-input_1wqam_13:not(._search-input--label-floated_1wqam_59) ._search-input__label_1wqam_39~* ._search-input__input_1wqam_29::placeholder{color:transparent}._search-input--invalid_1wqam_192 ._search-input__wrapper_1wqam_19{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger))}._search-input--invalid_1wqam_192:has(._search-input__input_1wqam_29:focus-visible) ._search-input__wrapper_1wqam_19{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger)),0 0 0 1px var(--error-text, var(--color-danger))}._search-input--invalid_1wqam_192 ._search-input__label_1wqam_39{color:var(--error-text, var(--color-danger))}._search-input--invalid_1wqam_192:has(._search-input__input_1wqam_29:focus-visible) ._search-input__label_1wqam_39{color:var(--error-text, var(--color-danger))}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./SearchInput.css');const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./SearchInput.css');const a={"search-input":"_search-input_1wqam_13","search-input__wrapper":"_search-input__wrapper_1wqam_19","search-input__input":"_search-input__input_1wqam_29","search-input__label":"_search-input__label_1wqam_39","search-input--label-floated":"_search-input--label-floated_1wqam_59","search-input__inner":"_search-input__inner_1wqam_66","search-input__leading-icon":"_search-input__leading-icon_1wqam_97","search-input__trailing-icon":"_search-input__trailing-icon_1wqam_97","search-input--size-small":"_search-input--size-small_1wqam_111","search-input--size-medium":"_search-input--size-medium_1wqam_127","search-input--size-large":"_search-input--size-large_1wqam_147","search-input--has-leading-icon":"_search-input--has-leading-icon_1wqam_168","search-input--invalid":"_search-input--invalid_1wqam_192"};exports.default=a;
|
|
2
2
|
//# sourceMappingURL=SearchInput.module.scss.cjs.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import './SearchInput.css';const
|
|
2
|
-
"search-input": "_search-
|
|
3
|
-
"search-input__wrapper": "_search-
|
|
4
|
-
"search-input__input": "_search-
|
|
5
|
-
"search-input__label": "_search-
|
|
6
|
-
"search-input--label-floated": "_search-input--label-
|
|
7
|
-
"search-input__inner": "_search-
|
|
8
|
-
"search-input__leading-icon": "_search-input__leading-
|
|
9
|
-
"search-input__trailing-icon": "_search-input__trailing-
|
|
10
|
-
"search-input--size-small": "_search-input--size-
|
|
11
|
-
"search-input--size-medium": "_search-input--size-
|
|
12
|
-
"search-input--size-large": "_search-input--size-
|
|
13
|
-
"search-input--has-leading-icon": "_search-input--has-leading-
|
|
14
|
-
"search-input--invalid": "_search-input--
|
|
1
|
+
import './SearchInput.css';const a = {
|
|
2
|
+
"search-input": "_search-input_1wqam_13",
|
|
3
|
+
"search-input__wrapper": "_search-input__wrapper_1wqam_19",
|
|
4
|
+
"search-input__input": "_search-input__input_1wqam_29",
|
|
5
|
+
"search-input__label": "_search-input__label_1wqam_39",
|
|
6
|
+
"search-input--label-floated": "_search-input--label-floated_1wqam_59",
|
|
7
|
+
"search-input__inner": "_search-input__inner_1wqam_66",
|
|
8
|
+
"search-input__leading-icon": "_search-input__leading-icon_1wqam_97",
|
|
9
|
+
"search-input__trailing-icon": "_search-input__trailing-icon_1wqam_97",
|
|
10
|
+
"search-input--size-small": "_search-input--size-small_1wqam_111",
|
|
11
|
+
"search-input--size-medium": "_search-input--size-medium_1wqam_127",
|
|
12
|
+
"search-input--size-large": "_search-input--size-large_1wqam_147",
|
|
13
|
+
"search-input--has-leading-icon": "_search-input--has-leading-icon_1wqam_168",
|
|
14
|
+
"search-input--invalid": "_search-input--invalid_1wqam_192"
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
a as default
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=SearchInput.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._search-tip-
|
|
1
|
+
._search-tip-banner_1yblp_13{display:inline-flex;align-items:center;justify-content:flex-start;width:fit-content;max-width:100%;gap:var(--spacing-l);padding:var(--spacing-xxxs) var(--spacing-xxxs) var(--spacing-xxxs) var(--spacing-m);background-color:var(--center-channel-bg);border:1px solid rgba(var(--center-channel-color-rgb),.16);border-radius:var(--radius-s);box-shadow:var(--elevation-2)}._search-tip-banner__content_1yblp_26{display:inline-flex;align-items:center;gap:var(--spacing-s);height:24px;overflow:hidden}._search-tip-banner__text_1yblp_33{font-size:var(--font-size-100);font-weight:var(--font-weight-semibold);line-height:var(--line-height-100);color:var(--center-channel-color);white-space:nowrap}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./SearchTipBanner.css');const e={"search-tip-banner":"_search-tip-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./SearchTipBanner.css');const e={"search-tip-banner":"_search-tip-banner_1yblp_13","search-tip-banner__content":"_search-tip-banner__content_1yblp_26","search-tip-banner__text":"_search-tip-banner__text_1yblp_33"};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=SearchTipBanner.module.scss.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './SearchTipBanner.css';const e = {
|
|
2
|
-
"search-tip-banner": "_search-tip-
|
|
3
|
-
"search-tip-banner__content": "_search-tip-
|
|
4
|
-
"search-tip-banner__text": "_search-tip-
|
|
2
|
+
"search-tip-banner": "_search-tip-banner_1yblp_13",
|
|
3
|
+
"search-tip-banner__content": "_search-tip-banner__content_1yblp_26",
|
|
4
|
+
"search-tip-banner__text": "_search-tip-banner__text_1yblp_33"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
e as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._section-
|
|
1
|
+
._section-notice_kwgux_13{display:flex;flex-direction:column;align-items:flex-end;position:relative;border-radius:var(--radius-s);border:1px solid rgba(var(--color-info-rgb),.16);background-color:rgba(var(--color-info-rgb),.04)}._section-notice__content_kwgux_22{display:flex;align-items:flex-start;gap:var(--spacing-m);padding:var(--spacing-m);width:100%}._section-notice__icon_kwgux_29{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-info)}._section-notice__body_kwgux_36{display:flex;flex:1 0 0;flex-direction:column;gap:var(--spacing-xs);min-width:0;overflow:hidden;padding-right:var(--spacing-xl)}._section-notice__title_kwgux_45._section-notice__title_kwgux_45{margin:0;font-weight:var(--font-weight-semibold)}._section-notice__title_kwgux_45{padding:0;font-family:var(--font-family-body);font-size:var(--font-size-100);line-height:var(--line-height-100);letter-spacing:var(--letter-spacing-normal);text-transform:none;color:var(--center-channel-color)}._section-notice__description_kwgux_58{font-size:var(--font-size-100);font-weight:var(--font-weight-regular);line-height:var(--line-height-100);color:var(--center-channel-color)}._section-notice__actions_kwgux_64{display:flex;align-items:center;gap:var(--spacing-s);padding:var(--spacing-xxs) 0}._section-notice__dismiss_kwgux_70{position:absolute;top:var(--spacing-xxs);right:var(--spacing-xxs)}._section-notice--type-warning_kwgux_75{background-color:rgba(var(--color-warning-rgb),.04);border-color:rgba(var(--color-warning-rgb),.16)}._section-notice--type-warning_kwgux_75 ._section-notice__icon_kwgux_29{color:var(--color-warning)}._section-notice--type-danger_kwgux_82{background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.04);border-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.16)}._section-notice--type-danger_kwgux_82 ._section-notice__icon_kwgux_29{color:var(--error-text, var(--color-danger))}._section-notice--type-success_kwgux_89{background-color:rgba(var(--color-success-rgb),.04);border-color:rgba(var(--color-success-rgb),.16)}._section-notice--type-success_kwgux_89 ._section-notice__icon_kwgux_29{color:var(--color-success)}._section-notice--type-hint_kwgux_96{background-color:rgba(var(--center-channel-color-rgb),.04);border-color:rgba(var(--center-channel-color-rgb),.16)}._section-notice--type-hint_kwgux_96 ._section-notice__icon_kwgux_29{color:rgba(var(--center-channel-color-rgb),.64)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./SectionNotice.css');const e={"section-notice":"_section-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./SectionNotice.css');const e={"section-notice":"_section-notice_kwgux_13","section-notice__content":"_section-notice__content_kwgux_22","section-notice__icon":"_section-notice__icon_kwgux_29","section-notice__body":"_section-notice__body_kwgux_36","section-notice__title":"_section-notice__title_kwgux_45","section-notice__description":"_section-notice__description_kwgux_58","section-notice__actions":"_section-notice__actions_kwgux_64","section-notice__dismiss":"_section-notice__dismiss_kwgux_70","section-notice--type-warning":"_section-notice--type-warning_kwgux_75","section-notice--type-danger":"_section-notice--type-danger_kwgux_82","section-notice--type-success":"_section-notice--type-success_kwgux_89","section-notice--type-hint":"_section-notice--type-hint_kwgux_96"};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=SectionNotice.module.scss.cjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import './SectionNotice.css';const t = {
|
|
2
|
-
"section-notice": "_section-
|
|
3
|
-
"section-notice__content": "_section-
|
|
4
|
-
"section-notice__icon": "_section-
|
|
5
|
-
"section-notice__body": "_section-
|
|
6
|
-
"section-notice__title": "_section-
|
|
7
|
-
"section-notice__description": "_section-
|
|
8
|
-
"section-notice__actions": "_section-
|
|
9
|
-
"section-notice__dismiss": "_section-
|
|
10
|
-
"section-notice--type-warning": "_section-notice--type-
|
|
11
|
-
"section-notice--type-danger": "_section-notice--type-
|
|
12
|
-
"section-notice--type-success": "_section-notice--type-
|
|
13
|
-
"section-notice--type-hint": "_section-notice--type-
|
|
2
|
+
"section-notice": "_section-notice_kwgux_13",
|
|
3
|
+
"section-notice__content": "_section-notice__content_kwgux_22",
|
|
4
|
+
"section-notice__icon": "_section-notice__icon_kwgux_29",
|
|
5
|
+
"section-notice__body": "_section-notice__body_kwgux_36",
|
|
6
|
+
"section-notice__title": "_section-notice__title_kwgux_45",
|
|
7
|
+
"section-notice__description": "_section-notice__description_kwgux_58",
|
|
8
|
+
"section-notice__actions": "_section-notice__actions_kwgux_64",
|
|
9
|
+
"section-notice__dismiss": "_section-notice__dismiss_kwgux_70",
|
|
10
|
+
"section-notice--type-warning": "_section-notice--type-warning_kwgux_75",
|
|
11
|
+
"section-notice--type-danger": "_section-notice--type-danger_kwgux_82",
|
|
12
|
+
"section-notice--type-success": "_section-notice--type-success_kwgux_89",
|
|
13
|
+
"section-notice--type-hint": "_section-notice--type-hint_kwgux_96"
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
16
|
t as default
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("react/jsx-runtime"),u=require("react"),$=require("../icon/Icon.cjs"),R=require("../../utils/props.cjs"),F=require("../../utils/string.cjs"),l=require("./SegmentedControl.module.scss.cjs"),V={small:"12",medium:"16"};function W(r,t,a){return r<0?t<0?a-1:0:(r+t+a)%a}function U(r,t,a){const k=a?"ArrowLeft":"ArrowRight",h=a?"ArrowRight":"ArrowLeft";return r===k||t&&r==="ArrowDown"?1:r===h||t&&r==="ArrowUp"?-1:0}function Z(r){return!r||r.offsetWidth===0?null:{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function v(r,t){return r===t||r!=null&&t!=null&&r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function B({options:r,value:t,onChange:a,role:k="tablist",size:h="small",className:N,onBlur:S,...I}){const P=u.useRef(null),b=u.useRef(new Map),[p,w]=u.useState(t),[g,C]=u.useState(null),[j,q]=u.useState(!1),f=k==="radiogroup",A=f?"radio":"tab",E=r.map(e=>e.key).join("\0");u.useLayoutEffect(()=>{const e=()=>{const i=Z(b.current.get(t));C(y=>v(y,i)?y:i)};e();const s=P.current;if(typeof ResizeObserver>"u"||!s)return;const n=new ResizeObserver(e);n.observe(s);for(const i of b.current.values())n.observe(i);return()=>n.disconnect()},[t,E,h]);const D=g!==null;u.useEffect(()=>{D&&q(!0)},[D]);const[M,O]=u.useState(t);M!==t&&(O(t),w(t));const z=V[h],d=r.filter(e=>!e.disabled).map(e=>e.key),L=d.includes(p)?p:d.includes(t)?t:d[0],K=(e,s)=>{var n;w(e),(n=b.current.get(e))==null||n.focus(),s&&a(e)},H=e=>{if(S==null||S(e),e.defaultPrevented||f)return;const s=e.currentTarget;queueMicrotask(()=>{if(!s.isConnected)return;const n=document.activeElement;if(n instanceof Node&&s.contains(n))return;const i=d.includes(t)?t:d[0];i&&w(i)})},T=(e,s)=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const n=d.length;if(n===0)return;const i=d.indexOf(s),y=P.current!=null&&getComputedStyle(P.current).direction==="rtl",_=U(e.key,f,y);if(_!==0){e.preventDefault();const o=d[W(i,_,n)];K(o,f&&o!==s);return}if(e.key==="Home"||e.key==="End"){e.preventDefault();const o=e.key==="Home"?d[0]:d[n-1];K(o,f&&o!==s);return}(e.key==="Enter"||e.key===" ")&&i>=0&&(e.preventDefault(),w(s),s!==t&&a(s))};return x.jsxs("div",{...I,ref:P,role:k,"aria-orientation":"horizontal",onBlur:H,className:R.mergeClassNames(l.default["segmented-control"],l.default[`segmented-control--size-${F.toKebab(h)}`],N),children:[x.jsx("span",{className:R.mergeClassNames(l.default["segmented-control__indicator"],j&&l.default["segmented-control__indicator--ready"],!g&&l.default["segmented-control__indicator--unpositioned"]),style:g?{transform:`translate(${g.x}px, ${g.y}px)`,width:g.width,height:g.height}:void 0,"aria-hidden":!0}),r.map(e=>{var i,y,_;const s=e.key===t,n=e.disabled===!0;return u.createElement("button",{...e.buttonProps,key:e.key,ref:o=>{o?b.current.set(e.key,o):b.current.delete(e.key)},id:e.id??((i=e.buttonProps)==null?void 0:i.id),type:"button",role:A,tabIndex:L===e.key?0:-1,"aria-selected":f?void 0:s,"aria-checked":f?s:void 0,"aria-controls":!f&&e.panelId?e.panelId:void 0,"aria-disabled":n||void 0,disabled:void 0,title:e.title??((y=e.buttonProps)==null?void 0:y.title),className:R.mergeClassNames(l.default["segmented-control__segment"],s&&l.default["segmented-control__segment--active"],n&&l.default["segmented-control__segment--disabled"],(_=e.buttonProps)==null?void 0:_.className),onMouseDown:o=>{var c,m;(m=(c=e.buttonProps)==null?void 0:c.onMouseDown)==null||m.call(c,o),n&&o.preventDefault()},onClick:o=>{var c,m;(m=(c=e.buttonProps)==null?void 0:c.onClick)==null||m.call(c,o),!(o.defaultPrevented||n)&&(w(e.key),e.key!==t&&a(e.key))},onKeyDown:o=>{var c,m;(m=(c=e.buttonProps)==null?void 0:c.onKeyDown)==null||m.call(c,o),!o.defaultPrevented&&T(o,e.key)}},e.icon!=null&&x.jsx("span",{className:l.default["segmented-control__icon"],children:x.jsx($.IconSlotContext.Provider,{value:{size:z},children:e.icon})}),x.jsx("span",{className:l.default["segmented-control__label"],children:e.label}))})]})}exports.default=B;
|
|
2
|
+
//# sourceMappingURL=SegmentedControl.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.cjs","sources":["../../../src/components/segmented-control/SegmentedControl.tsx"],"sourcesContent":["import {\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n type FocusEvent,\n type HTMLAttributes,\n type KeyboardEvent,\n type ReactNode,\n} from 'react';\nimport type { IconSize } from '@/components/icon/Icon';\nimport { IconSlotContext } from '@/components/icon/Icon';\nimport { mergeClassNames, type BuiltInButtonProps } from '@/utils/props';\nimport { toKebab } from '@/utils/string';\nimport styles from './SegmentedControl.module.scss';\n\n/** `tablist` switches views. `radiogroup` is a short exclusive form choice. */\nexport type SegmentedControlRole = 'tablist' | 'radiogroup';\n\n/**\n * `small` matches a small Button (12px label, 12px icon). `medium` matches a\n * medium Button (14px label, 16px icon).\n */\nexport type SegmentedControlSize = 'small' | 'medium';\n\nconst SIZE_ICON_MAP: Record<SegmentedControlSize, IconSize> = {\n small: '12',\n medium: '16',\n};\n\nexport interface SegmentedControlOption {\n /**\n * Stable id for this segment. Used as the React key and the `onChange`\n * argument, so it is a string rather than translated text.\n */\n key: string;\n /** Segment label. Accepts translated nodes (e.g. `<FormattedMessage/>`). */\n label: ReactNode;\n /**\n * Optional leading icon. Pass `<Icon glyph={<SomeIcon />} />`;\n * SegmentedControl provides the size via context (12px at `small`, 16px at\n * `medium`), matching Button. No `size` prop is needed on the Icon.\n */\n icon?: ReactNode;\n /** Optional id for this segment (pair with `panelId` for `aria-controls`). */\n id?: string;\n /**\n * Optional id of the host panel this segment controls. Applied as\n * `aria-controls` when `role` is `tablist`. The host owns the panel.\n */\n panelId?: string;\n /** When true, the segment can't be selected and arrow keys skip it. */\n disabled?: boolean;\n /** Native tooltip text, e.g. to explain why the segment is disabled. */\n title?: string;\n /**\n * Extra attributes for this segment's `<button>` (e.g. `data-testid`).\n * Segment semantics (`role`, `aria-selected` / `aria-checked`, `tabIndex`,\n * `type`) take precedence. `className` is merged. `onClick`, `onKeyDown`,\n * and `onMouseDown` run first; `preventDefault()` skips selection.\n */\n buttonProps?: BuiltInButtonProps;\n}\n\nexport interface SegmentedControlProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'onChange' | 'role'\n> {\n /** Segments, in order. One is selected. */\n options: SegmentedControlOption[];\n /** Key of the selected segment. */\n value: string;\n /** Called with the segment key when the selection changes. */\n onChange: (key: string) => void;\n /**\n * Semantics. `tablist` (default) switches views: arrow keys move focus, and\n * Enter, Space, or a click selects. The host owns the panel. `radiogroup`\n * is a short exclusive form choice: arrow keys move the selection. Pass\n * `aria-label` or `aria-labelledby` so the group has a name.\n */\n role?: SegmentedControlRole;\n /**\n * Size of the label and leading icon, matching Button. `small` (default)\n * is 12px text with a 12px icon. `medium` is 14px text with a 16px icon.\n */\n size?: SegmentedControlSize;\n /** Optional CSS class name. */\n className?: string;\n}\n\nfunction stepIndex(index: number, delta: number, count: number) {\n if (index < 0) return delta < 0 ? count - 1 : 0;\n return (index + delta + count) % count;\n}\n\nfunction arrowDelta(key: string, isRadio: boolean, isRtl: boolean) {\n const forward = isRtl ? 'ArrowLeft' : 'ArrowRight';\n const backward = isRtl ? 'ArrowRight' : 'ArrowLeft';\n if (key === forward || (isRadio && key === 'ArrowDown')) return 1;\n if (key === backward || (isRadio && key === 'ArrowUp')) return -1;\n return 0;\n}\n\ninterface IndicatorBox {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nfunction readBox(node: HTMLElement | null | undefined): IndicatorBox | null {\n if (!node || node.offsetWidth === 0) return null;\n return {\n x: node.offsetLeft,\n y: node.offsetTop,\n width: node.offsetWidth,\n height: node.offsetHeight,\n };\n}\n\nfunction sameBox(a: IndicatorBox | null, b: IndicatorBox | null) {\n return (\n a === b ||\n (a != null &&\n b != null &&\n a.x === b.x &&\n a.y === b.y &&\n a.width === b.width &&\n a.height === b.height)\n );\n}\n\n/**\n * Segmented controls let people pick one option from a short, exclusive set shown as one\n * compact control — search modes in a header, a filter on a list, or a form choice that\n * doesn't need a radio mark. One segment is selected; choosing another replaces it.\n */\nexport default function SegmentedControl({\n options,\n value,\n onChange,\n role = 'tablist',\n size = 'small',\n className,\n onBlur,\n ...rest\n}: SegmentedControlProps) {\n const trackRef = useRef<HTMLDivElement>(null);\n const segmentRefs = useRef(new Map<string, HTMLButtonElement>());\n const [focusedKey, setFocusedKey] = useState(value);\n const [indicator, setIndicator] = useState<IndicatorBox | null>(null);\n // The first placement is instant. Motion turns on after paint so the\n // surface doesn't slide in from the corner on mount.\n const [indicatorReady, setIndicatorReady] = useState(false);\n const isRadio = role === 'radiogroup';\n const itemRole = isRadio ? 'radio' : 'tab';\n\n // A string dependency: `options` is usually a fresh array each render, and\n // only added or removed segments need new observers (the observers already\n // cover label-driven size changes).\n const optionKeys = options.map((option) => option.key).join('\\u0000');\n\n useLayoutEffect(() => {\n const publish = () => {\n const next = readBox(segmentRefs.current.get(value));\n setIndicator((current) => (sameBox(current, next) ? current : next));\n };\n publish();\n\n const track = trackRef.current;\n if (typeof ResizeObserver === 'undefined' || !track) return;\n const observer = new ResizeObserver(publish);\n observer.observe(track);\n for (const node of segmentRefs.current.values()) {\n observer.observe(node);\n }\n return () => observer.disconnect();\n }, [value, optionKeys, size]);\n\n // Enable motion only after the first real placement has painted, so a first\n // measurement that is empty (hidden container) doesn't animate in later.\n const isPlaced = indicator !== null;\n useEffect(() => {\n if (isPlaced) setIndicatorReady(true);\n }, [isPlaced]);\n\n // Re-sync the roving focus to the selection while rendering, so there is no\n // render with a stale `focusedKey`.\n const [prevValue, setPrevValue] = useState(value);\n if (prevValue !== value) {\n setPrevValue(value);\n setFocusedKey(value);\n }\n\n const iconSize = SIZE_ICON_MAP[size];\n const enabledKeys = options\n .filter((option) => !option.disabled)\n .map((option) => option.key);\n const focusKey = enabledKeys.includes(focusedKey)\n ? focusedKey\n : enabledKeys.includes(value)\n ? value\n : enabledKeys[0];\n\n const moveFocus = (key: string, select: boolean) => {\n setFocusedKey(key);\n segmentRefs.current.get(key)?.focus();\n if (select) onChange(key);\n };\n\n const handleBlur = (event: FocusEvent<HTMLDivElement>) => {\n onBlur?.(event);\n // Manual tabs keep the last focused segment as the tab stop. Once focus\n // leaves the group, put it back on the selected segment so the next visit\n // lands on the choice, not a segment the user only passed through.\n if (event.defaultPrevented || isRadio) return;\n const track = event.currentTarget;\n queueMicrotask(() => {\n if (!track.isConnected) return;\n const active = document.activeElement;\n if (active instanceof Node && track.contains(active)) return;\n const tabStop = enabledKeys.includes(value) ? value : enabledKeys[0];\n if (tabStop) setFocusedKey(tabStop);\n });\n };\n\n const handleKeyDown = (\n event: KeyboardEvent<HTMLButtonElement>,\n key: string,\n ) => {\n // Alt, Ctrl, and Meta belong to the browser (Back, scroll-to-ends).\n // Shift still moves within the group.\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const count = enabledKeys.length;\n if (count === 0) return;\n const index = enabledKeys.indexOf(key);\n const isRtl =\n trackRef.current != null &&\n getComputedStyle(trackRef.current).direction === 'rtl';\n const delta = arrowDelta(event.key, isRadio, isRtl);\n\n if (delta !== 0) {\n event.preventDefault();\n const next = enabledKeys[stepIndex(index, delta, count)];\n moveFocus(next, isRadio && next !== key);\n return;\n }\n\n if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n const next =\n event.key === 'Home' ? enabledKeys[0] : enabledKeys[count - 1];\n moveFocus(next, isRadio && next !== key);\n return;\n }\n\n if ((event.key === 'Enter' || event.key === ' ') && index >= 0) {\n event.preventDefault();\n setFocusedKey(key);\n if (key !== value) onChange(key);\n }\n };\n\n return (\n <div\n {...rest}\n ref={trackRef}\n role={role}\n aria-orientation=\"horizontal\"\n onBlur={handleBlur}\n className={mergeClassNames(\n styles['segmented-control'],\n styles[`segmented-control--size-${toKebab(size)}`],\n className,\n )}\n >\n <span\n className={mergeClassNames(\n styles['segmented-control__indicator'],\n indicatorReady && styles['segmented-control__indicator--ready'],\n !indicator && styles['segmented-control__indicator--unpositioned'],\n )}\n style={\n indicator\n ? {\n transform: `translate(${indicator.x}px, ${indicator.y}px)`,\n width: indicator.width,\n height: indicator.height,\n }\n : undefined\n }\n aria-hidden\n />\n {options.map((option) => {\n const isSelected = option.key === value;\n const isDisabled = option.disabled === true;\n\n return (\n <button\n {...option.buttonProps}\n key={option.key}\n ref={(node) => {\n if (node) segmentRefs.current.set(option.key, node);\n else segmentRefs.current.delete(option.key);\n }}\n id={option.id ?? option.buttonProps?.id}\n type=\"button\"\n role={itemRole}\n tabIndex={focusKey === option.key ? 0 : -1}\n aria-selected={isRadio ? undefined : isSelected}\n aria-checked={isRadio ? isSelected : undefined}\n aria-controls={\n !isRadio && option.panelId ? option.panelId : undefined\n }\n aria-disabled={isDisabled || undefined}\n disabled={undefined}\n title={option.title ?? option.buttonProps?.title}\n className={mergeClassNames(\n styles['segmented-control__segment'],\n isSelected && styles['segmented-control__segment--active'],\n isDisabled && styles['segmented-control__segment--disabled'],\n option.buttonProps?.className,\n )}\n onMouseDown={(event) => {\n option.buttonProps?.onMouseDown?.(event);\n if (isDisabled) event.preventDefault();\n }}\n onClick={(event) => {\n option.buttonProps?.onClick?.(event);\n if (event.defaultPrevented || isDisabled) return;\n setFocusedKey(option.key);\n if (option.key !== value) onChange(option.key);\n }}\n onKeyDown={(event) => {\n option.buttonProps?.onKeyDown?.(event);\n if (event.defaultPrevented) return;\n handleKeyDown(event, option.key);\n }}\n >\n {option.icon != null && (\n <span className={styles['segmented-control__icon']}>\n <IconSlotContext.Provider value={{ size: iconSize }}>\n {option.icon}\n </IconSlotContext.Provider>\n </span>\n )}\n <span className={styles['segmented-control__label']}>\n {option.label}\n </span>\n </button>\n );\n })}\n </div>\n );\n}\n"],"names":["SIZE_ICON_MAP","stepIndex","index","delta","count","arrowDelta","key","isRadio","isRtl","forward","backward","readBox","node","sameBox","a","b","SegmentedControl","options","value","onChange","role","size","className","onBlur","rest","trackRef","useRef","segmentRefs","focusedKey","setFocusedKey","useState","indicator","setIndicator","indicatorReady","setIndicatorReady","itemRole","optionKeys","option","useLayoutEffect","publish","next","current","track","observer","isPlaced","useEffect","prevValue","setPrevValue","iconSize","enabledKeys","focusKey","moveFocus","select","_a","handleBlur","event","active","tabStop","handleKeyDown","jsxs","mergeClassNames","styles","toKebab","jsx","isSelected","isDisabled","createElement","_b","_c","IconSlotContext"],"mappings":"yTAyBMA,EAAwD,CAC5D,MAAO,KACP,OAAQ,IACV,EA8DA,SAASC,EAAUC,EAAeC,EAAeC,EAAe,CAC9D,OAAIF,EAAQ,EAAUC,EAAQ,EAAIC,EAAQ,EAAI,GACtCF,EAAQC,EAAQC,GAASA,CACnC,CAEA,SAASC,EAAWC,EAAaC,EAAkBC,EAAgB,CACjE,MAAMC,EAAUD,EAAQ,YAAc,aAChCE,EAAWF,EAAQ,aAAe,YACxC,OAAIF,IAAQG,GAAYF,GAAWD,IAAQ,YAAqB,EAC5DA,IAAQI,GAAaH,GAAWD,IAAQ,UAAmB,GACxD,CACT,CASA,SAASK,EAAQC,EAA2D,CAC1E,MAAI,CAACA,GAAQA,EAAK,cAAgB,EAAU,KACrC,CACL,EAAGA,EAAK,WACR,EAAGA,EAAK,UACR,MAAOA,EAAK,YACZ,OAAQA,EAAK,YAAA,CAEjB,CAEA,SAASC,EAAQC,EAAwBC,EAAwB,CAC/D,OACED,IAAMC,GACLD,GAAK,MACJC,GAAK,MACLD,EAAE,IAAMC,EAAE,GACVD,EAAE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,EAAAA,QAAO,0BAA0B,EAC/C,WAAO,KAAA,CACV,CAAA,CAGN,CAAC,CAAA,CAAA,CAAA,CAGP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._segmented-control_1azc0_13{position:relative;display:inline-flex;width:fit-content;align-items:center;gap:var(--spacing-xxxxs);padding:var(--spacing-xxxs);border:0;border-radius:var(--radius-m);background-color:rgba(var(--center-channel-color-rgb),var(--opacity-8))}._segmented-control__indicator_1azc0_24{position:absolute;z-index:0;top:0;left:0;border-radius:var(--radius-s);background-color:var(--center-channel-bg);box-shadow:var(--elevation-1);pointer-events:none}@media(forced-colors:active){._segmented-control__indicator_1azc0_24{outline:1px solid Highlight;outline-offset:-1px}}._segmented-control__indicator--ready_1azc0_40{transition:transform var(--duration-quick) var(--ease-transition),width var(--duration-quick) var(--ease-transition),height var(--duration-quick) var(--ease-transition)}@media(prefers-reduced-motion:reduce){._segmented-control__indicator--ready_1azc0_40{transition:none}}._segmented-control__indicator--unpositioned_1azc0_48{visibility:hidden}._segmented-control__segment_1azc0_51{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:var(--spacing-xxs);margin:0;border:0;padding-block:var(--spacing-xxxs);padding-inline:calc(var(--spacing-xs) + var(--spacing-xxxxs));border-radius:var(--radius-s);background-color:transparent;cursor:pointer;font-family:var(--font-family-body);font-weight:var(--font-weight-semibold);color:rgba(var(--center-channel-color-rgb),var(--opacity-72));white-space:nowrap;outline:none}._segmented-control__segment_1azc0_51:focus-visible{outline:2px solid var(--focus-ring-color);outline-offset:3px;animation:_focus-ring-in_1azc0_1 var(--duration-quick) var(--ease-transition)}@media(prefers-reduced-motion:reduce){._segmented-control__segment_1azc0_51:focus-visible{animation:none}}._segmented-control__segment_1azc0_51:not(._-host-shadow-a_1azc0_82):not(._-host-shadow-b_1azc0_82){box-shadow:none;border-radius:var(--radius-s)}@keyframes _focus-ring-in_1azc0_1{0%{outline-color:transparent;outline-offset:0}}._segmented-control__segment_1azc0_51:is(:hover,:focus-visible):not(._segmented-control__segment--active_1azc0_92):not(._segmented-control__segment--disabled_1azc0_92){background-color:rgba(var(--center-channel-color-rgb),var(--opacity-4));color:rgba(var(--center-channel-color-rgb),var(--opacity-88))}._segmented-control__segment--active_1azc0_92{color:var(--center-channel-color)}._segmented-control__segment--disabled_1azc0_92:not(._-host-shadow-a_1azc0_82):not(._-host-shadow-b_1azc0_82){cursor:not-allowed;color:rgba(var(--center-channel-color-rgb),var(--opacity-40))}._segmented-control__icon_1azc0_103{display:inline-flex;flex-shrink:0;align-items:center}._segmented-control__label_1azc0_108{display:inline-flex;align-items:center}._segmented-control--size-small_1azc0_112 ._segmented-control__segment_1azc0_51{font-size:var(--font-size-75);line-height:var(--line-height-75)}._segmented-control--size-medium_1azc0_116 ._segmented-control__segment_1azc0_51{font-size:var(--font-size-100);line-height:var(--line-height-100)}
|