@fctc/sme-widget-ui 2.2.3 → 2.2.5

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
@@ -10964,7 +10964,7 @@ var Row = (props) => {
10964
10964
  "data-row-id": row?.id,
10965
10965
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10966
10966
  style: {
10967
- background: indexRow % 2 === 0 ? "#EEF3FB" : "#FFF"
10967
+ background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
10968
10968
  },
10969
10969
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
10970
10970
  isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
@@ -11015,7 +11015,18 @@ var Row = (props) => {
11015
11015
  },
11016
11016
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DeleteIcon, {})
11017
11017
  }
11018
- ) }) })
11018
+ ) }) }),
11019
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11020
+ "td",
11021
+ {
11022
+ style: {
11023
+ maxWidth: "50px",
11024
+ minWidth: "50px",
11025
+ right: 0
11026
+ },
11027
+ className: `p-3 min-w-[40px]`
11028
+ }
11029
+ )
11019
11030
  ] })
11020
11031
  },
11021
11032
  `${row.id}_${indexRow}`
package/dist/index.mjs CHANGED
@@ -10838,7 +10838,7 @@ var Row = (props) => {
10838
10838
  "data-row-id": row?.id,
10839
10839
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10840
10840
  style: {
10841
- background: indexRow % 2 === 0 ? "#EEF3FB" : "#FFF"
10841
+ background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
10842
10842
  },
10843
10843
  children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
10844
10844
  isDisplayCheckbox && /* @__PURE__ */ jsx47(
@@ -10889,7 +10889,18 @@ var Row = (props) => {
10889
10889
  },
10890
10890
  children: /* @__PURE__ */ jsx47(DeleteIcon, {})
10891
10891
  }
10892
- ) }) })
10892
+ ) }) }),
10893
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
10894
+ "td",
10895
+ {
10896
+ style: {
10897
+ maxWidth: "50px",
10898
+ minWidth: "50px",
10899
+ right: 0
10900
+ },
10901
+ className: `p-3 min-w-[40px]`
10902
+ }
10903
+ )
10893
10904
  ] })
10894
10905
  },
10895
10906
  `${row.id}_${indexRow}`
package/dist/widgets.js CHANGED
@@ -9956,7 +9956,7 @@ var Row = (props) => {
9956
9956
  "data-row-id": row?.id,
9957
9957
  className: `border-b border-[#e8e8e8] cursor-pointer`,
9958
9958
  style: {
9959
- background: indexRow % 2 === 0 ? "#EEF3FB" : "#FFF"
9959
+ background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
9960
9960
  },
9961
9961
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
9962
9962
  isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
@@ -10007,7 +10007,18 @@ var Row = (props) => {
10007
10007
  },
10008
10008
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DeleteIcon, {})
10009
10009
  }
10010
- ) }) })
10010
+ ) }) }),
10011
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10012
+ "td",
10013
+ {
10014
+ style: {
10015
+ maxWidth: "50px",
10016
+ minWidth: "50px",
10017
+ right: 0
10018
+ },
10019
+ className: `p-3 min-w-[40px]`
10020
+ }
10021
+ )
10011
10022
  ] })
10012
10023
  },
10013
10024
  `${row.id}_${indexRow}`
package/dist/widgets.mjs CHANGED
@@ -9894,7 +9894,7 @@ var Row = (props) => {
9894
9894
  "data-row-id": row?.id,
9895
9895
  className: `border-b border-[#e8e8e8] cursor-pointer`,
9896
9896
  style: {
9897
- background: indexRow % 2 === 0 ? "#EEF3FB" : "#FFF"
9897
+ background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
9898
9898
  },
9899
9899
  children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
9900
9900
  isDisplayCheckbox && /* @__PURE__ */ jsx47(
@@ -9945,7 +9945,18 @@ var Row = (props) => {
9945
9945
  },
9946
9946
  children: /* @__PURE__ */ jsx47(DeleteIcon, {})
9947
9947
  }
9948
- ) }) })
9948
+ ) }) }),
9949
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
9950
+ "td",
9951
+ {
9952
+ style: {
9953
+ maxWidth: "50px",
9954
+ minWidth: "50px",
9955
+ right: 0
9956
+ },
9957
+ className: `p-3 min-w-[40px]`
9958
+ }
9959
+ )
9949
9960
  ] })
9950
9961
  },
9951
9962
  `${row.id}_${indexRow}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",