@tmlmobilidade/ui 20250306.1249.35 → 20250306.1453.58
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/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/layout/Sidebar/index.d.ts +1 -1
- package/dist/cjs/types/src/components/layout/index.d.ts +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/layout/Sidebar/index.d.ts +1 -1
- package/dist/esm/types/src/components/layout/index.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -1596,7 +1596,8 @@ function generateIcon(name) {
|
|
1596
1596
|
var styles$7 = {"container":"styles-module_container__tduxg","navWrapper":"styles-module_navWrapper__Xb59N","navButton":"styles-module_navButton__kTv0k","selected":"styles-module_selected__w-GVG","disabled":"styles-module_disabled__lxQjN"};
|
1597
1597
|
|
1598
1598
|
function Sidebar({ items, }) {
|
1599
|
-
|
1599
|
+
if (!items || items.length === 0)
|
1600
|
+
return null;
|
1600
1601
|
//
|
1601
1602
|
// A. Render components
|
1602
1603
|
return (jsxRuntimeExports.jsx("div", { className: cn(styles$7.container), children: jsxRuntimeExports.jsx("div", { className: cn(styles$7.navWrapper), children: items.map((item) => {
|