cr-ui-lib 1.1.66 → 1.1.68

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.d.mts CHANGED
@@ -243,9 +243,10 @@ declare type SingleSelectDropdownProps = {
243
243
  placeholderSearchClass?: string;
244
244
  usePortal?: boolean;
245
245
  placeholderClass?: string;
246
+ iconClass?: string;
246
247
  };
247
248
  declare function SingleSelectDropdown({ label, value, onChange, options, placeholder, onScrollToEnd, onSearch, hasMore, isLoading, searchable, searchDebounceMs, requiresSearch, minSearchLength, emptyMessage, loadingMessage, searchPlaceholder, disabled, hasIcon, buttonClass, labelClass, displayItemClass, displayMainClass, hasSearchIcon, searchInputClass, placeholderSearchClass, usePortal, // ✅ default true
248
- placeholderClass, }: SingleSelectDropdownProps): JSX.Element;
249
+ iconClass, placeholderClass, }: SingleSelectDropdownProps): JSX.Element;
249
250
 
250
251
  interface SelectionButton {
251
252
  data: string[];
@@ -335,7 +336,7 @@ interface GroupedCheckboxDropdownProps {
335
336
  declare const GroupedCheckboxDropdown: React$1.FC<GroupedCheckboxDropdownProps>;
336
337
 
337
338
  interface Column {
338
- name: string;
339
+ name: string | any;
339
340
  selector: string;
340
341
  width: string;
341
342
  sortable?: boolean;
package/dist/index.d.ts CHANGED
@@ -243,9 +243,10 @@ declare type SingleSelectDropdownProps = {
243
243
  placeholderSearchClass?: string;
244
244
  usePortal?: boolean;
245
245
  placeholderClass?: string;
246
+ iconClass?: string;
246
247
  };
247
248
  declare function SingleSelectDropdown({ label, value, onChange, options, placeholder, onScrollToEnd, onSearch, hasMore, isLoading, searchable, searchDebounceMs, requiresSearch, minSearchLength, emptyMessage, loadingMessage, searchPlaceholder, disabled, hasIcon, buttonClass, labelClass, displayItemClass, displayMainClass, hasSearchIcon, searchInputClass, placeholderSearchClass, usePortal, // ✅ default true
248
- placeholderClass, }: SingleSelectDropdownProps): JSX.Element;
249
+ iconClass, placeholderClass, }: SingleSelectDropdownProps): JSX.Element;
249
250
 
250
251
  interface SelectionButton {
251
252
  data: string[];
@@ -335,7 +336,7 @@ interface GroupedCheckboxDropdownProps {
335
336
  declare const GroupedCheckboxDropdown: React$1.FC<GroupedCheckboxDropdownProps>;
336
337
 
337
338
  interface Column {
338
- name: string;
339
+ name: string | any;
339
340
  selector: string;
340
341
  width: string;
341
342
  sortable?: boolean;
package/dist/index.js CHANGED
@@ -3469,6 +3469,7 @@ function SingleSelectDropdown({
3469
3469
  placeholderSearchClass = "",
3470
3470
  usePortal = true,
3471
3471
  // ✅ default true
3472
+ iconClass = "",
3472
3473
  placeholderClass = ""
3473
3474
  }) {
3474
3475
  const [isOpen, setIsOpen] = React.useState(false);
@@ -3721,7 +3722,7 @@ function SingleSelectDropdown({
3721
3722
  /* @__PURE__ */ jsxRuntime.jsx(
3722
3723
  "div",
3723
3724
  {
3724
- className: `transition-transform duration-200 ${!isOpen ? "rotate-180" : ""} ${disabled ? "text-gray-400" : ""} ${hasIcon ? "block" : "hidden"}`,
3725
+ className: `transition-transform duration-200 ${!isOpen ? "rotate-180" : ""} ${disabled ? "text-gray-400" : ""} ${hasIcon ? "block" : "hidden"} ${iconClass}`,
3725
3726
  children: /* @__PURE__ */ jsxRuntime.jsxs(
3726
3727
  "svg",
3727
3728
  {
@@ -4988,12 +4989,12 @@ var DynamicTableV2 = ({
4988
4989
  className: "min-w-full",
4989
4990
  style: { tableLayout: "fixed" },
4990
4991
  children: [
4991
- /* @__PURE__ */ jsxRuntime.jsx("colgroup", { children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
4992
+ /* @__PURE__ */ jsxRuntime.jsx("colgroup", { children: columns.map((column, i) => /* @__PURE__ */ jsxRuntime.jsx(
4992
4993
  "col",
4993
4994
  {
4994
4995
  style: { width: column.width || "150px" }
4995
4996
  },
4996
- column.name
4997
+ i
4997
4998
  )) }),
4998
4999
  !isDisableTableHeader && /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "border-b-2 bg-white sticky top-0 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: columns.map((column, columnIndex) => {
4999
5000
  var _a2, _b2;
@@ -5054,7 +5055,7 @@ var DynamicTableV2 = ({
5054
5055
  }
5055
5056
  )
5056
5057
  },
5057
- column.name
5058
+ columnIndex
5058
5059
  );
5059
5060
  }) }) }),
5060
5061
  !isLoading && /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: tableData.map((item, index) => {