@canonical/react-ds-global 0.35.0 → 0.37.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 (103) hide show
  1. package/dist/esm/lib/_work_in_progress/Announcement/styles.css +7 -2
  2. package/dist/esm/lib/_work_in_progress/Section/styles.css +5 -5
  3. package/dist/esm/lib/component/Chip/Chip.js +29 -6
  4. package/dist/esm/lib/component/Chip/Chip.js.map +1 -1
  5. package/dist/esm/lib/component/Tooltip/Tooltip.js +6 -2
  6. package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
  7. package/dist/types/lib/_work_in_progress/Announcement/types.d.ts +8 -8
  8. package/dist/types/lib/_work_in_progress/Announcement/types.d.ts.map +1 -1
  9. package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts +5 -3
  10. package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts.map +1 -1
  11. package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts +6 -3
  12. package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts.map +1 -1
  13. package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts +6 -3
  14. package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts.map +1 -1
  15. package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts +6 -3
  16. package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts.map +1 -1
  17. package/dist/types/lib/_work_in_progress/IconSection/types.d.ts +6 -3
  18. package/dist/types/lib/_work_in_progress/IconSection/types.d.ts.map +1 -1
  19. package/dist/types/lib/_work_in_progress/Label/types.d.ts +20 -18
  20. package/dist/types/lib/_work_in_progress/Label/types.d.ts.map +1 -1
  21. package/dist/types/lib/_work_in_progress/Rule/types.d.ts +5 -7
  22. package/dist/types/lib/_work_in_progress/Rule/types.d.ts.map +1 -1
  23. package/dist/types/lib/_work_in_progress/Section/types.d.ts +9 -10
  24. package/dist/types/lib/_work_in_progress/Section/types.d.ts.map +1 -1
  25. package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts +14 -8
  26. package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts.map +1 -1
  27. package/dist/types/lib/_work_in_progress/TSection/types.d.ts +14 -3
  28. package/dist/types/lib/_work_in_progress/TSection/types.d.ts.map +1 -1
  29. package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts +5 -3
  30. package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts.map +1 -1
  31. package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts +5 -3
  32. package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts.map +1 -1
  33. package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts +5 -3
  34. package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts.map +1 -1
  35. package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts +5 -3
  36. package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts.map +1 -1
  37. package/dist/types/lib/component/Accordion/common/Item/types.d.ts +28 -22
  38. package/dist/types/lib/component/Accordion/common/Item/types.d.ts.map +1 -1
  39. package/dist/types/lib/component/Accordion/types.d.ts +8 -6
  40. package/dist/types/lib/component/Accordion/types.d.ts.map +1 -1
  41. package/dist/types/lib/component/Badge/types.d.ts +5 -3
  42. package/dist/types/lib/component/Badge/types.d.ts.map +1 -1
  43. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +12 -10
  44. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
  45. package/dist/types/lib/component/Breadcrumbs/types.d.ts +9 -8
  46. package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
  47. package/dist/types/lib/component/Button/index.d.ts +1 -1
  48. package/dist/types/lib/component/Button/index.d.ts.map +1 -1
  49. package/dist/types/lib/component/Button/types.d.ts +10 -8
  50. package/dist/types/lib/component/Button/types.d.ts.map +1 -1
  51. package/dist/types/lib/component/Card/common/Content/types.d.ts +7 -5
  52. package/dist/types/lib/component/Card/common/Content/types.d.ts.map +1 -1
  53. package/dist/types/lib/component/Card/common/Footer/types.d.ts +7 -5
  54. package/dist/types/lib/component/Card/common/Footer/types.d.ts.map +1 -1
  55. package/dist/types/lib/component/Card/common/Header/types.d.ts +7 -5
  56. package/dist/types/lib/component/Card/common/Header/types.d.ts.map +1 -1
  57. package/dist/types/lib/component/Card/common/Image/types.d.ts +6 -3
  58. package/dist/types/lib/component/Card/common/Image/types.d.ts.map +1 -1
  59. package/dist/types/lib/component/Card/types.d.ts +6 -3
  60. package/dist/types/lib/component/Card/types.d.ts.map +1 -1
  61. package/dist/types/lib/component/Chip/Chip.d.ts +6 -1
  62. package/dist/types/lib/component/Chip/Chip.d.ts.map +1 -1
  63. package/dist/types/lib/component/Chip/types.d.ts +25 -11
  64. package/dist/types/lib/component/Chip/types.d.ts.map +1 -1
  65. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts +7 -0
  66. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts.map +1 -1
  67. package/dist/types/lib/component/ContextualMenu/types.d.ts +4 -3
  68. package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -1
  69. package/dist/types/lib/component/Icon/types.d.ts +6 -8
  70. package/dist/types/lib/component/Icon/types.d.ts.map +1 -1
  71. package/dist/types/lib/component/InlineCode/types.d.ts +6 -3
  72. package/dist/types/lib/component/InlineCode/types.d.ts.map +1 -1
  73. package/dist/types/lib/component/KeyboardKey/types.d.ts +6 -3
  74. package/dist/types/lib/component/KeyboardKey/types.d.ts.map +1 -1
  75. package/dist/types/lib/component/Popover/types.d.ts +10 -3
  76. package/dist/types/lib/component/Popover/types.d.ts.map +1 -1
  77. package/dist/types/lib/component/Tabs/common/Item/types.d.ts +4 -0
  78. package/dist/types/lib/component/Tabs/common/Item/types.d.ts.map +1 -1
  79. package/dist/types/lib/component/Tabs/types.d.ts +10 -8
  80. package/dist/types/lib/component/Tabs/types.d.ts.map +1 -1
  81. package/dist/types/lib/component/Tile/common/Content/types.d.ts +9 -7
  82. package/dist/types/lib/component/Tile/common/Content/types.d.ts.map +1 -1
  83. package/dist/types/lib/component/Tile/common/Header/types.d.ts +9 -7
  84. package/dist/types/lib/component/Tile/common/Header/types.d.ts.map +1 -1
  85. package/dist/types/lib/component/Tile/types.d.ts +10 -8
  86. package/dist/types/lib/component/Tile/types.d.ts.map +1 -1
  87. package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
  88. package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
  89. package/dist/types/lib/component/Tooltip/types.d.ts +11 -10
  90. package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
  91. package/dist/types/lib/group/Cards/types.d.ts +6 -3
  92. package/dist/types/lib/group/Cards/types.d.ts.map +1 -1
  93. package/dist/types/lib/group/KeyboardKeys/types.d.ts +6 -3
  94. package/dist/types/lib/group/KeyboardKeys/types.d.ts.map +1 -1
  95. package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts +10 -8
  96. package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts.map +1 -1
  97. package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts +18 -16
  98. package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts.map +1 -1
  99. package/dist/types/lib/pattern/Timeline/types.d.ts +10 -8
  100. package/dist/types/lib/pattern/Timeline/types.d.ts.map +1 -1
  101. package/dist/types/lib/subcomponent/Spinner/types.d.ts +10 -8
  102. package/dist/types/lib/subcomponent/Spinner/types.d.ts.map +1 -1
  103. package/package.json +16 -16
@@ -62,11 +62,16 @@
62
62
  display: flex;
63
63
  flex: 1 1 auto;
64
64
  flex-direction: column;
65
- gap: var(--dimension-050);
65
+ gap: 0;
66
66
  min-width: 0;
67
67
  }
68
68
 
69
69
  & .heading {
70
- font-weight: var(--typography-text-primary-bold-font-weight);
70
+ font-weight: var(--typography-heading-6-font-weight);
71
+ /*
72
+ TODO: Uncomment after line-height bug in typography tokens is addressed
73
+ See https://github.com/canonical/pragma/pull/961#issuecomment-5421532811
74
+ */
75
+ /* line-height: var(--typography-heading-6-line-height); */
71
76
  }
72
77
  }
@@ -1,8 +1,8 @@
1
1
  /* Component tokens — sourced from @canonical/design-tokens */
2
2
  :root {
3
- --section-padding-bottom-spacing-shallow: var(--spacing-vertical-xlarge);
4
- --section-padding-bottom-spacing-default: var(--spacing-vertical-xxlarge);
5
- --section-padding-bottom-spacing-deep: var(--spacing-vertical-xxxlarge);
3
+ --section-padding-bottom-spacing-shallow: var(--dimension-300);
4
+ --section-padding-bottom-spacing-default: var(--dimension-400);
5
+ --section-padding-bottom-spacing-deep: var(--dimension-800);
6
6
  --section-padding-bottom-spacing-hero: var(
7
7
  --section-padding-bottom-spacing-default
8
8
  );
@@ -14,11 +14,11 @@
14
14
  );
15
15
  --section-padding-top-spacing-shallow: 0px;
16
16
  --section-padding-top-spacing-deep: 0px;
17
- --section-padding-top-spacing-hero: var(--spacing-vertical-xlarge);
17
+ --section-padding-top-spacing-hero: var(--dimension-200);
18
18
  --section-border-start-color: var(--color-border-muted);
19
19
  --section-border-start-style: solid;
20
20
  --section-border-start-width: var(--rule-height);
21
- --section-border-start-width-with-padding: var(--spacing-vertical-small);
21
+ --section-border-start-width-with-padding: var(--dimension-100);
22
22
  }
23
23
 
24
24
  .ds.section {
@@ -1,17 +1,40 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "./styles.css";
3
3
  const componentCssClassName = "ds chip";
4
4
  /**
5
5
  * A chip is a compact, interactive component used to represent an attribute,
6
6
  * entity, or filter while facilitating secondary actions.
7
7
  *
8
+ * The root element is variable: a chip with an `onClick` renders a `<button>`
9
+ * (and extends button props), one without renders a `<span>` (and extends span
10
+ * props). Each branch spreads only the native props of its own root — the
11
+ * DS-owned props are destructured out first so none of them leak to the DOM.
12
+ *
8
13
  * @implements ds:global.component.chip
9
14
  */
10
- const Chip = ({ criticality, release, lead, value, onClick, onDismiss, id, className, style, ...props }) => {
11
- const Container = onClick ? "button" : "span";
12
- return (_jsxs(Container, { id: id, style: style, className: [componentCssClassName, criticality, release, className]
13
- .filter(Boolean)
14
- .join(" "), onClick: onClick, ...props, children: [lead && _jsx("span", { className: "lead", children: lead }), value && _jsx("span", { className: "value", children: value }), onDismiss && (_jsx("button", { type: "button", className: "dismiss", "aria-label": "Dismiss", onClick: () => onDismiss() }))] }));
15
+ const Chip = (props) => {
16
+ const className = [
17
+ componentCssClassName,
18
+ props.criticality,
19
+ props.release,
20
+ props.className,
21
+ ]
22
+ .filter(Boolean)
23
+ .join(" ");
24
+ const content = (_jsxs(_Fragment, { children: [props.lead && _jsx("span", { className: "lead", children: props.lead }), props.value && _jsx("span", { className: "value", children: props.value }), props.onDismiss && (_jsx("button", { type: "button", className: "dismiss", "aria-label": "Dismiss", onClick: () => props.onDismiss?.() }))] }));
25
+ // Interactive chip → <button>. Its native button props (including onClick)
26
+ // are forwarded after the DS-owned props are stripped off.
27
+ if (props.onClick) {
28
+ const { criticality: _criticality, release: _release, lead: _lead, value: _value, onDismiss: _onDismiss, className: _className, ...rest } = props;
29
+ return (
30
+ // Default type="button" so a Chip inside a <form> doesn't submit it on
31
+ // click (the native default is "submit"); placed before the spread so a
32
+ // caller can still override it via the native `type` prop.
33
+ _jsx("button", { type: "button", className: className, ...rest, children: content }));
34
+ }
35
+ // Static chip → <span>.
36
+ const { criticality: _criticality, release: _release, lead: _lead, value: _value, onDismiss: _onDismiss, onClick: _onClick, className: _className, ...rest } = props;
37
+ return (_jsx("span", { className: className, ...rest, children: content }));
15
38
  };
16
39
  export default Chip;
17
40
  //# sourceMappingURL=Chip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAGtB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;;;GAKG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,WAAW,EACX,OAAO,EACP,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,EAAE,EACF,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACM,EAAsB,EAAE;IACtC,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,CACL,MAAC,SAAS,IACR,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,CAAC,qBAAqB,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,CAAC;aAChE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,EACZ,OAAO,EAAE,OAAO,KACZ,KAAK,aAER,IAAI,IAAI,eAAM,SAAS,EAAC,MAAM,YAAE,IAAI,GAAQ,EAC5C,KAAK,IAAI,eAAM,SAAS,EAAC,OAAO,YAAE,KAAK,GAAQ,EAC/C,SAAS,IAAI,CACZ,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,SAAS,gBACR,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,GAC1B,CACH,IACS,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAGtB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;;;;;;;;GAUG;AACH,MAAM,IAAI,GAAG,CAAC,KAAoB,EAAsB,EAAE;IACxD,MAAM,SAAS,GAAG;QAChB,qBAAqB;QACrB,KAAK,CAAC,WAAW;QACjB,KAAK,CAAC,OAAO;QACb,KAAK,CAAC,SAAS;KAChB;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,MAAM,OAAO,GAAG,CACd,8BACG,KAAK,CAAC,IAAI,IAAI,eAAM,SAAS,EAAC,MAAM,YAAE,KAAK,CAAC,IAAI,GAAQ,EACxD,KAAK,CAAC,KAAK,IAAI,eAAM,SAAS,EAAC,OAAO,YAAE,KAAK,CAAC,KAAK,GAAQ,EAC3D,KAAK,CAAC,SAAS,IAAI,CAClB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,SAAS,gBACR,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,GAClC,CACH,IACA,CACJ,CAAC;IAEF,2EAA2E;IAC3E,2DAA2D;IAC3D,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,EACJ,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,UAAU,EACrB,SAAS,EAAE,UAAU,EACrB,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;QACV,OAAO;QACL,uEAAuE;QACvE,wEAAwE;QACxE,2DAA2D;QAC3D,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YACjD,OAAO,GACD,CACV,CAAC;IACJ,CAAC;IAED,wBAAwB;IACxB,MAAM,EACJ,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,UAAU,EACrB,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IACV,OAAO,CACL,eAAM,SAAS,EAAE,SAAS,KAAM,IAAI,YACjC,OAAO,GACH,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -10,8 +10,12 @@ const componentCssClassName = "ds tooltip contrasted";
10
10
  *
11
11
  * @implements ds:global.component.tooltip
12
12
  */
13
- const Tooltip = ({ id, children, icon, className, style, ref, isOpen = false, zIndex, onPointerEnter, onFocus, }) => {
14
- return (_jsx("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ref: ref, id: id, "aria-hidden": !isOpen, onPointerEnter: onPointerEnter, onFocus: onFocus, role: "tooltip", style: {
13
+ const Tooltip = ({ children, icon, className, style, isOpen = false, zIndex, ...props }) => {
14
+ return (
15
+ // Native props (id, ref, onPointerEnter, onFocus, …) are spread first; the
16
+ // DS-controlled attributes (role, aria-hidden, merged className/style) come
17
+ // after so they win.
18
+ _jsx("div", { ...props, className: [componentCssClassName, className].filter(Boolean).join(" "), role: "tooltip", "aria-hidden": !isOpen, style: {
15
19
  ...style,
16
20
  visibility: isOpen ? "visible" : "hidden",
17
21
  zIndex,
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAGtB,8EAA8E;AAC9E,4CAA4C;AAC5C,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,KAAK,EACL,GAAG,EACH,MAAM,GAAG,KAAK,EACd,MAAM,EACN,cAAc,EACd,OAAO,GACM,EAAsB,EAAE;IACrC,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,iBACO,CAAC,MAAM,EACpB,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,EACd,KAAK,EAAE;YACL,GAAG,KAAK;YACR,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;YACzC,MAAM;SACP,YAID,gBAAM,SAAS,EAAC,SAAS,aAEtB,IAAI,CAAC,CAAC,CAAC,CACN,eAAM,SAAS,EAAC,MAAM,iBAAa,MAAM,YACtC,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,EACR,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAQ,IACnC,GACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAGtB,8EAA8E;AAC9E,4CAA4C;AAC5C,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,GAAG,KAAK,EACd,MAAM,EACN,GAAG,KAAK,EACK,EAAsB,EAAE;IACrC,OAAO;IACL,2EAA2E;IAC3E,4EAA4E;IAC5E,qBAAqB;IACrB,iBACM,KAAK,EACT,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,IAAI,EAAC,SAAS,iBACD,CAAC,MAAM,EACpB,KAAK,EAAE;YACL,GAAG,KAAK;YACR,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;YACzC,MAAM;SACP,YAID,gBAAM,SAAS,EAAC,SAAS,aAEtB,IAAI,CAAC,CAAC,CAAC,CACN,eAAM,SAAS,EAAC,MAAM,iBAAa,MAAM,YACtC,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,EACR,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAQ,IACnC,GACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,9 +1,6 @@
1
1
  import type { ModifierFamily } from "@canonical/ds-types";
2
- import type { HTMLAttributes, ReactNode } from "react";
3
- /**
4
- * Props for the `Announcement` component.
5
- */
6
- export interface AnnouncementProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
2
+ import type { ComponentProps, ReactNode } from "react";
3
+ type OwnProps = {
7
4
  /**
8
5
  * Criticality modifier — the type of announcement. Drives the icon,
9
6
  * side-bar colour, background, and text treatment via the criticality
@@ -18,7 +15,10 @@ export interface AnnouncementProps extends Omit<HTMLAttributes<HTMLDivElement>,
18
15
  heading?: ReactNode;
19
16
  /** The announcement body — its detailed content. */
20
17
  children: ReactNode;
21
- /** Additional CSS class names. */
22
- className?: string;
23
- }
18
+ };
19
+ /**
20
+ * Props for the `Announcement` component.
21
+ */
22
+ export type AnnouncementProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
23
+ export {};
24
24
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Announcement/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACxD;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C,0DAA0D;IAC1D,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;IAEpB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Announcement/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C,0DAA0D;IAC1D,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,10 +1,12 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface CategoryProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
5
  /** Category title */
6
6
  title?: string;
7
7
  /** List of items to display */
8
8
  items: string[];
9
- }
9
+ };
10
+ export type CategoryProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
11
+ export {};
10
12
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/_work_in_progress/CategoriesSection/common/Category/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/_work_in_progress/CategoriesSection/common/Category/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,9 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface CategoriesSectionProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ReactNode } from "react";
2
+ import type { TSectionProps } from "../TSection/types.js";
3
+ type OwnProps = {
3
4
  /** Content to render inside the component */
4
5
  children?: ReactNode;
5
- }
6
+ };
7
+ export type CategoriesSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
8
+ export {};
6
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/CategoriesSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/CategoriesSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAC3C,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,9 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface ChatSectionProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ReactNode } from "react";
2
+ import type { TSectionProps } from "../TSection/types.js";
3
+ type OwnProps = {
3
4
  /** Content to render inside the component */
4
5
  children?: ReactNode;
5
- }
6
+ };
7
+ export type ChatSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
8
+ export {};
6
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/ChatSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/ChatSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,9 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface DescriptionSectionProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ReactNode } from "react";
2
+ import type { TSectionProps } from "../TSection/types.js";
3
+ type OwnProps = {
3
4
  /** Content to render inside the component */
4
5
  children?: ReactNode;
5
- }
6
+ };
7
+ export type DescriptionSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
8
+ export {};
6
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/DescriptionSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtC,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/DescriptionSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAC5C,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,9 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface IconSectionProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ReactNode } from "react";
2
+ import type { TSectionProps } from "../TSection/types.js";
3
+ type OwnProps = {
3
4
  /** Content to render inside the component */
4
5
  children?: ReactNode;
5
- }
6
+ };
7
+ export type IconSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
8
+ export {};
6
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/IconSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/IconSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,21 +1,6 @@
1
1
  import type { ModifierFamily } from "@canonical/ds-types";
2
- import type { HTMLAttributes, ReactNode } from "react";
3
- /**
4
- * Props for the Label component
5
- *
6
- * @implements ds:global.component.label
7
- *
8
- * Anatomy (from DSL):
9
- * - layout.display: inline
10
- * - typography.size: font/size/label
11
- * - typography.weight: font/weight/medium
12
- *
13
- * Modifier families (from DSL):
14
- * - anticipation: constructive, caution, destructive
15
- * - importance: primary, secondary, tertiary
16
- * - criticality: success, error, warning, information
17
- */
18
- export interface LabelProps extends HTMLAttributes<HTMLSpanElement> {
2
+ import type { ComponentProps, ReactNode } from "react";
3
+ type OwnProps = {
19
4
  /**
20
5
  * The label text content
21
6
  */
@@ -50,5 +35,22 @@ export interface LabelProps extends HTMLAttributes<HTMLSpanElement> {
50
35
  * - failed: Terminal failure
51
36
  */
52
37
  lifecycle?: ModifierFamily<"lifecycle">;
53
- }
38
+ };
39
+ /**
40
+ * Props for the Label component
41
+ *
42
+ * @implements ds:global.component.label
43
+ *
44
+ * Anatomy (from DSL):
45
+ * - layout.display: inline
46
+ * - typography.size: font/size/label
47
+ * - typography.weight: font/weight/medium
48
+ *
49
+ * Modifier families (from DSL):
50
+ * - anticipation: constructive, caution, destructive
51
+ * - importance: primary, secondary, tertiary
52
+ * - criticality: success, error, warning, information
53
+ */
54
+ export type LabelProps = OwnProps & Omit<ComponentProps<"span">, keyof OwnProps>;
55
+ export {};
54
56
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Label/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,eAAe,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACzC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Label/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,9 +1,7 @@
1
- import type { HTMLAttributes } from "react";
1
+ import type { ComponentProps } from "react";
2
2
  /**
3
- We have used the `HTMLDivElement` as a default props base.
4
- If your component is based on a different HTML element, please update it accordingly.
5
- See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
6
- */
7
- export interface RuleProps extends HTMLAttributes<HTMLHRElement> {
8
- }
3
+ * Props for the Rule component. The rule has no DS-owned props of its own — it
4
+ * is a styled `<hr>` — so it simply accepts every native `<hr>` prop.
5
+ */
6
+ export type RuleProps = ComponentProps<"hr">;
9
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Rule/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;;EAIE;AACF,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,aAAa,CAAC;CAAG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Rule/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC"}
@@ -1,14 +1,7 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
2
  import type { SECTION_SPACING } from "./constants.js";
3
3
  export type SectionSpacing = (typeof SECTION_SPACING)[number];
4
- /**
5
- We have used the `HTMLDivElement` as a default props base.
6
- If your component is based on a different HTML element, please update it accordingly.
7
- See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
8
- */
9
- export interface SectionProps extends HTMLAttributes<HTMLDivElement> {
10
- /** Additional CSS classes */
11
- className?: string;
4
+ type OwnProps = {
12
5
  /** Child elements */
13
6
  children: ReactNode;
14
7
  /**
@@ -18,5 +11,11 @@ export interface SectionProps extends HTMLAttributes<HTMLDivElement> {
18
11
  spacing?: SectionSpacing;
19
12
  /** Whether the section has a top border */
20
13
  bordered?: boolean;
21
- }
14
+ };
15
+ /**
16
+ * Props for the Section component, extending the native props of its
17
+ * `<section>` root.
18
+ */
19
+ export type SectionProps = OwnProps & Omit<ComponentProps<"section">, keyof OwnProps>;
20
+ export {};
22
21
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Section/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D;;;;EAIE;AACF,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;MAGE;IACF,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Section/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,KAAK,QAAQ,GAAG;IACd,qBAAqB;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;MAGE;IACF,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,10 +1,5 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- /**
3
- We have used the `HTMLDivElement` as a default props base.
4
- If your component is based on a different HTML element, please update it accordingly.
5
- See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
6
- */
7
- export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, "href" | "tabIndex"> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
8
3
  /** The contents of the skip link itself */
9
4
  children?: ReactNode;
10
5
  /**
@@ -12,5 +7,16 @@ export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, "
12
7
  * @default "main"
13
8
  * */
14
9
  mainId?: string;
15
- }
10
+ };
11
+ /**
12
+ * Props for the SkipLink component, extending the native props of its `<a>`
13
+ * root.
14
+ *
15
+ * The native `href` and `tabIndex` are deliberately excluded: the DS drives
16
+ * both — `href` is derived from `mainId` (`#${mainId}`) so the link always
17
+ * targets the main content element, and `tabIndex` is fixed at `0` so the skip
18
+ * link stays reachable as the first stop in the tab order.
19
+ */
20
+ export type SkipLinkProps = OwnProps & Omit<ComponentProps<"a">, keyof OwnProps | "href" | "tabIndex">;
21
+ export {};
16
22
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/SkipLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;EAIE;AACF,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACpE,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/SkipLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC"}
@@ -1,6 +1,17 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface TSectionProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ /**
6
+ * The section heading, rendered into the section's `<h2>`.
7
+ *
8
+ * `title` is DS-owned here and deliberately shadows the native `title`
9
+ * attribute: it is consumed as the heading and never forwarded to the DOM,
10
+ * so a `TSection` cannot also carry a native `title` tooltip.
11
+ * @default "Section title"
12
+ */
13
+ title?: string;
14
+ };
15
+ export type TSectionProps = OwnProps & Omit<ComponentProps<"section">, keyof OwnProps>;
16
+ export {};
6
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/TSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/TSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface ApplicationLayoutProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ export type ApplicationLayoutProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
7
+ export {};
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAC3C,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface GridCardProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ export type GridCardProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
7
+ export {};
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface InnerGridDemoProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ export type InnerGridDemoProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
7
+ export {};
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GACvC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface SettingsViewProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
5
  /** Title displayed at the top of the settings view */
6
6
  title?: string;
7
- }
7
+ };
8
+ export type SettingsViewProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
9
+ export {};
8
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,24 +1,5 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- /**
3
- * Props for the Accordion.Item subcomponent
4
- *
5
- * @implements ds:global.subcomponent.accordion-item
6
- *
7
- * Anatomy (from DSL):
8
- * - layout.type: stack
9
- * - layout.direction: vertical
10
- * - edges:
11
- * - header tab (slotName: header, cardinality: 1)
12
- * - control (chevron, cardinality: 1)
13
- * - heading (slotName: default, cardinality: 1)
14
- * - content panel (slotName: default, cardinality: 1)
15
- *
16
- * Rendered with native `<details>`/`<summary>`, so the browser owns the
17
- * open/close state and keyboard interaction. `expanded` (with
18
- * `onExpandedChange`) is an optional controlled overlay on the native `open`
19
- * attribute.
20
- */
21
- export interface ItemProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onToggle"> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
22
3
  /**
23
4
  * The accordion item's heading. Pass a node — including the heading element
24
5
  * (e.g. `<h3>…</h3>`) at the level appropriate for the page's document
@@ -41,5 +22,30 @@ export interface ItemProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onT
41
22
  * Callback fired when the expanded state changes (from the native toggle).
42
23
  */
43
24
  onExpandedChange?: (expanded: boolean) => void;
44
- }
25
+ };
26
+ /**
27
+ * Props for the Accordion.Item subcomponent
28
+ *
29
+ * @implements ds:global.subcomponent.accordion-item
30
+ *
31
+ * Anatomy (from DSL):
32
+ * - layout.type: stack
33
+ * - layout.direction: vertical
34
+ * - edges:
35
+ * - header tab (slotName: header, cardinality: 1)
36
+ * - control (chevron, cardinality: 1)
37
+ * - heading (slotName: default, cardinality: 1)
38
+ * - content panel (slotName: default, cardinality: 1)
39
+ *
40
+ * Rendered with native `<details>`/`<summary>`, so the browser owns the
41
+ * open/close state and keyboard interaction. `expanded` (with
42
+ * `onExpandedChange`) is an optional controlled overlay on the native `open`
43
+ * attribute.
44
+ *
45
+ * The native `open` and `onToggle` are deliberately excluded: the DS drives
46
+ * `open` from `expanded` and fires `onExpandedChange` from the native toggle,
47
+ * so consumers control open state through those props, not the raw attributes.
48
+ */
49
+ export type ItemProps = OwnProps & Omit<ComponentProps<"details">, keyof OwnProps | "open" | "onToggle">;
50
+ export {};
45
51
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Accordion/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAC5D;;;;;OAKG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Accordion/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAC9B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC"}