@smwb/ui-css 2.3.0 → 2.4.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.
Files changed (2) hide show
  1. package/dist/ui.css +83 -11
  2. package/package.json +2 -2
package/dist/ui.css CHANGED
@@ -2039,17 +2039,17 @@
2039
2039
  top: 1rem;
2040
2040
  }
2041
2041
  .smwb-snackbars.smwb-bottom {
2042
- bottom: 1rem;
2042
+ bottom: calc(1rem + var(--smui-bottom-bar-offset, 0px));
2043
2043
  left: 50%;
2044
2044
  transform: translateX(-50%);
2045
2045
  }
2046
2046
  .smwb-snackbars.smwb-bottom-right {
2047
2047
  right: 1rem;
2048
- bottom: 1rem;
2048
+ bottom: calc(1rem + var(--smui-bottom-bar-offset, 0px));
2049
2049
  }
2050
2050
  .smwb-snackbars.smwb-bottom-left {
2051
2051
  left: 1rem;
2052
- bottom: 1rem;
2052
+ bottom: calc(1rem + var(--smui-bottom-bar-offset, 0px));
2053
2053
  }
2054
2054
  .smwb-snackbar {
2055
2055
  box-sizing: border-box;
@@ -5099,6 +5099,9 @@
5099
5099
  display: flex;
5100
5100
  max-width: 100vw;
5101
5101
  }
5102
+ .smwb-sheet[data-smwb-swiping] {
5103
+ transition: none;
5104
+ }
5102
5105
  .smwb-sheet__header {
5103
5106
  display: flex;
5104
5107
  justify-content: space-between;
@@ -5191,10 +5194,11 @@
5191
5194
  }
5192
5195
  .smwb-sheet.smwb-bottom {
5193
5196
  border-radius: 28px 28px 0 0;
5194
- bottom: 0;
5197
+ bottom: var(--smui-bottom-bar-offset, 0px);
5195
5198
  left: 0;
5196
5199
  width: 100%;
5197
5200
  height: var(--sizeProp);
5201
+ max-height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5198
5202
  transform: translateY(100%);
5199
5203
  flex-direction: column;
5200
5204
  }
@@ -5207,7 +5211,7 @@
5207
5211
  left: 0;
5208
5212
  width: 100%;
5209
5213
  height: var(--sizeProp);
5210
- max-height: calc(100% - var(--smui-sheet-offset-top, 0px));
5214
+ max-height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5211
5215
  transform: translateY(-100%);
5212
5216
  flex-direction: column;
5213
5217
  }
@@ -5218,7 +5222,7 @@
5218
5222
  border-radius: 0 28px 28px 0;
5219
5223
  top: var(--smui-sheet-offset-top, 0px);
5220
5224
  left: 0;
5221
- height: calc(100% - var(--smui-sheet-offset-top, 0px));
5225
+ height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5222
5226
  width: var(--sizeProp);
5223
5227
  transform: translateX(-100%);
5224
5228
  flex-direction: row-reverse;
@@ -5232,7 +5236,7 @@
5232
5236
  border-radius: 28px 0 0 28px;
5233
5237
  top: var(--smui-sheet-offset-top, 0px);
5234
5238
  right: 0;
5235
- height: calc(100% - var(--smui-sheet-offset-top, 0px));
5239
+ height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5236
5240
  width: var(--sizeProp);
5237
5241
  transform: translateX(100%);
5238
5242
  }
@@ -5245,7 +5249,7 @@
5245
5249
  top: var(--smui-sheet-offset-top, 0px);
5246
5250
  left: 0;
5247
5251
  width: 100%;
5248
- height: calc(100% - var(--smui-sheet-offset-top, 0px));
5252
+ height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5249
5253
  display: flex;
5250
5254
  flex-direction: column;
5251
5255
  z-index: 100;
@@ -5265,7 +5269,7 @@
5265
5269
  }
5266
5270
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-bottom,
5267
5271
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-bottom {
5268
- transform: translateY(0);
5272
+ transform: translateY(var(--smwb-sheet-swipe, 0px));
5269
5273
  }
5270
5274
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-bottom.smwb-expanded,
5271
5275
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-bottom.smwb-expanded {
@@ -5289,7 +5293,7 @@
5289
5293
  }
5290
5294
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-left,
5291
5295
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-left {
5292
- transform: translateX(0);
5296
+ transform: translateX(var(--smwb-sheet-swipe, 0px));
5293
5297
  }
5294
5298
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-left.smwb-expanded,
5295
5299
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-left.smwb-expanded {
@@ -5301,7 +5305,7 @@
5301
5305
  }
5302
5306
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-right,
5303
5307
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-right {
5304
- transform: translateX(0);
5308
+ transform: translateX(var(--smwb-sheet-swipe, 0px));
5305
5309
  }
5306
5310
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-right.smwb-expanded,
5307
5311
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-right.smwb-expanded {
@@ -9718,6 +9722,74 @@
9718
9722
  .smwb-stack {
9719
9723
  min-width: 0;
9720
9724
  }
9725
+ .smwb-stack--direction-base-row {
9726
+ flex-direction: row;
9727
+ }
9728
+ .smwb-stack--direction-base-row-reverse {
9729
+ flex-direction: row-reverse;
9730
+ }
9731
+ .smwb-stack--direction-base-column {
9732
+ flex-direction: column;
9733
+ }
9734
+ .smwb-stack--direction-base-column-reverse {
9735
+ flex-direction: column-reverse;
9736
+ }
9737
+ @media (min-width: 420px) {
9738
+ .smwb-stack--direction-sm-row {
9739
+ flex-direction: row;
9740
+ }
9741
+ .smwb-stack--direction-sm-row-reverse {
9742
+ flex-direction: row-reverse;
9743
+ }
9744
+ .smwb-stack--direction-sm-column {
9745
+ flex-direction: column;
9746
+ }
9747
+ .smwb-stack--direction-sm-column-reverse {
9748
+ flex-direction: column-reverse;
9749
+ }
9750
+ }
9751
+ @media (min-width: 768px) {
9752
+ .smwb-stack--direction-md-row {
9753
+ flex-direction: row;
9754
+ }
9755
+ .smwb-stack--direction-md-row-reverse {
9756
+ flex-direction: row-reverse;
9757
+ }
9758
+ .smwb-stack--direction-md-column {
9759
+ flex-direction: column;
9760
+ }
9761
+ .smwb-stack--direction-md-column-reverse {
9762
+ flex-direction: column-reverse;
9763
+ }
9764
+ }
9765
+ @media (min-width: 1024px) {
9766
+ .smwb-stack--direction-lg-row {
9767
+ flex-direction: row;
9768
+ }
9769
+ .smwb-stack--direction-lg-row-reverse {
9770
+ flex-direction: row-reverse;
9771
+ }
9772
+ .smwb-stack--direction-lg-column {
9773
+ flex-direction: column;
9774
+ }
9775
+ .smwb-stack--direction-lg-column-reverse {
9776
+ flex-direction: column-reverse;
9777
+ }
9778
+ }
9779
+ @media (min-width: 1200px) {
9780
+ .smwb-stack--direction-xl-row {
9781
+ flex-direction: row;
9782
+ }
9783
+ .smwb-stack--direction-xl-row-reverse {
9784
+ flex-direction: row-reverse;
9785
+ }
9786
+ .smwb-stack--direction-xl-column {
9787
+ flex-direction: column;
9788
+ }
9789
+ .smwb-stack--direction-xl-column-reverse {
9790
+ flex-direction: column-reverse;
9791
+ }
9792
+ }
9721
9793
  .smwb-stack__divider {
9722
9794
  display: flex;
9723
9795
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-css",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Prebuilt aggregate stylesheet for the @smwb design system (compiled from @smwb/ui-styles). Framework-agnostic — shared by the React and SolidJS libraries.",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -19,7 +19,7 @@
19
19
  "build": "lessc -rp=/ ../styles/less/components.less ./dist/ui.css"
20
20
  },
21
21
  "devDependencies": {
22
- "@smwb/ui-styles": "^2.3.0",
22
+ "@smwb/ui-styles": "^2.4.0",
23
23
  "less": "^4.6.4"
24
24
  },
25
25
  "homepage": "https://sourcecraft.dev/elfenmail/ui",