@globalbrain/sefirot 3.25.0 → 3.25.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.
@@ -1,5 +1,7 @@
1
+ import { isNumber, isString } from '../../support/Utils'
2
+
1
3
  export function maxValue(value: unknown, max: number) {
2
- if (typeof value === 'string' || value instanceof Date) {
4
+ if (isNumber(value) || isString(value) || value instanceof Date) {
3
5
  return +value <= max
4
6
  }
5
7
 
@@ -1,5 +1,7 @@
1
+ import { isNumber, isString } from '../../support/Utils'
2
+
1
3
  export function minValue(value: unknown, min: number) {
2
- if (typeof value === 'string' || value instanceof Date) {
4
+ if (isNumber(value) || isString(value) || value instanceof Date) {
3
5
  return +value >= min
4
6
  }
5
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "packageManager": "pnpm@8.14.3",
5
5
  "description": "Vue Components for Global Brain Design System.",
6
6
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",