]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19285 Add link icon to component library
authorstanislavh <stanislav.honcharov@sonarsource.com>
Wed, 10 May 2023 15:55:44 +0000 (17:55 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 12 May 2023 20:02:40 +0000 (20:02 +0000)
server/sonar-web/design-system/src/components/Text.tsx
server/sonar-web/design-system/src/components/icons/LinkIcon.tsx [new file with mode: 0644]
server/sonar-web/design-system/src/components/icons/index.ts
server/sonar-web/design-system/src/components/index.ts

index 14da5264f36ec83dc79c26753eb07d2d82c73f84..f5ac7df3a6e3df82dec6fc7f1f11aa3709e1d691 100644 (file)
@@ -85,7 +85,7 @@ const StyledMutedText = styled(StyledText)`
   color: ${themeColor('dropdownMenuSubTitle')};
 `;
 
-const StyledPageTitle = styled(StyledText)`
+export const StyledPageTitle = styled(StyledText)`
   ${tw`sw-text-base`}
   color: ${themeColor('facetHeader')};
 `;
diff --git a/server/sonar-web/design-system/src/components/icons/LinkIcon.tsx b/server/sonar-web/design-system/src/components/icons/LinkIcon.tsx
new file mode 100644 (file)
index 0000000..e84c16d
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2023 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+import { LinkIcon as Icon } from '@primer/octicons-react';
+import { OcticonHoc } from './Icon';
+
+export const LinkIcon = OcticonHoc(Icon, 'LinkIcon');
index 9703f6660fbee594a84ed6907f01d1c3a3afcbbe..114132d47103ad0134bf339986afc6b26659b7bd 100644 (file)
@@ -36,6 +36,7 @@ export { FlagWarningIcon } from './FlagWarningIcon';
 export { HelperHintIcon } from './HelperHintIcon';
 export { HomeFillIcon } from './HomeFillIcon';
 export { HomeIcon } from './HomeIcon';
+export { LinkIcon } from './LinkIcon';
 export { LockIcon } from './LockIcon';
 export { MainBranchIcon } from './MainBranchIcon';
 export { MenuHelpIcon } from './MenuHelpIcon';
index 37ee85e89191ae990a8939d2e87fbed8ce1e0a02..83f428113018cdff9fd086b30d47d4fe991fc973 100644 (file)
@@ -59,6 +59,7 @@ export * from './Text';
 export { ToggleButton } from './ToggleButton';
 export { TopBar } from './TopBar';
 export * from './buttons';
+export { ClipboardIconButton } from './clipboard';
 export * from './icons';
 export * from './layouts';
 export * from './popups';