@mattermost/compass-ui 0.1.0-alpha.24 → 0.1.0-alpha.26

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 (54) hide show
  1. package/dist/components/admin-panel-footer/AdminPanelFooter.css +1 -1
  2. package/dist/components/admin-panel-footer/AdminPanelFooter.module.scss.cjs +1 -1
  3. package/dist/components/admin-panel-footer/AdminPanelFooter.module.scss.js +5 -5
  4. package/dist/components/combobox/Combobox.cjs +1 -1
  5. package/dist/components/combobox/Combobox.cjs.map +1 -1
  6. package/dist/components/combobox/Combobox.d.ts +11 -2
  7. package/dist/components/combobox/Combobox.d.ts.map +1 -1
  8. package/dist/components/combobox/Combobox.js +240 -232
  9. package/dist/components/combobox/Combobox.js.map +1 -1
  10. package/dist/components/dropdown/Dropdown.cjs +1 -1
  11. package/dist/components/dropdown/Dropdown.cjs.map +1 -1
  12. package/dist/components/dropdown/Dropdown.css +1 -1
  13. package/dist/components/dropdown/Dropdown.d.ts +2 -2
  14. package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
  15. package/dist/components/dropdown/Dropdown.js +15 -15
  16. package/dist/components/dropdown/Dropdown.js.map +1 -1
  17. package/dist/components/dropdown/Dropdown.module.scss.cjs +1 -1
  18. package/dist/components/dropdown/Dropdown.module.scss.js +19 -18
  19. package/dist/components/dropdown/Dropdown.module.scss.js.map +1 -1
  20. package/dist/components/empty-state/EmptyState.css +1 -1
  21. package/dist/components/empty-state/EmptyState.module.scss.cjs +1 -1
  22. package/dist/components/empty-state/EmptyState.module.scss.js +7 -7
  23. package/dist/components/icon-button/IconButton.css +1 -1
  24. package/dist/components/icon-button/IconButton.module.scss.cjs +1 -1
  25. package/dist/components/icon-button/IconButton.module.scss.js +16 -16
  26. package/dist/components/modal-header/ModalHeader.cjs +1 -1
  27. package/dist/components/modal-header/ModalHeader.cjs.map +1 -1
  28. package/dist/components/modal-header/ModalHeader.css +1 -1
  29. package/dist/components/modal-header/ModalHeader.d.ts.map +1 -1
  30. package/dist/components/modal-header/ModalHeader.js +50 -46
  31. package/dist/components/modal-header/ModalHeader.js.map +1 -1
  32. package/dist/components/modal-header/ModalHeader.module.scss.cjs +1 -1
  33. package/dist/components/modal-header/ModalHeader.module.scss.js +18 -17
  34. package/dist/components/modal-header/ModalHeader.module.scss.js.map +1 -1
  35. package/dist/components/password-input/PasswordInput.cjs +1 -1
  36. package/dist/components/password-input/PasswordInput.cjs.map +1 -1
  37. package/dist/components/password-input/PasswordInput.d.ts +11 -3
  38. package/dist/components/password-input/PasswordInput.d.ts.map +1 -1
  39. package/dist/components/password-input/PasswordInput.js +68 -67
  40. package/dist/components/password-input/PasswordInput.js.map +1 -1
  41. package/dist/components/right-sidebar-header/RightSidebarHeader.cjs +1 -1
  42. package/dist/components/right-sidebar-header/RightSidebarHeader.cjs.map +1 -1
  43. package/dist/components/right-sidebar-header/RightSidebarHeader.css +1 -1
  44. package/dist/components/right-sidebar-header/RightSidebarHeader.d.ts +10 -3
  45. package/dist/components/right-sidebar-header/RightSidebarHeader.d.ts.map +1 -1
  46. package/dist/components/right-sidebar-header/RightSidebarHeader.js +88 -66
  47. package/dist/components/right-sidebar-header/RightSidebarHeader.js.map +1 -1
  48. package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.cjs +1 -1
  49. package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.js +13 -12
  50. package/dist/components/right-sidebar-header/RightSidebarHeader.module.scss.js.map +1 -1
  51. package/dist/components/tile-button/TileButton.css +1 -1
  52. package/dist/components/tile-button/TileButton.module.scss.cjs +1 -1
  53. package/dist/components/tile-button/TileButton.module.scss.js +6 -6
  54. package/package.json +3 -3
@@ -1,113 +1,135 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import __u from "@mattermost/compass-icons/components/arrow-back-ios.js";const u=__u&&__u.default?__u.default:__u;
3
- import __v from "@mattermost/compass-icons/components/arrow-collapse.js";const v=__v&&__v.default?__v.default:__v;
4
- import __x from "@mattermost/compass-icons/components/arrow-expand.js";const x=__x&&__x.default?__x.default:__x;
5
- import __j from "@mattermost/compass-icons/components/close.js";const j=__j&&__j.default?__j.default:__j;
6
- import __B from "@mattermost/compass-icons/components/dock-window.js";const B=__B&&__B.default?__B.default:__B;
7
- import i from "../icon/Icon.js";
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import __O from "@mattermost/compass-icons/components/arrow-collapse.js";const O=__O&&__O.default?__O.default:__O;
3
+ import __R from "@mattermost/compass-icons/components/arrow-expand.js";const R=__R&&__R.default?__R.default:__R;
4
+ import __W from "@mattermost/compass-icons/components/arrow-left.js";const W=__W&&__W.default?__W.default:__W;
5
+ import __q from "@mattermost/compass-icons/components/close.js";const q=__q&&__q.default?__q.default:__q;
6
+ import __F from "@mattermost/compass-icons/components/dock-window.js";const F=__F&&__F.default?__F.default:__F;
7
+ import l from "../icon/Icon.js";
8
8
  import s from "../icon-button/IconButton.js";
9
- import A from "../tag/Tag.js";
10
- import a from "./RightSidebarHeader.module.scss.js";
11
- function J({
12
- title: b,
13
- secondaryTitle: l,
14
- tag: o,
15
- tagType: g = "info",
9
+ import G from "../tag/Tag.js";
10
+ import { mergeClassNames as J } from "../../utils/props.js";
11
+ import i from "./RightSidebarHeader.module.scss.js";
12
+ function y({
13
+ title: C,
14
+ secondaryTitle: h,
15
+ onSecondaryTitleClick: m,
16
+ secondaryTitleButtonProps: e,
17
+ tag: d,
18
+ tagType: z = "info",
16
19
  leadingIcon: c,
17
- onBack: d,
18
- backLabel: f = "Back",
19
- onExpand: n,
20
- expanded: t = !1,
21
- expandLabel: N = "Expand",
22
- collapseLabel: y = "Collapse",
23
- onPopout: h,
24
- popoutLabel: z = "Open in new window",
25
- onClose: m,
26
- closeLabel: C = "Close",
27
- actionLabel: p,
28
- onActionClick: k,
29
- actionActive: _ = !1,
30
- className: w = ""
20
+ onBack: _,
21
+ backLabel: k = "Back",
22
+ onExpand: b,
23
+ expanded: g = !1,
24
+ expandLabel: w = "Expand",
25
+ collapseLabel: x = "Collapse",
26
+ onPopout: n,
27
+ popoutLabel: I = "Open in new window",
28
+ onClose: o,
29
+ closeLabel: v = "Close",
30
+ actionLabel: f,
31
+ onActionClick: j,
32
+ actionActive: p = !1,
33
+ actions: A,
34
+ className: D = "",
35
+ ...E
31
36
  }) {
32
- const I = [a["right-sidebar-header"], w].filter(Boolean).join(" ");
33
- return /* @__PURE__ */ r("div", { className: I, children: [
34
- /* @__PURE__ */ r("div", { className: a["right-sidebar-header__left"], children: [
35
- /* @__PURE__ */ r("div", { className: a["right-sidebar-header__primary"], children: [
36
- d && /* @__PURE__ */ e(
37
+ const H = [i["right-sidebar-header"], D].filter(Boolean).join(" ");
38
+ return /* @__PURE__ */ r("div", { ...E, className: H, children: [
39
+ /* @__PURE__ */ r("div", { className: i["right-sidebar-header__left"], children: [
40
+ /* @__PURE__ */ r("div", { className: i["right-sidebar-header__primary"], children: [
41
+ _ && /* @__PURE__ */ a(
37
42
  s,
38
43
  {
39
- className: a["right-sidebar-header__back"],
44
+ className: i["right-sidebar-header__back"],
40
45
  size: "small",
41
- "aria-label": f,
42
- onClick: d,
43
- icon: /* @__PURE__ */ e(i, { size: "16", glyph: /* @__PURE__ */ e(u, {}) })
46
+ "aria-label": k,
47
+ onClick: _,
48
+ icon: /* @__PURE__ */ a(l, { size: "16", glyph: /* @__PURE__ */ a(W, {}) })
44
49
  }
45
50
  ),
46
- c && /* @__PURE__ */ e("span", { className: a["right-sidebar-header__leading-icon"], children: c }),
47
- /* @__PURE__ */ e("span", { className: a["right-sidebar-header__title"], children: b }),
48
- o && /* @__PURE__ */ e("span", { className: a["right-sidebar-header__tag"], children: /* @__PURE__ */ e(
49
- A,
51
+ c && /* @__PURE__ */ a("span", { className: i["right-sidebar-header__leading-icon"], children: c }),
52
+ /* @__PURE__ */ a("span", { className: i["right-sidebar-header__title"], children: C }),
53
+ d && /* @__PURE__ */ a("span", { className: i["right-sidebar-header__tag"], children: /* @__PURE__ */ a(
54
+ G,
50
55
  {
51
- label: o,
52
- type: g,
56
+ label: d,
57
+ type: z,
53
58
  size: "x-small",
54
59
  casing: "all-caps"
55
60
  }
56
61
  ) })
57
62
  ] }),
58
- l && /* @__PURE__ */ e("div", { className: a["right-sidebar-header__secondary"], children: /* @__PURE__ */ e("span", { className: a["right-sidebar-header__secondary-text"], children: l }) })
63
+ h && /* @__PURE__ */ a("div", { className: i["right-sidebar-header__secondary"], children: m ? /* @__PURE__ */ a(
64
+ "button",
65
+ {
66
+ type: "button",
67
+ ...e,
68
+ className: J(
69
+ i["right-sidebar-header__secondary-text"],
70
+ i["right-sidebar-header__secondary-button"],
71
+ e == null ? void 0 : e.className
72
+ ),
73
+ onClick: (N) => {
74
+ var t;
75
+ m(N), (t = e == null ? void 0 : e.onClick) == null || t.call(e, N);
76
+ },
77
+ children: h
78
+ }
79
+ ) : /* @__PURE__ */ a("span", { className: i["right-sidebar-header__secondary-text"], children: h }) })
59
80
  ] }),
60
- /* @__PURE__ */ r("div", { className: a["right-sidebar-header__actions"], children: [
61
- p && /* @__PURE__ */ e(
81
+ /* @__PURE__ */ r("div", { className: i["right-sidebar-header__actions"], children: [
82
+ f && /* @__PURE__ */ a(
62
83
  "button",
63
84
  {
64
85
  type: "button",
65
86
  className: [
66
- a["right-sidebar-header__action"],
67
- _ ? a["right-sidebar-header__action--active"] : ""
87
+ i["right-sidebar-header__action"],
88
+ p ? i["right-sidebar-header__action--active"] : ""
68
89
  ].filter(Boolean).join(" "),
69
- onClick: k,
70
- "aria-pressed": _ ? !0 : void 0,
71
- children: p
90
+ onClick: j,
91
+ "aria-pressed": p ? !0 : void 0,
92
+ children: f
72
93
  }
73
94
  ),
74
- n && /* @__PURE__ */ e(
95
+ A,
96
+ b && /* @__PURE__ */ a(
75
97
  s,
76
98
  {
77
99
  size: "small",
78
- "aria-label": t ? y : N,
79
- onClick: n,
80
- icon: /* @__PURE__ */ e(
81
- i,
100
+ "aria-label": g ? x : w,
101
+ onClick: b,
102
+ icon: /* @__PURE__ */ a(
103
+ l,
82
104
  {
83
105
  size: "16",
84
- glyph: t ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(x, {})
106
+ glyph: g ? /* @__PURE__ */ a(O, {}) : /* @__PURE__ */ a(R, {})
85
107
  }
86
108
  )
87
109
  }
88
110
  ),
89
- h && /* @__PURE__ */ e(
111
+ n && /* @__PURE__ */ a(
90
112
  s,
91
113
  {
92
114
  size: "small",
93
- "aria-label": z,
94
- onClick: h,
95
- icon: /* @__PURE__ */ e(i, { size: "16", glyph: /* @__PURE__ */ e(B, {}) })
115
+ "aria-label": I,
116
+ onClick: n,
117
+ icon: /* @__PURE__ */ a(l, { size: "16", glyph: /* @__PURE__ */ a(F, {}) })
96
118
  }
97
119
  ),
98
- m && /* @__PURE__ */ e(
120
+ o && /* @__PURE__ */ a(
99
121
  s,
100
122
  {
101
123
  size: "small",
102
- "aria-label": C,
103
- onClick: m,
104
- icon: /* @__PURE__ */ e(i, { size: "16", glyph: /* @__PURE__ */ e(j, {}) })
124
+ "aria-label": v,
125
+ onClick: o,
126
+ icon: /* @__PURE__ */ a(l, { size: "16", glyph: /* @__PURE__ */ a(q, {}) })
105
127
  }
106
128
  )
107
129
  ] })
108
130
  ] });
109
131
  }
110
132
  export {
111
- J as default
133
+ y as default
112
134
  };
113
135
  //# sourceMappingURL=RightSidebarHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RightSidebarHeader.js","sources":["../../../src/components/right-sidebar-header/RightSidebarHeader.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport ArrowBackIosIcon from '@mattermost/compass-icons/components/arrow-back-ios';\nimport ArrowCollapseIcon from '@mattermost/compass-icons/components/arrow-collapse';\nimport ArrowExpandIcon from '@mattermost/compass-icons/components/arrow-expand';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport DockWindowIcon from '@mattermost/compass-icons/components/dock-window';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport type { TagType } from '@/components/tag/Tag';\nimport styles from './RightSidebarHeader.module.scss';\n\nexport interface RightSidebarHeaderProps {\n /** Primary title text. Accepts translated nodes (e.g. `<FormattedMessage/>`). */\n title: ReactNode;\n /** Secondary title shown to the right of a vertical divider (e.g. parent channel name). */\n secondaryTitle?: ReactNode;\n /** Optional tag rendered next to the title (e.g. \"BETA\"). */\n tag?: ReactNode;\n /** Tag visual style. Default: Info. */\n tagType?: TagType;\n /** Optional leading element shown before the title — typically a `UserAvatar` or an icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"20\" />` to align with the title text. */\n leadingIcon?: ReactNode;\n /** When set, shows a back button and calls this on click. */\n onBack?: () => void;\n /** Accessible name for the back button. Default: \"Back\". */\n backLabel?: string;\n /** When set, shows an expand/collapse button and calls this on click. */\n onExpand?: () => void;\n /** When true, the expand button shows the collapse icon. Requires `onExpand`. */\n expanded?: boolean;\n /** Accessible name for the expand button while collapsed. Default: \"Expand\". */\n expandLabel?: string;\n /** Accessible name for the expand button while expanded. Default: \"Collapse\". */\n collapseLabel?: string;\n /** When set, shows a pop out button (open in a new window) between expand and close, and calls this on click. */\n onPopout?: () => void;\n /** Accessible name for the pop out button. Default: \"Open in new window\". */\n popoutLabel?: string;\n /** When set, shows a close button and calls this on click. */\n onClose?: () => void;\n /** Accessible name for the close button. Default: \"Close\". */\n closeLabel?: string;\n /** Optional inline action label (e.g. \"Follow\"). Accepts translated nodes. */\n actionLabel?: ReactNode;\n /** Click handler for the action label. */\n onActionClick?: () => void;\n /** When true, the action button shows in its active state. */\n actionActive?: boolean;\n className?: string;\n}\n\nexport default function RightSidebarHeader({\n title,\n secondaryTitle,\n tag,\n tagType = 'info',\n leadingIcon,\n onBack,\n backLabel = 'Back',\n onExpand,\n expanded = false,\n expandLabel = 'Expand',\n collapseLabel = 'Collapse',\n onPopout,\n popoutLabel = 'Open in new window',\n onClose,\n closeLabel = 'Close',\n actionLabel,\n onActionClick,\n actionActive = false,\n className = '',\n}: RightSidebarHeaderProps) {\n const rootClass = [styles['right-sidebar-header'], className]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={rootClass}>\n <div className={styles['right-sidebar-header__left']}>\n <div className={styles['right-sidebar-header__primary']}>\n {onBack && (\n <IconButton\n className={styles['right-sidebar-header__back']}\n size=\"small\"\n aria-label={backLabel}\n onClick={onBack}\n icon={<Icon size=\"16\" glyph={<ArrowBackIosIcon />} />}\n />\n )}\n {leadingIcon && (\n <span className={styles['right-sidebar-header__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <span className={styles['right-sidebar-header__title']}>{title}</span>\n {tag && (\n <span className={styles['right-sidebar-header__tag']}>\n <Tag\n label={tag}\n type={tagType}\n size=\"x-small\"\n casing=\"all-caps\"\n />\n </span>\n )}\n </div>\n {secondaryTitle && (\n <div className={styles['right-sidebar-header__secondary']}>\n <span className={styles['right-sidebar-header__secondary-text']}>\n {secondaryTitle}\n </span>\n </div>\n )}\n </div>\n\n <div className={styles['right-sidebar-header__actions']}>\n {actionLabel && (\n <button\n type=\"button\"\n className={[\n styles['right-sidebar-header__action'],\n actionActive\n ? styles['right-sidebar-header__action--active']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={onActionClick}\n aria-pressed={actionActive ? true : undefined}\n >\n {actionLabel}\n </button>\n )}\n {onExpand && (\n <IconButton\n size=\"small\"\n aria-label={expanded ? collapseLabel : expandLabel}\n onClick={onExpand}\n icon={\n <Icon\n size=\"16\"\n glyph={expanded ? <ArrowCollapseIcon /> : <ArrowExpandIcon />}\n />\n }\n />\n )}\n {onPopout && (\n <IconButton\n size=\"small\"\n aria-label={popoutLabel}\n onClick={onPopout}\n icon={<Icon size=\"16\" glyph={<DockWindowIcon />} />}\n />\n )}\n {onClose && (\n <IconButton\n size=\"small\"\n aria-label={closeLabel}\n onClick={onClose}\n icon={<Icon size=\"16\" glyph={<CloseIcon />} />}\n />\n )}\n </div>\n </div>\n );\n}\n"],"names":["RightSidebarHeader","title","secondaryTitle","tag","tagType","leadingIcon","onBack","backLabel","onExpand","expanded","expandLabel","collapseLabel","onPopout","popoutLabel","onClose","closeLabel","actionLabel","onActionClick","actionActive","className","rootClass","styles","jsxs","jsx","IconButton","Icon","ArrowBackIosIcon","Tag","ArrowCollapseIcon","ArrowExpandIcon","DockWindowIcon","CloseIcon"],"mappings":";;;;;;;;;;AAoDA,SAAwBA,EAAmB;AAAA,EACzC,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,KAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,aAAAC,IAAc;AAAA,EACd,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,WAAAC,IAAY;AACd,GAA4B;AAC1B,QAAMC,IAAY,CAACC,EAAO,sBAAsB,GAAGF,CAAS,EACzD,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAG,EAAC,OAAA,EAAI,WAAWF,GACd,UAAA;AAAA,IAAA,gBAAAE,EAAC,OAAA,EAAI,WAAWD,EAAO,4BAA4B,GACjD,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAA,EAAI,WAAWD,EAAO,+BAA+B,GACnD,UAAA;AAAA,QAAAf,KACC,gBAAAiB;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,WAAWH,EAAO,4BAA4B;AAAA,YAC9C,MAAK;AAAA,YACL,cAAYd;AAAA,YACZ,SAASD;AAAA,YACT,wBAAOmB,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAF,EAACG,KAAiB,EAAA,CAAI;AAAA,UAAA;AAAA,QAAA;A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AAAA,MAAA;AAAA,MAILjB,KACC,gBAAAW;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,cAAYX;AAAA,UACZ,SAASD;AAAA,UACT,wBAAOa,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAF,EAACO,KAAe,EAAA,CAAI;AAAA,QAAA;AAAA,MAAA;AAAA,MAGpDhB,KACC,gBAAAS;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,cAAYT;AAAA,UACZ,SAASD;AAAA,UACT,wBAAOW,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAF,EAACQ,KAAU,EAAA,CAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAC9C,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"RightSidebarHeader.js","sources":["../../../src/components/right-sidebar-header/RightSidebarHeader.tsx"],"sourcesContent":["import type { HTMLAttributes, MouseEvent, ReactNode } from 'react';\nimport ArrowCollapseIcon from '@mattermost/compass-icons/components/arrow-collapse';\nimport ArrowExpandIcon from '@mattermost/compass-icons/components/arrow-expand';\nimport ArrowLeftIcon from '@mattermost/compass-icons/components/arrow-left';\nimport CloseIcon from '@mattermost/compass-icons/components/close';\nimport DockWindowIcon from '@mattermost/compass-icons/components/dock-window';\nimport Icon from '@/components/icon/Icon';\nimport IconButton from '@/components/icon-button/IconButton';\nimport Tag from '@/components/tag/Tag';\nimport type { TagType } from '@/components/tag/Tag';\nimport { mergeClassNames } from '@/utils/props';\nimport type { BuiltInButtonProps } from '@/utils/props';\nimport styles from './RightSidebarHeader.module.scss';\n\nexport interface RightSidebarHeaderProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'title' | 'children' | 'dangerouslySetInnerHTML'\n> {\n /** Primary title text. Accepts translated nodes (e.g. `<FormattedMessage/>`). */\n title: ReactNode;\n /** Secondary title shown to the right of a vertical divider (e.g. parent channel name). */\n secondaryTitle?: ReactNode;\n /** When set, the secondary title renders as a button (e.g. to open the parent channel) and calls this on click with the event. It looks the same at rest and shows a dim background on hover. */\n onSecondaryTitleClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n /** Extra attributes for the secondary title button (e.g. `aria-label`, `data-testid`). Only used with `onSecondaryTitleClick`; its `onClick` also runs, after that handler. */\n secondaryTitleButtonProps?: BuiltInButtonProps;\n /** Optional tag rendered next to the title (e.g. \"BETA\"). */\n tag?: ReactNode;\n /** Tag visual style. Default: Info. */\n tagType?: TagType;\n /** Optional leading element shown before the title — typically a `UserAvatar` or an icon. When passing an icon, use `<Icon glyph={<SomeIcon />} size=\"20\" />` to align with the title text. */\n leadingIcon?: ReactNode;\n /** When set, shows a back button and calls this on click. */\n onBack?: () => void;\n /** Accessible name for the back button. Default: \"Back\". */\n backLabel?: string;\n /** When set, shows an expand/collapse button and calls this on click. */\n onExpand?: () => void;\n /** When true, the expand button shows the collapse icon. Requires `onExpand`. */\n expanded?: boolean;\n /** Accessible name for the expand button while collapsed. Default: \"Expand\". */\n expandLabel?: string;\n /** Accessible name for the expand button while expanded. Default: \"Collapse\". */\n collapseLabel?: string;\n /** When set, shows a pop out button (open in a new window) between expand and close, and calls this on click. */\n onPopout?: () => void;\n /** Accessible name for the pop out button. Default: \"Open in new window\". */\n popoutLabel?: string;\n /** When set, shows a close button and calls this on click. */\n onClose?: () => void;\n /** Accessible name for the close button. Default: \"Close\". */\n closeLabel?: string;\n /** Optional inline action label (e.g. \"Follow\"). Accepts translated nodes. */\n actionLabel?: ReactNode;\n /** Click handler for the action label. */\n onActionClick?: () => void;\n /** When true, the action button shows in its active state. */\n actionActive?: boolean;\n /** Optional custom actions (e.g. a Filters `Button` + popover) rendered in the actions region after `actionLabel` and before the expand / pop out / close buttons. */\n actions?: ReactNode;\n className?: string;\n}\n\nexport default function RightSidebarHeader({\n title,\n secondaryTitle,\n onSecondaryTitleClick,\n secondaryTitleButtonProps,\n tag,\n tagType = 'info',\n leadingIcon,\n onBack,\n backLabel = 'Back',\n onExpand,\n expanded = false,\n expandLabel = 'Expand',\n collapseLabel = 'Collapse',\n onPopout,\n popoutLabel = 'Open in new window',\n onClose,\n closeLabel = 'Close',\n actionLabel,\n onActionClick,\n actionActive = false,\n actions,\n className = '',\n ...rest\n}: RightSidebarHeaderProps) {\n const rootClass = [styles['right-sidebar-header'], className]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div {...rest} className={rootClass}>\n <div className={styles['right-sidebar-header__left']}>\n <div className={styles['right-sidebar-header__primary']}>\n {onBack && (\n <IconButton\n className={styles['right-sidebar-header__back']}\n size=\"small\"\n aria-label={backLabel}\n onClick={onBack}\n icon={<Icon size=\"16\" glyph={<ArrowLeftIcon />} />}\n />\n )}\n {leadingIcon && (\n <span className={styles['right-sidebar-header__leading-icon']}>\n {leadingIcon}\n </span>\n )}\n <span className={styles['right-sidebar-header__title']}>{title}</span>\n {tag && (\n <span className={styles['right-sidebar-header__tag']}>\n <Tag\n label={tag}\n type={tagType}\n size=\"x-small\"\n casing=\"all-caps\"\n />\n </span>\n )}\n </div>\n {secondaryTitle && (\n <div className={styles['right-sidebar-header__secondary']}>\n {onSecondaryTitleClick ? (\n <button\n type=\"button\"\n {...secondaryTitleButtonProps}\n className={mergeClassNames(\n styles['right-sidebar-header__secondary-text'],\n styles['right-sidebar-header__secondary-button'],\n secondaryTitleButtonProps?.className,\n )}\n onClick={(event) => {\n onSecondaryTitleClick(event);\n secondaryTitleButtonProps?.onClick?.(event);\n }}\n >\n {secondaryTitle}\n </button>\n ) : (\n <span className={styles['right-sidebar-header__secondary-text']}>\n {secondaryTitle}\n </span>\n )}\n </div>\n )}\n </div>\n\n <div className={styles['right-sidebar-header__actions']}>\n {actionLabel && (\n <button\n type=\"button\"\n className={[\n styles['right-sidebar-header__action'],\n actionActive\n ? styles['right-sidebar-header__action--active']\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={onActionClick}\n aria-pressed={actionActive ? true : undefined}\n >\n {actionLabel}\n </button>\n )}\n {actions}\n {onExpand && (\n <IconButton\n size=\"small\"\n aria-label={expanded ? collapseLabel : expandLabel}\n onClick={onExpand}\n icon={\n <Icon\n size=\"16\"\n glyph={expanded ? <ArrowCollapseIcon /> : <ArrowExpandIcon />}\n />\n }\n />\n )}\n {onPopout && (\n <IconButton\n size=\"small\"\n aria-label={popoutLabel}\n onClick={onPopout}\n icon={<Icon size=\"16\" glyph={<DockWindowIcon />} />}\n />\n )}\n {onClose && (\n <IconButton\n size=\"small\"\n aria-label={closeLabel}\n onClick={onClose}\n icon={<Icon size=\"16\" glyph={<CloseIcon />} />}\n />\n )}\n </div>\n </div>\n );\n}\n"],"names":["RightSidebarHeader","title","secondaryTitle","onSecondaryTitleClick","secondaryTitleButtonProps","tag","tagType","leadingIcon","onBack","backLabel","onExpand","expanded","expandLabel","collapseLabel","onPopout","popoutLabel","onClose","closeLabel","actionLabel","onActionClick","actionActive","actions","className","rest","rootClass","styles","jsxs","jsx","IconButton","Icon","ArrowLeftIcon","Tag","mergeClassNames","event","_a","ArrowCollapseIcon","ArrowExpandIcon","DockWindowIcon","CloseIcon"],"mappings":";;;;;;;;;;;AA+DA,SAAwBA,EAAmB;AAAA,EACzC,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,2BAAAC;AAAA,EACA,KAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,aAAAC,IAAc;AAAA,EACd,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,SAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAA4B;AAC1B,QAAMC,IAAY,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UACC,MAAK;AAAA,UACL,cAAYX;AAAA,UACZ,SAASD;AAAA,UACT,wBAAOa,GAAA,EAAK,MAAK,MAAK,OAAO,gBAAAF,EAACW,KAAU,EAAA,CAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAC9C,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./RightSidebarHeader.css');const e={"right-sidebar-header":"_right-sidebar-header_11chd_2","right-sidebar-header__left":"_right-sidebar-header__left_11chd_12","right-sidebar-header__primary":"_right-sidebar-header__primary_11chd_18","right-sidebar-header__back":"_right-sidebar-header__back_11chd_25","right-sidebar-header__leading-icon":"_right-sidebar-header__leading-icon_11chd_28","right-sidebar-header__tag":"_right-sidebar-header__tag_11chd_33","right-sidebar-header__title":"_right-sidebar-header__title_11chd_37","right-sidebar-header__secondary":"_right-sidebar-header__secondary_11chd_47","right-sidebar-header__secondary-text":"_right-sidebar-header__secondary-text_11chd_55","right-sidebar-header__actions":"_right-sidebar-header__actions_11chd_65","right-sidebar-header__action":"_right-sidebar-header__action_11chd_65","right-sidebar-header__action--active":"_right-sidebar-header__action--active_11chd_99"};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./RightSidebarHeader.css');const e={"right-sidebar-header":"_right-sidebar-header_1jogp_2","right-sidebar-header__left":"_right-sidebar-header__left_1jogp_12","right-sidebar-header__primary":"_right-sidebar-header__primary_1jogp_18","right-sidebar-header__back":"_right-sidebar-header__back_1jogp_25","right-sidebar-header__leading-icon":"_right-sidebar-header__leading-icon_1jogp_28","right-sidebar-header__tag":"_right-sidebar-header__tag_1jogp_33","right-sidebar-header__title":"_right-sidebar-header__title_1jogp_37","right-sidebar-header__secondary":"_right-sidebar-header__secondary_1jogp_47","right-sidebar-header__secondary-button":"_right-sidebar-header__secondary-button_1jogp_56","right-sidebar-header__secondary-text":"_right-sidebar-header__secondary-text_1jogp_59","right-sidebar-header__actions":"_right-sidebar-header__actions_1jogp_95","right-sidebar-header__action":"_right-sidebar-header__action_1jogp_95","right-sidebar-header__action--active":"_right-sidebar-header__action--active_1jogp_129"};exports.default=e;
2
2
  //# sourceMappingURL=RightSidebarHeader.module.scss.cjs.map
@@ -1,16 +1,17 @@
1
1
  import './RightSidebarHeader.css';const e = {
2
- "right-sidebar-header": "_right-sidebar-header_11chd_2",
3
- "right-sidebar-header__left": "_right-sidebar-header__left_11chd_12",
4
- "right-sidebar-header__primary": "_right-sidebar-header__primary_11chd_18",
5
- "right-sidebar-header__back": "_right-sidebar-header__back_11chd_25",
6
- "right-sidebar-header__leading-icon": "_right-sidebar-header__leading-icon_11chd_28",
7
- "right-sidebar-header__tag": "_right-sidebar-header__tag_11chd_33",
8
- "right-sidebar-header__title": "_right-sidebar-header__title_11chd_37",
9
- "right-sidebar-header__secondary": "_right-sidebar-header__secondary_11chd_47",
10
- "right-sidebar-header__secondary-text": "_right-sidebar-header__secondary-text_11chd_55",
11
- "right-sidebar-header__actions": "_right-sidebar-header__actions_11chd_65",
12
- "right-sidebar-header__action": "_right-sidebar-header__action_11chd_65",
13
- "right-sidebar-header__action--active": "_right-sidebar-header__action--active_11chd_99"
2
+ "right-sidebar-header": "_right-sidebar-header_1jogp_2",
3
+ "right-sidebar-header__left": "_right-sidebar-header__left_1jogp_12",
4
+ "right-sidebar-header__primary": "_right-sidebar-header__primary_1jogp_18",
5
+ "right-sidebar-header__back": "_right-sidebar-header__back_1jogp_25",
6
+ "right-sidebar-header__leading-icon": "_right-sidebar-header__leading-icon_1jogp_28",
7
+ "right-sidebar-header__tag": "_right-sidebar-header__tag_1jogp_33",
8
+ "right-sidebar-header__title": "_right-sidebar-header__title_1jogp_37",
9
+ "right-sidebar-header__secondary": "_right-sidebar-header__secondary_1jogp_47",
10
+ "right-sidebar-header__secondary-button": "_right-sidebar-header__secondary-button_1jogp_56",
11
+ "right-sidebar-header__secondary-text": "_right-sidebar-header__secondary-text_1jogp_59",
12
+ "right-sidebar-header__actions": "_right-sidebar-header__actions_1jogp_95",
13
+ "right-sidebar-header__action": "_right-sidebar-header__action_1jogp_95",
14
+ "right-sidebar-header__action--active": "_right-sidebar-header__action--active_1jogp_129"
14
15
  };
15
16
  export {
16
17
  e as default
@@ -1 +1 @@
1
- {"version":3,"file":"RightSidebarHeader.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RightSidebarHeader.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- ._tile-button_w3stn_2{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-xxxs);width:108px;min-width:64px;max-width:100%;padding:var(--spacing-m) 0 var(--spacing-s);border:none;border-radius:var(--radius-s);background-color:rgba(var(--center-channel-color-rgb),.04);--tile-button-fg: rgba(var(--center-channel-color-rgb), .72);--tile-button-icon-fg: rgba(var(--center-channel-color-rgb), .64);color:var(--tile-button-fg);cursor:pointer;text-decoration:none;transition:background-color var(--duration-quick) var(--ease-transition),color var(--duration-quick) var(--ease-transition),outline-color var(--duration-quick) var(--ease-transition),outline-offset var(--duration-quick) var(--ease-transition);outline:2px solid color-mix(in srgb,var(--focus-ring-color) 0%,transparent);outline-offset:0}._tile-button_w3stn_2:any-link,._tile-button_w3stn_2:hover,._tile-button_w3stn_2:focus,._tile-button_w3stn_2:active,._tile-button_w3stn_2:visited{color:var(--tile-button-fg);text-decoration:none}._tile-button_w3stn_2:focus-visible{outline-color:var(--focus-ring-color);outline-offset:3px}._tile-button_w3stn_2:hover:not(:disabled,._tile-button--disabled_w3stn_31){background-color:rgba(var(--center-channel-color-rgb),.08);--tile-button-fg: rgba(var(--center-channel-color-rgb), .75)}._tile-button_w3stn_2:active:not(:disabled,._tile-button--disabled_w3stn_31){background-color:rgba(var(--button-bg-rgb),.08);--tile-button-fg: var(--link-color)}._tile-button_w3stn_2:is(:disabled,._tile-button--disabled_w3stn_31){opacity:.48;cursor:not-allowed}._tile-button--toggled_w3stn_43{--tile-button-fg: var(--link-color);background-color:rgba(var(--button-bg-rgb),.08)}._tile-button--toggled_w3stn_43 ._tile-button__icon_w3stn_47,._tile-button--toggled_w3stn_43 ._tile-button__label_w3stn_48{color:var(--link-color)}._tile-button--toggled_w3stn_43:hover:not(:disabled,._tile-button--disabled_w3stn_31){background-color:rgba(var(--button-bg-rgb),.12)}._tile-button--toggled_w3stn_43:active:not(:disabled,._tile-button--disabled_w3stn_31){background-color:rgba(var(--button-bg-rgb),.16)}._tile-button--destructive_w3stn_57{--focus-ring-color: var(--error-text, var(--color-danger));--tile-button-fg: var(--error-text, var(--color-danger));background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.04)}._tile-button--destructive_w3stn_57:hover:not(:disabled,._tile-button--disabled_w3stn_31){background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.08);--tile-button-fg: var(--error-text, var(--color-danger))}._tile-button--destructive_w3stn_57:active:not(:disabled,._tile-button--disabled_w3stn_31){background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.16);--tile-button-fg: var(--error-text, var(--color-danger))}._tile-button_w3stn_2:hover:not(:disabled,._tile-button--disabled_w3stn_31),._tile-button_w3stn_2:active:not(:disabled,._tile-button--disabled_w3stn_31),._tile-button--toggled_w3stn_43,._tile-button--destructive_w3stn_57{--tile-button-icon-fg: initial}._tile-button__icon_w3stn_47{display:flex;align-items:center;justify-content:center;width:var(--icon-size-20);height:var(--icon-size-20);flex-shrink:0;color:var(--tile-button-icon-fg, var(--tile-button-fg))}._tile-button__label_w3stn_48{font-family:var(--font-family-body);font-size:var(--font-size-50);font-weight:var(--font-weight-semibold);line-height:var(--line-height-50);letter-spacing:.11px;box-sizing:border-box;max-width:100%;padding-inline:var(--tile-button-padding-inline, clamp(var(--spacing-xs), 33.33% - 13.33px, var(--spacing-l)));display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;text-wrap:balance;white-space:normal;text-align:center;color:var(--tile-button-fg)}
1
+ ._tile-button_yrpfx_2{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-xxxs);width:108px;min-width:64px;max-width:100%;padding:var(--spacing-m) 0 var(--spacing-s);border:none;border-radius:var(--radius-s);background-color:rgba(var(--center-channel-color-rgb),.04);--tile-button-fg: rgba(var(--center-channel-color-rgb), .72);--tile-button-icon-fg: rgba(var(--center-channel-color-rgb), .64);color:var(--tile-button-fg);cursor:pointer;text-decoration:none;transition:background-color var(--duration-quick) var(--ease-transition),color var(--duration-quick) var(--ease-transition),outline-color var(--duration-quick) var(--ease-transition),outline-offset var(--duration-quick) var(--ease-transition);outline:2px solid color-mix(in srgb,var(--focus-ring-color) 0%,transparent);outline-offset:0}._tile-button_yrpfx_2:any-link,._tile-button_yrpfx_2:hover,._tile-button_yrpfx_2:focus,._tile-button_yrpfx_2:active,._tile-button_yrpfx_2:visited{color:var(--tile-button-fg);text-decoration:none}._tile-button_yrpfx_2:focus-visible{outline-color:var(--focus-ring-color);outline-offset:3px}._tile-button_yrpfx_2:hover:not(:disabled,._tile-button--disabled_yrpfx_31){background-color:rgba(var(--center-channel-color-rgb),.08);--tile-button-fg: rgba(var(--center-channel-color-rgb), .75)}._tile-button_yrpfx_2:active:not(:disabled,._tile-button--disabled_yrpfx_31){background-color:rgba(var(--button-bg-rgb),.08);--tile-button-fg: var(--link-color)}._tile-button_yrpfx_2:is(:disabled,._tile-button--disabled_yrpfx_31){opacity:.48;cursor:not-allowed}._tile-button--toggled_yrpfx_43{--tile-button-fg: var(--link-color);background-color:rgba(var(--button-bg-rgb),.08)}._tile-button--toggled_yrpfx_43 ._tile-button__icon_yrpfx_47,._tile-button--toggled_yrpfx_43 ._tile-button__label_yrpfx_48{color:var(--link-color)}._tile-button--toggled_yrpfx_43:hover:not(:disabled,._tile-button--disabled_yrpfx_31){background-color:rgba(var(--button-bg-rgb),.12)}._tile-button--toggled_yrpfx_43:active:not(:disabled,._tile-button--disabled_yrpfx_31){background-color:rgba(var(--button-bg-rgb),.16)}._tile-button--destructive_yrpfx_57{--focus-ring-color: var(--error-text, var(--color-danger));--tile-button-fg: var(--error-text, var(--color-danger));background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.04)}._tile-button--destructive_yrpfx_57:hover:not(:disabled,._tile-button--disabled_yrpfx_31){background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.08);--tile-button-fg: var(--error-text, var(--color-danger))}._tile-button--destructive_yrpfx_57:active:not(:disabled,._tile-button--disabled_yrpfx_31){background-color:rgba(var(--error-text-color-rgb, var(--color-danger-rgb)),.16);--tile-button-fg: var(--error-text, var(--color-danger))}._tile-button_yrpfx_2:hover:not(:disabled,._tile-button--disabled_yrpfx_31),._tile-button_yrpfx_2:active:not(:disabled,._tile-button--disabled_yrpfx_31),._tile-button--toggled_yrpfx_43,._tile-button--destructive_yrpfx_57{--tile-button-icon-fg: initial}._tile-button__icon_yrpfx_47{display:flex;align-items:center;justify-content:center;width:var(--icon-size-20);height:var(--icon-size-20);flex-shrink:0;color:var(--tile-button-icon-fg, var(--tile-button-fg))}._tile-button__label_yrpfx_48{font-family:var(--font-family-body);font-size:var(--font-size-50);font-weight:var(--font-weight-semibold);line-height:var(--line-height-50);letter-spacing:.11px;box-sizing:border-box;max-width:100%;padding-inline:var(--tile-button-padding-inline, var(--spacing-xs));display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;text-wrap:balance;white-space:normal;text-align:center;color:var(--tile-button-fg)}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./TileButton.css');const t={"tile-button":"_tile-button_w3stn_2","tile-button--disabled":"_tile-button--disabled_w3stn_31","tile-button--toggled":"_tile-button--toggled_w3stn_43","tile-button__icon":"_tile-button__icon_w3stn_47","tile-button__label":"_tile-button__label_w3stn_48","tile-button--destructive":"_tile-button--destructive_w3stn_57"};exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./TileButton.css');const t={"tile-button":"_tile-button_yrpfx_2","tile-button--disabled":"_tile-button--disabled_yrpfx_31","tile-button--toggled":"_tile-button--toggled_yrpfx_43","tile-button__icon":"_tile-button__icon_yrpfx_47","tile-button__label":"_tile-button__label_yrpfx_48","tile-button--destructive":"_tile-button--destructive_yrpfx_57"};exports.default=t;
2
2
  //# sourceMappingURL=TileButton.module.scss.cjs.map
@@ -1,10 +1,10 @@
1
1
  import './TileButton.css';const t = {
2
- "tile-button": "_tile-button_w3stn_2",
3
- "tile-button--disabled": "_tile-button--disabled_w3stn_31",
4
- "tile-button--toggled": "_tile-button--toggled_w3stn_43",
5
- "tile-button__icon": "_tile-button__icon_w3stn_47",
6
- "tile-button__label": "_tile-button__label_w3stn_48",
7
- "tile-button--destructive": "_tile-button--destructive_w3stn_57"
2
+ "tile-button": "_tile-button_yrpfx_2",
3
+ "tile-button--disabled": "_tile-button--disabled_yrpfx_31",
4
+ "tile-button--toggled": "_tile-button--toggled_yrpfx_43",
5
+ "tile-button__icon": "_tile-button__icon_yrpfx_47",
6
+ "tile-button__label": "_tile-button__label_yrpfx_48",
7
+ "tile-button--destructive": "_tile-button--destructive_yrpfx_57"
8
8
  };
9
9
  export {
10
10
  t as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/compass-ui",
3
- "version": "0.1.0-alpha.24",
3
+ "version": "0.1.0-alpha.26",
4
4
  "description": "Compass design system UI components for Mattermost products",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,7 +62,7 @@
62
62
  "build-storybook": "storybook build"
63
63
  },
64
64
  "peerDependencies": {
65
- "@mattermost/compass-icons": "^0.1.63",
65
+ "@mattermost/compass-icons": "^0.1.64",
66
66
  "react": "^18.2.0 || ^19.0.0",
67
67
  "react-dom": "^18.2.0 || ^19.0.0",
68
68
  "simplebar-react": "^3.3.2"
@@ -70,7 +70,7 @@
70
70
  "devDependencies": {
71
71
  "@fontsource/metropolis": "^5.2.5",
72
72
  "@fontsource/open-sans": "^5.2.7",
73
- "@mattermost/compass-icons": "^0.1.63",
73
+ "@mattermost/compass-icons": "^0.1.64",
74
74
  "@storybook/addon-essentials": "^8.6.14",
75
75
  "@storybook/addon-interactions": "^8.6.14",
76
76
  "@storybook/react": "^8.6.14",