@planningcenter/sweetest-alert 0.3.1 → 0.3.3

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 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
- &::backdrop {
13
- background: var(--t-fill-color-transparency-dark-040);
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
- &.pco-sweetest-alert--info {
23
- fill: var(--t-icon-color-status-info-primary);
24
- }
23
+ .pco-sweetest-alert__icon.pco-sweetest-alert--info {
24
+ fill: var(--t-icon-color-status-info-primary);
25
+ }
25
26
 
26
- &.pco-sweetest-alert--success {
27
- fill: var(--t-icon-color-status-success-primary);
28
- }
27
+ .pco-sweetest-alert__icon.pco-sweetest-alert--success {
28
+ fill: var(--t-icon-color-status-success-primary);
29
+ }
29
30
 
30
- &.pco-sweetest-alert--warning {
31
- fill: var(--t-icon-color-status-warning-primary);
32
- }
31
+ .pco-sweetest-alert__icon.pco-sweetest-alert--warning {
32
+ fill: var(--t-icon-color-status-warning-primary);
33
+ }
33
34
 
34
- &:is(.pco-sweetest-alert--danger, .pco-sweetest-alert--error) {
35
- fill: var(--t-icon-color-status-error-primary);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/sweetest-alert",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "The sweetest alert ever",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.22",
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@eslint/js": "^9.37.0",
50
50
  "@planningcenter/icons": "^15.26.0",
51
- "@planningcenter/stylelint-config-pco": "^0.0.5",
51
+ "@planningcenter/stylelint-config-pco": "^0.0.6",
52
52
  "@planningcenter/tapestry": "^2.5.0",
53
53
  "@testing-library/dom": "^10.4.1",
54
54
  "@testing-library/jest-dom": "^6.9.1",