@canonical/react-ds-global 0.36.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.
- package/dist/esm/lib/_work_in_progress/Announcement/styles.css +7 -2
- package/dist/esm/lib/_work_in_progress/Section/styles.css +5 -5
- package/dist/esm/lib/component/Chip/Chip.js +29 -6
- package/dist/esm/lib/component/Chip/Chip.js.map +1 -1
- package/dist/esm/lib/component/Tooltip/Tooltip.js +6 -2
- package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
- package/dist/types/lib/_work_in_progress/Announcement/types.d.ts +8 -8
- package/dist/types/lib/_work_in_progress/Announcement/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/IconSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/IconSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Label/types.d.ts +20 -18
- package/dist/types/lib/_work_in_progress/Label/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Rule/types.d.ts +5 -7
- package/dist/types/lib/_work_in_progress/Rule/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Section/types.d.ts +9 -10
- package/dist/types/lib/_work_in_progress/Section/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts +14 -8
- package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/TSection/types.d.ts +14 -3
- package/dist/types/lib/_work_in_progress/TSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts.map +1 -1
- package/dist/types/lib/component/Accordion/common/Item/types.d.ts +28 -22
- package/dist/types/lib/component/Accordion/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/Accordion/types.d.ts +8 -6
- package/dist/types/lib/component/Accordion/types.d.ts.map +1 -1
- package/dist/types/lib/component/Badge/types.d.ts +5 -3
- package/dist/types/lib/component/Badge/types.d.ts.map +1 -1
- package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +12 -10
- package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/Breadcrumbs/types.d.ts +9 -8
- package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
- package/dist/types/lib/component/Button/index.d.ts +1 -1
- package/dist/types/lib/component/Button/index.d.ts.map +1 -1
- package/dist/types/lib/component/Button/types.d.ts +10 -8
- package/dist/types/lib/component/Button/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Content/types.d.ts +7 -5
- package/dist/types/lib/component/Card/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Footer/types.d.ts +7 -5
- package/dist/types/lib/component/Card/common/Footer/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Header/types.d.ts +7 -5
- package/dist/types/lib/component/Card/common/Header/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Image/types.d.ts +6 -3
- package/dist/types/lib/component/Card/common/Image/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/types.d.ts +6 -3
- package/dist/types/lib/component/Card/types.d.ts.map +1 -1
- package/dist/types/lib/component/Chip/Chip.d.ts +6 -1
- package/dist/types/lib/component/Chip/Chip.d.ts.map +1 -1
- package/dist/types/lib/component/Chip/types.d.ts +25 -11
- package/dist/types/lib/component/Chip/types.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts +7 -0
- package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/types.d.ts +4 -3
- package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -1
- package/dist/types/lib/component/Icon/types.d.ts +6 -8
- package/dist/types/lib/component/Icon/types.d.ts.map +1 -1
- package/dist/types/lib/component/InlineCode/types.d.ts +6 -3
- package/dist/types/lib/component/InlineCode/types.d.ts.map +1 -1
- package/dist/types/lib/component/KeyboardKey/types.d.ts +6 -3
- package/dist/types/lib/component/KeyboardKey/types.d.ts.map +1 -1
- package/dist/types/lib/component/Popover/types.d.ts +10 -3
- package/dist/types/lib/component/Popover/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tabs/common/Item/types.d.ts +4 -0
- package/dist/types/lib/component/Tabs/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tabs/types.d.ts +10 -8
- package/dist/types/lib/component/Tabs/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/common/Content/types.d.ts +9 -7
- package/dist/types/lib/component/Tile/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/common/Header/types.d.ts +9 -7
- package/dist/types/lib/component/Tile/common/Header/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/types.d.ts +10 -8
- package/dist/types/lib/component/Tile/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/types.d.ts +11 -10
- package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
- package/dist/types/lib/group/Cards/types.d.ts +6 -3
- package/dist/types/lib/group/Cards/types.d.ts.map +1 -1
- package/dist/types/lib/group/KeyboardKeys/types.d.ts +6 -3
- package/dist/types/lib/group/KeyboardKeys/types.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts +10 -8
- package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts +18 -16
- package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/types.d.ts +10 -8
- package/dist/types/lib/pattern/Timeline/types.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Spinner/types.d.ts +10 -8
- package/dist/types/lib/subcomponent/Spinner/types.d.ts.map +1 -1
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,OAAQ,SAAQ,IAAI;IACnC,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,OAAQ,SAAQ,IAAI;IACnC,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,QAAQ,GAAG;IACd;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Content to display in the tile body
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* Props for the Tile.Content subcomponent
|
|
4
10
|
*
|
|
@@ -9,10 +15,6 @@ import type { HTMLAttributes, ReactNode } from "react";
|
|
|
9
15
|
* - layout.direction: vertical
|
|
10
16
|
* - spacing.internal: spacing/medium
|
|
11
17
|
*/
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
* Content to display in the tile body
|
|
15
|
-
*/
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}
|
|
18
|
+
export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
19
|
+
export {};
|
|
18
20
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Header content
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* Props for the Tile.Header subcomponent
|
|
4
10
|
*
|
|
@@ -10,10 +16,6 @@ import type { HTMLAttributes, ReactNode } from "react";
|
|
|
10
16
|
* - layout.align: center
|
|
11
17
|
* - spacing.internal: spacing/medium
|
|
12
18
|
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
* Header content
|
|
16
|
-
*/
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
}
|
|
19
|
+
export type HeaderProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
20
|
+
export {};
|
|
19
21
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
2
|
import type { ContentProps } from "./common/Content/types.js";
|
|
3
3
|
import type { HeaderProps } from "./common/Header/types.js";
|
|
4
|
+
type OwnProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Tile.Header and Tile.Content elements
|
|
7
|
+
* DOM order: Header first, Content second (per DSL edges)
|
|
8
|
+
*/
|
|
9
|
+
children: ReactElement<HeaderProps | ContentProps> | ReactElement<HeaderProps | ContentProps>[];
|
|
10
|
+
};
|
|
4
11
|
/**
|
|
5
12
|
* Props for the Tile component
|
|
6
13
|
*
|
|
@@ -15,13 +22,7 @@ import type { HeaderProps } from "./common/Header/types.js";
|
|
|
15
22
|
* - [0] tile-header (slotName: header, cardinality: 0..1)
|
|
16
23
|
* - [1] tile-content (slotName: default, cardinality: 1)
|
|
17
24
|
*/
|
|
18
|
-
export
|
|
19
|
-
/**
|
|
20
|
-
* Tile.Header and Tile.Content elements
|
|
21
|
-
* DOM order: Header first, Content second (per DSL edges)
|
|
22
|
-
*/
|
|
23
|
-
children: ReactElement<HeaderProps | ContentProps> | ReactElement<HeaderProps | ContentProps>[];
|
|
24
|
-
}
|
|
25
|
+
export type TileProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
25
26
|
/**
|
|
26
27
|
* Tile component type with attached subcomponents
|
|
27
28
|
*/
|
|
@@ -29,4 +30,5 @@ export type TileComponent = ((props: TileProps) => ReactElement) & {
|
|
|
29
30
|
Header: (props: HeaderProps) => ReactElement;
|
|
30
31
|
Content: (props: ContentProps) => ReactElement;
|
|
31
32
|
};
|
|
33
|
+
export {};
|
|
32
34
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tile/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tile/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,KAAK,QAAQ,GAAG;IACd;;;OAGG;IACH,QAAQ,EACJ,YAAY,CAAC,WAAW,GAAG,YAAY,CAAC,GACxC,YAAY,CAAC,WAAW,GAAG,YAAY,CAAC,EAAE,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC,GAAG;IACjE,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,YAAY,CAAC;IAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,YAAY,CAAC;CAChD,CAAC"}
|
|
@@ -8,6 +8,6 @@ import type { TooltipProps } from "./types.js";
|
|
|
8
8
|
*
|
|
9
9
|
* @implements ds:global.component.tooltip
|
|
10
10
|
*/
|
|
11
|
-
declare const Tooltip: ({
|
|
11
|
+
declare const Tooltip: ({ children, icon, className, style, isOpen, zIndex, ...props }: TooltipProps) => React.ReactElement;
|
|
12
12
|
export default Tooltip;
|
|
13
13
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,GAAI,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,GAAI,gEAQd,YAAY,KAAG,KAAK,CAAC,YA6BvB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, CSSProperties, ReactNode } from "react";
|
|
2
2
|
import type { UseDisclosureProps } from "../../hooks/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* The full option surface of the tooltip engine that `withTooltip` owns:
|
|
@@ -59,9 +59,8 @@ export interface TooltipEngineProps extends Omit<UseDisclosureProps, "mode"> {
|
|
|
59
59
|
* timing, etc.
|
|
60
60
|
*/
|
|
61
61
|
export type WithTooltipOptions = Omit<TooltipEngineProps, "children" | "Message">;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
className?: string;
|
|
62
|
+
type OwnProps = {
|
|
63
|
+
/** Child elements */
|
|
65
64
|
children: ReactNode;
|
|
66
65
|
/**
|
|
67
66
|
* An optional leading icon, rendered before the text and top-aligned with the
|
|
@@ -69,14 +68,16 @@ export interface TooltipProps {
|
|
|
69
68
|
* (e.g. an `<Icon>` or inline SVG).
|
|
70
69
|
*/
|
|
71
70
|
icon?: ReactNode;
|
|
72
|
-
style?: CSSProperties;
|
|
73
71
|
/** Whether the tooltip is open or not */
|
|
74
72
|
isOpen?: boolean;
|
|
75
|
-
/** Ref to the tooltip, useful for calculating its dimensions */
|
|
76
|
-
ref?: RefObject<HTMLDivElement | null>;
|
|
77
73
|
/** The z-index of the tooltip */
|
|
78
74
|
zIndex?: number;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Props for the Tooltip message element, extending the native props of its
|
|
78
|
+
* `<div>` root — so `id`, `className`, `style`, `ref`, and native handlers such
|
|
79
|
+
* as `onPointerEnter`/`onFocus` are all forwarded to the DOM node.
|
|
80
|
+
*/
|
|
81
|
+
export type TooltipProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
82
|
+
export {};
|
|
82
83
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAC1E;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,wDAAwD;IACxD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oDAAoD;IACpD,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,kBAAkB,EAClB,UAAU,GAAG,SAAS,CACvB,CAAC;AACF,KAAK,QAAQ,GAAG;IACd,qBAAqB;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
3
|
/** The `Card` elements to lay out. */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
/**
|
|
@@ -10,5 +10,8 @@ export interface CardsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
* @default 1
|
|
11
11
|
*/
|
|
12
12
|
cardSpan?: number;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
|
+
/** Props for the Cards group, extending the native props of its `<div>` root. */
|
|
15
|
+
export type CardsProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
16
|
+
export {};
|
|
14
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,sCAAsC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,iFAAiF;AACjF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the KeyboardKeys group. No DS-owned props — it renders a plain
|
|
4
|
+
* `<kbd>` root, so it accepts every native `<kbd>` prop.
|
|
5
|
+
*/
|
|
6
|
+
export type KeyboardKeysProps = ComponentProps<"kbd">;
|
|
4
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/KeyboardKeys/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/KeyboardKeys/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
2
|
import type { EventProps } from "../Event/types.js";
|
|
3
|
+
type OwnProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Timeline.Event elements
|
|
6
|
+
* Maps to DSL cardinality: 0..* (zero or more)
|
|
7
|
+
*/
|
|
8
|
+
children?: ReactElement<EventProps> | ReactElement<EventProps>[] | null;
|
|
9
|
+
};
|
|
3
10
|
/**
|
|
4
11
|
* Props for the Timeline.Content subcomponent
|
|
5
12
|
*
|
|
@@ -11,11 +18,6 @@ import type { EventProps } from "../Event/types.js";
|
|
|
11
18
|
* - edges:
|
|
12
19
|
* - [0] timeline-event (cardinality: 0..*, slotName: default)
|
|
13
20
|
*/
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
* Timeline.Event elements
|
|
17
|
-
* Maps to DSL cardinality: 0..* (zero or more)
|
|
18
|
-
*/
|
|
19
|
-
children?: ReactElement<EventProps> | ReactElement<EventProps>[] | null;
|
|
20
|
-
}
|
|
21
|
+
export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
22
|
+
export {};
|
|
21
23
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,KAAK,QAAQ,GAAG;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,EAAE,GAAG,IAAI,CAAC;CACzE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
* Props for the Timeline.Event subcomponent
|
|
5
|
-
*
|
|
6
|
-
* @implements ds:global.subcomponent.timeline-event
|
|
7
|
-
*
|
|
8
|
-
* Anatomy (from DSL):
|
|
9
|
-
* - layout.type: flow
|
|
10
|
-
* - layout.direction: horizontal
|
|
11
|
-
* - edges:
|
|
12
|
-
* - [0] actor (role: actor, cardinality: 0..1)
|
|
13
|
-
* - [1] datetime (role: datetime, cardinality: 0..1)
|
|
14
|
-
* - [2] payload (role: payload, cardinality: 1, slotName: default)
|
|
15
|
-
*/
|
|
16
|
-
export interface EventProps extends HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
type OwnProps = {
|
|
17
4
|
/**
|
|
18
5
|
* Actor/user who performed the action
|
|
19
6
|
* Maps to DSL role: actor (cardinality: 0..1)
|
|
@@ -34,5 +21,20 @@ export interface EventProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
34
21
|
* Maps to DSL hasModifierFamily: criticality
|
|
35
22
|
*/
|
|
36
23
|
criticality?: ModifierFamily<"criticality">;
|
|
37
|
-
}
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Props for the Timeline.Event subcomponent
|
|
27
|
+
*
|
|
28
|
+
* @implements ds:global.subcomponent.timeline-event
|
|
29
|
+
*
|
|
30
|
+
* Anatomy (from DSL):
|
|
31
|
+
* - layout.type: flow
|
|
32
|
+
* - layout.direction: horizontal
|
|
33
|
+
* - edges:
|
|
34
|
+
* - [0] actor (role: actor, cardinality: 0..1)
|
|
35
|
+
* - [1] datetime (role: datetime, cardinality: 0..1)
|
|
36
|
+
* - [2] payload (role: payload, cardinality: 1, slotName: default)
|
|
37
|
+
*/
|
|
38
|
+
export type EventProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
39
|
+
export {};
|
|
38
40
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Event/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
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/pattern/Timeline/common/Event/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;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
2
|
import type { ContentProps } from "./common/Content/types.js";
|
|
3
3
|
import type { EventProps } from "./common/Event/types.js";
|
|
4
|
+
type OwnProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Timeline.Content element (required)
|
|
7
|
+
* Maps to DSL edges[1]: timeline-content (cardinality: 1)
|
|
8
|
+
*/
|
|
9
|
+
children: ReactElement<ContentProps>;
|
|
10
|
+
};
|
|
4
11
|
/**
|
|
5
12
|
* Props for the Timeline component
|
|
6
13
|
*
|
|
@@ -16,13 +23,7 @@ import type { EventProps } from "./common/Event/types.js";
|
|
|
16
23
|
*
|
|
17
24
|
* Note: Timeline.Header and Timeline.Footer are not yet implemented.
|
|
18
25
|
*/
|
|
19
|
-
export
|
|
20
|
-
/**
|
|
21
|
-
* Timeline.Content element (required)
|
|
22
|
-
* Maps to DSL edges[1]: timeline-content (cardinality: 1)
|
|
23
|
-
*/
|
|
24
|
-
children: ReactElement<ContentProps>;
|
|
25
|
-
}
|
|
26
|
+
export type TimelineProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
26
27
|
/**
|
|
27
28
|
* Timeline component type with attached subcomponents
|
|
28
29
|
*/
|
|
@@ -30,4 +31,5 @@ export type TimelineComponent = ((props: TimelineProps) => ReactElement) & {
|
|
|
30
31
|
Content: (props: ContentProps) => ReactElement;
|
|
31
32
|
Event: (props: EventProps) => ReactElement;
|
|
32
33
|
};
|
|
34
|
+
export {};
|
|
33
35
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Timeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Timeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd;;;OAGG;IACH,QAAQ,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,EAAE,aAAa,KAAK,YAAY,CAAC,GAAG;IACzE,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,YAAY,CAAC;IAC/C,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,YAAY,CAAC;CAC5C,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/** Root path to the icons (default: /icons). Must be exposed to the user. */
|
|
4
|
+
rootPath?: string;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
|
-
* The Spinner has no props of its own beyond those of the
|
|
4
|
-
* `<svg>`: it always renders the `spinner` icon and animates
|
|
5
|
-
* name is fixed, so it is not part of the public surface.
|
|
7
|
+
* The Spinner has no props of its own beyond `rootPath` and those of the
|
|
8
|
+
* underlying icon `<svg>`: it always renders the `spinner` icon and animates
|
|
9
|
+
* it. The `icon` name is fixed, so it is not part of the public surface.
|
|
6
10
|
*
|
|
7
11
|
* Like `Icon`, the Spinner is decorative by default (`aria-hidden="true"`).
|
|
8
12
|
* Pass an `aria-label` (or `aria-labelledby`) when the spinner is the only
|
|
@@ -10,8 +14,6 @@ import type { SVGAttributes } from "react";
|
|
|
10
14
|
* When the spinner sits inside a control that already announces its busy
|
|
11
15
|
* state (e.g. a submitting Button), leave it decorative.
|
|
12
16
|
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
rootPath?: string;
|
|
16
|
-
}
|
|
17
|
+
export type SpinnerProps = OwnProps & Omit<ComponentProps<"svg">, keyof OwnProps>;
|
|
18
|
+
export {};
|
|
17
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/Spinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/Spinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-ds-global",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,25 +44,25 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@canonical/design-tokens": "0.8.1",
|
|
47
|
-
"@canonical/ds-assets": "^0.
|
|
48
|
-
"@canonical/react-hooks": "^0.
|
|
49
|
-
"@canonical/storybook-config": "^0.
|
|
50
|
-
"@canonical/styles": "^0.
|
|
51
|
-
"@canonical/utils": "^0.
|
|
47
|
+
"@canonical/ds-assets": "^0.37.0",
|
|
48
|
+
"@canonical/react-hooks": "^0.37.0",
|
|
49
|
+
"@canonical/storybook-config": "^0.37.0",
|
|
50
|
+
"@canonical/styles": "^0.37.0",
|
|
51
|
+
"@canonical/utils": "^0.37.0",
|
|
52
52
|
"react": "^19.2.4",
|
|
53
53
|
"react-dom": "^19.2.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@biomejs/biome": "2.4.9",
|
|
57
|
-
"@canonical/biome-config": "^0.
|
|
58
|
-
"@canonical/ds-types": "^0.
|
|
59
|
-
"@canonical/router-core": "^0.
|
|
60
|
-
"@canonical/router-react": "^0.
|
|
61
|
-
"@canonical/storybook-addon-utils": "^0.
|
|
62
|
-
"@canonical/storybook-helpers": "^0.
|
|
63
|
-
"@canonical/typescript-config-react": "^0.
|
|
64
|
-
"@canonical/vitest-config-react": "^0.
|
|
65
|
-
"@canonical/webarchitect": "^0.
|
|
57
|
+
"@canonical/biome-config": "^0.37.0",
|
|
58
|
+
"@canonical/ds-types": "^0.37.0",
|
|
59
|
+
"@canonical/router-core": "^0.37.0",
|
|
60
|
+
"@canonical/router-react": "^0.37.0",
|
|
61
|
+
"@canonical/storybook-addon-utils": "^0.37.0",
|
|
62
|
+
"@canonical/storybook-helpers": "^0.37.0",
|
|
63
|
+
"@canonical/typescript-config-react": "^0.37.0",
|
|
64
|
+
"@canonical/vitest-config-react": "^0.37.0",
|
|
65
|
+
"@canonical/webarchitect": "^0.37.0",
|
|
66
66
|
"@chromatic-com/storybook": "^5.0.1",
|
|
67
67
|
"@storybook/addon-docs": "^10.3.1",
|
|
68
68
|
"@storybook/react-vite": "^10.3.1",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"vite": "^8.0.1",
|
|
81
81
|
"vitest": "^4.0.18"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "ac8383bdb4be1bcd6fa6c4960a1e3d78c0279688"
|
|
84
84
|
}
|