@canonical/react-ds-global 0.38.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.
- package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js +1 -6
- package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js.map +1 -1
- package/dist/esm/lib/component/Chip/Chip.js +2 -6
- package/dist/esm/lib/component/Chip/Chip.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +3 -7
- package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js +2 -4
- package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +1 -4
- package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/styles.css +3 -4
- package/dist/esm/lib/component/Icon/Icon.js +1 -3
- package/dist/esm/lib/component/Icon/Icon.js.map +1 -1
- package/dist/esm/lib/component/Tooltip/Tooltip.js +1 -5
- package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/lib/component/Tooltip/TooltipEngine.js +64 -0
- package/dist/esm/lib/component/Tooltip/TooltipEngine.js.map +1 -0
- package/dist/esm/lib/component/Tooltip/index.js +1 -0
- package/dist/esm/lib/component/Tooltip/index.js.map +1 -1
- package/dist/esm/lib/component/Tooltip/withTooltip.js +11 -63
- package/dist/esm/lib/component/Tooltip/withTooltip.js.map +1 -1
- package/dist/esm/lib/group/Cards/Cards.js +1 -1
- package/dist/esm/lib/group/Cards/styles.css +1 -1
- package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -1
- package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js +26 -6
- package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js.map +1 -1
- package/dist/esm/lib/pattern/Modal/common/Header/styles.css +31 -3
- package/dist/esm/lib/pattern/Modal/withModal.js +1 -1
- package/dist/esm/lib/subcomponent/Spinner/Spinner.js +1 -3
- package/dist/esm/lib/subcomponent/Spinner/Spinner.js.map +1 -1
- package/dist/types/lib/_work_in_progress/Announcement/Announcement.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/CategoriesSection.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/Category.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/fixtures.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/ChatSection/ChatSection.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/DescriptionSection/DescriptionSection.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/IconSection/IconSection.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Label/Label.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Link/Link.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Rule/Rule.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Section/Section.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/SkipLink/SkipLink.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/TSection/TSection.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/GridCard/GridCard.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/InnerGridDemo.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/SettingsView/SettingsView.d.ts.map +1 -1
- package/dist/types/lib/component/Accordion/Accordion.d.ts +5 -21
- package/dist/types/lib/component/Accordion/Accordion.d.ts.map +1 -1
- package/dist/types/lib/component/Accordion/common/Item/Item.d.ts +4 -15
- package/dist/types/lib/component/Accordion/common/Item/Item.d.ts.map +1 -1
- package/dist/types/lib/component/Badge/Badge.d.ts.map +1 -1
- package/dist/types/lib/component/Badge/hooks/useBadge.d.ts.map +1 -1
- package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts +5 -21
- package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts +4 -12
- package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts.map +1 -1
- package/dist/types/lib/component/Button/Button.d.ts.map +1 -1
- package/dist/types/lib/component/Card/Card.d.ts +8 -37
- package/dist/types/lib/component/Card/Card.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Content/Content.d.ts +4 -9
- package/dist/types/lib/component/Card/common/Content/Content.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Footer/Footer.d.ts +4 -10
- package/dist/types/lib/component/Card/common/Footer/Footer.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Header/Header.d.ts +4 -9
- package/dist/types/lib/component/Card/common/Header/Header.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Image/Image.d.ts +4 -11
- package/dist/types/lib/component/Card/common/Image/Image.d.ts.map +1 -1
- package/dist/types/lib/component/Chip/Chip.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts +1 -1
- package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/types.d.ts +1 -1
- package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -1
- package/dist/types/lib/component/Icon/Icon.d.ts.map +1 -1
- package/dist/types/lib/component/InlineCode/InlineCode.d.ts.map +1 -1
- package/dist/types/lib/component/KeyboardKey/KeyboardKey.d.ts.map +1 -1
- package/dist/types/lib/component/KeyboardKey/constants.d.ts +33 -33
- package/dist/types/lib/component/KeyboardKey/constants.d.ts.map +1 -1
- package/dist/types/lib/component/Popover/Popover.d.ts.map +1 -1
- package/dist/types/lib/component/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/lib/component/Tabs/common/Item/Item.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/Tile.d.ts +6 -21
- package/dist/types/lib/component/Tile/Tile.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/common/Content/Content.d.ts +4 -11
- package/dist/types/lib/component/Tile/common/Content/Content.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/common/Header/Header.d.ts +4 -11
- package/dist/types/lib/component/Tile/common/Header/Header.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/TooltipEngine.d.ts +16 -0
- package/dist/types/lib/component/Tooltip/TooltipEngine.d.ts.map +1 -0
- package/dist/types/lib/component/Tooltip/index.d.ts +1 -0
- package/dist/types/lib/component/Tooltip/index.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/withTooltip.d.ts +9 -3
- package/dist/types/lib/component/Tooltip/withTooltip.d.ts.map +1 -1
- package/dist/types/lib/group/Cards/Cards.d.ts +1 -1
- package/dist/types/lib/group/Cards/Cards.d.ts.map +1 -1
- package/dist/types/lib/group/Cards/types.d.ts +2 -2
- package/dist/types/lib/group/KeyboardKeys/KeyboardKeys.d.ts.map +1 -1
- package/dist/types/lib/hooks/useContextualMenu/isMenuSeparator.d.ts.map +1 -1
- package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -1
- package/dist/types/lib/hooks/useDelayedToggle/useDelayedToggle.d.ts.map +1 -1
- package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts.map +1 -1
- package/dist/types/lib/hooks/useIsMounted/useIsMounted.d.ts.map +1 -1
- package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts +10 -5
- package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/Context.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/Provider.d.ts +7 -58
- package/dist/types/lib/pattern/Modal/Provider.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts +4 -12
- package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts +4 -13
- package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts +4 -19
- package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/hooks/useModalState.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/withModal.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/Timeline.d.ts +6 -23
- package/dist/types/lib/pattern/Timeline/Timeline.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/common/Content/Content.d.ts +4 -11
- package/dist/types/lib/pattern/Timeline/common/Content/Content.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/common/Event/Event.d.ts +4 -12
- package/dist/types/lib/pattern/Timeline/common/Event/Event.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Spinner/Spinner.d.ts.map +1 -1
- package/package.json +21 -21
|
@@ -69,39 +69,6 @@ export declare const NAVIGATION_KEYS: {
|
|
|
69
69
|
};
|
|
70
70
|
/** All key display labels, derived from individual key groups */
|
|
71
71
|
export declare const KEY_LABELS: {
|
|
72
|
-
readonly up: "↑";
|
|
73
|
-
readonly down: "↓";
|
|
74
|
-
readonly left: "←";
|
|
75
|
-
readonly right: "→";
|
|
76
|
-
readonly home: "Home";
|
|
77
|
-
readonly end: "End";
|
|
78
|
-
readonly pageup: "PgUp";
|
|
79
|
-
readonly pagedown: "PgDn";
|
|
80
|
-
readonly shift: "Shift";
|
|
81
|
-
readonly ctrl: "Ctrl";
|
|
82
|
-
readonly alt: "Alt";
|
|
83
|
-
readonly cmd: "Cmd";
|
|
84
|
-
readonly option: "Option";
|
|
85
|
-
readonly meta: "Meta";
|
|
86
|
-
readonly capslock: "Caps Lock";
|
|
87
|
-
readonly tab: "Tab";
|
|
88
|
-
readonly space: "Space";
|
|
89
|
-
readonly backspace: "Backspace";
|
|
90
|
-
readonly delete: "Del";
|
|
91
|
-
readonly escape: "Esc";
|
|
92
|
-
readonly enter: "↵";
|
|
93
|
-
readonly f1: "F1";
|
|
94
|
-
readonly f2: "F2";
|
|
95
|
-
readonly f3: "F3";
|
|
96
|
-
readonly f4: "F4";
|
|
97
|
-
readonly f5: "F5";
|
|
98
|
-
readonly f6: "F6";
|
|
99
|
-
readonly f7: "F7";
|
|
100
|
-
readonly f8: "F8";
|
|
101
|
-
readonly f9: "F9";
|
|
102
|
-
readonly f10: "F10";
|
|
103
|
-
readonly f11: "F11";
|
|
104
|
-
readonly f12: "F12";
|
|
105
72
|
readonly a: "A";
|
|
106
73
|
readonly b: "B";
|
|
107
74
|
readonly c: "C";
|
|
@@ -128,6 +95,39 @@ export declare const KEY_LABELS: {
|
|
|
128
95
|
readonly x: "X";
|
|
129
96
|
readonly y: "Y";
|
|
130
97
|
readonly z: "Z";
|
|
98
|
+
readonly f1: "F1";
|
|
99
|
+
readonly f2: "F2";
|
|
100
|
+
readonly f3: "F3";
|
|
101
|
+
readonly f4: "F4";
|
|
102
|
+
readonly f5: "F5";
|
|
103
|
+
readonly f6: "F6";
|
|
104
|
+
readonly f7: "F7";
|
|
105
|
+
readonly f8: "F8";
|
|
106
|
+
readonly f9: "F9";
|
|
107
|
+
readonly f10: "F10";
|
|
108
|
+
readonly f11: "F11";
|
|
109
|
+
readonly f12: "F12";
|
|
110
|
+
readonly tab: "Tab";
|
|
111
|
+
readonly space: "Space";
|
|
112
|
+
readonly backspace: "Backspace";
|
|
113
|
+
readonly delete: "Del";
|
|
114
|
+
readonly escape: "Esc";
|
|
115
|
+
readonly enter: "↵";
|
|
116
|
+
readonly shift: "Shift";
|
|
117
|
+
readonly ctrl: "Ctrl";
|
|
118
|
+
readonly alt: "Alt";
|
|
119
|
+
readonly cmd: "Cmd";
|
|
120
|
+
readonly option: "Option";
|
|
121
|
+
readonly meta: "Meta";
|
|
122
|
+
readonly capslock: "Caps Lock";
|
|
123
|
+
readonly up: "↑";
|
|
124
|
+
readonly down: "↓";
|
|
125
|
+
readonly left: "←";
|
|
126
|
+
readonly right: "→";
|
|
127
|
+
readonly home: "Home";
|
|
128
|
+
readonly end: "End";
|
|
129
|
+
readonly pageup: "PgUp";
|
|
130
|
+
readonly pagedown: "PgDn";
|
|
131
131
|
};
|
|
132
132
|
/** Accessible labels for keys whose label is a symbol */
|
|
133
133
|
export declare const ARIA_LABELS: Partial<Record<keyof typeof KEY_LABELS, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/KeyboardKey/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/KeyboardKey/constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAOtB;;;;;;;;;GASG;AACH,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAOtB;;;;;;;;;GASG;AACH,QAAA,MAAM,OAAO,iKAcV,YAAY,KAAG,KAAK,CAAC,YAiFvB,CAAC;eAEa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,sFAOP,SAAS,KAAG,KAAK,CAAC,YAuBpB,CAAC;eAEa,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,IAAI,qCAIP,SAAS,KAAG,KAAK,CAAC,YA0BpB,CAAC;eAEa,IAAI"}
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import { Content, Header } from "./common/index.js";
|
|
2
3
|
import type { TileProps } from "./types.js";
|
|
3
4
|
import "./styles.css";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* `import { Tile } from "@canonical/react-ds-global";`
|
|
11
|
-
*
|
|
12
|
-
* @implements ds:global.component.tile
|
|
13
|
-
*/
|
|
14
|
-
declare const Tile: {
|
|
15
|
-
({ children, className, ...props }: TileProps): React.ReactElement;
|
|
16
|
-
Header: {
|
|
17
|
-
({ children, className, ...props }: import("./common/index.js").HeaderProps): React.ReactElement;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
Content: {
|
|
21
|
-
({ children, className, ...props }: import("./common/index.js").ContentProps): React.ReactElement;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
5
|
+
declare function Tile({ children, className, ...props }: TileProps): React.ReactElement;
|
|
6
|
+
declare namespace Tile {
|
|
7
|
+
export { Header };
|
|
8
|
+
export { Content };
|
|
9
|
+
}
|
|
25
10
|
export default Tile;
|
|
26
11
|
//# sourceMappingURL=Tile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;sBAiBR,EACZ,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;eAalB,IAAI"}
|
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @implements ds:global.subcomponent.tile-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/component/Tile/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;
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/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;;;;eAWrB,OAAO"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { HeaderProps } from "./types.js";
|
|
3
3
|
import "./styles.css";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @implements ds:global.subcomponent.tile-header
|
|
10
|
-
*/
|
|
11
|
-
declare const Header: {
|
|
12
|
-
({ children, className, ...props }: HeaderProps): React.ReactElement;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
4
|
+
declare function Header({ children, className, ...props }: HeaderProps): React.ReactElement;
|
|
5
|
+
declare namespace Header {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
15
8
|
export default Header;
|
|
16
9
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/common/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tile/common/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,cAAc,CAAC;wBAWN,EACd,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY;;;;eAWpB,MAAM"}
|
|
@@ -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,
|
|
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,mEAQV,YAAY,KAAG,KAAK,CAAC,YA6BvB,CAAC;eAEa,OAAO"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { TooltipEngineProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* The tooltip engine: wraps a target element with a hover/focus tooltip. It
|
|
6
|
+
* drives {@link useDisclosure} in `hover` mode, portals the message to the
|
|
7
|
+
* client only, positions it against the target span, and points the arrow.
|
|
8
|
+
* {@link withTooltip} builds on this; render it directly when the message
|
|
9
|
+
* must follow prop state (e.g. a toggle whose tooltip names the current
|
|
10
|
+
* action).
|
|
11
|
+
*
|
|
12
|
+
* `import { TooltipEngine } from "@canonical/react-ds-global";`
|
|
13
|
+
*/
|
|
14
|
+
declare const TooltipEngine: ({ children, style, className, Message, icon, open, distance, targetElementId, targetElementClassName, targetElementStyle, messageElementClassName, messageElementStyle, parentElement, autoFit, ...props }: TooltipEngineProps) => ReactElement;
|
|
15
|
+
export default TooltipEngine;
|
|
16
|
+
//# sourceMappingURL=TooltipEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipEngine.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/TooltipEngine.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAIzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,+MAgBhB,kBAAkB,KAAG,YAgGvB,CAAC;eAEa,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type { ComponentType, FC, ReactNode } from "react";
|
|
2
2
|
import type { WithTooltipOptions } from "./types.js";
|
|
3
|
-
import "./styles.css";
|
|
4
3
|
/**
|
|
5
4
|
* A higher-order component that wraps a component with a tooltip. It is the
|
|
6
5
|
* single public tooltip primitive: it owns the engine (hover-mode
|
|
7
|
-
* {@link useDisclosure}, client-only portal, arrow positioning) and renders
|
|
8
|
-
* wrapped component as the tooltip target.
|
|
6
|
+
* {@link useDisclosure}, client-only portal, arrow positioning) and renders
|
|
7
|
+
* the wrapped component as the tooltip target.
|
|
8
|
+
*
|
|
9
|
+
* `Message` is fixed at wrap time — not reactive to the wrapped component's
|
|
10
|
+
* props. When the message must follow prop state (e.g. a toggle whose
|
|
11
|
+
* tooltip names the current action), render {@link TooltipEngine} directly
|
|
12
|
+
* with a live `Message`; one stable element type also keeps the target
|
|
13
|
+
* mounted across state changes, preserving focus and hover state.
|
|
14
|
+
*
|
|
9
15
|
* @param Component The component type to wrap.
|
|
10
16
|
* @param Message The content of the tooltip.
|
|
11
17
|
* @param popupProps Tooltip options — positioning, sizing, timing, plus `open`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/withTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"withTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/withTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,WAAW,GAAI,MAAM,SAAS,MAAM,aAC7B,aAAa,CAAC,MAAM,CAAC,WACvB,SAAS,eACN,kBAAkB,KAC7B,EAAE,CAAC,MAAM,CAeX,CAAC;AAEF;;GAEG;eACY,WAAW"}
|
|
@@ -19,7 +19,7 @@ import "./styles.css";
|
|
|
19
19
|
* tracks. See `styles.css` for the full model.
|
|
20
20
|
*
|
|
21
21
|
* **`cardSpan`** is the number of master columns each card spans (not a pixel
|
|
22
|
-
* width) — use multiples of 2/4 so cards tile evenly into the 4/8/
|
|
22
|
+
* width) — use multiples of 2/4 so cards tile evenly into the 4/8/16-column
|
|
23
23
|
* responsive grid.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cards.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/Cards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Cards.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/Cards/Cards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,KAAK,uDAMR,UAAU,KAAG,YAmBf,CAAC;eAEa,KAAK"}
|
|
@@ -5,8 +5,8 @@ type OwnProps = {
|
|
|
5
5
|
/**
|
|
6
6
|
* How many master-grid columns each card spans (NOT a pixel width). Fed to the
|
|
7
7
|
* `--card-span` CSS custom property. Larger spans mean fewer, wider cards per
|
|
8
|
-
* row on the 4/8/
|
|
9
|
-
* per row, `2` =
|
|
8
|
+
* row on the 4/8/16-column responsive grid — e.g. on a 16-column grid `1` = 16
|
|
9
|
+
* per row, `2` = 8, `4` = 4.
|
|
10
10
|
* @default 1
|
|
11
11
|
*/
|
|
12
12
|
cardSpan?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardKeys.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/KeyboardKeys/KeyboardKeys.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"KeyboardKeys.d.ts","sourceRoot":"","sources":["../../../../../src/lib/group/KeyboardKeys/KeyboardKeys.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,YAAY,sCAIf,iBAAiB,KAAG,KAAK,CAAC,YAS5B,CAAC;eAEa,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMenuSeparator.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/isMenuSeparator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3D;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"isMenuSeparator.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/isMenuSeparator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3D;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe,UACZ,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,KAClC,KAAK,IAAI,aAAa,GAAG,KAAK,CAAC,aAAa,CACA,CAAC;eAEjC,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/useContextualMenu.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAGV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AA6BpB;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useContextualMenu/useContextualMenu.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAGV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AA6BpB;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,+CAKpB,sBAAsB,KAAG,uBAkM3B,CAAC;eAEa,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDelayedToggle.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useDelayedToggle/useDelayedToggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEhF;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useDelayedToggle.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useDelayedToggle/useDelayedToggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEhF;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,kEAKnB,qBAAqB,KAAG,sBAkD1B,CAAC;eAEa,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisclosure.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useDisclosure/useDisclosure.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAIV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,SAAS,WAAW,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"useDisclosure.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useDisclosure/useDisclosure.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAIV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,SAAS,WAAW,GAAG,WAAW,8KAe7D,kBAAkB,KAAG,mBAAmB,CAAC,OAAO,CAqOlD,CAAC;eAEa,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsMounted.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/useIsMounted.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,YAAY,QAAO,kBAQxB,CAAC;
|
|
1
|
+
{"version":3,"file":"useIsMounted.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useIsMounted/useIsMounted.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,YAAY,QAAO,kBAQxB,CAAC;eAEa,YAAY"}
|
|
@@ -10,11 +10,16 @@ export declare const toPlacement: (entry: WindowFitmentSide | WindowFitmentPlace
|
|
|
10
10
|
* Map a LOGICAL placement to a PHYSICAL one for a writing direction. The inline
|
|
11
11
|
* axis follows `dir` (mirrors in RTL); the block axis is dir-invariant.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* `
|
|
17
|
-
*
|
|
13
|
+
* `align` positions the popup along its side's CROSS axis, so whether it is
|
|
14
|
+
* dir-dependent follows from the side:
|
|
15
|
+
*
|
|
16
|
+
* - An `inline-*` side has a block (vertical) cross-axis. `start` is the top
|
|
17
|
+
* edge in every writing direction, so align passes through UNMODIFIED.
|
|
18
|
+
* - A `block-*` side has an INLINE (horizontal) cross-axis — the reading axis.
|
|
19
|
+
* There `start` means the LEADING edge: the left edge in LTR, the RIGHT edge
|
|
20
|
+
* in RTL. So `start`/`end` are mirrored here for RTL, which is what makes a
|
|
21
|
+
* leading-aligned dropdown (`MENU_ROOT_PLACEMENT`) open from the trigger's
|
|
22
|
+
* right edge in RTL instead of its left. `center` is its own mirror.
|
|
18
23
|
*/
|
|
19
24
|
export declare const resolveLogicalPlacement: (placement: WindowFitmentPlacement, dir: "ltr" | "rtl") => PhysicalPlacement;
|
|
20
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowFitment.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useWindowFitment/useWindowFitment.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,WAAW,EAGX,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,iFAAiF;AACjF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,sBAAsB,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useWindowFitment.d.ts","sourceRoot":"","sources":["../../../../../src/lib/hooks/useWindowFitment/useWindowFitment.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,WAAW,EAGX,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,iFAAiF;AACjF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,sBAAsB,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,WAAW,UACf,iBAAiB,GAAG,sBAAsB,KAChD,sBACmE,CAAC;AAEvE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,cACvB,sBAAsB,OAC5B,KAAK,GAAG,KAAK,KACjB,iBAgCF,CAAC;AAcF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,cAClB,sBAAsB,cACrB,OAAO,aACR,OAAO;AAClB;;;;;;;;GAQG;gBACY;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAI3C,WAmBF,CAAC;AAEF,QAAA,MAAM,gBAAgB,GACpB,OAAO,SAAS,WAAW,GAAG,WAAW,EACzC,MAAM,SAAS,WAAW,GAAG,cAAc,2IAgB1C,qBAAqB,KAAG,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAgZhE,CAAC;eAEa,gBAAgB"}
|
|
@@ -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;
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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;
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
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,
|
|
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,
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
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"}
|