@1024pix/pix-ui 19.0.0 → 19.0.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v19.0.1 (04/10/2022)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :rocket: Amélioration
|
|
7
|
+
- [#258](https://github.com/1024pix/pix-ui/pull/258) [FEATURE] Centre la PixModal en hauteur
|
|
8
|
+
- [#257](https://github.com/1024pix/pix-ui/pull/257) [FEATURE] Suppression du `padding` de la Sidebar pour permettre de mieux customiser
|
|
9
|
+
|
|
10
|
+
### :coffee: Autre
|
|
11
|
+
- [#256](https://github.com/1024pix/pix-ui/pull/256) [BUFGIX] Mettre à jour la page d'utilisation de la PixModal (PIX-5735)
|
|
12
|
+
|
|
3
13
|
## v19.0.0 (16/09/2022)
|
|
4
14
|
|
|
5
15
|
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
.pix-modal__overlay {
|
|
2
|
-
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 1000;
|
|
4
|
+
top: 0;
|
|
3
5
|
bottom: 0;
|
|
4
6
|
left: 0;
|
|
5
|
-
overflow-y: scroll;
|
|
6
|
-
position: fixed;
|
|
7
7
|
right: 0;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
text-align: center; // Used to center horizontally the inline-block modal content
|
|
10
|
+
padding: $spacing-xs 0;
|
|
11
|
+
background-color: rgba(52, 69, 99, 0.7);
|
|
10
12
|
transition: all 0.3s ease-in-out;
|
|
11
13
|
|
|
14
|
+
// This block is used to center vertically the modal
|
|
15
|
+
// if the content is less than 100vh
|
|
16
|
+
// Inspired by https://mui.com/material-ui/react-dialog/#scrolling-long-content
|
|
17
|
+
&::after {
|
|
18
|
+
content: "";
|
|
19
|
+
display: inline-block;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 0px;
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
&--hidden {
|
|
13
26
|
visibility: hidden;
|
|
14
27
|
opacity: 0;
|
|
@@ -23,16 +36,19 @@ $button-margin: 16px;
|
|
|
23
36
|
|
|
24
37
|
.pix-modal {
|
|
25
38
|
@import 'reset-css';
|
|
39
|
+
display: inline-block;
|
|
40
|
+
vertical-align: middle; // Centered vertically with the .pix-modal__overlay::after which is 100% height
|
|
41
|
+
width: 512px;
|
|
42
|
+
max-width: calc(100% - #{2 * $spacing-xs}); // Horizontal margin sets here to have extra space for the .pix-modal__overlay::after on mobile
|
|
43
|
+
text-align: initial;
|
|
44
|
+
background-color: $pix-neutral-10;
|
|
26
45
|
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
width: calc(100% - 24px);
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
overflow: hidden;
|
|
30
48
|
|
|
31
49
|
&__header {
|
|
32
50
|
background: $pix-neutral-0;
|
|
33
51
|
border-bottom: 1px solid $pix-neutral-20;
|
|
34
|
-
border-top-left-radius: 4px;
|
|
35
|
-
border-top-right-radius: 4px;
|
|
36
52
|
padding: $modal-padding;
|
|
37
53
|
display: flex;
|
|
38
54
|
align-items: flex-start;
|
|
@@ -64,7 +80,6 @@ $button-margin: 16px;
|
|
|
64
80
|
}
|
|
65
81
|
|
|
66
82
|
&__content {
|
|
67
|
-
background-color: $pix-neutral-10;
|
|
68
83
|
padding: $modal-padding;
|
|
69
84
|
font-size: 0.875rem;
|
|
70
85
|
color: $pix-neutral-90;
|
|
@@ -78,10 +93,7 @@ $button-margin: 16px;
|
|
|
78
93
|
}
|
|
79
94
|
|
|
80
95
|
&__footer {
|
|
81
|
-
background-color: $pix-neutral-10;
|
|
82
96
|
padding: 0 $modal-padding $modal-padding - $button-margin;
|
|
83
|
-
border-bottom-left-radius: 4px;
|
|
84
|
-
border-bottom-right-radius: 4px;
|
|
85
97
|
|
|
86
98
|
@include device-is('tablet') {
|
|
87
99
|
display: flex;
|
|
@@ -49,7 +49,7 @@ export const argTypes = {
|
|
|
49
49
|
showModal: {
|
|
50
50
|
name: 'showModal',
|
|
51
51
|
description: "Gérer l'ouverture de la modale",
|
|
52
|
-
type: { name: 'boolean', required:
|
|
52
|
+
type: { name: 'boolean', required: true },
|
|
53
53
|
control: { type: 'boolean' },
|
|
54
54
|
table: {
|
|
55
55
|
type: { summary: 'boolean' },
|