sveltacular 1.0.10 → 1.0.11

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.
@@ -2,3 +2,4 @@ export { default as FlexCol } from './flex-col.svelte';
2
2
  export { default as FlexRow } from './flex-row.svelte';
3
3
  export { default as FlexItem } from './flex-item.svelte';
4
4
  export { default as Grid } from './grid.svelte';
5
+ export { default as Main } from './main/main.svelte';
@@ -2,3 +2,4 @@ export { default as FlexCol } from './flex-col.svelte';
2
2
  export { default as FlexRow } from './flex-row.svelte';
3
3
  export { default as FlexItem } from './flex-item.svelte';
4
4
  export { default as Grid } from './grid.svelte';
5
+ export { default as Main } from './main/main.svelte';
@@ -9,6 +9,11 @@
9
9
  </script>
10
10
 
11
11
  <main>
12
+ <a
13
+ id="top"
14
+ aria-hidden="true"
15
+ style="position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none;"
16
+ ></a>
12
17
  {@render children?.()}
13
18
  </main>
14
19
 
@@ -16,6 +21,7 @@
16
21
  BREAKPOINTS - Responsive Design
17
22
  ============================================ */
18
23
  main {
24
+ position: relative;
19
25
  display: flex;
20
26
  flex-direction: column;
21
27
  align-items: stretch;
@@ -23,6 +29,9 @@ main {
23
29
  max-width: 1000px; /* Desktop: good for 1366px-1920px screens */
24
30
  margin: 0 auto;
25
31
  padding: 0 var(--spacing-base, 1rem);
32
+ /* Improve touch scrolling on iOS */
33
+ -webkit-overflow-scrolling: touch;
34
+ overflow-x: hidden; /* Prevent horizontal scroll */
26
35
  /* Responsive padding for larger screens */
27
36
  }
28
37
  @media (min-width: 641px) {
@@ -38,4 +47,12 @@ main {
38
47
  main {
39
48
  max-width: 1440px;
40
49
  }
50
+ }
51
+ main {
52
+ /* Add extra bottom padding on mobile for better UX */
53
+ }
54
+ @media (max-width: 319.98px) {
55
+ main {
56
+ padding-bottom: 2rem;
57
+ }
41
58
  }</style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltacular",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "A Svelte component library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",