@sarunyu/system-one 1.1.0 → 1.1.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Saranyu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs CHANGED
@@ -2804,7 +2804,7 @@ const sizeClasses = {
2804
2804
  font: "font-bold",
2805
2805
  gap: "gap-1.5",
2806
2806
  iconSize: "h-5 w-5",
2807
- badgeClass: "min-w-[18px] px-[5.5px] text-[length:var(--text-xs)] leading-[var(--leading-4)]"
2807
+ badgeClass: "min-w-[16px] h-[16px] px-[3px] text-[length:var(--text-xs)] leading-[var(--leading-4)]"
2808
2808
  },
2809
2809
  md: {
2810
2810
  pad: "px-2.5 py-2",
@@ -2813,7 +2813,7 @@ const sizeClasses = {
2813
2813
  font: "font-bold",
2814
2814
  gap: "gap-1.5",
2815
2815
  iconSize: "h-[18px] w-[18px]",
2816
- badgeClass: "min-w-[18px] px-[5.5px] text-[length:var(--text-xs)] leading-[var(--leading-4)]"
2816
+ badgeClass: "min-w-[16px] h-[16px] px-[3px] text-[length:var(--text-xs)] leading-[var(--leading-4)]"
2817
2817
  },
2818
2818
  sm: {
2819
2819
  pad: "px-2 py-1.5",
@@ -2822,7 +2822,7 @@ const sizeClasses = {
2822
2822
  font: "font-semibold",
2823
2823
  gap: "gap-1",
2824
2824
  iconSize: "h-4 w-4",
2825
- badgeClass: "min-h-[14px] px-1 text-[length:var(--text-xxs)] leading-[var(--leading-3)]"
2825
+ badgeClass: "min-w-[14px] h-[14px] px-1 text-[length:var(--text-xxs)] leading-[var(--leading-3)]"
2826
2826
  }
2827
2827
  };
2828
2828
  function DefaultTabIcon({ className }) {
@@ -2843,7 +2843,7 @@ const Tab = React.forwardRef(function Tab2({
2843
2843
  const hasNotification = notification !== void 0 && notification !== null;
2844
2844
  const renderedIcon = icon === true ? /* @__PURE__ */ jsxRuntime.jsx(DefaultTabIcon, { className: s.iconSize }) : icon;
2845
2845
  const textColor = disabled ? "text-disabled" : active ? "text-primary-action" : "text-muted-foreground";
2846
- const borderColor = active && !disabled ? "border-primary-action" : "border-border";
2846
+ const borderColor = disabled ? "border-border-disabled" : active ? "border-primary-action" : "border-border";
2847
2847
  const cursor = disabled ? "cursor-not-allowed" : "cursor-pointer";
2848
2848
  const hoverBg = !disabled && !active ? "hover:bg-hover-bg" : "";
2849
2849
  return /* @__PURE__ */ jsxRuntime.jsxs(