@canonical/react-ds-global 0.30.0 → 0.32.0

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 (110) hide show
  1. package/dist/esm/lib/component/Accordion/common/Item/styles.css +127 -9
  2. package/dist/esm/lib/component/Badge/styles.css +25 -24
  3. package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js +2 -2
  4. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js +12 -2
  5. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js.map +1 -1
  6. package/dist/esm/lib/component/Breadcrumbs/common/Item/styles.css +17 -5
  7. package/dist/esm/lib/component/Breadcrumbs/styles.css +3 -0
  8. package/dist/esm/lib/component/Button/Button.js +4 -5
  9. package/dist/esm/lib/component/Button/Button.js.map +1 -1
  10. package/dist/esm/lib/component/Button/styles.css +99 -17
  11. package/dist/esm/lib/component/Card/Card.js +7 -0
  12. package/dist/esm/lib/component/Card/Card.js.map +1 -1
  13. package/dist/esm/lib/component/Card/common/Content/styles.css +7 -3
  14. package/dist/esm/lib/component/Card/common/Footer/Footer.js +1 -1
  15. package/dist/esm/lib/component/Card/common/Footer/styles.css +12 -2
  16. package/dist/esm/lib/component/Card/styles.css +52 -14
  17. package/dist/esm/lib/component/Chip/styles.css +3 -0
  18. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +11 -8
  19. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -1
  20. package/dist/esm/lib/component/ContextualMenu/common/Item/styles.css +31 -3
  21. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +24 -5
  22. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -1
  23. package/dist/esm/lib/component/Tabs/common/Item/styles.css +12 -0
  24. package/dist/esm/lib/component/Tooltip/Tooltip.js +1 -1
  25. package/dist/esm/lib/component/Tooltip/index.js +0 -1
  26. package/dist/esm/lib/component/Tooltip/index.js.map +1 -1
  27. package/dist/esm/lib/component/Tooltip/styles.css +17 -0
  28. package/dist/esm/lib/component/Tooltip/withTooltip.js +70 -7
  29. package/dist/esm/lib/component/Tooltip/withTooltip.js.map +1 -1
  30. package/dist/esm/lib/group/Cards/Cards.js +49 -0
  31. package/dist/esm/lib/group/Cards/Cards.js.map +1 -0
  32. package/dist/esm/lib/group/Cards/index.js +3 -0
  33. package/dist/esm/lib/group/Cards/index.js.map +1 -0
  34. package/dist/esm/lib/group/Cards/styles.css +55 -0
  35. package/dist/esm/lib/group/Cards/types.js.map +1 -0
  36. package/dist/esm/lib/group/index.js +1 -0
  37. package/dist/esm/lib/group/index.js.map +1 -1
  38. package/dist/esm/lib/hooks/index.js +1 -0
  39. package/dist/esm/lib/hooks/index.js.map +1 -1
  40. package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js +6 -0
  41. package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js.map +1 -1
  42. package/dist/esm/lib/hooks/useIsMounted/index.js +3 -0
  43. package/dist/esm/lib/hooks/useIsMounted/index.js.map +1 -0
  44. package/dist/esm/lib/hooks/useIsMounted/types.js +2 -0
  45. package/dist/esm/lib/hooks/useIsMounted/types.js.map +1 -0
  46. package/dist/esm/lib/hooks/useIsMounted/useIsMounted.js +21 -0
  47. package/dist/esm/lib/hooks/useIsMounted/useIsMounted.js.map +1 -0
  48. package/dist/esm/lib/hooks/useWindowFitment/readingDirection.js +19 -4
  49. package/dist/esm/lib/hooks/useWindowFitment/readingDirection.js.map +1 -1
  50. package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  51. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts.map +1 -1
  52. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +5 -0
  53. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
  54. package/dist/types/lib/component/Breadcrumbs/types.d.ts +15 -0
  55. package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
  56. package/dist/types/lib/component/Button/Button.d.ts.map +1 -1
  57. package/dist/types/lib/component/Button/types.d.ts +7 -5
  58. package/dist/types/lib/component/Button/types.d.ts.map +1 -1
  59. package/dist/types/lib/component/Card/Card.d.ts +7 -0
  60. package/dist/types/lib/component/Card/Card.d.ts.map +1 -1
  61. package/dist/types/lib/component/Card/common/Footer/Footer.d.ts +1 -1
  62. package/dist/types/lib/component/Card/common/Footer/types.d.ts +1 -1
  63. package/dist/types/lib/component/Card/common/Footer/types.d.ts.map +1 -1
  64. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts.map +1 -1
  65. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -1
  66. package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
  67. package/dist/types/lib/component/Tooltip/index.d.ts +0 -1
  68. package/dist/types/lib/component/Tooltip/index.d.ts.map +1 -1
  69. package/dist/types/lib/component/Tooltip/types.d.ts +60 -0
  70. package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
  71. package/dist/types/lib/component/Tooltip/withTooltip.d.ts +10 -12
  72. package/dist/types/lib/component/Tooltip/withTooltip.d.ts.map +1 -1
  73. package/dist/types/lib/group/Cards/Cards.d.ts +40 -0
  74. package/dist/types/lib/group/Cards/Cards.d.ts.map +1 -0
  75. package/dist/types/lib/group/Cards/index.d.ts +3 -0
  76. package/dist/types/lib/group/Cards/index.d.ts.map +1 -0
  77. package/dist/types/lib/group/Cards/types.d.ts +14 -0
  78. package/dist/types/lib/group/Cards/types.d.ts.map +1 -0
  79. package/dist/types/lib/group/index.d.ts +1 -0
  80. package/dist/types/lib/group/index.d.ts.map +1 -1
  81. package/dist/types/lib/hooks/index.d.ts +1 -0
  82. package/dist/types/lib/hooks/index.d.ts.map +1 -1
  83. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -1
  84. package/dist/types/lib/hooks/useIsMounted/index.d.ts +3 -0
  85. package/dist/types/lib/hooks/useIsMounted/index.d.ts.map +1 -0
  86. package/dist/types/lib/hooks/useIsMounted/types.d.ts +6 -0
  87. package/dist/types/lib/hooks/useIsMounted/types.d.ts.map +1 -0
  88. package/dist/types/lib/hooks/useIsMounted/useIsMounted.d.ts +15 -0
  89. package/dist/types/lib/hooks/useIsMounted/useIsMounted.d.ts.map +1 -0
  90. package/dist/types/lib/hooks/useWindowFitment/readingDirection.d.ts +12 -4
  91. package/dist/types/lib/hooks/useWindowFitment/readingDirection.d.ts.map +1 -1
  92. package/dist/types/lib/types/link.d.ts +1 -1
  93. package/package.json +16 -16
  94. package/dist/esm/lib/component/Tooltip/common/TooltipArea/TooltipArea.js +0 -62
  95. package/dist/esm/lib/component/Tooltip/common/TooltipArea/TooltipArea.js.map +0 -1
  96. package/dist/esm/lib/component/Tooltip/common/TooltipArea/index.js +0 -2
  97. package/dist/esm/lib/component/Tooltip/common/TooltipArea/index.js.map +0 -1
  98. package/dist/esm/lib/component/Tooltip/common/TooltipArea/styles.css +0 -13
  99. package/dist/esm/lib/component/Tooltip/common/TooltipArea/types.js.map +0 -1
  100. package/dist/esm/lib/component/Tooltip/common/index.js +0 -2
  101. package/dist/esm/lib/component/Tooltip/common/index.js.map +0 -1
  102. package/dist/types/lib/component/Tooltip/common/TooltipArea/TooltipArea.d.ts +0 -10
  103. package/dist/types/lib/component/Tooltip/common/TooltipArea/TooltipArea.d.ts.map +0 -1
  104. package/dist/types/lib/component/Tooltip/common/TooltipArea/index.d.ts +0 -3
  105. package/dist/types/lib/component/Tooltip/common/TooltipArea/index.d.ts.map +0 -1
  106. package/dist/types/lib/component/Tooltip/common/TooltipArea/types.d.ts +0 -47
  107. package/dist/types/lib/component/Tooltip/common/TooltipArea/types.d.ts.map +0 -1
  108. package/dist/types/lib/component/Tooltip/common/index.d.ts +0 -2
  109. package/dist/types/lib/component/Tooltip/common/index.d.ts.map +0 -1
  110. /package/dist/esm/lib/{component/Tooltip/common/TooltipArea → group/Cards}/types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
@@ -137,6 +137,12 @@ const useContextualMenu = ({ root, wrap = false, typeAheadTimeout, ...props }) =
137
137
  return {
138
138
  ...baseProps,
139
139
  ...getMenuAriaProps(nav, opts),
140
+ // The tree's default menu props dispatch CLOSE on mouse-leave, wiping
141
+ // the keyboard highlight (and collapsing keyboard-opened submenus)
142
+ // while the popup stays visually open — a pointer grazing off the
143
+ // surface would destroy a keyboard user's position. The DISCLOSURE
144
+ // owns open/close for a contextual menu, so neutralise it.
145
+ onMouseLeave: undefined,
140
146
  onKeyDown: (event) => handleMenuKeyDown(event, treeKeyDown),
141
147
  };
142
148
  }, [nav, handleMenuKeyDown]);
@@ -1 +1 @@
1
- {"version":3,"file":"useContextualMenu.js","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/useContextualMenu.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAChC,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,S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C,KAAK;QAChB,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,wEAAwE;QACxE,0EAA0E;QAC1E,4CAA4C;QAC5C,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,eAAe;QACf,YAAY;QACZ,aAAa;QACb,YAAY;KACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"useContextualMenu.js","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/useContextualMenu.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAChC,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAO1D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,iBAAiB,GAAG,CAAC,EACzB,IAAI,EACJ,IAAI,GAAG,KAAK,EACZ,gBAAgB,EAChB,GAAG,KAAK,EACe,EAA2B,EAAE;IACpD,MAAM,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,cAAc,EAAE,wBAAwB,GACzC,GAAG,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,6EAA6E;IAC7E,6EAA6E;IAC7E,oDAAoD;IACpD,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,4BAA4B,EAAY,EAC9C,EAAE,CACH,CAAC;I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SAAS,EAAE,CAAC,KAA0B,EAAE,EAAE,CACxC,iBAAiB,CAAC,KAAK,EAAE,WAAW,CAAC;SACxC,CAAC;IACJ,CAAC,EACD,CAAC,GAAG,EAAE,iBAAiB,CAAC,CACzB,CAAC;IAEF,MAAM,aAAa,GAAG,WAAW,CAC/B,CAAC,IAA8C,EAAE,EAAE,CACjD,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,EAC9B,CAAC,GAAG,CAAC,CACN,CAAC;IAEF,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,IAAqB,EAAE,EAAE,CAAC,CAAC;QAC1B,GAAG,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC;QACzB,GAAG,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC;KAC/B,CAAC,EACF,CAAC,GAAG,CAAC,CACN,CAAC;IAEF,OAAO;QACL,MAAM;QACN,IAAI;QACJ,KAAK;QACL,MAAM;QACN,SAAS;QACT,QAAQ;QACR,kBAAkB;QAClB,OAAO;QACP,YAAY;QACZ,WAAW;QACX,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,wEAAwE;QACxE,0EAA0E;QAC1E,4CAA4C;QAC5C,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,eAAe;QACf,YAAY;QACZ,aAAa;QACb,YAAY;KACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./types.js";
2
+ export { default as useIsMounted } from "./useIsMounted.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { useEffect, useState } from "react";
2
+ /**
3
+ * Reports whether the component has mounted on the client.
4
+ *
5
+ * Returns `false` during server rendering and the initial client render, then
6
+ * `true` after the mount effect runs. Gate client-only output — portals in
7
+ * particular — on this so the server-rendered HTML and the first client render
8
+ * are identical and hydration does not mismatch.
9
+ *
10
+ * @returns `false` until mounted, then `true`.
11
+ * @note Impure — schedules a mount effect that updates component state.
12
+ */
13
+ const useIsMounted = () => {
14
+ const [isMounted, setIsMounted] = useState(false);
15
+ useEffect(() => {
16
+ setIsMounted(true);
17
+ }, []);
18
+ return isMounted;
19
+ };
20
+ export default useIsMounted;
21
+ //# sourceMappingURL=useIsMounted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMounted.js","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/useIsMounted.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5C;;;;;;;;;;GAUG;AACH,MAAM,YAAY,GAAG,GAAuB,EAAE;IAC5C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,8 +1,23 @@
1
1
  /**
2
- * Contextual-menu placements: open toward the trigger's reading-flow (leading)
3
- * edge, top-aligned, flipping alignment then side as space runs out. Logical, so
4
- * it mirrors automatically — resolves to the historical right-start/… order in
5
- * LTR and left-start/… in RTL.
2
+ * ROOT contextual-menu placements: open BELOW the trigger, leading-aligned
3
+ * (design review), flipping to above then to the side as space runs out.
4
+ * Logical, so alignment mirrors automatically (leading = left in LTR, right in
5
+ * RTL). Used by the top-level menu opened from a trigger.
6
+ */
7
+ export const MENU_ROOT_PLACEMENT = [
8
+ { side: "block-end", align: "start" }, // below, leading-aligned (default)
9
+ { side: "block-end", align: "end" }, // horizontal overflow → trailing-aligned
10
+ { side: "block-start", align: "start" }, // vertical overflow → flip above
11
+ { side: "block-start", align: "end" },
12
+ { side: "inline-end", align: "start" }, // no room above/below → to the side
13
+ { side: "inline-start", align: "start" },
14
+ ];
15
+ /**
16
+ * SUBMENU (nested) placements: expand toward the trigger's reading-flow
17
+ * (leading) edge, top-aligned, flipping alignment then side as space runs out —
18
+ * standard cascade behaviour, a submenu opens beside its parent item, not below
19
+ * it. Logical, so it mirrors automatically (right-start… in LTR, left-start… in
20
+ * RTL).
6
21
  */
7
22
  export const MENU_PLACEMENT = [
8
23
  { side: "inline-end", align: "start" }, // right-start LTR / left-start RTL
@@ -1 +1 @@
1
- {"version":3,"file":"readingDirection.js","sourceRoot":"","sources":["../../../../../src/lib/hooks/useWindowFitment/readingDirection.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAA6B;IACtD,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,mCAAmC;IAC3E,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,uCAAuC;IAC7E,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,kCAAkC;IAC5E,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE;IACtC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ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E,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,aAAa;CACxD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAwB;IACpD,YAAY;IACZ,WAAW;IACX,cAAc;IACd,aAAa;CACd,CAAC"}
@@ -3,8 +3,8 @@ import type { BreadcrumbsProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
5
  * Breadcrumbs are a navigational aid that shows users their current location
6
- * within a site's information hierarchy. They provide a clear path from the
7
- * root of the information hierarchy (IA) to the current page, allowing users
6
+ * within a site's information architecture. They provide a clear path from the
7
+ * root of the information architecture (IA) to the current page, allowing users
8
8
  * to quickly understand where they are and easily navigate back to previous
9
9
  * levels in the IA. Breadcrumbs should reflect the IA, not the user's path
10
10
  * they took to arrive at the current page. They work best in websites or
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI;kJAcP,SAAS,GAAG,KAAK,CAAC,YAAY;;CA2BhC,CAAC;AAIF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI;kJAcP,SAAS,GAAG,KAAK,CAAC,YAAY;;CA4ChC,CAAC;AAIF,eAAe,IAAI,CAAC"}
@@ -22,6 +22,11 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
22
22
  current?: boolean;
23
23
  /**
24
24
  * Custom separator character or element
25
+ *
26
+ * @remarks
27
+ * For external (non-Canonical) products only. Not designed/approved for
28
+ * Canonical products; Canonical products must use the default "/"
29
+ * separator.
25
30
  * @default "/"
26
31
  */
27
32
  separator?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,aAAa,CAAC,EAAE,IAAI;IACpE;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,aAAa,CAAC,EAAE,IAAI;IACpE;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC"}
@@ -6,6 +6,11 @@ import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
6
6
  *
7
7
  * Adds breadcrumb-specific properties while maintaining
8
8
  * compatibility with the unified navigation type.
9
+ *
10
+ * @remarks
11
+ * The per-item `Component` substitution is for external (non-Canonical)
12
+ * products only. Not designed/approved for Canonical products; Canonical
13
+ * products must use the default Breadcrumbs.Item.
9
14
  */
10
15
  export interface BreadcrumbItem extends Item {
11
16
  /**
@@ -30,10 +35,20 @@ export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
30
35
  /**
31
36
  * Navigation items to display (WD405 Item type)
32
37
  * Each item is spread onto Breadcrumbs.Item or custom Component
38
+ *
39
+ * @remarks
40
+ * Per-item `Component` substitution is for external (non-Canonical)
41
+ * products only. Not designed/approved for Canonical products; Canonical
42
+ * products must use the default Breadcrumbs.Item.
33
43
  */
34
44
  items: BreadcrumbItem[];
35
45
  /**
36
46
  * Custom separator between items
47
+ *
48
+ * @remarks
49
+ * For external (non-Canonical) products only. Not designed/approved for
50
+ * Canonical products; Canonical products must use the default "/"
51
+ * separator.
37
52
  * @default "/"
38
53
  */
39
54
  separator?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI;IAC1C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE;;;OAGG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAClC,KAAK,EAAE,gBAAgB,KACpB,YAAY,CAAC,GAAG;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI;IAC1C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE;;;;;;;;OAQG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAClC,KAAK,EAAE,gBAAgB,KACpB,YAAY,CAAC,GAAG;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,GAAI,0GAYb,KAAK,KAAG,KAAK,CAAC,YAyDhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,GAAI,0GAYb,KAAK,KAAG,KAAK,CAAC,YA2DhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { IconName } from "@canonical/ds-assets";
1
2
  import type { ModifierFamily } from "@canonical/ds-types";
2
3
  import type { ButtonHTMLAttributes, ReactNode } from "react";
3
4
  export interface BaseProps {
@@ -33,11 +34,12 @@ export interface BaseProps {
33
34
  */
34
35
  variant?: "link";
35
36
  /**
36
- * Icon element to display before the label. The button has a single,
37
- * leading icon slot — the right-side icon was removed when the select and
38
- * dropdown affordances became their own components.
37
+ * Name of the design-system icon to display before the label, rendered via
38
+ * the `Icon` component (an `@canonical/ds-assets` sprite). The button has a
39
+ * single, leading icon slot — the right-side icon was removed when the
40
+ * select and dropdown affordances became their own components.
39
41
  */
40
- icon?: ReactNode;
42
+ icon?: IconName;
41
43
  /**
42
44
  * Whether the button is in a loading (busy) state. Replaces the leading icon
43
45
  * with a Spinner, marks the button `aria-busy`, and disables interaction so
@@ -47,5 +49,5 @@ export interface BaseProps {
47
49
  loading?: boolean;
48
50
  }
49
51
  type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
50
- export default Props;
52
+ export type { Props as default };
51
53
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,EAAE,CAAC,EA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AO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjE,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
@@ -8,6 +8,13 @@ import "./styles.css";
8
8
  * predictable structure that allows the user to compare attributes across data
9
9
  * objects.
10
10
  *
11
+ * A Card is always a grid participant: `.ds.card` is a ROW SUBGRID that spans
12
+ * four fixed section tracks (image / header / content / footer), inheriting them
13
+ * from its parent grid. Standalone (wrapped in a `.grid`) it lays its own
14
+ * sections out on those tracks; inside a `Cards` group it shares the group's
15
+ * tracks so the same sections line up across every card in the row. See the
16
+ * `Cards` group component for the full layout model.
17
+ *
11
18
  * `import { Card } from "@canonical/react-ds-global";`
12
19
  *
13
20
  * @implements ds:global.component.card
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAQtB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI;wCAIP,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;;;;;CAOhC,CAAC;AAOF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAQtB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,IAAI;wCAIP,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;;;;;CAOhC,CAAC;AAOF,eAAe,IAAI,CAAC"}
@@ -3,7 +3,7 @@ import type { FooterProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
5
  * Footer component for Card. A padded content-bearing section pinned to the
6
- * bottom of the card, for actions or supplementary information.
6
+ * bottom of the card, for tags and labels.
7
7
  *
8
8
  * @implements ds:global.subcomponent.card-footer
9
9
  */
@@ -5,7 +5,7 @@ import type { HTMLAttributes, ReactNode } from "react";
5
5
  * @implements ds:global.subcomponent.card-footer
6
6
  */
7
7
  export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
8
- /** Required child contents */
8
+ /** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
9
9
  children: ReactNode;
10
10
  }
11
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,gFAAgF;IAChF,QAAQ,EAAE,SAAS,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ContextualMenu/ContextualMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,mBAAmB,EAAY,MAAM,YAAY,CAAC;AAChE,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc,GAAI,+IAerB,mBAAmB,KAAG,KAAK,CAAC,YA8I9B,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ContextualMenu/ContextualMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,mBAAmB,EAAY,MAAM,YAAY,CAAC;AAChE,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc,GAAI,+IAerB,mBAAmB,KAAG,KAAK,CAAC,YAsJ9B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,OAAO,CAAC;AAGvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,GAAI,UAAU;IAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;CAAE,KAAG,YActD,CAAC;AA8HF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,KAAK,YAAY,EAAsC,MAAM,OAAO,CAAC;AAO9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,GAAI,UAAU;IAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;CAAE,KAAG,YActD,CAAC;AAkJF,eAAe,OAAO,CAAC"}
@@ -4,7 +4,7 @@ import type { TooltipProps } from "./types.js";
4
4
  /**
5
5
  * The Tooltip component renders the message part of a tooltip. It has no
6
6
  * interactivity or positioning logic and is generally consumed via
7
- * TooltipArea or the withTooltip HOC.
7
+ * the withTooltip HOC.
8
8
  *
9
9
  * @implements ds:global.component.tooltip
10
10
  */
@@ -1,4 +1,3 @@
1
- export * from "./common/index.js";
2
1
  export { default as Tooltip } from "./Tooltip.js";
3
2
  export type * from "./types.js";
4
3
  export { default as withTooltip } from "./withTooltip.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,4 +1,64 @@
1
1
  import type { CSSProperties, FocusEventHandler, PointerEventHandler, ReactNode, RefObject } from "react";
2
+ import type { UseDisclosureProps } from "../../hooks/index.js";
3
+ /**
4
+ * The full option surface of the tooltip engine that `withTooltip` owns:
5
+ * everything the wrapped component's tooltip accepts, including the target
6
+ * `children` and the `Message`. Consumers use {@link WithTooltipOptions}
7
+ * (this minus `children`/`Message`); this internal shape exists so the engine
8
+ * and the HOC share one prop definition.
9
+ */
10
+ export interface TooltipEngineProps extends Omit<UseDisclosureProps, "mode"> {
11
+ /**
12
+ * The target element to which the tooltip should be attached.
13
+ * This can be any valid React element.
14
+ */
15
+ children: ReactNode;
16
+ /**
17
+ * The content of the tooltip. This can be a string or any valid React node.
18
+ */
19
+ Message: ReactNode;
20
+ /**
21
+ * An optional leading icon for the tooltip, rendered before the message
22
+ * (Figma: 16px glyph, dimension-100 gap). Purely decorative.
23
+ */
24
+ icon?: ReactNode;
25
+ /**
26
+ * Force the tooltip open (or closed), overriding hover/focus. When a boolean
27
+ * is passed the tooltip is fully controlled and ignores pointer/keyboard —
28
+ * useful for stories, visual tests, or driving the tooltip from outside.
29
+ * Leave undefined for the default hover behaviour.
30
+ */
31
+ open?: boolean;
32
+ /** Styles applied to the tooltip area */
33
+ style?: CSSProperties;
34
+ /** Class name applied to the tooltip area */
35
+ className?: string;
36
+ /** ID applied to the target element */
37
+ targetElementId?: string;
38
+ /** Class name applied to the target element */
39
+ targetElementClassName?: string;
40
+ /** Style object applied to the target element */
41
+ targetElementStyle?: CSSProperties;
42
+ /** Class name applied to the tooltip/message element */
43
+ messageElementClassName?: string;
44
+ /** Styles applied to the tooltip/message element */
45
+ messageElementStyle?: CSSProperties;
46
+ /**
47
+ * The element to which the tooltip should be attached.
48
+ * This can be any valid React element.
49
+ * When not provided, the tooltip will be attached to the `document.body`.
50
+ * No default is provided at the engine signature level in order to prevent the component from failing builds in server environments, where `document` is not available.
51
+ */
52
+ parentElement?: HTMLElement;
53
+ }
54
+ /**
55
+ * The tooltip options for {@link withTooltip}: everything the tooltip engine
56
+ * accepts except the wrapped content and the message (which are supplied
57
+ * separately). Includes `open` (force the tooltip open/closed — handy for
58
+ * stories), `icon`, `preferredDirections`, `distance`, `autoFit`, `maxWidth`,
59
+ * timing, etc.
60
+ */
61
+ export type WithTooltipOptions = Omit<TooltipEngineProps, "children" | "Message">;
2
62
  export interface TooltipProps {
3
63
  id?: string;
4
64
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACT,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,YAAY;IAE3B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,GAAG,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvC,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACT,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAC1E;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,wDAAwD;IACxD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oDAAoD;IACpD,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,kBAAkB,EAClB,UAAU,GAAG,SAAS,CACvB,CAAC;AAEF,MAAM,WAAW,YAAY;IAE3B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,GAAG,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvC,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B"}
@@ -1,17 +1,15 @@
1
1
  import type { ComponentType, FC, ReactNode } from "react";
2
- import type { TooltipAreaProps } from "./common/TooltipArea/types.js";
2
+ import type { WithTooltipOptions } from "./types.js";
3
+ import "./styles.css";
3
4
  /**
4
- * The tooltip options for {@link withTooltip}: everything `TooltipArea` accepts
5
- * except the wrapped content and the message (which are supplied separately).
6
- * Includes `open` (force the tooltip open/closed — handy for stories), `icon`,
7
- * `preferredDirections`, `distance`, `autoFit`, `maxWidth`, timing, etc.
8
- */
9
- export type WithTooltipOptions = Omit<TooltipAreaProps, "children" | "Message">;
10
- /**
11
- * A higher-order component that wraps a component with a tooltip.
12
- * @param Component The component function to wrap. If you need to use a Node instead of a function, use [`TooltipArea`](/?path=/docs/tooltip-withtooltip--docs) instead.
13
- * @param Message The content of the tooltip
14
- * @param popupProps Tooltip options forwarded to the underlying `TooltipArea`
5
+ * A higher-order component that wraps a component with a tooltip. It is the
6
+ * single public tooltip primitive: it owns the engine (hover-mode
7
+ * {@link useDisclosure}, client-only portal, arrow positioning) and renders the
8
+ * wrapped component as the tooltip target.
9
+ * @param Component The component type to wrap.
10
+ * @param Message The content of the tooltip.
11
+ * @param popupProps Tooltip options — positioning, sizing, timing, plus `open`,
12
+ * `icon`, `distance`, `autoFit`, `messageElementStyle`, etc.
15
13
  */
16
14
  declare const withTooltip: <TProps extends object>(Component: ComponentType<TProps>, Message: ReactNode, popupProps?: WithTooltipOptions) => FC<TProps>;
17
15
  export default withTooltip;
@@ -1 +1 @@
1
- {"version":3,"file":"withTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/withTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GAAI,MAAM,SAAS,MAAM,EACxC,WAAW,aAAa,CAAC,MAAM,CAAC,EAChC,SAAS,SAAS,EAClB,aAAY,kBAAuB,KAClC,EAAE,CAAC,MAAM,CAeX,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"withTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/withTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,EAAE,EAEF,SAAS,EACV,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,cAAc,CAAC;AA6HtB;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,GAAI,MAAM,SAAS,MAAM,EACxC,WAAW,aAAa,CAAC,MAAM,CAAC,EAChC,SAAS,SAAS,EAClB,aAAY,kBAAuB,KAClC,EAAE,CAAC,MAAM,CAeX,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { ReactElement } from "react";
2
+ import type { CardsProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * Cards — lays out a set of `Card`s on a shared grid so that not only the cards
6
+ * themselves, but each card's SECTIONS (image, header, content, footer) line up
7
+ * across the row.
8
+ *
9
+ * @remarks
10
+ * **Requires a top-level grid.** `Cards` is a `.subgrid`: it inherits the column
11
+ * tracks of the nearest parent `.grid` rather than defining its own. Wrap it in
12
+ * a `.grid` (e.g. the `grid()` storybook decorator or the `grid` addon param,
13
+ * the same way Accordion or a form field opts in). Outside a grid it degrades to
14
+ * a plain block — still renders, just without column alignment.
15
+ *
16
+ * **Two-level subgrid.** The parent grid supplies the columns; `Cards` inherits
17
+ * them and defines the shared section ROW tracks; each `Card` spans `cardSpan`
18
+ * columns and is itself a row-subgrid, so its sections snap to the shared
19
+ * tracks. See `styles.css` for the full model.
20
+ *
21
+ * **`cardSpan`** is the number of master columns each card spans (not a pixel
22
+ * width) — use multiples of 2/4 so cards tile evenly into the 4/8/12-column
23
+ * responsive grid.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * // inside a `.grid` context (decorator/addon)
28
+ * <Cards cardSpan={4}>
29
+ * <Card>…</Card>
30
+ * <Card>…</Card>
31
+ * <Card>…</Card>
32
+ * </Cards>
33
+ * ```
34
+ *
35
+ * @implements dso:global.group.cards
36
+ * @returns {ReactElement} the Cards group
37
+ */
38
+ declare const Cards: ({ className, children, cardSpan, style, ...props }: CardsProps) => ReactElement;
39
+ export default Cards;
40
+ //# sourceMappingURL=Cards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cards.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/Cards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,KAAK,GAAI,oDAMZ,UAAU,KAAG,YAmBf,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as Cards } from "./Cards.js";
2
+ export type * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ export interface CardsProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** The `Card` elements to lay out. */
4
+ children?: ReactNode;
5
+ /**
6
+ * How many master-grid columns each card spans (NOT a pixel width). Fed to the
7
+ * `--card-span` CSS custom property. Larger spans mean fewer, wider cards per
8
+ * row on the 4/8/12-column responsive grid — e.g. on a 12-column grid `1` = 12
9
+ * per row, `2` = 6, `4` = 3.
10
+ * @default 1
11
+ */
12
+ cardSpan?: number;
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,sCAAsC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,2 +1,3 @@
1
+ export * from "./Cards/index.js";
1
2
  export * from "./KeyboardKeys/index.js";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/group/index.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/group/index.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from "./useContextualMenu/index.js";
2
2
  export * from "./useDelayedToggle/index.js";
3
3
  export * from "./useDisclosure/index.js";
4
+ export * from "./useIsMounted/index.js";
4
5
  export * from "./useResizeObserver/index.js";
5
6
  export * from "./useWindowDimensions/index.js";
6
7
  export * from "./useWindowFitment/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/useContextualMenu.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,iBAAiB,GAAI,4CAKxB,sBAAsB,KAAG,uBA0M3B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"useContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/useContextualMenu.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,iBAAiB,GAAI,4CAKxB,sBAAsB,KAAG,uBAgN3B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./types.js";
2
+ export { default as useIsMounted } from "./useIsMounted.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Result of the `useIsMounted` hook: `false` during server rendering and the
3
+ * initial client render, `true` once the component has mounted.
4
+ */
5
+ export type UseIsMountedResult = boolean;
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { UseIsMountedResult } from "./types.js";
2
+ /**
3
+ * Reports whether the component has mounted on the client.
4
+ *
5
+ * Returns `false` during server rendering and the initial client render, then
6
+ * `true` after the mount effect runs. Gate client-only output — portals in
7
+ * particular — on this so the server-rendered HTML and the first client render
8
+ * are identical and hydration does not mismatch.
9
+ *
10
+ * @returns `false` until mounted, then `true`.
11
+ * @note Impure — schedules a mount effect that updates component state.
12
+ */
13
+ declare const useIsMounted: () => UseIsMountedResult;
14
+ export default useIsMounted;
15
+ //# sourceMappingURL=useIsMounted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMounted.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/useIsMounted.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,YAAY,QAAO,kBAQxB,CAAC;AAEF,eAAe,YAAY,CAAC"}