@7shifts/sous-chef 2.18.0 → 3.0.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/README.md +2 -2
- package/dist/actions/Button/Button.d.ts +0 -4
- package/dist/controls/DateFilter/DateStepper/DateStepper.d.ts +11 -0
- package/dist/controls/DateFilter/DateStepper/index.d.ts +1 -0
- package/dist/controls/DateFilter/DateText/DateText.d.ts +9 -0
- package/dist/controls/DateFilter/DateText/index.d.ts +1 -0
- package/dist/controls/DateFilter/DisplayDate/DisplayDate.d.ts +9 -0
- package/dist/controls/DateFilter/DisplayDate/index.d.ts +1 -0
- package/dist/controls/SegmentedControl/SegmentedControl.d.ts +8 -0
- package/dist/controls/SegmentedControl/index.d.ts +1 -0
- package/dist/controls/index.d.ts +2 -1
- package/dist/feedback/CircularProgress/CircularProgress.d.ts +9 -0
- package/dist/feedback/CircularProgress/index.d.ts +1 -0
- package/dist/feedback/Progress/domain.d.ts +11 -0
- package/dist/feedback/Progress/useProgress.d.ts +18 -0
- package/dist/feedback/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/feedback/ProgressBar/index.d.ts +1 -0
- package/dist/feedback/index.d.ts +3 -1
- package/dist/forms/AffixContainer/AffixContainer.d.ts +1 -0
- package/dist/forms/DateRangeField/FromDate/FromDate.d.ts +2 -1
- package/dist/forms/DateRangeField/ToDate/ToDate.d.ts +1 -0
- package/dist/forms/ErrorMessage/ErrorMessage.d.ts +1 -0
- package/dist/forms/FormFeedback/FormFeedback.d.ts +8 -0
- package/dist/forms/FormFeedback/index.d.ts +1 -0
- package/dist/forms/FormFooter/FormFooter.d.ts +12 -0
- package/dist/forms/FormFooter/FormFooterActions/FormFooterActions.d.ts +10 -0
- package/dist/forms/FormFooter/domain.d.ts +2 -0
- package/dist/forms/FormFooter/index.d.ts +1 -0
- package/dist/forms/FormSection/FormSection.d.ts +10 -0
- package/dist/forms/FormSection/index.d.ts +1 -0
- package/dist/forms/TextField/useTextField.d.ts +1 -1
- package/dist/forms/index.d.ts +4 -1
- package/dist/icons/components/IconAnalytics.d.ts +1 -4
- package/dist/icons/components/IconArrowDown.d.ts +1 -4
- package/dist/icons/components/IconArrowLeft.d.ts +1 -4
- package/dist/icons/components/IconArrowRight.d.ts +1 -4
- package/dist/icons/components/IconArrowToTop.d.ts +1 -4
- package/dist/icons/components/IconArrowUp.d.ts +1 -4
- package/dist/icons/components/IconAward.d.ts +1 -4
- package/dist/icons/components/IconAwful.d.ts +9 -0
- package/dist/icons/components/IconAwfulMonochromatic.d.ts +9 -0
- package/dist/icons/components/IconBad.d.ts +9 -0
- package/dist/icons/components/IconBadMonochromatic.d.ts +9 -0
- package/dist/icons/components/IconBalanceScale.d.ts +1 -4
- package/dist/icons/components/IconBalanceScaleLeft.d.ts +1 -4
- package/dist/icons/components/IconBan.d.ts +1 -4
- package/dist/icons/components/IconBarsH.d.ts +1 -4
- package/dist/icons/components/IconBarsV.d.ts +1 -4
- package/dist/icons/components/IconBell.d.ts +1 -4
- package/dist/icons/components/IconBirthdayCake.d.ts +1 -4
- package/dist/icons/components/IconBold.d.ts +1 -4
- package/dist/icons/components/IconBolt.d.ts +1 -4
- package/dist/icons/components/IconBook.d.ts +1 -4
- package/dist/icons/components/IconBriefcase.d.ts +1 -4
- package/dist/icons/components/IconBullseyeArrow.d.ts +1 -4
- package/dist/icons/components/IconCalculator.d.ts +1 -4
- package/dist/icons/components/IconCalendar.d.ts +1 -4
- package/dist/icons/components/IconCalendarAlt.d.ts +1 -4
- package/dist/icons/components/IconCalendarCheck.d.ts +1 -4
- package/dist/icons/components/IconCalendarDay.d.ts +1 -4
- package/dist/icons/components/IconCalendarExclamation.d.ts +1 -4
- package/dist/icons/components/IconCalendarStar.d.ts +1 -4
- package/dist/icons/components/IconCalendarTomorrow.d.ts +1 -4
- package/dist/icons/components/IconCamera.d.ts +1 -4
- package/dist/icons/components/IconCameraSlash.d.ts +1 -4
- package/dist/icons/components/IconCashRegister.d.ts +1 -4
- package/dist/icons/components/IconChartBar.d.ts +1 -4
- package/dist/icons/components/IconCheck.d.ts +1 -4
- package/dist/icons/components/IconChevronDown.d.ts +1 -4
- package/dist/icons/components/IconChevronLeft.d.ts +1 -4
- package/dist/icons/components/IconChevronRight.d.ts +1 -4
- package/dist/icons/components/IconChevronUp.d.ts +1 -4
- package/dist/icons/components/IconClipboardList.d.ts +1 -4
- package/dist/icons/components/IconClock.d.ts +1 -4
- package/dist/icons/components/IconCog.d.ts +1 -4
- package/dist/icons/components/IconComment.d.ts +1 -4
- package/dist/icons/components/IconCommentLines.d.ts +1 -4
- package/dist/icons/components/IconCopy.d.ts +1 -4
- package/dist/icons/components/IconCreditCard.d.ts +1 -4
- package/dist/icons/components/IconCreditCardPlus.d.ts +1 -4
- package/dist/icons/components/IconDecent.d.ts +9 -0
- package/dist/icons/components/IconDecentMonochromatic.d.ts +9 -0
- package/dist/icons/components/IconDownload.d.ts +1 -4
- package/dist/icons/components/IconEdit.d.ts +1 -4
- package/dist/icons/components/IconEllipsisV.d.ts +1 -4
- package/dist/icons/components/IconEnvelope.d.ts +1 -4
- package/dist/icons/components/IconExclaimation.d.ts +1 -4
- package/dist/icons/components/IconExclaimationTriangle.d.ts +1 -4
- package/dist/icons/components/IconExpand.d.ts +1 -4
- package/dist/icons/components/IconExternalLink.d.ts +1 -4
- package/dist/icons/components/IconEye.d.ts +1 -4
- package/dist/icons/components/IconEyeSlash.d.ts +1 -4
- package/dist/icons/components/IconFile.d.ts +1 -4
- package/dist/icons/components/IconFilePdf.d.ts +1 -4
- package/dist/icons/components/IconFlag.d.ts +1 -4
- package/dist/icons/components/IconFourDotsCircle.d.ts +1 -4
- package/dist/icons/components/IconFourSquares.d.ts +1 -4
- package/dist/icons/components/IconGavel.d.ts +1 -4
- package/dist/icons/components/IconGif.d.ts +1 -4
- package/dist/icons/components/IconGift.d.ts +1 -4
- package/dist/icons/components/IconGood.d.ts +9 -0
- package/dist/icons/components/IconGoodMonochromatic.d.ts +9 -0
- package/dist/icons/components/IconGreat.d.ts +9 -0
- package/dist/icons/components/IconGreatMonochromatic.d.ts +9 -0
- package/dist/icons/components/IconGrinBeam.d.ts +1 -4
- package/dist/icons/components/IconGripVertical.d.ts +1 -4
- package/dist/icons/components/IconHandshake.d.ts +1 -4
- package/dist/icons/components/IconImage.d.ts +1 -4
- package/dist/icons/components/IconInfoCircle.d.ts +1 -4
- package/dist/icons/components/IconIslandTropical.d.ts +1 -4
- package/dist/icons/components/IconItalic.d.ts +1 -4
- package/dist/icons/components/IconLaptopSearch.d.ts +1 -4
- package/dist/icons/components/IconLink.d.ts +1 -4
- package/dist/icons/components/IconList.d.ts +1 -4
- package/dist/icons/components/IconListOI.d.ts +1 -4
- package/dist/icons/components/IconLock.d.ts +1 -4
- package/dist/icons/components/IconMagicSolid.d.ts +1 -4
- package/dist/icons/components/IconMapMarker.d.ts +1 -4
- package/dist/icons/components/IconMegaphone.d.ts +1 -4
- package/dist/icons/components/IconMinus.d.ts +1 -4
- package/dist/icons/components/IconMinusCircle.d.ts +1 -4
- package/dist/icons/components/IconMoneyBill.d.ts +1 -4
- package/dist/icons/components/IconNotesMedical.d.ts +1 -4
- package/dist/icons/components/IconOvertime.d.ts +1 -4
- package/dist/icons/components/IconPaperPlane.d.ts +1 -4
- package/dist/icons/components/IconPaperPlaneClock.d.ts +1 -4
- package/dist/icons/components/IconPaperclip.d.ts +1 -4
- package/dist/icons/components/IconPencil.d.ts +1 -4
- package/dist/icons/components/IconPercentage.d.ts +1 -4
- package/dist/icons/components/IconPhone.d.ts +1 -4
- package/dist/icons/components/IconPlug.d.ts +1 -4
- package/dist/icons/components/IconPlus.d.ts +1 -4
- package/dist/icons/components/IconPrint.d.ts +1 -4
- package/dist/icons/components/IconQuestionCircle.d.ts +1 -4
- package/dist/icons/components/IconRepeat.d.ts +1 -4
- package/dist/icons/components/IconReply.d.ts +1 -4
- package/dist/icons/components/IconSearch.d.ts +1 -4
- package/dist/icons/components/IconSignOut.d.ts +1 -4
- package/dist/icons/components/IconSitemap.d.ts +1 -4
- package/dist/icons/components/IconSlidersH.d.ts +1 -4
- package/dist/icons/components/IconSort.d.ts +1 -4
- package/dist/icons/components/IconStar.d.ts +1 -4
- package/dist/icons/components/IconStarSolid.d.ts +1 -4
- package/dist/icons/components/IconStickyNoteLines.d.ts +1 -4
- package/dist/icons/components/IconStopwatch.d.ts +1 -4
- package/dist/icons/components/IconStrikethrough.d.ts +1 -4
- package/dist/icons/components/IconSync.d.ts +1 -4
- package/dist/icons/components/IconSyncExclaimation.d.ts +1 -4
- package/dist/icons/components/IconTachometer.d.ts +1 -4
- package/dist/icons/components/IconTimes.d.ts +1 -4
- package/dist/icons/components/IconTimesOctagon.d.ts +1 -4
- package/dist/icons/components/IconTrash.d.ts +1 -4
- package/dist/icons/components/IconUnderline.d.ts +1 -4
- package/dist/icons/components/IconUndo.d.ts +1 -4
- package/dist/icons/components/IconUniversity.d.ts +1 -4
- package/dist/icons/components/IconUserComputer.d.ts +1 -4
- package/dist/icons/components/IconUserFriends.d.ts +1 -4
- package/dist/icons/components/IconUserLight.d.ts +1 -4
- package/dist/icons/components/IconUserPlus.d.ts +1 -4
- package/dist/icons/components/IconUserSlash.d.ts +1 -4
- package/dist/icons/components/IconUserSolid.d.ts +1 -4
- package/dist/icons/components/IconUserTag.d.ts +1 -4
- package/dist/icons/components/IconUserTie.d.ts +1 -4
- package/dist/icons/components/IconUsers.d.ts +1 -4
- package/dist/icons/components/IconVideo.d.ts +1 -4
- package/dist/icons/components/IconVolume.d.ts +1 -4
- package/dist/icons/components/IconVolumeMute.d.ts +1 -4
- package/dist/icons/components/IconWrench.d.ts +1 -4
- package/dist/icons/components/index.d.ts +10 -0
- package/dist/index.css +233 -180
- package/dist/index.js +1680 -1389
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1665 -1388
- package/dist/index.modern.js.map +1 -1
- package/dist/layout/Flex/Flex.d.ts +2 -2
- package/dist/layout/Flex/types.d.ts +4 -0
- package/dist/layout/Inline/Inline.d.ts +3 -3
- package/dist/layout/Stack/Stack.d.ts +3 -3
- package/dist/lists/DataTable/DataTable.d.ts +5 -5
- package/dist/lists/DataTable/DataTableContext.d.ts +2 -2
- package/dist/lists/DataTable/DataTableHeader.d.ts +3 -3
- package/dist/lists/DataTable/types.d.ts +12 -11
- package/dist/lists/DataTableRow/DataTableRow.d.ts +4 -3
- package/dist/lists/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +2 -2
- package/dist/lists/index.d.ts +2 -5
- package/dist/overlay/Menu/Menu.d.ts +0 -1
- package/dist/overlay/Menu/types.d.ts +1 -1
- package/package.json +14 -9
- package/dist/icons/IconArrowDown.d.ts +0 -11
- package/dist/icons/IconArrowLeft.d.ts +0 -9
- package/dist/icons/IconArrowRight.d.ts +0 -9
- package/dist/icons/IconArrowUp.d.ts +0 -9
- package/dist/icons/IconCalendar.d.ts +0 -9
- package/dist/icons/IconCheck.d.ts +0 -9
- package/dist/icons/IconChevronDown.d.ts +0 -9
- package/dist/icons/IconChevronUp.d.ts +0 -8
- package/dist/icons/IconClose.d.ts +0 -9
- package/dist/icons/IconComment.d.ts +0 -9
- package/dist/icons/IconDelete.d.ts +0 -9
- package/dist/icons/IconEdit.d.ts +0 -9
- package/dist/icons/IconExclaim.d.ts +0 -9
- package/dist/icons/IconEye.d.ts +0 -9
- package/dist/icons/IconEyeSlash.d.ts +0 -9
- package/dist/icons/IconLocation.d.ts +0 -9
- package/dist/icons/IconMinusCircle.d.ts +0 -9
- package/dist/icons/IconMore.d.ts +0 -9
- package/dist/icons/IconRemove.d.ts +0 -8
- package/dist/icons/IconUser.d.ts +0 -8
- package/dist/icons/IconUserPlus.d.ts +0 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AlignItems, FlexWrap, JustifyContent, Space } from './types';
|
|
2
|
+
import type { AlignItems, FlexWrap, JustifyContent, Space, SpaceConfig } from './types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
space?: Space;
|
|
5
|
+
space?: Space | SpaceConfig;
|
|
6
6
|
/** It sets how each item will grow or shrink to fit the space available in its flex container. The default value is `0 1 auto` but it can be overriden. Check it out this [official doc](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) to see all the possible values. */
|
|
7
7
|
flex?: (string | number)[];
|
|
8
8
|
alignItems?: AlignItems;
|
|
@@ -2,3 +2,7 @@ export declare type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch
|
|
|
2
2
|
export declare type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
3
3
|
export declare type JustifyContent = 'start' | 'end' | 'center' | 'space-between';
|
|
4
4
|
export declare type Space = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60;
|
|
5
|
+
export declare type SpaceConfig = {
|
|
6
|
+
row: Space;
|
|
7
|
+
column: Space;
|
|
8
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AlignItems, FlexWrap, JustifyContent, Space } from '../Flex/types';
|
|
2
|
+
import type { AlignItems, FlexWrap, JustifyContent, Space, SpaceConfig } from '../Flex/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
/** From `0` to `60` with multiples of `4`, eg. `8`, `12`, `16` and so on. */
|
|
6
|
-
space?: Space;
|
|
5
|
+
/** From `0` to `60` with multiples of `4`, eg. `8`, `12`, `16` and so on. Can also be an object containig the space for the row and the column. */
|
|
6
|
+
space?: Space | SpaceConfig;
|
|
7
7
|
/** It sets how each item will grow or shrink to fit the space available in its flex container. The default value is `0 1 auto` but it can be overriden. Check it out this [official doc](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) to see all the possible values. */
|
|
8
8
|
flex?: (string | number)[];
|
|
9
9
|
/** One of: `flex-start`, `flex-end`, `center`, `stretch` */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { JustifyContent, Space, AlignItems } from '../Flex/types';
|
|
2
|
+
import type { JustifyContent, Space, AlignItems, SpaceConfig } from '../Flex/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
/** From `0` to `60` with multiples of `4`, eg. `8`, `12`, `16` and so on. */
|
|
6
|
-
space?: Space;
|
|
5
|
+
/** From `0` to `60` with multiples of `4`, eg. `8`, `12`, `16` and so on. Can also be an object (for example `{ row: 4, column: 8 }`) containig the space for the row and the column. */
|
|
6
|
+
space?: Space | SpaceConfig;
|
|
7
7
|
/** It sets how each item will grow or shrink to fit the space available in its flex container. The default value is `0 1 auto` but it can be overriden. Check it out this [official doc](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) to see all the possible values. */
|
|
8
8
|
flex?: (string | number)[];
|
|
9
9
|
/** One of: `flex-start`, `flex-end`, `center`, `stretch` */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataTableColumn, DataTableCustomComponent, DataTableItem, DataTableSort } from './types';
|
|
3
3
|
declare type Props<T> = {
|
|
4
4
|
/** Each element represents a row and each key of the object represents a column */
|
|
5
|
-
items:
|
|
5
|
+
items: DataTableItem<T>[];
|
|
6
6
|
/** For each column element, the `name` property should match the key on `items` */
|
|
7
|
-
columns?:
|
|
7
|
+
columns?: DataTableColumn[];
|
|
8
8
|
/** A custom component for customizing how the each item is rendered. It pass as props: `item`, `index`, `columnSizes` and `columns` */
|
|
9
|
-
itemComponent?: React.ComponentType<
|
|
9
|
+
itemComponent?: React.ComponentType<DataTableCustomComponent<T>>;
|
|
10
10
|
maxHeight?: number;
|
|
11
11
|
/** Used for pagination */
|
|
12
12
|
hasPrevious?: boolean;
|
|
@@ -18,7 +18,7 @@ declare type Props<T> = {
|
|
|
18
18
|
onNextClick?: () => void;
|
|
19
19
|
isLoading?: boolean;
|
|
20
20
|
/** It is fired when a sorted column is clicked to be sorted */
|
|
21
|
-
onSort?: (sort:
|
|
21
|
+
onSort?: (sort: DataTableSort) => void;
|
|
22
22
|
showActionMenu?: boolean;
|
|
23
23
|
/** Will render footer component if not null - expects a custom RowItem component */
|
|
24
24
|
footerComponent?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataTableColumn } from './types';
|
|
3
3
|
export declare type DataTableContextType = {
|
|
4
|
-
columns?:
|
|
4
|
+
columns?: DataTableColumn[];
|
|
5
5
|
showActionMenu?: boolean;
|
|
6
6
|
numberOfRows: number;
|
|
7
7
|
hasVerticalBorders?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataTableColumn, DataTableSort } from './types';
|
|
3
3
|
declare type Props = {
|
|
4
|
-
columns:
|
|
5
|
-
onSort?: (sort:
|
|
4
|
+
columns: DataTableColumn[];
|
|
5
|
+
onSort?: (sort: DataTableSort) => void;
|
|
6
6
|
showActionMenu?: boolean;
|
|
7
7
|
};
|
|
8
8
|
declare const DataTableHeader: React.FC<Props>;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Button from '../../actions/Button/Button';
|
|
3
3
|
import { MenuAction } from '../../overlay/Menu/types';
|
|
4
|
-
export declare type
|
|
4
|
+
export declare type DataTableColumn = {
|
|
5
5
|
name: string;
|
|
6
6
|
label?: React.ReactNode;
|
|
7
7
|
size?: number;
|
|
8
8
|
isSortable?: boolean;
|
|
9
|
-
currentSort?:
|
|
9
|
+
currentSort?: DataTableSortDirection;
|
|
10
10
|
isRightAligned?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare type
|
|
13
|
-
export declare type
|
|
12
|
+
export declare type DataTableSortDirection = 'asc' | 'desc' | null;
|
|
13
|
+
export declare type DataTableSort = {
|
|
14
14
|
columnName: string;
|
|
15
|
-
direction:
|
|
15
|
+
direction: DataTableSortDirection;
|
|
16
16
|
};
|
|
17
|
-
export declare type
|
|
18
|
-
actions?:
|
|
17
|
+
export declare type DataTableItem<T> = T | (T & {
|
|
18
|
+
actions?: DataTableAction[];
|
|
19
19
|
});
|
|
20
|
-
export declare type
|
|
21
|
-
item:
|
|
20
|
+
export declare type DataTableCustomComponent<T> = {
|
|
21
|
+
item: DataTableItem<T>;
|
|
22
22
|
index: number;
|
|
23
23
|
columnSizes?: number[];
|
|
24
|
-
columns?:
|
|
24
|
+
columns?: DataTableColumn[];
|
|
25
|
+
testId?: string;
|
|
25
26
|
};
|
|
26
27
|
declare type KebabAction = {
|
|
27
28
|
showInKebab?: true;
|
|
@@ -30,5 +31,5 @@ declare type ButtonAction = {
|
|
|
30
31
|
buttonProps?: Pick<React.ComponentPropsWithoutRef<typeof Button>, 'theme' | 'disabled' | 'loading' | 'title'>;
|
|
31
32
|
showInKebab: false;
|
|
32
33
|
} & MenuAction;
|
|
33
|
-
export declare type
|
|
34
|
+
export declare type DataTableAction = KebabAction | ButtonAction;
|
|
34
35
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataTableAction } from '../DataTable/types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
isSelected?: boolean;
|
|
7
|
-
actions?:
|
|
7
|
+
actions?: DataTableAction[];
|
|
8
8
|
hasDefaultPadding?: boolean;
|
|
9
|
+
testId?: string;
|
|
9
10
|
} & Omit<React.HTMLProps<HTMLDivElement>, 'css'>;
|
|
10
|
-
declare const DataTableRow: React.ForwardRefExoticComponent<Pick<Props, "children" | "type" | "default" | "disabled" | "onClick" | "onKeyDown" | "id" | "title" | "href" | "target" | "size" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "pattern" | "key" | "color" | "className" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
|
11
|
+
declare const DataTableRow: React.ForwardRefExoticComponent<Pick<Props, "children" | "type" | "default" | "disabled" | "onClick" | "onKeyDown" | "id" | "title" | "href" | "target" | "testId" | "size" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "pattern" | "key" | "color" | "className" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "contextMenu" | "start" | "wrap" | "dir" | "checked" | "value" | "placeholder" | "prefix" | "content" | "translate" | "hidden" | "open" | "multiple" | "autoFocus" | "defaultValue" | "draggable" | "autoComplete" | "maxLength" | "actions" | "isSelected" | "readOnly" | "required" | "sizes" | "htmlFor" | "step" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "mediaGroup" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "hasDefaultPadding"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export default DataTableRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataTableAction } from '../../DataTable/types';
|
|
2
2
|
declare type Props = {
|
|
3
|
-
actions:
|
|
3
|
+
actions: DataTableAction[];
|
|
4
4
|
};
|
|
5
5
|
declare const ActionsCell: ({ actions }: Props) => JSX.Element;
|
|
6
6
|
export default ActionsCell;
|
package/dist/lists/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import ResourceTable from './ResourceTable';
|
|
2
|
-
import ResourceTableRow from './ResourceTableRow';
|
|
3
1
|
import DataTable from './DataTable';
|
|
4
2
|
import DataTableRow from './DataTableRow';
|
|
5
3
|
import DataTableCell from './DataTable/DataTableCell/DataTableCell';
|
|
6
4
|
import DataTableEditableCell from './DataTableEditableCell';
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
9
|
-
export type { Column as DataTableColumn, CustomComponent as DataTableCustomComponent, Action } from './DataTable/types';
|
|
5
|
+
export { DataTable, DataTableRow, DataTableCell, DataTableEditableCell };
|
|
6
|
+
export type { DataTableColumn, DataTableCustomComponent, DataTableSortDirection, DataTableSort, DataTableAction } from './DataTable/types';
|
|
@@ -4,7 +4,6 @@ declare type Props = {
|
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* STATUS: IN DRAFT (Don't use this component yet)
|
|
7
|
-
* It is working to cover the ResourceTable actions menu but there are some functionalities pending such as `dividers` and `direction`.
|
|
8
7
|
*/
|
|
9
8
|
declare const Menu: React.FC<Props>;
|
|
10
9
|
export default Menu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7shifts/sous-chef",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "7shifts component library",
|
|
5
5
|
"author": "7shifts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,9 +26,11 @@
|
|
|
26
26
|
"test:unit": "cross-env CI=1 react-scripts test --colors --transformIgnorePatterns \"node_modules/(?!time-autocomplete)/\" --env=jest-environment-jsdom-sixteen --setupTestFrameworkScriptFile=./jestSetup.js",
|
|
27
27
|
"test:unit:coverage": "run-s \"test:unit --coverage --coveragePathIgnorePatterns .stories.tsx index.ts icon-typescript-template.js types.ts\"",
|
|
28
28
|
"test:watch": "react-scripts test --colors --transformIgnorePatterns \"node_modules/(?!time-autocomplete)/\" --env=jest-environment-jsdom-sixteen --setupTestFrameworkScriptFile=./jestSetup.js",
|
|
29
|
-
"test:visual": "chromatic --project-token=9226d55e4d56 --exit-zero-on-changes",
|
|
30
|
-
"storybook": "start-storybook -p 6006",
|
|
31
|
-
"storybook:
|
|
29
|
+
"test:visual": "chromatic --project-token=9226d55e4d56 --exit-zero-on-changes --build-script-name=storybook:chromatic:build",
|
|
30
|
+
"storybook": "start-storybook -p 6006 --loglevel info",
|
|
31
|
+
"storybook:chromatic": "start-storybook -p 6006",
|
|
32
|
+
"storybook:chromatic:build": "build-storybook -o ./.storybook/dist",
|
|
33
|
+
"storybook:build": "build-storybook -o ./.storybook/dist --loglevel info",
|
|
32
34
|
"new:component": "node ./scripts/new-component.js"
|
|
33
35
|
},
|
|
34
36
|
"peerDependencies": {
|
|
@@ -38,10 +40,13 @@
|
|
|
38
40
|
"devDependencies": {
|
|
39
41
|
"@babel/core": "^7.16.7",
|
|
40
42
|
"@babel/plugin-transform-regenerator": "^7.16.7",
|
|
41
|
-
"@storybook/addon-actions": "^6.
|
|
42
|
-
"@storybook/addon-essentials": "^6.
|
|
43
|
-
"@storybook/addon-
|
|
44
|
-
"@storybook/
|
|
43
|
+
"@storybook/addon-actions": "^6.5.15",
|
|
44
|
+
"@storybook/addon-essentials": "^6.5.15",
|
|
45
|
+
"@storybook/addon-interactions": "^6.5.15",
|
|
46
|
+
"@storybook/addon-links": "^6.5.15",
|
|
47
|
+
"@storybook/jest": "^0.0.10",
|
|
48
|
+
"@storybook/react": "^6.5.15",
|
|
49
|
+
"@storybook/testing-library": "^0.0.13",
|
|
45
50
|
"@svgr/cli": "^6.2.0",
|
|
46
51
|
"@testing-library/jest-dom": "^5.12.0",
|
|
47
52
|
"@testing-library/react": "^11.2.7",
|
|
@@ -91,7 +96,7 @@
|
|
|
91
96
|
"dist"
|
|
92
97
|
],
|
|
93
98
|
"dependencies": {
|
|
94
|
-
"classnames": "^2.3.
|
|
99
|
+
"classnames": "^2.3.2",
|
|
95
100
|
"date-fns": "2.29.3",
|
|
96
101
|
"lodash-es": "^4.17.15",
|
|
97
102
|
"react-day-picker": "^7.2.3",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Color } from '../foundation/colors';
|
|
3
|
-
import { IconSize } from './types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
size?: IconSize;
|
|
6
|
-
color?: Color;
|
|
7
|
-
rotate?: number;
|
|
8
|
-
dataTestId?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const IconArrowDown: React.FC<Props>;
|
|
11
|
-
export default IconArrowDown;
|
package/dist/icons/IconEdit.d.ts
DELETED
package/dist/icons/IconEye.d.ts
DELETED
package/dist/icons/IconMore.d.ts
DELETED
package/dist/icons/IconUser.d.ts
DELETED