@synerise/ds-code-snippet 0.5.0 → 0.5.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/CHANGELOG.md +11 -0
- package/dist/CodeSnippet.d.ts +2 -1
- package/dist/CodeSnippet.js +1 -0
- package/dist/CodeTypes/InlineCode/InlineCode.styles.js +1 -1
- package/dist/CodeTypes/MultiCode/MultiCode.styles.js +1 -1
- package/dist/CodeTypes/SingleCode/SingleCode.styles.js +1 -1
- package/dist/CopyAction/CopyAction.js +1 -1
- package/dist/style/index.css +1 -0
- package/fonts/IBMPlexMono-Bold.woff +0 -0
- package/fonts/IBMPlexMono-BoldItalic.woff +0 -0
- package/fonts/IBMPlexMono-ExtraLight.woff +0 -0
- package/fonts/IBMPlexMono-ExtraLightItalic.woff +0 -0
- package/fonts/IBMPlexMono-Italic.woff +0 -0
- package/fonts/IBMPlexMono-Light.woff +0 -0
- package/fonts/IBMPlexMono-LightItalic.woff +0 -0
- package/fonts/IBMPlexMono-Medium.woff +0 -0
- package/fonts/IBMPlexMono-MediumItalic.woff +0 -0
- package/fonts/IBMPlexMono-Regular.woff +0 -0
- package/fonts/IBMPlexMono-SemiBold.woff +0 -0
- package/fonts/IBMPlexMono-SemiBoldItalic.woff +0 -0
- package/fonts/IBMPlexMono-Thin.woff +0 -0
- package/fonts/IBMPlexMono-ThinItalic.woff +0 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.5.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.5.0...@synerise/ds-code-snippet@0.5.1) (2025-02-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **code-snippet:** fixes to font family ([149d776](https://github.com/Synerise/synerise-design/commit/149d77688f2a9092a8600d57af03a3f494f755e8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.5.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.4.3...@synerise/ds-code-snippet@0.5.0) (2025-01-29)
|
|
7
18
|
|
|
8
19
|
|
package/dist/CodeSnippet.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
2
3
|
import { CodeSnippetProps } from './CodeSnippet.types';
|
|
3
|
-
declare const CodeSnippet: React.
|
|
4
|
+
declare const CodeSnippet: ({ type, languages, children, colorSyntax, fontSize, tooltipTitleHover, tooltipTitleClick, labelBeforeExpanded, labelAfterExpanded, wrap, rows, className, onExpand, onCopy, customTriggerComponent, }: CodeSnippetProps) => React.JSX.Element;
|
|
4
5
|
export default CodeSnippet;
|
package/dist/CodeSnippet.js
CHANGED
|
@@ -4,6 +4,6 @@ import styled from 'styled-components';
|
|
|
4
4
|
export var InlineCodeWrapper = styled.code.withConfig({
|
|
5
5
|
displayName: "InlineCodestyles__InlineCodeWrapper",
|
|
6
6
|
componentId: "sc-2t3lx8-0"
|
|
7
|
-
})(["&{font-size:12px;font-family:
|
|
7
|
+
})(["&{font-size:12px;font-family:'IBM Plex Mono Regular',monospace;display:inline-block;padding:0 4px;margin-right:4px;border-radius:3px;color:#e31a5d;background-color:", ";}"], function (props) {
|
|
8
8
|
return props.theme.palette["pink-100"];
|
|
9
9
|
});
|
|
@@ -29,7 +29,7 @@ export var BlockCodeWrapperMulti = styled(BlockCodeWrapperSingle).withConfig({
|
|
|
29
29
|
export var PreBlock = styled.pre.withConfig({
|
|
30
30
|
displayName: "MultiCodestyles__PreBlock",
|
|
31
31
|
componentId: "sc-1u5vxm9-4"
|
|
32
|
-
})(["&{font-family:
|
|
32
|
+
})(["&{font-family:'IBM Plex Mono Regular',monospace;font-size:", "px;line-height:", "px;margin:0;", ";.ps__rail-x{height:", "px;z-index:11;opacity:0;}.ps__rail-x > .ps__thumb-x{bottom:", ";}.ps__rail-y{opacity:0;z-index:11;}}"], FONT_SIZE_DEFAULT, LINE_HEIGHT_DEFAULT, function (props) {
|
|
33
33
|
return !!props.wrap && css(["white-space:pre-wrap;word-wrap:break-world;"]);
|
|
34
34
|
}, LINE_HEIGHT_DEFAULT, function (props) {
|
|
35
35
|
return props.isButtonVisible ? '10px' : '6px';
|
|
@@ -24,7 +24,7 @@ export var CodeSnippetWrapperSingle = styled.div.withConfig({
|
|
|
24
24
|
export var BlockCodeWrapperSingle = styled.code.withConfig({
|
|
25
25
|
displayName: "SingleCodestyles__BlockCodeWrapperSingle",
|
|
26
26
|
componentId: "sc-1l78lb-2"
|
|
27
|
-
})(["&{display:block;font-family:
|
|
27
|
+
})(["&{display:block;font-family:'IBM Plex Mono Regular',monospace;font-size:", ";line-height:", "px;color:", ";", ";}"], function (props) {
|
|
28
28
|
return (props.fontSize || FONT_SIZE_DEFAULT) + "px";
|
|
29
29
|
}, LINE_HEIGHT_DEFAULT, function (props) {
|
|
30
30
|
return props.theme.palette["grey-600"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Tooltip from '@synerise/ds-tooltip
|
|
2
|
+
import Tooltip from '@synerise/ds-tooltip';
|
|
3
3
|
import Icon from '@synerise/ds-icon';
|
|
4
4
|
import { useOnClickOutside } from '@synerise/ds-utils';
|
|
5
5
|
import * as S from './CopyAction.styles';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:'IBM Plex Mono Regular';font-style:normal;font-weight:400;src:local('IBM Plex Mono Regular'),url(../../fonts/IBMPlexMono-Regular.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono Italic'),url(../../fonts/IBMPlexMono-Italic.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Thin';font-style:normal;font-weight:400;src:local('IBM Plex Mono Thin'),url(../../fonts/IBMPlexMono-Thin.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Thin Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono Thin Italic'),url(../../fonts/IBMPlexMono-ThinItalic.woff) format('woff')}@font-face{font-family:'IBM Plex Mono ExtraLight';font-style:normal;font-weight:400;src:local('IBM Plex Mono ExtraLight'),url(../../fonts/IBMPlexMono-ExtraLight.woff) format('woff')}@font-face{font-family:'IBM Plex Mono ExtraLight Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono ExtraLight Italic'),url(../../fonts/IBMPlexMono-ExtraLightItalic.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Light';font-style:normal;font-weight:400;src:local('IBM Plex Mono Light'),url(../../fonts/IBMPlexMono-Light.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Light Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono Light Italic'),url(../../fonts/IBMPlexMono-LightItalic.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Medium';font-style:normal;font-weight:400;src:local('IBM Plex Mono Medium'),url(../../fonts/IBMPlexMono-Medium.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Medium Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono Medium Italic'),url(../../fonts/IBMPlexMono-MediumItalic.woff) format('woff')}@font-face{font-family:'IBM Plex Mono SemiBold';font-style:normal;font-weight:400;src:local('IBM Plex Mono SemiBold'),url(../../fonts/IBMPlexMono-SemiBold.woff) format('woff')}@font-face{font-family:'IBM Plex Mono SemiBold Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono SemiBold Italic'),url(../../fonts/IBMPlexMono-SemiBoldItalic.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Bold';font-style:normal;font-weight:400;src:local('IBM Plex Mono Bold'),url(../../fonts/IBMPlexMono-Bold.woff) format('woff')}@font-face{font-family:'IBM Plex Mono Bold Italic';font-style:normal;font-weight:400;src:local('IBM Plex Mono Bold Italic'),url(../../fonts/IBMPlexMono-BoldItalic.woff) format('woff')}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-code-snippet",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "CodeSnippet UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"/dist",
|
|
10
|
+
"/fonts",
|
|
10
11
|
"CHANGELOG.md",
|
|
11
12
|
"README.md",
|
|
12
13
|
"package.json",
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"react": ">=16.9.0 <= 18.3.1",
|
|
49
50
|
"styled-components": "^5.3.3"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "ab0b81450a7fb90e6fe316367e03830ffe9590f5"
|
|
52
53
|
}
|