@dilicorp/ui 0.0.76 → 0.0.77
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/atoms/icon.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare type IconProps = {
|
|
|
3
3
|
icon: string;
|
|
4
4
|
brand?: boolean;
|
|
5
5
|
className?: string;
|
|
6
|
+
id?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const Icon: ({ icon, brand, className }: IconProps) => JSX.Element;
|
|
8
|
+
export declare const Icon: ({ icon, brand, className, id }: IconProps) => JSX.Element;
|
|
8
9
|
//# sourceMappingURL=icon.d.ts.map
|
package/dist/atoms/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/atoms/icon.tsx"],"names":[],"mappings":";AAOA,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/atoms/icon.tsx"],"names":[],"mappings":";AAOA,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,eAAO,MAAM,IAAI,mCAAyC,SAAS,gBAKlE,CAAA"}
|
package/dist/atoms/icon.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as fab from '@fortawesome/free-brands-svg-icons';
|
|
|
3
3
|
import * as fa from '@fortawesome/free-solid-svg-icons';
|
|
4
4
|
import stringHelper from '../utils/string-helper';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
export const Icon = ({ icon, brand, className = '' }) => {
|
|
6
|
+
export const Icon = ({ icon, brand, className = '', id }) => {
|
|
7
7
|
const sanitize = stringHelper.toCamelCase(icon);
|
|
8
8
|
const ico = brand ? fab[sanitize] : fa[sanitize];
|
|
9
|
-
return React.createElement(FontAwesomeIcon, { icon: ico, className: className });
|
|
9
|
+
return React.createElement(FontAwesomeIcon, { id: id, icon: ico, className: className });
|
|
10
10
|
};
|
package/dist/atoms/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/atoms/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,oBAAY,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAA;AAEtH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/atoms/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,oBAAY,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAA;AAEtH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAyBpC,CAAA"}
|
package/dist/atoms/link.js
CHANGED
|
@@ -72,7 +72,7 @@ export const SideNavigationBar = memo((props) => {
|
|
|
72
72
|
React.createElement("div", { className: "logo" },
|
|
73
73
|
Boolean(logoThumb) && React.createElement("div", { className: "logo-thumb" }, logoThumb),
|
|
74
74
|
logoName && React.createElement("div", { className: "logo-name" }, logoName)),
|
|
75
|
-
React.createElement(Icon, { icon: "fa-bars", className: "btn-sidebar" })),
|
|
75
|
+
React.createElement(Icon, { id: "btn-side-bar-toogle", icon: "fa-bars", className: "btn-sidebar" })),
|
|
76
76
|
React.createElement("ul", { className: "nav-list" },
|
|
77
77
|
items.map((item, index) => (React.createElement(SideNavigationBarItem, Object.assign({ key: `side-navigation-bar-item-${index}` }, Object.assign(Object.assign({}, item), { index }))))),
|
|
78
78
|
!!(logout === null || logout === void 0 ? void 0 : logout.href) && (React.createElement(SideNavigationBarItem, Object.assign({}, {
|
|
@@ -81,6 +81,6 @@ export const SideNavigationBar = memo((props) => {
|
|
|
81
81
|
label: logout.label || 'Logout',
|
|
82
82
|
href: logout.href
|
|
83
83
|
}))))),
|
|
84
|
-
React.createElement(Icon, { icon: "fa-bars", className: "btn-sidebar-mobile" })));
|
|
84
|
+
React.createElement(Icon, { id: "btn-side-bar-mobile-toogle", icon: "fa-bars", className: "btn-sidebar-mobile" })));
|
|
85
85
|
});
|
|
86
86
|
SideNavigationBar.displayName = 'SideNavigationBar';
|