@redocly/theme 0.82.2-rc.2 → 0.82.4-rc.1
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/components/Badge/Badge.d.ts +8 -5
- package/lib/components/Badge/Badge.js +9 -3
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -1
- package/lib/components/Breadcrumbs/Breadcrumb.js +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -2
- package/lib/components/Button/Button.js +1 -1
- package/lib/components/Buttons/CopyButton.d.ts +2 -2
- package/lib/components/Buttons/CopyButton.js +3 -3
- package/lib/components/Buttons/EditPageButton.d.ts +2 -3
- package/lib/components/Buttons/EditPageButton.js +2 -2
- package/lib/components/Buttons/EmailButton.d.ts +4 -5
- package/lib/components/Buttons/EmailButton.js +2 -2
- package/lib/components/Buttons/NewTabButton.d.ts +4 -5
- package/lib/components/Buttons/NewTabButton.js +2 -2
- package/lib/components/Catalog/Catalog.d.ts +3 -2
- package/lib/components/Catalog/Catalog.js +1 -5
- package/lib/components/Catalog/CatalogActions.d.ts +1 -2
- package/lib/components/Catalog/CatalogCard.d.ts +1 -2
- package/lib/components/Catalog/CatalogCard.js +4 -5
- package/lib/components/Catalog/CatalogHighlight.d.ts +1 -2
- package/lib/components/Catalog/CatalogInfoBlock.d.ts +1 -2
- package/lib/components/CodeBlock/CodeBlock.js +1 -1
- package/lib/components/CodeBlock/CodeBlockContainer.d.ts +14 -5
- package/lib/components/CodeBlock/CodeBlockContainer.js +9 -4
- package/lib/components/CodeBlock/CodeBlockControls.js +2 -0
- package/lib/components/CodeBlock/CodeBlockTabs.d.ts +1 -2
- package/lib/components/CodeBlock/variables.js +2 -2
- package/lib/components/ColorModeSwitcher/ColorModeIcon.d.ts +4 -8
- package/lib/components/ColorModeSwitcher/ColorModeIcon.js +5 -3
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +1 -2
- package/lib/components/DatePicker/DatePicker.d.ts +2 -3
- package/lib/components/Dropdown/Dropdown.d.ts +2 -3
- package/lib/components/Dropdown/Dropdown.js +10 -5
- package/lib/components/Dropdown/DropdownMenu.d.ts +1 -2
- package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -2
- package/lib/components/Dropdown/DropdownMenuItem.js +22 -5
- package/lib/components/Dropdown/variables.js +5 -1
- package/lib/components/Feedback/Comment.d.ts +2 -1
- package/lib/components/Feedback/Comment.js +3 -3
- package/lib/components/Feedback/Mood.js +4 -4
- package/lib/components/Feedback/Rating.js +1 -1
- package/lib/components/Feedback/ReportDialog.js +1 -1
- package/lib/components/Feedback/Scale.js +1 -1
- package/lib/components/Feedback/Sentiment.js +3 -3
- package/lib/components/Filter/FilterContent.d.ts +1 -3
- package/lib/components/Filter/FilterContent.js +4 -4
- package/lib/components/Filter/FilterInput.d.ts +1 -2
- package/lib/components/Filter/FilterOption.d.ts +8 -4
- package/lib/components/Filter/FilterOption.js +7 -4
- package/lib/components/Filter/FilterOptionLabel.d.ts +5 -3
- package/lib/components/Filter/FilterOptionLabel.js +6 -3
- package/lib/components/Filter/FilterOptions.d.ts +5 -3
- package/lib/components/Filter/FilterOptions.js +6 -3
- package/lib/components/Filter/FilterPopover.d.ts +1 -2
- package/lib/components/Filter/FilterSelect.js +1 -4
- package/lib/components/Filter/FilterTitle.d.ts +5 -3
- package/lib/components/Filter/FilterTitle.js +6 -3
- package/lib/components/Filter/variables.js +2 -1
- package/lib/components/Footer/Footer.d.ts +1 -2
- package/lib/components/Footer/FooterColumn.d.ts +1 -2
- package/lib/components/Footer/FooterCopyright.d.ts +1 -2
- package/lib/components/Footer/FooterItem.d.ts +1 -2
- package/lib/components/Footer/FooterLogo.d.ts +3 -4
- package/lib/components/Footer/FooterLogo.js +6 -1
- package/lib/components/Image/Image.d.ts +2 -2
- package/lib/components/JsonViewer/JsonViewer.d.ts +2 -2
- package/lib/components/LanguagePicker/LanguagePicker.d.ts +1 -2
- package/lib/components/LanguagePicker/LanguagePicker.js +5 -2
- package/lib/components/LanguagePicker/variables.js +4 -1
- package/lib/components/LastUpdated/LastUpdated.d.ts +1 -1
- package/lib/components/Link/Link.d.ts +1 -1
- package/lib/components/Loading/Loading.d.ts +2 -2
- package/lib/components/Logo/Logo.d.ts +1 -2
- package/lib/components/Markdown/Markdown.d.ts +12 -0
- package/lib/components/Markdown/Markdown.js +12 -13
- package/lib/components/Markdown/variables.js +10 -5
- package/lib/components/Menu/Menu.d.ts +1 -2
- package/lib/components/Menu/MenuContainer.d.ts +4 -4
- package/lib/components/Menu/MenuContainer.js +10 -3
- package/lib/components/Menu/MenuMobile.d.ts +1 -2
- package/lib/components/Menu/variables.js +2 -0
- package/lib/components/Navbar/NavbarItem.d.ts +1 -2
- package/lib/components/Navbar/NavbarItem.js +1 -1
- package/lib/components/Navbar/NavbarLogo.d.ts +3 -4
- package/lib/components/Navbar/NavbarLogo.js +6 -3
- package/lib/components/Navbar/NavbarMenu.d.ts +1 -2
- package/lib/components/PageNavigation/NextButton.d.ts +1 -2
- package/lib/components/PageNavigation/PageNavigation.d.ts +1 -2
- package/lib/components/PageNavigation/PreviousButton.d.ts +1 -2
- package/lib/components/Panel/Panel.d.ts +1 -2
- package/lib/components/Panel/PanelBody.d.ts +2 -3
- package/lib/components/Portal/Portal.d.ts +2 -3
- package/lib/components/Portal/Portal.js +2 -2
- package/lib/components/Product/Product.d.ts +1 -2
- package/lib/components/Product/ProductPicker.js +4 -1
- package/lib/components/Product/variables.js +4 -1
- package/lib/components/Search/Search.d.ts +1 -2
- package/lib/components/Search/SearchDialog.d.ts +1 -2
- package/lib/components/Search/SearchInput.d.ts +1 -2
- package/lib/components/Search/SearchItem.d.ts +1 -1
- package/lib/components/Search/SearchRecent.d.ts +1 -2
- package/lib/components/Search/SearchShortcut.d.ts +1 -2
- package/lib/components/Search/SearchSuggestedPages.d.ts +1 -2
- package/lib/components/Search/SearchTrigger.d.ts +1 -2
- package/lib/components/Search/variables.js +2 -2
- package/lib/components/Segmented/Segmented.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +3 -3
- package/lib/components/Sidebar/Sidebar.d.ts +1 -2
- package/lib/components/SidebarActions/ChangeViewButton.d.ts +2 -3
- package/lib/components/SidebarActions/SidebarActions.d.ts +2 -2
- package/lib/components/SidebarLogo/SidebarLogo.d.ts +3 -3
- package/lib/components/TableOfContent/TableOfContent.d.ts +1 -2
- package/lib/components/Tag/Tag.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.js +2 -2
- package/lib/components/Tooltip/variables.js +4 -0
- package/lib/components/Typography/H1.js +1 -1
- package/lib/components/Typography/H2.js +1 -1
- package/lib/components/Typography/H3.js +1 -1
- package/lib/components/Typography/H4.js +1 -1
- package/lib/components/UserMenu/UserAvatar.d.ts +1 -2
- package/lib/components/UserMenu/UserInfoMenuItem.d.ts +1 -2
- package/lib/components/UserMenu/UserMenu.d.ts +1 -2
- package/lib/components/UserMenu/UserMenu.js +4 -1
- package/lib/components/UserMenu/UserMenuMobile.d.ts +1 -2
- package/lib/components/UserMenu/variables.js +4 -1
- package/lib/components/VersionPicker/VersionPicker.d.ts +1 -1
- package/lib/core/types/catalog.d.ts +3 -0
- package/lib/core/types/hooks.d.ts +3 -1
- package/lib/layouts/DocumentationLayout.js +7 -0
- package/lib/layouts/NotFound.js +2 -2
- package/lib/layouts/RootLayout.d.ts +2 -3
- package/lib/markdoc/components/InlineSvg/InlineSvg.d.ts +2 -1
- package/lib/markdoc/components/InlineSvg/InlineSvg.js +2 -2
- package/lib/markdoc/components/Tabs/variables.js +5 -5
- package/package.json +4 -4
- package/src/components/Badge/Badge.tsx +13 -3
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/components/Button/Button.tsx +5 -1
- package/src/components/Buttons/CopyButton.tsx +7 -5
- package/src/components/Buttons/EditPageButton.tsx +3 -3
- package/src/components/Buttons/EmailButton.tsx +4 -4
- package/src/components/Buttons/NewTabButton.tsx +7 -4
- package/src/components/Catalog/Catalog.tsx +5 -7
- package/src/components/Catalog/CatalogActions.tsx +1 -1
- package/src/components/Catalog/CatalogCard.tsx +23 -24
- package/src/components/Catalog/CatalogHighlight.tsx +1 -1
- package/src/components/Catalog/CatalogInfoBlock.tsx +1 -1
- package/src/components/CodeBlock/CodeBlock.tsx +1 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +2 -0
- package/src/components/CodeBlock/CodeBlockTabs.tsx +1 -1
- package/src/components/CodeBlock/variables.ts +2 -2
- package/src/components/ColorModeSwitcher/ColorModeIcon.tsx +8 -4
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/Dropdown/Dropdown.tsx +14 -8
- package/src/components/Dropdown/DropdownMenu.tsx +1 -1
- package/src/components/Dropdown/DropdownMenuItem.tsx +25 -6
- package/src/components/Dropdown/variables.ts +5 -1
- package/src/components/Feedback/Comment.tsx +4 -2
- package/src/components/Feedback/Mood.tsx +5 -4
- package/src/components/Feedback/Rating.tsx +1 -1
- package/src/components/Feedback/ReportDialog.tsx +1 -0
- package/src/components/Feedback/Scale.tsx +1 -1
- package/src/components/Feedback/Sentiment.tsx +4 -3
- package/src/components/Filter/FilterContent.tsx +3 -3
- package/src/components/Filter/FilterInput.tsx +1 -1
- package/src/components/Filter/FilterOption.tsx +20 -4
- package/src/components/Filter/FilterOptionLabel.tsx +10 -3
- package/src/components/Filter/FilterOptions.tsx +10 -3
- package/src/components/Filter/FilterPopover.tsx +1 -1
- package/src/components/Filter/FilterSelect.tsx +1 -4
- package/src/components/Filter/FilterTitle.tsx +10 -3
- package/src/components/Filter/variables.ts +2 -1
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/FooterColumn.tsx +1 -1
- package/src/components/Footer/FooterCopyright.tsx +1 -1
- package/src/components/Footer/FooterItem.tsx +1 -1
- package/src/components/Footer/FooterLogo.tsx +8 -1
- package/src/components/Image/Image.tsx +1 -1
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LanguagePicker/LanguagePicker.tsx +6 -3
- package/src/components/LanguagePicker/variables.ts +4 -1
- package/src/components/LastUpdated/LastUpdated.tsx +1 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/Loading/Loading.tsx +2 -2
- package/src/components/Logo/Logo.tsx +1 -1
- package/src/components/Markdown/Markdown.tsx +23 -14
- package/src/components/Markdown/variables.ts +10 -5
- package/src/components/Menu/Menu.tsx +1 -1
- package/src/components/Menu/MenuContainer.tsx +9 -5
- package/src/components/Menu/MenuMobile.tsx +1 -1
- package/src/components/Menu/variables.ts +2 -0
- package/src/components/Navbar/Navbar.tsx +1 -0
- package/src/components/Navbar/NavbarItem.tsx +2 -2
- package/src/components/Navbar/NavbarLogo.tsx +8 -3
- package/src/components/Navbar/NavbarMenu.tsx +1 -1
- package/src/components/PageNavigation/NextButton.tsx +1 -1
- package/src/components/PageNavigation/PageNavigation.tsx +1 -1
- package/src/components/PageNavigation/PreviousButton.tsx +1 -1
- package/src/components/Panel/Panel.tsx +1 -1
- package/src/components/Panel/PanelBody.ts +2 -2
- package/src/components/Portal/Portal.tsx +6 -3
- package/src/components/Product/Product.tsx +1 -1
- package/src/components/Product/ProductPicker.tsx +4 -1
- package/src/components/Product/variables.ts +4 -1
- package/src/components/Search/Search.tsx +1 -1
- package/src/components/Search/SearchDialog.tsx +1 -1
- package/src/components/Search/SearchInput.tsx +1 -1
- package/src/components/Search/SearchItem.tsx +1 -1
- package/src/components/Search/SearchRecent.tsx +1 -1
- package/src/components/Search/SearchShortcut.tsx +1 -1
- package/src/components/Search/SearchSuggestedPages.tsx +1 -1
- package/src/components/Search/SearchTrigger.tsx +1 -1
- package/src/components/Search/variables.ts +2 -2
- package/src/components/Segmented/Segmented.tsx +1 -1
- package/src/components/Select/Select.tsx +3 -3
- package/src/components/Sidebar/Sidebar.tsx +1 -1
- package/src/components/SidebarActions/ChangeViewButton.tsx +2 -2
- package/src/components/SidebarActions/SidebarActions.tsx +2 -2
- package/src/components/SidebarLogo/SidebarLogo.tsx +3 -3
- package/src/components/TableOfContent/TableOfContent.tsx +1 -1
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Tooltip/variables.ts +4 -0
- package/src/components/Typography/H1.ts +1 -1
- package/src/components/Typography/H2.ts +1 -1
- package/src/components/Typography/H3.ts +1 -1
- package/src/components/Typography/H4.ts +1 -1
- package/src/components/UserMenu/UserAvatar.tsx +1 -1
- package/src/components/UserMenu/UserInfoMenuItem.tsx +1 -1
- package/src/components/UserMenu/UserMenu.tsx +5 -2
- package/src/components/UserMenu/UserMenuMobile.tsx +1 -1
- package/src/components/UserMenu/variables.ts +4 -1
- package/src/core/types/catalog.ts +3 -1
- package/src/core/types/hooks.ts +3 -1
- package/src/layouts/DocumentationLayout.tsx +7 -0
- package/src/layouts/NotFound.tsx +3 -3
- package/src/layouts/RootLayout.tsx +2 -2
- package/src/markdoc/components/InlineSvg/InlineSvg.tsx +8 -1
- package/src/markdoc/components/Tabs/variables.ts +5 -5
|
@@ -17,7 +17,6 @@ exports.dropdown = (0, styled_components_1.css) `
|
|
|
17
17
|
--dropdown-menu-padding: var(--spacing-xxs); // @presenter Spacing
|
|
18
18
|
--dropdown-menu-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
19
19
|
--dropdown-menu-box-shadow: var(--bg-raised-shadow); // @presenter Shadow
|
|
20
|
-
--dropdown-menu-color-disabled: var(--text-color-disabled); // @presenter Color
|
|
21
20
|
--dropdown-menu-border-color: var(--border-color-secondary); // @presenter Color
|
|
22
21
|
--dropdown-menu-bg-color: var(--bg-color-raised); // @presenter Color
|
|
23
22
|
|
|
@@ -30,11 +29,16 @@ exports.dropdown = (0, styled_components_1.css) `
|
|
|
30
29
|
--dropdown-menu-item-bg-color: transparent;
|
|
31
30
|
--dropdown-menu-item-bg-color-active: var(--bg-color-hover); // @presenter Color
|
|
32
31
|
--dropdown-menu-item-bg-color-hover: var(--bg-color-hover); // @presenter Color
|
|
32
|
+
--dropdown-menu-item-bg-color-disabled: var(--dropdown-menu-item-bg-color); // @presenter Color
|
|
33
33
|
--dropdown-menu-item-separator-border-color: var(--border-color-primary); // @presenter Color
|
|
34
34
|
--dropdown-menu-item-separator-font-size: var(--font-size-sm); // @presenter FontSize
|
|
35
35
|
--dropdown-menu-item-separator-line-height: var(--line-height-sm); // @presenter LineHeight
|
|
36
36
|
--dropdown-menu-item-separator-text-color: var(--text-color-disabled); // @presenter Color
|
|
37
37
|
--dropdown-menu-item-justify-content: flex-start;
|
|
38
|
+
--dropdown-menu-item-color: var(--dropdown-menu-text-color); // @presenter Color
|
|
39
|
+
--dropdown-menu-item-color-hover: var(--dropdown-menu-item-color); // @presenter Color
|
|
40
|
+
--dropdown-menu-item-color-active: var(--dropdown-menu-item-color); // @presenter Color
|
|
41
|
+
--dropdown-menu-item-color-disabled: var(--text-color-disabled); // @presenter Color
|
|
38
42
|
|
|
39
43
|
--dropdown-menu-item-color-dangerous: var(--color-error-base);
|
|
40
44
|
|
|
@@ -9,6 +9,7 @@ export type CommentProps = {
|
|
|
9
9
|
submitText?: string;
|
|
10
10
|
};
|
|
11
11
|
standAlone?: boolean;
|
|
12
|
+
isDialog?: boolean;
|
|
12
13
|
className?: string;
|
|
13
14
|
};
|
|
14
|
-
export declare function Comment({ settings, onSubmit, onCancel, className, standAlone, }: CommentProps): JSX.Element;
|
|
15
|
+
export declare function Comment({ settings, onSubmit, onCancel, className, standAlone, isDialog, }: CommentProps): JSX.Element;
|
|
@@ -29,7 +29,7 @@ const styled_components_1 = __importStar(require("styled-components"));
|
|
|
29
29
|
const hooks_1 = require("../../core/hooks");
|
|
30
30
|
const RadioCheckButtonIcon_1 = require("../../icons/RadioCheckButtonIcon/RadioCheckButtonIcon");
|
|
31
31
|
const Button_1 = require("../../components/Button/Button");
|
|
32
|
-
function Comment({ settings, onSubmit, onCancel, className, standAlone = true, }) {
|
|
32
|
+
function Comment({ settings, onSubmit, onCancel, className, standAlone = true, isDialog = false, }) {
|
|
33
33
|
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
34
34
|
const { translate } = useTranslate();
|
|
35
35
|
const { label, submitText } = settings || {};
|
|
@@ -63,7 +63,7 @@ function Comment({ settings, onSubmit, onCancel, className, standAlone = true, }
|
|
|
63
63
|
react_1.default.createElement(TextArea, { rows: 3, onChange: handleTextAreaChange }),
|
|
64
64
|
standAlone && (react_1.default.createElement(ButtonsContainer, null,
|
|
65
65
|
onCancel && (react_1.default.createElement(Button_1.Button, { "data-translation-key": "theme.feedback.settings.comment.cancel", onClick: onCancel, variant: "text", size: "small" }, translate('theme.feedback.settings.comment.cancel', 'Cancel'))),
|
|
66
|
-
react_1.default.createElement(Button_1.Button, { "data-translation-key": "theme.feedback.settings.comment.send", onClick: send, variant:
|
|
66
|
+
react_1.default.createElement(Button_1.Button, { "data-translation-key": "theme.feedback.settings.comment.send", onClick: send, variant: isDialog ? 'primary' : 'secondary', size: "small" }, translate('theme.feedback.settings.comment.send', 'Send'))))));
|
|
67
67
|
}
|
|
68
68
|
exports.Comment = Comment;
|
|
69
69
|
const StyledFormMandatoryFields = styled_components_1.default.div `
|
|
@@ -82,7 +82,7 @@ const CommentWrapper = styled_components_1.default.div `
|
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
justify-content: space-between;
|
|
84
84
|
border-radius: var(--border-radius-lg);
|
|
85
|
-
background: var(--feedback-
|
|
85
|
+
background: var(--feedback-bg-color);
|
|
86
86
|
gap: var(--spacing-xxs);
|
|
87
87
|
|
|
88
88
|
max-width: var(--feedback-report-dialog-max-width);
|
|
@@ -102,13 +102,13 @@ function Mood({ settings, onSubmit, className }) {
|
|
|
102
102
|
React.createElement(Label, { "data-translation-key": "theme.feedback.settings.label" }, label || translate('theme.feedback.settings.label', 'Was this helpful?')),
|
|
103
103
|
React.createElement(StyledMandatoryFieldContainer, null,
|
|
104
104
|
React.createElement(React.Fragment, null,
|
|
105
|
-
React.createElement(Button_1.Button, { type: "button",
|
|
105
|
+
React.createElement(Button_1.Button, { type: "button", size: "medium", variant: score === MOOD_STATES.DISSATISFIED ? 'primary' : 'secondary', tone: score === MOOD_STATES.DISSATISFIED ? 'danger' : 'default', onClick: () => {
|
|
106
106
|
setScore(MOOD_STATES.DISSATISFIED);
|
|
107
107
|
}, icon: React.createElement(FaceDissatisfiedIcon_1.FaceDissatisfiedIcon, null) }),
|
|
108
|
-
React.createElement(Button_1.Button, { type: "button",
|
|
108
|
+
React.createElement(Button_1.Button, { type: "button", variant: score === MOOD_STATES.NEUTRAL ? 'primary' : 'secondary', size: "medium", onClick: () => {
|
|
109
109
|
setScore(MOOD_STATES.NEUTRAL);
|
|
110
110
|
}, icon: React.createElement(FaceNeutralIcon_1.FaceNeutralIcon, null) }),
|
|
111
|
-
React.createElement(Button_1.Button, { type: "button",
|
|
111
|
+
React.createElement(Button_1.Button, { type: "button", variant: score === MOOD_STATES.SATISFIED ? 'primary' : 'secondary', size: "medium", onClick: () => {
|
|
112
112
|
setScore(MOOD_STATES.SATISFIED);
|
|
113
113
|
}, icon: React.createElement(FaceSatisfiedIcon_1.FaceSatisfiedIcon, null) })))),
|
|
114
114
|
(displayReasons || displayComment) && (React.createElement(StyledFormOptionalFields, null,
|
|
@@ -120,7 +120,7 @@ function Mood({ settings, onSubmit, className }) {
|
|
|
120
120
|
displayComment && (React.createElement(Comment_1.Comment, { standAlone: false, onSubmit: ({ comment }) => setComment(comment), settings: { label: renderCommentLabel(score) } })))),
|
|
121
121
|
displaySubmitBnt && (React.createElement(ButtonsContainer, null,
|
|
122
122
|
React.createElement(Button_1.Button, { onClick: onCancelMoodForm, variant: "text", size: "small" }, "Cancel"),
|
|
123
|
-
React.createElement(Button_1.Button, { onClick:
|
|
123
|
+
React.createElement(Button_1.Button, { onClick: onSubmitMoodForm, variant: "secondary", size: "small" }, "Submit"))))));
|
|
124
124
|
}
|
|
125
125
|
exports.Mood = Mood;
|
|
126
126
|
const remapScore = (score) => {
|
|
@@ -88,7 +88,7 @@ function Rating({ settings, onSubmit, className }) {
|
|
|
88
88
|
displayComment && (React.createElement(Comment_1.Comment, { standAlone: false, onSubmit: ({ comment }) => setComment(comment), settings: { label: commentSettings.label } })))),
|
|
89
89
|
displaySubmitBnt && (React.createElement(ButtonsContainer, null,
|
|
90
90
|
React.createElement(Button_1.Button, { onClick: onCancelRatingForm, variant: "text", size: "small" }, "Cancel"),
|
|
91
|
-
React.createElement(Button_1.Button, { onClick: onCancelRatingForm, variant: "
|
|
91
|
+
React.createElement(Button_1.Button, { onClick: onCancelRatingForm, variant: "secondary", size: "small" }, "Submit"))))));
|
|
92
92
|
}
|
|
93
93
|
exports.Rating = Rating;
|
|
94
94
|
const StyledForm = styled_components_1.default.form `
|
|
@@ -36,7 +36,7 @@ function ReportDialog({ location, settings, onSubmit, onCancel, submitFeedback,
|
|
|
36
36
|
});
|
|
37
37
|
telemetry.send('code_snippet_reported', {});
|
|
38
38
|
onSubmit();
|
|
39
|
-
}), onCancel: onCancel }))));
|
|
39
|
+
}), isDialog: true, onCancel: onCancel }))));
|
|
40
40
|
}
|
|
41
41
|
exports.ReportDialog = ReportDialog;
|
|
42
42
|
const ReportDialogWrapper = styled_components_1.default.div `
|
|
@@ -97,7 +97,7 @@ function Scale({ settings, onSubmit, className }) {
|
|
|
97
97
|
displayComment && (React.createElement(Comment_1.Comment, { standAlone: false, onSubmit: ({ comment }) => setComment(comment), settings: { label: commentSettings.label } }))),
|
|
98
98
|
displaySubmitBnt && (React.createElement(ButtonsContainer, null,
|
|
99
99
|
React.createElement(Button_1.Button, { "data-translation-key": "theme.feedback.settings.comment.cancel", onClick: handleCancel, variant: "text", size: "small" }, translate('theme.feedback.settings.comment.cancel', 'Cancel')),
|
|
100
|
-
React.createElement(Button_1.Button, { "data-translation-key": "theme.feedback.settings.scale.send", onClick: onSubmitScaleForm, variant: "
|
|
100
|
+
React.createElement(Button_1.Button, { "data-translation-key": "theme.feedback.settings.scale.send", onClick: onSubmitScaleForm, variant: "secondary", size: "small" }, translate('theme.feedback.settings.scale.send', 'Submit')))))));
|
|
101
101
|
}
|
|
102
102
|
exports.Scale = Scale;
|
|
103
103
|
const ScaleWrapper = styled_components_1.default.div `
|
|
@@ -82,10 +82,10 @@ function Sentiment({ settings, onSubmit, className }) {
|
|
|
82
82
|
React.createElement(StyledFormMandatoryFields, null,
|
|
83
83
|
React.createElement(Label, { "data-translation-key": "theme.feedback.settings.label" }, label || translate('theme.feedback.settings.label', 'Was this helpful?')),
|
|
84
84
|
React.createElement(StyledMandatoryFieldContainer, null,
|
|
85
|
-
React.createElement(Button_1.Button, { type: "button", size: "medium",
|
|
85
|
+
React.createElement(Button_1.Button, { type: "button", size: "medium", variant: score === 1 ? 'primary' : 'secondary', onClick: () => {
|
|
86
86
|
setScore(1);
|
|
87
87
|
}, "aria-label": "Like", icon: React.createElement(ThumbUpIcon_1.ThumbUpIcon, null) }),
|
|
88
|
-
React.createElement(Button_1.Button, { size: "medium", type: "button",
|
|
88
|
+
React.createElement(Button_1.Button, { size: "medium", type: "button", variant: score === -1 ? 'primary' : 'secondary', tone: score === -1 ? 'danger' : 'default', onClick: () => {
|
|
89
89
|
setScore(-1);
|
|
90
90
|
}, "aria-label": "Dislike", icon: React.createElement(ThumbDownIcon_1.ThumbDownIcon, null) }))),
|
|
91
91
|
(displayReasons || displayComment) && (React.createElement(StyledFormOptionalFields, null,
|
|
@@ -97,7 +97,7 @@ function Sentiment({ settings, onSubmit, className }) {
|
|
|
97
97
|
displayComment && (React.createElement(Comment_1.Comment, { standAlone: false, onSubmit: ({ comment }) => setComment(comment), settings: { label: commentLabel } })))),
|
|
98
98
|
displaySubmitBnt && (React.createElement(ButtonsContainer, null,
|
|
99
99
|
React.createElement(Button_1.Button, { onClick: onCancelSentimentForm, variant: "text", size: "small" }, "Cancel"),
|
|
100
|
-
React.createElement(Button_1.Button, { onClick: onSubmitSentimentForm, variant: "
|
|
100
|
+
React.createElement(Button_1.Button, { onClick: onSubmitSentimentForm, variant: "secondary", size: "small" }, "Submit"))))));
|
|
101
101
|
}
|
|
102
102
|
exports.Sentiment = Sentiment;
|
|
103
103
|
const SentimentWrapper = styled_components_1.default.div `
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedFilter } from '../../core/types';
|
|
3
3
|
import type { ThemeConfig } from '../../config';
|
|
4
|
-
type FilterContentProps = {
|
|
4
|
+
export type FilterContentProps = {
|
|
5
5
|
setFilterTerm: (value: string) => void;
|
|
6
6
|
filters: ResolvedFilter[];
|
|
7
7
|
filterTerm: string;
|
|
8
8
|
filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
|
|
9
9
|
};
|
|
10
10
|
export declare function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, }: FilterContentProps): JSX.Element;
|
|
11
|
-
export declare const FilterItems: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export {};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.FilterContent = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const FilterInput_1 = require("../../components/Filter/FilterInput");
|
|
@@ -30,9 +30,9 @@ function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing,
|
|
|
30
30
|
return (react_1.default.createElement(FilterContentWrapper, { "data-component-name": "Filter/FilterContent" },
|
|
31
31
|
react_1.default.createElement(FiltersHeader, null,
|
|
32
32
|
react_1.default.createElement(FiltersTitle, { "data-translation-key": "theme.catalog.filters.title" }, translate('theme.catalog.filters.title', 'Filters')),
|
|
33
|
-
hasActiveFilters ? (react_1.default.createElement(Button_1.Button, { size: "medium", variant: "ghost", onClick: handleClearAll }, translate('theme.catalog.filters.clearAll', 'Clear filters'))) : null),
|
|
33
|
+
hasActiveFilters ? (react_1.default.createElement(Button_1.Button, { size: "medium", tone: "danger", variant: "ghost", onClick: handleClearAll }, translate('theme.catalog.filters.clearAll', 'Clear filters'))) : null),
|
|
34
34
|
react_1.default.createElement(FilterInput_1.FilterInput, { value: filterTerm, onChange: (updatedTerm) => setFilterTerm(updatedTerm) }),
|
|
35
|
-
react_1.default.createElement(
|
|
35
|
+
react_1.default.createElement(FilterItems, null, filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx, filterValuesCasing: filterValuesCasing }))))));
|
|
36
36
|
}
|
|
37
37
|
exports.FilterContent = FilterContent;
|
|
38
38
|
const FilterContentWrapper = styled_components_1.default.div `
|
|
@@ -52,7 +52,7 @@ const FiltersTitle = styled_components_1.default.div `
|
|
|
52
52
|
font-weight: var(--filter-content-title-font-weight);
|
|
53
53
|
line-height: var(--filter-content-title-line-height);
|
|
54
54
|
`;
|
|
55
|
-
|
|
55
|
+
const FilterItems = styled_components_1.default.div `
|
|
56
56
|
padding: var(--filter-content-items-padding);
|
|
57
57
|
height: 100%;
|
|
58
58
|
display: flex;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export type FilterOptionProps = PropsWithChildren<{
|
|
3
|
+
role?: string;
|
|
4
|
+
key?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function FilterOption(props: FilterOptionProps): JSX.Element;
|
|
@@ -4,11 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterOption = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
function FilterOption(props) {
|
|
10
|
+
return (react_1.default.createElement(FilterOptionComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterOption", "data-testid": "Filter/FilterOption" })));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterOption = FilterOption;
|
|
13
|
+
const FilterOptionComponent = styled_components_1.default.label `
|
|
12
14
|
display: flex;
|
|
13
15
|
gap: var(--filter-option-gap);
|
|
14
16
|
align-items: center;
|
|
@@ -18,5 +20,6 @@ exports.FilterOption = styled_components_1.default.label.attrs({
|
|
|
18
20
|
input {
|
|
19
21
|
cursor: pointer;
|
|
20
22
|
}
|
|
23
|
+
margin: var(--filter-option-margin);
|
|
21
24
|
`;
|
|
22
25
|
//# sourceMappingURL=FilterOption.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export type FilterOptionLabelProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function FilterOptionLabel(props: FilterOptionLabelProps): JSX.Element;
|
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterOptionLabel = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
function FilterOptionLabel(props) {
|
|
10
|
+
return react_1.default.createElement(FilterOptionLabelComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterOptionLabel" }));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterOptionLabel = FilterOptionLabel;
|
|
13
|
+
const FilterOptionLabelComponent = styled_components_1.default.label `
|
|
11
14
|
cursor: pointer;
|
|
12
15
|
font-size: var(--filter-option-label-font-size);
|
|
13
16
|
color: var(--filter-option-label-color);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export type FilterOptionsProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function FilterOptions(props: FilterOptionsProps): JSX.Element;
|
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterOptions = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
function FilterOptions(props) {
|
|
10
|
+
return react_1.default.createElement(FilterOptionsComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterOptions" }));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterOptions = FilterOptions;
|
|
13
|
+
const FilterOptionsComponent = styled_components_1.default.div `
|
|
11
14
|
padding: var(--filter-options-padding-vertical) var(--filter-options-padding-horizontal);
|
|
12
15
|
display: flex;
|
|
13
16
|
flex-direction: column;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedFilter } from '../../core/types';
|
|
3
3
|
import type { ThemeConfig } from '../../config';
|
|
4
|
-
type FilterPopoverProps = {
|
|
4
|
+
export type FilterPopoverProps = {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
filters: ResolvedFilter[];
|
|
7
7
|
filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
|
|
8
8
|
};
|
|
9
9
|
export declare function FilterPopover({ onClose, filters, filterValuesCasing, }: FilterPopoverProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -55,9 +55,6 @@ const StyledSelect = (0, styled_components_1.default)(Select_1.Select) `
|
|
|
55
55
|
:hover {
|
|
56
56
|
border-color: var(--filter-select-border-color-hover);
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
${FilterOption_1.FilterOption} {
|
|
60
|
-
margin: var(--filter-select-option-margin);
|
|
61
|
-
}
|
|
58
|
+
--filter-option-margin: var(--filter-select-option-margin);
|
|
62
59
|
`;
|
|
63
60
|
//# sourceMappingURL=FilterSelect.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export type FilterTitleProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function FilterTitle(props: FilterTitleProps): JSX.Element;
|
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterTitle = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
function FilterTitle(props) {
|
|
10
|
+
return react_1.default.createElement(FilterTitleComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterTitle" }));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterTitle = FilterTitle;
|
|
13
|
+
const FilterTitleComponent = styled_components_1.default.div `
|
|
11
14
|
font-weight: var(--filter-title-font-weight);
|
|
12
15
|
font-size: var(--filter-title-font-size);
|
|
13
16
|
line-height: var(--filter-title-line-height);
|
|
@@ -19,7 +19,8 @@ exports.filter = (0, styled_components_1.css) `
|
|
|
19
19
|
--filter-options-gap: var(--spacing-sm);
|
|
20
20
|
|
|
21
21
|
--filter-option-font-size: var(--font-size-base);
|
|
22
|
-
--filter-option-gap: var(--spacing-xs);
|
|
22
|
+
--filter-option-gap: var(--spacing-xs);
|
|
23
|
+
--filter-option-margin: 0;
|
|
23
24
|
|
|
24
25
|
--filter-option-label-font-size: var(--font-size-base);
|
|
25
26
|
--filter-option-label-color: var(--text-color-secondary);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItem } from '@redocly/config';
|
|
3
|
-
type FooterColumnProps = {
|
|
3
|
+
export type FooterColumnProps = {
|
|
4
4
|
column: ResolvedNavItem;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function FooterColumn({ column, className }: FooterColumnProps): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type FooterCopyrightProps = {
|
|
2
|
+
export type FooterCopyrightProps = {
|
|
3
3
|
copyrightText: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function FooterCopyright({ copyrightText, className, }: FooterCopyrightProps): JSX.Element | null;
|
|
7
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItem } from '@redocly/config';
|
|
3
|
-
type FooterItemProps = {
|
|
3
|
+
export type FooterItemProps = {
|
|
4
4
|
item: ResolvedNavItem;
|
|
5
5
|
iconsOnly?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare function FooterItem({ item, iconsOnly }: FooterItemProps): JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, "data-component-name">;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LogoProps } from '../../components/Logo/Logo';
|
|
3
|
+
export declare function FooterLogo(props: LogoProps): React.JSX.Element;
|
|
@@ -4,9 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FooterLogo = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
9
|
const Logo_1 = require("../../components/Logo/Logo");
|
|
9
|
-
|
|
10
|
+
function FooterLogo(props) {
|
|
11
|
+
return react_1.default.createElement(FooterLogoComponent, Object.assign({}, props, { "data-component-name": "Footer/FooterLogo" }));
|
|
12
|
+
}
|
|
13
|
+
exports.FooterLogo = FooterLogo;
|
|
14
|
+
const FooterLogoComponent = (0, styled_components_1.default)(Logo_1.Logo) `
|
|
10
15
|
--logo-height: var(--footer-logo-height);
|
|
11
16
|
--logo-width: var(--footer-logo-width);
|
|
12
17
|
--logo-max-width: var(--footer-logo-max-width);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export type ImageProps = {
|
|
3
3
|
src?: string;
|
|
4
4
|
srcSet?: string;
|
|
5
5
|
alt?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function Image(props: ImageProps):
|
|
8
|
+
export declare function Image(props: ImageProps): JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JsonProps = {
|
|
3
3
|
data: any;
|
|
4
4
|
className?: string;
|
|
5
5
|
expandLevel: number;
|
|
6
6
|
startLineNumber?: number;
|
|
7
7
|
onCopyClick?: () => void;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export declare const JsonViewer: React.NamedExoticComponent<JsonProps>;
|
|
10
10
|
export declare const JsonViewerWrap: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type LanguagePickerProps = {
|
|
2
|
+
export type LanguagePickerProps = {
|
|
3
3
|
onChangeLanguage: (newLang: string) => void;
|
|
4
4
|
onlyIcon?: boolean;
|
|
5
5
|
placement?: 'top' | 'bottom';
|
|
6
6
|
alignment?: 'start' | 'end';
|
|
7
7
|
};
|
|
8
8
|
export declare function LanguagePicker(props: LanguagePickerProps): JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -46,7 +46,7 @@ const LanguageDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).a
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
--dropdown-menu-item-justify-content: space-between;
|
|
49
|
-
|
|
49
|
+
--dropdown-menu-item-gap: var(--spacing-xxs);
|
|
50
50
|
--dropdown-menu-font-size: var(--language-picker-dropdown-font-size);
|
|
51
51
|
--dropdown-menu-font-weight: var(--language-picker-dropdown-font-weight);
|
|
52
52
|
--dropdown-menu-line-height: var(--language-picker-dropdown-line-height);
|
|
@@ -57,7 +57,6 @@ const LanguageDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).a
|
|
|
57
57
|
--dropdown-menu-padding: var(--language-picker-dropdown-padding);
|
|
58
58
|
--dropdown-menu-border-radius: var(--language-picker-dropdown-border-radius);
|
|
59
59
|
--dropdown-menu-box-shadow: var(--language-picker-dropdown-box-shadow);
|
|
60
|
-
--dropdown-menu-color-disabled: var(--language-picker-dropdown-color-disabled);
|
|
61
60
|
--dropdown-menu-border-color: var(--language-picker-dropdown-border-color);
|
|
62
61
|
--dropdown-menu-bg-color: var(--language-picker-dropdown-bg-color);
|
|
63
62
|
--dropdown-menu-item-padding-horizontal: var(--language-picker-dropdown-item-padding-horizontal);
|
|
@@ -71,9 +70,13 @@ const LanguageDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).a
|
|
|
71
70
|
--dropdown-menu-item-border-radius: var(--language-picker-dropdown-item-border-radius);
|
|
72
71
|
--dropdown-menu-item-bg-color-active: var(--language-picker-dropdown-item-bg-color-active);
|
|
73
72
|
--dropdown-menu-item-bg-color-hover: var(--language-picker-dropdown-item-bg-color-hover);
|
|
73
|
+
--dropdown-menu-item-bg-color-disabled: var(--language-picker-dropdown-item-bg-color-disabled);
|
|
74
74
|
--dropdown-menu-item-separator-border-color: var(
|
|
75
75
|
--language-picker-dropdown-item-separator-border-color
|
|
76
76
|
);
|
|
77
77
|
--dropdown-menu-item-color-dangerous: var(--language-picker-dropdown-item-color-dangerous);
|
|
78
|
+
--dropdown-menu-item-color-disabled: var(--language-picker-dropdown-item-color-disabled);
|
|
79
|
+
--dropdown-menu-item-color-active: var(--language-picker-dropdown-item-color-active);
|
|
80
|
+
--dropdown-menu-item-color-hover: var(--language-picker-dropdown-item-color-hover);
|
|
78
81
|
`;
|
|
79
82
|
//# sourceMappingURL=LanguagePicker.js.map
|
|
@@ -17,7 +17,6 @@ exports.languagePicker = (0, styled_components_1.css) `
|
|
|
17
17
|
--language-picker-dropdown-padding: var(--dropdown-menu-padding ); // @presenter Spacing
|
|
18
18
|
--language-picker-dropdown-border-radius: var(--dropdown-menu-border-radius); // @presenter BorderRadius
|
|
19
19
|
--language-picker-dropdown-box-shadow: var(--dropdown-menu-box-shadow); // @presenter Shadow
|
|
20
|
-
--language-picker-dropdown-color-disabled: var(--dropdown-menu-color-disabled); // @presenter Color
|
|
21
20
|
--language-picker-dropdown-border-color: var(--dropdown-menu-border-color); // @presenter Color
|
|
22
21
|
--language-picker-dropdown-bg-color: var(--dropdown-menu-bg-color); // @presenter Color
|
|
23
22
|
|
|
@@ -28,8 +27,12 @@ exports.languagePicker = (0, styled_components_1.css) `
|
|
|
28
27
|
--language-picker-dropdown-item-border-radius: var(--dropdown-menu-item-border-radius ); // @presenter BorderRadius
|
|
29
28
|
--language-picker-dropdown-item-bg-color-active: var(--dropdown-menu-item-bg-color-active); // @presenter Color
|
|
30
29
|
--language-picker-dropdown-item-bg-color-hover: var(--dropdown-menu-item-bg-color-hover); // @presenter Color
|
|
30
|
+
--language-picker-dropdown-item-bg-color-disabled: var(--dropdown-menu-item-bg-color-disabled); // @presenter Color
|
|
31
31
|
--language-picker-dropdown-item-separator-border-color: var(--dropdown-menu-item-separator-border-color); // @presenter Color
|
|
32
32
|
--language-picker-dropdown-item-color-dangerous: var(--dropdown-menu-item-color-dangerous);
|
|
33
|
+
--language-picker-dropdown-item-color-disabled: var(--dropdown-menu-item-color-disabled);
|
|
34
|
+
--language-picker-dropdown-item-color-active: var(--dropdown-menu-item-color-active);
|
|
35
|
+
--language-picker-dropdown-item-color-hover: var(--dropdown-menu-item-color-hover);
|
|
33
36
|
--language-picker-dropdown-item-border-color-focused: var(--dropdown-menu-item-border-color-focused);
|
|
34
37
|
|
|
35
38
|
// @tokens End
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LogoConfig } from '../../core/types';
|
|
3
|
-
type LogoProps = {
|
|
3
|
+
export type LogoProps = {
|
|
4
4
|
config: LogoConfig;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function Logo({ config, className, ...otherProps }: LogoProps): JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
export type MarkdownProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
base?: boolean;
|
|
7
|
+
ref?: (node: HTMLDivElement) => void;
|
|
8
|
+
}>;
|
|
1
9
|
export declare const Markdown: import("styled-components").StyledComponent<"main", any, {
|
|
10
|
+
className?: string | undefined;
|
|
2
11
|
compact?: boolean | undefined;
|
|
3
12
|
inline?: boolean | undefined;
|
|
4
13
|
base?: boolean | undefined;
|
|
14
|
+
ref?: ((node: HTMLDivElement) => void) | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
children?: import("react").ReactNode;
|
|
5
17
|
}, never>;
|