@lumx/core 4.0.0 → 4.0.1-alpha.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/lumx.css CHANGED
@@ -10883,6 +10883,19 @@ table {
10883
10883
  flex: 1 1 auto;
10884
10884
  min-height: 0;
10885
10885
  }
10886
+ .lumx-slideshow__wrapper--mode-scroll-snap {
10887
+ overflow-x: auto;
10888
+ scroll-snap-type: x mandatory;
10889
+ scrollbar-width: none;
10890
+ }
10891
+ @media (prefers-reduced-motion: no-preference) {
10892
+ .lumx-slideshow__wrapper--mode-scroll-snap {
10893
+ scroll-behavior: smooth;
10894
+ }
10895
+ }
10896
+ .lumx-slideshow__wrapper--mode-scroll-snap::-webkit-scrollbar {
10897
+ display: none;
10898
+ }
10886
10899
  .lumx-slideshow__controls {
10887
10900
  margin-top: 16px;
10888
10901
  }
@@ -10897,6 +10910,7 @@ table {
10897
10910
  overflow: hidden;
10898
10911
  max-width: 100%;
10899
10912
  flex: 0 0 100%;
10913
+ scroll-snap-align: start;
10900
10914
  }
10901
10915
 
10902
10916
  /* Slideshow item
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
36
36
  },
37
37
  "sideEffects": false,
38
- "version": "4.0.0",
38
+ "version": "4.0.1-alpha.0",
39
39
  "devDependencies": {
40
40
  "@rollup/plugin-typescript": "^12.3.0",
41
41
  "@types/react": "^17.0.2",
@@ -38,6 +38,20 @@
38
38
  flex: 1 1 auto;
39
39
  min-height: 0;
40
40
  }
41
+
42
+ &--mode-scroll-snap {
43
+ overflow-x: auto;
44
+ scroll-snap-type: x mandatory;
45
+ scrollbar-width: none;
46
+
47
+ @media (prefers-reduced-motion: no-preference) {
48
+ scroll-behavior: smooth;
49
+ }
50
+
51
+ &::-webkit-scrollbar {
52
+ display: none;
53
+ }
54
+ }
41
55
  }
42
56
 
43
57
  &__controls {
@@ -57,6 +71,7 @@
57
71
  overflow: hidden;
58
72
  max-width: 100%;
59
73
  flex: 0 0 100%;
74
+ scroll-snap-align: start;
60
75
  }
61
76
 
62
77
  /* Slideshow item
@@ -147,7 +162,7 @@
147
162
  width: $item-size*2;
148
163
  border-radius: $lumx-border-radius;
149
164
  border-width: 0;
150
-
165
+
151
166
  &[data-focus-visible-added] {
152
167
  @include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "primary");
153
168
  }