@bitrise/bitkit 9.14.1 → 9.14.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "9.14.1",
4
+ "version": "9.14.2",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -4,7 +4,7 @@ import './Base.css';
4
4
 
5
5
  export type TypeBorderRadius = 'x1' | 'x2' | 'x4' | 'rounded';
6
6
 
7
- const newToOld = {
7
+ export const newToOld = {
8
8
  'neutral.100': 'white',
9
9
  'neutral.10': 'black',
10
10
  'neutral.95': 'gray-1',
@@ -54,7 +54,7 @@ const newToOld = {
54
54
  'red.95': 'red-95',
55
55
  'orange-3': 'orange-3',
56
56
  'turquoise.40': 'turquoise-40',
57
- };
57
+ } as const;
58
58
 
59
59
  export type TypeColors = keyof typeof newToOld;
60
60
 
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { colorMap } from '../variables';
4
- import Base, { Props as BaseProps, TypeColors } from '../Base/Base';
4
+ import Base, { newToOld, Props as BaseProps, TypeColors } from '../Base/Base';
5
5
  import './ProgressBar.css';
6
6
 
7
7
  export interface Props extends BaseProps {
@@ -37,9 +37,7 @@ const ProgressBar: React.FunctionComponent<Props> = (props: Props) => {
37
37
  height={height}
38
38
  style={{
39
39
  '--ProgressBar--height': height,
40
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
41
- /* @ts-ignore */
42
- '--ProgressBar--stripe-color': stripeColor ? colorMap[stripeColor] : '',
40
+ '--ProgressBar--stripe-color': stripeColor ? colorMap[newToOld[stripeColor]] : '',
43
41
  }}
44
42
  >
45
43
  <Base
@@ -1,3 +1,4 @@
1
+ import colors from '../Foundations/Colors/Colors';
1
2
  import { IconList } from './Icon/tsx';
2
3
 
3
4
  export const colorWhite = '#FFFFFF';
@@ -204,7 +205,11 @@ export const colorMap = {
204
205
  'violet-3': colorViolet3,
205
206
  'violet-4': colorViolet4,
206
207
  'violet-5': colorViolet5,
207
- };
208
+
209
+ 'blue-95': colors.blue[95],
210
+ 'red-95': colors.red[95],
211
+ 'turquoise-40': colors.turquoise[40],
212
+ } as const;
208
213
 
209
214
  export const rgbMap = {
210
215
  white: rgbWhite,