@planningcenter/sweetest-alert 0.3.1 → 0.3.2
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/README.md +6 -0
- package/dist/style.css +16 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,6 +11,12 @@ A lightweight, React alert/modal dialog component that replaces SweetAlert2 with
|
|
|
11
11
|
yarn add @planningcenter/sweetest-alert
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
In your product’s main CSS file (ex. `app/assets/stylesheets/application.css`) add `sweetest_alert.css`:
|
|
15
|
+
|
|
16
|
+
```css
|
|
17
|
+
@import "@planningcenter/tapestry/dist/index.css";
|
|
18
|
+
``
|
|
19
|
+
|
|
14
20
|
### Peer Dependencies
|
|
15
21
|
|
|
16
22
|
This package requires the following peer dependencies:
|
package/dist/style.css
CHANGED
|
@@ -8,32 +8,33 @@
|
|
|
8
8
|
max-width: 600px;
|
|
9
9
|
padding: var(--t-spacing-4) var(--t-spacing-4) 0;
|
|
10
10
|
text-align: center;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
.pco-sweetest-alert::backdrop {
|
|
14
|
+
background: var(--t-fill-color-transparency-dark-040);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.pco-sweetest-alert__icon {
|
|
18
18
|
height: var(--t-element-size-3xl);
|
|
19
19
|
margin-block: var(--t-spacing-1);
|
|
20
20
|
width: var(--t-element-size-3xl);
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
.pco-sweetest-alert__icon.pco-sweetest-alert--info {
|
|
24
|
+
fill: var(--t-icon-color-status-info-primary);
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
.pco-sweetest-alert__icon.pco-sweetest-alert--success {
|
|
28
|
+
fill: var(--t-icon-color-status-success-primary);
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
.pco-sweetest-alert__icon.pco-sweetest-alert--warning {
|
|
32
|
+
fill: var(--t-icon-color-status-warning-primary);
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
.pco-sweetest-alert__icon.pco-sweetest-alert--danger,
|
|
36
|
+
.pco-sweetest-alert__icon.pco-sweetest-alert--error {
|
|
37
|
+
fill: var(--t-icon-color-status-error-primary);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.pco-sweetest-alert__title {
|