@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,124 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
* Timeline.Event styles
|
|
3
|
-
* @implements ds:global.subcomponent.timeline-event
|
|
4
|
-
*
|
|
5
|
-
* DSL anatomy mapping:
|
|
6
|
-
* - layout.type: flow -> display: flex
|
|
7
|
-
* - layout.direction: horizontal -> flex-direction: row
|
|
8
|
-
*/
|
|
9
|
-
.ds.timeline-event {
|
|
10
|
-
/* layout.type: flow, layout.direction: horizontal */
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
gap: var(--timeline-event-gap, var(--spacing-medium, 1rem));
|
|
1
|
+
/* Layer: ds.components.global (@canonical/styles README, "Cascade layers"). */
|
|
14
2
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
@layer ds.components.global {
|
|
4
|
+
/**
|
|
5
|
+
* Timeline.Event styles
|
|
6
|
+
* @implements ds:global.subcomponent.timeline-event
|
|
7
|
+
*
|
|
8
|
+
* DSL anatomy mapping:
|
|
9
|
+
* - layout.type: flow -> display: flex
|
|
10
|
+
* - layout.direction: horizontal -> flex-direction: row
|
|
11
|
+
*/
|
|
12
|
+
.ds.timeline-event {
|
|
13
|
+
/* layout.type: flow, layout.direction: horizontal */
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
gap: var(--timeline-event-gap, var(--spacing-medium, 1rem));
|
|
17
|
+
|
|
18
|
+
/* Position relative for the connecting line */
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.ds.timeline-event > .marker {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
);
|
|
32
|
-
border: var(--timeline-marker-border-width, 2px) solid
|
|
33
|
-
var(
|
|
34
|
-
--modifier-color-border,
|
|
35
|
-
var(--timeline-marker-border-color, var(--color-surface, #fff))
|
|
22
|
+
/**
|
|
23
|
+
* Timeline marker/dot
|
|
24
|
+
* Visual indicator connecting events
|
|
25
|
+
*/
|
|
26
|
+
.ds.timeline-event > .marker {
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
width: var(--timeline-marker-size, 12px);
|
|
29
|
+
height: var(--timeline-marker-size, 12px);
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
background-color: var(
|
|
32
|
+
--modifier-color-foreground-primary,
|
|
33
|
+
var(--timeline-marker-color, var(--color-border, #ccc))
|
|
36
34
|
);
|
|
37
|
-
|
|
35
|
+
border: var(--timeline-marker-border-width, 2px) solid
|
|
36
|
+
var(
|
|
37
|
+
--modifier-color-border,
|
|
38
|
+
var(--timeline-marker-border-color, var(--color-surface, #fff))
|
|
39
|
+
);
|
|
40
|
+
margin-top: var(--timeline-marker-offset, 0.25rem);
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
42
|
+
/* Position for connecting line */
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
}
|
|
43
46
|
|
|
44
|
-
/* Connecting line between events */
|
|
45
|
-
.ds.timeline-event::before {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
47
|
+
/* Connecting line between events */
|
|
48
|
+
.ds.timeline-event::before {
|
|
49
|
+
content: "";
|
|
50
|
+
position: absolute;
|
|
51
|
+
left: calc(var(--timeline-marker-size, 12px) / 2 - 1px);
|
|
52
|
+
top: calc(
|
|
53
|
+
var(--timeline-marker-size, 12px) +
|
|
54
|
+
var(--timeline-marker-offset, 0.25rem)
|
|
55
|
+
);
|
|
56
|
+
bottom: calc(
|
|
57
|
+
-1 *
|
|
58
|
+
var(--timeline-event-spacing, var(--spacing-large, 1.5rem))
|
|
59
|
+
);
|
|
60
|
+
width: var(--timeline-line-width, 2px);
|
|
61
|
+
background-color: var(--timeline-line-color, var(--color-border, #e0e0e0));
|
|
62
|
+
}
|
|
60
63
|
|
|
61
|
-
/* Hide line for last event */
|
|
62
|
-
.ds.timeline-event:last-child::before {
|
|
63
|
-
|
|
64
|
-
}
|
|
64
|
+
/* Hide line for last event */
|
|
65
|
+
.ds.timeline-event:last-child::before {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
65
68
|
|
|
66
|
-
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.ds.timeline-event > .content {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Event content container
|
|
71
|
+
* DSL: layout.type: flow, layout.direction: horizontal
|
|
72
|
+
* The edges (actor, datetime, payload) flow horizontally per DSL spec
|
|
73
|
+
*/
|
|
74
|
+
.ds.timeline-event > .content {
|
|
75
|
+
flex: 1;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
padding-bottom: var(--timeline-event-spacing, var(--spacing-large, 1.5rem));
|
|
75
78
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
79
|
+
/* DSL edges flow horizontally: actor → datetime → payload */
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: row;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
align-items: baseline;
|
|
84
|
+
gap: var(--timeline-content-gap, var(--spacing-small, 0.5rem));
|
|
85
|
+
}
|
|
83
86
|
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
.ds.timeline-event > .content > .actor {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
87
|
+
/**
|
|
88
|
+
* Actor element
|
|
89
|
+
* DSL: role: actor (cardinality: 0..1)
|
|
90
|
+
*/
|
|
91
|
+
.ds.timeline-event > .content > .actor {
|
|
92
|
+
font-weight: var(
|
|
93
|
+
--timeline-actor-font-weight,
|
|
94
|
+
var(--font-weight-semibold, 600)
|
|
95
|
+
);
|
|
96
|
+
color: var(--timeline-actor-color, var(--color-text-primary, inherit));
|
|
97
|
+
}
|
|
95
98
|
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.ds.timeline-event > .content > .datetime {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
99
|
+
/**
|
|
100
|
+
* Datetime element
|
|
101
|
+
* DSL: role: datetime (cardinality: 0..1)
|
|
102
|
+
*/
|
|
103
|
+
.ds.timeline-event > .content > .datetime {
|
|
104
|
+
font-size: var(
|
|
105
|
+
--timeline-datetime-font-size,
|
|
106
|
+
var(--font-size-small, 0.875rem)
|
|
107
|
+
);
|
|
108
|
+
color: var(--timeline-datetime-color, var(--color-text-secondary, #666));
|
|
109
|
+
}
|
|
107
110
|
|
|
108
|
-
/**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
.ds.timeline-event > .content > .payload {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
111
|
+
/**
|
|
112
|
+
* Payload element
|
|
113
|
+
* DSL: role: payload (cardinality: 1, slotName: default)
|
|
114
|
+
*/
|
|
115
|
+
.ds.timeline-event > .content > .payload {
|
|
116
|
+
color: var(--timeline-payload-color, var(--color-text-primary, inherit));
|
|
117
|
+
line-height: var(
|
|
118
|
+
--timeline-payload-line-height,
|
|
119
|
+
var(--font-line-height-relaxed, 1.6)
|
|
120
|
+
);
|
|
121
|
+
/* Allow payload to wrap to full width on its own line when content is long */
|
|
122
|
+
flex-basis: 100%;
|
|
123
|
+
}
|
|
121
124
|
|
|
122
|
-
/* Criticality styling is handled by the modifier system:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
/* Criticality styling is handled by the modifier system:
|
|
126
|
+
.success, .error, .warning, .information classes set
|
|
127
|
+
--modifier-color-foreground-primary via design-tokens. */
|
|
128
|
+
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/* Layer: ds.components.global (@canonical/styles README, "Cascade layers"). */
|
|
2
|
+
|
|
3
|
+
@layer ds.components.global {
|
|
4
|
+
/**
|
|
5
|
+
* Timeline styles
|
|
6
|
+
* @implements ds:global.pattern.timeline
|
|
7
|
+
*
|
|
8
|
+
* DSL anatomy mapping:
|
|
9
|
+
* - layout.type: stack -> display: flex; flex-direction: column
|
|
10
|
+
* - layout.direction: vertical -> flex-direction: column
|
|
11
|
+
*/
|
|
12
|
+
.ds.timeline {
|
|
13
|
+
/* layout.type: stack, layout.direction: vertical */
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/pattern/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/pattern/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
|
@@ -5,46 +5,50 @@
|
|
|
5
5
|
* The Spinner renders the `spinner` glyph and rotates it continuously. The
|
|
6
6
|
* rotation is a linear, infinite animation so the motion reads as steady
|
|
7
7
|
* rather than eased.
|
|
8
|
+
*
|
|
9
|
+
* Layer: ds.components.global (@canonical/styles README, "Cascade layers").
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
@layer ds.components.global {
|
|
13
|
+
/* A full 0→360deg turn. Keep it a full turn: Chromatic freezes infinite
|
|
14
|
+
animations at the last frame of the cycle, so a complete rotation lands on
|
|
15
|
+
360deg (visually identical to 0deg) and the snapshot stays deterministic. A
|
|
16
|
+
partial arc here would make visual tests flaky. */
|
|
17
|
+
@keyframes ds-spinner-rotate {
|
|
18
|
+
from {
|
|
19
|
+
transform: rotate(0deg);
|
|
20
|
+
}
|
|
21
|
+
to {
|
|
22
|
+
transform: rotate(360deg);
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
|
-
}
|
|
22
25
|
|
|
23
|
-
.ds.spinner {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
.ds.spinner {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
vertical-align: middle;
|
|
26
29
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
/* Sized from the text: the `1em` base makes the spinner track the container
|
|
31
|
+
`font-size`, so it matches adjacent text. The cascade is, in order:
|
|
32
|
+
`--spinner-size` (per-instance override) → `--icon-size` (the shared icon
|
|
33
|
+
convention, so a global icon-size tweak also sizes spinners) → `1em`. No
|
|
34
|
+
value is hard-declared here, so `:root`/ancestor overrides win. */
|
|
35
|
+
width: var(--spinner-size, var(--icon-size, 1em));
|
|
36
|
+
height: var(--spinner-size, var(--icon-size, 1em));
|
|
34
37
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
38
|
+
/* A continuous spinner wants a much longer, linear cycle than the eased
|
|
39
|
+
transition tokens describe (the fastest, `--motion-duration-slow`, is 0.4s
|
|
40
|
+
— frantic for a loop). Default to ~1s/turn via a `var()` fallback (not a
|
|
41
|
+
hard declaration) so a consumer can retune the cycle from `:root` or an
|
|
42
|
+
ancestor with `--spinner-duration`. There is no ratified motion token this
|
|
43
|
+
long yet, hence the literal fallback. */
|
|
44
|
+
animation: ds-spinner-rotate var(--spinner-duration, 1s) linear infinite;
|
|
45
|
+
}
|
|
43
46
|
|
|
44
|
-
/* Honour users who have asked for reduced motion: hold the icon still rather
|
|
45
|
-
|
|
46
|
-
@media (prefers-reduced-motion: reduce) {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
/* Honour users who have asked for reduced motion: hold the icon still rather
|
|
48
|
+
than spinning it. The spinner remains visible as a static activity glyph. */
|
|
49
|
+
@media (prefers-reduced-motion: reduce) {
|
|
50
|
+
.ds.spinner {
|
|
51
|
+
animation: none;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
* Props for the `Announcement` component.
|
|
5
|
-
*/
|
|
6
|
-
export interface AnnouncementProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
type OwnProps = {
|
|
7
4
|
/**
|
|
8
5
|
* Criticality modifier — the type of announcement. Drives the icon,
|
|
9
6
|
* side-bar colour, background, and text treatment via the criticality
|
|
@@ -18,7 +15,10 @@ export interface AnnouncementProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
18
15
|
heading?: ReactNode;
|
|
19
16
|
/** The announcement body — its detailed content. */
|
|
20
17
|
children: ReactNode;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Props for the `Announcement` component.
|
|
21
|
+
*/
|
|
22
|
+
export type AnnouncementProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Announcement/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Announcement/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C,0DAA0D;IAC1D,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
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
|
/** Category title */
|
|
6
6
|
title?: string;
|
|
7
7
|
/** List of items to display */
|
|
8
8
|
items: string[];
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export type CategoryProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
11
|
+
export {};
|
|
10
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/_work_in_progress/CategoriesSection/common/Category/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/CategoriesSection/common/Category/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,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TSectionProps } from "../TSection/types.js";
|
|
3
|
+
type OwnProps = {
|
|
3
4
|
/** Content to render inside the component */
|
|
4
5
|
children?: ReactNode;
|
|
5
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export type CategoriesSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
|
|
8
|
+
export {};
|
|
6
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/CategoriesSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/CategoriesSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAC3C,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TSectionProps } from "../TSection/types.js";
|
|
3
|
+
type OwnProps = {
|
|
3
4
|
/** Content to render inside the component */
|
|
4
5
|
children?: ReactNode;
|
|
5
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export type ChatSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
|
|
8
|
+
export {};
|
|
6
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/ChatSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/ChatSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TSectionProps } from "../TSection/types.js";
|
|
3
|
+
type OwnProps = {
|
|
3
4
|
/** Content to render inside the component */
|
|
4
5
|
children?: ReactNode;
|
|
5
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export type DescriptionSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
|
|
8
|
+
export {};
|
|
6
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/DescriptionSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/DescriptionSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAC5C,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TSectionProps } from "../TSection/types.js";
|
|
3
|
+
type OwnProps = {
|
|
3
4
|
/** Content to render inside the component */
|
|
4
5
|
children?: ReactNode;
|
|
5
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export type IconSectionProps = OwnProps & Omit<TSectionProps, keyof OwnProps>;
|
|
8
|
+
export {};
|
|
6
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/IconSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/IconSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAOF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import type { ModifierFamily } from "@canonical/ds-types";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
* Props for the Label component
|
|
5
|
-
*
|
|
6
|
-
* @implements ds:global.component.label
|
|
7
|
-
*
|
|
8
|
-
* Anatomy (from DSL):
|
|
9
|
-
* - layout.display: inline
|
|
10
|
-
* - typography.size: font/size/label
|
|
11
|
-
* - typography.weight: font/weight/medium
|
|
12
|
-
*
|
|
13
|
-
* Modifier families (from DSL):
|
|
14
|
-
* - anticipation: constructive, caution, destructive
|
|
15
|
-
* - importance: primary, secondary, tertiary
|
|
16
|
-
* - criticality: success, error, warning, information
|
|
17
|
-
*/
|
|
18
|
-
export interface LabelProps extends HTMLAttributes<HTMLSpanElement> {
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
type OwnProps = {
|
|
19
4
|
/**
|
|
20
5
|
* The label text content
|
|
21
6
|
*/
|
|
@@ -50,5 +35,22 @@ export interface LabelProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
50
35
|
* - failed: Terminal failure
|
|
51
36
|
*/
|
|
52
37
|
lifecycle?: ModifierFamily<"lifecycle">;
|
|
53
|
-
}
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Props for the Label component
|
|
41
|
+
*
|
|
42
|
+
* @implements ds:global.component.label
|
|
43
|
+
*
|
|
44
|
+
* Anatomy (from DSL):
|
|
45
|
+
* - layout.display: inline
|
|
46
|
+
* - typography.size: font/size/label
|
|
47
|
+
* - typography.weight: font/weight/medium
|
|
48
|
+
*
|
|
49
|
+
* Modifier families (from DSL):
|
|
50
|
+
* - anticipation: constructive, caution, destructive
|
|
51
|
+
* - importance: primary, secondary, tertiary
|
|
52
|
+
* - criticality: success, error, warning, information
|
|
53
|
+
*/
|
|
54
|
+
export type LabelProps = OwnProps & Omit<ComponentProps<"span">, keyof OwnProps>;
|
|
55
|
+
export {};
|
|
54
56
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Label/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Label/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export interface RuleProps extends HTMLAttributes<HTMLHRElement> {
|
|
8
|
-
}
|
|
3
|
+
* Props for the Rule component. The rule has no DS-owned props of its own — it
|
|
4
|
+
* is a styled `<hr>` — so it simply accepts every native `<hr>` prop.
|
|
5
|
+
*/
|
|
6
|
+
export type RuleProps = ComponentProps<"hr">;
|
|
9
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Rule/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Rule/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import type { SECTION_SPACING } from "./constants.js";
|
|
3
3
|
export type SectionSpacing = (typeof SECTION_SPACING)[number];
|
|
4
|
-
|
|
5
|
-
We have used the `HTMLDivElement` as a default props base.
|
|
6
|
-
If your component is based on a different HTML element, please update it accordingly.
|
|
7
|
-
See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
|
|
8
|
-
*/
|
|
9
|
-
export interface SectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
/** Additional CSS classes */
|
|
11
|
-
className?: string;
|
|
4
|
+
type OwnProps = {
|
|
12
5
|
/** Child elements */
|
|
13
6
|
children: ReactNode;
|
|
14
7
|
/**
|
|
@@ -18,5 +11,11 @@ export interface SectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
18
11
|
spacing?: SectionSpacing;
|
|
19
12
|
/** Whether the section has a top border */
|
|
20
13
|
bordered?: boolean;
|
|
21
|
-
}
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Props for the Section component, extending the native props of its
|
|
17
|
+
* `<section>` root.
|
|
18
|
+
*/
|
|
19
|
+
export type SectionProps = OwnProps & Omit<ComponentProps<"section">, keyof OwnProps>;
|
|
20
|
+
export {};
|
|
22
21
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Section/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/Section/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,KAAK,QAAQ,GAAG;IACd,qBAAqB;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;MAGE;IACF,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|