@jk-core/components 1.1.5 → 1.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jk-core/components",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "types": "./dist/index.d.ts",
@@ -61,6 +61,10 @@ $size: 40px;
61
61
  justify-content: center;
62
62
  gap: 10px;
63
63
  padding: 10px 0;
64
+
65
+ & > * {
66
+ user-select: none;
67
+ }
64
68
  }
65
69
 
66
70
  .arrow {
@@ -96,7 +96,7 @@ export default function Pagination({ totalPage, currentPage, onPageClick, large
96
96
  className={styles.track}
97
97
  />
98
98
  <div className={styles.portal}>
99
- {selectedPage > 3 && (
99
+ {selectedPage > (3 + weight / 2) && (
100
100
  < >
101
101
  <button
102
102
  className={styles.page}
@@ -131,7 +131,7 @@ export default function Pagination({ totalPage, currentPage, onPageClick, large
131
131
  </div>
132
132
  </div>
133
133
  <div className={styles.portal}>
134
- {selectedPage < totalPage - 2 && (
134
+ {selectedPage < totalPage - (2 + weight / 2) && (
135
135
  <>
136
136
  <span className={styles.portal__ellipsis}>•••</span>
137
137
  <button
@@ -60,7 +60,7 @@ export default function SegmentButton({ width, stretch, option, selected }: Segm
60
60
  <button
61
61
  className={cn({
62
62
  [styles.button]: true,
63
- [styles['button--selected']]: optionIndex === selected,
63
+ [styles['button--selected']]: optionIndex === selectedIndex,
64
64
  })}
65
65
  key={item.text}
66
66
  type="button"