@scality/core-ui 0.201.0 → 0.202.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/editor/Editor.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ/C,wBAAgB,aAAa,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAIvD;AAED,wBAAgB,8BAA8B,IAAI,SAAS,CA4E1D;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,GAAI,yDAOpB,WAAW,4CAiDb,CAAC"}
1
+ {"version":3,"file":"Editor.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/editor/Editor.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ/C,wBAAgB,aAAa,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAIvD;AAED,wBAAgB,8BAA8B,IAAI,SAAS,CA4E1D;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,GAAI,yDAOpB,WAAW,4CAkDb,CAAC"}
@@ -111,6 +111,7 @@ export const Editor = ({ value, onChange, readOnly = false, language = 'json', h
111
111
  autocompletion: true,
112
112
  highlightActiveLine: true,
113
113
  highlightActiveLineGutter: true,
114
+ highlightSelectionMatches: false,
114
115
  indentOnInput: true,
115
116
  bracketMatching: true,
116
117
  closeBrackets: true,
@@ -1 +1 @@
1
- {"version":3,"file":"editorTheme.d.ts","sourceRoot":"","sources":["../../../src/lib/components/editor/editorTheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAM5D;AAyBD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,CAsF/D"}
1
+ {"version":3,"file":"editorTheme.d.ts","sourceRoot":"","sources":["../../../src/lib/components/editor/editorTheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAM5D;AAyBD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,CAuF/D"}
@@ -40,11 +40,12 @@ export function createEditorTheme(theme) {
40
40
  '&': {
41
41
  backgroundColor: theme.backgroundLevel1,
42
42
  color: theme.textPrimary,
43
+ fontFamily: "'Courier New', monospace",
44
+ fontSize: '12px',
45
+ lineHeight: '1.6',
43
46
  },
44
47
  '.cm-content': {
45
48
  caretColor: theme.textPrimary,
46
- fontFamily: "'Courier New', monospace",
47
- fontSize: '12px',
48
49
  },
49
50
  '.cm-cursor, .cm-dropCursor': {
50
51
  borderLeftColor: theme.textPrimary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scality/core-ui",
3
- "version": "0.201.0",
3
+ "version": "0.202.0",
4
4
  "description": "Scality common React component library",
5
5
  "author": "Scality Engineering",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -154,6 +154,7 @@ export const Editor = ({
154
154
  autocompletion: true,
155
155
  highlightActiveLine: true,
156
156
  highlightActiveLineGutter: true,
157
+ highlightSelectionMatches: false,
157
158
  indentOnInput: true,
158
159
  bracketMatching: true,
159
160
  closeBrackets: true,
@@ -46,11 +46,12 @@ export function createEditorTheme(theme: CoreUITheme): Extension {
46
46
  '&': {
47
47
  backgroundColor: theme.backgroundLevel1,
48
48
  color: theme.textPrimary,
49
+ fontFamily: "'Courier New', monospace",
50
+ fontSize: '12px',
51
+ lineHeight: '1.6',
49
52
  },
50
53
  '.cm-content': {
51
54
  caretColor: theme.textPrimary,
52
- fontFamily: "'Courier New', monospace",
53
- fontSize: '12px',
54
55
  },
55
56
  '.cm-cursor, .cm-dropCursor': {
56
57
  borderLeftColor: theme.textPrimary,