@faststore/ui 3.17.0 → 3.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  }
48
48
  ],
49
49
  "dependencies": {
50
- "@faststore/components": "^3.17.0",
50
+ "@faststore/components": "^3.18.0",
51
51
  "include-media": "^1.4.10",
52
52
  "modern-normalize": "^1.1.0",
53
53
  "react-swipeable": "^7.0.0",
@@ -69,5 +69,5 @@
69
69
  "volta": {
70
70
  "extends": "../../package.json"
71
71
  },
72
- "gitHead": "a1bc035a34a109fde154afb16797c1f9e180ed21"
72
+ "gitHead": "ba979131660bdfcfb18ed1f144c50f9643b49ecb"
73
73
  }
@@ -42,6 +42,12 @@
42
42
  // Body
43
43
  --fs-modal-body-padding : var(--fs-spacing-1) var(--fs-spacing-4) var(--fs-spacing-5);
44
44
 
45
+ // Footer
46
+ --fs-modal-footer-padding : var(--fs-spacing-3) 0 var(--fs-spacing-3);
47
+ --fs-modal-footer-box-shadow : 0 -1px 15px 0 rgb(0 0 0 / 10.2%);
48
+ --fs-modal-footer-actions-padding : var(--fs-spacing-1) var(--fs-spacing-4);
49
+ --fs-modal-footer-actions-gap : var(--fs-spacing-3);
50
+
45
51
  position: fixed;
46
52
  top: var(--fs-modal-position-top);
47
53
  right: var(--fs-modal-position-right);
@@ -94,4 +100,31 @@
94
100
  [data-fs-modal-body] {
95
101
  padding: var(--fs-modal-body-padding);
96
102
  }
103
+
104
+ [data-fs-modal-footer] {
105
+ padding: var(--fs-modal-footer-padding);
106
+ box-shadow: var(--fs-modal-footer-box-shadow);
107
+
108
+ [data-fs-modal-footer-actions] {
109
+ display: flex;
110
+ gap: var(--fs-modal-footer-actions-gap);
111
+ align-items: center;
112
+ justify-content: flex-end;
113
+ padding: var(--fs-modal-footer-actions-padding);
114
+
115
+ > * {
116
+ flex-shrink: 0;
117
+ }
118
+
119
+ &[data-fs-modal-footer-actions-direction="vertical"] {
120
+ flex-direction: column;
121
+ align-items: flex-end;
122
+ justify-content: center;
123
+ }
124
+
125
+ &[data-fs-modal-footer-actions-wrap="true"] {
126
+ flex-wrap: wrap;
127
+ }
128
+ }
129
+ }
97
130
  }