@fctc/sme-widget-ui 2.2.7 → 2.2.9

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
@@ -11016,7 +11016,7 @@ var Row = (props) => {
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)(
11019
+ (!onAddRow || typeof onAddRow !== "function") && columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11020
11020
  "td",
11021
11021
  {
11022
11022
  style: {
@@ -32993,12 +32993,12 @@ var SelectDropdownField = (props) => {
32993
32993
  required: !invisible && required
32994
32994
  };
32995
32995
  return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
32996
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32996
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32997
32997
  StateManagedSelect$1,
32998
32998
  {
32999
32999
  ...commonProps,
33000
33000
  classNames: {
33001
- control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
33001
+ control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused && !isEditTable ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
33002
33002
  valueContainer: () => "!m-0 !p-0 ",
33003
33003
  singleValue: () => `!m-0`,
33004
33004
  input: () => "!m-0 !p-0",
@@ -33008,7 +33008,6 @@ var SelectDropdownField = (props) => {
33008
33008
  },
33009
33009
  styles: {
33010
33010
  control: (base) => ({
33011
- ...base,
33012
33011
  background: isEditTable ? "transparent" : "initial"
33013
33012
  }),
33014
33013
  container: (base) => ({
package/dist/index.mjs CHANGED
@@ -10890,7 +10890,7 @@ var Row = (props) => {
10890
10890
  children: /* @__PURE__ */ jsx47(DeleteIcon, {})
10891
10891
  }
10892
10892
  ) }) }),
10893
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
10893
+ (!onAddRow || typeof onAddRow !== "function") && columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
10894
10894
  "td",
10895
10895
  {
10896
10896
  style: {
@@ -32867,12 +32867,12 @@ var SelectDropdownField = (props) => {
32867
32867
  required: !invisible && required
32868
32868
  };
32869
32869
  return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32870
- /* @__PURE__ */ jsx104("div", { className: "group", children: /* @__PURE__ */ jsx104(
32870
+ /* @__PURE__ */ jsx104("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx104(
32871
32871
  StateManagedSelect$1,
32872
32872
  {
32873
32873
  ...commonProps,
32874
32874
  classNames: {
32875
- control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
32875
+ control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused && !isEditTable ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
32876
32876
  valueContainer: () => "!m-0 !p-0 ",
32877
32877
  singleValue: () => `!m-0`,
32878
32878
  input: () => "!m-0 !p-0",
@@ -32882,7 +32882,6 @@ var SelectDropdownField = (props) => {
32882
32882
  },
32883
32883
  styles: {
32884
32884
  control: (base) => ({
32885
- ...base,
32886
32885
  background: isEditTable ? "transparent" : "initial"
32887
32886
  }),
32888
32887
  container: (base) => ({
package/dist/widgets.js CHANGED
@@ -10008,7 +10008,7 @@ var Row = (props) => {
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)(
10011
+ (!onAddRow || typeof onAddRow !== "function") && columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10012
10012
  "td",
10013
10013
  {
10014
10014
  style: {
@@ -32244,12 +32244,12 @@ var SelectDropdownField = (props) => {
32244
32244
  required: !invisible && required
32245
32245
  };
32246
32246
  return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
32247
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32247
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32248
32248
  StateManagedSelect$1,
32249
32249
  {
32250
32250
  ...commonProps,
32251
32251
  classNames: {
32252
- control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
32252
+ control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused && !isEditTable ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
32253
32253
  valueContainer: () => "!m-0 !p-0 ",
32254
32254
  singleValue: () => `!m-0`,
32255
32255
  input: () => "!m-0 !p-0",
@@ -32259,7 +32259,6 @@ var SelectDropdownField = (props) => {
32259
32259
  },
32260
32260
  styles: {
32261
32261
  control: (base) => ({
32262
- ...base,
32263
32262
  background: isEditTable ? "transparent" : "initial"
32264
32263
  }),
32265
32264
  container: (base) => ({
package/dist/widgets.mjs CHANGED
@@ -9946,7 +9946,7 @@ var Row = (props) => {
9946
9946
  children: /* @__PURE__ */ jsx47(DeleteIcon, {})
9947
9947
  }
9948
9948
  ) }) }),
9949
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
9949
+ (!onAddRow || typeof onAddRow !== "function") && columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
9950
9950
  "td",
9951
9951
  {
9952
9952
  style: {
@@ -32182,12 +32182,12 @@ var SelectDropdownField = (props) => {
32182
32182
  required: !invisible && required
32183
32183
  };
32184
32184
  return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32185
- /* @__PURE__ */ jsx104("div", { className: "group", children: /* @__PURE__ */ jsx104(
32185
+ /* @__PURE__ */ jsx104("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx104(
32186
32186
  StateManagedSelect$1,
32187
32187
  {
32188
32188
  ...commonProps,
32189
32189
  classNames: {
32190
- control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
32190
+ control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused && !isEditTable ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
32191
32191
  valueContainer: () => "!m-0 !p-0 ",
32192
32192
  singleValue: () => `!m-0`,
32193
32193
  input: () => "!m-0 !p-0",
@@ -32197,7 +32197,6 @@ var SelectDropdownField = (props) => {
32197
32197
  },
32198
32198
  styles: {
32199
32199
  control: (base) => ({
32200
- ...base,
32201
32200
  background: isEditTable ? "transparent" : "initial"
32202
32201
  }),
32203
32202
  container: (base) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",