@bitrise/bitkit 9.14.0-alpha-chakra.1 → 9.14.0-alpha-chakra.4

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.0-alpha-chakra.1",
4
+ "version": "9.14.0-alpha-chakra.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -1,15 +1,11 @@
1
1
  import React from 'react';
2
- import { chakraComponents, ChakraStylesConfig, DropdownIndicatorProps, OptionProps, Select } from 'chakra-react-select';
3
- import Icon from '@/Old/Icon/Icon';
2
+ import { chakraComponents, ChakraStylesConfig, Props, DropdownIndicatorProps, Select } from 'chakra-react-select';
3
+ import Icon from '../../Old/Icon/Icon';
4
4
  import getDropdownStyles from './Dropdown.styles';
5
5
 
6
- export interface DropdownProps {
7
- defaultValue?: OptionProps;
8
- options: OptionProps[];
9
- placeholder?: string;
10
- onChange?: () => void;
6
+ export type DropdownProps = {
11
7
  size?: 'small' | 'medium';
12
- }
8
+ } & Props;
13
9
 
14
10
  const components = {
15
11
  DropdownIndicator: (props: DropdownIndicatorProps) => {
package/src/index.ts CHANGED
@@ -28,3 +28,9 @@ export { default as Card } from './Components/Card/Card';
28
28
 
29
29
  export type { CardContentProps } from './Components/Card/CardContent';
30
30
  export { default as CardContent } from './Components/Card/CardContent';
31
+
32
+ export type { SelectProps } from './Components/Select/Select';
33
+ export { default as Select } from './Components/Select/Select';
34
+
35
+ export type { DropdownProps } from './Components/Dropdown/Dropdown';
36
+ export { default as Dropdown } from './Components/Dropdown/Dropdown';
package/src/old.ts CHANGED
@@ -61,9 +61,6 @@ export { default as DatePicker } from './Old/DatePicker/DatePicker';
61
61
  export type { Props as DotProps } from './Old/Dot/Dot';
62
62
  export { default as Dot } from './Old/Dot/Dot';
63
63
 
64
- export type { Props as DropdownProps } from './Old/Dropdown/Dropdown';
65
- export { default as Dropdown } from './Old/Dropdown/Dropdown';
66
-
67
64
  export type { Props as DropdownButtonProps } from './Old/Dropdown/DropdownButton';
68
65
  export { default as DropdownButton } from './Old/Dropdown/DropdownButton';
69
66