@adiba-banking-cloud/backoffice 0.0.13 → 0.0.14
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/build/index.cjs.js/index.js +21 -14
- package/build/index.esm.js/index.js +21 -14
- package/build/styles.css +1 -1
- package/build/typings/components/general/icons/Icons.types.d.ts +1 -1
- package/build/typings/components/menus/side/Side.d.ts +1 -0
- package/build/typings/components/menus/side/Side.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11397,15 +11397,15 @@ const Icons = _ref => {
|
|
|
11397
11397
|
let {
|
|
11398
11398
|
name = "Home",
|
|
11399
11399
|
size = 16,
|
|
11400
|
+
variant = "Linear",
|
|
11400
11401
|
stroke = 1,
|
|
11401
|
-
variant = "Outline",
|
|
11402
11402
|
color
|
|
11403
11403
|
} = _ref;
|
|
11404
11404
|
const Element = IconSax__namespace[name];
|
|
11405
11405
|
return /*#__PURE__*/React.createElement(Element, {
|
|
11406
|
-
size
|
|
11407
|
-
|
|
11408
|
-
|
|
11406
|
+
size,
|
|
11407
|
+
color,
|
|
11408
|
+
variant,
|
|
11409
11409
|
style: {
|
|
11410
11410
|
strokeWidth: stroke
|
|
11411
11411
|
}
|
|
@@ -11638,12 +11638,16 @@ const UserMenuDropdown = _ref => {
|
|
|
11638
11638
|
c: section === null || section === void 0 ? void 0 : section.color,
|
|
11639
11639
|
key: "menu-item-".concat(key),
|
|
11640
11640
|
h: height,
|
|
11641
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, item.icon
|
|
11641
|
+
leftSection: /*#__PURE__*/React.createElement(Icons, _extends({}, item.icon, {
|
|
11642
|
+
stroke: 0.5
|
|
11643
|
+
})),
|
|
11642
11644
|
rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React.createElement(Icons, {
|
|
11643
11645
|
name: "ArrowRight2",
|
|
11644
|
-
size: 12
|
|
11646
|
+
size: 12,
|
|
11647
|
+
stroke: 0.5
|
|
11645
11648
|
}) : item.badge ? /*#__PURE__*/React.createElement(core.Badge, {
|
|
11646
|
-
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color
|
|
11649
|
+
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color,
|
|
11650
|
+
size: "sm"
|
|
11647
11651
|
}, item === null || item === void 0 || (_item$badge2 = item.badge) === null || _item$badge2 === void 0 ? void 0 : _item$badge2.text) : undefined,
|
|
11648
11652
|
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
11649
11653
|
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
@@ -11653,11 +11657,12 @@ const UserMenuDropdown = _ref => {
|
|
|
11653
11657
|
});
|
|
11654
11658
|
if (index) items.push(/*#__PURE__*/React.createElement(core.Divider, {
|
|
11655
11659
|
key: "divider-".concat(index),
|
|
11656
|
-
my:
|
|
11660
|
+
my: 2
|
|
11657
11661
|
}));
|
|
11658
11662
|
if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React.createElement(core.Menu.Label, {
|
|
11659
|
-
|
|
11660
|
-
|
|
11663
|
+
fz: 10,
|
|
11664
|
+
fw: 600,
|
|
11665
|
+
key: "label-".concat(index)
|
|
11661
11666
|
}, section.title));
|
|
11662
11667
|
items.push(...sectionItems);
|
|
11663
11668
|
return items;
|
|
@@ -11703,9 +11708,10 @@ const SideMenu = _ref => {
|
|
|
11703
11708
|
onClick
|
|
11704
11709
|
} = _ref;
|
|
11705
11710
|
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
|
|
11706
|
-
var _item$children;
|
|
11711
|
+
var _item$children, _item$children2;
|
|
11707
11712
|
return /*#__PURE__*/React.createElement(core.NavLink, {
|
|
11708
|
-
|
|
11713
|
+
className: "backoffice-sidemenu",
|
|
11714
|
+
mt: "sm",
|
|
11709
11715
|
fw: 300,
|
|
11710
11716
|
style: {
|
|
11711
11717
|
borderRadius: radius
|
|
@@ -11716,8 +11722,9 @@ const SideMenu = _ref => {
|
|
|
11716
11722
|
variant,
|
|
11717
11723
|
onClick,
|
|
11718
11724
|
leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
|
|
11719
|
-
label: item.label
|
|
11720
|
-
|
|
11725
|
+
label: item.label,
|
|
11726
|
+
href: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? undefined : item.href
|
|
11727
|
+
}, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(core.NavLink, {
|
|
11721
11728
|
label: subitem.label,
|
|
11722
11729
|
active: subitem.active,
|
|
11723
11730
|
color,
|
|
@@ -11376,15 +11376,15 @@ const Icons = _ref => {
|
|
|
11376
11376
|
let {
|
|
11377
11377
|
name = "Home",
|
|
11378
11378
|
size = 16,
|
|
11379
|
+
variant = "Linear",
|
|
11379
11380
|
stroke = 1,
|
|
11380
|
-
variant = "Outline",
|
|
11381
11381
|
color
|
|
11382
11382
|
} = _ref;
|
|
11383
11383
|
const Element = IconSax[name];
|
|
11384
11384
|
return /*#__PURE__*/React.createElement(Element, {
|
|
11385
|
-
size
|
|
11386
|
-
|
|
11387
|
-
|
|
11385
|
+
size,
|
|
11386
|
+
color,
|
|
11387
|
+
variant,
|
|
11388
11388
|
style: {
|
|
11389
11389
|
strokeWidth: stroke
|
|
11390
11390
|
}
|
|
@@ -11617,12 +11617,16 @@ const UserMenuDropdown = _ref => {
|
|
|
11617
11617
|
c: section === null || section === void 0 ? void 0 : section.color,
|
|
11618
11618
|
key: "menu-item-".concat(key),
|
|
11619
11619
|
h: height,
|
|
11620
|
-
leftSection: /*#__PURE__*/React.createElement(Icons, item.icon
|
|
11620
|
+
leftSection: /*#__PURE__*/React.createElement(Icons, _extends({}, item.icon, {
|
|
11621
|
+
stroke: 0.5
|
|
11622
|
+
})),
|
|
11621
11623
|
rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React.createElement(Icons, {
|
|
11622
11624
|
name: "ArrowRight2",
|
|
11623
|
-
size: 12
|
|
11625
|
+
size: 12,
|
|
11626
|
+
stroke: 0.5
|
|
11624
11627
|
}) : item.badge ? /*#__PURE__*/React.createElement(Badge, {
|
|
11625
|
-
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color
|
|
11628
|
+
color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color,
|
|
11629
|
+
size: "sm"
|
|
11626
11630
|
}, item === null || item === void 0 || (_item$badge2 = item.badge) === null || _item$badge2 === void 0 ? void 0 : _item$badge2.text) : undefined,
|
|
11627
11631
|
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
11628
11632
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -11632,11 +11636,12 @@ const UserMenuDropdown = _ref => {
|
|
|
11632
11636
|
});
|
|
11633
11637
|
if (index) items.push(/*#__PURE__*/React.createElement(Divider, {
|
|
11634
11638
|
key: "divider-".concat(index),
|
|
11635
|
-
my:
|
|
11639
|
+
my: 2
|
|
11636
11640
|
}));
|
|
11637
11641
|
if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React.createElement(Menu.Label, {
|
|
11638
|
-
|
|
11639
|
-
|
|
11642
|
+
fz: 10,
|
|
11643
|
+
fw: 600,
|
|
11644
|
+
key: "label-".concat(index)
|
|
11640
11645
|
}, section.title));
|
|
11641
11646
|
items.push(...sectionItems);
|
|
11642
11647
|
return items;
|
|
@@ -11682,9 +11687,10 @@ const SideMenu = _ref => {
|
|
|
11682
11687
|
onClick
|
|
11683
11688
|
} = _ref;
|
|
11684
11689
|
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
|
|
11685
|
-
var _item$children;
|
|
11690
|
+
var _item$children, _item$children2;
|
|
11686
11691
|
return /*#__PURE__*/React.createElement(NavLink, {
|
|
11687
|
-
|
|
11692
|
+
className: "backoffice-sidemenu",
|
|
11693
|
+
mt: "sm",
|
|
11688
11694
|
fw: 300,
|
|
11689
11695
|
style: {
|
|
11690
11696
|
borderRadius: radius
|
|
@@ -11695,8 +11701,9 @@ const SideMenu = _ref => {
|
|
|
11695
11701
|
variant,
|
|
11696
11702
|
onClick,
|
|
11697
11703
|
leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
|
|
11698
|
-
label: item.label
|
|
11699
|
-
|
|
11704
|
+
label: item.label,
|
|
11705
|
+
href: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? undefined : item.href
|
|
11706
|
+
}, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(NavLink, {
|
|
11700
11707
|
label: subitem.label,
|
|
11701
11708
|
active: subitem.active,
|
|
11702
11709
|
color,
|
package/build/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
svg>path{stroke-width:inherit}
|
|
1
|
+
svg>path{stroke-width:inherit}.backoffice-sidemenu.mantine-NavLink-root{padding:.25rem}.backoffice-sidemenu.mantine-NavLink-root[data-active] .mantine-NavLink-section:first-child{background:var(--mantine-color-adiba-4)}.backoffice-sidemenu.mantine-NavLink-root .mantine-NavLink-section:first-child{border-radius:9999px;display:flex;height:2rem;width:2rem}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.14",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|