@mattermost/compass-ui 0.1.0-alpha.4 → 0.1.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/compass-ui-standalone.css +10 -0
- package/dist/compass-ui.css +2 -0
- package/dist/components/action-button/ActionButton.cjs +1 -1
- package/dist/components/action-button/ActionButton.cjs.map +1 -1
- package/dist/components/action-button/ActionButton.d.ts +2 -1
- package/dist/components/action-button/ActionButton.d.ts.map +1 -1
- package/dist/components/action-button/ActionButton.js +22 -12
- package/dist/components/action-button/ActionButton.js.map +1 -1
- package/dist/components/action-button/ActionButton.module.css +1 -1
- package/dist/components/action-button/ActionButton.module.scss.cjs +1 -1
- package/dist/components/action-button/ActionButton.module.scss.js +5 -5
- package/dist/components/attachment-card/AttachmentCard.cjs +1 -1
- package/dist/components/attachment-card/AttachmentCard.cjs.map +1 -1
- package/dist/components/attachment-card/AttachmentCard.d.ts +3 -1
- package/dist/components/attachment-card/AttachmentCard.d.ts.map +1 -1
- package/dist/components/attachment-card/AttachmentCard.js +92 -82
- package/dist/components/attachment-card/AttachmentCard.js.map +1 -1
- package/dist/components/attachment-card/AttachmentCard.module.css +1 -1
- package/dist/components/attachment-card/AttachmentCard.module.scss.cjs +1 -1
- package/dist/components/attachment-card/AttachmentCard.module.scss.js +19 -18
- package/dist/components/attachment-card/AttachmentCard.module.scss.js.map +1 -1
- package/dist/components/button/Button.module.css +1 -1
- package/dist/components/button/Button.module.scss.cjs +1 -1
- package/dist/components/button/Button.module.scss.js +15 -15
- 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.d.ts +4 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.d.ts.map +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.js +112 -92
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.js.map +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.css +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.cjs +1 -1
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.js +22 -20
- package/dist/components/channel-sidebar-item/ChannelSidebarItem.module.scss.js.map +1 -1
- package/dist/components/checkbox/Checkbox.cjs +1 -1
- package/dist/components/checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/checkbox/Checkbox.d.ts +3 -3
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/Checkbox.js +21 -20
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox/Checkbox.module.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.d.ts +3 -5
- package/dist/components/chip/Chip.d.ts.map +1 -1
- package/dist/components/chip/Chip.js +90 -48
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/Chip.module.css +1 -1
- package/dist/components/chip/Chip.module.scss.cjs +1 -1
- package/dist/components/chip/Chip.module.scss.js +9 -9
- package/dist/components/chip/ChipGroup.cjs +2 -0
- package/dist/components/chip/ChipGroup.cjs.map +1 -0
- package/dist/components/chip/ChipGroup.d.ts +16 -0
- package/dist/components/chip/ChipGroup.d.ts.map +1 -0
- package/dist/components/chip/ChipGroup.js +112 -0
- package/dist/components/chip/ChipGroup.js.map +1 -0
- package/dist/components/chip/ChipGroup.module.css +1 -0
- package/dist/components/chip/ChipGroup.module.scss.cjs +2 -0
- package/dist/components/chip/ChipGroup.module.scss.cjs.map +1 -0
- package/dist/components/chip/ChipGroup.module.scss.js +7 -0
- package/dist/components/chip/ChipGroup.module.scss.js.map +1 -0
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.d.ts.map +1 -1
- package/dist/components/chip/index.js +4 -2
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/combobox/Combobox.cjs +1 -1
- package/dist/components/combobox/Combobox.cjs.map +1 -1
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.js +115 -109
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/combobox/Combobox.module.css +1 -1
- package/dist/components/combobox/Combobox.module.scss.cjs +1 -1
- package/dist/components/combobox/Combobox.module.scss.js +27 -29
- 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.js +154 -154
- package/dist/components/date-range-picker/DateRangePicker.js.map +1 -1
- package/dist/components/date-range-picker/DateRangePicker.module.css +1 -1
- package/dist/components/date-range-picker/DateRangePicker.module.scss.cjs +1 -1
- package/dist/components/date-range-picker/DateRangePicker.module.scss.js +28 -45
- package/dist/components/dropdown/Dropdown.cjs +1 -1
- package/dist/components/dropdown/Dropdown.cjs.map +1 -1
- package/dist/components/dropdown/Dropdown.js +1 -1
- package/dist/components/dropdown/Dropdown.js.map +1 -1
- package/dist/components/dropdown/Dropdown.module.css +1 -1
- package/dist/components/dropdown/Dropdown.module.scss.cjs +1 -1
- package/dist/components/dropdown/Dropdown.module.scss.js +15 -16
- package/dist/components/global-banner/GlobalBanner.module.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.js +6 -6
- package/dist/components/icon-button/IconButton.cjs +1 -1
- package/dist/components/icon-button/IconButton.cjs.map +1 -1
- package/dist/components/icon-button/IconButton.d.ts +1 -1
- package/dist/components/icon-button/IconButton.d.ts.map +1 -1
- package/dist/components/icon-button/IconButton.js +14 -14
- package/dist/components/icon-button/IconButton.js.map +1 -1
- package/dist/components/icon-button/IconButton.module.css +1 -1
- package/dist/components/icon-button/IconButton.module.scss.cjs +1 -1
- package/dist/components/icon-button/IconButton.module.scss.js +15 -15
- package/dist/components/illustration/Illustration.cjs.map +1 -1
- package/dist/components/illustration/Illustration.d.ts +5 -5
- package/dist/components/illustration/Illustration.d.ts.map +1 -1
- package/dist/components/illustration/Illustration.js.map +1 -1
- package/dist/components/image-preview/ImagePreview.cjs +1 -1
- package/dist/components/image-preview/ImagePreview.cjs.map +1 -1
- package/dist/components/image-preview/ImagePreview.d.ts +2 -1
- package/dist/components/image-preview/ImagePreview.d.ts.map +1 -1
- package/dist/components/image-preview/ImagePreview.js +70 -52
- package/dist/components/image-preview/ImagePreview.js.map +1 -1
- package/dist/components/image-preview/ImagePreview.module.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/menu-item/MenuItem.cjs +1 -1
- package/dist/components/menu-item/MenuItem.cjs.map +1 -1
- package/dist/components/menu-item/MenuItem.js +11 -11
- package/dist/components/menu-item/MenuItem.js.map +1 -1
- package/dist/components/menu-item/MenuItem.module.css +1 -1
- package/dist/components/menu-item/MenuItem.module.scss.cjs +1 -1
- package/dist/components/menu-item/MenuItem.module.scss.js +16 -16
- package/dist/components/message-reactions/MessageReactions.module.css +1 -1
- package/dist/components/message-reactions/MessageReactions.module.scss.cjs +1 -1
- package/dist/components/message-reactions/MessageReactions.module.scss.js +12 -12
- package/dist/components/more-unreads-banner/MoreUnreadsBanner.module.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 +5 -5
- package/dist/components/pagination-dots/PaginationDots.module.css +1 -1
- package/dist/components/pagination-dots/PaginationDots.module.scss.cjs +1 -1
- package/dist/components/pagination-dots/PaginationDots.module.scss.js +8 -8
- package/dist/components/radio/Radio.cjs +1 -1
- package/dist/components/radio/Radio.cjs.map +1 -1
- package/dist/components/radio/Radio.d.ts +3 -3
- package/dist/components/radio/Radio.d.ts.map +1 -1
- package/dist/components/radio/Radio.js +11 -11
- package/dist/components/radio/Radio.js.map +1 -1
- package/dist/components/radio/Radio.module.css +1 -1
- package/dist/components/radio/Radio.module.scss.cjs +1 -1
- package/dist/components/radio/Radio.module.scss.js +11 -11
- package/dist/components/right-sidebar-header/RightSidebarHeader.cjs +2 -0
- package/dist/components/right-sidebar-header/RightSidebarHeader.cjs.map +1 -0
- package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.d.ts +1 -1
- package/dist/components/right-sidebar-header/RightSidebarHeader.d.ts.map +1 -0
- package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.js +3 -3
- package/dist/components/right-sidebar-header/RightSidebarHeader.js.map +1 -0
- package/dist/components/right-sidebar-header/RightSidebarHeader.module.css +1 -0
- package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.cjs +2 -0
- package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.js +12 -12
- package/dist/components/{app-bar-item → right-sidebar-header}/index.cjs +1 -1
- package/dist/components/right-sidebar-header/index.d.ts +3 -0
- package/dist/components/right-sidebar-header/index.d.ts.map +1 -0
- package/dist/components/right-sidebar-header/index.js +5 -0
- package/dist/components/search-input/SearchInput.cjs +1 -1
- package/dist/components/search-input/SearchInput.cjs.map +1 -1
- package/dist/components/search-input/SearchInput.d.ts +2 -0
- package/dist/components/search-input/SearchInput.d.ts.map +1 -1
- package/dist/components/search-input/SearchInput.js +78 -64
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/search-input/SearchInput.module.css +1 -1
- package/dist/components/search-input/SearchInput.module.scss.cjs +1 -1
- package/dist/components/search-input/SearchInput.module.scss.js +16 -23
- package/dist/components/search-input/SearchInput.module.scss.js.map +1 -1
- package/dist/components/select/Select.cjs +1 -1
- package/dist/components/select/Select.cjs.map +1 -1
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +64 -64
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/Select.module.css +1 -1
- package/dist/components/select/Select.module.scss.cjs +1 -1
- package/dist/components/select/Select.module.scss.js +24 -26
- package/dist/components/switch/Switch.cjs +1 -1
- package/dist/components/switch/Switch.cjs.map +1 -1
- package/dist/components/switch/Switch.d.ts.map +1 -1
- package/dist/components/switch/Switch.js +2 -2
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/switch/Switch.module.css +1 -1
- package/dist/components/switch/Switch.module.scss.cjs +1 -1
- package/dist/components/switch/Switch.module.scss.js +15 -15
- package/dist/components/tabs/Tabs.cjs +1 -1
- package/dist/components/tabs/Tabs.cjs.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +4 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +47 -31
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/Tabs.module.css +1 -1
- package/dist/components/tabs/Tabs.module.scss.cjs +1 -1
- package/dist/components/tabs/Tabs.module.scss.js +8 -7
- package/dist/components/tabs/Tabs.module.scss.js.map +1 -1
- package/dist/components/tag/Tag.module.css +1 -1
- package/dist/components/tag/Tag.module.scss.cjs +1 -1
- package/dist/components/tag/Tag.module.scss.js +15 -15
- package/dist/components/text-area/TextArea.cjs +1 -1
- package/dist/components/text-area/TextArea.cjs.map +1 -1
- package/dist/components/text-area/TextArea.d.ts.map +1 -1
- package/dist/components/text-area/TextArea.js +57 -56
- package/dist/components/text-area/TextArea.js.map +1 -1
- package/dist/components/text-area/TextArea.module.css +1 -1
- package/dist/components/text-area/TextArea.module.scss.cjs +1 -1
- package/dist/components/text-area/TextArea.module.scss.js +12 -17
- package/dist/components/text-input/TextInput.cjs +1 -1
- package/dist/components/text-input/TextInput.cjs.map +1 -1
- package/dist/components/text-input/TextInput.d.ts.map +1 -1
- package/dist/components/text-input/TextInput.js +59 -58
- package/dist/components/text-input/TextInput.js.map +1 -1
- package/dist/components/text-input/TextInput.module.css +1 -1
- package/dist/components/text-input/TextInput.module.scss.cjs +1 -1
- package/dist/components/text-input/TextInput.module.scss.js +16 -24
- 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.d.ts +7 -8
- package/dist/components/thread-footer/ThreadFooter.d.ts.map +1 -1
- package/dist/components/thread-footer/ThreadFooter.js +59 -62
- package/dist/components/thread-footer/ThreadFooter.js.map +1 -1
- package/dist/components/thread-footer/ThreadFooter.module.css +1 -1
- package/dist/components/thread-footer/ThreadFooter.module.scss.cjs +1 -1
- package/dist/components/thread-footer/ThreadFooter.module.scss.js +17 -17
- package/dist/components/thread-footer/index.d.ts +7 -1
- package/dist/components/thread-footer/index.d.ts.map +1 -1
- package/dist/components/thread-list-item/ThreadListItem.cjs +1 -1
- package/dist/components/thread-list-item/ThreadListItem.cjs.map +1 -1
- package/dist/components/thread-list-item/ThreadListItem.d.ts +1 -1
- package/dist/components/thread-list-item/ThreadListItem.d.ts.map +1 -1
- package/dist/components/thread-list-item/ThreadListItem.js +102 -87
- package/dist/components/thread-list-item/ThreadListItem.js.map +1 -1
- package/dist/components/thread-list-item/ThreadListItem.module.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 -23
- package/dist/components/thread-list-item/ThreadListItem.module.scss.js.map +1 -1
- package/dist/components/toast/Toast.cjs +1 -1
- package/dist/components/toast/Toast.cjs.map +1 -1
- package/dist/components/toast/Toast.d.ts.map +1 -1
- package/dist/components/toast/Toast.js +31 -31
- package/dist/components/toast/Toast.js.map +1 -1
- package/dist/components/toast/Toast.module.css +1 -1
- package/dist/components/toast/Toast.module.scss.cjs +1 -1
- package/dist/components/toast/Toast.module.scss.js +14 -13
- package/dist/components/toast/Toast.module.scss.js.map +1 -1
- package/dist/components/tour-point/TourPoint.module.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/illustrations/ai-copilot-intro.cjs +2 -0
- package/dist/illustrations/ai-copilot-intro.cjs.map +1 -0
- package/dist/illustrations/ai-copilot-intro.d.ts +4 -0
- package/dist/illustrations/ai-copilot-intro.js +5 -0
- package/dist/illustrations/ai-copilot-intro.js.map +1 -0
- package/dist/illustrations/ai-copilot-intro.svg.cjs +2 -0
- package/dist/illustrations/ai-copilot-intro.svg.cjs.map +1 -0
- package/dist/illustrations/ai-copilot-intro.svg.js +6 -0
- package/dist/illustrations/ai-copilot-intro.svg.js.map +1 -0
- package/dist/illustrations/alert-on-sidebar-bg.cjs +2 -0
- package/dist/illustrations/alert-on-sidebar-bg.cjs.map +1 -0
- package/dist/illustrations/alert-on-sidebar-bg.d.ts +4 -0
- package/dist/illustrations/alert-on-sidebar-bg.js +5 -0
- package/dist/illustrations/alert-on-sidebar-bg.js.map +1 -0
- package/dist/illustrations/alert-on-sidebar-bg.svg.cjs +2 -0
- package/dist/illustrations/alert-on-sidebar-bg.svg.cjs.map +1 -0
- package/dist/illustrations/alert-on-sidebar-bg.svg.js +6 -0
- package/dist/illustrations/alert-on-sidebar-bg.svg.js.map +1 -0
- package/dist/illustrations/alert.cjs +2 -0
- package/dist/illustrations/alert.cjs.map +1 -0
- package/dist/illustrations/alert.d.ts +4 -0
- package/dist/illustrations/alert.js +5 -0
- package/dist/illustrations/alert.js.map +1 -0
- package/dist/illustrations/alert.svg.cjs +2 -0
- package/dist/illustrations/alert.svg.cjs.map +1 -0
- package/dist/illustrations/alert.svg.js +6 -0
- package/dist/illustrations/alert.svg.js.map +1 -0
- package/dist/illustrations/archived-channel.cjs +2 -0
- package/dist/illustrations/archived-channel.cjs.map +1 -0
- package/dist/illustrations/archived-channel.d.ts +4 -0
- package/dist/illustrations/archived-channel.js +5 -0
- package/dist/illustrations/archived-channel.js.map +1 -0
- package/dist/illustrations/archived-channel.svg.cjs +2 -0
- package/dist/illustrations/archived-channel.svg.cjs.map +1 -0
- package/dist/illustrations/archived-channel.svg.js +6 -0
- package/dist/illustrations/archived-channel.svg.js.map +1 -0
- package/dist/illustrations/auto-translation.cjs +2 -0
- package/dist/illustrations/auto-translation.cjs.map +1 -0
- package/dist/illustrations/auto-translation.d.ts +4 -0
- package/dist/illustrations/auto-translation.js +5 -0
- package/dist/illustrations/auto-translation.js.map +1 -0
- package/dist/illustrations/auto-translation.svg.cjs +2 -0
- package/dist/illustrations/auto-translation.svg.cjs.map +1 -0
- package/dist/illustrations/auto-translation.svg.js +6 -0
- package/dist/illustrations/auto-translation.svg.js.map +1 -0
- package/dist/illustrations/banners.cjs +2 -0
- package/dist/illustrations/banners.cjs.map +1 -0
- package/dist/illustrations/banners.d.ts +4 -0
- package/dist/illustrations/banners.js +5 -0
- package/dist/illustrations/banners.js.map +1 -0
- package/dist/illustrations/banners.svg.cjs +2 -0
- package/dist/illustrations/banners.svg.cjs.map +1 -0
- package/dist/illustrations/banners.svg.js +6 -0
- package/dist/illustrations/banners.svg.js.map +1 -0
- package/dist/illustrations/billing-history.cjs +2 -0
- package/dist/illustrations/billing-history.cjs.map +1 -0
- package/dist/illustrations/billing-history.d.ts +4 -0
- package/dist/illustrations/billing-history.js +5 -0
- package/dist/illustrations/billing-history.js.map +1 -0
- package/dist/illustrations/billing-history.svg.cjs +2 -0
- package/dist/illustrations/billing-history.svg.cjs.map +1 -0
- package/dist/illustrations/billing-history.svg.js +6 -0
- package/dist/illustrations/billing-history.svg.js.map +1 -0
- package/dist/illustrations/blank-playbook.cjs +2 -0
- package/dist/illustrations/blank-playbook.cjs.map +1 -0
- package/dist/illustrations/blank-playbook.d.ts +4 -0
- package/dist/illustrations/blank-playbook.js +5 -0
- package/dist/illustrations/blank-playbook.js.map +1 -0
- package/dist/illustrations/blank-playbook.svg.cjs +2 -0
- package/dist/illustrations/blank-playbook.svg.cjs.map +1 -0
- package/dist/illustrations/blank-playbook.svg.js +6 -0
- package/dist/illustrations/blank-playbook.svg.js.map +1 -0
- package/dist/illustrations/bot-accounts.cjs +2 -0
- package/dist/illustrations/bot-accounts.cjs.map +1 -0
- package/dist/illustrations/bot-accounts.d.ts +4 -0
- package/dist/illustrations/bot-accounts.js +5 -0
- package/dist/illustrations/bot-accounts.js.map +1 -0
- package/dist/illustrations/bot-accounts.svg.cjs +2 -0
- package/dist/illustrations/bot-accounts.svg.cjs.map +1 -0
- package/dist/illustrations/bot-accounts.svg.js +6 -0
- package/dist/illustrations/bot-accounts.svg.js.map +1 -0
- package/dist/illustrations/browser-or-desktop.cjs +2 -0
- package/dist/illustrations/browser-or-desktop.cjs.map +1 -0
- package/dist/illustrations/browser-or-desktop.d.ts +4 -0
- package/dist/illustrations/browser-or-desktop.js +5 -0
- package/dist/illustrations/browser-or-desktop.js.map +1 -0
- package/dist/illustrations/browser-or-desktop.svg.cjs +2 -0
- package/dist/illustrations/browser-or-desktop.svg.cjs.map +1 -0
- package/dist/illustrations/browser-or-desktop.svg.js +6 -0
- package/dist/illustrations/browser-or-desktop.svg.js.map +1 -0
- package/dist/illustrations/bug-bash.cjs +2 -0
- package/dist/illustrations/bug-bash.cjs.map +1 -0
- package/dist/illustrations/bug-bash.d.ts +4 -0
- package/dist/illustrations/bug-bash.js +5 -0
- package/dist/illustrations/bug-bash.js.map +1 -0
- package/dist/illustrations/bug-bash.svg.cjs +2 -0
- package/dist/illustrations/bug-bash.svg.cjs.map +1 -0
- package/dist/illustrations/bug-bash.svg.js +6 -0
- package/dist/illustrations/bug-bash.svg.js.map +1 -0
- package/dist/illustrations/calls.cjs +2 -0
- package/dist/illustrations/calls.cjs.map +1 -0
- package/dist/illustrations/calls.d.ts +4 -0
- package/dist/illustrations/calls.js +5 -0
- package/dist/illustrations/calls.js.map +1 -0
- package/dist/illustrations/calls.svg.cjs +2 -0
- package/dist/illustrations/calls.svg.cjs.map +1 -0
- package/dist/illustrations/calls.svg.js +6 -0
- package/dist/illustrations/calls.svg.js.map +1 -0
- package/dist/illustrations/collaborate.cjs +2 -0
- package/dist/illustrations/collaborate.cjs.map +1 -0
- package/dist/illustrations/collaborate.d.ts +4 -0
- package/dist/illustrations/collaborate.js +5 -0
- package/dist/illustrations/collaborate.js.map +1 -0
- package/dist/illustrations/collaborate.svg.cjs +2 -0
- package/dist/illustrations/collaborate.svg.cjs.map +1 -0
- package/dist/illustrations/collaborate.svg.js +6 -0
- package/dist/illustrations/collaborate.svg.js.map +1 -0
- package/dist/illustrations/compliance-exports.cjs +2 -0
- package/dist/illustrations/compliance-exports.cjs.map +1 -0
- package/dist/illustrations/compliance-exports.d.ts +4 -0
- package/dist/illustrations/compliance-exports.js +5 -0
- package/dist/illustrations/compliance-exports.js.map +1 -0
- package/dist/illustrations/compliance-exports.svg.cjs +2 -0
- package/dist/illustrations/compliance-exports.svg.cjs.map +1 -0
- package/dist/illustrations/compliance-exports.svg.js +6 -0
- package/dist/illustrations/compliance-exports.svg.js.map +1 -0
- package/dist/illustrations/copilot-bot.cjs +2 -0
- package/dist/illustrations/copilot-bot.cjs.map +1 -0
- package/dist/illustrations/copilot-bot.d.ts +4 -0
- package/dist/illustrations/copilot-bot.js +5 -0
- package/dist/illustrations/copilot-bot.js.map +1 -0
- package/dist/illustrations/copilot-bot.svg.cjs +2 -0
- package/dist/illustrations/copilot-bot.svg.cjs.map +1 -0
- package/dist/illustrations/copilot-bot.svg.js +6 -0
- package/dist/illustrations/copilot-bot.svg.js.map +1 -0
- package/dist/illustrations/custom-branding.cjs +2 -0
- package/dist/illustrations/custom-branding.cjs.map +1 -0
- package/dist/illustrations/custom-branding.d.ts +4 -0
- package/dist/illustrations/custom-branding.js +5 -0
- package/dist/illustrations/custom-branding.js.map +1 -0
- package/dist/illustrations/custom-branding.svg.cjs +2 -0
- package/dist/illustrations/custom-branding.svg.cjs.map +1 -0
- package/dist/illustrations/custom-branding.svg.js +6 -0
- package/dist/illustrations/custom-branding.svg.js.map +1 -0
- package/dist/illustrations/custom-terms.cjs +2 -0
- package/dist/illustrations/custom-terms.cjs.map +1 -0
- package/dist/illustrations/custom-terms.d.ts +4 -0
- package/dist/illustrations/custom-terms.js +5 -0
- package/dist/illustrations/custom-terms.js.map +1 -0
- package/dist/illustrations/custom-terms.svg.cjs +2 -0
- package/dist/illustrations/custom-terms.svg.cjs.map +1 -0
- package/dist/illustrations/custom-terms.svg.js +6 -0
- package/dist/illustrations/custom-terms.svg.js.map +1 -0
- package/dist/illustrations/customer-onboarding.cjs +2 -0
- package/dist/illustrations/customer-onboarding.cjs.map +1 -0
- package/dist/illustrations/customer-onboarding.d.ts +4 -0
- package/dist/illustrations/customer-onboarding.js +5 -0
- package/dist/illustrations/customer-onboarding.js.map +1 -0
- package/dist/illustrations/customer-onboarding.svg.cjs +2 -0
- package/dist/illustrations/customer-onboarding.svg.cjs.map +1 -0
- package/dist/illustrations/customer-onboarding.svg.js +6 -0
- package/dist/illustrations/customer-onboarding.svg.js.map +1 -0
- package/dist/illustrations/data-retention.cjs +2 -0
- package/dist/illustrations/data-retention.cjs.map +1 -0
- package/dist/illustrations/data-retention.d.ts +4 -0
- package/dist/illustrations/data-retention.js +5 -0
- package/dist/illustrations/data-retention.js.map +1 -0
- package/dist/illustrations/data-retention.svg.cjs +2 -0
- package/dist/illustrations/data-retention.svg.cjs.map +1 -0
- package/dist/illustrations/data-retention.svg.js +6 -0
- package/dist/illustrations/data-retention.svg.js.map +1 -0
- package/dist/illustrations/drafts-empty.cjs +2 -0
- package/dist/illustrations/drafts-empty.cjs.map +1 -0
- package/dist/illustrations/drafts-empty.d.ts +4 -0
- package/dist/illustrations/drafts-empty.js +5 -0
- package/dist/illustrations/drafts-empty.js.map +1 -0
- package/dist/illustrations/drafts-empty.svg.cjs +2 -0
- package/dist/illustrations/drafts-empty.svg.cjs.map +1 -0
- package/dist/illustrations/drafts-empty.svg.js +6 -0
- package/dist/illustrations/drafts-empty.svg.js.map +1 -0
- package/dist/illustrations/employee-onboarding.cjs +2 -0
- package/dist/illustrations/employee-onboarding.cjs.map +1 -0
- package/dist/illustrations/employee-onboarding.d.ts +4 -0
- package/dist/illustrations/employee-onboarding.js +5 -0
- package/dist/illustrations/employee-onboarding.js.map +1 -0
- package/dist/illustrations/employee-onboarding.svg.cjs +2 -0
- package/dist/illustrations/employee-onboarding.svg.cjs.map +1 -0
- package/dist/illustrations/employee-onboarding.svg.js +6 -0
- package/dist/illustrations/employee-onboarding.svg.js.map +1 -0
- package/dist/illustrations/feature-lifecycle.cjs +2 -0
- package/dist/illustrations/feature-lifecycle.cjs.map +1 -0
- package/dist/illustrations/feature-lifecycle.d.ts +4 -0
- package/dist/illustrations/feature-lifecycle.js +5 -0
- package/dist/illustrations/feature-lifecycle.js.map +1 -0
- package/dist/illustrations/feature-lifecycle.svg.cjs +2 -0
- package/dist/illustrations/feature-lifecycle.svg.cjs.map +1 -0
- package/dist/illustrations/feature-lifecycle.svg.js +6 -0
- package/dist/illustrations/feature-lifecycle.svg.js.map +1 -0
- package/dist/illustrations/file-search-empty.cjs +2 -0
- package/dist/illustrations/file-search-empty.cjs.map +1 -0
- package/dist/illustrations/file-search-empty.d.ts +4 -0
- package/dist/illustrations/file-search-empty.js +5 -0
- package/dist/illustrations/file-search-empty.js.map +1 -0
- package/dist/illustrations/file-search-empty.svg.cjs +2 -0
- package/dist/illustrations/file-search-empty.svg.cjs.map +1 -0
- package/dist/illustrations/file-search-empty.svg.js +6 -0
- package/dist/illustrations/file-search-empty.svg.js.map +1 -0
- package/dist/illustrations/globe.cjs +2 -0
- package/dist/illustrations/globe.cjs.map +1 -0
- package/dist/illustrations/globe.d.ts +4 -0
- package/dist/illustrations/globe.js +5 -0
- package/dist/illustrations/globe.js.map +1 -0
- package/dist/illustrations/globe.svg.cjs +2 -0
- package/dist/illustrations/globe.svg.cjs.map +1 -0
- package/dist/illustrations/globe.svg.js +6 -0
- package/dist/illustrations/globe.svg.js.map +1 -0
- package/dist/illustrations/group.cjs +2 -0
- package/dist/illustrations/group.cjs.map +1 -0
- package/dist/illustrations/group.d.ts +4 -0
- package/dist/illustrations/group.js +5 -0
- package/dist/illustrations/group.js.map +1 -0
- package/dist/illustrations/group.svg.cjs +2 -0
- package/dist/illustrations/group.svg.cjs.map +1 -0
- package/dist/illustrations/group.svg.js +12 -0
- package/dist/illustrations/group.svg.js.map +1 -0
- package/dist/illustrations/groups.cjs +2 -0
- package/dist/illustrations/groups.cjs.map +1 -0
- package/dist/illustrations/groups.d.ts +4 -0
- package/dist/illustrations/groups.js +5 -0
- package/dist/illustrations/groups.js.map +1 -0
- package/dist/illustrations/groups.svg.cjs +2 -0
- package/dist/illustrations/groups.svg.cjs.map +1 -0
- package/dist/illustrations/groups.svg.js +12 -0
- package/dist/illustrations/groups.svg.js.map +1 -0
- package/dist/illustrations/incident-resolution.cjs +2 -0
- package/dist/illustrations/incident-resolution.cjs.map +1 -0
- package/dist/illustrations/incident-resolution.d.ts +4 -0
- package/dist/illustrations/incident-resolution.js +5 -0
- package/dist/illustrations/incident-resolution.js.map +1 -0
- package/dist/illustrations/incident-resolution.svg.cjs +2 -0
- package/dist/illustrations/incident-resolution.svg.cjs.map +1 -0
- package/dist/illustrations/incident-resolution.svg.js +6 -0
- package/dist/illustrations/incident-resolution.svg.js.map +1 -0
- package/dist/illustrations/incoming-webhook.cjs +2 -0
- package/dist/illustrations/incoming-webhook.cjs.map +1 -0
- package/dist/illustrations/incoming-webhook.d.ts +4 -0
- package/dist/illustrations/incoming-webhook.js +5 -0
- package/dist/illustrations/incoming-webhook.js.map +1 -0
- package/dist/illustrations/incoming-webhook.svg.cjs +2 -0
- package/dist/illustrations/incoming-webhook.svg.cjs.map +1 -0
- package/dist/illustrations/incoming-webhook.svg.js +6 -0
- package/dist/illustrations/incoming-webhook.svg.js.map +1 -0
- package/dist/illustrations/intune-mam.cjs +2 -0
- package/dist/illustrations/intune-mam.cjs.map +1 -0
- package/dist/illustrations/intune-mam.d.ts +4 -0
- package/dist/illustrations/intune-mam.js +5 -0
- package/dist/illustrations/intune-mam.js.map +1 -0
- package/dist/illustrations/intune-mam.svg.cjs +2 -0
- package/dist/illustrations/intune-mam.svg.cjs.map +1 -0
- package/dist/illustrations/intune-mam.svg.js +8 -0
- package/dist/illustrations/intune-mam.svg.js.map +1 -0
- package/dist/illustrations/learn-playbooks.cjs +2 -0
- package/dist/illustrations/learn-playbooks.cjs.map +1 -0
- package/dist/illustrations/learn-playbooks.d.ts +4 -0
- package/dist/illustrations/learn-playbooks.js +5 -0
- package/dist/illustrations/learn-playbooks.js.map +1 -0
- package/dist/illustrations/learn-playbooks.svg.cjs +2 -0
- package/dist/illustrations/learn-playbooks.svg.cjs.map +1 -0
- package/dist/illustrations/learn-playbooks.svg.js +6 -0
- package/dist/illustrations/learn-playbooks.svg.js.map +1 -0
- package/dist/illustrations/locked-messages.cjs +2 -0
- package/dist/illustrations/locked-messages.cjs.map +1 -0
- package/dist/illustrations/locked-messages.d.ts +4 -0
- package/dist/illustrations/locked-messages.js +5 -0
- package/dist/illustrations/locked-messages.js.map +1 -0
- package/dist/illustrations/locked-messages.svg.cjs +2 -0
- package/dist/illustrations/locked-messages.svg.cjs.map +1 -0
- package/dist/illustrations/locked-messages.svg.js +6 -0
- package/dist/illustrations/locked-messages.svg.js.map +1 -0
- package/dist/illustrations/mentions-empty.cjs +2 -0
- package/dist/illustrations/mentions-empty.cjs.map +1 -0
- package/dist/illustrations/mentions-empty.d.ts +4 -0
- package/dist/illustrations/mentions-empty.js +5 -0
- package/dist/illustrations/mentions-empty.js.map +1 -0
- package/dist/illustrations/mentions-empty.svg.cjs +2 -0
- package/dist/illustrations/mentions-empty.svg.cjs.map +1 -0
- package/dist/illustrations/mentions-empty.svg.js +6 -0
- package/dist/illustrations/mentions-empty.svg.js.map +1 -0
- package/dist/illustrations/message-not-viewable.cjs +2 -0
- package/dist/illustrations/message-not-viewable.cjs.map +1 -0
- package/dist/illustrations/message-not-viewable.d.ts +4 -0
- package/dist/illustrations/message-not-viewable.js +5 -0
- package/dist/illustrations/message-not-viewable.js.map +1 -0
- package/dist/illustrations/message-not-viewable.svg.cjs +2 -0
- package/dist/illustrations/message-not-viewable.svg.cjs.map +1 -0
- package/dist/illustrations/message-not-viewable.svg.js +6 -0
- package/dist/illustrations/message-not-viewable.svg.js.map +1 -0
- package/dist/illustrations/message-search-empty.cjs +2 -0
- package/dist/illustrations/message-search-empty.cjs.map +1 -0
- package/dist/illustrations/message-search-empty.d.ts +4 -0
- package/dist/illustrations/message-search-empty.js +5 -0
- package/dist/illustrations/message-search-empty.js.map +1 -0
- package/dist/illustrations/message-search-empty.svg.cjs +2 -0
- package/dist/illustrations/message-search-empty.svg.cjs.map +1 -0
- package/dist/illustrations/message-search-empty.svg.js +6 -0
- package/dist/illustrations/message-search-empty.svg.js.map +1 -0
- package/dist/illustrations/mfa-complete.cjs +2 -0
- package/dist/illustrations/mfa-complete.cjs.map +1 -0
- package/dist/illustrations/mfa-complete.d.ts +4 -0
- package/dist/illustrations/mfa-complete.js +5 -0
- package/dist/illustrations/mfa-complete.js.map +1 -0
- package/dist/illustrations/mfa-complete.svg.cjs +2 -0
- package/dist/illustrations/mfa-complete.svg.cjs.map +1 -0
- package/dist/illustrations/mfa-complete.svg.js +6 -0
- package/dist/illustrations/mfa-complete.svg.js.map +1 -0
- package/dist/illustrations/mfa.cjs +2 -0
- package/dist/illustrations/mfa.cjs.map +1 -0
- package/dist/illustrations/mfa.d.ts +4 -0
- package/dist/illustrations/mfa.js +5 -0
- package/dist/illustrations/mfa.js.map +1 -0
- package/dist/illustrations/mfa.svg.cjs +2 -0
- package/dist/illustrations/mfa.svg.cjs.map +1 -0
- package/dist/illustrations/mfa.svg.js +6 -0
- package/dist/illustrations/mfa.svg.js.map +1 -0
- package/dist/illustrations/mobile-protection.cjs +2 -0
- package/dist/illustrations/mobile-protection.cjs.map +1 -0
- package/dist/illustrations/mobile-protection.d.ts +4 -0
- package/dist/illustrations/mobile-protection.js +5 -0
- package/dist/illustrations/mobile-protection.js.map +1 -0
- package/dist/illustrations/mobile-protection.svg.cjs +2 -0
- package/dist/illustrations/mobile-protection.svg.cjs.map +1 -0
- package/dist/illustrations/mobile-protection.svg.js +6 -0
- package/dist/illustrations/mobile-protection.svg.js.map +1 -0
- package/dist/illustrations/mobile-security.cjs +2 -0
- package/dist/illustrations/mobile-security.cjs.map +1 -0
- package/dist/illustrations/mobile-security.d.ts +4 -0
- package/dist/illustrations/mobile-security.js +5 -0
- package/dist/illustrations/mobile-security.js.map +1 -0
- package/dist/illustrations/mobile-security.svg.cjs +2 -0
- package/dist/illustrations/mobile-security.svg.cjs.map +1 -0
- package/dist/illustrations/mobile-security.svg.js +6 -0
- package/dist/illustrations/mobile-security.svg.js.map +1 -0
- package/dist/illustrations/names.cjs +2 -0
- package/dist/illustrations/names.cjs.map +1 -0
- package/dist/illustrations/names.d.ts +3 -0
- package/dist/illustrations/names.d.ts.map +1 -0
- package/dist/illustrations/names.js +73 -0
- package/dist/illustrations/names.js.map +1 -0
- package/dist/illustrations/new-password.cjs +2 -0
- package/dist/illustrations/new-password.cjs.map +1 -0
- package/dist/illustrations/new-password.d.ts +4 -0
- package/dist/illustrations/new-password.js +5 -0
- package/dist/illustrations/new-password.js.map +1 -0
- package/dist/illustrations/new-password.svg.cjs +2 -0
- package/dist/illustrations/new-password.svg.cjs.map +1 -0
- package/dist/illustrations/new-password.svg.js +6 -0
- package/dist/illustrations/new-password.svg.js.map +1 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.cjs +2 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.cjs.map +1 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.d.ts +4 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.js +5 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.js.map +1 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.svg.cjs +2 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.svg.cjs.map +1 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.svg.js +6 -0
- package/dist/illustrations/no-unreads-on-sidebar-bg.svg.js.map +1 -0
- package/dist/illustrations/office.cjs +2 -0
- package/dist/illustrations/office.cjs.map +1 -0
- package/dist/illustrations/office.d.ts +4 -0
- package/dist/illustrations/office.js +5 -0
- package/dist/illustrations/office.js.map +1 -0
- package/dist/illustrations/office.svg.cjs +2 -0
- package/dist/illustrations/office.svg.cjs.map +1 -0
- package/dist/illustrations/office.svg.js +6 -0
- package/dist/illustrations/office.svg.js.map +1 -0
- package/dist/illustrations/outgoing-webhook.cjs +2 -0
- package/dist/illustrations/outgoing-webhook.cjs.map +1 -0
- package/dist/illustrations/outgoing-webhook.d.ts +4 -0
- package/dist/illustrations/outgoing-webhook.js +5 -0
- package/dist/illustrations/outgoing-webhook.js.map +1 -0
- package/dist/illustrations/outgoing-webhook.svg.cjs +2 -0
- package/dist/illustrations/outgoing-webhook.svg.cjs.map +1 -0
- package/dist/illustrations/outgoing-webhook.svg.js +6 -0
- package/dist/illustrations/outgoing-webhook.svg.js.map +1 -0
- package/dist/illustrations/pinned-empty.cjs +2 -0
- package/dist/illustrations/pinned-empty.cjs.map +1 -0
- package/dist/illustrations/pinned-empty.d.ts +4 -0
- package/dist/illustrations/pinned-empty.js +5 -0
- package/dist/illustrations/pinned-empty.js.map +1 -0
- package/dist/illustrations/pinned-empty.svg.cjs +2 -0
- package/dist/illustrations/pinned-empty.svg.cjs.map +1 -0
- package/dist/illustrations/pinned-empty.svg.js +6 -0
- package/dist/illustrations/pinned-empty.svg.js.map +1 -0
- package/dist/illustrations/playbooks-empty.cjs +2 -0
- package/dist/illustrations/playbooks-empty.cjs.map +1 -0
- package/dist/illustrations/playbooks-empty.d.ts +4 -0
- package/dist/illustrations/playbooks-empty.js +5 -0
- package/dist/illustrations/playbooks-empty.js.map +1 -0
- package/dist/illustrations/playbooks-empty.svg.cjs +2 -0
- package/dist/illustrations/playbooks-empty.svg.cjs.map +1 -0
- package/dist/illustrations/playbooks-empty.svg.js +6 -0
- package/dist/illustrations/playbooks-empty.svg.js.map +1 -0
- package/dist/illustrations/private-channel-intro.cjs +2 -0
- package/dist/illustrations/private-channel-intro.cjs.map +1 -0
- package/dist/illustrations/private-channel-intro.d.ts +4 -0
- package/dist/illustrations/private-channel-intro.js +5 -0
- package/dist/illustrations/private-channel-intro.js.map +1 -0
- package/dist/illustrations/private-channel-intro.svg.cjs +2 -0
- package/dist/illustrations/private-channel-intro.svg.cjs.map +1 -0
- package/dist/illustrations/private-channel-intro.svg.js +6 -0
- package/dist/illustrations/private-channel-intro.svg.js.map +1 -0
- package/dist/illustrations/product-release.cjs +2 -0
- package/dist/illustrations/product-release.cjs.map +1 -0
- package/dist/illustrations/product-release.d.ts +4 -0
- package/dist/illustrations/product-release.js +5 -0
- package/dist/illustrations/product-release.js.map +1 -0
- package/dist/illustrations/product-release.svg.cjs +2 -0
- package/dist/illustrations/product-release.svg.cjs.map +1 -0
- package/dist/illustrations/product-release.svg.js +6 -0
- package/dist/illustrations/product-release.svg.js.map +1 -0
- package/dist/illustrations/public-channel-intro.cjs +2 -0
- package/dist/illustrations/public-channel-intro.cjs.map +1 -0
- package/dist/illustrations/public-channel-intro.d.ts +4 -0
- package/dist/illustrations/public-channel-intro.js +5 -0
- package/dist/illustrations/public-channel-intro.js.map +1 -0
- package/dist/illustrations/public-channel-intro.svg.cjs +2 -0
- package/dist/illustrations/public-channel-intro.svg.cjs.map +1 -0
- package/dist/illustrations/public-channel-intro.svg.js +6 -0
- package/dist/illustrations/public-channel-intro.svg.js.map +1 -0
- package/dist/illustrations/rating-desktop.cjs +2 -0
- package/dist/illustrations/rating-desktop.cjs.map +1 -0
- package/dist/illustrations/rating-desktop.d.ts +4 -0
- package/dist/illustrations/rating-desktop.js +5 -0
- package/dist/illustrations/rating-desktop.js.map +1 -0
- package/dist/illustrations/rating-desktop.svg.cjs +2 -0
- package/dist/illustrations/rating-desktop.svg.cjs.map +1 -0
- package/dist/illustrations/rating-desktop.svg.js +6 -0
- package/dist/illustrations/rating-desktop.svg.js.map +1 -0
- package/dist/illustrations/rating.cjs +2 -0
- package/dist/illustrations/rating.cjs.map +1 -0
- package/dist/illustrations/rating.d.ts +4 -0
- package/dist/illustrations/rating.js +5 -0
- package/dist/illustrations/rating.js.map +1 -0
- package/dist/illustrations/rating.svg.cjs +2 -0
- package/dist/illustrations/rating.svg.cjs.map +1 -0
- package/dist/illustrations/rating.svg.js +6 -0
- package/dist/illustrations/rating.svg.js.map +1 -0
- package/dist/illustrations/read-only.cjs +2 -0
- package/dist/illustrations/read-only.cjs.map +1 -0
- package/dist/illustrations/read-only.d.ts +4 -0
- package/dist/illustrations/read-only.js +5 -0
- package/dist/illustrations/read-only.js.map +1 -0
- package/dist/illustrations/read-only.svg.cjs +2 -0
- package/dist/illustrations/read-only.svg.cjs.map +1 -0
- package/dist/illustrations/read-only.svg.js +6 -0
- package/dist/illustrations/read-only.svg.js.map +1 -0
- package/dist/illustrations/reset-password.cjs +2 -0
- package/dist/illustrations/reset-password.cjs.map +1 -0
- package/dist/illustrations/reset-password.d.ts +4 -0
- package/dist/illustrations/reset-password.js +5 -0
- package/dist/illustrations/reset-password.js.map +1 -0
- package/dist/illustrations/reset-password.svg.cjs +2 -0
- package/dist/illustrations/reset-password.svg.cjs.map +1 -0
- package/dist/illustrations/reset-password.svg.js +8 -0
- package/dist/illustrations/reset-password.svg.js.map +1 -0
- package/dist/illustrations/saved-empty.cjs +2 -0
- package/dist/illustrations/saved-empty.cjs.map +1 -0
- package/dist/illustrations/saved-empty.d.ts +4 -0
- package/dist/illustrations/saved-empty.js +5 -0
- package/dist/illustrations/saved-empty.js.map +1 -0
- package/dist/illustrations/saved-empty.svg.cjs +2 -0
- package/dist/illustrations/saved-empty.svg.cjs.map +1 -0
- package/dist/illustrations/saved-empty.svg.js +6 -0
- package/dist/illustrations/saved-empty.svg.js.map +1 -0
- package/dist/illustrations/scheduled-empty.cjs +2 -0
- package/dist/illustrations/scheduled-empty.cjs.map +1 -0
- package/dist/illustrations/scheduled-empty.d.ts +4 -0
- package/dist/illustrations/scheduled-empty.js +5 -0
- package/dist/illustrations/scheduled-empty.js.map +1 -0
- package/dist/illustrations/scheduled-empty.svg.cjs +2 -0
- package/dist/illustrations/scheduled-empty.svg.cjs.map +1 -0
- package/dist/illustrations/scheduled-empty.svg.js +6 -0
- package/dist/illustrations/scheduled-empty.svg.js.map +1 -0
- package/dist/illustrations/search.cjs +2 -0
- package/dist/illustrations/search.cjs.map +1 -0
- package/dist/illustrations/search.d.ts +4 -0
- package/dist/illustrations/search.js +5 -0
- package/dist/illustrations/search.js.map +1 -0
- package/dist/illustrations/search.svg.cjs +2 -0
- package/dist/illustrations/search.svg.cjs.map +1 -0
- package/dist/illustrations/search.svg.js +6 -0
- package/dist/illustrations/search.svg.js.map +1 -0
- package/dist/illustrations/server.cjs +2 -0
- package/dist/illustrations/server.cjs.map +1 -0
- package/dist/illustrations/server.d.ts +4 -0
- package/dist/illustrations/server.js +5 -0
- package/dist/illustrations/server.js.map +1 -0
- package/dist/illustrations/server.svg.cjs +2 -0
- package/dist/illustrations/server.svg.cjs.map +1 -0
- package/dist/illustrations/server.svg.js +6 -0
- package/dist/illustrations/server.svg.js.map +1 -0
- package/dist/illustrations/setup-system.cjs +2 -0
- package/dist/illustrations/setup-system.cjs.map +1 -0
- package/dist/illustrations/setup-system.d.ts +4 -0
- package/dist/illustrations/setup-system.js +5 -0
- package/dist/illustrations/setup-system.js.map +1 -0
- package/dist/illustrations/setup-system.svg.cjs +2 -0
- package/dist/illustrations/setup-system.svg.cjs.map +1 -0
- package/dist/illustrations/setup-system.svg.js +6 -0
- package/dist/illustrations/setup-system.svg.js.map +1 -0
- package/dist/illustrations/site-error.cjs +2 -0
- package/dist/illustrations/site-error.cjs.map +1 -0
- package/dist/illustrations/site-error.d.ts +4 -0
- package/dist/illustrations/site-error.js +5 -0
- package/dist/illustrations/site-error.js.map +1 -0
- package/dist/illustrations/site-error.svg.cjs +2 -0
- package/dist/illustrations/site-error.svg.cjs.map +1 -0
- package/dist/illustrations/site-error.svg.js +6 -0
- package/dist/illustrations/site-error.svg.js.map +1 -0
- package/dist/illustrations/slash-commands.cjs +2 -0
- package/dist/illustrations/slash-commands.cjs.map +1 -0
- package/dist/illustrations/slash-commands.d.ts +4 -0
- package/dist/illustrations/slash-commands.js +5 -0
- package/dist/illustrations/slash-commands.js.map +1 -0
- package/dist/illustrations/slash-commands.svg.cjs +2 -0
- package/dist/illustrations/slash-commands.svg.cjs.map +1 -0
- package/dist/illustrations/slash-commands.svg.js +6 -0
- package/dist/illustrations/slash-commands.svg.js.map +1 -0
- package/dist/illustrations/success.cjs +2 -0
- package/dist/illustrations/success.cjs.map +1 -0
- package/dist/illustrations/success.d.ts +4 -0
- package/dist/illustrations/success.js +5 -0
- package/dist/illustrations/success.js.map +1 -0
- package/dist/illustrations/success.svg.cjs +2 -0
- package/dist/illustrations/success.svg.cjs.map +1 -0
- package/dist/illustrations/success.svg.js +6 -0
- package/dist/illustrations/success.svg.js.map +1 -0
- package/dist/illustrations/system-admins.cjs +2 -0
- package/dist/illustrations/system-admins.cjs.map +1 -0
- package/dist/illustrations/system-admins.d.ts +4 -0
- package/dist/illustrations/system-admins.js +5 -0
- package/dist/illustrations/system-admins.js.map +1 -0
- package/dist/illustrations/system-admins.svg.cjs +2 -0
- package/dist/illustrations/system-admins.svg.cjs.map +1 -0
- package/dist/illustrations/system-admins.svg.js +14 -0
- package/dist/illustrations/system-admins.svg.js.map +1 -0
- package/dist/illustrations/threads-empty.cjs +2 -0
- package/dist/illustrations/threads-empty.cjs.map +1 -0
- package/dist/illustrations/threads-empty.d.ts +4 -0
- package/dist/illustrations/threads-empty.js +5 -0
- package/dist/illustrations/threads-empty.js.map +1 -0
- package/dist/illustrations/threads-empty.svg.cjs +2 -0
- package/dist/illustrations/threads-empty.svg.cjs.map +1 -0
- package/dist/illustrations/threads-empty.svg.js +6 -0
- package/dist/illustrations/threads-empty.svg.js.map +1 -0
- package/dist/illustrations/timer.cjs +2 -0
- package/dist/illustrations/timer.cjs.map +1 -0
- package/dist/illustrations/timer.d.ts +4 -0
- package/dist/illustrations/timer.js +5 -0
- package/dist/illustrations/timer.js.map +1 -0
- package/dist/illustrations/timer.svg.cjs +2 -0
- package/dist/illustrations/timer.svg.cjs.map +1 -0
- package/dist/illustrations/timer.svg.js +6 -0
- package/dist/illustrations/timer.svg.js.map +1 -0
- package/dist/illustrations/tls-certificate.cjs +2 -0
- package/dist/illustrations/tls-certificate.cjs.map +1 -0
- package/dist/illustrations/tls-certificate.d.ts +4 -0
- package/dist/illustrations/tls-certificate.js +5 -0
- package/dist/illustrations/tls-certificate.js.map +1 -0
- package/dist/illustrations/tls-certificate.svg.cjs +2 -0
- package/dist/illustrations/tls-certificate.svg.cjs.map +1 -0
- package/dist/illustrations/tls-certificate.svg.js +6 -0
- package/dist/illustrations/tls-certificate.svg.js.map +1 -0
- package/dist/illustrations/tools.cjs +2 -0
- package/dist/illustrations/tools.cjs.map +1 -0
- package/dist/illustrations/tools.d.ts +4 -0
- package/dist/illustrations/tools.js +5 -0
- package/dist/illustrations/tools.js.map +1 -0
- package/dist/illustrations/tools.svg.cjs +2 -0
- package/dist/illustrations/tools.svg.cjs.map +1 -0
- package/dist/illustrations/tools.svg.js +6 -0
- package/dist/illustrations/tools.svg.js.map +1 -0
- package/dist/illustrations/town-square-channel-intro.cjs +2 -0
- package/dist/illustrations/town-square-channel-intro.cjs.map +1 -0
- package/dist/illustrations/town-square-channel-intro.d.ts +4 -0
- package/dist/illustrations/town-square-channel-intro.js +5 -0
- package/dist/illustrations/town-square-channel-intro.js.map +1 -0
- package/dist/illustrations/town-square-channel-intro.svg.cjs +2 -0
- package/dist/illustrations/town-square-channel-intro.svg.cjs.map +1 -0
- package/dist/illustrations/town-square-channel-intro.svg.js +6 -0
- package/dist/illustrations/town-square-channel-intro.svg.js.map +1 -0
- package/dist/illustrations/upload-license.cjs +2 -0
- package/dist/illustrations/upload-license.cjs.map +1 -0
- package/dist/illustrations/upload-license.d.ts +4 -0
- package/dist/illustrations/upload-license.js +5 -0
- package/dist/illustrations/upload-license.js.map +1 -0
- package/dist/illustrations/upload-license.svg.cjs +2 -0
- package/dist/illustrations/upload-license.svg.cjs.map +1 -0
- package/dist/illustrations/upload-license.svg.js +6 -0
- package/dist/illustrations/upload-license.svg.js.map +1 -0
- package/dist/illustrations/verify-email.cjs +2 -0
- package/dist/illustrations/verify-email.cjs.map +1 -0
- package/dist/illustrations/verify-email.d.ts +4 -0
- package/dist/illustrations/verify-email.js +5 -0
- package/dist/illustrations/verify-email.js.map +1 -0
- package/dist/illustrations/verify-email.svg.cjs +2 -0
- package/dist/illustrations/verify-email.svg.cjs.map +1 -0
- package/dist/illustrations/verify-email.svg.js +8 -0
- package/dist/illustrations/verify-email.svg.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +31 -41
- package/dist/index.d.ts +1 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +177 -189
- package/dist/index.js.map +1 -1
- package/package.json +216 -19
- package/dist/components/app-bar-item/AppBarItem.cjs +0 -2
- package/dist/components/app-bar-item/AppBarItem.cjs.map +0 -1
- package/dist/components/app-bar-item/AppBarItem.d.ts +0 -25
- package/dist/components/app-bar-item/AppBarItem.d.ts.map +0 -1
- package/dist/components/app-bar-item/AppBarItem.js +0 -49
- package/dist/components/app-bar-item/AppBarItem.js.map +0 -1
- package/dist/components/app-bar-item/AppBarItem.module.css +0 -1
- package/dist/components/app-bar-item/AppBarItem.module.scss.cjs +0 -2
- package/dist/components/app-bar-item/AppBarItem.module.scss.cjs.map +0 -1
- package/dist/components/app-bar-item/AppBarItem.module.scss.js +0 -11
- package/dist/components/app-bar-item/AppBarItem.module.scss.js.map +0 -1
- package/dist/components/app-bar-item/index.d.ts +0 -3
- package/dist/components/app-bar-item/index.d.ts.map +0 -1
- package/dist/components/app-bar-item/index.js +0 -5
- package/dist/components/channel-header/ChannelHeader.cjs +0 -2
- package/dist/components/channel-header/ChannelHeader.cjs.map +0 -1
- package/dist/components/channel-header/ChannelHeader.d.ts +0 -37
- package/dist/components/channel-header/ChannelHeader.d.ts.map +0 -1
- package/dist/components/channel-header/ChannelHeader.js +0 -174
- package/dist/components/channel-header/ChannelHeader.js.map +0 -1
- package/dist/components/channel-header/ChannelHeader.module.css +0 -1
- package/dist/components/channel-header/ChannelHeader.module.scss.cjs +0 -2
- package/dist/components/channel-header/ChannelHeader.module.scss.cjs.map +0 -1
- package/dist/components/channel-header/ChannelHeader.module.scss.js +0 -20
- package/dist/components/channel-header/ChannelHeader.module.scss.js.map +0 -1
- package/dist/components/channel-header/index.cjs +0 -2
- package/dist/components/channel-header/index.cjs.map +0 -1
- package/dist/components/channel-header/index.d.ts +0 -3
- package/dist/components/channel-header/index.d.ts.map +0 -1
- package/dist/components/channel-header/index.js +0 -5
- package/dist/components/channel-header/index.js.map +0 -1
- package/dist/components/message/Message.cjs +0 -2
- package/dist/components/message/Message.cjs.map +0 -1
- package/dist/components/message/Message.d.ts +0 -34
- package/dist/components/message/Message.d.ts.map +0 -1
- package/dist/components/message/Message.js +0 -54
- package/dist/components/message/Message.js.map +0 -1
- package/dist/components/message/Message.module.css +0 -1
- package/dist/components/message/Message.module.scss.cjs +0 -2
- package/dist/components/message/Message.module.scss.cjs.map +0 -1
- package/dist/components/message/Message.module.scss.js +0 -26
- package/dist/components/message/Message.module.scss.js.map +0 -1
- package/dist/components/message/index.cjs +0 -2
- package/dist/components/message/index.cjs.map +0 -1
- package/dist/components/message/index.d.ts +0 -4
- package/dist/components/message/index.d.ts.map +0 -1
- package/dist/components/message/index.js +0 -7
- package/dist/components/message/index.js.map +0 -1
- package/dist/components/message-input/MessageInput.cjs +0 -2
- package/dist/components/message-input/MessageInput.cjs.map +0 -1
- package/dist/components/message-input/MessageInput.d.ts +0 -15
- package/dist/components/message-input/MessageInput.d.ts.map +0 -1
- package/dist/components/message-input/MessageInput.js +0 -407
- package/dist/components/message-input/MessageInput.js.map +0 -1
- package/dist/components/message-input/MessageInput.module.css +0 -1
- package/dist/components/message-input/MessageInput.module.scss.cjs +0 -2
- package/dist/components/message-input/MessageInput.module.scss.cjs.map +0 -1
- package/dist/components/message-input/MessageInput.module.scss.js +0 -37
- package/dist/components/message-input/MessageInput.module.scss.js.map +0 -1
- package/dist/components/message-input/index.cjs +0 -2
- package/dist/components/message-input/index.cjs.map +0 -1
- package/dist/components/message-input/index.d.ts +0 -3
- package/dist/components/message-input/index.d.ts.map +0 -1
- package/dist/components/message-input/index.js +0 -5
- package/dist/components/message-input/index.js.map +0 -1
- package/dist/components/reaction-pill/ReactionPill.cjs +0 -2
- package/dist/components/reaction-pill/ReactionPill.cjs.map +0 -1
- package/dist/components/reaction-pill/ReactionPill.d.ts +0 -24
- package/dist/components/reaction-pill/ReactionPill.d.ts.map +0 -1
- package/dist/components/reaction-pill/ReactionPill.js +0 -51
- package/dist/components/reaction-pill/ReactionPill.js.map +0 -1
- package/dist/components/reaction-pill/ReactionPill.module.css +0 -1
- package/dist/components/reaction-pill/ReactionPill.module.scss.cjs +0 -2
- package/dist/components/reaction-pill/ReactionPill.module.scss.cjs.map +0 -1
- package/dist/components/reaction-pill/ReactionPill.module.scss.js +0 -17
- package/dist/components/reaction-pill/ReactionPill.module.scss.js.map +0 -1
- package/dist/components/reaction-pill/index.cjs +0 -2
- package/dist/components/reaction-pill/index.cjs.map +0 -1
- package/dist/components/reaction-pill/index.d.ts +0 -3
- package/dist/components/reaction-pill/index.d.ts.map +0 -1
- package/dist/components/reaction-pill/index.js +0 -5
- package/dist/components/reaction-pill/index.js.map +0 -1
- package/dist/components/right-sidebar/RightSidebar.cjs +0 -2
- package/dist/components/right-sidebar/RightSidebar.cjs.map +0 -1
- package/dist/components/right-sidebar/RightSidebar.d.ts +0 -23
- package/dist/components/right-sidebar/RightSidebar.d.ts.map +0 -1
- package/dist/components/right-sidebar/RightSidebar.js +0 -29
- package/dist/components/right-sidebar/RightSidebar.js.map +0 -1
- package/dist/components/right-sidebar/RightSidebar.module.css +0 -1
- package/dist/components/right-sidebar/RightSidebar.module.scss.cjs +0 -2
- package/dist/components/right-sidebar/RightSidebar.module.scss.cjs.map +0 -1
- package/dist/components/right-sidebar/RightSidebar.module.scss.js +0 -12
- package/dist/components/right-sidebar/RightSidebar.module.scss.js.map +0 -1
- package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.cjs +0 -2
- package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.cjs.map +0 -1
- package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.d.ts.map +0 -1
- package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.js.map +0 -1
- package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.module.css +0 -1
- package/dist/components/right-sidebar/RightSidebarHeader/RightSidebarHeader.module.scss.cjs +0 -2
- package/dist/components/right-sidebar/RightSidebarHeader/index.d.ts +0 -3
- package/dist/components/right-sidebar/RightSidebarHeader/index.d.ts.map +0 -1
- package/dist/components/right-sidebar/index.cjs +0 -2
- package/dist/components/right-sidebar/index.cjs.map +0 -1
- package/dist/components/right-sidebar/index.d.ts +0 -5
- package/dist/components/right-sidebar/index.d.ts.map +0 -1
- package/dist/components/right-sidebar/index.js +0 -7
- package/dist/components/right-sidebar/index.js.map +0 -1
- /package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.cjs.map +0 -0
- /package/dist/components/{right-sidebar/RightSidebarHeader → right-sidebar-header}/RightSidebarHeader.module.scss.js.map +0 -0
- /package/dist/components/{app-bar-item → right-sidebar-header}/index.cjs.map +0 -0
- /package/dist/components/{app-bar-item → right-sidebar-header}/index.js.map +0 -0
|
@@ -1,86 +1,87 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { toKebab as
|
|
1
|
+
import { jsxs as u, jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, useId as Q, useState as N, useCallback as f } from "react";
|
|
3
|
+
import { toKebab as W } from "../../utils/string.js";
|
|
4
4
|
import e from "./TextArea.module.scss.js";
|
|
5
|
-
const
|
|
5
|
+
const L = O(
|
|
6
6
|
function({
|
|
7
|
-
className:
|
|
8
|
-
size:
|
|
7
|
+
className: j = "",
|
|
8
|
+
size: y = "medium",
|
|
9
9
|
label: d,
|
|
10
|
-
invalid:
|
|
11
|
-
maxLength:
|
|
12
|
-
showCharacterCount:
|
|
13
|
-
id:
|
|
10
|
+
invalid: v = !1,
|
|
11
|
+
maxLength: l,
|
|
12
|
+
showCharacterCount: m = !1,
|
|
13
|
+
id: I,
|
|
14
14
|
value: c,
|
|
15
15
|
defaultValue: x,
|
|
16
|
-
placeholder:
|
|
17
|
-
onFocus:
|
|
16
|
+
placeholder: h,
|
|
17
|
+
onFocus: s,
|
|
18
18
|
onBlur: r,
|
|
19
19
|
onChange: i,
|
|
20
|
-
disabled:
|
|
21
|
-
readOnly:
|
|
22
|
-
rows:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
disabled: V,
|
|
21
|
+
readOnly: z,
|
|
22
|
+
rows: A = 3,
|
|
23
|
+
"aria-describedby": F,
|
|
24
|
+
...T
|
|
25
|
+
}, $) {
|
|
26
|
+
const k = Q(), n = I ?? k, a = c !== void 0, [w, C] = N(
|
|
26
27
|
x ?? ""
|
|
27
|
-
), o =
|
|
28
|
+
), o = a ? c : w, K = o != null && o !== "", [R, b] = N(!1), S = R || K, U = f(
|
|
28
29
|
(t) => {
|
|
29
|
-
|
|
30
|
+
b(!0), s == null || s(t);
|
|
30
31
|
},
|
|
31
|
-
[
|
|
32
|
-
),
|
|
32
|
+
[s]
|
|
33
|
+
), q = f(
|
|
33
34
|
(t) => {
|
|
34
|
-
|
|
35
|
+
b(!1), r == null || r(t);
|
|
35
36
|
},
|
|
36
37
|
[r]
|
|
37
|
-
),
|
|
38
|
+
), D = f(
|
|
38
39
|
(t) => {
|
|
39
|
-
|
|
40
|
+
a || C(t.target.value), i == null || i(t);
|
|
40
41
|
},
|
|
41
|
-
[
|
|
42
|
-
),
|
|
43
|
-
e
|
|
44
|
-
D,
|
|
42
|
+
[a, i]
|
|
43
|
+
), E = e[`text-area--size-${W(y)}`], G = v ? e["text-area--invalid"] : "", H = d != null && S ? e["text-area--label-floated"] : "", J = [
|
|
44
|
+
e["text-area"],
|
|
45
45
|
E,
|
|
46
46
|
G,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */
|
|
47
|
+
H,
|
|
48
|
+
j
|
|
49
|
+
].filter(Boolean).join(" "), M = typeof o == "string" ? o.length : 0, p = m && l != null ? `${n}-counter` : void 0;
|
|
50
|
+
return /* @__PURE__ */ u("div", { className: J, children: [
|
|
51
|
+
/* @__PURE__ */ u("div", { className: e["text-area__wrapper"], children: [
|
|
52
|
+
d != null && /* @__PURE__ */ _("label", { className: e["text-area__label"], htmlFor: n, children: d }),
|
|
53
|
+
/* @__PURE__ */ _(
|
|
53
54
|
"textarea",
|
|
54
55
|
{
|
|
55
|
-
ref:
|
|
56
|
+
ref: $,
|
|
56
57
|
id: n,
|
|
57
|
-
className: e
|
|
58
|
-
value:
|
|
59
|
-
defaultValue:
|
|
60
|
-
placeholder:
|
|
61
|
-
maxLength:
|
|
62
|
-
disabled:
|
|
63
|
-
readOnly:
|
|
64
|
-
rows:
|
|
65
|
-
"aria-invalid":
|
|
66
|
-
"aria-describedby":
|
|
67
|
-
onFocus:
|
|
68
|
-
onBlur:
|
|
69
|
-
onChange:
|
|
70
|
-
...
|
|
58
|
+
className: e["text-area__input"],
|
|
59
|
+
value: a ? c : void 0,
|
|
60
|
+
defaultValue: a ? void 0 : x,
|
|
61
|
+
placeholder: h,
|
|
62
|
+
maxLength: l,
|
|
63
|
+
disabled: V,
|
|
64
|
+
readOnly: z,
|
|
65
|
+
rows: A,
|
|
66
|
+
"aria-invalid": v ? !0 : void 0,
|
|
67
|
+
"aria-describedby": [F, p].filter(Boolean).join(" ") || void 0,
|
|
68
|
+
onFocus: U,
|
|
69
|
+
onBlur: q,
|
|
70
|
+
onChange: D,
|
|
71
|
+
...T
|
|
71
72
|
}
|
|
72
73
|
)
|
|
73
74
|
] }),
|
|
74
|
-
|
|
75
|
+
m && l != null && /* @__PURE__ */ u(
|
|
75
76
|
"div",
|
|
76
77
|
{
|
|
77
|
-
id:
|
|
78
|
-
className: e
|
|
78
|
+
id: p,
|
|
79
|
+
className: e["text-area__counter"],
|
|
79
80
|
"aria-live": "polite",
|
|
80
81
|
children: [
|
|
81
|
-
|
|
82
|
+
M,
|
|
82
83
|
" / ",
|
|
83
|
-
|
|
84
|
+
l
|
|
84
85
|
]
|
|
85
86
|
}
|
|
86
87
|
)
|
|
@@ -88,6 +89,6 @@ const B = M(
|
|
|
88
89
|
}
|
|
89
90
|
);
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
+
L as default
|
|
92
93
|
};
|
|
93
94
|
//# sourceMappingURL=TextArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sources":["../../../src/components/text-area/TextArea.tsx"],"sourcesContent":["import type { TextareaHTMLAttributes, ReactNode, ChangeEvent } from 'react';\nimport { forwardRef, useId, useState, useCallback } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextArea.module.scss';\n\nexport type TextAreaSize = 'small' | 'medium' | 'large';\n\nexport interface TextAreaProps extends Omit<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Max length for the textarea; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below textarea. */\n showCharacterCount?: boolean;\n /** Size variant. Default: Medium. */\n size?: TextAreaSize;\n}\n\n/**\n * Text Areas let people write long-form text that spans multiple lines — descriptions,\n * channel purposes, message drafts, admin notes. They share their visual rhythm with Text\n * Input but trade the single-line constraint for room to breathe.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n className = '',\n size = 'medium',\n label,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n rows = 3,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLTextAreaElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`
|
|
1
|
+
{"version":3,"file":"TextArea.js","sources":["../../../src/components/text-area/TextArea.tsx"],"sourcesContent":["import type { TextareaHTMLAttributes, ReactNode, ChangeEvent } from 'react';\nimport { forwardRef, useId, useState, useCallback } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextArea.module.scss';\n\nexport type TextAreaSize = 'small' | 'medium' | 'large';\n\nexport interface TextAreaProps extends Omit<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Max length for the textarea; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below textarea. */\n showCharacterCount?: boolean;\n /** Size variant. Default: Medium. */\n size?: TextAreaSize;\n}\n\n/**\n * Text Areas let people write long-form text that spans multiple lines — descriptions,\n * channel purposes, message drafts, admin notes. They share their visual rhythm with Text\n * Input but trade the single-line constraint for room to breathe.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n className = '',\n size = 'medium',\n label,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n rows = 3,\n 'aria-describedby': describedBy,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLTextAreaElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLTextAreaElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`text-area--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['text-area--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['text-area--label-floated'] : '';\n\n const rootClass = [\n styles['text-area'],\n sizeClass,\n invalidClass,\n labelFloatedClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles['text-area__wrapper']}>\n {label != null && (\n <label className={styles['text-area__label']} htmlFor={id}>\n {label}\n </label>\n )}\n <textarea\n ref={ref}\n id={id}\n className={styles['text-area__input']}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n rows={rows}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={\n [describedBy, counterId].filter(Boolean).join(' ') || undefined\n }\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles['text-area__counter']}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextArea;\n"],"names":["TextArea","forwardRef","className","size","label","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","rows","describedBy","rest","ref","generatedId","useId","id","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","useCallback","e","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._text-area_1qev1_2{display:flex;flex-direction:column;width:100%}._text-area__wrapper_1qev1_7{position:relative;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)}._text-area_1qev1_2:has(._text-area__input_1qev1_14:not(:disabled)):hover:not(:focus-within) ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px rgba(var(--center-channel-color-rgb),.24)}._text-area_1qev1_2:has(._text-area__input_1qev1_14:focus-visible) ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px var(--focus-ring-color),0 0 0 1px var(--focus-ring-color)}._text-area_1qev1_2:has(._text-area__input_1qev1_14:disabled) ._text-area__wrapper_1qev1_7{background-color:var(--center-channel-bg);opacity:.56}._text-area__label_1qev1_24{position:absolute;left:var(--spacing-xs);top:var(--spacing-s);padding:0 var(--spacing-xxxs);margin:0;font-family:Open Sans,sans-serif;font-size:var(--font-size-100);line-height:var(--line-height-100);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:font-size var(--duration-quick) var(--ease-transition),top var(--duration-quick) var(--ease-transition),color var(--duration-quick) var(--ease-transition)}._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;transform:translateY(-50%);font-size:var(--font-size-25);line-height:14px;color:rgba(var(--center-channel-color-rgb),.64)}._text-area__input_1qev1_14{display:block;width:100%;margin:0;border:0;background:transparent;resize:vertical;font-family:Open Sans,sans-serif;font-size:var(--font-size-100);line-height:var(--line-height-100);font-weight:var(--font-weight-regular);color:var(--center-channel-color);box-sizing:border-box}._text-area__input_1qev1_14:focus{outline:none}._text-area__input_1qev1_14::placeholder{color:rgba(var(--center-channel-color-rgb),.64)}._text-area__input_1qev1_14:disabled{cursor:not-allowed;resize:none}._text-area__counter_1qev1_74{margin-top:var(--spacing-xxxs);font-family:Open Sans,sans-serif;font-size:var(--font-size-25);line-height:14px;color:rgba(var(--center-channel-color-rgb),.64)}._text-area--size-small_1qev1_81 ._text-area__input_1qev1_14{padding:var(--spacing-xs) var(--spacing-m);font-size:var(--font-size-75);line-height:var(--line-height-75)}._text-area--size-small_1qev1_81 ._text-area__label_1qev1_24{top:var(--spacing-xs);font-size:var(--font-size-75);line-height:var(--line-height-25)}._text-area--size-small_1qev1_81._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;font-size:var(--font-size-25);line-height:14px}._text-area--size-medium_1qev1_96 ._text-area__input_1qev1_14{padding:var(--spacing-s) var(--spacing-l);font-size:var(--font-size-100);line-height:var(--line-height-100)}._text-area--size-medium_1qev1_96 ._text-area__label_1qev1_24{top:var(--spacing-s);left:var(--spacing-m);font-size:var(--font-size-100)}._text-area--size-medium_1qev1_96._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;font-size:var(--font-size-25);line-height:14px}._text-area--size-large_1qev1_111 ._text-area__input_1qev1_14{padding:var(--spacing-m) var(--spacing-l);font-size:var(--font-size-200);line-height:var(--line-height-200)}._text-area--size-large_1qev1_111 ._text-area__label_1qev1_24{top:var(--spacing-m);left:var(--spacing-m);font-size:var(--font-size-200);line-height:var(--line-height-200)}._text-area--size-large_1qev1_111._text-area--label-floated_1qev1_43 ._text-area__label_1qev1_24{top:0;font-size:var(--font-size-25);line-height:14px}._text-area_1qev1_2:has(._text-area__input_1qev1_14:focus-visible) ._text-area__label_1qev1_24{color:var(--button-bg)}._text-area_1qev1_2:has(._text-area__label_1qev1_24):not(._text-area--label-floated_1qev1_43) ._text-area__input_1qev1_14::placeholder{color:transparent}._text-area--invalid_1qev1_133 ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger))}._text-area--invalid_1qev1_133:has(._text-area__input_1qev1_14:focus-visible) ._text-area__wrapper_1qev1_7{box-shadow:inset 0 0 0 1px var(--error-text, var(--color-danger)),0 0 0 1px var(--error-text, var(--color-danger))}._text-area--invalid_1qev1_133 ._text-area__label_1qev1_24{color:var(--error-text, var(--color-danger))}._text-area--invalid_1qev1_133:has(._text-area__input_1qev1_14:focus-visible) ._text-area__label_1qev1_24{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('./TextArea.module.css');const e="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./TextArea.module.css');const e={"text-area":"_text-area_1qev1_2","text-area__wrapper":"_text-area__wrapper_1qev1_7","text-area__input":"_text-area__input_1qev1_14","text-area__label":"_text-area__label_1qev1_24","text-area--label-floated":"_text-area--label-floated_1qev1_43","text-area__counter":"_text-area__counter_1qev1_74","text-area--size-small":"_text-area--size-small_1qev1_81","text-area--size-medium":"_text-area--size-medium_1qev1_96","text-area--size-large":"_text-area--size-large_1qev1_111","text-area--invalid":"_text-area--invalid_1qev1_133"};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=TextArea.module.scss.cjs.map
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import './TextArea.module.css';const e =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
1
|
+
import './TextArea.module.css';const e = {
|
|
2
|
+
"text-area": "_text-area_1qev1_2",
|
|
3
|
+
"text-area__wrapper": "_text-area__wrapper_1qev1_7",
|
|
4
|
+
"text-area__input": "_text-area__input_1qev1_14",
|
|
5
|
+
"text-area__label": "_text-area__label_1qev1_24",
|
|
6
|
+
"text-area--label-floated": "_text-area--label-floated_1qev1_43",
|
|
7
|
+
"text-area__counter": "_text-area__counter_1qev1_74",
|
|
8
|
+
"text-area--size-small": "_text-area--size-small_1qev1_81",
|
|
9
|
+
"text-area--size-medium": "_text-area--size-medium_1qev1_96",
|
|
10
|
+
"text-area--size-large": "_text-area--size-large_1qev1_111",
|
|
11
|
+
"text-area--invalid": "_text-area--invalid_1qev1_133"
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
e as textArea,
|
|
16
|
-
r as textArea__counter,
|
|
17
|
-
_ as textArea__input,
|
|
18
|
-
a as textArea__label,
|
|
19
|
-
t as textArea__wrapper
|
|
14
|
+
e as default
|
|
20
15
|
};
|
|
21
16
|
//# sourceMappingURL=TextArea.module.scss.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),l=require("react"),X=require("../../utils/string.cjs"),t=require("./TextInput.module.scss.cjs"),Y=l.forwardRef(function({className:C="",size:R="medium",label:r,leadingIcon:f,trailingIcon:p,invalid:_=!1,maxLength:i,showCharacterCount:v=!1,id:T,value:x,defaultValue:b,placeholder:g,onFocus:u,onBlur:c,onChange:d,disabled:k,readOnly:q,"aria-describedby":I,...S},n){const V=l.useId(),j=T??V,m=l.useRef(null),z=l.useCallback(e=>{if(m.current=e,typeof n=="function"){const y=n(e);return()=>{m.current=null,typeof y=="function"&&y()}}n&&(n.current=e)},[n]),a=x!==void 0,[M,$]=l.useState(b??""),o=a?x:M,w=o!=null&&o!=="",[F,h]=l.useState(!1),K=F||w,O=l.useCallback(e=>{h(!0),u==null||u(e)},[u]),U=l.useCallback(e=>{h(!1),c==null||c(e)},[c]),A=l.useCallback(e=>{a||$(e.target.value),d==null||d(e)},[a,d]),D=t.default[`text-input--size-${X.toKebab(R)}`],E=_?t.default["text-input--invalid"]:"",G=r!=null&&K?t.default["text-input--label-floated"]:"",H=f!=null?t.default["text-input--has-leading-icon"]:"",J=p!=null?t.default["text-input--has-trailing-icon"]:"",Q=[t.default["text-input"],D,E,G,H,J,C].filter(Boolean).join(" "),W=typeof o=="string"?o.length:0,N=v&&i!=null?`${j}-counter`:void 0;return s.jsxs("div",{className:Q,children:[s.jsx("div",{className:t.default["text-input__wrapper"],children:s.jsxs("label",{className:t.default["text-input__inner"],children:[r!=null&&s.jsx("span",{className:t.default["text-input__label"],children:r}),f!=null&&s.jsx("span",{className:t.default["text-input__leading-icon"],children:f}),s.jsx("input",{ref:z,id:j,className:t.default["text-input__input"],value:a?x:void 0,defaultValue:a?void 0:b,placeholder:g,maxLength:i,disabled:k,readOnly:q,"aria-invalid":_?!0:void 0,"aria-describedby":[I,N].filter(Boolean).join(" ")||void 0,onFocus:O,onBlur:U,onChange:A,...S}),p!=null&&s.jsx("span",{className:t.default["text-input__trailing-icon"],children:p})]})}),v&&i!=null&&s.jsxs("div",{id:N,className:t.default["text-input__counter"],"aria-live":"polite",children:[W," / ",i]})]})});exports.default=Y;
|
|
2
2
|
//# sourceMappingURL=TextInput.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.cjs","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`
|
|
1
|
+
{"version":3,"file":"TextInput.cjs","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n 'aria-describedby': describedBy,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`text-input--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['text-input--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['text-input--label-floated'] : '';\n const hasLeadingClass =\n leadingIcon != null ? styles['text-input--has-leading-icon'] : '';\n const hasTrailingClass =\n trailingIcon != null ? styles['text-input--has-trailing-icon'] : '';\n\n const rootClass = [\n styles['text-input'],\n sizeClass,\n invalidClass,\n labelFloatedClass,\n hasLeadingClass,\n hasTrailingClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles['text-input__wrapper']}>\n <label className={styles['text-input__inner']}>\n {label != null && (\n <span className={styles['text-input__label']}>{label}</span>\n )}\n {leadingIcon != null && (\n <span className={styles['text-input__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <input\n ref={setInputRef}\n id={id}\n className={styles['text-input__input']}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={\n [describedBy, counterId].filter(Boolean).join(' ') || undefined\n }\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n {trailingIcon != null && (\n <span className={styles['text-input__trailing-icon']}>\n {trailingIcon}\n </span>\n )}\n </label>\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles['text-input__counter']}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextInput;\n"],"names":["TextInput","forwardRef","className","size","label","leadingIcon","trailingIcon","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","describedBy","rest","ref","generatedId","useId","id","inputRef","useRef","setInputRef","useCallback","node","cleanup","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","hasLeadingClass","hasTrailingClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/text-input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,SAAS,EAGV,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP;IACC,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,uFAAuF;IACvF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,qBAAqB;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED;;;GAGG;AACH,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/text-input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,SAAS,EAGV,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP;IACC,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,uFAAuF;IACvF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,qBAAqB;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED;;;GAGG;AACH,QAAA,MAAM,SAAS,6GAuJd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,101 +1,102 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { toKebab as
|
|
1
|
+
import { jsxs as x, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Z, useId as B, useRef as L, useCallback as r, useState as C } from "react";
|
|
3
|
+
import { toKebab as P } from "../../utils/string.js";
|
|
4
4
|
import t from "./TextInput.module.scss.js";
|
|
5
|
-
const
|
|
5
|
+
const it = Z(
|
|
6
6
|
function({
|
|
7
|
-
className:
|
|
7
|
+
className: I = "",
|
|
8
8
|
size: T = "medium",
|
|
9
9
|
label: d,
|
|
10
10
|
leadingIcon: p,
|
|
11
11
|
trailingIcon: f,
|
|
12
|
-
invalid:
|
|
13
|
-
maxLength:
|
|
12
|
+
invalid: v = !1,
|
|
13
|
+
maxLength: i,
|
|
14
14
|
showCharacterCount: _ = !1,
|
|
15
15
|
id: V,
|
|
16
|
-
value:
|
|
17
|
-
defaultValue:
|
|
16
|
+
value: m,
|
|
17
|
+
defaultValue: b,
|
|
18
18
|
placeholder: z,
|
|
19
|
-
onFocus:
|
|
20
|
-
onBlur:
|
|
21
|
-
onChange:
|
|
19
|
+
onFocus: a,
|
|
20
|
+
onBlur: c,
|
|
21
|
+
onChange: u,
|
|
22
22
|
disabled: $,
|
|
23
23
|
readOnly: g,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
"aria-describedby": k,
|
|
25
|
+
...w
|
|
26
|
+
}, l) {
|
|
27
|
+
const F = B(), h = V ?? F, N = L(null), K = r(
|
|
27
28
|
(e) => {
|
|
28
|
-
if (
|
|
29
|
-
const R =
|
|
29
|
+
if (N.current = e, typeof l == "function") {
|
|
30
|
+
const R = l(e);
|
|
30
31
|
return () => {
|
|
31
|
-
|
|
32
|
+
N.current = null, typeof R == "function" && R();
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
+
l && (l.current = e);
|
|
35
36
|
},
|
|
36
|
-
[
|
|
37
|
-
),
|
|
38
|
-
|
|
39
|
-
), o =
|
|
37
|
+
[l]
|
|
38
|
+
), s = m !== void 0, [S, U] = C(
|
|
39
|
+
b ?? ""
|
|
40
|
+
), o = s ? m : S, q = o != null && o !== "", [A, y] = C(!1), D = A || q, E = r(
|
|
40
41
|
(e) => {
|
|
41
|
-
|
|
42
|
+
y(!0), a == null || a(e);
|
|
42
43
|
},
|
|
43
|
-
[
|
|
44
|
-
),
|
|
44
|
+
[a]
|
|
45
|
+
), G = r(
|
|
45
46
|
(e) => {
|
|
46
|
-
|
|
47
|
+
y(!1), c == null || c(e);
|
|
47
48
|
},
|
|
48
|
-
[
|
|
49
|
-
),
|
|
49
|
+
[c]
|
|
50
|
+
), H = r(
|
|
50
51
|
(e) => {
|
|
51
|
-
|
|
52
|
+
s || U(e.target.value), u == null || u(e);
|
|
52
53
|
},
|
|
53
|
-
[
|
|
54
|
-
),
|
|
55
|
-
t
|
|
56
|
-
H,
|
|
54
|
+
[s, u]
|
|
55
|
+
), J = t[`text-input--size-${P(T)}`], M = v ? t["text-input--invalid"] : "", O = d != null && D ? t["text-input--label-floated"] : "", Q = p != null ? t["text-input--has-leading-icon"] : "", W = f != null ? t["text-input--has-trailing-icon"] : "", X = [
|
|
56
|
+
t["text-input"],
|
|
57
57
|
J,
|
|
58
58
|
M,
|
|
59
59
|
O,
|
|
60
60
|
Q,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
W,
|
|
62
|
+
I
|
|
63
|
+
].filter(Boolean).join(" "), Y = typeof o == "string" ? o.length : 0, j = _ && i != null ? `${h}-counter` : void 0;
|
|
64
|
+
return /* @__PURE__ */ x("div", { className: X, children: [
|
|
65
|
+
/* @__PURE__ */ n("div", { className: t["text-input__wrapper"], children: /* @__PURE__ */ x("label", { className: t["text-input__inner"], children: [
|
|
66
|
+
d != null && /* @__PURE__ */ n("span", { className: t["text-input__label"], children: d }),
|
|
67
|
+
p != null && /* @__PURE__ */ n("span", { className: t["text-input__leading-icon"], children: p }),
|
|
67
68
|
/* @__PURE__ */ n(
|
|
68
69
|
"input",
|
|
69
70
|
{
|
|
70
|
-
ref:
|
|
71
|
+
ref: K,
|
|
71
72
|
id: h,
|
|
72
|
-
className: t
|
|
73
|
-
value:
|
|
74
|
-
defaultValue:
|
|
73
|
+
className: t["text-input__input"],
|
|
74
|
+
value: s ? m : void 0,
|
|
75
|
+
defaultValue: s ? void 0 : b,
|
|
75
76
|
placeholder: z,
|
|
76
|
-
maxLength:
|
|
77
|
+
maxLength: i,
|
|
77
78
|
disabled: $,
|
|
78
79
|
readOnly: g,
|
|
79
|
-
"aria-invalid":
|
|
80
|
-
"aria-describedby":
|
|
81
|
-
onFocus:
|
|
82
|
-
onBlur:
|
|
83
|
-
onChange:
|
|
84
|
-
...
|
|
80
|
+
"aria-invalid": v ? !0 : void 0,
|
|
81
|
+
"aria-describedby": [k, j].filter(Boolean).join(" ") || void 0,
|
|
82
|
+
onFocus: E,
|
|
83
|
+
onBlur: G,
|
|
84
|
+
onChange: H,
|
|
85
|
+
...w
|
|
85
86
|
}
|
|
86
87
|
),
|
|
87
|
-
f != null && /* @__PURE__ */ n("span", { className: t
|
|
88
|
+
f != null && /* @__PURE__ */ n("span", { className: t["text-input__trailing-icon"], children: f })
|
|
88
89
|
] }) }),
|
|
89
|
-
_ &&
|
|
90
|
+
_ && i != null && /* @__PURE__ */ x(
|
|
90
91
|
"div",
|
|
91
92
|
{
|
|
92
|
-
id:
|
|
93
|
-
className: t
|
|
93
|
+
id: j,
|
|
94
|
+
className: t["text-input__counter"],
|
|
94
95
|
"aria-live": "polite",
|
|
95
96
|
children: [
|
|
96
|
-
|
|
97
|
+
Y,
|
|
97
98
|
" / ",
|
|
98
|
-
|
|
99
|
+
i
|
|
99
100
|
]
|
|
100
101
|
}
|
|
101
102
|
)
|
|
@@ -103,6 +104,6 @@ const nt = Y(
|
|
|
103
104
|
}
|
|
104
105
|
);
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
it as default
|
|
107
108
|
};
|
|
108
109
|
//# sourceMappingURL=TextInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.js","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`
|
|
1
|
+
{"version":3,"file":"TextInput.js","sources":["../../../src/components/text-input/TextInput.tsx"],"sourcesContent":["import type {\n InputHTMLAttributes,\n ReactNode,\n ChangeEvent,\n RefCallback,\n} from 'react';\nimport { forwardRef, useId, useState, useCallback, useRef } from 'react';\nimport { toKebab } from '@/utils/string';\nimport styles from './TextInput.module.scss';\n\nexport type TextInputSize = 'small' | 'medium' | 'large';\n\nexport interface TextInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Optional CSS class name. */\n className?: string;\n /** When true, shows invalid/error styling. */\n invalid?: boolean;\n /** Floating label content. When provided, label floats on focus or when value is non-empty. */\n label?: ReactNode;\n /** Leading icon (e.g. <Icon glyph={<SearchIcon />} size=\"16\" />). */\n leadingIcon?: ReactNode;\n /** Max length for the input; used with showCharacterCount for counter. */\n maxLength?: number;\n /** When true with maxLength, shows \"current / max\" character count below input. */\n showCharacterCount?: boolean;\n /** Size variant. Figma: Small (32px), Medium (40px), Large (48px). Default: Medium. */\n size?: TextInputSize;\n /** Trailing icon. */\n trailingIcon?: ReactNode;\n}\n\n/**\n * Text Inputs let people enter and edit a single line of text — names, emails, search\n * queries, channel titles. They're the workhorse of every form and modal in Mattermost.\n */\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n className = '',\n size = 'medium',\n label,\n leadingIcon,\n trailingIcon,\n invalid = false,\n maxLength,\n showCharacterCount = false,\n id: idProp,\n value: valueProp,\n defaultValue,\n placeholder,\n onFocus,\n onBlur,\n onChange,\n disabled,\n readOnly,\n 'aria-describedby': describedBy,\n ...rest\n },\n ref,\n ) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const setInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (typeof ref === 'function') {\n const cleanup = (ref as RefCallback<HTMLInputElement>)(node);\n return () => {\n inputRef.current = null;\n if (typeof cleanup === 'function') cleanup();\n };\n }\n if (ref) ref.current = node;\n },\n [ref],\n );\n\n const isControlled = valueProp !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(\n defaultValue ?? '',\n );\n const value = isControlled ? (valueProp as string) : uncontrolledValue;\n const hasValue = value != null && value !== '';\n\n const [isFocused, setIsFocused] = useState(false);\n const labelFloated = isFocused || hasValue;\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setIsFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) setUncontrolledValue(e.target.value);\n onChange?.(e);\n },\n [isControlled, onChange],\n );\n\n const sizeClass = styles[`text-input--size-${toKebab(size)}`];\n const invalidClass = invalid ? styles['text-input--invalid'] : '';\n const labelFloatedClass =\n label != null && labelFloated ? styles['text-input--label-floated'] : '';\n const hasLeadingClass =\n leadingIcon != null ? styles['text-input--has-leading-icon'] : '';\n const hasTrailingClass =\n trailingIcon != null ? styles['text-input--has-trailing-icon'] : '';\n\n const rootClass = [\n styles['text-input'],\n sizeClass,\n invalidClass,\n labelFloatedClass,\n hasLeadingClass,\n hasTrailingClass,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n const currentLength = typeof value === 'string' ? value.length : 0;\n const counterId =\n showCharacterCount && maxLength != null ? `${id}-counter` : undefined;\n\n return (\n <div className={rootClass}>\n <div className={styles['text-input__wrapper']}>\n <label className={styles['text-input__inner']}>\n {label != null && (\n <span className={styles['text-input__label']}>{label}</span>\n )}\n {leadingIcon != null && (\n <span className={styles['text-input__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <input\n ref={setInputRef}\n id={id}\n className={styles['text-input__input']}\n value={isControlled ? valueProp : undefined}\n defaultValue={isControlled ? undefined : defaultValue}\n placeholder={placeholder}\n maxLength={maxLength}\n disabled={disabled}\n readOnly={readOnly}\n aria-invalid={invalid ? true : undefined}\n aria-describedby={\n [describedBy, counterId].filter(Boolean).join(' ') || undefined\n }\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n {...rest}\n />\n {trailingIcon != null && (\n <span className={styles['text-input__trailing-icon']}>\n {trailingIcon}\n </span>\n )}\n </label>\n </div>\n {showCharacterCount && maxLength != null && (\n <div\n id={counterId}\n className={styles['text-input__counter']}\n aria-live=\"polite\"\n >\n {currentLength} / {maxLength}\n </div>\n )}\n </div>\n );\n },\n);\n\nexport default TextInput;\n"],"names":["TextInput","forwardRef","className","size","label","leadingIcon","trailingIcon","invalid","maxLength","showCharacterCount","idProp","valueProp","defaultValue","placeholder","onFocus","onBlur","onChange","disabled","readOnly","describedBy","rest","ref","generatedId","useId","id","inputRef","useRef","setInputRef","useCallback","node","cleanup","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","hasValue","isFocused","setIsFocused","labelFloated","handleFocus","handleBlur","handleChange","sizeClass","styles","toKebab","invalidClass","labelFloatedClass","hasLeadingClass","hasTrailingClass","rootClass","currentLength","counterId","jsxs","jsx"],"mappings":"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"}
|