Skip to content

Commit

Permalink
Update Style Overrides (#5335)
Browse files Browse the repository at this point in the history
  • Loading branch information
epfeiffe authored Jun 27, 2024
1 parent 006832a commit 8ceb47f
Show file tree
Hide file tree
Showing 3 changed files with 16,494 additions and 11 deletions.
29 changes: 19 additions & 10 deletions documentation-site/components/yard/config/file-uploader-beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { FileUploaderBeta } from "baseui/file-uploader-beta";
import { PropTypes } from "react-view";
import type { TConfig } from "../types";
import buttonConfig from "./button";
import iconConfig from "./icon";

const changeHandlers = [
"onClick",
Expand Down Expand Up @@ -114,15 +114,24 @@ const FileUploaderBetaConfig: TConfig = {
description: "Lets you customize all aspects of the component.",
custom: {
names: [
{ ...buttonConfig, componentName: "ButtonComponent" },
{ ...buttonConfig, componentName: "CancelButtonComponent" },
{ ...buttonConfig, componentName: "RetryButtonComponent" },
"ContentMessage",
"ErrorMessage",
"FileDragAndDrop",
"HiddenInput",
"Spinner",
"ProgressBar",
{ ...iconConfig, componentName: "AlertIcon" },
{ ...iconConfig, componentName: "CircleCheckFilledIcon" },
"FileRow",
"FileRowColumn",
"FileRowContent",
"FileRowFileName",
"FileRowText",
"FileRowUploadMessage",
"FileRowUploadText",
"FileRows",
"Hint",
"ImagePreviewThumbnail",
"ItemPreviewContainer",
"Label",
{ ...iconConfig, componentName: "PaperclipFilledIcon" },
"ParentRoot",
{ ...iconConfig, componentName: "TrashCanFilledIcon" },
"TrashCanFilledIconContainer",
],
sharedProps: {},
},
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/pages/components/file-uploader-beta.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default Layout;

<Yard placeholderHeight={120} {...fileUploaderBetaYardConfig} />

Creates a dropzone for file uploads.
Creates a dropzone for file uploads with file row state binding, props to control errors, and props to control uploads. Inherits all style props from the `FileUploader` component.

## Accessibility

Expand Down
Loading

0 comments on commit 8ceb47f

Please sign in to comment.