@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.
- package/dist/core/DataTable/DataTable.d.ts +1 -3
- package/dist/core/DataTable/types.d.ts +7 -3
- package/dist/core/DataTableEditableCell/DataTableEditableCell.d.ts +1 -2
- package/dist/core/DataTableRow/DataTableRow.d.ts +1 -1
- package/dist/core/Flex/Flex.d.ts +0 -2
- package/dist/core/Inline/Inline.d.ts +0 -1
- package/dist/core/Stack/Stack.d.ts +0 -1
- package/dist/index.css +545 -960
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/layout/Card/Card.d.ts +2 -2
- package/dist/layout/Flex/Flex.d.ts +21 -0
- package/dist/layout/Flex/index.d.ts +1 -0
- package/dist/layout/Flex/types.d.ts +4 -0
- package/dist/layout/Inline/Inline.d.ts +21 -0
- package/dist/layout/Inline/index.d.ts +1 -0
- package/dist/layout/Stack/Stack.d.ts +20 -0
- package/dist/layout/Stack/index.d.ts +1 -0
- package/dist/layout/index.d.ts +4 -1
- package/dist/lists/DataTable/DataTable.d.ts +31 -0
- package/dist/lists/DataTable/DataTableCell/DataTableCell.d.ts +7 -0
- package/dist/lists/DataTable/DataTableCell/index.d.ts +1 -0
- package/dist/lists/DataTable/DataTableContext.d.ts +11 -0
- package/dist/lists/DataTable/DataTableHeader.d.ts +9 -0
- package/dist/lists/DataTable/index.d.ts +1 -0
- package/dist/lists/DataTable/types.d.ts +34 -0
- package/dist/lists/DataTableEditableCell/DataTableEditableCell.d.ts +22 -0
- package/dist/lists/DataTableEditableCell/index.d.ts +1 -0
- package/dist/lists/DataTableRow/DataTableRow.d.ts +11 -0
- package/dist/lists/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
- package/dist/lists/DataTableRow/DataTableRowActions/index.d.ts +1 -0
- package/dist/lists/DataTableRow/index.d.ts +1 -0
- package/dist/lists/ResourceTable/ResourceTable.d.ts +28 -0
- package/dist/lists/ResourceTable/ResourceTableContext.d.ts +8 -0
- package/dist/lists/ResourceTable/ResourceTableHeader.d.ts +12 -0
- package/dist/lists/ResourceTable/index.d.ts +1 -0
- package/dist/lists/ResourceTable/types.d.ts +26 -0
- package/dist/lists/ResourceTableRow/ResourceTableRow.d.ts +13 -0
- package/dist/lists/ResourceTableRow/index.d.ts +1 -0
- package/dist/lists/index.d.ts +9 -0
- package/package.json +1 -1
- 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
|
@@ -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
|
|
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
|
-
} &
|
|
32
|
+
} & BaseAction;
|
|
29
33
|
declare type ButtonAction = {
|
|
30
34
|
buttonProps?: Pick<React.ComponentPropsWithoutRef<typeof Button>, 'theme' | 'disabled' | 'loading' | 'title'>;
|
|
31
35
|
showInKebab: false;
|
|
32
|
-
} &
|
|
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
|
|
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" | "
|
|
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;
|
package/dist/core/Flex/Flex.d.ts
CHANGED
|
@@ -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
|