@conveyorhq/arrow-ds 1.62.0 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.62.0",
5
+ "version": "1.63.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -1,4 +1,4 @@
1
- import { HTMLProps } from "react";
1
+ import { HTMLProps, ReactNode } from "react";
2
2
  import { ButtonProps } from "../Button";
3
3
  interface FileUploadDndPropsBase extends Omit<HTMLProps<HTMLLabelElement>, "onChange" | "value"> {
4
4
  className?: string;
@@ -7,6 +7,7 @@ interface FileUploadDndPropsBase extends Omit<HTMLProps<HTMLLabelElement>, "onCh
7
7
  inputProps?: HTMLProps<HTMLInputElement>;
8
8
  buttonProps?: ButtonProps;
9
9
  hideFileLabel?: boolean;
10
+ dropAreaComponent?: (active: boolean) => ReactNode;
10
11
  }
11
12
  interface FileUploadDndPropsSingle extends FileUploadDndPropsBase {
12
13
  onChange: (file: File | null) => void;
@@ -35,7 +35,7 @@ const Text_1 = require("../Text");
35
35
  const Truncate_1 = require("../Truncate");
36
36
  const cn = utilities_1.bemHOF("FileUpload");
37
37
  const ERROR_TIMEOUT = 5000;
38
- const FileUploadInput = ({ inputProps, buttonProps, className, accept, label = "Select file", hideFileLabel, ...props }) => {
38
+ const FileUploadInput = ({ inputProps, buttonProps, className, accept, label = "Select file", hideFileLabel, dropAreaComponent = () => null, ...props }) => {
39
39
  const inputRef = react_1.useRef(null);
40
40
  const { id: contextId } = react_1.useContext(FormGroupContext_1.FormGroupContext);
41
41
  const inputId = inputProps ? inputProps.id : undefined;
@@ -138,6 +138,7 @@ const FileUploadInput = ({ inputProps, buttonProps, className, accept, label = "
138
138
  }, [value, multiple]);
139
139
  return (react_1.default.createElement("label", Object.assign({ ref: drop, htmlFor: id, className: classnames_1.default(cn(), isActive && cn({ m: "active" }), className) }, labelRest),
140
140
  react_1.default.createElement("input", Object.assign({ className: classnames_1.default(cn({ e: "input" }), inputClassName), ref: inputRef, type: "file", id: id, multiple: props.multiple, accept: accept }, inputRest, { onChange: handleInputChange })),
141
+ dropAreaComponent(isActive),
141
142
  react_1.default.createElement(Button_1.Button, Object.assign({ className: classnames_1.default(cn({ e: "button" })), as: "div", variant: Button_1.BUTTON_VARIANT.SECONDARY, tabIndex: -1 }, buttonProps), label),
142
143
  errorText && (react_1.default.createElement(Truncate_1.Truncate, { className: cn({ e: "truncate" }) },
143
144
  react_1.default.createElement(Text_1.Text, { as: "span", className: cn({ e: "error" }) }, errorText))),
@@ -1,5 +1,5 @@
1
1
  import { SvgProps } from "../Svg";
2
- export declare const integrationLogoNames: readonly ["addigy", "aws", "bamboohr", "bitbucket", "conveyor", "deploy", "docusign", "events-api", "gcp", "github", "gitlab", "gsuite", "jamf", "jira", "jumpcloud", "okta", "onelogin", "servicenow", "salesforce", "slack", "zoom"];
2
+ export declare const integrationLogoNames: readonly ["addigy", "aws", "bamboohr", "bitbucket", "conveyor", "deploy", "docusign", "events-api", "gcp", "github", "gitlab", "gsuite", "jamf", "jira", "jumpcloud", "okta", "onelogin", "service_now", "salesforce", "slack", "zoom"];
3
3
  export declare type IntegrationLogoName = typeof integrationLogoNames[number];
4
4
  export interface IntegrationLogoProps extends SvgProps {
5
5
  logo?: IntegrationLogoName | string;
@@ -24,7 +24,7 @@ exports.integrationLogoNames = [
24
24
  "jumpcloud",
25
25
  "okta",
26
26
  "onelogin",
27
- "servicenow",
27
+ "service_now",
28
28
  "salesforce",
29
29
  "slack",
30
30
  "zoom",
@@ -41,7 +41,7 @@ const IntegrationLogoSvg = ({ logo, ...rest }) => {
41
41
  return react_1.default.createElement(svg_1.OktaSvg, Object.assign({}, rest));
42
42
  case "onelogin":
43
43
  return react_1.default.createElement(svg_1.OneLoginSvg, Object.assign({}, rest));
44
- case "servicenow":
44
+ case "service_now":
45
45
  return react_1.default.createElement(svg_1.ServiceNowSvg, Object.assign({}, rest));
46
46
  case "salesforce":
47
47
  return react_1.default.createElement(svg_1.SalesforceSvg, Object.assign({}, rest));
@@ -119,7 +119,7 @@ const Tooltip = (props) => {
119
119
  referenceElement.props.onBlur();
120
120
  }
121
121
  },
122
- tabIndex: 0,
122
+ tabIndex: referenceElement.props.tabIndex || 0,
123
123
  })
124
124
  : referenceElement;
125
125
  const context = react_1.useMemo(() => ({
@@ -3262,7 +3262,7 @@ override built-in Image component classes */
3262
3262
  align-items: center;
3263
3263
  justify-content: space-between;
3264
3264
  padding-left: 16px;
3265
- padding-right: 12px;
3265
+ padding-right: 16px;
3266
3266
  padding-top: 8px;
3267
3267
  }
3268
3268
 
@@ -3522,10 +3522,6 @@ override built-in Image component classes */
3522
3522
  margin: 8px;
3523
3523
  }
3524
3524
 
3525
- .react-datepicker__month-container {
3526
- width: 288px;
3527
- }
3528
-
3529
3525
  .react-datepicker__monthPicker {
3530
3526
  display: flex;
3531
3527
  flex-direction: column;