@canonical/react-ds-global 0.10.0-experimental.8
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/README.md +28 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/index.js +2 -0
- package/dist/esm/lib/index.js.map +1 -0
- package/dist/esm/lib/types/index.js +2 -0
- package/dist/esm/lib/types/index.js.map +1 -0
- package/dist/esm/lib/types/polymorphic.js +2 -0
- package/dist/esm/lib/types/polymorphic.js.map +1 -0
- package/dist/esm/storybook/decorators.js +16 -0
- package/dist/esm/storybook/decorators.js.map +1 -0
- package/dist/esm/ui/Badge/Badge.js +21 -0
- package/dist/esm/ui/Badge/Badge.js.map +1 -0
- package/dist/esm/ui/Badge/hooks/useBadge.js +23 -0
- package/dist/esm/ui/Badge/hooks/useBadge.js.map +1 -0
- package/dist/esm/ui/Badge/index.js +4 -0
- package/dist/esm/ui/Badge/index.js.map +1 -0
- package/dist/esm/ui/Badge/styles.css +21 -0
- package/dist/esm/ui/Badge/types.js +3 -0
- package/dist/esm/ui/Badge/types.js.map +1 -0
- package/dist/esm/ui/Button/Button.js +10 -0
- package/dist/esm/ui/Button/Button.js.map +1 -0
- package/dist/esm/ui/Button/index.js +2 -0
- package/dist/esm/ui/Button/index.js.map +1 -0
- package/dist/esm/ui/Button/styles.css +63 -0
- package/dist/esm/ui/Button/types.js +12 -0
- package/dist/esm/ui/Button/types.js.map +1 -0
- package/dist/esm/ui/Card/Card.js +16 -0
- package/dist/esm/ui/Card/Card.js.map +1 -0
- package/dist/esm/ui/Card/common/Image/Image.js +14 -0
- package/dist/esm/ui/Card/common/Image/Image.js.map +1 -0
- package/dist/esm/ui/Card/common/Image/index.js +2 -0
- package/dist/esm/ui/Card/common/Image/index.js.map +1 -0
- package/dist/esm/ui/Card/common/Image/styles.css +7 -0
- package/dist/esm/ui/Card/common/Image/types.js +3 -0
- package/dist/esm/ui/Card/common/Image/types.js.map +1 -0
- package/dist/esm/ui/Card/common/Section/Section.js +13 -0
- package/dist/esm/ui/Card/common/Section/Section.js.map +1 -0
- package/dist/esm/ui/Card/common/Section/index.js +2 -0
- package/dist/esm/ui/Card/common/Section/index.js.map +1 -0
- package/dist/esm/ui/Card/common/Section/styles.css +6 -0
- package/dist/esm/ui/Card/common/Section/types.js +3 -0
- package/dist/esm/ui/Card/common/Section/types.js.map +1 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/ThumbnailSection.js +14 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/ThumbnailSection.js.map +1 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/index.js +2 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/index.js.map +1 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/styles.css +11 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/types.js +3 -0
- package/dist/esm/ui/Card/common/ThumbnailSection/types.js.map +1 -0
- package/dist/esm/ui/Card/common/index.js +4 -0
- package/dist/esm/ui/Card/common/index.js.map +1 -0
- package/dist/esm/ui/Card/index.js +3 -0
- package/dist/esm/ui/Card/index.js.map +1 -0
- package/dist/esm/ui/Card/styles.css +23 -0
- package/dist/esm/ui/Card/types.js +3 -0
- package/dist/esm/ui/Card/types.js.map +1 -0
- package/dist/esm/ui/Chip/Chip.js +15 -0
- package/dist/esm/ui/Chip/Chip.js.map +1 -0
- package/dist/esm/ui/Chip/index.js +4 -0
- package/dist/esm/ui/Chip/index.js.map +1 -0
- package/dist/esm/ui/Chip/styles.css +86 -0
- package/dist/esm/ui/Chip/types.js +2 -0
- package/dist/esm/ui/Chip/types.js.map +1 -0
- package/dist/esm/ui/Icon/Icon.js +15 -0
- package/dist/esm/ui/Icon/Icon.js.map +1 -0
- package/dist/esm/ui/Icon/index.js +4 -0
- package/dist/esm/ui/Icon/index.js.map +1 -0
- package/dist/esm/ui/Icon/styles.css +12 -0
- package/dist/esm/ui/Icon/types.js +3 -0
- package/dist/esm/ui/Icon/types.js.map +1 -0
- package/dist/esm/ui/Link/Link.js +15 -0
- package/dist/esm/ui/Link/Link.js.map +1 -0
- package/dist/esm/ui/Link/index.js +4 -0
- package/dist/esm/ui/Link/index.js.map +1 -0
- package/dist/esm/ui/Link/styles.css +25 -0
- package/dist/esm/ui/Link/types.js +3 -0
- package/dist/esm/ui/Link/types.js.map +1 -0
- package/dist/esm/ui/Rule/Rule.js +16 -0
- package/dist/esm/ui/Rule/Rule.js.map +1 -0
- package/dist/esm/ui/Rule/index.js +4 -0
- package/dist/esm/ui/Rule/index.js.map +1 -0
- package/dist/esm/ui/Rule/styles.css +16 -0
- package/dist/esm/ui/Rule/types.js +3 -0
- package/dist/esm/ui/Rule/types.js.map +1 -0
- package/dist/esm/ui/Section/Section.js +21 -0
- package/dist/esm/ui/Section/Section.js.map +1 -0
- package/dist/esm/ui/Section/constants.js +2 -0
- package/dist/esm/ui/Section/constants.js.map +1 -0
- package/dist/esm/ui/Section/index.js +4 -0
- package/dist/esm/ui/Section/index.js.map +1 -0
- package/dist/esm/ui/Section/styles.css +50 -0
- package/dist/esm/ui/Section/types.js +3 -0
- package/dist/esm/ui/Section/types.js.map +1 -0
- package/dist/esm/ui/SkipLink/SkipLink.js +20 -0
- package/dist/esm/ui/SkipLink/SkipLink.js.map +1 -0
- package/dist/esm/ui/SkipLink/index.js +4 -0
- package/dist/esm/ui/SkipLink/index.js.map +1 -0
- package/dist/esm/ui/SkipLink/styles.css +21 -0
- package/dist/esm/ui/SkipLink/types.js +3 -0
- package/dist/esm/ui/SkipLink/types.js.map +1 -0
- package/dist/esm/ui/Tooltip/Tooltip.js +18 -0
- package/dist/esm/ui/Tooltip/Tooltip.js.map +1 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/TooltipArea.js +40 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/TooltipArea.js.map +1 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/index.js +4 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/index.js.map +1 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/styles.css +13 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/types.js +2 -0
- package/dist/esm/ui/Tooltip/common/TooltipArea/types.js.map +1 -0
- package/dist/esm/ui/Tooltip/common/index.js +2 -0
- package/dist/esm/ui/Tooltip/common/index.js.map +1 -0
- package/dist/esm/ui/Tooltip/index.js +6 -0
- package/dist/esm/ui/Tooltip/index.js.map +1 -0
- package/dist/esm/ui/Tooltip/styles.css +122 -0
- package/dist/esm/ui/Tooltip/types.js +2 -0
- package/dist/esm/ui/Tooltip/types.js.map +1 -0
- package/dist/esm/ui/Tooltip/withTooltip.js +18 -0
- package/dist/esm/ui/Tooltip/withTooltip.js.map +1 -0
- package/dist/esm/ui/documentation/documentation/Layout/Layout.js +21 -0
- package/dist/esm/ui/documentation/documentation/Layout/Layout.js.map +1 -0
- package/dist/esm/ui/documentation/documentation/Layout/index.js +4 -0
- package/dist/esm/ui/documentation/documentation/Layout/index.js.map +1 -0
- package/dist/esm/ui/documentation/documentation/Layout/types.js +3 -0
- package/dist/esm/ui/documentation/documentation/Layout/types.js.map +1 -0
- package/dist/esm/ui/documentation/index.js +2 -0
- package/dist/esm/ui/documentation/index.js.map +1 -0
- package/dist/esm/ui/hooks/index.js +6 -0
- package/dist/esm/ui/hooks/index.js.map +1 -0
- package/dist/esm/ui/hooks/useDelayedToggle/index.js +3 -0
- package/dist/esm/ui/hooks/useDelayedToggle/index.js.map +1 -0
- package/dist/esm/ui/hooks/useDelayedToggle/types.js +2 -0
- package/dist/esm/ui/hooks/useDelayedToggle/types.js.map +1 -0
- package/dist/esm/ui/hooks/useDelayedToggle/useDelayedToggle.js +45 -0
- package/dist/esm/ui/hooks/useDelayedToggle/useDelayedToggle.js.map +1 -0
- package/dist/esm/ui/hooks/usePopup/index.js +3 -0
- package/dist/esm/ui/hooks/usePopup/index.js.map +1 -0
- package/dist/esm/ui/hooks/usePopup/types.js +2 -0
- package/dist/esm/ui/hooks/usePopup/types.js.map +1 -0
- package/dist/esm/ui/hooks/usePopup/usePopup.js +93 -0
- package/dist/esm/ui/hooks/usePopup/usePopup.js.map +1 -0
- package/dist/esm/ui/hooks/useResizeObserver/index.js +3 -0
- package/dist/esm/ui/hooks/useResizeObserver/index.js.map +1 -0
- package/dist/esm/ui/hooks/useResizeObserver/types.js +2 -0
- package/dist/esm/ui/hooks/useResizeObserver/types.js.map +1 -0
- package/dist/esm/ui/hooks/useResizeObserver/useResizeObserver.js +32 -0
- package/dist/esm/ui/hooks/useResizeObserver/useResizeObserver.js.map +1 -0
- package/dist/esm/ui/hooks/useWindowDimensions/index.js +3 -0
- package/dist/esm/ui/hooks/useWindowDimensions/index.js.map +1 -0
- package/dist/esm/ui/hooks/useWindowDimensions/types.js +2 -0
- package/dist/esm/ui/hooks/useWindowDimensions/types.js.map +1 -0
- package/dist/esm/ui/hooks/useWindowDimensions/useWindowDimensions.js +47 -0
- package/dist/esm/ui/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -0
- package/dist/esm/ui/hooks/useWindowFitment/index.js +3 -0
- package/dist/esm/ui/hooks/useWindowFitment/index.js.map +1 -0
- package/dist/esm/ui/hooks/useWindowFitment/types.js +2 -0
- package/dist/esm/ui/hooks/useWindowFitment/types.js.map +1 -0
- package/dist/esm/ui/hooks/useWindowFitment/useWindowFitment.js +221 -0
- package/dist/esm/ui/hooks/useWindowFitment/useWindowFitment.js.map +1 -0
- package/dist/esm/ui/index.js +11 -0
- package/dist/esm/ui/index.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +2 -0
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/lib/types/index.d.ts +2 -0
- package/dist/types/lib/types/index.d.ts.map +1 -0
- package/dist/types/lib/types/polymorphic.d.ts +24 -0
- package/dist/types/lib/types/polymorphic.d.ts.map +1 -0
- package/dist/types/storybook/decorators.d.ts +15 -0
- package/dist/types/storybook/decorators.d.ts.map +1 -0
- package/dist/types/ui/Badge/Badge.d.ts +11 -0
- package/dist/types/ui/Badge/Badge.d.ts.map +1 -0
- package/dist/types/ui/Badge/hooks/useBadge.d.ts +7 -0
- package/dist/types/ui/Badge/hooks/useBadge.d.ts.map +1 -0
- package/dist/types/ui/Badge/index.d.ts +3 -0
- package/dist/types/ui/Badge/index.d.ts.map +1 -0
- package/dist/types/ui/Badge/types.d.ts +42 -0
- package/dist/types/ui/Badge/types.d.ts.map +1 -0
- package/dist/types/ui/Button/Button.d.ts +6 -0
- package/dist/types/ui/Button/Button.d.ts.map +1 -0
- package/dist/types/ui/Button/index.d.ts +3 -0
- package/dist/types/ui/Button/index.d.ts.map +1 -0
- package/dist/types/ui/Button/types.d.ts +22 -0
- package/dist/types/ui/Button/types.d.ts.map +1 -0
- package/dist/types/ui/Card/Card.d.ts +24 -0
- package/dist/types/ui/Card/Card.d.ts.map +1 -0
- package/dist/types/ui/Card/common/Image/Image.d.ts +14 -0
- package/dist/types/ui/Card/common/Image/Image.d.ts.map +1 -0
- package/dist/types/ui/Card/common/Image/index.d.ts +3 -0
- package/dist/types/ui/Card/common/Image/index.d.ts.map +1 -0
- package/dist/types/ui/Card/common/Image/types.d.ts +5 -0
- package/dist/types/ui/Card/common/Image/types.d.ts.map +1 -0
- package/dist/types/ui/Card/common/Section/Section.d.ts +13 -0
- package/dist/types/ui/Card/common/Section/Section.d.ts.map +1 -0
- package/dist/types/ui/Card/common/Section/index.d.ts +3 -0
- package/dist/types/ui/Card/common/Section/index.d.ts.map +1 -0
- package/dist/types/ui/Card/common/Section/types.d.ts +6 -0
- package/dist/types/ui/Card/common/Section/types.d.ts.map +1 -0
- package/dist/types/ui/Card/common/ThumbnailSection/ThumbnailSection.d.ts +13 -0
- package/dist/types/ui/Card/common/ThumbnailSection/ThumbnailSection.d.ts.map +1 -0
- package/dist/types/ui/Card/common/ThumbnailSection/index.d.ts +3 -0
- package/dist/types/ui/Card/common/ThumbnailSection/index.d.ts.map +1 -0
- package/dist/types/ui/Card/common/ThumbnailSection/types.d.ts +12 -0
- package/dist/types/ui/Card/common/ThumbnailSection/types.d.ts.map +1 -0
- package/dist/types/ui/Card/common/index.d.ts +4 -0
- package/dist/types/ui/Card/common/index.d.ts.map +1 -0
- package/dist/types/ui/Card/index.d.ts +3 -0
- package/dist/types/ui/Card/index.d.ts.map +1 -0
- package/dist/types/ui/Card/types.d.ts +10 -0
- package/dist/types/ui/Card/types.d.ts.map +1 -0
- package/dist/types/ui/Chip/Chip.d.ts +10 -0
- package/dist/types/ui/Chip/Chip.d.ts.map +1 -0
- package/dist/types/ui/Chip/index.d.ts +3 -0
- package/dist/types/ui/Chip/index.d.ts.map +1 -0
- package/dist/types/ui/Chip/types.d.ts +27 -0
- package/dist/types/ui/Chip/types.d.ts.map +1 -0
- package/dist/types/ui/Icon/Icon.d.ts +13 -0
- package/dist/types/ui/Icon/Icon.d.ts.map +1 -0
- package/dist/types/ui/Icon/index.d.ts +3 -0
- package/dist/types/ui/Icon/index.d.ts.map +1 -0
- package/dist/types/ui/Icon/types.d.ts +13 -0
- package/dist/types/ui/Icon/types.d.ts.map +1 -0
- package/dist/types/ui/Link/Link.d.ts +10 -0
- package/dist/types/ui/Link/Link.d.ts.map +1 -0
- package/dist/types/ui/Link/index.d.ts +3 -0
- package/dist/types/ui/Link/index.d.ts.map +1 -0
- package/dist/types/ui/Link/types.d.ts +13 -0
- package/dist/types/ui/Link/types.d.ts.map +1 -0
- package/dist/types/ui/Rule/Rule.d.ts +12 -0
- package/dist/types/ui/Rule/Rule.d.ts.map +1 -0
- package/dist/types/ui/Rule/index.d.ts +3 -0
- package/dist/types/ui/Rule/index.d.ts.map +1 -0
- package/dist/types/ui/Rule/types.d.ts +11 -0
- package/dist/types/ui/Rule/types.d.ts.map +1 -0
- package/dist/types/ui/Section/Section.d.ts +12 -0
- package/dist/types/ui/Section/Section.d.ts.map +1 -0
- package/dist/types/ui/Section/constants.d.ts +2 -0
- package/dist/types/ui/Section/constants.d.ts.map +1 -0
- package/dist/types/ui/Section/index.d.ts +3 -0
- package/dist/types/ui/Section/index.d.ts.map +1 -0
- package/dist/types/ui/Section/types.d.ts +22 -0
- package/dist/types/ui/Section/types.d.ts.map +1 -0
- package/dist/types/ui/SkipLink/SkipLink.d.ts +16 -0
- package/dist/types/ui/SkipLink/SkipLink.d.ts.map +1 -0
- package/dist/types/ui/SkipLink/index.d.ts +3 -0
- package/dist/types/ui/SkipLink/index.d.ts.map +1 -0
- package/dist/types/ui/SkipLink/types.d.ts +16 -0
- package/dist/types/ui/SkipLink/types.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/Tooltip.d.ts +12 -0
- package/dist/types/ui/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/common/TooltipArea/TooltipArea.d.ts +10 -0
- package/dist/types/ui/Tooltip/common/TooltipArea/TooltipArea.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/common/TooltipArea/index.d.ts +3 -0
- package/dist/types/ui/Tooltip/common/TooltipArea/index.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/common/TooltipArea/types.d.ts +35 -0
- package/dist/types/ui/Tooltip/common/TooltipArea/types.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/common/index.d.ts +2 -0
- package/dist/types/ui/Tooltip/common/index.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/index.d.ts +5 -0
- package/dist/types/ui/Tooltip/index.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/types.d.ts +16 -0
- package/dist/types/ui/Tooltip/types.d.ts.map +1 -0
- package/dist/types/ui/Tooltip/withTooltip.d.ts +11 -0
- package/dist/types/ui/Tooltip/withTooltip.d.ts.map +1 -0
- package/dist/types/ui/documentation/documentation/Layout/Layout.d.ts +10 -0
- package/dist/types/ui/documentation/documentation/Layout/Layout.d.ts.map +1 -0
- package/dist/types/ui/documentation/documentation/Layout/index.d.ts +3 -0
- package/dist/types/ui/documentation/documentation/Layout/index.d.ts.map +1 -0
- package/dist/types/ui/documentation/documentation/Layout/types.d.ts +8 -0
- package/dist/types/ui/documentation/documentation/Layout/types.d.ts.map +1 -0
- package/dist/types/ui/documentation/index.d.ts +2 -0
- package/dist/types/ui/documentation/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/index.d.ts +6 -0
- package/dist/types/ui/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/useDelayedToggle/index.d.ts +3 -0
- package/dist/types/ui/hooks/useDelayedToggle/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/useDelayedToggle/types.d.ts +27 -0
- package/dist/types/ui/hooks/useDelayedToggle/types.d.ts.map +1 -0
- package/dist/types/ui/hooks/useDelayedToggle/useDelayedToggle.d.ts +13 -0
- package/dist/types/ui/hooks/useDelayedToggle/useDelayedToggle.d.ts.map +1 -0
- package/dist/types/ui/hooks/usePopup/index.d.ts +3 -0
- package/dist/types/ui/hooks/usePopup/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/usePopup/types.d.ts +65 -0
- package/dist/types/ui/hooks/usePopup/types.d.ts.map +1 -0
- package/dist/types/ui/hooks/usePopup/usePopup.d.ts +19 -0
- package/dist/types/ui/hooks/usePopup/usePopup.d.ts.map +1 -0
- package/dist/types/ui/hooks/useResizeObserver/index.d.ts +3 -0
- package/dist/types/ui/hooks/useResizeObserver/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/useResizeObserver/types.d.ts +7 -0
- package/dist/types/ui/hooks/useResizeObserver/types.d.ts.map +1 -0
- package/dist/types/ui/hooks/useResizeObserver/useResizeObserver.d.ts +8 -0
- package/dist/types/ui/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -0
- package/dist/types/ui/hooks/useWindowDimensions/index.d.ts +3 -0
- package/dist/types/ui/hooks/useWindowDimensions/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/useWindowDimensions/types.d.ts +21 -0
- package/dist/types/ui/hooks/useWindowDimensions/types.d.ts.map +1 -0
- package/dist/types/ui/hooks/useWindowDimensions/useWindowDimensions.d.ts +6 -0
- package/dist/types/ui/hooks/useWindowDimensions/useWindowDimensions.d.ts.map +1 -0
- package/dist/types/ui/hooks/useWindowFitment/index.d.ts +3 -0
- package/dist/types/ui/hooks/useWindowFitment/index.d.ts.map +1 -0
- package/dist/types/ui/hooks/useWindowFitment/types.d.ts +73 -0
- package/dist/types/ui/hooks/useWindowFitment/types.d.ts.map +1 -0
- package/dist/types/ui/hooks/useWindowFitment/useWindowFitment.d.ts +4 -0
- package/dist/types/ui/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +11 -0
- package/dist/types/ui/index.d.ts.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./Badge/index.js";
|
|
2
|
+
export * from "./Button/index.js";
|
|
3
|
+
export * from "./Card/index.js";
|
|
4
|
+
export * from "./Chip/index.js";
|
|
5
|
+
export * from "./Icon/index.js";
|
|
6
|
+
export * from "./Link/index.js";
|
|
7
|
+
export * from "./Rule/index.js";
|
|
8
|
+
export * from "./Section/index.js";
|
|
9
|
+
export * from "./SkipLink/index.js";
|
|
10
|
+
export * from "./Tooltip/index.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComponentProps, ElementType } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Utility type for creating polymorphic components in React.
|
|
4
|
+
* This type combines the props of the specified element type with the component's own props,
|
|
5
|
+
* allowing the component to be rendered as different HTML elements or custom components.
|
|
6
|
+
* @template TOwnProps - The props specific to the underlying component.
|
|
7
|
+
* @template TElement - The element type to render as.
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import type { PolymorphicComponentProps } from '@canonical/ds-types';
|
|
11
|
+
*
|
|
12
|
+
* interface LinkOwnProps {
|
|
13
|
+
* children?: ReactNode;
|
|
14
|
+
* appearance?: "soft";
|
|
15
|
+
* }
|
|
16
|
+
* // A link that is, by default, an "a" element, but can be changed via the `as` prop
|
|
17
|
+
* export type LinkProps<TElement extends ElementType = "a"> =
|
|
18
|
+
* PolymorphicComponentProps<LinkOwnProps, TElement>;
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export type PolymorphicComponentProps<TOwnProps extends Object, TElement extends ElementType> = TOwnProps & {
|
|
22
|
+
as?: TElement;
|
|
23
|
+
} & Omit<ComponentProps<TElement>, keyof TOwnProps>;
|
|
24
|
+
//# sourceMappingURL=polymorphic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/polymorphic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,yBAAyB,CACnC,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,WAAW,IAC1B,SAAS,GAAG;IAAE,EAAE,CAAC,EAAE,QAAQ,CAAA;CAAE,GAAG,IAAI,CACpC,cAAc,CAAC,QAAQ,CAAC,EACxB,MAAM,SAAS,CAChB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
export declare const rtl: () => (Story: ElementType) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const grid: () => (Story: ElementType) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
/**
|
|
5
|
+
* Places the story before a `<main>` element. This is useful for stories that need to be placed before the rest of the page contents in reading order (such as a skip link).
|
|
6
|
+
* @param id - The id of the main element
|
|
7
|
+
* @param children - Content to be rendered inside the main element
|
|
8
|
+
* @TODO this is the first decorator that seems like it may deserve a complex props object, and thus a separate Type.
|
|
9
|
+
* Should the type be declared separately? Should this be a separate file? Should the decorator be simplified somehow?
|
|
10
|
+
*/
|
|
11
|
+
export declare const beforeMain: ({ id, children }: {
|
|
12
|
+
id?: string;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}) => (Story: ElementType) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=decorators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/storybook/decorators.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpD,eAAO,MAAM,GAAG,SAAU,OAAO,WAAW,4CAI3C,CAAC;AAEF,eAAO,MAAM,IAAI,SAAU,OAAO,WAAW,4CAU5C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GACpB,kBAA2B;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,MAChE,OAAO,WAAW,4CAOlB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { BadgeProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* description of the Badge component
|
|
6
|
+
* @returns {React.ReactElement} - Rendered Badge
|
|
7
|
+
* @implements syntax:core:component:badge:1.0.0
|
|
8
|
+
*/
|
|
9
|
+
declare const Badge: ({ value, className, severity, humanizeOptions, pluralizeOptions, ...props }: BadgeProps) => React.ReactElement;
|
|
10
|
+
export default Badge;
|
|
11
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/ui/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAKtB;;;;GAIG;AACH,QAAA,MAAM,KAAK,GAAI,6EAOZ,UAAU,KAAG,KAAK,CAAC,YAkBrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UseBadgeProps, UseBadgeResult } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* A hook to manage a Badge's internal state
|
|
4
|
+
*/
|
|
5
|
+
declare const useBadge: ({ value, humanizeOptions, pluralizeOptions, }: UseBadgeProps) => UseBadgeResult;
|
|
6
|
+
export default useBadge;
|
|
7
|
+
//# sourceMappingURL=useBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBadge.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Badge/hooks/useBadge.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMjE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,+CAIf,aAAa,KAAG,cAsBlB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Badge/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
+
import type { HumanizeNumberOptions, PluralizeOptions } from "@canonical/utils";
|
|
3
|
+
import type { HTMLAttributes } from "react";
|
|
4
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Numeric value to be displayed.
|
|
7
|
+
*/
|
|
8
|
+
value: number;
|
|
9
|
+
/**
|
|
10
|
+
* Visual appearance of the badge, typically reflecting status.
|
|
11
|
+
* Options include:
|
|
12
|
+
* - "positive": Indicates a positive status
|
|
13
|
+
* - "negative": Indicates a negative status
|
|
14
|
+
* - "caution": Indicates a cautionary status
|
|
15
|
+
* - "information": Indicates an informative status
|
|
16
|
+
* // TODO neutral intent is currently defined in a very button-centric way. It should unset other appearances, but it currently applies default button styling.
|
|
17
|
+
* Possibly we will need to revisit this by binding component variables without component name prefix, so that neutral can reset components to their neutral state.
|
|
18
|
+
*
|
|
19
|
+
* When no appearance is specified, uses the default badge styling.
|
|
20
|
+
*/
|
|
21
|
+
severity?: ModifierFamily<"severity">;
|
|
22
|
+
/**
|
|
23
|
+
* Options for humanizing the numeric value displayed in the badge.
|
|
24
|
+
*/
|
|
25
|
+
humanizeOptions?: HumanizeNumberOptions;
|
|
26
|
+
/**
|
|
27
|
+
* Options for the pluralization of the item being counted.
|
|
28
|
+
*/
|
|
29
|
+
pluralizeOptions?: PluralizeOptions;
|
|
30
|
+
}
|
|
31
|
+
export type UseBadgeProps = Pick<BadgeProps, "value" | "humanizeOptions" | "pluralizeOptions">;
|
|
32
|
+
/**
|
|
33
|
+
* Result of the useBadge hook.
|
|
34
|
+
* Contains the formatted display value and ARIA label for accessibility.
|
|
35
|
+
*/
|
|
36
|
+
export interface UseBadgeResult {
|
|
37
|
+
/** Formatted value to be displayed in the badge */
|
|
38
|
+
displayValue: string | number;
|
|
39
|
+
/** Title attribute, for displaying additional context about the badge on hover */
|
|
40
|
+
title: string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Badge/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,eAAe,CAAC;IACjE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,UAAU,EACV,OAAO,GAAG,iBAAiB,GAAG,kBAAkB,CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type Props from "./types.js";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
/** Buttons are clickable elements used to perform an action. */
|
|
4
|
+
declare const Button: ({ id, className, children, style, appearance, ...props }: Props) => React.ReactElement;
|
|
5
|
+
export default Button;
|
|
6
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/ui/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,QAAA,MAAM,MAAM,GAAI,0DAOb,KAAK,KAAG,KAAK,CAAC,YAiBhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,SAAS,IAAI,eAAe,EAC5B,OAAO,IAAI,WAAW,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
+
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
3
|
+
export interface BaseProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
/** Additional CSS classes */
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Button contents.
|
|
9
|
+
* This will also be used for the `aria-label`.
|
|
10
|
+
* If this contains anything other than a string literal (such as a <p> element), you should specify an
|
|
11
|
+
* `aria-label` prop to ensure that the button label is applied properly. Otherwise, the label will be set to [object Object].
|
|
12
|
+
* */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The visual style of the button
|
|
16
|
+
* TODO link button will be a separate component in the future
|
|
17
|
+
* */
|
|
18
|
+
appearance?: ModifierFamily<"severity"> | "base" | "link";
|
|
19
|
+
}
|
|
20
|
+
type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
21
|
+
export default Props;
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Button/types.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,WAAW,SAAS;IAExB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;SAKK;IACL,QAAQ,EAAE,SAAS,CAAC;IACpB;;;SAGK;IACL,UAAU,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,MAAM,CAAC;CAC3D;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjE,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { CardProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* Card component
|
|
6
|
+
* @implements syntax:core:component:card:1.0.0
|
|
7
|
+
*/
|
|
8
|
+
declare const Card: {
|
|
9
|
+
({ className, children, emphasis, ...props }: CardProps): React.ReactElement;
|
|
10
|
+
ThumbnailSection: {
|
|
11
|
+
({ className, imageProps, ...props }: import("./common/index.js").ThumbnailSectionProps): React.ReactElement;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Image: {
|
|
15
|
+
({ className, alt, ...props }: import("./common/index.js").ImageProps): React.ReactElement;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Section: {
|
|
19
|
+
({ children, className, ...props }: import("./common/index.js").SectionProps): React.ReactElement;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default Card;
|
|
24
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/ui/Card/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,QAAA,MAAM,IAAI;kDAKP,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;CAShC,CAAC;AAMF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ImageProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* Image component for Card
|
|
6
|
+
* Full-width image with content bleed (no padding)
|
|
7
|
+
* @returns {React.ReactElement} - Rendered Image
|
|
8
|
+
*/
|
|
9
|
+
declare const Image: {
|
|
10
|
+
({ className, alt, ...props }: ImageProps): React.ReactElement;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default Image;
|
|
14
|
+
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/Image/Image.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;GAIG;AACH,QAAA,MAAM,KAAK;mCAIR,UAAU,GAAG,KAAK,CAAC,YAAY;;CAQjC,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/Image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/Image/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,UAAW,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC;IAErE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { SectionProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* Section component for Card
|
|
6
|
+
* @returns {React.ReactElement} - Rendered Section
|
|
7
|
+
*/
|
|
8
|
+
declare const Section: {
|
|
9
|
+
({ children, className, ...props }: SectionProps): React.ReactElement;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default Section;
|
|
13
|
+
//# sourceMappingURL=Section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/Section/Section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,QAAA,MAAM,OAAO;wCAIV,YAAY,GAAG,KAAK,CAAC,YAAY;;CASnC,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/Section/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/Section/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,WAAW,CAAC;IAE/D,QAAQ,EAAE,SAAS,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ThumbnailSectionProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* ThumbnailSection component for Card thumbnails
|
|
6
|
+
* Extends Section behavior with thumbnail image
|
|
7
|
+
*/
|
|
8
|
+
declare const ThumbnailSection: {
|
|
9
|
+
({ className, imageProps, ...props }: ThumbnailSectionProps): React.ReactElement;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default ThumbnailSection;
|
|
13
|
+
//# sourceMappingURL=ThumbnailSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbnailSection.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/ThumbnailSection/ThumbnailSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,QAAA,MAAM,gBAAgB;0CAInB,qBAAqB,GAAG,KAAK,CAAC,YAAY;;CAU5C,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/ThumbnailSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ImgHTMLAttributes } from "react";
|
|
2
|
+
import type { SectionProps } from "../Section/index.js";
|
|
3
|
+
export interface ThumbnailSectionProps extends Omit<SectionProps, "children"> {
|
|
4
|
+
/** Additional class name(s) to apply to the component */
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Props for the thumbnail image element
|
|
8
|
+
* TODO this should always include `alt` for accessibility, and this is likely to be repeated across the DS - should this type + `alt` requirement be extracted to ds-types packages?
|
|
9
|
+
*/
|
|
10
|
+
imageProps: ImgHTMLAttributes<HTMLImageElement>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Card/common/ThumbnailSection/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC;IAC3E,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Card/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Card/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
+
import type { HTMLAttributes } from "react";
|
|
3
|
+
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* TODO we need to verify with DS ontology group whether it is expected that a component consume ALL of a modifier family
|
|
6
|
+
* Card in vanilla does not currently support the "muted" or "accented" emphasis modifiers.
|
|
7
|
+
*/
|
|
8
|
+
emphasis?: ModifierFamily<"emphasis">;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Card/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/D;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
import type { ChipPropsType } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* description of the Chip component
|
|
6
|
+
* @returns {React.ReactElement} - Rendered Chip
|
|
7
|
+
*/
|
|
8
|
+
declare const Chip: ({ appearance, lead, value, onClick, onDismiss, id, className, style, ...props }: ChipPropsType) => React.ReactElement;
|
|
9
|
+
export default Chip;
|
|
10
|
+
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/ui/Chip/Chip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;;GAGG;AACH,QAAA,MAAM,IAAI,GAAI,iFAUX,aAAa,KAAG,KAAK,CAAC,YAwBxB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Chip/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the `Chip` component.
|
|
4
|
+
*/
|
|
5
|
+
export interface ChipProps {
|
|
6
|
+
/**
|
|
7
|
+
* The chip’s appearance.
|
|
8
|
+
* @default "neutral"
|
|
9
|
+
*/
|
|
10
|
+
appearance?: "neutral" | "positive" | "negative" | "caution" | "information";
|
|
11
|
+
/** Text shown before the value. */
|
|
12
|
+
lead?: string;
|
|
13
|
+
/** The chip’s value text. */
|
|
14
|
+
value?: string;
|
|
15
|
+
/** Called when the chip is clicked. */
|
|
16
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
/** Called when the chip is dismissed. */
|
|
18
|
+
onDismiss?: () => void;
|
|
19
|
+
/** Unique identifier for the chip. */
|
|
20
|
+
id?: string;
|
|
21
|
+
/** Additional CSS class names. */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Inline styles for the chip. */
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
export type ChipPropsType = ChipProps & Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Chip/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAE7E,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uCAAuC;IACvC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE/D,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GACnC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { IconProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* Icon component that renders SVG icons from @canonical/ds-assets
|
|
6
|
+
* @param iconName - Name of the icon to render
|
|
7
|
+
* @param rootPath - Root path to the icons (default: /icons)
|
|
8
|
+
* @returns {React.ReactElement} - Rendered Icon SVG
|
|
9
|
+
* @implements syntax:core:component:icon:1.0.0
|
|
10
|
+
*/
|
|
11
|
+
declare const Icon: ({ xmlns, viewBox, icon, className, rootPath, role, ...props }: IconProps) => ReactElement;
|
|
12
|
+
export default Icon;
|
|
13
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/ui/Icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,GAAI,+DAQX,SAAS,KAAG,YAYd,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Icon/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconName } from "@canonical/ds-assets";
|
|
2
|
+
import type { SVGAttributes } from "react";
|
|
3
|
+
/**
|
|
4
|
+
We have used the `HTMLDivElement` as a default props base.
|
|
5
|
+
If your component is based on a different HTML element, please update it accordingly.
|
|
6
|
+
See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
|
|
7
|
+
*/
|
|
8
|
+
export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
|
|
9
|
+
icon: IconName;
|
|
10
|
+
/** Root path to the icons (default: /icons). Must be exposed to the user. */
|
|
11
|
+
rootPath?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;EAIE;AACF,MAAM,WAAW,SAAU,SAAQ,aAAa,CAAC,gBAAgB,CAAC;IAEhE,IAAI,EAAE,QAAQ,CAAC;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElementType, ReactElement } from "react";
|
|
2
|
+
import type { LinkProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* Link component that can be rendered as different elements while maintaining consistent styling
|
|
6
|
+
* @implements syntax:core:component:link:1.0.0
|
|
7
|
+
*/
|
|
8
|
+
declare const Link: <TElement extends ElementType = "a">({ as, className, children, appearance, ...props }: LinkProps<TElement>) => ReactElement;
|
|
9
|
+
export default Link;
|
|
10
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/ui/Link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;GAGG;AACH,QAAA,MAAM,IAAI,GAAI,QAAQ,SAAS,WAAW,GAAG,GAAG,EAAE,mDAM/C,SAAS,CAAC,QAAQ,CAAC,KAAG,YAaxB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Link/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { PolymorphicComponentProps } from "../../lib/index.js";
|
|
3
|
+
interface LinkOwnProps {
|
|
4
|
+
/** Additional CSS classes */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Link contents */
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** Link appearance modifier */
|
|
9
|
+
appearance?: "soft";
|
|
10
|
+
}
|
|
11
|
+
export type LinkProps<TElement extends ElementType = "a"> = PolymorphicComponentProps<LinkOwnProps, TElement>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Link/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,UAAU,YAAY;IACpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,SAAS,CAAC,QAAQ,SAAS,WAAW,GAAG,GAAG,IACtD,yBAAyB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { RuleProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* A component that separates content into logical groups.
|
|
6
|
+
* @TODO implement fixed-width behavior after implementation of the Grid
|
|
7
|
+
* @returns {React.ReactElement} - Rendered Rule
|
|
8
|
+
* @implements syntax:core:component:rule:1.0.0
|
|
9
|
+
*/
|
|
10
|
+
declare const Rule: ({ className, emphasis, ...props }: RuleProps) => React.ReactElement;
|
|
11
|
+
export default Rule;
|
|
12
|
+
//# sourceMappingURL=Rule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/ui/Rule/Rule.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,IAAI,GAAI,mCAIX,SAAS,KAAG,KAAK,CAAC,YASpB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Rule/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
+
import type { HTMLAttributes } from "react";
|
|
3
|
+
/**
|
|
4
|
+
We have used the `HTMLDivElement` as a default props base.
|
|
5
|
+
If your component is based on a different HTML element, please update it accordingly.
|
|
6
|
+
See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
|
|
7
|
+
*/
|
|
8
|
+
export interface RuleProps extends HTMLAttributes<HTMLHRElement> {
|
|
9
|
+
emphasis?: ModifierFamily<"emphasis">;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Rule/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;;EAIE;AACF,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC9D,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACvC"}
|