@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 +1 -1
- package/public/components/FileUpload/FileUploadDnD.d.ts +2 -1
- package/public/components/FileUpload/FileUploadDnD.js +2 -1
- package/public/components/IntegrationLogo/IntegrationLogo.d.ts +1 -1
- package/public/components/IntegrationLogo/IntegrationLogo.js +1 -1
- package/public/components/IntegrationLogo/IntegrationLogoSvg.js +1 -1
- package/public/components/Tooltip/Tooltip.js +1 -1
- package/public/css/styles.css +1 -5
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/src/components/DatePicker/index.css +1 -6
- package/src/components/FileUpload/FileUploadDnD.tsx +7 -0
- package/src/components/IntegrationLogo/IntegrationLogo.story.mdx +1 -1
- package/src/components/IntegrationLogo/IntegrationLogo.tsx +1 -1
- package/src/components/IntegrationLogo/IntegrationLogoSvg.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +1 -1
package/package.json
CHANGED
|
@@ -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", "
|
|
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;
|
|
@@ -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 "
|
|
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));
|
package/public/css/styles.css
CHANGED
|
@@ -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:
|
|
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;
|