@charcoal-ui/react 6.1.0-beta.6 → 6.1.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/dist/components/Notification/NotificationRegion.cjs +3 -2
- package/dist/components/Notification/NotificationRegion.cjs.map +1 -1
- package/dist/components/Notification/NotificationRegion.d.ts.map +1 -1
- package/dist/components/Notification/NotificationRegion.js +3 -2
- package/dist/components/Notification/NotificationRegion.js.map +1 -1
- package/dist/components/Notification/types.d.ts +5 -0
- package/dist/components/Notification/types.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/components/TextField/index2.cjs.map +1 -1
- package/dist/components/TextField/index2.js.map +1 -1
- package/dist/index.css +1130 -1135
- package/dist/layered.css +1130 -1135
- package/dist/layered.css.map +1 -1
- package/package.json +3 -3
- package/src/components/Notification/NotificationRegion.browser.test.tsx +120 -0
- package/src/components/Notification/NotificationRegion.tsx +3 -2
- package/src/components/Notification/Snackbar/__snapshots__/index.css.snap +3 -6
- package/src/components/Notification/Snackbar/index.css +5 -6
- package/src/components/Notification/Snackbar/index.story.tsx +0 -1
- package/src/components/Notification/Toast/__snapshots__/index.css.snap +3 -5
- package/src/components/Notification/Toast/index.css +5 -5
- package/src/components/Notification/Toast/index.story.tsx +0 -1
- package/src/components/Notification/types.ts +5 -0
- package/src/components/TextField/index.tsx +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.charcoal-
|
|
1
|
+
.charcoal-notification-region {
|
|
2
2
|
--charcoal-snackbar-offset: 16px;
|
|
3
|
+
}
|
|
3
4
|
|
|
5
|
+
.charcoal-snackbar-region {
|
|
4
6
|
&[data-position='top'] {
|
|
5
7
|
--charcoal-snackbar-enter-offset: calc(-1 * var(--charcoal-space-30));
|
|
6
8
|
|
|
7
9
|
position: sticky;
|
|
8
|
-
top: calc(
|
|
9
|
-
env(safe-area-inset-top, 0px) + max(var(--charcoal-snackbar-offset), 16px)
|
|
10
|
-
);
|
|
10
|
+
top: calc(env(safe-area-inset-top, 0px) + var(--charcoal-snackbar-offset));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&[data-position='bottom'] {
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
position: fixed;
|
|
17
17
|
bottom: calc(
|
|
18
|
-
env(safe-area-inset-bottom, 0px) +
|
|
19
|
-
max(var(--charcoal-snackbar-offset), 16px)
|
|
18
|
+
env(safe-area-inset-bottom, 0px) + var(--charcoal-snackbar-offset)
|
|
20
19
|
);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
.charcoal-
|
|
1
|
+
.charcoal-notification-region {
|
|
2
2
|
--charcoal-toast-offset: 16px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.charcoal-toast-region[data-position='top'] {
|
|
6
6
|
position: sticky;
|
|
7
7
|
--charcoal-toast-enter-offset: calc(-1 * var(--charcoal-space-30));
|
|
8
|
-
top: calc(
|
|
9
|
-
env(safe-area-inset-top, 0px) + max(var(--charcoal-toast-offset), 16px)
|
|
10
|
-
);
|
|
8
|
+
top: calc(env(safe-area-inset-top, 0px) + var(--charcoal-toast-offset));
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
.charcoal-toast-region[data-position='bottom'] {
|
|
14
12
|
position: fixed;
|
|
15
13
|
--charcoal-toast-enter-offset: var(--charcoal-space-30);
|
|
16
14
|
bottom: calc(
|
|
17
|
-
env(safe-area-inset-bottom, 0px) +
|
|
15
|
+
env(safe-area-inset-bottom, 0px) + var(--charcoal-toast-offset)
|
|
18
16
|
);
|
|
19
17
|
}
|
|
20
18
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.charcoal-
|
|
1
|
+
.charcoal-notification-region {
|
|
2
2
|
--charcoal-toast-offset: 16px;
|
|
3
|
+
}
|
|
3
4
|
|
|
5
|
+
.charcoal-toast-region {
|
|
4
6
|
&[data-position='top'] {
|
|
5
7
|
position: sticky;
|
|
6
8
|
--charcoal-toast-enter-offset: calc(-1 * var(--charcoal-space-30));
|
|
7
9
|
|
|
8
|
-
top: calc(
|
|
9
|
-
env(safe-area-inset-top, 0px) + max(var(--charcoal-toast-offset), 16px)
|
|
10
|
-
);
|
|
10
|
+
top: calc(env(safe-area-inset-top, 0px) + var(--charcoal-toast-offset));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&[data-position='bottom'] {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--charcoal-toast-enter-offset: var(--charcoal-space-30);
|
|
16
16
|
|
|
17
17
|
bottom: calc(
|
|
18
|
-
env(safe-area-inset-bottom, 0px) +
|
|
18
|
+
env(safe-area-inset-bottom, 0px) + var(--charcoal-toast-offset)
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
}
|