@fctc/sme-widget-ui 1.7.1 → 1.7.2

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
@@ -33867,7 +33867,11 @@ var Many2ManyTagField = (props) => {
33867
33867
  dropdownIndicator: () => "!m-0 !p-0"
33868
33868
  },
33869
33869
  styles: {
33870
- control: () => ({}),
33870
+ control: (base) => ({
33871
+ ...base,
33872
+ minWidth: "max-content",
33873
+ maxWidth: "max-content"
33874
+ }),
33871
33875
  multiValue: (provided, state) => {
33872
33876
  const { color, id } = state?.data ?? {};
33873
33877
  const bgColor = color !== null ? COLORS[color]?.color : COLORS[id]?.color;
@@ -35110,7 +35114,11 @@ var Many2OneField = (props) => {
35110
35114
  menuPlacement: "auto",
35111
35115
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
35112
35116
  styles: {
35113
- control: () => ({}),
35117
+ control: (base) => ({
35118
+ ...base,
35119
+ minWidth: "max-content",
35120
+ maxWidth: "max-content"
35121
+ }),
35114
35122
  container: (base) => ({
35115
35123
  ...base,
35116
35124
  height: "100%"
@@ -35138,8 +35146,8 @@ var Many2OneField = (props) => {
35138
35146
  menu: (base) => ({
35139
35147
  ...base,
35140
35148
  zIndex: 999,
35141
- width: isEditTable ? "auto" : "100%",
35142
- minWidth: isEditTable ? "200px" : "100%",
35149
+ width: "100%",
35150
+ minWidth: "100%",
35143
35151
  borderRadius: "10px"
35144
35152
  }),
35145
35153
  menuList: (base) => ({
package/dist/index.mjs CHANGED
@@ -33746,7 +33746,11 @@ var Many2ManyTagField = (props) => {
33746
33746
  dropdownIndicator: () => "!m-0 !p-0"
33747
33747
  },
33748
33748
  styles: {
33749
- control: () => ({}),
33749
+ control: (base) => ({
33750
+ ...base,
33751
+ minWidth: "max-content",
33752
+ maxWidth: "max-content"
33753
+ }),
33750
33754
  multiValue: (provided, state) => {
33751
33755
  const { color, id } = state?.data ?? {};
33752
33756
  const bgColor = color !== null ? COLORS[color]?.color : COLORS[id]?.color;
@@ -34989,7 +34993,11 @@ var Many2OneField = (props) => {
34989
34993
  menuPlacement: "auto",
34990
34994
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
34991
34995
  styles: {
34992
- control: () => ({}),
34996
+ control: (base) => ({
34997
+ ...base,
34998
+ minWidth: "max-content",
34999
+ maxWidth: "max-content"
35000
+ }),
34993
35001
  container: (base) => ({
34994
35002
  ...base,
34995
35003
  height: "100%"
@@ -35017,8 +35025,8 @@ var Many2OneField = (props) => {
35017
35025
  menu: (base) => ({
35018
35026
  ...base,
35019
35027
  zIndex: 999,
35020
- width: isEditTable ? "auto" : "100%",
35021
- minWidth: isEditTable ? "200px" : "100%",
35028
+ width: "100%",
35029
+ minWidth: "100%",
35022
35030
  borderRadius: "10px"
35023
35031
  }),
35024
35032
  menuList: (base) => ({
package/dist/widgets.js CHANGED
@@ -33491,7 +33491,11 @@ var Many2ManyTagField = (props) => {
33491
33491
  dropdownIndicator: () => "!m-0 !p-0"
33492
33492
  },
33493
33493
  styles: {
33494
- control: () => ({}),
33494
+ control: (base) => ({
33495
+ ...base,
33496
+ minWidth: "max-content",
33497
+ maxWidth: "max-content"
33498
+ }),
33495
33499
  multiValue: (provided, state) => {
33496
33500
  const { color, id } = state?.data ?? {};
33497
33501
  const bgColor = color !== null ? COLORS[color]?.color : COLORS[id]?.color;
@@ -34734,7 +34738,11 @@ var Many2OneField = (props) => {
34734
34738
  menuPlacement: "auto",
34735
34739
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
34736
34740
  styles: {
34737
- control: () => ({}),
34741
+ control: (base) => ({
34742
+ ...base,
34743
+ minWidth: "max-content",
34744
+ maxWidth: "max-content"
34745
+ }),
34738
34746
  container: (base) => ({
34739
34747
  ...base,
34740
34748
  height: "100%"
@@ -34762,8 +34770,8 @@ var Many2OneField = (props) => {
34762
34770
  menu: (base) => ({
34763
34771
  ...base,
34764
34772
  zIndex: 999,
34765
- width: isEditTable ? "auto" : "100%",
34766
- minWidth: isEditTable ? "200px" : "100%",
34773
+ width: "100%",
34774
+ minWidth: "100%",
34767
34775
  borderRadius: "10px"
34768
34776
  }),
34769
34777
  menuList: (base) => ({
package/dist/widgets.mjs CHANGED
@@ -33428,7 +33428,11 @@ var Many2ManyTagField = (props) => {
33428
33428
  dropdownIndicator: () => "!m-0 !p-0"
33429
33429
  },
33430
33430
  styles: {
33431
- control: () => ({}),
33431
+ control: (base) => ({
33432
+ ...base,
33433
+ minWidth: "max-content",
33434
+ maxWidth: "max-content"
33435
+ }),
33432
33436
  multiValue: (provided, state) => {
33433
33437
  const { color, id } = state?.data ?? {};
33434
33438
  const bgColor = color !== null ? COLORS[color]?.color : COLORS[id]?.color;
@@ -34671,7 +34675,11 @@ var Many2OneField = (props) => {
34671
34675
  menuPlacement: "auto",
34672
34676
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
34673
34677
  styles: {
34674
- control: () => ({}),
34678
+ control: (base) => ({
34679
+ ...base,
34680
+ minWidth: "max-content",
34681
+ maxWidth: "max-content"
34682
+ }),
34675
34683
  container: (base) => ({
34676
34684
  ...base,
34677
34685
  height: "100%"
@@ -34699,8 +34707,8 @@ var Many2OneField = (props) => {
34699
34707
  menu: (base) => ({
34700
34708
  ...base,
34701
34709
  zIndex: 999,
34702
- width: isEditTable ? "auto" : "100%",
34703
- minWidth: isEditTable ? "200px" : "100%",
34710
+ width: "100%",
34711
+ minWidth: "100%",
34704
34712
  borderRadius: "10px"
34705
34713
  }),
34706
34714
  menuList: (base) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",