@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
@@ -1,18 +1,20 @@
1
- import type { HTMLAttributes, ReactElement } from "react";
1
+ import type { ComponentProps, ReactElement } from "react";
2
2
  import type { ItemProps } from "./common/Item/types.js";
3
- /**
4
- * Props for the Accordion component
5
- */
6
- export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
3
+ type OwnProps = {
7
4
  /**
8
5
  * Accordion.Item elements to render
9
6
  */
10
7
  children: ReactElement<ItemProps> | ReactElement<ItemProps>[];
11
- }
8
+ };
9
+ /**
10
+ * Props for the Accordion component
11
+ */
12
+ export type AccordionProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
13
  /**
13
14
  * Accordion component type with attached subcomponents
14
15
  */
15
16
  export type AccordionComponent = ((props: AccordionProps) => ReactElement) & {
16
17
  Item: (props: ItemProps) => ReactElement;
17
18
  };
19
+ export {};
18
20
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;CAC/D;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,KAAK,YAAY,CAAC,GAAG;IAC3E,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GACnC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,KAAK,YAAY,CAAC,GAAG;IAC3E,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ModifierFamily } from "@canonical/ds-types";
2
2
  import type { HumanizeNumberOptions, PluralizeOptions } from "@canonical/utils";
3
- import type { HTMLAttributes } from "react";
4
- export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
3
+ import type { ComponentProps } from "react";
4
+ type OwnProps = {
5
5
  /**
6
6
  * Numeric value to be displayed.
7
7
  */
@@ -24,7 +24,8 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
24
24
  * Options for the pluralization of the item being counted.
25
25
  */
26
26
  pluralizeOptions?: PluralizeOptions;
27
- }
27
+ };
28
+ export type BadgeProps = OwnProps & Omit<ComponentProps<"span">, keyof OwnProps>;
28
29
  export type UseBadgeProps = Pick<BadgeProps, "value" | "humanizeOptions" | "pluralizeOptions">;
29
30
  /**
30
31
  * Result of the useBadge hook.
@@ -36,4 +37,5 @@ export interface UseBadgeResult {
36
37
  /** Title attribute, for displaying additional context about the badge on hover */
37
38
  title: string;
38
39
  }
40
+ export {};
39
41
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,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G,kBAAkB,CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,15 +1,8 @@
1
1
  import type { Item } from "@canonical/ds-types";
2
- import type { ComponentType, HTMLAttributes, ReactNode } from "react";
2
+ import type { ComponentProps, ComponentType, ReactNode } from "react";
3
3
  import type { LinkComponentProps } from "../../../../types/link.js";
4
4
  export type { LinkComponentProps };
5
- /**
6
- * Props for the Breadcrumbs.Item subcomponent
7
- *
8
- * Extends navigation Item (WD405) with breadcrumb-specific props.
9
- *
10
- * @implements ds:global.subcomponent.breadcrumbs-item
11
- */
12
- export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
5
+ type OwnProps = Item & {
13
6
  /**
14
7
  * The link content (text or element)
15
8
  * Falls back to `label` from Item if not provided
@@ -41,5 +34,14 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
41
34
  * e.g. A specialized renderer for complex items.
42
35
  */
43
36
  Component?: ComponentType<any>;
44
- }
37
+ };
38
+ /**
39
+ * Props for the Breadcrumbs.Item subcomponent
40
+ *
41
+ * Extends navigation Item (WD405) with breadcrumb-specific props, plus the
42
+ * native props of its `<li>` root.
43
+ *
44
+ * @implements ds:global.subcomponent.breadcrumbs-item
45
+ */
46
+ export type ItemProps = OwnProps & Omit<ComponentProps<"li">, keyof OwnProps>;
45
47
  //# sourceMappingURL=types.d.ts.map
@@ -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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AC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Item } from "@canonical/ds-types";
2
- import type { ComponentType, HTMLAttributes, ReactElement, ReactNode } from "react";
2
+ import type { ComponentProps, ComponentType, ReactElement, ReactNode } from "react";
3
3
  import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
4
4
  /**
5
5
  * Breadcrumb-specific item extending navigation Item (WD405)
@@ -26,12 +26,7 @@ export interface BreadcrumbItem extends Item {
26
26
  */
27
27
  Component?: ComponentType<any>;
28
28
  }
29
- /**
30
- * Props for the Breadcrumbs component
31
- *
32
- * @implements ds:global.component.breadcrumbs
33
- */
34
- export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
29
+ type OwnProps = {
35
30
  /**
36
31
  * Navigation items to display (WD405 Item type)
37
32
  * Each item is spread onto Breadcrumbs.Item or custom Component
@@ -64,7 +59,13 @@ export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
64
59
  * @default "Breadcrumb"
65
60
  */
66
61
  "aria-label"?: string;
67
- }
62
+ };
63
+ /**
64
+ * Props for the Breadcrumbs component
65
+ *
66
+ * @implements ds:global.component.breadcrumbs
67
+ */
68
+ export type BreadcrumbsProps = OwnProps & Omit<ComponentProps<"nav">, keyof OwnProps>;
68
69
  /**
69
70
  * Breadcrumbs component type with attached subcomponents
70
71
  */
@@ -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;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAe,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C,GAAG,CAAC,CAAC;CAChC;AAED,KAAK,QAAQ,GAAG;IACd;;;;;;;;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,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GACrC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;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,3 +1,3 @@
1
1
  export { default as Button } from "./Button.js";
2
- export type { BaseProps as ButtonBaseProps, default as ButtonProps, } from "./types.js";
2
+ export type { default as ButtonProps } from "./types.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,SAAS,IAAI,eAAe,EAC5B,OAAO,IAAI,WAAW,GACvB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import type { IconName } from "@canonical/ds-assets";
2
2
  import type { ModifierFamily } from "@canonical/ds-types";
3
- import type { ButtonHTMLAttributes, ReactNode } from "react";
4
- export interface BaseProps {
5
- /** A unique identifier for the button */
6
- id?: string;
7
- /** Additional CSS classes */
8
- className?: string;
3
+ import type { ComponentProps, ReactNode } from "react";
4
+ /**
5
+ * The Button's DS-owned props. Native `<button>` attributes (`id`, `className`,
6
+ * `type`, `disabled`, event handlers, …) come from `ComponentProps<"button">`
7
+ * in {@link default | ButtonProps}, so only genuinely design-system-specific
8
+ * members live here.
9
+ */
10
+ type OwnProps = {
9
11
  /**
10
12
  * Button contents (label text).
11
13
  * The button's accessible name derives from its rendered text content,
@@ -47,7 +49,7 @@ export interface BaseProps {
47
49
  * @default false
48
50
  */
49
51
  loading?: boolean;
50
- }
51
- type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
52
+ };
53
+ type Props = OwnProps & Omit<ComponentProps<"button">, keyof OwnProps>;
52
54
  export type { Props as default };
53
55
  //# 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,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,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,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjE,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;GAKG;AACH,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAEvE,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
@@ -1,11 +1,13 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
+ /** Required child contents */
4
+ children: ReactNode;
5
+ };
2
6
  /**
3
7
  * Props for Card.Content
4
8
  *
5
9
  * @implements ds:global.subcomponent.card-content
6
10
  */
7
- export interface ContentProps extends HTMLAttributes<HTMLDivElement> {
8
- children: ReactNode;
9
- className?: string;
10
- }
11
+ export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
+ export {};
11
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAElE,QAAQ,EAAE,SAAS,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,13 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
+ /** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
4
+ children: ReactNode;
5
+ };
2
6
  /**
3
7
  * Props for Card.Footer
4
8
  *
5
9
  * @implements ds:global.subcomponent.card-footer
6
10
  */
7
- export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
8
- /** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
9
- children: ReactNode;
10
- }
11
+ export type FooterProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
+ export {};
11
13
  //# 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,gFAAgF;IAChF,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,KAAK,QAAQ,GAAG;IACd,gFAAgF;IAChF,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,13 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
+ /** Required child contents */
4
+ children: ReactNode;
5
+ };
2
6
  /**
3
7
  * Props for Card.Header
4
8
  *
5
9
  * @implements ds:global.subcomponent.card-header
6
10
  */
7
- export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
8
- /** Required child contents */
9
- children: ReactNode;
10
- }
11
+ export type HeaderProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
+ export {};
11
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Header/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/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,4 +1,7 @@
1
- import type { ImgHTMLAttributes } from "react";
2
- export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
3
- }
1
+ import type { ComponentProps } from "react";
2
+ /**
3
+ * Props for Card.Image. No DS-owned props — it renders a plain `<img>` root, so
4
+ * it accepts every native `<img>` prop.
5
+ */
6
+ export type ImageProps = ComponentProps<"img">;
4
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,UAAW,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC;CAAG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
@@ -1,4 +1,7 @@
1
- import type { HTMLAttributes } from "react";
2
- export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
- }
1
+ import type { ComponentProps } from "react";
2
+ /**
3
+ * Props for the Card component. The Card has no DS-owned props of its own — it
4
+ * is a plain `<div>` surface — so it simply accepts every native `<div>` prop.
5
+ */
6
+ export type CardProps = ComponentProps<"div">;
4
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;CAAG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
@@ -5,8 +5,13 @@ import type { ChipPropsType } from "./types.js";
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
- declare const Chip: ({ criticality, release, lead, value, onClick, onDismiss, id, className, style, ...props }: ChipPropsType) => React.ReactElement;
15
+ declare const Chip: (props: ChipPropsType) => React.ReactElement;
11
16
  export default Chip;
12
17
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;GAKG;AACH,QAAA,MAAM,IAAI,GAAI,2FAWX,aAAa,KAAG,KAAK,CAAC,YAwBxB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,aAAa,KAAG,KAAK,CAAC,YA+D1C,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ModifierFamily } from "@canonical/ds-types";
2
- import type React from "react";
2
+ import type { ComponentProps, MouseEventHandler } from "react";
3
3
  /**
4
- * Props for the `Chip` component.
4
+ * The Chip's DS-owned props, shared by both of its possible roots.
5
5
  */
6
6
  export interface ChipProps {
7
7
  /**
@@ -24,16 +24,30 @@ export interface ChipProps {
24
24
  lead?: string;
25
25
  /** The chip’s value text. */
26
26
  value?: string;
27
- /** Called when the chip is clicked. */
28
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
29
27
  /** Called when the chip is dismissed. */
30
28
  onDismiss?: () => void;
31
- /** Unique identifier for the chip. */
32
- id?: string;
33
- /** Additional CSS class names. */
34
- className?: string;
35
- /** Inline styles for the chip. */
36
- style?: React.CSSProperties;
37
29
  }
38
- export type ChipPropsType = ChipProps & Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
30
+ /**
31
+ * Interactive chip — rendered as a `<button>` when an `onClick` handler is
32
+ * supplied, so it extends native `<button>` props.
33
+ */
34
+ type InteractiveChipProps = ChipProps & {
35
+ /** Called when the chip is clicked. Its presence makes the chip a button. */
36
+ onClick: MouseEventHandler<HTMLButtonElement>;
37
+ } & Omit<ComponentProps<"button">, keyof ChipProps | "onClick" | "children">;
38
+ /**
39
+ * Static chip — rendered as a `<span>` when no `onClick` is supplied, so it
40
+ * extends native `<span>` props.
41
+ */
42
+ type StaticChipProps = ChipProps & {
43
+ /** A static chip has no click handler and renders a `<span>`. */
44
+ onClick?: undefined;
45
+ } & Omit<ComponentProps<"span">, keyof ChipProps | "onClick" | "children">;
46
+ /**
47
+ * Chip props: a discriminated union on `onClick` (issue #628 precedent). A chip
48
+ * with an `onClick` renders a `<button>` and extends button props; one without
49
+ * renders a `<span>` and extends span props. No polymorphic `as` generic.
50
+ */
51
+ export type ChipPropsType = InteractiveChipProps | StaticChipProps;
52
+ export {};
39
53
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IAEpC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uCAAuC;IACvC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBA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,CAAC,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,eAAe,CAAC"}
@@ -1,5 +1,12 @@
1
1
  import type { _Item } from "@canonical/ds-types";
2
2
  import type { MenuItem } from "../../types.js";
3
+ /**
4
+ * Internal renderer props — exempt from the native-prop extension convention.
5
+ * This is not a public component and has no single native root the consumer
6
+ * styles: it receives a ready-made ARIA/roving prop bag (`itemProps`) from the
7
+ * menu hook and spreads that onto its element instead of extending a tag's
8
+ * native props.
9
+ */
3
10
  export interface ItemProps {
4
11
  /** The annotated menu item to render. */
5
12
  item: _Item<MenuItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACtB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,gEAAgE;IAChE,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACtB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,gEAAgE;IAChE,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -1,7 +1,7 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
2
  import type { MenuItem, UseContextualMenuProps, WindowFitmentPlacement, WindowFitmentSide } from "../../hooks/index.js";
3
3
  export type { MenuItem } from "../../hooks/index.js";
4
- export interface ContextualMenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect">, Pick<UseContextualMenuProps, "distance" | "gutter" | "maxWidth" | "autoFit" | "wrap"> {
4
+ type OwnProps = Pick<UseContextualMenuProps, "distance" | "gutter" | "maxWidth" | "autoFit" | "wrap"> & {
5
5
  /**
6
6
  * The trigger content, rendered inside the trigger button. Clicking it opens
7
7
  * the menu.
@@ -26,5 +26,6 @@ export interface ContextualMenuProps extends Omit<HTMLAttributes<HTMLDivElement>
26
26
  open?: boolean;
27
27
  /** Called when the open state changes. */
28
28
  onOpenChange?: (open: boolean) => void;
29
- }
29
+ };
30
+ export type ContextualMenuProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
30
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ContextualMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,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AQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GACxC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,6 @@
1
1
  import type { IconName } from "@canonical/ds-assets";
2
- import type { SVGAttributes } from "react";
3
- /**
4
- We have used the `HTMLDivElement` as a default props base.
5
- If your component is based on a different HTML element, please update it accordingly.
6
- See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
7
- */
8
- export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
2
+ import type { ComponentProps } from "react";
3
+ type OwnProps = {
9
4
  /**
10
5
  * Name of the icon to display.
11
6
  * Icons are decorative by default (`aria-hidden="true"`). Pass an
@@ -15,5 +10,8 @@ export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
15
10
  icon: IconName;
16
11
  /** Root path to the icons (default: /icons). Must be exposed to the user. */
17
12
  rootPath?: string;
18
- }
13
+ };
14
+ /** Props for the Icon component, extending the native props of its `<svg>` root. */
15
+ export type IconProps = OwnProps & Omit<ComponentProps<"svg">, keyof OwnProps>;
16
+ export {};
19
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Icon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;EAIE;AACF,MAAM,WAAW,SAAU,SAAQ,aAAa,CAAC,gBAAgB,CAAC;IAChE;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Icon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oFAAoF;AACpF,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,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 InlineCodeProps extends HTMLAttributes<HTMLElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** The code to render. */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ /** Props for the InlineCode component, extending its native `<code>` root. */
7
+ export type InlineCodeProps = OwnProps & Omit<ComponentProps<"code">, keyof OwnProps>;
8
+ export {};
6
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/InlineCode/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,WAAW,CAAC;IAClE,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/InlineCode/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,QAAQ,GACpC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,9 +1,12 @@
1
- import type { HTMLAttributes } from "react";
1
+ import type { ComponentProps } from "react";
2
2
  import type { KEY_LABELS } from "./constants.js";
3
3
  /** Valid keyboard key identifiers, derived from KEY_LABELS */
4
4
  export type Key = keyof typeof KEY_LABELS;
5
- export interface KeyboardKeyProps extends HTMLAttributes<HTMLElement> {
5
+ type OwnProps = {
6
6
  /** The keyboard key to display */
7
7
  keyValue: Key;
8
- }
8
+ };
9
+ /** Props for the KeyboardKey component, extending its native `<kbd>` root. */
10
+ export type KeyboardKeyProps = OwnProps & Omit<ComponentProps<"kbd">, keyof OwnProps>;
11
+ export {};
9
12
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/KeyboardKey/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,8DAA8D;AAC9D,MAAM,MAAM,GAAG,GAAG,MAAM,OAAO,UAAU,CAAC;AAE1C,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE,kCAAkC;IAClC,QAAQ,EAAE,GAAG,CAAC;CACf"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/KeyboardKey/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,8DAA8D;AAC9D,MAAM,MAAM,GAAG,GAAG,MAAM,OAAO,UAAU,CAAC;AAE1C,KAAK,QAAQ,GAAG;IACd,kCAAkC;IAClC,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GACrC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
2
  import type { UseDisclosureProps, WindowFitmentSide } from "../../hooks/index.js";
3
- export interface PopoverProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onToggle">, Pick<UseDisclosureProps, "preferredDirections" | "distance" | "gutter" | "maxWidth" | "autoFit" | "closeOnEscape" | "closeOnOutsideClick"> {
3
+ type OwnProps = Pick<UseDisclosureProps, "distance" | "gutter" | "maxWidth" | "autoFit" | "closeOnEscape" | "closeOnOutsideClick"> & {
4
4
  /**
5
5
  * The trigger content, rendered inside the `<summary>`. Clicking it toggles
6
6
  * the popover; with no JavaScript the native `<details>` handles the toggle.
@@ -20,5 +20,12 @@ export interface PopoverProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "
20
20
  * (`inline-*` mirrors in RTL). Defaults to the reading-direction order.
21
21
  */
22
22
  preferredDirections?: WindowFitmentSide[];
23
- }
23
+ };
24
+ /**
25
+ * Props for the Popover component. Extends its native `<details>` root, with
26
+ * `onToggle` deliberately excluded: once hydrated the disclosure hook owns the
27
+ * toggle, so consumers drive open state via `open`/`onOpenChange`.
28
+ */
29
+ export type PopoverProps = OwnProps & Omit<ComponentProps<"details">, keyof OwnProps | "onToggle">;
30
+ export {};
24
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,EAC1D,IAAI,CACF,kBAAkB,EAChB,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,GACT,eAAe,GACf,qBAAqB,CACxB;IACH;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB,4CAA4C;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC3C"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,KAAK,QAAQ,GAAG,IAAI,CAClB,kBAAkB,EAChB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,GACT,eAAe,GACf,qBAAqB,CACxB,GAAG;IACF;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB,4CAA4C;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC3C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC"}
@@ -6,6 +6,10 @@ import type { TabItem } from "../../types.js";
6
6
  * Not a public subcomponent — Tabs iterates `navigationRoot.items` and renders
7
7
  * one of these per child. Kept internal so router integration lives in one
8
8
  * place (the `LinkComponent` on Tabs), mirroring SideNavigation.
9
+ *
10
+ * Exempt from the native-prop extension convention: it is an internal renderer
11
+ * that derives its `<li>` from the `item` model rather than forwarding native
12
+ * props from the caller.
9
13
  */
10
14
  export interface ItemProps {
11
15
  /** The tab's navigation item. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,gFAAgF;IAChF,aAAa,EAAE,aAAa,CAAC;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,WAAW,SAAS;IACxB,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,gFAAgF;IAChF,aAAa,EAAE,aAAa,CAAC;CAC9B"}
@@ -1,5 +1,5 @@
1
1
  import type { Item } from "@canonical/ds-types";
2
- import type { HTMLAttributes } from "react";
2
+ import type { ComponentProps } from "react";
3
3
  import type { LinkComponent } from "../../types/link.js";
4
4
  /**
5
5
  * A tab, as a WD405 navigation `Item`. A tab strip is flat, so only the
@@ -11,12 +11,7 @@ export interface TabItem extends Item {
11
11
  /** CSS class name applied to this tab's `<li>`, in addition to the base classes. */
12
12
  className?: string;
13
13
  }
14
- /**
15
- * Props for the Tabs component
16
- *
17
- * @implements ds:global.component.tabs
18
- */
19
- export interface TabsProps extends HTMLAttributes<HTMLElement> {
14
+ type OwnProps = {
20
15
  /**
21
16
  * The tab strip, as a root navigation `Item`. Its **direct children**
22
17
  * (`navigationRoot.items`) are rendered as tabs; the root node itself is a
@@ -42,5 +37,12 @@ export interface TabsProps extends HTMLAttributes<HTMLElement> {
42
37
  * distinguish this tab strip from other navigation regions.
43
38
  */
44
39
  "aria-label": string;
45
- }
40
+ };
41
+ /**
42
+ * Props for the Tabs component, extending the native props of its `<nav>` root.
43
+ *
44
+ * @implements ds:global.component.tabs
45
+ */
46
+ export type TabsProps = OwnProps & Omit<ComponentProps<"nav">, keyof OwnProps>;
47
+ export {};
46
48
  //# sourceMappingURL=types.d.ts.map