@crediblemark/build 0.24.7 → 0.24.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.
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ var init_styles_module2 = __esm({
159
159
  "use strict";
160
160
  init_react_import();
161
161
  init_css_module_data2();
162
- styles_module_default2 = { "InputWrapper": "_InputWrapper_1bq9u_1", "Input-label": "_Input-label_1bq9u_5", "Input-label--noChildren": "_Input-label--noChildren_1bq9u_14", "Input-labelIcon": "_Input-labelIcon_1bq9u_18", "Input-disabledIcon": "_Input-disabledIcon_1bq9u_25", "Input-input": "_Input-input_1bq9u_30", "Input": "_Input_1bq9u_1", "Input--readOnly": "_Input--readOnly_1bq9u_86", "Input-radioGroupItems": "_Input-radioGroupItems_1bq9u_97", "Input-radio": "_Input-radio_1bq9u_97", "Input-radioInner": "_Input-radioInner_1bq9u_114", "Input-radioInput": "_Input-radioInput_1bq9u_159" };
162
+ styles_module_default2 = { "InputWrapper": "_InputWrapper_amigi_1", "InputWrapper--object": "_InputWrapper--object_amigi_1", "InputWrapper--array": "_InputWrapper--array_amigi_1", "Input-label": "_Input-label_amigi_18", "Input-label--noChildren": "_Input-label--noChildren_amigi_29", "Input-labelIcon": "_Input-labelIcon_amigi_33", "Input-disabledIcon": "_Input-disabledIcon_amigi_40", "Input-input": "_Input-input_amigi_45", "Input": "_Input_amigi_1", "Input--readOnly": "_Input--readOnly_amigi_101", "Input-radioGroupItems": "_Input-radioGroupItems_amigi_112", "Input-radio": "_Input-radio_amigi_112", "Input-radioInner": "_Input-radioInner_amigi_129", "Input-radioInput": "_Input-radioInput_amigi_174" };
163
163
  }
164
164
  });
165
165
 
@@ -6992,7 +6992,7 @@ var init_styles_module11 = __esm({
6992
6992
  "use strict";
6993
6993
  init_react_import();
6994
6994
  init_css_module_data13();
6995
- styles_module_default11 = { "ArrayField": "_ArrayField_1q029_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_1q029_13", "ArrayField-addButton": "_ArrayField-addButton_1q029_18", "ArrayField--hasItems": "_ArrayField--hasItems_1q029_33", "ArrayField-inner": "_ArrayField-inner_1q029_59", "ArrayFieldItem": "_ArrayFieldItem_1q029_67", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_1q029_78", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_1q029_82", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_1q029_97", "ArrayFieldItem--noFields": "_ArrayFieldItem--noFields_1q029_122", "ArrayField--addDisabled": "_ArrayField--addDisabled_1q029_131", "ArrayFieldItem-body": "_ArrayFieldItem-body_1q029_170", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_1q029_179", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_1q029_187", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_1q029_193" };
6995
+ styles_module_default11 = { "ArrayField": "_ArrayField_19wby_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_19wby_13", "ArrayField-addButton": "_ArrayField-addButton_19wby_18", "ArrayField--hasItems": "_ArrayField--hasItems_19wby_33", "ArrayField-inner": "_ArrayField-inner_19wby_59", "ArrayFieldItem": "_ArrayFieldItem_19wby_67", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_19wby_78", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_19wby_82", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_19wby_97", "ArrayFieldItem--noFields": "_ArrayFieldItem--noFields_19wby_122", "ArrayField--addDisabled": "_ArrayField--addDisabled_19wby_131", "ArrayFieldItem-body": "_ArrayFieldItem-body_19wby_170", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_19wby_179", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_19wby_187", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_19wby_193" };
6996
6996
  }
6997
6997
  });
6998
6998
 
@@ -7999,7 +7999,7 @@ var init_styles_module13 = __esm({
7999
7999
  "use strict";
8000
8000
  init_react_import();
8001
8001
  init_css_module_data15();
8002
- styles_module_default13 = { "ObjectField": "_ObjectField_1vrf5_1", "ObjectField--isOpen": "_ObjectField--isOpen_1vrf5_12", "ObjectField-content": "_ObjectField-content_1vrf5_17", "ObjectField-fieldset": "_ObjectField-fieldset_1vrf5_22" };
8002
+ styles_module_default13 = { "ObjectField": "_ObjectField_1n2lh_1", "ObjectField--isOpen": "_ObjectField--isOpen_1n2lh_10", "ObjectField-content": "_ObjectField-content_1n2lh_14", "ObjectField-fieldset": "_ObjectField-fieldset_1n2lh_18", "ObjectField-header": "_ObjectField-header_1n2lh_30", "ObjectField-headerIcon": "_ObjectField-headerIcon_1n2lh_54" };
8003
8003
  }
8004
8004
  });
8005
8005
 
@@ -8045,23 +8045,19 @@ var init_ObjectField = __esm({
8045
8045
  return null;
8046
8046
  }
8047
8047
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: getClassName19({ isOpen }), children: [
8048
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8049
- "div",
8048
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
8049
+ "button",
8050
8050
  {
8051
+ type: "button",
8052
+ className: getClassName19("header"),
8051
8053
  onClick: () => setIsOpen(!isOpen),
8052
- style: { cursor: "pointer" },
8053
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8054
- Label2,
8055
- {
8056
- label: label || name,
8057
- icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
8058
- isOpen ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ChevronDown, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ChevronRight, { size: 14 }),
8059
- labelIcon || /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(EllipsisVertical, { size: 16 })
8060
- ] }),
8061
- el: "div",
8062
- readOnly
8063
- }
8064
- )
8054
+ children: [
8055
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
8056
+ labelIcon || /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(EllipsisVertical, { size: 12 }),
8057
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: label || name })
8058
+ ] }),
8059
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: getClassName19("headerIcon"), children: isOpen ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ChevronDown, { size: 12 }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ChevronRight, { size: 12 }) })
8060
+ ]
8065
8061
  }
8066
8062
  ),
8067
8063
  isOpen && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: getClassName19("content"), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("fieldset", { className: getClassName19("fieldset"), children: Object.keys(field.objectFields).map((subName) => {
@@ -8199,7 +8195,7 @@ function AutoFieldInternal(props) {
8199
8195
  children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8200
8196
  "div",
8201
8197
  {
8202
- className: getClassNameWrapper(),
8198
+ className: getClassNameWrapper({ [field.type]: true }),
8203
8199
  onFocus,
8204
8200
  onBlur,
8205
8201
  onClick: (e) => {
@@ -8846,7 +8842,7 @@ init_react_import();
8846
8842
 
8847
8843
  // css-module:/home/crediblemark/Project/Credibuild/components/Drawer/styles.module.css#css-module
8848
8844
  init_react_import();
8849
- var styles_module_default14 = { "Drawer": "_Drawer_e1509_1", "Drawer-draggable": "_Drawer-draggable_e1509_7", "Drawer-draggableBg": "_Drawer-draggableBg_e1509_11", "DrawerItem-draggable": "_DrawerItem-draggable_e1509_21", "DrawerItem--disabled": "_DrawerItem--disabled_e1509_34", "DrawerItem": "_DrawerItem_e1509_21", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_e1509_43", "DrawerItem-default": "_DrawerItem-default_e1509_44", "DrawerItem-name": "_DrawerItem-name_e1509_61" };
8845
+ var styles_module_default14 = { "Drawer": "_Drawer_1bd7y_1", "Drawer-draggable": "_Drawer-draggable_1bd7y_7", "Drawer-draggableBg": "_Drawer-draggableBg_1bd7y_11", "DrawerItem-draggable": "_DrawerItem-draggable_1bd7y_21", "DrawerItem--disabled": "_DrawerItem--disabled_1bd7y_34", "DrawerItem": "_DrawerItem_1bd7y_21", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_1bd7y_43", "DrawerItem-default": "_DrawerItem-default_1bd7y_44", "DrawerItem-name": "_DrawerItem-name_1bd7y_61" };
8850
8846
 
8851
8847
  // components/Drawer/index.tsx
8852
8848
  init_get_class_name_factory();
@@ -11491,7 +11487,7 @@ init_react_import();
11491
11487
 
11492
11488
  // css-module:/home/crediblemark/Project/Credibuild/components/ComponentList/styles.module.css#css-module
11493
11489
  init_react_import();
11494
- var styles_module_default19 = { "ComponentList": "_ComponentList_1jl8i_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_1jl8i_5", "ComponentList-content": "_ComponentList-content_1jl8i_9", "ComponentList-title": "_ComponentList-title_1jl8i_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_1jl8i_53" };
11490
+ var styles_module_default19 = { "ComponentList": "_ComponentList_10tqo_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_10tqo_5", "ComponentList-content": "_ComponentList-content_10tqo_9", "ComponentList-title": "_ComponentList-title_10tqo_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_10tqo_53" };
11495
11491
 
11496
11492
  // components/ComponentList/index.tsx
11497
11493
  init_get_class_name_factory();
@@ -11534,7 +11530,7 @@ var ComponentList = ({
11534
11530
  const virtualizer = (0, import_react_virtual2.useVirtualizer)({
11535
11531
  count: components.length,
11536
11532
  getScrollElement: () => parentRef.current,
11537
- estimateSize: () => 40,
11533
+ estimateSize: () => 32,
11538
11534
  // Estimated height of each item
11539
11535
  overscan: 5
11540
11536
  });
package/dist/index.mjs CHANGED
@@ -15,17 +15,17 @@ import {
15
15
  registerOverlayPortal,
16
16
  useCredBuild,
17
17
  useGetCredBuild
18
- } from "./chunk-TROD5OXC.mjs";
18
+ } from "./chunk-XOJTVSZH.mjs";
19
19
  import "./chunk-YE4FXNJW.mjs";
20
20
  import {
21
21
  setDeep
22
- } from "./chunk-N2NNRJDJ.mjs";
23
- import "./chunk-7EY2S46B.mjs";
22
+ } from "./chunk-FBNOHTBJ.mjs";
23
+ import "./chunk-QC5SGUG2.mjs";
24
24
  import {
25
25
  AutoField,
26
26
  Button,
27
27
  FieldLabel
28
- } from "./chunk-QV6ANL5D.mjs";
28
+ } from "./chunk-AHT2WTZ7.mjs";
29
29
  import "./chunk-WH3A7FAR.mjs";
30
30
  import {
31
31
  migrate,