@7shifts/sous-chef 2.16.1 → 2.17.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.
Files changed (56) hide show
  1. package/dist/actions/Button/Button.d.ts +12 -3
  2. package/dist/actions/Button/constants.d.ts +27 -0
  3. package/dist/actions/Button/types.d.ts +4 -0
  4. package/dist/core/DataTable/types.d.ts +3 -7
  5. package/dist/core/DataTableRow/DataTableRow.d.ts +1 -1
  6. package/dist/core/Flex/Flex.d.ts +1 -0
  7. package/dist/feedback/Spinner/constants.d.ts +6 -0
  8. package/dist/forms/Label/Label.d.ts +1 -0
  9. package/dist/forms/Label/useLabelTooltip.d.ts +1 -1
  10. package/dist/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +11 -0
  11. package/dist/forms/RadioGroupBoxOption/index.d.ts +1 -0
  12. package/dist/forms/RadioGroupField/BoxOptions/BoxOptions.d.ts +8 -0
  13. package/dist/forms/RadioGroupField/BoxOptions/index.d.ts +1 -0
  14. package/dist/forms/RadioGroupField/RadioGroupField.d.ts +11 -3
  15. package/dist/forms/RadioGroupField/RadioOptions/RadioOptions.d.ts +9 -0
  16. package/dist/forms/RadioGroupField/RadioOptions/index.d.ts +1 -0
  17. package/dist/forms/RadioGroupField/domain.d.ts +6 -0
  18. package/dist/forms/SelectField/CustomContainer/CustomContainer.d.ts +6 -0
  19. package/dist/forms/SelectField/CustomContainer/index.d.ts +1 -0
  20. package/dist/forms/SelectField/CustomControl/CustomControl.d.ts +3 -5
  21. package/dist/forms/SelectField/CustomOption/CustomOption.d.ts +3 -5
  22. package/dist/forms/SelectField/useSelectField.d.ts +5 -5
  23. package/dist/icons/IconArrowDown.d.ts +11 -0
  24. package/dist/icons/IconArrowLeft.d.ts +9 -0
  25. package/dist/icons/IconArrowRight.d.ts +9 -0
  26. package/dist/icons/IconArrowUp.d.ts +9 -0
  27. package/dist/icons/IconCalendar.d.ts +9 -0
  28. package/dist/icons/IconCheck.d.ts +9 -0
  29. package/dist/icons/IconChevronDown.d.ts +9 -0
  30. package/dist/icons/IconChevronUp.d.ts +8 -0
  31. package/dist/icons/IconClose.d.ts +9 -0
  32. package/dist/icons/IconComment.d.ts +9 -0
  33. package/dist/icons/IconDelete.d.ts +9 -0
  34. package/dist/icons/IconEdit.d.ts +9 -0
  35. package/dist/icons/IconExclaim.d.ts +9 -0
  36. package/dist/icons/IconEye.d.ts +9 -0
  37. package/dist/icons/IconEyeSlash.d.ts +9 -0
  38. package/dist/icons/IconLocation.d.ts +9 -0
  39. package/dist/icons/IconMinusCircle.d.ts +9 -0
  40. package/dist/icons/IconMore.d.ts +9 -0
  41. package/dist/icons/IconRemove.d.ts +8 -0
  42. package/dist/icons/IconUser.d.ts +8 -0
  43. package/dist/icons/IconUserPlus.d.ts +9 -0
  44. package/dist/index.css +161 -5
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +368 -173
  47. package/dist/index.js.map +1 -1
  48. package/dist/index.modern.js +368 -174
  49. package/dist/index.modern.js.map +1 -1
  50. package/dist/layout/Card/Card.d.ts +11 -0
  51. package/dist/layout/Card/index.d.ts +1 -0
  52. package/dist/layout/index.d.ts +2 -0
  53. package/dist/overlay/KebabMenu/KebabMenu.d.ts +6 -0
  54. package/dist/overlay/KebabMenu/index.d.ts +1 -0
  55. package/dist/overlay/Menu/types.d.ts +6 -0
  56. package/package.json +1 -1
@@ -1,20 +1,29 @@
1
1
  import React from 'react';
2
- declare type ButtonTheme = 'default' | 'primary' | 'danger' | 'upsell' | 'marketing' | 'hollow' | 'link-primary' | 'link-danger' | 'link-upsell' | 'link-toolbar' | 'link-contrast' | 'link-icon';
2
+ import type { ButtonTheme, ButtonSize, ButtonType, ButtonTarget } from './types';
3
3
  declare type Props = {
4
4
  children: React.ReactNode;
5
- type?: 'button' | 'submit' | 'reset';
5
+ type?: ButtonType;
6
6
  /** It controls the button theme */
7
7
  theme?: ButtonTheme;
8
8
  disabled?: boolean;
9
9
  onClick?: React.MouseEventHandler;
10
10
  id?: string;
11
+ /**
12
+ * @deprecated use the `size='min-width-100'` instead
13
+ */
11
14
  wide?: boolean;
12
15
  loading?: boolean;
13
16
  /** This will show a black tooltip when the user hover the button */
14
17
  title?: string;
15
18
  href?: string;
16
- target?: '_blank' | '_self';
19
+ target?: ButtonTarget;
17
20
  testId?: string;
21
+ /**
22
+ * This prop controls how the button grows having the following options:<br/>
23
+ * *full-width*: Will grow to fill the size of the container it is placed within.
24
+ * *min-width-100*: It will have a `min-width: 100` style. It is used for CTA buttons in forms and modals.
25
+ */
26
+ size?: ButtonSize;
18
27
  };
19
28
  declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
20
29
  export default _default;
@@ -0,0 +1,27 @@
1
+ export declare const BUTTON_SIZES: {
2
+ FULL_WIDTH: "full-width";
3
+ MIN_WIDTH_100: "min-width-100";
4
+ };
5
+ export declare const BUTTON_THEMES: {
6
+ DEFAULT: "default";
7
+ PRIMARY: "primary";
8
+ DANGER: "danger";
9
+ UPSELL: "upsell";
10
+ MARKETING: "marketing";
11
+ HOLLOW: "hollow";
12
+ LINK_PRIMARY: "link-primary";
13
+ LINK_DANGER: "link-danger";
14
+ LINK_UPSELL: "link-upsell";
15
+ LINK_TOOLBAR: "link-toolbar";
16
+ LINK_CONTRAST: "link-contrast";
17
+ LINK_ICON: "link-icon";
18
+ };
19
+ export declare const BUTTON_TYPES: {
20
+ BUTTON: "button";
21
+ SUBMIT: "submit";
22
+ RESET: "reset";
23
+ };
24
+ export declare const BUTTON_TARGETS: {
25
+ BLANK: "_blank";
26
+ SELF: "_self";
27
+ };
@@ -0,0 +1,4 @@
1
+ export declare type ButtonTheme = 'default' | 'primary' | 'danger' | 'upsell' | 'marketing' | 'hollow' | 'link-primary' | 'link-danger' | 'link-upsell' | 'link-toolbar' | 'link-contrast' | 'link-icon';
2
+ export declare type ButtonSize = 'full-width' | 'min-width-100';
3
+ export declare type ButtonType = 'button' | 'submit' | 'reset';
4
+ export declare type ButtonTarget = '_blank' | '_self';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import Button from '../../actions/Button/Button';
3
+ import { MenuAction } from '../../overlay/Menu/types';
3
4
  export declare type Column = {
4
5
  name: string;
5
6
  label?: React.ReactNode;
@@ -22,17 +23,12 @@ export declare type CustomComponent<T> = {
22
23
  columnSizes?: number[];
23
24
  columns?: Column[];
24
25
  };
25
- declare type BaseAction = {
26
- action?: string;
27
- label: React.ReactNode;
28
- onAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
29
- };
30
26
  declare type KebabAction = {
31
27
  showInKebab?: true;
32
- } & BaseAction;
28
+ } & MenuAction;
33
29
  declare type ButtonAction = {
34
30
  buttonProps?: Pick<React.ComponentPropsWithoutRef<typeof Button>, 'theme' | 'disabled' | 'loading' | 'title'>;
35
31
  showInKebab: false;
36
- } & BaseAction;
32
+ } & MenuAction;
37
33
  export declare type Action = KebabAction | ButtonAction;
38
34
  export {};
@@ -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" | "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>>;
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>>;
11
11
  export default DataTableRow;
@@ -12,6 +12,7 @@ declare type Props = {
12
12
  flexItems?: boolean;
13
13
  flexWrap?: FlexWrap;
14
14
  testId?: string;
15
+ extraClass?: string;
15
16
  };
16
17
  /**
17
18
  * Flex is a internal component used by Stack and Inline. DON'T use this component outside of Sous Chef
@@ -0,0 +1,6 @@
1
+ export declare const SPINNER_THEMES: {
2
+ MINT: "mint";
3
+ DISABLED: "disabled";
4
+ CONTRAST: "contrast";
5
+ PRIDE: "pride";
6
+ };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  declare type Props = {
3
3
  htmlFor: string;
4
4
  children: React.ReactNode;
5
+ truncate?: boolean;
5
6
  };
6
7
  declare const Label: React.FC<Props>;
7
8
  export default Label;
@@ -3,5 +3,5 @@ declare type UseLabelTooltip = {
3
3
  showTooltip: boolean;
4
4
  shouldTruncate: boolean;
5
5
  };
6
- export declare const useLabelTooltip: (labelId: string, tooltipContent: React.ReactNode) => UseLabelTooltip;
6
+ export declare const useLabelTooltip: (labelId: string, tooltipContent: React.ReactNode, truncate: boolean) => UseLabelTooltip;
7
7
  export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ value: string | number;
4
+ id?: string;
5
+ label?: React.ReactNode;
6
+ caption?: React.ReactNode;
7
+ children?: React.ReactNode;
8
+ testId?: string;
9
+ };
10
+ declare const RadioGroupBoxOption: ({ value, id: inputId, label, caption, testId, children }: Props) => JSX.Element;
11
+ export default RadioGroupBoxOption;
@@ -0,0 +1 @@
1
+ export { default } from './RadioGroupBoxOption';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ children: React.ReactNode;
4
+ columns?: 2 | 3 | 4;
5
+ testId?: string;
6
+ };
7
+ declare const BoxOptions: ({ children, columns, testId }: Props) => JSX.Element;
8
+ export default BoxOptions;
@@ -0,0 +1 @@
1
+ export { default } from './BoxOptions';
@@ -1,17 +1,25 @@
1
1
  import React from 'react';
2
+ import RadioGroupOption from '../RadioGroupOption';
3
+ import RadioGroupBoxOption from '../RadioGroupBoxOption';
2
4
  declare type Props = {
3
5
  name: string;
4
6
  value?: string | number;
5
7
  onChange?: (e: string | number) => void;
6
8
  label?: React.ReactNode;
7
9
  error?: React.ReactNode;
8
- /** When true it will place the options on the same line up to 4 options per line. */
10
+ /**
11
+ * **DEPRECATED** *Use the `columns` prop instead.*<br/><br/>When true it will place the options on the same line up to 4 options per line. It only applies when using `RadioGroupOption` as children
12
+ *
13
+ * @deprecated use the `columns` prop to tell how many inline columns you want. This will signal you want inline radio options
14
+ */
9
15
  inline?: boolean;
10
16
  disabled?: boolean;
11
- children: React.ReactNode;
17
+ children: React.ReactElement<typeof RadioGroupOption> | React.ReactElement<typeof RadioGroupOption>[] | React.ReactElement<typeof RadioGroupBoxOption> | React.ReactElement<typeof RadioGroupBoxOption>[];
12
18
  /** This is used for setting the data-testid */
13
19
  testId?: string;
20
+ /** It states the radio options will be inline and defines how many columns it will have */
21
+ columns?: 2 | 3 | 4;
14
22
  };
15
23
  /** RadioGroupField form element. */
16
- declare const RadioGroupField: React.FC<Props>;
24
+ declare const RadioGroupField: ({ name, value, onChange, label, error, inline, disabled, children, testId, columns }: Props) => JSX.Element;
17
25
  export default RadioGroupField;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ children: React.ReactNode;
4
+ inline: boolean;
5
+ columns?: 2 | 3 | 4;
6
+ testId?: string;
7
+ };
8
+ declare const RadioOptions: ({ children, inline, columns, testId }: Props) => JSX.Element;
9
+ export default RadioOptions;
@@ -0,0 +1 @@
1
+ export { default } from './RadioOptions';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const OPTION_TYPES: {
3
+ BOX: "BOX";
4
+ RADIO: "RADIO";
5
+ };
6
+ export declare const getOptionsType: (children: React.ReactNode) => keyof typeof OPTION_TYPES;
@@ -0,0 +1,6 @@
1
+ import { ComponentProps } from 'react';
2
+ import { components } from 'react-select';
3
+ declare const CustomContainer: (props: ComponentProps<typeof components.SelectContainer> & {
4
+ testId?: string;
5
+ }) => JSX.Element;
6
+ export default CustomContainer;
@@ -0,0 +1 @@
1
+ export { default } from './CustomContainer';
@@ -1,7 +1,5 @@
1
- import React, { ComponentProps } from 'react';
1
+ import { ComponentProps } from 'react';
2
2
  import { components } from 'react-select';
3
- declare type Props = ComponentProps<typeof components.Control> & {
4
- CustomPrefixComponent: React.ElementType;
5
- };
6
- declare function CustomControl({ children, CustomPrefixComponent, ...props }: Props): JSX.Element;
3
+ declare type Props = ComponentProps<typeof components.Control>;
4
+ declare function CustomControl({ children, ...props }: Props): JSX.Element;
7
5
  export default CustomControl;
@@ -1,7 +1,5 @@
1
- import React, { ComponentProps } from 'react';
1
+ import { ComponentProps } from 'react';
2
2
  import { components } from 'react-select';
3
- declare type Props = ComponentProps<typeof components.Option> & {
4
- CustomComponent: React.ElementType;
5
- };
6
- declare function CustomOption({ children, CustomComponent, ...props }: Props): JSX.Element;
3
+ declare type Props = ComponentProps<typeof components.Option>;
4
+ declare function CustomOption({ children, ...props }: Props): JSX.Element;
7
5
  export default CustomOption;
@@ -1,12 +1,12 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { Props } from './SelectField';
3
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
- 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>>;
4
+ selectProps: Pick<import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>, import("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
- caption: React.ReactNode;
7
- error: React.ReactNode;
6
+ caption: import("react").ReactNode;
7
+ error: import("react").ReactNode;
8
8
  id: string;
9
- label: React.ReactNode;
9
+ label: import("react").ReactNode;
10
10
  name: string;
11
11
  };
12
12
  };
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconArrowLeft: React.FC<Props>;
9
+ export default IconArrowLeft;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconArrowRight: React.FC<Props>;
9
+ export default IconArrowRight;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconArrowUp: React.FC<Props>;
9
+ export default IconArrowUp;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconCalendar: React.FC<Props>;
9
+ export default IconCalendar;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconCheck: React.FC<Props>;
9
+ export default IconCheck;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ size?: 'small' | 'medium';
4
+ color?: string;
5
+ rotate?: number;
6
+ dataTestId?: string;
7
+ };
8
+ declare const IconChevronDown: React.FC<Props>;
9
+ export default IconChevronDown;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Color } from '../foundation/colors';
3
+ declare type Props = {
4
+ size?: 'small' | 'medium';
5
+ color?: Color;
6
+ };
7
+ declare const IconChevronUp: React.FC<Props>;
8
+ export default IconChevronUp;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconClose: React.FC<Props>;
9
+ export default IconClose;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconComment: React.FC<Props>;
9
+ export default IconComment;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconDelete: React.FC<Props>;
9
+ export default IconDelete;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconEdit: React.FC<Props>;
9
+ export default IconEdit;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconExclaim: React.FC<Props>;
9
+ export default IconExclaim;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconEye: React.FC<Props>;
9
+ export default IconEye;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconEyeSlash: React.FC<Props>;
9
+ export default IconEyeSlash;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconLocation: React.FC<Props>;
9
+ export default IconLocation;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconMinusCircle: React.FC<Props>;
9
+ export default IconMinusCircle;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconMore: React.FC<Props>;
9
+ export default IconMore;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Color } from '../foundation/colors';
3
+ declare type Props = {
4
+ size?: 'small' | 'medium' | 'default' | 'large';
5
+ color?: Color;
6
+ };
7
+ declare const IconRemove: React.FC<Props>;
8
+ export default IconRemove;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IconSize } from './types';
3
+ declare type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ };
7
+ declare const IconUser: React.FC<Props>;
8
+ export default IconUser;
@@ -0,0 +1,9 @@
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
+ };
8
+ declare const IconUserPlus: React.FC<Props>;
9
+ export default IconUserPlus;