@thewhatmatters/wmds 0.3.0 → 0.4.1

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 (243) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/CONSUMING.md +9 -4
  3. package/dist/collapse.css +9 -1
  4. package/dist/colors.css +7 -0
  5. package/dist/components/atoms/Badge/Badge.d.ts +16 -4
  6. package/dist/components/atoms/Badge/Badge.d.ts.map +1 -1
  7. package/dist/components/atoms/Badge/Badge.js +54 -42
  8. package/dist/components/atoms/Badge/badgeStyles.d.ts +12 -2
  9. package/dist/components/atoms/Badge/badgeStyles.d.ts.map +1 -1
  10. package/dist/components/atoms/Badge/badgeStyles.js +24 -13
  11. package/dist/components/atoms/Button/Button.d.ts +11 -3
  12. package/dist/components/atoms/Button/Button.d.ts.map +1 -1
  13. package/dist/components/atoms/Button/Button.js +118 -98
  14. package/dist/components/atoms/Button/ButtonStatusButton.d.ts +3 -1
  15. package/dist/components/atoms/Button/ButtonStatusButton.d.ts.map +1 -1
  16. package/dist/components/atoms/Button/ButtonStatusButton.js +19 -18
  17. package/dist/components/atoms/Button/ButtonStatusContent.d.ts +7 -1
  18. package/dist/components/atoms/Button/ButtonStatusContent.d.ts.map +1 -1
  19. package/dist/components/atoms/Button/ButtonStatusContent.js +9 -6
  20. package/dist/components/atoms/Button/buttonStatusStyles.d.ts +5 -0
  21. package/dist/components/atoms/Button/buttonStatusStyles.d.ts.map +1 -1
  22. package/dist/components/atoms/Button/buttonStatusStyles.js +10 -10
  23. package/dist/components/atoms/Button/buttonStyles.d.ts +2 -0
  24. package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -1
  25. package/dist/components/atoms/Button/buttonStyles.js +12 -12
  26. package/dist/components/atoms/Checkbox/Checkbox.d.ts +7 -0
  27. package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -1
  28. package/dist/components/atoms/Checkbox/Checkbox.js +86 -69
  29. package/dist/components/atoms/Checkbox/checkboxStyles.d.ts +6 -0
  30. package/dist/components/atoms/Checkbox/checkboxStyles.d.ts.map +1 -1
  31. package/dist/components/atoms/Checkbox/checkboxStyles.js +11 -11
  32. package/dist/components/atoms/IconButton/IconButton.d.ts +5 -0
  33. package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -1
  34. package/dist/components/atoms/IconButton/IconButton.js +73 -68
  35. package/dist/components/atoms/IconButton/iconButtonStyles.d.ts +5 -0
  36. package/dist/components/atoms/IconButton/iconButtonStyles.d.ts.map +1 -1
  37. package/dist/components/atoms/IconButton/iconButtonStyles.js +4 -4
  38. package/dist/components/atoms/Kbd/useKbdChoiceKeys.d.ts +13 -4
  39. package/dist/components/atoms/Kbd/useKbdChoiceKeys.d.ts.map +1 -1
  40. package/dist/components/atoms/Kbd/useKbdChoiceKeys.js +32 -13
  41. package/dist/components/atoms/Prose/Prose.d.ts +23 -0
  42. package/dist/components/atoms/Prose/Prose.d.ts.map +1 -0
  43. package/dist/components/atoms/Prose/Prose.js +15 -0
  44. package/dist/components/atoms/Prose/proseStyles.d.ts +17 -0
  45. package/dist/components/atoms/Prose/proseStyles.d.ts.map +1 -0
  46. package/dist/components/atoms/Prose/proseStyles.js +16 -0
  47. package/dist/components/atoms/SectionCaption/SectionCaption.d.ts +26 -0
  48. package/dist/components/atoms/SectionCaption/SectionCaption.d.ts.map +1 -0
  49. package/dist/components/atoms/SectionCaption/SectionCaption.js +25 -0
  50. package/dist/components/atoms/SectionCaption/sectionCaptionStyles.d.ts +11 -0
  51. package/dist/components/atoms/SectionCaption/sectionCaptionStyles.d.ts.map +1 -0
  52. package/dist/components/atoms/SectionCaption/sectionCaptionStyles.js +12 -0
  53. package/dist/components/atoms/TextLink/TextLink.d.ts +10 -2
  54. package/dist/components/atoms/TextLink/TextLink.d.ts.map +1 -1
  55. package/dist/components/atoms/TextLink/TextLink.js +15 -15
  56. package/dist/components/atoms/TextLink/textLinkStyles.d.ts +13 -0
  57. package/dist/components/atoms/TextLink/textLinkStyles.d.ts.map +1 -1
  58. package/dist/components/atoms/TextLink/textLinkStyles.js +7 -3
  59. package/dist/components/molecules/Accordion/Accordion.d.ts +6 -1
  60. package/dist/components/molecules/Accordion/Accordion.d.ts.map +1 -1
  61. package/dist/components/molecules/Accordion/Accordion.js +57 -50
  62. package/dist/components/molecules/Accordion/accordionStyles.d.ts +9 -0
  63. package/dist/components/molecules/Accordion/accordionStyles.d.ts.map +1 -1
  64. package/dist/components/molecules/Accordion/accordionStyles.js +2 -2
  65. package/dist/components/molecules/CheckboxGroup/CheckboxGroupItem.d.ts +5 -1
  66. package/dist/components/molecules/CheckboxGroup/CheckboxGroupItem.d.ts.map +1 -1
  67. package/dist/components/molecules/CheckboxGroup/CheckboxGroupItem.js +12 -10
  68. package/dist/components/molecules/DescriptionList/DescriptionList.d.ts +37 -0
  69. package/dist/components/molecules/DescriptionList/DescriptionList.d.ts.map +1 -0
  70. package/dist/components/molecules/DescriptionList/DescriptionList.js +50 -0
  71. package/dist/components/molecules/DescriptionList/descriptionListStyles.d.ts +21 -0
  72. package/dist/components/molecules/DescriptionList/descriptionListStyles.d.ts.map +1 -0
  73. package/dist/components/molecules/DescriptionList/descriptionListStyles.js +27 -0
  74. package/dist/components/molecules/IndexList/IndexList.d.ts +58 -0
  75. package/dist/components/molecules/IndexList/IndexList.d.ts.map +1 -0
  76. package/dist/components/molecules/IndexList/IndexList.js +96 -0
  77. package/dist/components/molecules/IndexList/indexListStyles.d.ts +29 -0
  78. package/dist/components/molecules/IndexList/indexListStyles.d.ts.map +1 -0
  79. package/dist/components/molecules/IndexList/indexListStyles.js +24 -0
  80. package/dist/components/molecules/PromptBar/PromptBar.d.ts +11 -1
  81. package/dist/components/molecules/PromptBar/PromptBar.d.ts.map +1 -1
  82. package/dist/components/molecules/PromptBar/PromptBar.js +54 -43
  83. package/dist/components/molecules/PromptBar/promptBarStyles.d.ts +16 -0
  84. package/dist/components/molecules/PromptBar/promptBarStyles.d.ts.map +1 -1
  85. package/dist/components/molecules/PromptBar/promptBarStyles.js +5 -2
  86. package/dist/components/organisms/ChatDock/ChatDock.d.ts +203 -0
  87. package/dist/components/organisms/ChatDock/ChatDock.d.ts.map +1 -0
  88. package/dist/components/organisms/ChatDock/ChatDock.js +697 -0
  89. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts +52 -0
  90. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts.map +1 -0
  91. package/dist/components/organisms/ChatDock/ChatDockGate.js +161 -0
  92. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts +16 -0
  93. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts.map +1 -0
  94. package/dist/components/organisms/ChatDock/chatDockGateStyles.js +8 -0
  95. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts +98 -0
  96. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts.map +1 -0
  97. package/dist/components/organisms/ChatDock/chatDockStyles.js +21 -0
  98. package/dist/components/organisms/ChatDock/chatDockViewport.d.ts +21 -0
  99. package/dist/components/organisms/ChatDock/chatDockViewport.d.ts.map +1 -0
  100. package/dist/components/organisms/ChatDock/chatDockViewport.js +46 -0
  101. package/dist/components/organisms/Dialog/AlertDialog.js +11 -11
  102. package/dist/components/organisms/Dialog/Dialog.js +44 -44
  103. package/dist/components/organisms/Sheet/Sheet.js +38 -38
  104. package/dist/components/organisms/Toast/Toast.js +5 -5
  105. package/dist/index.d.ts +7 -2
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js +122 -110
  108. package/dist/lib/compositionAudit.d.ts.map +1 -1
  109. package/dist/lib/typography.d.ts +2 -2
  110. package/dist/lib/typography.d.ts.map +1 -1
  111. package/dist/lib/typography.js +27 -1
  112. package/dist/styles.css +1 -1
  113. package/dist/theme.css +1 -0
  114. package/dist/typography.css +34 -0
  115. package/docs/README.md +1 -1
  116. package/docs/component-contracts.md +16 -1
  117. package/docs/components.md +16 -11
  118. package/docs/exports.json +81 -4
  119. package/docs/patterns/components-accordion--flush.tsx +29 -0
  120. package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
  121. package/docs/patterns/components-badge--outline-tags.tsx +25 -0
  122. package/docs/patterns/components-badge--with-avatar.tsx +1 -1
  123. package/docs/patterns/components-button-button--copy-button.tsx +39 -0
  124. package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
  125. package/docs/patterns/components-button-button--external-link.tsx +30 -0
  126. package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
  127. package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
  128. package/docs/patterns/components-button-button--link-render.tsx +1 -1
  129. package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
  130. package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
  131. package/docs/patterns/components-button-button--primary-action.tsx +1 -1
  132. package/docs/patterns/components-button-button--row-hug.tsx +1 -1
  133. package/docs/patterns/components-button-button--row-layout.tsx +1 -1
  134. package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
  135. package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
  136. package/docs/patterns/components-button-button--with-count.tsx +1 -1
  137. package/docs/patterns/components-button-button--with-icon.tsx +1 -1
  138. package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
  139. package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
  140. package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
  141. package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
  142. package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
  143. package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
  144. package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
  145. package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
  146. package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
  147. package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
  148. package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
  149. package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
  150. package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
  151. package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
  152. package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +158 -0
  153. package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +180 -0
  154. package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
  155. package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
  156. package/docs/patterns/components-checkbox-checkbox--with-count.tsx +19 -0
  157. package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
  158. package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
  159. package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +17 -0
  160. package/docs/patterns/components-descriptionlist--details.tsx +21 -0
  161. package/docs/patterns/components-descriptionlist--post-metadata.tsx +52 -0
  162. package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
  163. package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
  164. package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
  165. package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
  166. package/docs/patterns/components-field--horizontal-input.tsx +1 -1
  167. package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
  168. package/docs/patterns/components-field--multi-control.tsx +1 -1
  169. package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
  170. package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
  171. package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
  172. package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
  173. package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
  174. package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
  175. package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
  176. package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
  177. package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
  178. package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
  179. package/docs/patterns/components-indexlist--post-index.tsx +36 -0
  180. package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
  181. package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
  182. package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
  183. package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
  184. package/docs/patterns/components-kbd--command-row.tsx +1 -1
  185. package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
  186. package/docs/patterns/components-kbd--shortcut.tsx +1 -1
  187. package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
  188. package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
  189. package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
  190. package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
  191. package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
  192. package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
  193. package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
  194. package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
  195. package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
  196. package/docs/patterns/components-prose--article-body.tsx +11 -0
  197. package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
  198. package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
  199. package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
  200. package/docs/patterns/components-sectioncaption--column-caption.tsx +16 -0
  201. package/docs/patterns/components-sectioncaption--with-action.tsx +19 -0
  202. package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
  203. package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
  204. package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
  205. package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
  206. package/docs/patterns/components-sitenav--compact.tsx +1 -1
  207. package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
  208. package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
  209. package/docs/patterns/components-stat--insights-row.tsx +1 -1
  210. package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
  211. package/docs/patterns/components-switch--default.tsx +1 -1
  212. package/docs/patterns/components-switch--settings-row.tsx +1 -1
  213. package/docs/patterns/components-tab--settings-pages.tsx +1 -1
  214. package/docs/patterns/components-taskrows--action-details.tsx +1 -1
  215. package/docs/patterns/components-taskrows--capsules.tsx +1 -1
  216. package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
  217. package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
  218. package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
  219. package/docs/patterns/components-taskrows--status-list.tsx +1 -1
  220. package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
  221. package/docs/patterns/components-textlink--external-destination.tsx +1 -1
  222. package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
  223. package/docs/patterns/components-textlink--quiet-title.tsx +15 -0
  224. package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
  225. package/docs/patterns/components-textsequence--default.tsx +1 -1
  226. package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
  227. package/docs/patterns/components-textsequence--shapes.tsx +1 -1
  228. package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
  229. package/docs/patterns/components-tooltip--controlled.tsx +1 -1
  230. package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
  231. package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
  232. package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
  233. package/docs/patterns/components-tooltip--placement.tsx +1 -1
  234. package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
  235. package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
  236. package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
  237. package/docs/patterns/guides-filter-panel--filtered-index.tsx +174 -0
  238. package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
  239. package/docs/patterns/guides-post-page--post-page.tsx +143 -0
  240. package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
  241. package/docs/patterns/index.json +137 -9
  242. package/package.json +1 -1
  243. package/docs/patterns/components-promptbar--pattern-marketing-composer.tsx +0 -37
@@ -2,100 +2,117 @@
2
2
  import { cn as e } from "../../../lib/cn.js";
3
3
  import "../Input/inputShellStyles.js";
4
4
  import { InputStatusBanner as t } from "../inputShared/InputStatusBanner.js";
5
- import { checkboxBoxClassesFor as n, checkboxCheckIconSizeClasses as r, checkboxDescriptionClasses as i, checkboxDescriptionRowClasses as ee, checkboxHiddenInputClasses as a, checkboxHitTargetDescriptionAlignClasses as o, checkboxHitTargetSizeClasses as s, checkboxIndeterminateBarSizeClasses as c, checkboxLabelClassesFor as l, checkboxMarkClasses as u, checkboxRowBaseClasses as d, checkboxRowSizeClasses as f, checkboxSizes as p, checkboxStatusBannerClassesFor as m, checkboxTextColumnClasses as h } from "./checkboxStyles.js";
6
- import { forwardRef as g, useCallback as _, useId as v, useState as y } from "react";
7
- import { Check as te, Loader2 as ne } from "lucide-react";
8
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
5
+ import { checkboxBoxClassesFor as ee, checkboxCheckIconSizeClasses as n, checkboxCountClasses as r, checkboxCountTitleLineClasses as i, checkboxDescriptionClasses as a, checkboxDescriptionRowClasses as te, checkboxHiddenInputClasses as o, checkboxHitTargetDescriptionAlignClasses as s, checkboxHitTargetSizeClasses as ne, checkboxIndeterminateBarSizeClasses as re, checkboxLabelClassesFor as c, checkboxMarkClasses as l, checkboxRowBaseClasses as u, checkboxRowSizeClasses as d, checkboxSizes as f, checkboxStatusBannerClassesFor as p, checkboxTextColumnClasses as m } from "./checkboxStyles.js";
6
+ import { forwardRef as h, useCallback as ie, useId as ae, useState as oe } from "react";
7
+ import { Check as se, Loader2 as ce } from "lucide-react";
8
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
9
9
  //#region src/components/atoms/Checkbox/Checkbox.tsx
10
- var C = {
10
+ var y = {
11
11
  sm: "sm",
12
12
  md: "md"
13
13
  };
14
- function w(e) {
14
+ function b(e) {
15
15
  e.message != null && e.status == null && console.warn("[WMDS Checkbox] `message` requires `status`.");
16
16
  }
17
- var T = g(function({ size: p = "md", label: g, labelHidden: T = !1, description: E, indeterminate: D = !1, status: O, message: k, loading: A = !1, className: j, disabled: M, readOnly: N, checked: P, defaultChecked: F, id: I, onChange: L, ...R }, z) {
18
- let B = v(), V = I ?? B;
19
- w({
20
- status: O,
21
- message: k
17
+ var x = h(function({ size: f = "md", label: h, labelHidden: x = !1, description: S, count: C, countLabel: le, indeterminate: w = !1, status: T, message: E, loading: D = !1, className: O, disabled: k, readOnly: A, checked: j, defaultChecked: M, id: N, onChange: P, ...F }, I) {
18
+ let L = ae(), R = N ?? L;
19
+ b({
20
+ status: T,
21
+ message: E
22
22
  });
23
- let H = P !== void 0, [U, W] = y(F ?? !1), G = H ? !!P : U, K = M || A, q = k != null && k.length > 0 && O != null, J = q ? `${V}-message` : void 0, Y = E != null && !T ? `${V}-description` : void 0, X = [
24
- R["aria-describedby"],
25
- Y,
26
- J
27
- ].filter(Boolean).join(" ") || void 0, re = _((e) => {
28
- e && (e.indeterminate = D), typeof z == "function" ? z(e) : z != null && (z.current = e);
29
- }, [D, z]), ie = (e) => {
30
- if (N) {
23
+ let z = j !== void 0, [B, V] = oe(M ?? !1), H = z ? !!j : B, U = k || D, W = E != null && E.length > 0 && T != null, G = W ? `${R}-message` : void 0, K = S != null && !x ? `${R}-description` : void 0, ue = [
24
+ F["aria-describedby"],
25
+ K,
26
+ G
27
+ ].filter(Boolean).join(" ") || void 0, de = ie((e) => {
28
+ e && (e.indeterminate = w), typeof I == "function" ? I(e) : I != null && (I.current = e);
29
+ }, [w, I]), fe = (e) => {
30
+ if (A) {
31
31
  e.preventDefault();
32
32
  return;
33
33
  }
34
- H || W(e.target.checked), L?.(e);
35
- }, ae = n(p, G, D, K, q ? void 0 : O), Z = E != null && !T, Q = (t) => /* @__PURE__ */ S("span", {
36
- className: e("relative flex shrink-0 items-center justify-center", s[p], t),
37
- children: [/* @__PURE__ */ x("input", {
38
- ...R,
39
- ref: re,
40
- id: V,
34
+ z || V(e.target.checked), P?.(e);
35
+ }, pe = ee(f, H, w, U, W ? void 0 : T), q = S != null && !x, J = C != null, Y = C?.toLocaleString("en-US"), X = J ? /* @__PURE__ */ _("span", {
36
+ className: "sr-only",
37
+ children: ` (${le ?? Y})`
38
+ }) : null, Z = J ? /* @__PURE__ */ _("span", {
39
+ className: r,
40
+ "aria-hidden": !0,
41
+ children: Y
42
+ }) : null, Q = (t) => /* @__PURE__ */ v("span", {
43
+ className: e("relative flex shrink-0 items-center justify-center", ne[f], t),
44
+ children: [/* @__PURE__ */ _("input", {
45
+ ...F,
46
+ ref: de,
47
+ id: R,
41
48
  type: "checkbox",
42
- checked: H ? P : void 0,
43
- defaultChecked: H ? void 0 : F,
44
- disabled: K,
45
- readOnly: N,
46
- "aria-invalid": O === "error" || void 0,
47
- "aria-describedby": X,
48
- "aria-checked": D ? "mixed" : void 0,
49
- "aria-busy": A || void 0,
50
- onChange: ie,
51
- className: a
52
- }), /* @__PURE__ */ x("span", {
53
- className: ae,
49
+ checked: z ? j : void 0,
50
+ defaultChecked: z ? void 0 : M,
51
+ disabled: U,
52
+ readOnly: A,
53
+ "aria-invalid": T === "error" || void 0,
54
+ "aria-describedby": ue,
55
+ "aria-checked": w ? "mixed" : void 0,
56
+ "aria-busy": D || void 0,
57
+ onChange: fe,
58
+ className: o
59
+ }), /* @__PURE__ */ _("span", {
60
+ className: pe,
54
61
  "aria-hidden": !0,
55
- children: A ? /* @__PURE__ */ x(ne, {
56
- className: e(r[p], u, "animate-spin"),
62
+ children: D ? /* @__PURE__ */ _(ce, {
63
+ className: e(n[f], l, "animate-spin"),
57
64
  strokeWidth: 2
58
- }) : D ? /* @__PURE__ */ x("span", { className: e(c[p], u, "rounded-full bg-current") }) : G ? /* @__PURE__ */ x(te, {
59
- className: e(r[p], u),
65
+ }) : w ? /* @__PURE__ */ _("span", { className: e(re[f], l, "rounded-full bg-current") }) : H ? /* @__PURE__ */ _(se, {
66
+ className: e(n[f], l),
60
67
  strokeWidth: 3,
61
68
  "aria-hidden": !0
62
69
  }) : null
63
70
  })]
64
- }), $ = /* @__PURE__ */ x("label", {
65
- htmlFor: V,
66
- className: e(d, !Z && "items-center", !Z && f[p], K && "cursor-not-allowed", j),
67
- children: T ? /* @__PURE__ */ S(b, { children: [Q(), /* @__PURE__ */ x("span", {
71
+ }), $ = /* @__PURE__ */ _("label", {
72
+ htmlFor: R,
73
+ className: e(u, !q && "items-center", !q && d[f], U && "cursor-not-allowed", O),
74
+ children: x ? /* @__PURE__ */ v(g, { children: [Q(), /* @__PURE__ */ v("span", {
68
75
  className: "sr-only",
69
- children: g
70
- })] }) : Z ? /* @__PURE__ */ S("span", {
71
- className: ee[p],
72
- children: [Q(o[p]), /* @__PURE__ */ S("span", {
73
- className: h,
74
- children: [/* @__PURE__ */ x("span", {
75
- className: l(K, !0),
76
- children: g
77
- }), /* @__PURE__ */ x("span", {
78
- id: Y,
76
+ children: [h, X]
77
+ })] }) : q ? /* @__PURE__ */ v("span", {
78
+ className: e(te[f], J && "flex-1"),
79
+ children: [Q(s[f]), /* @__PURE__ */ v("span", {
80
+ className: e(m, J && "flex-1"),
81
+ children: [J ? /* @__PURE__ */ v("span", {
79
82
  className: i,
80
- children: E
83
+ children: [/* @__PURE__ */ v("span", {
84
+ className: c(U, !0),
85
+ children: [h, X]
86
+ }), Z]
87
+ }) : /* @__PURE__ */ _("span", {
88
+ className: c(U, !0),
89
+ children: h
90
+ }), /* @__PURE__ */ _("span", {
91
+ id: K,
92
+ className: a,
93
+ children: S
81
94
  })]
82
95
  })]
83
- }) : /* @__PURE__ */ S(b, { children: [Q(), /* @__PURE__ */ x("span", {
84
- className: l(K),
85
- children: g
86
- })] })
96
+ }) : /* @__PURE__ */ v(g, { children: [
97
+ Q(),
98
+ /* @__PURE__ */ v("span", {
99
+ className: c(U),
100
+ children: [h, X]
101
+ }),
102
+ Z
103
+ ] })
87
104
  });
88
- return !q || O == null || J == null ? $ : /* @__PURE__ */ S("div", {
105
+ return !W || T == null || G == null ? $ : /* @__PURE__ */ v("div", {
89
106
  className: "flex w-full flex-col gap-1.5",
90
- children: [$, /* @__PURE__ */ x(t, {
91
- status: O,
92
- message: k,
93
- messageId: J,
94
- size: C[p],
107
+ children: [$, /* @__PURE__ */ _(t, {
108
+ status: T,
109
+ message: E,
110
+ messageId: G,
111
+ size: y[f],
95
112
  messagePosition: "bottom",
96
- bannerClassName: m(O)
113
+ bannerClassName: p(T)
97
114
  })]
98
115
  });
99
116
  });
100
117
  //#endregion
101
- export { T as Checkbox, p as checkboxSizes };
118
+ export { x as Checkbox, f as checkboxSizes };
@@ -17,6 +17,12 @@ export declare const checkboxBoxDisabledClasses = "opacity-50";
17
17
  export declare const checkboxLabelClasses: string;
18
18
  /** Tighter than global `type-supporting` leading — checkbox description only. */
19
19
  export declare const checkboxDescriptionClasses: string;
20
+ /** Trailing option count — muted caption at the row's end, like **NavList** item counts. */
21
+ export declare const checkboxCountClasses: string;
22
+ /** With a count, the description layout stretches so the count reaches the row's end. */
23
+ export declare const checkboxCountStretchClasses = "flex-1";
24
+ /** Title line beside a count in the description layout. */
25
+ export declare const checkboxCountTitleLineClasses = "flex min-w-0 items-baseline gap-2";
20
26
  /** Label + description column beside the box — tight title/subtitle rhythm. */
21
27
  export declare const checkboxTextColumnClasses = "flex min-w-0 flex-col gap-px";
22
28
  export declare const checkboxLabelWithDescriptionClasses: string;
@@ -1 +1 @@
1
- {"version":3,"file":"checkboxStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Checkbox/checkboxStyles.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,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,CAK7F;AAED,iEAAiE;AACjE,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAK1E"}
@@ -19,24 +19,24 @@ var a = ["sm", "md"], o = {
19
19
  }, u = {
20
20
  sm: "h-0.5 w-2.5",
21
21
  md: "h-0.5 w-3"
22
- }, d = e("pointer-events-none flex items-center justify-center border shadow-none", "transition-[background-color,border-color,color]", n("fast")), f = "border-border-emphasized bg-surface group-hover/checkbox:border-border-emphasized group-hover/checkbox:bg-body", p = "border-primary bg-primary text-primary-foreground group-hover/checkbox:border-primary group-hover/checkbox:bg-primary", m = "stroke-current text-inherit", h = "opacity-50", g = t("ui-label"), _ = e(t("caption"), "leading-snug"), v = "flex min-w-0 flex-col gap-px", y = e(g, "leading-tight"), b = {
22
+ }, d = e("pointer-events-none flex items-center justify-center border shadow-none", "transition-[background-color,border-color,color]", n("fast")), f = "border-border-emphasized bg-surface group-hover/checkbox:border-border-emphasized group-hover/checkbox:bg-body", p = "border-primary bg-primary text-primary-foreground group-hover/checkbox:border-primary group-hover/checkbox:bg-primary", m = "stroke-current text-inherit", h = "opacity-50", g = t("ui-label"), _ = e(t("caption"), "leading-snug"), v = e("ml-auto shrink-0 tabular-nums", t("caption")), y = "flex-1", b = "flex min-w-0 items-baseline gap-2", x = "flex min-w-0 flex-col gap-px", S = e(g, "leading-tight"), C = {
23
23
  sm: "flex min-w-0 items-start gap-2",
24
24
  md: "flex min-w-0 items-start gap-2.5"
25
- }, x = {
25
+ }, w = {
26
26
  sm: "mt-px",
27
27
  md: "mt-0.5"
28
- }, S = "group/checkbox relative flex w-full cursor-pointer", C = "items-center";
29
- e(S, C);
30
- var w = "cursor-not-allowed", T = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed", E = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
31
- function D(t, n, r, a, o) {
28
+ }, T = "group/checkbox relative flex w-full cursor-pointer", E = "items-center";
29
+ e(T, E);
30
+ var D = "cursor-not-allowed", O = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed", k = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
31
+ function A(t, n, r, a, o) {
32
32
  let s = n || r;
33
- return e(d, c[t], E, s ? p : f, o != null && i[o], a && "opacity-50");
33
+ return e(d, c[t], k, s ? p : f, o != null && i[o], a && "opacity-50");
34
34
  }
35
- function O(t, n) {
36
- return e(n ? y : g, t && "opacity-50");
35
+ function j(t, n) {
36
+ return e(n ? S : g, t && "opacity-50");
37
37
  }
38
- function k(t) {
38
+ function M(t) {
39
39
  return e("flex w-full items-start gap-2 rounded-lg px-2.5 py-2 leading-snug", r[t]);
40
40
  }
41
41
  //#endregion
42
- export { d as checkboxBoxBaseClasses, p as checkboxBoxCheckedClasses, D as checkboxBoxClassesFor, h as checkboxBoxDisabledClasses, c as checkboxBoxSizeClasses, f as checkboxBoxUncheckedClasses, l as checkboxCheckIconSizeClasses, _ as checkboxDescriptionClasses, b as checkboxDescriptionRowClasses, E as checkboxFocusRingClasses, T as checkboxHiddenInputClasses, x as checkboxHitTargetDescriptionAlignClasses, s as checkboxHitTargetSizeClasses, u as checkboxIndeterminateBarSizeClasses, g as checkboxLabelClasses, O as checkboxLabelClassesFor, y as checkboxLabelWithDescriptionClasses, m as checkboxMarkClasses, S as checkboxRowBaseClasses, w as checkboxRowDisabledClasses, C as checkboxRowLabelOnlyClasses, o as checkboxRowSizeClasses, a as checkboxSizes, k as checkboxStatusBannerClassesFor, v as checkboxTextColumnClasses };
42
+ export { d as checkboxBoxBaseClasses, p as checkboxBoxCheckedClasses, A as checkboxBoxClassesFor, h as checkboxBoxDisabledClasses, c as checkboxBoxSizeClasses, f as checkboxBoxUncheckedClasses, l as checkboxCheckIconSizeClasses, v as checkboxCountClasses, y as checkboxCountStretchClasses, b as checkboxCountTitleLineClasses, _ as checkboxDescriptionClasses, C as checkboxDescriptionRowClasses, k as checkboxFocusRingClasses, O as checkboxHiddenInputClasses, w as checkboxHitTargetDescriptionAlignClasses, s as checkboxHitTargetSizeClasses, u as checkboxIndeterminateBarSizeClasses, g as checkboxLabelClasses, j as checkboxLabelClassesFor, S as checkboxLabelWithDescriptionClasses, m as checkboxMarkClasses, T as checkboxRowBaseClasses, D as checkboxRowDisabledClasses, E as checkboxRowLabelOnlyClasses, o as checkboxRowSizeClasses, a as checkboxSizes, M as checkboxStatusBannerClassesFor, x as checkboxTextColumnClasses };
@@ -22,6 +22,11 @@ export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
22
22
  fab?: boolean;
23
23
  /** Shows spinner instead of icon — async feedback. */
24
24
  loading?: boolean;
25
+ /**
26
+ * Toggle pattern — the on/off state of a toggle such as a vote. Sets `aria-pressed`, and the
27
+ * selected fill while `true`. Omit for a plain action. Not with `fab` or `inset`.
28
+ */
29
+ pressed?: boolean;
25
30
  disabled?: boolean;
26
31
  type?: "button" | "submit" | "reset";
27
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjF,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAUhC,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,sEAA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E,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAaD;;;GAGG;AACH,eAAO,MAAM,UAAU,+GAuHrB,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjF,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAWhC,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,sEAAsE;AACtE,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAE/C,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CACpE;IACD,wDAAwD;IACxD,IAAI,EAAE,YAAY,CAAC;IACnB,uFAAuF;IACvF,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qFAAqF;IACrF,IAAI,CAAC,EAAE,cAAc,GAAG,mBAAmB,CAAC;IAC5C,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC1D,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAgBD;;;GAGG;AACH,eAAO,MAAM,UAAU,+GA4HrB,CAAC"}
@@ -3,82 +3,87 @@ import { cn as e } from "../../../lib/cn.js";
3
3
  import { buttonBaseClasses as t, buttonRoleClasses as n, iconButtonSizeClasses as r } from "../Button/buttonStyles.js";
4
4
  import { ButtonIcon as i } from "../Button/ButtonIcon.js";
5
5
  import { ButtonSpinner as a } from "../Button/ButtonSpinner.js";
6
- import { iconButtonExpandedStyle as o, iconButtonInsetHitClasses as s, iconButtonInsetIconSizeClasses as c, iconButtonShapeClass as l } from "./iconButtonStyles.js";
7
- import { forwardRef as u } from "react";
8
- import { jsx as d } from "react/jsx-runtime";
9
- import { useRender as f } from "@base-ui/react/use-render";
6
+ import { iconButtonExpandedStyle as o, iconButtonInsetHitClasses as s, iconButtonInsetIconSizeClasses as c, iconButtonPressedClasses as l, iconButtonShapeClass as u } from "./iconButtonStyles.js";
7
+ import { forwardRef as d } from "react";
8
+ import { jsx as f } from "react/jsx-runtime";
9
+ import { useRender as p } from "@base-ui/react/use-render";
10
10
  //#region src/components/atoms/IconButton/IconButton.tsx
11
- function p(e) {
12
- e.fab && e.role != null && e.role !== "primary" && console.warn("[WMDS IconButton] `fab` uses primary role — omit `role` or set `primary`."), e.render != null && (e.fab || e.inset) && console.warn("[WMDS IconButton] `render` is not supported with `fab` or `inset`.");
11
+ function m(e) {
12
+ e.fab && e.role != null && e.role !== "primary" && console.warn("[WMDS IconButton] `fab` uses primary role — omit `role` or set `primary`."), e.render != null && (e.fab || e.inset) && console.warn("[WMDS IconButton] `render` is not supported with `fab` or `inset`."), e.pressed !== void 0 && (e.fab || e.inset) && console.warn("[WMDS IconButton] `pressed` (toggle) is not supported with `fab` or `inset`.");
13
13
  }
14
- var m = u(function({ icon: u, "aria-label": m, role: h, size: g = "md", inset: _ = !1, title: v, fab: y = !1, loading: b = !1, disabled: x, type: S = "button", render: C, className: w, onClick: T, onKeyDown: E, "aria-current": D, "aria-haspopup": O, "aria-expanded": k, "aria-controls": A, id: j, name: M, form: N, ...P }, F) {
15
- p({
16
- fab: y,
17
- role: h,
18
- render: C,
19
- inset: _
14
+ var h = d(function({ icon: d, "aria-label": h, role: g, size: _ = "md", inset: v = !1, title: y, fab: b = !1, loading: x = !1, pressed: S, disabled: C, type: w = "button", render: T, className: E, onClick: D, onKeyDown: O, "aria-current": k, "aria-haspopup": A, "aria-expanded": j, "aria-controls": M, id: N, name: P, form: F, ...I }, L) {
15
+ m({
16
+ fab: b,
17
+ role: g,
18
+ render: T,
19
+ inset: v,
20
+ pressed: S
20
21
  });
21
- let I = y ? "primary" : h ?? "ghost", L = x || b, R = v === void 0 ? m : v, z = _ ? g : null, B = _ ? s[z ?? "md"] : r[g], V = e(t, "justify-center", n[I], B, l, _ && "focus-visible:ring-offset-1 focus-visible:ring-offset-surface", y && "shadow-soft-card", w), H = b ? /* @__PURE__ */ d(a, { size: _ ? "xs" : g }) : _ ? /* @__PURE__ */ d("span", {
22
- className: e("inline-flex shrink-0 items-center justify-center text-inherit [&>svg]:size-full", c[z ?? "md"]),
22
+ let R = b ? "primary" : g ?? "ghost", z = C || x, B = y === void 0 ? h : y, V = v ? _ : null, H = v ? s[V ?? "md"] : r[_], U = e(t, "justify-center", S === !0 ? l : n[R], H, u, v && "focus-visible:ring-offset-1 focus-visible:ring-offset-surface", b && "shadow-soft-card", E), W = x ? /* @__PURE__ */ f(a, { size: v ? "xs" : _ }) : v ? /* @__PURE__ */ f("span", {
23
+ className: e("inline-flex shrink-0 items-center justify-center text-inherit [&>svg]:size-full", c[V ?? "md"]),
23
24
  "aria-hidden": !0,
24
- children: u
25
- }) : /* @__PURE__ */ d(i, {
26
- size: g,
27
- children: u
25
+ children: d
26
+ }) : /* @__PURE__ */ f(i, {
27
+ size: _,
28
+ children: d
28
29
  });
29
- return f({
30
- render: C,
31
- ref: F,
30
+ return p({
31
+ render: T,
32
+ ref: L,
32
33
  defaultTagName: "button",
33
- props: C ? {
34
- ...P,
35
- className: V,
36
- "aria-label": m,
37
- "aria-current": D,
38
- "aria-haspopup": O,
39
- "aria-expanded": k,
40
- "aria-controls": A,
41
- "aria-busy": b || void 0,
42
- "aria-disabled": L ? !0 : void 0,
43
- "data-disabled": L ? "" : void 0,
44
- "data-role": I,
45
- "data-size": g,
46
- "data-pattern": y ? "fab" : _ ? "inset" : "icon",
47
- "data-loading": b || void 0,
48
- title: R === "" ? void 0 : R,
49
- tabIndex: L ? -1 : P.tabIndex,
50
- onClick: T,
51
- onKeyDown: E,
52
- id: j,
53
- name: M,
54
- form: N,
55
- style: k && I === "ghost" ? o : void 0,
56
- children: H
34
+ props: T ? {
35
+ ...I,
36
+ className: U,
37
+ "aria-label": h,
38
+ "aria-current": k,
39
+ "aria-haspopup": A,
40
+ "aria-expanded": j,
41
+ "aria-controls": M,
42
+ "aria-pressed": S ?? I["aria-pressed"],
43
+ "data-pressed": S === !0 ? "" : void 0,
44
+ "aria-busy": x || void 0,
45
+ "aria-disabled": z ? !0 : void 0,
46
+ "data-disabled": z ? "" : void 0,
47
+ "data-role": R,
48
+ "data-size": _,
49
+ "data-pattern": b ? "fab" : v ? "inset" : "icon",
50
+ "data-loading": x || void 0,
51
+ title: B === "" ? void 0 : B,
52
+ tabIndex: z ? -1 : I.tabIndex,
53
+ onClick: D,
54
+ onKeyDown: O,
55
+ id: N,
56
+ name: P,
57
+ form: F,
58
+ style: j && R === "ghost" ? o : void 0,
59
+ children: W
57
60
  } : {
58
- ...P,
59
- className: V,
60
- type: S,
61
- disabled: L,
62
- "aria-busy": b || void 0,
63
- "aria-label": m,
64
- "aria-current": D,
65
- "aria-haspopup": O,
66
- "aria-expanded": k,
67
- "aria-controls": A,
68
- title: R === "" ? void 0 : R,
69
- onClick: T,
70
- onKeyDown: E,
71
- id: j,
72
- name: M,
73
- form: N,
74
- style: k && I === "ghost" ? o : void 0,
75
- "data-role": I,
76
- "data-size": g,
77
- "data-pattern": y ? "fab" : _ ? "inset" : "icon",
78
- "data-loading": b || void 0,
79
- children: H
61
+ ...I,
62
+ className: U,
63
+ type: w,
64
+ disabled: z,
65
+ "aria-busy": x || void 0,
66
+ "aria-label": h,
67
+ "aria-current": k,
68
+ "aria-haspopup": A,
69
+ "aria-expanded": j,
70
+ "aria-controls": M,
71
+ "aria-pressed": S ?? I["aria-pressed"],
72
+ "data-pressed": S === !0 ? "" : void 0,
73
+ title: B === "" ? void 0 : B,
74
+ onClick: D,
75
+ onKeyDown: O,
76
+ id: N,
77
+ name: P,
78
+ form: F,
79
+ style: j && R === "ghost" ? o : void 0,
80
+ "data-role": R,
81
+ "data-size": _,
82
+ "data-pattern": b ? "fab" : v ? "inset" : "icon",
83
+ "data-loading": x || void 0,
84
+ children: W
80
85
  }
81
86
  });
82
87
  });
83
88
  //#endregion
84
- export { m as IconButton };
89
+ export { h as IconButton };
@@ -4,6 +4,11 @@ export declare const iconButtonShapeClass = "shrink-0 rounded-full";
4
4
  export declare const iconButtonExpandedStyle: {
5
5
  backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)";
6
6
  };
7
+ /**
8
+ * Toggle pattern, pressed — the pressed overlay (it reads on any surface, in both themes) and a
9
+ * filled glyph, in place of the role's fill. Unpressed toggles keep their role.
10
+ */
11
+ export declare const iconButtonPressedClasses = "bg-ghost-active text-fg hover:bg-ghost-active active:bg-ghost-active [&_svg]:fill-current";
7
12
  /** FAB pattern — raised elevation on primary fill. */
8
13
  export declare const iconButtonFabClasses = "shadow-soft-card";
9
14
  /** Pill shell for a compact row of ghost IconButtons — Pattern: toolbar group. */
@@ -1 +1 @@
1
- {"version":3,"file":"iconButtonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/iconButtonStyles.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,oFAAoF;AACpF,eAAO,MAAM,uBAAuB;;CAEX,CAAC;AAE1B,sDAAsD;AACtD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,oFACyC,CAAC;AAEpF,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAIxE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAI7E,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,kEACyB,CAAC"}
1
+ {"version":3,"file":"iconButtonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/IconButton/iconButtonStyles.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,oFAAoF;AACpF,eAAO,MAAM,uBAAuB;;CAEX,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,wBAAwB,8FACwD,CAAC;AAE9F,sDAAsD;AACtD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,oFACyC,CAAC;AAEpF,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAIxE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAI7E,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,kEACyB,CAAC"}
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  //#region src/components/atoms/IconButton/iconButtonStyles.ts
3
- var e = "shrink-0 rounded-full", t = { backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)" }, n = "shadow-soft-card", r = {
3
+ var e = "shrink-0 rounded-full", t = { backgroundColor: "color-mix(in srgb, currentColor 5%, transparent)" }, n = "bg-ghost-active text-fg hover:bg-ghost-active active:bg-ghost-active [&_svg]:fill-current", r = "shadow-soft-card", i = {
4
4
  sm: "size-5",
5
5
  md: "size-6",
6
6
  lg: "size-7"
7
- }, i = {
7
+ }, a = {
8
8
  sm: "size-2.5 shrink-0 stroke-current",
9
9
  md: "size-3 shrink-0 stroke-current",
10
10
  lg: "size-3.5 shrink-0 stroke-current"
11
- }, a = "focus-visible:ring-offset-1 focus-visible:ring-offset-surface";
11
+ }, o = "focus-visible:ring-offset-1 focus-visible:ring-offset-surface";
12
12
  //#endregion
13
- export { t as iconButtonExpandedStyle, n as iconButtonFabClasses, a as iconButtonInsetFocusClasses, r as iconButtonInsetHitClasses, i as iconButtonInsetIconSizeClasses, e as iconButtonShapeClass };
13
+ export { t as iconButtonExpandedStyle, r as iconButtonFabClasses, o as iconButtonInsetFocusClasses, i as iconButtonInsetHitClasses, a as iconButtonInsetIconSizeClasses, n as iconButtonPressedClasses, e as iconButtonShapeClass };
@@ -1,3 +1,4 @@
1
+ import { type RefObject } from "react";
1
2
  export interface UseKbdChoiceKeysOptions {
2
3
  /**
3
4
  * When false, digit listeners stay idle. Use while the numbered choices are
@@ -5,17 +6,25 @@ export interface UseKbdChoiceKeysOptions {
5
6
  */
6
7
  enabled?: boolean;
7
8
  /**
8
- * `KeyboardEvent.key` → select handler. Keys are usually `"1"`…`"4"`.
9
+ * `KeyboardEvent.key` → select handler. Keys are usually `"1"`…`"7"`.
9
10
  * Each handler must match the click path for that choice (toggle / select).
10
11
  */
11
12
  choices: Readonly<Record<string, () => void>>;
13
+ /**
14
+ * Only while focus is inside this element — for example a gate in the chat window, so digits
15
+ * typed elsewhere on the page are left alone. Omit to listen page-wide.
16
+ */
17
+ scope?: RefObject<HTMLElement | null>;
12
18
  }
19
+ /** Text entry — a text field, text area, select, or editable element — where digits are typing. */
20
+ export declare function kbdChoiceKeysTypingTarget(target: EventTarget | null): boolean;
13
21
  /**
14
22
  * Window-level shortcuts for numbered choices documented with **Kbd**.
15
23
  *
16
24
  * **Kbd** stays display-only — this hook owns the select behavior so Pattern
17
- * Show code can copy both. Ignores editable targets (`input`, `textarea`,
18
- * `select`, contenteditable) and meta/ctrl/alt chords.
25
+ * Show code can copy both. Ignores text entry (text inputs, `textarea`, `select`,
26
+ * contenteditable) and meta/ctrl/alt chords; a focused checkbox or radio still takes digits.
27
+ * With `scope`, digits act only while focus is inside that element.
19
28
  */
20
- export declare function useKbdChoiceKeys({ enabled, choices, }: UseKbdChoiceKeysOptions): void;
29
+ export declare function useKbdChoiceKeys({ enabled, choices, scope, }: UseKbdChoiceKeysOptions): void;
21
30
  //# sourceMappingURL=useKbdChoiceKeys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKbdChoiceKeys.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Kbd/useKbdChoiceKeys.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAc,EACd,OAAO,GACR,EAAE,uBAAuB,GAAG,IAAI,CAoBhC"}
1
+ {"version":3,"file":"useKbdChoiceKeys.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Kbd/useKbdChoiceKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;IAC9C;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACvC;AAKD,mGAAmG;AACnG,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAM7E;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAc,EACd,OAAO,EACP,KAAK,GACN,EAAE,uBAAuB,GAAG,IAAI,CAwBhC"}
@@ -1,18 +1,37 @@
1
1
  "use client";
2
- import { isEditableGridOverlayTarget as e } from "../../../lib/gridOverlayUtils.js";
3
- import { useEffect as t, useRef as n } from "react";
2
+ import { useEffect as e, useRef as t } from "react";
4
3
  //#region src/components/atoms/Kbd/useKbdChoiceKeys.ts
5
- function r({ enabled: r = !0, choices: i }) {
6
- let a = n(i);
7
- a.current = i, t(() => {
8
- if (!r) return;
9
- let t = (t) => {
10
- if (t.defaultPrevented || t.metaKey || t.ctrlKey || t.altKey || e(t.target)) return;
11
- let n = a.current[t.key];
12
- n != null && (t.preventDefault(), n());
4
+ var n = /* @__PURE__ */ new Set([
5
+ "button",
6
+ "checkbox",
7
+ "color",
8
+ "file",
9
+ "image",
10
+ "radio",
11
+ "range",
12
+ "reset",
13
+ "submit"
14
+ ]);
15
+ function r(e) {
16
+ if (typeof e != "object" || !e) return !1;
17
+ let t = e;
18
+ return t.isContentEditable === !0 || t.tagName === "TEXTAREA" || t.tagName === "SELECT" || t.tagName === "INPUT" && !n.has(String(t.type ?? "text").toLowerCase());
19
+ }
20
+ function i({ enabled: n = !0, choices: i, scope: a }) {
21
+ let o = t(i);
22
+ o.current = i, e(() => {
23
+ if (!n) return;
24
+ let e = (e) => {
25
+ if (e.defaultPrevented || e.metaKey || e.ctrlKey || e.altKey || r(e.target)) return;
26
+ if (a != null) {
27
+ let t = e.target;
28
+ if (!(t instanceof Node) || a.current?.contains(t) !== !0) return;
29
+ }
30
+ let t = o.current[e.key];
31
+ t != null && (e.preventDefault(), t());
13
32
  };
14
- return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
15
- }, [r]);
33
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
34
+ }, [n, a]);
16
35
  }
17
36
  //#endregion
18
- export { r as useKbdChoiceKeys };
37
+ export { r as kbdChoiceKeysTypingTarget, i as useKbdChoiceKeys };
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from "react";
2
+ import { type ProseElement, type ProseMeasure, type ProseSize } from "./proseStyles";
3
+ export { proseElements, proseMeasures, proseSizes, type ProseElement, type ProseMeasure, type ProseSize, } from "./proseStyles";
4
+ /** Layout-only — margin or grid placement. */
5
+ export type ProseLayoutClassName = string;
6
+ export interface ProseProps {
7
+ /** Rendered long-form content — plain HTML elements (the output of a markdown renderer). */
8
+ children: ReactNode;
9
+ /** `lg` (default) — `type-reading` article text. `md` — `type-body`, for denser notes. */
10
+ size?: ProseSize;
11
+ /** `reading` (default) caps lines at 40rem. `none` fills the column. */
12
+ measure?: ProseMeasure;
13
+ /** The wrapping element. Default: `div`. */
14
+ as?: ProseElement;
15
+ className?: ProseLayoutClassName;
16
+ }
17
+ /**
18
+ * Long-form content — headings, paragraphs, lists, quotes, inline code, code blocks, rules, images,
19
+ * and tables — set from plain HTML elements inside it, with the spacing between them. Pass rendered
20
+ * markdown in; there is no class map to keep.
21
+ */
22
+ export declare function Prose({ children, size, measure, as: Element, className }: ProseProps): import("react").JSX.Element;
23
+ //# sourceMappingURL=Prose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Prose/Prose.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,eAAe,CAAC;AAEvB,8CAA8C;AAC9C,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,4FAA4F;IAC5F,QAAQ,EAAE,SAAS,CAAC;IACpB,0FAA0F;IAC1F,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,4CAA4C;IAC5C,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,IAAW,EAAE,OAAmB,EAAE,EAAE,EAAE,OAAe,EAAE,SAAS,EAAE,EAAE,UAAU,+BAU/G"}
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { cn as e } from "../../../lib/cn.js";
3
+ import { proseElementClasses as t, proseElements as n, proseMeasureClasses as r, proseMeasures as i, proseSizeClasses as a, proseSizes as o } from "./proseStyles.js";
4
+ import { jsx as s } from "react/jsx-runtime";
5
+ //#region src/components/atoms/Prose/Prose.tsx
6
+ function c({ children: n, size: i = "lg", measure: o = "reading", as: c = "div", className: l }) {
7
+ return /* @__PURE__ */ s(c, {
8
+ className: e(t, a[i], r[o], l),
9
+ "data-size": i,
10
+ "data-prose": "",
11
+ children: n
12
+ });
13
+ }
14
+ //#endregion
15
+ export { c as Prose, n as proseElements, i as proseMeasures, o as proseSizes };