@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260722104420 → 0.8.1-dev.20260722112436

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/index.js CHANGED
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  "use strict";
4
2
  var __create = Object.create;
5
3
  var __defProp = Object.defineProperty;
@@ -6897,10 +6895,7 @@ var DivContainer = async (props) => {
6897
6895
  Wrapper,
6898
6896
  {
6899
6897
  id: guid,
6900
- style: {
6901
- ...combinedStyles,
6902
- backgroundColor: "red"
6903
- },
6898
+ style: combinedStyles,
6904
6899
  className: classNames || void 0,
6905
6900
  ...wrapperProps,
6906
6901
  children: dataToRender.map(
@@ -6964,46 +6959,49 @@ var PageBodyRenderer = (props) => {
6964
6959
  }
6965
6960
  return true;
6966
6961
  };
6967
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
6968
- {
6969
- }
6970
- const SelectedNode = NodeTypes[node.type];
6971
- if (!shouldRenderNode(node)) {
6972
- return null;
6973
- }
6974
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6975
- SelectedNode,
6962
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_react53.default.Fragment, { children: [
6963
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { children: "Thuis isadiasdia testaststtstst" }),
6964
+ rootNode && rootNode?.children?.map((node, index) => {
6976
6965
  {
6977
- node,
6978
- firstNode: true,
6979
- routeParameters: props.routeParameters,
6980
- query: props.query,
6981
- session: props.session,
6982
- host: props.host,
6983
- path: props.path,
6984
- apiBaseUrl: props.apiBaseUrl,
6985
- serviceClient: props.serviceClient,
6986
- assetBaseUrl: props.assetBaseUrl,
6987
- device: props.device,
6988
- widgetRenderer: props.widgetRenderer
6989
6966
  }
6990
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6991
- SelectedNode,
6992
- {
6993
- node,
6994
- routeParameters: props.routeParameters,
6995
- query: props.query,
6996
- session: props.session,
6997
- host: props.host,
6998
- path: props.path,
6999
- apiBaseUrl: props.apiBaseUrl,
7000
- serviceClient: props.serviceClient,
7001
- assetBaseUrl: props.assetBaseUrl,
7002
- device: props.device,
7003
- widgetRenderer: props.widgetRenderer
6967
+ const SelectedNode = NodeTypes[node.type];
6968
+ if (!shouldRenderNode(node)) {
6969
+ return null;
7004
6970
  }
7005
- ) }) }) }, index);
7006
- }) });
6971
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6972
+ SelectedNode,
6973
+ {
6974
+ node,
6975
+ firstNode: true,
6976
+ routeParameters: props.routeParameters,
6977
+ query: props.query,
6978
+ session: props.session,
6979
+ host: props.host,
6980
+ path: props.path,
6981
+ apiBaseUrl: props.apiBaseUrl,
6982
+ serviceClient: props.serviceClient,
6983
+ assetBaseUrl: props.assetBaseUrl,
6984
+ device: props.device,
6985
+ widgetRenderer: props.widgetRenderer
6986
+ }
6987
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6988
+ SelectedNode,
6989
+ {
6990
+ node,
6991
+ routeParameters: props.routeParameters,
6992
+ query: props.query,
6993
+ session: props.session,
6994
+ host: props.host,
6995
+ path: props.path,
6996
+ apiBaseUrl: props.apiBaseUrl,
6997
+ serviceClient: props.serviceClient,
6998
+ assetBaseUrl: props.assetBaseUrl,
6999
+ device: props.device,
7000
+ widgetRenderer: props.widgetRenderer
7001
+ }
7002
+ ) }) }) }, index);
7003
+ })
7004
+ ] });
7007
7005
  };
7008
7006
  var PageBodyRenderer_default = PageBodyRenderer;
7009
7007
 
package/dist/index.mjs CHANGED
@@ -2658,10 +2658,7 @@ var DivContainer = async (props) => {
2658
2658
  Wrapper,
2659
2659
  {
2660
2660
  id: guid,
2661
- style: {
2662
- ...combinedStyles,
2663
- backgroundColor: "red"
2664
- },
2661
+ style: combinedStyles,
2665
2662
  className: classNames || void 0,
2666
2663
  ...wrapperProps,
2667
2664
  children: dataToRender.map(
@@ -2688,7 +2685,7 @@ var DivContainer = async (props) => {
2688
2685
  var DivContainer_default = DivContainer;
2689
2686
 
2690
2687
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
2691
- import { jsx as jsx35 } from "react/jsx-runtime";
2688
+ import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
2692
2689
  var NodeTypes = {
2693
2690
  ["paragraph"]: ParagraphNode_default,
2694
2691
  ["heading"]: HeadingNode_default,
@@ -2725,46 +2722,49 @@ var PageBodyRenderer = (props) => {
2725
2722
  }
2726
2723
  return true;
2727
2724
  };
2728
- return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
2729
- {
2730
- }
2731
- const SelectedNode = NodeTypes[node.type];
2732
- if (!shouldRenderNode(node)) {
2733
- return null;
2734
- }
2735
- return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2736
- SelectedNode,
2725
+ return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
2726
+ /* @__PURE__ */ jsx35("div", { children: "Thuis isadiasdia testaststtstst" }),
2727
+ rootNode && rootNode?.children?.map((node, index) => {
2737
2728
  {
2738
- node,
2739
- firstNode: true,
2740
- routeParameters: props.routeParameters,
2741
- query: props.query,
2742
- session: props.session,
2743
- host: props.host,
2744
- path: props.path,
2745
- apiBaseUrl: props.apiBaseUrl,
2746
- serviceClient: props.serviceClient,
2747
- assetBaseUrl: props.assetBaseUrl,
2748
- device: props.device,
2749
- widgetRenderer: props.widgetRenderer
2750
2729
  }
2751
- ) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2752
- SelectedNode,
2753
- {
2754
- node,
2755
- routeParameters: props.routeParameters,
2756
- query: props.query,
2757
- session: props.session,
2758
- host: props.host,
2759
- path: props.path,
2760
- apiBaseUrl: props.apiBaseUrl,
2761
- serviceClient: props.serviceClient,
2762
- assetBaseUrl: props.assetBaseUrl,
2763
- device: props.device,
2764
- widgetRenderer: props.widgetRenderer
2730
+ const SelectedNode = NodeTypes[node.type];
2731
+ if (!shouldRenderNode(node)) {
2732
+ return null;
2765
2733
  }
2766
- ) }) }) }, index);
2767
- }) });
2734
+ return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2735
+ SelectedNode,
2736
+ {
2737
+ node,
2738
+ firstNode: true,
2739
+ routeParameters: props.routeParameters,
2740
+ query: props.query,
2741
+ session: props.session,
2742
+ host: props.host,
2743
+ path: props.path,
2744
+ apiBaseUrl: props.apiBaseUrl,
2745
+ serviceClient: props.serviceClient,
2746
+ assetBaseUrl: props.assetBaseUrl,
2747
+ device: props.device,
2748
+ widgetRenderer: props.widgetRenderer
2749
+ }
2750
+ ) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
2751
+ SelectedNode,
2752
+ {
2753
+ node,
2754
+ routeParameters: props.routeParameters,
2755
+ query: props.query,
2756
+ session: props.session,
2757
+ host: props.host,
2758
+ path: props.path,
2759
+ apiBaseUrl: props.apiBaseUrl,
2760
+ serviceClient: props.serviceClient,
2761
+ assetBaseUrl: props.assetBaseUrl,
2762
+ device: props.device,
2763
+ widgetRenderer: props.widgetRenderer
2764
+ }
2765
+ ) }) }) }, index);
2766
+ })
2767
+ ] });
2768
2768
  };
2769
2769
  var PageBodyRenderer_default = PageBodyRenderer;
2770
2770
 
@@ -2818,7 +2818,7 @@ function EnterAnimationHydrator() {
2818
2818
 
2819
2819
  // src/components/Toast.tsx
2820
2820
  import { useCallback, useEffect as useEffect2, useRef, useState } from "react";
2821
- import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2821
+ import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
2822
2822
  var Toast = () => {
2823
2823
  const [showToast, setShowToast] = useState(false);
2824
2824
  const [message, setMessage] = useState("");
@@ -2852,7 +2852,7 @@ var Toast = () => {
2852
2852
  });
2853
2853
  };
2854
2854
  }, [closeToast, showMessage]);
2855
- return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs14("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
2855
+ return /* @__PURE__ */ jsx36(Fragment7, { children: showToast && /* @__PURE__ */ jsx36("div", { className: "fixed top-2 flex justify-center w-1/2 max-w-xl left-1/2 -translate-x-1/2", style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs15("div", { className: `w-full items-center flex justify-between p-3 rounded-md relative shadow border bg-${messageType}-soft`, children: [
2856
2856
  /* @__PURE__ */ jsx36(
2857
2857
  "span",
2858
2858
  {
@@ -2931,33 +2931,33 @@ var NoContentView_default = NoContentView;
2931
2931
 
2932
2932
  // src/components/dataForm/ContentView.tsx
2933
2933
  import React26 from "react";
2934
- import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
2934
+ import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
2935
2935
  var ContentView = (props) => {
2936
- return /* @__PURE__ */ jsxs15(React26.Fragment, { children: [
2937
- props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs15("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
2938
- /* @__PURE__ */ jsxs15("div", { className: "flex items-center mb-4", children: [
2936
+ return /* @__PURE__ */ jsxs16(React26.Fragment, { children: [
2937
+ props.isDataFound == null && /* @__PURE__ */ jsx39("div", { className: "", children: /* @__PURE__ */ jsxs16("div", { className: "bg-gray-200 rounded-md p-4 animate-pulse", children: [
2938
+ /* @__PURE__ */ jsxs16("div", { className: "flex items-center mb-4", children: [
2939
2939
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
2940
- /* @__PURE__ */ jsxs15("div", { className: "ml-2", children: [
2940
+ /* @__PURE__ */ jsxs16("div", { className: "ml-2", children: [
2941
2941
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
2942
2942
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
2943
2943
  ] })
2944
2944
  ] }),
2945
- /* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2946
- /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2945
+ /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
2946
+ /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
2947
2947
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2948
2948
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2949
2949
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2950
2950
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2951
2951
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2952
2952
  ] }),
2953
- /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2953
+ /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
2954
2954
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2955
2955
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2956
2956
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
2957
2957
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
2958
2958
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
2959
2959
  ] }),
2960
- /* @__PURE__ */ jsxs15("div", { className: "animate-pulse", children: [
2960
+ /* @__PURE__ */ jsxs16("div", { className: "animate-pulse", children: [
2961
2961
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
2962
2962
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
2963
2963
  /* @__PURE__ */ jsx39("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
@@ -3016,7 +3016,7 @@ function FormReducer(state, action) {
3016
3016
  var FormReducer_default = FormReducer;
3017
3017
 
3018
3018
  // src/components/dataForm/DataList.tsx
3019
- import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3019
+ import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
3020
3020
  var DataList = (props) => {
3021
3021
  const router = useRouter();
3022
3022
  let builder = new OdataBuilder(props.path);
@@ -3146,7 +3146,7 @@ var DataList = (props) => {
3146
3146
  const showFirstPages = activePageNumber <= 5;
3147
3147
  const showLastPages = activePageNumber > pages - 5;
3148
3148
  if (showFirstPages) {
3149
- return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3149
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3150
3150
  Array.from({ length: 8 }, (_, index) => index + 1).map((page) => /* @__PURE__ */ jsx40(React27.Fragment, { children: activePageNumber !== page ? /* @__PURE__ */ jsx40(
3151
3151
  Hyperlink,
3152
3152
  {
@@ -3172,7 +3172,7 @@ var DataList = (props) => {
3172
3172
  children: pages
3173
3173
  }
3174
3174
  ),
3175
- /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3175
+ /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3176
3176
  "select",
3177
3177
  {
3178
3178
  className: " py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3194,7 +3194,7 @@ var DataList = (props) => {
3194
3194
  ) })
3195
3195
  ] });
3196
3196
  } else if (showLastPages) {
3197
- return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3197
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3198
3198
  /* @__PURE__ */ jsx40(
3199
3199
  Hyperlink,
3200
3200
  {
@@ -3224,7 +3224,7 @@ var DataList = (props) => {
3224
3224
  )
3225
3225
  ] });
3226
3226
  } else {
3227
- return /* @__PURE__ */ jsxs16(Fragment8, { children: [
3227
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
3228
3228
  /* @__PURE__ */ jsx40(
3229
3229
  Hyperlink,
3230
3230
  {
@@ -3270,7 +3270,7 @@ var DataList = (props) => {
3270
3270
  children: pages
3271
3271
  }
3272
3272
  ),
3273
- /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs16(
3273
+ /* @__PURE__ */ jsx40("div", { className: "relative inline-block", children: /* @__PURE__ */ jsxs17(
3274
3274
  "select",
3275
3275
  {
3276
3276
  className: "px-2 py-1 border border-gray-300 bg-white text-gray-700 appearance-none rounded-none",
@@ -3291,15 +3291,15 @@ var DataList = (props) => {
3291
3291
  }
3292
3292
  }
3293
3293
  };
3294
- return /* @__PURE__ */ jsxs16(React27.Fragment, { children: [
3295
- /* @__PURE__ */ jsxs16(ContentView_default, { isDataFound, children: [
3296
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
3294
+ return /* @__PURE__ */ jsxs17(React27.Fragment, { children: [
3295
+ /* @__PURE__ */ jsxs17(ContentView_default, { isDataFound, children: [
3296
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
3297
3297
  "div",
3298
3298
  {
3299
3299
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md sticky top-0`,
3300
3300
  children: [
3301
3301
  props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black-800", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
3302
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
3302
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3303
3303
  props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
3304
3304
  InputControl_default,
3305
3305
  {
@@ -3327,7 +3327,7 @@ var DataList = (props) => {
3327
3327
  },
3328
3328
  filter.name
3329
3329
  )),
3330
- props.addLinkHref && /* @__PURE__ */ jsxs16(
3330
+ props.addLinkHref && /* @__PURE__ */ jsxs17(
3331
3331
  Hyperlink,
3332
3332
  {
3333
3333
  className: "gap-1",
@@ -3343,7 +3343,7 @@ var DataList = (props) => {
3343
3343
  ]
3344
3344
  }
3345
3345
  ),
3346
- /* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs16("table", { className: "w-full divide-y divide-gray-200", children: [
3346
+ /* @__PURE__ */ jsx40("div", { className: "flex-1 overflow-y-auto justify-end bg-white rounded shadow h-[calc(100vh-14rem)]", children: /* @__PURE__ */ jsxs17("table", { className: "w-full divide-y divide-gray-200", children: [
3347
3347
  /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50 sticky top-0", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
3348
3348
  let url = builder.getNewOrderByUrl(column.name);
3349
3349
  let icon = "chevronUpDown";
@@ -3363,7 +3363,7 @@ var DataList = (props) => {
3363
3363
  {
3364
3364
  href: column.enableSorting ? url : void 0,
3365
3365
  className: "!text-neutral-contrast ",
3366
- children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
3366
+ children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3367
3367
  /* @__PURE__ */ jsx40("span", { className: "text-black", children: column.label }),
3368
3368
  column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
3369
3369
  ] })
@@ -3431,9 +3431,9 @@ var DataList = (props) => {
3431
3431
  }) }, index);
3432
3432
  }) })
3433
3433
  ] }) }),
3434
- /* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-between", children: [
3434
+ /* @__PURE__ */ jsx40("div", { className: "pt-4 border-t border-t-gray-50 sticky bottom-0 h-11 mt-2 ", children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between", children: [
3435
3435
  /* @__PURE__ */ jsx40("div", { className: "text-gray-700", children: label }),
3436
- /* @__PURE__ */ jsxs16("div", { className: "flex space-x-2 items-center", children: [
3436
+ /* @__PURE__ */ jsxs17("div", { className: "flex space-x-2 items-center", children: [
3437
3437
  activePageNumber > 1 && /* @__PURE__ */ jsx40(
3438
3438
  Hyperlink,
3439
3439
  {
@@ -3456,14 +3456,14 @@ var DataList = (props) => {
3456
3456
  ] })
3457
3457
  ] }) })
3458
3458
  ] }),
3459
- /* @__PURE__ */ jsxs16(NoContentView_default, { isDataFound, children: [
3460
- (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs16(
3459
+ /* @__PURE__ */ jsxs17(NoContentView_default, { isDataFound, children: [
3460
+ (props.title || props.filters || props.addLinkHref) && /* @__PURE__ */ jsxs17(
3461
3461
  "div",
3462
3462
  {
3463
3463
  className: `flex justify-between items-center bg-white pl-6 pr-2 h-14 mb-3 shadow-sm rounded-md border-b border-neutral-200`,
3464
3464
  children: [
3465
3465
  props.title ? /* @__PURE__ */ jsx40("div", { className: "inline-flex items-center gap-2", children: /* @__PURE__ */ jsx40("h2", { className: "text-lg font-semibold text-black", children: props.title }) }) : /* @__PURE__ */ jsx40("div", {}),
3466
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-3", children: [
3466
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
3467
3467
  props.columns.some((col) => col.isSearchable) && /* @__PURE__ */ jsx40(
3468
3468
  InputControl_default,
3469
3469
  {
@@ -3491,7 +3491,7 @@ var DataList = (props) => {
3491
3491
  },
3492
3492
  filter.name
3493
3493
  )),
3494
- props.addLinkHref && /* @__PURE__ */ jsxs16(
3494
+ props.addLinkHref && /* @__PURE__ */ jsxs17(
3495
3495
  Hyperlink,
3496
3496
  {
3497
3497
  className: "gap-1",
@@ -3507,7 +3507,7 @@ var DataList = (props) => {
3507
3507
  ]
3508
3508
  }
3509
3509
  ),
3510
- /* @__PURE__ */ jsxs16("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3510
+ /* @__PURE__ */ jsxs17("div", { className: "flex-grow overflow-y-auto justify-end bg-white rounded shadow h-[75vh]", children: [
3511
3511
  /* @__PURE__ */ jsx40("div", { children: /* @__PURE__ */ jsx40("table", { className: "w-full divide-y divide-gray-200", children: /* @__PURE__ */ jsx40("thead", { className: "bg-gray-50", children: /* @__PURE__ */ jsx40("tr", { children: props?.columns?.map((column) => {
3512
3512
  let url = builder.getNewOrderByUrl(column.name);
3513
3513
  let icon = "chevronUpDown";
@@ -3527,7 +3527,7 @@ var DataList = (props) => {
3527
3527
  {
3528
3528
  href: column.enableSorting ? url : void 0,
3529
3529
  className: "text-body-950",
3530
- children: /* @__PURE__ */ jsxs16("span", { className: "flex items-center space-x-1", children: [
3530
+ children: /* @__PURE__ */ jsxs17("span", { className: "flex items-center space-x-1", children: [
3531
3531
  /* @__PURE__ */ jsx40("span", { children: column.label }),
3532
3532
  column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
3533
3533
  ] })
@@ -3547,7 +3547,7 @@ var DataList_default = DataList;
3547
3547
  // src/components/dataForm/DataListRenderer.tsx
3548
3548
  import React28, { useState as useState3, useEffect as useEffect4 } from "react";
3549
3549
  import { usePathname as usePathname2 } from "next/navigation";
3550
- import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
3550
+ import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
3551
3551
  var viewControlMap = {
3552
3552
  number: ViewControlTypes.number,
3553
3553
  lineText: ViewControlTypes.lineText,
@@ -3642,7 +3642,7 @@ var DataListRenderer = ({
3642
3642
  isActive: landingPageUrl === pathname
3643
3643
  };
3644
3644
  });
3645
- return /* @__PURE__ */ jsxs17(React28.Fragment, { children: [
3645
+ return /* @__PURE__ */ jsxs18(React28.Fragment, { children: [
3646
3646
  resolvedTabs.length > 0 && // <NavigationTabsV2
3647
3647
  // tabs={resolvedTabs}
3648
3648
  // params={(widgetProps?.params ?? params) as Record<string, any>}
@@ -3693,7 +3693,7 @@ var FORM_CHILD_ONE_TO_ONE_UPDATE = "FORM_CHILD_ONE_TO_ONE_UPDATE";
3693
3693
  var FORM_CHILD_ROW_ADD = "FORM_CHILD_ROW_ADD";
3694
3694
 
3695
3695
  // src/components/dataForm/DataFormChildSection.tsx
3696
- import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
3696
+ import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
3697
3697
  var DataFormChildSection = (props) => {
3698
3698
  const { section } = props;
3699
3699
  const isOneToOne = section.relationshipType === "one-to-one";
@@ -3761,12 +3761,12 @@ var DataFormChildSection = (props) => {
3761
3761
  childItemsToRender,
3762
3762
  allChildItems: childItems
3763
3763
  });
3764
- return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs18("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3764
+ return /* @__PURE__ */ jsx42(React29.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "rounded border-neutral-200 border px-6 py-4 mb-2", children: [
3765
3765
  section.sectionTitle && /* @__PURE__ */ jsx42("div", { className: "mb-4 text-lg font-medium text-body-950", children: section.sectionTitle }),
3766
- /* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col justify-between gap-2", children: [
3767
- /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs18("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
3766
+ /* @__PURE__ */ jsx42("div", { className: "flex-grow flex flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col justify-between gap-2", children: [
3767
+ /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsxs19("table", { className: "w-full border-separate divide-y divide-gray-200", children: [
3768
3768
  (!isOneToOne || childItemsToRender.length > 0) && /* @__PURE__ */ jsx42("thead", { className: "", children: section.sectionRows.map((sectionRow, sectionRowIndex) => {
3769
- return /* @__PURE__ */ jsxs18("tr", { className: "", children: [
3769
+ return /* @__PURE__ */ jsxs19("tr", { className: "", children: [
3770
3770
  sectionRow.elements.map((field, index) => {
3771
3771
  return /* @__PURE__ */ jsx42(
3772
3772
  "th",
@@ -3785,7 +3785,7 @@ var DataFormChildSection = (props) => {
3785
3785
  const rowKey = originalIndex;
3786
3786
  return /* @__PURE__ */ jsx42(React29.Fragment, { children: section.sectionRows.map(
3787
3787
  (sectionRow, sectionRowIndex) => {
3788
- return /* @__PURE__ */ jsxs18(
3788
+ return /* @__PURE__ */ jsxs19(
3789
3789
  "tr",
3790
3790
  {
3791
3791
  className: "",
@@ -3852,7 +3852,7 @@ var DataFormChildSection = (props) => {
3852
3852
  var DataFormChildSection_default = DataFormChildSection;
3853
3853
 
3854
3854
  // src/components/dataForm/DataForm.tsx
3855
- import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3855
+ import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
3856
3856
  var DataForm = (props) => {
3857
3857
  const formRef = useRef2(null);
3858
3858
  console.log(props.dataItem, "dssads");
@@ -4072,8 +4072,8 @@ var DataForm = (props) => {
4072
4072
  return false;
4073
4073
  }
4074
4074
  }
4075
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs19("div", { className: "flex-grow flex flex-col", children: [
4076
- props.title && /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs19(
4075
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4076
+ props.title && /* @__PURE__ */ jsx43("div", { className: "inline-flex items-center gap-2 px-6 py-3 border border-neutral-200 bg-white shadow-sm rounded-t-md", children: /* @__PURE__ */ jsxs20(
4077
4077
  "div",
4078
4078
  {
4079
4079
  className: "inline-flex items-center gap-2 cursor-pointer",
@@ -4106,7 +4106,7 @@ var DataForm = (props) => {
4106
4106
  }
4107
4107
  },
4108
4108
  children: /* @__PURE__ */ jsx43("div", { className: "flex flex-col gap-6", children: props.sections?.map((section, sectionIndex) => {
4109
- return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs19("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4109
+ return /* @__PURE__ */ jsx43(React30.Fragment, { children: !section.isChildSection && /* @__PURE__ */ jsxs20("div", { className: " rounded-b-lg bg-white shadow border-neutral-200 border px-8 py-6 ", children: [
4110
4110
  section.sectionRows?.map(
4111
4111
  (sectionRow, sectionRowIndex) => {
4112
4112
  const elementsCount = sectionRow.elements.length;
@@ -4118,7 +4118,7 @@ var DataForm = (props) => {
4118
4118
  );
4119
4119
  }
4120
4120
  return /* @__PURE__ */ jsx43(React30.Fragment, { children: isVisible && /* @__PURE__ */ jsx43("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
4121
- return /* @__PURE__ */ jsxs19(
4121
+ return /* @__PURE__ */ jsxs20(
4122
4122
  "div",
4123
4123
  {
4124
4124
  className: sectionRow.grow ? "grow" : "",
@@ -4174,7 +4174,7 @@ var DataForm = (props) => {
4174
4174
  }) })
4175
4175
  }
4176
4176
  ),
4177
- /* @__PURE__ */ jsxs19("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4177
+ /* @__PURE__ */ jsxs20("div", { className: "flex px-6 py-3 mt-2 mb-2 justify-end items-center gap-5", children: [
4178
4178
  /* @__PURE__ */ jsx43("div", { children: props.additionalActions && /* @__PURE__ */ jsx43(
4179
4179
  Button_default,
4180
4180
  {
@@ -4211,7 +4211,7 @@ var DataForm = (props) => {
4211
4211
  var DataForm_default = DataForm;
4212
4212
 
4213
4213
  // src/components/dataForm/DataFormRenderer.tsx
4214
- import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
4214
+ import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
4215
4215
  function getAction(actions, code) {
4216
4216
  return actions?.find((a) => a.actionCode === code);
4217
4217
  }
@@ -4237,7 +4237,7 @@ var DataFormRenderer = ({
4237
4237
  "Delete"
4238
4238
  );
4239
4239
  const hasDataItem = dataItem && Object.keys(dataItem).length > 0;
4240
- return /* @__PURE__ */ jsxs20("div", { className: "flex-grow flex flex-col", children: [
4240
+ return /* @__PURE__ */ jsxs21("div", { className: "flex-grow flex flex-col", children: [
4241
4241
  widgetProps && /* @__PURE__ */ jsx44(NavigationTabsV2_default, { tabs, params: widgetProps.params }),
4242
4242
  /* @__PURE__ */ jsx44(
4243
4243
  DataForm_default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20260722104420",
3
+ "version": "0.8.1-dev.20260722112436",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",