@bitrise/bitkit 10.36.0 → 10.36.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": "10.36.0",
4
+ "version": "10.36.2",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -14,6 +14,7 @@ const ToggleTheme: ComponentStyleConfig = {
14
14
  backgroundColor: 'neutral.50',
15
15
  borderRadius: '12',
16
16
  transition: '100ms',
17
+ isolation: 'isolate',
17
18
  _disabled: {
18
19
  backgroundColor: 'neutral.93',
19
20
  cursor: 'not-allowed',
@@ -125,7 +125,26 @@ const colors = {
125
125
  },
126
126
  };
127
127
 
128
- export type Colors = typeof colors;
128
+ export type TypeColors =
129
+ | `${'neutral' | 'purple' | 'red' | 'orange' | 'yellow' | 'green' | 'turquoise' | 'purple' | 'blue'}.${
130
+ | '10'
131
+ | '20'
132
+ | '30'
133
+ | '40'
134
+ | '50'
135
+ | '60'
136
+ | '70'
137
+ | '80'
138
+ | '90'
139
+ | '93'
140
+ | '95'
141
+ | '100'}`
142
+ | 'brand.primary'
143
+ | 'text.body'
144
+ | 'text.secondary'
145
+ | 'text.link'
146
+ | 'text.linkHover'
147
+ | 'separator.primary';
129
148
 
130
149
  export type ColorScheme = 'blue' | 'red' | 'green' | 'yellow' | 'purple' | 'neutral';
131
150
 
@@ -5,10 +5,10 @@ import Card from '../../Components/Card/Card';
5
5
  import Divider from '../../Components/Divider/Divider';
6
6
  import Provider from '../../Components/Provider/Provider';
7
7
  import Text from '../../Components/Text/Text';
8
- import colors, { Colors } from './Colors';
8
+ import colors from './Colors';
9
9
 
10
10
  const paletteKeys = ['neutral', 'purple', 'red', 'orange', 'yellow', 'green', 'turquoise', 'blue'] as Array<
11
- keyof Colors
11
+ keyof typeof colors
12
12
  >;
13
13
 
14
14
  const getTextColorFromShade = (backgroundColor: string, darkColor = 'text.body', lightColor = 'neutral.100') => {
@@ -1,8 +1,10 @@
1
1
  const sizes = {
2
+ '0': '0',
2
3
  '4': '0.25rem',
3
4
  '8': '0.5rem',
4
5
  '12': '0.75rem',
5
6
  '16': '1rem',
7
+ '20': '1.25rem',
6
8
  '24': '1.5rem',
7
9
  '32': '2rem',
8
10
  '40': '2.5rem',
@@ -12,5 +14,5 @@ const sizes = {
12
14
  '128': '8rem',
13
15
  };
14
16
 
15
- export type Sizes = typeof sizes;
17
+ export type TypeSizes = keyof typeof sizes;
16
18
  export default sizes;
package/src/index.ts CHANGED
@@ -1,13 +1,15 @@
1
- export * from './old';
2
1
  export * from './types/chakra';
3
2
  export * from './utils/chakra';
4
3
  export * from './hooks';
5
4
 
5
+ export { default as theme } from './theme';
6
+ export type { TypeColors } from './Foundations/Colors/Colors';
7
+ export type { TypeSizes } from './Foundations/Sizes/Sizes';
8
+
6
9
  export type { LinkProps } from './Components/Link/Link';
7
10
  export { default as Link } from './Components/Link/Link';
8
11
 
9
12
  export { default as Provider } from './Components/Provider/Provider';
10
- export { default as theme } from './theme';
11
13
 
12
14
  export type { OverflowMenuProps } from './Components/OverflowMenu/OverflowMenu';
13
15
  export { default as OverflowMenu } from './Components/OverflowMenu/OverflowMenu';