@algorithm-shift/design-system 1.2.980 → 1.2.981

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
@@ -478,7 +478,7 @@ var Typography = ({
478
478
  import_react5.default.createElement("span", {
479
479
  key: "html",
480
480
  className: "pointer-events-none",
481
- dangerouslySetInnerHTML: { __html: textContent }
481
+ dangerouslySetInnerHTML: { __html: textContent || "--" }
482
482
  })
483
483
  ]
484
484
  );
@@ -28155,7 +28155,8 @@ function LazySelectDropdown({
28155
28155
  dataLabel = "name",
28156
28156
  errorMessage,
28157
28157
  axiosInstance,
28158
- enableAddNewOption = false
28158
+ enableAddNewOption = false,
28159
+ enforceStrictQueryParams = false
28159
28160
  }) {
28160
28161
  const [isOpen, setIsOpen] = (0, import_react20.useState)(false);
28161
28162
  const [searchTerm, setSearchTerm] = (0, import_react20.useState)("");
@@ -28179,7 +28180,8 @@ function LazySelectDropdown({
28179
28180
  dataLabel,
28180
28181
  initialData: options || [],
28181
28182
  value,
28182
- axiosInstance
28183
+ axiosInstance,
28184
+ enforceStrictQueryParams
28183
28185
  });
28184
28186
  const selectedOption = (0, import_react20.useMemo)(() => lazyOptions.find((opt) => opt.value === value), [lazyOptions, value]);
28185
28187
  (0, import_react20.useEffect)(() => {
@@ -29816,6 +29818,13 @@ var cellRendererFactory = (renderer, rendererProps, value, row, customRenderers
29816
29818
  onChange: info.row.getToggleSelectedHandler()
29817
29819
  }
29818
29820
  );
29821
+ case "html":
29822
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
29823
+ "span",
29824
+ {
29825
+ dangerouslySetInnerHTML: { __html: String(rowValue || formattedValue) }
29826
+ }
29827
+ );
29819
29828
  /* -------------------- ADVANCED -------------------- */
29820
29829
  case "custom": {
29821
29830
  const CustomRenderer = customRenderers[rendererProps?.customRendererId] || customRenderers[rendererProps?.rendererId];
@@ -30088,17 +30097,20 @@ function DataTable({
30088
30097
  ),
30089
30098
  "Toggle All"
30090
30099
  ] }),
30091
- table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: "flex items-center gap-2 text-sm", children: [
30092
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
30093
- "input",
30094
- {
30095
- type: "checkbox",
30096
- checked: column.getIsVisible(),
30097
- onChange: (e) => column.toggleVisibility(e.target.checked)
30098
- }
30099
- ),
30100
- column.columnDef.header?.toString() ?? column.id
30101
- ] }, column.id))
30100
+ table.getAllLeafColumns().map((column) => {
30101
+ const header = column.columnDef.header;
30102
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: "flex items-center gap-2 text-sm", children: [
30103
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
30104
+ "input",
30105
+ {
30106
+ type: "checkbox",
30107
+ checked: column.getIsVisible(),
30108
+ onChange: (e) => column.toggleVisibility(e.target.checked)
30109
+ }
30110
+ ),
30111
+ typeof header === "function" ? header({ column, header, table }) : typeof header === "string" ? header : column.id
30112
+ ] }, column.id);
30113
+ })
30102
30114
  ] })
30103
30115
  ] })
30104
30116
  ] }),