@bitrise/bitkit 12.88.0 → 12.90.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.88.0",
4
+ "version": "12.90.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -64,15 +64,15 @@
64
64
  "@storybook/react-webpack5": "^7.6.10",
65
65
  "@storybook/theming": "^7.6.10",
66
66
  "@testing-library/dom": "^9.3.4",
67
- "@testing-library/jest-dom": "^6.3.0",
67
+ "@testing-library/jest-dom": "^6.4.0",
68
68
  "@testing-library/react": "^14.1.2",
69
69
  "@testing-library/user-event": "^14.5.2",
70
70
  "@types/jest": "^29.5.11",
71
71
  "@types/luxon": "^3.4.2",
72
72
  "@types/react": "^18.2.48",
73
73
  "@types/react-dom": "^18.2.18",
74
- "@typescript-eslint/eslint-plugin": "^6.19.1",
75
- "@typescript-eslint/parser": "^6.19.1",
74
+ "@typescript-eslint/eslint-plugin": "^6.20.0",
75
+ "@typescript-eslint/parser": "^6.20.0",
76
76
  "axios": "^1.6.7",
77
77
  "eslint": "^8.56.0",
78
78
  "eslint-plugin-import": "^2.29.1",
@@ -1,13 +1,13 @@
1
1
  import { useCallback, useEffect, useMemo, useState } from 'react';
2
2
  import { DateTime } from 'luxon';
3
3
  import FocusLock from 'react-focus-lock';
4
+ import { PopoverAnchor } from '@chakra-ui/react';
4
5
  import { useObjectMemo } from '../../utils/utils';
5
6
  import Popover from '../Popover/Popover';
6
7
  import PopoverContent from '../Popover/PopoverContent';
7
8
  import Box from '../Box/Box';
8
9
  import useResponsive from '../../hooks/useResponsive';
9
10
  import Button from '../Button/Button';
10
- import PopoverTrigger from '../Popover/PopoverTrigger';
11
11
  import DatePickerMonth from './DatePickerMonth';
12
12
  import { DatePickerContext } from './DatePicker.context';
13
13
  import DatePickerMonthSelector from './DatePickerMonthSelector';
@@ -183,7 +183,7 @@ const DatePicker = (props: DatePickerProps) => {
183
183
 
184
184
  return (
185
185
  <Popover isLazy isOpen={visible} lazyBehavior="unmount" modifiers={[]} onClose={onClose}>
186
- <PopoverTrigger>{children}</PopoverTrigger>
186
+ <PopoverAnchor>{children}</PopoverAnchor>
187
187
  <PopoverContent aria-label="select date range">
188
188
  <FocusLock returnFocus>
189
189
  <DatePickerContext value={ctx}>
@@ -4,10 +4,14 @@ const Duplicate = forwardRef<IconProps, 'svg'>((props, ref) => (
4
4
  <Icon ref={ref} viewBox="0 0 16 16" {...props}>
5
5
  <path
6
6
  clipRule="evenodd"
7
- d="M12 12v.667a2 2 0 0 1-2 2H3.333a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2H4v-.667a2 2 0 0 1 2-2h6.667a2 2 0 0 1 2 2V10a2 2 0 0 1-2 2H12Zm-1.333 0H6a2 2 0 0 1-2-2V5.333h-.667A.667.667 0 0 0 2.667 6v6.667c0 .368.298.666.666.666H10a.667.667 0 0 0 .667-.666V12ZM6 2.667a.667.667 0 0 0-.667.666V10c0 .368.299.667.667.667h6.667a.667.667 0 0 0 .666-.667V3.333a.667.667 0 0 0-.666-.666H6Z"
7
+ d="M11 13.5C11 14.3284 10.3284 15 9.5 15H2.5C1.67157 15 1 14.3284 1 13.5V6.5C1 5.67157 1.67157 5 2.5 5H9.5C10.3284 5 11 5.67157 11 6.5V13.5ZM9.5 13.5H2.5V6.5H9.5V13.5Z"
8
8
  fill="currentColor"
9
9
  fillRule="evenodd"
10
10
  />
11
+ <path
12
+ d="M13.5 11H12V9.5H13.5V2.5H6.5V4H5V2.5C5 1.67157 5.67157 1 6.5 1H13.5C14.3284 1 15 1.67157 15 2.5V9.5C15 10.3284 14.3284 11 13.5 11Z"
13
+ fill="currentColor"
14
+ />
11
15
  </Icon>
12
16
  ));
13
17
 
@@ -4,10 +4,14 @@ const Duplicate = forwardRef<IconProps, 'svg'>((props, ref) => (
4
4
  <Icon ref={ref} viewBox="0 0 24 24" {...props}>
5
5
  <path
6
6
  clipRule="evenodd"
7
- d="M18 18v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h1V5a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-1Zm-2 0H9a3 3 0 0 1-3-3V8H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1ZM9 4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H9Z"
7
+ d="M17 20C17 21.1046 16.1046 22 15 22H4C2.89543 22 2 21.1046 2 20V9C2 7.89543 2.89543 7 4 7H15C16.1046 7 17 7.89543 17 9V20ZM15 20H4V9H15V20Z"
8
8
  fill="currentColor"
9
9
  fillRule="evenodd"
10
10
  />
11
+ <path
12
+ d="M19.8571 17H18V14.8571H19.8571V4.14286H9.14286V6H7V4.14286C7 2.95939 7.95939 2 9.14286 2H19.8571C21.0406 2 22 2.95939 22 4.14286V14.8571C22 16.0406 21.0406 17 19.8571 17Z"
13
+ fill="currentColor"
14
+ />
11
15
  </Icon>
12
16
  ));
13
17