@altinn/altinn-components 0.13.4 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/altinn-ds-overrides.css +38 -0
- package/dist/altinn-theme.css +46 -0
- package/dist/assets/ActionHeader.css +1 -1
- package/dist/assets/AttachmentLink.css +1 -1
- package/dist/assets/AutocompleteBase.css +1 -1
- package/dist/assets/AutocompleteGroup.css +1 -1
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Breadcrumbs.css +1 -1
- package/dist/assets/BreadcrumbsLink.css +1 -1
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/Byline.css +1 -1
- package/dist/assets/ContextMenu.css +1 -1
- package/dist/assets/DatepickerTable.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/DialogSelect.css +1 -1
- package/dist/assets/DrawerBase.css +1 -1
- package/dist/assets/DrawerHeader.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/FieldBase.css +1 -1
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/FooterBase.css +1 -1
- package/dist/assets/FooterMenu.css +1 -1
- package/dist/assets/GlobalMenuBase.css +1 -1
- package/dist/assets/Grid.css +1 -1
- package/dist/assets/HeaderButton.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/InputBase.css +1 -1
- package/dist/assets/LayoutBase.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ListItemMedia.css +1 -1
- package/dist/assets/ListItemSelect.css +1 -1
- package/dist/assets/MenuBase.css +1 -1
- package/dist/assets/MenuHeader.css +1 -1
- package/dist/assets/MenuInputField.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/MenuItemLabel.css +1 -1
- package/dist/assets/MenuItemMedia.css +1 -1
- package/dist/assets/MenuOption.css +1 -1
- package/dist/assets/MenuSearch.css +1 -1
- package/dist/assets/MetaItemBase.css +1 -1
- package/dist/assets/NotificationsItem.css +1 -0
- package/dist/assets/PageMenu.css +1 -0
- package/dist/assets/ProgressIcon.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/TimelineSection.css +1 -1
- package/dist/assets/ToolbarDaterange.css +1 -1
- package/dist/assets/ToolbarSearch.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/AccessAreaList/AccessAreaList.js +2 -2
- package/dist/components/AccessAreaList/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageList/AccessPackageList.js +1 -1
- package/dist/components/Attachment/AttachmentLink.js +8 -8
- package/dist/components/Autocomplete/AutocompleteBase.js +1 -1
- package/dist/components/Autocomplete/AutocompleteGroup.js +4 -4
- package/dist/components/Autocomplete/AutocompleteItem.js +12 -12
- package/dist/components/Badge/Badge.js +13 -6
- package/dist/components/Bookmarks/BookmarksListItem.js +23 -24
- package/dist/components/Bookmarks/BookmarksSection.js +19 -19
- package/dist/components/Bookmarks/QueryLabel.js +7 -7
- package/dist/components/Button/Button.js +17 -17
- package/dist/components/Button/ButtonBase.js +1 -1
- package/dist/components/Button/ComboButton.js +14 -14
- package/dist/components/Button/IconButton.js +17 -17
- package/dist/components/Byline/Byline.js +17 -9
- package/dist/components/ContextMenu/ContextMenu.js +30 -31
- package/dist/components/Datepicker/DatepickerHeader.js +14 -10
- package/dist/components/Datepicker/DatepickerTable.js +17 -13
- package/dist/components/Dialog/Dialog.js +75 -57
- package/dist/components/Dialog/DialogActions.js +26 -27
- package/dist/components/Dialog/DialogActivityLog.js +9 -5
- package/dist/components/Dialog/DialogAttachments.js +12 -7
- package/dist/components/Dialog/DialogContent.js +9 -9
- package/dist/components/Dialog/DialogHistoryItem.js +14 -13
- package/dist/components/Dialog/DialogLabel.js +12 -8
- package/dist/components/Dialog/DialogList.js +10 -10
- package/dist/components/Dialog/DialogListGroup.js +9 -9
- package/dist/components/Dialog/DialogListItem.js +74 -72
- package/dist/components/Dialog/DialogSection.js +6 -6
- package/dist/components/Dialog/DialogSeenBy.js +14 -10
- package/dist/components/Dialog/DialogSelect.js +15 -11
- package/dist/components/Dialog/DialogStatus.js +15 -11
- package/dist/components/Dialog/DialogTimelineItem.js +5 -5
- package/dist/components/Dialog/DialogTransmissions.js +7 -7
- package/dist/components/Dialog/DraftDialog.js +31 -30
- package/dist/components/Dropdown/DrawerBase.js +15 -5
- package/dist/components/Dropdown/DrawerHeader.js +14 -10
- package/dist/components/Dropdown/DropdownBase.js +19 -16
- package/dist/components/Footer/FooterBase.js +6 -6
- package/dist/components/Footer/FooterMenu.js +7 -8
- package/dist/components/GlobalMenu/AccountButton.js +1 -1
- package/dist/components/GlobalMenu/AccountMenu.js +15 -23
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +29 -29
- package/dist/components/GlobalMenu/GlobalMenuBase.js +8 -8
- package/dist/components/GlobalMenu/LogoutButton.js +11 -7
- package/dist/components/Header/Header.js +15 -13
- package/dist/components/Header/HeaderBase.js +4 -4
- package/dist/components/Header/HeaderButton.js +42 -40
- package/dist/components/Header/HeaderLogo.js +12 -8
- package/dist/components/Icon/Icon.js +14 -10
- package/dist/components/Icon/ProgressIcon.js +4 -4
- package/dist/components/Layout/Layout.js +26 -18
- package/dist/components/Layout/LayoutBase.js +5 -5
- package/dist/components/Layout/LayoutContent.js +4 -4
- package/dist/components/Layout/LayoutSidebar.js +4 -4
- package/dist/components/LayoutAction/ActionHeader.js +22 -11
- package/dist/components/LayoutAction/LayoutAction.js +38 -0
- package/dist/components/LayoutAction/index.js +6 -6
- package/dist/components/List/List.js +10 -9
- package/dist/components/List/ListBase.js +10 -5
- package/dist/components/List/ListItemBase.js +38 -31
- package/dist/components/List/ListItemHeader.js +22 -22
- package/dist/components/List/ListItemLabel.js +8 -8
- package/dist/components/List/ListItemMedia.js +17 -17
- package/dist/components/List/ListItemSelect.js +15 -11
- package/dist/components/Menu/Menu.js +20 -17
- package/dist/components/Menu/MenuBase.js +4 -4
- package/dist/components/Menu/MenuHeader.js +5 -5
- package/dist/components/Menu/MenuInputField.js +12 -12
- package/dist/components/Menu/MenuItem.js +38 -34
- package/dist/components/Menu/MenuItemBase.js +49 -44
- package/dist/components/Menu/MenuItemLabel.js +8 -8
- package/dist/components/Menu/MenuItemMedia.js +29 -23
- package/dist/components/Menu/MenuItems.js +47 -44
- package/dist/components/Menu/MenuOption.js +25 -21
- package/dist/components/Menu/MenuSearch.js +11 -21
- package/dist/components/Meta/MetaItemBase.js +8 -8
- package/dist/components/Page/Breadcrumbs.js +7 -7
- package/dist/components/Page/BreadcrumbsLink.js +2 -2
- package/dist/components/Page/Flex.js +37 -31
- package/dist/components/Page/Grid.js +20 -20
- package/dist/components/Page/PageBase.js +4 -4
- package/dist/components/Page/PageHeader.js +7 -7
- package/dist/components/Page/PageMenu.js +16 -0
- package/dist/components/Page/PageNav.js +13 -13
- package/dist/components/Page/Section.js +5 -18
- package/dist/components/Page/index.js +14 -12
- package/dist/components/Searchbar/SearchField.js +30 -31
- package/dist/components/Searchbar/SearchbarBase.js +7 -7
- package/dist/components/TextField/FieldBase.js +7 -7
- package/dist/components/TextField/InputBase.js +10 -10
- package/dist/components/Timeline/TimelineSection.js +22 -22
- package/dist/components/Toolbar/ToolbarAdd.js +10 -10
- package/dist/components/Toolbar/ToolbarButton.js +20 -18
- package/dist/components/Toolbar/ToolbarDaterange.js +22 -22
- package/dist/components/Toolbar/ToolbarMenu.js +10 -10
- package/dist/components/Toolbar/ToolbarOptions.js +17 -17
- package/dist/components/Toolbar/ToolbarSearch.js +10 -20
- package/dist/components/Transmission/TransmissionItem.js +37 -35
- package/dist/components/Typography/Typography.js +4 -11
- package/dist/components/index.js +289 -285
- package/dist/global.css +6 -9
- package/dist/index.js +295 -291
- package/dist/padding.css +23 -0
- package/dist/shadow.css +19 -0
- package/dist/spacing.css +31 -0
- package/dist/tokens/README.md +1 -1
- package/dist/tokens/accent.json +66 -0
- package/dist/tokens/color-scheme/light/altinn-ds.json +14 -14
- package/dist/tokens/design-tokens/primitives/modes/color-scheme/light/altinn-ds.json +14 -14
- package/dist/tokens/design-tokens/primitives/modes/size/global.json +96 -0
- package/dist/tokens/design-tokens/primitives/modes/size/large.json +16 -0
- package/dist/tokens/design-tokens/primitives/modes/size/medium.json +16 -0
- package/dist/tokens/design-tokens/primitives/modes/size/small.json +16 -0
- package/dist/tokens/design-tokens/primitives/modes/typography/size/large.json +100 -0
- package/dist/tokens/design-tokens/primitives/modes/typography/size/medium.json +100 -0
- package/dist/tokens/design-tokens/primitives/modes/typography/size/small.json +100 -0
- package/dist/tokens/design-tokens/semantic/modes/main-color/accent.json +66 -0
- package/dist/tokens/large.json +100 -0
- package/dist/tokens/light/altinn-ds.json +14 -14
- package/dist/tokens/main-color/accent.json +66 -0
- package/dist/tokens/medium.json +100 -0
- package/dist/tokens/modes/color-scheme/light/altinn-ds.json +14 -14
- package/dist/tokens/modes/main-color/accent.json +66 -0
- package/dist/tokens/modes/size/global.json +96 -0
- package/dist/tokens/modes/size/large.json +16 -0
- package/dist/tokens/modes/size/medium.json +16 -0
- package/dist/tokens/modes/size/small.json +16 -0
- package/dist/tokens/modes/typography/size/large.json +100 -0
- package/dist/tokens/modes/typography/size/medium.json +100 -0
- package/dist/tokens/modes/typography/size/small.json +100 -0
- package/dist/tokens/primitives/modes/color-scheme/light/altinn-ds.json +14 -14
- package/dist/tokens/primitives/modes/size/global.json +96 -0
- package/dist/tokens/primitives/modes/size/large.json +16 -0
- package/dist/tokens/primitives/modes/size/medium.json +16 -0
- package/dist/tokens/primitives/modes/size/small.json +16 -0
- package/dist/tokens/primitives/modes/typography/size/large.json +100 -0
- package/dist/tokens/primitives/modes/typography/size/medium.json +100 -0
- package/dist/tokens/primitives/modes/typography/size/small.json +100 -0
- package/dist/tokens/semantic/modes/main-color/accent.json +66 -0
- package/dist/tokens/size/global.json +96 -0
- package/dist/tokens/size/large.json +100 -0
- package/dist/tokens/size/medium.json +100 -0
- package/dist/tokens/size/small.json +100 -0
- package/dist/tokens/small.json +100 -0
- package/dist/tokens/typography/size/large.json +100 -0
- package/dist/tokens/typography/size/medium.json +100 -0
- package/dist/tokens/typography/size/small.json +100 -0
- package/dist/types/color.js +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/lib/components/AccessAreaList/AccessAreaList.d.ts +3 -3
- package/dist/types/lib/components/Badge/Badge.d.ts +5 -2
- package/dist/types/lib/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonBase.d.ts +2 -1
- package/dist/types/lib/components/Button/IconButton.d.ts +1 -1
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Byline/Byline.d.ts +3 -1
- package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogAttachments.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +4 -1
- package/dist/types/lib/components/Dropdown/Backdrop.d.ts +1 -1
- package/dist/types/lib/components/Header/HeaderButton.d.ts +1 -1
- package/dist/types/lib/components/Header/HeaderButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Icon/Icon.d.ts +8 -2
- package/dist/types/lib/components/Layout/Layout.d.ts +5 -4
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +2 -2
- package/dist/types/lib/components/Layout/LayoutBase.d.ts +5 -3
- package/dist/types/lib/components/Layout/LayoutBase.stories.d.ts +1 -1
- package/dist/types/lib/components/Layout/LayoutContent.d.ts +1 -1
- package/dist/types/lib/components/Layout/LayoutContent.stories.d.ts +1 -1
- package/dist/types/lib/components/Layout/LayoutSidebar.d.ts +3 -3
- package/dist/types/lib/components/Layout/LayoutSidebar.stories.d.ts +1 -1
- package/dist/types/lib/components/LayoutAction/ActionHeader.d.ts +4 -1
- package/dist/types/lib/components/LayoutAction/LayoutAction.d.ts +15 -0
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +34 -0
- package/dist/types/lib/components/LayoutAction/index.d.ts +1 -1
- package/dist/types/lib/components/List/List.d.ts +4 -7
- package/dist/types/lib/components/List/List.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListBase.d.ts +4 -12
- package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemBase.d.ts +5 -2
- package/dist/types/lib/components/Menu/Menu.d.ts +3 -1
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +2 -2
- package/dist/types/lib/components/Menu/MenuBase.d.ts +3 -1
- package/dist/types/lib/components/Menu/MenuItem.d.ts +5 -5
- package/dist/types/lib/components/Menu/MenuItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +6 -5
- package/dist/types/lib/components/Menu/MenuItemMedia.d.ts +4 -3
- package/dist/types/lib/components/Menu/MenuItems.d.ts +4 -2
- package/dist/types/lib/components/Page/Flex.d.ts +9 -7
- package/dist/types/lib/components/Page/Grid.d.ts +7 -8
- package/dist/types/lib/components/Page/PageBase.d.ts +7 -5
- package/dist/types/lib/components/Page/PageMenu.d.ts +8 -0
- package/dist/types/lib/components/{LayoutAction/ActionMenu.stories.d.ts → Page/PageMenu.stories.d.ts} +2 -2
- package/dist/types/lib/components/Page/PageNav.d.ts +6 -6
- package/dist/types/lib/components/Page/PageNav.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/Section.d.ts +5 -8
- package/dist/types/lib/components/Page/index.d.ts +1 -0
- package/dist/types/lib/components/ResourceList/ResourceList.stories.d.ts +0 -1
- package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -3
- package/dist/types/lib/components/Transmission/TransmissionItem.d.ts +4 -1
- package/dist/types/lib/components/Transmission/TransmissionItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Typography/Typography.d.ts +3 -3
- package/dist/types/lib/components/index.d.ts +1 -0
- package/dist/types/lib/types/color.d.ts +2 -0
- package/dist/types/lib/types/index.d.ts +4 -0
- package/dist/types/lib/types/range.d.ts +1 -0
- package/dist/types/lib/types/shadow.d.ts +1 -0
- package/dist/types/lib/types/size.d.ts +8 -0
- package/dist/types/range.js +1 -0
- package/dist/types/shadow.js +1 -0
- package/dist/types/size.js +4 -0
- package/package.json +1 -1
- package/dist/assets/ActionMenu.css +0 -1
- package/dist/assets/ListBase.css +0 -1
- package/dist/assets/Section.css +0 -1
- package/dist/assets/Swatches.css +0 -1
- package/dist/colors.css +0 -113
- package/dist/components/LayoutAction/ActionMenu.js +0 -16
- package/dist/shadows.css +0 -7
- package/dist/theme-article.css +0 -15
- package/dist/theme-company.css +0 -15
- package/dist/theme-global-dark.css +0 -19
- package/dist/theme-global.css +0 -15
- package/dist/theme-neutral.css +0 -15
- package/dist/theme-person.css +0 -15
- package/dist/theme.css +0 -22
- package/dist/types/lib/components/LayoutAction/ActionFooter.stories.d.ts +0 -11
- package/dist/types/lib/components/LayoutAction/ActionHeader.stories.d.ts +0 -11
- package/dist/types/lib/components/LayoutAction/ActionMenu.d.ts +0 -6
- package/dist/types/lib/components/Menu/MenuItems.stories.d.ts +0 -17
- package/dist/types/lib/components/Page/Examples.stories.d.ts +0 -12
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"line-height": {
|
|
3
|
+
"sm": {
|
|
4
|
+
"$type": "lineHeights",
|
|
5
|
+
"$value": "130%"
|
|
6
|
+
},
|
|
7
|
+
"md": {
|
|
8
|
+
"$type": "lineHeights",
|
|
9
|
+
"$value": "150%"
|
|
10
|
+
},
|
|
11
|
+
"lg": {
|
|
12
|
+
"$type": "lineHeights",
|
|
13
|
+
"$value": "170%"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font-size": {
|
|
17
|
+
"1": {
|
|
18
|
+
"$type": "fontSizes",
|
|
19
|
+
"$value": "11"
|
|
20
|
+
},
|
|
21
|
+
"2": {
|
|
22
|
+
"$type": "fontSizes",
|
|
23
|
+
"$value": "12"
|
|
24
|
+
},
|
|
25
|
+
"3": {
|
|
26
|
+
"$type": "fontSizes",
|
|
27
|
+
"$value": "13"
|
|
28
|
+
},
|
|
29
|
+
"4": {
|
|
30
|
+
"$type": "fontSizes",
|
|
31
|
+
"$value": "14"
|
|
32
|
+
},
|
|
33
|
+
"5": {
|
|
34
|
+
"$type": "fontSizes",
|
|
35
|
+
"$value": "16"
|
|
36
|
+
},
|
|
37
|
+
"6": {
|
|
38
|
+
"$type": "fontSizes",
|
|
39
|
+
"$value": "18"
|
|
40
|
+
},
|
|
41
|
+
"7": {
|
|
42
|
+
"$type": "fontSizes",
|
|
43
|
+
"$value": "21"
|
|
44
|
+
},
|
|
45
|
+
"8": {
|
|
46
|
+
"$type": "fontSizes",
|
|
47
|
+
"$value": "24"
|
|
48
|
+
},
|
|
49
|
+
"9": {
|
|
50
|
+
"$type": "fontSizes",
|
|
51
|
+
"$value": "30"
|
|
52
|
+
},
|
|
53
|
+
"10": {
|
|
54
|
+
"$type": "fontSizes",
|
|
55
|
+
"$value": "36"
|
|
56
|
+
},
|
|
57
|
+
"11": {
|
|
58
|
+
"$type": "fontSizes",
|
|
59
|
+
"$value": "48"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"letter-spacing": {
|
|
63
|
+
"1": {
|
|
64
|
+
"$type": "letterSpacing",
|
|
65
|
+
"$value": "-1%"
|
|
66
|
+
},
|
|
67
|
+
"2": {
|
|
68
|
+
"$type": "letterSpacing",
|
|
69
|
+
"$value": "-0.5%"
|
|
70
|
+
},
|
|
71
|
+
"3": {
|
|
72
|
+
"$type": "letterSpacing",
|
|
73
|
+
"$value": "-0.25%"
|
|
74
|
+
},
|
|
75
|
+
"4": {
|
|
76
|
+
"$type": "letterSpacing",
|
|
77
|
+
"$value": "-0.15%"
|
|
78
|
+
},
|
|
79
|
+
"5": {
|
|
80
|
+
"$type": "letterSpacing",
|
|
81
|
+
"$value": "0%"
|
|
82
|
+
},
|
|
83
|
+
"6": {
|
|
84
|
+
"$type": "letterSpacing",
|
|
85
|
+
"$value": "0.15%"
|
|
86
|
+
},
|
|
87
|
+
"7": {
|
|
88
|
+
"$type": "letterSpacing",
|
|
89
|
+
"$value": "0.25%"
|
|
90
|
+
},
|
|
91
|
+
"8": {
|
|
92
|
+
"$type": "letterSpacing",
|
|
93
|
+
"$value": "0.5%"
|
|
94
|
+
},
|
|
95
|
+
"9": {
|
|
96
|
+
"$type": "letterSpacing",
|
|
97
|
+
"$value": "1.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"line-height": {
|
|
3
|
+
"sm": {
|
|
4
|
+
"$type": "lineHeights",
|
|
5
|
+
"$value": "130%"
|
|
6
|
+
},
|
|
7
|
+
"md": {
|
|
8
|
+
"$type": "lineHeights",
|
|
9
|
+
"$value": "150%"
|
|
10
|
+
},
|
|
11
|
+
"lg": {
|
|
12
|
+
"$type": "lineHeights",
|
|
13
|
+
"$value": "170%"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font-size": {
|
|
17
|
+
"1": {
|
|
18
|
+
"$type": "fontSizes",
|
|
19
|
+
"$value": "11"
|
|
20
|
+
},
|
|
21
|
+
"2": {
|
|
22
|
+
"$type": "fontSizes",
|
|
23
|
+
"$value": "12"
|
|
24
|
+
},
|
|
25
|
+
"3": {
|
|
26
|
+
"$type": "fontSizes",
|
|
27
|
+
"$value": "13"
|
|
28
|
+
},
|
|
29
|
+
"4": {
|
|
30
|
+
"$type": "fontSizes",
|
|
31
|
+
"$value": "14"
|
|
32
|
+
},
|
|
33
|
+
"5": {
|
|
34
|
+
"$type": "fontSizes",
|
|
35
|
+
"$value": "16"
|
|
36
|
+
},
|
|
37
|
+
"6": {
|
|
38
|
+
"$type": "fontSizes",
|
|
39
|
+
"$value": "18"
|
|
40
|
+
},
|
|
41
|
+
"7": {
|
|
42
|
+
"$type": "fontSizes",
|
|
43
|
+
"$value": "21"
|
|
44
|
+
},
|
|
45
|
+
"8": {
|
|
46
|
+
"$type": "fontSizes",
|
|
47
|
+
"$value": "24"
|
|
48
|
+
},
|
|
49
|
+
"9": {
|
|
50
|
+
"$type": "fontSizes",
|
|
51
|
+
"$value": "30"
|
|
52
|
+
},
|
|
53
|
+
"10": {
|
|
54
|
+
"$type": "fontSizes",
|
|
55
|
+
"$value": "36"
|
|
56
|
+
},
|
|
57
|
+
"11": {
|
|
58
|
+
"$type": "fontSizes",
|
|
59
|
+
"$value": "48"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"letter-spacing": {
|
|
63
|
+
"1": {
|
|
64
|
+
"$type": "letterSpacing",
|
|
65
|
+
"$value": "-1%"
|
|
66
|
+
},
|
|
67
|
+
"2": {
|
|
68
|
+
"$type": "letterSpacing",
|
|
69
|
+
"$value": "-0.5%"
|
|
70
|
+
},
|
|
71
|
+
"3": {
|
|
72
|
+
"$type": "letterSpacing",
|
|
73
|
+
"$value": "-0.25%"
|
|
74
|
+
},
|
|
75
|
+
"4": {
|
|
76
|
+
"$type": "letterSpacing",
|
|
77
|
+
"$value": "-0.15%"
|
|
78
|
+
},
|
|
79
|
+
"5": {
|
|
80
|
+
"$type": "letterSpacing",
|
|
81
|
+
"$value": "0%"
|
|
82
|
+
},
|
|
83
|
+
"6": {
|
|
84
|
+
"$type": "letterSpacing",
|
|
85
|
+
"$value": "0.15%"
|
|
86
|
+
},
|
|
87
|
+
"7": {
|
|
88
|
+
"$type": "letterSpacing",
|
|
89
|
+
"$value": "0.25%"
|
|
90
|
+
},
|
|
91
|
+
"8": {
|
|
92
|
+
"$type": "letterSpacing",
|
|
93
|
+
"$value": "0.5%"
|
|
94
|
+
},
|
|
95
|
+
"9": {
|
|
96
|
+
"$type": "letterSpacing",
|
|
97
|
+
"$value": "1.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"line-height": {
|
|
3
|
+
"sm": {
|
|
4
|
+
"$type": "lineHeights",
|
|
5
|
+
"$value": "130%"
|
|
6
|
+
},
|
|
7
|
+
"md": {
|
|
8
|
+
"$type": "lineHeights",
|
|
9
|
+
"$value": "150%"
|
|
10
|
+
},
|
|
11
|
+
"lg": {
|
|
12
|
+
"$type": "lineHeights",
|
|
13
|
+
"$value": "170%"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font-size": {
|
|
17
|
+
"1": {
|
|
18
|
+
"$type": "fontSizes",
|
|
19
|
+
"$value": "13"
|
|
20
|
+
},
|
|
21
|
+
"2": {
|
|
22
|
+
"$type": "fontSizes",
|
|
23
|
+
"$value": "14"
|
|
24
|
+
},
|
|
25
|
+
"3": {
|
|
26
|
+
"$type": "fontSizes",
|
|
27
|
+
"$value": "16"
|
|
28
|
+
},
|
|
29
|
+
"4": {
|
|
30
|
+
"$type": "fontSizes",
|
|
31
|
+
"$value": "18"
|
|
32
|
+
},
|
|
33
|
+
"5": {
|
|
34
|
+
"$type": "fontSizes",
|
|
35
|
+
"$value": "21"
|
|
36
|
+
},
|
|
37
|
+
"6": {
|
|
38
|
+
"$type": "fontSizes",
|
|
39
|
+
"$value": "24"
|
|
40
|
+
},
|
|
41
|
+
"7": {
|
|
42
|
+
"$type": "fontSizes",
|
|
43
|
+
"$value": "30"
|
|
44
|
+
},
|
|
45
|
+
"8": {
|
|
46
|
+
"$type": "fontSizes",
|
|
47
|
+
"$value": "36"
|
|
48
|
+
},
|
|
49
|
+
"9": {
|
|
50
|
+
"$type": "fontSizes",
|
|
51
|
+
"$value": "48"
|
|
52
|
+
},
|
|
53
|
+
"10": {
|
|
54
|
+
"$type": "fontSizes",
|
|
55
|
+
"$value": "60"
|
|
56
|
+
},
|
|
57
|
+
"11": {
|
|
58
|
+
"$type": "fontSizes",
|
|
59
|
+
"$value": "72"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"letter-spacing": {
|
|
63
|
+
"1": {
|
|
64
|
+
"$type": "letterSpacing",
|
|
65
|
+
"$value": "-1%"
|
|
66
|
+
},
|
|
67
|
+
"2": {
|
|
68
|
+
"$type": "letterSpacing",
|
|
69
|
+
"$value": "-0.5%"
|
|
70
|
+
},
|
|
71
|
+
"3": {
|
|
72
|
+
"$type": "letterSpacing",
|
|
73
|
+
"$value": "-0.25%"
|
|
74
|
+
},
|
|
75
|
+
"4": {
|
|
76
|
+
"$type": "letterSpacing",
|
|
77
|
+
"$value": "-0.15%"
|
|
78
|
+
},
|
|
79
|
+
"5": {
|
|
80
|
+
"$type": "letterSpacing",
|
|
81
|
+
"$value": "0%"
|
|
82
|
+
},
|
|
83
|
+
"6": {
|
|
84
|
+
"$type": "letterSpacing",
|
|
85
|
+
"$value": "0.15%"
|
|
86
|
+
},
|
|
87
|
+
"7": {
|
|
88
|
+
"$type": "letterSpacing",
|
|
89
|
+
"$value": "0.25%"
|
|
90
|
+
},
|
|
91
|
+
"8": {
|
|
92
|
+
"$type": "letterSpacing",
|
|
93
|
+
"$value": "0.5%"
|
|
94
|
+
},
|
|
95
|
+
"9": {
|
|
96
|
+
"$type": "letterSpacing",
|
|
97
|
+
"$value": "1.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"line-height": {
|
|
3
|
+
"sm": {
|
|
4
|
+
"$type": "lineHeights",
|
|
5
|
+
"$value": "130%"
|
|
6
|
+
},
|
|
7
|
+
"md": {
|
|
8
|
+
"$type": "lineHeights",
|
|
9
|
+
"$value": "150%"
|
|
10
|
+
},
|
|
11
|
+
"lg": {
|
|
12
|
+
"$type": "lineHeights",
|
|
13
|
+
"$value": "170%"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font-size": {
|
|
17
|
+
"1": {
|
|
18
|
+
"$type": "fontSizes",
|
|
19
|
+
"$value": "12"
|
|
20
|
+
},
|
|
21
|
+
"2": {
|
|
22
|
+
"$type": "fontSizes",
|
|
23
|
+
"$value": "13"
|
|
24
|
+
},
|
|
25
|
+
"3": {
|
|
26
|
+
"$type": "fontSizes",
|
|
27
|
+
"$value": "14"
|
|
28
|
+
},
|
|
29
|
+
"4": {
|
|
30
|
+
"$type": "fontSizes",
|
|
31
|
+
"$value": "16"
|
|
32
|
+
},
|
|
33
|
+
"5": {
|
|
34
|
+
"$type": "fontSizes",
|
|
35
|
+
"$value": "18"
|
|
36
|
+
},
|
|
37
|
+
"6": {
|
|
38
|
+
"$type": "fontSizes",
|
|
39
|
+
"$value": "21"
|
|
40
|
+
},
|
|
41
|
+
"7": {
|
|
42
|
+
"$type": "fontSizes",
|
|
43
|
+
"$value": "24"
|
|
44
|
+
},
|
|
45
|
+
"8": {
|
|
46
|
+
"$type": "fontSizes",
|
|
47
|
+
"$value": "30"
|
|
48
|
+
},
|
|
49
|
+
"9": {
|
|
50
|
+
"$type": "fontSizes",
|
|
51
|
+
"$value": "36"
|
|
52
|
+
},
|
|
53
|
+
"10": {
|
|
54
|
+
"$type": "fontSizes",
|
|
55
|
+
"$value": "48"
|
|
56
|
+
},
|
|
57
|
+
"11": {
|
|
58
|
+
"$type": "fontSizes",
|
|
59
|
+
"$value": "60"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"letter-spacing": {
|
|
63
|
+
"1": {
|
|
64
|
+
"$type": "letterSpacing",
|
|
65
|
+
"$value": "-1%"
|
|
66
|
+
},
|
|
67
|
+
"2": {
|
|
68
|
+
"$type": "letterSpacing",
|
|
69
|
+
"$value": "-0.5%"
|
|
70
|
+
},
|
|
71
|
+
"3": {
|
|
72
|
+
"$type": "letterSpacing",
|
|
73
|
+
"$value": "-0.25%"
|
|
74
|
+
},
|
|
75
|
+
"4": {
|
|
76
|
+
"$type": "letterSpacing",
|
|
77
|
+
"$value": "-0.15%"
|
|
78
|
+
},
|
|
79
|
+
"5": {
|
|
80
|
+
"$type": "letterSpacing",
|
|
81
|
+
"$value": "0%"
|
|
82
|
+
},
|
|
83
|
+
"6": {
|
|
84
|
+
"$type": "letterSpacing",
|
|
85
|
+
"$value": "0.15%"
|
|
86
|
+
},
|
|
87
|
+
"7": {
|
|
88
|
+
"$type": "letterSpacing",
|
|
89
|
+
"$value": "0.25%"
|
|
90
|
+
},
|
|
91
|
+
"8": {
|
|
92
|
+
"$type": "letterSpacing",
|
|
93
|
+
"$value": "0.5%"
|
|
94
|
+
},
|
|
95
|
+
"9": {
|
|
96
|
+
"$type": "letterSpacing",
|
|
97
|
+
"$value": "1.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"line-height": {
|
|
3
|
+
"sm": {
|
|
4
|
+
"$type": "lineHeights",
|
|
5
|
+
"$value": "130%"
|
|
6
|
+
},
|
|
7
|
+
"md": {
|
|
8
|
+
"$type": "lineHeights",
|
|
9
|
+
"$value": "150%"
|
|
10
|
+
},
|
|
11
|
+
"lg": {
|
|
12
|
+
"$type": "lineHeights",
|
|
13
|
+
"$value": "170%"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font-size": {
|
|
17
|
+
"1": {
|
|
18
|
+
"$type": "fontSizes",
|
|
19
|
+
"$value": "11"
|
|
20
|
+
},
|
|
21
|
+
"2": {
|
|
22
|
+
"$type": "fontSizes",
|
|
23
|
+
"$value": "12"
|
|
24
|
+
},
|
|
25
|
+
"3": {
|
|
26
|
+
"$type": "fontSizes",
|
|
27
|
+
"$value": "13"
|
|
28
|
+
},
|
|
29
|
+
"4": {
|
|
30
|
+
"$type": "fontSizes",
|
|
31
|
+
"$value": "14"
|
|
32
|
+
},
|
|
33
|
+
"5": {
|
|
34
|
+
"$type": "fontSizes",
|
|
35
|
+
"$value": "16"
|
|
36
|
+
},
|
|
37
|
+
"6": {
|
|
38
|
+
"$type": "fontSizes",
|
|
39
|
+
"$value": "18"
|
|
40
|
+
},
|
|
41
|
+
"7": {
|
|
42
|
+
"$type": "fontSizes",
|
|
43
|
+
"$value": "21"
|
|
44
|
+
},
|
|
45
|
+
"8": {
|
|
46
|
+
"$type": "fontSizes",
|
|
47
|
+
"$value": "24"
|
|
48
|
+
},
|
|
49
|
+
"9": {
|
|
50
|
+
"$type": "fontSizes",
|
|
51
|
+
"$value": "30"
|
|
52
|
+
},
|
|
53
|
+
"10": {
|
|
54
|
+
"$type": "fontSizes",
|
|
55
|
+
"$value": "36"
|
|
56
|
+
},
|
|
57
|
+
"11": {
|
|
58
|
+
"$type": "fontSizes",
|
|
59
|
+
"$value": "48"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"letter-spacing": {
|
|
63
|
+
"1": {
|
|
64
|
+
"$type": "letterSpacing",
|
|
65
|
+
"$value": "-1%"
|
|
66
|
+
},
|
|
67
|
+
"2": {
|
|
68
|
+
"$type": "letterSpacing",
|
|
69
|
+
"$value": "-0.5%"
|
|
70
|
+
},
|
|
71
|
+
"3": {
|
|
72
|
+
"$type": "letterSpacing",
|
|
73
|
+
"$value": "-0.25%"
|
|
74
|
+
},
|
|
75
|
+
"4": {
|
|
76
|
+
"$type": "letterSpacing",
|
|
77
|
+
"$value": "-0.15%"
|
|
78
|
+
},
|
|
79
|
+
"5": {
|
|
80
|
+
"$type": "letterSpacing",
|
|
81
|
+
"$value": "0%"
|
|
82
|
+
},
|
|
83
|
+
"6": {
|
|
84
|
+
"$type": "letterSpacing",
|
|
85
|
+
"$value": "0.15%"
|
|
86
|
+
},
|
|
87
|
+
"7": {
|
|
88
|
+
"$type": "letterSpacing",
|
|
89
|
+
"$value": "0.25%"
|
|
90
|
+
},
|
|
91
|
+
"8": {
|
|
92
|
+
"$type": "letterSpacing",
|
|
93
|
+
"$value": "0.5%"
|
|
94
|
+
},
|
|
95
|
+
"9": {
|
|
96
|
+
"$type": "letterSpacing",
|
|
97
|
+
"$value": "1.5%"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListItemColor } from '../List';
|
|
2
2
|
import { AccessAreaListItemProps } from './AccessAreaListItem';
|
|
3
3
|
export interface AccessAreaListProps {
|
|
4
4
|
items: AccessAreaListItemProps[];
|
|
5
|
-
|
|
5
|
+
color?: ListItemColor;
|
|
6
6
|
}
|
|
7
|
-
export declare const AccessAreaList: ({ items,
|
|
7
|
+
export declare const AccessAreaList: ({ items, color }: AccessAreaListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { Color } from '..';
|
|
3
|
+
export type BadgeColor = Color;
|
|
4
|
+
export type BadgeVariant = 'subtle' | 'strong';
|
|
3
5
|
export type BadgeSize = 'sm' | 'xs';
|
|
4
6
|
export interface BadgeProps {
|
|
5
7
|
label?: string | number;
|
|
6
8
|
color?: BadgeColor;
|
|
9
|
+
variant?: BadgeVariant;
|
|
7
10
|
size?: BadgeSize;
|
|
8
11
|
className?: string;
|
|
9
12
|
children?: ReactNode;
|
|
10
13
|
}
|
|
11
|
-
export declare const Badge: ({ label, color, size, className, children }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Badge: ({ label, color, variant, size, className, children, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ label, color, size, className, children }: import('./Badge').BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ label, color, variant, size, className, children, }: import('./Badge').BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { Color } from '..';
|
|
2
3
|
export type ButtonVariant = 'solid' | 'outline' | 'dotted' | 'text';
|
|
3
4
|
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'custom';
|
|
4
|
-
export type ButtonColor =
|
|
5
|
+
export type ButtonColor = Color | 'inherit';
|
|
5
6
|
export interface ButtonBaseProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
6
7
|
/**
|
|
7
8
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
@@ -11,4 +11,4 @@ export interface IconButtonProps {
|
|
|
11
11
|
onClick?: MouseEventHandler;
|
|
12
12
|
dataTestId?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const IconButton: ({ variant,
|
|
14
|
+
export declare const IconButton: ({ variant, size, icon, color, iconSize, className, onClick, dataTestId, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { IconButtonProps } from './IconButton';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ variant,
|
|
5
|
+
component: ({ variant, size, icon, color, iconSize, className, onClick, dataTestId, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {};
|
|
8
8
|
args: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AvatarGroupProps, AvatarProps } from '..';
|
|
3
|
+
export type BylineColor = 'neutral' | 'company' | 'person';
|
|
3
4
|
export type BylineSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
5
|
export interface BylineProps {
|
|
5
6
|
size?: BylineSize;
|
|
7
|
+
color?: BylineColor;
|
|
6
8
|
avatar?: AvatarProps;
|
|
7
9
|
avatarGroup?: AvatarGroupProps;
|
|
8
10
|
datetime?: string;
|
|
@@ -10,4 +12,4 @@ export interface BylineProps {
|
|
|
10
12
|
children?: ReactNode;
|
|
11
13
|
}
|
|
12
14
|
/** Byline, possible avatar/avatarGroup, name and more info */
|
|
13
|
-
export declare const Byline: ({ loading, size, avatar, avatarGroup, datetime, children }: BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Byline: ({ loading, color, size, avatar, avatarGroup, datetime, children, }: BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, size, avatar, avatarGroup, datetime, children }: import('./Byline').BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, color, size, avatar, avatarGroup, datetime, children, }: import('./Byline').BylineProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AvatarProps, DialogSeenByProps, DialogSelectProps, DialogStatusProps, DialogTouchedByActor, ListItemBaseProps, ListItemLinkProps } from '..';
|
|
2
2
|
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export type DialogListItemState = 'normal' | 'trashed' | 'archived';
|
|
4
|
+
export type DialogListItemTheme = 'default' | 'subtle' | 'transparent';
|
|
4
5
|
export interface DialogListItemProps extends ListItemBaseProps, ListItemLinkProps {
|
|
5
6
|
/** Dialog title */
|
|
6
7
|
title: string;
|
|
@@ -58,10 +59,12 @@ export interface DialogListItemProps extends ListItemBaseProps, ListItemLinkProp
|
|
|
58
59
|
attachmentsCount?: number;
|
|
59
60
|
/** Group id */
|
|
60
61
|
groupId?: string;
|
|
62
|
+
/** Theme */
|
|
63
|
+
theme?: DialogListItemTheme;
|
|
61
64
|
}
|
|
62
65
|
/**
|
|
63
66
|
* Represents a dialog in list view, displaying information such as the title,
|
|
64
67
|
* summary, sender, and receiver.
|
|
65
68
|
* to mark the item as checked/unchecked and can visually indicate if it is unread.
|
|
66
69
|
*/
|
|
67
|
-
export declare const DialogListItem: ({ size, state, loading, select, status, sender, recipient, recipientLabel, recipientGroup, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, label, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, description, summary, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export declare const DialogListItem: ({ size, state, loading, select, selected, status, sender, recipient, recipientLabel, recipientGroup, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, label, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, description, summary, theme, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface HeaderButtonProps extends ButtonProps {
|
|
|
14
14
|
badge?: BadgeProps | undefined;
|
|
15
15
|
tabIndex?: number;
|
|
16
16
|
}
|
|
17
|
-
export declare const HeaderButton: ({ className, as, avatar, avatarGroup, icon, expanded, label, badge, ...buttonProps }: HeaderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const HeaderButton: ({ className, as, color, variant, avatar, avatarGroup, icon, expanded, label, badge, ...buttonProps }: HeaderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ className, as, avatar, avatarGroup, icon, expanded, label, badge, ...buttonProps }: import('./HeaderButton').HeaderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ className, as, color, variant, avatar, avatarGroup, icon, expanded, label, badge, ...buttonProps }: import('./HeaderButton').HeaderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { IconName } from '
|
|
1
|
+
import { Color, IconName, Size, Theme } from '..';
|
|
2
2
|
export type IconVariant = 'solid' | 'outline';
|
|
3
|
+
export type IconSize = Size | undefined;
|
|
4
|
+
export type IconColor = Color;
|
|
5
|
+
export type IconTheme = Theme;
|
|
3
6
|
interface IconProps {
|
|
4
7
|
name: IconName;
|
|
8
|
+
size?: IconSize;
|
|
9
|
+
color?: IconColor;
|
|
10
|
+
theme?: IconTheme;
|
|
5
11
|
variant?: IconVariant;
|
|
6
12
|
className?: string;
|
|
7
13
|
}
|
|
8
|
-
export declare const Icon: ({ name, variant, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Icon: ({ name, size, color, theme, variant, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
15
|
export {};
|