ikon-react-components-lib 1.0.7 → 1.0.8

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.
@@ -5792,16 +5792,18 @@ function yl() {
5792
5792
  }, [r]);
5793
5793
  function i(l) {
5794
5794
  return /* @__PURE__ */ e(ss, { children: l.map((d) => {
5795
- if (!!d.items?.length) {
5796
- const f = n(d);
5795
+ const m = !!d.items?.length, c = d.icon;
5796
+ if (m) {
5797
+ const h = n(d);
5797
5798
  return /* @__PURE__ */ e(
5798
5799
  Oa,
5799
5800
  {
5800
5801
  asChild: !0,
5801
5802
  className: "group/collapsible",
5802
- defaultOpen: f,
5803
+ defaultOpen: h,
5803
5804
  children: /* @__PURE__ */ o(Ta, { children: [
5804
- /* @__PURE__ */ e(ja, { asChild: !0, children: /* @__PURE__ */ o(Pa, { isActive: f, children: [
5805
+ /* @__PURE__ */ e(ja, { asChild: !0, children: /* @__PURE__ */ o(Pa, { isActive: h, children: [
5806
+ c && /* @__PURE__ */ e(c, {}),
5805
5807
  /* @__PURE__ */ e("span", { children: d.title }),
5806
5808
  /* @__PURE__ */ e(We, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
5807
5809
  ] }) }),
@@ -5811,14 +5813,17 @@ function yl() {
5811
5813
  d.title
5812
5814
  );
5813
5815
  }
5814
- const c = r(d.url);
5816
+ const f = r(d.url);
5815
5817
  return /* @__PURE__ */ e(Ta, { children: /* @__PURE__ */ e(
5816
5818
  Pa,
5817
5819
  {
5818
5820
  asChild: !0,
5819
- isActive: c,
5820
- "aria-current": c ? "page" : void 0,
5821
- children: /* @__PURE__ */ e(Le, { to: d.url || "#", children: /* @__PURE__ */ e("span", { children: d.title }) })
5821
+ isActive: f,
5822
+ "aria-current": f ? "page" : void 0,
5823
+ children: /* @__PURE__ */ o(Le, { to: d.url || "#", children: [
5824
+ c && /* @__PURE__ */ e(c, {}),
5825
+ /* @__PURE__ */ e("span", { children: d.title })
5826
+ ] })
5822
5827
  }
5823
5828
  ) }, d.title);
5824
5829
  }) });
@@ -9658,6 +9663,7 @@ export {
9658
9663
  Ga as clearCookieSession,
9659
9664
  u as cn,
9660
9665
  nl as convertFileToObject,
9666
+ he as getConfig,
9661
9667
  Qt as getCookieSession,
9662
9668
  Me as getDataTableColumnTitle,
9663
9669
  wu as getImageFromObject,
package/dist/index.d.ts CHANGED
@@ -352,6 +352,17 @@ export declare function CommandSeparator({ className, ...props }: React_2.Compon
352
352
 
353
353
  export declare function CommandShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
354
354
 
355
+ declare interface ConfigProps {
356
+ IKON_BASE_API_URL: string;
357
+ IKON_PLATFORM_API_URL: string;
358
+ IKON_AUTH_API_URL: string;
359
+ IKON_USER_API_URL: string;
360
+ IKON_ACCOUNT_API_URL: string;
361
+ LOGIN_PAGE_URL: string;
362
+ IKON_PLATFORM_UI_URL: string;
363
+ IKON_PLATFORM_PROFILE_URL: string;
364
+ }
365
+
355
366
  export declare const convertFileToObject: (file: File) => Promise<FileObjType>;
356
367
 
357
368
  export declare interface CookieSessionOptionsProps {
@@ -793,6 +804,8 @@ declare interface FrameworkItemDropdownProps {
793
804
  className?: string;
794
805
  }
795
806
 
807
+ export declare const getConfig: () => ConfigProps;
808
+
796
809
  export declare function getCookieSession(sessionName: string): string | undefined;
797
810
 
798
811
  export declare const getDataTableColumnTitle: (column: any) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ikon-react-components-lib",
3
3
  "private": false,
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "type": "module",
6
6
  "main": "./dist/ikon-react-components-lib.cjs.js",
7
7
  "module": "./dist/ikon-react-components-lib.es.js",