@sarunyu/system-one 1.0.4 → 1.0.5
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/components/tab.d.ts +2 -1
- package/dist/src/components/tab.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2757,7 +2757,7 @@ const Tab = forwardRef(function Tab2({
|
|
|
2757
2757
|
icon,
|
|
2758
2758
|
notification
|
|
2759
2759
|
}, ref) {
|
|
2760
|
-
const s = sizeClasses[size];
|
|
2760
|
+
const s = sizeClasses[size] ?? sizeClasses.md;
|
|
2761
2761
|
const hasIcon = Boolean(icon);
|
|
2762
2762
|
const hasNotification = notification !== void 0 && notification !== null;
|
|
2763
2763
|
const renderedIcon = icon === true ? /* @__PURE__ */ jsx(DefaultTabIcon, { className: s.iconSize }) : icon;
|
|
@@ -2834,7 +2834,7 @@ const Tab = forwardRef(function Tab2({
|
|
|
2834
2834
|
});
|
|
2835
2835
|
Tab.displayName = "Tab";
|
|
2836
2836
|
const TabGroup = forwardRef(
|
|
2837
|
-
function TabGroup2({ items, activeId, size = "md", onChange, className }, ref) {
|
|
2837
|
+
function TabGroup2({ items = [], activeId, size = "md", onChange, className }, ref) {
|
|
2838
2838
|
return /* @__PURE__ */ jsx("div", { ref, role: "tablist", className: cn("flex", className), children: items.map((item) => /* @__PURE__ */ jsx(
|
|
2839
2839
|
Tab,
|
|
2840
2840
|
{
|