@canonical/react-ds-global 0.36.0 → 0.38.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/README.md +72 -0
- package/dist/esm/lib/_work_in_progress/Announcement/styles.css +51 -42
- package/dist/esm/lib/_work_in_progress/CategoriesSection/common/Category/styles.css +21 -17
- package/dist/esm/lib/_work_in_progress/CategoriesSection/styles.css +16 -12
- package/dist/esm/lib/_work_in_progress/ChatSection/styles.css +22 -18
- package/dist/esm/lib/_work_in_progress/DescriptionSection/styles.css +14 -10
- package/dist/esm/lib/_work_in_progress/IconSection/styles.css +18 -14
- package/dist/esm/lib/_work_in_progress/Label/styles.css +36 -32
- package/dist/esm/lib/_work_in_progress/Link/styles.css +32 -28
- package/dist/esm/lib/_work_in_progress/Rule/styles.css +21 -14
- package/dist/esm/lib/_work_in_progress/Section/styles.css +66 -62
- package/dist/esm/lib/_work_in_progress/SkipLink/styles.css +35 -32
- package/dist/esm/lib/_work_in_progress/TSection/styles.css +26 -22
- package/dist/esm/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.js +4 -1
- package/dist/esm/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.js.map +1 -1
- package/dist/esm/lib/_work_in_progress/grid/ApplicationLayout/styles.css +21 -17
- package/dist/esm/lib/_work_in_progress/grid/GridCard/GridCard.js +4 -1
- package/dist/esm/lib/_work_in_progress/grid/GridCard/GridCard.js.map +1 -1
- package/dist/esm/lib/_work_in_progress/grid/GridCard/styles.css +8 -4
- package/dist/esm/lib/_work_in_progress/grid/InnerGridDemo/styles.css +38 -33
- package/dist/esm/lib/_work_in_progress/grid/SettingsView/SettingsView.js +4 -1
- package/dist/esm/lib/_work_in_progress/grid/SettingsView/SettingsView.js.map +1 -1
- package/dist/esm/lib/_work_in_progress/grid/SettingsView/styles.css +23 -19
- package/dist/esm/lib/component/Accordion/common/Item/styles.css +305 -299
- package/dist/esm/lib/component/Accordion/styles.css +35 -31
- package/dist/esm/lib/component/Badge/hooks/useBadge.js +1 -1
- package/dist/esm/lib/component/Badge/hooks/useBadge.js.map +1 -1
- package/dist/esm/lib/component/Badge/styles.css +45 -41
- package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/esm/lib/component/Breadcrumbs/common/Item/styles.css +69 -65
- package/dist/esm/lib/component/Breadcrumbs/styles.css +30 -26
- package/dist/esm/lib/component/Button/styles.css +293 -260
- package/dist/esm/lib/component/Card/common/Content/styles.css +27 -23
- package/dist/esm/lib/component/Card/common/Footer/styles.css +30 -26
- package/dist/esm/lib/component/Card/common/Header/styles.css +25 -21
- package/dist/esm/lib/component/Card/common/Image/styles.css +8 -4
- package/dist/esm/lib/component/Card/styles.css +77 -73
- package/dist/esm/lib/component/Chip/Chip.js +29 -6
- package/dist/esm/lib/component/Chip/Chip.js.map +1 -1
- package/dist/esm/lib/component/Chip/styles.css +105 -101
- package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +29 -20
- package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js +25 -2
- package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/common/Item/styles.css +116 -106
- package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +29 -9
- package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -1
- package/dist/esm/lib/component/ContextualMenu/styles.css +74 -72
- package/dist/esm/lib/component/Icon/styles.css +24 -20
- package/dist/esm/lib/component/InlineCode/styles.css +19 -15
- package/dist/esm/lib/component/KeyboardKey/styles.css +44 -40
- package/dist/esm/lib/component/Popover/Popover.js.map +1 -1
- package/dist/esm/lib/component/Popover/styles.css +59 -52
- package/dist/esm/lib/component/Tabs/common/Item/styles.css +80 -76
- package/dist/esm/lib/component/Tabs/styles.css +36 -32
- package/dist/esm/lib/component/Tile/common/Content/styles.css +28 -24
- package/dist/esm/lib/component/Tile/common/Header/styles.css +28 -24
- package/dist/esm/lib/component/Tile/styles.css +31 -27
- package/dist/esm/lib/component/Tooltip/Tooltip.js +6 -2
- package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/lib/component/Tooltip/styles.css +213 -208
- package/dist/esm/lib/group/Cards/styles.css +26 -22
- package/dist/esm/lib/group/KeyboardKeys/styles.css +14 -10
- package/dist/esm/lib/hooks/useContextualMenu/index.js +1 -0
- package/dist/esm/lib/hooks/useContextualMenu/index.js.map +1 -1
- package/dist/esm/lib/hooks/useContextualMenu/isMenuSeparator.js +11 -0
- package/dist/esm/lib/hooks/useContextualMenu/isMenuSeparator.js.map +1 -0
- package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js +54 -34
- package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js.map +1 -1
- package/dist/esm/lib/hooks/useDisclosure/useDisclosure.js.map +1 -1
- package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js +1 -1
- package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -1
- package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js +3 -0
- package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js.map +1 -1
- package/dist/esm/lib/index.css +79 -0
- package/dist/esm/lib/pattern/Modal/Context.js +10 -0
- package/dist/esm/lib/pattern/Modal/Context.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/Provider.js +103 -0
- package/dist/esm/lib/pattern/Modal/Provider.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Content/Content.js +15 -0
- package/dist/esm/lib/pattern/Modal/common/Content/Content.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Content/index.js +3 -0
- package/dist/esm/lib/pattern/Modal/common/Content/index.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Content/styles.css +37 -0
- package/dist/esm/lib/pattern/Modal/common/Content/types.js +2 -0
- package/dist/esm/lib/pattern/Modal/common/Content/types.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/Footer.js +16 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/Footer.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/index.js +3 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/index.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/styles.css +57 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/types.js +2 -0
- package/dist/esm/lib/pattern/Modal/common/Footer/types.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Header/Header.js +27 -0
- package/dist/esm/lib/pattern/Modal/common/Header/Header.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Header/index.js +3 -0
- package/dist/esm/lib/pattern/Modal/common/Header/index.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/Header/styles.css +79 -0
- package/dist/esm/lib/pattern/Modal/common/Header/types.js +2 -0
- package/dist/esm/lib/pattern/Modal/common/Header/types.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/common/index.js +5 -0
- package/dist/esm/lib/pattern/Modal/common/index.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/hooks/useModalContext.js +11 -0
- package/dist/esm/lib/pattern/Modal/hooks/useModalContext.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/hooks/useModalState.js +15 -0
- package/dist/esm/lib/pattern/Modal/hooks/useModalState.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/index.js +4 -0
- package/dist/esm/lib/pattern/Modal/index.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/styles.css +119 -0
- package/dist/esm/lib/pattern/Modal/types.js +2 -0
- package/dist/esm/lib/pattern/Modal/types.js.map +1 -0
- package/dist/esm/lib/pattern/Modal/withModal.js +102 -0
- package/dist/esm/lib/pattern/Modal/withModal.js.map +1 -0
- package/dist/esm/lib/pattern/Timeline/common/Content/styles.css +16 -12
- package/dist/esm/lib/pattern/Timeline/common/Event/styles.css +116 -112
- package/dist/esm/lib/pattern/Timeline/styles.css +16 -12
- package/dist/esm/lib/pattern/index.js +1 -0
- package/dist/esm/lib/pattern/index.js.map +1 -1
- package/dist/esm/lib/subcomponent/Spinner/styles.css +38 -34
- package/dist/types/lib/_work_in_progress/Announcement/types.d.ts +8 -8
- package/dist/types/lib/_work_in_progress/Announcement/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/IconSection/types.d.ts +6 -3
- package/dist/types/lib/_work_in_progress/IconSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Label/types.d.ts +20 -18
- package/dist/types/lib/_work_in_progress/Label/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Rule/types.d.ts +5 -7
- package/dist/types/lib/_work_in_progress/Rule/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/Section/types.d.ts +9 -10
- package/dist/types/lib/_work_in_progress/Section/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts +14 -8
- package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/TSection/types.d.ts +14 -3
- package/dist/types/lib/_work_in_progress/TSection/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/GridCard/GridCard.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/SettingsView/SettingsView.d.ts.map +1 -1
- package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts +5 -3
- package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts.map +1 -1
- package/dist/types/lib/component/Accordion/common/Item/types.d.ts +28 -22
- package/dist/types/lib/component/Accordion/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/Accordion/types.d.ts +8 -6
- package/dist/types/lib/component/Accordion/types.d.ts.map +1 -1
- package/dist/types/lib/component/Badge/types.d.ts +6 -4
- package/dist/types/lib/component/Badge/types.d.ts.map +1 -1
- package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +12 -10
- package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/Breadcrumbs/types.d.ts +11 -10
- package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
- package/dist/types/lib/component/Button/index.d.ts +1 -1
- package/dist/types/lib/component/Button/index.d.ts.map +1 -1
- package/dist/types/lib/component/Button/types.d.ts +10 -8
- package/dist/types/lib/component/Button/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Content/types.d.ts +7 -5
- package/dist/types/lib/component/Card/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Footer/types.d.ts +7 -5
- package/dist/types/lib/component/Card/common/Footer/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Header/types.d.ts +7 -5
- package/dist/types/lib/component/Card/common/Header/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/common/Image/types.d.ts +6 -3
- package/dist/types/lib/component/Card/common/Image/types.d.ts.map +1 -1
- package/dist/types/lib/component/Card/types.d.ts +6 -3
- package/dist/types/lib/component/Card/types.d.ts.map +1 -1
- package/dist/types/lib/component/Chip/Chip.d.ts +7 -2
- package/dist/types/lib/component/Chip/Chip.d.ts.map +1 -1
- package/dist/types/lib/component/Chip/types.d.ts +29 -13
- package/dist/types/lib/component/Chip/types.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts +4 -4
- 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/Item/types.d.ts +7 -0
- package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts +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 +9 -7
- package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -1
- package/dist/types/lib/component/ContextualMenu/types.d.ts +17 -8
- package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -1
- package/dist/types/lib/component/Icon/types.d.ts +6 -8
- package/dist/types/lib/component/Icon/types.d.ts.map +1 -1
- package/dist/types/lib/component/InlineCode/types.d.ts +6 -3
- package/dist/types/lib/component/InlineCode/types.d.ts.map +1 -1
- package/dist/types/lib/component/KeyboardKey/types.d.ts +6 -3
- package/dist/types/lib/component/KeyboardKey/types.d.ts.map +1 -1
- package/dist/types/lib/component/Popover/types.d.ts +10 -3
- package/dist/types/lib/component/Popover/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tabs/common/Item/types.d.ts +4 -0
- package/dist/types/lib/component/Tabs/common/Item/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tabs/types.d.ts +12 -10
- package/dist/types/lib/component/Tabs/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/common/Content/types.d.ts +9 -7
- package/dist/types/lib/component/Tile/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/common/Header/types.d.ts +9 -7
- package/dist/types/lib/component/Tile/common/Header/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tile/types.d.ts +10 -8
- package/dist/types/lib/component/Tile/types.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/lib/component/Tooltip/types.d.ts +11 -10
- package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
- package/dist/types/lib/group/Cards/types.d.ts +6 -3
- package/dist/types/lib/group/Cards/types.d.ts.map +1 -1
- package/dist/types/lib/group/KeyboardKeys/types.d.ts +6 -3
- package/dist/types/lib/group/KeyboardKeys/types.d.ts.map +1 -1
- package/dist/types/lib/hooks/useContextualMenu/index.d.ts +1 -0
- package/dist/types/lib/hooks/useContextualMenu/index.d.ts.map +1 -1
- package/dist/types/lib/hooks/useContextualMenu/isMenuSeparator.d.ts +13 -0
- package/dist/types/lib/hooks/useContextualMenu/isMenuSeparator.d.ts.map +1 -0
- package/dist/types/lib/hooks/useContextualMenu/types.d.ts +45 -15
- package/dist/types/lib/hooks/useContextualMenu/types.d.ts.map +1 -1
- package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts +5 -6
- package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -1
- package/dist/types/lib/hooks/useDisclosure/types.d.ts +7 -2
- package/dist/types/lib/hooks/useDisclosure/types.d.ts.map +1 -1
- package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts +1 -1
- package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts.map +1 -1
- package/dist/types/lib/hooks/useWindowFitment/types.d.ts +12 -3
- package/dist/types/lib/hooks/useWindowFitment/types.d.ts.map +1 -1
- package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts +1 -1
- package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -1
- package/dist/types/lib/pattern/Modal/Context.d.ts +10 -0
- package/dist/types/lib/pattern/Modal/Context.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/Provider.d.ts +63 -0
- package/dist/types/lib/pattern/Modal/Provider.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts +17 -0
- package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Content/index.d.ts +3 -0
- package/dist/types/lib/pattern/Modal/common/Content/index.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Content/types.d.ts +15 -0
- package/dist/types/lib/pattern/Modal/common/Content/types.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts +18 -0
- package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Footer/index.d.ts +3 -0
- package/dist/types/lib/pattern/Modal/common/Footer/index.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Footer/types.d.ts +16 -0
- package/dist/types/lib/pattern/Modal/common/Footer/types.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts +24 -0
- package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Header/index.d.ts +3 -0
- package/dist/types/lib/pattern/Modal/common/Header/index.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/Header/types.d.ts +36 -0
- package/dist/types/lib/pattern/Modal/common/Header/types.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/common/index.d.ts +4 -0
- package/dist/types/lib/pattern/Modal/common/index.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/hooks/useModalContext.d.ts +4 -0
- package/dist/types/lib/pattern/Modal/hooks/useModalContext.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/hooks/useModalState.d.ts +10 -0
- package/dist/types/lib/pattern/Modal/hooks/useModalState.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/index.d.ts +4 -0
- package/dist/types/lib/pattern/Modal/index.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/types.d.ts +122 -0
- package/dist/types/lib/pattern/Modal/types.d.ts.map +1 -0
- package/dist/types/lib/pattern/Modal/withModal.d.ts +74 -0
- package/dist/types/lib/pattern/Modal/withModal.d.ts.map +1 -0
- package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts +10 -8
- package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts +18 -16
- package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts.map +1 -1
- package/dist/types/lib/pattern/Timeline/types.d.ts +10 -8
- package/dist/types/lib/pattern/Timeline/types.d.ts.map +1 -1
- package/dist/types/lib/pattern/index.d.ts +1 -0
- package/dist/types/lib/pattern/index.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Spinner/types.d.ts +10 -8
- package/dist/types/lib/subcomponent/Spinner/types.d.ts.map +1 -1
- package/package.json +28 -18
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
We have used the `HTMLDivElement` as a default props base.
|
|
4
|
-
If your component is based on a different HTML element, please update it accordingly.
|
|
5
|
-
See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
|
|
6
|
-
*/
|
|
7
|
-
export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, "href" | "tabIndex"> {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
8
3
|
/** The contents of the skip link itself */
|
|
9
4
|
children?: ReactNode;
|
|
10
5
|
/**
|
|
@@ -12,5 +7,16 @@ export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, "
|
|
|
12
7
|
* @default "main"
|
|
13
8
|
* */
|
|
14
9
|
mainId?: string;
|
|
15
|
-
}
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Props for the SkipLink component, extending the native props of its `<a>`
|
|
13
|
+
* root.
|
|
14
|
+
*
|
|
15
|
+
* The native `href` and `tabIndex` are deliberately excluded: the DS drives
|
|
16
|
+
* both — `href` is derived from `mainId` (`#${mainId}`) so the link always
|
|
17
|
+
* targets the main content element, and `tabIndex` is fixed at `0` so the skip
|
|
18
|
+
* link stays reachable as the first stop in the tab order.
|
|
19
|
+
*/
|
|
20
|
+
export type SkipLinkProps = OwnProps & Omit<ComponentProps<"a">, keyof OwnProps | "href" | "tabIndex">;
|
|
21
|
+
export {};
|
|
16
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/SkipLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/SkipLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
3
|
/** Content to render inside the component */
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The section heading, rendered into the section's `<h2>`.
|
|
7
|
+
*
|
|
8
|
+
* `title` is DS-owned here and deliberately shadows the native `title`
|
|
9
|
+
* attribute: it is consumed as the heading and never forwarded to the DOM,
|
|
10
|
+
* so a `TSection` cannot also carry a native `title` tooltip.
|
|
11
|
+
* @default "Section title"
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
};
|
|
15
|
+
export type TSectionProps = OwnProps & Omit<ComponentProps<"section">, keyof OwnProps>;
|
|
16
|
+
export {};
|
|
6
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/TSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/TSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAOtB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,mCAI/B,sBAAsB,KAAG,KAAK,CAAC,SAWjC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
3
|
/** Content to render inside the component */
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export type ApplicationLayoutProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
7
|
+
export {};
|
|
6
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAC3C,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridCard.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/GridCard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"GridCard.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/GridCard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,cAAc,CAAC;AAMtB;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,mCAItB,aAAa,KAAG,KAAK,CAAC,SASxB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
3
|
/** Content to render inside the component */
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export type GridCardProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
7
|
+
export {};
|
|
6
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
3
|
/** Content to render inside the component */
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export type InnerGridDemoProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
7
|
+
export {};
|
|
6
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GACvC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsView.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/SettingsView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingsView.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/SettingsView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAMtB;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,0CAK1B,iBAAiB,KAAG,KAAK,CAAC,SAoB5B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
3
|
/** Content to render inside the component */
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
/** Title displayed at the top of the settings view */
|
|
6
6
|
title?: string;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export type SettingsViewProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
9
|
+
export {};
|
|
8
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
* Props for the Accordion.Item subcomponent
|
|
4
|
-
*
|
|
5
|
-
* @implements ds:global.subcomponent.accordion-item
|
|
6
|
-
*
|
|
7
|
-
* Anatomy (from DSL):
|
|
8
|
-
* - layout.type: stack
|
|
9
|
-
* - layout.direction: vertical
|
|
10
|
-
* - edges:
|
|
11
|
-
* - header tab (slotName: header, cardinality: 1)
|
|
12
|
-
* - control (chevron, cardinality: 1)
|
|
13
|
-
* - heading (slotName: default, cardinality: 1)
|
|
14
|
-
* - content panel (slotName: default, cardinality: 1)
|
|
15
|
-
*
|
|
16
|
-
* Rendered with native `<details>`/`<summary>`, so the browser owns the
|
|
17
|
-
* open/close state and keyboard interaction. `expanded` (with
|
|
18
|
-
* `onExpandedChange`) is an optional controlled overlay on the native `open`
|
|
19
|
-
* attribute.
|
|
20
|
-
*/
|
|
21
|
-
export interface ItemProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onToggle"> {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
22
3
|
/**
|
|
23
4
|
* The accordion item's heading. Pass a node — including the heading element
|
|
24
5
|
* (e.g. `<h3>…</h3>`) at the level appropriate for the page's document
|
|
@@ -41,5 +22,30 @@ export interface ItemProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onT
|
|
|
41
22
|
* Callback fired when the expanded state changes (from the native toggle).
|
|
42
23
|
*/
|
|
43
24
|
onExpandedChange?: (expanded: boolean) => void;
|
|
44
|
-
}
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Props for the Accordion.Item subcomponent
|
|
28
|
+
*
|
|
29
|
+
* @implements ds:global.subcomponent.accordion-item
|
|
30
|
+
*
|
|
31
|
+
* Anatomy (from DSL):
|
|
32
|
+
* - layout.type: stack
|
|
33
|
+
* - layout.direction: vertical
|
|
34
|
+
* - edges:
|
|
35
|
+
* - header tab (slotName: header, cardinality: 1)
|
|
36
|
+
* - control (chevron, cardinality: 1)
|
|
37
|
+
* - heading (slotName: default, cardinality: 1)
|
|
38
|
+
* - content panel (slotName: default, cardinality: 1)
|
|
39
|
+
*
|
|
40
|
+
* Rendered with native `<details>`/`<summary>`, so the browser owns the
|
|
41
|
+
* open/close state and keyboard interaction. `expanded` (with
|
|
42
|
+
* `onExpandedChange`) is an optional controlled overlay on the native `open`
|
|
43
|
+
* attribute.
|
|
44
|
+
*
|
|
45
|
+
* The native `open` and `onToggle` are deliberately excluded: the DS drives
|
|
46
|
+
* `open` from `expanded` and fires `onExpandedChange` from the native toggle,
|
|
47
|
+
* so consumers control open state through those props, not the raw attributes.
|
|
48
|
+
*/
|
|
49
|
+
export type ItemProps = OwnProps & Omit<ComponentProps<"details">, keyof OwnProps | "open" | "onToggle">;
|
|
50
|
+
export {};
|
|
45
51
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Accordion/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Accordion/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAC9B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
2
|
import type { ItemProps } from "./common/Item/types.js";
|
|
3
|
-
|
|
4
|
-
* Props for the Accordion component
|
|
5
|
-
*/
|
|
6
|
-
export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
type OwnProps = {
|
|
7
4
|
/**
|
|
8
5
|
* Accordion.Item elements to render
|
|
9
6
|
*/
|
|
10
7
|
children: ReactElement<ItemProps> | ReactElement<ItemProps>[];
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Props for the Accordion component
|
|
11
|
+
*/
|
|
12
|
+
export type AccordionProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
12
13
|
/**
|
|
13
14
|
* Accordion component type with attached subcomponents
|
|
14
15
|
*/
|
|
15
16
|
export type AccordionComponent = ((props: AccordionProps) => ReactElement) & {
|
|
16
17
|
Item: (props: ItemProps) => ReactElement;
|
|
17
18
|
};
|
|
19
|
+
export {};
|
|
18
20
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GACnC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,KAAK,YAAY,CAAC,GAAG;IAC3E,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
-
import type { HumanizeNumberOptions, PluralizeOptions } from "@canonical/utils";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
2
|
+
import type { HumanizeNumberOptions, PluralizeOptions } from "@canonical/ds-utils";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
type OwnProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Numeric value to be displayed.
|
|
7
7
|
*/
|
|
@@ -24,7 +24,8 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
24
24
|
* Options for the pluralization of the item being counted.
|
|
25
25
|
*/
|
|
26
26
|
pluralizeOptions?: PluralizeOptions;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
|
+
export type BadgeProps = OwnProps & Omit<ComponentProps<"span">, keyof OwnProps>;
|
|
28
29
|
export type UseBadgeProps = Pick<BadgeProps, "value" | "humanizeOptions" | "pluralizeOptions">;
|
|
29
30
|
/**
|
|
30
31
|
* Result of the useBadge hook.
|
|
@@ -36,4 +37,5 @@ export interface UseBadgeResult {
|
|
|
36
37
|
/** Title attribute, for displaying additional context about the badge on hover */
|
|
37
38
|
title: string;
|
|
38
39
|
}
|
|
40
|
+
export {};
|
|
39
41
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE/C,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"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import type { Item } from "@canonical/ds-types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComponentProps, ComponentType, ReactNode } from "react";
|
|
3
3
|
import type { LinkComponentProps } from "../../../../types/link.js";
|
|
4
4
|
export type { LinkComponentProps };
|
|
5
|
-
|
|
6
|
-
* Props for the Breadcrumbs.Item subcomponent
|
|
7
|
-
*
|
|
8
|
-
* Extends navigation Item (WD405) with breadcrumb-specific props.
|
|
9
|
-
*
|
|
10
|
-
* @implements ds:global.subcomponent.breadcrumbs-item
|
|
11
|
-
*/
|
|
12
|
-
export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
|
|
5
|
+
type OwnProps = Item & {
|
|
13
6
|
/**
|
|
14
7
|
* The link content (text or element)
|
|
15
8
|
* Falls back to `label` from Item if not provided
|
|
@@ -41,5 +34,14 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
|
|
|
41
34
|
* e.g. A specialized renderer for complex items.
|
|
42
35
|
*/
|
|
43
36
|
Component?: ComponentType<any>;
|
|
44
|
-
}
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Props for the Breadcrumbs.Item subcomponent
|
|
40
|
+
*
|
|
41
|
+
* Extends navigation Item (WD405) with breadcrumb-specific props, plus the
|
|
42
|
+
* native props of its `<li>` root.
|
|
43
|
+
*
|
|
44
|
+
* @implements ds:global.subcomponent.breadcrumbs-item
|
|
45
|
+
*/
|
|
46
|
+
export type ItemProps = OwnProps & Omit<ComponentProps<"li">, keyof OwnProps>;
|
|
45
47
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,KAAK,QAAQ,GAAG,IAAI,GAAG;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Item } from "@canonical/ds-types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComponentProps, ComponentType, ReactElement, ReactNode } from "react";
|
|
3
3
|
import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Breadcrumb-specific item extending navigation Item (WD405)
|
|
@@ -12,7 +12,7 @@ import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
|
|
|
12
12
|
* products only. Not designed/approved for Canonical products; Canonical
|
|
13
13
|
* products must use the default Breadcrumbs.Item.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type BreadcrumbItem = Item & {
|
|
16
16
|
/**
|
|
17
17
|
* Whether this is the current page.
|
|
18
18
|
* When true, renders as text instead of link.
|
|
@@ -25,13 +25,8 @@ export interface BreadcrumbItem extends Item {
|
|
|
25
25
|
* e.g. A specialized renderer for complex items.
|
|
26
26
|
*/
|
|
27
27
|
Component?: ComponentType<any>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
* Props for the Breadcrumbs component
|
|
31
|
-
*
|
|
32
|
-
* @implements ds:global.component.breadcrumbs
|
|
33
|
-
*/
|
|
34
|
-
export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
28
|
+
};
|
|
29
|
+
type OwnProps = {
|
|
35
30
|
/**
|
|
36
31
|
* Navigation items to display (WD405 Item type)
|
|
37
32
|
* Each item is spread onto Breadcrumbs.Item or custom Component
|
|
@@ -64,7 +59,13 @@ export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
|
64
59
|
* @default "Breadcrumb"
|
|
65
60
|
*/
|
|
66
61
|
"aria-label"?: string;
|
|
67
|
-
}
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Props for the Breadcrumbs component
|
|
65
|
+
*
|
|
66
|
+
* @implements ds:global.component.breadcrumbs
|
|
67
|
+
*/
|
|
68
|
+
export type BreadcrumbsProps = OwnProps & Omit<ComponentProps<"nav">, keyof OwnProps>;
|
|
68
69
|
/**
|
|
69
70
|
* Breadcrumbs component type with attached subcomponents
|
|
70
71
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd;;;;;;;;OAQG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GACrC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAClC,KAAK,EAAE,gBAAgB,KACpB,YAAY,CAAC,GAAG;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { IconName } from "@canonical/ds-assets";
|
|
2
2
|
import type { ModifierFamily } from "@canonical/ds-types";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* The Button's DS-owned props. Native `<button>` attributes (`id`, `className`,
|
|
6
|
+
* `type`, `disabled`, event handlers, …) come from `ComponentProps<"button">`
|
|
7
|
+
* in {@link default | ButtonProps}, so only genuinely design-system-specific
|
|
8
|
+
* members live here.
|
|
9
|
+
*/
|
|
10
|
+
type OwnProps = {
|
|
9
11
|
/**
|
|
10
12
|
* Button contents (label text).
|
|
11
13
|
* The button's accessible name derives from its rendered text content,
|
|
@@ -47,7 +49,7 @@ export interface BaseProps {
|
|
|
47
49
|
* @default false
|
|
48
50
|
*/
|
|
49
51
|
loading?: boolean;
|
|
50
|
-
}
|
|
51
|
-
type Props =
|
|
52
|
+
};
|
|
53
|
+
type Props = OwnProps & Omit<ComponentProps<"button">, keyof OwnProps>;
|
|
52
54
|
export type { Props as default };
|
|
53
55
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;GAKG;AACH,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAEvE,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/** Required child contents */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* Props for Card.Content
|
|
4
8
|
*
|
|
5
9
|
* @implements ds:global.subcomponent.card-content
|
|
6
10
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
+
export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
12
|
+
export {};
|
|
11
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* Props for Card.Footer
|
|
4
8
|
*
|
|
5
9
|
* @implements ds:global.subcomponent.card-footer
|
|
6
10
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}
|
|
11
|
+
export type FooterProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
12
|
+
export {};
|
|
11
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,gFAAgF;IAChF,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/** Required child contents */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* Props for Card.Header
|
|
4
8
|
*
|
|
5
9
|
* @implements ds:global.subcomponent.card-header
|
|
6
10
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}
|
|
11
|
+
export type HeaderProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
12
|
+
export {};
|
|
11
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for Card.Image. No DS-owned props — it renders a plain `<img>` root, so
|
|
4
|
+
* it accepts every native `<img>` prop.
|
|
5
|
+
*/
|
|
6
|
+
export type ImageProps = ComponentProps<"img">;
|
|
4
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Card component. The Card has no DS-owned props of its own — it
|
|
4
|
+
* is a plain `<div>` surface — so it simply accepts every native `<div>` prop.
|
|
5
|
+
*/
|
|
6
|
+
export type CardProps = ComponentProps<"div">;
|
|
4
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import "./styles.css";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ChipProps } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* A chip is a compact, interactive component used to represent an attribute,
|
|
6
6
|
* entity, or filter while facilitating secondary actions.
|
|
7
7
|
*
|
|
8
|
+
* The root element is variable: a chip with an `onClick` renders a `<button>`
|
|
9
|
+
* (and extends button props), one without renders a `<span>` (and extends span
|
|
10
|
+
* props). Each branch spreads only the native props of its own root — the
|
|
11
|
+
* DS-owned props are destructured out first so none of them leak to the DOM.
|
|
12
|
+
*
|
|
8
13
|
* @implements ds:global.component.chip
|
|
9
14
|
*/
|
|
10
|
-
declare const Chip: (
|
|
15
|
+
declare const Chip: (props: ChipProps) => React.ReactElement;
|
|
11
16
|
export default Chip;
|
|
12
17
|
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,KAAK,CAAC,YA+DtC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|