@umituz/web-design-system 4.0.2 → 4.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-design-system",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Web Design System - Tailwind v4 authored, precompiled CSS shipped. Atomic Design components (Atoms, Molecules, Organisms, Templates) for React applications.",
@@ -52,7 +52,7 @@ export function getNextSizeVariant(current: SizeVariant): SizeVariant | null {
52
52
  if (index === -1 || index === SIZE_VARIANT_ORDER.length - 1) {
53
53
  return null;
54
54
  }
55
- return SIZE_VARIANT_ORDER[index + 1];
55
+ return SIZE_VARIANT_ORDER[index + 1] ?? null;
56
56
  }
57
57
 
58
58
  /**
@@ -63,7 +63,7 @@ export function getPrevSizeVariant(current: SizeVariant): SizeVariant | null {
63
63
  if (index <= 0) {
64
64
  return null;
65
65
  }
66
- return SIZE_VARIANT_ORDER[index - 1];
66
+ return SIZE_VARIANT_ORDER[index - 1] ?? null;
67
67
  }
68
68
 
69
69
  /**