@canonical/react-ds-global 0.40.0 → 0.42.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 (114) hide show
  1. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js +1 -6
  2. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js.map +1 -1
  3. package/dist/esm/lib/component/Chip/Chip.js +2 -6
  4. package/dist/esm/lib/component/Chip/Chip.js.map +1 -1
  5. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +1 -4
  6. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -1
  7. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js +2 -4
  8. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js.map +1 -1
  9. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +1 -3
  10. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -1
  11. package/dist/esm/lib/component/Icon/Icon.js +1 -3
  12. package/dist/esm/lib/component/Icon/Icon.js.map +1 -1
  13. package/dist/esm/lib/component/Tooltip/Tooltip.js +1 -5
  14. package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
  15. package/dist/esm/lib/component/Tooltip/TooltipEngine.js +1 -3
  16. package/dist/esm/lib/component/Tooltip/TooltipEngine.js.map +1 -1
  17. package/dist/esm/lib/component/Tooltip/withTooltip.js.map +1 -1
  18. package/dist/esm/lib/group/Cards/Cards.js +1 -1
  19. package/dist/esm/lib/group/Cards/styles.css +1 -1
  20. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -1
  21. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js.map +1 -1
  22. package/dist/esm/lib/pattern/Modal/common/Header/styles.css +31 -3
  23. package/dist/esm/lib/pattern/Modal/withModal.js +1 -1
  24. package/dist/esm/lib/subcomponent/Spinner/Spinner.js +1 -3
  25. package/dist/esm/lib/subcomponent/Spinner/Spinner.js.map +1 -1
  26. package/dist/types/lib/_work_in_progress/Announcement/Announcement.d.ts.map +1 -1
  27. package/dist/types/lib/_work_in_progress/CategoriesSection/CategoriesSection.d.ts.map +1 -1
  28. package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/Category.d.ts.map +1 -1
  29. package/dist/types/lib/_work_in_progress/CategoriesSection/fixtures.d.ts.map +1 -1
  30. package/dist/types/lib/_work_in_progress/ChatSection/ChatSection.d.ts.map +1 -1
  31. package/dist/types/lib/_work_in_progress/DescriptionSection/DescriptionSection.d.ts.map +1 -1
  32. package/dist/types/lib/_work_in_progress/IconSection/IconSection.d.ts.map +1 -1
  33. package/dist/types/lib/_work_in_progress/Label/Label.d.ts.map +1 -1
  34. package/dist/types/lib/_work_in_progress/Link/Link.d.ts.map +1 -1
  35. package/dist/types/lib/_work_in_progress/Rule/Rule.d.ts.map +1 -1
  36. package/dist/types/lib/_work_in_progress/Section/Section.d.ts.map +1 -1
  37. package/dist/types/lib/_work_in_progress/SkipLink/SkipLink.d.ts.map +1 -1
  38. package/dist/types/lib/_work_in_progress/TSection/TSection.d.ts.map +1 -1
  39. package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.d.ts.map +1 -1
  40. package/dist/types/lib/_work_in_progress/grid/GridCard/GridCard.d.ts.map +1 -1
  41. package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/InnerGridDemo.d.ts.map +1 -1
  42. package/dist/types/lib/_work_in_progress/grid/SettingsView/SettingsView.d.ts.map +1 -1
  43. package/dist/types/lib/component/Accordion/Accordion.d.ts +5 -21
  44. package/dist/types/lib/component/Accordion/Accordion.d.ts.map +1 -1
  45. package/dist/types/lib/component/Accordion/common/Item/Item.d.ts +4 -15
  46. package/dist/types/lib/component/Accordion/common/Item/Item.d.ts.map +1 -1
  47. package/dist/types/lib/component/Badge/Badge.d.ts.map +1 -1
  48. package/dist/types/lib/component/Badge/hooks/useBadge.d.ts.map +1 -1
  49. package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts +5 -21
  50. package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  51. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts +4 -12
  52. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts.map +1 -1
  53. package/dist/types/lib/component/Button/Button.d.ts.map +1 -1
  54. package/dist/types/lib/component/Card/Card.d.ts +8 -37
  55. package/dist/types/lib/component/Card/Card.d.ts.map +1 -1
  56. package/dist/types/lib/component/Card/common/Content/Content.d.ts +4 -9
  57. package/dist/types/lib/component/Card/common/Content/Content.d.ts.map +1 -1
  58. package/dist/types/lib/component/Card/common/Footer/Footer.d.ts +4 -10
  59. package/dist/types/lib/component/Card/common/Footer/Footer.d.ts.map +1 -1
  60. package/dist/types/lib/component/Card/common/Header/Header.d.ts +4 -9
  61. package/dist/types/lib/component/Card/common/Header/Header.d.ts.map +1 -1
  62. package/dist/types/lib/component/Card/common/Image/Image.d.ts +4 -11
  63. package/dist/types/lib/component/Card/common/Image/Image.d.ts.map +1 -1
  64. package/dist/types/lib/component/Chip/Chip.d.ts.map +1 -1
  65. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts.map +1 -1
  66. package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts.map +1 -1
  67. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts.map +1 -1
  68. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -1
  69. package/dist/types/lib/component/Icon/Icon.d.ts.map +1 -1
  70. package/dist/types/lib/component/InlineCode/InlineCode.d.ts.map +1 -1
  71. package/dist/types/lib/component/KeyboardKey/KeyboardKey.d.ts.map +1 -1
  72. package/dist/types/lib/component/KeyboardKey/constants.d.ts +33 -33
  73. package/dist/types/lib/component/KeyboardKey/constants.d.ts.map +1 -1
  74. package/dist/types/lib/component/Popover/Popover.d.ts.map +1 -1
  75. package/dist/types/lib/component/Tabs/Tabs.d.ts.map +1 -1
  76. package/dist/types/lib/component/Tabs/common/Item/Item.d.ts.map +1 -1
  77. package/dist/types/lib/component/Tile/Tile.d.ts +6 -21
  78. package/dist/types/lib/component/Tile/Tile.d.ts.map +1 -1
  79. package/dist/types/lib/component/Tile/common/Content/Content.d.ts +4 -11
  80. package/dist/types/lib/component/Tile/common/Content/Content.d.ts.map +1 -1
  81. package/dist/types/lib/component/Tile/common/Header/Header.d.ts +4 -11
  82. package/dist/types/lib/component/Tile/common/Header/Header.d.ts.map +1 -1
  83. package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
  84. package/dist/types/lib/component/Tooltip/TooltipEngine.d.ts.map +1 -1
  85. package/dist/types/lib/component/Tooltip/withTooltip.d.ts.map +1 -1
  86. package/dist/types/lib/group/Cards/Cards.d.ts +1 -1
  87. package/dist/types/lib/group/Cards/Cards.d.ts.map +1 -1
  88. package/dist/types/lib/group/Cards/types.d.ts +2 -2
  89. package/dist/types/lib/group/KeyboardKeys/KeyboardKeys.d.ts.map +1 -1
  90. package/dist/types/lib/hooks/useContextualMenu/isMenuSeparator.d.ts.map +1 -1
  91. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -1
  92. package/dist/types/lib/hooks/useDelayedToggle/useDelayedToggle.d.ts.map +1 -1
  93. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts.map +1 -1
  94. package/dist/types/lib/hooks/useIsMounted/useIsMounted.d.ts.map +1 -1
  95. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -1
  96. package/dist/types/lib/pattern/Modal/Context.d.ts.map +1 -1
  97. package/dist/types/lib/pattern/Modal/Provider.d.ts +7 -58
  98. package/dist/types/lib/pattern/Modal/Provider.d.ts.map +1 -1
  99. package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts +4 -12
  100. package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts.map +1 -1
  101. package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts +4 -13
  102. package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts.map +1 -1
  103. package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts +4 -19
  104. package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts.map +1 -1
  105. package/dist/types/lib/pattern/Modal/hooks/useModalState.d.ts.map +1 -1
  106. package/dist/types/lib/pattern/Modal/withModal.d.ts.map +1 -1
  107. package/dist/types/lib/pattern/Timeline/Timeline.d.ts +6 -23
  108. package/dist/types/lib/pattern/Timeline/Timeline.d.ts.map +1 -1
  109. package/dist/types/lib/pattern/Timeline/common/Content/Content.d.ts +4 -11
  110. package/dist/types/lib/pattern/Timeline/common/Content/Content.d.ts.map +1 -1
  111. package/dist/types/lib/pattern/Timeline/common/Event/Event.d.ts +4 -12
  112. package/dist/types/lib/pattern/Timeline/common/Event/Event.d.ts.map +1 -1
  113. package/dist/types/lib/subcomponent/Spinner/Spinner.d.ts.map +1 -1
  114. package/package.json +21 -21
@@ -1 +1 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Modal/Context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;;GAKG;AACH,QAAA,MAAM,OAAO,mDAAgD,CAAC;AAE9D,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Modal/Context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;;GAKG;AACH,QAAA,MAAM,OAAO,mDAAgD,CAAC;eAE/C,OAAO"}
@@ -1,63 +1,12 @@
1
1
  import type React from "react";
2
+ import { Content, Footer, Header } from "./common/index.js";
2
3
  import type { ModalProps } from "./types.js";
3
4
  import "./styles.css";
4
- /**
5
- * A modal is a focused container that sits on top of the main view, requiring
6
- * users to interact with it before returning to that view. Its purpose is to
7
- * capture the user's full attention for a specific, self-contained task while
8
- * keeping their workspace visible, though inactive, behind it. The main use
9
- * case is asking the user to confirm a decision they have already taken — for
10
- * instance, sending a delete request.
11
- *
12
- * It renders a native `<dialog>` opened with `showModal()`, so the backdrop,
13
- * focus trap, page inertness and Escape handling come from the platform rather
14
- * than from JavaScript. The modal is self-contained: the open state lives in
15
- * the `<dialog>` element, not in a prop, so the header's close button and
16
- * Escape close it — and a backdrop click too, once `closeOnBackdropClick` opts
17
- * in — without the consumer wiring anything. Opening always goes through the
18
- * `ref` — which is required, since `showModal()` is the only way in:
19
- * `ref.current?.showModal()` opens the modal and `ref.current?.close()`
20
- * closes it.
21
- *
22
- * A native dialog opened with `showModal()` renders in the browser's top
23
- * layer, so even under an ancestor with `overflow: hidden` the modal is not
24
- * clipped.
25
- *
26
- * There are two consumption patterns, `withModal` and `Modal`. `withModal` is
27
- * meant for static content: the call belongs at module scope, where the
28
- * function it is handed can only see module-level values, so the modal it
29
- * returns is the same on every render. If the modal must show data from the
30
- * parent — for example a different `userName` depending on which user is
31
- * selected — compose `Modal` directly and drive it through its `ref`.
32
- * Otherwise, use `withModal`.
33
- *
34
- * The header's title names the dialog automatically; a modal composed without
35
- * a header must carry its own `aria-label` (see the accessibility story in
36
- * `withModal`).
37
- *
38
- * The sections are composed by the consumer: render
39
- * `Modal.Header`, `Modal.Content` and `Modal.Footer` as children and choose
40
- * which ones to show. Note the title is not a heading element: a modal is a
41
- * layer on top of the page, not part of its document outline.
42
- *
43
- * `import { Modal } from "@canonical/react-ds-global";`
44
- *
45
- * @implements ds:global.pattern.modal
46
- */
47
- declare const Provider: {
48
- ({ ref, closeOnBackdropClick, children, className, onClick, "aria-label": ariaLabel, ...props }: ModalProps): React.ReactElement;
49
- Content: {
50
- ({ children, className, ...props }: import("./common/index.js").ContentProps): React.ReactElement;
51
- displayName: string;
52
- };
53
- Footer: {
54
- ({ children, className, ...props }: import("./common/index.js").FooterProps): React.ReactElement;
55
- displayName: string;
56
- };
57
- Header: {
58
- ({ children, titleId, undismissible, dismissLabel, onDismiss, className, ...props }: import("./common/index.js").HeaderProps): React.ReactElement;
59
- displayName: string;
60
- };
61
- };
5
+ declare function Provider({ ref, closeOnBackdropClick, children, className, onClick, "aria-label": ariaLabel, ...props }: ModalProps): React.ReactElement;
6
+ declare namespace Provider {
7
+ export { Content };
8
+ export { Footer };
9
+ export { Header };
10
+ }
62
11
  export default Provider;
63
12
  //# sourceMappingURL=Provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Modal/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,QAAA,MAAM,QAAQ;qGAQX,UAAU,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;CAwEjC,CAAC;AAMF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Modal/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;0BA+CJ,EAChB,GAAG,EACH,oBAA4B,EAC5B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,KAAK,CAAC,YAAY;;;;;;eA8EnB,QAAQ"}
@@ -1,17 +1,9 @@
1
1
  import type React from "react";
2
2
  import type { ContentProps } from "./types.js";
3
3
  import "./styles.css";
4
- /**
5
- * Modal.Content subcomponent
6
- *
7
- * The open slot holding the modal's main information. It is the only part that
8
- * scrolls, so the header and footer stay put on long content.
9
- *
10
- * @implements ds:global.subcomponent.modal-content
11
- */
12
- declare const Content: {
13
- ({ children, className, ...props }: ContentProps): React.ReactElement;
14
- displayName: string;
15
- };
4
+ declare function Content({ children, className, ...props }: ContentProps): React.ReactElement;
5
+ declare namespace Content {
6
+ var displayName: string;
7
+ }
16
8
  export default Content;
17
9
  //# sourceMappingURL=Content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO;wCAIV,YAAY,GAAG,KAAK,CAAC,YAAY;;CAOnC,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;yBAYL,EACf,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY;;;;eAWrB,OAAO"}
@@ -1,18 +1,9 @@
1
1
  import type React from "react";
2
2
  import type { FooterProps } from "./types.js";
3
3
  import "./styles.css";
4
- /**
5
- * Modal.Footer subcomponent
6
- *
7
- * Holds the modal's actions. When the modal is a confirmation or a form, these
8
- * capture the decision; the button's modifiers must match the consequence, so a
9
- * destructive confirmation uses a destructive button.
10
- *
11
- * @implements ds:global.subcomponent.modal-footer
12
- */
13
- declare const Footer: {
14
- ({ children, className, ...props }: FooterProps): React.ReactElement;
15
- displayName: string;
16
- };
4
+ declare function Footer({ children, className, ...props }: FooterProps): React.ReactElement;
5
+ declare namespace Footer {
6
+ var displayName: string;
7
+ }
17
8
  export default Footer;
18
9
  //# sourceMappingURL=Footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM;wCAIT,WAAW,GAAG,KAAK,CAAC,YAAY;;CAOlC,CAAC;AAIF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;wBAaN,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY;;;;eAWpB,MAAM"}
@@ -1,24 +1,9 @@
1
1
  import type React from "react";
2
2
  import type { HeaderProps } from "./types.js";
3
3
  import "./styles.css";
4
- /**
5
- * Modal.Header subcomponent
6
- *
7
- * Carries the modal title and the optional dismiss control. The title describes
8
- * what the modal is for, giving the user context on what triggered it. Both the
9
- * title id (which names the dialog) and the dismiss wiring come from the Modal
10
- * context, so a composed header needs no props of its own.
11
- *
12
- * The title is not a heading element: headings structure the page's document
13
- * outline, and a modal opens from anywhere in it, so no heading level would be
14
- * right everywhere. The title names the dialog through `aria-labelledby`
15
- * instead, which is what a screen reader announces when the modal opens.
16
- *
17
- * @implements ds:global.subcomponent.modal-header
18
- */
19
- declare const Header: {
20
- ({ children, titleId, undismissible, dismissLabel, onDismiss, className, ...props }: HeaderProps): React.ReactElement;
21
- displayName: string;
22
- };
4
+ declare function Header({ children, titleId, undismissible, dismissLabel, onDismiss, className, ...props }: HeaderProps): React.ReactElement;
5
+ declare namespace Header {
6
+ var displayName: string;
7
+ }
23
8
  export default Header;
24
9
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,MAAM;yFAQT,WAAW,GAAG,KAAK,CAAC,YAAY;;CAsBlC,CAAC;AAIF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Modal/common/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;wBAmBN,EACd,QAAQ,EACR,OAAO,EACP,aAAqB,EACrB,YAAsB,EACtB,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY;;;;eA0BpB,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"useModalState.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/pattern/Modal/hooks/useModalState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;GAIG;AACH,QAAA,MAAM,aAAa,GACjB,WAAW,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,KAC7C,iBAMF,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"useModalState.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/pattern/Modal/hooks/useModalState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;GAIG;AACH,QAAA,MAAM,aAAa,cACN,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,KAC7C,iBAMF,CAAC;eAEa,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"withModal.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Modal/withModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,QAAA,MAAM,SAAS,GAAI,MAAM,SAAS,qBAAqB,EACrD,WAAW,aAAa,CAAC,MAAM,CAAC,EAChC,OAAO,eAAe,KACrB,aAAa,CAAC,MAAM,CAyCtB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"withModal.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Modal/withModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,QAAA,MAAM,SAAS,GAAI,MAAM,SAAS,qBAAqB,aAC1C,aAAa,CAAC,MAAM,CAAC,SACzB,eAAe,KACrB,aAAa,CAAC,MAAM,CAyCtB,CAAC;eAEa,SAAS"}
@@ -1,28 +1,11 @@
1
1
  import type React from "react";
2
+ import { Content, Event } from "./common/index.js";
2
3
  import type { TimelineProps } from "./types.js";
3
4
  import "./styles.css";
4
- /**
5
- * The timeline component establishes a clear order of operations. It is a
6
- * structural UI block used to represent a chronological list of events,
7
- * actions, or milestones in a vertical sequence. It serves as a visual
8
- * narrative, allowing users to track progress, audit history, or understand
9
- * the relationship between time and specific activities at a glance. Each
10
- * event can include a dateTime, actor, description, and other custom content.
11
- * It also includes an optional control bar for users to filter or sort the
12
- * events.
13
- *
14
- * @implements ds:global.pattern.timeline
15
- */
16
- declare const Timeline: {
17
- ({ children, className, ...props }: TimelineProps): React.ReactElement;
18
- Content: {
19
- ({ children, className, ...props }: import("./common/index.js").ContentProps): React.ReactElement;
20
- displayName: string;
21
- };
22
- Event: {
23
- ({ actor, datetime, children, criticality, className, ...props }: import("./common/index.js").EventProps): React.ReactElement;
24
- displayName: string;
25
- };
26
- };
5
+ declare function Timeline({ children, className, ...props }: TimelineProps): React.ReactElement;
6
+ declare namespace Timeline {
7
+ export { Content };
8
+ export { Event };
9
+ }
27
10
  export default Timeline;
28
11
  //# sourceMappingURL=Timeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,QAAQ;wCAIX,aAAa,GAAG,KAAK,CAAC,YAAY;;;;;;;;;CAQpC,CAAC;AAKF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,cAAc,CAAC;0BAgBJ,EAChB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,GAAG,KAAK,CAAC,YAAY;;;;;eAatB,QAAQ"}
@@ -1,16 +1,9 @@
1
1
  import type React from "react";
2
2
  import type { ContentProps } from "./types.js";
3
3
  import "./styles.css";
4
- /**
5
- * Timeline.Content subcomponent
6
- *
7
- * Container for Timeline.Event elements.
8
- *
9
- * @implements ds:global.subcomponent.timeline-content
10
- */
11
- declare const Content: {
12
- ({ children, className, ...props }: ContentProps): React.ReactElement;
13
- displayName: string;
14
- };
4
+ declare function Content({ children, className, ...props }: ContentProps): React.ReactElement;
5
+ declare namespace Content {
6
+ var displayName: string;
7
+ }
15
8
  export default Content;
16
9
  //# sourceMappingURL=Content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,OAAO;wCAIV,YAAY,GAAG,KAAK,CAAC,YAAY;;CAQnC,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Content/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;yBAWL,EACf,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY;;;;eAYrB,OAAO"}
@@ -1,17 +1,9 @@
1
1
  import type React from "react";
2
2
  import type { EventProps } from "./types.js";
3
3
  import "./styles.css";
4
- /**
5
- * Timeline.Event subcomponent
6
- *
7
- * A single event in the timeline, with optional actor and datetime.
8
- * DOM order per DSL: [0] actor, [1] datetime, [2] payload
9
- *
10
- * @implements ds:global.subcomponent.timeline-event
11
- */
12
- declare const Event: {
13
- ({ actor, datetime, children, criticality, className, ...props }: EventProps): React.ReactElement;
14
- displayName: string;
15
- };
4
+ declare function Event({ actor, datetime, children, criticality, className, ...props }: EventProps): React.ReactElement;
5
+ declare namespace Event {
6
+ var displayName: string;
7
+ }
16
8
  export default Event;
17
9
  //# sourceMappingURL=Event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Event/Event.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,KAAK;sEAOR,UAAU,GAAG,KAAK,CAAC,YAAY;;CAsBjC,CAAC;AAIF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Event/Event.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;uBAYP,EACb,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,KAAK,CAAC,YAAY;;;;eA0BnB,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAQtB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,OAAO,GAAI,yCAKd,YAAY,KAAG,YAqBjB,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAQtB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,OAAO,4CAKV,YAAY,KAAG,YAqBjB,CAAC;eAEa,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-global",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -54,28 +54,28 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@canonical/design-tokens": "0.10.0",
57
- "@canonical/ds-assets": "^0.40.0",
58
- "@canonical/ds-utils": "^0.40.0",
59
- "@canonical/react-hooks": "^0.40.0",
60
- "@canonical/storybook-config": "^0.40.0",
61
- "@canonical/styles": "^0.40.0",
57
+ "@canonical/ds-assets": "^0.42.0",
58
+ "@canonical/ds-utils": "^0.42.0",
59
+ "@canonical/react-hooks": "^0.42.0",
60
+ "@canonical/storybook-config": "^0.42.0",
61
+ "@canonical/styles": "^0.42.0",
62
62
  "react": "^19.2.4",
63
63
  "react-dom": "^19.2.4"
64
64
  },
65
65
  "devDependencies": {
66
- "@biomejs/biome": "2.5.13",
67
- "@canonical/biome-config": "^0.40.0",
68
- "@canonical/ds-types": "^0.40.0",
69
- "@canonical/router-core": "^0.40.0",
70
- "@canonical/router-react": "^0.40.0",
71
- "@canonical/storybook-addon-utils": "^0.40.0",
72
- "@canonical/storybook-helpers": "^0.40.0",
73
- "@canonical/typescript-config-react": "^0.40.0",
74
- "@canonical/vitest-config-react": "^0.40.0",
75
- "@canonical/webarchitect": "^0.40.0",
66
+ "@biomejs/biome": "2.5.14",
67
+ "@canonical/biome-config": "^0.42.0",
68
+ "@canonical/ds-types": "^0.42.0",
69
+ "@canonical/router-core": "^0.42.0",
70
+ "@canonical/router-react": "^0.42.0",
71
+ "@canonical/storybook-addon-utils": "^0.42.0",
72
+ "@canonical/storybook-helpers": "^0.42.0",
73
+ "@canonical/typescript-config-react": "^0.42.0",
74
+ "@canonical/vitest-config-react": "^0.42.0",
75
+ "@canonical/webarchitect": "^0.42.0",
76
76
  "@chromatic-com/storybook": "^5.0.1",
77
- "@storybook/addon-docs": "^10.3.1",
78
- "@storybook/react-vite": "^10.3.1",
77
+ "@storybook/addon-docs": "^10.6.0",
78
+ "@storybook/react-vite": "^10.6.0",
79
79
  "@testing-library/jest-dom": "^7.0.0",
80
80
  "@testing-library/react": "^16.3.2",
81
81
  "@types/node": "^26.0.0",
@@ -85,10 +85,10 @@
85
85
  "copyfiles": "^2.4.1",
86
86
  "globals": "^17.4.0",
87
87
  "jsdom": "^28.1.0",
88
- "storybook": "^10.3.1",
89
- "typescript": "^5.9.3",
88
+ "storybook": "^10.6.0",
89
+ "typescript": "^7.0.2",
90
90
  "vite": "^8.0.1",
91
91
  "vitest": "^4.0.18"
92
92
  },
93
- "gitHead": "9136b71518260c5f33e7619da087198c931e4c13"
93
+ "gitHead": "75c2b17029ba899be3fa645be28290ac6fcb83a9"
94
94
  }