@7shifts/sous-chef 3.81.1 → 3.83.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.
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { AccordionItem as AccordionItemType } from './types';
3
+ import { DataProps } from '../../foundation/types';
3
4
  type Props = {
4
5
  items: AccordionItemType[];
5
6
  onExpand?: (item: AccordionItemType) => void;
6
7
  defaultOpenId?: string;
7
- };
8
- declare const Accordion: (props: Props) => React.JSX.Element | null;
8
+ } & DataProps;
9
+ declare const Accordion: ({ items, onExpand, defaultOpenId, ...rest }: Props) => React.JSX.Element | null;
9
10
  export default Accordion;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { DataTableColumn, DataTableCustomComponent, DataTableEmptyState as DataTableEmptyStateType, DataTableItem, DataTableSort, StickyColumns } from './types';
3
- import type { DataProps } from '../../foundation/types';
3
+ import type { DataProps, PositionStyles } from '../../foundation/types';
4
4
  type Props<T> = {
5
5
  /** Each element represents a row and each key of the object represents a column */
6
6
  items: DataTableItem<T>[];
@@ -32,6 +32,6 @@ type Props<T> = {
32
32
  /** Used to make the left, rigth or both edge columns sticky */
33
33
  stickyColumns?: StickyColumns;
34
34
  emptyState?: DataTableEmptyStateType;
35
- } & DataProps;
36
- declare const DataTable: <T extends unknown>({ items, columns, itemComponent, maxHeight, hasPrevious, hasNext, onPreviousClick, onNextClick, onSort, isLoading, showActionMenu, footerComponent, hasVerticalBorders, testId, skeletonRowLayout, stickyColumns, emptyState, ...otherProps }: Props<T>) => React.JSX.Element;
35
+ } & DataProps & PositionStyles;
36
+ declare const DataTable: <T extends unknown>({ items, columns, itemComponent, maxHeight, hasPrevious, hasNext, onPreviousClick, onNextClick, onSort, isLoading, showActionMenu, footerComponent, hasVerticalBorders, testId, skeletonRowLayout, stickyColumns, emptyState, ...rest }: Props<T>) => React.JSX.Element;
37
37
  export default DataTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.81.1",
3
+ "version": "3.83.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -20,6 +20,8 @@
20
20
  "build-tokens": "./scripts/build-tokens.sh",
21
21
  "build-colors": "./scripts/tokens/build-colors.sh",
22
22
  "build-zindexes": "./scripts/tokens/build-z-indexes.sh",
23
+ "link-local": "./scripts/link-local.sh",
24
+ "unlink-local": "./scripts/unlink-local.sh",
23
25
  "test": "run-s test:unit test:lint test:build",
24
26
  "test:build": "yarn build --test",
25
27
  "test:lint": "eslint --ext .ts --ext .tsx .",
@@ -42,6 +44,7 @@
42
44
  "devDependencies": {
43
45
  "@babel/core": "^7.24.4",
44
46
  "@babel/preset-env": "^7.24.4",
47
+ "@storybook/addon-a11y": "^7.5.3",
45
48
  "@storybook/addon-essentials": "^7.5.3",
46
49
  "@storybook/addon-interactions": "^7.5.3",
47
50
  "@storybook/addon-links": "^7.5.3",