Skip to content

Commit

Permalink
chore: bump material version
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Sep 17, 2024
1 parent 2818a14 commit 8672c30
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 21 deletions.
14 changes: 14 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# index

## 0.1.21

### Patch Changes

- Updated dependencies
- [email protected]

## 0.1.20

### Patch Changes

- Updated dependencies
- [email protected]

## 0.1.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "index",
"version": "0.1.19",
"version": "0.1.21",
"private": true,
"packageManager": "[email protected]",
"scripts": {
Expand Down
12 changes: 12 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# material-web-react

## 0.3.16

### Patch Changes

- use latest material version

## 0.3.15

### Patch Changes

- add custom classname option to snackbar

## 0.3.14

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-web-components-react",
"version": "0.3.14",
"version": "0.3.16",
"author": "Grayhat Team",
"type": "module",
"keywords": [
Expand Down Expand Up @@ -50,7 +50,7 @@
},
"dependencies": {
"@lit/react": "^1.0.5",
"@material/web": "^2.0.0",
"@material/web": "^2.1.0",
"autoprefixer": "^10.4.19",
"lit": "^3.2.0",
"react": "^18.2.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/ui/src/snackbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type SnackbarProps = {
onAction?: () => void;
onClose?: () => void;
actionText?: string;
className?: string;
};

export const Snackbar = ({
Expand All @@ -39,6 +40,7 @@ export const Snackbar = ({
onAction,
onClose,
actionText,
className,
}: SnackbarProps) => {
const [translateX, setTranslateX] = useState(0);
const [isSwiped, setIsSwiped] = useState(false);
Expand Down Expand Up @@ -89,9 +91,10 @@ export const Snackbar = ({
: "transform 0.02s linear, opacity 0.1s linear",
}}
className={twMerge(
"relative font-regular flex items-start gap-x-5 justify-evenly rounded-md bg-[#313033] py-4 pl-5 pr-3 text-[#F4EFF4] shadow-lg text-sm min-w-80 sm:min-w-96 max-w-96 w-screen transition-all",
"relative font-regular flex items-start gap-x-5 justify-evenly rounded-md !bg-[#313033] py-4 pl-5 pr-3 text-[#F4EFF4] shadow-lg text-sm min-w-80 sm:min-w-96 max-w-96 w-screen transition-all",
useLongerAction ? "flex-col" : "flex-row",
isSwiped ? "opacity-0" : "opacity-100"
isSwiped ? "opacity-0" : "opacity-100",
className
)}
>
{icon && <span className="text-white">{icon}</span>}
Expand Down
23 changes: 7 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8672c30

Please sign in to comment.