@7shifts/sous-chef 2.15.9 → 2.16.1
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/actions/Button/Button.d.ts +1 -0
- package/dist/actions/PaginationControls/PaginationControls.d.ts +1 -0
- package/dist/actions/Toggle/Toggle.d.ts +1 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +2 -1
- package/dist/core/DataTable/DataTable.d.ts +3 -1
- package/dist/core/DataTableEditableCell/DataTableEditableCell.d.ts +2 -1
- package/dist/core/DataTableRow/DataTableRow.d.ts +1 -1
- package/dist/core/Flex/Flex.d.ts +1 -0
- package/dist/core/Inline/Inline.d.ts +1 -0
- package/dist/core/Stack/Stack.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +1 -0
- package/dist/feedback/Spinner/Spinner.d.ts +1 -0
- package/dist/forms/CheckboxField/CheckboxField.d.ts +2 -0
- package/dist/forms/CurrencyField/CurrencyField.d.ts +1 -1
- package/dist/forms/DateField/DateField.d.ts +1 -0
- package/dist/forms/DatePickerCalendar/DatePickerCalendar.d.ts +1 -0
- package/dist/forms/DateRangeField/DateRangeField.d.ts +1 -0
- package/dist/forms/Field/Field.d.ts +1 -0
- package/dist/forms/Form/Form.d.ts +1 -0
- package/dist/forms/FormRow/FormRow.d.ts +1 -0
- package/dist/forms/MultiSelectField/MultiSelectField.d.ts +2 -1
- package/dist/forms/PasswordField/PasswordField.d.ts +1 -0
- package/dist/forms/PercentageField/PercentageField.d.ts +1 -1
- package/dist/forms/PillSelectField/PillSelectField.d.ts +3 -1
- package/dist/forms/RadioGroupField/RadioGroupField.d.ts +2 -0
- package/dist/forms/RadioGroupOption/RadioGroupOption.d.ts +1 -0
- package/dist/forms/SelectField/SelectField.d.ts +2 -0
- package/dist/forms/SelectField/useSelectField.d.ts +1 -1
- package/dist/forms/TextAreaField/TextAreaField.d.ts +1 -0
- package/dist/forms/TextField/TextField.d.ts +1 -0
- package/dist/forms/TextField/useTextField.d.ts +1 -1
- package/dist/forms/TimeField/TimeField.d.ts +1 -1
- package/dist/forms/WeekField/WeekField.d.ts +1 -0
- package/dist/icons/components/IconAnalytics.d.ts +2 -1
- package/dist/icons/components/IconArrowDown.d.ts +2 -1
- package/dist/icons/components/IconArrowLeft.d.ts +2 -1
- package/dist/icons/components/IconArrowRight.d.ts +2 -1
- package/dist/icons/components/IconArrowToTop.d.ts +2 -1
- package/dist/icons/components/IconArrowUp.d.ts +2 -1
- package/dist/icons/components/IconAward.d.ts +2 -1
- package/dist/icons/components/IconBalanceScale.d.ts +2 -1
- package/dist/icons/components/IconBalanceScaleLeft.d.ts +2 -1
- package/dist/icons/components/IconBan.d.ts +2 -1
- package/dist/icons/components/IconBarsH.d.ts +2 -1
- package/dist/icons/components/IconBarsV.d.ts +2 -1
- package/dist/icons/components/IconBell.d.ts +2 -1
- package/dist/icons/components/IconBirthdayCake.d.ts +2 -1
- package/dist/icons/components/IconBold.d.ts +2 -1
- package/dist/icons/components/IconBolt.d.ts +2 -1
- package/dist/icons/components/IconBook.d.ts +2 -1
- package/dist/icons/components/IconBriefcase.d.ts +2 -1
- package/dist/icons/components/IconBullseyeArrow.d.ts +2 -1
- package/dist/icons/components/IconCalculator.d.ts +2 -1
- package/dist/icons/components/IconCalendar.d.ts +2 -1
- package/dist/icons/components/IconCalendarAlt.d.ts +2 -1
- package/dist/icons/components/IconCalendarCheck.d.ts +2 -1
- package/dist/icons/components/IconCalendarDay.d.ts +2 -1
- package/dist/icons/components/IconCalendarExclamation.d.ts +2 -1
- package/dist/icons/components/IconCalendarStar.d.ts +2 -1
- package/dist/icons/components/IconCalendarTomorrow.d.ts +2 -1
- package/dist/icons/components/IconCamera.d.ts +2 -1
- package/dist/icons/components/IconCameraSlash.d.ts +2 -1
- package/dist/icons/components/IconCashRegister.d.ts +2 -1
- package/dist/icons/components/IconChartBar.d.ts +2 -1
- package/dist/icons/components/IconCheck.d.ts +2 -1
- package/dist/icons/components/IconChevronDown.d.ts +2 -1
- package/dist/icons/components/IconChevronLeft.d.ts +2 -1
- package/dist/icons/components/IconChevronRight.d.ts +2 -1
- package/dist/icons/components/IconChevronUp.d.ts +2 -1
- package/dist/icons/components/IconClipboardList.d.ts +2 -1
- package/dist/icons/components/IconClock.d.ts +2 -1
- package/dist/icons/components/IconCog.d.ts +2 -1
- package/dist/icons/components/IconComment.d.ts +2 -1
- package/dist/icons/components/IconCommentLines.d.ts +2 -1
- package/dist/icons/components/IconCopy.d.ts +2 -1
- package/dist/icons/components/IconCreditCard.d.ts +2 -1
- package/dist/icons/components/IconCreditCardPlus.d.ts +2 -1
- package/dist/icons/components/IconDownload.d.ts +2 -1
- package/dist/icons/components/IconEdit.d.ts +2 -1
- package/dist/icons/components/IconEllipsisV.d.ts +2 -1
- package/dist/icons/components/IconEnvelope.d.ts +2 -1
- package/dist/icons/components/IconExclaimation.d.ts +2 -1
- package/dist/icons/components/IconExclaimationTriangle.d.ts +2 -1
- package/dist/icons/components/IconExpand.d.ts +2 -1
- package/dist/icons/components/IconExternalLink.d.ts +2 -1
- package/dist/icons/components/IconEye.d.ts +2 -1
- package/dist/icons/components/IconEyeSlash.d.ts +2 -1
- package/dist/icons/components/IconFile.d.ts +2 -1
- package/dist/icons/components/IconFilePdf.d.ts +2 -1
- package/dist/icons/components/IconFlag.d.ts +2 -1
- package/dist/icons/components/IconFourDotsCircle.d.ts +2 -1
- package/dist/icons/components/IconFourSquares.d.ts +2 -1
- package/dist/icons/components/IconGavel.d.ts +2 -1
- package/dist/icons/components/IconGif.d.ts +2 -1
- package/dist/icons/components/IconGift.d.ts +2 -1
- package/dist/icons/components/IconGrinBeam.d.ts +2 -1
- package/dist/icons/components/IconGripVertical.d.ts +2 -1
- package/dist/icons/components/IconHandshake.d.ts +2 -1
- package/dist/icons/components/IconImage.d.ts +2 -1
- package/dist/icons/components/IconInfoCircle.d.ts +2 -1
- package/dist/icons/components/IconIslandTropical.d.ts +2 -1
- package/dist/icons/components/IconItalic.d.ts +2 -1
- package/dist/icons/components/IconLaptopSearch.d.ts +2 -1
- package/dist/icons/components/IconLink.d.ts +2 -1
- package/dist/icons/components/IconList.d.ts +2 -1
- package/dist/icons/components/IconListOI.d.ts +2 -1
- package/dist/icons/components/IconLock.d.ts +2 -1
- package/dist/icons/components/IconMagicSolid.d.ts +2 -1
- package/dist/icons/components/IconMapMarker.d.ts +2 -1
- package/dist/icons/components/IconMegaphone.d.ts +2 -1
- package/dist/icons/components/IconMinus.d.ts +2 -1
- package/dist/icons/components/IconMinusCircle.d.ts +2 -1
- package/dist/icons/components/IconMoneyBill.d.ts +2 -1
- package/dist/icons/components/IconNotesMedical.d.ts +2 -1
- package/dist/icons/components/IconOvertime.d.ts +2 -1
- package/dist/icons/components/IconPaperPlane.d.ts +2 -1
- package/dist/icons/components/IconPaperPlaneClock.d.ts +2 -1
- package/dist/icons/components/IconPaperclip.d.ts +2 -1
- package/dist/icons/components/IconPencil.d.ts +2 -1
- package/dist/icons/components/IconPercentage.d.ts +2 -1
- package/dist/icons/components/IconPhone.d.ts +2 -1
- package/dist/icons/components/IconPlug.d.ts +2 -1
- package/dist/icons/components/IconPlus.d.ts +2 -1
- package/dist/icons/components/IconPrint.d.ts +2 -1
- package/dist/icons/components/IconQuestionCircle.d.ts +2 -1
- package/dist/icons/components/IconRepeat.d.ts +2 -1
- package/dist/icons/components/IconReply.d.ts +2 -1
- package/dist/icons/components/IconSearch.d.ts +2 -1
- package/dist/icons/components/IconSignOut.d.ts +2 -1
- package/dist/icons/components/IconSitemap.d.ts +2 -1
- package/dist/icons/components/IconSlidersH.d.ts +2 -1
- package/dist/icons/components/IconSort.d.ts +2 -1
- package/dist/icons/components/IconStar.d.ts +2 -1
- package/dist/icons/components/IconStarSolid.d.ts +2 -1
- package/dist/icons/components/IconStickyNoteLines.d.ts +2 -1
- package/dist/icons/components/IconStopwatch.d.ts +2 -1
- package/dist/icons/components/IconStrikethrough.d.ts +2 -1
- package/dist/icons/components/IconSync.d.ts +2 -1
- package/dist/icons/components/IconSyncExclaimation.d.ts +2 -1
- package/dist/icons/components/IconTachometer.d.ts +2 -1
- package/dist/icons/components/IconTimes.d.ts +2 -1
- package/dist/icons/components/IconTimesOctagon.d.ts +2 -1
- package/dist/icons/components/IconTrash.d.ts +2 -1
- package/dist/icons/components/IconUnderline.d.ts +2 -1
- package/dist/icons/components/IconUndo.d.ts +2 -1
- package/dist/icons/components/IconUniversity.d.ts +2 -1
- package/dist/icons/components/IconUserComputer.d.ts +2 -1
- package/dist/icons/components/IconUserFriends.d.ts +2 -1
- package/dist/icons/components/IconUserLight.d.ts +2 -1
- package/dist/icons/components/IconUserPlus.d.ts +2 -1
- package/dist/icons/components/IconUserSlash.d.ts +2 -1
- package/dist/icons/components/IconUserSolid.d.ts +2 -1
- package/dist/icons/components/IconUserTag.d.ts +2 -1
- package/dist/icons/components/IconUserTie.d.ts +2 -1
- package/dist/icons/components/IconUsers.d.ts +2 -1
- package/dist/icons/components/IconVideo.d.ts +2 -1
- package/dist/icons/components/IconVolume.d.ts +2 -1
- package/dist/icons/components/IconVolumeMute.d.ts +2 -1
- package/dist/icons/components/IconWrench.d.ts +2 -1
- package/dist/index.css +89 -0
- package/dist/index.js +1348 -466
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1347 -467
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Avatar/Avatar.d.ts +1 -0
- package/dist/media/Badge/Badge.d.ts +1 -0
- package/dist/media/Chip/Chip.d.ts +11 -0
- package/dist/media/Chip/constants.d.ts +8 -0
- package/dist/media/Chip/index.d.ts +1 -0
- package/dist/media/Chip/types.d.ts +1 -0
- package/dist/media/Pill/Pill.d.ts +10 -0
- package/dist/media/Pill/constants.d.ts +7 -0
- package/dist/media/Pill/index.d.ts +1 -0
- package/dist/media/Pill/types.d.ts +1 -0
- package/dist/media/index.d.ts +3 -1
- package/dist/overlay/Calendar/Calendar.d.ts +1 -0
- package/dist/overlay/Modal/Modal.d.ts +2 -1
- package/dist/overlay/Modal/ModalBody/ModalBody.d.ts +2 -1
- package/dist/overlay/Modal/ModalFooter/ModalFooter.d.ts +2 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +1 -0
- package/dist/overlay/Tooltip/TooltipOverlay/TooltipOverlay.d.ts +1 -0
- package/package.json +4 -2
|
@@ -14,6 +14,7 @@ declare type Props = {
|
|
|
14
14
|
title?: string;
|
|
15
15
|
href?: string;
|
|
16
16
|
target?: '_blank' | '_self';
|
|
17
|
+
testId?: string;
|
|
17
18
|
};
|
|
18
19
|
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
19
20
|
export default _default;
|
|
@@ -10,7 +10,8 @@ declare type Props<T> = {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
/** Use a prefix for things like icons or symbols (“$”, “¥”, “£”). */
|
|
12
12
|
prefix: React.ReactNode;
|
|
13
|
+
testId?: string;
|
|
13
14
|
};
|
|
14
15
|
/** Toolbar component to make a possible selection from predefined options. */
|
|
15
|
-
declare const ToolbarSelect: <T extends unknown>({ name, value, options, onChange, onBlur, placeholder, disabled, prefix, }: Props<T>) => JSX.Element;
|
|
16
|
+
declare const ToolbarSelect: <T extends unknown>({ name, value, options, onChange, onBlur, placeholder, disabled, prefix, testId }: Props<T>) => JSX.Element;
|
|
16
17
|
export default ToolbarSelect;
|
|
@@ -24,6 +24,8 @@ 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;
|
|
27
29
|
};
|
|
28
|
-
declare const DataTable: <T extends unknown>({ items, columns, itemComponent, maxHeight, hasPrevious, hasNext, onPreviousClick, onNextClick, onSort, isLoading, showActionMenu, footerComponent, hasVerticalBorders }: Props<T>) => JSX.Element;
|
|
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;
|
|
29
31
|
export default DataTable;
|
|
@@ -16,6 +16,7 @@ declare type Props = {
|
|
|
16
16
|
suffix?: React.ReactNode;
|
|
17
17
|
defaultValue?: string;
|
|
18
18
|
type?: 'text' | 'currency';
|
|
19
|
+
testId?: string;
|
|
19
20
|
};
|
|
20
|
-
declare const DataTableEditableCell: ({ name, columnIndex, rowIndex, id: inputId, value, onChange, onBlur, placeholder, disabled, error, prefix, suffix, defaultValue, type }: Props) => JSX.Element;
|
|
21
|
+
declare const DataTableEditableCell: ({ name, columnIndex, rowIndex, id: inputId, value, onChange, onBlur, placeholder, disabled, error, prefix, suffix, defaultValue, type, testId }: Props) => JSX.Element;
|
|
21
22
|
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" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "pattern" | "key" | "
|
|
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" | "size" | "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>>;
|
|
11
11
|
export default DataTableRow;
|
package/dist/core/Flex/Flex.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare type Props = {
|
|
|
10
10
|
caption?: React.ReactNode;
|
|
11
11
|
error?: React.ReactNode;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
+
/** This is used for setting the data-testid */
|
|
14
|
+
testId?: string;
|
|
13
15
|
};
|
|
14
16
|
/** CheckboxField form element. */
|
|
15
17
|
declare const CheckboxField: React.FC<Props>;
|
|
@@ -7,5 +7,5 @@ import type { Props as TextFieldProps } from '../TextField/TextField';
|
|
|
7
7
|
*/
|
|
8
8
|
declare const CurrencyField: React.ForwardRefExoticComponent<TextFieldProps & {
|
|
9
9
|
currencySymbol: string;
|
|
10
|
-
} & Pick<TextFieldProps, "disabled" | "id" | "caption" | "label" | "
|
|
10
|
+
} & Pick<TextFieldProps, "disabled" | "id" | "testId" | "caption" | "label" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "error" | "value" | "placeholder" | "autoFocus" | "defaultValue" | "autoComplete" | "maxLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
export default CurrencyField;
|
|
@@ -21,7 +21,8 @@ declare type Props<T> = {
|
|
|
21
21
|
closeOnSelect?: boolean;
|
|
22
22
|
/** When the user opens the menu, if this prop is `true`, it will scroll the page into to the menu view (if its content falls under a scroll). It is recomended to disable this behaviour when using the `MultiSelectField` inside a modal. */
|
|
23
23
|
menuShouldScrollIntoView?: boolean;
|
|
24
|
+
testId?: string;
|
|
24
25
|
};
|
|
25
26
|
/** Component to make possible choose from a predefined options. */
|
|
26
|
-
declare const MultiSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, label, caption, error, placeholder, noOptionsMessage, disabled, closeOnSelect, menuShouldScrollIntoView }: Props<T>) => JSX.Element;
|
|
27
|
+
declare const MultiSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, label, caption, error, placeholder, noOptionsMessage, disabled, closeOnSelect, menuShouldScrollIntoView, testId }: Props<T>) => JSX.Element;
|
|
27
28
|
export default MultiSelectField;
|
|
@@ -13,6 +13,7 @@ declare type Props = {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
defaultValue?: string;
|
|
15
15
|
criterias?: PasswordCriteria[];
|
|
16
|
+
testId?: string;
|
|
16
17
|
};
|
|
17
18
|
/** It allows show and hide the password as well as displaying the criteria. */
|
|
18
19
|
declare const PasswordField: React.FC<Props>;
|
|
@@ -9,5 +9,5 @@ declare const PercentageField: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
min?: number | undefined;
|
|
10
10
|
precision?: number | undefined;
|
|
11
11
|
stepSize?: number | undefined;
|
|
12
|
-
} & Pick<TextFieldProps, "disabled" | "id" | "caption" | "label" | "
|
|
12
|
+
} & Pick<TextFieldProps, "disabled" | "id" | "testId" | "caption" | "label" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "error" | "value" | "placeholder" | "prefix" | "autoFocus" | "defaultValue" | "autoComplete"> & React.RefAttributes<HTMLInputElement>>;
|
|
13
13
|
export default PercentageField;
|
|
@@ -11,7 +11,9 @@ declare type Props<T> = {
|
|
|
11
11
|
caption?: React.ReactNode;
|
|
12
12
|
error?: React.ReactNode;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
+
/** This is used for setting the data-testid */
|
|
15
|
+
testId?: string;
|
|
14
16
|
};
|
|
15
17
|
/** PillSelectField form element. */
|
|
16
|
-
declare const PillSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, label, caption, error, disabled }: Props<T>) => JSX.Element;
|
|
18
|
+
declare const PillSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, label, caption, error, disabled, testId }: Props<T>) => JSX.Element;
|
|
17
19
|
export default PillSelectField;
|
|
@@ -9,6 +9,8 @@ declare type Props = {
|
|
|
9
9
|
inline?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
children: React.ReactNode;
|
|
12
|
+
/** This is used for setting the data-testid */
|
|
13
|
+
testId?: string;
|
|
12
14
|
};
|
|
13
15
|
/** RadioGroupField form element. */
|
|
14
16
|
declare const RadioGroupField: React.FC<Props>;
|
|
@@ -26,6 +26,8 @@ export declare type Props<T> = {
|
|
|
26
26
|
defaultValue?: SelectOption<T>;
|
|
27
27
|
CustomOption?: React.ElementType;
|
|
28
28
|
SelectedOptionPrefix?: React.ElementType;
|
|
29
|
+
/** This is used for setting the data-testid */
|
|
30
|
+
testId?: string;
|
|
29
31
|
};
|
|
30
32
|
/** Component to make possible choose from a predefined options. */
|
|
31
33
|
declare const SelectField: <T extends unknown>(props: Props<T>) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Props } from './SelectField';
|
|
3
|
-
export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix }: Props<T>) => {
|
|
3
|
+
export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix, testId }: Props<T>) => {
|
|
4
4
|
selectProps: Pick<import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>, React.ReactText> & import("react-select/src/stateManager").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>> & import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>;
|
|
5
5
|
fieldProps: {
|
|
6
6
|
caption: React.ReactNode;
|
|
@@ -20,6 +20,7 @@ declare type Props = {
|
|
|
20
20
|
maxHeight?: number;
|
|
21
21
|
/** A JSX containing the toolbar elements. You can use `Inline` to place the buttons properly on the toolbar space. */
|
|
22
22
|
toolbar?: React.ReactNode;
|
|
23
|
+
testId?: string;
|
|
23
24
|
};
|
|
24
25
|
declare const TextAreaField: React.FC<Props>;
|
|
25
26
|
export default TextAreaField;
|
|
@@ -22,6 +22,7 @@ export declare type Props = {
|
|
|
22
22
|
/** Use suffix for things like units of measure (“in”, “cm”, ”hours”) or icons. */
|
|
23
23
|
suffix?: React.ReactNode;
|
|
24
24
|
value?: string;
|
|
25
|
+
testId?: string;
|
|
25
26
|
};
|
|
26
27
|
declare const TextField: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
27
28
|
export default TextField;
|
|
@@ -4,7 +4,7 @@ import type { Props } from './TextField';
|
|
|
4
4
|
declare type UseTextFieldProps = Props & {
|
|
5
5
|
ref: RefType<HTMLInputElement>;
|
|
6
6
|
};
|
|
7
|
-
export declare const useTextField: ({ autoComplete, autoFocus, defaultValue, disabled, error, id, maxLength, name, caption, label, onBlur, onChange, onFocus, onKeyDown, placeholder, value, ref }: UseTextFieldProps) => {
|
|
7
|
+
export declare const useTextField: ({ autoComplete, autoFocus, defaultValue, disabled, error, id, maxLength, name, caption, label, onBlur, onChange, onFocus, onKeyDown, placeholder, value, ref, testId }: UseTextFieldProps) => {
|
|
8
8
|
inputProps: {
|
|
9
9
|
'aria-describedby': string;
|
|
10
10
|
'aria-invalid': boolean;
|
|
@@ -5,5 +5,5 @@ import type { Props as TextFieldProps } from '../TextField/TextField';
|
|
|
5
5
|
*
|
|
6
6
|
* At the end, it is just a string formatted nicely. **You are in charge of validating the value and parsing it back to a value that you can use on your application**.
|
|
7
7
|
*/
|
|
8
|
-
declare const TimeField: React.ForwardRefExoticComponent<Pick<TextFieldProps, "disabled" | "id" | "caption" | "label" | "
|
|
8
|
+
declare const TimeField: React.ForwardRefExoticComponent<Pick<TextFieldProps, "disabled" | "id" | "testId" | "caption" | "label" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "error" | "value" | "placeholder" | "autoFocus" | "defaultValue" | "autoComplete" | "maxLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export default TimeField;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconAnalytics: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconAnalytics;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowDown: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowDown;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowLeft: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowLeft;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowRight: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowRight;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowToTop: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowToTop;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowUp: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowUp;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconAward: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconAward;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBalanceScale: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBalanceScale;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBalanceScaleLeft: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBalanceScaleLeft;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBan: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBan;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBarsH: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBarsH;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBarsV: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBarsV;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBell: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBell;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBirthdayCake: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBirthdayCake;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBold: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBold;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBolt: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBolt;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBook: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBook;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBriefcase: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBriefcase;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBullseyeArrow: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBullseyeArrow;
|