@thewhatmatters/wmds 0.4.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 (236) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/CONSUMING.md +8 -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/promptBarStyles.d.ts +3 -2
  81. package/dist/components/molecules/PromptBar/promptBarStyles.d.ts.map +1 -1
  82. package/dist/components/molecules/PromptBar/promptBarStyles.js +1 -1
  83. package/dist/components/organisms/ChatDock/ChatDock.d.ts +120 -10
  84. package/dist/components/organisms/ChatDock/ChatDock.d.ts.map +1 -1
  85. package/dist/components/organisms/ChatDock/ChatDock.js +654 -212
  86. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts +52 -0
  87. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts.map +1 -0
  88. package/dist/components/organisms/ChatDock/ChatDockGate.js +161 -0
  89. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts +16 -0
  90. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts.map +1 -0
  91. package/dist/components/organisms/ChatDock/chatDockGateStyles.js +8 -0
  92. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts +60 -10
  93. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts.map +1 -1
  94. package/dist/components/organisms/ChatDock/chatDockStyles.js +15 -9
  95. package/dist/components/organisms/ChatDock/chatDockViewport.d.ts +21 -0
  96. package/dist/components/organisms/ChatDock/chatDockViewport.d.ts.map +1 -0
  97. package/dist/components/organisms/ChatDock/chatDockViewport.js +46 -0
  98. package/dist/components/organisms/Toast/Toast.js +5 -5
  99. package/dist/index.d.ts +7 -3
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +122 -112
  102. package/dist/lib/compositionAudit.d.ts.map +1 -1
  103. package/dist/lib/typography.d.ts +2 -2
  104. package/dist/lib/typography.d.ts.map +1 -1
  105. package/dist/lib/typography.js +27 -1
  106. package/dist/styles.css +1 -1
  107. package/dist/theme.css +1 -0
  108. package/dist/typography.css +34 -0
  109. package/docs/README.md +1 -1
  110. package/docs/component-contracts.md +15 -0
  111. package/docs/components.md +15 -11
  112. package/docs/exports.json +69 -4
  113. package/docs/patterns/components-accordion--flush.tsx +29 -0
  114. package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
  115. package/docs/patterns/components-badge--outline-tags.tsx +25 -0
  116. package/docs/patterns/components-badge--with-avatar.tsx +1 -1
  117. package/docs/patterns/components-button-button--copy-button.tsx +39 -0
  118. package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
  119. package/docs/patterns/components-button-button--external-link.tsx +30 -0
  120. package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
  121. package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
  122. package/docs/patterns/components-button-button--link-render.tsx +1 -1
  123. package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
  124. package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
  125. package/docs/patterns/components-button-button--primary-action.tsx +1 -1
  126. package/docs/patterns/components-button-button--row-hug.tsx +1 -1
  127. package/docs/patterns/components-button-button--row-layout.tsx +1 -1
  128. package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
  129. package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
  130. package/docs/patterns/components-button-button--with-count.tsx +1 -1
  131. package/docs/patterns/components-button-button--with-icon.tsx +1 -1
  132. package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
  133. package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
  134. package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
  135. package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
  136. package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
  137. package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
  138. package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
  139. package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
  140. package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
  141. package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
  142. package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
  143. package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
  144. package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
  145. package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
  146. package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +101 -11
  147. package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +180 -0
  148. package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
  149. package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
  150. package/docs/patterns/components-checkbox-checkbox--with-count.tsx +19 -0
  151. package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
  152. package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
  153. package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +17 -0
  154. package/docs/patterns/components-descriptionlist--details.tsx +21 -0
  155. package/docs/patterns/components-descriptionlist--post-metadata.tsx +52 -0
  156. package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
  157. package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
  158. package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
  159. package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
  160. package/docs/patterns/components-field--horizontal-input.tsx +1 -1
  161. package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
  162. package/docs/patterns/components-field--multi-control.tsx +1 -1
  163. package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
  164. package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
  165. package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
  166. package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
  167. package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
  168. package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
  169. package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
  170. package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
  171. package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
  172. package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
  173. package/docs/patterns/components-indexlist--post-index.tsx +36 -0
  174. package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
  175. package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
  176. package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
  177. package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
  178. package/docs/patterns/components-kbd--command-row.tsx +1 -1
  179. package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
  180. package/docs/patterns/components-kbd--shortcut.tsx +1 -1
  181. package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
  182. package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
  183. package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
  184. package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
  185. package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
  186. package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
  187. package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
  188. package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
  189. package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
  190. package/docs/patterns/components-prose--article-body.tsx +11 -0
  191. package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
  192. package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
  193. package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
  194. package/docs/patterns/components-sectioncaption--column-caption.tsx +16 -0
  195. package/docs/patterns/components-sectioncaption--with-action.tsx +19 -0
  196. package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
  197. package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
  198. package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
  199. package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
  200. package/docs/patterns/components-sitenav--compact.tsx +1 -1
  201. package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
  202. package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
  203. package/docs/patterns/components-stat--insights-row.tsx +1 -1
  204. package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
  205. package/docs/patterns/components-switch--default.tsx +1 -1
  206. package/docs/patterns/components-switch--settings-row.tsx +1 -1
  207. package/docs/patterns/components-tab--settings-pages.tsx +1 -1
  208. package/docs/patterns/components-taskrows--action-details.tsx +1 -1
  209. package/docs/patterns/components-taskrows--capsules.tsx +1 -1
  210. package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
  211. package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
  212. package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
  213. package/docs/patterns/components-taskrows--status-list.tsx +1 -1
  214. package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
  215. package/docs/patterns/components-textlink--external-destination.tsx +1 -1
  216. package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
  217. package/docs/patterns/components-textlink--quiet-title.tsx +15 -0
  218. package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
  219. package/docs/patterns/components-textsequence--default.tsx +1 -1
  220. package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
  221. package/docs/patterns/components-textsequence--shapes.tsx +1 -1
  222. package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
  223. package/docs/patterns/components-tooltip--controlled.tsx +1 -1
  224. package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
  225. package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
  226. package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
  227. package/docs/patterns/components-tooltip--placement.tsx +1 -1
  228. package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
  229. package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
  230. package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
  231. package/docs/patterns/guides-filter-panel--filtered-index.tsx +174 -0
  232. package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
  233. package/docs/patterns/guides-post-page--post-page.tsx +143 -0
  234. package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
  235. package/docs/patterns/index.json +129 -1
  236. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ export declare const proseSizes: readonly ["lg", "md"];
2
+ /**
3
+ * `lg` (default) — long-form reading: `type-reading` (17px at a 28px line), headings a step up.
4
+ * `md` — denser copy on `type-body` (14px), such as a resource category's notes.
5
+ */
6
+ export type ProseSize = (typeof proseSizes)[number];
7
+ export declare const proseMeasures: readonly ["reading", "none"];
8
+ /** `reading` (default) caps the line at 40rem — about 70 characters at `lg`. `none` fills the column. */
9
+ export type ProseMeasure = (typeof proseMeasures)[number];
10
+ export declare const proseElements: readonly ["div", "article", "section"];
11
+ export type ProseElement = (typeof proseElements)[number];
12
+ export declare const proseMeasureClasses: Record<ProseMeasure, string>;
13
+ /** Body type, block rhythm, and heading steps per size. */
14
+ export declare const proseSizeClasses: Record<ProseSize, string>;
15
+ /** Plain HTML elements inside — the markdown a renderer outputs. */
16
+ export declare const proseElementClasses: string;
17
+ //# sourceMappingURL=proseStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proseStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Prose/proseStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,uBAAwB,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,8BAA+B,CAAC;AAE1D,yGAAyG;AACzG,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,aAAa,wCAAyC,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAG5D,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAiBtD,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,QA2B/B,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { cn as e } from "../../../lib/cn.js";
3
+ //#region src/components/atoms/Prose/proseStyles.ts
4
+ var t = ["lg", "md"], n = ["reading", "none"], r = [
5
+ "div",
6
+ "article",
7
+ "section"
8
+ ], i = {
9
+ reading: "max-w-[40rem]",
10
+ none: ""
11
+ }, a = {
12
+ lg: e("type-reading", "[&>*+*]:mt-6", "[&_h2]:type-heading-1 [&>*+h2]:mt-12 [&>h2+*]:mt-4", "[&_h3]:type-heading-2 [&>*+h3]:mt-10 [&>h3+*]:mt-3", "[&_:is(h4,h5,h6)]:type-heading-3 [&>*+:is(h4,h5,h6)]:mt-8 [&>:is(h4,h5,h6)+*]:mt-2", "[&_li+li]:mt-2 [&_li>*+*]:mt-2"),
13
+ md: e("type-body", "[&>*+*]:mt-5", "[&_h2]:type-heading-2 [&>*+h2]:mt-10 [&>h2+*]:mt-3", "[&_h3]:type-heading-3 [&>*+h3]:mt-8 [&>h3+*]:mt-2", "[&_:is(h4,h5,h6)]:type-heading-4 [&>*+:is(h4,h5,h6)]:mt-6 [&>:is(h4,h5,h6)+*]:mt-2", "[&_li+li]:mt-1.5 [&_li>*+*]:mt-1.5")
14
+ }, o = e("min-w-0 text-fg", "[&_:is(h2,h3,h4,h5,h6)]:text-fg [&_:is(h2,h3,h4,h5,h6)]:text-balance [&_:is(h2,h3,h4,h5,h6)]:scroll-mt-24", "[&_a]:font-medium [&_a]:text-fg [&_a]:underline [&_a]:decoration-solid [&_a]:decoration-border-emphasized [&_a]:underline-offset-4", "[&_a]:transition-[color,text-decoration-color] [&_a]:duration-fast [&_a]:ease-standard [&_a:hover]:decoration-fg", "[&_a:focus-visible]:rounded-sm [&_a:focus-visible]:outline-none [&_a:focus-visible]:ring-2 [&_a:focus-visible]:ring-focus-ring [&_a:focus-visible]:ring-offset-2 [&_a:focus-visible]:ring-offset-body", "[&_strong]:font-semibold [&_strong]:text-fg", "[&_ul]:list-disc [&_ol]:list-decimal [&_:is(ul,ol)]:pl-6 [&_li]:pl-1 [&_li::marker]:text-muted [&_li>:is(ul,ol)]:mt-2", "[&_blockquote]:border-l-2 [&_blockquote]:border-border-emphasized [&_blockquote]:pl-5 [&_blockquote>*+*]:mt-4", "[&_:not(pre)>code]:rounded-sm [&_:not(pre)>code]:bg-ghost-hover [&_:not(pre)>code]:px-1 [&_:not(pre)>code]:py-0.5 [&_:not(pre)>code]:font-mono [&_:not(pre)>code]:text-[0.875em]", "[&_pre]:overflow-x-auto [&_pre]:rounded-[var(--radius-card-body)] [&_pre]:border [&_pre]:border-border [&_pre]:bg-surface [&_pre]:p-4 [&_pre]:type-code [&_pre]:text-fg", "[&_hr]:border-0 [&_hr]:border-t [&_hr]:border-border [&>*+hr]:mt-10 [&>hr+*]:mt-10", "[&_img]:h-auto [&_img]:max-w-full [&_img]:rounded-[var(--radius-card-body)]", "[&_figcaption]:mt-2 [&_figcaption]:type-supporting [&_figcaption]:text-muted", "[&_table]:block [&_table]:w-max [&_table]:max-w-full [&_table]:overflow-x-auto [&_table]:border-collapse [&_table]:type-body", "[&_th]:border-b [&_th]:border-border-emphasized [&_th]:py-2 [&_th]:pr-6 [&_th]:text-left [&_th]:align-bottom [&_th]:type-label", "[&_td]:border-b [&_td]:border-border [&_td]:py-2 [&_td]:pr-6 [&_td]:align-top");
15
+ //#endregion
16
+ export { o as proseElementClasses, r as proseElements, i as proseMeasureClasses, n as proseMeasures, a as proseSizeClasses, t as proseSizes };
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from "react";
2
+ import { type SectionCaptionElement } from "./sectionCaptionStyles";
3
+ export { sectionCaptionElements, type SectionCaptionElement } from "./sectionCaptionStyles";
4
+ /** Layout-only — margin or grid placement. */
5
+ export type SectionCaptionLayoutClassName = string;
6
+ export interface SectionCaptionProps {
7
+ /** The caption, in sentence case — for example "Metadata". The utility sets the capitals. */
8
+ children: ReactNode;
9
+ /** The element. `h2` (default) when the caption names a region; `p` when it only labels a column. */
10
+ as?: SectionCaptionElement;
11
+ /** For `aria-labelledby` on the region the caption names. */
12
+ id?: string;
13
+ /** The leading "/" — decoration screen readers skip. Default: true. */
14
+ marker?: boolean;
15
+ /** The rule under the caption. Default: true. */
16
+ rule?: boolean;
17
+ /** An action at the row's end — **Button** `size="xs"`, for example Clear all. */
18
+ end?: ReactNode;
19
+ className?: SectionCaptionLayoutClassName;
20
+ }
21
+ /**
22
+ * The small uppercase mono caption over a page column — "/ Metadata", "/ Article", "/ Filters" —
23
+ * on a hairline rule, with an optional action at its end.
24
+ */
25
+ export declare function SectionCaption({ children, as: Element, id, marker, rule, end, className, }: SectionCaptionProps): import("react").JSX.Element;
26
+ //# sourceMappingURL=SectionCaption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionCaption.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SectionCaption/SectionCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAML,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE5F,8CAA8C;AAC9C,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,6FAA6F;IAC7F,QAAQ,EAAE,SAAS,CAAC;IACpB,qGAAqG;IACrG,EAAE,CAAC,EAAE,qBAAqB,CAAC;IAC3B,6DAA6D;IAC7D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uEAAuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kFAAkF;IAClF,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,6BAA6B,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,EAAE,EAAE,OAAc,EAClB,EAAE,EACF,MAAa,EACb,IAAW,EACX,GAAG,EACH,SAAS,GACV,EAAE,mBAAmB,+BAiBrB"}
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { cn as e } from "../../../lib/cn.js";
3
+ import { sectionCaptionElements as t, sectionCaptionEndClasses as n, sectionCaptionLabelClasses as r, sectionCaptionMarkerClasses as i, sectionCaptionRowClasses as a } from "./sectionCaptionStyles.js";
4
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ //#region src/components/atoms/SectionCaption/SectionCaption.tsx
6
+ function c({ children: t, as: c = "h2", id: l, marker: u = !0, rule: d = !0, end: f, className: p }) {
7
+ return /* @__PURE__ */ s("div", {
8
+ className: e(a, d && "border-b border-border-emphasized pb-3", p),
9
+ "data-section-caption": "",
10
+ children: [/* @__PURE__ */ s(c, {
11
+ id: l,
12
+ className: r,
13
+ children: [u ? /* @__PURE__ */ s("span", {
14
+ className: i,
15
+ "aria-hidden": "true",
16
+ children: ["/", " "]
17
+ }) : null, t]
18
+ }), f == null ? null : /* @__PURE__ */ o("div", {
19
+ className: n,
20
+ children: f
21
+ })]
22
+ });
23
+ }
24
+ //#endregion
25
+ export { c as SectionCaption, t as sectionCaptionElements };
@@ -0,0 +1,11 @@
1
+ export declare const sectionCaptionElements: readonly ["h2", "h3", "h4", "p"];
2
+ export type SectionCaptionElement = (typeof sectionCaptionElements)[number];
3
+ /** The caption row — the label, an optional action at its end, and the rule under it. */
4
+ export declare const sectionCaptionRowClasses = "flex min-h-4 items-center justify-between gap-3";
5
+ export declare const sectionCaptionRuledClasses = "border-b border-border-emphasized pb-3";
6
+ export declare const sectionCaptionLabelClasses: string;
7
+ /** The "/" marker — decoration; screen readers skip it. */
8
+ export declare const sectionCaptionMarkerClasses = "select-none";
9
+ /** Holds a 28px control (**Button** `size="xs"`) without growing the 16px caption line. */
10
+ export declare const sectionCaptionEndClasses = "-my-1.5 flex shrink-0 items-center gap-2";
11
+ //# sourceMappingURL=sectionCaptionStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionCaptionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SectionCaption/sectionCaptionStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB,kCAAmC,CAAC;AAEvE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,oDAAoD,CAAC;AAE1F,eAAO,MAAM,0BAA0B,2CAA2C,CAAC;AAEnF,eAAO,MAAM,0BAA0B,QAAgD,CAAC;AAExF,2DAA2D;AAC3D,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AAEzD,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB,6CAA6C,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { cn as e } from "../../../lib/cn.js";
3
+ import { typographyClass as t } from "../../../lib/typography.js";
4
+ //#region src/components/atoms/SectionCaption/sectionCaptionStyles.ts
5
+ var n = [
6
+ "h2",
7
+ "h3",
8
+ "h4",
9
+ "p"
10
+ ], r = "flex min-h-4 items-center justify-between gap-3", i = "border-b border-border-emphasized pb-3", a = e("m-0 min-w-0", t("eyebrow")), o = "select-none", s = "-my-1.5 flex shrink-0 items-center gap-2";
11
+ //#endregion
12
+ export { n as sectionCaptionElements, s as sectionCaptionEndClasses, a as sectionCaptionLabelClasses, o as sectionCaptionMarkerClasses, r as sectionCaptionRowClasses, i as sectionCaptionRuledClasses };
@@ -1,14 +1,22 @@
1
1
  import type { AnchorHTMLAttributes, ReactNode } from "react";
2
+ import { type TextLinkVariant } from "./textLinkStyles";
3
+ export { textLinkVariants, type TextLinkVariant } from "./textLinkStyles";
2
4
  /** Layout-only — margin or placement; not for changing the link treatment. */
3
5
  export type TextLinkLayoutClassName = string;
4
6
  export interface TextLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className" | "href" | "target"> {
5
7
  href: string;
6
8
  children: ReactNode;
9
+ /**
10
+ * `prose` (default) — medium weight with a solid underline, for links inside body copy.
11
+ * `quiet` — no underline at rest, an underline on hover and focus; inherits the surrounding size
12
+ * and weight. For headline-size text and list titles.
13
+ */
14
+ variant?: TextLinkVariant;
7
15
  /** Opens in a new tab and appends the external-destination icon. */
8
16
  external?: boolean;
9
17
  /** Layout-only: margin or placement. */
10
18
  className?: TextLinkLayoutClassName;
11
19
  }
12
- /** Inline text navigation with the canonical solid underline treatment. */
13
- export declare function TextLink({ href, children, external, className, rel, ...anchorProps }: TextLinkProps): import("react").JSX.Element;
20
+ /** Inline text navigation — the solid-underline prose link, or a quiet link for titles. */
21
+ export declare function TextLink({ href, children, variant, external, className, rel, ...anchorProps }: TextLinkProps): import("react").JSX.Element;
14
22
  //# sourceMappingURL=TextLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextLink/TextLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7D,8EAA8E;AAC9E,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAC7C;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,SAAS,EACT,GAAG,EACH,GAAG,WAAW,EACf,EAAE,aAAa,+BAwBf"}
1
+ {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextLink/TextLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE1E,8EAA8E;AAC9E,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAC7C;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED,2FAA2F;AAC3F,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,OAAiB,EACjB,QAAgB,EAChB,SAAS,EACT,GAAG,EACH,GAAG,WAAW,EACf,EAAE,aAAa,+BAwBf"}
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../../lib/cn.js";
3
- import { textLinkClasses as t, textLinkExternalIconClasses as n } from "./textLinkStyles.js";
4
- import { SquareArrowOutUpRight as r } from "lucide-react";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
3
+ import { textLinkExternalIconClasses as t, textLinkVariantClasses as n, textLinkVariants as r } from "./textLinkStyles.js";
4
+ import { SquareArrowOutUpRight as i } from "lucide-react";
5
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  //#region src/components/atoms/TextLink/TextLink.tsx
7
- function s({ href: s, children: c, external: l = !1, className: u, rel: d, ...f }) {
8
- let p = l && d == null ? "noopener noreferrer" : d;
9
- return /* @__PURE__ */ o("a", {
10
- ...f,
11
- href: s,
12
- target: l ? "_blank" : void 0,
13
- rel: p,
14
- className: e(t, u),
15
- children: [c, l ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(r, {
16
- className: n,
7
+ function c({ href: r, children: c, variant: l = "prose", external: u = !1, className: d, rel: f, ...p }) {
8
+ let m = u && f == null ? "noopener noreferrer" : f;
9
+ return /* @__PURE__ */ s("a", {
10
+ ...p,
11
+ href: r,
12
+ target: u ? "_blank" : void 0,
13
+ rel: m,
14
+ className: e(n[l], d),
15
+ children: [c, u ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(i, {
16
+ className: t,
17
17
  strokeWidth: 2,
18
18
  "aria-hidden": !0
19
- }), /* @__PURE__ */ a("span", {
19
+ }), /* @__PURE__ */ o("span", {
20
20
  className: "sr-only",
21
21
  children: " (opens in a new tab)"
22
22
  })] }) : null]
23
23
  });
24
24
  }
25
25
  //#endregion
26
- export { s as TextLink };
26
+ export { c as TextLink, r as textLinkVariants };
@@ -1,3 +1,16 @@
1
+ export declare const textLinkVariants: readonly ["prose", "quiet"];
2
+ export type TextLinkVariant = (typeof textLinkVariants)[number];
3
+ /** Shared focus ring — the same on every variant. */
4
+ export declare const textLinkFocusClasses = "focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-body";
5
+ /** Prose — medium weight with a solid hairline underline that darkens on hover. */
6
+ export declare const textLinkProseClasses: string;
7
+ /**
8
+ * Quiet — headline-size and list titles. Inherits the surrounding type (size and weight); no
9
+ * underline at rest; hover and keyboard focus draw an underline scaled to the text.
10
+ */
11
+ export declare const textLinkQuietClasses: string;
12
+ export declare const textLinkVariantClasses: Record<TextLinkVariant, string>;
13
+ /** @deprecated Use `textLinkVariantClasses.prose`. */
1
14
  export declare const textLinkClasses: string;
2
15
  export declare const textLinkExternalIconClasses = "ml-0.5 inline-block size-[0.85em] align-[0.05em] stroke-current";
3
16
  //# sourceMappingURL=textLinkStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textLinkStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextLink/textLinkStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAKqF,CAAC;AAElH,eAAO,MAAM,2BAA2B,oEAC2B,CAAC"}
1
+ {"version":3,"file":"textLinkStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TextLink/textLinkStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,6BAA8B,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,sKACoI,CAAC;AAEtK,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,QAMhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAQhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAGlE,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,eAAe,QAAuB,CAAC;AAEpD,eAAO,MAAM,2BAA2B,oEAC2B,CAAC"}
@@ -1,6 +1,10 @@
1
1
  "use client";
2
- import { motionTransition as e } from "../../../lib/motion.js";
2
+ import { cn as e } from "../../../lib/cn.js";
3
+ import { motionTransition as t } from "../../../lib/motion.js";
3
4
  //#region src/components/atoms/TextLink/textLinkStyles.ts
4
- var t = "font-medium text-fg underline decoration-solid decoration-border-emphasized underline-offset-4 transition-[color,text-decoration-color] " + e("fast") + " hover:decoration-fg focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-body", n = "ml-0.5 inline-block size-[0.85em] align-[0.05em] stroke-current";
5
+ var n = ["prose", "quiet"], r = "focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-body", i = e("font-medium text-fg underline decoration-solid decoration-border-emphasized underline-offset-4", "transition-[color,text-decoration-color]", t("fast"), "hover:decoration-fg", r), a = e("text-fg underline decoration-transparent decoration-solid decoration-[length:0.06em] underline-offset-[0.16em]", "transition-[color,text-decoration-color]", t("fast"), "hover:decoration-current focus-visible:decoration-current", "box-decoration-clone", r), o = {
6
+ prose: i,
7
+ quiet: a
8
+ }, s = "ml-0.5 inline-block size-[0.85em] align-[0.05em] stroke-current";
5
9
  //#endregion
6
- export { t as textLinkClasses, n as textLinkExternalIconClasses };
10
+ export { s as textLinkExternalIconClasses, r as textLinkFocusClasses, i as textLinkProseClasses, a as textLinkQuietClasses, o as textLinkVariantClasses, n as textLinkVariants };
@@ -10,6 +10,11 @@ export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
10
10
  variant?: AccordionVariant;
11
11
  /** List only — drop standalone shell (radius, fill, shadow) inside **Card.Body**. */
12
12
  inset?: boolean;
13
+ /**
14
+ * Plain only — no horizontal inset, so labels and panels line up with the text around the
15
+ * accordion (a filter side panel). The hover band reaches 8px past each edge.
16
+ */
17
+ flush?: boolean;
13
18
  className?: AccordionLayoutClassName;
14
19
  }
15
20
  export interface AccordionItemProps {
@@ -28,7 +33,7 @@ export interface AccordionItemProps {
28
33
  onOpenChange?: (open: boolean) => void;
29
34
  className?: AccordionLayoutClassName;
30
35
  }
31
- declare function AccordionRoot({ variant, inset, className, children, ...props }: AccordionProps): import("react").JSX.Element;
36
+ declare function AccordionRoot({ variant, inset, flush: flushProp, className, children, ...props }: AccordionProps): import("react").JSX.Element;
32
37
  declare function AccordionItem({ label, leading, trailing, children, defaultOpen, open: openProp, onOpenChange, className, }: AccordionItemProps): import("react").JSX.Element;
33
38
  export declare const Accordion: typeof AccordionRoot & {
34
39
  Item: typeof AccordionItem;
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAuBL,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,mEAAmE;AACnE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAU9C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,mGAAmG;IACnG,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,qFAAqF;IACrF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,sEAAsE;IACtE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yBAAyB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACtC;AAED,iBAAS,aAAa,CAAC,EACrB,OAAiB,EACjB,KAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAoBhB;AAeD,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAmB,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,SAAS,GACV,EAAE,kBAAkB,+BAqEpB;AAED,eAAO,MAAM,SAAS;;CAEpB,CAAC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EA0BL,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,mEAAmE;AACnE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAY9C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,mGAAmG;IACnG,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,qFAAqF;IACrF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,sEAAsE;IACtE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yBAAyB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,wBAAwB,CAAC;CACtC;AAED,iBAAS,aAAa,CAAC,EACrB,OAAiB,EACjB,KAAa,EACb,KAAK,EAAE,SAAiB,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BA2BhB;AAkBD,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAmB,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,SAAS,GACV,EAAE,kBAAkB,+BA4EpB;AAED,eAAO,MAAM,SAAS;;CAEpB,CAAC"}
@@ -1,82 +1,89 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../../lib/cn.js";
3
3
  import { ButtonIcon as t } from "../../atoms/Button/ButtonIcon.js";
4
- import { accordionChevronRotateClasses as n, accordionChevronSlotClasses as r, accordionItemCapsuleClasses as i, accordionItemCapsuleClosedClasses as a, accordionItemCapsuleOpenClasses as o, accordionItemListClasses as s, accordionItemPlainClasses as c, accordionLabelPlainClasses as l, accordionLabelRowClasses as u, accordionLeadingSlotClasses as d, accordionPanelContentCapsuleClasses as f, accordionPanelContentListClasses as p, accordionPanelInnerClasses as m, accordionRootCapsuleClasses as h, accordionRootListClasses as g, accordionRootListInsetClasses as _, accordionRootPlainClasses as v, accordionTrailingClusterClasses as y, accordionTriggerCapsuleClasses as b, accordionTriggerInteractiveClasses as x, accordionTriggerListClasses as S, accordionVariants as C } from "./accordionStyles.js";
5
- import { createContext as w, useCallback as T, useContext as E, useId as D, useMemo as O, useState as k } from "react";
6
- import { ChevronDown as A } from "lucide-react";
7
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
4
+ import { accordionChevronRotateClasses as n, accordionChevronSlotClasses as r, accordionItemCapsuleClasses as i, accordionItemCapsuleClosedClasses as a, accordionItemCapsuleOpenClasses as o, accordionItemFlushClasses as s, accordionItemListClasses as c, accordionItemPlainClasses as l, accordionLabelPlainClasses as u, accordionLabelRowClasses as d, accordionLeadingSlotClasses as f, accordionPanelContentCapsuleClasses as p, accordionPanelContentFlushClasses as m, accordionPanelContentListClasses as h, accordionPanelInnerClasses as g, accordionRootCapsuleClasses as _, accordionRootListClasses as v, accordionRootListInsetClasses as y, accordionRootPlainClasses as b, accordionTrailingClusterClasses as x, accordionTriggerCapsuleClasses as S, accordionTriggerFlushClasses as C, accordionTriggerInteractiveClasses as w, accordionTriggerListClasses as T, accordionVariants as E } from "./accordionStyles.js";
5
+ import { createContext as D, useCallback as O, useContext as k, useId as A, useMemo as j, useState as M } from "react";
6
+ import { ChevronDown as N } from "lucide-react";
7
+ import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
8
8
  //#region src/components/molecules/Accordion/Accordion.tsx
9
- var P = w({ variant: "plain" });
10
- function F({ variant: t = "plain", inset: n = !1, className: r, children: i, ...a }) {
11
- let o = O(() => ({ variant: t }), [t]), s = t === "list" ? n ? _ : g : t === "capsule" ? h : v;
12
- return /* @__PURE__ */ M(P.Provider, {
13
- value: o,
14
- children: /* @__PURE__ */ M("div", {
15
- className: e(s, r),
9
+ var L = D({
10
+ variant: "plain",
11
+ flush: !1
12
+ });
13
+ function R({ variant: t = "plain", inset: n = !1, flush: r = !1, className: i, children: a, ...o }) {
14
+ let s = r && t === "plain", c = j(() => ({
15
+ variant: t,
16
+ flush: s
17
+ }), [t, s]), l = t === "list" ? n ? y : v : t === "capsule" ? _ : b;
18
+ return /* @__PURE__ */ F(L.Provider, {
19
+ value: c,
20
+ children: /* @__PURE__ */ F("div", {
21
+ className: e(l, i),
16
22
  "data-variant": t,
17
23
  "data-inset": n ? "true" : void 0,
18
- ...a,
19
- children: i
24
+ "data-flush": s ? "true" : void 0,
25
+ ...o,
26
+ children: a
20
27
  })
21
28
  });
22
29
  }
23
- function I(t, n) {
24
- return t === "list" ? s : t === "capsule" ? e(i, n ? o : a) : c;
30
+ function z(t, n, r) {
31
+ return r ? s : t === "list" ? c : t === "capsule" ? e(i, n ? o : a) : l;
25
32
  }
26
- function L({ label: i, leading: a, trailing: o, children: s, defaultOpen: c = !1, open: h, onOpenChange: g, className: _ }) {
27
- let { variant: v } = E(P), C = D(), [w, O] = k(c), F = h !== void 0, L = F ? h : w, R = s != null, z = T((e) => {
28
- F || O(e), g?.(e);
29
- }, [F, g]), B = v === "plain" ? l : u, V = v === "capsule" ? b : S, H = v === "capsule" ? f : p, U = /* @__PURE__ */ N(j, { children: [
30
- a == null ? null : /* @__PURE__ */ M("span", {
31
- className: d,
33
+ function B({ label: i, leading: a, trailing: o, children: s, defaultOpen: c = !1, open: l, onOpenChange: _, className: v }) {
34
+ let { variant: y, flush: b } = k(L), E = A(), [D, j] = M(c), R = l !== void 0, B = R ? l : D, V = s != null, H = O((e) => {
35
+ R || j(e), _?.(e);
36
+ }, [R, _]), U = y === "plain" ? u : d, W = b ? C : y === "capsule" ? S : T, G = b ? m : y === "capsule" ? p : h, K = /* @__PURE__ */ I(P, { children: [
37
+ a == null ? null : /* @__PURE__ */ F("span", {
38
+ className: f,
32
39
  children: a
33
40
  }),
34
- /* @__PURE__ */ M("span", {
35
- className: B,
41
+ /* @__PURE__ */ F("span", {
42
+ className: U,
36
43
  children: i
37
44
  }),
38
- o == null ? null : /* @__PURE__ */ M("span", {
39
- className: y,
45
+ o == null ? null : /* @__PURE__ */ F("span", {
46
+ className: x,
40
47
  children: o
41
48
  }),
42
- R ? /* @__PURE__ */ M("span", {
49
+ V ? /* @__PURE__ */ F("span", {
43
50
  className: r,
44
51
  "aria-hidden": !0,
45
- children: /* @__PURE__ */ M("span", {
46
- className: e(n, L && "rotate-180"),
47
- children: /* @__PURE__ */ M(t, {
52
+ children: /* @__PURE__ */ F("span", {
53
+ className: e(n, B && "rotate-180"),
54
+ children: /* @__PURE__ */ F(t, {
48
55
  size: "xs",
49
- children: /* @__PURE__ */ M(A, { strokeWidth: 2.2 })
56
+ children: /* @__PURE__ */ F(N, { strokeWidth: 2.2 })
50
57
  })
51
58
  })
52
59
  }) : null
53
60
  ] });
54
- return /* @__PURE__ */ N("div", {
55
- className: e(I(v, L), _),
56
- children: [R ? /* @__PURE__ */ M("button", {
61
+ return /* @__PURE__ */ I("div", {
62
+ className: e(z(y, B, b), v),
63
+ children: [V ? /* @__PURE__ */ F("button", {
57
64
  type: "button",
58
- className: e(V, x),
59
- "aria-expanded": L,
60
- "aria-controls": C,
61
- onClick: () => z(!L),
62
- children: U
63
- }) : /* @__PURE__ */ M("div", {
64
- className: V,
65
- children: U
66
- }), R ? /* @__PURE__ */ M("div", {
65
+ className: e(W, w),
66
+ "aria-expanded": B,
67
+ "aria-controls": E,
68
+ onClick: () => H(!B),
69
+ children: K
70
+ }) : /* @__PURE__ */ F("div", {
71
+ className: W,
72
+ children: K
73
+ }), V ? /* @__PURE__ */ F("div", {
67
74
  className: "motion-collapse",
68
- "data-visible": L ? "true" : "false",
69
- children: /* @__PURE__ */ M("div", {
70
- id: C,
71
- className: m,
72
- children: /* @__PURE__ */ M("div", {
73
- className: H,
75
+ "data-visible": B ? "true" : "false",
76
+ children: /* @__PURE__ */ F("div", {
77
+ id: E,
78
+ className: g,
79
+ children: /* @__PURE__ */ F("div", {
80
+ className: G,
74
81
  children: s
75
82
  })
76
83
  })
77
84
  }) : null]
78
85
  });
79
86
  }
80
- var R = Object.assign(F, { Item: L });
87
+ var V = Object.assign(R, { Item: B });
81
88
  //#endregion
82
- export { R as Accordion, C as accordionVariants };
89
+ export { V as Accordion, E as accordionVariants };
@@ -7,6 +7,8 @@ export declare const accordionRootCapsuleClasses = "flex w-full min-h-0 flex-col
7
7
  export declare const accordionRootPlainClasses = "flex w-full flex-col font-sans text-fg";
8
8
  export declare const accordionItemListClasses: string;
9
9
  export declare const accordionItemPlainClasses: string;
10
+ /** Plain + `flush` — no clip, so the trigger's hover band can reach past the row's edges. */
11
+ export declare const accordionItemFlushClasses = "border-b border-border last:border-b-0";
10
12
  /** Hairline + elevation via `shadow-raised` only — do not add `border`. */
11
13
  export declare const accordionItemCapsuleClasses: string;
12
14
  /** Collapsed — full pill (h-11 row → R = 22px). */
@@ -22,6 +24,11 @@ export declare const accordionInsetXClasses = "px-4";
22
24
  export declare const accordionCapsuleInsetXClasses = "px-2.5";
23
25
  export declare const accordionTriggerListClasses: string;
24
26
  export declare const accordionTriggerCapsuleClasses: string;
27
+ /**
28
+ * Plain + `flush` — the label lines up with the text around the accordion. The trigger reaches 8px
29
+ * past each edge so its rounded hover band and inset focus ring clear the label.
30
+ */
31
+ export declare const accordionTriggerFlushClasses = "-mx-2 flex h-11 w-[calc(100%+1rem)] items-center gap-2.5 rounded-lg px-2 text-left";
25
32
  /** @deprecated Use `accordionTriggerListClasses` or `accordionTriggerCapsuleClasses`. */
26
33
  export declare const accordionTriggerBaseClasses: string;
27
34
  /** Expandable header — pointer + hover fill on the full trigger band. */
@@ -40,6 +47,8 @@ export declare const accordionPanelInnerClasses = "overflow-hidden";
40
47
  /** Panel answers — body scale + secondary color (`text-muted`) below primary headers. */
41
48
  export declare const accordionPanelContentListClasses: string;
42
49
  export declare const accordionPanelContentCapsuleClasses: string;
50
+ /** Plain + `flush` — panel content on the label's edge. */
51
+ export declare const accordionPanelContentFlushClasses = "type-body text-muted tracking-normal pb-4 pt-0";
43
52
  /** @deprecated Use `accordionPanelContentListClasses` or `accordionPanelContentCapsuleClasses`. */
44
53
  export declare const accordionPanelContentClasses: string;
45
54
  //# sourceMappingURL=accordionStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/accordionStyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,uCAAwC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB,+FACyD,CAAC;AAE/F,qEAAqE;AACrE,eAAO,MAAM,6BAA6B,2CAA2C,CAAC;AAEtF,eAAO,MAAM,2BAA2B,6DACkC,CAAC;AAE3E,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,eAAO,MAAM,wBAAwB,QACiD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,QACgD,CAAC;AAEvF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,QAEZ,CAAC;AAE7B,mDAAmD;AACnD,eAAO,MAAM,iCAAiC,mBAAwB,CAAC;AAEvE,sCAAsC;AACtC,eAAO,MAAM,+BAA+B,mBAA4B,CAAC;AAEzE,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAEtD,eAAO,MAAM,2BAA2B,QACqC,CAAC;AAE9E,eAAO,MAAM,8BAA8B,QACyC,CAAC;AAErF,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,QAA8B,CAAC;AAEvE,yEAAyE;AACzE,eAAO,MAAM,kCAAkC,QAErB,CAAC;AAE3B,eAAO,MAAM,2BAA2B,qDAAqD,CAAC;AAE9F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,QAAuD,CAAC;AAE/F,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,QAA4E,CAAC;AAElH,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,mFAC0C,CAAC;AAEnF,eAAO,MAAM,6BAA6B,QAC6B,CAAC;AAExE,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAE5D,yFAAyF;AACzF,eAAO,MAAM,gCAAgC,QAC+B,CAAC;AAE7E,eAAO,MAAM,mCAAmC,QACqC,CAAC;AAEtF,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,QAAmC,CAAC"}
1
+ {"version":3,"file":"accordionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/accordionStyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,uCAAwC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB,+FACyD,CAAC;AAE/F,qEAAqE;AACrE,eAAO,MAAM,6BAA6B,2CAA2C,CAAC;AAEtF,eAAO,MAAM,2BAA2B,6DACkC,CAAC;AAE3E,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,eAAO,MAAM,wBAAwB,QACiD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,QACgD,CAAC;AAEvF,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,QAEZ,CAAC;AAE7B,mDAAmD;AACnD,eAAO,MAAM,iCAAiC,mBAAwB,CAAC;AAEvE,sCAAsC;AACtC,eAAO,MAAM,+BAA+B,mBAA4B,CAAC;AAEzE,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAEtD,eAAO,MAAM,2BAA2B,QACqC,CAAC;AAE9E,eAAO,MAAM,8BAA8B,QACyC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uFAC6C,CAAC;AAEvF,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,QAA8B,CAAC;AAEvE,yEAAyE;AACzE,eAAO,MAAM,kCAAkC,QAErB,CAAC;AAE3B,eAAO,MAAM,2BAA2B,qDAAqD,CAAC;AAE9F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,QAAuD,CAAC;AAE/F,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,QAA4E,CAAC;AAElH,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,mFAC0C,CAAC;AAEnF,eAAO,MAAM,6BAA6B,QAC6B,CAAC;AAExE,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAE5D,yFAAyF;AACzF,eAAO,MAAM,gCAAgC,QAC+B,CAAC;AAE7E,eAAO,MAAM,mCAAmC,QACqC,CAAC;AAEtF,2DAA2D;AAC3D,eAAO,MAAM,iCAAiC,mDAAmD,CAAC;AAElG,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,QAAmC,CAAC"}
@@ -7,6 +7,6 @@ var a = [
7
7
  "list",
8
8
  "capsule",
9
9
  "plain"
10
- ], o = "flex w-full flex-col overflow-hidden rounded-lg bg-surface font-sans text-fg shadow-raised", s = "flex w-full flex-col font-sans text-fg", c = `flex w-full min-h-0 flex-col ${i} font-sans text-fg`, l = "flex w-full flex-col font-sans text-fg", u = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), d = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), f = "overflow-hidden bg-surface shadow-raised transition-[border-radius,background-color] " + t("medium"), p = r, m = n, h = "flex h-11 w-full items-center gap-2.5 text-left px-4", g = "flex h-11 w-full items-center gap-2.5 text-left px-2.5", _ = "cursor-pointer hover:bg-ghost-hover active:bg-ghost-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset " + t("fast"), v = "flex size-6 shrink-0 items-center justify-center", y = `${e("body")} min-w-0 flex-1 truncate`, b = `${e("ui-label")} min-w-0 flex-1 truncate text-[0.8125rem]`, x = "flex shrink-0 items-center gap-2", S = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-muted", C = "inline-flex " + t("medium") + " transition-transform", w = "rotate-180", T = "overflow-hidden", E = "type-body text-muted tracking-normal pb-4 pt-0 px-4", D = "type-body text-muted tracking-normal pb-2.5 pt-0 px-2.5";
10
+ ], o = "flex w-full flex-col overflow-hidden rounded-lg bg-surface font-sans text-fg shadow-raised", s = "flex w-full flex-col font-sans text-fg", c = `flex w-full min-h-0 flex-col ${i} font-sans text-fg`, l = "flex w-full flex-col font-sans text-fg", u = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), d = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), f = "border-b border-border last:border-b-0", p = "overflow-hidden bg-surface shadow-raised transition-[border-radius,background-color] " + t("medium"), m = r, h = n, g = "flex h-11 w-full items-center gap-2.5 text-left px-4", _ = "flex h-11 w-full items-center gap-2.5 text-left px-2.5", v = "-mx-2 flex h-11 w-[calc(100%+1rem)] items-center gap-2.5 rounded-lg px-2 text-left", y = "cursor-pointer hover:bg-ghost-hover active:bg-ghost-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset " + t("fast"), b = "flex size-6 shrink-0 items-center justify-center", x = `${e("body")} min-w-0 flex-1 truncate`, S = `${e("ui-label")} min-w-0 flex-1 truncate text-[0.8125rem]`, C = "flex shrink-0 items-center gap-2", w = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-muted", T = "inline-flex " + t("medium") + " transition-transform", E = "rotate-180", D = "overflow-hidden", O = "type-body text-muted tracking-normal pb-4 pt-0 px-4", k = "type-body text-muted tracking-normal pb-2.5 pt-0 px-2.5", A = "type-body text-muted tracking-normal pb-4 pt-0";
11
11
  //#endregion
12
- export { w as accordionChevronOpenClasses, C as accordionChevronRotateClasses, S as accordionChevronSlotClasses, f as accordionItemCapsuleClasses, p as accordionItemCapsuleClosedClasses, m as accordionItemCapsuleOpenClasses, u as accordionItemListClasses, d as accordionItemPlainClasses, y as accordionLabelPlainClasses, b as accordionLabelRowClasses, v as accordionLeadingSlotClasses, D as accordionPanelContentCapsuleClasses, E as accordionPanelContentListClasses, T as accordionPanelInnerClasses, c as accordionRootCapsuleClasses, o as accordionRootListClasses, s as accordionRootListInsetClasses, l as accordionRootPlainClasses, x as accordionTrailingClusterClasses, g as accordionTriggerCapsuleClasses, _ as accordionTriggerInteractiveClasses, h as accordionTriggerListClasses, a as accordionVariants };
12
+ export { E as accordionChevronOpenClasses, T as accordionChevronRotateClasses, w as accordionChevronSlotClasses, p as accordionItemCapsuleClasses, m as accordionItemCapsuleClosedClasses, h as accordionItemCapsuleOpenClasses, f as accordionItemFlushClasses, u as accordionItemListClasses, d as accordionItemPlainClasses, x as accordionLabelPlainClasses, S as accordionLabelRowClasses, b as accordionLeadingSlotClasses, k as accordionPanelContentCapsuleClasses, A as accordionPanelContentFlushClasses, O as accordionPanelContentListClasses, D as accordionPanelInnerClasses, c as accordionRootCapsuleClasses, o as accordionRootListClasses, s as accordionRootListInsetClasses, l as accordionRootPlainClasses, C as accordionTrailingClusterClasses, _ as accordionTriggerCapsuleClasses, v as accordionTriggerFlushClasses, y as accordionTriggerInteractiveClasses, g as accordionTriggerListClasses, a as accordionVariants };
@@ -4,9 +4,13 @@ export interface CheckboxGroupItemProps {
4
4
  value: string;
5
5
  label: string;
6
6
  description?: string;
7
+ /** Trailing count — how many results the option matches. See **Checkbox** `count`. */
8
+ count?: number;
9
+ /** What screen readers hear for `count`, for example "2 posts". Default: the number. */
10
+ countLabel?: string;
7
11
  disabled?: boolean;
8
12
  className?: CheckboxLayoutClassName;
9
13
  }
10
14
  /** One option inside **CheckboxGroup** — wires `checked` when group `values` / `onValuesChange` are set. */
11
- export declare function CheckboxGroupItem({ value, label, description, disabled, className, }: CheckboxGroupItemProps): import("react").JSX.Element;
15
+ export declare function CheckboxGroupItem({ value, label, description, count, countLabel, disabled, className, }: CheckboxGroupItemProps): import("react").JSX.Element;
12
16
  //# sourceMappingURL=CheckboxGroupItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroupItem.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/CheckboxGroup/CheckboxGroupItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAGvF,MAAM,WAAW,sBAAsB;IACrC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED,4GAA4G;AAC5G,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,+BAoCxB"}
1
+ {"version":3,"file":"CheckboxGroupItem.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/CheckboxGroup/CheckboxGroupItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAGvF,MAAM,WAAW,sBAAsB;IACrC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC;AAED,4GAA4G;AAC5G,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,WAAW,EACX,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,+BAsCxB"}
@@ -4,19 +4,21 @@ import { useCheckboxGroupContext as t } from "./CheckboxGroupContext.js";
4
4
  import "react";
5
5
  import { jsx as n } from "react/jsx-runtime";
6
6
  //#region src/components/molecules/CheckboxGroup/CheckboxGroupItem.tsx
7
- function r({ value: r, label: i, description: a, disabled: o, className: s }) {
8
- let c = t(), l = c?.disabled ?? !1, u = c?.size ?? "md", d = c?.values, f = c?.onValuesChange, p = d != null && f != null, m = p ? d.includes(r) : void 0, h = p ? (e) => {
9
- let t = e.target.checked ? [...d, r] : d.filter((e) => e !== r);
10
- f(t);
7
+ function r({ value: r, label: i, description: a, count: o, countLabel: s, disabled: c, className: l }) {
8
+ let u = t(), d = u?.disabled ?? !1, f = u?.size ?? "md", p = u?.values, m = u?.onValuesChange, h = p != null && m != null, g = h ? p.includes(r) : void 0, _ = h ? (e) => {
9
+ let t = e.target.checked ? [...p, r] : p.filter((e) => e !== r);
10
+ m(t);
11
11
  } : void 0;
12
- return p || console.warn("[WMDS CheckboxGroup] Item requires group `values` and `onValuesChange`, or use bare **Checkbox** children."), /* @__PURE__ */ n(e, {
12
+ return h || console.warn("[WMDS CheckboxGroup] Item requires group `values` and `onValuesChange`, or use bare **Checkbox** children."), /* @__PURE__ */ n(e, {
13
13
  label: i,
14
14
  description: a,
15
- size: u,
16
- checked: m,
17
- disabled: l || o,
18
- onChange: h,
19
- className: s
15
+ count: o,
16
+ countLabel: s,
17
+ size: f,
18
+ checked: g,
19
+ disabled: d || c,
20
+ onChange: _,
21
+ className: l
20
22
  });
21
23
  }
22
24
  //#endregion
@@ -0,0 +1,37 @@
1
+ import { type ReactNode } from "react";
2
+ import { type DescriptionListLayout, type DescriptionListRule, type DescriptionListVariant } from "./descriptionListStyles";
3
+ export { descriptionListLayouts, descriptionListRules, descriptionListVariants, type DescriptionListLayout, type DescriptionListRule, type DescriptionListVariant, } from "./descriptionListStyles";
4
+ /** Layout-only — width, margin, or grid placement. */
5
+ export type DescriptionListLayoutClassName = string;
6
+ export interface DescriptionListProps {
7
+ /** Rows' default layout: `inline` (value beside the name, default) or `stacked` (value under it). */
8
+ layout?: DescriptionListLayout;
9
+ /** The hairline between rows: `solid` (default), `dotted`, or `none`. */
10
+ rule?: DescriptionListRule;
11
+ /** `sans` (default) — caption name, body value. `mono` — eyebrow name, mono caps value (metadata). */
12
+ variant?: DescriptionListVariant;
13
+ /** **DescriptionList.Item** rows. */
14
+ children: ReactNode;
15
+ "aria-label"?: string;
16
+ "aria-labelledby"?: string;
17
+ className?: DescriptionListLayoutClassName;
18
+ }
19
+ export interface DescriptionListItemProps {
20
+ /** The name — rendered as `dt`. */
21
+ name: ReactNode;
22
+ /** The value — text, one or more **Badge**, or a row of **Button** — rendered as `dd`. */
23
+ children: ReactNode;
24
+ /** Overrides the list's `layout` for this row — for example `stacked` for a row of actions. */
25
+ layout?: DescriptionListLayout;
26
+ className?: DescriptionListLayoutClassName;
27
+ }
28
+ /**
29
+ * A list of facts — each row a name and a value, with a rule between rows. Renders `dl`, `dt`, and
30
+ * `dd`. Values take text, **Badge** tags, or **Button** actions.
31
+ */
32
+ declare function DescriptionListRoot({ layout, rule, variant, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, }: DescriptionListProps): import("react").JSX.Element;
33
+ declare function DescriptionListItem({ name, children, layout: layoutProp, className }: DescriptionListItemProps): import("react").JSX.Element;
34
+ export declare const DescriptionList: typeof DescriptionListRoot & {
35
+ Item: typeof DescriptionListItem;
36
+ };
37
+ //# sourceMappingURL=DescriptionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionList.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/DescriptionList/DescriptionList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EAOL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B,MAAM,yBAAyB,CAAC;AAEjC,sDAAsD;AACtD,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,oBAAoB;IACnC,qGAAqG;IACrG,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,yEAAyE;IACzE,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,sGAAsG;IACtG,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,qCAAqC;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,8BAA8B,CAAC;CAC5C;AAED,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,0FAA0F;IAC1F,QAAQ,EAAE,SAAS,CAAC;IACpB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,SAAS,CAAC,EAAE,8BAA8B,CAAC;CAC5C;AAcD;;;GAGG;AACH,iBAAS,mBAAmB,CAAC,EAC3B,MAAiB,EACjB,IAAc,EACd,OAAgB,EAChB,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,SAAS,GACV,EAAE,oBAAoB,+BAgBtB;AAED,iBAAS,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,wBAAwB,+BAevG;AAED,eAAO,MAAM,eAAe;;CAE1B,CAAC"}