Skip to content

Commit 8672c30

Browse files
committed
chore: bump material version
1 parent 2818a14 commit 8672c30

File tree

6 files changed

+41
-21
lines changed

6 files changed

+41
-21
lines changed

Diff for: apps/demo/CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# index
22

3+
## 0.1.21
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
9+
10+
## 0.1.20
11+
12+
### Patch Changes
13+
14+
- Updated dependencies
15+
16+
317
## 0.1.19
418

519
### Patch Changes

Diff for: apps/demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "index",
3-
"version": "0.1.19",
3+
"version": "0.1.21",
44
"private": true,
55
"packageManager": "[email protected]",
66
"scripts": {

Diff for: packages/ui/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# material-web-react
22

3+
## 0.3.16
4+
5+
### Patch Changes
6+
7+
- use latest material version
8+
9+
## 0.3.15
10+
11+
### Patch Changes
12+
13+
- add custom classname option to snackbar
14+
315
## 0.3.14
416

517
### Patch Changes

Diff for: packages/ui/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "material-web-components-react",
3-
"version": "0.3.14",
3+
"version": "0.3.16",
44
"author": "Grayhat Team",
55
"type": "module",
66
"keywords": [
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"@lit/react": "^1.0.5",
53-
"@material/web": "^2.0.0",
53+
"@material/web": "^2.1.0",
5454
"autoprefixer": "^10.4.19",
5555
"lit": "^3.2.0",
5656
"react": "^18.2.0",

Diff for: packages/ui/src/snackbar/index.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export type SnackbarProps = {
2929
onAction?: () => void;
3030
onClose?: () => void;
3131
actionText?: string;
32+
className?: string;
3233
};
3334

3435
export const Snackbar = ({
@@ -39,6 +40,7 @@ export const Snackbar = ({
3940
onAction,
4041
onClose,
4142
actionText,
43+
className,
4244
}: SnackbarProps) => {
4345
const [translateX, setTranslateX] = useState(0);
4446
const [isSwiped, setIsSwiped] = useState(false);
@@ -89,9 +91,10 @@ export const Snackbar = ({
8991
: "transform 0.02s linear, opacity 0.1s linear",
9092
}}
9193
className={twMerge(
92-
"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",
94+
"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",
9395
useLongerAction ? "flex-col" : "flex-row",
94-
isSwiped ? "opacity-0" : "opacity-100"
96+
isSwiped ? "opacity-0" : "opacity-100",
97+
className
9598
)}
9699
>
97100
{icon && <span className="text-white">{icon}</span>}

Diff for: pnpm-lock.yaml

+7-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)