@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
@@ -6,217 +6,226 @@ import { Tooltip as r } from "../../atoms/Tooltip/Tooltip.js";
6
6
  import { PageHeader as i } from "../../molecules/PageHeader/PageHeader.js";
7
7
  import { Panel as a } from "../Panel/Panel.js";
8
8
  import { Sheet as o } from "../Sheet/Sheet.js";
9
- import { appShellBrandClasses as s, appShellCanvasClasses as ee, appShellMainClasses as te, appShellRootClasses as ne, appShellSheetBodyClasses as re, appShellSidebarBodyClasses as c, appShellSidebarClasses as ie, appShellSidebarFooterClasses as ae, appShellSurfaceClasses as oe, appShellToggleDesktopClasses as se, appShellToggleMobileClasses as l } from "./appShellStyles.js";
10
- import { Children as u, createContext as d, isValidElement as f, useCallback as p, useContext as m, useEffect as h, useId as ce, useMemo as le, useRef as g, useState as _ } from "react";
11
- import { PanelLeft as v } from "lucide-react";
12
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
9
+ import { appShellBrandClasses as ee, appShellCanvasClasses as te, appShellMainClasses as ne, appShellRootClasses as re, appShellSheetBodyClasses as ie, appShellSidebarBodyClasses as s, appShellSidebarClasses as ae, appShellSidebarFooterClasses as oe, appShellSkipLinkClasses as se, appShellSurfaceClasses as ce, appShellToggleDesktopClasses as le, appShellToggleMobileClasses as ue } from "./appShellStyles.js";
10
+ import { Children as c, createContext as l, isValidElement as u, useCallback as d, useContext as f, useEffect as p, useId as de, useMemo as m, useRef as h, useState as g } from "react";
11
+ import { PanelLeft as _ } from "lucide-react";
12
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
13
13
  //#region src/components/organisms/AppShell/AppShell.tsx
14
- var ue = {
14
+ var fe = {
15
15
  collapse: "Collapse sidebar",
16
16
  expand: "Expand sidebar",
17
17
  menu: "Menu",
18
- aside: "Details"
18
+ aside: "Details",
19
+ skipToContent: "Skip to content"
19
20
  };
21
+ function x({ children: e }) {
22
+ return /* @__PURE__ */ y(v, { children: e });
23
+ }
20
24
  function S({ children: e }) {
21
- return /* @__PURE__ */ b(y, { children: e });
25
+ return /* @__PURE__ */ y(v, { children: e });
22
26
  }
23
27
  function C({ children: e }) {
24
- return /* @__PURE__ */ b(y, { children: e });
28
+ return /* @__PURE__ */ y(v, { children: e });
25
29
  }
26
30
  function w({ children: e }) {
27
- return /* @__PURE__ */ b(y, { children: e });
31
+ return /* @__PURE__ */ y(v, { children: e });
28
32
  }
29
33
  function T({ children: e }) {
30
- return /* @__PURE__ */ b(y, { children: e });
31
- }
32
- function E({ children: e }) {
33
- return /* @__PURE__ */ b(y, { children: e });
34
+ return /* @__PURE__ */ y(v, { children: e });
34
35
  }
35
- var D = d(null);
36
- function O() {
37
- let e = m(D);
36
+ var E = l(null);
37
+ function D() {
38
+ let e = f(E);
38
39
  if (e == null) throw Error("useAppShell must be used inside <AppShell>.");
39
40
  return e;
40
41
  }
41
- function k(e, t, n) {
42
- let [r, i] = _(t);
43
- return [e ?? r, p((t) => {
42
+ function O(e, t, n) {
43
+ let [r, i] = g(t);
44
+ return [e ?? r, d((t) => {
44
45
  e ?? i(t), n?.(t);
45
46
  }, [e, n])];
46
47
  }
47
- var A = "(min-width: 1024px)";
48
- function de(e) {
48
+ var k = "(min-width: 1024px)";
49
+ function pe(e) {
49
50
  return e instanceof HTMLElement && e.isContentEditable;
50
51
  }
51
- function fe(e) {
52
+ function me(e) {
52
53
  let t = { content: [] };
53
- return u.forEach(e, (e) => {
54
- if (!f(e)) {
54
+ return c.forEach(e, (e) => {
55
+ if (!u(e)) {
55
56
  e != null && e !== !1 && t.content.push(e);
56
57
  return;
57
58
  }
58
- e.type === S ? t.brand = e.props.children : e.type === C ? t.sidebar = e.props.children : e.type === w ? t.sidebarFooter = e.props.children : e.type === T ? t.header = e.props.children : e.type === E ? t.aside = e.props : t.content.push(e);
59
+ e.type === x ? t.brand = e.props.children : e.type === S ? t.sidebar = e.props.children : e.type === C ? t.sidebarFooter = e.props.children : e.type === w ? t.header = e.props.children : e.type === T ? t.aside = e.props : t.content.push(e);
59
60
  }), t;
60
61
  }
61
- function j({ title: u, brand: d, sidebar: f, sidebarFooter: m, header: y, aside: S, asideTitle: C, asideDescription: w, sidebarOpen: T, defaultSidebarOpen: E = !0, onSidebarOpenChange: O, asideOpen: j, defaultAsideOpen: M = !1, onAsideOpenChange: pe, labels: me, children: he, className: ge }) {
62
- let N = {
63
- ...ue,
64
- ...me
65
- }, P = fe(he), F = d ?? P.brand, I = f ?? P.sidebar, L = m ?? P.sidebarFooter, _e = y ?? P.header, R = S ?? P.aside?.children, z = I != null, ve = R != null, [B, V] = k(T, E, O), [H, U] = k(j, M, pe), [W, G] = _(!1), K = ce(), q = g(null), J = g(null), Y = p((e) => {
66
- !e && q.current?.contains(document.activeElement) && J.current?.focus(), V(e);
67
- }, [V]), X = p(() => {
68
- window.matchMedia(A).matches ? Y(!B) : G((e) => !e);
69
- }, [Y, B]);
70
- h(() => {
71
- let e = window.matchMedia(A);
62
+ function A({ title: c, brand: l, sidebar: u, sidebarFooter: f, header: v, aside: x, asideTitle: S, asideDescription: C, sidebarOpen: w, defaultSidebarOpen: T = !0, onSidebarOpenChange: D, asideOpen: A, defaultAsideOpen: j = !1, onAsideOpenChange: he, labels: ge, children: _e, className: ve }) {
63
+ let M = {
64
+ ...fe,
65
+ ...ge
66
+ }, N = me(_e), P = l ?? N.brand, F = u ?? N.sidebar, I = f ?? N.sidebarFooter, ye = v ?? N.header, L = x ?? N.aside?.children, R = F != null, be = L != null, [z, B] = O(w, T, D), [V, H] = O(A, j, he), [U, W] = g(!1), G = de(), K = h(null), q = h(null), J = d((e) => {
67
+ !e && K.current?.contains(document.activeElement) && q.current?.focus(), B(e);
68
+ }, [B]), Y = d(() => {
69
+ window.matchMedia(k).matches ? J(!z) : W((e) => !e);
70
+ }, [J, z]);
71
+ p(() => {
72
+ let e = window.matchMedia(k);
72
73
  function t(e) {
73
- e.matches && G(!1);
74
+ e.matches && W(!1);
74
75
  }
75
76
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
76
- }, []), h(() => {
77
- if (!z) return;
77
+ }, []), p(() => {
78
+ if (!R) return;
78
79
  function e(e) {
79
- e.defaultPrevented || e.altKey || e.shiftKey || !(e.metaKey || e.ctrlKey) || e.key.toLowerCase() !== "b" || de(e.target) || (e.preventDefault(), X());
80
+ e.defaultPrevented || e.altKey || e.shiftKey || !(e.metaKey || e.ctrlKey) || e.key.toLowerCase() !== "b" || pe(e.target) || (e.preventDefault(), Y());
80
81
  }
81
82
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
82
- }, [z, X]);
83
- let ye = le(() => ({
84
- sidebarOpen: B,
85
- setSidebarOpen: Y,
86
- menuOpen: W,
87
- setMenuOpen: G,
88
- asideOpen: H,
89
- setAsideOpen: U,
90
- toggleSidebar: X
83
+ }, [R, Y]);
84
+ let xe = m(() => ({
85
+ sidebarOpen: z,
86
+ setSidebarOpen: J,
87
+ menuOpen: U,
88
+ setMenuOpen: W,
89
+ asideOpen: V,
90
+ setAsideOpen: H,
91
+ toggleSidebar: Y
91
92
  }), [
92
- H,
93
- W,
93
+ V,
94
94
  U,
95
- Y,
96
- B,
97
- X
95
+ H,
96
+ J,
97
+ z,
98
+ Y
98
99
  ]);
99
- function be(e) {
100
- e.target.closest("nav a[href], nav button") != null && G(!1);
100
+ function Se(e) {
101
+ e.target.closest("nav a[href], nav button") != null && W(!1);
101
102
  }
102
- let Z = B ? N.collapse : N.expand, Q = F == null ? null : /* @__PURE__ */ b("div", {
103
- className: s,
104
- children: F
105
- }), $ = L == null ? null : /* @__PURE__ */ b("div", {
106
- className: ae,
107
- children: L
108
- }), xe = z ? /* @__PURE__ */ x(r.Provider, { children: [/* @__PURE__ */ x(r, { children: [/* @__PURE__ */ b(r.Trigger, { render: /* @__PURE__ */ b(t, {
109
- ref: J,
103
+ let X = z ? M.collapse : M.expand, Z = `${G}-main`, Q = P == null ? null : /* @__PURE__ */ y("div", {
104
+ className: ee,
105
+ children: P
106
+ }), $ = I == null ? null : /* @__PURE__ */ y("div", {
107
+ className: oe,
108
+ children: I
109
+ }), Ce = R ? /* @__PURE__ */ b(r.Provider, { children: [/* @__PURE__ */ b(r, { children: [/* @__PURE__ */ y(r.Trigger, { render: /* @__PURE__ */ y(t, {
110
+ ref: q,
110
111
  role: "ghost",
111
112
  size: "sm",
112
113
  title: "",
113
- icon: /* @__PURE__ */ b(v, { strokeWidth: 2 }),
114
- "aria-label": Z,
115
- "aria-expanded": B,
116
- "aria-controls": K,
114
+ icon: /* @__PURE__ */ y(_, { strokeWidth: 2 }),
115
+ "aria-label": X,
116
+ "aria-expanded": z,
117
+ "aria-controls": G,
117
118
  "aria-keyshortcuts": "Control+B Meta+B",
118
- className: se,
119
- onClick: () => Y(!B)
120
- }) }), /* @__PURE__ */ b(r.Content, { children: /* @__PURE__ */ x("span", {
119
+ className: le,
120
+ onClick: () => J(!z)
121
+ }) }), /* @__PURE__ */ y(r.Content, { children: /* @__PURE__ */ b("span", {
121
122
  className: "inline-flex items-center gap-2",
122
123
  children: [
123
- Z,
124
- /* @__PURE__ */ b(n, {
124
+ X,
125
+ /* @__PURE__ */ y(n, {
125
126
  size: "sm",
126
127
  children: "Ctrl"
127
128
  }),
128
- /* @__PURE__ */ b(n, {
129
+ /* @__PURE__ */ y(n, {
129
130
  size: "sm",
130
131
  children: "B"
131
132
  })
132
133
  ]
133
- }) })] }), /* @__PURE__ */ b(t, {
134
+ }) })] }), /* @__PURE__ */ y(t, {
134
135
  role: "ghost",
135
136
  size: "sm",
136
- icon: /* @__PURE__ */ b(v, { strokeWidth: 2 }),
137
- "aria-label": N.menu,
138
- "aria-expanded": W,
137
+ icon: /* @__PURE__ */ y(_, { strokeWidth: 2 }),
138
+ "aria-label": M.menu,
139
+ "aria-expanded": U,
139
140
  "aria-haspopup": "dialog",
140
141
  "aria-keyshortcuts": "Control+B Meta+B",
141
- className: l,
142
- onClick: () => G(!0)
142
+ className: ue,
143
+ onClick: () => W(!0)
143
144
  })] }) : null;
144
- return /* @__PURE__ */ b(D.Provider, {
145
- value: ye,
146
- children: /* @__PURE__ */ x("div", {
147
- className: e(ne, ge),
145
+ return /* @__PURE__ */ y(E.Provider, {
146
+ value: xe,
147
+ children: /* @__PURE__ */ b("div", {
148
+ className: e(re, ve),
148
149
  children: [
149
- z ? /* @__PURE__ */ x("div", {
150
- ref: q,
151
- id: K,
152
- className: e(ie, !B && "lg:!hidden"),
150
+ /* @__PURE__ */ y("a", {
151
+ href: `#${Z}`,
152
+ className: se,
153
+ onClick: (e) => {
154
+ e.preventDefault(), document.getElementById(Z)?.focus();
155
+ },
156
+ children: M.skipToContent
157
+ }),
158
+ R ? /* @__PURE__ */ b("div", {
159
+ ref: K,
160
+ id: G,
161
+ className: e(ae, !z && "lg:!hidden"),
153
162
  children: [
154
163
  Q,
155
- /* @__PURE__ */ b("div", {
156
- className: c,
157
- children: I
164
+ /* @__PURE__ */ y("div", {
165
+ className: s,
166
+ children: F
158
167
  }),
159
168
  $
160
169
  ]
161
170
  }) : null,
162
- /* @__PURE__ */ b("div", {
163
- className: ee,
164
- children: /* @__PURE__ */ x("div", {
165
- className: oe,
166
- children: [/* @__PURE__ */ b(i, {
171
+ /* @__PURE__ */ y("div", {
172
+ className: te,
173
+ children: /* @__PURE__ */ b("div", {
174
+ className: ce,
175
+ children: [/* @__PURE__ */ y(i, {
167
176
  variant: "app",
168
- title: u,
169
- "aria-label": u,
170
- start: xe,
171
- end: _e
172
- }), /* @__PURE__ */ b("main", {
173
- id: `${K}-main`,
177
+ title: c,
178
+ "aria-label": c,
179
+ start: Ce,
180
+ end: ye
181
+ }), /* @__PURE__ */ y("main", {
182
+ id: Z,
174
183
  tabIndex: -1,
175
- className: te,
176
- children: P.content
184
+ className: ne,
185
+ children: N.content
177
186
  })]
178
187
  })
179
188
  }),
180
- z ? /* @__PURE__ */ b(o, {
181
- open: W,
182
- onOpenChange: G,
183
- children: /* @__PURE__ */ b(o.Content, {
189
+ R ? /* @__PURE__ */ y(o, {
190
+ open: U,
191
+ onOpenChange: W,
192
+ children: /* @__PURE__ */ y(o.Content, {
184
193
  side: "start",
185
- title: N.menu,
186
- children: /* @__PURE__ */ x("div", {
187
- className: re,
188
- onClick: be,
194
+ title: M.menu,
195
+ children: /* @__PURE__ */ b("div", {
196
+ className: ie,
197
+ onClick: Se,
189
198
  children: [
190
199
  Q,
191
- /* @__PURE__ */ b("div", {
192
- className: c,
193
- children: I
200
+ /* @__PURE__ */ y("div", {
201
+ className: s,
202
+ children: F
194
203
  }),
195
204
  $
196
205
  ]
197
206
  })
198
207
  })
199
208
  }) : null,
200
- ve ? /* @__PURE__ */ b(a, {
201
- open: H,
202
- onOpenChange: U,
203
- children: /* @__PURE__ */ b(a.Content, {
209
+ be ? /* @__PURE__ */ y(a, {
210
+ open: V,
211
+ onOpenChange: H,
212
+ children: /* @__PURE__ */ y(a.Content, {
204
213
  side: "end",
205
- title: C ?? P.aside?.title ?? N.aside,
206
- description: w ?? P.aside?.description,
207
- children: R
214
+ title: S ?? N.aside?.title ?? M.aside,
215
+ description: C ?? N.aside?.description,
216
+ children: L
208
217
  })
209
218
  }) : null
210
219
  ]
211
220
  })
212
221
  });
213
222
  }
214
- var M = Object.assign(j, {
215
- Brand: S,
216
- Sidebar: C,
217
- SidebarFooter: w,
218
- Header: T,
219
- Aside: E
223
+ var j = Object.assign(A, {
224
+ Brand: x,
225
+ Sidebar: S,
226
+ SidebarFooter: C,
227
+ Header: w,
228
+ Aside: T
220
229
  });
221
230
  //#endregion
222
- export { M as AppShell, O as useAppShell };
231
+ export { j as AppShell, D as useAppShell };
@@ -11,6 +11,8 @@ export declare const appShellSidebarFooterClasses = "box-border shrink-0 px-4 py
11
11
  export declare const appShellCanvasClasses = "flex min-h-0 min-w-0 flex-1 p-2";
12
12
  /** Raised surface — the Card shell radius and the soft card shadow. */
13
13
  export declare const appShellSurfaceClasses: string;
14
+ /** First tab stop: hidden until focused, then pinned over the top-start corner. */
15
+ export declare const appShellSkipLinkClasses: string;
14
16
  export declare const appShellMainClasses = "min-h-0 flex-1 overflow-y-auto px-[var(--grid-margin)] py-6 focus-visible:outline-none";
15
17
  export declare const appShellToggleDesktopClasses = "max-lg:!hidden";
16
18
  export declare const appShellToggleMobileClasses = "lg:!hidden";
@@ -1 +1 @@
1
- {"version":3,"file":"appShellStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/AppShell/appShellStyles.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,yDAAyD,CAAC;AAE1F,sFAAsF;AACtF,eAAO,MAAM,sBAAsB,mEAAmE,CAAC;AAEvG,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,QAGhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAE3E,6EAA6E;AAC7E,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAE5E,2CAA2C;AAC3C,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AAEvE,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,QAGlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,2FAC0D,CAAC;AAE3F,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,wBAAwB,iCAAiC,CAAC"}
1
+ {"version":3,"file":"appShellStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/AppShell/appShellStyles.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,yDAAyD,CAAC;AAE1F,sFAAsF;AACtF,eAAO,MAAM,sBAAsB,mEAAmE,CAAC;AAEvG,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,QAGhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAE3E,6EAA6E;AAC7E,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAE5E,2CAA2C;AAC3C,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AAEvE,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,QAGlC,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,QAGqB,CAAC;AAE1D,eAAO,MAAM,mBAAmB,2FAC0D,CAAC;AAE3F,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,wBAAwB,iCAAiC,CAAC"}
@@ -3,6 +3,6 @@ import { cn as e } from "../../../lib/cn.js";
3
3
  import { cardLayoutShellShapeClasses as t } from "../../molecules/Card/cardStyles.js";
4
4
  import { pageHeaderAppBandHeightClasses as n } from "../../molecules/PageHeader/pageHeaderStyles.js";
5
5
  //#region src/components/organisms/AppShell/appShellStyles.ts
6
- var r = "flex h-full min-h-0 w-full bg-body font-sans text-fg", i = "flex h-full min-h-0 w-60 shrink-0 flex-col pt-2 max-lg:!hidden", a = e("box-border flex shrink-0 items-center gap-2 px-4", n), o = "min-h-0 flex-1 overflow-y-auto", s = "box-border shrink-0 px-4 py-3", c = "flex min-h-0 min-w-0 flex-1 p-2", l = e("flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-surface shadow-soft-card", t.rounded), u = "min-h-0 flex-1 overflow-y-auto px-[var(--grid-margin)] py-6 focus-visible:outline-none", d = "max-lg:!hidden", f = "lg:!hidden", p = "flex h-full min-h-0 flex-col";
6
+ var r = "flex h-full min-h-0 w-full bg-body font-sans text-fg", i = "flex h-full min-h-0 w-60 shrink-0 flex-col pt-2 max-lg:!hidden", a = e("box-border flex shrink-0 items-center gap-2 px-4", n), o = "min-h-0 flex-1 overflow-y-auto", s = "box-border shrink-0 px-4 py-3", c = "flex min-h-0 min-w-0 flex-1 p-2", l = e("flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-surface shadow-soft-card", t.rounded), u = "sr-only focus:not-sr-only focus:fixed focus:start-4 focus:top-4 focus:z-50 focus:rounded-[var(--radius-control)] focus:bg-body focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-fg focus:outline-none focus:ring-2 focus:ring-focus-ring", d = "min-h-0 flex-1 overflow-y-auto px-[var(--grid-margin)] py-6 focus-visible:outline-none", f = "max-lg:!hidden", p = "lg:!hidden", m = "flex h-full min-h-0 flex-col";
7
7
  //#endregion
8
- export { a as appShellBrandClasses, c as appShellCanvasClasses, u as appShellMainClasses, r as appShellRootClasses, p as appShellSheetBodyClasses, o as appShellSidebarBodyClasses, i as appShellSidebarClasses, s as appShellSidebarFooterClasses, l as appShellSurfaceClasses, d as appShellToggleDesktopClasses, f as appShellToggleMobileClasses };
8
+ export { a as appShellBrandClasses, c as appShellCanvasClasses, d as appShellMainClasses, r as appShellRootClasses, m as appShellSheetBodyClasses, o as appShellSidebarBodyClasses, i as appShellSidebarClasses, s as appShellSidebarFooterClasses, u as appShellSkipLinkClasses, l as appShellSurfaceClasses, f as appShellToggleDesktopClasses, p as appShellToggleMobileClasses };
@@ -8,6 +8,12 @@ export interface AlertDialogProps {
8
8
  onOpenChange: (open: boolean) => void;
9
9
  title: ReactNode;
10
10
  description?: ReactNode;
11
+ /**
12
+ * Content between the description and the actions — a typed-confirmation Input, a short list.
13
+ * It sits outside the description `<p>`, so `aria-describedby` still names the description alone.
14
+ * Cancel keeps initial focus; pair a field with `confirmDisabled`.
15
+ */
16
+ children?: ReactNode;
11
17
  cancelLabel?: string;
12
18
  confirmLabel: string;
13
19
  /** Confirm button role — default `primary`; use `destructive` for irreversible actions. */
@@ -27,5 +33,5 @@ export interface AlertDialogProps {
27
33
  * Blocking confirm dialog — cancel + confirm footer; scrim dismiss off by default.
28
34
  * Opinionated title + description + cancel/confirm footer on the shared overlay primitive.
29
35
  */
30
- export declare function AlertDialog({ open, onOpenChange, title, description, cancelLabel, confirmLabel, confirmRole, onConfirm, onCancel, confirmStatus, confirmDisabled, cancelDisabled, dismissOnBackdrop, dismissOnEscape, className, }: AlertDialogProps): import("react").JSX.Element;
36
+ export declare function AlertDialog({ open, onOpenChange, title, description, children, cancelLabel, confirmLabel, confirmRole, onConfirm, onCancel, confirmStatus, confirmDisabled, cancelDisabled, dismissOnBackdrop, dismissOnEscape, className, }: AlertDialogProps): import("react").JSX.Element;
31
37
  //# sourceMappingURL=AlertDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Dialog/AlertDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAkB/C,eAAO,MAAM,uBAAuB,qCAAsC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,+CAA+C;AAC/C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,2FAA2F;IAC3F,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,+BAA+B;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,0BAA0B,CAAC;CACxC;AAED;;;GAGG;AACH,wB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SAAS,CAAC,EAAE,0BAA0B,CAAC;CACxC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,WAAsB,EACtB,YAAY,EACZ,WAAuB,EACvB,SAAS,EACT,QAAQ,EACR,aAAa,EACb,eAAuB,EACvB,cAAsB,EACtB,iBAAyB,EACzB,eAAsB,EACtB,SAAS,GACV,EAAE,gBAAgB,+BAuFlB"}
@@ -2,73 +2,77 @@
2
2
  import { cn as e } from "../../../lib/cn.js";
3
3
  import { Button as t } from "../../atoms/Button/Button.js";
4
4
  import { Card as n } from "../../molecules/Card/Card.js";
5
- import { alertDialogTitleClasses as r, dialogBodyMutedClasses as i, dialogPanelShellClasses as a, dialogPanelSizeClasses as o, overlayPanelChromeClasses as s, overlayPanelDialogBodyScrollClasses as c, overlayPanelDialogFooterClasses as l, overlayPanelMaxHeightClasses as u } from "./dialogStyles.js";
6
- import { OverlayPanelHeader as d } from "./OverlayPanelHeader.js";
7
- import { DialogProvider as f, useDialogLabelIds as p } from "./DialogContext.js";
8
- import { DialogPortal as m } from "./Dialog.js";
9
- import { useRef as h } from "react";
10
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
5
+ import { alertDialogTitleClasses as r, dialogBodyMutedClasses as i, dialogHeaderInsetTopClasses as a, dialogPanelInsetXClasses as o, dialogPanelShellClasses as s, dialogPanelSizeClasses as c, overlayPanelChromeClasses as l, overlayPanelDialogBodyScrollClasses as u, overlayPanelDialogFooterClasses as d, overlayPanelMaxHeightClasses as f } from "./dialogStyles.js";
6
+ import { OverlayPanelHeader as p } from "./OverlayPanelHeader.js";
7
+ import { DialogProvider as m, useDialogLabelIds as h } from "./DialogContext.js";
8
+ import { DialogPortal as g } from "./Dialog.js";
9
+ import { useRef as _ } from "react";
10
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
11
11
  //#region src/components/organisms/Dialog/AlertDialog.tsx
12
- var v = ["primary", "destructive"];
13
- function y({ open: v, onOpenChange: y, title: b, description: x, cancelLabel: S = "Cancel", confirmLabel: C, confirmRole: w = "primary", onConfirm: T, onCancel: E, confirmStatus: D, confirmDisabled: O = !1, cancelDisabled: k = !1, dismissOnBackdrop: A = !1, dismissOnEscape: j = !0, className: M }) {
14
- let { titleId: N, descriptionId: P } = p("alert-dialog"), F = h(null);
15
- function I() {
16
- E?.(), y(!1);
12
+ var b = ["primary", "destructive"];
13
+ function x({ open: b, onOpenChange: x, title: S, description: C, children: w, cancelLabel: T = "Cancel", confirmLabel: E, confirmRole: D = "primary", onConfirm: O, onCancel: k, confirmStatus: A, confirmDisabled: j = !1, cancelDisabled: M = !1, dismissOnBackdrop: N = !1, dismissOnEscape: P = !0, className: F }) {
14
+ let { titleId: I, descriptionId: L } = h("alert-dialog"), R = _(null);
15
+ function z() {
16
+ k?.(), x(!1);
17
17
  }
18
- function L() {
19
- T();
18
+ function B() {
19
+ O();
20
20
  }
21
- return /* @__PURE__ */ g(f, {
21
+ return /* @__PURE__ */ v(m, {
22
22
  value: {
23
- open: v,
24
- onOpenChange: y,
25
- titleId: N,
26
- descriptionId: P,
27
- dismissOnBackdrop: A,
28
- dismissOnEscape: j,
29
- triggerRef: F
23
+ open: b,
24
+ onOpenChange: x,
25
+ titleId: I,
26
+ descriptionId: L,
27
+ dismissOnBackdrop: N,
28
+ dismissOnEscape: P,
29
+ triggerRef: R
30
30
  },
31
- children: /* @__PURE__ */ g(m, {
31
+ children: /* @__PURE__ */ v(g, {
32
32
  role: "alertdialog",
33
- "aria-labelledby": N,
34
- "aria-describedby": x == null ? void 0 : P,
33
+ "aria-labelledby": I,
34
+ "aria-describedby": C == null ? void 0 : L,
35
35
  initialFocusSelector: "[data-alert-dialog-cancel=\"true\"]",
36
- children: /* @__PURE__ */ _(n, {
36
+ children: /* @__PURE__ */ y(n, {
37
37
  padding: "none",
38
38
  bodyTerminal: !1,
39
- className: e(o.sm, s, u, a, M),
39
+ className: e(c.sm, l, f, s, o, F),
40
40
  children: [
41
- /* @__PURE__ */ g(d, {
42
- titleId: N,
43
- descriptionId: P,
44
- title: b,
41
+ /* @__PURE__ */ v(p, {
42
+ titleId: I,
43
+ descriptionId: L,
44
+ title: S,
45
45
  titleClassName: r,
46
- showClose: !1
46
+ showClose: !1,
47
+ className: a
47
48
  }),
48
- /* @__PURE__ */ g("div", {
49
- className: c,
50
- children: x == null ? null : /* @__PURE__ */ g("p", {
51
- id: P,
49
+ /* @__PURE__ */ y("div", {
50
+ className: u,
51
+ children: [C == null ? null : /* @__PURE__ */ v("p", {
52
+ id: L,
52
53
  className: i,
53
- children: x
54
- })
54
+ children: C
55
+ }), w == null ? null : /* @__PURE__ */ v("div", {
56
+ className: C == null ? void 0 : "mt-3",
57
+ children: w
58
+ })]
55
59
  }),
56
- /* @__PURE__ */ _("footer", {
57
- className: l,
58
- children: [/* @__PURE__ */ g(t, {
60
+ /* @__PURE__ */ y("footer", {
61
+ className: d,
62
+ children: [/* @__PURE__ */ v(t, {
59
63
  size: "sm",
60
64
  role: "ghost",
61
- disabled: k || D === "loading",
65
+ disabled: M || A === "loading",
62
66
  "data-alert-dialog-cancel": "true",
63
- onClick: I,
64
- children: S
65
- }), /* @__PURE__ */ g(t, {
67
+ onClick: z,
68
+ children: T
69
+ }), /* @__PURE__ */ v(t, {
66
70
  size: "sm",
67
- role: w,
68
- status: D,
69
- disabled: O,
70
- onClick: L,
71
- children: C
71
+ role: D,
72
+ status: A,
73
+ disabled: j,
74
+ onClick: B,
75
+ children: E
72
76
  })]
73
77
  })
74
78
  ]
@@ -77,4 +81,4 @@ function y({ open: v, onOpenChange: y, title: b, description: x, cancelLabel: S
77
81
  });
78
82
  }
79
83
  //#endregion
80
- export { y as AlertDialog, v as alertDialogConfirmRoles };
84
+ export { x as AlertDialog, b as alertDialogConfirmRoles };
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Dialog/Dialog.tsx"],"names":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M,CAAC;IAC9B,uFAAuF;IACvF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,oBAAoB,EACpB,IAAY,EACZ,QAAQ,GACT,EAAE,iBAAiB,sCA6GnB;AAED,iBAAS,UAAU,CAAC,EAClB,IAAI,EACJ,YAAY,EACZ,iBAAwB,EACxB,eAAsB,EACtB,QAAQ,GACT,EAAE,WAAW,+BAmBb;AAED,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACnC,+BAmBA;AAED,iBAAS,aAAa,CAAC,EACrB,KAAK,EACL,WAAW,EACX,WAAW,EACX,SAAgB,EAChB,SAAS,EACT,MAAM,EACN,IAAW,EACX,iBAAiB,EAAE,cAAc,EACjC,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,+BAwDpB;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM;;;CAGjB,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAWf,OAAO,EAML,WAAW,EASX,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,0EAA0E;AAC1E,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CA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