Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @baseapp-frontend/components

## 0.0.31

### Patch Changes

- Updated dependencies
- @baseapp-frontend/design-system@0.0.23

## 0.0.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/components",
"description": "BaseApp components modules such as comments, notifications, messages, and more.",
"version": "0.0.30",
"version": "0.0.31",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
6 changes: 6 additions & 0 deletions packages/design-system/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @baseapp-frontend/design-system

## 0.0.23

### Patch Changes

- Add `InputProps` prop and a default `aria-label` to the input.

## 0.0.22

### Patch Changes
Expand Down
7 changes: 5 additions & 2 deletions packages/design-system/components/Dropzone/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Dropzone: FC<DropzoneProps> = ({
maxFileSize = 15,
subTitle = `Max. File Size: ${maxFileSize}MB`,
DropzoneOptions,
InputProps,
}) => {
const [files, setFiles] = useState<string | undefined>(storedImg)
const { sendToast } = useNotification()
Expand All @@ -49,10 +50,12 @@ const Dropzone: FC<DropzoneProps> = ({
}

const renderContent = () => {
const ariaLabel = 'Drag and drop files to upload'

if (files)
return (
<>
<input {...getInputProps()} />
<input {...getInputProps()} aria-label={ariaLabel} {...InputProps} />
<Card>
<Box p={2} display="flex" flexDirection="column" alignItems="center">
<img
Expand All @@ -69,7 +72,7 @@ const Dropzone: FC<DropzoneProps> = ({
return (
<div className="container w-full max-w-none">
<InputContainer {...getRootProps({ isFocused, isDragAccept, isDragReject })}>
<input {...getInputProps()} />
<input {...getInputProps()} aria-label={ariaLabel} {...InputProps} />
{isDragReject ? (
<>
<CancelIcon />
Expand Down
3 changes: 3 additions & 0 deletions packages/design-system/components/Dropzone/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { InputHTMLAttributes } from 'react'

import { Theme } from '@mui/material/styles'
import type { Accept, DropzoneOptions } from 'react-dropzone'

Expand All @@ -17,4 +19,5 @@ export interface DropzoneProps {
subTitle?: string
maxFileSize?: number
DropzoneOptions?: Partial<DropzoneOptions>
InputProps?: InputHTMLAttributes<HTMLInputElement>
}
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/design-system",
"description": "Design System components and configurations.",
"version": "0.0.22",
"version": "0.0.23",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
7 changes: 7 additions & 0 deletions packages/wagtail/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @baseapp-frontend/wagtail

## 1.0.7

### Patch Changes

- Updated dependencies
- @baseapp-frontend/design-system@0.0.23

## 1.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/wagtail/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/wagtail",
"description": "BaseApp Wagtail",
"version": "1.0.6",
"version": "1.0.7",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
Loading