@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.cjs
CHANGED
|
@@ -2776,7 +2776,7 @@ const Tab = React.forwardRef(function Tab2({
|
|
|
2776
2776
|
icon,
|
|
2777
2777
|
notification
|
|
2778
2778
|
}, ref) {
|
|
2779
|
-
const s = sizeClasses[size];
|
|
2779
|
+
const s = sizeClasses[size] ?? sizeClasses.md;
|
|
2780
2780
|
const hasIcon = Boolean(icon);
|
|
2781
2781
|
const hasNotification = notification !== void 0 && notification !== null;
|
|
2782
2782
|
const renderedIcon = icon === true ? /* @__PURE__ */ jsxRuntime.jsx(DefaultTabIcon, { className: s.iconSize }) : icon;
|
|
@@ -2853,7 +2853,7 @@ const Tab = React.forwardRef(function Tab2({
|
|
|
2853
2853
|
});
|
|
2854
2854
|
Tab.displayName = "Tab";
|
|
2855
2855
|
const TabGroup = React.forwardRef(
|
|
2856
|
-
function TabGroup2({ items, activeId, size = "md", onChange, className }, ref) {
|
|
2856
|
+
function TabGroup2({ items = [], activeId, size = "md", onChange, className }, ref) {
|
|
2857
2857
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, role: "tablist", className: cn("flex", className), children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2858
2858
|
Tab,
|
|
2859
2859
|
{
|