@codecademy/codebytes 0.2.1-alpha.a29b64.0 → 0.2.1-alpha.cfe771.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.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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.2.1-alpha.a29b64.0](https://github.com/Codecademy/client-modules/compare/@codecademy/codebytes@0.2.0...@codecademy/codebytes@0.2.1-alpha.a29b64.0) (2022-01-04)
6
+ ### [0.2.1-alpha.cfe771.0](https://github.com/Codecademy/client-modules/compare/@codecademy/codebytes@0.2.0...@codecademy/codebytes@0.2.1-alpha.cfe771.0) (2022-01-07)
7
7
 
8
8
  **Note:** Version bump only for package @codecademy/codebytes
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
3
  "description": "Codebytes Code Editor",
4
- "version": "0.2.1-alpha.a29b64.0",
4
+ "version": "0.2.1-alpha.cfe771.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "sideEffects": [
7
7
  "**/*.css",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "44e6bad947fe2052d41347c37f3ae285f6f0248a"
53
+ "gitHead": "152cbfee536dbc4fb1ac52fcd4ee6a82f25def61"
54
54
  }
@@ -51,4 +51,4 @@ export const ui = {
51
51
 
52
52
  export type SyntaxColors = typeof syntax;
53
53
 
54
- export type UIColors = typeof ui;
54
+ export type UIColors = typeof ui;
@@ -61,4 +61,4 @@ const theme = ({
61
61
  },
62
62
  });
63
63
 
64
- export const dark = theme(darkColors);
64
+ export const dark = theme(darkColors);
@@ -1 +1 @@
1
- export type Monaco = typeof import('monaco-editor');
1
+ export type Monaco = typeof import('monaco-editor');
package/src/editor.tsx CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ToolTip,
7
7
  } from '@codecademy/gamut';
8
8
  import { CopyIcon } from '@codecademy/gamut-icons';
9
- import { theme } from '@codecademy/gamut-styles';
9
+ import { colors } from '@codecademy/gamut-styles';
10
10
  import styled from '@emotion/styled';
11
11
  import React, { useState } from 'react';
12
12
 
@@ -23,9 +23,9 @@ const Output = styled.pre<{ hasError: boolean }>`
23
23
  font-family: Monaco;
24
24
  font-size: 0.875rem;
25
25
  overflow: auto;
26
- ${({ hasError }) => `
26
+ ${({ hasError, theme }) => `
27
27
  color: ${hasError ? theme.colors.orange : theme.colors.white};
28
- background-color: ${theme.colors['gray-900']};
28
+ background-color: ${colors['gray-900']};
29
29
  `}
30
30
  `;
31
31
 
package/src/index.tsx CHANGED
@@ -27,8 +27,8 @@ const editorBaseStyles = system.css({
27
27
  borderColor: 'gray-900',
28
28
  display: 'flex',
29
29
  flexDirection: 'column',
30
- height: '400px',
31
- width: '688px',
30
+ height: '25rem',
31
+ width: '43rem',
32
32
  overflow: 'hidden',
33
33
  });
34
34
  export interface EditorStyleProps