@bitrise/bitkit 9.35.2-alpha-react18.2 → 9.35.2-alpha-react18.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @bitrise/bitkit
2
2
 
3
- Library for React UI components and design patterns.
3
+ Library for React UI components and design patterns.
4
4
  ___
5
5
 
6
6
 
@@ -17,7 +17,6 @@ yarn install
17
17
  - [Typescript](https://www.typescriptlang.org/)
18
18
  - [Parcel](https://parceljs.org/) (bundler and dev servers)
19
19
  - [React](https://reactjs.org/) (with [React Router](https://reacttraining.com/react-router/) for routing links)
20
- - [PostCSS](https://postcss.org/) (with [postcss-preset-env](https://preset-env.cssdb.org/) for a little power)
21
20
  - [Jest](https://jestjs.io/) (for unit testing)
22
21
 
23
22
  ### Managing icons
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.35.2-alpha-react18.2",
4
+ "version": "9.35.2-alpha-react18.3",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -8,6 +8,7 @@ import {
8
8
  useDisclosure,
9
9
  HTMLChakraProps,
10
10
  } from '@chakra-ui/react';
11
+ import { BREAKPOINTS } from '../../Foundations/Breakpoints/Breakpoints';
11
12
  import Icon from '../Icon/Icon';
12
13
  import Text from '../Text/Text';
13
14
 
@@ -34,7 +35,7 @@ export interface DialogProps extends Omit<HTMLChakraProps<'section'>, 'scrollBeh
34
35
  }
35
36
 
36
37
  const Dialog = ({ children, dataTestid, scrollBehavior, state, size, title, ...rest }: DialogProps) => {
37
- const dialogSize = useBreakpointValue({ mobile: 'mobile', desktop: size });
38
+ const dialogSize = useBreakpointValue({ [BREAKPOINTS.MOBILE]: 'full', [BREAKPOINTS.DESKTOP]: size });
38
39
  return (
39
40
  <Modal
40
41
  closeOnOverlayClick={false}
@@ -10,7 +10,7 @@ const EmptyStateTheme: ComponentStyleConfig = {
10
10
  justifyContent: 'center',
11
11
  paddingX: '16',
12
12
  paddingY: {
13
- mobile: '32',
13
+ base: '32',
14
14
  desktop: '48',
15
15
  },
16
16
  backgroundColor: 'neutral.95',
package/src/index.ts CHANGED
@@ -99,6 +99,8 @@ export { default as DialogBody } from './Components/Dialog/DialogBody';
99
99
  export type { DialogFooterProps } from './Components/Dialog/DialogFooter';
100
100
  export { default as DialogFooter } from './Components/Dialog/DialogFooter';
101
101
 
102
+ export { BREAKPOINTS } from './Foundations/Breakpoints/Breakpoints';
103
+
102
104
  export type { FadeProps } from './Components/Transitions/Fade';
103
105
  export { default as Fade } from './Components/Transitions/Fade';
104
106