@bitrise/bitkit 12.31.1 → 12.32.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.31.1",
4
+ "version": "12.32.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -1,3 +1,4 @@
1
+ import { useId } from 'react';
1
2
  import {
2
3
  Modal,
3
4
  ModalOverlay,
@@ -38,6 +39,7 @@ const Dialog: ComponentWithAs<'section', DialogProps> = ({
38
39
  }: DialogProps) => {
39
40
  const dialogSize = useBreakpointValue({ [BREAKPOINTS.MOBILE]: 'mobile', [BREAKPOINTS.TABLET]: size });
40
41
  const prefersReducedMotion = usePrefersReducedMotion({ ssr: false });
42
+ const headerId = useId();
41
43
 
42
44
  return (
43
45
  <Modal
@@ -51,11 +53,11 @@ const Dialog: ComponentWithAs<'section', DialogProps> = ({
51
53
  trapFocus={trapFocus}
52
54
  >
53
55
  <ModalOverlay />
54
- <ModalContent {...rest}>
56
+ <ModalContent aria-labelledby={variant !== 'empty' ? headerId : undefined} {...rest}>
55
57
  {variant !== 'empty' && (
56
58
  <>
57
59
  <ModalHeader marginRight="48">
58
- <Text as="h1" size="5">
60
+ <Text id={headerId} as="h1" size="5">
59
61
  {title}
60
62
  </Text>
61
63
  </ModalHeader>
@@ -0,0 +1,14 @@
1
+ import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
2
+
3
+ const Agent = forwardRef<IconProps, 'svg'>((props, ref) => (
4
+ <Icon ref={ref} viewBox="0 0 16 16" {...props}>
5
+ <path
6
+ fill="currentColor"
7
+ fillRule="evenodd"
8
+ d="M13.3333 2.66671H2.66665V6.00004H13.3333V2.66671ZM13.3333 10H2.66665V13.3334H13.3333V10ZM2.66665 1.33337C1.93027 1.33337 1.33331 1.93033 1.33331 2.66671V6.00004C1.33331 6.73642 1.93027 7.33337 2.66665 7.33337H13.3333C14.0697 7.33337 14.6666 6.73642 14.6666 6.00004V2.66671C14.6666 1.93033 14.0697 1.33337 13.3333 1.33337H2.66665ZM2.66665 8.66671C1.93027 8.66671 1.33331 9.26366 1.33331 10V13.3334C1.33331 14.0698 1.93027 14.6667 2.66665 14.6667H13.3333C14.0697 14.6667 14.6666 14.0698 14.6666 13.3334V10C14.6666 9.26366 14.0697 8.66671 13.3333 8.66671H2.66665Z"
9
+ clipRule="evenodd"
10
+ />
11
+ </Icon>
12
+ ));
13
+
14
+ export default Agent;
@@ -2,6 +2,7 @@ export { default as AddonsTuorqouise } from './AddonsTuorqouise';
2
2
  export { default as AddonsViolet } from './AddonsViolet';
3
3
  export { default as AddonsWhite } from './AddonsWhite';
4
4
  export { default as Addons } from './Addons';
5
+ export { default as Agent } from './Agent';
5
6
  export { default as Anchor } from './Anchor';
6
7
  export { default as Android } from './Android';
7
8
  export { default as App } from './App';
@@ -0,0 +1,14 @@
1
+ import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
2
+
3
+ const Agent = forwardRef<IconProps, 'svg'>((props, ref) => (
4
+ <Icon ref={ref} viewBox="0 0 24 24" {...props}>
5
+ <path
6
+ fill="currentColor"
7
+ fillRule="evenodd"
8
+ d="M20 4H4V9H20V4ZM20 15H4V20H20V15ZM4 2C2.89543 2 2 2.89543 2 4V9C2 10.1046 2.89543 11 4 11H20C21.1046 11 22 10.1046 22 9V4C22 2.89543 21.1046 2 20 2H4ZM4 13C2.89543 13 2 13.8954 2 15V20C2 21.1046 2.89543 22 4 22H20C21.1046 22 22 21.1046 22 20V15C22 13.8954 21.1046 13 20 13H4Z"
9
+ clipRule="evenodd"
10
+ />
11
+ </Icon>
12
+ ));
13
+
14
+ export default Agent;
@@ -2,6 +2,7 @@ export { default as AddonsTuorqouise } from './AddonsTuorqouise';
2
2
  export { default as AddonsViolet } from './AddonsViolet';
3
3
  export { default as AddonsWhite } from './AddonsWhite';
4
4
  export { default as Addons } from './Addons';
5
+ export { default as Agent } from './Agent';
5
6
  export { default as Anchor } from './Anchor';
6
7
  export { default as Android } from './Android';
7
8
  export { default as App } from './App';