@redocly/theme 0.18.3-patch.0 → 0.18.3
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/lib/I18n/LanguagePicker.d.ts +2 -7
- package/lib/I18n/LanguagePicker.js +3 -11
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -15
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
- package/lib/components/Breadcrumbs/Breadcrumb.js +3 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.js +9 -2
- package/lib/components/Breadcrumbs/index.d.ts +0 -1
- package/lib/components/Breadcrumbs/index.js +0 -1
- package/lib/components/Button/Button.d.ts +3 -6
- package/lib/components/Button/Button.js +42 -40
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/Button/index.js +0 -1
- package/lib/components/Catalog/Catalog.d.ts +0 -1
- package/lib/components/Catalog/Catalog.js +96 -99
- package/lib/components/Catalog/CatalogCard.js +58 -62
- package/lib/components/Catalog/index.d.ts +3 -4
- package/lib/components/Catalog/index.js +3 -4
- package/lib/components/Catalog/useCatalog.js +12 -1
- package/lib/components/CodeBlock/CodeBlockContainer.js +8 -35
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
- package/lib/components/CodeBlock/CodeBlockControls.js +11 -10
- package/lib/components/CodeBlock/index.d.ts +0 -1
- package/lib/components/CodeBlock/index.js +0 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +3 -0
- package/lib/components/Dropdown/Dropdown.d.ts +2 -7
- package/lib/components/Dropdown/Dropdown.js +4 -6
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/EditPageButton/EditPageButton.js +2 -1
- package/lib/components/Feedback/Feedback.js +13 -3
- package/lib/components/Feedback/Reasons.js +1 -1
- package/lib/components/Feedback/Sentiment.js +6 -2
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.js +78 -101
- package/lib/components/Filter/index.d.ts +0 -2
- package/lib/components/Filter/index.js +0 -2
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +3 -4
- package/lib/components/Footer/Footer.js +10 -27
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +64 -53
- package/lib/components/Footer/FooterColumns.js +4 -6
- package/lib/components/Footer/FooterCopyright.js +6 -11
- package/lib/components/Footer/index.d.ts +0 -1
- package/lib/components/Footer/index.js +0 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/Markdown/MarkdownWrapper.js +4 -2
- package/lib/components/Markdown/Mermaid.js +1 -1
- package/lib/components/Markdown/index.d.ts +0 -1
- package/lib/components/Markdown/index.js +0 -1
- package/lib/components/Menu/Menu.js +7 -5
- package/lib/components/Menu/MenuGroup.js +7 -12
- package/lib/components/Menu/MenuItemLabel.js +13 -7
- package/lib/components/Menu/MenuLinkItem.js +2 -1
- package/lib/components/Menu/MobileMenu.js +25 -20
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/index.d.ts +0 -1
- package/lib/components/Menu/index.js +0 -1
- package/lib/components/{Profile → Navbar}/MobileUserProfile.js +28 -5
- package/lib/components/Navbar/Navbar.js +11 -10
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +6 -7
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +0 -1
- package/lib/components/Navbar/index.js +0 -1
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +1 -4
- package/lib/components/NavbarLogo/NavbarLogo.js +6 -13
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
- package/lib/components/OperationBadge/OperationBadge.js +68 -0
- package/lib/components/OperationBadge/index.d.ts +1 -0
- package/lib/{icons/ErrorIcon → components/OperationBadge}/index.js +1 -1
- package/lib/components/Panel/PanelHeader.js +0 -1
- package/lib/components/Panel/PanelHeaderTitle.js +4 -0
- package/lib/components/Panel/index.d.ts +0 -1
- package/lib/components/Panel/index.js +0 -1
- package/lib/components/Product/index.d.ts +0 -1
- package/lib/components/Product/index.js +0 -1
- package/lib/components/Profile/LoginLink.js +6 -2
- package/lib/components/Profile/Profile.js +22 -3
- package/lib/components/Profile/UserProfile.js +13 -21
- package/lib/components/Profile/index.d.ts +0 -1
- package/lib/components/Profile/index.js +0 -15
- package/lib/components/Search/CancelSearch.js +14 -2
- package/lib/components/Search/ProductTag.js +7 -7
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +2 -0
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +5 -4
- package/lib/components/Search/ShortcutKey.js +5 -1
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +0 -1
- package/lib/components/Search/index.js +0 -1
- package/lib/components/Select/Select.d.ts +3 -10
- package/lib/components/Select/Select.js +6 -9
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/Select/index.js +0 -1
- package/lib/components/Separator/SeparatorItem.js +5 -7
- package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
- package/lib/components/Sidebar/ApiCallItem.js +11 -13
- package/lib/components/Sidebar/FooterWrapper.js +4 -3
- package/lib/components/Sidebar/HeaderWrapper.js +2 -2
- package/lib/components/Sidebar/SidebarLayout.js +2 -1
- package/lib/components/Sidebar/VersionPicker.d.ts +1 -1
- package/lib/components/Sidebar/index.d.ts +0 -1
- package/lib/components/Sidebar/index.js +0 -1
- package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -37
- package/lib/components/SidebarActions/SidebarActions.js +15 -3
- package/lib/components/SidebarActions/styled.js +14 -16
- package/lib/components/TableOfContent/TableOfContent.js +5 -3
- package/lib/components/TableOfContent/index.d.ts +0 -1
- package/lib/components/TableOfContent/index.js +0 -1
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tags/Tags.d.ts +5 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/{Image → Tags}/index.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tooltip/index.d.ts +0 -1
- package/lib/components/Tooltip/index.js +0 -1
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/config.d.ts +0 -6
- package/lib/config.js +0 -1
- package/lib/globalStyle.js +1967 -597
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -1
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +0 -4
- package/lib/icons/index.js +0 -4
- package/lib/layouts/Forbidden.js +0 -4
- package/lib/layouts/NotFound.js +0 -4
- package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +84 -216
- package/package.json +2 -2
- package/src/I18n/LanguagePicker.tsx +4 -29
- package/src/I18n/index.ts +0 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +9 -4
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +14 -2
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Button/Button.tsx +48 -52
- package/src/components/Button/index.ts +0 -1
- package/src/components/Catalog/Catalog.tsx +115 -127
- package/src/components/Catalog/CatalogCard.tsx +61 -75
- package/src/components/Catalog/index.tsx +3 -0
- package/src/components/Catalog/useCatalog.ts +13 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +7 -14
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +11 -9
- package/src/components/CodeBlock/index.ts +0 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +4 -0
- package/src/components/Dropdown/Dropdown.tsx +4 -10
- package/src/components/Dropdown/index.ts +0 -1
- package/src/components/EditPageButton/EditPageButton.tsx +2 -1
- package/src/components/Feedback/Feedback.tsx +13 -3
- package/src/components/Feedback/Reasons.tsx +1 -1
- package/src/components/Feedback/Sentiment.tsx +10 -2
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +94 -127
- package/src/components/Filter/index.ts +0 -2
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +10 -32
- package/src/components/Footer/FooterColumn.tsx +64 -79
- package/src/components/Footer/FooterColumns.tsx +4 -6
- package/src/components/Footer/FooterCopyright.tsx +7 -13
- package/src/components/Footer/index.ts +0 -1
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/Markdown/MarkdownWrapper.tsx +4 -2
- package/src/components/Markdown/Mermaid.tsx +1 -1
- package/src/components/Markdown/index.ts +0 -1
- package/src/components/Menu/Menu.tsx +7 -5
- package/src/components/Menu/MenuGroup.tsx +7 -15
- package/src/components/Menu/MenuItemLabel.tsx +13 -7
- package/src/components/Menu/MenuLinkItem.tsx +6 -1
- package/src/components/Menu/MobileMenu.tsx +25 -20
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +0 -1
- package/src/components/{Profile → Navbar}/MobileUserProfile.tsx +39 -5
- package/src/components/Navbar/Navbar.tsx +11 -10
- package/src/components/Navbar/NavbarItem.tsx +6 -6
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +0 -1
- package/src/components/NavbarLogo/NavbarLogo.tsx +12 -14
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OperationBadge/OperationBadge.ts +62 -0
- package/src/components/OperationBadge/index.ts +1 -0
- package/src/components/Panel/PanelHeader.ts +0 -1
- package/src/components/Panel/PanelHeaderTitle.ts +4 -0
- package/src/components/Panel/index.ts +0 -1
- package/src/components/Product/index.ts +0 -1
- package/src/components/Profile/LoginLink.tsx +10 -2
- package/src/components/Profile/Profile.tsx +24 -1
- package/src/components/Profile/UserProfile.tsx +13 -21
- package/src/components/Profile/index.ts +0 -1
- package/src/components/Search/CancelSearch.tsx +15 -2
- package/src/components/Search/ProductTag.tsx +7 -7
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +2 -0
- package/src/components/Search/SearchIcon.tsx +5 -10
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +5 -4
- package/src/components/Search/ShortcutKey.tsx +5 -1
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +0 -1
- package/src/components/Select/Select.tsx +7 -20
- package/src/components/Select/index.ts +0 -1
- package/src/components/Separator/SeparatorItem.tsx +5 -7
- package/src/components/Sidebar/ApiCallItem.tsx +11 -13
- package/src/components/Sidebar/FooterWrapper.tsx +4 -3
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
- package/src/components/Sidebar/SidebarLayout.tsx +6 -1
- package/src/components/Sidebar/index.ts +0 -1
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -18
- package/src/components/SidebarActions/SidebarActions.tsx +18 -3
- package/src/components/SidebarActions/styled.tsx +23 -16
- package/src/components/TableOfContent/TableOfContent.tsx +5 -2
- package/src/components/TableOfContent/index.ts +0 -1
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tags/Tags.tsx +36 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +2 -1
- package/src/config.ts +0 -1
- package/src/globalStyle.ts +1976 -588
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
- package/src/icons/FileIcon/FileIcon.tsx +3 -2
- package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
- package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
- package/src/icons/index.ts +0 -4
- package/src/layouts/Forbidden.tsx +0 -4
- package/src/layouts/NotFound.tsx +0 -4
- package/src/types/portal/src/shared/types/nav.ts +0 -5
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +84 -216
- package/lib/I18n/styledVariables.d.ts +0 -1
- package/lib/I18n/styledVariables.js +0 -39
- package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
- package/lib/components/Breadcrumbs/styledVariables.js +0 -19
- package/lib/components/Button/styledVariables.d.ts +0 -1
- package/lib/components/Button/styledVariables.js +0 -94
- package/lib/components/Catalog/styledVariables.d.ts +0 -1
- package/lib/components/Catalog/styledVariables.js +0 -94
- package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
- package/lib/components/CodeBlock/styledVariables.js +0 -90
- package/lib/components/Dropdown/styledVariables.d.ts +0 -1
- package/lib/components/Dropdown/styledVariables.js +0 -30
- package/lib/components/Filter/FilterContent.d.ts +0 -11
- package/lib/components/Filter/FilterContent.js +0 -50
- package/lib/components/Filter/FilterPopover.d.ts +0 -11
- package/lib/components/Filter/FilterPopover.js +0 -99
- package/lib/components/Filter/FilterTag.d.ts +0 -7
- package/lib/components/Filter/FilterTag.js +0 -33
- package/lib/components/Filter/FilterTags.d.ts +0 -7
- package/lib/components/Filter/FilterTags.js +0 -29
- package/lib/components/Filter/styledVariables.d.ts +0 -1
- package/lib/components/Filter/styledVariables.js +0 -112
- package/lib/components/Footer/styledVariables.d.ts +0 -1
- package/lib/components/Footer/styledVariables.js +0 -61
- package/lib/components/Image/Image.d.ts +0 -9
- package/lib/components/Image/Image.js +0 -31
- package/lib/components/Image/index.d.ts +0 -1
- package/lib/components/Markdown/styledVariables.d.ts +0 -2
- package/lib/components/Markdown/styledVariables.js +0 -221
- package/lib/components/Menu/styledVariables.d.ts +0 -2
- package/lib/components/Menu/styledVariables.js +0 -90
- package/lib/components/Navbar/styledVariables.d.ts +0 -1
- package/lib/components/Navbar/styledVariables.js +0 -40
- package/lib/components/Panel/styledVariables.d.ts +0 -2
- package/lib/components/Panel/styledVariables.js +0 -489
- package/lib/components/Product/styledVariables.d.ts +0 -2
- package/lib/components/Product/styledVariables.js +0 -41
- package/lib/components/Profile/UserProfileData.d.ts +0 -9
- package/lib/components/Profile/UserProfileData.js +0 -35
- package/lib/components/Profile/styledVariables.d.ts +0 -2
- package/lib/components/Profile/styledVariables.js +0 -55
- package/lib/components/Search/styledVariables.d.ts +0 -1
- package/lib/components/Search/styledVariables.js +0 -98
- package/lib/components/Select/styledVariables.d.ts +0 -1
- package/lib/components/Select/styledVariables.js +0 -33
- package/lib/components/Sidebar/styledVariables.d.ts +0 -2
- package/lib/components/Sidebar/styledVariables.js +0 -210
- package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
- package/lib/components/TableOfContent/styledVariables.js +0 -46
- package/lib/components/Tag/Tag.d.ts +0 -16
- package/lib/components/Tag/Tag.js +0 -39
- package/lib/components/Tag/index.d.ts +0 -2
- package/lib/components/Tag/index.js +0 -19
- package/lib/components/Tag/styledVariables.d.ts +0 -1
- package/lib/components/Tag/styledVariables.js +0 -130
- package/lib/components/Tooltip/styledVariables.d.ts +0 -1
- package/lib/components/Tooltip/styledVariables.js +0 -21
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
- package/lib/icons/CheckboxIcon/index.d.ts +0 -1
- package/lib/icons/CheckboxIcon/index.js +0 -6
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
- package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
- package/lib/icons/ErrorIcon/index.d.ts +0 -1
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
- package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
- package/lib/icons/LanguageIcon/index.d.ts +0 -1
- package/lib/icons/LanguageIcon/index.js +0 -18
- package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
- package/lib/icons/PlusIcon/PlusIcon.js +0 -16
- package/lib/icons/PlusIcon/index.d.ts +0 -1
- package/lib/icons/PlusIcon/index.js +0 -18
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
- package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
- package/lib/icons/PointingArrowIcon/index.js +0 -18
- package/src/I18n/styledVariables.ts +0 -36
- package/src/components/Breadcrumbs/styledVariables.ts +0 -16
- package/src/components/Button/styledVariables.ts +0 -91
- package/src/components/Catalog/index.ts +0 -4
- package/src/components/Catalog/styledVariables.ts +0 -91
- package/src/components/CodeBlock/styledVariables.ts +0 -87
- package/src/components/Dropdown/styledVariables.ts +0 -27
- package/src/components/Filter/FilterContent.tsx +0 -75
- package/src/components/Filter/FilterPopover.tsx +0 -132
- package/src/components/Filter/FilterTag.tsx +0 -37
- package/src/components/Filter/FilterTags.tsx +0 -39
- package/src/components/Filter/styledVariables.ts +0 -109
- package/src/components/Footer/styledVariables.ts +0 -58
- package/src/components/Image/Image.tsx +0 -47
- package/src/components/Image/index.ts +0 -1
- package/src/components/Markdown/styledVariables.ts +0 -219
- package/src/components/Menu/styledVariables.ts +0 -88
- package/src/components/Navbar/styledVariables.ts +0 -37
- package/src/components/Panel/styledVariables.ts +0 -487
- package/src/components/Product/styledVariables.ts +0 -39
- package/src/components/Profile/UserProfileData.tsx +0 -40
- package/src/components/Profile/styledVariables.ts +0 -53
- package/src/components/Search/styledVariables.ts +0 -95
- package/src/components/Select/styledVariables.ts +0 -30
- package/src/components/Sidebar/styledVariables.ts +0 -208
- package/src/components/TableOfContent/styledVariables.ts +0 -43
- package/src/components/Tag/Tag.tsx +0 -62
- package/src/components/Tag/index.ts +0 -2
- package/src/components/Tag/styledVariables.ts +0 -127
- package/src/components/Tooltip/styledVariables.ts +0 -18
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
- package/src/icons/CheckboxIcon/index.ts +0 -1
- package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
- package/src/icons/ErrorIcon/index.ts +0 -1
- package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
- package/src/icons/LanguageIcon/index.ts +0 -1
- package/src/icons/PlusIcon/PlusIcon.tsx +0 -19
- package/src/icons/PlusIcon/index.ts +0 -1
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
- package/src/icons/PointingArrowIcon/index.ts +0 -1
- /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const search = css`
|
|
4
|
-
/**
|
|
5
|
-
* @tokens Search
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
--search-highlight-background-color: none; // @presenter Color
|
|
9
|
-
--search-highlight-text-color: var(--color-info); // @presenter Color
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @tokens Portal Search
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
--search-input-background-color: var(--bg-raised); // @presenter Color
|
|
16
|
-
--search-input-text-color: var(--text-primary); // @presenter Color
|
|
17
|
-
|
|
18
|
-
--search-input-border: none;
|
|
19
|
-
--search-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
20
|
-
--search-input-font-size: var(--font-size-base); // @presenter FontSize
|
|
21
|
-
--search-input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
22
|
-
--search-input-line-height: 1.15em; // @presenter LineHeight
|
|
23
|
-
|
|
24
|
-
--search-input-hover-background-color: var(--bg-raised); // @presenter Color
|
|
25
|
-
--search-input-hover-border: none; // @presenter Color
|
|
26
|
-
--search-input-placeholder-color: var(--text-placeholder);
|
|
27
|
-
--search-input-icons-color: var(--text-placeholder);
|
|
28
|
-
|
|
29
|
-
--search-popover-background-color: var(--bg-base); // @presenter Color
|
|
30
|
-
--search-popover-border-radius: var(--search-input-border-radius); // @presenter BorderRadius
|
|
31
|
-
--search-popover-shadow: var(--bg-base-shadow); // @presenter BoxShadow
|
|
32
|
-
--search-popover-border: none;
|
|
33
|
-
|
|
34
|
-
--search-item-padding: 8px 24px;
|
|
35
|
-
--search-item-text-color: var(--text-secondary); // @presenter Color
|
|
36
|
-
--search-item-title-text-color: var(--text-primary); // @presenter Color
|
|
37
|
-
--search-item-path-text-color: var(--text-description); // @presenter Color
|
|
38
|
-
--search-item-background-color: transparent; // @presenter Color
|
|
39
|
-
--search-item-active-text-color: var(--text-primary); // @presenter Color
|
|
40
|
-
--search-item-active-title-text-color: var(--text-primary); // @presenter Color
|
|
41
|
-
--search-item-active-background-color: var(--bg-raised); // @presenter Color
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @tokens Sidebar Search
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
--sidebar-search-button-background-color: transparent; // @presenter Color
|
|
48
|
-
--sidebar-search-button-text-color: var(--text-secondary); // @presenter Color
|
|
49
|
-
--sidebar-search-button-border: var(--border-primary);
|
|
50
|
-
--sidebar-search-button-border-radius: none; // @presenter BorderRadius
|
|
51
|
-
--sidebar-search-button-font-size: var(--font-size-sm); // @presenter FontSize
|
|
52
|
-
--sidebar-search-button-font-family: var(--font-family-base); // @presenter FontFamily
|
|
53
|
-
--sidebar-search-button-line-height: 1.15em; // @presenter LineHeight
|
|
54
|
-
--sidebar-search-button-hover-background-color: transparent; // @presenter Color
|
|
55
|
-
--sidebar-search-button-hover-border: var(--border-primary); // @presenter Color
|
|
56
|
-
--sidebar-search-button-active-background-color: transparent; // @presenter Color
|
|
57
|
-
--sidebar-search-button-active-border: var(--border-primary); // @presenter Color
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @tokens Search results modal
|
|
61
|
-
* @presenter Color
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
--search-modal-background: var(--bg-base);
|
|
65
|
-
--search-modal-text-color: var(--text-primary);
|
|
66
|
-
--search-modal-border: none;
|
|
67
|
-
--search-modal-box-shadow: none;
|
|
68
|
-
|
|
69
|
-
--search-modal-header-border-radius: var(--border-radius-lg);
|
|
70
|
-
--search-modal-header-background-color: var(--bg-raised);
|
|
71
|
-
--search-modal-clear-button-background-color: var(--bg-overlay);
|
|
72
|
-
--search-modal-clear-button-border: 1px solid var(--bg-overlay);
|
|
73
|
-
--search-modal-clear-button-hover-background-color: var(--bg-overlay);
|
|
74
|
-
--search-modal-clear-button-hover-border: 1px solid var(--border-primary);
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @tokens Sidebar Trigger
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
--search-trigger-padding-horizontal: var(--spacing-sm);
|
|
81
|
-
--search-trigger-padding-vertical: calc(var(--spacing-unit) * 1.5);
|
|
82
|
-
--search-trigger-padding: var(--search-trigger-padding-vertical)
|
|
83
|
-
var(--search-trigger-padding-horizontal);
|
|
84
|
-
--search-trigger-text-color: var(--text-placeholder);
|
|
85
|
-
--search-trigger-background-color: var(--bg-base);
|
|
86
|
-
--search-trigger-border: 1px solid var(--border-primary);
|
|
87
|
-
--search-trigger-border-radius: var(--border-radius-md);
|
|
88
|
-
--search-trigger-hover-background-color: var(--navbar-item-hover-background-color);
|
|
89
|
-
--search-trigger-gap: var(--spacing-sm);
|
|
90
|
-
--search-trigger-font-size: var(--font-size-base);
|
|
91
|
-
--search-trigger-shortcut-font-size: var(--font-size-sm);
|
|
92
|
-
--search-trigger-icon-size: 16px;
|
|
93
|
-
|
|
94
|
-
// @tokens End
|
|
95
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { css } from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const select = css`
|
|
4
|
-
/**
|
|
5
|
-
* @tokens Select
|
|
6
|
-
* */
|
|
7
|
-
--select-font-size: var(--font-size-base); // @presenter FontSize
|
|
8
|
-
--select-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
9
|
-
--select-line-height: var(--line-height-base); // @presenter LineHeight
|
|
10
|
-
--select-text-color: var(--text-secondary); // @presenter Color
|
|
11
|
-
--select-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
12
|
-
|
|
13
|
-
--select-input-padding-horizontal: 16px; // @presenter Spacing
|
|
14
|
-
--select-input-padding-vertical: 6px; // @presenter Spacing
|
|
15
|
-
--select-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
16
|
-
|
|
17
|
-
--select-list-min-width: 100px;
|
|
18
|
-
--select-list-max-width: 300px;
|
|
19
|
-
--select-list-padding: var(--spacing-xxs); // @presenter Spacing
|
|
20
|
-
--select-list-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
21
|
-
--select-list-background-color: var(--background-color); // @presenter Color
|
|
22
|
-
--select-list-box-shadow: var(--bg-raised-shadow); // @presenter Shadow
|
|
23
|
-
|
|
24
|
-
--select-list-item-horizontal-padding: var(--spacing-base); // @presenter Spacing
|
|
25
|
-
--select-list-item-vertical-padding: var(--spacing-xs); // @presenter Spacing
|
|
26
|
-
--select-list-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
27
|
-
--select-list-item-active-background-color: var(--bg-raised); // @presenter Color
|
|
28
|
-
|
|
29
|
-
// @tokens End
|
|
30
|
-
`;
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const sidebar = css`
|
|
4
|
-
/* === Sidebar === */
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @tokens Sidebar logo
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
--sidebar-logo-max-height: 285px; // @presenter Spacing
|
|
11
|
-
--sidebar-logo-max-width: 285px; // @presenter Spacing
|
|
12
|
-
--sidebar-logo-padding: 2px; // @presenter Spacing
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @tokens Sidebar typography
|
|
16
|
-
*/
|
|
17
|
-
--sidebar-word-break: inherit; // @presenter WordBreak
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @tokens Sidebar colors
|
|
21
|
-
* @presenter Color
|
|
22
|
-
*/
|
|
23
|
-
--sidebar-background-color: var(--bg-base); // @presenter Color
|
|
24
|
-
--sidebar-border-color: var(--border-secondary); // @presenter Color
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @tokens Sidebar spacing
|
|
28
|
-
* @presenter Spacing
|
|
29
|
-
*/
|
|
30
|
-
--sidebar-spacing-unit: var(--spacing-base); // @presenter Spacing
|
|
31
|
-
--sidebar-width: 285px; // @presenter Spacing
|
|
32
|
-
|
|
33
|
-
--sidebar-offset-top: var(--sidebar-spacing-unit); // @presenter Spacing
|
|
34
|
-
--sidebar-offset-left: var(--sidebar-spacing-unit); // @presenter Spacing
|
|
35
|
-
|
|
36
|
-
--sidebar-header-padding-bottom: var(--sidebar-spacing-unit); // @presenter Spacing
|
|
37
|
-
|
|
38
|
-
--sidebar-chevron-size: var(--spacing-xs); // @presenter Spacing
|
|
39
|
-
|
|
40
|
-
/* === Sidebar Item === */
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @tokens Sidebar item typography
|
|
44
|
-
*/
|
|
45
|
-
--sidebar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
46
|
-
--sidebar-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
47
|
-
--sidebar-item-font-weight: var(--font-weight-regular); // @presenter FontSize
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @tokens Sidebar item colors
|
|
51
|
-
* @presenter Color
|
|
52
|
-
*/
|
|
53
|
-
--sidebar-item-text-color: var(--text-secondary); // @presenter Color
|
|
54
|
-
--sidebar-item-background-color: transparent; // @presenter Color
|
|
55
|
-
|
|
56
|
-
--sidebar-item-active-color: var(--text-primary); // @presenter Color
|
|
57
|
-
--sidebar-item-active-background-color: var(--bg-raised); // @presenter Color
|
|
58
|
-
|
|
59
|
-
--sidebar-item-hover-color: var(--text-primary); // @presenter Color
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @tokens Sidebar item spacing
|
|
63
|
-
* @presenter Spacing
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
|
-
--sidebar-item-nested-offset: var(--spacing-xs); // @presenter Spacing
|
|
67
|
-
--sidebar-margin-horizontal: var(--spacing-base); // @presenter Spacing
|
|
68
|
-
--sidebar-item-padding-vertical: var(--spacing-xs); // @presenter Spacing
|
|
69
|
-
--sidebar-item-padding-horizontal: var(--spacing-xs); // @presenter Spacing
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @tokens Sidebar item border
|
|
73
|
-
*/
|
|
74
|
-
--sidebar-item-border-radius: 6px; // @presenter BorderRadius
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @tokens Sidebar item icon
|
|
78
|
-
*/
|
|
79
|
-
--sidebar-item-icon-size: var(--spacing-xl);
|
|
80
|
-
--sidebar-item-icon-border-radius: 100%;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @tokens Sidebar item sublabel
|
|
84
|
-
*/
|
|
85
|
-
--sidebar-item-sublabel-font-family: inherit; // sublabel is for drilldown only but I would like to support it in general
|
|
86
|
-
--sidebar-item-sublabel-font-size: var(--font-size-base); // @presenter FontSize
|
|
87
|
-
--sidebar-item-sublabel-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
88
|
-
--sidebar-item-sublabel-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @tokens Sidebar item drilldown
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
--sidebar-item-drilldown-font-family: var(--sidebar-item-font-family);
|
|
95
|
-
--sidebar-item-drilldown-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
96
|
-
--sidebar-text-drilldown-transform: inherit; // @presenter TextTransform
|
|
97
|
-
--sidebar-item-drilldown-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
98
|
-
--sidebar-item-drilldown-background-color: var(--sidebar-background-color); // @presenter Color
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @tokens Sidebar item group
|
|
102
|
-
*/
|
|
103
|
-
--sidebar-item-group-font-family: var(--sidebar-item-font-family);
|
|
104
|
-
--sidebar-item-group-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
105
|
-
--sidebar-text-group-transform: inherit;
|
|
106
|
-
--sidebar-item-group-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
107
|
-
--sidebar-item-group-background-color: var(--sidebar-background-color); // @presenter Color
|
|
108
|
-
--sidebar-item-group-active-text-color: var(--sidebar-item-active-color); // @presenter Color
|
|
109
|
-
--sidebar-item-group-active-background-color: var(--sidebar-item-active-background-color);
|
|
110
|
-
|
|
111
|
-
// we need a theme config for chevron-location: left (default), right-compact, right, none
|
|
112
|
-
// we need another theme config for chevron-style: up-down, down-up, right-down, down-right
|
|
113
|
-
|
|
114
|
-
--sidebar-group-item-chevron-size: var(--spacing-xs); // @presenter Spacing
|
|
115
|
-
--sidebar-group-item-chevron-color: var(--sidebar-item-text-color); // @presenter Color
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @tokens Sidebar item separator
|
|
119
|
-
*/
|
|
120
|
-
--sidebar-item-separator-font-family: var(--sidebar-item-font-family);
|
|
121
|
-
--sidebar-item-separator-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
122
|
-
--sidebar-item-separator-font-weight: var(--sidebar-item-font-weight); // @presenter FontWeight
|
|
123
|
-
--sidebar-item-separator-text-transform: inherit; // @presenter TextTransform
|
|
124
|
-
--sidebar-item-separator-text-color: var(--text-placeholder); // @presenter Color
|
|
125
|
-
|
|
126
|
-
--sidebar-item-separator-background-color: var(--sidebar-background-color); // @presenter Color
|
|
127
|
-
--sidebar-item-separator-line-color: var(--border-primary); // @presenter Color
|
|
128
|
-
--sidebar-item-separator-offset: var(--spacing-lg); // @presenter Spacing
|
|
129
|
-
--sidebar-item-separator-border-width: 1px; // @presenter Spacing
|
|
130
|
-
--sidebar-item-separator-border-color: var(--border-primary); // @presenter Color
|
|
131
|
-
--sidebar-item-separator-padding-top: var(--spacing-xxs); // @presenter Spacing
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @tokens Sidebar item http tag
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
--sidebar-item-http-tag-width: 36px;
|
|
138
|
-
--sidebar-item-http-tag-height: 14px;
|
|
139
|
-
--sidebar-item-http-tag-font-family: var(--code-font-family); // @presenter FontFamily
|
|
140
|
-
--sidebar-item-http-tag-font-size: 8px; // @presenter FontSize
|
|
141
|
-
--sidebar-item-http-tag-font-weight: normal; //@presenter FontWeight
|
|
142
|
-
--sidebar-item-http-tag-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @tokens Sidebar back button
|
|
146
|
-
*/
|
|
147
|
-
--sidebar-back-button-font-family: var(--sidebar-item-font-family);
|
|
148
|
-
--sidebar-back-button-font-size: var(--sidebar-item-font-size); // @presenter FontSize
|
|
149
|
-
--sidebar-back-button-transform: inherit; // @presenter TextTransform
|
|
150
|
-
--sidebar-back-button-text-color: var(--sidebar-item-text-color); // @presenter Color
|
|
151
|
-
--sidebar-back-button-background-color: transparent; // @presenter Color
|
|
152
|
-
--sidebar-back-button-hover-text-color: var(--sidebar-item-active-color); // @presenter Color
|
|
153
|
-
--sidebar-back-button-hover-background-color: transparent; // @presenter Color
|
|
154
|
-
--sidebar-back-button-icon-color: var(--sidebar-item-text-color); // @presenter Color
|
|
155
|
-
--sidebar-back-button-margin: 0 0 var(--spacing-lg) 0; // @presenter Spacing
|
|
156
|
-
--sidebar-back-padding-left: var(--spacing-xs); // @presenter Spacing
|
|
157
|
-
--sidebar-back-button-icon: none;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @tokens Sidebar footer
|
|
161
|
-
*/
|
|
162
|
-
--sidebar-footer-padding-vertical: var(--spacing-sm); // @presenter Spacing
|
|
163
|
-
--sidebar-footer-padding-horizontal: var(--spacing-lg); // @presenter Spacing
|
|
164
|
-
--sidebar-collapse-button-background-color: var(--bg-overlay); // @presenter Color
|
|
165
|
-
--sidebar-collapse-button-icon-color: var(--text-primary); // @presenter Color
|
|
166
|
-
--sidebar-collapse-button-border-color: var(--border-primary); // @presenter Color
|
|
167
|
-
--sidebar-collapse-button-active-background-color: unset; // @presenter Color
|
|
168
|
-
--sidebar-collapse-button-active-border-color: 0; // @presenter Color
|
|
169
|
-
|
|
170
|
-
--sidebar-controls-collapsed-gap: var(--spacing-xs); // @presenter Spacing
|
|
171
|
-
--sidebar-controls-collapsed-padding-vertical: var(--spacing-xs); // @presenter Spacing
|
|
172
|
-
--sidebar-controls-collapsed-padding-horizontal: var(--spacing-xxs); // @presenter Spacing
|
|
173
|
-
|
|
174
|
-
// @tokens End
|
|
175
|
-
`;
|
|
176
|
-
|
|
177
|
-
export const versionPicker = css`
|
|
178
|
-
/**
|
|
179
|
-
* @tokens Version picker
|
|
180
|
-
* */
|
|
181
|
-
|
|
182
|
-
--version-picker-font-size: var(--font-size-base); // @presenter FontSize
|
|
183
|
-
--version-picker-font-weight: var(--select-font-weight); // @presenter FontWeight
|
|
184
|
-
--version-picker-line-height: var(--select-line-height); // @presenter LineHeight
|
|
185
|
-
--version-picker-text-color: var(--select-text-color); // @presenter Color
|
|
186
|
-
--version-picker-border-radius: var(--select-border-radius); // @presenter BorderRadius
|
|
187
|
-
--version-picker-margin-vertical: 10px; // @presenter Spacing
|
|
188
|
-
--version-picker-margin-horizontal: 15px; // @presenter Spacing
|
|
189
|
-
|
|
190
|
-
--version-picker-input-padding-horizontal: var(--select-input-padding-horizontal); // @presenter Spacing
|
|
191
|
-
--version-picker-input-padding-vertical: var(--select-input-padding-vertical); // @presenter Spacing
|
|
192
|
-
--version-picker-input-border: 1px solid var(--border-primary); // @presenter Border
|
|
193
|
-
--version-picker-input-border-radius: var(--select-input-border-radius); // @presenter BorderRadius
|
|
194
|
-
|
|
195
|
-
--version-picker-list-min-width: var(--select-list-min-width);
|
|
196
|
-
--version-picker-list-max-width: var(--select-list-max-width);
|
|
197
|
-
--version-picker-list-padding: var(--select-list-padding); // @presenter Spacing
|
|
198
|
-
--version-picker-list-border-radius: var(--select-list-border-radius); // @presenter BorderRadius
|
|
199
|
-
--version-picker-list-background-color: var(--select-list-background-color); // @presenter Color
|
|
200
|
-
--version-picker-list-box-shadow: var(--select-list-box-shadow); // @presenter Shadow
|
|
201
|
-
|
|
202
|
-
--version-picker-list-item-horizontal-padding: var(--select-list-item-horizontal-padding); // @presenter Spacing
|
|
203
|
-
--version-picker-list-item-vertical-padding: var(--select-list-item-vertical-padding); // @presenter Spacing
|
|
204
|
-
--version-picker-list-item-border-radius: var(--select-list-item-border-radius); // @presenter BorderRadius
|
|
205
|
-
--version-picker-list-item-active-background-color: var(--select-list-item-active-background-color); // @presenter Color
|
|
206
|
-
|
|
207
|
-
// @tokens End
|
|
208
|
-
`;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const toc = css`
|
|
4
|
-
/**
|
|
5
|
-
* @tokens TOC
|
|
6
|
-
* */
|
|
7
|
-
|
|
8
|
-
--toc-width: 240px;
|
|
9
|
-
--toc-background-color: transparent;
|
|
10
|
-
|
|
11
|
-
--toc-spacing-unit: var(--spacing-xs);
|
|
12
|
-
--toc-offset-top: var(--toc-spacing-unit);
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @tokens TOC item typography
|
|
16
|
-
*/
|
|
17
|
-
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
18
|
-
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @tokens TOC item
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
--toc-item-text-color: var(--text-description); // @presenter Color
|
|
25
|
-
--toc-item-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
26
|
-
--toc-item-active-text-color: var(--text-primary); // @presenter Color
|
|
27
|
-
--toc-item-background-color: transparent; // @presenter Color
|
|
28
|
-
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
29
|
-
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
30
|
-
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @tokens TOC header
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
37
|
-
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
38
|
-
--toc-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
39
|
-
--toc-heading-text-color: var(--text-primary); // @presenter Color
|
|
40
|
-
--toc-heading-text-transform: none; // @presenter TextTransform
|
|
41
|
-
|
|
42
|
-
// @tokens End
|
|
43
|
-
`;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
type DefaultStatusColor = 'success' | 'processing' | 'error' | 'warning' | 'default';
|
|
5
|
-
type ActionStatusColor = 'approved' | 'declined' | 'pending';
|
|
6
|
-
type SubjectStatusColor = 'active' | 'draft' | 'deprecated';
|
|
7
|
-
type HttpColor = 'get' | 'post' | 'put' | 'delete' | 'option' | 'patch' | 'head' | 'hook' | 'link';
|
|
8
|
-
type StatusColor = DefaultStatusColor | ActionStatusColor | SubjectStatusColor | HttpColor;
|
|
9
|
-
type Color =
|
|
10
|
-
| 'red'
|
|
11
|
-
| 'green'
|
|
12
|
-
| 'blue'
|
|
13
|
-
| 'grey'
|
|
14
|
-
| 'gold'
|
|
15
|
-
| 'cyan'
|
|
16
|
-
| 'magneta'
|
|
17
|
-
| 'purple'
|
|
18
|
-
| 'lime'
|
|
19
|
-
| 'geekblue'
|
|
20
|
-
| 'yellow';
|
|
21
|
-
|
|
22
|
-
interface TagProps {
|
|
23
|
-
className?: string;
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
closable?: boolean;
|
|
26
|
-
color?: StatusColor | Color | string;
|
|
27
|
-
icon?: React.ReactNode;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function Tag({ children, className, color = 'default', icon }: TagProps): JSX.Element {
|
|
31
|
-
return (
|
|
32
|
-
<TagContainer className={className} color={color}>
|
|
33
|
-
{icon ? icon : null}
|
|
34
|
-
{children}
|
|
35
|
-
</TagContainer>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const TagContainer = styled.div.attrs(({ className, color }: TagProps) => ({
|
|
40
|
-
'data-component-name': 'Tag/Tag',
|
|
41
|
-
className: className + ` tag-${color}`,
|
|
42
|
-
}))<TagProps>`
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
text-wrap: nowrap;
|
|
47
|
-
|
|
48
|
-
padding: var(--tag-padding);
|
|
49
|
-
margin: var(--tag-margin);
|
|
50
|
-
gap: var(--tag-gap);
|
|
51
|
-
|
|
52
|
-
font-size: var(--tag-font-size);
|
|
53
|
-
font-family: var(--tag-font-family);
|
|
54
|
-
font-weight: var(--tag-font-weight);
|
|
55
|
-
line-height: var(--tag-line-height);
|
|
56
|
-
box-shadow: var(--tag-box-shadow);
|
|
57
|
-
|
|
58
|
-
color: var(--tag-color);
|
|
59
|
-
background-color: var(--tag-background-color);
|
|
60
|
-
border: var(--tag-border-width) var(--tag-border-style) var(--tag-border-color);
|
|
61
|
-
border-radius: var(--tag-border-radius);
|
|
62
|
-
`;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const tag = css`
|
|
4
|
-
/**
|
|
5
|
-
* @tokens Tag borders
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
--tag-border-width: 1px; //@presenter Border
|
|
9
|
-
--tag-border-style: solid; //@presenter Border
|
|
10
|
-
--tag-border-radius: var(--border-radius-xlg); // @presenter BorderRadius
|
|
11
|
-
--tag-box-shadow: none; // @presenter Shadow
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @tokens Tag spacing
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
--tag-padding: 1px 8px; //@presenter Spacing
|
|
18
|
-
--tag-margin: 0 5px 0 0; //@presenter Spacing
|
|
19
|
-
--tag-gap: 5px; //@presenter Spacing
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @tokens Tag typography
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
--tag-font-size: var(--font-size-sm); // @presenter FontSize
|
|
26
|
-
--tag-font-family: inherit; // @presenter FontFamily
|
|
27
|
-
--tag-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
28
|
-
--tag-line-height: var(--line-height-sm);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @tokens Tag icon
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
--tag-icon-width: 1em; // @presenter Spacing
|
|
35
|
-
--tag-icon-height: 1em; // @presenter Spacing
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @tokens Tag colors
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
.tag-grey,
|
|
42
|
-
.tag-draft,
|
|
43
|
-
.tag-schema,
|
|
44
|
-
.tag-default {
|
|
45
|
-
--tag-color: var(--text-primary); // @presenter Color
|
|
46
|
-
--tag-background-color: var(--bg-raised); // @presenter Color
|
|
47
|
-
--tag-border-color: var(--border-primary); // @presenter Color
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.tag-green,
|
|
51
|
-
.tag-success,
|
|
52
|
-
.tag-approved,
|
|
53
|
-
.tag-get {
|
|
54
|
-
--tag-color: var(--color-success-base); // @presenter Color
|
|
55
|
-
--tag-background-color: var(--color-success-bg); // @presenter Color
|
|
56
|
-
--tag-border-color: var(--color-success-border); // @presenter Color
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.tag-red,
|
|
60
|
-
.tag-error,
|
|
61
|
-
.tag-declined,
|
|
62
|
-
.tag-delete {
|
|
63
|
-
--tag-color: var(--color-error-base); // @presenter Color
|
|
64
|
-
--tag-background-color: var(--color-error-bg); // @presenter Color
|
|
65
|
-
--tag-border-color: var(--color-error-border); // @presenter Color
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.tag-gold,
|
|
69
|
-
.tag-warning,
|
|
70
|
-
.tag-deprecated,
|
|
71
|
-
.tag-put {
|
|
72
|
-
--tag-color: var(--color-warning-base); // @presenter Color
|
|
73
|
-
--tag-background-color: var(--color-warning-bg); // @presenter Color
|
|
74
|
-
--tag-border-color: var(--color-warning-border); // @presenter Color
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.tag-blue,
|
|
78
|
-
.tag-processing,
|
|
79
|
-
.tag-post {
|
|
80
|
-
--tag-color: var(--color-info-base); // @presenter Color
|
|
81
|
-
--tag-background-color: var(--color-info-bg); // @presenter Color
|
|
82
|
-
--tag-border-color: var(--color-info-border); // @presenter Color
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.tag-purple,
|
|
86
|
-
.tag-head {
|
|
87
|
-
--tag-color: var(--color-purple-6); // @presenter Color
|
|
88
|
-
--tag-background-color: var(--color-purple-1); // @presenter Color
|
|
89
|
-
--tag-border-color: var(--color-purple-3); // @presenter Color
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.tag-cyan,
|
|
93
|
-
.tag-option {
|
|
94
|
-
--tag-color: var(--color-cyan-6); // @presenter Color
|
|
95
|
-
--tag-background-color: var(--color-cyan-1); // @presenter Color
|
|
96
|
-
--tag-border-color: var(--color-cyan-3); // @presenter Color
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.tag-yellow,
|
|
100
|
-
.tag-patch {
|
|
101
|
-
--tag-color: var(--color-yellow-6); // @presenter Color
|
|
102
|
-
--tag-background-color: var(--color-yellow-1); // @presenter Color
|
|
103
|
-
--tag-border-color: var(--color-yellow-3); // @presenter Color
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.tag-geekblue,
|
|
107
|
-
.tag-link {
|
|
108
|
-
--tag-color: var(--color-geekblue-6); // @presenter Color
|
|
109
|
-
--tag-background-color: var(--color-geekblue-1); // @presenter Color
|
|
110
|
-
--tag-border-color: var(--color-geekblue-3); // @presenter Color
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.tag-magneta,
|
|
114
|
-
.tag-hook {
|
|
115
|
-
--tag-color: var(--color-magneta-6); // @presenter Color
|
|
116
|
-
--tag-background-color: var(--color-magneta-1); // @presenter Color
|
|
117
|
-
--tag-border-color: var(--color-magneta-3); // @presenter Color
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.tag-lime {
|
|
121
|
-
--tag-color: var(--color-lime-6); // @presenter Color
|
|
122
|
-
--tag-background-color: var(--color-lime-1); // @presenter Color
|
|
123
|
-
--tag-border-color: var(--color-lime-3); // @presenter Color
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// @tokens End
|
|
127
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { css } from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const tooltip = css`
|
|
4
|
-
/**
|
|
5
|
-
* @tokens Tooltip Base
|
|
6
|
-
* @presenter Color
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
--tooltip-text-color: var(--text-secondary);
|
|
10
|
-
--tooltip-background-color: var(--bg-raised);
|
|
11
|
-
|
|
12
|
-
.tooltip-copy-button {
|
|
13
|
-
--tooltip-text-color: var(--text-secondaru);
|
|
14
|
-
--tooltip-background-color: var(--bg-raised);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// @tokens End
|
|
18
|
-
`;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const Icon = ({
|
|
5
|
-
className,
|
|
6
|
-
checked = false,
|
|
7
|
-
onClick,
|
|
8
|
-
}: {
|
|
9
|
-
className?: string;
|
|
10
|
-
checked?: boolean;
|
|
11
|
-
onClick?: () => void;
|
|
12
|
-
}) => (
|
|
13
|
-
<span className={className} onClick={onClick}>
|
|
14
|
-
{checked ? (
|
|
15
|
-
<svg
|
|
16
|
-
width="16"
|
|
17
|
-
height="16"
|
|
18
|
-
viewBox="0 0 16 16"
|
|
19
|
-
fill="none"
|
|
20
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
-
>
|
|
22
|
-
<rect width="16" height="16" rx="4" fill="var(--checkbox-active-background-color)" />
|
|
23
|
-
<path
|
|
24
|
-
d="M3.91308 7.03516H3.91326C3.99256 7.03525 4.07081 7.05331 4.14213 7.08798C4.21341 7.12262 4.27591 7.17295 4.32497 7.2352L3.91308 7.03516ZM3.91308 7.03516H3.09394C2.89031 7.03516 2.7766 7.26975 2.90232 7.4292L2.90237 7.42927L6.11214 11.4957L6.11218 11.4957C6.32247 11.7619 6.72568 11.7611 6.93667 11.4962L6.93708 11.4957L12.6597 4.24398C12.6598 4.24378 12.66 4.24358 12.6602 4.24338C12.7884 4.08295 12.6699 3.85 12.4689 3.85H11.6498C11.4894 3.85 11.3367 3.9235 11.2376 4.05044C11.2375 4.05055 11.2374 4.05066 11.2373 4.05077L6.52403 10.0216M3.91308 7.03516L6.52403 10.0216M6.52403 10.0216L4.32506 7.23531L6.52403 10.0216Z"
|
|
25
|
-
fill="var(--checkbox-mark-color)"
|
|
26
|
-
stroke="var(--checkbox-mark-color)"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
29
|
-
) : (
|
|
30
|
-
<svg
|
|
31
|
-
width="16"
|
|
32
|
-
height="16"
|
|
33
|
-
viewBox="0 0 16 16"
|
|
34
|
-
fill="none"
|
|
35
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
36
|
-
>
|
|
37
|
-
<rect width="16" height="16" rx="4" fill="var(--checkbox-background-color)" />
|
|
38
|
-
<rect
|
|
39
|
-
x="0.5"
|
|
40
|
-
y="0.5"
|
|
41
|
-
width="15"
|
|
42
|
-
height="15"
|
|
43
|
-
rx="3.5"
|
|
44
|
-
stroke="var(--checkbox-border-color)"
|
|
45
|
-
/>
|
|
46
|
-
</svg>
|
|
47
|
-
)}
|
|
48
|
-
</span>
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
export const CheckboxIcon = styled(Icon).attrs<{ checked?: boolean }>({
|
|
52
|
-
'data-component-name': 'icons/CheckboxIcon/CheckboxIcon',
|
|
53
|
-
})`
|
|
54
|
-
margin-right: var(--spacing-xs);
|
|
55
|
-
display: flex;
|
|
56
|
-
|
|
57
|
-
--checkbox-active-border-color: var(--color-primary-base);
|
|
58
|
-
--checkbox-active-background-color: var(--color-primary-base);
|
|
59
|
-
|
|
60
|
-
--checkbox-border-color: var(--border-primary);
|
|
61
|
-
--checkbox-background-color: var(--bg-base);
|
|
62
|
-
|
|
63
|
-
--checkbox-mark-color: var(--bg-base);
|
|
64
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CheckboxIcon } from '@theme/icons/CheckboxIcon/CheckboxIcon';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const Icon = () => (
|
|
5
|
-
<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
-
<path
|
|
7
|
-
d="M8.5 1C4.63438 1 1.5 4.13438 1.5 8C1.5 11.8656 4.63438 15 8.5 15C12.3656 15 15.5 11.8656 15.5 8C15.5 4.13438 12.3656 1 8.5 1ZM11.0844 10.6594L10.0531 10.6547L8.5 8.80313L6.94844 10.6531L5.91563 10.6578C5.84688 10.6578 5.79063 10.6031 5.79063 10.5328C5.79063 10.5031 5.80156 10.475 5.82031 10.4516L7.85313 8.02969L5.82031 5.60938C5.80143 5.58647 5.79096 5.5578 5.79063 5.52812C5.79063 5.45937 5.84688 5.40312 5.91563 5.40312L6.94844 5.40781L8.5 7.25938L10.0516 5.40938L11.0828 5.40469C11.1516 5.40469 11.2078 5.45937 11.2078 5.52969C11.2078 5.55937 11.1969 5.5875 11.1781 5.61094L9.14844 8.03125L11.1797 10.4531C11.1984 10.4766 11.2094 10.5047 11.2094 10.5344C11.2094 10.6031 11.1531 10.6594 11.0844 10.6594Z"
|
|
8
|
-
fill="var(--color-error-base)"
|
|
9
|
-
/>
|
|
10
|
-
</svg>
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
export const ErrorIcon = styled(Icon).attrs(() => ({
|
|
14
|
-
'data-component-name': 'icons/ErrorIcon/ErrorIcon',
|
|
15
|
-
}))``;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@theme/icons/ErrorIcon/ErrorIcon';
|