@thewhatmatters/wmds 0.4.27 → 0.4.29

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 (301) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/CONSUMING.md +62 -1
  3. package/bin/wmds-check.mjs +47 -0
  4. package/dist/colors.css +92 -0
  5. package/dist/components/atoms/Badge/badgeStyles.js +6 -6
  6. package/dist/components/atoms/Band/Band.d.ts +27 -0
  7. package/dist/components/atoms/Band/Band.d.ts.map +1 -0
  8. package/dist/components/atoms/Band/Band.js +22 -0
  9. package/dist/components/atoms/Band/bandStyles.d.ts +20 -0
  10. package/dist/components/atoms/Band/bandStyles.d.ts.map +1 -0
  11. package/dist/components/atoms/Band/bandStyles.js +23 -0
  12. package/dist/components/atoms/Button/ButtonStatusButton.d.ts.map +1 -1
  13. package/dist/components/atoms/Button/ButtonStatusButton.js +12 -5
  14. package/dist/components/atoms/Button/buttonStyles.d.ts +1 -1
  15. package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -1
  16. package/dist/components/atoms/Button/buttonStyles.js +2 -2
  17. package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -1
  18. package/dist/components/atoms/Checkbox/Checkbox.js +69 -68
  19. package/dist/components/atoms/Checkbox/checkboxStyles.d.ts +1 -1
  20. package/dist/components/atoms/Checkbox/checkboxStyles.d.ts.map +1 -1
  21. package/dist/components/atoms/Checkbox/checkboxStyles.js +1 -1
  22. package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -1
  23. package/dist/components/atoms/IconButton/IconButton.js +13 -12
  24. package/dist/components/atoms/IconButton/iconButtonStyles.d.ts +2 -2
  25. package/dist/components/atoms/IconButton/iconButtonStyles.d.ts.map +1 -1
  26. package/dist/components/atoms/IconButton/iconButtonStyles.js +1 -1
  27. package/dist/components/atoms/InlinePill/InlinePill.d.ts +42 -0
  28. package/dist/components/atoms/InlinePill/InlinePill.d.ts.map +1 -0
  29. package/dist/components/atoms/InlinePill/InlinePill.js +48 -0
  30. package/dist/components/atoms/InlinePill/inlinePillStyles.d.ts +27 -0
  31. package/dist/components/atoms/InlinePill/inlinePillStyles.d.ts.map +1 -0
  32. package/dist/components/atoms/InlinePill/inlinePillStyles.js +19 -0
  33. package/dist/components/atoms/Input/Input.d.ts +6 -3
  34. package/dist/components/atoms/Input/Input.d.ts.map +1 -1
  35. package/dist/components/atoms/Input/inputShellStyles.d.ts +1 -1
  36. package/dist/components/atoms/Input/inputShellStyles.d.ts.map +1 -1
  37. package/dist/components/atoms/Input/inputShellStyles.js +3 -3
  38. package/dist/components/atoms/Skeleton/skeletonStyles.js +1 -1
  39. package/dist/components/atoms/Switch/Switch.d.ts.map +1 -1
  40. package/dist/components/atoms/Switch/Switch.js +45 -44
  41. package/dist/components/atoms/Switch/switchStyles.d.ts +1 -1
  42. package/dist/components/atoms/Switch/switchStyles.d.ts.map +1 -1
  43. package/dist/components/atoms/Switch/switchStyles.js +1 -1
  44. package/dist/components/atoms/TextArea/textareaShellStyles.js +3 -3
  45. package/dist/components/molecules/Accordion/accordionStyles.d.ts +1 -1
  46. package/dist/components/molecules/Accordion/accordionStyles.d.ts.map +1 -1
  47. package/dist/components/molecules/Accordion/accordionStyles.js +1 -1
  48. package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  49. package/dist/components/molecules/Breadcrumb/Breadcrumb.js +80 -122
  50. package/dist/components/molecules/Card/cardStyles.js +1 -1
  51. package/dist/components/molecules/ChatQa/chatQaStyles.d.ts +1 -1
  52. package/dist/components/molecules/ChatQa/chatQaStyles.d.ts.map +1 -1
  53. package/dist/components/molecules/ChatQa/chatQaStyles.js +1 -1
  54. package/dist/components/molecules/Chip/chipStyles.js +1 -1
  55. package/dist/components/molecules/Dropdown/Dropdown.d.ts +1 -1
  56. package/dist/components/molecules/Dropdown/DropdownItem.d.ts +2 -2
  57. package/dist/components/molecules/Dropdown/DropdownItem.d.ts.map +1 -1
  58. package/dist/components/molecules/Dropdown/DropdownItem.js +30 -27
  59. package/dist/components/molecules/Dropdown/dropdownStyles.js +1 -1
  60. package/dist/components/molecules/Dropdown/resolveOverflow.d.ts +14 -0
  61. package/dist/components/molecules/Dropdown/resolveOverflow.d.ts.map +1 -0
  62. package/dist/components/{organisms/Tab/tabOverflow.js → molecules/Dropdown/resolveOverflow.js} +2 -2
  63. package/dist/components/molecules/Dropdown/useDropdownMenu.d.ts +70 -0
  64. package/dist/components/molecules/Dropdown/useDropdownMenu.d.ts.map +1 -0
  65. package/dist/components/molecules/Dropdown/useDropdownMenu.js +155 -0
  66. package/dist/components/molecules/Dropdown/useOverflowMenu.d.ts +71 -0
  67. package/dist/components/molecules/Dropdown/useOverflowMenu.d.ts.map +1 -0
  68. package/dist/components/molecules/Dropdown/useOverflowMenu.js +61 -0
  69. package/dist/components/molecules/Field/Field.d.ts.map +1 -1
  70. package/dist/components/molecules/Field/Field.js +11 -10
  71. package/dist/components/molecules/LogView/logViewStyles.d.ts +1 -1
  72. package/dist/components/molecules/LogView/logViewStyles.d.ts.map +1 -1
  73. package/dist/components/molecules/LogView/logViewStyles.js +1 -1
  74. package/dist/components/molecules/PillGroup/pillGroupStyles.js +1 -1
  75. package/dist/components/molecules/Search/searchStyles.js +1 -1
  76. package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts +1 -1
  77. package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts.map +1 -1
  78. package/dist/components/molecules/SegmentedControl/segmentedControlStyles.js +3 -3
  79. package/dist/components/molecules/Select/Select.d.ts +3 -1
  80. package/dist/components/molecules/Select/Select.d.ts.map +1 -1
  81. package/dist/components/molecules/Select/Select.js +75 -119
  82. package/dist/components/molecules/Select/selectStyles.js +3 -3
  83. package/dist/components/molecules/Stat/statStyles.d.ts +1 -1
  84. package/dist/components/molecules/Stat/statStyles.d.ts.map +1 -1
  85. package/dist/components/molecules/Stat/statStyles.js +1 -1
  86. package/dist/components/molecules/TextSequence/TextSequence.d.ts.map +1 -1
  87. package/dist/components/molecules/TextSequence/TextSequence.js +35 -35
  88. package/dist/components/organisms/AppShell/AppShell.d.ts +2 -0
  89. package/dist/components/organisms/AppShell/AppShell.d.ts.map +1 -1
  90. package/dist/components/organisms/AppShell/AppShell.js +138 -129
  91. package/dist/components/organisms/AppShell/appShellStyles.d.ts +2 -0
  92. package/dist/components/organisms/AppShell/appShellStyles.d.ts.map +1 -1
  93. package/dist/components/organisms/AppShell/appShellStyles.js +2 -2
  94. package/dist/components/organisms/Dialog/AlertDialog.d.ts +7 -1
  95. package/dist/components/organisms/Dialog/AlertDialog.d.ts.map +1 -1
  96. package/dist/components/organisms/Dialog/AlertDialog.js +54 -50
  97. package/dist/components/organisms/Dialog/Dialog.d.ts.map +1 -1
  98. package/dist/components/organisms/Dialog/Dialog.js +52 -71
  99. package/dist/components/organisms/Dialog/dialogStyles.d.ts +14 -1
  100. package/dist/components/organisms/Dialog/dialogStyles.d.ts.map +1 -1
  101. package/dist/components/organisms/Dialog/dialogStyles.js +3 -3
  102. package/dist/components/organisms/FilterPanel/FilterPanel.d.ts.map +1 -1
  103. package/dist/components/organisms/FilterPanel/FilterPanel.js +52 -42
  104. package/dist/components/organisms/IntakeModal/IntakeModal.d.ts +6 -1
  105. package/dist/components/organisms/IntakeModal/IntakeModal.d.ts.map +1 -1
  106. package/dist/components/organisms/IntakeModal/IntakeModal.js +54 -66
  107. package/dist/components/organisms/MoreMenu/MoreMenu.d.ts.map +1 -1
  108. package/dist/components/organisms/MoreMenu/MoreMenu.js +45 -101
  109. package/dist/components/organisms/Panel/Panel.d.ts.map +1 -1
  110. package/dist/components/organisms/Panel/Panel.js +44 -53
  111. package/dist/components/organisms/Sheet/Sheet.d.ts +3 -1
  112. package/dist/components/organisms/Sheet/Sheet.d.ts.map +1 -1
  113. package/dist/components/organisms/Sheet/Sheet.js +82 -101
  114. package/dist/components/organisms/SiteNav/SiteNav.d.ts +0 -9
  115. package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -1
  116. package/dist/components/organisms/SiteNav/SiteNav.js +180 -227
  117. package/dist/components/organisms/SiteNav/siteNavStyles.js +1 -1
  118. package/dist/components/organisms/Tab/Tab.d.ts.map +1 -1
  119. package/dist/components/organisms/Tab/Tab.js +77 -127
  120. package/dist/components/organisms/Tab/tabStyles.d.ts +2 -1
  121. package/dist/components/organisms/Tab/tabStyles.d.ts.map +1 -1
  122. package/dist/components/organisms/Tab/tabStyles.js +2 -2
  123. package/dist/fonts.css +10 -0
  124. package/dist/grid.css +38 -0
  125. package/dist/index.d.ts +2 -0
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +135 -131
  128. package/dist/lib/contrast.d.ts +11 -0
  129. package/dist/lib/contrast.d.ts.map +1 -0
  130. package/dist/lib/dialogOverlay.d.ts +27 -1
  131. package/dist/lib/dialogOverlay.d.ts.map +1 -1
  132. package/dist/lib/dialogOverlay.js +87 -25
  133. package/dist/lib/typography.d.ts +1 -1
  134. package/dist/lib/typography.d.ts.map +1 -1
  135. package/dist/shape.css +24 -3
  136. package/dist/styles.css +1 -1
  137. package/dist/typography.css +55 -8
  138. package/docs/components.md +4 -2
  139. package/docs/exports.json +55 -1
  140. package/docs/patterns/components-accordion--flush.tsx +1 -1
  141. package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +1 -1
  142. package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
  143. package/docs/patterns/components-badge--outline-tags.tsx +1 -1
  144. package/docs/patterns/components-badge--status-pill.tsx +1 -1
  145. package/docs/patterns/components-badge--with-avatar.tsx +1 -1
  146. package/docs/patterns/components-band--page-in-bands.tsx +39 -0
  147. package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
  148. package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
  149. package/docs/patterns/components-breadcrumb--path.tsx +1 -1
  150. package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
  151. package/docs/patterns/components-button-button--copy-button.tsx +1 -1
  152. package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
  153. package/docs/patterns/components-button-button--external-link.tsx +1 -1
  154. package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
  155. package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
  156. package/docs/patterns/components-button-button--link-render.tsx +1 -1
  157. package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
  158. package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
  159. package/docs/patterns/components-button-button--primary-action.tsx +1 -1
  160. package/docs/patterns/components-button-button--row-hug.tsx +1 -1
  161. package/docs/patterns/components-button-button--row-layout.tsx +1 -1
  162. package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
  163. package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
  164. package/docs/patterns/components-button-button--with-count.tsx +1 -1
  165. package/docs/patterns/components-button-button--with-icon.tsx +1 -1
  166. package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
  167. package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
  168. package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
  169. package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
  170. package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
  171. package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
  172. package/docs/patterns/components-card-card--terminal-frame.tsx +1 -1
  173. package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
  174. package/docs/patterns/components-carousel--image-carousel.tsx +1 -1
  175. package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
  176. package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
  177. package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
  178. package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
  179. package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
  180. package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
  181. package/docs/patterns/components-chart--revenue-by-line.tsx +1 -1
  182. package/docs/patterns/components-chart--segmented-ring-pattern.tsx +1 -1
  183. package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
  184. package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +1 -1
  185. package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +1 -1
  186. package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
  187. package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
  188. package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
  189. package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
  190. package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
  191. package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
  192. package/docs/patterns/components-copyfield--clipboard-blocked.tsx +1 -1
  193. package/docs/patterns/components-copyfield--copied.tsx +1 -1
  194. package/docs/patterns/components-copyfield--copy-key.tsx +1 -1
  195. package/docs/patterns/components-copyfield--on-navy.tsx +1 -1
  196. package/docs/patterns/components-descriptionlist--details.tsx +1 -1
  197. package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
  198. package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
  199. package/docs/patterns/components-dialog--alert-dialog-typed-confirmation.tsx +54 -0
  200. package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
  201. package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
  202. package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
  203. package/docs/patterns/components-displaycontrols--theme-switch.tsx +1 -1
  204. package/docs/patterns/components-field--horizontal-input.tsx +1 -1
  205. package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
  206. package/docs/patterns/components-field--multi-control.tsx +1 -1
  207. package/docs/patterns/components-filterpanel--panel.tsx +1 -1
  208. package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
  209. package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
  210. package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
  211. package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
  212. package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
  213. package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
  214. package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
  215. package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
  216. package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
  217. package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
  218. package/docs/patterns/components-indexlist--post-index.tsx +1 -1
  219. package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
  220. package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
  221. package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
  222. package/docs/patterns/components-intakeform--short-form-pattern.tsx +1 -1
  223. package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
  224. package/docs/patterns/components-kbd--command-row.tsx +1 -1
  225. package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
  226. package/docs/patterns/components-kbd--shortcut.tsx +1 -1
  227. package/docs/patterns/components-linktile--resource-tile.tsx +1 -1
  228. package/docs/patterns/components-linktile--router-link.tsx +1 -1
  229. package/docs/patterns/components-logview--detail-pane.tsx +1 -1
  230. package/docs/patterns/components-logview--log-viewer.tsx +1 -1
  231. package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
  232. package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
  233. package/docs/patterns/components-navlist--app-sidebar.tsx +1 -1
  234. package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
  235. package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
  236. package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
  237. package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
  238. package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
  239. package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
  240. package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
  241. package/docs/patterns/components-prose--article-body.tsx +1 -1
  242. package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
  243. package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
  244. package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
  245. package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
  246. package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
  247. package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
  248. package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
  249. package/docs/patterns/components-sheet--side-sheet-header-actions.tsx +1 -1
  250. package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +1 -1
  251. package/docs/patterns/components-sheet--side-sheet.tsx +1 -1
  252. package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
  253. package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
  254. package/docs/patterns/components-sitenav--compact.tsx +1 -1
  255. package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
  256. package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
  257. package/docs/patterns/components-stat--hero-stat.tsx +1 -1
  258. package/docs/patterns/components-stat--insights-row.tsx +1 -1
  259. package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
  260. package/docs/patterns/components-switch--default.tsx +1 -1
  261. package/docs/patterns/components-switch--settings-row.tsx +1 -1
  262. package/docs/patterns/components-tab--settings-pages.tsx +1 -1
  263. package/docs/patterns/components-table--approvals-with-sheet.tsx +1 -1
  264. package/docs/patterns/components-table--approvals.tsx +1 -1
  265. package/docs/patterns/components-table--basic.tsx +1 -1
  266. package/docs/patterns/components-taskrows--action-details.tsx +1 -1
  267. package/docs/patterns/components-taskrows--capsules.tsx +1 -1
  268. package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
  269. package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
  270. package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
  271. package/docs/patterns/components-taskrows--needs-you-table.tsx +1 -1
  272. package/docs/patterns/components-taskrows--status-list.tsx +1 -1
  273. package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
  274. package/docs/patterns/components-textarea--save-status.tsx +1 -1
  275. package/docs/patterns/components-textlink--external-destination.tsx +1 -1
  276. package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
  277. package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
  278. package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
  279. package/docs/patterns/components-textsequence--default.tsx +1 -1
  280. package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
  281. package/docs/patterns/components-textsequence--shapes.tsx +1 -1
  282. package/docs/patterns/components-tilegrid--masonry.tsx +1 -1
  283. package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
  284. package/docs/patterns/components-tooltip--controlled.tsx +1 -1
  285. package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
  286. package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
  287. package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
  288. package/docs/patterns/components-tooltip--placement.tsx +1 -1
  289. package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
  290. package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
  291. package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
  292. package/docs/patterns/guides-filter-panel--filtered-grid.tsx +1 -1
  293. package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
  294. package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
  295. package/docs/patterns/guides-post-page--post-page.tsx +1 -1
  296. package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
  297. package/docs/patterns/guides-resource-detail--detail.tsx +1 -1
  298. package/docs/patterns/index.json +17 -1
  299. package/package.json +1 -1
  300. package/dist/components/organisms/Tab/tabOverflow.d.ts +0 -14
  301. package/dist/components/organisms/Tab/tabOverflow.d.ts.map +0 -1
@@ -3,126 +3,70 @@ import { cn as e } from "../../../lib/cn.js";
3
3
  import { IconButton as t } from "../../atoms/IconButton/IconButton.js";
4
4
  import { Dropdown as n } from "../../molecules/Dropdown/Dropdown.js";
5
5
  import { measureDropdownMenuStyle as r } from "../../molecules/Dropdown/dropdownMenuPosition.js";
6
- import { moreMenuRootClasses as i } from "./moreMenuStyles.js";
7
- import { useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
8
- import { EllipsisVertical as d } from "lucide-react";
9
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
+ import { useDropdownMenu as i } from "../../molecules/Dropdown/useDropdownMenu.js";
7
+ import { moreMenuRootClasses as a } from "./moreMenuStyles.js";
8
+ import { useRef as o } from "react";
9
+ import { EllipsisVertical as s } from "lucide-react";
10
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
11
  //#region src/components/organisms/MoreMenu/MoreMenu.tsx
11
- function m(e) {
12
+ function u(e) {
12
13
  e.items.length === 0 && console.warn("[WMDS MoreMenu] `items` must not be empty.");
13
14
  }
14
- function h(e) {
15
+ function d(e) {
15
16
  return e.map((e) => ({
16
17
  label: e.label,
17
18
  start: e.start,
18
19
  end: e.end
19
20
  }));
20
21
  }
21
- function g({ "aria-label": g, items: _, onAction: v, size: y = "sm", disabled: b = !1, className: x }) {
22
- let S = s(), C = l(null), w = l(null), [T, E] = u(!1), [D, O] = u(null), [k, A] = u(0);
23
- m({
24
- "aria-label": g,
25
- items: _
22
+ function f({ "aria-label": f, items: p, onAction: m, size: h = "sm", disabled: g = !1, className: _ }) {
23
+ let v = o(null);
24
+ u({
25
+ "aria-label": f,
26
+ items: p
26
27
  });
27
- let j = a(() => {
28
- E(!1), O(null);
29
- }, []), M = a(() => {
30
- let e = w.current;
31
- e != null && O(r(e, h(_), {
28
+ let y = i({
29
+ rows: p,
30
+ triggerRef: v,
31
+ focus: "items",
32
+ measure: () => v.current == null ? null : r(v.current, d(p), {
32
33
  align: "end",
33
34
  widthMode: "content"
34
- })), E(!0);
35
- }, [_]), N = a((e) => {
36
- v?.(e), j();
37
- }, [j, v]), P = a(() => {
38
- let e = w.current;
39
- e != null && O(r(e, h(_), {
40
- align: "end",
41
- widthMode: "content"
42
- }));
43
- }, [_]);
44
- c(() => {
45
- if (T) return P(), window.addEventListener("resize", P), window.addEventListener("scroll", P, !0), () => {
46
- window.removeEventListener("resize", P), window.removeEventListener("scroll", P, !0);
47
- };
48
- }, [T, P]), o(() => {
49
- if (!T) return;
50
- function e(e) {
51
- C.current != null && !C.current.contains(e.target) && j();
52
- }
53
- return document.addEventListener("mousedown", e), () => {
54
- document.removeEventListener("mousedown", e);
55
- };
56
- }, [j, T]), o(() => {
57
- T && A((e) => Math.min(e, Math.max(_.length - 1, 0)));
58
- }, [_.length, T]);
59
- function F(e) {
60
- A((t) => {
61
- if (_.length === 0) return 0;
62
- let n = t;
63
- for (let t = 0; t < _.length; t += 1) if (n = (n + e + _.length) % _.length, !_[n]?.disabled) return n;
64
- return t;
65
- });
66
- }
67
- function I(e) {
68
- if (!b) switch (e.key) {
69
- case "ArrowDown":
70
- e.preventDefault(), T ? F(1) : M();
71
- break;
72
- case "ArrowUp":
73
- e.preventDefault(), T ? F(-1) : M();
74
- break;
75
- case "Enter":
76
- case " ":
77
- if (e.preventDefault(), T) {
78
- let e = _[k];
79
- e != null && !e.disabled && N(e.id);
80
- } else M();
81
- break;
82
- case "Escape": e.preventDefault(), j();
83
- }
35
+ })
36
+ });
37
+ function b(e) {
38
+ e.disabled || (y.close({ returnFocus: !0 }), m?.(e.id));
84
39
  }
85
- return /* @__PURE__ */ p("div", {
86
- ref: C,
87
- className: e(i, x),
88
- children: [/* @__PURE__ */ f("div", {
89
- ref: w,
90
- className: "inline-flex",
91
- children: /* @__PURE__ */ f(t, {
92
- size: y,
93
- role: "ghost",
94
- icon: /* @__PURE__ */ f(d, { strokeWidth: 2 }),
95
- "aria-label": g,
96
- "aria-haspopup": "menu",
97
- "aria-expanded": T,
98
- "aria-controls": T ? S : void 0,
99
- disabled: b,
100
- onClick: () => {
101
- b || (T ? j() : M());
102
- },
103
- onKeyDown: I
104
- })
105
- }), T && D != null ? /* @__PURE__ */ f(n.Menu, {
106
- id: S,
40
+ return /* @__PURE__ */ l("div", {
41
+ ...y.rootProps,
42
+ className: e(a, _),
43
+ children: [/* @__PURE__ */ c(t, {
44
+ ref: v,
45
+ size: h,
46
+ role: "ghost",
47
+ icon: /* @__PURE__ */ c(s, { strokeWidth: 2 }),
48
+ "aria-label": f,
49
+ "aria-haspopup": "menu",
50
+ "aria-expanded": y.triggerProps["aria-expanded"],
51
+ "aria-controls": y.triggerProps["aria-controls"],
52
+ disabled: g,
53
+ onClick: () => {
54
+ g || y.toggle();
55
+ }
56
+ }), y.open && y.menuStyle != null ? /* @__PURE__ */ c(n.Menu, {
57
+ ...y.menuProps,
107
58
  role: "menu",
108
- "aria-label": g,
109
- style: D,
110
- children: _.map((e, t) => /* @__PURE__ */ f("li", {
59
+ "aria-label": f,
60
+ children: p.map((e, t) => /* @__PURE__ */ c("li", {
111
61
  role: "presentation",
112
- children: /* @__PURE__ */ f(n.Item, {
62
+ children: /* @__PURE__ */ c(n.Item, {
63
+ ...y.rowProps(t),
113
64
  role: "menuitem",
114
- tabIndex: -1,
115
65
  truncate: !1,
116
- active: t === k,
117
66
  disabled: e.disabled,
118
67
  start: e.start,
119
68
  end: e.end,
120
- onMouseEnter: () => {
121
- e.disabled || A(t);
122
- },
123
- onClick: () => {
124
- e.disabled || N(e.id);
125
- },
69
+ onClick: () => b(e),
126
70
  children: e.label
127
71
  })
128
72
  }, e.id))
@@ -130,4 +74,4 @@ function g({ "aria-label": g, items: _, onAction: v, size: y = "sm", disabled: b
130
74
  });
131
75
  }
132
76
  //#endregion
133
- export { g as MoreMenu };
77
+ export { f as MoreMenu };
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAef,OAAO,EAOL,UAAU,EAEV,UAAU,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAElC,uDAAuD;AACvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,wCAAwC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,sFAAsF;IACtF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAiGD,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,YAAY,EACZ,eAAsB,EACtB,QAAQ,GACT,EAAE,UAAU,+BAkBZ;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC,+BAmBA;AAED,iBAAS,YAAY,CAAC,EACpB,IAAY,EACZ,IAAW,EACX,KAAK,EACL,WAAW,EACX,WAAW,EACX,SAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,+BAyDnB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
1
+ {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAgBf,OAAO,EAOL,UAAU,EAEV,UAAU,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAElC,uDAAuD;AACvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,wCAAwC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,sFAAsF;IACtF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAyED,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,YAAY,EACZ,eAAsB,EACtB,QAAQ,GACT,EAAE,UAAU,+BAkBZ;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC,+BAmBA;AAED,iBAAS,YAAY,CAAC,EACpB,IAAY,EACZ,IAAW,EACX,KAAK,EACL,WAAW,EACX,WAAW,EACX,SAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,+BAyDnB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
@@ -1,63 +1,54 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../../lib/cn.js";
3
- import { overlayPanelBodyScrollClasses as t, overlayPanelChromeClasses as n, overlayPanelFooterClasses as r, overlayPanelFooterDelineatedInnerClasses as i, overlayPanelFooterDelineatedShellClasses as a, overlayPanelFooterHairlineClasses as o, overlayPanelSectionStackClasses as s } from "../Dialog/dialogStyles.js";
4
- import { OverlayPanelHeader as c } from "../Dialog/OverlayPanelHeader.js";
5
- import { PanelProvider as l, usePanelContext as u, usePanelLabelIds as d } from "./PanelContext.js";
6
- import { sheetPanelPlacementClasses as f } from "../Sheet/sheetStyles.js";
7
- import { panelBackdropClasses as p, panelMotionTransition as m, panelMotionVariants as h, panelOverlayRootClasses as g, panelShellClasses as _, panelSides as v, panelSizeClasses as y, panelSizes as b } from "./panelStyles.js";
8
- import { useCallback as x, useEffect as S, useRef as C } from "react";
3
+ import { useOverlayLifecycle as t } from "../../../lib/dialogOverlay.js";
4
+ import { overlayPanelBodyScrollClasses as n, overlayPanelChromeClasses as r, overlayPanelFooterClasses as i, overlayPanelFooterDelineatedInnerClasses as a, overlayPanelFooterDelineatedShellClasses as o, overlayPanelFooterHairlineClasses as s, overlayPanelSectionStackClasses as c } from "../Dialog/dialogStyles.js";
5
+ import { OverlayPanelHeader as l } from "../Dialog/OverlayPanelHeader.js";
6
+ import { PanelProvider as u, usePanelContext as d, usePanelLabelIds as f } from "./PanelContext.js";
7
+ import { sheetPanelPlacementClasses as p } from "../Sheet/sheetStyles.js";
8
+ import { panelBackdropClasses as m, panelMotionTransition as h, panelMotionVariants as g, panelOverlayRootClasses as _, panelShellClasses as v, panelSides as y, panelSizeClasses as b, panelSizes as x } from "./panelStyles.js";
9
+ import { useCallback as S, useRef as C } from "react";
9
10
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
10
11
  import { AnimatePresence as E, motion as D } from "motion/react";
11
12
  import { createPortal as O } from "react-dom";
12
13
  //#region src/components/organisms/Panel/Panel.tsx
13
- function k({ side: t, size: r, "aria-labelledby": i, "aria-describedby": a, children: o }) {
14
- let { open: s, onOpenChange: c, dismissOnEscape: l, triggerRef: d } = u("PanelPortal"), v = C(null), b = C(null), k = x(() => {
15
- c(!1);
16
- }, [c]);
17
- return S(() => {
18
- if (s) return b.current = d.current ?? document.activeElement, () => {
19
- b.current?.focus?.();
20
- };
21
- }, [s, d]), S(() => {
22
- if (!s || !l) return;
23
- function e(e) {
24
- e.key === "Escape" && (e.preventDefault(), k());
25
- }
26
- return document.addEventListener("keydown", e), () => {
27
- document.removeEventListener("keydown", e);
28
- };
29
- }, [
30
- k,
31
- l,
32
- s
33
- ]), typeof document > "u" ? null : O(/* @__PURE__ */ w(E, { children: s ? /* @__PURE__ */ T(D.div, {
34
- className: g[t],
14
+ function k({ side: n, size: i, "aria-labelledby": a, "aria-describedby": o, children: s }) {
15
+ let { open: c, onOpenChange: l, dismissOnEscape: u, triggerRef: f } = d("PanelPortal"), y = C(null), x = S(() => {
16
+ l(!1);
17
+ }, [l]);
18
+ return t(y, {
19
+ open: c,
20
+ onClose: x,
21
+ modal: !1,
22
+ closeOnEscape: u,
23
+ returnFocusRef: f
24
+ }), typeof document > "u" ? null : O(/* @__PURE__ */ w(E, { children: c ? /* @__PURE__ */ T(D.div, {
25
+ className: _[n],
35
26
  initial: { opacity: 0 },
36
27
  animate: { opacity: 1 },
37
28
  exit: { opacity: 0 },
38
- transition: m(t),
29
+ transition: h(n),
39
30
  children: [/* @__PURE__ */ w("div", {
40
- className: p,
31
+ className: m,
41
32
  "aria-hidden": "true"
42
33
  }), /* @__PURE__ */ w(D.div, {
43
- ref: v,
44
- className: e(_, f[t], y(t, r), n),
34
+ ref: y,
35
+ className: e(v, p[n], b(n, i), r),
45
36
  role: "dialog",
46
37
  "aria-modal": "false",
47
- "aria-labelledby": i,
48
- "aria-describedby": a,
49
- variants: h(t),
38
+ "aria-labelledby": a,
39
+ "aria-describedby": o,
40
+ variants: g(n),
50
41
  initial: "hidden",
51
42
  animate: "visible",
52
43
  exit: "exit",
53
- transition: m(t),
54
- children: o
44
+ transition: h(n),
45
+ children: s
55
46
  })]
56
47
  }) : null }), document.body);
57
48
  }
58
49
  function A({ open: e, onOpenChange: t, dismissOnEscape: n = !0, children: r }) {
59
- let { titleId: i, descriptionId: a } = d("panel"), o = C(null);
60
- return /* @__PURE__ */ w(l, {
50
+ let { titleId: i, descriptionId: a } = f("panel"), o = C(null);
51
+ return /* @__PURE__ */ w(u, {
61
52
  value: {
62
53
  open: e,
63
54
  onOpenChange: t,
@@ -70,7 +61,7 @@ function A({ open: e, onOpenChange: t, dismissOnEscape: n = !0, children: r }) {
70
61
  });
71
62
  }
72
63
  function j({ children: e, className: t }) {
73
- let { onOpenChange: n, triggerRef: r } = u("Panel.Trigger");
64
+ let { onOpenChange: n, triggerRef: r } = d("Panel.Trigger");
74
65
  return /* @__PURE__ */ w("span", {
75
66
  ref: r,
76
67
  className: t,
@@ -81,20 +72,20 @@ function j({ children: e, className: t }) {
81
72
  children: e
82
73
  });
83
74
  }
84
- function M({ side: n = "end", size: l = "md", title: d, description: f, headerStart: p, showClose: m = !0, footer: h, className: g, children: _ }) {
85
- let { titleId: v, descriptionId: y, onOpenChange: b } = u("Panel.Content"), x = d != null, S = f != null, C = _ != null || !x && S, E = h != null;
75
+ function M({ side: t = "end", size: r = "md", title: u, description: f, headerStart: p, showClose: m = !0, footer: h, className: g, children: _ }) {
76
+ let { titleId: v, descriptionId: y, onOpenChange: b } = d("Panel.Content"), x = u != null, S = f != null, C = _ != null || !x && S, E = h != null;
86
77
  return /* @__PURE__ */ w(k, {
87
- side: n,
88
- size: l,
78
+ side: t,
79
+ size: r,
89
80
  "aria-labelledby": x ? v : void 0,
90
81
  "aria-describedby": S ? y : void 0,
91
82
  children: /* @__PURE__ */ T("div", {
92
- className: e(s, h == null ? "pb-4" : void 0, g),
83
+ className: e(c, h == null ? "pb-4" : void 0, g),
93
84
  children: [
94
- /* @__PURE__ */ w(c, {
85
+ /* @__PURE__ */ w(l, {
95
86
  titleId: v,
96
87
  descriptionId: y,
97
- title: d,
88
+ title: u,
98
89
  description: f,
99
90
  headerStart: p,
100
91
  showClose: m,
@@ -103,7 +94,7 @@ function M({ side: n = "end", size: l = "md", title: d, description: f, headerSt
103
94
  delineated: C || E
104
95
  }),
105
96
  C ? /* @__PURE__ */ T("div", {
106
- className: t,
97
+ className: n,
107
98
  children: [!x && S ? /* @__PURE__ */ w("p", {
108
99
  id: y,
109
100
  className: "text-muted",
@@ -111,16 +102,16 @@ function M({ side: n = "end", size: l = "md", title: d, description: f, headerSt
111
102
  }) : null, _]
112
103
  }) : null,
113
104
  E ? C ? /* @__PURE__ */ T("footer", {
114
- className: a,
105
+ className: o,
115
106
  children: [/* @__PURE__ */ w("hr", {
116
- className: o,
107
+ className: s,
117
108
  "aria-hidden": "true"
118
109
  }), /* @__PURE__ */ w("div", {
119
- className: i,
110
+ className: a,
120
111
  children: h
121
112
  })]
122
113
  }) : /* @__PURE__ */ w("footer", {
123
- className: e(r, "pb-4"),
114
+ className: e(i, "pb-4"),
124
115
  children: h
125
116
  }) : null
126
117
  ]
@@ -132,4 +123,4 @@ var N = Object.assign(A, {
132
123
  Content: M
133
124
  });
134
125
  //#endregion
135
- export { N as Panel, v as panelSides, b as panelSizes };
126
+ export { N as Panel, y as panelSides, x as panelSizes };
@@ -14,6 +14,8 @@ export interface SheetProps {
14
14
  children: ReactNode;
15
15
  }
16
16
  export interface SheetContentProps {
17
+ /** Id on the dialog panel — point a trigger's `aria-controls` at it. */
18
+ id?: string;
17
19
  /** Edge attachment — default `bottom`. Side sheets are full viewport height. */
18
20
  side?: SheetSide;
19
21
  /** Cross-axis size — width (`end` / `start`) or max-height (`bottom`). */
@@ -34,7 +36,7 @@ declare function SheetTrigger({ children, className, }: {
34
36
  children: ReactNode;
35
37
  className?: SheetLayoutClassName;
36
38
  }): import("react").JSX.Element;
37
- declare function SheetContent({ side, size, title, description, headerStart, headerActions, showClose, footer, className, children, }: SheetContentProps): import("react").JSX.Element;
39
+ declare function SheetContent({ id, side, size, title, description, headerStart, headerActions, showClose, footer, className, children, }: SheetContentProps): import("react").JSX.Element;
38
40
  /**
39
41
  * Edge-attached dismissible overlay — bottom drawer or side sheet.
40
42
  * Shares scrim/focus/scroll lock with **Dialog**; reserve **Panel** for a future persistent flyover pattern.
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Sheet/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuBf,OAAO,EAWL,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAElC,uDAAuD;AACvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wCAAwC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mFAAmF;IACnF,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,8HAA8H;IAC9H,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA+JD,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,YAAY,EACZ,iBAAwB,EACxB,eAAsB,EACtB,QAAQ,GACT,EAAE,UAAU,+BAmBZ;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC,+BAmBA;AAED,iBAAS,YAAY,CAAC,EACpB,IAAe,EACf,IAAW,EACX,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,+BA8DnB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
1
+ {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Sheet/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiBf,OAAO,EAWL,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAElC,uDAAuD;AACvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wCAAwC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mFAAmF;IACnF,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,8HAA8H;IAC9H,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA2GD,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,YAAY,EACZ,iBAAwB,EACxB,eAAsB,EACtB,QAAQ,GACT,EAAE,UAAU,+BAmBZ;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC,+BAmBA;AAED,iBAAS,YAAY,CAAC,EACpB,EAAE,EACF,IAAe,EACf,IAAW,EACX,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAgB,EAChB,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,+BA+DnB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
@@ -1,84 +1,64 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../../lib/cn.js";
3
3
  import { motionTransitionProp as t } from "../../../lib/motion.js";
4
- import { dialogBackdropClasses as n, overlayPanelBodyScrollClasses as r, overlayPanelChromeClasses as i, overlayPanelFooterClasses as a, overlayPanelFooterDelineatedInnerClasses as o, overlayPanelFooterDelineatedShellClasses as s, overlayPanelFooterHairlineClasses as c, overlayPanelSectionStackClasses as l } from "../Dialog/dialogStyles.js";
5
- import { OverlayPanelHeader as u } from "../Dialog/OverlayPanelHeader.js";
6
- import { sheetEndBackdropClasses as d, sheetOverlayRootClasses as f, sheetPanelBaseClasses as p, sheetPanelMotionTransition as m, sheetPanelMotionVariants as h, sheetPanelPlacementClasses as g, sheetPanelReducedMotionVariants as _, sheetPanelSizeClasses as v, sheetSafeAreaBottomClasses as y, sheetSides as b, sheetSizes as x } from "./sheetStyles.js";
7
- import { focusInitialElement as S, focusMainContent as C, inertPageBehind as w, lockBodyScroll as T, trapFocus as E } from "../../../lib/dialogOverlay.js";
8
- import { SheetProvider as D, useSheetContext as O, useSheetLabelIds as k } from "./SheetContext.js";
9
- import { useCallback as A, useEffect as j, useRef as M } from "react";
10
- import { jsx as N, jsxs as P } from "react/jsx-runtime";
11
- import { AnimatePresence as F, motion as I, useReducedMotion as L } from "motion/react";
12
- import { createPortal as R } from "react-dom";
4
+ import { useOverlayLifecycle as n } from "../../../lib/dialogOverlay.js";
5
+ import { dialogBackdropClasses as r, overlayPanelBodyScrollClasses as i, overlayPanelChromeClasses as a, overlayPanelFooterClasses as o, overlayPanelFooterDelineatedInnerClasses as s, overlayPanelFooterDelineatedShellClasses as c, overlayPanelFooterHairlineClasses as l, overlayPanelSectionStackClasses as u } from "../Dialog/dialogStyles.js";
6
+ import { OverlayPanelHeader as d } from "../Dialog/OverlayPanelHeader.js";
7
+ import { sheetEndBackdropClasses as f, sheetOverlayRootClasses as p, sheetPanelBaseClasses as m, sheetPanelMotionTransition as h, sheetPanelMotionVariants as g, sheetPanelPlacementClasses as _, sheetPanelReducedMotionVariants as v, sheetPanelSizeClasses as y, sheetSafeAreaBottomClasses as b, sheetSides as x, sheetSizes as S } from "./sheetStyles.js";
8
+ import { SheetProvider as C, useSheetContext as w, useSheetLabelIds as T } from "./SheetContext.js";
9
+ import { useCallback as E, useRef as D } from "react";
10
+ import { jsx as O, jsxs as k } from "react/jsx-runtime";
11
+ import { AnimatePresence as A, motion as j, useReducedMotion as M } from "motion/react";
12
+ import { createPortal as N } from "react-dom";
13
13
  //#region src/components/organisms/Sheet/Sheet.tsx
14
- function z({ side: r, size: a, "aria-labelledby": o, "aria-describedby": s, children: c }) {
15
- let { open: l, onOpenChange: u, dismissOnBackdrop: y, dismissOnEscape: b, triggerRef: x } = O("SheetPortal"), D = L(), k = M(null), z = M(null), B = A(() => {
16
- u(!1);
17
- }, [u]);
18
- j(() => {
19
- if (!l) return;
20
- z.current = x.current ?? document.activeElement;
21
- let e = T(), t = k.current, n = t == null ? () => void 0 : w(t), r = () => {}, i = 0;
22
- return t != null && (r = E(t), i = window.requestAnimationFrame(() => {
23
- S(t);
24
- })), () => {
25
- window.cancelAnimationFrame(i), r(), n(), e();
26
- let a = z.current;
27
- a != null && a.isConnected && a !== document.body ? a.focus() : (C(), window.requestAnimationFrame(() => {
28
- let e = document.activeElement;
29
- (e == null || e === document.body || t?.contains(e)) && C();
30
- }));
31
- };
32
- }, [l, x]), j(() => {
33
- if (!l || !b) return;
34
- function e(e) {
35
- e.key === "Escape" && (e.preventDefault(), B());
36
- }
37
- return document.addEventListener("keydown", e), () => {
38
- document.removeEventListener("keydown", e);
39
- };
40
- }, [
41
- B,
42
- b,
43
- l
44
- ]);
45
- function V(e) {
46
- if (!y) return;
14
+ function P({ id: i, side: o, size: s, "aria-labelledby": c, "aria-describedby": l, children: u }) {
15
+ let { open: d, onOpenChange: b, dismissOnBackdrop: x, dismissOnEscape: S, triggerRef: C } = w("SheetPortal"), T = M(), P = D(null), F = E(() => {
16
+ b(!1);
17
+ }, [b]);
18
+ n(P, {
19
+ open: d,
20
+ onClose: F,
21
+ closeOnEscape: S,
22
+ returnFocusRef: C
23
+ });
24
+ function I(e) {
25
+ if (!x) return;
47
26
  let t = e.target;
48
- k.current?.contains(t) || (e.preventDefault(), B());
27
+ P.current?.contains(t) || (e.preventDefault(), F());
49
28
  }
50
- return typeof document > "u" ? null : R(/* @__PURE__ */ N(F, { children: l ? /* @__PURE__ */ P(I.div, {
51
- className: f[r],
29
+ return typeof document > "u" ? null : N(/* @__PURE__ */ O(A, { children: d ? /* @__PURE__ */ k(j.div, {
30
+ className: p[o],
52
31
  initial: { opacity: 0 },
53
32
  animate: { opacity: 1 },
54
33
  exit: { opacity: 0 },
55
34
  transition: t("medium"),
56
- onMouseDown: V,
57
- children: [/* @__PURE__ */ N("div", {
58
- className: r === "end" ? d : n,
35
+ onMouseDown: I,
36
+ children: [/* @__PURE__ */ O("div", {
37
+ className: o === "end" ? f : r,
59
38
  "aria-hidden": "true"
60
- }), /* @__PURE__ */ N(I.div, {
61
- ref: k,
62
- className: e(p, g[r], v[r][a], i, "relative z-[1]"),
39
+ }), /* @__PURE__ */ O(j.div, {
40
+ ref: P,
41
+ className: e(m, _[o], y[o][s], a, "relative z-[1]"),
42
+ id: i,
63
43
  role: "dialog",
64
44
  "aria-modal": "true",
65
- "aria-labelledby": o,
66
- "aria-describedby": s,
67
- variants: D === !0 ? _ : h(r),
45
+ "aria-labelledby": c,
46
+ "aria-describedby": l,
47
+ variants: T === !0 ? v : g(o),
68
48
  initial: "hidden",
69
49
  animate: "visible",
70
50
  exit: "exit",
71
- transition: m(r),
51
+ transition: h(o),
72
52
  onMouseDown: (e) => {
73
53
  e.stopPropagation();
74
54
  },
75
- children: c
55
+ children: u
76
56
  })]
77
57
  }) : null }), document.body);
78
58
  }
79
- function B({ open: e, onOpenChange: t, dismissOnBackdrop: n = !0, dismissOnEscape: r = !0, children: i }) {
80
- let { titleId: a, descriptionId: o } = k("sheet"), s = M(null);
81
- return /* @__PURE__ */ N(D, {
59
+ function F({ open: e, onOpenChange: t, dismissOnBackdrop: n = !0, dismissOnEscape: r = !0, children: i }) {
60
+ let { titleId: a, descriptionId: o } = T("sheet"), s = D(null);
61
+ return /* @__PURE__ */ O(C, {
82
62
  value: {
83
63
  open: e,
84
64
  onOpenChange: t,
@@ -91,9 +71,9 @@ function B({ open: e, onOpenChange: t, dismissOnBackdrop: n = !0, dismissOnEscap
91
71
  children: i
92
72
  });
93
73
  }
94
- function V({ children: e, className: t }) {
95
- let { onOpenChange: n, triggerRef: r } = O("Sheet.Trigger");
96
- return /* @__PURE__ */ N("span", {
74
+ function I({ children: e, className: t }) {
75
+ let { onOpenChange: n, triggerRef: r } = w("Sheet.Trigger");
76
+ return /* @__PURE__ */ O("span", {
97
77
  ref: r,
98
78
  className: t,
99
79
  onClick: (e) => {
@@ -103,56 +83,57 @@ function V({ children: e, className: t }) {
103
83
  children: e
104
84
  });
105
85
  }
106
- function H({ side: t = "bottom", size: n = "md", title: i, description: d, headerStart: f, headerActions: p, showClose: m = !0, footer: h, className: g, children: _ }) {
107
- let { titleId: v, descriptionId: b, onOpenChange: x } = O("Sheet.Content"), S = i != null, C = d != null, w = _ != null || !S && C, T = h != null, E = t === "end" ? y : void 0;
108
- return /* @__PURE__ */ N(z, {
109
- side: t,
110
- size: n,
111
- "aria-labelledby": S ? v : void 0,
112
- "aria-describedby": C ? b : void 0,
113
- children: /* @__PURE__ */ P("div", {
114
- className: e(l, h == null ? "pb-4" : void 0, h == null ? E : void 0, g),
86
+ function L({ id: t, side: n = "bottom", size: r = "md", title: a, description: f, headerStart: p, headerActions: m, showClose: h = !0, footer: g, className: _, children: v }) {
87
+ let { titleId: y, descriptionId: x, onOpenChange: S } = w("Sheet.Content"), C = a != null, T = f != null, E = v != null || !C && T, D = g != null, A = n === "end" ? b : void 0;
88
+ return /* @__PURE__ */ O(P, {
89
+ id: t,
90
+ side: n,
91
+ size: r,
92
+ "aria-labelledby": C ? y : void 0,
93
+ "aria-describedby": T ? x : void 0,
94
+ children: /* @__PURE__ */ k("div", {
95
+ className: e(u, g == null ? "pb-4" : void 0, g == null ? A : void 0, _),
115
96
  children: [
116
- /* @__PURE__ */ N(u, {
117
- titleId: v,
118
- descriptionId: b,
119
- title: i,
120
- description: d,
121
- headerStart: f,
122
- headerEnd: p,
123
- showClose: m,
97
+ /* @__PURE__ */ O(d, {
98
+ titleId: y,
99
+ descriptionId: x,
100
+ title: a,
101
+ description: f,
102
+ headerStart: p,
103
+ headerEnd: m,
104
+ showClose: h,
124
105
  closeLabel: "Close sheet",
125
- onClose: () => x(!1),
126
- delineated: w || T
106
+ onClose: () => S(!1),
107
+ delineated: E || D
127
108
  }),
128
- w ? /* @__PURE__ */ P("div", {
129
- className: r,
130
- children: [!S && C ? /* @__PURE__ */ N("p", {
131
- id: b,
109
+ E ? /* @__PURE__ */ k("div", {
110
+ className: i,
111
+ children: [!C && T ? /* @__PURE__ */ O("p", {
112
+ id: x,
132
113
  className: "text-muted",
133
- children: d
134
- }) : null, _]
114
+ children: f
115
+ }) : null, v]
135
116
  }) : null,
136
- T ? w ? /* @__PURE__ */ P("footer", {
137
- className: s,
138
- children: [/* @__PURE__ */ N("hr", {
139
- className: c,
117
+ D ? E ? /* @__PURE__ */ k("footer", {
118
+ className: c,
119
+ children: [/* @__PURE__ */ O("hr", {
120
+ className: l,
140
121
  "aria-hidden": "true"
141
- }), /* @__PURE__ */ N("div", {
142
- className: e(o, E),
143
- children: h
122
+ }), /* @__PURE__ */ O("div", {
123
+ className: e(s, A),
124
+ children: g
144
125
  })]
145
- }) : /* @__PURE__ */ N("footer", {
146
- className: e(a, "pb-4", E),
147
- children: h
126
+ }) : /* @__PURE__ */ O("footer", {
127
+ className: e(o, "pb-4", A),
128
+ children: g
148
129
  }) : null
149
130
  ]
150
131
  })
151
132
  });
152
133
  }
153
- var U = Object.assign(B, {
154
- Trigger: V,
155
- Content: H
134
+ var R = Object.assign(F, {
135
+ Trigger: I,
136
+ Content: L
156
137
  });
157
138
  //#endregion
158
- export { U as Sheet, b as sheetSides, x as sheetSizes };
139
+ export { R as Sheet, x as sheetSides, S as sheetSizes };
@@ -37,15 +37,6 @@ export interface SiteNavProps {
37
37
  "aria-label"?: string;
38
38
  className?: SiteNavLayoutClassName;
39
39
  }
40
- /**
41
- * Marketing site header — in-flow expanded band that scrolls away with the page. Once the
42
- * reader scrolls past half the viewport (or `collapseAt` px), a separate floating pill
43
- * pins 1rem from the top (`fixed` on the window, `sticky` inside a `scrollContainer`).
44
- *
45
- * Mental model: **page chrome** (`placement="fixed"`, optional `scrollContainer`) vs
46
- * **specimen** (`placement="inline"` without a scroller). Collapse ownership lives in
47
- * {@link useSiteNavCollapse}.
48
- */
49
40
  declare function SiteNavRoot({ start, middle, end, mobile, mobileTitle, collapseAt, state: controlledState, onStateChange, compactLayout, placement, scrollContainer, "aria-label": ariaLabel, className, }: SiteNavProps): import("react").JSX.Element;
50
41
  export interface SiteNavBrandProps {
51
42
  href: string;