@cyberpunk-vue/components 1.12.2 → 1.12.3

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/dist/index.mjs CHANGED
@@ -3062,6 +3062,10 @@ var se = {
3062
3062
  type: Number,
3063
3063
  default: void 0
3064
3064
  },
3065
+ total: {
3066
+ type: Number,
3067
+ default: void 0
3068
+ },
3065
3069
  size: {
3066
3070
  type: [String, Number],
3067
3071
  default: "md"
@@ -3185,8 +3189,8 @@ var se = {
3185
3189
  let e = p();
3186
3190
  return n.max === void 0 || n.max >= e.length ? e.length : n.max;
3187
3191
  }), h = r(() => {
3188
- let e = p();
3189
- return n.max === void 0 || n.max >= e.length ? 0 : e.length - n.max;
3192
+ let e = p(), t = n.max === void 0 ? e.length : Math.min(n.max, e.length);
3193
+ return n.total !== void 0 && n.total > t ? n.total - t : n.max === void 0 || n.max >= e.length ? 0 : e.length - n.max;
3190
3194
  }), g = r(() => n.collapseShape ?? n.shape), _ = r(() => [
3191
3195
  c.e("counter"),
3192
3196
  c.bem("", "counter", `shape-${g.value}`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyberpunk-vue/components",
3
- "version": "1.12.2",
3
+ "version": "1.12.3",
4
4
  "description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -23,9 +23,9 @@
23
23
  "vue": "^3.5.0"
24
24
  },
25
25
  "dependencies": {
26
- "@cyberpunk-vue/hooks": "1.12.2",
27
- "@cyberpunk-vue/constants": "1.12.2",
28
- "@cyberpunk-vue/theme-chalk": "1.12.2"
26
+ "@cyberpunk-vue/constants": "1.12.3",
27
+ "@cyberpunk-vue/hooks": "1.12.3",
28
+ "@cyberpunk-vue/theme-chalk": "1.12.3"
29
29
  },
30
30
  "author": "Juxest",
31
31
  "license": "MIT",