@mattermost/compass-ui 0.1.0-alpha.0 → 0.1.0-alpha.2

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.
Files changed (125) hide show
  1. package/README.md +6 -6
  2. package/dist/compass-ui-standalone.css +207 -0
  3. package/dist/compass-ui.css +0 -206
  4. package/dist/components/ActionButton/ActionButton.d.ts +5 -0
  5. package/dist/components/ActionButton/ActionButton.d.ts.map +1 -1
  6. package/dist/components/AdminConsoleHeader/AdminConsoleHeader.d.ts +3 -1
  7. package/dist/components/AdminConsoleHeader/AdminConsoleHeader.d.ts.map +1 -1
  8. package/dist/components/AdminPanelFooter/AdminPanelFooter.d.ts +5 -0
  9. package/dist/components/AdminPanelFooter/AdminPanelFooter.d.ts.map +1 -1
  10. package/dist/components/AdminPanelHeader/AdminPanelHeader.d.ts +5 -3
  11. package/dist/components/AdminPanelHeader/AdminPanelHeader.d.ts.map +1 -1
  12. package/dist/components/AppBarItem/AppBarItem.d.ts +4 -3
  13. package/dist/components/AppBarItem/AppBarItem.d.ts.map +1 -1
  14. package/dist/components/AttachmentCard/AttachmentCard.d.ts +5 -0
  15. package/dist/components/AttachmentCard/AttachmentCard.d.ts.map +1 -1
  16. package/dist/components/Button/Button.d.ts +9 -10
  17. package/dist/components/Button/Button.d.ts.map +1 -1
  18. package/dist/components/ChannelHeader/ChannelHeader.d.ts +1 -1
  19. package/dist/components/ChannelInfoMsgHeader/ChannelInfoMsgHeader.d.ts +3 -5
  20. package/dist/components/ChannelInfoMsgHeader/ChannelInfoMsgHeader.d.ts.map +1 -1
  21. package/dist/components/ChannelSidebarItem/ChannelSidebarItem.d.ts +13 -8
  22. package/dist/components/ChannelSidebarItem/ChannelSidebarItem.d.ts.map +1 -1
  23. package/dist/components/Checkbox/Checkbox.d.ts +3 -9
  24. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  25. package/dist/components/Chip/Chip.d.ts +6 -1
  26. package/dist/components/Chip/Chip.d.ts.map +1 -1
  27. package/dist/components/Combobox/Combobox.d.ts +4 -3
  28. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  29. package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -3
  30. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  31. package/dist/components/Divider/Divider.d.ts +5 -0
  32. package/dist/components/Divider/Divider.d.ts.map +1 -1
  33. package/dist/components/Dropdown/Dropdown.d.ts +5 -8
  34. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
  35. package/dist/components/Emoji/Emoji.d.ts +4 -1
  36. package/dist/components/Emoji/Emoji.d.ts.map +1 -1
  37. package/dist/components/EmptyState/EmptyState.d.ts +3 -4
  38. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
  39. package/dist/components/ErrorMessage/ErrorMessage.d.ts +3 -2
  40. package/dist/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
  41. package/dist/components/FeatureDiscoveryPanel/FeatureDiscoveryPanel.d.ts +3 -4
  42. package/dist/components/FeatureDiscoveryPanel/FeatureDiscoveryPanel.d.ts.map +1 -1
  43. package/dist/components/GlobalBanner/GlobalBanner.d.ts +5 -4
  44. package/dist/components/GlobalBanner/GlobalBanner.d.ts.map +1 -1
  45. package/dist/components/GlobalHeader/GlobalHeader.d.ts +1 -1
  46. package/dist/components/GlobalHeader/GlobalHeader.d.ts.map +1 -1
  47. package/dist/components/Icon/Icon.d.ts +3 -5
  48. package/dist/components/Icon/Icon.d.ts.map +1 -1
  49. package/dist/components/IconButton/IconButton.d.ts +7 -8
  50. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  51. package/dist/components/Illustration/Illustration.d.ts +4 -6
  52. package/dist/components/Illustration/Illustration.d.ts.map +1 -1
  53. package/dist/components/ImagePreview/ImagePreview.d.ts +3 -3
  54. package/dist/components/LinkPreview/LinkPreview.d.ts +3 -2
  55. package/dist/components/LinkPreview/LinkPreview.d.ts.map +1 -1
  56. package/dist/components/MentionBadge/MentionBadge.d.ts +6 -6
  57. package/dist/components/MenuItem/MenuItem.d.ts +4 -5
  58. package/dist/components/MenuItem/MenuItem.d.ts.map +1 -1
  59. package/dist/components/MessageActions/MessageActions.d.ts +4 -3
  60. package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
  61. package/dist/components/MessageHeader/MessageHeader.d.ts +5 -0
  62. package/dist/components/MessageHeader/MessageHeader.d.ts.map +1 -1
  63. package/dist/components/MessageReactions/MessageReactions.d.ts +3 -3
  64. package/dist/components/MessageSeparator/MessageSeparator.d.ts +5 -4
  65. package/dist/components/MessageSeparator/MessageSeparator.d.ts.map +1 -1
  66. package/dist/components/Modal/Modal.d.ts +1 -1
  67. package/dist/components/MoreUnreadsBanner/MoreUnreadsBanner.d.ts +5 -4
  68. package/dist/components/MoreUnreadsBanner/MoreUnreadsBanner.d.ts.map +1 -1
  69. package/dist/components/NewMessageBanner/NewMessageBanner.d.ts +4 -4
  70. package/dist/components/NewMessageBanner/NewMessageBanner.d.ts.map +1 -1
  71. package/dist/components/PaginationDots/PaginationDots.d.ts +5 -6
  72. package/dist/components/PaginationDots/PaginationDots.d.ts.map +1 -1
  73. package/dist/components/PermalinkPreview/PermalinkPreview.d.ts +3 -3
  74. package/dist/components/PopoverNotice/PopoverNotice.d.ts +6 -0
  75. package/dist/components/PopoverNotice/PopoverNotice.d.ts.map +1 -1
  76. package/dist/components/ProductSwitcherMenu/ProductSwitcherMenu.d.ts +1 -1
  77. package/dist/components/ProfilePopover/ProfilePopover.d.ts +2 -2
  78. package/dist/components/ProgressBar/ProgressBar.d.ts +4 -4
  79. package/dist/components/Radio/Radio.d.ts +4 -8
  80. package/dist/components/Radio/Radio.d.ts.map +1 -1
  81. package/dist/components/ReactionPill/ReactionPill.d.ts +6 -5
  82. package/dist/components/ReactionPill/ReactionPill.d.ts.map +1 -1
  83. package/dist/components/Scrollbar/Scrollbar.d.ts +4 -7
  84. package/dist/components/Scrollbar/Scrollbar.d.ts.map +1 -1
  85. package/dist/components/SearchInput/SearchInput.d.ts +4 -4
  86. package/dist/components/SearchTipBanner/SearchTipBanner.d.ts +3 -2
  87. package/dist/components/SearchTipBanner/SearchTipBanner.d.ts.map +1 -1
  88. package/dist/components/SectionNotice/SectionNotice.d.ts +4 -4
  89. package/dist/components/Select/Select.d.ts +3 -5
  90. package/dist/components/Select/Select.d.ts.map +1 -1
  91. package/dist/components/ShortcutTag/ShortcutTag.d.ts +2 -2
  92. package/dist/components/Spinner/Spinner.d.ts +4 -0
  93. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  94. package/dist/components/StatusBadge/StatusBadge.d.ts +4 -6
  95. package/dist/components/StatusBadge/StatusBadge.d.ts.map +1 -1
  96. package/dist/components/Switch/Switch.d.ts +3 -11
  97. package/dist/components/Switch/Switch.d.ts.map +1 -1
  98. package/dist/components/Tabs/Tabs.d.ts +3 -2
  99. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  100. package/dist/components/Tag/Tag.d.ts +6 -5
  101. package/dist/components/Tag/Tag.d.ts.map +1 -1
  102. package/dist/components/TeamAvatar/TeamAvatar.d.ts +5 -1
  103. package/dist/components/TeamAvatar/TeamAvatar.d.ts.map +1 -1
  104. package/dist/components/TextArea/TextArea.d.ts +4 -6
  105. package/dist/components/TextArea/TextArea.d.ts.map +1 -1
  106. package/dist/components/TextInput/TextInput.d.ts +3 -6
  107. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  108. package/dist/components/ThreadFooter/ThreadFooter.d.ts +4 -4
  109. package/dist/components/ThreadListItem/ThreadListItem.d.ts +4 -4
  110. package/dist/components/Toast/Toast.d.ts +6 -1
  111. package/dist/components/Toast/Toast.d.ts.map +1 -1
  112. package/dist/components/Tooltip/Tooltip.d.ts +4 -3
  113. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  114. package/dist/components/UnreadBadge/UnreadBadge.d.ts +5 -7
  115. package/dist/components/UnreadBadge/UnreadBadge.d.ts.map +1 -1
  116. package/dist/components/UserAvatar/UserAvatar.d.ts +4 -9
  117. package/dist/components/UserAvatar/UserAvatar.d.ts.map +1 -1
  118. package/dist/components/UserAvatarGroup/UserAvatarGroup.d.ts +3 -6
  119. package/dist/components/UserAvatarGroup/UserAvatarGroup.d.ts.map +1 -1
  120. package/dist/index.cjs +1 -1
  121. package/dist/index.cjs.map +1 -1
  122. package/dist/index.js +1607 -1603
  123. package/dist/index.js.map +1 -1
  124. package/dist/utils/string.d.ts +2 -2
  125. package/package.json +5 -1
@@ -1,5 +1,5 @@
1
1
  export type TeamAvatarSize = '24' | '28' | '32' | '40' | '48' | '56' | '64' | '72' | '96' | '120';
2
- export type TeamAvatarState = 'Default' | 'Active';
2
+ export type TeamAvatarState = 'default' | 'active';
3
3
  export interface TeamAvatarProps {
4
4
  alt?: string;
5
5
  badge?: number;
@@ -9,5 +9,9 @@ export interface TeamAvatarProps {
9
9
  src?: string;
10
10
  state?: TeamAvatarState;
11
11
  }
12
+ /**
13
+ * Team Avatars identify a Team in Mattermost. Their rounded-square shape sets them apart
14
+ * from circular User Avatars at a glance — same scanning rhythm, different kind of subject.
15
+ */
12
16
  export default function TeamAvatar({ alt, badge, className, initials, size, src, state, }: TeamAvatarProps): import("react/jsx-runtime").JSX.Element;
13
17
  //# sourceMappingURL=TeamAvatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TeamAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/TeamAvatar/TeamAvatar.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,CAAC;AACV,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,GAAQ,EACR,KAAK,EACL,SAAc,EACd,QAAe,EACf,IAAW,EACX,GAAG,EACH,KAAiB,GAClB,EAAE,eAAe,2CAqCjB"}
1
+ {"version":3,"file":"TeamAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/TeamAvatar/TeamAvatar.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,CAAC;AACV,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,GAAQ,EACR,KAAK,EACL,SAAc,EACd,QAAe,EACf,IAAW,EACX,GAAG,EACH,KAAiB,GAClB,EAAE,eAAe,2CAqCjB"}
@@ -1,5 +1,5 @@
1
1
  import { TextareaHTMLAttributes, ReactNode } from 'react';
2
- export type TextAreaSize = 'Small' | 'Medium' | 'Large';
2
+ export type TextAreaSize = 'small' | 'medium' | 'large';
3
3
  export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
4
4
  /** Optional CSS class name. */
5
5
  className?: string;
@@ -15,11 +15,9 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
15
15
  size?: TextAreaSize;
16
16
  }
17
17
  /**
18
- * Text Area component with optional floating label and character counter.
19
- * Multi-line text input for long-form content. Matches Figma Text Area v2.0.0.
20
- * Used in message compose, post editing, admin settings.
21
- *
22
- * @see https://compass.mattermost.com (Text Area)
18
+ * Text Areas let people write long-form text that spans multiple lines — descriptions,
19
+ * channel purposes, message drafts, admin notes. They share their visual rhythm with Text
20
+ * Input but trade the single-line constraint for room to breathe.
23
21
  */
24
22
  declare const TextArea: import('react').ForwardRefExoticComponent<TextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
25
23
  export default TextArea;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAK5E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,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,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qCAAqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,QAAQ,+GAoHb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAK5E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,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,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qCAAqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED;;;;GAIG;AACH,QAAA,MAAM,QAAQ,+GAoHb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes, ReactNode } from 'react';
2
- export type TextInputSize = 'Small' | 'Medium' | 'Large';
2
+ export type TextInputSize = 'small' | 'medium' | 'large';
3
3
  export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
4
  /** Optional CSS class name. */
5
5
  className?: string;
@@ -19,11 +19,8 @@ export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
19
19
  trailingIcon?: ReactNode;
20
20
  }
21
21
  /**
22
- * Text Input component with optional floating label, leading/trailing icons, and character counter.
23
- * Matches Figma Text Input v2.0.1 (Border=On only). Uses theme variables only.
24
- * When label is provided, the label floats above the border on focus or when the field has a value.
25
- *
26
- * @see https://compass.mattermost.com (Text Input)
22
+ * Text Inputs let people enter and edit a single line of text — names, emails, search
23
+ * queries, channel titles. They're the workhorse of every form and modal in Mattermost.
27
24
  */
28
25
  declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
29
26
  export default TextInput;
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/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;;;;;;GAMG;AACH,QAAA,MAAM,SAAS,6GAoJd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/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,6GAoJd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export type ThreadFooterBadge = 'None' | 'Unread' | 'Mention';
2
+ export type ThreadFooterBadge = 'none' | 'unread' | 'mention';
3
3
  export interface AvatarData {
4
4
  src: string;
5
5
  alt: string;
@@ -25,9 +25,9 @@ export interface ThreadFooterProps extends HTMLAttributes<HTMLDivElement> {
25
25
  className?: string;
26
26
  }
27
27
  /**
28
- * Reply summary bar at the bottom of messages.
29
- * Shows participant avatars, reply count, Follow/Following toggle,
30
- * and last reply time. Badge variants: None, Unread dot, Mention count.
28
+ * The Thread Footer is the reply summary bar at the bottom of a message. It shows
29
+ * participants, reply count, follow state, and last-reply time — the information someone
30
+ * needs to decide whether to dive in.
31
31
  */
32
32
  export default function ThreadFooter({ replyCount, avatars, badge, following, lastReplyTime, onReply, onFollowToggle, hovered, className, ...rest }: ThreadFooterProps): import("react/jsx-runtime").JSX.Element;
33
33
  //# sourceMappingURL=ThreadFooter.d.ts.map
@@ -4,7 +4,7 @@ export interface ThreadListItemProps {
4
4
  /** Whether this item is the active/selected thread. */
5
5
  active?: boolean;
6
6
  /** Badge in the left gutter. Default: None. Hidden when `active` is true. */
7
- badge?: 'None' | 'Unread' | 'Mention';
7
+ badge?: 'none' | 'unread' | 'mention';
8
8
  /** Shown when `badge` is Mention. Default: 1. */
9
9
  mentionCount?: number;
10
10
  /** Author name. */
@@ -29,9 +29,9 @@ export interface ThreadListItemProps {
29
29
  onMenuClick?: (event: MouseEvent<HTMLButtonElement>) => void;
30
30
  }
31
31
  /**
32
- * Thread entry in the Threads view. Shows author, team badge, preview text,
33
- * timestamp, participant avatars, reply count. Badge variants: None, Unread,
34
- * Mention. More actions (⋯) appear on row hover or focus.
32
+ * The Thread List Item is a single entry in the Threads view. Each row gives the user enough
33
+ * context — who, where, what, when — to decide whether to open the thread without opening
34
+ * it.
35
35
  */
36
36
  export default function ThreadListItem({ active, badge, mentionCount, authorName, channelLabel, previewText, timestamp, replyCount, participants: participantsProp, threadTitle, className, onClick, onMenuClick, }: ThreadListItemProps): import("react/jsx-runtime").JSX.Element;
37
37
  //# sourceMappingURL=ThreadListItem.d.ts.map
@@ -1,4 +1,4 @@
1
- export type ToastType = 'General' | 'Info' | 'Success' | 'Warning' | 'Danger';
1
+ export type ToastType = 'general' | 'info' | 'success' | 'warning' | 'danger';
2
2
  export interface ToastProps {
3
3
  className?: string;
4
4
  message: string;
@@ -7,5 +7,10 @@ export interface ToastProps {
7
7
  onAction?: () => void;
8
8
  onDismiss?: () => void;
9
9
  }
10
+ /**
11
+ * Toasts notify the user that an action has completed or surface a brief message about a
12
+ * system process. They sit on top of the workflow without interrupting it, don't require
13
+ * user input to disappear, and auto-dismiss after a short duration.
14
+ */
10
15
  export default function Toast({ className, message, type, actionLabel, onAction, onDismiss, }: ToastProps): import("react/jsx-runtime").JSX.Element;
11
16
  //# sourceMappingURL=Toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAUD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,SAAc,EACd,OAAO,EACP,IAAgB,EAChB,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,UAAU,2CAkCZ"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAUD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,SAAc,EACd,OAAO,EACP,IAAgB,EAChB,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,UAAU,2CAkCZ"}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export type TooltipArrow = 'Top' | 'Right' | 'Bottom' | 'Left';
2
+ export type TooltipArrow = 'top' | 'right' | 'bottom' | 'left';
3
3
  export interface TooltipShortcutKey {
4
4
  label: string;
5
5
  }
@@ -18,8 +18,9 @@ export interface TooltipProps {
18
18
  className?: string;
19
19
  }
20
20
  /**
21
- * Tooltip component matching Figma design.
22
- * Dark overlay for hover context with optional arrow, hint, and keyboard shortcuts.
21
+ * Tooltips surface short, supporting text on hover. Reach for a tooltip when the affordance
22
+ * behind it isn't fully self-explanatory — an Icon Button, a truncated label, a keyboard
23
+ * shortcut. Don't reach for one when the label is already on screen.
23
24
  */
24
25
  export default function Tooltip({ label, arrow, hint, shortcutKeys, icon, className, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
25
26
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC,kCAAkC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAK,EACL,KAAe,EACf,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,SAAc,GACf,EAAE,YAAY,2CAmCd"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC,kCAAkC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAK,EACL,KAAe,EACf,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,SAAc,GACf,EAAE,YAAY,2CAmCd"}
@@ -1,5 +1,5 @@
1
1
  export type UnreadBadgeSize = '6' | '8';
2
- export type UnreadBadgeContext = 'Team Icon' | 'Icon Button';
2
+ export type UnreadBadgeContext = 'team-icon' | 'icon-button';
3
3
  export interface UnreadBadgeProps {
4
4
  /** Dot size in px. Default: 8. */
5
5
  size?: UnreadBadgeSize;
@@ -7,15 +7,13 @@ export interface UnreadBadgeProps {
7
7
  context?: UnreadBadgeContext;
8
8
  /** Optional CSS class name. */
9
9
  className?: string;
10
- /** Accessible label. Default: "Unread". */
10
+ /** Accessible label. Default: "unread". */
11
11
  'aria-label'?: string;
12
12
  }
13
13
  /**
14
- * Small unread dot indicator (no number).
15
- * Signals "something unread" without a count.
16
- * Two sizes (6/8 px) and two contexts (Team Icon / Icon Button).
17
- *
18
- * @see Figma Unread Badge (v2.0.0, Source: F3fippSczUZwF6C5yXoNFf)
14
+ * The Unread Badge is a small dot that signals "something's new here" without specifying how
15
+ * much. Reach for it when the count would be noisy, distracting, or simply isn't useful — a
16
+ * Team has unread channels, an icon button has a new state, a tab has activity behind it.
19
17
  */
20
18
  export default function UnreadBadge({ 'aria-label': ariaLabel, className, context, size, }: UnreadBadgeProps): import("react/jsx-runtime").JSX.Element;
21
19
  //# sourceMappingURL=UnreadBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnreadBadge.d.ts","sourceRoot":"","sources":["../../../src/components/UnreadBadge/UnreadBadge.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG,GAAG,CAAC;AAExC,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,YAAY,EAAE,SAAoB,EAClC,SAAc,EACd,OAAqB,EACrB,IAAU,GACX,EAAE,gBAAgB,2CAQlB"}
1
+ {"version":3,"file":"UnreadBadge.d.ts","sourceRoot":"","sources":["../../../src/components/UnreadBadge/UnreadBadge.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG,GAAG,CAAC;AAExC,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,YAAY,EAAE,SAAoB,EAClC,SAAc,EACd,OAAqB,EACrB,IAAU,GACX,EAAE,gBAAgB,2CAQlB"}
@@ -2,7 +2,7 @@ import { ImgHTMLAttributes } from 'react';
2
2
  /** Figma User Avatar sizes. */
3
3
  export type UserAvatarSize = '12' | '16' | '20' | '24' | '28' | '32' | '40' | '48' | '56' | '64' | '72' | '80' | '96' | '120';
4
4
  /** Figma User Avatar Fallback colour variants. */
5
- export type UserAvatarFallbackColor = 'Red' | 'Purple' | 'Neutral' | 'Blue' | 'Cyan' | 'Yellow' | 'Green' | 'Orange';
5
+ export type UserAvatarFallbackColor = 'red' | 'purple' | 'neutral' | 'blue' | 'cyan' | 'yellow' | 'green' | 'orange';
6
6
  export interface UserAvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'alt' | 'width' | 'height'> {
7
7
  /** Alt text for the avatar image. */
8
8
  alt: string;
@@ -26,14 +26,9 @@ export interface UserAvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement
26
26
  status?: boolean;
27
27
  }
28
28
  /**
29
- * User avatar. Matches Figma User Avatar — Image and Fallback variants.
30
- * When `src` is provided, renders an `<img>`; otherwise renders initials on
31
- * one of eight deterministic colour backgrounds (hashed from `name`/`alt`,
32
- * or overridden via `fallbackColor`). System variant is not implemented.
33
- *
34
- * Uses StatusBadge for online indicator when status=true.
35
- *
36
- * @see Figma User Avatar (Type=Image, Type=Fallback)
29
+ * User Avatars represent a person — usually their uploaded photo, with initials on a colour
30
+ * background as a fallback. Their circular shape distinguishes them from rounded-square Team
31
+ * Avatars at a glance.
37
32
  */
38
33
  export default function UserAvatar({ alt, className, src, name, fallbackColor, size, status, ...imgProps }: UserAvatarProps): import("react/jsx-runtime").JSX.Element;
39
34
  //# sourceMappingURL=UserAvatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/UserAvatar/UserAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM/C,+BAA+B;AAC/B,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,CAAC;AAEV,kDAAkD;AAClD,MAAM,MAAM,uBAAuB,GAC/B,KAAK,GACL,QAAQ,GACR,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,iBAAiB,CAAC,gBAAgB,CAAC,EACnC,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CACnC;IACC,qCAAqC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,8CAA8C;IAC9C,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,uFAAuF;IACvF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA8CD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,GAAG,EACH,SAAc,EACd,GAAG,EACH,IAAI,EACJ,aAAa,EACb,IAAW,EACX,MAAc,EACd,GAAG,QAAQ,EACZ,EAAE,eAAe,2CA2CjB"}
1
+ {"version":3,"file":"UserAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/UserAvatar/UserAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM/C,+BAA+B;AAC/B,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,CAAC;AAEV,kDAAkD;AAClD,MAAM,MAAM,uBAAuB,GAC/B,KAAK,GACL,QAAQ,GACR,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,iBAAiB,CAAC,gBAAgB,CAAC,EACnC,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CACnC;IACC,qCAAqC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,8CAA8C;IAC9C,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,uFAAuF;IACvF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA8CD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,GAAG,EACH,SAAc,EACd,GAAG,EACH,IAAI,EACJ,aAAa,EACb,IAAW,EACX,MAAc,EACd,GAAG,QAAQ,EACZ,EAAE,eAAe,2CA2CjB"}
@@ -18,12 +18,9 @@ export interface UserAvatarGroupProps {
18
18
  className?: string;
19
19
  }
20
20
  /**
21
- * Stacked, overlapping user avatars showing multiple participants.
22
- * Displays up to `max` avatars then shows an overflow "+N" chip.
23
- * Hover shows a `Tooltip` with each participant’s display name.
24
- * Used in thread footers, call cards, and playbook run info.
25
- *
26
- * @see Figma Avatar Group (v1.0.1)
21
+ * A User Avatar Group displays multiple participants as a stack of overlapping avatars. It's
22
+ * a compact way to show "who's involved" — thread participants, channel members, call
23
+ * attendees — without a list.
27
24
  */
28
25
  export default function UserAvatarGroup({ avatars, className, max, size, }: UserAvatarGroupProps): import("react/jsx-runtime").JSX.Element;
29
26
  //# sourceMappingURL=UserAvatarGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/UserAvatarGroup/UserAvatarGroup.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAC3B,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,WAAW,mBAAmB;IAClC,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,uFAAuF;IACvF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,OAAO,EACP,SAAc,EACd,GAAO,EACP,IAAW,GACZ,EAAE,oBAAoB,2CAqEtB"}
1
+ {"version":3,"file":"UserAvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/UserAvatarGroup/UserAvatarGroup.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAC3B,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,WAAW,mBAAmB;IAClC,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,uFAAuF;IACvF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,OAAO,EACP,SAAc,EACd,GAAO,EACP,IAAW,GACZ,EAAE,oBAAoB,2CAqEtB"}