infinity-forge 7.6.7 → 7.7.0
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/ui/components/accordion/index.d.ts +1 -1
- package/dist/ui/components/accordion/index.js +2 -2
- package/dist/ui/components/accordion/index.js.map +1 -1
- package/dist/ui/components/accordion/interfaces.d.ts +4 -0
- package/dist/ui/icons/render/icon-right-chevron.js +1 -1
- package/dist/ui/icons/render/icon-right-chevron.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AccordionProps } from './interfaces.js';
|
|
2
|
-
export declare function Accordion({ click, title, Header, openIcon, closeIcon, actions, forceOpen, children }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Accordion({ click, title, Header, customIcon, openIcon, closeIcon, actions, forceOpen, children, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,11 +39,11 @@ var react_1 = require("react");
|
|
|
39
39
|
var ui_1 = require("../../../ui/index.js");
|
|
40
40
|
var S = __importStar(require("./styles.js"));
|
|
41
41
|
function Accordion(_a) {
|
|
42
|
-
var click = _a.click, title = _a.title, Header = _a.Header, openIcon = _a.openIcon, closeIcon = _a.closeIcon, actions = _a.actions, forceOpen = _a.forceOpen, children = _a.children;
|
|
42
|
+
var click = _a.click, title = _a.title, Header = _a.Header, customIcon = _a.customIcon, openIcon = _a.openIcon, closeIcon = _a.closeIcon, actions = _a.actions, forceOpen = _a.forceOpen, children = _a.children;
|
|
43
43
|
var _b = (0, react_1.useState)(false), isOpen = _b[0], setIsOpen = _b[1];
|
|
44
44
|
return ((0, jsx_runtime_1.jsxs)(S.Accordion, { className: 'accordion', children: [(0, jsx_runtime_1.jsxs)("button", { type: 'button', onClick: function () {
|
|
45
45
|
setIsOpen(!isOpen);
|
|
46
46
|
click && click();
|
|
47
|
-
}, children: [title && (0, jsx_runtime_1.jsx)("h2", { children: title }), Header && (0, jsx_runtime_1.jsx)(Header, {}), (0, jsx_runtime_1.jsxs)("div", { className: 'actions', children: [actions, openIcon && closeIcon && (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: forceOpen ? closeIcon : !isOpen ? openIcon : closeIcon })] })] }), children && (0, jsx_runtime_1.jsx)("div", { className: "content ".concat(forceOpen || isOpen ? 'show' : ''), children: children })] }));
|
|
47
|
+
}, children: [title && (0, jsx_runtime_1.jsx)("h2", { children: title }), Header && (0, jsx_runtime_1.jsx)(Header, {}), (0, jsx_runtime_1.jsxs)("div", { className: 'actions', children: [actions, customIcon ? isOpen ? (0, jsx_runtime_1.jsx)(customIcon.Open, {}) : (0, jsx_runtime_1.jsx)(customIcon.Close, {}) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), openIcon && closeIcon && (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: forceOpen ? closeIcon : !isOpen ? openIcon : closeIcon })] })] }), children && (0, jsx_runtime_1.jsx)("div", { className: "content ".concat(forceOpen || isOpen ? 'show' : ''), children: children })] }));
|
|
48
48
|
}
|
|
49
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/accordion/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/accordion/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,8BAsCC;;AA9CD,+BAAgC;AAEhC,2BAA2B;AAI3B,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,EAUT;QATf,KAAK,WAAA,EACL,KAAK,WAAA,EACL,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,OAAO,aAAA,EACP,SAAS,eAAA,EACT,QAAQ,cAAA;IAEF,IAAA,KAAsB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAApC,MAAM,QAAA,EAAE,SAAS,QAAmB,CAAA;IAE3C,OAAO,CACL,wBAAC,CAAC,CAAC,SAAS,IAAC,SAAS,EAAC,WAAW,aAChC,oCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE;oBACP,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;oBAElB,KAAK,IAAI,KAAK,EAAE,CAAA;gBAClB,CAAC,aAEA,KAAK,IAAI,yCAAK,KAAK,GAAM,EACzB,MAAM,IAAI,uBAAC,MAAM,KAAG,EAErB,iCAAK,SAAS,EAAC,SAAS,aACrB,OAAO,EAEP,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,UAAU,CAAC,IAAI,KAAG,CAAC,CAAC,CAAC,uBAAC,UAAU,CAAC,KAAK,KAAG,CAAC,CAAC,CAAC,kDAAK,EAExE,QAAQ,IAAI,SAAS,IAAI,uBAAC,SAAI,IAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAI,IAC5F,IACC,EAER,QAAQ,IAAI,gCAAK,SAAS,EAAE,kBAAW,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAE,YAAG,QAAQ,GAAO,IACjF,CACf,CAAA;AACH,CAAC"}
|
|
@@ -4,6 +4,6 @@ exports.IconRightChevron = IconRightChevron;
|
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
function IconRightChevron(_a) {
|
|
6
6
|
var _b = _a.color, color = _b === void 0 ? 'currentColor' : _b;
|
|
7
|
-
return ((0, jsx_runtime_1.
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 320 512', fill: color, children: (0, jsx_runtime_1.jsx)("path", { d: 'M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z' }) }));
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=icon-right-chevron.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-right-chevron.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/icon-right-chevron.tsx"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"icon-right-chevron.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/icon-right-chevron.tsx"],"names":[],"mappings":";;AAEA,4CAMC;;AAND,SAAgB,gBAAgB,CAAC,EAAiC;QAA/B,aAAsB,EAAtB,KAAK,mBAAG,cAAc,KAAA;IACvD,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,YACvE,iCAAM,CAAC,EAAC,0KAA0K,GAAG,GACjL,CACP,CAAA;AACH,CAAC"}
|