@smwb/ui-css 2.3.0 → 2.5.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 +173 -20
  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;
@@ -3297,6 +3297,27 @@
3297
3297
  white-space: nowrap;
3298
3298
  opacity: 0.7;
3299
3299
  }
3300
+ @media (pointer: coarse) {
3301
+ .smwb-slider {
3302
+ padding-top: max(13px, calc((var(--smui-control-h-sm, 44px) - 4px) / 2));
3303
+ padding-bottom: max(13px, calc((var(--smui-control-h-sm, 44px) - 4px) / 2));
3304
+ }
3305
+ .smwb-slider_size-small {
3306
+ padding-top: max(13px, calc((var(--smui-control-h-sm, 44px) - 2px) / 2));
3307
+ padding-bottom: max(13px, calc((var(--smui-control-h-sm, 44px) - 2px) / 2));
3308
+ }
3309
+ .smwb-slider_size-large {
3310
+ padding-top: max(13px, calc((var(--smui-control-h-sm, 44px) - 6px) / 2));
3311
+ padding-bottom: max(13px, calc((var(--smui-control-h-sm, 44px) - 6px) / 2));
3312
+ }
3313
+ .smwb-slider--vertical {
3314
+ padding: 0 max(13px, calc((var(--smui-control-h-sm, 44px) - 4px) / 2));
3315
+ }
3316
+ .smwb-slider__thumb:after {
3317
+ width: max(42px, var(--smui-control-h-sm, 44px));
3318
+ height: max(42px, var(--smui-control-h-sm, 44px));
3319
+ }
3320
+ }
3300
3321
  .smwb-value-slider {
3301
3322
  display: flex;
3302
3323
  flex-direction: column;
@@ -3416,6 +3437,28 @@
3416
3437
  font: inherit;
3417
3438
  cursor: pointer;
3418
3439
  }
3440
+ @media (pointer: coarse) {
3441
+ .smwb-select-field__clear {
3442
+ align-items: center;
3443
+ justify-content: center;
3444
+ box-sizing: border-box;
3445
+ width: var(--smui-control-h-sm, 44px);
3446
+ height: var(--smui-control-h-sm, 44px);
3447
+ margin: calc((16px - var(--smui-control-h-sm, 44px)) / 2) 0;
3448
+ }
3449
+ .smwb-select-field .smwb-chip__delete-icon {
3450
+ position: relative;
3451
+ }
3452
+ .smwb-select-field .smwb-chip__delete-icon::after {
3453
+ content: "";
3454
+ position: absolute;
3455
+ top: 50%;
3456
+ left: 0;
3457
+ width: var(--smui-control-h-sm, 44px);
3458
+ height: var(--smui-control-h-sm, 44px);
3459
+ transform: translateY(-50%);
3460
+ }
3461
+ }
3419
3462
  .smwb-select-field__values {
3420
3463
  white-space: nowrap;
3421
3464
  font: inherit;
@@ -5099,6 +5142,9 @@
5099
5142
  display: flex;
5100
5143
  max-width: 100vw;
5101
5144
  }
5145
+ .smwb-sheet[data-smwb-swiping] {
5146
+ transition: none;
5147
+ }
5102
5148
  .smwb-sheet__header {
5103
5149
  display: flex;
5104
5150
  justify-content: space-between;
@@ -5110,6 +5156,11 @@
5110
5156
  .smwb-sheet__header .smwb-button {
5111
5157
  min-width: 0;
5112
5158
  }
5159
+ @media (pointer: coarse) {
5160
+ .smwb-sheet__header .smwb-button {
5161
+ min-width: var(--smui-control-h-sm, 44px);
5162
+ }
5163
+ }
5113
5164
  .smwb-sheet__drag-handle {
5114
5165
  position: absolute;
5115
5166
  display: flex;
@@ -5191,10 +5242,11 @@
5191
5242
  }
5192
5243
  .smwb-sheet.smwb-bottom {
5193
5244
  border-radius: 28px 28px 0 0;
5194
- bottom: 0;
5245
+ bottom: var(--smui-bottom-bar-offset, 0px);
5195
5246
  left: 0;
5196
5247
  width: 100%;
5197
5248
  height: var(--sizeProp);
5249
+ max-height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5198
5250
  transform: translateY(100%);
5199
5251
  flex-direction: column;
5200
5252
  }
@@ -5207,7 +5259,7 @@
5207
5259
  left: 0;
5208
5260
  width: 100%;
5209
5261
  height: var(--sizeProp);
5210
- max-height: calc(100% - var(--smui-sheet-offset-top, 0px));
5262
+ max-height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5211
5263
  transform: translateY(-100%);
5212
5264
  flex-direction: column;
5213
5265
  }
@@ -5218,7 +5270,7 @@
5218
5270
  border-radius: 0 28px 28px 0;
5219
5271
  top: var(--smui-sheet-offset-top, 0px);
5220
5272
  left: 0;
5221
- height: calc(100% - var(--smui-sheet-offset-top, 0px));
5273
+ height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5222
5274
  width: var(--sizeProp);
5223
5275
  transform: translateX(-100%);
5224
5276
  flex-direction: row-reverse;
@@ -5232,7 +5284,7 @@
5232
5284
  border-radius: 28px 0 0 28px;
5233
5285
  top: var(--smui-sheet-offset-top, 0px);
5234
5286
  right: 0;
5235
- height: calc(100% - var(--smui-sheet-offset-top, 0px));
5287
+ height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5236
5288
  width: var(--sizeProp);
5237
5289
  transform: translateX(100%);
5238
5290
  }
@@ -5245,7 +5297,7 @@
5245
5297
  top: var(--smui-sheet-offset-top, 0px);
5246
5298
  left: 0;
5247
5299
  width: 100%;
5248
- height: calc(100% - var(--smui-sheet-offset-top, 0px));
5300
+ height: calc(100% - var(--smui-sheet-offset-top, 0px) - var(--smui-bottom-bar-offset, 0px));
5249
5301
  display: flex;
5250
5302
  flex-direction: column;
5251
5303
  z-index: 100;
@@ -5265,7 +5317,7 @@
5265
5317
  }
5266
5318
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-bottom,
5267
5319
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-bottom {
5268
- transform: translateY(0);
5320
+ transform: translateY(var(--smwb-sheet-swipe, 0px));
5269
5321
  }
5270
5322
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-bottom.smwb-expanded,
5271
5323
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-bottom.smwb-expanded {
@@ -5289,7 +5341,7 @@
5289
5341
  }
5290
5342
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-left,
5291
5343
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-left {
5292
- transform: translateX(0);
5344
+ transform: translateX(var(--smwb-sheet-swipe, 0px));
5293
5345
  }
5294
5346
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-left.smwb-expanded,
5295
5347
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-left.smwb-expanded {
@@ -5301,7 +5353,7 @@
5301
5353
  }
5302
5354
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-right,
5303
5355
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-right {
5304
- transform: translateX(0);
5356
+ transform: translateX(var(--smwb-sheet-swipe, 0px));
5305
5357
  }
5306
5358
  .smwb-sheet__default.smwb-entered .smwb-sheet.smwb-right.smwb-expanded,
5307
5359
  .smwb-sheet__overlay.smwb-entered .smwb-sheet.smwb-right.smwb-expanded {
@@ -6860,6 +6912,12 @@
6860
6912
  outline: 2px solid var(--smui-primaryColor);
6861
6913
  outline-offset: 2px;
6862
6914
  }
6915
+ @media (pointer: coarse) {
6916
+ .smwb-head-cell_sortable .smwb-head-cell__content {
6917
+ min-width: var(--smui-control-h-sm, 44px);
6918
+ min-height: var(--smui-control-h-sm, 44px);
6919
+ }
6920
+ }
6863
6921
  .smwb-table__row_selected {
6864
6922
  background-color: var(--smui-onSurfaceHover);
6865
6923
  }
@@ -7437,6 +7495,15 @@
7437
7495
  .smwb-date-picker__icon-button--small {
7438
7496
  padding: 5px;
7439
7497
  }
7498
+ @media (pointer: coarse) {
7499
+ .smwb-date-picker__icon-button:not(.smwb-date-picker__icon-button--small) {
7500
+ box-sizing: border-box;
7501
+ align-items: center;
7502
+ justify-content: center;
7503
+ min-width: var(--smui-control-h-sm, 44px);
7504
+ min-height: var(--smui-control-h-sm, 44px);
7505
+ }
7506
+ }
7440
7507
  .smwb-date-picker__icon-button--edge-start {
7441
7508
  margin-left: -12px;
7442
7509
  }
@@ -8229,6 +8296,12 @@
8229
8296
  .smwb-breadcrumbs__expand:hover {
8230
8297
  background-color: var(--smui-onSurfaceActive);
8231
8298
  }
8299
+ @media (pointer: coarse) {
8300
+ .smwb-breadcrumbs__expand {
8301
+ min-width: var(--smui-control-h-sm, 44px);
8302
+ min-height: var(--smui-control-h-sm, 44px);
8303
+ }
8304
+ }
8232
8305
  .smwb-breadcrumbs--no-wrap {
8233
8306
  min-width: 0;
8234
8307
  }
@@ -8806,6 +8879,12 @@
8806
8879
  color: var(--smui-onSurfaceVariant);
8807
8880
  cursor: pointer;
8808
8881
  }
8882
+ @media (pointer: coarse) {
8883
+ .smwb-dag-view__control {
8884
+ width: max(32px, var(--smui-control-h-sm, 44px));
8885
+ height: max(32px, var(--smui-control-h-sm, 44px));
8886
+ }
8887
+ }
8809
8888
  .smwb-dag-view__control svg {
8810
8889
  width: 18px;
8811
8890
  height: 18px;
@@ -8930,6 +9009,12 @@
8930
9009
  background-color: var(--smui-surfaceBackground);
8931
9010
  color: var(--smui-onSurfaceColor);
8932
9011
  }
9012
+ @media (pointer: coarse) {
9013
+ .smwb-composer {
9014
+ --smwb-composer-icon-button-size: max(36px, var(--smui-control-h-sm, 44px));
9015
+ --smwb-composer-field-padding-y: calc((var(--smwb-composer-icon-button-size) - 1.5rem) / 2);
9016
+ }
9017
+ }
8933
9018
  .smwb-composer__attachments {
8934
9019
  grid-area: attachments;
8935
9020
  min-width: 0;
@@ -8944,13 +9029,13 @@
8944
9029
  box-sizing: border-box;
8945
9030
  margin: 0;
8946
9031
  border: 0;
8947
- padding: 6px 8px;
9032
+ padding: var(--smwb-composer-field-padding-y, 6px) 8px;
8948
9033
  font: inherit;
8949
9034
  letter-spacing: inherit;
8950
9035
  line-height: 1.5rem;
8951
9036
  overflow-wrap: anywhere;
8952
- min-height: calc(var(--smwb-composer-min-rows, 1) * 1.5rem + 2 * 6px);
8953
- max-height: calc(var(--smwb-composer-max-rows, 8) * 1.5rem + 2 * 6px);
9037
+ min-height: calc(var(--smwb-composer-min-rows, 1) * 1.5rem + 2 * var(--smwb-composer-field-padding-y, 6px));
9038
+ max-height: calc(var(--smwb-composer-max-rows, 8) * 1.5rem + 2 * var(--smwb-composer-field-padding-y, 6px));
8954
9039
  content: attr(data-value) " ";
8955
9040
  grid-area: 1 / 1;
8956
9041
  visibility: hidden;
@@ -8962,13 +9047,13 @@
8962
9047
  box-sizing: border-box;
8963
9048
  margin: 0;
8964
9049
  border: 0;
8965
- padding: 6px 8px;
9050
+ padding: var(--smwb-composer-field-padding-y, 6px) 8px;
8966
9051
  font: inherit;
8967
9052
  letter-spacing: inherit;
8968
9053
  line-height: 1.5rem;
8969
9054
  overflow-wrap: anywhere;
8970
- min-height: calc(var(--smwb-composer-min-rows, 1) * 1.5rem + 2 * 6px);
8971
- max-height: calc(var(--smwb-composer-max-rows, 8) * 1.5rem + 2 * 6px);
9055
+ min-height: calc(var(--smwb-composer-min-rows, 1) * 1.5rem + 2 * var(--smwb-composer-field-padding-y, 6px));
9056
+ max-height: calc(var(--smwb-composer-max-rows, 8) * 1.5rem + 2 * var(--smwb-composer-field-padding-y, 6px));
8972
9057
  grid-area: 1 / 1;
8973
9058
  display: block;
8974
9059
  width: 100%;
@@ -8989,8 +9074,8 @@
8989
9074
  justify-content: center;
8990
9075
  box-sizing: border-box;
8991
9076
  flex: none;
8992
- width: 36px;
8993
- height: 36px;
9077
+ width: var(--smwb-composer-icon-button-size, 36px);
9078
+ height: var(--smwb-composer-icon-button-size, 36px);
8994
9079
  margin: 0;
8995
9080
  padding: 0;
8996
9081
  border: 0;
@@ -9106,7 +9191,7 @@
9106
9191
  }
9107
9192
  .smwb-composer_inline .smwb-composer__counter {
9108
9193
  align-self: end;
9109
- padding-bottom: calc((36px - 1rem) / 2);
9194
+ padding-bottom: calc((var(--smwb-composer-icon-button-size, 36px) - 1rem) / 2);
9110
9195
  }
9111
9196
  .smwb-composer_inline .smwb-composer__attach ~ .smwb-composer__toolbar {
9112
9197
  margin-inline-start: 0;
@@ -9718,6 +9803,74 @@
9718
9803
  .smwb-stack {
9719
9804
  min-width: 0;
9720
9805
  }
9806
+ .smwb-stack--direction-base-row {
9807
+ flex-direction: row;
9808
+ }
9809
+ .smwb-stack--direction-base-row-reverse {
9810
+ flex-direction: row-reverse;
9811
+ }
9812
+ .smwb-stack--direction-base-column {
9813
+ flex-direction: column;
9814
+ }
9815
+ .smwb-stack--direction-base-column-reverse {
9816
+ flex-direction: column-reverse;
9817
+ }
9818
+ @media (min-width: 420px) {
9819
+ .smwb-stack--direction-sm-row {
9820
+ flex-direction: row;
9821
+ }
9822
+ .smwb-stack--direction-sm-row-reverse {
9823
+ flex-direction: row-reverse;
9824
+ }
9825
+ .smwb-stack--direction-sm-column {
9826
+ flex-direction: column;
9827
+ }
9828
+ .smwb-stack--direction-sm-column-reverse {
9829
+ flex-direction: column-reverse;
9830
+ }
9831
+ }
9832
+ @media (min-width: 768px) {
9833
+ .smwb-stack--direction-md-row {
9834
+ flex-direction: row;
9835
+ }
9836
+ .smwb-stack--direction-md-row-reverse {
9837
+ flex-direction: row-reverse;
9838
+ }
9839
+ .smwb-stack--direction-md-column {
9840
+ flex-direction: column;
9841
+ }
9842
+ .smwb-stack--direction-md-column-reverse {
9843
+ flex-direction: column-reverse;
9844
+ }
9845
+ }
9846
+ @media (min-width: 1024px) {
9847
+ .smwb-stack--direction-lg-row {
9848
+ flex-direction: row;
9849
+ }
9850
+ .smwb-stack--direction-lg-row-reverse {
9851
+ flex-direction: row-reverse;
9852
+ }
9853
+ .smwb-stack--direction-lg-column {
9854
+ flex-direction: column;
9855
+ }
9856
+ .smwb-stack--direction-lg-column-reverse {
9857
+ flex-direction: column-reverse;
9858
+ }
9859
+ }
9860
+ @media (min-width: 1200px) {
9861
+ .smwb-stack--direction-xl-row {
9862
+ flex-direction: row;
9863
+ }
9864
+ .smwb-stack--direction-xl-row-reverse {
9865
+ flex-direction: row-reverse;
9866
+ }
9867
+ .smwb-stack--direction-xl-column {
9868
+ flex-direction: column;
9869
+ }
9870
+ .smwb-stack--direction-xl-column-reverse {
9871
+ flex-direction: column-reverse;
9872
+ }
9873
+ }
9721
9874
  .smwb-stack__divider {
9722
9875
  display: flex;
9723
9876
  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.5.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.5.0",
23
23
  "less": "^4.6.4"
24
24
  },
25
25
  "homepage": "https://sourcecraft.dev/elfenmail/ui",