@7shifts/sous-chef 2.17.1 → 2.17.2

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.
Files changed (65) hide show
  1. package/dist/core/DataTable/DataTable.d.ts +1 -3
  2. package/dist/core/DataTable/types.d.ts +7 -3
  3. package/dist/core/DataTableEditableCell/DataTableEditableCell.d.ts +1 -2
  4. package/dist/core/DataTableRow/DataTableRow.d.ts +1 -1
  5. package/dist/core/Flex/Flex.d.ts +0 -2
  6. package/dist/core/Inline/Inline.d.ts +0 -1
  7. package/dist/core/Stack/Stack.d.ts +0 -1
  8. package/dist/index.css +545 -960
  9. package/dist/index.d.ts +2 -1
  10. package/dist/index.js +10 -10
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.modern.js +10 -10
  13. package/dist/index.modern.js.map +1 -1
  14. package/dist/layout/Card/Card.d.ts +2 -2
  15. package/dist/layout/Flex/Flex.d.ts +21 -0
  16. package/dist/layout/Flex/index.d.ts +1 -0
  17. package/dist/layout/Flex/types.d.ts +4 -0
  18. package/dist/layout/Inline/Inline.d.ts +21 -0
  19. package/dist/layout/Inline/index.d.ts +1 -0
  20. package/dist/layout/Stack/Stack.d.ts +20 -0
  21. package/dist/layout/Stack/index.d.ts +1 -0
  22. package/dist/layout/index.d.ts +4 -1
  23. package/dist/lists/DataTable/DataTable.d.ts +31 -0
  24. package/dist/lists/DataTable/DataTableCell/DataTableCell.d.ts +7 -0
  25. package/dist/lists/DataTable/DataTableCell/index.d.ts +1 -0
  26. package/dist/lists/DataTable/DataTableContext.d.ts +11 -0
  27. package/dist/lists/DataTable/DataTableHeader.d.ts +9 -0
  28. package/dist/lists/DataTable/index.d.ts +1 -0
  29. package/dist/lists/DataTable/types.d.ts +34 -0
  30. package/dist/lists/DataTableEditableCell/DataTableEditableCell.d.ts +22 -0
  31. package/dist/lists/DataTableEditableCell/index.d.ts +1 -0
  32. package/dist/lists/DataTableRow/DataTableRow.d.ts +11 -0
  33. package/dist/lists/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
  34. package/dist/lists/DataTableRow/DataTableRowActions/index.d.ts +1 -0
  35. package/dist/lists/DataTableRow/index.d.ts +1 -0
  36. package/dist/lists/ResourceTable/ResourceTable.d.ts +28 -0
  37. package/dist/lists/ResourceTable/ResourceTableContext.d.ts +8 -0
  38. package/dist/lists/ResourceTable/ResourceTableHeader.d.ts +12 -0
  39. package/dist/lists/ResourceTable/index.d.ts +1 -0
  40. package/dist/lists/ResourceTable/types.d.ts +26 -0
  41. package/dist/lists/ResourceTableRow/ResourceTableRow.d.ts +13 -0
  42. package/dist/lists/ResourceTableRow/index.d.ts +1 -0
  43. package/dist/lists/index.d.ts +9 -0
  44. package/package.json +1 -1
  45. package/dist/icons/IconArrowDown.d.ts +0 -11
  46. package/dist/icons/IconArrowLeft.d.ts +0 -9
  47. package/dist/icons/IconArrowRight.d.ts +0 -9
  48. package/dist/icons/IconArrowUp.d.ts +0 -9
  49. package/dist/icons/IconCalendar.d.ts +0 -9
  50. package/dist/icons/IconCheck.d.ts +0 -9
  51. package/dist/icons/IconChevronDown.d.ts +0 -9
  52. package/dist/icons/IconChevronUp.d.ts +0 -8
  53. package/dist/icons/IconClose.d.ts +0 -9
  54. package/dist/icons/IconComment.d.ts +0 -9
  55. package/dist/icons/IconDelete.d.ts +0 -9
  56. package/dist/icons/IconEdit.d.ts +0 -9
  57. package/dist/icons/IconExclaim.d.ts +0 -9
  58. package/dist/icons/IconEye.d.ts +0 -9
  59. package/dist/icons/IconEyeSlash.d.ts +0 -9
  60. package/dist/icons/IconLocation.d.ts +0 -9
  61. package/dist/icons/IconMinusCircle.d.ts +0 -9
  62. package/dist/icons/IconMore.d.ts +0 -9
  63. package/dist/icons/IconRemove.d.ts +0 -8
  64. package/dist/icons/IconUser.d.ts +0 -8
  65. package/dist/icons/IconUserPlus.d.ts +0 -9
@@ -24,8 +24,6 @@ declare type Props<T> = {
24
24
  footerComponent?: React.ReactNode;
25
25
  /** Will render vertical borders between columns if true */
26
26
  hasVerticalBorders?: boolean;
27
- /** Used to override the default data-testid */
28
- testId?: string;
29
27
  };
30
- declare const DataTable: <T extends unknown>({ items, columns, itemComponent, maxHeight, hasPrevious, hasNext, onPreviousClick, onNextClick, onSort, isLoading, showActionMenu, footerComponent, hasVerticalBorders, testId }: Props<T>) => JSX.Element;
28
+ declare const DataTable: <T extends unknown>({ items, columns, itemComponent, maxHeight, hasPrevious, hasNext, onPreviousClick, onNextClick, onSort, isLoading, showActionMenu, footerComponent, hasVerticalBorders }: Props<T>) => JSX.Element;
31
29
  export default DataTable;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import Button from '../../actions/Button/Button';
3
- import { MenuAction } from '../../overlay/Menu/types';
4
3
  export declare type Column = {
5
4
  name: string;
6
5
  label?: React.ReactNode;
@@ -23,12 +22,17 @@ export declare type CustomComponent<T> = {
23
22
  columnSizes?: number[];
24
23
  columns?: Column[];
25
24
  };
25
+ declare type BaseAction = {
26
+ action?: string;
27
+ label: React.ReactNode;
28
+ onAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
29
+ };
26
30
  declare type KebabAction = {
27
31
  showInKebab?: true;
28
- } & MenuAction;
32
+ } & BaseAction;
29
33
  declare type ButtonAction = {
30
34
  buttonProps?: Pick<React.ComponentPropsWithoutRef<typeof Button>, 'theme' | 'disabled' | 'loading' | 'title'>;
31
35
  showInKebab: false;
32
- } & MenuAction;
36
+ } & BaseAction;
33
37
  export declare type Action = KebabAction | ButtonAction;
34
38
  export {};
@@ -16,7 +16,6 @@ declare type Props = {
16
16
  suffix?: React.ReactNode;
17
17
  defaultValue?: string;
18
18
  type?: 'text' | 'currency';
19
- testId?: string;
20
19
  };
21
- declare const DataTableEditableCell: ({ name, columnIndex, rowIndex, id: inputId, value, onChange, onBlur, placeholder, disabled, error, prefix, suffix, defaultValue, type, testId }: Props) => JSX.Element;
20
+ declare const DataTableEditableCell: ({ name, columnIndex, rowIndex, id: inputId, value, onChange, onBlur, placeholder, disabled, error, prefix, suffix, defaultValue, type }: Props) => JSX.Element;
22
21
  export default DataTableEditableCell;
@@ -7,5 +7,5 @@ declare type Props = {
7
7
  actions?: Action[];
8
8
  hasDefaultPadding?: boolean;
9
9
  } & Omit<React.HTMLProps<HTMLDivElement>, 'css'>;
10
- declare const DataTableRow: React.ForwardRefExoticComponent<Pick<Props, "children" | "type" | "default" | "disabled" | "onClick" | "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" | "onKeyDown" | "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" | "contextMenu" | "list" | "start" | "wrap" | "dir" | "checked" | "value" | "placeholder" | "prefix" | "content" | "translate" | "hidden" | "open" | "multiple" | "autoFocus" | "defaultValue" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "isSelected" | "actions" | "hasDefaultPadding"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const DataTableRow: React.ForwardRefExoticComponent<Pick<Props, "children" | "type" | "default" | "disabled" | "onClick" | "id" | "title" | "href" | "target" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "pattern" | "key" | "contextMenu" | "list" | "className" | "start" | "wrap" | "dir" | "checked" | "onChange" | "name" | "value" | "onBlur" | "placeholder" | "prefix" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "size" | "open" | "multiple" | "aria-label" | "aria-labelledby" | "autoFocus" | "onFocus" | "onKeyDown" | "tabIndex" | "defaultValue" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "lang" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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-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" | "onFocusCapture" | "onBlurCapture" | "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" | "isSelected" | "actions" | "hasDefaultPadding"> & React.RefAttributes<HTMLDivElement>>;
11
11
  export default DataTableRow;
@@ -11,8 +11,6 @@ declare type Props = {
11
11
  direction?: 'row' | 'column';
12
12
  flexItems?: boolean;
13
13
  flexWrap?: FlexWrap;
14
- testId?: string;
15
- extraClass?: string;
16
14
  };
17
15
  /**
18
16
  * Flex is a internal component used by Stack and Inline. DON'T use this component outside of Sous Chef
@@ -12,7 +12,6 @@ declare type Props = {
12
12
  justifyContent?: JustifyContent;
13
13
  inlineFlex?: boolean;
14
14
  flexWrap?: FlexWrap;
15
- testId?: string;
16
15
  };
17
16
  /**
18
17
  * Layout component to easily line elements up in a row.
@@ -11,7 +11,6 @@ declare type Props = {
11
11
  /** One of: `start`, `end`, `center`, `space-between` */
12
12
  justifyContent?: JustifyContent;
13
13
  flexItems?: boolean;
14
- testId?: string;
15
14
  };
16
15
  /**
17
16
  * Layout component to easily stack elements up in a column.