@wpmoo/ui 1.2.2 → 1.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI v1.2.2 (https://wpmoo.org/)
2
+ * Moo UI v1.4.0 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  *
@@ -69,6 +69,23 @@
69
69
  }
70
70
  }
71
71
 
72
+ html.scrollbar-overlay-native {
73
+ scrollbar-width: none;
74
+ }
75
+
76
+ html.scrollbar-overlay-native::-webkit-scrollbar {
77
+ display: none;
78
+ }
79
+
80
+ @media print, (forced-colors: active) {
81
+ html.scrollbar-overlay-native {
82
+ scrollbar-width: auto !important;
83
+ }
84
+ html.scrollbar-overlay-native::-webkit-scrollbar {
85
+ display: revert !important;
86
+ }
87
+ }
88
+
72
89
  @keyframes moo-spinner-rotate {
73
90
  to {
74
91
  transform: rotate(360deg) /* rtl:ignore */;
@@ -5403,8 +5420,10 @@ label.btn {
5403
5420
  flex: 0 0 auto;
5404
5421
  margin-top: 0.125rem;
5405
5422
  }
5406
- .alert-icon [data-icon] {
5423
+ .alert-icon [data-icon]:not([width]) {
5407
5424
  width: 1rem;
5425
+ }
5426
+ .alert-icon [data-icon]:not([height]) {
5408
5427
  height: 1rem;
5409
5428
  }
5410
5429
  .alert-body {
@@ -6009,6 +6028,15 @@ label.btn {
6009
6028
  .accordion-button:not(.collapsed) [data-icon] {
6010
6029
  transform: translateY(-50%) rotate(-180deg);
6011
6030
  }
6031
+ .accordion-button:not(.collapsed) [data-accordion-indicator="plus-minus"] {
6032
+ transform: translateY(-50%);
6033
+ }
6034
+ .accordion-button:not(.collapsed) [data-accordion-indicator="plus-minus"] [data-accordion-plus] {
6035
+ display: none;
6036
+ }
6037
+ .accordion-button:dir(rtl):has([data-accordion-indicator="plus-minus"]) {
6038
+ padding-inline-end: 3rem !important;
6039
+ }
6012
6040
  .accordion-flush .accordion-button {
6013
6041
  text-align: start;
6014
6042
  }
@@ -7970,6 +7998,70 @@ label.btn {
7970
7998
  .border-dashed {
7971
7999
  border-style: dashed !important;
7972
8000
  }
8001
+ .text-start {
8002
+ text-align: start !important;
8003
+ }
8004
+ .text-end {
8005
+ text-align: end !important;
8006
+ }
8007
+ .text-center {
8008
+ text-align: center !important;
8009
+ }
8010
+ @media (min-width: 576px) {
8011
+ .text-sm-start {
8012
+ text-align: start !important;
8013
+ }
8014
+ .text-sm-end {
8015
+ text-align: end !important;
8016
+ }
8017
+ .text-sm-center {
8018
+ text-align: center !important;
8019
+ }
8020
+ }
8021
+ @media (min-width: 768px) {
8022
+ .text-md-start {
8023
+ text-align: start !important;
8024
+ }
8025
+ .text-md-end {
8026
+ text-align: end !important;
8027
+ }
8028
+ .text-md-center {
8029
+ text-align: center !important;
8030
+ }
8031
+ }
8032
+ @media (min-width: 992px) {
8033
+ .text-lg-start {
8034
+ text-align: start !important;
8035
+ }
8036
+ .text-lg-end {
8037
+ text-align: end !important;
8038
+ }
8039
+ .text-lg-center {
8040
+ text-align: center !important;
8041
+ }
8042
+ }
8043
+ @media (min-width: 1200px) {
8044
+ .text-xl-start {
8045
+ text-align: start !important;
8046
+ }
8047
+ .text-xl-end {
8048
+ text-align: end !important;
8049
+ }
8050
+ .text-xl-center {
8051
+ text-align: center !important;
8052
+ }
8053
+ }
8054
+ @media (min-width: 1400px) {
8055
+ .text-xxl-start {
8056
+ text-align: start !important;
8057
+ }
8058
+ .text-xxl-end {
8059
+ text-align: end !important;
8060
+ }
8061
+ .text-xxl-center {
8062
+ text-align: center !important;
8063
+ }
8064
+ }
7973
8065
  :where( .scroll-fade, .scroll-fade-y, .scroll-fade-x, .scroll-fade-t, .scroll-fade-b, .scroll-fade-l, .scroll-fade-r, .scroll-fade-s, .scroll-fade-e ) {
7974
8066
  --scroll-fade-size: min(12%, 2.5rem);
7975
8067
  --scroll-fade-reveal: 6rem;
@@ -8138,6 +8230,61 @@ label.btn {
8138
8230
  --moo-scroll-fade-e: var(--moo-scroll-fade-e-size);
8139
8231
  }
8140
8232
  }
8233
+ .scrollbar-overlay-native {
8234
+ scrollbar-width: none;
8235
+ }
8236
+ .scrollbar-overlay-native::-webkit-scrollbar {
8237
+ display: none;
8238
+ }
8239
+ @media print, (forced-colors: active) {
8240
+ .scrollbar-overlay-native {
8241
+ scrollbar-width: auto !important;
8242
+ }
8243
+ .scrollbar-overlay-native::-webkit-scrollbar {
8244
+ display: revert !important;
8245
+ }
8246
+ }
8247
+ .scrollbar-overlay {
8248
+ --moo-scrollbar-overlay-hit-size: 1.5rem;
8249
+ --moo-scrollbar-overlay-thumb-size: 0.375rem;
8250
+ position: fixed;
8251
+ inset-block: 0;
8252
+ inset-inline-end: 0;
8253
+ z-index: 1030;
8254
+ inline-size: var(--moo-scrollbar-overlay-hit-size);
8255
+ color: var(--bs-secondary-color);
8256
+ opacity: 0;
8257
+ pointer-events: none;
8258
+ touch-action: none;
8259
+ transition: opacity 0.15s linear;
8260
+ }
8261
+ @media (prefers-reduced-motion: reduce) {
8262
+ .scrollbar-overlay {
8263
+ transition: none;
8264
+ }
8265
+ }
8266
+ .scrollbar-overlay[data-scrollbar-visible="true"], .scrollbar-overlay:focus-visible {
8267
+ opacity: 1;
8268
+ }
8269
+ .scrollbar-overlay[data-scrollbar-interactive="true"], .scrollbar-overlay:focus-visible {
8270
+ pointer-events: auto;
8271
+ }
8272
+ .scrollbar-overlay:hover, .scrollbar-overlay:focus-visible {
8273
+ color: var(--bs-emphasis-color);
8274
+ }
8275
+ .scrollbar-overlay-thumb {
8276
+ position: absolute;
8277
+ inset-block-start: 0;
8278
+ inset-inline-end: 0.25rem;
8279
+ inline-size: var(--moo-scrollbar-overlay-thumb-size);
8280
+ background-color: currentColor;
8281
+ border-radius: var(--bs-border-radius-pill);
8282
+ }
8283
+ @media print, (forced-colors: active) {
8284
+ .scrollbar-overlay {
8285
+ display: none !important;
8286
+ }
8287
+ }
8141
8288
  .scroll-smooth {
8142
8289
  scroll-behavior: smooth;
8143
8290
  }