@vixoniccom/aniversarios 1.2.1-dev.0 → 1.2.1-dev.1
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/CHANGELOG.md +7 -0
- package/build.zip +0 -0
- package/package.json +1 -1
- package/src/components/ItemsContainer/index.tsx +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.1-dev.1](https://github.com/Vixonic/store-aniversarios/compare/v1.2.1-dev.0...v1.2.1-dev.1) (2025-05-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* show partial pages re-enabled ([2fa3e85](https://github.com/Vixonic/store-aniversarios/commit/2fa3e853200edad4b8a90da526497761fcb51fa1))
|
|
11
|
+
|
|
5
12
|
### [1.2.1-dev.0](https://github.com/Vixonic/store-aniversarios/compare/v1.2.0...v1.2.1-dev.0) (2025-05-02)
|
|
6
13
|
|
|
7
14
|
|
package/build.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -75,9 +75,11 @@ export const ItemsContainer = ({ animation, items, animate }: Props) => {
|
|
|
75
75
|
|
|
76
76
|
let currentIndex = lastIndex % items.length
|
|
77
77
|
const newItems: any = []
|
|
78
|
+
const remainingItems = items.length - currentIndex
|
|
79
|
+
const itemsToShow = Math.min(itemsCount, remainingItems)
|
|
78
80
|
|
|
79
|
-
for (let i = 0; i <
|
|
80
|
-
const itemIndex =
|
|
81
|
+
for (let i = 0; i < itemsToShow; i++) {
|
|
82
|
+
const itemIndex = currentIndex + i
|
|
81
83
|
const item = items[itemIndex]
|
|
82
84
|
|
|
83
85
|
newItems.push(
|
|
@@ -88,7 +90,7 @@ export const ItemsContainer = ({ animation, items, animate }: Props) => {
|
|
|
88
90
|
ic_rowIndex: Math.floor(i / columns),
|
|
89
91
|
ic_columnIndex: i % columns,
|
|
90
92
|
ic_firstChild: i === 0,
|
|
91
|
-
ic_lastChild: i === (
|
|
93
|
+
ic_lastChild: i === (itemsToShow - 1)
|
|
92
94
|
}}
|
|
93
95
|
style={animations.getInitialStyle()}
|
|
94
96
|
width={`${(100 - ((columnsGap * (columns - 1)))) / columns}%`}
|
|
@@ -101,7 +103,7 @@ export const ItemsContainer = ({ animation, items, animate }: Props) => {
|
|
|
101
103
|
)
|
|
102
104
|
}
|
|
103
105
|
|
|
104
|
-
setLastIndex((currentIndex +
|
|
106
|
+
setLastIndex((currentIndex + itemsToShow) % items.length)
|
|
105
107
|
|
|
106
108
|
if (newItems.length > 0) {
|
|
107
109
|
setShow(true)
|