@7shifts/sous-chef 3.96.0 → 3.97.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.
@@ -5,7 +5,7 @@ type Props = {
5
5
  trigger: React.ReactElement & RefAttributes<unknown>;
6
6
  width?: number;
7
7
  maxHeight?: number;
8
- /** @deprecated the default behaviour to trigger the dropdown menu will be CLICK. The HOVER will be removed on the next major release */
8
+ /** Prefer using `triggersOn="click"` instead of `triggersOn="hover"` */
9
9
  triggersOn?: DropdownTrigger;
10
10
  alignment?: DropdownAlignment;
11
11
  testId?: string;
@@ -0,0 +1,18 @@
1
+ import { RefAttributes } from 'react';
2
+ import { ZIndex } from '../../foundation/tokens/zindex/z-index-types';
3
+ import { DropdownAlignment, DropdownTrigger } from '../Dropdown/types';
4
+ import React from 'react';
5
+ type Props = {
6
+ trigger: React.ReactElement & RefAttributes<unknown>;
7
+ width?: number;
8
+ maxHeight?: number;
9
+ triggersOn?: DropdownTrigger;
10
+ alignment?: DropdownAlignment;
11
+ testId?: string;
12
+ children: React.ReactNode;
13
+ triggerWidth?: 'full' | 'restricted';
14
+ /** Sets the z-index of the dropdown menu pane */
15
+ zIndex?: number | ZIndex;
16
+ };
17
+ declare const Popover: (props: Props) => React.JSX.Element;
18
+ export default Popover;
@@ -0,0 +1 @@
1
+ export { default } from './Popover';
@@ -9,4 +9,5 @@ import DropdownListDivider from './DropdownListDivider';
9
9
  import DropdownListItem from './DropdownListItem';
10
10
  import DropdownListItemSelectable from './DropdownListItemSelectable';
11
11
  import HintModal from './HintModal';
12
- export { Tooltip, Modal, ModalBody, ModalFooter, Calendar, Dropdown, DropdownList, DropdownListDivider, DropdownListItem, DropdownListItemSelectable, HintModal };
12
+ import Popover from './Popover';
13
+ export { Tooltip, Modal, ModalBody, ModalFooter, Calendar, Dropdown, DropdownList, DropdownListDivider, DropdownListItem, DropdownListItemSelectable, HintModal, Popover };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.96.0",
3
+ "version": "3.97.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",