@eightshift/ui-components 6.0.2 → 6.0.3

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.
@@ -280,7 +280,7 @@ const NumberPicker = ({
280
280
  className: 'es:tracking-wide es:font-variation-["wdth"_84,"YTLC"_520,"wght"_325,"slnt"_0,"YTFI"_788] es:placeholder-shown:font-variation-["wdth"_100,"YTLC"_500,"wght"_250,"slnt"_-8] es:any-focus:outline-hidden! es:p-px es:border-none! es:shadow-none! es:bg-transparent',
281
281
  placeholder,
282
282
  style: {
283
- width: fixedWidth ? `calc(${fixedWidth}ch + 2px)` : `calc(${min < 0 ? "0.75ch + " : "0.5ch + "}${(max ?? 1e3)?.toString()?.length} * 1ch)`
283
+ width: fixedWidth ? `calc(${fixedWidth}ch + 2px)` : `calc(${min < 0 ? "1ch + " : "0.75ch + "}${Math.max((max ?? 1e3)?.toString()?.length, (placeholder ?? "")?.length)} * 1ch)`
284
284
  }
285
285
  }
286
286
  ),
@@ -307,7 +307,7 @@ const MultiSelect = (props) => {
307
307
  /* @__PURE__ */ jsx(
308
308
  DraggableList,
309
309
  {
310
- items: value,
310
+ items: simpleValue ? value.map((item) => options.find((option) => option.value === item)) : value,
311
311
  onChange: (value2) => {
312
312
  handleSelectionChange(new Set(value2?.map((item) => item?.value ?? item)));
313
313
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/ui-components",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -62,10 +62,10 @@
62
62
  "@react-stately/collections": "^3.12.8",
63
63
  "@stylistic/eslint-plugin-js": "^4.4.1",
64
64
  "@tailwindcss/vite": "^4.1.17",
65
- "@thi.ng/color": "^5.8.2",
66
- "@thi.ng/pixel": "^7.5.16",
67
- "@thi.ng/pixel-analysis": "^2.0.17",
68
- "@thi.ng/pixel-dominant-colors": "^2.0.21",
65
+ "@thi.ng/color": "^5.8.3",
66
+ "@thi.ng/pixel": "^7.5.17",
67
+ "@thi.ng/pixel-analysis": "^2.0.18",
68
+ "@thi.ng/pixel-dominant-colors": "^2.0.22",
69
69
  "@types/react": "^18.3.27",
70
70
  "@types/react-dom": "^18.3.7",
71
71
  "@vitejs/plugin-react-swc": "^4.2.2",
@@ -76,7 +76,7 @@
76
76
  "css-gradient-parser": "^0.0.18",
77
77
  "eslint": "^9.39.1",
78
78
  "eslint-config-prettier": "^10.1.8",
79
- "eslint-plugin-jsdoc": "^61.4.0",
79
+ "eslint-plugin-jsdoc": "^61.4.1",
80
80
  "eslint-plugin-prettier": "^5.5.4",
81
81
  "glob": "^13.0.0",
82
82
  "globals": "^16.5.0",